Frame 1
stop();
var mymenu = new ContextMenu();
mymenu.hideBuiltInItems();
_root.menu = mymenu;
onEnterFrame = function () {
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
if (total == loaded) {
play();
onEnterFrame = undefined;
}
};
Frame 2
stop();
Symbol 14 MovieClip [capsule] Frame 1
#initclip 12
Object.registerClass("capsule", Capsule);
#endinitclip
stop();
Symbol 14 MovieClip [capsule] Frame 12
this.changeTo(Capsule.TURN_END);
Symbol 14 MovieClip [capsule] Frame 25
this.changeTo(Capsule.TURN_DISABLE_END);
Symbol 14 MovieClip [capsule] Frame 30
stop();
Symbol 14 MovieClip [capsule] Frame 47
this.changeTo(Capsule.CRASHED_END);
Symbol 25 MovieClip [eraseCutin] Frame 1
this.cutinState1_mc.eraseNum = eraseNum;
this.cutinState1_mc.eraseHeight = eraseHeight;
this.cutinState1_mc.score = score;
this.cutinState2_mc.eraseNum = eraseNum;
this.cutinState2_mc.eraseHeight = eraseHeight;
this.cutinState2_mc.score = score;
Symbol 25 MovieClip [eraseCutin] Frame 30
this.removeMovieClip();
Symbol 44 MovieClip [virus] Frame 1
#initclip 8
Object.registerClass("virus", Virus);
#endinitclip
stop();
Symbol 44 MovieClip [virus] Frame 2
stop();
Symbol 44 MovieClip [virus] Frame 3
stop();
Symbol 46 MovieClip [board] Frame 1
#initclip 9
Object.registerClass("board", Board);
#endinitclip
Symbol 58 MovieClip [yagokoro] Frame 1
#initclip 10
Object.registerClass("yagokoro", Yagokoro);
#endinitclip
Symbol 58 MovieClip [yagokoro] Frame 12
if (this.state == Yagokoro.WAIT) {
gotoAndPlay ("wait");
}
Symbol 58 MovieClip [yagokoro] Frame 40
this.setCapsuleAction();
Symbol 58 MovieClip [yagokoro] Frame 50
this.setCapsuleAction();
Symbol 58 MovieClip [yagokoro] Frame 60
this.setCapsuleAction();
Symbol 58 MovieClip [yagokoro] Frame 70
this.setCapsuleAction();
Symbol 58 MovieClip [yagokoro] Frame 80
this.setCapsuleAction();
Symbol 58 MovieClip [yagokoro] Frame 90
this.setCapsuleAction();
Symbol 58 MovieClip [yagokoro] Frame 100
this.setCapsuleAction();
Symbol 58 MovieClip [yagokoro] Frame 110
this.setCapsuleAction();
Symbol 58 MovieClip [yagokoro] Frame 131
gotoAndPlay ("gameover");
Symbol 80 MovieClip Frame 78
stop();
_parent.play();
Symbol 84 MovieClip Frame 1
fps = 30;
fpsLimit = 26;
fpsLimitCount = 0;
fpsLimitMax = 10;
frTime = 500;
time_count = 0;
old_timer = getTimer();
qualities = new Array("high", "medium", "low");
qualityIndex = 0;
this.onEnterFrame = function () {
time_count = time_count + 1;
if ((getTimer() - old_timer) >= frTime) {
fps = Math.floor((time_count * 1000) / (getTimer() - old_timer));
old_timer = getTimer();
time_count = 0;
if (fps <= fpsLimit) {
fpsLimitCount++;
if (fpsLimitCount >= fpsLimitMax) {
if (qualityIndex < 2) {
qualityIndex++;
}
_root._quality = qualities[qualityIndex];
}
} else {
fpsLimitCount = 0;
}
}
};
Symbol 90 Button
on (release) {
_parent.gotoAndStop("title");
}
Symbol 93 Button
on (release) {
gotoAndStop ("ready");
}
Symbol 95 MovieClip [game] Frame 1
#initclip 11
Object.registerClass("game", Game);
#endinitclip
stop();
this.init(1, getTimer());
var bgm;
bgm.stop();
bgm = new Sound(_root);
bgm.attachSound("main.wav");
bgm.start(0, 65535);
Symbol 95 MovieClip [game] Frame 2
gotoAndStop ("active");
Symbol 95 MovieClip [game] Frame 11
stop();
this.startGame();
Symbol 95 MovieClip [game] Frame 21
stop();
bgm.stop();
yagokoro_mc.gotoAndPlay("gameover");
Symbol 136 MovieClip [__Packages.Capsule] Frame 0
class Capsule extends MovieClip
{
var leftColor, rightColor, fixedFlag, posW, _x, posH, _y, state, nextState, fixCheckFlag, turnableFlag, left_mc, right_mc, _parent, gotoAndPlay, gotoAndStop, onMouseDown, crashedTime, hPos, wPos, removeMovieClip;
function Capsule () {
super();
}
function init(_leftColor, _rightColor) {
leftColor = _leftColor;
rightColor = _rightColor;
fixedFlag = false;
posW = Math.floor(_x / Board.SIZE);
posH = Math.floor((-1 * _y) / Board.SIZE);
state = NORMAL;
nextState = NOCHANGE;
repaint();
fixCheckFlag = false;
}
function getLeftColor() {
return(leftColor);
}
function getRightColor() {
return(rightColor);
}
function getState() {
return(state);
}
function getNextState() {
return(nextState);
}
function isErasable() {
if (fixedFlag && ((state == NORMAL) || (state == TURN_DISABLE))) {
return(true);
}
return(false);
}
function isFixed() {
return(fixedFlag);
}
function unfix() {
fixedFlag = false;
}
function setTurnable(_flag) {
turnableFlag = _flag;
}
function onRelease() {
if (state == NORMAL) {
changeTo(TURN_START);
}
}
function repaint() {
left_mc.gotoAndStop(leftColor);
right_mc.gotoAndStop(rightColor);
}
function fallAction() {
var _local2 = _parent._parent.getFallSpeed();
if (((fixedFlag == false) && (state != CRASHED)) && (nextState != CRASHED_START)) {
posW = Math.floor(_x / Board.SIZE);
posH = Math.floor((-1 * (_y + _local2)) / Board.SIZE);
if ((((_parent.boardDataArray[posW][posH] != null) || ((posW < (Board.BW - 1)) && (_parent.boardDataArray[posW + 1][posH] != null))) || (((posW > 0) && (_parent.boardDataArray[posW - 1][posH] instanceof Capsule)) && (_parent.boardDataArray[posW - 1][posH].isFixed() == true))) || (posH < 0)) {
posH = posH + 1;
_parent.boardDataArray[posW][posH] = this;
_y = (-1 * posH) * Board.SIZE;
fixedFlag = true;
if (fixCheckFlag) {
}
fixCheckFlag = true;
} else {
_y = _y + _local2;
}
}
}
function enterFrameAction() {
changeState();
}
function changeTo(ns) {
if (state == CRASHED) {
if (ns != CRASHED_END) {
return(undefined);
}
nextState = ns;
} else if (nextState != CRASHED_START) {
nextState = ns;
}
}
function changeState() {
if (nextState == NOCHANGE) {
return(undefined);
}
if (nextState == TURN_START) {
gotoAndPlay("turn_start");
var _local2 = leftColor;
leftColor = rightColor;
rightColor = _local2;
repaint();
state = TURNING;
_parent.se_turn.start();
} else if (nextState == TURN_END) {
gotoAndStop("normal");
state = NORMAL;
} else if (nextState == TURN_DISABLE_START) {
gotoAndPlay("turn_disable_start");
state = TURN_DISABLE;
} else if (nextState == TURN_DISABLE_END) {
gotoAndStop("turn_disable");
state = TURN_DISABLE;
} else if (nextState == CRASHED_START) {
gotoAndPlay("crashed_start");
onMouseDown = undefined;
state = CRASHED;
crashedTime = 0;
} else if (nextState == CRASHED_END) {
_parent.boardDataArray[wPos][hPos] = null;
removeMovieClip();
}
nextState = NOCHANGE;
}
static var NORMAL = 1;
static var TURNING = 2;
static var TURN_DISABLE = 3;
static var CRASHED = 4;
static var NOCHANGE = 0;
static var TURN_START = 1;
static var TURN_END = 2;
static var TURN_DISABLE_START = 3;
static var TURN_DISABLE_END = 4;
static var CRASHED_START = 5;
static var CRASHED_END = 6;
}
Symbol 137 MovieClip [__Packages.Board] Frame 0
class Board extends MovieClip
{
var gameoverFlag, selectingVirus, capsuleDepth, cutinDepth, boardDataArray, boardPosArray, virusArray, attachMovie, movingVirus_mc, clickedPosW, clickedPosH, clickedFlag, se_turn, se_setFailed, se_erase, se_selectVirus, frameCount, _xmouse, _ymouse, _parent;
function Board () {
super();
}
function init() {
gameoverFlag = false;
selectingVirus = 0;
capsuleDepth = DEPTH_CAPSULE_MIN;
cutinDepth = DEPTH_CUTIN_MIN;
boardDataArray = new Array(BW);
boardPosArray = new Array(BW);
var _local3 = 0;
while (_local3 < BW) {
boardDataArray[_local3] = new Array(BH);
boardPosArray[_local3] = new Array(BH);
var _local2 = 0;
while (_local2 < BH) {
boardDataArray[_local3][_local2] = null;
boardPosArray[_local3][_local2] = null;
_local2++;
}
_local3++;
}
virusArray = new Array(COLORNUM);
var _local4 = 0;
while (_local4 < COLORNUM) {
virusArray[_local4] = attachMovie("virus", "virus" + _local4, DEPTH_VIRUS + _local4);
virusArray[_local4].gotoAndStop("normal");
_local4++;
}
virusArray[0].init(1, 2, 2);
virusArray[1].init(2, 4, 2);
virusArray[2].init(3, 6, 2);
boardDataArray[2][2] = virusArray[0];
boardDataArray[4][2] = virusArray[1];
boardDataArray[6][2] = virusArray[2];
movingVirus_mc.gotoAndStop("invisible");
clickedPosW = -1;
clickedPosH = -1;
clickedFlag = false;
se_turn = new Sound(this);
se_turn.attachSound("turn.wav");
se_setFailed = new Sound(this);
se_setFailed.attachSound("setfailed.wav");
se_erase = new Sound(this);
se_erase.attachSound("erase.wav");
se_selectVirus = new Sound(this);
se_selectVirus.attachSound("virusvoice.wav");
frameCount = 0;
}
function enterFrameAction() {
frameCount++;
eraseAction();
var _local3 = 1;
while (_local3 < BH) {
var _local2 = 0;
while (_local2 < (BW - 1)) {
if (boardDataArray[_local2][_local3] instanceof Capsule) {
if ((((boardDataArray[_local2][_local3 - 1] == null) || ((boardDataArray[_local2][_local3 - 1] instanceof Capsule) && (boardDataArray[_local2][_local3 - 1].isFixed() == false))) && ((boardDataArray[_local2 + 1][_local3 - 1] == null) || ((boardDataArray[_local2 + 1][_local3 - 1] instanceof Capsule) && (boardDataArray[_local2 + 1][_local3 - 1].isFixed() == false)))) && (!((boardDataArray[_local2 - 1][_local3 - 1] instanceof Capsule) && (boardDataArray[_local2 - 1][_local3 - 1].isFixed() == true)))) {
boardDataArray[_local2][_local3].unfix();
}
}
_local2++;
}
_local3++;
}
_local3 = 1;
while (_local3 < BH) {
var _local2 = 0;
while (_local2 < (BW - 1)) {
if ((boardDataArray[_local2][_local3] instanceof Capsule) && (boardDataArray[_local2][_local3].isFixed() == false)) {
boardDataArray[_local2][_local3] = null;
}
_local2++;
}
_local3++;
}
gameoverCheck();
_local3 = 0;
while (_local3 < BH) {
var _local2 = 0;
while (_local2 < BW) {
boardPosArray[_local2][_local3] = null;
_local2++;
}
_local3++;
}
for (var _local4 in this) {
if (((this[_local4] instanceof Capsule) && (this[_local4].getNextState() != Capsule.CRASHED_START)) && (this[_local4].getState() != Capsule.CRASHED)) {
if (boardPosArray[this[_local4].posW][this[_local4].posH] != null) {
}
boardPosArray[this[_local4].posW][this[_local4].posH] = this[_local4];
}
}
_local3 = 0;
while (_local3 < BH) {
var _local2 = 0;
while (_local2 < BW) {
boardPosArray[_local2][_local3].fallAction();
_local2++;
}
_local3++;
}
for (var _local4 in this) {
if (this[_local4] instanceof Capsule) {
this[_local4].enterFrameAction();
}
}
if (clickedFlag) {
clickedAction(clickedPosW, clickedPosH);
clickedFlag = false;
}
var _local4 = 0;
while (_local4 < COLORNUM) {
virusArray[_local4].enterFrameAction();
_local4++;
}
movingVirus_mc._x = Math.floor(_xmouse / SIZE) * SIZE;
movingVirus_mc._y = (-1 * Math.floor((-1 * _ymouse) / SIZE)) * SIZE;
if ((((_xmouse >= 0) && (_xmouse <= (BW * SIZE))) && (_ymouse >= ((-1 * (BH - 1)) * SIZE))) && (_ymouse <= 0)) {
movingVirus_mc._visible = true;
} else {
movingVirus_mc._visible = false;
}
}
function eraseAction() {
var _local3 = 0;
while (_local3 < COLORNUM) {
var _local2 = virusArray[_local3];
if (_local2._visible == true) {
eraseExec(_local2.getColor(), _local2.getPosW(), _local2.getPosH());
}
_local3++;
}
}
function eraseExec(_color, pw, ph) {
var _local4;
var _local5;
_local4 = ph;
while (_local4 < BH) {
if (((boardDataArray[pw][_local4 + 1] instanceof Capsule) && (boardDataArray[pw][_local4 + 1].state == Capsule.NORMAL)) && (boardDataArray[pw][_local4 + 1].getLeftColor() == _color)) {
} else if (((boardDataArray[pw - 1][_local4 + 1] instanceof Capsule) && (boardDataArray[pw - 1][_local4 + 1].state == Capsule.NORMAL)) && (boardDataArray[pw - 1][_local4 + 1].getRightColor() == _color)) {
} else {
break;
}
_local4++;
}
_local5 = ph;
while (_local5 >= 0) {
if (((boardDataArray[pw][_local5 - 1] instanceof Capsule) && (boardDataArray[pw][_local5 - 1].isErasable())) && (boardDataArray[pw][_local5 - 1].getLeftColor() == _color)) {
} else if (((boardDataArray[pw - 1][_local5 - 1] instanceof Capsule) && (boardDataArray[pw - 1][_local5 - 1].isErasable())) && (boardDataArray[pw - 1][_local5 - 1].getRightColor() == _color)) {
} else {
break;
}
_local5--;
}
if ((_local4 - _local5) >= 2) {
var _local6 = _local5;
while (_local6 <= _local4) {
var _local3 = pw - 1;
while (_local3 <= pw) {
if (boardDataArray[_local3][_local6] instanceof Capsule) {
boardDataArray[_local3][_local6].changeTo(Capsule.CRASHED_START);
boardDataArray[_local3][_local6] = null;
}
_local3++;
}
_local6++;
}
addScoreAction((_local4 - _local5) + 1, pw, ph);
}
}
function addScoreAction(eraseNum, pw, ph) {
var _local3 = 0;
var _local2 = eraseNum - 2;
while (_local2 > 0) {
_local3 = _local3 + _local2;
_local2--;
}
var _local5 = (_local3 * (ph + 1)) * 100;
_parent.addScore(_local5);
var _local4;
_local4 = attachMovie("eraseCutin", "eraseCutin" + cutinDepth, cutinDepth);
_local4.eraseNum = eraseNum - 1;
_local4.eraseHeight = ph + 1;
_local4.score = _local5;
_local4._x = pw * SIZE;
_local4._y = (-1 * ph) * SIZE;
cutinDepth++;
if (cutinDepth >= DEPTH_CUTIN_MAX) {
cutinDepth = DEPTH_CUTIN_MIN;
}
se_erase.start();
}
function gameoverCheck() {
var _local5 = false;
var _local4 = false;
var _local3 = 0;
while (_local3 < BW) {
if ((boardDataArray[_local3][BH - 1] instanceof Capsule) && (boardDataArray[_local3][BH - 1].isFixed())) {
_local5 = true;
}
var _local2 = 0;
while (_local2 < BH) {
if (boardDataArray[_local3][_local2].getState() == Capsule.CRASHED) {
_local4 = true;
}
_local2++;
}
_local3++;
}
if ((!_local4) && (_local5)) {
gameoverAction();
}
}
function gameoverAction() {
gameoverFlag = true;
se_selectVirus.stop();
for (var _local2 in this) {
this[_local2].removeMovieClip();
}
_parent.gameoverAction();
}
function onMouseDown() {
if ((((_xmouse >= 0) && (_xmouse <= (BW * SIZE))) && (_ymouse >= ((-1 * (BH - 1)) * SIZE))) && (_ymouse <= 0)) {
clickedPosW = Math.floor(_xmouse / SIZE);
clickedPosH = Math.floor((-1 * _ymouse) / SIZE);
clickedFlag = true;
}
}
function clickedAction(pw, ph) {
if (selectingVirus == 0) {
if (boardDataArray[pw][ph] instanceof Virus) {
selectingVirus = boardDataArray[pw][ph].getColor();
movingVirus_mc.gotoAndStop(selectingVirus);
boardDataArray[pw][ph]._visible = false;
boardDataArray[pw][ph] = null;
se_selectVirus.start(0, 60);
}
} else if ((((boardDataArray[pw][ph] == null) && (!(boardDataArray[pw - 1][ph] instanceof Capsule))) && (!((boardPosArray[pw][ph] instanceof Capsule) && (boardPosArray[pw][ph].isFixed() == false)))) && (!((boardPosArray[pw - 1][ph] instanceof Capsule) && (boardPosArray[pw - 1][ph].isFixed() == false)))) {
boardDataArray[pw][ph] = virusArray[selectingVirus - 1];
boardDataArray[pw][ph].setPos(pw, ph);
boardDataArray[pw][ph]._visible = true;
selectingVirus = 0;
movingVirus_mc.gotoAndStop("invisible");
se_selectVirus.stop();
} else {
se_setFailed.start();
}
}
function createCapsule(_posW, _leftColor, _rightColor) {
if (boardDataArray[_posW][BH - 1] != null) {
return(undefined);
}
var _local2;
_local2 = attachMovie("capsule", "capsule" + capsuleDepth, capsuleDepth);
_local2._x = _posW * SIZE;
_local2._y = (-1 * (BH - 1)) * SIZE;
capsuleDepth++;
if (capsuleDepth >= DEPTH_CAPSULE_MAX) {
capsuleDepth = DEPTH_CAPSULE_MIN;
}
_local2.init(_leftColor, _rightColor);
}
static var BW = 9;
static var BH = 13;
static var SIZE = 32;
static var DEPTH_CAPSULE_MIN = 100000;
static var DEPTH_CAPSULE_MAX = 499999;
static var DEPTH_VIRUS = 500000;
static var DEPTH_CUTIN_MIN = 600000;
static var DEPTH_CUTIN_MAX = 610000;
static var COLORNUM = 3;
}
Symbol 138 MovieClip [__Packages.Virus] Frame 0
class Virus extends MovieClip
{
var colorNum, gotoAndStop, posW, posH, _x, _y, _visible, _parent;
function Virus () {
super();
}
function init(_colorNum, _w, _h) {
colorNum = _colorNum;
gotoAndStop(_colorNum);
setPos(_w, _h);
}
function setPos(_w, _h) {
posW = _w;
posH = _h;
_x = posW * Board.SIZE;
_y = (-1 * posH) * Board.SIZE;
}
function enterFrameAction() {
if (_visible) {
_parent.boardDataArray[posW][posH] = this;
}
}
function getColor() {
return(colorNum);
}
function getPosW() {
return(posW);
}
function getPosH() {
return(posH);
}
}
Symbol 139 MovieClip [__Packages.Yagokoro] Frame 0
class Yagokoro extends MovieClip
{
var capsuleFrameRest, _parent, randGen, state, gotoAndPlay, throwPos, leftColor, rightColor, nextCapsule_mc;
function Yagokoro () {
super();
}
function init(_seed) {
capsuleFrameRest = _parent.getCapsuleInterval();
randGen = new MyRandom(_seed);
state = WAIT;
gotoAndPlay("wait");
createNextCapsule();
}
function enterFrameAction() {
capsuleFrameRest--;
if (capsuleFrameRest < 0) {
capsuleFrameRest = _parent.getCapsuleInterval();
throwCapsuleAction();
}
}
function throwCapsuleAction() {
state = THROW;
gotoAndPlay("throw_" + throwPos);
}
function setCapsuleAction() {
_parent.board_mc.createCapsule(throwPos, leftColor, rightColor);
state = WAIT;
gotoAndPlay("wait");
createNextCapsule();
}
function createNextCapsule() {
leftColor = randGen.randInt(1, 3);
rightColor = randGen.randInt(1, 3);
nextCapsule_mc.left_mc.gotoAndStop(leftColor);
nextCapsule_mc.right_mc.gotoAndStop(rightColor);
throwPos = randGen.randInt(0, Board.BW - 2);
}
static var WAIT = 1;
static var THROW = 2;
}
Symbol 140 MovieClip [__Packages.MyRandom] Frame 0
class MyRandom
{
function MyRandom (_seed) {
srand(_seed);
}
function srand(_seed) {
p = _seed;
}
function rand() {
p = Math.abs(((p * 1103515245) + 12345) & 4294967295);
return((Math.floor(p / 65536) % 32768) / 32768);
}
function randInt(_min, _max) {
return(_min + Math.floor(rand() * ((_max - _min) + 1)));
}
var p = 2;
}
Symbol 141 MovieClip [__Packages.Game] Frame 0
class Game extends MovieClip
{
var state, gotoAndStop, gameLevel, levelUpTime, timer, timerStr, score, score_so, highscore, yagokoro_mc, board_mc, fallSpeed, capsuleInterval;
function Game () {
super();
}
function init(_gameLevel, _seed) {
state = READY;
gotoAndStop("ready");
gameLevel = _gameLevel;
setLevelParam();
levelUpTime = LEVELUP_TIME;
timer = new MyTimer(30);
timerStr = "00:00";
score = 0;
score_so = SharedObject.getLocal("net.chibitami.yagokoro", "/");
if (score_so.data.highscore == undefined) {
score_so.data.highscore = 0;
}
highscore = score_so.data.highscore;
yagokoro_mc.init(_seed);
board_mc.init();
}
function setLevelParam() {
fallSpeed = 2 + (gameLevel * 0.06);
if (gameLevel <= 20) {
capsuleInterval = 60 - (gameLevel * 1);
}
if (gameLevel <= 50) {
capsuleInterval = 40 - ((gameLevel - 20) * 0.5);
} else {
capsuleInterval = 25 - ((gameLevel - 50) * 0.15);
}
}
function getFallSpeed() {
return(fallSpeed);
}
function getCapsuleInterval() {
return(capsuleInterval);
}
function onEnterFrame() {
if (state != ACTIVE) {
return(undefined);
}
timer.updateTime();
timerStr = timer.getTimeString();
if (levelUpTime < timer.getCurrentSec()) {
levelUpTime = levelUpTime + LEVELUP_TIME;
gameLevel = Math.min(99, gameLevel + 1);
setLevelParam();
}
board_mc.enterFrameAction();
yagokoro_mc.enterFrameAction();
}
function startGame() {
state = ACTIVE;
gotoAndStop("active");
timer.reset();
}
function gameoverAction() {
state = GAMEOVER;
gotoAndStop("gameover");
if (score > highscore) {
score_so.data.highscore = score;
}
}
function addScore(_added) {
score = score + _added;
}
function getScore() {
return(score);
}
static var READY = 1;
static var ACTIVE = 2;
static var GAMEOVER = 3;
static var LEVELUP_TIME = 6;
}
Symbol 142 MovieClip [__Packages.MyTimer] Frame 0
class MyTimer
{
var FPS, startTime, currentTime, previousTime, elapsedTime, currentTimeStr, freezeTime, freezeFlag;
function MyTimer (_fps) {
FPS = _fps;
reset();
}
function reset() {
startTime = getTimer();
currentTime = 0;
previousTime = 0;
elapsedTime = 0;
currentTimeStr = "00:00";
freezeTime = 0;
freezeFlag = false;
}
function updateTime() {
previousTime = currentTime;
currentTime = getTimer();
elapsedTime = currentTime - previousTime;
if (freezeFlag) {
freezeTime = freezeTime + elapsedTime;
}
}
function getCurrentMillSec() {
return((currentTime - startTime) - freezeTime);
}
function getCurrentSec() {
return(Math.floor(((currentTime - startTime) - freezeTime) / 1000));
}
function getCurrentFrameNum() {
return((((currentTime - startTime) - freezeTime) / 1000) * FPS);
}
function getElapsedMillSec() {
return(elapsedTime);
}
function getElapsedSec() {
return(Math.floor(elapsedTime / 1000));
}
function getElapsedFrameNum() {
return((elapsedTime / 1000) * FPS);
}
function getTimeString() {
currentTimeStr = "";
var _local2 = Math.floor(((currentTime - freezeTime) - startTime) / 1000);
var _local3 = Math.floor(_local2 / 3600);
_local2 = _local2 % 3600;
var _local4 = Math.floor(_local2 / 60);
_local2 = _local2 % 60;
if (_local3 > 0) {
if (_local3 < 10) {
currentTimeStr = currentTimeStr + "0";
}
currentTimeStr = currentTimeStr + (("" + _local3) + ":");
}
if (_local4 < 10) {
currentTimeStr = currentTimeStr + "0";
}
currentTimeStr = currentTimeStr + (("" + _local4) + ":");
if (_local2 < 10) {
currentTimeStr = currentTimeStr + "0";
}
currentTimeStr = currentTimeStr + ("" + _local2);
return(currentTimeStr);
}
function freeze() {
updateTime();
freezeFlag = true;
}
function unfreeze() {
updateTime();
freezeFlag = false;
}
}
Symbol 103 MovieClip Frame 362
stop();
Symbol 106 Button
on (release) {
gotoAndStop ("game");
}
Symbol 109 Button
on (release) {
gotoAndStop ("manual");
}
Symbol 110 Button
on (rollOver) {
gotoAndStop(_currentframe + 10);
}
on (rollOut) {
gotoAndStop(_currentframe - 10);
}
on (release, dragOut, dragOver) {
gotoAndStop(_currentframe + 1);
}
Symbol 119 MovieClip Frame 1
if (_quality == "HIGH") {
gotoAndStop (2);
} else if (_quality == "MEDIUM") {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
Symbol 119 MovieClip Frame 2
stop();
_quality = "HIGH";
_root.SIMPLEMODE = false;
Symbol 119 MovieClip Frame 3
stop();
_quality = "MEDIUM";
_root.SIMPLEMODE = false;
Symbol 119 MovieClip Frame 4
stop();
_quality = "LOW";
_root.SIMPLEMODE = false;
Symbol 119 MovieClip Frame 5
gotoAndStop (2);
Symbol 119 MovieClip Frame 12
stop();
_quality = "HIGH";
_root.SIMPLEMODE = false;
Symbol 119 MovieClip Frame 13
stop();
_quality = "MEDIUM";
_root.SIMPLEMODE = false;
Symbol 119 MovieClip Frame 14
stop();
_quality = "LOW";
_root.SIMPLEMODE = false;
Symbol 119 MovieClip Frame 15
gotoAndStop (12);
Symbol 128 Button
on (release) {
gotoAndStop ("title");
}
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 11
stop();
Symbol 134 MovieClip Frame 21
stop();
Symbol 134 MovieClip Frame 31
stop();
Symbol 134 MovieClip Frame 41
stop();