# Button Help

**URL:** https://forum.kirupa.com/t/button-help/166022
**Category:** Uncategorized
**Created:** [October 16, 2005, 7:13am UTC](https://forum.kirupa.com/t/button-help/166022 "2005-10-16T07:13:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![panda\_eyez](https://avatars.discourse-cdn.com/v4/letter/p/4491bb/32.png) [@panda\_eyez](https://forum.kirupa.com/u/panda_eyez)
#### Post date: [October 16, 2005, 7:13am UTC](https://forum.kirupa.com/t/button-help/166022/1 "2005-10-16T07:13:54Z")

</div>

Hi all,

I actually need this to be solved quite urgently. What I have are 3 buttons. They share the same movie clip called “MC” with different instance name. I added the following code to the btn 1 of the movie clip:

\*\*on (press, rollOver) {  
\_root.resetButtons();  
this.gotoAndStop(“red”);  
}  
on (release) {  
gotoAndPlay(“Scene 2”, 1);  
}  
\*\*I’ve also added this to the frame action in the main timeline

\*_var buttons = new Array(btn1, btn2, btn3);  
function resetButtons() {  
for (var i = 0; i\<\_root.buttons.length; i++) {  
\_root.buttons_.gotoAndStop(“blue”);  
}  
}  
resetButtons();  
\_root.btn1.gotoAndStop(“red”);  
\*\*

However the button just does not link to the next scene. Can anyone enlighten me on wat’s wrong with the coding? Do I have to load a new movie with this coding instead of linking it to the next scene?

I’ve also attached a zip file for viewing. I really appreciate your help and I need it quite urgently. Thanks in advance
