Thanks Alex. It works perfectly!

--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> The 'this' pointer in the loaded app is the application.  
> Application.application is the top 
level application.
> 
>  
> 
> Thus, if you load this MXML as the loaded app with ?foo=bar you can access 
> the 
parameters as follows
> 
>  
> 
> <mx:Application initialize="showParams()" />
> 
> <mx:Script>
> 
> <![CDATA[
> 
>             private function showParams():void
> 
>             {
> 
>                         trace(parameters.foo);    
> 
>             }
> 
> ]]>
> 
> </mx:Script>
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
deltheil
> Sent: Monday, March 10, 2008 2:49 AM
> To: [email protected]
> Subject: [flexcoders] Re: SWFLoader stripping query string?
> 
>  
> 
> Thanks Alex for your reply!
> 
> I observed that if I use query string parameters I can access them from the 
> loaded app 
> through parent.loaderInfo.parameters.
> 
> Is it clean to do so?
> Do you have any recommendations or best practices with regards to apps 
> interactions?
> 
> Thanks again.
> 
> --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , 
> "Alex 
Harui" <aharui@> wrote:
> >
> > Remember that you can't use Application.application to check the parameters 
> > in the 
> loaded object.
> > 
> > 
> > 
> > ________________________________
> > 
> > From: [email protected] <mailto:flexcoders%40yahoogroups.com>  
[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On 
Behalf Of 
> deltheil
> > Sent: Friday, March 07, 2008 6:38 AM
> > To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] SWFLoader stripping query string?
> > 
> > 
> > 
> > Hi all,
> > 
> > I have a Flex app loading another Flex app and passing parameters through 
> > query 
> strings:
> > 
> > <mx:SWFLoader source="assets/apps/LoadedApp.swf?foo=bar" />
> > 
> > When I display the parameter value from the LoadedApp Application object, 
> > it is null. 
It 
> > seems that the SWFLoader strips the query string.
> > 
> > Does anyone have encounter such a problem?
> > Have any workaround?
> > 
> > Thanks!
> > 
> > Cédric
> >
>



Reply via email to