This content has been marked as final. Show 10 replies
when u say stage u mean swf file background inside html ? or you mean just some space inside the main flash movie ?
As I know there is no way to detect when the mouse will out from flash movie inside html, at last with actiosncript only.
I hear that in AS3 there is a way to detect it. look at Event.MOUSE_LEAVE event.
Yes, I want to detect when the cursor leaves the stage area. Someone must have found a good solution to this it has too many useful applications.
There is no Actionscript way to do this before AS3.
In AS2 you can also make a button the size of the stage and detect
onRollOut - this, however, limits other kinds of interactivity and, if I
remember right, may not work for all browsers (though last I recall, it was
a mac os9 thing - its been so long since I tried myself).
"Rothrock" <email@example.com> wrote in message
> There is no Actionscript way to do this before AS3.
> If the swf has been put into an html page my understanding is you can use
What about putting either a thin invisible border just inside of the frame,
or it might take 4 separate lines around the border and detect if they
rollover that. Or check if the mouse x is less than 0, greater than the
width, or the same for the top and bottom?
I might have to code something like this myself in the next few days which
is why it caught my attention.
"nudnic" <firstname.lastname@example.org> wrote in message
> Yes, I want to detect when the cursor leaves the stage area. Someone must
> have found a good solution to this it has too many useful applications.
Thanks that was a quick reply. This looks like it's on to the right idea. But, it doesn't seem to work in FireFox? There must be a reliable solution some where?
i don't know about that. search using google and see.