you could set mouseChildren = false; on the the container.
This way the child mc's won't capture any mouse events.

Dennis
Isioux

----- Original Message ----- From: "ali drongo" <[email protected]>
To: <[email protected]>
Sent: Thursday, January 29, 2009 11:21 AM
Subject: [Flashcoders] capturing mouse events for layered sprites


Hi there, I have a square sprite that contains a background sprite on one
layer with another layer containing various shaped sprites. Each of these
sprites is a custom class that gives a mouse event.
My problem is that if I capture the mouse_over event for the container
sprite for some reason i get the mouse_out and and another mouse_over event
each time the mouse runs off one of the smaller sprites and over the
background.

Is there any way I can avoid this without using the mouse position?

Thanks in advance :)
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

__________ NOD32 3809 (20090129) Informatie __________

Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
http://www.nod32.nl



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to