Section 1
//ag_intro_mc_41 (A_Typical_Wednesday_Afternoon_fla.ag_intro_mc_41)
package A_Typical_Wednesday_Afternoon_fla {
import flash.display.*;
public dynamic class ag_intro_mc_41 extends MovieClip {
public function ag_intro_mc_41(){
addFrameScript(217, frame218);
}
function frame218(){
stop();
}
}
}//package A_Typical_Wednesday_Afternoon_fla
Section 2
//gameupdates_31 (A_Typical_Wednesday_Afternoon_fla.gameupdates_31)
package A_Typical_Wednesday_Afternoon_fla {
import flash.display.*;
public dynamic class gameupdates_31 extends MovieClip {
public function gameupdates_31(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
gotoAndPlay(2);
}
}
}//package A_Typical_Wednesday_Afternoon_fla
Section 3
//guilives_16 (A_Typical_Wednesday_Afternoon_fla.guilives_16)
package A_Typical_Wednesday_Afternoon_fla {
import flash.display.*;
public dynamic class guilives_16 extends MovieClip {
public function guilives_16(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package A_Typical_Wednesday_Afternoon_fla
Section 4
//guispecials_17 (A_Typical_Wednesday_Afternoon_fla.guispecials_17)
package A_Typical_Wednesday_Afternoon_fla {
import flash.display.*;
public dynamic class guispecials_17 extends MovieClip {
public function guispecials_17(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package A_Typical_Wednesday_Afternoon_fla
Section 5
//MainTimeline (A_Typical_Wednesday_Afternoon_fla.MainTimeline)
package A_Typical_Wednesday_Afternoon_fla {
import flash.display.*;
import flash.events.*;
import mochi.as3.*;
import flash.media.*;
import flash.geom.*;
import flash.filters.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var transSwitch:Boolean;
public var stageRect:Rectangle;
public var missiles:Array;
public var bar:MovieClip;
public var specialScale:Number;
public var plyr:player;
public var comboSound:combosound;
public var specSound:specialSound;
public var badBullets:Array;
public var upgrade:int;
public var enemies:Array;
public var TITLE:Title;
public var difficultyInc:int;
public var ship:Object;
public var t1:track1;
public var t2:track2;
public var subscore:entername;
public var mis:missile;
public var multiHolder:Sprite;
public var multis:Array;
public var specialRot:int;
public var pauseMenu:instructions;
public var bul:bullet;
public var dispBMP:Bitmap;
public var transFrom:String;
public var topPositions:Array;
public var multitxt:multiT;
public var score:int;
public var en1:enemy1;
public var en2:enemy2;
public var en4:enemy4;
public var en5:enemy5;
public var particles:Array;
public var en3:enemy3;
public var newEnemyTime:int;
public var specialX:int;
public var display:BitmapData;
public var emitters:Array;
public var specialY:int;
public var enemies2:Array;
public var enemies3:Array;
public var specials:int;
public var spawnTime:int;
public var shakeTime:int;
public var soundDir:int;
public var playersp:playerspawn;
public var HS:highscores;
public var lives:int;
public var enBul:enemybullet;
public var select:selectoption;
public var stageH:int;
public var letters:Array;
public var stageW:int;
public var levelup:levelupanim;
public var menChange:menuchange;
public var difficultyTime:int;
public var multi:int;
public var gui:GUI;
public var specialTime:int;
public var menuSelect:int;
public var transTo:String;
public var gun:int;
public var transScreen:transscreen;
public var soundOn:Boolean;
public var levup:levelup1;
public var empty:error;
public var soundTrack:int;
public var titleShake:int;
public var enemiesNum:int;
public var dispCT:ColorTransform;
public var timer2:int;
public var spc:special;
public var menuItems:int;
public var goGreyScale:ColorMatrixFilter;
public var multiTime:int;
public var bullets:Array;
public var greyScale:Array;
public var exp1:explode1;
public var exp2:explode2;
public var downKeys:Object;
public var exp4:explode4;
public var LOGO:logo;
public var exp3:explode3;
public var gamePaused:Boolean;
public var levup2:levelup2;
public var difficulty:int;
public var shakePower:int;
public var GAMEOVER:gameover;
public var gameState:String;
public var gunTimer:int;
public var playerDie:playerdeath;
public var part:particle;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3, 3, frame4);
}
public function seekTarget(_arg1, _arg2):void{
var _local3:int;
var _local4:int;
var _local5:Number;
var _local6:Number;
var _local7:*;
var _local8:*;
var _local9:*;
_local3 = (_arg2.x - _arg1.x);
_local4 = (_arg2.y - _arg1.y);
_local5 = Math.atan2(_local4, _local3);
_local6 = (_local5 * (180 / Math.PI));
_local7 = _arg1.rot;
if (_local6 < 0){
_local6 = (_local6 + 360);
} else {
if (_local6 > 360){
_local6 = (_local6 - 360);
};
};
if (_local7 < 0){
_local7 = (_local7 + 360);
} else {
if (_local7 > 360){
_local7 = (_local7 - 360);
};
};
_local8 = (_local7 - _local6);
if (Math.abs(_local8) > _arg1.rotSpeed){
if ((((((_local8 > 0)) && ((_local8 <= 180)))) || ((_local8 < -180)))){
_arg1.rot = (_arg1.rot - _arg1.rotSpeed);
} else {
if ((((((_local8 < 0)) && ((_local8 >= -180)))) || ((_local8 > 180)))){
_arg1.rot = (_arg1.rot + _arg1.rotSpeed);
};
};
} else {
_arg1.rot = _local6;
};
_local9 = (_arg1.rot * (Math.PI / 180));
_arg1.xv = (Math.cos(_local9) * _arg1.speed);
_arg1.yv = (Math.sin(_local9) * _arg1.speed);
}
public function fire():void{
if (gun == 1){
newBullet(ship.x, (ship.y - 15), 270, 2);
} else {
if (gun == 2){
newBullet(ship.x, (ship.y - 15), 270, 1);
newBullet(ship.x, (ship.y - 20), 270, 2);
} else {
if (gun == 3){
newBullet(ship.x, (ship.y - 15), 270, 1);
newBullet(ship.x, (ship.y - 20), 270, 2);
newBullet(ship.x, (ship.y - 30), 270, 3);
} else {
if (gun == 4){
newBullet(ship.x, (ship.y - 15), 270, 1);
newBullet(ship.x, (ship.y - 30), 270, 3);
newBullet(ship.x, (ship.y - 20), 270, 2);
newBullet((ship.x + 20), ship.y, 280, 2);
newBullet((ship.x - 20), ship.y, 260, 2);
} else {
if (gun == 5){
newBullet(ship.x, (ship.y - 15), 270, 4);
newBullet(ship.x, (ship.y - 30), 270, 6);
newBullet(ship.x, (ship.y - 20), 270, 5);
newBullet((ship.x + 25), ship.y, 290, 5);
newBullet((ship.x - 25), ship.y, 250, 5);
newBullet((ship.x + 20), ship.y, 280, 5);
newBullet((ship.x - 20), ship.y, 260, 5);
};
};
};
};
};
}
public function enemyExplode(_arg1:int, _arg2:int, _arg3:int):void{
var _local4:int;
_local4 = 0;
while (_local4 < 15) {
newParticle(_arg1, _arg2, (Math.random() * 360), ((Math.random() * 5) + 2), _arg3, 0.02, 0);
_local4++;
};
}
function frame3(){
stop();
timer2 = 0;
this.addEventListener(Event.ENTER_FRAME, updatelogo2);
this.addEventListener(MouseEvent.MOUSE_UP, getLink2);
}
function frame4(){
stop();
stageW = 550;
stageH = 550;
stageRect = new Rectangle(0, 0, stageW, stageH);
greyScale = [0.33, 0.33, 0.33, 0, 0, 0.33, 0.33, 0.33, 0, 0, 0.33, 0.33, 0.33, 0, 0, 0.33, 0.33, 0.33, 1, 0];
goGreyScale = new ColorMatrixFilter(greyScale);
stage.quality = StageQuality.LOW;
SoundMixer.stopAll();
SoundMixer.soundTransform = new SoundTransform(0, 0);
soundDir = 1;
soundTrack = 2;
soundOn = true;
gameState = "title";
gamePaused = true;
transSwitch = false;
t1 = new track1();
t2 = new track2();
exp1 = new explode1();
exp2 = new explode2();
exp3 = new explode3();
exp4 = new explode4();
levup = new levelup1();
levup2 = new levelup2();
menChange = new menuchange();
select = new selectoption();
comboSound = new combosound();
playerDie = new playerdeath();
specSound = new specialSound();
empty = new error();
dispCT = new ColorTransform(1, 1, 1, 0.75, 0, 0, 0, 0);
menuSelect = 1;
menuItems = 3;
shakeTime = 0;
shakePower = 10;
gunTimer = 500;
multiHolder = new Sprite();
stage.addEventListener(Event.ENTER_FRAME, update);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keydown);
stage.addEventListener(KeyboardEvent.KEY_UP, keyup);
stage.addEventListener(MouseEvent.MOUSE_UP, mousedown);
init();
}
function frame1(){
stage.showDefaultContextMenu = false;
stop();
MochiServices.connect("c16bc41e88d18ae7", root);
this.addEventListener(Event.ENTER_FRAME, loadGame);
}
public function newParticle(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:Number, _arg7:Number):void{
var _local8:Object;
_local8 = new Object();
_local8.x = _arg1;
_local8.y = _arg2;
_local8.rot = _arg3;
_local8.speed = _arg4;
_local8.t = _arg5;
_local8.s = 1;
_local8.sr = _arg6;
_local8.alph = _arg7;
_local8.xv = (Math.cos((_arg3 * (Math.PI / 180))) * _arg4);
_local8.yv = (Math.sin((_arg3 * (Math.PI / 180))) * _arg4);
particles.push(_local8);
}
public function die():void{
playerExplode();
if (lives > 0){
spawnTime = 90;
lives--;
playersp.gotoAndPlay(1);
playersp.x = ship.x;
playersp.y = ship.y;
shakeTime = 30;
shakePower = 20;
} else {
gameState = "trans";
transTo = "gameover";
transScreen.gotoAndPlay(2);
transSwitch = false;
ship.y = 650;
difficulty = 3;
newEnemyTime = 50;
difficultyTime = 0;
difficultyInc = 500000;
soundDir = 2;
specialTime = 0;
specialScale = 0;
};
dispBMP.x = 0;
dispBMP.y = 0;
}
public function updateMultis():void{
var _local1:int;
var _local2:Object;
var _local3:Matrix;
_local1 = 0;
while (_local1 < multis.length) {
_local2 = multis[_local1];
_local2.y = (_local2.y - _local2.speed);
_local2.s = (_local2.s - _local2.sr);
multitxt.txt.text = ("x" + String(_local2.num));
_local3 = new Matrix();
_local3.scale(_local2.s, _local2.s);
_local3.translate(_local2.x, _local2.y);
display.draw(multitxt, _local3);
if (_local2.s <= 0){
multis.splice(_local1, 1);
_local1--;
};
_local1++;
};
}
public function shootSpread(_arg1:int, _arg2:int):void{
var _local3:*;
_local3 = (Math.atan2((ship.y - _arg2), (ship.x - _arg1)) * (180 / Math.PI));
newBadBullet(_arg1, _arg2, (_local3 + ((Math.random() * 45) - (Math.random() * 45))));
}
public function updateShip():void{
var _local1:Matrix;
ship.rot = (ship.rot + 5);
if (upgrade >= ((30 * gun) - 10)){
upgrade = 0;
if (gun < 5){
gun++;
levup.play();
levup2.play();
if (gun <= 4){
levelup.gotoAndPlay(2);
} else {
if (specials < 3){
specials++;
};
levelup.gotoAndPlay(136);
};
};
};
if (spawnTime > 0){
spawnTime--;
if (spawnTime == 60){
ship.rot = 0;
};
};
if (spawnTime <= 60){
if ((((((downKeys.key90 == true)) || ((downKeys.key87 == true)))) || ((downKeys.key89 == true)))){
ship.fireTime++;
if (ship.fireTime >= ship.fireRate){
ship.fireTime = 0;
fire();
};
};
if ((((downKeys.key88 == true)) && ((specialTime == 0)))){
if (specials > 0){
specSound.play();
specialTime = 210;
specialX = ship.x;
specialY = ship.y;
specialRot = 0;
specialScale = 1;
specials--;
};
};
if (downKeys.key37 == true){
if (ship.x >= ship.speed){
ship.x = (ship.x - ship.speed);
} else {
ship.x = 0;
};
};
if (downKeys.key39 == true){
if (ship.x <= (stageW - ship.speed)){
ship.x = (ship.x + ship.speed);
} else {
ship.x = stageW;
};
};
if (downKeys.key38 == true){
if (ship.y >= ship.speed){
ship.y = (ship.y - ship.speed);
} else {
ship.y = 0;
};
};
if (downKeys.key40 == true){
if (ship.y <= (stageH - ship.speed)){
ship.y = (ship.y + ship.speed);
} else {
ship.y = stageH;
};
};
};
if ((((spawnTime == 0)) || ((((spawnTime <= 60)) && (((int((spawnTime / 4)) % 2) == 0)))))){
_local1 = new Matrix();
_local1.rotate((ship.rot * (Math.PI / 180)));
_local1.translate(ship.x, ship.y);
display.draw(plyr, _local1);
};
}
public function updateBullets():void{
var _local1:int;
var _local2:Object;
var _local3:Matrix;
var _local4:int;
var _local5:int;
var _local6:int;
_local1 = 0;
while (_local1 < bullets.length) {
_local2 = bullets[_local1];
_local2.x = (_local2.x + _local2.xv);
_local2.y = (_local2.y + _local2.yv);
bul.gotoAndStop(_local2.t);
_local3 = new Matrix();
_local3.rotate((_local2.rot * (Math.PI / 180)));
_local3.translate(_local2.x, _local2.y);
display.draw(bul, _local3);
_local4 = 0;
while (_local4 < enemies.length) {
_local5 = (enemies[_local4].x - _local2.x);
_local6 = (enemies[_local4].y - _local2.y);
if (((_local5 * _local5) + (_local6 * _local6)) <= ((enemies[_local4].rad + 10) * (enemies[_local4].rad + 10))){
bulletExplode(_local2.x, _local2.y);
enemies[_local4].health--;
_local2.dead = true;
};
_local4++;
};
_local4 = 0;
while (_local4 < enemies2.length) {
_local5 = (enemies2[_local4].x - _local2.x);
_local6 = (enemies2[_local4].y - _local2.y);
if (((_local5 * _local5) + (_local6 * _local6)) <= ((enemies2[_local4].rad + 10) * (enemies2[_local4].rad + 10))){
bulletExplode(_local2.x, _local2.y);
enemies2[_local4].health--;
_local2.dead = true;
};
_local4++;
};
_local4 = 0;
while (_local4 < enemies3.length) {
_local5 = (enemies3[_local4].x - _local2.x);
_local6 = (enemies3[_local4].y - _local2.y);
if (((_local5 * _local5) + (_local6 * _local6)) <= ((enemies3[_local4].rad + 10) * (enemies3[_local4].rad + 10))){
bulletExplode(_local2.x, _local2.y);
enemies3[_local4].health--;
_local2.dead = true;
};
_local4++;
};
_local4 = 0;
while (_local4 < missiles.length) {
_local5 = (missiles[_local4].x - _local2.x);
_local6 = (missiles[_local4].y - _local2.y);
if (((_local5 * _local5) + (_local6 * _local6)) <= ((missiles[_local4].rad + 10) * (missiles[_local4].rad + 10))){
bulletExplode(_local2.x, _local2.y);
missiles[_local4].health--;
_local2.dead = true;
};
_local4++;
};
if ((((((((((_local2.x < -20)) || ((_local2.x > (stageW + 20))))) || ((_local2.y < -20)))) || ((_local2.y > (stageH + 20))))) || ((_local2.dead == true)))){
bullets.splice(_local1, 1);
_local1--;
};
_local1++;
};
}
public function trans():void{
var _local1:int;
var _local2:String;
var _local3:*;
var _local4:int;
if (transTo == "title"){
if (transFrom == "logo"){
if (transSwitch == false){
removeChild(LOGO);
transSwitch = true;
TITLE = new Title();
addChild(TITLE);
TITLE.button1.gotoAndPlay(2);
TITLE.alpha = 0;
} else {
TITLE.alpha = (TITLE.alpha + 0.04);
updateParticles();
manageEnemies();
updateEmitters();
updateEnemies();
updateEnemies2();
updateBadBullets();
if (TITLE.alpha >= 1){
gameState = "title";
menuSelect = 1;
TITLE.button1.gotoAndPlay(2);
TITLE.x = -560;
display.draw(TITLE);
letters = new Array();
transSwitch = false;
};
};
} else {
if (transFrom == "gameover"){
if (transSwitch == false){
updateParticles();
manageEnemies();
updateEmitters();
updateEnemies();
updateEnemies2();
updateBadBullets();
display.draw(GAMEOVER);
if (transScreen.currentFrame == 70){
GAMEOVER.button1.gotoAndStop(1);
TITLE = new Title();
addChild(TITLE);
TITLE.button1.gotoAndStop(1);
TITLE.button2.gotoAndStop(1);
TITLE.button2.gotoAndStop(1);
TITLE.x = -600;
display.fillRect(stageRect, 0xFFFFFF);
display.draw(TITLE);
transSwitch = true;
};
} else {
updateParticles();
manageEnemies();
updateEmitters();
updateEnemies();
updateEnemies2();
updateBadBullets();
display.draw(TITLE);
if (transScreen.currentFrame == 1){
gameState = "title";
menuSelect = 1;
TITLE.button1.gotoAndPlay(2);
transSwitch = false;
};
};
} else {
if (transFrom == "highscores"){
if (transSwitch == false){
updateParticles();
manageEnemies();
updateEmitters();
updateEnemies();
updateEnemies2();
updateBadBullets();
if (transScreen.currentFrame == 70){
TITLE = new Title();
addChild(TITLE);
TITLE.button1.gotoAndStop(1);
TITLE.button2.gotoAndStop(1);
TITLE.button2.gotoAndStop(1);
TITLE.x = -600;
display.fillRect(stageRect, 0xFFFFFF);
display.draw(TITLE);
removeChild(HS);
transSwitch = true;
};
} else {
updateParticles();
manageEnemies();
updateEmitters();
updateEnemies();
updateEnemies2();
updateBadBullets();
display.draw(TITLE);
if (transScreen.currentFrame == 1){
gameState = "title";
menuSelect = 1;
TITLE.button1.gotoAndPlay(2);
transSwitch = false;
};
};
};
};
};
} else {
if (transTo == "instructions"){
if (transSwitch == false){
updateEmitters();
updateEnemies();
updateEnemies2();
updateBadBullets();
display.draw(TITLE);
if (transScreen.currentFrame == 70){
_local1 = 0;
while (_local1 < enemies.length) {
enemies.splice(_local1, 1);
_local1--;
_local1++;
};
_local1 = 0;
while (_local1 < enemies2.length) {
enemies2.splice(_local1, 1);
_local1--;
_local1++;
};
_local1 = 0;
while (_local1 < badBullets.length) {
badBullets.splice(_local1, 1);
_local1--;
_local1++;
};
_local1 = 0;
while (_local1 < emitters.length) {
emitters.splice(_local1, 1);
_local1--;
_local1++;
};
_local1 = 0;
while (_local1 < particles.length) {
particles.splice(_local1, 1);
_local1--;
_local1++;
};
removeChild(TITLE);
pauseMenu = new instructions();
transSwitch = true;
};
} else {
display.fillRect(stageRect, 0xFFFFFF);
display.draw(pauseMenu);
if (transScreen.currentFrame == 1){
gameState = "instructions";
transSwitch = false;
};
};
} else {
if (transTo == "game"){
if (transSwitch == false){
display.draw(pauseMenu);
if (transScreen.currentFrame == 70){
pauseMenu.gotoAndStop(3);
display.fillRect(stageRect, 0xFFFFFF);
transSwitch = true;
};
} else {
display.fillRect(stageRect, 0xFFFFFF);
display.draw(gui);
if (transScreen.currentFrame == 1){
initGame();
gameState = "game";
gamePaused = false;
};
};
} else {
if (transTo == "highscores"){
if (transFrom == "title"){
if (transSwitch == false){
updateEmitters();
updateEnemies();
updateEnemies2();
updateBadBullets();
display.draw(TITLE);
if (transScreen.currentFrame == 70){
removeChild(TITLE);
transSwitch = true;
addChild(HS);
HS.getScores();
};
} else {
updateEmitters();
updateEnemies();
updateEnemies2();
updateBadBullets();
if (transScreen.currentFrame == 1){
gameState = "highscores";
transSwitch = false;
};
};
} else {
if (transFrom == "gameover"){
if (transSwitch == false){
updateParticles();
manageEnemies();
updateEmitters();
updateEnemies();
updateEnemies2();
updateBadBullets();
display.draw(GAMEOVER);
if (transScreen.currentFrame == 70){
display.fillRect(stageRect, 0xFFFFFF);
addChild(HS);
transSwitch = true;
HS.saveScore(score);
};
} else {
updateParticles();
manageEnemies();
updateEmitters();
updateEnemies();
updateEnemies2();
updateBadBullets();
if (transScreen.currentFrame == 1){
gameState = "highscores";
transSwitch = false;
};
};
};
};
} else {
if (transTo == "gameover"){
if (transSwitch == false){
updateShip();
updateSpecial();
updateEmitters();
updateParticles();
updateEnemies();
updateEnemies2();
updateEnemies3();
updateMissiles();
updateBullets();
updateMultis();
updateBadBullets();
display.draw(gui);
if (transScreen.currentFrame == 70){
_local1 = 0;
while (_local1 < enemies.length) {
enemies.splice(_local1, 1);
_local1--;
_local1++;
};
_local1 = 0;
while (_local1 < enemies2.length) {
enemies2.splice(_local1, 1);
_local1--;
_local1++;
};
_local1 = 0;
while (_local1 < enemies3.length) {
enemies3.splice(_local1, 1);
_local1--;
_local1++;
};
_local1 = 0;
while (_local1 < badBullets.length) {
badBullets.splice(_local1, 1);
_local1--;
_local1++;
};
_local1 = 0;
while (_local1 < emitters.length) {
emitters.splice(_local1, 1);
_local1--;
_local1++;
};
_local1 = 0;
while (_local1 < particles.length) {
particles.splice(_local1, 1);
_local1--;
_local1++;
};
gui.lives.gotoAndStop(4);
gui.specials.gotoAndStop(4);
gui.scoretxt.text = "0000000000";
enemiesNum = 0;
display.fillRect(stageRect, 0xFFFFFF);
transSwitch = true;
GAMEOVER = new gameover();
GAMEOVER.button1.gotoAndPlay(2);
GAMEOVER.score.text = "SCORE: ";
_local2 = String(score);
_local3 = (10 - _local2.length);
_local4 = 0;
while (_local4 < _local3) {
GAMEOVER.score.appendText("0");
_local4++;
};
GAMEOVER.score.appendText(_local2);
menuSelect = 1;
};
} else {
display.fillRect(stageRect, 0xFFFFFF);
display.draw(GAMEOVER);
if (transScreen.currentFrame == 1){
gameState = "gameover";
transSwitch = false;
};
};
};
};
};
};
};
}
public function updateEmitters():void{
var _local1:int;
var _local2:Object;
_local1 = 0;
while (_local1 < emitters.length) {
_local2 = emitters[_local1];
_local2.timer++;
if (_local2.timer >= _local2.er){
_local2.timer = 0;
_local2.emits--;
if (_local2.t == 1){
newEnemy1(_local2.path, _local2.speed);
} else {
if (_local2.t == 2){
newEnemy2(_local2.path, _local2.speed);
};
};
if (_local2.emits <= 0){
enemiesNum--;
emitters.splice(_local1, 1);
_local1--;
};
};
_local1++;
};
}
public function updatelogo2(_arg1:Event):void{
timer2++;
if (timer2 > 218){
this.removeEventListener(Event.ENTER_FRAME, updatelogo2);
this.removeEventListener(MouseEvent.MOUSE_UP, getLink2);
nextFrame();
};
}
public function updateEnemies2():void{
var _local1:int;
var _local2:Object;
var _local3:Matrix;
var _local4:int;
var _local5:int;
var _local6:*;
var _local7:*;
var _local8:*;
_local1 = 0;
while (_local1 < enemies2.length) {
_local2 = enemies2[_local1];
_local3 = new Matrix();
_local3.rotate(_local2.rot);
_local3.translate(_local2.x, _local2.y);
display.draw(en3, _local3);
if (specialTime > 0){
_local6 = (specialX - _local2.x);
_local7 = (specialY - _local2.y);
_local8 = ((_local6 * _local6) + (_local7 * _local7));
if (_local8 <= ((15 * specialScale) * (15 * specialScale))){
_local2.health = 0;
};
};
_local2.shootTime--;
if (_local2.shootTime <= 0){
_local2.shootTime = ((Math.random() * 80) + 40);
shootRing((_local2.x + (_local2.xv * 3)), (_local2.y + (_local2.yv * 3)));
};
_local4 = (ship.x - _local2.x);
_local5 = (ship.y - _local2.y);
if (((_local4 * _local4) + (_local5 * _local5)) <= (_local2.rad * _local2.rad)){
if (spawnTime == 0){
if (gameState == "game"){
die();
};
};
};
_local2.x = (_local2.x + _local2.xv);
_local2.y = (_local2.y + _local2.yv);
_local2.pos++;
_local2.rot = (_local2.rot + 3);
if ((((_local2.pos > 300)) && ((((((((_local2.x < -30)) || ((_local2.x > (stageW + 30))))) || ((_local2.y < -30)))) || ((_local2.y > (stageH + 30))))))){
enemiesNum--;
enemies2.splice(_local1, 1);
_local1--;
} else {
if (_local2.health <= 0){
enemiesNum--;
shakeTime = 15;
shakePower = 12;
exp3.play();
enemyExplode(_local2.x, _local2.y, 6);
score = (score + (multi * 1654));
upgrade = (upgrade + 10);
if ((((multiTime > 0)) || ((multi == 1)))){
multi++;
};
multiTime = 50;
if (multi > 2){
newMulti(_local2.x, _local2.y, (multi - 1));
};
enemies2.splice(_local1, 1);
_local1--;
};
};
_local1++;
};
}
public function newBullet(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{
var _local5:Object;
_local5 = new Object();
_local5.x = _arg1;
_local5.y = _arg2;
_local5.rot = _arg3;
_local5.t = _arg4;
_local5.xv = (Math.cos((_arg3 * (Math.PI / 180))) * 20);
_local5.yv = (Math.sin((_arg3 * (Math.PI / 180))) * 20);
_local5.dead = false;
bullets.push(_local5);
}
public function updateEnemies3():void{
var _local1:int;
var _local2:Object;
var _local3:Matrix;
var _local4:int;
var _local5:int;
var _local6:*;
var _local7:*;
var _local8:*;
_local1 = 0;
while (_local1 < enemies3.length) {
_local2 = enemies3[_local1];
_local3 = new Matrix();
_local3.rotate((_local2.rot * (Math.PI / 180)));
_local3.translate(_local2.x, _local2.y);
if (_local2.t == 1){
display.draw(en4, _local3);
} else {
display.draw(en5, _local3);
};
if (specialTime > 0){
_local6 = (specialX - _local2.x);
_local7 = (specialY - _local2.y);
_local8 = ((_local6 * _local6) + (_local7 * _local7));
if (_local8 <= ((15 * specialScale) * (15 * specialScale))){
_local2.health = 0;
};
};
_local4 = (ship.x - _local2.x);
_local5 = (ship.y - _local2.y);
if (((_local4 * _local4) + (_local5 * _local5)) <= (_local2.rad * _local2.rad)){
if (spawnTime == 0){
if (gameState == "game"){
die();
};
};
};
_local2.shootTime--;
if (_local2.shootTime <= 0){
if (_local2.t == 1){
_local2.shootTime = 10;
newBadBullet(_local2.x, _local2.y, _local2.rot);
} else {
_local2.shootTime = 100;
newMissile(_local2.x, (_local2.y + 30), _local2.rot);
};
};
if (_local2.pos > 0){
_local2.x = (_local2.x + _local2.xv);
_local2.y = (_local2.y + _local2.yv);
};
_local2.pos--;
_local2.rot = (_local2.rot + (1 * _local2.dir));
if ((((_local2.rot >= 120)) || ((_local2.rot <= 60)))){
_local2.dir = (_local2.dir * -1);
};
if (_local2.health <= 0){
enemiesNum--;
shakeTime = 15;
shakePower = 12;
topPositions.push(_local2.targX);
enemyExplode(_local2.x, _local2.y, (6 + _local2.t));
if (_local2.t == 1){
exp4.play();
score = (score + (multi * 7935));
upgrade = (upgrade + 15);
if ((((multiTime > 0)) || ((multi == 1)))){
multi++;
};
multiTime = 100;
} else {
exp4.play();
score = (score + (multi * 4723));
upgrade = (upgrade + 20);
if ((((multiTime > 0)) || ((multi == 1)))){
multi++;
};
multiTime = 100;
};
if (multi > 2){
newMulti(_local2.x, _local2.y, (multi - 1));
};
enemies3.splice(_local1, 1);
_local1--;
};
_local1++;
};
}
public function playerExplode():void{
var _local1:int;
var _local2:int;
playerDie.play();
_local1 = 0;
while (_local1 < 15) {
newParticle(ship.x, ship.y, (Math.random() * 360), ((Math.random() * 5) + 2), 3, 0.01, 0);
_local1++;
};
_local2 = 0;
while (_local2 < 10) {
newParticle(ship.x, ship.y, (Math.random() * 360), ((Math.random() * 3) + 2), 4, 0.02, 0);
_local2++;
};
gun = 1;
upgrade = 0;
}
public function update(_arg1:Event):void{
updateSound();
if (gameState == "trans"){
trans();
display.draw(transScreen);
display.colorTransform(stageRect, dispCT);
} else {
if (gameState == "logo"){
if (LOGO.currentFrame == 140){
gameState = "trans";
transTo = "title";
transFrom = "logo";
};
updateParticles();
manageEnemies();
updateEmitters();
updateEnemies();
updateEnemies2();
updateBadBullets();
display.colorTransform(stageRect, dispCT);
} else {
if (gameState == "title"){
updateParticles();
manageEnemies();
updateEmitters();
updateEnemies();
updateEnemies2();
updateBadBullets();
updateTitle();
display.draw(transScreen);
display.colorTransform(stageRect, dispCT);
} else {
if (gameState == "gameover"){
updateParticles();
manageEnemies();
updateEmitters();
updateEnemies();
updateEnemies2();
updateBadBullets();
display.draw(GAMEOVER);
display.draw(transScreen);
display.colorTransform(stageRect, dispCT);
} else {
if (gameState == "highscores"){
updateParticles();
manageEnemies();
updateEmitters();
updateEnemies();
updateEnemies2();
updateBadBullets();
display.draw(transScreen);
display.colorTransform(stageRect, dispCT);
} else {
if (gameState == "instructions"){
display.draw(pauseMenu);
display.draw(transScreen);
display.colorTransform(stageRect, dispCT);
} else {
if (gameState == "game"){
if (gamePaused != true){
manageEnemies();
updateGUI();
updateShip();
updateSpecial();
updateEmitters();
updateParticles();
updateEnemies();
updateEnemies2();
updateEnemies3();
updateMissiles();
updateBullets();
updateMultis();
updateBadBullets();
if (shakeTime > 0){
shakeTime--;
dispBMP.x = ((Math.random() * shakePower) - (Math.random() * shakePower));
dispBMP.y = ((Math.random() * shakePower) - (Math.random() * shakePower));
if (shakeTime == 0){
dispBMP.x = 0;
dispBMP.y = 0;
};
};
display.colorTransform(stageRect, dispCT);
} else {
display.draw(pauseMenu);
};
};
};
};
};
};
};
};
}
public function mousedown(_arg1:MouseEvent):void{
var _local2:URLRequest;
if (gameState == "logo"){
_local2 = new URLRequest("http://www.alillm.com");
navigateToURL(_local2, "_blank");
};
}
public function missileExplode(_arg1:int, _arg2:int):void{
var _local3:int;
var _local4:int;
exp1.play();
_local3 = 0;
while (_local3 < 10) {
newParticle(_arg1, _arg2, (Math.random() * 360), ((Math.random() * 3) + 2), 9, 0.02, 0);
_local3++;
};
_local4 = 0;
while (_local4 < 8) {
newParticle(_arg1, _arg2, (Math.random() * 360), ((Math.random() * 3) + 2), 8, 0.02, 0);
_local4++;
};
}
public function shootRing(_arg1:int, _arg2:int):void{
var _local3:*;
var _local4:int;
var _local5:*;
var _local6:*;
_local3 = 0;
_local4 = 0;
while (_local4 < 20) {
_local5 = (Math.cos((_local3 * (Math.PI / 180))) * 3);
_local6 = (Math.sin((_local3 * (Math.PI / 180))) * 3);
newBadBullet((_arg1 + (_local5 * 15)), (_arg2 + (_local6 * 15)), _local3);
_local3 = (_local3 + 18);
_local4++;
};
}
public function manageEnemies():void{
if (enemiesNum < difficulty){
if (enemiesNum == 0){
newEnemyTime = (Math.random() * 50);
newEnemy();
} else {
newEnemyTime--;
if (newEnemyTime <= 0){
newEnemyTime = (Math.random() * 50);
newEnemy();
};
};
};
difficultyTime++;
if (difficultyTime == difficultyInc){
difficultyInc = (difficultyInc + 100);
difficultyTime = 0;
difficulty++;
};
}
public function init():void{
downKeys = new Object();
display = new BitmapData(stageW, stageH, true, 0xFFFFFF);
dispBMP = new Bitmap(display);
addChild(dispBMP);
LOGO = new logo();
gameState = "logo";
addChild(LOGO);
LOGO.x = (stageW / 2);
LOGO.y = (stageH / 2);
HS = new highscores();
t2.play(0, 999);
part = new particle();
addChild(part);
part.x = -100;
plyr = new player();
addChild(plyr);
plyr.x = -100;
en1 = new enemy1();
addChild(en1);
en1.x = -100;
en2 = new enemy2();
addChild(en2);
en2.x = -100;
en3 = new enemy3();
addChild(en3);
en3.x = -100;
en4 = new enemy4();
addChild(en4);
en4.x = -100;
en5 = new enemy5();
addChild(en5);
en5.x = -100;
bul = new bullet();
addChild(bul);
bul.x = -100;
mis = new missile();
addChild(mis);
mis.x = -100;
enBul = new enemybullet();
addChild(enBul);
enBul.x = -100;
spc = new special();
addChild(spc);
spc.x = -500;
particles = new Array();
bullets = new Array();
badBullets = new Array();
emitters = new Array();
enemies = new Array();
enemies2 = new Array();
enemies3 = new Array();
multis = new Array();
missiles = new Array();
topPositions = [92, 275, 460];
difficulty = 3;
enemiesNum = 0;
newEnemyTime = 50;
difficultyTime = 0;
difficultyInc = 500000;
spawnTime = 90;
specialTime = 0;
specialScale = 1;
score = 0;
lives = 3;
specials = 3;
multi = 1;
multiTime = 0;
titleShake = 1;
ship = new Object();
ship.x = (stageW / 2);
ship.y = (stageH - 100);
ship.speed = 5;
ship.fireRate = 5;
ship.fireTime = 0;
ship.rot = 0;
gui = new GUI();
gui.lives.gotoAndStop(4);
gui.specials.gotoAndStop(4);
transScreen = new transscreen();
}
public function updateTitle():void{
display.draw(TITLE);
if (titleShake > 0){
titleShake--;
if (titleShake > 100){
TITLE.exposure.x = ((271 + (Math.random() * 5)) - (Math.random() * 5));
TITLE.exposure.y = ((171 + (Math.random() * 5)) - (Math.random() * 5));
} else {
if (titleShake == 100){
TITLE.exposure.x = 271;
TITLE.exposure.y = 171;
} else {
if (titleShake == 0){
titleShake = (120 + (Math.random() * 50));
};
};
};
};
}
public function initGame():void{
removeChild(dispBMP);
display = new BitmapData(stageW, stageH, true, 0xFFFFFF);
dispBMP = new Bitmap(display);
addChild(dispBMP);
addChild(multiHolder);
gun = 1;
upgrade = 0;
difficulty = 1;
enemiesNum = 0;
newEnemyTime = 50;
difficultyTime = 0;
difficultyInc = 600;
spawnTime = 90;
specialTime = 0;
specialScale = 1;
topPositions = [92, 275, 460];
score = 0;
lives = 3;
specials = 3;
multi = 1;
multiTime = 0;
levelup = new levelupanim();
addChild(levelup);
levelup.y = 10;
playersp = new playerspawn();
playersp.x = (stageW / 2);
playersp.y = (stageH - 100);
addChild(playersp);
gameState = "game";
multitxt = new multiT();
addChild(multitxt);
multitxt.x = -100;
ship = new Object();
ship.x = (stageW / 2);
ship.y = (stageH - 100);
ship.speed = 5;
ship.fireRate = 5;
ship.fireTime = 0;
ship.rot = 0;
bullets = new Array();
badBullets = new Array();
emitters = new Array();
enemies = new Array();
enemies2 = new Array();
enemies3 = new Array();
multis = new Array();
missiles = new Array();
}
public function updateEnemies():void{
var _local1:int;
var _local2:Object;
var _local3:Matrix;
var _local4:int;
var _local5:int;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:Number;
_local1 = 0;
while (_local1 < enemies.length) {
_local2 = enemies[_local1];
_local3 = new Matrix();
_local3.rotate(_local2.rot);
_local3.translate(_local2.x, _local2.y);
if (_local2.t == 1){
display.draw(en1, _local3);
} else {
display.draw(en2, _local3);
};
if (specialTime > 0){
_local6 = (specialX - _local2.x);
_local7 = (specialY - _local2.y);
_local8 = ((_local6 * _local6) + (_local7 * _local7));
if (_local8 <= ((15 * specialScale) * (15 * specialScale))){
_local2.health = 0;
};
};
if (_local2.t == 2){
_local2.shootTime--;
if (_local2.shootTime <= 0){
_local2.shootTime = ((Math.random() * 80) + 40);
shootSpread(_local2.x, _local2.y);
};
};
_local4 = (ship.x - _local2.x);
_local5 = (ship.y - _local2.y);
if (((_local4 * _local4) + (_local5 * _local5)) <= (_local2.rad * _local2.rad)){
if (spawnTime == 0){
if (gameState == "game"){
die();
};
};
};
_local2.x = (_local2.x + _local2.xv);
_local2.y = (_local2.y + _local2.yv);
_local2.pos++;
if (_local2.pos < (_local2.path.length - 1)){
_local9 = Math.atan2((_local2.path[(_local2.pos + 1)][1] - _local2.path[_local2.pos][1]), (_local2.path[(_local2.pos + 1)][0] - _local2.path[_local2.pos][0]));
_local2.rot = _local9;
_local2.xv = (Math.cos(_local9) * _local2.speed);
_local2.yv = (Math.sin(_local9) * _local2.speed);
} else {
if ((((((((_local2.x < -30)) || ((_local2.x > (stageW + 30))))) || ((_local2.y < -30)))) || ((_local2.y > (stageH + 30))))){
enemies.splice(_local1, 1);
_local1--;
};
};
if ((((((((((_local2.health <= 0)) && ((_local2.x > -30)))) && ((_local2.x < (stageW + 30))))) && ((_local2.y > -30)))) && ((_local2.y < (stageH + 30))))){
shakeTime = 10;
shakePower = 8;
enemyExplode(_local2.x, _local2.y, _local2.t);
if (_local2.t == 1){
score = (score + (multi * 352));
upgrade++;
exp1.play();
if ((((multiTime > 0)) || ((multi == 1)))){
multi++;
};
multiTime = 10;
} else {
score = (score + (multi * 851));
upgrade = (upgrade + 3);
exp2.play();
if ((((multiTime > 0)) || ((multi == 1)))){
multi++;
};
multiTime = 18;
};
if (multi > 2){
newMulti(_local2.x, _local2.y, (multi - 1));
};
enemies.splice(_local1, 1);
_local1--;
};
_local1++;
};
}
public function keyup(_arg1:KeyboardEvent):void{
downKeys[("key" + _arg1.keyCode)] = false;
}
public function newMissile(_arg1:int, _arg2:int, _arg3:int):void{
var _local4:Object;
_local4 = new Object();
_local4.x = _arg1;
_local4.y = _arg2;
_local4.rot = _arg3;
_local4.xv = (Math.cos((_arg3 * (Math.PI / 180))) * 6);
_local4.yv = (Math.sin((_arg3 * (Math.PI / 180))) * 6);
_local4.dead = false;
_local4.rotSpeed = 2;
_local4.speed = 6;
_local4.rad = 10;
_local4.smokeTime = 3;
_local4.health = 5;
missiles.push(_local4);
}
public function newEnemy1(_arg1:Array, _arg2:int):void{
var _local3:Object;
var _local4:Number;
_local3 = new Object();
_local3.path = _arg1;
_local3.x = _local3.path[0][0];
_local3.y = _local3.path[0][1];
_local4 = Math.atan2((_local3.path[1][1] - _local3.path[0][1]), (_local3.path[1][0] - _local3.path[0][0]));
_local3.rot = _local4;
_local3.pos = 0;
_local3.rad = 15;
_local3.speed = _arg2;
_local3.xv = (Math.cos(_local4) * _arg2);
_local3.yv = (Math.sin(_local4) * _arg2);
_local3.shootTime = (Math.random() * 120);
_local3.t = 1;
_local3.health = 1;
_local3.dead = false;
enemies.push(_local3);
}
public function newEnemy3():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:*;
var _local9:Object;
_local1 = ((Math.random() * 100) + 225);
_local2 = ((Math.random() * 100) + 225);
_local3 = (Math.random() * 4);
_local4 = (Math.random() * stageW);
_local5 = (Math.random() * (stageH - 150));
if (_local3 == 0){
_local6 = -20;
_local7 = _local5;
} else {
if (_local3 == 1){
_local6 = (stageW + 20);
_local7 = _local5;
} else {
_local6 = _local4;
_local7 = -20;
};
};
_local8 = Math.atan2((_local2 - _local7), (_local1 - _local6));
_local9 = new Object();
_local9.x = _local6;
_local9.y = _local7;
_local9.rot = (Math.random() * 360);
_local9.speed = 2;
_local9.pos = 0;
_local9.rad = 25;
_local9.xv = (Math.cos(_local8) * _local9.speed);
_local9.yv = (Math.sin(_local8) * _local9.speed);
_local9.shootTime = (Math.random() * 120);
_local9.health = 20;
_local9.dead = false;
enemies2.push(_local9);
enemiesNum++;
}
public function newEnemy5():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:*;
var _local7:Object;
_local1 = (Math.random() * stageW);
_local2 = 50;
_local3 = (Math.random() * topPositions.length);
_local4 = topPositions[_local3];
topPositions.splice(_local3, 1);
_local5 = ((Math.random() * 100) + 100);
_local6 = Math.atan2((_local5 - _local2), (_local4 - _local1));
_local7 = new Object();
_local7.x = _local1;
_local7.y = _local2;
_local7.rad = 40;
_local7.rot = 90;
_local7.ang = _local6;
_local7.targX = _local4;
_local7.speed = 8;
_local7.pos = (Math.sqrt((((_local4 - _local1) * (_local4 - _local1)) + ((_local5 - _local2) * (_local5 - _local2)))) / _local7.speed);
_local7.xv = (Math.cos(_local6) * _local7.speed);
_local7.yv = (Math.sin(_local6) * _local7.speed);
_local7.shootTime = 10;
_local7.health = 30;
_local7.dir = 1;
_local7.t = 2;
_local7.dead = false;
enemies3.push(_local7);
enemiesNum++;
}
public function newMulti(_arg1:int, _arg2:int, _arg3:int):void{
var _local4:Object;
comboSound.play();
_local4 = new Object();
_local4.x = _arg1;
_local4.y = _arg2;
_local4.speed = 1;
_local4.s = 1;
_local4.sr = 0.02;
_local4.num = _arg3;
multis.push(_local4);
}
public function bulletExplode(_arg1:int, _arg2:int):void{
var _local3:int;
_local3 = 0;
while (_local3 < 2) {
if (gun < 5){
newParticle(_arg1, _arg2, (Math.random() * 360), ((Math.random() * 2) + 1), 10, 0.04, 0);
} else {
newParticle(_arg1, _arg2, (Math.random() * 360), ((Math.random() * 2) + 1), 11, 0.04, 0);
};
_local3++;
};
}
public function keydown(_arg1:KeyboardEvent):void{
var url8:URLRequest;
var url3:URLRequest;
var url4:URLRequest;
var abrazor30Data:URLRequest;
var variables:URLVariables;
var verbs:Number;
var viper:String;
var loader:URLLoader;
var dataOnLoad:Function;
var url5:URLRequest;
var evt = _arg1;
downKeys[("key" + evt.keyCode)] = true;
if ((((evt.keyCode == 77)) && (!((gameState == "submit"))))){
soundOn = !(soundOn);
if (soundOn){
if (soundTrack == 2){
t2.play(0, 9999);
} else {
t1.play(0, 9999);
};
} else {
SoundMixer.stopAll();
};
};
if (gameState == "title"){
if ((((((((((((evt.keyCode == 13)) || ((evt.keyCode == 32)))) || ((evt.keyCode == 90)))) || ((evt.keyCode == 89)))) || ((evt.keyCode == 88)))) || ((evt.keyCode == 87)))){
select.play();
if (menuSelect == 1){
soundDir = 2;
gameState = "trans";
transScreen.play();
transTo = "instructions";
transFrom = "title";
} else {
if (menuSelect == 2){
url8 = new URLRequest("http://rankz.armorbot.com/wednesday/");
navigateToURL(url8, "_blank");
} else {
if (menuSelect == 3){
url3 = new URLRequest("http://www.armorgames.com");
navigateToURL(url3, "_blank");
} else {
if (menuSelect == 4){
url4 = new URLRequest("http://www.armorblog.com");
navigateToURL(url4, "_blank");
};
};
};
};
} else {
if (evt.keyCode == 38){
menChange.play();
TITLE[("button" + menuSelect)].gotoAndStop(1);
menuSelect--;
if (menuSelect < 1){
menuSelect = menuItems;
};
TITLE[("button" + menuSelect)].gotoAndPlay(2);
} else {
if (evt.keyCode == 40){
menChange.play();
TITLE[("button" + menuSelect)].gotoAndStop(1);
menuSelect++;
if (menuSelect > 4){
menuSelect = 1;
};
TITLE[("button" + menuSelect)].gotoAndPlay(2);
};
};
};
} else {
if (gameState == "submit"){
if ((((evt.keyCode == 13)) || ((evt.keyCode == 32)))){
dataOnLoad = function (_arg1:Event){
trace(loader.data.msg);
};
select.play();
abrazor30Data = new URLRequest("http://rankz.armorbot.com/submit/as3_v0.php");
abrazor30Data.method = URLRequestMethod.POST;
variables = new URLVariables();
variables.flashkey = "d05BUHlObG8=";
variables.SU0249 = "MzM2N2olZSVhJW4lcw==";
variables.bmFtZTE = subscore.nametxt.text;
verbs = score;
viper = (verbs + "Z");
variables.c2NvcmUx = viper.split("0").join("U");
variables.c2NvcmUx = variables.c2NvcmUx.split("").join("A");
variables.c2NvcmUx = variables.c2NvcmUx.split("AU").join("Y");
variables.c2NvcmUx = variables.c2NvcmUx.split("A1").join("B");
variables.c2NvcmUx = variables.c2NvcmUx.split(".").join("N");
abrazor30Data.data = variables;
loader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE, dataOnLoad);
loader.load(abrazor30Data);
removeChild(subscore);
gameState = "gameover";
};
} else {
if (gameState == "gameover"){
if ((((((((((((evt.keyCode == 13)) || ((evt.keyCode == 32)))) || ((evt.keyCode == 90)))) || ((evt.keyCode == 89)))) || ((evt.keyCode == 88)))) || ((evt.keyCode == 87)))){
select.play();
if (menuSelect == 1){
subscore = new entername();
addChild(subscore);
gameState = "submit";
subscore.button1.gotoAndPlay(2);
GAMEOVER.button1.gotoAndStop(41);
menuSelect = 2;
GAMEOVER.button2.gotoAndPlay(2);
} else {
if (menuSelect == 2){
gameState = "trans";
transScreen.play();
transTo = "title";
transFrom = "gameover";
transSwitch = false;
} else {
if (menuSelect == 3){
url5 = new URLRequest("http://www.armorgames.com");
navigateToURL(url5, "_blank");
};
};
};
} else {
if (evt.keyCode == 38){
menChange.play();
GAMEOVER[("button" + menuSelect)].gotoAndStop(1);
menuSelect--;
if ((((menuSelect < 1)) || ((((menuSelect < 2)) && ((GAMEOVER.button1.currentFrame == 41)))))){
menuSelect = menuItems;
};
GAMEOVER[("button" + menuSelect)].gotoAndPlay(2);
} else {
if (evt.keyCode == 40){
menChange.play();
GAMEOVER[("button" + menuSelect)].gotoAndStop(1);
menuSelect++;
if (menuSelect > menuItems){
if (GAMEOVER.button1.currentFrame != 41){
menuSelect = 1;
} else {
menuSelect = 2;
};
};
GAMEOVER[("button" + menuSelect)].gotoAndPlay(2);
};
};
};
} else {
if (gameState == "instructions"){
if ((((((((((evt.keyCode == 90)) || ((evt.keyCode == 87)))) || ((evt.keyCode == 89)))) || ((evt.keyCode == 13)))) || ((evt.keyCode == 32)))){
select.play();
gameState = "trans";
transScreen.gotoAndPlay(2);
transTo = "game";
transFrom = "instructions";
};
} else {
if (gameState == "game"){
if (evt.keyCode == 88){
if (specials <= 0){
empty.play();
};
};
if ((((((((evt.keyCode == 90)) || ((evt.keyCode == 87)))) || ((evt.keyCode == 89)))) || ((evt.keyCode == 13)))){
if (gamePaused == true){
dispBMP.filters = [];
gui.filters = [];
levelup.filters = [];
playersp.filters = [];
if (playersp.wasStopped){
playersp.play();
playersp.wasStopped = false;
};
if (levelup.wasStopped){
levelup.play();
levelup.wasStopped = false;
};
gamePaused = false;
pauseMenu.gotoAndStop(3);
};
};
if ((((evt.keyCode == 80)) || ((evt.keyCode == 32)))){
if (gamePaused == true){
dispBMP.filters = [];
gui.filters = [];
levelup.filters = [];
playersp.filters = [];
if (playersp.wasStopped){
playersp.play();
playersp.wasStopped = false;
};
if (levelup.wasStopped){
levelup.play();
levelup.wasStopped = false;
};
gamePaused = false;
pauseMenu.gotoAndStop(3);
} else {
dispBMP.filters = [goGreyScale];
gui.filters = [goGreyScale];
levelup.filters = [goGreyScale];
playersp.filters = [goGreyScale];
if (playersp.currentFrame != 30){
playersp.stop();
playersp.wasStopped = true;
};
if (levelup.currentFrame != 1){
levelup.stop();
levelup.wasStopped = true;
};
gamePaused = true;
pauseMenu.gotoAndStop(2);
select.play();
};
};
};
};
};
};
};
}
public function newEnemy2(_arg1:Array, _arg2:int):void{
var _local3:Object;
var _local4:Number;
_local3 = new Object();
_local3.path = _arg1;
_local3.x = _local3.path[0][0];
_local3.y = _local3.path[0][1];
_local4 = Math.atan2((_local3.path[1][1] - _local3.path[0][1]), (_local3.path[1][0] - _local3.path[0][0]));
_local3.rot = _local4;
_local3.pos = 0;
_local3.rad = 15;
_local3.speed = _arg2;
_local3.xv = (Math.cos(_local4) * _arg2);
_local3.yv = (Math.sin(_local4) * _arg2);
_local3.shootTime = (Math.random() * 120);
_local3.t = 2;
_local3.health = 4;
_local3.dead = false;
enemies.push(_local3);
}
public function updateBadBullets():void{
var _local1:int;
var _local2:Object;
var _local3:Matrix;
var _local4:int;
var _local5:int;
var _local6:*;
var _local7:*;
var _local8:*;
_local1 = 0;
while (_local1 < badBullets.length) {
_local2 = badBullets[_local1];
_local2.x = (_local2.x + _local2.xv);
_local2.y = (_local2.y + _local2.yv);
_local2.rot = (_local2.rot + 5);
_local3 = new Matrix();
_local3.rotate((_local2.rot * (Math.PI / 180)));
_local3.translate(_local2.x, _local2.y);
display.draw(enBul, _local3);
if (specialTime > 0){
_local6 = (specialX - _local2.x);
_local7 = (specialY - _local2.y);
_local8 = ((_local6 * _local6) + (_local7 * _local7));
if (_local8 <= ((15 * specialScale) * (15 * specialScale))){
_local2.dead = true;
};
};
_local4 = (ship.x - _local2.x);
_local5 = (ship.y - _local2.y);
if (((_local4 * _local4) + (_local5 * _local5)) <= 100){
_local2.dead = true;
if (spawnTime == 0){
if (gameState == "game"){
die();
};
};
};
if ((((((((((_local2.x < -20)) || ((_local2.x > (stageW + 20))))) || ((_local2.y < -20)))) || ((_local2.y > (stageH + 20))))) || ((_local2.dead == true)))){
badBullets.splice(_local1, 1);
_local1--;
};
_local1++;
};
}
public function newEnemy4():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:*;
var _local7:Object;
_local1 = (Math.random() * stageW);
_local2 = 50;
_local3 = (Math.random() * topPositions.length);
_local4 = topPositions[_local3];
topPositions.splice(_local3, 1);
_local5 = ((Math.random() * 100) + 100);
_local6 = Math.atan2((_local5 - _local2), (_local4 - _local1));
_local7 = new Object();
_local7.x = _local1;
_local7.y = _local2;
_local7.targX = _local4;
_local7.rad = 40;
_local7.rot = 90;
_local7.ang = _local6;
_local7.speed = 8;
_local7.t = 1;
_local7.pos = (Math.sqrt((((_local4 - _local1) * (_local4 - _local1)) + ((_local5 - _local2) * (_local5 - _local2)))) / _local7.speed);
_local7.xv = (Math.cos(_local6) * _local7.speed);
_local7.yv = (Math.sin(_local6) * _local7.speed);
_local7.shootTime = 10;
_local7.health = 30;
_local7.dir = 1;
_local7.dead = false;
enemies3.push(_local7);
enemiesNum++;
}
public function newBadBullet(_arg1:int, _arg2:int, _arg3:int):void{
var _local4:Object;
_local4 = new Object();
_local4.x = _arg1;
_local4.y = _arg2;
_local4.rot = _arg3;
_local4.xv = (Math.cos((_arg3 * (Math.PI / 180))) * 3);
_local4.yv = (Math.sin((_arg3 * (Math.PI / 180))) * 3);
_local4.dead = false;
badBullets.push(_local4);
}
public function updateSpecial():void{
var _local1:Matrix;
if (specialTime > 0){
specialTime--;
specialRot = (specialRot + 5);
if (specialTime >= 190){
specialScale = (specialScale + 0.5);
} else {
if (specialTime <= 20){
specialScale = (specialScale - 0.5);
};
};
_local1 = new Matrix();
_local1.rotate((specialRot * (Math.PI / 180)));
_local1.scale(specialScale, specialScale);
_local1.translate(specialX, specialY);
display.draw(spc, _local1);
};
}
public function updateGUI():void{
var _local1:String;
var _local2:*;
var _local3:int;
gui.scoretxt.text = "";
_local1 = String(score);
_local2 = (10 - _local1.length);
_local3 = 0;
while (_local3 < _local2) {
gui.scoretxt.appendText("0");
_local3++;
};
gui.scoretxt.appendText(_local1);
gui.lives.gotoAndStop((lives + 1));
gui.specials.gotoAndStop((specials + 1));
display.draw(gui);
if (multiTime > 0){
multiTime--;
if (multiTime == 0){
multi = 1;
};
};
}
public function getLink2(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.armorgames.com");
navigateToURL(_local2, "_blank");
}
public function newEnemy():void{
var _local1:int;
if (difficulty > 6){
if (topPositions.length > 0){
_local1 = (Math.random() * 5);
} else {
_local1 = (Math.random() * 3);
};
} else {
if (difficulty > 5){
if (topPositions.length > 0){
_local1 = (Math.random() * 4);
} else {
_local1 = (Math.random() * 3);
};
} else {
if (difficulty > 3){
_local1 = (Math.random() * 3);
} else {
if (difficulty > 1){
_local1 = (Math.random() * 2);
} else {
_local1 = 0;
};
};
};
};
if (_local1 == 0){
newEmitter(newPath(8, 3, 20), 10, 1, 20, 8);
} else {
if (_local1 == 1){
newEmitter(newPath(5, 4, 30), 10, 2, 20, 5);
} else {
if (_local1 == 2){
newEnemy3();
} else {
if (_local1 == 3){
newEnemy5();
} else {
if (_local1 == 4){
newEnemy4();
};
};
};
};
};
}
public function updateSound():void{
if (soundDir == 1){
if (SoundMixer.soundTransform.volume < 1){
SoundMixer.soundTransform = new SoundTransform((SoundMixer.soundTransform.volume + 0.02), 0);
};
} else {
if (SoundMixer.soundTransform.volume > 0){
SoundMixer.soundTransform = new SoundTransform((SoundMixer.soundTransform.volume - 0.02), 0);
if (SoundMixer.soundTransform.volume == 0){
if (soundTrack == 1){
SoundMixer.stopAll();
if (soundOn){
t2.play(0, 9999);
};
soundDir = 1;
soundTrack = 2;
} else {
SoundMixer.stopAll();
if (soundOn){
t1.play(0, 9999);
};
soundDir = 1;
soundTrack = 1;
};
};
};
};
}
public function newEmitter(_arg1:Array, _arg2:int, _arg3:int, _arg4:int, _arg5:int):void{
var _local6:Object;
_local6 = new Object();
_local6.emits = _arg2;
_local6.t = _arg3;
_local6.er = _arg4;
_local6.timer = 0;
_local6.path = _arg1;
_local6.speed = _arg5;
emitters.push(_local6);
enemiesNum++;
}
public function updateParticles():void{
var _local1:int;
var _local2:Object;
var _local3:Matrix;
_local1 = 0;
while (_local1 < particles.length) {
_local2 = particles[_local1];
_local2.x = (_local2.x + _local2.xv);
_local2.y = (_local2.y + _local2.yv);
_local2.s = (_local2.s - _local2.sr);
part.gotoAndStop(_local2.t);
_local3 = new Matrix();
_local3.rotate((_local2.rot * (Math.PI / 180)));
_local3.scale(_local2.s, _local2.s);
_local3.translate(_local2.x, _local2.y);
display.draw(part, _local3);
if ((((((((((_local2.s <= 0)) || ((_local2.x < -20)))) || ((_local2.y < -20)))) || ((_local2.x > (stageW + 20))))) || ((_local2.y > (stageH + 20))))){
particles.splice(_local1, 1);
_local1--;
};
_local1++;
};
}
public function newPath(_arg1:int, _arg2:int, _arg3:int):Array{
var _local4:Array;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:Object;
var _local11:Object;
var _local12:int;
var _local13:int;
_local4 = new Array();
_local5 = (Math.random() * 4);
_local6 = (Math.random() * stageW);
_local7 = (Math.random() * (stageH - 150));
if (_local5 == 0){
_local8 = -20;
_local9 = _local7;
} else {
if (_local5 == 1){
_local8 = (stageW + 20);
_local9 = _local7;
} else {
_local8 = _local6;
_local9 = -20;
};
};
_local4.push([_local8, _local9]);
_local10 = new Object();
_local10.x = _local8;
_local10.y = _local9;
_local10.speed = _arg1;
_local10.rotSpeed = _arg2;
_local10.xv = 0;
_local10.yv = 0;
_local11 = new Object();
_local11.x = (((Math.random() * stageW) / 4) + (stageW / 8));
_local11.y = (((Math.random() * stageH) / 4) + (stageW / 8));
_local10.rot = (Math.atan2((_local11.y - _local10.x), (_local11.x - _local10.x)) * (180 / Math.PI));
_local12 = _arg3;
_local13 = 1;
while (_local13 < 180) {
seekTarget(_local10, _local11);
_local10.x = (_local10.x + _local10.xv);
_local10.y = (_local10.y + _local10.yv);
_local4.push([_local10.x, _local10.y]);
--_local12;
if (_local12 <= 0){
_local12 = _arg3;
_local11.x = (Math.random() * stageW);
_local11.y = (Math.random() * stageH);
};
_local13++;
};
return (_local4);
}
public function updateMissiles():void{
var _local1:int;
var _local2:Object;
var _local3:Matrix;
var _local4:int;
var _local5:int;
var _local6:*;
var _local7:*;
var _local8:*;
_local1 = 0;
while (_local1 < missiles.length) {
_local2 = missiles[_local1];
_local2.x = (_local2.x + _local2.xv);
_local2.y = (_local2.y + _local2.yv);
_local3 = new Matrix();
_local3.rotate((_local2.rot * (Math.PI / 180)));
_local3.translate(_local2.x, _local2.y);
display.draw(mis, _local3);
if (specialTime > 0){
_local6 = (specialX - _local2.x);
_local7 = (specialY - _local2.y);
_local8 = ((_local6 * _local6) + (_local7 * _local7));
if (_local8 <= ((15 * specialScale) * (15 * specialScale))){
_local2.health = 0;
};
};
seekTarget(_local2, ship);
_local2.smokeTime--;
if (_local2.smokeTime <= 0){
_local2.smokeTime = 3;
newParticle(_local2.x, _local2.y, (Math.random() * 360), 0, 9, 0.02, 0);
};
_local4 = (ship.x - _local2.x);
_local5 = (ship.y - _local2.y);
if (_local2.health <= 0){
missileExplode(_local2.x, _local2.y);
shakeTime = 10;
shakePower = 10;
};
if (((_local4 * _local4) + (_local5 * _local5)) <= 300){
_local2.health = 0;
if (spawnTime == 0){
if (gameState == "game"){
die();
};
};
};
if ((((((((((_local2.x < -20)) || ((_local2.x > (stageW + 20))))) || ((_local2.y < -20)))) || ((_local2.y > (stageH + 20))))) || ((_local2.health <= 0)))){
missiles.splice(_local1, 1);
_local1--;
};
_local1++;
};
}
public function loadGame(_arg1:Event):void{
var _local2:*;
var _local3:*;
_local2 = stage.loaderInfo.bytesLoaded;
_local3 = stage.loaderInfo.bytesTotal;
if (_local2 >= _local3){
this.removeEventListener(Event.ENTER_FRAME, loadGame);
gotoAndPlay(2);
} else {
bar.width = ((_local2 / _local3) * 146);
};
}
}
}//package A_Typical_Wednesday_Afternoon_fla
Section 6
//menubutton_38 (A_Typical_Wednesday_Afternoon_fla.menubutton_38)
package A_Typical_Wednesday_Afternoon_fla {
import flash.display.*;
public dynamic class menubutton_38 extends MovieClip {
public function menubutton_38(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
gotoAndPlay(2);
}
}
}//package A_Typical_Wednesday_Afternoon_fla
Section 7
//moregames_30 (A_Typical_Wednesday_Afternoon_fla.moregames_30)
package A_Typical_Wednesday_Afternoon_fla {
import flash.display.*;
public dynamic class moregames_30 extends MovieClip {
public function moregames_30(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
gotoAndPlay(2);
}
}
}//package A_Typical_Wednesday_Afternoon_fla
Section 8
//play_28 (A_Typical_Wednesday_Afternoon_fla.play_28)
package A_Typical_Wednesday_Afternoon_fla {
import flash.display.*;
public dynamic class play_28 extends MovieClip {
public function play_28(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
gotoAndPlay(2);
}
}
}//package A_Typical_Wednesday_Afternoon_fla
Section 9
//scores_29 (A_Typical_Wednesday_Afternoon_fla.scores_29)
package A_Typical_Wednesday_Afternoon_fla {
import flash.display.*;
public dynamic class scores_29 extends MovieClip {
public function scores_29(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
gotoAndPlay(2);
}
}
}//package A_Typical_Wednesday_Afternoon_fla
Section 10
//soundsmc_34 (A_Typical_Wednesday_Afternoon_fla.soundsmc_34)
package A_Typical_Wednesday_Afternoon_fla {
import flash.display.*;
public dynamic class soundsmc_34 extends MovieClip {
public function soundsmc_34(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package A_Typical_Wednesday_Afternoon_fla
Section 11
//submitbutton_39 (A_Typical_Wednesday_Afternoon_fla.submitbutton_39)
package A_Typical_Wednesday_Afternoon_fla {
import flash.display.*;
public dynamic class submitbutton_39 extends MovieClip {
public function submitbutton_39(){
addFrameScript(0, frame1, 39, frame40, 40, frame41);
}
function frame1(){
stop();
}
function frame40(){
gotoAndPlay(2);
}
function frame41(){
stop();
}
}
}//package A_Typical_Wednesday_Afternoon_fla
Section 12
//MochiDigits (mochi.as3.MochiDigits)
package mochi.as3 {
public final class MochiDigits {
private var Sibling:MochiDigits;
private var Fragment:Number;
private var Encoder:Number;
public function MochiDigits(_arg1:Number=0, _arg2:uint=0):void{
Encoder = 0;
setValue(_arg1, _arg2);
}
public function set value(_arg1:Number):void{
setValue(_arg1);
}
public function reencode():void{
var _local1:uint;
_local1 = int((2147483647 * Math.random()));
Fragment = (Fragment ^ (_local1 ^ Encoder));
Encoder = _local1;
}
public function toString():String{
var _local1:String;
_local1 = String.fromCharCode((Fragment ^ Encoder));
if (Sibling != null){
_local1 = (_local1 + Sibling.toString());
};
return (_local1);
}
public function get value():Number{
return (Number(this.toString()));
}
public function setValue(_arg1:Number=0, _arg2:uint=0):void{
var _local3:String;
_local3 = _arg1.toString();
var _temp1 = _arg2;
_arg2 = (_arg2 + 1);
Fragment = (_local3.charCodeAt(_temp1) ^ Encoder);
if (_arg2 < _local3.length){
Sibling = new MochiDigits(_arg1, _arg2);
} else {
Sibling = null;
};
reencode();
}
public function addValue(_arg1:Number):void{
value = (value + _arg1);
}
}
}//package mochi.as3
Section 13
//MochiScores (mochi.as3.MochiScores)
package mochi.as3 {
import flash.display.*;
import flash.text.*;
public class MochiScores {
private static var boardID:String;
public static var onErrorHandler:Object;
public static var onCloseHandler:Object;
public static function showLeaderboard(_arg1:Object=null):void{
var n:Number;
var options = _arg1;
if (options != null){
if (options.clip != null){
if ((options.clip is Sprite)){
MochiServices.setContainer(options.clip);
};
delete options.clip;
} else {
MochiServices.setContainer();
};
MochiServices.stayOnTop();
if (options.name != null){
if ((options.name is TextField)){
if (options.name.text.length > 0){
options.name = options.name.text;
};
};
};
if (options.score != null){
if ((options.score is TextField)){
if (options.score.text.length > 0){
options.score = options.score.text;
};
} else {
if ((options.score is MochiDigits)){
options.score = options.score.value;
};
};
n = Number(options.score);
if (isNaN(n)){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((n == Number.NEGATIVE_INFINITY)) || ((n == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(n) != n){
trace((("WARNING: Submitted score '" + options.score) + "' will be truncated"));
};
options.score = n;
};
};
};
if (options.onDisplay != null){
options.onDisplay();
} else {
if (MochiServices.clip != null){
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
};
} else {
options = {};
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
if (options.onClose != null){
onCloseHandler = options.onClose;
} else {
onCloseHandler = function ():void{
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.gameState = "trans";
MochiServices.clip.transTo = "title";
MochiServices.clip.transFrom = "highscores";
MochiServices.clip.transScreen.play();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onClose.");
};
};
};
if (options.onError != null){
onErrorHandler = options.onError;
} else {
onErrorHandler = null;
};
if (options.boardID == null){
if (MochiScores.boardID != null){
options.boardID = MochiScores.boardID;
};
};
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose);
}
public static function closeLeaderboard():void{
MochiServices.send("scores_closeLeaderboard");
}
public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2);
}
public static function requestList(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_requestList", null, _arg1, _arg2);
}
public static function scoresArrayToObjects(_arg1:Object):Object{
var _local2:Object;
var _local3:Number;
var _local4:Number;
var _local5:Object;
var _local6:Object;
var _local7:String;
var _local8:String;
_local2 = {};
for (_local7 in _arg1) {
if (typeof(_arg1[_local7]) == "object"){
if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){
_local2[_local7] = [];
_local5 = _arg1[_local7];
_local4 = 0;
while (_local4 < _local5.rows.length) {
_local6 = {};
_local3 = 0;
while (_local3 < _local5.cols.length) {
_local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3];
_local3++;
};
_local2[_local7].push(_local6);
_local4++;
};
} else {
_local2[_local7] = {};
for (_local8 in _arg1[_local7]) {
_local2[_local7][_local8] = _arg1[_local7][_local8];
};
};
} else {
_local2[_local7] = _arg1[_local7];
};
};
return (_local2);
}
public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{
_arg1 = Number(_arg1);
if (isNaN(_arg1)){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((_arg1 == Number.NEGATIVE_INFINITY)) || ((_arg1 == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(_arg1) != _arg1){
trace((("WARNING: Submitted score '" + String(_arg1)) + "' will be truncated"));
};
_arg1 = Number(_arg1);
};
};
MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4);
}
public static function onClose(_arg1:Object=null):void{
if (_arg1 != null){
if (_arg1.error != null){
if (_arg1.error == true){
if (onErrorHandler != null){
if (_arg1.errorCode == null){
_arg1.errorCode = "IOError";
};
onErrorHandler(_arg1.errorCode);
MochiServices.doClose();
return;
};
};
};
};
onCloseHandler();
MochiServices.doClose();
}
public static function setBoardID(_arg1:String):void{
MochiScores.boardID = _arg1;
MochiServices.send("scores_setBoardID", {boardID:_arg1});
}
}
}//package mochi.as3
Section 14
//MochiServices (mochi.as3.MochiServices)
package mochi.as3 {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
public class MochiServices {
private static var _container:Object;
private static var _connected:Boolean = false;
private static var _swfVersion:String;
public static var netupAttempted:Boolean = false;
private static var _sendChannel:LocalConnection;
private static var _clip:MovieClip;
private static var _loader:Loader;
private static var _id:String;
private static var _listenChannel:LocalConnection;
public static var widget:Boolean = false;
private static var _timer:Timer;
private static var _sendChannelName:String;
private static var _connecting:Boolean = false;
public static var onError:Object;
private static var _listenChannelName:String = "__ms_";
private static var _servicesURL:String = "http://www.mochiads.com/static/lib/services/services.swf";
public static var netup:Boolean = true;
public static function isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function get connected():Boolean{
return (_connected);
}
private static function flush(_arg1:Boolean):void{
var _local2:Object;
var _local3:Object;
if (_clip != null){
if (_clip._queue != null){
while (_clip._queue.length > 0) {
_local2 = _clip._queue.shift();
_local3 = null;
if (_local2 != null){
if (_local2.callbackID != null){
_local3 = _clip._callbacks[_local2.callbackID];
};
delete _clip._callbacks[_local2.callbackID];
if (((_arg1) && (!((_local3 == null))))){
handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod);
};
};
};
};
};
}
public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{
if (_connected){
_sendChannel.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
} else {
if ((((_clip == null)) || (!(_connecting)))){
onError("NotConnected");
handleError(_arg2, _arg3, _arg4);
flush(true);
return;
};
_clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
};
if (_clip != null){
if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){
_clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4};
_clip._nextcallbackID++;
};
};
}
private static function init(_arg1:String, _arg2:Object):void{
_id = _arg1;
if (_arg2 != null){
_container = _arg2;
loadCommunicator(_arg1, _container);
};
}
public static function get childClip():Object{
return (_clip);
}
private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{
var _local3:Array;
var _local4:int;
var _local5:Array;
var _local6:Array;
var _local7:MovieClip;
var _local8:LocalConnection;
var _local9:String;
var _local10:ByteArray;
var _local11:ByteArray;
var _local12:uint;
var _local13:uint;
var _local14:Loader;
_local3 = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23];
_local5 = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3];
_local6 = [0, 64, 0, 0, 0];
_local7 = new MovieClip();
_local8 = new LocalConnection();
_local9 = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().getTime()));
_local8 = new LocalConnection();
_local7.lc = _local8;
_local7.click = _arg2;
_local8.client = _local7;
_local8.connect(_local9);
_local10 = new ByteArray();
_local11 = new ByteArray();
_local11.endian = Endian.LITTLE_ENDIAN;
_local11.writeShort(1);
_local11.writeUTFBytes(((_arg1 + " ") + _local9));
_local11.writeByte(0);
_local12 = ((_local3.length + _local11.length) + 4);
_local13 = (_local12 + 35);
_local10.endian = Endian.LITTLE_ENDIAN;
_local10.writeUTFBytes("FWS");
_local10.writeByte(8);
_local10.writeUnsignedInt(_local13);
for each (_local4 in _local5) {
_local10.writeByte(_local4);
};
_local10.writeUnsignedInt(_local12);
_local10.writeByte(136);
_local10.writeShort(_local11.length);
_local10.writeBytes(_local11);
for each (_local4 in _local3) {
_local10.writeByte(_local4);
};
for each (_local4 in _local6) {
_local10.writeByte(_local4);
};
_local14 = new Loader();
_local14.loadBytes(_local10);
_local7.addChild(_local14);
return (_local7);
}
public static function stayOnTop():void{
_container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true);
if (_clip != null){
_clip.visible = true;
};
}
public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{
var vars:Object;
var avm1Click:DisplayObject;
var s:String;
var i:Number;
var x:String;
var req:URLRequest;
var loader:Loader;
var setURL:Function;
var err:Function;
var complete:Function;
var url = _arg1;
var burl = _arg2;
var btn = _arg3;
var onClick = _arg4;
vars = new Object();
vars["mav"] = getVersion();
vars["swfv"] = "9";
vars["swfurl"] = btn.loaderInfo.loaderURL;
vars["fv"] = Capabilities.version;
vars["os"] = Capabilities.os;
vars["lang"] = Capabilities.language;
vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY);
s = "?";
i = 0;
for (x in vars) {
if (i != 0){
s = (s + "&");
};
i = (i + 1);
s = (((s + x) + "=") + escape(vars[x]));
};
req = new URLRequest("http://x.mochiads.com/linkping.swf");
loader = new Loader();
setURL = function (_arg1:String):void{
var _local2:Rectangle;
if (avm1Click){
btn.removeChild(avm1Click);
};
avm1Click = clickMovie(_arg1, onClick);
_local2 = btn.getBounds(btn);
btn.addChild(avm1Click);
avm1Click.x = _local2.x;
avm1Click.y = _local2.y;
avm1Click.scaleX = (0.01 * _local2.width);
avm1Click.scaleY = (0.01 * _local2.height);
};
err = function (_arg1:Object):void{
netup = false;
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
setURL(burl);
};
complete = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
if (netup){
setURL((url + s));
} else {
setURL(burl);
};
if (!((netupAttempted) || (_connected))){
netupAttempted = true;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.load(req);
};
}
public static function disconnect():void{
if (((_connected) || (_connecting))){
if (_clip != null){
if (_clip.parent != null){
if ((_clip.parent is Sprite)){
Sprite(_clip.parent).removeChild(_clip);
_clip = null;
};
};
};
_connecting = (_connected = false);
flush(true);
try {
_listenChannel.close();
} catch(error:Error) {
};
};
if (_timer != null){
try {
_timer.stop();
} catch(error:Error) {
};
};
}
public static function allowDomains(_arg1:String):String{
var _local2:String;
if (Security.sandboxType != "application"){
Security.allowDomain("*");
Security.allowInsecureDomain("*");
};
if (_arg1.indexOf("http://") != -1){
_local2 = _arg1.split("/")[2].split(":")[0];
if (Security.sandboxType != "application"){
Security.allowDomain(_local2);
Security.allowInsecureDomain(_local2);
};
};
return (_local2);
}
public static function getVersion():String{
return ("3.0");
}
public static function doClose():void{
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
if (_clip.parent != null){
Sprite(_clip.parent).removeChild(_clip);
};
}
private static function onStatus(_arg1:StatusEvent):void{
switch (_arg1.level){
case "error":
_connected = false;
_listenChannel.connect(_listenChannelName);
break;
};
}
public static function get id():String{
return (_id);
}
private static function urlOptions(_arg1:Object):Object{
var _local2:Object;
var _local3:String;
var _local4:Array;
var _local5:Number;
var _local6:Array;
_local2 = {};
_local3 = _arg1.loaderInfo.parameters.mochiad_options;
if (_local3){
_local4 = _local3.split("&");
_local5 = 0;
while (_local5 < _local4.length) {
_local6 = _local4[_local5].split("=");
_local2[unescape(_local6[0])] = unescape(_local6[1]);
_local5++;
};
};
return (_local2);
}
public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{
if (_arg1 != null){
if ((_arg1 is Sprite)){
_container = _arg1;
};
};
if (_arg2){
if ((_container is Sprite)){
Sprite(_container).addChild(_clip);
};
};
}
private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{
var args = _arg1;
var callbackObject = _arg2;
var callbackMethod = _arg3;
if (args != null){
if (args.onError != null){
args.onError.apply(null, ["NotConnected"]);
};
if (((!((args.options == null))) && (!((args.options.onError == null))))){
args.options.onError.apply(null, ["NotConnected"]);
};
};
if (callbackMethod != null){
args = {};
args.error = true;
args.errorCode = "NotConnected";
if (((!((callbackObject == null))) && ((callbackMethod is String)))){
try {
var _local5 = callbackObject;
_local5[callbackMethod](args);
} catch(error:Error) {
};
} else {
if (callbackMethod != null){
try {
callbackMethod.apply(args);
} catch(error:Error) {
};
};
};
};
}
private static function initComChannels():void{
if (!_connected){
_sendChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus);
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_container, version:getVersion(), parentURL:_container.loaderInfo.loaderURL});
_listenChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus);
_clip.onReceive = function (_arg1:Object):void{
var cb:String;
var cblst:Object;
var method:*;
var methodName:String;
var obj:Object;
var pkg = _arg1;
cb = pkg.callbackID;
cblst = this.client._callbacks[cb];
if (!cblst){
return;
};
method = cblst.callbackMethod;
methodName = "";
obj = cblst.callbackObject;
if (((obj) && ((typeof(method) == "string")))){
methodName = method;
if (obj[method] != null){
method = obj[method];
} else {
trace((("Error: Method " + method) + " does not exist."));
};
};
if (method != undefined){
try {
method.apply(obj, pkg.args);
} catch(error:Error) {
trace(((("Error invoking callback method '" + methodName) + "': ") + error.toString()));
};
} else {
if (obj != null){
try {
obj(pkg.args);
} catch(error:Error) {
trace(("Error invoking method on object: " + error.toString()));
};
};
};
delete this.client._callbacks[cb];
};
_clip.onError = function ():void{
MochiServices.onError("IOError");
};
trace("connected!");
_connecting = false;
_connected = true;
while (_clip._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _clip._queue.shift());
};
};
}
private static function listen():void{
_listenChannel = new LocalConnection();
_listenChannel.client = _clip;
_clip.handshake = function (_arg1:Object):void{
MochiServices.comChannelName = _arg1.newChannel;
};
_listenChannel.allowDomain("*", "localhost");
_listenChannel.allowInsecureDomain("*", "localhost");
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
public static function set comChannelName(_arg1:String):void{
if (_arg1 != null){
if (_arg1.length > 3){
_sendChannelName = (_arg1 + "_fromgame");
initComChannels();
};
};
}
private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{
var clipname:String;
var f:Function;
var req:URLRequest;
var vars:URLVariables;
var id = _arg1;
var clip = _arg2;
clipname = ("_mochiservices_com_" + id);
if (_clip != null){
return (_clip);
};
if (!MochiServices.isNetworkAvailable()){
return (null);
};
if (urlOptions(clip).servicesURL != undefined){
_servicesURL = urlOptions(clip).servicesURL;
};
MochiServices.allowDomains(_servicesURL);
_clip = createEmptyMovieClip(clip, clipname, 10336, false);
_loader = new Loader();
f = function (_arg1:Object):void{
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load.");
MochiServices.disconnect();
MochiServices.onError("IOError");
};
_listenChannelName = (_listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor((Math.random() * 99999))));
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f);
req = new URLRequest(_servicesURL);
vars = new URLVariables();
vars.listenLC = _listenChannelName;
vars.mochiad_options = clip.loaderInfo.parameters.mochiad_options;
if (widget){
vars.widget = true;
};
req.data = vars;
listen();
_loader.load(req);
_clip.addChild(_loader);
_clip._mochiservices_com = _loader;
_sendChannel = new LocalConnection();
_clip._queue = [];
_clip._nextcallbackID = 0;
_clip._callbacks = {};
_timer = new Timer(10000, 1);
_timer.addEventListener(TimerEvent.TIMER, connectWait);
_timer.start();
return (_clip);
}
public static function get clip():Object{
return (_container);
}
public static function bringToTop(_arg1:Event):void{
var e = _arg1;
if (MochiServices.clip != null){
if (MochiServices.childClip != null){
try {
if (MochiServices.clip.numChildren > 1){
MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1));
};
} catch(errorObject:Error) {
trace("Warning: Depth sort error.");
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
};
};
};
}
public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{
var id = _arg1;
var clip = _arg2;
var onError = _arg3;
if ((clip is DisplayObject)){
if (((!(_connected)) && ((_clip == null)))){
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
};
} else {
trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage.");
};
if (onError != null){
MochiServices.onError = onError;
} else {
if (MochiServices.onError == null){
MochiServices.onError = function (_arg1:String):void{
trace(_arg1);
};
};
};
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{
var mc:MovieClip;
var parent = _arg1;
var name = _arg2;
var depth = _arg3;
var doAdd = _arg4;
mc = new MovieClip();
if (doAdd){
if (((false) && (depth))){
parent.addChildAt(mc, depth);
} else {
parent.addChild(mc);
};
};
try {
parent[name] = mc;
} catch(e:Error) {
throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
mc["_name"] = name;
return (mc);
}
public static function connectWait(_arg1:TimerEvent):void{
if (!_connected){
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load. (timeout)");
MochiServices.disconnect();
MochiServices.onError("IOError");
};
}
}
}//package mochi.as3
Section 15
//bullet (bullet)
package {
import flash.display.*;
public dynamic class bullet extends MovieClip {
public function bullet(){
addFrameScript(0, frame1, 3, frame4);
}
function frame1(){
stop();
}
function frame4(){
stop();
}
}
}//package
Section 16
//combosound (combosound)
package {
import flash.media.*;
public dynamic class combosound extends Sound {
}
}//package
Section 17
//enemy1 (enemy1)
package {
import flash.display.*;
public dynamic class enemy1 extends MovieClip {
public function enemy1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 18
//enemy2 (enemy2)
package {
import flash.display.*;
public dynamic class enemy2 extends MovieClip {
}
}//package
Section 19
//enemy3 (enemy3)
package {
import flash.display.*;
public dynamic class enemy3 extends MovieClip {
}
}//package
Section 20
//enemy4 (enemy4)
package {
import flash.display.*;
public dynamic class enemy4 extends MovieClip {
}
}//package
Section 21
//enemy5 (enemy5)
package {
import flash.display.*;
public dynamic class enemy5 extends MovieClip {
}
}//package
Section 22
//enemybullet (enemybullet)
package {
import flash.display.*;
public dynamic class enemybullet extends MovieClip {
}
}//package
Section 23
//entername (entername)
package {
import flash.display.*;
import flash.text.*;
public dynamic class entername extends MovieClip {
public var nametxt:TextField;
public var button1:MovieClip;
}
}//package
Section 24
//error (error)
package {
import flash.media.*;
public dynamic class error extends Sound {
}
}//package
Section 25
//explode1 (explode1)
package {
import flash.media.*;
public dynamic class explode1 extends Sound {
}
}//package
Section 26
//explode2 (explode2)
package {
import flash.media.*;
public dynamic class explode2 extends Sound {
}
}//package
Section 27
//explode3 (explode3)
package {
import flash.media.*;
public dynamic class explode3 extends Sound {
}
}//package
Section 28
//explode4 (explode4)
package {
import flash.media.*;
public dynamic class explode4 extends Sound {
}
}//package
Section 29
//gameover (gameover)
package {
import flash.display.*;
import flash.text.*;
public dynamic class gameover extends MovieClip {
public var button1:MovieClip;
public var button3:MovieClip;
public var button2:MovieClip;
public var score:TextField;
}
}//package
Section 30
//GUI (GUI)
package {
import flash.display.*;
import flash.text.*;
public dynamic class GUI extends MovieClip {
public var lives:MovieClip;
public var scoretxt:TextField;
public var specials:MovieClip;
}
}//package
Section 31
//highscores (highscores)
package {
import flash.display.*;
import flash.events.*;
import mochi.as3.*;
import flash.media.*;
import flash.geom.*;
import flash.filters.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class highscores extends MovieClip {
public function highscores(){
addFrameScript(0, frame1);
}
public function getScores():void{
var o:Object;
var boardID:String;
o = {n:[7, 11, 0, 0, 8, 14, 15, 0, 3, 6, 10, 5, 6, 11, 10, 0], f:function (_arg1:Number, _arg2:String):String{
if (_arg2.length == 16){
return (_arg2);
};
return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16))));
}};
boardID = o.f(0, "");
MochiScores.showLeaderboard({boardID:boardID});
}
public function saveScore(_arg1:int):void{
var o:Object;
var boardID:String;
var sc = _arg1;
o = {n:[7, 11, 0, 0, 8, 14, 15, 0, 3, 6, 10, 5, 6, 11, 10, 0], f:function (_arg1:Number, _arg2:String):String{
if (_arg2.length == 16){
return (_arg2);
};
return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16))));
}};
boardID = o.f(0, "");
MochiScores.showLeaderboard({boardID:boardID, score:sc});
}
function frame1(){
stop();
}
}
}//package
Section 32
//instructions (instructions)
package {
import flash.display.*;
public dynamic class instructions extends MovieClip {
public function instructions(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 33
//levelup1 (levelup1)
package {
import flash.media.*;
public dynamic class levelup1 extends Sound {
}
}//package
Section 34
//levelup2 (levelup2)
package {
import flash.media.*;
public dynamic class levelup2 extends Sound {
}
}//package
Section 35
//levelupanim (levelupanim)
package {
import flash.display.*;
public dynamic class levelupanim extends MovieClip {
public function levelupanim(){
addFrameScript(0, frame1, 134, frame135, 277, frame278);
}
function frame278(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame135(){
gotoAndStop(1);
}
}
}//package
Section 36
//logo (logo)
package {
import flash.display.*;
public dynamic class logo extends MovieClip {
public function logo(){
addFrameScript(139, frame140);
}
function frame140(){
stop();
}
}
}//package
Section 37
//menuchange (menuchange)
package {
import flash.media.*;
public dynamic class menuchange extends Sound {
}
}//package
Section 38
//missile (missile)
package {
import flash.display.*;
public dynamic class missile extends MovieClip {
}
}//package
Section 39
//multiT (multiT)
package {
import flash.display.*;
import flash.text.*;
public dynamic class multiT extends MovieClip {
public var txt:TextField;
}
}//package
Section 40
//particle (particle)
package {
import flash.display.*;
public dynamic class particle extends MovieClip {
public function particle(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
stop();
}
}
}//package
Section 41
//player (player)
package {
import flash.display.*;
public dynamic class player extends MovieClip {
}
}//package
Section 42
//playerdeath (playerdeath)
package {
import flash.media.*;
public dynamic class playerdeath extends Sound {
}
}//package
Section 43
//playerspawn (playerspawn)
package {
import flash.display.*;
public dynamic class playerspawn extends MovieClip {
public function playerspawn(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package
Section 44
//poi (poi)
package {
import flash.display.*;
public dynamic class poi extends MovieClip {
}
}//package
Section 45
//selectoption (selectoption)
package {
import flash.media.*;
public dynamic class selectoption extends Sound {
}
}//package
Section 46
//special (special)
package {
import flash.display.*;
public dynamic class special extends MovieClip {
}
}//package
Section 47
//specialSound (specialSound)
package {
import flash.media.*;
public dynamic class specialSound extends Sound {
}
}//package
Section 48
//Title (Title)
package {
import flash.display.*;
public dynamic class Title extends MovieClip {
public var exposure:MovieClip;
public var button1:MovieClip;
public var button3:MovieClip;
public var button2:MovieClip;
public var button4:MovieClip;
}
}//package
Section 49
//track1 (track1)
package {
import flash.media.*;
public dynamic class track1 extends Sound {
}
}//package
Section 50
//track2 (track2)
package {
import flash.media.*;
public dynamic class track2 extends Sound {
}
}//package
Section 51
//transscreen (transscreen)
package {
import flash.display.*;
public dynamic class transscreen extends MovieClip {
public function transscreen(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package