Frame 1
lineStyle(8, 0, 100);
x = (score = 0);
SPACING = 220;
stop();
points = new Array(200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200);
_root.onEnterFrame = function () {
if ((x % 10) == 0) {
y = Math.random() * 200;
points.push(y);
points.shift();
}
clear();
beginFill(35071, 100);
moveTo(0, 400);
i = 0;
while (i < 11) {
lineTo((62 * i) - ((x % 10) * 6.2), points[i] + SPACING);
i++;
}
lineTo(551, 400);
lineTo(0, 400);
endFill();
beginFill(35071, 100);
moveTo(0, 0);
i = 0;
while (i < 11) {
lineTo((62 * i) - ((x % 10) * 6.2), points[i] - (SPACING / 2));
i++;
}
lineTo(551, 0);
lineTo(0, 0);
endFill();
x = x + 2;
if (SPACING > 130) {
SPACING = SPACING - 0.01;
}
i = 0;
while (i < 11) {
if (waha.hit.hitTest((62 * i) - ((x % 10) * 6.2), points[i] + SPACING, false) or waha.hit.hitTest((62 * i) - ((x % 10) * 6.2), points[i] - (SPACING / 2), false)) {
gotoAndPlay (2);
}
i++;
}
score++;
scoremon.swapDepths(1048575);
};
Instance of Symbol 15 MovieClip "waha" in Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
_y = (_y - 4);
}
if (Key.isDown(40)) {
_y = (_y + 4);
}
if (Key.isDown(37)) {
_x = (_x - 4);
}
if (Key.isDown(39)) {
_x = (_x + 4);
}
if (_x < 0) {
_x = 0;
}
if (_x > 530) {
_x = 530;
}
}
Frame 2
stop();
stopAllSounds();
_root.onEnterFrame = function () {
};
_root.clear();
Symbol 3 MovieClip [cloud1] Frame 1
onEnterFrame = function () {
_x = (_x - 25);
if (_x < -200) {
this.removeMovieClip();
}
};
Symbol 6 MovieClip [cloud2] Frame 1
onEnterFrame = function () {
_x = (_x - 32);
if (_x < -200) {
this.removeMovieClip();
}
};
Symbol 16 MovieClip Frame 1
stop();
onEnterFrame = function () {
if ((Math.random() * 100) < 1) {
this.attachMovie("cloud1", "clouds" + Math.random(), getNextHighestDepth(), {_x:700, _y:Math.random() * 370});
}
if ((Math.random() * 100) < 1) {
this.attachMovie("cloud2", "clouds2" + Math.random(), getNextHighestDepth(), {_x:700, _y:Math.random() * 370});
}
};
Symbol 24 Button
on (release) {
gotoAndStop (1);
}