Calling Function from String

Yeesh, no luck.


var classRef:Class = getDefinitionByName("fl.motion.easing."+eXML.type.@value) as Class;
var classInst:Object = new classRef();
trace(classInst, eXML.type.@value, eXML.func.@value); // outputs: [object Elastic] Elastic easeOut
var f:Function = classInst[[eXML.func.@value]()] as Function;
// error: TypeError: Error #1006: value is not a function.

classInst goes through fine (finds fl.motion.easing.Elastic and creates a new instance of that class). However, when I try to reference one of its methods, easeOut, using a string and targeting via the array method, it doesn’t work. Perhaps I’m missing a set of brackets somewhere?

Thanks very much for any help…