Section 1
//ButtonAsset (mx.core.ButtonAsset)
package mx.core {
public class ButtonAsset extends FlexSimpleButton implements IFlexAsset, IFlexDisplayObject {
private var _measuredHeight:Number;
private var _measuredWidth:Number;
mx_internal static const VERSION:String = "3.0.0.0";
public function ButtonAsset(){
_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;
}
}
}//package mx.core
Section 2
//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 3
//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 4
//FlexSimpleButton (mx.core.FlexSimpleButton)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexSimpleButton extends SimpleButton {
mx_internal static const VERSION:String = "3.0.0.0";
public function FlexSimpleButton(){
super();
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 5
//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 6
//IBorder (mx.core.IBorder)
package mx.core {
public interface IBorder {
function get borderMetrics():EdgeMetrics;
}
}//package mx.core
Section 7
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 8
//IFlexDisplayObject (mx.core.IFlexDisplayObject)
package mx.core {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
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 9
//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 10
//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 11
//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 12
//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 13
//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 14
//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 15
//CFunctions (OrbGames.Data.CFunctions)
package OrbGames.Data {
public class CFunctions {
private static var UId:int = 0;
public static function FSqr010(_arg1:Number):Number{
_arg1 = Math.min(Math.max(0, _arg1), 1);
_arg1 = ((2 * _arg1) - 1);
return ((1 - (_arg1 * _arg1)));
}
public static function FSqr01(_arg1:Number):Number{
_arg1 = Math.min(Math.max(0, _arg1), 1);
if (_arg1 < 0.5){
return (((2 * _arg1) * _arg1));
};
return ((1 - ((2 * (1 - _arg1)) * (1 - _arg1))));
}
public static function FExp01(_arg1:Number):Number{
return ((1 - (Math.cos((((5 * Math.PI) * _arg1) * _arg1)) * Math.exp((-3 * _arg1)))));
}
public static function GetUId():int{
return (UId++);
}
public static function FExp01_Once(_arg1:Number):Number{
return ((1 - (Math.cos((Math.PI * _arg1)) * Math.exp((-3 * _arg1)))));
}
}
}//package OrbGames.Data
Section 16
//CList (OrbGames.DataStruct.CList)
package OrbGames.DataStruct {
public class CList {
private var Head:CListItem;
private var Tail:CListItem;
public function CList(){
Head = null;
Tail = null;
}
public function Add(_arg1:Object):CListItem{
var _local2:CListItem = new CListItem();
_local2.Prev = Tail;
_local2.Next = null;
_local2.Item = _arg1;
if (Tail == null){
Head = _local2;
Tail = _local2;
} else {
Tail.Next = _local2;
Tail = _local2;
};
return (_local2);
}
public function AddListItem(_arg1:CListItem):void{
_arg1.Prev = Tail;
_arg1.Next = null;
if (Tail == null){
Head = _arg1;
Tail = _arg1;
} else {
Tail.Next = _arg1;
Tail = _arg1;
};
}
public function Remove(_arg1:Object):void{
var _local2:CListItem = Head;
while (_local2 != null) {
if (_local2.Item == _arg1){
RemoveListItem(_local2);
return;
};
_local2 = _local2.Next;
};
}
public function GetByIndex(_arg1:int):CListItem{
var _local2:CListItem = Head;
while (((_local2) && ((_arg1 >= 0)))) {
if (_arg1 == 0){
return (_local2);
};
_arg1--;
_local2 = _local2.Next;
};
return (null);
}
public function GetHead():CListItem{
return (Head);
}
public function RemoveListItem(_arg1:CListItem):void{
if (_arg1.Prev != null){
_arg1.Prev.Next = _arg1.Next;
} else {
Head = _arg1.Next;
};
if (_arg1.Next != null){
_arg1.Next.Prev = _arg1.Prev;
} else {
Tail = _arg1.Prev;
};
}
public function Reset():void{
Head = null;
Tail = null;
}
}
}//package OrbGames.DataStruct
Section 17
//CListItem (OrbGames.DataStruct.CListItem)
package OrbGames.DataStruct {
public class CListItem {
public var Prev:CListItem;
public var Item:Object;
public var Next:CListItem;
}
}//package OrbGames.DataStruct
Section 18
//CSound (OrbGames.Sound.CSound)
package OrbGames.Sound {
import flash.events.*;
import flash.media.*;
import flash.net.*;
public class CSound {
private var Loaded:Boolean;
private var Snd:Sound;
private var SoundManager:CSoundManager;
public function CSound(_arg1:CSoundManager){
SoundManager = _arg1;
}
public function InitPath(_arg1:String):void{
Snd = new Sound(new URLRequest(_arg1));
Snd.addEventListener(Event.COMPLETE, OnSoundLoaded, false, 0, true);
Loaded = false;
}
public function Play(_arg1:Number=0, _arg2:int=0, _arg3:SoundTransform=null, _arg4:Function=null, _arg5:Function=null):CSoundChannel{
if (((Snd) && (Loaded))){
return (new CSoundChannel(SoundManager, Snd.play(_arg1, _arg2, _arg3), _arg3, _arg4, _arg5));
};
return (null);
}
private function OnSoundLoaded(_arg1:Event):void{
Snd.removeEventListener(Event.COMPLETE, OnSoundLoaded);
Loaded = true;
}
public function InitSound(_arg1:Sound):void{
Snd = _arg1;
Loaded = true;
}
public static function CreateInitPath(_arg1:CSoundManager, _arg2:String):CSound{
var _local3:CSound;
_local3 = new CSound(_arg1);
_local3.InitPath(_arg2);
return (_local3);
}
public static function CreateInitSound(_arg1:CSoundManager, _arg2:Sound):CSound{
var _local3:CSound;
_local3 = new CSound(_arg1);
_local3.InitSound(_arg2);
return (_local3);
}
}
}//package OrbGames.Sound
Section 19
//CSoundChannel (OrbGames.Sound.CSoundChannel)
package OrbGames.Sound {
import flash.events.*;
import OrbGames.DataStruct.*;
import flash.media.*;
public class CSoundChannel {
private var SndTransform:SoundTransform;
private var StopFunc:Function;
private var SoundManagerItem:CListItem;
private var SndChannel:SoundChannel;
private var OnCompleteFunc:Function;
private var SoundManager:CSoundManager;
public function CSoundChannel(_arg1:CSoundManager, _arg2:SoundChannel, _arg3:SoundTransform, _arg4:Function, _arg5:Function){
SndChannel = _arg2;
SndTransform = _arg3;
OnCompleteFunc = _arg4;
SoundManager = _arg1;
StopFunc = _arg5;
if (SoundManager){
SoundManagerItem = SoundManager.Add(this);
};
if (OnCompleteFunc != null){
SndChannel.addEventListener(Event.SOUND_COMPLETE, OnComplete, false, 0, true);
};
}
public function Stop():Number{
if (OnCompleteFunc != null){
SndChannel.removeEventListener(Event.SOUND_COMPLETE, OnComplete);
};
if (SoundManager){
SoundManager.Remove(SoundManagerItem);
};
var _local1:Number = SndChannel.position;
if (StopFunc != null){
StopFunc(_local1);
};
SndChannel.stop();
return (_local1);
}
public function Update():void{
SndChannel.soundTransform = SndTransform;
}
private function OnComplete(_arg1:Event):void{
SndChannel.removeEventListener(Event.SOUND_COMPLETE, OnComplete);
if (SoundManager){
SoundManager.Remove(SoundManagerItem);
};
OnCompleteFunc();
}
}
}//package OrbGames.Sound
Section 20
//CSoundManager (OrbGames.Sound.CSoundManager)
package OrbGames.Sound {
import OrbGames.DataStruct.*;
public class CSoundManager {
private var Channels:CList;
public function CSoundManager(){
Channels = new CList();
super();
}
public function Add(_arg1:CSoundChannel):CListItem{
return (Channels.Add(_arg1));
}
public function Remove(_arg1:CListItem):void{
Channels.Remove(_arg1);
}
public function Update():void{
var _local2:CListItem;
var _local1:CListItem = Channels.GetHead();
while (_local1 != null) {
_local2 = _local1.Next;
(_local1.Item as CSoundChannel).Update();
_local1 = _local2;
};
}
public function Reset():void{
var _local2:CListItem;
var _local1:CListItem = Channels.GetHead();
while (_local1 != null) {
_local2 = _local1.Next;
(_local1.Item as CSoundChannel).Stop();
_local1 = _local2;
};
Channels.Reset();
}
}
}//package OrbGames.Sound
Section 21
//CModule (OrbGames.UI.CModule)
package OrbGames.UI {
import flash.display.*;
import OrbGames.DataStruct.*;
public class CModule extends Sprite {
public var ManagerItem:CListItem;
public var ModuleManager:CModuleManager;
public var PauseCounter:int;
public var PauseOther:Boolean;
public function Remove():void{
}
public function Add(_arg1:CModule, _arg2:Boolean):void{
ModuleManager.Add(_arg1, _arg2);
}
public function Update():void{
}
public function SendMessageExclude(_arg1:int, _arg2:Object):int{
return (ModuleManager.SendMessage(_arg1, _arg2, this));
}
public function Init():void{
}
public function ToTop():void{
ModuleManager.ToTop(this);
}
public function Pause(_arg1:Boolean):void{
}
public function RemoveSelf():void{
ModuleManager.Remove(this);
}
public function ProcessMessage(_arg1:int, _arg2:Object):int{
return (0);
}
public function UpdateInterpolated(_arg1:Number):void{
}
}
}//package OrbGames.UI
Section 22
//CModuleManager (OrbGames.UI.CModuleManager)
package OrbGames.UI {
import flash.display.*;
import OrbGames.DataStruct.*;
import flash.utils.*;
public class CModuleManager extends Sprite {
private var LastTime:Number;
private var Modules:CList;
private var UpdateTime:Number;
private var UpS:Number;
private var FirstUpdate:Boolean;// = true
private var NeedUpdate:Number;
public static var CurrentFPS:Number = 0;
public function CModuleManager(_arg1:Number){
Modules = new CList();
super();
UpS = _arg1;
UpdateTime = (1 / UpS);
}
public function Add(_arg1:CModule, _arg2:Boolean):void{
var _local3:CListItem;
if (_arg2){
_local3 = Modules.GetHead();
while (_local3 != null) {
_local3.Item.PauseCounter++;
if (_local3.Item.PauseCounter == 1){
_local3.Item.Pause(true);
};
_local3 = _local3.Next;
};
_arg1.PauseOther = true;
} else {
_arg1.PauseOther = false;
};
_arg1.ManagerItem = Modules.Add(_arg1);
_arg1.PauseCounter = 0;
_arg1.ModuleManager = this;
addChild(_arg1);
_arg1.Init();
}
public function Remove(_arg1:CModule):void{
var _local2:CListItem;
Modules.RemoveListItem(_arg1.ManagerItem);
_arg1.Remove();
removeChild(_arg1);
if (_arg1.PauseOther){
_local2 = Modules.GetHead();
while (_local2 != null) {
if (_local2.Item.PauseCounter > 0){
_local2.Item.PauseCounter--;
if (_local2.Item.PauseCounter == 0){
_local2.Item.Pause(false);
};
};
_local2 = _local2.Next;
};
};
}
public function Update():void{
var _local3:CListItem;
var _local5:Number;
var _local1:Number = (getTimer() / 1000);
var _local2:Number = (_local1 - LastTime);
if (((((FirstUpdate) || ((_local2 < 0)))) || ((_local2 > 1)))){
LastTime = _local1;
NeedUpdate = 0;
_local2 = (_local1 - LastTime);
};
if (_local2 > 0){
_local5 = (1 / _local2);
CurrentFPS = (((_local5 - CurrentFPS) * 0.03) + CurrentFPS);
};
NeedUpdate = (NeedUpdate + _local2);
while (NeedUpdate > 0) {
_local3 = Modules.GetHead();
while (_local3 != null) {
_local3.Item.Update();
_local3 = _local3.Next;
};
NeedUpdate = (NeedUpdate - UpdateTime);
};
var _local4:Number = (1 + (NeedUpdate / UpdateTime));
_local3 = Modules.GetHead();
while (_local3 != null) {
_local3.Item.UpdateInterpolated(_local4);
_local3 = _local3.Next;
};
LastTime = _local1;
FirstUpdate = false;
}
public function SendMessage(_arg1:int, _arg2:Object, _arg3:CModule):int{
var _local4:CListItem;
var _local5:int;
_local4 = Modules.GetHead();
while (_local4 != null) {
if (_arg3 != _local4.Item){
_local5 = (_local5 | _local4.Item.ProcessMessage(_arg1, _arg2));
};
_local4 = _local4.Next;
};
return (_local5);
}
public function ToTop(_arg1:CModule):void{
var _local2:int = getChildIndex(_arg1);
if (_local2 != -1){
removeChild(_arg1);
addChild(_arg1);
};
}
}
}//package OrbGames.UI
Section 23
//AGIntroLogo (src.AquaLanding.AGIntroLogo)
package src.AquaLanding {
import flash.events.*;
import flash.display.*;
import OrbGames.UI.*;
import OrbGames.Data.*;
import flash.net.*;
public class AGIntroLogo extends CModule {
private var Clicked:Boolean;// = false
private var CounterMax:int;
private var AGIntroLogoAni:MovieClip;
private var State:int;
private var Balls:MovieClip;
private var Counter:int;
private static const WAIT_MAX:int = Math.round((AquaLanding.UPS * 2));
private static const WAIT:int = CFunctions.GetUId();
private static const OUT:int = CFunctions.GetUId();
private static const PLAYING:int = CFunctions.GetUId();
private static var AGIntroLogoClass:Class = AGIntroLogo_AGIntroLogoClass;
private function OnEnterFrameBalls(_arg1:Event):void{
if (Balls.currentFrame == Balls.totalFrames){
AGIntroLogoAni.play();
};
}
override public function Update():void{
if (State == WAIT){
if (Counter == CounterMax){
State = OUT;
Add(new Fader(Fader.FADE_START), false);
};
Counter++;
};
}
override public function Remove():void{
AGIntroLogoAni.stop();
AGIntroLogoAni.removeEventListener(Event.ENTER_FRAME, OnEnterFrameAGIntroLogo);
if (!Clicked){
removeEventListener(MouseEvent.CLICK, OnClick);
};
removeChild(AGIntroLogoAni);
}
override public function Pause(_arg1:Boolean):void{
}
private function OnClick(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.addictinggames.com");
navigateToURL(_local2, "_blank");
removeEventListener(MouseEvent.CLICK, OnClick);
Clicked = true;
}
override public function UpdateInterpolated(_arg1:Number):void{
}
override public function Init():void{
AGIntroLogoAni = new AGIntroLogoClass();
AGIntroLogoAni.stop();
AGIntroLogoAni.x = 275;
AGIntroLogoAni.y = 200;
Balls = (AGIntroLogoAni.getChildByName("balls") as MovieClip);
Balls.addEventListener(Event.ENTER_FRAME, OnEnterFrameBalls, false, 0, true);
Balls.play();
addChild(AGIntroLogoAni);
AGIntroLogoAni.addEventListener(Event.ENTER_FRAME, OnEnterFrameAGIntroLogo, false, 0, true);
State = PLAYING;
}
private function OnEnterFrameAGIntroLogo(_arg1:Event):void{
if (State == PLAYING){
if (AGIntroLogoAni.currentFrame == AGIntroLogoAni.totalFrames){
AGIntroLogoAni.stop();
Counter = 0;
CounterMax = WAIT_MAX;
State = WAIT;
buttonMode = true;
addEventListener(MouseEvent.CLICK, OnClick, false, 0, true);
};
};
}
override public function ProcessMessage(_arg1:int, _arg2:Object):int{
switch (_arg1){
case Messages.DESTROY_ALL:
RemoveSelf();
return (1);
case Messages.FADER_MID:
if ((_arg2 as int) == Fader.FADE_START){
Add(new Game(), false);
Add(new StartScreen(0), false);
Add(new TastyPlay(), false);
RemoveSelf();
return (1);
};
break;
};
return (0);
}
}
}//package src.AquaLanding
Section 24
//AGIntroLogo_AGIntroLogoClass (src.AquaLanding.AGIntroLogo_AGIntroLogoClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class AGIntroLogo_AGIntroLogoClass extends MovieClipAsset {
public var balls:DisplayObject;
}
}//package src.AquaLanding
Section 25
//Fader (src.AquaLanding.Fader)
package src.AquaLanding {
import flash.display.*;
import OrbGames.UI.*;
import OrbGames.Data.*;
public class Fader extends CModule {
private var Val:int;
private var Counter:int;
private var CounterMax:int;
private var State:int;
private var Ani:Sprite;
private static const IN_MAX:int = Math.round((AquaLanding.UPS * 0.5));
private static const OUT_MAX:int = Math.round((AquaLanding.UPS * 0.5));
private static const IN:int = CFunctions.GetUId();
private static const OUT:int = CFunctions.GetUId();
public static const FADE_START:int = CFunctions.GetUId();
public function Fader(_arg1:int){
Val = _arg1;
}
override public function Remove():void{
removeChild(Ani);
}
override public function ProcessMessage(_arg1:int, _arg2:Object):int{
switch (_arg1){
case Messages.DESTROY_ALL:
RemoveSelf();
return (1);
};
return (0);
}
override public function Update():void{
var _local1:Number = (Counter / CounterMax);
if (State == IN){
Ani.alpha = (1 - _local1);
if (Counter == CounterMax){
RemoveSelf();
};
} else {
if (State == OUT){
Ani.alpha = _local1;
if (Counter == CounterMax){
Counter = -1;
CounterMax = IN_MAX;
State = IN;
SendMessageExclude(Messages.FADER_MID, Val);
ToTop();
};
};
};
if (Counter < CounterMax){
Counter++;
};
}
override public function UpdateInterpolated(_arg1:Number):void{
}
override public function Pause(_arg1:Boolean):void{
}
override public function Init():void{
State = OUT;
Counter = 0;
CounterMax = OUT_MAX;
Ani = new Sprite();
Ani.graphics.beginFill(0xFFFFFF);
Ani.graphics.drawRect(0, 0, 600, 600);
Ani.graphics.endFill();
mouseChildren = false;
mouseEnabled = false;
Ani.alpha = 0;
addChild(Ani);
}
}
}//package src.AquaLanding
Section 26
//Game (src.AquaLanding.Game)
package src.AquaLanding {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import OrbGames.UI.*;
import OrbGames.Sound.*;
import flash.text.*;
import flash.filters.*;
public class Game extends CModule {
private const BRAKING:Number = 0.01;
private const MAX_FORCE:Number = 1;
private const OTHER_FORCE_ACCELERATION:Number = 0.02;
private const LOS:uint = 1;
private const NONE:uint = 2;
private const MAX_ALTITUDE:Number = 1500;
private const MAX_SPEED:Number = 400;
private const OTHER_ACCELERATION:Number = 0.01;
private const FORCE_ACCELERATION:Number = 0.02;
private const ACCELERATION:Number = 0.01;
private const OTHER_MAX_FORCE:Number = 0.5;
private const MIN_ALTITUDE_INC:Number = 1;
private const UP:uint = 0;
private const DOWN:uint = 1;
private const OTHER_BRAKING:Number = 0.01;
private const MAX_ALTITUDE_INC:Number = 2.5;
private const WIN:uint = 0;
private const MAX_ANGLE:Number = 70;
private var Sky:Sprite;
private var Mask:MovieClip;
private var SplashMov:Array;
private var GameStarted:Boolean;// = false
private var SpeedX:Number;// = 0.7
private var LandingChannel:CSoundChannel;
private var AltitudeText:TextField;
private var AlreadyLanded:Boolean;// = false
private var Wing:MovieClip;
private var Sea:Sprite;
private var Plane:Sprite;
private var SmokeMov:Array;
private var MaskReflection:MovieClip;
private var PlaneReflection:Sprite;
private var OtherForceDuration:uint;
private var StopMoveX:Boolean;// = false
private var WinChannel:CSoundChannel;
private var SprayCounter:int;// = 0
private var OtherForceDir:uint;// = 1
private var LosChannel:CSoundChannel;
private var ForceDir:uint;// = 2
private var Altitude:Number;// = 1500
private var Force:Number;// = 0
private var GameResult:uint;// = 2
private var OtherForceCurrentDuration:int;// = -1
private var SoundDelay:int;// = 0
private var OtherForce:Number;// = 0
private var SprayDelay:int;// = 0
private var Clouds:MovieClip;
private static var CloudsClass:Class = Game_CloudsClass;
private static var SmokeClass:Class = Game_SmokeClass;
private static var SprayClass:Class = Game_SprayClass;
private static var MaskClass:Class = Game_MaskClass;
private static var SeaClass:Class = Game_SeaClass;
private static var PlaneReflectionClass:Class = Game_PlaneReflectionClass;
private static var SkyClass:Class = Game_SkyClass;
private static var PlaneClass:Class = Game_PlaneClass;
public function Game(){
SmokeMov = new Array();
SplashMov = new Array();
super();
}
private function OnSprayEnterFrame(_arg1:int):void{
if ((((SplashMov[_arg1].currentFrame == SplashMov[_arg1].totalFrames)) || ((Altitude > 400)))){
removeChild(SplashMov[_arg1]);
SplashMov.shift();
if (SplashMov.length == 0){
Wing.play();
StopMoveX = true;
};
SpeedX = (SpeedX / 1.2);
return;
};
var _local2:Number = (Math.abs(Plane.rotation) / MAX_ANGLE);
var _local3:Number = (72 * (1 - _local2));
SplashMov[_arg1].y = (205 + (Altitude * _local2));
if (SplashMov[_arg1].currentFrame == 1){
if (Plane.rotation <= 0){
SplashMov[_arg1].x = (275 - _local3);
} else {
if (Plane.rotation > 0){
SplashMov[_arg1].x = (275 + _local3);
};
};
} else {
SplashMov[_arg1].x = (SplashMov[_arg1].x + 3);
};
SplashMov[_arg1].nextFrame();
}
override public function UpdateInterpolated(_arg1:Number):void{
}
override public function Init():void{
stage.addEventListener(KeyboardEvent.KEY_DOWN, OnKeyDown, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_UP, OnKeyUp, false, 0, true);
Sky = new SkyClass();
Sky.x = 275;
Sky.y = 200;
addChild(Sky);
Sea = new SeaClass();
Sea.x = (275 - ((Sea.width / 2) - 275));
Sea.y = (187.8 + Altitude);
addChild(Sea);
PlaneReflection = new PlaneReflectionClass();
PlaneReflection.x = 275;
PlaneReflection.y = (306.6 + Altitude);
PlaneReflection.cacheAsBitmap = true;
addChild(PlaneReflection);
MaskReflection = new MaskClass();
MaskReflection.x = 275;
MaskReflection.y = PlaneReflection.y;
MaskReflection.rotation = 180;
addChild(MaskReflection);
PlaneReflection.mask = MaskReflection;
Plane = new PlaneClass();
Plane.x = 275;
Plane.y = 187.8;
addChild(Plane);
Wing = ((Plane.getChildByName("Litachok") as MovieClip).getChildByName("Wing") as MovieClip);
Wing.stop();
Wing.addEventListener(Event.ENTER_FRAME, OnWingEnterFrame, false, 0, true);
Mask = new MaskClass();
Mask.x = 275;
Mask.y = Plane.y;
addChild(Mask);
Plane.mask = Mask;
Clouds = new CloudsClass();
Clouds.x = 275;
Clouds.y = 200;
addChild(Clouds);
var _local1:TextFormat = new TextFormat("Arial", 17, 0xFF0000, true);
AltitudeText = new TextField();
AltitudeText.selectable = false;
AltitudeText.tabEnabled = false;
AltitudeText.visible = false;
AltitudeText.defaultTextFormat = _local1;
AltitudeText.autoSize = TextFieldAutoSize.LEFT;
AltitudeText.text = "";
AltitudeText.x = 240;
AltitudeText.y = 12;
addChild(AltitudeText);
}
private function CalculateForce(_arg1:Number, _arg2:uint, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Number{
if (_arg2 == UP){
if (_arg1 > 0){
_arg1 = (_arg1 - _arg5);
} else {
_arg1 = (_arg1 - _arg4);
};
if (_arg1 < -(_arg6)){
_arg1 = -(_arg6);
};
} else {
if (_arg2 == DOWN){
if (_arg1 < 0){
_arg1 = (_arg1 + _arg5);
} else {
_arg1 = (_arg1 + _arg4);
};
if (_arg1 > _arg6){
_arg1 = _arg6;
};
} else {
if (_arg2 == NONE){
if (_arg1 > 0){
_arg1 = (_arg1 - _arg3);
if (_arg1 < 0){
_arg1 = 0;
};
} else {
if (_arg1 < 0){
_arg1 = (_arg1 + _arg3);
if (_arg1 > 0){
_arg1 = 0;
};
};
};
};
};
};
return (_arg1);
}
private function SmokeOnEnterFrame(_arg1:int):void{
if (SmokeMov[_arg1].currentFrame == SmokeMov[_arg1].totalFrames){
removeChild(SmokeMov[_arg1]);
SmokeMov.shift();
return;
};
var _local2:Number = (Math.abs(Plane.rotation) / MAX_ANGLE);
SmokeMov[_arg1].y = (SmokeMov[_arg1].y - (7 * _local2));
SmokeMov[_arg1].x = (SmokeMov[_arg1].x + 5);
SmokeMov[_arg1].nextFrame();
}
private function OnKeyDown(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 37){
ForceDir = UP;
} else {
if (_arg1.keyCode == 39){
ForceDir = DOWN;
};
};
}
private function OnKeyUp(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == 37)) && ((ForceDir == UP)))){
ForceDir = NONE;
} else {
if ((((_arg1.keyCode == 39)) && ((ForceDir == DOWN)))){
ForceDir = NONE;
};
};
}
override public function Remove():void{
removeChild(Sea);
removeChild(Sky);
removeChild(PlaneReflection);
removeChild(MaskReflection);
removeChild(Plane);
removeChild(Mask);
removeChild(Clouds);
removeChild(AltitudeText);
}
override public function ProcessMessage(_arg1:int, _arg2:Object):int{
var _local3:int;
switch (_arg1){
case Messages.DESTROY_ALL:
RemoveSelf();
return (1);
case Messages.NEW_GAME:
_local3 = 0;
while (_local3 < SmokeMov.length) {
removeChild(SmokeMov[_local3]);
_local3++;
};
SmokeMov.length = 0;
_local3 = 0;
while (_local3 < SplashMov.length) {
removeChild(SplashMov[_local3]);
_local3++;
};
SplashMov.length = 0;
if (WinChannel){
WinChannel.Stop();
};
if (LosChannel){
LosChannel.Stop();
};
GameResult = NONE;
ForceDir = NONE;
Force = 0;
OtherForceDir = DOWN;
OtherForce = 0;
OtherForceCurrentDuration = -1;
Altitude = MAX_ALTITUDE;
SprayCounter = 0;
GameStarted = true;
AlreadyLanded = false;
Sea.x = (275 - ((Sea.width / 2) - 275));
Sea.y = (187.8 + Altitude);
Plane.x = 275;
Plane.y = 187.8;
Plane.rotation = 0;
Mask.x = 275;
Mask.y = Plane.y;
PlaneReflection.x = 275;
PlaneReflection.y = (306.6 + Altitude);
MaskReflection.x = 275;
MaskReflection.y = PlaneReflection.y;
Clouds.visible = true;
StopMoveX = false;
SpeedX = 0.7;
Wing.gotoAndStop(1);
stage.focus = this;
stage.focus = null;
AltitudeText.visible = true;
LandingChannel = Sounds.Landing.Play(0, 0, Sounds.LandingSounds);
Sounds.LandingSounds.volume = 1;
Sounds.SoundManager.Update();
return (1);
};
return (0);
}
private function OnWingEnterFrame(_arg1:Event):void{
if (Wing.currentFrame == Wing.totalFrames){
Wing.stop();
};
}
override public function Pause(_arg1:Boolean):void{
}
override public function Update():void{
var _local1:int;
var _local2:MovieClip;
var _local3:Point;
var _local4:Point;
var _local5:Number;
var _local6:MovieClip;
if (!GameStarted){
return;
};
if (!AlreadyLanded){
if (OtherForceCurrentDuration == -1){
OtherForceDir = Math.round(Math.random());
OtherForceDuration = (Math.round((Math.random() * 10)) + 20);
OtherForceCurrentDuration = 0;
};
if (OtherForceCurrentDuration >= 0){
OtherForceCurrentDuration++;
OtherForce = CalculateForce(OtherForce, OtherForceDir, OTHER_BRAKING, OTHER_ACCELERATION, OTHER_FORCE_ACCELERATION, OTHER_MAX_FORCE);
if (Plane.rotation > MAX_ANGLE){
OtherForceDir = UP;
} else {
if (Plane.rotation < -(MAX_ANGLE)){
OtherForceDir = DOWN;
};
};
if (OtherForceCurrentDuration == OtherForceDuration){
OtherForceCurrentDuration = -1;
};
};
if ((((Plane.rotation < MAX_ANGLE)) && ((Plane.rotation > -(MAX_ANGLE))))){
Force = CalculateForce(Force, ForceDir, BRAKING, ACCELERATION, FORCE_ACCELERATION, MAX_FORCE);
} else {
Force = (Force / 1.5);
};
Plane.rotation = (Plane.rotation + (Force + OtherForce));
if (Altitude > 0){
Altitude = (Altitude - (MIN_ALTITUDE_INC + ((MAX_ALTITUDE_INC - MIN_ALTITUDE_INC) * (Math.abs(Plane.rotation) / MAX_ANGLE))));
};
if (Altitude <= 0){
Altitude = 0;
AlreadyLanded = true;
};
PlaneReflection.y = (MaskReflection.y = (306.6 + Altitude));
if (Altitude < 106.6){
Mask.y = (200 - (106.6 - Altitude));
PlaneReflection.y = (PlaneReflection.y - (94.4 - Altitude));
};
PlaneReflection.rotation = -(Plane.rotation);
Clouds.rotation = -(Math.abs(Plane.rotation));
if (PlaneReflection.y < 600){
_local5 = ((600 - PlaneReflection.y) / (600 - 212));
PlaneReflection.scaleX = (PlaneReflection.scaleY = _local5);
_local5 = (5 + (40 * (1 - _local5)));
PlaneReflection.filters = [new BlurFilter(_local5, _local5, BitmapFilterQuality.HIGH)];
};
_local2 = new SmokeClass();
_local2.stop();
_local3 = new Point(Plane.getChildByName("Marker").x, Plane.getChildByName("Marker").y);
_local4 = Plane.localToGlobal(_local3);
_local2.x = (_local4.x + (Math.random() * 12));
_local2.y = (_local4.y + (Math.random() * 12));
addChild(_local2);
SmokeMov.push(_local2);
};
if (AlreadyLanded){
if (SoundDelay == 0){
Sounds.LandingSounds.volume = (Sounds.LandingSounds.volume - 0.1);
if (Sounds.LandingSounds.volume < 0){
Sounds.LandingSounds.volume = 0;
if (LandingChannel){
LandingChannel.Stop();
};
};
Sounds.SoundManager.Update();
SoundDelay = 5;
};
SoundDelay--;
if (GameResult == NONE){
AltitudeText.visible = false;
if (Math.abs(Plane.rotation) < 15){
WinChannel = Sounds.Win.Play(0, 0, Sounds.ResultSounds);
Add(new StartScreen(1), false);
GameResult = WIN;
} else {
LosChannel = Sounds.Los.Play(850, 0, Sounds.ResultSounds);
Add(new StartScreen(2), false);
GameResult = LOS;
};
};
if (GameResult == WIN){
if (Plane.rotation > 0){
Plane.rotation = (Plane.rotation - 0.5);
if (Plane.rotation < 0){
Plane.rotation = 0;
};
} else {
if (Plane.rotation < 0){
Plane.rotation = (Plane.rotation + 0.5);
if (Plane.rotation > 0){
Plane.rotation = 0;
};
};
};
} else {
if (GameResult == LOS){
Plane.y = (Plane.y + 0.1);
PlaneReflection.y = (PlaneReflection.y - 0.1);
};
};
PlaneReflection.rotation = -(Plane.rotation);
};
if (Altitude < (Plane.height / 2)){
if (SprayCounter <= 40){
if (SprayDelay == 0){
_local6 = new SprayClass();
_local6.stop();
_local6.scaleY = (Math.random() + 0.5);
addChild(_local6);
SplashMov.push(_local6);
SprayCounter++;
};
SprayDelay++;
if (SprayDelay >= 3){
SprayDelay = 0;
};
};
};
Clouds.alpha = ((Altitude / MAX_ALTITUDE) - 0.2);
_local1 = 0;
while (_local1 < SmokeMov.length) {
SmokeOnEnterFrame(_local1);
_local1++;
};
_local1 = 0;
while (_local1 < SplashMov.length) {
OnSprayEnterFrame(_local1);
_local1++;
};
if (Altitude < (MAX_ALTITUDE / 2)){
Sea.y = (187.8 + Altitude);
if ((((Sea.x < (275 + ((Sea.width / 2) - 275)))) && (!(StopMoveX)))){
Sea.x = (Sea.x + (SpeedX * (1 - (Altitude / (MAX_ALTITUDE / 2)))));
};
};
AltitudeText.text = ("ALT: " + Math.round(Altitude).toString());
}
}
}//package src.AquaLanding
Section 27
//Game_CloudsClass (src.AquaLanding.Game_CloudsClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class Game_CloudsClass extends MovieClipAsset {
public var balls:DisplayObject;
}
}//package src.AquaLanding
Section 28
//Game_MaskClass (src.AquaLanding.Game_MaskClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class Game_MaskClass extends MovieClipAsset {
public var Wing:DisplayObject;
public var Marker:DisplayObject;
public var Litachok:DisplayObject;
public var balls:DisplayObject;
}
}//package src.AquaLanding
Section 29
//Game_PlaneClass (src.AquaLanding.Game_PlaneClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class Game_PlaneClass extends SpriteAsset {
public var Wing:DisplayObject;
public var Marker:DisplayObject;
public var Litachok:DisplayObject;
public var balls:DisplayObject;
}
}//package src.AquaLanding
Section 30
//Game_PlaneReflectionClass (src.AquaLanding.Game_PlaneReflectionClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class Game_PlaneReflectionClass extends SpriteAsset {
public var Wing:DisplayObject;
public var Marker:DisplayObject;
public var Litachok:DisplayObject;
public var balls:DisplayObject;
}
}//package src.AquaLanding
Section 31
//Game_SeaClass (src.AquaLanding.Game_SeaClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class Game_SeaClass extends SpriteAsset {
public var balls:DisplayObject;
}
}//package src.AquaLanding
Section 32
//Game_SkyClass (src.AquaLanding.Game_SkyClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class Game_SkyClass extends SpriteAsset {
public var balls:DisplayObject;
}
}//package src.AquaLanding
Section 33
//Game_SmokeClass (src.AquaLanding.Game_SmokeClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class Game_SmokeClass extends MovieClipAsset {
public var balls:DisplayObject;
}
}//package src.AquaLanding
Section 34
//Game_SprayClass (src.AquaLanding.Game_SprayClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class Game_SprayClass extends MovieClipAsset {
public var Wing:DisplayObject;
public var Marker:DisplayObject;
public var Litachok:DisplayObject;
public var balls:DisplayObject;
}
}//package src.AquaLanding
Section 35
//Messages (src.AquaLanding.Messages)
package src.AquaLanding {
import OrbGames.Data.*;
public class Messages {
public static const TO_TOP:int = CFunctions.GetUId();
public static const NEW_GAME:int = CFunctions.GetUId();
public static const DESTROY_ALL:int = CFunctions.GetUId();
public static const FADER_MID:int = CFunctions.GetUId();
}
}//package src.AquaLanding
Section 36
//Preloader (src.AquaLanding.Preloader)
package src.AquaLanding {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
public class Preloader extends MovieClip {
private var ProgressBar:Array;
private var PreloaderAni:MovieClip;
private var temp:Number;// = 0
private var MaxCounter:int;
private var Counter:int;// = 0
private var LogoButton:SimpleButton;
private static var PreloaderClass:Class = Preloader_PreloaderClass;
public function Preloader(){
MaxCounter = Math.round((2 * AquaLanding.UPS));
super();
stage.frameRate = 50;
MochiBot.track(this, "badeb1a1");
PreloaderAni = new PreloaderClass();
PreloaderAni.cacheAsBitmap = true;
PreloaderAni.x = 275;
PreloaderAni.y = 200;
PreloaderAni.addEventListener(Event.ENTER_FRAME, PreloaderOnEnterFrame, false, 0, true);
addChild(PreloaderAni);
}
private function ProgressOnEnterFrame(_arg1:Event):void{
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_arg1.currentTarget.stop();
};
}
private function OnLogoButton(_arg1:Event):void{
var _local2:URLRequest;
if (LogoButton.enabled){
LogoButton.enabled = false;
_local2 = new URLRequest("http://www.tastyplay.com");
navigateToURL(_local2, "_blank");
};
}
public function Update(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:Class;
if (Math.random() > 0.75){
temp = (temp + (Math.random() * 10));
};
if (loaderInfo.bytesLoaded < loaderInfo.bytesTotal){
_local3 = (Math.round(((loaderInfo.bytesLoaded / loaderInfo.bytesTotal) * ProgressBar.length)) as int);
if (_local3 > ProgressBar.length){
_local3 = ProgressBar.length;
};
_local2 = 0;
while (_local2 < _local3) {
if (ProgressBar[_local2].currentFrame == 1){
ProgressBar[_local2].play();
};
_local2++;
};
} else {
if (Counter == 0){
_local2 = 0;
while (_local2 < ProgressBar.length) {
if (ProgressBar[_local2].currentFrame == 1){
ProgressBar[_local2].play();
};
_local2++;
};
} else {
if (Counter > MaxCounter){
LogoButton.removeEventListener(MouseEvent.CLICK, OnLogoButton);
_local2 = 0;
while (_local2 < ProgressBar.length) {
ProgressBar[_local2].removeEventListener(Event.ENTER_FRAME, ProgressOnEnterFrame);
_local2++;
};
PreloaderAni.removeEventListener(Event.ENTER_FRAME, PreloaderOnEnterFrame);
removeEventListener(Event.ENTER_FRAME, Update);
removeChild(PreloaderAni);
nextFrame();
_local4 = (getDefinitionByName("AquaLanding") as Class);
if (_local4){
addChild(new (_local4));
};
};
};
Counter++;
};
}
private function PreloaderOnEnterFrame(_arg1:Event):void{
var _local2:MovieClip;
var _local3:int;
if (_arg1.currentTarget.currentFrame == 76){
addEventListener(Event.ENTER_FRAME, Update, false, 0, true);
_local2 = _arg1.currentTarget.Progress_In.Progress_In;
ProgressBar = [_local2.getChildByName("P1"), _local2.getChildByName("P2"), _local2.getChildByName("P3"), _local2.getChildByName("P4"), _local2.getChildByName("P5"), _local2.getChildByName("P6"), _local2.getChildByName("P7"), _local2.getChildByName("P8"), _local2.getChildByName("P9"), _local2.getChildByName("P10")];
_local3 = 0;
while (_local3 < ProgressBar.length) {
ProgressBar[_local3].gotoAndStop(1);
ProgressBar[_local3].addEventListener(Event.ENTER_FRAME, ProgressOnEnterFrame, false, 0, true);
_local3++;
};
} else {
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_arg1.currentTarget.stop();
LogoButton = PreloaderAni.LogoButton;
LogoButton.addEventListener(MouseEvent.CLICK, OnLogoButton, false, 0, true);
};
};
}
}
}//package src.AquaLanding
Section 37
//Preloader_PreloaderClass (src.AquaLanding.Preloader_PreloaderClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class Preloader_PreloaderClass extends MovieClipAsset {
public var Litachok:DisplayObject;
public var Button:DisplayObject;
public var balls:DisplayObject;
public var Marker:DisplayObject;
public var LogoButton:DisplayObject;
public var P1:DisplayObject;
public var P2:DisplayObject;
public var P3:DisplayObject;
public var P4:DisplayObject;
public var P6:DisplayObject;
public var P7:DisplayObject;
public var P8:DisplayObject;
public var P9:DisplayObject;
public var Wing:DisplayObject;
public var P5:DisplayObject;
public var P10:DisplayObject;
public var Progress_In:DisplayObject;
}
}//package src.AquaLanding
Section 38
//Sounds (src.AquaLanding.Sounds)
package src.AquaLanding {
import OrbGames.Sound.*;
import flash.media.*;
public class Sounds {
public static var ResultSounds:SoundTransform;
public static var Landing:CSound;
private static var LosClass:Class = Sounds_LosClass;
public static var Win:CSound;
public static var Inited:Boolean = Init();
private static var LandingClass:Class = Sounds_LandingClass;
public static var Los:CSound;
public static var LandingSounds:SoundTransform;
private static var WinClass:Class = Sounds_WinClass;
public static var SoundManager:CSoundManager;
private static function Init():Boolean{
LandingSounds = new SoundTransform();
ResultSounds = new SoundTransform();
SoundManager = new CSoundManager();
Landing = CSound.CreateInitSound(SoundManager, new LandingClass());
Win = CSound.CreateInitSound(SoundManager, new WinClass());
Los = CSound.CreateInitSound(SoundManager, new LosClass());
return (true);
}
}
}//package src.AquaLanding
Section 39
//Sounds_LandingClass (src.AquaLanding.Sounds_LandingClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class Sounds_LandingClass extends SoundAsset {
public var Wing:DisplayObject;
public var Button:DisplayObject;
public var Marker:DisplayObject;
public var Litachok:DisplayObject;
public var balls:DisplayObject;
}
}//package src.AquaLanding
Section 40
//Sounds_LosClass (src.AquaLanding.Sounds_LosClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class Sounds_LosClass extends SoundAsset {
public var Wing:DisplayObject;
public var Button:DisplayObject;
public var Marker:DisplayObject;
public var Litachok:DisplayObject;
public var balls:DisplayObject;
}
}//package src.AquaLanding
Section 41
//Sounds_WinClass (src.AquaLanding.Sounds_WinClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class Sounds_WinClass extends SoundAsset {
public var Wing:DisplayObject;
public var Button:DisplayObject;
public var Marker:DisplayObject;
public var Litachok:DisplayObject;
public var balls:DisplayObject;
}
}//package src.AquaLanding
Section 42
//StartScreen (src.AquaLanding.StartScreen)
package src.AquaLanding {
import flash.events.*;
import flash.display.*;
import OrbGames.UI.*;
public class StartScreen extends CModule {
private var ScreenSprite:Sprite;
private var Button:SimpleButton;
private static var WinScreenClass:Class = StartScreen_WinScreenClass;
private static var StartScreenClass:Class = StartScreen_StartScreenClass;
private static var LooseScreenClass:Class = StartScreen_LooseScreenClass;
public function StartScreen(_arg1:uint){
if (_arg1 == 0){
ScreenSprite = new StartScreenClass();
} else {
if (_arg1 == 1){
ScreenSprite = new WinScreenClass();
} else {
if (_arg1 == 2){
ScreenSprite = new LooseScreenClass();
};
};
};
}
override public function Init():void{
addChild(ScreenSprite);
Button = (ScreenSprite.getChildByName("Button") as SimpleButton);
Button.addEventListener(MouseEvent.CLICK, OnClick, false, 0, true);
}
override public function Pause(_arg1:Boolean):void{
}
private function OnClick(_arg1:MouseEvent):void{
if (Button.enabled){
Button.enabled = false;
SendMessageExclude(Messages.NEW_GAME, null);
RemoveSelf();
};
}
override public function Update():void{
}
override public function UpdateInterpolated(_arg1:Number):void{
}
override public function Remove():void{
Button.removeEventListener(MouseEvent.CLICK, OnClick);
removeChild(ScreenSprite);
}
override public function ProcessMessage(_arg1:int, _arg2:Object):int{
switch (_arg1){
case Messages.TO_TOP:
ToTop();
return (1);
case Messages.DESTROY_ALL:
RemoveSelf();
return (1);
};
return (0);
}
}
}//package src.AquaLanding
Section 43
//StartScreen_LooseScreenClass (src.AquaLanding.StartScreen_LooseScreenClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class StartScreen_LooseScreenClass extends SpriteAsset {
public var Wing:DisplayObject;
public var Button:DisplayObject;
public var Marker:DisplayObject;
public var Litachok:DisplayObject;
public var balls:DisplayObject;
}
}//package src.AquaLanding
Section 44
//StartScreen_StartScreenClass (src.AquaLanding.StartScreen_StartScreenClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class StartScreen_StartScreenClass extends SpriteAsset {
public var Wing:DisplayObject;
public var Button:DisplayObject;
public var Marker:DisplayObject;
public var Litachok:DisplayObject;
public var balls:DisplayObject;
}
}//package src.AquaLanding
Section 45
//StartScreen_WinScreenClass (src.AquaLanding.StartScreen_WinScreenClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class StartScreen_WinScreenClass extends SpriteAsset {
public var Wing:DisplayObject;
public var Button:DisplayObject;
public var Marker:DisplayObject;
public var Litachok:DisplayObject;
public var balls:DisplayObject;
}
}//package src.AquaLanding
Section 46
//TastyPlay (src.AquaLanding.TastyPlay)
package src.AquaLanding {
import flash.events.*;
import flash.display.*;
import OrbGames.UI.*;
import flash.net.*;
public class TastyPlay extends CModule {
private var B2:SimpleButton;
private var B1:SimpleButton;
private static var TastyPlayClass:Class = TastyPlay_TastyPlayClass;
private static var AGClass:Class = TastyPlay_AGClass;
override public function Remove():void{
B1.removeEventListener(MouseEvent.CLICK, OnB1);
removeChild(B1);
B2.removeEventListener(MouseEvent.CLICK, OnB2);
removeChild(B2);
}
override public function Update():void{
}
override public function UpdateInterpolated(_arg1:Number):void{
}
private function OnB1(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.tastyplay.com");
navigateToURL(_local2, "_blank");
}
private function OnB2(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.addictinggames.com");
navigateToURL(_local2, "_blank");
}
override public function Init():void{
B1 = new TastyPlayClass();
B1.x = 87.5;
B1.y = 20;
addChild(B1);
B1.addEventListener(MouseEvent.CLICK, OnB1, false, 0, true);
B2 = new AGClass();
B2.x = 467.5;
B2.y = 23;
addChild(B2);
B2.addEventListener(MouseEvent.CLICK, OnB2, false, 0, true);
}
override public function ProcessMessage(_arg1:int, _arg2:Object):int{
switch (_arg1){
case Messages.TO_TOP:
ToTop();
return (1);
case Messages.DESTROY_ALL:
RemoveSelf();
return (1);
};
return (0);
}
override public function Pause(_arg1:Boolean):void{
}
}
}//package src.AquaLanding
Section 47
//TastyPlay_AGClass (src.AquaLanding.TastyPlay_AGClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class TastyPlay_AGClass extends ButtonAsset {
public var Wing:DisplayObject;
public var Marker:DisplayObject;
public var Litachok:DisplayObject;
public var balls:DisplayObject;
}
}//package src.AquaLanding
Section 48
//TastyPlay_TastyPlayClass (src.AquaLanding.TastyPlay_TastyPlayClass)
package src.AquaLanding {
import flash.display.*;
import mx.core.*;
public class TastyPlay_TastyPlayClass extends ButtonAsset {
public var Wing:DisplayObject;
public var Marker:DisplayObject;
public var Litachok:DisplayObject;
public var balls:DisplayObject;
}
}//package src.AquaLanding
Section 49
//AquaLanding (AquaLanding)
package {
import flash.events.*;
import flash.display.*;
import OrbGames.UI.*;
import src.AquaLanding.*;
public class AquaLanding extends Sprite {
private var ModuleManager:CModuleManager;
public static const UPS:int = 50;
public function AquaLanding(){
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
}
private function Update(_arg1:Event):void{
ModuleManager.Update();
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
stage.frameRate = 50;
addEventListener(Event.ENTER_FRAME, Update, false, 0, true);
ModuleManager = new CModuleManager(UPS);
addChild(ModuleManager);
ModuleManager.Add(new AGIntroLogo(), false);
}
}
}//package
Section 50
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
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