> adding event listeners does not add overhead does it?
 
Not enough to worry about. But Alex's later reply had a better solution
using the capture phase that doesn't require adding as many listeners.
 
> when a parent container is hidden how does it hide the children
 
When you set the 'visible' property of a DisplayObjectContainer to
false, the Flash Player doesn't render that container or any of its
descendants.
 
- Gordon

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from
dorktown
Sent: Tuesday, March 06, 2007 9:59 PM
To: [email protected]
Subject: Re: [flexcomponents]Event that tells me when parent is hidden
or shown



ok. thanks gordon. so i just iterated up the chain adding event
listeners i should be ok. adding event listeners does not add overhead
does it? its the functions that get called that can add overhead right? 

one more additional question. when a parent container is hidden how does
it hide the children? i thought it removed them through removeChild but
no event is dispatched. in fact no hide, remove, removed or
removeFromStage event is triggered when a parent container is hidden. 


On 06 Mar 2007 21:36:03 -0800, Gordon Smith <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

        

        I think your component will have to listen to 'show' and 'hide'
events from each of its ancestors.
         
        - Gordon

________________________________

        From: [email protected]
<mailto:[email protected]>
[mailto:[email protected] <mailto:[EMAIL PROTECTED]> ] On
Behalf Of dorkie dork from dorktown
        Sent: Tuesday, March 06, 2007 8:00 PM
        To: [email protected]
<mailto:[email protected]> 
        Subject: [flexcomponents]Event that tells me when parent is
hidden or shown
        
        
        

        I have a component that needs to know when a parent, grand
parent, great grand parent etc, is hidden and when it is shown. The hide
and show events never seem to be called on the children of a container
that is hidden or shown. 
        

        

        


 

Reply via email to