0
我正試圖在屏幕上移動一個'Shape'對象。當對象移動時,副本將留在初始位置。幾乎就好像只有一個原始對象的實例被移動了Flex 4:在屏幕上移動Shape對象 - 初始對象仍然是
這不是移動圖像或MXML圖形的問題。設置爲移動對象時是否有錯誤?
的代碼如下
private var arrow:UIComponent;
private function resetAssets():void{
arrow = new UIComponent();
Screen.addElement(arrow); //Screen is the area on screen for animation
var speedArrow:Shape=new Shape;
arrow.addChild(speedArrow1);
//speedArrow1 is created of type Shape and appears perfectly on screen
}
private function Animation():void{
var mvarrow1:Move = new Move();
mvarrow1.easer = new Linear(0,0);
mvarrow1.target = arrow;
mvarrow1.duration = 2000;
mvarrow1.xBy=200;
mvarrow1.play()
}