[flexcoders] How to know which DisplayObjects are underneath another?

2008-12-24 Thread huhgawz
Let's say you have a Canvas in which you create multiple instances of a Circle randomly positioned. Then you want to know which Circles are underneath the top most Circle (talking in z-order terms) in order to hide them all. Could you share an example of this? I would really appreciate any guidan

Re: [flexcoders] How to know which DisplayObjects are underneath another?

2008-12-24 Thread Lushen Wu
huhgawz, I think most UIComponents subclass DisplayObjectContainer, which has a method getChildIndex <#getChildIndex%28%29>(child:DisplayObject <../../flash/display/DisplayObject.html>):int <../../int.html> so call this to find the child index (basically z-order) of the lowest-ordered circ

Re: [flexcoders] How to know which DisplayObjects are underneath another?

2008-12-24 Thread Manish Jethani
On Wed, Dec 24, 2008 at 11:20 PM, huhgawz wrote: > Let's say you have a Canvas in which you create multiple instances of a > Circle randomly positioned. Then you want to know which Circles are > underneath the top most Circle (talking in z-order terms) in order to hide > them all. var n:int = c