Hey guys,
I have not got into much deep in AS3 and I can not figure out this thing.
When I rollover or rollout the animation filter does happen without any problem but as soon as I click the MC “logoBtn_mc” doesn’t animate the property x doesnt want to go where it should be its just stays there.
Any idea why?
Thank You.
[AS]import gs.;
import gs.easing.;
logo_mc.alpha = 0;
con_mc.alpha = 0;
cap_mc.alpha = 0;
for_mc.alpha = 0;
entre_mc.alpha = 0;
TweenLite.from(logoBtn_mc, 1, {alpha:0, ease:Back.easeOut, delay:1});
logoBtn_mc.addEventListener(MouseEvent.CLICK, showLogo, false, 0, true);
logoBtn_mc.addEventListener(MouseEvent.ROLL_OVER, glow, false, 0, true);
logoBtn_mc.addEventListener(MouseEvent.ROLL_OUT, noGlow, false, 0, true);
logoBtn_mc.buttonMode = true;
function glow(e:MouseEvent):void {
TweenFilterLite.to(e.target, .5, {glowFilter:{color:0xFFFFFF, alpha:1, blurX:45, blurY:45, strength:.8}, ease:Back.easeInOut});
}
function noGlow(e:MouseEvent):void {
TweenFilterLite.to(e.target, .5, {glowFilter:{strength:0}, ease:Back.easeOut});
}
function showLogo(e:MouseEvent):void {
TweenLite.to(e.target, 1, {x:297, delay:1.5});
TweenLite.to(logo_mc, 2, {alpha:1, ease:Back.easeOut, delay:2});
TweenLite.to(con_mc, 2, {alpha:1, ease:Back.easeOut, delay:2.5});
TweenLite.to(cap_mc, 2, {alpha:1, ease:Back.easeOut, delay:3});
TweenLite.to(for_mc, 2, {alpha:1, ease:Back.easeOut, delay:3.5});
TweenLite.to(entre_mc, 2, {alpha:1, ease:Back.easeOut, delay:4});
}
[/AS]