# duplicateMovieClip Problem

**URL:** <https://forum.kirupa.com/t/duplicatemovieclip-problem/244511>\
**Category:** flash\
**Created:** [November 19, 2007, 7:26am UTC](https://forum.kirupa.com/t/duplicatemovieclip-problem/244511 "2007-11-19T07:26:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Post date:** [November 19, 2007, 7:26am UTC](https://forum.kirupa.com/t/duplicatemovieclip-problem/244511/1 "2007-11-19T07:26:29Z")

</div>

I have a movie clip that contains for different frames (with stop() actions on each frame), but “gotoAndPlay” is ignored in the code below. Does anyone know why?

```auto
for (var i = 0; i < 100; i++) {
    whichFlake = Math.floor(Math.random() * 4) + 1;
    snowflake_a.duplicateMovieClip("snowflake_" + i,i);
    snowflake_a["snowflake_" + i].gotoAndPlay(whichFlake);
}

```
