[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
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 runtime.

 :-?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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+ :)

 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 runtime.

 :-?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 depending 
children. @The hackers: How do I hack this? Is there some prototyping to 
such dirty things?



Am 06.02.2011 13:41, schrieb ekameleon:

Sorry... I forget :

or handle the added events with addEventListener( Event.ADDED , .. or
addEventListener( Event.ADDED_TO_STAGE

EKA+ :)

2011/2/6 ekameleonekamel...@gmail.com


Hello :)

Extends the MovieClip or Sprite class and override the methods with custom
event dispatch inside.

EKA+ :)

2011/2/6 Jens Struwej...@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 runtime.

:-?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders