# Load movieNum not working on server

**URL:** <https://forum.kirupa.com/t/load-movienum-not-working-on-server/17106>\
**Category:** Uncategorized\
**Created:** [April 1, 2003, 2:35pm UTC](https://forum.kirupa.com/t/load-movienum-not-working-on-server/17106 "2003-04-01T14:35:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pjc4real](https://avatars.discourse-cdn.com/v4/letter/p/58f4c7/32.png) [@Pjc4real](https://forum.kirupa.com/u/Pjc4real)\
**Post date:** [April 1, 2003, 2:35pm UTC](https://forum.kirupa.com/t/load-movienum-not-working-on-server/17106/1 "2003-04-01T14:35:35Z")

</div>

Hi guys!

Ok I have designed a nav bar in MX. In a layer, on a frame, I have the following AS:

```php
loadMovieNum("banner1.swf", 1);

```

It’s aim is to load in a banner. It does this fine locally, but not when uploaded to a server… ned ideas why? I mean I havent used an absolute location just a relative, so it should work right??

;(

I have uploaded banner1.swf to the same location

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 5:15pm UTC](https://forum.kirupa.com/t/load-movienum-not-working-on-server/17106/2 "2003-04-01T17:15:26Z")

</div>

Hi,

Does this happen in an enterFrame or loop of some kind?

If so that’s your problem, It keeps trying to load it all the time.  
the solution is to make it happen (loadMovieNum command) just once.  
Something like this would do it:  
if(!alreadyLoaded){  
loadMovieNum(“banner1.swf”, 1);  
alreadyLoaded = 1;  
}  
Cheers

SHO

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 5:47pm UTC](https://forum.kirupa.com/t/load-movienum-not-working-on-server/17106/3 "2003-04-01T17:47:05Z")

</div>

And _relative path_ will work if the swf’s location is _relative to_ the main movie (same dir/folder) …double check the heirarchy within your servers folders to verify if you need to adjust the location or the path …

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 2, 2003, 9:34am UTC](https://forum.kirupa.com/t/load-movienum-not-working-on-server/17106/4 "2003-04-02T09:34:27Z")

</div>

Hi,

Ah! yes.

Remember as well that your paths should be relative to the HTML  
page your movie is embedded in. Even if your two movies are in the same folder if the HTML page is, for instance, one level up in the folder hierarchy; the path from one movie to the other should  
be “yourMoviesFolder/yourMovie.swf”.

Cheers

SHO

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 2, 2003, 3:43pm UTC](https://forum.kirupa.com/t/load-movienum-not-working-on-server/17106/5 "2003-04-02T15:43:35Z")

</div>

try putting quotes around the level you’re sending it to as well. 😉

```php
loadMovieNum("folder/movie.swf", "10");

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2003, 9:54am UTC](https://forum.kirupa.com/t/load-movienum-not-working-on-server/17106/6 "2003-04-03T09:54:59Z")

</div>

No, don’t do that!

The level is refered to by a number, not a string.

SHO

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2003, 10:36am UTC](https://forum.kirupa.com/t/load-movienum-not-working-on-server/17106/7 "2003-04-03T10:36:50Z")

</div>

it shouldn’t matter. To Flash “10” == 10  
it doesn’t === though… but that’s another story.
