next frame movieclips
Hey
I am creating several buttons using a for loop - about 100 buttons.
for (var i: int = 0, total: int = xmlLengde; i < total; i++) {
bgmList.push(myXML..Song.songURL)
button1 = new Favorite();
button1.name = "favorite" + i;
button1.mouseChildren = false;
button1.y = button.y + (button.height - button1.height) / 2;
button1.x = button.x + button.width - 10 + button1.width / 2;
container1.addChild(button1);
}
I have an array like this:// this is traced - FavoritterID: 5,6,1,2,13,88,73.
All the buttons are movieclips that has 2 frames.
What I want to do now is make favorite5, favorite6, favorite1 and so forth go to next frame.
I have tried this and a few other things. Doesnt seem to work.
for(var ii: int =0, ii<FavoritterID.length; ii++){
button1.nextFrame();
favorite+i.nextFrame();
}
thanks
