Linking external swf's

hi, i have created a flash site, where i load the menu into an swf with:

[AS]_root.menu_display.loadMovie(“menu.swf”);[/AS]

and in the menu i want to link another external swf into the main one.

So basically i want to load an external swf into the playing swf from an external swf…

a bit hard to explain…

i used:

[AS]on (release) {_root.right_display.loadMovie(“links.swf”); }[/AS]

but then i realised i am linking from an external swf…
can what i want to do be done or not?

thanks for any help you can give me…

That should work. If you load a movie into a movieClip that already has a movie in it, I think I remember reading that Flash will automatically unload that movie. If not, use something like:


_root.right_display.unLoadMovie();

It depends on where you have the right_display mc.
If its inside the menu.swf, it will work. If its on your main movie, then it wont work.
Then you can use the following:[AS]_level0._root.right_display.loadMovie(“links.swf”);[/AS]

yeah, i loaded an swf and i want a link from that to load a movie in the main swf,

so that level code thing is for that?

is there anything you have to chage if i want to link more than one?

Hmm i didnt quite get your idea… :-\

keke, i know its a bit hard to explain…

i have an swf which i loaded a menu into with:

[AS]_root.menu.loadMovie(“menu.swf”);[/AS]

and in that swf i had links to other swfs as:

[AS]_root.left_display.loadMovie(“links.swf”);[/AS]

but it doesnt work because that trys to load the swf into menu.swf…

i want to load it into the main movie which loaded the menu…

does the:

[AS]_level0._root.right_display.loadMovie(“links.swf”);[/AS]

go back one level?

If you use:[AS]_level0._root.right_display.loadMovie(“links.swf”);
[/AS] then you need a movie clip on your main movie with an instance name of right_display.

yeah i do, so that will work?

ill try it out…
thanks for the help…

Yes, it should work.
:slight_smile:

That’s right…it should…that movieClip is on the main stage…right?

yep it works fine…

thanks for the help guys!

:wink:

welcome :slight_smile: