var myMC:MovieClip; var i = 1; var pad = 5; while (i<6) { trace(" i : "+i); myMC.duplicateMovieClip("myMC"+i, i); myMC.removeMovieClip(); this["myMC"+i]._x = this["myMC"+(i-1)]._x+(this["myMC"+(i-1)]._width)+pad; this["myMC"+i].onRollOver = function() { trace(this); }; i++; }