Hello,
I attached some movieclips dynamically from the library, and the MC contains a button symbol called “myBtn”, I would like to let it load another swf on _level3…below is part of my Actionscript.
[AS]
stop();
//-------------------------
this.container.myText.html = true;
this.container.myText.wordWrap = true;
this.container.myText.multiline = true;
this.container.myText.label.condenseWhite = true;
clip.myText._visible = false;
this.container.myTarget._visible = false;
for (var i = 0; i<projectsArray.length; i++) {
var item = this.container.attachMovie(“clip”, “clip”+i, i);
item._y = (item._height+5)i;
item.id = i;
getXML(item, i);
item.myTarget.loadMovie(“content/”+projectsArray+"/preview/thumb.jpg");
}
function getXML(clip, d) {
clip.aContent = new XML();
clip.aContent.ignoreWhite = true;
clip.aContent.load(“content/”+projectsArray[d]+"/preview/text.xml");
clip.aContent.onLoad = function(success) {
if (success) {
clip.myText.styleSheet = aStyle;
clip.myText.text = clip.aContent;
}
};
}
[/AS]
How would I go about targeting the button instance and tell it to load an swf?
Thank you for any replies,
Rufus