I am trying to create an easing function explorer to be able to compare
the existing easing functions. However, I am having a problem with the
syntax to change out the function at runtime. I feel like I am really
close here, but I am at a loss as to what else to try. Here is the
function I am using.
private function onListChange(e:Event):void {
easingFunction = e.target.selectedItem.label;
goToBottom.easingFunction = getDefinitionByName
("mx.effects.easing."+easingFunction).easeIn;
goToTop.easingFunction = getDefinitionByName
("mx.effects.easing."+easingFunction).easeIn;
}