Hello,
I am using ActionScript 3 to do Tween animation. I have two combo boxes that allow user to select the easing Class (e.g. Regular, Back, Bounce, Elastic, Regular, Strong and None) and easing Method (e.g. easeOut, easeIn, easeInOut, easeNone).
How can I use “variables” for the easing Class and easing Method of Tween animation.
For example, the following works:
var easeMethod:Function = Regular.easeOut;
var tweenX:Tween = new Tween(ball_mc, “x”, easeMethod, 0, 150, 3, true);
However I wish to use like that:
var easeMethod:Function = easingClassCombo.selectedLabel.easingMethodCombo.selectedLabel;
var tweenX:Tween = new Tween(ball_mc, “x”, easeMethod, 0, 150, 3, true);
How can I do that?
Thanks and best regards
Alex