Method Reflection

I’m working on a simple logging tool for Flash and I’m wondering how I could return the method name that it’s logging from. Umm…


public function MyTestFunction()
{
     LOG.Info("Logging this function: " + <Get_Function_Name_Here>);

     trace("mytestfunction");
}

So that would fire off to my LOG utility the message string “Logging this function: MyTestFunction”.

Know if this is possible?

Oh fyi, using Actionscript 2. I’m pretty sure it’s in 3, but not applicable for me right now. :stuck_out_tongue:

Mucho thanks. =]