# gotoAndPlay() problem?

**URL:** https://forum.kirupa.com/t/gotoandplay-problem/106260
**Category:** Uncategorized
**Created:** [April 3, 2004, 8:42pm UTC](https://forum.kirupa.com/t/gotoandplay-problem/106260 "2004-04-03T20:42:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![2big2](https://avatars.discourse-cdn.com/v4/letter/2/a9adbd/32.png) [@2big2](https://forum.kirupa.com/u/2big2)
#### Post date: [April 3, 2004, 8:42pm UTC](https://forum.kirupa.com/t/gotoandplay-problem/106260/1 "2004-04-03T20:42:05Z")

</div>

It seems this is only with Flash MX 2004, as I didn’t notice it in the regular flash mx. Whenever I use the gotoAndPlay() function it always goes to the frame I specify, but then it stops. I don’t know if this is a bug or if there is a workaround, because I’m really not used to having that happen. It works when I put the function play() in the frame I specify in gotoAndPlay(), but that just seems weird.

Example:  
I put this in the actions for a movie clip

```auto

on (press) {
gotoAndPlay(2);
}

```

it goes to frame 2, then stops, when it should’ve continued on with the animation. It DOES however do that animation when I add: play() to frame 2.

What’s the problem?
