Section 1
//BackGround (CCGame.BackGround)
package CCGame {
public dynamic class BackGround extends CSprite {
}
}//package CCGame
Section 2
//C0 (CCGame.C0)
package CCGame {
import flash.display.*;
import flash.geom.*;
public class C0 extends Castle {
public var Ctime:MovieClip;
public var pls:Cpls;
public var Sel:MovieClip;
public var Atk:MovieClip;
public var fon:MovieClip;
public function C0():void{
ct = new ColorTransform();
wt = 0;
wp = 1;
ws = 1.5;
}
public function Hiding():void{
}
public function Kill():void{
ct = null;
this.removeChild(pls);
pls.Kill();
pls = null;
}
public function ShowTimer():void{
Ctime.visible = true;
fon.visible = true;
}
public function HideTimer():void{
Ctime.visible = false;
fon.visible = false;
}
public function TimeRender():void{
tr = Math.round(((curdel / maxdel) * 100));
Ctime.gotoAndStop(tr);
}
public function Set(_arg1, _arg2, _arg3, _arg4:int):void{
typ = _arg2;
plr = _arg1;
curdel = 0;
maxdel = 180;
curpop = _arg4;
maxpop = 30;
cost = 1.2;
Sel.gotoAndStop(1);
Atk.gotoAndStop(1);
OutPop();
}
public function OutPop():void{
pls.Out(curpop);
}
public function SetClr(_arg1:ColorTransform):void{
pls.transform.colorTransform = _arg1;
Ctime.transform.colorTransform = _arg1;
fon.transform.colorTransform = _arg1;
if (plr > -1){
ShowTimer();
} else {
HideTimer();
};
}
public function R():void{
if (plr > -1){
if (fon.alpha > 0.3){
fon.alpha = (fon.alpha - 0.02);
};
if (curpop < maxpop){
if (curdel < maxdel){
curdel++;
} else {
curdel = 0;
if ((maxpop - curpop) > 10){
curpop = (curpop + 5);
pls.Add(5);
} else {
pls.Add((maxpop - curpop));
curpop = (curpop + (maxpop - curpop));
};
pls.Out(curpop);
};
} else {
curpop = maxpop;
};
};
pls.Render();
TimeRender();
}
}
}//package CCGame
Section 3
//C1 (CCGame.C1)
package CCGame {
import flash.display.*;
import flash.geom.*;
public class C1 extends Castle {
public var Ctime:MovieClip;
public var pls:Cpls;
public var Sel:MovieClip;
public var Atk:MovieClip;
public var fon:MovieClip;
public function C1():void{
wt = 1;
wp = 2.5;
ws = 1;
}
public function Kill():void{
ct = null;
this.removeChild(pls);
pls.Kill();
pls = null;
}
public function ShowTimer():void{
Ctime.visible = true;
fon.visible = true;
}
public function HideTimer():void{
Ctime.visible = false;
fon.visible = false;
}
public function TimeRender():void{
tr = Math.round(((curdel / maxdel) * 100));
Ctime.gotoAndStop(tr);
}
public function Set(_arg1, _arg2, _arg3, _arg4:int):void{
typ = _arg2;
plr = _arg1;
curdel = 0;
curpop = _arg4;
maxpop = 30;
maxdel = 180;
cost = 1.5;
Sel.gotoAndStop(1);
Atk.gotoAndStop(1);
OutPop();
}
public function OutPop():void{
pls.Out(curpop);
}
public function SetClr(_arg1:ColorTransform):void{
pls.transform.colorTransform = _arg1;
Ctime.transform.colorTransform = _arg1;
fon.transform.colorTransform = _arg1;
if (plr > -1){
ShowTimer();
} else {
HideTimer();
};
}
public function R():void{
if (plr > -1){
if (fon.alpha > 0.3){
fon.alpha = (fon.alpha - 0.02);
};
if (curpop < maxpop){
if (curdel < maxdel){
curdel++;
} else {
curdel = 0;
if ((maxpop - curpop) > 1){
curpop = (curpop + 1);
pls.Add(1);
} else {
pls.Add((maxpop - curpop));
curpop = (curpop + (maxpop - curpop));
};
pls.Out(curpop);
};
} else {
curpop = maxpop;
};
};
pls.Render();
TimeRender();
}
}
}//package CCGame
Section 4
//C2 (CCGame.C2)
package CCGame {
import flash.display.*;
import flash.geom.*;
public class C2 extends Castle {
public var Ctime:MovieClip;
public var pls:Cpls;
public var Sel:MovieClip;
public var Atk:MovieClip;
public function C2():void{
ct = new ColorTransform();
wt = 2;
wp = 1.5;
ws = 2.5;
}
public function Kill():void{
ct = null;
this.removeChild(pls);
pls.Kill();
pls = null;
}
public function ShowTimer():void{
Ctime.visible = true;
}
public function HideTimer():void{
Ctime.visible = false;
}
public function TimeRender():void{
tr = Math.round(((curdel / maxdel) * 100));
Ctime.gotoAndStop(tr);
}
public function Set(_arg1, _arg2, _arg3, _arg4:int):void{
typ = _arg2;
plr = _arg1;
curpop = _arg4;
maxpop = 30;
maxdel = 180;
curpop = _arg4;
cost = 1.2;
OutPop();
}
public function OutPop():void{
pls.Out(curpop);
}
public function SetClr(_arg1:ColorTransform):void{
pls.transform.colorTransform = _arg1;
Ctime.transform.colorTransform = _arg1;
if (plr > -1){
ShowTimer();
} else {
HideTimer();
};
}
public function R():void{
if (plr > -1){
if (curpop < maxpop){
if (curdel < maxdel){
curdel++;
} else {
curdel = 0;
if ((maxpop - curpop) > 2){
curpop = (curpop + 2);
pls.Add(2);
} else {
pls.Add((maxpop - curpop));
curpop = (curpop + (maxpop - curpop));
};
pls.Out(curpop);
};
} else {
curpop = maxpop;
};
};
pls.Render();
TimeRender();
}
}
}//package CCGame
Section 5
//C3 (CCGame.C3)
package CCGame {
import flash.display.*;
import flash.geom.*;
public class C3 extends Castle {
public var body:MovieClip;
public var Ctime:MovieClip;
public var Sel:MovieClip;
public var Atk:MovieClip;
public var fon:MovieClip;
public var pls:Cpls;
public function C3():void{
ct = new ColorTransform();
wt = 3;
wp = 1;
ws = 1.5;
}
public function Kill():void{
ct = null;
this.removeChild(pls);
pls.Kill();
pls = null;
}
public function ShowTimer():void{
Ctime.visible = true;
fon.visible = true;
}
public function HideTimer():void{
Ctime.visible = false;
fon.visible = false;
}
public function TimeRender():void{
var _local1:int = Math.round(((curdel / maxdel) * 100));
Ctime.gotoAndStop(_local1);
}
public function Set(_arg1, _arg2, _arg3, _arg4:int):void{
typ = _arg2;
plr = _arg1;
maxdel = 180;
curpop = _arg4;
maxpop = 30;
cost = 1.2;
Sel.gotoAndStop(1);
Atk.gotoAndStop(1);
OutPop();
}
public function OutPop():void{
pls.Out(curpop);
}
public function SetClr(_arg1:ColorTransform):void{
pls.transform.colorTransform = _arg1;
Ctime.transform.colorTransform = _arg1;
fon.transform.colorTransform = _arg1;
if (plr > -1){
ShowTimer();
} else {
HideTimer();
};
}
public function R():void{
if (plr > -1){
if (fon.alpha > 0.3){
fon.alpha = (fon.alpha - 0.02);
};
if (curpop < maxpop){
if (curdel < maxdel){
curdel++;
} else {
curdel = 0;
if ((maxpop - curpop) > 3){
curpop = (curpop + 3);
pls.Add(3);
} else {
pls.Add((maxpop - curpop));
curpop = (curpop + (maxpop - curpop));
};
pls.Out(curpop);
};
} else {
curpop = maxpop;
};
};
pls.Render();
TimeRender();
}
}
}//package CCGame
Section 6
//C4 (CCGame.C4)
package CCGame {
import flash.display.*;
import flash.geom.*;
public class C4 extends Castle {
public var Ctime:MovieClip;
public var pls:Cpls;
public var Sel:MovieClip;
public var Atk:MovieClip;
public var fon:MovieClip;
public function C4():void{
ct = new ColorTransform();
wt = 0;
wp = 1;
ws = 1.5;
}
public function Kill():void{
ct = null;
this.removeChild(pls);
pls.Kill();
pls = null;
}
public function ShowTimer():void{
Ctime.visible = true;
fon.visible = true;
}
public function HideTimer():void{
Ctime.visible = false;
fon.visible = false;
}
public function TimeRender():void{
tr = Math.round(((curdel / maxdel) * 100));
Ctime.gotoAndStop(tr);
}
public function Set(_arg1, _arg2, _arg3, _arg4:int):void{
typ = 0;
plr = _arg1;
curdel = 0;
maxdel = 180;
curpop = _arg4;
maxpop = 50;
cost = 2.5;
Sel.gotoAndStop(1);
Atk.gotoAndStop(1);
OutPop();
}
public function OutPop():void{
pls.Out(curpop);
}
public function SetClr(_arg1:ColorTransform):void{
pls.transform.colorTransform = _arg1;
Ctime.transform.colorTransform = _arg1;
fon.transform.colorTransform = _arg1;
if (plr > -1){
ShowTimer();
} else {
HideTimer();
};
}
public function R():void{
if (plr > -1){
if (fon.alpha > 0.3){
fon.alpha = (fon.alpha - 0.02);
};
if (curpop < maxpop){
if (curdel < maxdel){
curdel++;
} else {
curdel = 0;
if ((maxpop - curpop) > 10){
curpop = (curpop + 10);
pls.Add(10);
} else {
pls.Add((maxpop - curpop));
curpop = (curpop + (maxpop - curpop));
};
pls.Out(curpop);
};
} else {
curpop = maxpop;
};
};
pls.Render();
TimeRender();
}
}
}//package CCGame
Section 7
//C5 (CCGame.C5)
package CCGame {
import flash.display.*;
import flash.geom.*;
public class C5 extends Castle {
public var Ctime:MovieClip;
public var Sel:MovieClip;
public var Atk:MovieClip;
public var fon:MovieClip;
public var pls:Cpls;
public var rd:Number;
public function C5():void{
ct = new ColorTransform();
rd = 300;
wt = 0;
wp = 1;
ws = 1.5;
pls = new Cpls();
addChild(pls);
}
public function Kill():void{
ct = null;
this.removeChild(pls);
pls.Kill();
pls = null;
}
public function ShowTimer():void{
Ctime.visible = true;
fon.visible = true;
}
public function HideTimer():void{
Ctime.visible = false;
fon.visible = false;
}
public function Set(_arg1, _arg2, _arg3, _arg4:int):void{
typ = _arg2;
plr = _arg1;
lvl = _arg3;
curpop = _arg4;
maxpop = (lvl * 30);
rd = (rd + (100 * lvl));
cost = (lvl * 1);
Sel.gotoAndStop(1);
Atk.gotoAndStop(1);
SetView();
}
public function OutPop():void{
pls.Out(curpop);
}
public function SetView():void{
gotoAndStop(lvl);
pls.y = ((pls.y - (lvl * 9)) + 9);
pls.Out(curpop);
}
public function SetClr(_arg1:ColorTransform):void{
pls.transform.colorTransform = _arg1;
Ctime.transform.colorTransform = _arg1;
fon.transform.colorTransform = _arg1;
if (plr > -1){
ShowTimer();
} else {
HideTimer();
};
}
public function R():void{
if (fon.alpha > 0.3){
fon.alpha = (fon.alpha - 0.02);
};
pls.Render();
}
}
}//package CCGame
Section 8
//C6 (CCGame.C6)
package CCGame {
import flash.display.*;
import flash.geom.*;
public class C6 extends Castle {
public var fire:MovieClip;
public var Ctime:MovieClip;
public var Sel:MovieClip;
public var Atk:MovieClip;
public var fon:MovieClip;
public var pls:Cpls;
public var frate:int;
public var fredy:Boolean;
public function C6():void{
ct = new ColorTransform();
r = 250;
wt = 0;
wp = 1;
ws = 1.5;
fire.gotoAndStop(7);
}
public function Kill():void{
ct = null;
this.removeChild(pls);
pls.Kill();
pls = null;
}
public function Set(_arg1, _arg2, _arg3, _arg4:int):void{
typ = _arg2;
plr = _arg1;
curdel = 0;
maxdel = 100;
curpop = _arg4;
maxpop = 30;
cost = 1.5;
fredy = true;
Sel.gotoAndStop(1);
Atk.gotoAndStop(1);
OutPop();
}
public function SetClr(_arg1:ColorTransform):void{
pls.transform.colorTransform = _arg1;
Ctime.transform.colorTransform = _arg1;
fon.transform.colorTransform = _arg1;
if (plr > -1){
ShowTimer();
} else {
HideTimer();
};
}
public function ShowTimer():void{
fon.visible = true;
}
public function HideTimer():void{
fon.visible = false;
}
public function OutPop():void{
pls.Out(curpop);
}
public function TimeRender():void{
tr = Math.round(((curdel / maxdel) * 100));
Ctime.gotoAndStop(tr);
}
public function R():void{
if (fon.alpha > 0.3){
fon.alpha = (fon.alpha - 0.02);
};
if (fredy == false){
if ((((curdel < maxdel)) && ((curpop > 0)))){
curdel++;
} else {
curdel = 0;
fredy = true;
};
};
pls.Render();
TimeRender();
}
}
}//package CCGame
Section 9
//C7 (CCGame.C7)
package CCGame {
import flash.display.*;
import flash.geom.*;
public class C7 extends Castle {
public var Ctime:MovieClip;
public var Sel:MovieClip;
public var Atk:MovieClip;
public var pls:Cpls;
public var frate:int;
public var fredy:Boolean;
public function C6():void{
ct = new ColorTransform();
r = 100;
wt = 0;
wp = 1;
ws = 1.5;
}
public function Kill():void{
ct = null;
this.removeChild(pls);
pls.Kill();
pls = null;
}
public function Set(_arg1, _arg2, _arg3, _arg4:int):void{
typ = _arg2;
plr = _arg1;
curpop = _arg4;
maxpop = 30;
cost = 1.5;
OutPop();
}
public function SetClr(_arg1:ColorTransform):void{
pls.transform.colorTransform = _arg1;
Ctime.transform.colorTransform = _arg1;
if (plr > -1){
ShowTimer();
} else {
HideTimer();
};
}
public function ShowTimer():void{
Ctime.visible = true;
}
public function HideTimer():void{
Ctime.visible = false;
}
public function OutPop():void{
pls.Out(curpop);
}
public function CalcRate():void{
if (curpop < maxpop){
if (curpop < 1){
frate = 999999;
} else {
frate = (61 - curpop);
tr = Math.round(((frate / 61) * 100));
Ctime.gotoAndStop(tr);
};
} else {
frate = 1;
};
}
public function R():void{
if (fredy == false){
frate--;
if (frate == 0){
fredy = true;
CalcRate();
};
};
pls.Render();
}
}
}//package CCGame
Section 10
//Castle (CCGame.Castle)
package CCGame {
import flash.display.*;
import flash.geom.*;
public class Castle extends MovieClip {
public var plr:int;
public var typ:int;
public var lvl:int;
public var curpop:int;
public var maxpop:int;
public var tr:int;
public var ct:ColorTransform;
public var wp:Number;
public var ws:Number;
public var wt:int;
public var arm:Number;// = 0
public var cost:Number;// = 1
public var sel:Boolean;// = false
public var py:int;
public var ty:int;
public var curdel:int;
public var maxdel:int;
public var sy:Number;
public var r:Number;// = 0
public var so:Number;
}
}//package CCGame
Section 11
//CN (CCGame.CN)
package CCGame {
public class CN extends Castle {
public function CN():void{
typ = -1;
so = 0;
plr = -1;
}
public function Kill():void{
}
}
}//package CCGame
Section 12
//COM (CCGame.COM)
package CCGame {
public class COM {
public var curdel:int;
public var maxdel:int;
public var iterat:int;
public var maxitr:int;
public var pr:Number;
public var a0:Number;
public var a1:Number;
public var a2:Number;
public var a3:Number;
public var plr:int;
public var R:Array;
public var S:Array;
public var CC:Array;
public var CP:Array;
public var CD:Array;
public var act:Boolean;
public var rdy:Boolean;
public var numC:int;
public var nextc:int;
public function COM():void{
}
public function Set(_arg1:int, _arg2:int, _arg3:Array, _arg4:Array, _arg5:Array, _arg6:Array, _arg7:Array):void{
rdy = false;
act = true;
plr = _arg1;
curdel = 180;
maxdel = _arg2;
R = _arg3;
S = _arg7;
CC = _arg4;
CP = _arg5;
CD = _arg6;
}
public function Ren():void{
if (act == true){
if (curdel < maxdel){
curdel = (curdel + 1);
} else {
curdel = 0;
rdy = true;
};
};
}
}
}//package CCGame
Section 13
//Cpls (CCGame.Cpls)
package CCGame {
import flash.display.*;
import flash.text.*;
public class Cpls extends MovieClip {
public var txt:TextField;
public var txt2:TextField;
public var n:int;
public function Cpls():void{
txt2.alpha = 0;
txt.embedFonts = true;
txt2.embedFonts = true;
}
public function Out(_arg1:int):void{
txt.htmlText = (("<FONT FACE='Trebuchet MS' COLOR='#CCCCCC'><b>" + _arg1.toString()) + "</b></FONT>");
}
public function Kill():void{
this.removeChild(txt);
this.removeChild(txt2);
}
public function Add(_arg1:int):void{
if (_arg1 != 0){
txt2.alpha = 1;
txt2.y = -50;
txt2.htmlText = (("<FONT FACE='Trebuchet MS' COLOR='#66CC00'><b>+" + _arg1.toString()) + "</b></FONT>");
};
}
public function Sub(_arg1:int):void{
if (_arg1 != 0){
txt2.alpha = 1;
txt2.y = -50;
txt2.htmlText = (("<FONT FACE='Trebuchet MS' COLOR='#EC0202'><b>-" + _arg1.toString()) + "</b></FONT>");
};
}
public function Render():void{
if (txt2.alpha > 0){
txt2.alpha = (txt2.alpha - 0.03);
};
}
}
}//package CCGame
Section 14
//CSprite (CCGame.CSprite)
package CCGame {
import flash.display.*;
public class CSprite extends MovieClip {
public var frc:Number;// = 0.7
public var spd:Number;// = 15
public var spdx:Number;// = 0
public var spdy:Number;// = 0
public var w:int;// = 800
public var h:int;// = 600
public var snap:int;// = 2
}
}//package CCGame
Section 15
//FirstGround (CCGame.FirstGround)
package CCGame {
public dynamic class FirstGround extends CSprite {
}
}//package CCGame
Section 16
//Ground (CCGame.Ground)
package CCGame {
public dynamic class Ground extends CSprite {
}
}//package CCGame
Section 17
//Instr (CCGame.Instr)
package CCGame {
import flash.display.*;
import flash.events.*;
public class Instr extends MovieClip {
public var b_prev:SimpleButton;
public var b_next:SimpleButton;
public var b_close:SimpleButton;
public var Pages:MovieClip;
public var page:int;
public var mpage:int;
public function Instr():void{
addFrameScript(0, frame1);
page = 1;
mpage = 6;
Pages.gotoAndStop(1);
b_next.addEventListener(MouseEvent.CLICK, on_next);
b_prev.addEventListener(MouseEvent.CLICK, on_prev);
}
public function on_prev(_arg1:Event):void{
page--;
if (page < 1){
page = mpage;
};
Pages.gotoAndStop(page);
}
public function on_next(_arg1:Event):void{
page++;
if (page > mpage){
page = 1;
};
Pages.gotoAndStop(page);
}
function frame1(){
}
}
}//package CCGame
Section 18
//LevelScore (CCGame.LevelScore)
package CCGame {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class LevelScore extends MovieClip {
public var oper:MovieClip;
public var varScore:TextField;
public var curScore:TextField;
public var score:int;
public function LevelScore():void{
Init();
varScore.embedFonts = true;
curScore.embedFonts = true;
}
public function Init():void{
score = 0;
oper.alpha = 0;
varScore.alpha = 0;
curScore.htmlText = score.toString();
}
public function AddScore(_arg1:int):void{
score = (score + _arg1);
Show();
if (_arg1 < 0){
_arg1 = -(_arg1);
oper.gotoAndStop(2);
curScore.htmlText = score.toString();
varScore.htmlText = (("<FONT COLOR='#FF0000'>" + _arg1.toString()) + "</FONT>");
} else {
oper.gotoAndStop(1);
curScore.htmlText = score.toString();
varScore.htmlText = (("<FONT COLOR='#3399CC'>" + _arg1.toString()) + "</FONT>");
};
trace(((("==== AddScore " + score) + " ") + _arg1));
}
public function Show():void{
oper.alpha = 1;
varScore.alpha = 1;
addEventListener(Event.ENTER_FRAME, Hide);
}
public function Hide(_arg1:Event):void{
if (oper.alpha > 0){
oper.alpha = (oper.alpha - 0.02);
varScore.alpha = (varScore.alpha - 0.02);
} else {
oper.alpha = 0;
varScore.alpha = 0;
removeEventListener(Event.ENTER_FRAME, Hide);
};
}
}
}//package CCGame
Section 19
//Main (CCGame.Main)
package CCGame {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.utils.*;
public class Main extends MovieClip {
public var Cur:MovieClip;
public var Pre:preloader;
public var BotMask:MovieClip;
public var TopMask:MovieClip;
public var AllMC:MovieClip;
public var agi_url:String;
public var devKey:String;
public var gameKey:String;
public var agi;
public var urlRequest:URLRequest;
public var loader:Loader;
public var fps:TextField;
public var fr:int;
public var time:int;
public var minfps:int;// = 30
public var maxfps:int;// = 0
public var prevtime:int;// = 0
public var so:SharedObject;
public var lvlw:int;
public var maxlvl:int;
public var curlvl:int;
public var winw:int;
public var type:int;
public var stw:int;
public var tkey:Number;
public var clr:Array;
public var rvdel:int;// = 60
public var ncom:int;// = 3
public var nplr:int;// = 1
public var W:Array;
public var wlist:Array;
public var plist:Array;
public var lr:int;// = 0
public var maxC:int;
public var maxW:int;
public var Clen:int;
public var numW:int;
public var CC:Array;
public var CP:Array;
public var CD:Array;
public var PT:Array;
public var CI:Array;
public var CIlen:int;
public var SM:Array;
public var LM1:Array;
public var LM2:Array;
public var TD1:Array;
public var TD2:Array;
public var AS:Array;
public var AD:Array;
public var AF:Array;
public var AC:Array;
public var map:XML;
public var sstart:m_start;
public var sloop:m_loop;
public var sget_c:get_c;
public var slose_c:lose_c;
public var sguns:guns;
public var shover:hover;
public var stesla:tesla;
public var sslide_m:slide_m;
public var sboom:boom;
public var sC:SoundChannel;
public var mC:SoundChannel;
public var stm:SoundTransform;
public var sts:SoundTransform;
public var soundOn:Boolean;// = true
public var volume:Number;
public var KeyUp:Boolean;// = false
public var KeyDown:Boolean;// = false
public var KeyLEFT:Boolean;// = false
public var KeyRIGHT:Boolean;// = false
public var ctrl:Boolean;// = false
public var key:int;
public var MDown:Boolean;// = false
public var mpx:int;
public var mpr:int;// = 0
public var mlx:int;
public var msx:Number;
public var msy:Number;
public var msd:Number;
public var mcc:int;// = -1
public var scc:Boolean;// = false
public var nsel:int;// = 0
public var paint:Boolean;// = false
public var si:int;
public var sj:int;
public var sk:int;
public var wsi:int;
public var wlr:int;
public var wwt:int;
public var wc:int;
public var wi:int;
public var wlen:int;
public var maxwlist:int;
public var awi:int;
public var rci:int;
public var SG:CSprite;
public var GD:Ground;
public var BG:BackGround;
public var FG:FirstGround;
public var M:M2;
public var VD:VicDef;
public var IF:CSprite;
public var Ins:Instr;
public var ui:UI;
public var LS:LevelScore;
public var R:Array;
public var S:Array;
public var COM1:COM;
public var COM2:COM;
public var COM3:COM;
public var comdelay:int;
public var maxdelay:int;
public var clinks:Boolean;// = false
public var im:int;// = 0
public var Pause:Boolean;// = false
public var load:Boolean;// = false
public var showAds:Boolean;// = true
public var ag:ag_intro;
public var score:int;
public var total:int;
public var Scores:Array;
public function Main():void{
fps = new TextField();
super();
addFrameScript(0, frame1, 1, frame2);
stage.align = StageAlign.LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stw = stage.stageWidth;
stage.addEventListener(Event.RESIZE, onResize);
trace("start loading");
volume = 1;
stm = new SoundTransform(1, 0);
sts = new SoundTransform(1, 0);
}
public function loadComplete(_arg1:Event):void{
agi = _arg1.currentTarget.content;
addChild(agi);
agi.init(devKey, gameKey);
trace("AGI loading complete");
}
public function Loaded(_arg1:Event):void{
trace("loading finished");
load = true;
ag = new ag_intro();
ag.x = int((stw * 0.5));
ag.y = 300;
addChild(ag);
Pre.visible = false;
}
public function StartGame():void{
Scores = new Array();
ag.stop();
removeChild(ag);
InitVars();
MenuShow();
UIMShow();
maxlvl = 12;
LoadLSO();
}
public function ShowScoreBoard(_arg1:Event=null):void{
addChild(agi);
TotalScore();
agi.showScoreboardSubmit(total);
trace("AGI scoreboard show");
}
public function ShowHS():void{
addChild(agi);
agi.showScoreboardList();
trace("AGI high scores");
}
public function onClose(_arg1:Event):void{
}
public function LoadLSO():void{
try {
so = SharedObject.getLocal("ContolCraft");
} catch(e:Error) {
trace("error");
} finally {
trace(("------------ lvl lso " + so.data.lvl));
if ((((so.data.lvl == undefined)) || ((so.data.lvl > 15)))){
so.data.lvl = 1;
so.data.score = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
Scores = so.data.score;
trace(("undefined = " + so.data.lvl));
} else {
maxlvl = so.data.lvl;
Scores = so.data.score;
trace(("savelevel = " + maxlvl));
};
};
so.close();
}
public function SaveLSO():void{
so = SharedObject.getLocal("ContolCraft");
so.data.lvl = maxlvl;
so.data.score = Scores;
trace(("SaveLSO Have array : " + so.data.score));
so.flush();
so.close();
}
public function onSndComplete(_arg1:Event):void{
mC = sloop.play(0, 21000, stm);
}
public function StartMusic():void{
sC = new SoundChannel();
mC = new SoundChannel();
sstart = new m_start();
sloop = new m_loop();
sget_c = new get_c();
slose_c = new lose_c();
stesla = new tesla();
shover = new hover();
sguns = new guns();
sslide_m = new slide_m();
sboom = new boom();
mC = sstart.play(0, 1, stm);
mC.addEventListener(Event.SOUND_COMPLETE, onSndComplete);
}
public function loop(_arg1:Event):void{
time = getTimer();
fr = (1000 / (time - prevtime));
if (fr < minfps){
minfps = fr;
};
if (fr > maxfps){
maxfps = fr;
};
fps.text = (((((("FPS - " + fr) + " (minfps = ") + minfps) + " maxfps = ") + maxfps) + " )");
prevtime = getTimer();
}
public function InitVars():void{
var _local1:int;
fps.width = 300;
maxC = 50;
maxW = 20;
Clen = 0;
numW = 0;
wlen = 0;
maxlvl = 1;
AS = new Array();
AD = new Array();
AF = new Array();
AC = new Array();
AS.push(new s00());
AS.push(new s01());
AS.push(new s02());
AS.push(new s03());
AS.push(new s04());
AS.push(new s05());
AS.push(new s06());
AS.push(new s07());
AS.push(new s08());
AS.push(new s09());
AS.push(new s10());
AS.push(new s11());
AS.push(new s12());
AS.push(new s13());
AD.push(new die1());
AD.push(new die2());
AD.push(new die3());
AD.push(new die4());
AD.push(new die5());
AD.push(new die6());
AD.push(new die7());
AF.push(new f00());
AF.push(new f01());
AF.push(new f02());
AF.push(new f03());
AF.push(new f04());
AF.push(new f05());
AF.push(new f06());
AF.push(new f07());
AC.push(new c00());
AC.push(new c01());
AC.push(new c02());
AC.push(new c03());
AC.push(new c04());
CC = new Array();
CP = new Array();
CD = new Array();
PT = new Array();
CI = new Array();
R = new Array();
S = new Array();
COM1 = new COM();
COM2 = new COM();
COM3 = new COM();
SG = new CSprite();
IF = new CSprite();
GD = new Ground();
BG = new BackGround();
FG = new FirstGround();
Ins = new Instr();
Ins.b_close.addEventListener(MouseEvent.CLICK, HideIns);
M = new M2();
VD = new VicDef();
VD.gotoAndStop(1);
LS = new LevelScore();
addChild(LS);
LS.x = 318;
LS.y = 570;
ui = new UI();
addChild(ui);
ui.x = 727;
ui.y = 570;
ui.b_soff.addEventListener(MouseEvent.CLICK, onSb);
ui.b_son.addEventListener(MouseEvent.CLICK, onSb);
ui.b_i.addEventListener(MouseEvent.CLICK, ShowIns);
ui.b_r.addEventListener(MouseEvent.CLICK, Defeat);
clr = new Array();
PushCLR("cccccc");
PushCLR("3399cc");
PushCLR("7bb93e");
PushCLR("ff9900");
PushCLR("db0202");
W = new Array();
wlist = new Array();
plist = new Array();
maxwlist = (maxW * 5);
_local1 = 0;
while (_local1 < maxwlist) {
wlist.push(null);
plist.push(new Wpls());
_local1++;
};
W.push(new Array());
W.push(new Array());
W.push(new Array());
W.push(new Array());
W[0].push(new Array());
W[0].push(new Array());
W[0].push(new Array());
W[0].push(new Array());
W[1].push(new Array());
W[1].push(new Array());
W[1].push(new Array());
W[1].push(new Array());
W[2].push(new Array());
W[2].push(new Array());
W[2].push(new Array());
W[2].push(new Array());
W[3].push(new Array());
W[3].push(new Array());
W[3].push(new Array());
W[3].push(new Array());
_local1 = 0;
while (_local1 < maxW) {
W[0][0].push(new TSE1());
W[0][0][_local1].SetClr(clr[1]);
W[0][0][_local1].plsh = -42;
W[0][1].push(new TSE2());
W[0][1][_local1].SetClr(clr[1]);
W[0][1][_local1].plsh = -55;
W[0][2].push(new TSE1());
W[0][2][_local1].SetClr(clr[1]);
W[0][2][_local1].plsh = -42;
W[0][3].push(new TSE3());
W[0][3][_local1].SetClr(clr[1]);
W[0][3][_local1].plsh = -48;
W[1][0].push(new TSE1());
W[1][0][_local1].SetClr(clr[2]);
W[1][0][_local1].plsh = -42;
W[1][1].push(new TSE2());
W[1][1][_local1].SetClr(clr[2]);
W[1][1][_local1].plsh = -55;
W[1][2].push(new TSE1());
W[1][2][_local1].SetClr(clr[2]);
W[1][2][_local1].plsh = -42;
W[1][3].push(new TSE3());
W[1][3][_local1].SetClr(clr[2]);
W[1][3][_local1].plsh = -48;
W[2][0].push(new TSE1());
W[2][0][_local1].SetClr(clr[3]);
W[2][0][_local1].plsh = -42;
W[2][1].push(new TSE2());
W[2][1][_local1].SetClr(clr[3]);
W[2][1][_local1].plsh = -55;
W[2][2].push(new TSE1());
W[2][2][_local1].SetClr(clr[3]);
W[2][2][_local1].plsh = -42;
W[2][3].push(new TSE3());
W[2][3][_local1].SetClr(clr[3]);
W[2][3][_local1].plsh = -48;
W[3][0].push(new TSE1());
W[3][0][_local1].SetClr(clr[4]);
W[3][0][_local1].plsh = -42;
W[3][1].push(new TSE2());
W[3][1][_local1].SetClr(clr[4]);
W[3][1][_local1].plsh = -55;
W[3][2].push(new TSE1());
W[3][2][_local1].SetClr(clr[4]);
W[3][2][_local1].plsh = -42;
W[3][3].push(new TSE3());
W[3][3][_local1].SetClr(clr[4]);
W[3][3][_local1].plsh = -48;
_local1++;
};
SM = new Array();
TD1 = new Array();
TD2 = new Array();
LM1 = new Array();
LM2 = new Array();
_local1 = 0;
while (_local1 < 20) {
SM.push(new Exp());
LM1.push(new T1Shock());
LM2.push(new T2Shock());
SM[_local1].gotoAndStop(22);
SM[_local1].visible = false;
TD1.push(new T1Dead());
TD2.push(new T2Dead());
SG.addChild(TD1[_local1]);
SG.addChild(TD2[_local1]);
SG.addChild(LM1[_local1]);
SG.addChild(LM2[_local1]);
SG.addChild(SM[_local1]);
_local1++;
};
trace("init ok");
map = <map>
<lvl></lvl> / / 0
<lvl w="1100"> // level 1
<com c1="150" c2="170" c3="200"></com>
<gr x="0" y="0"></gr>
<wt tp="1"></wt>
<bg tp="1"></bg>
<cs>
<c n="0" x="192" y="288" tp="4" pop="20" plr="0"></c>
<c n="1" x="368" y="275" tp="0" pop="10" plr="-1"></c>
<c n="2" x="464" y="187" tp="0" pop="10" plr="-1"></c>
<c n="3" x="559" y="342" tp="0" pop="10" plr="-1"></c>
<c n="4" x="663" y="258" tp="0" pop="10" plr="-1"></c>
<c n="5" x="834" y="284" tp="0" pop="20" plr="2"></c>
</cs>
<cc>
<c>-1,1,0,0,0,0</c>
<c>1,-1,1,1,0,0</c>
<c>0,1,-1,0,1,0</c>
<c>0,1,0,-1,1,0</c>
<c>0,0,1,1,-1,1</c>
<c>0,0,0,0,1,-1</c>
</cc>
<cd>
<c>0,8,15,18,25,34</c>
<c>8,0,6,10,16,25</c>
<c>15,6,0,16,10,19</c>
<c>18,10,16,0,6,15</c>
<c>25,16,10,6,0,8</c>
<c>34,25,19,15,8,0</c>
</cd>
</lvl>
<lvl w="1200"> // level 2
<com c1="150" c2="100" c3="200"></com>
<gr x="0" y="0"></gr>
<wt tp="1"></wt>
<bg tp="1"></bg>
<cs>
<c n="0" x="337" y="269" tp="1" pop="10" plr="0"></c> // tp = 4
<c n="1" x="243" y="365" tp="0" pop="10" plr="-1"></c>
<c n="2" x="423" y="364" tp="0" pop="10" plr="-1"></c>
<c n="3" x="505" y="269" tp="0" pop="10" plr="-1"></c>
<c n="4" x="670" y="271" tp="0" pop="10" plr="-1"></c>
<c n="5" x="588" y="364" tp="0" pop="10" plr="-1"></c>
<c n="6" x="828" y="273" tp="1" pop="15" plr="2"></c> // tp = 4
<c n="7" x="768" y="363" tp="0" pop="10" plr="-1"></c>
<c n="8" x="936" y="366" tp="0" pop="10" plr="-1"></c>
</cs>
<cc>
<c>-1,1,1,0,0,0,0,0,0</c>
<c>1,-1,1,0,0,0,0,0,0</c>
<c>1,1,-1,1,0,1,0,0,0</c>
<c>0,0,1,-1,1,0,0,0,0</c>
<c>0,0,0,1,-1,1,1,1,0</c>
<c>0,0,1,0,1,-1,0,1,0</c>
<c>0,0,0,0,1,0,-1,1,1</c>
<c>0,0,0,0,1,1,1,-1,1</c>
<c>0,0,0,0,0,0,1,1,-1</c>
</cc>
<cd>
<c>-1,134,128,253,417,293,575,473,641</c>
<c>134,-1,180,305,469,345,627,525,693</c>
<c>128,180,-1,125,289,165,447,345,513</c>
<c>253,305,125,-1,165,289,323,299,466</c>
<c>417,469,289,165,-1,124,158,134,301</c>
<c>293,345,165,289,124,-1,282,180,348</c>
<c>575,627,447,323,158,282,-1,108,143</c>
<c>473,525,345,299,134,180,108,-1,168</c>
<c>641,693,513,466,301,348,143,168,-1</c>
</cd>
</lvl>
<lvl w="1200"> // level 3
<com c1="200" c2="170" c3="160"></com>
<gr x="0" y="0"></gr>
<wt tp="1"></wt>
<bg tp="1"></bg>
<cs>
<c n="0" x="546" y="144" tp="0" pop="20" plr="1"></c>
<c n="1" x="275" y="206" tp="0" pop="20" plr="3"></c>
<c n="2" x="450" y="224" tp="0" pop="5" plr="-1"></c>
<c n="3" x="375" y="361" tp="0" pop="5" plr="-1"></c>
<c n="4" x="427" y="451" tp="0" pop="10" plr="3"></c>
<c n="5" x="545" y="365" tp="8" pop="0" plr="-1"></c>
<c n="6" x="680" y="348" tp="0" pop="20" plr="2"></c>
<c n="7" x="629" y="232" tp="0" pop="10" plr="1"></c>
<c n="8" x="902" y="143" tp="3" pop="20" plr="0"></c>
<c n="9" x="300" y="208" tp="8" pop="0" plr="-1"></c>
<c n="10" x="311" y="223" tp="8" pop="0" plr="-1"></c>
<c n="11" x="509" y="145" tp="8" pop="0" plr="-1"></c>
<c n="12" x="582" y="145" tp="8" pop="0" plr="-1"></c>
<c n="13" x="392" y="361" tp="8" pop="0" plr="-1"></c>
<c n="14" x="513" y="362" tp="1" pop="5" plr="-1"></c>
<c n="15" x="463" y="450" tp="8" pop="0" plr="-1"></c>
<c n="16" x="481" y="223" tp="8" pop="0" plr="-1"></c>
<c n="17" x="506" y="233" tp="8" pop="0" plr="-1"></c>
<c n="18" x="644" y="364" tp="8" pop="0" plr="-1"></c>
<c n="19" x="652" y="282" tp="8" pop="0" plr="-1"></c>
</cs>
<cc>
<c>-1,0,0,0,0,0,0,0,-1,0,0,1,1,0,0,0,0,0,0,-1</c>
<c>0,-1,0,0,0,0,0,0,-1,1,0,0,0,0,0,0,0,0,0,-1</c>
<c>0,0,-1,0,0,0,0,0,-1,0,1,1,0,0,0,0,1,0,0,-1</c>
<c>0,0,0,-1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,0,-1</c>
<c>0,0,0,0,-1,0,0,0,-1,0,0,0,0,0,0,1,0,0,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,12,7,1,6,15,14,4,0</c>
<c>21,32,23,15,15,6,0,14,0,31,30,23,19,14,8,13,22,20,1,0</c>
<c>6,18,9,16,16,7,14,0,0,16,16,8,4,15,9,14,7,6,12,0</c>
<c>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</c>
<c>14,1,7,18,30,24,31,16,0,0,0,12,16,17,23,28,9,10,29,0</c>
<c>13,2,6,17,29,23,30,16,0,0,0,11,15,16,22,27,8,9,28,0</c>
<c>1,14,4,15,24,16,23,8,0,12,11,0,3,14,18,23,6,7,21,0</c>
<c>1,17,8,19,21,12,19,4,0,16,15,3,0,18,14,19,10,11,17,0</c>
<c>16,18,9,0,12,7,14,15,0,17,16,14,18,0,6,11,8,9,12,0</c>
<c>16,24,15,6,6,1,8,9,0,23,22,18,14,6,0,5,14,15,6,0</c>
<c>21,30,20,11,1,6,13,14,0,28,27,23,19,11,5,0,19,20,11,0</c>
<c>8,10,1,9,21,15,22,7,0,9,8,6,10,8,14,19,0,1,20,0</c>
<c>9,12,2,10,22,14,20,6,0,10,9,7,11,9,15,20,1,0,18,0</c>
<c>19,31,21,13,13,4,1,12,0,29,28,21,17,12,6,11,20,18,0,0</c>
<c>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</c>
</cd>
</lvl>
<lvl w="1200"> // level 4
<com c1="150" c2="100" c3="160"></com>
<gr x="0" y="0"></gr>
<wt tp="1"></wt>
<bg tp="1"></bg>
<cs>
<c n="0" x="337" y="293" tp="0" pop="10" plr="-1"></c>
<c n="1" x="477" y="292" tp="0" pop="5" plr="-1"></c>
<c n="2" x="809" y="238" tp="0" pop="15" plr="1"></c>
<c n="3" x="674" y="292" tp="0" pop="5" plr="-1"></c>
<c n="4" x="277" y="346" tp="8" pop="10" plr="0"></c>
<c n="5" x="366" y="390" tp="0" pop="10" plr="0"></c>
<c n="6" x="916" y="293" tp="0" pop="10" plr="-1"></c>
<c n="7" x="725" y="393" tp="0" pop="10" plr="-1"></c>
<c n="8" x="526" y="391" tp="0" pop="5" plr="-1"></c>
<c n="9" x="638" y="439" tp="0" pop="15" plr="3"></c>
<c n="10" x="559" y="391" tp="8" pop="10" plr="0"></c>
<c n="11" x="672" y="440" tp="8" pop="10" plr="0"></c>
<c n="12" x="607" y="441" tp="8" pop="10" plr="0"></c>
<c n="13" x="740" y="288" tp="8" pop="10" plr="0"></c>
<c n="14" x="777" y="241" tp="8" pop="10" plr="0"></c>
<c n="15" x="842" y="240" tp="8" pop="10" plr="0"></c>
<c n="16" x="884" y="291" tp="8" pop="10" plr="0"></c>
<c n="17" x="322" y="390" tp="8" pop="10" plr="0"></c>
<c n="18" x="764" y="394" tp="8" pop="10" plr="0"></c>
</cs>
<cc>
<c>-1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0</c>
<c>1,-1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0</c>
<c>0,0,-1,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0</c>
<c>0,1,0,-1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0</c>
<c>1,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,1,0</c>
<c>0,1,0,0,0,-1,0,0,1,0,0,0,0,0,0,0,0,1,0</c>
<c>0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,1,0,0</c>
<c>0,0,0,0,0,0,0,-1,0,0,1,1,0,0,0,0,0,0,1</c>
<c>0,0,0,0,0,1,0,0,-1,0,1,0,0,0,0,0,0,0,0</c>
<c>0,0,0,0,0,0,0,0,0,-1,0,1,1,0,0,0,0,0,0</c>
<c>0,0,0,0,0,0,0,1,1,0,-1,0,1,0,0,0,0,0,0</c>
<c>0,0,0,0,0,0,0,1,0,1,0,-1,0,0,0,0,0,0,0</c>
<c>0,0,0,0,0,0,0,0,0,1,1,0,-1,0,0,0,0,0,0</c>
<c>0,0,0,1,0,0,0,0,0,0,0,0,0,-1,1,0,0,0,0</c>
<c>0,0,1,0,0,0,0,0,0,0,0,0,0,1,-1,0,0,0,0</c>
<c>0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,-1,1,0,0</c>
<c>0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,-1,0,1</c>
<c>0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,-1,0</c>
<c>0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,-1</c>
</cc>
<cd>
<c>0,7,24,16,4,9,31,27,17,24,19,25,22,20,23,26,29,7,29</c>
<c>7,0,17,9,11,7,24,25,15,22,17,23,20,13,16,19,22,9,27</c>
<c>24,17,0,7,28,25,6,14,24,20,23,18,21,4,1,1,4,27,12</c>
<c>16,9,7,0,20,17,14,22,25,27,26,26,29,3,6,9,12,19,20</c>
<c>4,11,28,20,0,5,34,23,13,20,15,21,18,24,27,30,33,3,25</c>
<c>9,7,25,17,5,0,29,17,8,14,9,16,13,20,23,26,27,2,19</c>
<c>31,24,6,14,34,29,0,11,21,16,19,15,18,11,8,4,1,31,9</c>
<c>27,25,14,22,23,17,11,0,9,5,8,3,6,19,16,13,9,20,1</c>
<c>17,15,24,25,13,8,21,9,0,6,1,8,5,28,26,23,19,10,11</c>
<c>24,22,20,27,20,14,16,5,6,0,5,1,1,24,21,18,15,16,7</c>
<c>19,17,23,26,15,9,19,8,1,5,0,6,3,27,24,21,18,11,10</c>
<c>25,23,18,26,21,16,15,3,8,1,6,0,3,22,19,16,13,18,5</c>
<c>22,20,21,29,18,13,18,6,5,1,3,3,0,26,23,19,16,15,8</c>
<c>20,13,4,3,24,20,11,19,28,24,27,22,26,0,3,6,9,22,17</c>
<c>23,16,1,6,27,23,8,16,26,21,24,19,23,3,0,3,6,25,14</c>
<c>26,19,1,9,30,26,4,13,23,18,21,16,19,6,3,0,3,29,11</c>
<c>29,22,4,12,33,27,1,9,19,15,18,13,16,9,6,3,0,30,7</c>
<c>7,9,27,19,3,2,31,20,10,16,11,18,15,22,25,29,30,0,22</c>
<c>29,27,12,20,25,19,9,1,11,7,10,5,8,17,14,11,7,22,0</c>
</cd>
</lvl>
<lvl w="1200"> // level 5
<com c1="150" c2="170" c3="200"></com>
<gr x="0" y="0"></gr>
<wt tp="1"></wt>
<bg tp="1"></bg>
<cs>
<c n="0" x="100" y="393" tp="0" pop="5" plr="-1"></c>
<c n="1" x="152" y="393" tp="8" pop="10" plr="0"></c>
<c n="2" x="237" y="253" tp="0" pop="10" plr="-1"></c>
<c n="3" x="271" y="253" tp="8" pop="10" plr="0"></c>
<c n="4" x="386" y="330" tp="0" pop="10" plr="0"></c>
<c n="5" x="327" y="330" tp="8" pop="10" plr="0"></c>
<c n="6" x="437" y="267" tp="8" pop="10" plr="0"></c>
<c n="7" x="493" y="266" tp="3" pop="10" plr="-1"></c>
<c n="8" x="511" y="425" tp="3" pop="10" plr="-1"></c>
<c n="9" x="456" y="426" tp="8" pop="10" plr="0"></c>
<c n="10" x="712" y="427" tp="3" pop="5" plr="-1"></c>
<c n="11" x="750" y="270" tp="3" pop="5" plr="-1"></c>
<c n="12" x="899" y="331" tp="0" pop="25" plr="2"></c>
<c n="13" x="793" y="270" tp="8" pop="10" plr="0"></c>
<c n="14" x="769" y="428" tp="8" pop="10" plr="0"></c>
<c n="15" x="831" y="332" tp="8" pop="10" plr="0"></c>
<c n="16" x="973" y="388" tp="0" pop="5" plr="-1"></c>
<c n="17" x="1047" y="267" tp="0" pop="5" plr="-1"></c>
<c n="18" x="995" y="267" tp="8" pop="10" plr="0"></c>
<c n="19" x="932" y="388" tp="8" pop="10" plr="0"></c>
</cs>
<cc>
<c>-1,1,0,0,0,0,0,0,0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1</c>
<c>1,-1,0,0,0,1,0,0,0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1</c>
<c>0,0,-1,1,0,0,0,0,0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1</c>
<c>0,0,1,-1,0,1,0,0,0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1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0,0,0,0,0,0,0,0</c>
<c>16,14,1,0,7,4,11,14,16,13,0,0,0,0,0,0,0,0,0,0</c>
<c>14,12,9,7,0,2,4,6,8,5,0,0,0,0,0,0,0,0,0,0</c>
<c>11,9,6,4,2,0,7,9,11,8,0,0,0,0,0,0,0,0,0,0</c>
<c>18,16,13,11,4,7,0,2,12,10,0,0,0,0,0,0,0,0,0,0</c>
<c>20,19,12,14,6,9,2,0,8,12,13,12,20,0,0,0,24,27,0,0</c>
<c>20,20,16,16,7,11,12,8,0,2,10,14,19,0,0,0,23,27,0,0</c>
<c>20,18,15,13,5,8,10,12,2,0,0,0,0,0,0,0,0,0,0,0</c>
<c>30,0,25,0,17,0,0,13,10,0,0,8,10,12,2,8,13,18,17,15</c>
<c>33,0,25,0,18,0,0,12,14,0,8,0,8,2,11,5,12,14,14,12</c>
<c>0,0,0,0,0,0,0,0,0,0,11,9,0,7,9,3,5,8,5,3</c>
<c>0,0,0,0,0,0,0,0,0,0,12,2,7,0,9,3,12,15,12,10</c>
<c>0,0,0,0,0,0,0,0,0,0,2,11,9,9,0,5,14,17,14,12</c>
<c>0,0,0,0,0,0,0,0,0,0,8,5,3,3,5,0,8,11,9,6</c>
<c>0,0,0,0,0,0,0,0,0,0,17,14,5,12,14,8,0,13,11,2</c>
<c>0,0,0,0,0,0,0,0,0,0,20,17,8,15,17,11,13,0,2,11</c>
<c>0,0,0,0,0,0,0,0,0,0,17,14,5,12,14,9,11,2,0,9</c>
<c>0,0,0,0,0,0,0,0,0,0,15,12,3,10,12,6,2,11,9,0</c>
</cd>
</lvl>
<lvl w="1200"> // level 6
<com c1="150" c2="170" c3="200"></com>
<gr x="0" y="0"></gr>
<wt tp="1"></wt>
<bg tp="1"></bg>
<cs>
<c n="0" x="112" y="409" tp="1" pop="10" plr="-1"></c>
<c n="1" x="310" y="361" tp="0" pop="10" plr="-1"></c>
<c n="2" x="482" y="446" tp="0" pop="10" plr="-1"></c>
<c n="3" x="461" y="306" tp="0" pop="10" plr="-1"></c>
<c n="4" x="614" y="223" tp="4" pop="10" plr="-1"></c>
<c n="5" x="777" y="274" tp="0" pop="10" plr="3"></c>
<c n="6" x="816" y="386" tp="0" pop="10" plr="-1"></c>
<c n="7" x="1012" y="461" tp="1" pop="5" plr="-1"></c>
<c n="8" x="734" y="451" tp="0" pop="10" plr="-1"></c>
<c n="9" x="844" y="495" tp="0" pop="20" plr="2"></c>
<c n="10" x="304" y="494" tp="0" pop="15" plr="0"></c>
<c n="11" x="176" y="410" tp="8" pop="10" plr="0"></c>
<c n="12" x="226" y="361" tp="8" pop="10" plr="0"></c>
<c n="13" x="211" y="410" tp="8" pop="10" plr="0"></c>
<c n="14" x="276" y="494" tp="8" pop="15" plr="0"></c>
<c n="15" x="388" y="496" tp="8" pop="10" plr="0"></c>
<c n="16" x="443" y="447" tp="8" pop="10" plr="0"></c>
<c n="17" x="533" y="446" tp="8" pop="10" plr="0"></c>
<c n="18" x="582" y="495" tp="8" pop="10" plr="0"></c>
<c n="19" x="687" y="493" tp="8" pop="10" plr="0"></c>
<c n="20" x="900" y="494" tp="8" pop="10" plr="0"></c>
<c n="21" x="932" y="461" tp="8" pop="10" plr="0"></c>
<c n="22" x="860" y="387" tp="8" pop="10" plr="0"></c>
<c n="23" x="659" y="367" tp="8" pop="10" plr="0"></c>
<c n="24" x="630" y="364" tp="0" pop="10" plr="-1"></c>
<c n="25" x="547" y="364" tp="8" pop="10" plr="0"></c>
<c n="26" x="724" y="274" tp="8" pop="10" plr="0"></c>
<c n="27" x="661" y="223" tp="8" pop="10" plr="0"></c>
<c n="28" x="578" y="223" tp="8" pop="10" plr="0"></c>
<c n="29" x="550" y="252" tp="8" pop="10" plr="0"></c>
<c n="30" x="508" y="251" tp="8" pop="10" plr="0"></c>
<c n="31" x="564" y="305" tp="8" pop="10" plr="0"></c>
<c n="32" x="401" y="365" tp="8" pop="10" plr="0"></c>
<c n="33" x="634" y="494" tp="0" pop="10" plr="-1"></c>
</cs>
<cc>
<c>-1,0,0,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0,0,0,0,0,0,0,0,0,0,0,1,-1,0,0,0,0,0,0</c>
<c>0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,1,0,0,0,0</c>
<c>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-1,1,0,0,0</c>
<c>0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-1,0,0,0</c>
<c>0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,-1,0,0</c>
<c>0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,0</c>
<c>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,-1</c>
</cc>
<cd>
<c>0,10,21,40,43,39,40,49,35,40,11,3,6,4,10,15,19,23,27,32,43,45,43,32,30,26,37,41,45,45,43,35,15,29</c>
<c>10,0,10,29,32,28,29,38,24,29,16,7,4,9,14,15,12,12,16,21,32,34,32,21,19,15,26,30,34,35,32,24,4,18</c>
<c>21,10,0,19,22,18,19,28,14,19,9,18,14,16,11,5,1,2,6,11,21,24,21,10,9,5,15,19,24,24,22,13,5,8</c>
<c>40,29,19,0,9,18,21,33,16,27,28,37,33,35,30,24,20,21,25,19,30,29,24,11,9,13,15,11,7,5,3,5,24,22</c>
<c>43,32,22,9,0,9,25,36,20,31,32,40,36,38,33,27,24,24,28,23,33,32,27,14,12,17,6,2,1,3,5,14,28,25</c>
<c>39,28,18,18,9,0,21,32,16,27,28,36,33,35,29,24,20,21,24,19,30,28,23,10,9,13,2,6,10,12,14,13,24,22</c>
<c>40,29,19,21,25,21,0,11,5,12,29,37,34,36,30,25,21,17,13,8,9,7,2,10,12,16,18,22,27,27,25,16,25,11</c>
<c>49,38,28,33,36,32,11,0,16,9,38,46,42,44,39,33,30,25,22,16,6,4,9,22,23,27,30,34,38,39,36,28,33,19</c>
<c>35,24,14,16,20,16,5,16,0,11,24,32,28,30,25,20,16,11,8,3,13,12,7,5,7,11,13,17,21,22,20,11,20,5</c>
<c>40,29,19,27,31,27,12,9,11,0,28,37,33,35,30,24,21,16,13,7,2,5,10,16,18,22,24,28,32,33,31,22,24,10</c>
<c>11,16,9,28,32,28,29,38,24,28,0,8,11,6,1,4,7,12,15,21,31,34,31,20,19,15,25,29,33,34,32,23,15,18</c>
<c>3,7,18,37,40,36,37,46,32,37,8,0,3,1,7,12,16,20,24,29,39,42,39,28,27,23,33,37,42,42,40,31,12,26</c>
<c>6,4,14,33,36,33,34,42,28,33,11,3,0,5,10,16,16,17,20,25,36,38,36,25,23,19,30,34,38,39,37,28,8,23</c>
<c>4,9,16,35,38,35,36,44,30,35,6,1,5,0,5,10,14,19,22,27,38,40,38,27,25,21,32,36,40,41,39,30,14,25</c>
<c>10,14,11,30,33,29,30,39,25,30,1,7,10,5,0,5,9,13,17,22,33,35,33,22,20,16,27,31,35,35,33,25,17,19</c>
<c>15,15,5,24,27,24,25,33,20,24,4,12,16,10,5,0,3,8,11,16,27,29,27,16,15,10,21,25,29,30,28,19,11,14</c>
<c>19,12,1,20,24,20,21,30,16,21,7,16,16,14,9,3,0,4,7,13,23,26,23,12,11,7,17,21,26,26,24,15,7,10</c>
<c>23,12,2,21,24,21,17,25,11,16,12,20,17,19,13,8,4,0,3,8,19,21,19,13,11,7,18,22,26,27,25,16,8,6</c>
<c>27,16,6,25,28,24,13,22,8,13,15,24,20,22,17,11,7,3,0,5,15,18,15,14,15,11,21,25,30,30,28,19,11,2</c>
<c>32,21,11,19,23,19,8,16,3,7,21,29,25,27,22,16,13,8,5,0,10,12,10,8,10,14,16,20,24,25,23,14,17,2</c>
<c>43,32,21,30,33,30,9,6,13,2,31,39,36,38,33,27,23,19,15,10,0,2,7,19,20,25,27,31,35,36,34,25,27,13</c>
<c>45,34,24,29,32,28,7,4,12,5,34,42,38,40,35,29,26,21,18,12,2,0,5,18,19,23,26,30,34,35,32,24,29,15</c>
<c>43,32,21,24,27,23,2,9,7,10,31,39,36,38,33,27,23,19,15,10,7,5,0,13,14,18,21,25,29,29,27,19,27,13</c>
<c>32,21,10,11,14,10,10,22,5,16,20,28,25,27,22,16,12,13,14,8,19,18,13,0,1,5,7,12,16,16,14,5,16,11</c>
<c>30,19,9,9,12,9,12,23,7,18,19,27,23,25,20,15,11,11,15,10,20,19,14,1,0,4,6,10,14,15,13,4,15,12</c>
<c>26,15,5,13,17,13,16,27,11,22,15,23,19,21,16,10,7,7,11,14,25,23,18,5,4,0,10,14,18,19,17,8,11,13</c>
<c>37,26,15,15,6,2,18,30,13,24,25,33,30,32,27,21,17,18,21,16,27,26,21,7,6,10,0,4,8,10,12,10,21,19</c>
<c>41,30,19,11,2,6,22,34,17,28,29,37,34,36,31,25,21,22,25,20,31,30,25,12,10,14,4,0,4,6,8,15,25,23</c>
<c>45,34,24,7,1,10,27,38,21,32,33,42,38,40,35,29,26,26,30,24,35,34,29,16,14,18,8,4,0,2,4,12,29,27</c>
<c>45,35,24,5,3,12,27,39,22,33,34,42,39,41,35,30,26,27,30,25,36,35,29,16,15,19,10,6,2,0,2,10,30,28</c>
<c>43,32,22,3,5,14,25,36,20,31,32,40,37,39,33,28,24,25,28,23,34,32,27,14,13,17,12,8,4,2,0,8,28,26</c>
<c>35,24,13,5,14,13,16,28,11,22,23,31,28,30,25,19,15,16,19,14,25,24,19,5,4,8,10,15,12,10,8,0,19,17</c>
<c>15,4,5,24,28,24,25,33,20,24,15,12,8,14,17,11,7,8,11,17,27,29,27,16,15,11,21,25,29,30,28,19,0,14</c>
<c>29,18,8,22,25,22,11,19,5,10,18,26,23,25,19,14,10,6,2,2,13,15,13,11,12,13,19,23,27,28,26,17,14,0</c>
</cd>
</lvl>
<lvl w="1200"> // level 7
<com c1="200" c2="170" c3="160"></com>
<gr x="0" y="0"></gr>
<wt tp="1"></wt>
<bg tp="1"></bg>
<cs>
<c n="0" x="249" y="245" tp="1" pop="10" plr="-1"></c>
<c n="1" x="445" y="192" tp="0" pop="10" plr="-1"></c>
<c n="2" x="803" y="191" tp="0" pop="10" plr="-1"></c>
<c n="3" x="245" y="430" tp="0" pop="15" plr="0"></c>
<c n="4" x="433" y="340" tp="0" pop="10" plr="-1"></c>
<c n="5" x="623" y="217" tp="4" pop="20" plr="-1"></c>
<c n="6" x="821" y="343" tp="0" pop="10" plr="-1"></c>
<c n="7" x="629" y="455" tp="0" pop="10" plr="-1"></c>
<c n="8" x="1004" y="436" tp="0" pop="30" plr="1"></c>
<c n="9" x="1014" y="244" tp="1" pop="10" plr="-1"></c>
<c n="10" x="428" y="495" tp="0" pop="10" plr="-1"></c>
<c n="11" x="821" y="495" tp="0" pop="5" plr="-1"></c>
<c n="12" x="300" y="429" tp="8" pop="10" plr="0"></c>
<c n="13" x="294" y="243" tp="8" pop="10" plr="0"></c>
<c n="14" x="555" y="193" tp="8" pop="10" plr="0"></c>
<c n="15" x="589" y="216" tp="8" pop="10" plr="0"></c>
<c n="16" x="659" y="215" tp="8" pop="10" plr="0"></c>
<c n="17" x="695" y="190" tp="8" pop="10" plr="0"></c>
<c n="18" x="958" y="243" tp="8" pop="10" plr="0"></c>
<c n="19" x="856" y="342" tp="8" pop="10" plr="0"></c>
<c n="20" x="786" y="344" tp="8" pop="10" plr="0"></c>
<c n="21" x="396" y="340" tp="8" pop="10" plr="0"></c>
<c n="22" x="466" y="340" tp="8" pop="10" plr="0"></c>
<c n="23" x="357" y="495" tp="8" pop="10" plr="0"></c>
<c n="24" x="547" y="495" tp="8" pop="10" plr="0"></c>
<c n="25" x="583" y="455" tp="8" pop="10" plr="0"></c>
<c n="26" x="668" y="457" tp="8" pop="10" plr="0"></c>
<c n="27" x="713" y="494" tp="8" pop="10" plr="0"></c>
<c n="28" x="766" y="495" tp="8" pop="10" plr="0"></c>
<c n="29" x="892" y="493" t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0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,-1,1,0,0,0,0,0</c>
<c>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-1,1,0,0,0,0</c>
<c>0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-1,0,0,0,0</c>
<c>0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,1,0,0</c>
<c>0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,-1,0,0</c>
<c>0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,0</c>
<c>0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,-1</c>
</cc>
<cd>
<c>0,10,29,18,11,20,32,23,43,41,23,33,15,2,16,18,21,24,38,34,30,9,12,20,23,21,25,28,30,37,41,6,34</c>
<c>10,0,18,24,17,9,21,26,32,30,30,36,22,8,5,7,11,13,27,23,20,15,16,26,27,24,28,31,33,34,30,4,23</c>
<c>29,18,0,32,21,9,17,26,25,11,36,30,29,27,13,11,7,5,8,15,16,23,19,34,30,28,24,27,30,27,22,23,4</c>
<c>18,24,32,0,11,23,33,21,42,44,10,31,2,16,23,21,25,27,41,35,31,9,12,7,16,19,23,26,29,35,39,20,37</c>
<c>11,17,21,11,0,12,24,12,32,33,16,22,8,8,12,10,13,16,30,25,22,1,1,12,12,9,14,17,19,25,30,12,26</c>
<c>20,9,9,23,12,0,12,20,23,20,27,27,20,17,3,1,1,4,18,14,10,13,10,24,21,18,19,21,24,25,21,14,14</c>
<c>32,21,17,33,24,12,0,11,11,11,22,16,30,30,16,14,10,13,8,1,1,25,22,26,16,14,9,12,15,12,8,26,12</c>
<c>23,26,26,21,12,20,11,0,20,23,10,10,18,21,21,19,19,21,20,13,10,14,10,14,5,2,1,4,7,13,18,24,24</c>
<c>43,32,25,42,32,23,11,20,0,19,31,10,39,41,27,25,21,24,16,9,12,34,30,34,25,22,18,15,12,6,2,37,20</c>
<c>41,30,11,44,33,20,11,23,19,0,34,24,41,38,24,22,19,16,2,9,13,34,31,38,28,25,21,24,27,21,16,35,6</c>
<c>23,30,36,10,16,27,22,10,31,34,0,21,7,21,27,25,29,31,31,24,21,14,16,3,5,8,12,15,18,24,29,25,35</c>
<c>33,36,30,31,22,27,16,10,10,24,21,0,29,31,31,29,25,27,21,14,16,24,20,24,15,12,8,5,2,3,7,35,25</c>
<c>15,22,29,2,8,20,30,18,39,41,7,29,0,13,20,18,22,24,38,32,28,6,10,4,13,16,20,23,26,32,36,17,34</c>
<c>2,8,27,16,8,17,30,21,41,38,21,31,13,0,14,16,19,21,36,32,28,7,10,17,21,18,23,25,28,34,39,3,32</c>
<c>16,5,13,23,12,3,16,21,27,24,27,31,20,14,0,2,5,7,21,18,14,14,10,25,21,19,22,25,28,29,25,10,18</c>
<c>18,7,11,21,10,1,14,19,25,22,25,29,18,16,2,0,3,5,19,16,12,12,8,23,19,16,20,23,26,27,22,12,16</c>
<c>21,11,7,25,13,1,10,19,21,19,29,25,22,19,5,3,0,2,16,12,9,15,12,26,23,20,17,20,22,23,19,15,12</c>
<c>24,13,5,27,16,4,13,21,24,16,31,27,24,21,7,5,2,0,14,14,11,17,14,28,25,22,19,22,24,25,21,18,10</c>
<c>38,27,8,41,30,18,8,20,16,2,31,21,38,36,21,19,16,14,0,7,10,32,28,35,25,23,18,21,24,18,14,32,3</c>
<c>34,23,15,35,25,14,1,13,9,9,24,14,32,32,18,16,12,14,7,0,3,27,24,28,18,15,11,14,17,11,6,28,10</c>
<c>30,20,16,31,22,10,1,10,12,13,21,16,28,28,14,12,9,11,10,3,0,24,20,24,15,12,8,11,13,14,10,24,14</c>
<c>9,15,23,9,1,13,25,14,34,34,14,24,6,7,14,12,15,17,32,27,24,0,3,10,14,11,15,18,21,27,32,10,28</c>
<c>12,16,19,12,1,10,22,10,30,31,16,20,10,10,10,8,12,14,28,24,20,3,0,14,10,8,12,15,18,24,28,14,24</c>
<c>20,26,34,7,12,24,26,14,34,38,3,24,4,17,25,23,26,28,35,28,24,10,14,0,9,12,16,19,22,28,32,21,39</c>
<c>23,27,30,16,12,21,16,5,25,28,5,15,13,21,21,19,23,25,25,18,15,14,10,9,0,2,6,9,12,18,23,25,29</c>
<c>21,24,28,19,9,18,14,2,22,25,8,12,16,18,19,16,20,22,23,15,12,11,8,12,2,0,4,7,9,16,20,22,26</c>
<c>25,28,24,23,14,19,9,1,18,21,12,8,20,23,22,20,17,19,18,11,8,15,12,16,6,4,0,2,5,11,16,26,22</c>
<c>28,31,27,26,17,21,12,4,15,24,15,5,23,25,25,23,20,22,21,14,11,18,15,19,9,7,2,0,2,8,13,29,25</c>
<c>30,33,30,29,19,24,15,7,12,27,18,2,26,28,28,26,22,24,24,17,13,21,18,22,12,9,5,2,0,6,10,32,28</c>
<c>37,34,27,35,25,25,12,13,6,21,24,3,32,34,29,27,23,25,18,11,14,27,24,28,18,16,11,8,6,0,4,38,22</c>
<c>41,30,22,39,30,21,8,18,2,16,29,7,36,39,25,22,19,21,14,6,10,32,28,32,23,20,16,13,10,4,0,35,17</c>
<c>6,4,23,20,12,14,26,24,37,35,25,35,17,3,10,12,15,18,32,28,24,10,14,21,25,22,26,29,32,38,35,0,28</c>
<c>34,23,4,37,26,14,12,24,20,6,35,25,34,32,18,16,12,10,3,10,14,28,24,39,29,26,22,25,28,22,17,28,0</c>
</cd>
</lvl>
<lvl w="1500"> // level 8
<com c1="100" c2="120" c3="100"></com>
<gr x="0" y="0"></gr>
<wt tp="1"></wt>
<bg tp="1"></bg>
<cs>
<c n="0" x="488" y="361" tp="0" pop="5" plr="2"></c>
<c n="1" x="357" y="262" tp="3" pop="10" plr="-1"></c>
<c n="2" x="368" y="413" tp="0" pop="5" plr="-1"></c>
<c n="3" x="212" y="413" tp="0" pop="10" plr="-1"></c>
<c n="4" x="221" y="316" tp="0" pop="5" plr="2"></c>
<c n="5" x="738" y="211" tp="3" pop="5" plr="-1"></c>
<c n="6" x="681" y="366" tp="6" pop="5" plr="-1"></c>
<c n="7" x="781" y="436" tp="4" pop="10" plr="0"></c>
<c n="8" x="891" y="364" tp="6" pop="5" plr="-1"></c>
<c n="9" x="1150" y="378" tp="0" pop="5" plr="-1"></c>
<c n="10" x="1244" y="281" tp="3" pop="10" plr="-1"></c>
<c n="11" x="1388" y="379" tp="3" pop="5" plr="-1"></c>
<c n="12" x="1313" y="435" tp="0" pop="10" plr="3"></c>
<c n="13" x="453" y="353" tp="8" pop="0" plr="-1"></c>
<c n="14" x="379" y="263" tp="8" pop="0" plr="-1"></c>
<c n="15" x="394" y="413" tp="8" pop="0" plr="-1"></c>
<c n="16" x="270" y="315" tp="8" pop="0" plr="-1"></c>
<c n="17" x="244" y="316" tp="8" pop="0" plr="-1"></c>
<c n="18" x="744" y="436" tp="8" pop="0" plr="-1"></c>
<c n="19" x="827" y="436" tp="8" pop="0" plr="-1"></c>
<c n="20" x="758" y="272" tp="8" pop="0" plr="-1"></c>
<c n="21" x="825" y="272" tp="8" pop="0" plr="-1"></c>
<c n="22" x="782" y="211" tp="8" pop="0" plr="-1"></c>
<c n="23" x="1212" y="378" tp="8" pop="0" plr="-1"></c>
<c n="24" x="1252" y="436" tp="8" pop="0" plr="-1"></c>
<c n="25" x="1357" y="379" tp="8" pop="0" plr="-1"></c>
<c n="26" x="1300" y="280" tp="8" pop="0" plr="-1"></c>
<c n="27" x="292" y="262" tp="8" pop="0" plr="-1"></c>
</cs>
<cc>
<c>-1,0,0,0,0,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,0</c>
<c>1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,1</c>
<c>0,0,-1,1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0,0,0,0,0,0,0,0,13</c>
<c>14,8,6,14,2,0,0,0,0,0,0,0,0,12,9,8,0,1,0,0,0,0,0,0,0,0,0,4</c>
<c>15,6,8,16,1,0,0,0,0,0,0,0,0,13,7,9,1,0,0,0,0,0,0,0,0,0,0,3</c>
<c>0,0,0,0,0,20,4,1,8,0,0,0,0,0,0,0,0,0,0,4,10,14,17,0,0,0,0,0</c>
<c>0,0,0,0,0,16,8,2,4,0,0,0,0,0,0,0,0,0,4,0,13,10,14,0,0,0,0,0</c>
<c>0,0,0,0,0,9,6,12,9,0,0,0,0,0,0,0,0,0,10,13,0,3,7,0,0,0,0,0</c>
<c>0,0,0,0,0,5,9,12,5,0,0,0,0,0,0,0,0,0,14,10,3,0,3,0,0,0,0,0</c>
<c>0,0,0,0,0,2,13,16,9,0,0,0,0,0,0,0,0,0,17,14,7,3,0,0,0,0,0,0</c>
<c>0,0,0,0,0,0,0,0,0,3,21,11,6,0,0,0,0,0,0,0,0,0,0,0,3,10,18,0</c>
<c>0,0,0,0,0,0,0,0,0,6,17,8,3,0,0,0,0,0,0,0,0,0,0,3,0,6,14,0</c>
<c>0,0,0,0,0,0,0,0,0,13,10,1,3,0,0,0,0,0,0,0,0,0,0,10,6,0,8,0</c>
<c>0,0,0,0,0,0,0,0,0,21,2,6,11,0,0,0,0,0,0,0,0,0,0,18,14,8,0,0</c>
<c>12,3,11,19,4,0,0,0,0,0,0,0,0,10,4,13,4,3,0,0,0,0,0,0,0,0,0,0</c>
</cd>
</lvl>
<lvl w="1500"> // level 9
<com c1="200" c2="170" c3="200"></com>
<gr x="0" y="0"></gr>
<wt tp="1"></wt>
<bg tp="1"></bg>
<cs>
<c n="0" x="510" y="442" tp="6" pop="20" plr="3"></c>
<c n="1" x="613" y="439" tp="6" pop="20" plr="3"></c>
<c n="2" x="712" y="442" tp="6" pop="20" plr="3"></c>
<c n="3" x="261" y="369" tp="3" pop="5" plr="0"></c>
<c n="4" x="100" y="365" tp="3" pop="5" plr="0"></c>
<c n="5" x="181" y="244" tp="3" pop="10" plr="-1"></c>
<c n="6" x="180" y="120" tp="3" pop="5" plr="-1"></c>
<c n="7" x="1010" y="440" tp="3" pop="5" plr="3"></c>
<c n="8" x="1143" y="298" tp="3" pop="5" plr="3"></c>
<c n="9" x="1230" y="129" tp="3" pop="5" plr="3"></c>
<c n="10" x="1321" y="296" tp="3" pop="5" plr="3"></c>
</cs>
<cc>
<c>-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1</c>
<c>-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1</c>
<c>-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1</c>
<c>1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1</c>
</cc>
<cd>
<c>0,0,0,0,0,0,0,0,0,0,0</c>
<c>0,0,0,0,0,0,0,0,0,0,0</c>
<c>0,0,0,0,0,0,0,0,0,0,0</c>
<c>12,17,22,0,8,7,13,37,44,49,53</c>
<c>20,25,30,8,0,7,12,45,52,57,61</c>
<c>19,23,28,7,7,0,6,42,48,52,57</c>
<c>23,26,31,13,12,6,0,44,48,52,57</c>
<c>25,19,14,37,45,42,44,0,9,19,17</c>
<c>32,27,22,44,52,48,48,9,0,9,8</c>
<c>39,34,30,49,57,52,52,19,9,0,9</c>
<c>41,36,31,53,61,57,57,17,8,9,0</c>
</cd>
</lvl>
<lvl w="1500"> // level 10
<com c1="120" c2="110" c3="150"></com>
<gr x="0" y="0"></gr>
<wt tp="1"></wt>
<bg tp="1"></bg>
<cs>
<c n="0" x="320" y="319" tp="0" pop="10" plr="1"></c>
<c n="1" x="232" y="158" tp="3" pop="5" plr="-1"></c>
<c n="2" x="198" y="269" tp="0" pop="5" plr="1"></c>
<c n="3" x="674" y="260" tp="3" pop="5" plr="-1"></c>
<c n="4" x="692" y="370" tp="0" pop="5" plr="0"></c>
<c n="5" x="547" y="326" tp="0" pop="5" plr="0"></c>
<c n="6" x="890" y="314" tp="3" pop="5" plr="-1"></c>
<c n="7" x="870" y="438" tp="0" pop="5" plr="2"></c>
<c n="8" x="991" y="393" tp="0" pop="5" plr="2"></c>
<c n="9" x="1151" y="284" tp="3" pop="5" plr="-1"></c>
<c n="10" x="1195" y="372" tp="0" pop="5" plr="3"></c>
<c n="11" x="1341" y="427" tp="0" pop="5" plr="3"></c>
<c n="12" x="234" y="269" tp="8" pop="0" plr="-1"></c>
<c n="13" x="287" y="319" tp="8" pop="0" plr="-1"></c>
<c n="14" x="316" y="209" tp="8" pop="0" plr="-1"></c>
<c n="15" x="262" y="160" tp="8" pop="0" plr="-1"></c>
<c n="16" x="599" y="261" tp="8" pop="0" plr="-1"></c>
<c n="17" x="591" y="326" tp="8" pop="0" plr="-1"></c>
<c n="18" x="654" y="372" tp="8" pop="0" plr="-1"></c>
<c n="19" x="928" y="314" tp="8" pop="0" plr="-1"></c>
<c n="20" x="910" y="438" tp="8" pop="0" plr="-1"></c>
<c n="21" x="951" y="392" tp="8" pop="0" plr="-1"></c>
<c n="22" x="1187" y="284" tp="8" pop="0" plr="-1"></c>
<c n="23" x="1267" y="343" tp="8" pop="0" plr="-1"></c>
<c n="24" x="1237" y="371" tp="8" pop="0" plr="-1"></c>
<c n="25" x="1302" y="428" tp="8" pop="0" plr="-1"></c>
</cs>
<cc>
<c>-1,0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1</c>
<c>1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1</c>
<c>0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0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,0,0,0,0,7,3,0,0,0,0,0</c>
<c>0,0,0,0,0,0,0,0,0,1,9,13,0,0,0,0,0,0,0,0,0,0,0,4,7,11</c>
<c>0,0,0,0,0,0,0,0,0,6,4,8,0,0,0,0,0,0,0,0,0,0,4,0,2,6</c>
<c>0,0,0,0,0,0,0,0,0,8,2,6,0,0,0,0,0,0,0,0,0,0,7,2,0,4</c>
<c>0,0,0,0,0,0,0,0,0,13,6,1,0,0,0,0,0,0,0,0,0,0,11,6,4,0</c>
</cd>
</lvl>
<lvl w="1400"> // level 11
<com c1="120" c2="130" c3="70"></com>
<gr x="0" y="0"></gr>
<wt tp="1"></wt>
<bg tp="1"></bg>
<cs>
<c n="0" x="102" y="232" tp="3" pop="10" plr="0"></c>
<c n="1" x="233" y="147" tp="3" pop="2" plr="-1"></c>
<c n="2" x="386" y="230" tp="3" pop="5" plr="-1"></c>
<c n="3" x="556" y="105" tp="3" pop="2" plr="-1"></c>
<c n="4" x="620" y="319" tp="3" pop="10" plr="-1"></c>
<c n="5" x="740" y="210" tp="3" pop="10" plr="-1"></c>
<c n="6" x="807" y="421" tp="3" pop="10" plr="-1"></c>
<c n="7" x="977" y="333" tp="3" pop="5" plr="-1"></c>
<c n="8" x="895" y="153" tp="3" pop="2" plr="-1"></c>
<c n="9" x="1090" y="113" tp="3" pop="2" plr="-1"></c>
<c n="10" x="1169" y="301" tp="3" pop="2" plr="-1"></c>
<c n="11" x="1300" y="199" tp="3" pop="20" plr="3"></c>
<c n="12" x="414" y="399" tp="3" pop="2" plr="-1"></c>
</cs>
<cc>
<c>1,1,1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1,1,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1,1,1</c>
</cc>
<cd>
<c>0,7,14,23,26,31,36,44,39,49,53,59,17</c>
<c>7,0,8,16,21,25,31,38,33,42,47,53,15</c>
<c>14,8,0,10,12,17,23,30,25,35,39,45,8</c>
<c>23,16,10,0,11,10,20,23,17,26,32,37,16</c>
<c>26,21,12,11,0,8,10,17,16,25,27,34,11</c>
<c>31,25,17,10,8,0,11,13,8,18,21,28,18</c>
<c>36,31,23,20,10,11,0,9,14,20,19,27,19</c>
<c>44,38,30,23,17,13,9,0,9,12,9,17,28</c>
<c>39,33,25,17,16,8,14,9,0,9,15,20,27</c>
<c>49,42,35,26,25,18,20,12,9,0,10,11,36</c>
<c>53,47,39,32,27,21,19,9,15,10,0,8,38</c>
<c>59,53,45,37,34,28,27,17,20,11,8,0,45</c>
<c>17,15,8,16,11,18,19,28,27,36,38,45,0</c>
</cd>
</lvl>
<lvl w="1200"> // level 12
<com c1="150" c2="170" c3="80"></com>
<gr x="0" y="0"></gr>
<wt tp="1"></wt>
<bg tp="1"></bg>
<cs>
<c n="0" x="222" y="396" tp="0" pop="5" plr="0"></c>
<c n="1" x="503" y="395" tp="3" pop="0" plr="-1"></c>
<c n="2" x="380" y="203" tp="3" pop="0" plr="-1"></c>
<c n="3" x="247" y="241" tp="0" pop="5" plr="-1"></c>
<c n="4" x="343" y="396" tp="0" pop="5" plr="-1"></c>
<c n="5" x="438" y="303" tp="0" pop="15" plr="1"></c>
<c n="6" x="637" y="212" tp="0" pop="10" plr="-1"></c>
<c n="7" x="621" y="395" tp="0" pop="5" plr="-1"></c>
<c n="8" x="566" y="318" tp="0" pop="5" plr="-1"></c>
<c n="9" x="766" y="211" tp="3" pop="0" plr="-1"></c>
<c n="10" x="922" y="228" tp="0" pop="5" plr="-1"></c>
<c n="11" x="748" y="347" tp="0" pop="10" plr="3"></c>
<c n="12" x="920" y="320" tp="0" pop="5" plr="-1"></c>
<c n="13" x="853" y="393" tp="3" pop="0" plr="-1"></c>
<c n="14" x="119" y="325" tp="8" pop="0" plr="-1"></c>
<c n="15" x="187" y="393" tp="8" pop="0" plr="-1"></c>
<c n="16" x="353" y="204" tp="8" pop="0" plr="-1"></c>
<c n="17" x="203" y="240" tp="8" pop="0" plr="-1"></c>
<c n="18" x="311" y="241" tp="8" pop="0" plr="-1"></c>
<c n="19" x="372" y="304" tp="8" pop="0" plr="-1"></c>
<c n="20" x="675" y="316" tp="8" pop="0" plr="-1"></c>
<c n="21" x="659" y="395" tp="8" pop="0" plr="-1"></c>
<c n="22" x="702" y="348" tp="8" pop="0" plr="-1"></c>
<c n="23" x="787" y="348" tp="8" pop="0" plr="-1"></c>
<c n="24" x="815" y="321" tp="8" pop="0" plr="-1"></c>
<c n="25" x="823" y="393" tp="8" pop="0" plr="-1"></c>
<c n="26" x="854" y="212" tp="8" pop="0" plr="-1"></c>
<c n="27" x="872" y="231" tp="8" pop="0" plr="-1"></c>
<c n="28" x="954" y="231" tp="8" pop="0" plr="-1"></c>
<c n="29" x="951" y="320" tp="8" pop="0" plr="-1"></c>
<c n="30" x="1000" y="281" tp="8" pop="0" plr="-1"></c>
</cs>
<cc>
<c>-1,0,0,0,1,0,-1,-1,-1,-1,-1,-1,-1,-1,0,1,0,0,0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1</c>
<c>1,1,1,1,1,1,1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1</c>
<c>1,1,1,1,1,1,1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1</c>
<c>0,0,0,-1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1,-1,-1,-1,0,0,0,0,0,0,1,-1,0,0,0</c>
<c>-1,-1,-1,-1,-1,-1,0,0,0,0,1,0,0,0,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,-1,0,1</c>
<c>-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,1,0,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,-1,1</c>
<c>-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,1,1,-1</c>
</cc>
<cd>
<c>0,14,22,14,6,25,0,0,0,0,0,0,0,0,6,1,20,12,17,22,0,0,0,0,0,0,0,0,0,0,0</c>
<c>281,0,228,299,160,113,227,118,99,321,451,250,424,350,20,15,34,26,32,36,0,0,0,0,0,0,0,0,0,0,0</c>
<c>249,228,0,138,197,116,257,308,219,386,543,395,553,510,15,20,1,9,4,8,0,0,0,0,0,0,0,0,0,0,0</c>
<c>14,28,7,0,20,10,0,0,0,0,0,0,0,0,8,13,6,2,3,7,0,0,0,0,0,0,0,0,0,0,0</c>
<c>6,8,28,20,0,31,0,0,0,0,0,0,0,0,12,7,26,18,24,28,0,0,0,0,0,0,0,0,0,0,0</c>
<c>25,39,11,10,31,0,0,0,0,0,0,0,0,0,19,23,10,13,7,3,0,0,0,0,0,0,0,0,0,0,0</c>
<c>0,0,0,0,0,0,0,40,43,6,14,33,24,35,0,0,0,0,0,0,37,39,35,31,29,34,10,12,16,22,19</c>
<c>0,0,0,0,0,0,40,0,12,34,26,7,16,13,0,0,0,0,0,0,7,1,5,9,11,12,30,28,24,18,21</c>
<c>0,0,0,0,0,0,43,12,0,36,28,9,19,16,0,0,0,0,0,0,5,10,7,11,13,14,32,31,27,20,23</c>
<c>575,321,386,520,462,341,129,234,227,0,157,137,189,202,0,0,0,0,0,0,31,32,29,25,23,28,4,5,9,16,13</c>
<c>0,0,0,0,0,0,14,26,28,8,0,18,9,21,0,0,0,0,0,0,23,24,21,16,14,19,3,2,1,8,5</c>
<c>0,0,0,0,0,0,33,7,9,27,18,0,9,6,0,0,0,0,0,0,4,5,2,1,3,4,22,21,17,10,13</c>
<c>0,0,0,0,0,0,24,16,19,17,9,9,0,11,0,0,0,0,0,0,13,14,11,7,5,10,13,12,8,1,4</c>
<c>631,350,510,625,510,425,282,232,297,202,179,115,99,0,0,0,0,0,0,0,10,11,8,4,6,1,25,23,19,13,16</c>
<c>6,20,15,8,12,19,0,0,0,0,0,0,0,0,0,4,14,6,11,15,0,0,0,0,0,0,0,0,0,0,0</c>
<c>1,15,20,13,7,23,0,0,0,0,0,0,0,0,4,0,19,10,16,20,0,0,0,0,0,0,0,0,0,0,0</c>
<c>20,34,1,6,26,10,0,0,0,0,0,0,0,0,14,19,0,8,2,7,0,0,0,0,0,0,0,0,0,0,0</c>
<c>12,26,9,2,18,13,0,0,0,0,0,0,0,0,6,10,8,0,5,9,0,0,0,0,0,0,0,0,0,0,0</c>
<c>17,32,4,3,24,7,0,0,0,0,0,0,0,0,11,16,2,5,0,4,0,0,0,0,0,0,0,0,0,0,0</c>
<c>22,36,8,7,28,3,0,0,0,0,0,0,0,0,15,20,7,9,4,0,0,0,0,0,0,0,0,0,0,0,0</c>
<c>0,0,0,0,0,0,37,7,5,31,23,4,13,10,0,0,0,0,0,0,0,5,2,6,8,9,27,25,21,15,18</c>
<c>0,0,0,0,0,0,39,1,10,32,24,5,14,11,0,0,0,0,0,0,5,0,3,7,9,10,28,26,22,16,19</c>
<c>0,0,0,0,0,0,35,5,7,29,21,2,11,8,0,0,0,0,0,0,2,3,0,4,6,7,24,23,19,13,16</c>
<c>0,0,0,0,0,0,31,9,11,25,16,1,7,4,0,0,0,0,0,0,6,7,4,0,1,2,20,19,15,8,11</c>
<c>0,0,0,0,0,0,29,11,13,23,14,3,5,6,0,0,0,0,0,0,8,9,6,1,0,4,18,17,13,6,9</c>
<c>0,0,0,0,0,0,34,12,14,28,19,4,10,1,0,0,0,0,0,0,9,10,7,2,4,0,23,22,18,11,14</c>
<c>0,0,0,0,0,0,10,30,32,4,3,22,13,25,0,0,0,0,0,0,27,28,24,20,18,23,0,1,5,11,8</c>
<c>0,0,0,0,0,0,12,28,31,5,2,21,12,23,0,0,0,0,0,0,25,26,23,19,17,22,1,0,4,10,7</c>
<c>0,0,0,0,0,0,16,24,27,9,1,17,8,19,0,0,0,0,0,0,21,22,19,15,13,18,5,4,0,6,3</c>
<c>0,0,0,0,0,0,22,18,20,16,8,10,1,13,0,0,0,0,0,0,15,16,13,8,6,11,11,10,6,0,3</c>
<c>0,0,0,0,0,0,19,21,23,13,5,13,4,16,0,0,0,0,0,0,18,19,16,11,9,14,8,7,3,3,0</c>
</cd>
</lvl>
<lvl w="1300"> // level 13
<com c1="50" c2="50" c3="50"></com>
<gr x="0" y="0"></gr>
<wt tp="1"></wt>
<bg tp="1"></bg>
<cs>
<c n="0" x="335" y="164" tp="3" pop="10" plr="-1"></c>
<c n="1" x="217" y="272" tp="0" pop="10" plr="-1"></c>
<c n="2" x="818" y="162" tp="3" pop="5" plr="-1"></c>
<c n="3" x="588" y="304" tp="6" pop="30" plr="-1"></c>
<c n="4" x="491" y="306" tp="6" pop="15" plr="-1"></c>
<c n="5" x="671" y="306" tp="6" pop="15" plr="-1"></c>
<c n="6" x="284" y="379" tp="0" pop="5" plr="-1"></c>
<c n="7" x="124" y="380" tp="0" pop="10" plr="0"></c>
<c n="8" x="951" y="269" tp="0" pop="5" plr="-1"></c>
<c n="9" x="1026" y="371" tp="0" pop="10" plr="3"></c>
<c n="10" x="886" y="374" tp="0" pop="5" plr="-1"></c>
<c n="11" x="433" y="306" tp="8" pop="10" plr="0"></c>
<c n="12" x="711" y="308" tp="8" pop="10" plr="0"></c>
<c n="13" x="776" y="375" tp="8" pop="10" plr="0"></c>
<c n="14" x="371" y="379" tp="8" pop="10" plr="0"></c>
<c n="15" x="875" y="164" tp="8" pop="10" plr="0"></c>
<c n="16" x="305" y="171" tp="8" pop="10" plr="0"></c>
</cs>
<cc>
<c>1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1</c>
<c>0,-1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1</c>
<c>1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0</c>
<c>0,0,0,-1,1,1,0,0,0,0,0,0,0,0,0,0,0</c>
<c>0,0,0,1,-1,0,0,0,0,0,0,1,0,0,0,0,0</c>
<c>0,0,0,1,0,-1,0,0,0,0,0,0,1,0,0,0,0</c>
<c>0,0,0,0,0,0,-1,1,0,0,0,0,0,0,1,0,0</c>
<c>0,1,0,0,0,0,1,-1,0,0,0,0,0,0,0,0,0</c>
<c>0,0,0,0,0,0,0,0,-1,1,0,0,0,0,0,1,0</c>
<c>0,0,0,0,0,0,0,0,1,-1,1,0,0,0,0,0,0</c>
<c>0,0,0,0,0,0,0,0,0,1,-1,0,0,1,0,0,0</c>
<c>0,0,0,0,1,0,0,0,0,0,0,-1,0,0,1,0,0</c>
<c>0,0,0,0,0,1,0,0,0,0,0,0,-1,1,0,0,0</c>
<c>0,0,0,0,0,0,0,0,0,0,1,0,1,-1,1,0,0</c>
<c>0,0,0,0,0,0,1,0,0,0,0,1,0,1,-1,0,0</c>
<c>0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,-1,0</c>
<c>1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1</c>
</cc>
<cd>
<c>0,8,24,14,10,18,11,15,31,36,29,32,46,48,27,73,1</c>
<c>8,0,67,32,27,36,15,7,58,52,45,24,38,39,19,65,6</c>
<c>24,30,0,13,17,10,28,36,8,14,11,46,32,28,48,2,74</c>
<c>40,32,39,0,4,4,16,24,29,23,16,7,6,10,12,36,38</c>
<c>35,27,43,4,0,9,12,20,34,28,21,2,11,15,7,41,33</c>
<c>44,36,34,4,9,0,21,29,25,19,12,11,2,6,16,32,42</c>
<c>23,15,52,16,12,21,0,8,43,37,30,9,23,24,4,49,21</c>
<c>15,7,60,24,20,29,8,0,51,45,38,17,31,32,12,57,13</c>
<c>66,58,9,29,34,25,43,51,0,6,13,37,23,18,39,6,65</c>
<c>60,52,15,23,28,19,37,45,6,0,7,31,17,12,32,12,58</c>
<c>53,45,22,16,21,12,30,38,13,7,0,24,10,5,25,19,51</c>
<c>32,24,46,7,2,11,9,17,37,31,24,0,13,18,4,43,31</c>
<c>46,38,32,6,11,2,23,31,23,17,10,13,0,4,18,30,44</c>
<c>48,39,28,10,15,6,24,32,18,12,5,18,4,0,20,25,46</c>
<c>27,19,48,12,7,16,4,12,39,32,25,4,18,20,0,45,26</c>
<c>73,65,2,36,41,32,49,57,6,12,19,43,30,25,45,0,71</c>
<c>1,6,74,38,33,42,21,13,65,58,51,31,44,46,26,71,0</c>
</cd>
</lvl>
</map>
;
}
public function ShowLinks():void{
var _local1:int;
var _local2:int;
if (clinks == true){
SG.graphics.clear();
_local1 = 0;
while (_local1 < Clen) {
_local2 = 0;
while (_local2 < Clen) {
if (CP[_local1][_local2] > 0){
SG.graphics.lineStyle(1, 0x33CC00);
SG.graphics.moveTo(CC[_local1].x, CC[_local1].y);
SG.graphics.lineTo(CC[_local2].x, CC[_local2].y);
};
_local2++;
};
_local1++;
};
};
}
public function ShowIns(_arg1:Event=null):void{
trace("showing ins");
addChild(Ins);
addChild(ui);
Pause = true;
}
public function HideIns(_arg1:Event=null):void{
trace("hide ins");
removeChild(Ins);
Pause = false;
}
public function SetCOMs(_arg1:int, _arg2:int, _arg3:int):void{
COM1.Set(1, _arg1, R, CC, CP, CD, S);
COM2.Set(2, _arg2, R, CC, CP, CD, S);
COM3.Set(3, _arg3, R, CC, CP, CD, S);
trace(((((("=== setCOMs " + _arg1) + " ") + _arg2) + " ") + _arg3));
}
public function LevelStart(_arg1:int, _arg2:Boolean):void{
var _local3:int;
var _local5:BPoint;
var _local6:String;
var _local7:Array;
var _local8:int;
var _local9:int;
var _local10:Path;
LevelStop();
curlvl = _arg1;
score = 0;
addChildAt(BG, (numChildren - 1));
addChildAt(GD, (numChildren - 1));
addChildAt(SG, (numChildren - 1));
addChildAt(IF, (numChildren - 1));
addChildAt(FG, (numChildren - 1));
LS.Init();
UIGShow();
BG.gotoAndStop(curlvl);
GD.gotoAndStop(curlvl);
FG.gotoAndStop(curlvl);
trace("all good");
if (_arg2 == false){
setChildIndex(M, (numChildren - 1));
};
lvlw = (stw - map.lvl[curlvl].@w);
Clen = map.lvl[curlvl].cs.c.length();
trace(("loading CC " + Clen));
SetCOMs(map.lvl[curlvl].com.@c1, map.lvl[curlvl].com.@c2, map.lvl[curlvl].com.@c3);
_local3 = 0;
while (_local3 < Clen) {
R.push(Number(0));
S.push(Number(0));
_local5 = new BPoint();
_local5.visible = false;
type = map.lvl[curlvl].cs.c[_local3].@tp;
switch (type){
case 0:
CC.push(new C0());
break;
case 1:
CC.push(new C1());
break;
case 2:
CC.push(new C2());
break;
case 3:
CC.push(new C3());
break;
case 4:
CC.push(new C4());
break;
case 5:
CC.push(new C5());
break;
case 6:
CC.push(new C6());
break;
case 7:
CC.push(new C7());
break;
case 8:
CC.push(new CN());
break;
default:
trace("point");
};
PT.push(_local5);
IF.addChild(PT[_local3]);
SG.addChild(CC[_local3]);
if (type != 8){
CC[_local3].Set(map.lvl[curlvl].cs.c[_local3].@plr, map.lvl[curlvl].cs.c[_local3].@tp, map.lvl[curlvl].cs.c[_local3].@lvl, map.lvl[curlvl].cs.c[_local3].@pop);
CC[_local3].x = map.lvl[curlvl].cs.c[_local3].@x;
CC[_local3].y = map.lvl[curlvl].cs.c[_local3].@y;
CC[_local3].sy = (CC[_local3].y - 25);
PT[_local3].x = CC[_local3].x;
PT[_local3].y = CC[_local3].y;
CC[_local3].SetClr(clr[(CC[_local3].plr + 1)]);
} else {
CC[_local3].x = map.lvl[curlvl].cs.c[_local3].@x;
CC[_local3].y = map.lvl[curlvl].cs.c[_local3].@y;
CC[_local3].typ = 8;
};
_local3++;
};
trace("loading CP");
_local3 = 0;
while (_local3 < Clen) {
_local6 = map.lvl[curlvl].cc.c[_local3];
_local7 = _local6.split(",");
CP.push(_local7);
_local3++;
};
trace("loading CD");
_local3 = 0;
while (_local3 < Clen) {
_local6 = map.lvl[curlvl].cd.c[_local3];
_local7 = _local6.split(",");
CD.push(_local7);
_local3++;
};
trace("level started");
_local3 = 0;
while (_local3 < 4) {
_local8 = 0;
while (_local8 < 4) {
_local9 = 0;
while (_local9 < maxW) {
W[_local3][_local8][_local9].Get(CC, CP, CD, clr);
_local9++;
};
_local8++;
};
_local3++;
};
CIlen = 0;
var _local4:Boolean;
_local3 = 0;
while (_local3 < Clen) {
_local8 = 0;
while (_local8 < Clen) {
if (CP[_local3][_local8] == 1){
_local4 = false;
_local9 = 0;
while (_local9 < CI.length) {
if ((((((CI[_local9].s == _local3)) && ((CI[_local9].f == _local8)))) || ((((CI[_local9].s == _local8)) && ((CI[_local9].f == _local3)))))){
_local4 = true;
};
_local9++;
};
if (_local4 == false){
_local10 = new Path();
_local10.Set(_local3, _local8, CC);
CI.push(_local10);
CIlen++;
};
};
_local8++;
};
_local3++;
};
SortCCdept();
SortCCdept();
_local3 = 0;
while (_local3 < Clen) {
trace(((("Castle: " + _local3) + " index: ") + SG.getChildIndex(CC[_local3])));
_local3++;
};
minfps = 50;
maxfps = 10;
}
public function RemMCs():void{
removeChild(BG);
removeChild(GD);
removeChild(SG);
removeChild(IF);
removeChild(FG);
trace("RemMCs - good");
}
public function LevelStop():void{
var _local1:int;
SG.x = 0;
Clen = CC.length;
Scores[(curlvl - 1)] = score;
trace(("=== LEVEL STOPING === Clen = " + Clen));
_local1 = 0;
while (_local1 < Clen) {
CC[_local1].Kill();
SG.removeChild(CC[_local1]);
IF.removeChild(PT[_local1]);
_local1++;
};
trace("--- Castles & Points removed ");
_local1 = 0;
while (_local1 < Clen) {
R.pop();
S.pop();
CC.pop();
PT.pop();
CP.pop();
CD.pop();
_local1++;
};
Clen = CC.length;
trace(((((((("--- Castles & Points deleted (Clen = " + Clen) + ") ") + CC) + " ") + PT) + " ") + CP));
HidePath();
HideUnits();
_local1 = 0;
while (_local1 < CIlen) {
CI.pop();
_local1++;
};
trace(("--- PathPoints deleted " + CI));
CIlen = 0;
Clen = 0;
trace("=== STOPING COMPLETE ===");
}
public function HideUnits():void{
var _local1:int;
while (_local1 < wlist.length) {
if (wlist[_local1] != null){
wlist[_local1].act = false;
};
_local1++;
};
RemDeads();
trace("--- UnitsHided ");
}
public function SortCCdept():void{
var _local2:int;
var _local1:int;
while (_local1 < Clen) {
_local2 = 0;
while (_local2 < Clen) {
if ((((((CC[_local2].y < CC[_local1].y)) && (!((_local1 == _local2))))) && ((SG.getChildIndex(CC[_local2]) > SG.getChildIndex(CC[_local1]))))){
SG.swapChildren(CC[_local1], CC[_local2]);
};
_local2++;
};
_local1++;
};
}
public function PushCLR(_arg1:String):void{
var _local2:String;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = _arg1.substr(0, 2);
_local3 = (parseInt(_local2, 16) / 0xFF);
_local2 = _arg1.substr(2, 2);
_local4 = (parseInt(_local2, 16) / 0xFF);
_local2 = _arg1.substr(4, 2);
_local5 = (parseInt(_local2, 16) / 0xFF);
clr.push(new ColorTransform(_local3, _local4, _local5));
}
public function onMMoveCur(_arg1:Event):void{
Cur.x = mouseX;
Cur.y = mouseY;
}
public function UIMShow():void{
addChildAt(ui, (numChildren - 1));
ui.b_i.visible = false;
ui.b_r.visible = false;
if (soundOn == true){
ui.b_son.visible = false;
} else {
ui.b_soff.visible = false;
};
}
public function UIGShow():void{
addChildAt(ui, (numChildren - 1));
addChild(LS);
ui.b_i.visible = true;
ui.b_r.visible = true;
if (soundOn == true){
ui.b_son.visible = false;
ui.b_soff.visible = true;
} else {
ui.b_son.visible = true;
ui.b_soff.visible = false;
};
}
public function UIHide():void{
}
public function Restart(_arg1:Event):void{
LevelStop();
LevelStart(curlvl, true);
}
public function onSb(_arg1:Event):void{
if (soundOn == true){
ui.b_son.visible = true;
ui.b_soff.visible = false;
soundOn = false;
mC.stop();
sts.volume = 0;
} else {
ui.b_son.visible = false;
ui.b_soff.visible = true;
soundOn = true;
mC = sstart.play(0, 1, stm);
sts.volume = 1;
mC.addEventListener(Event.SOUND_COMPLETE, onSndComplete);
};
}
public function MenuShow():void{
addChildAt(M, (numChildren - 1));
UIMShow();
M.visible = true;
M.MSlider.addEventListener("onBPlay", onLevelClick2);
M.MSlider.addEventListener("onBAgain", onLevelClick2);
trace("showing menu");
}
public function MenuHide():void{
removeChild(M);
M.visible = false;
M.MSlider.removeEventListener("onBPlay", onLevelClick2);
M.MSlider.removeEventListener("onBAgain", onLevelClick2);
trace("M removed ");
}
public function onLevelClick2(_arg1:Event=null):void{
Pause = true;
M.gotoAndPlay(36);
curlvl = (_arg1.target.curs + 1);
LevelStart(curlvl, false);
SetKeyEventers();
}
public function onLevelClick(_arg1:Event=null):void{
this.LevelStart(curlvl, false);
this.SetKeyEventers();
}
public function onResize(_arg1:Event=null):void{
stw = stage.stageWidth;
if (load == true){
lvlw = (stw - map.lvl[curlvl].@w);
TopMask.width = stw;
BotMask.width = stw;
M.x = int(((stw - 800) * 0.5));
Ins.x = M.x;
VD.x = int(((stw - VD.w) * 0.5));
ui.x = (stw - 73);
} else {
Pre.x = int(((stw - 800) * 0.5));
};
}
public function SetKeyEventers():void{
stage.addEventListener(Event.ENTER_FRAME, Render);
stage.addEventListener(KeyboardEvent.KEY_UP, onUp);
stage.addEventListener(KeyboardEvent.KEY_DOWN, onDown);
stage.addEventListener(MouseEvent.MOUSE_UP, onMUp);
stage.addEventListener(MouseEvent.MOUSE_DOWN, onMDown);
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMMove);
}
public function UnSetKeyEventers():void{
stage.removeEventListener(Event.ENTER_FRAME, Render);
stage.removeEventListener(KeyboardEvent.KEY_UP, onUp);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, onDown);
stage.removeEventListener(MouseEvent.MOUSE_UP, onMUp);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, onMDown);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMMove);
trace("eventers UnSet");
}
public function Render(_arg1:Event):void{
if (Pause == false){
RVinDef();
RKeys();
RCast();
RBPoints();
RWar();
RPath();
RTowers();
RemDeads();
RCOM2(COM1);
RCOM2(COM2);
RCOM2(COM3);
};
}
public function RCur():void{
var _local1:int;
var _local2:int;
while (_local2 < Clen) {
if (CC[_local2].sel == true){
if (ctrl == true){
_local1 = (_local1 + CC[_local2].curpop);
} else {
_local1 = (_local1 + int((CC[_local2].curpop * 0.5)));
};
};
_local2++;
};
trace(_local1);
if (_local1 > 0){
Cur.txt.htmlText = _local1.toString();
} else {
Cur.txt.htmlText = "";
};
}
public function RTowers():void{
var _local2:int;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:*;
var _local7:int;
var _local1:int;
while (_local1 < Clen) {
if (CC[_local1].typ == 6){
if ((((CC[_local1].fredy == true)) && ((CC[_local1].curpop > 0)))){
_local2 = 0;
while (_local2 < maxwlist) {
if (wlist[_local2] != null){
if (wlist[_local2].wplr != CC[_local1].plr){
_local3 = (wlist[_local2].x - CC[_local1].x);
_local4 = (((wlist[_local2].y - CC[_local1].y) - CC[_local1].fire.y) - 25);
_local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4)));
_local6 = (-(Math.atan2(_local3, _local4)) / 0.01745);
if (_local5 < CC[_local1].r){
sC = stesla.play(0, 1, sts);
CC[_local1].fire.gotoAndPlay(1);
CC[_local1].fire.rotation = 0;
CC[_local1].fire.width = _local5;
CC[_local1].fire.rotation = (_local6 + 90);
if (wlist[_local2].wt == 0){
_local7 = 0;
while (_local7 < 20) {
if (LM1[_local7].visible == false){
LM1[_local7].visible = true;
LM1[_local7].gotoAndPlay(1);
SG.setChildIndex(LM1[_local7], (SG.getChildIndex(wlist[_local2]) + 1));
LM1[_local7].x = wlist[_local2].x;
LM1[_local7].y = wlist[_local2].y;
LM1[_local7].scaleX = wlist[_local2].scaleX;
break;
};
_local7++;
};
} else {
if (wlist[_local2].wt == 1){
_local7 = 0;
while (_local7 < 20) {
if (LM2[_local7].visible == false){
LM2[_local7].visible = true;
LM2[_local7].gotoAndPlay(1);
SG.setChildIndex(LM2[_local7], (SG.getChildIndex(wlist[_local2]) + 1));
LM2[_local7].x = wlist[_local2].x;
LM2[_local7].y = wlist[_local2].y;
LM2[_local7].scaleX = wlist[_local2].scaleX;
break;
};
_local7++;
};
} else {
_local7 = 0;
while (_local7 < 20) {
if (SM[_local7].visible == false){
SM[_local7].visible = true;
SM[_local7].gotoAndPlay(1);
SG.setChildIndex(SM[_local7], (SG.getChildIndex(wlist[_local2]) + 1));
SM[_local7].x = wlist[_local2].x;
SM[_local7].y = (wlist[_local2].y - 25);
sC = sboom.play(0, 1, sts);
break;
};
_local7++;
};
};
};
if ((wlist[_local2].wn - 1) < CC[_local1].curpop){
plist[_local2].n = wlist[_local2].wn;
plist[_local2].Sub(CC[_local1].curpop);
plist[_local2].Out();
wlist[_local2].act = false;
if (CC[_local1].plr == 0){
AddScore((wlist[_local2].wn * 150));
};
if (wlist[_local2].wplr == 0){
AddScore((wlist[_local2].wn * -150));
};
} else {
wlist[_local2].wn = (wlist[_local2].wn - CC[_local1].curpop);
plist[_local2].n = wlist[_local2].wn;
plist[_local2].Sub(CC[_local1].curpop);
plist[_local2].Out();
if (CC[_local1].plr == 0){
AddScore((CC[_local1].curpop * 150));
};
if (wlist[_local2].wplr == 0){
AddScore((CC[_local1].curpop * -150));
};
};
CC[_local1].fredy = false;
break;
};
};
};
_local2++;
};
};
};
_local1++;
};
}
public function RBPoints():void{
var _local2:int;
var _local1:int;
while (_local1 < Clen) {
if (CC[_local1].sel == true){
if (ctrl == true){
_local2 = CC[_local1].curpop;
} else {
_local2 = (CC[_local1].curpop * 0.5);
};
PT[_local1].txt.htmlText = (("<FONT FACE='Arial' COLOR='#FFFFFF'>" + _local2.toString()) + "</FONT>");
};
_local1++;
};
}
public function RVinDef():void{
var _local1:int;
var _local2:int;
nplr = 0;
rvdel--;
if (rvdel < 0){
rvdel = 60;
_local1 = 0;
while (_local1 < Clen) {
if (CC[_local1].plr == 0){
nplr++;
break;
};
_local1++;
};
ncom = 0;
_local1 = 0;
while (_local1 < Clen) {
if (CC[_local1].plr > 0){
ncom++;
break;
};
_local1++;
};
if (ncom == 0){
_local2 = 0;
while (_local2 < wlist.length) {
if (wlist[_local2] != null){
if (wlist[_local2].wplr != 0){
ncom++;
};
};
_local2++;
};
if (ncom == 0){
Victory();
};
};
if (nplr == 0){
_local2 = 0;
while (_local2 < wlist.length) {
if (wlist[_local2] != null){
if (wlist[_local2].wplr == 0){
nplr++;
};
};
_local2++;
};
if (nplr == 0){
Defeat();
};
};
};
}
public function Victory():void{
UnSetKeyEventers();
StopUnits();
addChildAt(VD, (numChildren - 1));
if (Scores[(curlvl - 1)] < LS.score){
Scores[(curlvl - 1)] = LS.score;
};
if (maxlvl == curlvl){
maxlvl++;
SaveLSO();
};
if (curlvl == 13){
ShowScoreBoard();
maxlvl = 13;
};
VD.gotoAndPlay(1);
trace("!!!! Victory !!!!");
}
public function Defeat(_arg1:Event=null):void{
UnSetKeyEventers();
StopUnits();
addChildAt(VD, numChildren);
VD.gotoAndPlay(15);
trace("!!!! Defeat !!!!");
}
public function RWar():void{
var _local1:Number;
var _local3:int;
var _local2:int;
while (_local2 < maxwlist) {
_local3 = 0;
while (_local3 < maxwlist) {
if (((((!((_local2 == _local3))) && (!((wlist[_local2] == null))))) && (!((wlist[_local3] == null))))){
_local1 = CalcDist(wlist[_local2], wlist[_local3]);
if (_local1 < 50){
if (wlist[_local2].wplr != wlist[_local3].wplr){
if ((((wlist[_local2].wt < 3)) && ((wlist[_local3].wt < 3)))){
trace(((("fight" + wlist[_local2].wt) + " ") + wlist[_local3].wt));
Fight(wlist[_local2], wlist[_local3], plist[_local2], plist[_local3]);
};
} else {
if (_local1 < 15){
if ((((wlist[_local2].wt == wlist[_local3].wt)) && ((wlist[_local2].tf == wlist[_local3].tf)))){
Union(wlist[_local2], wlist[_local3], plist[_local2], plist[_local3]);
} else {
if (wlist[_local2].y > wlist[_local3].y){
SG.setChildIndex(wlist[_local2], SG.getChildIndex(wlist[_local3]));
} else {
SG.setChildIndex(wlist[_local3], SG.getChildIndex(wlist[_local2]));
};
};
};
};
};
};
_local3++;
};
_local2++;
};
}
public function Union(_arg1:Warrior, _arg2:Warrior, _arg3:Wpls, _arg4:Wpls):void{
if (_arg1.wp > _arg2.wp){
_arg1.wn = (_arg1.wn + _arg2.wn);
_arg3.n = _arg1.wn;
_arg3.Add(_arg2.wn);
_arg3.Out();
_arg2.act = false;
} else {
_arg2.wn = (_arg2.wn + _arg1.wn);
_arg4.n = _arg2.wn;
_arg4.Add(_arg1.wn);
_arg4.Out();
_arg1.act = false;
};
RemDeads();
}
public function Fight(_arg1:Warrior, _arg2:Warrior, _arg3:Wpls, _arg4:Wpls):void{
var _local5:Number = (_arg1.wp * _arg1.wn);
var _local6:Number = (_arg2.wp * _arg2.wn);
if (_local5 > _local6){
_arg1.wn = ((_local5 - _local6) / _arg1.wp);
_arg3.n = _arg1.wn;
_arg3.Sub(_arg2.wn);
_arg3.Out();
_arg2.act = false;
ShowDeath(_arg2);
_arg1.Delay();
if (_arg1.wplr == 0){
sRand(AF);
AddScore(((_arg2.wp * _arg2.wn) * 100));
};
if (_arg2.wplr == 0){
sRand(AD);
AddScore(((_arg1.wp * _arg1.wn) * -100));
};
} else {
_arg2.wn = ((_local6 - _local5) / _arg2.wp);
_arg4.n = _arg2.wn;
_arg4.Sub(_arg1.wn);
_arg4.Out();
_arg1.act = false;
ShowDeath(_arg1);
_arg2.Delay();
if (_arg2.wplr == 0){
sRand(AF);
AddScore(((_arg1.wp * _arg1.wn) * 100));
};
if (_arg1.wplr == 0){
sRand(AD);
AddScore(((_arg2.wp * _arg2.wn) * -100));
};
};
sC = sguns.play(0, 1, sts);
if (_arg1.wn < 1){
_arg1.act = false;
ShowDeath(_arg1);
};
if (_arg2.wn < 1){
_arg2.act = false;
ShowDeath(_arg2);
};
RemDeads();
}
public function ShowDeath(_arg1:Warrior):void{
var _local2:int;
if (_arg1.wt == 0){
_local2 = 0;
while (_local2 < 20) {
if (TD1[_local2].visible == false){
TD1[_local2].visible = true;
TD1[_local2].RunAt(_arg1.x, _arg1.y, clr[(_arg1.wplr + 1)], _arg1.scaleX);
SG.setChildIndex(TD1[_local2], SG.getChildIndex(_arg1));
trace("dead");
break;
};
_local2++;
};
} else {
if (_arg1.wt == 1){
_local2 = 0;
while (_local2 < 20) {
if (TD2[_local2].visible == false){
TD2[_local2].visible = true;
TD2[_local2].RunAt(_arg1.x, _arg1.y, clr[(_arg1.wplr + 1)], _arg1.scaleX);
SG.setChildIndex(TD2[_local2], SG.getChildIndex(_arg1));
break;
};
_local2++;
};
};
};
}
public function RemDeads():void{
var _local1:int;
while (_local1 < maxwlist) {
if (wlist[_local1] != null){
if (wlist[_local1].act == false){
wlist[_local1].wait = false;
SG.removeChild(wlist[_local1]);
SG.removeChild(plist[_local1]);
plist[_local1].y = -1000;
plist[_local1].txt2.alpha = 0;
wlist[_local1] = null;
};
};
_local1++;
};
}
public function CalcDist(_arg1:Warrior, _arg2:Warrior):Number{
var _local3:Number = (_arg1.x - _arg2.x);
var _local4:Number = (_arg1.y - _arg2.y);
return (Math.sqrt(((_local3 * _local3) + (_local4 * _local4))));
}
public function CalcDC(_arg1:int, _arg2:int):Number{
var _local3:Number = (CC[_arg1].x - CC[_arg2].x);
var _local4:Number = (CC[_arg1].y - CC[_arg2].y);
return (Math.sqrt(((_local3 * _local3) + (_local4 * _local4))));
}
public function RPath():void{
var _local1:int;
while (_local1 < CIlen) {
if (CI[_local1].act == true){
CI[_local1].Render();
};
_local1++;
};
}
public function CalcSC(_arg1:int):int{
var _local2:int;
var _local3:Number = 0;
var _local4:Number = 0;
var _local5:Number = 0;
var _local6:int;
while (_local6 < Clen) {
if (((!((CC[_arg1].plr == CC[_local6].plr))) && (!((CC[_local6].typ == 8))))){
_local4 = (((CC[_arg1].curpop * CC[_arg1].wp) / (CC[_local6].curpop * CC[_local6].wp)) / CD[_arg1][_local6]);
if (_local4 > _local3){
_local3 = _local4;
_local2 = _local6;
};
};
_local6++;
};
return (_local2);
}
public function MaxSO(_arg1:int):int{
var _local2:int;
var _local3:int;
while (_local3 < Clen) {
if (CC[_local3].plr == _arg1){
if (CC[_local2].so < CC[_local3].so){
_local2 = _local3;
};
};
_local3++;
};
return (_local2);
}
public function RCOM2(_arg1:COM):void{
var _local2:int;
_arg1.Ren();
if (_arg1.rdy == true){
_arg1.rdy = false;
_arg1.numC = 0;
_local2 = 0;
while (_local2 < Clen) {
if (CC[_local2].plr == _arg1.plr){
_arg1.numC++;
};
_local2++;
};
if (_arg1.numC > 0){
_local2 = 0;
while (_local2 < Clen) {
CalcS(_local2, _arg1);
_local2++;
};
_arg1.nextc = Min(S);
CRCom2(_arg1);
} else {
_arg1.act = false;
trace("!!! Enemy defeat !!!");
};
};
}
public function CRCom2(_arg1:COM):void{
var _local3:int;
var _local2:int = _arg1.nextc;
var _local4:int;
while (_local4 < Clen) {
if (_local2 != _local4){
if (CC[_local4].typ == 8){
_arg1.R[_local4] = 999999;
} else {
_arg1.R[_local4] = CalcR(_local2, _local4);
};
} else {
_arg1.R[_local4] = 999999;
};
_local4++;
};
_local3 = Min(_arg1.R);
var _local5:Number = ((CC[_local2].curpop * CC[_local2].wp) + (CC[_local2].curpop * CC[_local2].arm));
var _local6:Number = ((CC[_local3].curpop * CC[_local3].wp) + (CC[_local3].curpop * CC[_local3].arm));
_local5 = (_local5 / _local6);
if (_local5 > 1){
SendFromTo(_local2, _local3, false);
} else {
SendFromTo(_local2, _local3, true);
};
}
public function CalcS(_arg1:int, _arg2:COM):void{
if (CC[_arg1].typ != 8){
if (CC[_arg1].plr == _arg2.plr){
_arg2.S[_arg1] = ((CC[_arg1].maxpop / (CC[_arg1].curpop + 1)) * CC[_arg1].wp);
} else {
_arg2.S[_arg1] = 999999;
};
} else {
_arg2.S[_arg1] = 999999;
};
}
public function CalcR(_arg1:int, _arg2:int):Number{
var _local3:Number;
var _local4:Number;
var _local5:Number;
if ((((CP[_arg1][_arg2] > -1)) || ((CC[_arg1].typ == 3)))){
_local3 = (((CC[_arg1].curpop * CC[_arg1].wp) + (CC[_arg1].curpop * CC[_arg1].arm)) + 1);
_local4 = (((CC[_arg2].curpop * CC[_arg2].wp) + (CC[_arg2].curpop * CC[_arg2].arm)) + 1);
_local5 = ((CD[_arg1][_arg2] / CC[_arg2].cost) * (_local4 / _local3));
if (CC[_arg1].plr == CC[_arg2].plr){
_local5 = (_local5 * 10);
} else {
_local5 = (_local5 * 0.2);
};
} else {
_local5 = 99999;
};
return (_local5);
}
public function FindEPCast(_arg1:int):int{
var _local2:int;
var _local4:Number;
var _local3:Number = 999999;
var _local5:int;
while (_local5 < Clen) {
if (CP[_arg1][_local5] == 1){
if (((!((CC[_arg1].plr == CC[_local5].plr))) && (!((CC[_local5].typ == 8))))){
_local4 = (CC[_local5].curpop * CC[_local5].wp);
if (_local4 < _local3){
_local3 = _local4;
_local2 = _local5;
};
};
};
_local5++;
};
return (_local2);
}
public function FindECast(_arg1:int):int{
var _local2:int;
var _local4:Number;
var _local3:Number = 999999;
var _local5:int;
while (_local5 < Clen) {
if (((!((CC[_local5].plr == CC[_arg1].plr))) && (!((CC[_local5].typ == 8))))){
_local4 = (CC[_local5].curpop * CC[_local5].wp);
if (_local4 < _local3){
_local3 = _local4;
_local2 = _local5;
};
};
_local5++;
};
return (_local2);
}
public function FindAlyCast(_arg1:int):int{
var _local2:int;
var _local3:int;
_local2 = 0;
while (_local2 < Clen) {
if ((((CC[_arg1].plr == CC[_local2].plr)) && (!((_arg1 == _local2))))){
CalcSO(_local2);
} else {
CC[_arg1].so = -1;
};
_local2++;
};
_local2 = 0;
while (_local2 < Clen) {
if (CC[_local2].so > 0){
if ((((CC[_local3].so < CC[_local2].so)) && (!((_local3 == _local2))))){
_local3 = _local2;
};
};
_local2++;
};
return (_local3);
}
public function CalcSO(_arg1:int):void{
CC[_arg1].so = 0;
var _local2:int;
while (_local2 < Clen) {
if (CP[_arg1][_local2] == 1){
if (((!((CC[_arg1].plr == CC[_local2].plr))) && (!((CC[_local2].typ == 8))))){
CC[_arg1].so = (CC[_arg1].so + (CC[_local2].curpop / CC[_arg1].curpop));
};
};
_local2++;
};
}
public function Min(_arg1:Array):int{
var _local2:int;
var _local3:int;
while (_local3 < _arg1.length) {
if (_arg1[_local2] > _arg1[_local3]){
_local2 = _local3;
};
_local3++;
};
return (_local2);
}
public function RCast():void{
var _local1:int;
var _local2:*;
var _local3:*;
rci = 0;
while (rci < Clen) {
if (CC[rci].typ != 8){
CC[rci].R();
};
rci++;
};
rci = 0;
while (rci < wlen) {
if (wlist[rci] != null){
wlist[rci].Render();
plist[rci].x = wlist[rci].x;
plist[rci].y = (wlist[rci].y + wlist[rci].plsh);
plist[rci].Render();
if (wlist[rci].itg == true){
CaptCast(wlist[rci]);
wlist[rci].act = false;
RemDeads();
break;
};
if (wlist[rci].onc == true){
wlist[rci].onc = false;
_local1 = wlist[rci].tp;
if (((!((CC[_local1].plr == wlist[rci].wplr))) && (!((CC[_local1].typ == 8))))){
_local2 = (CC[_local1].curpop * CC[_local1].wp);
_local3 = (wlist[rci].wn * wlist[rci].wp);
if (_local3 > _local2){
_local3 = ((_local3 - _local2) / wlist[rci].wp);
if (CC[_local1].plr == 0){
sC = slose_c.play(0, 1, sts);
AddScore(-1000);
};
CC[_local1].plr = wlist[rci].wplr;
CC[_local1].SetClr(clr[(wlist[rci].wplr + 1)]);
if (wlist[rci].wplr == 0){
sC = sget_c.play(0, 1, sts);
AddScore(1000);
sRand(AC);
};
CC[_local1].pls.Sub(CC[_local1].curpop);
CC[_local1].curpop = 0;
CC[_local1].curdel = 0;
CC[_local1].OutPop();
plist[rci].Sub((wlist[rci].wn - _local3));
wlist[rci].wn = _local3;
if (wlist[rci].wn > 0){
plist[rci].n = wlist[rci].wn;
plist[rci].Out();
} else {
wlist[rci].act = false;
RemDeads();
};
} else {
wlist[rci].tf = _local1;
CaptCast(wlist[rci]);
wlist[rci].act = false;
RemDeads();
};
};
if (wlist[rci] != null){
addWarTo(wlist[rci]);
};
};
};
rci++;
};
}
public function CaptCast(_arg1:Warrior):void{
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local2:int = _arg1.tf;
if (_arg1.wplr == CC[_local2].plr){
if ((CC[_local2].curpop + _arg1.wn) > CC[_local2].maxpop){
CC[_local2].curpop = CC[_local2].maxpop;
CC[_local2].pls.Add((CC[_local2].maxpop - CC[_local2].curpop));
} else {
CC[_local2].curpop = (CC[_local2].curpop + _arg1.wn);
CC[_local2].pls.Add(CC[_local2].curpop);
};
CC[_local2].OutPop();
} else {
_local3 = (CC[_local2].curpop * CC[_local2].wp);
_local4 = (_arg1.wn * _arg1.wp);
if (_local3 < _local4){
_local5 = ((_local4 - _local3) / _arg1.wp);
if (_local5 > CC[_local2].maxpop){
_local5 = CC[_local2].maxpop;
};
CC[_local2].curpop = _local5;
if (CC[_local2].plr == 0){
sC = slose_c.play(0, 1, sts);
AddScore(-1000);
};
CC[_local2].fon.alpha = 1;
CC[_local2].plr = _arg1.wplr;
CC[_local2].SetClr(clr[(_arg1.wplr + 1)]);
CC[_local2].pls.Add(_local5);
CC[_local2].curdel = 0;
if (_arg1.wplr == 0){
sC = sget_c.play(0, 1, sts);
AddScore(1000);
sRand(AC);
} else {
CDesel(_local2);
};
} else {
_local6 = CC[_local2].curpop;
_local5 = ((_local3 - _local4) / CC[_local2].wp);
CC[_local2].curpop = _local5;
CC[_local2].curdel = 0;
CC[_local2].pls.Sub((_local6 - _local5));
};
CC[_local2].OutPop();
};
}
public function RKeys():void{
if (KeyLEFT == true){
SG.spdx = 50;
} else {
if (KeyRIGHT == true){
SG.spdx = -50;
} else {
SG.spdx = 0;
};
};
SG.x = (SG.x + Math.round(SG.spdx));
if (SG.x > 0){
SG.spdx = 0;
SG.x = 0;
};
if (SG.x < lvlw){
SG.spdx = 0;
SG.x = lvlw;
};
IF.x = SG.x;
GD.x = SG.x;
FG.x = (SG.x * 1.15);
BG.x = (SG.x * 0.25);
}
public function WSend():void{
CC[mcc].sel = false;
var _local1:Boolean;
wsi = 0;
while (wsi < Clen) {
if (CC[wsi].sel == true){
if ((((CP[wsi][mcc] > -1)) || ((CC[wsi].typ == 3)))){
_local1 = true;
SendFromTo(wsi, mcc, ctrl);
CC[im].Sel.gotoAndStop(1);
CC[im].Atk.gotoAndPlay(2);
};
};
wsi++;
};
if (_local1 == true){
sRand(AS);
};
}
public function SendFromTo(_arg1:int, _arg2:int, _arg3:Boolean):void{
var _local4:Number;
var _local5:Number;
var _local6:*;
var _local7:Number;
trace(("SendFromTo from " + CC[_arg1].wt));
if (((!((_arg1 == _arg2))) && ((CP[_arg1][_arg2] > -1)))){
if (_arg3 == true){
wc = CC[_arg1].curpop;
} else {
wc = int((CC[_arg1].curpop * 0.5));
};
if (wc > 0){
wlr = CC[_arg1].plr;
wwt = CC[_arg1].wt;
if ((((CC[_arg1].typ > 5)) && ((CC[_arg1].curpop == wc)))){
CC[_arg1].plr = -1;
CC[_arg1].SetClr(clr[0]);
};
CC[_arg1].curpop = (CC[_arg1].curpop - wc);
CC[_arg1].OutPop();
wi = 0;
while (wi < maxW) {
if (W[wlr][wwt][wi].act == false){
if (CC[_arg1].typ == 5){
_local4 = (CC[_arg2].x - CC[_arg1].x);
_local5 = ((CC[_arg2].y - CC[_arg1].y) - CC[_arg1].Rad.y);
_local6 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5)));
_local7 = (-(Math.atan2(_local4, _local5)) / 0.01745);
trace(((((("distance = " + _local6) + " (") + CC[_arg1].rd) + ") | rotation = ") + _local7));
if (_local6 > CC[_arg1].rd){
W[wlr][wwt][wi].Set(wlr, CC[_arg1].ws, CC[_arg1].wp, CC[_arg1].lvl, 0, wc, _arg1, _arg2);
trace("cant teleportation");
} else {
CC[_arg1].spin.gotoAndPlay(1);
W[wlr][wwt][wi].Set(wlr, CC[_arg1].ws, CC[_arg1].wp, CC[_arg1].lvl, CC[_arg1].wt, wc, _arg1, _arg2);
W[wlr][wwt][wi].tp = W[wlr][wwt][wi].tf;
W[wlr][wwt][wi].itg = true;
trace((("teleportation to: " + W[wlr][wwt][wi].tp) + " "));
};
} else {
if (CC[_arg1].typ == 3){
CC[_arg1].body.gotoAndPlay(1);
W[wlr][wwt][wi].Set(wlr, CC[_arg1].ws, CC[_arg1].wp, CC[_arg1].lvl, CC[_arg1].wt, wc, _arg1, _arg2);
W[wlr][wwt][wi].tc = W[wlr][wwt][wi].tf;
W[wlr][wwt][wi].Cvec();
} else {
W[wlr][wwt][wi].Set(wlr, CC[_arg1].ws, CC[_arg1].wp, CC[_arg1].lvl, CC[_arg1].wt, wc, _arg1, _arg2);
trace(((((((("sending " + CC[_arg1].ws) + " ") + CC[_arg1].wt) + " ") + _arg1) + " ") + _arg2));
};
};
addWList(wlr, wwt, wi);
break;
};
wi++;
};
};
};
}
public function addWList(_arg1:int, _arg2:int, _arg3:int):void{
awi = 0;
while (awi < maxwlist) {
if (wlist[awi] == null){
wlist[awi] = W[_arg1][_arg2][_arg3];
if (wlist[awi].wt == 3){
SG.addChild(wlist[awi]);
} else {
SG.addChild(wlist[awi]);
addWarTo(wlist[awi]);
};
SG.addChild(plist[awi]);
plist[awi].n = wlist[awi].wn;
plist[awi].Out();
wlen++;
break;
};
awi++;
};
}
public function addWarTo(_arg1:Warrior):void{
var _local2:* = Math.abs((CC[_arg1.tc].x - CC[_arg1.tp].x));
var _local3:Number = (CC[_arg1.tc].y - CC[_arg1.tp].y);
_local2 = (_local2 / _local3);
if (_local3 < 0){
if (_local2 > -2.3){
SG.setChildIndex(_arg1, (SG.getChildIndex(CC[_arg1.tc]) + 1));
} else {
SG.setChildIndex(_arg1, (SG.getChildIndex(CC[_arg1.tp]) + 1));
};
} else {
if (_local2 < 2.5){
SG.setChildIndex(_arg1, (SG.getChildIndex(CC[_arg1.tp]) + 1));
} else {
SG.setChildIndex(_arg1, (SG.getChildIndex(CC[_arg1.tc]) + 1));
};
};
}
public function onMUp(_arg1:MouseEvent):void{
MDown = false;
if (nsel > 0){
if (mcc > -1){
WSend();
HidePath();
CDesel();
} else {
scc = true;
};
};
}
public function onMDown(_arg1:MouseEvent):void{
MDown = true;
if (scc == true){
if (mcc > -1){
if (nsel > 0){
WSend();
HidePath();
scc = false;
};
};
CDesel();
};
}
public function GMove(_arg1:Event=null):void{
if (mouseY < 500){
if (mouseX < 25){
KeyLEFT = true;
} else {
KeyLEFT = false;
};
if (mouseX > (stw - 25)){
KeyRIGHT = true;
} else {
KeyRIGHT = false;
};
};
}
public function onMMove(_arg1:MouseEvent):void{
GMove();
mpx = (mouseX - SG.x);
Cmcc();
if (MDown == true){
if (mcc > -1){
if (CC[mcc].sel == false){
if (CC[mcc].plr == 0){
nsel++;
CC[mcc].sel = true;
CC[mcc].Sel.gotoAndPlay(1);
};
};
};
};
CalcPath();
}
public function CalcPath():void{
var _local1:int;
var _local2:int;
if ((((mcc > -1)) && ((nsel > 0)))){
if (paint == false){
_local2 = 0;
while (_local2 < Clen) {
if (CC[_local2].sel == true){
ShowPath(_local2, mcc);
};
_local2++;
};
};
} else {
if (nsel > 0){
HidePath();
};
};
}
public function ShowPath(_arg1:int, _arg2:int):void{
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
if (CC[_arg1].typ != 3){
_local3 = _arg1;
_local4 = 0;
_local5 = 999999;
_local6 = 999999;
if (CP[_arg1][_arg2] > -1){
if (CP[_arg1][_arg2] == 1){
ShowSubPath(_arg1, _arg2);
} else {
_local7 = 0;
while (_local7 < Clen) {
_local8 = 0;
while (_local8 < Clen) {
if (CP[_local3][_local8] == 1){
if (CD[_local8][_arg2] < CD[_local4][_arg2]){
_local4 = _local8;
};
};
_local8++;
};
_local4 = minj(_local3, _arg2);
if (CP[_local3][_local4] == 1){
if (CD[_local4][_arg2] < _local5){
ShowSubPath(_local3, _local4);
_local3 = _local4;
_local5 = CD[_local4][_arg2];
};
};
_local7++;
};
};
};
};
}
public function minj(_arg1:int, _arg2:int):int{
var _local3:int;
var _local4 = 999999;
var _local5:int;
while (_local5 < Clen) {
if (CP[_arg1][_local5] == 1){
if (CD[_local5][_arg2] < _local4){
_local4 = CD[_local5][_arg2];
_local3 = _local5;
};
};
_local5++;
};
return (_local3);
}
public function ShowSubPath(_arg1:int, _arg2:int):void{
var _local3:int;
while (_local3 < CIlen) {
if ((((_arg1 == CI[_local3].s)) && ((_arg2 == CI[_local3].f)))){
CI[_local3].act = true;
CI[_local3].inv = false;
IF.addChild(CI[_local3]);
};
if ((((_arg1 == CI[_local3].f)) && ((_arg2 == CI[_local3].s)))){
CI[_local3].act = true;
CI[_local3].inv = true;
IF.addChild(CI[_local3]);
};
_local3++;
};
}
public function HidePath():void{
var _local1:int;
while (_local1 < CIlen) {
if (CI[_local1].act == true){
CI[_local1].act = false;
IF.removeChild(CI[_local1]);
};
_local1++;
};
}
public function Cmcc():void{
mcc = -1;
im = 0;
while (im < Clen) {
if (CC[im].typ != 8){
msx = (mpx - CC[im].x);
msy = ((mouseY - CC[im].y) + 40);
msd = Math.sqrt(((msx * msx) + (msy * msy)));
if (msd < 50){
mcc = im;
break;
};
};
im++;
};
}
public function HideHints():void{
var _local1:int;
while (_local1 < Clen) {
if ((((CC[_local1].typ < 8)) && ((CC[_local1].typ > 5)))){
CC[_local1].Rad.play();
};
_local1++;
};
}
public function CDesel(_arg1:int=500):void{
var _local2:*;
if (_arg1 == 500){
_local2 = 0;
while (_local2 < Clen) {
if (CC[_local2].sel == true){
CC[_local2].sel = false;
CC[_local2].Sel.gotoAndPlay(8);
};
if (CC[_local2].typ > 5){
};
_local2++;
};
nsel = 0;
} else {
CC[_arg1].sel = false;
CC[_arg1].Sel.gotoAndPlay(8);
HidePath();
CalcPath();
};
}
public function onUp(_arg1:KeyboardEvent):void{
KeyDown = false;
key = _arg1.keyCode;
if ((((((key == 37)) || ((key == 65)))) || ((key == 81)))){
KeyLEFT = false;
};
if ((((key == 39)) || ((key == 68)))){
KeyRIGHT = false;
};
if ((((key == 17)) || ((key == 32)))){
ctrl = false;
};
}
public function onDown(_arg1:KeyboardEvent):void{
KeyDown = true;
key = _arg1.keyCode;
if ((((((key == 37)) || ((key == 65)))) || ((key == 81)))){
KeyLEFT = true;
};
if ((((key == 39)) || ((key == 68)))){
KeyRIGHT = true;
};
if ((((key == 17)) || ((key == 32)))){
ctrl = true;
};
}
public function StopUnits():void{
var _local1:int;
while (_local1 < wlen) {
if (wlist[_local1] != null){
wlist[_local1].gotoAndStop(1);
};
_local1++;
};
}
public function AddScore(_arg1:int):void{
score = (score + _arg1);
if (score < 0){
score = (score - _arg1);
LS.AddScore(-(score));
score = 0;
Scores[(curlvl - 1)] = 0;
} else {
Scores[(curlvl - 1)] = score;
LS.AddScore(_arg1);
};
}
public function TotalScore():void{
total = 0;
var _local1:int;
while (_local1 < Scores.length) {
total = (total + Scores[_local1]);
_local1++;
};
}
public function sRand(_arg1:Array):void{
var _local2:int;
do {
_local2 = (Math.random() * _arg1.length);
} while (_local2 == lr);
lr = _local2;
sC = _arg1[_local2].play(0, 1, sts);
}
public function MoreGames():void{
navigateToURL(new URLRequest("http://www.armorgames.com"), "_blank");
}
function frame1(){
stop();
agi_url = "http://agi.armorgames.com/assets/agi/AGI.swf";
Security.allowDomain(agi_url);
devKey = "a32ac586db4ebf783972917b8d947f94";
gameKey = "control-craft";
urlRequest = new URLRequest(agi_url);
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.load(urlRequest);
Pre.run();
Pre.addEventListener("Loaded", Loaded);
}
function frame2(){
removeChild(AllMC);
MochiBot.track(this, "458c2059");
StartMusic();
StartGame();
}
}
}//package CCGame
Section 20
//MScore (CCGame.MScore)
package CCGame {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class MScore extends MovieClip {
public var Submit:SimpleButton;
public var txt1:TextField;
public var txt2:TextField;
public function MScore():void{
txt1.embedFonts = true;
txt2.embedFonts = true;
Submit.visible = false;
Submit.addEventListener(MouseEvent.CLICK, onSubmit);
}
public function onSubmit(_arg1:MouseEvent):void{
dispatchEvent(new Event("onSubmit"));
trace("dispatch event");
}
public function Out(_arg1:int, _arg2:int):void{
if (_arg2 > 0){
Submit.visible = true;
};
txt1.htmlText = (("<FONT COLOR='#FFFFFF'>" + _arg1.toString()) + "</FONT>");
txt2.htmlText = (("<FONT COLOR='#FFFFFF'>" + _arg2.toString()) + "</FONT>");
}
}
}//package CCGame
Section 21
//MSlider (CCGame.MSlider)
package CCGame {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class MSlider extends MovieClip {
public var SR:SimpleButton;
public var Slide:MovieClip;
public var BCompLock:MovieClip;
public var SL:SimpleButton;
public var BPlay:SimpleButton;
public var BAgain:SimpleButton;
public var ScoreMC:MScore;
public var BBack:SimpleButton;
public var ALock:Array;
public var alls:int;// = 11
public var maxs:int;
public var curs:int;
public var tx:int;
public var vx:Number;
public var sslide_rtl:slide_rtl;
public var sslide_ltr:slide_ltr;
public var sC:SoundChannel;
public var st:SoundTransform;
public var score:int;
public var total:int;
public var Score:Array;
public var SLock:Sprite;
public function MSlider():void{
alls = 12;
ALock = new Array();
SLock = new Sprite();
sslide_ltr = new slide_ltr();
sslide_rtl = new slide_rtl();
sC = new SoundChannel();
st = new SoundTransform(1, 0);
addChildAt(SLock, 2);
SLock.x = Slide.x;
var _local1:int;
while (_local1 < (alls + 1)) {
ALock.push(new Locked());
ALock[_local1].x = (_local1 * 422);
SLock.addChild(ALock[_local1]);
_local1++;
};
SL.addEventListener(MouseEvent.CLICK, StoL);
SR.addEventListener(MouseEvent.CLICK, StoR);
BPlay.addEventListener(MouseEvent.CLICK, onBPlay);
BBack.addEventListener(MouseEvent.CLICK, onBBack);
BAgain.addEventListener(MouseEvent.CLICK, onBAgain);
}
public function SetSlider(_arg1:int, _arg2:SoundTransform, _arg3:int, _arg4:Array):void{
var _local5:int;
st = _arg2;
Score = _arg4;
BPlay.visible = false;
BCompLock.visible = false;
BAgain.visible = false;
maxs = _arg1;
curs = (_arg3 - 1);
_local5 = 0;
while (_local5 < (alls + 1)) {
if (_local5 < maxs){
ALock[_local5].visible = false;
} else {
ALock[_local5].visible = true;
};
_local5++;
};
maxs--;
if (_arg3 == 0){
SL.visible = false;
};
if (_arg3 == alls){
SR.visible = false;
};
tx = ((curs * -422) + 200);
addEventListener(Event.ENTER_FRAME, SRen);
total = 0;
score = Score[curs];
_local5 = 0;
while (_local5 < 15) {
total = (total + Score[_local5]);
_local5++;
};
ScoreMC.Out(score, total);
}
public function CalcScore():void{
var _local1:int;
while (_local1 < Score.lenght) {
total = (total + Score[_local1]);
_local1++;
};
}
public function onBPlay(_arg1:Event):void{
trace("onBPlay");
dispatchEvent(new Event("onBPlay"));
}
public function onBBack(_arg1:Event):void{
trace("onBBack");
}
public function onBAgain(_arg1:Event):void{
trace("onBAgain");
dispatchEvent(new Event("onBAgain"));
}
public function StoL(_arg1:Event):void{
if (curs > 0){
curs--;
tx = ((curs * -422) + 200);
addEventListener(Event.ENTER_FRAME, SRen);
sC = sslide_rtl.play(0, 1, st);
};
if (curs < 1){
SL.visible = false;
SR.visible = true;
} else {
SL.visible = true;
SR.visible = true;
};
trace(((("to right - " + curs) + " alls:") + alls));
BPlay.visible = false;
BCompLock.visible = false;
BAgain.visible = false;
score = Score[curs];
ScoreMC.Out(score, total);
}
public function StoR(_arg1:Event):void{
if (curs < alls){
curs++;
tx = ((curs * -422) + 200);
addEventListener(Event.ENTER_FRAME, SRen);
sC = sslide_ltr.play(0, 1, st);
};
if (curs > (alls - 1)){
SR.visible = false;
SL.visible = true;
} else {
SL.visible = true;
SR.visible = true;
};
trace(((("to right - " + curs) + " alls:") + alls));
BPlay.visible = false;
BCompLock.visible = false;
BAgain.visible = false;
score = Score[curs];
ScoreMC.Out(score, total);
}
public function SRen(_arg1:Event=null):void{
vx = (tx - Slide.x);
Slide.x = (Slide.x + (vx * 0.3));
SLock.x = Slide.x;
vx = Math.abs(vx);
if (vx < 1){
Slide.x = tx;
SLock.x = tx;
removeEventListener(Event.ENTER_FRAME, SRen);
trace(("Slide x = " + Slide.x));
if (curs == maxs){
BPlay.visible = true;
};
if (curs < maxs){
BCompLock.visible = true;
BCompLock.gotoAndStop(1);
BAgain.visible = true;
};
if (curs > maxs){
BCompLock.visible = true;
BCompLock.gotoAndStop(2);
};
};
}
}
}//package CCGame
Section 22
//Path (CCGame.Path)
package CCGame {
import flash.display.*;
public class Path extends MovieClip {
public var s:int;
public var f:int;
public var cpoint:int;
public var npoint:int;
public var spx:Number;
public var spy:Number;
public var fpx:Number;
public var fpy:Number;
public var vx:Number;
public var vy:Number;
public var fx:Number;
public var fy:Number;
public var dx:Number;
public var dy:Number;
public var d:Number;
public var sd:Number;
public var act:Boolean;
public var inv:Boolean;
public var G:Sprite;
public var P:cPoint;
public function Path():void{
P = new cPoint();
P.alpha = 0.5;
}
public function Set(_arg1:int, _arg2:int, _arg3:Array):void{
var _local5:Number;
var _local6:Number;
s = _arg1;
f = _arg2;
x = 0;
y = 0;
fx = (_arg3[f].x - _arg3[s].x);
fy = (_arg3[f].y - _arg3[s].y);
dx = (fx - x);
dy = (fy - y);
d = Math.sqrt(((dx * dx) + (dy * dy)));
vx = (dx / d);
vy = (dy / d);
d = (d - 10);
cpoint = 0;
npoint = Math.round((d / 10));
sd = ((d - Math.round(d)) / 2);
spx = (vx * (sd + 5));
spy = (vy * (sd + 5));
fpx = (fx - (vx * (sd + 5)));
fpy = (fy - (vy * (sd + 5)));
act = false;
inv = true;
G = new Sprite();
addChild(G);
addChild(P);
P.x = (spx + (vx * 10));
P.y = (spy + (vy * 10));
G.x = x;
G.y = y;
G.alpha = 0.2;
G.graphics.beginFill(0xFFFFFF);
var _local4:int;
while (_local4 < (npoint + 1)) {
_local5 = (spx + ((_local4 * vx) * 10));
_local6 = (spy + ((_local4 * vy) * 10));
G.graphics.drawCircle(_local5, _local6, 2);
_local4++;
};
G.graphics.endFill();
x = _arg3[s].x;
y = _arg3[s].y;
}
public function Render():void{
P.x = (spx + ((vx * 10) * cpoint));
P.y = (spy + ((vy * 10) * cpoint));
if (inv == false){
cpoint++;
if (cpoint > npoint){
cpoint = 0;
};
} else {
cpoint--;
if (cpoint < 0){
cpoint = npoint;
};
};
}
}
}//package CCGame
Section 23
//preloader (CCGame.preloader)
package CCGame {
import flash.display.*;
import flash.events.*;
import CPMStar.*;
import flash.text.*;
public dynamic class preloader extends MovieClip {
public var pr:MovieClip;
public var adBox:MovieClip;
var BytesLoaded:Number;
var BytesTotal:Number;
var percent:Number;// = 0
public function preloader():void{
addFrameScript(0, frame1);
trace("---preloader created");
}
public function adsAllow():void{
var _local1:String;
var _local2:DisplayObject;
if (MovieClip(parent).showAds == true){
_local1 = "3502Q26F1EE61";
_local2 = new AdLoader(_local1);
adBox.addChild(_local2);
trace("### ads Allowed");
};
}
public function run():void{
addEventListener(Event.ENTER_FRAME, checkLoad);
if (!isUrl(["armorgames.com", "kongregate.com"])){
MovieClip(parent).showAds = true;
adsAllow();
trace("### on ads");
} else {
MovieClip(parent).showAds = false;
trace("### off ads");
};
trace("---preloader run");
}
public function isUrl(_arg1:Array):Boolean{
trace("is url run");
trace(_arg1);
var _local2:String = stage.loaderInfo.loaderURL;
trace(("url " + _local2));
var _local3:Number = (_local2.indexOf("://") + 3);
var _local4:Number = _local2.indexOf("/", _local3);
var _local5:String = _local2.substring(_local3, _local4);
var _local6:Number = (_local5.lastIndexOf(".") - 1);
var _local7:Number = (_local5.lastIndexOf(".", _local6) + 1);
_local5 = _local5.substring(_local7, _local5.length);
var _local8:int;
while (_local8 < _arg1.length) {
if (_local5 == _arg1[_local8]){
return (true);
};
_local8++;
};
return (false);
}
private function checkLoad(_arg1:Event):void{
BytesLoaded = stage.loaderInfo.bytesLoaded;
BytesTotal = stage.loaderInfo.bytesTotal;
percent = Math.round(((BytesLoaded / BytesTotal) * 100));
trace((("loaded " + percent) + "%"));
if ((((BytesLoaded == BytesTotal)) && (!((BytesTotal == 0))))){
removeEventListener(Event.ENTER_FRAME, checkLoad);
dispatchEvent(new Event("Loaded"));
};
this.pr.width = int((percent * 4.5));
}
function frame1(){
stop();
}
}
}//package CCGame
Section 24
//SubmitScore (CCGame.SubmitScore)
package CCGame {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.*;
public class SubmitScore extends MovieClip {
public var agi_url:String;
public var devKey:String;
public var gameKey:String;
public var agi;
public var urlRequest:URLRequest;
public var loader:Loader;
public function SubmitScore():void{
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function loadComplete(_arg1:Event):void{
agi = _arg1.currentTarget.content;
addChild(agi);
agi.init(devKey, gameKey);
this.gotoAndStop(3);
trace("=============== agi loading complete");
}
public function onClose(_arg1:Event):void{
}
function frame1(){
stop();
}
function frame2(){
stop();
agi_url = "http://agi.armorgames.com/assets/agi/AGI.swf";
devKey = "a32ac586db4ebf783972917b8d947f94";
gameKey = "control-craft";
Security.allowDomain(agi_url);
urlRequest = new URLRequest(agi_url);
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.load(urlRequest);
}
function frame3(){
stop();
agi.showScoreboardSubmit(450);
}
}
}//package CCGame
Section 25
//TDead (CCGame.TDead)
package CCGame {
import flash.display.*;
import flash.geom.*;
public class TDead extends MovieClip {
public var body:MovieClip;
public var blood:MovieClip;
public function TDead():void{
visible = false;
body.stop();
blood.stop();
}
public function SetClr(_arg1:ColorTransform):void{
body.transform.colorTransform = _arg1;
}
public function RunAt(_arg1:Number, _arg2:Number, _arg3:ColorTransform, _arg4:Number):void{
scaleX = _arg4;
x = _arg1;
y = _arg2;
body.transform.colorTransform = _arg3;
body.gotoAndPlay(1);
blood.gotoAndPlay(1);
}
}
}//package CCGame
Section 26
//TSE3 (CCGame.TSE3)
package CCGame {
public class TSE3 extends Warrior {
public var spd:Number;// = 3
public var upy:Number;
public function TSE3():void{
addFrameScript(19, frame20);
}
override public function Render():void{
if (itg == false){
if (spd < 3.5){
spd = (spd + 0.05);
};
upy = (upy * 0.95);
ld = d;
dx = (tx - x);
dy = (ty - y);
d = Math.sqrt(((dx * dx) + (dy * dy)));
dx = (dx / d);
dy = (dy / d);
vx = (dx * spd);
vy = (dy * spd);
x = (x + vx);
y = (y + (vy - upy));
if (d < 5){
itg = true;
};
};
}
override public function Cvec():void{
tx = CC[tf].x;
ty = (CC[tf].y - 50);
if (tx < x){
scaleX = -1;
} else {
scaleX = 1;
};
}
override public function Set(_arg1:int, _arg2:Number, _arg3:Number, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):void{
_arg2 = 0;
upy = 5;
wplr = _arg1;
act = true;
itg = false;
ws = _arg2;
wp = _arg3;
wn = _arg6;
wt = 3;
tf = _arg8;
tp = _arg7;
x = CC[tp].x;
y = (CC[tp].y - 50);
Cvec();
gotoAndPlay(1);
}
function frame20(){
stop();
}
}
}//package CCGame
Section 27
//Warrior (CCGame.Warrior)
package CCGame {
import flash.display.*;
import flash.geom.*;
public class Warrior extends MovieClip {
public var WL:Array;
public var CC:Array;
public var CP:Array;
public var CD:Array;
public var CLR:Array;
public var ws:Number;
public var wp:Number;
public var wn:int;
public var delay:int;
public var wt:int;
public var wplr:int;
public var tx:Number;
public var ty:Number;
public var vx:Number;
public var vy:Number;
public var dx:Number;
public var dy:Number;
public var d:Number;
public var ld:Number;
public var tf:int;
public var tc:int;
public var tp:int;
public var np:int;
public var plsh:int;
public var ni:int;
public var tpp:Number;
public var onc:Boolean;// = false
public var act:Boolean;// = false
public var itg:Boolean;// = false
public var wait:Boolean;// = false
public var time:int;// = 0
public var clr:ColorTransform;
public function Warrior():void{
}
public function Delay(_arg1:int=25):void{
time = _arg1;
wait = true;
if (wt > 0){
gotoAndPlay(41);
} else {
gotoAndPlay(32);
};
}
public function SetClr(_arg1:ColorTransform):void{
clr = _arg1;
transform.colorTransform = clr;
}
public function Render():void{
if (wait == false){
if (itg == false){
ld = d;
x = (x + vx);
y = (y + vy);
dx = (tx - x);
dy = (ty - y);
d = Math.sqrt(((dx * dx) + (dy * dy)));
if (d > ld){
tp = tc;
onc = true;
if (tp == tf){
itg = true;
} else {
NextTarg();
Cvec();
};
};
};
} else {
time--;
if (time < 0){
wait = false;
gotoAndPlay(1);
};
};
}
public function NextTarg(){
if (CP[tp][tf] == 1){
tc = tf;
} else {
tpp = 999999;
ni = 0;
while (ni < CP[0].length) {
if (CP[tp][ni] == 1){
if (CD[ni][tf] < tpp){
tc = ni;
tpp = CD[ni][tf];
};
};
ni++;
};
};
}
public function Cvec():void{
tx = CC[tc].x;
ty = CC[tc].y;
dx = (tx - x);
dy = (ty - y);
d = Math.sqrt(((dx * dx) + (dy * dy)));
vx = (dx / d);
vy = (dy / d);
vx = (vx * ws);
vy = (vy * ws);
d = 999999;
if (vx < 0){
scaleX = -1;
} else {
scaleX = 1;
};
}
public function Get(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:Array):void{
CC = _arg1;
CP = _arg2;
CD = _arg3;
CLR = _arg4;
}
public function Set(_arg1:int, _arg2:Number, _arg3:Number, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):void{
wplr = _arg1;
act = true;
itg = false;
ws = _arg2;
wp = _arg3;
wn = _arg6;
wt = _arg5;
tf = _arg8;
tp = _arg7;
x = CC[tp].x;
y = CC[tp].y;
NextTarg();
Cvec();
gotoAndPlay(1);
}
public function Del():void{
act = false;
}
}
}//package CCGame
Section 28
//VicDef (CCGame.VicDef)
package CCGame {
import flash.display.*;
import flash.events.*;
public class VicDef extends MovieClip {
public var b_mg:SimpleButton;
public var b_next:SimpleButton;
public var b_rep:SimpleButton;
public var b_menu:SimpleButton;
public var w:int;// = 800
public function VicDef():void{
addFrameScript(0, frame1, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 13, frame14, 16, frame17, 17, frame18, 18, frame19, 21, frame22, 22, frame23, 23, frame24);
}
public function on_menu(_arg1:Event):void{
trace("on gtm");
MovieClip(parent).MenuShow();
MovieClip(parent).M.gotoAndPlay(1);
}
public function on_next(_arg1:Event):void{
trace("on nl");
MovieClip(parent).M.MSlider.SetSlider(MovieClip(parent).maxlvl, MovieClip(parent).sts, MovieClip(parent).maxlvl, MovieClip(parent).Scores);
MovieClip(parent).MenuShow();
MovieClip(parent).M.gotoAndPlay(27);
}
public function on_rep(_arg1:Event):void{
MovieClip(parent).SetKeyEventers();
MovieClip(parent).LevelStart(MovieClip(parent).curlvl, true);
}
public function on_mg(_arg1:Event):void{
MovieClip(parent).MoreGames();
}
function frame1(){
}
function frame4(){
b_next.addEventListener(MouseEvent.CLICK, on_next);
}
function frame5(){
b_mg.addEventListener(MouseEvent.CLICK, on_mg);
}
function frame6(){
b_rep.addEventListener(MouseEvent.CLICK, on_rep);
}
function frame7(){
b_menu.addEventListener(MouseEvent.CLICK, on_menu);
}
function frame14(){
stop();
}
function frame17(){
b_mg.addEventListener(MouseEvent.CLICK, on_mg);
}
function frame18(){
b_rep.addEventListener(MouseEvent.CLICK, on_rep);
}
function frame19(){
b_menu.addEventListener(MouseEvent.CLICK, on_menu);
}
function frame22(){
stop();
}
function frame23(){
}
function frame24(){
}
}
}//package CCGame
Section 29
//Wpls (CCGame.Wpls)
package CCGame {
import flash.display.*;
import flash.geom.*;
import flash.text.*;
public class Wpls extends MovieClip {
public var txt:TextField;
public var txt2:TextField;
public var n:int;
public var clr:ColorTransform;
public function Wpls():void{
clr = new ColorTransform();
txt2.alpha = 0;
txt.embedFonts = true;
txt2.embedFonts = true;
}
public function Out():void{
txt.htmlText = (("<FONT FACE='Trebuchet MS' COLOR='#FFFFFF'><b>" + n.toString()) + "</b></FONT>");
}
public function SetClr(_arg1:ColorTransform):void{
txt.transform.colorTransform = _arg1;
}
public function SetClrWar(_arg1:Warrior):void{
txt.transform.colorTransform = _arg1.clr;
}
public function Add(_arg1:int):void{
if (_arg1 != 0){
txt2.alpha = 1;
txt2.htmlText = (("<FONT FACE='Trebuchet MS' COLOR='#99CC33'><b>+" + _arg1.toString()) + "</b></FONT>");
};
}
public function Sub(_arg1:int):void{
if (_arg1 != 0){
txt2.alpha = 1;
txt2.htmlText = (("<FONT FACE='Trebuchet MS' COLOR='#EC0202'><b>-" + _arg1.toString()) + "</b></FONT>");
};
}
public function Render():void{
if (txt2.alpha > 0){
txt2.alpha = (txt2.alpha - 0.01);
};
}
}
}//package CCGame
Section 30
//AllLoad_10 (ControlCraft_G_CS5_fla.AllLoad_10)
package ControlCraft_G_CS5_fla {
import flash.display.*;
public dynamic class AllLoad_10 extends MovieClip {
public function AllLoad_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ControlCraft_G_CS5_fla
Section 31
//C3Body_28 (ControlCraft_G_CS5_fla.C3Body_28)
package ControlCraft_G_CS5_fla {
import flash.display.*;
public dynamic class C3Body_28 extends MovieClip {
public function C3Body_28(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package ControlCraft_G_CS5_fla
Section 32
//CAtk_21 (ControlCraft_G_CS5_fla.CAtk_21)
package ControlCraft_G_CS5_fla {
import flash.display.*;
public dynamic class CAtk_21 extends MovieClip {
public function CAtk_21(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(1);
}
}
}//package ControlCraft_G_CS5_fla
Section 33
//CSel_22 (ControlCraft_G_CS5_fla.CSel_22)
package ControlCraft_G_CS5_fla {
import flash.display.*;
public dynamic class CSel_22 extends MovieClip {
public function CSel_22(){
addFrameScript(6, frame7, 10, frame11);
}
function frame7(){
stop();
}
function frame11(){
stop();
}
}
}//package ControlCraft_G_CS5_fla
Section 34
//ins_page1_96 (ControlCraft_G_CS5_fla.ins_page1_96)
package ControlCraft_G_CS5_fla {
import flash.display.*;
public dynamic class ins_page1_96 extends MovieClip {
public var atk:MovieClip;
public function ins_page1_96(){
addFrameScript(68, frame69);
}
function frame69(){
atk.gotoAndPlay(2);
}
}
}//package ControlCraft_G_CS5_fla
Section 35
//ins_pages_95 (ControlCraft_G_CS5_fla.ins_pages_95)
package ControlCraft_G_CS5_fla {
import flash.display.*;
public dynamic class ins_pages_95 extends MovieClip {
public function ins_pages_95(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ControlCraft_G_CS5_fla
Section 36
//shockshot2_36 (ControlCraft_G_CS5_fla.shockshot2_36)
package ControlCraft_G_CS5_fla {
import flash.display.*;
public dynamic class shockshot2_36 extends MovieClip {
public function shockshot2_36(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package ControlCraft_G_CS5_fla
Section 37
//T1Blood_75 (ControlCraft_G_CS5_fla.T1Blood_75)
package ControlCraft_G_CS5_fla {
import flash.display.*;
public dynamic class T1Blood_75 extends MovieClip {
public function T1Blood_75(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package ControlCraft_G_CS5_fla
Section 38
//T2Blood_78 (ControlCraft_G_CS5_fla.T2Blood_78)
package ControlCraft_G_CS5_fla {
import flash.display.*;
public dynamic class T2Blood_78 extends MovieClip {
public function T2Blood_78(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package ControlCraft_G_CS5_fla
Section 39
//TSolder1Dead3_74 (ControlCraft_G_CS5_fla.TSolder1Dead3_74)
package ControlCraft_G_CS5_fla {
import flash.display.*;
public dynamic class TSolder1Dead3_74 extends MovieClip {
public function TSolder1Dead3_74(){
addFrameScript(49, frame50);
}
function frame50(){
MovieClip(parent).visible = false;
stop();
}
}
}//package ControlCraft_G_CS5_fla
Section 40
//TSolder2Dead_77 (ControlCraft_G_CS5_fla.TSolder2Dead_77)
package ControlCraft_G_CS5_fla {
import flash.display.*;
public dynamic class TSolder2Dead_77 extends MovieClip {
public function TSolder2Dead_77(){
addFrameScript(74, frame75);
}
function frame75(){
MovieClip(parent).visible = false;
stop();
}
}
}//package ControlCraft_G_CS5_fla
Section 41
//TSolderE1copy_47 (ControlCraft_G_CS5_fla.TSolderE1copy_47)
package ControlCraft_G_CS5_fla {
import flash.display.*;
public dynamic class TSolderE1copy_47 extends MovieClip {
public function TSolderE1copy_47(){
addFrameScript(30, frame31, 51, frame52);
}
function frame31(){
gotoAndPlay(11);
}
function frame52(){
stop();
}
}
}//package ControlCraft_G_CS5_fla
Section 42
//AdLoader (CPMStar.AdLoader)
package CPMStar {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.*;
public class AdLoader extends Sprite {
private var cpmstarLoader:Loader;
private var contentspotid:String;
public function AdLoader(_arg1:String){
this.contentspotid = _arg1;
addEventListener(Event.ADDED, addedHandler);
}
private function addedHandler(_arg1:Event):void{
removeEventListener(Event.ADDED, addedHandler);
Security.allowDomain("server.cpmstar.com");
var _local2 = "http://server.cpmstar.com/adviewas3.swf";
var _local3:DisplayObjectContainer = parent;
cpmstarLoader = new Loader();
cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler);
cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler);
cpmstarLoader.load(new URLRequest(((_local2 + "?contentspotid=") + contentspotid)));
addChild(cpmstarLoader);
}
private function dispatchHandler(_arg1:Event):void{
dispatchEvent(_arg1);
}
}
}//package CPMStar
Section 43
//BaseButton (fl.controls.BaseButton)
package fl.controls {
import flash.display.*;
import fl.core.*;
import flash.events.*;
import flash.utils.*;
import fl.events.*;
public class BaseButton extends UIComponent {
protected var _selected:Boolean;// = false
private var unlockedMouseState:String;
protected var pressTimer:Timer;
protected var mouseState:String;
protected var background:DisplayObject;
private var _mouseStateLocked:Boolean;// = false
protected var _autoRepeat:Boolean;// = false
private static var defaultStyles:Object = {upSkin:"Button_upSkin", downSkin:"Button_downSkin", overSkin:"Button_overSkin", disabledSkin:"Button_disabledSkin", selectedDisabledSkin:"Button_selectedDisabledSkin", selectedUpSkin:"Button_selectedUpSkin", selectedDownSkin:"Button_selectedDownSkin", selectedOverSkin:"Button_selectedOverSkin", focusRectSkin:null, focusRectPadding:null, repeatDelay:500, repeatInterval:35};
public function BaseButton(){
_selected = false;
_autoRepeat = false;
_mouseStateLocked = false;
super();
buttonMode = true;
mouseChildren = false;
useHandCursor = false;
setupMouseEvents();
setMouseState("up");
pressTimer = new Timer(1, 0);
pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true);
}
protected function endPress():void{
pressTimer.reset();
}
public function set mouseStateLocked(_arg1:Boolean):void{
_mouseStateLocked = _arg1;
if (_arg1 == false){
setMouseState(unlockedMouseState);
} else {
unlockedMouseState = mouseState;
};
}
public function get autoRepeat():Boolean{
return (_autoRepeat);
}
public function set autoRepeat(_arg1:Boolean):void{
_autoRepeat = _arg1;
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
mouseEnabled = _arg1;
}
public function get selected():Boolean{
return (_selected);
}
protected function mouseEventHandler(_arg1:MouseEvent):void{
if (_arg1.type == MouseEvent.MOUSE_DOWN){
setMouseState("down");
startPress();
} else {
if ((((_arg1.type == MouseEvent.ROLL_OVER)) || ((_arg1.type == MouseEvent.MOUSE_UP)))){
setMouseState("over");
endPress();
} else {
if (_arg1.type == MouseEvent.ROLL_OUT){
setMouseState("up");
endPress();
};
};
};
}
public function setMouseState(_arg1:String):void{
if (_mouseStateLocked){
unlockedMouseState = _arg1;
return;
};
if (mouseState == _arg1){
return;
};
mouseState = _arg1;
invalidate(InvalidationType.STATE);
}
protected function startPress():void{
if (_autoRepeat){
pressTimer.delay = Number(getStyleValue("repeatDelay"));
pressTimer.start();
};
dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true));
}
protected function buttonDown(_arg1:TimerEvent):void{
if (!_autoRepeat){
endPress();
return;
};
if (pressTimer.currentCount == 1){
pressTimer.delay = Number(getStyleValue("repeatInterval"));
};
dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true));
}
public function set selected(_arg1:Boolean):void{
if (_selected == _arg1){
return;
};
_selected = _arg1;
invalidate(InvalidationType.STATE);
}
override public function get enabled():Boolean{
return (super.enabled);
}
override protected function draw():void{
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawBackground();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
super.draw();
}
protected function setupMouseEvents():void{
addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false, 0, true);
}
protected function drawLayout():void{
background.width = width;
background.height = height;
}
protected function drawBackground():void{
var _local1:String;
var _local2:DisplayObject;
_local1 = (enabled) ? mouseState : "disabled";
if (selected){
_local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1));
};
_local1 = (_local1 + "Skin");
_local2 = background;
background = getDisplayObjectInstance(getStyleValue(_local1));
addChildAt(background, 0);
if (((!((_local2 == null))) && (!((_local2 == background))))){
removeChild(_local2);
};
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 44
//Button (fl.controls.Button)
package fl.controls {
import flash.display.*;
import fl.core.*;
import fl.managers.*;
public class Button extends LabelButton implements IFocusManagerComponent {
protected var emphasizedBorder:DisplayObject;
protected var _emphasized:Boolean;// = false
private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2};
public static var createAccessibilityImplementation:Function;
public function Button(){
_emphasized = false;
super();
}
override public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
var _local3:*;
super.drawFocus(_arg1);
if (_arg1){
_local2 = Number(getStyleValue("emphasizedPadding"));
if ((((_local2 < 0)) || (!(_emphasized)))){
_local2 = 0;
};
_local3 = getStyleValue("focusRectPadding");
_local3 = ((_local3)==null) ? 2 : _local3;
_local3 = (_local3 + _local2);
uiFocusRect.x = -(_local3);
uiFocusRect.y = -(_local3);
uiFocusRect.width = (width + (_local3 * 2));
uiFocusRect.height = (height + (_local3 * 2));
};
}
public function set emphasized(_arg1:Boolean):void{
_emphasized = _arg1;
invalidate(InvalidationType.STYLES);
}
override protected function draw():void{
if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){
drawEmphasized();
};
super.draw();
if (emphasizedBorder != null){
setChildIndex(emphasizedBorder, (numChildren - 1));
};
}
public function get emphasized():Boolean{
return (_emphasized);
}
override protected function initializeAccessibility():void{
if (Button.createAccessibilityImplementation != null){
Button.createAccessibilityImplementation(this);
};
}
protected function drawEmphasized():void{
var _local1:Object;
var _local2:Number;
if (emphasizedBorder != null){
removeChild(emphasizedBorder);
};
emphasizedBorder = null;
if (!_emphasized){
return;
};
_local1 = getStyleValue("emphasizedSkin");
if (_local1 != null){
emphasizedBorder = getDisplayObjectInstance(_local1);
};
if (emphasizedBorder != null){
addChildAt(emphasizedBorder, 0);
_local2 = Number(getStyleValue("emphasizedPadding"));
emphasizedBorder.x = (emphasizedBorder.y = -(_local2));
emphasizedBorder.width = (width + (_local2 * 2));
emphasizedBorder.height = (height + (_local2 * 2));
};
}
public static function getStyleDefinition():Object{
return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles));
}
}
}//package fl.controls
Section 45
//ButtonLabelPlacement (fl.controls.ButtonLabelPlacement)
package fl.controls {
public class ButtonLabelPlacement {
public static const TOP:String = "top";
public static const LEFT:String = "left";
public static const BOTTOM:String = "bottom";
public static const RIGHT:String = "right";
}
}//package fl.controls
Section 46
//LabelButton (fl.controls.LabelButton)
package fl.controls {
import flash.display.*;
import fl.core.*;
import flash.events.*;
import fl.managers.*;
import flash.text.*;
import fl.events.*;
import flash.ui.*;
public class LabelButton extends BaseButton implements IFocusManagerComponent {
protected var _labelPlacement:String;// = "right"
protected var _toggle:Boolean;// = false
protected var icon:DisplayObject;
protected var oldMouseState:String;
protected var mode:String;// = "center"
public var textField:TextField;
protected var _label:String;// = "Label"
private static var defaultStyles:Object = {icon:null, upIcon:null, downIcon:null, overIcon:null, disabledIcon:null, selectedDisabledIcon:null, selectedUpIcon:null, selectedDownIcon:null, selectedOverIcon:null, textFormat:null, disabledTextFormat:null, textPadding:5, embedFonts:false};
public static var createAccessibilityImplementation:Function;
public function LabelButton(){
_labelPlacement = ButtonLabelPlacement.RIGHT;
_toggle = false;
_label = "Label";
mode = "center";
super();
}
protected function toggleSelected(_arg1:MouseEvent):void{
selected = !(selected);
dispatchEvent(new Event(Event.CHANGE, true));
}
public function get labelPlacement():String{
return (_labelPlacement);
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
if (oldMouseState == null){
oldMouseState = mouseState;
};
setMouseState("down");
startPress();
};
}
protected function setEmbedFont(){
var _local1:Object;
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
}
override protected function keyUpHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
setMouseState(oldMouseState);
oldMouseState = null;
endPress();
dispatchEvent(new MouseEvent(MouseEvent.CLICK));
};
}
override public function get selected():Boolean{
return ((_toggle) ? _selected : false);
}
public function set labelPlacement(_arg1:String):void{
_labelPlacement = _arg1;
invalidate(InvalidationType.SIZE);
}
public function set toggle(_arg1:Boolean):void{
if (((!(_arg1)) && (super.selected))){
selected = false;
};
_toggle = _arg1;
if (_toggle){
addEventListener(MouseEvent.CLICK, toggleSelected, false, 0, true);
} else {
removeEventListener(MouseEvent.CLICK, toggleSelected);
};
invalidate(InvalidationType.STATE);
}
public function get label():String{
return (_label);
}
override public function set selected(_arg1:Boolean):void{
_selected = _arg1;
if (_toggle){
invalidate(InvalidationType.STATE);
};
}
override protected function draw():void{
if (textField.text != _label){
label = _label;
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawBackground();
drawIcon();
drawTextFormat();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){
if (((isFocused) && (focusManager.showFocusIndicator))){
drawFocus(true);
};
};
validate();
}
public function get toggle():Boolean{
return (_toggle);
}
override protected function configUI():void{
super.configUI();
textField = new TextField();
textField.type = TextFieldType.DYNAMIC;
textField.selectable = false;
addChild(textField);
}
override protected function drawLayout():void{
var _local1:Number;
var _local2:String;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local1 = Number(getStyleValue("textPadding"));
_local2 = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement;
textField.height = (textField.textHeight + 4);
_local3 = (textField.textWidth + 4);
_local4 = (textField.textHeight + 4);
_local5 = ((icon)==null) ? 0 : (icon.width + _local1);
_local6 = ((icon)==null) ? 0 : (icon.height + _local1);
textField.visible = (label.length > 0);
if (icon != null){
icon.x = Math.round(((width - icon.width) / 2));
icon.y = Math.round(((height - icon.height) / 2));
};
if (textField.visible == false){
textField.width = 0;
textField.height = 0;
} else {
if ((((_local2 == ButtonLabelPlacement.BOTTOM)) || ((_local2 == ButtonLabelPlacement.TOP)))){
_local7 = Math.max(0, Math.min(_local3, (width - (2 * _local1))));
if ((height - 2) > _local4){
_local8 = _local4;
} else {
_local8 = (height - 2);
};
_local3 = _local7;
textField.width = _local3;
_local4 = _local8;
textField.height = _local4;
textField.x = Math.round(((width - _local3) / 2));
textField.y = Math.round(((((height - textField.height) - _local6) / 2) + ((_local2)==ButtonLabelPlacement.BOTTOM) ? _local6 : 0));
if (icon != null){
icon.y = Math.round(((_local2)==ButtonLabelPlacement.BOTTOM) ? (textField.y - _local6) : ((textField.y + textField.height) + _local1));
};
} else {
_local7 = Math.max(0, Math.min(_local3, ((width - _local5) - (2 * _local1))));
_local3 = _local7;
textField.width = _local3;
textField.x = Math.round(((((width - _local3) - _local5) / 2) + ((_local2)!=ButtonLabelPlacement.LEFT) ? _local5 : 0));
textField.y = Math.round(((height - textField.height) / 2));
if (icon != null){
icon.x = Math.round(((_local2)!=ButtonLabelPlacement.LEFT) ? (textField.x - _local5) : ((textField.x + _local3) + _local1));
};
};
};
super.drawLayout();
}
override protected function initializeAccessibility():void{
if (LabelButton.createAccessibilityImplementation != null){
LabelButton.createAccessibilityImplementation(this);
};
}
protected function drawIcon():void{
var _local1:DisplayObject;
var _local2:String;
var _local3:Object;
_local1 = icon;
_local2 = (enabled) ? mouseState : "disabled";
if (selected){
_local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1));
};
_local2 = (_local2 + "Icon");
_local3 = getStyleValue(_local2);
if (_local3 == null){
_local3 = getStyleValue("icon");
};
if (_local3 != null){
icon = getDisplayObjectInstance(_local3);
};
if (icon != null){
addChildAt(icon, 1);
};
if (((!((_local1 == null))) && (!((_local1 == icon))))){
removeChild(_local1);
};
}
public function set label(_arg1:String):void{
_label = _arg1;
if (textField.text != _label){
textField.text = _label;
dispatchEvent(new ComponentEvent(ComponentEvent.LABEL_CHANGE));
};
invalidate(InvalidationType.SIZE);
invalidate(InvalidationType.STYLES);
}
protected function drawTextFormat():void{
var _local1:Object;
var _local2:TextFormat;
var _local3:TextFormat;
_local1 = UIComponent.getStyleDefinition();
_local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat);
textField.setTextFormat(_local2);
_local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local3 != null){
textField.setTextFormat(_local3);
} else {
_local3 = _local2;
};
textField.defaultTextFormat = _local3;
setEmbedFont();
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition()));
}
}
}//package fl.controls
Section 47
//ComponentShim (fl.core.ComponentShim)
package fl.core {
import flash.display.*;
public dynamic class ComponentShim extends MovieClip {
}
}//package fl.core
Section 48
//InvalidationType (fl.core.InvalidationType)
package fl.core {
public class InvalidationType {
public static const SIZE:String = "size";
public static const ALL:String = "all";
public static const DATA:String = "data";
public static const SCROLL:String = "scroll";
public static const STATE:String = "state";
public static const STYLES:String = "styles";
public static const SELECTED:String = "selected";
public static const RENDERER_STYLES:String = "rendererStyles";
}
}//package fl.core
Section 49
//UIComponent (fl.core.UIComponent)
package fl.core {
import flash.display.*;
import flash.events.*;
import fl.managers.*;
import flash.utils.*;
import flash.text.*;
import fl.events.*;
import flash.system.*;
public class UIComponent extends Sprite {
protected var _enabled:Boolean;// = true
private var _mouseFocusEnabled:Boolean;// = true
protected var startHeight:Number;
protected var _height:Number;
protected var _oldIMEMode:String;// = null
protected var startWidth:Number;
public var focusTarget:IFocusManagerComponent;
protected var errorCaught:Boolean;// = false
protected var uiFocusRect:DisplayObject;
protected var _width:Number;
public var version:String;// = "3.0.0.15"
protected var isFocused:Boolean;// = false
protected var callLaterMethods:Dictionary;
private var _focusEnabled:Boolean;// = true
private var tempText:TextField;
protected var invalidateFlag:Boolean;// = false
protected var _inspector:Boolean;// = false
protected var sharedStyles:Object;
protected var invalidHash:Object;
protected var isLivePreview:Boolean;// = false
protected var _imeMode:String;// = null
protected var instanceStyles:Object;
protected var _x:Number;
protected var _y:Number;
public static var inCallLaterPhase:Boolean = false;
private static var defaultStyles:Object = {focusRectSkin:"focusRectSkin", focusRectPadding:2, textFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), disabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultTextFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultDisabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0)};
public static var createAccessibilityImplementation:Function;
private static var focusManagers:Dictionary = new Dictionary(false);
public function UIComponent(){
version = "3.0.0.15";
isLivePreview = false;
invalidateFlag = false;
_enabled = true;
isFocused = false;
_focusEnabled = true;
_mouseFocusEnabled = true;
_imeMode = null;
_oldIMEMode = null;
errorCaught = false;
_inspector = false;
super();
instanceStyles = {};
sharedStyles = {};
invalidHash = {};
callLaterMethods = new Dictionary();
StyleManager.registerInstance(this);
configUI();
invalidate(InvalidationType.ALL);
tabEnabled = (this is IFocusManagerComponent);
focusRect = false;
if (tabEnabled){
addEventListener(FocusEvent.FOCUS_IN, focusInHandler);
addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
};
initializeFocusManager();
addEventListener(Event.ENTER_FRAME, hookAccessibility, false, 0, true);
}
public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
isFocused = _arg1;
if (((!((uiFocusRect == null))) && (contains(uiFocusRect)))){
removeChild(uiFocusRect);
uiFocusRect = null;
};
if (_arg1){
uiFocusRect = (getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite);
if (uiFocusRect == null){
return;
};
_local2 = Number(getStyleValue("focusRectPadding"));
uiFocusRect.x = -(_local2);
uiFocusRect.y = -(_local2);
uiFocusRect.width = (width + (_local2 * 2));
uiFocusRect.height = (height + (_local2 * 2));
addChildAt(uiFocusRect, 0);
};
}
private function callLaterDispatcher(_arg1:Event):void{
var _local2:Dictionary;
var _local3:Object;
if (_arg1.type == Event.ADDED_TO_STAGE){
removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher);
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
return;
};
_arg1.target.removeEventListener(Event.RENDER, callLaterDispatcher);
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
return;
};
inCallLaterPhase = true;
_local2 = callLaterMethods;
for (_local3 in _local2) {
_local3();
delete _local2[_local3];
};
inCallLaterPhase = false;
}
private function addedHandler(_arg1:Event):void{
removeEventListener("addedToStage", addedHandler);
initializeFocusManager();
}
protected function getStyleValue(_arg1:String):Object{
return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]);
}
protected function isOurFocus(_arg1:DisplayObject):Boolean{
return ((_arg1 == this));
}
override public function get scaleX():Number{
return ((width / startWidth));
}
override public function get scaleY():Number{
return ((height / startHeight));
}
override public function set height(_arg1:Number):void{
if (_height == _arg1){
return;
};
setSize(width, _arg1);
}
protected function keyDownHandler(_arg1:KeyboardEvent):void{
}
protected function focusInHandler(_arg1:FocusEvent):void{
var _local2:IFocusManager;
if (isOurFocus((_arg1.target as DisplayObject))){
_local2 = focusManager;
if (((_local2) && (_local2.showFocusIndicator))){
drawFocus(true);
isFocused = true;
};
};
}
public function setStyle(_arg1:String, _arg2:Object):void{
if ((((instanceStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
instanceStyles[_arg1] = _arg2;
invalidate(InvalidationType.STYLES);
}
override public function get visible():Boolean{
return (super.visible);
}
public function get componentInspectorSetting():Boolean{
return (_inspector);
}
override public function get x():Number{
return ((isNaN(_x)) ? super.x : _x);
}
override public function get y():Number{
return ((isNaN(_y)) ? super.y : _y);
}
protected function setIMEMode(_arg1:Boolean){
var enabled = _arg1;
if (_imeMode != null){
if (enabled){
IME.enabled = true;
_oldIMEMode = IME.conversionMode;
try {
if (((!(errorCaught)) && (!((IME.conversionMode == IMEConversionMode.UNKNOWN))))){
IME.conversionMode = _imeMode;
};
errorCaught = false;
} catch(e:Error) {
errorCaught = true;
throw (new Error(("IME mode not supported: " + _imeMode)));
};
} else {
if (((!((IME.conversionMode == IMEConversionMode.UNKNOWN))) && (!((_oldIMEMode == IMEConversionMode.UNKNOWN))))){
IME.conversionMode = _oldIMEMode;
};
IME.enabled = false;
};
};
}
public function set enabled(_arg1:Boolean):void{
if (_arg1 == _enabled){
return;
};
_enabled = _arg1;
invalidate(InvalidationType.STATE);
}
public function setSharedStyle(_arg1:String, _arg2:Object):void{
if ((((sharedStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
sharedStyles[_arg1] = _arg2;
if (instanceStyles[_arg1] == null){
invalidate(InvalidationType.STYLES);
};
}
protected function keyUpHandler(_arg1:KeyboardEvent):void{
}
public function set focusEnabled(_arg1:Boolean):void{
_focusEnabled = _arg1;
}
override public function set scaleX(_arg1:Number):void{
setSize((startWidth * _arg1), height);
}
public function get mouseFocusEnabled():Boolean{
return (_mouseFocusEnabled);
}
override public function set scaleY(_arg1:Number):void{
setSize(width, (startHeight * _arg1));
}
protected function getDisplayObjectInstance(_arg1:Object):DisplayObject{
var classDef:Object;
var skin = _arg1;
classDef = null;
if ((skin is Class)){
return ((new (skin) as DisplayObject));
};
if ((skin is DisplayObject)){
(skin as DisplayObject).x = 0;
(skin as DisplayObject).y = 0;
return ((skin as DisplayObject));
};
try {
classDef = getDefinitionByName(skin.toString());
} catch(e:Error) {
try {
classDef = (loaderInfo.applicationDomain.getDefinition(skin.toString()) as Object);
} catch(e:Error) {
};
};
if (classDef == null){
return (null);
};
return ((new (classDef) as DisplayObject));
}
protected function copyStylesToChild(_arg1:UIComponent, _arg2:Object):void{
var _local3:String;
for (_local3 in _arg2) {
_arg1.setStyle(_local3, getStyleValue(_arg2[_local3]));
};
}
protected function beforeComponentParameters():void{
}
protected function callLater(_arg1:Function):void{
if (inCallLaterPhase){
return;
};
callLaterMethods[_arg1] = true;
if (stage != null){
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
} else {
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
};
}
protected function createFocusManager():void{
if (focusManagers[stage] == null){
focusManagers[stage] = new FocusManager(stage);
};
}
override public function set visible(_arg1:Boolean):void{
var _local2:String;
if (super.visible == _arg1){
return;
};
super.visible = _arg1;
_local2 = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE;
dispatchEvent(new ComponentEvent(_local2, true));
}
protected function hookAccessibility(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, hookAccessibility);
initializeAccessibility();
}
public function set componentInspectorSetting(_arg1:Boolean):void{
_inspector = _arg1;
if (_inspector){
beforeComponentParameters();
} else {
afterComponentParameters();
};
}
override public function set x(_arg1:Number):void{
move(_arg1, _y);
}
public function drawNow():void{
draw();
}
override public function set y(_arg1:Number):void{
move(_x, _arg1);
}
protected function checkLivePreview():Boolean{
var className:String;
if (parent == null){
return (false);
};
try {
className = getQualifiedClassName(parent);
} catch(e:Error) {
};
return ((className == "fl.livepreview::LivePreviewParent"));
}
protected function focusOutHandler(_arg1:FocusEvent):void{
if (isOurFocus((_arg1.target as DisplayObject))){
drawFocus(false);
isFocused = false;
};
}
public function set mouseFocusEnabled(_arg1:Boolean):void{
_mouseFocusEnabled = _arg1;
}
public function getFocus():InteractiveObject{
if (stage){
return (stage.focus);
};
return (null);
}
protected function validate():void{
invalidHash = {};
}
override public function get height():Number{
return (_height);
}
public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{
invalidHash[_arg1] = true;
if (_arg2){
this.callLater(draw);
};
}
public function get enabled():Boolean{
return (_enabled);
}
protected function getScaleX():Number{
return (super.scaleX);
}
protected function getScaleY():Number{
return (super.scaleY);
}
public function get focusEnabled():Boolean{
return (_focusEnabled);
}
protected function afterComponentParameters():void{
}
protected function draw():void{
if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){
if (((isFocused) && (focusManager.showFocusIndicator))){
drawFocus(true);
};
};
validate();
}
protected function configUI():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
isLivePreview = checkLivePreview();
_local1 = rotation;
rotation = 0;
_local2 = super.width;
_local3 = super.height;
var _local4 = 1;
super.scaleY = _local4;
super.scaleX = _local4;
setSize(_local2, _local3);
move(super.x, super.y);
rotation = _local1;
startWidth = _local2;
startHeight = _local3;
if (numChildren > 0){
removeChildAt(0);
};
}
protected function setScaleX(_arg1:Number):void{
super.scaleX = _arg1;
}
protected function setScaleY(_arg1:Number):void{
super.scaleY = _arg1;
}
private function initializeFocusManager():void{
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true);
} else {
createFocusManager();
};
}
public function set focusManager(_arg1:IFocusManager):void{
UIComponent.focusManagers[this] = _arg1;
}
public function clearStyle(_arg1:String):void{
setStyle(_arg1, null);
}
protected function isInvalid(_arg1:String, ... _args):Boolean{
if (((invalidHash[_arg1]) || (invalidHash[InvalidationType.ALL]))){
return (true);
};
while (_args.length > 0) {
if (invalidHash[_args.pop()]){
return (true);
};
};
return (false);
}
public function setSize(_arg1:Number, _arg2:Number):void{
_width = _arg1;
_height = _arg2;
invalidate(InvalidationType.SIZE);
dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false));
}
override public function set width(_arg1:Number):void{
if (_width == _arg1){
return;
};
setSize(_arg1, height);
}
public function setFocus():void{
if (stage){
stage.focus = this;
};
}
protected function initializeAccessibility():void{
if (UIComponent.createAccessibilityImplementation != null){
UIComponent.createAccessibilityImplementation(this);
};
}
public function get focusManager():IFocusManager{
var _local1:DisplayObject;
_local1 = this;
while (_local1) {
if (UIComponent.focusManagers[_local1] != null){
return (IFocusManager(UIComponent.focusManagers[_local1]));
};
_local1 = _local1.parent;
};
return (null);
}
override public function get width():Number{
return (_width);
}
public function move(_arg1:Number, _arg2:Number):void{
_x = _arg1;
_y = _arg2;
super.x = Math.round(_arg1);
super.y = Math.round(_arg2);
dispatchEvent(new ComponentEvent(ComponentEvent.MOVE));
}
public function validateNow():void{
invalidate(InvalidationType.ALL, false);
draw();
}
public function getStyle(_arg1:String):Object{
return (instanceStyles[_arg1]);
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
public static function mergeStyles(... _args):Object{
var _local2:Object;
var _local3:uint;
var _local4:uint;
var _local5:Object;
var _local6:String;
_local2 = {};
_local3 = _args.length;
_local4 = 0;
while (_local4 < _local3) {
_local5 = _args[_local4];
for (_local6 in _local5) {
if (_local2[_local6] != null){
} else {
_local2[_local6] = _args[_local4][_local6];
};
};
_local4++;
};
return (_local2);
}
}
}//package fl.core
Section 50
//ComponentEvent (fl.events.ComponentEvent)
package fl.events {
import flash.events.*;
public class ComponentEvent extends Event {
public static const HIDE:String = "hide";
public static const BUTTON_DOWN:String = "buttonDown";
public static const MOVE:String = "move";
public static const RESIZE:String = "resize";
public static const ENTER:String = "enter";
public static const LABEL_CHANGE:String = "labelChange";
public static const SHOW:String = "show";
public function ComponentEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function toString():String{
return (formatToString("ComponentEvent", "type", "bubbles", "cancelable"));
}
override public function clone():Event{
return (new ComponentEvent(type, bubbles, cancelable));
}
}
}//package fl.events
Section 51
//FocusManager (fl.managers.FocusManager)
package fl.managers {
import fl.controls.*;
import flash.display.*;
import fl.core.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.ui.*;
public class FocusManager implements IFocusManager {
private var focusableObjects:Dictionary;
private var _showFocusIndicator:Boolean;// = true
private var defButton:Button;
private var focusableCandidates:Array;
private var _form:DisplayObjectContainer;
private var _defaultButtonEnabled:Boolean;// = true
private var activated:Boolean;// = false
private var _defaultButton:Button;
private var calculateCandidates:Boolean;// = true
private var lastFocus:InteractiveObject;
private var lastAction:String;
public function FocusManager(_arg1:DisplayObjectContainer){
activated = false;
calculateCandidates = true;
_showFocusIndicator = true;
_defaultButtonEnabled = true;
super();
focusableObjects = new Dictionary(true);
if (_arg1 != null){
_form = _arg1;
addFocusables(DisplayObject(_arg1));
_arg1.addEventListener(Event.ADDED, addedHandler);
_arg1.addEventListener(Event.REMOVED, removedHandler);
activate();
};
}
public function get showFocusIndicator():Boolean{
return (_showFocusIndicator);
}
private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{
var _local5:int;
var _local6:int;
var _local7:DisplayObject;
var _local8:IFocusManagerGroup;
var _local9:int;
var _local10:DisplayObject;
var _local11:IFocusManagerGroup;
_local5 = focusableCandidates.length;
_local6 = _arg1;
while (true) {
if (_arg2){
_arg1--;
} else {
_arg1++;
};
if (_arg3){
if (((_arg2) && ((_arg1 < 0)))){
break;
};
if (((!(_arg2)) && ((_arg1 == _local5)))){
break;
};
} else {
_arg1 = ((_arg1 + _local5) % _local5);
if (_local6 == _arg1){
break;
};
};
if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){
_local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1]));
if ((_local7 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local7);
_local9 = 0;
while (_local9 < focusableCandidates.length) {
_local10 = focusableCandidates[_local9];
if ((_local10 is IFocusManagerGroup)){
_local11 = IFocusManagerGroup(_local10);
if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){
_arg1 = _local9;
break;
};
};
_local9++;
};
};
return (_arg1);
};
};
return (_arg1);
}
public function set form(_arg1:DisplayObjectContainer):void{
_form = _arg1;
}
private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{
var focusable:IFocusManagerComponent;
var io:InteractiveObject;
var doc:DisplayObjectContainer;
var i:int;
var child:DisplayObject;
var o = _arg1;
var skipTopLevel = _arg2;
if (!skipTopLevel){
if ((o is IFocusManagerComponent)){
focusable = IFocusManagerComponent(o);
if (focusable.focusEnabled){
if (((focusable.tabEnabled) && (isTabVisible(o)))){
focusableObjects[o] = true;
calculateCandidates = true;
};
o.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
o.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
};
} else {
if ((o is InteractiveObject)){
io = (o as InteractiveObject);
if (((((io) && (io.tabEnabled))) && ((findFocusManagerComponent(io) == io)))){
focusableObjects[io] = true;
calculateCandidates = true;
};
io.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
io.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
};
};
};
if ((o is DisplayObjectContainer)){
doc = DisplayObjectContainer(o);
o.addEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler);
if ((((((doc is Stage)) || ((doc.parent is Stage)))) || (doc.tabChildren))){
i = 0;
while (i < doc.numChildren) {
try {
child = doc.getChildAt(i);
if (child != null){
addFocusables(doc.getChildAt(i));
};
} catch(error:SecurityError) {
};
i = (i + 1);
};
};
};
}
private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{
return (_arg1.getChildIndex(_arg2));
}
private function mouseFocusChangeHandler(_arg1:FocusEvent):void{
if ((_arg1.relatedObject is TextField)){
return;
};
_arg1.preventDefault();
}
private function focusOutHandler(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
_local2 = (_arg1.target as InteractiveObject);
}
private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{
var _local3:IFocusManagerGroup;
if (!isEnabledAndVisible(_arg1)){
return (false);
};
if ((_arg1 is IFocusManagerGroup)){
_local3 = IFocusManagerGroup(_arg1);
if (_arg2 == _local3.groupName){
return (false);
};
};
return (true);
}
public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{
var _local2:InteractiveObject;
_local2 = _arg1;
while (_arg1) {
if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){
return (_arg1);
};
_arg1 = _arg1.parent;
};
return (_local2);
}
private function sortFocusableObjectsTabIndex():void{
var _local1:Object;
var _local2:InteractiveObject;
focusableCandidates = [];
for (_local1 in focusableObjects) {
_local2 = InteractiveObject(_local1);
if (((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))){
focusableCandidates.push(_local2);
};
};
focusableCandidates.sort(sortByTabIndex);
}
private function removeFocusables(_arg1:DisplayObject):void{
var _local2:Object;
var _local3:DisplayObject;
if ((_arg1 is DisplayObjectContainer)){
_arg1.removeEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler);
_arg1.removeEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
for (_local2 in focusableObjects) {
_local3 = DisplayObject(_local2);
if (DisplayObjectContainer(_arg1).contains(_local3)){
if (_local3 == lastFocus){
lastFocus = null;
};
_local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
delete focusableObjects[_local2];
calculateCandidates = true;
};
};
};
}
private function addedHandler(_arg1:Event):void{
var _local2:DisplayObject;
_local2 = DisplayObject(_arg1.target);
if (_local2.stage){
addFocusables(DisplayObject(_arg1.target));
};
}
private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{
while (_arg1 != InteractiveObject(form)) {
if ((((((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))) && (IFocusManagerComponent(_arg1).mouseFocusEnabled))) && (UIComponent(_arg1).enabled))){
return (_arg1);
};
_arg1 = _arg1.parent;
if (_arg1 == null){
break;
};
};
return (null);
}
private function tabChildrenChangeHandler(_arg1:Event):void{
var _local2:DisplayObjectContainer;
if (_arg1.target != _arg1.currentTarget){
return;
};
calculateCandidates = true;
_local2 = DisplayObjectContainer(_arg1.target);
if (_local2.tabChildren){
addFocusables(_local2, true);
} else {
removeFocusables(_local2);
};
}
public function sendDefaultButtonEvent():void{
defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
}
public function getFocus():InteractiveObject{
var _local1:InteractiveObject;
_local1 = form.stage.focus;
return (findFocusManagerComponent(_local1));
}
private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{
var _local2:DisplayObjectContainer;
var _local3:TextField;
var _local4:SimpleButton;
_local2 = DisplayObject(form).parent;
while (_arg1 != _local2) {
if ((_arg1 is UIComponent)){
if (!UIComponent(_arg1).enabled){
return (false);
};
} else {
if ((_arg1 is TextField)){
_local3 = TextField(_arg1);
if ((((_local3.type == TextFieldType.DYNAMIC)) || (!(_local3.selectable)))){
return (false);
};
} else {
if ((_arg1 is SimpleButton)){
_local4 = SimpleButton(_arg1);
if (!_local4.enabled){
return (false);
};
};
};
};
if (!_arg1.visible){
return (false);
};
_arg1 = _arg1.parent;
};
return (true);
}
public function set defaultButton(_arg1:Button):void{
var _local2:Button;
_local2 = (_arg1) ? Button(_arg1) : null;
if (_local2 != _defaultButton){
if (_defaultButton){
_defaultButton.emphasized = false;
};
if (defButton){
defButton.emphasized = false;
};
_defaultButton = _local2;
defButton = _local2;
if (_local2){
_local2.emphasized = true;
};
};
}
private function deactivateHandler(_arg1:Event):void{
var _local2:InteractiveObject;
_local2 = InteractiveObject(_arg1.target);
}
public function setFocus(_arg1:InteractiveObject):void{
if ((_arg1 is IFocusManagerComponent)){
IFocusManagerComponent(_arg1).setFocus();
} else {
form.stage.focus = _arg1;
};
}
private function setFocusToNextObject(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
if (!hasFocusableObjects()){
return;
};
_local2 = getNextFocusManagerComponent(_arg1.shiftKey);
if (_local2){
setFocus(_local2);
};
}
private function hasFocusableObjects():Boolean{
var _local1:Object;
for (_local1 in focusableObjects) {
return (true);
};
return (false);
}
private function tabIndexChangeHandler(_arg1:Event):void{
calculateCandidates = true;
}
private function sortFocusableObjects():void{
var _local1:Object;
var _local2:InteractiveObject;
focusableCandidates = [];
for (_local1 in focusableObjects) {
_local2 = InteractiveObject(_local1);
if (((((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))) && ((_local2.tabIndex > 0)))){
sortFocusableObjectsTabIndex();
return;
};
focusableCandidates.push(_local2);
};
focusableCandidates.sort(sortByDepth);
}
private function keyFocusChangeHandler(_arg1:FocusEvent):void{
showFocusIndicator = true;
if ((((((_arg1.keyCode == Keyboard.TAB)) || ((_arg1.keyCode == 0)))) && (!(_arg1.isDefaultPrevented())))){
setFocusToNextObject(_arg1);
_arg1.preventDefault();
};
}
private function getIndexOfFocusedObject(_arg1:DisplayObject):int{
var _local2:int;
var _local3:int;
_local2 = focusableCandidates.length;
_local3 = 0;
_local3 = 0;
while (_local3 < _local2) {
if (focusableCandidates[_local3] == _arg1){
return (_local3);
};
_local3++;
};
return (-1);
}
public function hideFocus():void{
}
private function removedHandler(_arg1:Event):void{
var _local2:int;
var _local3:DisplayObject;
var _local4:InteractiveObject;
_local3 = DisplayObject(_arg1.target);
if ((((_local3 is IFocusManagerComponent)) && ((focusableObjects[_local3] == true)))){
if (_local3 == lastFocus){
IFocusManagerComponent(lastFocus).drawFocus(false);
lastFocus = null;
};
_local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
delete focusableObjects[_local3];
calculateCandidates = true;
} else {
if ((((_local3 is InteractiveObject)) && ((focusableObjects[_local3] == true)))){
_local4 = (_local3 as InteractiveObject);
if (_local4){
if (_local4 == lastFocus){
lastFocus = null;
};
delete focusableObjects[_local4];
calculateCandidates = true;
};
_local3.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
};
};
removeFocusables(_local3);
}
private function sortByDepth(_arg1:InteractiveObject, _arg2:InteractiveObject):Number{
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:String;
var _local7:String;
var _local8:String;
var _local9:DisplayObject;
var _local10:DisplayObject;
_local3 = "";
_local4 = "";
_local8 = "0000";
_local9 = DisplayObject(_arg1);
_local10 = DisplayObject(_arg2);
while (((!((_local9 == DisplayObject(form)))) && (_local9.parent))) {
_local5 = getChildIndex(_local9.parent, _local9);
_local6 = _local5.toString(16);
if (_local6.length < 4){
_local7 = (_local8.substring(0, (4 - _local6.length)) + _local6);
};
_local3 = (_local7 + _local3);
_local9 = _local9.parent;
};
while (((!((_local10 == DisplayObject(form)))) && (_local10.parent))) {
_local5 = getChildIndex(_local10.parent, _local10);
_local6 = _local5.toString(16);
if (_local6.length < 4){
_local7 = (_local8.substring(0, (4 - _local6.length)) + _local6);
};
_local4 = (_local7 + _local4);
_local10 = _local10.parent;
};
return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : 0);
}
public function get defaultButton():Button{
return (_defaultButton);
}
private function activateHandler(_arg1:Event):void{
var _local2:InteractiveObject;
_local2 = InteractiveObject(_arg1.target);
if (lastFocus){
if ((lastFocus is IFocusManagerComponent)){
IFocusManagerComponent(lastFocus).setFocus();
} else {
form.stage.focus = lastFocus;
};
};
lastAction = "ACTIVATE";
}
public function showFocus():void{
}
public function set defaultButtonEnabled(_arg1:Boolean):void{
_defaultButtonEnabled = _arg1;
}
public function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject{
var _local2:DisplayObject;
var _local3:String;
var _local4:int;
var _local5:Boolean;
var _local6:int;
var _local7:int;
var _local8:IFocusManagerGroup;
if (!hasFocusableObjects()){
return (null);
};
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
_local2 = form.stage.focus;
_local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2)));
_local3 = "";
if ((_local2 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local2);
_local3 = _local8.groupName;
};
_local4 = getIndexOfFocusedObject(_local2);
_local5 = false;
_local6 = _local4;
if (_local4 == -1){
if (_arg1){
_local4 = focusableCandidates.length;
};
_local5 = true;
};
_local7 = getIndexOfNextObject(_local4, _arg1, _local5, _local3);
return (findFocusManagerComponent(focusableCandidates[_local7]));
}
private function mouseDownHandler(_arg1:MouseEvent):void{
var _local2:InteractiveObject;
if (_arg1.isDefaultPrevented()){
return;
};
_local2 = getTopLevelFocusTarget(InteractiveObject(_arg1.target));
if (!_local2){
return;
};
showFocusIndicator = false;
if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){
setFocus(_local2);
};
lastAction = "MOUSEDOWN";
}
private function isTabVisible(_arg1:DisplayObject):Boolean{
var _local2:DisplayObjectContainer;
_local2 = _arg1.parent;
while (((((_local2) && (!((_local2 is Stage))))) && (!(((_local2.parent) && ((_local2.parent is Stage))))))) {
if (!_local2.tabChildren){
return (false);
};
_local2 = _local2.parent;
};
return (true);
}
public function get nextTabIndex():int{
return (0);
}
private function keyDownHandler(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.TAB){
lastAction = "KEY";
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
};
if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){
sendDefaultButtonEvent();
};
}
private function focusInHandler(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
var _local3:Button;
_local2 = InteractiveObject(_arg1.target);
if (form.contains(_local2)){
lastFocus = findFocusManagerComponent(InteractiveObject(_local2));
if ((lastFocus is Button)){
_local3 = Button(lastFocus);
if (defButton){
defButton.emphasized = false;
defButton = _local3;
_local3.emphasized = true;
};
} else {
if (((defButton) && (!((defButton == _defaultButton))))){
defButton.emphasized = false;
defButton = _defaultButton;
_defaultButton.emphasized = true;
};
};
};
}
private function tabEnabledChangeHandler(_arg1:Event):void{
var _local2:InteractiveObject;
var _local3:Boolean;
calculateCandidates = true;
_local2 = InteractiveObject(_arg1.target);
_local3 = (focusableObjects[_local2] == true);
if (_local2.tabEnabled){
if (((!(_local3)) && (isTabVisible(_local2)))){
if (!(_local2 is IFocusManagerComponent)){
_local2.focusRect = false;
};
focusableObjects[_local2] = true;
};
} else {
if (_local3){
delete focusableObjects[_local2];
};
};
}
public function set showFocusIndicator(_arg1:Boolean):void{
_showFocusIndicator = _arg1;
}
public function get form():DisplayObjectContainer{
return (_form);
}
private function sortByTabIndex(_arg1:InteractiveObject, _arg2:InteractiveObject):int{
return (((_arg1.tabIndex > _arg2.tabIndex)) ? 1 : ((_arg1.tabIndex < _arg2.tabIndex)) ? -1 : sortByDepth(_arg1, _arg2));
}
public function activate():void{
if (activated){
return;
};
form.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true);
form.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true);
form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
form.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true);
form.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true);
form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
activated = true;
if (lastFocus){
setFocus(lastFocus);
};
}
public function deactivate():void{
form.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler);
form.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler);
form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
form.stage.removeEventListener(Event.ACTIVATE, activateHandler);
form.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler);
form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
activated = false;
}
public function get defaultButtonEnabled():Boolean{
return (_defaultButtonEnabled);
}
}
}//package fl.managers
Section 52
//IFocusManager (fl.managers.IFocusManager)
package fl.managers {
import fl.controls.*;
import flash.display.*;
public interface IFocusManager {
function getFocus():InteractiveObject;
function deactivate():void;
function set defaultButton(_arg1:Button):void;
function set showFocusIndicator(_arg1:Boolean):void;
function get defaultButtonEnabled():Boolean;
function get nextTabIndex():int;
function get defaultButton():Button;
function get showFocusIndicator():Boolean;
function setFocus(_arg1:InteractiveObject):void;
function activate():void;
function showFocus():void;
function set defaultButtonEnabled(_arg1:Boolean):void;
function hideFocus():void;
function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject;
function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject;
}
}//package fl.managers
Section 53
//IFocusManagerComponent (fl.managers.IFocusManagerComponent)
package fl.managers {
public interface IFocusManagerComponent {
function set focusEnabled(_arg1:Boolean):void;
function drawFocus(_arg1:Boolean):void;
function setFocus():void;
function get focusEnabled():Boolean;
function get tabEnabled():Boolean;
function get tabIndex():int;
function get mouseFocusEnabled():Boolean;
}
}//package fl.managers
Section 54
//IFocusManagerGroup (fl.managers.IFocusManagerGroup)
package fl.managers {
public interface IFocusManagerGroup {
function set groupName(_arg1:String):void;
function set selected(_arg1:Boolean):void;
function get groupName():String;
function get selected():Boolean;
}
}//package fl.managers
Section 55
//StyleManager (fl.managers.StyleManager)
package fl.managers {
import fl.core.*;
import flash.utils.*;
import flash.text.*;
public class StyleManager {
private var globalStyles:Object;
private var classToDefaultStylesDict:Dictionary;
private var styleToClassesHash:Object;
private var classToStylesDict:Dictionary;
private var classToInstancesDict:Dictionary;
private static var _instance:StyleManager;
public function StyleManager(){
styleToClassesHash = {};
classToInstancesDict = new Dictionary(true);
classToStylesDict = new Dictionary(true);
classToDefaultStylesDict = new Dictionary(true);
globalStyles = UIComponent.getStyleDefinition();
}
public static function clearComponentStyle(_arg1:Object, _arg2:String):void{
var _local3:Class;
var _local4:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance().classToStylesDict[_local3];
if (((!((_local4 == null))) && (!((_local4[_arg2] == null))))){
delete _local4[_arg2];
invalidateComponentStyle(_local3, _arg2);
};
}
private static function getClassDef(_arg1:Object):Class{
var component = _arg1;
if ((component is Class)){
return ((component as Class));
};
try {
return ((getDefinitionByName(getQualifiedClassName(component)) as Class));
} catch(e:Error) {
if ((component is UIComponent)){
try {
return ((component.loaderInfo.applicationDomain.getDefinition(getQualifiedClassName(component)) as Class));
} catch(e:Error) {
};
};
};
return (null);
}
public static function clearStyle(_arg1:String):void{
setStyle(_arg1, null);
}
public static function setComponentStyle(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Class;
var _local5:Object;
_local4 = getClassDef(_arg1);
_local5 = getInstance().classToStylesDict[_local4];
if (_local5 == null){
_local5 = (getInstance().classToStylesDict[_local4] = {});
};
if (_local5 == _arg3){
return;
};
_local5[_arg2] = _arg3;
invalidateComponentStyle(_local4, _arg2);
}
private static function setSharedStyles(_arg1:UIComponent):void{
var _local2:StyleManager;
var _local3:Class;
var _local4:Object;
var _local5:String;
_local2 = getInstance();
_local3 = getClassDef(_arg1);
_local4 = _local2.classToDefaultStylesDict[_local3];
for (_local5 in _local4) {
_arg1.setSharedStyle(_local5, getSharedStyle(_arg1, _local5));
};
}
public static function getComponentStyle(_arg1:Object, _arg2:String):Object{
var _local3:Class;
var _local4:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance().classToStylesDict[_local3];
return (((_local4)==null) ? null : _local4[_arg2]);
}
private static function getInstance(){
if (_instance == null){
_instance = new (StyleManager);
};
return (_instance);
}
private static function invalidateComponentStyle(_arg1:Class, _arg2:String):void{
var _local3:Dictionary;
var _local4:Object;
var _local5:UIComponent;
_local3 = getInstance().classToInstancesDict[_arg1];
if (_local3 == null){
return;
};
for (_local4 in _local3) {
_local5 = (_local4 as UIComponent);
if (_local5 == null){
} else {
_local5.setSharedStyle(_arg2, getSharedStyle(_local5, _arg2));
};
};
}
private static function invalidateStyle(_arg1:String):void{
var _local2:Dictionary;
var _local3:Object;
_local2 = getInstance().styleToClassesHash[_arg1];
if (_local2 == null){
return;
};
for (_local3 in _local2) {
invalidateComponentStyle(Class(_local3), _arg1);
};
}
public static function registerInstance(_arg1:UIComponent):void{
var inst:StyleManager;
var classDef:Class;
var target:Class;
var defaultStyles:Object;
var styleToClasses:Object;
var n:String;
var instance = _arg1;
inst = getInstance();
classDef = getClassDef(instance);
if (classDef == null){
return;
};
if (inst.classToInstancesDict[classDef] == null){
inst.classToInstancesDict[classDef] = new Dictionary(true);
target = classDef;
while (defaultStyles == null) {
if (target["getStyleDefinition"] != null){
defaultStyles = target["getStyleDefinition"]();
break;
};
try {
target = (instance.loaderInfo.applicationDomain.getDefinition(getQualifiedSuperclassName(target)) as Class);
} catch(err:Error) {
try {
target = (getDefinitionByName(getQualifiedSuperclassName(target)) as Class);
} catch(e:Error) {
defaultStyles = UIComponent.getStyleDefinition();
break;
};
};
};
styleToClasses = inst.styleToClassesHash;
for (n in defaultStyles) {
if (styleToClasses[n] == null){
styleToClasses[n] = new Dictionary(true);
};
styleToClasses[n][classDef] = true;
};
inst.classToDefaultStylesDict[classDef] = defaultStyles;
inst.classToStylesDict[classDef] = {};
};
inst.classToInstancesDict[classDef][instance] = true;
setSharedStyles(instance);
}
public static function getStyle(_arg1:String):Object{
return (getInstance().globalStyles[_arg1]);
}
private static function getSharedStyle(_arg1:UIComponent, _arg2:String):Object{
var _local3:Class;
var _local4:StyleManager;
var _local5:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance();
_local5 = _local4.classToStylesDict[_local3][_arg2];
if (_local5 != null){
return (_local5);
};
_local5 = _local4.globalStyles[_arg2];
if (_local5 != null){
return (_local5);
};
return (_local4.classToDefaultStylesDict[_local3][_arg2]);
}
public static function setStyle(_arg1:String, _arg2:Object):void{
var _local3:Object;
_local3 = getInstance().globalStyles;
if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
_local3[_arg1] = _arg2;
invalidateStyle(_arg1);
}
}
}//package fl.managers
Section 56
//ag_intro (ag_intro)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class ag_intro extends MovieClip {
public var but:SimpleButton;
public function ag_intro(){
addFrameScript(0, frame1, 81, frame82, 217, frame218);
}
public function onBut(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.armorgames.com"), "_blank");
}
function frame1(){
MovieClip(parent).stop();
gotoAndPlay(2);
trace("ag created");
}
function frame82(){
but.addEventListener(MouseEvent.CLICK, onBut);
}
function frame218(){
MovieClip(parent).nextFrame();
}
}
}//package
Section 57
//boom (boom)
package {
import flash.media.*;
public dynamic class boom extends Sound {
}
}//package
Section 58
//BPoint (BPoint)
package {
import flash.display.*;
import flash.text.*;
public dynamic class BPoint extends MovieClip {
public var txt:TextField;
}
}//package
Section 59
//Button_disabledSkin (Button_disabledSkin)
package {
import flash.display.*;
public dynamic class Button_disabledSkin extends MovieClip {
}
}//package
Section 60
//Button_downSkin (Button_downSkin)
package {
import flash.display.*;
public dynamic class Button_downSkin extends MovieClip {
}
}//package
Section 61
//Button_emphasizedSkin (Button_emphasizedSkin)
package {
import flash.display.*;
public dynamic class Button_emphasizedSkin extends MovieClip {
}
}//package
Section 62
//Button_overSkin (Button_overSkin)
package {
import flash.display.*;
public dynamic class Button_overSkin extends MovieClip {
}
}//package
Section 63
//Button_selectedDisabledSkin (Button_selectedDisabledSkin)
package {
import flash.display.*;
public dynamic class Button_selectedDisabledSkin extends MovieClip {
}
}//package
Section 64
//Button_selectedDownSkin (Button_selectedDownSkin)
package {
import flash.display.*;
public dynamic class Button_selectedDownSkin extends MovieClip {
}
}//package
Section 65
//Button_selectedOverSkin (Button_selectedOverSkin)
package {
import flash.display.*;
public dynamic class Button_selectedOverSkin extends MovieClip {
}
}//package
Section 66
//Button_selectedUpSkin (Button_selectedUpSkin)
package {
import flash.display.*;
public dynamic class Button_selectedUpSkin extends MovieClip {
}
}//package
Section 67
//Button_upSkin (Button_upSkin)
package {
import flash.display.*;
public dynamic class Button_upSkin extends MovieClip {
}
}//package
Section 68
//c00 (c00)
package {
import flash.media.*;
public dynamic class c00 extends Sound {
}
}//package
Section 69
//c01 (c01)
package {
import flash.media.*;
public dynamic class c01 extends Sound {
}
}//package
Section 70
//c02 (c02)
package {
import flash.media.*;
public dynamic class c02 extends Sound {
}
}//package
Section 71
//c03 (c03)
package {
import flash.media.*;
public dynamic class c03 extends Sound {
}
}//package
Section 72
//c04 (c04)
package {
import flash.media.*;
public dynamic class c04 extends Sound {
}
}//package
Section 73
//cPoint (cPoint)
package {
import flash.display.*;
public dynamic class cPoint extends MovieClip {
}
}//package
Section 74
//die1 (die1)
package {
import flash.media.*;
public dynamic class die1 extends Sound {
}
}//package
Section 75
//die2 (die2)
package {
import flash.media.*;
public dynamic class die2 extends Sound {
}
}//package
Section 76
//die3 (die3)
package {
import flash.media.*;
public dynamic class die3 extends Sound {
}
}//package
Section 77
//die4 (die4)
package {
import flash.media.*;
public dynamic class die4 extends Sound {
}
}//package
Section 78
//die5 (die5)
package {
import flash.media.*;
public dynamic class die5 extends Sound {
}
}//package
Section 79
//die6 (die6)
package {
import flash.media.*;
public dynamic class die6 extends Sound {
}
}//package
Section 80
//die7 (die7)
package {
import flash.media.*;
public dynamic class die7 extends Sound {
}
}//package
Section 81
//Exp (Exp)
package {
import flash.display.*;
public dynamic class Exp extends MovieClip {
public function Exp(){
addFrameScript(21, frame22);
}
function frame22(){
stop();
visible = false;
}
}
}//package
Section 82
//f00 (f00)
package {
import flash.media.*;
public dynamic class f00 extends Sound {
}
}//package
Section 83
//f01 (f01)
package {
import flash.media.*;
public dynamic class f01 extends Sound {
}
}//package
Section 84
//f02 (f02)
package {
import flash.media.*;
public dynamic class f02 extends Sound {
}
}//package
Section 85
//f03 (f03)
package {
import flash.media.*;
public dynamic class f03 extends Sound {
}
}//package
Section 86
//f04 (f04)
package {
import flash.media.*;
public dynamic class f04 extends Sound {
}
}//package
Section 87
//f05 (f05)
package {
import flash.media.*;
public dynamic class f05 extends Sound {
}
}//package
Section 88
//f06 (f06)
package {
import flash.media.*;
public dynamic class f06 extends Sound {
}
}//package
Section 89
//f07 (f07)
package {
import flash.media.*;
public dynamic class f07 extends Sound {
}
}//package
Section 90
//focusRectSkin (focusRectSkin)
package {
import flash.display.*;
public dynamic class focusRectSkin extends MovieClip {
}
}//package
Section 91
//get_c (get_c)
package {
import flash.media.*;
public dynamic class get_c extends Sound {
}
}//package
Section 92
//guns (guns)
package {
import flash.media.*;
public dynamic class guns extends Sound {
}
}//package
Section 93
//hover (hover)
package {
import flash.media.*;
public dynamic class hover extends Sound {
}
}//package
Section 94
//IconGraphic (IconGraphic)
package {
import flash.display.*;
public dynamic class IconGraphic extends MovieClip {
}
}//package
Section 95
//Locked (Locked)
package {
import flash.display.*;
public dynamic class Locked extends MovieClip {
}
}//package
Section 96
//lose_c (lose_c)
package {
import flash.media.*;
public dynamic class lose_c extends Sound {
}
}//package
Section 97
//m_loop (m_loop)
package {
import flash.media.*;
public dynamic class m_loop extends Sound {
}
}//package
Section 98
//m_start (m_start)
package {
import flash.media.*;
public dynamic class m_start extends Sound {
}
}//package
Section 99
//M2 (M2)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import CCGame.*;
import flash.geom.*;
import CPMStar.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class M2 extends MovieClip {
public var BCont:SimpleButton;
public var pr:MovieClip;
public var adBox:MovieClip;
public var Shadow:MovieClip;
public var BMoreGames:SimpleButton;
public var BInst:SimpleButton;
public var MSlider:MSlider;
public var BNewGame:SimpleButton;
public var CPMStarContentSpotID:String;
public var ad:DisplayObject;
public function M2(){
addFrameScript(0, frame1, 17, frame18, 26, frame27, 34, frame35, 171, frame172, 174, frame175, 179, frame180);
}
public function adsAllow():void{
ad = new AdLoader(CPMStarContentSpotID);
adBox.addChild(ad);
}
public function onNewGame(_arg1:MouseEvent):void{
trace("new game");
MovieClip(parent).maxlvl = 1;
MovieClip(parent).Scores = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
MovieClip(parent).SaveLSO();
MSlider.SetSlider(MovieClip(parent).maxlvl, MovieClip(parent).sts, 1, MovieClip(parent).Scores);
play();
}
public function onCont(_arg1:MouseEvent):void{
trace("continue");
MovieClip(parent).LoadLSO();
MSlider.SetSlider(MovieClip(parent).maxlvl, MovieClip(parent).sts, MovieClip(parent).maxlvl, MovieClip(parent).Scores);
play();
}
public function onInst(_arg1:MouseEvent):void{
trace("intructions");
MovieClip(parent).ShowIns();
}
public function onMoreGames(_arg1:MouseEvent):void{
trace("moregames");
navigateToURL(new URLRequest("http://www.armorgames.com"), "_blank");
}
public function onBack(_arg1:MouseEvent):void{
trace("back");
gotoAndPlay(27);
}
public function toCont(_arg1:Event):void{
play();
removeEventListener(MouseEvent.CLICK, toCont);
}
function frame1(){
CPMStarContentSpotID = "3503Q5B354AA4";
ad = null;
if (MovieClip(parent).showAds == true){
adsAllow();
trace("### ads to loading added");
};
}
function frame18(){
stop();
BNewGame.addEventListener(MouseEvent.CLICK, onNewGame);
BCont.addEventListener(MouseEvent.CLICK, onCont);
BInst.addEventListener(MouseEvent.CLICK, onInst);
BMoreGames.addEventListener(MouseEvent.CLICK, onMoreGames);
MSlider.BBack.addEventListener(MouseEvent.CLICK, onBack);
trace("good");
}
function frame27(){
stop();
}
function frame35(){
gotoAndStop(18);
}
function frame172(){
stop();
addEventListener(MouseEvent.CLICK, toCont);
}
function frame175(){
if (MovieClip(parent).showAds == true){
ad = null;
ad = new AdLoader(CPMStarContentSpotID);
adBox.addChild(ad);
};
}
function frame180(){
MovieClip(parent).Pause = false;
if (MovieClip(parent).curlvl < 2){
MovieClip(parent).ShowIns();
};
visible = false;
}
}
}//package
Section 100
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 101
//s00 (s00)
package {
import flash.media.*;
public dynamic class s00 extends Sound {
}
}//package
Section 102
//s01 (s01)
package {
import flash.media.*;
public dynamic class s01 extends Sound {
}
}//package
Section 103
//s02 (s02)
package {
import flash.media.*;
public dynamic class s02 extends Sound {
}
}//package
Section 104
//s03 (s03)
package {
import flash.media.*;
public dynamic class s03 extends Sound {
}
}//package
Section 105
//s04 (s04)
package {
import flash.media.*;
public dynamic class s04 extends Sound {
}
}//package
Section 106
//s05 (s05)
package {
import flash.media.*;
public dynamic class s05 extends Sound {
}
}//package
Section 107
//s06 (s06)
package {
import flash.media.*;
public dynamic class s06 extends Sound {
}
}//package
Section 108
//s07 (s07)
package {
import flash.media.*;
public dynamic class s07 extends Sound {
}
}//package
Section 109
//s08 (s08)
package {
import flash.media.*;
public dynamic class s08 extends Sound {
}
}//package
Section 110
//s09 (s09)
package {
import flash.media.*;
public dynamic class s09 extends Sound {
}
}//package
Section 111
//s10 (s10)
package {
import flash.media.*;
public dynamic class s10 extends Sound {
}
}//package
Section 112
//s11 (s11)
package {
import flash.media.*;
public dynamic class s11 extends Sound {
}
}//package
Section 113
//s12 (s12)
package {
import flash.media.*;
public dynamic class s12 extends Sound {
}
}//package
Section 114
//s13 (s13)
package {
import flash.media.*;
public dynamic class s13 extends Sound {
}
}//package
Section 115
//ShockDead (ShockDead)
package {
import flash.display.*;
public dynamic class ShockDead extends MovieClip {
public function ShockDead(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
visible = false;
}
}
}//package
Section 116
//slide_ltr (slide_ltr)
package {
import flash.media.*;
public dynamic class slide_ltr extends Sound {
}
}//package
Section 117
//slide_m (slide_m)
package {
import flash.media.*;
public dynamic class slide_m extends Sound {
}
}//package
Section 118
//slide_rtl (slide_rtl)
package {
import flash.media.*;
public dynamic class slide_rtl extends Sound {
}
}//package
Section 119
//T1Dead (T1Dead)
package {
import CCGame.*;
public dynamic class T1Dead extends TDead {
}
}//package
Section 120
//T1Shock (T1Shock)
package {
import flash.display.*;
public dynamic class T1Shock extends MovieClip {
public function T1Shock(){
addFrameScript(15, frame16);
}
function frame16(){
visible = false;
stop();
}
}
}//package
Section 121
//T2Dead (T2Dead)
package {
import CCGame.*;
public dynamic class T2Dead extends TDead {
}
}//package
Section 122
//T2Shock (T2Shock)
package {
import flash.display.*;
public dynamic class T2Shock extends MovieClip {
public function T2Shock(){
addFrameScript(15, frame16);
}
function frame16(){
visible = false;
stop();
}
}
}//package
Section 123
//tesla (tesla)
package {
import flash.media.*;
public dynamic class tesla extends Sound {
}
}//package
Section 124
//Trebuchet (Trebuchet)
package {
import flash.text.*;
public dynamic class Trebuchet extends Font {
}
}//package
Section 125
//TSE1 (TSE1)
package {
import CCGame.*;
public dynamic class TSE1 extends Warrior {
public function TSE1(){
addFrameScript(30, frame31, 51, frame52);
}
function frame31(){
gotoAndPlay(11);
}
function frame52(){
stop();
}
}
}//package
Section 126
//TSE2 (TSE2)
package {
import CCGame.*;
public dynamic class TSE2 extends Warrior {
public function TSE2(){
addFrameScript(39, frame40, 59, frame60);
}
function frame40(){
gotoAndPlay(15);
}
function frame60(){
stop();
}
}
}//package
Section 127
//UI (UI)
package {
import flash.display.*;
public dynamic class UI extends MovieClip {
public var b_soff:SimpleButton;
public var b_i:SimpleButton;
public var b_son:SimpleButton;
public var b_r:SimpleButton;
}
}//package