Page 1 of 1

load tour swf into other swf

PostPosted: Fri Oct 25, 2013 4:51 am
by usrnm
Hello! Good news!

How to load tour swf into other swf?

Code: Select all
var loader:Loader = new Loader();
var url:URLRequest =  new URLRequest("index.swf");
var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
loader.load(url, loaderContext);

addChild(loader);


and

Code: Select all
var ldr:Loader = new Loader();
var url:String =  "index.swf";
var urlReq:URLRequest = new URLRequest(url);
ldr.load(urlReq);

addChild(ldr);


doesn't work, index.swf not displayed