# Get name of function / event handler

**URL:** https://forum.kirupa.com/t/get-name-of-function-event-handler/166417
**Category:** Uncategorized
**Created:** [October 19, 2005, 7:15pm UTC](https://forum.kirupa.com/t/get-name-of-function-event-handler/166417 "2005-10-19T19:15:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mattiasgunneras](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mattiasgunneras](https://forum.kirupa.com/u/mattiasgunneras)
#### Post date: [October 19, 2005, 7:15pm UTC](https://forum.kirupa.com/t/get-name-of-function-event-handler/166417/1 "2005-10-19T19:15:31Z")

</div>

Does anyone know if there is a way to get the name of the function that my code is running inside?

```auto

[left]_btn.onPress = function () {
	trace(something);
 }[/left]
   

```

this would then output “onPress” or something like it… hope you all understand what i’m searching for.

Thanks!
