I can already get at all of the functions in a class by doing something like the following.
for (var member in obj) {
if (obj[member] instanceof Function) {
var f:Function = obj[member];
...
}
}
Is there a way to get at a function's parameter list in actionscript? For example, can I write a function that does something like this?
function getFunctionArguments (f:Function) : Array {
var argumentArray:Array = new Array();
for (...) {
...
argumentArray.push({ name:<argumentName>, type:<argument type> });
}
return argumentArray;
}
If so, what do I fill in at the ellipses?