Tricky rollout problems

Hi

I was hoping someone could help me with a problem I’m having.

I’m trying to use a movieclip as a button and what I want it to do is for the movie to be on frame one. If someone rolls over the button then the movie starts and carries out a tween from frame 2 to frame 7. Once the user rolls out the movie should go to frame 8 and finish the tween from frame 8 to frame 13.

Now at first I tried the rollout code but found that doesn’t work everytime. So I then changed the rollout code in the movie and added the code below to the instance of the movie on the _root.

onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndPlay(2);
}
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
this.gotoAndPlay(8);
}
}

When the site loads the movie/button starts where it should, frame 1. But when the mouse rollsover it just seems to jump directly to frame 7. The rollout works fine but not the rollover. The tween in frame 8 > frame 13 is displayed fine but the rollover tween from 2 to 7, isn’t.

Can anyone help?

RabBell. :frowning: