Select to view content in your preferred language

infoWindowRenderer clean up issue with Iframe

456
0
04-11-2011 06:33 AM
FrankRoberts
Occasional Contributor III
I have a question regarding the infowindowRender.  How do I make calls to something within the fx tags?  In my case I need to delete a Iframe window that persists on the screen after the infowidow goes away.

<esri:FeatureLayer 
 outFields="[Camera,Location,CLink]"
 id="fl"           url="http://arcgis2.roktech.net/ArcGIS/rest/services/Bay/BayFlexROK/MapServer/3">
      
 <esri:infoWindowRenderer>
  <fx:Component>     
   <mx:VBox label="{data.Location}">
    <flexiframe:IFrame id="slowLoadingIFrameWithLoadIndicator"             
             source="{data.CLink}"         
             loadIndicatorClass="SampleLoadIndicator"
             width="390"
             height="300"/>
   </mx:VBox>        
  </fx:Component>
 </esri:infoWindowRenderer>
</esri:FeatureLayer>


I would like to do something like below but that doesn't work:

private function closeButtonClicked(closeEvent:Event):void { 
myMap.infoWindow.slowLoadingIFrameWithLoadIndicator.visible = false;
}


Thanks in advance!
Frank
Tags (2)
0 Kudos
0 Replies