home *** CD-ROM | disk | FTP | other *** search
- function onEnterFrame()
- {
- if(_currentframe > 1 && getBytesLoaded() == getBytesTotal())
- {
- initSplash();
- delete onEnterFrame;
- }
- else
- {
- var _loc1_ = Math.floor(getBytesLoaded() / getBytesTotal() * 100);
- splash_mc.progress_mc.percent_txt.text = _loc1_;
- }
- }
- function initSplash()
- {
- gotoAndStop("splash");
- splash_mc.gotoAndStop(2);
- var controller = this;
- splash_mc.start_mc.start_btn.onRelease = function()
- {
- controller.choosePlayer();
- };
- splash_mc.start_mc.help_btn.onRelease = function()
- {
- controller.helpSplash();
- };
- startLevel = 0;
- if(canChooseLevel)
- {
- levelChooser._visible = true;
- }
- else
- {
- levelChooser._visible = false;
- }
- }
- function choosePlayer()
- {
- gotoAndStop("choosePlayer");
- }
- function startGame()
- {
- if(canChooseLevel)
- {
- initSplash();
- }
- else
- {
- choosePlayer();
- }
- }
- function helpSplash()
- {
- dialog = attachMovie("DialogHelp","dialog",16000);
- dialog.addEventListener("closeModal",this);
- dialog.backgroundAlpha = 100;
- }
- function closeModal(eventObj)
- {
- var _loc1_ = eventObj.name;
- if(_loc1_ == "help")
- {
- startGame();
- return undefined;
- }
- }
- Stage.align = "TL";
- Stage.scaleMode = "noscale";
- if(!__inited)
- {
- var canChooseLevel = _level0.chooseLevel != null && (_level0.chooseLevel > 0 || _level0.chooseLevel.toLowerCase() == "true");
- var startLevel = 0;
- fsd = _level0.fsd == null ? "fsd.swf" : _level0.fsd;
- fsdWidth = 400;
- fsdHeight = 250;
- _level0.eventID = "dc_kpso_9232";
- _level0.subject = "Kim Possible - Super Villain Smash Out";
- _level0.fsdPlayAgain = function()
- {
- fsdContainer.removeMovieClip();
- startGame();
- };
- var cache = new LoadVars();
- cache.onData = cache.onLoad = function()
- {
- delete cache;
- };
- cache.load(fsd);
- }
-