Frame 1
stop();
Instance of Symbol 53 MovieClip in Frame 1
onClipEvent (load) {
_root.fullSize = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
var ratio = (_root.getBytesLoaded() / _root.fullSize);
this._xscale = 100 * ratio;
if (ratio == 1) {
_root.play();
}
}
Instance of Symbol 53 MovieClip in Frame 82
onClipEvent (load) {
_root.fullSize = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
var ratio = (_root.getBytesLoaded() / _root.fullSize);
this._xscale = 100 * ratio;
if (ratio == 1) {
_root.play();
}
}
Frame 164
var objMenu = new Menu();
var astroControl = new Astronaut();
_root.iCount = 0;
_root.frameSkips = 0;
_root.rotSpeed = 0;
_root.selected = 0;
Mouse.show();
Instance of Symbol 62 MovieClip "mc_instruct" in Frame 164
on (release) {
if (_root.instructionsOpen != true) {
_root.instruct.gotoAndPlay("show");
_root.instructionsOpen = true;
} else {
_root.instruct.play();
_root.instructionsOpen = false;
}
}
Instance of Symbol 64 MovieClip "mc_play" in Frame 164
on (release) {
if (_root.instructionsOpen != true) {
_root.play();
} else {
_root.instruct.play();
_root.instructionsOpen = false;
}
}
Frame 183
var starGenerator = _root.createEmptyMovieClip("starGenerator", this.getNextHighestDepth());
_root.onEnterFrame = function () {
myAlpha = "75";
myFrameWait = 20;
_root.frameSkips++;
if ((_root.frameSkips % myFrameWait) == 0) {
_root.iCount = (_root.iCount % 5) + 1;
var _local4 = "starPanSpin_mc" + _root.iCount;
var _local3 = _root.attachMovie("starPanSpin", _local4, this.getNextHighestDepth());
_local3._y = 100;
_local3._x = _root._width;
_local3._alpha = myAlpha;
_local3.gotoAndPlay(1);
_local3.onEnterFrame = function () {
this._alpha--;
};
}
};
mc_instruct.onRollOver = function () {
objMenu.makeBig(this);
};
mc_play.onRollOver = function () {
objMenu.makeBig(this);
};
mc_instruct.onRollOut = function () {
objMenu.makeNormal(this, 100);
};
mc_play.onRollOut = function () {
objMenu.makeNormal(this, 100);
};
stop();
Frame 184
iMike.gotoAndStop("Mike");
iSpence.gotoAndStop("Spence");
iGant.onRollOver = function () {
objMenu.makeBig(this);
};
iMike.onRollOver = function () {
objMenu.makeBig(this);
};
iSpence.onRollOver = function () {
objMenu.makeBig(this);
};
iGant.onRollOut = function () {
objMenu.makeNormal(this, 23);
};
iMike.onRollOut = function () {
objMenu.makeNormal(this, 23);
};
iSpence.onRollOut = function () {
objMenu.makeNormal(this, 23);
};
stop();
Instance of Symbol 90 MovieClip "iGant" in Frame 184
on (release) {
_root.selected = "Gant";
_root.onEnterFrame = function () {
};
_root.objMenu.fadeOut(_root.iSpence);
_root.objMenu.fadeOut(_root.iMike);
_root.play();
}
Instance of Symbol 90 MovieClip "iSpence" in Frame 184
on (release) {
_root.selected = "Spence";
_root.onEnterFrame = function () {
};
_root.objMenu.fadeOut(_root.iGant);
_root.objMenu.fadeOut(_root.iMike);
_root.play();
}
Instance of Symbol 90 MovieClip "iMike" in Frame 184
on (release) {
_root.selected = "Mike";
_root.onEnterFrame = function () {
};
_root.objMenu.fadeOut(_root.iSpence);
_root.objMenu.fadeOut(_root.iGant);
_root.play();
}
Frame 223
iCharacter.gotoAndStop(_root.selected);
Mouse.hide();
stopAllSounds();
Frame 242
iChris.chrisHead.gotoAndStop("mad");
Frame 267
iChris.chrisHead.gotoAndPlay("yell");
Frame 305
iChris.cLegs.stop();
iChris.gotoAndPlay("throw");
Frame 323
iCharacter.gotoAndStop(_root.selected);
Frame 523
mainChar.iCharacter.gotoAndStop(_root.selected);
var astroControl = new Astronaut();
_root.gcMain.startGame();
_root.bulletMon.gotoAndStop("full");
Mouse.hide();
stop();
Instance of Symbol 126 MovieClip "mainChar" in Frame 523
onClipEvent (enterFrame) {
var myCharacter = _root.mainChar;
if (Key.isDown(37)) {
myCharacter._rotation = myCharacter._rotation - _root.rotSpeed;
}
if (Key.isDown(39)) {
var newRot = (myCharacter._rotation + _root.rotSpeed);
myCharacter._rotation = newRot;
}
if (Key.isDown(38)) {
_root.astroControl.applyThrust(myCharacter._rotation);
myCharacter.myFire._alpha = 100;
} else {
myCharacter.myFire._alpha = 0;
}
_root.astroControl.applyFriction();
myCharacter._x = _root.astroControl.getNextXPos(myCharacter._x);
myCharacter._y = _root.astroControl.getNextYPos(myCharacter._y);
if (Key.isDown(32)) {
var curPos = (new flash.geom.Point(myCharacter._x, myCharacter._y));
_root.bulletMon.fire(curPos, myCharacter._rotation);
} else {
_root.bulletMon.ready();
}
if (Key.isDown(8)) {
var middle = (new flash.geom.Point(Stage.width / 2, Stage.height / 2));
_root.gcMain.generatePowerup(middle);
}
}
Frame 524
_root.deadAstro.gotoAndStop("fullDead");
var loseSound;
loseSound = new Sound(_root.deadAstro);
loseSound.attachSound("youLose");
loseSound.start();
Mouse.show();
Frame 620
_root.lastLevel = _root.currentLevel;
stop();
Frame 621
Mouse.show();
stopAllSounds();
var winSongSound;
winSongSound = new Sound(this);
winSongSound.attachSound("winSong");
winSongSound.duration;
winSongSound.start(0, 99);
stop();
Symbol 5 MovieClip [starPanSpin] Frame 61
this.removeMovieClip();
Symbol 7 MovieClip [Bullet] Frame 1
#initclip 20
Object.registerClass("Bullet", Bullet);
#endinitclip
stop();
Symbol 7 MovieClip [Bullet] Frame 10
this.removeMovieClip();
Symbol 14 MovieClip [furryEnemy] Frame 1
#initclip 16
Object.registerClass("furryEnemy", Enemy);
#endinitclip
stop();
Symbol 14 MovieClip [furryEnemy] Frame 8
stop();
this.removeMovieClip();
Symbol 14 MovieClip [furryEnemy] Frame 16
stop();
this.removeMovieClip();
Symbol 14 MovieClip [furryEnemy] Frame 24
stop();
this.removeMovieClip();
Symbol 20 MovieClip [mcStages] Frame 1
#initclip 17
Object.registerClass("mcStages", GameControl);
#endinitclip
Symbol 20 MovieClip [mcStages] Frame 101
this._alpha = 0;
stop();
Symbol 29 MovieClip [bulletMon] Frame 1
#initclip 18
Object.registerClass("bulletMon", BulletManager);
#endinitclip
Symbol 29 MovieClip [bulletMon] Frame 100
stop();
Symbol 45 MovieClip [Powerup] Frame 1
#initclip 19
Object.registerClass("Powerup", Powerup);
#endinitclip
stop();
Symbol 45 MovieClip [Powerup] Frame 2
stop();
Symbol 45 MovieClip [Powerup] Frame 3
stop();
Symbol 45 MovieClip [Powerup] Frame 4
stop();
Symbol 45 MovieClip [Powerup] Frame 5
stop();
Symbol 45 MovieClip [Powerup] Frame 6
stop();
Symbol 45 MovieClip [Powerup] Frame 21
_root.removeMovieClip(this);
stop();
Symbol 148 MovieClip [__Packages.Enemy] Frame 0
class Enemy extends MovieClip
{
var maxShapes, dive, eHealth, eLocation, _x, _y, gotoAndStop, alive, play, eSpeed;
function Enemy () {
super();
maxShapes = 3;
dive = 5;
eHealth = 100;
eLocation = new flash.geom.Point(_x, _y);
isAlive = (true);
_x = -500;
_y = -500;
var _local3 = Math.ceil(Math.random() * maxShapes);
gotoAndStop("furry" + _local3);
}
function onEnterFrame() {
var _local3 = new flash.geom.Point(_root.mainChar._x, _root.mainChar._y);
advanceAttack(_local3);
}
function struck(damage) {
eHealth = eHealth - damage;
if ((eHealth <= 0) && (alive == true)) {
isAlive = (false);
}
}
function set isAlive(status) {
if (status == true) {
alive = true;
} else {
_root.enemiesDestroyed++;
alive = false;
play();
_root.gcMain.randomPowerup(eLocation);
}
//return(isAlive);
}
function get isAlive() {
return(alive);
}
function advanceAttack(myDestination) {
var _local2 = new flash.geom.Point();
_local2 = flash.geom.Point.interpolate(eLocation, myDestination, eSpeed);
moveMe(_local2);
}
function moveMe(newPos) {
_x = newPos.x;
_y = newPos.y;
eLocation = newPos.clone();
}
function debugPoint(myPoint) {
trace(myPoint.x);
trace(myPoint.y);
}
}
Symbol 149 MovieClip [__Packages.GameControl] Frame 0
class GameControl extends MovieClip
{
var enemList, enemyFactory, powerupFrequency, levelManager, myTimer, mainGuy, _alpha, gotoAndPlay, myLevel;
function GameControl () {
super();
enemList = new Array();
enemyFactory = Array();
powerupFrequency = 0.4;
levelManager = new LevelManager();
myTimer = new FlashTimer();
mainGuy = _root.astroControl;
flushEnemies();
}
function onEnterFrame() {
playerHitCheck();
myTimer.runTimeCheck();
levelManager.checkLevelStatus(this);
if (_alpha != 100) {
eFactoryUpdate();
}
_root.eCount.enemsLeft = enemyCount();
_root.mc_powered._alpha = ((myTimer.numRunners() == 0) ? 0 : 100);
}
function spawnEnemy() {
var newDepth = _root.getNextHighestDepth();
var enemyName = ("enemy" + newDepth);
var speedPerLevel = (0.996 - (levelManager.currentLevel / 1000));
_root.attachMovie("furryEnemy", enemyName, newDepth, {eSpeed:speedPerLevel});
enemList.push(enemyName);
var spawnPoint = getRandomSpawnPoint();
with (eval ("_root." + enemyName)) {
eLocation = spawnPoint;
}
}
function generatePowerup(startingPoint) {
var _local2 = _root.getNextHighestDepth();
var _local3 = "pUp" + _local2;
_root.attachMovie("Powerup", _local3, _local2, {startPos:startingPoint});
}
function startGame() {
displayLevel();
}
function hitPowerup(doPowerup) {
switch (doPowerup) {
case "speed" :
myTimer.timeTask("_root.astroControl.jetForce", 7, 3000);
break;
case "fire" :
myTimer.timeTask("_root.bulletMon.bulCost", 3, 5000);
break;
case "power" :
myTimer.timeTask("_root.bulBam", 3, 5000);
break;
case "omnibomb" :
var _local3 = new flash.geom.Point(_root.mainChar._x, _root.mainChar._y);
_root.bulletMon.omniBomb(_local3);
break;
case "friction" :
myTimer.timeTask("_root.astroControl.friction", 0.7, 7000);
break;
case "reverse" :
myTimer.timeTask("_root.astroControl.jetForce", -1 * _root.astroControl.jetForce, 5000);
break;
case "thin" :
myTimer.timeTask("_root.mainChar._xscale", 1, 8500);
break;
case "destroy" :
screenWipe();
}
}
function randomPowerup(eLocation) {
if (Math.random() < powerupFrequency) {
_root.gcMain.generatePowerup(eLocation);
}
}
function playerHitCheck() {
var icount;
var curEnemy;
icount = 0;
while (icount < enemList.length) {
curEnemy = eval ("_root." + enemList[icount]);
if (curEnemy.hitTest(_root.mainChar._x, _root.mainChar._y, true)) {
_root.astroControl.health = _root.astroControl.health - 15;
if ((_root.astroControl.health <= 0) && (_root.astroControl.isAlive == true)) {
killPlayer();
}
}
icount++;
}
}
function killPlayer() {
screenHide();
_root.astroControl.isAlive = false;
_root.mainChar.iCharacter.gotoAndPlay("dead");
enemyFactory = new Array();
clearLevelData();
}
function screenWipe() {
var _local3 = 0;
while (_local3 < enemList.length) {
var _local4 = String(enemList[_local3]);
_root[_local4].struck(1000);
_local3++;
}
}
function screenHide() {
var _local3 = 0;
while (_local3 < enemList.length) {
var _local4 = String(enemList[_local3]);
_root[_local4]._alpha = 0;
_local3++;
}
}
function enemyCount() {
return(levelManager.__get__curTotalEnemies() - _root.enemiesDestroyed);
}
function eFactoryUpdate() {
var _local8 = enemList.length - _root.enemiesDestroyed;
var _local6 = enemyFactory.length;
if ((_local8 + _local6) != levelManager.__get__curESimul()) {
if ((enemList.length + _local6) < levelManager.__get__curTotalEnemies()) {
if (_root.astroControl.isAlive == true) {
var _local7 = 1000;
var _local9 = getTimer() + ((Math.random() * _local7) * levelManager.__get__curDelayMax());
enemyFactory.push(_local9);
}
}
}
var _local5 = new Array();
var _local3 = 0;
while (_local3 < enemyFactory.length) {
var _local4 = enemyFactory[_local3];
if (_local4 < getTimer()) {
spawnEnemy();
} else {
_local5.push(_local4);
}
_local3++;
}
enemyFactory = _local5;
}
function flushEnemies() {
_root.enemiesDestroyed = 0;
enemList = new Array();
}
function clearLevelData() {
flushEnemies();
myTimer.runFlush();
}
function displayLevel() {
_alpha = 100;
gotoAndPlay(1);
myLevel = levelManager.currentLevel;
}
function getRandomSpawnPoint() {
var _local2 = 300;
var _local1 = new flash.geom.Point();
var _local3 = Math.ceil(Math.random() * 4);
switch (_local3) {
case 1 :
_local1.x = 0;
_local1.y = Stage.height * Math.random();
break;
case 2 :
_local1.x = Stage.width + _local2;
_local1.y = Stage.height * Math.random();
break;
case 3 :
_local1.x = Stage.width * Math.random();
_local1.y = 0;
break;
case 4 :
_local1.x = Stage.width * Math.random();
_local1.y = Stage.height + _local2;
}
return(_local1);
}
function checkEnemHits(original, bullPower) {
var collision = false;
var icount;
var curEnemy;
icount = 0;
while (icount < enemList.length) {
curEnemy = eval ("_root." + enemList[icount]);
if (curEnemy.hitTest(original)) {
collision = true;
curEnemy.struck(bullPower);
}
icount++;
}
return(collision);
}
}
Symbol 150 MovieClip [__Packages.LevelManager] Frame 0
class LevelManager
{
var currentLevel, levels;
function LevelManager () {
currentLevel = 1;
_root.currentLevel = 1;
setLevels();
}
function get curESimul() {
return(levels[0].sameTimeEnemies);
}
function get curDelayMax() {
return(levels[0].eDelayMax);
}
function get curTotalEnemies() {
return(levels[0].totalEnemies);
}
function checkLevelStatus(gameControl) {
var _local3 = _root.enemiesDestroyed;
if (_local3 == levels[0].totalEnemies) {
if (levelUp(gameControl)) {
gameControl.clearLevelData();
gameControl.displayLevel();
} else {
_root.gotoAndPlay("youWin");
}
}
}
function levelUp() {
levels.shift();
currentLevel++;
_root.currentLevel = currentLevel;
return(levels.length != 0);
}
function setLevels() {
levels = Array();
var _local11 = new Level(3, 1, 1);
levels.push(_local11);
var _local10 = new Level(9, 2, 4);
levels.push(_local10);
var _local9 = new Level(10, 4, 5);
levels.push(_local9);
var _local8 = new Level(10, 4, 1);
levels.push(_local8);
var _local7 = new Level(15, 5, 1);
levels.push(_local7);
var _local6 = new Level(15, 6, 3);
levels.push(_local6);
var _local5 = new Level(16, 7, 1);
levels.push(_local5);
var _local4 = new Level(20, 8, 1);
levels.push(_local4);
var _local2 = new Level(20, 10, 1);
levels.push(_local2);
var _local3 = new Level(25, 10, 1);
levels.push(_local3);
}
}
Symbol 151 MovieClip [__Packages.Level] Frame 0
class Level
{
var enemDelayMax, enemysTotal, simulEnemys, __get__sameTimeEnemys;
function Level (eTotal, eSimul, eDelayMax) {
totalEnemies = (eTotal);
sameTimeEnemys = (eSimul);
enemDelayMax = eDelayMax;
}
function set sameTimeEnemys(concurrent) {
concurrent = ((concurrent <= enemysTotal) ? (concurrent) : (enemysTotal));
simulEnemys = concurrent;
//return(__get__sameTimeEnemys());
}
function get sameTimeEnemies() {
return(simulEnemys);
}
function set eDelayMax(eDelay) {
enemDelayMax = eDelay;
//return(eDelayMax);
}
function get eDelayMax() {
return(enemDelayMax);
}
function set totalEnemies(total) {
enemysTotal = total;
//return(totalEnemies);
}
function get totalEnemies() {
return(enemysTotal);
}
}
Symbol 152 MovieClip [__Packages.FlashTimer] Frame 0
class FlashTimer
{
var runList;
function FlashTimer () {
runList = new Array();
}
function timeTask(theProperty, tempValue, mTime) {
if (notTasked(theProperty)) {
var calcExpire = (getTimer() + mTime);
var originalValue = eval (theProperty);
Set(theProperty, tempValue);
runList.push(Array(calcExpire, originalValue, theProperty));
}
}
function numRunners() {
return(runList.length);
}
function runTimeCheck() {
var _local3 = new Array();
var _local2 = new Array();
while (runList.length > 0) {
_local2 = Array(runList.pop());
if (getTimer() > _local2[0][0]) {
Set(_local2[0][2], _local2[0][1]);
} else {
_local3.push(_local2[0]);
}
}
if (_local3.length != 0) {
runList = _local3;
}
}
function runFlush() {
while (runList.length > 0) {
var _local2 = Array(runList.pop());
Set(_local2[0][2], _local2[0][1]);
}
}
function notTasked(theProperty) {
var _local2 = 0;
while (_local2 < runList.length) {
if (runList[_local2][2] == theProperty) {
return(false);
}
_local2++;
}
return(true);
}
}
Symbol 153 MovieClip [__Packages.BulletManager] Frame 0
class BulletManager extends MovieClip
{
var fireSpeed, firePercent, bulletSpeed, bulletCount, bulCost, jitter, fireSound, gotoAndPlay;
function BulletManager () {
super();
fireSpeed = 5;
firePercent = 100;
bulletSpeed = 10;
bulletCount = 0;
bulCost = 15;
jitter = 0;
fireSound = new Sound(this);
fireSound.attachSound("pulse_id");
}
function onEnterFrame() {
if (firePercent > 100) {
firePercent = 100;
} else {
firePercent++;
}
}
function fire(curPos, curRot) {
var isOK = true;
isOK = (((bulletCount % fireSpeed) == 0) ? (isOK) : false);
isOK = ((firePercent > 1) ? (isOK) : false);
if (isOK) {
fireSound.start();
var newDepth = _root.getNextHighestDepth();
var bulletName = ("bul" + newDepth);
_root.attachMovie("Bullet", bulletName, newDepth, {startPos:curPos, bulScale:_root.bulBam});
var calcJitter = ((Math.random() * jitter) - Math.floor(jitter / 2));
with (eval ("_root." + bulletName)) {
trajectory(curRot + calcJitter, bulletSpeed);
}
registerFire();
}
bulletCount++;
}
function ready() {
bulletCount = 0;
}
function omniBomb(curPos) {
var nextRot = 0;
var bulID = 0;
while (bulID < 10) {
nextRot = nextRot + 36;
var newDepth = _root.getNextHighestDepth();
var bulletName = ("omni" + newDepth);
_root.attachMovie("Bullet", bulletName, newDepth, {startPos:curPos, bulScale:3});
with (eval ("_root." + bulletName)) {
trajectory(nextRot, 5);
}
bulID++;
}
}
function registerFire() {
firePercent = firePercent - bulCost;
if (firePercent > 0) {
gotoAndPlay(firePercent);
} else {
gotoAndPlay("empty");
}
}
}
Symbol 154 MovieClip [__Packages.Powerup] Frame 0
class Powerup extends MovieClip
{
var _x, startPos, _y, isAlive, myGC, myCharacter, myMomentum, pList, _width, _height, gotoAndStop, myPower, hitTest, gotoAndPlay, powerText, removeMovieClip;
function Powerup () {
super();
_x = startPos.x;
_y = startPos.y;
isAlive = true;
myGC = _root.gcMain;
myCharacter = _root.mainChar;
var _local4 = Math.floor(Math.random() * 3) - 1;
var _local5 = Math.floor(Math.random() * 3) - 1;
myMomentum = new Momentum(_local4, _local5);
pList = new Array();
pList[0] = "speed";
pList[1] = "fire";
pList[2] = "power";
pList[3] = "omnibomb";
pList[4] = "friction";
pList[5] = "reverse";
pList[6] = "thin";
pList[7] = "destroy";
randomizePowerup();
_width = 30;
_height = 30;
}
function onEnterFrame() {
_x = _x + myMomentum.x;
_y = _y + myMomentum.y;
verifyBounds();
if (isAlive) {
checkHit();
}
}
function randomizePowerup() {
var _local2;
_local2 = Math.floor(Math.random() * pList.length);
gotoAndStop(pList[_local2]);
myPower = pList[_local2];
}
function checkHit() {
if (hitTest(myCharacter)) {
gotoAndPlay("hit");
powerText = myPower;
isAlive = false;
myGC.hitPowerup(myPower);
}
}
function verifyBounds() {
var _local2 = true;
_local2 = ((_x < 0) ? false : (_local2));
_local2 = ((_x > Stage.width) ? false : (_local2));
_local2 = ((_y < 0) ? false : (_local2));
_local2 = ((_y < Stage.height) ? false : (_local2));
if (stayeAlive == false) {
removeMovieClip();
}
}
}
Symbol 155 MovieClip [__Packages.Momentum] Frame 0
class Momentum
{
var myX, myY;
function Momentum (startX, startY) {
myX = startX;
myY = startY;
}
function setFromPolar(myAngle, mySpeed) {
myX = myX + (Math.sin(convertToRadians(myAngle)) * mySpeed);
myY = myY - (Math.cos(convertToRadians(myAngle)) * mySpeed);
}
function get x() {
return(myX);
}
function get y() {
return(myY);
}
function set x(newX) {
myX = newX;
//return(x);
}
function set y(newY) {
myY = newY;
//return(y);
}
function convertToRadians(degrees) {
return(degrees * (Math.PI/180));
}
}
Symbol 156 MovieClip [__Packages.Bullet] Frame 0
class Bullet extends MovieClip
{
var _x, startPos, _y, myMomentum, bullPower, bulScale, _xscale, _yscale, play, removeMovieClip;
function Bullet () {
super();
_x = startPos.x;
_y = startPos.y;
myMomentum = new Momentum(0, 0);
bullPower = 2 * bulScale;
_xscale = 100 * bulScale;
_yscale = 100 * bulScale;
}
function onEnterFrame() {
_x = _x + myMomentum.x;
_y = _y + myMomentum.y;
verifyBounds();
checkHit();
}
function trajectory(myAngle, mySpeed) {
myMomentum.setFromPolar(myAngle, mySpeed);
}
function checkHit() {
if (_root.gcMain.checkEnemHits(this, bullPower)) {
play();
}
}
function verifyBounds() {
var _local2 = true;
_local2 = ((_x < 0) ? false : (_local2));
_local2 = ((_x > Stage.width) ? false : (_local2));
_local2 = ((_y < 0) ? false : (_local2));
_local2 = ((_y < Stage.height) ? false : (_local2));
if (stayeAlive == false) {
removeMovieClip();
}
}
}
Symbol 157 MovieClip [__Packages.Menu] Frame 0
class Menu
{
var scaleAmount;
function Menu () {
scaleAmount = 30;
}
function makeBig(theMC) {
var _local3 = theMC._xscale;
var _local2 = theMC._yscale;
var _local6 = _local3 + scaleAmount;
var _local5 = _local2 + scaleAmount;
new mx.transitions.Tween(theMC, "_xscale", mx.transitions.easing.Elastic.easeOut, _local3, _local6, 1, true);
new mx.transitions.Tween(theMC, "_yscale", mx.transitions.easing.Elastic.easeOut, _local2, _local5, 1, true);
}
function makeNormal(theMC, originalScale) {
new mx.transitions.Tween(theMC, "_xscale", mx.transitions.easing.Elastic.easeOut, theMC._xscale, originalScale, 1, true);
new mx.transitions.Tween(theMC, "_yscale", mx.transitions.easing.Elastic.easeOut, theMC._yscale, originalScale, 1, true);
}
function fadeOut(theMC) {
new mx.transitions.Tween(theMC, "_alpha", null, 100, 0, 1, true);
}
}
Symbol 158 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 159 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 160 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 161 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 162 MovieClip [__Packages.Astronaut] Frame 0
class Astronaut
{
var hasFriction, health, isAlive, myMomentum, jetForce, friction, __get__jetPower, __get__spaceFriction;
function Astronaut () {
spaceFriction = (0.9);
jetPower = (2);
hasFriction = true;
health = 1;
isAlive = true;
myMomentum = new Momentum(0, 0);
}
function applyThrust(curAngle) {
myMomentum.setFromPolar(curAngle, jetForce);
}
function applyFriction() {
if (hasFriction) {
myMomentum.__set__x(myMomentum.__get__x() * friction);
myMomentum.__set__y(myMomentum.__get__y() * friction);
}
}
function getNextXPos(currentXPos) {
currentXPos = currentXPos + myMomentum.x;
currentXPos = currentXPos % Stage.width;
currentXPos = ((currentXPos < 0) ? (Stage.width) : (currentXPos));
return(currentXPos);
}
function getNextYPos(currentYPos) {
currentYPos = currentYPos + myMomentum.y;
currentYPos = currentYPos % Stage.height;
currentYPos = ((currentYPos < 0) ? (Stage.height) : (currentYPos));
return(currentYPos);
}
function set jetPower(newJet) {
jetForce = newJet;
//return(__get__jetPower());
}
function set spaceFriction(newFriction) {
newFriction = ((newFriction < 0) ? 0 : (newFriction));
newFriction = ((newFriction > 1) ? 1 : (newFriction));
friction = newFriction;
//return(__get__spaceFriction());
}
function convertToRadians(degrees) {
return(degrees * (Math.PI/180));
}
}
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 2
this.alpha = 100;
Instance of Symbol 45 MovieClip [Powerup] in Symbol 71 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop("destroy");
this.myMomentum = new Momentum(0, 0);
}
onClipEvent (mouseUp) {
this.gotoAndPlay("hit");
_parent.play();
}
Symbol 71 MovieClip Frame 7
stop();
Symbol 90 MovieClip Frame 1
_root.rotSpeed = 5;
_root.astroControl.setJetForce(3);
_root.bulBam = 1.5;
_root.bulletMon.jitter = 5;
stop();
Symbol 90 MovieClip Frame 2
_root.rotSpeed = 10;
_root.astroControl.setJetForce(5);
_root.bulletMon.fireSpeed = 2;
_root.bulBam = 1;
_root.bulletMon.jitter = 10;
stop();
Symbol 90 MovieClip Frame 3
_root.rotSpeed = 3;
_root.astroControl.setJetForce(1);
_root.astroControl.setFriction(0.99);
_root.bulletMon.fireSpeed = 10;
_root.bulletMon.bulCost = 30;
_root.bulBam = 2.3;
stop();
Symbol 90 MovieClip Frame 56
stopAllSounds();
_root.gotoAndPlay("deadScreen");
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
stop();
Symbol 106 MovieClip Frame 25
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 7
stop();
Symbol 140 Button
on (press) {
stopAllSounds();
gotoAndStop ("gameMain");
}
Symbol 142 Button
on (press) {
stopAllSounds();
gotoAndPlay ("menuMain");
}
Symbol 146 Button
on (press) {
stopAllSounds();
gotoAndStop ("gameMain");
}
Symbol 147 Button
on (press) {
stopAllSounds();
gotoAndPlay ("menuMain");
}