I am trying to make an updateable gallery by duplicating movie clips, and having each movie clip act as a button that when pressed willl load an image into an imageHolder. I cannot seem to assign a unique variable to each new movie clip. This is the script I have so far...
// make the duplicated MC invisible
this.button_mc._visible=0;
//the current movie being duplicated
current=0;
//how many buttons needed
imageCount=5;
//the space between each button
yIncrement=22;
// the initial offset
yOffset=this.button_mc._y;
this.onEnterFrame=function(){
if (current<imageCount){
var y:Number=current*yIncrement;
this.button_mc.duplicateMovieClip("button_mc"+curr ent, current);
this["button_mc"+current]._y+=y;
this["button_mc"+current].loadMovie("images/wedding/thumbs/image"+[current+1]+".jpg");
//this is where I am having a problem...
this["button_mc"+current].loader=["image"+current];
++current;
} else {
}
};
any help is greatly appreciated.