Prob with external swf

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

were you´re using:

_root.gotoAndPlay(“Labelname”);

use

_levelN.gotoAndPlay(“Labelname”);

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

=)

doesn’t work :frowning:

_root.createEmptyMovieClip(“container”, 1)

so I changed every _root in the external swf to _level1

Nothing new!! But thanx for trying…

Anyone else?

Someone with the same prob?

I can´t understand your problem. :-\

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

_root.gotoAndPlay("Labelname");

or that code:

_root.createEmptyMovieClip("container", 1);

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

Can you elaborate your problem a little more?

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

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.

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…

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

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

pom <:}

Thanx man, I can continue with my work.
cya

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.