Buggy Menu - rollover, rollout


hi,
i wondering if individual can me here. i've got interface of 6 buttons. each button plays own animation on rollover, , rollout.

but, when mouse on @ super fast speeds, animations doesn't start , when stop on button not activated animation.

is there a way of making sure animations begin?

here current code:

import mx.transitions.tweenrgb;
import mx.transitions.easing.*;
import mx.transitions.tween;

six_btn.onrollover = function(){
gotoandplay(2);
_root.x +=2;
_root.six.swapdepths(_root.x);
_root.circle_mc.gotoandplay(125);
_root.labels_mc.gotoandplay("learning");
new tweenrgb(_root.bg_mc, "rgb", strong.easeinout, 0xff6908, 0x7fc41c, 0.5, true);
}
six_btn.onrollout = function(){
gotoandplay(7);
_root.circle_mc.gotoandplay(135);
_root.labels_mc.gotoandplay("learningout");
new tweenrgb(_root.bg_mc, "rgb", strong.easeinout, 0x7fc41c, 0xff6908, 0.3, true);
}

the above code seems buggy when exploring stage @ fast speeds (with mouse).
thanks

1. changing _x or _y of _root timeline bad idea.

2. give tweens names , stop rollover tween before start rollout tween. use different tween names different buttons (like this.tw, example).

3. use attach code option display code in forum.


More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support