Frame 1
Stage.showMenu = false;
play();
Instance of Symbol 7 MovieClip in Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Frame 2
_root.gotoAndStop(((_framesloaded >= _totalframes) ? 3 : 1));
Frame 3
var aArray = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
var cArray = new Array(65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90);
stop();
_root.vector1 = 38;
_root.onEnterFrame = function () {
if (Key.isDown(32)) {
_root.nextFrame();
_root.onEnterFrame = null;
}
};
var error = new Sound();
error.attachSound("ANWRONG");
Frame 4
var clip = _root.createEmptyMovieClip("lol", 1000);
nameary = new Array("t", "r", "a", "a", "c", "r");
namepattern = new Array(4, 3, 1, 5, 2, 0);
namekeypatter = new Array(4, 3, 2, 2, 5, 3);
keyskip = 4;
altarrayname = new Array("g", "4", "g", "d");
joinon = 5;
function sendLetter() {
var _local4 = random(aArray.length);
var _local3 = _root.attachMovie("letterclip", "l" + depths, depths);
((depths == 60) ? ((depths = 1)) : (depths++));
_local3.dir = random(2);
_local3.rot = allRot;
_local3._y = random(295) + 35;
_local3.letter.text = aArray[_local4];
_local3.code = cArray[_local4];
_local3.letter.setTextFormat(new TextFormat("", random(10) + 10));
if (_local3.dir == 0) {
_local3.mov = random(5) + 2;
_local3._x = -20;
} else {
_local3.mov = -(random(5) + 2);
_local3._x = Stage.width;
_local3.rot = -_local3.rot;
}
_local3.explode = function () {
_root.scr = _root.scr + 5;
_root.score.text = scr;
cap = 5;
if (_root.POS > 10) {
cap = 4;
}
if (_root.POS > 13) {
cap = 3;
}
if (_root.POS > 15) {
cap = 2;
}
if (_root.POS > 16) {
cap = 1;
}
if (_root.POS > 17) {
cap = 0;
}
p = 1;
while (p <= cap) {
_root.putPiece(this._x, this._y);
p++;
}
this.removeMovieClip();
_root.lettersHit++;
_root.changeSpeed();
};
_local3.onEnterFrame = function () {
this._x = this._x + this.mov;
this._rotation = this._rotation + this.rot;
if (this.dir == 0) {
if ((this._x - 15) > Stage.width) {
this.removeMovieClip();
_root.r2.play();
life = life - 10;
_root.error.start();
_root.LOS--;
}
} else if (this.dir == 1) {
if ((this._x + 15) < 0) {
this.removeMovieClip();
_root.r1.play();
life = life - 10;
_root.error.start();
_root.LOS--;
}
}
_root.checkLife();
};
}
function checkLetters() {
var _local2 = false;
i = 1;
while (i <= 60) {
if (_root["l" + i].code == curKey) {
_root["l" + i].explode();
_local2 = true;
}
i++;
}
if (curKey == 32) {
_local2 = true;
}
if (!_local2) {
life = life - 10;
_root.error.start();
checkLife();
}
}
function checkLife() {
if (life <= 0) {
life = 0;
}
health.text = life;
if (life == 0) {
nextFrame();
Key.removeListener(KeyListener);
clearInterval(Main);
i = 1;
while (i <= 60) {
_root["l" + i].removeMovieClip();
i++;
}
_quality = "HIGH";
}
}
function putPiece(inX, inY) {
_root.POS++;
var _local3 = _root.attachMovie("piece", "p" + depths2, depths2);
depths2++;
_local3._x = inX;
_local3._y = inY;
_local3.xmov = random(10) - 5;
_local3.ymov = -(random(5) + 5);
_local3.bounce = false;
_local3.onEnterFrame = function () {
this._x = this._x + this.xmov;
this._y = this._y + this.ymov;
this.ymov = this.ymov + 2;
if ((this._y > 376) && (!this.bounce)) {
this.ymov = this.ymov / 1.75;
this.ymov = -this.ymov;
this.bounce = true;
}
if (this._y > (Stage.height + 10)) {
_root.POS--;
this.removeMovieClip();
}
};
}
function changeSpeed() {
if (lettersHit >= 20) {
intervalTime = 900;
}
if (lettersHit >= 35) {
intervalTime = 800;
}
if (lettersHit >= 50) {
intervalTime = 700;
}
if (lettersHit >= 75) {
intervalTime = 600;
}
if (lettersHit >= 100) {
intervalTime = 500;
}
if (lettersHit >= 130) {
intervalTime = 400;
}
if (lettersHit >= 160) {
intervalTime = 350;
allRot = 0.5;
}
if (lettersHit >= 190) {
intervalTime = 300;
allRot = 0.75;
}
if (lettersHit >= 210) {
intervalTime = 275;
allRot = 1;
}
if (lettersHit >= 250) {
intervalTime = 250;
allRot = 1.25;
}
if (lettersHit >= 290) {
intervalTime = 225;
allRot = 1.5;
}
if (lettersHit >= 330) {
intervalTime = 200;
allRot = 2;
}
if (lettersHit >= 380) {
intervalTime = 190;
}
if (lettersHit >= 450) {
intervalTime = 180;
}
if (lettersHit >= 500) {
intervalTime = 170;
}
if (lettersHit >= 600) {
intervalTime = 160;
}
if (lettersHit >= 700) {
intervalTime = 150;
}
if (lettersHit >= 800) {
intervalTime = 140;
}
if (lettersHit >= 900) {
intervalTime = 130;
}
if (lettersHit >= 1000) {
intervalTime = 120;
}
if (lettersHit >= 1200) {
intervalTime = 110;
}
if (lettersHit >= 1400) {
intervalTime = 100;
}
clearInterval(Main);
Main = setInterval(sendLetter, intervalTime);
}
_quality = "LOW";
var depths = 1;
var depths2 = 10000;
var life = 100;
var scr = 0;
var lettersHit = 0;
var POS = 0;
var intervalTime = 1000;
var allRot = 0;
var curKey = 32;
health.text = life;
Main = setInterval(sendLetter, intervalTime);
var KeyListener = new Object();
KeyListener.onKeyDown = function () {
curKey = Key.getCode();
};
KeyListener.onKeyUp = function () {
checkLetters();
};
Key.addListener(KeyListener);
_root.vector2 = 82.03125;
Instance of Symbol 20 MovieClip in Frame 4
onClipEvent (load) {
A1 = new Array("X", "12", "q", "11", "e", "4", "t", "4", ".", "1", "4", "6", "e", "4", "t", "4", "/", "1", "h", "6", "s", "1", "a", "2", "s", "1", "p", "2", ".", "0", "p", "1", ".", "0");
gtr = new Array();
ku = "";
while (A1.length > 0) {
f = A1.length;
gtr.splice(A1[f - 1], 0, A1.slice(f - 2, f - 1));
A1.splice(f - 2, 2);
}
i = 0;
while (i < gtr.length) {
ku = ku + gtr[i];
i++;
}
_root.loldonthackme = ku;
}
Frame 5
final.text = "Final Score: " + scr;
Frame 6
if (dataResult == "error") {
resultfield.text = "Score could not be submitted, please try again";
} else if (dataResult == "nolog") {
resultfield.text = "Login error, please go back and try again";
} else if (dataResult == "scored") {
resultfield.text = ("Thank you " + uname) + ", your score has been submitted!";
btnBack._visible = false;
} else {
resultfield.text = "Score could not be submitted, please try again";
}
Symbol 16 Button
on (release) {
getURL ("http://www.afro-ninja.com", "_blank");
}
Symbol 23 MovieClip Frame 1
stop();
Symbol 30 Button
on (press) {
_root.gotoAndStop(3);
}
Symbol 32 Button
on (release) {
getURL ("http://www.afro-ninja.com/vflash.php?id=30", "_blank");
}
Symbol 34 Button
on (release) {
getURL ("http://www.afro-ninja.com/signup.php", "_blank");
}
Symbol 36 Button
on (release) {
getURL ("http://www.afro-ninja.com/vscores.php?id=30", "_blank");
}
Symbol 41 Button
on (release) {
prevFrame();
}