# Actionscript 2.0 Rollover Buttons Help

**URL:** https://forum.kirupa.com/t/actionscript-2-0-rollover-buttons-help/290654
**Category:** flash
**Created:** [June 17, 2009, 5:52pm UTC](https://forum.kirupa.com/t/actionscript-2-0-rollover-buttons-help/290654 "2009-06-17T17:52:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![typografik](https://avatars.discourse-cdn.com/v4/letter/t/97f17d/32.png) [@typografik](https://forum.kirupa.com/u/typografik)
#### Post date: [June 17, 2009, 5:52pm UTC](https://forum.kirupa.com/t/actionscript-2-0-rollover-buttons-help/290654/1 "2009-06-17T17:52:33Z")

</div>

Hi everyone, I’m fairly new to Flash and actionscripting. I’m making a website and I am wanting to use rollover buttons. I followed this tutorial to help me:

[http://www.kirupa.com/developer/mx2004/button\_effect.htm](http://www.kirupa.com/developer/mx2004/button_effect.htm)

Everyting works fine, however, I want to change the code from the url link at the bottom, so I can link to frame labels within my own flash document. This is the code I have put in:

stop();

this.onEnterFrame = function(){  
if(rewind == true){  
prevFrame();  
}  
}

this.onRollOver = function(){  
rewind = false;  
play();  
}

this.onRollOut = function(){  
rewind = true;  
}

[COLOR=“Magenta”]this.onRelease = function() {  
gotoAndPlay(“15”);  
};[/COLOR]

[COLOR=“Black”]The stuff in pink is not working, any ideas what I am doing wrong? Any help would be much appreciated. Thank you. Evan [/COLOR]
