Hello
My code below executes fine in test movie mode (cntrl-enter), but when I publish and open the .swf file nothing happens. What am I doing wrong?
:crying:
stop();
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.net.URLRequest;
import flash.events.Event;
///
var myLoader:Loader = new Loader();
var myUrlReq:URLRequest = new URLRequest(“Prius.swf”);
myLoader.load(myUrlReq);
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaded);
function onLoaded(event:Event):void
{
holder_mc.x = 0;
holder_mc.y = 120;
holder_mc.addChild(myLoader.content);
}