i downloaded a ready made as3 xml application which uses xml to load photos and info
i am trying to load this movie inside my main move but i fail
my main movie is site.swf , i want to load gallery.swf (which uses xml) into sites.swf
when i try to do this i found nothing happened i think it is related to the xml file located inside a folder in the main folder as
site.swf is loading gallery.swf which is inside a folder called gallery which contains also the xml file
i am stuck at this problem for days
this is my code to load the swf file :
// This is the Loader instance that will load your SWF.var swfLoader:Loader = new Loader(); // URLRequest points to your external SWFvar swfFile:URLRequest = new URLRequest("sites.swf"); //create the container Movie Clip to load swfvar container:MovieClip= new MovieClip(); // Assign an event listener so that Flash informs you when the SWF has been loaded. swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoadedHandler); function swfLoadedHandler(e:Event):void { trace("swf loaded");} swfLoader.load(swfFile); //just add the loaded swf to containercontainer.addChild(swfLoader);//add container to the stage and make it visibleaddChild(container);