--- In flexcoders@yahoogroups.com, Richard Rodseth <rrods...@...> wrote:
>
> Thanks for the example, Amy. I was able to do this (on application complete
> in the host):
> 
>                                     loadedApp = event.target.application as
> Application;
>                                     loadedApp["configid"] = "Default";
> 
> and see the value in the loaded application.
> 
> public function set configid(id:String):void {
>                 this.config_id = id;
>  }
> 
> 
> I was also able to pass a parameter in the url, and access it in the loaded
> app's creationComplete via
> 
> this.parameters["config_id"] (not
> Application.application.parameters["config_id"]
> 
> But I have not been able to get this to work:
> 
>                                     loadedApp = event.target.application as
> Application;
>                                     if(!loadedApp) throw new Error();
>                                     loadedApp.parameters["config_id"] =
> "Default";
> 
> Loaded app's onCreationComplete()
> 
>                  this.config_id =
> Application.application.parameters["config_id"];

I can't help you, since I never ever refer to Application.application.  Why not 
pass it in instead of trying to grope for it?

Also, I don't think you can set flashVars parameters on something that's 
already loaded.

Reply via email to