If you have
<Application>
<MyContainer id="myContainer">
<MyControl id="myControl"/>
</myContainer>
</Application>
then in the Application's <Script> you can simply refer to the
MyContainer instance as myContainer and to the MyControl instance as
myControl (NOT myContainer.myControl).
In MyContainer's <Script> you can refer to the Application instance as
parentDocument or as Application.application.
In MyControls' <Script> you can refer to to the MyContainer instance as
parentDocument and to the Application instance as
parentDocument.parentDocument or as Application.application.
In general, you can access anything from anywhere.
Gordon Smith
Adobe Flex SDK Team
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of timgerr
Sent: Tuesday, April 15, 2008 8:20 PM
To: [email protected]
Subject: [flexcoders] Flex Compenents, how to make them talk
I was wondering if I create a Flex Application and have 5 Flex
components that integrate within my Flex App, how can they all talk to
each other???? Since they do not know about each other till the swf
file is compiled, I am unable to have one component event trigger
something on another component because they dont know about each other.
Thanks for the help,
Timgerr