Hi everyone,

   I joined this list a while ago and haven't really found an article to
reply to but I was following this thread for a while and I've
experienced the same issue. The problem doesn't appear on the simple
clips like Rákos' demo but complex movies with a lot of scripting. Roll
off events are sometimes (in fact often) not fired. This has been a
common problem on numerous projects I've worked on and there is no
effective solution. JavaScript isn't a useful way to capture roll-offs
and without the onStageLeave event (i.e. prior to AS3), there really is
no reliable way to capture this. (BTW, I haven't yet coded in AS 3 so
take my comments on that with a large grain of salt!)

   My solution has always been just have the UI slide/fade/otherwise
disappear when the mouse doesn't move for a specified amount of time.
Of course this applies to times when the mouse is on the UI as well but
that's the only solution I can come up with. I also mulled the
invisible border solution and even that doesn't work some of the time
(same problem -- the border would need to be huge!). I should mention
that I've tried solving this problem from numerous other angles as
well: using buttons (the basic Flash kind), MovieClip buttons, script
to track mouse movements, timers, JavaScript...nothing works reliably.

  If anyone finds a solution, I would *love* to hear it!

Patrick


>
> 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
>
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>


-- 
       __/ BAY NEW MEDIA \__
http://www.baynewmedia.com\

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to