Help with workaround!

hello,

I’ve been trying to use the hittest onMouseMove workaround to add some basic motion to a menu of buttons. Using the code below, I am able to get the movie clip (controls_btn) to play on “RollOver,” but it won’t play when I “RollOff.”

Any help would be deeply appreciated.

controls_btn.isPressed = false;
controls_btn.isOver = false;

controls_btn.onMouseMove = function(){
var lastIsOver = this.isMouseOver;
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.isMouseOver = true;
if (this.isMouseOver != lastIsOver){
if (this.isPressed){
this.gotoAndPlay(11);
}else{
this.gotoAndPlay(2);
}
}
}else{
this.isMouseOver = false;
if (this.isMouseOver != lastIsOver){
if (this.isPressed){
controls_btn.gotoAndPlay(2);
}else{
controls_btn.gotoAndPlay(11);
}
}
}
}