Hi guys, I need help. I might be missing something that I'm too stupid to see. I'm trying to use glowfilter on a movie clip rollover and rollout function. The problem is, it always starts with the glow on. I want it to start without it so that when the mouse is over it, it glows and reverses when i roll out.
Here's my code.
import com.greensock.*;
import com.greensock.easing.*;
import com.greensock.plugins.*;
TweenPlugin.activate([GlowFilterPlugin]);
var glow:TweenMax = TweenMax.to(start_btn, .3, {glowFilter:{color:0xffffff, alpha:1, blurX:30, blurY:30, paused:true}});
start_btn.addEventListener(MouseEvent.ROLL_OVER, startrollover);
start_btn.addEventListener(MouseEvent.ROLL_OUT, startrollout);
function startrollover(e:MouseEvent):void{
glow.restart();
}
function startrollout(e:MouseEvent):void{
glow.reverse();
}
I'm new to as3 by the way. Maybe it's something with the way I wrote the code?..