for (i=0; i<6; i++) { this["b"+i].onRollOver = function() { this.gotoAndPlay(2); }; this["b"+i].onRollOut = function() { this.gotoAndPlay(11); }; this["b"+i].onRelease = function() { trace("Release"); }; }