Lightsaber Action Script Help

Hey guys, im trying to make a lightsaber that when you push the button, the lightsaber turns on, and then when you push it again, it turns off. There are three frames in this animation. It starts out with just the handle on frame one and by frame 3 the beam gets to its full size. Right now, the light saber will start out with the beam completely out and when you click the button, the beam will go down and then back up and stay there. This is the actionscript i have so far, can anyone help me edit this?

On the button:

on (press) {
play();
}

On frame one:

//stop();

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

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

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

On last frame of animation:

stop();