I’ve created a for loop to go through all 18 of my buttons and assign them button actions. I’m having trouble because after the first one its assigning them all the same button action when it shouldn’t. I want it to increment accordingly. Heres the code I’ve done so far:
for (var i = 0; i<= 3; i++) {
var aBtn = menu[“m” + i];
aBtn.onRelease = function() {
contentHolder.gotoAndStop([“s” + i]);
trace("button works " + );
}/
menu.m*.onRelease = function() {
contentHolder.gotoAndStop(s*);
trace("button works " + );
}/
trace("button = " + *);
trace("aBtn = " + aBtn);
}