Loading movie clips instead of external movies

i’m trying to create a simple site with three buttons and three different screens rotating (so if one button is clicked the current screen fades out, a new one fades in, then when a second button is clicked the same thing happens and so on).

i was using the tutorial found here:
http://www.kirupa.com/developer/mx2004/transitions.htm

my problem is that i need everything pre-loaded from the begining. i was trying to create a preloader that loads all external files, but it would be a lot easier to have the different screens as movie clips in one file. the problem is, i’m not sure how i should modify the code to place a movie clip in my “container”, rather then load an external file… can anyone help?

this is the code i’m using in my buttons, if anyone can tell me how to modify this bit i think i can do the rest…


on (release) {
    if (_root.currMovie == undefined) {
        _root.currMovie = "main";
        container.loadMovie("main.swf");
        } else if (_root.currMovie != "main") {
        if (container._currentframe >= container.midframe) {
            _root.currMovie = "main";
            container.play();
        }
    }
}

thanks :puzzle: