import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
import flash.events.Event;
var _old:Event = e.currentTarget;
///////////////////////////////////////////////////////////////////////
stop();
///////////////////////////////////////////////////////////////////////
_home.addEventListener(MouseEvent.MOUSE_UP, _fade_action);
_about.addEventListener(MouseEvent.MOUSE_UP, _fade_action);
_services.addEventListener(MouseEvent.MOUSE_UP, _fade_action);
_portfolio.addEventListener(MouseEvent.MOUSE_UP, _fade_action);
_blog.addEventListener(MouseEvent.MOUSE_UP, _fade_action);
_contact.addEventListener(MouseEvent.MOUSE_UP, _fade_action);
///////////////////////////////////////////////////////////////////////
function _fade_action (evt:MouseEvent):void {
var _new:Event = e.currentTarget;
var _tween_out:Tween = new Tween(_old,"Alpha",Strong.easeOut,1,0,1.true);
var _tween_in:Tween = new Tween(_new,"Alpha",Strong.easeOut,0,1,2,true);
_old = _new;
}
///////////////////////////////////////////////////////////////////////
Why doesn’t that work … to fade out old target and fade in new one ?
Thanks in advance