I’ve been trying to use attachMovie with an array and can’t seem to get anywhere with it. First I’ve got mc’s loading a set of buttons with attachMovie which I’ve got written like this, using an array:
for (i=0; i<testInfo.length; i++) {
attachMovie("container", "new"+i, i, {_x:xPos, _y:yPos});
yPos += this["new"+i]._height+20;
this["new"+i].title_txt.text = testInfo*[0];
this["new"+i].desc_txt.text = testInfo*[1];
this["new"+i].image = testInfo*[2];
};
And that works fine. Then inside the mc’s that load, there is a button which uses this:
loadPic_btn.onRelease = function(){
this.imageHolder_mc.attachMovie("image", "image", 5);
};
So the array’s third node, which is a linkage identifier, is called “image” in the for loop, which should access the mc from the library, but it refuses to work.
Any help would be appreciated.