# I can't get a button to link to a Scene

**URL:** <https://forum.kirupa.com/t/i-cant-get-a-button-to-link-to-a-scene/283621>\
**Category:** flash\
**Created:** [March 9, 2009, 10:03am UTC](https://forum.kirupa.com/t/i-cant-get-a-button-to-link-to-a-scene/283621 "2009-03-09T10:03:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaimesilva](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jaimesilva](https://forum.kirupa.com/u/jaimesilva)\
**Post date:** [March 9, 2009, 10:03am UTC](https://forum.kirupa.com/t/i-cant-get-a-button-to-link-to-a-scene/283621/1 "2009-03-09T10:03:30Z")

</div>

Hi.

I’ve build a nice animated button using a movie clip that reacts to the mouse rollover.  
But I can’t get it to link to another Scene ☹

Inside the movie clip of the button I have this action script on 3 different frames:

**Frame 1**

[AS]stop();

this.onRollOver = function() {  
gotoAndPlay(2);  
}  
[/AS]

**Frame 9**

[AS]stop();

this.onRollOut = function() {  
gotoAndPlay( 10);  
}  
[/AS]

**Frame 18**

[AS]gotoAndStop(1);  
}  
[/AS]

I’ve droped the button on the main timeline and added this action script:

[AS]  
on (release) {  
gotoAndPlay(“contactos”, 1);  
}  
[/AS]

What could be wrong?  
Can someone help me, please?  
I’ve uploaded a test file here:  
[http://www.mediafire.com/?huml9aahkbi](http://www.mediafire.com/?huml9aahkbi)

Thank you,

Jaime
