Question
stopping mouse events on a movieclip
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
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