romain DR wrote:
Hi there,
first message here!
I m currently working on some dropdown. Get just a quick question!
how do I can close a dropdown with a click outside of the sprite?
I was thinking about adding a listener on holder_spr.stage but in that case the
listener fire even if I click on one of the option...
Am i clear?
Thanks a lot.
Romain
Add the listener to the stage, and dig from the target when you get the
event. Just keep going from parent to parent. If you hit a part of the
dropdown, stop looking and don't close. If you hit the stage, stop
looking and close.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders