Frame 1
function gotoC() {
getURL ("http://www.claxor.com", "_blank");
}
function muteS() {
_root.sound = false;
_root.mus.gotoAndStop(3);
}
function unmuteS() {
_root.sound = true;
_root.mus.gotoAndStop(2);
}
var MENU = new ContextMenu();
MENU.hideBuiltInItems();
MENU.builtInItems.quality = true;
var site = new ContextMenuItem("Go to Claxor.com", gotoC);
var muteSI = new ContextMenuItem("Mute Sound", muteS);
var unmuteSI = new ContextMenuItem("Unmute Sound", unmuteS);
MENU.customItems.push(site);
_root.menu = MENU;
var sound = true;
Frame 2
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
Frame 3
if (_root.percentLoaded == 100) {
gotoAndPlay (3);
} else {
gotoAndPlay (2);
}
Frame 26
_quality = "low";
Frame 37
_quality = "high";
Frame 87
_quality = "low";
Frame 98
_quality = "high";
Frame 99
stop();
Frame 100
stop();
Frame 101
stop();
box.swapDepths(1000);
function dec2hex(dec) {
if (dec > 15) {
pos1 = hexChars.charAt(Math.floor(dec / 16));
pos2 = hexChars.charAt(dec - (pos1 * 16));
} else {
pos1 = 0;
pos2 = hexChars.charAt(dec);
}
hex = pos1 + pos2;
return(hex);
}
function BHT(course) {
return(((((((((((((((course.hitTest(ball._x - (ball._width / 2), ball._y - (ball._height / 2), true) || (course.hitTest(ball._x + (ball._width / 2), ball._y - (ball._height / 2), true))) || (course.hitTest(ball._x - (ball._width / 2), ball._y + (ball._height / 2), true))) || (course.hitTest(ball._x + (ball._width / 2), ball._y + (ball._height / 2), true))) || (course.hitTest(ball._x + (ball._width / 2), ball._y, true))) || (course.hitTest(ball._x - (ball._width / 2), ball._y, true))) || (course.hitTest(ball._x, ball._y + (ball._height / 2), true))) || (course.hitTest(ball._x, ball._y - (ball._height / 2), true))) || (course.hitTest(ball._x - (ball._width / 2), ball._y + (ball._height / 4), true))) || (course.hitTest(ball._x - (ball._width / 2), ball._y - (ball._height / 4), true))) || (course.hitTest(ball._x + (ball._width / 2), ball._y + (ball._height / 4), true))) || (course.hitTest(ball._x + (ball._width / 2), ball._y - (ball._height / 4), true))) || (course.hitTest(ball._x - (ball._width / 4), ball._y + (ball._height / 2), true))) || (course.hitTest(ball._x - (ball._width / 4), ball._y - (ball._height / 2), true))) || (course.hitTest(ball._x + (ball._width / 4), ball._y + (ball._height / 2), true))) || (course.hitTest(ball._x + (ball._width / 4), ball._y - (ball._height / 2), true)));
}
var myDrop = (new flash.filters.DropShadowFilter());
myDrop.distance = 1;
myDrop.blurX = 0;
myDrop.blurY = 0;
var myBevel = (new flash.filters.BevelFilter(1, 45, 16777215, 100, 0, 100, 4, 4, 1));
var myGlow = (new flash.filters.GlowFilter(0, 100, 2, 2));
var myDrop2 = (new flash.filters.DropShadowFilter());
myDrop2.distance = 1;
myDrop2.blurX = 3;
myDrop2.blurY = 3;
myDrop2.strength = 0.5;
_root.ball.filters = [myDrop2];
_root.course.filters = [myDrop, myBevel, myGlow];
_root.evil.filters = [myDrop2];
_root.moving.filters = [myDrop, myBevel, myGlow];
var startt = getTimer();
var xspeed = 0;
var yspeed = 0;
var acc = 5;
var air = false;
var fric = 0.5;
var grav = 0.7;
var jump = -12;
var curFrm = 0;
var cc = 0;
var dead = false;
hexChars = "0123456789ABCDEF";
var BCA = [[255, 0, 0], [74, 89, 215], [145, 145, 145], [194, 82, 207], [102, 217, 72], [89, 200, 188]];
var ballCol = new Color(_root.ball.col);
var randCol = Math.floor(Math.random() * BCA.length);
var ballColV = ((("0x" + dec2hex(BCA[randCol][0])) + dec2hex(BCA[randCol][1])) + dec2hex(BCA[randCol][2]));
var targC = BCA[Math.floor(Math.random() * BCA.length)];
var curCol = BCA[randCol];
var tweenFrm = 50;
var oldCol = curCol;
oldx = (oldy = 0);
onEnterFrame = function () {
((xspeed > 0) ? ((ball._xscale = 100)) : (((xspeed < 0) ? ((ball._xscale = -100)) : 0)));
(Key.isDown(39) ? ((ball._xscale = 100)) : 0);
if ((xspeed > 1) || (xspeed < -1)) {
ball.gotoAndStop(2);
} else {
xspeed = 0;
ball.gotoAndStop(1);
}
if ((cc % tweenFrm) == (tweenFrm - 1)) {
targC = BCA[Math.floor(Math.random() * BCA.length)];
oldCol = curCol;
}
curCol[0] = curCol[0] + ((targC[0] - oldCol[0]) / tweenFrm);
curCol[1] = curCol[1] + ((targC[1] - oldCol[1]) / tweenFrm);
curCol[2] = curCol[2] + ((targC[2] - oldCol[2]) / tweenFrm);
var _local3 = (("0x" + dec2hex(curCol[0])) + dec2hex(curCol[1])) + dec2hex(curCol[2]);
cc++;
air = true;
if (Key.isDown(37)) {
xspeed = xspeed - acc;
}
if (Key.isDown(39)) {
xspeed = xspeed + acc;
}
yspeed = yspeed + grav;
xspeed = xspeed * fric;
if (BHT(up) && (yspeed < 0)) {
yspeed = yspeed - 1;
}
((yspeed > 16) ? ((yspeed = 16)) : (((yspeed < -16) ? ((yspeed = -16)) : 0)));
ball._y = ball._y + yspeed;
if (BHT(course)) {
if (yspeed > 0) {
air = false;
}
while (BHT(course)) {
((yspeed < 0) ? ((ball._y = ball._y + grav)) : ((ball._y = ball._y - grav)));
}
yspeed = 0;
}
if (moving && (BHT(moving))) {
var _local2 = 0;
while (moving["mov" + _local2]) {
if (moving["mov" + _local2].hitTest(ball)) {
if (moving["mov" + _local2].oldy > oldy) {
air = false;
yspeed = 0;
ball._y = (moving["mov" + _local2]._y + moving._y) - ((moving["mov" + _local2]._height / 2) + (ball._height / 2));
ball._x = ball._x + ((moving["mov" + _local2]._x + moving._x) - moving["mov" + _local2].oldx);
if (moving["mov" + _local2].oldy <= (moving["mov" + _local2]._y + moving._y)) {
yspeed = 5;
}
if (BHT(course) && (moving["mov" + _local2].oldx == (moving["mov" + _local2]._x + moving._x))) {
xspeed = (yspeed = 0);
box.play();
ball.swapDepths(534);
removeMovieClip(ball);
dead = true;
setTimeout(function () {
_root.dead = false;
_root.curFrm = _root._currentframe;
_root.gotoAndStop(_root.curFrm - 1);
_root.gotoAndStop(_root.curFrm);
_root["ball" + _root.level]._name = "ball";
}, 1);
}
} else {
ball._y = (moving["mov" + _local2]._y + moving._y) + ((moving["mov" + _local2]._height / 2) + (ball._height / 2));
yspeed = yspeed * -1;
}
}
_local2++;
}
}
var _local2 = 0;
while (moving["mov" + _local2]) {
if ((((moving["mov" + _local2].oldy > oldy) && ((moving["mov" + _local2]._y + moving._y) < ball._y)) && (Math.abs(oldx - moving["mov" + _local2].oldx) < ((ball._width / 2) + (moving["mov" + _local2]._width / 2)))) && (Math.abs(ball._x - (moving["mov" + _local2]._x + moving._x)) < ((ball._width / 2) + (moving["mov" + _local2]._width / 2)))) {
ball._y = ((moving._y + moving["mov" + _local2]._y) - (moving["mov" + _local2]._height / 2)) - 5;
}
_local2++;
}
ball._x = ball._x + xspeed;
if (BHT(moving)) {
_local2 = 0;
while (moving["mov" + _local2]) {
if (moving["mov" + _local2].hitTest(ball) && (Math.abs(oldx - moving["mov" + _local2].oldx) >= ((ball._width / 2) + (moving["mov" + _local2]._width / 2)))) {
if (moving["mov" + _local2].oldx > oldx) {
ball._x = (moving["mov" + _local2]._x + moving._x) - ((moving["mov" + _local2]._width / 2) + (ball._width / 2));
} else {
ball._x = ((moving["mov" + _local2]._x + moving._x) + ((moving["mov" + _local2]._width / 2) + (ball._width / 2))) + 1;
}
}
_local2++;
}
}
if (BHT(course)) {
while (BHT(course)) {
((ball._x < oldx) ? ((ball._x = ball._x + grav)) : ((ball._x = ball._x - grav)));
}
xspeed = 0;
}
if (Key.isDown(32) && (air == false)) {
yspeed = jump;
}
if (moving) {
_local2 = 0;
while (moving["mov" + _local2]) {
moving["mov" + _local2].oldx = moving["mov" + _local2]._x + moving._x;
moving["mov" + _local2].oldy = moving["mov" + _local2]._y + moving._y;
_local2++;
}
}
oldx = ball._x;
oldy = ball._y;
if (ball.hitTest(end)) {
_root.nextFrame();
_root.stop();
_root.level++;
trace(_root.level);
_root["ball" + _root.level]._name = "ball";
xspeed = (yspeed = 0);
_root.ball.filters = [myDrop2];
_root.course.filters = [myDrop, myBevel, myGlow];
_root.evil.filters = [myDrop2];
_root.moving.filters = [myDrop, myBevel, myGlow];
}
if (BHT(evil)) {
xspeed = (yspeed = 0);
box.play();
ball.swapDepths(534);
removeMovieClip(ball);
dead = true;
setTimeout(function () {
_root.dead = false;
_root.curFrm = _root._currentframe - 99;
_root.prevFrame();
_root.nextFrame();
_root["ball" + _root.level]._name = "ball";
_root.ball.filters = [myDrop2];
_root.course.filters = [myDrop, myBevel, myGlow];
_root.evil.filters = [myDrop2];
_root.moving.filters = [myDrop, myBevel, myGlow];
}, 1);
}
ox = course._y;
_local2 = 0;
while (_local2 < 3) {
if (BHT(_root["t" + _local2])) {
ball._x = ball._x + (_root["te" + _local2]._x - _root["t" + _local2]._x);
ball._y = _root["te" + _local2]._y;
}
_local2++;
}
};
Instance of Symbol 88 MovieClip in Frame 101
on (release) {
getURL ("http://www.claxor.com", "_blank");
}
Instance of Symbol 90 MovieClip in Frame 101
on (release) {
_root.gotoAndStop("menu");
}
Frame 102
stop();
Frame 103
stop();
Frame 104
stop();
Frame 105
stop();
Frame 106
stop();
Frame 107
stop();
Frame 108
stop();
Frame 109
stop();
Frame 110
stop();
var time = (getTimer() - startt);
time_txt.text = time;
Frame 111
stop();
moving.gotoAndPlay(70);
Frame 112
stop();
var time = (getTimer() - startt);
var timeS = Math.round(time / 1000);
var m = 0;
while (timeS >= 60) {
timeS = timeS - 60;
m++;
}
if (m > 0) {
if (timeS > 9) {
var timeT = ((m + ":") + timeS);
} else {
var timeT = ((m + ":0") + timeS);
}
} else {
var timeT = timeS;
}
time_txt.text = timeT;
Symbol 5 MovieClip [trail] Frame 8
this.swapDepths(_root.getNextHighestDepth());
removeMovieClip(this);
Symbol 167 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 26 Button
on (release) {
getURL ("http://www.claxor.com", _blank);
}
Symbol 44 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 51 MovieClip Frame 81
_root.play();
_root.sound = true;
_root.mus.gotoAndStop(2);
_root.MENU.customItems.push(_root.muteSI);
_root.MENU.customItems.push(_root.unmuteSI);
_root.play();
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 2
gotoAndStop (4);
Symbol 54 MovieClip Frame 3
gotoAndStop (1);
Symbol 54 MovieClip Frame 4
gotoAndStop (5);
Symbol 54 MovieClip Frame 5
gotoAndStop (1);
Symbol 60 Button
on (release) {
play();
var level = 1;
}
Symbol 63 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=415", _blank);
}
Symbol 67 Button
on (release) {
getURL ("http://www.armorgames.com", _blank);
}
Symbol 70 Button
on (release) {
getURL ("http://www.claxor.com", _blank);
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 2
stop();
g.gotoAndPlay(5);
Symbol 82 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://newgrounds.com/collection/halloween2006.html", _blank);
};
Symbol 84 MovieClip Frame 1
function camControl() {
with (_root) {
vcam._x = vcam._x - ((vcam._x - ball._x) / 10);
vcam._y = vcam._y - ((vcam._y - ball._y) / 10);
vcam._x = ball._x;
vcam._y = ball._y;
bg._x = vcam._x;
bg._y = vcam._y;
bg._width = vcam._width;
bg._height = vcam._height;
}
parentColor.setTransform(camColor.getTransform());
var scaleX = (sX / this._width);
var scaleY = (sY / this._height);
_parent._x = cX - (this._x * scaleX);
_parent._y = cY - (this._y * scaleY);
_parent._xscale = 100 * scaleX;
_parent._yscale = 100 * scaleY;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onUnload = resetStage;
Symbol 86 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 1
var oldx = _x;
var oldy = _y;
Symbol 161 Button
on (release) {
ab20_09 = new LoadVars();
ab20_09.z = name_txt.text;
ab20_09.x = ab20.encodeNum(Math.round(time / 1000));
ab20_09.c = 415;
ab20_09.v = "MAHKAI";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
gotoAndStop ("menu");
getURL ("http://www.armorbot.com/mytable/?id=415", _blank);
}
Symbol 165 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=415", _blank);
}