# From MC to next scene?

**URL:** <https://forum.kirupa.com/t/from-mc-to-next-scene/6332>\
**Category:** Uncategorized\
**Created:** [October 4, 2002, 11:44am UTC](https://forum.kirupa.com/t/from-mc-to-next-scene/6332 "2002-10-04T11:44:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jerry](https://forum.kirupa.com/u/jerry)\
**Post date:** [October 4, 2002, 11:44am UTC](https://forum.kirupa.com/t/from-mc-to-next-scene/6332/1 "2002-10-04T11:44:04Z")

</div>

OKI, simple question coming up… :cowboy:

I’ve got a movie with two scenes! At the end of the last MC on “scene 1” I would like it to jump to the next scene, so I’ve placed the following AS on the last frame on the last MC:

**nextScene();**

this don’t work!..?

so i tried:

**gotoAndPlay(“Scene2”, 1);**

don’t work!..?

…any 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 4, 2002, 4:02pm UTC](https://forum.kirupa.com/t/from-mc-to-next-scene/6332/2 "2002-10-04T16:02:05Z")

</div>

[size=1]well first of all, just to go from 1 scene to another there’s no  
need for any code. It will go right to it no matter what.

If you have a stop() in there, before the gotoAndPlay() function,  
that could be your problem. There really isn’t any other reason for  
it to behave that way.

I think you’re just making it harder than it is. =)

/unflux[/size]  
:cyclops:

[typos]

---

<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 4, 2002, 8:07pm UTC](https://forum.kirupa.com/t/from-mc-to-next-scene/6332/3 "2002-10-04T20:07:29Z")

</div>

Yeah, it sounds like that!..

but take a look at this tiny example, and you see what I mean! :q:

---

<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 5, 2002, 4:39am UTC](https://forum.kirupa.com/t/from-mc-to-next-scene/6332/4 "2002-10-05T04:39:39Z")

</div>

[size=1]i took a look at it and tested it as you posted…works the  
way it’s supposed to! as far as I can see…

soooo…what’s the problem again?

/unflux[/size]  
:cyclops:

---

<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 5, 2002, 10:21am UTC](https://forum.kirupa.com/t/from-mc-to-next-scene/6332/5 "2002-10-05T10:21:37Z")

</div>

then please tell me why it won’t play the 40 framed MC on scene1?

---

<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 5, 2002, 4:44pm UTC](https://forum.kirupa.com/t/from-mc-to-next-scene/6332/6 "2002-10-05T16:44:40Z")

</div>

Well, you have to understand how Flash works. It sees[list][_]scene 1 with one frame[_]scene 2 with 1 frame[/list]When you test the movie, it will put the scenes one after another and play the whole thing. That is to say here 2 frames.

But what you want is to stop on the first frame, right? So in the frame actions of the first scene, put a stop() action. If you test the movie, you’ll see the tween play and replay. This means we’re staying on the 1st frame all right.

Then we want that at the end of the mc, the main timeline goes on playing. So all you have to do is put at the last frame of the tween \_parent.play(); or \_parent.gotoAndPlay(“scene2”);

pom 🙂

---

<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 5, 2002, 11:07pm UTC](https://forum.kirupa.com/t/from-mc-to-next-scene/6332/7 "2002-10-05T23:07:43Z")

</div>

…yeah, that **\_parent** thing did the trick, THX m8! 🙂

[swf=“[http://www.diniz.dk/gfx/footer01.swf](http://www.diniz.dk/gfx/footer01.swf) height=81 width=460”][/swf]

---

<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 5, 2002, 11:21pm UTC](https://forum.kirupa.com/t/from-mc-to-next-scene/6332/8 "2002-10-05T23:21:23Z")

</div>

Nice trick with the footer 🙂

---

<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 6, 2002, 2:25am UTC](https://forum.kirupa.com/t/from-mc-to-next-scene/6332/9 "2002-10-06T02:25:21Z")

</div>

[size=1]didn’t mean to…glad you got the answer tho.

/unflux[/size]  
:cyclops:
