Hi!
I have a loader swf, from which I want to transmit some parameters.
adaLoader = new Loader();
adaLoader.load(new URLRequest(“game.swf?id=2”);
In the game (receiver) project I get this variable with:
this.loaderInfo.parameters.id
and it works well.
But if I have mxml at the main class of the project, how can I do this thing???
I tried this, but it doesn,t work:
<mx:Application xmlns:mx=“http://www.adobe.com/2006/mxml” xmlns:cmp="*" layout=“absolute” creationComplete=“initVars()” >
<mx:Script> <![CDATA[
[Bindable]
public var str:String;
// Assign values to new properties.
private function initVars():void {
str = Application.application.parameters.isti;
}
]]></mx:Script>
</mx:Application>