Frame 1
Instance of Symbol 300 MovieClip [liveinclude] "biosLoader" in Frame 1
//component parameters
onClipEvent (initialize) {
debug = 0;
translation = 0;
game_id = 565;
game_lang = "en";
newMeterX = 170;
newMeterY = 135;
minscorevalue = 1;
scoresentframe = "gotoIntroFrame";
metervisible = 1;
custommetercolors = 0;
text1 = 16776960 /* 0xFFFF00 */;
text2 = 16711680 /* 0xFF0000 */;
text3 = 16777215 /* 0xFFFFFF */;
liveBios_boolean = true;
bios_offline_domain = "http://swf.neopets.com";
bios_url = "games/utilities/flash_bios";
allow_domain = "neopets.com";
}
Frame 2
_level0.IDS_play_game = "<p align='center'><font size='18'>Play Game</font></p>";
_level0.IDS_instructions = "<p align='center'><font size='18'>View Instructions</font></p>";
_level0.IDS_viewtrailers = "<p align='center'><font size='18'>View Trailers</font></p>";
_level0.IDS_end_game = "<p align='center'><font size='18'>End Game</font></p>";
_level0.IDS_restart_game = "<p align='center'><font size='18'>Restart Game</font></p>";
_level0.IDS_send_score = "<p align='center'><font size='18'>Send Score</font></p>";
_level0.IDS_your_score = "<p align='center'><font size='40'>Your Score</font></p>";
_level0.IDS_back = "<p align='center'><font size='18'>Back</font></p>";
_level0.IDS_highband = "<p align='center'><font size='24'>High Bandwidth</font></p>";
_level0.IDS_lowband = "<p align='center'><font size='24'>Low Bandwidth</font></p>";
_level0.IDS_trailertitle = "<p align='center'><font size='40'>View Trailer</font></p>";
_level0.IDS_score = "<p align='left'><font size='30'>SCORE</font></p>";
_level0.IDS_stage = "<p align='left'><font size='14'>STAGE</font></p>";
_level0.IDS_chances = "<p align='left'><font size='24'>CHANCES:</font></p>";
_level0.IDS_rag = "<p align='left'><font size='14'>RAG</font></p>";
_level0.IDS_washup = "<p align='center'><font size='12'>Clean your rag!</font></p>";
_level0.IDS_goal1 = "<p align='center'><font size='18'>Goal: ";
_level0.IDS_goal2 = " Points</font></p>";
_level0.IDS_continue = "<p align='center'><font size='18'>Press SPACE To Continue</font></p>";
_level0.IDS_level1text = "<p align='center'><font size='30'>Stage 1<br>Good Luck!</font></p>";
_level0.IDS_level2text = "<p align='center'><font size='30'>Getting pretty good there aren't we?<br>Proceed to Stage 2!</font></p>";
_level0.IDS_level3text = "<p align='center'><font size='30'>Fast hands!<br>Get ready for Stage 3!</font></p>";
_level0.IDS_level4text = "<p align='center'><font size='30'>Wow, you're really good!<br>Stage 4!</font></p>";
_level0.IDS_level5text = "<p align='center'><font size='30'>Final Stage!<br>Let's see how many cars you can clean!</font></p>";
_level0.IDS_bosstext = "<p align='center'><font size='30'>Come on!<br>You can do better than that!</font></p>";
_level0.IDS_gameover = "<p align='center'><font size='30'>You have used up your chances!<br>GAME OVER!</font></p>";
_level0.IDS_goodjob = "<p align='center'><font size='40'>Alright that's enough!<br>Good Job!</font></p>";
_level0.IDS_sound0 = "<p align='center'><font size='18'>Toggle Sound Off</font></p>";
_level0.IDS_sound2 = "<p align='center'><font size='18'>Toggle Sound On</font></p>";
_level0.IDS_instructionstitle = "<p align='center'><font size='36'>INSTRUCTIONS</font></p>";
_level0.IDS_instructionscontent = "<p align='center'><font size='16'><br>Use the arrow keys to move the Techo around.<br><br>Use the space bar to wipe the dirty cars clean, or to clean your rag in the water bucket.<br><br>Collect the Reese's Puffs Cereal box to gain extra points.<br><br>There are 5 stages in the game.</font></p>";
Frame 3
_global.ScoringSystem = new _level100.include.ScoringSystem(0);
_global.NeoStatus = new _global.ScoringSystem.NeoStatus(0);
fscommand ("trapallkeys", "true");
Frame 4
stop();
ScoringSystem.reset();
var gamesound = (new classes.SoundController(["water", "clink", "bell", "horn", "buzzer", "hit", "clean"]));
var introcontent = (new classes.ContentRegister("customGenericGame0_fnt"));
with (introcontent) {
addContent(_root.txt_startgame, "play game", _level0.IDS_play_game);
addContent(_root.txt_instructions, "instructions", _level0.IDS_instructions);
addContent(_root.txt_sound, "sound", _level0["IDS_sound" + _root.gamesound.getSoundState()]);
}
Frame 5
var instructcontent = (new classes.ContentRegister("customGenericGame0_fnt"));
with (instructcontent) {
addContent(_root.txt_back, "back", _level0.IDS_back);
addContent(_root.txt_instructionstitle, "title", _level0.IDS_instructionstitle);
setFont("customGenericGame1_fnt");
addContent(_root.txt_instructionscontent, "content", _level0.IDS_instructionscontent);
}
stop();
Frame 6
var trailercontent = (new classes.ContentRegister("customGenericGame0_fnt"));
with (trailercontent) {
addContent(_root.txt_back, "back", _level0.IDS_back);
addContent(_root.txt_highband, "high bandwidth", _level0.IDS_highband);
addContent(_root.txt_lowband, "low bandwidth", _level0.IDS_lowband);
addContent(_root.txt_trailertitle, "title", _level0.IDS_trailertitle);
}
stop();
Frame 11
stop();
Instance of Symbol 297 MovieClip [VideoPlayerSymbol] "VideoPlayer" in Frame 11
//component parameters
onClipEvent (initialize) {
pMovieURL = "http://swf.neopets.com/games/miramax/sharkboy_high_v1.swf";
pMovieFPS = 12;
pCountDown_mc = "321_countdown";
pDoneMethod = "onTrailerDone";
pMovieWidth = 240;
pMovieHeight = 180;
}
Frame 16
stop();
Instance of Symbol 297 MovieClip [VideoPlayerSymbol] "VideoPlayer" in Frame 16
//component parameters
onClipEvent (initialize) {
pMovieURL = "http://swf.neopets.com/games/miramax/sharkboy_low_v1.swf";
pMovieFPS = 12;
pCountDown_mc = "321_countdown";
pDoneMethod = "onTrailerDone";
pMovieWidth = 160;
pMovieHeight = 120;
}
Frame 21
stop();
_root.GAMESCORE = new ScoringSystem.Evar(0, "GAMESCORE", "THE TOTAL GAMESCORE");
_root.LIFECOUNT = new ScoringSystem.Evar(0, "LIFECOUNT", "NUMBER OF LIVES REMAINING");
_root.STAGECOUNT = new ScoringSystem.Evar(0, "STAGECOUNT", "CURRENT STAGE NUMBER");
_root.GAMESCORE.changeTo(0);
_root.LIFECOUNT.changeTo(4);
_root.STAGECOUNT.changeTo(0);
Instance of Symbol 402 MovieClip "controller" in Frame 21
onClipEvent (load) {
this._visible = false;
var gGame = (new classes.GameClass());
var gamecontent = (new classes.ContentRegister("customGenericGame0_fnt"));
with (gamecontent) {
addContent(_root.sb.txt_score, "Score", _level0.IDS_score);
addContent(_root.sb.txt_stage, "Stage", _level0.IDS_stage);
addContent(_root.sb.txt_chances, "Chances", _level0.IDS_chances);
addContent(_root.sb.txt_rag, "Rag", _level0.IDS_rag);
addContent(_root.sb.cleanbar.washup.txt_washup, "wash up", _level0.IDS_washup);
}
var playsnd = (new classes.SoundController([]));
var i = 0;
while (i < 9) {
_root["placeholder" + i]._visible = false;
_root["b" + i]._visible = false;
i++;
}
var gameresult;
}
onClipEvent (enterFrame) {
gameresult = gGame.run();
if (gameresult > 5) {
gGame.destroy();
_root.gotoAndPlay("gameoverframe");
}
}
Frame 22
stop();
_global.NeoStatus.sendTag("Game Finished");
var gocontent = (new classes.ContentRegister("customGenericGame0_fnt"));
with (gocontent) {
addContent(_root.restartGame_txt, "restart game", _level0.IDS_restart_game);
addContent(_root.sendScore_txt, "send score", _level0.IDS_send_score);
addContent(_root.txt_yourscore, "your score", _level0.IDS_your_score);
}
if (_root.STAGECOUNT.show() == 6) {
goodending._visible = true;
badending._visible = false;
} else {
badending._visible = true;
goodending._visible = false;
}
_root.val_finalscore = _root.GAMESCORE.show();
Frame 23
stop();
ScoringSystem.setScore(_root.GAMESCORE.show());
ScoringSystem.submitScore();
Frame 24
_root.gotoAndPlay("resetAllFrame");
Symbol 23 MovieClip Frame 1
stop();
Symbol 64 MovieClip [Scoreboard] Frame 1
#initclip 14
Object.registerClass("Scoreboard", classes.Scoreboard);
#endinitclip
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 2
stop();
Symbol 73 MovieClip Frame 3
stop();
Symbol 73 MovieClip Frame 4
stop();
Symbol 73 MovieClip Frame 5
stop();
Symbol 73 MovieClip Frame 6
stop();
Symbol 73 MovieClip Frame 7
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
stop();
Symbol 84 MovieClip Frame 3
stop();
Symbol 84 MovieClip Frame 4
stop();
Symbol 84 MovieClip Frame 5
stop();
Symbol 84 MovieClip Frame 6
stop();
Symbol 84 MovieClip Frame 7
stop();
Symbol 84 MovieClip Frame 8
stop();
Symbol 84 MovieClip Frame 9
stop();
Symbol 84 MovieClip Frame 10
stop();
Symbol 84 MovieClip Frame 11
stop();
Symbol 85 MovieClip [Car] Frame 1
#initclip 9
Object.registerClass("Car", classes.Car);
#endinitclip
Symbol 183 MovieClip Frame 1
play();
Symbol 183 MovieClip Frame 46
stop();
Symbol 235 MovieClip Frame 1
_root.player.setPause();
Symbol 235 MovieClip Frame 8
_root.gamesound.playSound("water");
Symbol 235 MovieClip Frame 50
_root.player.unPause();
Symbol 235 MovieClip Frame 121
stop();
Symbol 239 MovieClip [Player] Frame 1
#initclip 10
Object.registerClass("Player", classes.Player);
#endinitclip
stop();
Symbol 239 MovieClip [Player] Frame 2
stop();
Symbol 239 MovieClip [Player] Frame 3
stop();
Symbol 239 MovieClip [Player] Frame 4
stop();
Symbol 239 MovieClip [Player] Frame 5
stop();
Symbol 239 MovieClip [Player] Frame 6
stop();
Symbol 243 MovieClip [Bonus] Frame 1
#initclip 11
Object.registerClass("Bonus", classes.Bonus);
#endinitclip
Symbol 251 MovieClip [Levelup] Frame 1
#initclip 12
Object.registerClass("Levelup", classes.Prompt);
#endinitclip
Symbol 266 MovieClip [Boss] Frame 1
#initclip 13
Object.registerClass("Boss", classes.Prompt);
#endinitclip
Symbol 269 MovieClip Frame 1
Symbol 275 Button
on (release) {
this._parent._parent.paused = 1;
this._parent._parent.mold.stop();
nextFrame();
}
Symbol 277 Button
on (release) {
this._parent._parent.paused = 0;
this._parent._parent.mold.play();
prevFrame();
}
Symbol 279 MovieClip Frame 1
this.myButton.useHandCursor = false;
stop();
Symbol 279 MovieClip Frame 2
this.myButton.useHandCursor = false;
stop();
Instance of Symbol 287 MovieClip "volumeSlider" in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
this.videoMC = this._parent._parent._parent;
this.globalsound = new Sound(this.videoMC);
this.volume = 100;
this.leftLimit = this._parent.sliderBG._x + (this._width / 2);
this.rightLimit = (this._parent.sliderBG._x + this._parent.sliderBG._width) - (this._width / 2);
this.limitAmount = this.rightLimit - this.leftLimit;
this.pcnt = 100 / this.limitAmount;
this._x = this.rightLimit;
this.scrubbing = 0;
this.useHandCursor = 0;
this.onPress = function () {
this.scrubbing = 1;
};
this.onRelease = (this.onReleaseOutside = function () {
this.scrubbing = 0;
stopDrag();
});
}
onClipEvent (enterFrame) {
if (this.scrubbing) {
this.startDrag(false, this.leftLimit, 0, this.rightLimit, 0);
var dist = (this._x - this.leftLimit);
var d = (d / this.limitAmount);
this.volume = dist * this.pcnt;
this.globalsound.setVolume(this.volume);
}
}
Symbol 292 MovieClip Frame 1
this.loadingBar.myMovie = this._parent.mold;
this.loadingBar.onLoad = function () {
this._xscale = 0;
};
this.loadingBar.onEnterFrame = function () {
var _local1 = this;
if ((++_local1.waitCount) > 10) {
var loadedBytes = _local1.myMovie.getBytesLoaded();
var _local3 = _local1.myMovie.getBytesTotal();
var _local2 = (loadedBytes / _local3) * 100;
_local1._xscale = _local2;
if (_local2 == 100) {
_local1.onEnterFrame = undefined;
}
}
};
Instance of Symbol 287 MovieClip "sliderButton" in Symbol 292 MovieClip Frame 1
onClipEvent (load) {
this.videoMC = this._parent._parent;
this.myMovie = this.videoMC.mold;
this.beginDrag = this._x;
this.endDrag = this._parent.sliderBG._x + this._parent.sliderBG._width;
this.scrubbing = 0;
this.useHandCursor = false;
this.onPress = function () {
var _local1 = this;
_local1.myMovie.stop();
_local1.videoMC.controller.pl.gotoAndStop("pauseButton");
_local1.scrubbing = 1;
};
this.onRelease = (this.onReleaseOutside = function () {
var _local1 = this;
var _local2 = Math.round((_local1._parent.sliderBG._xmouse / (_local1.endDrag - _local1.beginDrag)) * _local1.myMovie._totalframes);
_local1.myMovie.gotoAndPlay(_local2);
_local1.videoMC.controller.pl.gotoAndStop("playButton");
_local1.scrubbing = 0;
stopDrag();
});
}
onClipEvent (enterFrame) {
if (this._x >= this.endDrag) {
this._parent.paused = 1;
this.myMovie.gotoAndStop(1);
this.videoMC.controller.pl.gotoAndStop("pauseButton");
this._parent._parent.pOnDone();
}
if (!this.scrubbing) {
var movie_Clip = this.myMovie;
var newX = ((movie_Clip._currentframe / movie_Clip._totalframes) * (this.endDrag - this.beginDrag));
newX = newX + this.beginDrag;
this._x = newX;
} else {
this.startDrag(false, this.beginDrag, 0, this.endDrag, 0);
}
}
Symbol 294 MovieClip Frame 1
this._visible = false;
Symbol 297 MovieClip [VideoPlayerSymbol] Frame 1
#initclip 15
VideoPlayerClass = function () {
System.security.allowDomain("swf.neopets.com", "images.neopets.com", "images50.neopets.com", "64.191.225.20", "www.millsberry.com");
this.init();
};
var obj = VideoPlayerClass.prototype;
obj.setMovieURL = function (url_str) {
this.pMovieURL = url_str;
};
obj.init = function () {
if (_root.percent_loading_txt != undefined) {
this.loadingText_str = _root.percent_loading_txt;
} else if (_level0.percent_loading_txt != undefined) {
this.loadingText_str = _level0.percent_loading_txt;
} else {
this.loadingText_str = "Loading %1 %";
}
this.getPercentLoaded = function () {
return(Math.round(this.process.pcntLoaded));
};
this.updateLoadProgress = function () {
var _local1 = this;
_local1.load_txt.htmlText = _local1.findAndReplace(_local1.loadingText_str, "%1", _local1.getPercentLoaded());
};
this.findAndReplace = function (tSource_str, tFind_str, tReplace_str) {
var _local2 = tSource_str.split(tFind_str);
var _local3 = "";
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + _local2[_local1];
if (_local1 < (_local2.length - 1)) {
_local3 = _local3 + tReplace_str;
}
_local1++;
}
return(_local3);
};
this.load_txt.htmlText = "";
this.countDown_mc.attachMovie(this.pCountDown_mc, "countGR", 1);
this.countDown_mc._alpha = 0;
this.controller._visible = false;
this.mold._visible = false;
if (this.pMovieWidth == "_root.movieWidth") {
this.pMovieWidth = _root.movieWidth;
}
if (this.pMovieHeight == "_root.movieHeight") {
this.pMovieHeight = _root.movieHeight;
}
var e = eval (this.pMovieURL);
if (e != undefined) {
this.pMovieURL = e;
}
this.paused = 1;
loadMovie (this.pMovieURL, this.mold);
this.mold.stop();
this.controller.pl.gotoAndStop("pauseButton");
this.bg._visible = false;
var obj = this.controller.sliderButton;
obj.videoMC = this;
obj.myMovie = this.mold;
obj.beginDrag = obj._x;
obj.endDrag = this.controller.sliderBG._x + this.controller.sliderBG._width;
obj.scrubbing = false;
obj.useHandCursor = false;
obj.onPress = function () {
var _local1 = this;
_local1.myMovie.stop();
_local1.videoMC.paused = 1;
_local1._parent.pl.gotoAndStop("pauseButton");
_local1.scrubbing = true;
};
obj.onRelease = (obj.onReleaseOutside = function () {
var _local1 = this;
var _local2 = Math.max(1, Math.round((_local1._parent.sliderBG._xmouse / (_local1.endDrag - _local1.beginDrag)) * _local1.myMovie._totalframes));
var _local3 = _local1.myMovie._framesloaded;
if (_local2 > _local3) {
_local2 = _local3 - 12;
} else if (_local2 < 1) {
_local2 = 1;
}
_local1.videoMC.countDown_mc._visible = false;
if (_root.countDown_mc) {
_root.countDown_mc._visible = false;
}
_local1.videoMC.controller.pl.gotoAndStop("playButton");
stopDrag();
_local1.scrubbing = false;
_local1.videoMC.paused = 0;
_local1.myMovie.gotoAndPlay(_local2);
});
obj.onEnterFrame = function () {
var _local1 = this;
if (!_local1.scrubbing) {
var _local2 = _local1.myMovie;
_local1._x = _local1.beginDrag + ((_local2._currentframe / _local2._totalframes) * (_local1.endDrag - _local1.beginDrag));
} else {
_local1.startDrag(false, _local1.beginDrag, 0, _local1.endDrag, 0);
}
if (_local1._x >= _local1.endDrag) {
_local1.videoMC.paused = 1;
_local1.myMovie.gotoAndStop(1);
_local1.videoMC.controller.pl.gotoAndStop("pauseButton");
_local1._parent._parent.pOnDone();
}
};
var obj = this.controller.loadingBar;
obj._xscale = 0;
obj.video_mc = this.mold;
obj.onEnterFrame = function () {
var _local1 = this;
var _local2 = _local1.video_mc.getBytesLoaded();
var totalBytes = _local1.video_mc.getBytesTotal();
var _local3 = (_local2 / totalBytes) * 100;
_local1._xscale = _local3;
if ((_local2 > 100) && (_local3 >= 100)) {
_local1.onEnterFrame = undefined;
}
};
var obj = this.process;
obj.countDown = this.countDown_mc;
obj.fps = this.pMovieFPS;
obj.bufferFactor = 1.2;
obj.startTime = getTimer();
obj.sizeObjects = function () {
this._parent.resizeClips();
};
obj.onEnterFrame = function () {
var _local1 = this;
var _local2 = _local1._parent.mold.getBytesLoaded();
var _local3 = _local1._parent.mold.getBytesTotal();
var leftBytes = (_local3 - _local2);
var totalFrames = _local1._parent.mold._totalframes;
var loadedFrames = _local1._parent.mold._framesloaded;
var loadTime = (getTimer() - _local1.startTime);
var speed = (_local2 / loadTime);
var totalTime = (totalFrames / _local1.fps);
var playTime = (loadedFrames / _local1.fps);
var leftLoadTime = ((leftBytes / 1024) / speed);
_local1.pcntLoaded = (_local2 / _local3) * 100;
if (_local2 > 100) {
if (!isNaN(pcntLoaded)) {
_local1.countDown._alpha = 100;
_local1._parent.controller._visible = true;
_local1._parent.mold._visible = true;
var bufferTime = (leftLoadTime * _local1.bufferFactor);
if (playTime < bufferTime) {
_local1.sizeObjects();
if (_local1._parent.paused) {
_local1._parent.updateLoadProgress();
_local1._parent.mold.stop();
} else {
_local1.countDown._alpha = 0;
_local1._parent.load_txt._visible = false;
_local1.countDown.unloadMovie();
_local1._parent.load_txt.unloadMovie();
}
} else {
if (_root.countBG) {
_root.countBG._visible = false;
}
if (_root.countDown) {
_root.countDown._visible = false;
}
_local1._parent.load_txt._visible = false;
_local1._parent.paused = 0;
_local1.countDown._alpha = 0;
_local1._parent.mold.play();
_local1._parent.controller.pl.gotoAndStop("playButton");
_local1.sizeObjects();
_local1.onEnterFrame = undefined;
}
}
}
};
var obj = this.controller.volumeControl.volumeSlider;
obj.videoMC = this;
obj.globalsound = new Sound(this.mold);
obj.pVolume = 100;
obj.globalsound.setVolume(obj.pVolume);
obj.leftLimit = this.controller.volumeControl.sliderBG._x + (obj._width / 2);
obj.rightLimit = (this.controller.volumeControl.sliderBG._x + obj._parent.sliderBG._width) - (obj._width / 2);
obj.limitAmount = obj.rightLimit - obj.leftLimit;
obj.pcnt = 100 / obj.limitAmount;
obj._x = obj.rightLimit;
obj.scrubbing = 0;
obj.useHandCursor = false;
obj.onPress = function () {
this.scrubbing = 1;
};
obj.onRelease = (obj.onReleaseOutside = function () {
this.scrubbing = 0;
stopDrag();
});
obj.onEnterFrame = function () {
var _local1 = this;
if (_local1.scrubbing) {
_local1.startDrag(false, _local1.leftLimit, 0, _local1.rightLimit, 0);
var _local2 = _local1._x - _local1.leftLimit;
var d = (d / _local1.limitAmount);
_local1.pVolume = _local2 * _local1.pcnt;
_local1.globalsound.setVolume(_local1.pVolume);
}
};
};
obj.stopMovie = function () {
this.mold.gotoAndStop(1);
};
obj.resizeClips = function () {
var _local1 = this;
var _local3 = _local1.mold;
var _local2 = _local1.controller;
var countDown = _local1.countDown_mc;
_local1.bg._width = _local1.pMovieWidth;
_local1.bg._height = _local1.pMovieHeight;
var xDiff = (160 - (_local1.pMovieWidth / 2));
var yDiff = ((120 - (_local1.pMovieHeight / 2)) - (_local2._height / 2));
_local3._x = (_local1.bg._x = xDiff);
_local3._y = (_local1.bg._y = yDiff);
_local1.bg._visible = true;
countDown._width = _local1.bg._width;
countDown._height = _local1.bg._height;
countDown._x = _local3._x;
countDown._y = _local3._y;
_local2._y = (_local1.bg._y + _local1.bg._height) + (_local2._height / 2);
_local2._width = _local1.bg._width;
_local1.load_txt._x = (_local2._x + (_local2._width / 2)) - _local1.load_txt._width;
_local1.load_txt._y = (_local2._y - (_local2._height / 2)) - _local1.load_txt._height;
_local1.mask_mc._width = _local1.pMovieWidth;
_local1.mask_mc._height = _local1.pMovieHeight;
_local1.mask_mc._x = _local3._x;
_local1.mask_mc._y = _local3._y;
};
obj.pOnDone = function () {
_root[this.pDoneMethod]();
};
Object.registerClass("VideoPlayerSymbol", VideoPlayerClass);
#endinitclip
Symbol 300 MovieClip [liveinclude] Frame 1
this.loadBios = function () {
var _local1 = this;
if (_level0.FG_GAME_BASE != undefined) {
_local1.url = ((_level0.FG_GAME_BASE + _local1.bios_url) + "/bios.swf?r=") + random(99999);
} else {
_local1.url = ((_local1.bios_offline_domain + "/") + _local1.bios_url) + "/bios.swf";
}
if (_local1.debug == 1) {
}
System.security.allowDomain(String(_local1.allow_domain));
_local1.bios.loadMovie(_local1.url);
};
this._visible = 0;
this.stop();
this._parent.stop();
this.loadBios();
Symbol 416 MovieClip [__Packages.classes.Car] Frame 0
class classes.Car extends MovieClip
{
var pausegame, startTime, disabled, dirtcount, removeMovieClip;
function Car () {
super();
}
function init(pid) {
var _local1 = pid;
var _local3 = this;
_local3.id = _local1;
if (_local1 == 1) {
special = -1;
}
var _local2 = int(Math.random() * 5) + 1;
if (special == -1) {
if (Math.random() < (0.1 * _local1)) {
_local2 = 7;
special = _local1;
}
}
if ((special == -1) && (_local1 == 7)) {
_local2 = 7;
special = _local1;
}
_local3.img.gotoAndStop(_local2);
_local3.reset();
}
function setPause() {
pausegame = true;
}
function unPause() {
pausegame = false;
startTime = 0;
}
function reset() {
var _local1 = this;
_local1.startTime = 0;
_local1.dirtcount = 1;
_local1.disabled = false;
_local1.pausegame = false;
_local1.startTime = 0;
_local1.dirt.gotoAndStop(_local1.dirtcount);
}
function checkDisabled() {
return(disabled);
}
function gainDirt() {
var _local2 = _root;
var _local3 = this;
if (_local3.dirtcount < 10) {
_local3.dirtcount++;
_local3.dirt.gotoAndStop(_local3.dirtcount);
} else if ((!_local3.disabled) && (!_local3.pausegame)) {
_local3.disabled = true;
_local3.dirt.gotoAndStop("failed");
var _local1 = 0;
while (_local1 < 8) {
if (_local1 != _local3.id) {
if (!_local2["car" + (_local1 + 1)].checkDisabled()) {
_local2["car" + (_local1 + 1)].dirtcount = 1;
_local2["car" + (_local1 + 1)].dirt.gotoAndStop(1);
}
}
_local1++;
}
_local2.sb.updateLife(-1);
_local2.attachMovie("Boss", "boss", 25).init(0);
}
}
function reduceDirt() {
var _local1 = this;
var _local3 = _root;
if (!_local1.disabled) {
if (_local1.dirtcount > 1) {
var _local2 = 0;
((special == _local1.id) ? (_local2 = _local3.GAMESCORE.show() + (_local1.dirtcount * 2)) : (_local2 = _local3.GAMESCORE.show() + _local1.dirtcount));
_local3.sb.updateScore(_local2);
_local1.dirtcount--;
_local1.dirt.gotoAndStop(_local1.dirtcount);
}
}
}
function checkDirt() {
var _local1 = false;
if ((dirtcount > 1) && (!disabled)) {
_local1 = true;
}
return(_local1);
}
function onEnterFrame() {
var _local1 = this;
if (!_local1.pausegame) {
if (_local1.startTime == 0) {
_local1.startTime = getTimer();
if (_root.STAGECOUNT.show() > 0) {
_local1.delay = 1000 + int((Math.random() * 7000) / _root.STAGECOUNT.show());
} else {
_local1.delay = 50000;
}
} else {
var _local2 = getTimer();
if (_local2 > (_local1.startTime + _local1.delay)) {
_local1.gainDirt();
_local1.startTime = 0;
}
}
}
}
function destroy() {
removeMovieClip();
}
static var special = -1;
}
Symbol 417 MovieClip [__Packages.classes.Player] Frame 0
class classes.Player extends MovieClip
{
var pausegame, currentposition, removeMovieClip;
function Player () {
super();
}
function init() {
var _local1 = this;
Key.addListener(_local1);
_local1.currentposition = 0;
_local1.pausegame = false;
_local1.gotoAndStop("down");
}
function setPause() {
pausegame = true;
}
function unPause() {
pausegame = false;
}
function checkPauseStatus() {
return(pausegame);
}
function getPosition() {
return(currentposition);
}
function moveLeft() {
var _local1 = this;
if (_local1.currentposition > 0) {
if (_local1.currentposition == 5) {
_local1.currentposition = 0;
} else {
_local1.currentposition--;
}
}
_local1.gotoAndStop("left");
}
function moveRight() {
var _local1 = this;
if (_local1.currentposition == 0) {
_local1.currentposition = 5;
} else if ((_local1.currentposition != 4) && (_local1.currentposition != 8)) {
_local1.currentposition++;
}
_local1.gotoAndStop("right");
}
function moveUp() {
var _local1 = this;
if (_local1.currentposition > 4) {
_local1.currentposition = _local1.currentposition - 4;
} else if (_local1.currentposition == 0) {
_local1.currentposition = 1;
}
_local1.gotoAndStop("up");
}
function moveDown() {
var _local1 = this;
if ((_local1.currentposition < 5) && (_local1.currentposition > 0)) {
_local1.currentposition = _local1.currentposition + 4;
}
_local1.gotoAndStop("down");
}
function action() {
var _local1 = this;
var _local2 = _root;
if (_local1.currentposition > 0) {
if (_local2["car" + _local1.currentposition].checkDirt()) {
if (_local2.sb.incCleanBar(2)) {
_local2["car" + _local1.currentposition].reduceDirt();
_local2.gamesound.playSound("clean");
_local1.gotoAndStop("wash");
if (_local1.cleanani._currentframe >= 46) {
_local1.cleanani.gotoAndPlay(1);
}
}
}
} else if (_local2.sb.getCleanPercent() > 0) {
_local2.sb.resetCleanBar();
_local1.gotoAndStop("dry");
}
}
function drawPlayer() {
var _local1 = this;
_local1._x = _root["placeholder" + _local1.currentposition]._x;
_local1._y = _root["placeholder" + _local1.currentposition]._y;
}
function onKeyDown() {
var _local1 = this;
var _local2 = Key.getCode();
if (!_local1.pausegame) {
switch (_local2) {
case 37 :
_local1.moveLeft();
break;
case 39 :
_local1.moveRight();
break;
case 38 :
_local1.moveUp();
break;
case 40 :
_local1.moveDown();
break;
case 32 :
_local1.action();
}
_local1.drawPlayer();
}
}
function destroy() {
removeMovieClip();
}
}
Symbol 418 MovieClip [__Packages.classes.Bonus] Frame 0
class classes.Bonus extends MovieClip
{
var removeMovieClip;
function Bonus () {
super();
}
function init() {
var _local1 = this;
_local1.hidedelay = 10000 + int(Math.random() * 5000);
_local1.showdelay = 2000 + int(Math.random() * 3000);
_local1.hidestart = (_local1.showstart = 0);
_local1._visible = false;
}
function onEnterFrame() {
var _local1 = this;
var _local2 = _root;
if (!_local2.player.checkPauseStatus()) {
if (_local1.hidestart == 0) {
_local1.hidestart = getTimer();
_local1.myposition = Math.floor(Math.random() * 7) + 1;
_local1._x = _local2["b" + _local1.myposition]._x;
_local1._y = _local2["b" + _local1.myposition]._y;
} else {
_local1.hidecurr = getTimer();
if (_local1.hidecurr > (_local1.hidestart + _local1.hidedelay)) {
if (_local1.showstart == 0) {
_local1._visible = true;
_local1.showstart = getTimer();
} else {
_local1.showcurr = getTimer();
if (_local1.showcurr > (_local1.showstart + _local1.showdelay)) {
_local1.init();
} else if (_local2.player.getPosition() == _local1.myposition) {
_local2.gamesound.playSound("clink");
_local2.sb.updateScore(_local2.GAMESCORE.show() + 25);
_local1.init();
}
}
}
}
}
}
function destroy() {
removeMovieClip();
}
}
Symbol 419 MovieClip [__Packages.classes.Prompt] Frame 0
class classes.Prompt extends MovieClip
{
var state, removeMovieClip;
function Prompt () {
super();
}
function init(pid) {
var _local2 = _root;
var _local3 = this;
_local3._x = 640 + _local3._width;
_local3._y = 250;
_local3.state = 0;
var gamecontent = (new classes.ContentRegister("customGenericGame0_fnt"));
gamecontent.addContent(_local3.txt_continue, "continue", _level0.IDS_continue);
switch (pid) {
case 0 :
if (_local2.LIFECOUNT.show() > 0) {
gamecontent.addContent(_local3.txt, "text", _level0.IDS_bosstext);
_local2.gamesound.playSound("horn");
} else if (_local2.STAGECOUNT.show() < 5) {
gamecontent.addContent(_local3.txt, "text", _level0.IDS_gameover);
_local2.gamesound.playSound("horn");
} else {
gamecontent.addContent(_local3.txt, "text", _level0.IDS_goodjob);
_local2.gamesound.playSound("bell");
}
break;
default :
gamecontent.addContent(_local3.txt, "text", _level0[("IDS_level" + pid) + "text"]);
if (_local2.STAGECOUNT.show() <= 4) {
var sGoal = ((_level0.IDS_goal1 + _local2.sb.getLevelRequirement(_local2.STAGECOUNT.show())) + _level0.IDS_goal2);
gamecontent.addContent(_local3.txt_goal, "text2", sGoal);
}
_local2.gamesound.playSound("bell");
}
var _local1 = 0;
while (_local1 < 8) {
_local2["car" + (_local1 + 1)].setPause();
_local1++;
}
_local2.player.setPause();
}
function slideIn() {
var _local1 = this;
if (_local1._x > 322) {
_local1._x = _local1._x + ((320 - _local1._x) >> 1);
} else {
_local1._x = 320;
_local1.state = 1;
Key.addListener(_local1);
}
}
function slideOut() {
var _local2 = _root;
var _local3 = this;
if (_local3._x > ((-_local3._width) + 2)) {
_local3._x = _local3._x + (((-_local3._width) - _local3._x) >> 1);
} else {
_local3._x = -_local3._width;
_local3.state = 3;
Key.removeListener(_local3);
if (_local2.LIFECOUNT.show() == 0) {
if (_local2.STAGECOUNT.show() == 5) {
_local2.STAGECOUNT.changeTo(6);
} else {
_local2.STAGECOUNT.changeTo(7);
}
} else {
var _local1 = 0;
while (_local1 < 8) {
_local2["car" + (_local1 + 1)].unPause();
_local1++;
}
_local2.player.unPause();
}
}
}
function onKeyDown() {
var _local1 = Key.getCode();
if (!(_local1 === 32)) {
} else {
state = 2;
}
}
function onEnterFrame() {
var _local1 = this;
switch (_local1.state) {
case 0 :
_local1.slideIn();
return;
case 1 :
return;
case 2 :
_local1.slideOut();
return;
case 3 :
_local1.removeMovieClip();
}
}
function destroy() {
removeMovieClip();
}
}
Symbol 420 MovieClip [__Packages.classes.ContentRegister] Frame 0
class classes.ContentRegister
{
static var translator_object;
var defaultfont;
function ContentRegister (pdefaultfont) {
var _local1 = this;
_local1.register_array = new Array();
if ((translator_object == null) || (translator_object == undefined)) {
translator_object = _level100.include.translator;
}
_local1.defaultfont = pdefaultfont;
_local1.resetFont();
}
function setFont(pfontname) {
translator_object.setDefaultFont(pfontname);
}
function resetFont() {
setFont(defaultfont);
}
function addContent(ptarget, pid, pinittext) {
var _local1 = this;
var _local3 = pid;
var _local2 = _local1.register_array.length;
if (_local1.findLoc(_local3) != -1) {
} else {
_local1.register_array[_local2] = new Object();
_local1.register_array[_local2].ref = translator_object.addTextField(ptarget, {htmlText:pinittext});
_local1.register_array[_local2].id = _local3;
_local1.register_array[_local2].symref = ptarget;
_local1.resetFont();
}
}
function findLoc(pid) {
var _local2 = this;
var _local3 = pid;
var _local1 = 0;
var foundloc = -1;
while ((_local2.register_array[_local1].id != _local3) && (_local1 < _local2.register_array.length)) {
_local1++;
}
if (_local2.register_array[_local1].id == _local3) {
foundloc = _local1;
}
return(foundloc);
}
function changeContent(pid, ptext) {
var _local2 = this;
var _local1 = _local2.findLoc(pid);
((_local1 > -1) ? (_local2.register_array[_local1].ref.setHtmlText(ptext)) : undefined);
_local2.resetFont();
}
function refreshRef(pid) {
var _local2 = this;
var _local1 = _local2.findLoc(pid);
((_local1 > -1) ? ((_local2.register_array[_local1].ref = translator_object.addTextField(_local2.register_array[_local1].symref, {htmlText:""}))) : undefined);
}
}
Symbol 421 MovieClip [__Packages.classes.Scoreboard] Frame 0
class classes.Scoreboard extends MovieClip
{
var levelrequirement, cleanpercent, removeMovieClip;
function Scoreboard () {
var _local1 = this;
super();
_local1.levelrequirement = new Array();
_local1.levelrequirement[0] = 0;
_local1.levelrequirement[1] = 500;
_local1.levelrequirement[2] = 1000;
_local1.levelrequirement[3] = 2000;
_local1.levelrequirement[4] = 4000;
}
function init() {
var _local1 = this;
_local1.mov_cleanbar = _local1.cleanbar;
_local1.resetCleanBar();
_local1.cleanpercent = 0;
_root.LIFECOUNT.changeTo(3);
_local1.updateLife(0);
_local1.updateScore(0);
}
function getLevelRequirement(plevel) {
return(levelrequirement[plevel]);
}
function incCleanBar(ppercent) {
var _local1 = this;
var _local2 = true;
if (_local1.cleanpercent < 100) {
_local1.cleanpercent = _local1.cleanpercent + ppercent;
_local1.mov_cleanbar.bar._x = (-_local1.mov_cleanbar.bar._width) + ((_local1.cleanpercent / 100) * _local1.mov_cleanbar.bar._width);
} else {
_root.gamesound.playSound("buzzer");
_local1.cleanpercent = 100;
_local1.mov_cleanbar.bar._x = 0;
_local2 = false;
_local1.mov_cleanbar.washup._visible = true;
}
return(_local2);
}
function resetCleanBar() {
var _local1 = this;
_local1.mov_cleanbar.bar._x = -300;
_local1.mov_cleanbar.washup._visible = false;
_local1.cleanpercent = 0;
}
function getCleanPercent() {
return(cleanpercent);
}
function updateLife(pmodifier) {
var _local2 = _root;
var _local3 = this;
_local2.LIFECOUNT.changeBy(pmodifier);
var _local1 = 0;
while (_local1 < _local2.LIFECOUNT.show()) {
_local3["life" + _local1]._visible = true;
_local1++;
}
_local1 = _local2.LIFECOUNT.show();
while (_local1 < 4) {
_local3["life" + _local1]._visible = false;
_local1++;
}
}
function updateScore(pscore) {
var _local2 = _root;
var _local3 = this;
_local2.GAMESCORE.changeTo(pscore);
_local3.val_score = _local2.GAMESCORE.show();
if ((_local2.STAGECOUNT.show() < 5) && (!_local2.player.checkPauseStatus())) {
if (_local2.GAMESCORE.show() >= _local3.levelrequirement[_local2.STAGECOUNT.show()]) {
_local2.STAGECOUNT.changeBy(1);
var _local1 = 0;
while (_local1 < 8) {
_local2["car" + (_local1 + 1)].init(_local1);
_local1++;
}
_local3.resetCleanBar();
_local2.attachMovie("Levelup", "levelup", 26).init(_local2.STAGECOUNT.show());
_local3.val_stage = _local2.STAGECOUNT.show();
}
}
}
function destroy() {
removeMovieClip();
}
}
Symbol 422 MovieClip [__Packages.classes.SoundController] Frame 0
class classes.SoundController
{
static var soundMC;
var soundObj;
function SoundController (plist) {
var _local3 = this;
_local3.soundList = new Array();
_local3.soundObj = new Array();
_local3.soundMCList = new Array();
if ((soundMC == undefined) || (soundMC == null)) {
var _local2 = int(Math.random() * 1000);
while (_root["soundMC" + _local2] != undefined) {
_local2 = int(Math.random() * 1000);
}
soundMC = _root.createEmptyMovieClip("soundMC" + _local2, 1000000);
}
_local3.soundList = plist;
var _local1 = 0;
while (_local1 < _local3.soundList.length) {
var _local2 = int(Math.random() * 10000);
while (soundMC[_local2] != undefined) {
_local2 = int(Math.random() * 1000);
}
_local3.soundMCList[_local1] = soundMC.createEmptyMovieClip(_local2.toString(), _local2);
_local3.soundObj[_local1] = new Sound(_local3.soundMCList[_local1]);
_local3.soundObj[_local1].attachSound(_local3.soundList[_local1]);
_local1++;
}
}
function findSound(psoundname) {
var _local3 = this;
var _local1 = 0;
var ans = -1;
var _local2 = false;
while ((_local1 < _local3.soundList.length) && (!_local2)) {
((_local3.soundList[_local1] == psoundname) ? (_local2 = true) : (_local1++));
}
if (_local2) {
ans = _local1;
}
return(ans);
}
function playSound(psoundname) {
var _local2 = this;
if (playable) {
if ((sound_state == 0) || (sound_state == 1)) {
var _local1 = _local2.findSound(psoundname);
if (_local1 >= 0) {
_local2.soundObj[_local1].stop(_local2.soundList[_local1]);
_local2.soundObj[_local1].start(0, 1);
}
}
}
}
function stopSound(psoundname) {
var _local2 = this;
var _local1 = _local2.findSound(psoundname);
if (_local1 >= 0) {
_local2.soundObj[_local1].stop(_local2.soundList[_local1]);
}
}
function setSoundVolume(psoundname, pval) {
var _local1 = findSound(psoundname);
if (_local1 >= 0) {
soundObj[_local1].setVolume(pval);
}
}
function setSoundPan(psoundname, pval) {
var _local1 = findSound(psoundname);
if (_local1 >= 0) {
soundObj[_local1].setPan(pval);
}
}
function setBGM(psoundname) {
bgm_id = findSound(psoundname);
}
function playBGM() {
var _local1 = this;
if (playable && (!_local1.bgmplaying)) {
if ((sound_state == 0) || (sound_state == 3)) {
if (_local1.bgm_id >= 0) {
_local1.bgmplaying = true;
_local1.soundObj[_local1.bgm_id].start(0, 99);
_local1.soundObj[_local1.bgm_id].onSoundComplete = function () {
this.start(0, 99);
};
}
}
}
}
function stopBGM() {
var _local1 = this;
if (_local1.bgm_id >= 0) {
_local1.soundObj[_local1.bgm_id].onSoundComplete = null;
_local1.soundObj[_local1.bgm_id].stop(_local1.soundList[_local1.bgm_id]);
_local1.bgmplaying = false;
}
}
function setBGMVolume(pval) {
soundObj[bgm_id].setVolume(pval);
}
function turnOn() {
sound_state = 0;
updateSoundStatus();
}
function turnOff() {
sound_state = 2;
updateSoundStatus();
}
function updateSoundStatus() {
var _local1 = this;
if ((sound_state == 2) || (sound_state == 3)) {
for (var _local2 in _local1.soundObj) {
if (_local2 != _local1.bgm_id) {
_local1.soundObj[_local2].stop(_local1.soundList[_local2]);
}
}
}
(((sound_state == 1) || (sound_state == 2)) ? (_local1.stopBGM()) : (_local1.playBGM()));
}
function toggleSound() {
if (playable) {
playable = false;
sound_state = 2;
} else {
playable = true;
sound_state = 0;
}
updateSoundStatus();
return(sound_state);
}
function getSoundState() {
return(sound_state);
}
function toggleSoundState() {
sound_state = (sound_state + 1) % 4;
updateSoundStatus();
return(sound_state);
}
function destruct() {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.soundList.length) {
_local2.soundObj[_local1].stop(_local2.soundList[_local1]);
delete _local2.soundObj[_local1];
_local2.soundMCList[_local1].removeMovieClip();
_local1++;
}
delete _local2.soundList;
delete _local2.soundObj;
delete _local2.soundMCList;
}
var bgm_id = -1;
static var sound_state = 0;
static var playable = true;
var bgmplaying = false;
}
Symbol 423 MovieClip [__Packages.classes.GameClass] Frame 0
class classes.GameClass
{
function GameClass () {
var _local2 = _root;
_local2.attachMovie("Player", "player", 19, {_x:_local2.placeholder0._x, _y:_local2.placeholder0._y}).init();
var _local1 = 0;
while (_local1 < 8) {
_local2.attachMovie("Car", "car" + (_local1 + 1), _local1 + 1, {_x:60 + ((_local1 % 4) * 140), _y:200 + (Math.floor(_local1 / 4) * 120)}).init(_local1);
_local1++;
}
_local2.attachMovie("Bonus", "bonus", 10).init();
_local2.attachMovie("ScoreBoard", "sb", 20, {_x:0, _y:0}).init();
}
function run() {
var _local1 = _root.STAGECOUNT.show();
return(_local1);
}
function destroy() {
var _local2 = _root;
_local2.sb.destroy();
_local2.player.destroy();
var _local1 = 0;
while (_local1 < 8) {
_local2["car" + (_local1 + 1)].destroy();
_local1++;
}
_local2.boss.destroy();
_local2.levelup.destroy();
_local2.bonus.destroy();
}
function cheatFunction() {
}
}
Symbol 333 Button
on (release) {
_global.NeoStatus.sendTag("Game Started");
_root.gamesound.playSound("hit");
_root.gotoAndPlay("gameframe");
}
Symbol 334 Button
on (release) {
_root.gamesound.playSound("hit");
_root.gotoAndPlay("instructionsframe");
}
Symbol 335 Button
on (release) {
_root.gamesound.toggleSound();
_root.gamesound.playSound("hit");
_root.introcontent.changeContent("sound", _level0["IDS_sound" + _root.gamesound.getSoundState()]);
}
Symbol 367 MovieClip Frame 36
stop();
Symbol 373 Button
on (release) {
_root.gamesound.playSound("hit");
_root.gotoAndPlay("resetAllFrame");
}
Symbol 387 Button
on (release) {
_root.buttonClick.start();
_root.gotoAndPlay("lowband");
}
Symbol 388 Button
on (release) {
_root.buttonClick.start();
_root.gotoAndPlay("hiband");
}
Symbol 392 Button
on (release) {
_root.gotoAndPlay("resetAllFrame");
}
Symbol 397 MovieClip Frame 1
stop();
Symbol 398 Button
on (release) {
_root.gamesound.playSound("hit");
if (_root.STAGECOUNT.show() == 5) {
_root.STAGECOUNT.changeTo(6);
} else {
_root.STAGECOUNT.changeTo(7);
}
_root.controller.gGame.destroy();
_root.gotoAndPlay("gameoverframe");
}
Symbol 410 Button
on (release) {
_root.gamesound.playSound("hit");
_root.gotoAndPlay("resetAllFrame");
}
Symbol 411 Button
on (release) {
_root.gamesound.playSound("hit");
_root.gotoAndPlay("sendScoreFrame");
}