I never found a good solution, either, without using code in the HTML
page. I even tried setting a clip to look for the mouse and execute a
function if the mouse wasn't found, but that failed (for reasons you explain).
If you can keep your buttons away from the edges of the movie, you
can use an underlying button or an onMouseMove action to detect when
the mouse is in that marginal area. You need a fast enough frame rate
so the mouse position is captured during the time it passes over the
marginal area. Someone with very fast mouse movement will probably be
able to defeat this.
Marc
At 01:10 AM 11/23/2005, you wrote:
Hi coders.
This has been up before, and I have done some own tests and searched the
archives as well.
But I can't find the solution, if there is any.
I want a certain thing to happen in my flash when the mouse moves
outside flash. Since the _xmouse/_ymouse stops updating when dragged
outside you cant rely on them (they do work WHEN mouse is pressed and
dragged out from the swf, but that is of course not a solution)
I have also tried to add a big 'button' which has onRollOut/onDragOut
attached to it, but the problem is that button-events above it will
disable the underlying one.
So what I know of there is no solution to this problem, but probably
some decent hacks?
I am not interested in a solution which requires code in the html-page
or so, but if you have such one I would like to know about it as well.
But mainly I wish to know a solution in which flash internally can say
if the mouse-cursor is outside the flash in the html-page.
Thanks Coders
/ martin
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders