Hello there!
I'm having problems when a ROLL_OVER / ROLL_OUT if the mouse is placed on the stage at a point where these two movieclips overlap. Flash fires both tweens repeatedly.
All I am trying to do is fire the movieclip instance title_mc once I ROLL_OVER the moveclip 'btn_mc'
Any suggestions?
stop();
import com.greensock.*;
import com.greensock.easing.*;
import com.greensock.plugins.*;
OverwriteManager.init(2)
TweenPlugin.activate([AutoAlphaPlugin]);
btn_mc.buttonMode = true
TweenMax.to(btn_mc, 0.5, { autoAlpha:0.25, ease:Circ.easeOut } );
btn_mc.addEventListener (MouseEvent.CLICK, buttonClickHandler);
btn_mc.addEventListener(MouseEvent.ROLL_OVER, over1);
btn_mc.addEventListener(MouseEvent.ROLL_OUT, out1);
function over1(event:MouseEvent):void {
TweenMax.to(btn_mc, 0.5, {alpha:1, ease:Circ.easeOut});
TweenMax.to(title_mc, 0.25, {y:111, alpha:1, ease:Circ.easeOut});
}
function out1(event:MouseEvent):void {
TweenMax.to(btn_mc, 0.25, {alpha:0.25, ease:Circ.easeOut});
TweenMax.to(title_mc, 0.25, {y:165, alpha:0, ease:Circ.easeOut});
}