actionscript 3 - URLRequest file information pass through -
this question has answer here:
i have code;
function awesomefn():void { var filepath:string = "awesome" + ".swf"; filerequest = new urlrequest(filepath); fileloader = new loader; fileloader.load(filerequest); fileloader.contentloaderinfo.addeventlistener(event.complete, loadcompleted); stage.addchild(fileloader); } function loadcompleted(e:event) { ... }
so question is: can awesome.swf know call main swf or standalone run?
you provide public function in "awesome.swf" call in case of loading in parent-swf.
or add eventlistener of type event.added_to_stage
in "awesome.swf" fire only, if "awesome.swf" added parent-stage.
Comments
Post a Comment