Parameter to swf loader with loader class
- by alejandrobog
Hi im loading a child swf into my parent swf and I want to pass some parameters to the child swf. Any idea on how to do this.
Here is my code:
var req:URLRequest = new URLRequest( "test.swf" );
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener( Event.COMPLETE, loadComplete );
loader.load(req);
function loadComplete(e:Event){
var childSwf:DisplayObject = e.target.content as DisplayObject;
//Im guessing here I need to set the parameter
VideoContainer.addChild(childSwf);
}