Frame 1
Stage.showMenu = false;
stop();
this.onEnterFrame = function () {
var _local1 = this;
if (_local1.getBytesLoaded() < _local1.getBytesTotal()) {
Total = _local1.getBytesTotal() / 1000;
Received = _local1.getBytesLoaded() / 1000;
Percentage = (Received / Total) * 100;
_local1.loadingvar = int(Percentage) add "%";
} else {
_local1.gotoAndPlay(2);
_local1.onEnterFrame = null;
}
};
Frame 2
stop();
createEmptyMovieClip("alpha", _level0);
with (alpha) {
beginFill(0, 50);
lineStyle(1, 0, 100);
moveTo(75, 0);
lineTo(75, 400);
endFill();
}
y1 = 4;
x2 = 79;
x1 = 75;
y2 = 0;
_root.count = 2;
_root.count2 = 2;
alpha.onEnterFrame = function () {
if (_root.count <= 100) {
_root.count = _root.count + 1;
alpha.createEmptyMovieClip("intro" + _root.count, _root.count);
with (alpha["intro" + _root.count]) {
beginFill(0, 50);
lineStyle(1, 0, 100);
moveTo(75, y1);
lineTo(x2, 400);
endFill();
}
y1 = y1 + 4;
x2 = x2 + 4;
}
if (_root.count2 <= 102) {
_root.count2 = _root.count2 + 1;
alpha.createEmptyMovieClip("intro2" + _root.count2, _root.count2 + 100);
with (alpha["intro2" + _root.count2]) {
beginFill(0, 50);
lineStyle(1, 0, 100);
moveTo(x1, 0);
lineTo(475, y2);
endFill();
}
x1 = x1 + 4;
y2 = y2 + 4;
} else {
alpha.onEnterFrame = null;
stop();
_root.alphaset = 100;
xxxpre_mc.onEnterFrame = function () {
var _local1 = _root;
if (_local1.alphaset >= 0) {
_local1.alphaset = _local1.alphaset - 20;
xxxpre_mc._alpha = _local1.alphaset;
alpha._alpha = _local1.alphaset;
} else {
xxxpre_mc.onEnterFrame = null;
alpha.unloadMovie();
xxxpre_mc.unloadMovie();
nextFrame();
}
};
}
};
Frame 3
stop();
Frame 4
function moveStuff() {
var _local1 = _root;
if (Key.isDown(37)) {
_local1.ball_mc._x = _local1.ball_mc._x - _local1.ball_mcspeed;
} else if (Key.isDown(39)) {
_local1.ball_mc._x = _local1.ball_mc._x + _local1.ball_mcspeed;
}
if (_local1.ball_mc._x > (StageWidth - (_local1.ball_mc._width / 2))) {
_local1.ball_mc._x = StageWidth - (_local1.ball_mc._width / 2);
}
if (_local1.ball_mc._x < (_local1.ball_mc._width / 2)) {
_local1.ball_mc._x = _local1.ball_mc._width / 2;
}
}
function makeFloors() {
if (_root["floor" + _root.count] == null) {
_root.createEmptyMovieClip("floor" + _root.count, -16382);
with (_root["floor" + _root.count]) {
beginFill(0, 50);
lineStyle(20, 0, 100);
moveTo(-200, 0);
lineTo(720, 0);
endFill();
}
_root.createEmptyMovieClip(("drop" + _root.count) + _root.count2, -16381);
with (_root[("drop" + _root.count) + _root.count2]) {
beginFill(16777215, 50);
lineStyle(70, 16777215, 100);
moveTo(0, -10);
lineTo(0, 10);
endFill();
}
}
_root.ball_Ygoto = 0;
if (_root["floor" + _root.count]._y <= -20) {
_root["floor" + _root.count]._y = 430;
_root[("drop_x" + _root.count) + _root.count2] = Math.abs((Math.round(Math.random() * 12) * 30) + 18);
_root[("drop" + _root.count) + _root.count2]._x = _root[("drop_x" + _root.count) + _root.count2];
_root[("drop" + _root.count) + _root.count2]._y = -430;
}
_root["floor" + _root.count]._y = _root["floor" + _root.count]._y - _root.floorspeed;
_root[("drop" + _root.count) + _root.count2]._y = _root["floor" + _root.count]._y;
_root.ball_Ytemp = -_root.floorspeed;
if (_root.ball_mc._y >= 380) {
_root.ball_Ytemp = 0;
}
if (((_root["floor" + _root.count]._y <= (_root.ball_mc._y + (_root.floorspeed * 7))) && (_root["floor" + _root.count]._y >= (_root.ball_mc._y - _root.floorspeed))) && ((_root.ball_mc._x < (_root[("drop" + _root.count) + _root.count2]._x - 35)) ^ (_root.ball_mc._x > (_root[("drop" + _root.count) + _root.count2]._x + 35)))) {
_root.ball_Ygoto = _root["floor" + _root.count]._y - 20;
}
if (_root.ball_Ygoto == 0) {
_root.ball_mc._y = _root.ball_mc._y - _root.ball_Ytemp;
} else {
_root.ball_mc._y = _root.ball_Ygoto;
}
if (_root.levelup >= 210) {
_root.floorspeed = _root.floorspeed + 1;
_root.levelup = 1;
_root.keepscore = _root.keepscore + 1;
}
_root.levelup = _root.levelup + 1;
_root.scorekeep = _root.scorekeep + 1;
_root.score = _root.scorekeep * _root.floorspeed;
if (_root.ball_mc._y <= 0) {
_root.onEnterFrame = null;
unloadMovie (_root["floor" + _root.count]);
unloadMovie (_root[("drop" + _root.count) + _root.count2]);
unloadMovie (_root.ball_mc);
gotoAndPlay (4);
}
}
stop();
_root.ball_mc._y = 5;
_root.ball_mc._x = 245;
_root.levelup = 1;
_root.keepscore = 1;
_root.scorekeep = 1;
_root.floorspeed = 4;
StageWidth = 520;
_root.ball_mc.swapDepths(1);
_root.ball_mc.swapDepths(_root.ball_mc);
_root.ball_mcspeed = 20;
_root.onEnterFrame = function () {
moveStuff();
makeFloors();
};
Frame 5
stop();
Symbol 1 MovieClip Frame 30
gotoAndPlay (1);
Symbol 9 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "falldown";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
if (this.sessionvars.sessiontype != 2) {
_root.is_a_challenge = 0;
} else {
_root.is_a_challenge = 1;
}
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
_root.score = int(Number(_root.score));
if (_root.score != 0) {
this.prequestvars.score = _root.score;
} else {
this.prequestvars.score = -1;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 17 Button
on (release) {
gotoAndStop (4);
}
Symbol 30 Button
on (release) {
gotoAndStop (4);
}
Symbol 43 Button
on (release) {
gotoAndStop (3);
}
Symbol 44 Button
on (release) {
_root.gameover = 1;
}