# Button in a MC

**URL:** https://forum.kirupa.com/t/button-in-a-mc/59161
**Category:** Uncategorized
**Created:** [July 28, 2004, 11:11pm UTC](https://forum.kirupa.com/t/button-in-a-mc/59161 "2004-07-28T23:11:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![putch](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@putch](https://forum.kirupa.com/u/putch)
#### Post date: [July 28, 2004, 11:11pm UTC](https://forum.kirupa.com/t/button-in-a-mc/59161/1 "2004-07-28T23:11:05Z")

</div>

OK, I am totally zoning here. I have a button in a MC that needs to go to the next frame in the scene that the MC is in.

so if the MC is on frame 1, and has the button in it, what would the button have to say (actionscript) to (when clicked), make it go to frame 2?

I searched for it, and could not find the answer. Is it \_root or \_global somehow?

Thanks.

P

---

<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: [July 28, 2004, 11:19pm UTC](https://forum.kirupa.com/t/button-in-a-mc/59161/2 "2004-07-28T23:19:46Z")

</div>

i guess this shoud do it:  
on(release){  
\_root.gotoAndPlay(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: [July 28, 2004, 11:20pm UTC](https://forum.kirupa.com/t/button-in-a-mc/59161/3 "2004-07-28T23:20:13Z")

</div>

[AS]on (press) {  
\_root.gotoAndPlay(2);  
}[/AS]

---

<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, 2004, 8:18pm UTC](https://forum.kirupa.com/t/button-in-a-mc/59161/4 "2004-10-04T20:18:10Z")

</div>

on(release)  
{  
\_parent.gotoAndPlay(2);  
}
