<?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: How to use infoWindowRenderer in ActionScript vs MXML? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-use-infowindowrenderer-in-actionscript-vs/m-p/438235#M10189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Here is some ActionScript code to do just like Dasa is talking about. Attached is a infoRenderer component that allows you to define the fields that will be displayed in the ActionScript code. It is a little rough (i.e. fields are not displayed in the order they are specified in the code but you can get the picture)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Nov 2010 04:30:30 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2010-11-22T04:30:30Z</dc:date>
    <item>
      <title>How to use infoWindowRenderer in ActionScript vs MXML?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-use-infowindowrenderer-in-actionscript-vs/m-p/438233#M10187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need some assistance in using the infoWindowRenderer in ActionScript instead of MXML.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The MXML file attached is a modified version of the sample "InfoWindows for FeatureLayer" that accomplishes my goal with MXML, but I can't figure out how to change it to ActionScript.&amp;nbsp; I want to do this to help create a simple widget for Flexviewer v2.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for the assistance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve McKinney&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SICS Consultants, LLC&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-email-small" href="mailto:steve@sicsconsultants.com"&gt;steve@sicsconsultants.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically I am trying to implement the following as ActionScript;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp; &amp;lt;esri:FeatureLayer outFields="*"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://gis.sicsconsultants.ws/ArcGIS/rest/services/Hospital_Master/MapServer/0"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:infoWindowRenderer&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fx:Component&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:VBox label="{data.Name}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height="300"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; horizontalScrollPolicy="off"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; verticalScrollPolicy="on"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fx:Script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;![CDATA[
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import flash.net.navigateToURL;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]]&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fx:Script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Grid width="100%"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:GridRow&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:GridItem&amp;gt;&amp;lt;s:Label text="OBJECTID"/&amp;gt; &amp;lt;/mx:GridItem&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:GridItem&amp;gt;&amp;lt;s:Label text="{data.OBJECTID}"/&amp;gt;&amp;lt;/mx:GridItem&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:GridRow&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:GridRow&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:GridItem&amp;gt;&amp;lt;s:Label text="ID"/&amp;gt; &amp;lt;/mx:GridItem&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:GridItem&amp;gt;&amp;lt;s:Label text="{data.id}"/&amp;gt;&amp;lt;/mx:GridItem&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:GridRow&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:GridRow&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:GridItem&amp;gt;&amp;lt;s:Label text="Provider"/&amp;gt; &amp;lt;/mx:GridItem&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:GridItem&amp;gt;&amp;lt;s:Label text="{data.provider}"/&amp;gt;&amp;lt;/mx:GridItem&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:GridRow&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:Grid&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:VBox&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fx:Component&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:infoWindowRenderer&amp;gt;

&amp;nbsp; &amp;lt;/esri:FeatureLayer&amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Nov 2010 17:07:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-use-infowindowrenderer-in-actionscript-vs/m-p/438233#M10187</guid>
      <dc:creator>SteveMcKinney</dc:creator>
      <dc:date>2010-11-20T17:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use infoWindowRenderer in ActionScript vs MXML?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-use-infowindowrenderer-in-actionscript-vs/m-p/438234#M10188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can put the VBox in its own mxml file and then use a ClassFactory to create an IFactory instance that can be set on the infoWindowRenderer property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/core/ClassFactory.html"&gt;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/core/ClassFactory.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you named the mxml file, MyRenderer.mxml, it'd look like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myFeatureLayer.infoWindowRenderer = new ClassFactory(MyRenderer);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Nov 2010 22:56:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-use-infowindowrenderer-in-actionscript-vs/m-p/438234#M10188</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-11-21T22:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use infoWindowRenderer in ActionScript vs MXML?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-use-infowindowrenderer-in-actionscript-vs/m-p/438235#M10189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Here is some ActionScript code to do just like Dasa is talking about. Attached is a infoRenderer component that allows you to define the fields that will be displayed in the ActionScript code. It is a little rough (i.e. fields are not displayed in the order they are specified in the code but you can get the picture)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 04:30:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-use-infowindowrenderer-in-actionscript-vs/m-p/438235#M10189</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-11-22T04:30:30Z</dc:date>
    </item>
  </channel>
</rss>

