I believe the subapp is SWFLoader.content.application
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, October 24, 2007 10:03 AM To: [email protected] Subject: RE: [flexcoders] Some questions related to the SWFLoader Yes. >From the *loaded* app, you can reference the main app scope using Application.application. To reach the loaded app scope from the *parent*, use the SWFLoader.content property. Thee are some dataType and timing issues during initialize you should be aware of. Here is a complete but simple example, built on the Adobe doc example, that does all of this. http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI D=690 <http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&object ID=690> Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Alejandro Narancio Sent: Tuesday, October 23, 2007 12:25 PM To: [email protected] Subject: [flexcoders] Some questions related to the SWFLoader Hi all, first of all hi to evveryone! I am working with the SWFLoader and I have some questions that maybe some of you know it. Here is my problem I have 2 MXML: First one: First.mxml <?xml version=" 1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " width="768" height="432" layout="absolute" applicationComplete="moveInitial();readXML();" backgroundAlpha="0" xmlns:controls="com.infuy.*"> <mx:Script> <![CDATA[ public function callFromParent(param1: String): void { } public function callToParent(): void { } ]]> </mx:Script> <mx:Panel id="pnMain" x="23" y="24" width="315" height="362" layout="absolute"> <mx:Button id="btFirst" label="Now Playing"/> </mx:Panel> </mx:Application> And the second: Second.mxml: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " width="768" height="432" layout="absolute" applicationComplete="moveInitial();readXML();" backgroundAlpha="0" xmlns:controls="com.infuy.*"> <mx:Script> <![CDATA[ public function callFromChild(): void { } public function callToChild(): void { } ]]> </mx:Script> <mx:Panel id="pnMain" x="23" y="24" width="315" height="362" layout="absolute"> <mx:SWFLoader id="Load" source="@Embed(source='First.swf')" height="100" width="350"/> </mx:Panel> </mx:Application> Here are my questions: 1.- Is it possible from First.mxml call to a function in Second.mxml? 2.- Is it possible from Second.mxml call to a function in First.mxml? Any help will be very useful. Thanks a lot in advance, Alejandro

