Section 1
//MainTimeline (SecondWave_V1_fla.MainTimeline)
package SecondWave_V1_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var circle_Rad:Number;
public var drawings_Splice:Array;
public var drawings:Array;
public var hudName:Object;
public var inMenu:Boolean;
public var music:soundTest;
public var enemies:Array;
public var max_Enemies:Number;
public var switching:Number;
public var last_enemy_Dead:Number;
public var mutetrans:SoundTransform;
public var mode2_Time:Number;
public var fxDataOff:Number;
public var mtrans:SoundTransform;
public var health:Number;
public var radToDeg:int;
public var menuName:Object;
public var score:Number;
public var fxData_Splice:Array;
public var particleQ:Number;
public var trans:SoundTransform;
public var gameMode:Number;
public var glowWhite:GlowFilter;
public var enemies_Splice:Array;
public var enemy_Dead:Number;
public var player_vx:Number;
public var player_vy:Number;
public var goverName:Object;
public var qualityTxt:String;
public var playerName:Object;
public var muteReady:Number;
public var drawingsOff:Number;
public var col_Rad_S:Number;
public var player_col:Number;
public var zap3:zapThree;
public var zap1:zapOne;
public var col_Rad_Sqrt:Number;
public var degToRad:int;
public var player_Speed:Number;
public var pauseReady:Number;
public var player_Speed_Max:Number;
public var pVx:Number;
public var pVy:Number;
public var pVl:Number;
public var zap2:zapTwo;
public var target_Enemies:Number;
public var enemiesOff:Number;
public var muted:Boolean;
public var theMenu:menu;
public var enemy_Count:Number;
public var min_Width:Number;
public var dotName:Object;
public var glowGreen:GlowFilter;
public var circleName:Object;
public var timeNew:int;
public var max_Speed:Number;
public var fxData:Array;
public var frameCount:int;
public var qReady:Number;
public var timeStart:int;
public var difficulty:Number;
public var gamePaused:Boolean;
public var glowRed:GlowFilter;
public var drawAmt:Number;
public var target_Speed:Number;
public function MainTimeline(){
addFrameScript(0, frame1);
}
public function drawLoop():void{
var _local2:*;
_local2 = 0;
while (_local2 < drawings.length) {
if (drawings[_local2][1] < 10){
drawings[_local2][0].graphics.moveTo(drawings[_local2][3], drawings[_local2][4]);
drawings[_local2][3] = ((drawings[_local2][3] + (Math.random() * 75)) - (Math.random() * 75));
drawings[_local2][4] = ((drawings[_local2][4] + (Math.random() * 75)) - (Math.random() * 75));
drawings[_local2][0].graphics.lineTo(drawings[_local2][3], drawings[_local2][4]);
var _local3 = drawings[_local2];
var _local4 = 1;
var _local5 = (_local3[_local4] + 1);
_local3[_local4] = _local5;
} else {
if (drawings[_local2][0].alpha < 0.01){
this.removeChild(drawings[_local2][0]);
drawings[_local2][0] = null;
drawings[_local2] = null;
drawings_Splice.push(_local2);
} else {
if ((((drawings[_local2][0].alpha > 0.2)) && ((drawings[_local2][0].alpha >= 0.01)))){
drawings[_local2][0].alpha = (drawings[_local2][0].alpha - 0.07);
} else {
drawings[_local2][0].filters = [];
drawings[_local2][0].alpha = (drawings[_local2][0].alpha - 0.005);
};
};
};
_local2++;
};
_local2 = 0;
while (_local2 < drawings_Splice.length) {
drawings.splice((drawings_Splice[_local2] - drawingsOff), 1);
drawingsOff++;
_local2++;
};
drawings_Splice = [];
drawingsOff = 0;
}
public function movePlayer():void{
pVx = (mouseX - playerName.x);
pVy = (mouseY - playerName.y);
pVl = Math.sqrt(((pVx * pVx) + (pVy * pVy)));
pVx = (pVx / pVl);
pVy = (pVy / pVl);
if (player_col > 0){
player_col--;
playerName.alpha = 0.5;
} else {
playerName.alpha = 1;
player_vx = pVx;
player_vy = pVy;
};
if (((!((playerName.x == mouseX))) && (!((playerName.y == mouseY))))){
if (player_col > 0){
playerName.x = (playerName.x + (player_vx * (player_col * 5)));
playerName.y = (playerName.y + (player_vy * (player_col * 5)));
spawnFx(playerName.x, playerName.y, (Math.random() - Math.random()), (Math.random() - Math.random()), 3);
hudName.healthText.textColor = 16724838;
} else {
hudName.healthText.textColor = 10092339;
playerName.x = (playerName.x + (player_vx * (player_Speed * (pVl / 100))));
playerName.y = (playerName.y + (player_vy * (player_Speed * (pVl / 100))));
};
};
if (player_Speed < player_Speed_Max){
player_Speed = (player_Speed + 0.1);
} else {
player_Speed = player_Speed_Max;
};
dotName.x = mouseX;
dotName.y = mouseY;
}
public function spawnEnemies(){
var _local1:*;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:*;
if (switching < 60){
switching++;
} else {
if (gameMode == 1){
_local1 = 1.5;
} else {
if (gameMode == 2){
_local1 = 2;
};
};
if ((enemies.length + 1) < Math.floor((target_Enemies * _local1))){
_local2 = Math.random();
_local5 = 0;
while (_local5 < 1) {
if (_local2 <= 0.25){
_local3 = -60;
_local4 = ((Math.random() * 540) + 50);
} else {
if ((((_local2 > 0.25)) && ((_local2 <= 0.5)))){
_local3 = 540;
_local4 = ((Math.random() * 540) + 50);
} else {
if ((((_local2 > 0.5)) && ((_local2 <= 0.75)))){
_local3 = ((Math.random() * 380) + 50);
_local4 = -60;
} else {
_local3 = ((Math.random() * 380) + 50);
_local4 = 690;
};
};
};
spawnEnemy(_local4, _local3);
_local5++;
};
};
};
}
function frame1(){
particleQ = 1;
qReady = 0;
qualityTxt = "High";
gameMode = 2;
switching = -60;
pauseReady = 0;
inMenu = true;
muteReady = 0;
muted = false;
pVx = 0;
pVy = 0;
pVl = 0;
player_Speed = 45;
player_Speed_Max = 45;
player_vx = 0;
player_vy = 0;
player_col = 0;
max_Enemies = 12;
max_Speed = 2.5;
target_Enemies = 5;
target_Speed = 1;
min_Width = 300;
enemy_Count = 0;
enemy_Dead = 0;
last_enemy_Dead = 0;
score = 0;
mode2_Time = 0;
health = 100;
difficulty = 3;
gamePaused = true;
col_Rad_S = ((40 * 40) + (40 * 40));
col_Rad_Sqrt = Math.sqrt(((40 * 40) + (40 * 40)));
degToRad = (Math.PI / 180);
radToDeg = (180 / Math.PI);
enemies = [];
enemies_Splice = [];
enemiesOff = 0;
fxData = [];
fxData_Splice = [];
fxDataOff = 0;
theMenu = new menu();
theMenu.name = "menu";
menuName = theMenu;
addChild(theMenu);
theMenu = null;
trans = new SoundTransform(0.5, 0);
mtrans = new SoundTransform(0.5, 0);
mutetrans = new SoundTransform(0, 0);
music = new soundTest();
music.play(43000, 999, mtrans);
zap1 = new zapOne();
zap2 = new zapTwo();
zap3 = new zapThree();
menuName.startB.addEventListener(MouseEvent.CLICK, startGame);
menuName.startB.addEventListener(MouseEvent.MOUSE_OVER, buttonFx);
glowWhite = new GlowFilter(10092339, 1, 10, 10, 3, 1, false, false);
glowRed = new GlowFilter(16537688, 1, 10, 10, 3, 1, false, false);
glowGreen = new GlowFilter(39423, 1, 10, 10, 3, 1, false, false);
drawings = [];
drawings_Splice = [];
drawingsOff = 0;
drawAmt = 0;
timeNew = 0;
timeStart = getTimer();
frameCount = 0;
stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown);
stage.addEventListener(MouseEvent.CLICK, getClick);
addEventListener(Event.ENTER_FRAME, main);
}
public function circleCol(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local1 = (circleName.x - playerName.x);
_local2 = (circleName.y - playerName.y);
_local3 = ((_local1 * _local1) + (_local2 * _local2));
if ((circle_Rad - _local3) <= 0){
_local3 = Math.sqrt(_local3);
_local1 = (_local1 / _local3);
_local2 = (_local2 / _local3);
_local4 = (_local3 - Math.sqrt(circle_Rad));
playerName.x = (playerName.x + (_local1 * ((_local4 - player_Speed) + 35)));
playerName.y = (playerName.y + (_local2 * ((_local4 - player_Speed) + 35)));
if (Math.random() <= (0.5 * particleQ)){
createDrawing(3, (playerName.x - (_local1 * 20)), (playerName.y - (_local2 * 20)));
if (muted == false){
zap3.play(0, 1, trans);
};
};
};
}
public function attachHud():void{
var _local1:hud;
_local1 = new hud();
_local1.x = 0;
_local1.y = 0;
_local1.name = "hud";
hudName = _local1;
addChild(_local1);
_local1 = null;
}
public function loopFx(){
var _local1:*;
_local1 = 0;
while (_local1 < fxData.length) {
if (fxData[_local1][0].alpha < 0.2){
this.removeChild(fxData[_local1][0]);
fxData[_local1][0] = null;
fxData[_local1] = null;
fxData_Splice.push(_local1);
} else {
fxData[_local1][0].x = (fxData[_local1][0].x + (fxData[_local1][1] * 30));
fxData[_local1][0].y = (fxData[_local1][0].y + (fxData[_local1][2] * 30));
fxData[_local1][0].alpha = (fxData[_local1][0].alpha - 0.03);
};
_local1++;
};
_local1 = 0;
while (_local1 < fxData_Splice.length) {
fxData.splice((fxData_Splice[_local1] - fxDataOff), 1);
fxDataOff++;
_local1++;
};
fxData_Splice = [];
fxDataOff = 0;
}
public function gameLogic():void{
if (gameMode == 1){
hudName.gameText.text = String(Math.ceil(((target_Enemies * 2) - enemy_Count)));
if (enemy_Dead >= (last_enemy_Dead + (target_Enemies * 50))){
last_enemy_Dead = enemy_Dead;
if (target_Enemies < (max_Enemies - 2)){
target_Enemies = (target_Enemies + 2);
} else {
target_Enemies = max_Enemies;
};
if (target_Speed < (max_Speed - 0.4)){
target_Speed = (target_Speed + 0.4);
} else {
target_Speed = max_Speed;
};
if (circleName.width >= (min_Width - 4)){
circleName.width = (circleName.width - 4);
circleName.height = circleName.width;
circle_Rad = (((circleName.width / 2) - 20) * ((circleName.width / 2) - 20));
} else {
circleName.width = min_Width;
circleName.height = min_Width;
};
score = (score + Math.round((target_Enemies * 4321)));
hudName.scoreText.text = String(score);
enemy_Count = 0;
switchMode(2);
};
if (enemy_Count >= (target_Enemies * 2)){
if (enemy_Dead >= (last_enemy_Dead + target_Enemies)){
last_enemy_Dead = enemy_Dead;
if (target_Enemies < (max_Enemies - 1)){
target_Enemies = (target_Enemies + 1);
} else {
target_Enemies = max_Enemies;
};
if (target_Speed < (max_Speed - 0.2)){
target_Speed = (target_Speed + 0.2);
} else {
target_Speed = max_Speed;
};
if (circleName.width >= (min_Width - 2)){
circleName.width = (circleName.width - 2);
circleName.height = circleName.width;
circle_Rad = (((circleName.width / 2) - 20) * ((circleName.width / 2) - 20));
} else {
circleName.width = min_Width;
circleName.height = min_Width;
};
};
enemy_Count = 0;
switchMode(2);
};
} else {
if (gameMode == 2){
hudName.gameText.text = String((15 - mode2_Time));
if (mode2_Time >= 15){
mode2_Time = 0;
switchMode(1);
};
enemy_Count = 0;
};
};
if (health <= 0){
health = 0;
hudName.healthText.text = "DEAD :[";
clearGame();
};
}
public function frame_Rate(){
timeNew = getTimer();
if ((timeNew - timeStart) >= 1000){
if (gameMode == 2){
mode2_Time = (mode2_Time + 1);
};
timeStart = getTimer();
hudName.frame_Rate.text = String((("FPS: " + frameCount) + "/30"));
frameCount = 0;
Mouse.hide();
};
frameCount++;
}
public function spawnEnemy(_arg1:Number, _arg2:Number){
var _local3:enemy;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
_local3 = new enemy();
_local3.x = _arg1;
_local3.y = _arg2;
if (gameMode == 2){
_local3.gotoAndStop(2);
};
addChild(_local3);
_local4 = (circleName.x - (_arg1 + ((((Math.random() * 170) + 10) - (Math.random() * 170)) + 10)));
_local5 = (circleName.y - (_arg2 + ((((Math.random() * 170) + 10) - (Math.random() * 170)) + 10)));
_local6 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5)));
_local4 = (_local4 / _local6);
_local5 = (_local5 / _local6);
if (gameMode == 1){
_local7 = 0;
} else {
if (gameMode == 2){
_local7 = 2;
};
};
enemies.push([_local3, _local4, _local5, (((Math.random() * target_Speed) * 2) + target_Speed), _local7]);
_local3 = null;
}
public function loopEnemies(){
var _local1:*;
_local1 = 0;
while (_local1 < enemies.length) {
enemies[_local1][0].x = (enemies[_local1][0].x + (enemies[_local1][1] * enemies[_local1][3]));
enemies[_local1][0].y = (enemies[_local1][0].y + (enemies[_local1][2] * enemies[_local1][3]));
enemies[_local1][3] = (enemies[_local1][3] + 0.13);
if ((((((((enemies[_local1][0].x > 740)) || ((enemies[_local1][0].x < -100)))) || ((enemies[_local1][0].y > 580)))) || ((enemies[_local1][0].y < -100)))){
if (gameMode == 1){
if (enemies[_local1][4] == 0){
enemy_Count++;
} else {
if (enemies[_local1][4] == 1){
enemy_Dead++;
score = (score + Math.floor((((target_Enemies * difficulty) * 5) + (Math.random() * 5))));
hudName.scoreText.text = String(score);
};
};
};
this.removeChild(enemies[_local1][0]);
enemies[_local1][0] = null;
enemies[_local1] = null;
enemies_Splice.push(_local1);
};
_local1++;
};
_local1 = 0;
while (_local1 < enemies_Splice.length) {
enemies.splice((enemies_Splice[_local1] - enemiesOff), 1);
enemiesOff++;
_local1++;
};
enemies_Splice = [];
enemiesOff = 0;
}
public function switchMode(_arg1:Number){
var _local2:int;
if (_arg1 == 1){
gameMode = 1;
hudName.gotoAndStop(1);
} else {
if (_arg1 == 2){
gameMode = 2;
hudName.gotoAndStop(2);
};
};
switching = 0;
}
public function attachCircle():void{
var _local1:circle;
_local1 = new circle();
_local1.x = 320;
_local1.y = 240;
_local1.width = 400;
_local1.height = _local1.width;
_local1.name = "circle";
circleName = _local1;
addChild(_local1);
_local1 = null;
circle_Rad = (((circleName.width / 2) - 20) * ((circleName.width / 2) - 20));
}
public function collisions(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:*;
var _local5:Number;
var _local6:*;
var _local7:*;
_local4 = 0;
while (_local4 < enemies.length) {
if (enemies[_local4][4] != 1){
_local1 = (enemies[_local4][0].x - playerName.x);
_local2 = (enemies[_local4][0].y - playerName.y);
_local3 = (2 * ((_local1 * _local1) + (_local2 * _local2)));
if (_local3 <= col_Rad_S){
_local3 = Math.sqrt(_local3);
_local5 = (col_Rad_Sqrt - _local3);
_local1 = (_local1 / _local3);
_local2 = (_local2 / _local3);
playerName.x = (playerName.x - ((_local1 * _local5) + 2));
playerName.y = (playerName.y - ((_local2 * _local5) + 2));
enemies[_local4][0].x = (enemies[_local4][0].x + ((_local1 * _local5) + 2));
enemies[_local4][0].y = (enemies[_local4][0].y + ((_local2 * _local5) + 2));
if (enemies[_local4][4] == 2){
player_vx = -(_local1);
player_vy = -(_local2);
player_col = 8;
enemies[_local4][1] = _local1;
enemies[_local4][2] = _local2;
enemies[_local4][3] = (enemies[_local4][3] / 2);
if ((health - (difficulty * 3)) <= 0){
health = 0;
} else {
health = (health - (difficulty * 3));
};
hudName.healthText.text = String(health);
_local6 = 0;
while (_local6 < (3 * particleQ)) {
createDrawing(2, (enemies[_local4][0].x - (_local1 * 20)), (enemies[_local4][0].y - (_local2 * 20)));
_local6++;
};
_local6 = 0;
while (_local6 < (20 * particleQ)) {
spawnFx(enemies[_local4][0].x, enemies[_local4][0].y, (Math.random() - Math.random()), (Math.random() - Math.random()), 2);
_local6++;
};
if (muted == false){
zap2.play(0, 1, trans);
};
} else {
if (enemies[_local4][4] == 0){
enemies[_local4][4] = 1;
enemies[_local4][0].x = (enemies[_local4][0].x + (2 * (_local1 * _local5)));
enemies[_local4][0].y = (enemies[_local4][0].y + (2 * (_local2 * _local5)));
enemies[_local4][1] = _local1;
enemies[_local4][2] = _local2;
enemies[_local4][3] = (enemies[_local4][3] * 8);
_local7 = 0;
while (_local7 < (35 * particleQ)) {
spawnFx((enemies[_local4][0].x - (_local1 * 40)), (enemies[_local4][0].y - (_local2 * 40)), (Math.random() - Math.random()), (Math.random() - Math.random()), 1);
_local7++;
};
createDrawing(1, enemies[_local4][0].x, enemies[_local4][0].y);
if (muted == false){
zap1.play(50, 1, trans);
};
};
};
};
};
_local4++;
};
}
public function startGame():void{
pauseReady = 0;
gamePaused = false;
menuName.visible = false;
newGame();
inMenu = false;
}
public function createDrawing(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:MovieClip;
_local4 = new MovieClip();
_local4.alpha = 0.6;
_local4.graphics.lineStyle(2, 0xFFFFFF, 1);
if (_arg1 == 1){
_local4.filters = [glowGreen];
} else {
if (_arg1 == 2){
_local4.filters = [glowRed];
} else {
_local4.filters = [glowWhite];
};
};
addChild(_local4);
drawings.push([_local4, 0, (Math.random() * 360), _arg2, _arg3]);
_local4 = null;
}
public function attachPlayer():void{
var _local1:player;
var _local2:dot;
_local1 = new player();
_local1.x = 320;
_local1.y = 240;
_local1.name = "player";
playerName = _local1;
addChild(_local1);
_local1 = null;
_local2 = new dot();
_local2.x = mouseX;
_local2.y = mouseY;
_local2.name = "dot";
dotName = _local2;
addChild(_local2);
_local2 = null;
}
public function buttonFx():void{
var _local2:*;
if (inMenu == true){
_local2 = 0;
while (_local2 < 20) {
spawnFx(mouseX, mouseY, (Math.random() - Math.random()), (Math.random() - Math.random()), 2);
_local2++;
};
};
}
public function spawnFx(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number){
var _local6:anfx;
_local6 = new anfx();
_local6.x = _arg1;
_local6.y = _arg2;
_local6.alpha = 0.8;
_local6.gotoAndStop(_arg5);
addChild(_local6);
fxData.push([_local6, _arg3, _arg4, 0]);
_local6 = null;
}
public function newGame():void{
attachCircle();
attachHud();
attachPlayer();
switchMode(1);
hudName.healthText.text = String(health);
hudName.qualityText.text = qualityTxt;
Mouse.hide();
}
public function reportKeyDown(_arg1:KeyboardEvent):void{
if (_arg1.charCode == 32){
if (muteReady > 3){
if (muted == true){
music.play(43000, 999, mtrans);
muted = false;
} else {
SoundMixer.stopAll();
muted = true;
};
muteReady = 0;
};
};
if ((((_arg1.charCode == 119)) || ((_arg1.charCode == 113)))){
if (qReady > 3){
if (particleQ == 0){
particleQ = 0.5;
stage.quality = "low";
qualityTxt = "Low";
} else {
if (particleQ == 0.5){
particleQ = 0.6;
stage.quality = "medium";
qualityTxt = "Medium";
} else {
if (particleQ == 0.6){
particleQ = 1;
stage.quality = "medium";
qualityTxt = "High";
} else {
if (particleQ == 1){
particleQ = 1.5;
stage.quality = "high";
qualityTxt = "Very High";
} else {
if (particleQ == 1.5){
stage.quality = "low";
particleQ = 0;
qualityTxt = "Lowest";
};
};
};
};
};
if (inMenu == false){
hudName.qualityText.text = qualityTxt;
};
qReady = 0;
};
};
}
public function main():void{
if (pauseReady < 10000){
pauseReady++;
} else {
pauseReady = 0;
};
if (muteReady < 10000){
muteReady++;
} else {
muteReady = 0;
};
if (qReady < 10000){
qReady++;
} else {
qReady = 0;
};
drawLoop();
loopFx();
if (gamePaused == true){
} else {
frame_Rate();
movePlayer();
circleCol();
spawnEnemies();
loopEnemies();
collisions();
gameLogic();
};
}
public function getClick(_arg1:MouseEvent):void{
if (inMenu == false){
if (pauseReady > 1){
if (gamePaused == true){
gamePaused = false;
hudName.healthText.text = String(health);
} else {
gamePaused = true;
hudName.healthText.text = "Pause";
};
pauseReady = 0;
};
};
}
public function clearGame():void{
var _local1:*;
inMenu = true;
Mouse.show();
gamePaused = true;
this.removeChild(DisplayObject(playerName));
playerName = null;
this.removeChild(DisplayObject(dotName));
dotName = null;
_local1 = 0;
while (_local1 < enemies.length) {
this.removeChild(enemies[_local1][0]);
enemies[_local1][0] = null;
enemies[_local1] = null;
_local1++;
};
_local1 = 0;
while (_local1 < fxData.length) {
this.removeChild(fxData[_local1][0]);
fxData[_local1][0] = null;
fxData[_local1] = null;
_local1++;
};
this.removeChild(DisplayObject(hudName));
hudName = null;
this.removeChild(DisplayObject(circleName));
circleName = null;
enemies = [];
fxData = [];
enemies_Splice = [];
enemiesOff = 0;
fxData_Splice = [];
fxDataOff = 0;
menuName.visible = true;
menuName.titleText.text = "Game Over";
menuName.scoreTitleText.text = "Score:";
menuName.scoreText.text = String(score);
menuName.startB.gotoAndStop(2);
gameMode = 1;
switching = -60;
player_col = 0;
player_Speed = 30;
target_Enemies = 6;
target_Speed = 0.5;
enemy_Count = 0;
enemy_Dead = 0;
last_enemy_Dead = 0;
score = 0;
mode2_Time = 0;
health = 100;
}
}
}//package SecondWave_V1_fla
Section 2
//startB_2 (SecondWave_V1_fla.startB_2)
package SecondWave_V1_fla {
import flash.display.*;
public dynamic class startB_2 extends MovieClip {
public function startB_2(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package SecondWave_V1_fla
Section 3
//anfx (anfx)
package {
import flash.display.*;
public dynamic class anfx extends MovieClip {
public function anfx(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 4
//circle (circle)
package {
import flash.display.*;
public dynamic class circle extends MovieClip {
}
}//package
Section 5
//dot (dot)
package {
import flash.display.*;
public dynamic class dot extends MovieClip {
}
}//package
Section 6
//enemy (enemy)
package {
import flash.display.*;
public dynamic class enemy extends MovieClip {
public function enemy(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 7
//hud (hud)
package {
import flash.display.*;
import flash.text.*;
public dynamic class hud extends MovieClip {
public var gameText:TextField;
public var frame_Rate:TextField;
public var healthText:TextField;
public var qualityText:TextField;
public var scoreText:TextField;
public function hud(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 8
//menu (menu)
package {
import flash.display.*;
import flash.text.*;
public dynamic class menu extends MovieClip {
public var scoreTitleText:TextField;
public var startB:MovieClip;
public var titleText:TextField;
public var scoreText:TextField;
public function menu(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 9
//player (player)
package {
import flash.display.*;
public dynamic class player extends MovieClip {
}
}//package
Section 10
//soundTest (soundTest)
package {
import flash.media.*;
public dynamic class soundTest extends Sound {
}
}//package
Section 11
//zapOne (zapOne)
package {
import flash.media.*;
public dynamic class zapOne extends Sound {
}
}//package
Section 12
//zapThree (zapThree)
package {
import flash.media.*;
public dynamic class zapThree extends Sound {
}
}//package
Section 13
//zapTwo (zapTwo)
package {
import flash.media.*;
public dynamic class zapTwo extends Sound {
}
}//package