# 2nd level MC

**URL:** <https://forum.kirupa.com/t/2nd-level-mc/9418>\
**Category:** flash\
**Created:** [December 11, 2002, 1:30pm UTC](https://forum.kirupa.com/t/2nd-level-mc/9418 "2002-12-11T13:30:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Melissa\_Anne](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@Melissa\_Anne](https://forum.kirupa.com/u/Melissa_Anne)\
**Post date:** [December 11, 2002, 1:30pm UTC](https://forum.kirupa.com/t/2nd-level-mc/9418/1 "2002-12-11T13:30:56Z")

</div>

Hello,  
I have a button located in a MC, itself located in another MC on scene 1.  
When i press the button i would like it to switch to another scene.  
The usual action “on (press) go to and play scene2” doesnt work in that case.  
How do i -get out - and assign and action when I have a button located far down in a MC which is in another MC…  
Hope made myself clear…  
thx

---

<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:** [December 11, 2002, 1:46pm UTC](https://forum.kirupa.com/t/2nd-level-mc/9418/2 "2002-12-11T13:46:47Z")

</div>

Well, you can always use the nextScene(); and prevScene(); commands if you’ve just got two scenes.

Otherwise, you use something like

on (press) {  
gotoAndPlay(“scenename”, “framelabel”);  
}

Where scenename is the name of the scene you want to skip to, and frame lable is the label of teh frame within that scene. You could use frame numbers as well if you wanted.

---

<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:** [December 11, 2002, 1:57pm UTC](https://forum.kirupa.com/t/2nd-level-mc/9418/3 "2002-12-11T13:57:50Z")

</div>

tried that.  
well what this does is that it is playing the movie clip where the button is located uinstead of going to another scene.

here it goes:

on SCENE 1 I have:  
MC 1 contains MC2  
MC2 contains button A

when i press button A I want it to swith to scene 2.

---

<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:** [December 11, 2002, 2:27pm UTC](https://forum.kirupa.com/t/2nd-level-mc/9418/4 "2002-12-11T14:27:47Z")

</div>

Hmm, can you post your .fla file up for us to check over?

---

<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:** [December 11, 2002, 3:13pm UTC](https://forum.kirupa.com/t/2nd-level-mc/9418/5 "2002-12-11T15:13:52Z")

</div>

thx here is the file

---

<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:** [December 11, 2002, 9:05pm UTC](https://forum.kirupa.com/t/2nd-level-mc/9418/6 "2002-12-11T21:05:37Z")

</div>

Salut,  
I didn’t look at the file, but \_root.gotoAndPlay(“TaScene”,1) should do the trick.

pom :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:** [December 11, 2002, 9:21pm UTC](https://forum.kirupa.com/t/2nd-level-mc/9418/7 "2002-12-11T21:21:12Z")

</div>

…tried to paste the code as you wrote but that doesnt work:

on (press) {  
\_root.gotoAndPlay(“Scene 2”, 1);  
}

is that correct.?

thx

mel

---

<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:** [December 12, 2002, 10:37am UTC](https://forum.kirupa.com/t/2nd-level-mc/9418/8 "2002-12-12T10:37:58Z")

</div>

You can use a frame label, it works pretty well.

pom 🙂
