# Really, Really easy question (gotoAndPlay)

**URL:** <https://forum.kirupa.com/t/really-really-easy-question-gotoandplay/17628>\
**Category:** flash\
**Created:** [April 7, 2003, 6:32pm UTC](https://forum.kirupa.com/t/really-really-easy-question-gotoandplay/17628 "2003-04-07T18:32:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![955](https://avatars.discourse-cdn.com/v4/letter/9/4bbf92/32.png) [@955](https://forum.kirupa.com/u/955)\
**Post date:** [April 7, 2003, 6:32pm UTC](https://forum.kirupa.com/t/really-really-easy-question-gotoandplay/17628/1 "2003-04-07T18:32:44Z")

</div>

I have a load of buttons in movieclips (i need this to make the buttons move randomly)  
my question is this: what do I put on the buttons to make them go to another frame on the main timeline. I know you’d need a prefix to _gotoAndPlay(frame)_ but which one?

---

<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:** [April 7, 2003, 6:41pm UTC](https://forum.kirupa.com/t/really-really-easy-question-gotoandplay/17628/2 "2003-04-07T18:41:04Z")

</div>

```auto
on(release)
{
   _root.gotoAndPlay(frame);
}

```

---

<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:** [April 7, 2003, 7:00pm UTC](https://forum.kirupa.com/t/really-really-easy-question-gotoandplay/17628/3 "2003-04-07T19:00:44Z")

</div>

thx nigeledge  
i really should have thought of 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:** [April 7, 2003, 7:07pm UTC](https://forum.kirupa.com/t/really-really-easy-question-gotoandplay/17628/4 "2003-04-07T19:07:58Z")

</div>

No problemo. 🙂
