Question
Load two AS2 SWFs in AS3
I have an issue where I have an AS3 project that is loading
two AS2 swfs and passing parameters to the swf which then get set
in _root variables on each of those swfs. If the two swfs come from
the same domain, they overwrite each other so only one works but if
the two swfs are from different domains they each have their own
_root and work independently and great. Is there any way to force
the two AS2 swfs at the same domain to not share the same _root
when they are loaded into AS3? Here is what I am talking about:
var url:URLRequest=new URLRequest(" http://www.example.com/as2.swf?var=a");
var ldr:Loader=new Loader();
ldr.load(url);
addChild(ldr);
var url2:URLRequest=new URLRequest(" http://www.example.com/as2b.swf?var=b");
var ldr2:Loader=new Loader();
ldr2.load(url2);
addChild(ldr2);
Depending on which swf gets loaded first, the second swf will overwrite the parameter 'var' in the other swf's root.
var url:URLRequest=new URLRequest(" http://www.example.com/as2.swf?var=a");
var ldr:Loader=new Loader();
ldr.load(url);
addChild(ldr);
var url2:URLRequest=new URLRequest(" http://www.example.com/as2b.swf?var=b");
var ldr2:Loader=new Loader();
ldr2.load(url2);
addChild(ldr2);
Depending on which swf gets loaded first, the second swf will overwrite the parameter 'var' in the other swf's root.