Frame 1
function AI_SSS_LOADING_COMPLETED() {
trace("AI_SSS_Loaded!");
_level0.MC_SSS_BRAIN._visible = false;
_level0.OBJ_SSS_BRAIN.help();
trace("brain done");
gotoAndPlay ("loadPage");
}
this._lockroot = true;
_root.useBrain = false;
if ((_level0.MC_SSS_BRAIN == undefined) and (_root.useBrain == true)) {
_level0.AI_SSS_LOCAL = true;
_level0.flash_server = "";
_level0.MC_SSS_BRAIN = _level0.createEmptyMovieClip("SSS_BRAIN", 100);
var sURL_BRAIN = (_level0.flash_server + "AI-SSS_BRAIN.swf");
_level0.MC_SSS_BRAIN.loadMovie(sURL_BRAIN, MC_SSS_BRAIN);
}
stop();
if (_root.useBrain == false) {
gotoAndPlay ("Loading");
}
Frame 2
gSoundClass = new classes.soundClass(["die", "Thrust", "payOff", "splash", "inGame"]);
gScoreClass = new classes.scoreClass();
gGameClass = new classes.gameClass();
gSoundClass.playSound("splash", true);
_root.onEnterFrame = function () {
_root.gGameClass.main();
};
stop();
Instance of Symbol 287 MovieClip in Frame 2
on (press) {
getURL ("http://www.kabillion.com");
}
Frame 3
stop();
Instance of Symbol 312 MovieClip in Frame 3
on (press) {
getURL ("http://www.kabillion.com");
}
Frame 4
stop();
Frame 5
function showWindow() {
var _local2 = {type:mx.transitions.Fly, direction:0, duration:1, easing:mx.transitions.easing.Bounce.easeOut};
mx.transitions.TransitionManager.start(_root.gGameClass.popUpWinMC, _local2);
}
function removeWindow() {
var _local2 = {type:mx.transitions.Fly, direction:1, duration:1, easing:mx.transitions.easing.None.easeNone};
mx.transitions.TransitionManager.start(_root.gGameClass.popUpWinMC, _local2);
}
stop();
stopAllSounds();
gSoundClass.playSound("inGame", true);
Frame 6
stop();
Frame 7
stop();
Frame 8
stop();
Frame 9
stop();
Frame 10
stop();
Frame 11
stop();
Frame 12
stop();
Frame 13
stop();
Frame 14
stop();
score.text = _root.gScoreClass.getGameScore();
Frame 28
stop();
score.text = _root.gScoreClass.getGameScore();
Frame 40
function AI_SSS_SUBMISSION_COMPLETED() {
playAgain_btn = _root.attachMovie("playAgain", "but", _root.getNextHighestDepth());
playAgain_btn.onRollOver = function () {
playAgain_btn.gotoAndStop(2);
};
playAgain_btn.onRollOut = function () {
playAgain_btn.gotoAndStop(1);
};
playAgain_btn.onRelease = function () {
this.removeMovieClip();
_level0.OBJ_SSS_BRAIN.reset();
_root.gotoAndPlay("IntroPage");
};
playAgain_btn._x = (Stage.width / 2) - (playAgain_btn._width / 2);
playAgain_btn._y = Stage.height / 2;
}
stop();
_level0.OBJ_SSS_BRAIN.Submit_Points(_root.gScoreClass.getGameScore());
Symbol 12 MovieClip [building_7] Frame 1
Symbol 33 MovieClip [popUpWinMC] Frame 1
stop();
Symbol 33 MovieClip [popUpWinMC] Frame 2
stop();
Symbol 33 MovieClip [popUpWinMC] Frame 11
stop();
Symbol 37 MovieClip [playAgain] Frame 1
stop();
Symbol 40 MovieClip [building_6] Frame 1
hitBox_1._visible = false;
Symbol 42 MovieClip [building_5] Frame 1
hitBox_1._visible = false;
hitBox_2._visible = false;
hitBox_3._visible = false;
Symbol 44 MovieClip [building_4] Frame 1
hitBox_1._visible = false;
hitBox_2._visible = false;
hitBox_3._visible = false;
Symbol 49 MovieClip [duckyMC] Frame 1
hitBox_1._visible = false;
hitBox_2._visible = false;
Symbol 52 MovieClip [board2] Frame 1
hitBox_1._visible = false;
hitBox_2._visible = false;
hitBox_3._visible = false;
Symbol 55 MovieClip [board1] Frame 1
hitBox_1._visible = false;
hitBox_2._visible = false;
Symbol 72 Button
on (press) {
_root.gGameClass.quitGame();
}
Symbol 109 MovieClip [building_1] Frame 1
hitBox_2._visible = false;
Symbol 126 MovieClip [stationMC] Frame 1
hitBox_1._visible = false;
Symbol 129 MovieClip [building_2] Frame 1
hitBox_1._visible = false;
hitBox_2._visible = false;
Symbol 135 MovieClip Frame 1
function fireJet() {
if (this._currentframe == 1) {
gotoAndPlay (2);
}
}
stop();
Symbol 135 MovieClip Frame 4
function reset() {
if (this._currentframe == 4) {
this.gotoAndPlay(5);
}
}
stop();
Symbol 135 MovieClip Frame 13
gotoAndStop (1);
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 10
stop();
Symbol 143 MovieClip Frame 20
stop();
Symbol 143 MovieClip Frame 30
stop();
Symbol 143 MovieClip Frame 40
stop();
Symbol 143 MovieClip Frame 50
stop();
Symbol 143 MovieClip Frame 60
stop();
Symbol 143 MovieClip Frame 70
stop();
Symbol 143 MovieClip Frame 80
stop();
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 15
stop();
_root.gGameClass.loosLife();
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 10
stop();
Symbol 191 MovieClip Frame 20
stop();
Symbol 191 MovieClip Frame 30
stop();
Symbol 191 MovieClip Frame 40
stop();
Symbol 191 MovieClip Frame 50
stop();
Symbol 191 MovieClip Frame 60
stop();
Symbol 191 MovieClip Frame 70
stop();
Symbol 191 MovieClip Frame 80
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 199 MovieClip [rocketMC] Frame 1
stop();
mainJets._visible = false;
landArea._visible = false;
hitBox1._visible = false;
hitBox2._visible = false;
hitBox3._visible = false;
hitBox4._visible = false;
Symbol 201 MovieClip [building_3] Frame 1
hitBox_1._visible = false;
Symbol 211 MovieClip [squidMC] Frame 1
hitBox_1._visible = false;
hitBox_2._visible = false;
Symbol 342 MovieClip [__Packages.classes.scoreClass] Frame 0
class classes.scoreClass
{
var gameScore;
function scoreClass () {
trace("loaded");
}
function initScore() {
gameScore = 0;
}
function incrementScore(howMuch) {
gameScore = gameScore + howMuch;
if (gameScore >= highScore) {
highScore = gameScore;
}
}
function decrementScore(howMuch) {
gameScore = gameScore - howMuch;
}
function getGameScore() {
return(gameScore);
}
function getHighScore() {
}
var highScore = 0;
}
Symbol 343 MovieClip [__Packages.classes.soundClass] Frame 0
class classes.soundClass
{
var soundOff;
function soundClass (theSounds) {
initSounds(theSounds);
}
function initSounds(gameSounds) {
soundOff = false;
soundNames_Arr = gameSounds;
var _local3 = 0;
while (_local3 < soundNames_Arr.length) {
soundID_Arr[_local3] = new Sound(_root);
soundID_Arr[_local3].attachSound(soundNames_Arr[_local3]);
_local3++;
}
trace(soundNames_Arr);
}
function playSound(soundName, loop) {
if (soundOff == false) {
var _local2 = 0;
while (_local2 < soundID_Arr.length) {
if (soundNames_Arr[_local2] == soundName) {
soundID_Arr[_local2].setVolume(gameVolume);
soundID_Arr[_local2].start();
if (loop == true) {
soundID_Arr[_local2].onSoundComplete = function () {
this.start();
};
}
}
_local2++;
}
}
}
function toggleSound() {
trace("toggleSound");
soundOff = !soundOff;
if (soundOff) {
turnSoundOff();
} else {
turnSoundOn();
}
}
function turnSoundOff() {
soundOff = true;
stopAllSounds();
}
function turnSoundOn() {
soundOff = false;
playSound("AmbientS");
}
var soundID_Arr = new Array();
var soundNames_Arr = new Array();
var gameVolume = 100;
}
Symbol 344 MovieClip [__Packages.classes.gameClass] Frame 0
class classes.gameClass
{
var gameState, dieDelay, DELAY_MAX, lives, HUD_MC, gameClip, popUpWinMC, bgMC, rocketMC, gameLevel, lifeClips, landingPads, landingBonus, fuelBonus, startPointMC, endPointMC, rocketLanded, fuel, MAX_FUEL, gravity, keyListener, FUEL_MULTIPLIER, headerTxt, landed;
function gameClass () {
trace("gameClass Constructor loaded now!!!");
}
function main() {
switch (gameState) {
case "wait" :
checkAnyKey();
break;
case "play" :
moveShip();
break;
case "nextLevel" :
checkAnyKey();
break;
case "die" :
dieDelay++;
if (dieDelay != DELAY_MAX) {
break;
}
if (lives > 0) {
dieDelay = 0;
nextLife();
} else {
endGame();
}
}
}
function initGame() {
dieDelay = 0;
DELAY_MAX = 60;
_root.gScoreClass.initScore();
HUD_MC.score.text = _root.gScoreClass.getGameScore();
gameClip = _root.createEmptyMovieClip("gameClip", 100);
popUpWinMC = _root.attachMovie("popUpWinMC", "popUpWinMC", 1001, {_x:65, _y:30});
popUpWinMC.gotoAndStop("startGame");
bgMC = gameClip.attachMovie("bgMC", "bgMC", 10, {_x:0, _y:0});
HUD_MC = gameClip.attachMovie("HUD_MC", "HUD_MC", 1050, {_x:0, _y:378});
HUD_MC.score.text = _root.gScoreClass.getGameScore();
loadLevel(1);
rocketMC = gameClip.attachMovie("rocketMC", "rocketMC", 100, {_x:levels[gameLevel - 1].rStartPos.xPos, _y:levels[gameLevel - 1].rStartPos.yPos});
rocketMC._width = 35;
rocketMC._height = 86.4;
gameState = "wait";
lives = 3;
lifeClips = new Array();
var _local3 = 0;
while (_local3 < lives) {
var _local6 = 2 + (30 * _local3);
var _local5 = 2.5;
var _local4 = gameClip.attachMovie("life", "life" + _local3, 1200 + _local3, {_x:_local6, _y:_local5});
lifeClips.push(_local4);
_local3++;
}
}
function loadLevel(num) {
if (clipsToAvoid_arr.length != 0) {
var _local2 = 0;
while (_local2 < clipsToAvoid_arr.length) {
clipsToAvoid_arr[_local2].removeMovieClip();
_local2++;
}
}
if (landingPads.length != 0) {
var _local2 = 0;
while (_local2 < landingPads.length) {
landingPads[_local2].removeMovieClip();
_local2++;
}
}
landingBonus = 0;
fuelBonus = 0;
gameLevel = num;
HUD_MC.level.text = gameLevel;
startPointMC = gameClip.attachMovie("stationMC", "stationMC1", 50, {_x:levels[gameLevel - 1].pads.startPad.xPos, _y:levels[gameLevel - 1].pads.startPad.yPos});
endPointMC = gameClip.attachMovie("stationMC", "stationMC2", 51, {_x:levels[gameLevel - 1].pads.endPad.xPos, _y:levels[gameLevel - 1].pads.endPad.yPos});
landingPads = [startPointMC, endPointMC];
var _local2 = 0;
while (_local2 < landingPads.length) {
landingPads[_local2]._width = 78.4;
landingPads[_local2]._height = 62;
clipsToAvoid_arr.push(landingPads[_local2]);
_local2++;
}
_local2 = 0;
while (_local2 < levels[gameLevel - 1].buildings.length) {
var _local6 = levels[gameLevel - 1].buildings[_local2].clip;
var _local9 = _local6 + _local2;
var _local8 = levels[gameLevel - 1].buildings[_local2].xPos;
var _local7 = levels[gameLevel - 1].buildings[_local2].yPos;
var _local5 = gameClip.attachMovie(_local6, _local9, 200 + _local2, {_x:_local8, _y:_local7});
_local5._width = levels[gameLevel - 1].buildings[_local2].w;
_local5._height = levels[gameLevel - 1].buildings[_local2].h;
clipsToAvoid_arr.push(_local5);
_local2++;
}
_local2 = 0;
while (_local2 < levels[gameLevel - 1].signs.length) {
var _local6 = levels[gameLevel - 1].signs[_local2].clip;
var _local9 = _local6 + _local2;
var _local8 = levels[gameLevel - 1].signs[_local2].xPos;
var _local7 = levels[gameLevel - 1].signs[_local2].yPos;
var _local12 = levels[gameLevel - 1].signs[_local2].xScale;
var _local11 = levels[gameLevel - 1].signs[_local2].xScale;
var _local4 = gameClip.attachMovie(_local6, _local9, 300 + _local2, {_x:_local8, _y:_local7});
_local4._width = levels[gameLevel - 1].signs[_local2].w;
_local4._height = levels[gameLevel - 1].signs[_local2].h;
clipsToAvoid_arr.push(_local4);
_local2++;
}
if (levels[gameLevel - 1].duckies.active == true) {
var _local8 = levels[gameLevel - 1].duckies.xPos;
var _local7 = levels[gameLevel - 1].duckies.yPos;
var _local10 = gameClip.attachMovie("duckyMC", "duckyMC", 400 + _local2, {_x:_local8, _y:_local7});
_local10._width = levels[gameLevel - 1].duckies.w;
_local10._height = levels[gameLevel - 1].duckies.h;
_local10.xDir = levels[gameLevel - 1].duckies.xDir;
_local10.yDir = levels[gameLevel - 1].duckies.yDir;
_local10.speed = levels[gameLevel - 1].duckies.speed;
_local10.xMin = levels[gameLevel - 1].duckies.xMin;
_local10.xMax = levels[gameLevel - 1].duckies.xMax;
_local10.yMin = levels[gameLevel - 1].duckies.yMin;
_local10.yMax = levels[gameLevel - 1].duckies.yMax;
_local10.onEnterFrame = function () {
if (this.xDir != 0) {
this._x = this._x + (this.speed * this.xDir);
if (this._x >= this.xMax) {
this.xDir = -1;
}
if (this._x <= this.xMin) {
this.xDir = 1;
}
}
if (this.yDir != 0) {
this._y = this._y + (this.speed * this.yDir);
if (this._y >= this.yMax) {
this.yDir = -1;
}
if (this._y <= 0) {
this.yDir = 1;
}
}
};
clipsToAvoid_arr.push(_local10);
}
if (levels[gameLevel - 1].squids.length > 0) {
_local2 = 0;
while (_local2 < levels[gameLevel - 1].squids.length) {
var _local8 = levels[gameLevel - 1].squids[_local2].xPos;
var _local7 = levels[gameLevel - 1].squids[_local2].yPos;
var _local3 = gameClip.attachMovie("squidMC", "squidMC" + _local2, 500 + _local2, {_x:_local8, _y:_local7});
_local3._width = levels[gameLevel - 1].squids[_local2].w;
_local3._height = levels[gameLevel - 1].squids[_local2].h;
trace("h " + levels[gameLevel - 1].squids[_local2].xPos);
_local3.xDir = levels[gameLevel - 1].squids[_local2].xDir;
_local3.yDir = levels[gameLevel - 1].squids[_local2].yDir;
_local3.speed = levels[gameLevel - 1].squids[_local2].speed;
_local3.xMin = levels[gameLevel - 1].squids[_local2].xMin;
_local3.xMax = levels[gameLevel - 1].squids[_local2].xMax;
_local3.yMin = levels[gameLevel - 1].squids[_local2].yMin;
_local3.yMax = levels[gameLevel - 1].squids[_local2].yMax;
_local3.onEnterFrame = function () {
if (this.xDir != 0) {
this._x = this._x + (this.speed * this.xDir);
if (this._x >= this.xMax) {
this.xDir = -1;
}
if (this._x <= this.xMin) {
this.xDir = 1;
}
}
if (this.yDir != 0) {
this._y = this._y + (this.speed * this.yDir);
if (this._y >= this.yMax) {
this.yDir = -1;
}
if (this._y <= this.yMin) {
this.yDir = 1;
}
}
};
clipsToAvoid_arr.push(_local3);
_local2++;
}
}
rocketMC._x = levels[gameLevel - 1].rStartPos.xPos;
rocketMC._y = levels[gameLevel - 1].rStartPos.yPos;
}
function nextLife() {
rocketMC._x = levels[gameLevel - 1].rStartPos.xPos;
rocketMC._y = levels[gameLevel - 1].rStartPos.yPos;
rocketMC.body.gotoAndStop(1);
rocketMC.rightEye._visible = true;
rocketMC.leftEye._visible = true;
rocketMC.leftJet._visible = true;
rocketMC.rightJet._visible = true;
rocketMC.mouth._visible = true;
rocketMC._visible = true;
rocketLanded = true;
fuel = MAX_FUEL;
showFuel();
rocketMC.dx = 0;
rocketMC.dy = 0;
gravity = 0.1;
gameState = "play";
}
function quitGame() {
endGame();
}
function endGame(finished) {
trace("endGame");
gameState = "endGame";
gameClip.removeMovieClip();
popUpWinMC.removeMovieClip();
Key.removeListener(keyListener);
if (finished == true) {
_root.gotoAndStop("youWinPage");
_root.score.text = _root.gScoreClass.getGameScore();
} else {
_root.gotoAndStop("gameOverPage");
_root.score.text = _root.gScoreClass.getGameScore();
}
stopAllSounds();
_root.gSoundClass.playSound("splash", true);
}
function nextLevel() {
_root.gSoundClass.playSound("payOff");
gameLevel++;
popUpWinMC.gotoAndStop("nextLevel");
tallyLandingBonus(rocketMC.dx, rocketMC.dy);
tallyFuelBonus();
popUpWinMC.header.text = _root.gGameClass.headerTxt;
popUpWinMC.lBonus.text = int(landingBonus);
popUpWinMC.fBonus.text = int(fuelBonus);
popUpWinMC.totalBonus.text = int(landingBonus + fuelBonus);
_root.showWindow();
_root.gScoreClass.incrementScore(fuelBonus + landingBonus);
HUD_MC.score.text = _root.gScoreClass.getGameScore();
}
function startGame() {
if (gameLevel > 1) {
loadLevel(gameLevel);
}
_root.removeWindow();
gameState = "play";
startLevel();
}
function startLevel() {
keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.isDown(38)) {
if (_root.gGameClass.fuel > 0) {
_root.gGameClass.rocketMC.mainJets._visible = true;
}
} else if (Key.isDown(39)) {
if (_root.gGameClass.fuel > 0) {
if (_root.gGameClass.rocketLanded == true) {
return(undefined);
}
_root.gGameClass.rocketMC.leftJet.fireJet();
}
} else if (Key.isDown(37)) {
if (_root.gGameClass.fuel > 0) {
if (_root.gGameClass.rocketLanded == true) {
return(undefined);
}
_root.gGameClass.rocketMC.rightJet.fireJet();
}
}
};
keyListener.onKeyUp = function () {
if (Key.getCode() == 38) {
_root.gGameClass.rocketMC.mainJets._visible = false;
} else if (Key.getCode() == 39) {
_root.gGameClass.rocketMC.leftJet.reset();
} else if (Key.getCode() == 37) {
_root.gGameClass.rocketMC.rightJet.reset();
}
};
Key.addListener(keyListener);
rocketLanded = true;
rocketMC.dx = 0;
rocketMC.dy = 0;
gravity = 0.1;
MAX_FUEL = 200;
FUEL_MULTIPLIER = 2;
fuel = MAX_FUEL;
showFuel();
}
function tallyLandingBonus(hor, ver) {
trace((("tallyLandingBonus " + hor) + " ") + ver);
var _local3 = 0;
var _local2 = 0;
hor = Math.round(hor);
if (Math.abs(hor) == 0) {
_local3 = 250;
} else if (Math.abs(hor) <= 0.5) {
_local3 = 150;
} else if (Math.abs(hor) <= 1) {
_local3 = 100;
} else if (Math.abs(hor) <= 1.5) {
_local3 = 50;
}
if (Math.abs(ver) <= 1.5) {
_local2 = 250;
} else if (Math.abs(ver) <= 2) {
_local2 = 200;
} else if (Math.abs(ver) <= 2.5) {
_local2 = 150;
} else if (Math.abs(ver) <= 3) {
_local2 = 100;
} else if (Math.abs(ver) <= 3.5) {
_local2 = 50;
}
landingBonus = _local3 + _local2;
if (landingBonus <= 150) {
headerTxt = "Very weak landing";
} else if (landingBonus <= 250) {
headerTxt = "Not the best landing";
} else if (landingBonus <= 350) {
headerTxt = "Decent landing";
} else if (landingBonus <= 400) {
headerTxt = "Nice landing";
} else if (landingBonus <= 450) {
headerTxt = "Excellent landing";
} else if (landingBonus == 500) {
headerTxt = "Perfect Landing!";
}
trace((((((((("hor: " + Math.abs(hor)) + " = ") + _local3) + " ver: ") + Math.abs(ver)) + " = ") + _local2) + " total = ") + landingBonus);
}
function tallyFuelBonus() {
trace("tallyFuelBonus " + fuel);
var _local4 = MAX_FUEL - fuel;
var _local3 = _local4 / MAX_FUEL;
var _local2 = _local3 * 100;
_local2 = Math.ceil(getPercentage(MAX_FUEL, fuel));
trace(_local2 + "% fuel remaining");
fuelBonus = _local2 * 25;
trace("fuelBonus " + fuelBonus);
if (fuelBonus < 0) {
fuelBonus = 0;
}
}
function checkAnyKey() {
if (Key.isDown(32)) {
if ((gameLevel - 1) == levels.length) {
endGame(true);
} else {
startGame();
}
}
}
function moveShip() {
shipThrusters();
if (!rocketLanded) {
shipMovement();
}
if (!rocketLanded) {
checkForLand();
}
if (!rocketLanded) {
checkForCrash();
}
if (!rocketLanded) {
checkBounderies();
}
}
function shipThrusters() {
if (fuel <= 0) {
rocketMC.mainJets._visible = false;
rocketMC.leftJet.reset();
rocketMC.rightJet.reset();
return(undefined);
}
if (Key.isDown(38)) {
rocketLanded = false;
rocketMC.dy = rocketMC.dy - 0.4;
rocketMC.gotoAndStop("up");
fuel = fuel - 1;
_root.gSoundClass.playSound("Thrust");
showFuel();
} else if (Key.isDown(37)) {
if (rocketLanded == true) {
return(undefined);
}
rocketLanded = false;
rocketMC.dx = rocketMC.dx - 0.2;
rocketMC.gotoAndStop("left");
fuel = fuel - 1;
_root.gSoundClass.playSound("Thrust");
showFuel();
} else if (Key.isDown(39)) {
if (rocketLanded == true) {
return(undefined);
}
rocketLanded = false;
rocketMC.dx = rocketMC.dx + 0.2;
rocketMC.gotoAndStop("right");
fuel = fuel - 1;
_root.gSoundClass.playSound("Thrust");
showFuel();
} else {
rocketMC.mainJets._visible = false;
rocketMC.leftJet.reset();
rocketMC.rightJet.reset();
}
}
function shipMovement() {
rocketMC.dy = rocketMC.dy + gravity;
rocketMC._x = rocketMC._x + rocketMC.dx;
rocketMC._y = rocketMC._y + rocketMC.dy;
}
function checkForLand() {
var _local2 = 0;
while (_local2 < landingPads.length) {
if (landingPads[_local2].hitTest(rocketMC.landArea)) {
if (rocketMC.dy > 4) {
trace("landed too hard");
die();
return(undefined);
}
var _local3 = (rocketMC._x + rocketMC.landArea._x) - 30;
var _local4 = _local3 + 15;
trace((("padx " + landingPads[_local2]._x) + " ") + (landingPads[_local2]._x + landingPads[_local2]._width));
trace((((("rocketX " + _local3) + " ") + _local4) + " ") + rocketMC.landArea._width);
if ((landingPads[_local2]._x < _local3) && ((landingPads[_local2]._x + landingPads[_local2]._width) > _local4)) {
trace((("land " + landingPads[_local2]._y) + " ") + ((((rocketMC._y + rocketMC._height) - 25) + " ") + gameState));
if (_local2 == 1) {
trace((((("dy = " + rocketMC.dy) + " dx = ") + rocketMC.dx) + " fuel = ") + fuel);
rocketLanded = true;
gameState = "nextLevel";
nextLevel();
return(undefined);
}
trace((("start station " + landingPads[_local2]._y) + " ") + ((rocketMC._y + rocketMC._height) - 35));
rocketLanded = true;
fuel = MAX_FUEL;
rocketMC.dy = 0;
rocketMC.dx = 0;
showFuel();
return(undefined);
}
die();
}
_local2++;
}
}
function checkBounderies() {
if (rocketMC._x < (-(rocketMC._width / 2))) {
die();
}
if (rocketMC._x > (Stage.width + (rocketMC._width / 2))) {
die();
}
if (rocketMC._y < (-(rocketMC._height - 30))) {
die();
}
if (rocketMC._y > (Stage.height + rocketMC._height)) {
die();
}
}
function die() {
if (gameState != "play") {
return(undefined);
}
landed = false;
rocketMC.rightEye._visible = false;
rocketMC.leftEye._visible = false;
rocketMC.leftJet._visible = false;
rocketMC.rightJet._visible = false;
rocketMC.mouth._visible = false;
rocketMC.body.gotoAndPlay(2);
gameState = "die";
_root.gSoundClass.playSound("die");
lives--;
lifeClips[lives].removeMovieClip();
}
function loosLife() {
rocketMC._visible = false;
}
function checkForCrash() {
if (!landed) {
var _local2 = 0;
while (_local2 < clipsToAvoid_arr.length) {
if ((clipsToAvoid_arr[_local2].hitBox_1.hitTest(rocketMC.hitBox1) || (clipsToAvoid_arr[_local2].hitBox_2.hitTest(rocketMC.hitBox1))) || (clipsToAvoid_arr[_local2].hitBox_3.hitTest(rocketMC.hitBox1))) {
trace("rocket hitbox1");
die();
break;
}
if ((clipsToAvoid_arr[_local2].hitBox_1.hitTest(rocketMC.hitBox2) || (clipsToAvoid_arr[_local2].hitBox_2.hitTest(rocketMC.hitBox2))) || (clipsToAvoid_arr[_local2].hitBox_3.hitTest(rocketMC.hitBox2))) {
trace("rocket hitbox2");
die();
break;
}
if ((clipsToAvoid_arr[_local2].hitBox_1.hitTest(rocketMC.hitBox3) || (clipsToAvoid_arr[_local2].hitBox_2.hitTest(rocketMC.hitBox3))) || (clipsToAvoid_arr[_local2].hitBox_3.hitTest(rocketMC.hitBox3))) {
trace("rocket hitbox3");
die();
break;
}
if ((clipsToAvoid_arr[_local2].hitBox_1.hitTest(rocketMC.hitBox4) || (clipsToAvoid_arr[_local2].hitBox_2.hitTest(rocketMC.hitBox4))) || (clipsToAvoid_arr[_local2].hitBox_3.hitTest(rocketMC.hitBox4))) {
trace("rocket hitbox4");
die();
break;
}
_local2++;
}
}
}
function showFuel() {
HUD_MC.fuelGauge._xscale = fuel / FUEL_MULTIPLIER;
}
function getPercentage(max, amt) {
var _local1 = amt / max;
var _local2 = _local1 * 100;
return(_local2);
}
var clipsToAvoid_arr = new Array();
var level1 = {rStartPos:{xPos:25.45, yPos:271.2}, pads:{startPad:{xPos:13, yPos:333}, endPad:{xPos:532, yPos:333}}, buildings:[{clip:"building_3", xPos:130, yPos:245, w:100, h:158}, {clip:"building_2", xPos:270, yPos:83, w:75, h:315}, {clip:"building_1", xPos:416, yPos:229, w:100, h:170}], signs:[]};
var level2 = {rStartPos:{xPos:25.45, yPos:271.2}, pads:{startPad:{xPos:13, yPos:333}, endPad:{xPos:479, yPos:338}}, buildings:[{clip:"building_3", xPos:130, yPos:245, w:100, h:158}, {clip:"building_2", xPos:393, yPos:72, w:75, h:315}, {clip:"building_2", xPos:567, yPos:40, w:75, h:410}], signs:[{clip:"board1", xPos:464.5, yPos:70, w:29, h:51.9, xScale:-100}, {clip:"board2", xPos:532, yPos:187.8, w:40, h:73.5, xScale:100}]};
var level3 = {rStartPos:{xPos:25.45, yPos:271.2}, pads:{startPad:{xPos:13, yPos:333}, endPad:{xPos:556, yPos:336}}, buildings:[{clip:"building_4", xPos:123, yPos:245, w:75, h:150}, {clip:"building_5", xPos:263, yPos:211, w:100, h:175}, {clip:"building_6", xPos:420, yPos:188, w:122, h:213}], signs:[], duckies:{active:true, w:125, h:203, xPos:92, yPos:0, xMax:510, xMin:0, yMax:0, yMin:0, xDir:1, yDir:0, speed:1.5}};
var level4 = {rStartPos:{xPos:25.45, yPos:271.2}, pads:{startPad:{xPos:13, yPos:333}, endPad:{xPos:556, yPos:336}}, buildings:[{clip:"building_2", xPos:135.4, yPos:82.5, w:75, h:410}], signs:[], duckies:{active:false}, squids:[{w:76.9, h:78, xPos:300, yPos:1.5, xMax:300, xMin:50, yMax:0, yMin:0, xDir:-1, yDir:0, speed:2}, {w:76.9, h:78, xPos:300, yPos:1.5, xMax:300, xMin:50, yMax:282, yMin:82, xDir:0, yDir:1, speed:3}]};
var level5 = {rStartPos:{xPos:25.45, yPos:271.2}, pads:{startPad:{xPos:13, yPos:333}, endPad:{xPos:556, yPos:336}}, buildings:[{clip:"building_4", xPos:91, yPos:253, w:75, h:150}, {clip:"building_5", xPos:239, yPos:213, w:100, h:175}, {clip:"building_1", xPos:349, yPos:227, w:100, h:170}, {clip:"building_3", xPos:456, yPos:248, w:100, h:158.5}], signs:[], duckies:{active:false}, squids:[{w:76.9, h:78, xPos:8.1, yPos:85, xMax:0, xMin:0, yMax:0, yMin:0, xDir:0, yDir:0, speed:0}, {w:76.9, h:78, xPos:166, yPos:166.4, xMax:0, xMin:0, yMax:0, yMin:0, xDir:0, yDir:0, speed:0}, {w:76.9, h:78, xPos:269.1, yPos:4.5, xMax:0, xMin:0, yMax:0, yMin:0, xDir:0, yDir:0, speed:0}, {w:76.9, h:78, xPos:361.1, yPos:53.5, xMax:0, xMin:0, yMax:0, yMin:0, xDir:0, yDir:0, speed:0}, {w:76.9, h:78, xPos:500.6, yPos:159.4, xMax:0, xMin:0, yMax:0, yMin:0, xDir:0, yDir:0, speed:0}]};
var level6 = {rStartPos:{xPos:25.45, yPos:271.2}, pads:{startPad:{xPos:13, yPos:333}, endPad:{xPos:556, yPos:336}}, buildings:[{clip:"building_1", xPos:121, yPos:232, w:100, h:172.4}, {clip:"building_3", xPos:410.9, yPos:239.6, w:100, h:158.8}], signs:[], duckies:{active:true, w:100, h:162.5, xPos:92, yPos:0, xMax:510, xMin:0, yMax:0, yMin:0, xDir:1, yDir:0, speed:1.5}, squids:[{w:76.9, h:78, xPos:380, yPos:162.5, xMax:380, xMin:200, yMax:380, yMin:146.9, xDir:-1, yDir:0, speed:2}]};
var level7 = {rStartPos:{xPos:25.45, yPos:271.2}, pads:{startPad:{xPos:13, yPos:333}, endPad:{xPos:556, yPos:336}}, buildings:[], signs:[], duckies:{active:true, w:100, h:162.5, xPos:145.6, yPos:176, xMax:0, xMin:0, yMax:176.6, yMin:0, xDir:0, yDir:-1, speed:2}, squids:[{w:76.9, h:78, xPos:278.7, yPos:295.3, xMax:380, xMin:200, yMax:295.3, yMin:0, xDir:0, yDir:-1, speed:2}, {w:76.9, h:78, xPos:379.1, yPos:0, xMax:380, xMin:200, yMax:278.7, yMin:0, xDir:0, yDir:1, speed:2}, {w:76.9, h:78, xPos:481.9, yPos:295.3, xMax:380, xMin:200, yMax:295.3, yMin:0, xDir:0, yDir:-1, speed:2}]};
var level8 = {rStartPos:{xPos:25.45, yPos:271.2}, pads:{startPad:{xPos:13, yPos:333}, endPad:{xPos:556, yPos:336}}, buildings:[{clip:"building_2", xPos:95, yPos:198.4, w:75.2, h:410}, {clip:"building_2", xPos:212.8, yPos:198.4, w:75.2, h:410}, {clip:"building_2", xPos:333.9, yPos:198.4, w:75.2, h:410}, {clip:"building_2", xPos:456.9, yPos:198.4, w:75.2, h:410}], signs:[], duckies:{active:true, w:100, h:162.5, xPos:0, yPos:0, xMax:550, xMin:0, yMax:0, yMin:0, xDir:1, yDir:0, speed:1.5}, squids:[]};
var level9 = {rStartPos:{xPos:25.45, yPos:271.2}, pads:{startPad:{xPos:13, yPos:333}, endPad:{xPos:556, yPos:336}}, buildings:[{clip:"building_2", xPos:100, yPos:66, w:75.2, h:410}, {clip:"building_2", xPos:329.4, yPos:128.4, w:75.2, h:410}], signs:[], duckies:{active:false, w:100, h:162.5, xPos:0, yPos:0, xMax:550, xMin:0, yMax:0, yMin:0, xDir:1, yDir:0, speed:1.5}, squids:[{w:76.9, h:78, xPos:208.4, yPos:10, xMax:380, xMin:200, yMax:295.3, yMin:0, xDir:0, yDir:0, speed:2}, {w:76.9, h:78, xPos:208.4, yPos:119.3, xMax:380, xMin:200, yMax:295.3, yMin:0, xDir:0, yDir:0, speed:2}, {w:76.9, h:78, xPos:208.4, yPos:214.3, xMax:380, xMin:200, yMax:295.3, yMin:0, xDir:0, yDir:0, speed:2}]};
var level10 = {rStartPos:{xPos:275, yPos:80}, pads:{startPad:{xPos:254.2, yPos:145}, endPad:{xPos:249, yPos:328.1}}, buildings:[{clip:"building_2", xPos:143.8, yPos:2.4, w:75.2, h:410}, {clip:"building_2", xPos:370.4, yPos:-4.8, w:75.2, h:410}], signs:[], duckies:{active:false, w:100, h:162.5, xPos:0, yPos:0, xMax:550, xMin:0, yMax:0, yMin:0, xDir:1, yDir:0, speed:1.5}, squids:[{w:76.9, h:78, xPos:251.1, yPos:-4.8, xMax:380, xMin:200, yMax:295.3, yMin:0, xDir:0, yDir:0, speed:2}]};
var level11 = {rStartPos:{xPos:25.45, yPos:271.2}, pads:{startPad:{xPos:13, yPos:333}, endPad:{xPos:532, yPos:333}}, buildings:[], signs:[], squids:[{w:76.9, h:78, xPos:251.9, yPos:264, xMax:380, xMin:0, yMax:295.3, yMin:0, xDir:-1, yDir:0, speed:2}]};
var levels = [classes.gameClass.prototype.level1, classes.gameClass.prototype.level2, classes.gameClass.prototype.level3, classes.gameClass.prototype.level4, classes.gameClass.prototype.level5, classes.gameClass.prototype.level6, classes.gameClass.prototype.level7, classes.gameClass.prototype.level8, classes.gameClass.prototype.level9, classes.gameClass.prototype.level10];
}
Symbol 345 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 346 MovieClip [__Packages.mx.transitions.Transition] Frame 0
class mx.transitions.Transition
{
var _manager, removeEventListener, addEventListener, _content, _twn, _easing, _progress, dispatchEvent, _innerBounds, _outerBounds, _width, _height;
function Transition (content, transParams, manager) {
if (!arguments.length) {
return;
}
init(content, transParams, manager);
}
function set manager(mgr) {
if (_manager != undefined) {
removeEventListener("transitionInDone", _manager);
removeEventListener("transitionOutDone", _manager);
removeEventListener("transitionProgress", _manager);
}
_manager = mgr;
addEventListener("transitionInDone", _manager);
addEventListener("transitionOutDone", _manager);
addEventListener("transitionProgress", _manager);
//return(manager);
}
function get manager() {
return(_manager);
}
function set content(c) {
if (typeof(c) == "movieclip") {
_content = c;
_twn.obj = c;
}
//return(content);
}
function get content() {
return(_content);
}
function set direction(direction) {
_direction = (direction ? 1 : 0);
//return(this.direction);
}
function get direction() {
return(_direction);
}
function set duration(d) {
if (d) {
_duration = d;
_twn.duration = d;
}
//return(duration);
}
function get duration() {
return(_duration);
}
function set easing(e) {
if (typeof(e) == "string") {
e = eval (e);
} else if (e == undefined) {
e = _noEase;
}
_easing = e;
_twn.easing = e;
//return(easing);
}
function get easing() {
return(_easing);
}
function set progress(p) {
if (_progress == p) {
return;
}
_progress = p;
if (_direction) {
_render(1 - p);
} else {
_render(p);
}
dispatchEvent({type:"transitionProgress", target:this, progress:p});
//return(progress);
}
function get progress() {
return(_progress);
}
function init(content, transParams, manager) {
this.content = (content);
direction = (transParams.direction);
duration = (transParams.duration);
easing = (transParams.easing);
this.manager = (manager);
_innerBounds = this.manager._innerBounds;
_outerBounds = this.manager._outerBounds;
_width = this.manager._width;
_height = this.manager._height;
_resetTween();
}
function toString() {
return(("[Transition " + className) + "]");
}
function start() {
content._visible = true;
_twn.start();
}
function stop() {
_twn.fforward();
_twn.stop();
}
function cleanUp() {
removeEventListener("transitionInDone", _manager);
removeEventListener("transitionOutDone", _manager);
removeEventListener("transitionProgress", _manager);
stop();
}
function getNextHighestDepthMC(mc) {
var _local4 = mc.getNextHighestDepth();
if (_local4 != undefined) {
return(_local4);
}
_local4 = -1;
var _local3;
var _local1;
for (var _local5 in mc) {
_local1 = mc[_local5];
if ((typeof(_local1) == "movieclip") && (_local1._parent == mc)) {
_local3 = _local1.getDepth();
if (_local3 > _local4) {
_local4 = _local3;
}
}
}
return(_local4 + 1);
}
function drawBox(mc, x, y, w, h) {
mc.moveTo(x, y);
mc.lineTo(x + w, y);
mc.lineTo(x + w, y + h);
mc.lineTo(x, y + h);
mc.lineTo(x, y);
}
function drawCircle(mc, x, y, r) {
mc.moveTo(x + r, y);
mc.curveTo(r + x, (0.414213562373095 * r) + y, (0.707106781186547 * r) + x, (0.707106781186547 * r) + y);
mc.curveTo((0.414213562373095 * r) + x, r + y, x, r + y);
mc.curveTo((-0.414213562373095 * r) + x, r + y, (-0.707106781186547 * r) + x, (0.707106781186547 * r) + y);
mc.curveTo((-r) + x, (0.414213562373095 * r) + y, (-r) + x, y);
mc.curveTo((-r) + x, (-0.414213562373095 * r) + y, (-0.707106781186547 * r) + x, (-0.707106781186547 * r) + y);
mc.curveTo((-0.414213562373095 * r) + x, (-r) + y, x, (-r) + y);
mc.curveTo((0.414213562373095 * r) + x, (-r) + y, (0.707106781186547 * r) + x, (-0.707106781186547 * r) + y);
mc.curveTo(r + x, (-0.414213562373095 * r) + y, r + x, y);
}
function _render(p) {
}
function _resetTween() {
_twn.stop();
_twn.removeListener(this);
_twn = new mx.transitions.Tween(this, null, easing, 0, 1, duration, true);
_twn.stop();
_twn.prop = "progress";
_twn.addListener(this);
}
function _noEase(t, b, c, d) {
return(((c * t) / d) + b);
}
function onMotionFinished(src) {
if (direction) {
dispatchEvent({type:"transitionOutDone", target:this});
} else {
dispatchEvent({type:"transitionInDone", target:this});
}
}
static var version = "1.1.0.52";
static var IN = 0;
static var OUT = 1;
var type = mx.transitions.Transition;
var className = "Transition";
var _direction = 0;
var _duration = 2;
static var __mixinFED = mx.events.EventDispatcher.initialize(mx.transitions.Transition.prototype);
}
Symbol 347 MovieClip [__Packages.mx.transitions.TransitionManager] Frame 0
class mx.transitions.TransitionManager
{
var _transitions, removeEventListener, _content, addEventListener, _contentAppearance, _innerBounds, _outerBounds, _width, _height, _triggerEvent, dispatchEvent;
function TransitionManager (content) {
this.content = (content);
_transitions = {};
}
function set content(c) {
removeEventListener("allTransitionsInDone", _content);
removeEventListener("allTransitionsOutDone", _content);
_content = c;
saveContentAppearance();
addEventListener("allTransitionsInDone", _content);
addEventListener("allTransitionsOutDone", _content);
//return(content);
}
function get content() {
return(_content);
}
function get transitionsList() {
return(_transitions);
}
function get numTransitions() {
var _local2 = 0;
for (var _local3 in _transitions) {
_local2++;
}
return(_local2);
}
function get numInTransitions() {
var _local3 = 0;
var _local2 = _transitions;
for (var _local4 in _local2) {
if (!_local2[_local4].direction) {
_local3++;
}
}
return(_local3);
}
function get numOutTransitions() {
var _local3 = 0;
var _local2 = _transitions;
for (var _local4 in _local2) {
if (_local2[_local4].direction) {
_local3++;
}
}
return(_local3);
}
function get contentAppearance() {
return(_contentAppearance);
}
static function start(content, transParams) {
if (content.__transitionManager == undefined) {
content.__transitionManager = new mx.transitions.TransitionManager(content);
}
if (transParams.direction == 1) {
content.__transitionManager._triggerEvent = "hide";
} else {
content.__transitionManager._triggerEvent = "reveal";
}
return(content.__transitionManager.startTransition(transParams));
}
function startTransition(transParams) {
removeTransition(findTransition(transParams));
var _local3 = transParams.type;
var _local2 = new _local3[undefined](_content, transParams, this);
addTransition(_local2);
_local2.start();
return(_local2);
}
function addTransition(trans) {
trans.ID = ++IDCount;
_transitions[trans.ID] = trans;
return(trans);
}
function removeTransition(trans) {
if (_transitions[trans.ID] == undefined) {
return(false);
}
trans.cleanUp();
return(delete _transitions[trans.ID]);
}
function findTransition(transParams) {
var _local2;
for (var _local4 in _transitions) {
_local2 = _transitions[_local4];
if (_local2.type == transParams.type) {
return(_local2);
}
}
return(undefined);
}
function removeAllTransitions() {
for (var _local2 in _transitions) {
_transitions[_local2].cleanUp();
removeTransition(_transitions[_local2]);
}
}
function saveContentAppearance() {
var _local2 = _content;
if (_contentAppearance == undefined) {
var _local3 = (_contentAppearance = {});
for (var _local4 in _visualPropList) {
_local3[_local4] = _local2[_local4];
}
_local3.colorTransform = new Color(_local2).getTransform();
}
_innerBounds = _local2.getBounds(targetPath(_local2));
_outerBounds = _local2.getBounds(targetPath(_local2._parent));
_width = _local2._width;
_height = _local2._height;
}
function restoreContentAppearance() {
var _local2 = _content;
var _local3 = _contentAppearance;
for (var _local4 in _visualPropList) {
_local2[_local4] = _local3[_local4];
}
new Color(_local2).setTransform(_local3.colorTransform);
}
function transitionInDone(e) {
removeTransition(e.target);
if (numInTransitions == 0) {
var _local2;
_local2 = _content._visible;
if ((_triggerEvent == "hide") || (_triggerEvent == "hideChild")) {
_content._visible = false;
}
if (_local2) {
dispatchEvent({type:"allTransitionsInDone", target:this});
}
}
}
function transitionOutDone(e) {
removeTransition(e.target);
if (numOutTransitions == 0) {
restoreContentAppearance();
var _local2;
_local2 = _content._visible;
if (_local2 && ((_triggerEvent == "hide") || (_triggerEvent == "hideChild"))) {
_content._visible = false;
}
updateAfterEvent();
if (_local2) {
dispatchEvent({type:"allTransitionsOutDone", target:this});
}
}
}
function toString() {
return("[TransitionManager]");
}
static var version = "1.1.0.52";
static var IDCount = 0;
var type = mx.transitions.TransitionManager;
var className = "TransitionManager";
var _visualPropList = {_x:null, _y:null, _xscale:null, _yscale:null, _alpha:null, _rotation:null};
static var __mixinFED = mx.events.EventDispatcher.initialize(mx.transitions.TransitionManager.prototype);
}
Symbol 348 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 349 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 350 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 351 MovieClip [__Packages.mx.transitions.Fly] Frame 0
class mx.transitions.Fly extends mx.transitions.Transition
{
var _xFinal, __get__manager, _yFinal, _stagePoints, _content, _innerBounds, _xInitial, _yInitial;
function Fly (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function init(content, transParams, manager) {
super.init(content, transParams, manager);
if (transParams.startPoint) {
_startPoint = transParams.startPoint;
}
_xFinal = __get__manager().__get__contentAppearance()._x;
_yFinal = __get__manager().__get__contentAppearance()._y;
var _local6 = Stage.scaleMode;
Stage.scaleMode = "showAll";
var _local3 = (_stagePoints = {});
_local3[1] = {x:0, y:0};
_local3[2] = {x:0, y:0};
_local3[3] = {x:Stage.width, y:0};
_local3[4] = {x:0, y:0};
_local3[5] = {x:Stage.width / 2, y:Stage.height / 2};
_local3[6] = {x:Stage.width, y:0};
_local3[7] = {x:0, y:Stage.height};
_local3[8] = {x:0, y:Stage.height};
_local3[9] = {x:Stage.width, y:Stage.height};
for (var _local5 in _local3) {
_content._parent.globalToLocal(_local3[_local5]);
}
var _local4 = _innerBounds;
_local3[1].x = _local3[1].x - _local4.xMax;
_local3[1].y = _local3[1].y - _local4.yMax;
_local3[2].x = __get__manager().__get__contentAppearance()._x;
_local3[2].y = _local3[2].y - _local4.yMax;
_local3[3].x = _local3[3].x - _local4.xMin;
_local3[3].y = _local3[3].y - _local4.yMax;
_local3[4].x = _local3[4].x - _local4.xMax;
_local3[4].y = __get__manager().__get__contentAppearance()._y;
_local3[5].x = _local3[5].x - ((_local4.xMax + _local4.xMin) / 2);
_local3[5].y = _local3[5].y - ((_local4.yMax + _local4.yMin) / 2);
_local3[6].x = _local3[6].x - _local4.xMin;
_local3[6].y = __get__manager().__get__contentAppearance()._y;
_local3[7].x = _local3[7].x - _local4.xMax;
_local3[7].y = _local3[7].y - _local4.yMin;
_local3[8].x = __get__manager().__get__contentAppearance()._x;
_local3[8].y = _local3[8].y - _local4.yMin;
_local3[9].x = _local3[9].x - _local4.xMin;
_local3[9].y = _local3[9].y - _local4.yMin;
_xInitial = _stagePoints[_startPoint].x;
_yInitial = _stagePoints[_startPoint].y;
Stage.scaleMode = _local6;
}
function _render(p) {
_content._x = _xFinal + ((_xInitial - _xFinal) * (1 - p));
_content._y = _yFinal + ((_yInitial - _yFinal) * (1 - p));
}
static var version = "1.1.0.52";
var type = mx.transitions.Fly;
var className = "Fly";
var _startPoint = 4;
}
Symbol 352 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 353 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 287 MovieClip Frame 115
_root.play();
stop();
Symbol 300 Button
on (press) {
_root.gSoundClass.toggleSound();
}
Symbol 302 Button
on (press) {
_root.gotoAndStop("instructionsPage");
}
Symbol 304 Button
on (press) {
_root.gotoAndStop("gamePage");
_root.gGameClass.initGame();
}
Symbol 314 Button
on (press) {
_root.gotoAndStop("IntroPage");
}
Symbol 325 Button
on (press) {
_root.gotoAndStop("IntroPage");
}
Symbol 335 Button
on (press) {
_root.gotoAndStop("sendPage");
}