# Prob with external swf

**URL:** <https://forum.kirupa.com/t/prob-with-external-swf/10530>\
**Category:** flash\
**Created:** [January 2, 2003, 7:50pm UTC](https://forum.kirupa.com/t/prob-with-external-swf/10530 "2003-01-02T19:50:57Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![LATO](https://avatars.discourse-cdn.com/v4/letter/l/f17d59/32.png) [@LATO](https://forum.kirupa.com/u/LATO)\
**Post date:** [January 2, 2003, 7:50pm UTC](https://forum.kirupa.com/t/prob-with-external-swf/10530/1 "2003-01-02T19:50:57Z")

</div>

Aloha!

I made a site that loads swf files (woaw! ;)) but the swfs work if i test them alone but not when I test them in the “head”-swf.

1. If I make a link in a movie clip in a swf that has to be loaded, I did it with \_root.gotoAndPlay(“Labelname”), does it have anything to do with the \_root?
2. I used to photogallery from the tut, you can only see the photo, so no buttons or my background (strange)

Anyone?

Thanx

---

<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:** [January 2, 2003, 7:54pm UTC](https://forum.kirupa.com/t/prob-with-external-swf/10530/2 "2003-01-02T19:54:01Z")

</div>

were you´re using:

\_root.gotoAndPlay(“Labelname”);

use

\_levelN.gotoAndPlay(“Labelname”);

[SIZE=1]N means the level were this swf was loaded[/SIZE]

=)

---

<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:** [January 2, 2003, 9:05pm UTC](https://forum.kirupa.com/t/prob-with-external-swf/10530/3 "2003-01-02T21:05:46Z")

</div>

doesn’t work ☹

\_root.createEmptyMovieClip(“container”, 1)

so I changed every \_root in the external swf to \_level1

Nothing new!! But thanx for trying…

Anyone else?

---

<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:** [January 3, 2003, 2:11pm UTC](https://forum.kirupa.com/t/prob-with-external-swf/10530/4 "2003-01-03T14:11:49Z")

</div>

Someone with the same prob?

---

<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:** [January 3, 2003, 2:26pm UTC](https://forum.kirupa.com/t/prob-with-external-swf/10530/5 "2003-01-03T14:26:27Z")

</div>

I can´t understand your problem. :-\

You said that you are loading a swf in a main swf (“head”), but how? using that code?

```auto
_root.gotoAndPlay("Labelname");

```

or that code:

```auto
_root.createEmptyMovieClip("container", 1);

```

if it is, that is the problem, you´re not loading anything.

Can you elaborate your problem a little more?

---

<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:** [January 3, 2003, 4:05pm UTC](https://forum.kirupa.com/t/prob-with-external-swf/10530/6 "2003-01-03T16:05:21Z")

</div>

I attached a file, you can see photogallery.swf(the swf that has to be loaded in main.swf) works perfect alone.  
The link in movieclip and photgallery don’t work if you load the photogallery in main.swf)

Thanx

---

<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:** [January 3, 2003, 4:15pm UTC](https://forum.kirupa.com/t/prob-with-external-swf/10530/7 "2003-01-03T16:15:08Z")

</div>

I dunno what can I say to ya, except that this is working perfectly for me. I didn´t even touched your fla, just tested the SWFs, and they´re just fine!

the problem must be on your machine.

Try installing a newer version of the flash plugin, or, reinstalling the flash with new patches:-\ maybe it helps.

---

<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:** [January 3, 2003, 6:27pm UTC](https://forum.kirupa.com/t/prob-with-external-swf/10530/8 "2003-01-03T18:27:14Z")

</div>

photogallery.swf works perfect but i tested it on 4 pc’s, the main.swf loads the photogallery.swf but the button in the movieclip in photogallery.swf doesn’t work anymore. you can click a normal link to end up at the next frame in photogallery.swf and you can only see the first picture of the gallery so no buttons, title…

---

<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:** [January 4, 2003, 11:31am UTC](https://forum.kirupa.com/t/prob-with-external-swf/10530/9 "2003-01-04T11:31:44Z")

</div>

and if i change it into \_level1 it just doesn’t change

---

<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:** [January 4, 2003, 11:41am UTC](https://forum.kirupa.com/t/prob-with-external-swf/10530/10 "2003-01-04T11:41:33Z")

</div>

You used the keyword \_root in the loaded movie. It causes problems. Check this article: [http://www.kirupa.com/developer/actionscript/tricks/relativeaddressing.asp](http://www.kirupa.com/developer/actionscript/tricks/relativeaddressing.asp)

pom \<:}

---

<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:** [January 4, 2003, 5:13pm UTC](https://forum.kirupa.com/t/prob-with-external-swf/10530/11 "2003-01-04T17:13:28Z")

</div>

Thanx man, I can continue with my work.  
cya

---

<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:** [January 11, 2003, 7:11pm UTC](https://forum.kirupa.com/t/prob-with-external-swf/10530/12 "2003-01-11T19:11:11Z")

</div>

im having the same exact problem loading the movie into my main movie and the loaded movie’s buttons not working. i read the article about global variables, but i am still having trouble understanding this. can any explain the use of global variables a little more, as far as using it in this situation. thanks.
