# Duplicating MC's to get i/f

**URL:** <https://forum.kirupa.com/t/duplicating-mcs-to-get-i-f/178343>\
**Category:** flash\
**Created:** [February 9, 2006, 4:58pm UTC](https://forum.kirupa.com/t/duplicating-mcs-to-get-i-f/178343 "2006-02-09T16:58:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iflashtrated](https://avatars.discourse-cdn.com/v4/letter/i/c0e974/32.png) [@iflashtrated](https://forum.kirupa.com/u/iflashtrated)\
**Post date:** [February 9, 2006, 4:58pm UTC](https://forum.kirupa.com/t/duplicating-mcs-to-get-i-f/178343/1 "2006-02-09T16:58:20Z")

</div>

How can I duplicate a mc to generate an i/f like the blockbusters game? Its driving me mad. I can do something similer using the following code:

var counter = 0;  
var even = 0;  
var xvar = 0;  
var yvar = 0;  
do {  
duplicateMovieClip(pol, [“pol”+counter], this.getNextHighestDepth());  
if (counter%2 == 0) {  
xvar = xvar+57.9;  
yvar = yvar+31.1;  
\_root[“pol”+counter].\_x = xvar;  
\_root[“pol”+counter].\_y = yvar;  
} else {  
xvar = xvar+55.4;  
yvar = yvar-31.1;  
\_root[“pol”+counter].\_x = xvar;  
\_root[“pol”+counter].\_y = yvar;  
}  
\_root.pol.\_visible = 0;  
\_root[“pol”+counter].onPress = function() {  
\_root.anim.gotoAndPlay(2);  
};  
\_root.counter++;  
trace(counter);  
} while (counter\<=5);

Any suggestions?
