deteecting mouse out
- Started
- Last post
- 5 Responses
- ********
hey. I'm making a banner. I have movement within the banner based on the mouse position -
how do i detect when the cursor is totally off the stage?
thanks in advance.
- JamesEngage0
you could do a test of it's it's near the edge, and hasn't moved for a while... as of course the mouse movement will stop and if you're not over the movie it won't pick up a mouseout
- mcLeod0
maybe try an if/then statement using the movie's width and height, along the lines of constrain to rectangle.
if (the mouse goes beyond x,y) (then stop the movement)
- jpea0
stop()
if (_root._xmouse200 || _root._ymouse30) {
_root.play(35);
} else {
play();
}maybe something like that
- jpea0
whoops.. forgot 2 of the coordinates.
stop();
if (_root._xmouse200 || _root._ymouse35) {
_root.play(35);
} else {
play();
}
- ********0
yeah, all i can think of are workarounds. I was just wondering if there's a listener or a property or something in flash that does this. thanks everyone.