Frame 1
stop();
onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndStop (2);
}
};
Frame 2
myColorTransform = {rb:"22", gb:"-93", bb:"-186"};
stop();
clearAll();
Frame 3
function makeFlower() {
_root.attachMovie("flower", "flower" + flowerCounter, flowerCounter);
_root["flower" + flowerCounter]._x = _root.player._x + 60;
_root["flower" + flowerCounter]._y = _root.player._y + 10;
flowerCounter++;
}
function makeFlowerExplosion(x, y) {
_root.attachMovie("petal1", "petal" + flowerCounter, flowerCounter);
_root["petal" + flowerCounter]._x = x;
_root["petal" + flowerCounter]._y = y;
flowerCounter++;
i = 0;
while (i < 3) {
_root.attachMovie("petal", "petal" + flowerCounter, flowerCounter);
_root["petal" + flowerCounter]._x = x;
_root["petal" + flowerCounter]._y = y;
flowerCounter++;
i++;
}
}
function makeBullet(x, y) {
_root.attachMovie("bullet", "bullet" + bulletCounter, bulletCounter);
_root["bullet" + bulletCounter]._x = x;
_root["bullet" + bulletCounter]._y = y;
bulletCounter++;
if (bulletCounter >= 75) {
bulletCounter = 50;
}
}
function makeSplash(x, scale) {
_root.attachMovie("splash", "splash" + flowerCounter, flowerCounter);
_root["splash" + flowerCounter]._x = x;
_root["splash" + flowerCounter]._y = 112.5;
_root["splash" + flowerCounter]._xscale = scale;
_root["splash" + flowerCounter]._yscale = scale;
flowerCounter++;
}
function explode(numb, x, y) {
_root.attachMovie("splosion" + numb, "splode" + flowerCounter, flowerCounter);
_root["splode" + flowerCounter]._x = x;
_root["splode" + flowerCounter]._y = y;
_root["splode" + flowerCounter]._xscale = 60;
_root["splode" + flowerCounter]._yscale = 60;
flowerCounter++;
}
function makeBaddy() {
if (wave == 1) {
Bnumber = 1;
} else if (wave == 2) {
if (random(2) == 0) {
Bnumber = 1;
} else {
Bnumber = 2;
}
} else if (wave == 3) {
if (random(2) == 0) {
Bnumber = 1;
} else if (random(2) == 0) {
Bnumber = 3;
} else {
Bnumber = 2;
}
} else if (wave == 4) {
if (random(6) == 0) {
Bnumber = 1;
} else if (random(4) >= 1) {
Bnumber = 3;
} else {
Bnumber = 2;
}
} else if (random(5) == 0) {
Bnumber = 1;
} else if (random(2) == 0) {
Bnumber = 3;
} else {
Bnumber = 2;
}
_root.attachMovie("baddy" + Bnumber, "baddy" + baddyCounter, baddyCounter);
_root["baddy" + baddyCounter]._x = 750 + random(100);
_root["baddy" + baddyCounter]._y = random(80) - 25;
baddyMax--;
baddyCounter++;
if (baddyCounter > 20) {
baddyCounter = 1;
}
}
function makeLeftCarrier() {
_root.attachMovie("baddy4", "baddy" + baddyCounter, baddyCounter);
_root["baddy" + baddyCounter]._x = -750;
_root["baddy" + baddyCounter]._y = -400;
baddyCounter++;
if (baddyCounter > 20) {
baddyCounter = 1;
}
}
function makeLeftShip() {
_root.attachMovie("baddy5", "baddy" + baddyCounter, baddyCounter);
_root["baddy" + baddyCounter]._x = -200;
_root["baddy" + baddyCounter]._y = 75;
_root["baddy" + baddyCounter].health = 25;
baddyCounter++;
if (baddyCounter > 20) {
baddyCounter = 1;
}
}
function clearAll() {
_root.globalsound.stop("engine");
_root.onEnterFrame = null;
i = 1;
while (i <= 50) {
_root["baddy" + i].removeMovieClip();
i++;
}
i = 50;
while (i <= 75) {
_root["bullet" + i].removeMovieClip();
i++;
}
}
hud.restart._visible = false;
flowerCounter = 100;
wave = 1;
baddyCounter = 1;
bulletCounter = 50;
baddyMax = 1;
timer = 50 + random(30);
scoreTimer = 90;
waveTimer = 400;
score = 0;
leftSideShip = false;
rVals = new Array("70", "102", "-116", "-116", "0", "-50", "-135", "0", "10");
gVals = new Array("-90", "-89", "-121", "0", "-251", "-50", "0", "-61", "-200");
bVals = new Array("-255", "-10", "51", "-126", "0", "-50", "0", "-200", "-200");
nextColor = 3;
bgColor = 0;
onEnterFrame = function () {
myColorTransform = {rb:rVals[bgColor], gb:gVals[bgColor], bb:bVals[bgColor]};
if (_root.player.health > 0) {
if ((!leftSideShip) && (random(100) == 0)) {
leftSideShip = true;
if (random(2) == 0) {
makeLeftCarrier();
} else {
makeLeftShip();
}
}
if (scoreTimer <= 0) {
scoreTimer = 90;
score++;
} else {
scoreTimer--;
}
if (waveTimer <= 0) {
waveTimer = 440;
wave++;
_root.hud.change.play();
baddyMax = baddyMax + 0.25;
} else {
waveTimer--;
}
if ((baddyMax > 0) && (timer < 0)) {
makeBaddy();
timer = 30 + random(30);
} else {
timer--;
}
} else {
hud.restart._visible = true;
}
};
globalsound = new Sound();
globalsound.setVolume(100);
globalsound.attachSound("engine");
globalsound.start(0, 99999);
Instance of Symbol 187 MovieClip "player" in Frame 3
onClipEvent (load) {
health = 3;
xSpeed = 0;
vSpeed = 0;
initialX = _x;
hSpeed = 0;
}
onClipEvent (enterFrame) {
if (health > 0) {
if ((Key.isDown(39) || (Key.isDown(76))) && (xSpeed < 7)) {
xSpeed = xSpeed + 1;
} else if (xSpeed > 0) {
xSpeed = xSpeed - 1;
}
if ((Key.isDown(37) || (Key.isDown(74))) && (xSpeed > -7)) {
xSpeed = xSpeed - 1;
} else if (xSpeed < 0) {
xSpeed = xSpeed + 1;
}
if ((Key.isDown(40) || (Key.isDown(75))) && (vSpeed < 6)) {
vSpeed = vSpeed + 1;
} else if (vSpeed > 0) {
vSpeed = vSpeed - 1;
}
if ((Key.isDown(38) || (Key.isDown(73))) && (vSpeed > -6)) {
vSpeed = vSpeed - 1;
} else if (vSpeed < 0) {
vSpeed = vSpeed + 1;
}
if (((_y + vSpeed) < -45) || ((_y + vSpeed) > 80)) {
vSpeed = 0;
}
_rotation = xSpeed;
} else {
vSpeed++;
_rotation = (vSpeed * 4);
}
_x = (_x + xSpeed);
if (_x > (initialX + 100)) {
hSpeed = xSpeed;
_x = (initialX + 100);
} else if (_x < initialX) {
_x = initialX;
} else {
hSpeed = 0;
}
_root._y = (-_y) + 50;
if (_root._y < 0) {
_root._y = 0;
}
_root.hud._y = -_root._y;
if (((_y >= 110) && (health <= 0)) && (!dead)) {
_root.makeSplash(_x, 200);
dead = true;
_root.score = _root.score + 25;
}
_y = (_y + vSpeed);
}
Symbol 5 MovieClip Frame 1
_visible = false;
Symbol 85 MovieClip [baddy5] Frame 1
onEnterFrame = function () {
if ((health > 0) && (this.area.hitTest(_root.player._x, _root.player._y + 5, true))) {
health = 0;
_root.player.health = 0;
}
if (health <= 0) {
gotoAndPlay (38);
onEnterFrame = function () {
_x = (_x - 3);
_x = (_x - _root.player.hSpeed);
};
}
_x = (_x - _root.player.hSpeed);
if (health <= 0) {
vSpeed++;
if (!exploded) {
_root.explode(2, _x, _y);
exploded = true;
}
}
if ((_x <= -400) || (_x > 800)) {
_root.leftSideShip = false;
this.removeMovieClip();
}
_x = (_x + 3);
};
Symbol 85 MovieClip [baddy5] Frame 37
gotoAndPlay (1);
Symbol 85 MovieClip [baddy5] Frame 38
_root.score = _root.score + 55;
_root.leftSideShip = false;
Symbol 85 MovieClip [baddy5] Frame 100
onEnterFrame = function () {
_x = (_x - 5);
_x = (_x - _root.player.hSpeed);
};
Symbol 85 MovieClip [baddy5] Frame 252
this.removeMovieClip();
Symbol 94 MovieClip [flower] Frame 1
gotoAndStop(random(4) + 2);
onEnterFrame = function () {
_x = (_x + 18);
if (_x > 700) {
this.removeMovieClip();
}
i = 1;
while (i <= 20) {
if (_root["baddy" + i].area.hitTest(this._x, this._y, true)) {
_root.makeFlowerExplosion(_x, _y);
_root["baddy" + i].health--;
_root.score = _root.score + 1;
this.removeMovieClip();
}
i++;
}
i = 50;
while (i <= 75) {
if (_root["bullet" + i].hitTest(this)) {
_root.makeFlowerExplosion(_x, _y);
_root["bullet" + i].dead = true;
_root.score = _root.score + 5;
this.removeMovieClip();
}
i++;
}
_x = (_x - _root.player.hSpeed);
};
Symbol 109 MovieClip [splosion1] Frame 1
onEnterFrame = function () {
_x = (_x - _root.player.hSpeed);
};
_root.globalsound.attachSound("explosion");
_root.globalsound.start(0, 1);
Symbol 109 MovieClip [splosion1] Frame 34
this.removeMovieClip();
Symbol 110 MovieClip [splosion2] Frame 1
onEnterFrame = function () {
_x = (_x - _root.player.hSpeed);
};
globalsound = new Sound();
globalsound.attachSound("explosion");
globalsound.start(0, 1);
Symbol 110 MovieClip [splosion2] Frame 40
this.removeMovieClip();
Symbol 112 MovieClip Frame 1
_visible = false;
Symbol 120 MovieClip [baddy4] Frame 1
onEnterFrame = function () {
if (!setAll) {
_x = -50;
_y = -50;
health = 8;
vSpeed = 0;
setAll = true;
}
if ((health > 0) && (this.area.hitTest(_root.player.area))) {
health = 0;
_root.player.health = 0;
}
_x = (_x - _root.player.hSpeed);
if (health <= 0) {
vSpeed++;
if (!exploded) {
_root.explode(2, _x, _y);
exploded = true;
}
}
_y = (_y + vSpeed);
_x = (_x + 2);
if (((_y >= 110) && (health <= 0)) && (!dead)) {
_root.makeSplash(_x, 200);
dead = true;
_root.score = _root.score + 35;
}
if (((_y > 200) || (_x > 1000)) || (_x <= -100)) {
_root.leftSideShip = false;
this.removeMovieClip();
}
};
Symbol 121 MovieClip [baddy3] Frame 1
onEnterFrame = function () {
if (!setAll) {
health = 8;
vSpeed = 0;
setAll = true;
}
if ((health > 0) && (this.area.hitTest(_root.player.area))) {
health = 0;
_root.player.health = 0;
}
_x = (_x - _root.player.hSpeed);
if (health <= 0) {
vSpeed++;
if (!exploded) {
_root.explode(2, _x, _y);
exploded = true;
}
}
_y = (_y + vSpeed);
_x = (_x - 1);
_rotation = ((-vSpeed) * 5);
if (((_y >= 110) && (health <= 0)) && (!dead)) {
_root.makeSplash(_x, 200);
dead = true;
_root.score = _root.score + 25;
}
if (((_y > 200) || (_x < -100)) || (_x > 1000)) {
_root.baddyMax++;
this.removeMovieClip();
}
};
Symbol 124 MovieClip [baddy2] Frame 1
onEnterFrame = function () {
if (!setAll) {
shootingTimer = 0;
health = 6;
vSpeed = 0;
setAll = true;
}
if ((health > 0) && (this.area.hitTest(_root.player.area))) {
health = 0;
_root.player.health = 0;
}
if (shootingTimer <= 0) {
_root.globalsound.attachSound("fire");
_root.globalsound.start(0, 1);
_root.makeBullet(_x - 50, _y + 20);
shootingTimer = 50;
} else {
shootingTimer--;
}
_x = (_x - _root.player.hSpeed);
if (health <= 0) {
vSpeed++;
if (!exploded) {
_root.explode(2, _x, _y);
exploded = true;
}
}
_y = (_y + vSpeed);
_x = (_x - 3);
_rotation = ((-vSpeed) * 5);
if (((_y >= 110) && (health <= 0)) && (!dead)) {
_root.makeSplash(_x, 120);
dead = true;
_root.score = _root.score + 16;
}
if (((_y > 200) || (_x < -100)) || (_x > 1000)) {
_root.baddyMax++;
this.removeMovieClip();
}
};
Symbol 127 MovieClip [baddy1] Frame 1
onEnterFrame = function () {
if (!setAll) {
health = 4;
vSpeed = 0;
setAll = true;
}
if ((health > 0) && (this.area.hitTest(_root.player.area))) {
health = 0;
_root.player.health = 0;
}
_x = (_x - _root.player.hSpeed);
if (health <= 0) {
vSpeed++;
if (!exploded) {
_root.explode(2, _x, _y);
exploded = true;
}
}
_y = (_y + vSpeed);
_x = (_x - 5);
_rotation = ((-vSpeed) * 5);
if (((_y >= 110) && (health <= 0)) && (!dead)) {
_root.makeSplash(_x, 100);
dead = true;
_root.score = _root.score + 10;
}
if (((_y > 200) || (_x < -100)) || (_x > 1000)) {
_root.baddyMax++;
this.removeMovieClip();
}
};
Symbol 129 MovieClip [petal] Frame 1
_rotation = random(360);
gravity = (random(10) + 1) * 0.05;
timer = random(10) + 20;
hSpeed = random(5) - 2;
vSpeed = -random(3);
onEnterFrame = function () {
timer--;
if (timer <= 0) {
_alpha = (_alpha - 10);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
vSpeed = vSpeed + gravity;
_x = (_x + hSpeed);
_y = (_y + vSpeed);
_x = (_x - _root.player.hSpeed);
};
Symbol 131 MovieClip [petal1] Frame 1
_rotation = random(360);
gravity = (random(10) + 1) * 0.05;
timer = random(10) + 20;
hSpeed = random(5) - 2;
vSpeed = -random(3);
onEnterFrame = function () {
timer--;
if (timer <= 0) {
_alpha = (_alpha - 10);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
vSpeed = vSpeed + gravity;
_x = (_x + hSpeed);
_y = (_y + vSpeed);
_x = (_x - _root.player.hSpeed);
};
Symbol 133 MovieClip Frame 6
stop();
Symbol 134 MovieClip [bullet] Frame 1
grav = 1;
onEnterFrame = function () {
if (!dead) {
_x = (_x - 6);
if (_root.player.area.hitTest(_x, _y)) {
_root.explode(1, _x, _y);
_root.player.health--;
this.removeMovieClip();
}
if (_x < -20) {
this.removeMovieClip();
}
} else {
_y = (_y + grav);
grav++;
if (_y > 112) {
_root.makeSplash(_x, 50);
this.removeMovieClip();
}
}
_x = (_x - _root.player.hSpeed);
};
Symbol 143 MovieClip [splash] Frame 1
onEnterFrame = function () {
_x = (_x - _root.player.hSpeed);
};
Symbol 143 MovieClip [splash] Frame 15
this.removeMovieClip();
stop();
Symbol 151 MovieClip Frame 1
myColor = new Color(this);
onEnterFrame = function () {
myColor.setTransform(_root.myColorTransform);
};
Symbol 154 MovieClip Frame 1
myColor = new Color(this);
onEnterFrame = function () {
myColor.setTransform(_root.myColorTransform);
_x = (_x - ((_root.player.hSpeed + 15) * 0.8));
if (_x < (-(_width - 2))) {
_x = (_x + ((_width - 2) * 3));
}
if (_x > ((_width - 2) * 2)) {
_x = (_x - ((_width - 2) * 3));
}
};
Symbol 158 Button
on (release) {
gotoAndStop (3);
}
Symbol 175 MovieClip Frame 1
onEnterFrame = function () {
_x = (_x - (_root.player.hSpeed + 9));
if (_x < (-(_width - 2))) {
_x = (_x + ((_width - 2) * 5));
}
};
Symbol 185 MovieClip Frame 1
stop();
onEnterFrame = function () {
if ((Key.isDown(32) || (Key.isDown(65))) || (Key.isDown(83))) {
play();
onEnterFrame = null;
}
if (_root.player.health <= 0) {
onEnterFrame = null;
}
};
Symbol 185 MovieClip Frame 4
_root.makeFlower("side");
_root.globalsound.attachSound("fire");
_root.globalsound.start(0, 1);
Symbol 185 MovieClip Frame 8
_root.makeFlower("side");
_root.globalsound.attachSound("fire");
_root.globalsound.start(0, 1);
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 6
_root.bgColor++;
if (_root.bgColor == 9) {
_root.bgColor = 0;
}
Symbol 214 MovieClip Frame 1
stop();
Symbol 220 Button
on (release) {
getURL ("http://www.synj.net", "_blank", "GET");
}
Symbol 223 Button
on (release) {
_root.gotoAndStop(2);
}
Instance of Symbol 214 MovieClip in Symbol 227 MovieClip Frame 1
onClipEvent (enterFrame) {
score = String(_root.score);
if (score.length >= 6) {
gotoAndStop(int(score.substr(score.length - 6, 1)) + 1);
}
}
Instance of Symbol 214 MovieClip in Symbol 227 MovieClip Frame 1
onClipEvent (enterFrame) {
score = String(_root.score);
if (score.length >= 5) {
gotoAndStop(int(score.substr(score.length - 5, 1)) + 1);
}
}
Instance of Symbol 214 MovieClip in Symbol 227 MovieClip Frame 1
onClipEvent (enterFrame) {
score = String(_root.score);
if (score.length >= 4) {
gotoAndStop(int(score.substr(score.length - 4, 1)) + 1);
}
}
Instance of Symbol 214 MovieClip in Symbol 227 MovieClip Frame 1
onClipEvent (enterFrame) {
score = String(_root.score);
if (score.length >= 3) {
gotoAndStop(int(score.substr(score.length - 3, 1)) + 1);
}
}
Instance of Symbol 214 MovieClip in Symbol 227 MovieClip Frame 1
onClipEvent (enterFrame) {
score = String(_root.score);
if (score.length >= 2) {
gotoAndStop(int(score.substr(score.length - 2, 1)) + 1);
}
}
Instance of Symbol 214 MovieClip in Symbol 227 MovieClip Frame 1
onClipEvent (enterFrame) {
score = String(_root.score);
if (score.length >= 1) {
gotoAndStop(int(score.substr(score.length - 1, 1)) + 1);
}
}
Instance of Symbol 214 MovieClip in Symbol 227 MovieClip Frame 1
onClipEvent (enterFrame) {
score = String(_root.wave);
if (score.length >= 3) {
gotoAndStop(int(score.substr(score.length - 3, 1)) + 1);
}
}
Instance of Symbol 214 MovieClip in Symbol 227 MovieClip Frame 1
onClipEvent (enterFrame) {
score = String(_root.wave);
if (score.length >= 2) {
gotoAndStop(int(score.substr(score.length - 2, 1)) + 1);
}
}
Instance of Symbol 214 MovieClip in Symbol 227 MovieClip Frame 1
onClipEvent (enterFrame) {
score = String(_root.wave);
if (score.length >= 1) {
gotoAndStop(int(score.substr(score.length - 1, 1)) + 1);
}
}