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
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
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+
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?
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
5 matches
Mail list logo