# Random motion tutorial with multiple movies

**URL:** https://forum.kirupa.com/t/random-motion-tutorial-with-multiple-movies/201960
**Category:** flash
**Created:** [September 26, 2006, 4:37pm UTC](https://forum.kirupa.com/t/random-motion-tutorial-with-multiple-movies/201960 "2006-09-26T16:37:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nasu](https://avatars.discourse-cdn.com/v4/letter/n/e9bcb4/32.png) [@nasu](https://forum.kirupa.com/u/nasu)
#### Post date: [September 26, 2006, 4:37pm UTC](https://forum.kirupa.com/t/random-motion-tutorial-with-multiple-movies/201960/1 "2006-09-26T16:37:16Z")

</div>

Hi,

The random motion tutorial works just perfectly with one movieclip, but when I try to make a new movie clip and assign the same code to it, it really doesn’t duplicate at all. The original movieclip has an instance name of dot so I created a new movieclip with instance name of dottwo.

But for some reasob the following code doesn’t duplicate the dottwo at all

i = 0;  
while (i\<25) {  
dot.duplicateMovieClip(“dot”+i, i);  
dottwo.duplicateMovieClip(“dottwo”+i, i);  
i++;  
}

any suggestions?
