Groups | Blog | Home
all groups > flash actionscript > july 2006 >

flash actionscript : Movie Clip Event Handler block button event handlers


Jen Fraser
7/12/2006 10:00:11 PM
Hello - really needing some help!

I have a movie clip that contains a button. (i.e. my_mc.my_btn)

I have some event handlers for the movie clip (my_mc.onRollOut,
my_mc.onRelease, etc..) and they are working fine.

However, after I add these event handlers to deal with the movie clip, my
buttons inside my movie clip quit working all together. It's like the movie
clip handlers are overridding the button functionality.

How can I use movie clip handlers and my buttons inside continue to work?

Help!
blemmo
7/12/2006 10:12:03 PM
You're right, parent events are overriding, or stealing, the events of nested
children. See this article for ways to deal with that:
http://www.senocular.com/flash/tutorials/buttoncapturing/.

greets,
blemmo
Jen Fraser
7/12/2006 10:17:21 PM
blemmo
7/12/2006 10:51:47 PM
You're welcome. The senocular site has some great in-depth tutorials covering basic but important things, well worth a bookmark. ;)

cheers,
AddThis Social Bookmark Button