[FMX].mc control problem

what im trying to do here is have a button’s (named btn) over and out states make a movie clip play forward or reverse. and my fla is named MCC. im fairly new so the more detailed explaination of the code the better.

this is my code so far in the MC

onClipEvent (enterFrame) {
if (btn.MCC(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
}

[AS]onClipEvent (enterFrame) {
if (_parent.btn.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
}[/AS]
And add this line of code to the Frame Actions:
[AS]Button.prototype.hitTest = MovieClip.prototype.hitTest;[/AS]

woohoo, thanks a bunch. now the maddness can begin

No problem. :wink: