Frame 1
function changeKey(key, textfield) {
origValue = _root.playerKeys[key];
_root[textfield] = "<b><font color=\"#FFFFFF\">Press a Key</font></b>";
keyListen = {};
keyListen.onKeyDown = function () {
if (codeToString(Key.getCode()) != undefined) {
_root.playerKeys[key] = Key.getCode();
_root[textfield] = codeToString(_root.playerKeys[key]);
_root.onMouseDown = (this.onKeyDown = null);
}
};
Key.addListener(keyListen);
_root.onMouseDown = function () {
_root.playerKeys[key] = origValue;
_root[textfield] = codeToString(_root.playerKeys[key]);
_root.onMouseDown = (keyListen.onKeyDown = null);
};
}
function showControls() {
moveLeft = codeToString(playerKeys.left);
moveRight = codeToString(playerKeys.right);
moveUp = codeToString(playerKeys.up);
moveDown = codeToString(playerKeys.down);
bullet = codeToString(playerKeys.bullet);
missile = codeToString(playerKeys.missile);
fryer = codeToString(playerKeys.flash);
laser = codeToString(playerKeys.laser);
pause = codeToString(playerKeys.pause);
}
function showOptions() {
switch (gameQual) {
case "LOW" :
qTick._x = lb._x;
break;
case "MEDIUM" :
qTick._x = mb._x;
break;
case "HIGH" :
qTick._x = hb._x;
}
switch (menuMusic) {
case true :
mTick._x = onB._x;
break;
case false :
mTick._x = offB._x;
}
oldShipColour = shipColour;
oldMenuMusic = menuMusic;
oldGameQual = gameQual;
oldCustomMusic = customMusic;
custom.gotoAndStop((_root.customMusic ? 2 : 1));
oldMusicPath = musicPath;
}
function resetControls() {
playerKeys = {left:37, right:39, up:38, down:40, bullet:32, missile:16, laser:90, flash:17, pause:80};
}
function resetOptions() {
gameQual = "MEDIUM";
musicVol = 20;
stars = 20;
menuMusic = true;
customMusic = false;
musicPath = "ie. C:\\My Music\\Song.mp3";
shipColour = 10027008 /* 0x990000 */;
}
stop();
Stage.showMenu = false;
fscommand ("trapallkeys", "true");
version = 7;
if (version < 7) {
gotoAndStop (2);
} else {
latestVersion = true;
}
_global.sw = Stage.width;
_global.sh = Stage.height;
_global.rads = (Math.PI/180);
_global.highestDepth = 1048575 /* 0x0FFFFF */;
_global.lowestDepth = -16384;
Button.prototype.useHandCursor = (Button.prototype._focusrect = false);
MovieClip.prototype.removeIfOrig = function (origName) {
if (this._name == origName) {
this._visible = false;
this._x = -this._width;
this._y = -this._height;
}
this.isOrig = this._name == origName;
};
MovieClip.prototype.hurt = function (damage) {
this.health = this.health - damage;
};
ex = 0;
_global.explode = function (x, y, size) {
ex++;
if (!size) {
size = 100;
}
_root.attachMovie("explosion", "explosion" + ex, nextDepth());
var _local2 = _root["explosion" + ex];
_local2._x = x;
_local2._y = y;
_local2._xscale = (_local2._yscale = size);
_local2._rotation = Math.random() * 360;
};
_global.randomNumber = function (min, max) {
return(min + (Math.random() * (max - min)));
};
MovieClip.prototype.clearAll = function () {
for (obs in this) {
if (typeof(this[obs]) == "movieclip") {
this[obs].removeMovieClip();
}
}
};
MovieClip.prototype.nextDepth = function (where) {
if (where == undefined) {
where = _root;
}
return(where.getNextHighestDepth());
};
_global.codeToString = function (keyCode) {
keys = ["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", "Numpad 0", "Numpad 1", "Numpad 2", "Numpad 3", "Numpad 4", "Numpad 5", "Numpad 6", "Numpad 7", "Numpad 8", "Numpad 9", "Multiply", "Add", "Numpad Enter", "Subtract", "Decimal", "Divide", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "F13", "F14", "F15", "Backspace", "Tab", "Clear", "Enter", "Shift", "Control", "Alt", "Caps Lock", "Esc", "Spacebar", "Page Up", "Page Down", "End", "Home", "Left Arrow", "Up Arrow", "Right Arrow", "Down Arrow", "Insert", "Delete", "Help", "Num Lock", "; :", "= +", "- _", "/ ?", "` ~", "[ {", "\\|", "] }", "\" '"];
codes = [65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 8, 9, 12, 13, 16, 17, 18, 20, 27, 32, 33, 34, 35, 36, 37, 38, 39, 40, 45, 46, 47, 144, 186, 187, 189, 191, 192, 219, 220, 221, 222];
for (var _local3 in codes) {
if (codes[_local3] == keyCode) {
var _local1 = keys[_local3];
return(_local1);
}
}
};
resetControls();
resetOptions();
Instance of Symbol 33 MovieClip in Frame 1
onClipEvent (load) {
function updateRate() {
rt = Math.round(((_root.getBytesLoaded() - oldBL) / checkInterval) * 10) / 10;
oldBL = _root.getBytesLoaded();
updateAfterEvent();
}
checkInterval = 500;
updateRate();
var checkRate = setInterval(updateRate, checkInterval);
}
onClipEvent (enterFrame) {
pl = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
_xscale = pl;
_parent.rate_txt.text = rt + "kb/s";
_parent.percent_txt.text = (Math.floor(pl * 10) / 10) + "%";
if ((pl == 100) && (_root.latestVersion)) {
clearInterval(checkRate);
_root.gotoAndStop("intro");
}
}
Frame 2
stop();
info_txt.text = ("It has been detected that you only have Flash Player " + version) + ". Space Infinity 2 requires at least Flash Player 7 to run.";
Instance of Symbol 49 MovieClip in Frame 2
onClipEvent (load) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateAfterEvent();
}
Frame 3
stop();
firstRun = true;
Stage.showMenu = true;
main_cm = new ContextMenu();
main_cm.hideBuiltInItems();
_root.menu = main_cm;
Frame 4
_root.clearAll();
stopAllSounds();
main_cm.customItems[0].enabled = true;
_quality = "HIGH";
stop();
ms = new Sound(music);
ms.attachSound("blade");
ms.setVolume((menuMusic ? 65 : 0));
ms.start();
ms.onSoundComplete = function () {
ms.start();
};
Instance of Symbol 93 MovieClip in Frame 4
onClipEvent (load) {
_visible = (!_parent.firstRun);
_parent.firstRun = false;
}
Instance of Symbol 105 MovieClip in Frame 5
onClipEvent (load) {
var vol = 0;
}
onClipEvent (enterFrame) {
if (_root.ms.getVolume() > 0) {
_root.ms.setVolume(50 - vol);
vol = vol + 4;
}
}
onClipEvent (keyDown) {
_root.ms.stop();
_root.gotoAndPlay("gameplay");
}
Frame 6
showOptions();
Instance of Symbol 119 MovieClip "musicSlider" in Frame 6
onClipEvent (load) {
total = 100;
defaultVal = _root.musicVol;
}
Instance of Symbol 119 MovieClip "starSlider" in Frame 6
onClipEvent (load) {
total = 35;
defaultVal = _root.stars;
}
Instance of Symbol 143 MovieClip in Frame 6
//component parameters
onClipEvent (construct) {
colour = 0;
}
Instance of Symbol 143 MovieClip in Frame 6
//component parameters
onClipEvent (construct) {
colour = 16750848 /* 0xFF9900 */;
}
Instance of Symbol 143 MovieClip in Frame 6
//component parameters
onClipEvent (construct) {
colour = 10027008 /* 0x990000 */;
}
Instance of Symbol 143 MovieClip in Frame 6
//component parameters
onClipEvent (construct) {
colour = 102;
}
Instance of Symbol 143 MovieClip in Frame 6
//component parameters
onClipEvent (construct) {
colour = 6736896 /* 0x66CC00 */;
}
Instance of Symbol 143 MovieClip in Frame 6
//component parameters
onClipEvent (construct) {
colour = 10079487 /* 0x99CCFF */;
}
Instance of Symbol 143 MovieClip in Frame 6
//component parameters
onClipEvent (construct) {
colour = 10066329 /* 0x999999 */;
}
Instance of Symbol 143 MovieClip in Frame 6
//component parameters
onClipEvent (construct) {
colour = 16711935 /* 0xFF00FF */;
}
Frame 9
showControls();
Frame 10
stop();
_quality = gameQual;
score = 0;
_root.DPTH = 5;
_root.totalEnemies = 0;
_global.player = _root.player;
starAmount = 5 + Math.round(stars);
s = 0;
while (s < starAmount) {
attachMovie("star", "star" + s, ++_root.DPTH);
s++;
}
Instance of Symbol 205 MovieClip in Frame 10
onClipEvent (load) {
_root.attachMovie("enemy", "enemy", ++DPTH);
}
Instance of Symbol 97 MovieClip in Frame 10
onClipEvent (load) {
music = new Sound(this);
if (_root.customMusic) {
trace(_root.musicPath);
music.loadSound(_root.musicPath, false);
} else {
music.attachSound("music2");
}
music.setVolume(_root.musicVol);
music.start(0, 9999999999);
music.onSoundComplete = function () {
music.start();
updateAfterEvent();
};
}
onClipEvent (enterFrame) {
if (paused) {
music.setVolume(_root.musicVol / 3);
} else {
music.setVolume(_root.musicVol);
}
}
Instance of Symbol 207 MovieClip in Frame 10
onClipEvent (enterFrame) {
if ((random(1000) == 1) && (!_root.missile_pu_present)) {
_root.attachMovie("missile_pu", "mPu" + (++mpu), ++_root.DPTH);
}
}
Instance of Symbol 139 MovieClip "player" in Frame 10
onClipEvent (load) {
function fadeBackFlame(rate) {
if (rate <= 0) {
if (backFlame._alpha > 0) {
backFlame._alpha = backFlame._alpha + rate;
}
} else if (backFlame._alpha < 100) {
backFlame._alpha = backFlame._alpha + rate;
}
}
function shootBullet() {
if (shUp) {
shUp = false;
bulletSound = new Sound();
bulletSound.attachSound("bullet");
bulletSound.start();
_root.attachMovie("normBullet", "bullet" + b, nextDepth());
}
}
function shootMissile() {
if (missileAmmo > 0) {
m++;
missileAmmo--;
_root.attachMovie("missile", "missile" + m, nextDepth());
}
}
function shootLaser() {
if (laserCharge >= 30) {
l++;
_root.attachMovie("laser", "laser" + l, nextDepth());
laserCharge = laserCharge - 30;
}
}
function flash() {
if (laserCharge >= 100) {
_root.flash.play();
_root.enemy.hurt(Number.POSITIVE_INFINITY);
laserCharge = laserCharge - 100;
}
}
friction = 0.7;
speed = 4.5;
hw = _width / 2;
hh = _height / 2;
xs = (ys = 0);
health = 100;
totalHealth = health;
keys = _root.playerKeys;
missileKeyUp = true;
flashKeyUp = true;
laserKeyup = true;
this.swapDepths(_parent.starAmount + 1);
b = 0;
m = 0;
missileAmmo = 20;
laserCharge = 0;
laserChargeRate = 0.1;
}
onClipEvent (enterFrame) {
if (!paused) {
if (Key.isDown(keys.left)) {
xs = xs - speed;
fadeBackFlame(-10);
} else if (Key.isDown(keys.right)) {
xs = xs + speed;
fadeBackFlame(15);
} else {
fadeBackFlame(-10);
}
if (Key.isDown(keys.up)) {
ys = ys - speed;
} else if (Key.isDown(keys.down)) {
ys = ys + speed;
}
xs = xs * friction;
ys = ys * friction;
this._x = this._x + xs;
this._y = this._y + ys;
_rotation = (ys / 1.7);
if (Key.isDown(keys.bullet)) {
shootBullet();
} else {
shUp = true;
}
if (Key.isDown(keys.missile) && (missileKeyUp)) {
shootMissile();
missileKeyUp = false;
}
if (!Key.isDown(keys.missile)) {
missileKeyUp = true;
}
if (Key.isDown(keys.flash) && (flashKeyUp)) {
flash();
flashKeyUp = false;
}
if (!Key.isDown(keys.flash)) {
flashKeyUp = true;
}
if (Key.isDown(keys.laser) && (laserKeyUp)) {
shootLaser();
laserKeyUp = false;
}
if (!Key.isDown(keys.laser)) {
laserKeyUp = true;
}
if (laserCharge < 100) {
laserCharge = laserCharge + laserChargeRate;
}
_root.stats.missileAmmo_txt = missileAmmo;
_root.stats.healthBar.bar._xscale = (health / totalHealth) * 100;
_root.stats.laserBar.bar._xscale = laserCharge;
if ((_x + hw) >= sw) {
_x = (sw - hw);
xs = 0;
}
if ((_x - hw) <= 0) {
_x = (0 + hw);
xs = 0;
}
if ((_y + hh) >= sh) {
_y = (sh - hh);
ys = 0;
}
if ((_y - hh) <= 0) {
_y = (0 + hh);
ys = 0;
}
}
}
Instance of Symbol 221 MovieClip "stats" in Frame 10
onClipEvent (enterFrame) {
if (!paused) {
this.swapDepths(nextDepth());
} else {
this.swapDepths(pauseMenu.getDepth() - 1);
}
}
Instance of Symbol 249 MovieClip "pauseMenu" in Frame 10
onClipEvent (load) {
_visible = false;
_global.paused = false;
pKeyDown = false;
pauseKey = _root.playerKeys.pause;
}
onClipEvent (enterFrame) {
if (Key.isDown(pauseKey)) {
if (!pDown) {
_global.paused = true;
pDown = true;
}
} else {
pDown = false;
}
_visible = paused;
if (paused) {
if (!doneSwap) {
this.swapDepths(nextDepth());
}
doneSwap = true;
_quality = "HIGH";
d = 0;
Mouse.hide();
} else {
doneSwap = false;
switch (_root.gameQual) {
case "LOW" :
qTick._x = lb._x;
break;
case "MEDIUM" :
qTick._x = mb._x;
break;
case "HIGH" :
qTick._x = hb._x;
}
this.gotoAndStop("paused");
if (!(d++)) {
_quality = _root.gameQual;
}
Mouse.show();
}
}
Symbol 6 MovieClip [star] Frame 1
function Star() {
rate = 7 + (Math.random() * 93);
_yscale = rate;
_xscale = rate;
_y = (Math.random() * sh);
_x = (sw + (Math.random() * 100));
}
new Star();
this.onEnterFrame = function () {
if (!paused) {
_x = (_x - (rate / 5));
if (_x < 0) {
new Star();
}
}
};
Symbol 10 MovieClip [enemy] Frame 1
function newEnemy() {
switch (random(enemies)) {
case 0 :
character = {speed:randomNumber(2, 7), health:40, hitPower:10, size:randomNumber(95, 120), points:3, goFrame:"standard"};
break;
case 1 :
character = {speed:randomNumber(3, 9), health:90, hitPower:20, size:randomNumber(100, 110), points:6, goFrame:"medium"};
break;
case 2 :
character = {speed:randomNumber(5, 11), health:110, hitPower:30, size:randomNumber(90, 120), points:9, goFrame:"elite"};
}
speed = character.speed;
health = character.health;
hitPower = character.hitPower;
points = character.points;
expSize = character.expSize;
if (!expSize) {
expSize = 100;
}
_yscale = character.size;
_xscale = character.size;
gotoAndStop(character.goFrame);
_y = (_height + (Math.random() * (sh - (_height * 2))));
_x = ((sw + _width) + (Math.random() * 100));
}
stop();
var enemies = 3;
newEnemy();
this.onEnterFrame = function () {
if (!paused) {
_x = (_x - speed);
if (health <= 0) {
explode(_x, _y, expSize);
_root.score = _root.score + points;
newEnemy();
}
if (_x < (-_width)) {
newEnemy();
}
if (this.hitTest(player)) {
player.hurt(hitPower);
hurt(Number.POSITIVE_INFINITY);
}
}
};
Symbol 14 MovieClip [normBullet] Frame 1
stop();
speed = 15;
_y = player._y;
_x = (player._x + (player._width / 2));
this.onEnterFrame = function () {
if (!paused) {
if (_root.enemy.hitTest(_x, _y, false) && (inactive != true)) {
_root.enemy.hurt(18);
play();
}
_x = (_x + speed);
if (_x > sw) {
removeMovieClip(this);
}
}
};
Symbol 14 MovieClip [normBullet] Frame 2
inactive = true;
Symbol 14 MovieClip [normBullet] Frame 7
removeMovieClip(this);
Symbol 17 MovieClip [explosion] Frame 3
removeMovieClip(this);
Symbol 19 MovieClip [missile_pu] Frame 1
var speed = randomNumber(4, 7);
_root.missile_pu_present = true;
_x = (sw + 30);
_y = (Math.random() * sh);
this.onEnterFrame = function () {
if (!paused) {
_x = (_x - speed);
if (_x < -30) {
_root.missile_pu_present = false;
this.removeMovieClip();
}
if (this.hitTest(player)) {
player.missileAmmo = player.missileAmmo + 3;
this.removeMovieClip();
}
}
};
Symbol 22 MovieClip [laser] Frame 1
_y = (sh / 2);
_x = player._x;
speed = 7;
this.onEnterFrame = function () {
_x = (_x + speed);
if ((_x - 50) > sw) {
this.removeMovieClip();
}
if (this.hitTest(_root.enemy)) {
_root.enemy.hurt(Number.POSITIVE_INFINITY);
}
};
Symbol 22 MovieClip [laser] Frame 12
gotoAndPlay (2);
Symbol 27 MovieClip [missile] Frame 1
function findNewTarget() {
target = _root.enemy;
}
_y = player._y;
_x = (player._x + (player._width / 2));
speed = 3;
boostOff = -10;
findNewTarget();
angle = Math.atan2(_y - target._y, _x - target._x);
_rotation = (angle / rads);
this.onEnterFrame = function () {
if (!paused) {
if (!isOrig) {
angle = Math.atan2(_y - target._y, _x - target._x);
_rotation = (angle / rads);
xs = Math.cos(angle) * speed;
ys = Math.sin(angle) * speed;
_x = (_x - (boostOff + xs));
_y = (_y - ys);
speed = speed + 0.2;
boostOff = boostOff * 0.85;
if (target.hitTest(head)) {
target.hurt(50);
explode(_x, _y);
removeMovieClip(this);
}
if (player.hitTest(head)) {
player.hurt(20);
explode(_x, _y);
removeMovieClip(this);
}
}
}
};
Symbol 49 MovieClip Frame 1
_root.cursor = this;
Mouse.hide();
this.onMouseMove = function () {
_x = _parent._xmouse;
_y = _parent._ymouse;
Mouse.hide();
updateAfterEvent();
};
Symbol 61 Button
on (rollOver) {
menuPic.gotoAndStop("play");
menuPic.show = true;
}
on (release) {
fadeOut(menuSound, 5);
gotoAndStop (1);
stopAllSounds();
}
Symbol 66 Button
on (rollOver) {
menuPic.gotoAndStop("options");
menuPic.show = true;
}
on (release) {
gotoAndStop ("options");
}
Symbol 70 Button
on (rollOver) {
menuPic.gotoAndStop("instructions");
menuPic.show = true;
}
Symbol 74 Button
on (rollOver) {
menuPic.gotoAndStop("controls");
menuPic.show = true;
}
on (release) {
gotoAndStop ("controls");
}
Symbol 78 Button
on (rollOver) {
menuPic.gotoAndStop("improvements");
menuPic.show = true;
}
on (release) {
gotoAndStop ("improvements");
}
Symbol 82 Button
on (rollOver) {
menuPic.gotoAndStop("about");
menuPic.show = true;
}
on (release) {
gotoAndStop ("about");
}
Symbol 83 MovieClip Frame 25
stop();
_root.gotoAndStop("main");
Symbol 85 MovieClip Frame 34
stop();
Symbol 86 Button
on (rollOver) {
menuPic.gotoAndStop("play");
menuPic.show = true;
}
on (release) {
nextFrame();
}
Symbol 87 Button
on (rollOver) {
menuPic.gotoAndStop("options");
menuPic.show = true;
}
on (release) {
gotoAndStop ("options");
}
Symbol 88 Button
on (rollOver) {
menuPic.gotoAndStop("controls");
menuPic.show = true;
}
on (release) {
gotoAndStop ("controls");
}
Symbol 89 Button
on (rollOver) {
menuPic.gotoAndStop("improvements");
menuPic.show = true;
}
Symbol 90 Button
on (rollOver) {
menuPic.gotoAndStop("about");
menuPic.show = true;
}
on (release) {
gotoAndStop ("about");
}
Symbol 93 MovieClip Frame 5
stop();
Symbol 97 MovieClip Frame 1
_visible = false;
Symbol 105 MovieClip Frame 90
stop();
_root.ms.stop();
_root.gotoAndPlay("gameplay");
Symbol 110 Button
on (release) {
menuMusic = oldMenuMusic;
shipColour = oldShipColour;
gameQual = oldGameQual;
customMusic = oldCustomMusic;
musicPath = oldMusicPath;
stopAllSounds();
gotoAndStop ("main");
}
Symbol 113 Button
on (release) {
stars = starSlider.value;
musicVol = musicSlider.value;
musicPath = custom.url.text;
stopAllSounds();
gotoAndStop ("main");
}
Symbol 119 MovieClip Frame 1
dragger.limits = [dragger._x, dragger._y, (dragger._x + _width) - (dragger._width / 2), dragger._y];
Instance of Symbol 118 MovieClip "dragger" in Symbol 119 MovieClip Frame 1
on (press) {
startDrag (this, false, limits[0], limits[1], limits[2], limits[3]);
}
on (release, releaseOutside) {
stopDrag();
}
onClipEvent (load) {
_x = ((_parent.defaultVal / _parent.total) * _parent.rectangle._width);
}
onClipEvent (enterFrame) {
_parent.value = (_x / _parent.rectangle._width) * _parent.total;
}
Symbol 129 Button
on (release) {
menuMusic = true;
mTick._x = onB._x;
}
Symbol 132 Button
on (release) {
menuMusic = false;
mTick._x = offB._x;
}
Symbol 137 MovieClip Frame 1
col = new Color(this);
col.setRGB(_root.shipColour);
Instance of Symbol 135 MovieClip "backFlame" in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Symbol 143 MovieClip Frame 1
col = new Color(prevBlock);
col.setRGB(colour);
this.onRelease = function () {
_root.shipColour = colour;
_parent.ship.colour.col.setRGB(_root.shipColour);
};
Symbol 146 Button
on (release) {
gameQual = "LOW";
qTick._x = lb._x;
}
Symbol 149 Button
on (release) {
gameQual = "MEDIUM";
qTick._x = mb._x;
}
Symbol 152 Button
on (release) {
gameQual = "HIGH";
qTick._x = hb._x;
}
Symbol 155 Button
on (release) {
gotoAndStop (2);
url.text = _root.musicPath;
Selection.setFocus(url);
}
Symbol 157 MovieClip Frame 1
this.onEnterFrame = function () {
_root.cursor._visible = !this.hitTest(_root._xmouse, _root._ymouse, true);
};
Symbol 162 Button
on (release) {
gotoAndStop (1);
}
Symbol 163 MovieClip Frame 1
stop();
_root.customMusic = false;
Symbol 163 MovieClip Frame 2
stop();
_root.customMusic = true;
url.text = _root.musicPath;
Symbol 167 Button
on (release) {
gotoAndStop ("main");
}
Symbol 177 Button
on (release) {
_root.changeKey("left", "moveLeft");
}
Symbol 178 Button
on (release) {
_root.changeKey("right", "moveRight");
}
Symbol 179 Button
on (release) {
_root.changeKey("up", "moveUp");
}
Symbol 180 Button
on (release) {
_root.changeKey("down", "moveDown");
}
Symbol 181 Button
on (release) {
_root.changeKey("bullet", "bullet");
}
Symbol 182 Button
on (release) {
_root.changeKey("missile", "missile");
}
Symbol 183 Button
on (release) {
_root.changeKey("flash", "fryer");
}
Symbol 184 Button
on (release) {
_root.changeKey("laser", "laser");
}
Symbol 185 Button
on (release) {
_root.changeKey("pause", "pause");
}
Symbol 205 MovieClip Frame 1
_visible = false;
Symbol 207 MovieClip Frame 1
_visible = false;
Symbol 210 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 1
stop();
Instance of Symbol 220 MovieClip "healthBar" in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
flashingPoint = 35;
i = 0;
}
onClipEvent (enterFrame) {
if (!paused) {
if (bar._xscale <= flashingPoint) {
i = i + 0.25;
_visible = (!(i % 1));
}
} else {
_visible = true;
}
}
Instance of Symbol 220 MovieClip "laserBar" in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
function recharge(rate) {
mask._xscale = mask._xscale + rate;
}
this.fill.gotoAndStop(2);
}
Symbol 229 Button
on (release) {
gotoAndStop ("sure?");
}
Symbol 231 Button
on (release) {
_root.gameQual = "LOW";
qTick._x = lb._x;
}
Symbol 232 Button
on (release) {
_root.gameQual = "MEDIUM";
qTick._x = mb._x;
}
Symbol 233 Button
on (release) {
_root.gameQual = "HIGH";
qTick._x = hb._x;
}
Symbol 237 Button
on (release) {
_global.paused = false;
}
Symbol 244 Button
on (release) {
_root.gotoAndStop("main");
_root.clearAll();
stopAllSounds();
}
Symbol 247 Button
on (release) {
_parent.gotoAndStop("paused");
}
Symbol 249 MovieClip Frame 1
stop();
Instance of Symbol 157 MovieClip "pwdTxtField" in Symbol 249 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(13)) {
if (enterDown != true) {
enterDown = true;
if (_parent.pwd.toLowerCase() == "boom") {
player.missileAmmo = Number.POSITIVE_INFINITY;
_parent.pwd = "Unlimited missiles!";
Selection.setFocus(null);
}
} else {
enterDown = false;
}
}
}
Instance of Symbol 49 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (enterFrame) {
_visible = (!_parent.pwdTxtField.hitTest(_root._xmouse, _root._ymouse, true));
}