PDA

View Full Version : Problem with eventhandler


flashlexi62
02-17-2008, 02:24 PM
Hello,

I'm a newbie with Actionscript 3, but try my best to learn it. So far i got hardly everything going, but now I got stuck with an eventhandler problem. My main timeline has only 1 frame which contains several layers which themselves contain movieclips ( and even movieclips in movieclips), background etc.

So in one layer i got a movie clip, which again contains a movieclip, with buttons inside (kind of dynamic menu appears on demand), so construction is:

root.mc.mc.button

therefore I set an eventhandler which gets the mouseclicks. The buttons work fine the first time the ymovie with the buttons appears. Then another function in the animation "hides" the mc with buttons in it behind a mask. Once the mc with the buttons on it appears again (moves out of the mask) the buttons wont react to mouseclicks any more (but they still correspond to the buttons-states like over, clicked etc.)

It feels like the eventhandler isn't reacting anymore. Anybody any idea? How can I find out if the eventhandler still exists? Any help is welcome

All the code is in the main timeline frame 1.

thanks in advance

Alex