Section 1
//EC (com.fox.EC)
package com.fox {
import flash.events.*;
public class EC {
public static const UNCLUSTERED:String = "UNCLUSTERED";
private static var g:LEC;
public static var rem:Function = remove;
public function EC():void{
throw ("do not insantiate the EC");
}
public static function add(_arg1:Object, _arg2:String, _arg3:Function, _arg4=false, _arg5:int=0, _arg6:Boolean=false, _arg7:String="UNCLUSTERED"):Boolean{
return (global.add((_arg1 as IEventDispatcher), _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private static function get global():LEC{
if (!g){
g = LEC.getGlobal();
};
return (g);
}
public static function log(_arg1="clusters"):void{
global.log(_arg1);
}
public static function remove(_arg1, _arg2:String=null, _arg3:Function=null, _arg4:Boolean=false):Array{
return (global.remove(_arg1, _arg2, _arg3, _arg4));
}
public static function plug(_arg1:Class):void{
LEC.plug(_arg1);
}
public static function addGroup(_arg1:Array):void{
global.addGroup(_arg1);
}
}
}//package com.fox
Section 2
//fox (com.fox.fox)
package com.fox {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.utils.*;
import fl.motion.*;
import com.game.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
public class fox {
public var box:Sprite;
public static var globalvar:Object = [];
public static function formatnumber(_arg1:int):String{
var _local2:String;
var _local3:*;
var _local4:Array;
var _local5:Number;
var _local6:Number;
if (!_arg1){
return ("0");
};
_arg1 = (Math.round((_arg1 * 100)) / 100);
_local2 = String(_arg1);
_local3 = _local2.split(".");
_local4 = new Array();
_local6 = _local3[0].length;
while (_local6 > 0) {
_local5 = Math.max((_local6 - 3), 0);
_local4.unshift(_local3[0].slice(_local5, _local6));
_local6 = _local5;
};
_local3[0] = _local4.join(",");
return (_local3.join("."));
}
public static function randomSort(_arg1:Object, _arg2:Object):int{
return ((Math.round((Math.random() * 2)) - 1));
}
public static function tint(_arg1:MovieClip, _arg2:Number, _arg3:Number){
var _local4:Color;
_local4 = new Color();
_local4.setTint(_arg2, _arg3);
_arg1.transform.colorTransform = _local4;
}
public static function removechildren(_arg1:MovieClip):void{
while (_arg1.numChildren > 0) {
_arg1.removeChildAt(0);
};
}
public static function deg(_arg1:Number):Number{
return ((_arg1 * (180 / Math.PI)));
}
public static function between(_arg1:Number, _arg2:Number, _arg3:Number){
return ((((_arg1 > _arg2)) && ((_arg1 < _arg3))));
}
public static function loadXMLimages(_arg1:String):void{
var b:*;
var XMLloaded:Function;
var filename = _arg1;
XMLloaded = function (_arg1:Event):void{
var _local2:*;
var _local3:int;
_local2 = new XML(_arg1.target.data);
_local3 = 0;
while (_local3 < _local2.*.length()) {
loadimage(("pics/" + _local2.pic[_local3]));
_local3++;
};
};
b = new URLLoader();
b.load(new URLRequest(filename));
b.addEventListener(Event.COMPLETE, XMLloaded);
}
public static function popskor(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:*;
_local4 = new popscore(_arg1, _arg2, _arg3);
globalvar.stat.addChild(_local4);
}
public static function localpos(_arg1:MovieClip, _arg2:MovieClip):Point{
return (_arg2.globalToLocal(_arg1.localToGlobal(new Point())));
}
public static function currency(_arg1:Number, _arg2:Number=2, _arg3:String="$"):String{
var _local4:Boolean;
var _local5:String;
var _local6:Array;
var _local7:String;
var _local8:String;
var _local9:String;
var _local10:int;
var _local11:String;
var _local12:int;
var _local13:String;
var _local14:int;
_local4 = (_arg1 < 0);
_arg1 = abs(_arg1);
_local5 = String(_arg1.toFixed(_arg2));
_local6 = _local5.split(".");
_local7 = _local6[0];
_local8 = _local6[1];
_local9 = "";
_local10 = 0;
for (;_local10 < _local7.length;(_local9 = (_local7.substr((-(_local10) - 1), 1) + _local9)), _local10++) {
if ((((_local10 > 0)) && (((_local10 % 3) == 0)))){
_local9 = ("," + _local9);
continue;
};
};
_local11 = String(_local8);
_local12 = (_arg2 - _local11.length);
if (_local11.length < _arg2){
_local14 = 0;
while (_local14 < _local12) {
_local11 = (_local11 + "0");
_local14++;
};
};
_local13 = "";
if (_local4){
_local13 = (("-" + _arg3) + _local9);
} else {
_local13 = (_arg3 + _local9);
};
if ((_arg2 > 0)){
_local13 = (_local13 + ("." + _local11));
//unresolved jump
};
return (_local13);
}
public static function limit360(_arg1:Number):Number{
return ((((_arg1 % 360) + 360) % 360));
}
public static function inityfloat(_arg1:MovieClip, _arg2:Number, _arg3:Number):void{
var _local4:*;
var _local5:int;
_arg1.frange = ((_arg2) || (1.5));
_arg1.fspeed = ((_arg3) || (0.15));
_arg1.fstarty = _arg1.y;
_arg1.fys = _arg1.frange;
_local4 = (1 + random(30));
_local5 = 0;
while (_local5 < _local4) {
yfloating(_arg1);
_local5++;
};
}
public static function rad(_arg1:Number):Number{
return ((_arg1 * (Math.PI / 180)));
}
public static function massStop(_arg1:DisplayObjectContainer, _arg2:Object=1):void{
var _local3:int;
var _local4:int;
var _local5:DisplayObjectContainer;
if ((_arg1 is MovieClip)){
MovieClip(_arg1).gotoAndStop(_arg2);
//unresolved jump
};
_local3 = _arg1.numChildren;
_local4 = 0;
for (;_local4 < _local3;_local4++) {
_local5 = (_arg1.getChildAt(_local4) as DisplayObjectContainer);
if (_local5){
massStop(_local5, _arg2);
continue;
};
};
}
public static function jiggle(_arg1:MovieClip):void{
_arg1.jdx = ((_arg1.jdx * _arg1.jdvstep) + ((_arg1.jska - _arg1.scaleX) * _arg1.jdv));
_arg1.scaleX = Math.max(0.1, (_arg1.scaleX + _arg1.jdx));
_arg1.scaleY = _arg1.scaleX;
}
public static function framescreen(_arg1:int=0):void{
var _local2:*;
var _local3:*;
_local2 = MovieClip(globalvar.r);
_local3 = new Sprite();
_local3.graphics.beginFill(0xFFFFFF);
_local3.graphics.drawRect(-1000, -1000, (globalvar.screenwid + 2000), (globalvar.screenhei + 2000));
_local3.graphics.drawRect(0, 0, globalvar.screenwid, globalvar.screenhei);
_local3.graphics.endFill();
_local3.x = (_local3.y = 0);
_local3.cacheAsBitmap = true;
if (_arg1){
_local3.alpha = 0.5;
//unresolved jump
};
_local2.addChild(_local3);
}
public static function removeallchildren(_arg1:DisplayObjectContainer):void{
var _local2:int;
_local2 = _arg1.numChildren;
while (_local2--) {
_arg1.removeChildAt(_local2);
};
}
public static function getrandom(_arg1:String){
var _local2:*;
_local2 = globalvar;
if (!_local2.randomlisting){
_local2.randomlisting = [];
//unresolved jump
};
if (!fox.contain(_local2.randomlisting, _arg1)){
_local2.randomlisting.push(_arg1);
//unresolved jump
};
if (!_local2[(_arg1 + "getrandom")]){
_local2[(_arg1 + "getrandom")] = [];
//unresolved jump
};
if (!_local2[(_arg1 + "getrandom")].length){
_local2[(_arg1 + "getrandom")] = [];
_local2[(_arg1 + "getrandom")] = clone(_local2[_arg1]);
randomize(_local2[(_arg1 + "getrandom")]);
if ((((_local2[(_arg1 + "getrandom")].length > 1)) && ((_local2[(_arg1 + "lastpop")] == _local2[(_arg1 + "getrandom")][(_local2[(_arg1 + "getrandom")].length - 1)])))){
_local2[(_arg1 + "getrandom")].pop();
//unresolved jump
};
};
_local2[(_arg1 + "lastpop")] = _local2[(_arg1 + "getrandom")].pop();
return (_local2[(_arg1 + "lastpop")]);
}
public static function savecookie(_arg1:String, _arg2, _arg3:String){
var _local4:SharedObject;
_local4 = SharedObject.getLocal(_arg3, "/");
_local4.data[_arg1] = _arg2;
_local4.flush();
}
public static function initjiggle(_arg1:MovieClip, _arg2:Number, _arg3:Number):void{
_arg1.scaleX = ((_arg2) || (2));
_arg1.scaleY = _arg1.scaleX;
_arg1.jska = ((_arg3) || (1));
_arg1.jdx = 0;
_arg1.jdv = 0.8;
_arg1.jdvstep = 0.6;
}
public static function cekhit(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer):Boolean{
var _local4:*;
var _local5:Rectangle;
var _local6:Rectangle;
var _local7:Rectangle;
_local4 = false;
_local5 = _arg1.getBounds(_arg3);
_local6 = _arg2.getBounds(_arg3);
_local7 = _local5.intersection(_local6);
if ((_local7.width > 0)){
_local4 = true;
//unresolved jump
};
return (_local4);
}
public static function getbitmapdata(_arg1:String):BitmapData{
var obj:BitmapData;
var cls:Class;
var className = _arg1;
cls = getclass(className);
try {
obj = new cls(0, 0);
} catch(err:Error) {
};
return (obj);
}
public static function sortdep(_arg1:Array):void{
var _local2:*;
var _local3:int;
_arg1.sortOn("dep", Array.NUMERIC);
_local2 = _arg1[0].parent;
_local3 = _arg1.length;
while (_local3--) {
if (_local2.getChildIndex(_arg1[_local3]) != _local3){
_local2.setChildIndex(_arg1[_local3], _local3);
continue;
};
};
}
public static function loadimage(_arg1:String){
var a:*;
var b:*;
var c:*;
var imgloaded:Function;
var path = _arg1;
imgloaded = function (_arg1:Event):void{
c = Bitmap(b.content);
globalvar.XMLimages.push(c);
};
a = new URLRequest(path);
b = new Loader();
b.contentLoaderInfo.addEventListener(Event.COMPLETE, imgloaded);
b.load(a);
c = new Bitmap();
}
public static function randomize(_arg1):void{
_arg1.sort(randomSort);
}
public static function limit(_arg1:Number, _arg2:Number, _arg3:Number){
return (Math.min(_arg3, Math.max(_arg2, _arg1)));
}
public static function random(_arg1:Number):Number{
return (Math.floor((Math.random() * (_arg1 + 1))));
}
public static function snapshot(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=0, _arg4:int=0, _arg5:int=100, _arg6:int=100, _arg7:Number=1, _arg8:Number=0, _arg9:Number=0, _arg10:Boolean=true, _arg11:int=0xFFFFFF){
var _local12:Matrix;
var _local13:*;
var _local14:Bitmap;
_local12 = new Matrix();
_local12.translate(-(_arg3), -(_arg4));
_local12.scale(_arg7, _arg7);
_local13 = new BitmapData(_arg5, _arg6, _arg10, _arg11);
_local13.draw(_arg1, _local12, null, null, new Rectangle(0, 0, _arg5, _arg6), true);
if (((_arg8 + _arg9) > 0)){
_local13.applyFilter(_local13, new Rectangle(0, 0, _arg5, _arg6), new Point(0, 0), new BlurFilter(_arg8, _arg9, 2));
//unresolved jump
};
_local14 = new Bitmap(_local13);
_local14.smoothing = true;
_arg2.addChild(_local14);
}
public static function loadcookie(_arg1:String, _arg2:String){
var _local3:SharedObject;
_local3 = SharedObject.getLocal(_arg2, "/");
if (_local3.data[_arg1] != null){
return (_local3.data[_arg1]);
};
return (false);
}
public static function analyze(_arg1, _arg2:String=""):void{
var item:Object;
var write:Function;
var _obj = _arg1;
var lastItem = _arg2;
write = function (_arg1):void{
};
switch (typeof(_obj)){
case "array":
for (item in _obj) {
analyze(item, item.toString());
};
break;
case "xml":
write("<xml>");
write(_obj);
write("</xml>");
break;
case "object":
for (item in _obj) {
analyze(_obj[item], item.toString());
};
break;
default:
write((((((lastItem + ":") + _obj) + " (") + typeof(_obj)) + ")"));
lastItem = "";
break;
};
}
public static function cekclass(_arg1:String):Boolean{
return (ApplicationDomain.currentDomain.hasDefinition(_arg1));
}
public static function isMultipleOf(_arg1:Number, _arg2:Number){
return (!((_arg1 % _arg2)));
}
public static function resetrandom():void{
var _local1:*;
var _local2:int;
_local1 = globalvar;
if (_local1.randomlisting){
_local2 = 0;
while (_local2 < _local1.randomlisting.length) {
_local1[(_local1.randomlisting[_local2] + "getrandom")] = null;
_local1[(_local1.randomlisting[_local2] + "lastpop")] = null;
_local2++;
};
};
}
public static function contain(_arg1:Array, _arg2):Boolean{
return ((_arg1.indexOf(_arg2) >= 0));
}
public static function tintflash(_arg1:MovieClip, _arg2:Number=10, _arg3:Number=0xFF0000, _arg4:int=7, _arg5:Number=1){
var t:*;
var glo:GlowFilter;
var loop:Function;
var mc = _arg1;
var delay = _arg2;
var colr = _arg3;
var thickness = _arg4;
var strength = _arg5;
if (!mc.adatint){
loop = function ():void{
t.d--;
t.a--;
if (!t.a){
t.a = 2;
t.b = !(t.b);
if (t.b){
mc.transform.colorTransform = t.c1;
} else {
mc.transform.colorTransform = t.c2;
};
} else {
t.c = new Color();
mc.transform.colorTransform = t.c;
};
if (!t.d){
t.c = new Color();
mc.transform.colorTransform = t.c;
mc.filters = null;
EC.remove(t);
mc.removeChild(t);
mc.adatint = 0;
//unresolved jump
};
};
mc.adatint = 1;
t = new MovieClip();
mc.addChild(t);
t.d = delay;
t.c1 = new Color();
t.c1.setTint(colr, strength);
t.c2 = new Color();
t.c2.setTint(0xFFFFFF, strength);
t.a = (t.b = 1);
glo = new GlowFilter();
glo.color = colr;
glo.blurX = (glo.blurY = thickness);
glo.quality = 1;
glo.strength = 6;
mc.filters = [glo];
EC.add(t, Event.ENTER_FRAME, loop);
};
}
public static function duplicateDisplayObject(_arg1:DisplayObject, _arg2:Boolean=false):DisplayObject{
var _local3:Class;
var _local4:DisplayObject;
var _local5:Rectangle;
_local3 = Object(_arg1).constructor;
_local4 = (new (_local3) as DisplayObject);
_local4.transform = _arg1.transform;
_local4.filters = _arg1.filters;
_local4.cacheAsBitmap = _arg1.cacheAsBitmap;
_local4.opaqueBackground = _arg1.opaqueBackground;
if (_arg1.scale9Grid){
_local5 = _arg1.scale9Grid;
if (Capabilities.version.split(" ")[1] == "9,0,16,0"){
_local5.x = (_local5.x / 20);
_local5.y = (_local5.y / 20);
_local5.width = (_local5.width / 20);
_local5.height = (_local5.height / 20);
};
_local4.scale9Grid = _local5;
};
if (((_arg2) && (_arg1.parent))){
_arg1.parent.addChild(_local4);
//unresolved jump
};
return (_local4);
}
public static function massPlay(_arg1:DisplayObjectContainer):void{
var _local2:int;
var _local3:int;
var _local4:DisplayObjectContainer;
if ((_arg1 is MovieClip)){
MovieClip(_arg1).play();
//unresolved jump
};
_local2 = _arg1.numChildren;
_local3 = 0;
for (;_local3 < _local2;_local3++) {
_local4 = (_arg1.getChildAt(_local3) as DisplayObjectContainer);
if (_local4){
massPlay(_local4);
continue;
};
};
}
public static function blink(_arg1:MovieClip, _arg2:Number=20){
var t:*;
var loop:Function;
var mc = _arg1;
var delay = _arg2;
if (!mc.adablink){
loop = function ():void{
mc.visible = !(mc.visible);
t.d--;
if (!t.d){
EC.remove(t);
mc.removeChild(t);
mc.visible = true;
mc.adablink = 0;
//unresolved jump
};
};
mc.adablink = 1;
t = new MovieClip();
mc.addChild(t);
t.d = delay;
EC.add(t, Event.ENTER_FRAME, loop);
};
}
public static function clone(_arg1:Object){
var _local2:ByteArray;
_local2 = new ByteArray();
_local2.writeObject(_arg1);
_local2.position = 0;
return (_local2.readObject());
}
public static function getclass(_arg1:String):Class{
return ((getDefinitionByName(_arg1) as Class));
}
public static function isEven(_arg1:Number):Boolean{
return (((_arg1 & 1) == 0));
}
public static function sortdepth(_arg1:Array, _arg2:String):void{
var _local3:int;
_arg1.sortOn(_arg2, Array.NUMERIC);
_local3 = 0;
while (_local3 < _arg1.length) {
_arg1[_local3].parent.addChild(_arg1[_local3]);
_local3++;
};
}
public static function fadescreen(_arg1:Number=0.08):void{
var r:*;
var box:*;
var loop:Function;
var speed = _arg1;
loop = function (_arg1:Event):void{
box.alpha = (box.alpha - speed);
if ((box.alpha <= 0)){
EC.remove(box);
r.removeChild(box);
box = null;
//unresolved jump
};
};
r = MovieClip(globalvar.r);
box = new Sprite();
box.graphics.beginFill(0xFFFFFF);
box.graphics.drawRect(0, 0, globalvar.screenwid, globalvar.screenhei);
box.graphics.endFill();
box.x = (box.y = 0);
box.cacheAsBitmap = true;
EC.add(box, Event.ENTER_FRAME, loop);
r.addChild(box);
}
public static function removevalue(_arg1, _arg2:Array):void{
var _local3:int;
_local3 = 0;
for (;_local3 < _arg2.length;_local3++) {
if ((_arg2[_local3] == _arg1)){
_arg2 = _arg2.splice(_local3, 1);
continue;
};
};
}
public static function shakescreen(_arg1:int=8, _arg2:int=10):void{
var r:*;
var t:*;
var loop:Function;
var xrange = _arg1;
var delay = _arg2;
loop = function ():void{
t.flip = !(t.flip);
if (t.flip){
r.x = t.dx;
} else {
r.x = -(t.dx);
};
if (isEven(t.d)){
t.dx = Math.max(2, (t.dx - 1));
//unresolved jump
};
r.y = (-(Math.floor((t.dx / 2))) + fox.random(t.dx));
t.d--;
if (!t.d){
EC.remove(t);
r.x = (r.y = 0);
r.removeChild(t);
//unresolved jump
};
};
r = MovieClip(globalvar.r);
t = new MovieClip();
EC.add(t, Event.ENTER_FRAME, loop);
t.d = delay;
t.flip = true;
t.dx = xrange;
r.addChild(t);
}
public static function resetcolor(_arg1:MovieClip){
_arg1.transform.colorTransform = new ColorTransform();
}
public static function abs(_arg1:Number):Number{
return (((_arg1 ^ (_arg1 >> 31)) - (_arg1 >> 31)));
}
public static function initxfloat(_arg1:MovieClip, _arg2:Number, _arg3:Number):void{
var _local4:*;
var _local5:int;
_arg1.frange = ((_arg2) || (1.5));
_arg1.fspeed = ((_arg3) || (0.15));
_arg1.fstartx = _arg1.x;
_arg1.fxs = _arg1.frange;
_local4 = (1 + random(30));
_local5 = 0;
while (_local5 < _local4) {
xfloating(_arg1);
_local5++;
};
}
public static function xfloating(_arg1:MovieClip):void{
_arg1.x = (_arg1.x + _arg1.fxs);
if ((_arg1.y > _arg1.fstartx)){
_arg1.fxs = Math.max((_arg1.fxs - _arg1.fspeed), -(_arg1.frange));
} else {
_arg1.fxs = Math.min((_arg1.fxs + _arg1.fspeed), _arg1.frange);
};
}
public static function yfloating(_arg1:MovieClip):void{
_arg1.y = (_arg1.y + _arg1.fys);
if ((_arg1.y > _arg1.fstarty)){
_arg1.fys = Math.max((_arg1.fys - _arg1.fspeed), -(_arg1.frange));
} else {
_arg1.fys = Math.min((_arg1.fys + _arg1.fspeed), _arg1.frange);
};
}
}
}//package com.fox
Section 3
//keycontrol (com.fox.keycontrol)
package com.fox {
import flash.display.*;
import flash.events.*;
public class keycontrol {
private var numpadkeys;
private var otherkeys:Array;
private var functionkeys;
private var mc:DisplayObject;
private var letterkeys;
public var g;
private var key1;
private var key2;
private var key4;
private var key5;
private var key6;
private var key3;
private var numberkeys;
public function keycontrol(_arg1:DisplayObject){
g = fox.globalvar;
key6 = int;
super();
mc = _arg1;
g.key = {at:false, ba:false, ki:false, ka:false, f1:false, f2:false};
g.keypressed = "";
key1 = 38;
key2 = 40;
key3 = 37;
key4 = 39;
key5 = 32;
key6 = 67;
letterkeys = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
numberkeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
numpadkeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "+", "Enter", "-", ".", "/"];
functionkeys = ["F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12"];
otherkeys = ["Space", "Page Up", "Page Down", "End", "Home", "Left", "Up", "Right", "Down"];
mc.addEventListener(KeyboardEvent.KEY_DOWN, keydown, false, 0, true);
mc.addEventListener(KeyboardEvent.KEY_UP, keyup, false, 0, true);
}
private function keyup(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case key1:
g.key.at = false;
break;
case key2:
g.key.ba = false;
break;
case key3:
g.key.ki = false;
break;
case key4:
g.key.ka = false;
break;
case key5:
g.key.f1 = false;
break;
case key6:
g.key.f2 = false;
break;
};
}
private function keydown(_arg1:KeyboardEvent):void{
var _local2:int;
var _local3:String;
_local2 = _arg1.keyCode;
if ((_local2 == key1)){
g.key.at = true;
//unresolved jump
};
if ((_local2 == key2)){
g.key.ba = true;
//unresolved jump
};
if ((_local2 == key3)){
g.key.ki = true;
//unresolved jump
};
if ((_local2 == key4)){
g.key.ka = true;
//unresolved jump
};
if ((_local2 == key5)){
g.key.f1 = true;
//unresolved jump
};
if ((_local2 == key6)){
g.key.f2 = true;
//unresolved jump
};
if ((((_local2 >= 65)) && ((_local2 <= 90)))){
_local3 = letterkeys[(_local2 - 65)];
//unresolved jump
};
if ((((_local2 >= 48)) && ((_local2 <= 57)))){
_local3 = numberkeys[(_local2 - 48)];
//unresolved jump
};
if ((((_local2 >= 96)) && ((_local2 <= 111)))){
_local3 = numpadkeys[(_local2 - 96)];
//unresolved jump
};
if (_local3){
g.keypressed = (g.keypressed + _local3);
if (g.keypressed.substr((g.keypressed.length - 3), 3) == "NNN"){
};
if ((g.keypressed.length > 100)){
g.keypressed = "";
//unresolved jump
};
};
}
}
}//package com.fox
Section 4
//LEC (com.fox.LEC)
package com.fox {
import flash.events.*;
import flash.utils.*;
public class LEC {
private var _c:Object;
private var _d:Dictionary;
public var rem:Function;
public static const UNCLUSTERED:String = "UNCLUSTERED";
private static var _p:Object;
private static var global:LEC;
public function LEC(){
rem = remove;
super();
}
public function add(_arg1:IEventDispatcher, _arg2:String, _arg3:Function, _arg4=false, _arg5:int=0, _arg6:Boolean=false, _arg7:String="UNCLUSTERED"):Boolean{
var _local8:Object;
if ((_arg4 is String)){
_arg7 = _arg4;
_arg4 = false;
};
_local8 = getORef(_arg1)[_arg4];
if (!isEventSet(_local8, _arg2, _arg3)){
getORef(_arg1).count++;
_local8[_arg2][_arg3] = {p:_arg5, w:_arg6, c:_arg7};
_arg1.addEventListener(_arg2, _arg3, _arg4, _arg5, _arg6);
if (Boolean(_arg7)){
addToCluster(_arg1, _arg2, _arg3, _arg4, _arg7);
};
return (true);
};
return (false);
}
private function getPlug(_arg1:String):Object{
var id = _arg1;
try {
return (_p[id]);
} catch(err) {
};
return (null);
}
private function getORef(_arg1:IEventDispatcher):Object{
var _local2:Dictionary;
_local2 = getDict();
if (!_local2[_arg1]){
_local2[_arg1] = {};
_local2[_arg1][true] = {};
_local2[_arg1][false] = {};
_local2[_arg1].count = 0;
};
return (_local2[_arg1]);
}
public function remove(_arg1, _arg2:String=null, _arg3:Function=null, _arg4:Boolean=false):Array{
var _local5:Array;
var _local6:IEventDispatcher;
_local5 = [];
if ((_arg1 is IEventDispatcher)){
_local6 = (_arg1 as IEventDispatcher);
if (_arg2){
_local5.push(removeEvent(_local6, _arg2, _arg3, _arg4));
} else {
_local5 = _local5.concat(removeObjEvents(_local6));
};
} else {
_local5 = _local5.concat(removeClusterEvents(_arg1));
};
return (_local5);
}
public function removeObjEvents(_arg1:IEventDispatcher):Array{
var _local2:Array;
var _local3:Object;
var _local4:String;
var _local5:*;
_local2 = [];
_local3 = getORef(_arg1)[false];
for (_local4 in _local3) {
for (_local5 in _local3[_local4]) {
_local2.push(removeEvent(_arg1, _local4, _local5, false));
};
};
_local3 = getORef(_arg1)[true];
for (_local4 in _local3) {
for (_local5 in _local3[_local4]) {
_local2.push(removeEvent(_arg1, _local4, _local5, true));
};
};
uncluster(_arg1);
delete getDict()[_arg1];
return (_local2);
}
private function addToCluster(_arg1:IEventDispatcher, _arg2:String, _arg3:Function, _arg4:Boolean, _arg5:String):void{
var _local6:Object;
_local6 = getClusters();
if (!Boolean(_local6[_arg5])){
_local6[_arg5] = [];
};
_local6[_arg5].push({obj:_arg1, type:_arg2, listener:_arg3, useCapture:_arg4});
}
private function removeIfEmpty(_arg1:IEventDispatcher):void{
var _local2:Dictionary;
var _local3:String;
_local2 = getDict();
if (_local2[_arg1]){
for each (_local3 in _local2[_arg1][false]) {
return;
};
for each (_local3 in _local2[_arg1][true]) {
return;
};
_local2[_arg1] = null;
delete _local2[_arg1];
};
}
private function uncluster(_arg1:IEventDispatcher):void{
var _local2:Object;
var _local3:Object;
var _local4:Array;
var _local5:String;
var _local6:int;
_local2 = getClusters();
_local3 = {};
for (_local5 in _local2) {
_local4 = [];
_local6 = 0;
while (_local6 < _local2[_local5].length) {
if (_local2[_local5][_local6].obj != _arg1){
_local4.push(_local2[_local5][_local6]);
};
_local6++;
};
if (_local4.length){
_local3[_local5] = _local4.concat();
};
};
_c = _local3;
}
public function removeClusterEvents(_arg1):Array{
var _local2:Array;
var _local3:Object;
var _local4:String;
var _local5:Object;
_local2 = [];
_local3 = getClusters();
if ((_arg1 is RegExp)){
for (_local4 in _local3) {
if (_local4.match(_arg1) != null){
_local2.splice(0, 0, removeClusterEvents(_local4));
};
};
} else {
for each (_local5 in _local3[_arg1]) {
_local2.push(removeEvent(_local5.obj, _local5.type, _local5.listener, _local5.useCapture));
};
delete _local3[_arg1];
};
return (_local2);
}
private function isEventSet(_arg1:Object, _arg2:String, _arg3:Function):Boolean{
if (_arg1[_arg2]){
return (Boolean(_arg1[_arg2][_arg3]));
};
_arg1[_arg2] = new Dictionary();
return (false);
}
private function getClusters():Object{
if (!Boolean(_c)){
_c = {};
};
return (_c);
}
private function getDict():Dictionary{
if (!Boolean(_d)){
_d = new Dictionary();
};
return (_d);
}
public function log(_arg1="clusters"):void{
var _local2:Object;
var _local3:Object;
var _local4:Object;
var _local5:String;
_local2 = getPlug("log");
if (!_local2){
return;
};
_local3 = getClusters();
_local4 = {};
if ((_arg1 is RegExp)){
for (_local5 in _local3) {
if (_local5.match(_arg1) != null){
_local4[_local5] = _local3[_local5];
};
};
} else {
if ((_arg1 is IEventDispatcher)){
_local2._oLog(_arg1, getORef(_arg1));
return;
};
};
if (_local3[_arg1]){
_local4[_arg1] = _local3[_arg1];
} else {
_local4 = _local3;
};
_local2._log(getDict(), _local4, _arg1);
}
public function removeEvent(_arg1:IEventDispatcher, _arg2:String, _arg3:Function, _arg4:Boolean=false):Object{
var _local5:Object;
var _local6:Object;
var _local7:Boolean;
_local6 = getORef(_arg1)[_arg4];
_local7 = isEventSet(_local6, _arg2, _arg3);
if (_local7){
getORef(_arg1).count--;
_local5 = {obj:_arg1, type:_arg2, listener:_arg3, useCapture:_arg4, p:_local6[_arg2][_arg3].p, w:_local6[_arg2][_arg3].w, c:_local6[_arg2][_arg3].c};
delete _local6[_arg2][_arg3];
_arg1.removeEventListener(_arg2, _arg3, _arg4);
if (!getORef(_arg1).count){
removeObjEvents(_arg1);
};
};
return (_local5);
}
public function addGroup(_arg1:Array):void{
var _local2:Object;
for each (_local2 in _arg1) {
add(_local2.obj, _local2.type, _local2.listener, _local2.useCapture, _local2.p, _local2.useWeakRefrence, _local2.clusterID);
};
}
public static function getGlobal():LEC{
if (!global){
global = new (LEC);
};
return (global);
}
public static function plug(_arg1:Class):void{
var _local2:Object;
if (!_p){
_p = {};
};
_local2 = new (_arg1);
_p[_local2.TYPE] = _local2;
}
}
}//package com.fox
Section 5
//preloader (com.fox.preloader)
package com.fox {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class preloader extends MovieClip {
private var loaded;
private var targetloadinfo:LoaderInfo;
public var a:MovieClip;
public var txt:TextField;
private var xs;
private var convert:Number;// = 0
private var accel;
public function preloader(){
convert = 0;
super();
xs = 0;
accel = 0.8;
convert = 0.5;
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(_arg1:Event):void{
stop();
targetloadinfo = stage.loaderInfo;
a.b.scaleX = 0.001;
removeEventListener(Event.ADDED_TO_STAGE, init);
addEventListener(Event.ENTER_FRAME, loadprogress);
}
private function loadprogress(_arg1:Event):void{
loaded = (targetloadinfo.bytesLoaded / targetloadinfo.bytesTotal);
if (txt){
txt.text = (int((loaded * 100)) + "%");
//unresolved jump
};
xs = ((xs * accel) + ((loaded - a.b.scaleX) * convert));
a.b.scaleX = Math.min(1, Math.max(0.001, (a.b.scaleX + xs)));
if (loaded == 1){
removeEventListener(Event.ENTER_FRAME, loadprogress);
dispatchEvent(new Event(Event.COMPLETE));
};
}
}
}//package com.fox
Section 6
//randomstartframe (com.fox.randomstartframe)
package com.fox {
import flash.display.*;
public class randomstartframe extends MovieClip {
public function randomstartframe():void{
this.gotoAndPlay((1 + fox.random((this.totalFrames - 1))));
}
}
}//package com.fox
Section 7
//SoundManager (com.fox.SoundManager)
package com.fox {
import flash.media.*;
import flash.utils.*;
import com.greensock.*;
import com.greensock.plugins.*;
import flash.net.*;
public class SoundManager {
private var _soundsDict:Dictionary;
private var _sounds:Array;
public var g;
private static var _instance:SoundManager;
private static var _allowInstance:Boolean;
public function SoundManager(){
g = fox.globalvar;
super();
this._soundsDict = new Dictionary(true);
this._sounds = new Array();
if (!SoundManager._allowInstance){
throw (new Error("Error: Use SoundManager.getInstance() instead of the new keyword."));
};
}
public function fadeSound(_arg1:String, _arg2:Number=0, _arg3:Number=1):void{
var _local4:SoundChannel;
_local4 = this._soundsDict[_arg1].channel;
TweenLite.to(_local4, _arg3, {volume:_arg2});
}
public function get sounds():Array{
return (this._sounds);
}
public function getSoundDuration(_arg1:String):Number{
return (this._soundsDict[_arg1].sound.length);
}
public function setSoundVolume(_arg1:String, _arg2:Number):void{
var _local3:Object;
var _local4:SoundTransform;
_local3 = this._soundsDict[_arg1];
_local4 = _local3.channel.soundTransform;
_local4.volume = _arg2;
_local3.channel.soundTransform = _local4;
}
public function getSoundVolume(_arg1:String):Number{
return (this._soundsDict[_arg1].channel.soundTransform.volume);
}
public function addLibrarySound(_arg1, _arg2:String):Boolean{
var _local3:int;
var _local4:Object;
var _local5:Sound;
_local3 = 0;
while (_local3 < this._sounds.length) {
if (this._sounds[_local3].name == _arg2){
return (false);
};
_local3++;
};
_local4 = new Object();
_local5 = new (_arg1);
_local4.name = _arg2;
_local4.sound = _local5;
_local4.channel = new SoundChannel();
_local4.position = 0;
_local4.paused = true;
_local4.volume = 1;
_local4.startTime = 0;
_local4.loops = 0;
_local4.pausedByAll = false;
this._soundsDict[_arg2] = _local4;
this._sounds.push(_local4);
return (true);
}
public function toString():String{
return (getQualifiedClassName(this));
}
public function isSoundPaused(_arg1:String):Boolean{
return (this._soundsDict[_arg1].paused);
}
public function stopall():void{
var _local1:int;
var _local2:String;
_local1 = 0;
for (;_local1 < this._sounds.length;_local1++) {
_local2 = this._sounds[_local1].name;
if (_local2 != "zloop"){
this.stopSound(_local2);
continue;
};
};
}
public function removeAllSounds():void{
var _local1:int;
_local1 = 0;
while (_local1 < this._sounds.length) {
this._sounds[_local1] = null;
_local1++;
};
this._sounds = new Array();
this._soundsDict = new Dictionary(true);
}
public function getSoundPosition(_arg1:String):Number{
return (this._soundsDict[_arg1].channel.position);
}
public function stopAllSounds(_arg1:Boolean=true):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (!this._soundsDict[_local3].paused){
this._soundsDict[_local3].pausedByAll = true;
this.stopSound(_local3);
};
} else {
this.stopSound(_local3);
};
_local2++;
};
}
public function removeSound(_arg1:String):void{
var _local2:int;
_local2 = 0;
while (_local2 < this._sounds.length) {
if (this._sounds[_local2].name == _arg1){
this._sounds[_local2] = null;
this._sounds.splice(_local2, 1);
};
_local2++;
};
delete this._soundsDict[_arg1];
}
public function muteAllSounds():void{
var _local1:int;
var _local2:String;
_local1 = 0;
while (_local1 < this._sounds.length) {
_local2 = this._sounds[_local1].name;
this.setSoundVolume(_local2, 0);
_local1++;
};
}
public function stopSound(_arg1:String):void{
var _local2:Object;
_local2 = this._soundsDict[_arg1];
_local2.paused = true;
_local2.channel.stop();
_local2.position = _local2.channel.position;
}
public function pauseAllSounds(_arg1:Boolean=true):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (!this._soundsDict[_local3].paused){
this._soundsDict[_local3].pausedByAll = true;
this.pauseSound(_local3);
};
} else {
this.pauseSound(_local3);
};
_local2++;
};
}
public function playAllSounds(_arg1:Boolean=false):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (this._soundsDict[_local3].pausedByAll){
this._soundsDict[_local3].pausedByAll = false;
this.playSound(_local3);
};
} else {
this.playSound(_local3);
};
_local2++;
};
}
public function addExternalSound(_arg1:String, _arg2:String, _arg3:Number=1000, _arg4:Boolean=false):Boolean{
var _local5:int;
var _local6:Object;
var _local7:Sound;
_local5 = 0;
while (_local5 < this._sounds.length) {
if (this._sounds[_local5].name == _arg2){
return (false);
};
_local5++;
};
_local6 = new Object();
_local7 = new Sound(new URLRequest(_arg1), new SoundLoaderContext(_arg3, _arg4));
_local6.name = _arg2;
_local6.sound = _local7;
_local6.channel = new SoundChannel();
_local6.position = 0;
_local6.paused = true;
_local6.volume = 1;
_local6.startTime = 0;
_local6.loops = 0;
_local6.pausedByAll = false;
this._soundsDict[_arg2] = _local6;
this._sounds.push(_local6);
return (true);
}
public function unmuteAllSounds():void{
var _local1:int;
var _local2:String;
_local1 = 0;
while (_local1 < this._sounds.length) {
_local2 = this._sounds[_local1].name;
this.setSoundVolume(_local2, 1);
_local1++;
};
}
public function isSoundPausedByAll(_arg1:String):Boolean{
return (this._soundsDict[_arg1].pausedByAll);
}
public function getSoundObject(_arg1:String):Sound{
return (this._soundsDict[_arg1].sound);
}
public function pauseSound(_arg1:String):void{
var _local2:Object;
_local2 = this._soundsDict[_arg1];
_local2.paused = true;
_local2.position = _local2.channel.position;
_local2.channel.stop();
}
public function playSound(_arg1:String, _arg2:Number=1, _arg3:Number=0, _arg4:int=0):void{
var _local5:Object;
_local5 = this._soundsDict[_arg1];
if (_local5){
if (!g.mute){
_local5.volume = _arg2;
} else {
_local5.volume = 0;
};
_local5.startTime = _arg3;
_local5.loops = _arg4;
if (_local5.paused){
_local5.channel = _local5.sound.play(_local5.position, _local5.loops, new SoundTransform(_local5.volume));
} else {
_local5.channel = _local5.sound.play(_arg3, _local5.loops, new SoundTransform(_local5.volume));
};
_local5.paused = false;
//unresolved jump
};
}
public static function getInstance():SoundManager{
if (SoundManager._instance == null){
SoundManager._allowInstance = true;
SoundManager._instance = new (SoundManager);
SoundManager._allowInstance = false;
};
TweenPlugin.activate([VolumePlugin]);
return (SoundManager._instance);
}
}
}//package com.fox
Section 8
//bonus (com.game.bonus)
package com.game {
import com.fox.*;
import flash.display.*;
import flash.events.*;
public dynamic class bonus extends MovieClip {
public var ys;
public var d;
public var a:MovieClip;
public var g;
public var delay:Number;
public var got;
public var no;
public function bonus(_arg1:Number):void{
g = fox.globalvar;
super();
a.gotoAndStop(_arg1);
no = _arg1;
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
delay = 250;
if (!d){
d = delay;
//unresolved jump
};
got = 0;
ys = 1;
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
var _local2:*;
y = (y + ys);
if (Math.abs((g.p.x - x)) < 50){
if (Math.abs((g.p.y - y)) < 50){
if ((no == 1)){
g.p.energy = (g.p.energy + g.energybonus);
//unresolved jump
};
if ((no == 2)){
g.zoom = g.zoomtime;
//unresolved jump
};
if ((no == 3)){
g.fast = g.fasttime;
//unresolved jump
};
g.sfx.playSound("zbonus");
_local2 = new popmessage(x, y, no);
g.m3.addChild(_local2);
got = 1;
d = 0;
};
};
d--;
if ((d < 40)){
visible = !(visible);
//unresolved jump
};
if (d <= 0){
if (!got){
g.nextbonus = Math.min(g.nextbonus, (g.p.score + 6000));
//unresolved jump
};
die();
};
}
}
}//package com.game
Section 9
//bubble (com.game.bubble)
package com.game {
import com.fox.*;
import flash.display.*;
import flash.events.*;
public dynamic class bubble extends MovieClip {
public var ys;
public var d;
public var g;
public var delay:Number;
public function bubble():void{
g = fox.globalvar;
super();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
delay = 80;
if (!d){
d = delay;
//unresolved jump
};
ys = (-0.5 - (0.1 * fox.random(7)));
scaleX = (scaleY = (0.4 + (0.1 * fox.random(6))));
fox.initxfloat(this, (0.4 + (0.1 * fox.random(5))), (0.1 + (0.01 * fox.random(10))));
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function respawn():void{
var _local1:*;
_local1 = fox.localpos(g.p.a.b, g.m1);
x = ((_local1.x - 2) + fox.random(4));
y = ((_local1.y - 8) + fox.random(16));
ys = (-0.5 - (0.1 * fox.random(7)));
scaleX = (scaleY = (0.4 + (0.1 * fox.random(6))));
visible = true;
alpha = 1;
d = delay;
}
public function loop(_arg1:Event):void{
fox.xfloating(this);
y = (y + ys);
ys = (ys + -0.005);
if ((y < g.ysurface)){
visible = false;
//unresolved jump
};
d--;
if ((d < 0)){
alpha = (alpha - 0.2);
if ((alpha < 0)){
respawn();
//unresolved jump
};
//unresolved jump
};
}
}
}//package com.game
Section 10
//fish (com.game.fish)
package com.game {
import com.fox.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public dynamic class fish extends MovieClip {
public var range:Number;// = 0
public var ymin;
public var ymax;
public var a:MovieClip;
public var g;
public var xs;
public var cd;
public var cekdelay;
public function fish():void{
g = fox.globalvar;
range = 0;
super();
a.gotoAndStop((1 + fox.random((a.totalFrames - 1))));
fox.tint(a, 1130590, (0.01 * fox.random(70)));
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
cd = (cekdelay = 10);
range = 600;
ymin = (g.ysurface + 30);
ymax = (g.ymax - 60);
getrandomspeed();
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function getrandomspeed():void{
a.scaleX = (a.scaleY = (0.6 + (0.1 * fox.random(4))));
xs = (0.2 + (0.1 * fox.random(20)));
if ((fox.random(100) > 50)){
xs = -(xs);
//unresolved jump
};
if ((xs < 0)){
a.scaleX = -(a.scaleX);
//unresolved jump
};
}
public function cekout():void{
var _local1:*;
if ((((Math.abs((g.p.x - x)) > range)) || ((Math.abs((g.p.y - y)) > range)))){
_local1 = ((g.p.angle - 0.7) + (0.1 * fox.random(14)));
x = (g.p.x + (Math.cos(_local1) * (400 + fox.random(200))));
y = (g.p.y + (Math.sin(_local1) * (400 + fox.random(200))));
getrandomspeed();
a.gotoAndStop((1 + fox.random((a.totalFrames - 1))));
};
if ((((y < ymin)) || ((y > ymax)))){
visible = false;
} else {
visible = true;
};
}
public function loop(_arg1:Event):void{
move();
}
public function move():void{
x = (x + xs);
cd--;
if (!cd){
cd = cekdelay;
cekout();
//unresolved jump
};
}
}
}//package com.game
Section 11
//hint (com.game.hint)
package com.game {
import com.fox.*;
import flash.display.*;
import flash.events.*;
public class hint extends MovieClip {
public var yy:Number;
public var sd;
public var d;
public var a:MovieClip;
var g;
public function hint(_arg1:int, _arg2:int=80):void{
g = fox.globalvar;
super();
sd = 25;
d = _arg2;
x = (g.screenwid / 2);
y = 80;
a.gotoAndStop(_arg1);
visible = false;
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
yy = y;
y = (y + 30);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
sd--;
if (sd < 0){
visible = true;
if ((d > 10)){
y = (y + ((yy - y) / 4));
alpha = Math.min(1, (alpha + 0.1));
} else {
y = (y - 3);
alpha = Math.max(0, (alpha - 0.1));
};
d--;
if (!d){
die();
//unresolved jump
};
};
}
}
}//package com.game
Section 12
//main (com.game.main)
package com.game {
import com.fox.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.utils.*;
public class main extends MovieClip {
public var mxs:Number;// = 0
public var bg;
public var stat;
public var startlevel;
public var g;
public var m;
public var page;
public var xmid;
public var titlescr;
public var over;
public var fps;
public var losescr;
public var loadbox:MovieClip;
public var it;
public var ymid;
public var oldx;
public var udahint;
public var button1;
public var allsfx:Array;
public var button2;
public var button3:SimpleButton;
public var bonusspacing;
public var skipmenu;
public var m0;
public var m1;
public var m3;
public var m4;
public var insscr;
public var m2;
public var all;
public var ob:Object;
public function main():void{
g = fox.globalvar;
mxs = 0;
super();
addFrameScript(0, frame1);
skipmenu = 0;
g.mute = (g.udamusik = (udahint = 0));
g.ysurface = 90;
g.allmc = [];
allsfx = ["zloop", "ztic", "zbonus", "zcount", "ztink", "zsplash1", "zsplash2"];
g.screenwid = 720;
g.screenhei = 480;
g.hscreenwid = (g.screenwid / 2);
g.hscreenhei = (g.screenhei / 2);
stage.scaleMode = StageScaleMode.NO_SCALE;
g.highscore = fox.loadcookie("score", "agseal");
if (!g.highscore){
g.highscore = 0;
//unresolved jump
};
EC.add(loadbox, Event.COMPLETE, loadcomplete);
stop();
}
public function loadcomplete(_arg1:Event):void{
EC.remove(loadbox);
this.removeChild(loadbox);
g.keyc = new keycontrol(this.stage);
gotoAndStop("start");
if (skipmenu){
init();
} else {
showpage("titlescreen");
};
}
public function clearpage():void{
if (page){
if (page.button1){
EC.remove(page.button1);
//unresolved jump
};
if (page.button2){
EC.remove(page.button2);
//unresolved jump
};
page = null;
};
fox.removechildren(g.r);
}
function frame1(){
fox.globalvar.r = this;
}
public function getbuttonname(_arg1:MouseEvent):void{
g.buttonrollover = _arg1.currentTarget.name;
}
public function loop(_arg1:Event):void{
movescreen();
cekbonus();
cekendgame();
fox.sortdepth(g.allmc, "y");
}
public function cekendgame():void{
if (g.endgame){
EC.remove(this, Event.ENTER_FRAME, loop);
showpage("endscreen");
};
}
public function init():void{
var _local1:int;
clearpage();
g.endgame = 0;
g.xmin = (g.ymin = 0);
g.xmid = 360;
g.ymid = 240;
g.ymax = 1500;
g.yscrollmax = (-(g.ymax) + g.screenhei);
g.bonustipe = [1, 2, 3];
g.zoom = (g.fast = 0);
g.zoomtime = 400;
g.fasttime = 400;
g.energybonus = 30;
g.nextbonus = 5000;
g.snap = [];
g.snapmax = 20;
bonusspacing = 15000;
all = new MovieClip();
g.r.addChild(all);
bg = new MovieClip();
all.addChild(bg);
m = new MovieClip();
all.addChild(m);
over = new MovieClip();
all.addChild(over);
stat = new statistics();
all.addChild(stat);
m0 = new MovieClip();
m.addChild(m0);
m1 = new MovieClip();
m.addChild(m1);
m2 = new MovieClip();
m.addChild(m2);
m3 = new MovieClip();
m.addChild(m3);
m4 = new MovieClip();
m.addChild(m4);
g.all = all;
g.m = m;
g.m0 = m0;
g.m1 = m1;
g.m2 = m2;
g.m3 = m3;
g.m4 = m4;
g.stat = stat;
fox.framescreen();
fox.fadescreen();
it = new bgcolor();
bg.addChild(it);
it = new oceanfloor();
it.x = 0;
it.y = g.ymax;
m1.addChild(it);
g.oceanfloor = it;
it = new island();
it.x = 0;
it.y = g.ysurface;
m1.addChild(it);
g.island = it;
it = new boat();
it.x = 0;
it.y = g.ysurface;
m1.addChild(it);
g.boat = it;
it = new wave1();
it.x = 0;
it.y = g.ysurface;
m1.addChild(it);
g.wave1 = it;
it = new wave2();
it.x = 0;
it.y = g.ysurface;
m4.addChild(it);
g.wave2 = it;
it = new seal();
it.x = 1000;
it.y = 400;
m2.addChild(it);
g.sl = it;
_local1 = 0;
while (_local1 < 80) {
it = new bubble();
it.d = _local1;
it.x = ((500 - 40) + fox.random(4));
it.y = (400 - (_local1 * 5));
g.m2.addChild(it);
_local1++;
};
it = new player();
it.x = 500;
it.y = 400;
m2.addChild(it);
g.p = it;
_local1 = 0;
while (_local1 < 30) {
make(1, ((g.p.x - 600) + fox.random(1200)), ((g.p.y - 600) + fox.random(1200)));
_local1++;
};
it = new pointcounter();
it.y = -70;
g.p.addChild(it);
if (!udahint){
udahint = 1;
it = new hint(1);
it.x = g.hscreenwid;
it.y = 140;
stat.addChild(it);
//unresolved jump
};
if (!g.udamusik){
g.udamusik = 1;
loadsfx();
//unresolved jump
};
stage.focus = this;
EC.add(this, Event.ENTER_FRAME, loop);
}
public function showpage(_arg1):void{
var _local2:Class;
clearpage();
_local2 = (getDefinitionByName(_arg1) as Class);
page = new (_local2);
g.r.addChild(page);
g.pagenow = _arg1;
if (page.yourscore){
page.yourscore.a.text = fox.formatnumber(g.p.score);
//unresolved jump
};
if (page.highscore){
page.highscore.a.text = fox.formatnumber(g.p.score);
page.highscore.b.text = fox.formatnumber(g.highscore);
if (g.p.score > g.highscore){
g.highscore = g.p.score;
fox.savecookie("score", g.p.score, "agseal");
page.highscore.t1.visible = false;
} else {
page.highscore.t2.visible = false;
};
};
page.button1txt.mouseEnabled = false;
EC.add(page.button1, MouseEvent.MOUSE_DOWN, doclick);
EC.add(page.button1, MouseEvent.ROLL_OVER, getbuttonname);
if (page.button2){
page.button2txt.mouseEnabled = false;
EC.add(page.button2, MouseEvent.MOUSE_DOWN, doclick);
EC.add(page.button2, MouseEvent.ROLL_OVER, getbuttonname);
};
fox.fadescreen();
}
public function scrollisland():void{
g.island.a.x = (g.island.a.x + (0.5 * mxs));
if ((g.island.a.x < -(g.screenwid))){
g.island.a.x = (g.island.a.x + g.screenwid);
//unresolved jump
};
if ((g.island.a.x > 0)){
g.island.a.x = (g.island.a.x - g.screenwid);
//unresolved jump
};
g.oceanfloor.a.x = (g.oceanfloor.a.x + mxs);
if ((g.oceanfloor.a.x < -(g.screenwid))){
g.oceanfloor.a.x = (g.oceanfloor.a.x + g.screenwid);
//unresolved jump
};
if ((g.oceanfloor.a.x > 0)){
g.oceanfloor.a.x = (g.oceanfloor.a.x - g.screenwid);
//unresolved jump
};
}
public function cekbonus():void{
var _local1:*;
if (g.p.score > g.nextbonus){
if (Math.abs(g.p.xs) > 6){
if (Math.abs(g.p.ys) < 10){
_local1 = new bonus(fox.getrandom("bonustipe"));
if ((g.p.ys < 0)){
_local1.y = Math.max((g.ysurface + 20), (g.p.y - 100));
} else {
_local1.y = Math.min((g.ymax - g.screenhei), (g.p.y + 100));
};
if ((g.p.xs < 0)){
_local1.x = (g.p.x - g.hscreenwid);
} else {
_local1.x = (g.p.x + g.hscreenwid);
};
m3.addChild(_local1);
g.nextbonus = (g.p.score + bonusspacing);
bonusspacing = (bonusspacing + 800);
};
};
};
g.fast = Math.max(0, (g.fast - 1));
}
public function movescreen():void{
oldx = m.x;
m.x = (-(g.p.x) + g.xmid);
m.y = Math.max(g.yscrollmax, (-(g.p.y) + g.ymid));
g.island.x = (g.oceanfloor.x = (g.wave1.x = (g.wave2.x = -(m.x))));
if (oldx != m.x){
mxs = (m.x - oldx);
scrollisland();
//unresolved jump
};
g.boat.x = (g.boat.x + ((g.p.x - g.boat.x) / 100));
}
public function doclick(_arg1:MouseEvent):void{
switch (g.pagenow){
case "titlescreen":
showpage("insscreen");
break;
case "insscreen":
if ((g.buttonrollover == "button1")){
init();
} else {
showpage("aboutscreen");
};
break;
case "aboutscreen":
init();
break;
case "endscreen":
init();
break;
};
}
private function loadsfx():void{
var _local1:int;
g.sfx = SoundManager.getInstance();
_local1 = 0;
for (;_local1 < allsfx.length;_local1++) {
if (fox.cekclass(allsfx[_local1])){
g.sfx.addLibrarySound((getDefinitionByName(allsfx[_local1]) as Class), allsfx[_local1]);
continue;
};
};
g.sfx.playSound("zloop", 0, 0, 999999);
if (((!(g.mute)) && (fox.cekclass("zloop")))){
g.sfx.fadeSound("zloop", 1, 0.2);
//unresolved jump
};
}
public function make(_arg1, _arg2:int, _arg3:int){
var _local4:int;
var _local5:Class;
var _local6:*;
_local4 = 0;
if (isNaN(Number(_arg1))){
if (fox.cekclass(_arg1)){
_local5 = fox.getclass(_arg1);
_local4 = 1;
//unresolved jump
};
} else {
if (fox.cekclass(("o" + _arg1))){
_local5 = fox.getclass(("o" + _arg1));
_local4 = 1;
//unresolved jump
};
};
if (_local4){
_local6 = new (_local5);
_local6.x = _arg2;
_local6.y = _arg3;
m1.addChild(_local6);
//unresolved jump
};
}
}
}//package com.game
Section 13
//player (com.game.player)
package com.game {
import com.fox.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public dynamic class player extends MovieClip {
public var arrow;
public var circ2;
public var energyless;
public var ysmax;
public var sdy;
public var sum;
public var acx1;
public var acx2;
public var sdx;
public var grav;
public var a;
public var ymax;
public var g;
public var startx;
public var pos:Object;
public var acy2;
public var energy;
public var div;
public var dx;
public var acx;
public var acy;
public var xsmax;
public var score;
public var dy;
public var acy1;
public var xsmax2;
public var xsmax1;
public var angle:Number;// = 0
public var xmin;
public var xx;
public var xs;
public var circ;
public var ys;
public var yy;
public var light;
public var it;
public var oldx;
public var oldy;
public var ymin;
public var underwater;
public var ysmax1;
public var ysmax2;
public var ang2;
public var sign;
public var div1;
public var div2;
public var nx;
public var ny;
public var ang;
public var energymax;
public var xmax;
public function player(){
g = fox.globalvar;
it = MovieClip;
angle = 0;
super();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function cekfast():void{
if (g.fast > 0){
if (div != div2){
div = div2;
ysmax = ysmax2;
xsmax = xsmax2;
acx = acx2;
acy = acy2;
};
} else {
if (div != div1){
div = div1;
ysmax = ysmax1;
xsmax = xsmax1;
acx = acx1;
acy = acy1;
};
};
}
public function loop(_arg1:Event):void{
cekfast();
move();
reduceenergy();
arrowpoint();
}
public function arrowpoint():void{
sdx = (g.sl.x - x);
sdy = (g.sl.y - y);
if ((((Math.abs(sdx) < g.hscreenwid)) && ((Math.abs(sdy) < g.hscreenhei)))){
arrow.visible = false;
} else {
arrow.visible = true;
arrow.rotation = fox.deg(Math.atan2(sdy, sdx));
};
}
public function init(_arg1:Event):void{
energy = (energymax = 100);
energyless = 0.03;
div1 = 0.8;
ysmax1 = 10;
xsmax1 = 12;
acx1 = 0.3;
acy1 = 0.25;
div2 = 0.5;
ysmax2 = 15;
xsmax2 = 18;
acx2 = 0.5;
acy2 = 0.4;
div = div1;
ysmax = ysmax1;
xsmax = xsmax1;
acx = acx1;
acy = acy1;
ymax = (g.ymax - g.ymid);
xs = (ys = 0);
score = 0;
underwater = 1;
grav = 0.05;
a.a.gotoAndStop(a.a.totalFrames);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function reduceenergy():void{
energy = Math.max(0, (energy - energyless));
if (!energy){
g.endgame = 1;
//unresolved jump
};
}
public function move():void{
if (((g.key.at) || (g.key.ba))){
if (g.key.at){
if ((ys > 0)){
ys = (ys * div);
//unresolved jump
};
ys = Math.max(-(ysmax), (ys - acy));
} else {
if (g.key.ba){
if ((ys < 0)){
ys = (ys * div);
//unresolved jump
};
if ((y < ymax)){
ys = Math.min(ysmax, (ys + acy));
//unresolved jump
};
};
};
} else {
ys = (ys * 0.95);
};
if (((g.key.ki) || (g.key.ka))){
if (g.key.ki){
if ((xs > 0)){
xs = (xs * div);
//unresolved jump
};
xs = Math.max(-(xsmax), (xs - acx));
} else {
if (g.key.ka){
if ((xs < 0)){
xs = (xs * div);
//unresolved jump
};
xs = Math.min(xsmax, (xs + acx));
};
};
} else {
xs = (xs * 0.95);
};
nx = (x + xs);
ny = (y + ys);
if ((y < ymax)){
ys = (ys + grav);
//unresolved jump
};
if ((ny > ymax)){
if ((ys > 0)){
ys = (ys * 0.9);
//unresolved jump
};
//unresolved jump
};
if (ny < g.ysurface){
if (underwater){
underwater = 0;
if ((((ys < -2)) || ((Math.abs(xs) > 2)))){
makesplash(x);
g.sfx.playSound("zsplash1");
//unresolved jump
};
//unresolved jump
};
ys = (ys + 1);
if (((ny + ys) > g.ysurface)){
ys = (ys * 0.5);
underwater = 1;
if ((ys > 2)){
makesplash(x);
g.sfx.playSound("zsplash2");
//unresolved jump
};
//unresolved jump
};
};
if ((xs < 0)){
sign = -1;
if (a.currentFrame != 2){
a.gotoAndStop(2);
//unresolved jump
};
} else {
sign = 1;
if (a.currentFrame != 1){
a.gotoAndStop(1);
//unresolved jump
};
};
a.rotation = (a.rotation + ((Math.min(40, Math.max(-40, ((sign * 5) * ys))) - a.rotation) / 4));
angle = Math.atan2(ys, xs);
x = nx;
y = ny;
}
public function makesplash(_arg1):void{
it = new splash();
it.x = _arg1;
it.y = g.ysurface;
g.m3.addChild(it);
}
}
}//package com.game
Section 14
//pointcounter (com.game.pointcounter)
package com.game {
import com.fox.*;
import flash.display.*;
import flash.events.*;
public class pointcounter extends MovieClip {
public var cdelay;
public var normalrange2;
public var range;
public var sum3;
public var sum2;
public var sum;
public var b;
public var flip:Boolean;// = false
public var a;
var g;
public var zoomrange;
public var sum1;
public var cd;
public var cr:MovieClip;
public var sk:Number;// = 0
public var dx;
public var dy;
public var range2;
public var normalrange;
public var zoomrange2;
public var step;
public var zoomdiv;
public function pointcounter():void{
g = fox.globalvar;
sk = 0;
flip = false;
super();
normalrange = 200;
normalrange2 = (normalrange * normalrange);
zoomdiv = 1.75;
zoomrange = (zoomdiv * normalrange);
zoomrange2 = (zoomrange * zoomrange);
cdelay = 10;
cd = 1;
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function loop(_arg1:Event):void{
if (g.zoom > 0){
if (range != zoomrange){
range = zoomrange;
range2 = zoomrange2;
g.p.light.scaleX = (g.p.light.scaleY = zoomdiv);
g.p.circ.visible = false;
cr = g.p.circ2;
};
} else {
if (range != normalrange){
range = normalrange;
range2 = normalrange2;
g.p.light.scaleX = (g.p.light.scaleY = 1);
g.p.circ2.visible = false;
cr = g.p.circ;
};
};
sum = 0;
dx = (g.sl.x - g.p.x);
dy = (g.sl.y - g.p.y);
sum3 = ((dx * dx) + (dy * dy));
dx = (g.tpos.x - g.p.x);
dy = (g.tpos.y - g.p.y);
sum2 = ((dx * dx) + (dy * dy));
dx = (g.npos.x - g.p.x);
dy = (g.npos.y - g.p.y);
sum1 = ((dx * dx) + (dy * dy));
if ((sum2 < sum1)){
sum = sum2;
} else {
sum = sum1;
};
if ((sum3 < sum)){
sum = sum3;
//unresolved jump
};
if ((sum > range2)){
sum = 0;
//unresolved jump
};
if (sum){
g.zoom = Math.max(0, (g.zoom - 1));
step = Math.round(((range2 - sum) / 1000));
visible = (cr.visible = (g.p.light.visible = true));
g.p.light.rotation = fox.deg(Math.atan2(dy, dx));
cr.rotation = (cr.rotation + 1);
a.scaleX = (a.scaleY = Math.min(3, (0.5 + (0.03 * step))));
cd--;
if (!cd){
cd = (1 + Math.floor(((25 - Math.min(25, step)) / 4)));
sk = (sk + step);
g.p.score = (g.p.score + step);
a.b.text = fox.formatnumber(sk);
g.sfx.playSound("zcount");
};
} else {
visible = (g.p.circ.visible = (g.p.circ2.visible = (g.p.light.visible = false)));
sk = 0;
};
}
}
}//package com.game
Section 15
//popmessage (com.game.popmessage)
package com.game {
import com.fox.*;
import flash.display.*;
import flash.events.*;
public dynamic class popmessage extends MovieClip {
public var yy:Number;
public var d;
public var a:MovieClip;
var g;
public function popmessage(_arg1:Number=100, _arg2:Number=100, _arg3:Number=0):void{
g = fox.globalvar;
super();
d = 60;
alpha = 0;
x = _arg1;
y = _arg2;
a.gotoAndStop(_arg3);
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
yy = y;
y = (y + 20);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if ((d > 10)){
y = (y + ((yy - y) / 2));
alpha = Math.min(1, (alpha + 0.1));
} else {
y = (y - 3);
alpha = Math.max(0, (alpha - 0.1));
};
d--;
if (!d){
die();
//unresolved jump
};
}
}
}//package com.game
Section 16
//popscore (com.game.popscore)
package com.game {
import com.fox.*;
import flash.display.*;
import flash.events.*;
public dynamic class popscore extends MovieClip {
public var yy:Number;
public var d;
var g;
public function popscore(_arg1:Number=100, _arg2:Number=100, _arg3:Number=0):void{
g = fox.globalvar;
super();
d = 20;
alpha = 0;
x = _arg1;
y = _arg2;
this.a.b.text = _arg3;
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
yy = y;
y = (y + 20);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if ((d > 10)){
y = (y + ((yy - y) / 2));
alpha = Math.min(1, (alpha + 0.1));
} else {
y = (y - 3);
alpha = Math.max(0, (alpha - 0.1));
};
d--;
if (!d){
die();
//unresolved jump
};
}
}
}//package com.game
Section 17
//seal (com.game.seal)
package com.game {
import com.fox.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class seal extends MovieClip {
public var cdelay;
public var actnow:String;
public var ranspeedmax;
public var snapno;
public var ys;
public var arad;
public var it:MovieClip;
public var jump;
public var ymin2;
public var minspeed;
public var underwater:Number;// = 0
public var ro;
public var ymin;
public var speed;
public var ymax;
public var snapmax;
public var a;
public var g;
public var wavetime;
public var cd;
public var sd;
public var xs;
public var ro2;
public var ranspeed;
public var act;
public var grav;
public var ro1;
public var rolltime;
public var d;
public var delay;
public var sdelay;
public function seal():void{
g = fox.globalvar;
underwater = 0;
super();
scaleX = (scaleY = 1.2);
ymin2 = (g.ysurface + 50);
ymin = (g.ysurface + 100);
ymax = (g.ymax - 400);
sd = (sdelay = 100);
cd = (cdelay = 50);
d = (delay = 40);
grav = 2;
ro = 0;
snapno = 0;
speed = (minspeed = 3);
minspeed = 5;
ranspeed = 10;
ranspeedmax = 70;
underwater = 1;
actnow = (act = "swim");
a.stop();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function randomsnap():void{
var _local1:*;
if (snapno < g.snapmax){
sd--;
if (sd < 0){
if (Math.abs((g.p.x - x)) < 240){
if (Math.abs((g.p.y - y)) < 240){
g.stat.visible = (g.p.visible = (g.m3.visible = false));
g.snap[snapno] = new MovieClip();
_local1 = g.snap[snapno];
fox.snapshot(g.m, _local1, (x - 120), (y - 90), 240, 180, 1, 0, 0);
snapno++;
sd = sdelay;
g.stat.visible = (g.p.visible = (g.m3.visible = true));
};
};
};
};
}
public function init(_arg1:Event){
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function cekdif():void{
if (g.p.score > 30000){
cd--;
if (!cd){
cd = cdelay;
ranspeed = Math.min(ranspeedmax, (ranspeed + 1));
minspeed = Math.min(8, (minspeed + 0.05));
delay = Math.max(20, (delay - 1));
};
};
}
public function loop(_arg1:Event):void{
move();
think();
cekdif();
randomsnap();
}
public function move():void{
if (!jump){
rotation = (rotation + ro);
arad = fox.rad(rotation);
if ((((act == "roll")) || ((act == "wave")))){
speed = Math.max(10, speed);
//unresolved jump
};
xs = (Math.cos(arad) * speed);
ys = (Math.sin(arad) * speed);
if ((y < ymin2)){
jump = 1;
//unresolved jump
};
} else {
rotation = (rotation + (ro / 2));
if ((y < ymin)){
ys = Math.min(5, (ys + grav));
//unresolved jump
};
if ((y > (ymin + 100))){
jump = 0;
if ((rotation < -90)){
ro = -3;
} else {
ro = 3;
};
//unresolved jump
};
};
x = (x + xs);
y = (y + ys);
if (act == "swim"){
if ((((((Math.abs(ro) < 1)) || ((((rotation > 70)) && ((rotation < 110)))))) || ((((rotation < -70)) && ((rotation > -110)))))){
ro1 = (ro2 = 0);
} else {
ro1 = Math.max(-35, Math.min(40, (-(rotation) / 2)));
ro2 = Math.max(-35, Math.min(45, (rotation / 4)));
};
if ((a.scaleY < 0)){
ro1 = -(ro1);
ro2 = -(ro2);
//unresolved jump
};
a.a.head.rotation = (a.a.head.rotation + ((ro1 - a.a.head.rotation) / 5));
a.a.leg.a.rotation = (a.a.leg.a.rotation + ((ro2 - a.a.leg.a.rotation) / 5));
if ((((a.scaleY > 0)) && ((((rotation < -100)) || ((rotation > 100)))))){
act = "roll";
rolltime = 0;
//unresolved jump
};
if ((((a.scaleY < 0)) && ((((rotation > -80)) && ((rotation < 80)))))){
act = "roll";
rolltime = 0;
//unresolved jump
};
if (act != "roll"){
if (fox.random(100) > 90){
if ((((a.scaleY > 0)) && ((((rotation > -20)) && ((rotation < 20)))))){
act = "wave";
wavetime = 0;
//unresolved jump
};
if ((((a.scaleY < 0)) && ((((rotation < -160)) || ((rotation > 160)))))){
act = "wave";
wavetime = 0;
//unresolved jump
};
};
};
};
if (actnow != act){
actnow = act;
a.gotoAndStop(act);
//unresolved jump
};
g.npos = fox.localpos(a.nose, g.m3);
g.tpos = fox.localpos(a.tail, g.m3);
if (y < ymin){
if (underwater){
if ((((g.npos.y < g.ysurface)) && ((ys < -2)))){
underwater = 0;
makesplash(g.npos.x);
if ((Math.abs((g.p.x - x)) < 400)){
g.sfx.playSound("zsplash1");
//unresolved jump
};
//unresolved jump
};
};
} else {
underwater = 1;
};
if ((Math.abs((g.p.x - x)) > 1200)){
if ((x > g.p.x)){
x = Math.min(x, (g.p.x + 1200));
} else {
x = Math.max(x, (g.p.x - 1200));
};
//unresolved jump
};
}
public function makesplash(_arg1):void{
it = new splash();
it.x = _arg1;
it.y = g.ysurface;
g.m3.addChild(it);
}
public function think():void{
if ((y > ymax)){
d = Math.min(1, d);
//unresolved jump
};
d--;
if (d <= 0){
d = (delay + fox.random(30));
if (y > ymax){
if ((((rotation > 0)) && ((rotation < 90)))){
ro = ((-40 - rotation) / d);
//unresolved jump
};
if ((((rotation > 90)) && ((rotation < 180)))){
ro = ((220 - rotation) / d);
//unresolved jump
};
} else {
ro = (0.1 * fox.random(20));
if ((fox.random(100) > 50)){
ro = -(ro);
//unresolved jump
};
};
speed = (minspeed + (0.1 * fox.random(Math.floor(ranspeed))));
};
if (act == "wave"){
wavetime++;
if ((wavetime == 52)){
act = "swim";
a.gotoAndStop(act);
//unresolved jump
};
};
if (act == "roll"){
rolltime++;
if (rolltime > 30){
if ((((rotation > 80)) || ((rotation < -80)))){
act = "swim";
a.gotoAndStop(act);
a.scaleY = -1;
//unresolved jump
};
if ((((rotation > -100)) && ((rotation < 100)))){
act = "swim";
a.gotoAndStop(act);
a.scaleY = 1;
//unresolved jump
};
};
};
}
}
}//package com.game
Section 18
//slideshow (com.game.slideshow)
package com.game {
import com.fox.*;
import flash.display.*;
import flash.events.*;
public class slideshow extends MovieClip {
public var nopic:MovieClip;
public var sd;
public var a;
var g;
public var pic:Array;
public var no:Number;
public var sdelay;
public function slideshow():void{
g = fox.globalvar;
super();
sd = (sdelay = 50);
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
var _local2:int;
EC.remove(this);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
if (g.snap.length > 0){
_local2 = 0;
while (_local2 < g.snap.length) {
a.addChild(g.snap[_local2]);
g.snap[_local2].visible = false;
_local2++;
};
no = 0;
showslide(no);
nopic.visible = false;
EC.add(this, Event.ENTER_FRAME, loop);
};
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (g.snap.length > 1){
sd--;
if (!sd){
no++;
if ((no >= g.snap.length)){
no = 0;
//unresolved jump
};
showslide(no);
sd = sdelay;
};
};
}
public function showslide(_arg1:Number){
var _local2:int;
_local2 = 0;
while (_local2 < g.snap.length) {
g.snap[_local2].visible = false;
_local2++;
};
g.snap[_arg1].visible = true;
fox.tintflash(a, 3, 0xFFFFFF, 1, 1);
}
}
}//package com.game
Section 19
//splash (com.game.splash)
package com.game {
import com.fox.*;
import flash.display.*;
import flash.events.*;
public class splash extends MovieClip {
public var d:Number;
public function splash():void{
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
d = 15;
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
d--;
if (!d){
die();
//unresolved jump
};
}
}
}//package com.game
Section 20
//statistics (com.game.statistics)
package com.game {
import com.fox.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public dynamic class statistics extends MovieClip {
public var slicenow:Number;// = 0
public var it:MovieClip;
public var energynow;
public var g;
public var xs;
public var slice:Array;
public var ticd;
public var energy1;
public var convert;
public var ticdelay;
public var totalslice;
public var score1;
public var accel;
public var speaker;
public function statistics():void{
g = fox.globalvar;
slicenow = 0;
super();
g.stat = this;
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
var _local2:*;
var _local3:int;
slice = [];
totalslice = 25;
_local2 = 7;
_local3 = 1;
while (_local3 <= totalslice) {
slice[_local3] = new onebar();
slice[_local3].x = ((totalslice - _local3) * _local2);
energy1.addChild(slice[_local3]);
_local3++;
};
slicenow = totalslice;
speaker.stop();
ticd;
ticdelay = 15;
accel = 0.8;
convert = 0.5;
xs = 0;
speaker.b1.addEventListener(MouseEvent.CLICK, muting, false, 0, true);
speaker.b2.addEventListener(MouseEvent.CLICK, muting, false, 0, true);
if (!g.mute){
switchspeaker(1);
} else {
switchspeaker(2);
};
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
private function switchspeaker(_arg1:int):void{
if (_arg1 == 2){
speaker.b1.mouseEnabled = (speaker.b1.visible = false);
speaker.b2.mouseEnabled = (speaker.b2.visible = true);
} else {
speaker.b1.mouseEnabled = (speaker.b1.visible = true);
speaker.b2.mouseEnabled = (speaker.b2.visible = false);
};
}
public function updatestatenergy1():void{
var _local1:int;
if (energynow != g.p.energy){
energynow = g.p.energy;
if (Math.round(((energynow / 100) * totalslice)) != slicenow){
slicenow = Math.round(((energynow / 100) * totalslice));
_local1 = 1;
while (_local1 <= totalslice) {
if ((_local1 <= slicenow)){
slice[_local1].gotoAndStop(1);
} else {
slice[_local1].gotoAndStop(2);
};
_local1++;
};
};
};
if (g.p.energy < 6){
ticd--;
if (!ticd){
ticd = ticdelay;
fox.tintflash(energy1, (ticdelay - 4), 0xFF0000, 3, 0.3);
g.sfx.playSound("ztic");
//unresolved jump
};
};
}
private function muting(_arg1:MouseEvent):void{
if (!g.mute){
g.mute = 1;
g.sfx.muteAllSounds();
switchspeaker(2);
} else {
g.mute = 0;
g.sfx.unmuteAllSounds();
switchspeaker(1);
};
}
public function loop(_arg1:Event):void{
updatestatscore1();
updatestatenergy1();
}
public function updatestatscore1():void{
score1.a.b.text = fox.formatnumber(g.p.score);
}
}
}//package com.game
Section 21
//PropTween (com.greensock.core.PropTween)
package com.greensock.core {
public class PropTween {
public var start:Number;
public var name:String;
public var prevNode:PropTween;
public var change:Number;
public var target:Object;
public var priority:int;
public var property:String;
public var nextNode:PropTween;
public var isPlugin:Boolean;
public function PropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean, _arg7:PropTween=null, _arg8:int=0){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
if (_arg7){
_arg7.prevNode = this;
this.nextNode = _arg7;
};
this.priority = _arg8;
}
}
}//package com.greensock.core
Section 22
//SimpleTimeline (com.greensock.core.SimpleTimeline)
package com.greensock.core {
public class SimpleTimeline extends TweenCore {
public var autoRemoveChildren:Boolean;
protected var _lastChild:TweenCore;
protected var _firstChild:TweenCore;
public function SimpleTimeline(_arg1:Object=null){
super(0, _arg1);
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:TweenCore;
var _local5:Number;
var _local6:TweenCore;
_local4 = _firstChild;
this.cachedTotalTime = _arg1;
this.cachedTime = _arg1;
while (_local4) {
_local6 = _local4.nextNode;
if (((_local4.active) || ((((((_arg1 >= _local4.cachedStartTime)) && (!(_local4.cachedPaused)))) && (!(_local4.gc)))))){
if (!_local4.cachedReversed){
_local4.renderTime(((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale), _arg2, false);
} else {
_local5 = (_local4.cacheIsDirty) ? _local4.totalDuration : _local4.cachedTotalDuration;
_local4.renderTime((_local5 - ((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale)), _arg2, false);
};
};
_local4 = _local6;
};
}
public function addChild(_arg1:TweenCore):void{
if (((!(_arg1.gc)) && (_arg1.timeline))){
_arg1.timeline.remove(_arg1, true);
};
_arg1.timeline = this;
if (_arg1.gc){
_arg1.setEnabled(true, true);
};
if (_firstChild){
_firstChild.prevNode = _arg1;
};
_arg1.nextNode = _firstChild;
_firstChild = _arg1;
_arg1.prevNode = null;
}
public function get rawTime():Number{
return (this.cachedTotalTime);
}
public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{
if (_arg1.gc){
return;
};
if (!_arg2){
_arg1.setEnabled(false, true);
};
if (_arg1.nextNode){
_arg1.nextNode.prevNode = _arg1.prevNode;
} else {
if (_lastChild == _arg1){
_lastChild = _arg1.prevNode;
};
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (_firstChild == _arg1){
_firstChild = _arg1.nextNode;
};
};
}
}
}//package com.greensock.core
Section 23
//TweenCore (com.greensock.core.TweenCore)
package com.greensock.core {
import com.greensock.*;
public class TweenCore {
public var initted:Boolean;
protected var _hasUpdate:Boolean;
public var active:Boolean;
protected var _delay:Number;
public var cachedReversed:Boolean;
public var nextNode:TweenCore;
public var cachedTime:Number;
protected var _rawPrevTime:Number;// = -1
public var vars:Object;
public var cachedTotalTime:Number;
public var data;
public var timeline:SimpleTimeline;
public var cachedStartTime:Number;
public var prevNode:TweenCore;
public var cachedDuration:Number;
public var gc:Boolean;
protected var _pauseTime:Number;
public var cacheIsDirty:Boolean;
public var cachedPaused:Boolean;
public var cachedTimeScale:Number;
public var cachedTotalDuration:Number;
public static const version:Number = 1.13;
protected static var _classInitted:Boolean;
public function TweenCore(_arg1:Number=0, _arg2:Object=null){
var _local3:SimpleTimeline;
_rawPrevTime = -1;
super();
this.vars = ((_arg2) || ({}));
this.cachedDuration = (this.cachedTotalDuration = ((_arg1) || (0)));
_delay = ((this.vars.delay) || (0));
this.cachedTimeScale = ((this.vars.timeScale) || (1));
this.active = Boolean((((((_arg1 == 0)) && ((_delay == 0)))) && (!((this.vars.immediateRender == false)))));
this.cachedTotalTime = (this.cachedTime = 0);
this.data = this.vars.data;
if (!_classInitted){
if (isNaN(TweenLite.rootFrame)){
TweenLite.initClass();
_classInitted = true;
} else {
return;
};
};
_local3 = ((this.vars.timeline is SimpleTimeline)) ? this.vars.timeline : (this.vars.useFrames) ? TweenLite.rootFramesTimeline : TweenLite.rootTimeline;
this.cachedStartTime = (_local3.cachedTotalTime + _delay);
_local3.addChild(this);
if (this.vars.reversed){
this.cachedReversed = true;
};
if (this.vars.paused){
this.paused = true;
};
}
public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
}
public function get delay():Number{
return (_delay);
}
public function get duration():Number{
return (this.cachedDuration);
}
public function set reversed(_arg1:Boolean):void{
if (_arg1 != this.cachedReversed){
this.cachedReversed = _arg1;
setTotalTime(this.cachedTotalTime, true);
};
}
public function set startTime(_arg1:Number):void{
var _local2:Boolean;
_local2 = Boolean(((!((this.timeline == null))) && (((!((_arg1 == this.cachedStartTime))) || (this.gc)))));
this.cachedStartTime = _arg1;
if (_local2){
this.timeline.addChild(this);
};
}
public function set delay(_arg1:Number):void{
this.startTime = (this.startTime + (_arg1 - _delay));
_delay = _arg1;
}
public function resume():void{
this.paused = false;
}
public function get paused():Boolean{
return (this.cachedPaused);
}
public function play():void{
this.reversed = false;
this.paused = false;
}
public function set duration(_arg1:Number):void{
this.cachedDuration = (this.cachedTotalDuration = _arg1);
setDirtyCache(false);
}
public function invalidate():void{
}
public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{
this.reversed = false;
this.paused = false;
this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2);
}
public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{
if (!_arg1){
renderTime(this.cachedTotalDuration, _arg2, false);
return;
};
if (this.timeline.autoRemoveChildren){
this.setEnabled(false, false);
} else {
this.active = false;
};
if (!_arg2){
if (((((this.vars.onComplete) && ((this.cachedTotalTime == this.cachedTotalDuration)))) && (!(this.cachedReversed)))){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
} else {
if (((((this.cachedReversed) && ((this.cachedTotalTime == 0)))) && (this.vars.onReverseComplete))){
this.vars.onReverseComplete.apply(null, this.vars.onReverseCompleteParams);
};
};
};
}
public function get reversed():Boolean{
return (this.cachedReversed);
}
public function get totalTime():Number{
return (this.cachedTotalTime);
}
public function get startTime():Number{
return (this.cachedStartTime);
}
public function set currentTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
protected function setDirtyCache(_arg1:Boolean=true):void{
var _local2:TweenCore;
_local2 = (_arg1) ? this : this.timeline;
while (_local2) {
_local2.cacheIsDirty = true;
_local2 = _local2.timeline;
};
}
public function reverse(_arg1:Boolean=true):void{
this.reversed = true;
if (_arg1){
this.paused = false;
} else {
if (this.gc){
this.setEnabled(true, false);
};
};
}
public function set paused(_arg1:Boolean):void{
if (((!((_arg1 == this.cachedPaused))) && (this.timeline))){
if (_arg1){
_pauseTime = this.timeline.rawTime;
} else {
this.cachedStartTime = (this.cachedStartTime + (this.timeline.rawTime - _pauseTime));
_pauseTime = NaN;
setDirtyCache(false);
};
this.cachedPaused = _arg1;
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
};
if (((!(_arg1)) && (this.gc))){
this.setTotalTime(this.cachedTotalTime, false);
this.setEnabled(true, false);
};
}
public function kill():void{
setEnabled(false, false);
}
public function set totalTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
public function get currentTime():Number{
return (this.cachedTime);
}
protected function setTotalTime(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
var _local4:Number;
if (this.timeline){
_local3 = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime;
if (this.cachedReversed){
_local4 = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration;
this.cachedStartTime = (_local3 - ((_local4 - _arg1) / this.cachedTimeScale));
} else {
this.cachedStartTime = (_local3 - (_arg1 / this.cachedTimeScale));
};
if (!this.timeline.cacheIsDirty){
setDirtyCache(false);
};
if (this.cachedTotalTime != _arg1){
renderTime(_arg1, _arg2, false);
};
};
}
public function pause():void{
this.paused = true;
}
public function set totalDuration(_arg1:Number):void{
this.duration = _arg1;
}
public function get totalDuration():Number{
return (this.cachedTotalDuration);
}
public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
if (_arg1){
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
if (((!(_arg2)) && (this.gc))){
this.timeline.addChild(this);
};
} else {
this.active = false;
if (!_arg2){
this.timeline.remove(this, true);
};
};
this.gc = !(_arg1);
return (false);
}
}
}//package com.greensock.core
Section 24
//TweenPlugin (com.greensock.plugins.TweenPlugin)
package com.greensock.plugins {
import com.greensock.*;
import com.greensock.core.*;
public class TweenPlugin {
public var activeDisable:Boolean;
public var onEnable:Function;
public var round:Boolean;
public var onDisable:Function;
public var propName:String;
protected var _tweens:Array;
public var priority:int;// = 0
public var overwriteProps:Array;
public var onComplete:Function;
protected var _changeFactor:Number;// = 0
public static const VERSION:Number = 1.31;
public static const API:Number = 1;
public function TweenPlugin(){
priority = 0;
_tweens = [];
_changeFactor = 0;
super();
}
public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_changeFactor = _arg1;
}
protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{
var _local6:Number;
if (_arg4 != null){
_local6 = ((typeof(_arg4))=="number") ? (Number(_arg4) - _arg3) : Number(_arg4);
if (_local6 != 0){
_tweens[_tweens.length] = new PropTween(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false);
};
};
}
protected function updateTweens(_arg1:Number):void{
var _local2:int;
var _local3:PropTween;
var _local4:Number;
_local2 = _tweens.length;
if (this.round){
while (_local2--) {
_local3 = _tweens[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local3.target[_local3.property] = ((_local4)>0) ? int((_local4 + 0.5)) : int((_local4 - 0.5));
};
} else {
while (_local2--) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
};
};
}
public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName);
return (true);
}
public function get changeFactor():Number{
return (_changeFactor);
}
public function killProps(_arg1:Object):void{
var _local2:int;
_local2 = this.overwriteProps.length;
while (_local2--) {
if ((this.overwriteProps[_local2] in _arg1)){
this.overwriteProps.splice(_local2, 1);
};
};
_local2 = _tweens.length;
while (_local2--) {
if ((PropTween(_tweens[_local2]).name in _arg1)){
_tweens.splice(_local2, 1);
};
};
}
public static function activate(_arg1:Array):Boolean{
var _local2:int;
var _local3:Object;
TweenLite.onPluginEvent = TweenPlugin.onTweenEvent;
_local2 = _arg1.length;
while (_local2--) {
if (_arg1[_local2].hasOwnProperty("API")){
_local3 = new ((_arg1[_local2] as Class));
TweenLite.plugins[_local3.propName] = _arg1[_local2];
};
};
return (true);
}
private static function onTweenEvent(_arg1:String, _arg2:TweenLite):Boolean{
var _local3:PropTween;
var _local4:Boolean;
var _local5:Array;
var _local6:int;
_local3 = _arg2.cachedPT1;
if (_arg1 == "onInit"){
_local5 = [];
while (_local3) {
_local5[_local5.length] = _local3;
_local3 = _local3.nextNode;
};
_local5.sortOn("priority", (Array.NUMERIC | Array.DESCENDING));
_local6 = _local5.length;
while (_local6--) {
PropTween(_local5[_local6]).nextNode = _local5[(_local6 + 1)];
PropTween(_local5[_local6]).prevNode = _local5[(_local6 - 1)];
};
_arg2.cachedPT1 = _local5[0];
} else {
while (_local3) {
if (((_local3.isPlugin) && (_local3.target[_arg1]))){
if (_local3.target.activeDisable){
_local4 = true;
};
var _local7 = _local3.target;
_local7[_arg1]();
};
_local3 = _local3.nextNode;
};
};
return (_local4);
}
}
}//package com.greensock.plugins
Section 25
//VolumePlugin (com.greensock.plugins.VolumePlugin)
package com.greensock.plugins {
import flash.display.*;
import flash.media.*;
import com.greensock.*;
public class VolumePlugin extends TweenPlugin {
protected var _st:SoundTransform;
protected var _target:Object;
public static const API:Number = 1;
public function VolumePlugin(){
this.propName = "volume";
this.overwriteProps = ["volume"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){
return (false);
};
_target = _arg1;
_st = _target.soundTransform;
addTween(_st, "volume", _st.volume, _arg2, "volume");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
}
}//package com.greensock.plugins
Section 26
//TweenLite (com.greensock.TweenLite)
package com.greensock {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import com.greensock.core.*;
import com.greensock.plugins.*;
public class TweenLite extends TweenCore {
public var target:Object;
protected var _overwrite:uint;
public var ratio:Number;// = 0
protected var _notifyPluginsOfEnabled:Boolean;
protected var _hasPlugins:Boolean;
public var cachedPT1:PropTween;
protected var _overwrittenProps:Object;
public var propTweenLookup:Object;
protected var _ease:Function;
public static const version:Number = 11.3;
public static var rootTimeline:SimpleTimeline;
public static var fastEaseLookup:Dictionary = new Dictionary(false);
public static var onPluginEvent:Function;
public static var rootFramesTimeline:SimpleTimeline;
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var masterList:Dictionary = new Dictionary(false);
public static var overwriteManager:Object;
public static var rootFrame:Number;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _shape:Shape = new Shape();
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, onInit:1, onInitParams:1, onReverseComplete:1, onReverseCompleteParams:1, onRepeat:1, onRepeatParams:1, proxiedEase:1, easeParams:1, yoyo:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, onReverseCompleteListener:1, onRepeatListener:1, orientToBezier:1, timeScale:1, immediateRender:1, repeat:1, repeatDelay:1, timeline:1, data:1, paused:1};
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:Array;
var _local5:TweenLite;
ratio = 0;
super(_arg2, _arg3);
this.target = _arg1;
if ((((this.target is TweenCore)) && (("timeScale" in this.vars)))){
this.cachedTimeScale = 1;
};
propTweenLookup = {};
_ease = defaultEase;
_overwrite = (((!((Number(_arg3.overwrite) > -1))) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
_local4 = masterList[_arg1];
if (!_local4){
masterList[_arg1] = [this];
} else {
if (_overwrite == 1){
for each (_local5 in _local4) {
if (!_local5.gc){
_local5.setEnabled(false, false);
};
};
masterList[_arg1] = [this];
} else {
_local4[_local4.length] = this;
};
};
if (((this.active) || (this.vars.immediateRender))){
renderTime(0, false, true);
};
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:Boolean;
var _local5:Number;
var _local6:PropTween;
_local5 = this.cachedTime;
if (_arg1 >= this.cachedDuration){
this.cachedTotalTime = (this.cachedTime = this.cachedDuration);
this.ratio = 1;
_local4 = true;
if (this.cachedDuration == 0){
if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){
_arg3 = true;
};
_rawPrevTime = _arg1;
};
} else {
if (_arg1 <= 0){
this.cachedTotalTime = (this.cachedTime = (this.ratio = 0));
if (_arg1 < 0){
this.active = false;
if (this.cachedDuration == 0){
if (_rawPrevTime > 0){
_arg3 = true;
_local4 = true;
};
_rawPrevTime = _arg1;
};
};
if (((this.cachedReversed) && (!((_local5 == 0))))){
_local4 = true;
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
this.ratio = _ease(_arg1, 0, 1, this.cachedDuration);
};
};
if ((((this.cachedTime == _local5)) && (!(_arg3)))){
return;
};
if (!this.initted){
init();
if (((!(_local4)) && (this.cachedTime))){
this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration);
};
};
if (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
if ((((((((_local5 == 0)) && (this.vars.onStart))) && (!((this.cachedTime == 0))))) && (!(_arg2)))){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
_local6 = this.cachedPT1;
while (_local6) {
_local6.target[_local6.property] = (_local6.start + (this.ratio * _local6.change));
_local6 = _local6.nextNode;
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local4){
if (((_hasPlugins) && (this.cachedPT1))){
onPluginEvent("onComplete", this);
};
complete(true, _arg2);
};
}
protected function init():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:Boolean;
var _local5:Array;
var _local6:PropTween;
if (this.vars.onInit){
this.vars.onInit.apply(null, this.vars.onInitParams);
};
if (typeof(this.vars.ease) == "function"){
_ease = this.vars.ease;
};
if (this.vars.easeParams){
this.vars.proxiedEase = _ease;
_ease = easeProxy;
};
this.cachedPT1 = null;
this.propTweenLookup = {};
for (_local1 in this.vars) {
if ((((_local1 in _reservedProps)) && (!((((_local1 == "timeScale")) && ((this.target is TweenCore))))))){
} else {
if ((((_local1 in plugins)) && (new ((plugins[_local1] as Class)).onInitTween(this.target, this.vars[_local1], this)))){
this.cachedPT1 = new PropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true, this.cachedPT1);
if (this.cachedPT1.name == "_MULTIPLE_"){
_local2 = _local3.overwriteProps.length;
while (_local2--) {
this.propTweenLookup[_local3.overwriteProps[_local2]] = this.cachedPT1;
};
} else {
this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1;
};
if (_local3.priority){
this.cachedPT1.priority = _local3.priority;
_local4 = true;
};
if (((_local3.onDisable) || (_local3.onEnable))){
_notifyPluginsOfEnabled = true;
};
_hasPlugins = true;
} else {
this.cachedPT1 = new PropTween(this.target, _local1, Number(this.target[_local1]), ((typeof(this.vars[_local1]))=="number") ? (Number(this.vars[_local1]) - this.target[_local1]) : Number(this.vars[_local1]), _local1, false, this.cachedPT1);
this.propTweenLookup[_local1] = this.cachedPT1;
};
};
};
if (_local4){
onPluginEvent("onInit", this);
};
if (this.vars.runBackwards){
_local6 = this.cachedPT1;
while (_local6) {
_local6.start = (_local6.start + _local6.change);
_local6.change = -(_local6.change);
_local6 = _local6.nextNode;
};
};
_hasUpdate = Boolean(!((this.vars.onUpdate == null)));
if (_overwrittenProps){
killVars(_overwrittenProps);
if (this.cachedPT1 == null){
this.setEnabled(false, false);
};
};
if ((((((((_overwrite > 1)) && (this.cachedPT1))) && (masterList[this.target]))) && ((_local5.length > 1)))){
if (overwriteManager.manageOverwrites(this, this.propTweenLookup, _local5, _overwrite)){
init();
};
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
override public function invalidate():void{
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
onPluginEvent("onDisable", this);
};
this.cachedPT1 = null;
_overwrittenProps = null;
_hasUpdate = (this.initted = (this.active = (_notifyPluginsOfEnabled = false)));
this.propTweenLookup = {};
}
public function killVars(_arg1:Object, _arg2:Boolean=true):Boolean{
var _local3:String;
var _local4:PropTween;
var _local5:Boolean;
if (_overwrittenProps == null){
_overwrittenProps = {};
};
for (_local3 in _arg1) {
if ((_local3 in propTweenLookup)){
_local4 = propTweenLookup[_local3];
if (((_local4.isPlugin) && ((_local4.name == "_MULTIPLE_")))){
_local4.target.killProps(_arg1);
if (_local4.target.overwriteProps.length == 0){
_local4.name = "";
};
};
if (_local4.name != "_MULTIPLE_"){
if (_local4.nextNode){
_local4.nextNode.prevNode = _local4.prevNode;
};
if (_local4.prevNode){
_local4.prevNode.nextNode = _local4.nextNode;
} else {
if (this.cachedPT1 == _local4){
this.cachedPT1 = _local4.nextNode;
};
};
if (((_local4.isPlugin) && (_local4.target.onDisable))){
_local4.target.onDisable();
if (_local4.target.activeDisable){
_local5 = true;
};
};
delete propTweenLookup[_local3];
};
};
if (_arg2){
_overwrittenProps[_local3] = 1;
};
};
return (_local5);
}
override public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
var _local3:Array;
if (_arg1){
_local3 = TweenLite.masterList[this.target];
if (!_local3){
TweenLite.masterList[this.target] = [this];
} else {
_local3[_local3.length] = this;
};
};
super.setEnabled(_arg1, _arg2);
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
return (onPluginEvent((_arg1) ? "onEnable" : "onDisable", this));
};
return (false);
}
public static function initClass():void{
rootFrame = 0;
rootTimeline = new SimpleTimeline(null);
rootFramesTimeline = new SimpleTimeline(null);
rootTimeline.cachedStartTime = (getTimer() * 0.001);
rootFramesTimeline.cachedStartTime = rootFrame;
rootTimeline.autoRemoveChildren = true;
rootFramesTimeline.autoRemoveChildren = true;
_shape.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
}
public static function killTweensOf(_arg1:Object, _arg2:Boolean=false, _arg3:Object=null):void{
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
if ((_arg1 in masterList)){
_local4 = masterList[_arg1];
_local5 = _local4.length;
while (_local5--) {
_local6 = _local4[_local5];
if (!_local6.gc){
if (_arg2){
_local6.complete(false, false);
};
if (_arg3 != null){
_local6.killVars(_arg3);
};
if ((((_arg3 == null)) || ((((_local6.cachedPT1 == null)) && (_local6.initted))))){
_local6.setEnabled(false, false);
};
};
};
if (_arg3 == null){
delete masterList[_arg1];
};
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (new TweenLite(_arg1, _arg2, _arg3));
}
protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (1 - (_arg1 / _arg4));
return ((1 - (_arg1 * _arg1)));
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0}));
}
protected static function updateAll(_arg1:Event=null):void{
var _local2:Dictionary;
var _local3:Object;
var _local4:Array;
var _local5:int;
rootTimeline.renderTime((((getTimer() * 0.001) - rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale), false, false);
rootFrame++;
rootFramesTimeline.renderTime(((rootFrame - rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale), false, false);
if (!(rootFrame % 60)){
_local2 = masterList;
for (_local3 in _local2) {
_local4 = _local2[_local3];
_local5 = _local4.length;
while (_local5--) {
if (TweenLite(_local4[_local5]).gc){
_local4.splice(_local5, 1);
};
};
if (_local4.length == 0){
delete _local2[_local3];
};
};
};
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package com.greensock
Section 27
//Color (fl.motion.Color)
package fl.motion {
import flash.display.*;
import flash.geom.*;
public class Color extends ColorTransform {
private var _tintMultiplier:Number;// = 0
private var _tintColor:Number;// = 0
public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){
_tintColor = 0;
_tintMultiplier = 0;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function setTint(_arg1:uint, _arg2:Number):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
_local3 = ((_arg1 >> 16) & 0xFF);
_local4 = ((_arg1 >> 8) & 0xFF);
_local5 = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public function set tintColor(_arg1:uint):void{
this.setTint(_arg1, this.tintMultiplier);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
private function deriveTintColor():uint{
var _local1:Number;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
_local1 = (1 / this.tintMultiplier);
_local2 = Math.round((this.redOffset * _local1));
_local3 = Math.round((this.greenOffset * _local1));
_local4 = Math.round((this.blueOffset * _local1));
_local5 = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set brightness(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
_local2 = (1 - Math.abs(_arg1));
_local3 = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
private function parseXML(_arg1:XML=null):Color{
var _local2:XML;
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
_local2 = _arg1.elements()[0];
if (!_local2){
return (this);
};
for each (_local3 in _local2.attributes()) {
_local4 = _local3.localName();
if (_local4 == "tintColor"){
_local5 = (Number(_local3.toString()) as uint);
this.tintColor = _local5;
} else {
this[_local4] = Number(_local3.toString());
};
};
return (this);
}
public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:uint;
var _local15:uint;
var _local16:uint;
var _local17:uint;
_local4 = (1 - _arg3);
_local5 = ((_arg1 >> 24) & 0xFF);
_local6 = ((_arg1 >> 16) & 0xFF);
_local7 = ((_arg1 >> 8) & 0xFF);
_local8 = (_arg1 & 0xFF);
_local9 = ((_arg2 >> 24) & 0xFF);
_local10 = ((_arg2 >> 16) & 0xFF);
_local11 = ((_arg2 >> 8) & 0xFF);
_local12 = (_arg2 & 0xFF);
_local13 = ((_local5 * _local4) + (_local9 * _arg3));
_local14 = ((_local6 * _local4) + (_local10 * _arg3));
_local15 = ((_local7 * _local4) + (_local11 * _arg3));
_local16 = ((_local8 * _local4) + (_local12 * _arg3));
_local17 = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number;
var _local5:ColorTransform;
_local4 = (1 - _arg3);
_local5 = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3)));
return (_local5);
}
public static function fromXML(_arg1:XML):Color{
return (Color(new (Color).parseXML(_arg1)));
}
}
}//package fl.motion
Section 28
//arrowani_83 (game_fla.arrowani_83)
package game_fla {
import flash.display.*;
public dynamic class arrowani_83 extends MovieClip {
public function arrowani_83(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package game_fla
Section 29
//boat_176 (game_fla.boat_176)
package game_fla {
import flash.display.*;
public dynamic class boat_176 extends MovieClip {
public var a:MovieClip;
}
}//package game_fla
Section 30
//endcopy_224 (game_fla.endcopy_224)
package game_fla {
import flash.display.*;
import flash.text.*;
public dynamic class endcopy_224 extends MovieClip {
public var t2:MovieClip;
public var t1:MovieClip;
public var b:TextField;
public var a:TextField;
}
}//package game_fla
Section 31
//loadbar_4 (game_fla.loadbar_4)
package game_fla {
import flash.display.*;
public dynamic class loadbar_4 extends MovieClip {
public var b:MovieClip;
}
}//package game_fla
Section 32
//points_164 (game_fla.points_164)
package game_fla {
import flash.display.*;
import flash.text.*;
public dynamic class points_164 extends MovieClip {
public var b:TextField;
}
}//package game_fla
Section 33
//score_9 (game_fla.score_9)
package game_fla {
import flash.display.*;
import flash.text.*;
public dynamic class score_9 extends MovieClip {
public var b:TextField;
}
}//package game_fla
Section 34
//sealall_100 (game_fla.sealall_100)
package game_fla {
import flash.display.*;
public dynamic class sealall_100 extends MovieClip {
public var tail:MovieClip;
public var a:MovieClip;
public var nose:MovieClip;
}
}//package game_fla
Section 35
//sealswim_101 (game_fla.sealswim_101)
package game_fla {
import flash.display.*;
public dynamic class sealswim_101 extends MovieClip {
public var leg:MovieClip;
public var head:MovieClip;
public function sealswim_101(){
addFrameScript(16, frame17);
}
function frame17(){
gotoAndPlay(1);
}
}
}//package game_fla
Section 36
//sealswimleg_104 (game_fla.sealswimleg_104)
package game_fla {
import flash.display.*;
public dynamic class sealswimleg_104 extends MovieClip {
public var a:MovieClip;
}
}//package game_fla
Section 37
//subcamera8_76 (game_fla.subcamera8_76)
package game_fla {
import flash.display.*;
public dynamic class subcamera8_76 extends MovieClip {
public var b:MovieClip;
}
}//package game_fla
Section 38
//subcameraall_71 (game_fla.subcameraall_71)
package game_fla {
import flash.display.*;
public dynamic class subcameraall_71 extends MovieClip {
public var b:MovieClip;
public var a:MovieClip;
public function subcameraall_71(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package game_fla
Section 39
//subcameraani1_72 (game_fla.subcameraani1_72)
package game_fla {
import flash.display.*;
public dynamic class subcameraani1_72 extends MovieClip {
public var a:MovieClip;
public function subcameraani1_72(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package game_fla
Section 40
//subcameraani2_81 (game_fla.subcameraani2_81)
package game_fla {
import flash.display.*;
public dynamic class subcameraani2_81 extends MovieClip {
public var a:MovieClip;
public function subcameraani2_81(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package game_fla
Section 41
//Timeline_10 (game_fla.Timeline_10)
package game_fla {
import flash.display.*;
public dynamic class Timeline_10 extends MovieClip {
public var b2:SimpleButton;
public var b1:SimpleButton;
}
}//package game_fla
Section 42
//Timeline_17 (game_fla.Timeline_17)
package game_fla {
import flash.display.*;
public dynamic class Timeline_17 extends MovieClip {
public function Timeline_17(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package game_fla
Section 43
//Timeline_8 (game_fla.Timeline_8)
package game_fla {
import flash.display.*;
public dynamic class Timeline_8 extends MovieClip {
public var a:MovieClip;
}
}//package game_fla
Section 44
//aboutscreen (aboutscreen)
package {
import flash.display.*;
public dynamic class aboutscreen extends MovieClip {
public var button1:SimpleButton;
public var button1txt:MovieClip;
}
}//package
Section 45
//bgcolor (bgcolor)
package {
import flash.display.*;
public dynamic class bgcolor extends MovieClip {
}
}//package
Section 46
//boat (boat)
package {
import flash.display.*;
public dynamic class boat extends MovieClip {
}
}//package
Section 47
//endscreen (endscreen)
package {
import flash.display.*;
import com.game.*;
public dynamic class endscreen extends MovieClip {
public var highscore:MovieClip;
public var button1:SimpleButton;
public var a:slideshow;
public var button1txt:MovieClip;
}
}//package
Section 48
//fish4finani (fish4finani)
package {
import com.fox.*;
public dynamic class fish4finani extends randomstartframe {
}
}//package
Section 49
//fish4tailani (fish4tailani)
package {
import com.fox.*;
public dynamic class fish4tailani extends randomstartframe {
}
}//package
Section 50
//insscreen (insscreen)
package {
import flash.display.*;
public dynamic class insscreen extends MovieClip {
public var button2txt:MovieClip;
public var button1:SimpleButton;
public var button2:SimpleButton;
public var button1txt:MovieClip;
}
}//package
Section 51
//island (island)
package {
import flash.display.*;
public dynamic class island extends MovieClip {
public var a:MovieClip;
}
}//package
Section 52
//o1 (o1)
package {
import com.game.*;
public dynamic class o1 extends fish {
}
}//package
Section 53
//oceanfloor (oceanfloor)
package {
import flash.display.*;
public dynamic class oceanfloor extends MovieClip {
public var a:MovieClip;
}
}//package
Section 54
//onebar (onebar)
package {
import flash.display.*;
public dynamic class onebar extends MovieClip {
public function onebar(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 55
//titlescreen (titlescreen)
package {
import flash.display.*;
public dynamic class titlescreen extends MovieClip {
public var button1:SimpleButton;
public var button1txt:MovieClip;
}
}//package
Section 56
//wave1 (wave1)
package {
import flash.display.*;
public dynamic class wave1 extends MovieClip {
}
}//package
Section 57
//wave2 (wave2)
package {
import flash.display.*;
public dynamic class wave2 extends MovieClip {
}
}//package
Section 58
//zbonus (zbonus)
package {
import flash.media.*;
public dynamic class zbonus extends Sound {
}
}//package
Section 59
//zcount (zcount)
package {
import flash.media.*;
public dynamic class zcount extends Sound {
}
}//package
Section 60
//zloop (zloop)
package {
import flash.media.*;
public dynamic class zloop extends Sound {
}
}//package
Section 61
//zsplash1 (zsplash1)
package {
import flash.media.*;
public dynamic class zsplash1 extends Sound {
}
}//package
Section 62
//zsplash2 (zsplash2)
package {
import flash.media.*;
public dynamic class zsplash2 extends Sound {
}
}//package
Section 63
//ztic (ztic)
package {
import flash.media.*;
public dynamic class ztic extends Sound {
}
}//package
Section 64
//ztink (ztink)
package {
import flash.media.*;
public dynamic class ztink extends Sound {
}
}//package