<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Infowindow - change what is displayed based on current layer visibility in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/infowindow-change-what-is-displayed-based-on/m-p/444483#M10316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am setting the infoWindow on the individual graphics of the graphicslayer.&amp;nbsp; When I tried taking that out of the for each loop, then my infoWindow only had a title and no data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;public function layerQueryResults(qryFeatures:FeatureSet, token:Object = null): void {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* populate graphic layer with features returned from the querytask.&amp;nbsp; Using a graphiclayer instead of just calling
&amp;nbsp;&amp;nbsp;&amp;nbsp; the service allows you to add tool tips etc that aren't available otherwise */
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for each(var myGraphic : Graphic in qryFeatures.features) {&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var houseVis:Boolean = houseLayer.visible;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var senateVis:Boolean = senateLayer.visible;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var congressVis:Boolean = congressLayer.visible;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* myGraphic.addEventListener(MouseEvent.ROLL_OVER, onMouseOver);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphic.addEventListener(MouseEvent.ROLL_OUT, onMouseOut);&amp;nbsp; */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphic.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphic.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //myGraphic.infoWindowRenderer = new ClassFactory(MyDistrictWindowRenderer);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphicsLayer.add( myGraphic );
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; // myGraphicsLayer.graphicProvider = qryFeatures.features;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphicsLayer.symbol = compositeSymbol;
&amp;nbsp;&amp;nbsp;&amp;nbsp; mainMap.addLayer(myGraphicsLayer);
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 19:52:36 GMT</pubDate>
    <dc:creator>TracySchloss</dc:creator>
    <dc:date>2021-12-11T19:52:36Z</dc:date>
    <item>
      <title>Infowindow - change what is displayed based on current layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/infowindow-change-what-is-displayed-based-on/m-p/444481#M10314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have written an external component that will check to see what layers are currently turned on and based on that, will show different results in in the infoWindow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My infoWindowRenderer is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt; &amp;lt;mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:mx="library://ns.adobe.com/flex/mx" &amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:supportClasses="com.esri.ags.components.supportClasses.*"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; initialize="initRenderer()"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fx:Declarations&amp;gt; &amp;nbsp; &amp;lt;!-- Place non-visual elements (e.g., services, value objects) here --&amp;gt;&amp;nbsp; &amp;lt;/fx:Declarations&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fx:Script&amp;gt; &amp;nbsp; &amp;lt;![CDATA[ &amp;nbsp;&amp;nbsp; import com.esri.ags.Map; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; import mx.core.FlexGlobals; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; [Bindable] &amp;nbsp;&amp;nbsp; public var mainMap:Map; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; [Bindable] &amp;nbsp;&amp;nbsp; public var houseVis:Boolean; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; [Bindable] &amp;nbsp;&amp;nbsp; public var senateVis:Boolean; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; [Bindable] &amp;nbsp;&amp;nbsp; public var congressVis:Boolean; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; public function initRenderer(): void { &amp;nbsp;&amp;nbsp;&amp;nbsp; mainMap = FlexGlobals.topLevelApplication.mainMap; &amp;nbsp;&amp;nbsp;&amp;nbsp; houseVis = FlexGlobals.topLevelApplication.houseLayer.visible; &amp;nbsp;&amp;nbsp;&amp;nbsp; senateVis = FlexGlobals.topLevelApplication.senateLayer.visible; &amp;nbsp;&amp;nbsp;&amp;nbsp; congressVis = FlexGlobals.topLevelApplication.congressLayer.visible; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; trace ("within MyDistrictWindowRenderer, mainMap is " + mainMap.id + &amp;nbsp;&amp;nbsp;&amp;nbsp; ", houseVis = " + houseVis + ", senateVis = " + senateVis + ", congressVis&amp;nbsp; = " + congressVis); &amp;nbsp;&amp;nbsp; } &amp;nbsp; ]]&amp;gt;&amp;nbsp; &amp;lt;/fx:Script&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportClasses:InfoWindowLabel text="Missouri Districts" styleName="balloonTitle" /&amp;gt;&amp;nbsp; &amp;lt;s:Label includeInLayout="{houseVis != ''? true:false}"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; visible="{houseVis != ''? true:false}"&amp;nbsp;&amp;nbsp; &amp;nbsp; text="House:&amp;nbsp; {data.HOUSE_DIST}" paddingTop="2"/&amp;gt;&amp;nbsp; &amp;lt;s:Label includeInLayout="{senateVis != ''? true:false}"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; visible="{senateVis != ''? true:false}"&amp;nbsp;&amp;nbsp; &amp;nbsp; text="Senate:&amp;nbsp; {data.SEN_DIST}" paddingTop="2" /&amp;gt;&amp;nbsp; &amp;lt;s:Label includeInLayout="{congressVis != ''? true:false}"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; visible="{congressVis != ''? true:false}"&amp;nbsp;&amp;nbsp; &amp;nbsp; text="Congressional:&amp;nbsp; {data.CONG_DIST}" paddingTop="2" /&amp;gt; &amp;lt;/mx:VBox&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using a graphicslayer with event listeners to add the infoWindow (these are polygons).&amp;nbsp; I have a composite layer that I'm using for labeling that contains fields for house, senate and congressional districts (so I can return all 3 districts from a single click into a single infoWindow).&amp;nbsp;&amp;nbsp; Whatever combination of layers I have turned on, the Renderer should recognize and set the visibility for each label based on the variable I have set for layer visibility.&amp;nbsp; This should make my infoWindowRenderer a lot more dynamic.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is where I'm calling the infoWindow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;private function onMouseUp(event:MouseEvent):void { &amp;nbsp;&amp;nbsp;&amp;nbsp; var g:Graphic = Graphic(event.currentTarget); &amp;nbsp;&amp;nbsp;&amp;nbsp; mainMap.infoWindow.hide(); &amp;nbsp;&amp;nbsp;&amp;nbsp; mainMap.infoWindow.data = g.attributes; &amp;nbsp;&amp;nbsp;&amp;nbsp; mainMap.infoWindow.closeButtonVisible=true; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mainMap.infoWindow.content = myInfoWindowRenderer.newInstance();&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mainMap.infoWindow.show( MapPoint(g.geometry.extent.center) ); &amp;nbsp;&amp;nbsp;&amp;nbsp; mainMap.infoWindow.styleName = "myInfoWindow";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; g.checkForMouseListeners = false; &amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This works up to a point.&amp;nbsp; For example, if I have all 3 layers turned on, when I click I see all 3 district numbers listed.&amp;nbsp; When I turn off a layer (for example, house) and click in another part of the state, it shows me just the senate and congressional and the house is not included.&amp;nbsp; If I click back to my original area, it still remembers that original graphic (or event.currentTarget).&amp;nbsp; It will continue to remember what the visibility/renderer settings were for as many times as I care to click in that same area.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to clear this out and somehow not have it remember that I've already clicked it once so it resets the infoWindowRenderer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 15:55:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/infowindow-change-what-is-displayed-based-on/m-p/444481#M10314</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2012-03-16T15:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Infowindow - change what is displayed based on current layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/infowindow-change-what-is-displayed-based-on/m-p/444482#M10315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The code looks OK. Does the trace come out fine every time?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you setting the infoWindowRenderer property of the GraphicsLayer? If you are, I'd try not setting it since your code is taking care of showing the InfoWindow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 22:23:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/infowindow-change-what-is-displayed-based-on/m-p/444482#M10315</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2012-03-16T22:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Infowindow - change what is displayed based on current layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/infowindow-change-what-is-displayed-based-on/m-p/444483#M10316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am setting the infoWindow on the individual graphics of the graphicslayer.&amp;nbsp; When I tried taking that out of the for each loop, then my infoWindow only had a title and no data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;public function layerQueryResults(qryFeatures:FeatureSet, token:Object = null): void {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* populate graphic layer with features returned from the querytask.&amp;nbsp; Using a graphiclayer instead of just calling
&amp;nbsp;&amp;nbsp;&amp;nbsp; the service allows you to add tool tips etc that aren't available otherwise */
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for each(var myGraphic : Graphic in qryFeatures.features) {&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var houseVis:Boolean = houseLayer.visible;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var senateVis:Boolean = senateLayer.visible;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var congressVis:Boolean = congressLayer.visible;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* myGraphic.addEventListener(MouseEvent.ROLL_OVER, onMouseOver);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphic.addEventListener(MouseEvent.ROLL_OUT, onMouseOut);&amp;nbsp; */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphic.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphic.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //myGraphic.infoWindowRenderer = new ClassFactory(MyDistrictWindowRenderer);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphicsLayer.add( myGraphic );
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; // myGraphicsLayer.graphicProvider = qryFeatures.features;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphicsLayer.symbol = compositeSymbol;
&amp;nbsp;&amp;nbsp;&amp;nbsp; mainMap.addLayer(myGraphicsLayer);
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:52:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/infowindow-change-what-is-displayed-based-on/m-p/444483#M10316</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2021-12-11T19:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Infowindow - change what is displayed based on current layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/infowindow-change-what-is-displayed-based-on/m-p/444484#M10317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In your mouseUp function, try adding:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mainMap.infoWindow.content.data = g.attributes;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 15:17:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/infowindow-change-what-is-displayed-based-on/m-p/444484#M10317</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2012-03-22T15:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Infowindow - change what is displayed based on current layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/infowindow-change-what-is-displayed-based-on/m-p/444485#M10318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That generates a coding error &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Multiple markers at this line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-1119: Access of possibly undefined property data through a reference with static type mx.core:UIComponent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-infoWindow&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For some strange reason, the problem I was seeing, where the original graphic that was clicked remembered what it's infoWindowRenderer was from the first click, is no longer a problem.&amp;nbsp; I hate to mark this thread as resolved, because the suggestions I'd applied earlier (and messed with for several hours!) didn't fix it at the time.&amp;nbsp; I haven't been in this code for days and today it's decided to work, even though I haven't made any other changes since?!?!?!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apparently my code is intimidated by your superior knowledge.&amp;nbsp; :rolleyes:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 16:07:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/infowindow-change-what-is-displayed-based-on/m-p/444485#M10318</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2012-03-22T16:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Infowindow - change what is displayed based on current layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/infowindow-change-what-is-displayed-based-on/m-p/444486#M10319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad it's working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to work around the error, use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import mx.core.IDataRenderer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IDataRenderer(mainMap.infoWindow.content).data = g.attributes;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 16:11:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/infowindow-change-what-is-displayed-based-on/m-p/444486#M10319</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2012-03-22T16:11:04Z</dc:date>
    </item>
  </channel>
</rss>

