counter = 1; while(counter <= 5) { var clip:MovieClip = _root.attachMovie("but_mc", "but_mc"+counter, counter); trace(clip); counter++; }