PDA

View Full Version : loadMovie (variable) - to create central swf list


jpe2001
08-02-2002, 11:33 AM
I want to create one central list of all the swfs that i’m loading which is around 40.
So that i don’t need to keep changing each link in each swf.

I’ve got the concept, i want to use a variable to indicate which swf to load, then I can just have one list of variables (see below) and then just call that variable.

swf1=”navigation.swf”
swf2=”image1.swf”
swf3=”image2.swf”
etc…
loadMovie.swf1(2);

Firstly can ‘loadMovie’ load variables?
and secondly what would the correct syntax for the 'loadMovie.swf1(2);' be?

Thanks
Jon-Paul

red penguin
08-02-2002, 12:28 PM
You've got the right idea...I prefer to use the "movieClip" method; as in: myMovieClip.loadMovie("url" [,variables])

To answer your first question, yes, we can load variables. See that in there?

Correct syntax...As I said, this will load a swf into an emptyClip, for example. So...

emptyClip.loadMovie(swf2);

As for variables, check the documentation on usage of that. It'll be GET or POST.