tweening alpha on MOUSE_OVER/OUT
good afternoon,
i tweening alpha of mcs make them vis/invisible on mouse_over , mouse_out. easy me static event effect little abrubt. i've accomplished with
function neover(e:mouseevent):void{ nezoom.alpha=.5; netxt.alpha=1; } function neout(e:mouseevent):void{ nezoom.alpha=0; netxt.alpha=0; }
i've accomplished effect in smoother manner using tweenlite such as
function neover(e:mouseevent):void{ tweenlite.to(nezoom, .5, {autoalpha:.5}); tweenlite.to(netxt, .5, {autoalpha:1}); } function neout(e:mouseevent):void{ tweenlite.to(nezoom, .5, {autoalpha:0}); tweenlite.to(netxt, .5, {autoalpha:0}); }
my problem tweenlite if mouse on (i.e. before mouse_over has finished), mouse_out function not run , mc gets "stuck". there way force mouse_out tween run if mouse_over has not yet finished?
thanks in advance,
josh
use overwrite property (assigned true) force rollout tween overwrite rollover tween.
More discussions in ActionScript 3
adobe
Comments
Post a Comment