# Simple (i think) problem with a gotoAndPlay

**URL:** https://forum.kirupa.com/t/simple-i-think-problem-with-a-gotoandplay/231544
**Category:** Uncategorized
**Created:** [July 5, 2007, 4:46pm UTC](https://forum.kirupa.com/t/simple-i-think-problem-with-a-gotoandplay/231544 "2007-07-05T16:46:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cshelswell](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@cshelswell](https://forum.kirupa.com/u/cshelswell)
#### Post date: [July 5, 2007, 4:46pm UTC](https://forum.kirupa.com/t/simple-i-think-problem-with-a-gotoandplay/231544/1 "2007-07-05T16:46:59Z")

</div>

Hi I have what i imagine is quite a simple problem i just don’t know much action script at the moment.

I’ve basically got an animation which is started with

on (release)  
{  
play();  
}

this take me to frame 10 where i have a stop();

however i need it to do a gotoAndPlay after the play is finished so i guess how i suspect it should look altough this doesn’t work is:

```auto

on (release)
{
    play(); //after this is complete do the below
    gotoAndPlay(41);
}

```

any ideas on how i could make this work would be great.

Thanks very much
