# Function alias

**URL:** <https://forum.kirupa.com/t/function-alias/171293>\
**Category:** flash\
**Created:** [December 3, 2005, 10:10pm UTC](https://forum.kirupa.com/t/function-alias/171293 "2005-12-03T22:10:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ice987](https://avatars.discourse-cdn.com/v4/letter/i/779978/32.png) [@ice987](https://forum.kirupa.com/u/ice987)\
**Post date:** [December 3, 2005, 10:10pm UTC](https://forum.kirupa.com/t/function-alias/171293/1 "2005-12-03T22:10:57Z")

</div>

I have defined 4 functions say func1,func2,func3 and func4

Is it possble to call each function with a structure similar to the following.This way I can decide at the last minute whether to use func1,2,3 or 4

myfunc=func2;  
myfunc(); //calls func2 previously defined

The above structure does not work. Should I be using prototypes maybe?
