I was trying to move Picture Maker using edit tool but when i activate it on mouse click event. I didnot get the target as graphic rather i get it as "CustomSprite". How can I move a picture graphic.
Here is what i was trying to do
private function activateEditTool(event:MouseEvent):void
{
if (event.target is Graphic)
{
myEditTool.activate(EditTool.MOVE, [ Graphic(event.target)]);
}
}
protected function myGraphicsLayer_graphicAddHandler(event:GraphicEvent):void
{
event.graphic.addEventListener(MouseEvent.CLICK, activateEditTool);
}
Thanks and Best Regards
Rouf