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?Thanks,
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;
}