# \_global problems

**URL:** https://forum.kirupa.com/t/-global-problems/78356
**Category:** flash
**Created:** [February 3, 2005, 8:03pm UTC](https://forum.kirupa.com/t/-global-problems/78356 "2005-02-03T20:03:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![blackpulp](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/blackpulp/32/81_2.png) [@blackpulp](https://forum.kirupa.com/u/blackpulp)
#### Post date: [February 3, 2005, 8:03pm UTC](https://forum.kirupa.com/t/-global-problems/78356/1 "2005-02-03T20:03:50Z")

</div>

ok, so i have a main movie that is loading submovies into it in different levels. on my main movie, i have a function called openSubMovie

```auto
_global.openSubMovie = function () { // do something }

```

then in my submovie i have a button that needs to call the function placed above.

so i do something like this

```auto
my_btn.onRelease = function () { openSubMovie(parameters); }

```

my problem is that the function is not being run? could this be because these movies are on different levels? it was my understanding that a global variable can be accessed from anywhere and any timeline? im really confused. I also don’t want to set this function to the \_root timeline because then I would have to go and find everywhere I call this function and change it to root and then i would have something hard coded, and I dont like that one bit…
