I have a movieclip on the stage called “anim_mc1”. Inside it is another movieclip, “holder_mc1”. Into this I’m loading an external swf via xml. The external swf has a stop(); in the first frame, and when the it is loaded into “holder_mc1”, I want to start playing it within “holder_mc1”. How do I code it so the swf will start playing when “holder_mc1” reaches say frame ten? Basically, “holder_mc1” is animated, and within that, the external swf will start playing when “holder_mc1” reaches a certain frame. Here is the loader I’m using:
//----xml loader----
//Create the loader, set dataFormat to text and listen when data is loaded
var myLoader:URLLoader = new URLLoader();
myLoader.dataFormat = URLLoaderDataFormat.TEXT;
myLoader.addEventListener(Event.COMPLETE, onLoadXML);
myLoader.load(new URLRequest(“xml/text.xml”));
function onLoadXML(ev:Event) {
try {
//Convert the downloaded text into a new XML object
var myXML:XML = new XML(ev.target.data);
var list:XMLList = myXML.menu;
//walks the XML list and shows in the textfields
for (var i=0; i<list.length(); i++) {
//menu titles
this[“Title_txt”+i].text = list*.name;
//images
var myLoader:Loader = new Loader();
this[“anim_mc” + i][“holder_mc” + i].addChild(myLoader);
myLoader.load(new URLRequest(list*.image));
}
} catch (e:TypeError) {
//Could not convert the data, probably because it’s not formatted correctly
trace(“Could not parse the XML”);
trace(e.message);
}
}
Any help would be greatly appreciated!
Thanks!
r