One solution I've used in the past was to use collapse() and
cancelCollapse() methods. The parent rollover would use setInterval()
to call collapse() on a delay of a few milliseconds giving the child
onRollOver events the ability to be handled first. The child buttons
would call cancelCollapse() on roll over which was basically a
clearInterval() call. If cancelCollapse() wasn't called by a button
then collapse() would eventually be called by setInterval().
James O'Reilly — Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train
Holth, Daniel C. wrote:
It seems like in many of the projects I'm doing I need to have
simultaneous onRollOver events. For example, a small movie clip with
additional buttons needs to enlarge when the mouse is over it so the
user can clearly click the buttons. However, when the user mouses over
a button, flash no longer detects that the mouse is still over the
movieclip and thus executes the onRollOut event making the movieclip
shrink and the user can't see the buttons clearly anymore.
I've used some code which can tell if the mouse is over an object, and
attaching that to onMouseMove events can basically make two mouse overs.
While its not checking the mouse position every frame, its still not as
efficient as I'd like.
Does anyone have any thoughts on a more efficient way to detect two
mouse over events at the same time?
Thanks!
Daniel Holth
This e-mail and its attachments are intended only for the use of the
addressee(s) and may contain privileged, confidential or proprietary
information. If you are not the intended recipient, or the employee or agent
responsible for delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution, displaying, copying, or
use of this information is strictly prohibited. If you have received this
communication in error, please inform the sender immediately and delete and
destroy any record of this message. Thank you.
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com