# GotoAndPlay help please!

**URL:** <https://forum.kirupa.com/t/gotoandplay-help-please/5967>\
**Category:** flash\
**Created:** [September 26, 2002, 4:43pm UTC](https://forum.kirupa.com/t/gotoandplay-help-please/5967 "2002-09-26T16:43:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashydog](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@flashydog](https://forum.kirupa.com/u/flashydog)\
**Post date:** [September 26, 2002, 4:43pm UTC](https://forum.kirupa.com/t/gotoandplay-help-please/5967/1 "2002-09-26T16:43:00Z")

</div>

I am developing yet another CD-ROM series using Flash MX. In these programs there is an “Index” button that loads a movie with different terms used throughout the material. When a user clicks on a “term” it sends the \_level0 to a specific frame that loads a movie on \_level1. The problem is that several “terms” take the user to the same frame on \_level0. If the user is already on a specific frame and opens the “index” and happens to click on a “term” that takes them to the \_level0 frame that they are already on, it advances 1 frame past the intended target frame. Is there a way to tell it to stay on that frame and play, possibly with an “if” statement?

---

<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:** [September 26, 2002, 4:55pm UTC](https://forum.kirupa.com/t/gotoandplay-help-please/5967/2 "2002-09-26T16:55:12Z")

</div>

Use gotoAndStop if it’s a static frame. Yes you can use variables but try that first.

---

<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:** [September 26, 2002, 5:32pm UTC](https://forum.kirupa.com/t/gotoandplay-help-please/5967/3 "2002-09-26T17:32:07Z")

</div>

Thanks Flex. I tried the GotoAndStop and it does this. If the \_level1 clip has not yet been loaded, it loads and runs, but if you hit another button that takes you to the same \_level0 frame, it does not move on to the next frame as it was doing befor, but the \_level1 clip stops running.

any ideas?

---

<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:** [September 26, 2002, 5:57pm UTC](https://forum.kirupa.com/t/gotoandplay-help-please/5967/4 "2002-09-26T17:57:05Z")

</div>

ok, I solved the problem by adding a \_level1.gotoAndPlay(1); to the “index” button after the \_level0 GotoAndStop. I seems to work fine. Thanks for your help flex.
