# Loading Movie Problem

**URL:** <https://forum.kirupa.com/t/loading-movie-problem/217699>\
**Category:** flash\
**Created:** [March 1, 2007, 4:57am UTC](https://forum.kirupa.com/t/loading-movie-problem/217699 "2007-03-01T04:57:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hunson](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@Hunson](https://forum.kirupa.com/u/Hunson)\
**Post date:** [March 1, 2007, 4:57am UTC](https://forum.kirupa.com/t/loading-movie-problem/217699/1 "2007-03-01T04:57:12Z")

</div>

see i have this script in my flash movie:

```auto

_root.navigation = 1
loader.onEnterFrame = function() {
   if (_root.navigation == 1) {
   loadMovie("green1.swf", "loader");
   unloadMovie("loader2");
  }
  if (_root.navigation == 2) {
   loadMovie("green2.swf", "loader2");
   unloadMovie("loader");
  }
 };

```

and this on a button on green1.swf

```auto

btn.onPress = function(){
_root.navigation = 2
}

```

how ever, the main movie would not call the function for \_root.navigation = 2  
i think this… should work, but it doesn’t. the problem should be on the main movie, i’m sure the function from the green1.swf is called.

anyone can try to help me here?
