I want to do a movie clip as a button. And when you roll over the mc, there`s an effect. But when i do this animation reverse(from the end to the start) in frame "bitek1out", and I leave the button, it doesn`t work (actually nothing happens-it returns to look as when you don`t roll over). Where`s the error?
Code: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"); }




Reply With Quote
