2015年4月8日 星期三

actionscript - movieclip move mouse


stage.addEventListener(MouseEvent.MOUSE_MOVE, moving);

function moving(event:MouseEvent)  
{  
    ball1.x = stage.mouseX;
    ball1.y = stage.mouseY;
}   

沒有留言:

張貼留言