# GotoAndPlay Problem (when I use duplicatemovieclip)

**URL:** https://forum.kirupa.com/t/gotoandplay-problem-when-i-use-duplicatemovieclip/13860
**Category:** flash
**Created:** [February 19, 2003, 12:33am UTC](https://forum.kirupa.com/t/gotoandplay-problem-when-i-use-duplicatemovieclip/13860 "2003-02-19T00:33:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.kirupa.com/u/Robert)
#### Post date: [February 19, 2003, 12:33am UTC](https://forum.kirupa.com/t/gotoandplay-problem-when-i-use-duplicatemovieclip/13860/1 "2003-02-19T00:33:25Z")

</div>

Problem is simple and anoying.

I have simple MC (15 frames, name: TestMov)

On the first frame of this movie I have stop();

I want to duplicate this movie (duplicatemoviclip) and to start playing new movie from frame 2.

This is my button code:

on (release) {  
TestMov.duplicateMovieClip(“TestMov1”, 1);  
TestMov1.\_y = TestMov1.\_y + 100;  
TestMov1.gotoAndPlay(2);  
}

After TestMov1.gotoAndPlay(2) is executed, script just stops on second frame, doesn’t continue to the next frame. ???

If I remove first frame stop(), then gotoAndPlay(2) is working, (start from 2 and continue on the next frame, and so on…)

I’m sure I did this before and I didn’t have any problems. What I’m doing wrong.

Here is example.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 19, 2003, 2:39pm UTC](https://forum.kirupa.com/t/gotoandplay-problem-when-i-use-duplicatemovieclip/13860/2 "2003-02-19T14:39:47Z")

</div>

it sees to work just fine, after you put your stop action in symbol 2 away.  
or didn’t you mean that?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 19, 2003, 3:44pm UTC](https://forum.kirupa.com/t/gotoandplay-problem-when-i-use-duplicatemovieclip/13860/3 "2003-02-19T15:44:18Z")

</div>

I’m not sure I understood what did you mean…

When I delete **stop()** in first frame, then **gotoAndPlay(2)** is working fine, but that’s not what I want. I have to have that **stop()** on first frame, so movie will bi initiated and stoped on the first frame, then later on, I can issue **gotoAndPlay(2)** to continue the movie clip. This doesnt work if you duplicte movie with **DuplicatMovieClip**. On the new created movie, **gotoAndPlay** doesn’t work.

I’ve just found wierd solution for this…  
I put in the second (2.) frame of the MC **gotoAndPlay(3)**, now is working fine… Is this wierd… **gotoAndPlay(n)** is supposed to start playing MC from **n** frame and to keep playing next.

Here is in attachment what I did…
