Frame 1
Input = new Object();
Input.DEPTH = 10;
Input.INSTANCE_NAME = "INSTANCE_input";
Input.INSTANCE = 0;
Input.Init = function () {
this.KEY_ACTION1 = 65;
this.KEY_ACTION2 = 83;
this.KEY_ACTION3 = 68;
this.KEY_ACTION4 = 70;
this.KEY_ACTION5 = 71;
this.KEY_PAUSE = 27;
this.PRESS_ACTION1 = false;
this.PRESS_ACTION2 = false;
this.PRESS_ACTION3 = false;
this.PRESS_ACTION4 = false;
this.PRESS_ACTION5 = false;
this.PRESS_PAUSE = false;
this.PRESS_ACTION1_RESETABLE = false;
this.PRESS_ACTION2_RESETABLE = false;
this.PRESS_ACTION3_RESETABLE = false;
this.PRESS_ACTION4_RESETABLE = false;
this.PRESS_ACTION5_RESETABLE = false;
this.PRESS_PAUSE_RESETABLE = false;
this.HOLD_ACTION1 = false;
this.HOLD_ACTION2 = false;
this.HOLD_ACTION3 = false;
this.HOLD_ACTION4 = false;
this.HOLD_ACTION5 = false;
this.HOLD_PAUSE = false;
_root.createEmptyMovieClip(this.INSTANCE_NAME, this.DEPTH);
this.INSTANCE = _root[this.INSTANCE_NAME];
this.INSTANCE.onEnterFrame = function () {
Input.Update();
};
};
Input.Update = function () {
if (Key.isDown(this.KEY_ACTION1)) {
this.HOLD_ACTION1 = true;
} else {
this.HOLD_ACTION1 = false;
}
if (Key.isDown(this.KEY_ACTION2)) {
this.HOLD_ACTION2 = true;
} else {
this.HOLD_ACTION2 = false;
}
if (Key.isDown(this.KEY_ACTION3)) {
this.HOLD_ACTION3 = true;
} else {
this.HOLD_ACTION3 = false;
}
if (Key.isDown(this.KEY_ACTION4)) {
this.HOLD_ACTION4 = true;
} else {
this.HOLD_ACTION4 = false;
}
if (Key.isDown(this.KEY_ACTION5)) {
this.HOLD_ACTION5 = true;
} else {
this.HOLD_ACTION5 = false;
}
if (Key.isDown(this.KEY_PAUSE)) {
this.HOLD_PAUSE = true;
} else {
this.HOLD_PAUSE = false;
}
if (this.HOLD_ACTION1 && (this.PRESS_ACTION1_RESETABLE)) {
this.PRESS_ACTION1 = true;
this.PRESS_ACTION1_RESETABLE = false;
} else {
this.PRESS_ACTION1 = false;
}
if (!this.HOLD_ACTION1) {
this.PRESS_ACTION1_RESETABLE = true;
}
if (this.HOLD_ACTION2 && (this.PRESS_ACTION2_RESETABLE)) {
this.PRESS_ACTION2 = true;
this.PRESS_ACTION2_RESETABLE = false;
} else {
this.PRESS_ACTION2 = false;
}
if (!this.HOLD_ACTION2) {
this.PRESS_ACTION2_RESETABLE = true;
}
if (this.HOLD_ACTION3 && (this.PRESS_ACTION3_RESETABLE)) {
this.PRESS_ACTION3 = true;
this.PRESS_ACTION3_RESETABLE = false;
} else {
this.PRESS_ACTION3 = false;
}
if (!this.HOLD_ACTION3) {
this.PRESS_ACTION3_RESETABLE = true;
}
if (this.HOLD_ACTION4 && (this.PRESS_ACTION4_RESETABLE)) {
this.PRESS_ACTION4 = true;
this.PRESS_ACTION4_RESETABLE = false;
} else {
this.PRESS_ACTION4 = false;
}
if (!this.HOLD_ACTION4) {
this.PRESS_ACTION4_RESETABLE = true;
}
if (this.HOLD_ACTION5 && (this.PRESS_ACTION5_RESETABLE)) {
this.PRESS_ACTION5 = true;
this.PRESS_ACTION5_RESETABLE = false;
} else {
this.PRESS_ACTION5 = false;
}
if (!this.HOLD_ACTION5) {
this.PRESS_ACTION5_RESETABLE = true;
}
if (this.HOLD_PAUSE && (this.PRESS_PAUSE_RESETABLE)) {
this.PRESS_PAUSE = true;
this.PRESS_PAUSE_RESETABLE = false;
} else {
this.PRESS_PAUSE = false;
}
if (!this.HOLD_PAUSE) {
this.PRESS_PAUSE_RESETABLE = true;
}
};
Input.Remove = function () {
if (this.INSTANCE != 0) {
this.INSTANCE.removeMovieClip();
this.INSTANCE = 0;
}
};
Input.Init();
Stage.showMenu = false;
randomColor = function (maxColors) {
RAND_INT = random(maxColors);
if (RAND_INT == 0) {
return("white");
}
if (RAND_INT == 1) {
return("blue");
}
if (RAND_INT == 2) {
return("green");
}
if (RAND_INT == 3) {
return("red");
}
if (RAND_INT == 4) {
return("pink");
}
if (RAND_INT == 5) {
return("yellow");
}
};
Transition = function () {
this.attachMovie("ID_Transition", "transition", 999999);
onMouseDown = null;
onEnterFrame = null;
transition.onEnterFrame = function () {
if (this._currentframe == 15) {
NEXT();
NEXT = null;
}
if (this._currentframe == 29) {
this.removeMovieClip();
}
};
};
Frame 2
loader.stop();
stop();
onEnterFrame = function () {
loaded = (100 * _root.getBytesLoaded()) / _root.getBytesTotal();
if (loader._currentframe < loaded) {
loader.nextFrame();
}
if (loader._currentframe == 100) {
onEnterFrame = null;
Transition();
}
};
NEXT = function () {
gotoAndStop ("logo");
};
Frame 16
function SaveAllData() {
_root.DataOBJ.data.dataExists = _root.dataExists;
_root.DataOBJ.data.HIGH_TOLERABLE_NORM = _root.HIGH_TOLERABLE_NORM;
_root.DataOBJ.data.HIGH_SEVERE_NORM = _root.HIGH_SEVERE_NORM;
_root.DataOBJ.data.HIGH_PANIC_NORM = _root.HIGH_PANIC_NORM;
_root.DataOBJ.data.HIGH_TOLERABLE_ENDLESS = _root.HIGH_TOLERABLE_ENDLESS;
_root.DataOBJ.data.HIGH_SEVERE_ENDLESS = _root.HIGH_SEVERE_ENDLESS;
_root.DataOBJ.data.HIGH_PANIC_ENDLESS = _root.HIGH_PANIC_ENDLESS;
_root.DataOBJ.data.AVATAR = _root.AVATAR;
_root.DataOBJ.data.AVATAR1 = _root.AVATAR1;
_root.DataOBJ.data.AVATAR2 = _root.AVATAR2;
_root.DataOBJ.data.AVATAR3 = _root.AVATAR3;
_root.DataOBJ.data.AVATAR4 = _root.AVATAR4;
_root.DataOBJ.data.AVATAR5 = _root.AVATAR5;
_root.DataOBJ.flush();
trace("data saved");
}
function declareAllData() {
_root.dataExists = true;
_root.HIGH_TOLERABLE_NORM = 0;
_root.HIGH_SEVERE_NORM = 0;
_root.HIGH_PANIC_NORM = 0;
_root.HIGH_TOLERABLE_ENDLESS = 0;
_root.HIGH_SEVERE_ENDLESS = 0;
_root.HIGH_PANIC_ENDLESS = 0;
_root.AVATAR = 1;
_root.AVATAR1 = false;
_root.AVATAR2 = false;
_root.AVATAR3 = false;
_root.AVATAR4 = false;
_root.AVATAR5 = false;
trace("data declared");
SaveAllData();
}
function loadAllData() {
_root.highest = _root.DataOBJ.data.highest;
_root.HIGH_TOLERABLE_NORM = _root.DataOBJ.data.HIGH_TOLERABLE_NORM;
_root.HIGH_SEVERE_NORM = _root.DataOBJ.data.HIGH_SEVERE_NORM;
_root.HIGH_PANIC_NORM = _root.DataOBJ.data.HIGH_PANIC_NORM;
_root.HIGH_TOLERABLE_ENDLESS = _root.DataOBJ.data.HIGH_TOLERABLE_ENDLESS;
_root.HIGH_SEVERE_ENDLESS = _root.DataOBJ.data.HIGH_SEVERE_ENDLESS;
_root.HIGH_PANIC_ENDLESS = _root.DataOBJ.data.HIGH_PANIC_ENDLESS;
_root.AVATAR = _root.DataOBJ.data.AVATAR;
_root.AVATAR1 = _root.DataOBJ.data.AVATAR1;
_root.AVATAR2 = _root.DataOBJ.data.AVATAR2;
_root.AVATAR3 = _root.DataOBJ.data.AVATAR3;
_root.AVATAR4 = _root.DataOBJ.data.AVATAR4;
_root.AVATAR5 = _root.DataOBJ.data.AVATAR5;
trace("data loaded");
}
_root.DataOBJ = SharedObject.getLocal("__Go!Spin__");
_root.dataExists = _root.DataOBJ.data.dataExists;
if (dataExists != true) {
declareAllData();
} else {
loadAllData();
}
NEXT = function () {
gotoAndStop ("intro");
};
Frame 24
MUSIC = new Sound(_root);
MUSIC.attachSound("NG38866.mp3");
MUSIC.start(0, 99999);
NEXT = function () {
gotoAndStop ("menu");
onMouseDown = null;
MUSIC.attachSound("NG81670.mp3");
MUSIC.start(0, 99999);
};
onMouseDown = function () {
intro.stop();
MUSIC.stop();
Transition();
};
Frame 30
ROTATEMENU = function () {
dX = _xmouse - options._x;
dY = _ymouse - options._y;
ANGLE = Math.atan2(dY, dX);
options._rotation = ((-ANGLE) * 180) / Math.PI;
selector._rotation = (ANGLE * 180) / Math.PI;
};
ROTATEMENU();
onMouseMove = function () {
ROTATEMENU();
updateAfterEvent();
};
onEnterFrame = function () {
if ((Math.abs(options._rotation - -45) <= 22) || (Math.abs(options._rotation - 135) <= 22)) {
options.OPTION.gotoAndStop(2);
SELECTED = "option";
} else {
options.OPTION.gotoAndStop(1);
SELECTED = "";
}
if ((Math.abs(options._rotation - 90) <= 22) || (Math.abs(options._rotation - -90) <= 22)) {
options.PLAY.gotoAndStop(2);
SELECTED = "play";
} else {
options.PLAY.gotoAndStop(1);
}
if ((Math.abs(options._rotation - 45) <= 22) || (Math.abs(options._rotation - -135) <= 22)) {
options.ENDLESS.gotoAndStop(2);
SELECTED = "endless";
} else {
options.ENDLESS.gotoAndStop(1);
}
if (((Math.abs(options._rotation - 0) <= 22) || (Math.abs(options._rotation - -180) <= 22)) || (Math.abs(options._rotation - 180) <= 22)) {
options.HIGHSCORE.gotoAndStop(2);
SELECTED = "high score";
} else {
options.HIGHSCORE.gotoAndStop(1);
}
};
onMouseDown = function () {
if (SELECTED == "play") {
onEnterFrame = null;
onMouseDown = null;
MODE = "norm";
NEXT = function () {
gotoAndStop ("difficulty");
onMouseMove = null;
};
Transition();
}
if (SELECTED == "endless") {
onEnterFrame = null;
onMouseDown = null;
MODE = "endless";
NEXT = function () {
gotoAndStop ("difficulty");
onMouseMove = null;
};
Transition();
}
if (SELECTED == "option") {
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
gotoAndStop ("option");
onMouseMove = null;
};
Transition();
}
if (SELECTED == "high score") {
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
gotoAndStop ("highScore");
onMouseMove = null;
};
Transition();
}
};
Frame 37
ROTATEMENU();
onMouseMove = function () {
ROTATEMENU();
updateAfterEvent();
};
onEnterFrame = function () {
trace(options._rotation);
if ((Math.abs(options._rotation - -90) <= 15) || (Math.abs(options._rotation - 90) <= 15)) {
options.BACK.gotoAndStop(2);
SELECTED = "back";
} else {
options.BACK.gotoAndStop(1);
SELECTED = "";
}
if ((Math.abs(options._rotation - -15) <= 15) || (Math.abs(options._rotation - 165) <= 15)) {
options.CREDIT.gotoAndStop(2);
SELECTED = "credit";
} else {
options.CREDIT.gotoAndStop(1);
}
if ((Math.abs(options._rotation - -125) <= 15) || (Math.abs(options._rotation - 50) <= 15)) {
options.BONUS.gotoAndStop(2);
SELECTED = "bonus";
} else {
options.BONUS.gotoAndStop(1);
}
if ((Math.abs(options._rotation - -50) <= 15) || (Math.abs(options._rotation - 130) <= 15)) {
options.TUTORIAL.gotoAndStop(2);
SELECTED = "tutorial";
} else {
options.TUTORIAL.gotoAndStop(1);
}
if ((Math.abs(options._rotation - -160) <= 15) || (Math.abs(options._rotation - 20) <= 15)) {
options.QUALITY.gotoAndStop(2);
SELECTED = "quality";
} else {
options.QUALITY.gotoAndStop(1);
}
};
onMouseDown = function () {
if (SELECTED == "back") {
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
gotoAndStop ("menu");
onMouseMove = null;
};
Transition();
}
if (SELECTED == "credit") {
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
gotoAndStop ("credit");
onMouseMove = null;
};
Transition();
}
if (SELECTED == "tutorial") {
onEnterFrame = null;
onMouseDown = null;
MODE = "option";
NEXT = function () {
MUSIC.stop();
gotoAndStop ("tutorial");
onMouseMove = null;
};
Transition();
}
if (SELECTED == "quality") {
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
gotoAndStop ("quality");
};
Transition();
}
if (SELECTED == "bonus") {
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
gotoAndStop ("bonus");
};
Transition();
}
};
Frame 44
ROTATEMENU();
onMouseMove = function () {
ROTATEMENU();
updateAfterEvent();
};
onEnterFrame = function () {
if ((Math.abs(options._rotation - -45) <= 22) || (Math.abs(options._rotation - 135) <= 22)) {
options.HIGH.gotoAndStop(2);
SELECTED = "high";
} else {
options.HIGH.gotoAndStop(1);
SELECTED = "";
}
if ((Math.abs(options._rotation - 90) <= 22) || (Math.abs(options._rotation - -90) <= 22)) {
options.MEDIUM.gotoAndStop(2);
SELECTED = "medium";
} else {
options.MEDIUM.gotoAndStop(1);
}
if ((Math.abs(options._rotation - 45) <= 22) || (Math.abs(options._rotation - -135) <= 22)) {
options.LOW.gotoAndStop(2);
SELECTED = "low";
} else {
options.LOW.gotoAndStop(1);
}
if (((Math.abs(options._rotation - 0) <= 22) || (Math.abs(options._rotation - -180) <= 22)) || (Math.abs(options._rotation - 180) <= 22)) {
options.BACK.gotoAndStop(2);
SELECTED = "back";
} else {
options.BACK.gotoAndStop(1);
}
};
QUAL = _quality;
onMouseDown = function () {
if (SELECTED == "low") {
_quality = "LOW";
}
if (SELECTED == "medium") {
_quality = "MEDIUM";
}
if (SELECTED == "high") {
_quality = "HIGH";
}
QUAL = _quality;
if (SELECTED == "back") {
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
gotoAndStop ("option");
};
Transition();
}
};
Frame 51
ROTATEMENU();
onMouseMove = function () {
ROTATEMENU();
updateAfterEvent();
};
onEnterFrame = function () {
if ((Math.abs(options._rotation - -90) <= 30) || (Math.abs(options._rotation - 90) <= 30)) {
options.BACK.gotoAndStop(2);
SELECTED = "back";
} else {
options.BACK.gotoAndStop(1);
SELECTED = "";
}
};
onMouseDown = function () {
if (SELECTED == "back") {
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
gotoAndStop ("option");
onMouseMove = null;
};
Transition();
}
};
Frame 58
ROTATEMENU();
onMouseMove = function () {
ROTATEMENU();
updateAfterEvent();
};
onEnterFrame = function () {
if ((Math.abs(options._rotation - -90) <= 30) || (Math.abs(options._rotation - 90) <= 30)) {
options.BACK.gotoAndStop(2);
SELECTED = "back";
} else {
options.BACK.gotoAndStop(1);
SELECTED = "";
}
};
onMouseDown = function () {
if (SELECTED == "back") {
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
gotoAndStop ("option");
onMouseMove = null;
};
Transition();
}
};
Frame 65
ROTATEMENU();
onMouseMove = function () {
ROTATEMENU();
updateAfterEvent();
};
onEnterFrame = function () {
if ((Math.abs(options._rotation - -90) <= 30) || (Math.abs(options._rotation - 90) <= 30)) {
options.BACK.gotoAndStop(2);
SELECTED = "back";
} else {
options.BACK.gotoAndStop(1);
SELECTED = "";
}
};
onMouseDown = function () {
if (SELECTED == "back") {
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
gotoAndStop ("menu");
onMouseMove = null;
};
Transition();
}
};
Frame 74
ROTATEMENU();
onMouseMove = function () {
ROTATEMENU();
updateAfterEvent();
};
onEnterFrame = function () {
if ((Math.abs(options._rotation - -135) <= 22) || (Math.abs(options._rotation - 45) <= 22)) {
options.TOLERABLE.gotoAndStop(2);
SELECTED = "tolerable";
} else {
options.TOLERABLE.gotoAndStop(1);
SELECTED = "";
}
if ((Math.abs(options._rotation - -90) <= 22) || (Math.abs(options._rotation - 90) <= 22)) {
options.SEVERE.gotoAndStop(2);
SELECTED = "severe";
} else {
options.SEVERE.gotoAndStop(1);
}
if ((Math.abs(options._rotation - -45) <= 22) || (Math.abs(options._rotation - 135) <= 22)) {
options.PANIC.gotoAndStop(2);
SELECTED = "panic";
} else {
options.PANIC.gotoAndStop(1);
}
if (((Math.abs(options._rotation - 0) <= 22) || (Math.abs(options._rotation - 180) <= 22)) || (Math.abs(options._rotation - -180) <= 22)) {
options.BACK.gotoAndStop(2);
SELECTED = "back";
} else {
options.BACK.gotoAndStop(1);
}
};
onMouseDown = function () {
if (SELECTED == "tolerable") {
Difficulty = SELECTED;
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
EnemySpeed = 0.6;
timerReset = 50;
timerMin = 40;
timerReduction = 0.5;
gotoAndStop ("tutorialChoice");
onMouseMove = null;
};
Transition();
}
if (SELECTED == "severe") {
Difficulty = SELECTED;
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
EnemySpeed = 0.85;
timerReset = 45;
timerMin = 30;
timerReduction = 0.5;
MUSIC.stop();
MUSIC.attachSound("12306.mp3");
MUSIC.start(0, 2);
if (MODE == "norm") {
gotoAndStop ("game");
} else {
gotoAndStop ("endless");
}
onMouseMove = null;
};
Transition();
}
if (SELECTED == "panic") {
Difficulty = SELECTED;
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
EnemySpeed = 1.25;
timerReset = 40;
timerMin = 20;
timerReduction = 1;
MUSIC.stop();
MUSIC.attachSound("12306.mp3");
MUSIC.start(0, 2);
if (MODE == "norm") {
gotoAndStop ("game");
} else {
gotoAndStop ("endless");
}
onMouseMove = null;
};
Transition();
}
if (SELECTED == "back") {
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
gotoAndStop ("menu");
};
Transition();
}
};
Frame 83
ROTATEMENU();
onMouseMove = function () {
ROTATEMENU();
updateAfterEvent();
};
onEnterFrame = function () {
if ((Math.abs(options._rotation - -135) <= 22) || (Math.abs(options._rotation - 45) <= 22)) {
options.NO.gotoAndStop(2);
SELECTED = "no";
} else {
options.NO.gotoAndStop(1);
SELECTED = "";
}
if ((Math.abs(options._rotation - -45) <= 22) || (Math.abs(options._rotation - 135) <= 22)) {
options.YES.gotoAndStop(2);
SELECTED = "yes";
} else {
options.YES.gotoAndStop(1);
}
};
onMouseDown = function () {
if (SELECTED == "yes") {
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
MUSIC.stop();
gotoAndStop ("tutorial");
};
Transition();
}
if (SELECTED == "no") {
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
MUSIC.stop();
MUSIC.attachSound("12306.mp3");
MUSIC.start(0, 2);
if (MODE == "norm") {
gotoAndStop ("game");
} else {
gotoAndStop ("endless");
}
};
Transition();
}
};
Frame 95
NEXT = function () {
if (MODE == "option") {
gotoAndStop ("option");
MUSIC.attachSound("NG81670.mp3");
MUSIC.start(0, 2);
} else if (MODE == "norm") {
gotoAndStop ("game");
MUSIC.attachSound("12306.mp3");
MUSIC.start(0, 2);
} else {
gotoAndStop ("endless");
MUSIC.attachSound("12306.mp3");
MUSIC.start(0, 2);
}
};
onMouseDown = function () {
onEnterFrame = null;
onMouseDown = null;
Transition();
};
Frame 104
avatar._rotation = (ANGLE * 180) / Math.PI;
avatar.gotoAndStop(LANGUAGE);
center.swapDepths(1000);
center.gotoAndStop("white");
score = 0;
session = 0;
score1 = 0;
score2 = 0;
score3 = 0;
score4 = 0;
score5 = 0;
ScoreIndicator = function (R) {
_root.attachMovie("scoreIndicator", "score" + enemyDepth, enemyDepth);
PTR = _root["score" + enemyDepth];
angle = (R * Math.PI) / 180;
PTR._x = 200 + (Math.cos(angle) * 150);
PTR._y = 200 + (Math.sin(angle) * 150);
enemyDepth++;
if (enemyDepth >= enemyDepthMAX) {
enemyDepth = enemyDepthReset;
}
};
NextSession = function () {
switch (session) {
case 1 :
score1 = score;
break;
case 2 :
score2 = score;
break;
case 3 :
score3 = score;
break;
case 4 :
score4 = score;
break;
case 5 :
score5 = score;
}
score = 0;
if ((Difficulty == "panic") && (session == 5)) {
onEnterFrame = null;
NEXT = function () {
DeleteAll();
gotoAndStop ("result");
};
Transition();
return(undefined);
}
if ((Difficulty != "panic") && (session == 4)) {
onEnterFrame = null;
NEXT = function () {
DeleteAll();
gotoAndStop ("resultEasy");
};
Transition();
return(undefined);
}
session++;
Cap = 10 + (session * 5);
Remaining = Cap;
if (Difficulty == "panic") {
_root.attachMovie("ID_SessionIntro", "SESSSION_THING", 2000);
} else {
_root.attachMovie("ID_SessionIntro2", "SESSSION_THING", 2000);
}
SESSSION_THING._x = 200;
SESSSION_THING._y = 200;
onEnterFrame = function () {
if (Input.PRESS_PAUSE) {
onEnterFrame = null;
NEXT = function () {
DeleteAll();
gotoAndStop ("menu");
MUSIC.stop();
MUSIC.attachSound("NG81670.mp3");
MUSIC.start(0, 99999);
};
Transition();
}
};
};
onMouseMove = function () {
dX = _xmouse - avatar._x;
dY = _ymouse - avatar._y;
ANGLE = Math.atan2(dY, dX);
avatar._rotation = (ANGLE * 180) / Math.PI;
updateAfterEvent();
};
enemyDepthReset = 200;
enemyDepthMAX = 250;
enemyDepth = enemyDepthReset;
SpawnEnemy = function () {
color = randomColor(session);
center.gotoAndPlay(color);
this.attachMovie("ID_enemy", "enemy" + enemyDepth, enemyDepth);
enemy = this["enemy" + enemyDepth];
enemy._yscale = (enemy._xscale = 0);
enemy._rotation = random(360);
center.arrow._rotation = enemy._rotation;
center.arrow.gotoAndPlay(1);
enemy._x = (enemy._y = 200);
enemy.speed = 0;
enemy.color = color;
enemy.gotoAndStop(color);
enemy.onEnterFrame = function () {
this.speed = this.speed + 0.5;
this._yscale = this._yscale + (this.speed * EnemySpeed);
this._xscale = this._yscale;
if (this._yscale >= 80) {
this._alpha = this._alpha - 25;
this.speed = this.speed * 0.9;
}
this.angle = Math.abs(this._rotation - avatar._rotation);
if (((this._xscale > 80) && (this.angle < 25)) && (avatar.color == this.color)) {
score++;
ScoreIndicator(this._rotation);
this._alpha = 100;
this.onEnterFrame = function () {
this._xscale = this._xscale - this.speed;
this._yscale = this._xscale;
this.speed--;
this._alpha = this._alpha - 7;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
} else if (this._alpha <= 0) {
hurtIcon.gotoAndPlay(2);
this.removeMovieClip();
}
};
enemyDepth++;
if (enemyDepth >= enemyDepthMAX) {
enemyDepth = enemyDepthReset;
}
};
timer = timerReset;
BeginSession = function () {
onEnterFrame = function () {
timer--;
if (timer <= 0) {
if (Remaining == 0) {
NextSession();
return(undefined);
}
Remaining--;
SpawnEnemy();
if (Remaining == 0) {
timer = timerReset * 2;
} else {
timer = timerReset;
}
if (timerReset > timerMin) {
timerReset = timerReset - timerReduction;
}
}
if (Input.PRESS_PAUSE) {
onEnterFrame = null;
NEXT = function () {
DeleteAll();
gotoAndStop ("menu");
MUSIC.stop();
MUSIC.attachSound("NG81670.mp3");
MUSIC.start(0, 99999);
};
Transition();
}
};
};
DeleteAll = function () {
i = enemyDepthReset;
while (i <= enemyDepthMAX) {
this["enemy" + enemyDepth].removeMovieClip();
i++;
}
center.removeMovieClip();
SESSSION_THING.removeMovieClip();
};
avatar.LastSwitch = 0;
avatar.onEnterFrame = function () {
if (Input.PRESS_ACTION1 && (this.LastSwitch >= 3)) {
this.LastSwitch = 0;
this.color = "blue";
this.skin.gotoAndStop(this.color);
this.skin.sprite.gotoAndPlay(1);
}
if (Input.PRESS_ACTION2 && (this.LastSwitch >= 3)) {
this.LastSwitch = 0;
avatar.color = "green";
this.skin.gotoAndStop(this.color);
this.skin.sprite.gotoAndPlay(1);
}
if (Input.PRESS_ACTION3 && (this.LastSwitch >= 3)) {
this.LastSwitch = 0;
avatar.color = "red";
this.skin.gotoAndStop(this.color);
this.skin.sprite.gotoAndPlay(1);
}
if (Input.PRESS_ACTION4 && (this.LastSwitch >= 3)) {
this.LastSwitch = 0;
avatar.color = "pink";
this.skin.gotoAndStop(this.color);
this.skin.sprite.gotoAndPlay(1);
}
if ((this.color != "white") && (this.skin.sprite._currentframe == this.skin.sprite._totalframes)) {
avatar.color = "white";
this.skin.gotoAndStop(this.color);
}
if (this.LastSwitch < 10) {
this.LastSwitch++;
}
};
NextSession();
Frame 112
avatar._rotation = (ANGLE * 180) / Math.PI;
avatar.gotoAndStop(LANGUAGE);
center.swapDepths(1000);
center.gotoAndStop("white");
score = 0;
if (Difficulty == "panic") {
session = 5;
} else {
session = 4;
}
CHANCES = 3;
onMouseMove = function () {
dX = _xmouse - avatar._x;
dY = _ymouse - avatar._y;
ANGLE = Math.atan2(dY, dX);
avatar._rotation = (ANGLE * 180) / Math.PI;
updateAfterEvent();
};
enemyDepthReset = 200;
enemyDepthMAX = 250;
enemyDepth = enemyDepthReset;
ScoreIndicator = function (R) {
_root.attachMovie("scoreIndicator", "score" + enemyDepth, enemyDepth);
PTR = _root["score" + enemyDepth];
angle = (R * Math.PI) / 180;
PTR._x = 200 + (Math.cos(angle) * 150);
PTR._y = 200 + (Math.sin(angle) * 150);
enemyDepth++;
if (enemyDepth >= enemyDepthMAX) {
enemyDepth = enemyDepthReset;
}
};
SpawnEnemy = function () {
color = randomColor(session);
center.gotoAndPlay(color);
this.attachMovie("ID_enemy", "enemy" + enemyDepth, enemyDepth);
enemy = this["enemy" + enemyDepth];
enemy._yscale = (enemy._xscale = 0);
enemy._rotation = random(360);
center.arrow._rotation = enemy._rotation;
center.arrow.gotoAndPlay(1);
enemy._x = (enemy._y = 200);
enemy.speed = 0;
enemy.color = color;
enemy.gotoAndStop(color);
enemy.onEnterFrame = function () {
this.speed = this.speed + 0.5;
this._yscale = this._yscale + (this.speed * EnemySpeed);
this._xscale = this._yscale;
if (this._yscale >= 80) {
this._alpha = this._alpha - 25;
this.speed = this.speed * 0.9;
}
this.angle = Math.abs(this._rotation - avatar._rotation);
if (((this._xscale > 80) && (this.angle < 25)) && (avatar.color == this.color)) {
score++;
this._alpha = 100;
ScoreIndicator(this._rotation);
this.onEnterFrame = function () {
this._xscale = this._xscale - this.speed;
this._yscale = this._xscale;
this.speed--;
this._alpha = this._alpha - 7;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
} else if (this._alpha <= 0) {
hurtIcon.gotoAndPlay(2);
CHANCES--;
if (CHANCES <= 0) {
onEnterFrame = eval (null)();
NEXT = function () {
DeleteAll();
gotoAndStop ("resultEndless");
MUSIC.stop();
MUSIC.attachSound("NG81670.mp3");
MUSIC.start(0, 99999);
};
Transition();
}
this.removeMovieClip();
}
};
enemyDepth++;
if (enemyDepth >= enemyDepthMAX) {
enemyDepth = enemyDepthReset;
}
};
timer = timerReset;
timerMin = timerMin - 5;
EnemySpeed = EnemySpeed + 0.15;
timerReduction = 1;
BEGIN = function () {
onEnterFrame = function () {
timer--;
if (timer <= 0) {
SpawnEnemy();
if (Remaining == 0) {
timer = timerReset * 2;
} else {
timer = timerReset;
}
if (timerReset > timerMin) {
timerReset = timerReset - timerReduction;
}
}
if (Input.PRESS_PAUSE) {
onEnterFrame = null;
NEXT = function () {
DeleteAll();
gotoAndStop ("menu");
MUSIC.stop();
MUSIC.attachSound("NG81670.mp3");
MUSIC.start(0, 99999);
};
Transition();
}
};
};
DeleteAll = function () {
i = enemyDepthReset;
while (i <= enemyDepthMAX) {
this["enemy" + enemyDepth].removeMovieClip();
i++;
}
center.removeMovieClip();
SESSSION_THING.removeMovieClip();
};
avatar.LastSwitch = 0;
avatar.onEnterFrame = function () {
if (Input.PRESS_ACTION1 && (this.LastSwitch >= 3)) {
this.LastSwitch = 0;
this.color = "blue";
this.skin.gotoAndStop(this.color);
this.skin.sprite.gotoAndPlay(1);
}
if (Input.PRESS_ACTION2 && (this.LastSwitch >= 3)) {
this.LastSwitch = 0;
avatar.color = "green";
this.skin.gotoAndStop(this.color);
this.skin.sprite.gotoAndPlay(1);
}
if (Input.PRESS_ACTION3 && (this.LastSwitch >= 3)) {
this.LastSwitch = 0;
avatar.color = "red";
this.skin.gotoAndStop(this.color);
this.skin.sprite.gotoAndPlay(1);
}
if (Input.PRESS_ACTION4 && (this.LastSwitch >= 3)) {
this.LastSwitch = 0;
avatar.color = "pink";
this.skin.gotoAndStop(this.color);
this.skin.sprite.gotoAndPlay(1);
}
if ((this.color != "white") && (this.skin.sprite._currentframe == this.skin.sprite._totalframes)) {
avatar.color = "white";
this.skin.gotoAndStop(this.color);
}
if (this.LastSwitch < 10) {
this.LastSwitch++;
}
};
Frame 120
MUSIC.stop();
MUSIC.attachSound("NG81670.mp3");
MUSIC.start(0, 99999);
percent1 = int(((100 * score1) / 15) + 0.5);
percent2 = int(((100 * score2) / 20) + 0.5);
percent3 = int(((100 * score3) / 25) + 0.5);
percent4 = int(((100 * score4) / 30) + 0.5);
percent5 = int(((100 * score5) / 35) + 0.5);
percent = int((((((percent1 + percent2) + percent3) + percent4) + percent5) / 5) + 0.5);
highScore._visible = false;
if (percent >= _root.HIGH_PANIC_NORM) {
_root.HIGH_PANIC_NORM = percent;
SaveAllData();
highScore._visible = true;
}
highestPercent = _root.HIGH_PANIC_NORM;
onMouseMove = function () {
ROTATEMENU();
updateAfterEvent();
};
onEnterFrame = function () {
if ((Math.abs(options._rotation - -90) <= 30) || (Math.abs(options._rotation - 90) <= 30)) {
options.BACK.gotoAndStop(2);
SELECTED = "back";
} else {
options.BACK.gotoAndStop(1);
SELECTED = "";
}
};
onMouseDown = function () {
if (SELECTED == "back") {
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
gotoAndStop ("menu");
onMouseMove = null;
};
Transition();
}
};
Frame 127
MUSIC.stop();
MUSIC.attachSound("NG81670.mp3");
MUSIC.start(0, 99999);
percent1 = int(((100 * score1) / 15) + 0.5);
percent2 = int(((100 * score2) / 20) + 0.5);
percent3 = int(((100 * score3) / 25) + 0.5);
percent4 = int(((100 * score4) / 30) + 0.5);
percent = int(((((percent1 + percent2) + percent3) + percent4) / 4) + 0.5);
highScore._visible = false;
if (Difficulty == "severe") {
if (percent >= _root.HIGH_SEVERE_NORM) {
_root.HIGH_SEVERE_NORM = percent;
SaveAllData();
highScore._visible = true;
}
highestPercent = _root.HIGH_SEVERE_NORM;
} else {
if (percent >= _root.HIGH_TOLERABLE_NORM) {
_root.HIGH_TOLERABLE_NORM = percent;
SaveAllData();
highScore._visible = true;
}
highestPercent = _root.HIGH_TOLERABLE_NORM;
}
onMouseMove = function () {
ROTATEMENU();
updateAfterEvent();
};
onEnterFrame = function () {
if ((Math.abs(options._rotation - -90) <= 30) || (Math.abs(options._rotation - 90) <= 30)) {
options.BACK.gotoAndStop(2);
SELECTED = "back";
} else {
options.BACK.gotoAndStop(1);
SELECTED = "";
}
};
onMouseDown = function () {
if (SELECTED == "back") {
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
gotoAndStop ("menu");
onMouseMove = null;
};
Transition();
}
};
Frame 136
timerMin = timerMin + 5;
EnemySpeed = EnemySpeed - 0.15;
highScore._visible = false;
if (Difficulty == "tolerable") {
if (score >= _root.HIGH_TOLERABLE_ENDLESS) {
_root.HIGH_TOLERABLE_ENDLESS = score;
SaveAllData();
highScore._visible = true;
}
highestScore = _root.HIGH_TOLERABLE_ENDLESS;
} else if (Difficulty == "severe") {
if (score >= _root.HIGH_SEVERE_ENDLESS) {
_root.HIGH_SEVERE_ENDLESS = score;
SaveAllData();
highScore._visible = true;
}
highestScore = _root.HIGH_SEVERE_ENDLESS;
} else {
if (score >= _root.HIGH_PANIC_ENDLESS) {
_root.HIGH_PANIC_ENDLESS = score;
SaveAllData();
highScore._visible = true;
}
highestScore = _root.HIGH_PANIC_ENDLESS;
}
onMouseMove = function () {
ROTATEMENU();
updateAfterEvent();
};
onEnterFrame = function () {
if ((Math.abs(options._rotation - -90) <= 30) || (Math.abs(options._rotation - 90) <= 30)) {
options.BACK.gotoAndStop(2);
SELECTED = "back";
} else {
options.BACK.gotoAndStop(1);
SELECTED = "";
}
};
onMouseDown = function () {
if (SELECTED == "back") {
onEnterFrame = null;
onMouseDown = null;
NEXT = function () {
gotoAndStop ("menu");
onMouseMove = null;
};
Transition();
}
};
Symbol 17 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation - (_currentframe * 0.1));
};
Symbol 39 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 55 MovieClip Frame 222
_root.NEXT = function () {
_root.gotoAndStop("language");
};
_root.Transition();
Symbol 55 MovieClip Frame 258
Symbol 61 Button
on (release) {
Transition();
_root.LANGUAGE = 1;
}
Symbol 64 Button
on (release) {
Transition();
_root.LANGUAGE = 2;
}
Symbol 74 MovieClip Frame 1
if (_root.session == 2) {
percent = int(((100 * _root.score1) / 15) + 0.5);
}
if (_root.session == 3) {
percent = int(((100 * _root.score2) / 20) + 0.5);
}
if (_root.session == 4) {
percent = int(((100 * _root.score3) / 25) + 0.5);
}
if (_root.session == 5) {
percent = int(((100 * _root.score4) / 30) + 0.5);
}
Symbol 74 MovieClip Frame 43
stop();
Symbol 107 MovieClip [ID_SessionIntro2] Frame 1
this.swapDepths(2000);
_alpha = 0;
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
};
Instance of Symbol 74 MovieClip in Symbol 107 MovieClip [ID_SessionIntro2] Frame 1
onClipEvent (load) {
if (_root.session == 1) {
this._visible = false;
}
}
Symbol 107 MovieClip [ID_SessionIntro2] Frame 62
NUMBER = _root.session;
indicator.gotoAndStop(NUMBER);
Symbol 107 MovieClip [ID_SessionIntro2] Frame 118
onEnterFrame = function () {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
};
Symbol 107 MovieClip [ID_SessionIntro2] Frame 128
stop();
_root.BeginSession();
this.removeMovieClip();
Symbol 124 MovieClip [ID_SessionIntro] Frame 1
this.swapDepths(2000);
_alpha = 0;
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
};
Instance of Symbol 74 MovieClip in Symbol 124 MovieClip [ID_SessionIntro] Frame 1
onClipEvent (load) {
if (_root.session == 1) {
this._visible = false;
}
}
Symbol 124 MovieClip [ID_SessionIntro] Frame 48
NUMBER = _root.session;
indicator.gotoAndStop(NUMBER);
Symbol 124 MovieClip [ID_SessionIntro] Frame 108
onEnterFrame = function () {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
};
Symbol 124 MovieClip [ID_SessionIntro] Frame 118
stop();
_root.BeginSession();
this.removeMovieClip();
Symbol 136 MovieClip [scoreIndicator] Frame 13
this.removeMovieClip();
Symbol 137 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 618
stop();
_root.Transition();
Symbol 182 MovieClip Frame 74
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 1
_rotation = random(360);
onEnterFrame = function () {
_rotation = (_rotation + 10);
};
Symbol 299 MovieClip Frame 1
_rotation = random(360);
onEnterFrame = function () {
_rotation = (_rotation - 10);
};
Symbol 306 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 7
gotoAndStop ("white");
Symbol 312 MovieClip Frame 24
gotoAndStop ("white");
Symbol 312 MovieClip Frame 41
gotoAndStop ("white");
Symbol 312 MovieClip Frame 58
gotoAndStop ("white");
Symbol 312 MovieClip Frame 75
gotoAndStop ("white");
Symbol 312 MovieClip Frame 92
gotoAndStop ("white");
Symbol 429 MovieClip Frame 774
_root.Transition();
stop();
Symbol 432 MovieClip Frame 1
_rotation = random(360);
onEnterFrame = function () {
_rotation = (_rotation + 10);
};
Symbol 434 MovieClip Frame 1
_rotation = random(360);
onEnterFrame = function () {
_rotation = (_rotation - 10);
};
Symbol 443 MovieClip Frame 1
stop();
Symbol 467 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 7
gotoAndStop ("white");
Symbol 477 MovieClip Frame 24
gotoAndStop ("white");
Symbol 477 MovieClip Frame 41
gotoAndStop ("white");
Symbol 477 MovieClip Frame 58
gotoAndStop ("white");
Symbol 477 MovieClip Frame 75
gotoAndStop ("white");
Symbol 477 MovieClip Frame 92
gotoAndStop ("white");
Symbol 486 MovieClip Frame 1
this.swapDepths(2000);
Symbol 486 MovieClip Frame 8
sessionIndicator.gotoAndStop(_root.session);
Symbol 486 MovieClip Frame 112
_root.BEGIN();
this.removeMovieClip();