# Simple question but I don't know

**URL:** <https://forum.kirupa.com/t/simple-question-but-i-dont-know/5956>\
**Category:** Uncategorized\
**Created:** [September 26, 2002, 1:51pm UTC](https://forum.kirupa.com/t/simple-question-but-i-dont-know/5956 "2002-09-26T13:51:40Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jh79](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@jh79](https://forum.kirupa.com/u/jh79)\
**Post date:** [September 26, 2002, 1:51pm UTC](https://forum.kirupa.com/t/simple-question-but-i-dont-know/5956/1 "2002-09-26T13:51:40Z")

</div>

Guys, what is the script in a button which resides in a movie clip, to go to the next scene. I feel like I’ve tried everything but nothing seems to work. thanks in advance! JesseH

---

<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, 2:04pm UTC](https://forum.kirupa.com/t/simple-question-but-i-dont-know/5956/2 "2002-09-26T14:04:34Z")

</div>

Hi there 🙂

on(release){  
gotoAndPlay(“Scene\_name”,1);  
}

This should work.

---

<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, 2:21pm UTC](https://forum.kirupa.com/t/simple-question-but-i-dont-know/5956/3 "2002-09-26T14:21:06Z")

</div>

Nope that was the first thing I tried, remember the button is in a movie clip, so I’m thinking the code has to be \_root.  
then somthing, or the button will think your telling it to do something in the Movie Clip it is in. anyone??? 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:** [September 26, 2002, 2:40pm UTC](https://forum.kirupa.com/t/simple-question-but-i-dont-know/5956/4 "2002-09-26T14:40:34Z")

</div>

Hi,

U can allways send it to the last frame of Scene1, when it runs out of frames it goes to the next scene

on(release){  
\_root.gotoAndPlay(59);  
}

this is if ur movie is 58 frames long.

cheers

SHO

Ps.:Why do people use scenes?

---

<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, 2:54pm UTC](https://forum.kirupa.com/t/simple-question-but-i-dont-know/5956/5 "2002-09-26T14:54:54Z")

</div>

I tried that to, this does not work because the button is in a movie clip, do a quick test,

open up a new file in flash and make two scenes, scene 1 and scene 2 make sure both scenes have stop actions in the first frames.

then make a button in scene 1,

then convert that button into a movie clip.

ok now the button is inside a movie clip, … Now tell the button to  
go to scene two.

I use scenes so I don’t have one humongos timeline and its much cleaner to work with.

Thanks again! JesseH

P.S let me know if you can make it go to scene 2 with the test above. Peace

---

<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:03pm UTC](https://forum.kirupa.com/t/simple-question-but-i-dont-know/5956/6 "2002-09-26T16:03:21Z")

</div>

Hi,

It works in my test!

Bye

SHO

---

<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:23pm UTC](https://forum.kirupa.com/t/simple-question-but-i-dont-know/5956/7 "2002-09-26T16:23:05Z")

</div>

Dunno why youre having a prob with that, what you said you did sould work.

PS the best way to clean up your timeline and make your project easy to work on is to make seperate swfs and use loadMovie command instead of scenes 😛

Peace

---

<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, 6:25pm UTC](https://forum.kirupa.com/t/simple-question-but-i-dont-know/5956/8 "2002-09-26T18:25:06Z")

</div>

Hi,

Here my example where it works

Cheers

SHO

---

<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, 6:46pm UTC](https://forum.kirupa.com/t/simple-question-but-i-dont-know/5956/9 "2002-09-26T18:46:17Z")

</div>

Have you tried

on (release) {  
nextScene();  
}

---

<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 27, 2002, 1:46pm UTC](https://forum.kirupa.com/t/simple-question-but-i-dont-know/5956/10 "2002-09-27T13:46:30Z")

</div>

Thanks guys, I really appreciate the help, I figured it out yesterday, and the way I did it is pretty close to eki’s…I took the button it the movie clip and put this code on it…

on (release) {  
tellTarget (\_root) {  
gotoAndPlay(“Scene 12”, “label”);  
}  
}

it works this way and goes to a label on the next scene…

eki yours works too, but you sent me the fla after I figured it out my way above. thanks again!!!

---

<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 27, 2002, 1:47pm UTC](https://forum.kirupa.com/t/simple-question-but-i-dont-know/5956/11 "2002-09-27T13:47:41Z")

</div>

p.s Flex I did try that, it doesn’t work on a button in a movie clip going to the snext scene…thanks though!

---

<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 27, 2002, 1:49pm UTC](https://forum.kirupa.com/t/simple-question-but-i-dont-know/5956/12 "2002-09-27T13:49:37Z")

</div>

Yes - had the same discussion with lostinbeta - I use it for going to the next scene from a button - but it doesn’t work from an mc. Only works from the main time line.

---

<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 27, 2002, 3:30pm UTC](https://forum.kirupa.com/t/simple-question-but-i-dont-know/5956/13 "2002-09-27T15:30:31Z")

</div>

Cheers, glad u figured out=)
