STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/76665527?noj=FRM76665527-22DC" width="1" height="1"></div>

msoids.swf

This is the info page for
Flash #95192

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS3]
Section 1
//CMG_Logo_Animation_1 (msoids_fla.CMG_Logo_Animation_1) package msoids_fla { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.net.*; import flash.external.*; import flash.system.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.filters.*; import flash.printing.*; import flash.ui.*; import flash.xml.*; public dynamic class CMG_Logo_Animation_1 extends MovieClip { public var CMG_MonkeyBlink:MovieClip; public var CMG_HomePageLink:SimpleButton; public var monkeyBlinkCheckTimer:Timer; public var CMG_LoadingWidget:MovieClip; public function CMG_Logo_Animation_1(){ addFrameScript(0, frame1, 80, frame81, 81, frame82); } public function goToUrl(_arg1:String):void{ var success:Boolean; var url = _arg1; success = false; if (((ExternalInterface.available) && (!((Capabilities.playerType == "External"))))){ try { ExternalInterface.call("window.open", url, "win", ""); success = true; } catch(error:Error) { } catch(error:SecurityError) { }; }; if (success != true){ navigateToURL(new URLRequest(url), "_BLANK"); }; } function frame81(){ stop(); monkeyBlinkCheckTimer.addEventListener(TimerEvent.TIMER, onMonkeyBlinkCheckTimer); monkeyBlinkCheckTimer.start(); } function frame82(){ monkeyBlinkCheckTimer.stop(); MovieClip(parent).gotoAndStop(3); } public function onMouseUpHandler_CMGHomePageBtn(_arg1:MouseEvent):void{ goToUrl("http://www.crazymonkeygames.com"); } function frame1(){ MovieClip(parent).stop(); CMG_HomePageLink.addEventListener(MouseEvent.MOUSE_UP, onMouseUpHandler_CMGHomePageBtn); addEventListener(Event.ENTER_FRAME, onEnterFrameHandler_CMGLoader); monkeyBlinkCheckTimer = new Timer(800); } public function onEnterFrameHandler_CMGLoader(_arg1:Event):void{ var _local2:Number; var _local3:Number; _local2 = CMG_HomePageLink.stage.loaderInfo.bytesLoaded; _local3 = CMG_HomePageLink.stage.loaderInfo.bytesTotal; CMG_LoadingWidget.CMG_LoadingBar.bar.scaleX = (_local2 / _local3); if (_local2 == _local3){ CMG_LoadingWidget.nextFrame(); removeEventListener(Event.ENTER_FRAME, onEnterFrameHandler_CMGLoader); }; } public function onMonkeyBlinkCheckTimer(_arg1:TimerEvent):void{ var _local2:Number; _local2 = Math.random(); if (_local2 < 0.3){ CMG_MonkeyBlink.play(); }; } } }//package msoids_fla
Section 2
//CMG_monkey_blink_19 (msoids_fla.CMG_monkey_blink_19) package msoids_fla { import flash.display.*; public dynamic class CMG_monkey_blink_19 extends MovieClip { public function CMG_monkey_blink_19(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package msoids_fla
Section 3
//load_barMC_12 (msoids_fla.load_barMC_12) package msoids_fla { import flash.display.*; public dynamic class load_barMC_12 extends MovieClip { public var bar:MovieClip; } }//package msoids_fla
Section 4
//MainTimeline (msoids_fla.MainTimeline) package msoids_fla { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.net.*; import flash.external.*; import flash.system.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.filters.*; import flash.printing.*; import flash.ui.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public var startTimer:int; public var explosions:Array; public var texts2:Array; public var destColTurret:ColorTransform; public var scores:Array; public var shootSound:shoot; public var selector2:Sprite; public var white:whitefade; public var destColBG:ColorTransform; public var fireRate; public var selector1:Sprite; public var bg:Sprite; public var killCount; public var renderMode:String; public var myx; public var speed:int; public var myl; public var dspeed:Number; public var mys:String; public var g_UrlLoader:URLLoader; public var pressEnter:MovieClip; public var pupCol:ColorTransform; public var turretCol:ColorTransform; public var fireCount; public var score:int; public var destColPup:ColorTransform; public var savedata; public var explodeSound:explode; public var powerupTimer; public var pups:Array; public var playerCol:ColorTransform; public var player:Object; public var pupType:int; public var texts:Array; public var fps:FPS; public var maxSquares:int; public var squares:Array; public var bgCol:ColorTransform; public var textCol:ColorTransform; public var stageH:int; public var rapidFireTimer; public var playerName:String; public var stageW:int; public var squareCol:ColorTransform; public var currentSquares:int; public var timer:int; public var selector2ob:Object; public var cursor:Sprite; public var shooting; public var typeBit:typebit; public var delayTimer:int; public var tick:int; public var menuNum:int; public var bullets:Array; public var logo:MovieClip; public var holder:Sprite; public var downKeys:Object; public var cursorOb; public var gameState:String; public var selector1ob:Object; public var pickupSound:pickupsnd; public var destColPlayer:ColorTransform; public function MainTimeline(){ addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4); } public function mouseup(_arg1:MouseEvent):void{ var _local2:int; var _local3:int; shooting = false; if ((((gameState == "title")) && ((pressEnter.width >= 220)))){ if (menuNum == 1){ gameState = "game"; startTimer = 30; killCount = 70; _local2 = 0; while (_local2 < texts.length) { holder.removeChild(texts[_local2][0]); _local2++; }; texts = new Array(); draw_score(); initPlayer((stageW / 2), (stageH / 2), 30, 30); new_explosion(320, 240, 100, 100, 10); holder.removeChild(selector1); holder.removeChild(selector2); } else { if (menuNum == 2){ gameState = "instructions"; _local3 = 0; while (_local3 < texts.length) { holder.removeChild(texts[_local3][0]); _local3++; }; texts = new Array(); draw_text("instructions", 140, 40, 3, 1, 1); draw_text("move", 260, 110, 3, 0.7, 0.5); draw_text("wasd or arrow keys", 50, 150, 3, 0.5, 0.5); draw_text("shoot", 250, 220, 3, 0.7, 0.5); draw_text("left mouse button", 50, 260, 3, 0.5, 0.5); draw_text("change colours", 110, 330, 3, 0.7, 0.5); draw_text("space", 260, 370, 3, 0.5, 0.5); draw_text("menu", 270, 450, 3, 1, 1); selector1.x = 220; selector1.y = 450; selector2.x = 420; selector2.y = 450; } else { if (menuNum == 3){ goToUrl2("http://scores.crazymonkeygames.com/hs/listscores.php?id=296"); } else { if (menuNum == 4){ goToUrl2("http://www.crazymonkeygames.com"); }; }; }; }; } else { if ((((gameState == "instructions")) && ((pressEnter.width < 5)))){ endGame(true); } else { if (gameState == "gameover"){ if ((((menuNum == 1)) && ((mouseY > 360)))){ if (playerName.length > 0){ submitOurScore(playerName, score); score = 0; removeChild(typeBit); playerName = ""; endGame(true); }; } else { removeChild(typeBit); playerName = ""; score = 0; endGame(true); }; }; }; }; } public function traceDisplayList(_arg1:DisplayObjectContainer, _arg2:String=""):void{ var _local3:DisplayObject; var _local4:uint; _local4 = 0; while (_local4 < _arg1.numChildren) { _local3 = _arg1.getChildAt(_local4); trace(_arg2, _local3, _local3.name); if ((_arg1.getChildAt(_local4) is DisplayObjectContainer)){ traceDisplayList(DisplayObjectContainer(_local3), (_arg2 + " ")); }; _local4++; }; } public function movePlayer():void{ if ((((downKeys.key37 == true)) || ((downKeys.key65 == true)))){ if (player.x > (-(player.body.s.width) / 2)){ if ((((downKeys.key38 == true)) || ((downKeys.key87 == true)))){ if (player.y > (player.body.s.height / 2)){ player.y = (player.y - dspeed); player.x = (player.x - dspeed); } else { player.x = (player.x - speed); player.y = (player.body.s.height / 2); }; } else { if ((((downKeys.key40 == true)) || ((downKeys.key83 == true)))){ if (player.y < (stageH - (player.body.s.height / 2))){ player.y = (player.y + dspeed); player.x = (player.x - speed); } else { player.y = (stageH - (player.body.s.height / 2)); player.x = (player.x - speed); }; } else { player.x = (player.x - speed); }; }; } else { player.x = (-(player.body.s.width) / 2); }; } else { if ((((downKeys.key39 == true)) || ((downKeys.key68 == true)))){ if (player.x < (stageW + (player.body.s.width / 2))){ if ((((downKeys.key38 == true)) || ((downKeys.key87 == true)))){ if (player.y > (player.body.s.height / 2)){ player.y = (player.y - dspeed); player.x = (player.x + dspeed); } else { player.y = (player.body.s.height / 2); player.x = (player.x + speed); }; } else { if ((((downKeys.key40 == true)) || ((downKeys.key83 == true)))){ if (player.y < (stageH - (player.body.s.height / 2))){ player.y = (player.y + dspeed); player.x = (player.x + speed); } else { player.y = (stageH - (player.body.s.height / 2)); player.x = (player.x + speed); }; } else { player.x = (player.x + speed); }; }; } else { player.x = (stageW + (player.body.s.width / 2)); }; } else { if ((((downKeys.key38 == true)) || ((downKeys.key87 == true)))){ if (player.y > (player.body.s.height / 2)){ player.y = (player.y - speed); } else { player.y = (player.body.s.height / 2); }; } else { if ((((downKeys.key40 == true)) || ((downKeys.key83 == true)))){ if (player.y < (stageH - (player.body.s.height / 2))){ player.y = (player.y + speed); } else { player.y = (stageH - (player.body.s.height / 2)); }; }; }; }; }; player.body.s.x = player.x; player.body.s.y = player.y; player.turret.s.x = player.x; player.turret.s.y = player.y; } public function initPlayer(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{ var _local5:Sprite; var _local6:Sprite; _local5 = new Sprite(); _local5.x = _arg1; _local5.y = _arg2; holder.addChild(_local5); player.body = {s:_local5, w:_arg3, h:_arg4, col:playerCol.color, fill:0, r:0, rv:0}; _local6 = new Sprite(); _local6.x = _arg1; _local6.y = _arg2; holder.addChild(_local6); player.turret = {s:_local6, w:(_arg3 * 2.1), h:(_arg4 / 2.2), col:turretCol.color, fill:0, r:0, rv:0}; player.x = _arg1; player.y = _arg2; } public function mousemove(_arg1:MouseEvent):void{ if (gameState == "title"){ if ((((mouseY > 230)) && ((mouseY < 380)))){ if (mouseY > 350){ menuNum = 4; } else { if (mouseY > 310){ menuNum = 3; } else { if (mouseY > 270){ menuNum = 2; } else { menuNum = 1; }; }; }; }; } else { if (gameState == "gameover"){ if ((((mouseY > 380)) && ((mouseY < 500)))){ if (mouseY > 420){ menuNum = 2; } else { menuNum = 1; }; trace(menuNum); }; }; }; } public function new_pup(_arg1:int, _arg2:int, _arg3:String):void{ var _local4:Sprite; var _local5:Sprite; var _local6:Sprite; var _local7:Sprite; var _local8:Object; _local4 = new Sprite(); _local5 = new Sprite(); _local6 = new Sprite(); _local7 = new Sprite(); _local4.x = _arg1; _local4.y = _arg2; _local5.x = _arg1; _local5.y = _arg2; _local6.x = _arg1; _local6.y = _arg2; _local7.x = _arg1; _local7.y = _arg2; holder.addChild(_local4); holder.addChild(_local5); holder.addChild(_local6); holder.addChild(_local7); _local8 = {x:_arg1, y:_arg2, s1:{s:_local4, w:8, h:8, r:0, fill:0, col:pupCol.color, xv:0, yv:0}, s2:{s:_local5, w:8, h:8, r:0, fill:0, col:pupCol.color, xv:0, yv:0}, s3:{s:_local6, w:8, h:8, r:0, fill:0, col:pupCol.color, xv:0, yv:0}, txt:[_local7, _arg3.charCodeAt(0), 1, 3], col:pupCol.color, r:0, rv:5, dead:false, timer:200}; pups.push(_local8); } public function new_enemy(_arg1:int, _arg2:int, _arg3=-100, _arg4=-100):void{ var _local5:int; var _local6:int; var _local7:int; var _local8:int; var _local9:*; var _local10:Number; var _local11:Number; var _local12:int; currentSquares++; _local5 = (Math.random() * stageW); _local6 = (Math.random() * stageH); if (_arg3 == -100){ _local12 = Math.floor((Math.random() * 4)); if (_local12 == 0){ _arg3 = (-(_arg1) / 2); _arg4 = (Math.random() * stageH); } else { if (_local12 == 1){ _arg3 = (stageW + (_arg1 / 2)); _arg4 = (Math.random() * stageH); } else { if (_local12 == 2){ _arg3 = (Math.random() * stageH); _arg4 = (-(_arg2) / 2); } else { _arg3 = (Math.random() * stageH); _arg4 = (stageH + (_arg2 / 2)); }; }; }; }; _local7 = (_local5 - _arg3); _local8 = (_local6 - _arg4); _local9 = Math.atan2(_local8, _local7); _local10 = (Math.cos(_local9) * ((Math.random() * 5) + 3)); _local11 = (Math.sin(_local9) * ((Math.random() * 5) + 3)); new_square(_arg3, _arg4, _arg1, _arg2, 0, false, squareCol.color, _local10, _local11, ((Math.random() * 5) + 3)); } public function newPupCol(_arg1):void{ var _local2:int; _local2 = Math.floor((Math.random() * 6)); if (_local2 == 0){ _arg1.redOffset = 100; _arg1.greenOffset = 0xFF; _arg1.blueOffset = ((Math.random() * 155) + 100); } else { if (_local2 == 1){ _arg1.redOffset = 100; _arg1.greenOffset = ((Math.random() * 155) + 100); _arg1.blueOffset = 0xFF; } else { if (_local2 == 2){ _arg1.redOffset = 0xFF; _arg1.greenOffset = 100; _arg1.blueOffset = ((Math.random() * 155) + 100); } else { if (_local2 == 3){ _arg1.redOffset = 0xFF; _arg1.greenOffset = ((Math.random() * 155) + 100); _arg1.blueOffset = 100; } else { if (_local2 == 4){ _arg1.redOffset = ((Math.random() * 155) + 100); _arg1.greenOffset = 0xFF; _arg1.blueOffset = 100; } else { if (_local2 == 5){ _arg1.redOffset = ((Math.random() * 155) + 100); _arg1.greenOffset = 100; _arg1.blueOffset = 0xFF; }; }; }; }; }; }; } public function render_text(_arg1:Array){ if (_arg1[1] == 48){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((7 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-20 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-19 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-21 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 49){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-12 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-24 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((12 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 50){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-25 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 51){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-22 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-21 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-7 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((2 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-5 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 52){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-24 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-24 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 53){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((3 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-24 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-5 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-5 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((12 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((7 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((2 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-12 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 54){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((4 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-2 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((0 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-2 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-21 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 55){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-25 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-23 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((7 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-4 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((16 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((5 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-5 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-3 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 56){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-26 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-12 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-12 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((12 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((3 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-17 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-25 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 57){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((7 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-2 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-18 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-2 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-27 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((7 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-3 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 97){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((4 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 98){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-7 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-4 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-2 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 99){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-12 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((2 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 100){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-7 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 101){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-16 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((0 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-2 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((3 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 102){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((7 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((0 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 103){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-17 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-5 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((12 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((12 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((4 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 104){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-17 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((0 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 105){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((0 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((12 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 106){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((4 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-20 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((7 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((4 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-2 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((2 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 107){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-20 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-7 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((7 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-16 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((2 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((7 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 108){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-7 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-18 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 109){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((12 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-19 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-17 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 110){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-20 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-23 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 111){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-5 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-18 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((4 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((0 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-2 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-5 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-17 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 112){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-5 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((19 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-2 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-5 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 113){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((4 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((0 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((0 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((0 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-16 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((3 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 114){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-5 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((0 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((5 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 115){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((5 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-3 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 116){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-12 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((0 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-3 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 117){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-17 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-12 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((12 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 118){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 119){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-18 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((0 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((7 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-24 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 120){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-14 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((2 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((5 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-10 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 121){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-13 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-15 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-18 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-1 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-2 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((12 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); } else { if (_arg1[1] == 122){ _arg1[0].graphics.clear(); _arg1[0].graphics.lineStyle(1, textCol.color, 100); _arg1[0].graphics.moveTo((((-11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-12 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((7 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((-11 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((-6 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((9 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); _arg1[0].graphics.lineTo((((7 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2]), (((8 + (Math.random() * _arg1[3])) - (Math.random() * _arg1[3])) * _arg1[2])); }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; } public function draw_pressenter(_arg1:String, _arg2:int, _arg3:Number, _arg4:int){ var _local5:*; var _local6:Sprite; var _local7:*; _local5 = 0; while (_local5 < _arg1.length) { _local6 = new Sprite(); _local6.x = (-((((_arg1.length / 2) * 32) * _arg3)) + ((_local5 * 32) * _arg3)); _local6.y = (_arg4 - 15); _local7 = _arg1.charCodeAt(_local5); pressEnter.addChild(_local6); texts2.push([_local6, _local7, _arg3, _arg2]); _local5++; }; } public function draw_turret(_arg1:Object, _arg2:int, _arg3:int):void{ var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; _arg1.s.graphics.clear(); _arg1.s.graphics.lineStyle(1, _arg1.col, 100); if (_arg1.fill == 0){ _arg1.s.graphics.beginFill(_arg1.col, 100); }; _arg1.s.rotation = 0; _local4 = (-4 + ((Math.random() * _arg3) - ((Math.random() * _arg3) * 2))); _local5 = (_arg1.w + ((Math.random() * _arg3) - ((Math.random() * _arg3) * 2))); _local6 = (_arg1.w + ((Math.random() * _arg3) - ((Math.random() * _arg3) * 2))); _local7 = (-4 + ((Math.random() * _arg3) - ((Math.random() * _arg3) * 2))); _local8 = ((-(_arg1.h) / 2) + ((Math.random() * _arg3) - ((Math.random() * _arg3) * 2))); _local9 = ((-(_arg1.h) / 2) + ((Math.random() * _arg3) - ((Math.random() * _arg3) * 2))); _local10 = ((_arg1.h / 2) + ((Math.random() * _arg3) - ((Math.random() * _arg3) * 2))); _local11 = ((_arg1.h / 2) + ((Math.random() * _arg3) - ((Math.random() * _arg3) * 2))); _arg1.s.graphics.moveTo(_local4, _local8); _arg1.s.graphics.lineTo(_local5, _local9); _arg1.s.graphics.lineTo(_local6, _local10); _arg1.s.graphics.lineTo(_local7, _local11); _arg1.s.graphics.lineTo(_local4, _local8); _arg1.s.rotation = _arg1.r; if (_arg1.fill == 0){ _arg1.s.graphics.endFill(); }; } public function moveSquare(_arg1:Object):int{ _arg1.s.x = (_arg1.s.x + _arg1.xv); _arg1.s.y = (_arg1.s.y + _arg1.yv); if (_arg1.rv != 0){ _arg1.r = (_arg1.r + _arg1.rv); }; if (_arg1.s.x < ((-(_arg1.s.width) / 2) - 50)){ return (1); }; if (_arg1.s.x > ((stageW + (_arg1.s.width / 2)) + 50)){ return (1); }; if (_arg1.s.y > ((stageH + (_arg1.s.height / 2)) + 50)){ return (1); }; if (_arg1.s.x < ((-(_arg1.s.height) / 2) - 50)){ return (1); }; return (0); } function frame2(){ play(); } function frame4(){ stage.frameRate = 40; stage.showDefaultContextMenu = false; stage.quality = StageQuality.LOW; Mouse.hide(); fps = new FPS(10); stageW = 640; stageH = 480; downKeys = new Object(); tick = 0; score = 0; menuNum = 1; holder = new Sprite(); stage.addChild(holder); shooting = false; fireRate = 1.8; fireCount = 0; delayTimer = 0; startTimer = 30; maxSquares = 5; currentSquares = 64; speed = 8; dspeed = 8; playerName = ""; killCount = 70; gameState = "title"; renderMode = "normal"; savedata = SharedObject.getLocal("MSOIDS"); cursor = new Sprite(); cursorOb = {s:cursor, w:5, h:5, r:0, col:0xFFFFFF, fill:0}; textCol = new ColorTransform(); squareCol = new ColorTransform(); playerCol = new ColorTransform(); turretCol = new ColorTransform(); pupCol = new ColorTransform(); bgCol = new ColorTransform(); bgCol.redOffset = int((Math.random() * 0xFF)); bgCol.greenOffset = int((Math.random() * 0xFF)); bgCol.blueOffset = int((Math.random() * 0xFF)); destColBG = new ColorTransform(); destColPlayer = new ColorTransform(); destColTurret = new ColorTransform(); destColPup = new ColorTransform(); powerupTimer = 0; rapidFireTimer = 0; shootSound = new shoot(); explodeSound = new explode(); pickupSound = new pickupsnd(); bg = new Sprite(); addChild(bg); bg.graphics.beginFill(bgCol.color); bg.graphics.drawRect(0, 0, stageW, stageH); bg.graphics.endFill(); pressEnter = new MovieClip(); pressEnter.x = ((stageW / 2) + 10); pressEnter.y = 270; holder.addChild(pressEnter); squares = new Array(); texts = new Array(); texts2 = new Array(); scores = new Array(); explosions = new Array(); bullets = new Array(); pups = new Array(); pupType = 0; player = new Object(); selector1 = new Sprite(); selector1.x = 150; selector1ob = {s:selector1, w:5, h:5, r:0, fill:0, col:0, xv:0, yv:0, rv:0, dead:false}; selector2 = new Sprite(); selector2.x = 500; selector2ob = {s:selector2, w:5, h:5, r:0, fill:0, col:0, xv:0, yv:0, rv:0, dead:false}; holder.addChild(selector1); holder.addChild(selector2); typeBit = new typebit(); g_UrlLoader = null; newCol(squareCol); newCol(playerCol); newCol(turretCol); newPupCol(pupCol); newPupCol(destColPup); draw_logo(); if (savedata.data.best == undefined){ mys = "0"; } else { mys = String(savedata.data.best); }; myl = (mys.length + 3); myx = ((stageW / 2) - ((myl / 2) * 32)); draw_text(("hs " + mys), myx, 450, 3, 1, 0); draw_pressenter("play", 3, 0.6, 0); draw_pressenter("instructions", 3, 0.6, 40); draw_pressenter("high scores", 3, 0.6, 80); draw_pressenter("more games", 3, 0.6, 120); addEventListener(Event.ENTER_FRAME, update); stage.addEventListener(KeyboardEvent.KEY_DOWN, keypress); stage.addEventListener(KeyboardEvent.KEY_UP, keyup); stage.addEventListener(MouseEvent.MOUSE_DOWN, mousedown); stage.addEventListener(MouseEvent.MOUSE_UP, mouseup); stage.addEventListener(MouseEvent.MOUSE_MOVE, mousemove); addChild(cursor); white = new whitefade(); stage.addChild(white); } public function getLink(_arg1:MouseEvent):void{ goToUrl("http://www.cactus-soft.co.nr"); } function frame1(){ stage.frameRate = 30; stage.showDefaultContextMenu = false; } function frame3(){ stage.showDefaultContextMenu = false; stage.frameRate = 60; stop(); timer = 0; this.addEventListener(Event.ENTER_FRAME, updatelogo); logo.addEventListener(MouseEvent.MOUSE_UP, getLink); } public function draw_square(_arg1:Object, _arg2:int, _arg3:int):void{ var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; _arg1.s.graphics.clear(); _arg1.s.graphics.lineStyle(1, _arg1.col, 100); if (_arg1.fill == 0){ _arg1.s.graphics.beginFill(_arg1.col, 100); }; _arg1.s.rotation = 0; _local4 = ((-(_arg1.w) / 2) + ((Math.random() * _arg3) - ((Math.random() * _arg3) * 2))); _local5 = ((_arg1.w / 2) + ((Math.random() * _arg3) - ((Math.random() * _arg3) * 2))); _local6 = ((_arg1.w / 2) + ((Math.random() * _arg3) - ((Math.random() * _arg3) * 2))); _local7 = ((-(_arg1.w) / 2) + ((Math.random() * _arg3) - ((Math.random() * _arg3) * 2))); _local8 = ((-(_arg1.h) / 2) + ((Math.random() * _arg3) - ((Math.random() * _arg3) * 2))); _local9 = ((-(_arg1.h) / 2) + ((Math.random() * _arg3) - ((Math.random() * _arg3) * 2))); _local10 = ((_arg1.h / 2) + ((Math.random() * _arg3) - ((Math.random() * _arg3) * 2))); _local11 = ((_arg1.h / 2) + ((Math.random() * _arg3) - ((Math.random() * _arg3) * 2))); _arg1.s.graphics.moveTo(_local4, _local8); _arg1.s.graphics.lineTo(_local5, _local9); _arg1.s.graphics.lineTo(_local6, _local10); _arg1.s.graphics.lineTo(_local7, _local11); _arg1.s.graphics.lineTo(_local4, _local8); _arg1.s.rotation = _arg1.r; if (_arg1.fill == 0){ _arg1.s.graphics.endFill(); }; } public function new_bullet(_arg1, _arg2, _arg3):void{ var _local4:Sprite; var _local5:Number; var _local6:Number; var _local7:Object; _local4 = new Sprite(); _local4.x = _arg1; _local4.y = _arg2; holder.addChild(_local4); _local5 = (Math.cos((_arg3 * (Math.PI / 180))) * 30); _local6 = (Math.sin((_arg3 * (Math.PI / 180))) * 30); _local4.x = (_local4.x + (_local5 * 2)); _local4.y = (_local4.y + (_local6 * 2)); _local7 = {s:_local4, w:38, h:4, r:_arg3, fill:0, col:0xFFFF00, xv:_local5, yv:_local6, rv:0, dead:false}; bullets.push(_local7); } public function new_square(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:Boolean, _arg7, _arg8=0, _arg9=0, _arg10=0):void{ var _local11:Sprite; var _local12:Object; _local11 = new Sprite(); _local11.x = _arg1; if (_arg6 == true){ _local11.y = (_arg2 - 40); } else { _local11.y = _arg2; }; holder.addChild(_local11); _local12 = {s:_local11, w:_arg3, h:_arg4, r:0, fill:_arg5, col:_arg7, xv:_arg8, yv:_arg9, rv:_arg10, dead:false}; squares.push(_local12); } public function random(_arg1:int):int{ return (int((Math.random() * _arg1))); } public function gotoTitle(_arg1:Boolean):void{ var _local2:String; var _local3:*; var _local4:*; var _local5:int; traceDisplayList(stage); newCol(squareCol); newCol(playerCol); newCol(turretCol); bgCol.redOffset = (Math.random() * 0xFF); bgCol.greenOffset = (Math.random() * 0xFF); bgCol.blueOffset = (Math.random() * 0xFF); bg.graphics.beginFill(bgCol.color); bg.graphics.drawRect(0, 0, stageW, stageH); bg.graphics.endFill(); draw_logo(); trace(_arg1); if (_arg1 == false){ holder.addChild(selector1); holder.addChild(selector2); _local5 = 0; while (_local5 < squares.length) { squares[_local5].s.x = (squares[_local5].s.x - squares[_local5].xv); squares[_local5].s.y = (squares[_local5].s.y - squares[_local5].yv); _local5++; }; }; gameState = "title"; holder.addChild(pressEnter); draw_pressenter("play", 3, 0.6, 0); draw_pressenter("instructions", 3, 0.6, 40); draw_pressenter("high scores", 3, 0.6, 80); draw_pressenter("more games", 3, 0.6, 120); _local2 = String(savedata.data.best); _local3 = (_local2.length + 3); _local4 = ((stageW / 2) - ((_local3 / 2) * 32)); draw_text(("hs " + _local2), _local4, 450, 3, 1, 0); } public function mousedown(_arg1:MouseEvent):void{ shooting = true; } public function draw_scoresText(_arg1:String, _arg2:int, _arg3:int, _arg4:int, _arg5:Number, _arg6:Number){ var _local7:*; var _local8:Sprite; var _local9:*; _local7 = 0; while (_local7 < _arg1.length) { _local8 = new Sprite(); _local8.x = (_arg2 + (_local7 * 32)); _local8.y = _arg3; _local9 = _arg1.charCodeAt(_local7); holder.addChild(_local8); scores.push([_local8, _local9, _arg5, _arg4, _arg6]); _local7++; }; } public function checkPlayerHit(_arg1:Object):void{ var _local2:*; if ((((startTimer == 0)) && ((delayTimer == 0)))){ _local2 = (player.body.s.width / 2); if (_arg1.s.hitTestObject(player.body.s)){ if (_arg1.s.hitTestPoint((player.body.s.x - _local2), (player.body.s.y - _local2), true)){ if (powerupTimer == 0){ delayTimer = 30; new_explosion(player.body.s.x, player.body.s.y, 150, 150, 10); explodeSound.play(); holder.removeChild(player.body.s); holder.removeChild(player.turret.s); } else { _arg1.dead = true; }; } else { if (_arg1.s.hitTestPoint((player.body.s.x - _local2), (player.body.s.y + _local2), true)){ if (powerupTimer == 0){ delayTimer = 30; new_explosion(player.body.s.x, player.body.s.y, 150, 150, 10); explodeSound.play(); holder.removeChild(player.body.s); holder.removeChild(player.turret.s); } else { _arg1.dead = true; }; } else { if (_arg1.s.hitTestPoint((player.body.s.x + _local2), (player.body.s.y - _local2), true)){ if (powerupTimer == 0){ delayTimer = 30; new_explosion(player.body.s.x, player.body.s.y, 150, 150, 10); explodeSound.play(); holder.removeChild(player.body.s); holder.removeChild(player.turret.s); } else { _arg1.dead = true; }; } else { if (_arg1.s.hitTestPoint((player.body.s.x + _local2), (player.body.s.y + _local2), true)){ if (powerupTimer == 0){ delayTimer = 30; new_explosion(player.body.s.x, player.body.s.y, 150, 150, 10); explodeSound.play(); holder.removeChild(player.body.s); holder.removeChild(player.turret.s); } else { _arg1.dead = true; }; }; }; }; }; }; }; } public function update(_arg1:Event):void{ var _local2:int; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; var _local8:int; var _local9:int; var _local10:int; var _local11:int; var _local12:int; var _local13:Number; var _local14:int; var _local15:int; var _local16:int; var _local17:int; var _local18:int; var _local19:int; var _local20:int; if (white.currentFrame == 25){ white.gotoAndStop(1); stage.removeChild(white); }; if (gameState == "gameover"){ highlightSelected(); _local2 = 0; while (_local2 < scores.length) { holder.removeChild(scores[_local2][0]); _local2++; }; scores = new Array(); draw_scoresText(playerName, 170, 265, 3, 1, 1); typeBit.x = (155 + (playerName.length * 32)); }; if (gameState == "title"){ if (pressEnter.width < 220){ if (pressEnter.width > 0){ pressEnter.width = (pressEnter.width * 1.14); pressEnter.height = (pressEnter.height * 1.14); }; } else { if (pressEnter.width > 240){ pressEnter.width = 230; trace("boo"); pressEnter.height = 140; }; }; highlightSelected(); }; tick++; if (tick == 2){ newTextCol(); cursorOb.col = textCol.color; selector1ob.col = textCol.color; selector2ob.col = textCol.color; draw_square(cursorOb, 0, 3); if (pups.length > 0){ updatePup(); }; _local3 = 0; while (_local3 < squares.length) { draw_square(squares[_local3], 0, 2); _local3++; }; _local4 = 0; while (_local4 < texts.length) { render_text(texts[_local4]); _local4++; }; _local5 = 0; while (_local5 < texts2.length) { render_text(texts2[_local5]); _local5++; }; _local6 = 0; while (_local6 < scores.length) { render_text(scores[_local6]); _local6++; }; _local7 = 0; while (_local7 < bullets.length) { draw_square(bullets[_local7], 0, 3); _local7++; }; _local8 = 0; while (_local8 < explosions.length) { render_explosion(explosions[_local8]); if ((((explosions[_local8].lines <= 0)) || ((explosions[_local8].xspace <= 0)))){ holder.removeChild(explosions[_local8].mc); explosions.splice(_local8, 1); _local8--; }; _local8++; }; if (gameState == "game"){ draw_square(player.body, 0, 3); draw_turret(player.turret, 0, 3); }; tick = 0; }; if (gameState == "game"){ if (pups.length > 0){ colorTrans(pupCol, destColPup); pups[0].col = pupCol.color; pups[0].r = (pups[0].r + pups[0].rv); _local14 = (pups[0].x - player.body.s.x); _local15 = (pups[0].y - player.body.s.y); _local16 = ((_local14 * _local14) + (_local15 * _local15)); if (_local16 < 2500){ pickupSound.play(); holder.removeChild(pups[0].s1.s); holder.removeChild(pups[0].s2.s); holder.removeChild(pups[0].s3.s); holder.removeChild(pups[0].txt[0]); if (pups[0].txt[1] == 115){ powerupTimer = 200; } else { rapidFireTimer = 200; }; pups = new Array(); } else { pups[0].timer--; if (pups[0].timer <= 0){ holder.removeChild(pups[0].s1.s); holder.removeChild(pups[0].s2.s); holder.removeChild(pups[0].s3.s); holder.removeChild(pups[0].txt[0]); pups = new Array(); }; }; }; if (powerupTimer > 0){ powerupTimer--; colorTrans(bgCol, destColBG); bg.graphics.clear(); bg.graphics.beginFill(bgCol.color); bg.graphics.drawRect(0, 0, stageW, stageH); bg.graphics.endFill(); colorTrans(playerCol, destColPlayer); colorTrans(turretCol, destColTurret); player.body.col = playerCol.color; player.turret.col = turretCol.color; }; if (startTimer > 0){ startTimer--; }; if (delayTimer == 0){ movePlayer(); } else { delayTimer--; if (delayTimer == 0){ GAMEOVER(); }; }; if ((((((Math.floor((Math.random() * 25)) == 0)) && ((delayTimer == 0)))) && ((startTimer == 0)))){ _local17 = ((Math.random() * 128) + 32); new_enemy(_local17, _local17); }; if (pressEnter.width >= 5){ pressEnter.width = (pressEnter.width * 0.86); pressEnter.height = (pressEnter.height * 0.86); if (pressEnter.width < 5){ _local18 = 0; while (_local18 < texts2.length) { pressEnter.removeChild(texts2[_local18][0]); _local18++; }; holder.removeChild(pressEnter); texts2 = new Array(); }; }; _local9 = 0; while (_local9 < squares.length) { if (squares[_local9].dead){ killCount++; if (killCount >= 100){ killCount = 0; if (pupType == 0){ new_pup(squares[_local9].s.x, squares[_local9].s.y, "s"); pupType = 1; } else { new_pup(squares[_local9].s.x, squares[_local9].s.y, "r"); pupType = 0; }; }; if (squares[_local9].s.width >= 64){ new_enemy((squares[_local9].s.width / 2), (squares[_local9].s.width / 2), squares[_local9].s.x, squares[_local9].s.y); new_enemy((squares[_local9].s.width / 2), (squares[_local9].s.width / 2), squares[_local9].s.x, squares[_local9].s.y); }; explodeSound.play(); score++; draw_score(); new_explosion(squares[_local9].s.x, squares[_local9].s.y, (squares[_local9].s.width * 2.5), (squares[_local9].s.height * 2.5), 10); holder.removeChild(squares[_local9].s); squares.splice(_local9, 1); _local9--; currentSquares--; } else { checkPlayerHit(squares[_local9]); }; if (moveSquare(squares[_local9]) == 1){ holder.removeChild(squares[_local9].s); squares.splice(_local9, 1); _local9--; currentSquares--; }; _local9++; }; _local10 = 0; while (_local10 < bullets.length) { if (moveSquare(bullets[_local10]) == 1){ bullets[_local10].dead = true; }; if (bullets[_local10].dead){ holder.removeChild(bullets[_local10].s); bullets.splice(_local10, 1); _local10--; } else { checkHit(bullets[_local10]); }; _local10++; }; _local11 = (stage.mouseX - player.x); _local12 = (stage.mouseY - player.y); _local13 = Math.atan2(_local12, _local11); player.turret.r = (_local13 * (180 / Math.PI)); player.turret.s.rotation = player.turret.r; if (((shooting) && ((delayTimer == 0)))){ if (rapidFireTimer > 0){ rapidFireTimer--; fireRate = 2; fireCount = fireRate; }; fireCount++; if (fireCount >= fireRate){ fireRate = (fireRate + 0.16); fireCount = 0; new_bullet(player.x, player.y, (_local13 * (180 / Math.PI))); shootSound.play(); }; } else { fireRate = 1.8; }; } else { if (gameState == "instructions"){ _local19 = 0; while (_local19 < squares.length) { if (moveSquare(squares[_local19]) == 1){ holder.removeChild(squares[_local19].s); squares.splice(_local19, 1); _local19--; currentSquares--; }; _local19++; }; if (pressEnter.width >= 5){ pressEnter.width = (pressEnter.width * 0.86); pressEnter.height = (pressEnter.height * 0.86); if (pressEnter.width < 5){ _local20 = 0; while (_local20 < texts2.length) { pressEnter.removeChild(texts2[_local20][0]); _local20++; }; holder.removeChild(pressEnter); texts2 = new Array(); }; }; selector1ob.col = textCol.color; selector2ob.col = textCol.color; draw_square(selector1ob, 0, 3); draw_square(selector2ob, 0, 3); }; }; cursor.x = stage.mouseX; cursor.y = stage.mouseY; fps.calculate(); } public function goToUrl2(_arg1:String):void{ var success:Boolean; var url = _arg1; success = false; if (((ExternalInterface.available) && (!((Capabilities.playerType == "External"))))){ try { ExternalInterface.call("window.open", url, "win", ""); success = true; } catch(error:Error) { } catch(error:SecurityError) { }; }; if (success != true){ navigateToURL(new URLRequest(url), "_BLANK"); }; } public function submitOurScore(_arg1:String, _arg2:uint):void{ var url_data:*; var url:URLRequest; var url_loader:URLLoader; var playerName = _arg1; var playerScore = _arg2; url_data = new URLVariables(); url_data.name = playerName; url_data.score = playerScore; url_data.gameId = "296"; url_data.gameVersion = "1.0"; url_data.key = (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((random(0).toString() + random(5).toString()) + random(4).toString()) + random(2).toString()) + random(5).toString()) + random(0).toString()) + random(4).toString()) + random(6).toString()) + random(7).toString()) + random(1).toString()) + random(9).toString()) + random(5).toString()) + random(4).toString()) + random(7).toString()) + random(8).toString()) + random(4).toString()) + random(3).toString()) + random(8).toString()) + random(1).toString()) + random(2).toString()) + random(2).toString()) + random(7).toString()) + random(1).toString()) + random(7).toString()) + random(3).toString()) + random(8).toString()) + random(3).toString()) + random(0).toString()) + random(2).toString()) + random(8).toString()) + random(6).toString()) + random(3).toString()) + random(3).toString()) + random(0).toString()) + random(6).toString()) + random(9).toString()) + random(0).toString()) + random(1).toString()) + random(5).toString()) + random(8).toString()) + random(3).toString()) + random(4).toString()) + random(3).toString()) + random(7).toString()) + random(2).toString()) + random(1).toString()) + random(2).toString()) + random(5).toString()) + random(0).toString()) + random(4).toString()) + random(8).toString()) + random(2).toString()) + random(1).toString()) + random(9).toString()) + random(0).toString()) + random(5).toString()) + random(8).toString()) + random(3).toString()) + random(5).toString()) + random(0).toString()) + random(2).toString()) + random(1).toString()) + random(4).toString()) + random(5).toString()) + random(1).toString()) + random(1).toString()) + random(4).toString()) + random(2).toString()) + random(2).toString()) + random(0).toString()) + random(0).toString()) + random(5).toString()) + random(5).toString()) + random(4).toString()) + random(2).toString()) + random(7).toString()) + random(6).toString()) + random(5).toString()) + random(3).toString()) + random(6).toString()) + random(9).toString()) + random(1).toString()) + random(8).toString()) + random(0).toString()) + random(1).toString()) + random(9).toString()) + random(5).toString()) + random(9).toString()) + random(3).toString()) + random(1).toString()) + random(0).toString()) + random(5).toString()) + random(2).toString()) + random(5).toString()) + random(1).toString()) + random(4).toString()) + random(6).toString()) + random(5).toString()) + random(6).toString()) + random(8).toString()) + random(6).toString()) + random(6).toString()) + random(4).toString()) + random(2).toString()) + random(0).toString()) + random(7).toString()) + random(0).toString()) + random(7).toString()) + random(2).toString()) + random(3).toString()) + random(3).toString()) + random(1).toString()) + random(5).toString()) + random(2).toString()) + random(1).toString()) + random(6).toString()) + random(1).toString()) + random(7).toString()) + random(6).toString()) + random(4).toString()) + random(8).toString()) + random(7).toString()) + random(0).toString()) + random(1).toString()) + random(2).toString()) + random(1).toString()) + random(5).toString()) + random(8).toString()); url = new URLRequest("http://scores.crazymonkeygames.com/hs/regscores.php"); url.method = URLRequestMethod.POST; url.data = url_data; url_loader = new URLLoader(); g_UrlLoader = url_loader; url_loader.addEventListener("complete", function (_arg1:Event){ var _local2:URLVariables; _local2 = new URLVariables(url_loader.data.replace("&", "")); if (_local2.ok == 1){ goToUrl2("http://scores.crazymonkeygames.com/hs/listscores.php?id=296"); } else { if (_local2.ok == 0){ } else { if (_local2.ok == 2){ goToUrl2("http://scores.crazymonkeygames.com/hs/pleaseupdate.php"); }; }; }; }); url_loader.addEventListener("ioError", function (_arg1:IOErrorEvent){ }); url_loader.load(url); } public function goToUrl(_arg1:String):void{ var success:Boolean; var url = _arg1; success = false; if (((ExternalInterface.available) && (!((Capabilities.playerType == "External"))))){ try { ExternalInterface.call("window.open", url, "win", ""); success = true; } catch(error:Error) { } catch(error:SecurityError) { }; }; if (success != true){ navigateToURL(new URLRequest(url), "_BLANK"); }; } public function colorTrans(_arg1:ColorTransform, _arg2:ColorTransform):void{ if ((((((_arg2.redOffset == 0)) && ((_arg2.blueOffset == 0)))) && ((_arg2.greenOffset == 0)))){ newCol(_arg2); }; if (_arg1.redOffset < _arg2.redOffset){ _arg1.redOffset = (_arg1.redOffset + 4); } else { if (_arg1.redOffset > _arg2.redOffset){ _arg1.redOffset = (_arg1.redOffset - 4); }; }; if (_arg1.blueOffset < _arg2.blueOffset){ _arg1.blueOffset = (_arg1.blueOffset + 4); } else { if (_arg1.blueOffset > _arg2.blueOffset){ _arg1.blueOffset = (_arg1.blueOffset - 4); }; }; if (_arg1.greenOffset < _arg2.greenOffset){ _arg1.greenOffset = (_arg1.greenOffset + 4); } else { if (_arg1.greenOffset > _arg2.greenOffset){ _arg1.greenOffset = (_arg1.greenOffset - 4); }; }; if ((((_arg1.redOffset <= (_arg2.redOffset + 2))) && ((_arg1.redOffset >= (_arg2.redOffset - 2))))){ _arg1.redOffset = _arg2.redOffset; }; if ((((_arg1.blueOffset <= (_arg2.blueOffset + 2))) && ((_arg1.blueOffset >= (_arg2.blueOffset - 2))))){ _arg1.blueOffset = _arg2.blueOffset; }; if ((((_arg1.greenOffset <= (_arg2.greenOffset + 2))) && ((_arg1.greenOffset >= (_arg2.greenOffset - 2))))){ _arg1.greenOffset = _arg2.greenOffset; }; if (_arg1.color == _arg2.color){ if (_arg1 == bgCol){ _arg2.redOffset = int((Math.random() * 0xFF)); _arg2.greenOffset = int((Math.random() * 0xFF)); _arg2.blueOffset = int((Math.random() * 0xFF)); } else { newCol(_arg2); }; }; } public function new_explosion(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int):void{ var _local6:Sprite; var _local7:Object; _local6 = new Sprite(); _local6.x = _arg1; _local6.y = _arg2; holder.addChild(_local6); _local7 = {mc:_local6, xspace:_arg3, yspace:_arg4, lines:_arg5}; explosions.push(_local7); } public function keypress(_arg1:KeyboardEvent):void{ var _local2:int; var _local3:String; if (_arg1.keyCode == 32){ newCol(squareCol); newCol(playerCol); newCol(turretCol); bgCol.redOffset = int((Math.random() * 0xFF)); bgCol.greenOffset = int((Math.random() * 0xFF)); bgCol.blueOffset = int((Math.random() * 0xFF)); bg.graphics.clear(); bg.graphics.beginFill(bgCol.color); bg.graphics.drawRect(0, 0, stageW, stageH); bg.graphics.endFill(); _local2 = 0; while (_local2 < squares.length) { if (squares[_local2].fill == 0){ squares[_local2].col = squareCol.color; }; _local2++; }; if (gameState == "game"){ player.body.col = playerCol.color; player.turret.col = turretCol.color; }; }; if (gameState == "gameover"){ if (_arg1.keyCode == 8){ playerName = playerName.slice(0, (playerName.length - 1)); } else { if ((((((_arg1.keyCode >= 65)) && ((_arg1.keyCode <= 90)))) || ((((_arg1.keyCode >= 48)) && ((_arg1.keyCode <= 57)))))){ _local3 = String.fromCharCode(_arg1.keyCode); playerName = (playerName + _local3.toLowerCase()); }; }; }; downKeys[("key" + _arg1.keyCode)] = true; } public function draw_text(_arg1:String, _arg2:int, _arg3:int, _arg4:int, _arg5:Number, _arg6:Number){ var _local7:*; var _local8:Sprite; var _local9:*; _local7 = 0; while (_local7 < _arg1.length) { _local8 = new Sprite(); _local8.x = (_arg2 + (_local7 * 32)); _local8.y = _arg3; _local9 = _arg1.charCodeAt(_local7); holder.addChild(_local8); texts.push([_local8, _local9, _arg5, _arg4, _arg6]); _local7++; }; } public function keyup(_arg1:KeyboardEvent):void{ downKeys[("key" + _arg1.keyCode)] = false; } public function newTextCol():void{ var _local1:int; _local1 = Math.floor((Math.random() * 6)); if (_local1 == 0){ textCol.redOffset = 100; textCol.greenOffset = 0xFF; textCol.blueOffset = ((Math.random() * 155) + 100); } else { if (_local1 == 1){ textCol.redOffset = 100; textCol.greenOffset = ((Math.random() * 155) + 100); textCol.blueOffset = 0xFF; } else { if (_local1 == 2){ textCol.redOffset = 0xFF; textCol.greenOffset = 100; textCol.blueOffset = ((Math.random() * 155) + 100); } else { if (_local1 == 3){ textCol.redOffset = 0xFF; textCol.greenOffset = ((Math.random() * 155) + 100); textCol.blueOffset = 100; } else { if (_local1 == 4){ textCol.redOffset = ((Math.random() * 155) + 100); textCol.greenOffset = 0xFF; textCol.blueOffset = 100; } else { if (_local1 == 5){ textCol.redOffset = ((Math.random() * 155) + 100); textCol.greenOffset = 100; textCol.blueOffset = 0xFF; }; }; }; }; }; }; } public function endGame(_arg1:Boolean=false):void{ var _local2:int; var _local3:int; var _local4:int; var _local5:int; explodeSound.play(); _local2 = 0; while (_local2 < squares.length) { new_explosion(squares[_local2].s.x, squares[_local2].s.y, (squares[_local2].s.width * 2), (squares[_local2].s.height * 2), 10); holder.removeChild(squares[_local2].s); _local2++; }; squares = new Array(); _local3 = 0; while (_local3 < scores.length) { holder.removeChild(scores[_local3][0]); _local3++; }; scores = new Array(); _local4 = 0; while (_local4 < bullets.length) { holder.removeChild(bullets[_local4].s); _local4++; }; _local5 = 0; while (_local5 < texts.length) { holder.removeChild(texts[_local5][0]); _local5++; }; texts = new Array(); if (pups.length > 0){ holder.removeChild(pups[0].s1.s); holder.removeChild(pups[0].s2.s); holder.removeChild(pups[0].s3.s); holder.removeChild(pups[0].txt[0]); pups = new Array(); }; bullets = new Array(); shooting = false; if ((((score > savedata.data.best)) || ((savedata.data.best == undefined)))){ savedata.data.best = score; savedata.flush(); }; score = 0; killCount = 0; powerupTimer = 0; rapidFireTimer = 0; delayTimer = 0; startTimer = 30; pupType = 0; gotoTitle(_arg1); } public function highlightSelected():void{ if (gameState == "title"){ if (menuNum == 1){ selector1.y = 260; selector2.y = 260; selector1.x = 260; selector2.x = 370; } else { if (menuNum == 2){ selector1.y = 295; selector2.y = 295; selector1.x = 170; selector2.x = 470; } else { if (menuNum == 3){ selector1.y = 335; selector2.y = 335; selector1.x = 180; selector2.x = 460; } else { selector1.y = 372; selector2.y = 372; selector1.x = 195; selector2.x = 445; }; }; }; } else { if (gameState == "gameover"){ if (menuNum == 1){ selector1.y = 380; selector2.y = 380; selector1.x = 105; selector2.x = 535; } else { if (menuNum == 2){ selector1.y = 440; selector2.y = 440; selector1.x = 245; selector2.x = 395; }; }; }; }; draw_square(selector1ob, 0, 3); draw_square(selector2ob, 0, 3); } public function checkHit(_arg1:Object):void{ var _local2:int; _local2 = 0; while (_local2 < squares.length) { if (((((squares[_local2].s.hitTestPoint(_arg1.s.x, _arg1.s.y, true)) || (squares[_local2].s.hitTestPoint((_arg1.s.x + _arg1.xv), (_arg1.s.y + _arg1.yv), true)))) || (squares[_local2].s.hitTestPoint((_arg1.s.x - _arg1.xv), (_arg1.s.y - _arg1.yv), true)))){ squares[_local2].dead = true; _arg1.dead = true; }; _local2++; }; } public function updatePup():void{ var _local1:*; var _local2:*; var _local3:*; var _local4:*; _local1 = pups[0]; _local1.s1.col = _local1.col; _local1.s2.col = _local1.col; _local1.s3.col = _local1.col; _local2 = (_local1.r * (Math.PI / 180)); _local3 = ((_local1.r + 120) * (Math.PI / 180)); _local4 = ((_local1.r + 240) * (Math.PI / 180)); _local1.s1.s.x = (_local1.x + (Math.cos(_local2) * 20)); _local1.s1.s.y = (_local1.y + (Math.sin(_local2) * 20)); _local1.s2.s.x = (_local1.x + (Math.cos(_local3) * 20)); _local1.s2.s.y = (_local1.y + (Math.sin(_local3) * 20)); _local1.s3.s.x = (_local1.x + (Math.cos(_local4) * 20)); _local1.s3.s.y = (_local1.y + (Math.sin(_local4) * 20)); draw_square(_local1.s1, 0, 2); draw_square(_local1.s2, 0, 2); draw_square(_local1.s3, 0, 2); render_text(_local1.txt); } public function render_explosion(_arg1:Object):void{ var _local2:int; var _local3:int; var _local4:*; var _local5:*; _arg1.mc.graphics.clear(); _arg1.mc.graphics.lineStyle(1, 0, 0); _arg1.lines = (_arg1.lines - 0.5); _arg1.xspace = (_arg1.xspace * 0.95); _arg1.yspace = (_arg1.yspace * 0.95); _local2 = 0; while (_local2 < (Math.random() * _arg1.lines)) { _local3 = Math.floor((Math.random() * 3)); if (_local3 == 0){ _arg1.mc.graphics.beginFill(0xFF0000); } else { _arg1.mc.graphics.beginFill(0xFFFF00); }; _local4 = ((_arg1.xspace * 0.5) - (Math.random() * _arg1.xspace)); _local5 = ((_arg1.yspace * 0.5) - (Math.random() * _arg1.yspace)); _arg1.mc.graphics.moveTo(_local4, _local5); _arg1.mc.graphics.lineTo(((_arg1.xspace * 0.5) - (Math.random() * _arg1.xspace)), ((_arg1.yspace * 0.5) - (Math.random() * _arg1.yspace))); _arg1.mc.graphics.lineTo(((_arg1.xspace * 0.5) - (Math.random() * _arg1.xspace)), ((_arg1.yspace * 0.5) - (Math.random() * _arg1.yspace))); _arg1.mc.graphics.lineTo(((_arg1.xspace * 0.5) - (Math.random() * _arg1.xspace)), ((_arg1.yspace * 0.5) - (Math.random() * _arg1.yspace))); _arg1.mc.graphics.endFill(); _local2++; }; } public function newCol(_arg1:ColorTransform):void{ var _local2:int; _local2 = Math.floor((Math.random() * 3)); if (_local2 == 0){ _arg1.redOffset = int((Math.random() * 0xFF)); _arg1.greenOffset = 0xFF; _arg1.blueOffset = int((Math.random() * 0xFF)); } else { if (_local2 == 1){ _arg1.redOffset = int((Math.random() * 0xFF)); _arg1.greenOffset = int((Math.random() * 0xFF)); _arg1.blueOffset = 0xFF; } else { if (_local2 == 2){ _arg1.redOffset = 0xFF; _arg1.greenOffset = int((Math.random() * 0xFF)); _arg1.blueOffset = int((Math.random() * 0xFF)); }; }; }; } public function draw_logo():void{ new_square(68, 174, 32, 32, 0, true, squareCol.color, -17, -4); new_square(68, 174, 32, 32, 1, true, 0, -17, -4); new_square(68, 210, 32, 32, 0, true, squareCol.color, -17, -5); new_square(68, 210, 32, 32, 1, true, 0, -17, -5); new_square(68, 245, 32, 32, 0, true, squareCol.color, -20, 0); new_square(68, 245, 32, 32, 1, true, 0, -20, 0); new_square(165, 174, 32, 32, 0, true, squareCol.color, -17, -5); new_square(165, 174, 32, 32, 1, true, 0, -17, -5); new_square(165, 245, 32, 32, 0, true, squareCol.color, -18, -3); new_square(165, 245, 32, 32, 1, true, 0, -18, -3); new_square(86, 195, 32, 32, 0, true, squareCol.color, -20, 0); new_square(86, 195, 32, 32, 1, true, 0, -20, 0); new_square(150, 195, 32, 32, 0, true, squareCol.color, -17, -5); new_square(150, 195, 32, 32, 1, true, 0, -17, -5); new_square(118, 210, 32, 32, 0, true, squareCol.color, -19, -2); new_square(118, 210, 32, 32, 1, true, 0, -19, -2); new_square(165, 210, 32, 32, 0, true, squareCol.color, -18, -4); new_square(165, 210, 32, 32, 1, true, 0, -18, -4); new_square(245, 178, 32, 32, 0, true, squareCol.color, -15, -10); new_square(245, 178, 32, 32, 1, true, 0, -15, -10); new_square(213, 195, 32, 32, 0, true, squareCol.color, -17, -8); new_square(213, 195, 32, 32, 1, true, 0, -17, -8); new_square(245, 222, 32, 32, 0, true, squareCol.color, -18, -3); new_square(245, 222, 32, 32, 1, true, 0, -18, -3); new_square(213, 245, 32, 32, 0, true, squareCol.color, -20, 0); new_square(213, 245, 32, 32, 1, true, 0, -20, 0); new_square(292, 192, 32, 32, 0, true, squareCol.color, -10, -15); new_square(292, 192, 32, 32, 1, true, 0, -10, -15); new_square(325, 175, 32, 32, 0, true, squareCol.color, 0, -20); new_square(325, 175, 32, 32, 1, true, 0, 0, -20); new_square(292, 228, 32, 32, 0, true, squareCol.color, -16, -6); new_square(292, 228, 32, 32, 1, true, 0, -16, -6); new_square(357, 192, 32, 32, 0, true, squareCol.color, 11, -14); new_square(357, 192, 32, 32, 1, true, 0, 11, -14); new_square(357, 228, 32, 32, 0, true, squareCol.color, 16, -6); new_square(357, 228, 32, 32, 1, true, 0, 16, -6); new_square(325, 245, 32, 32, 0, true, squareCol.color, 20, 0); new_square(325, 245, 32, 32, 1, true, 0, 20, 0); new_square(405, 175, 32, 32, 0, true, squareCol.color, 14, -10); new_square(405, 175, 32, 32, 1, true, 0, 14, -10); new_square(405, 208, 32, 32, 0, true, squareCol.color, 17, -4); new_square(405, 208, 32, 32, 1, true, 0, 17, -4); new_square(405, 243, 32, 32, 0, true, squareCol.color, 20, 0); new_square(405, 243, 32, 32, 1, true, 0, 20, 0); new_square(453, 175, 32, 32, 0, true, squareCol.color, 16, -7); new_square(453, 175, 32, 32, 1, true, 0, 16, -7); new_square(453, 208, 32, 32, 0, true, squareCol.color, 18, -3); new_square(453, 208, 32, 32, 1, true, 0, 18, -3); new_square(453, 243, 32, 32, 0, true, squareCol.color, 19, -1); new_square(453, 243, 32, 32, 1, true, 0, 19, -1); new_square(485, 175, 32, 32, 0, true, squareCol.color, 17, -4); new_square(485, 175, 32, 32, 1, true, 0, 17, -4); new_square(485, 243, 32, 32, 0, true, squareCol.color, 20, 0); new_square(485, 243, 32, 32, 1, true, 0, 20, 0); new_square(518, 192, 32, 32, 0, true, squareCol.color, 18, -2); new_square(518, 192, 32, 32, 1, true, 0, 18, -2); new_square(518, 225, 32, 32, 0, true, squareCol.color, 20, -1); new_square(518, 225, 32, 32, 1, true, 0, 20, -1); new_square(595, 178, 32, 32, 0, true, squareCol.color, 19, -2); new_square(595, 178, 32, 32, 1, true, 0, 19, -2); new_square(563, 195, 32, 32, 0, true, squareCol.color, 20, -1); new_square(563, 195, 32, 32, 1, true, 0, 20, -1); new_square(595, 222, 32, 32, 0, true, squareCol.color, 20, 0); new_square(595, 222, 32, 32, 1, true, 0, 20, 0); new_square(563, 245, 32, 32, 0, true, squareCol.color, 20, 0); new_square(563, 245, 32, 32, 1, true, 0, 20, 0); } public function GAMEOVER():void{ var _local1:int; var _local2:int; var _local3:int; var _local4:int; var _local5:String; var _local6:*; var _local7:*; explodeSound.play(); gameState = "gameover"; addChild(typeBit); holder.addChild(selector1); holder.addChild(selector2); selector1.y = 380; selector2.y = 380; selector1.x = 105; selector2.x = 535; typeBit.x = 155; typeBit.y = 260; _local1 = 0; while (_local1 < squares.length) { new_explosion(squares[_local1].s.x, squares[_local1].s.y, (squares[_local1].s.width * 2), (squares[_local1].s.height * 2), 10); holder.removeChild(squares[_local1].s); _local1++; }; squares = new Array(); _local2 = 0; while (_local2 < scores.length) { holder.removeChild(scores[_local2][0]); _local2++; }; scores = new Array(); _local3 = 0; while (_local3 < bullets.length) { holder.removeChild(bullets[_local3].s); _local3++; }; _local4 = 0; while (_local4 < texts.length) { holder.removeChild(texts[_local4][0]); _local4++; }; texts = new Array(); if (pups.length > 0){ holder.removeChild(pups[0].s1.s); holder.removeChild(pups[0].s2.s); holder.removeChild(pups[0].s3.s); holder.removeChild(pups[0].txt[0]); pups = new Array(); }; bullets = new Array(); shooting = false; if ((((score > savedata.data.best)) || ((savedata.data.best == undefined)))){ savedata.data.best = score; savedata.flush(); }; killCount = 0; powerupTimer = 0; rapidFireTimer = 0; delayTimer = 0; startTimer = 30; pupType = 0; _local5 = String(score); _local6 = (_local5.length + 2); _local7 = ((stageW / 2) - ((_local6 / 2) * 32)); draw_text("game over", 190, 50, 3, 1.2, 0.5); draw_text(("s " + score), _local7, 140, 3, 1, 0); draw_text("enter name", 170, 200, 3, 0.8, 0.5); draw_text("submit score", 145, 380, 3, 0.6, 0.5); draw_text("menu", 275, 440, 3, 0.6, 0.5); new_square(320, 260, 350, 50, 1, false, 0); } public function draw_score():void{ var _local1:int; var _local2:String; var _local3:int; var _local4:int; _local1 = 0; while (_local1 < scores.length) { holder.removeChild(scores[_local1][0]); _local1++; }; scores = new Array(); _local2 = String(score); _local3 = (_local2.length + 2); _local4 = ((stageW / 2) - ((_local3 / 2) * 32)); draw_scoresText(("s " + _local2), _local4, 450, 3, 1, 0); } public function updatelogo(_arg1:Event):void{ timer++; if (timer > 400){ this.removeEventListener(Event.ENTER_FRAME, updatelogo); logo.removeEventListener(MouseEvent.CLICK, getLink); nextFrame(); }; } } }//package msoids_fla
Section 5
//Preloader_2 (msoids_fla.Preloader_2) package msoids_fla { import flash.events.*; import flash.display.*; public dynamic class Preloader_2 extends MovieClip { public var CMG_LoadingBar:MovieClip; public var play_btn:SimpleButton; public function Preloader_2(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ play_btn.addEventListener(MouseEvent.MOUSE_UP, onMouseUpHandler_CMGPlayBtn); } public function onMouseUpHandler_CMGPlayBtn(_arg1:MouseEvent):void{ MovieClip(parent).gotoAndStop(82); } } }//package msoids_fla
Section 6
//explode (explode) package { import flash.media.*; public dynamic class explode extends Sound { } }//package
Section 7
//FPS (FPS) package { import flash.text.*; import flash.utils.*; public class FPS extends TextField { private var startTime:Number; private var numFrames:int; private var interval:int; public function FPS(_arg1:int){ background = true; autoSize = "left"; selectable = false; startTime = getTimer(); numFrames = 0; interval = _arg1; } public function calculate():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:String; if (++numFrames == interval){ _local1 = getTimer(); _local2 = ((_local1 - startTime) / 1000); _local3 = (numFrames / _local2); _local4 = _local3.toFixed(2); text = ("fps: " + _local4); startTime = _local1; numFrames = 0; }; } } }//package
Section 8
//musicloop (musicloop) package { import flash.media.*; public dynamic class musicloop extends Sound { } }//package
Section 9
//pickupsnd (pickupsnd) package { import flash.media.*; public dynamic class pickupsnd extends Sound { } }//package
Section 10
//shoot (shoot) package { import flash.media.*; public dynamic class shoot extends Sound { } }//package
Section 11
//typebit (typebit) package { import flash.display.*; public dynamic class typebit extends MovieClip { } }//package
Section 12
//whitefade (whitefade) package { import flash.display.*; public dynamic class whitefade extends MovieClip { } }//package

