For some reason the tween never happens… when I try it this way. I want a simple fade I realy didn’t want to have to use a timer… It works fine with numeric values… but I want it to start fading from the current alpha… Can someone point me in the right direction?
fadeArray*.addEventListener(MouseEvent.MOUSE_OVER, fadeIn);
fadeArray*.addEventListener(MouseEvent.MOUSE_OUT, fadeOut);
function fadeIn(e:MouseEvent){
new Tween(e.currentTarget, "alpha", Strong.easeIn, e.currentTarget.alpha, 0, .5, true);
}
function fadeOut(e:MouseEvent){
new Tween(e.currentTarget, "alpha", Regular.easeOut, e.currentTarget.alpha, 0, 3, true);
}
}
this also doesn’t work??? It traces the alpha value but it doesn’r change it??? Am I missing something here, can you not change the alpha value in this fashion?
function fadeIn(e:MouseEvent){
trace("in" + e.target.alpha);
e.target.alpha = 1;
}
function fadeOut(e:MouseEvent){
trace("out");
e.target.alpha = 0;
}
Thanks