how would I make my rotating earth stop on mouse over.
I thought the easiest way is to remove the event listener.
I know my code does not make sense but it I think it is close.
Can anyone help with the logic?
the if statement line is where I think I am wrong…
here is my code.
any help? thx.
function mouseOver (event:MouseEvent):void {
var mOver = event.target.name
** if (mOver == earth_mc.MOUSE_OVER):void{**
earth_mc.removeEventListener(Event.ENTER_FRAME,moveEarth);
}