# Problem loading an external SWF

**URL:** <https://forum.kirupa.com/t/problem-loading-an-external-swf/23419>\
**Category:** flash\
**Created:** [June 17, 2003, 7:45pm UTC](https://forum.kirupa.com/t/problem-loading-an-external-swf/23419 "2003-06-17T19:45:25Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![filete](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/filete/32/124_2.png) [@filete](https://forum.kirupa.com/u/filete)\
**Post date:** [June 17, 2003, 7:45pm UTC](https://forum.kirupa.com/t/problem-loading-an-external-swf/23419/1 "2003-06-17T19:45:25Z")

</div>

Hello there,

This is the issue:

I´ve made a SWF with a preloader follow by a \_mc with some music and pictures.  
On local computer everything works fine.

But now , i´ve put this SWF on my server and im trying to load  
that external SWF to my main movie.  
But when i click on the button the preloader appears empty (0%)  
and nothing happens!!

It seems that doens´t load.  
Here is the code for the button:

```auto

clip1.loadMovie("http://www.myserver.com/externalmovie.swf","level1")

```

clip1 is the container…of course!

Any ideia?

---

<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:** [June 17, 2003, 7:50pm UTC](https://forum.kirupa.com/t/problem-loading-an-external-swf/23419/2 "2003-06-17T19:50:24Z")

</div>

if the mc u are loading is in the same directory as the main movie, then u dun have to put complete path ([http://www.blablablabla](http://www.blablablabla)…). Just put the target mc name.

---

<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:** [June 17, 2003, 7:52pm UTC](https://forum.kirupa.com/t/problem-loading-an-external-swf/23419/3 "2003-06-17T19:52:41Z")

</div>

[AS]clip1.loadMovie(“relative path”,1)[/AS]

you can´t load movies with the _http…_ thing for security reasons.

and you don´t have to use _“level1”_, just use the number of the level.

Cheers :bounce:

---

<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:** [June 17, 2003, 7:53pm UTC](https://forum.kirupa.com/t/problem-loading-an-external-swf/23419/4 "2003-06-17T19:53:07Z")

</div>

Hi again,

I know that,  
but my main movie is for now on local computer…!  
Is there a problem with that?

---

<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:** [June 17, 2003, 7:54pm UTC](https://forum.kirupa.com/t/problem-loading-an-external-swf/23419/5 "2003-06-17T19:54:57Z")

</div>

Then test everuthing on ur local machine. if it works, then it will work when u host them

---

<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:** [June 17, 2003, 7:56pm UTC](https://forum.kirupa.com/t/problem-loading-an-external-swf/23419/6 "2003-06-17T19:56:25Z")

</div>

it will only work on your machine.

you can use it for testing, but when you put it oinline change 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:** [June 17, 2003, 8:02pm UTC](https://forum.kirupa.com/t/problem-loading-an-external-swf/23419/7 "2003-06-17T20:02:30Z")

</div>

So that means that i can not test loading external swf using  
a local main movie?

That means that i have to put the main movie online and  
change the link to relative 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:** [June 17, 2003, 8:17pm UTC](https://forum.kirupa.com/t/problem-loading-an-external-swf/23419/8 "2003-06-17T20:17:10Z")

</div>

yep

---

<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:** [June 17, 2003, 8:17pm UTC](https://forum.kirupa.com/t/problem-loading-an-external-swf/23419/9 "2003-06-17T20:17:10Z")

</div>

Why are you loading external movies with a local main movie? Test them all local. If it works, put them all online.

\*\*\*\* im confused :q: 😉

---

<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:** [June 17, 2003, 8:19pm UTC](https://forum.kirupa.com/t/problem-loading-an-external-swf/23419/10 "2003-06-17T20:19:12Z")

</div>

me too :hangover:

---

<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:** [June 17, 2003, 8:23pm UTC](https://forum.kirupa.com/t/problem-loading-an-external-swf/23419/11 "2003-06-17T20:23:41Z")

</div>

lol Perhaps i should have used dat smilie

:hangover: :hangover: :hangover: :hangover:

---

<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:** [June 17, 2003, 8:29pm UTC](https://forum.kirupa.com/t/problem-loading-an-external-swf/23419/12 "2003-06-17T20:29:05Z")

</div>

Thanks:)

By the way , does the .fla has to be online to the .swf work?  
Or can i just put online the .SWF files?

---

<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:** [June 17, 2003, 8:29pm UTC](https://forum.kirupa.com/t/problem-loading-an-external-swf/23419/13 "2003-06-17T20:29:42Z")

</div>

Only the swf  
😉
