# Communicating between SWFs

**URL:** <https://forum.kirupa.com/t/communicating-between-swfs/283190>\
**Category:** flash\
**Created:** [March 3, 2009, 3:40pm UTC](https://forum.kirupa.com/t/communicating-between-swfs/283190 "2009-03-03T15:40:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beczesz](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@beczesz](https://forum.kirupa.com/u/beczesz)\
**Post date:** [March 3, 2009, 3:40pm UTC](https://forum.kirupa.com/t/communicating-between-swfs/283190/1 "2009-03-03T15:40:40Z")

</div>

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](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;
     }
	 ]]&gt;&lt;/mx:Script&gt;

```

\</mx:Application\>
