# Method Reflection

**URL:** https://forum.kirupa.com/t/method-reflection/202587
**Category:** flash
**Created:** [October 2, 2006, 10:12pm UTC](https://forum.kirupa.com/t/method-reflection/202587 "2006-10-02T22:12:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![FizixMan](https://avatars.discourse-cdn.com/v4/letter/f/e9c0ed/32.png) [@FizixMan](https://forum.kirupa.com/u/FizixMan)
#### Post date: [October 2, 2006, 10:12pm UTC](https://forum.kirupa.com/t/method-reflection/202587/1 "2006-10-02T22:12:25Z")

</div>

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…

```auto

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. 😛

Mucho thanks. =]
