Reputation: 12121
Is there a way, in both Actionscript 2 and 3 to determine the name of a function from the Function object. So for example I want something like:
function Log(message:String, fn:Function):void
{
textbox.text = message + " function name: " + fn.determineName();
}
Upvotes: 0
Views: 4999
Reputation: 16962
Take a look at these questions, the answers might satisfy your needs:
can an actionscript function find out its own name? in flex, get function name from Function object Actionscript 3 introspection -- function names
Upvotes: 2