<?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 FeatureLayer Id from Graphic in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-id-from-graphic/m-p/83334#M1879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to get the featureLayer id from a graphic in the mouseOver handler?&amp;nbsp; I can get the graphic id from the event.target, but don't see a way to get the id from the related featureLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
private function onMouseOverHandler(event:MouseEvent):void {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var gr:Graphic = Graphic(event.target);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gr.symbol = mouseOverMarker;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapTip.htmlText = "&amp;lt;b&amp;gt;Info: &amp;lt;/b&amp;gt;" + gr.attributes.INFO.toString() + "\n"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + "&amp;lt;b&amp;gt;Date: &amp;lt;/b&amp;gt;" + gr.attributes.OBDATE.toString();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.label = "ID: " + gr.attributes.ID;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.closeButtonVisible = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.show(map.toMapFromStage(event.stageX, event.stageY));
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Glen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Aug 2011 10:12:04 GMT</pubDate>
    <dc:creator>GlenReid</dc:creator>
    <dc:date>2011-08-02T10:12:04Z</dc:date>
    <item>
      <title>FeatureLayer Id from Graphic</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-id-from-graphic/m-p/83334#M1879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to get the featureLayer id from a graphic in the mouseOver handler?&amp;nbsp; I can get the graphic id from the event.target, but don't see a way to get the id from the related featureLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
private function onMouseOverHandler(event:MouseEvent):void {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var gr:Graphic = Graphic(event.target);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gr.symbol = mouseOverMarker;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapTip.htmlText = "&amp;lt;b&amp;gt;Info: &amp;lt;/b&amp;gt;" + gr.attributes.INFO.toString() + "\n"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + "&amp;lt;b&amp;gt;Date: &amp;lt;/b&amp;gt;" + gr.attributes.OBDATE.toString();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.label = "ID: " + gr.attributes.ID;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.closeButtonVisible = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.show(map.toMapFromStage(event.stageX, event.stageY));
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Glen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 10:12:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-id-from-graphic/m-p/83334#M1879</guid>
      <dc:creator>GlenReid</dc:creator>
      <dc:date>2011-08-02T10:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer Id from Graphic</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-id-from-graphic/m-p/83335#M1880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All good -- the graphicsLayer id matches the featureLayer id.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 10:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-id-from-graphic/m-p/83335#M1880</guid>
      <dc:creator>GlenReid</dc:creator>
      <dc:date>2011-08-02T10:21:43Z</dc:date>
    </item>
  </channel>
</rss>

