<?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: Track a Point Dynamically in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/track-a-point-dynamically/m-p/142039#M3300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try just changing the graphic's symbol to a PictureMarkerSymbol whose source points to your swf when you mouse over the graphic and change it back when you mouse out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reference:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/symbols/PictureMarkerSymbol.html"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/symbols/PictureMarkerSymbol.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Aug 2010 19:17:59 GMT</pubDate>
    <dc:creator>DasaPaddock</dc:creator>
    <dc:date>2010-08-26T19:17:59Z</dc:date>
    <item>
      <title>Track a Point Dynamically</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/track-a-point-dynamically/m-p/142038#M3299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was using a swfloader to display a hover effect on a graphic. I later realize the swf stays at the same screen location when zooming or panning around. I know my logic is flawed but I'm not sure exactly how to fix it. Can someone suggest a good way to keep track of graphic location so that swf's position is updated accordingly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
myGraphic.addEventListener(MouseEvent.MOUSE_OVER, hoverHandler);

private function hoverHanlder(event:MouseEvent):void
{
 var pt:Point = map.toScreen(event.currentTarget.geometry as MapPoint);
 mySwf.visible = true;
 mySwf.x = pt.x;
 mySwf.y = pt.y;
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 18:52:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/track-a-point-dynamically/m-p/142038#M3299</guid>
      <dc:creator>JasonLin</dc:creator>
      <dc:date>2010-08-26T18:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Track a Point Dynamically</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/track-a-point-dynamically/m-p/142039#M3300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try just changing the graphic's symbol to a PictureMarkerSymbol whose source points to your swf when you mouse over the graphic and change it back when you mouse out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reference:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/symbols/PictureMarkerSymbol.html"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/symbols/PictureMarkerSymbol.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 19:17:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/track-a-point-dynamically/m-p/142039#M3300</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-08-26T19:17:59Z</dc:date>
    </item>
  </channel>
</rss>

