Actionscript 3.0 allow us to detect easily when the mouse leave the Flash Player, making it possible to avoid strange behavior of our clip. For example during “drag and drop” it can be useful to know when the mouse leave the stage. To do this you just have to use the Mouse Event : mouse_out 😉
stage.addEventListener(MouseEvent.MOUSE_OUT, outHandler);
Were outHandler is the function called by the listener.
To have the movie work you will need the New Flash Player.
Ahmet
Pingback: Metah Blog
Pingback: myFeedz - Articles on "actionscript"
Pingback: Home
could you send to me a code of tracking mouse.
i need it for my project
thank you!
Hi Hai Anh,
there is the code and a tutorials about it on my Actionscript 3.0 tutorials page (tracking the mouse). Hope it helps.
i want use it in MX 2004. but MX has not AS3. how do i do? and can you show me the use of mousetrap.as? i am a beginner