# Need Help With Movie Clip Action Script

**URL:** https://forum.kirupa.com/t/need-help-with-movie-clip-action-script/216979
**Category:** flash
**Created:** [February 22, 2007, 2:23am UTC](https://forum.kirupa.com/t/need-help-with-movie-clip-action-script/216979 "2007-02-22T02:23:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![StomachPunch](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@StomachPunch](https://forum.kirupa.com/u/StomachPunch)
#### Post date: [February 22, 2007, 2:23am UTC](https://forum.kirupa.com/t/need-help-with-movie-clip-action-script/216979/1 "2007-02-22T02:23:16Z")

</div>

Hey I was going through the tutorials and came across the complex button tutorial and I was just wondering how i can get the complex button, when pressed to goto a certain frame of the main timeline and not the complex button timeline. Right now I have it set when press and release gotoandplay(2)…but it plays the button timeline and not the main timeline:

this.onEnterFrame = function(){

if(rewind == true){

prevFrame();

}

}

this.onRollOver = function(){

rewind = false;  
play();

}

this.onRollOut = function(){

rewind = true;

}

this.onRelease = function(){

gotoAndPlay(2);

}

can anyone help me? thanks!
