# Problems with #include and \_global

**URL:** <https://forum.kirupa.com/t/problems-with-include-and--global/114745>\
**Category:** Uncategorized\
**Created:** [July 1, 2004, 9:56am UTC](https://forum.kirupa.com/t/problems-with-include-and--global/114745 "2004-07-01T09:56:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mindfriction](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mindfriction/32/172_2.png) [@mindfriction](https://forum.kirupa.com/u/mindfriction)\
**Post date:** [July 1, 2004, 9:56am UTC](https://forum.kirupa.com/t/problems-with-include-and--global/114745/1 "2004-07-01T09:56:25Z")

</div>

Hi,

Could someone help me with this?

I generally grasp thw concept of global and have used it a number of times in flash projects, but this is the fisrt time ive declared a \_global variable inside a #include file. I have an object called MovieActions, which contains many functions which i would like to make available to all timelines in my flash project. Only for some reason im running traces on these and its all “undefined” Here’s the setup

My include file…(movie\_func.as)

```auto

_global.MovieActions = Object();

MovieActions.uploadMovie = function(){
...
....
}

```

And using the function…

```auto

#include "movie_func.as"
...
...
....
mySubButton.onRelease = function(){
MovieActions.uploadMovie("blah.swf");
}

```

And this aint working :(.
