Skip to main content
January 11, 2008
Question

stopping mouse events on a movieclip

  • January 11, 2008
  • 1 reply
  • 235 views
I cannot figure out how to stop mouse events on a movie clip.

I have a Sprite, which I've registered a mouse event listener on. The sprite has a movieclip as a child. The movieclip is a SWF loaded using a Loader.

When the SWF is done loading, I try to disable all mouse events on the SWF by doing the first section of code below.

Then, in my mouse listener, I print out the values of what is triggering the mouse event.

I can't figure out what is going on... it seems that a movie clip with mouseEnabled == false is triggering the mouse event. Any ideas?

The output of my trace is:

1 [object MovieClip]false
2 [object MovieClip]true
3 [object MovieClip]true

This topic has been closed for replies.

1 reply

January 11, 2008
Ah it appears my problem was that I didn't realize you had to manually go through all the frames of the movieclip and find and disable objects. doing that seems to work.

Does that mean that getChildAt() returns different things depending on what frame the movie clip is currently on?