How to use variables for easing Class and esing Method of Tween animation?

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

var easeMethod:Function = fl.transitions.easing[easingClassCombo.selectedLabel.easingMethodCombo.selectedLabel.split["."][0]][easingClassCombo.selectedLabel.easingMethodCombo.selectedLabel.split["."][1]] as Function;

Assuming easingClassCombo.selectedLabel.easingMethodCombo.selectedLabel == “Bounce.easeInOut”. But the first way you tried looks more comprehensible to me.

bump up …--------------------------------our wow gold site:buy wow gold, cheap [url=http://www.wowgoldcc.cn/wowgoldworld.htm]wow gold, free [url=http://www.wowgoldcc.cn/Newplayers.htm]wow gold,