Simple question

using the transistional load between swfs,

intro screen loads and the user can click a button which plays a short animation movieclip. At the end of the mc, i would like the scene to transistion to the next SWF. Just wondering what modifications need to be done to turn this button script for loading the next SWF into an automatic load

on (release) {

if (_root.currMovie == undefined) {

_root.currMovie = “mainmenu”;
_root.container.loadMovie(“mainmenu.swf”);
} else if (_root.currMovie != “mainmenu”) {
if (_root.container._currentframe >= _root.container.midframe) {

_root.currMovie = “mainmenu”;
_root.container.play();

}

}

}

I know this is a simple solution, but I’m pretty rough on my scripting skills