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 circle you want to have visible,

then iterate all the Children underneath that index using the property numChildren and method getChildAt <#getChildAt%28%29>(index:int <../../int.html>):DisplayObject <../../flash/display/DisplayObject.html>
and set them visible=false

ref:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/DisplayObjectContainer.html


Hope that helps..

Lushen


On 12/24/2008 12:50 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.

Could you share an example of this?

I would really appreciate any guidance....


Reply via email to