# Movie Clip RollOver/Out Button

**URL:** https://forum.kirupa.com/t/movie-clip-rollover-out-button/181521
**Category:** flash
**Created:** [March 10, 2006, 12:25am UTC](https://forum.kirupa.com/t/movie-clip-rollover-out-button/181521 "2006-03-10T00:25:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gray](https://avatars.discourse-cdn.com/v4/letter/g/5fc32e/32.png) [@gray](https://forum.kirupa.com/u/gray)
#### Post date: [March 10, 2006, 12:25am UTC](https://forum.kirupa.com/t/movie-clip-rollover-out-button/181521/1 "2006-03-10T00:25:40Z")

</div>

I used the Complex Button tutorial to create a movieclip with rollover and rollout actionscript. works great, but! I cannot get the this.onRelease to work with the gotoAndPlay function. only the getURL function works. what am I doing wrong here?

the actionscript in the movieclip is:

[COLOR=“DarkGreen”]stop();

this.onEnterFrame = function(){  
if(rewind == true){  
prevFrame();  
}  
}  
this.onRollOver = function(){  
rewind = false;  
play();  
}  
this.onRollOut = function(){  
rewind = true;  
}  
this.onRelease = function(){  
gotoAndPlay(“Portfolio”, 1);  
}[/COLOR]