Library Items

Symbol 1 Sound {pickupsnd}
Symbol 2 Sound {shoot}
Symbol 3 Sound {explode}
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClipUses:4Used by:20
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:6Used by:20
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClipUses:8Used by:20
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClipUses:10Used by:20
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClipUses:12Used by:20
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClipUses:14Used by:20
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClipUses:16Used by:20
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClipUses:18Used by:20
Symbol 20 MovieClipUses:5 7 9 11 13 15 17 19Used by:37
Symbol 21 GraphicUsed by:25
Symbol 22 GraphicUsed by:23 41
Symbol 23 MovieClipUses:22Used by:25
Symbol 24 GraphicUsed by:25
Symbol 25 MovieClip {msoids_fla.load_barMC_12}Uses:21 23 24Used by:37
Symbol 26 GraphicUsed by:36
Symbol 27 GraphicUsed by:33
Symbol 28 GraphicUsed by:33
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:29Used by:31
Symbol 31 MovieClipUses:30Used by:33
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClipUses:27 28 31 32Used by:36
Symbol 34 GraphicUsed by:36
Symbol 35 GraphicUsed by:36
Symbol 36 ButtonUses:26 33 34 35Used by:37
Symbol 37 MovieClip {msoids_fla.Preloader_2}Uses:20 25 36Used by:54
Symbol 38 GraphicUsed by:54
Symbol 39 GraphicUsed by:54
Symbol 40 GraphicUsed by:54
Symbol 41 ButtonUses:22Used by:54
Symbol 42 SoundUsed by:54
Symbol 43 SoundUsed by:54
Symbol 44 GraphicUsed by:54
Symbol 45 GraphicUsed by:54
Symbol 46 GraphicUsed by:54
Symbol 47 SoundUsed by:54
Symbol 48 GraphicUsed by:54
Symbol 49 GraphicUsed by:54
Symbol 50 GraphicUsed by:53
Symbol 51 GraphicUsed by:53
Symbol 52 GraphicUsed by:53
Symbol 53 MovieClip {msoids_fla.CMG_monkey_blink_19}Uses:50 51 52Used by:54
Symbol 54 MovieClip {msoids_fla.CMG_Logo_Animation_1}Uses:37 38 39 40 41 42 43 44 45 46 47 48 49 53Used by:Timeline
Symbol 55 GraphicUsed by:56
Symbol 56 MovieClipUses:55Used by:57
Symbol 57 MovieClip {whitefade}Uses:56Used by:Timeline
Symbol 58 GraphicUsed by:63
Symbol 59 GraphicUsed by:63
Symbol 60 GraphicUsed by:63
Symbol 61 GraphicUsed by:63
Symbol 62 GraphicUsed by:63
Symbol 63 MovieClip {typebit}Uses:58 59 60 61 62Used by:Timeline
Symbol 64 Sound {musicloop}Used by:Timeline
Symbol 65 GraphicUsed by:66
Symbol 66 MovieClipUses:65Used by:67 68
Symbol 67 MovieClipUses:66Used by:75
Symbol 68 MovieClipUses:66Used by:75
Symbol 69 GraphicUsed by:75
Symbol 70 GraphicUsed by:75
Symbol 71 GraphicUsed by:75
Symbol 72 SoundUsed by:75
Symbol 73 GraphicUsed by:75
Symbol 74 GraphicUsed by:75
Symbol 75 MovieClipUses:67 68 69 70 71 72 73 74Used by:Timeline
Symbol 76 GraphicUsed by:Timeline

