Animated Rollover Button Using Tween Class Actionscript Problem

Hey guys,

I’ve created a rollover button that makes a little pink tab pop up on rollover and drop down using rollout.

The animation looks pretty sweet because it’s done with the tween class. Heres the code:

[FONT=“Courier New”]on (rollOver) {
import mx.transitions.easing.*;
import mx.transitions.Tween;
var portfolioRollover:Tween = new Tween(clicktoviewtab, “_y”, mx.transitions.easing.Back.easeOut, 58, 42, 10, false);
}

on (rollOut) {
var portfolioRollover:Tween = new Tween(clicktoviewtab, “_y”, mx.transitions.easing.Back.easeIn, 42, 58, 7, false);
}[/FONT]

Problem is, if you rollover and roll off quickly it gets stuck. Not really sure why! Any ideas?

cheers

Sam