Variables

Hey there,

So I was speaking to someone else about this external swf thing with transitions and they said to use code like this (but then had to go so I’m not sure what he meant):

//my buttons are movie clips

this.onRelease = function(){

//“fadeout” is my outro
_root.bgboxfade_mc.gotoAndPlay(“fadeout”);

// then he said something about using a variable container here, something like this:
var movieToLoad = “myclip.swf”;

}

Then he said at the end of the outro, use code like this:

//to load the movie and with the variable container name so it loads the correct clip (page_t is my target name)
loadMovie(movieToLoad, “_root.page_t”);

First of all, this doesn’t work for me. Can anyone help? Does anyone know what he meant?
Second, I have a bunch of buttons to load, but they will all use this same outro (it’s just a background fade) How can I make the correct swf’s load when the button is pressed AND play the same outro for each button?

Any help is much appreciated!!