Instance Names

"logo"Frame 3Symbol 75 MovieClip
"bar"Symbol 25 MovieClip {msoids_fla.load_barMC_12} Frame 1Symbol 23 MovieClip
"CMG_LoadingBar"Symbol 37 MovieClip {msoids_fla.Preloader_2} Frame 1Symbol 25 MovieClip {msoids_fla.load_barMC_12}
"play_btn"Symbol 37 MovieClip {msoids_fla.Preloader_2} Frame 2Symbol 36 Button
"CMG_LoadingWidget"Symbol 54 MovieClip {msoids_fla.CMG_Logo_Animation_1} Frame 1Symbol 37 MovieClip {msoids_fla.Preloader_2}
"CMG_HomePageLink"Symbol 54 MovieClip {msoids_fla.CMG_Logo_Animation_1} Frame 1Symbol 41 Button
"CMG_MonkeyBlink"Symbol 54 MovieClip {msoids_fla.CMG_Logo_Animation_1} Frame 81Symbol 53 MovieClip {msoids_fla.CMG_monkey_blink_19}

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.
Tag 0x0FF (255)Timeline Frame 11 bytes " "




http://swfchan.com/20/95192/info.shtml
Created: 25/3 -2019 15:57:49 Last modified: 25/3 -2019 15:57:49 Server time: 22/12 -2024 20:53:35