/ Published in: ActionScript 3
Add the stage event listener to a function that fires when the stage is ready.
Replace myMC with what ever movieclip you want to move.
Expand |
Embed | Plain Text
stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler); function mouseMoveHandler(evt:MouseEvent):void { myMC.x = evt.stageX; myMC.y = evt.stageY; }
You need to login to post a comment.
