MovieClip mouse events & recursivity
Hi,
Let's say we have the following movieclips:
_root
_root.clip
_root.clip.sub_clip1
_root.clip.sub_clip2
now, if we add mouse events to the subclips, let's say
_root.clip.sub_clip1.onPress = function(){...} , it works
but if we add a mouse event to _root.clip, like
_root.clip.onRollOver = function(){...}
All the events associated to subclips are disabled...
my dirty workaround is to associate the same mouse event to all the subclips of the tree, but it becomes rapidly a big mess...
Could anyone tell me if there is a clean way to do this?
Thanks.
|