[osflash] Mouse out of Stage solved?
Rákos Attila
tenegri at tengerstudio.com
Thu Apr 26 15:57:46 EDT 2007
ZD> OT?: Apologies if this *is* off topic, I thought an open solution
ZD> to this common problem would be useful.
I think it is a pure technical problem not related to open source
things, but this is my opinion only :)
ZD> OnRollOut will not work - if you move the mouse too fast off the
ZD> stage, flash will not respond to the rollOut (as the mouse has
ZD> moved move pixels per tick than flash can check i guess). In this
ZD> case the x,y position of the mouse becomes 'stuck' somewhere on
ZD> the flash movie. Its only in AS3 we have the introduction of the
ZD> new On Stage Leave event.
Well, I never experienced problems with detecting when the mouse rolls
out of a Flash movie. There is a movie, which detects roll out/over
and I couldn't make it go wrong (I mean the buttons always slide in
and out according to roll over and roll out):
http://www.tengerstudio.com/public/mouse
Maybe I'm simply not fast enough to move the mouse off the stage and
keep the movie hanging :) Can you make it 'stuck'? Please notify me on
success! Thanks :)
ZD> However this solution and an invisible border - will capture +/-
ZD> 95% of mouse out cases. The example I posted, to the best of my
ZD> knowledge seems to capture 100%.
I agree, an invisible border is a poor solution.
Attila
More information about the osflash
mailing list