In AS3 this would load loadme.swf into my holding mc (contentmc) provided both the holding swf and loadme.swf are in the same directory
var loaderMC:Loader=new Loader();
loaderMC.load(new URLRequest(“loadme.swf”));
contentmc.addChild(loaderMC);
But it does not work in AIR. Any reason why? what am i missing out or is there a new way to do it?
thanks
I’m also wondering this. My current theory is that “loadme.swf” defaults to three different things, based on several factors:
If it’s a local file– "file://./loadme.swf"
If it’s a remote file- "http://./loadme.swf"
If it’s a file in AIR- “app://./loadme.swf”
You may want to try typing it out fully, “file://./loadme.swf”, so that it knows where to look.
thanks for the suggestion but i dont think think it works…cos i tried it and it gave me a URL cannot be found msg…
Any more ideas? or is there a way for AIR to “look in this application’s path” directly?
thanks
murtaza