# Calling a function from a function

**URL:** https://forum.kirupa.com/t/calling-a-function-from-a-function/153232
**Category:** flash
**Created:** [June 30, 2005, 2:02am UTC](https://forum.kirupa.com/t/calling-a-function-from-a-function/153232 "2005-06-30T02:02:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hgfl](https://avatars.discourse-cdn.com/v4/letter/h/8e7dd6/32.png) [@hgfl](https://forum.kirupa.com/u/hgfl)
#### Post date: [June 30, 2005, 2:02am UTC](https://forum.kirupa.com/t/calling-a-function-from-a-function/153232/1 "2005-06-30T02:02:55Z")

</div>

How can I get a function to call another function? I simply cannot get it to work:

```auto

function displayMenu() {
clearMenu
}

```

This is a cut down version of my code for clarification purposes - it doesn’t work either.

Does it have to be in an “on” handler (onClipEvent or onEnterFrame for example)? 'cause I just want it to run the other function automatically without the user having to do anything or the movie having to go to any particular frame. blah
