# Goto Frame 1

**URL:** <https://forum.kirupa.com/t/goto-frame-1/6193>\
**Category:** flash\
**Created:** [October 1, 2002, 3:18pm UTC](https://forum.kirupa.com/t/goto-frame-1/6193 "2002-10-01T15:18:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![phorte](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@phorte](https://forum.kirupa.com/u/phorte)\
**Post date:** [October 1, 2002, 3:18pm UTC](https://forum.kirupa.com/t/goto-frame-1/6193/1 "2002-10-01T15:18:27Z")

</div>

Ohkay… This may sound like a very basic thing to do… BUT IT JUST WONT WORK!!!.. heres the deal… I have a button inside a mc. i want it so that when i click this button it goes to frame 1 of scene 2!!  
The script i tried was:  
**on (release) {  
gotoAndStop(“Scene 1”, 1);  
}**

but im not sure if there should be a \_root. in there…??

Can some one please help me!! PLEASE!!!:\*(

---

<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:** [October 1, 2002, 4:10pm UTC](https://forum.kirupa.com/t/goto-frame-1/6193/2 "2002-10-01T16:10:41Z")

</div>

You can only call a Scene from the main timeline. So to actually go back and call frame 1 outside of the MC it should go something like this…

on (release) {  
\_parent.gotoAndPlay(1)  
}

This tells the movie to go back out of the movie clip onto the timeline before it (assuming that the movie clip is on the main timeline) then it plays frame 1 of that timeline.

---

<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:** [October 1, 2002, 4:54pm UTC](https://forum.kirupa.com/t/goto-frame-1/6193/3 "2002-10-01T16:54:09Z")

</div>

Nice try… This works in the same scene but not too go from different scenes… hmm… any other sugestions… or am i just doin it wrong…  
I have attached a little movie with the basic idea of what i want to do… If that will help

---

<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:** [October 1, 2002, 4:59pm UTC](https://forum.kirupa.com/t/goto-frame-1/6193/4 "2002-10-01T16:59:05Z")

</div>

I just had a thread on this EXACT problem. Here I fixed your file.

Oh yeah, and when using nextScene() you aren’t suppoed to put anything between the (). The action nextScene() tells your move to play frame 1 of whatever scene is after the current one.

Hopefully it helps:)

---

<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:** [October 1, 2002, 5:33pm UTC](https://forum.kirupa.com/t/goto-frame-1/6193/5 "2002-10-01T17:33:02Z")

</div>

THANK-YOU SO MUCH!!! I have been trying to fix that for… like… ever!!! Thankyou!!

---

<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:** [October 1, 2002, 5:36pm UTC](https://forum.kirupa.com/t/goto-frame-1/6193/6 "2002-10-01T17:36:10Z")

</div>

No problem:)

Just remember for future reference that you can only change scenes from the main timeline, so if you are in a movie clip you will have to find a way to go back to the main timeline and call the action. This will come in handy:)
