I'm trying to use this function:
function scaleUp(event:MouseEvent):void {
TweenLite.to(event.target, 1, {scaleX:1.5, scaleY:1.5,
ease:Exponential.easeOut});
}
function scaleDown(event:MouseEvent):void {
TweenLite.to(event.target, 1, {scaleX:1, scaleY:1,
ease:Exponential.easeOut});
}
And am getting an error on the output:
1120: Access of undefined property Exponential.Exponential Class error
does the tweenlite class have exponential easing?Exponential Class error
I figured it out.
I had to add:
import fl.motion.easing.Exponential;
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment