I am trying to draw a certain graphic on graphics layer and apply a move effect on it as it is being displayed. for the first time its working correctly and displaying the animation and the graphic as required. Once i do pan on the map and try to repeat the same behavior again nothing works correctly at all and the graphic is displayed in different area on the map or may disappear.
Here is the code below to try it:
graphicsLayer.clear();
var graphic:Graphic = new Graphic();
graphic.geometry = new MapPoint(bookmark.centerX,bookmark.centerY);
graphic.geometry.spatialReference = map.spatialReference;
graphicsLayer.add(graphic);
var moveBounce:Move = new Move();
moveBounce.target = graphic;
moveBounce.duration = 1500;
moveBounce.easer= new Bounce();
moveBounce.xFrom = map.toScreen((graphic.geometry as MapPoint)).x;
moveBounce.xBy = 0;
moveBounce.yFrom = map.toScreen((graphic.geometry as MapPoint)).y - 200;
moveBounce.yBy = 200;
moveBounce.play();
Any Ideas how to solve this issue