0

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(); 
}
josef.van.niekerk
  • 11,941
  • 20
  • 97
  • 157

1 Answers1

2

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

Community
  • 1
  • 1
nikc.org
  • 16,462
  • 6
  • 50
  • 83