How can I get each individual movie clip to blink every x seconds when the mouse is over it?
var buttonArray:Array = [ mystery, simple, adventure, peace];
var myTimer:Timer = new Timer(1000);
myTimer.addEventListener(TimerEvent.TIMER, glowEffect)
stage.addEventListener(Event.ENTER_FRAME, fitscreen)
function fitscreen(e:Event):void{
for each (var c in buttonArray)
{
mystery.addEventListener(MouseEvent.ROLL_OVER, fadeIn);
mystery.addEventListener(MouseEvent.ROLL_OUT, fadeOut);
mystery.alpha = 1;
}
}
function glowEffect(e:TimerEvent){
myTimer.start();
if (this.alpha == 0){
TweenMax.to(this, 1, {alpha:1});
}
if (this.alpha == 1){
TweenMax.to(this, 1, {alpha:0});
}
}
function fadeIn(e:MouseEvent):void
{
myTimer.start();
}