External Swf's

Hey guys,

I’m not that great at Actionscript so I need to ask for some help …

Ok - so I have my main movie. main.swf. Then I have a movie clip made inside that movie to load the external swf’s from - lets say mod1.swf, mod2.swf, etc.

I know how to get it to load inside the movie clip, but what I want to do is have a text file that has a list of all the swf’s I will be making (Files= mod1.swf; mod2.swf; , etc) and when you click on the next button it goes to that file and calls the swf’s in order, assuming that mod1.swf loads first, you would call mod2.swf if you pressed next.

A layer action in my main movie has this code:

files = “”;
loadVariablesNum(“files.txt”, 0);
// the first clip
loadMovie(“CTHRC_mod1.swf”, load_position);

And the next buttons has :

on (release) {
arrayofstrings = files.split(";");
i++;
next = arrayofstrings*;
back = arrayofstrings*;
loadMovie(next, load_position);
}

load_position is the movie clip where I’m loading it too.

So I export the movie, and when I click next, mod2.swf doesn’t show up - the space where it should be just goes white.

Please help … I can’t figure out how to get this working, and Thank you in advance!!