[MX04]movie clip button

Hello,

stuck again:

I have a MC, which i would like to act as a button, controlled by AS. So, inside the MC is a simple animation (the button just goes left for ten frames (preferred rollOver action) and then back for another ten (preferred rollOut action).

On the MC actions I put:

on (rollOver) {
this.useHandCursor;
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(10);
}

What happens is the following:
on mouse over the mc goes left, on mouse out the mc goes back to its original place.
It works exactly as it is supposed to!

Exactly until you try again… if you move the mouse away from the mc (onRollOut), before the animation reaches the end, it goes bezerk.

Any ideas on what happens and also how the animation can be done using only AS (with some for loop or function or something and chaning _x property)?

Thanks!!!

8-]