actionscript 3 - URLRequest file information pass through -


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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -