Frame 2
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes / 1000);
totalkbytes = Math.ceil(totalbytes / 1000);
if (loadedbytes == totalbytes) {
gotoAndStop (5);
}
frame = int(loadedbytes / (totalbytes / 100));
tellTarget (_root.loader) {
gotoAndStop(_root.frame);
};
Frame 4
gotoAndPlay (1);
Frame 100
stop();
Frame 101
stop();
Frame 200
gotoAndStop (201);
Frame 201
vari = 3;
stop();
Frame 202
my_score = my_score + 1;
i = 0;
while (i <= 20) {
_root.attachMovie("smoke", "s" add i, i + 2);
_root["s" add i]._x = i * 6;
_root["s" add i]._y = -5;
_root["s" add i].me = i;
i++;
}
stop();
Symbol 1 MovieClip [tunnel1] Frame 1
_x = 450;
stageHeight = _parent.stageHeight;
stageWidth = _parent.stageWidth;
tunnelHeight = Math.round(_parent.tunnelHeight);
points = _parent.points;
speed = Math.round(_parent.speed);
landMass = stageHeight - tunnelHeight;
xint = 900 / (points - 1);
count = true;
pointsArray = [];
pointsArray[0] = _parent.startPoint;
var t = 0;
while (t < (points - 1)) {
var rand = random(landMass);
var t2 = (t + 1);
pointsArray[t2] = {x1:t2 * xint, y1:rand, x2:t2 * xint, y2:rand + tunnelHeight};
t++;
}
_parent.startPoint = {x1:0, y1:pointsArray[points - 1].y1, x2:0, y2:pointsArray[points - 1].y2};
clear();
beginFill(0, 225);
lineStyle(1, 1, 100);
lineTo(0, pointsArray[0].y1);
var x = 0;
while (x < pointsArray.length) {
lineTo(pointsArray[x].x1, pointsArray[x].y1);
x++;
}
lineTo(pointsArray[points - 1].x1, 0);
lineTo(0, 0);
moveTo(0, pointsArray[0].y2);
var z = 0;
while (z < pointsArray.length) {
lineTo(pointsArray[z].x2, pointsArray[z].y2);
z++;
}
lineTo(pointsArray[points - 1].x2, stageHeight);
lineTo(0, stageHeight);
endFill();
onEnterFrame = function () {
_x = (_x - speed);
if (((_x - speed) < -200) && (count)) {
count = false;
_parent.addSection();
}
if (_x < (-_width)) {
removeMovieClip(this);
}
};
Symbol 7 MovieClip Frame 7
gotoAndPlay (3);
Symbol 7 MovieClip Frame 8
stop();
Symbol 29 MovieClip Frame 35
gotoAndPlay (30);
Symbol 31 MovieClip Frame 1
stopAllSounds();
Symbol 31 MovieClip Frame 55
_root.play();
stop();
Symbol 32 MovieClip [chopper] Frame 1
stop();
Symbol 32 MovieClip [chopper] Frame 2
stop();
Symbol 32 MovieClip [chopper] Frame 3
setProperty(_root.presser, _y , -200);
i = 0;
ypos = 90000 /* 0x015F90 */;
stopAllSounds();
_root.helicopter.cluster.gotoAndPlay(2);
stop();
Symbol 44 Button
on (release) {
getURL ("http://www.freegameworld.net", "_parent");
}
Symbol 51 Button
on (release) {
if (Number(length(my_name)) >= 1) {
gotoAndStop (101);
} else {
status = "Please enter your name!";
}
}
Symbol 62 MovieClip Frame 1
stop();
Symbol 69 Button
on (release) {
stopAllSounds();
}
on (rollOver) {
tellTarget (side) {
gotoAndStop (2);
};
}
on (release) {
_root.gotoAndPlay(200);
}
Symbol 76 Button
on (rollOver) {
tellTarget (side) {
gotoAndStop (3);
};
tellTarget (info) {
gotoAndStop (2);
};
}
on (rollOut) {
tellTarget (info) {
gotoAndStop (1);
};
}
Symbol 81 Button
on (rollOver) {
tellTarget (side) {
gotoAndStop (4);
};
}
on (release) {
tellTarget (_root.instructions) {
gotoAndPlay (15);
};
}
Symbol 88 Button
on (rollOver) {
tellTarget (side) {
gotoAndStop (5);
};
}
on (release) {
tellTarget (_root.instructions) {
play();
};
}
Symbol 91 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 11
stop();
Symbol 94 MovieClip Frame 1
my_name = _root.my_name;
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 10
stop();
Symbol 151 MovieClip Frame 12
gotoAndStop (1);
Symbol 151 MovieClip Frame 25
somevar = random(9999);
loadVariables ("../highscores/chopperchase/get_score.php?flash=1&" add random(999), "_root.instructions");
stop();
Symbol 151 MovieClip Frame 26
gotoAndPlay (2);
Symbol 155 Button
on (press) {
stopAllSounds();
vari = "0";
tellTarget ("helicopter.chopper") {
gotoAndStop (2);
};
}
on (release) {
stopAllSounds();
vari = "1";
tellTarget ("helicopter.chopper") {
gotoAndStop (1);
};
}
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 2
tellTarget (oncoming) {
stop();
};
tellTarget (oncoming2) {
stop();
};
tellTarget (oncoming3) {
stop();
};
tellTarget (oncoming4) {
stop();
};
tellTarget (oncoming5) {
stop();
};
tellTarget (oncoming6) {
stop();
};
stop();
Symbol 190 MovieClip Frame 1
setProperty("chopper", _y , ypos);
ypos = ypos + speed;
score = Number(score) + 1;
i = 0;
while (i <= 20) {
_root.attachMovie("smoke", "s" add i, i + 2);
_root["s" add i]._x = i * 6;
_root["s" add i]._y = -5;
_root["s" add i].me = i;
i++;
}
Symbol 190 MovieClip Frame 2
if (cluster.oncoming5.hitTest((_root.helicopter._x + chopper._x) - chopper.detect._x, (_root.helicopter._y + ypos) - chopper.detect._y, true)) {
say = "M00!";
stop();
stopAllSounds();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming5.hitTest((_root.helicopter._x + chopper._x) - chopper.detect2._x, (_root.helicopter._y + ypos) - chopper.detect2._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming5.hitTest((_root.helicopter._x + chopper._x) - chopper.detect3._x, (_root.helicopter._y + ypos) - chopper.detect3._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming5.hitTest((_root.helicopter._x + chopper._x) - chopper.detect4._x, (_root.helicopter._y + ypos) - chopper.detect4._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming5.hitTest((_root.helicopter._x + chopper._x) - chopper.detect5._x, (_root.helicopter._y + ypos) - chopper.detect5._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming5.hitTest((_root.helicopter._x + chopper._x) - chopper.detect6._x, (_root.helicopter._y + ypos) - chopper.detect6._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming5.hitTest((_root.helicopter._x + chopper._x) - chopper.detect7._x, (_root.helicopter._y + ypos) - chopper.detect7._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming5.hitTest((_root.helicopter._x + chopper._x) - chopper.detect8._x, (_root.helicopter._y + ypos) - chopper.detect8._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming5.hitTest((_root.helicopter._x + chopper._x) - chopper.detect9._x, (_root.helicopter._y + ypos) - chopper.detect9._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming5.hitTest((_root.helicopter._x + chopper._x) - chopper.detect10._x, (_root.helicopter._y + ypos) - chopper.detect10._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming4.hitTest((_root.helicopter._x + chopper._x) - chopper.detect._x, (_root.helicopter._y + ypos) - chopper.detect._y, true)) {
say = "M00!";
stop();
stopAllSounds();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming4.hitTest((_root.helicopter._x + chopper._x) - chopper.detect2._x, (_root.helicopter._y + ypos) - chopper.detect2._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming4.hitTest((_root.helicopter._x + chopper._x) - chopper.detect3._x, (_root.helicopter._y + ypos) - chopper.detect3._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming4.hitTest((_root.helicopter._x + chopper._x) - chopper.detect4._x, (_root.helicopter._y + ypos) - chopper.detect4._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming4.hitTest((_root.helicopter._x + chopper._x) - chopper.detect5._x, (_root.helicopter._y + ypos) - chopper.detect5._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming4.hitTest((_root.helicopter._x + chopper._x) - chopper.detect6._x, (_root.helicopter._y + ypos) - chopper.detect6._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming4.hitTest((_root.helicopter._x + chopper._x) - chopper.detect7._x, (_root.helicopter._y + ypos) - chopper.detect7._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming4.hitTest((_root.helicopter._x + chopper._x) - chopper.detect8._x, (_root.helicopter._y + ypos) - chopper.detect8._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming4.hitTest((_root.helicopter._x + chopper._x) - chopper.detect9._x, (_root.helicopter._y + ypos) - chopper.detect9._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming4.hitTest((_root.helicopter._x + chopper._x) - chopper.detect10._x, (_root.helicopter._y + ypos) - chopper.detect10._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming3.hitTest((_root.helicopter._x + chopper._x) - chopper.detect._x, (_root.helicopter._y + ypos) - chopper.detect._y, true)) {
say = "M00!";
stop();
stopAllSounds();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming3.hitTest((_root.helicopter._x + chopper._x) - chopper.detect2._x, (_root.helicopter._y + ypos) - chopper.detect2._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming3.hitTest((_root.helicopter._x + chopper._x) - chopper.detect3._x, (_root.helicopter._y + ypos) - chopper.detect3._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming3.hitTest((_root.helicopter._x + chopper._x) - chopper.detect4._x, (_root.helicopter._y + ypos) - chopper.detect4._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming3.hitTest((_root.helicopter._x + chopper._x) - chopper.detect5._x, (_root.helicopter._y + ypos) - chopper.detect5._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming3.hitTest((_root.helicopter._x + chopper._x) - chopper.detect6._x, (_root.helicopter._y + ypos) - chopper.detect6._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming3.hitTest((_root.helicopter._x + chopper._x) - chopper.detect7._x, (_root.helicopter._y + ypos) - chopper.detect7._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming3.hitTest((_root.helicopter._x + chopper._x) - chopper.detect8._x, (_root.helicopter._y + ypos) - chopper.detect8._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming3.hitTest((_root.helicopter._x + chopper._x) - chopper.detect9._x, (_root.helicopter._y + ypos) - chopper.detect9._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming3.hitTest((_root.helicopter._x + chopper._x) - chopper.detect10._x, (_root.helicopter._y + ypos) - chopper.detect10._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming2.hitTest((_root.helicopter._x + chopper._x) - chopper.detect._x, (_root.helicopter._y + ypos) - chopper.detect._y, true)) {
say = "M00!";
stop();
stopAllSounds();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming2.hitTest((_root.helicopter._x + chopper._x) - chopper.detect2._x, (_root.helicopter._y + ypos) - chopper.detect2._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming2.hitTest((_root.helicopter._x + chopper._x) - chopper.detect3._x, (_root.helicopter._y + ypos) - chopper.detect3._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming2.hitTest((_root.helicopter._x + chopper._x) - chopper.detect4._x, (_root.helicopter._y + ypos) - chopper.detect4._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming2.hitTest((_root.helicopter._x + chopper._x) - chopper.detect5._x, (_root.helicopter._y + ypos) - chopper.detect5._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming2.hitTest((_root.helicopter._x + chopper._x) - chopper.detect6._x, (_root.helicopter._y + ypos) - chopper.detect6._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming2.hitTest((_root.helicopter._x + chopper._x) - chopper.detect7._x, (_root.helicopter._y + ypos) - chopper.detect7._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming2.hitTest((_root.helicopter._x + chopper._x) - chopper.detect8._x, (_root.helicopter._y + ypos) - chopper.detect8._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming2.hitTest((_root.helicopter._x + chopper._x) - chopper.detect9._x, (_root.helicopter._y + ypos) - chopper.detect9._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming2.hitTest((_root.helicopter._x + chopper._x) - chopper.detect10._x, (_root.helicopter._y + ypos) - chopper.detect10._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming.hitTest((_root.helicopter._x + chopper._x) - chopper.detect._x, (_root.helicopter._y + ypos) - chopper.detect._y, true)) {
say = "M00!";
stop();
stopAllSounds();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming.hitTest((_root.helicopter._x + chopper._x) - chopper.detect2._x, (_root.helicopter._y + ypos) - chopper.detect2._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming.hitTest((_root.helicopter._x + chopper._x) - chopper.detect3._x, (_root.helicopter._y + ypos) - chopper.detect3._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming.hitTest((_root.helicopter._x + chopper._x) - chopper.detect4._x, (_root.helicopter._y + ypos) - chopper.detect4._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming.hitTest((_root.helicopter._x + chopper._x) - chopper.detect._x, (_root.helicopter._y + ypos) - chopper.detect._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming.hitTest((_root.helicopter._x + chopper._x) - chopper.detect6._x, (_root.helicopter._y + ypos) - chopper.detect6._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming.hitTest((_root.helicopter._x + chopper._x) - chopper.detect7._x, (_root.helicopter._y + ypos) - chopper.detect7._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming.hitTest((_root.helicopter._x + chopper._x) - chopper.detect8._x, (_root.helicopter._y + ypos) - chopper.detect8._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming.hitTest((_root.helicopter._x + chopper._x) - chopper.detect9._x, (_root.helicopter._y + ypos) - chopper.detect9._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (cluster.oncoming.hitTest((_root.helicopter._x + chopper._x) - chopper.detect10._x, (_root.helicopter._y + ypos) - chopper.detect10._y, true)) {
say = "M00!";
stop();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
_root.my_score = score;
if (check == "1") {
speed = speed + 0.4;
}
if (check == "0") {
speed = speed - 0.3;
}
if (speed > 5) {
speed = speed - 1;
}
if (speed < -4) {
speed = speed + 1;
}
if (ypos < -115) {
crash = "dead";
stop();
stopAllSounds();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
if (ypos > 115) {
crash = "dead";
stop();
stopAllSounds();
tellTarget ("chopper") {
gotoAndPlay (3);
};
}
check = _root.vari;
setProperty("chopper", _y , ypos);
ypos = ypos + speed;
score = Number(score) + 1;
i = 0;
while (i < 21) {
trace(i);
with (_root["s" add i]) {
trace(_root["s" add i]);
if (me == 20) {
_y = ypos + 121;
} else {
next = me + 1;
trace(_root["s" add next]);
_y = _root["s" add next]._y;
}
}
i++;
}
Symbol 190 MovieClip Frame 3
gotoAndPlay (2);
Symbol 202 Button
on (release) {
_root.pass = "yellow";
_root.name = my_name;
_root.score = my_score;
somevar = random(9999);
loadVariablesNum ("../highscores/chopperchase/new_score.php?" add random(999), 0, "POST");
}
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
Symbol 209 Button
on (release) {
_root.i = 20;
stopAllSounds();
_root.gotoAndStop("menu");
}
Symbol 210 MovieClip Frame 10
stop();