To do this, you need to include the keyword “dynamic” as part of your class declaration, e.g., public dynamic class Foo. Then to make the call, just say:
var functionName:String = “foo” + bar;
if (this.hasOwnProperty(functionName))
this[functionName]();
