Section 1
//armorgames_25 (game_fla.armorgames_25)
package game_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class armorgames_25 extends MovieClip {
public var swipe;
public var blankButton:SimpleButton;
public function armorgames_25(){
addFrameScript(0, frame1, 22, frame23, 175, frame176);
}
public function agMoveFunction(_arg1){
navigateToURL(new URLRequest("http://www.armorgames.com"));
}
function frame176(){
stop();
swipe.visible = true;
swipe.gotoAndPlay(2);
swipe.next = 8;
}
function frame1(){
}
function frame23(){
blankButton.addEventListener(MouseEvent.CLICK, agMoveFunction);
}
}
}//package game_fla
Section 2
//BombAnim_60 (game_fla.BombAnim_60)
package game_fla {
import flash.display.*;
public dynamic class BombAnim_60 extends MovieClip {
public function BombAnim_60(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
}
}
}//package game_fla
Section 3
//BombsMeter_16 (game_fla.BombsMeter_16)
package game_fla {
import flash.display.*;
import flash.text.*;
public dynamic class BombsMeter_16 extends MovieClip {
public var bombsText:TextField;
}
}//package game_fla
Section 4
//HighscoresChart_22 (game_fla.HighscoresChart_22)
package game_fla {
import flash.display.*;
import flash.text.*;
public dynamic class HighscoresChart_22 extends MovieClip {
public var s1:TextField;
public var s5:TextField;
public var s6:TextField;
public var s8:TextField;
public var s7:TextField;
public var s9:TextField;
public var s2:TextField;
public var s4:TextField;
public var s3:TextField;
public var s10:TextField;
public var highscoresTitle:TextField;
}
}//package game_fla
Section 5
//LivesMeter_15 (game_fla.LivesMeter_15)
package game_fla {
import flash.display.*;
import flash.text.*;
public dynamic class LivesMeter_15 extends MovieClip {
public var livesText:TextField;
}
}//package game_fla
Section 6
//logo_21 (game_fla.logo_21)
package game_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class logo_21 extends MovieClip {
public var monitor;
public var swipe;
public function logo_21(){
addFrameScript(0, frame1, 108, frame109);
}
function frame1(){
}
function frame109(){
stop();
swipe.visible = true;
swipe.gotoAndPlay(2);
swipe.next = 2;
}
}
}//package game_fla
Section 7
//MainTimeline (game_fla.MainTimeline)
package game_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public const POWERUP_CHANCE = 0.1;
public var XceeDLogo:MovieClip;
public var mainMenuButton:SimpleButton;
public var glow_yellow_arr;
public var bombs;
public var glow_magenta_arr;
public var birthRingArray;
public var highscores;
public var setDelay;
public var velX;
public var velY;
public var preloader:MovieClip;
public var u:URLRequest;
public var highscoreDisplay;
public var multiplierText:TextField;
public var agPlayed;
public var score;
public var glow_cyan;
public var trans;
public var frozen;
public var alltimeHigh:SimpleButton;
public var nextPageButton2:SimpleButton;
public var nextPageButton3:SimpleButton;
public var livesMeter:MovieClip;
public var qualityText:TextField;
public var weaponLevel;
public var username;
public var scoreText:TextField;
public var player;
public var glow_red;
public var mouseDown;
public var glow_white;
public var agButton:SimpleButton;
public var bgSong;
public var glow_red_arr;
public var bgChannel;
public var lives;
public var glow_green_arr;
public var agMove:MovieClip;
public var glow_white_arr;
public var playmoreButton:SimpleButton;
public var sound;
public var qualityButton:SimpleButton;
public var aboutButton:SimpleButton;
public var paused:MovieClip;
public var prevPageButton:SimpleButton;
public var gameOverDelay;
public var instructionsButton:SimpleButton;
public var yearlyHigh:SimpleButton;
public var swipeNext:MovieClip;
public var monthlyHigh:SimpleButton;
public var letGoPause;
public var escore;
public var highscoresButton:SimpleButton;
public var cursor;
public var submitScore:MovieClip;
public var highscoresChart:MovieClip;
public var dailyHigh:SimpleButton;
public var glow_yellow;
public var glow_blue_arr;
public var prevPageButton3:SimpleButton;
public var delay;
public var level;
public var combo;
public var shotArray;
public var screenOver;
public var prevPageButton2:SimpleButton;
public var weaponLevelMeter:MovieClip;
public var keyDown;
public var enemyArray;
public var glow_cyan_arr;
public var powerUpArray;
public var wait;
public var multiplier;
public var glow_blue;
public var startGameButton:SimpleButton;
public var bombCountDown;
public var glow_green;
public var delayMeter:MovieClip;
public var screen_rect;
public var nextPageButton:SimpleButton;
public var bombsMeter:MovieClip;
public var glow_magenta;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
public function mouseDownFunction(_arg1){
mouseDown = true;
}
public function qualityButtonFunction(_arg1){
if (stage.quality == "BEST"){
stage.quality = "LOW";
qualityText.text = "Quality: Low";
} else {
if (stage.quality == "HIGH"){
stage.quality = "BEST";
qualityText.text = "Quality: Best";
} else {
if (stage.quality == "MEDIUM"){
stage.quality = "HIGH";
qualityText.text = "Quality: High";
} else {
stage.quality = "MEDIUM";
qualityText.text = "Quality: Medium";
};
};
};
}
public function onRootLoaderInit(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:int;
_local2 = _arg1.target.bytesLoaded;
_local3 = _arg1.target.bytesTotal;
_local4 = ((_local2 / _local3) * 100);
}
public function loadHighScores(){
var _local1:*;
var _local2:*;
_local1 = 1;
while (_local1 <= 10) {
highscoresChart[("s" + _local1)].text = "None...";
_local1++;
};
switch (highscoreDisplay){
case "all":
_local2 = "All-Time Highscores";
break;
case "year":
_local2 = "Yearly Highscores";
break;
case "month":
_local2 = "Monthly Highscores";
break;
default:
_local2 = "Daily Highscores";
break;
};
highscoresChart.highscoresTitle.text = _local2;
for (_local1 in highscores[highscoreDisplay]) {
highscoresChart[("s" + _local1)].text = highscores[highscoreDisplay][_local1];
};
}
public function aboutButtonFunction(_arg1){
swipeNext.visible = true;
swipeNext.gotoAndPlay(2);
swipeNext.next = 7;
}
public function newFreezeTimePowerUp(_arg1, _arg2){
var _local3:*;
_local3 = new FreezeTimePowerUp();
_local3.init(_arg1, _arg2);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local3.filters = glow_white_arr;
};
stage.addChild(_local3);
powerUpArray.push(_local3);
newBirthRing(_arg1, _arg2, 0xFFFFFF);
}
public function newLifePowerUp(_arg1, _arg2){
var _local3:*;
_local3 = new LifePowerUp();
_local3.init(_arg1, _arg2);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local3.filters = glow_white_arr;
};
stage.addChild(_local3);
powerUpArray.push(_local3);
newBirthRing(_arg1, _arg2, 0xFFFFFF);
}
public function mouseUpFunction(_arg1){
mouseDown = false;
}
public function agMoveFunction(_arg1){
navigateToURL(new URLRequest("http://www.armorgames.com"));
}
public function newExplodePowerUp(_arg1, _arg2){
var _local3:*;
_local3 = new ExplodePowerUp();
_local3.init(_arg1, _arg2, player, newShot);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local3.filters = glow_white_arr;
};
stage.addChild(_local3);
powerUpArray.push(_local3);
newBirthRing(_arg1, _arg2, 0xFFFFFF);
}
public function mainMenuButtonFunction(_arg1){
swipeNext.visible = true;
swipeNext.gotoAndPlay(2);
swipeNext.next = 2;
}
public function newBoxEnemy(_arg1, _arg2){
var _local3:*;
_local3 = new BoxEnemy();
_local3.init(_arg1, _arg2);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local3.filters = glow_green_arr;
};
stage.addChild(_local3);
enemyArray.push(_local3);
newBirthRing(_arg1, _arg2, 0xFF00);
sound = new BoxSpawnSFX();
sound.play();
}
function frame10(){
agMove.swipe = swipeNext;
agMove.addEventListener(MouseEvent.CLICK, agMoveFunction);
Mouse.show();
}
public function progressHandler(_arg1){
var _local2:*;
_local2 = Math.round(((_arg1.bytesLoaded / _arg1.bytesTotal) * 1000));
preloader.gotoAndStop(_local2);
}
public function monthlyHighFunction(_arg1){
highscoreDisplay = "month";
loadHighScores();
}
public function newBomb(_arg1, _arg2){
var _local3:*;
if (bombCountDown <= 0){
combo = 0;
multiplier = 0;
_local3 = new Bomb();
_local3.init(_arg1, _arg2);
stage.addChild(_local3);
shotArray.push(_local3);
};
}
function frame3(){
stop();
velX = 0;
velY = 0;
init();
Mouse.hide();
}
function frame4(){
stop();
Mouse.show();
nextPageButton.addEventListener(MouseEvent.CLICK, nextPageButtonFunction1);
prevPageButton.addEventListener(MouseEvent.CLICK, prevPageButtonFunction1);
startGameButton.addEventListener(MouseEvent.CLICK, mainMenuButtonFunction);
}
function frame6(){
stop();
Mouse.show();
nextPageButton3.addEventListener(MouseEvent.CLICK, nextPageButtonFunction3);
prevPageButton3.addEventListener(MouseEvent.CLICK, prevPageButtonFunction3);
}
public function newChaserPlusEnemy(_arg1, _arg2){
var _local3:*;
_local3 = new ChaserPlusEnemy();
_local3.init(_arg1, _arg2, player);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local3.filters = glow_yellow_arr;
};
stage.addChild(_local3);
enemyArray.push(_local3);
newBirthRing(_arg1, _arg2, 0xFFFF00);
sound = new ChaserSpawnSFX();
sound.play();
}
public function dailyHighFunction(_arg1){
highscoreDisplay = "day";
loadHighScores();
}
public function newDaggerEnemy(_arg1, _arg2, _arg3){
var _local4:*;
_local4 = new DaggerEnemy();
_local4.init(_arg1, _arg2, _arg3);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local4.filters = glow_magenta_arr;
};
stage.addChild(_local4);
enemyArray.push(_local4);
newBirthRing(_arg1, _arg2, 0xFF00FF);
sound = new DaggerSpawnSFX();
sound.play();
}
public function highscoresButtonFunction(_arg1){
swipeNext.visible = true;
swipeNext.gotoAndPlay(2);
swipeNext.next = 9;
}
function frame7(){
stop();
agButton.addEventListener(MouseEvent.CLICK, agMoveFunction);
Mouse.show();
mainMenuButton.addEventListener(MouseEvent.CLICK, mainMenuButtonFunction);
}
function frame1(){
swipeNext.monitor = this;
swipeNext.stop();
swipeNext.visible = false;
stage.quality = "MEDIUM";
stage.showDefaultContextMenu = false;
username = "";
stop();
agPlayed = false;
root.loaderInfo.addEventListener(Event.INIT, onRootLoaderInit);
root.loaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);
root.loaderInfo.addEventListener(Event.COMPLETE, progressCompleteHandler);
Mouse.hide();
}
public function enterFrameFunction(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
if (!paused.visible){
bombCountDown--;
gameOverDelay--;
frozen--;
if ((((gameOverDelay <= 0)) && ((bombCountDown <= 0)))){
player.rotation = (((Math.atan2((player.y - cursor.y), (player.x - cursor.x)) * 180) / Math.PI) - 90);
if (((keyDown[87]) || (keyDown[Keyboard.UP]))){
velY--;
};
if (((keyDown[65]) || (keyDown[Keyboard.LEFT]))){
velX--;
};
if (((keyDown[83]) || (keyDown[Keyboard.DOWN]))){
velY++;
};
if (((keyDown[68]) || (keyDown[Keyboard.RIGHT]))){
velX++;
};
if (Math.abs(velX) > 5){
velX = ((velX / Math.abs(velX)) * 5);
};
if (Math.abs(velY) > 5){
velY = ((velY / Math.abs(velY)) * 5);
};
player.x = (player.x + velX);
player.y = (player.y + velY);
velX = (velX * 0.8);
velY = (velY * 0.8);
if (((((keyDown[Keyboard.SPACE]) || (keyDown[96]))) && ((bombCountDown <= 0)))){
if (bombs > 0){
sound = new BombSFX();
sound.play();
newBomb(player.x, player.y);
bombs--;
bombCountDown = 75;
};
};
if (((mouseDown) && ((delay < 0)))){
delay = setDelay;
newShot(player.x, player.y, player.rotation, weaponLevel);
};
delay--;
};
if (player.x < 0){
player.x = 0;
velX = 0;
};
if (player.y < 0){
player.y = 0;
velY = 0;
};
if (player.x > 800){
player.x = 800;
velX = 0;
};
if (player.y > 600){
player.y = 600;
velY = 0;
};
_local3 = 0;
while (_local3 < shotArray.length) {
_local2 = shotArray[_local3];
if (((!(screen_rect.contains(_local2.x, _local2.y))) || ((bombCountDown == 0)))){
stage.removeChild(_local2);
shotArray.splice(_local3, 1);
_local3--;
} else {
_local2.render();
};
_local3++;
};
if (gameOverDelay >= 0){
player.alpha = ((gameOverDelay - 50) / 50);
if (gameOverDelay < 50){
player.alpha = 1;
if ((gameOverDelay % 25) < 5){
player.alpha = 0.5;
};
};
} else {
player.alpha = 1;
};
_local3 = 0;
while (_local3 < enemyArray.length) {
_local4 = enemyArray[_local3];
if (frozen <= 0){
_local4.render();
};
if ((((((_local4.score > 0)) && (_local4.hitTestObject(player)))) && ((gameOverDelay <= 0)))){
bombCountDown = 0;
gameOverDelay = 100;
newBomb(player.x, player.y);
bombCountDown = 175;
if (weaponLevel > 1){
weaponLevel--;
};
if (setDelay < 12){
setDelay++;
};
lives--;
sound = new PlayerHitSFX();
sound.play();
};
_local7 = (shotArray.length - 1);
while (_local7 >= 0) {
_local2 = shotArray[_local7];
if (_local4.hitTestObject(_local2)){
if (((stage.contains(_local4)) && (!((_local4.killable == false))))){
newDeathRing(_local4.x, _local4.y, _local4.color);
_local4.remove();
_local2.remove();
stage.removeChild(_local4);
enemyArray.splice(_local3, 1);
combo++;
score = (score + (_local4.score * multiplier));
escore = (escore - (_local4.score * multiplier));
if (Math.random() < 0.5){
sound = new Die1SFX();
} else {
sound = new Die2SFX();
};
sound.play();
};
if (_local4.killable == false){
sound = new UnkillableSFX();
sound.play();
};
if (((stage.contains(_local2)) && ((bombCountDown <= 0)))){
stage.removeChild(_local2);
shotArray.splice(_local7, 1);
};
};
_local7--;
};
_local3++;
};
_local3 = 0;
while (_local3 < powerUpArray.length) {
_local5 = powerUpArray[_local3];
if (frozen <= 0){
_local5.render();
};
if (_local5.hitTestObject(player)){
if (_local5.powerup == 1){
setDelay = (setDelay - 2);
} else {
if (_local5.powerup == 2){
weaponLevel++;
} else {
if (_local5.powerup == 3){
bombs++;
} else {
if (_local5.powerup == 5){
lives++;
} else {
if (_local5.powerup == 6){
frozen = (60 * 5);
};
};
};
};
};
if (setDelay < 3){
setDelay = 3;
};
if (weaponLevel > 10){
weaponLevel = 10;
};
_local5.remove();
newDeathRing(_local5.x, _local5.y, _local5.color);
if (stage.contains(_local5)){
sound = new PowerUpSFX();
sound.play();
stage.removeChild(_local5);
powerUpArray.splice(_local3, 1);
};
} else {
if (_local5.waitTime <= 0){
newDeathRing(_local5.x, _local5.y, _local5.color);
if (stage.contains(_local5)){
stage.removeChild(_local5);
powerUpArray.splice(_local3, 1);
};
} else {
if (bombCountDown > 0){
newDeathRing(_local5.x, _local5.y, _local5.color);
if (stage.contains(_local5)){
stage.removeChild(_local5);
powerUpArray.splice(_local3, 1);
};
};
};
};
_local3++;
};
_local3 = 0;
while (_local3 < birthRingArray.length) {
_local6 = birthRingArray[_local3];
if (_local6.currentFrame > 14){
stage.removeChild(_local6);
birthRingArray.splice(_local3, 1);
_local3--;
};
_local3++;
};
if ((((((Math.random() > (0.99 - (Math.sqrt(score) / 6000)))) && ((bombCountDown <= 0)))) && ((frozen <= 0)))){
_local8 = new Point(player.x, player.y);
_local9 = (Math.random() * 800);
_local10 = (Math.random() * 600);
while (Point.distance(_local8, new Point(_local9, _local10)) < 250) {
_local9 = (Math.random() * 800);
_local10 = (Math.random() * 600);
};
switch (Math.floor((Math.random() * level))){
case 0:
newBoxEnemy(_local9, _local10);
break;
case 1:
newConfusionEnemy(_local9, _local10);
break;
case 2:
newChaserEnemy(_local9, _local10);
break;
case 3:
newSpikeEnemy(_local9, _local10);
break;
case 4:
newPinWheelEnemy(_local9, _local10);
break;
case 5:
newSnakeEnemy(_local9, _local10);
break;
case 6:
newBreakerEnemy(_local9, _local10);
break;
case 7:
newChaserPlusEnemy(_local9, _local10);
break;
case 8:
newSuicideEnemy(_local9, _local10);
break;
case 9:
newAvoiderEnemy(_local9, _local10);
break;
default:
newBoxEnemy(_local9, _local10);
break;
};
if (Math.random() < POWERUP_CHANCE){
newRandomPowerUp((((Math.random() * 50) + _local9) - 25), (((Math.random() * 50) + _local10) - 25));
};
};
if (score >= 0xFA00){
level = 10;
} else {
if (score >= 0x7D00){
level = 9;
} else {
if (score >= 16000){
level = 8;
} else {
if (score >= 8000){
level = 7;
} else {
if (score >= 4000){
level = 6;
} else {
if (score >= 2000){
level = 5;
} else {
if (score >= 1000){
level = 4;
} else {
if (score >= 500){
level = 3;
} else {
if (score >= 250){
level = 2;
} else {
level = 1;
};
};
};
};
};
};
};
};
};
if (bombCountDown > 0){
combo = 0;
};
multiplier = Math.floor(Math.pow((combo + 1), (1 / 3)));
scoreText.text = score;
multiplierText.text = (multiplier + "x");
weaponLevelMeter.gotoAndStop(weaponLevel);
delayMeter.gotoAndStop((13 - setDelay));
if (lives <= 10){
if (lives == 0){
livesMeter.visible = false;
} else {
livesMeter.visible = true;
};
livesMeter.gotoAndStop(lives);
} else {
livesMeter.gotoAndStop(11);
if (livesMeter.livesText){
livesMeter.livesText.text = lives;
};
};
if (bombs <= 10){
if (bombs == 0){
bombsMeter.visible = false;
} else {
bombsMeter.visible = true;
};
bombsMeter.gotoAndStop(bombs);
} else {
bombsMeter.gotoAndStop(11);
if (bombsMeter.bombsText){
bombsMeter.bombsText.text = bombs;
};
};
};
if (((keyDown[Keyboard.ENTER]) || (keyDown[81]))){
letGoPause = ((keyDown[Keyboard.ENTER]) || (keyDown[81]));
};
if (((letGoPause) && (!((letGoPause == ((keyDown[Keyboard.ENTER]) || (keyDown[81]))))))){
paused.visible = (paused.visible) ? false : true;
letGoPause = ((keyDown[Keyboard.ENTER]) || (keyDown[81]));
};
if (((paused.visible) && (keyDown[Keyboard.ESCAPE]))){
deinit();
swipeNext.visible = true;
swipeNext.gotoAndPlay(2);
swipeNext.next = 2;
};
cursor.x = (cursor.x + ((mouseX - cursor.x) / 3));
cursor.y = (cursor.y + ((mouseY - cursor.y) / 3));
if (score != -(escore)){
score = 0;
escore = 0;
weaponLevel = 1;
setDelay = 12;
};
if (((stage.contains(screenOver)) && (!((stage.getChildIndex(screenOver) == (stage.numChildren - 1)))))){
stage.setChildIndex(screenOver, (stage.numChildren - 1));
};
if (frozen > 0){
screenOver.blendMode = BlendMode.INVERT;
if (frozen < 75){
if ((frozen % 25) < 5){
screenOver.blendMode = BlendMode.ALPHA;
};
};
};
if (lives <= 0){
deinit();
swipeNext.visible = true;
swipeNext.gotoAndPlay(2);
swipeNext.next = 9;
};
}
public function instructionsButtonFunction(_arg1){
swipeNext.visible = true;
swipeNext.gotoAndPlay(2);
swipeNext.next = 4;
}
function frame5(){
stop();
Mouse.show();
nextPageButton2.addEventListener(MouseEvent.CLICK, nextPageButtonFunction2);
prevPageButton2.addEventListener(MouseEvent.CLICK, prevPageButtonFunction2);
}
function frame9(){
stop();
highscoreDisplay = "day";
highscores = new Array();
highscores["all"] = new Array();
highscores["year"] = new Array();
highscores["month"] = new Array();
highscores["day"] = new Array();
alltimeHigh.addEventListener(MouseEvent.CLICK, alltimeHighFunction);
yearlyHigh.addEventListener(MouseEvent.CLICK, yearlyHighFunction);
monthlyHigh.addEventListener(MouseEvent.CLICK, monthlyHighFunction);
dailyHigh.addEventListener(MouseEvent.CLICK, dailyHighFunction);
loadXML("http://stuystandard.org/geowars/retrieve.php", highscoresLoadedEvent);
playmoreButton.addEventListener(MouseEvent.CLICK, agMoveFunction);
Mouse.show();
wait = -1;
mainMenuButton.addEventListener(MouseEvent.CLICK, mainMenuButtonFunction);
Security.allowInsecureDomain("*");
Security.allowDomain("*");
Security.exactSettings = false;
u = new URLRequest("http://www.stuystandard.org/geowars/insert.php");
u.method = URLRequestMethod.POST;
submitScore.submitButton.addEventListener(MouseEvent.CLICK, submitButtonFunction);
if (((((score) && (escore))) && ((score == -(escore))))){
submitScore.scoreText.text = score;
submitScore.visible = true;
} else {
submitScore.visible = false;
};
submitScore.submitButton.alpha = 1;
if (((username) && (!((username == ""))))){
submitScore.usernameText.text = username;
};
submitScore.usernameText.visible = true;
submitScore.usernameTextLocked.visible = false;
}
function frame8(){
XceeDLogo.monitor = this;
XceeDLogo.swipe = swipeNext;
Mouse.hide();
if (!bgSong){
bgSong = new BGSong();
trans = new SoundTransform();
trans.volume = 0.5;
bgChannel = bgSong.play(0, 0, trans);
bgChannel.addEventListener(Event.SOUND_COMPLETE, soundCompleteFunction);
};
}
public function newRandomPowerUp(_arg1, _arg2){
if (Math.random() < (1 / 4)){
newSpeedPowerUp(_arg1, _arg2);
} else {
if (Math.random() < (1 / 3)){
newWeaponPowerUp(_arg1, _arg2);
} else {
if (Math.random() < (1 / 2)){
newFreezeTimePowerUp(_arg1, _arg2);
} else {
if (Math.random() < (1 / 3)){
newBombPowerUp(_arg1, _arg2);
} else {
if (Math.random() < (1 / 2)){
newExplodePowerUp(_arg1, _arg2);
} else {
newLifePowerUp(_arg1, _arg2);
};
};
};
};
};
sound = new PowerupSpawnSFX();
sound.play();
}
public function prevPageButtonFunction2(_arg1){
swipeNext.visible = true;
swipeNext.gotoAndPlay(2);
swipeNext.next = 4;
}
public function prevPageButtonFunction3(_arg1){
swipeNext.visible = true;
swipeNext.gotoAndPlay(2);
swipeNext.next = 5;
}
public function prevPageButtonFunction1(_arg1){
swipeNext.visible = true;
swipeNext.gotoAndPlay(2);
swipeNext.next = 2;
}
public function snakeBreakTail(_arg1){
var _local2:*;
var _local3:*;
_local2 = _arg1;
while (((_local2) && (stage.contains(_local2)))) {
newDeathRing(_local2.x, _local2.y, _local2.color);
stage.removeChild(_local2);
_local3 = 0;
while (_local3 < enemyArray.length) {
if (enemyArray[_local3] == _local2){
enemyArray.splice(_local3, 1);
break;
};
_local3++;
};
score = (score + (_local2.score * multiplier));
escore = (escore - (_local2.score * multiplier));
_local2 = _local2.tail;
};
}
function frame2(){
stop();
startGameButton.addEventListener(MouseEvent.CLICK, startGameButtonFunction);
instructionsButton.addEventListener(MouseEvent.CLICK, instructionsButtonFunction);
aboutButton.addEventListener(MouseEvent.CLICK, aboutButtonFunction);
highscoresButton.addEventListener(MouseEvent.CLICK, highscoresButtonFunction);
qualityButton.addEventListener(MouseEvent.CLICK, qualityButtonFunction);
qualityText.text = "Quality: Medium";
agButton.addEventListener(MouseEvent.CLICK, agMoveFunction);
playmoreButton.addEventListener(MouseEvent.CLICK, agMoveFunction);
Mouse.show();
}
public function alltimeHighFunction(_arg1){
highscoreDisplay = "all";
loadHighScores();
}
public function newShot(_arg1, _arg2, _arg3, _arg4){
var _local5:*;
if (_arg4 == 1){
_local5 = new Shot1();
_local5.init(_arg1, _arg2, _arg3);
} else {
if (_arg4 == 2){
_local5 = new Shot2();
_local5.init(_arg1, _arg2, _arg3);
} else {
if (_arg4 == 3){
_local5 = new Shot3();
_local5.init(_arg1, _arg2, _arg3, newShot);
} else {
if (_arg4 == 3.5){
_local5 = new Shot3Parts();
_local5.init(_arg1, _arg2);
} else {
if (_arg4 == 4){
_local5 = new Shot4();
_local5.init(_arg1, _arg2, _arg3, newShot);
} else {
if (_arg4 == 5){
_local5 = new Shot5();
_local5.init(_arg1, _arg2, _arg3, newShot);
} else {
if (_arg4 == 6){
_local5 = new Shot6();
_local5.init(_arg1, _arg2, _arg3, newShot);
} else {
if (_arg4 == 7){
_local5 = new Shot7();
_local5.init(_arg1, _arg2, _arg3, newShot);
} else {
if (_arg4 == 8){
_local5 = new Shot8();
_local5.init(_arg1, _arg2, _arg3, newShot);
} else {
if (_arg4 == 9){
_local5 = new Shot9();
_local5.init(_arg1, _arg2, _arg3, newShot);
} else {
if (_arg4 == 10){
_local5 = new Shot10();
_local5.init(_arg1, _arg2, _arg3, player, newShot);
};
};
};
};
};
};
};
};
};
};
};
if ((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))){
_local5.filters = glow_red_arr;
};
stage.addChild(_local5);
shotArray.push(_local5);
sound = new ShotSFX();
sound.play();
}
public function newBreakerEnemy(_arg1, _arg2){
var _local3:*;
_local3 = new BreakerEnemy();
_local3.init(_arg1, _arg2, newBreakerPartsEnemy);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local3.filters = glow_magenta_arr;
};
stage.addChild(_local3);
enemyArray.push(_local3);
newBirthRing(_arg1, _arg2, 0xFF00FF);
sound = new BreakerSpawnSFX();
sound.play();
}
public function newPinWheelEnemy(_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
_local4 = ((Math.random() * 30) - 15);
while (Math.abs(_local4) < 5) {
_local4 = ((Math.random() * 30) - 15);
};
_local5 = (Math.random() * 360);
_local6 = ((Math.random() * 2) * Math.PI);
_local7 = (Math.cos(_local6) * 5);
_local8 = (Math.sin(_local6) * 5);
_local9 = 0;
while (_local9 < 4) {
_local3 = new PinWheelEnemy();
_local3.init(_arg1, _arg2, (_local5 + (_local9 * 90)), _local4, _local7, _local8);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local3.filters = glow_blue_arr;
};
stage.addChild(_local3);
enemyArray.push(_local3);
_local9++;
};
newBirthRing(_arg1, _arg2, 0);
sound = new SpikeSpawnSFX();
sound.play();
}
public function keyDownFunction(_arg1){
keyDown[_arg1.keyCode] = true;
}
public function newConfusionEnemy(_arg1, _arg2){
var _local3:*;
_local3 = new ConfusionEnemy();
_local3.init(_arg1, _arg2);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local3.filters = glow_cyan_arr;
};
stage.addChild(_local3);
enemyArray.push(_local3);
newBirthRing(_arg1, _arg2, 0xFFFF);
sound = new ConfusionSpawnSFX();
sound.play();
}
public function newSpikeEnemy(_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
_local4 = ((Math.random() * 10) - 7.5);
while (Math.abs(_local4) < 3) {
_local4 = ((Math.random() * 15) - 7.5);
};
_local5 = (Math.random() * 360);
_local6 = ((Math.random() * 2) * Math.PI);
_local7 = (Math.cos(_local6) * 3);
_local8 = (Math.sin(_local6) * 3);
_local9 = 0;
while (_local9 < 3) {
_local3 = new SpikeEnemy();
_local3.init(_arg1, _arg2, (_local5 + (_local9 * 120)), _local4, _local7, _local8);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local3.filters = glow_blue_arr;
};
stage.addChild(_local3);
enemyArray.push(_local3);
_local9++;
};
newBirthRing(_arg1, _arg2, 0xFF00);
sound = new SpikeSpawnSFX();
sound.play();
}
public function newDeathRing(_arg1, _arg2, _arg3){
var _local4:*;
var _local5:*;
_local4 = new DeathRing();
_local4.x = _arg1;
_local4.y = _arg2;
_local5 = new ColorTransform();
_local5.color = _arg3;
_local4.transform.colorTransform = _local5;
stage.addChild(_local4);
birthRingArray.push(_local4);
}
public function init(){
Mouse.hide();
keyDown = new Array();
mouseDown = false;
screen_rect = new Rectangle(-250, -250, 1300, 1100);
if (stage.quality == "BEST"){
glow_red = new GlowFilter(0xFF0000, 1, 8, 8, 3, 3);
glow_green = new GlowFilter(0xFF00, 1, 8, 8, 3, 3);
glow_blue = new GlowFilter(0xFF, 1, 8, 8, 3, 3);
glow_yellow = new GlowFilter(0xFFFF00, 1, 8, 8, 3, 3);
glow_magenta = new GlowFilter(0xFF00FF, 1, 8, 8, 3, 3);
glow_cyan = new GlowFilter(0xFFFF, 1, 8, 8, 3, 3);
glow_white = new GlowFilter(0xFFFFFF, 1, 8, 8, 3, 3);
} else {
if (stage.quality == "HIGH"){
glow_red = new GlowFilter(0xFF0000, 1, 8, 8, 2.5, 2);
glow_green = new GlowFilter(0xFF00, 1, 8, 8, 2.5, 2);
glow_blue = new GlowFilter(0xFF, 1, 8, 8, 2.5, 2);
glow_yellow = new GlowFilter(0xFFFF00, 1, 8, 8, 2.5, 2);
glow_magenta = new GlowFilter(0xFF00FF, 1, 8, 8, 2.5, 2);
glow_cyan = new GlowFilter(0xFFFF, 1, 8, 8, 2.5, 2);
glow_white = new GlowFilter(0xFFFFFF, 1, 8, 8, 2.5, 2);
} else {
glow_red = new GlowFilter(0xFF0000, 1, 8, 8, 3, 1);
glow_green = new GlowFilter(0xFF00, 1, 8, 8, 3, 1);
glow_blue = new GlowFilter(0xFF, 1, 8, 8, 3, 1);
glow_yellow = new GlowFilter(0xFFFF00, 1, 8, 8, 3, 1);
glow_magenta = new GlowFilter(0xFF00FF, 1, 8, 8, 3, 1);
glow_cyan = new GlowFilter(0xFFFF, 1, 8, 8, 3, 1);
glow_white = new GlowFilter(0xFFFFFF, 1, 8, 8, 3, 1);
};
};
glow_red_arr = new Array(glow_red);
glow_green_arr = new Array(glow_green);
glow_blue_arr = new Array(glow_blue);
glow_yellow_arr = new Array(glow_yellow);
glow_magenta_arr = new Array(glow_magenta);
glow_cyan_arr = new Array(glow_cyan);
glow_white_arr = new Array(glow_white);
cursor = new Cursor();
cursor.x = mouseX;
cursor.y = mouseY;
player = new Player();
player.x = 400;
player.y = 300;
player.filters = glow_red_arr;
velX = 0;
velY = 0;
lives = 5;
bombs = 5;
score = 0;
escore = 0;
bombCountDown = 0;
combo = 0;
multiplier = 1;
level = 1;
weaponLevel = 1;
delay = 0;
setDelay = 12;
gameOverDelay = 30;
frozen = 0;
shotArray = new Array();
birthRingArray = new Array();
enemyArray = new Array();
powerUpArray = new Array();
letGoPause = false;
screenOver = new ScreenOver();
screenOver.blendMode = BlendMode.ALPHA;
paused.visible = false;
stage.addChild(cursor);
stage.addChild(player);
stage.addChild(screenOver);
stage.addEventListener(Event.ENTER_FRAME, enterFrameFunction);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUpFunction);
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownFunction);
stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpFunction);
}
public function newWeaponPowerUp(_arg1, _arg2){
var _local3:*;
_local3 = new WeaponPowerUp();
_local3.init(_arg1, _arg2);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local3.filters = glow_white_arr;
};
stage.addChild(_local3);
powerUpArray.push(_local3);
newBirthRing(_arg1, _arg2, 0xFFFFFF);
}
public function deinit(){
var _local1:*;
stage.removeEventListener(Event.ENTER_FRAME, enterFrameFunction);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyUpFunction);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownFunction);
stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpFunction);
_local1 = (shotArray.length - 1);
while (_local1 >= 0) {
stage.removeChild(shotArray[_local1]);
_local1--;
};
_local1 = (birthRingArray.length - 1);
while (_local1 >= 0) {
stage.removeChild(birthRingArray[_local1]);
_local1--;
};
_local1 = (enemyArray.length - 1);
while (_local1 >= 0) {
stage.removeChild(enemyArray[_local1]);
_local1--;
};
_local1 = (powerUpArray.length - 1);
while (_local1 >= 0) {
stage.removeChild(powerUpArray[_local1]);
_local1--;
};
stage.removeChild(cursor);
stage.removeChild(player);
stage.removeChild(screenOver);
}
public function keyUpFunction(_arg1){
keyDown[_arg1.keyCode] = false;
}
public function loadXML(_arg1, _arg2){
var _local3:*;
var _local4:*;
highscoresChart.highscoresTitle.text = "Loading Highscores...";
_local3 = 1;
while (_local3 <= 10) {
highscoresChart[("s" + _local3)].text = "None...";
_local3++;
};
_local4 = new URLLoader();
_local4.addEventListener(Event.COMPLETE, _arg2);
_local4.load(new URLRequest(((_arg1 + "?") + Math.floor((Math.random() * 1000000)))));
}
public function highscoresLoadedEvent(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
_local2 = XML(_arg1.target.data);
_local3 = _local2.children()[0].children();
_local4 = _local2.children()[1].children();
_local5 = _local2.children()[2].children();
_local6 = _local2.children()[3].children();
for (_local7 in _local3) {
_local8 = _local3[_local7].attributes();
highscores["all"][_local8[0]] = (((_local8[1] + " (") + _local8[2]) + ")");
};
for (_local7 in _local4) {
_local8 = _local4[_local7].attributes();
highscores["year"][_local8[0]] = (((_local8[1] + " (") + _local8[2]) + ")");
};
for (_local7 in _local5) {
_local8 = _local5[_local7].attributes();
highscores["month"][_local8[0]] = (((_local8[1] + " (") + _local8[2]) + ")");
};
for (_local7 in _local6) {
_local8 = _local6[_local7].attributes();
highscores["day"][_local8[0]] = (((_local8[1] + " (") + _local8[2]) + ")");
};
loadHighScores();
}
public function yearlyHighFunction(_arg1){
highscoreDisplay = "year";
loadHighScores();
}
public function soundCompleteFunction(_arg1){
bgSong = new BGSong();
trans = new SoundTransform();
trans.volume = 0.5;
bgChannel = bgSong.play(0, 0, trans);
if (!bgChannel.hasEventListener(Event.SOUND_COMPLETE)){
bgChannel.addEventListener(Event.SOUND_COMPLETE, soundCompleteFunction);
};
}
public function submitButtonFunction(_arg1){
var _local2:*;
_local2 = new URLVariables();
if ((((score == -(escore))) && ((score == submitScore.scoreText.text)))){
_local2.name = submitScore.usernameText.text;
_local2.score = score;
u.data = _local2;
sendToURL(u);
};
submitScore.submitButton.removeEventListener(MouseEvent.CLICK, submitButtonFunction);
submitScore.submitButton.alpha = 0.5;
submitScore.usernameText.visible = false;
submitScore.usernameTextLocked.text = submitScore.usernameText.text;
submitScore.usernameTextLocked.visible = true;
score = 0;
escore = 0;
wait = 60;
stage.addEventListener(Event.ENTER_FRAME, reloadHighFunction);
}
public function newAvoiderEnemy(_arg1, _arg2){
var _local3:*;
_local3 = new AvoiderEnemy();
_local3.init(_arg1, _arg2, player, newDaggerEnemy);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local3.filters = glow_magenta_arr;
};
stage.addChild(_local3);
enemyArray.push(_local3);
newBirthRing(_arg1, _arg2, 0xFF00FF);
sound = new AvoiderSpawnSFX();
sound.play();
}
public function newSuicideEnemy(_arg1, _arg2){
var _local3:*;
_local3 = new SuicideEnemy();
_local3.init(_arg1, _arg2, player);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local3.filters = glow_green_arr;
};
stage.addChild(_local3);
enemyArray.push(_local3);
newBirthRing(_arg1, _arg2, 0xFF00);
sound = new ChaserSpawnSFX();
sound.play();
}
public function startGameButtonFunction(_arg1){
swipeNext.visible = true;
swipeNext.gotoAndPlay(2);
swipeNext.next = 3;
}
public function reloadHighFunction(_arg1){
wait--;
if (wait <= 0){
loadXML("http://stuystandard.org/geowars/retrieve.php", highscoresLoadedEvent);
stage.removeEventListener(Event.ENTER_FRAME, reloadHighFunction);
};
}
public function newBreakerPartsEnemy(_arg1, _arg2){
var _local3:*;
_local3 = new BreakerPartsEnemy();
_local3.init(_arg1, _arg2);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local3.filters = glow_magenta_arr;
};
stage.addChild(_local3);
enemyArray.push(_local3);
newBirthRing(_arg1, _arg2, 0xFF00FF);
sound = new DaggerSpawnSFX();
sound.play();
}
public function nextPageButtonFunction1(_arg1){
swipeNext.visible = true;
swipeNext.gotoAndPlay(2);
swipeNext.next = 5;
}
public function newBirthRing(_arg1, _arg2, _arg3){
var _local4:*;
var _local5:*;
_local4 = new BirthRing();
_local4.x = _arg1;
_local4.y = _arg2;
_local5 = new ColorTransform();
_local5.color = _arg3;
_local4.transform.colorTransform = _local5;
stage.addChild(_local4);
birthRingArray.push(_local4);
}
public function newBombPowerUp(_arg1, _arg2){
var _local3:*;
_local3 = new BombPowerUp();
_local3.init(_arg1, _arg2);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local3.filters = glow_white_arr;
};
stage.addChild(_local3);
powerUpArray.push(_local3);
newBirthRing(_arg1, _arg2, 0xFFFFFF);
}
public function progressCompleteHandler(_arg1:Event){
root.loaderInfo.removeEventListener(Event.INIT, onRootLoaderInit);
root.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
root.loaderInfo.removeEventListener(Event.COMPLETE, progressCompleteHandler);
swipeNext.visible = true;
swipeNext.gotoAndPlay(2);
swipeNext.next = 10;
}
public function nextPageButtonFunction3(_arg1){
swipeNext.visible = true;
swipeNext.gotoAndPlay(2);
swipeNext.next = 2;
}
public function newChaserEnemy(_arg1, _arg2){
var _local3:*;
_local3 = new ChaserEnemy();
_local3.init(_arg1, _arg2, player);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local3.filters = glow_yellow_arr;
};
stage.addChild(_local3);
enemyArray.push(_local3);
newBirthRing(_arg1, _arg2, 0xFFFF00);
sound = new ChaserSpawnSFX();
sound.play();
}
public function newSnakeEnemy(_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
_local3 = new SnakeEnemy();
_local3.init(_arg1, _arg2, snakeBreakTail);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local3.filters = glow_magenta_arr;
};
stage.addChild(_local3);
enemyArray.push(_local3);
_local5 = _local3;
_local6 = (Math.ceil((Math.random() * 10)) + 5);
_local7 = 0;
while (_local7 < _local6) {
_local4 = new SnakeTailEnemy();
_local4.init(_arg1, _arg2, snakeBreakTail, _local5);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local4.filters = glow_yellow_arr;
};
stage.addChild(_local4);
enemyArray.push(_local4);
_local5.tail = _local4;
_local5 = _local4;
_local7++;
};
newBirthRing(_arg1, _arg2, 0xFF00FF);
sound = new SnakeSpawnSFX();
sound.play();
}
public function nextPageButtonFunction2(_arg1){
swipeNext.visible = true;
swipeNext.gotoAndPlay(2);
swipeNext.next = 6;
}
public function newSpeedPowerUp(_arg1, _arg2){
var _local3:*;
_local3 = new SpeedPowerUp();
_local3.init(_arg1, _arg2);
if ((((((stage.quality == "BEST")) || ((stage.quality == "HIGH")))) || ((stage.quality == "MEDIUM")))){
_local3.filters = glow_white_arr;
};
stage.addChild(_local3);
powerUpArray.push(_local3);
newBirthRing(_arg1, _arg2, 0xFFFFFF);
}
}
}//package game_fla
Section 8
//SubmitScore_24 (game_fla.SubmitScore_24)
package game_fla {
import flash.display.*;
import flash.text.*;
public dynamic class SubmitScore_24 extends MovieClip {
public var usernameTextLocked:TextField;
public var usernameText:TextField;
public var submitButton:SimpleButton;
public var scoreText:TextField;
}
}//package game_fla
Section 9
//Swipe_10 (game_fla.Swipe_10)
package game_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Swipe_10 extends MovieClip {
public var next;
public var monitor;
public function Swipe_10(){
addFrameScript(0, frame1, 35, frame36, 49, frame50);
}
function frame1(){
gotoAndStop(2);
}
function frame36(){
monitor.gotoAndStop(next);
}
function frame50(){
visible = false;
stop();
}
}
}//package game_fla
Section 10
//AvoiderEnemy (AvoiderEnemy)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class AvoiderEnemy extends MovieClip {
public var velX;
public var velY;
public var color;
public var score;
public var func;
public var chase;
public function AvoiderEnemy(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3, _arg4){
var _local5:*;
x = _arg1;
y = _arg2;
func = _arg4;
chase = _arg3;
_local5 = Math.atan2((y - chase.y), (x - chase.x));
velX = (Math.cos(_local5) * 8);
velY = (Math.sin(_local5) * 8);
color = 0xFF00FF;
score = 100;
}
function frame1(){
}
public function remove(){
}
public function render(){
var _local1:*;
_local1 = Math.atan2((y - chase.y), (x - chase.x));
velX = (Math.cos(_local1) * 8);
velY = (Math.sin(_local1) * 8);
x = (x + velX);
y = (y + velY);
if (x < 0){
x = 0;
velX = (velX * -1);
};
if (y < 0){
y = 0;
velY = (velY * -1);
};
if (x > 800){
x = 800;
velX = (velX * -1);
};
if (y > 600){
y = 600;
velY = (velY * -1);
};
if (Math.random() > 0.98){
func(x, y, chase);
};
}
}
}//package
Section 11
//AvoiderSpawnSFX (AvoiderSpawnSFX)
package {
import flash.media.*;
public dynamic class AvoiderSpawnSFX extends Sound {
}
}//package
Section 12
//BGSong (BGSong)
package {
import flash.media.*;
public dynamic class BGSong extends Sound {
}
}//package
Section 13
//BirthRing (BirthRing)
package {
import flash.display.*;
public dynamic class BirthRing extends MovieClip {
public function BirthRing(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package
Section 14
//Bomb (Bomb)
package {
import flash.display.*;
public dynamic class Bomb extends MovieClip {
public function Bomb(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2){
x = _arg1;
y = _arg2;
}
function frame1(){
}
public function remove(){
}
public function render(){
}
}
}//package
Section 15
//BombPowerUp (BombPowerUp)
package {
import flash.display.*;
public dynamic class BombPowerUp extends MovieClip {
public var rotate;
public var velY;
public var velX;
public var color;
public var powerup;
public var waitTime;
public function BombPowerUp(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2){
var _local3:*;
x = _arg1;
y = _arg2;
rotate = ((Math.random() * 10) - 5);
while (Math.abs(rotate) < 1) {
rotate = ((Math.random() * 10) - 5);
};
rotation = (Math.random() * 360);
_local3 = ((Math.random() * 2) * Math.PI);
velX = (Math.cos(_local3) * 2);
velY = (Math.sin(_local3) * 2);
color = 0xFFFFFF;
powerup = 3;
waitTime = (60 * 30);
}
function frame1(){
}
public function remove(){
}
public function render(){
rotation = (rotation + rotate);
waitTime--;
x = (x + velX);
y = (y + velY);
if (x < 0){
x = 0;
velX = (velX * -1);
};
if (y < 0){
y = 0;
velY = (velY * -1);
};
if (x > 800){
x = 800;
velX = (velX * -1);
};
if (y > 600){
y = 600;
velY = (velY * -1);
};
}
}
}//package
Section 16
//BombSFX (BombSFX)
package {
import flash.media.*;
public dynamic class BombSFX extends Sound {
}
}//package
Section 17
//BoxEnemy (BoxEnemy)
package {
import flash.display.*;
public dynamic class BoxEnemy extends MovieClip {
public var rotate;
public var velY;
public var velX;
public var color;
public var score;
public function BoxEnemy(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2){
var _local3:*;
x = _arg1;
y = _arg2;
rotate = ((Math.random() * 10) - 5);
while (Math.abs(rotate) < 1) {
rotate = ((Math.random() * 10) - 5);
};
rotation = (Math.random() * 360);
_local3 = ((Math.random() * 2) * Math.PI);
velX = (Math.cos(_local3) * 5);
velY = (Math.sin(_local3) * 5);
color = 0xFF00;
score = 25;
}
function frame1(){
}
public function remove(){
}
public function render(){
rotation = (rotation + rotate);
x = (x + velX);
y = (y + velY);
if (x < 0){
x = 0;
velX = (velX * -1);
};
if (y < 0){
y = 0;
velY = (velY * -1);
};
if (x > 800){
x = 800;
velX = (velX * -1);
};
if (y > 600){
y = 600;
velY = (velY * -1);
};
}
}
}//package
Section 18
//BoxSpawnSFX (BoxSpawnSFX)
package {
import flash.media.*;
public dynamic class BoxSpawnSFX extends Sound {
}
}//package
Section 19
//BreakerEnemy (BreakerEnemy)
package {
import flash.display.*;
public dynamic class BreakerEnemy extends MovieClip {
public var rotate;
public var velY;
public var velX;
public var color;
public var score;
public var func;
public function BreakerEnemy(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3){
var _local4:*;
x = _arg1;
y = _arg2;
func = _arg3;
rotate = ((Math.random() * 10) - 5);
while (Math.abs(rotate) < 1) {
rotate = ((Math.random() * 10) - 5);
};
rotation = (Math.random() * 360);
_local4 = ((Math.random() * 2) * Math.PI);
velX = (Math.cos(_local4) * 3);
velY = (Math.sin(_local4) * 3);
color = 0xFF00FF;
score = 50;
}
function frame1(){
}
public function remove(){
var _local1:*;
_local1 = 0;
while (_local1 < 3) {
func(((x + (Math.random() * 30)) - 15), ((y + (Math.random() * 30)) - 15));
_local1++;
};
}
public function render(){
rotation = (rotation + rotate);
x = (x + velX);
y = (y + velY);
if (x < 0){
x = 0;
velX = (velX * -1);
};
if (y < 0){
y = 0;
velY = (velY * -1);
};
if (x > 800){
x = 800;
velX = (velX * -1);
};
if (y > 600){
y = 600;
velY = (velY * -1);
};
}
}
}//package
Section 20
//BreakerPartsEnemy (BreakerPartsEnemy)
package {
import flash.display.*;
public dynamic class BreakerPartsEnemy extends MovieClip {
public var rotate;
public var velY;
public var velX;
public var color;
public var score;
public function BreakerPartsEnemy(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2){
var _local3:*;
x = _arg1;
y = _arg2;
rotate = ((Math.random() * 10) - 5);
while (Math.abs(rotate) < 1) {
rotate = ((Math.random() * 10) - 5);
};
rotation = (Math.random() * 360);
_local3 = ((Math.random() * 2) * Math.PI);
velX = (Math.cos(_local3) * 5);
velY = (Math.sin(_local3) * 5);
color = 0xFF00FF;
score = 25;
}
function frame1(){
}
public function remove(){
}
public function render(){
rotation = (rotation + rotate);
x = (x + velX);
y = (y + velY);
if (x < 0){
x = 0;
velX = (velX * -1);
};
if (y < 0){
y = 0;
velY = (velY * -1);
};
if (x > 800){
x = 800;
velX = (velX * -1);
};
if (y > 600){
y = 600;
velY = (velY * -1);
};
}
}
}//package
Section 21
//BreakerSpawnSFX (BreakerSpawnSFX)
package {
import flash.media.*;
public dynamic class BreakerSpawnSFX extends Sound {
}
}//package
Section 22
//ChaserEnemy (ChaserEnemy)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class ChaserEnemy extends MovieClip {
public var velX;
public var velY;
public var color;
public var score;
public var chase;
public function ChaserEnemy(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3){
var _local4:*;
x = _arg1;
y = _arg2;
chase = _arg3;
_local4 = (Math.atan2((y - chase.y), (x - chase.x)) + Math.PI);
velX = (Math.cos(_local4) * 3);
velY = (Math.sin(_local4) * 3);
color = 0xFFFF00;
score = 50;
}
function frame1(){
}
public function remove(){
}
public function render(){
var _local1:*;
_local1 = (Math.atan2((y - chase.y), (x - chase.x)) + Math.PI);
velX = (Math.cos(_local1) * 3);
velY = (Math.sin(_local1) * 3);
x = (x + velX);
y = (y + velY);
if (x < 0){
x = 0;
velX = (velX * -1);
};
if (y < 0){
y = 0;
velY = (velY * -1);
};
if (x > 800){
x = 800;
velX = (velX * -1);
};
if (y > 600){
y = 600;
velY = (velY * -1);
};
}
}
}//package
Section 23
//ChaserPlusEnemy (ChaserPlusEnemy)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class ChaserPlusEnemy extends MovieClip {
public var velX;
public var velY;
public var color;
public var score;
public var ang;
public var chase;
public function ChaserPlusEnemy(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3){
var _local4:*;
x = _arg1;
y = _arg2;
chase = _arg3;
ang = ((Math.PI * Math.random()) - (Math.PI / 2));
while ((((Math.abs(ang) < (Math.PI / 16))) || ((Math.abs(ang) >= (Math.PI / 2.5))))) {
ang = (((Math.PI / 2) * Math.random()) - (Math.PI / 4));
};
_local4 = ((Math.atan2((y - chase.y), (x - chase.x)) + Math.PI) + ang);
velX = (Math.cos(_local4) * 5);
velY = (Math.sin(_local4) * 5);
color = 0xFFFF00;
score = 75;
}
function frame1(){
}
public function remove(){
}
public function render(){
var _local1:*;
_local1 = ((Math.atan2((y - chase.y), (x - chase.x)) + Math.PI) + ang);
velX = (Math.cos(_local1) * 5);
velY = (Math.sin(_local1) * 5);
x = (x + velX);
y = (y + velY);
if (x < 0){
x = 0;
velX = (velX * -1);
};
if (y < 0){
y = 0;
velY = (velY * -1);
};
if (x > 800){
x = 800;
velX = (velX * -1);
};
if (y > 600){
y = 600;
velY = (velY * -1);
};
}
}
}//package
Section 24
//ChaserSpawnSFX (ChaserSpawnSFX)
package {
import flash.media.*;
public dynamic class ChaserSpawnSFX extends Sound {
}
}//package
Section 25
//ConfusionEnemy (ConfusionEnemy)
package {
import flash.display.*;
public dynamic class ConfusionEnemy extends MovieClip {
public var rotate;
public var velY;
public var velX;
public var color;
public var score;
public var dist;
public var bob;
public function ConfusionEnemy(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2){
var _local3:*;
x = _arg1;
y = _arg2;
rotate = ((Math.random() * 10) - 5);
while (Math.abs(rotate) < 1) {
rotate = ((Math.random() * 10) - 5);
};
dist = ((Math.random() * 5) + 2.5);
bob = 0;
_local3 = ((Math.random() * 2) * Math.PI);
velX = (Math.cos(_local3) * 3);
velY = (Math.sin(_local3) * 3);
color = 0xFFFF;
score = 35;
}
function frame1(){
}
public function remove(){
}
public function render(){
bob = (bob + (Math.PI / 25));
x = (x + (velX + (Math.cos((bob + rotate)) * dist)));
y = (y + (velY + (Math.sin((bob + rotate)) * dist)));
if (x < 0){
x = 0;
velX = (velX * -1);
};
if (y < 0){
y = 0;
velY = (velY * -1);
};
if (x > 800){
x = 800;
velX = (velX * -1);
};
if (y > 600){
y = 600;
velY = (velY * -1);
};
}
}
}//package
Section 26
//ConfusionSpawnSFX (ConfusionSpawnSFX)
package {
import flash.media.*;
public dynamic class ConfusionSpawnSFX extends Sound {
}
}//package
Section 27
//Cursor (Cursor)
package {
import flash.display.*;
public dynamic class Cursor extends MovieClip {
}
}//package
Section 28
//DaggerEnemy (DaggerEnemy)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class DaggerEnemy extends MovieClip {
public var velX;
public var speed;
public var velY;
public var color;
public var score;
public var chase;
public function DaggerEnemy(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3){
var _local4:*;
x = _arg1;
y = _arg2;
chase = _arg3;
speed = 1;
_local4 = (Math.atan2((y - chase.y), (x - chase.x)) + Math.PI);
velX = (Math.cos(_local4) * speed);
velY = (Math.sin(_local4) * speed);
color = 0xFF00FF;
score = 0;
}
function frame1(){
}
public function remove(){
}
public function render(){
var _local1:*;
if (speed >= 8){
speed = 8;
} else {
speed = (speed * 1.05);
};
_local1 = (Math.atan2((y - chase.y), (x - chase.x)) + Math.PI);
velX = (Math.cos(_local1) * speed);
velY = (Math.sin(_local1) * speed);
if (Point.distance(new Point(x, y), new Point(chase.x, chase.y)) < 1){
rotation = (Math.random() * 360);
} else {
rotation = (((_local1 * 180) / Math.PI) + 90);
};
x = (x + velX);
y = (y + velY);
if (x < 0){
x = 0;
velX = (velX * -1);
};
if (y < 0){
y = 0;
velY = (velY * -1);
};
if (x > 800){
x = 800;
velX = (velX * -1);
};
if (y > 600){
y = 600;
velY = (velY * -1);
};
}
}
}//package
Section 29
//DaggerSpawnSFX (DaggerSpawnSFX)
package {
import flash.media.*;
public dynamic class DaggerSpawnSFX extends Sound {
}
}//package
Section 30
//DeathRing (DeathRing)
package {
import flash.display.*;
public dynamic class DeathRing extends MovieClip {
public function DeathRing(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package
Section 31
//Die1SFX (Die1SFX)
package {
import flash.media.*;
public dynamic class Die1SFX extends Sound {
}
}//package
Section 32
//Die2SFX (Die2SFX)
package {
import flash.media.*;
public dynamic class Die2SFX extends Sound {
}
}//package
Section 33
//ExplodePowerUp (ExplodePowerUp)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class ExplodePowerUp extends MovieClip {
public var rotate;
public var velY;
public var velX;
public var color;
public var powerup;
public var func;
public var waitTime;
public var chase;
public function ExplodePowerUp(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3, _arg4){
var _local5:*;
x = _arg1;
y = _arg2;
chase = _arg3;
func = _arg4;
rotate = ((Math.random() * 10) - 5);
while (Math.abs(rotate) < 1) {
rotate = ((Math.random() * 10) - 5);
};
rotation = (Math.random() * 360);
_local5 = ((Math.random() * 2) * Math.PI);
velX = (Math.cos(_local5) * 2);
velY = (Math.sin(_local5) * 2);
color = 0xFFFFFF;
powerup = 4;
waitTime = (60 * 30);
}
function frame1(){
}
public function remove(){
var _local1:*;
_local1 = 0;
while (_local1 < 72) {
func(chase.x, chase.y, (_local1 * 5), 5);
_local1++;
};
}
public function render(){
rotation = (rotation + rotate);
waitTime--;
x = (x + velX);
y = (y + velY);
if (x < 0){
x = 0;
velX = (velX * -1);
};
if (y < 0){
y = 0;
velY = (velY * -1);
};
if (x > 800){
x = 800;
velX = (velX * -1);
};
if (y > 600){
y = 600;
velY = (velY * -1);
};
}
}
}//package
Section 34
//FreezeTimePowerUp (FreezeTimePowerUp)
package {
import flash.display.*;
public dynamic class FreezeTimePowerUp extends MovieClip {
public var rotate;
public var velY;
public var velX;
public var color;
public var powerup;
public var waitTime;
public function FreezeTimePowerUp(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2){
var _local3:*;
x = _arg1;
y = _arg2;
rotate = ((Math.random() * 10) - 5);
while (Math.abs(rotate) < 1) {
rotate = ((Math.random() * 10) - 5);
};
rotation = (Math.random() * 360);
_local3 = ((Math.random() * 2) * Math.PI);
velX = (Math.cos(_local3) * 2);
velY = (Math.sin(_local3) * 2);
color = 0xFFFFFF;
powerup = 6;
waitTime = (60 * 30);
}
function frame1(){
}
public function remove(){
}
public function render(){
rotation = (rotation + rotate);
waitTime--;
x = (x + velX);
y = (y + velY);
if (x < 0){
x = 0;
velX = (velX * -1);
};
if (y < 0){
y = 0;
velY = (velY * -1);
};
if (x > 800){
x = 800;
velX = (velX * -1);
};
if (y > 600){
y = 600;
velY = (velY * -1);
};
}
}
}//package
Section 35
//LifePowerUp (LifePowerUp)
package {
import flash.display.*;
public dynamic class LifePowerUp extends MovieClip {
public var rotate;
public var velY;
public var velX;
public var color;
public var powerup;
public var waitTime;
public function LifePowerUp(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2){
var _local3:*;
x = _arg1;
y = _arg2;
rotate = ((Math.random() * 10) - 5);
while (Math.abs(rotate) < 1) {
rotate = ((Math.random() * 10) - 5);
};
rotation = (Math.random() * 360);
_local3 = ((Math.random() * 2) * Math.PI);
velX = (Math.cos(_local3) * 2);
velY = (Math.sin(_local3) * 2);
color = 0xFFFFFF;
powerup = 5;
waitTime = (60 * 30);
}
function frame1(){
}
public function remove(){
}
public function render(){
rotation = (rotation + rotate);
waitTime--;
x = (x + velX);
y = (y + velY);
if (x < 0){
x = 0;
velX = (velX * -1);
};
if (y < 0){
y = 0;
velY = (velY * -1);
};
if (x > 800){
x = 800;
velX = (velX * -1);
};
if (y > 600){
y = 600;
velY = (velY * -1);
};
}
}
}//package
Section 36
//PinWheelEnemy (PinWheelEnemy)
package {
import flash.display.*;
public dynamic class PinWheelEnemy extends MovieClip {
public var rotate;
public var velY;
public var velX;
public var color;
public var score;
public function PinWheelEnemy(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){
x = _arg1;
y = _arg2;
rotate = _arg4;
rotation = _arg3;
velX = _arg5;
velY = _arg6;
color = 0xFF;
score = 10;
}
function frame1(){
}
public function remove(){
}
public function render(){
rotation = (rotation + rotate);
x = (x + velX);
y = (y + velY);
if (x < 0){
x = 0;
velX = (velX * -1);
};
if (y < 0){
y = 0;
velY = (velY * -1);
};
if (x > 800){
x = 800;
velX = (velX * -1);
};
if (y > 600){
y = 600;
velY = (velY * -1);
};
}
}
}//package
Section 37
//Player (Player)
package {
import flash.display.*;
public dynamic class Player extends MovieClip {
}
}//package
Section 38
//PlayerHitSFX (PlayerHitSFX)
package {
import flash.media.*;
public dynamic class PlayerHitSFX extends Sound {
}
}//package
Section 39
//PowerUpSFX (PowerUpSFX)
package {
import flash.media.*;
public dynamic class PowerUpSFX extends Sound {
}
}//package
Section 40
//PowerupSpawnSFX (PowerupSpawnSFX)
package {
import flash.media.*;
public dynamic class PowerupSpawnSFX extends Sound {
}
}//package
Section 41
//ScreenOver (ScreenOver)
package {
import flash.display.*;
public dynamic class ScreenOver extends MovieClip {
}
}//package
Section 42
//Shot1 (Shot1)
package {
import flash.display.*;
public dynamic class Shot1 extends MovieClip {
public var velX;
public var velY;
public function Shot1(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3){
x = _arg1;
y = _arg2;
_arg3 = (_arg3 - 90);
rotation = _arg3;
velX = (Math.cos(((_arg3 * Math.PI) / 180)) * 15);
velY = (Math.sin(((_arg3 * Math.PI) / 180)) * 15);
}
function frame1(){
}
public function remove(){
}
public function render(){
x = (x + velX);
y = (y + velY);
}
}
}//package
Section 43
//Shot10 (Shot10)
package {
import flash.display.*;
public dynamic class Shot10 extends MovieClip {
public var velX;
public var velY;
public var func;
public var chase;
public function Shot10(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3, _arg4, _arg5){
x = _arg1;
y = _arg2;
_arg3 = (_arg3 - 90);
rotation = _arg3;
chase = _arg4;
func = _arg5;
velX = (Math.cos(((_arg3 * Math.PI) / 180)) * 15);
velY = (Math.sin(((_arg3 * Math.PI) / 180)) * 15);
}
function frame1(){
}
public function remove(){
var _local1:*;
_local1 = 0;
while (_local1 < 3) {
func(x, y, (Math.random() * 360), 9);
_local1++;
};
}
public function render(){
x = (x + velX);
y = (y + velY);
}
}
}//package
Section 44
//Shot2 (Shot2)
package {
import flash.display.*;
public dynamic class Shot2 extends MovieClip {
public var velX;
public var velY;
public function Shot2(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3){
x = _arg1;
y = _arg2;
_arg3 = (_arg3 - 90);
rotation = _arg3;
velX = (Math.cos(((_arg3 * Math.PI) / 180)) * 25);
velY = (Math.sin(((_arg3 * Math.PI) / 180)) * 25);
}
function frame1(){
}
public function remove(){
}
public function render(){
x = (x + velX);
y = (y + velY);
}
}
}//package
Section 45
//Shot3 (Shot3)
package {
import flash.display.*;
public dynamic class Shot3 extends MovieClip {
public var velX;
public var velY;
public var func;
public function Shot3(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3, _arg4){
x = _arg1;
y = _arg2;
_arg3 = (_arg3 - 90);
rotation = _arg3;
func = _arg4;
velX = (Math.cos(((_arg3 * Math.PI) / 180)) * 25);
velY = (Math.sin(((_arg3 * Math.PI) / 180)) * 25);
}
function frame1(){
}
public function remove(){
var _local1:*;
_local1 = 0;
while (_local1 < 2) {
func(x, y, 0, 3.5);
_local1++;
};
}
public function render(){
x = (x + velX);
y = (y + velY);
}
}
}//package
Section 46
//Shot3Parts (Shot3Parts)
package {
import flash.display.*;
public dynamic class Shot3Parts extends MovieClip {
public var velX;
public var velY;
public function Shot3Parts(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2){
var _local3:*;
x = _arg1;
y = _arg2;
_local3 = (Math.random() * 360);
rotation = _local3;
velX = (Math.cos(((_local3 * Math.PI) / 180)) * 10);
velY = (Math.sin(((_local3 * Math.PI) / 180)) * 10);
}
function frame1(){
}
public function remove(){
}
public function render(){
x = (x + velX);
y = (y + velY);
}
}
}//package
Section 47
//Shot4 (Shot4)
package {
import flash.display.*;
public dynamic class Shot4 extends MovieClip {
public var velX;
public var velY;
public var func;
public function Shot4(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3, _arg4){
x = _arg1;
y = _arg2;
_arg3 = (_arg3 - 90);
rotation = _arg3;
func = _arg4;
velX = (Math.cos(((_arg3 * Math.PI) / 180)) * 10);
velY = (Math.sin(((_arg3 * Math.PI) / 180)) * 10);
}
function frame1(){
}
public function remove(){
var _local1:*;
_local1 = 0;
while (_local1 < 1) {
func(x, y, (((Math.random() * 180) + rotation) + 180), 1);
_local1++;
};
}
public function render(){
x = (x + velX);
y = (y + velY);
}
}
}//package
Section 48
//Shot5 (Shot5)
package {
import flash.display.*;
public dynamic class Shot5 extends MovieClip {
public var velX;
public var velY;
public var func;
public function Shot5(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3, _arg4){
x = _arg1;
y = _arg2;
_arg3 = (_arg3 - 90);
rotation = _arg3;
func = _arg4;
velX = (Math.cos(((_arg3 * Math.PI) / 180)) * 25);
velY = (Math.sin(((_arg3 * Math.PI) / 180)) * 25);
}
function frame1(){
}
public function remove(){
var _local1:*;
_local1 = 0;
while (_local1 < 4) {
func(x, y, 0, 3.5);
_local1++;
};
}
public function render(){
x = (x + velX);
y = (y + velY);
}
}
}//package
Section 49
//Shot6 (Shot6)
package {
import flash.display.*;
public dynamic class Shot6 extends MovieClip {
public var velX;
public var velY;
public var func;
public function Shot6(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3, _arg4){
x = _arg1;
y = _arg2;
_arg3 = (_arg3 - 90);
rotation = _arg3;
func = _arg4;
velX = (Math.cos(((_arg3 * Math.PI) / 180)) * 25);
velY = (Math.sin(((_arg3 * Math.PI) / 180)) * 25);
}
function frame1(){
}
public function remove(){
var _local1:*;
_local1 = 0;
while (_local1 < 8) {
func(x, y, 0, 3.5);
_local1++;
};
}
public function render(){
x = (x + velX);
y = (y + velY);
}
}
}//package
Section 50
//Shot7 (Shot7)
package {
import flash.display.*;
public dynamic class Shot7 extends MovieClip {
public var velX;
public var velY;
public var func;
public function Shot7(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3, _arg4){
x = _arg1;
y = _arg2;
_arg3 = (_arg3 - 90);
rotation = _arg3;
func = _arg4;
velX = (Math.cos(((_arg3 * Math.PI) / 180)) * 10);
velY = (Math.sin(((_arg3 * Math.PI) / 180)) * 10);
}
function frame1(){
}
public function remove(){
var _local1:*;
_local1 = 0;
while (_local1 < 2) {
func(x, y, (((Math.random() * 180) + rotation) + 180), 7);
_local1++;
};
}
public function render(){
x = (x + velX);
y = (y + velY);
}
}
}//package
Section 51
//Shot8 (Shot8)
package {
import flash.display.*;
public dynamic class Shot8 extends MovieClip {
public var velX;
public var velY;
public var func;
public function Shot8(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3, _arg4){
x = _arg1;
y = _arg2;
_arg3 = (_arg3 - 90);
rotation = _arg3;
func = _arg4;
velX = (Math.cos(((_arg3 * Math.PI) / 180)) * 25);
velY = (Math.sin(((_arg3 * Math.PI) / 180)) * 25);
}
function frame1(){
}
public function remove(){
var _local1:*;
_local1 = 0;
while (_local1 < 5) {
func(x, y, (Math.random() * 360), 5);
_local1++;
};
}
public function render(){
x = (x + velX);
y = (y + velY);
}
}
}//package
Section 52
//Shot9 (Shot9)
package {
import flash.display.*;
public dynamic class Shot9 extends MovieClip {
public var velX;
public var velY;
public var func;
public function Shot9(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3, _arg4){
x = _arg1;
y = _arg2;
_arg3 = (_arg3 - 90);
rotation = _arg3;
func = _arg4;
velX = (Math.cos(((_arg3 * Math.PI) / 180)) * 10);
velY = (Math.sin(((_arg3 * Math.PI) / 180)) * 10);
}
function frame1(){
}
public function remove(){
var _local1:*;
_local1 = 0;
while (_local1 < 5) {
func(x, y, (Math.random() * 360), 4);
_local1++;
};
}
public function render(){
x = (x + velX);
y = (y + velY);
}
}
}//package
Section 53
//ShotSFX (ShotSFX)
package {
import flash.media.*;
public dynamic class ShotSFX extends Sound {
}
}//package
Section 54
//SnakeEnemy (SnakeEnemy)
package {
import flash.display.*;
public dynamic class SnakeEnemy extends MovieClip {
public var tail;
public var rotate;
public var velY;
public var velX;
public var color;
public var score;
public var func;
public var stopper;
public function SnakeEnemy(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3){
x = _arg1;
y = _arg2;
func = _arg3;
rotate = ((Math.random() * 10) - 5);
while (Math.abs(rotate) < 0.2) {
rotate = ((Math.random() * 10) - 5);
};
rotation = (Math.random() * 360);
color = 0xFF00FF;
score = 10;
stopper = 0;
}
function frame1(){
}
public function remove(){
if (((tail) && (stage.contains(tail)))){
func(tail);
};
}
public function render(){
if ((((Math.random() < 0.05)) && ((stopper < -15)))){
stopper = 0;
rotate = ((Math.random() * 10) - 5);
while (Math.abs(rotate) < 2) {
rotate = ((Math.random() * 10) - 5);
};
};
stopper--;
if (stopper <= 0){
rotation = (rotation + rotate);
x = (x + (Math.cos(((rotation * Math.PI) / 180)) * 5));
y = (y + (Math.sin(((rotation * Math.PI) / 180)) * 5));
};
if (x < 0){
x = 0;
rotation = (rotation + 180);
};
if (y < 0){
y = 0;
rotation = (rotation + 180);
};
if (x > 800){
x = 800;
rotation = (rotation + 180);
};
if (y > 600){
y = 600;
rotation = (rotation + 180);
};
}
}
}//package
Section 55
//SnakeSpawnSFX (SnakeSpawnSFX)
package {
import flash.media.*;
public dynamic class SnakeSpawnSFX extends Sound {
}
}//package
Section 56
//SnakeTailEnemy (SnakeTailEnemy)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class SnakeTailEnemy extends MovieClip {
public var tail;
public var color;
public var score;
public var killable;
public var func;
public var head;
public function SnakeTailEnemy(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3, _arg4){
x = _arg1;
y = _arg2;
func = _arg3;
head = _arg4;
rotation = (Math.random() * 360);
color = 0xFFFF00;
score = 5;
killable = false;
}
function frame1(){
}
public function remove(){
}
public function render(){
rotation = ((Math.atan2((head.y - y), (head.x - x)) * 180) / Math.PI);
if (Point.distance(new Point(head.x, head.y), new Point(x, y)) > 25){
x = (x + ((head.x - x) / 5));
y = (y + ((head.y - y) / 5));
};
if (x < 0){
x = 0;
};
if (y < 0){
y = 0;
};
if (x > 800){
x = 800;
};
if (y > 600){
y = 600;
};
}
}
}//package
Section 57
//SpeedPowerUp (SpeedPowerUp)
package {
import flash.display.*;
public dynamic class SpeedPowerUp extends MovieClip {
public var rotate;
public var velY;
public var velX;
public var color;
public var powerup;
public var waitTime;
public function SpeedPowerUp(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2){
var _local3:*;
x = _arg1;
y = _arg2;
rotate = ((Math.random() * 10) - 5);
while (Math.abs(rotate) < 1) {
rotate = ((Math.random() * 10) - 5);
};
rotation = (Math.random() * 360);
_local3 = ((Math.random() * 2) * Math.PI);
velX = (Math.cos(_local3) * 2);
velY = (Math.sin(_local3) * 2);
color = 0xFFFFFF;
powerup = 1;
waitTime = (60 * 30);
}
function frame1(){
}
public function remove(){
}
public function render(){
rotation = (rotation + rotate);
waitTime--;
x = (x + velX);
y = (y + velY);
if (x < 0){
x = 0;
velX = (velX * -1);
};
if (y < 0){
y = 0;
velY = (velY * -1);
};
if (x > 800){
x = 800;
velX = (velX * -1);
};
if (y > 600){
y = 600;
velY = (velY * -1);
};
}
}
}//package
Section 58
//SpikeEnemy (SpikeEnemy)
package {
import flash.display.*;
public dynamic class SpikeEnemy extends MovieClip {
public var rotate;
public var velY;
public var velX;
public var color;
public var score;
public function SpikeEnemy(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){
x = _arg1;
y = _arg2;
rotate = _arg4;
rotation = _arg3;
velX = _arg5;
velY = _arg6;
color = 0xFF;
score = 15;
}
function frame1(){
}
public function remove(){
}
public function render(){
rotation = (rotation + rotate);
x = (x + velX);
y = (y + velY);
if (x < 0){
x = 0;
velX = (velX * -1);
};
if (y < 0){
y = 0;
velY = (velY * -1);
};
if (x > 800){
x = 800;
velX = (velX * -1);
};
if (y > 600){
y = 600;
velY = (velY * -1);
};
}
}
}//package
Section 59
//SpikeSpawnSFX (SpikeSpawnSFX)
package {
import flash.media.*;
public dynamic class SpikeSpawnSFX extends Sound {
}
}//package
Section 60
//SuicideEnemy (SuicideEnemy)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class SuicideEnemy extends MovieClip {
public var velX;
public var velY;
public var color;
public var score;
public var chase;
public function SuicideEnemy(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3){
var _local4:*;
x = _arg1;
y = _arg2;
chase = _arg3;
_local4 = (Math.atan2((y - chase.y), (x - chase.x)) + Math.PI);
velX = (Math.cos(_local4) * 6);
velY = (Math.sin(_local4) * 6);
color = 0xFF00;
score = 100;
}
function frame1(){
}
public function remove(){
}
public function render(){
var _local1:*;
_local1 = (Math.atan2((y - chase.y), (x - chase.x)) + Math.PI);
velX = (Math.cos(_local1) * 8);
velY = (Math.sin(_local1) * 8);
x = (x + velX);
y = (y + velY);
if (x < 0){
x = 0;
velX = (velX * -1);
};
if (y < 0){
y = 0;
velY = (velY * -1);
};
if (x > 800){
x = 800;
velX = (velX * -1);
};
if (y > 600){
y = 600;
velY = (velY * -1);
};
}
}
}//package
Section 61
//UnkillableSFX (UnkillableSFX)
package {
import flash.media.*;
public dynamic class UnkillableSFX extends Sound {
}
}//package
Section 62
//WeaponPowerUp (WeaponPowerUp)
package {
import flash.display.*;
public dynamic class WeaponPowerUp extends MovieClip {
public var rotate;
public var velY;
public var velX;
public var color;
public var powerup;
public var waitTime;
public function WeaponPowerUp(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2){
var _local3:*;
x = _arg1;
y = _arg2;
rotate = ((Math.random() * 10) - 5);
while (Math.abs(rotate) < 1) {
rotate = ((Math.random() * 10) - 5);
};
rotation = (Math.random() * 360);
_local3 = ((Math.random() * 2) * Math.PI);
velX = (Math.cos(_local3) * 2);
velY = (Math.sin(_local3) * 2);
color = 0xFFFFFF;
powerup = 2;
waitTime = (60 * 30);
}
function frame1(){
}
public function remove(){
}
public function render(){
rotation = (rotation + rotate);
waitTime--;
x = (x + velX);
y = (y + velY);
if (x < 0){
x = 0;
velX = (velX * -1);
};
if (y < 0){
y = 0;
velY = (velY * -1);
};
if (x > 800){
x = 800;
velX = (velX * -1);
};
if (y > 600){
y = 600;
velY = (velY * -1);
};
}
}
}//package