I use this function often. It is nothing new, and no im not a purist. Im hoping that having this information here, may help someone else in some way.
easing methods;
Strong
Back
Elastic
Regular
Bounce
None
easing types;
easeIn
easeOut
easeInOut
easeNone
make something tween
overTween = mx.transitions.easing.Strong.easeOut;
//(instance, property, tweentype, start val, end val , time )
tweenIt(myInstance.hl, "_alpha", overTween, 0, 100, 2);
the function that makes stuff tween
function tweenIt(Ttarget, Tprop, TeaseType, Tbegin, Tend, Ttimet) {
target=Ttarget, prop=Tprop, easeType=TeaseType, begin=Tbegin, end=Tend, timet=Ttimet;
myTween = new mx.transitions.Tween(target, prop, easeType, begin, end, timet, true);
}
let me know of anyway I could improve this :moustache