all groups > flash actionscript > december 2005 >
You're in the

flash actionscript

group:

buttons and event handlers


buttons and event handlers k-doggie
12/27/2005 9:37:24 PM
flash actionscript:
I'm currently using Flash MX. I created a movie clip that is controlled by
event handlers.
But when I try to create a button inside of that movie clip, the button dosn't
work. It there a work around for this that allows me to keep my event handlers?

Thanks


Re: buttons and event handlers kglad
12/28/2005 2:22:53 AM
you can code mouse event handlers for the youngest descendent that needs
handlers. all handlers should be for this generation or handlers defined for
ancestor movieclips will intercept mouse events and the descendents will not
respond.

you can also use hitTest() instead of mouse handlers to work-around this
situation but must initiate a loop to continually evaluate your hitTest().
AddThis Social Bookmark Button