[Flashcoders] Events for setChildIndex, swapChildren, swapChildrenAt

2011-02-06 Thread Jens Struwe
Does anybody know a way to catch z-index modifications? I would like to detect if a sprite becomes the first/last child of its parent at runtime. :-? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Events for setChildIndex, swapChildren, swapChildrenAt

2011-02-06 Thread ekameleon
Hello :) Extends the MovieClip or Sprite class and override the methods with custom event dispatch inside. EKA+ :) 2011/2/6 Jens Struwe j...@struwe.net Does anybody know a way to catch z-index modifications? I would like to detect if a sprite becomes the first/last child of its parent at

Re: [Flashcoders] Events for setChildIndex, swapChildren, swapChildrenAt

2011-02-06 Thread ekameleon
Sorry... I forget : or handle the added events with addEventListener( Event.ADDED , .. or addEventListener( Event.ADDED_TO_STAGE EKA+ :) 2011/2/6 ekameleon ekamel...@gmail.com Hello :) Extends the MovieClip or Sprite class and override the methods with custom event dispatch inside. EKA+

Re: [Flashcoders] Events for setChildIndex, swapChildren, swapChildrenAt

2011-02-06 Thread Henrik Andersson
ekameleon skriver: Sorry... I forget : or handle the added events with addEventListener( Event.ADDED , .. or addEventListener( Event.ADDED_TO_STAGE That's not enough, what about stuff getting removed? What about two things swapping positions? Is there even an event for the last thing?

Re: [Flashcoders] Events for setChildIndex, swapChildren, swapChildrenAt

2011-02-06 Thread Jens Struwe
What a quick response! Isn't it sunday in France? Well, I know of both methods. Unfortunately, I don't define the particular container that I wish to track. ... When I could route all setChildIndex calls globally to a custom method, I would be able to identify the affected parent and all