# Goto and play :)

**URL:** <https://forum.kirupa.com/t/goto-and-play/28537>\
**Category:** flash\
**Created:** [August 14, 2003, 7:29pm UTC](https://forum.kirupa.com/t/goto-and-play/28537 "2003-08-14T19:29:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![El\_Thierro](https://avatars.discourse-cdn.com/v4/letter/e/858c86/32.png) [@El\_Thierro](https://forum.kirupa.com/u/El_Thierro)\
**Post date:** [August 14, 2003, 7:29pm UTC](https://forum.kirupa.com/t/goto-and-play/28537/1 "2003-08-14T19:29:30Z")

</div>

Well, here’s another question:  
it’s probably a simple one for all you guru’s here, but time has proven me and codes aren’t too best of friends, so here it is:

I have this movieclip, placed on my main scene. At the end of the movieclip, there needs to be a command which makes my main movie (not to movieclip) goto a certain frame.

I know this 'll probably be something with: \_root gotoandplay or something like that, but I still don’t know what exactly…

So thanks.

---

<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:** [August 14, 2003, 8:08pm UTC](https://forum.kirupa.com/t/goto-and-play/28537/2 "2003-08-14T20:08:13Z")

</div>

[AS]buttonName\_btn.onRelease = function() {  
\_root.gotoAndPlay(1);  
}[/AS]

---

<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:** [August 14, 2003, 8:19pm UTC](https://forum.kirupa.com/t/goto-and-play/28537/3 "2003-08-14T20:19:18Z")

</div>

Okay thanks, that worked 🙂

Actually, I would’ve found it myself if I had just put the little dot ( . ) between \_root and gotoAndPlay… :sleep:

But thanks!
