# Complex Buttons & Timeline Control

**URL:** <https://forum.kirupa.com/t/complex-buttons-timeline-control/199338>\
**Category:** flash\
**Created:** [September 1, 2006, 3:03pm UTC](https://forum.kirupa.com/t/complex-buttons-timeline-control/199338 "2006-09-01T15:03:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferraram](https://avatars.discourse-cdn.com/v4/letter/f/b2d939/32.png) [@ferraram](https://forum.kirupa.com/u/ferraram)\
**Post date:** [September 1, 2006, 3:03pm UTC](https://forum.kirupa.com/t/complex-buttons-timeline-control/199338/1 "2006-09-01T15:03:00Z")

</div>

## Can someone please send me in the right direction? I’m dealing with this line of action-sript (which I’m new to) for a complex rollover:

//stop();

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

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

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

this.onRelease = function(){  
getURL(“[http://www.kirupa.com](http://www.kirupa.com)”,"\_blank");  
}

* * *

In the last line, I want the function to go to a frame in the timeline, not to an outside URL. Shouldn’t I just be able to change it to this? (85 is the frame number)

this.onRelease = function(){  
gotoAndPlay(85);  
}

It’s not working? What am I doing wrong? Thanks!
