Question
Alpha Tween help?
Having a problem with the function below:
The alpha tween var tweenAlpha works on the event target clientsSub, fading the menu in from an alpha of 0-100.
However, I can't the alpha tween for var closeWorkAlpha to work.
Trying to get the workSub element to fade out from an alpha of 100-0.
The y tween works fine, just not the alpha tween.
Any suggestions?
I'd greatly appreciate any help.
Thanks!
TGC
function clientMenu(evt:MouseEvent):void {
var tweenMenuY:Tween = new Tween(clientsSub,"y",Regular.easeOut,141,121,1,true);
var tweenAlpha:Tween = new Tween(clientsSub,"alpha",Regular.easeOut,0,100,150,true);
var closeWorkY:Tween = new Tween(workSub,"y",Regular.easeOut,121,327,1,true);
var closeWorkAlpha:Tween = new Tween(workSub,"alpha",Regular.easeOut,100,0,150,true);
}
bClients.addEventListener(MouseEvent.CLICK, clientMenu);
The alpha tween var tweenAlpha works on the event target clientsSub, fading the menu in from an alpha of 0-100.
However, I can't the alpha tween for var closeWorkAlpha to work.
Trying to get the workSub element to fade out from an alpha of 100-0.
The y tween works fine, just not the alpha tween.
Any suggestions?
I'd greatly appreciate any help.
Thanks!
TGC
function clientMenu(evt:MouseEvent):void {
var tweenMenuY:Tween = new Tween(clientsSub,"y",Regular.easeOut,141,121,1,true);
var tweenAlpha:Tween = new Tween(clientsSub,"alpha",Regular.easeOut,0,100,150,true);
var closeWorkY:Tween = new Tween(workSub,"y",Regular.easeOut,121,327,1,true);
var closeWorkAlpha:Tween = new Tween(workSub,"alpha",Regular.easeOut,100,0,150,true);
}
bClients.addEventListener(MouseEvent.CLICK, clientMenu);