# Complex btn help needed

**URL:** <https://forum.kirupa.com/t/complex-btn-help-needed/242561>\
**Category:** flash\
**Created:** [October 27, 2007, 2:49pm UTC](https://forum.kirupa.com/t/complex-btn-help-needed/242561 "2007-10-27T14:49:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![g\_rochford](https://avatars.discourse-cdn.com/v4/letter/g/c57346/32.png) [@g\_rochford](https://forum.kirupa.com/u/g_rochford)\
**Post date:** [October 27, 2007, 2:49pm UTC](https://forum.kirupa.com/t/complex-btn-help-needed/242561/1 "2007-10-27T14:49:10Z")

</div>

Hi all,

Sorry for this long winded question to what i think will be a simple answer…

I am using this code i found on here to have a rollon rolloff effect for my menu

```auto
stop(); // stop the movie clip from playing (stop button from growing, we want that when the mouse rolls over only
											 
this.onEnterFrame = function(){
	if(rewind == true){ //if rewind switch is set to true play backwards
		prevFrame(); // play backwards
	}
}

this.onRollOver = function(){
	rewind = false; //set variable (or switch) that decides wether ot not to play backwards...
	play(); // play this movie clip.. (grow the button(tween));
}

this.onRollOut = function(){
	rewind = true; //set or rewind switch to true so it will play backwards...
}

```

and the tutorial from here for my site transitions between external swf’s

[http://www.kirupa.com/developer/mx2004/transitions.htm](http://www.kirupa.com/developer/mx2004/transitions.htm)

with slightly modified code for the buttons in the main timeline

```auto
btnAbout.onRelease = function() {
	if (_root.currMovie == undefined) {
		_root.currMovie = "about";
		container.loadMovie("about.swf");
	} else if (_root.currMovie != "about") {
		if (container._currentframe >= container.midframe) {
			_root.currMovie = "about";
			container.play();
		}
	}
}

```

I would like the btns to remain in their over state after they have been pressed, where would i need to add the goto and stop comand? In the btn or the main timeline.

Many thanks in advance

Greg
