# Animation doesnt happend after I click

**URL:** https://forum.kirupa.com/t/animation-doesnt-happend-after-i-click/279858
**Category:** flash
**Created:** [January 20, 2009, 1:23am UTC](https://forum.kirupa.com/t/animation-doesnt-happend-after-i-click/279858 "2009-01-20T01:23:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sepu](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@sepu](https://forum.kirupa.com/u/sepu)
#### Post date: [January 20, 2009, 1:23am UTC](https://forum.kirupa.com/t/animation-doesnt-happend-after-i-click/279858/1 "2009-01-20T01:23:12Z")

</div>

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]
