# Function name as variable?

**URL:** https://forum.kirupa.com/t/function-name-as-variable/278191
**Category:** Uncategorized
**Created:** [December 23, 2008, 6:11pm UTC](https://forum.kirupa.com/t/function-name-as-variable/278191 "2008-12-23T18:11:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![peartart](https://avatars.discourse-cdn.com/v4/letter/p/7993a0/32.png) [@peartart](https://forum.kirupa.com/u/peartart)
#### Post date: [December 23, 2008, 6:11pm UTC](https://forum.kirupa.com/t/function-name-as-variable/278191/1 "2008-12-23T18:11:01Z")

</div>

I need a way to call a function from a function. It’s not that hard, I know, but the name of the nested function is a variable passed into the first function. Like in setTimer() and other functions in flash, where you have the name of a variable to call. I’m going to have a lot, so doing some cheap if(funcname == blabla){blabla();} won’t work. I’m not sure if that makes much sense, but yeah… All my searches return useless things.
