Movie clip and button

I want to do a movie clip as a button. And when you roll over the mc, theres an effect. But when i do this animation reverse(from the end to the start) in frame "bitek1out", and I leave the button, it doesnt work (actually nothing happens-it returns to look as when you dont roll over). Wheres the error?


import  flash.display.MovieClip; 
import  flash.events.MouseEvent; 

bitek1.addEventListener(MouseEvent.ROLL_OVER, onRollOverHandler);
bitek1.addEventListener(MouseEvent.ROLL_OUT, onRollOutHandler);
bitek1.addEventListener(MouseEvent.CLICK, onClickHandler);
bitek1.addEventListener(MouseEvent.MOUSE_DOWN, onPressHandler);
bitek1.addEventListener(MouseEvent.MOUSE_UP, onReleaseHandler);
bitek1.buttonMode = true;
bitek1.useHandCursor = true;

function onRollOverHandler(myEvent:MouseEvent){
bitek1.gotoAndPlay("bitek1over");
}

function onRollOutHandler(myEvent:MouseEvent){
bitek1.gotoAndPlay("bitek1out");
}
function onClickHandler(myEvent:MouseEvent){
bitek1.gotoAndPlay("bitek1click");
}
function onPressHandler(myEvent:MouseEvent)
{ 
bitek1.gotoAndPlay("bitek1mousedown");
} 
function onReleaseHandler(myEvent:MouseEvent)
{ 
bitek1.gotoAndPlay("bitek1mouseup");
}

From the attached image it doesn’t look like you have 2 animation sections. You should have the ‘in’ tween and a separate ‘out’ tween.

What do you mean? I made movie clip with “in” tween, and then i made another movie clip with “out” tween, but these movie clips are on the the same level. I only copied the last frames from “in” tween and pasted them in the first frames in “out” tween, then I copied the first from “in” and pasted to “out” and made motion tween.

By the way, thanks for trying to help me :slight_smile:

anyone who knows?