# Accessing stage/global functions inside a class?

**URL:** <https://forum.kirupa.com/t/accessing-stage-global-functions-inside-a-class/308072>\
**Category:** Uncategorized\
**Created:** [April 16, 2010, 5:58pm UTC](https://forum.kirupa.com/t/accessing-stage-global-functions-inside-a-class/308072 "2010-04-16T17:58:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uli](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@Uli](https://forum.kirupa.com/u/Uli)\
**Post date:** [April 16, 2010, 5:58pm UTC](https://forum.kirupa.com/t/accessing-stage-global-functions-inside-a-class/308072/1 "2010-04-16T17:58:28Z")

</div>

Hello !

I have a .as file with a load of functions that i include using : include “myFunctions.as”. They can be accessed alright.  
I have a custom class that extends movieclip, and i want to use a function inside that class that is located in my “myFunctions.as” file.  
How do i do that? Seems like the class loads before the myFunctions.as file so the functions are unavailable at this time. I get that error message :

1180: Call to a possibly undefined method [function name].
