# Quick question

**URL:** <https://forum.kirupa.com/t/quick-question/210193>\
**Category:** Uncategorized\
**Created:** [December 15, 2006, 11:39pm UTC](https://forum.kirupa.com/t/quick-question/210193 "2006-12-15T23:39:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjm](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@rjm](https://forum.kirupa.com/u/rjm)\
**Post date:** [December 15, 2006, 11:39pm UTC](https://forum.kirupa.com/t/quick-question/210193/1 "2006-12-15T23:39:43Z")

</div>

Im using the AS from the advanced button tutorial and I want to know how to delete the onEnterFrame function without killing the button animation.

heres the AS that makes the button work…

```auto
//all this code is inside the complex button so you can stick as many as you want 
//on the stage and all will work.. they all will have this code in it..

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...
}

this.onRelease = function(){
	getURL("events_and_updates.html", '_blank');
}

```

I know its probably something really easy. any help is much appreciated.
