Section 1
//button_credits_87 (hell_public_fla.button_credits_87)
package hell_public_fla {
import flash.display.*;
public dynamic class button_credits_87 extends MovieClip {
public var box:MovieClip;
}
}//package hell_public_fla
Section 2
//button_help_86 (hell_public_fla.button_help_86)
package hell_public_fla {
import flash.display.*;
public dynamic class button_help_86 extends MovieClip {
public var box:MovieClip;
}
}//package hell_public_fla
Section 3
//button_highscore_107 (hell_public_fla.button_highscore_107)
package hell_public_fla {
import flash.display.*;
public dynamic class button_highscore_107 extends MovieClip {
public var box:MovieClip;
}
}//package hell_public_fla
Section 4
//button_play_83 (hell_public_fla.button_play_83)
package hell_public_fla {
import flash.display.*;
import flash.text.*;
public dynamic class button_play_83 extends MovieClip {
public var highScore:TextField;
public var stageSelect:MovieClip;
public var box:MovieClip;
}
}//package hell_public_fla
Section 5
//credits_108 (hell_public_fla.credits_108)
package hell_public_fla {
import flash.display.*;
public dynamic class credits_108 extends MovieClip {
public var box:MovieClip;
public function credits_108(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hell_public_fla
Section 6
//enemy_blaster_148 (hell_public_fla.enemy_blaster_148)
package hell_public_fla {
import flash.display.*;
public dynamic class enemy_blaster_148 extends MovieClip {
public var blade:MovieClip;
public function enemy_blaster_148(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hell_public_fla
Section 7
//enemy_blaster_gun_149 (hell_public_fla.enemy_blaster_gun_149)
package hell_public_fla {
import flash.display.*;
public dynamic class enemy_blaster_gun_149 extends MovieClip {
public var enemyRadius:MovieClip;
public function enemy_blaster_gun_149(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hell_public_fla
Section 8
//enemy_charge_121 (hell_public_fla.enemy_charge_121)
package hell_public_fla {
import flash.display.*;
public dynamic class enemy_charge_121 extends MovieClip {
public function enemy_charge_121(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hell_public_fla
Section 9
//enemy_inner_120 (hell_public_fla.enemy_inner_120)
package hell_public_fla {
import flash.display.*;
public dynamic class enemy_inner_120 extends MovieClip {
public var weapon:MovieClip;
public var spinner:MovieClip;
public var enemySprite:MovieClip;
public var enemyRadius:MovieClip;
public var sheild:MovieClip;
public function enemy_inner_120(){
addFrameScript(0, frame1, 30, frame31, 60, frame61, 90, frame91, 120, frame121, 150, frame151, 180, frame181, 210, frame211, 240, frame241, 270, frame271);
}
function frame151(){
stop();
}
function frame91(){
stop();
}
function frame211(){
stop();
}
function frame181(){
stop();
}
function frame1(){
stop();
}
function frame31(){
stop();
}
function frame241(){
stop();
}
function frame121(){
stop();
}
function frame61(){
stop();
}
function frame271(){
stop();
}
}
}//package hell_public_fla
Section 10
//enemy_shooter_142 (hell_public_fla.enemy_shooter_142)
package hell_public_fla {
import flash.display.*;
public dynamic class enemy_shooter_142 extends MovieClip {
public var blade:MovieClip;
public function enemy_shooter_142(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hell_public_fla
Section 11
//enemy_shooter_gun_143 (hell_public_fla.enemy_shooter_gun_143)
package hell_public_fla {
import flash.display.*;
public dynamic class enemy_shooter_gun_143 extends MovieClip {
public var enemyRadius:MovieClip;
public function enemy_shooter_gun_143(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hell_public_fla
Section 12
//enemy_spinner_blade_138 (hell_public_fla.enemy_spinner_blade_138)
package hell_public_fla {
import flash.display.*;
public dynamic class enemy_spinner_blade_138 extends MovieClip {
public var enemyRadius:MovieClip;
public function enemy_spinner_blade_138(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package hell_public_fla
Section 13
//enemy_spinner_inner_136 (hell_public_fla.enemy_spinner_inner_136)
package hell_public_fla {
import flash.display.*;
public dynamic class enemy_spinner_inner_136 extends MovieClip {
public var bar:MovieClip;
public var blade:MovieClip;
public function enemy_spinner_inner_136(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hell_public_fla
Section 14
//floormap_164 (hell_public_fla.floormap_164)
package hell_public_fla {
import flash.display.*;
public dynamic class floormap_164 extends MovieClip {
public var p11:MovieClip;
public var p16:MovieClip;
public var p18:MovieClip;
public var p19:MovieClip;
public var p17:MovieClip;
public var p13:MovieClip;
public var p10:MovieClip;
public var p15:MovieClip;
public var p21:MovieClip;
public var p23:MovieClip;
public var p25:MovieClip;
public var p27:MovieClip;
public var p29:MovieClip;
public var p26:MovieClip;
public var p28:MovieClip;
public var p12:MovieClip;
public var p1:MovieClip;
public var p2:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p9:MovieClip;
public var p24:MovieClip;
public var p14:MovieClip;
public var p6:MovieClip;
public var p8:MovieClip;
public var p20:MovieClip;
public var p34:MovieClip;
public var p35:MovieClip;
public var p36:MovieClip;
public var p30:MovieClip;
public var p31:MovieClip;
public var p7:MovieClip;
public var p33:MovieClip;
public var p32:MovieClip;
public var p4:MovieClip;
public var p22:MovieClip;
}
}//package hell_public_fla
Section 15
//floormap_complete_163 (hell_public_fla.floormap_complete_163)
package hell_public_fla {
import flash.display.*;
public dynamic class floormap_complete_163 extends MovieClip {
public var floorCircle:MovieClip;
public var floormap3:MovieClip;
public var floormap2:MovieClip;
public var floormap4:MovieClip;
public var floormap1:MovieClip;
}
}//package hell_public_fla
Section 16
//gameover_57 (hell_public_fla.gameover_57)
package hell_public_fla {
import flash.display.*;
public dynamic class gameover_57 extends MovieClip {
public var gameoverText:MovieClip;
public function gameover_57(){
addFrameScript(0, frame1, 34, frame35);
}
function frame1(){
stop();
}
function frame35(){
stop();
}
}
}//package hell_public_fla
Section 17
//gem_stone_96 (hell_public_fla.gem_stone_96)
package hell_public_fla {
import flash.display.*;
public dynamic class gem_stone_96 extends MovieClip {
public function gem_stone_96(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package hell_public_fla
Section 18
//highscore_submit_82 (hell_public_fla.highscore_submit_82)
package hell_public_fla {
import flash.display.*;
import flash.text.*;
public dynamic class highscore_submit_82 extends MovieClip {
public var submitScore:TextField;
public var submitBox:MovieClip;
}
}//package hell_public_fla
Section 19
//how_to_play_88 (hell_public_fla.how_to_play_88)
package hell_public_fla {
import flash.display.*;
import flash.text.*;
public dynamic class how_to_play_88 extends MovieClip {
public var pageDisplay:TextField;
public var satan:MovieClip;
public var tutNext:MovieClip;
public var box:MovieClip;
public var tutPrev:MovieClip;
public function how_to_play_88(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hell_public_fla
Section 20
//hub_bar_bottom_59 (hell_public_fla.hub_bar_bottom_59)
package hell_public_fla {
import flash.display.*;
import flash.text.*;
public dynamic class hub_bar_bottom_59 extends MovieClip {
public var volPlus:MovieClip;
public var qLow:MovieClip;
public var volMinus:MovieClip;
public var moreGames:MovieClip;
public var volText:TextField;
public var returnMenu:MovieClip;
public var qHigh:MovieClip;
public var qMed:MovieClip;
}
}//package hell_public_fla
Section 21
//hub_bar_top_68 (hell_public_fla.hub_bar_top_68)
package hell_public_fla {
import flash.display.*;
import flash.text.*;
public dynamic class hub_bar_top_68 extends MovieClip {
public var intScore:TextField;
public var lifeSlide:MovieClip;
public var levelUp:MovieClip;
public var scorePlus:MovieClip;
public var intTime:TextField;
public var endLevel:MovieClip;
public var highscoreSubmit:MovieClip;
public var textScore:TextField;
public var meterScore:MovieClip;
public var endScore:MovieClip;
public var textTime:TextField;
public var meterTime:MovieClip;
}
}//package hell_public_fla
Section 22
//hub_end_79 (hell_public_fla.hub_end_79)
package hell_public_fla {
import flash.display.*;
public dynamic class hub_end_79 extends MovieClip {
public function hub_end_79(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hell_public_fla
Section 23
//hub_lives_70 (hell_public_fla.hub_lives_70)
package hell_public_fla {
import flash.display.*;
public dynamic class hub_lives_70 extends MovieClip {
public var lifeFlash:MovieClip;
public var hBack:MovieClip;
public var hFront:MovieClip;
public var life1:MovieClip;
public var life3:MovieClip;
public var life2:MovieClip;
}
}//package hell_public_fla
Section 24
//level_plus_77 (hell_public_fla.level_plus_77)
package hell_public_fla {
import flash.display.*;
public dynamic class level_plus_77 extends MovieClip {
public function level_plus_77(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hell_public_fla
Section 25
//life_flash_73 (hell_public_fla.life_flash_73)
package hell_public_fla {
import flash.display.*;
public dynamic class life_flash_73 extends MovieClip {
public var hFront:MovieClip;
public function life_flash_73(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hell_public_fla
Section 26
//life_slide_69 (hell_public_fla.life_slide_69)
package hell_public_fla {
import flash.display.*;
public dynamic class life_slide_69 extends MovieClip {
public var lifeBox:MovieClip;
public function life_slide_69(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hell_public_fla
Section 27
//load_item_46 (hell_public_fla.load_item_46)
package hell_public_fla {
import flash.display.*;
public dynamic class load_item_46 extends MovieClip {
public function load_item_46(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hell_public_fla
Section 28
//load_items_41 (hell_public_fla.load_items_41)
package hell_public_fla {
import flash.display.*;
public dynamic class load_items_41 extends MovieClip {
public var preloader:MovieClip;
public function load_items_41(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package hell_public_fla
Section 29
//loading_bar_43 (hell_public_fla.loading_bar_43)
package hell_public_fla {
import flash.display.*;
public dynamic class loading_bar_43 extends MovieClip {
public var lbar:MovieClip;
}
}//package hell_public_fla
Section 30
//MainTimeline (hell_public_fla.MainTimeline)
package hell_public_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var satanHit:Boolean;
public var hubDisplay:hub_display;
public var highScore:int;
public var scoreLevel:int;
public var shootY:Boolean;
public var levelTimer:int;
public var totalLives:int;
public var shoot:Boolean;
public var soundMarker:int;
public var shootX:Boolean;
public var infoDisplay:Array;
public var slideTutorial:Boolean;
public var introLogo:MovieClip;
public var gameStarted:Boolean;
public var myName:String;
public var so:SharedObject;
public var initialTimer:int;
public var myContextMenu:ContextMenu;
public var i:int;
public var j:int;
public var k:int;
public var showTutorialCheck:Boolean;
public var l:int;
public var gameTimerInt:int;
public var shootRotate:int;
public var soundArray:Array;
public var scoreSubmitted:Boolean;
public var enemy_container:MovieClip;
public var slidePlay:Boolean;
public var volumeInt:int;
public var enemySheild:Boolean;
public var point_container:MovieClip;
public var shootDelay:int;
public var floorScale:Number;
public var loadItems:MovieClip;
public var satan:Satan;
public var gameTimer:int;
public var gameQuality:String;
public var enemyTimer:int;
public var gameTimerValue:int;
public var soundNoteB:note_b;
public var soundNoteC:note_c;
public var soundNoteD:note_d;
public var soundNoteF:note_f;
public var soundNoteG:note_g;
public var soundNoteA:note_a;
public var soundNoteE:note_e;
public var sponsorbutton:SimpleButton;
public var sheild_container:MovieClip;
public var lifeFuel:int;
public var now:Date;
public var fireX:int;
public var fireY:int;
public var lifeAlphas:Array;
public var enemyDelay:int;
public var sheildTimer:Number;
public var blast_container:MovieClip;
public var highLevel:int;
public var currentLives:int;
public var readTutorial:Boolean;
public var musicChannel:SoundChannel;
public var slideTutorialBox:Boolean;
public var pointSpread:int;
public var b_preload:SimpleButton;
public var slideTitle:Boolean;
public var redBack:red_back;
public var soundVolume:SoundTransform;
public var loadChannel:SoundChannel;
public var infoTimer:Array;
public var drumSound:drums;
public var powerTimer:Number;
public var rollCredits:Boolean;
public var slideCreditsBox:Boolean;
public var rollPlay:Boolean;
public var magnet:int;
public var rollTutorial:Boolean;
public var slideScore:Boolean;
public var keyLetterA:Boolean;
public var item2:ContextMenuItem;
public var item4:ContextMenuItem;
public var item5:ContextMenuItem;
public var item3:ContextMenuItem;
public var keyLetterP:Boolean;
public var keyLetterD:Boolean;
public var keyLetterS:Boolean;
public var keyLetterW:Boolean;
public var currentLevel:int;
public var bullet_container:MovieClip;
public var slideCredits:Boolean;
public var keyPressP:Boolean;
public var totalScore:int;
public var initialScore:int;
public var gamePaused:Boolean;
public var loadSound:tadaa;
public var floormap:MovieClip;
public var satan_container:MovieClip;
public var bottomTimer:int;
public var currentTutorial:int;
public function MainTimeline(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
public function getURL(_arg1:String, _arg2:String){
var web:String;
var request:URLRequest;
var url = _arg1;
var method = _arg2;
web = url;
request = new URLRequest(web);
try {
navigateToURL(request, method);
} catch(e:Error) {
};
}
function frame10(){
stop();
loadSound = new tadaa();
loadChannel = loadSound.play(0, 1);
this.addEventListener(Event.ENTER_FRAME, enterFrameIntro);
}
public function backToMenu():void{
bottomTimer = 0;
gamePaused = false;
currentLevel = 1;
scoreLevel = 1;
slideTitle = true;
slidePlay = true;
slideTutorial = true;
slideCredits = true;
slideScore = true;
gameStarted = false;
satan.gameOver = false;
stage.quality = "high";
hubDisplay.barTop.highscoreSubmit.alpha = 0;
hubDisplay.gameover.gotoAndStop(1);
i = 0;
while (i <= (infoDisplay.length - 1)) {
if (infoDisplay[i] == true){
infoTimer[i] = 300;
hubDisplay[("infoBox" + i)].alpha = 0;
};
i++;
};
hubDisplay.pauseText.alpha = 0;
while (point_container.numChildren > 0) {
MovieClip(point_container.getChildAt(0)).removeSelf();
};
while (blast_container.numChildren > 0) {
MovieClip(blast_container.getChildAt(0)).removeSelf();
};
while (bullet_container.numChildren > 0) {
MovieClip(bullet_container.getChildAt(0)).removeSelf();
};
while (sheild_container.numChildren > 0) {
MovieClip(sheild_container.getChildAt(0)).removeSelf();
};
while (enemy_container.numChildren > 0) {
MovieClip(enemy_container.getChildAt(0)).removeSelf();
};
if (satan.stage){
satan.removeSelf();
};
}
public function menuSelectHandler2(_arg1:ContextMenuEvent):void{
getURL("http://www.mofunzone.com/", "_blank");
}
public function menuSelectHandler3(_arg1:ContextMenuEvent):void{
gameQuality = "low";
}
public function menuSelectHandler5(_arg1:ContextMenuEvent):void{
gameQuality = "high";
}
public function menuSelectHandler4(_arg1:ContextMenuEvent):void{
gameQuality = "medium";
}
public function loadVariablesNum(_arg1:String){
var _local2:*;
var _local3:*;
_local2 = new URLRequest(_arg1);
_local3 = new URLLoader();
_local3.load(_local2);
}
public function moveCursor(_arg1:MouseEvent):void{
if (gameStarted == true){
satan.xMouse = mouseX;
satan.yMouse = mouseY;
};
Mouse.show();
}
function frame20(){
stop();
i = 0;
j = 0;
k = 0;
l = 0;
keyLetterW = false;
keyLetterA = false;
keyLetterS = false;
keyLetterD = false;
keyLetterP = false;
keyPressP = false;
soundNoteA = new note_a();
soundNoteB = new note_b();
soundNoteC = new note_c();
soundNoteD = new note_d();
soundNoteE = new note_e();
soundNoteF = new note_f();
soundNoteG = new note_g();
myName = "YOUR NAME";
scoreSubmitted = false;
now = new Date();
slideTitle = true;
slideTutorialBox = false;
slideCreditsBox = false;
showTutorialCheck = false;
slidePlay = true;
slideTutorial = true;
slideCredits = true;
slideScore = true;
rollPlay = false;
rollTutorial = false;
rollCredits = false;
currentTutorial = 1;
gameStarted = false;
gamePaused = false;
currentLevel = 1;
floorScale = currentLevel;
scoreLevel = 1;
levelTimer = 0;
initialTimer = 0;
totalScore = 0;
initialScore = 0;
lifeFuel = 0;
gameTimer = 0;
gameTimerInt = 0;
gameTimerValue = 0;
shootX = false;
shootY = false;
shoot = false;
fireX = 0;
fireY = 0;
shootRotate = 0;
lifeAlphas = new Array(0.8, 0.8, 0.8);
totalLives = 3;
currentLives = totalLives;
satanHit = false;
shootDelay = 0;
enemyTimer = 190;
enemySheild = false;
magnet = 190;
pointSpread = 1;
bottomTimer = 0;
sheildTimer = 0;
powerTimer = 0;
enemyDelay = 0;
volumeInt = 100;
soundVolume = new SoundTransform(1, 0);
soundArray = new Array();
soundArray.push("note_b", "note_c", "note_b", "note_d", "note_b", "note_a");
soundArray.push("note_b", "note_c", "note_b", "note_d", "note_b", "note_a");
soundArray.push("note_b", "note_c", "note_b", "note_d", "note_d", "note_c", "note_b", "note_a", "note_g");
soundArray.push("note_g", "note_b", "note_c", "note_d", "note_b", "note_c");
soundArray.push("note_g", "note_b", "note_c", "note_d", "note_b", "note_c");
soundArray.push("note_g", "note_a", "note_b", "note_a", "note_g", "note_a", "note_g", "note_f");
soundArray.push("note_g", "note_d", "note_e", "note_c");
soundArray.push("note_g", "note_d", "note_b", "note_c");
soundArray.push("note_a", "note_g", "note_e", "note_f");
soundArray.push("note_a", "note_g", "note_c", "note_g");
soundArray.push("note_d", "note_a", "note_b", "note_g");
soundArray.push("note_d", "note_e", "note_a", "note_b");
soundArray.push("note_d", "note_c", "note_b", "note_a");
soundArray.push("note_f", "note_e", "note_g", "note_f");
soundArray.push("note_b", "note_a", "note_d", "note_b");
soundArray.push("note_e", "note_g", "note_f", "note_a", "note_d");
soundMarker = 0;
drumSound = new drums();
musicChannel = drumSound.play(0, 99, soundVolume);
enemy_container = new MovieClip();
addChild(enemy_container);
blast_container = new MovieClip();
addChild(blast_container);
point_container = new MovieClip();
addChild(point_container);
sheild_container = new MovieClip();
addChild(sheild_container);
satan_container = new MovieClip();
addChild(satan_container);
satan = new Satan();
bullet_container = new MovieClip();
addChild(bullet_container);
redBack = new red_back();
this.addChild(redBack);
hubDisplay = new hub_display();
this.addChild(hubDisplay);
hubDisplay.tutorial.satan.satan.armRight.stop();
hubDisplay.tutorial.satan.satan.tail.stop();
stage.addEventListener(Event.ENTER_FRAME, gameEnterFrame);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUpFunction);
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick);
stage.addEventListener(MouseEvent.MOUSE_UP, mouseClickUp);
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveCursor);
}
public function sponsorClick(_arg1:MouseEvent):void{
getURL("http://www.mofunzone.com/", "_blank");
}
public function keyDownFunction(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 37){
satan.keyLeftArrow = true;
};
if (_arg1.keyCode == 38){
satan.keyUpArrow = true;
};
if (_arg1.keyCode == 39){
satan.keyRightArrow = true;
};
if (_arg1.keyCode == 40){
satan.keyDownArrow = true;
};
if (_arg1.keyCode == 87){
keyLetterW = true;
satan.keyLetterW = true;
};
if (_arg1.keyCode == 65){
keyLetterA = true;
satan.keyLetterA = true;
};
if (_arg1.keyCode == 83){
keyLetterS = true;
satan.keyLetterS = true;
};
if (_arg1.keyCode == 68){
keyLetterD = true;
satan.keyLetterD = true;
};
if (_arg1.keyCode == 80){
keyLetterP = true;
satan.keyLetterP = true;
};
}
public function newSheild(_arg1):void{
var _local2:Sheild;
_local2 = new Sheild(_arg1);
sheild_container.addChild(_local2);
}
function frame1(){
stop();
gameQuality = "medium";
so = SharedObject.getLocal("userData");
highScore = 0;
highLevel = 0;
infoDisplay = new Array(false, false, false, false, false, false, false);
infoTimer = new Array(0, 0, 0, 0, 0, 0, 0);
readTutorial = false;
if (so.size != 0){
highScore = so.data.highScore;
highLevel = so.data.highLevel;
infoDisplay = so.data.infoDisplay;
infoTimer = so.data.infoTimer;
readTutorial = so.data.readTutorial;
};
this.addEventListener("enterFrame", load_bar);
b_preload.addEventListener("click", sponsorClick);
sponsorbutton.addEventListener("click", sponsorClick);
myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
item2 = new ContextMenuItem("Play More Games");
myContextMenu.customItems.push(item2);
item2.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuSelectHandler2);
item3 = new ContextMenuItem("Game Quality: Low");
myContextMenu.customItems.push(item3);
item3.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuSelectHandler3);
item4 = new ContextMenuItem("Game Quality: Medium");
myContextMenu.customItems.push(item4);
item4.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuSelectHandler4);
item5 = new ContextMenuItem("Game Quality: High");
myContextMenu.customItems.push(item5);
item5.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuSelectHandler5);
this.contextMenu = myContextMenu;
}
public function newBullet(_arg1):void{
var _local2:Blast;
_local2 = new Blast(satan.x, satan.y, fireX, fireY, (Math.atan(((mouseY - satan.y) / (mouseX - satan.x))) + _arg1), (satan.x - mouseX), scoreLevel, currentLevel);
blast_container.addChild(_local2);
}
public function gameEnterFrame(_arg1:Event):void{
var _local2:Bullet;
var _local3:Point_collect;
var _local4:Enemy;
if (keyLetterP == true){
if (keyPressP == false){
keyPressP = true;
if (gamePaused == false){
gamePaused = true;
satan.gamePaused = true;
} else {
gamePaused = false;
satan.gamePaused = false;
};
infoTimer[0] = 290;
};
} else {
keyPressP = false;
};
if (slideTitle == true){
if (hubDisplay.titleLogo.alpha < 1){
hubDisplay.titleLogo.alpha = (hubDisplay.titleLogo.alpha + 0.1);
};
} else {
if (hubDisplay.titleLogo.alpha > 0){
hubDisplay.titleLogo.alpha = (hubDisplay.titleLogo.alpha - 0.1);
};
};
if (highScore > 0){
hubDisplay.buttonPlay.highScore.text = ("High Score: " + highScore);
} else {
hubDisplay.buttonPlay.highScore.text = "";
};
if (highLevel >= 2){
hubDisplay.buttonPlay.stageSelect.x = -35;
} else {
hubDisplay.buttonPlay.stageSelect.x = -215;
};
if (currentLevel < highLevel){
hubDisplay.buttonPlay.stageSelect.stagePlus.alpha = 1;
} else {
hubDisplay.buttonPlay.stageSelect.stagePlus.alpha = 0;
};
if (currentLevel > 1){
hubDisplay.buttonPlay.stageSelect.stageMinus.alpha = 1;
} else {
hubDisplay.buttonPlay.stageSelect.stageMinus.alpha = 0;
};
if (slidePlay == true){
hubDisplay.buttonPlay.stageSelect.startStage.text = (currentLevel + "");
if (hubDisplay.buttonPlay.box.hitTestPoint(mouseX, mouseY, false)){
hubDisplay.buttonPlay.box.alpha = 0.8;
if (hubDisplay.buttonPlay.x < 0){
hubDisplay.buttonPlay.x = (hubDisplay.buttonPlay.x + 2);
};
} else {
hubDisplay.buttonPlay.box.alpha = 0.5;
if (hubDisplay.buttonPlay.x > -10){
hubDisplay.buttonPlay.x = (hubDisplay.buttonPlay.x - 2);
};
};
if (hubDisplay.buttonPlay.x < -10){
hubDisplay.buttonPlay.x = (hubDisplay.buttonPlay.x + 10);
};
} else {
if (hubDisplay.buttonPlay.x > -220){
hubDisplay.buttonPlay.x = (hubDisplay.buttonPlay.x - 10);
};
};
if (slideTutorial == true){
if (hubDisplay.buttonHelp.box.hitTestPoint(mouseX, mouseY, false)){
hubDisplay.buttonHelp.box.alpha = 0.8;
if (hubDisplay.buttonHelp.x < 0){
hubDisplay.buttonHelp.x = (hubDisplay.buttonHelp.x + 2);
};
} else {
hubDisplay.buttonHelp.box.alpha = 0.5;
if (hubDisplay.buttonHelp.x > -10){
hubDisplay.buttonHelp.x = (hubDisplay.buttonHelp.x - 2);
};
};
if (hubDisplay.buttonHelp.x < -10){
hubDisplay.buttonHelp.x = (hubDisplay.buttonHelp.x + 10);
};
} else {
if (hubDisplay.buttonHelp.x > -220){
hubDisplay.buttonHelp.x = (hubDisplay.buttonHelp.x - 10);
};
};
if (slideCredits == true){
if (hubDisplay.buttonCredits.box.hitTestPoint(mouseX, mouseY, false)){
hubDisplay.buttonCredits.box.alpha = 0.8;
if (hubDisplay.buttonCredits.x < 0){
hubDisplay.buttonCredits.x = (hubDisplay.buttonCredits.x + 2);
};
} else {
hubDisplay.buttonCredits.box.alpha = 0.5;
if (hubDisplay.buttonCredits.x > -10){
hubDisplay.buttonCredits.x = (hubDisplay.buttonCredits.x - 2);
};
};
if (hubDisplay.buttonCredits.x < -10){
hubDisplay.buttonCredits.x = (hubDisplay.buttonCredits.x + 10);
};
} else {
if (hubDisplay.buttonCredits.x > -220){
hubDisplay.buttonCredits.x = (hubDisplay.buttonCredits.x - 10);
};
};
if (slideScore == true){
if (hubDisplay.buttonHighscore.box.hitTestPoint(mouseX, mouseY, false)){
hubDisplay.buttonHighscore.box.alpha = 0.8;
if (hubDisplay.buttonHighscore.x < 0){
hubDisplay.buttonHighscore.x = (hubDisplay.buttonHighscore.x + 2);
};
} else {
hubDisplay.buttonHighscore.box.alpha = 0.5;
if (hubDisplay.buttonHighscore.x > -10){
hubDisplay.buttonHighscore.x = (hubDisplay.buttonHighscore.x - 2);
};
};
if (hubDisplay.buttonHighscore.x < -10){
hubDisplay.buttonHighscore.x = (hubDisplay.buttonHighscore.x + 10);
};
} else {
if (hubDisplay.buttonHighscore.x > -220){
hubDisplay.buttonHighscore.x = (hubDisplay.buttonHighscore.x - 10);
};
};
if (slideTutorialBox == true){
if (hubDisplay.tutorial.x > 220){
hubDisplay.tutorial.x = (hubDisplay.tutorial.x - 10);
};
} else {
if (hubDisplay.tutorial.x < 410){
hubDisplay.tutorial.x = (hubDisplay.tutorial.x + 10);
};
};
if (showTutorialCheck == true){
if (hubDisplay.tutorialCheck.chooseYes.hitTestPoint(mouseX, mouseY, true)){
hubDisplay.tutorialCheck.chooseYes.alpha = 0.8;
} else {
hubDisplay.tutorialCheck.chooseYes.alpha = 0.5;
};
if (hubDisplay.tutorialCheck.chooseNo.hitTestPoint(mouseX, mouseY, true)){
hubDisplay.tutorialCheck.chooseNo.alpha = 0.8;
} else {
hubDisplay.tutorialCheck.chooseNo.alpha = 0.5;
};
if (hubDisplay.tutorialCheck.alpha < 1){
hubDisplay.tutorialCheck.alpha = (hubDisplay.tutorialCheck.alpha + 0.1);
};
} else {
if (hubDisplay.tutorialCheck.alpha > 0){
hubDisplay.tutorialCheck.alpha = (hubDisplay.tutorialCheck.alpha - 0.1);
};
};
if (slideCreditsBox == true){
if (hubDisplay.credits.x > 220){
hubDisplay.credits.x = (hubDisplay.credits.x - 10);
};
} else {
if (hubDisplay.credits.x < 410){
hubDisplay.credits.x = (hubDisplay.credits.x + 10);
};
};
if (hubDisplay.barBottom.returnMenu.hitTestPoint(mouseX, mouseY, true)){
hubDisplay.barBottom.returnMenu.alpha = 0.8;
} else {
hubDisplay.barBottom.returnMenu.alpha = 0.5;
};
if (hubDisplay.barBottom.moreGames.hitTestPoint(mouseX, mouseY, true)){
hubDisplay.barBottom.moreGames.alpha = 0.8;
} else {
hubDisplay.barBottom.moreGames.alpha = 0.5;
};
if (hubDisplay.tutorial.box.hitTestPoint(mouseX, mouseY, true)){
hubDisplay.tutorial.box.alpha = 0.8;
} else {
hubDisplay.tutorial.box.alpha = 0.5;
};
if (hubDisplay.tutorial.tutPrev.hitTestPoint(mouseX, mouseY, true)){
hubDisplay.tutorial.tutPrev.alpha = 1;
} else {
hubDisplay.tutorial.tutPrev.alpha = 0.8;
};
if (hubDisplay.tutorial.tutNext.hitTestPoint(mouseX, mouseY, true)){
hubDisplay.tutorial.tutNext.alpha = 1;
} else {
hubDisplay.tutorial.tutNext.alpha = 0.8;
};
hubDisplay.tutorial.gotoAndStop(currentTutorial);
hubDisplay.tutorial.pageDisplay.text = (("Page " + currentTutorial) + "/3");
if (hubDisplay.credits.box.hitTestPoint(mouseX, mouseY, true)){
hubDisplay.credits.box.alpha = 0.8;
} else {
hubDisplay.credits.box.alpha = 0.5;
};
if (gameQuality == "high"){
hubDisplay.barBottom.qHigh.alpha = 1;
hubDisplay.barBottom.qMed.alpha = 0.5;
hubDisplay.barBottom.qLow.alpha = 0.5;
} else {
if (gameQuality == "medium"){
hubDisplay.barBottom.qHigh.alpha = 0.5;
hubDisplay.barBottom.qMed.alpha = 1;
hubDisplay.barBottom.qLow.alpha = 0.5;
} else {
if (gameQuality == "low"){
hubDisplay.barBottom.qHigh.alpha = 0.5;
hubDisplay.barBottom.qMed.alpha = 0.5;
hubDisplay.barBottom.qLow.alpha = 1;
};
};
};
hubDisplay.barBottom.volText.text = (volumeInt + "");
if (gameStarted == false){
if (hubDisplay.barTop.y > -60){
hubDisplay.barTop.y = (hubDisplay.barTop.y - 5);
};
if (hubDisplay.barBottom.y < 410){
hubDisplay.barBottom.y = (hubDisplay.barBottom.y + 5);
};
};
if (gameStarted == true){
if (gamePaused == true){
if (hubDisplay.pauseText.alpha < 1){
hubDisplay.pauseText.alpha = (hubDisplay.pauseText.alpha + 0.1);
};
} else {
if (hubDisplay.pauseText.alpha > 0){
hubDisplay.pauseText.alpha = (hubDisplay.pauseText.alpha - 0.1);
};
};
if (hubDisplay.barTop.y < -15){
hubDisplay.barTop.y = (hubDisplay.barTop.y + 5);
if (hubDisplay.barTop.y == -20){
hubDisplay.barTop.lifeSlide.play();
};
};
if (bottomTimer < 100){
if (satan.gameOver == false){
bottomTimer = (bottomTimer + 1);
};
};
if ((((gamePaused == true)) || ((bottomTimer < 100)))){
if (hubDisplay.barBottom.y > 380){
hubDisplay.barBottom.y = (hubDisplay.barBottom.y - 5);
};
};
if ((((bottomTimer > 90)) && ((gamePaused == false)))){
if (hubDisplay.barBottom.y < 410){
hubDisplay.barBottom.y = (hubDisplay.barBottom.y + 5);
};
if (infoDisplay[0] == false){
infoDisplay[0] = true;
};
};
if (satan.gameOver == true){
if (hubDisplay.barTop.highscoreSubmit.alpha < 1){
hubDisplay.barTop.highscoreSubmit.alpha = (hubDisplay.barTop.highscoreSubmit.alpha + 0.1);
};
if ((((((hubDisplay.barTop.highscoreSubmit.submitScore.text == "")) || ((hubDisplay.barTop.highscoreSubmit.submitScore.text == "YOUR NAME")))) || ((scoreSubmitted == true)))){
hubDisplay.barTop.highscoreSubmit.submitBox.alpha = 0.5;
} else {
hubDisplay.barTop.highscoreSubmit.submitBox.alpha = 1;
};
} else {
if (hubDisplay.barTop.highscoreSubmit.alpha > 0){
hubDisplay.barTop.highscoreSubmit.alpha = (hubDisplay.barTop.highscoreSubmit.alpha - 0.1);
};
};
i = 0;
while (i <= (infoDisplay.length - 1)) {
if ((((gamePaused == false)) || ((i == 0)))){
if (infoDisplay[i] == true){
if (infoTimer[i] < 300){
infoTimer[i] = (infoTimer[i] + 1);
};
};
};
if ((((((infoTimer[i] > 0)) && ((infoTimer[i] < 290)))) && ((hubDisplay[("infoBox" + i)].alpha < 1)))){
hubDisplay[("infoBox" + i)].alpha = (hubDisplay[("infoBox" + i)].alpha + 0.1);
};
if ((((infoTimer[i] > 290)) && ((hubDisplay[("infoBox" + i)].alpha > 0)))){
if (i != 4){
hubDisplay[("infoBox" + i)].alpha = (hubDisplay[("infoBox" + i)].alpha - 0.1);
};
};
i++;
};
stage.quality = gameQuality;
hubDisplay.barTop.lifeSlide.lifeBox.hFront.scaleX = (lifeFuel / 100);
if ((((lifeFuel > 0)) && ((currentLives < totalLives)))){
hubDisplay.barTop.lifeSlide.lifeBox.hFront.alpha = 1;
hubDisplay.barTop.lifeSlide.lifeBox.hBack.alpha = 0.5;
} else {
lifeFuel = 0;
hubDisplay.barTop.lifeSlide.lifeBox.hFront.alpha = 0;
hubDisplay.barTop.lifeSlide.lifeBox.hBack.alpha = 0;
};
if ((((satan.health == 0)) && ((satan.rootAlive == true)))){
if (currentLives > 0){
satan.rootAlive = false;
currentLives = (currentLives - 1);
hubDisplay.barTop.lifeSlide.play();
} else {
if (satan.gameOver == false){
hubDisplay.gameover.play();
bottomTimer = 0;
satan.gameOver = true;
if (infoDisplay[3] == true){
infoTimer[3] = 300;
hubDisplay.infoBox3.alpha = 0;
};
if (infoDisplay[4] == false){
infoDisplay[4] = true;
};
if (totalScore > highScore){
highScore = totalScore;
};
if (currentLevel > highLevel){
highLevel = currentLevel;
};
so.data.highScore = highScore;
so.data.highLevel = highLevel;
so.data.infoDisplay = infoDisplay;
so.data.infoTimer = infoTimer;
so.data.readTutorial = readTutorial;
hubDisplay.barTop.highscoreSubmit.submitScore.text = myName;
};
};
};
i = 1;
while (i <= totalLives) {
hubDisplay.barTop.lifeSlide.lifeBox[("life" + i)].alpha = lifeAlphas[(i - 1)];
if (currentLives < i){
if (lifeAlphas[(i - 1)] > 0.2){
lifeAlphas[(i - 1)] = (lifeAlphas[(i - 1)] - 0.01);
};
};
if (currentLives == i){
if (lifeAlphas[(i - 1)] < 0.8){
lifeAlphas[(i - 1)] = (lifeAlphas[(i - 1)] + 0.01);
};
};
i++;
};
if ((((satan.gameOver == false)) && ((gamePaused == false)))){
gameTimerValue = (gameTimerValue + 1);
gameTimerInt = (gameTimerInt + 1);
};
if (gameTimerInt == 40){
gameTimerInt = 0;
gameTimer = (gameTimer + 1);
};
if (currentLevel < 20){
if (gameTimer == (((16 + (currentLevel * 2)) * currentLevel) - initialTimer)){
gameTimerValue = 0;
currentLevel = (currentLevel + 1);
if (currentLevel == 2){
infoDisplay[1] = true;
};
hubDisplay.barTop.levelUp.play();
hubDisplay.barTop.endLevel.play();
};
};
hubDisplay.barTop.textTime.text = (gameTimer + " - TIME");
hubDisplay.barTop.intTime.text = (currentLevel + "");
if (currentLevel < 20){
hubDisplay.barTop.meterTime.scaleX = (gameTimerValue / (16 * (35 + (currentLevel * 10))));
} else {
hubDisplay.barTop.meterTime.scaleX = 0;
};
if (scoreLevel < 20){
if (totalScore >= ((1000 * (scoreLevel * scoreLevel)) - initialScore)){
scoreLevel = (scoreLevel + 1);
hubDisplay.barTop.scorePlus.play();
hubDisplay.barTop.endScore.play();
};
};
hubDisplay.barTop.textScore.text = ("SCORE - " + totalScore);
hubDisplay.barTop.intScore.text = (scoreLevel + "");
if (scoreLevel < 20){
hubDisplay.barTop.meterScore.scaleX = ((((totalScore + initialScore) - (1000 * ((scoreLevel - 1) * (scoreLevel - 1)))) / ((scoreLevel * 2) - 1)) / 1000);
} else {
hubDisplay.barTop.meterScore.scaleX = 0;
};
satan.scoreLevel = scoreLevel;
satan.currentLevel = currentLevel;
if (floorScale < currentLevel){
floorScale = (floorScale + 0.05);
};
floormap.scaleX = (floormap.scaleY = (2 - (floorScale / 20)));
if ((((shootDelay == 0)) && ((satan.frozen == false)))){
if (shoot == true){
shootDelay = 3;
newBullet(0);
if (satan.powerBlast > 0){
newBullet(-0.2);
newBullet(0.2);
};
};
} else {
if (shootDelay > 0){
shootDelay--;
};
};
if (shoot == true){
satan.shooting = true;
} else {
satan.shooting = false;
};
if (floormap.floorCircle.alpha < 1){
floormap.floorCircle.alpha = (floormap.floorCircle.alpha + 0.01);
};
i = 1;
while (i <= 36) {
j = 1;
while (j <= 4) {
if (floormap[("floormap" + j)][("p" + i)].alpha < 1){
floormap[("floormap" + j)][("p" + i)].alpha = (floormap[("floormap" + j)][("p" + i)].alpha + 0.01);
};
j++;
};
i++;
};
i = 0;
while (i < blast_container.numChildren) {
Object(blast_container.getChildAt(i)).gamePaused = gamePaused;
if (floormap.floorCircle.hitTestPoint(Object(blast_container.getChildAt(i)).x, Object(blast_container.getChildAt(i)).y, true)){
floormap.floorCircle.alpha = 0.9;
};
j = 1;
while (j <= 36) {
k = 1;
while (k <= 4) {
if (floormap[("floormap" + k)][("p" + j)].hitTestPoint(Object(blast_container.getChildAt(i)).x, Object(blast_container.getChildAt(i)).y, true)){
if (floormap[("floormap" + k)][("p" + j)].alpha > 0.9){
floormap[("floormap" + k)][("p" + j)].alpha = 0.9;
};
};
k++;
};
j++;
};
j = 0;
while (j < enemy_container.numChildren) {
if (MovieClip(enemy_container.getChildAt(j)).weaponType != 0){
if (MovieClip(enemy_container.getChildAt(j)).enemyInner.weapon.hitTestPoint(blast_container.getChildAt(i).x, blast_container.getChildAt(i).y, true)){
MovieClip(blast_container.getChildAt(i)).alive = false;
};
};
if (Object(enemy_container.getChildAt(j)).enemyInner.enemySprite.hitTestPoint(blast_container.getChildAt(i).x, blast_container.getChildAt(i).y, true)){
if ((((MovieClip(blast_container.getChildAt(i)).alive == true)) && ((gamePaused == false)))){
MovieClip(blast_container.getChildAt(i)).alive = false;
if (MovieClip(enemy_container.getChildAt(j)).health > 0){
if (MovieClip(enemy_container.getChildAt(j)).sheilded == false){
MovieClip(enemy_container.getChildAt(j)).hBack.alpha = 0.5;
MovieClip(enemy_container.getChildAt(j)).hFront.alpha = 1;
MovieClip(enemy_container.getChildAt(j)).health = (MovieClip(enemy_container.getChildAt(j)).health - MovieClip(blast_container.getChildAt(i)).blastPower);
};
};
};
};
j++;
};
i++;
};
j = 0;
while (j < enemy_container.numChildren) {
Object(enemy_container.getChildAt(j)).gamePaused = gamePaused;
if (MovieClip(enemy_container.getChildAt(j)).bulletShoot == true){
MovieClip(enemy_container.getChildAt(j)).bulletShoot = false;
_local2 = new Bullet(Object(enemy_container.getChildAt(j)).x, Object(enemy_container.getChildAt(j)).y, Object(enemy_container.getChildAt(j)).moveAngle, Object(enemy_container.getChildAt(j)).weaponAngle, Object(enemy_container.getChildAt(j)).enemyInner.weapon.y, Object(enemy_container.getChildAt(j)).enemyType, currentLevel, scoreLevel);
bullet_container.addChild(_local2);
};
if (Object(enemy_container.getChildAt(j)).weaponType == 3){
if (Object(enemy_container.getChildAt(j)).satanX < Math.round(satan.x)){
Object(enemy_container.getChildAt(j)).satanX = (Object(enemy_container.getChildAt(j)).satanX + (Object(enemy_container.getChildAt(j)).weaponStrength / 20));
} else {
if (Object(enemy_container.getChildAt(j)).satanX > Math.round(satan.x)){
Object(enemy_container.getChildAt(j)).satanX = (Object(enemy_container.getChildAt(j)).satanX - (Object(enemy_container.getChildAt(j)).weaponStrength / 20));
};
};
if (Object(enemy_container.getChildAt(j)).satanY < Math.round(satan.y)){
Object(enemy_container.getChildAt(j)).satanY = (Object(enemy_container.getChildAt(j)).satanY + (Object(enemy_container.getChildAt(j)).weaponStrength / 20));
} else {
if (Object(enemy_container.getChildAt(j)).satanY > Math.round(satan.y)){
Object(enemy_container.getChildAt(j)).satanY = (Object(enemy_container.getChildAt(j)).satanY - (Object(enemy_container.getChildAt(j)).weaponStrength / 20));
};
};
};
if (Object(enemy_container.getChildAt(j)).enemyInner.hitTestPoint((satan.x - 5), (satan.y - 5), true)){
satanHit = true;
} else {
if (Object(enemy_container.getChildAt(j)).enemyInner.hitTestPoint((satan.x - 5), (satan.y + 5), true)){
satanHit = true;
} else {
if (Object(enemy_container.getChildAt(j)).enemyInner.hitTestPoint((satan.x + 5), (satan.y + 5), true)){
satanHit = true;
} else {
if (Object(enemy_container.getChildAt(j)).enemyInner.hitTestPoint((satan.x + 5), (satan.y - 5), true)){
satanHit = true;
} else {
satanHit = false;
};
};
};
};
if ((((((satanHit == true)) && ((satan.gameOver == false)))) && ((gamePaused == false)))){
if (Object(enemy_container.getChildAt(j)).health > 0){
if (satan.sheilded == 0){
satan.health = (satan.health - 5);
redBack.play();
if (satan.health <= 0){
satan.health = 0;
};
};
};
};
i = 0;
while (i < enemy_container.numChildren) {
if (Object(enemy_container.getChildAt(i)).enemyInner.enemySprite.hitTestObject(MovieClip(enemy_container.getChildAt(j)).enemyInner.enemyRadius)){
if (MovieClip(enemy_container.getChildAt(j)).alive == false){
MovieClip(enemy_container.getChildAt(i)).health = 0;
};
};
if (MovieClip(enemy_container.getChildAt(j)).weaponType == 1){
if (Object(enemy_container.getChildAt(i)).enemyInner.enemySprite.hitTestObject(MovieClip(enemy_container.getChildAt(j)).enemyInner.spinner.blade.enemyRadius)){
if (MovieClip(enemy_container.getChildAt(j)).alive == false){
MovieClip(enemy_container.getChildAt(i)).health = 0;
};
};
};
if ((((MovieClip(enemy_container.getChildAt(j)).weaponType == 2)) || ((MovieClip(enemy_container.getChildAt(j)).weaponType == 3)))){
if (Object(enemy_container.getChildAt(i)).enemyInner.enemySprite.hitTestObject(MovieClip(enemy_container.getChildAt(j)).enemyInner.weapon.blade.enemyRadius)){
if (MovieClip(enemy_container.getChildAt(j)).alive == false){
MovieClip(enemy_container.getChildAt(i)).health = 0;
};
};
};
i++;
};
if (MovieClip(enemy_container.getChildAt(j)).health <= 0){
if (MovieClip(enemy_container.getChildAt(j)).frozen == false){
MovieClip(enemy_container.getChildAt(j)).frozen = true;
};
if ((((MovieClip(enemy_container.getChildAt(j)).alive == true)) && ((enemyDelay == 0)))){
enemyDelay = 20;
MovieClip(enemy_container.getChildAt(j)).frozen = false;
MovieClip(enemy_container.getChildAt(j)).alive = false;
if (soundArray[soundMarker] == "note_a"){
soundNoteA.play(0, 0, soundVolume);
} else {
if (soundArray[soundMarker] == "note_b"){
soundNoteB.play(0, 0, soundVolume);
} else {
if (soundArray[soundMarker] == "note_c"){
soundNoteC.play(0, 0, soundVolume);
} else {
if (soundArray[soundMarker] == "note_d"){
soundNoteD.play(0, 0, soundVolume);
} else {
if (soundArray[soundMarker] == "note_e"){
soundNoteE.play(0, 0, soundVolume);
} else {
if (soundArray[soundMarker] == "note_f"){
soundNoteF.play(0, 0, soundVolume);
} else {
if (soundArray[soundMarker] == "note_g"){
soundNoteG.play(0, 0, soundVolume);
};
};
};
};
};
};
};
soundMarker = (soundMarker + 1);
if (soundMarker == soundArray.length){
soundMarker = 0;
};
if (MovieClip(enemy_container.getChildAt(j)).sheilded == true){
if (currentLives < totalLives){
if (infoDisplay[2] == false){
infoDisplay[2] = true;
};
lifeFuel = (lifeFuel + 25);
hubDisplay.barTop.lifeSlide.lifeBox.lifeFlash.play();
if (lifeFuel >= 100){
lifeFuel = 0;
currentLives = (currentLives + 1);
hubDisplay.barTop.lifeSlide.play();
};
};
};
if (floormap.floorCircle.hitTestObject(Object(enemy_container.getChildAt(j)).enemyInner.enemySprite)){
floormap.floorCircle.alpha = 0.5;
};
k = 1;
while (k <= 36) {
l = 1;
while (l <= 4) {
if (floormap[("floormap" + l)][("p" + k)].hitTestObject(Object(enemy_container.getChildAt(j)).enemyInner.enemySprite)){
floormap[("floormap" + l)][("p" + k)].alpha = 0.5;
};
l++;
};
k++;
};
if (MovieClip(enemy_container.getChildAt(j)).sheilded == true){
pointSpread = 2;
} else {
pointSpread = 1;
};
k = 0;
while (k < (20 * pointSpread)) {
_local3 = new Point_collect(MovieClip(enemy_container.getChildAt(j)).x, MovieClip(enemy_container.getChildAt(j)).y, MovieClip(enemy_container.getChildAt(j)).enemyType, currentLevel, pointSpread);
point_container.addChild(_local3);
k++;
};
};
};
j++;
};
i = 0;
while (i < bullet_container.numChildren) {
Object(bullet_container.getChildAt(i)).gamePaused = gamePaused;
if (satan.box.hitTestObject(bullet_container.getChildAt(i))){
if ((((((MovieClip(bullet_container.getChildAt(i)).alive == true)) && ((satan.gameOver == false)))) && ((gamePaused == false)))){
MovieClip(bullet_container.getChildAt(i)).alive = false;
if (satan.sheilded == 0){
satan.health = (satan.health - MovieClip(bullet_container.getChildAt(i)).bulletStrength);
redBack.play();
if (satan.health <= 0){
satan.health = 0;
};
};
};
};
i++;
};
i = 0;
while (i < point_container.numChildren) {
Object(point_container.getChildAt(i)).gamePaused = gamePaused;
if (MovieClip(point_container.getChildAt(i)).alpha > 0.8){
if (satan.box.hitTestObject(MovieClip(point_container.getChildAt(i)).magnetzone)){
magnet = (50 - Math.sqrt((Math.pow((point_container.getChildAt(i).x - satan.x), 2) + Math.pow((point_container.getChildAt(i).y - satan.y), 2))));
if (magnet < 0){
magnet = 0;
};
magnet = (magnet / 5);
if (gamePaused == false){
if (point_container.getChildAt(i).x < satan.x){
point_container.getChildAt(i).x = (point_container.getChildAt(i).x + magnet);
} else {
point_container.getChildAt(i).x = (point_container.getChildAt(i).x - magnet);
};
if (point_container.getChildAt(i).y < satan.y){
point_container.getChildAt(i).y = (point_container.getChildAt(i).y + magnet);
} else {
point_container.getChildAt(i).y = (point_container.getChildAt(i).y - magnet);
};
};
};
if (satan.box.hitTestObject(MovieClip(point_container.getChildAt(i)).pointInner)){
if ((((MovieClip(point_container.getChildAt(i)).alive == true)) && ((gamePaused == false)))){
totalScore = (totalScore + (5 + (5 * MovieClip(point_container.getChildAt(i)).pointValue)));
MovieClip(point_container.getChildAt(i)).alive = false;
MovieClip(point_container.getChildAt(i)).gotoAndPlay("dead");
};
};
};
i++;
};
if (gamePaused == false){
if (enemyDelay > 0){
enemyDelay = (enemyDelay - 1);
};
enemyTimer++;
};
if (enemyTimer > (35 - currentLevel)){
enemyTimer = 0;
if ((((((Math.random() > 0.97)) && ((currentLevel >= 3)))) && ((satan.gameOver == false)))){
enemySheild = true;
if (infoDisplay[3] == false){
infoDisplay[3] = true;
};
} else {
enemySheild = false;
};
_local4 = new Enemy(currentLevel, enemySheild);
enemy_container.addChild(_local4);
};
if (gamePaused == false){
sheildTimer = (sheildTimer + 0.0001);
};
if ((Math.random() * 100) > (100 - sheildTimer)){
sheildTimer = 0;
newSheild(1);
if ((((infoDisplay[5] == false)) && ((satan.gameOver == false)))){
infoDisplay[5] = true;
};
};
if ((((gamePaused == false)) && ((currentLevel >= 5)))){
powerTimer = (powerTimer + 0.0001);
};
if ((Math.random() * 100) > (100 - powerTimer)){
powerTimer = 0;
newSheild(2);
if ((((infoDisplay[6] == false)) && ((satan.gameOver == false)))){
infoDisplay[6] = true;
};
};
i = 0;
while (i < sheild_container.numChildren) {
Object(sheild_container.getChildAt(i)).gamePaused = gamePaused;
if (satan.box.hitTestObject(MovieClip(sheild_container.getChildAt(i)))){
if (MovieClip(sheild_container.getChildAt(i)).collected == false){
MovieClip(sheild_container.getChildAt(i)).collected = true;
if (MovieClip(sheild_container.getChildAt(i)).powerType == 1){
satan.sheilded = 300;
} else {
satan.powerBlast = 300;
};
};
};
i++;
};
};
}
public function linkChromeShark(_arg1:MouseEvent):void{
getURL("http://www.chromeshark.com", "_blank");
}
public function load_bar(_arg1:Event):void{
if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal){
loadItems.play();
} else {
loadItems.preloader.lbar.scaleX = (this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal);
};
if (introLogo.currentFrame == (introLogo.totalFrames - 1)){
introLogo.gotoAndPlay(1);
};
if (loadItems.currentFrame == loadItems.totalFrames){
introLogo.gotoAndStop("endLogo");
gotoAndStop("loader");
this.removeEventListener("enterFrame", load_bar);
};
}
public function gameStart():void{
scoreSubmitted = false;
slideTitle = false;
slidePlay = false;
slideTutorial = false;
slideCredits = false;
slideScore = false;
gameStarted = true;
levelTimer = 0;
totalScore = 0;
initialTimer = ((16 + ((currentLevel - 1) * 2)) * (currentLevel - 1));
initialScore = (1000 * ((currentLevel - 1) * (currentLevel - 1)));
gameTimer = 0;
gameTimerInt = 0;
gameTimerValue = 0;
floorScale = currentLevel;
currentLives = totalLives;
i = 1;
while (i <= totalLives) {
lifeAlphas[(i - 1)] = 0.8;
i++;
};
satan_container.addChild(satan);
satan.spawnSelf(200, 200);
}
public function keyUpFunction(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 37){
satan.keyLeftArrow = false;
};
if (_arg1.keyCode == 38){
satan.keyUpArrow = false;
};
if (_arg1.keyCode == 39){
satan.keyRightArrow = false;
};
if (_arg1.keyCode == 40){
satan.keyDownArrow = false;
};
if (_arg1.keyCode == 87){
keyLetterW = false;
satan.keyLetterW = false;
};
if (_arg1.keyCode == 65){
keyLetterA = false;
satan.keyLetterA = false;
};
if (_arg1.keyCode == 83){
keyLetterS = false;
satan.keyLetterS = false;
};
if (_arg1.keyCode == 68){
keyLetterD = false;
satan.keyLetterD = false;
};
if (_arg1.keyCode == 80){
keyLetterP = false;
satan.keyLetterP = false;
};
}
public function mouseClickUp(_arg1:MouseEvent):void{
shoot = false;
}
public function mouseClick(_arg1:MouseEvent):void{
if (hubDisplay.barTop.highscoreSubmit.submitBox.hitTestPoint(mouseX, mouseY, true)){
if ((((((hubDisplay.barTop.highscoreSubmit.submitScore.text == "")) || ((hubDisplay.barTop.highscoreSubmit.submitScore.text == "YOUR NAME")))) || ((scoreSubmitted == true)))){
} else {
scoreSubmitted = true;
myName = hubDisplay.barTop.highscoreSubmit.submitScore.text;
getURL(((((("http://www.MoFunZone.com/game_scores/ghosts_of_hell/highscore.php?" + myName) + "/") + now.getTime()) + "/") + now.getUTCFullYear()), "_blank");
};
};
if (hubDisplay.gameover.gameoverText.hitTestPoint(mouseX, mouseY, true)){
getURL("http://www.mofunzone.com/online_games/ghosts_of_hell.shtml", "_blank");
};
if (gameStarted == true){
if (gamePaused == false){
shoot = true;
};
if (hubDisplay.barBottom.returnMenu.hitTestPoint(mouseX, mouseY, true)){
backToMenu();
};
if (hubDisplay.barBottom.moreGames.hitTestPoint(mouseX, mouseY, true)){
getURL("http://www.mofunzone.com/", "_blank");
};
if (hubDisplay.barBottom.qHigh.hitTestPoint(mouseX, mouseY, true)){
gameQuality = "high";
};
if (hubDisplay.barBottom.qMed.hitTestPoint(mouseX, mouseY, true)){
gameQuality = "medium";
};
if (hubDisplay.barBottom.qLow.hitTestPoint(mouseX, mouseY, true)){
gameQuality = "low";
};
if (hubDisplay.barBottom.volMinus.hitTestPoint(mouseX, mouseY, true)){
if (volumeInt > 0){
volumeInt = (volumeInt - 10);
soundVolume = new SoundTransform((volumeInt / 100), 0);
musicChannel.soundTransform = soundVolume;
};
};
if (hubDisplay.barBottom.volPlus.hitTestPoint(mouseX, mouseY, true)){
if (volumeInt < 100){
volumeInt = (volumeInt + 10);
soundVolume = new SoundTransform((volumeInt / 100), 0);
musicChannel.soundTransform = soundVolume;
};
};
} else {
if (hubDisplay.titleLogo.moLogo.hitTestPoint(mouseX, mouseY, true)){
getURL("http://www.mofunzone.com/", "_blank");
};
if (hubDisplay.buttonHighscore.hitTestPoint(mouseX, mouseY, true)){
getURL("http://www.mofunzone.com/game_scores/ghosts_of_hell/highscores.shtml", "_blank");
};
if (slidePlay == true){
if (hubDisplay.buttonPlay.box.hitTestPoint(mouseX, mouseY, true)){
soundNoteG.play(0, 0, soundVolume);
if (readTutorial == true){
gameStart();
} else {
showTutorialCheck = true;
slidePlay = false;
slideCredits = false;
slideScore = false;
slideTutorial = false;
};
};
if (hubDisplay.buttonPlay.stageSelect.stageMinus.hitTestPoint(mouseX, mouseY, false)){
if (currentLevel > 1){
currentLevel = (currentLevel - 1);
scoreLevel = (scoreLevel - 1);
};
};
if (hubDisplay.buttonPlay.stageSelect.stagePlus.hitTestPoint(mouseX, mouseY, false)){
if (currentLevel < highLevel){
currentLevel = (currentLevel + 1);
scoreLevel = (scoreLevel + 1);
};
};
};
if (slideTutorial == true){
if (hubDisplay.buttonHelp.box.hitTestPoint(mouseX, mouseY, true)){
slidePlay = false;
slideCredits = false;
slideScore = false;
if (slideTutorialBox == false){
slideTutorialBox = true;
soundNoteC.play(0, 0, soundVolume);
};
};
if (hubDisplay.tutorial.tutPrev.hitTestPoint(mouseX, mouseY, true)){
if (currentTutorial > 1){
currentTutorial = (currentTutorial - 1);
};
};
if (hubDisplay.tutorial.tutNext.hitTestPoint(mouseX, mouseY, true)){
if (currentTutorial < 3){
currentTutorial = (currentTutorial + 1);
};
};
};
if (slideCredits == true){
if (hubDisplay.buttonCredits.box.hitTestPoint(mouseX, mouseY, true)){
slidePlay = false;
slideTutorial = false;
slideScore = false;
if (slideCreditsBox == false){
slideCreditsBox = true;
soundNoteD.play(0, 0, soundVolume);
};
};
};
if (hubDisplay.tutorial.box.hitTestPoint(mouseX, mouseY, true)){
readTutorial = true;
slidePlay = true;
slideCredits = true;
slideScore = true;
slideTutorialBox = false;
soundNoteA.play(0, 0, soundVolume);
};
if (hubDisplay.credits.box.hitTestPoint(mouseX, mouseY, true)){
slidePlay = true;
slideTutorial = true;
slideScore = true;
slideCreditsBox = false;
soundNoteB.play(0, 0, soundVolume);
};
if (showTutorialCheck == true){
if (hubDisplay.tutorialCheck.chooseNo.hitTestPoint(mouseX, mouseY, true)){
readTutorial = true;
showTutorialCheck = false;
gameStart();
};
if (hubDisplay.tutorialCheck.chooseYes.hitTestPoint(mouseX, mouseY, true)){
readTutorial = true;
showTutorialCheck = false;
slideTutorial = true;
slideTutorialBox = true;
};
};
};
}
public function enterFrameIntro(_arg1:Event):void{
if (introLogo.endLogo.currentFrame == introLogo.endLogo.totalFrames){
gotoAndStop("game");
removeEventListener(Event.ENTER_FRAME, enterFrameIntro);
};
}
}
}//package hell_public_fla
Section 31
//q_high_64 (hell_public_fla.q_high_64)
package hell_public_fla {
import flash.display.*;
public dynamic class q_high_64 extends MovieClip {
public var box:MovieClip;
}
}//package hell_public_fla
Section 32
//q_low_61 (hell_public_fla.q_low_61)
package hell_public_fla {
import flash.display.*;
public dynamic class q_low_61 extends MovieClip {
public var box:MovieClip;
}
}//package hell_public_fla
Section 33
//q_med_63 (hell_public_fla.q_med_63)
package hell_public_fla {
import flash.display.*;
public dynamic class q_med_63 extends MovieClip {
public var box:MovieClip;
}
}//package hell_public_fla
Section 34
//satan_arm_left_95 (hell_public_fla.satan_arm_left_95)
package hell_public_fla {
import flash.display.*;
public dynamic class satan_arm_left_95 extends MovieClip {
public var gem:MovieClip;
}
}//package hell_public_fla
Section 35
//satan_arm_left_move_94 (hell_public_fla.satan_arm_left_move_94)
package hell_public_fla {
import flash.display.*;
public dynamic class satan_arm_left_move_94 extends MovieClip {
public var arm:MovieClip;
public function satan_arm_left_move_94(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package hell_public_fla
Section 36
//satan_graphic_90 (hell_public_fla.satan_graphic_90)
package hell_public_fla {
import flash.display.*;
public dynamic class satan_graphic_90 extends MovieClip {
public var satan:MovieClip;
public function satan_graphic_90(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hell_public_fla
Section 37
//satan_power_159 (hell_public_fla.satan_power_159)
package hell_public_fla {
import flash.display.*;
public dynamic class satan_power_159 extends MovieClip {
public var sheildSpin:MovieClip;
public function satan_power_159(){
addFrameScript(49, frame50);
}
function frame50(){
gotoAndPlay(2);
}
}
}//package hell_public_fla
Section 38
//satan_sheild_158 (hell_public_fla.satan_sheild_158)
package hell_public_fla {
import flash.display.*;
public dynamic class satan_sheild_158 extends MovieClip {
public var sheildSpin:MovieClip;
public function satan_sheild_158(){
addFrameScript(49, frame50);
}
function frame50(){
gotoAndPlay(2);
}
}
}//package hell_public_fla
Section 39
//satan_sprite_91 (hell_public_fla.satan_sprite_91)
package hell_public_fla {
import flash.display.*;
public dynamic class satan_sprite_91 extends MovieClip {
public var armRight:MovieClip;
public var tail:MovieClip;
public var armLeft:MovieClip;
}
}//package hell_public_fla
Section 40
//score_plus_74 (hell_public_fla.score_plus_74)
package hell_public_fla {
import flash.display.*;
public dynamic class score_plus_74 extends MovieClip {
public function score_plus_74(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hell_public_fla
Section 41
//sheild_inner_49 (hell_public_fla.sheild_inner_49)
package hell_public_fla {
import flash.display.*;
public dynamic class sheild_inner_49 extends MovieClip {
public function sheild_inner_49(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package hell_public_fla
Section 42
//sheild_rotate_48 (hell_public_fla.sheild_rotate_48)
package hell_public_fla {
import flash.display.*;
public dynamic class sheild_rotate_48 extends MovieClip {
public var sheildGraphic:MovieClip;
}
}//package hell_public_fla
Section 43
//stage_select_85 (hell_public_fla.stage_select_85)
package hell_public_fla {
import flash.display.*;
import flash.text.*;
public dynamic class stage_select_85 extends MovieClip {
public var stageMinus:MovieClip;
public var startStage:TextField;
public var stagePlus:MovieClip;
}
}//package hell_public_fla
Section 44
//THEPRELOADER_2 (hell_public_fla.THEPRELOADER_2)
package hell_public_fla {
import flash.display.*;
public dynamic class THEPRELOADER_2 extends MovieClip {
public var logo7:MovieClip;
public var logo6:MovieClip;
public var endLogo:MovieClip;
public var logo1:MovieClip;
public var logo3:MovieClip;
public var logo4:MovieClip;
public var logo8:MovieClip;
public var logo2:MovieClip;
public var logo5:MovieClip;
}
}//package hell_public_fla
Section 45
//title_logo_52 (hell_public_fla.title_logo_52)
package hell_public_fla {
import flash.display.*;
public dynamic class title_logo_52 extends MovieClip {
public var moLogo:MovieClip;
}
}//package hell_public_fla
Section 46
//tutorial_check_104 (hell_public_fla.tutorial_check_104)
package hell_public_fla {
import flash.display.*;
public dynamic class tutorial_check_104 extends MovieClip {
public var chooseNo:MovieClip;
public var chooseYes:MovieClip;
}
}//package hell_public_fla
Section 47
//Blast (Blast)
package {
import flash.events.*;
import flash.display.*;
public class Blast extends MovieClip {
public var speed:Number;// = 4
public var xMove:Number;// = 0
public var blastRotate:int;// = 1
public var alive:Boolean;// = true
public var gamePaused:Boolean;// = false
public var blastPower:int;// = 1
public var yMove:Number;// = 0
public function Blast(_arg1:int, _arg2:int, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:int, _arg8:int):void{
gamePaused = false;
alive = true;
speed = 4;
blastPower = 1;
blastRotate = 1;
xMove = 0;
yMove = 0;
super();
addFrameScript(0, frame1);
blastPower = (_arg7 * 10);
scaleX = (scaleY = ((1 * (1 + (_arg7 / 10))) / (1 + (_arg8 / 10))));
x = _arg1;
y = _arg2;
if (_arg6 > 0){
rotation = ((_arg5 * (180 / Math.PI)) - 90);
xMove = (Math.cos(_arg5) * -(speed));
yMove = (Math.sin(_arg5) * -(speed));
} else {
rotation = ((_arg5 * (180 / Math.PI)) + 90);
xMove = (Math.cos(_arg5) * speed);
yMove = (Math.sin(_arg5) * speed);
};
addEventListener("enterFrame", clipMove);
}
public function clipMove(_arg1:Event):void{
if (alive == true){
if (gamePaused == false){
x = (x + (xMove * speed));
y = (y + (yMove * speed));
};
} else {
this.play();
if (currentFrame == totalFrames){
removeSelf();
};
};
if ((((((((x < -10)) || ((x > 410)))) || ((y < -10)))) || ((y > 410)))){
removeSelf();
};
}
function frame1(){
stop();
}
public function removeSelf():void{
parent.removeChild(this);
this.removeEventListener("enterFrame", clipMove);
}
}
}//package
Section 48
//Bullet (Bullet)
package {
import flash.events.*;
import flash.display.*;
public class Bullet extends MovieClip {
public var speed:Number;// = 5
public var bulletStrength:Number;// = 0
public var moveAngle:Number;// = 0
public var bulletGraphic:MovieClip;
public var alive:Boolean;// = true
public var gamePaused:Boolean;// = false
public var accel:Number;// = 0
public var blastPower:int;// = 50
public function Bullet(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:int, _arg7:int, _arg8:int):void{
gamePaused = false;
alive = true;
speed = 5;
accel = 0;
bulletStrength = 0;
moveAngle = 0;
blastPower = 50;
super();
addFrameScript(0, frame1);
if (_arg6 >= 7){
moveAngle = ((_arg4 + _arg3) - 90);
if (moveAngle > 360){
moveAngle = (moveAngle - 360);
};
x = (_arg1 + (30 * Math.cos((Math.PI * (moveAngle / 180)))));
y = (_arg2 + (30 * Math.sin((Math.PI * (moveAngle / 180)))));
} else {
moveAngle = _arg3;
x = (_arg1 + (_arg5 * Math.cos((Math.PI * (moveAngle / 180)))));
y = (_arg2 + (_arg5 * Math.sin((Math.PI * (moveAngle / 180)))));
};
bulletStrength = ((40 + (_arg6 * 3)) - (_arg8 * 2));
bulletGraphic.gotoAndStop(_arg6);
scaleX = (scaleY = (0.5 + (0.5 * ((_arg6 / 20) + (0.5 / _arg7)))));
addEventListener("enterFrame", clipMove);
}
public function clipMove(_arg1:Event):void{
if (gamePaused == false){
if (alive == true){
if (accel < 10){
accel = (accel + 0.2);
};
x = (x + ((speed + accel) * Math.cos((Math.PI * (moveAngle / 180)))));
y = (y + ((speed + accel) * Math.sin((Math.PI * (moveAngle / 180)))));
} else {
this.play();
if (currentFrame == totalFrames){
removeSelf();
};
};
};
if ((((((((x < -10)) || ((x > 560)))) || ((y < -10)))) || ((y > 410)))){
removeSelf();
};
}
function frame1(){
stop();
}
public function removeSelf():void{
parent.removeChild(this);
this.removeEventListener("enterFrame", clipMove);
}
}
}//package
Section 49
//drums (drums)
package {
import flash.media.*;
public dynamic class drums extends Sound {
}
}//package
Section 50
//Enemy (Enemy)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class Enemy extends MovieClip {
public var satanAngle:Number;// = 90
var weaponStrengthArray:Array;
public var weaponAngle:Number;
var weaponRotateArray:Array;
public var satanX:Number;// = 200
public var satanY:Number;// = 200
public var angleMove:Number;// = 0
public var xAccel:Number;// = 0
public var sheilded:Boolean;// = false
var healthArray:Array;
public var bulletShoot:Boolean;// = false
public var angleChange:Number;// = 0.1
public var health:Number;
public var hBack:MovieClip;
var angleArray:Array;
public var weaponStrength:Number;// = 0
public var bulletTimer:Number;
public var moveAngle:Number;
public var weaponRotate:Number;// = 0
public var weaponType:Number;// = 0
var weaponArray:Array;
public var hFront:MovieClip;
public var frozen:Boolean;// = false
var bulletDelay:Array;
public var enemyInner:MovieClip;
public var alive:Boolean;// = true
public var gamePaused:Boolean;// = false
public var enemyType:int;// = 0
public var totalHealth:Number;// = 100
public var yAccel:Number;// = 0
public function Enemy(_arg1:int, _arg2:Boolean):void{
gamePaused = false;
alive = true;
frozen = false;
xAccel = 0;
yAccel = 0;
enemyType = 0;
sheilded = false;
moveAngle = (Math.random() * 360);
weaponAngle = (Math.random() * 360);
healthArray = new Array(75, 150, 225, 300, 375, 450, 525, 600, 675, 750);
angleArray = new Array(0, 0, 2, 3, 1, 2, 0, 0, 0, 0);
weaponArray = new Array(0, 0, 0, 0, 1, 1, 2, 2, 3, 3);
weaponStrengthArray = new Array(0, 0, 0, 0, 0, 0, 50, 70, 60, 80);
weaponRotateArray = new Array(0, 0, 0, 0, 2, -3, 0.5, -1, 0, 0);
bulletDelay = new Array(150, 150, 140, 140, 130, 130, 120, 120, 100, 100);
weaponType = 0;
weaponRotate = 0;
weaponStrength = 0;
satanX = 200;
satanY = 200;
satanAngle = 90;
angleMove = 0;
angleChange = 0.1;
bulletTimer = Math.ceil((Math.random() * 50));
bulletShoot = false;
totalHealth = 100;
health = totalHealth;
super();
enemyType = Math.ceil((Math.random() * (_arg1 + 0.5)));
if (enemyType > healthArray.length){
enemyType = Math.ceil((Math.random() * healthArray.length));
};
enemyInner.gotoAndStop(((enemyType * 30) - 29));
weaponType = weaponArray[(enemyType - 1)];
weaponRotate = weaponRotateArray[(enemyType - 1)];
weaponStrength = weaponStrengthArray[(enemyType - 1)];
totalHealth = (health = healthArray[(enemyType - 1)]);
if (_arg2 == true){
sheilded = true;
enemyInner.sheild.alpha = 1;
} else {
sheilded = false;
enemyInner.sheild.alpha = 0;
};
scaleX = (scaleY = (1 / (1 + (_arg1 / 10))));
if (Math.random() > 0.5){
if ((((moveAngle < 90)) || ((moveAngle > 270)))){
x = -50;
if (moveAngle < 90){
y = (400 - ((moveAngle + 90) * (400 / 180)));
} else {
y = (400 - ((moveAngle - 270) * (400 / 180)));
};
} else {
x = 450;
y = ((moveAngle - 90) * (400 / 180));
};
} else {
if (moveAngle < 180){
y = -50;
x = (moveAngle * (400 / 180));
} else {
y = 450;
x = (400 - ((moveAngle - 180) * (400 / 180)));
};
};
angleMove = (angleArray[(enemyType - 1)] - (Math.random() * (angleArray[(enemyType - 1)] * 2)));
enemyInner.alpha = 0;
addEventListener("enterFrame", clipMove);
}
public function removeSelf():void{
parent.removeChild(this);
this.removeEventListener("enterFrame", clipMove);
}
public function clipMove(_arg1:Event):void{
var _local2:ColorTransform;
if (gamePaused == false){
enemyInner.enemySprite.play();
if (enemyInner.currentFrame > ((enemyType * 30) - 29)){
enemyInner.play();
enemyInner.weapon.play();
enemyInner.sheild.play();
if (weaponType == 1){
enemyInner.spinner.blade.play();
};
if ((((weaponType == 2)) || ((weaponType == 3)))){
enemyInner.weapon.blade.play();
};
};
if (enemyInner.alpha < 1){
enemyInner.alpha = (enemyInner.alpha + 0.1);
};
if (frozen == false){
moveAngle = (moveAngle + angleMove);
angleMove = (angleMove + angleChange);
if ((((angleMove < -(angleArray[(enemyType - 1)]))) || ((angleMove > angleArray[(enemyType - 1)])))){
angleChange = -(angleChange);
};
enemyInner.rotation = (moveAngle - 90);
if (weaponType == 1){
enemyInner.spinner.rotation = (enemyInner.spinner.rotation + weaponRotate);
enemyInner.spinner.blade.rotation = (enemyInner.spinner.blade.rotation - (weaponRotate * 5));
};
};
_local2 = new ColorTransform();
if ((((frozen == true)) && ((alive == true)))){
_local2.color = 0xFF0000;
this.transform.colorTransform = _local2;
} else {
this.transform.colorTransform = _local2;
};
if (health > 0){
bulletTimer = (bulletTimer + 1);
if (weaponType == 3){
satanAngle = Math.atan(((satanY - y) / (satanX - x)));
satanAngle = (satanAngle * (180 / Math.PI));
satanAngle = (satanAngle + 90);
if (satanX < x){
satanAngle = (satanAngle + 180);
};
weaponAngle = (satanAngle - moveAngle);
} else {
if (weaponType == 2){
weaponAngle = (weaponAngle - weaponRotate);
};
};
if (weaponAngle < 0){
weaponAngle = (weaponAngle + 360);
};
enemyInner.weapon.rotation = weaponAngle;
if (bulletTimer > (bulletDelay[(enemyType - 1)] - 50)){
enemyInner.weapon.gotoAndStop(((bulletTimer + 50) - bulletDelay[(enemyType - 1)]));
} else {
enemyInner.weapon.gotoAndStop(1);
};
if (bulletTimer == bulletDelay[(enemyType - 1)]){
bulletTimer = 0;
bulletShoot = true;
};
x = (x + (3 * Math.cos((Math.PI * (moveAngle / 180)))));
y = (y + (3 * Math.sin((Math.PI * (moveAngle / 180)))));
} else {
if (alive == false){
hFront.alpha = 0;
hBack.alpha = 0;
enemyInner.play();
if (weaponType == 1){
enemyInner.spinner.play();
enemyInner.spinner.blade.play();
};
if ((((weaponType == 2)) || ((weaponType == 3)))){
if (enemyInner.weapon.currentFrame > 1){
enemyInner.weapon.gotoAndStop(1);
};
enemyInner.weapon.blade.play();
} else {
enemyInner.weapon.alpha = 0;
};
bulletTimer = 0;
};
};
} else {
enemyInner.stop();
enemyInner.enemySprite.stop();
enemyInner.sheild.stop();
enemyInner.weapon.stop();
if (weaponType == 1){
enemyInner.spinner.blade.stop();
};
if ((((weaponType == 2)) || ((weaponType == 3)))){
enemyInner.weapon.blade.stop();
};
};
this.hFront.scaleX = (health / totalHealth);
if ((health / totalHealth) < 0){
this.hFront.scaleX = 0;
};
if ((((((((((x < -50)) || ((x > 600)))) || ((y < -50)))) || ((y > 450)))) || ((enemyInner.currentFrame == (enemyType * 30))))){
removeSelf();
};
}
}
}//package
Section 51
//hub_display (hub_display)
package {
import flash.display.*;
public dynamic class hub_display extends MovieClip {
public var buttonCredits:MovieClip;
public var buttonHighscore:MovieClip;
public var titleLogo:MovieClip;
public var barBottom:MovieClip;
public var pauseText:MovieClip;
public var tutorial:MovieClip;
public var tutorialCheck:MovieClip;
public var barTop:MovieClip;
public var infoBox2:MovieClip;
public var infoBox4:MovieClip;
public var infoBox5:MovieClip;
public var infoBox6:MovieClip;
public var infoBox0:MovieClip;
public var infoBox3:MovieClip;
public var credits:MovieClip;
public var infoBox1:MovieClip;
public var buttonPlay:MovieClip;
public var buttonHelp:MovieClip;
public var gameover:MovieClip;
}
}//package
Section 52
//note_a (note_a)
package {
import flash.media.*;
public dynamic class note_a extends Sound {
}
}//package
Section 53
//note_b (note_b)
package {
import flash.media.*;
public dynamic class note_b extends Sound {
}
}//package
Section 54
//note_c (note_c)
package {
import flash.media.*;
public dynamic class note_c extends Sound {
}
}//package
Section 55
//note_d (note_d)
package {
import flash.media.*;
public dynamic class note_d extends Sound {
}
}//package
Section 56
//note_e (note_e)
package {
import flash.media.*;
public dynamic class note_e extends Sound {
}
}//package
Section 57
//note_f (note_f)
package {
import flash.media.*;
public dynamic class note_f extends Sound {
}
}//package
Section 58
//note_g (note_g)
package {
import flash.media.*;
public dynamic class note_g extends Sound {
}
}//package
Section 59
//Point_collect (Point_collect)
package {
import flash.events.*;
import flash.display.*;
public class Point_collect extends MovieClip {
public var magnetzone:MovieClip;
public var pointTimer:Number;// = 150
public var startAngle:Number;
public var radiusZoom:Number;// = 2
public var pointInner:MovieClip;
public var pointValue:Number;// = 0
public var alive:Boolean;// = true
public var gamePaused:Boolean;// = false
public var accel:Number;// = 3
public function Point_collect(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int):void{
gamePaused = false;
alive = true;
pointTimer = 150;
pointValue = 0;
startAngle = (Math.random() * 360);
accel = 3;
radiusZoom = 2;
super();
addFrameScript(0, frame1);
pointValue = _arg3;
radiusZoom = _arg4;
accel = (_arg5 + 2);
scaleX = (scaleY = ((1 / (1 + (_arg4 / 10))) * (0.75 + (_arg3 / 4))));
x = _arg1;
y = _arg2;
alpha = 0;
addEventListener("enterFrame", clipMove);
}
public function clipMove(_arg1:Event):void{
if (gamePaused == false){
pointInner.play();
if (pointTimer > 0){
pointTimer = (pointTimer - 1);
if (alpha < 1){
alpha = (alpha + 0.1);
};
} else {
if (alpha > 0){
alpha = (alpha - 0.1);
} else {
removeSelf();
};
};
if (alive == true){
if (accel > 0){
accel = (accel - 0.1);
};
x = (x + ((accel * Math.cos((Math.PI * (startAngle / 180)))) / (1 + (radiusZoom / 20))));
y = (y + ((accel * Math.sin((Math.PI * (startAngle / 180)))) / (1 + (radiusZoom / 20))));
} else {
if (currentFrame == totalFrames){
removeSelf();
};
};
} else {
pointInner.stop();
};
}
function frame1(){
stop();
}
public function removeSelf():void{
parent.removeChild(this);
this.removeEventListener("enterFrame", clipMove);
}
}
}//package
Section 60
//red_back (red_back)
package {
import flash.display.*;
public dynamic class red_back extends MovieClip {
public function red_back(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 61
//Satan (Satan)
package {
import flash.events.*;
import flash.display.*;
public class Satan extends MovieClip {
public var totalHealth:Number;
public var powerBlast:int;
public var xMouse:int;// = 0
public var rootAlive:Boolean;
public var triPower:MovieClip;
public var keyRightArrow:Boolean;// = false
public var mouseAngle:Number;// = 0
public var scoreLevel:int;
public var xAccel:Number;
public var sheilded:int;
public var speed:Number;
public var shooting:Boolean;// = false
public var health:Number;
public var hBack:MovieClip;
public var keyLetterA:Boolean;// = false
public var walking:Boolean;
public var keyLetterS:Boolean;// = false
public var keyLetterD:Boolean;// = false
public var keyLetterW:Boolean;// = false
public var keyLetterP:Boolean;// = false
public var hFront:MovieClip;
public var yMouse:int;// = 0
public var frozen:Boolean;
public var keyLeftArrow:Boolean;// = false
public var gamePaused:Boolean;// = false
public var currentLevel:int;
public var box:MovieClip;
public var satanGraphic:MovieClip;
public var keyUpArrow:Boolean;// = false
public var keyDownArrow:Boolean;// = false
public var gameOver:Boolean;// = false
public var yAccel:Number;
public var sheild:MovieClip;
public function Satan(){
gamePaused = false;
keyRightArrow = false;
keyUpArrow = false;
keyDownArrow = false;
keyLeftArrow = false;
keyLetterW = false;
keyLetterA = false;
keyLetterS = false;
keyLetterD = false;
keyLetterP = false;
xMouse = 0;
yMouse = 0;
mouseAngle = 0;
shooting = false;
gameOver = false;
super();
addFrameScript(0, frame1);
}
public function removeSelf():void{
parent.removeChild(this);
this.removeEventListener("enterFrame", clipMove);
}
public function clipMove(_arg1:Event):void{
if (gamePaused == false){
satanGraphic.satan.tail.play();
satanGraphic.satan.armRight.play();
sheild.play();
if (shooting == true){
speed = 0.8;
satanGraphic.satan.armLeft.gotoAndStop(2);
satanGraphic.satan.armLeft.arm.gem.gotoAndStop(2);
} else {
speed = 1.5;
satanGraphic.satan.armLeft.gotoAndStop(1);
satanGraphic.satan.armLeft.arm.gem.gotoAndStop(1);
};
scaleX = (scaleY = ((1 * (1 + (scoreLevel / 10))) / (1 + (currentLevel / 10))));
hFront.scaleX = (health / totalHealth);
if (health == 0){
frozen = true;
} else {
if (health < 100){
health = (health + 0.1);
hFront.alpha = 1;
hFront.alpha = 1;
} else {
hFront.alpha = 0;
hFront.alpha = 0;
};
};
if (sheilded == 0){
sheild.gotoAndStop(1);
sheild.alpha = 1;
} else {
triPower.sheildSpin.gotoAndStop(1);
if (sheilded < 50){
sheild.alpha = (1 - sheild.alpha);
};
sheilded = (sheilded - 1);
sheild.play();
};
if (powerBlast == 0){
triPower.gotoAndStop(1);
triPower.alpha = 1;
} else {
triPower.sheildSpin.gotoAndStop(2);
if (powerBlast < 50){
triPower.alpha = (1 - triPower.alpha);
};
powerBlast = (powerBlast - 1);
triPower.play();
};
if (frozen == true){
xAccel = 0;
yAccel = 0;
satanGraphic.rotation = (satanGraphic.rotation - 2);
satanGraphic.play();
powerBlast = 0;
if (satanGraphic.currentFrame == satanGraphic.totalFrames){
if (gameOver == true){
removeSelf();
} else {
frozen = false;
sheilded = 100;
rootAlive = true;
health = totalHealth;
satanGraphic.rotation = (satanGraphic.rotation - 0);
satanGraphic.gotoAndStop(1);
x = 200;
y = 200;
};
};
} else {
if ((((((keyLeftArrow == true)) || ((keyLetterA == true)))) && ((((keyRightArrow == false)) || ((keyLetterD == true)))))){
if (xAccel > -6){
xAccel = (xAccel - 2);
};
} else {
if ((((((keyRightArrow == true)) || ((keyLetterD == true)))) && ((((keyLeftArrow == false)) || ((keyLetterA == true)))))){
if (xAccel < 6){
xAccel = (xAccel + 2);
};
} else {
if (xAccel < 0){
xAccel = (xAccel + 1);
} else {
if (xAccel > 0){
xAccel = (xAccel - 1);
};
};
};
};
if ((((((keyUpArrow == true)) || ((keyLetterW == true)))) && ((((keyDownArrow == false)) || ((keyLetterS == true)))))){
if (yAccel > -6){
yAccel = (yAccel - 2);
};
} else {
if ((((((keyDownArrow == true)) || ((keyLetterS == true)))) && ((((keyUpArrow == false)) || ((keyLetterW == true)))))){
if (yAccel < 6){
yAccel = (yAccel + 2);
};
} else {
if (yAccel < 0){
yAccel = (yAccel + 1);
} else {
if (yAccel > 0){
yAccel = (yAccel - 1);
};
};
};
};
walking = false;
if ((((xAccel > 0)) && ((x < 390)))){
x = (x + (xAccel * speed));
walking = true;
};
if ((((xAccel < 0)) && ((x > 10)))){
x = (x + (xAccel * speed));
walking = true;
};
if ((((yAccel < 0)) && ((y > 10)))){
y = (y + (yAccel * speed));
walking = true;
};
if ((((yAccel > 0)) && ((y < 390)))){
y = (y + (yAccel * speed));
walking = true;
};
if (walking == true){
satanGraphic.satan.armRight.play();
} else {
satanGraphic.satan.armRight.stop();
};
mouseAngle = (Math.atan(((yMouse - y) / (xMouse - x))) * (180 / Math.PI));
if (x > xMouse){
satanGraphic.rotation = (mouseAngle - 90);
} else {
satanGraphic.rotation = (mouseAngle + 90);
};
};
} else {
satanGraphic.satan.tail.stop();
satanGraphic.satan.armRight.stop();
sheild.stop();
satanGraphic.stop();
};
}
public function spawnSelf(_arg1:int, _arg2:int):void{
this.addEventListener("enterFrame", clipMove);
x = _arg1;
y = _arg2;
gamePaused = false;
xAccel = 0;
yAccel = 0;
walking = false;
frozen = false;
sheilded = 100;
powerBlast = 0;
rootAlive = true;
scoreLevel = 1;
currentLevel = 1;
speed = 2;
totalHealth = 100;
health = totalHealth;
}
function frame1(){
stop();
}
}
}//package
Section 62
//Sheild (Sheild)
package {
import flash.events.*;
import flash.display.*;
public class Sheild extends MovieClip {
public var timer:int;// = 0
public var collected:Boolean;// = false
public var sheildRotate:MovieClip;
public var gamePaused:Boolean;// = false
public var powerType:int;// = 1
public function Sheild(_arg1):void{
gamePaused = false;
collected = false;
powerType = 1;
timer = 0;
super();
addFrameScript(0, frame1);
x = ((Math.random() * 300) + 50);
y = ((Math.random() * 300) + 50);
powerType = _arg1;
sheildRotate.sheildGraphic.gotoAndStop(powerType);
addEventListener("enterFrame", clipMove);
}
public function clipMove(_arg1:Event):void{
if (collected == false){
if (gamePaused == false){
sheildRotate.play();
timer = (timer + 1);
if (timer > 150){
if (alpha == 0){
alpha = 1;
} else {
alpha = 0;
};
};
} else {
sheildRotate.stop();
};
if (timer > 200){
removeSelf();
};
} else {
this.play();
if (currentFrame == totalFrames){
removeSelf();
};
};
}
function frame1(){
stop();
}
public function removeSelf():void{
parent.removeChild(this);
this.removeEventListener("enterFrame", clipMove);
}
}
}//package
Section 63
//tadaa (tadaa)
package {
import flash.media.*;
public dynamic class tadaa extends Sound {
}
}//package