[osflash] MovieClip events swallowed ?

Sébastien Pierre sebastien-lists at type-z.org
Wed Aug 24 02:28:36 PDT 2005


Hello there,

I encounter a behaviour that seems odd with the way events are handled 
by movie clips. Here is my situation :

- I have one "container" MovieClip that dozens of smaller MovieClips
- I added onPress/onRelease handler to the smaller MovieClips that allow 
to drag them within the container
- I then decided to allow the container to be dragged as well by adding 
onPress/onRelease handlers

However, when doing this last step, the smaller MovieClips do not 
react/perceive onPress/onRelease events anymore. It seems like the 
"container" MovieClip swallows all events.

I would have expected that the events would be forwarded to the visible 
directly below the mouse cursor, but this is not what happens. Is this 
normal ? And if so, how can I do to explicitely forward the event to the 
smaller movie clips ?

TIA,

  -- Sébastien




More information about the osflash mailing list