# \[MX\] goto another scene pb

**URL:** <https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016>\
**Category:** flash\
**Created:** [February 7, 2003, 4:23pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016 "2003-02-07T16:23:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uli](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@Uli](https://forum.kirupa.com/u/Uli)\
**Post date:** [February 7, 2003, 4:23pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/1 "2003-02-07T16:23:37Z")

</div>

Hi there,  
I’d need a little bit of help here…  
i have 3 scenes: loading, menu and animation.  
when i’m playing the animation scene, i have a slider. I wanna use it as a on/off switch to go back to my scene “menu” so it goes like that:

the bouton (instance “onoff”) of my slider (on root of “animation”):  
on (press) {  
startDrag("\_root.onoff", false, 50, 335, 120, 335);  
}  
on (release) {  
stopDrag();  
}

i have a movie clip also on root of “animation” that does a small loop between its frames 1 and 2 and i added the script:  
z = \_root.onoff.\_x;  
if (z\<60){  
gotoAndPlay(“menu”,1);  
}

frame 2 of that MC is just gotoAndPlay(1);

That doesn’t work. BUT if i try to control a MC with that code (instead of doing a jump to another scene), it works:

z = \_root.onoff.\_x;  
if (z\<60){  
\_root.testmovieclip.gotoAndStop(2);  
}

So my question is, why can it control a MC and not jump to a scene??

I hope someone will understand my pb 🙂

TiA

---

<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:** [February 7, 2003, 5:37pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/2 "2003-02-07T17:37:45Z")

</div>

Since you wrote the following code INSIDE a movieclip:  
if (z\<60){  
gotoAndPlay(“menu”,1);  
}

It will try and gotoAndPlay a scene named “menu”, frame 1, from WITHIN the movieclip, and since there are no scenes in movieclips, Flash just won’t do anything, or will return an error.

You gotto understand that flash is built in “Tree” method, ie:

root  
+movieclip  
++symbolinsidemc  
+anothermc

See that root is the mainstage, movieclip and anothermc are two symbols on the mainstage, and symbolinsidemc is another symbol inside the first movieclip, which is on the mainstage. Am I babbeling? :crazy:

---

<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:** [February 7, 2003, 5:53pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/3 "2003-02-07T17:53:10Z")

</div>

what flatline meant to say is that you use [color=red]\_root.gotoAndPlay (“menu”,1)[/color]

but for some strange reason if the script is in a mc inside another mc … it won’t work  
you’ll need to use a frame label like this [color=red]\_root.gotoAndPlay (“frameLabel”)[/color]

here’s the ‘tree’ 😛

**\_root**

- movie clip [color=red]\_root.gotoAndPlay (“menu”, 1)[/color]  
++ movie clip inside movie clip [color=red]\_root.gotoAndPlay (“frameLabel”)[/color]
- another mc [color=red]\_root.gotoAndPlau (“menu”, 1)[/color]

---

<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:** [February 7, 2003, 5:55pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/4 "2003-02-07T17:55:35Z")

</div>

might want to see  
[http://www.kirupaforum.com/showthread.php?s=&threadid=10784&](http://www.kirupaforum.com/showthread.php?s=&threadid=10784&)

[edit] which tells you pretty much what kax just put 😉

---

<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:** [February 7, 2003, 5:59pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/5 "2003-02-07T17:59:12Z")

</div>

are you belittling me senocular ?? am i belittling flatline ?? 😛  
am i spamming ? :sure:

---

<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:** [February 7, 2003, 6:00pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/6 "2003-02-07T18:00:34Z")

</div>

What the hell is this?? Belitteling day?!?! :stunned:

---

<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:** [February 7, 2003, 6:02pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/7 "2003-02-07T18:02:48Z")

</div>

> \*Originally posted by **FLATLINE** \*  
> \*\*What the hell is this?? Belitteling day?!?! :stunned: \*\*

kinda …  
[http://www.kirupaforum.com/showthread.php?s=&threadid=14530](http://www.kirupaforum.com/showthread.php?s=&threadid=14530)

---

<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:** [February 7, 2003, 6:06pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/8 "2003-02-07T18:06:24Z")

</div>

I already read that thread, that’s why I asked that question. 😉

Hey do you like my smiley? (look near my sig)

---

<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:** [February 7, 2003, 6:08pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/9 "2003-02-07T18:08:32Z")

</div>

i can’t see it :-\

---

<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:** [February 7, 2003, 6:10pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/10 "2003-02-07T18:10:30Z")

</div>

Here: ![](http://planet.nana.co.il/uachq/flatsmiley.gif)

Did it myself.😏

---

<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:** [February 7, 2003, 6:20pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/11 "2003-02-07T18:20:37Z")

</div>

nope … :\*(

maybe your server is down

---

<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:** [February 7, 2003, 6:21pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/12 "2003-02-07T18:21:21Z")

</div>

ok it works, thanks for your replies and explanations, very much apreciated 🙂

---

<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:** [February 7, 2003, 6:23pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/13 "2003-02-07T18:23:59Z")

</div>

anytime 🙂

but i still can’t see the smilie !! ☹  
oh well … i’ll check again later 😉

---

<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:** [February 7, 2003, 6:28pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/14 "2003-02-07T18:28:50Z")

</div>

I can see it perfectly! What is wrong?

Try viewing this: [http://planet.nana.co.il/uachq/flatsmiley.gif](http://planet.nana.co.il/uachq/flatsmiley.gif)

---

<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:** [February 7, 2003, 6:33pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/15 "2003-02-07T18:33:53Z")

</div>

lol … nope !! :-\

could you attach the smilie? 🙂

---

<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:** [February 7, 2003, 6:35pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/16 "2003-02-07T18:35:29Z")

</div>

LOL What the hell is going on?!?! :hangover:

---

<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:** [February 7, 2003, 6:43pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/17 "2003-02-07T18:43:18Z")

</div>

lol 😛 that’s pretty cool !!

it looks like frankestein [size=1][it that right ?? i don’t remember if that’s the name][/size] with eye glasses … :crazy:

---

<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:** [February 7, 2003, 6:44pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/18 "2003-02-07T18:44:33Z")

</div>

actualy it was supposed to be me… :cool:

---

<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:** [February 7, 2003, 6:47pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/19 "2003-02-07T18:47:29Z")

</div>

oops … 😛

sorry … :-\

now that i think about it … hey !! it looks just like you 😛

---

<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:** [February 7, 2003, 6:49pm UTC](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016/20 "2003-02-07T18:49:07Z")

</div>

lol :trout:

[Next page](https://forum.kirupa.com/t/mx-goto-another-scene-pb/13016.md?page=2)
