Josh,

I can answer the first part: by setting a reference to component as a
property of another component when you instantiate the components. From
your description, I'm guessing you application needs to look something like
this:

MainApp.mxml
<mx:Application>
<mx:TabNavigator>
<local:ViewOne id="View1"/>
<local:ViewTwo id="View2" view1="{View1}"/>
</TabNavigator>...

Components:
ViewOne.mxml
<mx:Panel>
<mx:Label id="CatalogHeading" width="100" />....

ViewTwo.mxml
<mx:Panel>
<!-- properties -->
<mx:Object id="view1" />
<!-- you can now reference objects by ID in ViewOne as properties of the
view1 object -->
<mx:Label id="CartHeading" width="{view1.CatalogHeading.width}" />....


does that make sense?

Robert




________________________________

From: joshbronson630 [mailto:[EMAIL PROTECTED] 
Sent: Sunday, May 09, 2004 3:09 PM
To: [email protected]
Subject: [flexcoders] Visibility and Misc. Component Events


If an object in one custom component needs to access an object in 
another custom component, how can they see each other if they're in 
two different files?

For example, say I have an accordion in one file, and a TabNavigator 
in another file. When the user selects a particular Panel in the 
Accordion, it should bring a particular tab to the front, and when 
the user selects a particular tab in the TabNavigator, it should 
display a particular panel in the Accordion. How can the components 
in one file know about the components in another? And what are the 
events that bring a tab to the front and that display an Accordion 
panel?

Also, how do you access a particular node in a Tree? How do you 
automatically expand all nodes?

Sorry for these basic questions!

Thanks,
josh



________________________________

Yahoo! Groups Links


*       To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

*       To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 

*       Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> . 





Reply via email to