Frame 1
_root.loadItems = new Array();
_root.loadItems.push("Game.swf");
_root.loadItems.push("pregame.swf");
_root.loadDoneFile = "Game.swf";
_root.nextLoadNum = -1;
_root.totalLoadItems = _root.loadItems.length;
Frame 2
_root.nextLoadNum = _root.nextLoadNum + 1;
var tNextNum = _root.nextLoadNum;
if (tNextNum >= _root.totalLoadItems) {
gotoAndPlay ("loadDone");
} else {
var tNextFile = _root.loadItems[tNextNum];
_root.debug.text = (("Next: " + tNextFile) + "\r") + _root.debug.text;
_root.loadClip.loadMovie(tNextFile);
gotoAndPlay(_root._currentframe + 1);
}
Frame 10
var percentLoaded = ((_root.loadClip.getBytesLoaded() / _root.loadClip.getBytesTotal()) * 100);
if ((percentLoaded >= 100) && (_root.loadClip.getBytesTotal() > 1000)) {
_root.loadClip.removeMovieClip();
gotoAndPlay ("nextLoad");
}
Frame 12
gotoAndPlay ("checkLoad");
Frame 22
loadMovie (_root.loadDoneFile, _level0);
Frame 31
stop();