[flexcoders] Check to see if component is visible

2009-05-04 Thread mmormando
Sorry if this explained in detail somewhere, but if it is I haven't been able 
to find it. I've got modules embedded in tabs, if the module isn't visible I 
don't want it to react to certain eventsthe problem is, every component 
I've checked, including the module itself, the visible property is true. One 
suggestion I did find said that perhaps something in the parent chain would 
show as visible false...but this does not appear to be the case. 
Anyone have any suggestions? 
tia
Mike




RE: [flexcoders] Check to see if component is visible

2009-05-04 Thread Alex Harui
If you did:

mx:TabNavigator
mx:ModuleLoader
mx:ModuleLoader

then the ModuleLoader for the tab that is not selected should have visible=false

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of mmormando
Sent: Monday, May 04, 2009 1:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Check to see if component is visible





Sorry if this explained in detail somewhere, but if it is I haven't been able 
to find it. I've got modules embedded in tabs, if the module isn't visible I 
don't want it to react to certain eventsthe problem is, every component 
I've checked, including the module itself, the visible property is true. One 
suggestion I did find said that perhaps something in the parent chain would 
show as visible false...but this does not appear to be the case.
Anyone have any suggestions?
tia
Mike