So many deferential opinion and option, no wonder buyer struggle
I donāt have advice for you since I donāt know whats the big picture is, look like a template to me.
I usually build a class path manger that handles all this so i donāt need to go and wonder on my class.
Just find your own way to do it and strip your code to basic and start again. I am a big fan of logic, the more string value you have on the extended class itās harder(remember) to track things
Very well said, Tsafi, as a matter of fact I decided to start it all over again and found that the best way of achieving the desired result was to follow Steveās advice. All that and an extra Signals flavor
Hey DaniMun I found your post because I was looking for a similar solutionā¦ to the other devs, yes it is easier to just pass it in the URL, but one reason to pass a SWF could be to attach analytics inside of it
Anyways Dani I posted my question here and it got answered with great working code:
DaniMun said
Hey guys, was wondering if thatās doable - basically I have main.SWF into which Iām loading external.SWF and would need to pass the path to an XML file to external.SWF, so that external.SWF knows which XML to use.
/** code in main.SWF **/
import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
var ldr:Loader = new Loader();
var externalFullPath:String = "external.swf?xmlFile=different.xml";//here I'm specifying the path to the SWF file along with the XML that it should use
var rq:URLRequest = new URLRequest(externalFullPath);
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
ldr.load(rq);
function done(e:Event):void
{
addChild(e.target.content);
}