The trace action is giving the correct individual clip on rollover, and the correct frame based on the i variable but this[“button”+i] doesn’t seem to be assigning to control the instance on the goto action.
Could anybody help with this??
clips = 4;
for (var i = 1; i<=clips; i++) {
this["button"+i].i = i;
this["button"+i].onRollOver = function() {
trace("clip"+[this.i]);
"clip"+[this.i].gotoAndStop(this.i);
};
}