// Author: Robert Lie (Mobilefish.com) // More information, see: https://www.mobilefish.com/developer/flash/flash_quickguide_actionscript_3_examples.html star_mc.addEventListener(MouseEvent.CLICK, moveStar); function moveStar(event:MouseEvent):void { event.target.x += -100 + Math.floor(Math.random() * 201); // Values between -10 and 10; event.target.y += -100 + Math.floor(Math.random() * 201); // Values between -10 and 10; event.target.rotation = Math.floor(Math.random() * 360); // Rotation angles: 0 - 259 } star_mc.buttonMode = true;