Parameter to swf loaded with loader class
Posted
by alejandrobog
on Stack Overflow
See other posts from Stack Overflow
or by alejandrobog
Published on 2010-04-15T22:59:23Z
Indexed on
2010/04/16
7:53 UTC
Read the original article
Hit count: 196
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);
}
© Stack Overflow or respective owner