# Calling a function from a private static function

**URL:** <https://forum.kirupa.com/t/calling-a-function-from-a-private-static-function/305549>\
**Category:** Uncategorized\
**Created:** [February 27, 2010, 2:23am UTC](https://forum.kirupa.com/t/calling-a-function-from-a-private-static-function/305549 "2010-02-27T02:23:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phastings](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@phastings](https://forum.kirupa.com/u/phastings)\
**Post date:** [February 27, 2010, 2:23am UTC](https://forum.kirupa.com/t/calling-a-function-from-a-private-static-function/305549/1 "2010-02-27T02:23:39Z")

</div>

hi,  
i’m trying to modify some code and can’t figure out what the issue i’m having it. this is the(shortened) code:  
public static function Lose():void {  
trace(“OVER!”);

```
        Clock.stop();
                    
        OverIt();

```

}  
public function OverIt(){  
MediumButton.visible = true;  
}

this is the error i get:

1180: Call to a possibly undefined method OverIt.

i just want to call a function from inside of the public static funtion.

both function are inside this class:

public class Game extends MovieClip {  
}

any ideas?
