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

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

Skylark.swf

This is the info page for
Flash #48293

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


ActionScript [AS3]
Section 1
//Config (com.config.Config) package com.config { import flash.net.*; import com.soundmanager.*; public class Config { private var so:SharedObject; private static const cookieName:String = "SKYLARKNOV2K8"; private static const version:String = "1.4"; public static var hint1Shown:Boolean = false; public static var fps:int = 25; public static var name:String = "PLAYER"; public static var runs1stTime:Boolean = true; public static var topScore:int = 0; public function Config(){ so = SharedObject.getLocal(cookieName); if (((so.data.version) && ((so.data.version == version)))){ runs1stTime = false; name = so.data.name; fps = so.data.fps; hint1Shown = so.data.hint1Shown; SoundManager.soundsEnabled = so.data.soundsEnabled; SoundManager.musicEnabled = so.data.musicEnabled; topScore = so.data.topScore; trace(("Skylark version " + version)); trace(((("name = " + so.data.name) + "\ntopScore = ") + so.data.topScore)); trace(((("soundsEnabled = " + so.data.soundsEnabled) + "\nmusicEnabled = ") + so.data.musicEnabled)); trace(("fps = " + so.data.fps)); }; } public function flush():void{ var flushStatus:String; so.data.fps = fps; so.data.hint1Shown = hint1Shown; so.data.musicEnabled = SoundManager.musicEnabled; so.data.name = name; so.data.soundsEnabled = SoundManager.soundsEnabled; so.data.topScore = topScore; so.data.version = version; try { flushStatus = so.flush(0x0400); } catch(e:Error) { trace(e); }; trace(("flushStatus = " + flushStatus)); } } }//package com.config
Section 2
//GUI (com.GUI.GUI) package com.GUI { import flash.geom.*; import com.pocomaxa.*; import flash.display.*; import flash.text.*; import com.message.*; import Embedded.*; import com.playerprogress.*; import com.render.*; public class GUI { private var __tfScore:TextField; private var __imageRockets:Bitmap; private var __lives:Bitmap; private var __prevRockets:int; private var __tfRockets:TextField; private var __prevHealth:int; private var __mImageRockets:Matrix; private var __mRockets:Matrix; private var __mScore:Matrix; private var __imageLife:Bitmap; private var __prevScore:int; public function GUI(){ super(); __imageLife = Bitmap(Assets.objCache(Assets.imageLife)); __imageRockets = Bitmap(Assets.objCache(Assets.imageRockets)); __prevHealth = 100000; __prevScore = 100000; __prevRockets = 100000; __tfScore = new TextField(); var _local2 = __tfScore; with (_local2) { text = padZeros(PlayerProgress.score); autoSize = TextFieldAutoSize.LEFT; textColor = 0xFFFFFF; selectable = false; cacheAsBitmap = true; setTextFormat(new Formatter(16)); }; __tfRockets = new TextField(); _local2 = __tfRockets; with (_local2) { text = padZeros(PlayerProgress.rockets, 2); autoSize = TextFieldAutoSize.LEFT; textColor = 0xFFFFFF; selectable = false; cacheAsBitmap = true; setTextFormat(new Formatter(16)); }; __mScore = new Matrix(1, 0, 0, 1, (Screen.width - __tfScore.width), 0); __mRockets = new Matrix(1, 0, 0, 1, (__imageRockets.width + 1), (Screen.height - __tfRockets.height)); __mImageRockets = new Matrix(1, 0, 0, 1, 1, ((Screen.height - __imageRockets.height) + 1)); } private function padZeros(_arg1:int, _arg2:int=4):String{ var _local3:String = String(_arg1); while (_local3.length < _arg2) { _local3 = ("0" + _local3); }; return (_local3); } public function draw(_arg1:int, _arg2:GameObject):void{ var _local5:int; var _local3:uint = 3993042688; if (_arg1 < 50){ _local3 = 4009754368; }; if (_arg1 < 33){ _local3 = 4009689088; }; if (PlayerProgress.score != __prevScore){ __mScore = new Matrix(1, 0, 0, 1, (Screen.width - __tfScore.width), 0); __tfScore.text = padZeros(PlayerProgress.score); __tfScore.setTextFormat(new Formatter(16)); }; Render.drawBuffer.fillRect(new Rectangle(((Screen.width - (_arg1 * 2)) / 2), (Screen.height - 5), (_arg1 * 2), 3), _local3); var _local4:int; while (_local4 < PlayerProgress.lives) { Render.drawBuffer.draw(__imageLife, new Matrix(1, 0, 0, 1, (_local4 * (__imageLife.width + 1)), 0)); _local4++; }; if (PlayerProgress.rockets){ if (PlayerProgress.rockets != __prevRockets){ __tfRockets.text = padZeros(PlayerProgress.rockets, 2); __tfRockets.setTextFormat(new Formatter(16)); }; Render.drawBuffer.draw(__imageRockets, __mImageRockets); Render.drawBuffer.draw(__tfRockets, __mRockets); }; Render.drawBuffer.draw(__tfScore, __mScore); if (_arg2){ _local5 = (_arg2.getHealthRatio() * 300); Render.drawBuffer.fillRect(new Rectangle(((Screen.width - _local5) / 2), 5, _local5, 3), 4009689088); }; __prevHealth = _arg1; __prevScore = PlayerProgress.score; } } }//package com.GUI
Section 3
//Screen (com.GUI.Screen) package com.GUI { public class Screen { public static const width:int = 550; public static const height:int = 550; } }//package com.GUI
Section 4
//Input (com.input.Input) package com.input { import flash.geom.*; import com.GUI.*; import lib.utils.*; import com.state.*; public class Input { public static var yDir:int; public static var mouseMove:Boolean; public static var keyCount:Array; public static var keys:Array; public static var xDir:int; public static var x:Number; public static var y:Number; public static var shotsOrdered:int; public static var isFiring:Boolean; public static function mouseTo(_arg1:Number, _arg2:Number):void{ x = _arg1; y = _arg2; mouseMove = true; } public static function beginMoveLeft():void{ xDir = -1; } public static function setKeyState(_arg1:int, _arg2:Boolean):void{ keys[_arg1] = _arg2; if (_arg2){ var _local3 = keyCount; var _local4 = _arg1; var _local5 = (_local3[_local4] + 1); _local3[_local4] = _local5; switch (_arg1){ case 32: case 13: case 12: beginFire(); break; case 40: case 83: beginMoveDown(); mouseMove = false; break; case 37: case 65: beginMoveLeft(); mouseMove = false; break; case 39: case 68: beginMoveRight(); mouseMove = false; break; case 38: case 87: beginMoveUp(); mouseMove = false; break; }; } else { if (keyCount[_arg1] > 0){ _local3 = keyCount; _local4 = _arg1; _local5 = (_local3[_local4] - 1); _local3[_local4] = _local5; }; switch (_arg1){ case 32: case 13: case 12: stopFire(); break; case 40: case 83: if (keyUp()){ beginMoveUp(); } else { stopVertical(); }; break; case 37: case 65: if (keyRight()){ beginMoveRight(); } else { stopHortical(); }; break; case 39: case 68: if (keyLeft()){ beginMoveLeft(); } else { stopHortical(); }; break; case 38: case 87: if (keyDown()){ beginMoveDown(); } else { stopVertical(); }; break; }; }; } public static function apply2(_arg1:Point, _arg2:Number, _arg3:Number):void{ if (mouseMove){ x = Values.limit((x + (_arg2 * xDir)), 0, Screen.width); y = Values.limit((y + (_arg3 * yDir)), 0, Screen.height); return; }; var _local4:Number = 20; x = Values.limit((_arg1.x + (Values.limit((_arg2 * 2), 0, _local4) * xDir)), 0, Screen.width); y = Values.limit((_arg1.y + (Values.limit((_arg3 * 2), 0, _local4) * yDir)), 0, Screen.height); } public static function beginFire():void{ if (GameState.isPaused()){ return; }; isFiring = true; shotsOrdered++; } public static function stopHortical():void{ xDir = 0; } public static function reinitialize():void{ isFiring = false; if (!keys){ keys = new Array(0xFF); }; if (!keyCount){ keyCount = new Array(0xFF); }; var _local1:int; while (_local1 <= 0xFF) { keys[_local1] = false; keyCount[_local1] = 0; _local1++; }; mouseMove = true; xDir = 0; yDir = 0; shotsOrdered = 0; } public static function keyRight():Boolean{ return (((keys[39]) || (keys[68]))); } public static function keyLeft():Boolean{ return (((keys[37]) || (keys[65]))); } public static function beginMoveUp():void{ yDir = -1; } public static function stopFire():void{ isFiring = false; } public static function keyUp():Boolean{ return (((keys[38]) || (keys[87]))); } public static function beginMoveDown():void{ yDir = 1; } public static function stopVertical():void{ yDir = 0; } public static function keyDown():Boolean{ return (((keys[40]) || (keys[83]))); } public static function getKeyCount(_arg1:int):int{ if (keyCount[_arg1] > 0){ var _local2 = keyCount; var _local3 = _arg1; var _local4 = (_local2[_local3] - 1); _local2[_local3] = _local4; }; return (keyCount[_arg1]); } public static function beginMoveRight():void{ xDir = 1; } public static function apply(_arg1:Number, _arg2:Number):void{ x = Values.limit((x + (_arg1 * xDir)), 0, Screen.width); y = Values.limit((y + (_arg2 * yDir)), 0, Screen.height); } } }//package com.input
Section 5
//Entertainer (com.loader.Entertainer) package com.loader { import flash.events.*; import flash.geom.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.utils.*; import com.GUI.*; import flash.net.*; public class Entertainer extends MovieClip { public const barHeight:Number = 20; public const barWidth:Number = 412.5; public var stumpyAd:Class; public var stumpyBg:Class; public var stumpySound:Class; public var count:Number;// = 0 public var tf:TextField; public var startTime:int; public var tff:TextFormat; public function Entertainer(){ var _local1:Bitmap; stumpySound = Entertainer_stumpySound; stumpyAd = Entertainer_stumpyAd; stumpyBg = Entertainer_stumpyBg; super(); if (this.parent != null){ stage.scaleMode = StageScaleMode.NO_SCALE; }; scrollRect = new Rectangle(0, 0, Screen.width, Screen.height); addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true); stage.addEventListener(MouseEvent.CLICK, onMouseClick, false, 0, true); startTime = getTimer(); graphics.beginFill(136); graphics.drawRect(0, 0, Screen.width, Screen.height); graphics.lineStyle(1, 0xFFFFFF); graphics.beginFill(136); graphics.drawRect(((Screen.width - barWidth) / 2), (Screen.height - 100), barWidth, barHeight); _local1 = new stumpyBg(); _local1.x = ((Screen.width - _local1.width) / 2); _local1.y = ((Screen.height - _local1.height) / 2); addChild(_local1); var _local2:Bitmap = new stumpyAd(); _local2.x = ((Screen.width - _local2.width) / 2); _local2.y = (((Screen.height - _local2.height) / 2) - 2); addChild(_local2); tff = new TextFormat("Arial", 16, 0xFF6600, true, null, null, null, null, TextFormatAlign.CENTER); tf = new TextField(); tf.text = "0%"; tf.x = ((Screen.width - tf.width) / 2); tf.y = (Screen.height - (tf.height * 1.5)); tf.setTextFormat(tff); addChild(tf); Sound(new stumpySound()).play(); stop(); stage.frameRate = 2; } public function onMouseClick(_arg1:MouseEvent):void{ trace("Click!"); navigateToURL(new URLRequest("http://www.stumpygames.com/gamein.php?id=1000&source=1"), "_blank"); } public function onEnterFrame(_arg1:Event):void{ updateProgressBar(); if ((((framesLoaded == totalFrames)) && ((count > 0.99)))){ removeEventListener(Event.ENTER_FRAME, onEnterFrame); stage.removeEventListener(MouseEvent.CLICK, onMouseClick); nextFrame(); addChild((new Skylark() as DisplayObject)); }; } public function updateProgressBar():void{ var _local1:Number = ((getTimer() - startTime) / 8000); var _local2:Number = (framesLoaded / totalFrames); if (_local2 < _local1){ count = _local2; } else { count = _local1; }; trace(((("amountLoaded: " + _local2) + " dt ") + _local1)); this.graphics.beginFill(0xFF6600); this.graphics.lineStyle(1, 0xFF6600); this.graphics.drawRect((((Screen.width - barWidth) / 2) + 1), (Screen.height - 99), ((barWidth - 2) * count), (barHeight - 2)); this.graphics.endFill(); var _local3:int = ((this.framesLoaded / this.totalFrames) * 100); tf.text = (_local3.toString() + "%"); tf.x = ((Screen.width - tf.width) / 2); tf.setTextFormat(tff); } } }//package com.loader
Section 6
//Entertainer_stumpyAd (com.loader.Entertainer_stumpyAd) package com.loader { import mx.core.*; public class Entertainer_stumpyAd extends BitmapAsset { } }//package com.loader
Section 7
//Entertainer_stumpyBg (com.loader.Entertainer_stumpyBg) package com.loader { import mx.core.*; public class Entertainer_stumpyBg extends BitmapAsset { } }//package com.loader
Section 8
//Entertainer_stumpySound (com.loader.Entertainer_stumpySound) package com.loader { import mx.core.*; public class Entertainer_stumpySound extends SoundAsset { } }//package com.loader
Section 9
//Menu (com.menu.Menu) package com.menu { import flash.events.*; import flash.geom.*; import flash.display.*; import com.GUI.*; import Embedded.*; public class Menu { private var menuItems:Array; public var menuOnScreen:Boolean;// = false private var __parent:Object; private var __maxHeight:uint;// = 0 private static var maxWidth:uint = 0; public static var menuPic:Bitmap; public function Menu(_arg1:Object, _arg2:Boolean=true, ... _args){ var _local5:Object; menuItems = []; super(); menuOnScreen = true; __parent = _arg1; var _local4:uint; while (_local4 < _args.length) { menuItems[(_local4 / 3)] = new MenuItem(_args[_local4], _args[(_local4 + 1)]); menuItems[(_local4 / 3)].addEventListener(MouseEvent.CLICK, _args[(_local4 + 2)], 0, false, true); _local4 = (_local4 + 3); }; if (((!(menuPic)) && (_arg2))){ menuPic = new Assets.cover(); __parent.addChild(menuPic); }; _local4 = 0; while (_local4 < menuItems.length) { _local5 = menuItems[_local4]; __parent.addChild(menuItems[_local4]); _local4++; }; } public function hide():void{ if (menuPic){ __parent.removeChild(menuPic); menuPic = null; }; if (!menuOnScreen){ return; }; var _local1:uint; while (_local1 < menuItems.length) { __parent.removeChild(menuItems[_local1]); delete menuItems[_local1]; _local1++; }; menuOnScreen = false; } public static function fadePic(_arg1:Rectangle, _arg2:ColorTransform):void{ if (menuPic){ menuPic.bitmapData.colorTransform(_arg1, _arg2); }; } } }//package com.menu
Section 10
//MenuItem (com.menu.MenuItem) package com.menu { import flash.geom.*; import flash.display.*; import Embedded.*; public class MenuItem extends SimpleButton { private var __hitTestState:BitmapData; private var __upState:BitmapData; private var __overState:BitmapData; private var __downState:BitmapData; public static var menuAsset:Bitmap = null; public function MenuItem(_arg1:Point, _arg2:Rectangle){ if (!menuAsset){ menuAsset = new Assets.MenuBitmap(); }; x = _arg1.x; y = _arg1.y; __overState = new BitmapData(_arg2.width, _arg2.height, true, 0); __overState.copyPixels(menuAsset.bitmapData, _arg2, new Point(0, 0)); __upState = new BitmapData(_arg2.width, _arg2.height, true, 0); __upState.draw(__overState, null, new ColorTransform(0.75, 0.75, 0.75, 1, 0, 0, 0, 0)); __downState = new BitmapData(_arg2.width, _arg2.height, true, 0); __downState.draw(__upState); __hitTestState = new BitmapData(_arg2.width, _arg2.height, false, 0xFF0000); super(new Bitmap(__upState), new Bitmap(__overState), new Bitmap(__downState), new Bitmap(__hitTestState)); } } }//package com.menu
Section 11
//Formatter (com.message.Formatter) package com.message { import flash.text.*; public class Formatter extends TextFormat { public function Formatter(_arg1:uint=20, _arg2:uint=0xFFFFFF){ super("Arial", _arg1, _arg2, true, null, null, null, null, "center"); } } }//package com.message
Section 12
//InputField (com.message.InputField) package com.message { import flash.text.*; public class InputField extends TextField { public function InputField(_arg1:String){ text = _arg1; type = TextFieldType.INPUT; autoSize = TextFieldAutoSize.CENTER; maxChars = 8; restrict = "a-z A-Z 0-9"; setTextFormat(new Formatter(24, 0xFFFF00)); background = true; backgroundColor = 0; } } }//package com.message
Section 13
//Message (com.message.Message) package com.message { import flash.events.*; import flash.geom.*; import flash.display.*; import flash.text.*; import flash.utils.*; import com.GUI.*; import flash.filters.*; public class Message extends TextField { private var __parent:Object; private var __onScreen:Boolean;// = false private var __priority:int;// = 0 private var __timer:Timer; public static const LOWEST:int = 0; public static const HIGHEST:int = 2; public static const NORMAL:int = 1; public function Message(_arg1:DisplayObject, _arg2:String="TEXT"){ filters = [new GlowFilter(0, 0.5, 5, 5, 5)]; __parent = _arg1; autoSize = TextFieldAutoSize.CENTER; textColor = 0xFFFFFF; selectable = false; } public function hide():void{ __priority = LOWEST; if (!__onScreen){ return; }; __onScreen = false; try { __parent.removeChild(this); } catch(e:Error) { trace("Cannot remove a Message object"); }; if (__timer){ __timer.stop(); }; } public function show(_arg1:String, _arg2:int=-1, _arg3:Point=null, _arg4:int=0):void{ if (__onScreen){ if (__priority <= _arg4){ text = _arg1; } else { return; }; }; __priority = _arg4; text = _arg1; __onScreen = true; setTextFormat(new Formatter()); antiAliasType = AntiAliasType.ADVANCED; if (_arg3){ x = (_arg3.x - (width / 2)); y = _arg3.y; } else { x = ((Screen.width - width) / 2); y = ((Screen.height - height) / 2); }; __parent.addChild(this); if (((__timer) && (__timer.hasEventListener(TimerEvent.TIMER_COMPLETE)))){ __timer.removeEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete); __timer.stop(); }; if (_arg2 != -1){ __timer = new Timer(_arg2, 1); __timer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete, false, 0, true); __timer.start(); }; } public function onTimerComplete(_arg1:TimerEvent):void{ __timer.removeEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete); hide(); } } }//package com.message
Section 14
//LevelParser (com.parser.LevelParser) package com.parser { import Embedded.*; import lib.utils.*; public class LevelParser { public var maxTime:Number; private static const __level1:XML = <level name="Level 1"> <event cmd="TILE" param="12"> 00000</event> <event cmd="COMMENT" text="Tile Level 1"> </event> <event cmd="TILE" param="12"> 00400</event> <event cmd="TILE" param="8"> 00500</event> <event cmd="TILE" param="14"> 00600</event> <event cmd="TILE" param="3"> 00888</event> <event cmd="TILE" param="3"> 02997</event> <event cmd="TILE" param="13"> 03108</event> <event cmd="TILE" param="6"> 03219</event> <event cmd="TILE" param="6"> 03552</event> <event cmd="TILE" param="7"> 03663</event> <event cmd="TILE" param="12"> 03774</event> <event cmd="TILE" param="12"> 19999</event> <event cmd="COMMENT" text="END OF TILE DESCRIPTIONS"> </event> <event cmd="DRAW" x="44" param="12"> 00044</event> <event cmd="DRAW" x="324" param="12"> 00094</event> <event cmd="DRAW" x="-10" param="11"> 00196</event> <event cmd="DRAW" x="380" param="11"> 00198</event> <event cmd="DRAW" x="174" param="12"> 00277</event> <event cmd="DRAW" x="405" param="11"> 00288</event> <event cmd="DRAW" x="0" param="11"> 00324</event> <event cmd="DRAW" x="425" param="11"> 00434</event> <event cmd="DRAW" x="16" param="12"> 00458</event> <event cmd="DRAW" x="434" param="12"> 00458</event> <event cmd="DRAW" x="132" param="11"> 00569</event> <event cmd="COMMENT" text="LEVEL 1"> </event> <event cmd="DRAW" x="151" param="3"> 696</event> <event cmd="DRAW" x="-30" param="5"> 715</event> <event cmd="DRAW" x="355" param="3"> 717</event> <event cmd="DRAW" x="433" param="3"> 769</event> <event cmd="DRAW" x="92" param="5"> 770</event> <event cmd="DRAW" x="223" param="5"> 773</event> <event cmd="DRAW" x="-100" param="3"> 799</event> <event cmd="DRAW" x="0" param="5"> 825</event> <event cmd="DRAW" x="359" param="3"> 832</event> <event cmd="DRAW" x="275" param="3"> 839</event> <event cmd="DRAW" x="64" param="5"> 883</event> <event cmd="DRAW" x="436" param="3"> 886</event> <event cmd="DRAW" x="193" param="5"> 906</event> <event cmd="DRAW" x="-60" param="3"> 942</event> <event cmd="DRAW" x="110" param="3"> 973</event> <event cmd="DRAW" x="340" param="1"> 970</event> <event cmd="DRAW" x="32" param="3"> 1000</event> <event cmd="DRAW" x="240" param="15"> 1153</event> <event cmd="DRAW" x="120" param="5"> 1100</event> <event cmd="DRAW" x="472" param="5"> 1146</event> <event cmd="DRAW" x="134" param="5"> 1191</event> <event cmd="DRAW" x="47" param="5"> 1245</event> <event cmd="DRAW" x="217" param="3"> 1245</event> <event cmd="DRAW" x="458" param="5"> 1267</event> <event cmd="DRAW" x="-60" param="3"> 1284</event> <event cmd="DRAW" x="362" param="3"> 1294</event> <event cmd="DRAW" x="125" param="1"> 1300</event> <event cmd="DRAW" x="300" param="0"> 1320</event> <event cmd="DRAW" x="450" param="0"> 1390</event> <event cmd="DRAW" x="000" param="0"> 1400</event> <event cmd="DRAW" x="180" param="7"> 1499</event> <event cmd="DRAW" x="100" param="0"> 1500</event> <event cmd="DRAW" x="400" param="0"> 1550</event> <event cmd="DRAW" x="130" param="12"> 01661</event> <event cmd="DRAW" x="130" param="11"> 01710</event> <event cmd="DRAW" x="100" param="11"> 01710</event> <event cmd="DRAW" x="10" param="12"> 01751</event> <event cmd="DRAW" x="10" param="11"> 01771</event> <event cmd="DRAW" x="250" param="1"> 01809</event> <event cmd="DRAW" x="20" param="12"> 01810</event> <event cmd="DRAW" x="360" param="11"> 01811</event> <event cmd="DRAW" x="20" param="12"> 01851</event> <event cmd="DRAW" x="340" param="11"> 01861</event> <event cmd="DRAW" x="040" param="1"> 1950</event> <event cmd="DRAW" x="180" param="11"> 1998</event> <event cmd="DRAW" x="140" param="2"> 2000</event> <event cmd="DRAW" x="220" param="11"> 2109</event> <event cmd="DRAW" x="000" param="12"> 2109</event> <event cmd="DRAW" x="000" param="12"> 2160</event> <event cmd="DRAW" x="000" param="17"> 2300</event> <event cmd="DRAW" x="264" param="17"> 2300</event> <event cmd="DRAW" x="528" param="17"> 2300</event> <event cmd="DRAW" x="120" param="21"> 2400</event> <event cmd="DRAW" x="220" param="2"> 2420</event> <event cmd="DRAW" x="420" param="2"> 2430</event> <event cmd="DRAW" x="320" param="4"> 2440</event> <event cmd="DRAW" x="120" param="0"> 2450</event> <event cmd="DRAW" x="000" param="17"> 2600</event> <event cmd="DRAW" x="264" param="17"> 2600</event> <event cmd="DRAW" x="528" param="17"> 2600</event> <event cmd="DRAW" x="250" param="21"> 2700</event> <event cmd="DRAW" x="450" param="8"> 2750</event> <event cmd="DRAW" x="050" param="6"> 2850</event> <event cmd="DRAW" x="000" param="0"> 2900</event> <event cmd="DRAW" x="200" param="2"> 2900</event> <event cmd="DRAW" x="300" param="4"> 2900</event> <event cmd="DRAW" x="500" param="0"> 2900</event> <event cmd="DRAW" x="000" param="4"> 3000</event> <event cmd="DRAW" x="200" param="4"> 3000</event> <event cmd="DRAW" x="300" param="0"> 3000</event> <event cmd="DRAW" x="500" param="2"> 3000</event> <event cmd="DRAW" x="000" param="4"> 3100</event> <event cmd="DRAW" x="200" param="2"> 3100</event> <event cmd="DRAW" x="300" param="2"> 3100</event> <event cmd="DRAW" x="500" param="0"> 3100</event> <event cmd="COMMENT" text="ROCKS"> </event> <event cmd="DRAW" x="44" param="12"> 03644</event> <event cmd="DRAW" x="324" param="12"> 03694</event> <event cmd="DRAW" x="-10" param="11"> 03796</event> <event cmd="DRAW" x="380" param="11"> 03798</event> <event cmd="DRAW" x="174" param="12"> 03877</event> <event cmd="DRAW" x="405" param="11"> 03888</event> <event cmd="DRAW" x="0" param="11"> 03924</event> <event cmd="DRAW" x="425" param="11"> 04034</event> <event cmd="DRAW" x="16" param="12"> 04058</event> <event cmd="DRAW" x="434" param="12"> 04058</event> <event cmd="DRAW" x="132" param="11"> 04169</event> <event cmd="DRAW" x="44" param="12"> 04644</event> <event cmd="DRAW" x="324" param="12"> 04894</event> <event cmd="DRAW" x="0" param="11"> 05096</event> <event cmd="DRAW" x="380" param="11"> 05398</event> <event cmd="DRAW" x="174" param="12"> 05632</event> <event cmd="DRAW" x="405" param="11"> 05788</event> <event cmd="DRAW" x="0" param="11"> 05924</event> <event cmd="DRAW" x="425" param="11"> 06034</event> <event cmd="DRAW" x="16" param="12"> 06258</event> <event cmd="DRAW" x="434" param="12"> 06458</event> <event cmd="DRAW" x="132" param="11"> 06679</event> <event cmd="DRAW" x="0" param="11"> 19999</event> <event cmd="COMMENT" text="END OF OBJECT DESCRIPTIONS"> </event> <event cmd="MSG" text="YOU FIND OUT THAT JANE WAS ABDUCTED BY AN UFO." param="3"> 0100</event> <event cmd="MSG" text="ATTACK THE UFO CAPTURE THE CREW" param="3"> 0320</event> <event cmd="WAVE" prize="5"> 400</event> <event cmd="SPAWN" etype="e2" x="100" yacc="4"> 400</event> <event cmd="SPAWN" etype="e2" x="200" yacc="4"> 400</event> <event cmd="SPAWN" etype="e2" x="350" yacc="4"> 400</event> <event cmd="SPAWN" etype="e2" x="455" yacc="4"> 400</event> <event cmd="ENDWAVE"> 400</event> <event cmd="WAVE" prize="-1"> 800</event> <event cmd="SPAWN" etype="e2" x="100" yacc="4"> 800</event> <event cmd="SPAWN" etype="e2" x="200" yacc="4"> 800</event> <event cmd="SPAWN" etype="e2" x="275" yacc="4"> 800</event> <event cmd="SPAWN" etype="e2" x="350" yacc="4"> 800</event> <event cmd="SPAWN" etype="e2" x="455" yacc="4"> 800</event> <event cmd="ENDWAVE"> 800</event> <event cmd="WAVE" prize="-1"> 1200</event> <event cmd="SPAWN" x="100" yacc="5"> 1200</event> <event cmd="SPAWN" x="200" yacc="6"> 1200</event> <event cmd="SPAWN" x="275" yacc="7"> 1200</event> <event cmd="SPAWN" x="350" yacc="5"> 1200</event> <event cmd="SPAWN" x="455" yacc="4"> 1200</event> <event cmd="ENDWAVE"> 1200</event> <event cmd="WAVE" prize="5"> 1600</event> <event cmd="SPAWN" etype="balloon" x="-140" y="050" xacc="3" yacc="0.01"> 1600</event> <event cmd="SPAWN" etype="balloon" x="690" y="150" xacc="-3" yacc="0.01"> 1700</event> <event cmd="ENDWAVE"> 1700</event> <event cmd="WAVE" prize="-1"> 2100</event> <event cmd="SPAWN" x="100" yacc="3"> 2100</event> <event cmd="SPAWN" x="200" yacc="4"> 2110</event> <event cmd="SPAWN" x="275" yacc="5"> 2120</event> <event cmd="SPAWN" x="350" yacc="6"> 2140</event> <event cmd="SPAWN" x="455" yacc="7"> 2160</event> <event cmd="ENDWAVE"> 2200</event> <event cmd="SPAWN" x="150" xacc="-5.00" yacc="9"> 2520</event> <event cmd="SPAWN" x="250" xacc="-3.00" yacc="10"> 2520</event> <event cmd="SPAWN" x="300" xacc="0.000" yacc="11"> 2520</event> <event cmd="SPAWN" x="350" xacc="3.000" yacc="10"> 2520</event> <event cmd="SPAWN" x="450" xacc="5.000" yacc="9"> 2520</event> <event cmd="SPAWN" etype="flak" x="050" prize="0"> 2700</event> <event cmd="SPAWN" etype="flak" x="500" prize="1"> 2700</event> <event cmd="WAVE" prize="4"> 3000</event> <event cmd="SPAWN" etype="tank" x="375"> 2970</event> <event cmd="SPAWN" etype="tank" x="444"> 3420</event> <event cmd="SPAWN" etype="tank" x="151"> 3510</event> <event cmd="ENDWAVE"> 3510</event> <event cmd="WAVE" prize="-1"> 3100</event> <event cmd="SPAWN" x="037" xacc="2" yacc="12"> 3100</event> <event cmd="SPAWN" x="175" xacc="3" yacc="12"> 3100</event> <event cmd="SPAWN" x="312" xacc="5" yacc="12"> 3100</event> <event cmd="ENDWAVE"> 3100</event> <event cmd="WAVE" prize="3"> 3300</event> <event cmd="SPAWN" x="237" xacc="2" yacc="12"> 3300</event> <event cmd="SPAWN" x="375" xacc="3" yacc="12"> 3300</event> <event cmd="SPAWN" x="512" xacc="5" yacc="12"> 3300</event> <event cmd="ENDWAVE"> 3300</event> <event cmd="WAVE" prize="-1"> 3420</event> <event cmd="SPAWN" etype="e3" x="100"> 3470</event> <event cmd="SPAWN" etype="e3" x="450"> 3480</event> <event cmd="SPAWN" etype="e3" x="200"> 3490</event> <event cmd="SPAWN" etype="e3" x="350"> 3500</event> <event cmd="SPAWN" etype="e3" x="275"> 3510</event> <event cmd="ENDWAVE"> 3520</event> <event cmd="WAVE" prize="-1"> 4100</event> <event cmd="SPAWN" etype="e2" x="100" yacc="9"> 4100</event> <event cmd="SPAWN" etype="e2" x="200" yacc="9"> 4100</event> <event cmd="SPAWN" etype="e2" x="275" yacc="9"> 4100</event> <event cmd="SPAWN" etype="e2" x="350" yacc="9"> 4100</event> <event cmd="SPAWN" etype="e2" x="455" yacc="9"> 4100</event> <event cmd="ENDWAVE"> 4100</event> <event cmd="WAVE" prize="-1"> 4300</event> <event cmd="SPAWN" etype="e2" x="100" yacc="11"> 4300</event> <event cmd="SPAWN" etype="e2" x="200" yacc="11"> 4300</event> <event cmd="SPAWN" etype="e2" x="275" yacc="11"> 4300</event> <event cmd="SPAWN" etype="e2" x="350" yacc="11"> 4300</event> <event cmd="SPAWN" etype="e2" x="455" yacc="11"> 4300</event> <event cmd="ENDWAVE"> 4300</event> <event cmd="WAVE" prize="2"> 4700</event> <event cmd="SPAWN" etype="e2" x="050" xacc="-2" yacc="5"> 4700</event> <event cmd="SPAWN" etype="e2" x="100" xacc="-1" yacc="10"> 4700</event> <event cmd="SPAWN" etype="e2bright" x="150" xacc="-1" yacc="15" prize="3"> 4700</event> <event cmd="SPAWN" etype="e2" x="275" xacc="0" yacc="20"> 4700</event> <event cmd="SPAWN" etype="e2" x="400" xacc="1" yacc="25"> 4700</event> <event cmd="SPAWN" etype="e2bright" x="450" xacc="2" yacc="20" prize="4"> 4700</event> <event cmd="SPAWN" etype="e2" x="500" xacc="2" yacc="15"> 4700</event> <event cmd="ENDWAVE"> 4700</event> <event cmd="WAVE" prize="-1"> 4800</event> <event cmd="SPAWN" etype="e1" x="100"> 4800</event> <event cmd="SPAWN" etype="e1" x="450"> 4800</event> <event cmd="SPAWN" etype="e1" x="200"> 4800</event> <event cmd="SPAWN" etype="e1" x="350"> 4800</event> <event cmd="SPAWN" etype="e1" x="275"> 4800</event> <event cmd="ENDWAVE"> 4800</event> <event cmd="WAVE" prize="5"> 5000</event> <event cmd="SPAWN" etype="balloon" x="-140" y="050" xacc="3" yacc="0.01"> 5000</event> <event cmd="SPAWN" etype="balloon" x="690" y="150" xacc="-3" yacc="0.01"> 5000</event> <event cmd="ENDWAVE"> 5000</event> <event cmd="WAVE" prize="-1"> 5330</event> <event cmd="SPAWN" x="050" xacc="2" yacc="15"> 5330</event> <event cmd="SPAWN" x="100" xacc="3" yacc="15"> 5330</event> <event cmd="SPAWN" x="150" xacc="4" yacc="15"> 5330</event> <event cmd="SPAWN" x="200" xacc="5" yacc="15"> 5330</event> <event cmd="SPAWN" x="250" xacc="6" yacc="15"> 5330</event> <event cmd="ENDWAVE"> 5330</event> <event cmd="WAVE" prize="-1"> 5330</event> <event cmd="SPAWN" etype="boat" x="500"> 5330</event> <event cmd="SPAWN" etype="boat" x="270"> 5500</event> <event cmd="ENDWAVE"> 5500</event> <event cmd="WAVE" prize="1"> 5510</event> <event cmd="SPAWN" x="300" xacc="-6" yacc="15"> 5510</event> <event cmd="SPAWN" x="350" xacc="-5" yacc="15"> 5510</event> <event cmd="SPAWN" x="400" xacc="-4" yacc="15"> 5510</event> <event cmd="SPAWN" x="450" xacc="-3" yacc="15"> 5510</event> <event cmd="SPAWN" x="500" xacc="-2" yacc="15"> 5510</event> <event cmd="ENDWAVE"> 5510</event> <event cmd="WAVE" prize="-1"> 5700</event> <event cmd="SPAWN" x="050" yacc="25"> 5700</event> <event cmd="SPAWN" x="500" yacc="25"> 5800</event> <event cmd="SPAWN" x="150" yacc="25"> 5900</event> <event cmd="SPAWN" x="400" yacc="20"> 6100</event> <event cmd="SPAWN" x="250" yacc="15"> 6200</event> <event cmd="ENDWAVE"> 6200</event> <event cmd="WAVE" prize="1"> 6245</event> <event cmd="SPAWN" etype="e3" x="100"> 6245</event> <event cmd="SPAWN" etype="e3" x="450"> 6245</event> <event cmd="SPAWN" etype="e3" x="200"> 6245</event> <event cmd="SPAWN" etype="e3" x="350"> 6245</event> <event cmd="SPAWN" etype="e3" x="275"> 6245</event> <event cmd="ENDWAVE"> 6245</event> <event cmd="WAVE" prize="-1"> 6400</event> <event cmd="SPAWN" etype="boat" x="400"> 6400</event> <event cmd="SPAWN" etype="boat" x="320"> 6600</event> <event cmd="ENDWAVE"> 6600</event> <event cmd="WAVE" prize="0"> 6700</event> <event cmd="SPAWN" etype="e1" x="450"> 6700</event> <event cmd="SPAWN" etype="e1" x="275"> 6700</event> <event cmd="SPAWN" etype="e1" x="100"> 6700</event> <event cmd="ENDWAVE"> 6700</event> <event cmd="SPAWN" etype="e3" x="450"> 6900</event> <event cmd="SPAWN" etype="e3" x="100"> 6900</event> <event cmd="SPAWN" etype="smallufo" prize="101"> 7200</event> <event cmd="SPAWN" etype="e3" x="100"> 7600</event> <event cmd="SPAWN" etype="e3" x="450"> 7600</event> <event cmd="SPAWN" etype="e3" x="200"> 7600</event> <event cmd="SPAWN" etype="e3" x="350"> 7600</event> <event cmd="SPAWN" etype="e3" x="275"> 7600</event> <event cmd="WAVE" prize="3"> 8100</event> <event cmd="SPAWN" etype="e3" x="100"> 8100</event> <event cmd="SPAWN" etype="e3" x="450"> 8100</event> <event cmd="SPAWN" etype="e3" x="200"> 8100</event> <event cmd="SPAWN" etype="e3" x="350"> 8100</event> <event cmd="SPAWN" etype="e3" x="275"> 8100</event> <event cmd="ENDWAVE"> 8100</event> <event cmd="WAVE" prize="0"> 9100</event> <event cmd="SPAWN" x="100"> 9100</event> <event cmd="SPAWN" x="450"> 9100</event> <event cmd="SPAWN" x="200"> 9100</event> <event cmd="SPAWN" x="350"> 9100</event> <event cmd="SPAWN" x="275"> 9100</event> <event cmd="ENDWAVE"> 9100</event> <event cmd="WAVE" prize="-1"> 10100</event> <event cmd="SPAWN" x="100" yacc="10"> 10100</event> <event cmd="SPAWN" x="450" yacc="10"> 10100</event> <event cmd="SPAWN" x="200" yacc="10"> 10100</event> <event cmd="SPAWN" x="350" yacc="10"> 10100</event> <event cmd="SPAWN" x="275" yacc="10"> 10100</event> <event cmd="ENDWAVE"> 10100</event> <event cmd="WAVE" prize="-1"> 10600</event> <event cmd="SPAWN" etype="e3" x="100"> 10600</event> <event cmd="SPAWN" etype="e3" x="450"> 10600</event> <event cmd="SPAWN" etype="e3" x="200"> 10600</event> <event cmd="SPAWN" etype="e3" x="350"> 10600</event> <event cmd="SPAWN" etype="e3" x="275"> 10600</event> <event cmd="ENDWAVE"> 10600</event> <event cmd="WAVE" prize="0"> 11099</event> <event cmd="SPAWN" x="100" yacc="10"> 11099</event> <event cmd="SPAWN" x="450" yacc="10"> 11099</event> <event cmd="SPAWN" x="200" yacc="10"> 11099</event> <event cmd="SPAWN" x="350" yacc="10"> 11099</event> <event cmd="SPAWN" x="275" yacc="10"> 11099</event> <event cmd="ENDWAVE"> 11099</event> <event cmd="WAVE" prize="-1"> 12100</event> <event cmd="SPAWN" x="100" yacc="10"> 12100</event> <event cmd="SPAWN" x="450" yacc="10"> 12100</event> <event cmd="SPAWN" x="200" yacc="10"> 12100</event> <event cmd="SPAWN" x="350" yacc="10"> 12100</event> <event cmd="SPAWN" x="275" yacc="10"> 12100</event> <event cmd="ENDWAVE"> 12100</event> <event cmd="WAVE" prize="-1"> 13100</event> <event cmd="SPAWN" x="100" yacc="10"> 13100</event> <event cmd="SPAWN" x="450" yacc="10"> 13100</event> <event cmd="SPAWN" x="200" yacc="10"> 13100</event> <event cmd="SPAWN" x="350" yacc="10"> 13100</event> <event cmd="SPAWN" x="275" yacc="10"> 13100</event> <event cmd="ENDWAVE"> 13100</event> <event cmd="WAVE" prize="0"> 13600</event> <event cmd="SPAWN" etype="e3" x="100"> 13600</event> <event cmd="SPAWN" etype="e3" x="450"> 13600</event> <event cmd="SPAWN" etype="e3" x="200"> 13600</event> <event cmd="SPAWN" etype="e3" x="350"> 13600</event> <event cmd="SPAWN" etype="e3" x="275"> 13600</event> <event cmd="ENDWAVE"> 13600</event> <event cmd="WAVE" prize="-1"> 14100</event> <event cmd="SPAWN" etype="e3" x="100"> 14100</event> <event cmd="SPAWN" etype="e3" x="450"> 14100</event> <event cmd="SPAWN" etype="e3" x="200"> 14100</event> <event cmd="SPAWN" etype="e3" x="350"> 14100</event> <event cmd="SPAWN" etype="e3" x="275"> 14100</event> <event cmd="ENDWAVE"> 14100</event> <event cmd="WAVE" prize="-1"> 14600</event> <event cmd="SPAWN" etype="e3" x="100"> 14600</event> <event cmd="SPAWN" etype="e3" x="450"> 14600</event> <event cmd="SPAWN" etype="e3" x="200"> 14600</event> <event cmd="SPAWN" etype="e3" x="350"> 14600</event> <event cmd="SPAWN" etype="e3" x="275"> 14600</event> <event cmd="ENDWAVE"> 14600</event> </level> ; private static const __level2:XML = <level name="Level 2"> <event cmd="TILE" param="12"> 0000</event> <event cmd="TILE" param="11"> 0111</event> <event cmd="TILE" param="9"> 0222</event> <event cmd="TILE" param="9"> 2331</event> <event cmd="TILE" param="10"> 2442</event> <event cmd="TILE" param="8"> 2500</event> <event cmd="TILE" param="14"> 2612</event> <event cmd="TILE" param="3"> 2833</event> <event cmd="TILE" param="9"> 2944</event> <event cmd="TILE" param="9"> 4959</event> <event cmd="TILE" param="6"> 5060</event> <event cmd="TILE" param="6"> 5282</event> <event cmd="TILE" param="7"> 5393</event> <event cmd="TILE" param="12"> 5404</event> <event cmd="TILE" param="12"> 12499</event> <event cmd="DRAW" x="000" param="5"> 150</event> <event cmd="DRAW" x="080" param="5"> 140</event> <event cmd="DRAW" x="160" param="5"> 150</event> <event cmd="DRAW" x="240" param="5"> 140</event> <event cmd="DRAW" x="320" param="5"> 150</event> <event cmd="DRAW" x="400" param="5"> 140</event> <event cmd="DRAW" x="480" param="5"> 150</event> <event cmd="DRAW" x="-150" param="17"> 249</event> <event cmd="DRAW" x="400" param="17"> 249</event> <event cmd="DRAW" x="-20" param="5"> 360</event> <event cmd="DRAW" x="130" param="5"> 360</event> <event cmd="DRAW" x="370" param="5"> 360</event> <event cmd="DRAW" x="520" param="5"> 360</event> <event cmd="DRAW" x="114" param="22"> 397</event> <event cmd="DRAW" x="000" param="5"> 460</event> <event cmd="DRAW" x="140" param="5"> 460</event> <event cmd="DRAW" x="350" param="5"> 460</event> <event cmd="DRAW" x="500" param="5"> 460</event> <event cmd="DRAW" x="-20" param="5"> 560</event> <event cmd="DRAW" x="130" param="5"> 560</event> <event cmd="DRAW" x="370" param="5"> 560</event> <event cmd="DRAW" x="530" param="5"> 560</event> <event cmd="DRAW" x="000" param="5"> 660</event> <event cmd="DRAW" x="140" param="5"> 660</event> <event cmd="DRAW" x="350" param="5"> 660</event> <event cmd="DRAW" x="500" param="5"> 660</event> <event cmd="DRAW" x="262" param="16"> 704</event> <event cmd="DRAW" x="-20" param="5"> 760</event> <event cmd="DRAW" x="130" param="5"> 760</event> <event cmd="DRAW" x="370" param="5"> 760</event> <event cmd="DRAW" x="530" param="5"> 760</event> <event cmd="DRAW" x="000" param="5"> 860</event> <event cmd="DRAW" x="140" param="5"> 860</event> <event cmd="DRAW" x="350" param="5"> 860</event> <event cmd="DRAW" x="-20" param="5"> 960</event> <event cmd="DRAW" x="130" param="5"> 960</event> <event cmd="DRAW" x="370" param="5"> 960</event> <event cmd="DRAW" x="262" param="16"> 1011</event> <event cmd="DRAW" x="450" param="6"> 1012</event> <event cmd="DRAW" x="000" param="5"> 1060</event> <event cmd="DRAW" x="140" param="5"> 1060</event> <event cmd="DRAW" x="350" param="5"> 1060</event> <event cmd="DRAW" x="-20" param="5"> 1160</event> <event cmd="DRAW" x="130" param="5"> 1160</event> <event cmd="DRAW" x="370" param="5"> 1160</event> <event cmd="DRAW" x="520" param="5"> 1160</event> <event cmd="DRAW" x="000" param="5"> 1260</event> <event cmd="DRAW" x="140" param="5"> 1260</event> <event cmd="DRAW" x="360" param="5"> 1260</event> <event cmd="DRAW" x="500" param="5"> 1260</event> <event cmd="DRAW" x="262" param="16"> 1318</event> <event cmd="DRAW" x="000" param="5"> 1360</event> <event cmd="DRAW" x="140" param="5"> 1360</event> <event cmd="DRAW" x="370" param="5"> 1360</event> <event cmd="DRAW" x="520" param="5"> 1360</event> <event cmd="DRAW" x="000" param="5"> 1460</event> <event cmd="DRAW" x="140" param="5"> 1460</event> <event cmd="DRAW" x="380" param="5"> 1460</event> <event cmd="DRAW" x="500" param="5"> 1460</event> <event cmd="DRAW" x="346" param="20"> 1465</event> <event cmd="DRAW" x="114" param="18"> 1563</event> <event cmd="DRAW" x="-150" param="17"> 1563</event> <event cmd="DRAW" x="400" param="17"> 1563</event> <event cmd="DRAW" x="160" param="2"> 1635</event> <event cmd="DRAW" x="220" param="2"> 1650</event> <event cmd="DRAW" x="280" param="2"> 1635</event> <event cmd="DRAW" x="340" param="2"> 1650</event> <event cmd="DRAW" x="400" param="2"> 1635</event> <event cmd="DRAW" x="177" param="2"> 1685</event> <event cmd="DRAW" x="1" param="2"> 1637</event> <event cmd="DRAW" x="322" param="28"> 1744</event> <event cmd="DRAW" x="400" param="15"> 1780</event> <event cmd="DRAW" x="339" param="2"> 1802</event> <event cmd="DRAW" x="422" param="2"> 1831</event> <event cmd="DRAW" x="-14" param="2"> 1837</event> <event cmd="DRAW" x="-40" param="14"> 1875</event> <event cmd="DRAW" x="250" param="3"> 1880</event> <event cmd="DRAW" x="445" param="3"> 1880</event> <event cmd="DRAW" x="000" param="3"> 1920</event> <event cmd="DRAW" x="166" param="3"> 1965</event> <event cmd="DRAW" x="478" param="3"> 1978</event> <event cmd="DRAW" x="266" param="3"> 1997</event> <event cmd="DRAW" x="-40" param="3"> 1998</event> <event cmd="DRAW" x="112" param="3"> 2042</event> <event cmd="DRAW" x="368" param="3"> 2051</event> <event cmd="DRAW" x="000" param="3"> 2120</event> <event cmd="DRAW" x="250" param="3"> 2120</event> <event cmd="DRAW" x="445" param="3"> 2140</event> <event cmd="DRAW" x="120" param="3"> 2150</event> <event cmd="DRAW" x="270" param="3"> 2230</event> <event cmd="DRAW" x="470" param="3"> 2250</event> <event cmd="DRAW" x="050" param="3"> 2270</event> <event cmd="DRAW" x="150" param="3"> 2280</event> <event cmd="DRAW" x="256" param="3"> 2367</event> <event cmd="DRAW" x="176" param="3"> 2400</event> <event cmd="DRAW" x="368" param="3"> 2411</event> <event cmd="DRAW" x="000" param="3"> 2418</event> <event cmd="DRAW" x="478" param="3"> 2418</event> <event cmd="DRAW" x="100" param="3"> 2422</event> <event cmd="DRAW" x="511" param="29"> 2614</event> <event cmd="DRAW" x="158" param="29"> 2632</event> <event cmd="DRAW" x="-25" param="30"> 2649</event> <event cmd="DRAW" x="298" param="30"> 2651</event> <event cmd="DRAW" x="443" param="3"> 2684</event> <event cmd="DRAW" x="92" param="5"> 2695</event> <event cmd="DRAW" x="223" param="5"> 2698</event> <event cmd="DRAW" x="-100" param="3"> 2724</event> <event cmd="DRAW" x="000" param="5"> 2750</event> <event cmd="DRAW" x="359" param="3"> 2757</event> <event cmd="DRAW" x="275" param="3"> 2764</event> <event cmd="DRAW" x="144" param="5"> 2788</event> <event cmd="DRAW" x="436" param="3"> 2791</event> <event cmd="DRAW" x="-180" param="22"> 3047</event> <event cmd="DRAW" x="314" param="22"> 3047</event> <event cmd="DRAW" x="045" param="21"> 2995</event> <event cmd="DRAW" x="152" param="17"> 2899</event> <event cmd="DRAW" x="130" param="23"> 2980</event> <event cmd="DRAW" x="360" param="21"> 2995</event> <event cmd="DRAW" x="130" param="23"> 3050</event> <event cmd="DRAW" x="71" param="2"> 3066</event> <event cmd="DRAW" x="395" param="2"> 3113</event> <event cmd="DRAW" x="130" param="23"> 3120</event> <event cmd="DRAW" x="085" param="26"> 3260</event> <event cmd="DRAW" x="-32" param="16"> 3354</event> <event cmd="DRAW" x="462" param="16"> 3354</event> <event cmd="DRAW" x="085" param="26"> 3420</event> <event cmd="DRAW" x="97" param="2"> 3517</event> <event cmd="DRAW" x="190" param="23"> 3530</event> <event cmd="DRAW" x="190" param="23"> 3600</event> <event cmd="DRAW" x="-32" param="16"> 3661</event> <event cmd="DRAW" x="462" param="16"> 3661</event> <event cmd="DRAW" x="190" param="23"> 3670</event> <event cmd="DRAW" x="190" param="23"> 3740</event> <event cmd="DRAW" x="110" param="24"> 3740</event> <event cmd="DRAW" x="79" param="0"> 3802</event> <event cmd="DRAW" x="280" param="24"> 4005</event> <event cmd="DRAW" x="340" param="24"> 4005</event> <event cmd="DRAW" x="-32" param="16"> 3968</event> <event cmd="DRAW" x="-100" param="19"> 3968</event> <event cmd="DRAW" x="462" param="16"> 3968</event> <event cmd="DRAW" x="120" param="27"> 4070</event> <event cmd="DRAW" x="341" param="2"> 4076</event> <event cmd="DRAW" x="288" param="2"> 4115</event> <event cmd="DRAW" x="382" param="2"> 4119</event> <event cmd="DRAW" x="75" param="26"> 4250</event> <event cmd="DRAW" x="-32" param="16"> 4275</event> <event cmd="DRAW" x="462" param="16"> 4275</event> <event cmd="DRAW" x="69" param="2"> 4318</event> <event cmd="DRAW" x="140" param="2"> 4330</event> <event cmd="DRAW" x="201" param="2"> 4319</event> <event cmd="DRAW" x="277" param="2"> 4324</event> <event cmd="DRAW" x="352" param="2"> 4326</event> <event cmd="DRAW" x="100" param="23"> 4400</event> <event cmd="DRAW" x="58" param="2"> 4420</event> <event cmd="DRAW" x="100" param="23"> 4470</event> <event cmd="DRAW" x="100" param="23"> 4540</event> <event cmd="DRAW" x="100" param="23"> 4610</event> <event cmd="DRAW" x="360" param="24"> 4610</event> <event cmd="DRAW" x="-32" param="16"> 4582</event> <event cmd="DRAW" x="462" param="16"> 4582</event> <event cmd="DRAW" x="385" param="19"> 4400</event> <event cmd="DRAW" x="-32" param="16"> 4889</event> <event cmd="DRAW" x="462" param="16"> 4889</event> <event cmd="DRAW" x="080" param="14"> 4900</event> <event cmd="DRAW" x="070" param="25"> 4970</event> <event cmd="DRAW" x="400" param="20"> 4900</event> <event cmd="DRAW" x="-180" param="18"> 5088</event> <event cmd="DRAW" x="314" param="18"> 5088</event> <event cmd="DRAW" x="152" param="17"> 5088</event> <event cmd="DRAW" x="55" param="21"> 5185</event> <event cmd="DRAW" x="360" param="21"> 5185</event> <event cmd="DRAW" x="195" param="30"> 5224</event> <event cmd="DRAW" x="361" param="30"> 5256</event> <event cmd="DRAW" x="455" param="11"> 5285</event> <event cmd="DRAW" x="72" param="29"> 5292</event> <event cmd="DRAW" x="-85" param="11"> 5298</event> <event cmd="DRAW" x="346" param="12"> 5347</event> <event cmd="DRAW" x="324" param="12"> 5494</event> <event cmd="DRAW" x="380" param="11"> 5598</event> <event cmd="DRAW" x="174" param="12"> 5677</event> <event cmd="DRAW" x="405" param="11"> 5688</event> <event cmd="DRAW" x="0" param="11"> 5724</event> <event cmd="DRAW" x="425" param="11"> 5834</event> <event cmd="DRAW" x="16" param="12"> 5858</event> <event cmd="DRAW" x="434" param="12"> 5858</event> <event cmd="DRAW" x="132" param="11"> 5972</event> <event cmd="DRAW" x="256" param="11"> 6041</event> <event cmd="DRAW" x="124" param="12"> 6050</event> <event cmd="DRAW" x="-100" param="12"> 6081</event> <event cmd="DRAW" x="163" param="11"> 6112</event> <event cmd="DRAW" x="42" param="12"> 6213</event> <event cmd="DRAW" x="368" param="12"> 6221</event> <event cmd="DRAW" x="426" param="12"> 6216</event> <event cmd="DRAW" x="33" param="12"> 6263</event> <event cmd="DRAW" x="396" param="12"> 6265</event> <event cmd="DRAW" x="44" param="12"> 6444</event> <event cmd="DRAW" x="324" param="12"> 6494</event> <event cmd="DRAW" x="-10" param="11"> 6596</event> <event cmd="DRAW" x="380" param="11"> 6598</event> <event cmd="DRAW" x="174" param="12"> 6677</event> <event cmd="DRAW" x="405" param="11"> 6688</event> <event cmd="DRAW" x="0" param="11"> 6724</event> <event cmd="DRAW" x="425" param="11"> 6834</event> <event cmd="DRAW" x="16" param="12"> 6858</event> <event cmd="DRAW" x="434" param="12"> 6858</event> <event cmd="DRAW" x="132" param="11"> 6972</event> <event cmd="DRAW" x="256" param="11"> 7041</event> <event cmd="DRAW" x="124" param="12"> 7050</event> <event cmd="DRAW" x="-100" param="12"> 7081</event> <event cmd="DRAW" x="163" param="11"> 7112</event> <event cmd="DRAW" x="42" param="12"> 7213</event> <event cmd="DRAW" x="368" param="12"> 7221</event> <event cmd="DRAW" x="426" param="12"> 7216</event> <event cmd="DRAW" x="33" param="12"> 7263</event> <event cmd="DRAW" x="396" param="12"> 7265</event> <event cmd="DRAW" param="0"> 99999</event> <event cmd="BONUS" param="5"> 0</event> <event cmd="MSG" text="ALIENS HAVE DISCLOSED POSSIBLE JANE'S LOCATION" param="3">0050</event> <event cmd="SPAWN" etype="rocket" x="050" yacc="6"> 0100</event> <event cmd="SPAWN" etype="rocket" x="500" yacc="5"> 0150</event> <event cmd="SPAWN" etype="rocket" x="275" yacc="8"> 0300</event> <event cmd="MSG" text="THEY ALSO SAID IT'S BEING WELL GUARDED." param="3"> 0350</event> <event cmd="SPAWN" etype="rocket" x="500" yacc="5"> 0450</event> <event cmd="SPAWN" etype="rocket" x="050" yacc="7"> 0600</event> <event cmd="WAVE" prize="0"> 0700</event> <event cmd="SPAWN" etype="tank" x="315"> 0700</event> <event cmd="SPAWN" etype="tank" x="305" prize="0"> 0920</event> <event cmd="MSG" text="ENTERING MISSILE GARDEN" param="2"> 1100</event> <event cmd="SPAWN" etype="tank" x="305" yacc="3" prize="4"> 1200</event> <event cmd="ENDWAVE"> 1200</event> <event cmd="SPAWN" etype="tank" x="315" yacc="3"> 1560</event> <event cmd="SPAWN" etype="barrel" x="529"> 1876</event> <event cmd="SPAWN" etype="barrel" x="128"> 1918</event> <event cmd="SPAWN" etype="barrel" x="487"> 1921</event> <event cmd="SPAWN" etype="flak" x="420"> 2150</event> <event cmd="SPAWN" etype="red" x="200"> 2250</event> <event cmd="SPAWN" etype="barrel" x="473"> 2251</event> <event cmd="SPAWN" etype="barrel" x="102"> 2330</event> <event cmd="SPAWN" etype="e2" x="050" yacc="10"> 2400</event> <event cmd="SPAWN" etype="e2" x="150" yacc="11"> 2400</event> <event cmd="SPAWN" etype="e2" x="275" yacc="12"> 2400</event> <event cmd="SPAWN" etype="e2" x="400" yacc="13"> 2400</event> <event cmd="SPAWN" etype="e2bright" x="500" yacc="14" prize="3"> 2400</event> <event cmd="SPAWN" etype="flak" x="437"> 2498</event> <event cmd="SPAWN" etype="barrel" x="61"> 2567</event> <event cmd="SPAWN" etype="barrel" x="13"> 2590</event> <event cmd="SPAWN" etype="flak" x="422"> 2591</event> <event cmd="SPAWN" etype="flak" x="29"> 2592</event> <event cmd="SPAWN" etype="barrel" x="470"> 2594</event> <event cmd="SPAWN" etype="barrel" x="351"> 2612</event> <event cmd="SPAWN" etype="barrel" x="524"> 2635</event> <event cmd="SPAWN" etype="barrel" x="88"> 2643</event> <event cmd="WAVE" prize="0"> 2700</event> <event cmd="SPAWN" x="050" yacc="9"> 2700</event> <event cmd="SPAWN" x="150" yacc="10"> 2700</event> <event cmd="SPAWN" x="275" yacc="11"> 2700</event> <event cmd="SPAWN" x="400" yacc="10"> 2700</event> <event cmd="SPAWN" x="500" yacc="09"> 2700</event> <event cmd="ENDWAVE"> 2700</event> <event cmd="WAVE" prize="0"> 3000</event> <event cmd="SPAWN" x="050" yacc="14"> 3000</event> <event cmd="SPAWN" x="150" yacc="15"> 3000</event> <event cmd="SPAWN" x="275" yacc="16"> 3000</event> <event cmd="SPAWN" x="400" yacc="15"> 3000</event> <event cmd="SPAWN" x="500" yacc="14"> 3000</event> <event cmd="ENDWAVE"> 3000</event> <event cmd="SPAWN" etype="tank" x="504" yacc="3"> 3265</event> <event cmd="SPAWN" etype="tank" x="10"> 3400</event> <event cmd="SPAWN" etype="tank" x="15"> 3600</event> <event cmd="WAVE" prize="-1"> 3700</event> <event cmd="SPAWN" etype="e3" x="250"> 3700</event> <event cmd="SPAWN" etype="e3" x="330"> 3700</event> <event cmd="SPAWN" etype="e3" x="410"> 3700</event> <event cmd="SPAWN" etype="e3" x="490"> 3700</event> <event cmd="ENDWAVE"> 3700</event> <event cmd="SPAWN" etype="barrel" x="285"> 3701</event> <event cmd="SPAWN" etype="barrel" x="345"> 3701</event> <event cmd="SPAWN" etype="tank" x="10"> 3800</event> <event cmd="SPAWN" etype="tank" x="15"> 4000</event> <event cmd="SPAWN" etype="flak" x="510"> 4070</event> <event cmd="WAVE" prize="0"> 4100</event> <event cmd="SPAWN" etype="e3" x="250"> 4100</event> <event cmd="SPAWN" etype="e3" x="330"> 4100</event> <event cmd="SPAWN" etype="e3" x="410"> 4100</event> <event cmd="SPAWN" etype="e3" x="490"> 4100</event> <event cmd="ENDWAVE"> 4100</event> <event cmd="SPAWN" etype="rocket" x="50" xacc="1"> 4200</event> <event cmd="SPAWN" etype="rocket" x="500" xacc="-1"> 4600</event> <event cmd="SPAWN" etype="tank" x="540" yacc="3"> 4800</event> <event cmd="SPAWN" etype="tank" x="535" prize="2" yacc="3"> 5000</event> <event cmd="SPAWN" etype="barrel" x="360"> 5004</event> <event cmd="SPAWN" etype="tank" x="540" yacc="3"> 5200</event> <event cmd="WAVE" prize="0"> 5247</event> <event cmd="SPAWN" etype="barrel" x="412"> 5247</event> <event cmd="SPAWN" etype="barrel" x="363"> 5258</event> <event cmd="SPAWN" etype="barrel" x="393"> 5253</event> <event cmd="SPAWN" etype="barrel" x="440"> 5307</event> <event cmd="ENDWAVE"> 5307</event> <event cmd="SPAWN" etype="boat" x="242" yacc="3"> 5755</event> <event cmd="MSG" text="YOU ARE CLOSING TO THE SITE." param="3"> 5850</event> <event cmd="MSG" text="A SPOT APPEARS ON THE RADAR." param="3"> 6100</event> <event cmd="SPAWN" etype="boss" x="275" prize="200"> 6300</event> <event cmd="MSG" text="THE TIME IS OUT!" param="4"> 12100</event> <event cmd="END"> 12999</event> </level> ; private static const __level3:XML = <level name="Level 3"> <event cmd="TILE" param="6"> 0000</event> <event cmd="TILE" param="6"> 0888</event> <event cmd="TILE" param="14"> 0999</event> <event cmd="TILE" param="3"> 1110</event> <event cmd="TILE" param="3"> 2775</event> <event cmd="TILE" param="13"> 2886</event> <event cmd="TILE" param="6"> 2997</event> <event cmd="TILE" param="6"> 8200</event> <event cmd="TILE" param="14"> 8311</event> <event cmd="TILE" param="3"> 8422</event> <event cmd="TILE" param="3"> 9310</event> <event cmd="TILE" param="13"> 9421</event> <event cmd="TILE" param="6"> 9532</event> <event cmd="TILE" param="6"> 23200</event> <event cmd="DRAW" x="430" param="29"> 28</event> <event cmd="DRAW" x="187" param="30"> 57</event> <event cmd="DRAW" x="44" param="12"> 00044</event> <event cmd="DRAW" x="324" param="12"> 00094</event> <event cmd="DRAW" x="223" param="29"> 187</event> <event cmd="DRAW" x="-10" param="11"> 00196</event> <event cmd="DRAW" x="380" param="11"> 00198</event> <event cmd="DRAW" x="174" param="12"> 00277</event> <event cmd="DRAW" x="405" param="11"> 00288</event> <event cmd="DRAW" x="0" param="11"> 00324</event> <event cmd="DRAW" x="-33" param="29"> 369</event> <event cmd="DRAW" x="425" param="11"> 00434</event> <event cmd="DRAW" x="16" param="12"> 00458</event> <event cmd="DRAW" x="434" param="12"> 00458</event> <event cmd="DRAW" x="61" param="30"> 521</event> <event cmd="DRAW" x="443" param="29"> 531</event> <event cmd="DRAW" x="132" param="11"> 00572</event> <event cmd="DRAW" x="256" param="11"> 00641</event> <event cmd="DRAW" x="124" param="12"> 00650</event> <event cmd="DRAW" x="-100" param="12"> 00681</event> <event cmd="DRAW" x="163" param="11"> 00712</event> <event cmd="DRAW" x="-54" param="29"> 744</event> <event cmd="DRAW" x="42" param="12"> 00813</event> <event cmd="DRAW" x="368" param="12"> 00821</event> <event cmd="DRAW" x="426" param="12"> 00816</event> <event cmd="DRAW" x="149" param="30"> 856</event> <event cmd="DRAW" x="396" param="12"> 00865</event> <event cmd="DRAW" x="-22" param="29"> 940</event> <event cmd="DRAW" x="162" param="4"> 1017</event> <event cmd="DRAW" x="236" param="1"> 1032</event> <event cmd="DRAW" x="054" param="1"> 1057</event> <event cmd="DRAW" x="337" param="4"> 1071</event> <event cmd="DRAW" x="445" param="1"> 1081</event> <event cmd="DRAW" x="-56" param="3"> 1098</event> <event cmd="DRAW" x="172" param="3"> 1125</event> <event cmd="DRAW" x="62" param="5"> 1135</event> <event cmd="DRAW" x="435" param="3"> 1190</event> <event cmd="DRAW" x="304" param="5"> 1197</event> <event cmd="DRAW" x="127" param="4"> 1214</event> <event cmd="DRAW" x="008" param="1"> 1227</event> <event cmd="DRAW" x="386" param="4"> 1276</event> <event cmd="DRAW" x="232" param="1"> 1290</event> <event cmd="DRAW" x="105" param="3"> 1337</event> <event cmd="DRAW" x="000" param="5"> 1339</event> <event cmd="DRAW" x="501" param="1"> 1350</event> <event cmd="DRAW" x="265" param="4"> 1375</event> <event cmd="DRAW" x="-42" param="1"> 1382</event> <event cmd="DRAW" x="345" param="3"> 1422</event> <event cmd="DRAW" x="063" param="4"> 1428</event> <event cmd="DRAW" x="510" param="4"> 1457</event> <event cmd="DRAW" x="154" param="1"> 1461</event> <event cmd="DRAW" x="162" param="4"> 1517</event> <event cmd="DRAW" x="236" param="1"> 1532</event> <event cmd="DRAW" x="054" param="1"> 1557</event> <event cmd="DRAW" x="337" param="4"> 1571</event> <event cmd="DRAW" x="445" param="1"> 1581</event> <event cmd="DRAW" x="-56" param="3"> 1598</event> <event cmd="DRAW" x="172" param="3"> 1625</event> <event cmd="DRAW" x="62" param="5"> 1635</event> <event cmd="DRAW" x="397" param="2"> 1638</event> <event cmd="DRAW" x="-24" param="2"> 1671</event> <event cmd="DRAW" x="221" param="2"> 1698</event> <event cmd="DRAW" x="435" param="3"> 1690</event> <event cmd="DRAW" x="304" param="5"> 1697</event> <event cmd="DRAW" x="127" param="4"> 1714</event> <event cmd="DRAW" x="008" param="1"> 1727</event> <event cmd="DRAW" x="89" param="2"> 1770</event> <event cmd="DRAW" x="386" param="4"> 1776</event> <event cmd="DRAW" x="232" param="1"> 1790</event> <event cmd="DRAW" x="336" param="2"> 1804</event> <event cmd="DRAW" x="420" param="2"> 1832</event> <event cmd="DRAW" x="105" param="3"> 1837</event> <event cmd="DRAW" x="000" param="5"> 1839</event> <event cmd="DRAW" x="501" param="1"> 1850</event> <event cmd="DRAW" x="219" param="2"> 1855</event> <event cmd="DRAW" x="265" param="4"> 1875</event> <event cmd="DRAW" x="-42" param="1"> 1882</event> <event cmd="DRAW" x="459" param="2"> 1894</event> <event cmd="DRAW" x="345" param="3"> 1922</event> <event cmd="DRAW" x="063" param="4"> 1928</event> <event cmd="DRAW" x="263" param="2"> 1939</event> <event cmd="DRAW" x="510" param="4"> 1957</event> <event cmd="DRAW" x="154" param="1"> 1961</event> <event cmd="DRAW" x="-5" param="2"> 1984</event> <event cmd="DRAW" x="399" param="2"> 1994</event> <event cmd="DRAW" x="150" param="4"> 2000</event> <event cmd="DRAW" x="282" param="2"> 2001</event> <event cmd="DRAW" x="80" param="2"> 2002</event> <event cmd="DRAW" x="505" param="2"> 2008</event> <event cmd="DRAW" x="-1" param="17"> 2100</event> <event cmd="DRAW" x="262" param="17"> 2100</event> <event cmd="DRAW" x="444" param="17"> 2100</event> <event cmd="DRAW" x="276" param="2"> 2184</event> <event cmd="DRAW" x="198" param="21"> 2190</event> <event cmd="DRAW" x="365" param="5"> 2211</event> <event cmd="DRAW" x="005" param="1"> 2233</event> <event cmd="DRAW" x="142" param="0"> 2238</event> <event cmd="DRAW" x="239" param="5"> 2310</event> <event cmd="DRAW" x="99" param="4"> 2351</event> <event cmd="DRAW" x="192" param="2"> 2351</event> <event cmd="DRAW" x="-22" param="3"> 2381</event> <event cmd="DRAW" x="263" param="3"> 2438</event> <event cmd="DRAW" x="084" param="2"> 2445</event> <event cmd="DRAW" x="347" param="14"> 2484</event> <event cmd="DRAW" x="-6" param="4"> 2509</event> <event cmd="DRAW" x="413" param="3"> 2521</event> <event cmd="DRAW" x="093" param="10"> 2583</event> <event cmd="DRAW" x="230" param="13"> 2656</event> <event cmd="DRAW" x="-35" param="10"> 2698</event> <event cmd="DRAW" x="354" param="3"> 2720</event> <event cmd="DRAW" x="145" param="3"> 2742</event> <event cmd="DRAW" x="458" param="15"> 2765</event> <event cmd="DRAW" x="-7" param="3"> 2821</event> <event cmd="DRAW" x="291" param="3"> 2830</event> <event cmd="DRAW" x="123" param="3"> 2850</event> <event cmd="DRAW" x="196" param="10"> 3200</event> <event cmd="DRAW" x="-270" param="14"> 3223</event> <event cmd="DRAW" x="440" param="14"> 3267</event> <event cmd="DRAW" x="22" param="10"> 3335</event> <event cmd="DRAW" x="394" param="10"> 3379</event> <event cmd="DRAW" x="218" param="10"> 3520</event> <event cmd="DRAW" x="-158" param="10"> 3528</event> <event cmd="DRAW" x="29" param="10"> 3706</event> <event cmd="DRAW" x="412" param="10"> 3711</event> <event cmd="DRAW" x="251" param="30"> 3713</event> <event cmd="DRAW" x="139" param="29"> 3753</event> <event cmd="DRAW" x="-68" param="29"> 3760</event> <event cmd="DRAW" x="0" param="17"> 3863</event> <event cmd="DRAW" x="264" param="22"> 4011</event> <event cmd="DRAW" x="2" param="30"> 3875</event> <event cmd="DRAW" x="185" param="29"> 3874</event> <event cmd="DRAW" x="451" param="30"> 4010</event> <event cmd="DRAW" x="-153" param="25"> 4103</event> <event cmd="DRAW" x="34" param="14"> 4151</event> <event cmd="DRAW" x="-10" param="30"> 4020</event> <event cmd="DRAW" x="258" param="29"> 4016</event> <event cmd="DRAW" x="-161" param="25"> 4202</event> <event cmd="DRAW" x="412" param="16"> 4316</event> <event cmd="DRAW" x="329" param="19"> 4249</event> <event cmd="DRAW" x="435" param="30"> 4200</event> <event cmd="DRAW" x="-104" param="25"> 4336</event> <event cmd="DRAW" x="69" param="25"> 4248</event> <event cmd="DRAW" x="67" param="25"> 4349</event> <event cmd="DRAW" x="264" param="18"> 4558</event> <event cmd="DRAW" x="324" param="29"> 4412</event> <event cmd="DRAW" x="1" param="30"> 4455</event> <event cmd="DRAW" x="153" param="29"> 4457</event> <event cmd="DRAW" x="493" param="20"> 4484</event> <event cmd="DRAW" x="236" param="30"> 4697</event> <event cmd="DRAW" x="441" param="30"> 4692</event> <event cmd="DRAW" x="346" param="29"> 4700</event> <event cmd="DRAW" x="-129" param="22"> 4706</event> <event cmd="DRAW" x="295" param="30"> 4556</event> <event cmd="DRAW" x="-49" param="30"> 4562</event> <event cmd="DRAW" x="191" param="29"> 4569</event> <event cmd="DRAW" x="69" param="30"> 4572</event> <event cmd="DRAW" x="175" param="29"> 4747</event> <event cmd="DRAW" x="274" param="30"> 4796</event> <event cmd="DRAW" x="448" param="29"> 4804</event> <event cmd="DRAW" x="64" param="30"> 4718</event> <event cmd="DRAW" x="19" param="16"> 5011</event> <event cmd="DRAW" x="-60" param="29"> 4957</event> <event cmd="DRAW" x="-87" param="30"> 4771</event> <event cmd="DRAW" x="89" param="29"> 4820</event> <event cmd="DRAW" x="145" param="27"> 5146</event> <event cmd="DRAW" x="315" param="27"> 5146</event> <event cmd="DRAW" x="485" param="27"> 5146</event> <event cmd="DRAW" x="19" param="16"> 5316</event> <event cmd="DRAW" x="58" param="29"> 5163</event> <event cmd="DRAW" x="-77" param="30"> 5283</event> <event cmd="DRAW" x="145" param="27"> 5456</event> <event cmd="DRAW" x="315" param="27"> 5456</event> <event cmd="DRAW" x="485" param="27"> 5456</event> <event cmd="DRAW" x="19" param="16"> 5621</event> <event cmd="DRAW" x="39" param="30"> 5448</event> <event cmd="DRAW" x="-60" param="29"> 5596</event> <event cmd="DRAW" x="165" param="26"> 5605</event> <event cmd="DRAW" x="241" param="30"> 5578</event> <event cmd="DRAW" x="136" param="8"> 5739</event> <event cmd="DRAW" x="-129" param="18"> 5864</event> <event cmd="DRAW" x="234" param="17"> 5864</event> <event cmd="DRAW" x="498" param="17"> 5864</event> <event cmd="DRAW" x="280" param="8"> 5817</event> <event cmd="DRAW" x="-60" param="29"> 5859</event> <event cmd="DRAW" x="94" param="20"> 5799</event> <event cmd="DRAW" x="-51" param="19"> 5747</event> <event cmd="DRAW" x="237" param="30"> 5829</event> <event cmd="DRAW" x="-35" param="17"> 6000</event> <event cmd="DRAW" x="228" param="17"> 6000</event> <event cmd="DRAW" x="492" param="17"> 6000</event> <event cmd="DRAW" x="175" param="21"> 5962</event> <event cmd="DRAW" x="203" param="21"> 6100</event> <event cmd="DRAW" x="-27" param="30"> 6007</event> <event cmd="DRAW" x="110" param="29"> 6004</event> <event cmd="DRAW" x="222" param="30"> 6005</event> <event cmd="DRAW" x="360" param="29"> 6004</event> <event cmd="DRAW" x="472" param="30"> 6003</event> <event cmd="DRAW" x="78" param="30"> 6131</event> <event cmd="DRAW" x="-65" param="29"> 6132</event> <event cmd="DRAW" x="241" param="29"> 6136</event> <event cmd="DRAW" x="384" param="30"> 6132</event> <event cmd="DRAW" x="-30" param="8"> 6249</event> <event cmd="DRAW" x="123" param="8"> 6249</event> <event cmd="DRAW" x="276" param="8"> 6249</event> <event cmd="DRAW" x="431" param="8"> 6249</event> <event cmd="DRAW" x="-104" param="8"> 6374</event> <event cmd="DRAW" x="46" param="8"> 6374</event> <event cmd="DRAW" x="198" param="8"> 6374</event> <event cmd="DRAW" x="356" param="8"> 6374</event> <event cmd="DRAW" x="-33" param="8"> 6495</event> <event cmd="DRAW" x="125" param="8"> 6495</event> <event cmd="DRAW" x="292" param="8"> 6495</event> <event cmd="DRAW" x="463" param="8"> 6495</event> <event cmd="DRAW" x="352" param="29"> 8273</event> <event cmd="DRAW" x="6" param="29"> 8281</event> <event cmd="DRAW" x="168" param="30"> 8289</event> <event cmd="DRAW" x="462" param="30"> 8315</event> <event cmd="DRAW" x="-90" param="6"> 8500</event> <event cmd="DRAW" x="130" param="6"> 8500</event> <event cmd="DRAW" x="-2" param="17"> 8620</event> <event cmd="DRAW" x="262" param="17"> 8620</event> <event cmd="DRAW" x="526" param="17"> 8620</event> <event cmd="DRAW" x="414" param="2"> 8540</event> <event cmd="DRAW" x="62" param="2"> 8548</event> <event cmd="DRAW" x="249" param="2"> 8549</event> <event cmd="DRAW" x="334" param="2"> 8551</event> <event cmd="DRAW" x="479" param="2"> 8555</event> <event cmd="DRAW" x="-35" param="2"> 8555</event> <event cmd="DRAW" x="148" param="2"> 8556</event> <event cmd="DRAW" x="-20" param="6"> 8925</event> <event cmd="DRAW" x="206" param="6"> 8925</event> <event cmd="DRAW" x="436" param="6"> 8925</event> <event cmd="DRAW" x="-4" param="5"> 8716</event> <event cmd="DRAW" x="117" param="5"> 8718</event> <event cmd="DRAW" x="236" param="5"> 8721</event> <event cmd="DRAW" x="364" param="5"> 8725</event> <event cmd="DRAW" x="496" param="5"> 8726</event> <event cmd="DRAW" x="356" param="3"> 8889</event> <event cmd="DRAW" x="398" param="5"> 8812</event> <event cmd="DRAW" x="177" param="1"> 8799</event> <event cmd="DRAW" x="55" param="1"> 8791</event> <event cmd="DRAW" x="131" param="1"> 8893</event> <event cmd="DRAW" x="172" param="1"> 8989</event> <event cmd="DRAW" x="-6" param="1"> 9010</event> <event cmd="DRAW" x="369" param="1"> 9016</event> <event cmd="DRAW" x="255" param="1"> 9031</event> <event cmd="DRAW" x="502" param="1"> 9043</event> <event cmd="DRAW" x="104" param="1"> 9044</event> <event cmd="DRAW" x="420" param="1"> 9108</event> <event cmd="DRAW" x="193" param="1"> 9109</event> <event cmd="DRAW" x="297" param="1"> 9125</event> <event cmd="DRAW" x="16" param="1"> 9135</event> <event cmd="DRAW" x="115" param="1"> 9186</event> <event cmd="DRAW" x="456" param="1"> 9227</event> <event cmd="DRAW" x="331" param="1"> 9228</event> <event cmd="DRAW" x="34" param="1"> 9253</event> <event cmd="DRAW" x="404" param="1"> 9332</event> <event cmd="DRAW" x="267" param="1"> 9341</event> <event cmd="DRAW" x="-26" param="1"> 9347</event> <event cmd="DRAW" x="143" param="1"> 9352</event> <event cmd="DRAW" x="400" param="30"> 9650</event> <event cmd="DRAW" param="0"> 99999</event> <event cmd="WAVE" prize="0"> 0000</event> <event cmd="SPAWN" etype="e1" x="025"> 0000</event> <event cmd="SPAWN" etype="e1" x="165"> 0000</event> <event cmd="SPAWN" etype="e1" x="275"> 0000</event> <event cmd="SPAWN" etype="e1" x="385"> 0000</event> <event cmd="SPAWN" etype="e1" x="525"> 0000</event> <event cmd="ENDWAVE"> 0000</event> <event cmd="WAVE" prize="3"> 0200</event> <event cmd="SPAWN" etype="vbright" x="250" yacc="8"> 0200</event> <event cmd="SPAWN" etype="vbright" x="450" yacc="8"> 0200</event> <event cmd="SPAWN" etype="red" x="350" yacc="8"> 0225</event> <event cmd="SPAWN" etype="vbright" x="250" yacc="8"> 0270</event> <event cmd="SPAWN" etype="vbright" x="450" yacc="8"> 0275</event> <event cmd="ENDWAVE"> 0300</event> <event cmd="SPAWN" etype="barrel" x="400"> 0520</event> <event cmd="SPAWN" etype="flak" x="400"> 0550</event> <event cmd="WAVE" prize="0"> 0800</event> <event cmd="SPAWN" etype="vbright" x="050" yacc="9"> 0800</event> <event cmd="SPAWN" etype="vbright" x="250" yacc="9"> 0800</event> <event cmd="SPAWN" etype="red" x="150" yacc="9"> 0825</event> <event cmd="SPAWN" etype="vbright" x="050" yacc="9"> 0875</event> <event cmd="SPAWN" etype="vbright" x="250" yacc="9"> 0875</event> <event cmd="ENDWAVE"> 0900</event> <event cmd="SPAWN" etype="flak" x="100"> 0950</event> <event cmd="SPAWN" etype="barrel" x="050"> 1050</event> <event cmd="SPAWN" etype="barrel" x="372"> 1030</event> <event cmd="SPAWN" etype="flak" x="320"> 1060</event> <event cmd="WAVE" prize="1"> 1200</event> <event cmd="SPAWN" etype="vbright" x="150" yacc="10"> 1200</event> <event cmd="SPAWN" etype="vbright" x="350" yacc="10"> 1200</event> <event cmd="SPAWN" etype="red" x="250" yacc="10"> 1225</event> <event cmd="SPAWN" etype="vbright" x="150" yacc="10"> 1275</event> <event cmd="SPAWN" etype="vbright" x="350" yacc="10"> 1275</event> <event cmd="ENDWAVE"> 1300</event> <event cmd="SPAWN" etype="smallufo2" prize="1"> 1500</event> <event cmd="SPAWN" etype="smallufo2" prize="0"> 1550</event> <event cmd="SPAWN" etype="smallufo2" prize="4"> 1600</event> <event cmd="WAVE" prize="1"> 2100</event> <event cmd="SPAWN" etype="bastard" x="150" yacc="9"> 2100</event> <event cmd="SPAWN" etype="bastard" x="400" yacc="9"> 2100</event> <event cmd="SPAWN" etype="bastard" x="150" yacc="9"> 2200</event> <event cmd="SPAWN" etype="bastard" x="400" yacc="9"> 2200</event> <event cmd="SPAWN" etype="bastard" x="275" yacc="9"> 2300</event> <event cmd="ENDWAVE"> 2300</event> <event cmd="SPAWN" etype="barrel" x="151"> 2470</event> <event cmd="SPAWN" etype="barrel" x="502"> 2482</event> <event cmd="SPAWN" etype="barrel" x="140"> 2997</event> <event cmd="SPAWN" etype="flak" x="120"> 3037</event> <event cmd="SPAWN" etype="balloon" x="700" y="370" yacc="0.01" xacc="-2"> 3100</event> <event cmd="SPAWN" etype="barrel" x="490"> 3122</event> <event cmd="SPAWN" etype="barrel" x="520"> 3122</event> <event cmd="SPAWN" etype="flak" x="500"> 3157</event> <event cmd="SPAWN" etype="barrel" x="365"> 3360</event> <event cmd="SPAWN" etype="barrel" x="245"> 3360</event> <event cmd="SPAWN" etype="tank" x="167"> 3393</event> <event cmd="SPAWN" etype="tank" x="448"> 3474</event> <event cmd="SPAWN" etype="barrel" x="130"> 3747</event> <event cmd="SPAWN" etype="barrel" x="170"> 3747</event> <event cmd="SPAWN" etype="flak" x="150"> 3767</event> <event cmd="SPAWN" etype="balloon" x="700" y="070" yacc="1" xacc="-3"> 3800</event> <event cmd="SPAWN" etype="barrel" x="416"> 4157</event> <event cmd="SPAWN" etype="barrel" x="446"> 4157</event> <event cmd="SPAWN" etype="flak" x="466"> 4197</event> <event cmd="SPAWN" etype="balloon" x="700" y="170" yacc="0.01" xacc="-2"> 4250</event> <event cmd="SPAWN" etype="tank" x="463" yacc="3"> 4325</event> <event cmd="SPAWN" etype="tank" x="458" yacc="3"> 4597</event> <event cmd="SPAWN" etype="barrel" x="301"> 4722</event> <event cmd="SPAWN" etype="flak" x="311"> 4748</event> <event cmd="SPAWN" etype="barrel" x="270"> 5000</event> <event cmd="SPAWN" etype="barrel" x="220"> 5050</event> <event cmd="SPAWN" etype="barrel" x="320"> 5050</event> <event cmd="SPAWN" etype="balloon" x="700" y="370" yacc="0.01" xacc="-3"> 5060</event> <event cmd="SPAWN" etype="flak" x="250"> 5070</event> <event cmd="SPAWN" etype="e1" x="300"> 5097</event> <event cmd="SPAWN" etype="e1" x="360"> 5117</event> <event cmd="SPAWN" etype="e1" x="420"> 5137</event> <event cmd="SPAWN" etype="e1" x="480"> 5157</event> <event cmd="SPAWN" etype="tank" x="65" yacc="3"> 5132</event> <event cmd="SPAWN" etype="barrel" x="130"> 5221</event> <event cmd="SPAWN" etype="red" x="400" yacc="10"> 5297</event> <event cmd="SPAWN" etype="tank" x="65" yacc="3"> 5395</event> <event cmd="SPAWN" etype="balloon" x="700" y="275" yacc="0.01" xacc="-3"> 5400</event> <event cmd="SPAWN" etype="red" x="300" yacc="10"> 5497</event> <event cmd="SPAWN" etype="red" x="500" yacc="10"> 5557</event> <event cmd="SPAWN" etype="tank" x="69" yacc="3"> 5659</event> <event cmd="SPAWN" etype="tank" x="515" yacc="3"> 6041</event> <event cmd="SPAWN" etype="balloon" x="700" y="275" yacc="0.01" xacc="-2"> 6050</event> <event cmd="SPAWN" etype="red" x="515" yacc="12"> 6200</event> <event cmd="SPAWN" etype="red" x="35" yacc="12"> 6400</event> <event cmd="WAVE" prize="0"> 6600</event> <event cmd="SPAWN" etype="e1" x="225" yacc="8"> 6600</event> <event cmd="SPAWN" etype="e1" x="275" yacc="8"> 6600</event> <event cmd="SPAWN" etype="e1" x="325" yacc="8"> 6600</event> <event cmd="ENDWAVE"> 6600</event> <event cmd="WAVE" prize="5"> 6800</event> <event cmd="SPAWN" etype="e1" x="125" yacc="3"> 6800</event> <event cmd="SPAWN" etype="e1" x="225" yacc="3"> 6800</event> <event cmd="SPAWN" etype="e1" x="275" yacc="3"> 6800</event> <event cmd="SPAWN" etype="e1" x="325" yacc="3"> 6800</event> <event cmd="SPAWN" etype="e1" x="425" yacc="3"> 6800</event> <event cmd="ENDWAVE"> 6800</event> <event cmd="WAVE" prize="-1"> 7050</event> <event cmd="SPAWN" etype="e1" x="125" yacc="5"> 7050</event> <event cmd="SPAWN" etype="e1" x="225" yacc="5"> 7050</event> <event cmd="SPAWN" etype="e1" x="275" yacc="5"> 7050</event> <event cmd="SPAWN" etype="e1" x="325" yacc="5"> 7050</event> <event cmd="SPAWN" etype="e1" x="425" yacc="5"> 7050</event> <event cmd="ENDWAVE"> 7050</event> <event cmd="WAVE" prize="5"> 7250</event> <event cmd="SPAWN" etype="tank" x="50"> 7250</event> <event cmd="SPAWN" etype="tank" x="350"> 7350</event> <event cmd="SPAWN" etype="tank" x="200"> 7450</event> <event cmd="ENDWAVE"> 7450</event> <event cmd="WAVE" prize="1"> 7550</event> <event cmd="SPAWN" etype="tank" x="500"> 7550</event> <event cmd="SPAWN" etype="tank" x="50"> 7650</event> <event cmd="SPAWN" etype="tank" x="350"> 7750</event> <event cmd="ENDWAVE"> 7750</event> <event cmd="WAVE" prize="0"> 7850</event> <event cmd="SPAWN" etype="tank" x="200"> 7850</event> <event cmd="SPAWN" etype="tank" x="500"> 7950</event> <event cmd="ENDWAVE"> 8000</event> <event cmd="SPAWN" etype="bastard" x="100" yacc="7"> 8200</event> <event cmd="SPAWN" etype="bastard" x="275" yacc="7"> 8250</event> <event cmd="SPAWN" etype="bastard" x="450" yacc="7"> 8300</event> <event cmd="SPAWN" etype="flak" x="170"> 8490</event> <event cmd="SPAWN" etype="flak" x="350" prize="0"> 8490</event> <event cmd="SPAWN" etype="barrel" x="104"> 8555</event> <event cmd="SPAWN" etype="barrel" x="343"> 8614</event> <event cmd="SPAWN" etype="barrel" x="395"> 8616</event> <event cmd="SPAWN" etype="barrel" x="136"> 8626</event> <event cmd="SPAWN" etype="barrel" x="370"> 8650</event> <event cmd="SPAWN" etype="barrel" x="430"> 8650</event> <event cmd="SPAWN" etype="barrel" x="490"> 8650</event> <event cmd="SPAWN" etype="barrel" x="400"> 8700</event> <event cmd="SPAWN" etype="barrel" x="460"> 8700</event> <event cmd="SPAWN" etype="barrel" x="520"> 8700</event> <event cmd="SPAWN" etype="barrel" x="370"> 8750</event> <event cmd="SPAWN" etype="barrel" x="430"> 8750</event> <event cmd="SPAWN" etype="barrel" x="490"> 8750</event> <event cmd="SPAWN" etype="barrel" x="178"> 9415</event> <event cmd="SPAWN" etype="barrel" x="128"> 9415</event> <event cmd="SPAWN" etype="barrel" x="425"> 9465</event> <event cmd="SPAWN" etype="ufo2" x="300"> 9400</event> <event cmd="END"> 19999</event> </level> ; private static const __levelXML:Array = [__level1, __level2, __level3]; public static const levelsTotal:int = __levelXML.length; public static const lastLevel:int = (__levelXML.length - 1); public static var objects:Array; public static var currentGfxObject:Object; public static var currentEvent:Object; private static var __tiles:Array; private static var __levelData:Array; private static var __tilesData:Array; private static var __levelGfx:Array; public function LevelParser(_arg1:int){ maxTime = 0; Tile.reset(); __levelData = []; __levelGfx = []; __tilesData = []; objects = [new Assets.tree_aspen(), new Assets.tree_birch(), new Assets.tree_fir(), new Assets.tree_maple(), new Assets.tree_oak(), new Assets.tree_elm(), new Assets.house01(), new Assets.house02(), new Assets.tank01(), new Assets.tile_sand(), new Assets.tank03(), new Assets.rock02(), new Assets.rock03(), new Assets.house03(), new Assets.house04(), new Assets.house05(), new Assets.road01(), new Assets.road02(), new Assets.roadJunction(), new Assets.roadSign01(), new Assets.roadSign02(), new Assets.roadSign03(), new Assets.roadJunctionLower(), new Assets.cistern01(), new Assets.cistern02(), new Assets.cistern03(), new Assets.hangar01(), new Assets.hangar02(), new Assets.tree_poplar(), new Assets.tree_palm(), new Assets.tree_palm1()]; parse(__levelXML[Values.limit(_arg1, 0, levelsTotal)]); popEvent(); popGfxObject(); } private function parse(_arg1:XML):void{ var _local2:XML; var _local3:Object; for each (_local2 in _arg1.elements()) { _local3 = new Object(); _local3.cmd = _local2.@cmd; _local3.etype = _local2.@etype; _local3.offset = int(_local2); _local3.param = int(_local2.@param); _local3.text = _local2.@text; _local3.prize = _local2.@prize; _local3.time = int(_local2); _local3.tree = _local2.@tree; _local3.x = _local2.@x; _local3.xacc = _local2.@xacc; _local3.y = _local2.@y; _local3.yacc = _local2.@yacc; if (_local3.cmd == "DRAW"){ __levelGfx.push(_local3); } else { if (_local3.cmd == "COMMENT"){ } else { if (_local3.cmd == "TILE"){ new Tile(_local3.offset, _local3.param); } else { __levelData.push(_local3); if (_local3.time > maxTime){ maxTime = _local3.time; }; }; }; }; parse(_local2); }; } public static function popGfxObject():Boolean{ if (__levelGfx.length > 0){ currentGfxObject = __levelGfx.shift(); currentGfxObject.bitmap = objects[Values.limit(currentGfxObject.param, 0, (objects.length - 1))]; return (true); }; return (false); } public static function popEvent():Boolean{ if (__levelData.length > 0){ currentEvent = __levelData.shift(); return (true); }; trace("no more events left"); return (false); } } }//package com.parser
Section 15
//Tile (com.parser.Tile) package com.parser { import flash.display.*; import Embedded.*; import lib.utils.*; public class Tile { public var index:int; public var offset:int; public var bitmap:Bitmap; public static const tileHeight:int = 111; private static var __queue:Array; public static var tilesTotal:int; private static var __lastOffset:int; public function Tile(_arg1:int, _arg2:int){ while (__lastOffset < _arg1) { __lastOffset = (__lastOffset + tileHeight); __queue[__lastOffset] = this; if ((_arg2 % 3) != 0){ break; }; }; offset = _arg1; index = Values.bound(Assets.tiles, _arg2); bitmap = Assets.tiles[index]; tilesTotal++; } public static function reset():void{ __queue = []; __lastOffset = -(tileHeight); tilesTotal = 0; } public static function byOffset(_arg1:int):Bitmap{ var _local2:int = (_arg1 - (_arg1 % tileHeight)); return (__queue[_local2].bitmap); } } }//package com.parser
Section 16
//PlayerProgress (com.playerprogress.PlayerProgress) package com.playerprogress { public class PlayerProgress { public static var gunneryBonus:int; public static var enemiesKilled:int; public static var weaponUpgradeLevel:int; public static var lives:int; public static var weaponPower:int; public static var currentLevel:int; public static var levelsPassed:int; public static var score:int; public static var enemiesSpawned:int; public static var rockets:int; public static var hitsTaken:int; public static var enemyCollisions:int; public static var bonusCollected:int; public static var shotsFired:int; public static var missilesLaunched:int; public static function reset():void{ bonusCollected = 0; currentLevel = 0; enemiesKilled = 0; enemiesSpawned = 0; gunneryBonus = 0; hitsTaken = 0; lives = 3; levelsPassed = 0; rockets = 0; score = 0; shotsFired = 0; missilesLaunched = 0; weaponPower = 1; weaponUpgradeLevel = 1; } public static function nextLevel():void{ currentLevel++; } public static function toString():String{ return ((((((((((((((("\nKILLS: " + enemiesKilled) + " OF ") + enemiesSpawned) + " (") + Number(((enemiesKilled / enemiesSpawned) * 100)).toPrecision(3)) + "%)") + "\nSHOTS FIRED: ") + shotsFired) + "\nMISSILES LAUNCHED: ") + missilesLaunched) + "\n\nGUNNERY BONUS: ") + calcGunneryBonus()) + "\n\nNEW SCORE: ") + addScore(gunneryBonus))); } public static function calcGunneryBonus():int{ gunneryBonus = (int((((600 / shotsFired) * 50) + (30 / missilesLaunched))) * 10); return (gunneryBonus); } public static function addScore(_arg1:int):int{ score = (score + _arg1); return (score); } } }//package com.playerprogress
Section 17
//Balloon (com.pocomaxa.gos.Balloon) package com.pocomaxa.gos { import flash.events.*; import flash.geom.*; import com.pocomaxa.*; import Embedded.*; import lib.utils.*; import com.pocomaxa.mos.*; public class Balloon extends GameObject { public var currentLocator:Counter; public function Balloon(_arg1:int=0, _arg2:int=0){ super(Assets.Balloon, true, null, _arg1, _arg2); currentLocator = new Counter(2); loopAnimation(15); fireSetup(1000, 3); setValue(1000); } override public function periodicFire(_arg1:TimerEvent):void{ var _local2:Point; var _local3:Number; currentLocator.step(); switch (currentLocator.count){ case 0: Skylark.enemy_shells.push(new Pellet(Assets.PelletCircle, ((x + 23) - 75), ((y + 159) - 93), -2, 2)); break; case 1: Skylark.enemy_shells.push(new Pellet(Assets.PelletCircle, ((x + 72) - 75), ((y + 184) - 93), 0, 2)); break; case 2: Skylark.enemy_shells.push(new Pellet(Assets.PelletCircle, ((x + 128) - 75), ((y + 173) - 93), 2, 2)); break; }; } override public function outOfBounds():Boolean{ return ((((((((y < -100)) || ((y > 650)))) || ((x < -200)))) || ((x > 750)))); } } }//package com.pocomaxa.gos
Section 18
//Barrel (com.pocomaxa.gos.Barrel) package com.pocomaxa.gos { import flash.geom.*; import com.pocomaxa.*; import flash.display.*; import com.scroller.*; import Embedded.*; import lib.utils.*; import com.render.*; public class Barrel extends GroundObject { public var vX:int;// = 2 public var vY:int;// = 2 public function Barrel(_arg1:int=0, _arg2:int=0){ super(Assets.Barrel, true, null, _arg1, _arg2); loopAnimation(5); setValue(100); setSpeed(0, Scroller.pixelsPerScroll); stopTimer(); } override public function die(_arg1:Boolean=false):void{ var _local2:String; if (alreadyKilled){ return; }; alreadyKilled = true; mark(); if (_arg1){ Skylark.startTilt(); Skylark.effects.push(new Effect(Assets.SmallerExp, x, y)); Skylark.effects.push(new Effect(Assets.Explo, x, y, true, (1 + int((Math.random() * 7))))); for (_local2 in Skylark.enemies) { if (((((!((Skylark.enemies[_local2] == this))) && ((Geom.distanceToPoint(Point(this), Point(Skylark.enemies[_local2])) < 150)))) && (!(GameObject(Skylark.enemies[_local2]).onTop)))){ GameObject(Skylark.enemies[_local2]).die(true); }; }; switch (int((Math.random() * 3))){ case 1: Render.sound.play(Assets.ExplosionSound1, Point(this)); case 2: Render.sound.play(Assets.ExplosionSound2, Point(this)); default: Render.sound.play(Assets.ExplosionSound3, Point(this)); }; }; Render.backBuffer.draw(Bitmap(Assets.objCache(Assets.craterDecal)), new Matrix(1, 0, 0, 1, (matrix.tx - 16), ((matrix.ty + Scroller.bufOffset) - 16)), new ColorTransform(0, 0, 0, 0.75)); dispose(); } } }//package com.pocomaxa.gos
Section 19
//Bastard (com.pocomaxa.gos.Bastard) package com.pocomaxa.gos { import flash.events.*; import flash.geom.*; import com.pocomaxa.*; import Embedded.*; import lib.utils.*; import com.render.*; import com.pocomaxa.mos.*; public class Bastard extends GameObject { public function Bastard(_arg1:int=0, _arg2:int=0){ super(Assets.TheBoss, true, null, _arg1, _arg2, false); matrix.a = 0.5; matrix.d = 0.5; shadowMatrix.a = 0.25; shadowMatrix.d = 0.25; specialColorTransform = new ColorTransform(1, 1, 1, 0); transColorTransform = new ColorTransform(1, 1, 1, 0); setSpeed(0, 1); setYAccel(0.03, 8); fireSetup(1500, 0); setValue(500); } override public function periodicFire(_arg1:TimerEvent):void{ Render.sound.play(Assets.UfoShotSound, Point(this)); Skylark.enemy_shells.push(new UFOShot(x, (y + 75))); } override public function move(_arg1:Number=-1, _arg2:Number=-1):void{ if (outOfBounds()){ die(); return; }; var _local3:Number = Geom.distanceToPoint(this, Render.craftCoords); var _local4:Number = Values.limit((1 - (_local3 / 350)), 0, 1); specialColorTransform.alphaMultiplier = _local4; transColorTransform.alphaMultiplier = (_local4 / 2); shadowColorTransform.alphaOffset = (63 * _local4); if (Math.abs((xSpeed + xAccel)) < xSpeedLimit){ xSpeed = (xSpeed + xAccel); }; if (Math.abs((ySpeed + yAccel)) < ySpeedLimit){ ySpeed = (ySpeed + yAccel); }; setPosition((x + (Render.timeC * xSpeed)), (y + (Render.timeC * ySpeed))); } } }//package com.pocomaxa.gos
Section 20
//Boat (com.pocomaxa.gos.Boat) package com.pocomaxa.gos { import flash.events.*; import flash.geom.*; import com.pocomaxa.*; import Embedded.*; import com.pocomaxa.mos.*; public class Boat extends GroundObject { public var xSpeeds:Array; public var ySpeeds:Array; public var currentLocator:int; public var locators:Array; public function Boat(_arg1:int=0, _arg2:int=0){ super(Assets.TheBoat, false, Assets.BoatTrace, _arg1, _arg2); currentLocator = 1; locators = [new Point(-60, -22), new Point(-15, 90), new Point(15, 90), new Point(60, -22)]; xSpeeds = [-2, 0, 0, 2]; ySpeeds = [-1, 2, 2, -1]; fireSetup(500, 0); setSpeed(0, 4); setValue(400); } override public function periodicFire(_arg1:TimerEvent):void{ if (currentLocator < 3){ currentLocator++; } else { currentLocator = 0; }; var _local2:Point = locators[currentLocator]; Skylark.enemy_shells.push(new GuidedPellet(Assets.PelletCircle, (x + _local2.x), (y + _local2.y), xSpeeds[currentLocator], ySpeeds[currentLocator], 10, (Math.PI / 2), 3501)); } } }//package com.pocomaxa.gos
Section 21
//Bonus (com.pocomaxa.gos.Bonus) package com.pocomaxa.gos { import flash.geom.*; import com.pocomaxa.*; import lib.utils.*; import com.render.*; public class Bonus extends GameObject { public var goRadius:Number; public var origin:Point; public var goAngle:Number; public var value:int;// = 50 public var type:int; public static const HEALTH:int = 0; public static const POWER:int = 4; public static const AMMOX2:int = 3; public static const LIVE:int = 2; public static const SPECIAL_ENDLEVEL:int = 200; public static const SPECIAL_LEVEL1:int = 101; public static const SPECIAL_FIN:int = 777; public static const SPECIAL:int = 100; public static const SPECIAL_KILLALL:int = 300; public static const KILL:int = 1; public static const ROCKETS:int = 5; public function Bonus(_arg1:Class, _arg2:Boolean, _arg3:Point, _arg4:int=0){ super(_arg1, _arg2, null, _arg3.x, _arg3.y); matrix.a = 0; matrix.d = 0; origin = Point(_arg3); loopedAnimation = true; frameCount = 3; type = _arg4; goAngle = 0; goRadius = 0; } override public function toString():String{ switch (type){ case HEALTH: return ("RESTORE HEALTH"); case KILL: return ("KILL ALL ENEMIES"); case LIVE: return ("EXTRA LIFE"); case AMMOX2: return ("SPEED UP FIRE"); case POWER: return ("MORE POWER"); case ROCKETS: return ("+10 MISSILES"); default: return ("?"); }; } override public function isBonus():Boolean{ return (true); } public function translatePosition(_arg1:Number):void{ setPosition((origin.x - ((Math.cos(_arg1) * goRadius) / 2)), (origin.y - (Math.sin(_arg1) * goRadius))); } override public function move(_arg1:Number=-1, _arg2:Number=-1):void{ if (outOfBounds()){ die(); }; if (matrix.a < 1){ matrix.a = Values.limit((matrix.a + (0.2 * Render.timeC)), 0, 1); matrix.d = matrix.a; }; goAngle = (goAngle + ((Math.PI / 80) * Render.timeC)); if (goAngle > Math.PI){ goAngle = -(Math.PI); }; if (goRadius < 50){ goRadius = (goRadius + 0.25); }; origin.y = (origin.y + (3 * Render.timeC)); translatePosition(goAngle); setNextFrame(); } } }//package com.pocomaxa.gos
Section 22
//Craft (com.pocomaxa.gos.Craft) package com.pocomaxa.gos { import flash.events.*; import flash.geom.*; import com.pocomaxa.*; import flash.utils.*; import com.GUI.*; import Embedded.*; import lib.utils.*; import com.state.*; import com.input.*; import com.playerprogress.*; import com.render.*; import com.pocomaxa.mos.*; public class Craft extends GameObject { public const locatorX:Array; public const initialFireDelay:int = 200; public const WP_BOMB:int = 2; public const defaultXSpeed:int = 50; public const WP_AUTOCANNON:int = 0; public const WP_MISSILE:int = 1; public const defaultYSpeed:int = 50; public var prevXDir:int;// = 0 public var yDir:int;// = 0 public var currentLocator:int;// = 0 public var prevYDir:int;// = 0 public var currentWeapon:int; public var xDir:int;// = 0 public function Craft(_arg1:int, _arg2:int){ locatorX = [-20, 10, -15, 15, -10, 20]; super(Assets.ThePlane, true, Assets.Vint, _arg1, _arg2, false); resetupFire(); blinkTimes = 8; transColorTransform.alphaMultiplier = 0; xSpeedLimit = 80; xAccel = 3; ySpeedLimit = 80; yAccel = 3; currentWeapon = WP_AUTOCANNON; resume(); } public function resetupFire():void{ stopTimer(); fireSetup((initialFireDelay - (PlayerProgress.weaponUpgradeLevel * 10)), 0); } override public function getFireLocator():Point{ if (currentLocator < (locatorX.length - 1)){ currentLocator++; } else { currentLocator = 0; }; return (new Point((x + locatorX[currentLocator]), (y - 20))); } override public function move(_arg1:Number=-1, _arg2:Number=-1):void{ if (renderDisabled){ return; }; prevXDir = xDir; prevYDir = yDir; if ((((x >= (_arg1 - 1))) && ((x <= (_arg1 + 1))))){ setFrame(1); xSpeed = defaultXSpeed; xDir = 0; } else { if (x > _arg1){ xDir = -1; setFrame(2); } else { if (x < _arg1){ xDir = 1; setFrame(3); }; }; }; if ((((y >= (_arg2 - 1))) && ((y <= (_arg2 + 1))))){ ySpeed = defaultYSpeed; yDir = 0; } else { if (y > _arg2){ yDir = -1; } else { if (y < _arg2){ yDir = 1; }; }; }; if (prevXDir != xDir){ xSpeed = 0; }; if (prevYDir != yDir){ ySpeed = 0; }; var _local3:Number = Values.limit(Render.timeC, 1, 2); x = (x + Values.limit(((xSpeed * xDir) * _local3), -(Math.abs((_arg1 - x))), Math.abs((_arg1 - x)))); y = (y + Values.limit(((ySpeed * yDir) * _local3), -(Math.abs((_arg2 - y))), Math.abs((_arg2 - y)))); if (x > (Screen.width + 10)){ x = (Screen.width + 10); xDir = 0; return; }; if (x < 10){ x = 10; xDir = 0; return; }; if (y > (Screen.height - 40)){ y = (Screen.height - 40); }; if (y < 40){ y = 40; }; xSpeed = Values.limit((xSpeed + xAccel), 1, xSpeedLimit); ySpeed = Values.limit((ySpeed + yAccel), 1, ySpeedLimit); Render.craftCoords = Point(this); } public function comeOutAndPlay(_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER_COMPLETE, comeOutAndPlay); renderDisabled = false; setPosition((Screen.width / 2), ((Screen.height / 3) * 2)); blink(); resetupFire(); } public function respawn():void{ renderDisabled = true; currentLocator = 0; health = 100; stopTimer(); timer = new Timer(1000, 1); timer.addEventListener(TimerEvent.TIMER_COMPLETE, comeOutAndPlay, false, 0, true); timer.start(); Skylark.effects.push(new Effect(Assets.SmallerExp, (x - 25), y, true)); Skylark.effects.push(new Effect(Assets.SmallerExp, (x + 25), y, true, 1)); Skylark.effects.push(new Effect(Assets.SmallerExp, x, (y - 25), true, 3)); Skylark.effects.push(new Effect(Assets.SmallerExp, x, (y + 25), true, 5)); Skylark.effects.push(new Effect(Assets.Explo, x, y, true, 7)); } override public function periodicFire(_arg1:TimerEvent):void{ var _local2:Point; if (((((renderDisabled) || (GameState.isPaused()))) || (!(((Input.isFiring) || (Input.shotsOrdered)))))){ return; }; if (Input.shotsOrdered){ Input.shotsOrdered--; }; switch (currentWeapon){ case WP_AUTOCANNON: PlayerProgress.shotsFired++; _local2 = getFireLocator(); switch (PlayerProgress.weaponPower){ case 4: Skylark.rockets.push(new Shot((_local2.x - 4), (_local2.y - 7), 0, 0)); Skylark.rockets.push(new Shot((_local2.x + 4), (_local2.y - 7), 0, 0)); Skylark.rockets.push(new Shot((_local2.x - 4), (_local2.y + 7), 0, 0)); Skylark.rockets.push(new Shot((_local2.x + 4), (_local2.y + 7), 0, 0)); break; case 2: Skylark.rockets.push(new Shot((_local2.x - 4), _local2.y, 0, 0)); Skylark.rockets.push(new Shot((_local2.x + 4), _local2.y, 0, 0)); break; case 3: Skylark.rockets.push(new Shot((_local2.x - 6), (_local2.y + 3), 0, 0)); Skylark.rockets.push(new Shot((_local2.x + 6), (_local2.y + 3), 0, 0)); default: Skylark.rockets.push(new Shot(_local2.x, _local2.y, 0, 0)); }; Skylark.sound.play(Assets.ShotSound, Point(this)); break; case WP_MISSILE: if (!PlayerProgress.rockets){ Skylark.currentMessage.show("OUT OF AMMO\nENGAGING AUTOCANNON", 1001); currentWeapon = WP_AUTOCANNON; return; }; Skylark.sound.play(Assets.MissileShotSound, Point(this)); PlayerProgress.rockets--; Skylark.rockets.push(new Missile(Assets.RocketAndTrace, null, x, (y - 40))); PlayerProgress.missilesLaunched++; break; }; } } }//package com.pocomaxa.gos
Section 23
//EscapePod (com.pocomaxa.gos.EscapePod) package com.pocomaxa.gos { import flash.geom.*; import com.message.*; import com.GUI.*; import com.playerprogress.*; import com.render.*; public class EscapePod extends UFO { public function EscapePod(){ super(false); matrix.a = 0; matrix.d = 0; shadowMatrix.a = 0; shadowMatrix.d = 0; goRadius = 35; shotRadius = 45; setValue(750); setSpeed(0, -1); specialColorTransform = new ColorTransform(0.5, 0.5, 0.5); transColorTransform = new ColorTransform(0.6, 0.6, 0.6); Skylark.currentMessage.show("CATCH THE ESCAPE POD!", 2001, null, Message.HIGHEST); } override public function move(_arg1:Number=-1, _arg2:Number=-1):void{ if (matrix.a < 0.5){ matrix.a = (matrix.a + 0.01); matrix.d = matrix.a; shadowMatrix.a = (matrix.a / 2); shadowMatrix.d = shadowMatrix.a; }; goAngle = (goAngle + ((Math.PI / 50) * Render.timeC)); if (goAngle > Math.PI){ goAngle = -(Math.PI); }; translatePosition(goAngle); if ((((x > threshold)) && ((x < (Screen.width - threshold))))){ setFrame(1); }; if (x > (Screen.width - threshold)){ setFrame(2); }; if (x < threshold){ setFrame(3); }; } override public function translateShadowX(_arg1:int):int{ return (((_arg1 / 1.2) - 60)); } override public function translateShadowY(_arg1:int):int{ return (((_arg1 / 1.2) + 60)); } override public function dispose():void{ objectsTotal--; PlayerProgress.enemiesSpawned++; Skylark.enemies.push(new EscapePod2(x, y)); } override public function translatePosition(_arg1:Number):void{ setPosition(((Screen.width / 2) - (Math.cos(_arg1) * goRadius)), (Screen.height / 2)); } } }//package com.pocomaxa.gos
Section 24
//EscapePod2 (com.pocomaxa.gos.EscapePod2) package com.pocomaxa.gos { import flash.events.*; import flash.geom.*; import com.message.*; import Embedded.*; import com.pocomaxa.mos.*; public class EscapePod2 extends UFO { public function EscapePod2(_arg1:Number, _arg2:Number){ super(false); matrix.a = 0.25; matrix.d = 0.25; shadowMatrix.a = 0.125; shadowMatrix.d = 0.125; goRadius = 25; shotRadius = 25; setValue(501); specialColorTransform = new ColorTransform(0.4, 0.4, 0.4); transColorTransform = new ColorTransform(0.5, 0.5, 0.5); scoreValue = 5000; Skylark.currentMessage.show("LAND THIS ONE!", 2001, null, Message.HIGHEST); prize = Bonus.SPECIAL_FIN; } override public function periodicFire(_arg1:TimerEvent):void{ var _local2:Point = getFireLocator(); Skylark.enemy_shells.push(new GuidedPellet(Assets.PelletCircle, _local2.x, _local2.y, 0, 0, 0, 0)); } override public function translateShadowX(_arg1:int):int{ return (((_arg1 / 1.2) - 60)); } override public function translateShadowY(_arg1:int):int{ return (((_arg1 / 1.2) + 60)); } override public function dispose():void{ objectsTotal--; Skylark.enemies.push(new Jane(x, y)); } } }//package com.pocomaxa.gos
Section 25
//Flak (com.pocomaxa.gos.Flak) package com.pocomaxa.gos { import flash.events.*; import flash.geom.*; import com.pocomaxa.*; import com.scroller.*; import Embedded.*; import com.render.*; import com.pocomaxa.mos.*; public class Flak extends GroundObject { public var vX:int;// = 2 public var vY:int;// = 2 public function Flak(_arg1:int=0, _arg2:int=0){ super(Assets.Flak, true, null, _arg1, _arg2); loopAnimation(5); fireSetup(2000, 0); setValue(1000); setSpeed(0, Scroller.pixelsPerScroll); } override public function periodicFire(_arg1:TimerEvent):void{ if (outOfBounds()){ die(); return; }; var _local2:Point = getFireLocator(); Skylark.effects.push(new Effect(Assets.SmallerExp, _local2.x, _local2.y, false)); Skylark.enemy_shells.push(new Explosive(Assets.FoeMissile, _local2.x, _local2.y, vX, (vY + 1), 1701, 5, Math.atan2(vX, vY), 1)); Skylark.enemy_shells.push(new Explosive(Assets.FoeMissile, _local2.x, _local2.y, vX, (vY - 1), 1901, 5, Math.atan2(vX, vY))); } override public function getFireLocator():Point{ var _local1:Point; switch (getFrame()){ case 1: _local1 = new Point((x + 20), (y + 10)); vX = 2; vY = 2; break; case 2: _local1 = new Point((x - 20), (y + 10)); vX = -2; vY = 2; break; case 3: _local1 = new Point((x - 30), (y - 40)); vX = -2; vY = -2; break; case 4: _local1 = new Point((x + 30), (y - 40)); vX = 2; vY = -2; break; }; return (_local1); } override public function setNextFrame():void{ if (x < Render.craftCoords.x){ if (y < Render.craftCoords.y){ setFrame(1); } else { setFrame(4); }; } else { if (y < Render.craftCoords.y){ setFrame(2); } else { setFrame(3); }; }; } } }//package com.pocomaxa.gos
Section 26
//Jane (com.pocomaxa.gos.Jane) package com.pocomaxa.gos { import flash.geom.*; import com.pocomaxa.*; import com.scroller.*; import Embedded.*; public class Jane extends GroundObject { public function Jane(_arg1:Number, _arg2:Number){ super(Assets.UFO, true, null, _arg1, _arg2); setSpeed(0, Scroller.pixelsPerScroll); matrix.a = 0.25; matrix.d = 0.25; shadowMatrix.a = 0.25; shadowMatrix.d = 0.25; setValue(1000000); specialColorTransform = new ColorTransform(0.4, 0.4, 0.4); transColorTransform = new ColorTransform(0.5, 0.5, 0.5); } } }//package com.pocomaxa.gos
Section 27
//RedBaron (com.pocomaxa.gos.RedBaron) package com.pocomaxa.gos { import flash.events.*; import com.pocomaxa.*; import Embedded.*; import com.pocomaxa.mos.*; public class RedBaron extends GameObject { private var locCount:int; public function RedBaron(_arg1:int=0, _arg2:int=0){ super(Assets.RedBaron, true, Assets.RedTrace, _arg1, _arg2); fireSetup(1000, 0); setValue(1000); locCount = 0; } override public function periodicFire(_arg1:TimerEvent):void{ switch (locCount){ case 0: Skylark.enemy_shells.push(new Explosive(Assets.FoeMissile, (x - 7), (y + 42), -0.1, 2, 1700, 5, (Math.PI * 2))); locCount++; break; case 1: Skylark.enemy_shells.push(new Explosive(Assets.FoeMissile, (x + 7), (y + 42), 0.1, 2, 1500, 5, (Math.PI * 2))); locCount++; break; default: locCount = 0; break; }; } } }//package com.pocomaxa.gos
Section 28
//Rocket (com.pocomaxa.gos.Rocket) package com.pocomaxa.gos { import flash.geom.*; import com.pocomaxa.*; import Embedded.*; import lib.utils.*; import com.render.*; import com.pocomaxa.mos.*; public class Rocket extends GameObject { public function Rocket(_arg1:int=0, _arg2:int=0){ super(Assets.SkyRocket, true, null, _arg1, _arg2); loopAnimation(); stopTimer(); setValue(10000); specialColorTransform = new ColorTransform(); } override public function move(_arg1:Number=-1, _arg2:Number=-1):void{ var _local3:Number; var _local5:Number; var _local6:int; var _local7:int; var _local8:Number; var _local9:Number; if (outOfBounds()){ die(); return; }; _local3 = Geom.distanceToPoint(this, Render.craftCoords); var _local4:Number = Values.limit((3 - (_local3 / 200)), 1, 3); specialColorTransform.redMultiplier = _local4; specialColorTransform.greenMultiplier = _local4; specialColorTransform.blueMultiplier = _local4; transColorTransform = specialColorTransform; if (_local3 < 120){ _local5 = -(Math.PI); _local6 = 15; _local7 = 0; while (_local7 < _local6) { _local8 = Math.cos(_local5); _local9 = Math.sin(_local5); Skylark.enemy_shells.push(new GuidedPellet(Assets.FoeMissile, (x + (_local8 * 50)), (y + (_local9 * 50)), _local8, _local9, 22, Math.atan2(_local8, _local9), 4001)); _local5 = (_local5 + ((Math.PI * 2) / _local6)); _local7++; }; Skylark.effects.push(new Effect(Assets.Explo, x, y)); die(); }; if (Math.abs((xSpeed + xAccel)) < xSpeedLimit){ xSpeed = (xSpeed + xAccel); }; if (Math.abs((ySpeed + yAccel)) < ySpeedLimit){ ySpeed = (ySpeed + yAccel); }; setPosition((x + (Render.timeC * xSpeed)), (y + (Render.timeC * ySpeed))); } } }//package com.pocomaxa.gos
Section 29
//SmallUFO (com.pocomaxa.gos.SmallUFO) package com.pocomaxa.gos { import com.GUI.*; import com.render.*; public class SmallUFO extends UFO { public function SmallUFO(){ super(false); matrix.a = 0.33; matrix.d = 0.33; shadowMatrix.a = 0.165; shadowMatrix.d = 0.165; shotRadius = 45; stopTimer(); setValue(500); } override public function move(_arg1:Number=-1, _arg2:Number=-1):void{ goAngle = (goAngle + ((Math.PI / 50) * Render.timeC)); if (goAngle > Math.PI){ goAngle = -(Math.PI); }; translatePosition(goAngle); goRadius = (goRadius + goStep); if (Math.abs(goRadius) >= (Screen.height / 2)){ goStep = -(goStep); }; if (goRadius > threshold){ goStep = (-1 * Math.abs(goStep)); }; if ((((x > threshold)) && ((x < (Screen.width - threshold))))){ setFrame(1); }; if (x > (Screen.width - threshold)){ setFrame(2); }; if (x < threshold){ setFrame(3); }; } override public function translateShadowX(_arg1:int):int{ return (((_arg1 / 1.2) - 60)); } override public function translateShadowY(_arg1:int):int{ return (((_arg1 / 1.2) + 60)); } } }//package com.pocomaxa.gos
Section 30
//SmallUFO2 (com.pocomaxa.gos.SmallUFO2) package com.pocomaxa.gos { import com.pocomaxa.*; import com.GUI.*; import Embedded.*; import com.render.*; import com.pocomaxa.mos.*; public class SmallUFO2 extends UFO { public function SmallUFO2(){ super(false); matrix.a = 0.33; matrix.d = 0.33; shadowMatrix.a = 0.165; shadowMatrix.d = 0.165; stopTimer(); timerCallbackSetup((5000 + (Math.random() * 1000)), explode); setValue(500); goRadius = Screen.width; threshold = (Screen.width / 2); goAngle = Math.PI; } override public function move(_arg1:Number=-1, _arg2:Number=-1):void{ goAngle = (goAngle + ((Math.PI / 50) * Render.timeC)); if (goAngle > Math.PI){ goAngle = -(Math.PI); }; translatePosition(goAngle); if (goRadius >= (Screen.height / 4)){ goRadius = (goRadius - 3); }; if ((((x > threshold)) && ((x < (Screen.width - threshold))))){ setFrame(1); }; if (x > (Screen.width - threshold)){ setFrame(2); }; if (x < threshold){ setFrame(3); }; } public function explode():void{ var _local4:Number; var _local5:Number; var _local1:Number = -(Math.PI); var _local2 = 15; var _local3:int; while (_local3 < _local2) { _local4 = Math.cos(_local1); _local5 = Math.sin(_local1); Skylark.enemy_shells.push(new GuidedPellet(Assets.FoeMissile, (x + (_local4 * 50)), (y + (_local5 * 50)), _local4, _local5, 22, Math.atan2(_local4, _local5), 4001)); _local1 = (_local1 + ((Math.PI * 2) / _local2)); _local3++; }; Skylark.effects.push(new Effect(Assets.SmallerExp, x, y)); die(); } override public function translateShadowX(_arg1:int):int{ return (((_arg1 / 1.2) - 60)); } override public function translateShadowY(_arg1:int):int{ return (((_arg1 / 1.2) + 60)); } } }//package com.pocomaxa.gos
Section 31
//Tank (com.pocomaxa.gos.Tank) package com.pocomaxa.gos { import flash.events.*; import com.pocomaxa.*; import com.scroller.*; import Embedded.*; import com.render.*; import com.pocomaxa.mos.*; public class Tank extends GroundObject { public function Tank(_arg1:int=0){ super(Assets.ArmoredUnit, false, null, _arg1, Render.ABOVE_THE_BORDER); fireSetup(1800, 0); setValue(1000); setSpeed(0, (Scroller.pixelsPerScroll + 1)); } override public function periodicFire(_arg1:TimerEvent):void{ Skylark.enemy_shells.push(new GuidedPellet(Assets.FoeMissile, x, (y + 50), 0, 2, 10, Math.PI)); Skylark.effects.push(new Effect(Assets.SmallerExp, x, (y + 60))); } } }//package com.pocomaxa.gos
Section 32
//TheBoss (com.pocomaxa.gos.TheBoss) package com.pocomaxa.gos { import flash.events.*; import flash.geom.*; import com.pocomaxa.*; import com.GUI.*; import Embedded.*; import lib.utils.*; import com.render.*; import com.pocomaxa.mos.*; public class TheBoss extends GameObject { private var counter:Counter; public var currentLocator:int; public var speeds:Array; public var locators:Array; public function TheBoss(_arg1:int=0, _arg2:int=0){ super(Assets.TheBoss, true, Assets.BossTrace, _arg1, _arg2, true); setSpeed(0, 1); setYAccel(0.15, 1); fireSetup(500, 0); setValue(12500); counter = new Counter(25); currentLocator = 1; locators = [new Point(-125, 70), new Point(-115, 70), new Point(-65, 100), new Point(65, 100), new Point(115, 70), new Point(125, 70)]; speeds = [-2, 2, -0.5, 0.5, -2, 2]; } override public function move(_arg1:Number=-1, _arg2:Number=-1):void{ if (outOfBounds()){ die(); return; }; if (y < (mc.height / 2)){ y = (y + (1 * Render.timeC)); }; if (x < ((Screen.width / 2) - 1)){ x = (x + (1 * Render.timeC)); }; if (x > ((Screen.width / 2) + 1)){ x = (x - (1 * Render.timeC)); }; } override public function periodicFire(_arg1:TimerEvent):void{ var _local2:int; var _local3:Point; counter.step(); if (counter.isInRange(0, 5)){ _local2 = 0; while (_local2 < 3) { _local3 = locators[_local2]; Skylark.enemy_shells.push(new Pellet(Assets.PelletCircle, (x + _local3.x), (y + _local3.y), speeds[_local2], 6, 50)); _local2++; }; }; if (counter.isInRange(10, 15)){ _local2 = 3; while (_local2 < 6) { _local3 = locators[_local2]; Skylark.enemy_shells.push(new Pellet(Assets.PelletCircle, (x + _local3.x), (y + _local3.y), speeds[_local2], 6, 50)); _local2++; }; }; if (counter.isInRange(20, 22)){ Skylark.enemy_shells.push(new GuidedPellet(Assets.FoeMissile, (x - 150), (y + 60), 0, 2, 10, (Math.PI * 2))); Skylark.enemy_shells.push(new GuidedPellet(Assets.FoeMissile, (x + 150), (y + 60), 0, 2, 10, (Math.PI * 2))); }; } } }//package com.pocomaxa.gos
Section 33
//UFO (com.pocomaxa.gos.UFO) package com.pocomaxa.gos { import flash.events.*; import flash.geom.*; import com.pocomaxa.*; import com.GUI.*; import Embedded.*; import com.render.*; import com.pocomaxa.mos.*; public class UFO extends GameObject { public var threshold:int; protected var shotRadius:int; public var goAngle:Number; public var goRadius:Number; public var goStep:int; public function UFO(_arg1:Boolean=true){ goAngle = 0; goStep = 1; shotRadius = 100; threshold = (Screen.width / 1.5); goRadius = Screen.width; translatePosition(goAngle); super(Assets.UFO, true, null, x, y, _arg1); fireSetup(1000, 0); setValue(5000); attachEngineSound(Assets.UfoEngineSound); } override public function move(_arg1:Number=-1, _arg2:Number=-1):void{ goAngle = (goAngle + ((Math.PI / 80) * Render.timeC)); if (goAngle > Math.PI){ goAngle = -(Math.PI); }; translatePosition(goAngle); goRadius = (goRadius + goStep); if (Math.abs(goRadius) >= (Screen.height / 2)){ goStep = -(goStep); }; if (goRadius > threshold){ goStep = (-1 * Math.abs(goStep)); }; if ((((x > threshold)) && ((x < (Screen.width - threshold))))){ setFrame(1); }; if (x > (Screen.width - threshold)){ setFrame(2); }; if (x < threshold){ setFrame(3); }; } override public function getFireLocator():Point{ var _local1:Number = getAngleToPoint(Render.craftCoords); return (new Point((x + (Math.sin(_local1) * shotRadius)), (y + (Math.cos(_local1) * shotRadius)))); } override public function periodicFire(_arg1:TimerEvent):void{ Render.sound.play(Assets.UfoShotSound, Point(this)); var _local2:Point = getFireLocator(); Skylark.enemy_shells.push(new UFOShot(_local2.x, _local2.y)); } public function translatePosition(_arg1:Number):void{ setPosition(((Screen.width / 2) - (Math.cos(_arg1) * goRadius)), ((Screen.height / 2) - ((Math.sin(_arg1) * goRadius) / 2))); } } }//package com.pocomaxa.gos
Section 34
//UFO2 (com.pocomaxa.gos.UFO2) package com.pocomaxa.gos { import flash.geom.*; import com.pocomaxa.*; import com.scroller.*; import Embedded.*; import com.playerprogress.*; public class UFO2 extends GroundObject { public var threshold:int; public var goStep:int; public var goRadius:Number; public var goAngle:Number; protected var shotRadius:int; public function UFO2(_arg1:Number, _arg2:Number){ super(Assets.UFO, true, null, _arg1, _arg2, true); setValue(1001); setSpeed(0, Scroller.pixelsPerScroll); setFrame(2); attachEngineSound(Assets.UfoEngineSound); specialColorTransform = new ColorTransform(0.75, 0.75, 0.75); transColorTransform = new ColorTransform(0.8, 0.8, 0.8); } override public function dispose():void{ objectsTotal--; PlayerProgress.enemiesSpawned++; Skylark.enemies.push(new EscapePod()); } } }//package com.pocomaxa.gos
Section 35
//Wasp (com.pocomaxa.gos.Wasp) package com.pocomaxa.gos { import flash.geom.*; import com.pocomaxa.*; import Embedded.*; public class Wasp extends GameObject { public function Wasp(_arg1:int=0, _arg2:int=0, _arg3:Boolean=false){ super(Assets.Enemy2Sprite, true, Assets.WaspTrace, _arg1, _arg2); fireSetup(1500, 0); setYAccel(2, 10); setValue(50); if (_arg3){ setValue(100); specialColorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, -255, 0); transColorTransform.blueOffset = -255; }; } } }//package com.pocomaxa.gos
Section 36
//WaspE1 (com.pocomaxa.gos.WaspE1) package com.pocomaxa.gos { import flash.geom.*; import com.pocomaxa.*; import com.GUI.*; import Embedded.*; public class WaspE1 extends GameObject { public var fireCount:int;// = 1 public function WaspE1(_arg1:int=0, _arg2:int=0){ super(Assets.Enemy2Sprite, true, Assets.WaspTrace, _arg1, _arg2); fireSetup(1500, 0); setYAccel(2, 5); setSpeed(0, 0); setValue(50); setValue(100); } override public function getFireLocator():Point{ if (fireCount){ fireCount--; } else { setXAccel(((-1 * Math.abs(((Screen.width / 2) - x))) / ((Screen.width / 2) - x)), 13); setYAccel(1, 33); }; return (new Point(x, (y + 20))); } } }//package com.pocomaxa.gos
Section 37
//WaspE3 (com.pocomaxa.gos.WaspE3) package com.pocomaxa.gos { import flash.geom.*; import com.pocomaxa.*; import Embedded.*; public class WaspE3 extends GameObject { public var fireCount:int;// = 1 public function WaspE3(_arg1:int=0, _arg2:int=0, _arg3:Boolean=false){ super(Assets.Enemy2Sprite, true, Assets.WaspTrace, _arg1, _arg2); fireSetup(750, 0); setYAccel(2, 5); setSpeed(0, 0); setValue(50); if (_arg3){ setValue(100); specialColorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, -255, 0); shadowColorTransform.blueOffset = -255; }; } override public function getFireLocator():Point{ if (fireCount){ fireCount--; } else { setYAccel(2, 33); }; return (new Point(x, (y + 20))); } } }//package com.pocomaxa.gos
Section 38
//Villain (com.pocomaxa.gos.Villain) package com.pocomaxa.gos { import flash.geom.*; import com.pocomaxa.*; import Embedded.*; public class Villain extends GameObject { public function Villain(_arg1:int=0, _arg2:int=0, _arg3:Boolean=false){ super(Assets.EnemySprite, true, Assets.EnemyPropAndTrace, _arg1, _arg2); fireSetup(1200, 0); if (_arg3){ specialColorTransform = new ColorTransform(1, 1, 1, 1, 0, -31, 0, 0); transColorTransform.greenOffset = -31; }; } } }//package com.pocomaxa.gos
Section 39
//Explosive (com.pocomaxa.mos.Explosive) package com.pocomaxa.mos { import com.pocomaxa.*; import Embedded.*; public class Explosive extends GuidedPellet { public var testCount:int;// = 0 public var num:int; public var angleOffset:Number;// = 0 public function Explosive(_arg1:Class, _arg2:int, _arg3:int, _arg4:Number, _arg5:Number, _arg6:int=1000, _arg7:int=8, _arg8:Number=1.5707963267949, _arg9:Number=0){ super(_arg1, _arg2, _arg3, _arg4, _arg5, 10, _arg8); angleOffset = _arg9; timerCallbackSetup((_arg6 + ((Math.random() * _arg6) / 10)), explode); num = _arg7; damage = 33; } public function explode():void{ var _local3:Pellet; var _local1:Number = (-(Math.PI) + angleOffset); var _local2:int; while (_local2 < num) { _local3 = new Pellet(Assets.PelletCircle, x, y, Math.cos(_local1), Math.sin(_local1), 100); Skylark.enemy_shells.push(_local3); _local1 = (_local1 + ((Math.PI * 2) / num)); _local2++; }; Skylark.effects.push(new Effect(Assets.SmallerExp, x, y)); die(); } } }//package com.pocomaxa.mos
Section 40
//GuidedPellet (com.pocomaxa.mos.GuidedPellet) package com.pocomaxa.mos { import com.pocomaxa.*; import Embedded.*; import com.render.*; public class GuidedPellet extends Pellet { public var countdown:int; public function GuidedPellet(_arg1:Class, _arg2:int, _arg3:int, _arg4:Number, _arg5:Number, _arg6:int, _arg7:Number, _arg8:int=5000){ super(_arg1, _arg2, _arg3, _arg4, _arg5); countdown = _arg6; matrix.a = -(Math.cos(_arg7)); matrix.b = Math.sin(_arg7); matrix.c = -(Math.sin(_arg7)); matrix.d = -(Math.cos(_arg7)); timerCallbackSetup((_arg8 + ((Math.random() * _arg8) / 10)), fire); } override public function move(_arg1:Number=-1, _arg2:Number=-1):void{ if (outOfBounds()){ die(); return; }; setNextFrame(); if (countdown){ countdown--; } else { getGuide(0, 12, true); }; if (Math.abs((xSpeed + xAccel)) < xSpeedLimit){ xSpeed = (xSpeed + xAccel); }; if (Math.abs((ySpeed + yAccel)) < ySpeedLimit){ ySpeed = (ySpeed + yAccel); }; setPosition((x + (Render.timeC * xSpeed)), (y + (Render.timeC * ySpeed))); } public function fire():void{ Skylark.effects.push(new Effect(Assets.SmallerExp, x, y)); die(); } } }//package com.pocomaxa.mos
Section 41
//Missile (com.pocomaxa.mos.Missile) package com.pocomaxa.mos { import com.pocomaxa.*; public class Missile extends ShellProxy { public function Missile(_arg1:Class, _arg2:Class, _arg3:int=0, _arg4:int=0){ super(_arg1, _arg3, _arg4); setSpeed(0, 0); setYAccel(-1, 50); damage = 1250; } } }//package com.pocomaxa.mos
Section 42
//Pellet (com.pocomaxa.mos.Pellet) package com.pocomaxa.mos { import com.pocomaxa.*; public class Pellet extends ShellProxy { public function Pellet(_arg1:Class, _arg2:int, _arg3:int, _arg4:Number, _arg5:Number, _arg6:Number=12){ super(_arg1, _arg2, _arg3); damage = 8; setSpeed(0, 0); setXAccel(_arg4, _arg6); setYAccel(_arg5, _arg6); } } }//package com.pocomaxa.mos
Section 43
//Shot (com.pocomaxa.mos.Shot) package com.pocomaxa.mos { import com.pocomaxa.*; import Embedded.*; import com.playerprogress.*; public class Shot extends ShellProxy { public function Shot(_arg1:int, _arg2:int, _arg3:Number, _arg4:Number){ super(Assets.CraftShot, _arg1, _arg2); damage = (75 - (PlayerProgress.weaponPower * 10)); setSpeed(0, -30); setYAccel(_arg4, 30); setXAccel(_arg3, 30); } } }//package com.pocomaxa.mos
Section 44
//UFOShot (com.pocomaxa.mos.UFOShot) package com.pocomaxa.mos { import flash.geom.*; import com.pocomaxa.*; import flash.display.*; import Embedded.*; import com.render.*; public class UFOShot extends Pellet { public var colCheckActive:Boolean;// = true public function UFOShot(_arg1:int, _arg2:int){ super(Assets.UFORay, _arg1, _arg2, 2, 2); blendMode = BlendMode.ADD; getGuide(1, 12, true); xSpeed = xAccel; ySpeed = yAccel; damage = 40; } override public function die(_arg1:Boolean=false):void{ colCheckActive = false; move(); } override public function move(_arg1:Number=-1, _arg2:Number=-1):void{ if (outOfBounds()){ dispose(); mark(); return; }; setNextFrame(); matrix.a = (matrix.a * 1.035); matrix.b = (matrix.b * 1.035); matrix.c = (matrix.c * 1.035); matrix.d = (matrix.d * 1.035); xSpeed = (xSpeed + xAccel); ySpeed = (ySpeed + yAccel); setPosition((x + (Render.timeC * xSpeed)), (y + (Render.timeC * ySpeed))); } override public function checkCollision(_arg1:MovingObject):Boolean{ if (((isMarked()) || (!(colCheckActive)))){ return (false); }; var _local2:Rectangle = mc.getRect(mc); _local2.offsetPoint(this); var _local3:Rectangle = _arg1.mc.getRect(_arg1.mc); _local3.offsetPoint(_arg1); if (!_local2.intersects(_local3)){ return (false); }; var _local4:Rectangle = _local2.intersection(_local3); if ((((_local4.width < 1)) || ((_local4.height < 1)))){ return (false); }; var _local5:BitmapData = new BitmapData(_local4.width, _local4.height, false, 4294967295); __collisionMatrix.a = matrix.a; __collisionMatrix.d = matrix.d; __collisionMatrix.tx = (x - _local4.left); __collisionMatrix.ty = (y - _local4.top); _local5.draw(mc, __collisionMatrix, __ct1stPass); __collisionMatrix.a = _arg1.matrix.a; __collisionMatrix.d = _arg1.matrix.d; __collisionMatrix.tx = (_arg1.x - _local4.left); __collisionMatrix.ty = (_arg1.y - _local4.top); _local5.draw(_arg1.mc, __collisionMatrix, __ct2ndPass, "difference"); var _local6:Rectangle = _local5.getColorBoundsRect(4294967295, 4278255615); return (!((_local6.width == 0))); } } }//package com.pocomaxa.mos
Section 45
//Effect (com.pocomaxa.Effect) package com.pocomaxa { import flash.geom.*; import flash.display.*; import Embedded.*; import com.render.*; public class Effect { public var matrix:Matrix; public var colorTransform:ColorTransform;// = null public var frame:int;// = 1 public var mc:MovieClip; public var marked:Boolean;// = false public var framesToWait:int;// = 0 public function Effect(_arg1:Class, _arg2:int, _arg3:int, _arg4:Boolean=true, _arg5:int=0){ framesToWait = _arg5; matrix = new Matrix(1, 0, 0, 1, _arg2, _arg3); if (_arg4){ colorTransform = new ColorTransform(); }; mc = MovieClip(Assets.objCache(_arg1)); } public function updateClips():void{ if (framesToWait){ framesToWait--; return; }; mc.gotoAndStop(frame); if (colorTransform){ colorTransform.alphaMultiplier = (colorTransform.alphaMultiplier - 0.085); }; Render.drawBuffer.draw(mc, matrix, colorTransform); if (frame == mc.totalFrames){ marked = true; } else { frame++; }; } } }//package com.pocomaxa
Section 46
//GameObject (com.pocomaxa.GameObject) package com.pocomaxa { import flash.events.*; import flash.geom.*; import flash.display.*; import flash.utils.*; import com.GUI.*; import com.scroller.*; import Embedded.*; import com.playerprogress.*; import com.render.*; import com.pocomaxa.mos.*; public class GameObject extends MovingObject { public var shadowMatrix:Matrix; protected var __movingSound:Class; public var shadowColorTransform:ColorTransform; protected var __bossMode:Boolean;// = false public var transColorTransform:ColorTransform; public var prize:int;// = -1 private var __blinkTimer:Timer; private var __effect_mc:MovieClip;// = null public var renderDisabled:Boolean;// = false public var blinkTimes:uint;// = 2 protected var __timer_complete:Boolean;// = false public var hasShadow:Boolean; private var __initialHealth:int; public var specialColorTransform:ColorTransform;// = null public var health:Number;// = 100 private var __blinking:Boolean;// = false public var alreadyKilled:Boolean;// = false public var onTop:Boolean;// = true public var wave:int;// = 0 private var __alpha:Boolean;// = true public var scoreValue:uint;// = 100 public function GameObject(_arg1:Class, _arg2:Boolean, _arg3:Class, _arg4:int, _arg5:int, _arg6:Boolean=false){ super(_arg1, _arg4, _arg5); __bossMode = _arg6; transColorTransform = new ColorTransform(1, 1, 1, 1, 63, 63, 63, 63); shadowMatrix = new Matrix(0.5, 0, 0, 0.5, 0, 0); shadowColorTransform = new ColorTransform(0, 0, 0, 0, 0, 0, 0, 63); hasShadow = _arg2; if (_arg3 != null){ __effect_mc = MovieClip(Assets.objCache(_arg3)); }; __blinkTimer = new Timer(80); __blinkTimer.addEventListener(TimerEvent.TIMER, onBlink, false, 0, true); __blinkTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onBlinkComplete, false, 0, true); if (_arg5 == Render.ABOVE_THE_BORDER){ setPosition(_arg4, (1 - (mc.height / 2))); } else { if (_arg5 == Render.BELOW_THE_BORDER){ setPosition(_arg4, (Screen.height + (mc.height / 2))); } else { setPosition(_arg4, _arg5); }; }; setSpeed(0, 5); updateClips(); if (__bossMode){ Skylark.bossObject = this; }; } override public function die(_arg1:Boolean=false):void{ if (alreadyKilled){ return; }; alreadyKilled = true; stopTimer(); mark(); if (__movingSound){ Render.sound.killSound(__movingSound); }; if (_arg1){ PlayerProgress.enemiesKilled++; if (scoreValue >= 1000){ Skylark.startTilt(); Skylark.effects.push(new Effect(Assets.Explo, x, y)); Skylark.effects.push(new Effect(Assets.SmallerExp, (x - 25), y, true, 3)); Skylark.effects.push(new Effect(Assets.SmallerExp, (x + 25), y, true, 5)); Skylark.effects.push(new Effect(Assets.SmallerExp, x, (y - 25), true, 7)); Skylark.effects.push(new Effect(Assets.SmallerExp, x, (y + 25), true, 9)); Skylark.effects.push(new Effect(Assets.Explo, (x - 50), y, true, 2)); Skylark.effects.push(new Effect(Assets.Explo, (x + 50), y, true, 4)); Skylark.effects.push(new Effect(Assets.Explo, x, (y - 50), true, 6)); Skylark.effects.push(new Effect(Assets.Explo, x, (y + 50), true, 8)); } else { if (scoreValue >= 100){ Skylark.startTilt(); Skylark.effects.push(new Effect(Assets.Explo, x, y)); } else { Skylark.effects.push(new Effect(Assets.SmallerExp, x, y)); }; }; switch (int((Math.random() * 3))){ case 1: Render.sound.play(Assets.ExplosionSound1, Point(this)); case 2: Render.sound.play(Assets.ExplosionSound2, Point(this)); default: Render.sound.play(Assets.ExplosionSound3, Point(this)); }; }; if (__bossMode){ Skylark.bossObject = null; }; if (((!(onTop)) && (_arg1))){ setFrame(getFrame()); if (hasShadow){ shadowMatrix.ty = (shadowMatrix.ty + Scroller.bufOffset); Render.backBuffer.draw(mc, shadowMatrix, shadowColorTransform); }; Render.backBuffer.draw(mc, new Matrix(1, 0, 0, 1, matrix.tx, (matrix.ty + Scroller.bufOffset)), new ColorTransform(0.3, 0.3, 0.3)); }; dispose(); } public function onTimerComplete(_arg1:TimerEvent):void{ stopTimer(); } public function translateShadowX(_arg1:int):int{ return (((_arg1 / 1.2) - 40)); } public function translateShadowY(_arg1:int):int{ return (((_arg1 / 1.2) + 40)); } public function isBonus():Boolean{ return (false); } private function onBlinkComplete(_arg1:TimerEvent):void{ __blinking = false; __blinkTimer.reset(); } public function stopEffects():void{ if (__effect_mc != null){ __effect_mc.stop(); }; } override public function resume():void{ if (timer){ timer.start(); }; if (__effect_mc != null){ __effect_mc.play(); }; } public function setValue(_arg1:int):void{ scoreValue = _arg1; health = _arg1; __initialHealth = _arg1; } private function onBlink(_arg1:TimerEvent):void{ __alpha = !(__alpha); } public function takeHealth(_arg1:Number):Boolean{ if (health < _arg1){ return (false); }; health = (health - _arg1); blink(); return (true); } public function getFireLocator():Point{ return ((this as Point)); } public function getHealth():int{ return (health); } public function blink():void{ if (__blinking){ return; }; __blinkTimer.repeatCount = blinkTimes; __blinkTimer.start(); __blinking = true; } public function addHealth(_arg1:int):void{ if (health < 125){ health = (health + _arg1); }; } public function isBlink():Boolean{ return (__blinking); } public function fireSetup(_arg1:int, _arg2:int):void{ timer = new Timer(_arg1, _arg2); timer.repeatCount = _arg2; timer.addEventListener(TimerEvent.TIMER, periodicFire, false, 0, true); timer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete, false, 0, true); timer.start(); } public function attachEngineSound(_arg1:Class):void{ __movingSound = _arg1; } override public function updateClips():void{ if (__movingSound){ Render.sound.play(__movingSound, Point(this)); }; if (renderDisabled){ return; }; matrix.tx = x; matrix.ty = y; shadowMatrix.tx = translateShadowX(x); shadowMatrix.ty = translateShadowY(y); var _local1:ColorTransform; if (specialColorTransform){ _local1 = specialColorTransform; }; if (!__alpha){ _local1 = transColorTransform; }; mc.gotoAndStop(getFrame()); if (hasShadow){ Render.drawBuffer.draw(mc, shadowMatrix, shadowColorTransform); }; Render.drawBuffer.draw(mc, matrix, _local1, blendMode, null, true); if (__effect_mc != null){ Render.drawBuffer.draw(__effect_mc, matrix); }; } public function getHealthRatio():Number{ return ((health / __initialHealth)); } public function periodicFire(_arg1:TimerEvent):void{ if (isMarked()){ return; }; Render.sound.play(Assets.ShotSound, Point(this)); var _local2:Number = (x - Render.craftCoords.x); var _local3:Number = (y - Render.craftCoords.y); var _local4:Point = getFireLocator(); var _local5:Pellet = new Pellet(Assets.PelletCircle, _local4.x, _local4.y, 0, 0); _local5.getGuide(10, 0); Skylark.enemy_shells.push(_local5); } public function stopTimer():void{ if (!timer){ return; }; __timer_complete = true; timer.stop(); timer.removeEventListener(TimerEvent.TIMER, periodicFire); timer.removeEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete); } override public function pause():void{ if (timer){ timer.stop(); }; mc.stop(); stopEffects(); } } }//package com.pocomaxa
Section 47
//GroundObject (com.pocomaxa.GroundObject) package com.pocomaxa { public class GroundObject extends GameObject { public function GroundObject(_arg1:Class, _arg2:Boolean, _arg3:Class, _arg4:int=0, _arg5:int=0, _arg6:Boolean=false){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); onTop = false; shadowMatrix.a = 1; shadowMatrix.d = 1; } override public function move(_arg1:Number=-1, _arg2:Number=-1):void{ if (outOfBounds()){ die(); return; }; if (loopedAnimation){ setNextFrame(); }; setPosition((x + xSpeed), (y + ySpeed)); } override public function translateShadowX(_arg1:int):int{ return ((_arg1 - 10)); } override public function translateShadowY(_arg1:int):int{ return ((_arg1 - 5)); } } }//package com.pocomaxa
Section 48
//MovingObject (com.pocomaxa.MovingObject) package com.pocomaxa { import flash.events.*; import flash.geom.*; import flash.display.*; import flash.utils.*; import com.GUI.*; import Embedded.*; import com.render.*; public class MovingObject extends Point { public var loopedAnimation:Boolean;// = false private var __frameCount:int;// = 1 protected var __marked:Boolean;// = false private var __frame:int;// = 1 protected var __ct1stPass:ColorTransform; public var blendMode:String;// = null public var mc:MovieClip; public var ID:uint; public var frameCount:int;// = 1 public var ySpeedLimit:int; protected var __ct2ndPass:ColorTransform; public var callbackFunc:Object; protected var __collisionMatrix:Matrix; public var xSpeed:Number; public var matrix:Matrix; public var timer:Timer; public var xSpeedLimit:int; public var ySpeed:Number; public var xAccel:Number; public var yAccel:Number; private var _prevFrame:int;// = -1 public static var objectsTotal:uint; public static var objectID:uint; public function MovingObject(_arg1:Class, _arg2:Number, _arg3:Number){ __collisionMatrix = new Matrix(); __ct1stPass = new ColorTransform(1, 1, 1, 1, 0xFF, -255, -255, 0xFF); __ct2ndPass = new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF, 0xFF); matrix = new Matrix(1, 0, 0, 1, 0, 0); mc = MovieClip(Assets.objCache(_arg1)); setPosition(_arg2, _arg3); objectsTotal++; objectID++; ID = objectID; } public function die(_arg1:Boolean=false):void{ dispose(); mark(); if (_arg1){ Skylark.effects.push(new Effect(Assets.Sparks, x, y)); }; callbackFunc = null; } public function pause():void{ if (timer){ timer.stop(); }; } public function checkCollision(_arg1:MovingObject):Boolean{ if (isMarked()){ return (false); }; var _local2:Rectangle = mc.getRect(mc); _local2.offsetPoint(this); var _local3:Rectangle = _arg1.mc.getRect(_arg1.mc); _local3.offsetPoint(_arg1); if (!_local2.intersects(_local3)){ return (false); }; var _local4:Rectangle = _local2.intersection(_local3); if ((((_local4.width < 1)) || ((_local4.height < 1)))){ return (false); }; var _local5:BitmapData = new BitmapData(_local4.width, _local4.height, false, 4294967295); __collisionMatrix.a = matrix.a; __collisionMatrix.d = matrix.d; __collisionMatrix.tx = (x - _local4.left); __collisionMatrix.ty = (y - _local4.top); _local5.draw(mc, __collisionMatrix, __ct1stPass); __collisionMatrix.a = _arg1.matrix.a; __collisionMatrix.d = _arg1.matrix.d; __collisionMatrix.tx = (_arg1.x - _local4.left); __collisionMatrix.ty = (_arg1.y - _local4.top); _local5.draw(_arg1.mc, __collisionMatrix, __ct2ndPass, "difference"); var _local6:Rectangle = _local5.getColorBoundsRect(4294967295, 4278255615); return (!((_local6.width == 0))); } public function setSpeed(_arg1:Number, _arg2:Number):void{ xSpeed = _arg1; ySpeed = _arg2; } public function timerComplete(_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER_COMPLETE, timerComplete); if (callbackFunc){ callbackFunc(); }; callbackFunc = null; } public function dispose():void{ objectsTotal--; } public function setFrame(_arg1:int):void{ _prevFrame = __frame; __frame = _arg1; } public function resume():void{ if (timer){ timer.start(); }; } public function setPosition(_arg1:Number, _arg2:Number):void{ x = _arg1; y = _arg2; } public function getFrame():int{ return (__frame); } public function loopAnimation(_arg1:int=1):void{ loopedAnimation = true; frameCount = _arg1; } public function getGuide(_arg1:int=0, _arg2:int=12, _arg3:Boolean=false):Number{ var _local5:Number; var _local4:Number = getAngleToPoint(Render.craftCoords); setXAccel(Math.sin(_local4), _arg2); setYAccel(Math.cos(_local4), _arg2); if (_arg1){ setSpeed((Math.sin(_local4) * _arg1), (Math.cos(_local4) * _arg1)); }; if (_arg3){ _local5 = Math.atan2(xSpeed, ySpeed); matrix.a = -(Math.cos(_local5)); matrix.b = Math.sin(_local5); matrix.c = -(Math.sin(_local5)); matrix.d = -(Math.cos(_local5)); }; return (_local4); } public function hasFrameChanged():Boolean{ return (!((__frame == _prevFrame))); } public function mark():void{ __marked = true; } public function move(_arg1:Number=-1, _arg2:Number=-1):void{ if (outOfBounds()){ die(); return; }; if (!loopedAnimation){ if (xSpeed == 0){ setFrame(1); }; if (xSpeed < 0){ setFrame(2); }; if (xSpeed > 0){ setFrame(3); }; } else { setNextFrame(); }; if (Math.abs((xSpeed + xAccel)) < xSpeedLimit){ xSpeed = (xSpeed + xAccel); }; if (Math.abs((ySpeed + yAccel)) < ySpeedLimit){ ySpeed = (ySpeed + yAccel); }; setPosition((x + (Render.timeC * xSpeed)), (y + (Render.timeC * ySpeed))); } public function setXAccel(_arg1:Number, _arg2:Number):void{ xAccel = _arg1; xSpeedLimit = _arg2; } public function outOfBounds():Boolean{ return ((((((((y < -(mc.height))) || ((y > (Screen.height + (mc.height * 2)))))) || ((x < -(mc.width))))) || ((x > (Screen.width + (mc.width * 2)))))); } public function updateClips():void{ matrix.tx = x; matrix.ty = y; Render.drawBuffer.draw(mc, matrix, null, blendMode, null, true); } public function setYAccel(_arg1:Number, _arg2:Number):void{ yAccel = _arg1; ySpeedLimit = _arg2; } public function timerCallbackSetup(_arg1:int, _arg2:Object):void{ timer = new Timer(_arg1, 1); callbackFunc = _arg2; timer.addEventListener(TimerEvent.TIMER_COMPLETE, timerComplete, false, 0, true); timer.start(); } public function getAngleToPoint(_arg1:Point):Number{ return (Math.atan2((_arg1.x - x), (_arg1.y - y))); } public function isMarked():Boolean{ return (__marked); } public function setNextFrame():void{ __frameCount--; if (__frameCount != 0){ return; }; __frameCount = frameCount; _prevFrame = __frame; if (__frame < mc.totalFrames){ __frame++; } else { __frame = 1; }; } } }//package com.pocomaxa
Section 49
//ShellProxy (com.pocomaxa.ShellProxy) package com.pocomaxa { public class ShellProxy extends MovingObject { public var damage:int; public function ShellProxy(_arg1:Class, _arg2:int=0, _arg3:int=0){ super(_arg1, _arg2, _arg3); loopAnimation(2); damage = 50; } } }//package com.pocomaxa
Section 50
//Render (com.render.Render) package com.render { import flash.geom.*; import flash.display.*; import com.soundmanager.*; public class Render { public static const ABOVE_THE_BORDER:int = -1; public static const BELOW_THE_BORDER:int = -2; public static var drawBuffer:BitmapData; public static var backBuffer:BitmapData; public static var coordinateSpace:DisplayObject; public static var sound:SoundManager; public static var timeC:Number; public static var craftCoords:Point; } }//package com.render
Section 51
//Schedule (com.schedule.Schedule) package com.schedule { import com.scroller.*; public class Schedule { public static var scheduleData:Array = []; public static function check():void{ var _local2:String; var _local1:int = Scroller.getDrawOffset(); for (_local2 in scheduleData) { if (_local1 >= ShedEvent(scheduleData[_local2]).offset){ ShedEvent(scheduleData[_local2]).callback(); delete scheduleData[_local2]; }; }; } public static function addCallback(_arg1:int, _arg2:Object):void{ scheduleData.push(new ShedEvent((Scroller.getDrawOffset() + _arg1), _arg2)); } } }//package com.schedule
Section 52
//ShedEvent (com.schedule.ShedEvent) package com.schedule { public class ShedEvent { public var offset:int; public var callback:Object; public function ShedEvent(_arg1:int, _arg2:Object){ offset = _arg1; callback = _arg2; } } }//package com.schedule
Section 53
//Scroller (com.scroller.Scroller) package com.scroller { import flash.geom.*; import flash.display.*; import com.parser.*; import com.GUI.*; import lib.utils.*; import com.render.*; public class Scroller extends BitmapData { private var __toGo:int; private var __lastObjectOffset:int; private var stopped:Boolean;// = false private var __window:Rectangle; private var __passed:int; public static const bufOffset:int = (__bufSize - Screen.height); private static const __bufSize:int = (Tile.tileHeight * 8); private static var __matrix:Matrix; public static var backBuf:BitmapData; private static var __drawOffset:int; private static var __valid:Boolean; public static var pixelsPerScroll:int = 3; public function Scroller(){ super(Screen.width, Screen.height); backBuf = new BitmapData(Screen.width, __bufSize, false, 0xFFFF00); Render.backBuffer = backBuf; Render.drawBuffer = BitmapData(this); __drawOffset = 0; __lastObjectOffset = 0; __passed = 0; __toGo = Tile.tileHeight; __valid = false; __window = new Rectangle(0, (__bufSize - Screen.height), Screen.width, Screen.height); __matrix = new Matrix(); __matrix.ty = (__bufSize - Tile.tileHeight); while (__matrix.ty >= 0) { backBuf.draw(Tile.byOffset(__drawOffset), __matrix); __matrix.ty = (__matrix.ty - Tile.tileHeight); }; } public function stop():void{ stopped = true; } public function drawToScreen():void{ if (__valid){ return; }; this.copyPixels(backBuf, __window, new Point(0, 0)); __valid = true; } public function checkObject():void{ var _local1:int = (__drawOffset - LevelParser.currentGfxObject.offset); if (_local1 >= 0){ if ((__drawOffset - __passed) < LevelParser.currentGfxObject.offset){ __toGo = (Tile.tileHeight - __passed); backBuf.draw(Tile.byOffset((__drawOffset + Tile.tileHeight)), new Matrix(1, 0, 0, 1, 0, (-(Tile.tileHeight) + __passed)), null, null, new Rectangle(0, 0, Screen.width, (__drawOffset - __lastObjectOffset))); backBuf.draw(LevelParser.currentGfxObject.bitmap, new Matrix(1, 0, 0, 1, LevelParser.currentGfxObject.x, _local1)); __lastObjectOffset = __drawOffset; } else { backBuf.draw(LevelParser.currentGfxObject.bitmap, new Matrix(1, 0, 0, 1, LevelParser.currentGfxObject.x, _local1)); }; LevelParser.popGfxObject(); }; } public function scrollDown():void{ if (stopped){ return; }; backBuf.scroll(0, pixelsPerScroll); __passed = (__passed + pixelsPerScroll); __drawOffset = (__drawOffset + pixelsPerScroll); if (__passed >= Tile.tileHeight){ backBuf.draw(Tile.byOffset(__drawOffset), null, null, null, new Rectangle(0, 0, Screen.width, __toGo)); __toGo = Tile.tileHeight; __passed = 0; }; checkObject(); __valid = false; } public function fade(_arg1:ColorTransform):void{ drawToScreen(); this.draw(this, null, _arg1); } public static function getDrawOffset():int{ return (__drawOffset); } public static function checkTime(_arg1:int):Boolean{ if (_arg1 <= __drawOffset){ return (true); }; return (false); } } }//package com.scroller
Section 54
//SoundManager (com.soundmanager.SoundManager) package com.soundmanager { import flash.geom.*; import flash.media.*; import flash.utils.*; import com.GUI.*; import Embedded.*; public final class SoundManager { private static var music:SoundChannel; public static var __midPoint:Point; private static var __maxDist:int; private static var __soundContainer:Dictionary; private static var __channels:int; public static var musicEnabled:Boolean = true; public static var soundsEnabled:Boolean = true; public function SoundManager(){ __soundContainer = new Dictionary(); __channels = 0; __midPoint = new Point((Screen.width / 2), (Screen.height / 2)); __maxDist = distanceToCenter(new Point(0, 0)); } public function toggleMusicState():void{ changeMusicState(!(musicEnabled)); } public function killSound(_arg1:Class):void{ if (!__soundContainer[_arg1]){ return; }; SoundObject(__soundContainer[_arg1]).soundChannel.stop(); delete __soundContainer[_arg1]; } public function changeSoundState(_arg1:Boolean):void{ soundsEnabled = _arg1; } public function play(_arg1:Class, _arg2:Point, _arg3:Boolean=false):void{ if (!soundsEnabled){ return; }; var _local4:int; if (_arg3){ _local4 = 0xFFFF; }; cleanup(); var _local5:Number = (((_arg2.x - __midPoint.x) / Screen.width) * 2); var _local6:Number = (1 - ((distanceToCenter(_arg2) / __maxDist) / 2)); var _local7:SoundTransform = new SoundTransform(_local6, _local5); if (!__soundContainer[_arg1]){ __soundContainer[_arg1] = new SoundObject(Assets.objCache(_arg1).play(0, _local4, _local7)); } else { SoundObject(__soundContainer[_arg1]).transform(_local7); }; __channels++; } public function toggleSoundState():void{ changeSoundState(!(soundsEnabled)); } public function playMusic():void{ if (((musicEnabled) && (!(music)))){ music = SoundChannel(Assets.objCache(Assets.MusicMP3).play(0, 999)); }; } public function mute():void{ var _local1:*; for (_local1 in __soundContainer) { SoundObject(__soundContainer[_local1]).soundChannel.stop(); delete __soundContainer[_local1]; }; } public function stopMusic():void{ if (music){ music.stop(); }; music = null; } public function cleanup():void{ var _local1:*; for (_local1 in __soundContainer) { if (!__soundContainer[_local1].isPlaying){ delete __soundContainer[_local1]; __channels--; }; }; } public function changeMusicState(_arg1:Boolean):void{ musicEnabled = _arg1; if (musicEnabled){ playMusic(); } else { stopMusic(); }; } public static function distanceToCenter(_arg1:Point):Number{ var _local2:Number; var _local3:Number; _local2 = (__midPoint.x - _arg1.x); _local3 = (__midPoint.y - _arg1.y); return (Math.sqrt(((_local2 * _local2) + (_local3 * _local3)))); } } }//package com.soundmanager
Section 55
//SoundObject (com.soundmanager.SoundObject) package com.soundmanager { import flash.events.*; import flash.media.*; public class SoundObject { public var soundChannel:SoundChannel; public var isPlaying:Boolean;// = true public var numberOfObjects:int;// = 0 public function SoundObject(_arg1:SoundChannel){ soundChannel = _arg1; soundChannel.addEventListener(Event.SOUND_COMPLETE, onSoundComplete, false, 0, true); } public function onSoundComplete(_arg1:Event):void{ isPlaying = false; } public function transform(_arg1:SoundTransform):void{ soundChannel.soundTransform = _arg1; } } }//package com.soundmanager
Section 56
//GameState (com.state.GameState) package com.state { public class GameState { public static const HIGHSCORES:int = 7; public static const DYING:int = 5; public static const PLAYED:int = 3; public static const OVER:int = 2; public static const INTERLEVEL:int = 6; public static const UNDEFINED:int = 0; public static const PAUSED:int = 1; public static const RESUMED:int = 4; public static var state:int = 0; public static function die():void{ state = DYING; } public static function isDying():Boolean{ return ((state == DYING)); } public static function resume():void{ state = PLAYED; } public static function play():void{ state = PLAYED; } public static function pause():void{ state = PAUSED; } public static function isPaused():Boolean{ return ((state == PAUSED)); } public static function gameOver():void{ state = OVER; } } }//package com.state
Section 57
//Texts (com.Text.Texts) package com.Text { public class Texts { public static var gamePaused:String = "G A M E P A U S E D"; public static var maxPower:String = "MAXIMUM POWER"; public static var level:String = "L E V E L "; public static var level2End2:String = ((("YOU LEARN THAT ALL OF" + "\nTHE PRISONERS HAVE BEEN") + "\nTRANSFERRED TO ANOTHER BASE.") + "\nTHIS IS THE LAST CHANCE. GO!"); public static var copyright1:String = "Skylark Copyright (c) 2008 Igor Rzhevkin"; public static var copyright2:String = "Graphics by Gleb Kuznetsov"; public static var copyright4:String = "All rights reserved"; public static var helpText:String = (((((((((((((("Linda Skylark was ten, when" + "\nher older sister, Jane, had been") + "\ndeclared missing in the course") + "\nof the Yet Nam campaign.") + "\nLinda has sworn to find out") + "\nwhat happened to Jane.") + "\n\n11 years passed.") + "\nHaving her craft at the ready,") + "\nLinda acquires the Jane's flight plan.") + "\nThe journey is about to begin...") + "\n\nCONTROLS ('H' OR '?' for Help):") + "\nMove: WASD, arrows or mouse") + "\nShoot: SPACE, ENTER or left-click") + "\nWeapon select: '1'/'2' / ('~' to toggle)") + "\nHit '+' or '-' to speed up or slow down."); public static var gameVictory:String = (((("V I C T O R Y !\n" + "\nYou hurry to the landed UFO, and manage ") + "\nto save Jane before it blows up. The Little ") + "\nGreen Men are defeated! Jane is in safety.") + "\nBut the Earth isn't...\n"); public static var copyright3:String = "metricgauge@gmail.com"; public static var level1GreenMen:String = (("YOU HAVE CAPTURED" + "\nA COUPLE OF LITTLE GREEN MEN.") + "\nTHEY TELL YOU ABOUT JANE"); public static var helpText1:String = ((((("H I N T\n" + "\nYou got 10 missiles. To fire, press '2'") + "\n and click once. Switch back to autocannon") + "\nby pressing '1' (or '~' to toggle).") + "\n\nYou can call help any time") + "\nby pressing the 'H' key."); public static var helpText2:String = ((((((((("G E N E R A L H E L P\n" + "\nMove: WASD, arrows or mouse") + "\nShoot: SPACE, ENTER or left-click") + "\nWeapon select: '1'/'2' / ('~' to toggle)") + "\nHit '+' or '-' to speed up or slow down.") + "\n\nHint: eliminating groups of similar") + "\nenemies gives you extra points.") + "\n\nHint: shoot less, get pts for gunnery.") + "\n\nHint: Blow up the barrels. It should kill") + "\nthe closest foe."); public static var gameOver:String = (("G A M E O V E R\n" + "\nYou have failed. Poor Jane...") + "\nTry again!\n"); public static var levelCompleted:String = "L E V E L C O M P L E T E D "; public static var level1FakeBoss:String = ("C O N G R A T U L A T I O N S !\n" + "\nYOU HAVE KILLED A HARMLESS DRONE.\nNOW MEET THE BOSS..."); public static var level2End1:String = ((("YOU HAVE KNOCKED DOWN" + "\nTHE GUNSHIP.") + "\nBETWEEN ITS DEBRIS,") + "\nYOU FIND THE JOURNAL."); } }//package com.Text
Section 58
//Wave (com.wave.Wave) package com.wave { public class Wave { public var markUnits:Boolean; public var unitsKilled:int; public var prize:int; public var unitsSpawned:int; public var ID:int; public function Wave(_arg1:int, _arg2:int){ ID = _arg1; markUnits = true; prize = _arg2; } public function isEliminated():Boolean{ if ((((unitsKilled < unitsSpawned)) || (markUnits))){ return (false); }; return (true); } public function stopMark():void{ markUnits = false; } } }//package com.wave
Section 59
//Waves (com.wave.Waves) package com.wave { public class Waves { public static var container:Array; public static var ID:int = 1; public static var markAllUnits:Boolean; public static function closeCurrent():void{ Wave(container[ID]).stopMark(); markAllUnits = false; } public static function isEliminated(_arg1:int):Boolean{ if (container[_arg1]){ return (Wave(container[_arg1]).isEliminated()); }; return (false); } public static function getTotal(_arg1:int):int{ if (container[_arg1]){ return (Wave(container[_arg1]).unitsSpawned); }; return (0); } public static function reset():void{ container = []; } public static function toString():String{ var _local2:String; var _local1 = "Waves:\n"; for (_local2 in container) { _local1 = ((((((((((((((_local1 + "ID: ") + Wave(container[_local2]).ID) + "\n") + "spawned/killed: ") + Wave(container[_local2]).unitsSpawned) + "/") + Wave(container[_local2]).unitsKilled) + "\n") + "mark: ") + Wave(container[_local2]).markUnits) + "\n") + "prize: ") + Wave(container[_local2]).prize) + "\n-----\n"); }; return (_local1); } public static function addKills(_arg1:int):void{ if (container[_arg1]){ Wave(container[_arg1]).unitsKilled++; }; } public static function addUnits(_arg1:int):void{ if (container[_arg1]){ Wave(container[_arg1]).unitsSpawned++; }; } public static function newWave(_arg1:int):void{ ID++; container[ID] = new Wave(ID, _arg1); markAllUnits = true; } public static function getPrize(_arg1:int):int{ if (container[_arg1]){ return (Wave(container[_arg1]).prize); }; return (-1); } public static function dispose(_arg1:int):void{ if (container[_arg1]){ delete container[_arg1]; }; } } }//package com.wave
Section 60
//Assets (Embedded.Assets) package Embedded { import flash.utils.*; public class Assets { public static var imageLife:Class = Assets_imageLife; public static var BonusAmmoX2:Class = Assets_BonusAmmoX2; public static var Balloon:Class = Assets_Balloon; public static var tree_fir:Class = Assets_tree_fir; public static var tile_earth_to_sea:Class = Assets_tile_earth_to_sea; public static var ShotSound:Class = Assets_ShotSound; public static var CraftShot:Class = Assets_CraftShot; public static var BonusRockets:Class = Assets_BonusRockets; public static var house01:Class = Assets_house01; public static var house03:Class = Assets_house03; public static var house04:Class = Assets_house04; public static var house05:Class = Assets_house05; public static var rock01:Class = Assets_rock01; public static var rock02:Class = Assets_rock02; public static var UfoEngineSound:Class = Assets_UfoEngineSound; public static var road01:Class = Assets_road01; public static var TheBoat:Class = Assets_TheBoat; public static var tree_palm:Class = Assets_tree_palm; public static var SkyRocket:Class = Assets_SkyRocket; public static var Enemy2Sprite:Class = Assets_Enemy2Sprite; public static var tile_check:Class = Assets_tile_check; public static var house02:Class = Assets_house02; public static var cistern01:Class = Assets_cistern01; public static var cistern02:Class = Assets_cistern02; public static var cistern03:Class = Assets_cistern03; public static var tile_sea:Class = Assets_tile_sea; public static var RedBaron:Class = Assets_RedBaron; public static var BonusPower:Class = Assets_BonusPower; public static var Explo:Class = Assets_Explo; public static var imageRockets:Class = Assets_imageRockets; public static var EnemySprite:Class = Assets_EnemySprite; public static var road02:Class = Assets_road02; public static var BonusSound:Class = Assets_BonusSound; public static var objContainer:Dictionary; public static var RedTrace:Class = Assets_RedTrace; public static var Sparks:Class = Assets_Sparks; public static var ExplosionSound1:Class = Assets_ExplosionSound1; public static var ExplosionSound2:Class = Assets_ExplosionSound2; public static var ExplosionSound3:Class = Assets_ExplosionSound3; public static var HitSound:Class = Assets_HitSound; public static var rock03:Class = Assets_rock03; public static var hangar01:Class = Assets_hangar01; public static var tile_sea_to_earth:Class = Assets_tile_sea_to_earth; public static var tank01:Class = Assets_tank01; public static var LifeBonusSound:Class = Assets_LifeBonusSound; public static var tile_grass_to_sand:Class = Assets_tile_grass_to_sand; public static var UFORay:Class = Assets_UFORay; public static var tree_poplar:Class = Assets_tree_poplar; public static var TheBoss:Class = Assets_TheBoss; public static var tile_earth:Class = Assets_tile_earth; public static var tile_sand_to_grass:Class = Assets_tile_sand_to_grass; public static var tiles:Array; public static var hangar02:Class = Assets_hangar02; public static var tile_sea_to_stone:Class = Assets_tile_sea_to_stone; public static var BonusLive:Class = Assets_BonusLive; public static var tile_sand:Class = Assets_tile_sand; public static var MenuBitmap:Class = Assets_MenuBitmap; public static var tank03:Class = Assets_tank03; public static var Flak:Class = Assets_Flak; public static var ThePlane:Class = Assets_ThePlane; public static var tile_sand_to_sea:Class = Assets_tile_sand_to_sea; public static var tree_palm1:Class = Assets_tree_palm1; public static var tile_stone:Class = Assets_tile_stone; public static var ArmoredUnit:Class = Assets_ArmoredUnit; public static var roadJunction:Class = Assets_roadJunction; public static var tile_stone_to_sea:Class = Assets_tile_stone_to_sea; public static var tree_elm:Class = Assets_tree_elm; public static var SmallerExp:Class = Assets_SmallerExp; public static var PowerupSound:Class = Assets_PowerupSound; public static var PelletCircle:Class = Assets_PelletCircle; public static var cover:Class = Assets_cover; public static var WaspTrace:Class = Assets_WaspTrace; public static var BossTrace:Class = Assets_BossTrace; public static var EnemyPropAndTrace:Class = Assets_EnemyPropAndTrace; public static var RocketAndTrace:Class = Assets_RocketAndTrace; public static var BoatTrace:Class = Assets_BoatTrace; public static var Barrel:Class = Assets_Barrel; public static var tile_sea_to_sand:Class = Assets_tile_sea_to_sand; public static var MusicMP3:Class = Assets_MusicMP3; public static var EngineSound:Class = Assets_EngineSound; public static var MissileShotSound:Class = Assets_MissileShotSound; public static var tree_oak:Class = Assets_tree_oak; public static var tree_aspen:Class = Assets_tree_aspen; public static var TheBubbles:Class = Assets_TheBubbles; public static var roadSign02:Class = Assets_roadSign02; public static var Vint:Class = Assets_Vint; public static var UFO:Class = Assets_UFO; public static var roadSign01:Class = Assets_roadSign01; public static var roadSign03:Class = Assets_roadSign03; public static var tile_grass:Class = Assets_tile_grass; public static var tree_birch:Class = Assets_tree_birch; public static var FoeMissile:Class = Assets_FoeMissile; public static var craterDecal:Class = Assets_craterDecal; public static var roadJunctionLower:Class = Assets_roadJunctionLower; public static var tree_maple:Class = Assets_tree_maple; public static var UfoShotSound:Class = Assets_UfoShotSound; public static var BonusKill:Class = Assets_BonusKill; public static var Bonus:Class = Assets_Bonus; public function Assets(){ resetCache(); tiles = [null, null, null, new Assets.tile_grass(), null, null, new Assets.tile_sand(), new Assets.tile_sand_to_sea(), new Assets.tile_sea_to_sand(), new Assets.tile_earth(), new Assets.tile_earth_to_sea(), new Assets.tile_sea_to_earth(), new Assets.tile_sea(), new Assets.tile_grass_to_sand(), new Assets.tile_sand_to_grass()]; } public static function objCache(_arg1:Class):Object{ if (!objContainer[_arg1]){ objContainer[_arg1] = new (_arg1); }; return (objContainer[_arg1]); } public static function resetCache():void{ objContainer = new Dictionary(); } } }//package Embedded
Section 61
//Assets_ArmoredUnit (Embedded.Assets_ArmoredUnit) package Embedded { import mx.core.*; public class Assets_ArmoredUnit extends MovieClipAsset { } }//package Embedded
Section 62
//Assets_Balloon (Embedded.Assets_Balloon) package Embedded { import mx.core.*; public class Assets_Balloon extends MovieClipAsset { } }//package Embedded
Section 63
//Assets_Barrel (Embedded.Assets_Barrel) package Embedded { import mx.core.*; public class Assets_Barrel extends MovieClipAsset { } }//package Embedded
Section 64
//Assets_BoatTrace (Embedded.Assets_BoatTrace) package Embedded { import mx.core.*; public class Assets_BoatTrace extends MovieClipAsset { } }//package Embedded
Section 65
//Assets_Bonus (Embedded.Assets_Bonus) package Embedded { import mx.core.*; public class Assets_Bonus extends MovieClipAsset { } }//package Embedded
Section 66
//Assets_BonusAmmoX2 (Embedded.Assets_BonusAmmoX2) package Embedded { import mx.core.*; public class Assets_BonusAmmoX2 extends MovieClipAsset { } }//package Embedded
Section 67
//Assets_BonusKill (Embedded.Assets_BonusKill) package Embedded { import mx.core.*; public class Assets_BonusKill extends MovieClipAsset { } }//package Embedded
Section 68
//Assets_BonusLive (Embedded.Assets_BonusLive) package Embedded { import mx.core.*; public class Assets_BonusLive extends MovieClipAsset { } }//package Embedded
Section 69
//Assets_BonusPower (Embedded.Assets_BonusPower) package Embedded { import mx.core.*; public class Assets_BonusPower extends MovieClipAsset { } }//package Embedded
Section 70
//Assets_BonusRockets (Embedded.Assets_BonusRockets) package Embedded { import mx.core.*; public class Assets_BonusRockets extends MovieClipAsset { } }//package Embedded
Section 71
//Assets_BonusSound (Embedded.Assets_BonusSound) package Embedded { import mx.core.*; public class Assets_BonusSound extends SoundAsset { } }//package Embedded
Section 72
//Assets_BossTrace (Embedded.Assets_BossTrace) package Embedded { import mx.core.*; public class Assets_BossTrace extends MovieClipAsset { } }//package Embedded
Section 73
//Assets_cistern01 (Embedded.Assets_cistern01) package Embedded { import mx.core.*; public class Assets_cistern01 extends BitmapAsset { } }//package Embedded
Section 74
//Assets_cistern02 (Embedded.Assets_cistern02) package Embedded { import mx.core.*; public class Assets_cistern02 extends BitmapAsset { } }//package Embedded
Section 75
//Assets_cistern03 (Embedded.Assets_cistern03) package Embedded { import mx.core.*; public class Assets_cistern03 extends BitmapAsset { } }//package Embedded
Section 76
//Assets_cover (Embedded.Assets_cover) package Embedded { import mx.core.*; public class Assets_cover extends BitmapAsset { } }//package Embedded
Section 77
//Assets_CraftShot (Embedded.Assets_CraftShot) package Embedded { import mx.core.*; public class Assets_CraftShot extends MovieClipAsset { } }//package Embedded
Section 78
//Assets_craterDecal (Embedded.Assets_craterDecal) package Embedded { import mx.core.*; public class Assets_craterDecal extends BitmapAsset { } }//package Embedded
Section 79
//Assets_Enemy2Sprite (Embedded.Assets_Enemy2Sprite) package Embedded { import mx.core.*; public class Assets_Enemy2Sprite extends MovieClipAsset { } }//package Embedded
Section 80
//Assets_EnemyPropAndTrace (Embedded.Assets_EnemyPropAndTrace) package Embedded { import mx.core.*; public class Assets_EnemyPropAndTrace extends MovieClipAsset { } }//package Embedded
Section 81
//Assets_EnemySprite (Embedded.Assets_EnemySprite) package Embedded { import mx.core.*; public class Assets_EnemySprite extends MovieClipAsset { } }//package Embedded
Section 82
//Assets_EngineSound (Embedded.Assets_EngineSound) package Embedded { import mx.core.*; public class Assets_EngineSound extends SoundAsset { } }//package Embedded
Section 83
//Assets_Explo (Embedded.Assets_Explo) package Embedded { import mx.core.*; public class Assets_Explo extends MovieClipAsset { } }//package Embedded
Section 84
//Assets_ExplosionSound1 (Embedded.Assets_ExplosionSound1) package Embedded { import mx.core.*; public class Assets_ExplosionSound1 extends SoundAsset { } }//package Embedded
Section 85
//Assets_ExplosionSound2 (Embedded.Assets_ExplosionSound2) package Embedded { import mx.core.*; public class Assets_ExplosionSound2 extends SoundAsset { } }//package Embedded
Section 86
//Assets_ExplosionSound3 (Embedded.Assets_ExplosionSound3) package Embedded { import mx.core.*; public class Assets_ExplosionSound3 extends SoundAsset { } }//package Embedded
Section 87
//Assets_Flak (Embedded.Assets_Flak) package Embedded { import mx.core.*; public class Assets_Flak extends MovieClipAsset { } }//package Embedded
Section 88
//Assets_FoeMissile (Embedded.Assets_FoeMissile) package Embedded { import mx.core.*; public class Assets_FoeMissile extends MovieClipAsset { } }//package Embedded
Section 89
//Assets_hangar01 (Embedded.Assets_hangar01) package Embedded { import mx.core.*; public class Assets_hangar01 extends BitmapAsset { } }//package Embedded
Section 90
//Assets_hangar02 (Embedded.Assets_hangar02) package Embedded { import mx.core.*; public class Assets_hangar02 extends BitmapAsset { } }//package Embedded
Section 91
//Assets_HitSound (Embedded.Assets_HitSound) package Embedded { import mx.core.*; public class Assets_HitSound extends SoundAsset { } }//package Embedded
Section 92
//Assets_house01 (Embedded.Assets_house01) package Embedded { import mx.core.*; public class Assets_house01 extends BitmapAsset { } }//package Embedded
Section 93
//Assets_house02 (Embedded.Assets_house02) package Embedded { import mx.core.*; public class Assets_house02 extends BitmapAsset { } }//package Embedded
Section 94
//Assets_house03 (Embedded.Assets_house03) package Embedded { import mx.core.*; public class Assets_house03 extends BitmapAsset { } }//package Embedded
Section 95
//Assets_house04 (Embedded.Assets_house04) package Embedded { import mx.core.*; public class Assets_house04 extends BitmapAsset { } }//package Embedded
Section 96
//Assets_house05 (Embedded.Assets_house05) package Embedded { import mx.core.*; public class Assets_house05 extends BitmapAsset { } }//package Embedded
Section 97
//Assets_imageLife (Embedded.Assets_imageLife) package Embedded { import mx.core.*; public class Assets_imageLife extends BitmapAsset { } }//package Embedded
Section 98
//Assets_imageRockets (Embedded.Assets_imageRockets) package Embedded { import mx.core.*; public class Assets_imageRockets extends BitmapAsset { } }//package Embedded
Section 99
//Assets_LifeBonusSound (Embedded.Assets_LifeBonusSound) package Embedded { import mx.core.*; public class Assets_LifeBonusSound extends SoundAsset { } }//package Embedded
Section 100
//Assets_MenuBitmap (Embedded.Assets_MenuBitmap) package Embedded { import mx.core.*; public class Assets_MenuBitmap extends BitmapAsset { } }//package Embedded
Section 101
//Assets_MissileShotSound (Embedded.Assets_MissileShotSound) package Embedded { import mx.core.*; public class Assets_MissileShotSound extends SoundAsset { } }//package Embedded
Section 102
//Assets_MusicMP3 (Embedded.Assets_MusicMP3) package Embedded { import mx.core.*; public class Assets_MusicMP3 extends SoundAsset { } }//package Embedded
Section 103
//Assets_PelletCircle (Embedded.Assets_PelletCircle) package Embedded { import mx.core.*; public class Assets_PelletCircle extends MovieClipAsset { } }//package Embedded
Section 104
//Assets_PowerupSound (Embedded.Assets_PowerupSound) package Embedded { import mx.core.*; public class Assets_PowerupSound extends SoundAsset { } }//package Embedded
Section 105
//Assets_RedBaron (Embedded.Assets_RedBaron) package Embedded { import mx.core.*; public class Assets_RedBaron extends MovieClipAsset { } }//package Embedded
Section 106
//Assets_RedTrace (Embedded.Assets_RedTrace) package Embedded { import mx.core.*; public class Assets_RedTrace extends MovieClipAsset { } }//package Embedded
Section 107
//Assets_road01 (Embedded.Assets_road01) package Embedded { import mx.core.*; public class Assets_road01 extends BitmapAsset { } }//package Embedded
Section 108
//Assets_road02 (Embedded.Assets_road02) package Embedded { import mx.core.*; public class Assets_road02 extends BitmapAsset { } }//package Embedded
Section 109
//Assets_roadJunction (Embedded.Assets_roadJunction) package Embedded { import mx.core.*; public class Assets_roadJunction extends BitmapAsset { } }//package Embedded
Section 110
//Assets_roadJunctionLower (Embedded.Assets_roadJunctionLower) package Embedded { import mx.core.*; public class Assets_roadJunctionLower extends BitmapAsset { } }//package Embedded
Section 111
//Assets_roadSign01 (Embedded.Assets_roadSign01) package Embedded { import mx.core.*; public class Assets_roadSign01 extends BitmapAsset { } }//package Embedded
Section 112
//Assets_roadSign02 (Embedded.Assets_roadSign02) package Embedded { import mx.core.*; public class Assets_roadSign02 extends BitmapAsset { } }//package Embedded
Section 113
//Assets_roadSign03 (Embedded.Assets_roadSign03) package Embedded { import mx.core.*; public class Assets_roadSign03 extends BitmapAsset { } }//package Embedded
Section 114
//Assets_rock01 (Embedded.Assets_rock01) package Embedded { import mx.core.*; public class Assets_rock01 extends BitmapAsset { } }//package Embedded
Section 115
//Assets_rock02 (Embedded.Assets_rock02) package Embedded { import mx.core.*; public class Assets_rock02 extends BitmapAsset { } }//package Embedded
Section 116
//Assets_rock03 (Embedded.Assets_rock03) package Embedded { import mx.core.*; public class Assets_rock03 extends BitmapAsset { } }//package Embedded
Section 117
//Assets_RocketAndTrace (Embedded.Assets_RocketAndTrace) package Embedded { import mx.core.*; public class Assets_RocketAndTrace extends MovieClipAsset { } }//package Embedded
Section 118
//Assets_ShotSound (Embedded.Assets_ShotSound) package Embedded { import mx.core.*; public class Assets_ShotSound extends SoundAsset { } }//package Embedded
Section 119
//Assets_SkyRocket (Embedded.Assets_SkyRocket) package Embedded { import mx.core.*; public class Assets_SkyRocket extends MovieClipAsset { } }//package Embedded
Section 120
//Assets_SmallerExp (Embedded.Assets_SmallerExp) package Embedded { import mx.core.*; public class Assets_SmallerExp extends MovieClipAsset { } }//package Embedded
Section 121
//Assets_Sparks (Embedded.Assets_Sparks) package Embedded { import mx.core.*; public class Assets_Sparks extends MovieClipAsset { } }//package Embedded
Section 122
//Assets_tank01 (Embedded.Assets_tank01) package Embedded { import mx.core.*; public class Assets_tank01 extends BitmapAsset { } }//package Embedded
Section 123
//Assets_tank03 (Embedded.Assets_tank03) package Embedded { import mx.core.*; public class Assets_tank03 extends BitmapAsset { } }//package Embedded
Section 124
//Assets_TheBoat (Embedded.Assets_TheBoat) package Embedded { import mx.core.*; public class Assets_TheBoat extends MovieClipAsset { } }//package Embedded
Section 125
//Assets_TheBoss (Embedded.Assets_TheBoss) package Embedded { import mx.core.*; public class Assets_TheBoss extends MovieClipAsset { } }//package Embedded
Section 126
//Assets_TheBubbles (Embedded.Assets_TheBubbles) package Embedded { import mx.core.*; public class Assets_TheBubbles extends MovieClipAsset { } }//package Embedded
Section 127
//Assets_ThePlane (Embedded.Assets_ThePlane) package Embedded { import mx.core.*; public class Assets_ThePlane extends MovieClipAsset { } }//package Embedded
Section 128
//Assets_tile_check (Embedded.Assets_tile_check) package Embedded { import mx.core.*; public class Assets_tile_check extends BitmapAsset { } }//package Embedded
Section 129
//Assets_tile_earth (Embedded.Assets_tile_earth) package Embedded { import mx.core.*; public class Assets_tile_earth extends BitmapAsset { } }//package Embedded
Section 130
//Assets_tile_earth_to_sea (Embedded.Assets_tile_earth_to_sea) package Embedded { import mx.core.*; public class Assets_tile_earth_to_sea extends BitmapAsset { } }//package Embedded
Section 131
//Assets_tile_grass (Embedded.Assets_tile_grass) package Embedded { import mx.core.*; public class Assets_tile_grass extends BitmapAsset { } }//package Embedded
Section 132
//Assets_tile_grass_to_sand (Embedded.Assets_tile_grass_to_sand) package Embedded { import mx.core.*; public class Assets_tile_grass_to_sand extends BitmapAsset { } }//package Embedded
Section 133
//Assets_tile_sand (Embedded.Assets_tile_sand) package Embedded { import mx.core.*; public class Assets_tile_sand extends BitmapAsset { } }//package Embedded
Section 134
//Assets_tile_sand_to_grass (Embedded.Assets_tile_sand_to_grass) package Embedded { import mx.core.*; public class Assets_tile_sand_to_grass extends BitmapAsset { } }//package Embedded
Section 135
//Assets_tile_sand_to_sea (Embedded.Assets_tile_sand_to_sea) package Embedded { import mx.core.*; public class Assets_tile_sand_to_sea extends BitmapAsset { } }//package Embedded
Section 136
//Assets_tile_sea (Embedded.Assets_tile_sea) package Embedded { import mx.core.*; public class Assets_tile_sea extends BitmapAsset { } }//package Embedded
Section 137
//Assets_tile_sea_to_earth (Embedded.Assets_tile_sea_to_earth) package Embedded { import mx.core.*; public class Assets_tile_sea_to_earth extends BitmapAsset { } }//package Embedded
Section 138
//Assets_tile_sea_to_sand (Embedded.Assets_tile_sea_to_sand) package Embedded { import mx.core.*; public class Assets_tile_sea_to_sand extends BitmapAsset { } }//package Embedded
Section 139
//Assets_tile_sea_to_stone (Embedded.Assets_tile_sea_to_stone) package Embedded { import mx.core.*; public class Assets_tile_sea_to_stone extends BitmapAsset { } }//package Embedded
Section 140
//Assets_tile_stone (Embedded.Assets_tile_stone) package Embedded { import mx.core.*; public class Assets_tile_stone extends BitmapAsset { } }//package Embedded
Section 141
//Assets_tile_stone_to_sea (Embedded.Assets_tile_stone_to_sea) package Embedded { import mx.core.*; public class Assets_tile_stone_to_sea extends BitmapAsset { } }//package Embedded
Section 142
//Assets_tree_aspen (Embedded.Assets_tree_aspen) package Embedded { import mx.core.*; public class Assets_tree_aspen extends BitmapAsset { } }//package Embedded
Section 143
//Assets_tree_birch (Embedded.Assets_tree_birch) package Embedded { import mx.core.*; public class Assets_tree_birch extends BitmapAsset { } }//package Embedded
Section 144
//Assets_tree_elm (Embedded.Assets_tree_elm) package Embedded { import mx.core.*; public class Assets_tree_elm extends BitmapAsset { } }//package Embedded
Section 145
//Assets_tree_fir (Embedded.Assets_tree_fir) package Embedded { import mx.core.*; public class Assets_tree_fir extends BitmapAsset { } }//package Embedded
Section 146
//Assets_tree_maple (Embedded.Assets_tree_maple) package Embedded { import mx.core.*; public class Assets_tree_maple extends BitmapAsset { } }//package Embedded
Section 147
//Assets_tree_oak (Embedded.Assets_tree_oak) package Embedded { import mx.core.*; public class Assets_tree_oak extends BitmapAsset { } }//package Embedded
Section 148
//Assets_tree_palm (Embedded.Assets_tree_palm) package Embedded { import mx.core.*; public class Assets_tree_palm extends BitmapAsset { } }//package Embedded
Section 149
//Assets_tree_palm1 (Embedded.Assets_tree_palm1) package Embedded { import mx.core.*; public class Assets_tree_palm1 extends BitmapAsset { } }//package Embedded
Section 150
//Assets_tree_poplar (Embedded.Assets_tree_poplar) package Embedded { import mx.core.*; public class Assets_tree_poplar extends BitmapAsset { } }//package Embedded
Section 151
//Assets_UFO (Embedded.Assets_UFO) package Embedded { import mx.core.*; public class Assets_UFO extends MovieClipAsset { } }//package Embedded
Section 152
//Assets_UfoEngineSound (Embedded.Assets_UfoEngineSound) package Embedded { import mx.core.*; public class Assets_UfoEngineSound extends SoundAsset { } }//package Embedded
Section 153
//Assets_UFORay (Embedded.Assets_UFORay) package Embedded { import mx.core.*; public class Assets_UFORay extends MovieClipAsset { } }//package Embedded
Section 154
//Assets_UfoShotSound (Embedded.Assets_UfoShotSound) package Embedded { import mx.core.*; public class Assets_UfoShotSound extends SoundAsset { } }//package Embedded
Section 155
//Assets_WaspTrace (Embedded.Assets_WaspTrace) package Embedded { import mx.core.*; public class Assets_WaspTrace extends MovieClipAsset { } }//package Embedded
Section 156
//Assets_Vint (Embedded.Assets_Vint) package Embedded { import mx.core.*; public class Assets_Vint extends MovieClipAsset { } }//package Embedded
Section 157
//Counter (lib.utils.Counter) package lib.utils { public class Counter { public var limit:int; public var count:int; public function Counter(_arg1:int){ limit = _arg1; count = 0; } public function readjust(_arg1:int):void{ limit = _arg1; } public function isInRange(_arg1:int, _arg2:int):Boolean{ return ((((count >= _arg1)) && ((count <= _arg2)))); } public function reset():void{ count = 0; } public function isFull():Boolean{ return ((count == limit)); } public function step(_arg1:Boolean=true):Boolean{ if (count < limit){ count++; } else { if (_arg1){ reset(); }; return (true); }; return (false); } public static function increase(_arg1:int, _arg2:int):int{ if (_arg1 < _arg2){ var _temp1 = _arg1; _arg1 = (_arg1 + 1); return (_temp1); }; return (0); } } }//package lib.utils
Section 158
//Geom (lib.utils.Geom) package lib.utils { import flash.geom.*; public class Geom { public static function distanceToPoint(_arg1:Point, _arg2:Point):Number{ var _local3:Number; var _local4:Number; _local3 = (_arg1.x - _arg2.x); _local4 = (_arg1.y - _arg2.y); return (Math.sqrt(((_local3 * _local3) + (_local4 * _local4)))); } } }//package lib.utils
Section 159
//Values (lib.utils.Values) package lib.utils { public class Values { public static const Phi:Number = 1.6180339887; public static function limit(_arg1:Number, _arg2:Number, _arg3:Number):Number{ if (_arg1 < _arg2){ return (_arg2); }; if (_arg1 > _arg3){ return (_arg3); }; return (_arg1); } public static function bound(_arg1:Array, _arg2:int):int{ return (limit(_arg2, 0, (_arg1.length - 1))); } } }//package lib.utils
Section 160
//MochiScores (mochi.MochiScores) package mochi { import flash.display.*; import flash.text.*; public class MochiScores { private static var boardID:String; public static var onErrorHandler:Object; public static var onCloseHandler:Object; public static function showLeaderboard(_arg1:Object=null):void{ var options = _arg1; if (options != null){ if (options.clip != null){ if ((options.clip is Sprite)){ MochiServices.setContainer(options.clip); }; delete options.clip; } else { MochiServices.setContainer(); }; MochiServices.stayOnTop(); if (options.name != null){ if ((options.name is TextField)){ if (options.name.text.length > 0){ options.name = options.name.text; }; }; }; if (options.score != null){ if ((options.score is TextField)){ if (options.score.text.length > 0){ options.score = options.score.text; }; }; }; if (options.onDisplay != null){ options.onDisplay(); } else { if (MochiServices.clip != null){ if ((MochiServices.clip is MovieClip)){ MochiServices.clip.stop(); } else { trace("Warning: Container is not a MovieClip, cannot call default onDisplay."); }; }; }; } else { options = {}; if ((MochiServices.clip is MovieClip)){ MochiServices.clip.stop(); } else { trace("Warning: Container is not a MovieClip, cannot call default onDisplay."); }; }; if (options.onClose != null){ onCloseHandler = options.onClose; } else { onCloseHandler = function ():void{ if ((MochiServices.clip is MovieClip)){ MochiServices.clip.play(); } else { trace("Warning: Container is not a MovieClip, cannot call default onClose."); }; }; }; if (options.onError != null){ onErrorHandler = options.onError; } else { onErrorHandler = null; }; if (options.boardID == null){ if (MochiScores.boardID != null){ options.boardID = MochiScores.boardID; }; }; MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose); } public static function closeLeaderboard():void{ MochiServices.send("scores_closeLeaderboard"); } public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{ MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2); } public static function requestList(_arg1:Object, _arg2:Object=null):void{ MochiServices.send("scores_requestList", null, _arg1, _arg2); } public static function scoresArrayToObjects(_arg1:Object):Object{ var _local3:Number; var _local4:Number; var _local5:Object; var _local6:Object; var _local7:String; var _local8:String; var _local2:Object = {}; for (_local7 in _arg1) { if (typeof(_arg1[_local7]) == "object"){ if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){ _local2[_local7] = []; _local5 = _arg1[_local7]; _local4 = 0; while (_local4 < _local5.rows.length) { _local6 = {}; _local3 = 0; while (_local3 < _local5.cols.length) { _local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3]; _local3++; }; _local2[_local7].push(_local6); _local4++; }; } else { _local2[_local7] = {}; for (_local8 in _arg1[_local7]) { _local2[_local7][_local8] = _arg1[_local7][_local8]; }; }; } else { _local2[_local7] = _arg1[_local7]; }; }; return (_local2); } public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{ MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4); } public static function onClose(_arg1:Object=null):void{ if (_arg1 != null){ if (_arg1.error != null){ if (_arg1.error == true){ if (onErrorHandler != null){ if (_arg1.errorCode == null){ _arg1.errorCode = "IOError"; }; onErrorHandler(_arg1.errorCode); MochiServices.doClose(); return; }; }; }; }; onCloseHandler(); MochiServices.doClose(); } public static function setBoardID(_arg1:String):void{ MochiScores.boardID = _arg1; MochiServices.send("scores_setBoardID", {boardID:_arg1}); } } }//package mochi
Section 161
//MochiServices (mochi.MochiServices) package mochi { import flash.events.*; import flash.display.*; import flash.system.*; import flash.utils.*; import flash.net.*; public class MochiServices { private static var _container:Object; private static var _connected:Boolean = false; private static var _swfVersion:String; private static var _sendChannel:LocalConnection; private static var _rcvChannelName:String; private static var _gatewayURL:String = "http://www.mochiads.com/static/lib/services/services.swf"; private static var _clip:MovieClip; private static var _loader:Loader; private static var _id:String; private static var _listenChannel:LocalConnection; private static var _timer:Timer; private static var _sendChannelName:String; private static var _startTime:Number; private static var _connecting:Boolean = false; public static var onError:Object; private static var _listenChannelName:String = "__mochiservices"; private static var _rcvChannel:LocalConnection; public static function isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{ if (_connected){ _sendChannel.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID}); } else { if ((((_clip == null)) || (!(_connecting)))){ onError("NotConnected"); handleError(_arg2, _arg3, _arg4); flush(true); return; }; _clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID}); }; if (_clip != null){ if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){ _clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4}; _clip._nextcallbackID++; }; }; } public static function get connected():Boolean{ return (_connected); } private static function flush(_arg1:Boolean):void{ var _local2:Object; var _local3:Object; if (_clip != null){ if (_clip._queue != null){ while (_clip._queue.length > 0) { _local2 = _clip._queue.shift(); _local3 = null; if (_local2 != null){ if (_local2.callbackID != null){ _local3 = _clip._callbacks[_local2.callbackID]; }; delete _clip._callbacks[_local2.callbackID]; if (((_arg1) && (!((_local3 == null))))){ handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod); }; }; }; }; }; } private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{ var _local4:int; var _local14:Loader; var _local3:Array = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23]; var _local5:Array = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3]; var _local6:Array = [0, 64, 0, 0, 0]; var _local7:MovieClip = new MovieClip(); var _local8:LocalConnection = new LocalConnection(); var _local9:String = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().getTime())); _local8 = new LocalConnection(); _local7.lc = _local8; _local7.click = _arg2; _local8.client = _local7; _local8.connect(_local9); var _local10:ByteArray = new ByteArray(); var _local11:ByteArray = new ByteArray(); _local11.endian = Endian.LITTLE_ENDIAN; _local11.writeShort(1); _local11.writeUTFBytes(((_arg1 + " ") + _local9)); _local11.writeByte(0); var _local12:uint = ((_local3.length + _local11.length) + 4); var _local13:uint = (_local12 + 35); _local10.endian = Endian.LITTLE_ENDIAN; _local10.writeUTFBytes("FWS"); _local10.writeByte(8); _local10.writeUnsignedInt(_local13); for each (_local4 in _local5) { _local10.writeByte(_local4); }; _local10.writeUnsignedInt(_local12); _local10.writeByte(136); _local10.writeShort(_local11.length); _local10.writeBytes(_local11); for each (_local4 in _local3) { _local10.writeByte(_local4); }; for each (_local4 in _local6) { _local10.writeByte(_local4); }; _local14 = new Loader(); _local14.loadBytes(_local10); _local7.addChild(_local14); return (_local7); } private static function init(_arg1:String, _arg2:Object):void{ _id = _arg1; if (_arg2 != null){ _container = _arg2; loadCommunicator(_arg1, _container); }; } public static function get childClip():Object{ return (_clip); } public static function get id():String{ return (_id); } public static function stayOnTop():void{ _container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true); if (_clip != null){ _clip.visible = true; }; } public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{ var netup:Boolean; var s:String; var x:String; var req:URLRequest; var loader:Loader; var err:Function; var complete:Function; var setURL:Function; var url = _arg1; var burl = _arg2; var btn = _arg3; var onClick = _arg4; var vars:Object = new Object(); vars["mav"] = getVersion(); vars["swfv"] = "9"; vars["swfurl"] = btn.loaderInfo.loaderURL; vars["fv"] = Capabilities.version; vars["os"] = Capabilities.os; vars["lang"] = Capabilities.language; vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY); s = "?"; var i:Number = 0; for (x in vars) { if (i != 0){ s = (s + "&"); }; i = (i + 1); s = (((s + x) + "=") + escape(vars[x])); }; req = new URLRequest("http://x.mochiads.com/linkping.swf"); loader = new Loader(); err = function (_arg1:Object):void{ netup = false; _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; complete = function (_arg1:Object):void{ netup = true; _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete); loader.load(req); setURL = function ():void{ var _local1:String; if (netup){ _local1 = (url + s); } else { _local1 = burl; }; var _local2:DisplayObject = clickMovie(_local1, onClick); btn.addChild(_local2); _local2.scaleX = (0.01 * btn.width); _local2.scaleY = (0.01 * btn.height); }; setTimeout(setURL, 1500); } public static function getVersion():String{ return ("1.35"); } public static function disconnect():void{ if (((_connected) || (_connecting))){ if (_clip != null){ if (_clip.parent != null){ if ((_clip.parent is Sprite)){ Sprite(_clip.parent).removeChild(_clip); _clip = null; }; }; }; _connecting = (_connected = false); flush(true); try { _listenChannel.close(); _rcvChannel.close(); } catch(error:Error) { }; }; if (_timer != null){ try { _timer.stop(); } catch(error:Error) { }; }; } public static function allowDomains(_arg1:String):String{ var _local2:String; Security.allowDomain("*"); Security.allowInsecureDomain("*"); if (_arg1.indexOf("http://") != -1){ _local2 = _arg1.split("/")[2].split(":")[0]; Security.allowDomain(_local2); Security.allowInsecureDomain(_local2); }; return (_local2); } public static function doClose():void{ _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); if (_clip.parent != null){ Sprite(_clip.parent).removeChild(_clip); }; } public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{ if (_arg1 != null){ if ((_arg1 is Sprite)){ _container = _arg1; }; }; if (_arg2){ if ((_container is Sprite)){ Sprite(_container).addChild(_clip); }; }; } private static function onStatus(_arg1:StatusEvent):void{ switch (_arg1.level){ case "error": _connected = false; _listenChannel.connect(_listenChannelName); break; }; } private static function initComChannels():void{ if (!_connected){ _sendChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_container, version:getVersion(), parentURL:_container.loaderInfo.loaderURL}); _rcvChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus); _clip.onReceive = function (_arg1:Object):void{ var methodName:String; var pkg = _arg1; var cb:String = pkg.callbackID; var cblst:Object = this.client._callbacks[cb]; if (!cblst){ return; }; var method:* = cblst.callbackMethod; methodName = ""; var obj:Object = cblst.callbackObject; if (((obj) && ((typeof(method) == "string")))){ methodName = method; if (obj[method] != null){ method = obj[method]; } else { trace((("Error: Method " + method) + " does not exist.")); }; }; if (method != undefined){ try { method.apply(obj, pkg.args); } catch(error:Error) { trace(((("Error invoking callback method '" + methodName) + "': ") + error.toString())); }; } else { if (obj != null){ try { obj(pkg.args); } catch(error:Error) { trace(("Error invoking method on object: " + error.toString())); }; }; }; delete this.client._callbacks[cb]; }; _clip.onError = function ():void{ MochiServices.onError("IOError"); }; _rcvChannel.connect(_rcvChannelName); trace("connected!"); _connecting = false; _connected = true; _listenChannel.close(); while (_clip._queue.length > 0) { _sendChannel.send(_sendChannelName, "onReceive", _clip._queue.shift()); }; }; } private static function listen():void{ _listenChannel = new LocalConnection(); _listenChannel.client = _clip; _clip.handshake = function (_arg1:Object):void{ MochiServices.comChannelName = _arg1.newChannel; }; _listenChannel.allowDomain("*", "localhost"); _listenChannel.allowInsecureDomain("*", "localhost"); _listenChannel.connect(_listenChannelName); trace("Waiting for MochiAds services to connect..."); } private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{ var args = _arg1; var callbackObject = _arg2; var callbackMethod = _arg3; if (args != null){ if (args.onError != null){ args.onError.apply(null, ["NotConnected"]); }; if (((!((args.options == null))) && (!((args.options.onError == null))))){ args.options.onError.apply(null, ["NotConnected"]); }; }; if (callbackMethod != null){ args = {}; args.error = true; args.errorCode = "NotConnected"; if (((!((callbackObject == null))) && ((callbackMethod is String)))){ try { var _local5 = callbackObject; _local5[callbackMethod](args); } catch(error:Error) { }; } else { if (callbackMethod != null){ try { callbackMethod.apply(args); } catch(error:Error) { }; }; }; }; } public static function get clip():Object{ return (_container); } public static function set comChannelName(_arg1:String):void{ if (_arg1 != null){ if (_arg1.length > 3){ _sendChannelName = (_arg1 + "_fromgame"); _rcvChannelName = _arg1; initComChannels(); }; }; } private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{ var id = _arg1; var clip = _arg2; var clipname:String = ("_mochiservices_com_" + id); if (_clip != null){ return (_clip); }; if (!MochiServices.isNetworkAvailable()){ return (null); }; MochiServices.allowDomains(_gatewayURL); _clip = createEmptyMovieClip(clip, clipname, 10336, false); _loader = new Loader(); _timer = new Timer(1000, 0); _startTime = getTimer(); _timer.addEventListener(TimerEvent.TIMER, connectWait); _timer.start(); var f:Function = function (_arg1:Object):void{ _clip._mochiad_ctr_failed = true; trace("MochiServices could not load."); MochiServices.disconnect(); MochiServices.onError("IOError"); }; _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f); var req:URLRequest = new URLRequest(_gatewayURL); _loader.load(req); _clip.addChild(_loader); _clip._mochiservices_com = _loader; _sendChannel = new LocalConnection(); _clip._queue = []; _rcvChannel = new LocalConnection(); _rcvChannel.allowDomain("*", "localhost"); _rcvChannel.allowInsecureDomain("*", "localhost"); _rcvChannel.client = _clip; _clip._nextcallbackID = 0; _clip._callbacks = {}; listen(); return (_clip); } public static function bringToTop(_arg1:Event):void{ var e = _arg1; if (MochiServices.clip != null){ if (MochiServices.childClip != null){ try { if (MochiServices.clip.numChildren > 1){ MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1)); }; } catch(errorObject:Error) { trace("Warning: Depth sort error."); _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); }; }; }; } public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{ var id = _arg1; var clip = _arg2; var onError = _arg3; if ((clip is DisplayObject)){ if (((!(_connected)) && ((_clip == null)))){ trace("MochiServices Connecting..."); _connecting = true; init(id, clip); }; } else { trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage."); }; if (onError != null){ MochiServices.onError = onError; } else { if (MochiServices.onError == null){ MochiServices.onError = function (_arg1:String):void{ trace(_arg1); }; }; }; } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{ var parent = _arg1; var name = _arg2; var depth = _arg3; var doAdd = _arg4; var mc:MovieClip = new MovieClip(); if (doAdd){ if (((false) && (depth))){ parent.addChildAt(mc, depth); } else { parent.addChild(mc); }; }; try { parent[name] = mc; } catch(e:Error) { throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic.")); }; mc["_name"] = name; return (mc); } public static function connectWait(_arg1:TimerEvent):void{ if ((getTimer() - _startTime) > 10000){ if (!_connected){ _clip._mochiad_ctr_failed = true; trace("MochiServices could not load."); MochiServices.disconnect(); MochiServices.onError("IOError"); }; _timer.stop(); }; } } }//package mochi
Section 162
//BitmapAsset (mx.core.BitmapAsset) package mx.core { import flash.display.*; public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject { mx_internal static const VERSION:String = "3.0.0.0"; public function BitmapAsset(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } public function get measuredWidth():Number{ if (bitmapData){ return (bitmapData.width); }; return (0); } public function get measuredHeight():Number{ if (bitmapData){ return (bitmapData.height); }; return (0); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } } }//package mx.core
Section 163
//EdgeMetrics (mx.core.EdgeMetrics) package mx.core { public class EdgeMetrics { public var top:Number; public var left:Number; public var bottom:Number; public var right:Number; mx_internal static const VERSION:String = "3.0.0.0"; public static const EMPTY:EdgeMetrics = new EdgeMetrics(0, 0, 0, 0); ; public function EdgeMetrics(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){ this.left = _arg1; this.top = _arg2; this.right = _arg3; this.bottom = _arg4; } public function clone():EdgeMetrics{ return (new EdgeMetrics(left, top, right, bottom)); } } }//package mx.core
Section 164
//FlexBitmap (mx.core.FlexBitmap) package mx.core { import flash.display.*; import mx.utils.*; public class FlexBitmap extends Bitmap { mx_internal static const VERSION:String = "3.0.0.0"; public function FlexBitmap(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){ var bitmapData = _arg1; var pixelSnapping = _arg2; var smoothing = _arg3; super(bitmapData, pixelSnapping, smoothing); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 165
//FlexLoader (mx.core.FlexLoader) package mx.core { import flash.display.*; import mx.utils.*; public class FlexLoader extends Loader { mx_internal static const VERSION:String = "3.0.0.0"; public function FlexLoader(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 166
//FlexMovieClip (mx.core.FlexMovieClip) package mx.core { import flash.display.*; import mx.utils.*; public class FlexMovieClip extends MovieClip { mx_internal static const VERSION:String = "3.0.0.0"; public function FlexMovieClip(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 167
//FlexShape (mx.core.FlexShape) package mx.core { import flash.display.*; import mx.utils.*; public class FlexShape extends Shape { mx_internal static const VERSION:String = "3.0.0.0"; public function FlexShape(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 168
//FlexSprite (mx.core.FlexSprite) package mx.core { import flash.display.*; import mx.utils.*; public class FlexSprite extends Sprite { mx_internal static const VERSION:String = "3.0.0.0"; public function FlexSprite(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 169
//FlexVersion (mx.core.FlexVersion) package mx.core { import mx.resources.*; public class FlexVersion { public static const VERSION_2_0_1:uint = 33554433; public static const CURRENT_VERSION:uint = 50331648; public static const VERSION_3_0:uint = 50331648; public static const VERSION_2_0:uint = 33554432; public static const VERSION_ALREADY_READ:String = "versionAlreadyRead"; public static const VERSION_ALREADY_SET:String = "versionAlreadySet"; mx_internal static const VERSION:String = "3.0.0.0"; private static var compatibilityVersionChanged:Boolean = false; private static var _compatibilityErrorFunction:Function; private static var _compatibilityVersion:uint = 50331648; private static var compatibilityVersionRead:Boolean = false; mx_internal static function changeCompatibilityVersionString(_arg1:String):void{ var _local2:Array = _arg1.split("."); var _local3:uint = parseInt(_local2[0]); var _local4:uint = parseInt(_local2[1]); var _local5:uint = parseInt(_local2[2]); _compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5); } public static function set compatibilityVersion(_arg1:uint):void{ var _local2:String; if (_arg1 == _compatibilityVersion){ return; }; if (compatibilityVersionChanged){ if (compatibilityErrorFunction == null){ _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_SET); throw (new Error(_local2)); }; compatibilityErrorFunction(_arg1, VERSION_ALREADY_SET); }; if (compatibilityVersionRead){ if (compatibilityErrorFunction == null){ _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_READ); throw (new Error(_local2)); }; compatibilityErrorFunction(_arg1, VERSION_ALREADY_READ); }; _compatibilityVersion = _arg1; compatibilityVersionChanged = true; } public static function get compatibilityVersion():uint{ compatibilityVersionRead = true; return (_compatibilityVersion); } public static function set compatibilityErrorFunction(_arg1:Function):void{ _compatibilityErrorFunction = _arg1; } public static function set compatibilityVersionString(_arg1:String):void{ var _local2:Array = _arg1.split("."); var _local3:uint = parseInt(_local2[0]); var _local4:uint = parseInt(_local2[1]); var _local5:uint = parseInt(_local2[2]); compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5); } public static function get compatibilityErrorFunction():Function{ return (_compatibilityErrorFunction); } public static function get compatibilityVersionString():String{ var _local1:uint = ((compatibilityVersion >> 24) & 0xFF); var _local2:uint = ((compatibilityVersion >> 16) & 0xFF); var _local3:uint = (compatibilityVersion & 0xFFFF); return (((((_local1.toString() + ".") + _local2.toString()) + ".") + _local3.toString())); } } }//package mx.core
Section 170
//IBorder (mx.core.IBorder) package mx.core { public interface IBorder { function get borderMetrics():EdgeMetrics; } }//package mx.core
Section 171
//IButton (mx.core.IButton) package mx.core { public interface IButton extends IUIComponent { function get emphasized():Boolean; function set emphasized(_arg1:Boolean):void; function callLater(_arg1:Function, _arg2:Array=null):void; } }//package mx.core
Section 172
//IChildList (mx.core.IChildList) package mx.core { import flash.geom.*; import flash.display.*; public interface IChildList { function get numChildren():int; function removeChild(_arg1:DisplayObject):DisplayObject; function getChildByName(_arg1:String):DisplayObject; function removeChildAt(_arg1:int):DisplayObject; function getChildIndex(_arg1:DisplayObject):int; function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject; function getObjectsUnderPoint(_arg1:Point):Array; function setChildIndex(_arg1:DisplayObject, _arg2:int):void; function getChildAt(_arg1:int):DisplayObject; function addChild(_arg1:DisplayObject):DisplayObject; function contains(_arg1:DisplayObject):Boolean; } }//package mx.core
Section 173
//IContainer (mx.core.IContainer) package mx.core { import flash.geom.*; import flash.display.*; import flash.media.*; import mx.managers.*; import flash.text.*; public interface IContainer extends IUIComponent { function set hitArea(_arg1:Sprite):void; function swapChildrenAt(_arg1:int, _arg2:int):void; function getChildByName(_arg1:String):DisplayObject; function get doubleClickEnabled():Boolean; function get graphics():Graphics; function get useHandCursor():Boolean; function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject; function set mouseChildren(_arg1:Boolean):void; function set creatingContentPane(_arg1:Boolean):void; function get textSnapshot():TextSnapshot; function getChildIndex(_arg1:DisplayObject):int; function set doubleClickEnabled(_arg1:Boolean):void; function getObjectsUnderPoint(_arg1:Point):Array; function get creatingContentPane():Boolean; function setChildIndex(_arg1:DisplayObject, _arg2:int):void; function get soundTransform():SoundTransform; function set useHandCursor(_arg1:Boolean):void; function get numChildren():int; function contains(_arg1:DisplayObject):Boolean; function get verticalScrollPosition():Number; function set defaultButton(_arg1:IFlexDisplayObject):void; function swapChildren(_arg1:DisplayObject, _arg2:DisplayObject):void; function set horizontalScrollPosition(_arg1:Number):void; function get focusManager():IFocusManager; function startDrag(_arg1:Boolean=false, _arg2:Rectangle=null):void; function set mouseEnabled(_arg1:Boolean):void; function getChildAt(_arg1:int):DisplayObject; function set soundTransform(_arg1:SoundTransform):void; function get tabChildren():Boolean; function get tabIndex():int; function set focusRect(_arg1:Object):void; function get hitArea():Sprite; function get mouseChildren():Boolean; function removeChildAt(_arg1:int):DisplayObject; function get defaultButton():IFlexDisplayObject; function stopDrag():void; function set tabEnabled(_arg1:Boolean):void; function get horizontalScrollPosition():Number; function get focusRect():Object; function get viewMetrics():EdgeMetrics; function set verticalScrollPosition(_arg1:Number):void; function get dropTarget():DisplayObject; function get mouseEnabled():Boolean; function set tabChildren(_arg1:Boolean):void; function set buttonMode(_arg1:Boolean):void; function get tabEnabled():Boolean; function get buttonMode():Boolean; function removeChild(_arg1:DisplayObject):DisplayObject; function set tabIndex(_arg1:int):void; function addChild(_arg1:DisplayObject):DisplayObject; function areInaccessibleObjectsUnderPoint(_arg1:Point):Boolean; } }//package mx.core
Section 174
//IFlexAsset (mx.core.IFlexAsset) package mx.core { public interface IFlexAsset { } }//package mx.core
Section 175
//IFlexDisplayObject (mx.core.IFlexDisplayObject) package mx.core { import flash.events.*; import flash.geom.*; import flash.display.*; import flash.accessibility.*; public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher { function get visible():Boolean; function get rotation():Number; function localToGlobal(_arg1:Point):Point; function get name():String; function set width(_arg1:Number):void; function get measuredHeight():Number; function get blendMode():String; function get scale9Grid():Rectangle; function set name(_arg1:String):void; function set scaleX(_arg1:Number):void; function set scaleY(_arg1:Number):void; function get measuredWidth():Number; function get accessibilityProperties():AccessibilityProperties; function set scrollRect(_arg1:Rectangle):void; function get cacheAsBitmap():Boolean; function globalToLocal(_arg1:Point):Point; function get height():Number; function set blendMode(_arg1:String):void; function get parent():DisplayObjectContainer; function getBounds(_arg1:DisplayObject):Rectangle; function get opaqueBackground():Object; function set scale9Grid(_arg1:Rectangle):void; function setActualSize(_arg1:Number, _arg2:Number):void; function set alpha(_arg1:Number):void; function set accessibilityProperties(_arg1:AccessibilityProperties):void; function get width():Number; function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean; function set cacheAsBitmap(_arg1:Boolean):void; function get scaleX():Number; function get scaleY():Number; function get scrollRect():Rectangle; function get mouseX():Number; function get mouseY():Number; function set height(_arg1:Number):void; function set mask(_arg1:DisplayObject):void; function getRect(_arg1:DisplayObject):Rectangle; function get alpha():Number; function set transform(_arg1:Transform):void; function move(_arg1:Number, _arg2:Number):void; function get loaderInfo():LoaderInfo; function get root():DisplayObject; function hitTestObject(_arg1:DisplayObject):Boolean; function set opaqueBackground(_arg1:Object):void; function set visible(_arg1:Boolean):void; function get mask():DisplayObject; function set x(_arg1:Number):void; function set y(_arg1:Number):void; function get transform():Transform; function set filters(_arg1:Array):void; function get x():Number; function get y():Number; function get filters():Array; function set rotation(_arg1:Number):void; function get stage():Stage; } }//package mx.core
Section 176
//IFlexModuleFactory (mx.core.IFlexModuleFactory) package mx.core { public interface IFlexModuleFactory { function create(... _args):Object; function info():Object; } }//package mx.core
Section 177
//IInvalidating (mx.core.IInvalidating) package mx.core { public interface IInvalidating { function validateNow():void; function invalidateSize():void; function invalidateDisplayList():void; function invalidateProperties():void; } }//package mx.core
Section 178
//IProgrammaticSkin (mx.core.IProgrammaticSkin) package mx.core { public interface IProgrammaticSkin { function validateNow():void; function validateDisplayList():void; } }//package mx.core
Section 179
//IRawChildrenContainer (mx.core.IRawChildrenContainer) package mx.core { public interface IRawChildrenContainer { function get rawChildren():IChildList; } }//package mx.core
Section 180
//IRectangularBorder (mx.core.IRectangularBorder) package mx.core { import flash.geom.*; public interface IRectangularBorder extends IBorder { function get backgroundImageBounds():Rectangle; function get hasBackgroundImage():Boolean; function set backgroundImageBounds(_arg1:Rectangle):void; function layoutBackgroundImage():void; } }//package mx.core
Section 181
//IRepeaterClient (mx.core.IRepeaterClient) package mx.core { public interface IRepeaterClient { function get instanceIndices():Array; function set instanceIndices(_arg1:Array):void; function get isDocument():Boolean; function set repeaters(_arg1:Array):void; function initializeRepeaterArrays(_arg1:IRepeaterClient):void; function get repeaters():Array; function set repeaterIndices(_arg1:Array):void; function get repeaterIndices():Array; } }//package mx.core
Section 182
//IUIComponent (mx.core.IUIComponent) package mx.core { import flash.display.*; import mx.managers.*; public interface IUIComponent extends IFlexDisplayObject { function set focusPane(_arg1:Sprite):void; function get enabled():Boolean; function set enabled(_arg1:Boolean):void; function set isPopUp(_arg1:Boolean):void; function get explicitMinHeight():Number; function get percentWidth():Number; function get isPopUp():Boolean; function get owner():DisplayObjectContainer; function get percentHeight():Number; function get baselinePosition():Number; function owns(_arg1:DisplayObject):Boolean; function initialize():void; function get maxWidth():Number; function get minWidth():Number; function getExplicitOrMeasuredWidth():Number; function get explicitMaxWidth():Number; function get explicitMaxHeight():Number; function set percentHeight(_arg1:Number):void; function get minHeight():Number; function set percentWidth(_arg1:Number):void; function get document():Object; function get focusPane():Sprite; function getExplicitOrMeasuredHeight():Number; function set tweeningProperties(_arg1:Array):void; function set explicitWidth(_arg1:Number):void; function set measuredMinHeight(_arg1:Number):void; function get explicitMinWidth():Number; function get tweeningProperties():Array; function get maxHeight():Number; function set owner(_arg1:DisplayObjectContainer):void; function set includeInLayout(_arg1:Boolean):void; function setVisible(_arg1:Boolean, _arg2:Boolean=false):void; function parentChanged(_arg1:DisplayObjectContainer):void; function get explicitWidth():Number; function get measuredMinHeight():Number; function set measuredMinWidth(_arg1:Number):void; function set explicitHeight(_arg1:Number):void; function get includeInLayout():Boolean; function get measuredMinWidth():Number; function get explicitHeight():Number; function set systemManager(_arg1:ISystemManager):void; function set document(_arg1:Object):void; function get systemManager():ISystemManager; } }//package mx.core
Section 183
//MovieClipAsset (mx.core.MovieClipAsset) package mx.core { public class MovieClipAsset extends FlexMovieClip implements IFlexAsset, IFlexDisplayObject, IBorder { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.0.0.0"; public function MovieClipAsset(){ _measuredWidth = width; _measuredHeight = height; } public function get measuredWidth():Number{ return (_measuredWidth); } public function get measuredHeight():Number{ return (_measuredHeight); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get borderMetrics():EdgeMetrics{ if (scale9Grid == null){ return (EdgeMetrics.EMPTY); }; return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom)))); } } }//package mx.core
Section 184
//mx_internal (mx.core.mx_internal) package mx.core { public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal"; }//package mx.core
Section 185
//Singleton (mx.core.Singleton) package mx.core { public class Singleton { mx_internal static const VERSION:String = "3.0.0.0"; private static var classMap:Object = {}; public static function registerClass(_arg1:String, _arg2:Class):void{ var _local3:Class = classMap[_arg1]; if (!_local3){ classMap[_arg1] = _arg2; }; } public static function getClass(_arg1:String):Class{ return (classMap[_arg1]); } public static function getInstance(_arg1:String):Object{ var _local2:Class = classMap[_arg1]; if (!_local2){ throw (new Error((("No class registered for interface '" + _arg1) + "'."))); }; return (_local2["getInstance"]()); } } }//package mx.core
Section 186
//SoundAsset (mx.core.SoundAsset) package mx.core { import flash.media.*; public class SoundAsset extends Sound implements IFlexAsset { mx_internal static const VERSION:String = "3.0.0.0"; } }//package mx.core
Section 187
//SpriteAsset (mx.core.SpriteAsset) package mx.core { public class SpriteAsset extends FlexSprite implements IFlexAsset, IFlexDisplayObject, IBorder { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.0.0.0"; public function SpriteAsset(){ _measuredWidth = width; _measuredHeight = height; } public function get measuredWidth():Number{ return (_measuredWidth); } public function get measuredHeight():Number{ return (_measuredHeight); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get borderMetrics():EdgeMetrics{ if (scale9Grid == null){ return (EdgeMetrics.EMPTY); }; return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom)))); } } }//package mx.core
Section 188
//UIComponentGlobals (mx.core.UIComponentGlobals) package mx.core { import flash.geom.*; import flash.display.*; import mx.managers.*; public class UIComponentGlobals { mx_internal static var callLaterSuspendCount:int = 0; mx_internal static var layoutManager:ILayoutManager; mx_internal static var nextFocusObject:InteractiveObject; mx_internal static var designTime:Boolean = false; mx_internal static var tempMatrix:Matrix = new Matrix(); mx_internal static var callLaterDispatcherCount:int = 0; private static var _catchCallLaterExceptions:Boolean = false; public static function set catchCallLaterExceptions(_arg1:Boolean):void{ _catchCallLaterExceptions = _arg1; } public static function get designMode():Boolean{ return (designTime); } public static function set designMode(_arg1:Boolean):void{ designTime = _arg1; } public static function get catchCallLaterExceptions():Boolean{ return (_catchCallLaterExceptions); } } }//package mx.core
Section 189
//ModuleEvent (mx.events.ModuleEvent) package mx.events { import flash.events.*; import mx.core.*; import mx.modules.*; public class ModuleEvent extends ProgressEvent { public var errorText:String; private var _module:IModuleInfo; public static const READY:String = "ready"; public static const ERROR:String = "error"; public static const PROGRESS:String = "progress"; mx_internal static const VERSION:String = "3.0.0.0"; public static const SETUP:String = "setup"; public static const UNLOAD:String = "unload"; public function ModuleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null, _arg7:IModuleInfo=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; this._module = _arg7; } public function get module():IModuleInfo{ if (_module){ return (_module); }; return ((target as IModuleInfo)); } override public function clone():Event{ return (new ModuleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText, module)); } } }//package mx.events
Section 190
//ResourceEvent (mx.events.ResourceEvent) package mx.events { import flash.events.*; import mx.core.*; public class ResourceEvent extends ProgressEvent { public var errorText:String; mx_internal static const VERSION:String = "3.0.0.0"; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public static const ERROR:String = "error"; public function ResourceEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; } override public function clone():Event{ return (new ResourceEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText)); } } }//package mx.events
Section 191
//StyleEvent (mx.events.StyleEvent) package mx.events { import flash.events.*; import mx.core.*; public class StyleEvent extends ProgressEvent { public var errorText:String; mx_internal static const VERSION:String = "3.0.0.0"; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public static const ERROR:String = "error"; public function StyleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; } override public function clone():Event{ return (new StyleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText)); } } }//package mx.events
Section 192
//RectangularDropShadow (mx.graphics.RectangularDropShadow) package mx.graphics { import flash.geom.*; import flash.display.*; import mx.core.*; import mx.utils.*; import flash.filters.*; public class RectangularDropShadow { private var leftShadow:BitmapData; private var _tlRadius:Number;// = 0 private var _trRadius:Number;// = 0 private var _angle:Number;// = 45 private var topShadow:BitmapData; private var _distance:Number;// = 4 private var rightShadow:BitmapData; private var _alpha:Number;// = 0.4 private var shadow:BitmapData; private var _brRadius:Number;// = 0 private var _blRadius:Number;// = 0 private var _color:int;// = 0 private var bottomShadow:BitmapData; private var changed:Boolean;// = true mx_internal static const VERSION:String = "3.0.0.0"; public function get blRadius():Number{ return (_blRadius); } public function set brRadius(_arg1:Number):void{ if (_brRadius != _arg1){ _brRadius = _arg1; changed = true; }; } public function set color(_arg1:int):void{ if (_color != _arg1){ _color = _arg1; changed = true; }; } public function drawShadow(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{ var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; if (changed){ createShadowBitmaps(); changed = false; }; _arg4 = Math.ceil(_arg4); _arg5 = Math.ceil(_arg5); var _local6:int = (leftShadow) ? leftShadow.width : 0; var _local7:int = (rightShadow) ? rightShadow.width : 0; var _local8:int = (topShadow) ? topShadow.height : 0; var _local9:int = (bottomShadow) ? bottomShadow.height : 0; var _local10:int = (_local6 + _local7); var _local11:int = (_local8 + _local9); var _local12:Number = ((_arg5 + _local11) / 2); var _local13:Number = ((_arg4 + _local10) / 2); var _local14:Matrix = new Matrix(); if (((leftShadow) || (topShadow))){ _local15 = Math.min((tlRadius + _local10), _local13); _local16 = Math.min((tlRadius + _local11), _local12); _local14.tx = (_arg2 - _local6); _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((_arg2 - _local6), (_arg3 - _local8), _local15, _local16); _arg1.endFill(); }; if (((rightShadow) || (topShadow))){ _local17 = Math.min((trRadius + _local10), _local13); _local18 = Math.min((trRadius + _local11), _local12); _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width); _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local17), (_arg3 - _local8), _local17, _local18); _arg1.endFill(); }; if (((leftShadow) || (bottomShadow))){ _local19 = Math.min((blRadius + _local10), _local13); _local20 = Math.min((blRadius + _local11), _local12); _local14.tx = (_arg2 - _local6); _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((_arg2 - _local6), (((_arg3 + _arg5) + _local9) - _local20), _local19, _local20); _arg1.endFill(); }; if (((rightShadow) || (bottomShadow))){ _local21 = Math.min((brRadius + _local10), _local13); _local22 = Math.min((brRadius + _local11), _local12); _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width); _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local21), (((_arg3 + _arg5) + _local9) - _local22), _local21, _local22); _arg1.endFill(); }; if (leftShadow){ _local14.tx = (_arg2 - _local6); _local14.ty = 0; _arg1.beginBitmapFill(leftShadow, _local14); _arg1.drawRect((_arg2 - _local6), ((_arg3 - _local8) + _local16), _local6, ((((_arg5 + _local8) + _local9) - _local16) - _local20)); _arg1.endFill(); }; if (rightShadow){ _local14.tx = (_arg2 + _arg4); _local14.ty = 0; _arg1.beginBitmapFill(rightShadow, _local14); _arg1.drawRect((_arg2 + _arg4), ((_arg3 - _local8) + _local18), _local7, ((((_arg5 + _local8) + _local9) - _local18) - _local22)); _arg1.endFill(); }; if (topShadow){ _local14.tx = 0; _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(topShadow, _local14); _arg1.drawRect(((_arg2 - _local6) + _local15), (_arg3 - _local8), ((((_arg4 + _local6) + _local7) - _local15) - _local17), _local8); _arg1.endFill(); }; if (bottomShadow){ _local14.tx = 0; _local14.ty = (_arg3 + _arg5); _arg1.beginBitmapFill(bottomShadow, _local14); _arg1.drawRect(((_arg2 - _local6) + _local19), (_arg3 + _arg5), ((((_arg4 + _local6) + _local7) - _local19) - _local21), _local9); _arg1.endFill(); }; } public function get brRadius():Number{ return (_brRadius); } public function get angle():Number{ return (_angle); } private function createShadowBitmaps():void{ var _local1:Number = ((Math.max(tlRadius, blRadius) + (2 * distance)) + Math.max(trRadius, brRadius)); var _local2:Number = ((Math.max(tlRadius, trRadius) + (2 * distance)) + Math.max(blRadius, brRadius)); if ((((_local1 < 0)) || ((_local2 < 0)))){ return; }; var _local3:Shape = new FlexShape(); var _local4:Graphics = _local3.graphics; _local4.beginFill(0xFFFFFF); GraphicsUtil.drawRoundRectComplex(_local4, 0, 0, _local1, _local2, tlRadius, trRadius, blRadius, brRadius); _local4.endFill(); var _local5:BitmapData = new BitmapData(_local1, _local2, true, 0); _local5.draw(_local3, new Matrix()); var _local6:DropShadowFilter = new DropShadowFilter(distance, angle, color, alpha); _local6.knockout = true; var _local7:Rectangle = new Rectangle(0, 0, _local1, _local2); var _local8:Rectangle = _local5.generateFilterRect(_local7, _local6); var _local9:Number = (_local7.left - _local8.left); var _local10:Number = (_local8.right - _local7.right); var _local11:Number = (_local7.top - _local8.top); var _local12:Number = (_local8.bottom - _local7.bottom); shadow = new BitmapData(_local8.width, _local8.height); shadow.applyFilter(_local5, _local7, new Point(_local9, _local11), _local6); var _local13:Point = new Point(0, 0); var _local14:Rectangle = new Rectangle(); if (_local9 > 0){ _local14.x = 0; _local14.y = ((tlRadius + _local11) + _local12); _local14.width = _local9; _local14.height = 1; leftShadow = new BitmapData(_local9, 1); leftShadow.copyPixels(shadow, _local14, _local13); } else { leftShadow = null; }; if (_local10 > 0){ _local14.x = (shadow.width - _local10); _local14.y = ((trRadius + _local11) + _local12); _local14.width = _local10; _local14.height = 1; rightShadow = new BitmapData(_local10, 1); rightShadow.copyPixels(shadow, _local14, _local13); } else { rightShadow = null; }; if (_local11 > 0){ _local14.x = ((tlRadius + _local9) + _local10); _local14.y = 0; _local14.width = 1; _local14.height = _local11; topShadow = new BitmapData(1, _local11); topShadow.copyPixels(shadow, _local14, _local13); } else { topShadow = null; }; if (_local12 > 0){ _local14.x = ((blRadius + _local9) + _local10); _local14.y = (shadow.height - _local12); _local14.width = 1; _local14.height = _local12; bottomShadow = new BitmapData(1, _local12); bottomShadow.copyPixels(shadow, _local14, _local13); } else { bottomShadow = null; }; } public function get alpha():Number{ return (_alpha); } public function get color():int{ return (_color); } public function set angle(_arg1:Number):void{ if (_angle != _arg1){ _angle = _arg1; changed = true; }; } public function set trRadius(_arg1:Number):void{ if (_trRadius != _arg1){ _trRadius = _arg1; changed = true; }; } public function set tlRadius(_arg1:Number):void{ if (_tlRadius != _arg1){ _tlRadius = _arg1; changed = true; }; } public function get trRadius():Number{ return (_trRadius); } public function set distance(_arg1:Number):void{ if (_distance != _arg1){ _distance = _arg1; changed = true; }; } public function get distance():Number{ return (_distance); } public function get tlRadius():Number{ return (_tlRadius); } public function set alpha(_arg1:Number):void{ if (_alpha != _arg1){ _alpha = _arg1; changed = true; }; } public function set blRadius(_arg1:Number):void{ if (_blRadius != _arg1){ _blRadius = _arg1; changed = true; }; } } }//package mx.graphics
Section 193
//IFocusManager (mx.managers.IFocusManager) package mx.managers { import flash.display.*; import mx.core.*; public interface IFocusManager { function get focusPane():Sprite; function getFocus():IFocusManagerComponent; function deactivate():void; function set defaultButton(_arg1:IButton):void; function set focusPane(_arg1:Sprite):void; function set showFocusIndicator(_arg1:Boolean):void; function get defaultButtonEnabled():Boolean; function findFocusManagerComponent(_arg1:InteractiveObject):IFocusManagerComponent; function get nextTabIndex():int; function get defaultButton():IButton; function get showFocusIndicator():Boolean; function setFocus(_arg1:IFocusManagerComponent):void; function activate():void; function showFocus():void; function set defaultButtonEnabled(_arg1:Boolean):void; function hideFocus():void; function getNextFocusManagerComponent(_arg1:Boolean=false):IFocusManagerComponent; } }//package mx.managers
Section 194
//IFocusManagerComponent (mx.managers.IFocusManagerComponent) package mx.managers { public interface IFocusManagerComponent { function set focusEnabled(_arg1:Boolean):void; function drawFocus(_arg1:Boolean):void; function setFocus():void; function get focusEnabled():Boolean; function get tabEnabled():Boolean; function get tabIndex():int; function get mouseFocusEnabled():Boolean; } }//package mx.managers
Section 195
//IFocusManagerContainer (mx.managers.IFocusManagerContainer) package mx.managers { import flash.events.*; import flash.display.*; public interface IFocusManagerContainer extends IEventDispatcher { function set focusManager(_arg1:IFocusManager):void; function get focusManager():IFocusManager; function get systemManager():ISystemManager; function contains(_arg1:DisplayObject):Boolean; } }//package mx.managers
Section 196
//ILayoutManager (mx.managers.ILayoutManager) package mx.managers { import flash.events.*; public interface ILayoutManager extends IEventDispatcher { function validateNow():void; function validateClient(_arg1:ILayoutManagerClient, _arg2:Boolean=false):void; function isInvalid():Boolean; function invalidateDisplayList(_arg1:ILayoutManagerClient):void; function set usePhasedInstantiation(_arg1:Boolean):void; function invalidateSize(_arg1:ILayoutManagerClient):void; function get usePhasedInstantiation():Boolean; function invalidateProperties(_arg1:ILayoutManagerClient):void; } }//package mx.managers
Section 197
//ILayoutManagerClient (mx.managers.ILayoutManagerClient) package mx.managers { import flash.events.*; public interface ILayoutManagerClient extends IEventDispatcher { function get updateCompletePendingFlag():Boolean; function set updateCompletePendingFlag(_arg1:Boolean):void; function set initialized(_arg1:Boolean):void; function validateProperties():void; function validateDisplayList():void; function get nestLevel():int; function get initialized():Boolean; function get processedDescriptors():Boolean; function validateSize(_arg1:Boolean=false):void; function set nestLevel(_arg1:int):void; function set processedDescriptors(_arg1:Boolean):void; } }//package mx.managers
Section 198
//ISystemManager (mx.managers.ISystemManager) package mx.managers { import flash.events.*; import flash.geom.*; import flash.display.*; import mx.core.*; import flash.text.*; public interface ISystemManager extends IEventDispatcher, IChildList, IFlexModuleFactory { function get focusPane():Sprite; function get loaderInfo():LoaderInfo; function get toolTipChildren():IChildList; function set focusPane(_arg1:Sprite):void; function isTopLevel():Boolean; function get popUpChildren():IChildList; function get screen():Rectangle; function isFontFaceEmbedded(_arg1:TextFormat):Boolean; function get rawChildren():IChildList; function get topLevelSystemManager():ISystemManager; function getDefinitionByName(_arg1:String):Object; function activate(_arg1:IFocusManagerContainer):void; function deactivate(_arg1:IFocusManagerContainer):void; function get cursorChildren():IChildList; function set document(_arg1:Object):void; function get embeddedFontList():Object; function set numModalWindows(_arg1:int):void; function removeFocusManager(_arg1:IFocusManagerContainer):void; function get document():Object; function get numModalWindows():int; function addFocusManager(_arg1:IFocusManagerContainer):void; function get stage():Stage; } }//package mx.managers
Section 199
//SystemManagerGlobals (mx.managers.SystemManagerGlobals) package mx.managers { public class SystemManagerGlobals { public static var topLevelSystemManagers:Array = []; public static var bootstrapLoaderInfoURL:String; } }//package mx.managers
Section 200
//IModuleInfo (mx.modules.IModuleInfo) package mx.modules { import flash.events.*; import mx.core.*; import flash.system.*; public interface IModuleInfo extends IEventDispatcher { function get ready():Boolean; function get loaded():Boolean; function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null):void; function release():void; function get error():Boolean; function get data():Object; function publish(_arg1:IFlexModuleFactory):void; function get factory():IFlexModuleFactory; function set data(_arg1:Object):void; function get url():String; function get setup():Boolean; function unload():void; } }//package mx.modules
Section 201
//ModuleManager (mx.modules.ModuleManager) package mx.modules { import mx.core.*; public class ModuleManager { mx_internal static const VERSION:String = "3.0.0.0"; public static function getModule(_arg1:String):IModuleInfo{ return (getSingleton().getModule(_arg1)); } private static function getSingleton():Object{ if (!ModuleManagerGlobals.managerSingleton){ ModuleManagerGlobals.managerSingleton = new ModuleManagerImpl(); }; return (ModuleManagerGlobals.managerSingleton); } public static function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{ return (getSingleton().getAssociatedFactory(_arg1)); } } }//package mx.modules import flash.events.*; import flash.display.*; import mx.core.*; import flash.system.*; import mx.events.*; import flash.utils.*; import flash.net.*; class ModuleInfoProxy extends EventDispatcher implements IModuleInfo { private var _data:Object; private var info:ModuleInfo; private var referenced:Boolean;// = false private function ModuleInfoProxy(_arg1:ModuleInfo){ this.info = _arg1; _arg1.addEventListener(ModuleEvent.SETUP, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.ERROR, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.UNLOAD, moduleEventHandler, false, 0, true); } public function get loaded():Boolean{ return (info.loaded); } public function release():void{ if (referenced){ info.removeReference(); referenced = false; }; } public function get error():Boolean{ return (info.error); } public function get factory():IFlexModuleFactory{ return (info.factory); } public function publish(_arg1:IFlexModuleFactory):void{ info.publish(_arg1); } public function set data(_arg1:Object):void{ _data = _arg1; } public function get ready():Boolean{ return (info.ready); } public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null):void{ var _local3:ModuleEvent; info.resurrect(); if (!referenced){ info.addReference(); referenced = true; }; if (info.error){ dispatchEvent(new ModuleEvent(ModuleEvent.ERROR)); } else { if (info.loaded){ if (info.setup){ dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); if (info.ready){ _local3 = new ModuleEvent(ModuleEvent.PROGRESS); _local3.bytesLoaded = info.size; _local3.bytesTotal = info.size; dispatchEvent(_local3); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); }; }; } else { info.load(_arg1, _arg2); }; }; } private function moduleEventHandler(_arg1:ModuleEvent):void{ dispatchEvent(_arg1); } public function get url():String{ return (info.url); } public function get data():Object{ return (_data); } public function get setup():Boolean{ return (info.setup); } public function unload():void{ info.unload(); info.removeEventListener(ModuleEvent.SETUP, moduleEventHandler); info.removeEventListener(ModuleEvent.PROGRESS, moduleEventHandler); info.removeEventListener(ModuleEvent.READY, moduleEventHandler); info.removeEventListener(ModuleEvent.ERROR, moduleEventHandler); info.removeEventListener(ModuleEvent.UNLOAD, moduleEventHandler); } } class ModuleManagerImpl extends EventDispatcher { private var moduleList:Object; private function ModuleManagerImpl(){ moduleList = {}; super(); } public function getModule(_arg1:String):IModuleInfo{ var _local2:ModuleInfo = (moduleList[_arg1] as ModuleInfo); if (!_local2){ _local2 = new ModuleInfo(_arg1); moduleList[_arg1] = _local2; }; return (new ModuleInfoProxy(_local2)); } public function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{ var m:Object; var info:ModuleInfo; var domain:ApplicationDomain; var cls:Class; var object = _arg1; var className:String = getQualifiedClassName(object); for each (m in moduleList) { info = (m as ModuleInfo); if (!info.ready){ } else { domain = info.applicationDomain; try { cls = Class(domain.getDefinition(className)); if ((object is cls)){ return (info.factory); }; } catch(error:Error) { }; }; }; return (null); } } class ModuleInfo extends EventDispatcher { private var _error:Boolean;// = false private var loader:Loader; private var factoryInfo:FactoryInfo; private var limbo:Dictionary; private var _loaded:Boolean;// = false private var _ready:Boolean;// = false private var numReferences:int;// = 0 private var _url:String; private var _setup:Boolean;// = false private function ModuleInfo(_arg1:String){ _url = _arg1; } private function clearLoader():void{ if (loader){ if (loader.contentLoaderInfo){ loader.contentLoaderInfo.removeEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, progressHandler); loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); }; try { if (loader.content){ loader.content.removeEventListener("ready", readyHandler); }; } catch(error:Error) { }; if (_loaded){ try { loader.close(); } catch(error:Error) { }; }; try { loader.unload(); } catch(error:Error) { }; loader = null; }; } public function get size():int{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.bytesTotal : 0); } public function get loaded():Boolean{ return ((limbo) ? false : _loaded); } public function release():void{ if (((_ready) && (!(limbo)))){ limbo = new Dictionary(true); limbo[factoryInfo] = 1; factoryInfo = null; } else { unload(); }; } public function get error():Boolean{ return ((limbo) ? false : _error); } public function get factory():IFlexModuleFactory{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.factory : null); } public function completeHandler(_arg1:Event):void{ var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = loader.contentLoaderInfo.bytesLoaded; _local2.bytesTotal = loader.contentLoaderInfo.bytesTotal; dispatchEvent(_local2); } public function publish(_arg1:IFlexModuleFactory):void{ if (factoryInfo){ return; }; if (_url.indexOf("published://") != 0){ return; }; factoryInfo = new FactoryInfo(); factoryInfo.factory = _arg1; _loaded = true; _setup = true; _ready = true; _error = false; dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); dispatchEvent(new ModuleEvent(ModuleEvent.PROGRESS)); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); } public function initHandler(_arg1:Event):void{ var moduleEvent:ModuleEvent; var event = _arg1; factoryInfo = new FactoryInfo(); try { factoryInfo.factory = (loader.content as IFlexModuleFactory); } catch(error:Error) { }; if (!factoryInfo.factory){ moduleEvent = new ModuleEvent(ModuleEvent.ERROR, event.bubbles, event.cancelable); moduleEvent.bytesLoaded = 0; moduleEvent.bytesTotal = 0; moduleEvent.errorText = "SWF is not a loadable module"; dispatchEvent(moduleEvent); return; }; loader.content.addEventListener("ready", readyHandler); try { factoryInfo.applicationDomain = loader.contentLoaderInfo.applicationDomain; } catch(error:Error) { }; _setup = true; dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); } public function resurrect():void{ var _local1:Object; if (((!(factoryInfo)) && (limbo))){ for (_local1 in limbo) { factoryInfo = (_local1 as FactoryInfo); break; }; limbo = null; }; if (!factoryInfo){ if (_loaded){ dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD)); }; loader = null; _loaded = false; _setup = false; _ready = false; _error = false; }; } public function errorHandler(_arg1:ErrorEvent):void{ _error = true; var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = 0; _local2.bytesTotal = 0; _local2.errorText = _arg1.text; dispatchEvent(_local2); } public function get ready():Boolean{ return ((limbo) ? false : _ready); } public function removeReference():void{ numReferences--; if (numReferences == 0){ release(); }; } public function addReference():void{ numReferences++; } public function progressHandler(_arg1:ProgressEvent):void{ var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null):void{ if (_loaded){ return; }; _loaded = true; limbo = null; if (_url.indexOf("published://") == 0){ return; }; var _local3:URLRequest = new URLRequest(_url); var _local4:LoaderContext = new LoaderContext(); _local4.applicationDomain = (_arg1) ? _arg1 : new ApplicationDomain(ApplicationDomain.currentDomain); _local4.securityDomain = _arg2; if ((((_arg2 == null)) && ((Security.sandboxType == Security.REMOTE)))){ _local4.securityDomain = SecurityDomain.currentDomain; }; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); loader.load(_local3, _local4); } public function get url():String{ return (_url); } public function get applicationDomain():ApplicationDomain{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.applicationDomain : null); } public function readyHandler(_arg1:Event):void{ _ready = true; factoryInfo.bytesTotal = loader.contentLoaderInfo.bytesTotal; clearLoader(); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); } public function get setup():Boolean{ return ((limbo) ? false : _setup); } public function unload():void{ clearLoader(); if (_loaded){ dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD)); }; limbo = null; factoryInfo = null; _loaded = false; _setup = false; _ready = false; _error = false; } } class FactoryInfo { public var bytesTotal:int;// = 0 public var factory:IFlexModuleFactory; public var applicationDomain:ApplicationDomain; private function FactoryInfo(){ } }
Section 202
//ModuleManagerGlobals (mx.modules.ModuleManagerGlobals) package mx.modules { public class ModuleManagerGlobals { public static var managerSingleton:Object = null; } }//package mx.modules
Section 203
//IResourceBundle (mx.resources.IResourceBundle) package mx.resources { public interface IResourceBundle { function get content():Object; function get locale():String; function get bundleName():String; } }//package mx.resources
Section 204
//IResourceManager (mx.resources.IResourceManager) package mx.resources { import flash.events.*; import flash.system.*; public interface IResourceManager extends IEventDispatcher { function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher; function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean; function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class; function getLocales():Array; function removeResourceBundlesForLocale(_arg1:String):void; function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle; function get localeChain():Array; function getInt(_arg1:String, _arg2:String, _arg3:String=null):int; function update():void; function set localeChain(_arg1:Array):void; function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint; function addResourceBundle(_arg1:IResourceBundle):void; function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array; function getBundleNamesForLocale(_arg1:String):Array; function removeResourceBundle(_arg1:String, _arg2:String):void; function getObject(_arg1:String, _arg2:String, _arg3:String=null); function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String; function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void; function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void; function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle; function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number; } }//package mx.resources
Section 205
//IResourceModule (mx.resources.IResourceModule) package mx.resources { public interface IResourceModule { function get resourceBundles():Array; } }//package mx.resources
Section 206
//ResourceBundle (mx.resources.ResourceBundle) package mx.resources { import mx.core.*; import flash.system.*; import mx.utils.*; public class ResourceBundle implements IResourceBundle { mx_internal var _locale:String; private var _content:Object; mx_internal var _bundleName:String; mx_internal static const VERSION:String = "3.0.0.0"; mx_internal static var backupApplicationDomain:ApplicationDomain; mx_internal static var locale:String; public function ResourceBundle(_arg1:String=null, _arg2:String=null){ _content = {}; super(); mx_internal::_locale = _arg1; mx_internal::_bundleName = _arg2; _content = getContent(); } protected function getContent():Object{ return ({}); } public function getString(_arg1:String):String{ return (String(_getObject(_arg1))); } public function get content():Object{ return (_content); } public function getBoolean(_arg1:String, _arg2:Boolean=true):Boolean{ var _local3:String = _getObject(_arg1).toLowerCase(); if (_local3 == "false"){ return (false); }; if (_local3 == "true"){ return (true); }; return (_arg2); } public function getStringArray(_arg1:String):Array{ var _local2:Array = _getObject(_arg1).split(","); var _local3:int = _local2.length; var _local4:int; while (_local4 < _local3) { _local2[_local4] = StringUtil.trim(_local2[_local4]); _local4++; }; return (_local2); } public function getObject(_arg1:String):Object{ return (_getObject(_arg1)); } private function _getObject(_arg1:String):Object{ var _local2:Object = content[_arg1]; if (!_local2){ throw (new Error(((("Key " + _arg1) + " was not found in resource bundle ") + bundleName))); }; return (_local2); } public function get locale():String{ return (mx_internal::_locale); } public function get bundleName():String{ return (mx_internal::_bundleName); } public function getNumber(_arg1:String):Number{ return (Number(_getObject(_arg1))); } private static function getClassByName(_arg1:String, _arg2:ApplicationDomain):Class{ var _local3:Class; if (_arg2.hasDefinition(_arg1)){ _local3 = (_arg2.getDefinition(_arg1) as Class); }; return (_local3); } public static function getResourceBundle(_arg1:String, _arg2:ApplicationDomain=null):ResourceBundle{ var _local3:String; var _local4:Class; var _local5:Object; var _local6:ResourceBundle; if (!_arg2){ _arg2 = ApplicationDomain.currentDomain; }; _local3 = (((mx_internal::locale + "$") + _arg1) + "_properties"); _local4 = getClassByName(_local3, _arg2); if (!_local4){ _local3 = (_arg1 + "_properties"); _local4 = getClassByName(_local3, _arg2); }; if (!_local4){ _local3 = _arg1; _local4 = getClassByName(_local3, _arg2); }; if (((!(_local4)) && (mx_internal::backupApplicationDomain))){ _local3 = (_arg1 + "_properties"); _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain); if (!_local4){ _local3 = _arg1; _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain); }; }; if (_local4){ _local5 = new (_local4); if ((_local5 is ResourceBundle)){ _local6 = ResourceBundle(_local5); return (_local6); }; }; throw (new Error(("Could not find resource bundle " + _arg1))); } } }//package mx.resources
Section 207
//ResourceManager (mx.resources.ResourceManager) package mx.resources { import mx.core.*; public class ResourceManager { mx_internal static const VERSION:String = "3.0.0.0"; private static var implClassDependency:ResourceManagerImpl; private static var instance:IResourceManager; public static function getInstance():IResourceManager{ if (!instance){ instance = IResourceManager(Singleton.getInstance("mx.resources::IResourceManager")); }; return (instance); } } }//package mx.resources
Section 208
//ResourceManagerImpl (mx.resources.ResourceManagerImpl) package mx.resources { import flash.events.*; import mx.core.*; import flash.system.*; import mx.modules.*; import mx.events.*; import flash.utils.*; import mx.utils.*; public class ResourceManagerImpl extends EventDispatcher implements IResourceManager { private var resourceModules:Object; private var initializedForNonFrameworkApp:Boolean;// = false private var localeMap:Object; private var _localeChain:Array; mx_internal static const VERSION:String = "3.0.0.0"; private static var instance:IResourceManager; public function ResourceManagerImpl(){ localeMap = {}; resourceModules = {}; super(); } public function get localeChain():Array{ return (_localeChain); } public function set localeChain(_arg1:Array):void{ _localeChain = _arg1; update(); } public function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (null); }; var _local5:* = _local4.content[_arg2]; var _local6:Array = String(_local5).split(","); var _local7:int = _local6.length; var _local8:int; while (_local8 < _local7) { _local6[_local8] = StringUtil.trim(_local6[_local8]); _local8++; }; return (_local6); } mx_internal function installCompiledResourceBundle(_arg1:ApplicationDomain, _arg2:String, _arg3:String):void{ var _local4:String; var _local5:String = _arg3; var _local6:int = _arg3.indexOf(":"); if (_local6 != -1){ _local4 = _arg3.substring(0, _local6); _local5 = _arg3.substring((_local6 + 1)); }; if (getResourceBundle(_arg2, _arg3)){ return; }; var _local7 = (((_arg2 + "$") + _local5) + "_properties"); if (_local4 != null){ _local7 = ((_local4 + ".") + _local7); }; var _local8:Class; if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; if (!_local8){ _local7 = _arg3; if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; }; if (!_local8){ _local7 = (_arg3 + "_properties"); if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; }; if (!_local8){ throw (new Error((((("Could not find compiled resource bundle '" + _arg3) + "' for locale '") + _arg2) + "'."))); }; var _local9:ResourceBundle = ResourceBundle(new (_local8)); _local9.mx_internal::_locale = _arg2; _local9.mx_internal::_bundleName = _arg3; addResourceBundle(_local9); } public function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String{ var _local5:IResourceBundle = findBundle(_arg1, _arg2, _arg4); if (!_local5){ return (null); }; var _local6:String = String(_local5.content[_arg2]); if (_arg3){ _local6 = StringUtil.substitute(_local6, _arg3); }; return (_local6); } public function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{ var moduleInfo:IModuleInfo; var resourceEventDispatcher:ResourceEventDispatcher; var timer:Timer; var timerHandler:Function; var url = _arg1; var updateFlag = _arg2; var applicationDomain = _arg3; var securityDomain = _arg4; moduleInfo = ModuleManager.getModule(url); resourceEventDispatcher = new ResourceEventDispatcher(moduleInfo); var readyHandler:Function = function (_arg1:ModuleEvent):void{ var _local2:* = _arg1.module.factory.create(); resourceModules[_arg1.module.url].resourceModule = _local2; if (updateFlag){ update(); }; }; moduleInfo.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true); var errorHandler:Function = function (_arg1:ModuleEvent):void{ var _local3:ResourceEvent; var _local2:String = ("Unable to load resource module from " + url); if (resourceEventDispatcher.willTrigger(ResourceEvent.ERROR)){ _local3 = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local3.bytesLoaded = 0; _local3.bytesTotal = 0; _local3.errorText = _local2; resourceEventDispatcher.dispatchEvent(_local3); } else { throw (new Error(_local2)); }; }; moduleInfo.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true); resourceModules[url] = new ResourceModuleInfo(moduleInfo, readyHandler, errorHandler); timer = new Timer(0); timerHandler = function (_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.stop(); moduleInfo.load(applicationDomain, securityDomain); }; timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true); timer.start(); return (resourceEventDispatcher); } public function getLocales():Array{ var _local2:String; var _local1:Array = []; for (_local2 in localeMap) { _local1.push(_local2); }; return (_local1); } public function removeResourceBundlesForLocale(_arg1:String):void{ delete localeMap[_arg1]; } public function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle{ var _local3:Object = localeMap[_arg1]; if (!_local3){ return (null); }; return (_local3[_arg2]); } private function dumpResourceModule(_arg1):void{ var _local2:ResourceBundle; var _local3:String; for each (_local2 in _arg1.resourceBundles) { trace(_local2.locale, _local2.bundleName); for (_local3 in _local2.content) { }; }; } public function getObject(_arg1:String, _arg2:String, _arg3:String=null){ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (undefined); }; return (_local4.content[_arg2]); } public function addResourceBundle(_arg1:IResourceBundle):void{ var _local2:String = _arg1.locale; var _local3:String = _arg1.bundleName; if (!localeMap[_local2]){ localeMap[_local2] = {}; }; localeMap[_local2][_local3] = _arg1; } private function findBundle(_arg1:String, _arg2:String, _arg3:String):IResourceBundle{ supportNonFrameworkApps(); return (((_arg3)!=null) ? getResourceBundle(_arg3, _arg1) : findResourceBundleWithResource(_arg1, _arg2)); } public function getInt(_arg1:String, _arg2:String, _arg3:String=null):int{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (0); }; var _local5:* = _local4.content[_arg2]; return (int(_local5)); } private function supportNonFrameworkApps():void{ if (initializedForNonFrameworkApp){ return; }; initializedForNonFrameworkApp = true; if (getLocales().length > 0){ return; }; var _local1:ApplicationDomain = ApplicationDomain.currentDomain; if (!_local1.hasDefinition("_CompiledResourceBundleInfo")){ return; }; var _local2:Class = Class(_local1.getDefinition("_CompiledResourceBundleInfo")); var _local3:Array = _local2.compiledLocales; var _local4:Array = _local2.compiledResourceBundleNames; installCompiledResourceBundles(_local1, _local3, _local4); localeChain = _local3; } public function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (null); }; var _local5:* = _local4.content[_arg2]; return ((_local5 as Class)); } public function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (NaN); }; var _local5:* = _local4.content[_arg2]; return (Number(_local5)); } public function update():void{ dispatchEvent(new Event(Event.CHANGE)); } public function getBundleNamesForLocale(_arg1:String):Array{ var _local3:String; var _local2:Array = []; for (_local3 in localeMap[_arg1]) { _local2.push(_local3); }; return (_local2); } public function removeResourceBundle(_arg1:String, _arg2:String):void{ delete localeMap[_arg1][_arg2]; if (getBundleNamesForLocale(_arg1).length == 0){ delete localeMap[_arg1]; }; } public function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void{ var _local7:String; var _local8:int; var _local9:String; var _local4:int = (_arg2) ? _arg2.length : 0; var _local5:int = (_arg3) ? _arg3.length : 0; var _local6:int; while (_local6 < _local4) { _local7 = _arg2[_local6]; _local8 = 0; while (_local8 < _local5) { _local9 = _arg3[_local8]; mx_internal::installCompiledResourceBundle(_arg1, _local7, _local9); _local8++; }; _local6++; }; } public function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle{ var _local5:String; var _local6:Object; var _local7:ResourceBundle; if (!_localeChain){ return (null); }; var _local3:int = _localeChain.length; var _local4:int; while (_local4 < _local3) { _local5 = localeChain[_local4]; _local6 = localeMap[_local5]; if (!_local6){ } else { _local7 = _local6[_arg1]; if (!_local7){ } else { if ((_arg2 in _local7.content)){ return (_local7); }; }; }; _local4++; }; return (null); } public function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (0); }; var _local5:* = _local4.content[_arg2]; return (uint(_local5)); } public function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (false); }; var _local5:* = _local4.content[_arg2]; return ((String(_local5).toLowerCase() == "true")); } public function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void{ throw (new Error("unloadResourceModule() is not yet implemented.")); } public static function getInstance():IResourceManager{ if (!instance){ instance = new (ResourceManagerImpl); }; return (instance); } } }//package mx.resources import flash.events.*; import mx.modules.*; import mx.events.*; class ResourceModuleInfo { public var resourceModule:IResourceModule; public var errorHandler:Function; public var readyHandler:Function; public var moduleInfo:IModuleInfo; private function ResourceModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){ this.moduleInfo = _arg1; this.readyHandler = _arg2; this.errorHandler = _arg3; } } class ResourceEventDispatcher extends EventDispatcher { private function ResourceEventDispatcher(_arg1:IModuleInfo){ _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true); } private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.COMPLETE); dispatchEvent(_local2); } private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; _local2.errorText = _arg1.errorText; dispatchEvent(_local2); } }
Section 209
//HaloBorder (mx.skins.halo.HaloBorder) package mx.skins.halo { import flash.display.*; import mx.core.*; import mx.styles.*; import mx.utils.*; import mx.skins.*; import mx.graphics.*; public class HaloBorder extends RectangularBorder { mx_internal var radiusObj:Object; mx_internal var backgroundHole:Object; mx_internal var radius:Number; mx_internal var bRoundedCorners:Boolean; mx_internal var backgroundColor:Object; private var dropShadow:RectangularDropShadow; protected var _borderMetrics:EdgeMetrics; mx_internal var backgroundAlphaName:String; mx_internal static const VERSION:String = "3.0.0.0"; private static var BORDER_WIDTHS:Object = {none:0, solid:1, inset:2, outset:2, alert:3, dropdown:2, menuBorder:1, comboNonEdit:2}; public function HaloBorder(){ BORDER_WIDTHS["default"] = 3; } override public function styleChanged(_arg1:String):void{ if ((((((((((_arg1 == null)) || ((_arg1 == "styleName")))) || ((_arg1 == "borderStyle")))) || ((_arg1 == "borderThickness")))) || ((_arg1 == "borderSides")))){ _borderMetrics = null; }; invalidateDisplayList(); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ if (((isNaN(_arg1)) || (isNaN(_arg2)))){ return; }; super.updateDisplayList(_arg1, _arg2); backgroundColor = getBackgroundColor(); bRoundedCorners = false; backgroundAlphaName = "backgroundAlpha"; backgroundHole = null; radius = 0; radiusObj = null; drawBorder(_arg1, _arg2); drawBackground(_arg1, _arg2); } mx_internal function drawBorder(_arg1:Number, _arg2:Number):void{ var _local5:Number; var _local6:uint; var _local7:uint; var _local8:String; var _local9:Number; var _local10:uint; var _local11:Boolean; var _local12:uint; var _local13:Array; var _local14:Array; var _local15:uint; var _local16:uint; var _local17:uint; var _local18:uint; var _local19:Boolean; var _local20:Object; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Object; var _local27:Number; var _local28:Number; var _local29:IContainer; var _local30:EdgeMetrics; var _local31:Boolean; var _local32:Number; var _local33:Array; var _local34:uint; var _local35:Boolean; var _local36:Number; var _local3:String = getStyle("borderStyle"); var _local4:Array = getStyle("highlightAlphas"); var _local21:Boolean; var _local26:Graphics = graphics; _local26.clear(); if (_local3){ switch (_local3){ case "none": break; case "inset": _local7 = getStyle("borderColor"); _local22 = ColorUtil.adjustBrightness2(_local7, -40); _local23 = ColorUtil.adjustBrightness2(_local7, 25); _local24 = ColorUtil.adjustBrightness2(_local7, 40); _local25 = backgroundColor; if ((((_local25 === null)) || ((_local25 === "")))){ _local25 = _local7; }; draw3dBorder(_local23, _local22, _local24, Number(_local25), Number(_local25), Number(_local25)); break; case "outset": _local7 = getStyle("borderColor"); _local22 = ColorUtil.adjustBrightness2(_local7, -40); _local23 = ColorUtil.adjustBrightness2(_local7, -25); _local24 = ColorUtil.adjustBrightness2(_local7, 40); _local25 = backgroundColor; if ((((_local25 === null)) || ((_local25 === "")))){ _local25 = _local7; }; draw3dBorder(_local23, _local24, _local22, Number(_local25), Number(_local25), Number(_local25)); break; case "alert": case "default": if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ _local27 = getStyle("backgroundAlpha"); _local5 = getStyle("borderAlpha"); backgroundAlphaName = "borderAlpha"; radius = getStyle("cornerRadius"); bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true"); _local28 = (bRoundedCorners) ? radius : 0; drawDropShadow(0, 0, _arg1, _arg2, radius, radius, _local28, _local28); if (!bRoundedCorners){ radiusObj = {}; }; _local29 = (parent as IContainer); if (_local29){ _local30 = _local29.viewMetrics; backgroundHole = {x:_local30.left, y:_local30.top, w:Math.max(0, ((_arg1 - _local30.left) - _local30.right)), h:Math.max(0, ((_arg2 - _local30.top) - _local30.bottom)), r:0}; if ((((backgroundHole.w > 0)) && ((backgroundHole.h > 0)))){ if (_local27 != _local5){ drawDropShadow(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h, 0, 0, 0, 0); }; _local26.beginFill(Number(backgroundColor), _local27); _local26.drawRect(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h); _local26.endFill(); }; }; backgroundColor = getStyle("borderColor"); }; break; case "dropdown": _local12 = getStyle("dropdownBorderColor"); drawDropShadow(0, 0, _arg1, _arg2, 4, 0, 0, 4); drawRoundRect(0, 0, _arg1, _arg2, {tl:4, tr:0, br:0, bl:4}, 5068126, 1); drawRoundRect(0, 0, _arg1, _arg2, {tl:4, tr:0, br:0, bl:4}, [0xFFFFFF, 0xFFFFFF], [0.7, 0], verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {tl:3, tr:0, br:0, bl:3}, 0xFFFFFF, 1); drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {tl:3, tr:0, br:0, bl:3}, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3))); if (!isNaN(_local12)){ drawRoundRect(0, 0, (_arg1 + 1), _arg2, {tl:4, tr:0, br:0, bl:4}, _local12, 0.5); drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {tl:3, tr:0, br:0, bl:3}, 0xFFFFFF, 1); drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {tl:3, tr:0, br:0, bl:3}, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3))); }; backgroundColor = null; break; case "menuBorder": _local7 = getStyle("borderColor"); drawRoundRect(0, 0, _arg1, _arg2, 0, _local7, 1); drawDropShadow(1, 1, (_arg1 - 2), (_arg2 - 2), 0, 0, 0, 0); break; case "comboNonEdit": break; case "controlBar": if ((((_arg1 == 0)) || ((_arg2 == 0)))){ backgroundColor = null; break; }; _local14 = getStyle("footerColors"); _local31 = !((_local14 == null)); _local32 = getStyle("borderAlpha"); if (_local31){ _local26.lineStyle(0, ((_local14.length > 0)) ? _local14[1] : _local14[0], _local32); _local26.moveTo(0, 0); _local26.lineTo(_arg1, 0); _local26.lineStyle(0, 0, 0); if (((((parent) && (parent.parent))) && ((parent.parent is IStyleClient)))){ radius = IStyleClient(parent.parent).getStyle("cornerRadius"); _local32 = IStyleClient(parent.parent).getStyle("borderAlpha"); }; if (isNaN(radius)){ radius = 0; }; if (IStyleClient(parent.parent).getStyle("roundedBottomCorners").toString().toLowerCase() != "true"){ radius = 0; }; drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:0, tr:0, bl:radius, br:radius}, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2)); if ((((_local14.length > 1)) && (!((_local14[0] == _local14[1]))))){ drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:0, tr:0, bl:radius, br:radius}, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(1, 2, (_arg1 - 2), (_arg2 - 3), {tl:0, tr:0, bl:(radius - 1), br:(radius - 1)}, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2)); }; }; backgroundColor = null; break; case "applicationControlBar": _local13 = getStyle("fillColors"); _local5 = getStyle("backgroundAlpha"); _local4 = getStyle("highlightAlphas"); _local33 = getStyle("fillAlphas"); _local11 = getStyle("docked"); _local34 = uint(backgroundColor); radius = getStyle("cornerRadius"); if (!radius){ radius = 0; }; drawDropShadow(0, 1, _arg1, (_arg2 - 1), radius, radius, radius, radius); if (((!((backgroundColor === null))) && (StyleManager.isValidStyleValue(backgroundColor)))){ drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local34, _local5, verticalGradientMatrix(0, 0, _arg1, _arg2)); }; drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local13, _local33, verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(0, 1, _arg1, ((_arg2 / 2) - 1), {tl:radius, tr:radius, bl:0, br:0}, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, ((_arg2 / 2) - 1))); drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:radius, tr:radius, bl:0, br:0}, 0xFFFFFF, 0.3, null, GradientType.LINEAR, null, {x:0, y:2, w:_arg1, h:(_arg2 - 2), r:{tl:radius, tr:radius, bl:0, br:0}}); backgroundColor = null; break; default: _local7 = getStyle("borderColor"); _local9 = getStyle("borderThickness"); _local8 = getStyle("borderSides"); _local35 = true; radius = getStyle("cornerRadius"); bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true"); _local36 = Math.max((radius - _local9), 0); _local20 = {x:_local9, y:_local9, w:(_arg1 - (_local9 * 2)), h:(_arg2 - (_local9 * 2)), r:_local36}; if (!bRoundedCorners){ radiusObj = {tl:radius, tr:radius, bl:0, br:0}; _local20.r = {tl:_local36, tr:_local36, bl:0, br:0}; }; if (_local8 != "left top right bottom"){ _local20.r = {tl:_local36, tr:_local36, bl:(bRoundedCorners) ? _local36 : 0, br:(bRoundedCorners) ? _local36 : 0}; radiusObj = {tl:radius, tr:radius, bl:(bRoundedCorners) ? radius : 0, br:(bRoundedCorners) ? radius : 0}; _local8 = _local8.toLowerCase(); if (_local8.indexOf("left") == -1){ _local20.x = 0; _local20.w = (_local20.w + _local9); _local20.r.tl = 0; _local20.r.bl = 0; radiusObj.tl = 0; radiusObj.bl = 0; _local35 = false; }; if (_local8.indexOf("top") == -1){ _local20.y = 0; _local20.h = (_local20.h + _local9); _local20.r.tl = 0; _local20.r.tr = 0; radiusObj.tl = 0; radiusObj.tr = 0; _local35 = false; }; if (_local8.indexOf("right") == -1){ _local20.w = (_local20.w + _local9); _local20.r.tr = 0; _local20.r.br = 0; radiusObj.tr = 0; radiusObj.br = 0; _local35 = false; }; if (_local8.indexOf("bottom") == -1){ _local20.h = (_local20.h + _local9); _local20.r.bl = 0; _local20.r.br = 0; radiusObj.bl = 0; radiusObj.br = 0; _local35 = false; }; }; if ((((radius == 0)) && (_local35))){ drawDropShadow(0, 0, _arg1, _arg2, 0, 0, 0, 0); _local26.beginFill(_local7); _local26.drawRect(0, 0, _arg1, _arg2); _local26.drawRect(_local9, _local9, (_arg1 - (2 * _local9)), (_arg2 - (2 * _local9))); _local26.endFill(); } else { if (radiusObj){ drawDropShadow(0, 0, _arg1, _arg2, radiusObj.tl, radiusObj.tr, radiusObj.br, radiusObj.bl); drawRoundRect(0, 0, _arg1, _arg2, radiusObj, _local7, 1, null, null, null, _local20); radiusObj.tl = Math.max((radius - _local9), 0); radiusObj.tr = Math.max((radius - _local9), 0); radiusObj.bl = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0; radiusObj.br = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0; } else { drawDropShadow(0, 0, _arg1, _arg2, radius, radius, radius, radius); drawRoundRect(0, 0, _arg1, _arg2, radius, _local7, 1, null, null, null, _local20); radius = Math.max((getStyle("cornerRadius") - _local9), 0); }; }; }; }; } mx_internal function drawBackground(_arg1:Number, _arg2:Number):void{ var _local4:Number; var _local5:Number; var _local6:EdgeMetrics; var _local7:Graphics; var _local8:Number; var _local9:Number; var _local10:Array; var _local11:Number; if (((((((!((backgroundColor === null))) && (!((backgroundColor === ""))))) || (getStyle("mouseShield")))) || (getStyle("mouseShieldChildren")))){ _local4 = Number(backgroundColor); _local5 = 1; _local6 = getBackgroundColorMetrics(); _local7 = graphics; if (((((isNaN(_local4)) || ((backgroundColor === "")))) || ((backgroundColor === null)))){ _local5 = 0; _local4 = 0xFFFFFF; } else { _local5 = getStyle(backgroundAlphaName); }; if (((!((radius == 0))) || (backgroundHole))){ _local8 = _local6.bottom; if (radiusObj){ _local9 = (bRoundedCorners) ? radius : 0; radiusObj = {tl:radius, tr:radius, bl:_local9, br:_local9}; drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radiusObj, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole); } else { drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radius, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole); }; } else { _local7.beginFill(_local4, _local5); _local7.drawRect(_local6.left, _local6.top, ((_arg1 - _local6.right) - _local6.left), ((_arg2 - _local6.bottom) - _local6.top)); _local7.endFill(); }; }; var _local3:String = getStyle("borderStyle"); if ((((((FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)) && ((((_local3 == "alert")) || ((_local3 == "default")))))) && ((getStyle("headerColors") == null)))){ _local10 = getStyle("highlightAlphas"); _local11 = (_local10) ? _local10[0] : 0.3; drawRoundRect(0, 0, _arg1, _arg2, {tl:radius, tr:radius, bl:0, br:0}, 0xFFFFFF, _local11, null, GradientType.LINEAR, null, {x:0, y:1, w:_arg1, h:(_arg2 - 1), r:{tl:radius, tr:radius, bl:0, br:0}}); }; } mx_internal function drawDropShadow(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):void{ var _local11:Number; var _local12:Boolean; if ((((((((getStyle("dropShadowEnabled") == false)) || ((getStyle("dropShadowEnabled") == "false")))) || ((_arg3 == 0)))) || ((_arg4 == 0)))){ return; }; var _local9:Number = getStyle("shadowDistance"); var _local10:String = getStyle("shadowDirection"); if (getStyle("borderStyle") == "applicationControlBar"){ _local12 = getStyle("docked"); _local11 = (_local12) ? 90 : getDropShadowAngle(_local9, _local10); _local9 = Math.abs(_local9); } else { _local11 = getDropShadowAngle(_local9, _local10); _local9 = (Math.abs(_local9) + 2); }; if (!dropShadow){ dropShadow = new RectangularDropShadow(); }; dropShadow.distance = _local9; dropShadow.angle = _local11; dropShadow.color = getStyle("dropShadowColor"); dropShadow.alpha = 0.4; dropShadow.tlRadius = _arg5; dropShadow.trRadius = _arg6; dropShadow.blRadius = _arg8; dropShadow.brRadius = _arg7; dropShadow.drawShadow(graphics, _arg1, _arg2, _arg3, _arg4); } mx_internal function getBackgroundColor():Object{ var _local2:Object; var _local1:IUIComponent = (parent as IUIComponent); if (((_local1) && (!(_local1.enabled)))){ _local2 = getStyle("backgroundDisabledColor"); if (((!((_local2 === null))) && (StyleManager.isValidStyleValue(_local2)))){ return (_local2); }; }; return (getStyle("backgroundColor")); } mx_internal function draw3dBorder(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{ var _local7:Number = width; var _local8:Number = height; drawDropShadow(0, 0, width, height, 0, 0, 0, 0); var _local9:Graphics = graphics; _local9.beginFill(_arg1); _local9.drawRect(0, 0, _local7, _local8); _local9.drawRect(1, 0, (_local7 - 2), _local8); _local9.endFill(); _local9.beginFill(_arg2); _local9.drawRect(1, 0, (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg3); _local9.drawRect(1, (_local8 - 1), (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg4); _local9.drawRect(1, 1, (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg5); _local9.drawRect(1, (_local8 - 2), (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg6); _local9.drawRect(1, 2, (_local7 - 2), (_local8 - 4)); _local9.drawRect(2, 2, (_local7 - 4), (_local8 - 4)); _local9.endFill(); } mx_internal function getBackgroundColorMetrics():EdgeMetrics{ return (borderMetrics); } mx_internal function getDropShadowAngle(_arg1:Number, _arg2:String):Number{ if (_arg2 == "left"){ return (((_arg1 >= 0)) ? 135 : 225); //unresolved jump }; if (_arg2 == "right"){ return (((_arg1 >= 0)) ? 45 : 315); //unresolved jump }; return (((_arg1 >= 0)) ? 90 : 270); } override public function get borderMetrics():EdgeMetrics{ var _local1:Number; var _local3:String; if (_borderMetrics){ return (_borderMetrics); }; var _local2:String = getStyle("borderStyle"); if ((((_local2 == "default")) || ((_local2 == "alert")))){ if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ _borderMetrics = new EdgeMetrics(0, 0, 0, 0); } else { return (EdgeMetrics.EMPTY); }; } else { if ((((_local2 == "controlBar")) || ((_local2 == "applicationControlBar")))){ _borderMetrics = new EdgeMetrics(1, 1, 1, 1); } else { if (_local2 == "solid"){ _local1 = getStyle("borderThickness"); if (isNaN(_local1)){ _local1 = 0; }; _borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1); _local3 = getStyle("borderSides"); if (_local3 != "left top right bottom"){ if (_local3.indexOf("left") == -1){ _borderMetrics.left = 0; }; if (_local3.indexOf("top") == -1){ _borderMetrics.top = 0; }; if (_local3.indexOf("right") == -1){ _borderMetrics.right = 0; }; if (_local3.indexOf("bottom") == -1){ _borderMetrics.bottom = 0; }; }; } else { _local1 = BORDER_WIDTHS[_local2]; if (isNaN(_local1)){ _local1 = 0; }; _borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1); }; }; }; return (_borderMetrics); } } }//package mx.skins.halo
Section 210
//HaloFocusRect (mx.skins.halo.HaloFocusRect) package mx.skins.halo { import flash.display.*; import mx.core.*; import mx.styles.*; import mx.utils.*; import mx.skins.*; public class HaloFocusRect extends ProgrammaticSkin implements IStyleClient { private var _focusColor:Number; mx_internal static const VERSION:String = "3.0.0.0"; public function get inheritingStyles():Object{ return (styleName.inheritingStyles); } public function set inheritingStyles(_arg1:Object):void{ } public function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void{ } public function registerEffects(_arg1:Array):void{ } public function regenerateStyleCache(_arg1:Boolean):void{ } public function get styleDeclaration():CSSStyleDeclaration{ return (CSSStyleDeclaration(styleName)); } public function getClassStyleDeclarations():Array{ return ([]); } public function get className():String{ return ("HaloFocusRect"); } public function clearStyle(_arg1:String):void{ if (_arg1 == "focusColor"){ _focusColor = NaN; }; } public function setStyle(_arg1:String, _arg2):void{ if (_arg1 == "focusColor"){ _focusColor = _arg2; }; } public function set nonInheritingStyles(_arg1:Object):void{ } public function get nonInheritingStyles():Object{ return (styleName.nonInheritingStyles); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; super.updateDisplayList(_arg1, _arg2); var _local3:String = getStyle("focusBlendMode"); var _local4:Number = getStyle("focusAlpha"); var _local5:Number = getStyle("focusColor"); var _local6:Number = getStyle("cornerRadius"); var _local7:Number = getStyle("focusThickness"); var _local8:String = getStyle("focusRoundedCorners"); var _local9:Number = getStyle("themeColor"); var _local10:Number = _local5; if (isNaN(_local10)){ _local10 = _local9; }; var _local11:Graphics = graphics; _local11.clear(); blendMode = _local3; if (((!((_local8 == "tl tr bl br"))) && ((_local6 > 0)))){ _local12 = 0; _local13 = 0; _local14 = 0; _local15 = 0; _local16 = (_local6 + _local7); if (_local8.indexOf("tl") >= 0){ _local12 = _local16; }; if (_local8.indexOf("tr") >= 0){ _local14 = _local16; }; if (_local8.indexOf("bl") >= 0){ _local13 = _local16; }; if (_local8.indexOf("br") >= 0){ _local15 = _local16; }; _local11.beginFill(_local10, _local4); GraphicsUtil.drawRoundRectComplex(_local11, 0, 0, _arg1, _arg2, _local12, _local14, _local13, _local15); _local12 = (_local12) ? _local6 : 0; _local14 = (_local14) ? _local6 : 0; _local13 = (_local13) ? _local6 : 0; _local15 = (_local15) ? _local6 : 0; GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15); _local11.endFill(); _local16 = (_local6 + (_local7 / 2)); _local12 = (_local12) ? _local16 : 0; _local14 = (_local14) ? _local16 : 0; _local13 = (_local13) ? _local16 : 0; _local15 = (_local15) ? _local16 : 0; _local11.beginFill(_local10, _local4); GraphicsUtil.drawRoundRectComplex(_local11, (_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local12, _local14, _local13, _local15); _local12 = (_local12) ? _local6 : 0; _local14 = (_local14) ? _local6 : 0; _local13 = (_local13) ? _local6 : 0; _local15 = (_local15) ? _local6 : 0; GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15); _local11.endFill(); } else { _local11.beginFill(_local10, _local4); _local17 = (((_local6 > 0)) ? (_local6 + _local7) : 0 * 2); _local11.drawRoundRect(0, 0, _arg1, _arg2, _local17, _local17); _local17 = (_local6 * 2); _local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17); _local11.endFill(); _local11.beginFill(_local10, _local4); _local17 = (((_local6 > 0)) ? (_local6 + (_local7 / 2)) : 0 * 2); _local11.drawRoundRect((_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local17, _local17); _local17 = (_local6 * 2); _local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17); _local11.endFill(); }; } override public function getStyle(_arg1:String){ return (((_arg1 == "focusColor")) ? _focusColor : super.getStyle(_arg1)); } public function set styleDeclaration(_arg1:CSSStyleDeclaration):void{ } } }//package mx.skins.halo
Section 211
//ListDropIndicator (mx.skins.halo.ListDropIndicator) package mx.skins.halo { import flash.display.*; import mx.core.*; import mx.skins.*; public class ListDropIndicator extends ProgrammaticSkin { public var direction:String;// = "horizontal" mx_internal static const VERSION:String = "3.0.0.0"; override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ super.updateDisplayList(_arg1, _arg2); var _local3:Graphics = graphics; _local3.clear(); _local3.lineStyle(2, 2831164); if (direction == "horizontal"){ _local3.moveTo(0, 0); _local3.lineTo(_arg1, 0); } else { _local3.moveTo(0, 0); _local3.lineTo(0, _arg2); }; } } }//package mx.skins.halo
Section 212
//Border (mx.skins.Border) package mx.skins { import mx.core.*; public class Border extends ProgrammaticSkin implements IBorder { mx_internal static const VERSION:String = "3.0.0.0"; public function get borderMetrics():EdgeMetrics{ return (EdgeMetrics.EMPTY); } } }//package mx.skins
Section 213
//ProgrammaticSkin (mx.skins.ProgrammaticSkin) package mx.skins { import flash.geom.*; import flash.display.*; import mx.core.*; import mx.styles.*; import mx.managers.*; import mx.utils.*; public class ProgrammaticSkin extends FlexShape implements IFlexDisplayObject, IInvalidating, ILayoutManagerClient, ISimpleStyleClient, IProgrammaticSkin { private var _initialized:Boolean;// = false private var _height:Number; private var invalidateDisplayListFlag:Boolean;// = false private var _styleName:IStyleClient; private var _nestLevel:int;// = 0 private var _processedDescriptors:Boolean;// = false private var _updateCompletePendingFlag:Boolean;// = true private var _width:Number; mx_internal static const VERSION:String = "3.0.0.0"; private static var tempMatrix:Matrix = new Matrix(); public function ProgrammaticSkin(){ _width = measuredWidth; _height = measuredHeight; } public function getStyle(_arg1:String){ return (_styleName.getStyle(_arg1)); } protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ } public function get nestLevel():int{ return (_nestLevel); } public function set nestLevel(_arg1:int):void{ _nestLevel = _arg1; invalidateDisplayList(); } override public function get height():Number{ return (_height); } public function get updateCompletePendingFlag():Boolean{ return (_updateCompletePendingFlag); } protected function verticalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{ return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 90)); } public function validateSize(_arg1:Boolean=false):void{ } public function invalidateDisplayList():void{ if (((!(invalidateDisplayListFlag)) && ((nestLevel > 0)))){ invalidateDisplayListFlag = true; UIComponentGlobals.layoutManager.invalidateDisplayList(this); }; } public function set updateCompletePendingFlag(_arg1:Boolean):void{ _updateCompletePendingFlag = _arg1; } protected function horizontalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{ return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 0)); } override public function set height(_arg1:Number):void{ _height = _arg1; invalidateDisplayList(); } public function set processedDescriptors(_arg1:Boolean):void{ _processedDescriptors = _arg1; } public function validateDisplayList():void{ invalidateDisplayListFlag = false; updateDisplayList(width, height); } public function get measuredWidth():Number{ return (0); } override public function set width(_arg1:Number):void{ _width = _arg1; invalidateDisplayList(); } public function get measuredHeight():Number{ return (0); } public function set initialized(_arg1:Boolean):void{ _initialized = _arg1; } protected function drawRoundRect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null, _arg6:Object=null, _arg7:Object=null, _arg8:Matrix=null, _arg9:String="linear", _arg10:Array=null, _arg11:Object=null):void{ var _local13:Number; var _local14:Array; var _local15:Object; var _local12:Graphics = graphics; if ((((_arg3 == 0)) || ((_arg4 == 0)))){ return; }; if (_arg6 !== null){ if ((_arg6 is uint)){ _local12.beginFill(uint(_arg6), Number(_arg7)); } else { if ((_arg6 is Array)){ _local14 = ((_arg7 is Array)) ? (_arg7 as Array) : [_arg7, _arg7]; if (!_arg10){ _arg10 = [0, 0xFF]; }; _local12.beginGradientFill(_arg9, (_arg6 as Array), _local14, _arg10, _arg8); }; }; }; if (!_arg5){ _local12.drawRect(_arg1, _arg2, _arg3, _arg4); } else { if ((_arg5 is Number)){ _local13 = (Number(_arg5) * 2); _local12.drawRoundRect(_arg1, _arg2, _arg3, _arg4, _local13, _local13); } else { GraphicsUtil.drawRoundRectComplex(_local12, _arg1, _arg2, _arg3, _arg4, _arg5.tl, _arg5.tr, _arg5.bl, _arg5.br); }; }; if (_arg11){ _local15 = _arg11.r; if ((_local15 is Number)){ _local13 = (Number(_local15) * 2); _local12.drawRoundRect(_arg11.x, _arg11.y, _arg11.w, _arg11.h, _local13, _local13); } else { GraphicsUtil.drawRoundRectComplex(_local12, _arg11.x, _arg11.y, _arg11.w, _arg11.h, _local15.tl, _local15.tr, _local15.bl, _local15.br); }; }; if (_arg6 !== null){ _local12.endFill(); }; } public function get processedDescriptors():Boolean{ return (_processedDescriptors); } public function set styleName(_arg1:Object):void{ if (_styleName != _arg1){ _styleName = (_arg1 as IStyleClient); invalidateDisplayList(); }; } public function setActualSize(_arg1:Number, _arg2:Number):void{ var _local3:Boolean; if (_width != _arg1){ _width = _arg1; _local3 = true; }; if (_height != _arg2){ _height = _arg2; _local3 = true; }; if (_local3){ invalidateDisplayList(); }; } public function styleChanged(_arg1:String):void{ invalidateDisplayList(); } override public function get width():Number{ return (_width); } public function invalidateProperties():void{ } public function get initialized():Boolean{ return (_initialized); } protected function rotatedGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Matrix{ tempMatrix.createGradientBox(_arg3, _arg4, ((_arg5 * Math.PI) / 180), _arg1, _arg2); return (tempMatrix); } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get styleName():Object{ return (_styleName); } public function validateNow():void{ if (invalidateDisplayListFlag){ validateDisplayList(); }; } public function invalidateSize():void{ } public function validateProperties():void{ } } }//package mx.skins
Section 214
//RectangularBorder (mx.skins.RectangularBorder) package mx.skins { import flash.events.*; import flash.geom.*; import flash.display.*; import mx.core.*; import mx.styles.*; import flash.system.*; import mx.resources.*; import flash.utils.*; import flash.net.*; public class RectangularBorder extends Border implements IRectangularBorder { private var backgroundImage:DisplayObject; private var backgroundImageHeight:Number; private var _backgroundImageBounds:Rectangle; private var backgroundImageStyle:Object; private var backgroundImageWidth:Number; private var resourceManager:IResourceManager; mx_internal static const VERSION:String = "3.0.0.0"; public function RectangularBorder(){ resourceManager = ResourceManager.getInstance(); super(); addEventListener(Event.REMOVED, removedHandler); } public function layoutBackgroundImage():void{ var _local4:Number; var _local5:Number; var _local7:Number; var _local8:Number; var _local14:Number; var _local15:Graphics; var _local1:DisplayObject = parent; var _local2:EdgeMetrics = ((_local1 is IContainer)) ? IContainer(_local1).viewMetrics : borderMetrics; var _local3 = !((getStyle("backgroundAttachment") == "fixed")); if (_backgroundImageBounds){ _local4 = _backgroundImageBounds.width; _local5 = _backgroundImageBounds.height; } else { _local4 = ((width - _local2.left) - _local2.right); _local5 = ((height - _local2.top) - _local2.bottom); }; var _local6:Number = getBackgroundSize(); if (isNaN(_local6)){ _local7 = 1; _local8 = 1; } else { _local14 = (_local6 * 0.01); _local7 = ((_local14 * _local4) / backgroundImageWidth); _local8 = ((_local14 * _local5) / backgroundImageHeight); }; backgroundImage.scaleX = _local7; backgroundImage.scaleY = _local8; var _local9:Number = Math.round((0.5 * (_local4 - (backgroundImageWidth * _local7)))); var _local10:Number = Math.round((0.5 * (_local5 - (backgroundImageHeight * _local8)))); backgroundImage.x = _local2.left; backgroundImage.y = _local2.top; var _local11:Shape = Shape(backgroundImage.mask); _local11.x = _local2.left; _local11.y = _local2.top; if (((_local3) && ((_local1 is IContainer)))){ _local9 = (_local9 - IContainer(_local1).horizontalScrollPosition); _local10 = (_local10 - IContainer(_local1).verticalScrollPosition); }; backgroundImage.alpha = getStyle("backgroundAlpha"); backgroundImage.x = (backgroundImage.x + _local9); backgroundImage.y = (backgroundImage.y + _local10); var _local12:Number = ((width - _local2.left) - _local2.right); var _local13:Number = ((height - _local2.top) - _local2.bottom); if (((!((_local11.width == _local12))) || (!((_local11.height == _local13))))){ _local15 = _local11.graphics; _local15.clear(); _local15.beginFill(0xFFFFFF); _local15.drawRect(0, 0, _local12, _local13); _local15.endFill(); }; } public function set backgroundImageBounds(_arg1:Rectangle):void{ _backgroundImageBounds = _arg1; invalidateDisplayList(); } private function getBackgroundSize():Number{ var _local3:int; var _local1:Number = NaN; var _local2:Object = getStyle("backgroundSize"); if (((_local2) && ((_local2 is String)))){ _local3 = _local2.indexOf("%"); if (_local3 != -1){ _local1 = Number(_local2.substr(0, _local3)); }; }; return (_local1); } private function removedHandler(_arg1:Event):void{ var _local2:IChildList; if (backgroundImage){ _local2 = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent); _local2.removeChild(backgroundImage.mask); _local2.removeChild(backgroundImage); backgroundImage = null; }; } private function initBackgroundImage(_arg1:DisplayObject):void{ backgroundImage = _arg1; if ((_arg1 is Loader)){ backgroundImageWidth = Loader(_arg1).contentLoaderInfo.width; backgroundImageHeight = Loader(_arg1).contentLoaderInfo.height; } else { backgroundImageWidth = backgroundImage.width; backgroundImageHeight = backgroundImage.height; if ((_arg1 is ISimpleStyleClient)){ ISimpleStyleClient(_arg1).styleName = styleName; }; }; var _local2:IChildList = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent); var _local3:Shape = new FlexShape(); _local3.name = "backgroundMask"; _local3.x = 0; _local3.y = 0; _local2.addChild(_local3); var _local4:int = _local2.getChildIndex(this); _local2.addChildAt(backgroundImage, (_local4 + 1)); backgroundImage.mask = _local3; } public function get backgroundImageBounds():Rectangle{ return (_backgroundImageBounds); } public function get hasBackgroundImage():Boolean{ return (!((backgroundImage == null))); } private function completeEventHandler(_arg1:Event):void{ if (!parent){ return; }; var _local2:DisplayObject = DisplayObject(LoaderInfo(_arg1.target).loader); initBackgroundImage(_local2); layoutBackgroundImage(); dispatchEvent(_arg1.clone()); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ var cls:Class; var newStyleObj:DisplayObject; var loader:Loader; var loaderContext:LoaderContext; var message:String; var unscaledWidth = _arg1; var unscaledHeight = _arg2; if (!parent){ return; }; var newStyle:Object = getStyle("backgroundImage"); if (newStyle != backgroundImageStyle){ removedHandler(null); backgroundImageStyle = newStyle; if (((newStyle) && ((newStyle as Class)))){ cls = Class(newStyle); initBackgroundImage(new (cls)); } else { if (((newStyle) && ((newStyle is String)))){ try { cls = Class(getDefinitionByName(String(newStyle))); } catch(e:Error) { }; if (cls){ newStyleObj = new (cls); initBackgroundImage(newStyleObj); } else { loader = new FlexLoader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeEventHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorEventHandler); loader.contentLoaderInfo.addEventListener(ErrorEvent.ERROR, errorEventHandler); loaderContext = new LoaderContext(); loaderContext.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain); loader.load(new URLRequest(String(newStyle)), loaderContext); }; } else { if (newStyle){ message = resourceManager.getString("skins", "notLoaded", [newStyle]); throw (new Error(message)); }; }; }; }; if (backgroundImage){ layoutBackgroundImage(); }; } private function errorEventHandler(_arg1:Event):void{ } } }//package mx.skins
Section 215
//CSSStyleDeclaration (mx.styles.CSSStyleDeclaration) package mx.styles { import flash.events.*; import flash.display.*; import mx.core.*; import mx.managers.*; import flash.utils.*; public class CSSStyleDeclaration extends EventDispatcher { mx_internal var effects:Array; protected var overrides:Object; public var defaultFactory:Function; public var factory:Function; mx_internal var selectorRefCount:int;// = 0 private var styleManager:IStyleManager2; private var clones:Dictionary; mx_internal static const VERSION:String = "3.0.0.0"; private static const NOT_A_COLOR:uint = 4294967295; private static const FILTERMAP_PROP:String = "__reserved__filterMap"; public function CSSStyleDeclaration(_arg1:String=null){ clones = new Dictionary(true); super(); if (_arg1){ styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2); styleManager.setStyleDeclaration(_arg1, this, false); }; } mx_internal function addStyleToProtoChain(_arg1:Object, _arg2:DisplayObject, _arg3:Object=null):Object{ var p:String; var emptyObjectFactory:Function; var filteredChain:Object; var filterObjectFactory:Function; var i:String; var chain = _arg1; var target = _arg2; var filterMap = _arg3; var nodeAddedToChain:Boolean; var originalChain:Object = chain; if (filterMap){ chain = {}; }; if (defaultFactory != null){ defaultFactory.prototype = chain; chain = new defaultFactory(); nodeAddedToChain = true; }; if (factory != null){ factory.prototype = chain; chain = new factory(); nodeAddedToChain = true; }; if (overrides){ if ((((defaultFactory == null)) && ((factory == null)))){ emptyObjectFactory = function ():void{ }; emptyObjectFactory.prototype = chain; chain = new (emptyObjectFactory); nodeAddedToChain = true; }; for (p in overrides) { if (overrides[p] === undefined){ delete chain[p]; } else { chain[p] = overrides[p]; }; }; }; if (filterMap){ if (nodeAddedToChain){ filteredChain = {}; filterObjectFactory = function ():void{ }; filterObjectFactory.prototype = originalChain; filteredChain = new (filterObjectFactory); for (i in chain) { if (filterMap[i] != null){ filteredChain[filterMap[i]] = chain[i]; }; }; chain = filteredChain; chain[FILTERMAP_PROP] = filterMap; } else { chain = originalChain; }; }; if (nodeAddedToChain){ clones[chain] = 1; }; return (chain); } public function getStyle(_arg1:String){ var _local2:*; var _local3:*; if (overrides){ if ((((_arg1 in overrides)) && ((overrides[_arg1] === undefined)))){ return (undefined); }; _local3 = overrides[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; if (factory != null){ factory.prototype = {}; _local2 = new factory(); _local3 = _local2[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; if (defaultFactory != null){ defaultFactory.prototype = {}; _local2 = new defaultFactory(); _local3 = _local2[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; return (undefined); } public function clearStyle(_arg1:String):void{ setStyle(_arg1, undefined); } public function setStyle(_arg1:String, _arg2):void{ var _local7:int; var _local8:Object; var _local3:Object = getStyle(_arg1); var _local4:Boolean; if ((((((((((selectorRefCount > 0)) && ((factory == null)))) && ((defaultFactory == null)))) && (!(overrides)))) && (!((_local3 === _arg2))))){ _local4 = true; }; if (_arg2 !== undefined){ setStyle(_arg1, _arg2); } else { if (_arg2 == _local3){ return; }; setStyle(_arg1, _arg2); }; var _local5:Array = SystemManagerGlobals.topLevelSystemManagers; var _local6:int = _local5.length; if (_local4){ _local7 = 0; while (_local7 < _local6) { _local8 = _local5[_local7]; _local8.regenerateStyleCache(true); _local7++; }; }; _local7 = 0; while (_local7 < _local6) { _local8 = _local5[_local7]; _local8.notifyStyleChangeInChildren(_arg1, true); _local7++; }; } private function clearStyleAttr(_arg1:String):void{ var _local2:*; if (!overrides){ overrides = {}; }; overrides[_arg1] = undefined; for (_local2 in clones) { delete _local2[_arg1]; }; } mx_internal function createProtoChainRoot():Object{ var _local1:Object = {}; if (defaultFactory != null){ defaultFactory.prototype = _local1; _local1 = new defaultFactory(); }; if (factory != null){ factory.prototype = _local1; _local1 = new factory(); }; clones[_local1] = 1; return (_local1); } mx_internal function clearOverride(_arg1:String):void{ if (((overrides) && (overrides[_arg1]))){ delete overrides[_arg1]; }; } mx_internal function setStyle(_arg1:String, _arg2):void{ var _local3:Object; var _local4:*; var _local5:Number; var _local6:Object; if (_arg2 === undefined){ clearStyleAttr(_arg1); return; }; if ((_arg2 is String)){ if (!styleManager){ styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2); }; _local5 = styleManager.getColorName(_arg2); if (_local5 != NOT_A_COLOR){ _arg2 = _local5; }; }; if (defaultFactory != null){ _local3 = new defaultFactory(); if (_local3[_arg1] !== _arg2){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; } else { if (overrides){ delete overrides[_arg1]; }; }; }; if (factory != null){ _local3 = new factory(); if (_local3[_arg1] !== _arg2){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; } else { if (overrides){ delete overrides[_arg1]; }; }; }; if ((((defaultFactory == null)) && ((factory == null)))){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; }; for (_local4 in clones) { _local6 = _local4[FILTERMAP_PROP]; if (_local6){ if (_local6[_arg1] != null){ _local4[_local6[_arg1]] = _arg2; }; } else { _local4[_arg1] = _arg2; }; }; } } }//package mx.styles
Section 216
//ISimpleStyleClient (mx.styles.ISimpleStyleClient) package mx.styles { public interface ISimpleStyleClient { function set styleName(_arg1:Object):void; function styleChanged(_arg1:String):void; function get styleName():Object; } }//package mx.styles
Section 217
//IStyleClient (mx.styles.IStyleClient) package mx.styles { public interface IStyleClient extends ISimpleStyleClient { function regenerateStyleCache(_arg1:Boolean):void; function get className():String; function clearStyle(_arg1:String):void; function getClassStyleDeclarations():Array; function get inheritingStyles():Object; function set nonInheritingStyles(_arg1:Object):void; function setStyle(_arg1:String, _arg2):void; function get styleDeclaration():CSSStyleDeclaration; function set styleDeclaration(_arg1:CSSStyleDeclaration):void; function get nonInheritingStyles():Object; function set inheritingStyles(_arg1:Object):void; function getStyle(_arg1:String); function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void; function registerEffects(_arg1:Array):void; } }//package mx.styles
Section 218
//IStyleManager (mx.styles.IStyleManager) package mx.styles { import flash.events.*; public interface IStyleManager { function isColorName(_arg1:String):Boolean; function registerParentDisplayListInvalidatingStyle(_arg1:String):void; function registerInheritingStyle(_arg1:String):void; function set stylesRoot(_arg1:Object):void; function get typeSelectorCache():Object; function styleDeclarationsChanged():void; function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void; function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean; function isSizeInvalidatingStyle(_arg1:String):Boolean; function get inheritingStyles():Object; function isValidStyleValue(_arg1):Boolean; function isParentSizeInvalidatingStyle(_arg1:String):Boolean; function getColorName(_arg1:Object):uint; function set typeSelectorCache(_arg1:Object):void; function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void; function getColorNames(_arg1:Array):void; function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher; function isInheritingStyle(_arg1:String):Boolean; function set inheritingStyles(_arg1:Object):void; function get stylesRoot():Object; function initProtoChainRoots():void; function registerColorName(_arg1:String, _arg2:uint):void; function registerParentSizeInvalidatingStyle(_arg1:String):void; function registerSizeInvalidatingStyle(_arg1:String):void; function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void; function isInheritingTextFormatStyle(_arg1:String):Boolean; function getStyleDeclaration(_arg1:String):CSSStyleDeclaration; } }//package mx.styles
Section 219
//IStyleManager2 (mx.styles.IStyleManager2) package mx.styles { import flash.events.*; import flash.system.*; public interface IStyleManager2 extends IStyleManager { function get selectors():Array; function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher; } }//package mx.styles
Section 220
//IStyleModule (mx.styles.IStyleModule) package mx.styles { public interface IStyleModule { function unload():void; } }//package mx.styles
Section 221
//StyleManager (mx.styles.StyleManager) package mx.styles { import flash.events.*; import mx.core.*; import flash.system.*; public class StyleManager { mx_internal static const VERSION:String = "3.0.0.0"; public static const NOT_A_COLOR:uint = 4294967295; private static var _impl:IStyleManager2; private static var implClassDependency:StyleManagerImpl; public static function isParentSizeInvalidatingStyle(_arg1:String):Boolean{ return (impl.isParentSizeInvalidatingStyle(_arg1)); } public static function registerInheritingStyle(_arg1:String):void{ impl.registerInheritingStyle(_arg1); } mx_internal static function set stylesRoot(_arg1:Object):void{ impl.stylesRoot = _arg1; } mx_internal static function get inheritingStyles():Object{ return (impl.inheritingStyles); } mx_internal static function styleDeclarationsChanged():void{ impl.styleDeclarationsChanged(); } public static function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{ impl.setStyleDeclaration(_arg1, _arg2, _arg3); } public static function registerParentDisplayListInvalidatingStyle(_arg1:String):void{ impl.registerParentDisplayListInvalidatingStyle(_arg1); } mx_internal static function get typeSelectorCache():Object{ return (impl.typeSelectorCache); } mx_internal static function set inheritingStyles(_arg1:Object):void{ impl.inheritingStyles = _arg1; } public static function isColorName(_arg1:String):Boolean{ return (impl.isColorName(_arg1)); } public static function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{ return (impl.isParentDisplayListInvalidatingStyle(_arg1)); } public static function isSizeInvalidatingStyle(_arg1:String):Boolean{ return (impl.isSizeInvalidatingStyle(_arg1)); } public static function getColorName(_arg1:Object):uint{ return (impl.getColorName(_arg1)); } mx_internal static function set typeSelectorCache(_arg1:Object):void{ impl.typeSelectorCache = _arg1; } public static function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{ impl.unloadStyleDeclarations(_arg1, _arg2); } public static function getColorNames(_arg1:Array):void{ impl.getColorNames(_arg1); } public static function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false, _arg4:ApplicationDomain=null, _arg5:SecurityDomain=null):IEventDispatcher{ return (impl.loadStyleDeclarations2(_arg1, _arg2, _arg4, _arg5)); } private static function get impl():IStyleManager2{ if (!_impl){ _impl = IStyleManager2(Singleton.getInstance("mx.styles::IStyleManager2")); }; return (_impl); } public static function isValidStyleValue(_arg1):Boolean{ return (impl.isValidStyleValue(_arg1)); } mx_internal static function get stylesRoot():Object{ return (impl.stylesRoot); } public static function isInheritingStyle(_arg1:String):Boolean{ return (impl.isInheritingStyle(_arg1)); } mx_internal static function initProtoChainRoots():void{ impl.initProtoChainRoots(); } public static function registerParentSizeInvalidatingStyle(_arg1:String):void{ impl.registerParentSizeInvalidatingStyle(_arg1); } public static function get selectors():Array{ return (impl.selectors); } public static function registerSizeInvalidatingStyle(_arg1:String):void{ impl.registerSizeInvalidatingStyle(_arg1); } public static function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{ impl.clearStyleDeclaration(_arg1, _arg2); } public static function registerColorName(_arg1:String, _arg2:uint):void{ impl.registerColorName(_arg1, _arg2); } public static function isInheritingTextFormatStyle(_arg1:String):Boolean{ return (impl.isInheritingTextFormatStyle(_arg1)); } public static function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{ return (impl.getStyleDeclaration(_arg1)); } } }//package mx.styles
Section 222
//StyleManagerImpl (mx.styles.StyleManagerImpl) package mx.styles { import flash.events.*; import mx.core.*; import flash.system.*; import mx.modules.*; import mx.events.*; import mx.resources.*; import mx.managers.*; import flash.utils.*; public class StyleManagerImpl implements IStyleManager2 { private var _stylesRoot:Object; private var _selectors:Object; private var styleModules:Object; private var _inheritingStyles:Object; private var resourceManager:IResourceManager; private var _typeSelectorCache:Object; mx_internal static const VERSION:String = "3.0.0.0"; private static var parentSizeInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true}; private static var colorNames:Object = {transparent:"transparent", black:0, blue:0xFF, green:0x8000, gray:0x808080, silver:0xC0C0C0, lime:0xFF00, olive:0x808000, white:0xFFFFFF, yellow:0xFFFF00, maroon:0x800000, navy:128, red:0xFF0000, purple:0x800080, teal:0x8080, fuchsia:0xFF00FF, aqua:0xFFFF, magenta:0xFF00FF, cyan:0xFFFF, halogreen:8453965, haloblue:40447, haloorange:0xFFB600, halosilver:11455193}; private static var inheritingTextFormatStyles:Object = {align:true, bold:true, color:true, font:true, indent:true, italic:true, size:true}; private static var instance:IStyleManager2; private static var parentDisplayListInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true}; private static var sizeInvalidatingStyles:Object = {borderStyle:true, borderThickness:true, fontAntiAliasType:true, fontFamily:true, fontGridFitType:true, fontSharpness:true, fontSize:true, fontStyle:true, fontThickness:true, fontWeight:true, headerHeight:true, horizontalAlign:true, horizontalGap:true, kerning:true, leading:true, letterSpacing:true, paddingBottom:true, paddingLeft:true, paddingRight:true, paddingTop:true, strokeWidth:true, tabHeight:true, tabWidth:true, verticalAlign:true, verticalGap:true}; public function StyleManagerImpl(){ _selectors = {}; styleModules = {}; resourceManager = ResourceManager.getInstance(); _inheritingStyles = {}; _typeSelectorCache = {}; super(); } public function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{ _arg2.selectorRefCount++; _selectors[_arg1] = _arg2; typeSelectorCache = {}; if (_arg3){ styleDeclarationsChanged(); }; } public function registerParentDisplayListInvalidatingStyle(_arg1:String):void{ parentDisplayListInvalidatingStyles[_arg1] = true; } public function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{ var _local2:int; if (_arg1.charAt(0) != "."){ _local2 = _arg1.lastIndexOf("."); if (_local2 != -1){ _arg1 = _arg1.substr((_local2 + 1)); }; }; return (_selectors[_arg1]); } public function set typeSelectorCache(_arg1:Object):void{ _typeSelectorCache = _arg1; } public function isColorName(_arg1:String):Boolean{ return (!((colorNames[_arg1.toLowerCase()] === undefined))); } public function set inheritingStyles(_arg1:Object):void{ _inheritingStyles = _arg1; } public function getColorNames(_arg1:Array):void{ var _local4:uint; if (!_arg1){ return; }; var _local2:int = _arg1.length; var _local3:int; while (_local3 < _local2) { if (((!((_arg1[_local3] == null))) && (isNaN(_arg1[_local3])))){ _local4 = getColorName(_arg1[_local3]); if (_local4 != StyleManager.NOT_A_COLOR){ _arg1[_local3] = _local4; }; }; _local3++; }; } public function isInheritingTextFormatStyle(_arg1:String):Boolean{ return ((inheritingTextFormatStyles[_arg1] == true)); } public function registerParentSizeInvalidatingStyle(_arg1:String):void{ parentSizeInvalidatingStyles[_arg1] = true; } public function registerColorName(_arg1:String, _arg2:uint):void{ colorNames[_arg1.toLowerCase()] = _arg2; } public function isParentSizeInvalidatingStyle(_arg1:String):Boolean{ return ((parentSizeInvalidatingStyles[_arg1] == true)); } public function registerInheritingStyle(_arg1:String):void{ inheritingStyles[_arg1] = true; } public function set stylesRoot(_arg1:Object):void{ _stylesRoot = _arg1; } public function get typeSelectorCache():Object{ return (_typeSelectorCache); } public function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{ return ((parentDisplayListInvalidatingStyles[_arg1] == true)); } public function isSizeInvalidatingStyle(_arg1:String):Boolean{ return ((sizeInvalidatingStyles[_arg1] == true)); } public function styleDeclarationsChanged():void{ var _local4:Object; var _local1:Array = SystemManagerGlobals.topLevelSystemManagers; var _local2:int = _local1.length; var _local3:int; while (_local3 < _local2) { _local4 = _local1[_local3]; _local4.regenerateStyleCache(true); _local4.notifyStyleChangeInChildren(null, true); _local3++; }; } public function isValidStyleValue(_arg1):Boolean{ return (!((_arg1 === undefined))); } public function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher{ return (loadStyleDeclarations2(_arg1, _arg2)); } public function get inheritingStyles():Object{ return (_inheritingStyles); } public function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{ var _local4:IModuleInfo; var _local3:StyleModuleInfo = styleModules[_arg1]; if (_local3){ _local3.styleModule.unload(); _local4 = _local3.module; _local4.unload(); _local4.removeEventListener(ModuleEvent.READY, _local3.readyHandler); _local4.removeEventListener(ModuleEvent.ERROR, _local3.errorHandler); styleModules[_arg1] = null; }; if (_arg2){ styleDeclarationsChanged(); }; } public function getColorName(_arg1:Object):uint{ var _local2:Number; var _local3:*; if ((_arg1 is String)){ if (_arg1.charAt(0) == "#"){ _local2 = Number(("0x" + _arg1.slice(1))); return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2)); }; if ((((_arg1.charAt(1) == "x")) && ((_arg1.charAt(0) == "0")))){ _local2 = Number(_arg1); return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2)); }; _local3 = colorNames[_arg1.toLowerCase()]; if (_local3 === undefined){ return (StyleManager.NOT_A_COLOR); }; return (uint(_local3)); }; return (uint(_arg1)); } public function isInheritingStyle(_arg1:String):Boolean{ return ((inheritingStyles[_arg1] == true)); } public function get stylesRoot():Object{ return (_stylesRoot); } public function initProtoChainRoots():void{ if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ delete _inheritingStyles["textDecoration"]; delete _inheritingStyles["leading"]; }; if (!stylesRoot){ stylesRoot = _selectors["global"].addStyleToProtoChain({}, null); }; } public function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{ var module:IModuleInfo; var styleEventDispatcher:StyleEventDispatcher; var timer:Timer; var timerHandler:Function; var url = _arg1; var update = _arg2; var applicationDomain = _arg3; var securityDomain = _arg4; module = ModuleManager.getModule(url); var readyHandler:Function = function (_arg1:ModuleEvent):void{ var _local2:IStyleModule = IStyleModule(_arg1.module.factory.create()); styleModules[_arg1.module.url].styleModule = _local2; if (update){ styleDeclarationsChanged(); }; }; module.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true); styleEventDispatcher = new StyleEventDispatcher(module); var errorHandler:Function = function (_arg1:ModuleEvent):void{ var _local3:StyleEvent; var _local2:String = resourceManager.getString("styles", "unableToLoad", [_arg1.errorText, url]); if (styleEventDispatcher.willTrigger(StyleEvent.ERROR)){ _local3 = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local3.bytesLoaded = 0; _local3.bytesTotal = 0; _local3.errorText = _local2; styleEventDispatcher.dispatchEvent(_local3); } else { throw (new Error(_local2)); }; }; module.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true); styleModules[url] = new StyleModuleInfo(module, readyHandler, errorHandler); timer = new Timer(0); timerHandler = function (_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.stop(); module.load(applicationDomain, securityDomain); }; timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true); timer.start(); return (styleEventDispatcher); } public function registerSizeInvalidatingStyle(_arg1:String):void{ sizeInvalidatingStyles[_arg1] = true; } public function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{ var _local3:CSSStyleDeclaration = getStyleDeclaration(_arg1); if (((_local3) && ((_local3.selectorRefCount > 0)))){ _local3.selectorRefCount--; }; delete _selectors[_arg1]; if (_arg2){ styleDeclarationsChanged(); }; } public function get selectors():Array{ var _local2:String; var _local1:Array = []; for (_local2 in _selectors) { _local1.push(_local2); }; return (_local1); } public static function getInstance():IStyleManager2{ if (!instance){ instance = new (StyleManagerImpl); }; return (instance); } } }//package mx.styles import flash.events.*; import mx.modules.*; import mx.events.*; class StyleEventDispatcher extends EventDispatcher { private function StyleEventDispatcher(_arg1:IModuleInfo){ _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true); } private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.COMPLETE); dispatchEvent(_local2); } private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; _local2.errorText = _arg1.errorText; dispatchEvent(_local2); } } class StyleModuleInfo { public var errorHandler:Function; public var readyHandler:Function; public var module:IModuleInfo; public var styleModule:IStyleModule; private function StyleModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){ this.module = _arg1; this.readyHandler = _arg2; this.errorHandler = _arg3; } }
Section 223
//ColorUtil (mx.utils.ColorUtil) package mx.utils { import mx.core.*; public class ColorUtil { mx_internal static const VERSION:String = "3.0.0.0"; public static function adjustBrightness2(_arg1:uint, _arg2:Number):uint{ var _local3:Number; var _local4:Number; var _local5:Number; if (_arg2 == 0){ return (_arg1); }; if (_arg2 < 0){ _arg2 = ((100 + _arg2) / 100); _local3 = (((_arg1 >> 16) & 0xFF) * _arg2); _local4 = (((_arg1 >> 8) & 0xFF) * _arg2); _local5 = ((_arg1 & 0xFF) * _arg2); } else { _arg2 = (_arg2 / 100); _local3 = ((_arg1 >> 16) & 0xFF); _local4 = ((_arg1 >> 8) & 0xFF); _local5 = (_arg1 & 0xFF); _local3 = (_local3 + ((0xFF - _local3) * _arg2)); _local4 = (_local4 + ((0xFF - _local4) * _arg2)); _local5 = (_local5 + ((0xFF - _local5) * _arg2)); _local3 = Math.min(_local3, 0xFF); _local4 = Math.min(_local4, 0xFF); _local5 = Math.min(_local5, 0xFF); }; return ((((_local3 << 16) | (_local4 << 8)) | _local5)); } public static function rgbMultiply(_arg1:uint, _arg2:uint):uint{ var _local3:Number = ((_arg1 >> 16) & 0xFF); var _local4:Number = ((_arg1 >> 8) & 0xFF); var _local5:Number = (_arg1 & 0xFF); var _local6:Number = ((_arg2 >> 16) & 0xFF); var _local7:Number = ((_arg2 >> 8) & 0xFF); var _local8:Number = (_arg2 & 0xFF); return ((((((_local3 * _local6) / 0xFF) << 16) | (((_local4 * _local7) / 0xFF) << 8)) | ((_local5 * _local8) / 0xFF))); } public static function adjustBrightness(_arg1:uint, _arg2:Number):uint{ var _local3:Number = Math.max(Math.min((((_arg1 >> 16) & 0xFF) + _arg2), 0xFF), 0); var _local4:Number = Math.max(Math.min((((_arg1 >> 8) & 0xFF) + _arg2), 0xFF), 0); var _local5:Number = Math.max(Math.min(((_arg1 & 0xFF) + _arg2), 0xFF), 0); return ((((_local3 << 16) | (_local4 << 8)) | _local5)); } } }//package mx.utils
Section 224
//GraphicsUtil (mx.utils.GraphicsUtil) package mx.utils { import flash.display.*; import mx.core.*; public class GraphicsUtil { mx_internal static const VERSION:String = "3.0.0.0"; public static function drawRoundRectComplex(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number):void{ var _local10:Number = (_arg2 + _arg4); var _local11:Number = (_arg3 + _arg5); var _local12:Number = ((_arg4 < _arg5)) ? (_arg4 * 2) : (_arg5 * 2); _arg6 = ((_arg6 < _local12)) ? _arg6 : _local12; _arg7 = ((_arg7 < _local12)) ? _arg7 : _local12; _arg8 = ((_arg8 < _local12)) ? _arg8 : _local12; _arg9 = ((_arg9 < _local12)) ? _arg9 : _local12; var _local13:Number = (_arg9 * 0.292893218813453); var _local14:Number = (_arg9 * 0.585786437626905); _arg1.moveTo(_local10, (_local11 - _arg9)); _arg1.curveTo(_local10, (_local11 - _local14), (_local10 - _local13), (_local11 - _local13)); _arg1.curveTo((_local10 - _local14), _local11, (_local10 - _arg9), _local11); _local13 = (_arg8 * 0.292893218813453); _local14 = (_arg8 * 0.585786437626905); _arg1.lineTo((_arg2 + _arg8), _local11); _arg1.curveTo((_arg2 + _local14), _local11, (_arg2 + _local13), (_local11 - _local13)); _arg1.curveTo(_arg2, (_local11 - _local14), _arg2, (_local11 - _arg8)); _local13 = (_arg6 * 0.292893218813453); _local14 = (_arg6 * 0.585786437626905); _arg1.lineTo(_arg2, (_arg3 + _arg6)); _arg1.curveTo(_arg2, (_arg3 + _local14), (_arg2 + _local13), (_arg3 + _local13)); _arg1.curveTo((_arg2 + _local14), _arg3, (_arg2 + _arg6), _arg3); _local13 = (_arg7 * 0.292893218813453); _local14 = (_arg7 * 0.585786437626905); _arg1.lineTo((_local10 - _arg7), _arg3); _arg1.curveTo((_local10 - _local14), _arg3, (_local10 - _local13), (_arg3 + _local13)); _arg1.curveTo(_local10, (_arg3 + _local14), _local10, (_arg3 + _arg7)); _arg1.lineTo(_local10, (_local11 - _arg9)); } } }//package mx.utils
Section 225
//NameUtil (mx.utils.NameUtil) package mx.utils { import flash.display.*; import mx.core.*; import flash.utils.*; public class NameUtil { mx_internal static const VERSION:String = "3.0.0.0"; private static var counter:int = 0; public static function displayObjectToString(_arg1:DisplayObject):String{ var _local2:String; var _local4:String; var _local5:Array; var _local3:DisplayObject = _arg1; while (_local3 != null) { if (((((_local3.parent) && (_local3.stage))) && ((_local3.parent == _local3.stage)))){ break; }; _local4 = _local3.name; if ((_local3 is IRepeaterClient)){ _local5 = IRepeaterClient(_local3).instanceIndices; if (_local5){ _local4 = (_local4 + (("[" + _local5.join("][")) + "]")); }; }; _local2 = ((_local2 == null)) ? _local4 : ((_local4 + ".") + _local2); _local3 = _local3.parent; }; return (_local2); } public static function createUniqueName(_arg1:Object):String{ if (!_arg1){ return (null); }; var _local2:String = getQualifiedClassName(_arg1); var _local3:int = _local2.indexOf("::"); if (_local3 != -1){ _local2 = _local2.substr((_local3 + 2)); }; var _local4:int = _local2.charCodeAt((_local2.length - 1)); if ((((_local4 >= 48)) && ((_local4 <= 57)))){ _local2 = (_local2 + "_"); }; return ((_local2 + counter++)); } } }//package mx.utils
Section 226
//StringUtil (mx.utils.StringUtil) package mx.utils { import mx.core.*; public class StringUtil { mx_internal static const VERSION:String = "3.0.0.0"; public static function trim(_arg1:String):String{ if (_arg1 == null){ return (""); }; var _local2:int; while (isWhitespace(_arg1.charAt(_local2))) { _local2++; }; var _local3:int = (_arg1.length - 1); while (isWhitespace(_arg1.charAt(_local3))) { _local3--; }; if (_local3 >= _local2){ return (_arg1.slice(_local2, (_local3 + 1))); }; return (""); } public static function isWhitespace(_arg1:String):Boolean{ switch (_arg1){ case " ": case "\t": case "\r": case "\n": case "\f": return (true); default: return (false); }; } public static function substitute(_arg1:String, ... _args):String{ var _local4:Array; if (_arg1 == null){ return (""); }; var _local3:uint = _args.length; if ((((_local3 == 1)) && ((_args[0] is Array)))){ _local4 = (_args[0] as Array); _local3 = _local4.length; } else { _local4 = _args; }; var _local5:int; while (_local5 < _local3) { _arg1 = _arg1.replace(new RegExp((("\\{" + _local5) + "\\}"), "g"), _local4[_local5]); _local5++; }; return (_arg1); } public static function trimArrayElements(_arg1:String, _arg2:String):String{ var _local3:Array; var _local4:int; var _local5:int; if (((!((_arg1 == ""))) && (!((_arg1 == null))))){ _local3 = _arg1.split(_arg2); _local4 = _local3.length; _local5 = 0; while (_local5 < _local4) { _local3[_local5] = StringUtil.trim(_local3[_local5]); _local5++; }; if (_local4 > 0){ _arg1 = _local3.join(_arg2); }; }; return (_arg1); } } }//package mx.utils
Section 227
//_activeButtonStyleStyle (_activeButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _activeButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".activeButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 228
//_activeTabStyleStyle (_activeTabStyleStyle) package { import mx.core.*; import mx.styles.*; public class _activeTabStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeTabStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".activeTabStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 229
//_alertButtonStyleStyle (_alertButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _alertButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".alertButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".alertButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 734012; }; }; } } }//package
Section 230
//_comboDropdownStyle (_comboDropdownStyle) package { import mx.core.*; import mx.styles.*; public class _comboDropdownStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".comboDropdown"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".comboDropdown", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.shadowDirection = "center"; this.fontWeight = "normal"; this.dropShadowEnabled = true; this.leading = 0; this.backgroundColor = 0xFFFFFF; this.shadowDistance = 1; this.cornerRadius = 0; this.borderThickness = 0; this.paddingLeft = 5; this.paddingRight = 5; }; }; } } }//package
Section 231
//_dataGridStylesStyle (_dataGridStylesStyle) package { import mx.core.*; import mx.styles.*; public class _dataGridStylesStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dataGridStyles"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dataGridStyles", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 232
//_dateFieldPopupStyle (_dateFieldPopupStyle) package { import mx.core.*; import mx.styles.*; public class _dateFieldPopupStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dateFieldPopup"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dateFieldPopup", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.dropShadowEnabled = true; this.backgroundColor = 0xFFFFFF; this.borderThickness = 0; }; }; } } }//package
Section 233
//_errorTipStyle (_errorTipStyle) package { import mx.core.*; import mx.styles.*; public class _errorTipStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".errorTip"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".errorTip", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.borderStyle = "errorTipRight"; this.paddingTop = 4; this.borderColor = 13510953; this.color = 0xFFFFFF; this.fontSize = 9; this.shadowColor = 0; this.paddingLeft = 4; this.paddingBottom = 4; this.paddingRight = 4; }; }; } } }//package
Section 234
//_globalStyle (_globalStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _globalStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("global"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("global", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fillColor = 0xFFFFFF; this.kerning = false; this.iconColor = 0x111111; this.textRollOverColor = 2831164; this.horizontalAlign = "left"; this.shadowCapColor = 14015965; this.backgroundAlpha = 1; this.filled = true; this.textDecoration = "none"; this.roundedBottomCorners = true; this.fontThickness = 0; this.focusBlendMode = "normal"; this.fillColors = [0xFFFFFF, 0xCCCCCC, 0xFFFFFF, 0xEEEEEE]; this.horizontalGap = 8; this.borderCapColor = 9542041; this.buttonColor = 7305079; this.indentation = 17; this.selectionDisabledColor = 0xDDDDDD; this.closeDuration = 250; this.embedFonts = false; this.paddingTop = 0; this.letterSpacing = 0; this.focusAlpha = 0.4; this.bevel = true; this.fontSize = 10; this.shadowColor = 0xEEEEEE; this.borderAlpha = 1; this.paddingLeft = 0; this.fontWeight = "normal"; this.indicatorGap = 14; this.focusSkin = HaloFocusRect; this.dropShadowEnabled = false; this.leading = 2; this.borderSkin = HaloBorder; this.fontSharpness = 0; this.modalTransparencyDuration = 100; this.borderThickness = 1; this.backgroundSize = "auto"; this.borderStyle = "inset"; this.borderColor = 12040892; this.fontAntiAliasType = "advanced"; this.errorColor = 0xFF0000; this.shadowDistance = 2; this.horizontalGridLineColor = 0xF7F7F7; this.stroked = false; this.modalTransparencyColor = 0xDDDDDD; this.cornerRadius = 0; this.verticalAlign = "top"; this.textIndent = 0; this.fillAlphas = [0.6, 0.4, 0.75, 0.65]; this.verticalGridLineColor = 14015965; this.themeColor = 40447; this.version = "3.0.0"; this.shadowDirection = "center"; this.modalTransparency = 0.5; this.repeatInterval = 35; this.openDuration = 250; this.textAlign = "left"; this.fontFamily = "Verdana"; this.textSelectedColor = 2831164; this.paddingBottom = 0; this.strokeWidth = 1; this.fontGridFitType = "pixel"; this.horizontalGridLines = false; this.useRollOver = true; this.verticalGridLines = true; this.repeatDelay = 500; this.fontStyle = "normal"; this.dropShadowColor = 0; this.focusThickness = 2; this.verticalGap = 6; this.disabledColor = 11187123; this.paddingRight = 0; this.focusRoundedCorners = "tl tr bl br"; this.borderSides = "left top right bottom"; this.disabledIconColor = 0x999999; this.modalTransparencyBlur = 3; this.color = 734012; this.selectionDuration = 250; this.highlightAlphas = [0.3, 0]; }; }; } } }//package
Section 235
//_headerDateTextStyle (_headerDateTextStyle) package { import mx.core.*; import mx.styles.*; public class _headerDateTextStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDateText"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".headerDateText", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.textAlign = "center"; }; }; } } }//package
Section 236
//_headerDragProxyStyleStyle (_headerDragProxyStyleStyle) package { import mx.core.*; import mx.styles.*; public class _headerDragProxyStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDragProxyStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".headerDragProxyStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 237
//_linkButtonStyleStyle (_linkButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _linkButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".linkButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".linkButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 2; this.paddingLeft = 2; this.paddingBottom = 2; this.paddingRight = 2; }; }; } } }//package
Section 238
//_MenuStyle (_MenuStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _MenuStyle { private static var _embed_css_Assets_swf_MenuCheckDisabled_31160729:Class = _MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_31160729; private static var _embed_css_Assets_swf_MenuSeparator_299398696:Class = _MenuStyle__embed_css_Assets_swf_MenuSeparator_299398696; private static var _embed_css_Assets_swf_MenuCheckEnabled_1544114694:Class = _MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_1544114694; private static var _embed_css_Assets_swf_MenuRadioEnabled_569931289:Class = _MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_569931289; private static var _embed_css_Assets_swf_MenuBranchDisabled_1207402911:Class = _MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1207402911; private static var _embed_css_Assets_swf_MenuRadioDisabled_1133569498:Class = _MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_1133569498; private static var _embed_css_Assets_swf_MenuBranchEnabled_850797042:Class = _MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_850797042; public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Menu"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Menu", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.radioIcon = _embed_css_Assets_swf_MenuRadioEnabled_569931289; this.borderStyle = "menuBorder"; this.paddingTop = 1; this.rightIconGap = 15; this.branchIcon = _embed_css_Assets_swf_MenuBranchEnabled_850797042; this.checkDisabledIcon = _embed_css_Assets_swf_MenuCheckDisabled_31160729; this.verticalAlign = "middle"; this.paddingLeft = 1; this.paddingRight = 0; this.checkIcon = _embed_css_Assets_swf_MenuCheckEnabled_1544114694; this.radioDisabledIcon = _embed_css_Assets_swf_MenuRadioDisabled_1133569498; this.dropShadowEnabled = true; this.branchDisabledIcon = _embed_css_Assets_swf_MenuBranchDisabled_1207402911; this.dropIndicatorSkin = ListDropIndicator; this.separatorSkin = _embed_css_Assets_swf_MenuSeparator_299398696; this.horizontalGap = 6; this.leftIconGap = 18; this.paddingBottom = 1; }; }; } } }//package
Section 239
//_MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1207402911 (_MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1207402911) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1207402911 extends SpriteAsset { } }//package
Section 240
//_MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_850797042 (_MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_850797042) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_850797042 extends SpriteAsset { } }//package
Section 241
//_MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_31160729 (_MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_31160729) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_31160729 extends SpriteAsset { } }//package
Section 242
//_MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_1544114694 (_MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_1544114694) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_1544114694 extends SpriteAsset { } }//package
Section 243
//_MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_1133569498 (_MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_1133569498) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_1133569498 extends SpriteAsset { } }//package
Section 244
//_MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_569931289 (_MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_569931289) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_569931289 extends SpriteAsset { } }//package
Section 245
//_MenuStyle__embed_css_Assets_swf_MenuSeparator_299398696 (_MenuStyle__embed_css_Assets_swf_MenuSeparator_299398696) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuSeparator_299398696 extends SpriteAsset { } }//package
Section 246
//_opaquePanelStyle (_opaquePanelStyle) package { import mx.core.*; import mx.styles.*; public class _opaquePanelStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".opaquePanel"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".opaquePanel", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderColor = 0xFFFFFF; this.backgroundColor = 0xFFFFFF; this.headerColors = [0xE7E7E7, 0xD9D9D9]; this.footerColors = [0xE7E7E7, 0xC7C7C7]; this.borderAlpha = 1; }; }; } } }//package
Section 247
//_plainStyle (_plainStyle) package { import mx.core.*; import mx.styles.*; public class _plainStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".plain"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".plain", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 0; this.backgroundColor = 0xFFFFFF; this.backgroundImage = ""; this.horizontalAlign = "left"; this.paddingLeft = 0; this.paddingBottom = 0; this.paddingRight = 0; }; }; } } }//package
Section 248
//_popUpMenuStyle (_popUpMenuStyle) package { import mx.core.*; import mx.styles.*; public class _popUpMenuStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".popUpMenu"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".popUpMenu", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "normal"; this.textAlign = "left"; }; }; } } }//package
Section 249
//_richTextEditorTextAreaStyleStyle (_richTextEditorTextAreaStyleStyle) package { import mx.core.*; import mx.styles.*; public class _richTextEditorTextAreaStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".richTextEditorTextAreaStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".richTextEditorTextAreaStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 250
//_swatchPanelTextFieldStyle (_swatchPanelTextFieldStyle) package { import mx.core.*; import mx.styles.*; public class _swatchPanelTextFieldStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".swatchPanelTextField"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".swatchPanelTextField", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderStyle = "inset"; this.borderColor = 14015965; this.highlightColor = 12897484; this.backgroundColor = 0xFFFFFF; this.shadowCapColor = 14015965; this.shadowColor = 14015965; this.paddingLeft = 5; this.buttonColor = 7305079; this.borderCapColor = 9542041; this.paddingRight = 5; }; }; } } }//package
Section 251
//_textAreaHScrollBarStyleStyle (_textAreaHScrollBarStyleStyle) package { import mx.core.*; import mx.styles.*; public class _textAreaHScrollBarStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaHScrollBarStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".textAreaHScrollBarStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 252
//_textAreaVScrollBarStyleStyle (_textAreaVScrollBarStyleStyle) package { import mx.core.*; import mx.styles.*; public class _textAreaVScrollBarStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaVScrollBarStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".textAreaVScrollBarStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 253
//_todayStyleStyle (_todayStyleStyle) package { import mx.core.*; import mx.styles.*; public class _todayStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".todayStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".todayStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 0xFFFFFF; this.textAlign = "center"; }; }; } } }//package
Section 254
//_weekDayStyleStyle (_weekDayStyleStyle) package { import mx.core.*; import mx.styles.*; public class _weekDayStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".weekDayStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".weekDayStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.textAlign = "center"; }; }; } } }//package
Section 255
//_windowStatusStyle (_windowStatusStyle) package { import mx.core.*; import mx.styles.*; public class _windowStatusStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStatus"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".windowStatus", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 0x666666; }; }; } } }//package
Section 256
//_windowStylesStyle (_windowStylesStyle) package { import mx.core.*; import mx.styles.*; public class _windowStylesStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStyles"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".windowStyles", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 257
//en_US$core_properties (en_US$core_properties) package { import mx.resources.*; public class en_US$core_properties extends ResourceBundle { public function en_US$core_properties(){ super("en_US", "core"); } override protected function getContent():Object{ var _local1:Object = {multipleChildSets_ClassAndInstance:"Multiple sets of visual children have been specified for this component (component definition and component instance).", truncationIndicator:"...", notExecuting:"Repeater is not executing.", versionAlreadyRead:"Compatibility version has already been read.", multipleChildSets_ClassAndSubclass:"Multiple sets of visual children have been specified for this component (base component definition and derived component definition).", viewSource:"View Source", badFile:"File does not exist.", stateUndefined:"Undefined state '{0}'.", versionAlreadySet:"Compatibility version has already been set."}; return (_local1); } } }//package
Section 258
//en_US$skins_properties (en_US$skins_properties) package { import mx.resources.*; public class en_US$skins_properties extends ResourceBundle { public function en_US$skins_properties(){ super("en_US", "skins"); } override protected function getContent():Object{ var _local1:Object = {notLoaded:"Unable to load '{0}'."}; return (_local1); } } }//package
Section 259
//en_US$styles_properties (en_US$styles_properties) package { import mx.resources.*; public class en_US$styles_properties extends ResourceBundle { public function en_US$styles_properties(){ super("en_US", "styles"); } override protected function getContent():Object{ var _local1:Object = {unableToLoad:"Unable to load style({0}): {1}."}; return (_local1); } } }//package
Section 260
//lockDog (lockDog) package { import flash.display.*; public class lockDog { public var properURL:Boolean;// = false public function lockDog(_arg1:LoaderInfo){ properURL = true; } } }//package
Section 261
//MochiAd (MochiAd) package { import flash.events.*; import flash.display.*; import flash.system.*; import flash.utils.*; import flash.net.*; public class MochiAd { public static function getVersion():String{ return ("2.7"); } public static function showClickAwayAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{ }, ad_finished:function ():void{ }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); options.ad_finished(); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; mc.unloadAd = function ():void{ MochiAd.unload(clip); }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; var sendHostProgress:Boolean; mc.regContLC = function (_arg1:String):void{ mc._containerLCName = _arg1; }; chk["onEnterFrame"] = function ():void{ var _local4:Number; if (!this.parent){ delete this.onEnterFrame; return; }; var _local1:Object = this.parent._mochiad_ctr; var _local2:Number = (getTimer() - this.started); var _local3:Boolean; if (!chk.showing){ _local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local4 > 0){ chk.showing = true; _local3 = true; chk.started = getTimer(); } else { if (_local2 > chk.ad_timeout){ options.ad_failed(); _local3 = true; }; }; }; if (this.root == null){ _local3 = true; }; if (_local3){ delete this.onEnterFrame; }; }; doOnEnterFrame(chk); } public static function _isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function _allowDomains(_arg1:String):String{ var _local2:String = _arg1.split("/")[2].split(":")[0]; Security.allowDomain("*"); Security.allowDomain(_local2); Security.allowInsecureDomain("*"); Security.allowInsecureDomain(_local2); return (_local2); } public static function unload(_arg1:Object):Boolean{ if (((_arg1.clip) && (_arg1.clip._mochiad))){ _arg1 = _arg1.clip; }; if (_arg1.origFrameRate != undefined){ _arg1.stage.frameRate = _arg1.origFrameRate; }; if (!_arg1._mochiad){ return (false); }; if (_arg1._mochiad._containerLCName != undefined){ _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"}); }; if (_arg1._mochiad.onUnload){ _arg1._mochiad.onUnload(); }; delete _arg1._mochiad_loaded; delete _arg1._mochiad; return (true); } public static function showInterLevelAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.play(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; var ad_msec:Number = 11000; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; var fadeout_time:Number = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); options.ad_finished(); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; mc.unloadAd = function ():void{ MochiAd.unload(clip); }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object = mc._mochiad_wait; _local2.server_control = true; _local2.showing = true; _local2.started = getTimer(); _local2.ad_msec = (_arg1 - 250); }; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; chk["onEnterFrame"] = function ():void{ var _local4:Number; if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; var _local1:Object = this.parent._mochiad_ctr; var _local2:Number = (getTimer() - this.started); var _local3:Boolean; if (!chk.showing){ _local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local4 > 0){ chk.showing = true; chk.started = getTimer(); MochiAd.adShowing(clip); } else { if (_local2 > chk.ad_timeout){ options.ad_failed(); _local3 = true; }; }; }; if (_local2 > chk.ad_msec){ _local3 = true; }; if (_local3){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function _parseOptions(_arg1:Object, _arg2:Object):Object{ var _local4:String; var _local5:Array; var _local6:Number; var _local7:Array; var _local3:Object = {}; for (_local4 in _arg2) { _local3[_local4] = _arg2[_local4]; }; if (_arg1){ for (_local4 in _arg1) { _local3[_local4] = _arg1[_local4]; }; }; if (_local3.clip == undefined){ throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite.")); }; _arg1 = _local3.clip.loaderInfo.parameters.mochiad_options; if (_arg1){ _local5 = _arg1.split("&"); _local6 = 0; while (_local6 < _local5.length) { _local7 = _local5[_local6].split("="); _local3[unescape(_local7[0])] = unescape(_local7[1]); _local6++; }; }; if (_local3.id == "test"){ trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!"); }; return (_local3); } public static function _cleanup(_arg1:Object):void{ var k:String; var lc:LocalConnection; var f:Function; var mc = _arg1; if (("lc" in mc)){ lc = mc.lc; f = function ():void{ try { lc.client = null; lc.close(); } catch(e:Error) { }; }; setTimeout(f, 0); }; var idx:Number = DisplayObjectContainer(mc).numChildren; while (idx > 0) { idx = (idx - 1); DisplayObjectContainer(mc).removeChildAt(idx); }; for (k in mc) { delete mc[k]; }; } public static function load(_arg1:Object):MovieClip{ var clip:Object; var k:String; var server:String; var hostname:String; var lc:LocalConnection; var name:String; var loader:Loader; var g:Function; var req:URLRequest; var v:Object; var options = _arg1; var DEFAULTS:Object = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = MochiAd._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = MochiAd.getVersion(); clip = options.clip; if (!MochiAd._isNetworkAvailable()){ return (null); }; try { if (clip._mochiad_loaded){ return (null); }; } catch(e:Error) { throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic.")); }; var depth:Number = options.depth; delete options.depth; var mc:MovieClip = createEmptyMovieClip(clip, "_mochiad", depth); var wh:Array = MochiAd._getRes(options, clip); options.res = ((wh[0] + "x") + wh[1]); options.server = (options.server + options.id); delete options.id; clip._mochiad_loaded = true; if (clip.loaderInfo.loaderURL.indexOf("http") == 0){ options.as3_swf = clip.loaderInfo.loaderURL; }; var lv:URLVariables = new URLVariables(); for (k in options) { v = options[k]; if (!(v is Function)){ lv[k] = v; }; }; server = lv.server; delete lv.server; hostname = _allowDomains(server); lc = new LocalConnection(); lc.client = mc; name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_"); lc.allowDomain("*", "localhost"); lc.allowInsecureDomain("*", "localhost"); lc.connect(name); mc.lc = lc; mc.lcName = name; lv.lc = name; lv.st = getTimer(); loader = new Loader(); g = function (_arg1:Object):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); MochiAd.unload(clip); }; loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g); req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime())); req.contentType = "application/x-www-form-urlencoded"; req.method = URLRequestMethod.POST; req.data = lv; loader.load(req); mc.addChild(loader); mc._mochiad_ctr = loader; return (mc); } public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{ var _local4:Array = _arg2.split("."); var _local5:Number = 0; while (_local5 < (_local4.length - 1)) { if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){ return (undefined); }; _arg1 = _arg1[_local4[_local5]]; _local5++; }; if (typeof(_arg1[_local4[_local5]]) == "function"){ return (_arg1[_local4[_local5]].apply(_arg1, _arg3)); }; return (undefined); } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{ var _local4:MovieClip = new MovieClip(); if (((false) && (_arg3))){ _arg1.addChildAt(_local4, _arg3); } else { _arg1.addChild(_local4); }; _arg1[_arg2] = _local4; _local4["_name"] = _arg2; return (_local4); } public static function _getRes(_arg1:Object, _arg2:Object):Array{ var _local6:Array; var _local3:Object = _arg2.getBounds(_arg2.root); var _local4:Number = 0; var _local5:Number = 0; if (typeof(_arg1.res) != "undefined"){ _local6 = _arg1.res.split("x"); _local4 = parseFloat(_local6[0]); _local5 = parseFloat(_local6[1]); } else { _local4 = (_local3.xMax - _local3.xMin); _local5 = (_local3.yMax - _local3.yMin); }; if ((((_local4 == 0)) || ((_local5 == 0)))){ _local4 = _arg2.stage.stageWidth; _local5 = _arg2.stage.stageHeight; }; return ([_local4, _local5]); } public static function adShowing(_arg1:Object):void{ _arg1.origFrameRate = _arg1.stage.frameRate; _arg1.stage.frameRate = 30; } public static function getValue(_arg1:Object, _arg2:String):Object{ var _local3:Array = _arg2.split("."); var _local4:Number = 0; while (_local4 < (_local3.length - 1)) { if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){ return (undefined); }; _arg1 = _arg1[_local3[_local4]]; _local4++; }; return (_arg1[_local3[_local4]]); } public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{ var _local4:Object; var _local5:Object; switch (_arg3.id){ case "setValue": MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value); break; case "getValue": _local4 = MochiAd.getValue(_arg1, _arg3.objectName); _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4); break; case "runMethod": _local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args); _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5); break; default: trace(("[mochiads rpc] unknown rpc id: " + _arg3.id)); }; } public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Array = _arg2.split("."); var _local5:Number = 0; while (_local5 < (_local4.length - 1)) { if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){ return; }; _arg1 = _arg1[_local4[_local5]]; _local5++; }; _arg1[_local4[_local5]] = _arg3; } public static function showPreGameAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var complete:Boolean; var unloaded:Boolean; var sendHostProgress:Boolean; var fn:Function; var r:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.play(); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }, ad_progress:function (_arg1:Number):void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){ options.ad_started(); fn = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); return; }; clip = options.clip; var ad_msec:Number = 11000; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; var fadeout_time:Number = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); var fn:Function = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.x = (w * -0.5); chk.y = (h * -0.5); var bar:MovieClip = createEmptyMovieClip(chk, "_mochiad_bar", 4); if (options.no_progress_bar){ bar.visible = false; delete options.no_progress_bar; } else { bar.x = 10; bar.y = (h - 20); }; var bar_color:Number = options.color; delete options.color; var bar_background:Number = options.background; delete options.background; var bar_outline:Number = options.outline; delete options.outline; var backing_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 1); var backing:Object = backing_mc.graphics; backing.beginFill(bar_background); backing.moveTo(0, 0); backing.lineTo((w - 20), 0); backing.lineTo((w - 20), 10); backing.lineTo(0, 10); backing.lineTo(0, 0); backing.endFill(); var inside_mc:MovieClip = createEmptyMovieClip(bar, "_inside", 2); var inside:Object = inside_mc.graphics; inside.beginFill(bar_color); inside.moveTo(0, 0); inside.lineTo((w - 20), 0); inside.lineTo((w - 20), 10); inside.lineTo(0, 10); inside.lineTo(0, 0); inside.endFill(); inside_mc.scaleX = 0; var outline_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 3); var outline:Object = outline_mc.graphics; outline.lineStyle(0, bar_outline, 100); outline.moveTo(0, 0); outline.lineTo((w - 20), 0); outline.lineTo((w - 20), 10); outline.lineTo(0, 10); outline.lineTo(0, 0); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; complete = false; unloaded = false; var f:Function = function (_arg1:Event):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); complete = true; if (unloaded){ MochiAd.unload(clip); }; }; clip.loaderInfo.addEventListener(Event.COMPLETE, f); if ((clip.root is MovieClip)){ r = (clip.root as MovieClip); if (r.framesLoaded >= r.totalFrames){ complete = true; }; }; mc.unloadAd = function ():void{ unloaded = true; if (complete){ MochiAd.unload(clip); }; }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object = mc._mochiad_wait; _local2.server_control = true; _local2.showing = true; _local2.started = getTimer(); _local2.ad_msec = _arg1; }; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; mc.rpcTestFn = function (_arg1:String):Object{ trace(("[MOCHIAD rpcTestFn] " + _arg1)); return (_arg1); }; mc.regContLC = function (_arg1:String):void{ mc._containerLCName = _arg1; }; sendHostProgress = false; mc.sendHostLoadProgress = function (_arg1:String):void{ sendHostProgress = true; }; chk["onEnterFrame"] = function ():void{ var _local11:Number; if (((!(this.parent)) || (!(this.parent.parent)))){ delete this["onEnterFrame"]; return; }; var _local1:Object = this.parent.parent.root; var _local2:Object = this.parent._mochiad_ctr; var _local3:Number = (getTimer() - this.started); var _local4:Boolean; var _local5:Number = _local1.loaderInfo.bytesTotal; var _local6:Number = _local1.loaderInfo.bytesLoaded; if (complete){ _local6 = Math.max(1, _local6); _local5 = _local6; }; var _local7:Number = ((100 * _local6) / _local5); var _local8:Number = ((100 * _local3) / chk.ad_msec); var _local9:Object = this._mochiad_bar._inside; var _local10:Number = Math.min(100, Math.min(((_local7) || (0)), _local8)); _local10 = Math.max(this.last_pcnt, _local10); this.last_pcnt = _local10; _local9.scaleX = (_local10 * 0.01); options.ad_progress(_local10); if (sendHostProgress){ clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7}); if (_local7 == 100){ sendHostProgress = false; }; }; if (!chk.showing){ _local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local11 > 0){ chk.showing = true; chk.started = getTimer(); MochiAd.adShowing(clip); } else { if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){ options.ad_failed(); _local4 = true; }; }; }; if (_local3 > chk.ad_msec){ _local4 = true; }; if (((complete) && (_local4))){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function showPreloaderAd(_arg1:Object):void{ trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0"); MochiAd.showPreGameAd(_arg1); } public static function showTimedAd(_arg1:Object):void{ trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0"); MochiAd.showInterLevelAd(_arg1); } public static function doOnEnterFrame(_arg1:MovieClip):void{ var mc = _arg1; var f:Function = function (_arg1:Object):void{ if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){ mc.onEnterFrame(); } else { _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; }; mc.addEventListener(Event.ENTER_FRAME, f); } } }//package
Section 262
//MochiBot (MochiBot) package { import flash.display.*; import flash.system.*; import flash.net.*; public dynamic class MochiBot extends Sprite { public static function track(_arg1:Sprite, _arg2:String):MochiBot{ if (Security.sandboxType == "localWithFile"){ return (null); }; var _local3:MochiBot = new (MochiBot); _arg1.addChild(_local3); Security.allowDomain("*"); Security.allowInsecureDomain("*"); var _local4 = "http://core.mochibot.com/my/core.swf"; var _local5:URLVariables = new URLVariables(); _local5["sb"] = Security.sandboxType; _local5["v"] = Capabilities.version; _local5["swfid"] = _arg2; _local5["mv"] = "8"; _local5["fv"] = "9"; var _local6:String = _local3.root.loaderInfo.loaderURL; if (_local6.indexOf("http") == 0){ _local5["url"] = _local6; } else { _local5["url"] = "local"; }; var _local7:URLRequest = new URLRequest(_local4); _local7.contentType = "application/x-www-form-urlencoded"; _local7.method = URLRequestMethod.POST; _local7.data = _local5; var _local8:Loader = new Loader(); _local3.addChild(_local8); _local8.load(_local7); return (_local3); } } }//package
Section 263
//Skylark (Skylark) package { import flash.events.*; import flash.geom.*; import com.pocomaxa.*; import flash.display.*; import flash.utils.*; import com.message.*; import com.parser.*; import com.pocomaxa.gos.*; import com.GUI.*; import com.config.*; import com.scroller.*; import com.menu.*; import Embedded.*; import lib.utils.*; import flash.net.*; import mochi.*; import com.state.*; import com.soundmanager.*; import com.wave.*; import com.schedule.*; import com.Text.*; import com.input.*; import com.playerprogress.*; import com.render.*; import com.pocomaxa.mos.*; public dynamic class Skylark extends Sprite { public var secondsTimer:Timer; public var test:lockDog; public var itf:InputField; public var parser:LevelParser; public var craft:Craft; public var showStats:Boolean;// = false public var adSpace:MovieClip; public var gui:GUI; public var config:Config; public var numFrames:int; public var scroll:Scroller; public var inFrame:Boolean; public var _mochiads_game_id:String;// = "5fc8f2ecb1c44586" public var frameTime:int; public var menu:Menu; public var lastFrameTime:int; public var seconds:Number; public static const fadeData:Array = [0, 0, 0, 40, 30, 20, 10]; public static const tiltData:Array = [1, 1.01, 1.02, 1.01, 1.03, 1.01, 1.04]; public static var effects:Array; public static var bossObject:GameObject; public static var currentMessage:Message; public static var sound:SoundManager; public static var enemy_shells:Array; public static var tiltIndex:int = 0; public static var fadeCoeff:int = 0; public static var rockets:Array; public static var enemies:Array; public static var gameState:int; public function Skylark(){ addEventListener(Event.ADDED_TO_STAGE, onAdded); } private function die():void{ craft.die(); removeEventListeners(); if (GameState.isDying()){ return; }; GameState.die(); pause(); GameState.gameOver(); } public function menuResumeRestart(_arg1:Event=null):void{ pause(); menu.hide(); menu = new Menu(this, false, new Point(0, 515), new Rectangle(0, 2, 175, 35), menuOptions, new Point(175, 515), new Rectangle(176, 36, 175, 35), menuResume, new Point(347, 515), new Rectangle(348, 36, 203, 35), menuRestart); } public function menuToggleMusicOption(_arg1:Event=null):void{ sound.toggleMusicState(); config.flush(); menuOptions(); } private function onMouseMove(_arg1:MouseEvent):void{ Input.mouseTo(mouseX, mouseY); } private function onNewSecond(_arg1:TimerEvent):void{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:String; var _local9:int; Schedule.check(); if (Scroller.getDrawOffset() >= LevelParser.currentEvent.time){ if (LevelParser.currentEvent.cmd == "SPAWN"){ _local4 = 0; _local5 = 2; _local6 = 0; _local7 = 2; _local8 = ""; _local9 = -1; if (LevelParser.currentEvent.x != undefined){ _local2 = Number(LevelParser.currentEvent.x); }; if (LevelParser.currentEvent.y != undefined){ _local3 = Number(LevelParser.currentEvent.y); }; if (LevelParser.currentEvent.etype != undefined){ _local8 = String(LevelParser.currentEvent.etype); }; if (LevelParser.currentEvent.prize != undefined){ _local9 = int(LevelParser.currentEvent.prize); }; if (LevelParser.currentEvent.xacc != undefined){ _local4 = Number(LevelParser.currentEvent.xacc); }; if (LevelParser.currentEvent.yacc != undefined){ _local6 = Number(LevelParser.currentEvent.yacc); }; addEnemy(_local2, _local3, _local4, _local5, _local6, _local7, _local8, _local9); } else { if (LevelParser.currentEvent.cmd == "BONUS"){ checkPrize(LevelParser.currentEvent.param); } else { if (LevelParser.currentEvent.cmd == "WAVE"){ Waves.newWave(LevelParser.currentEvent.prize); } else { if (LevelParser.currentEvent.cmd == "ENDWAVE"){ Waves.closeCurrent(); } else { if (LevelParser.currentEvent.cmd == "MSG"){ currentMessage.show(LevelParser.currentEvent.text, (LevelParser.currentEvent.param * 1000), null, Message.NORMAL); } else { if (LevelParser.currentEvent.cmd == "END"){ gameOver(); }; }; }; }; }; }; if (!LevelParser.popEvent()){ currentMessage.show("!LevelParser.popEvent()"); pause(); }; }; seconds = (seconds + 0.1); } private function handleKeyUp(_arg1:KeyboardEvent):void{ Input.setKeyState(_arg1.keyCode, false); switch (_arg1.keyCode){ case 107: case 109: config.flush(); break; }; } public function checkWave(_arg1:GameObject):void{ var _local3:int; if (_arg1.alreadyKilled){ return; }; var _local2:int = _arg1.wave; if (_local2){ Waves.addKills(_local2); if (Waves.isEliminated(_local2)){ _local3 = (Waves.getTotal(_local2) * 100); checkPrize(Waves.getPrize(_local2), Point(_arg1)); Waves.dispose(_local2); PlayerProgress.addScore(_local3); currentMessage.show(("+" + _local3), 1001, Point(_arg1)); }; }; } private function level1BossCallback():void{ addEnemy(0, 0, 0, 0, 0, 0, "ufo", Bonus.SPECIAL_ENDLEVEL); } public function kHealth():Number{ if (PlayerProgress.currentLevel == 0){ return (2); }; return (1); } public function menuDoNotSubmit(_arg1:Event=null):void{ var e = _arg1; menu.hide(); config.flush(); currentMessage.hide(); try { removeChild(itf); } catch(e:Error) { }; menuRestart(); } public function level2Show2ndCallback():void{ currentMessage.show(Texts.level2End2, 5001); } private function takeLife():void{ PlayerProgress.lives--; if (PlayerProgress.weaponUpgradeLevel > 1){ PlayerProgress.weaponUpgradeLevel--; }; if (PlayerProgress.weaponPower > 1){ PlayerProgress.weaponPower--; }; if (PlayerProgress.lives){ craft.respawn(); return; }; gameOver(); } private function cleanup():void{ var _local1:String; for (_local1 in enemies) { enemies[_local1].die(); delete enemies[_local1]; }; for (_local1 in enemy_shells) { enemy_shells[_local1].die(); delete enemy_shells[_local1]; }; for (_local1 in rockets) { rockets[_local1].die(); delete rockets[_local1]; }; for (_local1 in effects) { delete effects[_local1]; }; craft.die(); removeChildAt(0); } private function resume():void{ var _local1:String; currentMessage.hide(); lastFrameTime = getTimer(); if (!GameState.isPaused()){ return; }; currentMessage.hide(); secondsTimer.start(); craft.resume(); for (_local1 in enemies) { GameObject(enemies[_local1]).resume(); }; for (_local1 in enemy_shells) { MovingObject(enemy_shells[_local1]).resume(); }; for (_local1 in rockets) { MovingObject(rockets[_local1]).resume(); }; GameState.resume(); } public function setupScreenProps():void{ if (this.parent != null){ stage.scaleMode = StageScaleMode.NO_SCALE; }; scrollRect = new Rectangle(0, 0, Screen.width, Screen.height); } public function menuRestart(_arg1:Event=null):void{ die(); cleanup(); menu.hide(); currentMessage.hide(); PlayerProgress.reset(); play(); } public function setupEventListeners():void{ stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown); stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp); stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove); stage.addEventListener(Event.ENTER_FRAME, onEnterFrame); stage.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown); stage.addEventListener(KeyboardEvent.KEY_UP, handleKeyUp); } public function menuNextLevel(_arg1:Event=null):void{ pause(); currentMessage.hide(); GameState.state = GameState.INTERLEVEL; if (PlayerProgress.currentLevel < LevelParser.lastLevel){ nextLevel(); } else { gameOver(true); }; } public function menuMain(_arg1:Event=null):void{ if (menu){ menu.hide(); }; sound.playMusic(); if (GameState.state == GameState.OVER){ menu = new Menu(this, false, new Point(0, 515), new Rectangle(0, 2, 175, 35), menuOptions, new Point(175, 515), new Rectangle(348, 36, 203, 35), menuRestart, new Point(377, 515), new Rectangle(349, 104, 175, 35), menuMoreGames); } else { if (GameState.state == GameState.HIGHSCORES){ menu = new Menu(this, true, new Point(0, 515), new Rectangle(0, 2, 175, 35), menuOptions, new Point(175, 515), new Rectangle(348, 36, 203, 35), menuRestart, new Point(377, 515), new Rectangle(349, 104, 175, 35), menuMoreGames, new Point(38, 406), new Rectangle(0, 173, 110, 29), menuHelp); } else { menu = new Menu(this, true, new Point(0, 515), new Rectangle(0, 2, 175, 35), menuOptions, new Point(175, 515), new Rectangle(175, 2, 140, 35), menuPlayGame, new Point(317, 515), new Rectangle(317, 2, 242, 35), menuMoreGames, new Point(38, 406), new Rectangle(0, 173, 110, 29), menuHelp); }; }; } public function kDamage():Number{ if (PlayerProgress.currentLevel == 0){ return (2.5); }; if (PlayerProgress.currentLevel == 1){ return (1.5); }; return (1); } public function tilt():void{ if (!tiltIndex){ return; }; fadeCoeff = fadeData[tiltIndex]; tiltIndex--; scaleX = tiltData[tiltIndex]; scaleY = scaleX; } public function menuOptions(_arg1:Event=null):void{ var _local2 = 70; var _local3 = 70; if (!SoundManager.musicEnabled){ _local3 = 104; }; if (!SoundManager.soundsEnabled){ _local2 = 104; }; menu.hide(); switch (GameState.state){ case GameState.INTERLEVEL: menu = new Menu(this, true, new Point(0, 515), new Rectangle(0, _local3, 175, 35), menuToggleMusicOption, new Point(175, 515), new Rectangle(176, _local2, 175, 35), menuToggleSoundOption, new Point(347, 515), new Rectangle(348, 70, 203, 35), menuNextLevel); break; case GameState.PAUSED: menu = new Menu(this, true, new Point(0, 515), new Rectangle(0, _local3, 175, 35), menuToggleMusicOption, new Point(175, 515), new Rectangle(176, _local2, 175, 35), menuToggleSoundOption, new Point(347, 515), new Rectangle(348, 70, 203, 35), menuResumeRestart); break; default: menu = new Menu(this, true, new Point(0, 515), new Rectangle(0, _local3, 175, 35), menuToggleMusicOption, new Point(175, 515), new Rectangle(176, _local2, 175, 35), menuToggleSoundOption, new Point(347, 515), new Rectangle(348, 70, 203, 35), menuMain); break; }; } private function onMouseUp(_arg1:MouseEvent):void{ Input.stopFire(); } public function killAllEnemies():void{ var _local1:String; startTilt(); for (_local1 in enemy_shells) { enemy_shells[_local1].die(); }; for (_local1 in enemies) { if (!enemies[_local1].isBonus()){ if (GameObject(enemies[_local1]).prize >= 0){ checkPrize(enemies[_local1].prize, Point(enemies[_local1])); }; enemies[_local1].prize = -1; checkWave(enemies[_local1]); enemies[_local1].die(true); PlayerProgress.addScore(enemies[_local1].scoreValue); }; }; } public function autoTune():void{ var _local1:int = Scroller.getDrawOffset(); trace(("autoTune(): " + (93 / (_local1 / seconds)))); Config.fps = (Config.fps * Values.limit((93 / (_local1 / seconds)), 0.71, 1.25)); root.stage.frameRate = Config.fps; } public function mochiOnError():void{ trace("MochiAds: error has occured"); } public function menuToggleSoundOption(_arg1:Event=null):void{ sound.toggleSoundState(); config.flush(); menuOptions(); } public function menuMoreGames(_arg1:Event=null):void{ navigateToURL(new URLRequest("http://www.stumpygames.com/gamein.php?id=1000&source=2"), "_blank"); } public function level3VictoryCallback():void{ gameOver(true); PlayerProgress.addScore(25000); } public function menuHelp(_arg1:MouseEvent=null):void{ if (menu){ menu.hide(); }; menu = new Menu(this, true, new Point(185, 518), new Rectangle(356, 140, 187, 30), menuMain); Menu.fadePic(new Rectangle(0, 0, Screen.width, (Screen.height - 35)), new ColorTransform(1, 1, 1, 0.33)); currentMessage.show(Texts.helpText, -1, null, Message.HIGHEST); } private function handleKeyDown(_arg1:KeyboardEvent):void{ Input.setKeyState(_arg1.keyCode, true); switch (_arg1.keyCode){ case 19: case 27: case 80: menuResumeRestart(); break; case 72: case 191: menuHelp2(); break; case 49: craft.currentWeapon = craft.WP_AUTOCANNON; break; case 50: craft.currentWeapon = craft.WP_MISSILE; break; case 107: Config.fps = Values.limit((Config.fps + 1), 20, 35); currentMessage.show((("SPEED UP\n" + int((root.stage.frameRate * 4))) + "%"), 1001, null, Message.NORMAL); root.stage.frameRate = Config.fps; break; case 109: Config.fps = Values.limit((Config.fps - 1), 20, 35); currentMessage.show((("SLOW DOWN\n" + int((root.stage.frameRate * 4))) + "%"), 1001, null, Message.NORMAL); root.stage.frameRate = Config.fps; break; case 192: craft.currentWeapon = (1 - craft.currentWeapon); break; }; } public function mochiSetup():void{ MochiServices.connect(_mochiads_game_id, this, mochiOnError); MochiScores.setBoardID("8f4efbf0e5a4f245"); } public function mochiOnLeaderboardClose():void{ menuMain(); } public function menuPlayGame(_arg1:Event=null):void{ menu.hide(); PlayerProgress.reset(); play(); } public function menuSubmit(_arg1:Event=null):void{ var e = _arg1; menu.hide(); Config.name = ((itf.text) || ("Anonymous")); config.flush(); currentMessage.hide(); try { removeChild(itf); } catch(e:Error) { }; var highScoreURL = (("http://www.stumpygames.com/gamein.php?id=1000&source=3&user=" + Config.name) + "&score="); var encodedScore = ""; var strScore:String = PlayerProgress.score.toString(); var encodeDigit1 = ""; var encodeDigit2 = ""; var encodeDigit3 = ""; var randomLetter = ""; var i:int; while (i < strScore.length) { encodeDigit1 = String.fromCharCode((strScore.charCodeAt(i) + 57)); encodeDigit2 = String.fromCharCode((strScore.charCodeAt(i) + 60)); encodeDigit3 = String.fromCharCode((strScore.charCodeAt(i) + 20)); randomLetter = String.fromCharCode((Math.floor((Math.random() * 26)) + 97)); if ((i % 4) == 0){ encodedScore = ((((encodedScore + randomLetter) + encodeDigit1) + encodeDigit2) + encodeDigit3); } else { if ((i % 4) == 1){ encodedScore = ((((encodedScore + encodeDigit1) + randomLetter) + encodeDigit2) + encodeDigit3); } else { if ((i % 4) == 2){ encodedScore = ((((encodedScore + encodeDigit1) + encodeDigit2) + randomLetter) + encodeDigit3); } else { if ((i % 4) == 3){ encodedScore = ((((encodedScore + encodeDigit1) + encodeDigit2) + encodeDigit3) + randomLetter); }; }; }; }; i = (i + 1); }; highScoreURL = (highScoreURL + encodedScore); navigateToURL(new URLRequest(highScoreURL), "_blank"); menuMain(); } public function nextLevel(_arg1:Event=null):void{ MochiAd.showInterLevelAd({clip:this, id:"5fc8f2ecb1c44586", res:"550x550", ad_timeout:1002, ad_finished:mochiInterlevelAdFinished, ad_started:mochiInterlevelAdStarted}); graphics.beginBitmapFill(Bitmap(Assets.objCache(Assets.tile_sea)).bitmapData); graphics.endFill(); die(); cleanup(); menu.hide(); currentMessage.show("Loading Next Level....", 2001, null, Message.NORMAL); PlayerProgress.nextLevel(); } private function onEnterFrame(_arg1:Event):void{ var _local3:String; if (((inFrame) || (!((GameState.state == GameState.PLAYED))))){ return; }; inFrame = true; frameTime = (getTimer() - lastFrameTime); lastFrameTime = getTimer(); var _local2:Array = []; Input.apply2(Point(craft), craft.defaultXSpeed, craft.defaultYSpeed); tilt(); Render.timeC = (frameTime / 70); calcTurn(); scroll.scrollDown(); if (!tiltIndex){ scroll.drawToScreen(); } else { scroll.fade(new ColorTransform(1, 1, 1, 1, fadeCoeff, fadeCoeff, fadeCoeff)); }; for (_local3 in rockets) { rockets[_local3].updateClips(); }; for (_local3 in enemies) { if (!GameObject(enemies[_local3]).onTop){ GameObject(enemies[_local3]).updateClips(); } else { _local2.push(enemies[_local3]); }; }; for (_local3 in _local2) { GameObject(_local2[_local3]).updateClips(); }; for (_local3 in enemy_shells) { enemy_shells[_local3].updateClips(); }; craft.updateClips(); for (_local3 in effects) { if (Effect(effects[_local3]).marked){ delete effects[_local3]; } else { Effect(effects[_local3]).updateClips(); }; }; gui.draw(craft.health, bossObject); inFrame = false; } public function gameOver(_arg1:Boolean=false):void{ die(); menu.hide(); if (_arg1){ PlayerProgress.score = (PlayerProgress.score + 25000); currentMessage.show((Texts.gameVictory + PlayerProgress.toString())); } else { currentMessage.show((Texts.gameOver + PlayerProgress.toString())); }; if (PlayerProgress.score > Config.topScore){ GameState.state = GameState.HIGHSCORES; Config.topScore = PlayerProgress.score; itf = new InputField(Config.name); itf.x = ((Screen.width - itf.width) / 2); itf.y = 450; addChild(itf); menu = new Menu(this, false, new Point(133, 500), new Rectangle(6, 142, 121, 30), menuSubmit, new Point(281, 500), new Rectangle(356, 171, 134, 30), menuDoNotSubmit); return; }; menuMain(); } private function level1BossWarningCallback():void{ currentMessage.show(Texts.level1FakeBoss, 4001); Schedule.addCallback(270, level1BossCallback); } public function onAdded(_arg1:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, onAdded); trace("ADDED"); Run(); } public function removeEventListeners():void{ stage.removeEventListener(MouseEvent.MOUSE_DOWN, onMouseDown); stage.removeEventListener(MouseEvent.MOUSE_UP, onMouseUp); stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove); stage.removeEventListener(Event.ENTER_FRAME, onEnterFrame); stage.removeEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown); stage.removeEventListener(KeyboardEvent.KEY_UP, handleKeyUp); } private function checkPrize(_arg1:int, _arg2:Point=null):void{ var _local3:Bonus; var _local4:Point; if (_arg2){ _local4 = new Point(_arg2.x, (_arg2.y - 50)); } else { _local4 = new Point(((Math.random() * 500) + 25), Render.ABOVE_THE_BORDER); }; switch (_arg1){ case Bonus.HEALTH: _local3 = new Bonus(Assets.Bonus, true, _local4, _arg1); break; case Bonus.KILL: _local3 = new Bonus(Assets.BonusKill, true, _local4, _arg1); break; case Bonus.LIVE: _local3 = new Bonus(Assets.BonusLive, true, _local4, _arg1); break; case Bonus.AMMOX2: _local3 = new Bonus(Assets.BonusAmmoX2, true, _local4, _arg1); break; case Bonus.POWER: _local3 = new Bonus(Assets.BonusPower, true, _local4, _arg1); break; case Bonus.ROCKETS: _local3 = new Bonus(Assets.BonusRockets, true, _local4, _arg1); break; case Bonus.SPECIAL_LEVEL1: Schedule.addCallback(90, level1BossWarningCallback); break; case Bonus.SPECIAL_FIN: Schedule.addCallback(275, level3VictoryCallback); break; case Bonus.SPECIAL_ENDLEVEL: if (PlayerProgress.currentLevel == 0){ currentMessage.show(Texts.level1GreenMen, 5001); }; if (PlayerProgress.currentLevel == 1){ currentMessage.show(Texts.level2End1, 4001); Schedule.addCallback(400, level2Show2ndCallback); }; Schedule.addCallback((500 + (200 * PlayerProgress.currentLevel)), menuNextLevel); break; case Bonus.SPECIAL_KILLALL: Schedule.addCallback(1, killAllEnemies); break; case -1: default: return; }; if (_arg1 < Bonus.SPECIAL){ enemies.push(_local3); }; } public function Run():void{ trace(("@" + root.stage.frameRate)); setupScreenProps(); config = new Config(); root.stage.frameRate = Config.fps; new Assets(); test = new lockDog(loaderInfo); graphics.beginFill(2452112); graphics.beginGradientFill(GradientType.LINEAR, [144463, 2452112], [1, 1], [127, 192], new Matrix(0, 1, -1, 0)); graphics.drawRect(0, 0, Screen.width, Screen.height); graphics.endFill(); sound = new SoundManager(); Render.sound = sound; currentMessage = new Message(this); adSpace = new MovieClip(); if (Config.runs1stTime){ menuHelp(); } else { sound.playMusic(); menu = new Menu(this, true, new Point(0, 515), new Rectangle(0, 2, 175, 35), menuOptions, new Point(175, 515), new Rectangle(175, 2, 140, 35), menuPlayGame, new Point(317, 515), new Rectangle(317, 2, 242, 35), menuMoreGames, new Point(38, 406), new Rectangle(0, 173, 110, 29), menuHelp); }; MochiBot.track(this, "740a2765"); } public function menuResume(_arg1:MouseEvent):void{ menu.hide(); resume(); } public function play():void{ Assets.resetCache(); if (!test.properURL){ currentMessage.hide(); currentMessage.show("Sorry!\nThe game has been restricted\nto certain URLs"); return; }; tiltIndex = 0; fadeCoeff = 1; seconds = 0; lastFrameTime = getTimer(); secondsTimer = new Timer(100); parser = new LevelParser(PlayerProgress.currentLevel); currentMessage.hide(); currentMessage.show((Texts.level + int((PlayerProgress.currentLevel + 1))), 501); GameState.play(); inFrame = false; enemies = []; rockets = []; effects = []; enemy_shells = []; scroll = new Scroller(); gui = new GUI(); bossObject = null; Render.coordinateSpace = (this as DisplayObject); craft = new Craft((Screen.width / 2), ((Screen.height / 3) * 2)); Input.reinitialize(); Input.mouseTo(craft.x, craft.y); Waves.reset(); secondsTimer.addEventListener(TimerEvent.TIMER, onNewSecond); secondsTimer.start(); setupEventListeners(); addChildAt(new Bitmap((scroll as BitmapData)), 0); stage.focus = stage; if (Config.runs1stTime){ Schedule.addCallback(100, autoTune); }; } public function addEnemy(_arg1:int, _arg2:int, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0, _arg6:Number=0, _arg7:String=null, _arg8:int=-1):void{ var _local9:GameObject; if (_arg7 == "balloon"){ _local9 = new Balloon(_arg1, _arg2); } else { if (_arg7 == "barrel"){ _local9 = new Barrel(_arg1, Render.ABOVE_THE_BORDER); } else { if (_arg7 == "bastard"){ _local9 = new Bastard(_arg1, Render.ABOVE_THE_BORDER); } else { if (_arg7 == "boat"){ _local9 = new Boat(_arg1, Render.ABOVE_THE_BORDER); } else { if (_arg7 == "boss"){ _local9 = new TheBoss(_arg1, Render.ABOVE_THE_BORDER); } else { if (_arg7 == "e1"){ _local9 = new WaspE1(_arg1, Render.ABOVE_THE_BORDER); } else { if (_arg7 == "e2"){ _local9 = new Wasp(_arg1, Render.ABOVE_THE_BORDER); } else { if (_arg7 == "e2bright"){ _local9 = new Wasp(_arg1, Render.ABOVE_THE_BORDER, true); } else { if (_arg7 == "e3"){ _local9 = new WaspE3(_arg1, Render.ABOVE_THE_BORDER); } else { if (_arg7 == "flak"){ _local9 = new Flak(_arg1, Render.ABOVE_THE_BORDER); } else { if (_arg7 == "red"){ _local9 = new RedBaron(_arg1, Render.ABOVE_THE_BORDER); } else { if (_arg7 == "rocket"){ _local9 = new Rocket(_arg1, Render.ABOVE_THE_BORDER); } else { if (_arg7 == "smallufo"){ _local9 = new SmallUFO(); } else { if (_arg7 == "smallufo2"){ _local9 = new SmallUFO2(); } else { if (_arg7 == "tank"){ _local9 = new Tank(_arg1); } else { if (_arg7 == "ufo"){ _local9 = new UFO(); } else { if (_arg7 == "ufo2"){ _local9 = new UFO2(_arg1, Render.ABOVE_THE_BORDER); } else { if (_arg7 == "vbright"){ _local9 = new Villain(_arg1, Render.ABOVE_THE_BORDER, true); } else { _local9 = new Villain(_arg1, _arg2); }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; if (Waves.markAllUnits){ _local9.wave = Waves.ID; Waves.addUnits(Waves.ID); }; if (_arg3 != 0){ _local9.setXAccel(_arg3, _arg4); }; if (_arg5 != 0){ _local9.setYAccel(_arg5, _arg6); _local9.setSpeed(_arg3, _arg5); }; if (_arg8 >= 0){ _local9.prize = _arg8; }; PlayerProgress.enemiesSpawned++; enemies.push(_local9); } public function menuHelp1(_arg1:MouseEvent=null):void{ pause(); menu = new Menu(this, false, new Point(185, 498), new Rectangle(356, 140, 187, 30), menuResume); currentMessage.show(Texts.helpText1, -1, null, Message.HIGHEST); Config.hint1Shown = true; config.flush(); } public function calcTurn():void{ var _local1:String; var _local2:String; craft.move(Input.x, Input.y); sound.play(Assets.EngineSound, Point(craft), true); for (_local1 in rockets) { if (!MovingObject(rockets[_local1]).isMarked()){ MovingObject(rockets[_local1]).move(); } else { delete rockets[_local1]; }; }; for (_local1 in enemy_shells) { if (MovingObject(enemy_shells[_local1]).isMarked()){ MovingObject(enemy_shells[_local1]).die(); delete enemy_shells[_local1]; } else { if (((((!(craft.renderDisabled)) && (!(craft.isBlink())))) && (MovingObject(enemy_shells[_local1]).checkCollision(craft)))){ sound.play(Assets.HitSound, Point(craft)); PlayerProgress.hitsTaken++; if (!craft.takeHealth((enemy_shells[_local1].damage / kHealth()))){ takeLife(); }; MovingObject(enemy_shells[_local1]).die(true); } else { MovingObject(enemy_shells[_local1]).move(); }; }; }; for (_local1 in enemies) { if (GameObject(enemies[_local1]).isMarked()){ GameObject(enemies[_local1]).die(); delete enemies[_local1]; } else { GameObject(enemies[_local1]).move(); if (GameObject(enemies[_local1]).checkCollision(craft)){ if (enemies[_local1].isBonus()){ if (enemies[_local1].type == Bonus.HEALTH){ craft.addHealth(enemies[_local1].value); sound.play(Assets.BonusSound, Point(craft)); }; if (enemies[_local1].type == Bonus.KILL){ killAllEnemies(); sound.play(Assets.PowerupSound, Point(craft)); }; if (enemies[_local1].type == Bonus.LIVE){ PlayerProgress.lives++; sound.play(Assets.LifeBonusSound, Point(craft)); }; if (enemies[_local1].type == Bonus.AMMOX2){ PlayerProgress.weaponUpgradeLevel++; craft.resetupFire(); sound.play(Assets.PowerupSound, Point(craft)); }; if (enemies[_local1].type == Bonus.POWER){ if (PlayerProgress.weaponPower < 4){ PlayerProgress.weaponPower++; } else { currentMessage.show(Texts.maxPower, 1001); }; sound.play(Assets.PowerupSound, Point(craft)); }; if (enemies[_local1].type == Bonus.ROCKETS){ PlayerProgress.rockets = (PlayerProgress.rockets + 10); sound.play(Assets.PowerupSound, Point(craft)); if (!Config.hint1Shown){ Schedule.addCallback(10, menuHelp1); }; }; enemies[_local1].die(); PlayerProgress.bonusCollected++; currentMessage.show(Bonus(enemies[_local1]).toString(), 1001); } else { if (((((!(craft.takeHealth((1 / kHealth())))) && (!(craft.isBlink())))) && (!(craft.renderDisabled)))){ PlayerProgress.enemyCollisions++; takeLife(); }; }; }; for (_local2 in rockets) { if (((MovingObject(rockets[_local2]).checkCollision(enemies[_local1])) && (!(GameObject(enemies[_local1]).isBonus())))){ MovingObject(rockets[_local2]).die(true); if (!GameObject(enemies[_local1]).takeHealth((rockets[_local2].damage * kDamage()))){ PlayerProgress.addScore(enemies[_local1].scoreValue); checkWave(enemies[_local1]); GameObject(enemies[_local1]).die(true); if (GameObject(enemies[_local1]).prize >= 0){ checkPrize(GameObject(enemies[_local1]).prize, Point(enemies[_local1])); GameObject(enemies[_local1]).prize = -1; }; }; }; }; }; }; } public function mochiInterlevelAdStarted():void{ trace("Ad has been added to stage."); } private function onMouseDown(_arg1:MouseEvent):void{ Input.beginFire(); } public function mochiInterlevelAdFinished():void{ if (((adSpace) && (adSpace.parent))){ try { removeChild(adSpace); } catch(e:Error) { trace("mochiInterlevelAdFinished() fails!"); trace(e); }; }; trace("Ad has been removed."); play(); } public function menuHelp2(_arg1:MouseEvent=null):void{ pause(); menu = new Menu(this, false, new Point(185, 498), new Rectangle(356, 140, 187, 30), menuResume); currentMessage.show(Texts.helpText2, -1, null, Message.HIGHEST); } private function pause():void{ var _local1:String; if (GameState.isPaused()){ return; }; if (!GameState.isDying()){ currentMessage.show(Texts.gamePaused, -1, null, Message.HIGHEST); }; secondsTimer.stop(); craft.pause(); for (_local1 in enemies) { GameObject(enemies[_local1]).pause(); }; for (_local1 in enemy_shells) { MovingObject(enemy_shells[_local1]).pause(); }; for (_local1 in rockets) { MovingObject(rockets[_local1]).pause(); }; scroll.fade(new ColorTransform(0.75, 0.75, 0.75, 1)); sound.mute(); GameState.pause(); } public static function startTilt():void{ tiltIndex = (tiltData.length - 1); fadeCoeff = 1; } } }//package

Library Items

Symbol 1 Bitmap {com.loader.Entertainer_stumpyBg} [preloaderBG]
Symbol 2 Bitmap {com.loader.Entertainer_stumpyAd} [stumpyLogoAd]
Symbol 3 Sound {com.loader.Entertainer_stumpySound} [preloader]
Symbol 4 BitmapUsed by:5
Symbol 5 GraphicUses:4Used by:10
Symbol 6 BitmapUsed by:7
Symbol 7 GraphicUses:6Used by:10
Symbol 8 BitmapUsed by:9
Symbol 9 GraphicUses:8Used by:10
Symbol 10 MovieClip {Embedded.Assets_Balloon} [RedBalloon]Uses:5 7 9
Symbol 11 BitmapUsed by:12
Symbol 12 GraphicUses:11Used by:17
Symbol 13 BitmapUsed by:14
Symbol 14 GraphicUses:13Used by:17
Symbol 15 BitmapUsed by:16
Symbol 16 GraphicUses:15Used by:17
Symbol 17 MovieClip {Embedded.Assets_BonusPower} [BonusPower]Uses:12 14 16
Symbol 18 BitmapUsed by:19
Symbol 19 GraphicUses:18Used by:20
Symbol 20 MovieClip {Embedded.Assets_Barrel} [Barrel]Uses:19
Symbol 21 Sound {Embedded.Assets_HitSound} [HitSound]
Symbol 22 BitmapUsed by:23
Symbol 23 GraphicUses:22Used by:30
Symbol 24 BitmapUsed by:25
Symbol 25 GraphicUses:24Used by:30
Symbol 26 BitmapUsed by:27
Symbol 27 GraphicUses:26Used by:30
Symbol 28 BitmapUsed by:29
Symbol 29 GraphicUses:28Used by:30
Symbol 30 MovieClip {Embedded.Assets_Flak} [Flak]Uses:23 25 27 29
Symbol 31 BitmapUsed by:32
Symbol 32 GraphicUses:31Used by:37
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:37
Symbol 35 BitmapUsed by:36
Symbol 36 GraphicUses:35Used by:37
Symbol 37 MovieClip {Embedded.Assets_BonusKill} [BonusKill]Uses:32 34 36
Symbol 38 BitmapUsed by:39
Symbol 39 GraphicUses:38Used by:40
Symbol 40 MovieClip {Embedded.Assets_CraftShot} [CShot]Uses:39
Symbol 41 BitmapUsed by:42
Symbol 42 GraphicUses:41Used by:43
Symbol 43 MovieClip {Embedded.Assets_SkyRocket} [BigRocket]Uses:42
Symbol 44 Sound {Embedded.Assets_MusicMP3} [Embedded.Assets_MusicMP3]
Symbol 45 BitmapUsed by:46
Symbol 46 GraphicUses:45Used by:51
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:51
Symbol 49 BitmapUsed by:50
Symbol 50 GraphicUses:49Used by:51
Symbol 51 MovieClip {Embedded.Assets_Bonus} [Bonus]Uses:46 48 50
Symbol 52 BitmapUsed by:53
Symbol 53 GraphicUses:52Used by:56
Symbol 54 BitmapUsed by:55
Symbol 55 GraphicUses:54Used by:56
Symbol 56 MovieClip {Embedded.Assets_ArmoredUnit} [ArmoredUnit]Uses:53 55
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:63
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:59Used by:63
Symbol 61 BitmapUsed by:62
Symbol 62 GraphicUses:61Used by:63
Symbol 63 MovieClip {Embedded.Assets_ThePlane} [ThePlane]Uses:58 60 62
Symbol 64 Sound {Embedded.Assets_ShotSound} [ShotSound]
Symbol 65 BitmapUsed by:66
Symbol 66 GraphicUses:65Used by:67
Symbol 67 MovieClip {Embedded.Assets_FoeMissile} [Missile]Uses:66
Symbol 68 BitmapUsed by:69 111 118 136 156 161 183 184 185 186 210 211 212 213 252
Symbol 69 GraphicUses:68Used by:76
Symbol 70 BitmapUsed by:71 113 119 138 156 158 183 184 185 186 208 209 210 211 253
Symbol 71 GraphicUses:70Used by:76
Symbol 72 BitmapUsed by:73 114 120 140 158 160 183 184 185 186 206 207 208 209 254
Symbol 73 GraphicUses:72Used by:76
Symbol 74 BitmapUsed by:75 115 121 142 160 161 183 184 185 186 206 207 212 213 255
Symbol 75 GraphicUses:74Used by:76
Symbol 76 MovieClip {Embedded.Assets_TheBubbles} [TheBubbles]Uses:69 71 73 75
Symbol 77 BitmapUsed by:78
Symbol 78 GraphicUses:77Used by:83
Symbol 79 BitmapUsed by:80
Symbol 80 GraphicUses:79Used by:83
Symbol 81 BitmapUsed by:82
Symbol 82 GraphicUses:81Used by:83
Symbol 83 MovieClip {Embedded.Assets_BonusRockets} [BonusRockets]Uses:78 80 82
Symbol 84 BitmapUsed by:85
Symbol 85 GraphicUses:84Used by:86
Symbol 86 MovieClip {Embedded.Assets_TheBoat} [TheBoat]Uses:85
Symbol 87 BitmapUsed by:88
Symbol 88 GraphicUses:87Used by:109
Symbol 89 BitmapUsed by:90
Symbol 90 GraphicUses:89Used by:109
Symbol 91 BitmapUsed by:92
Symbol 92 GraphicUses:91Used by:109
Symbol 93 BitmapUsed by:94
Symbol 94 GraphicUses:93Used by:109
Symbol 95 BitmapUsed by:96
Symbol 96 GraphicUses:95Used by:109
Symbol 97 BitmapUsed by:98
Symbol 98 GraphicUses:97Used by:109
Symbol 99 BitmapUsed by:100
Symbol 100 GraphicUses:99Used by:109
Symbol 101 BitmapUsed by:102
Symbol 102 GraphicUses:101Used by:109
Symbol 103 BitmapUsed by:104
Symbol 104 GraphicUses:103Used by:109
Symbol 105 BitmapUsed by:106
Symbol 106 GraphicUses:105Used by:109
Symbol 107 BitmapUsed by:108
Symbol 108 GraphicUses:107Used by:109
Symbol 109 MovieClip {Embedded.Assets_Explo} [Explo]Uses:88 90 92 94 96 98 100 102 104 106 108
Symbol 110 BitmapUsed by:111 114
Symbol 111 GraphicUses:68 110Used by:116
Symbol 112 BitmapUsed by:113 115
Symbol 113 GraphicUses:70 112Used by:116
Symbol 114 GraphicUses:72 110Used by:116
Symbol 115 GraphicUses:74 112Used by:116
Symbol 116 MovieClip {Embedded.Assets_Vint} [Vint]Uses:111 113 114 115
Symbol 117 BitmapUsed by:118 119 120 121
Symbol 118 GraphicUses:117 68Used by:122
Symbol 119 GraphicUses:117 70Used by:122
Symbol 120 GraphicUses:117 72Used by:122
Symbol 121 GraphicUses:117 74Used by:122
Symbol 122 MovieClip {Embedded.Assets_RocketAndTrace} [RocketAndTrace]Uses:118 119 120 121
Symbol 123 BitmapUsed by:124
Symbol 124 GraphicUses:123Used by:134
Symbol 125 BitmapUsed by:126
Symbol 126 GraphicUses:125Used by:134
Symbol 127 BitmapUsed by:128
Symbol 128 GraphicUses:127Used by:131
Symbol 129 BitmapUsed by:130
Symbol 130 GraphicUses:129Used by:131
Symbol 131 MovieClipUses:128 130Used by:134
Symbol 132 BitmapUsed by:133
Symbol 133 GraphicUses:132Used by:134
Symbol 134 MovieClip {Embedded.Assets_Enemy2Sprite} [E2]Uses:124 126 131 133
Symbol 135 BitmapUsed by:136 252
Symbol 136 GraphicUses:135 68Used by:143
Symbol 137 BitmapUsed by:138 253
Symbol 138 GraphicUses:137 70Used by:143
Symbol 139 BitmapUsed by:140 254
Symbol 140 GraphicUses:139 72Used by:143
Symbol 141 BitmapUsed by:142 255
Symbol 142 GraphicUses:141 74Used by:143
Symbol 143 MovieClip {Embedded.Assets_WaspTrace} [WaspTrace]Uses:136 138 140 142
Symbol 144 BitmapUsed by:145
Symbol 145 GraphicUses:144Used by:152
Symbol 146 BitmapUsed by:147
Symbol 147 GraphicUses:146Used by:152
Symbol 148 BitmapUsed by:149
Symbol 149 GraphicUses:148Used by:152
Symbol 150 BitmapUsed by:151
Symbol 151 GraphicUses:150Used by:152
Symbol 152 MovieClip {Embedded.Assets_Sparks} [Sparks]Uses:145 147 149 151
Symbol 153 Sound {Embedded.Assets_UfoShotSound} [UfoShotSound]
Symbol 154 BitmapUsed by:156 158 183 184 185 186
Symbol 155 BitmapUsed by:156 161 183 184 185 186
Symbol 156 GraphicUses:70 68 154 155Used by:162
Symbol 157 BitmapUsed by:158 160 183 184 185 186
Symbol 158 GraphicUses:72 70 157 154Used by:162
Symbol 159 BitmapUsed by:160 161 183 184 185 186
Symbol 160 GraphicUses:74 72 159 157Used by:162
Symbol 161 GraphicUses:68 159 155 74Used by:162
Symbol 162 MovieClip {Embedded.Assets_RedTrace} [RedTrace]Uses:156 158 160 161
Symbol 163 Sound {Embedded.Assets_PowerupSound} [PowerupSound]
Symbol 164 Sound {Embedded.Assets_BonusSound} [BonusSound]
Symbol 165 BitmapUsed by:166
Symbol 166 GraphicUses:165Used by:167
Symbol 167 MovieClip {Embedded.Assets_PelletCircle} [PelletCircle]Uses:166
Symbol 168 Sound {Embedded.Assets_ExplosionSound1} [Explosion1]
Symbol 169 Sound {Embedded.Assets_ExplosionSound2} [Explosion2]
Symbol 170 Sound {Embedded.Assets_ExplosionSound3} [Explosion3]
Symbol 171 Sound {Embedded.Assets_UfoEngineSound} [UfoEngineSound]
Symbol 172 BitmapUsed by:173
Symbol 173 GraphicUses:172Used by:174
Symbol 174 MovieClip {Embedded.Assets_RedBaron} [Red]Uses:173
Symbol 175 Sound {Embedded.Assets_LifeBonusSound} [LifeBonusSound]
Symbol 176 BitmapUsed by:177
Symbol 177 GraphicUses:176Used by:182
Symbol 178 BitmapUsed by:179
Symbol 179 GraphicUses:178Used by:182
Symbol 180 BitmapUsed by:181
Symbol 181 GraphicUses:180Used by:182
Symbol 182 MovieClip {Embedded.Assets_EnemySprite} [EnemySprite]Uses:177 179 181
Symbol 183 GraphicUses:74 72 70 68 159 157 154 155Used by:187
Symbol 184 GraphicUses:74 72 70 68 159 157 154 155Used by:187
Symbol 185 GraphicUses:74 72 70 68 159 157 154 155Used by:187
Symbol 186 GraphicUses:74 72 70 68 159 157 154 155Used by:187
Symbol 187 MovieClip {Embedded.Assets_BossTrace} [BossTrace]Uses:183 184 185 186
Symbol 188 BitmapUsed by:189
Symbol 189 GraphicUses:188Used by:194
Symbol 190 BitmapUsed by:191
Symbol 191 GraphicUses:190Used by:194
Symbol 192 BitmapUsed by:193
Symbol 193 GraphicUses:192Used by:194
Symbol 194 MovieClip {Embedded.Assets_UFO} [UfoSaucer]Uses:189 191 193
Symbol 195 BitmapUsed by:196
Symbol 196 GraphicUses:195Used by:197
Symbol 197 MovieClip {Embedded.Assets_UFORay} [XRay]Uses:196
Symbol 198 BitmapUsed by:199
Symbol 199 GraphicUses:198Used by:204
Symbol 200 BitmapUsed by:201
Symbol 201 GraphicUses:200Used by:204
Symbol 202 BitmapUsed by:203
Symbol 203 GraphicUses:202Used by:204
Symbol 204 MovieClip {Embedded.Assets_BonusLive} [BonusLive]Uses:199 201 203
Symbol 205 BitmapUsed by:206 207 208 209 210 211 212 213
Symbol 206 GraphicUses:72 74 205Used by:214
Symbol 207 GraphicUses:72 74 205Used by:214
Symbol 208 GraphicUses:70 72 205Used by:214
Symbol 209 GraphicUses:70 72 205Used by:214
Symbol 210 GraphicUses:68 70 205Used by:214
Symbol 211 GraphicUses:68 70 205Used by:214
Symbol 212 GraphicUses:74 68 205Used by:214
Symbol 213 GraphicUses:74 68 205Used by:214
Symbol 214 MovieClip {Embedded.Assets_BoatTrace} [BoatTrace]Uses:206 207 208 209 210 211 212 213
Symbol 215 BitmapUsed by:216
Symbol 216 GraphicUses:215Used by:221
Symbol 217 BitmapUsed by:218
Symbol 218 GraphicUses:217Used by:221
Symbol 219 BitmapUsed by:220
Symbol 220 GraphicUses:219Used by:221
Symbol 221 MovieClip {Embedded.Assets_BonusAmmoX2} [BonusAmmoX2]Uses:216 218 220
Symbol 222 Sound {Embedded.Assets_EngineSound} [EngineSound]
Symbol 223 Sound {Embedded.Assets_MissileShotSound} [MissileShotSound]
Symbol 224 BitmapUsed by:225
Symbol 225 GraphicUses:224Used by:226
Symbol 226 MovieClip {Embedded.Assets_TheBoss} [TheBoss]Uses:225
Symbol 227 BitmapUsed by:228
Symbol 228 GraphicUses:227Used by:251
Symbol 229 BitmapUsed by:230
Symbol 230 GraphicUses:229Used by:251
Symbol 231 BitmapUsed by:232
Symbol 232 GraphicUses:231Used by:251
Symbol 233 BitmapUsed by:234
Symbol 234 GraphicUses:233Used by:251
Symbol 235 BitmapUsed by:236
Symbol 236 GraphicUses:235Used by:251
Symbol 237 BitmapUsed by:238
Symbol 238 GraphicUses:237Used by:251
Symbol 239 BitmapUsed by:240
Symbol 240 GraphicUses:239Used by:251
Symbol 241 BitmapUsed by:242
Symbol 242 GraphicUses:241Used by:251
Symbol 243 BitmapUsed by:244
Symbol 244 GraphicUses:243Used by:251
Symbol 245 BitmapUsed by:246
Symbol 246 GraphicUses:245Used by:251
Symbol 247 BitmapUsed by:248
Symbol 248 GraphicUses:247Used by:251
Symbol 249 BitmapUsed by:250
Symbol 250 GraphicUses:249Used by:251
Symbol 251 MovieClip {Embedded.Assets_SmallerExp} [SmallerExp]Uses:228 230 232 234 236 238 240 242 244 246 248 250
Symbol 252 GraphicUses:135 68Used by:256
Symbol 253 GraphicUses:137 70Used by:256
Symbol 254 GraphicUses:139 72Used by:256
Symbol 255 GraphicUses:141 74Used by:256
Symbol 256 MovieClip {Embedded.Assets_EnemyPropAndTrace} [EnemyPropAndTrace]Uses:252 253 254 255
Symbol 257 GraphicUsed by:258
Symbol 258 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuSeparator_299398696} [MenuSeparator]Uses:257
Symbol 259 GraphicUsed by:260
Symbol 260 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_1133569498} [MenuRadioDisabled]Uses:259
Symbol 261 GraphicUsed by:262
Symbol 262 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_31160729} [MenuCheckDisabled]Uses:261
Symbol 263 GraphicUsed by:264
Symbol 264 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_1544114694} [MenuCheckEnabled]Uses:263
Symbol 265 GraphicUsed by:266
Symbol 266 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_569931289} [MenuRadioEnabled]Uses:265
Symbol 267 GraphicUsed by:268
Symbol 268 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1207402911} [MenuBranchDisabled]Uses:267
Symbol 269 GraphicUsed by:270
Symbol 270 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_850797042} [MenuBranchEnabled]Uses:269
Symbol 271 Bitmap {Embedded.Assets_rock02}
Symbol 272 Bitmap {Embedded.Assets_rock01}
Symbol 273 Bitmap {Embedded.Assets_tile_check}
Symbol 274 Bitmap {Embedded.Assets_roadSign03}
Symbol 275 Bitmap {Embedded.Assets_cistern02}
Symbol 276 Bitmap {Embedded.Assets_cistern03}
Symbol 277 Bitmap {Embedded.Assets_roadSign02}
Symbol 278 Bitmap {Embedded.Assets_roadSign01}
Symbol 279 Bitmap {Embedded.Assets_cistern01}
Symbol 280 Bitmap {Embedded.Assets_rock03}
Symbol 281 Bitmap {Embedded.Assets_tree_fir}
Symbol 282 Bitmap {Embedded.Assets_cover}
Symbol 283 Bitmap {Embedded.Assets_tree_birch}
Symbol 284 Bitmap {Embedded.Assets_tile_sea_to_sand}
Symbol 285 Bitmap {Embedded.Assets_tile_sea_to_stone}
Symbol 286 Bitmap {Embedded.Assets_tile_sea}
Symbol 287 Bitmap {Embedded.Assets_roadJunctionLower}
Symbol 288 Bitmap {Embedded.Assets_imageLife}
Symbol 289 Bitmap {Embedded.Assets_tree_aspen}
Symbol 290 Bitmap {Embedded.Assets_tree_poplar}
Symbol 291 Bitmap {Embedded.Assets_tile_stone_to_sea}
Symbol 292 Bitmap {Embedded.Assets_tree_maple}
Symbol 293 Bitmap {Embedded.Assets_tile_earth_to_sea}
Symbol 294 Bitmap {Embedded.Assets_tile_sand}
Symbol 295 Bitmap {Embedded.Assets_roadJunction}
Symbol 296 Bitmap {Embedded.Assets_MenuBitmap}
Symbol 297 Bitmap {Embedded.Assets_tree_elm}
Symbol 298 Bitmap {Embedded.Assets_tree_oak}
Symbol 299 Bitmap {Embedded.Assets_tile_sand_to_grass}
Symbol 300 Bitmap {Embedded.Assets_imageRockets}
Symbol 301 Bitmap {Embedded.Assets_tank03}
Symbol 302 Bitmap {Embedded.Assets_tile_grass}
Symbol 303 Bitmap {Embedded.Assets_tank01}
Symbol 304 Bitmap {Embedded.Assets_tile_earth}
Symbol 305 Bitmap {Embedded.Assets_tree_palm}
Symbol 306 Bitmap {Embedded.Assets_craterDecal}
Symbol 307 Bitmap {Embedded.Assets_road01}
Symbol 308 Bitmap {Embedded.Assets_road02}
Symbol 309 Bitmap {Embedded.Assets_house04}
Symbol 310 Bitmap {Embedded.Assets_house05}
Symbol 311 Bitmap {Embedded.Assets_house02}
Symbol 312 Bitmap {Embedded.Assets_house03}
Symbol 313 Bitmap {Embedded.Assets_tile_stone}
Symbol 314 Bitmap {Embedded.Assets_house01}
Symbol 315 Bitmap {Embedded.Assets_tile_sea_to_earth}
Symbol 316 Bitmap {Embedded.Assets_tree_palm1}
Symbol 317 Bitmap {Embedded.Assets_tile_grass_to_sand}
Symbol 318 Bitmap {Embedded.Assets_tile_sand_to_sea}
Symbol 319 Bitmap {Embedded.Assets_hangar02}
Symbol 320 Bitmap {Embedded.Assets_hangar01}

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1457 bytes "<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns ..."
ScriptLimits (65)Timeline Frame 1MaxRecursionDepth: 1000, ScriptTimeout: 60 seconds
ExportAssets (56)Timeline Frame 1Symbol 1 as "preloaderBG"
ExportAssets (56)Timeline Frame 1Symbol 2 as "stumpyLogoAd"
ExportAssets (56)Timeline Frame 1Symbol 3 as "preloader"
ExportAssets (56)Timeline Frame 1Symbol 10 as "RedBalloon"
ExportAssets (56)Timeline Frame 1Symbol 17 as "BonusPower"
ExportAssets (56)Timeline Frame 1Symbol 20 as "Barrel"
ExportAssets (56)Timeline Frame 1Symbol 21 as "HitSound"
ExportAssets (56)Timeline Frame 1Symbol 30 as "Flak"
ExportAssets (56)Timeline Frame 1Symbol 37 as "BonusKill"
ExportAssets (56)Timeline Frame 1Symbol 40 as "CShot"
ExportAssets (56)Timeline Frame 1Symbol 43 as "BigRocket"
ExportAssets (56)Timeline Frame 1Symbol 44 as "Embedded.Assets_MusicMP3"
ExportAssets (56)Timeline Frame 1Symbol 51 as "Bonus"
ExportAssets (56)Timeline Frame 1Symbol 56 as "ArmoredUnit"
ExportAssets (56)Timeline Frame 1Symbol 63 as "ThePlane"
ExportAssets (56)Timeline Frame 1Symbol 64 as "ShotSound"
ExportAssets (56)Timeline Frame 1Symbol 67 as "Missile"
ExportAssets (56)Timeline Frame 1Symbol 76 as "TheBubbles"
ExportAssets (56)Timeline Frame 1Symbol 83 as "BonusRockets"
ExportAssets (56)Timeline Frame 1Symbol 86 as "TheBoat"
ExportAssets (56)Timeline Frame 1Symbol 109 as "Explo"
ExportAssets (56)Timeline Frame 1Symbol 116 as "Vint"
ExportAssets (56)Timeline Frame 1Symbol 122 as "RocketAndTrace"
ExportAssets (56)Timeline Frame 1Symbol 134 as "E2"
ExportAssets (56)Timeline Frame 1Symbol 143 as "WaspTrace"
ExportAssets (56)Timeline Frame 1Symbol 152 as "Sparks"
ExportAssets (56)Timeline Frame 1Symbol 153 as "UfoShotSound"
ExportAssets (56)Timeline Frame 1Symbol 162 as "RedTrace"
ExportAssets (56)Timeline Frame 1Symbol 163 as "PowerupSound"
ExportAssets (56)Timeline Frame 1Symbol 164 as "BonusSound"
ExportAssets (56)Timeline Frame 1Symbol 167 as "PelletCircle"
ExportAssets (56)Timeline Frame 1Symbol 168 as "Explosion1"
ExportAssets (56)Timeline Frame 1Symbol 169 as "Explosion2"
ExportAssets (56)Timeline Frame 1Symbol 170 as "Explosion3"
ExportAssets (56)Timeline Frame 1Symbol 171 as "UfoEngineSound"
ExportAssets (56)Timeline Frame 1Symbol 174 as "Red"
ExportAssets (56)Timeline Frame 1Symbol 175 as "LifeBonusSound"
ExportAssets (56)Timeline Frame 1Symbol 182 as "EnemySprite"
ExportAssets (56)Timeline Frame 1Symbol 187 as "BossTrace"
ExportAssets (56)Timeline Frame 1Symbol 194 as "UfoSaucer"
ExportAssets (56)Timeline Frame 1Symbol 197 as "XRay"
ExportAssets (56)Timeline Frame 1Symbol 204 as "BonusLive"
ExportAssets (56)Timeline Frame 1Symbol 214 as "BoatTrace"
ExportAssets (56)Timeline Frame 1Symbol 221 as "BonusAmmoX2"
ExportAssets (56)Timeline Frame 1Symbol 222 as "EngineSound"
ExportAssets (56)Timeline Frame 1Symbol 223 as "MissileShotSound"
ExportAssets (56)Timeline Frame 1Symbol 226 as "TheBoss"
ExportAssets (56)Timeline Frame 1Symbol 251 as "SmallerExp"
ExportAssets (56)Timeline Frame 1Symbol 256 as "EnemyPropAndTrace"
ExportAssets (56)Timeline Frame 1Symbol 258 as "MenuSeparator"
ExportAssets (56)Timeline Frame 1Symbol 260 as "MenuRadioDisabled"
ExportAssets (56)Timeline Frame 1Symbol 262 as "MenuCheckDisabled"
ExportAssets (56)Timeline Frame 1Symbol 264 as "MenuCheckEnabled"
ExportAssets (56)Timeline Frame 1Symbol 266 as "MenuRadioEnabled"
ExportAssets (56)Timeline Frame 1Symbol 268 as "MenuBranchDisabled"
ExportAssets (56)Timeline Frame 1Symbol 270 as "MenuBranchEnabled"
SerialNumber (41)Timeline Frame 1

Labels

"com_loader_Entertainer"Frame 1
"Skylark"Frame 2




http://swfchan.com/10/48293/info.shtml
Created: 30/4 -2019 06:11:46 Last modified: 30/4 -2019 06:11:46 Server time: 13/05 -2024 11:09:59