[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (3.24 KiB) ●
function itemHandler0(obj, item) {
_root._quality = "AUTOHIGH";
}
function itemHandler1(obj, item) {
_root._quality = "HIGH";
}
function itemHandler2(obj, item) {
_root._quality = "MEDIUM";
}
function itemHandler3(obj, item) {
_root._quality = "LOW";
}
function dist(x1, y1, x2, y2) {
return(Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1))));
}
_root.finalName = "Muffin";
_quality = "MEDIUM";
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.customItems.push(new ContextMenuItem("Auto-Quality", itemHandler0));
myMenu.customItems.push(new ContextMenuItem("High", itemHandler1));
myMenu.customItems.push(new ContextMenuItem("Medium", itemHandler2));
myMenu.customItems.push(new ContextMenuItem("Low", itemHandler3));
_root.menu = myMenu;
stop();
k = 0;
onEnterFrame = function () {
var _local2 = Math.floor(framesLoaded / 4) - 1;
afw._x = afw._x - (0.3 * ((afw._x - _root["b" + _local2]._x) / 2));
afw._y = afw._y - (0.3 * ((afw._y - _root["b" + _local2]._y) / 2));
cat.removeMovieClip();
createEmptyMovieClip("cat", k++);
cat.lineStyle(1, 16777215, 50);
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
framesLoaded = Math.ceil((loaded / total) * 100);
if ((framesLoaded >= 100) && (playMe.act == false)) {
playMe.act = true;
playMe.play();
}
perDisp = framesLoaded + "%";
i = 0;
while (i < 25) {
if (framesLoaded >= (i * 4)) {
_root["b" + i]._alpha = _root["b" + i]._alpha - (0.08 * ((_root["b" + i]._alpha - 100) / 2));
_root["b" + i]._x = _root["b" + i]._x - (0.3 * ((_root["b" + i]._x - _root["b" + i].mainX) / 2));
_root["b" + i]._y = _root["b" + i]._y - (0.3 * ((_root["b" + i]._y - _root["b" + i].mainY) / 2));
if (i != 0) {
cat.moveTo(_root["b" + i]._x, _root["b" + i]._y);
cat.lineTo(_root["b" + (i - 1)]._x, _root["b" + (i - 1)]._y);
}
}
base = 1.5;
if (_root["b" + i].hitTest(_xmouse, _ymouse)) {
if ((_xmouse - _root["b" + i]._x) > 0) {
t = 0;
while (t < 25) {
_root["b" + (i - t)]._x = _root["b" + (i - t)]._x - (base / (t + 1));
_root["b" + (i + t)]._x = _root["b" + (i + t)]._x - (base / (t + 1));
t++;
}
} else if ((_xmouse - _root["b" + i]._x) <= 0) {
t = 0;
while (t < 25) {
_root["b" + (i - t)]._x = _root["b" + (i - t)]._x + (base / (t + 1));
_root["b" + (i + t)]._x = _root["b" + (i + t)]._x + (base / (t + 1));
t++;
}
}
if ((_ymouse - _root["b" + i]._y) > 0) {
t = 0;
while (t < 25) {
_root["b" + (i - t)]._y = _root["b" + (i - t)]._y - (base / (t + 1));
_root["b" + (i + t)]._y = _root["b" + (i + t)]._y - (base / (t + 1));
t++;
}
} else if ((_ymouse - _root["b" + i]._y) <= 0) {
t = 0;
while (t < 25) {
_root["b" + (i - t)]._y = _root["b" + (i - t)]._y + (base / (t + 1));
_root["b" + (i + t)]._y = _root["b" + (i + t)]._y + (base / (t + 1));
t++;
}
}
}
i++;
}
};
i = 0;
while (i < 25) {
_root["b" + i].mainX = _root["b" + i]._x;
_root["b" + i].mainY = _root["b" + i]._y;
_root["b" + i]._x = random(Stage.width);
_root["b" + i]._y = random(Stage.height);
_root["b" + i]._alpha = 0;
_root["b" + i].act = true;
i++;
}
Frame 2 (8 B)
stop();
Frame 3 (8 B)
stop();
Frame 4 (31 B)
stopAllSounds();
nextFrame();
Frame 5 (8.45 KiB) ● ●
function defineLevel() {
level = _root["ll" + levelFocus];
}
function killSwitch() {
for (var _local2 in _root) {
if (typeof(_root[_local2]) == "movieclip") {
_root[_local2].removeMovieClip();
}
}
}
function timeOut() {
level._alpha = level._alpha - 3;
level.onEnterFrame = null;
if (level._alpha <= 0) {
level.blackAndWhite(true);
i = 0;
while (i < liveLevels.length) {
if (liveLevels[i] == levelFocus) {
liveLevels.splice(i, 1);
trace(liveLevels);
j = i;
while (j < liveLevels.length) {
trace(_root["ll" + liveLevels[j]]._name);
_root["ll" + liveLevels[j]]._name = String("ll" + (liveLevels[j] - 1));
trace("ll" + (liveLevels[j] - 1));
liveLevels[j]--;
j++;
}
trace(liveLevels);
break;
}
i++;
}
myStage = 3;
if (liveLevels.length < 1) {
gotoAndStop ("gameOver");
myStage = 7;
}
levelFocus = liveLevels[random(liveLevels.length)];
level.removeMovieClip();
}
}
function cameraStuff() {
speedA = Math.floor(speed / 5) - 1;
speedB = ((speed % 5) / 5) * 10;
speedDisp = (speedA + ".") + speedB;
}
function depths() {
camera.swapDepths(k++);
bar.swapDepths(k++);
}
function wait() {
waitCounter++;
if (waitCounter > Math.floor((1 / speed) * 100)) {
waitCounter = 0;
myStage = 1;
}
}
function zoomIn() {
elasticScale(camera, 100, zSpeed, 0.4);
elasticX(camera, level._x + 275, zSpeed, 0.4);
elasticY(camera, level._y + 200, zSpeed, 0.4);
easing("rotation", _root, 0, 0.7);
if (Math.round(camera._xscale) == 100) {
level.callEnter();
level.playNow = true;
myStage = 2;
pTotal = pTotal + level.p;
tTotal = tTotal + level.t;
rTotal = rTotal + level.r;
trace(pTotal);
trace(tTotal);
trace(rTotal);
}
}
function gameTime() {
gameCounter++;
if (gameCounter > Math.floor((1 / speed) * 1500)) {
gameCounter = 0;
level.onEnterFrame = null;
level.callExit();
lastLevelFocus = levelFocus;
var _local2 = new Sound(this);
_local2.attachSound("sine");
_local2.start(0, 1);
p = p + level.p;
t = t + level.t;
r = r + level.r;
combo++;
if (combo > topCombo) {
topCombo = combo;
}
trace("++++++++++++++");
if (liveLevels.length > 1) {
while (lastLevelFocus == levelFocus) {
levelFocus = liveLevels[random(liveLevels.length)];
}
}
trace("GO!");
myStage = 3;
}
}
function zoomOut() {
elasticH(camera, outH, zSpeed, 0.3);
elasticW(camera, outW, zSpeed, 0.3);
elasticX(camera, outX, zSpeed, 0.3);
elasticY(camera, outY, zSpeed, 0.3);
if ((Math.round(camera._width) + 1) >= outW) {
if (speedCounter > speedGoal) {
speedCounter = 0;
myStage = 6;
speed++;
speedGoal = (speed * 3) / 4;
} else {
speedCounter = speedCounter + 4;
trace((("speedC:" + speedCounter) + ", speedG:") + speedGoal);
myStage = 4;
}
}
}
function showSpeed() {
camera.speedThinger.play();
if (camera.speedThinger._currentframe == 85) {
myStage = 1;
camera.speedThinger.gotoAndStop(1);
}
}
function triggerLoss() {
combo = 0;
var _local2 = new Sound(this);
_local2.attachSound("sitar");
_local2.start(0, 1);
level.blackAndWhite(false);
level.callExit();
myStage = 5;
gameCounter = 0;
}
function elasticScale(mc, targt, accel, friction) {
if (mc.qxScale == undefined) {
mc.qxScale = 0;
}
mc.qxScale = mc.qxScale + ((targt - mc._xscale) * accel);
mc.qxScale = mc.qxScale * friction;
mc._xscale = (mc._yscale = mc._yscale + mc.qxScale);
}
function elasticX(mc, targt, accel, friction) {
if (mc.qxSpeed == undefined) {
mc.qxSpeed = 0;
}
mc.qxSpeed = mc.qxSpeed + ((targt - mc._x) * accel);
mc.qxSpeed = mc.qxSpeed * friction;
mc._x = mc._x + mc.qxSpeed;
}
function elasticY(mc, targt, accel, friction) {
if (mc.qySpeed == undefined) {
mc.qySpeed = 0;
}
mc.qySpeed = mc.qySpeed + ((targt - mc._y) * accel);
mc.qySpeed = mc.qySpeed * friction;
mc._y = mc._y + mc.qySpeed;
}
function elasticH(mc, targt, accel, friction) {
if (mc.qhSpeed == undefined) {
mc.qhSpeed = 0;
}
mc.qhSpeed = mc.qhSpeed + ((targt - mc._height) * accel);
mc.qhSpeed = mc.qhSpeed * friction;
mc._height = mc._height + mc.qhSpeed;
}
function elasticW(mc, targt, accel, friction) {
if (mc.qwSpeed == undefined) {
mc.qwSpeed = 0;
}
mc.qwSpeed = mc.qwSpeed + ((targt - mc._width) * accel);
mc.qwSpeed = mc.qwSpeed * friction;
mc._width = mc._width + mc.qwSpeed;
}
function easing(pro, mov1, mov2, drift) {
switch (pro) {
case "x" :
mov1._x = mov1._x - (drift * ((mov1._x - mov2) / 2));
break;
case "y" :
mov1._y = mov1._y - (drift * ((mov1._y - mov2) / 2));
break;
case "xscale" :
mov1._xscale = mov1._xscale - (drift * ((mov1._xscale - mov2) / 2));
break;
case "yscale" :
mov1._yscale = mov1._yscale - (drift * ((mov1._yscale - mov2) / 2));
break;
case "width" :
mov1._width = mov1._width - (drift * ((mov1._width - mov2) / 2));
break;
case "height" :
mov1._height = mov1._height - (drift * ((mov1._height - mov2) / 2));
break;
case "alpha" :
mov1._alpha = mov1._alpha - (drift * ((mov1._alpha - mov2) / 2));
break;
case "rotation" :
mov1._rotation = mov1._rotation - (drift * ((mov1._rotation - mov2) / 2));
}
}
function dist(x1, y1, x2, y2) {
return(Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1))));
}
function rot(circx, circy, prevx, prevy) {
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(degrees + 90);
}
if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(90 - degrees);
}
if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / Math.PI;
return(-(180 - degrees));
}
if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(-(90 - degrees));
}
}
var speed = 10;
var levelFocus = random(16);
var levelTotal = 16;
var k = 1;
var offSetY = 0;
var offSetX = 0;
var p = 0;
var pTotal = 0;
var t = 0;
var tTotal = 0;
var r = 0;
var rTotal = 0;
var frameCounter = 0;
stop();
var combo = 0;
var topCombo = 0;
outW = 2200;
outH = 1600;
outX = 1100;
outY = 800;
camera._width = outW;
camera._height = outH;
camera._x = outX;
camera._y = outY;
var myStage = 8;
var speedCounter = 0;
var speedGoal = ((speed * 3) / 4);
var liveLevels = new Array();
i = 0;
while (i < levelTotal) {
offSetX = i % 4;
offSetY = Math.floor(i / 4);
shel = _root.attachMovie("level" + i, "ll" + i, k++);
shel._x = offSetX * 550;
shel._y = offSetY * 400;
liveLevels.push(i);
i++;
}
camera.swapDepths(k++);
var f1Timeout = 0;
var level = new MovieClip();
var tTime = "N/A";
var carabous = 0;
onEnterFrame = function () {
frameCounter++;
carabous = carabous + random(2);
tTime = String(Math.round(frameCounter / 40));
depths();
defineLevel();
f1Timeout++;
if (f1Timeout >= 2) {
f1Timeout = 4;
}
zSpeed = 0.05 * speed;
switch (myStage) {
case 1 :
zoomIn();
break;
case 2 :
gameTime();
break;
case 3 :
zoomOut();
break;
case 4 :
wait();
break;
case 5 :
timeOut();
break;
case 6 :
showSpeed();
break;
case 7 :
killSwitch();
onEnterFrame = null;
break;
case 8 :
}
myC = 0;
i = 0;
while (i < liveLevels.length) {
offSetX = i % 4;
offSetY = Math.floor(i / 4);
elasticX(_root["ll" + liveLevels[i]], offSetX * 550, zSpeed, 0.4);
elasticY(_root["ll" + liveLevels[i]], offSetY * 400, zSpeed, 0.4);
i++;
}
cameraStuff();
};
var speedDisp = "E";
var waitCounter = 0;
var gameCounter = 0;
var lastLevelFocus = 4;
MovieClip.prototype.blackAndWhite = function (clear) {
myFilters = this.filters;
if (!clear) {
BWMatrix = [0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0, 0, 0, 1, 0];
((this.BWFilterSpot == undefined) ? ((this.BWFilterSpot = myFilters.length)) : null);
myFilters[this.BWFilterSpot] = new flash.filters.ColorMatrixFilter(BWMatrix);
} else {
myFilters[this.BWFilterSpot] = undefined;
}
this.filters = myFilters;
};
Symbol 8 MovieClip Frame 1 (8 B)
stop();
Symbol 11 MovieClip Frame 1 (8 B)
stop();
Symbol 15 MovieClip Frame 1 (8 B)
stop();
Symbol 19 MovieClip [level0] Frame 1 (1.44 KiB) ●
function callEnter() {
onEnterFrame = function () {
speed = _root.speed;
counter++;
a.play();
b.play();
bg.play();
if (counter >= bLoad) {
shel = loadHere.attachMovie("level1-bar", _root.k, _root.k++);
shel._x = random(500) + 20;
shel._y = 450;
currentBars.push(_root.k);
counter = 0;
bLoad = (goal = Math.floor((1 / speed) * 300));
}
if (loadHere.hitTest(ball._x, ball._y, true)) {
if (speed > 10) {
ball._y = ball._y - speed;
} else {
ball._y = ball._y - speed;
}
while (loadHere.hitTest(ball._x, ball._y, true)) {
ball._y = ball._y - 1;
}
} else {
ball._y = ball._y + (speed / 2);
}
i = 0;
while (i < currentBars.length) {
loadHere[currentBars[i]]._y = loadHere[currentBars[i]]._y - speed;
if (loadHere[currentBars[i]]._y < -20) {
loadHere[currentBars[i]].removeMovieClip();
currentBars.splice(i, 1);
}
i++;
}
if (Key.isDown(37)) {
ball._x = ball._x - (speed * 2);
}
if (Key.isDown(39)) {
ball._x = ball._x + (speed * 2);
}
if (ball._x < 20) {
ball._x = 20;
}
if (ball._x > 530) {
ball._x = 530;
}
if (ball._y > 400) {
ball._y = 400;
}
if (ball._y < 10) {
ball._y = 10;
_root.triggerLoss();
}
};
}
function callExit() {
bg.stop();
a.stop();
b.stop();
}
var counter = 0;
var bLoad = 20;
var currentBars = new Array();
p = 2;
t = 2;
r = 6;
Symbol 23 MovieClip Frame 1 (8 B)
stop();
Symbol 26 MovieClip Frame 1 (8 B)
stop();
Symbol 29 MovieClip Frame 1 (8 B)
stop();
Symbol 32 MovieClip Frame 1 (23 B)
this._visible = false;
Symbol 39 MovieClip [level5] Frame 1 (1.08 KiB) ●
function callEnter() {
onEnterFrame = function () {
ping.play();
speed = _root.speed;
a.play();
b.play();
spinner._rotation = spinner._rotation + (speed / 4);
if (Key.isDown(38)) {
spinner.point._y = spinner.point._y + speed;
}
if (Key.isDown(40)) {
spinner.point._y = spinner.point._y - speed;
}
if (spinner.point._y > -25) {
spinner.point._y = -25;
}
if (spinner.point._y < -185) {
spinner.point._y = -185;
}
if (dir == "up") {
enemy._y = enemy._y - (speed / 2);
if (enemy._y < 235) {
enemy._y = 235;
dir = "down";
}
} else {
enemy._y = enemy._y + (speed / 2);
if (enemy._y > 380) {
enemy._y = 380;
dir = "up";
}
}
if (spinner.point.hitTest(enemy.hitA)) {
_root.triggerLoss();
}
};
}
function callExit() {
ping.stop();
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var bullets = new Array();
bCounter = 0;
var goal = 1;
var bCount = 0;
var dir = "up";
p = 0;
t = 6;
r = 4;
Symbol 43 MovieClip Frame 1 (8 B)
stop();
Symbol 46 MovieClip Frame 1 (8 B)
stop();
Symbol 49 MovieClip Frame 1 (23 B)
this._visible = false;
Symbol 55 MovieClip [level10] Frame 1 (1.78 KiB) ●
function callEnter() {
onEnterFrame = function () {
speed = _root.speed / 2;
a.play();
b.play();
if (Key.isDown(37)) {
player._rotation = player._rotation - (speed * 2.5);
}
if (Key.isDown(39)) {
player._rotation = player._rotation + (speed * 2.5);
}
counter++;
if (counter >= goal) {
goal = Math.floor((1 / (speed / 1.5)) * 100) * 2;
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level10-enemy", "e" + eCounter, _root.k++);
enemies.push(eCounter);
switch (random(2)) {
case 0 :
shel._x = -20 + (random(2) * 590);
if (shel._x < 20) {
shel.xVel = 1;
shel._rotation = 90;
} else {
shel.xVel = -1;
shel._rotation = -90;
}
shel._y = 200;
shel.yVel = 0;
break;
case 1 :
shel._y = -20 + (random(2) * 440);
if (shel._y < 20) {
shel.yVel = 1;
} else {
shel.yVel = -1;
}
shel.xVel = 0;
shel._x = 275;
}
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]]._x = loadArea["e" + enemies[i]]._x + (loadArea["e" + enemies[i]].xVel * speed);
loadArea["e" + enemies[i]]._y = loadArea["e" + enemies[i]]._y + (loadArea["e" + enemies[i]].yVel * speed);
if (loadArea["e" + enemies[i]].hitTest(player.hitA)) {
loadArea["e" + enemies[i]].play();
enemies.splice(i, 1);
}
if (loadArea["e" + enemies[i]].hitTest(center.hitA)) {
_root.triggerLoss();
}
i++;
}
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
var gravity = 0.1;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var bullets = new Array();
bCounter = 0;
var goal = 1;
var bCount = 0;
p = 1;
t = 4;
r = 5;
var jumping = false;
Symbol 61 MovieClip Frame 1 (8 B)
stop();
Symbol 64 MovieClip Frame 1 (8 B)
stop();
Symbol 66 MovieClip [level9] Frame 1 (1.5 KiB) ●
function callEnter() {
onEnterFrame = function () {
speed = _root.speed;
a.play();
b.play();
if (Key.isDown(37)) {
player._x = player._x - (speed * 2);
}
if (Key.isDown(39)) {
player._x = player._x + (speed * 2);
}
if (player._x < 65) {
player._x = 65;
}
if (player._x > 485) {
player._x = 485;
}
counter++;
if (counter >= goal) {
goal = Math.floor((1 / (speed / 1.5)) * 100) * 2;
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level9-enemy", "e" + eCounter, _root.k++);
enemies.push(eCounter);
shel.speed = speed;
shel._x = random(530) + 10;
shel.yVel = 0;
shel._y = -20;
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]].yVel = loadArea["e" + enemies[i]].yVel + gravity;
loadArea["e" + enemies[i]]._y = loadArea["e" + enemies[i]]._y + loadArea["e" + enemies[i]].yVel;
loadArea["e" + enemies[i]].rot._rotation = loadArea["e" + enemies[i]].rot._rotation + 5;
if (loadArea["e" + enemies[i]].hitA.hitTest(player)) {
loadArea["e" + enemies[i]].play();
enemies.splice(i, 1);
}
if (loadArea["e" + enemies[i]]._y > 400) {
_root.triggerLoss();
}
i++;
}
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
var gravity = 0.1;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var bullets = new Array();
bCounter = 0;
var goal = 1;
var bCount = 0;
p = 7;
t = 3;
r = 0;
var jumping = false;
Symbol 70 MovieClip Frame 1 (8 B)
stop();
Symbol 73 MovieClip Frame 1 (8 B)
stop();
Symbol 78 MovieClip [level8] Frame 1 (1.67 KiB) ●
function callEnter() {
onEnterFrame = function () {
a.play();
b.play();
speed = _root.speed / 2;
if ((!jumping) && (Key.isDown(38))) {
jumping = true;
yVel = yVel - 5;
}
yVel = yVel + gravity;
player._y = player._y + yVel;
if (player._y > line._y) {
jumping = false;
player._y = line._y;
yVel = 0;
}
if (Key.isDown(37)) {
player._x = player._x - speed;
}
if (Key.isDown(39)) {
player._x = player._x + speed;
}
if (player._x < 10) {
player._x = 10;
}
if (player._x > 540) {
player._x = 540;
}
counter++;
if (counter >= goal) {
goal = Math.floor((1 / speed) * 100) * (random(4) + 1);
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level8-enemy", "e" + eCounter, _root.k++);
enemies.push(eCounter);
shel.speed = speed;
shel._x = -30;
shel._y = line._y - (shel._height / 2);
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]]._x = loadArea["e" + enemies[i]]._x + loadArea["e" + enemies[i]].speed;
loadArea["e" + enemies[i]].rot._rotation = loadArea["e" + enemies[i]].rot._rotation + 5;
if (loadArea["e" + enemies[i]].hitA.hitTest(player)) {
_root.triggerLoss();
}
if (loadArea["e" + enemies[i]]._x > 600) {
loadArea["e" + enemies[i]].removeMovieClip();
enemies.splice(i, 1);
}
i++;
}
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
var gravity = 0.3;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var bullets = new Array();
bCounter = 0;
var goal = 1;
var bCount = 0;
p = 3;
t = 5;
r = 2;
var jumping = false;
Symbol 82 MovieClip Frame 1 (8 B)
stop();
Symbol 85 MovieClip Frame 1 (8 B)
stop();
Symbol 91 MovieClip Frame 1 (8 B)
stop();
Symbol 92 MovieClip [level15] Frame 1 (1.33 KiB) ●
function callEnter() {
onEnterFrame = function () {
speed = _root.speed / 3;
a.play();
b.play();
if (yVel > 0) {
yVel = speed;
} else {
yVel = -speed;
}
if (xVel > 0) {
xVel = speed;
} else {
xVel = -speed;
}
player._y = player._y + yVel;
player._x = player._x + xVel;
if (Key.isDown(37)) {
walls.gotoAndStop(4);
}
if (Key.isDown(39)) {
walls.gotoAndStop(2);
}
if (Key.isDown(38)) {
walls.gotoAndStop(1);
}
if (Key.isDown(40)) {
walls.gotoAndStop(3);
}
if (player.hitTest(walls.block)) {
if (walls._currentframe == 1) {
yVel = Math.abs(yVel);
}
if (walls._currentframe == 2) {
xVel = -Math.abs(xVel);
}
if (walls._currentframe == 3) {
yVel = -Math.abs(yVel);
}
if (walls._currentframe == 4) {
xVel = Math.abs(xVel);
}
}
if ((((player._x > 550) || (player._x < 0)) || (player._y > 400)) || (player._y < 0)) {
_root.triggerLoss();
}
speed = _root.speed;
};
}
function callExit() {
a.stop();
b.stop();
}
xVel = random(3) + 1;
yVel = random(3) + 1;
if (xVel == 0) {
xVel++;
}
if (yVel == 0) {
yVel++;
}
counter = 0;
var eCounter = 0;
var enemies = new Array();
var bullets = new Array();
bCounter = 0;
var goal = 1;
var bCount = 0;
p = 1;
t = 7;
r = 2;
Symbol 96 MovieClip Frame 1 (8 B)
stop();
Symbol 99 MovieClip Frame 1 (8 B)
stop();
Symbol 100 MovieClip [level14] Frame 1 (2.67 KiB) ●
function callEnter() {
onEnterFrame = function () {
bCount++;
if (bCount >= Math.floor((1 / speed) * 100)) {
bulletReady = true;
}
a.play();
b.play();
counter++;
speed = _root.speed;
if (counter >= goal) {
goal = Math.floor((1 / speed) * 300);
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level14-enemy", "e" + eCounter, _root.k++);
enemies.push(eCounter);
shel._x = random(550);
shel._y = -50;
shel.lives = 2;
shel.xVel = random(6) - 3;
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]]._x = loadArea["e" + enemies[i]]._x + loadArea["e" + enemies[i]].xVel;
loadArea["e" + enemies[i]]._y = loadArea["e" + enemies[i]]._y + speed;
if (loadArea["e" + enemies[i]]._y > 550) {
loadArea["e" + enemies[i]].removeMovieClip();
enemies.splice(i, 1);
}
if (loadArea["e" + enemies[i]].hitTest(player)) {
_root.triggerLoss();
}
i++;
}
i = 0;
while (i < bullets.length) {
loadArea["b" + bullets[i]]._y = loadArea["b" + bullets[i]]._y + (-speed);
j = 0;
while (j < enemies.length) {
if (loadArea["b" + bullets[i]].hitTest(loadArea["e" + enemies[j]])) {
loadArea["e" + enemies[j]].gotoAndPlay(2);
loadArea["b" + bullets[i]].removeMovieClip();
bullets.splice(i, 1);
loadArea["e" + enemies[j]].lives--;
if (loadArea["e" + enemies[j]].lives <= 0) {
loadArea["e" + enemies[j]].gotoAndPlay(10);
loadArea["e" + enemies[j]].splice(i, 1);
}
}
j++;
}
if (loadArea["b" + bullets[i]]._y < -30) {
loadArea["b" + bullets[i]].removeMovieClip();
bullets.splice(i, 1);
}
i++;
}
if (player._y > 380) {
player._y = 380;
}
if (player._y < 20) {
player._y = 20;
}
if (player._x > 530) {
player._x = 530;
}
if (player._x < 20) {
player._x = 20;
}
if (Key.isDown(37)) {
player._x = player._x - speed;
}
if (Key.isDown(39)) {
player._x = player._x + speed;
}
if (Key.isDown(38)) {
player._y = player._y - speed;
}
if (Key.isDown(40)) {
player._y = player._y + speed;
}
if (bulletReady) {
bCount = 0;
bulletReady = false;
bCounter++;
shel = loadArea.attachMovie("level14-bullet", "b" + bCounter, _root.k++);
bullets.push(bCounter);
shel._x = player._x;
shel._y = player._y - (player._height / 2);
}
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var bullets = new Array();
bCounter = 0;
var goal = 1;
var bCount = 0;
p = 7;
t = 2;
r = 1;
Symbol 104 MovieClip Frame 1 (8 B)
stop();
Symbol 107 MovieClip Frame 1 (8 B)
stop();
Symbol 112 MovieClip [level4] Frame 1 (2.58 KiB) ●
function callEnter() {
onEnterFrame = function () {
bCount++;
a.play();
b.play();
if (bCount >= Math.floor((1 / speed) * 50)) {
bulletReady = true;
}
counter++;
speed = _root.speed;
if (counter >= goal) {
goal = Math.floor((1 / speed) * 1000);
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level4-line", "e" + eCounter, _root.k++);
enemies.push(eCounter);
switch (random(2)) {
case 0 :
shel._x = 550;
shel.xVel = 1;
break;
case 1 :
shel._x = 0;
shel.xVel = -1;
shel._rotation = 180;
}
shel._y = 390 - random(370);
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]]._x = loadArea["e" + enemies[i]]._x + (loadArea["e" + enemies[i]].xVel * ((-speed) / 8));
if (loadArea["e" + enemies[i]].hitTest(centerLine)) {
_root.triggerLoss();
}
i++;
}
i = 0;
while (i < bullets.length) {
loadArea["b" + bullets[i]]._x = loadArea["b" + bullets[i]]._x - (loadArea["b" + bullets[i]].xVel * speed);
j = 0;
while (j < enemies.length) {
if (loadArea["b" + bullets[i]].hitTest(loadArea["e" + enemies[j]])) {
loadArea["e" + enemies[j]]._x = loadArea["e" + enemies[j]]._x + ((speed * 5) * loadArea["e" + enemies[j]].xVel);
loadArea["b" + bullets[i]].removeMovieClip();
bullets.splice(i, 1);
}
j++;
}
if (loadArea["b" + bullets[i]]._x > 600) {
loadArea["b" + bullets[i]].removeMovieClip();
bullets.splice(i, 1);
}
i++;
}
if (player._y > 380) {
player._y = 380;
}
if (player._y < 20) {
player._y = 20;
}
if (player._x > 530) {
player._x = 530;
}
if (player._x < 20) {
player._x = 20;
}
if (Key.isDown(37)) {
player._xscale = -100;
}
if (Key.isDown(39)) {
player._xscale = 100;
}
if (Key.isDown(38)) {
player._y = player._y - speed;
}
if (Key.isDown(40)) {
player._y = player._y + speed;
}
if (bulletReady) {
bCount = 0;
bulletReady = false;
bCounter++;
shel = loadArea.attachMovie("level4-bullet", "b" + bCounter, _root.k++);
bullets.push(bCounter);
if (player._xscale == 100) {
shel.xVel = -1;
} else {
shel.xVel = 1;
}
shel._x = player._x + ((xVel * player._width) / 2);
shel._y = player._y;
}
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var bullets = new Array();
bCounter = 0;
var goal = 1;
var bCount = 0;
p = 7;
t = 2;
r = 1;
Symbol 116 MovieClip Frame 1 (8 B)
stop();
Symbol 119 MovieClip Frame 1 (8 B)
stop();
Symbol 122 MovieClip [level13] Frame 1 (1.59 KiB) ●
function callEnter() {
onEnterFrame = function () {
counter++;
a.play();
b.play();
speed = _root.speed;
gravity = speed * 0.2;
if (counter >= goal) {
goal = Math.floor((1 / speed) * 500);
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level13-wall", "e" + eCounter, _root.k++);
enemies.push(eCounter);
shel._x = 590;
shel._y = random(400);
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]]._x = loadArea["e" + enemies[i]]._x + (-speed);
if (loadArea["e" + enemies[i]]._x < -20) {
loadArea["e" + enemies[i]].removeMovieClip();
enemies.splice(i, 1);
}
if (loadArea["e" + enemies[i]].hitTest(player)) {
_root.triggerLoss();
}
i++;
}
if (player._x > 530) {
player._x = 530;
xVel = xVel * -1;
}
if (player._x < 20) {
player._x = 20;
xVel = xVel * -1;
}
if (player._y > 380) {
player._y = 380;
yVel = yVel * -1;
}
if (player._y < 20) {
player._y = 20;
yVel = yVel * -1;
}
if (Key.isDown(37)) {
xVel = xVel - (speed / 10);
} else if (Key.isDown(39)) {
xVel = xVel + (speed / 10);
}
if (Key.isDown(38)) {
yVel = yVel - (speed / 10);
} else if (Key.isDown(40)) {
yVel = yVel + (speed / 10);
}
player._x = player._x + xVel;
player._y = player._y + yVel;
yVel = yVel * 0.95;
xVel = xVel * 0.95;
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var goal = 1;
p = 2;
t = 4;
r = 4;
Symbol 126 MovieClip Frame 1 (8 B)
stop();
Symbol 129 MovieClip Frame 1 (8 B)
stop();
Symbol 132 MovieClip Frame 1 (8 B)
stop();
Symbol 134 MovieClip [level3] Frame 1 (1.51 KiB) ●
function callEnter() {
onEnterFrame = function () {
bg.play();
a.play();
b.play();
counter++;
speed = _root.speed;
if (counter >= goal) {
goal = Math.floor((1 / speed) * 250) + (Math.floor((1 / speed) * 50) * random(2));
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level3-pillar", "e" + eCounter, _root.k++);
enemies.push(eCounter);
shel._x = 590;
shel._y = 390 - random(200);
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]]._x = loadArea["e" + enemies[i]]._x + (-speed);
if (loadArea["e" + enemies[i]].pillTop.hitTest(player)) {
yVel = -10;
}
if (loadArea["e" + enemies[i]]._x < -20) {
loadArea["e" + enemies[i]].removeMovieClip();
enemies.splice(i, 1);
}
i++;
}
if (Key.isDown(37)) {
player._x = player._x - speed;
}
if (Key.isDown(39)) {
player._x = player._x + speed;
}
yVel = yVel + (yMov + gravity);
player._x = player._x + xVel;
player._y = player._y + yVel;
if (player._y > 420) {
_root.triggerLoss();
}
};
}
function callExit() {
bg.stop();
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var goal = 1;
var gravity = 0.3;
p = 5;
t = 5;
r = 0;
i = 0;
while (i < 6) {
eCounter++;
shel = loadArea.attachMovie("level3-pillar", "e" + eCounter, _root.k++);
enemies.push(eCounter);
shel._x = i * 91.6666666666667;
shel._y = 390 - random(200);
i++;
}
Symbol 138 MovieClip Frame 1 (8 B)
stop();
Symbol 141 MovieClip Frame 1 (8 B)
stop();
Symbol 143 MovieClip Frame 1 (23 B)
this._visible = false;
Symbol 146 MovieClip [level6] Frame 1 (3.89 KiB) ●
function callEnter() {
onEnterFrame = function () {
a.play();
b.play();
dCounter++;
if (dCounter >= dGoal) {
dCounter = 0;
k = _root.k++;
shel = loadArea.attachMovie("level6-graphix", "d" + k, k);
decor.push(k);
shel._x = random(550);
shel._y = random(400);
shel._alpha = 25;
shel._rotation = random(360);
shel._xscale = (shel._yscale = random(25) + 25);
shel.gotoAndStop(2);
}
i = 0;
while (i < decor.length) {
loadArea["d" + decor[i]]._xscale = loadArea["d" + decor[i]]._xscale - 1;
loadArea["d" + decor[i]]._yscale = loadArea["d" + decor[i]]._yscale - 1;
loadArea["d" + decor[i]]._alpha = loadArea["d" + decor[i]]._alpha - 1;
loadArea["d" + decor[i]]._y = loadArea["d" + decor[i]]._y - 1;
if (loadArea["d" + decor[i]]._alpha <= 0) {
loadArea["d" + decor[i]].removeMovieClip();
decor.splice(i, 1);
}
i++;
}
speed = _root.speed / 2;
youMaxSpeed = speed;
youSpeed = Math.min(youMaxSpeed, youSpeed + youAcc);
player._rotation = player._rotation + (((Key.isDown(39) - Key.isDown(37)) * speed) * 1.5);
xC = Math.cos((player._rotation * Math.PI) / 180) * youSpeed;
yC = Math.sin((player._rotation * Math.PI) / 180) * youSpeed;
player._x = player._x + xC;
player._y = player._y + yC;
oldX = player._x;
oldY = player._y;
if (player._rotation >= 360) {
player._rotation = player._rotation - 360;
}
if (player._rotation < 0) {
player._rotation = player._rotation + 360;
}
if (player._x >= 550) {
if ((player._rotation >= 0) && (player._rotation < 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation < 0) && (player._rotation > -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._x <= 0) {
if ((player._rotation <= 180) && (player._rotation > 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation > -180) && (player._rotation < -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._y <= 0) {
if ((player._rotation >= -180) && (player._rotation <= -90)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation >= -90) && (player._rotation <= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
if (player._y >= 400) {
if ((player._rotation >= 90) && (player._rotation <= 180)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation <= 90) && (player._rotation >= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
bCount++;
if (bCount >= Math.floor((1 / speed) * 50)) {
bulletReady = true;
}
counter++;
speed = _root.speed;
if (counter >= goal) {
goal = Math.floor((1 / speed) * 400);
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level6-enemy", "e" + eCounter, _root.k++);
enemies.push(eCounter);
shel._x = random(550);
shel._y = -20;
}
i = 0;
while (i < enemies.length) {
_root.easing("x", loadArea["e" + enemies[i]], player._x, speed * 0.004);
_root.easing("y", loadArea["e" + enemies[i]], player._y, speed * 0.004);
if (loadArea["e" + enemies[i]].hitA.hitTest(player.hitA)) {
_root.triggerLoss();
}
i++;
}
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var bullets = new Array();
var decor = new Array();
bCounter = 0;
var goal = 1;
var bCount = 0;
var rot = 0;
p = 0;
t = 2;
r = 8;
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = random(5) + 5;
player._rotation = random(360);
life = life * 50;
dCounter = 19;
dGoal = 3;
Symbol 155 MovieClip Frame 1 (8 B)
stop();
Symbol 158 MovieClip Frame 1 (8 B)
stop();
Symbol 159 MovieClip [level2] Frame 1 (2.6 KiB) ●
function callEnter() {
onEnterFrame = function () {
a.play();
b.play();
trep.sw.text = (Math.round(player._x) + ",") + Math.round(player._y);
speed = _root.speed;
counter++;
trep._x = player._x;
trep._y = player._y;
if (counter == goal) {
counter = 0;
goal = Math.floor((1 / speed) * 200);
eCounter++;
shel = loadArea.attachMovie("level2-thing", "e" + eCounter, _root.k++);
enemies.push(eCounter);
switch (random(2)) {
case 0 :
shel._x = -20 + (random(2) * 590);
if (shel._x < 20) {
shel.xVel = 1;
} else {
shel.xVel = -1;
}
shel._y = random(400);
shel.yVel = 0;
break;
case 1 :
shel._y = -20 + (random(2) * 440);
if (shel._y < 20) {
shel.yVel = 1;
} else {
shel.yVel = -1;
}
shel.xVel = 0;
shel._x = random(550);
}
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]]._x = loadArea["e" + enemies[i]]._x + (speed * loadArea["e" + enemies[i]].xVel);
loadArea["e" + enemies[i]]._y = loadArea["e" + enemies[i]]._y + (speed * loadArea["e" + enemies[i]].yVel);
if (loadArea["e" + enemies[i]].hitTest(player)) {
_root.triggerLoss();
}
if ((((loadArea["e" + enemies[i]]._x < -50) || (loadArea["e" + enemies[i]]._x > 600)) || (loadArea["e" + enemies[i]]._y < -50)) || (loadArea["e" + enemies[i]]._y > 450)) {
loadArea["e" + enemies[i]].removeMovieClip();
enemies.splice(i, 1);
}
i++;
}
speed = _root.speed;
if (player._x > 530) {
player._x = 530;
xVel = xVel * -1;
}
if (player._x < 20) {
player._x = 20;
xVel = xVel * -1;
}
if (player._y > 380) {
player._y = 380;
yVel = yVel * -1;
}
if (player._y < 20) {
player._y = 20;
yVel = yVel * -1;
}
if (Key.isDown(37)) {
xVel = xVel - (speed / 10);
} else if (Key.isDown(39)) {
xVel = xVel + (speed / 10);
}
if (Key.isDown(38)) {
yVel = yVel - (speed / 10);
} else if (Key.isDown(40)) {
yVel = yVel + (speed / 10);
}
player._x = player._x + xVel;
player._y = player._y + yVel;
yVel = yVel * 0.9;
xVel = xVel * 0.9;
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
counter = 0;
p = 1;
t = 2;
r = 7;
var eCounter = 0;
var enemies = new Array();
var goal = 1;
trep.lineStyle(0, 16777215, 20);
trep.moveTo(0, 0);
trep.lineTo(550, 0);
trep.moveTo(0, 0);
trep.lineTo(0, 400);
trep.moveTo(0, 0);
trep.lineTo(0, -400);
trep.moveTo(0, 0);
trep.lineTo(-550, 0);
trep._x = player._x;
trep._y = player._y;
Symbol 163 MovieClip Frame 1 (8 B)
stop();
Symbol 166 MovieClip Frame 1 (8 B)
stop();
Symbol 169 MovieClip [level7] Frame 1 (1.88 KiB) ●
function callEnter() {
onEnterFrame = function () {
speed = _root.speed;
counter++;
a.play();
b.play();
if (counter == goal) {
counter = 0;
goal = Math.floor((1 / speed) * 400);
eCounter++;
shel = attachMovie("level7-goal", "e" + eCounter, _root.k++);
shel._x = 100 + random(350);
shel._y = 100 + random(200);
shel._xscale = 15;
shel._yscale = shel._xscale;
enemies.push(eCounter);
}
i = 0;
while (i < enemies.length) {
this["e" + enemies[i]]._xscale = this["e" + enemies[i]]._xscale + (speed / 10);
this["e" + enemies[i]]._yscale = this["e" + enemies[i]]._yscale + (speed / 10);
tra = Math.floor((100 - this["e" + enemies[i]]._xscale) / 10);
if (tra < 0) {
tra = 0;
}
this["e" + enemies[i]].tipTop.text = tra;
if (this["e" + enemies[i]]._xscale >= 100) {
if (this["e" + enemies[i]].inside.hitTest(player)) {
this["e" + enemies[i]].play();
enemies.splice(i, 1);
} else {
_root.triggerLoss();
}
}
i++;
}
speed = _root.speed;
if (player._x > 530) {
player._x = 530;
xVel = xVel * -1;
}
if (player._x < 20) {
player._x = 20;
xVel = xVel * -1;
}
if (player._y > 380) {
player._y = 380;
yVel = yVel * -1;
}
if (player._y < 20) {
player._y = 20;
yVel = yVel * -1;
}
if (Key.isDown(37)) {
xVel = xVel - (speed / 10);
} else if (Key.isDown(39)) {
xVel = xVel + (speed / 10);
}
if (Key.isDown(38)) {
yVel = yVel - (speed / 10);
} else if (Key.isDown(40)) {
yVel = yVel + (speed / 10);
}
player._x = player._x + xVel;
player._y = player._y + yVel;
yVel = yVel * 0.9;
xVel = xVel * 0.9;
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var goal = 1;
p = 7;
t = 2;
r = 1;
Symbol 173 MovieClip Frame 1 (8 B)
stop();
Symbol 176 MovieClip Frame 1 (8 B)
stop();
Symbol 183 MovieClip Frame 1 (8 B)
stop();
Symbol 184 MovieClip [level12] Frame 1 (1.66 KiB) ●
function callEnter() {
onEnterFrame = function () {
a.play();
b.play();
speed = _root.speed;
if (Key.isDown(37)) {
pass.gotoAndStop(4);
dir = 4;
}
if (Key.isDown(39)) {
pass.gotoAndStop(2);
dir = 2;
}
if (Key.isDown(38)) {
pass.gotoAndStop(1);
dir = 1;
}
if (Key.isDown(40)) {
pass.gotoAndStop(3);
dir = 3;
}
counter++;
speed = _root.speed;
if (counter >= goal) {
goal = Math.floor((1 / speed) * 500);
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level12-boxx", "e" + eCounter, _root.k++);
shel.dir = random(4) + 1;
shel.gotoAndStop(shel.dir);
enemies.push(eCounter);
shel._x = -20;
shel._y = line._y;
shel.activ = false;
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]]._x = loadArea["e" + enemies[i]]._x + ((speed * 2) / 3);
if (loadArea["e" + enemies[i]]._x > 560) {
loadArea["e" + enemies[i]].removeMovieClip();
enemies.splice(i, 1);
}
if ((loadArea["e" + enemies[i]].activ == false) && (loadArea["e" + enemies[i]].hitTest(pass))) {
loadArea["e" + enemies[i]].activ = true;
if (loadArea["e" + enemies[i]].dir == dir) {
} else {
_root.triggerLoss();
}
}
i++;
}
};
}
function callExit() {
a.stop();
b.stop();
}
var leftLimit = 90;
var rightLimit = 460;
gravity = 0.3;
p = 0;
t = 2;
r = 8;
i = 0;
while (i < 4) {
this["ball" + i].xVel = random(6) - 3;
if (this["ball" + i].xVel == 0) {
this["ball" + i].xVel = 1;
}
this["ball" + i].yVel = 0;
i++;
}
var enemies = new Array();
var counter = 0;
var eCounter = 0;
var goal = 5;
dir = 1;
Symbol 188 MovieClip Frame 1 (8 B)
stop();
Symbol 191 MovieClip Frame 1 (8 B)
stop();
Symbol 196 MovieClip [level11] Frame 1 (1.31 KiB) ●
function callEnter() {
onEnterFrame = function () {
speed = _root.speed;
a.play();
b.play();
i = 0;
while (i < 4) {
ball = this["ball" + i];
if (i == 3) {
if (Key.isDown(37)) {
ball3._x = ball3._x - (0.5 * speed);
}
if (Key.isDown(39)) {
ball3._x = ball3._x + (0.5 * speed);
}
}
if (ball._x > 530) {
ball._x = 530;
ball.xVel = ball.xVel * -1;
}
if (ball._x < 20) {
ball._x = 20;
ball.xVel = ball.xVel * -1;
}
if (ball._y > 380) {
ball._y = 380;
ball.yVel = -15;
}
if (i != 3) {
ball._x = ball._x + (ball.xVel * (speed / 4));
}
ball.yVel = ball.yVel + gravity;
ball._y = ball._y + ball.yVel;
if (i != 3) {
xDistance = ball3._x - ball._x;
yDistance = ball3._y - ball._y;
dist = Math.sqrt((xDistance * xDistance) + (yDistance * yDistance));
if (dist < ((ball3._width / 2) + (ball._width / 2))) {
_root.triggerLoss();
}
}
i++;
}
};
}
function callExit() {
a.stop();
b.stop();
}
var leftLimit = 90;
var rightLimit = 460;
gravity = 0.3;
p = 2;
t = 5;
r = 3;
i = 0;
while (i < 4) {
this["ball" + i].xVel = random(6) - 3;
if (this["ball" + i].xVel == 0) {
this["ball" + i].xVel = 1;
}
this["ball" + i].yVel = 0;
i++;
}
Symbol 203 MovieClip Frame 1 (8 B)
stop();
Symbol 206 MovieClip Frame 1 (8 B)
stop();
Symbol 207 MovieClip [level1] Frame 1 (1.09 KiB) ●
function callEnter() {
onEnterFrame = function () {
speed = _root.speed * 1.5;
a.play();
b.play();
if (yVel > 0) {
yVel = speed;
} else {
yVel = -speed;
}
if (xVel > 0) {
xVel = speed;
} else {
xVel = -speed;
}
if (Key.isDown(37)) {
paddle._x = paddle._x - speed;
} else if (Key.isDown(39)) {
paddle._x = paddle._x + speed;
}
if (paddle._x > rightLimit) {
paddle._x = rightLimit;
}
if (paddle._x < leftLimit) {
paddle._x = leftLimit;
}
if (ball.hitTest(paddle)) {
yVel = -Math.abs(yVel);
}
if (ball._y < 0) {
yVel = yVel * -1;
}
if (ball._x > (550 - (ball._width / 2))) {
xVel = xVel * -1;
}
if (ball._x < (0 + (ball._width / 2))) {
xVel = xVel * -1;
}
if (ball._y > 400) {
_root.triggerLoss();
}
ball._x = ball._x + xVel;
ball._y = ball._y + yVel;
};
}
function callExit() {
a.stop();
b.stop();
}
var leftLimit = 90;
var rightLimit = 460;
var xVel;
var yVel;
p = 1;
t = 8;
r = 1;
xVel = _root.speed * 1.5;
yVel = _root.speed * 1.5;
Symbol 224 MovieClip [level6-bullet] Frame 1 (8 B)
stop();
Symbol 224 MovieClip [level6-bullet] Frame 20 (20 B)
spliceReady = true;
Symbol 234 MovieClip [level7-goal] Frame 1 (8 B)
stop();
Symbol 234 MovieClip [level7-goal] Frame 20 (24 B)
this.removeMovieClip();
Symbol 237 MovieClip [level9-enemy] Frame 1 (8 B)
stop();
Symbol 237 MovieClip [level9-enemy] Frame 2 (154 B)
onEnterFrame = function () {
yVel = yVel - 0.1;
this._y = this._y - yVel;
this._alpha = this._alpha - 4;
this._rotation = this._rotation + 5;
};
Symbol 237 MovieClip [level9-enemy] Frame 25 (24 B)
this.removeMovieClip();
Symbol 244 MovieClip [level10-enemy] Frame 1 (8 B)
stop();
Symbol 244 MovieClip [level10-enemy] Frame 10 (24 B)
this.removeMovieClip();
Symbol 251 MovieClip [level12-boxx] Frame 1 (8 B)
stop();
Symbol 256 MovieClip [level14-enemy] Frame 1 (8 B)
stop();
Symbol 256 MovieClip [level14-enemy] Frame 7 (17 B)
gotoAndStop (1);
Symbol 256 MovieClip [level14-enemy] Frame 17 (24 B)
this.removeMovieClip();
Symbol 259 MovieClip [level6-graphix] Frame 1 (8 B)
stop();
Symbol 274 Button (31 B)
on (release) {
_root.play();
}
Symbol 275 MovieClip Frame 1 (22 B)
stop();
act = false;
Symbol 275 MovieClip Frame 10 (8 B)
stop();
Symbol 281 Button (81 B)
on (release) {
getURL ("http://dissoluteproductions.com/index.php", "_blank");
}
Symbol 285 Button (66 B)
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 409 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0 (5.86 KiB) ● ●
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = 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", "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", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 295 MovieClip Frame 126 (19 B)
_root.nextFrame();
Symbol 296 MovieClip Frame 1 (8 B)
stop();
Instance of Symbol 295 MovieClip in Symbol 296 MovieClip Frame 1 (112 B)
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Symbol 296 MovieClip Frame 2 (19 B)
_root.nextFrame();
Symbol 307 Button (25 B)
on (release) {
play();
}
Symbol 310 Button (65 B)
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 313 Button (73 B)
on (release) {
getURL ("http://rankz.armorbot.com/grid16/", "_blank");
}
Symbol 316 Button (73 B)
on (release) {
getURL ("http://rankz.armorbot.com/grid16/", "_blank");
}
Symbol 317 Button (64 B)
on (release) {
getURL ("http://www.armorblog.com", "_blank");
}
Symbol 324 MovieClip Frame 50 (8 B)
stop();
Symbol 324 MovieClip Frame 95 (14 B)
_root.play();
Symbol 336 MovieClip Frame 1 (8 B)
stop();
Symbol 346 MovieClip Frame 155 (73 B)
_root.myStage = 4;
this.swapDepths(_root.k++);
this.removeMovieClip();
Symbol 347 MovieClip Frame 1 (903 B)
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
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;
}
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.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
cameraFrame._visible = false;
Symbol 373 Button (33 B)
on (release) {
_parent.play();
}
Symbol 377 MovieClip Frame 1 (1 KiB)
onEnterFrame = function () {
pBar.gotoAndStop(Math.round((_root.p / _root.pTotal) * 100));
tBar.gotoAndStop(Math.round((_root.t / _root.tTotal) * 100));
rBar.gotoAndStop(Math.round((_root.r / _root.rTotal) * 100));
point = {};
point.x = pBar.inPoint._x;
point.y = pBar.inPoint._y;
pBar.localToGlobal(point);
pX = point.x - _x;
pY = point.y - _y;
point = {};
point.x = tBar.inPoint._x;
point.y = tBar.inPoint._y;
tBar.localToGlobal(point);
tX = point.x - _x;
tY = point.y - _y;
point = {};
point.x = rBar.inPoint._x;
point.y = rBar.inPoint._y;
rBar.localToGlobal(point);
rX = point.x - _x;
rY = point.y - _y;
clear();
lineStyle(3, 5727707, 100);
beginFill(5727707, 20);
moveTo(rX, rY);
lineTo(tX, tY);
lineTo(pX, pY);
lineTo(rX, rY);
endFill();
multi = Math.floor(_root.speed / 5);
pPer = Math.round((_root.p / _root.pTotal) * 100) + "%";
tPer = Math.round((_root.t / _root.tTotal) * 100) + "%";
rPer = Math.round((_root.r / _root.rTotal) * 100) + "%";
};
Symbol 381 MovieClip Frame 1 (8 B)
stop();
Symbol 385 Button (878 B)
on (release) {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.finalName;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.tTime;
__rankz_send__("MjMxN2olZSVhJW4lcw==", "bWdIZUtqV2c=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
sub._x = 40000;
posted.gotoAndStop(2);
}
Symbol 391 Button (73 B)
on (release) {
getURL ("http://rankz.armorbot.com/grid16/", "_blank");
}
Symbol 395 Button (66 B)
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 398 Button (62 B)
on (release) {
stopAllSounds();
_root.gotoAndStop("game");
}
Symbol 403 Button (66 B)
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 406 Button (65 B)
on (release) {
getURL ("http://www.armorblog.com/", "_blank");
}
Symbol 408 MovieClip Frame 1 (95 B)
_root._x = 275;
_root._y = 200;
_root._xscale = 100;
_root._yscale = 100;
stopAllSounds();
Symbol 408 MovieClip Frame 126 (8 B)
stop();
Symbol 408 MovieClip Frame 170 (8 B)
stop();