Dear Flashers,
I’m not desperate in need of a solution, but enlightenment is needed.
I’m colorizing a grayscale image with a Sprite and a Blend.OVERLAY.
Which works fine. Since the Sprite is on top and the Bitmap below - i’m using addChildAt().
The problem arises when i want to check if there’s Sprite/Bitmap at a level already. The numChildren returns the amount of children in the object but i cannot find a way to do the same on different levels?
Can I check the names of the objects added or is there a sweeter solution?
Thanks in advance,
Tor
If I am correct each level can only have one DisplayObject. If you wanted to know what DisplayObject is at a certain level you could:
getChildAt(index:int):DisplayObject
Returns the child display object instance that exists at the specified index.
getChildIndex(child:DisplayObject):int
Returns the index position of a child DisplayObject instance.
Not sure if you just need to check if there is a DisplayObject at that level or if you need the name or index.
- 12 August 2008 09:26 AM
-
- Log in or join for free to make a comment.


