Frame 1
LC = new LocalConnection();
var domain = LC.domain();
if ((domain != "kongregate.com") and (domain != "chat.kongregate.com")) {
_global.KONG = false;
} else {
_global.KONG = true;
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
_root.kongregateServices.connect();
__com_mochibot__("c4dba80e", this, 10301, true);
var myMenu_cm = new ContextMenu();
myMenu_cm.builtInItems.zoom = true;
myMenu_cm.builtInItems.quality = true;
myMenu_cm.builtInItems.print = false;
myMenu_cm.builtInItems.save = false;
myMenu_cm.builtInItems.loop = false;
myMenu_cm.builtInItems.play = false;
myMenu_cm.builtInItems.rewind = false;
myMenu_cm.builtInItems.forward_back = false;
_root.menu = myMenu_cm;
_global.cheated = false;
_global.godmode = false;
_global.godammo = false;
_global.godmoney = false;
_global.godwall = false;
_global.livingdaylights = false;
_global.moonraker = false;
_global.godfisty = false;
_global.godoctopussy = false;
_global.mute = false;
_global.effects = true;
_global.towernoob = true;
_global.gunnoob = true;
_global.resetguns = function () {
_global.gun1 = "pistol";
_global.gun2 = "blank";
_global.gun = _global.gun1;
_global.gunout = 1;
_global.reloading = false;
_global.reloadprog = 0;
_global.autonum = 0;
_global.autofiring = false;
_global.fistyrad = 40;
_global.fistydmg = 4;
_global.fisting = false;
_global.pistolcost = 100;
_global.pistoldmg = 1;
_global.pistolmaxammoORIG = 7;
_global.pistolmaxammoMAX = 14;
_global.pistolmaxammo = _global.pistolmaxammoORIG;
_global.pistolaccORIG = 1.4;
_global.pistolaccMAX = 1.9;
_global.pistolacc = _global.pistolaccORIG;
_global.pistolreloadORIG = 1.5;
_global.pistolreloadMAX = 4;
_global.pistolreload = _global.pistolreloadORIG;
_global.pistolauto = false;
_global.pistolbullets = true;
_global.havepistol = true;
_global.pistolUP1name = "Ammo";
_global.pistolUP2name = "Accuracy";
_global.pistolUP3name = "Reload";
_global.pistolUP1 = "maxammo";
_global.pistolUP1cost = 100;
_global.pistolUP1inc = 1;
_global.pistolUP2 = "acc";
_global.pistolUP2cost = 200;
_global.pistolUP2inc = 0.1;
_global.pistolUP3 = "reload";
_global.pistolUP3cost = 100;
_global.pistolUP3inc = 0.5;
_global.uzicost = 800;
_global.uzidmg = 1;
_global.uzimaxammoORIG = 20;
_global.uzimaxammoMAX = 30;
_global.uzimaxammo = _global.uzimaxammoORIG;
_global.uziaccORIG = 2;
_global.uziaccMAX = 2.4;
_global.uziacc = _global.uziaccORIG;
_global.uzireloadORIG = 1.5;
_global.uzireloadMAX = 2.5;
_global.uzireload = _global.uzireloadORIG;
_global.uziauto = true;
_global.uzifirerate = 2;
_global.uzibullets = true;
_global.haveuzi = false;
_global.uziUP1name = "Ammo";
_global.uziUP2name = "Accuracy";
_global.uziUP3name = "Reload";
_global.uziUP1 = "maxammo";
_global.uziUP1cost = 100;
_global.uziUP1inc = 1;
_global.uziUP2 = "acc";
_global.uziUP2cost = 400;
_global.uziUP2inc = 0.05;
_global.uziUP3 = "reload";
_global.uziUP3cost = 300;
_global.uziUP3inc = 0.2;
_global.scarcost = 5000;
_global.scardmg = 2;
_global.scarmaxammoORIG = 25;
_global.scarmaxammoMAX = 70;
_global.scarmaxammo = _global.scarmaxammoORIG;
_global.scaraccORIG = 2;
_global.scaraccMAX = 2.4;
_global.scaracc = _global.scaraccORIG;
_global.scarreloadORIG = 1;
_global.scarreloadMAX = 3;
_global.scarreload = _global.scarreloadORIG;
_global.scarauto = true;
_global.scarfirerate = 3;
_global.scarbullets = true;
_global.havescar = false;
_global.scarUP1name = "Ammo";
_global.scarUP2name = "Accuracy";
_global.scarUP3name = "Reload";
_global.scarUP1 = "maxammo";
_global.scarUP1cost = 450;
_global.scarUP1inc = 5;
_global.scarUP2 = "acc";
_global.scarUP2cost = 500;
_global.scarUP2inc = 0.05;
_global.scarUP3 = "reload";
_global.scarUP3cost = 700;
_global.scarUP3inc = 0.2;
_global.shotguncost = 2000;
_global.shotgundmg = 1.5;
_global.shotgunmaxammoORIG = 7;
_global.shotgunmaxammoMAX = 15;
_global.shotgunmaxammo = _global.shotgunmaxammoORIG;
_global.shotgunacc = 1;
_global.shotgunspread = 25;
_global.shotgunreloadORIG = 16;
_global.shotgunreloadMAX = 22;
_global.shotgunreload = _global.shotgunreloadORIG;
_global.shotgunreloadnum = 0;
_global.shotgunwait = 10;
_global.shotgunwaitnum = 30;
_global.shotgunauto = false;
_global.shotgunshotsORIG = 6;
_global.shotgunshotsMAX = 10;
_global.shotgunshots = _global.shotgunshotsORIG;
_global.shotgunreloadbuff = 60;
_global.shotgunbullets = false;
_global.haveshotgun = false;
_global.shotgunUP1name = "Ammo";
_global.shotgunUP2name = "Damage";
_global.shotgunUP3name = "Reload";
_global.shotgunUP1 = "maxammo";
_global.shotgunUP1cost = 500;
_global.shotgunUP1inc = 1;
_global.shotgunUP2 = "shots";
_global.shotgunUP2cost = 1000;
_global.shotgunUP2inc = 1;
_global.shotgunUP3 = "reload";
_global.shotgunUP3cost = 700;
_global.shotgunUP3inc = 1;
_global.dao12cost = 4000;
_global.dao12maxammoORIG = 8;
_global.dao12maxammoMAX = 20;
_global.dao12maxammo = _global.dao12maxammoORIG;
_global.dao12dmg = 1;
_global.dao12acc = 1.7;
_global.dao12spread = 40;
_global.dao12auto = true;
_global.dao12reload = 1.3;
_global.dao12waitORIG = 20;
_global.dao12waitMAX = 27;
_global.dao12wait = _global.dao12waitORIG;
_global.dao12waitnum = 30;
_global.dao12firerate = _global.dao12waitnum - _global.dao12wait;
_global.dao12shotsORIG = 3;
_global.dao12shotsMAX = 7;
_global.dao12shots = _global.dao12shotsORIG;
_global.dao12bullets = false;
_global.havedao12 = false;
_global.dao12UP1name = "Ammo";
_global.dao12UP2name = "Damage";
_global.dao12UP3name = "Fire Rate";
_global.dao12UP1 = "maxammo";
_global.dao12UP1cost = 800;
_global.dao12UP1inc = 2;
_global.dao12UP2 = "shots";
_global.dao12UP2cost = 1800;
_global.dao12UP2inc = 1;
_global.dao12UP3 = "wait";
_global.dao12UP3cost = 1000;
_global.dao12UP3inc = 1;
_global.flamercost = 7500;
_global.flamermaxammoORIG = 30;
_global.flamermaxammoMAX = 60;
_global.flamermaxammo = _global.flamermaxammoORIG;
_global.flamerdmgORIG = 0.03;
_global.flamerdmgMAX = 0.15;
_global.flamerdmg = _global.flamerdmgORIG;
_global.flameracc = 0.3;
_global.flamerreload = 5;
_global.flamerauto = true;
_global.flamerfirerate = 2;
_global.flamerspreadORIG = 5;
_global.flamerspreadMAX = 15;
_global.flamerspread = _global.flamerspreadORIG;
_global.flamerbullets = false;
_global.haveflamer = false;
_global.flamerUP1name = "Ammo";
_global.flamerUP2name = "Damage";
_global.flamerUP3name = "Spread";
_global.flamerUP1 = "maxammo";
_global.flamerUP1cost = 800;
_global.flamerUP1inc = 5;
_global.flamerUP2 = "dmg";
_global.flamerUP2cost = 800;
_global.flamerUP2inc = 0.01;
_global.flamerUP3 = "spread";
_global.flamerUP3cost = 400;
_global.flamerUP3inc = 1;
_global.paracost = 11000;
_global.paramaxammoORIG = 40;
_global.paramaxammoMAX = 200;
_global.paramaxammo = _global.paramaxammoORIG;
_global.paradmg = 6;
_global.paraaccORIG = 1.7;
_global.paraaccMAX = 2.2;
_global.paraacc = _global.paraaccORIG;
_global.parareloadORIG = 0.7;
_global.parareloadMAX = 1.5;
_global.parareload = _global.parareloadORIG;
_global.paraauto = true;
_global.parafirerate = 3;
_global.parabullets = true;
_global.havepara = false;
_global.paraUP1name = "Ammo";
_global.paraUP2name = "Accuracy";
_global.paraUP3name = "Reload";
_global.paraUP1 = "maxammo";
_global.paraUP1cost = 1000;
_global.paraUP1inc = 10;
_global.paraUP2 = "acc";
_global.paraUP2cost = 1300;
_global.paraUP2inc = 0.05;
_global.paraUP3 = "reload";
_global.paraUP3cost = 1000;
_global.paraUP3inc = 0.1;
_global.grencost = 10000;
_global.grenmaxammoORIG = 3;
_global.grenmaxammoMAX = 9;
_global.grenmaxammo = _global.grenmaxammoORIG;
_global.grendmgORIG = 4;
_global.grendmgMAX = 8;
_global.grendmg = _global.grendmgORIG;
_global.grenrad = 40;
_global.grenreloadORIG = 0.9;
_global.grenreloadMAX = 1.5;
_global.grenreload = _global.grenreloadORIG;
_global.grenauto = true;
_global.grenfirerate = 3;
_global.grenbullets = true;
_global.havegren = false;
_global.grenUP1name = "Ammo";
_global.grenUP2name = "Damage";
_global.grenUP3name = "Reload";
_global.grenUP1 = "maxammo";
_global.grenUP1cost = 1400;
_global.grenUP1inc = 1;
_global.grenUP2 = "dmg";
_global.grenUP2cost = 2500;
_global.grenUP2inc = 1;
_global.grenUP3 = "reload";
_global.grenUP3cost = 1800;
_global.grenUP3inc = 0.1;
_global.quakercost = 7000;
_global.quakerdmgORIG = 5;
_global.quakerdmgMAX = 15;
_global.quakerdmg = _global.quakerdmgORIG;
_global.quakermaxammoORIG = 3;
_global.quakermaxammoMAX = 7;
_global.quakermaxammo = _global.quakermaxammoORIG;
_global.quakerreloadORIG = -10;
_global.quakerreloadMAX = 20;
_global.quakerreload = _global.quakerreloadORIG;
_global.quakerreloadnum = 0;
_global.quakerwait = -20;
_global.quakerwaitnum = 30;
_global.quakerauto = false;
_global.quakerreloadbuff = 50;
_global.quakerbullets = false;
_global.havequaker = false;
_global.quakerUP1name = "Ammo";
_global.quakerUP2name = "Damage";
_global.quakerUP3name = "Reload";
_global.quakerUP1 = "maxammo";
_global.quakerUP1cost = 1800;
_global.quakerUP1inc = 1;
_global.quakerUP2 = "dmg";
_global.quakerUP2cost = 2200;
_global.quakerUP2inc = 2.5;
_global.quakerUP3 = "reload";
_global.quakerUP3cost = 1500;
_global.quakerUP3inc = 5;
_global.satcost = 20000;
_global.satdmg = 50;
_global.satmaxammoORIG = 1;
_global.satmaxammoMAX = 5;
_global.satmaxammo = _global.satmaxammoORIG;
_global.satreloadORIG = 0.6;
_global.satreloadMAX = 1;
_global.satreload = _global.satreloadORIG;
_global.satradORIG = 30;
_global.satradMAX = 50;
_global.satrad = _global.satradORIG;
_global.satauto = false;
_global.satbullets = true;
_global.havesat = false;
_global.satUP1name = "Ammo";
_global.satUP2name = "Radius";
_global.satUP3name = "Reload";
_global.satUP1 = "maxammo";
_global.satUP1cost = 9000;
_global.satUP1inc = 1;
_global.satUP2 = "rad";
_global.satUP2cost = 9000;
_global.satUP2inc = 5;
_global.satUP3 = "reload";
_global.satUP3cost = 9000;
_global.satUP3inc = 0.05;
_global.chainsawcost = 5000;
_global.chainsawmaxammoORIG = 20;
_global.chainsawmaxammoMAX = 100;
_global.chainsawmaxammo = _global.chainsawmaxammoORIG;
_global.chainsawreloadnum = 10;
_global.chainsawreloadtoORIG = 6;
_global.chainsawreloadtoMAX = 9;
_global.chainsawreloadto = _global.chainsawreloadtoORIG;
_global.chainsawdmgORIG = 1;
_global.chainsawdmgMAX = 4;
_global.chainsawdmg = _global.chainsawdmgORIG;
_global.chainsawacc = 2.5;
_global.chainsawauto = true;
_global.chainsawfirerate = 2;
_global.chainsawbullets = true;
_global.havechainsaw = false;
_global.chainsawUP1name = "Ammo";
_global.chainsawUP2name = "Damage";
_global.chainsawUP3name = "Reload";
_global.chainsawUP1 = "maxammo";
_global.chainsawUP1cost = 1200;
_global.chainsawUP1inc = 5;
_global.chainsawUP2 = "dmg";
_global.chainsawUP2cost = 1800;
_global.chainsawUP2inc = 0.5;
_global.chainsawUP3 = "reloadto";
_global.chainsawUP3cost = 2500;
_global.chainsawUP3inc = 1;
_global.miniguncost = 30000;
_global.minigunmaxammo = 200;
_global.minigundmg = 4;
_global.minigunauto = true;
_global.minigunfirerate = 1;
_global.miniwait = 25;
_global.mininum = 0;
_global.minigunbullets = true;
_global.haveminigun = false;
_global.minigunmaxammoORIG = 200;
_global.minigunmaxammoMAX = 500;
_global.minigunmaxammo = _global.minigunmaxammoORIG;
_global.minigunaccORIG = 2.4;
_global.minigunaccMAX = 2.6;
_global.minigunacc = _global.minigunaccORIG;
_global.minigunreloadORIG = 0.8;
_global.minigunreloadMAX = 1.1;
_global.minigunreload = _global.minigunreloadORIG;
_global.minigunUP1name = "Ammo";
_global.minigunUP2name = "Accuracy";
_global.minigunUP3name = "Reload";
_global.minigunUP1 = "maxammo";
_global.minigunUP1cost = 5000;
_global.minigunUP1inc = 25;
_global.minigunUP2 = "acc";
_global.minigunUP2cost = 6000;
_global.minigunUP2inc = 0.05;
_global.minigunUP3 = "reload";
_global.minigunUP3cost = 4000;
_global.minigunUP3inc = 0.025;
};
_global.resetguns();
this.weapon1 = "pistol";
this.weapon2 = "uzi";
this.weapon3 = "shotgun";
this.weapon4 = "scar";
this.weapon5 = "dao12";
this.weapon6 = "flamer";
this.weapon7 = "para";
this.weapon8 = "chainsaw";
this.weapon9 = "gren";
this.weapon10 = "sat";
this.weapon11 = "quaker";
this.weapon12 = "minigun";
_global.giveallguns = function () {
w = 1;
while (w < 13) {
gun = _root["weapon" + w];
i = 1;
while (i < 4) {
_global[gun + _global[(gun + "UP") + i]] = _global[(gun + _global[(gun + "UP") + i]) + "MAX"];
_global["have" + gun] = true;
i++;
}
w++;
}
};
_global.puffblooder = function (X, Y) {
_root.attachMovie("puffblood", "puffblood" + _global.pnum, _global.pnum + 10000);
_root["puffblood" + _global.pnum]._x = X;
_root["puffblood" + _global.pnum]._y = Y;
_global.pnum++;
};
_global.puffduster = function (X, Y) {
_root.attachMovie("puffdust", "puffdust" + _global.pnum, _global.pnum + 10000);
_root["puffdust" + _global.pnum]._x = X;
_root["puffdust" + _global.pnum]._y = Y;
_global.pnum++;
};
var minigames = new Array();
_global.minigamenum = 7;
i = 2;
while (i < (_global.minigamenum + 1)) {
_root.minigames[i] = 2;
i++;
}
_global.setminigames = function (setting) {
i = 2;
while (i < (_global.minigamenum + 1)) {
_root.mainmenu["mini" + i].gotoAndStop(2);
i++;
}
};
_global.setminigames(1);
_global.skypos = function () {
sunrat = Math.abs((_global.sunpos - _global.sunstart) * (100 / (_global.sunstart - _global.sunend)));
if (sunrat > 100) {
sunrat = 100;
}
if (sunrat > 70) {
c = new Color(_root.bkg.sun);
c.setTint(255, 81, 45, 2 * (sunrat - 70));
}
if (sunrat < 30) {
c = new Color(_root.bkg.sun);
c.setTint(255, 160, 0, 1.3 * (30 - sunrat));
}
_root.bkg.sky._y = -300 + (sunrat * 3.4);
};
_root.bkg.sky._y = -190;
_global.sunstart = 2.08;
_global.sunend = 4.205;
_global.sunpos = _global.sunend;
_root.bkg.sun._x = Math.sin(sunpos) * 300;
_root.bkg.sun._y = 100 + (Math.cos(sunpos) * 300);
_root.bkg.sun._alpha = 100;
_root.wall2.gotoAndStop(1);
_global.skypos();
_global.sunstartload = 0;
var flamesound = new Sound();
flamesound.attachSound("flamesound");
var pistolfire = new Sound();
pistolfire.attachSound("pistol");
this.onEnterFrame = function () {
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = 100 * ((_root.bytesLoaded - _global.sunstartload) / (_root.bytesTotal - _global.sunstartload));
_global.sunposT = ((((_global.sunstart - _global.sunend) / 100) * _root.percentLoaded) + _global.sunend) - 0.1;
_global.sunpos = _global.sunpos + ((_global.sunposT - _global.sunpos) * 0.1);
_root.bkg.sun._x = Math.sin(sunpos) * 300;
_root.bkg.sun._y = 100 + (Math.cos(sunpos) * 300);
_root.percent = Math.round(_root.percentLoaded) + "%";
if ((_global.sunpos < (_global.sunstart + 0.01)) and (_root.playbtn._currentframe == 1)) {
_root.playbtn.gotoAndPlay(2);
}
_global.skypos();
};
stop();
if (_global.KONG == false) {
_root.MRsword.unloadMovie();
_global.addlover = 0;
if (_global.addlover == 0) {
var CPMStarPoolID = 1059;
var CPMStarSubPoolID = 503;
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
_global.addlover = 1;
adBox.onLoad = function () {
trace("oshits");
};
}
} else {
adBoxbkg.unloadMovie();
adBox.unloadMovie();
}
Instance of Symbol 1061 MovieClip "ground" in Frame 1
onClipEvent (load) {
this.swapDepths(-19000);
}
Frame 3
var myMenu_cm = new ContextMenu();
myMenu_cm.builtInItems.zoom = true;
myMenu_cm.builtInItems.quality = true;
myMenu_cm.builtInItems.print = false;
myMenu_cm.builtInItems.save = false;
myMenu_cm.builtInItems.loop = false;
myMenu_cm.builtInItems.play = false;
myMenu_cm.builtInItems.rewind = false;
myMenu_cm.builtInItems.forward_back = false;
_root.menu = myMenu_cm;
var reloadSTART = new Sound();
reloadSTART.attachSound("reloadSTART");
var reloadFINISH = new Sound();
reloadFINISH.attachSound("reloadFINISH");
var fist = new Sound();
fist.attachSound("fist");
var beep = new Sound();
beep.attachSound("beep");
var gunbuy = new Sound();
gunbuy.attachSound("gunbuy");
var buyshit = new Sound();
buyshit.attachSound("buyshit");
var select = new Sound();
select.attachSound("select");
var clang = new Sound();
clang.attachSound("clang");
var jeepfire = new Sound();
jeepfire.attachSound("jeepfire");
var gunsound = new Sound();
gunsound.attachSound("gunsound");
var missilefire = new Sound();
missilefire.attachSound("missilefire");
var tankshot = new Sound();
tankshot.attachSound("tankshot");
var mushroomsound = new Sound();
mushroomsound.attachSound("mushroom");
var zap = new Sound();
zap.attachSound("zap");
var satfire = new Sound();
satfire.attachSound("satfire");
var claps = new Sound();
claps.attachSound("claps");
var lasersound = new Sound();
lasersound.attachSound("lasersound");
var jeepgo = new Sound();
jeepgo.attachSound("jeepgo");
var pistol = new Sound();
pistol.attachSound("pistol");
var uzi = new Sound();
uzi.attachSound("uzi");
var para = new Sound();
para.attachSound("para");
var scar = new Sound();
scar.attachSound("pistol");
var gren = new Sound();
gren.attachSound("gren");
var grenblow = new Sound();
grenblow.attachSound("grenblow");
var explosion = new Sound();
explosion.attachSound("explosion");
var grenboom = new Sound();
grenboom.attachSound("grenboom");
var shotgun = new Sound();
shotgun.attachSound("shotgun");
var shotgunreload = new Sound();
shotgunreload.attachSound("shotgunreload");
var dao12 = new Sound();
dao12.attachSound("dao12");
var quaker = new Sound();
quaker.attachSound("quaker");
var menuUp = new Sound();
menuUp.attachSound("menuUp");
var menuDown = new Sound();
menuDown.attachSound("menuDown");
_root.createEmptyMovieClip("chainsound", -98495);
_root.redicle.removeMovieClip();
_root.redicle.unloadMovie();
var chainsawGo = new Sound(_root.chainsound);
chainsawGo.attachSound("chainsawGo");
var chainsawStart = new Sound(_root.chainsound);
chainsawStart.attachSound("chainsawStart");
var chainsawFinish = new Sound(_root.chainsound);
chainsawFinish.attachSound("chainsawFinish");
chainsawGo.onSoundComplete = function () {
_root.chainsawGo.start();
};
chainsawStart.onSoundComplete = function () {
_root.chainsawGo.start();
};
var ministart = new Sound();
ministart.attachSound("ministart");
var minigun = new Sound();
minigun.attachSound("minigun");
var minireload = new Sound();
minireload.attachSound("minireload");
var minireloadSTART = new Sound();
minireloadSTART.attachSound("minireloadSTART");
var minireloadFINISH = new Sound();
minireloadFINISH.attachSound("minireloadFINISH");
Color.prototype.setTint = function (r, g, b, amount) {
var _local4 = 100 - amount;
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = _local4));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
var G = new Array();
_global.earnedmoney = 0;
_global.gametype = 1;
_global.blitz = true;
_root.ground.gotoAndStop(1);
_root.wall2.gotoAndStop(1);
_root.mainmenu._y = 200;
_global.fisty = false;
_global.reloadprog1 = 0;
_global.reloadprog2 = 0;
_global.octopussy = false;
_global.makeoctopussy();
_global.startat = false;
_global.infiniteday = false;
_global.blitz = false;
_global.sandboxmoney = false;
_global.sandboxgodmode = false;
_global.diffdmg = 1;
_global.diffmoney = 1;
_root.fisty._x = 999999 /* 0x0F423F */;
_root.fisty.removeMovieClip();
_root.fisty.unloadMovie();
_global.day = 1;
_global.money = 0;
_global.day = 2;
_global.money = 1400;
_global.shieldmod = 1;
_global.walllvl = 1;
_global.wallmax = 6;
_global.wallcost = 800;
_global.pausing = 0;
_global.umod = 1.2;
_global.maxhealth = _global.walllvl * 100;
_global.health = _global.maxhealth;
_global.resetguns();
_global.sworddmg = 1;
_global.swordmaxhealth = 2;
_global.swordmoney = 20;
_global.spartandmg = 5;
_global.spartanmaxhealth = 35;
_global.gunnerdmg = 2;
_global.gunnermaxhealth = 4;
_global.gunnermoney = 50;
_global.jeepdmg = 2;
_global.jeepmaxhealth = 12;
_global.jeepmoney = 100;
_global.termdmg = 1;
_global.termgundmg = 4;
_global.termmaxhealth = 55;
_global.termmoney = 130;
_global.tankdmg = 30;
_global.tankmaxhealth = 220;
_global.tankmoney = 180;
_global.truckdmg = 100;
_global.truckboomdmg = 1;
_global.truckboomrad = 40;
_global.truckmaxhealth = 6;
_global.truckmoney = 150;
_global.jetdmg = 4;
_global.jetmaxhealth = 10;
_global.jetmoney = 60;
_global.apachedmg = 10;
_global.apachemaxhealth = 30;
_global.apachemoney = 100;
_global.mechgundmg = 15;
_global.mechmissiledmg = 10;
_global.mechmissilerad = 10;
_global.mechmoney = 1000;
_global.mechmaxhealth = 400;
_global.enemynum = 10;
_global.enemy0 = "sword";
_global.enemy1 = "gunner";
_global.enemy2 = "jeep";
_global.enemy3 = "term";
_global.enemy4 = "jet";
_global.enemy5 = "apache";
_global.enemy6 = "tank";
_global.enemy7 = "mech";
_global.enemy8 = "plane";
_global.enemy9 = "truck";
_global.setguys = function () {
_global.swordmax = 60;
_global.gunnermax = 35;
_global.jeepmax = 6;
_global.termmax = 20;
_global.jetmax = 15;
_global.truckmax = 1;
_global.tankmax = 10;
_global.apachemax = 8;
_global.planemax = 1;
_global.mechmax = 20;
_global.swordnum = Math.round(_global.day * 3) + 4;
_global.gunnernum = Math.round(_global.day * 1) - 5;
_global.jeepnum = Math.round(_global.day * 0.5) - 4;
_global.termnum = Math.round(_global.day * 0.5) - 9;
_global.jetnum = Math.round(_global.day * 1) - 15;
_global.tanknum = Math.round(_global.day * 0.5) - 13;
_global.apachenum = Math.round(_global.day * 0.5) - 14;
_global.mechnum = Math.round(_global.day * 0.5) - 17;
_global.planenum = 0;
_global.trucknum = 0;
if (_global.day > 16) {
_global.truckdepth = -16380;
_global.trucknum = 1;
_global.truckfreq = 2800 / (_global.day - 15);
if (_global.truckfreq < 500) {
_global.truckfreq = 500;
}
}
j = 0;
while (j < _global.enemynum) {
if (_global[_global["enemy" + j] + "num"] > _global[_global["enemy" + j] + "max"]) {
_global[_global["enemy" + j] + "num"] = _global[_global["enemy" + j] + "max"];
}
j++;
}
};
_global.twrnum = 0;
_global.twrmissilecost = 6000;
_global.missiledmgORIG = 0.8;
_global.missiledmgMAX = 2;
_global.missileburstnumORIG = 3;
_global.missileburstnumMAX = 7;
_global.missileradORIG = 50;
_global.missilefireintORIG = 40;
_global.missilefireintMAX = 140;
_global.missileUP1name = "Missiles";
_global.missileUP2name = "Damage";
_global.missileUP3name = "Fire Rate";
_global.missileUP1 = "burstnum";
_global.missileUP1cost = 3000;
_global.missileUP1inc = 1;
_global.missileUP2 = "dmg";
_global.missileUP2cost = 2000;
_global.missileUP2inc = 0.2;
_global.missileUP3 = "fireint";
_global.missileUP3cost = 1600;
_global.missileUP3inc = 10;
_global.twrteslacost = 4000;
_global.teslawaitORIG = 60;
_global.teslawaitMAX = 90;
_global.teslaradORIG = 90;
_global.teslaradMAX = 170;
_global.tesladmgORIG = 2;
_global.tesladmgMAX = 10;
_global.teslaUP1name = "Damage";
_global.teslaUP2name = "Range";
_global.teslaUP3name = "Fire Rate";
_global.teslaUP1 = "dmg";
_global.teslaUP1cost = 2000;
_global.teslaUP1inc = 2;
_global.teslaUP2 = "rad";
_global.teslaUP2cost = 2000;
_global.teslaUP2inc = 10;
_global.teslaUP3 = "wait";
_global.teslaUP3cost = 2000;
_global.teslaUP3inc = 5;
_global.twrfancost = 2000;
_global.fanamtORIG = 0.04;
_global.fanamtMAX = 0.08;
_global.fanradORIG = 100;
_global.fanradMAX = 130;
_global.fandmgORIG = 2;
_global.fandmgMAX = 8;
_global.fanUP1name = "Slow";
_global.fanUP2name = "Range";
_global.fanUP3name = "";
_global.fanUP1 = "amt";
_global.fanUP1cost = 700;
_global.fanUP1inc = 0.01;
_global.fanUP2 = "rad";
_global.fanUP2cost = 1000;
_global.fanUP2inc = 5;
_global.fanUP3 = "na";
_global.fanUP3cost = "";
_global.fanUP3inc = "";
_global.twrquakecost = 2000;
_global.quakewaitORIG = 0;
_global.quakewaitMAX = 140;
_global.quakeUP1name = "Fire Rate";
_global.quakeUP1 = "wait";
_global.quakeUP1cost = 500;
_global.quakeUP1inc = 20;
_global.quakeUP2 = "na";
_global.quakeUP3 = "na";
_global.twrshieldcost = 3000;
_global.shieldamtORIG = 20;
_global.shieldamtMAX = 60;
_global.shieldUP1name = "Shield";
_global.shieldUP1 = "amt";
_global.shieldUP1cost = 1000;
_global.shieldUP1inc = 5;
_global.shieldUP2 = "na";
_global.shieldUP3 = "na";
_global.twrlasercost = 8000;
_global.laserfirewaitORIG = 85;
_global.laserfirewaitMAX = 175;
_global.laserradORIG = 100;
_global.laserradMAX = 160;
_global.laserdmgORIG = 9;
_global.laserdmgMAX = 34;
_global.laserUP1name = "Damage";
_global.laserUP2name = "Fire Rate";
_global.laserUP1 = "dmg";
_global.laserUP1cost = 5000;
_global.laserUP1inc = 5;
_global.laserUP2 = "firewait";
_global.laserUP2cost = 2000;
_global.laserUP2inc = 10;
_global.laserUP3 = "na";
_global.twrflamefagcost = 5000;
_global.flamefagdmgtoORIG = 0;
_global.flamefagdmgtoMAX = 5;
_global.flamefagradORIG = 50;
_global.flamefagradMAX = 70;
_global.flamefagdmgORIG = 0.04;
_global.flamefagdmgMAX = 0.14;
_global.flamefagUP1name = "Damage";
_global.flamefagUP2name = "Range";
_global.flamefagUP3name = "Fire Rate";
_global.flamefagUP1 = "dmg";
_global.flamefagUP1cost = 1500;
_global.flamefagUP1inc = 0.02;
_global.flamefagUP2 = "rad";
_global.flamefagUP2cost = 1200;
_global.flamefagUP2inc = 5;
_global.flamefagUP3 = "dmgto";
_global.flamefagUP3cost = 2000;
_global.flamefagUP3inc = 1;
_global.settwrcosts = function (i) {
j = 1;
while (j < 4) {
_root["twrslot" + i].tower[("UP" + j) + "cost"] = _global[((_global[("twrslot" + i) + "weapon"] + "UP") + j) + "cost"];
j++;
}
};
i = 0;
while (i < _global.twrslots) {
_global[("twrslot" + i) + "weapon"] = "blank";
_global[("twrslot" + i) + "costs"] = 0;
_root["twrslot" + i].gotoAndStop(1);
i++;
}
_global.sandboxing = false;
_global.gunmen = 0;
_global.gunmandmg = 2;
_global.gunmanfirenum = 0;
_global.gunmancostinc = 50;
_global.gunmancost = 200 + (_global.gunmen * _global.gunmancostinc);
_global.gunmanbaseint = 140;
_global.gunmaninc = 0.915;
_global.repairmen = 0;
_global.repairmancostinc = 300;
_global.repairmancost = 500 + (_global.repairmen * _global.repairmancostinc);
_global.repairmanfirenum = 0;
_global.repairmanbaseint = 90;
_global.repairmaninc = 0.7;
_global.repairmanbuff = 0.1;
_global.houserepaircost = 100;
_global.houserepairamt = 50;
_global.twrteslanum = 0;
_global.twrmissilenum = 0;
_global.twrquakenum = 0;
_global.twrlasernum = 0;
_global.twrshieldnum = 0;
_global.ammo1 = _global[_global.gun1 + "maxammo"];
_global.ammo2 = _global[_global.gun2 + "maxammo"];
_global.ammo = _global.ammo1;
_global.dead = false;
_global.daygo = false;
_global.pnum = 0;
_global.bitgrav = 0.2;
_global.bloodfade = 180;
_global.sunstart = 2.08;
_global.sunend = 4.205;
_global.shakin = false;
_global.shake = 0;
var M = new Array();
M[32] = 83;
M[42] = 69;
M[49] = 68;
M[63] = 75;
M[82] = 68;
M[90] = 75;
M[109] = 68;
M[120] = 75;
M[174] = 75;
M[182] = 76;
M[193] = 80;
M[200] = 222;
M[200] = 186;
M[212] = 75;
M[220] = 76;
M[234] = 186;
M[251] = 75;
M[258] = 76;
M[278] = 75;
M[337] = 83;
M[348] = 69;
M[355] = 68;
M[369] = 75;
M[386] = 68;
M[392] = 75;
M[410] = 68;
M[419] = 75;
M[485] = 72;
M[495] = 71;
M[504] = 84;
M[514] = 72;
M[523] = 75;
M[534] = 186;
M[551] = 76;
M[558] = 75;
M[570] = 72;
M[579] = 76;
M[638] = 83;
M[649] = 69;
M[655] = 68;
M[667] = 75;
M[685] = 68;
M[693] = 75;
M[710] = 68;
M[722] = 75;
M[775] = 75;
M[783] = 76;
M[794] = 80;
M[800] = 186;
M[812] = 75;
M[818] = 76;
M[825] = 186;
M[844] = 75;
M[849] = 76;
M[866] = 75;
M[916] = 75;
M[924] = 76;
M[935] = 80;
M[941] = 186;
M[953] = 75;
M[959] = 76;
M[972] = 186;
M[991] = 75;
M[998] = 76;
M[1005] = 75;
M[1014] = 186;
M[1025] = 75;
M[1030] = 76;
M[1042] = 186;
M[1061] = 75;
M[1066] = 76;
M[1078] = 75;
M[1085] = 186;
M[1097] = 75;
M[1102] = 76;
M[1114] = 186;
M[1132] = 75;
M[1138] = 76;
M[1155] = 75;
M[1175] = 71;
M[1195] = 65;
_global.Mlast = 1195;
_global.notenum = 0;
i = 0;
while (i < (_global.Mlast + 1)) {
if (M[i] > 0) {
_global.notenum++;
}
i++;
}
var piano65 = new Sound();
piano65.attachSound("piano0");
M["65code"] = 0;
var piano87 = new Sound();
piano87.attachSound("piano1");
M["87code"] = 1;
var piano83 = new Sound();
piano83.attachSound("piano2");
M["83code"] = 2;
var piano69 = new Sound();
piano69.attachSound("piano3");
M["69code"] = 3;
var piano68 = new Sound();
piano68.attachSound("piano4");
M["68code"] = 4;
var piano70 = new Sound();
piano70.attachSound("piano5");
M["70code"] = 5;
var piano84 = new Sound();
piano84.attachSound("piano6");
M["84code"] = 6;
var piano71 = new Sound();
piano71.attachSound("piano7");
M["71code"] = 7;
var piano89 = new Sound();
piano89.attachSound("piano8");
M["89code"] = 8;
var piano72 = new Sound();
piano72.attachSound("piano9");
M["72code"] = 9;
var piano85 = new Sound();
piano85.attachSound("piano10");
M["85code"] = 10;
var piano74 = new Sound();
piano74.attachSound("piano11");
M["74code"] = 11;
var piano75 = new Sound();
piano75.attachSound("piano12");
M["75code"] = 12;
var piano79 = new Sound();
piano79.attachSound("piano13");
M["79code"] = 13;
var piano76 = new Sound();
piano76.attachSound("piano14");
M["76code"] = 14;
var piano80 = new Sound();
piano80.attachSound("piano15");
M["80code"] = 15;
var piano186 = new Sound();
piano186.attachSound("piano16");
M["186code"] = 16;
var pianofuckup0 = new Sound();
pianofuckup0.attachSound("pianofuckup0");
var pianofuckup1 = new Sound();
pianofuckup1.attachSound("pianofuckup1");
var pianofuckup2 = new Sound();
pianofuckup2.attachSound("pianofuckup2");
var pianofuckup3 = new Sound();
pianofuckup3.attachSound("pianofuckup3");
_root.fuckup = function () {
_root["pianofuckup" + random(4)].start();
_global.dmghouse(10);
};
stopsounds = function () {
piano65.stop();
piano87.stop();
piano83.stop();
piano69.stop();
piano68.stop();
piano70.stop();
piano84.stop();
piano71.stop();
piano89.stop();
piano72.stop();
piano85.stop();
piano74.stop();
piano75.stop();
piano79.stop();
piano76.stop();
piano80.stop();
piano186.stop();
};
var Mtimer = 0;
_global.shotsfired = 0;
_global.shotshit = 0;
_global.swordskilled = 0;
Color.prototype.setTint = function (r, g, b, amount) {
var _local4 = 100 - amount;
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = _local4));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
_global.givehelp = function (help) {
_root.helpbox.Ty = 0;
_root.helpbox.text.gotoAndStop(help);
_root.menuUp.start();
};
_global.pausegame = function () {
_global.daygo = false;
_global.pausing = 1;
_root.attachMovie("pause", "pausescreen", 98478234);
_root.birds.stop();
j = 0;
while (j < _global.enemynum) {
itype = _global["enemy" + j];
i = 0;
while (i < _global[itype + "num"]) {
_root[itype + i].man.stop();
i++;
}
j++;
}
Mouse.show();
_root._y = 0;
_root._x = 0;
_root.fisty.stop();
};
_global.unpausegame = function () {
_global.daygo = true;
_global.pausing = 0;
_root.pausescreen.removeMovieClip();
_root.birds.start(Math.random() * 10);
j = 0;
while (j < _global.enemynum) {
itype = _global["enemy" + j];
i = 0;
while (i < _global[itype + "num"]) {
if (itype == "jeep") {
if (_root[itype + i].man._currentframe < 71) {
_root[itype + i].man.play();
}
} else {
_root[itype + i].man.play();
}
i++;
}
j++;
}
Mouse.hide();
_root.fisty.play();
};
_global.dmghouse = function (amt) {
amt = amt * _global.shieldmod;
if (_global.dead == false) {
if ((_global.godmode == false) and (_global.sandboxgodmode == false)) {
_global.health = _global.health - amt;
_global.dmgtaken = _global.dmgtaken + amt;
}
if (_global.health < 1) {
_global.health = 0;
_global.score = (_global.zminutes * 60) + _global.zseconds;
_global.scoretype = "seconds";
if ((_global.gametype == 4) and (((_global.zminutes * 60) + _global.zseconds) >= _global.ztarget)) {
_global.youwin();
} else {
_root.attachMovie("youdead", "youdead1", _root.getNextHighestDepth() + 99999999);
_root.youdead1._x = 325;
_root.youdead1._y = 80;
}
_global.dead = true;
i = 0;
while (i < _global.gunnernum) {
_root["gunner" + i].man.gotoAndPlay(140 + random(35));
_root["gunner" + i].action = "idle";
i++;
}
}
if (_global.health > _global.maxhealth) {
_global.health = _global.maxhealth;
}
}
_root.healthbar.bar._xscale = (_global.health / _global.maxhealth) * 100;
_root.healthbar.numbers.numbers = (Math.round(_global.health) + "/") + _global.maxhealth;
};
_global.rephouse = function (amt) {
if (_global.dead == false) {
if ((_global.godmode == false) and (_global.sandboxgodmode == false)) {
_global.health = _global.health - amt;
_global.dmgtaken = _global.dmgtaken + amt;
}
if (_global.health < 1) {
_global.health = 0;
if ((_global.gametype == 4) and (((_global.zminutes * 60) + _global.zseconds) >= _global.ztarget)) {
_global.youwin();
_global.score = (_global.zminutes * 60) + _global.zseconds;
_global.scoretype = "seconds";
} else {
_root.attachMovie("youdead", "youdead1", _root.getNextHighestDepth() + 99999999);
_root.youdead1._x = 325;
_root.youdead1._y = 80;
}
_global.dead = true;
i = 0;
while (i < _global.gunnernum) {
_root["gunner" + i].man.gotoAndPlay(140 + random(35));
_root["gunner" + i].action = "idle";
i++;
}
}
if (_global.health > _global.maxhealth) {
_global.health = _global.maxhealth;
}
}
_root.healthbar.bar._xscale = (_global.health / _global.maxhealth) * 100;
_root.healthbar.numbers.numbers = (Math.round(_global.health) + "/") + _global.maxhealth;
};
_global.givemoney = function (amt) {
if ((_global.godmoney == true) or (_global.sandboxmoney == true)) {
_global.money = 999999 /* 0x0F423F */;
} else {
_global.money = _global.money + amt;
}
_root.money.numbers = "$" + _global.money;
if (_global.daygo == true) {
_global.earnedmoney = _global.earnedmoney + amt;
}
};
_global.giveammo = function (amt) {
if (_global.dead == false) {
_global["ammo" + _global.gunout] = amt;
} else {
_global["ammo" + _global.gunout] = _global[_global.gun + "maxammo"];
}
if (_global.godammo == true) {
_global["ammo" + _global.gunout] = _global[_global.gun + "maxammo"];
}
if (_global["ammo" + _global.gunout] < 0) {
_global["ammo" + _global.gunout] = 0;
}
_root.ammobar.bar._xscale = (_global["ammo" + _global.gunout] / _global[_global.gun + "maxammo"]) * 100;
_root.ammobar.numbers.numbers = (_global["ammo" + _global.gunout] + "/") + _global[_global.gun + "maxammo"];
};
_global.reload = function () {
_global.autofiring = false;
_root.redicle.Trot = 0;
if (_global.gun != "chainsaw") {
_global.reloadprog = _global["reloadprog" + _global.gunout];
if ((_global.gun != "shotgun") and (_global.gun != "quaker")) {
_root.ammobar.bar._xscale = 0;
if (_global.gun == "minigun") {
_root.minireloadSTART.start();
} else {
_root.reloadSTART.start();
}
} else {
_global[_global.gun + "reloadnum"] = _global[_global.gun + "reloadbuff"];
}
_global.reloading = true;
}
};
_global.makeoctopussy = function () {
if ((_global.octopussy == false) and (_global.godoctopussy == false)) {
i = 3;
while (i < 8) {
_root["twrslot" + i].gotoAndStop("zombie");
_global[("twrslot" + i) + "weapon"] = "blank";
i++;
}
_global.twrslots = 3;
} else {
i = 3;
while (i < 8) {
_root["twrslot" + i].gotoAndStop(1);
_global[("twrslot" + i) + "weapon"] = "blank";
i++;
}
_global.twrslots = 7;
}
};
_global.makeoctopussy();
_global.skypos = function () {
sunrat = Math.abs((_global.sunpos - _global.sunstart) * (100 / (_global.sunstart - _global.sunend)));
if (sunrat > 100) {
sunrat = 100;
}
if (sunrat > 70) {
c = new Color(_root.bkg.sun);
c.setTint(255, 21, 45, 1.3 * (sunrat - 70));
}
if (sunrat < 30) {
c = new Color(_root.bkg.sun);
c.setTint(255, 160, 0, 1.3 * (30 - sunrat));
}
_root.bkg.sky._y = -300 + (sunrat * 3.4);
};
_global.youwin = function () {
Mouse.show();
_root.birds.stop();
_root.stopAllSounds();
_root.claps.start();
_root.attachMovie("youwin", "youwin", _root.getNextHighestDepth());
youwin._x = 0;
youwin._y = 0;
j = 0;
while (j < _global.enemynum) {
itype = _global["enemy" + j];
i = 0;
while (i < _global[itype + "num"]) {
_root[itype + i].man.stop();
i++;
}
j++;
}
_global.daygo = false;
};
_global.gunmanfire = function () {
highX = -30;
highI = 0;
j = 0;
while (j < (_global.enemynum - 3)) {
itype = _global["enemy" + j];
i = 0;
while (i < _global[itype + "num"]) {
X = _root[itype + i]._x + ((_root.wall._y - _root[itype + i]._y) * 0.5);
if ((X > highX) and (_root[itype + i].action != "dead")) {
highI = i;
highX = X;
type = itype;
}
i++;
}
j++;
}
if ((_root[type + highI]._x > 5) and (_root[type + highI].health > 0)) {
_root.gunsound.start();
_root.house["flash" + random(3)].gotoAndPlay("shoot");
_global.enemyhit(highI, _global.gunmandmg, type);
_global.gunmendmgamt = _global.gunmendmgamt + _global.gunmandmg;
if ((((type != "tank") and (type != "apache")) and (type != "jeep")) and (type != "mech")) {
if (_root._currentframe != 3) {
_global.puffblooder(_root[type + highI]._x, _root[type + highI]._y);
}
}
}
};
_global.repairmanfix = function () {
if (_global.health < _global.maxhealth) {
_global.dmghouse(-_global.repairmen);
_global.repairamt = _global.repairamt + 1;
}
};
_global.enemyhit = function (i, amt, type) {
_root[type + i].health = _root[type + i].health - (amt * _global.diffdmg);
if (_root[type + i].health <= 0) {
if (_global.gametype == 5) {
highest = 0;
highI = 0;
j = 0;
while (j < _global.swordnum) {
if ((_root[type + j]._x > highest) and (_root[type + j].action != "dead")) {
highest = _root[type + j]._x;
highI = j;
}
j++;
}
if (highI == i) {
_root.stopsounds();
_root["piano" + _root[type + i].note].start();
_global.musichits++;
} else {
_root.fuckup();
}
}
if (_root[type + i].action == "walk") {
_root[type + i].man.gotoAndPlay("deadrun");
} else {
_root[type + i].man.gotoAndPlay("dead");
}
_root[type + i].action = "dead";
if (_global.dead == false) {
_global.givemoney(Math.round(_global[type + "money"] * _global.diffmoney));
}
if (_global.gametype == 3) {
_global.spartanskilled++;
_root.spartatext.num = _global.spartanskilled;
_global.score = _global.spartanskilled;
}
}
};
_global.firegrenade = function () {
_root.attachMovie("grenade", "grenade" + _global.pnum, _global.pnum);
_global.pnum++;
_global.giveammo(_global["ammo" + _global.gunout] - 1);
if ((_global["ammo" + _global.gunout] < 1) and (_global.gun != "chainsaw")) {
_global.reload();
}
_global.shotsfired++;
_root.gren.start();
};
_global.firesat = function () {
X = _root._xmouse;
Y = _root._ymouse;
if (X > 500) {
X = 500;
}
if (Y < 220) {
Y = 220;
}
_root.attachMovie("satring", "satring" + _global.pnum, _global.pnum + 10000);
_root["satring" + _global.pnum]._x = X;
_root["satring" + _global.pnum]._y = Y;
_global.pnum++;
_global.giveammo(_global["ammo" + _global.gunout] - 1);
if ((_global["ammo" + _global.gunout] < 1) and (_global.gun != "chainsaw")) {
_global.reload();
}
_global.shotsfired++;
};
_global.satboomtest = function (X, Y) {
h = 0;
while (h < _global.enemynum) {
htype = _global["enemy" + h];
if ((_global[htype + "num"] > 0) and (htype != "truck")) {
i = 0;
while (i < _global[htype + "num"]) {
dist = Math.sqrt(Math.pow((X - _root[htype + i]._x) * 0.3, 2) + Math.pow(Y - _root[htype + i]._y, 2));
if (((dist < _global.satrad) and (_root[htype + i].action != "dead")) and (_root[htype + i]._x > 0)) {
if (_root[htype + i].health > _global.satdmg) {
_global.enemyhit(i, _global.satdmg, htype);
} else {
_root[htype + i].sat = true;
}
}
i++;
}
}
h++;
}
_root.satfire.start();
_global.shakin = true;
_global.shake = 10;
};
_global.dosat = function (n, type) {
_root[n]._rotation = _root[n]._rotation + 15;
_root[n]._xscale = _root[n]._xscale - 3;
_root[n]._yscale = _root[n]._yscale - 3;
_root[n].man.stop();
if (_root[n]._xscale < 3) {
if (_global.gametype == 3) {
_global.spartanskilled++;
_root.spartatext.num = _global.spartanskilled;
}
if (_global.dead == false) {
_global.givemoney(_global[type + "money"]);
}
_global[type + "reset"](n);
}
};
_global.enemyboomhit = function (i, amt, type, X, Y) {
_root[type + i].health = _root[type + i].health - amt;
if (type == "term") {
if (_root[type + i].action == "walk") {
_root[type + i].man.gotoAndPlay("fall");
}
}
if ((type == "gunner") or (type == "sword")) {
if ((_root[type + i].health <= 0) and (type != "term")) {
if (_global.effects == true) {
pwr = 0.1;
ran = random(2);
_root.attachMovie("bitbody" + ran, ("bitbody" + ran) + _global.pnum, _global.pnum + 10000);
_root[("bitbody" + ran) + _global.pnum]._x = _root[type + i]._x;
_root[("bitbody" + ran) + _global.pnum]._y = _root[type + i]._y;
_root[("bitbody" + ran) + _global.pnum].ground = _root[type + i]._y + 10;
_root[("bitbody" + ran) + _global.pnum].xspeed = (_root[type + i]._x - X) * pwr;
_global.pnum++;
legran = random(2);
_root.attachMovie("bitleg" + legran, ("bitleg" + legran) + _global.pnum, _global.pnum + 10000);
_root[("bitleg" + legran) + _global.pnum]._x = _root[type + i]._x;
_root[("bitleg" + legran) + _global.pnum]._y = _root[type + i]._y;
_root[("bitleg" + legran) + _global.pnum].ground = _root[type + i]._y + 10;
_root[("bitleg" + legran) + _global.pnum].xspeed = (_root[type + i]._x - X) * pwr;
_global.pnum++;
if (_global.gametype == 3) {
_root.attachMovie("bitspartan", "bitspartan" + _global.pnum, _global.pnum + 10000);
_root["bitspartan" + _global.pnum]._x = _root[type + i]._x;
_root["bitspartan" + _global.pnum]._y = _root[type + i]._y;
_root["bitspartan" + _global.pnum].ground = _root[type + i]._y + 10;
_root["bitspartan" + _global.pnum].xspeed = (_root[type + i]._x - X) * pwr;
_global.pnum++;
}
}
_root.attachMovie("bitblood", "bitblood" + _global.pnum, _global.pnum - 1000);
_root["bitblood" + _global.pnum]._x = _root[type + i]._x + 2;
_root["bitblood" + _global.pnum]._y = _root[type + i]._y + 11;
_global.pnum++;
}
if ((_root[type + i].action == "walk") or (_root[type + i].action == "attack")) {
if ((_root[type + i]._x > X) and (_root[type + i].action != "attack")) {
_root[type + i].action = "fall";
_root[type + i].man.gotoAndPlay("fall");
} else {
_root[type + i].man.gotoAndPlay("fallback");
_root[type + i].action = "fallback";
}
}
if (_root[type + i].health <= 0) {
_root[type + i].action = "dead";
_root[type + i].man.gotoAndPlay("respawn");
if (_global.dead == false) {
_global.givemoney(_global[type + "money"]);
}
if (_global.gametype == 3) {
_global.spartanskilled++;
_root.spartatext.num = _global.spartanskilled;
}
}
} else if (_root[type + i].health <= 0) {
_root[type + i].action = "dead";
_root[type + i].man.gotoAndPlay("dead");
if (_global.dead == false) {
if ((_global.gametype != 7) or (_root[type + i].badguy != true)) {
_global.givemoney(_global[type + "money"]);
if (_global.gametype == 7) {
i = _global.jeepnum;
type = "jeep";
_root.attachMovie(type, type + i, _global.guydepthnum);
_root[type + i].badguy = true;
_global.guydepthnum++;
_global[type + "reset"](type + i);
_global.jeepnum++;
}
} else {
_root.attachMovie("fistyoops", "fistyoops" + _global.pnum, _global.pnum + 94958);
_root["fistyoops" + _global.pnum]._x = _root[type + i]._x;
_root["fistyoops" + _global.pnum]._y = _root[type + i]._y;
_global.pnum++;
_global.givemoney(-_global[type + "money"]);
}
}
}
};
_global.gunswitch = function () {
if (_global.reloading == true) {
_global["reloadprog" + _global.gunout] = _global.reloadprog;
}
if (_global.gun == _global.gun1) {
_global.gun = _global.gun2;
_global.gunout = 2;
c = new Color(_root.gun1);
c.setTint(255, 255, 255, 100);
_root.gun1._alpha = 40;
c = new Color(_root.gun2);
c.setTint(255, 255, 255, 0);
_root.gun2._alpha = 100;
} else {
_global.gun = _global.gun1;
_global.gunout = 1;
c = new Color(_root.gun2);
c.setTint(255, 255, 255, 100);
_root.gun2._alpha = 40;
c = new Color(_root.gun1);
c.setTint(255, 255, 255, 0);
_root.gun1._alpha = 100;
}
_global.reloading = false;
_global.giveammo(_global["ammo" + _global.gunout]);
if (_global["ammo" + _global.gunout] < 1) {
_global.reload();
}
if (_global["reloadprog" + _global.gunout] > 0) {
_global.reload();
}
if (_global.gun == "chainsaw") {
_root.redicle.gotoAndStop(2);
} else {
_root.redicle.gotoAndStop(1);
}
};
_global.dayover = function () {
_global.autofiring = false;
_global.reloading = false;
_global.mininum = 0;
_root.wall2.gotoAndStop(_global.walllvl);
j = 0;
while (j < _global.enemynum) {
type = _global["enemy" + j];
i = -5;
while (i < (_global[type + "num"] + 5)) {
removeMovieClip(_root[type + i]);
unloadMovie (_root[type + i]);
_root[type + i].removeMovieClip();
_root[type + i].unloadMovie();
i++;
}
j++;
}
_root.swordshit.unloadMovie();
_root.pausescreen.removeMovieClip();
_global.planereset("plane0");
_global.ammo1 = _global[_global.gun1 + "maxammo"];
_global.ammo2 = _global[_global.gun2 + "maxammo"];
_global.ammo = _global.ammo1;
_global.gunout = 1;
_global.gun = _global.gun1;
_global.giveammo(_global[_global.gun1 + "maxammo"]);
_global.daygo = false;
i = 0;
while (i < _global.twrslots) {
_root["drawtwrslot" + i].clear();
i++;
}
_root.fisty._x = 999999 /* 0x0F423F */;
_root.fisty.removeMovieClip();
_root.fisty.unloadMovie();
_root.spartatext.removeMovieClip();
_root.flagred.removeMovieClip();
_root.flagblue.removeMovieClip();
_root.bomber.removeMovieClip();
_root.gotoAndStop("buy");
_root.mainmenu._y = 9999;
};
_global.quit = function () {
_global.autofiring = false;
_global.reloading = false;
_global.mininum = 0;
_root.wall2.gotoAndStop(_global.walllvl);
j = 0;
while (j < _global.enemynum) {
type = _global["enemy" + j];
i = 0;
while (i < _global[type + "num"]) {
removeMovieClip(_root[type + i]);
i++;
}
j++;
}
_root.fisty._x = 999999 /* 0x0F423F */;
_root.fisty.removeMovieClip();
_root.fisty.unloadMovie();
_global.planereset("plane0");
_global.ammo1 = _global[_global.gun1 + "maxammo"];
_global.ammo2 = _global[_global.gun2 + "maxammo"];
_global.ammo = _global.ammo1;
_global.gunout = 1;
_global.gun = _global.gun1;
_global.giveammo(_global[_global.gun1 + "maxammo"]);
_global.daygo = false;
i = 0;
while (i < _global.twrslots) {
_root["drawtwrslot" + i].clear();
i++;
}
_root.spartatext.removeMovieClip();
_root.flagred.removeMovieClip();
_root.flagblue.removeMovieClip();
_root.bomber.removeMovieClip();
_root.mainmenu._y = 9999;
};
_global.fire = function () {
if (_global[_global.gun + "bullets"] == true) {
ran = Math.random() * 100;
kickmod = _root.redicle.sized * 0.3;
acc = 3 - _global[_global.gun + "acc"];
hitX = _root._xmouse + (((Math.sin(ran) * acc) * kickmod) * Math.random());
hitY = _root._ymouse + (((Math.cos(ran) * acc) * kickmod) * Math.random());
_root.redicle.sized = _root.redicle.sized + (acc * 60);
_global.hittest(hitX, hitY);
} else {
if ((_global.gun == "shotgun") or (_global.gun == "dao12")) {
hitX = _root._xmouse;
hitY = _root._ymouse;
_global.hittest(hitX, hitY);
acc = 3 - _global[_global.gun + "acc"];
p = 0;
while (p < _global[_global.gun + "shots"]) {
ran = Math.random() * 100;
hitX = _root._xmouse + ((Math.sin(ran) * _global[_global.gun + "spread"]) * Math.random());
hitY = _root._ymouse + ((Math.cos(ran) * _global[_global.gun + "spread"]) * Math.random());
_global.hittest(hitX, hitY);
p++;
}
_root.redicle.sized = _root.redicle.sized + (acc * 60);
}
if (_global.gun == "flamer") {
ran = Math.random() * 100;
kickmod = _root.redicle.sized * 0.3;
acc = 3 - _global[_global.gun + "acc"];
hitX = _root._xmouse + (((Math.sin(ran) * acc) * kickmod) * Math.random());
hitY = _root._ymouse + (((Math.cos(ran) * acc) * kickmod) * Math.random());
_root.redicle.sized = _root.redicle.sized + (_global[_global.gun + "acc"] * 60);
_global.flamerhittest(hitX, hitY);
}
}
_root[_global.gun].start();
if (_global.gametype != 5) {
_global.giveammo(_global["ammo" + _global.gunout] - 1);
} else {
_global.musicshots++;
}
if (_global["ammo" + _global.gunout] < 1) {
_global.reload();
if (_global.gun == "chainsaw") {
_root.chainsawGo.stop();
_root.chainsawFinish.start();
}
}
_global.shotsfired++;
};
_global.hittest = function (hitX, hitY) {
hit = 0;
j = 0;
while (j < _global.enemynum) {
type = _global["enemy" + j];
i = 0;
while (i < _global[type + "num"]) {
if ((j == 0) or (j == 1)) {
if ((_root[type + i].action == "fallback") or (_root[type + i].action == "fall")) {
if (_root[type + i].hitTest(hitX, hitY, false)) {
_global.enemyhit(i, _global[_global.gun + "dmg"], type, false);
hit = 1;
_global.shotshit++;
_global.puffblooder(hitX, hitY);
if (_global.gun != "chainsaw") {
break;
}
}
} else if ((Math.abs(hitX - _root[type + i]._x) < _root[type + "hitx"]) and (Math.abs(hitY - _root[type + i]._y) < _root[type + "hity"])) {
if (_root[type + i].action != "dead") {
_global.enemyhit(i, _global[_global.gun + "dmg"], type, false);
hit = 1;
_global.shotshit++;
if ((((j == 0) or (j == 1)) or (j == 3)) or (j == 4)) {
_global.puffblooder(hitX, hitY);
}
if (_global.gun != "chainsaw") {
break;
}
}
}
} else if ((Math.abs(hitX - _root[type + i]._x) < _root[type + "hitx"]) and (Math.abs(hitY - _root[type + i]._y) < _root[type + "hity"])) {
if (_root[type + i].action != "dead") {
_global.enemyhit(i, _global[_global.gun + "dmg"], type, false);
hit = 1;
_global.shotshit++;
if ((((j == 0) or (j == 1)) or (j == 3)) or (j == 4)) {
_global.puffblooder(hitX, hitY);
}
if (_global.gun != "chainsaw") {
break;
}
}
}
i++;
}
j++;
}
if (hit == 0) {
if (hitY > 140) {
_global.puffduster(hitX, hitY);
}
}
};
_global.findshield = function () {
_global.shieldmod = 1;
i = 0;
while (i < _global.twrslots) {
if (_root["twrslot" + i]._currentframe == 8) {
_global.shieldmod = _global.shieldmod - (_global.shieldmod * (_root["twrslot" + i].tower.amt / 100));
}
i++;
}
if (_global.shieldmod > 0.99) {
_global.shieldmod = 0.99;
}
_root.infobox.shield = (100 - Math.round(_global.shieldmod * 100)) + "%";
};
_global.flamerhittest = function (hitX, hitY) {
j = 0;
while (j < (_global.enemynum - 3)) {
type = _global["enemy" + j];
i = 0;
while (i < _global[type + "num"]) {
if ((Math.abs(hitX - _root[type + i]._x) < (_root[type + "hitx"] + _global.flamerspread)) and (Math.abs(hitY - _root[type + i]._y) < (_root[type + "hitx"] + _global.flamerspread))) {
if (_root[type + i].action != "dead") {
ran = random(2);
if (ran == 0) {
_root[type + i].onfire = true;
_root[type + i].flamedmg = _global.flamerdmg;
_root[type + i].flame.gotoAndStop(2);
_root[type + i].flame._alpha = 100;
}
_global.shotshit++;
}
}
i++;
}
j++;
}
_root.flamesound.start();
_root.attachMovie("flame", "flame" + _global.pnum, _global.pnum + 10000);
_root["flame" + _global.pnum]._x = hitX;
_root["flame" + _global.pnum]._y = hitY;
_global.pnum++;
};
_global.quake = function () {
j = 0;
while (j < (_global.enemynum - 3)) {
type = _global["enemy" + j];
if (((type == "sword") or (type == "gunner")) or (type == "term")) {
i = 0;
while (i < _global[type + "num"]) {
if (type == "term") {
if (_root[type + i].action == "walk") {
_root[type + i].man.gotoAndPlay("fall");
}
} else if ((_root[type + i].action == "walk") or (_root[type + i].action == "attack")) {
ran = random(2);
if (((ran == 0) or (_root[type + i].action == "attack")) or (_root[type + i]._x > (_root.wall._x - 80))) {
_root[type + i].man.gotoAndPlay("fallback");
_root[type + i].action = "fallback";
} else {
_root[type + i].man.gotoAndPlay("fall");
_root[type + i].action = "fall";
}
}
i++;
}
}
j++;
}
_global.shake = 10;
_global.shakin = true;
};
_global.quakerfire = function () {
_global.quake();
j = 0;
while (j < (_global.enemynum + 1)) {
type = _global["enemy" + j];
if (((((type != "sword") and (type != "gunner")) and (type != "jet")) and (type != "apache")) and (type != "plane")) {
i = 0;
while (i < _global[type + "num"]) {
if ((_root[type + i].action != "dead") and (_root[type + i]._x > 0)) {
_global.enemyhit(i, _global.quakerdmg, type);
}
i++;
}
}
if ((type == "sword") or (type == "gunner")) {
i = 0;
while (i < _global[type + "num"]) {
if ((_root[type + i].action != "dead") and (_root[type + i]._x > 0)) {
_global.enemyhit(i, (Math.random() * _global.quakerdmg) * 0.2, type);
}
i++;
}
}
j++;
}
_global.giveammo(_global["ammo" + _global.gunout] - 1);
if (_global["ammo" + _global.gunout] < 1) {
_global.reload();
}
_root.quaker.start();
_global.shotsfired++;
};
_global.fanhittest = function (X, Y, amt, rad) {
j = 0;
while (j < (_global.enemynum - 3)) {
type = _global["enemy" + j];
if ((type == "sword") or (type == "gunner")) {
i = 0;
while (i < _global[type + "num"]) {
dist = Math.sqrt(Math.pow((X - _root[type + i]._x) * 0.3, 2) + Math.pow(Y - _root[type + i]._y, 2));
if ((dist < rad) and (_root[type + i].action == "walk")) {
slow = 1 - amt;
_root[type + i].speed = _root[type + i].speed * slow;
if (_root[type + i].speed < _root[type + i].minspeed) {
_root[type + i].speed = _root[type + i].minspeed;
}
}
i++;
}
}
j++;
}
};
_global.teslahittest = function (X, Y, twr) {
highX = -500;
highI = 0;
j = 0;
while (j < (_global.enemynum - 3)) {
type = _global["enemy" + j];
i = 0;
while (i < _global[type + "num"]) {
Xp = _root[type + i]._x + ((_root.wall._y - _root[type + i]._y) * 0.5);
if ((_root[type + i].action != "dead") and (Xp > highX)) {
dist = Math.sqrt(Math.pow((X - _root[type + i]._x) * 0.5, 2) + Math.pow(Y - _root[type + i]._y, 2));
if (dist < _root[twr].tower.rad) {
highI = i;
highX = Xp;
hightype = type;
}
}
i++;
}
j++;
}
if (highX > 0) {
_root[twr].tower.Target = _root[hightype + highI]._name;
_root[twr].tower.Targeti = highI;
_root[twr].tower.Targettype = hightype;
_root[twr].tower.light._alpha = 90;
_global.enemyhit(highI, _root[twr].tower.dmg, hightype);
_root.zap.start();
}
};
_global.flamefagtest = function (X, Y, dmg, rad) {
highI = 0;
j = 0;
while (j < (_global.enemynum - 3)) {
type = _global["enemy" + j];
rand = random(2);
if (rand == 0) {
i = 0;
while (i < _global[type + "num"]) {
if ((_root[type + i].action != "dead") and (_root[type + i].onfire != true)) {
dist = Math.sqrt(Math.pow((X - _root[type + i]._x) * 0.3, 2) + Math.pow(Y - _root[type + i]._y, 2));
if (dist < rad) {
highI = i;
found = 1;
hightype = type;
}
}
i++;
}
} else {
i = _global[type + "num"];
while (i > -1) {
if ((_root[type + i].action != "dead") and (_root[type + i].onfire != true)) {
dist = Math.sqrt(Math.pow((X - _root[type + i]._x) * 0.3, 2) + Math.pow(Y - _root[type + i]._y, 2));
if (dist < rad) {
highI = i;
found = 1;
hightype = type;
}
}
i--;
}
}
j++;
}
if (found == 1) {
found = 0;
_root.flamesound.start();
_root[hightype + highI].onfire = true;
_root[hightype + highI].flamedmg = dmg;
_root[hightype + highI].flame.gotoAndStop(2);
_root[hightype + highI].flame._alpha = 100;
}
};
_global.laserfire = function (i, dmg, type) {
_global.shake = 3;
_global.shakin = true;
_root.attachMovie("laserpew", "laserpew" + _global.pnum, _global.pnum + 9374);
_root["laserpew" + _global.pnum]._x = _root[type + i]._x;
_root["laserpew" + _global.pnum]._y = _root[type + i]._y;
_global.pnum++;
_root.lasersound.start();
_global.enemyhit(i, dmg, type);
};
_global.laserfindtarget = function (named) {
foundtype = 0;
foundtype = 0;
h = _global.enemynum - 3;
while (h > -1) {
htype = _global["enemy" + h];
if (_global[htype + "num"] > 0) {
j = 0;
while (j < _global[htype + "num"]) {
if ((_root[htype + j]._x > 0) and (_root[htype + j].action != "dead")) {
inum = j;
foundtype = 1;
}
if (foundtype == 1) {
type = htype;
}
j++;
}
}
if (foundtype == 1) {
type = htype;
break;
}
h--;
}
highX = 0;
highI = 0;
itype = type;
_root[named].tower.gotTarget = false;
i = 0;
while (i < _global[itype + "num"]) {
X = _root[itype + i]._x - ((_root[itype + i]._y - _root.wall._y) / 2);
if ((X > highX) and (_root[itype + i].action != "dead")) {
highI = i;
highX = X;
type = itype;
_root[named].tower.gotTarget = true;
_root[named].tower.Target = _root[type + i]._name;
_root[named].tower.Targeti = i;
_root[named].tower.Targettype = type;
}
i++;
}
};
_global.fistpunch = function (X, Y) {
hit = 0;
rad = _global.fistyrad;
dmg = _global.fistydmg;
j = 0;
while (j < (_global.enemynum - 3)) {
type = _global["enemy" + j];
i = 0;
while (i < _global[type + "num"]) {
dist = Math.sqrt(Math.pow((X - _root[type + i]._x) * 0.5, 2) + Math.pow(Y - _root[type + i]._y, 2));
if ((dist < rad) and (_root[type + i].action != "dead")) {
damage = (rad / dist) * dmg;
_global.enemyboomhit(i, damage, type, X, Y);
}
i++;
}
j++;
}
_global.shakin = 1;
_global.shake = 15;
_root.fist.start();
};
_global.missilefindtarget = function (named) {
j = 0;
while (j < (_global.enemynum - 3)) {
jtype = _global["enemy" + j];
if (_global[jtype + "num"] > 0) {
type = jtype;
}
j++;
}
foundtype = 0;
h = _global.enemynum - 3;
while (h > -1) {
htype = _global["enemy" + h];
if (_global[htype + "num"] > 0) {
j = 0;
while (j < _global[htype + "num"]) {
if ((_root[htype + j]._x > 0) and (_root[htype + j].action != "dead")) {
inum = j;
foundtype = 1;
}
if (foundtype == 1) {
type = htype;
}
j++;
}
}
if (foundtype == 1) {
type = htype;
break;
}
h--;
}
ran = inum;
_root[named].Target = _root[type + ran]._name;
i = 0;
do {
if (!((_root[type + ran]._x < 0) or (_root[type + ran]._x > (_root.wall._x - 100)))) {
break;
}
ran = random(_global[type + "num"]);
_root[named].Target = _root[type + ran]._name;
i++;
} while (i <= 15);
};
_global.missileboomtest = function (type, X, Y, dmg, rad) {
i = 0;
while (i < _global[type + "num"]) {
dist = Math.sqrt(Math.pow((X - _root[type + i]._x) * 0.5, 2) + Math.pow(Y - _root[type + i]._y, 2));
if ((dist < rad) and (_root[type + i].action != "dead")) {
damage = (rad / dist) * dmg;
_global.enemyboomhit(i, damage, type, X, Y);
}
i++;
}
};
_global.missileboom = function (X, Y, dmg, rad) {
_root.attachMovie("missileboom", "missileboom" + _global.pnum, _global.pnum + 10000);
_root["missileboom" + _global.pnum]._x = X;
_root["missileboom" + _global.pnum]._y = Y;
_global.pnum++;
hit = 0;
j = 0;
while (j < (_global.enemynum - 3)) {
type = _global["enemy" + j];
i = 0;
while (i < _global[type + "num"]) {
dist = Math.sqrt(Math.pow((X - _root[type + i]._x) * 0.5, 2) + Math.pow(Y - _root[type + i]._y, 2));
if ((dist < rad) and (_root[type + i].action != "dead")) {
damage = (rad / dist) * dmg;
_global.enemyboomhit(i, damage, type, X, Y);
}
i++;
}
j++;
}
_root.explosion.start();
};
_global.amissileboom = function (X, Y) {
_root.attachMovie("missileboom", "missileboom" + _global.pnum, _global.pnum + 10000);
_root["missileboom" + _global.pnum]._x = X;
_root["missileboom" + _global.pnum]._y = Y;
_root.explosion.start();
_global.pnum++;
_global.dmghouse(_global.apachedmg);
};
_global.jmissileboom = function (X, Y) {
_root.attachMovie("missileboom", "missileboom" + _global.pnum, _global.pnum + 10000);
_root["missileboom" + _global.pnum]._x = X;
_root["missileboom" + _global.pnum]._y = Y;
_root.explosion.start();
_global.pnum++;
_global.dmghouse(_global.jetdmg);
};
_global.mmissileboom = function (X, Y) {
_root.attachMovie("missileboom", "missileboom" + _global.pnum, _global.pnum + 10000);
_root["missileboom" + _global.pnum]._x = X;
_root["missileboom" + _global.pnum]._y = Y;
_root.explosion.start();
_global.pnum++;
_global.dmghouse(_global.mechmissiledmg);
};
_global.fatassmissileboom = function (X, Y) {
_root.mushroom.gotoAndPlay(2);
_root.mushroomsound.start();
_global.pnum++;
_global.dmghouse(_global.planedmg);
_global.shakin = 1;
_global.shake = 10;
};
_global.truckboom = function (X, Y, dmg, rad) {
hit = 0;
j = 0;
while (j < (_global.enemynum - 3)) {
type = _global["enemy" + j];
i = 0;
while (i < _global[type + "num"]) {
dist = Math.sqrt(Math.pow((X - _root[type + i]._x) * 0.5, 2) + Math.pow(Y - _root[type + i]._y, 2));
if ((dist < rad) and (_root[type + i].action != "dead")) {
damage = (rad / dist) * dmg;
_global.enemyboomhit(i, damage, type, X, Y);
}
i++;
}
j++;
}
_root.mushroomsound.start();
};
_global.addgunman = function () {
_global.gunmen++;
_root.infobox.gunmen = _global.gunmen;
_global.gunmancost = _global.gunmancost + _global.gunmancostinc;
};
_global.addrepairman = function () {
_global.repairmen++;
_root.infobox.repairmen = _global.repairmen;
_global.repairmancost = _global.repairmancost + _global.repairmancostinc;
};
_global.buttoncheck = function () {
i = 1;
while (i < 13) {
if (_global.gunset == true) {
if (_global["have" + _root.buyscreen["button" + i].weapon] == true) {
_root.buyscreen["button" + i]._alpha = 100;
} else {
_root.buyscreen["button" + i]._alpha = 40;
}
} else if ((_global.money >= _global[("twr" + _root.buyscreen["button" + i].tower) + "cost"]) and (_root.buyscreen["button" + i].tower != "blank")) {
_root.buyscreen["button" + i]._alpha = 100;
} else {
_root.buyscreen["button" + i]._alpha = 40;
}
i++;
}
};
_global.spawnbomber = function () {
_root.attachMovie("bomber", "bomber", _global.guydepthnum);
_root.bomber._x = -200;
_root.bomber._y = 100;
_root.bomber.rot = 0.2;
_global.guydepthnum++;
};
_global.swordreset = function (named) {
_root[named]._rotation = 0;
if (_global.moonraker == true) {
_root[named]._xscale = -100;
} else {
_root[named]._xscale = 100;
}
_root[named]._yscale = 100;
_root[named]._x = random(600) - 650;
_root[named]._y = (Math.random() * 116) + 240;
if (_root._currentframe != 3) {
_root[named].swapDepths(Math.round(_root[named]._y * 10));
}
_root[named].man.gotoAndPlay(random(18) + 1);
_root[named].maxspeed = (Math.random() * 0.5) + 1.3;
if (_global.gametype == 5) {
_root[named]._x = -50;
_root[named].maxspeed = 2;
_root[named]._y = 375 - (_root.M[_root[named].note + "code"] * 7.5);
}
_root[named].Tx = (450 + ((_root[named]._y - 240) * 0.5)) - wallbuff;
if (_global.gametype == 3) {
if (_global.spartannum > 299) {
_root[named].removeMovieClip();
} else {
_global.spartannum++;
}
_root[named].minspeed = 0.8;
_root[named].health = _global.spartanmaxhealth;
} else {
_root[named].minspeed = 0.4;
_root[named].health = _global.swordmaxhealth;
}
if (_global.gametype == 4) {
_root[named].maxspeed = (Math.random() * 0.4) + 0.6;
c = new Color(_root[named].man);
c.setTint(0, 100, 0, random(30) + 10);
}
_root[named].speed = _root[named].maxspeed;
_root[named].action = "walk";
_root[named].sat = false;
};
_global.gunnerreset = function (named) {
_root[named]._rotation = 0;
_root[named]._xscale = 100;
_root[named]._yscale = 100;
_root[named]._x = random(600) - 650;
_root[named]._y = (Math.random() * _root.wall.wallheight) + _root.wall._y;
_root[named].swapDepths(Math.round(_root[named]._y * 10));
if (_global.gametype == 2) {
_root[named].wallbuff = 10;
} else {
_root[named].wallbuff = random(50) + 40;
}
_root[named].Tx = (_root.wall._x + ((_root[named]._y - _root.wall._y) * 0.5)) - _root[named].wallbuff;
_root[named].man.gotoAndPlay(random(12) + 1);
_root[named].maxspeed = (Math.random() * 0.5) + 1.6;
_root[named].minspeed = 0.4;
_root[named].speed = _root[named].maxspeed;
_root[named].action = "walk";
_root[named].health = _global.gunnermaxhealth;
_root[named].sat = false;
};
_global.jeepreset = function (named) {
_root[named]._rotation = 0;
_root[named]._xscale = 100;
_root[named]._yscale = 100;
_root[named]._x = random(1200) - 1700;
_root[named]._y = (Math.random() * _root.wall.wallheight) + _root.wall._y;
_root[named].swapDepths(Math.round(_root[named]._y * 10));
_root[named].wallbuff = random(100) + 270;
_root[named].Tx = (_root.wall._x + ((_root[named]._y - _root.wall._y) * 0.5)) - _root[named].wallbuff;
_root[named].man.gotoAndStop(1);
_root[named].maxspeed = (Math.random() * 2) + 4.6;
_root[named].minspeed = 1;
_root[named].speed = _root[named].maxspeed * 1.5;
_root[named].action = "walk";
_root[named].health = _global.jeepmaxhealth;
_root[named].sat = false;
_root[named].sounded = false;
if (_global.gametype == 7) {
_root[named].Tx = 800;
_root[named]._y = (Math.random() * 120) + 240;
_root[named]._x = random(700) - 750;
_root[named].dir = random(2);
if (_root[named].dir == 1) {
_root[named].speed = -_root[named].speed;
_root[named].Tx = -100;
_root[named]._x = random(700) + 1400;
_root[named]._xscale = -100;
}
if (_root[named].badguy == true) {
c = new Color(_root[named]);
c.setTint(200, 0, 0, 25);
}
}
};
_global.termreset = function (named) {
_root[named]._rotation = 0;
_root[named]._xscale = 100;
_root[named]._yscale = 100;
_root[named]._x = random(300) - 350;
_root[named]._y = (Math.random() * _root.wall.wallheight) + _root.wall._y;
_root[named].swapDepths(Math.round(_root[named]._y * 10));
if (_global.gametype == 2) {
_root[named].wallbuff = 10;
} else {
_root[named].wallbuff = 50;
}
_root[named].Tx = (_root.wall._x + ((_root[named]._y - _root.wall._y) * 0.5)) - _root[named].wallbuff;
_root[named].man.gotoAndPlay(random(40) + 1);
_root[named].maxspeed = (Math.random() * 0.1) + 0.9;
_root[named].minspeed = 0.5;
_root[named].speed = _root[named].maxspeed;
_root[named].action = "walk";
_root[named].health = _global.termmaxhealth;
_root[named].sat = false;
};
_global.tankreset = function (named) {
_root[named]._rotation = 0;
_root[named]._xscale = 100;
_root[named]._yscale = 100;
_root[named]._x = random(400) - 600;
_root[named]._y = (Math.random() * _root.wall.wallheight) + _root.wall._y;
_root[named].swapDepths(Math.round((_root[named]._y + 3) * 10));
_root[named].wallbuff = random(100) + 350;
_root[named].Tx = (_root.wall._x + ((_root[named]._y - _root.wall._y) * 0.5)) - _root[named].wallbuff;
_root[named].man.gotoAndPlay(1);
_root[named].maxspeed = 2;
_root[named].minspeed = 0.5;
_root[named].speed = _root[named].maxspeed;
_root[named].action = "walk";
_root[named].health = _global.tankmaxhealth;
_root[named].sat = false;
};
_global.truckreset = function (named) {
_root[named]._x = -500;
_root[named]._y = (Math.random() * _root.wall.wallheight) + _root.wall._y;
_root[named].swapDepths(Math.round((_root[named]._y + 13) * 10));
_root[named].wallbuff = 70;
_root[named].wait = 0;
_root[named].going = false;
_root[named].Tx = (_root.wall._x + ((_root[named]._y - _root.wall._y) * 0.5)) - _root[named].wallbuff;
_root[named].man.gotoAndStop(1);
_root[named].maxspeed = 12;
_root[named].minspeed = 0.5;
_root[named].speed = _root[named].maxspeed;
_root[named].health = _global.truckmaxhealth;
_root[named].action = "walk";
_root[named].sat = false;
};
_global.jetreset = function (named) {
_root[named]._x = random(2000) - 2300;
_root[named]._y = (Math.random() * 100) + 150;
_root[named].swapDepths(Math.round((_root[named]._y + 120) * 10));
_root[named].Tx = (Math.random() * 120) + 140;
_root[named].man.gotoAndPlay(random(45));
_root[named].maxspeed = 3;
_root[named].minspeed = 0.5;
_root[named]._rotation = 0;
_root[named].yspeed = 0;
_root[named].xspeed = 0;
_root[named].amax = 40;
_root[named].speed = _root[named].maxspeed;
_root[named].hspeed = (Math.random() * 0.05) + 0.05;
_root[named].hnum = (Math.random() * Math.PI) * 2;
_root[named].hamt = (Math.random() * 0.3) + 0.05;
_root[named].action = "walk";
_root[named].man.shadow._alpha = 10;
_root[named].health = _global.jetmaxhealth;
_root[named].sat = false;
};
_global.apachereset = function (named) {
_root[named]._x = random(900) - 1200;
_root[named]._y = (Math.random() * 60) + 90;
_root[named].swapDepths(Math.round((_root[named]._y + 3) * 10));
_root[named].Tx = (Math.random() * 140) + 40;
_root[named].man.gotoAndPlay(1);
_root[named].maxspeed = 5;
_root[named].minspeed = 0.5;
_root[named].amax = 80;
_root[named].speed = _root[named].maxspeed;
_root[named].hspeed = (Math.random() * 0.01) + 0.01;
_root[named].hnum = (Math.random() * Math.PI) * 2;
_root[named].hamt = (Math.random() * 0.2) + 0.01;
_root[named].action = "walk";
_root[named].health = _global.apachemaxhealth;
_root[named].sat = false;
};
_global.mechreset = function (named) {
_root[named]._rotation = 0;
_root[named]._xscale = 100;
_root[named]._yscale = 100;
_root[named]._x = -100 - random(300);
_root[named]._y = ((Math.random() * _root.wall.wallheight) + _root.wall._y) - 30;
_root[named].swapDepths(Math.round((_root[named]._y + 50) * 10));
_root[named].man.gotoAndPlay(random(80) + 2);
_root[named].fadenum = 0;
_root[named].fadespeed = 2;
_root[named]._alpha = 100;
_root[named].fadewait = 100;
_root[named].action = "walk";
_root[named].health = _global.mechmaxhealth;
_root[named].sat = false;
};
_global.highX = 0;
_global.CF = function () {
highX = 0;
highI = 0;
j = 0;
while (j < (_global.enemynum - 3)) {
itype = _global["enemy" + j];
i = 0;
while (i < _global[itype + "num"]) {
X = _root[itype + i]._x + ((_root.wall._y - _root[itype + i]._y) * 0.5);
if (((X > _global.highX) and (_root[itype + i].action != "dead")) and (_global.health > 0)) {
highI = i;
_global.highX = X;
_root.flagred._x = _root[itype + i]._x + 2;
_root.flagred._y = _root[itype + i]._y + 12;
if (_root[itype + i].action == "attack") {
_global.youwin();
_global.score = (_global.zminutes * 60) + _global.zseconds;
_global.scoretype = "seconds";
}
}
i++;
}
j++;
}
};
var mouseListener = new Object();
mouseListener.onMouseWheel = function (delta) {
if ((_global.gun2 != "blank") and (_global.daygo == true)) {
_global.gunswitch();
}
};
Mouse.addListener(mouseListener);
wallbuff = 20;
_root.wall.stop();
_global.setguys();
_global.swordnum = 10;
_global.guydepthnum = 0;
_root.bkg.sun._alpha = 0;
var birds = new Sound(this);
birds.attachSound("birds");
_global.sword2reset = function (named) {
_root.swordshit[named]._rotation = 0;
if (_global.moonraker == true) {
_root.swordshit[named]._xscale = -100;
} else {
_root.swordshit[named]._xscale = 100;
}
_root.swordshit[named]._yscale = 100;
_root.swordshit[named]._x = random(600) - 650;
_root.swordshit[named]._y = (Math.random() * 116) + 240;
_root.swordshit[named].man.gotoAndPlay(random(18) + 1);
_root.swordshit[named].maxspeed = (Math.random() * 0.5) + 1.3;
_root.swordshit[named].Tx = (450 + ((_root.swordshit[named]._y - 240) * 0.5)) - 15;
_root.swordshit[named].minspeed = 0.4;
_root.swordshit[named].health = _global.swordmaxhealth;
_root.swordshit[named].speed = _root.swordshit[named].maxspeed;
_root.swordshit[named].action = "walk";
_root.swordshit[named].sat = false;
};
_root.startguys = function () {
birds.start();
birds.onSoundComplete = function () {
birds.start();
};
swordhitx = 10;
swordhity = 18;
type = "sword";
_root.createEmptyMovieClip("swordshit", -16270);
i = 0;
while (i < _global[type + "num"]) {
_root.swordshit.attachMovie(type, type + i, _root.swordshit.getNextHighestDepth());
_global.sword2reset(type + i);
i++;
}
ga = 0;
};
_root.startguys();
this.onEnterFrame = function () {
i = 0;
while (i < _global.swordnum) {
s = "sword" + i;
if (_root.swordshit[s].action == "walk") {
if (_root.swordshit[s]._x > _root.swordshit[s].Tx) {
_root.swordshit[s].action = "attack";
_root.swordshit[s].man.gotoAndPlay("attack");
}
_root.swordshit[s]._x = _root.swordshit[s]._x + _root.swordshit[s].speed;
}
if (_root.swordshit[s].health < 0) {
_root.swordshit[s].onfire = false;
}
i++;
}
_global.health = _global.maxhealth;
ga++;
if (ga > 50) {
highX = -30;
highI = 0;
j = 0;
while (j < (_global.enemynum - 3)) {
itype = _global["enemy" + j];
i = 0;
while (i < _global[itype + "num"]) {
X = _root.swordshit[itype + i]._x + ((_root.wall2._y - _root.swordshit[itype + i]._y) * 0.5);
if ((X > highX) and (_root.swordshit[itype + i].action != "dead")) {
highI = i;
highX = X;
type = itype;
}
i++;
}
j++;
}
if ((_root.swordshit[type + highI]._x > 5) and (_root.swordshit[type + highI].health > 0)) {
_root.gunsound.start();
_root.house["flash" + random(3)].gotoAndPlay("shoot");
i = highI;
_root.swordshit[type + i].health = _root.swordshit[type + i].health - _global.gunmandmg;
if (_root.swordshit[type + i].health <= 0) {
if (_root.swordshit[type + i].action == "walk") {
_root.swordshit[type + i].man.gotoAndPlay("deadrun");
} else {
_root.swordshit[type + i].man.gotoAndPlay("dead");
}
_root.swordshit[type + i].action = "dead";
}
}
ga = 0;
}
};
Mouse.show();
stop();
Instance of Symbol 1232 MovieClip "wall2" in Frame 3
onClipEvent (load) {
this.wallheight = 116;
}
Instance of Symbol 1374 MovieClip "helpbox" in Frame 3
onClipEvent (load) {
Ty = -170;
}
onClipEvent (enterFrame) {
this._y = this._y + ((Ty - this._y) * 0.5);
}
Instance of Symbol 1477 MovieClip "mainmenu" in Frame 3
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + ((100 - this._alpha) * 0.1);
}
}
Frame 4
this.fade.daytext = "DAY " + _global.day;
counta = 0;
wait = 70;
_global.ammo = _global[_global.gun + "maxammo"];
_global.giveammo(_global[_global.gun + "maxammo"]);
_root.birds.stop();
if (_global.godwall == true) {
_global.walllvl = 6;
}
_root.infobox.daynum = "Day " + _global.day;
_root.infobox.gunmen = _global.gunmen;
_root.infobox.repairmen = _global.repairmen;
_root.healthbar.bar._xscale = (_global.health / _global.maxhealth) * 100;
_root.healthbar.numbers.numbers = (Math.round(_global.health) + "/") + _global.maxhealth;
_global.sunpos = _global.sunstart;
_root.bkg.sun._x = Math.sin(sunpos) * 300;
_root.bkg.sun._y = 100 + (Math.cos(sunpos) * 300);
_root.bkg.sun._alpha = 100;
_root.wall.gotoAndStop(_global.walllvl);
_global.skypos();
_global.findshield();
_root.Mtimer = 0;
var snare = new Sound();
snare.attachSound("snare");
snare.start();
_global.givemoney(0);
_global.dmgtaken = 0;
_global.totalmoney = 0;
_global.repairamt = 0;
_global.gunmendmgamt = 0;
if (_global.gametype == 2) {
_root.infobox.daynum = "Flag";
this.fade.daytext = "DEFEND!";
_root.ground.gotoAndStop(2);
}
if (_global.gametype == 3) {
_root.infobox.daynum = "Sparta";
this.fade.daytext = "KILL 300";
}
if (_global.gametype == 4) {
_root.infobox.daynum = "Zombies";
this.fade.daytext = "LAST FOR 3:00";
_root.zombiescene.gotoAndStop(2);
i = 0;
while (i < _global.twrslots) {
_root["twrslot" + i].gotoAndStop("zombie");
i++;
}
_root.money._alpha = 0;
}
if (_global.gametype == 5) {
_root.infobox.daynum = "Music";
this.fade.daytext = "ENTERTAIN!";
_root.ground.gotoAndStop("music");
_root.ammobar._alpha = 0;
_root.money._alpha = 0;
_global.musicshots = 0;
_global.musichits = 0;
}
if ((_global.gametype == 6) and (_global.startat == false)) {
_root.infobox.daynum = "Sandbox";
this.fade.daytext = "SANDBOX";
}
if (_global.gametype == 7) {
_root.infobox.daynum = "JeepPunch";
this.fade.daytext = "GET 'EM FISTY";
_root.ammobar._alpha = 0;
_root.money._x = 9999;
_root.infobox._x = 9999;
_root.healthbar._alpha = 0;
_root.house._alpha = 0;
i = 0;
while (i < (_global.twrslots + 1)) {
_root["twrslot" + i]._x = 9999;
i++;
}
_root.wall._x = 9999;
}
_root.ammobar.bar._xscale = (_global.ammo / _global[_global.gun + "maxammo"]) * 100;
_root.ammobar.numbers.numbers = (_global.ammo + "/") + _global[_global.gun + "maxammo"];
_root.money.numbers = "$" + _global.money;
_global.gunmanint = _global.gunmanbaseint;
i = 1;
while (i < _global.gunmen) {
_global.gunmanint = _global.gunmanint * _global.gunmaninc;
i++;
}
_global.repairmanint = _global.repairmanbaseint;
i = 1;
while (i < _global.repairmen) {
_global.repairmanint = (_global.repairmanint * _global.repairmaninc) + _global.repairmanbuff;
i++;
}
this.onEnterFrame = function () {
counta++;
if (counta > wait) {
_root.gotoAndStop("fight");
}
};
_root.attachMovie("redicle", "redicle", 98997654);
if (_global.gun == "chainsaw") {
_root.redicle.gotoAndStop(2);
}
stop();
Instance of Symbol 1223 MovieClip "house" in Frame 4
onClipEvent (load) {
global_sound = new Sound();
}
onClipEvent (keyDown) {
trace(Key.getCode());
if (_global.daygo == true) {
if ((_global.reloading == false) and (_global["ammo" + _global.gunout] < _global[_global.gun + "maxammo"])) {
if (Key.isDown(32)) {
_global.reload();
}
}
if ((Key.getCode() == 90) and (_global.gun2 != "blank")) {
_global.gunswitch();
}
}
if (_global.dead == false) {
if ((Key.getCode() == 80) and (_root._currentframe == 5)) {
if (_global.daygo == true) {
_global.pausegame();
} else {
_global.unpausegame();
}
}
if (Key.getCode() == 77) {
if (global_sound.getVolume() < 50) {
global_sound.setVolume(100);
_root.volumebtn.gotoAndStop(1);
} else {
global_sound.setVolume(0);
_root.volumebtn.gotoAndStop(2);
}
}
}
if (((Key.getCode() == 88) and (_global.fisting == false)) and (_global.daygo == true)) {
if ((_global.godfisty == true) or (_global.fisty == true)) {
if (_root._ymouse > 250) {
Y = _root._ymouse;
} else {
Y = 250;
}
_root.attachMovie("fisty", "fisty", _global.pnum + 10000);
_root.fisty._x = _root._xmouse;
_root.fisty._y = Y;
_global.pnum++;
_global.fisting = true;
}
}
}
Instance of Symbol 1232 MovieClip "wall" in Frame 4
onClipEvent (load) {
this.wallheight = 116;
}
Instance of Symbol 1534 MovieClip "infobox" in Frame 4
onClipEvent (load) {
function __f_load(eventObj) {
this.swapDepths(785763);
}
this.addEventListener("load", __f_load);
}
Frame 5
_root.birds.stop();
birds.start();
birds.onSoundComplete = function () {
birds.start();
};
_global.sunspeed = 0.00085 - (_global.day / 150000);
if (_global.sunspeed < 0.0005) {
_global.sunspeed = 0.0005;
}
if (_global.livingdaylights == true) {
_global.sunspeed = _global.sunspeed * 2;
}
if (_global.infiniteday == true) {
_global.sunspeed = 0;
}
_global.daygo = true;
_global.guydepthnum = 2000;
_global.dao12firerate = _global.dao12waitnum - _global.dao12wait;
wallbuff = 20;
skymax = 20;
skynum = 0;
fps = 0;
second = 0;
blitzcount = _global.blitzwait;
_root.gun1.gotoAndStop(_global.gun1);
_root.gun2.gotoAndStop(_global.gun2);
c = new Color(_root.gun2);
c.setTint(255, 255, 255, 100);
c = new Color(_root.bkg.sun);
c.setTint(255, 255, 255, 0);
_root.gun2._alpha = 40;
_global.ammo = _global[_global.gun + "maxammo"];
_global.skypos();
if (_global.gametype == 1) {
_global.setguys();
} else {
_root.truck0.unloadMovie();
}
if (_global.gametype == 2) {
_root.attachMovie("flagblue", "flagblue", 5002);
_root.flagblue._x = 467;
_root.flagblue._y = 266;
_root.attachMovie("flagred", "flagred", 5001);
_root.flagred._x = 80;
_root.flagred._y = 299;
_global.highX = _root.flagred._x - ((_root.flagred._y - _root.wall._y) * 0.5);
}
if (_global.gametype == 3) {
_root.spartatext.removeMovieClip();
_root.attachMovie("spartatext", "spartatext", 5000);
_root.spartatext._x = 435;
_root.spartatext._y = 60;
_root.spartatext.num = "0";
}
if ((_global.gametype == 4) or (_global.gametype == 2)) {
_global.ztimer = 0;
_global.zseconds = 0;
_global.zminutes = 0;
_root.spartatext.removeMovieClip();
_root.attachMovie("spartatext", "spartatext", 5000);
_root.spartatext._x = 445;
_root.spartatext._y = 60;
_root.spartatext.num = "0:00";
}
if (_global.gametype == 5) {
_root.gun1._alpha = 0;
_root.gun2._alpha = 0;
}
if (_global.gametype == 7) {
_root.gotoAndStop("fisty");
}
i = 0;
while (i < _global.twrslots) {
_root["twrslot" + i].tower.sync();
i++;
}
swordhitx = 10;
swordhity = 18;
gunnerhitx = 10;
gunnerhity = 18;
termhitx = 12;
termhity = 24;
jeephitx = 30;
jeephity = 20;
tankhitx = 50;
tankhity = 25;
truckhitx = 75;
truckhity = 25;
jethitx = 12;
jethity = 20;
apachehitx = 32;
apachehity = 20;
mechhitx = 30;
mechhity = 65;
if (_global.gametype != 5) {
j = 0;
while (j < _global.enemynum) {
type = _global["enemy" + j];
i = 0;
while (i < _global[type + "num"]) {
if ((type == "plane") or (type == "truck")) {
} else {
_root.attachMovie(type, type + i, _global.guydepthnum);
_global.guydepthnum++;
}
_global[type + "reset"](type + i);
if (_global.moonraker == true) {
_root[type + i]._xscale = -100;
}
i++;
}
j++;
}
}
_root.onEnterFrame = function () {
if (_global.daygo == true) {
if ((_global.gametype == 4) or (_global.gametype == 2)) {
if (_global.dead == false) {
_global.ztimer++;
if (_global.ztimer > 31) {
_global.ztimer = 0;
_global.zseconds++;
if (_global.zseconds > 59) {
_global.zseconds = 0;
_global.zminutes++;
}
if (_global.zseconds > 9) {
_root.spartatext.num = (_global.zminutes + ":") + _global.zseconds;
} else {
_root.spartatext.num = (_global.zminutes + ":0") + _global.zseconds;
}
}
if ((_global.gametype == 4) and (((_global.zminutes * 60) + _global.zseconds) >= _global.ztarget)) {
c = new Color(_root.spartatext);
c.setTint(0, 100, 200, 100);
}
}
}
if (_global.gametype == 5) {
_root.Mtimer++;
if (M[_root.Mtimer] > 0) {
type = "sword";
i = _global[type + "num"];
_global[type + "num"] = _global[type + "num"] + 1;
_root.attachMovie(type, type + i, _global.guydepthnum);
_root[type + i].note = M[_root.Mtimer];
_global.guydepthnum++;
_global[type + "reset"](type + i);
if (_root.Mtimer == _global.Mlast) {
_global.lastman = type + i;
}
}
}
if (_global.pnum > 1000) {
_global.pnum = 0;
}
if (((_global.gun == "shotgun") or (_global.gun == "dao12")) or (_global.gun == "quaker")) {
if (_global[_global.gun + "waitnum"] < 30) {
_global[_global.gun + "waitnum"]--;
if (_global[_global.gun + "waitnum"] < _global[_global.gun + "wait"]) {
_global[_global.gun + "waitnum"] = 30;
}
}
}
if (_global.reloading == true) {
if ((_global.gun == "shotgun") or (_global.gun == "quaker")) {
_global[_global.gun + "reloadnum"]--;
if (_global[_global.gun + "reloadnum"] < _global[_global.gun + "reload"]) {
_global[_global.gun + "reloadnum"] = 30;
_global.giveammo(_global["ammo" + _global.gunout] + 1);
if (_global["ammo" + _global.gunout] >= _global[_global.gun + "maxammo"]) {
_global.reloading = false;
}
_root.shotgunreload.start();
}
} else {
_global.reloadprog = _global.reloadprog + _global[_global.gun + "reload"];
_root.ammobar.bar._xscale = _global.reloadprog;
if (_global.reloadprog > 100) {
_global.reloading = false;
_global.giveammo(_global[_global.gun + "maxammo"]);
_global["reloadprog" + _global.gunout] = 0;
_global.reloadprog = 0;
if (_global.gun == "minigun") {
_root.minireloadFINISH.start();
} else {
_root.reloadFINISH.start();
}
}
}
} else {
if (_global.gun == "minigun") {
if (_global.mininum > 0) {
_global.mininum++;
if (_global.mininum > _global.miniwait) {
_global.autofiring = true;
}
}
}
if (((_global.gun == "chainsaw") and (_global["ammo" + _global.gunout] < _global[_global["gun" + _global.gunout] + "maxammo"])) and (_global.autofiring == false)) {
_global.chainsawreloadnum--;
if (_global.chainsawreloadnum < _global.chainsawreloadto) {
_global.giveammo(_global["ammo" + _global.gunout] + 1);
_global.chainsawreloadnum = 10;
}
}
if (_global.autofiring == true) {
_global.autonum++;
if (_global.autonum > _global[_global.gun + "firerate"]) {
_global.fire();
if (_global.gun == "minigun") {
_global.fire();
}
_global.autonum = 0;
}
}
}
if ((_global.blitz == false) and (_global.gametype != 5)) {
if (_global.dead == false) {
_global.sunpos = _global.sunpos + _global.sunspeed;
skynum++;
if (skynum > skymax) {
skynum = 0;
_global.skypos();
}
if (_global.sunpos > _global.sunend) {
_global.dayover();
}
}
_root.bkg.sun._x = Math.sin(sunpos) * 300;
_root.bkg.sun._y = 100 + (Math.cos(sunpos) * 300);
} else {
blitzcount++;
if (blitzcount > _global.blitzwait) {
type = _global.blitztype;
i = _global[type + "num"];
_global[type + "num"] = _global[type + "num"] + 1;
_root.attachMovie(type, type + i, _global.guydepthnum);
_global.guydepthnum++;
_global[type + "reset"](type + i);
blitzcount = 0;
}
}
i = 0;
while (i < _global.swordnum) {
s = "sword" + i;
if (_root[s].sat == true) {
_global.dosat(s, "sword");
} else {
if (_root[s].action == "walk") {
if (_root[s]._x > _root[s].Tx) {
if (_global.gametype == 5) {
removeMovieClip(_root[s]);
_global.musicshots++;
_root.fuckup();
if ((s == _global.lastman) and (_global.dead == false)) {
_global.youwin();
_global.score = Math.floor((_global.musichits / _global.musicshots) * 100) + "%";
_global.scoretype = "Hit Percentage";
}
} else {
_root[s].action = "attack";
_root[s].man.gotoAndPlay("attack");
}
}
_root[s]._x = _root[s]._x + _root[s].speed;
}
if ((_root[s].onfire == true) and (_root[s].health > 0)) {
_global.enemyhit(i, _root[s].flamedmg, "sword");
}
if (_root[s].health < 0) {
_root[s].onfire = false;
}
}
i++;
}
i = 0;
while (i < _global.gunnernum) {
g = "gunner" + i;
if (_root[g].sat == true) {
_global.dosat(g, "gunner");
} else {
if (_root[g].action == "walk") {
if (_root[g]._x > _root[g].Tx) {
_root[g].action = "attack";
_root[g].man.gotoAndPlay("attack");
}
_root[g]._x = _root[g]._x + _root[g].speed;
}
if (_root[g].onfire == true) {
_global.enemyhit(i, _root[g].flamedmg, "gunner");
if (_root[g].health < 0) {
_root[g].onfire = false;
}
}
}
i++;
}
i = 0;
while (i < _global.termnum) {
t = "term" + i;
if (_root[t].sat == true) {
_global.dosat(t, "term");
} else {
if (_root[t].action == "walk") {
if (_global.gametype == 2) {
if (_global.zminutes > 0) {
if (_root[t]._x > _root[t].Tx) {
_root[t].action = "attack";
_root[t].man.gotoAndPlay("attack");
}
_root[t]._x = _root[t]._x + _root["term" + i].speed;
}
} else {
if (_root[t]._x > _root[t].Tx) {
_root[t].action = "attack";
_root[t].man.gotoAndPlay("attack");
}
_root[t]._x = _root[t]._x + _root["term" + i].speed;
}
}
if (_root[t].onfire == true) {
_global.enemyhit(i, _root[t].flamedmg, "term");
if (_root[t].health < 0) {
_root[t].onfire = false;
}
}
}
i++;
}
i = 0;
while (i < _global.jeepnum) {
j = "jeep" + i;
if (_root[j].sat == true) {
_global.dosat(j, "jeep");
} else {
if (_root[j].action == "walk") {
if (_root[j]._x > _root[j].Tx) {
_root[j].speed = _root[j].speed * 0.9;
if ((_root[j].speed < 0.1) and (_root[j].man._currentframe < 55)) {
_root[j].speed = 0;
_root[j].action = "attack";
_root[j].man.gotoAndPlay("attack");
}
}
if ((_root[j]._x > -250) and (_root[j].sounded == false)) {
_root[j].sounded = true;
_root.jeepgo.start();
}
_root[j]._x = _root[j]._x + _root[j].speed;
}
if (_root[j].onfire == true) {
_global.enemyhit(i, _root[j].flamedmg * 2, "jeep");
if (_root[j].health < 0) {
_root[j].onfire = false;
}
}
}
i++;
}
i = 0;
while (i < _global.tanknum) {
t = "tank" + i;
if (_root[t].sat == true) {
_global.dosat(t, "tank");
} else if (_root[t].action == "walk") {
if (_root[t]._x > _root[t].Tx) {
_root[t].speed = _root[t].speed * 0.9;
if (_root[t].speed < 0.2) {
_root[t].speed = 0;
_root[t].action = "attack";
}
_root[t].man.gotoAndPlay("attack");
}
_root[t]._x = _root[t]._x + _root[t].speed;
}
i++;
}
_root.truck0.wait++;
if (_root.truck0.wait > _global.truckfreq) {
_root.truck0.going = true;
_root.truck0.wait = 0;
}
if (_root.truck0.going == true) {
t = "truck0";
if (_root[t].sat == true) {
_global.enemyhit(0, 999, "truck");
}
if (_root[t].action == "walk") {
if (_root[t]._x > _root[t].Tx) {
_root[t].speed = 0;
_root[t].action = "attack";
_root[t].man.gotoAndPlay("attack");
}
_root[t]._x = _root[t]._x + _root[t].speed;
}
if (_root[t].onfire == true) {
_global.enemyhit(i, _root[t].flamedmg, "truck");
if (_root[t].health < 0) {
_root[t].onfire = false;
}
}
}
i = 0;
while (i < _global.jetnum) {
t = "jet" + i;
if (_root[t].action == "walk") {
if (_root[t]._x > _root[t].Tx) {
_root[t].speed = _root[t].speed * 0.96;
if ((_root[t].speed < 0.1) and (_root[t].man._currentframe == 1)) {
_root[t].speed = 0;
_root[t].action = "attack";
_root[t].anum = 70;
}
}
_root[t]._x = _root[t]._x + _root[t].speed;
}
_root[t].hnum = _root[t].hnum + _root[t].hspeed;
_root[t]._x = _root[t]._x + (Math.sin(_root[t].hnum) * _root[t].hamt);
_root[t]._y = _root[t]._y + (Math.cos(_root[t].hnum) * _root[t].hamt);
_root[t]._y = _root[t]._y + _root[t].yspeed;
_root[t]._x = _root[t]._x + _root[t].xspeed;
if (_root[t].action == "attack") {
_root[t].anum++;
if (_root[t].anum > _root[t].amax) {
_root[t].anum = 0;
_root.attachMovie("jmissile", ("jmissile" + _global.pnum) + 10000, _global.pnum + 10000);
_root[("jmissile" + _global.pnum) + 10000]._x = _root[t]._x;
_root[("jmissile" + _global.pnum) + 10000]._y = _root[t]._y + 6;
_root[("jmissile" + _global.pnum) + 10000].rad = rad;
_root[("jmissile" + _global.pnum) + 10000].dmg = dmg;
_global.pnum++;
firenum = 0;
}
}
if (_root[t].action == "dead") {
if (_root[t].xspeed == 0) {
_root[t].xspeed = Math.random() - 0.5;
}
_root[t].xspeed = _root[t].xspeed * 1.08;
_root[t]._rotation = _root[t].xspeed * 3;
_root[t].man.shadow._alpha = 0;
_root[t].yspeed = _root[t].yspeed - 0.3;
if (_root[t]._y < -50) {
_global.jetreset(t);
}
}
if (_root[t].onfire == true) {
_global.enemyhit(i, _global.flamerdmg, "jet");
if (_root[t].health < 0) {
_root[t].onfire = false;
}
}
i++;
}
i = 0;
while (i < _global.apachenum) {
t = "apache" + i;
if (_root[t].action == "walk") {
if (_root[t]._x > _root[t].Tx) {
_root[t].speed = _root[t].speed * 0.96;
if ((_root[t].speed < 0.1) and (_root[t].man._currentframe == 1)) {
_root[t].speed = 0;
_root[t].action = "attack";
_root[t].anum = 70;
}
}
_root[t]._rotation = _root[t]._rotation + (((_root[t].speed * 3) - _root[t]._rotation) * 0.1);
_root[t]._x = _root[t]._x + _root[t].speed;
}
_root[t].hnum = _root[t].hnum + _root[t].hspeed;
_root[t]._x = _root[t]._x + (Math.sin(_root[t].hnum) * _root[t].hamt);
_root[t]._y = _root[t]._y + (Math.cos(_root[t].hnum) * _root[t].hamt);
if (_root[t].action == "attack") {
_root[t].anum++;
if (_root[t].anum > _root[t].amax) {
_root[t].anum = 0;
_root.attachMovie("amissile", ("amissile" + _global.pnum) + 10000, _global.pnum + 10000);
_root[("amissile" + _global.pnum) + 10000]._x = _root[t]._x;
_root[("amissile" + _global.pnum) + 10000]._y = _root[t]._y + 6;
_root[("amissile" + _global.pnum) + 10000].rad = rad;
_root[("amissile" + _global.pnum) + 10000].dmg = dmg;
_global.pnum++;
firenum = 0;
}
}
if (_root[i].onfire == true) {
_global.enemyhit(i, _global.flamerdmg, "apache");
if (_root[i].health < 0) {
_root[i].onfire = false;
}
}
i++;
}
i = 0;
while (i < _global.mechnum) {
t = "mech" + i;
if (_root[t].sat == true) {
_global.dosat(t, "mech");
} else {
if (_root[t].action == "walk") {
_root[t]._x = _root[t]._x + _root[t].man.speed;
_root[t].man.speed = _root[t].man.speed + _root[t].man.inc;
if (_root[t].man.speed > _root[t].man.speedmax) {
_root[t].man.speed = _root[t].man.speedmax;
}
if (((_root[t]._x - ((_root[t]._y - _root.wall._y) * 0.5)) < _root[t].man.mstop) and ((_root[t]._x - ((_root[t]._y - _root.wall._y) * 0.5)) > _root[t].man.mstart)) {
_root[t].man.mnum++;
if (_root[t].man.mnum == _root[t].man.mmax1) {
_root[t].man.firemissile();
}
if (_root[t].man.mnum == _root[t].man.mmax2) {
_root[t].man.firemissile();
}
if (_root[t].man.mnum == _root[t].man.mmax3) {
_root[t].man.firemissile();
_root[t].man.mnum = 0;
}
}
if ((_root[t]._x - ((_root[t]._y - _root.wall._y) * 0.5)) > _root[t].man.wallbuff) {
_root[t].man.gotoAndStop("idle");
_root[t].action = "attack";
}
}
if (_root[t].action == "dead") {
j = 0;
while (j < 5) {
_root[t].man["p" + j]._x = _root[t].man["p" + j]._x + _root[t].man["p" + j].xspeed;
_root[t].man["p" + j]._y = _root[t].man["p" + j]._y + _root[t].man["p" + j].yspeed;
_root[t].man["p" + j]._rotation = _root[t].man["p" + j]._rotation + (_root[t].man["p" + j].xspeed * 2);
_root[t].man["p" + j].xspeed = _root[t].man["p" + j].xspeed * _root[t].man.Pdecel;
_root[t].man["p" + j].yspeed = _root[t].man["p" + j].yspeed + _root[t].man.Pgrav;
if (_root[t].man["p" + j]._y > _root[t].man.Pground) {
_root[t].man["p" + j]._y = _root[t].man.Pground;
_root[t].man["p" + j].xspeed = 0;
}
j++;
}
_root[t].fadenum++;
if (_root[t].fadenum > _root[t].fadewait) {
_root[t]._alpha = _root[t]._alpha - _root[t].fadespeed;
if (_root[t]._alpha < _root[t].fadespeed) {
_global.mechreset(t);
}
}
} else if (_root[t]._x > 200) {
_root[t].man.gunnum++;
if (_root[t].man.gunnum > _root[t].man.gunwait) {
_root[t].man.body.gun.play();
}
}
}
i++;
}
if (_global.gunmen > 0) {
if (_global.gunmanfirenum > _global.gunmanint) {
_global.gunmanfire();
_global.gunmanfirenum = 0;
}
_global.gunmanfirenum++;
}
if (_global.repairmen > 0) {
_global.repairmanfixnum++;
if (_global.repairmanfirenum > _global.repairmanint) {
if (_global.health < _global.maxhealth) {
_global.repairamt = _global.repairamt + 1;
_global.dmghouse(-1);
}
_global.repairmanfirenum = 0;
}
_global.repairmanfirenum++;
}
if (_global.gametype == 2) {
_global.CF();
}
if ((_global.shakin == true) and (_global.effects == true)) {
_root._x = random(shake) - (shake / 2);
_root._y = random(shake) - (shake / 2);
_global.shake = _global.shake - 0.5;
if (_global.shake < 1) {
_root._x = 0;
_root._y = 0;
_global.shake = 0;
_global.shakin = false;
}
} else {
_root._x = 0;
_root._y = 0;
}
if (_global.gametype == 3) {
if ((_global.spartanskilled > 299) and (_global.dead == false)) {
_global.spartanskilled = 300;
_global.spartatext.num = 300;
_root.kongregateScores.setMode(_global.gametypelabel + _global.diff);
_root.kongregateScores.submit(1);
_global.score = "";
_global.scoretype = "";
_global.youwin();
}
}
}
fps++;
if (new Date().getSeconds() != second) {
second = new Date().getSeconds();
_root.Fps = fps;
fps = 0;
}
};
_root.onMouseDown = function () {
if (_global.daygo == true) {
if (_global["ammo" + _global.gunout] > 0) {
if ((_global.gun == "shotgun") or (_global.gun == "quaker")) {
_global.reloading = false;
}
if (_global.reloading == false) {
if ((((((_global.gun == "shotgun") or (_global.gun == "minigun")) or (_global.gun == "dao12")) or (_global.gun == "gren")) or (_global.gun == "quaker")) or (_global.gun == "sat")) {
if (_global.gun == "shotgun") {
if (_global[_global.gun + "waitnum"] == 30) {
_global.reloading = false;
_global[_global.gun + "reloadnum"] = _global[_global.gun + "reloadbuff"];
_global.fire();
if (_global[_global.gun + "auto"] == true) {
_global.autofiring = true;
}
_global[_global.gun + "waitnum"] = 29;
}
}
if (_global.gun == "dao12") {
if ((_global[_global.gun + "waitnum"] == 30) and (_global.reloading == false)) {
_global.fire();
if (_global[_global.gun + "auto"] == true) {
_global.autofiring = true;
}
_global[_global.gun + "waitnum"] = 29;
}
}
if (_global.gun == "minigun") {
_global.mininum = 1;
_root.ministart.start();
}
if (_global.gun == "gren") {
_global.firegrenade();
}
if (_global.gun == "sat") {
_global.firesat();
}
if (_global.gun == "quaker") {
if (_global[_global.gun + "waitnum"] == 30) {
_global.reloading = false;
_global[_global.gun + "reloadnum"] = _global[_global.gun + "reloadbuff"];
_global.quakerfire();
if (_global[_global.gun + "auto"] == true) {
_global.autofiring = true;
}
_global[_global.gun + "waitnum"] = 29;
}
}
} else if (_global.reloading == false) {
_global.fire();
_root.redicle.Trot = -26;
if (_global[_global.gun + "auto"] == true) {
_global.autofiring = true;
}
if (_global.gun == "chainsaw") {
_root.chainsawStart.start();
}
}
}
Mouse.hide();
}
}
};
_root.onMouseUp = function () {
if (_global.autofiring == true) {
if (_global.gun == "chainsaw") {
_root.chainsawGo.stop();
_root.chainsawFinish.start();
}
}
_global.autofiring = false;
_global.mininum = 0;
_root.redicle.Trot = 0;
};
stop();
Instance of Symbol 1576 MovieClip "gun1" in Frame 5
onClipEvent (enterFrame) {
if (_global.gunout == 1) {
T = 40;
} else {
T = 63;
}
this._y = this._y + ((T - this._y) * 0.6);
}
Instance of Symbol 1576 MovieClip "gun2" in Frame 5
onClipEvent (enterFrame) {
if (_global.gunout == 2) {
T = 40;
} else {
T = 63;
}
this._y = this._y + ((T - this._y) * 0.6);
}
Instance of Symbol 1586 MovieClip "volumebtn" in Frame 5
onClipEvent (load) {
if (_global.mute == true) {
this.gotoAndStop(2);
}
}
Frame 6
birds.stop();
snare.stop();
_global.covered = true;
this.weapon1 = "pistol";
this.weapon2 = "uzi";
this.weapon3 = "shotgun";
this.weapon4 = "scar";
this.weapon5 = "dao12";
this.weapon6 = "flamer";
this.weapon7 = "para";
this.weapon8 = "chainsaw";
this.weapon9 = "gren";
this.weapon10 = "sat";
this.weapon11 = "quaker";
this.weapon12 = "minigun";
this.tower1 = "fan";
this.tower2 = "quake";
this.tower3 = "tesla";
this.tower4 = "missile";
this.tower5 = "laser";
this.tower6 = "flamefag";
this.tower7 = "shield";
this.tower8 = "blank";
this.tower9 = "blank";
this.tower10 = "blank";
this.tower11 = "blank";
this.tower12 = "blank";
sizeX = 25;
sizeY = 18.5;
_root.infobox.gunmen = _global.gunmen;
_root.infobox.repairmen = _global.repairmen;
_global.findshield();
_root.healthbar.bar._xscale = (_global.health / _global.maxhealth) * 100;
_root.healthbar.numbers.numbers = (Math.round(_global.health) + "/") + _global.maxhealth;
_global.ammo = _global[_global.gun + "maxammo"];
_global.giveammo(_global[_global.gun + "maxammo"]);
if (_global.startat == true) {
_root.infobox.daynum = "Day " + _global.day;
}
if ((_global.gametype == 1) and (_global.sandboxing == false)) {
if ((_global.cheated == false) and (_global.health > 0)) {
_root.kongregateScores.setMode("campaign" + _global.diff);
_root.kongregateScores.submit(_global.day);
}
}
if (_global.gametype == 2) {
_root.infobox.daynum = "Flag";
this.daytext = "DEFEND!";
_root.ground.gotoAndStop(2);
}
if (_global.gametype == 3) {
_root.infobox.daynum = "Sparta";
this.daytext = "KILL 300";
}
if (_global.gametype == 4) {
_root.infobox.daynum = "Zombies";
this.daytext = "LAST FOR 2:00";
_root.zombiescene.gotoAndStop(2);
i = 0;
while (i < _global.twrslots) {
_root["twrslot" + i].gotoAndStop("zombie");
i++;
}
_root.money._alpha = 0;
}
if (_global.gametype == 5) {
_root.infobox.daynum = "Music";
this.daytext = "ENTERTAIN!";
_root.ground.gotoAndStop("music");
_root.ammobar._alpha = 0;
_root.money._alpha = 0;
}
if ((_global.gametype == 6) and (_global.startat == false)) {
_root.infobox.daynum = "Sandbox";
this.daytext = "SANDBOX";
}
G[_global.day + "dmgtaken"] = _global.dmgtaken;
G[_global.day + "earnedmoney"] = _global.earnedmoney;
G[_global.day + "tempmoney"] = _global.money;
G[_global.day + "repairamt"] = _global.repairamt;
G[_global.day + "gunmendmgamt"] = _global.gunmendmgamt;
_global.clearinfo = function () {
_root.buyscreen.infobox.title.gotoAndStop("blank");
_root.buyscreen.infobox.info.gotoAndStop("blank");
_root.buyscreen.infobox.gunicon.gotoAndStop("blank");
_root.buyscreen.infobox.buybutton.gotoAndStop(3);
_root.buyscreen.infobox.cost = "";
_root.buyscreen.infobox.upgrades.gotoAndStop(2);
};
_global.weaponset = function () {
i = 1;
while (i < 13) {
_root.buyscreen["button" + i].weapon = _root["weapon" + i];
_root.buyscreen["button" + i].gunicon.gotoAndStop(_root["weapon" + i]);
i++;
}
_global.clearinfo();
_global.gunset = true;
_global.buttoncheck();
_root.buyscreen.tabs.gotoAndStop(1);
};
_global.weaponset();
_global.settwrcosts();
_root.wall.gotoAndStop(_global.walllvl);
_global.givemoney(0);
if (_global.gametype == 1) {
if ((_global.day == 5) and (_root.minigames[2] == 1)) {
_root.minigames[2] = 2;
_global.givehelp("minigame");
}
if ((_global.day == 10) and (_root.minigames[3] == 1)) {
_root.minigames[3] = 2;
_global.givehelp("minigame");
}
if ((_global.day == 15) and (_root.minigames[4] == 1)) {
_root.minigames[4] = 2;
_global.givehelp("minigame");
}
if ((_global.day == 20) and (_root.minigames[5] == 1)) {
_root.minigames[5] = 2;
_global.givehelp("minigame");
}
if ((_global.day == 25) and (_root.minigames[7] == 1)) {
_root.minigames[7] = 2;
_global.givehelp("minigame");
}
if ((_global.day == 30) and (_root.minigames[3] == 6)) {
_root.minigames[6] = 2;
_global.givehelp("minigame");
}
if ((_global.gametype == 1) and (_global.sandboxer == false)) {
if (_global.day == 10) {
__com_mochibot__("000cbb7b", this, 10301, true);
}
if (_global.day == 20) {
__com_mochibot__("2d39d6ec", this, 10301, true);
}
if (_global.day == 30) {
__com_mochibot__("8d86a6df", this, 10301, true);
}
if (_global.day == 40) {
_global.fisty = true;
_global.givehelp("fisty");
_root.kongregateScores.setMode("fisty");
_root.kongregateScores.submit(_global.diff);
__com_mochibot__("ec930ecc", this, 10301, true);
}
}
}
_global.towerset = function () {
i = 1;
while (i < 13) {
_root.buyscreen["button" + i].tower = _root["tower" + i];
_root.buyscreen["button" + i].gunicon.gotoAndStop(_root["tower" + i]);
_root.buyscreen["button" + i]._alpha = 100;
i++;
}
_global.gunset = false;
_global.clearinfo();
_global.buttoncheck();
_root.buyscreen.tabs.gotoAndStop(2);
};
_global.upgradecheck = function (gun, type) {
u = 1;
while (u < 4) {
if (_global[(gun + "UP") + u] == "na") {
_root.buyscreen.infobox.upgrades["bar" + u].bar._alpha = 0;
_root.buyscreen.infobox.upgrades["bar" + u].text.text = "";
_root.buyscreen.infobox.upgrades["bar" + u].cost = "";
_root.buyscreen.infobox.upgrades["bar" + u].amt = "";
} else {
_root.buyscreen.infobox.upgrades["bar" + u].text.text = _global[((gun + "UP") + u) + "name"];
min = _global[(gun + _global[(gun + "UP") + u]) + "ORIG"];
max = _global[(gun + _global[(gun + "UP") + u]) + "MAX"] - min;
if (type == "gun") {
_root.buyscreen.infobox.upgrades["bar" + u].cost = "$" + _global[((gun + "UP") + u) + "cost"];
_root.buyscreen.infobox.upgrades["bar" + u].amt = _global[gun + _global[(gun + "UP") + u]];
amt = _global[gun + _global[(gun + "UP") + u]] - min;
} else {
_root.buyscreen.infobox.upgrades["bar" + u].cost = "$" + _root[selectedtwr].tower[("UP" + u) + "cost"];
_root.buyscreen.infobox.upgrades["bar" + u].amt = _root[selectedtwr].tower[_global[(gun + "UP") + u]];
amt = _root[selectedtwr].tower[_global[(gun + "UP") + u]] - min;
}
_root.buyscreen.infobox.upgrades["bar" + u].bar.bar._xscale = (amt / max) * 100;
_root.buyscreen.infobox.upgrades["bar" + u].bar._alpha = 100;
}
u++;
}
};
_global.buyupgrade = function (u, gun2, twr) {
if (twrselection == false) {
_global.givemoney(-_global[((gun + "UP") + u) + "cost"]);
_global[gun + _global[(gun + "UP") + u]] = _global[gun + _global[(gun + "UP") + u]] + _global[((gun + "UP") + u) + "inc"];
_global[((gun + "UP") + u) + "cost"] = Math.round((_global[((gun + "UP") + u) + "cost"] * 0.1) * _global.umod) * 10;
_global.upgradecheck(gun, "gun");
_global.giveammo(_global[_global.gun + "maxammo"]);
} else {
cost = _root[selectedtwr].tower[("UP" + u) + "cost"];
_global.givemoney(-cost);
_root[selectedtwr + "costs"] = _root[selectedtwr + "costs"] + cost;
trace(_root[selectedtwr + "costs"]);
_root[selectedtwr].tower[_global[(gun + "UP") + u]] = _root[selectedtwr].tower[_global[(gun + "UP") + u]] + _global[((gun + "UP") + u) + "inc"];
_root[selectedtwr].tower[("UP" + u) + "cost"] = Math.round((cost * 0.1) * _global.umod) * 10;
_global.upgradecheck(gun, "tower");
}
_root.buyshit.start();
_global.findshield();
_global.buttoncheck();
};
_global.clearinfo();
this.buyscreen.gunmancost = "$" + _global.gunmancost;
this.buyscreen.repairmancost = "$" + _global.repairmancost;
this.buyscreen.houserepaircost = "$" + _global.houserepaircost;
this.buyscreen.wallcost = "$" + _global.wallcost;
this.buyscreen.button13.gunicon.gotoAndStop(_global.gun1);
this.buyscreen.button14.gunicon.gotoAndStop(_global.gun2);
this.buyscreen.button13.weapon = _global.gun1;
this.buyscreen.button14.weapon = _global.gun2;
this.buyscreen.infobox.upgrades.gotoAndPlay(2);
Mouse.show();
_root.redicle.removeMovieClip();
refreshupgrade = -1;
this.onEnterFrame = function () {
hit = 0;
i = 1;
while (i < 13) {
if (((Math.abs(_root._xmouse - (this.buyscreen["button" + i]._x + this.buyscreen._y)) < sizeX) and (Math.abs(_root._ymouse - (this.buyscreen["button" + i]._y + this.buyscreen._y)) < sizeY)) and (_root.gunicon.follow == false)) {
hit = 1;
if (_global.gunset == true) {
if (this["weapon" + i] != "blank") {
this.buyscreen["button" + i].ts = 200;
this.buyscreen["button" + i].swapDepths(_root.buyscreen.getNextHighestDepth());
if (this.buyscreen["button" + i].down == 1) {
twrselection = false;
gun = this["weapon" + i];
this.buyscreen["button" + i].ts = 160;
_global.selectedgun = this["weapon" + i];
_root.buyscreen.infobox.title.gotoAndStop(this["weapon" + i]);
_root.buyscreen.infobox.gunicon.gotoAndStop(this["weapon" + i]);
if (_global["have" + this["weapon" + i]] == false) {
_root.buyscreen.infobox.cost = "$" + _global[this["weapon" + i] + "cost"];
_root.buyscreen.infobox.info.gotoAndStop(this["weapon" + i]);
_root.buyscreen.infobox.upgrades.gotoAndStop(2);
if (_global.money >= _global[this["weapon" + i] + "cost"]) {
_root.buyscreen.infobox.buybutton.gotoAndStop(1);
} else {
_root.buyscreen.infobox.buybutton.gotoAndStop(3);
}
} else {
_root.buyscreen.infobox.info.gotoAndStop("blank");
_root.buyscreen.infobox.cost = "";
_root.buyscreen.infobox.buybutton.gotoAndStop(2);
_root.buyscreen.infobox.upgrades.gotoAndStop(1);
_global.upgradecheck(_global.selectedgun, "gun");
if (_root.gunicon.follow == false) {
_root.gunicon.follow = true;
_root.gunicon.hasgun = true;
_root.gunicon._alpha = 0;
_root.gunicon.origX = _root._xmouse;
_root.gunicon.origY = _root._ymouse;
_root.gunicon.gotoAndStop(this["weapon" + i]);
_root.gunicon.weapon = this["weapon" + i];
}
}
}
}
} else if (this["tower" + i] != "blank") {
this.buyscreen["button" + i].ts = 200;
this.buyscreen["button" + i].swapDepths(_root.buyscreen.getNextHighestDepth());
if (this.buyscreen["button" + i].down == 1) {
twrselection = true;
this.buyscreen["button" + i].ts = 160;
_global.selectedgun = this["tower" + i];
gun = this["tower" + i];
selectedtower = "twrslot" + i;
_root.buyscreen.infobox.title.gotoAndStop(this["tower" + i]);
_root.buyscreen.infobox.gunicon.gotoAndStop(this["tower" + i]);
_root.buyscreen.infobox.cost = "$" + _global[("twr" + this["tower" + i]) + "cost"];
_root.buyscreen.infobox.info.gotoAndStop(this["tower" + i]);
_root.buyscreen.infobox.upgrades.gotoAndStop(2);
if (_global.money >= _global[("twr" + this["tower" + i]) + "cost"]) {
_root.buyscreen.infobox.buybutton.gotoAndStop(1);
} else {
_root.buyscreen.infobox.buybutton.gotoAndStop(3);
}
}
}
} else {
this.buyscreen["button" + i].ts = 100;
if ((_global.gunset == false) and (hit == 0)) {
}
}
this.buyscreen["button" + i].scalespeed = this.buyscreen["button" + i].scalespeed + ((this.buyscreen["button" + i].ts - this.buyscreen["button" + i].scale) * this.buyscreen["button" + i].speed);
this.buyscreen["button" + i].scale = this.buyscreen["button" + i].scale + this.buyscreen["button" + i].scalespeed;
this.buyscreen["button" + i].scalespeed = this.buyscreen["button" + i].scalespeed * this.buyscreen["button" + i].decel;
this.buyscreen["button" + i]._xscale = this.buyscreen["button" + i].scale;
this.buyscreen["button" + i]._yscale = this.buyscreen["button" + i].scale;
i++;
}
if (_global.selectedgun == "blank") {
if (_global.gunset == false) {
_root.clearinfo();
}
}
if (_root.gunicon.follow == true) {
hit = 0;
if (_global.octopussy == false) {
Yhit = 18;
Xhit = 35;
} else {
Yhit = 10;
Xhit = 35;
}
i = 0;
while (i < _global.twrslots) {
if (((Math.abs(_root._xmouse - _root["twrslot" + i]._x) < Xhit) and (Math.abs((_root._ymouse + 30) - _root["twrslot" + i]._y) < Yhit)) and (_root.gunicon.hasgun == false)) {
_root["twrslot" + i].blink = true;
hit = 1;
} else {
_root["twrslot" + i].blink = false;
_root.gunicon.blink = false;
}
i++;
}
if (hit == 1) {
_root.gunicon.blink = true;
} else {
_root.gunicon.blink = false;
}
}
i = 0;
while (i < _global.twrslots) {
if (_global.octopussy == false) {
Yhit = 18;
Xhit = 35;
} else {
Yhit = 10;
Xhit = 35;
}
if (((((Math.abs(_root._xmouse - _root["twrslot" + i]._x) < Xhit) and (Math.abs(_root._ymouse - _root["twrslot" + i]._y) < Yhit)) and (_root["twrslot" + i]._currentframe != 1)) and (_root.gunicon.follow == false)) and (_global.gametype != 4)) {
_root["twrslot" + i]._xscale = _root["twrslot" + i].scaleORIG + 7;
_root["twrslot" + i]._yscale = _root["twrslot" + i].scaleORIG + 7;
if (_global.mousedown == true) {
twrselection = true;
twr = _global[("twrslot" + i) + "weapon"];
gun = twr;
_root.buyscreen.infobox.title.gotoAndStop(twr);
_root.buyscreen.infobox.gunicon.gotoAndStop(twr);
_root.buyscreen.infobox.cost = "$" + _global[("twr" + twr) + "cost"];
_root.buyscreen.infobox.upgrades.gotoAndStop(1);
_root.buyscreen.infobox.info.gotoAndStop("blank");
_root.buyscreen.infobox.buybutton.gotoAndStop("sell");
selectedtwr = "twrslot" + i;
_global.selectedgun = twr;
_global.selectedtwr = i;
_global.upgradecheck(twr, "tower", i);
_root["twrslot" + i]._xscale = _root["twrslot" + i].scaleORIG - 5;
_root["twrslot" + i]._yscale = _root["twrslot" + i].scaleORIG - 5;
}
} else {
_root["twrslot" + i]._xscale = _root["twrslot" + i].scaleORIG;
_root["twrslot" + i]._yscale = _root["twrslot" + i].scaleORIG;
}
i++;
}
if (_root.buyscreen.infobox.upgrades._currentframe == 1) {
overupgrade = false;
if (twrselection == false) {
u = 1;
while (u < 4) {
if (_global[gun + _global[(gun + "UP") + u]] < (_global[(gun + _global[(gun + "UP") + u]) + "MAX"] - 0.0001)) {
if (_global.money >= _global[((gun + "UP") + u) + "cost"]) {
if (_root.buyscreen.infobox.upgrades["bar" + u].hitTest(_root._xmouse, _root._ymouse, true)) {
overupgrade = true;
if (_root.buyscreen.infobox.upgrades.down == 0) {
_root.buyscreen.infobox.upgrades["bar" + u].bar._alpha = 100;
} else {
_root.buyscreen.infobox.upgrades["bar" + u].bar._alpha = 50;
}
_global.u = u;
} else {
_root.buyscreen.infobox.upgrades["bar" + u].bar._alpha = 70;
}
} else {
_root.buyscreen.infobox.upgrades["bar" + u].bar._alpha = 30;
}
}
u++;
}
} else {
u = 1;
while (u < 4) {
if (_root[selectedtwr].tower[_global[(gun + "UP") + u]] < (_global[(gun + _global[(gun + "UP") + u]) + "MAX"] - 0.0001)) {
if (_global.money >= _root[selectedtwr].tower[("UP" + u) + "cost"]) {
if (_root.buyscreen.infobox.upgrades["bar" + u].hitTest(_root._xmouse, _root._ymouse, true)) {
overupgrade = true;
if (_root.buyscreen.infobox.upgrades.down == 0) {
_root.buyscreen.infobox.upgrades["bar" + u].bar._alpha = 100;
} else {
_root.buyscreen.infobox.upgrades["bar" + u].bar._alpha = 50;
}
_global.u = u;
} else {
_root.buyscreen.infobox.upgrades["bar" + u].bar._alpha = 70;
}
} else {
_root.buyscreen.infobox.upgrades["bar" + u].bar._alpha = 30;
}
}
u++;
}
}
}
i = 13;
while (i < 15) {
if (((Math.abs(_root._xmouse - (this.buyscreen["button" + i]._x + this.buyscreen._y)) < (this.buyscreen["button" + i]._width / 2)) and (Math.abs(_root._ymouse - (this.buyscreen["button" + i]._y + this.buyscreen._y)) < (this.buyscreen["button" + i]._height / 2))) and (this["weapon" + i] != "blank")) {
if (_root.gunicon.follow == true) {
if (_root.gunicon.weapon != this.buyscreen["button" + i].weapon) {
if ((_root.gunicon.weapon == _global.gun1) and (_global.gun2 == "blank")) {
} else {
this.buyscreen["button" + i]._alpha = 60;
}
}
} else if (((this.buyscreen["button" + i].down == 1) and (_global.gun1 != "blank")) and (_global.gun2 != "blank")) {
_global.selectedgun = this.buyscreen["button" + i].weapon;
_root.buyscreen.infobox.cost = "";
_root.buyscreen.infobox.buybutton.gotoAndStop(2);
if (_root.gunicon.follow == false) {
_root.gunicon.follow = true;
_root.gunicon.hasgun = true;
_root.gunicon._alpha = 0;
_root.gunicon.origX = _root._xmouse;
_root.gunicon.origY = _root._ymouse;
_root.gunicon.gotoAndStop(this.buyscreen["button" + i].weapon);
_root.gunicon.weapon = this.buyscreen["button" + i].weapon;
}
}
} else {
this.buyscreen["button" + i]._alpha = 100;
}
i++;
}
};
this.onMouseUp = function () {
_global.mousedown = false;
if (_global.gunset == true) {
if ((Math.abs(_root._xmouse - (this.buyscreen.button13._x + this.buyscreen._y)) < (this.buyscreen.button13._width * 0.5)) and (Math.abs(_root._ymouse - (this.buyscreen.button13._y + this.buyscreen._y)) < (this.buyscreen.button13._height * 0.5))) {
if (_root.gunicon.follow == true) {
if (_root.gunicon.weapon == _global.gun2) {
this.buyscreen.button14.gunicon.gotoAndStop(_global.gun1);
this.buyscreen.button14.weapon = _global.gun1;
_global.gun2 = _global.gun1;
_global.ammo2 = _global[_global.gun1 + "maxammo"];
}
_root.select.start();
this.buyscreen.button13.gunicon.gotoAndStop(_root.gunicon.weapon);
this.buyscreen.button13.weapon = _root.gunicon.weapon;
_global.gun1 = _root.gunicon.weapon;
_global.gun = _global.gun1;
_global.giveammo(_global[_global.gun + "maxammo"]);
}
}
if ((Math.abs(_root._xmouse - (this.buyscreen.button14._x + this.buyscreen._y)) < (this.buyscreen.button14._width * 0.6)) and (Math.abs(_root._ymouse - (this.buyscreen.button14._y + this.buyscreen._y)) < (this.buyscreen.button13._height * 0.45))) {
if (_root.gunicon.follow == true) {
if ((_root.gunicon.weapon == _global.gun1) and (_global.gun2 == "blank")) {
} else {
if (_root.gunicon.weapon == _global.gun1) {
this.buyscreen.button13.gunicon.gotoAndStop(_global.gun2);
this.buyscreen.button13.weapon = _global.gun2;
_global.gun1 = _global.gun2;
_global.gun = _global.gun2;
_global.giveammo(_global[_global.gun + "maxammo"]);
}
_root.select.start();
this.buyscreen.button14.gunicon.gotoAndStop(_root.gunicon.weapon);
this.buyscreen.button14.weapon = _root.gunicon.weapon;
_global.gun2 = _root.gunicon.weapon;
_global.ammo2 = _global[_global.gun2 + "maxammo"];
}
}
}
this.buyscreen.button13._alpha = 100;
this.buyscreen.button14._alpha = 100;
} else if ((_root.gunicon.follow == true) and (_root.gunicon.hasgun == false)) {
if (_global.octopussy == false) {
Yhit = 18;
Xhit = 35;
} else {
Yhit = 10;
Xhit = 35;
}
i = 0;
while (i < _global.twrslots) {
if ((Math.abs(_root._xmouse - _root["twrslot" + i]._x) < Xhit) and (Math.abs((_root._ymouse + 30) - _root["twrslot" + i]._y) < Yhit)) {
if ((_global[("twrslot" + i) + "weapon"] == "blank") or (_global[("twrslot" + i) + "weapon"] == undefined)) {
twr = _root.gunicon.weapon;
_global.givemoney(-_global[("twr" + twr) + "cost"]);
_root[("twrslot" + i) + "costs"] = _global[("twr" + twr) + "cost"];
_root["twrslot" + i].gotoAndStop(1);
_root["twrslot" + i].gotoAndStop(twr);
_global[("twrslot" + i) + "weapon"] = twr;
_root.buyscreen.infobox.info.gotoAndStop("blank");
_root.buyscreen.infobox.title.gotoAndStop(twr);
_root.buyscreen.infobox.gunicon.gotoAndStop(twr);
_root.buyscreen.infobox.cost = "$" + _global[("twr" + twr) + "cost"];
_root.buyscreen.infobox.upgrades.gotoAndStop(1);
_root.buyscreen.infobox.buybutton.gotoAndStop("sell");
_root.gunbuy.start();
_root.helpbox.Ty = -150;
selectedtwr = "twrslot" + i;
_global.selectedtwr = i;
gun = twr;
_global.settwrcosts(i);
u = 1;
while (u < 4) {
if (_global[(gun + "UP") + u] == "na") {
_root.buyscreen.infobox.upgrades["bar" + u].bar._alpha = 0;
_root.buyscreen.infobox.upgrades["bar" + u].text.text = "";
_root.buyscreen.infobox.upgrades["bar" + u].cost = "";
_root.buyscreen.infobox.upgrades["bar" + u].amt = "";
} else {
_root.buyscreen.infobox.upgrades["bar" + u]._alpha = 100;
_root.buyscreen.infobox.upgrades["bar" + u].text.text = _global[((gun + "UP") + u) + "name"];
_root.buyscreen.infobox.upgrades["bar" + u].cost = "$" + _root[selectedtwr].tower[("UP" + u) + "cost"];
min = _global[(gun + _global[(gun + "UP") + u]) + "ORIG"];
max = _global[(gun + _global[(gun + "UP") + u]) + "MAX"] - min;
_root.buyscreen.infobox.upgrades["bar" + u].amt = min;
amt = min;
_root.buyscreen.infobox.upgrades["bar" + u].bar.bar._xscale = 0;
}
u++;
}
_global.buttoncheck();
} else {
_root.beep.start();
placefailed = true;
}
}
i++;
}
}
if (placefailed != true) {
_root.gunicon.follow = false;
}
placefailed = false;
};
this.onMouseDown = function () {
_global.mousedown = true;
if ((overupgrade == true) and (_global.covered == false)) {
_global.buyupgrade(_global.u, _global.selectedgun);
}
};
_global.clearinfo();
twrselection = false;
gun = _global.gun1;
this.buyscreen["button" + i].ts = 160;
_global.selectedgun = gun;
_root.buyscreen.infobox.title.gotoAndStop(gun);
_root.buyscreen.infobox.gunicon.gotoAndStop(gun);
_root.buyscreen.infobox.info.gotoAndStop("blank");
_root.buyscreen.infobox.cost = "";
_root.buyscreen.infobox.buybutton.gotoAndStop(2);
_root.buyscreen.infobox.upgrades.gotoAndStop(1);
_global.upgradecheck(gun, "gun");
Instance of Symbol 1733 MovieClip "gunicon" in Frame 6
onClipEvent (load) {
follow = false;
origX = 0;
origY = 0;
blink = false;
}
onClipEvent (enterFrame) {
if (blink == true) {
if (this._alpha > 90) {
this._alpha = 50;
} else {
this._alpha = 100;
}
} else {
this._alpha = 100;
}
if (follow == true) {
this._x = _root._xmouse;
this._y = _root._ymouse;
if ((Math.abs(_root._xmouse - origX) > 10) or (Math.abs(_root._ymouse - origY) > 10)) {
if (blink == false) {
this._alpha = 100;
}
}
} else {
this._x = -10000;
this._y = 10000;
}
}
onClipEvent (mouseUp) {
blink = false;
}
Instance of Symbol 1780 MovieClip "coverbutton" in Frame 6
/* no clip actions */
Frame 7
wide = 600;
high = 200;
Xpixelinc = wide / (_global.day + 1);
Ypixelinc = 5;
Ybarinc = 50;
daytextinc = 1;
tempmoneydollar = true;
earnedmoneydollar = true;
_root.daynum = "DAY " + _global.day;
if (_global.day > 5) {
daytextinc = 5;
}
if (_global.day > 30) {
daytextinc = 10;
}
if (_global.day > 100) {
daytextinc = 20;
}
i = 1;
while (i < (_global.day + 1)) {
G[i + "earnedmoney"] = random(100) + 100;
i++;
}
createEmptyMovieClip("lines", graph.getDepth() - 999);
lines._y = graph._y;
lines._x = graph._x;
i = 0;
while (i < ((_global.day / daytextinc) + 1)) {
if (i == 0) {
lines.attachMovie("daytext", "daytext" + i, lines.getNextHighestDepth());
lines["daytext" + i]._y = 20;
lines["daytext" + i]._x = Xpixelinc;
lines["daytext" + i].text = "DAY 1";
} else {
lines.attachMovie("daytext", "daytext" + i, lines.getNextHighestDepth());
lines["daytext" + i]._y = 20;
lines["daytext" + i]._x = (i * Xpixelinc) * daytextinc;
lines["daytext" + i].text = "DAY " + (i * daytextinc);
}
j = 1;
while (j < (_global.day + 1)) {
if (Math.round(j / 5) == (j / 5)) {
lines.lineStyle(4, 0, 100);
} else {
lines.lineStyle(2, 12303291, 100);
}
lines.moveTo(j * Xpixelinc, 3);
lines.lineTo(j * Xpixelinc, 10);
j++;
}
i++;
}
_root.drawgrid = function () {
graph.lineStyle(1, 15395562, 100);
j = 1;
while (j <= _global.day) {
graph.moveTo(j * Xpixelinc, 0);
graph.lineTo(j * Xpixelinc, -high);
j++;
}
j = 1;
while (j < high) {
k = Math.round(j / Ypixelinc);
if (Math.round(k / Ybarinc) == (k / Ybarinc)) {
graph.moveTo(0, -j);
graph.lineTo(wide, -j);
graph.attachMovie("ybarnum", "ybarnum" + j, graph.getNextHighestDepth());
graph["ybarnum" + j]._x = 0;
graph["ybarnum" + j]._y = -j;
graph["ybarnum" + j].number = k;
}
j++;
}
};
_root.drawstat = function (stat1, money) {
j = 0;
while (j < high) {
graph["ybarnum" + j].removeMovieClip();
j++;
}
graph.clear();
_root.stat = stat1;
_root[stat1].selected = true;
highest = 0;
l = 1;
while (l < (_global.day + 1)) {
if (G[l + stat1] > highest) {
highest = G[l + stat1];
}
l++;
}
if (highest < 10) {
highest = 10;
Ypixelinc = 100;
} else {
Ypixelinc = (high * 0.75) / highest;
}
trace(highest);
drawgrid();
graph.lineStyle(2, 35071, 100);
graph.moveTo(0, 0);
l = 1;
while (l < (_global.day + 1)) {
graph.lineTo(l * Xpixelinc, (-Ypixelinc) * G[l + stat1]);
G[l + "X"] = l * Xpixelinc;
G[l + "Y"] = G[l + stat1] * Ypixelinc;
l++;
}
youdead._x = G[_global.day + "X"] + graph._x;
youdead._y = ((-G[_global.day + "Y"]) + 10) + graph._y;
};
drawstat("earnedmoney");
this.onEnterFrame = function () {
numbar._y = 10000;
i = 1;
while (i <= _global.day) {
if ((Math.abs(graph._xmouse - G[i + "X"]) < 15) and (Math.abs((-graph._ymouse) - G[i + "Y"]) < 15)) {
if (_root[stat + "dollar"]) {
numbar.text = "$" + G[i + stat];
} else {
numbar.text = G[i + stat];
}
numbar._x = _xmouse;
numbar._y = _ymouse;
}
i++;
}
};
Instance of Symbol 1022 MovieClip [RadioButton] "earnedmoney" in Frame 7
//component parameters
onClipEvent (construct) {
data = "earnedmoney";
groupName = "radioGroup";
label = "Money held";
labelPlacement = "right";
selected = true;
}
on (release) {
_root.drawstat(this.data);
}
Instance of Symbol 1022 MovieClip [RadioButton] "totalmoney" in Frame 7
//component parameters
onClipEvent (construct) {
data = "tempmoney";
groupName = "radioGroup";
label = "Money total";
labelPlacement = "right";
selected = false;
}
on (release) {
_root.drawstat(this.data);
}
Instance of Symbol 1022 MovieClip [RadioButton] "dmgtaken" in Frame 7
//component parameters
onClipEvent (construct) {
data = "dmgtaken";
groupName = "radioGroup";
label = "Damage taken";
labelPlacement = "right";
selected = true;
}
on (release) {
_root.drawstat(this.data);
}
Instance of Symbol 1022 MovieClip [RadioButton] in Frame 7
//component parameters
onClipEvent (construct) {
data = "repairamt";
groupName = "radioGroup";
label = "Amt healed by repairmen";
labelPlacement = "right";
selected = false;
}
on (release) {
_root.drawstat(this.data);
}
Instance of Symbol 1022 MovieClip [RadioButton] in Frame 7
//component parameters
onClipEvent (construct) {
data = "gunmendmgamt";
groupName = "radioGroup";
label = "Damage dealt by gunmen";
labelPlacement = "right";
selected = false;
}
on (release) {
_root.drawstat(this.data);
}
Frame 8
stop();
Instance of Symbol 1795 MovieClip in Frame 8
onClipEvent (keyDown) {
_root.stopsounds();
_root["piano" + Key.getCode()].start();
_root.M[_root.Mtimer] = true;
trace((("M[" + _root.Mtimer) + "] = ") + Key.getCode());
}
onClipEvent (enterFrame) {
_root.Mtimer++;
}
Frame 9
_root.birds.stop();
birds.start();
birds.onSoundComplete = function () {
birds.start();
};
_global.givemoney(0);
_global.guydepthnum = 2000;
_global.jeepmaxhealth = 5;
_root.money._x = 640;
_global.ztimer = 0;
_global.zseconds = 60;
_global.zminutes = 0;
_root.spartatext.removeMovieClip();
_root.attachMovie("spartatext", "spartatext", 5000);
_root.spartatext._x = 20;
_root.spartatext._y = 30;
_root.spartatext.num = "0:00";
_global.jeepnum = 10;
type = "jeep";
i = 0;
while (i < _global[type + "num"]) {
_root.attachMovie(type, type + i, _global.guydepthnum);
_global.guydepthnum++;
_global[type + "reset"](type + i);
_root[type + i].badguy = false;
i++;
}
this.onEnterFrame = function () {
if (_global.daygo == true) {
if (_global.zseconds < 1) {
_global.youwin();
_global.score = _global.money;
_global.scoretype = "";
} else {
_global.ztimer++;
if (_global.ztimer > 31) {
_global.ztimer = 0;
_global.zseconds--;
if (_global.zseconds > 9) {
_root.spartatext.num = "0:" + _global.zseconds;
} else {
_root.spartatext.num = "0:0" + _global.zseconds;
}
}
}
i = 0;
while (i < _global.jeepnum) {
j = "jeep" + i;
if (_root[j].action == "walk") {
if (_root[j].dir == 0) {
if (_root[j]._x > _root[j].Tx) {
_global.jeepreset(j);
}
if ((_root[j]._x > -250) and (_root[j].sounded == false)) {
_root[j].sounded = true;
_root.jeepgo.start();
}
} else {
if (_root[j]._x < _root[j].Tx) {
_global.jeepreset(j);
}
if ((_root[j]._x < 700) and (_root[j].sounded == false)) {
_root[j].sounded = true;
_root.jeepgo.start();
}
}
_root[j]._x = _root[j]._x + _root[j].speed;
}
i++;
}
if (_global.pnum > 1000) {
_global.pnum = 0;
}
if ((_global.shakin == true) and (_global.effects == true)) {
_root._x = random(shake) - (shake / 2);
_root._y = random(shake) - (shake / 2);
_global.shake = _global.shake - 0.5;
if (_global.shake < 1) {
_root._x = 0;
_root._y = 0;
_global.shake = 0;
_global.shakin = false;
}
} else {
_root._x = 0;
_root._y = 0;
}
}
};
_root.onMouseDown = function () {
if ((_global.daygo == true) and (_global.fisting == false)) {
if (_root._ymouse > 250) {
Y = _root._ymouse;
} else {
Y = 250;
}
_root.attachMovie("fisty", "fisty", _global.pnum + 10000);
_root.fisty._x = _root._xmouse;
_root.fisty._y = Y;
_global.pnum++;
_global.fisting = true;
}
};
Instance of Symbol 1223 MovieClip "house" in Frame 9
onClipEvent (load) {
global_sound = new Sound();
}
onClipEvent (keyDown) {
trace(Key.getCode());
if (_global.dead == false) {
if ((Key.getCode() == 80) and (_root._currentframe == 9)) {
if (_global.daygo == true) {
_global.pausegame();
} else {
_global.unpausegame();
}
}
if (Key.getCode() == 77) {
if (global_sound.getVolume() < 50) {
global_sound.setVolume(100);
_root.volumebtn.gotoAndStop(1);
} else {
global_sound.setVolume(0);
_root.volumebtn.gotoAndStop(2);
}
}
if ((Key.getCode() == 88) and (_global.fisty == true)) {
if ((_global.daygo == true) and (_global.fisting == false)) {
if (_root._ymouse > 250) {
Y = _root._ymouse;
} else {
Y = 250;
}
_root.attachMovie("fisty", "fisty", _global.pnum + 10000);
_root.fisty._x = _root._xmouse;
_root.fisty._y = Y;
_global.pnum++;
_global.fisting = true;
}
}
if (Key.getCode() == 68) {
_global.day++;
_root.infobox.daynum = "Day " + _global.day;
}
if (Key.getCode() == 71) {
_root.gotoAndStop("graph");
}
}
}
Frame 10
stop();
Instance of Symbol 8 MovieClip in Symbol 9 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.daygo == true) {
this._rotation = this._rotation + 8;
}
}
Instance of Symbol 8 MovieClip in Symbol 10 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.daygo == true) {
this._rotation = this._rotation + 35;
}
}
Symbol 32 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 2
gotoAndStop (1);
Symbol 32 MovieClip Frame 4
_root.explosion.start();
Instance of Symbol 24 MovieClip "bitprop" in Symbol 32 MovieClip Frame 4
onClipEvent (load) {
bitnum = 8;
grav = 1;
xspeed = (Math.random() * 2) - 1;
yspeed = -1;
propspeed = 2;
i = 0;
while (i < bitnum) {
this._parent["bit" + i].xspeed = ((Math.random() * 20) - 10) + (this._parent._parent.speed * 5);
this._parent["bit" + i].yspeed = (Math.random() * 10) - 30;
this._parent["bit" + i].rot = (Math.random() * 6) - 3;
i++;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < bitnum) {
this._parent["bit" + i]._rotation = this._parent["bit" + i]._rotation + this._parent["bit" + i].rot;
this._parent["bit" + i]._x = this._parent["bit" + i]._x + this._parent["bit" + i].xspeed;
this._parent["bit" + i]._y = this._parent["bit" + i]._y + this._parent["bit" + i].yspeed;
this._parent["bit" + i].yspeed = this._parent["bit" + i].yspeed + grav;
if (this._parent["bit" + i].yspeed > 20) {
this._parent["bit" + i]._alpha = this._parent["bit" + i]._alpha - 3;
if (this._parent["bit" + i]._alpha < 3) {
_global.apachereset(this._parent._parent._name);
}
}
i++;
}
this._x = this._x + xspeed;
this._rotation = this._rotation + (xspeed * 0.3);
xspeed = xspeed + (xspeed * (propspeed * 0.05));
this._y = this._y + yspeed;
yspeed = yspeed - propspeed;
}
Symbol 32 MovieClip Frame 32
stop();
Symbol 40 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 2
stop();
this.onEnterFrame = function () {
if (this._parent.onfire == false) {
this._alpha = this._alpha - 10;
if (this._alpha < 10) {
gotoAndStop (1);
}
}
};
Symbol 45 MovieClip Frame 1
if (_global.gametype == 4) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
Symbol 50 MovieClip Frame 1
if (_global.gametype == 3) {
this.gotoAndStop(2);
}
stop();
Symbol 50 MovieClip Frame 2
stop();
Symbol 213 MovieClip Frame 21
this._parent.action = "walk";
gotoAndPlay ("walk");
Symbol 213 MovieClip Frame 37
if (_global.gametype == 3) {
_global.dmghouse(_global.spartandmg);
} else {
_global.dmghouse(_global.sworddmg);
}
_root.clang.start();
Symbol 213 MovieClip Frame 46
gotoAndPlay ("attack");
Symbol 213 MovieClip Frame 183
if (_global.gametype == 5) {
if ((this._parent._name == _global.lastman) and (_global.dead == false)) {
_global.youwin();
_global.score = Math.floor((_global.musichits / _global.musicshots) * 100) + "%";
_global.scoretype = "Hit Percentage";
}
removeMovieClip(this._parent);
} else if (_root._currentframe == 3) {
_global.sword2reset(this._parent._name);
} else {
_global.swordreset(this._parent._name);
}
Symbol 213 MovieClip Frame 238
this._parent.action = "walk";
this._parent._x = this._parent._x + 20;
gotoAndPlay ("walk");
Symbol 213 MovieClip Frame 307
this._parent.action = "walk";
gotoAndPlay ("walk");
Symbol 227 Button
on (release) {
_global.dayover();
_root.gotoAndPlay("start");
_root.youdead1.removeMovieClip();
}
Symbol 231 Button
on (release) {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
getURL ("http://www.kongregate.com/?gamereferral=stormthehouse3", "_blank");
__com_mochibot__("172ef73b", this, 10301, true);
}
Symbol 232 MovieClip [youdead] Frame 1
this.score = _global.score;
this.scoretype = _global.scoretype;
if (_global.gametype == 3) {
_global.score = _global.spartanskilled;
trace(_global.score);
}
if (((_global.cheated == false) and (_global.gametype != 1)) and (_global.gametype != 6)) {
_root.kongregateScores.setMode(_global.gametypelabel + _global.diff);
_root.kongregateScores.submit(_global.score);
trace(_global.gametype);
}
if (_global.gametype == 3) {
}
Symbol 232 MovieClip [youdead] Frame 165
stop();
Symbol 241 MovieClip [redicle] Frame 1
Mouse.hide();
this.sized = 0;
stop();
this.onEnterFrame = function () {
if (this.sized > 0) {
this.sized = this.sized * 0.92;
this.sized = this.sized - 3;
if (sized < 0) {
sized = 0;
}
}
this.crosshair._xscale = this.sized + 100;
this.crosshair._yscale = this.sized + 100;
if (_root._currentframe == 3) {
if ((((_root._xmouse > 160) and (_root._xmouse < 485)) and (_root._ymouse > 25)) and (_root._ymouse < 370)) {
this._alpha = 0;
_root.Mouse.show();
} else {
this._alpha = 100;
this._x = _root._xmouse;
this._y = _root._ymouse;
}
} else if (_global.pausing == 0) {
this._alpha = 100;
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if (_root._currentframe == 6) {
removeMovieClip(this);
unloadMovie (this);
}
};
Symbol 241 MovieClip [redicle] Frame 2
Mouse.hide();
this.sized = 0;
Trot = 0;
m = 0.5;
stop();
this.onEnterFrame = function () {
if (this.sized > 0) {
this.sized = this.sized * 0.92;
this.sized = this.sized - 3;
if (sized < 0) {
sized = 0;
}
}
this.saw._rotation = this.saw._rotation + ((Trot - this.saw._rotation) * m);
if (Trot < -10) {
this._x = (_root._xmouse + (Math.random() * 6)) - 3;
this._y = (_root._ymouse + (Math.random() * 6)) - 3;
} else if (_global.pausing == 0) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
};
Symbol 245 MovieClip [puffdust] Frame 1
scale = 10;
this._xscale = scale;
this._yscale = scale;
this.onEnterFrame = function () {
scale = scale + 5;
this._xscale = scale;
this._yscale = scale;
this._y = this._y - 1;
this._alpha = this._alpha - 8;
if (this._alpha < 1) {
removeMovieClip(this);
}
};
Symbol 248 MovieClip [puffblood] Frame 1
scale = 10;
this._xscale = scale;
this._yscale = scale;
this.onEnterFrame = function () {
scale = scale + 5;
this._xscale = scale;
this._yscale = scale;
this._y = this._y - 1;
this._alpha = this._alpha - 8;
if (this._alpha < 1) {
removeMovieClip(this);
}
};
Symbol 254 MovieClip Frame 1
stop();
Symbol 454 MovieClip Frame 15
this._parent.action = "walk";
gotoAndPlay ("walk");
Symbol 454 MovieClip Frame 74
this._parent.action = "walk";
this._parent._x = this._parent._x + 45;
gotoAndPlay ("walk");
Symbol 454 MovieClip Frame 138
this._parent.action = "walk";
this._parent._x = this._parent._x - 3;
gotoAndPlay ("walk");
Symbol 454 MovieClip Frame 196
gotoAndPlay ("teabag");
Symbol 454 MovieClip Frame 207
_global.dmghouse(_global.gunnerdmg);
_root.gunsound.start();
Symbol 454 MovieClip Frame 209
gotoAndPlay ("attack");
Symbol 454 MovieClip Frame 379
_global.gunnerreset(this._parent._name);
Symbol 458 MovieClip [mmissile] Frame 1
speed = 6;
angle = 0.3;
this._rotation = 20;
rotspeed = 0.035;
Tx = ((_root.house._x - 20) + random(60)) - 30;
Ty = (_root.house._y + random(60)) - 30;
sinnum = (Math.random() * Math.PI) * 2;
sinspeed = (Math.random() * 0.1) + 0.01;
sinmod = (Math.random() * 0.35) + 0.05;
this.onEnterFrame = function () {
if (_global.daygo == true) {
x = Tx - this._x;
y = Ty - this._y;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
Tangle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
rotangle = Tangle;
Tangle = (Tangle / 180) * Math.PI;
if (Tangle < 0) {
Tangle = Tangle + (Math.PI*2);
}
angle = angle + ((Tangle - angle) * rotspeed);
sinnum = sinnum + sinspeed;
angle2 = angle + (Math.sin(sinnum) * sinmod);
this._x = this._x + (Math.sin(angle2) * speed);
this._y = this._y - (Math.cos(angle2) * speed);
x = this._x - lastx;
y = this._y - lasty;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
this._rotation = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
lastx = this._x;
lasty = this._y;
if (this._y > Ty) {
if ((this._rotation > 30) or (this._rotation < -10)) {
_global.mmissileboom(this._x, this._y);
this.removeMovieClip();
}
}
} else if (_global.pausing == 0) {
this.removeMovieClip();
}
};
Instance of Symbol 456 MovieClip in Symbol 458 MovieClip [mmissile] Frame 1
onClipEvent (enterFrame) {
if (_global.daygo == false) {
stop();
} else {
play();
}
}
Symbol 461 MovieClip [jmissile] Frame 1
speed = 2;
angle = (Math.PI/2);
this._rotation = 90;
rotspeed = 0.05;
Tx = ((_root.house._x - 20) + random(60)) - 30;
Ty = (_root.house._y + random(60)) - 30;
sinnum = (Math.random() * Math.PI) * 2;
sinspeed = (Math.random() * 0.1) + 0.01;
sinmod = (Math.random() * 0.35) + 0.05;
this.onEnterFrame = function () {
if (_global.daygo == true) {
speed = speed + 0.15;
x = Tx - this._x;
y = Ty - this._y;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
Tangle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
rotangle = Tangle;
Tangle = (Tangle / 180) * Math.PI;
if (Tangle < 0) {
Tangle = Tangle + (Math.PI*2);
}
angle = angle + ((Tangle - angle) * rotspeed);
sinnum = sinnum + sinspeed;
angle2 = angle + (Math.sin(sinnum) * sinmod);
this._x = this._x + (Math.sin(angle2) * speed);
this._y = this._y - (Math.cos(angle2) * speed);
x = this._x - lastx;
y = this._y - lasty;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
this._rotation = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
lastx = this._x;
lasty = this._y;
if (this._y > Ty) {
_global.amissileboom(this._x, this._y);
this.removeMovieClip();
}
} else if (_global.pausing == 0) {
this.removeMovieClip();
}
};
Instance of Symbol 456 MovieClip in Symbol 461 MovieClip [jmissile] Frame 1
onClipEvent (enterFrame) {
if (_global.daygo == false) {
stop();
} else {
play();
}
}
Symbol 463 MovieClip [amissile] Frame 1
speed = 2;
angle = (Math.PI/2);
this._rotation = 90;
rotspeed = 0.05;
Tx = ((_root.house._x - 20) + random(60)) - 30;
Ty = (_root.house._y + random(60)) - 30;
sinnum = (Math.random() * Math.PI) * 2;
sinspeed = (Math.random() * 0.1) + 0.01;
sinmod = (Math.random() * 0.35) + 0.05;
this.onEnterFrame = function () {
if (_global.daygo == true) {
speed = speed + 0.15;
x = Tx - this._x;
y = Ty - this._y;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
Tangle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
rotangle = Tangle;
Tangle = (Tangle / 180) * Math.PI;
if (Tangle < 0) {
Tangle = Tangle + (Math.PI*2);
}
angle = angle + ((Tangle - angle) * rotspeed);
sinnum = sinnum + sinspeed;
angle2 = angle + (Math.sin(sinnum) * sinmod);
this._x = this._x + (Math.sin(angle2) * speed);
this._y = this._y - (Math.cos(angle2) * speed);
x = this._x - lastx;
y = this._y - lasty;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
this._rotation = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
lastx = this._x;
lasty = this._y;
if (this._y > Ty) {
_global.amissileboom(this._x, this._y);
this.removeMovieClip();
}
} else if (_global.pausing == 0) {
this.removeMovieClip();
}
};
Instance of Symbol 456 MovieClip in Symbol 463 MovieClip [amissile] Frame 1
onClipEvent (enterFrame) {
if (_global.daygo == false) {
stop();
} else {
play();
}
}
Symbol 465 MovieClip [missile] Frame 1
speed = (Math.random() * 2) + 3;
angle = 5.5;
this._rotation = -40;
rotspeed = 0.08;
ranX = random(400);
ranY = random(_root.wall._height) + _root.wall._y;
grounded = true;
sinnum = (Math.random() * Math.PI) * 2;
sinspeed = (Math.random() * 0.3) + 0.02;
sinmod = (Math.random() * 0.2) + 0.05;
this.onEnterFrame = function () {
if (_global.daygo == true) {
speed = speed + 0.2;
Tx = ranX;
Ty = ranY;
x = Tx - this._x;
y = Ty - this._y;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
Tangle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
rotangle = Tangle;
Tangle = (Tangle / 180) * Math.PI;
if (Tangle < 0) {
Tangle = Tangle + (Math.PI*2);
}
angle = angle + ((Tangle - angle) * rotspeed);
sinnum = sinnum + sinspeed;
angle2 = angle + (Math.sin(sinnum) * sinmod);
this._x = this._x + (Math.sin(angle2) * speed);
this._y = this._y - (Math.cos(angle2) * speed);
x = this._x - lastx;
y = this._y - lasty;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
this._rotation = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
lastx = this._x;
lasty = this._y;
if (this._x < (_root.wall._x - 50)) {
if (((this._y > 350) or (this._x < 5)) or (this._y > Ty)) {
_global.missileboom(this._x, this._y, dmg, rad);
this.removeMovieClip();
}
}
if (_global.mechnum > 0) {
type = "mech";
hitX = this._x;
hitY = this._y;
i = 0;
while (i < _global[type + "num"]) {
if ((Math.abs(hitX - _root[type + i]._x) < _root[type + "hitx"]) and (Math.abs(hitY - _root[type + i]._y) < _root[type + "hity"])) {
if (_root[type + i].action != "dead") {
_global.enemyhit(i, 7 * dmg, type, false);
_global.missileboom(this._x, this._y, dmg, rad);
this.removeMovieClip();
}
}
i++;
}
}
} else if (_global.pausing == 0) {
this.removeMovieClip();
}
};
Instance of Symbol 456 MovieClip in Symbol 465 MovieClip [missile] Frame 1
onClipEvent (enterFrame) {
if (_global.daygo == false) {
stop();
} else {
play();
}
}
Symbol 467 MovieClip [bitleg1] Frame 1
yspeed = (Math.random() * 3) - 5;
xspeed = xspeed + ((Math.random() * 2) - 1);
rot = (Math.random() * 20) - 10;
die = 0;
this.onEnterFrame = function () {
if (_global.daygo == true) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
this._rotation = this._rotation + rot;
xspeed = xspeed * 0.95;
yspeed = yspeed + _global.bitgrav;
if (this._y > ground) {
this._y = ground;
yspeed = (-yspeed) * 0.3;
rot = rot * 0.5;
die++;
if (die > 3) {
fade = 1;
}
}
}
if (fade == 1) {
this._alpha = this._alpha - 6;
if (this._alpha < 5) {
unloadMovie (this);
}
}
if (_root._currentframe != 5) {
unloadMovie (this);
}
};
Symbol 469 MovieClip [bitleg0] Frame 1
yspeed = (Math.random() * 3) - 5;
xspeed = xspeed + ((Math.random() * 2) - 1);
rot = (Math.random() * 20) - 10;
die = 0;
this.onEnterFrame = function () {
if (_global.daygo == true) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
this._rotation = this._rotation + rot;
xspeed = xspeed * 0.95;
yspeed = yspeed + _global.bitgrav;
if (this._y > ground) {
this._y = ground;
yspeed = (-yspeed) * 0.3;
rot = rot * 0.5;
die++;
if (die > 3) {
fade = 1;
}
}
}
if (fade == 1) {
this._alpha = this._alpha - 6;
if (this._alpha < 5) {
unloadMovie (this);
}
}
if (_root._currentframe != 5) {
unloadMovie (this);
}
};
Symbol 471 MovieClip [bitarm2] Frame 1
yspeed = (Math.random() * 3) - 5;
xspeed = xspeed + ((Math.random() * 2) - 1);
rot = (Math.random() * 20) - 10;
die = 0;
this.onEnterFrame = function () {
if (_global.daygo == true) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
this._rotation = this._rotation + rot;
xspeed = xspeed * 0.95;
yspeed = yspeed + _global.bitgrav;
if (this._y > ground) {
this._y = ground;
yspeed = (-yspeed) * 0.3;
rot = rot * 0.5;
die++;
if (die > 3) {
fade = 1;
}
}
}
if (fade == 1) {
this._alpha = this._alpha - 6;
if (this._alpha < 5) {
unloadMovie (this);
}
}
if (_root._currentframe != 5) {
unloadMovie (this);
}
};
Symbol 473 MovieClip [bitbody0] Frame 1
yspeed = (Math.random() * 3) - 5;
xspeed = xspeed + ((Math.random() * 2) - 1);
rot = (Math.random() * 20) - 10;
die = 0;
this.onEnterFrame = function () {
if (_global.daygo == true) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
this._rotation = this._rotation + rot;
xspeed = xspeed * 0.95;
yspeed = yspeed + _global.bitgrav;
if (this._y > ground) {
this._y = ground;
yspeed = (-yspeed) * 0.3;
rot = rot * 0.5;
die++;
if (die > 3) {
fade = 1;
}
}
}
if (fade == 1) {
this._alpha = this._alpha - 6;
if (this._alpha < 5) {
unloadMovie (this);
}
}
if (_root._currentframe != 5) {
unloadMovie (this);
}
};
Symbol 475 MovieClip [bitbody1] Frame 1
yspeed = (Math.random() * 3) - 5;
xspeed = xspeed + ((Math.random() * 2) - 1);
rot = (Math.random() * 20) - 10;
die = 0;
this.onEnterFrame = function () {
if (_global.daygo == true) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
this._rotation = this._rotation + rot;
xspeed = xspeed * 0.95;
yspeed = yspeed + _global.bitgrav;
if (this._y > ground) {
this._y = ground;
yspeed = (-yspeed) * 0.3;
rot = rot * 0.5;
die++;
if (die > 3) {
fade = 1;
}
}
}
if (fade == 1) {
this._alpha = this._alpha - 6;
if (this._alpha < 5) {
unloadMovie (this);
}
}
if (_root._currentframe != 5) {
unloadMovie (this);
}
};
Symbol 477 MovieClip [bitblood] Frame 1
f = 0;
this._alpha = random(50) + 50;
this.onEnterFrame = function () {
if (_global.daygo == true) {
f++;
if (f > _global.bloodfade) {
this._alpha = this._alpha - 6;
if (this._alpha < 7) {
unloadMovie (this);
}
}
}
if (_root._currentframe == 6) {
unloadMovie (this);
}
};
Symbol 478 MovieClip [flame] Frame 1
this._alpha = 100;
this.onEnterFrame = function () {
if (_global.daygo == true) {
this._alpha = this._alpha - 5;
}
if ((this._alpha < 5) or (_global.daygo == false)) {
unloadMovie (this);
}
};
Symbol 479 MovieClip Frame 1
stop();
Symbol 479 MovieClip Frame 2
stop();
this.onEnterFrame = function () {
if (this._parent.onfire == false) {
this._alpha = this._alpha - 10;
if (this._alpha < 10) {
gotoAndStop (1);
}
}
};
Symbol 507 MovieClip Frame 1
this._parent.action = "walk";
stop();
Symbol 507 MovieClip Frame 2
gotoAndStop (1);
Symbol 507 MovieClip Frame 4
_root.jeepfire.start();
Symbol 507 MovieClip Frame 7
_global.dmghouse(_global.jeepdmg);
Symbol 507 MovieClip Frame 11
_global.dmghouse(_global.jeepdmg);
Symbol 507 MovieClip Frame 15
_global.dmghouse(_global.jeepdmg);
Symbol 507 MovieClip Frame 54
gotoAndPlay ("attack");
Instance of Symbol 488 MovieClip "bit6" in Symbol 507 MovieClip Frame 55
onClipEvent (load) {
xspeed = ((Math.random() * this._parent.xran) - (this._parent.xran / 2)) + (this._parent._parent.speed * 5);
yspeed = ((-Math.random()) * this._parent.yran) - this._parent.yoff;
num = 0;
if (this._parent._parent.dir == 1) {
xspeed = -xspeed;
}
rotspeed = (Math.random() * this._parent.rotran) - (this._parent.rotran / 2);
stopp = false;
A = 100;
}
onClipEvent (enterFrame) {
if (_global.daygo == true) {
this._x = this._x + xspeed;
if (stopp == false) {
this._y = this._y + yspeed;
yspeed = yspeed + this._parent.grav;
}
if (this._y > this._parent.ground) {
yspeed = (-yspeed) * this._parent.bouncy;
xspeed = xspeed * 0.5;
rotspeed = rotspeed * 0.5;
if (Math.abs(yspeed) < 1) {
stopp = true;
}
}
this._rotation = this._rotation + rotspeed;
num++;
if (num > this._parent.fade) {
A = A - this._parent.fadeout;
if (A < this._parent.fadeout) {
_global.jeepreset(this._parent._parent._name);
}
}
}
}
Instance of Symbol 490 MovieClip "bit5" in Symbol 507 MovieClip Frame 55
onClipEvent (load) {
xspeed = ((Math.random() * this._parent.xran) - (this._parent.xran / 2)) + (this._parent._parent.speed * 5);
yspeed = (((-Math.random()) * this._parent.yran) - this._parent.yoff) - 20;
num = 0;
if (this._parent._parent.dir == 1) {
xspeed = -xspeed;
}
rotspeed = (Math.random() * this._parent.rotran) - (this._parent.rotran / 2);
stopp = false;
A = 100;
}
onClipEvent (enterFrame) {
if (_global.daygo == true) {
this._x = this._x + xspeed;
if (stopp == false) {
this._y = this._y + yspeed;
yspeed = yspeed + this._parent.grav;
}
if (this._y > this._parent.ground) {
yspeed = (-yspeed) * this._parent.bouncy;
xspeed = xspeed * 0.5;
rotspeed = rotspeed * 0.5;
if (Math.abs(yspeed) < 1) {
stopp = true;
}
}
this._rotation = this._rotation + rotspeed;
num++;
if (num > this._parent.fade) {
A = A - this._parent.fadeout;
if (A < this._parent.fadeout) {
_global.jeepreset(this._parent._parent._name);
}
}
}
}
Instance of Symbol 492 MovieClip "bit2" in Symbol 507 MovieClip Frame 55
onClipEvent (load) {
xspeed = ((Math.random() * this._parent.xran) - (this._parent.xran / 2)) + (this._parent._parent.speed * 5);
yspeed = ((-Math.random()) * this._parent.yran) - this._parent.yoff;
num = 0;
if (this._parent._parent.dir == 1) {
xspeed = -xspeed;
}
rotspeed = (Math.random() * this._parent.rotran) - (this._parent.rotran / 2);
stopp = false;
A = 100;
}
onClipEvent (enterFrame) {
if (_global.daygo == true) {
this._x = this._x + xspeed;
if (stopp == false) {
this._y = this._y + yspeed;
yspeed = yspeed + this._parent.grav;
}
if (this._y > this._parent.ground) {
yspeed = (-yspeed) * this._parent.bouncy;
xspeed = xspeed * 0.5;
rotspeed = rotspeed * 0.5;
if (Math.abs(yspeed) < 1) {
stopp = true;
}
}
this._rotation = this._rotation + rotspeed;
num++;
if (num > this._parent.fade) {
A = A - this._parent.fadeout;
if (A < this._parent.fadeout) {
_global.jeepreset(this._parent._parent._name);
}
}
}
}
Instance of Symbol 494 MovieClip "bit0" in Symbol 507 MovieClip Frame 55
onClipEvent (load) {
xspeed = ((Math.random() * this._parent.xran) - (this._parent.xran / 2)) + (this._parent._parent.speed * 5);
yspeed = ((-Math.random()) * this._parent.yran) - this._parent.yoff;
num = 0;
if (this._parent._parent.dir == 1) {
xspeed = -xspeed;
}
rotspeed = (Math.random() * this._parent.rotran) - (this._parent.rotran / 2);
stopp = false;
A = 100;
}
onClipEvent (enterFrame) {
if (_global.daygo == true) {
this._x = this._x + xspeed;
if (stopp == false) {
this._y = this._y + yspeed;
yspeed = yspeed + this._parent.grav;
}
if (this._y > this._parent.ground) {
yspeed = (-yspeed) * this._parent.bouncy;
xspeed = xspeed * 0.5;
rotspeed = rotspeed * 0.5;
if (Math.abs(yspeed) < 1) {
stopp = true;
}
}
this._rotation = this._rotation + rotspeed;
num++;
if (num > this._parent.fade) {
A = A - this._parent.fadeout;
if (A < this._parent.fadeout) {
_global.jeepreset(this._parent._parent._name);
}
}
}
}
Instance of Symbol 496 MovieClip "bit4" in Symbol 507 MovieClip Frame 55
onClipEvent (load) {
xspeed = ((Math.random() * this._parent.xran) - (this._parent.xran / 2)) + (this._parent._parent.speed * 5);
yspeed = ((-Math.random()) * this._parent.yran) - this._parent.yoff;
num = 0;
if (this._parent._parent.dir == 1) {
xspeed = -xspeed;
}
rotspeed = (Math.random() * this._parent.rotran) - (this._parent.rotran / 2);
stopp = false;
A = 100;
}
onClipEvent (enterFrame) {
if (_global.daygo == true) {
this._x = this._x + xspeed;
if (stopp == false) {
this._y = this._y + yspeed;
yspeed = yspeed + this._parent.grav;
}
if (this._y > this._parent.ground) {
yspeed = (-yspeed) * this._parent.bouncy;
xspeed = xspeed * 0.5;
rotspeed = rotspeed * 0.5;
if (Math.abs(yspeed) < 1) {
stopp = true;
}
}
this._rotation = this._rotation + rotspeed;
num++;
if (num > this._parent.fade) {
A = A - this._parent.fadeout;
if (A < this._parent.fadeout) {
_global.jeepreset(this._parent._parent._name);
}
}
}
}
Instance of Symbol 498 MovieClip "bit7" in Symbol 507 MovieClip Frame 55
onClipEvent (load) {
xspeed = ((Math.random() * this._parent.xran) - (this._parent.xran / 2)) + (this._parent._parent.speed * 5);
yspeed = ((-Math.random()) * this._parent.yran) - this._parent.yoff;
num = 0;
if (this._parent._parent.dir == 1) {
xspeed = -xspeed;
}
rotspeed = (Math.random() * this._parent.rotran) - (this._parent.rotran / 2);
stopp = false;
A = 100;
}
onClipEvent (enterFrame) {
if (_global.daygo == true) {
this._x = this._x + xspeed;
if (stopp == false) {
this._y = this._y + yspeed;
yspeed = yspeed + this._parent.grav;
}
if (this._y > this._parent.ground) {
yspeed = (-yspeed) * this._parent.bouncy;
xspeed = xspeed * 0.5;
rotspeed = rotspeed * 0.5;
if (Math.abs(yspeed) < 1) {
stopp = true;
}
}
this._rotation = this._rotation + rotspeed;
num++;
if (num > this._parent.fade) {
A = A - this._parent.fadeout;
if (A < this._parent.fadeout) {
_global.jeepreset(this._parent._parent._name);
}
}
}
}
Instance of Symbol 502 MovieClip "bit3" in Symbol 507 MovieClip Frame 55
onClipEvent (load) {
xspeed = ((Math.random() * this._parent.xran) - (this._parent.xran / 2)) + (this._parent._parent.speed * 5);
yspeed = ((-Math.random()) * this._parent.yran) - this._parent.yoff;
num = 0;
if (this._parent._parent.dir == 1) {
xspeed = -xspeed;
}
rotspeed = (Math.random() * this._parent.rotran) - (this._parent.rotran / 2);
stopp = false;
A = 100;
}
onClipEvent (enterFrame) {
if (_global.daygo == true) {
this._x = this._x + xspeed;
if (stopp == false) {
this._y = this._y + yspeed;
yspeed = yspeed + this._parent.grav;
}
if (this._y > this._parent.ground) {
yspeed = (-yspeed) * this._parent.bouncy;
xspeed = xspeed * 0.5;
rotspeed = rotspeed * 0.5;
if (Math.abs(yspeed) < 1) {
stopp = true;
}
}
this._rotation = this._rotation + rotspeed;
num++;
if (num > this._parent.fade) {
A = A - this._parent.fadeout;
if (A < this._parent.fadeout) {
_global.jeepreset(this._parent._parent._name);
}
}
}
}
Instance of Symbol 504 MovieClip "bit1" in Symbol 507 MovieClip Frame 55
onClipEvent (load) {
xspeed = ((Math.random() * this._parent.xran) - (this._parent.xran / 2)) + (this._parent._parent.speed * 5);
yspeed = ((-Math.random()) * this._parent.yran) - this._parent.yoff;
num = 0;
if (this._parent._parent.dir == 1) {
xspeed = -xspeed;
}
rotspeed = (Math.random() * this._parent.rotran) - (this._parent.rotran / 2);
stopp = false;
A = 100;
}
onClipEvent (enterFrame) {
if (_global.daygo == true) {
this._x = this._x + xspeed;
if (stopp == false) {
this._y = this._y + yspeed;
yspeed = yspeed + this._parent.grav;
}
if (this._y > this._parent.ground) {
yspeed = (-yspeed) * this._parent.bouncy;
xspeed = xspeed * 0.5;
rotspeed = rotspeed * 0.5;
if (Math.abs(yspeed) < 1) {
stopp = true;
}
}
this._rotation = this._rotation + rotspeed;
num++;
if (num > this._parent.fade) {
A = A - this._parent.fadeout;
if (A < this._parent.fadeout) {
_global.jeepreset(this._parent._parent._name);
}
}
}
}
Instance of Symbol 487 MovieClip "bit8" in Symbol 507 MovieClip Frame 55
onClipEvent (load) {
xspeed = ((Math.random() * this._parent.xran) - (this._parent.xran / 2)) + (this._parent._parent.speed * 5);
yspeed = ((-Math.random()) * this._parent.yran) - this._parent.yoff;
num = 0;
if (this._parent._parent.dir == 1) {
xspeed = -xspeed;
}
rotspeed = (Math.random() * this._parent.rotran) - (this._parent.rotran / 2);
stopp = false;
A = 100;
}
onClipEvent (enterFrame) {
if (_global.daygo == true) {
this._x = this._x + xspeed;
if (stopp == false) {
this._y = this._y + yspeed;
yspeed = yspeed + this._parent.grav;
}
if (this._y > this._parent.ground) {
yspeed = (-yspeed) * this._parent.bouncy;
xspeed = xspeed * 0.98;
rotspeed = rotspeed * 0.5;
if (Math.abs(yspeed) < 1) {
stopp = true;
}
}
this._rotation = this._rotation + rotspeed;
num++;
if (num > this._parent.fade) {
A = A - this._parent.fadeout;
if (A < this._parent.fadeout) {
_global.jeepreset(this._parent._parent._name);
}
}
}
}
Instance of Symbol 487 MovieClip "bit9" in Symbol 507 MovieClip Frame 55
onClipEvent (load) {
xspeed = ((Math.random() * this._parent.xran) - (this._parent.xran / 2)) + (this._parent._parent.speed * 5);
yspeed = ((-Math.random()) * this._parent.yran) - this._parent.yoff;
if (this._parent._parent.dir == 1) {
xspeed = -xspeed;
}
num = 0;
rotspeed = (Math.random() * this._parent.rotran) - (this._parent.rotran / 2);
stopp = false;
A = 100;
}
onClipEvent (enterFrame) {
if (_global.daygo == true) {
this._x = this._x + xspeed;
if (stopp == false) {
this._y = this._y + yspeed;
yspeed = yspeed + this._parent.grav;
}
if (this._y > this._parent.ground) {
yspeed = (-yspeed) * this._parent.bouncy;
xspeed = xspeed * 0.98;
rotspeed = rotspeed * 0.5;
if (Math.abs(yspeed) < 1) {
stopp = true;
}
}
this._rotation = this._rotation + rotspeed;
num++;
if (num > this._parent.fade) {
A = A - this._parent.fadeout;
if (A < this._parent.fadeout) {
_global.jeepreset(this._parent._parent._name);
}
}
}
}
Symbol 507 MovieClip Frame 56
_root.explosion.start();
Symbol 507 MovieClip Frame 71
stop();
Instance of Symbol 507 MovieClip "man" in Symbol 508 MovieClip [jeep] Frame 1
onClipEvent (load) {
xran = 15;
yran = 15;
yoff = 25;
fade = 100;
fadeout = 5;
grav = 3;
ground = 100;
bouncy = 0.5;
rotran = 12;
}
Symbol 521 MovieClip Frame 20
gotoAndPlay ("walk");
Symbol 521 MovieClip Frame 44
_global.dmghouse(_global.tankdmg);
_root.tankshot.start();
Symbol 521 MovieClip Frame 104
gotoAndPlay ("attack");
Symbol 521 MovieClip Frame 105
_root.grenblow.start();
Symbol 521 MovieClip Frame 290
_global.tankreset(this._parent._name);
Symbol 524 MovieClip Frame 34
this._parent.removeMovieClip();
Symbol 525 MovieClip [laserpew] Frame 1
this.onEnterFrame = function () {
if (_global.daygo == true) {
this.laser.play();
} else {
this.laser.stop();
}
if (_root._currentframe != 5) {
removeMovieClip(this);
}
};
Instance of Symbol 524 MovieClip "laser" in Symbol 525 MovieClip [laserpew] Frame 1
onClipEvent (enterFrame) {
if (_root._currentframe == 4) {
this._parent.removeMovieClip();
}
}
Symbol 542 MovieClip Frame 1
stop();
Instance of Symbol 542 MovieClip "muzzle" in Symbol 546 MovieClip Frame 1
onClipEvent (load) {
num = 0;
numto = 30;
}
onClipEvent (enterFrame) {
if (_global.daygo == true) {
if ((this._parent._parent._x > 150) and (_global.gametype != 2)) {
num++;
if (num > numto) {
this.gotoAndPlay(2);
_global.dmghouse(_global.termgundmg);
num = 0;
}
}
}
}
Symbol 546 MovieClip Frame 43
gotoAndPlay ("walk");
Symbol 546 MovieClip Frame 92
gotoAndPlay ("walk");
Instance of Symbol 541 MovieClip in Symbol 546 MovieClip Frame 93
onClipEvent (load) {
count = 0;
countto = 3;
dmgcount = 0;
dmgto = 6;
}
onClipEvent (enterFrame) {
if (_global.daygo == true) {
count++;
if (count > countto) {
this._parent.attachMovie("flamesprite", "flamesprite" + this._parent.num, this._parent.num);
this._parent["flamesprite" + this._parent.num]._x = this._parent.arm._x + (Math.sin(((-this._parent.arm._rotation) + 90) * 0.01745) * 110);
this._parent["flamesprite" + this._parent.num]._y = this._parent.arm._y + (Math.cos(((-this._parent.arm._rotation) + 90) * 0.01745) * 110);
this._parent["flamesprite" + this._parent.num].xspeed = Math.sin(((-this._parent.arm._rotation) + 90) * 0.01745);
this._parent["flamesprite" + this._parent.num].yspeed = Math.cos(((-this._parent.arm._rotation) + 90) * 0.01745);
this._parent.num++;
count = 0;
}
dmgcount++;
if (dmgcount > dmgto) {
_global.dmghouse(_global.termdmg);
dmgcount = 0;
}
}
}
Symbol 546 MovieClip Frame 161
_global.dmghouse(_global.termdmg);
Symbol 546 MovieClip Frame 162
gotoAndPlay ("attack");
Symbol 546 MovieClip Frame 353
_global.termreset(this._parent._name);
Instance of Symbol 546 MovieClip "man" in Symbol 547 MovieClip [term] Frame 1
onClipEvent (load) {
num = 0;
}
Symbol 548 MovieClip [twrflamesprite] Frame 1
scale = 100;
speed = 12;
this.onEnterFrame = function () {
if (_global.daygo == true) {
this._x = this._x + (xspeed * speed);
this._y = this._y + (yspeed * speed);
scale = scale + 35;
this._xscale = scale;
this._yscale = scale;
this._alpha = this._alpha - 5;
if (this._alpha < 5) {
this.removeMovieClip();
}
} else if (_root._currentframe != 5) {
this.removeMovieClip(this);
}
};
Symbol 549 MovieClip [flamesprite] Frame 1
scale = 100;
speed = 12;
this.onEnterFrame = function () {
if (_global.daygo == true) {
this._x = this._x + (xspeed * speed);
this._y = this._y + (yspeed * speed);
scale = scale + 35;
this._xscale = scale;
this._yscale = scale;
this._alpha = this._alpha - 5;
if (this._alpha < 5) {
this.removeMovieClip();
}
} else if (_root._currentframe != 5) {
this.removeMovieClip(this);
}
};
Instance of Symbol 8 MovieClip in Symbol 553 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 8;
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.daygo == true) {
this._rotation = this._rotation + 45;
}
}
Symbol 560 MovieClip [puff] Frame 1
xspeed = Math.random() - 0.5;
yspeed = Math.random() - 0.5;
this.onEnterFrame = function () {
if (_global.daygo == true) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
this._alpha = this._alpha - 3;
}
if ((this._alpha < 5) or (_root._currentframe != 5)) {
removeMovieClip(this);
}
};
Symbol 562 MovieClip [bomb] Frame 1
xspeed = 13;
yspeed = 0;
grav = 0.3;
this._rotation = -90;
this.onEnterFrame = function () {
if (_global.daygo == true) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
yspeed = yspeed + grav;
this._rotation = this._rotation + 1;
if (this._y > 260) {
_global.fatassmissileboom(this._x, this._y);
this.removeMovieClip();
}
}
};
Symbol 564 MovieClip [grenade] Frame 1
this._x = 680;
this._y = 230;
xspeed = (680 - _root._xmouse) / 28;
yspeed = ((230 - _root._ymouse) / 40) + 12;
ground = _root._ymouse;
if (ground < 230) {
ground = 230;
}
this.onEnterFrame = function () {
if (_global.daygo == true) {
if (this._y > ground) {
_global.missileboom(this._x, this._y, _global.grendmg, _global.grenrad);
_root.grenboom.start();
removeMovieClip(this);
} else {
this._x = this._x - xspeed;
this._y = this._y - yspeed;
yspeed = yspeed - 1;
}
x = lastx - this._x;
y = lasty - this._y;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
this._rotation = ((((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide) + 180;
lastx = this._x;
lasty = this._y;
}
if (_root._currentframe == 4) {
removeMovieClip(this);
}
};
Symbol 589 MovieClip [missileboom] Frame 1
this.onEnterFrame = function () {
if (_global.daygo == false) {
stop();
} else {
play();
}
if (_root._currentframe != 5) {
unloadMovie (this);
}
};
Symbol 589 MovieClip [missileboom] Frame 38
this.removeMovieClip();
this.unloadMovie();
Symbol 604 MovieClip Frame 1
stop();
Symbol 604 MovieClip Frame 2
stop();
Symbol 608 MovieClip Frame 1
stop();
Symbol 614 MovieClip Frame 1
stop();
Symbol 614 MovieClip Frame 2
_global.dmghouse(_global.mechgundmg);
_root.para.start();
Symbol 615 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 2
stop();
Symbol 630 MovieClip Frame 31
this._parent.removeMovieClip();
this.unloadMovie();
stop();
Symbol 631 MovieClip Frame 9
this.speed = 0;
this.inc = Math.abs(this.inc);
Instance of Symbol 595 MovieClip "frontleg" in Symbol 631 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop("start");
}
Symbol 631 MovieClip Frame 32
this.inc = -this.inc;
Symbol 631 MovieClip Frame 47
this.speed = 0;
this.inc = Math.abs(this.inc);
Symbol 631 MovieClip Frame 77
this.inc = -this.inc;
Symbol 631 MovieClip Frame 85
gotoAndPlay ("walk");
Symbol 631 MovieClip Frame 86
_root.mushroomsound.start();
Instance of Symbol 606 MovieClip "p1" in Symbol 631 MovieClip Frame 86
onClipEvent (load) {
xspeed = (Math.random() * this._parent.Pxspeed) - (this._parent.Pxspeed * 0.5);
yspeed = (-Math.random()) * this._parent.Pyspeed;
}
Instance of Symbol 608 MovieClip "p2" in Symbol 631 MovieClip Frame 86
onClipEvent (load) {
xspeed = (Math.random() * this._parent.Pxspeed) - (this._parent.Pxspeed * 0.5);
yspeed = (-Math.random()) * this._parent.Pyspeed;
}
Instance of Symbol 610 MovieClip "p3" in Symbol 631 MovieClip Frame 86
onClipEvent (load) {
xspeed = (Math.random() * this._parent.Pxspeed) - (this._parent.Pxspeed * 0.5);
yspeed = (-Math.random()) * this._parent.Pyspeed;
}
Instance of Symbol 614 MovieClip "p4" in Symbol 631 MovieClip Frame 86
onClipEvent (load) {
xspeed = (Math.random() * this._parent.Pxspeed) - (this._parent.Pxspeed * 0.5);
yspeed = (-Math.random()) * this._parent.Pyspeed;
}
Instance of Symbol 616 MovieClip "p0" in Symbol 631 MovieClip Frame 86
onClipEvent (load) {
xspeed = (Math.random() * this._parent.Pxspeed) - (this._parent.Pxspeed * 0.5);
yspeed = (-Math.random()) * this._parent.Pyspeed;
}
Symbol 631 MovieClip Frame 99
stop();
Instance of Symbol 631 MovieClip "man" in Symbol 632 MovieClip [mech] Frame 1
onClipEvent (load) {
speed = 0;
inc = 0.08;
speedmax = 1.3;
mstop = 250;
mstart = 10;
mnum = 0;
mmax1 = 60;
mmax2 = 70;
mmax3 = 80;
gunwait = 50;
Pgrav = 0.07;
Pground = 80;
Pxspeed = 3;
Pyspeed = 2;
Pdecel = 0.98;
gunnum = 0;
wallbuff = 400;
this.firemissile = function () {
_root.attachMovie("mmissile", ("mmissile" + _global.pnum) + 10000, _global.pnum + 10000);
_root[("mmissile" + _global.pnum) + 10000]._x = this._parent._x - 13;
_root[("mmissile" + _global.pnum) + 10000]._y = this._parent._y - 65;
_root[("mmissile" + _global.pnum) + 10000].rad = _global.mechmissilerad;
_root[("mmissile" + _global.pnum) + 10000].dmg = _global.mechmissiledmg;
_global.pnum++;
_root.missilefire.start();
};
}
onClipEvent (enterFrame) {
if (_global.daygo == true) {
this.body.ass.clear();
this.body.ass.lineStyle(13, 0, 100);
this.body.ass.moveTo((this.frontleg._x - this.body.ass._x) - this.body._x, (this.frontleg._y - this.body.ass._y) - this.body._y);
this.body.ass.lineTo(0, 0);
this.body.ass.lineTo((this.backleg._x - this.body.ass._x) - this.body._x, (this.backleg._y - this.body.ass._y) - this.body._y);
}
}
Instance of Symbol 635 MovieClip in Symbol 656 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.daygo == false) {
stop();
} else {
play();
}
}
Symbol 656 MovieClip Frame 45
gotoAndPlay ("walk");
Symbol 656 MovieClip Frame 47
_root.attachMovie("explosion2", "esplode" + _global.pnum, _global.pnum + 10000);
_root["esplode" + _global.pnum]._x = this._parent._x;
_root["esplode" + _global.pnum]._y = this._parent._y;
_global.pnum++;
_root.explosion.start();
Symbol 657 MovieClip [jet] Frame 1
stop();
Symbol 662 MovieClip [satring] Frame 29
_global.satboomtest(this._x, this._y);
Symbol 662 MovieClip [satring] Frame 65
this.removeMovieClip();
Symbol 674 MovieClip [fisty] Frame 1
this.onEnterFrame = function () {
if (_global.daygo == false) {
stop();
} else {
play();
}
};
Symbol 674 MovieClip [fisty] Frame 9
_global.fistpunch(this._x, this._y);
Symbol 674 MovieClip [fisty] Frame 32
_global.fisting = false;
this.removeMovieClip();
Symbol 675 MovieClip [bitspartan] Frame 1
yspeed = (Math.random() * 3) - 5;
xspeed = xspeed + ((Math.random() * 2) - 1);
rot = (Math.random() * 20) - 10;
die = 0;
this.onEnterFrame = function () {
if (_global.daygo == true) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
this._rotation = this._rotation + rot;
xspeed = xspeed * 0.95;
yspeed = yspeed + _global.bitgrav;
if (this._y > ground) {
this._y = ground;
yspeed = (-yspeed) * 0.3;
rot = rot * 0.5;
die++;
if (die > 3) {
fade = 1;
}
}
}
if (fade == 1) {
this._alpha = this._alpha - 6;
if (this._alpha < 5) {
unloadMovie (this);
}
}
if (_root._currentframe != 5) {
unloadMovie (this);
}
};
Symbol 691 Button
on (release) {
_root.ground.gotoAndStop(1);
_root.fisty.removeMovieClip();
_global.dayover();
_root.gotoAndPlay("start");
_root.youwin.removeMovieClip();
}
Symbol 692 MovieClip [youwin] Frame 16
this.score = _global.score;
this.scoretype = _global.scoretype;
if (_global.gametype == 3) {
_global.score = _global.spartanskilled;
trace(_global.score);
}
if ((_global.cheated == false) and (_global.gametype != 6)) {
_root.kongregateScores.setMode(_global.gametypelabel + _global.diff);
_root.kongregateScores.submit(_global.score);
trace(_global.score);
}
Symbol 692 MovieClip [youwin] Frame 56
stop();
Symbol 704 MovieClip [CheckThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 715 MovieClip [CheckBoxAssets] Frame 1
#initclip 53
mx.controls.CheckBox.prototype.adjustFocusRect = function () {
var _local4 = this._parent.focus_mc;
var _local2 = this.iconName;
var _local3 = this.getStyle("themeColor");
if (_local3 == undefined) {
_local3 = 8453965 /* 0x80FF4D */;
}
var _local8 = _local2._width + 4;
var _local5 = _local2._height + 4;
_local4.setSize(_local8, _local5, 0, 100, _local3);
var _local7 = _local2._x;
var _local6 = _local2._y;
_local4.move((this.x - 2) + _local7, (this.y + _local6) - 2);
};
#endinitclip
Symbol 717 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 719 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 722 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 724 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 727 MovieClip [Defaults] Frame 1
#initclip 54
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 728 MovieClip [UIObjectExtensions] Frame 1
#initclip 55
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 729 MovieClip [UIObject] Frame 1
#initclip 56
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 732 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 733 MovieClip Frame 1
#initclip 57
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 734 MovieClip [FocusRect] Frame 1
#initclip 58
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 735 MovieClip [FocusManager] Frame 1
#initclip 59
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 736 MovieClip [UIComponentExtensions] Frame 1
#initclip 60
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 737 MovieClip [UIComponent] Frame 1
#initclip 61
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 738 MovieClip [SimpleButton] Frame 1
#initclip 62
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 739 MovieClip [Border] Frame 1
#initclip 63
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 740 MovieClip [RectBorder] Frame 1
#initclip 64
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 741 MovieClip [ButtonSkin] Frame 1
#initclip 65
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 742 MovieClip [Button] Frame 1
#initclip 66
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 738 MovieClip [SimpleButton] in Symbol 742 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 743 MovieClip [CheckBox] Frame 1
#initclip 67
Object.registerClass("CheckBox", mx.controls.CheckBox);
#endinitclip
stop();
Instance of Symbol 742 MovieClip [Button] in Symbol 743 MovieClip [CheckBox] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 771 Button
on (release) {
this.gotoAndStop(2);
}
Symbol 776 Button
on (release) {
_global.quit();
_root.gotoAndStop("start");
_root.pausescreen.removeMovieClip();
}
Symbol 779 Button
on (release) {
gotoAndStop (1);
}
Symbol 781 MovieClip Frame 1
stop();
Symbol 782 MovieClip [pause] Frame 1
var holenum = 0;
var size = 5;
this.shoot = function (X, Y) {
this.draw.attachMovie("pausebullethole", "hole" + holenum, holenum + 1);
this.draw["hole" + holenum]._x = X;
this.draw["hole" + holenum]._y = Y;
this.draw.createEmptyMovieClip("draw" + holenum, holenum - 9999);
this.draw["draw" + holenum]._x = X;
this.draw["draw" + holenum]._y = Y;
this.draw["draw" + holenum].lineStyle(1, 0, 0);
var _local6 = "linear";
var _local5 = [0, 16777215];
var _local4 = [20, 70];
var _local8 = [0, 255];
var _local3 = new flash.geom.Matrix();
_local3.createGradientBox(20, 20, 45, -10, -10);
var _local7 = "pad";
this.draw["draw" + holenum].beginGradientFill(_local6, _local5, _local4, _local8, _local3, _local7);
this.draw["draw" + holenum].moveTo(-10, -10);
inc = 0.418666666666667;
dist = (Math.random() * (size / 2)) + size;
this.draw["draw" + holenum].moveTo(0 * dist, 1 * dist);
i = inc;
while (i < 6.28) {
dist = (Math.random() * size) + size;
this.draw["draw" + holenum].lineTo(Math.sin(i) * dist, Math.cos(i) * dist);
i = i + inc;
}
_root.pistol.start();
holenum++;
};
this.onMouseDown = function () {
this.shoot(_root._xmouse, _root._ymouse);
};
Instance of Symbol 743 MovieClip [CheckBox] in Symbol 782 MovieClip [pause] Frame 1
//component parameters
onClipEvent (construct) {
label = "Special Effects";
labelPlacement = "right";
selected = true;
}
onClipEvent (load) {
function __f_load(eventObj) {
this.selected = _global.effects;
}
this.addEventListener("load", __f_load);
}
onClipEvent (load) {
function __f_click(eventObj) {
_global.effects = this.selected;
trace(_global.effects);
}
this.addEventListener("click", __f_click);
}
Symbol 787 MovieClip Frame 1
this.onEnterFrame = function () {
if (_global.daygo == true) {
this._y = this._y + ((-100 - this._y) * 0.1);
this._alpha = this._alpha - 2;
if (this._alpha < 2) {
removeMovieClip(this._parent);
}
}
if (_root._currentframe != 9) {
removeMovieClip(this._parent);
}
};
Symbol 789 MovieClip [bomber] Frame 1
dropped = false;
this.onEnterFrame = function () {
if (_global.daygo == true) {
this._x = this._x + (Math.cos(this._rotation * 0.01745) * _global.bomberspeed);
this._y = this._y + (Math.sin(this._rotation * 0.01745) * _global.bomberspeed);
this._rotation = this._rotation - this.rot;
if ((this._rotation < -3) and (dropped == false)) {
_root.attachMovie("bomb", "bomb", _global.pnum);
_root.bomb._x = this._x;
_root.bomb._y = this._y;
_global.pnum++;
dropped = true;
}
if (this._x > 900) {
this.removeMovieClip();
}
}
};
Symbol 810 MovieClip Frame 1
stop();
Symbol 810 MovieClip Frame 2
gotoAndStop (1);
Symbol 810 MovieClip Frame 9
if (this._parent.action == "attack") {
_global.dmghouse(_global.truckdmg);
}
Symbol 810 MovieClip Frame 10
_global.shakin = 1;
_global.shake = 15;
this._parent.action = "dead";
_global.truckboom(this._parent._x, this._parent._y, _global.truckboomdmg, _global.truckboomrad);
Symbol 810 MovieClip Frame 126
_global.truckreset(this._parent._name);
this.gotoAndStop(1);
Symbol 818 MovieClip Frame 110
this.gotoAndStop(1);
_global.quake();
Symbol 819 MovieClip [twrquake] Frame 1
num = 0;
wait = _global.quakewaitORIG;
this.box.stop();
loadin = 1;
twrnum = _global.twrquakenum;
_global.twrquakenum++;
this.sync = function () {
startnum = ((wait - 240) / _global.twrquakenum) * twrnum;
num = startnum;
trace(num);
};
this.onEnterFrame = function () {
if (_global.daygo == true) {
num++;
if ((num > (140 - wait)) or (this.box._currentframe > 1)) {
this.box.play();
num = 0;
}
} else {
this.box.stop();
num = startnum;
}
if (_root._currentframe == 4) {
this.box.gotoAndStop(1);
}
};
Symbol 827 MovieClip [twrtesla] Frame 1
zapnum = 0;
zapto = 4;
inc = 20;
ran = 10;
yoff = -40;
tx1 = this._parent._x;
ty1 = this._parent._y + yoff;
twrnum = _global.twrteslanum;
_global.twrteslanum++;
rad = _global.teslaradORIG;
dmg = _global.tesladmgORIG;
Target = "blank";
_root.createEmptyMovieClip("draw" + this._parent._name, 89478 + twrnum);
_root["draw" + this._parent._name]._x = this._parent._x;
_root["draw" + this._parent._name]._y = this._parent._y;
num = 100;
wait = _global.teslawaitORIG;
loadin = 1;
this.sync = function () {
num = 100 - ((Math.abs(wait - 100) / _global.twrteslanum) * twrnum);
};
this.onEnterFrame = function () {
if (daygo == true) {
num--;
if (num < wait) {
_global.teslahittest(this._parent._x, this._parent._y, this._parent._name);
num = 100;
}
if (Target != "blank") {
_root["draw" + this._parent._name].clear();
_root["draw" + this._parent._name].lineStyle(1, 16777215, random(100));
tx2 = _root[Target]._x;
ty2 = _root[Target]._y;
i = 0;
while (i < (inc + 1)) {
this[("p" + i) + "x"] = ((tx2 - tx1) * (i / inc)) + (random(ran) - (ran / 2));
this[("p" + i) + "y"] = ((ty2 - ty1) * (i / inc)) + (random(ran) - (ran / 2));
i++;
}
i = 1;
while (i < inc) {
_root["draw" + this._parent._name].moveTo(this[("p" + i) + "x"], this[("p" + i) + "y"] + yoff);
_root["draw" + this._parent._name].lineTo(this[("p" + (i + 1)) + "x"], this[("p" + (i + 1)) + "y"] + yoff);
i++;
}
zapnum++;
if (zapnum > zapto) {
_root["draw" + this._parent._name].clear();
Target = "blank";
zapnum = 0;
}
}
}
};
Instance of Symbol 826 MovieClip "light" in Symbol 827 MovieClip [twrtesla] Frame 1
onClipEvent (enterFrame) {
if (this._alpha > 1) {
this._alpha = this._alpha * 0.8;
}
}
Symbol 835 MovieClip Frame 1
this.resett = function () {
this._x = -20;
this._y = random(45) - 49;
speed = (Math.random() * 5) + 15;
this._alpha = random(100);
};
this.resett();
this.onEnterFrame = function () {
if (_global.daygo == true) {
this._x = this._x - speed;
this._alpha = this._alpha - 15;
if (this._x < -100) {
this.resett();
}
} else {
this._alpha = 0;
}
};
Symbol 836 MovieClip [twrfan] Frame 1
num = 0;
wait = 15;
amt = _global.fanamtORIG;
rad = _global.fanradORIG;
this.onEnterFrame = function () {
if (_global.daygo == true) {
this.fan.play();
num++;
if (num > wait) {
_global.fanhittest(this._parent._x, this._parent._y, amt, rad);
num = 0;
}
} else {
this.fan.stop();
}
};
Symbol 840 MovieClip [twrmissile] Frame 1
firenum = 200;
fireint = _global.missilefireintORIG;
dmg = _global.missiledmgORIG;
rad = _global.missileradORIG;
burstinc = 3;
burstnum = _global.missileburstnumORIG;
this.twrnum = _global.twrmissilenum;
_global.twrmissilenum++;
this.sync = function () {
firenum = Math.round(200 - ((Math.abs(fireint - 200) / _global.twrmissilenum) * twrnum));
};
this.onEnterFrame = function () {
if (_global.daygo == true) {
firenum--;
if (firenum < fireint) {
j = 0;
while (j < (burstnum + 1)) {
if (firenum == (fireint - (burstinc * j))) {
_root.attachMovie("missile", ("missile" + _global.pnum) + 10000, _global.pnum + 10000);
_root[("missile" + _global.pnum) + 10000]._x = this._parent._x - 10;
_root[("missile" + _global.pnum) + 10000]._y = this._parent._y - 25;
_root[("missile" + _global.pnum) + 10000].rad = rad;
_root[("missile" + _global.pnum) + 10000].dmg = dmg;
_global.missilefindtarget(("missile" + _global.pnum) + 10000);
_root.missilefire.start();
_global.pnum++;
if (j > (burstnum - 1)) {
firenum = 200;
}
}
j++;
}
}
}
};
Symbol 843 MovieClip [CustomBorder] Frame 1
#initclip 68
Object.registerClass("CustomBorder", mx.skins.CustomBorder);
mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder);
#endinitclip
Symbol 855 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 857 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 868 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 870 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 877 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 898 MovieClip [BtnDownArrow] Frame 1
#initclip 69
Object.registerClass("BtnDownArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 899 MovieClip [BtnUpArrow] Frame 1
#initclip 70
Object.registerClass("BtnUpArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 901 MovieClip [VScrollBar] Frame 1
#initclip 71
Object.registerClass("VScrollBar", mx.controls.VScrollBar);
#endinitclip
stop();
Instance of Symbol 742 MovieClip [Button] in Symbol 901 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 738 MovieClip [SimpleButton] in Symbol 901 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 902 MovieClip [HScrollBar] Frame 1
#initclip 72
Object.registerClass("HScrollBar", mx.controls.HScrollBar);
#endinitclip
stop();
Instance of Symbol 742 MovieClip [Button] in Symbol 902 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 738 MovieClip [SimpleButton] in Symbol 902 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 903 MovieClip [UIScrollBar] Frame 1
#initclip 73
Object.registerClass("UIScrollBar", mx.controls.UIScrollBar);
#endinitclip
stop();
Instance of Symbol 901 MovieClip [VScrollBar] in Symbol 903 MovieClip [UIScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 902 MovieClip [HScrollBar] in Symbol 903 MovieClip [UIScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 911 MovieClip [TextInput] Frame 1
#initclip 74
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 915 MovieClip [ProgBarCapThemeColor] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 923 MovieClip [ProgBarMiddleThemeColor] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 928 MovieClip [ProgBarIndThemeColor] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 929 MovieClip [ProgBarIndMiddleThemeColor] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 939 MovieClip [ProgressBar] Frame 1
#initclip 75
Object.registerClass("ProgressBar", mx.controls.ProgressBar);
#endinitclip
stop();
Symbol 942 MovieClip [Label] Frame 1
#initclip 76
Object.registerClass("Label", mx.controls.Label);
#endinitclip
stop();
Symbol 946 MovieClip [CalendarLayout] Frame 1
#initclip 77
Object.registerClass("CalendarLayout", mx.controls.CalendarLayout);
#endinitclip
stop();
Symbol 948 MovieClip Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "symbolColor");
Symbol 952 MovieClip Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "symbolColor");
Symbol 956 MovieClip [cal_todayIndicator] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 958 MovieClip [cal_disabledArrow ] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "symbolDisabledColor");
Symbol 962 MovieClip [DateChooser] Frame 1
#initclip 78
Object.registerClass("DateChooser", mx.controls.DateChooser);
#endinitclip
stop();
Instance of Symbol 738 MovieClip [SimpleButton] in Symbol 962 MovieClip [DateChooser] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 946 MovieClip [CalendarLayout] in Symbol 962 MovieClip [DateChooser] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 963 MovieClip [ComboBase] Frame 1
#initclip 79
mx.controls.listclasses.DataSelector.Initialize(Object(mx.controls.ComboBase).prototype);
Object.registerClass("ComboBase", mx.controls.ComboBase);
#endinitclip
stop();
Instance of Symbol 738 MovieClip [SimpleButton] in Symbol 963 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 911 MovieClip [TextInput] in Symbol 963 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "null";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 967 MovieClip Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 970 MovieClip [openDateDown] Frame 1
stop();
Symbol 971 MovieClip [openDateOver] Frame 1
stop();
Symbol 972 MovieClip [openDateUp] Frame 1
stop();
Symbol 974 MovieClip [DateField] Frame 1
#initclip 80
Object.registerClass("DateField", mx.controls.DateField);
#endinitclip
stop();
Instance of Symbol 962 MovieClip [DateChooser] in Symbol 974 MovieClip [DateField] Frame 2
//component parameters
onClipEvent (initialize) {
dayNames = [];
dayNames[0] = "S";
dayNames[1] = " M";
dayNames[2] = " T";
dayNames[3] = " W";
dayNames[4] = " T";
dayNames[5] = " F";
dayNames[6] = " S";
disabledDays = [];
disabledDays[0] = 0;
disabledDays[1] = 6;
firstDayOfWeek = 0;
monthNames = [];
monthNames[0] = "January";
monthNames[1] = " February";
monthNames[2] = " March";
monthNames[3] = " April";
monthNames[4] = " May";
monthNames[5] = " June";
monthNames[6] = " July";
monthNames[7] = " August";
monthNames[8] = " September";
monthNames[9] = " October";
monthNames[10] = " November";
monthNames[11] = " December";
showToday = true;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 979 MovieClip [DataProvider] Frame 1
#initclip 81
Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider);
#endinitclip
stop();
Symbol 980 MovieClip [DataSelector] Frame 1
#initclip 82
Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector);
#endinitclip
stop();
Symbol 981 MovieClip [SelectableRow] Frame 1
#initclip 83
Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow);
#endinitclip
stop();
Symbol 982 MovieClip [View] Frame 1
#initclip 84
Object.registerClass("View", mx.core.View);
#endinitclip
stop();
Symbol 983 MovieClip [ScrollView] Frame 1
#initclip 85
Object.registerClass("ScrollView", mx.core.ScrollView);
#endinitclip
stop();
Instance of Symbol 902 MovieClip [HScrollBar] in Symbol 983 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 901 MovieClip [VScrollBar] in Symbol 983 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 984 MovieClip [ScrollSelectList] Frame 1
#initclip 86
Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList);
#endinitclip
stop();
Symbol 985 MovieClip [List] Frame 1
#initclip 87
Object.registerClass("List", mx.controls.List);
#endinitclip
stop();
Symbol 991 MovieClip [ComboDownArrowDisabled] Frame 1
#initclip 88
Object.registerClass("ComboDownArrowDisabled", mx.controls.SimpleButton);
#endinitclip
Symbol 993 MovieClip [ComboThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 996 MovieClip [ComboAssets] Frame 1
#initclip 89
mx.controls.ComboBox.prototype.downArrowUpName = "ComboDownArrowUp";
mx.controls.ComboBox.prototype.downArrowDownName = "ComboDownArrowDown";
mx.controls.ComboBox.prototype.downArrowOverName = "ComboDownArrowOver";
mx.controls.ComboBox.prototype.downArrowDisabledName = "ComboDownArrowDisabled";
mx.controls.ComboBox.prototype.wrapDownArrowButton = false;
mx.controls.ComboBox.prototype.dropDownBorderStyle = "solid";
mx.controls.ComboBox.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, {bl:0, tl:0, tr:5, br:5}, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
#endinitclip
Symbol 997 MovieClip [ComboBox] Frame 1
#initclip 90
Object.registerClass("ComboBox", mx.controls.ComboBox);
#endinitclip
stop();
Instance of Symbol 985 MovieClip [List] in Symbol 997 MovieClip [ComboBox] Frame 2
//component parameters
onClipEvent (initialize) {
multipleSelection = false;
rowHeight = 20;
}
Symbol 1011 MovieClip [RadioThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 1015 MovieClip [RadioThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 1021 MovieClip [RadioButtonAssets] Frame 1
#initclip 91
mx.controls.RadioButton.prototype.adjustFocusRect = function () {
var _local4 = this._parent.focus_mc;
var _local2 = this.iconName;
var _local3 = this.getStyle("themeColor");
if (_local3 == undefined) {
_local3 = 8453965 /* 0x80FF4D */;
}
var _local5 = _local2._width + 4;
var _local6 = _local2._height + 4;
_local4.setSize(_local5, _local6, 8, 100, _local3);
var _local8 = _local2._x;
var _local7 = _local2._y;
_local4.move((this.x - 2) + _local8, (this.y + _local7) - 2);
};
#endinitclip
Symbol 1022 MovieClip [RadioButton] Frame 1
#initclip 92
Object.registerClass("RadioButton", mx.controls.RadioButton);
#endinitclip
stop();
Instance of Symbol 742 MovieClip [Button] "foo" in Symbol 1022 MovieClip [RadioButton] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 1029 MovieClip [StepThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 1041 MovieClip [NumericStepper] Frame 1
#initclip 93
Object.registerClass("NumericStepper", mx.controls.NumericStepper);
#endinitclip
stop();
Instance of Symbol 738 MovieClip [SimpleButton] in Symbol 1041 MovieClip [NumericStepper] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 911 MovieClip [TextInput] in Symbol 1041 MovieClip [NumericStepper] Frame 2
//component parameters
onClipEvent (initialize) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "null";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 1045 MovieClip in Symbol 1047 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 0.4;
}
Symbol 1051 MovieClip Frame 1
this.swapDepths(-9999999);
Symbol 1061 MovieClip Frame 1
stop();
Instance of Symbol 1065 MovieClip in Symbol 1069 MovieClip Frame 1
onClipEvent (load) {
this.wallheight = 116;
}
Symbol 1073 Button
on (release) {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
getURL ("http://www.kongregate.com/?gamereferral=stormthehouse3", "_blank");
__com_mochibot__("172ef73b", this, 10301, true);
}
Symbol 1093 MovieClip Frame 138
this.onEnterFrame = function () {
this._alpha = this._alpha - 3;
if (this._alpha < 3) {
this._parent.play();
}
};
stop();
Symbol 1094 MovieClip Frame 1
stop();
Symbol 1094 MovieClip Frame 2
stop();
Symbol 1094 MovieClip Frame 18
_root.gotoAndStop(3);
_global.sunpos = _global.sunposT;
_global.skypos();
_root.mainmenu._alpha = 0;
stop();
Symbol 1097 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this._parent.onfire == false) {
this._alpha = this._alpha - 10;
if (this._alpha < 10) {
gotoAndStop (1);
}
}
};
Symbol 1097 MovieClip Frame 2
stop();
Symbol 1098 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this._parent.onfire == false) {
this._alpha = this._alpha - 10;
if (this._alpha < 10) {
gotoAndStop (1);
}
}
};
Symbol 1098 MovieClip Frame 2
stop();
Symbol 1104 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this._parent.onfire == false) {
this._alpha = this._alpha - 10;
if (this._alpha < 10) {
gotoAndStop (1);
}
}
};
Symbol 1104 MovieClip Frame 2
stop();
Symbol 1110 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this._parent.onfire == false) {
this._alpha = this._alpha - 10;
if (this._alpha < 10) {
gotoAndStop (1);
}
}
};
Symbol 1110 MovieClip Frame 2
stop();
Symbol 1116 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this._parent.onfire == false) {
this._alpha = this._alpha - 10;
if (this._alpha < 10) {
gotoAndStop (1);
}
}
};
Symbol 1116 MovieClip Frame 2
stop();
Symbol 1117 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this._parent.onfire == false) {
this._alpha = this._alpha - 10;
if (this._alpha < 10) {
gotoAndStop (1);
}
}
};
Symbol 1117 MovieClip Frame 2
stop();
Symbol 1118 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this._parent.onfire == false) {
this._alpha = this._alpha - 10;
if (this._alpha < 10) {
gotoAndStop (1);
}
}
};
Symbol 1118 MovieClip Frame 2
stop();
Symbol 1120 MovieClip Frame 10
stop();
Symbol 1121 MovieClip Frame 1
stop();
Symbol 1124 Button
on (release) {
fire.gotoAndStop(2);
_root.flamesound.start();
}
Symbol 1127 MovieClip Frame 1
stop();
Symbol 1127 MovieClip Frame 27
_root.house.gotoAndStop(2);
stop();
Symbol 1145 Button
on (release) {
_root.logo.gotoAndPlay(2);
_root.gotoAndStop(2);
this.play();
}
Symbol 1146 MovieClip Frame 1
stop();
Symbol 1146 MovieClip Frame 10
stop();
Symbol 1146 MovieClip Frame 18
stop();
Symbol 1215 MovieClip Frame 21
this._parent.action = "walk";
gotoAndPlay ("walk");
Symbol 1215 MovieClip Frame 37
if (_global.gametype == 3) {
_global.dmghouse(_global.spartandmg);
} else {
_global.dmghouse(_global.sworddmg);
}
_root.clang.start();
Symbol 1215 MovieClip Frame 46
gotoAndPlay ("attack");
Symbol 1215 MovieClip Frame 95
stop();
Symbol 1215 MovieClip Frame 183
stop();
Symbol 1215 MovieClip Frame 238
this._parent.action = "walk";
this._parent._x = this._parent._x + 20;
gotoAndPlay ("walk");
Symbol 1215 MovieClip Frame 307
this._parent.action = "walk";
gotoAndPlay ("walk");
Symbol 1216 Button
on (release) {
this.gotoAndStop(2);
_global.puffblooder(_root._xmouse, _root._ymouse);
_root.pistolfire.start();
this.man.gotoAndPlay("deadrun");
}
Symbol 1217 MovieClip Frame 1
stop();
Symbol 1220 Button
on (release) {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
getURL ("http://www.kongregate.com/?gamereferral=stormthehouse3", "_blank");
__com_mochibot__("172ef73b", this, 10301, true);
}
Symbol 694 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local2 = __width;
var _local3 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj);
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.127";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 695 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 696 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.127";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 697 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton
{
var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject;
function Button () {
super();
}
function init(Void) {
super.init();
}
function draw() {
if (initializing) {
labelPath.visible = true;
}
super.draw();
if (initIcon != undefined) {
_setIcon(initIcon);
}
delete initIcon;
}
function onRelease(Void) {
super.onRelease();
}
function createChildren(Void) {
super.createChildren();
}
function setSkin(tag, linkageName, initobj) {
return(super.setSkin(tag, linkageName, initobj));
}
function viewSkin(varName) {
var _local3 = (getState() ? "true" : "false");
_local3 = _local3 + (enabled ? (phase) : "disabled");
super.viewSkin(varName, {styleName:this, borderStyle:_local3});
}
function invalidateStyle(c) {
labelPath.invalidateStyle(c);
super.invalidateStyle(c);
}
function setColor(c) {
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]].redraw(true);
_local2++;
}
}
function setEnabled(enable) {
labelPath.enabled = enable;
super.setEnabled(enable);
}
function calcSize(tag, ref) {
if ((__width == undefined) || (__height == undefined)) {
return(undefined);
}
if (tag < 7) {
ref.setSize(__width, __height, true);
}
}
function size(Void) {
setState(getState());
setHitArea(__width, __height);
var _local3 = 0;
while (_local3 < 8) {
var _local4 = idNames[_local3];
if (typeof(this[_local4]) == "movieclip") {
this[_local4].setSize(__width, __height, true);
}
_local3++;
}
super.size();
}
function set labelPlacement(val) {
__labelPlacement = val;
invalidate();
//return(labelPlacement);
}
function get labelPlacement() {
return(__labelPlacement);
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
__labelPlacement = val;
invalidate();
}
function getBtnOffset(Void) {
if (getState()) {
var _local2 = btnOffset;
} else if (phase == "down") {
var _local2 = btnOffset;
} else {
var _local2 = 0;
}
return(_local2);
}
function setView(offset) {
var _local16 = (offset ? (btnOffset) : 0);
var _local12 = getLabelPlacement();
var _local7 = 0;
var _local6 = 0;
var _local9 = 0;
var _local8 = 0;
var _local5 = 0;
var _local4 = 0;
var _local3 = labelPath;
var _local2 = iconName;
var _local15 = _local3.textWidth;
var _local14 = _local3.textHeight;
var _local10 = (__width - borderW) - borderW;
var _local11 = (__height - borderW) - borderW;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local9 = Math.min(_local10 - _local7, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local10 - _local9) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local10 - _local9) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local9;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local11 - _local6) / 2;
_local4 = (_local11 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local9 = Math.min(_local10, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local10 - _local9) / 2;
_local2._x = (_local10 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local11 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local11 - _local8) - _local6) / 2);
}
_local2._y = _local4 - _local6;
}
}
var _local13 = borderW + _local16;
_local3._x = _local5 + _local13;
_local3._y = _local4 + _local13;
_local2._x = _local2._x + _local13;
_local2._y = _local2._y + _local13;
}
function set label(lbl) {
setLabel(lbl);
//return(label);
}
function setLabel(label) {
if (label == "") {
labelPath.removeTextField();
refresh();
return(undefined);
}
if (labelPath == undefined) {
var _local2 = createLabel("labelPath", 200, label);
_local2._width = _local2.textWidth + 5;
_local2._height = _local2.textHeight + 5;
if (initializing) {
_local2.visible = false;
}
} else {
delete labelPath.__text;
labelPath.text = label;
refresh();
}
}
function getLabel(Void) {
return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text)));
}
function get label() {
return(getLabel());
}
function _getIcon(Void) {
return(_iconLinkageName);
}
function get icon() {
if (initializing) {
return(initIcon);
}
return(_iconLinkageName);
}
function _setIcon(linkage) {
if (initializing) {
if (linkage == "") {
return(undefined);
}
initIcon = linkage;
} else {
if (linkage == "") {
removeIcons();
return(undefined);
}
super.changeIcon(0, linkage);
super.changeIcon(1, linkage);
super.changeIcon(3, linkage);
super.changeIcon(4, linkage);
super.changeIcon(5, linkage);
_iconLinkageName = linkage;
refresh();
}
}
function set icon(linkage) {
_setIcon(linkage);
//return(icon);
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local2 = hitArea_mc;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, 0, w, h);
_local2.endFill();
_local2.setVisible(false);
}
static var symbolName = "Button";
static var symbolOwner = mx.controls.Button;
var className = "Button";
static var version = "2.0.2.127";
var btnOffset = 0;
var _color = "buttonColor";
var __label = "default value";
var __labelPlacement = "right";
var falseUpSkin = "ButtonSkin";
var falseDownSkin = "ButtonSkin";
var falseOverSkin = "ButtonSkin";
var falseDisabledSkin = "ButtonSkin";
var trueUpSkin = "ButtonSkin";
var trueDownSkin = "ButtonSkin";
var trueOverSkin = "ButtonSkin";
var trueDisabledSkin = "ButtonSkin";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters);
var centerContent = true;
var borderW = 1;
}
Symbol 698 MovieClip [__Packages.mx.controls.CheckBox] Frame 0
class mx.controls.CheckBox extends mx.controls.Button
{
var _getTextFormat, labelPath, iconName;
function CheckBox () {
super();
}
function onRelease() {
super.onRelease();
}
function init() {
super.init();
}
function size() {
super.size();
}
function get emphasized() {
return(undefined);
}
function calcPreferredHeight() {
var _local5 = _getTextFormat();
var _local3 = _local5.getTextExtent2(labelPath.text).height;
var _local4 = iconName._height;
var _local2 = 0;
if ((__labelPlacement == "left") || (__labelPlacement == "right")) {
_local2 = Math.max(_local3, _local4);
} else {
_local2 = _local3 + _local4;
}
return(Math.max(14, _local2));
}
function set toggle(v) {
//return(toggle);
}
function get toggle() {
}
function set icon(v) {
//return(icon);
}
function get icon() {
}
static var symbolName = "CheckBox";
static var symbolOwner = mx.controls.CheckBox;
static var version = "2.0.2.127";
var className = "CheckBox";
var ignoreClassStyleDeclaration = {Button:1};
var btnOffset = 0;
var __toggle = true;
var __selected = false;
var __labelPlacement = "right";
var __label = "CheckBox";
var falseUpSkin = "";
var falseDownSkin = "";
var falseOverSkin = "";
var falseDisabledSkin = "";
var trueUpSkin = "";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "";
var falseUpIcon = "CheckFalseUp";
var falseDownIcon = "CheckFalseDown";
var falseOverIcon = "CheckFalseOver";
var falseDisabledIcon = "CheckFalseDisabled";
var trueUpIcon = "CheckTrueUp";
var trueDownIcon = "CheckTrueDown";
var trueOverIcon = "CheckTrueOver";
var trueDisabledIcon = "CheckTrueDisabled";
var clipParameters = {label:1, labelPlacement:1, selected:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.CheckBox.prototype.clipParameters, mx.controls.Button.prototype.clipParameters);
var centerContent = false;
var borderW = 0;
}
Symbol 744 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 745 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 746 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 747 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 748 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 749 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 750 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 751 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 752 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 753 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 754 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 755 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.2.127";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 756 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 757 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 758 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 759 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 760 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 761 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.127";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 762 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.2.127";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 763 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder
{
var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y;
function ButtonSkin () {
super();
}
function init() {
super.init();
}
function size() {
drawHaloRect(__get__width(), __get__height());
}
function drawHaloRect(w, h) {
var _local6 = getStyle("borderStyle");
var _local4 = getStyle("themeColor");
var _local5 = _parent.emphasized;
clear();
switch (_local6) {
case "falseup" :
if (_local5) {
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
} else {
drawRoundRect(0, 0, w, h, 5, 9542041, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial");
drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial");
drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100);
}
break;
case "falsedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "falserollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "falsedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
break;
case "trueup" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100);
break;
case "truedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "truerollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "truedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.skinRegistry.ButtonSkin = true;
return(true);
}
static var symbolName = "ButtonSkin";
static var symbolOwner = mx.skins.halo.ButtonSkin;
var className = "ButtonSkin";
var backgroundColorName = "buttonColor";
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 841 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar] Frame 0
class mx.controls.scrollClasses.ScrollBar extends mx.core.UIComponent
{
var isScrolling, scrollTrack_mc, scrollThumb_mc, __height, tabEnabled, focusEnabled, boundingBox_mc, setSkin, upArrow_mc, _minHeight, _minWidth, downArrow_mc, createObject, createClassObject, enabled, _height, dispatchEvent, minMode, maxMode, plusMode, minusMode, _parent, getStyle, scrolling, _ymouse;
function ScrollBar () {
super();
}
function get scrollPosition() {
return(_scrollPosition);
}
function set scrollPosition(pos) {
_scrollPosition = pos;
if (isScrolling != true) {
pos = Math.min(pos, maxPos);
pos = Math.max(pos, minPos);
var _local3 = (((pos - minPos) * (scrollTrack_mc.height - scrollThumb_mc._height)) / (maxPos - minPos)) + scrollTrack_mc.top;
scrollThumb_mc.move(0, _local3);
}
//return(scrollPosition);
}
function get pageScrollSize() {
return(largeScroll);
}
function set pageScrollSize(lScroll) {
largeScroll = lScroll;
//return(pageScrollSize);
}
function set lineScrollSize(sScroll) {
smallScroll = sScroll;
//return(lineScrollSize);
}
function get lineScrollSize() {
return(smallScroll);
}
function get virtualHeight() {
return(__height);
}
function init(Void) {
super.init();
_scrollPosition = 0;
tabEnabled = false;
focusEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren(Void) {
if (scrollTrack_mc == undefined) {
setSkin(skinIDTrack, scrollTrackName);
}
scrollTrack_mc.visible = false;
var _local3 = new Object();
_local3.enabled = false;
_local3.preset = mx.controls.SimpleButton.falseDisabled;
_local3.initProperties = 0;
_local3.autoRepeat = true;
_local3.tabEnabled = false;
var _local2;
if (upArrow_mc == undefined) {
_local2 = createButton(upArrowName, "upArrow_mc", skinIDUpArrow, _local3);
}
_local2.buttonDownHandler = onUpArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _local2.height;
_minWidth = _local2.width;
if (downArrow_mc == undefined) {
_local2 = createButton(downArrowName, "downArrow_mc", skinIDDownArrow, _local3);
}
_local2.buttonDownHandler = onDownArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _minHeight + _local2.height;
}
function createButton(linkageName, id, skinID, o) {
if (skinID == skinIDUpArrow) {
o.falseUpSkin = upArrowUpName;
o.falseDownSkin = upArrowDownName;
o.falseOverSkin = upArrowOverName;
} else {
o.falseUpSkin = downArrowUpName;
o.falseDownSkin = downArrowDownName;
o.falseOverSkin = downArrowOverName;
}
var _local3 = createObject(linkageName, id, skinID, o);
this[id].visible = false;
this[id].useHandCursor = false;
return(_local3);
}
function createThumb(Void) {
var _local2 = new Object();
_local2.validateNow = true;
_local2.tabEnabled = false;
_local2.leftSkin = thumbTopName;
_local2.middleSkin = thumbMiddleName;
_local2.rightSkin = thumbBottomName;
_local2.gripSkin = thumbGripName;
createClassObject(mx.controls.scrollClasses.ScrollThumb, "scrollThumb_mc", skinIDThumb, _local2);
}
function setScrollProperties(pSize, mnPos, mxPos, ls) {
var _local4;
var _local2 = scrollTrack_mc;
pageSize = pSize;
largeScroll = (((ls != undefined) && (ls > 0)) ? (ls) : (pSize));
minPos = Math.max(mnPos, 0);
maxPos = Math.max(mxPos, 0);
_scrollPosition = Math.max(minPos, _scrollPosition);
_scrollPosition = Math.min(maxPos, _scrollPosition);
if (((maxPos - minPos) > 0) && (enabled)) {
var _local5 = _scrollPosition;
if (!initializing) {
upArrow_mc.enabled = true;
downArrow_mc.enabled = true;
}
_local2.onPress = (_local2.onDragOver = startTrackScroller);
_local2.onRelease = releaseScrolling;
_local2.onDragOut = (_local2.stopScrolling = stopScrolling);
_local2.onReleaseOutside = releaseScrolling;
_local2.useHandCursor = false;
if (scrollThumb_mc == undefined) {
createThumb();
}
var _local3 = scrollThumb_mc;
if (scrollTrackOverName.length > 0) {
_local2.onRollOver = trackOver;
_local2.onRollOut = trackOut;
}
_local4 = (pageSize / ((maxPos - minPos) + pageSize)) * _local2.height;
if (_local4 < _local3.minHeight) {
if (_local2.height < _local3.minHeight) {
_local3.__set__visible(false);
} else {
_local4 = _local3.minHeight;
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local3.minHeight + 0);
}
} else {
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local4);
}
_local3.setRange(upArrow_mc.__get__height() + 0, (virtualHeight - downArrow_mc.__get__height()) - _local3.__get__height(), minPos, maxPos);
_local5 = Math.min(_local5, maxPos);
scrollPosition = (Math.max(_local5, minPos));
} else {
scrollThumb_mc.__set__visible(false);
if (!initializing) {
upArrow_mc.enabled = false;
downArrow_mc.enabled = false;
}
delete _local2.onPress;
delete _local2.onDragOver;
delete _local2.onRelease;
delete _local2.onDragOut;
delete _local2.onRollOver;
delete _local2.onRollOut;
delete _local2.onReleaseOutside;
}
if (initializing) {
scrollThumb_mc.__set__visible(false);
}
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function draw(Void) {
if (initializing) {
initializing = false;
scrollTrack_mc.visible = true;
upArrow_mc.__set__visible(true);
downArrow_mc.__set__visible(true);
}
size();
}
function size(Void) {
if (_height == 1) {
return(undefined);
}
if (upArrow_mc == undefined) {
return(undefined);
}
var _local3 = upArrow_mc.__get__height();
var _local2 = downArrow_mc.__get__height();
upArrow_mc.move(0, 0);
var _local4 = scrollTrack_mc;
_local4._y = _local3;
_local4._height = (virtualHeight - _local3) - _local2;
downArrow_mc.move(0, virtualHeight - _local2);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll", detail:detail});
}
function isScrollBarKey(k) {
if (k == 36) {
if (scrollPosition != 0) {
scrollPosition = (0);
dispatchScrollEvent(minMode);
}
return(true);
}
if (k == 35) {
if (scrollPosition < maxPos) {
scrollPosition = (maxPos);
dispatchScrollEvent(maxMode);
}
return(true);
}
return(false);
}
function scrollIt(inc, mode) {
var _local3 = smallScroll;
if (inc != "Line") {
_local3 = ((largeScroll == 0) ? (pageSize) : (largeScroll));
}
var _local2 = _scrollPosition + (mode * _local3);
if (_local2 > maxPos) {
_local2 = maxPos;
} else if (_local2 < minPos) {
_local2 = minPos;
}
if (scrollPosition != _local2) {
scrollPosition = (_local2);
var _local4 = ((mode < 0) ? (minusMode) : (plusMode));
dispatchScrollEvent(inc + _local4);
}
}
function startTrackScroller(Void) {
_parent.pressFocus();
if (_parent.scrollTrackDownName.length > 0) {
if (_parent.scrollTrackDown_mc == undefined) {
_parent.setSkin(skinIDTrackDown, scrollTrackDownName);
} else {
_parent.scrollTrackDown_mc.visible = true;
}
}
_parent.trackScroller();
_parent.scrolling = setInterval(_parent, "scrollInterval", getStyle("repeatDelay"), "Page", -1);
}
function scrollInterval(inc, mode) {
clearInterval(scrolling);
if (inc == "Page") {
trackScroller();
} else {
scrollIt(inc, mode);
}
scrolling = setInterval(this, "scrollInterval", getStyle("repeatInterval"), inc, mode);
}
function trackScroller(Void) {
if ((scrollThumb_mc._y + scrollThumb_mc.__get__height()) < _ymouse) {
scrollIt("Page", 1);
} else if (scrollThumb_mc._y > _ymouse) {
scrollIt("Page", -1);
}
}
function dispatchScrollChangedEvent(Void) {
dispatchEvent({type:"scrollChanged"});
}
function stopScrolling(Void) {
clearInterval(_parent.scrolling);
_parent.scrollTrackDown_mc.visible = false;
}
function releaseScrolling(Void) {
_parent.releaseFocus();
stopScrolling();
_parent.dispatchScrollChangedEvent();
}
function trackOver(Void) {
if (_parent.scrollTrackOverName.length > 0) {
if (_parent.scrollTrackOver_mc == undefined) {
_parent.setSkin(skinIDTrackOver, scrollTrackOverName);
} else {
_parent.scrollTrackOver_mc.visible = true;
}
}
}
function trackOut(Void) {
_parent.scrollTrackOver_mc.visible = false;
}
function onUpArrow(Void) {
_parent.scrollIt("Line", -1);
}
function onDownArrow(Void) {
_parent.scrollIt("Line", 1);
}
function onScrollChanged(Void) {
_parent.dispatchScrollChangedEvent();
}
static var symbolOwner = mx.core.UIComponent;
var className = "ScrollBar";
var minPos = 0;
var maxPos = 0;
var pageSize = 0;
var largeScroll = 0;
var smallScroll = 1;
var _scrollPosition = 0;
var scrollTrackName = "ScrollTrack";
var scrollTrackOverName = "";
var scrollTrackDownName = "";
var upArrowName = "BtnUpArrow";
var upArrowUpName = "ScrollUpArrowUp";
var upArrowOverName = "ScrollUpArrowOver";
var upArrowDownName = "ScrollUpArrowDown";
var downArrowName = "BtnDownArrow";
var downArrowUpName = "ScrollDownArrowUp";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDownName = "ScrollDownArrowDown";
var thumbTopName = "ScrollThumbTopUp";
var thumbMiddleName = "ScrollThumbMiddleUp";
var thumbBottomName = "ScrollThumbBottomUp";
var thumbGripName = "ScrollThumbGripUp";
static var skinIDTrack = 0;
static var skinIDTrackOver = 1;
static var skinIDTrackDown = 2;
static var skinIDUpArrow = 3;
static var skinIDDownArrow = 4;
static var skinIDThumb = 5;
var idNames = new Array("scrollTrack_mc", "scrollTrackOver_mc", "scrollTrackDown_mc", "upArrow_mc", "downArrow_mc");
var clipParameters = {minPos:1, maxPos:1, pageSize:1, scrollPosition:1, lineScrollSize:1, pageScrollSize:1, visible:1, enabled:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var initializing = true;
}
Symbol 842 MovieClip [__Packages.mx.controls.UIScrollBar] Frame 0
class mx.controls.UIScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var textField, wasHorizontal, __width, __height, _parent, synchScroll, setScrollProperties, __set__scrollPosition, initializing, _rotation, _xscale, hScroller, vScroller, onChanged, onScroller, scrollPosition, dispatchEvent;
function UIScrollBar () {
super();
}
function init(Void) {
super.init();
textField.owner = this;
horizontal = (wasHorizontal);
if (horizontal) {
((textField != undefined) ? (super.setSize(textField._width, 16)) : (super.setSize(__width, __height)));
} else {
((textField != undefined) ? (super.setSize(16, textField._height)) : (super.setSize(__width, __height)));
}
if (horizontal) {
var _local3 = __width;
__height = __width;
width = _local3;
__width = 16;
}
textField.onScroller = function () {
this.hPosition = this.hscroll;
this.vPosition = this.scroll - 1;
};
if (_targetInstanceName != undefined) {
setScrollTarget(_targetInstanceName);
_targetInstanceName.addListener(this);
}
}
function get _targetInstanceName() {
return(textField);
}
function get height() {
if (wasHorizontal) {
return(__width);
}
return(__height);
}
function get width() {
if (wasHorizontal) {
return(__height);
}
return(__width);
}
function size(Void) {
super.size();
onTextChanged();
}
function draw() {
super.draw();
}
function set _targetInstanceName(t) {
if (t == undefined) {
textField.removeListener(this);
delete textField[(horizontal ? "hScroller" : "vScroller")];
if ((textField.hScroller != undefined) && (textField.vScroller != undefined)) {
textField.unwatch("text");
textField.unwatch("htmltext");
}
}
var _local3 = _parent[t];
textField = _parent[t];
onTextChanged();
//return(_targetInstanceName);
}
function setSize(w, h) {
if (horizontal) {
super.setSize(h, w);
} else {
super.setSize(w, h);
}
}
function onTextChanged(Void) {
if (textField == undefined) {
return(undefined);
}
clearInterval(synchScroll);
if (horizontal) {
var _local2 = textField.hscroll;
setScrollProperties(textField._width, 0, textField.maxhscroll);
__set__scrollPosition(Math.min(_local2, textField.maxhscroll));
} else {
var _local2 = textField.scroll;
var _local3 = textField.bottomScroll - textField.scroll;
setScrollProperties(_local3, 1, textField.maxscroll);
__set__scrollPosition(Math.min(_local2, textField.maxscroll));
}
}
function get horizontal() {
return(wasHorizontal);
}
function set horizontal(v) {
wasHorizontal = v;
if (v and initializing) {
if (_rotation == 90) {
return;
}
_xscale = -100;
_rotation = -90;
}
if (!initializing) {
if (v) {
if (_rotation == 0) {
_rotation = -90;
_xscale = -100;
}
} else if (_rotation == -90) {
_rotation = 0;
_xscale = 100;
}
}
//return(horizontal);
}
function callback(prop, oldval, newval) {
clearInterval(hScroller.synchScroll);
clearInterval(vScroller.synchScroll);
hScroller.synchScroll = setInterval(hScroller, "onTextChanged", 50);
vScroller.synchScroll = setInterval(vScroller, "onTextChanged", 50);
return(newval);
}
function setScrollTarget(tF) {
if (tF == undefined) {
textField.removeListener(this);
delete textField[(horizontal ? "hScroller" : "vScroller")];
if ((textField.hScroller != undefined) && (textField.vScroller != undefined)) {
textField.unwatch("text");
textField.unwatch("htmltext");
}
}
textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
textField = tF;
if (horizontal) {
textField.hScroller = this;
textField.hScroller.lineScrollSize = 5;
} else {
textField.vScroller = this;
textField.vScroller.lineScrollSize = 1;
}
onTextChanged();
onChanged = function (Void) {
this.onTextChanged();
};
onScroller = function (Void) {
if (!this.isScrolling) {
if (!this.horizontal) {
this.scrollPosition = this.textField.scroll;
} else {
this.scrollPosition = this.textField.hscroll;
}
}
};
textField.addListener(this);
textField.watch("text", callback);
textField.watch("htmlText", callback);
}
function scrollHandler(Void) {
if (horizontal) {
var _local2 = textField.background;
textField.hscroll = scrollPosition;
textField.background = _local2;
} else {
textField.scroll = scrollPosition;
}
}
function setEnabled(enable) {
super.setEnabled(enable);
if (enable) {
textField.addListener(this);
} else {
textField.removeListener();
}
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll"});
}
static var symbolName = "UIScrollBar";
static var symbolOwner = mx.controls.UIScrollBar;
var className = "UIScrollBar";
var clipParameters = {_targetInstanceName:1, horizontal:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.UIScrollBar.prototype.clipParameters);
static var version = "2.0.2.127";
}
Symbol 904 MovieClip [__Packages.mx.skins.CustomBorder] Frame 0
class mx.skins.CustomBorder extends mx.skins.Border
{
var __width, __height, l_mc, setSkin, minHeight, minWidth, m_mc, r_mc;
function CustomBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function createChildren(Void) {
}
function draw(Void) {
if (l_mc == undefined) {
var _local2 = setSkin(tagL, leftSkin);
if (horizontal) {
minHeight = l_mc._height;
minWidth = l_mc._width;
} else {
minHeight = l_mc._height;
minWidth = l_mc._width;
}
}
if (m_mc == undefined) {
setSkin(tagM, middleSkin);
if (horizontal) {
minHeight = m_mc._height;
minWidth = minWidth + m_mc._width;
} else {
minHeight = minHeight + m_mc._height;
minWidth = m_mc._width;
}
}
if (r_mc == undefined) {
setSkin(tagR, rightSkin);
if (horizontal) {
minHeight = r_mc._height;
minWidth = minWidth + r_mc._width;
} else {
minHeight = minHeight + r_mc._height;
minWidth = r_mc._width;
}
}
size();
}
function size(Void) {
l_mc.move(0, 0);
if (horizontal) {
r_mc.move(width - r_mc.width, 0);
m_mc.move(l_mc.width, 0);
m_mc.setSize(r_mc.x - m_mc.x, m_mc.height);
} else {
r_mc.move(0, height - r_mc.height, 0);
m_mc.move(0, l_mc.height);
m_mc.setSize(m_mc.width, r_mc.y - m_mc.y);
}
}
static var symbolName = "CustomBorder";
static var symbolOwner = mx.skins.CustomBorder;
static var version = "2.0.2.127";
var className = "CustomBorder";
static var tagL = 0;
static var tagM = 1;
static var tagR = 2;
var idNames = new Array("l_mc", "m_mc", "r_mc");
var leftSkin = "F3PieceLeft";
var middleSkin = "F3PieceMiddle";
var rightSkin = "F3PieceRight";
var horizontal = true;
}
Symbol 905 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb] Frame 0
class mx.controls.scrollClasses.ScrollThumb extends mx.skins.CustomBorder
{
var useHandCursor, ymin, ymax, datamin, datamax, scrollMove, lastY, _ymouse, _y, _parent, onMouseMove, grip_mc, setSkin, gripSkin, __get__width, __get__height;
function ScrollThumb () {
super();
}
function createChildren(Void) {
super.createChildren();
useHandCursor = false;
}
function setRange(_ymin, _ymax, _datamin, _datamax) {
ymin = _ymin;
ymax = _ymax;
datamin = _datamin;
datamax = _datamax;
}
function dragThumb(Void) {
scrollMove = _ymouse - lastY;
scrollMove = scrollMove + _y;
if (scrollMove < ymin) {
scrollMove = ymin;
} else if (scrollMove > ymax) {
scrollMove = ymax;
}
_parent.isScrolling = true;
_y = scrollMove;
var _local2 = Math.round(((datamax - datamin) * (_y - ymin)) / (ymax - ymin)) + datamin;
_parent.scrollPosition = _local2;
_parent.dispatchScrollEvent("ThumbTrack");
updateAfterEvent();
}
function stopDragThumb(Void) {
_parent.isScrolling = false;
_parent.dispatchScrollEvent("ThumbPosition");
_parent.dispatchScrollChangedEvent();
delete onMouseMove;
}
function onPress(Void) {
_parent.pressFocus();
lastY = _ymouse;
onMouseMove = dragThumb;
super.onPress();
}
function onRelease(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onRelease();
}
function onReleaseOutside(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onReleaseOutside();
}
function draw() {
super.draw();
if (grip_mc == undefined) {
setSkin(3, gripSkin);
}
}
function size() {
super.size();
grip_mc.move((__get__width() - grip_mc.width) / 2, (__get__height() - grip_mc.height) / 2);
}
static var symbolOwner = mx.skins.CustomBorder.symbolOwner;
var className = "ScrollThumb";
var btnOffset = 0;
var horizontal = false;
var idNames = new Array("l_mc", "m_mc", "r_mc", "grip_mc");
}
Symbol 906 MovieClip [__Packages.mx.controls.VScrollBar] Frame 0
class mx.controls.VScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var scrollIt;
function VScrollBar () {
super();
}
function init(Void) {
super.init();
}
function isScrollBarKey(k) {
if (k == 38) {
scrollIt("Line", -1);
return(true);
}
if (k == 40) {
scrollIt("Line", 1);
return(true);
}
if (k == 33) {
scrollIt("Page", -1);
return(true);
}
if (k == 34) {
scrollIt("Page", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "VScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
var className = "VScrollBar";
var minusMode = "Up";
var plusMode = "Down";
var minMode = "AtTop";
var maxMode = "AtBottom";
}
Symbol 907 MovieClip [__Packages.mx.controls.HScrollBar] Frame 0
class mx.controls.HScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var _minHeight, _minWidth, _xscale, _rotation, __width, scrollIt;
function HScrollBar () {
super();
}
function getMinWidth(Void) {
return(_minHeight);
}
function getMinHeight(Void) {
return(_minWidth);
}
function init(Void) {
super.init();
_xscale = -100;
_rotation = -90;
}
function get virtualHeight() {
return(__width);
}
function isScrollBarKey(k) {
if (k == 37) {
scrollIt("Line", -1);
return(true);
}
if (k == 39) {
scrollIt("Line", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "HScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
var className = "HScrollBar";
var minusMode = "Left";
var plusMode = "Right";
var minMode = "AtLeft";
var maxMode = "AtRight";
}
Symbol 908 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class mx.controls.TextInput extends mx.core.UIComponent
{
var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled;
function TextInput () {
super();
}
function addEventListener(event, handler) {
if (event == "enter") {
addEnterEvents();
}
super.addEventListener(event, handler);
}
function enterOnKeyDown() {
if (Key.getAscii() == 13) {
owner.dispatchEvent({type:"enter"});
}
}
function addEnterEvents() {
if (enterListener == undefined) {
enterListener = new Object();
enterListener.owner = this;
enterListener.onKeyDown = enterOnKeyDown;
}
}
function init(Void) {
super.init();
label.styleName = this;
tabChildren = true;
tabEnabled = false;
focusTextField = label;
_color = mx.core.UIObject.textColorList;
label.onSetFocus = function () {
this._parent.onSetFocus();
};
label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = onLabelChanged;
}
function setFocus() {
Selection.setFocus(label);
}
function onLabelChanged(Void) {
_parent.dispatchEvent({type:"change"});
_parent.dispatchValueChangedEvent(text);
}
function createChildren(Void) {
super.createChildren();
if (border_mc == undefined) {
createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this});
}
border_mc.swapDepths(label);
label.autoSize = "none";
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
if (label.html == true) {
return(label.htmlText);
}
return(label.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
}
dispatchValueChangedEvent(t);
}
function size(Void) {
border_mc.setSize(__get__width(), __get__height());
var _local2 = border_mc.__get__borderMetrics();
var _local6 = _local2.left + _local2.right;
var _local3 = _local2.top + _local2.bottom;
var _local5 = _local2.left;
var _local4 = _local2.top;
tfx = _local5;
tfy = _local4;
tfw = __get__width() - _local6;
tfh = __get__height() - _local3;
label.move(tfx, tfy);
label.setSize(tfw, tfh + 1);
}
function setEnabled(enable) {
label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic");
label.selectable = enable;
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
label.textColor = col;
}
function onKillFocus(newFocus) {
if (enterListener != undefined) {
Key.removeListener(enterListener);
}
if (bind != undefined) {
updateModel(text);
}
super.onKillFocus(newFocus);
}
function onSetFocus(oldFocus) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
if (enterListener != undefined) {
Key.addListener(enterListener);
}
super.onSetFocus(oldFocus);
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = false;
_local2.wordWrap = false;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic");
size();
}
function setEditable(s) {
__editable = s;
label.type = (s ? "input" : "dynamic");
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(w) {
label.maxChars = w;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(w) {
label.restrict = ((w == "") ? null : (w));
//return(restrict);
}
function get hPosition() {
return(label.hscroll);
}
function set hPosition(w) {
label.hscroll = w;
//return(hPosition);
}
function get maxHPosition() {
return(label.maxhscroll);
}
function get editable() {
return(__editable);
}
function set editable(w) {
setEditable(w);
//return(editable);
}
function get password() {
return(label.password);
}
function set password(w) {
label.password = w;
//return(password);
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
static var symbolName = "TextInput";
static var symbolOwner = mx.controls.TextInput;
static var version = "2.0.2.127";
var className = "TextInput";
var initializing = true;
var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var _maxWidth = mx.core.UIComponent.kStretch;
var __editable = true;
var initText = "";
}
Symbol 912 MovieClip [__Packages.mx.controls.ProgressBar] Frame 0
class mx.controls.ProgressBar extends mx.core.UIObject
{
var _xscale, _yscale, tabEnabled, boundingBox_mc, progTrackLeft_mc, setSkin, progTrackMiddle_mc, progTrackRight_mc, progBarLeft_mc, progBarMiddle_mc, progBarRight_mc, progIndBar_mc, mask_mc, createObject, labelPath, createLabel, setSize, __width, __height, invalidate, __source, __stringSource, si, dispatchEvent;
function ProgressBar () {
super();
}
function init(Void) {
super.init();
_xscale = (_yscale = 100);
tabEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren(Void) {
if (progTrackLeft_mc == undefined) {
setSkin(skinIDProgTrackLeft, progTrackLeftName);
}
if (progTrackMiddle_mc == undefined) {
setSkin(skinIDProgTrackMiddle, progTrackMiddleName);
}
if (progTrackRight_mc == undefined) {
setSkin(skinIDProgTrackRight, progTrackRightName);
}
if (progBarLeft_mc == undefined) {
setSkin(skinIDProgBarLeft, progBarLeftName);
}
if (progBarMiddle_mc == undefined) {
setSkin(skinIDProgBarMiddle, progBarMiddleName);
}
if (progBarRight_mc == undefined) {
setSkin(skinIDProgBarRight, progBarRightName);
}
if (progIndBar_mc == undefined) {
setSkin(skinIDProgIndBar, progIndBarName);
progIndBar_mc._visible = false;
}
if (mask_mc == undefined) {
mask_mc = createObject("BoundingBox", "mask_mc", skinIDMask);
mask_mc._visible = false;
progIndBar_mc.setMask(mask_mc);
}
if (labelPath == undefined) {
labelPath = createLabel("labelPath", skinIDLabel);
labelPath.tabEnabled = false;
labelPath.selectable = false;
labelPath.styleName = this;
}
setSize(__width, __height);
}
function size(Void) {
invalidate();
}
function draw(Void) {
if ((__source == undefined) && (__stringSource != undefined)) {
setSource(__stringSource);
__stringSource = undefined;
}
var _local14 = __width;
var _local22 = __height;
var _local5 = ((progBarLeft_mc._width > progTrackLeft_mc._width) ? (progBarLeft_mc._width) : (progTrackLeft_mc._width));
var _local6 = ((progBarLeft_mc._height > progTrackLeft_mc._height) ? (progBarLeft_mc._height) : (progTrackLeft_mc._height));
var _local15 = ((progBarRight_mc._width > progTrackRight_mc._width) ? (progBarRight_mc._width) : (progTrackRight_mc._width));
var _local7 = _local14;
var _local8 = 0;
var _local9 = 0;
if (__labelPlacement == "top") {
_local8 = _local22 - _local6;
}
if ((__label != undefined) && (__label != "")) {
labelPath._visible = false;
var _local11 = 1;
var _local20 = 1;
var _local18 = 5;
var _local26 = 4;
var _local12 = __value - __minimum;
if (_local12 < 0) {
_local12 = 0;
}
var _local13 = __maximum - __minimum;
if (_local13 < 0) {
_local13 = 0;
}
if ((__labelPlacement == "left") || (__labelPlacement == "right")) {
var _local4 = __label;
if (!__indeterminate) {
_local4 = replace(_local4, "%1", String(Math.floor(_local13 / __conversion)));
_local4 = replace(_local4, "%2", String(Math.floor(_local13 / __conversion)));
_local4 = replace(_local4, "%3", String(100));
_local4 = replace(_local4, "%%", "%");
} else {
_local4 = replace(_local4, "%1", String(Math.floor(_local12 / __conversion)));
_local4 = replace(_local4, "%2", "??");
_local4 = replace(_local4, "%3", "");
_local4 = replace(_local4, "%%", "");
}
labelPath.text = _local4;
_local7 = _local14 - ((labelPath.textWidth + _local18) + _local11);
if (_local7 < (_local5 + _local15)) {
_local7 = 0;
}
if (__labelPlacement == "left") {
_local9 = _local14 - _local7;
}
}
var _local3 = __label;
if (!__indeterminate) {
_local3 = replace(_local3, "%1", String(Math.floor(_local12 / __conversion)));
_local3 = replace(_local3, "%2", String(Math.floor(_local13 / __conversion)));
_local3 = replace(_local3, "%3", String(Math.floor(percentComplete)));
_local3 = replace(_local3, "%%", "%");
} else {
_local3 = replace(_local3, "%1", String(Math.floor(_local12 / __conversion)));
_local3 = replace(_local3, "%2", "??");
_local3 = replace(_local3, "%3", "");
_local3 = replace(_local3, "%%", "");
}
labelPath.text = _local3;
var _local10 = 0;
if ((__labelPlacement == "left") || (__labelPlacement == "right")) {
_local10 = (_local14 - _local7) - _local11;
} else {
_local10 = _local14 - _local11;
}
if (_local10 < (labelPath.textWidth + _local18)) {
labelPath._width = _local10;
} else {
labelPath._width = labelPath.textWidth + _local18;
}
if (((__labelPlacement == "left") || (__labelPlacement == "right")) || (__labelPlacement == "center")) {
_local10 = _local22;
} else {
_local10 = (_local22 - _local20) - _local6;
}
if (_local10 < (labelPath.textHeight + _local26)) {
labelPath._height = _local10;
} else {
labelPath._height = labelPath.textHeight + _local26;
}
if (__labelPlacement == "left") {
labelPath._x = _local11;
} else if (__labelPlacement == "right") {
labelPath._x = _local7 + _local11;
} else {
labelPath._x = _local11;
}
if (((__labelPlacement == "center") || (__labelPlacement == "left")) || (__labelPlacement == "right")) {
labelPath._y = (_local6 / 2) - (labelPath.height / 2);
} else if (__labelPlacement == "top") {
labelPath._y = (_local8 - _local20) - labelPath.height;
} else {
labelPath._y = _local6 + _local20;
}
labelPath._visible = true;
} else {
labelPath.text = "";
labelPath._visible = false;
}
if (_local7 >= (_local5 + _local15)) {
var _local2 = progTrackLeft_mc.getBounds(progTrackLeft_mc);
var _local42 = -_local2.xMin;
var _local41 = -_local2.yMin;
progTrackLeft_mc.move(((_local9 + _local5) - progTrackLeft_mc._width) + _local42, (_local8 + ((_local6 - progTrackLeft_mc._height) / 2)) + _local41);
_local2 = progTrackMiddle_mc.getBounds(progTrackMiddle_mc);
var _local38 = -_local2.xMin;
var _local35 = -_local2.yMin;
progTrackMiddle_mc.setSize((_local7 - _local5) - _local15, progTrackMiddle_mc._height);
progTrackMiddle_mc.move((_local9 + _local5) + _local38, (_local8 + ((_local6 - progTrackLeft_mc._height) / 2)) + _local35);
_local2 = progTrackRight_mc.getBounds(progTrackRight_mc);
var _local31 = -_local2.xMin;
var _local32 = -_local2.yMin;
progTrackRight_mc.move(((_local9 + _local5) + progTrackMiddle_mc._width) + _local31, (_local8 + ((_local6 - progTrackRight_mc._height) / 2)) + _local32);
var _local21 = (_local7 - _local5) - _local15;
var _local16 = (_local21 * percentComplete) / 100;
var _local17 = 0;
if (__indeterminate == true) {
_local16 = _local21;
mask_mc._width = _local16;
mask_mc._height = progIndBar_mc._height;
mask_mc._x = _local9 + _local5;
mask_mc._y = _local8 + ((_local6 - progIndBar_mc._height) / 2);
progIndBar_mc._width = (_local7 * 200) / 150;
var _local28 = progIndBar_mc._x;
_local2 = progIndBar_mc.getBounds(progIndBar_mc);
var _local30 = -_local2.xMin;
var _local29 = -_local2.yMin;
var _local19 = (_local9 + _local5) + _local30;
var _local23 = (progIndBar_mc._width * 50) / 200;
var _local25 = (progIndBar_mc._width * 20) / 200;
var _local24 = 3;
var _local27 = _local23;
if (__direction == "left") {
_local23 = (progIndBar_mc._width * 30) / 200;
_local25 = 0;
_local24 = -3;
_local27 = _local25;
}
if ((_local28 <= (_local19 - _local23)) || (_local28 >= (_local19 - _local25))) {
progIndBar_mc._x = (_local19 - _local27) + _local24;
} else {
progIndBar_mc._x = progIndBar_mc._x + _local24;
}
progIndBar_mc._y = (_local8 + ((_local6 - progIndBar_mc._height) / 2)) + _local29;
progIndBar_mc._visible = true;
invalidate();
} else {
progIndBar_mc._visible = false;
if (__direction == "left") {
_local17 = _local21 - _local16;
}
}
_local2 = progBarMiddle_mc.getBounds(progBarMiddle_mc);
var _local40 = -_local2.xMin;
var _local39 = -_local2.yMin;
progBarMiddle_mc.setSize(_local16, progBarMiddle_mc._height);
progBarMiddle_mc.move(((_local17 + _local9) + _local5) + _local40, (_local8 + ((_local6 - progBarLeft_mc._height) / 2)) + _local39);
_local2 = progBarLeft_mc.getBounds(progBarLeft_mc);
var _local36 = -_local2.xMin;
var _local33 = -_local2.yMin;
progBarLeft_mc.move((((_local17 + _local9) + _local5) - progBarLeft_mc._width) + _local36, (_local8 + ((_local6 - progBarLeft_mc._height) / 2)) + _local33);
_local2 = progBarRight_mc.getBounds(progBarRight_mc);
var _local34 = -_local2.xMin;
var _local37 = -_local2.yMin;
progBarRight_mc.move((((_local17 + _local9) + _local5) + progBarMiddle_mc._width) + _local34, (_local8 + ((_local6 - progBarRight_mc._height) / 2)) + _local37);
progTrackLeft_mc._visible = true;
progTrackMiddle_mc._visible = true;
progTrackRight_mc._visible = true;
progBarLeft_mc._visible = true;
progBarMiddle_mc._visible = true;
progBarRight_mc._visible = true;
} else {
progTrackLeft_mc._visible = false;
progTrackMiddle_mc._visible = false;
progTrackRight_mc._visible = false;
progBarLeft_mc._visible = false;
progBarMiddle_mc._visible = false;
progBarRight_mc._visible = false;
}
}
function replace(str, from, to) {
var _local1 = str.split(from);
var _local2 = _local1.join(to);
return(_local2);
}
function getMode(Void) {
return(__mode);
}
function setMode(val) {
if ((val == "polled") || (val == "manual")) {
__mode = val;
} else {
delete __mode;
}
invalidate();
}
function getDirection(Void) {
return(__direction);
}
function setDirection(val) {
if (val == "left") {
__direction = val;
} else {
delete __direction;
}
invalidate();
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
if ((((val == "top") || (val == "center")) || (val == "left")) || (val == "right")) {
__labelPlacement = val;
} else {
delete __labelPlacement;
}
invalidate();
}
function getIndeterminate(Void) {
return(__indeterminate);
}
function setIndeterminate(val) {
if (val == true) {
__indeterminate = true;
} else {
delete __indeterminate;
}
invalidate();
}
function getLabel(Void) {
return(__label);
}
function setLabel(val) {
__label = val;
invalidate();
}
function getConversion(Void) {
return(__conversion);
}
function setConversion(val) {
if ((!_global.isNaN(val)) && (Number(val) > 0)) {
__conversion = Number(val);
invalidate();
}
}
function getSource(Void) {
return(__source);
}
function setSource(val) {
if (typeof(val) == "string") {
__stringSource = val;
val = eval (val);
}
if (((val != null) && (val != undefined)) && (val != "")) {
__source = val;
if (__mode == "event") {
if (__source.addEventListener) {
__source.addEventListener("progress", this);
__source.addEventListener("complete", this);
} else {
__source = undefined;
}
}
if (__mode == "polled") {
si = setInterval(this, "update", __interval);
}
} else if (__source != null) {
delete __source;
clearInterval(si);
delete si;
}
}
function update(Void) {
var _local2 = __source;
var _local3 = _local2.getBytesLoaded();
var _local4 = _local2.getBytesTotal();
_setProgress(_local3, _local4);
if ((percentComplete >= 100) && (__value > 0)) {
clearInterval(si);
}
}
function progress(pEvent) {
var _local2 = pEvent.target;
var _local3 = _local2.bytesLoaded;
var _local4 = _local2.bytesTotal;
_setProgress(_local3, _local4);
}
function complete(pEvent) {
}
function _setProgress(completed, total) {
if ((!_global.isNaN(completed)) && (!_global.isNaN(total))) {
__value = Number(completed);
__maximum = Number(total);
dispatchEvent({type:"progress", current:completed, total:total});
if ((__value == __maximum) && (__value > 0)) {
dispatchEvent({type:"complete", current:completed, total:total});
}
invalidate();
}
}
function setProgress(completed, total) {
if (__mode == "manual") {
_setProgress(completed, total);
}
}
function getPercentComplete(Void) {
if ((__value < __minimum) || (__maximum < __minimum)) {
return(0);
}
var _local3 = (100 * (__value - __minimum)) / (__maximum - __minimum);
if (_global.isNaN(_local3) || (_local3 < 0)) {
return(0);
}
if (_local3 > 100) {
return(100);
}
return(_local3);
}
function getMaximum(Void) {
return(__maximum);
}
function setMaximum(val) {
if ((!_global.isNaN(val)) && (__mode == "manual")) {
__maximum = Number(val);
invalidate();
}
}
function getMinimum(Void) {
return(__minimum);
}
function setMinimum(val) {
if ((!_global.isNaN(val)) && (__mode == "manual")) {
__minimum = Number(val);
invalidate();
}
}
function getVal(Void) {
return(__value);
}
function get mode() {
return(getMode());
}
function set mode(x) {
setMode(x);
//return(mode);
}
function get source() {
return(getSource());
}
function set source(x) {
setSource(x);
//return(source);
}
function get direction() {
return(getDirection());
}
function set direction(x) {
setDirection(x);
//return(direction);
}
function get label() {
return(getLabel());
}
function set label(x) {
setLabel(x);
//return(label);
}
function get labelPlacement() {
return(getLabelPlacement());
}
function set labelPlacement(x) {
setLabelPlacement(x);
//return(labelPlacement);
}
function get indeterminate() {
return(getIndeterminate());
}
function set indeterminate(x) {
setIndeterminate(x);
//return(indeterminate);
}
function get conversion() {
return(getConversion());
}
function set conversion(x) {
setConversion(x);
//return(conversion);
}
function get percentComplete() {
return(getPercentComplete());
}
function get maximum() {
return(getMaximum());
}
function set maximum(x) {
setMaximum(x);
//return(maximum);
}
function get minimum() {
return(getMinimum());
}
function set minimum(x) {
setMinimum(x);
//return(minimum);
}
function get value() {
return(getVal());
}
static var symbolName = "ProgressBar";
static var symbolOwner = Object(mx.controls.ProgressBar);
var className = "ProgressBar";
static var version = "2.0.2.127";
var __mode = "event";
var __direction = "right";
var __labelPlacement = "bottom";
var __label = "LOADING %3%% ";
var __conversion = 1;
var __maximum = 0;
var __minimum = 0;
var __value = 0;
var __indeterminate = false;
var progTrackLeftName = "ProgTrackLeft";
var progTrackMiddleName = "ProgTrackMiddle";
var progTrackRightName = "ProgTrackRight";
var progBarLeftName = "ProgBarLeft";
var progBarMiddleName = "ProgBarMiddle";
var progBarRightName = "ProgBarRight";
var progIndBarName = "ProgIndBar";
var idNames = new Array("progTrackLeft_mc", "progTrackMiddle_mc", "progTrackRight_mc", "progBarLeft_mc", "progBarMiddle_mc", "progBarRight_mc", "progIndBar_mc");
var skinIDProgTrackLeft = 0;
var skinIDProgTrackMiddle = 1;
var skinIDProgTrackRight = 2;
var skinIDProgBarLeft = 3;
var skinIDProgBarMiddle = 4;
var skinIDProgBarRight = 5;
var skinIDProgIndBar = 6;
var skinIDMask = 100;
var skinIDLabel = 200;
var __interval = 30;
var __leave = 2;
var clipParameters = {mode:1, source:1, direction:1, label:1, labelPlacement:1, conversion:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ProgressBar.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 940 MovieClip [__Packages.mx.controls.Label] Frame 0
class mx.controls.Label extends mx.core.UIObject
{
var _xscale, _yscale, labelField, tabEnabled, tabChildren, useHandCursor, _color, initText, __autoSize, _getTextFormat, __width, setSize, _x, __height, getStyle;
function Label () {
super();
}
function init(Void) {
super.init();
_xscale = (_yscale = 100);
labelField.selectable = false;
labelField.styleName = this;
tabEnabled = false;
tabChildren = false;
useHandCursor = false;
_color = mx.core.UIObject.textColorList;
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(labelField.html);
}
function setHtml(value) {
if (value != labelField.html) {
labelField.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
var _local2 = labelField;
if (_local2.html == true) {
return(_local2.htmlText);
}
return(_local2.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = labelField;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
adjustForAutoSize();
}
}
function get autoSize() {
return(__autoSize);
}
function set autoSize(v) {
if (_global.isLivePreview == true) {
v = "none";
}
__autoSize = v;
if (!initializing) {
draw();
}
//return(autoSize);
}
function draw(Void) {
var _local2 = labelField;
if (initializing) {
var _local4 = text;
initializing = false;
setText(_local4);
delete initText;
}
if (_local2.html) {
var _local4 = _local2.htmlText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
if (_local2.html) {
_local2.htmlText = _local4;
}
adjustForAutoSize();
}
function adjustForAutoSize() {
var _local2 = labelField;
var _local3 = __autoSize;
if ((_local3 != undefined) && (_local3 != "none")) {
_local2._height = _local2.textHeight + 3;
var _local4 = __width;
setSize(_local2.textWidth + 4, _local2._height);
if (_local3 == "right") {
_x = _x + (_local4 - __width);
} else if (_local3 == "center") {
_x = _x + ((_local4 - __width) / 2);
} else if (_local3 == "left") {
_x = _x + 0;
}
} else {
_local2._x = 0;
_local2._width = __width;
_local2._height = __height;
}
}
function size(Void) {
var _local2 = labelField;
_local2._width = __width;
_local2._height = __height;
}
function setEnabled(enable) {
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
labelField.textColor = col;
}
function get styleSheet() {
return(labelField.styleSheet);
}
function set styleSheet(v) {
labelField.styleSheet = v;
//return(styleSheet);
}
static var symbolName = "Label";
static var symbolOwner = Object(mx.controls.Label);
var className = "Label";
static var version = "2.0.2.127";
var initializing = true;
var clipParameters = {text:1, html:1, autoSize:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Label.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 943 MovieClip [__Packages.mx.controls.listclasses.DataSelector] Frame 0
class mx.controls.listclasses.DataSelector extends Object
{
var __vPosition, setVPosition, __dataProvider, enabled, lastSelID, lastSelected, selected, invUpdateControl, invalidate, multipleSelection, updateControl, __rowCount, rows;
function DataSelector () {
super();
}
static function Initialize(obj) {
var _local3 = mixinProps;
var _local4 = _local3.length;
obj = obj.prototype;
var _local1 = 0;
while (_local1 < _local4) {
obj[_local3[_local1]] = mixins[_local3[_local1]];
_local1++;
}
mixins.createProp(obj, "dataProvider", true);
mixins.createProp(obj, "length", false);
mixins.createProp(obj, "value", false);
mixins.createProp(obj, "selectedIndex", true);
mixins.createProp(obj, "selectedIndices", true);
mixins.createProp(obj, "selectedItems", false);
mixins.createProp(obj, "selectedItem", true);
return(true);
}
function createProp(obj, propName, setter) {
var p = (propName.charAt(0).toUpperCase() + propName.substr(1));
var _local2 = null;
var _local4 = function (Void) {
return(this["get" + p]());
};
if (setter) {
_local2 = function (val) {
this["set" + p](val);
};
}
obj.addProperty(propName, _local4, _local2);
}
function setDataProvider(dP) {
if (__vPosition != 0) {
setVPosition(0);
}
clearSelected();
__dataProvider.removeEventListener(this);
__dataProvider = dP;
dP.addEventListener("modelChanged", this);
dP.addView(this);
modelChanged({eventName:"updateAll"});
}
function getDataProvider(Void) {
return(__dataProvider);
}
function addItemAt(index, label, data) {
if ((index < 0) || (!enabled)) {
return(undefined);
}
var _local2 = __dataProvider;
if (_local2 == undefined) {
_local2 = (__dataProvider = new Array());
_local2.addEventListener("modelChanged", this);
index = 0;
}
if ((typeof(label) == "object") || (typeof(_local2.getItemAt(0)) == "string")) {
_local2.addItemAt(index, label);
} else {
_local2.addItemAt(index, {label:label, data:data});
}
}
function addItem(label, data) {
addItemAt(__dataProvider.length, label, data);
}
function removeItemAt(index) {
return(__dataProvider.removeItemAt(index));
}
function removeAll(Void) {
__dataProvider.removeAll();
}
function replaceItemAt(index, newLabel, newData) {
if (typeof(newLabel) == "object") {
__dataProvider.replaceItemAt(index, newLabel);
} else {
__dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
}
}
function sortItemsBy(fieldName, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItemsBy(fieldName, order);
}
function sortItems(compareFunc, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItems(compareFunc, order);
}
function getLength(Void) {
return(__dataProvider.length);
}
function getItemAt(index) {
return(__dataProvider.getItemAt(index));
}
function modelChanged(eventObj) {
var _local3 = eventObj.firstItem;
var _local6 = eventObj.lastItem;
var _local7 = eventObj.eventName;
if (_local7 == undefined) {
_local7 = eventObj.event;
_local3 = eventObj.firstRow;
_local6 = eventObj.lastRow;
if (_local7 == "addRows") {
_local7 = (eventObj.eventName = "addItems");
} else if (_local7 == "deleteRows") {
_local7 = (eventObj.eventName = "removeItems");
} else if (_local7 == "updateRows") {
_local7 = (eventObj.eventName = "updateItems");
}
}
if (_local7 == "addItems") {
for (var _local2 in selected) {
var _local5 = selected[_local2];
if ((_local5 != undefined) && (_local5 >= _local3)) {
selected[_local2] = selected[_local2] + ((_local6 - _local3) + 1);
}
}
} else if (_local7 == "removeItems") {
if (__dataProvider.length == 0) {
delete selected;
} else {
var _local9 = eventObj.removedIDs;
var _local10 = _local9.length;
var _local2 = 0;
while (_local2 < _local10) {
var _local4 = _local9[_local2];
if (selected[_local4] != undefined) {
delete selected[_local4];
}
_local2++;
}
for (_local2 in selected) {
if (selected[_local2] >= _local3) {
selected[_local2] = selected[_local2] - ((_local6 - _local3) + 1);
}
}
}
} else if (_local7 == "sort") {
if (typeof(__dataProvider.getItemAt(0)) != "object") {
delete selected;
} else {
var _local10 = __dataProvider.length;
var _local2 = 0;
while (_local2 < _local10) {
if (isSelected(_local2)) {
var _local4 = __dataProvider.getItemID(_local2);
if (_local4 == lastSelID) {
lastSelected = _local2;
}
selected[_local4] = _local2;
}
_local2++;
}
}
} else if (_local7 == "filterModel") {
setVPosition(0);
}
invUpdateControl = true;
invalidate();
}
function getValue(Void) {
var _local2 = getSelectedItem();
if (typeof(_local2) != "object") {
return(_local2);
}
return(((_local2.data == undefined) ? (_local2.label) : (_local2.data)));
}
function getSelectedIndex(Void) {
for (var _local3 in selected) {
var _local2 = selected[_local3];
if (_local2 != undefined) {
return(_local2);
}
}
}
function setSelectedIndex(index) {
if (((index >= 0) && (index < __dataProvider.length)) && (enabled)) {
delete selected;
selectItem(index, true);
lastSelected = index;
invUpdateControl = true;
invalidate();
} else if (index == undefined) {
clearSelected();
}
}
function getSelectedIndices(Void) {
var _local2 = new Array();
for (var _local3 in selected) {
_local2.push(selected[_local3]);
}
_local2.reverse();
return(((_local2.length > 0) ? (_local2) : undefined));
}
function setSelectedIndices(indexArray) {
if (multipleSelection != true) {
return(undefined);
}
delete selected;
var _local3 = 0;
while (_local3 < indexArray.length) {
var _local2 = indexArray[_local3];
if ((_local2 >= 0) && (_local2 < __dataProvider.length)) {
selectItem(_local2, true);
}
_local3++;
}
invUpdateControl = true;
updateControl();
}
function getSelectedItems(Void) {
var _local3 = getSelectedIndices();
var _local4 = new Array();
var _local2 = 0;
while (_local2 < _local3.length) {
_local4.push(getItemAt(_local3[_local2]));
_local2++;
}
return(((_local4.length > 0) ? (_local4) : undefined));
}
function getSelectedItem(Void) {
return(__dataProvider.getItemAt(getSelectedIndex()));
}
function selectItem(index, selectedFlag) {
if (selected == undefined) {
selected = new Object();
}
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (selectedFlag && (!isSelected(index))) {
selected[_local2] = index;
} else if (!selectedFlag) {
delete selected[_local2];
}
}
function isSelected(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(false);
}
return(selected[_local2] != undefined);
}
function clearSelected(transition) {
var _local3 = 0;
for (var _local4 in selected) {
var _local2 = selected[_local4];
if (((_local2 != undefined) && (__vPosition <= _local2)) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "normal", transition && ((_local3 % 3) == 0));
}
_local3++;
}
delete selected;
}
static var mixins = new mx.controls.listclasses.DataSelector();
static var mixinProps = ["setDataProvider", "getDataProvider", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "sortItemsBy", "sortItems", "getLength", "getItemAt", "modelChanged", "calcPreferredWidthFromData", "calcPreferredHeightFromData", "getValue", "getSelectedIndex", "getSelectedItem", "getSelectedIndices", "getSelectedItems", "selectItem", "isSelected", "clearSelected", "setSelectedIndex", "setSelectedIndices"];
}
Symbol 944 MovieClip [__Packages.mx.controls.ComboBase] Frame 0
class mx.controls.ComboBase extends mx.core.UIComponent
{
var getValue, tabEnabled, tabChildren, boundingBox_mc, downArrow_mc, createClassObject, onDownArrow, border_mc, __border, text_mc, focusTextField, __width, __height, getFocusManager, __get__height, height, _parent;
function ComboBase () {
super();
getValue = _getValue;
}
function init() {
super.init();
tabEnabled = !_editable;
tabChildren = _editable;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren() {
var _local3 = new Object();
_local3.styleName = this;
if (downArrow_mc == undefined) {
_local3.falseUpSkin = downArrowUpName;
_local3.falseOverSkin = downArrowOverName;
_local3.falseDownSkin = downArrowDownName;
_local3.falseDisabledSkin = downArrowDisabledName;
_local3.validateNow = true;
_local3.tabEnabled = false;
createClassObject(mx.controls.SimpleButton, "downArrow_mc", 19, _local3);
downArrow_mc.buttonDownHandler = onDownArrow;
downArrow_mc.useHandCursor = false;
downArrow_mc.onPressWas = downArrow_mc.onPress;
downArrow_mc.onPress = function () {
this.trackAsMenuWas = this.trackAsMenu;
this.trackAsMenu = true;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onPressWas();
};
downArrow_mc.onDragOutWas = downArrow_mc.onDragOut;
downArrow_mc.onDragOut = function () {
this.trackAsMenuWas = this.trackAsMenu;
this.trackAsMenu = false;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onDragOutWas();
};
downArrow_mc.onDragOverWas = downArrow_mc.onDragOver;
downArrow_mc.onDragOver = function () {
this.trackAsMenu = this.trackAsMenuWas;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onDragOverWas();
};
}
if (border_mc == undefined) {
_local3.tabEnabled = false;
createClassObject(_global.styles.rectBorderClass, "border_mc", 17, _local3);
border_mc.move(0, 0);
__border = border_mc;
}
_local3.borderStyle = "none";
_local3.readOnly = !_editable;
_local3.tabEnabled = _editable;
if (text_mc == undefined) {
createClassObject(mx.controls.TextInput, "text_mc", 18, _local3);
text_mc.move(0, 0);
text_mc.addEnterEvents();
text_mc.enterHandler = _enterHandler;
text_mc.changeHandler = _changeHandler;
text_mc.oldOnSetFocus = text_mc.onSetFocus;
text_mc.onSetFocus = function () {
this.oldOnSetFocus();
this._parent.onSetFocus();
};
text_mc.__set__restrict("^\x1B");
text_mc.oldOnKillFocus = text_mc.onKillFocus;
text_mc.onKillFocus = function (n) {
this.oldOnKillFocus(n);
this._parent.onKillFocus(n);
};
text_mc.drawFocus = function (b) {
this._parent.drawFocus(b);
};
delete text_mc.borderStyle;
}
focusTextField = text_mc;
text_mc.owner = this;
layoutChildren(__width, __height);
}
function onKillFocus() {
super.onKillFocus();
Key.removeListener(text_mc);
getFocusManager().defaultPushButtonEnabled = true;
}
function onSetFocus() {
super.onSetFocus();
getFocusManager().defaultPushButtonEnabled = false;
Key.addListener(text_mc);
}
function setFocus() {
if (_editable) {
Selection.setFocus(text_mc);
} else {
Selection.setFocus(this);
}
}
function setSize(w, h, noEvent) {
super.setSize(w, ((h == undefined) ? (__get__height()) : (h)), noEvent);
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
downArrow_mc.enabled = enabledFlag;
text_mc.enabled = enabledFlag;
}
function setEditable(e) {
_editable = e;
if (wrapDownArrowButton == false) {
if (e) {
border_mc.borderStyle = "inset";
text_mc.borderStyle = "inset";
symbolName = "ComboBox";
invalidateStyle();
} else {
border_mc.borderStyle = "comboNonEdit";
text_mc.borderStyle = "dropDown";
symbolName = "DropDown";
invalidateStyle();
}
}
tabEnabled = !e;
tabChildren = e;
text_mc.tabEnabled = e;
if (e) {
delete text_mc.onPress;
delete text_mc.onRelease;
delete text_mc.onReleaseOutside;
delete text_mc.onDragOut;
delete text_mc.onDragOver;
delete text_mc.onRollOver;
delete text_mc.onRollOut;
} else {
text_mc.onPress = function () {
this._parent.downArrow_mc.onPress();
};
text_mc.onRelease = function () {
this._parent.downArrow_mc.onRelease();
};
text_mc.onReleaseOutside = function () {
this._parent.downArrow_mc.onReleaseOutside();
};
text_mc.onDragOut = function () {
this._parent.downArrow_mc.onDragOut();
};
text_mc.onDragOver = function () {
this._parent.downArrow_mc.onDragOver();
};
text_mc.onRollOver = function () {
this._parent.downArrow_mc.onRollOver();
};
text_mc.onRollOut = function () {
this._parent.downArrow_mc.onRollOut();
};
text_mc.useHandCursor = false;
}
}
function get editable() {
return(_editable);
}
function set editable(e) {
setEditable(e);
//return(editable);
}
function _getValue() {
return((_editable ? (text_mc.getText()) : (DSgetValue())));
}
function draw() {
downArrow_mc.draw();
border_mc.draw();
}
function size() {
layoutChildren(__width, __height);
}
function setTheme(t) {
downArrowUpName = (t + "downArrow") + "Up_mc";
downArrowDownName = (t + "downArrow") + "Down_mc";
downArrowDisabledName = (t + "downArrow") + "Disabled_mc";
}
function get text() {
return(text_mc.getText());
}
function set text(t) {
setText(t);
//return(text);
}
function setText(t) {
text_mc.setText(t);
}
function get textField() {
return(text_mc);
}
function get restrict() {
return(text_mc.__get__restrict());
}
function set restrict(w) {
text_mc.__set__restrict(w);
//return(restrict);
}
function invalidateStyle() {
downArrow_mc.invalidateStyle();
text_mc.invalidateStyle();
border_mc.invalidateStyle();
}
function layoutChildren(w, h) {
if (downArrow_mc == undefined) {
return(undefined);
}
if (wrapDownArrowButton) {
var _local2 = border_mc.__get__borderMetrics();
downArrow_mc._width = (downArrow_mc._height = (h - _local2.top) - _local2.bottom);
downArrow_mc.move((w - downArrow_mc._width) - _local2.right, _local2.top);
border_mc.setSize(w, h);
text_mc.setSize(w - downArrow_mc._width, h);
} else {
downArrow_mc.move(w - downArrow_mc._width, 0);
border_mc.setSize(w - downArrow_mc.width, h);
text_mc.setSize(w - downArrow_mc._width, h);
downArrow_mc._height = height;
}
}
function _changeHandler(obj) {
}
function _enterHandler(obj) {
var _local2 = _parent;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function get tabIndex() {
return(text_mc.__get__tabIndex());
}
function set tabIndex(w) {
text_mc.__set__tabIndex(w);
//return(tabIndex);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.ComboBase);
static var symbolName = "ComboBase";
static var symbolOwner = mx.controls.ComboBase;
static var version = "2.0.2.127";
var _editable = false;
var downArrowUpName = "ScrollDownArrowUp";
var downArrowDownName = "ScrollDownArrowDown";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDisabledName = "ScrollDownArrowDisabled";
var wrapDownArrowButton = true;
var DSgetValue = mx.controls.listclasses.DataSelector.prototype.getValue;
var multipleSelection = false;
}
Symbol 945 MovieClip [__Packages.mx.controls.DateField] Frame 0
class mx.controls.DateField extends mx.controls.ComboBase
{
var __height, boundingBox, downArrowUpName, downArrowDownName, downArrowOverName, downArrowDisabledName, __set__editable, editable, text_mc, tabEnabled, __pullDown, __dateFormatter, downArrow_mc, __get__width, localToGlobal, __get__height, dispatchEvent, _parent, owner;
function DateField () {
super();
}
function init() {
super.init();
__height = 22;
boundingBox._visible = false;
downArrowUpName = "openDateUp";
downArrowDownName = "openDateDown";
downArrowOverName = "openDateOver";
downArrowDisabledName = "openDateDisabled";
}
function createChildren() {
super.createChildren();
__set__editable(editable);
text_mc.__set__text("");
tabEnabled = false;
initializing = false;
}
function onKillFocus(n) {
super.onKillFocus();
}
function getPullDown() {
if (initializing || (!__enabled)) {
return(undefined);
}
if (!hasPullDown()) {
var _local3 = new Object();
_local3.styleName = this;
_local3._visible = false;
__pullDown = mx.managers.PopUpManager.createPopUp(this, mx.controls.DateChooser, false, _local3, true);
__pullDown.owner = this;
__pullDown.changeHandler = _changeHandler;
__pullDown.scrollHandler = _scrollHandler;
__pullDown.itemRollOverHandler = _itemRollOverHandler;
__pullDown.itemRollOutHandler = _itemRollOutHandler;
__pullDown.resizeHandler = _resizeHandler;
__pullDown.mouseDownOutsideHandler = function (eventObj) {
var _local3 = this.owner;
var _local2 = new Object();
_local2.x = _local3._root._xmouse;
_local2.y = _local3._root._ymouse;
_local3._root.localToGlobal(_local2);
if (_local3.hitTest(_local2.x, _local2.y, false)) {
} else if (this.owner.downArrow_mc.hitTest(_local2.x, _local2.y, false)) {
} else {
this.owner.displayPullDown(false);
}
};
for (var _local4 in propTempStore) {
__pullDown[_local4] = propTempStore[_local4];
}
delete propTempStore;
pullDownExists = true;
}
return(__pullDown);
}
function setSize(w, h, noEvent) {
super.setSize(w, __height, noEvent);
}
function getPropTempStore() {
if (propTempStore == undefined) {
propTempStore = new Object();
}
return(true);
}
function getDateFormatter() {
return(__dateFormatter);
}
function get dateFormatter() {
return(getDateFormatter());
}
function set dateFormatter(f) {
__dateFormatter = f;
//return(dateFormatter);
}
function get pullDown() {
return(getPullDown());
}
function open() {
displayPullDown(true);
}
function close() {
displayPullDown(false);
}
function hasPullDown() {
return((__pullDown != undefined) && (__pullDown.valueOf() != undefined));
}
function displayPullDown(show) {
if (show == _showingPullDown) {
return(undefined);
}
var _local3 = new Object();
var _local9 = new Date();
_local3.x = __get__width() - downArrow_mc.width;
_local3.y = 0;
localToGlobal(_local3);
var _local10 = this;
_local10._root.globalToLocal(_local3);
if (show) {
getPullDown();
var _local4 = __pullDown;
var _local8 = ((__pullDown.selectedDate != undefined) ? (__pullDown.selectedDate) : undefined);
if (_local8 != undefined) {
__pullDown.displayedMonth = _local8.getMonth();
__pullDown.displayedYear = _local8.getFullYear();
} else {
__pullDown.displayedMonth = _local9.getMonth();
__pullDown.displayedYear = _local9.getFullYear();
}
_local4.isPressed = true;
_local4.visible = show;
var _local6 = _local3.x;
var _local5 = _local3.y;
if ((Stage.width > (_local4.width + _local3.x)) && (Stage.height < (_local4.height + _local3.y))) {
_local6 = _local3.x;
_local5 = (_local3.y - _local4.height) + __get__height();
openPos = 1;
} else if ((Stage.width < (_local4.width + _local3.x)) && (Stage.height < (_local4.height + _local3.y))) {
_local6 = (_local3.x - _local4.width) + downArrow_mc.width;
_local5 = _local3.y - _local4.height;
openPos = 2;
} else if ((Stage.width < (_local4.width + _local3.x)) && (Stage.height > (_local4.height + _local3.y))) {
_local6 = (_local3.x - _local4.width) + downArrow_mc.width;
_local5 = _local3.y + __get__height();
openPos = 3;
} else {
downArrow_mc.enabled = false;
openPos = 0;
}
_local4.move(_local6, _local5);
} else if (downArrow_mc.hitTest(_root._xmouse, _root._ymouse, false) && (openPos != 0)) {
__pullDown.visible = false;
} else {
__pullDown.visible = false;
downArrow_mc.enabled = true;
}
_showingPullDown = show;
dispatchEvent({type:(show ? "open" : "close"), target:this});
}
function get scaleY() {
return(undefined);
}
function set scaleY(n) {
return;
}
function get showToday() {
if (__enabled) {
if ((!pullDownExists) && (getPropTempStore())) {
return(propTempStore.showToday);
}
return(__pullDown.showToday);
}
}
function set showToday(n) {
if (!__enabled) {
return;
}
if ((!pullDownExists) && (getPropTempStore())) {
propTempStore.showToday = n;
} else {
__pullDown.showToday = n;
}
//return(showToday);
}
function get enabled() {
return(getEnabled());
}
function getEnabled() {
return(__enabled);
}
function set enabled(b) {
setEnabled(b);
//return(enabled);
}
function setEnabled(b) {
if (b == __enabled) {
return(undefined);
}
__enabled = b;
super.setEnabled(b);
}
function get firstDayOfWeek() {
if (__enabled) {
if ((!pullDownExists) && (getPropTempStore())) {
return(propTempStore.firstDayOfWeek);
}
return(__pullDown.firstDayOfWeek);
}
}
function set firstDayOfWeek(n) {
if (!__enabled) {
return;
}
if ((!pullDownExists) && (getPropTempStore())) {
propTempStore.firstDayOfWeek = n;
} else {
__pullDown.firstDayOfWeek = n;
}
//return(firstDayOfWeek);
}
function get displayedMonth() {
if (__enabled) {
return(pullDown.displayedMonth);
}
}
function set displayedMonth(m) {
if (!__enabled) {
return;
}
if (!pullDownExists) {
propTempStore.displayedMonth = m;
} else if (pullDown.selectedDate == undefined) {
pullDown.displayedMonth = m;
}
//return(displayedMonth);
}
function get displayedYear() {
if (__enabled) {
return(pullDown.displayedYear);
}
}
function set displayedYear(y) {
if (!__enabled) {
return;
}
if (!pullDownExists) {
propTempStore.displayedYear = y;
} else if (pullDown.selectedDate == undefined) {
pullDown.displayedYear = y;
}
//return(displayedYear);
}
function get dayNames() {
if (__enabled) {
if ((!pullDownExists) && (getPropTempStore())) {
return(propTempStore.dayNames);
}
return(__pullDown.dayNames);
}
}
function set dayNames(d) {
if (!__enabled) {
return;
}
if ((!pullDownExists) && (getPropTempStore())) {
propTempStore.dayNames = d;
} else {
__pullDown.dayNames = d;
}
//return(dayNames);
}
function get disabledDays() {
if (__enabled) {
if ((!pullDownExists) && (getPropTempStore())) {
return(propTempStore.disabledDays);
}
return(__pullDown.disabledDays);
}
}
function set disabledDays(dd) {
if (!__enabled) {
return;
}
if ((!pullDownExists) && (getPropTempStore())) {
propTempStore.disabledDays = dd;
} else {
__pullDown.disabledDays = dd;
checkSelectedDate();
}
//return(disabledDays);
}
function get selectableRange() {
if (__enabled) {
return(pullDown.selectableRange);
}
}
function set selectableRange(sRange) {
if (!__enabled) {
return;
}
if (!pullDownExists) {
propTempStore.selectableRange = sRange;
} else {
pullDown.selectableRange = sRange;
checkSelectedDate();
}
//return(selectableRange);
}
function get disabledRanges() {
if (__enabled) {
return(pullDown.disabledRanges);
}
}
function set disabledRanges(r) {
if (!__enabled) {
return;
}
if (!pullDownExists) {
propTempStore.disabledRanges = r.slice(0);
} else {
pullDown.disabledRanges = r.slice(0);
checkSelectedDate();
}
//return(disabledRanges);
}
function get selectedDate() {
if (__enabled) {
return(pullDown.selectedDate);
}
}
function set selectedDate(s) {
if (!__enabled) {
return;
}
pullDown.selectedDate = s;
dateFiller(pullDown.selectedDate);
//return(selectedDate);
}
function get monthNames() {
if (__enabled) {
if ((!pullDownExists) && (getPropTempStore())) {
return(propTempStore.monthNames);
}
return(__pullDown.monthNames);
}
}
function set monthNames(a) {
if (!__enabled) {
return;
}
if ((!pullDownExists) && (getPropTempStore())) {
propTempStore.monthNames = a.slice(0);
} else {
__pullDown.monthNames = a.slice(0);
}
//return(monthNames);
}
function onDownArrow() {
_parent.displayPullDown(!_parent._showingPullDown);
}
function setStyle(n, val) {
super.setStyle(n, val);
pullDown.setStyle(n, val);
}
function onUnload() {
__pullDown.removeMovieClip();
}
function _resizeHandler() {
var _local2 = owner;
}
function _changeHandler(obj) {
var _local2 = owner;
obj.target = _local2;
var _local3 = _local2.pullDown.selectedDate;
if (!_local2.bInKeyDown) {
_local2.displayPullDown(false);
}
_local2.dispatchEvent(obj);
_local2.dateFiller(_local3);
}
function dateFiller(d) {
if (dateFormatter == undefined) {
if (d != undefined) {
text_mc.__set__text((((d.getDate() + " ") + (substring(monthNames[d.getMonth()], 1, 3))) + " ") + d.getFullYear());
} else {
text_mc.__set__text("");
}
} else {
text_mc.__set__text(((d == undefined) ? "" : (dateFormatter(d))));
}
}
function checkSelectedDate() {
if (pullDown.selectedDate != undefined) {
dateFiller(pullDown.selectedDate);
} else {
dateFiller();
}
}
function _scrollHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOverHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOutHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
static var symbolName = "DateField";
static var symbolOwner = mx.controls.DateField;
var className = "DateField";
static var version = "2.0.2.127";
var _showingPullDown = false;
var initializing = true;
var __enabled = true;
var pullDownExists = false;
var bInKeyDown = false;
var propTempStore = undefined;
var openPos = 0;
var clipParameters = {showToday:1, firstDayOfWeek:1, monthNames:1, dayNames:1, disabledDays:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.DateField.prototype.clipParameters, UIComponent.prototype.clipParameters);
}
Symbol 975 MovieClip [__Packages.mx.managers.PopUpManager] Frame 0
class mx.managers.PopUpManager
{
var popUp, setSize, move, modalWindow, _parent, _name, _visible, owner;
function PopUpManager () {
}
static function createModalWindow(parent, o, broadcastOutsideEvents) {
var _local2 = parent.createChildAtDepth("Modal", mx.managers.DepthManager.kTopmost);
_local2.setDepthBelow(o);
o.modalID = _local2._name;
_local2._alpha = _global.style.modalTransparency;
_local2.tabEnabled = false;
if (broadcastOutsideEvents) {
_local2.onPress = mixins.onPress;
} else {
_local2.onPress = mixins.nullFunction;
}
_local2.onRelease = mixins.nullFunction;
_local2.resize = mixins.resize;
mx.managers.SystemManager.init();
mx.managers.SystemManager.addEventListener("resize", _local2);
_local2.resize();
_local2.useHandCursor = false;
_local2.popUp = o;
o.modalWindow = _local2;
o.deletePopUp = mixins.deletePopUp;
o.setVisible = mixins.setVisible;
o.getVisible = mixins.getVisible;
o.addProperty("visible", o.getVisible, o.setVisible);
}
static function createPopUp(parent, className, modal, initobj, broadcastOutsideEvents) {
if (mixins == undefined) {
mixins = new mx.managers.PopUpManager();
}
if (broadcastOutsideEvents == undefined) {
broadcastOutsideEvents = false;
}
var _local5 = parent._root;
if (_local5 == undefined) {
_local5 = _root;
}
while (parent != _local5) {
parent = parent._parent;
}
initobj.popUp = true;
var _local4 = parent.createClassChildAtDepth(className, ((broadcastOutsideEvents || (modal)) ? (mx.managers.DepthManager.kTopmost) : (mx.managers.DepthManager.kTop)), initobj);
var _local2 = _root;
var _local6 = _local2.focusManager != undefined;
while (_local2._parent != undefined) {
_local2 = _local2._parent._root;
if (_local2.focusManager != undefined) {
_local6 = true;
break;
}
}
if (_local6) {
_local4.createObject("FocusManager", "focusManager", -1);
if (_local4._visible == false) {
mx.managers.SystemManager.deactivate(_local4);
}
}
if (modal) {
createModalWindow(parent, _local4, broadcastOutsideEvents);
} else {
if (broadcastOutsideEvents) {
_local4.mouseListener = new Object();
_local4.mouseListener.owner = _local4;
_local4.mouseListener.onMouseDown = mixins.onMouseDown;
Mouse.addListener(_local4.mouseListener);
}
_local4.deletePopUp = mixins.deletePopUp;
}
return(_local4);
}
function onPress(Void) {
var _local3 = popUp._root;
if (_local3 == undefined) {
_local3 = _root;
}
if (popUp.hitTest(_local3._xmouse, _local3._ymouse, false)) {
return(undefined);
}
popUp.dispatchEvent({type:"mouseDownOutside"});
}
function nullFunction(Void) {
}
function resize(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
setSize(_local2.width, _local2.height);
move(_local2.x, _local2.y);
}
function deletePopUp(Void) {
if (modalWindow != undefined) {
_parent.destroyObject(modalWindow._name);
}
_parent.destroyObject(_name);
}
function setVisible(v, noEvent) {
super.setVisible(v, noEvent);
modalWindow._visible = v;
}
function getVisible(Void) {
return(_visible);
}
function onMouseDown(Void) {
var _local3 = owner._root;
if (_local3 == undefined) {
_local3 = _root;
}
var _local4 = new Object();
_local4.x = _local3._xmouse;
_local4.y = _local3._ymouse;
_local3.localToGlobal(_local4);
if (owner.hitTest(_local4.x, _local4.y, false)) {
} else {
owner.mouseDownOutsideHandler(owner);
}
}
static var version = "2.0.2.127";
static var mixins = undefined;
}
Symbol 976 MovieClip [__Packages.mx.controls.CalendarLayout] Frame 0
class mx.controls.CalendarLayout extends mx.core.UIComponent
{
var tabEnabled, boundingBox, _parent, __get__width, __get__height, createEmptyMovieClip, styleName, hitAreaClip, createLabel, useHandCursor, onRelease, onRollOver, onRollOut, onReleaseOutside, onMouseMove, rollOverIndicator, todayIndicator, selectedIndicator, dayBlock0label0, dayBlock6label0, _xmouse, _ymouse, selCell, selectedCell, createObject, todaysLabelReference, selectedLabel, invalidate;
function CalendarLayout () {
super();
}
function init(Void) {
super.init();
tabEnabled = false;
if (__displayedMonth == undefined) {
__displayedMonth = new Date().getMonth();
}
if (__displayedYear == undefined) {
__displayedYear = new Date().getFullYear();
}
boundingBox._visible = false;
}
function createChildren() {
var _local11 = _parent.sizeXRatio;
var _local12 = _parent.sizeYRatio;
var _local15 = __get__width() * _local11;
var _local14 = __get__height() * _local12;
var _local4 = 0;
var _local13 = 0;
__cellHeight = __cellHeight * _local12;
__cellWidth = __cellWidth * _local11;
__leftMargin = __leftMargin * _local11;
__dateMargin = __dateMargin * _local12;
__dayToDateMargin = __dayToDateMargin * _local12;
__colMargin = __colMargin * _local11;
var _local8 = __leftMargin;
var _local10 = createEmptyMovieClip("selectedIndicator", selectedDateDepth);
_local10.lineStyle(0, 39168, 30);
_local10.beginFill(65331, 100);
_local10.lineTo(__cellWidth, 0);
_local10.lineTo(__cellWidth, __cellHeight);
_local10.lineTo(0, __cellHeight);
_local10.lineTo(0, 0);
_local10.styleName = styleName;
mx.skins.ColoredSkinElement.setColorStyle(_local10, "selectionColor");
_local10._visible = false;
var _local9 = createEmptyMovieClip("rollOverIndicator", rollOverDateDepth);
_local9.lineStyle(0, 39168, 20);
_local9.beginFill(65280, 100);
_local9.lineTo(__cellWidth, 0);
_local9.lineTo(__cellWidth, __cellHeight);
_local9.lineTo(0, __cellHeight);
_local9.lineTo(0, 0);
_local9.styleName = styleName;
mx.skins.ColoredSkinElement.setColorStyle(_local9, "rollOverColor");
_local9._visible = false;
createEmptyMovieClip("hitAreaClip", 300);
_local9.hitArea = hitAreaClip;
var _local6 = 0;
while (_local6 < 7) {
var _local5 = false;
var _local2 = 0;
while (_local2 < 7) {
var _local7 = (("dayBlock" + _local6) + "label") + _local2;
var _local3 = createLabel(_local7, labelBaseDepth++, "");
_local3.selectable = false;
if (_local2 == 0) {
_local4 = 0;
_local3.styleName = "WeekDayStyle";
} else if ((_local2 == 1) && (_local5 == false)) {
_local4 = (_local2 * __cellHeight) + __dayToDateMargin;
_local5 = true;
} else if ((_local2 > 1) && (_local5 == true)) {
_local4 = (_local2 * __cellHeight) + (_local2 * __dateMargin);
}
_local3._width = __cellWidth;
_local3._height = __cellHeight;
_local3._x = _local8;
_local3._y = _local4;
_local2++;
}
this[("dayBlock" + _local6) + "label0"].disabledArray = new Array(7);
_local8 = _local8 + (__cellWidth + __colMargin);
_local6++;
}
useHandCursor = false;
onRelease = dayBlockReleaseHandler;
onRollOver = dayBlockRollOverHandler;
onRollOut = dayBlockRollOutHandler;
onReleaseOutside = dayBlockRollOutHandler;
drawDayNames();
setSelectedMonthAndYear();
}
function drawDayNames() {
var _local2 = 0;
while (_local2 < 7) {
var _local3 = (_local2 + __firstDayOfWeek) % 7;
this[(("dayBlock" + _local2) + "label") + 0].text = __dayNames[_local3];
_local2++;
}
}
function dayBlockRollOverHandler() {
onMouseMove = dayBlockMouseMoveHandler;
}
function dayBlockRollOutHandler() {
delete onMouseMove;
rollOverIndicator._visible = false;
if ((selectedIndicator._x != todayIndicator._x) || (selectedIndicator._y != todayIndicator._y)) {
todayIndicator._alpha = 100;
}
}
function dayBlockMouseMoveHandler() {
var _local5 = dayBlock0label0._x;
var _local6 = dayBlock6label0._x;
var _local4 = (dayBlock6label0._y + __cellHeight) + __dayToDateMargin;
var _local7 = _parent.sizeXRatio;
var _local8 = _parent.sizeYRatio;
if (((_xmouse < _local5) && (_xmouse > (_local6 + cellWidth))) || (_ymouse < _local4)) {
return(undefined);
}
var _local9;
var _local2 = Math.floor(_ymouse / (__cellHeight + __dateMargin));
var _local3 = Math.floor(_xmouse / (__cellWidth + __colMargin));
selCell = this[(("dayBlock" + _local3) + "label") + _local2];
if (this[("dayBlock" + _local3) + "label0"].disabledArray[_local2] || (_local2 == 0)) {
return(undefined);
}
if ((((_ymouse >= selCell._y) && (_ymouse <= (selCell._y + __cellHeight))) && (_xmouse >= selCell._x)) && (_xmouse <= (selCell._x + __cellWidth))) {
rollOverIndicator._x = selCell._x;
rollOverIndicator._y = selCell._y;
rollOverIndicator._visible = true;
if ((rollOverIndicator._x == todayIndicator._x) && (rollOverIndicator._y == todayIndicator._y)) {
todayIndicator._alpha = 60;
} else if ((selectedIndicator._x != todayIndicator._x) || (selectedIndicator._y != todayIndicator._y)) {
todayIndicator._alpha = 100;
}
}
}
function dayBlockReleaseHandler() {
var _local5 = dayBlock0label0._x;
var _local6 = dayBlock6label0._x;
var _local4 = (dayBlock6label0._y + __cellHeight) + __dayToDateMargin;
var _local7 = _parent.sizeXRatio;
var _local8 = _parent.sizeYRatio;
if (((_xmouse < _local5) && (_xmouse > (_local6 + __cellWidth))) || (_ymouse < _local4)) {
return(undefined);
}
var _local2 = Math.floor(_ymouse / (__cellHeight + __dateMargin));
if (_local2 <= 0) {
return(undefined);
}
var _local3 = Math.floor(_xmouse / (__cellWidth + __colMargin));
selCell = this[(("dayBlock" + _local3) + "label") + _local2];
if (this[("dayBlock" + _local3) + "label0"].disabledArray[_local2]) {
return(undefined);
}
if ((((_ymouse >= selCell._y) && (_ymouse <= (selCell._y + __cellHeight))) && (_xmouse >= selCell._x)) && (_xmouse <= (selCell._x + __cellWidth))) {
if (selectedCell == ((_local3 + ".") + _local2)) {
selectedIndicator._visible = false;
selectedCell = undefined;
__selectedDate = undefined;
_parent.dispatchChangeEvent();
} else {
selectedIndicator._x = selCell._x;
selectedIndicator._y = selCell._y;
selectedIndicator._visible = true;
selectedCell = (_local3 + ".") + _local2;
__selectedDate = new Date(__displayedYear, __displayedMonth, Number(selCell.text));
_parent.dispatchChangeEvent();
if ((selectedIndicator._x == todayIndicator._x) && (selectedIndicator._y == todayIndicator._y)) {
todayIndicator._alpha = 60;
} else {
todayIndicator._alpha = 100;
}
}
}
}
function setSize(w, h, noEvent) {
var _local5;
var _local6;
var _local8;
var _local7;
var _local14;
var _local9;
var _local10;
var _local13 = _parent;
var _local11 = _local13.sizeXRatio;
var _local12 = _local13.sizeYRatio;
if (!autoScale) {
if ((((((((__cellWidth == undefined) || (__cellWidth == NaN)) || ((__cellHeight == undefined) || (__cellHeight == NaN))) || ((__leftMargin == undefined) || (__leftMargin == NaN))) || ((__rightMargin == undefined) || (__rightMargin == NaN))) || ((__colMargin == undefined) || (__colMargin == NaN))) || ((__dayToDateMargin == undefined) || (__dayToDateMargin == NaN))) || ((__dateMargin == undefined) || (__dateMargin == NaN))) {
_local5 = __defaultCellHeight;
_local6 = __defaultCellWidth;
_local8 = __defaultColMargin;
_local7 = __defaultLeftMargin;
_local14 = __defaultRightMargin;
_local9 = __defaultDayToDateMargin;
_local10 = __defaultDateMargin;
} else {
_local5 = __cellHeight;
_local6 = __cellWidth;
_local8 = __colMargin;
_local7 = __leftMargin;
_local14 = __rightMargin;
_local9 = __dayToDateMargin;
_local10 = __dateMargin;
}
} else {
_local5 = (__cellHeight = __cellHeight * _local12);
_local6 = (__cellWidth = __cellWidth * _local11);
_local8 = (__colMargin = __colMargin * _local11);
_local7 = (__leftMargin = __leftMargin * _local11);
_local14 = (__rightMargin = __rightMargin * _local11);
_local9 = (__dayToDateMargin = __dayToDateMargin * _local12);
_local10 = (__dateMargin = __dateMargin * _local12);
}
var _local3 = 0;
while (_local3 < 7) {
var _local2 = 0;
while (_local2 < 7) {
var _local4 = this[(("dayBlock" + _local3) + "label") + _local2];
_local4._width = _local6;
_local4._height = _local5;
_local4._x = ((_local3 == 0) ? (_local7) : (((_local3 == 1) ? ((_local8 + _local6) + _local7) : (((_local8 * _local3) + (_local6 * _local3)) + _local7))));
_local4._y = ((_local2 == 0) ? 0 : (((_local2 == 1) ? (_local9 + _local5) : ((_local2 * _local10) + (_local5 * _local2)))));
_local2++;
}
_local3++;
}
todayIndicator._x = todayIndicator._x * _local11;
todayIndicator._y = todayIndicator._y * _local12;
todayIndicator._width = _local6;
todayIndicator._height = _local5;
selectedIndicator._x = selectedIndicator._x * _local11;
selectedIndicator._y = selectedIndicator._y * _local12;
selectedIndicator._width = _local6;
selectedIndicator._height = _local5;
rollOverIndicator._x = rollOverIndicator._x * _local11;
rollOverIndicator._y = rollOverIndicator._y * _local12;
rollOverIndicator._width = _local6;
rollOverIndicator._height = _local5;
}
function setStyle(n, val) {
val = ((val == "") ? undefined : (val));
var _local6 = ((n == "disabledColor") ? true : false);
var _local7 = (_local6 ? (val) : undefined);
var _local3 = 0;
while (_local3 < 7) {
this[("dayBlock" + _local3) + "label0"][n] = ((!_local6) ? (val) : undefined);
var _local2 = 1;
while (_local2 < 7) {
if (this[(("dayBlock" + _local3) + "label") + _local2].enabled && (!_local6)) {
this[(("dayBlock" + _local3) + "label") + _local2][n] = val;
} else if (!_local6) {
this[(("dayBlock" + _local3) + "label") + _local2][n] = val;
} else {
this[(("dayBlock" + _local3) + "label") + _local2][n] = _local7;
}
_local2++;
}
_local3++;
}
}
function setSelectedMonthAndYear(newMonth, newYear) {
var _local8;
var _local2;
var _local6;
var _local7;
var _local24;
var _local29;
var _local30;
var _local18 = false;
var _local21 = false;
var _local26 = _parent;
var _local25;
var _local19;
if (newMonth == undefined) {
newMonth = __displayedMonth;
}
if (newYear == undefined) {
newYear = __displayedYear;
}
var _local12 = getOffsetOfMonth(newYear, newMonth);
var _local20 = getNumberOfDaysInMonth(newYear, newMonth);
var _local22 = new Date();
var _local23 = (_local22.getFullYear() == newYear) && (_local22.getMonth() == newMonth);
var _local16 = (newMonth == __selectedDate.getMonth()) && (newYear == __selectedDate.getFullYear());
var _local28 = newMonth - 1;
var _local27 = new Date(newYear, _local28, 1);
_local8 = getNumberOfDaysInMonth(_local27.getFullYear(), _local27.getMonth());
_local6 = 1;
_local12 = ((_local12 < 0) ? 0 : (_local12));
_local2 = _local12 - 1;
while (_local2 >= 0) {
this[(("dayBlock" + _local2) + "label") + _local6].text = "";
this[("dayBlock" + _local2) + "label0"].disabledArray[_local6] = true;
_local2--;
}
_local8 = 1;
while (_local8 <= _local20) {
var _local4 = new Date(newYear, newMonth, _local8);
_local7 = (_local12 + _local8) - 1;
_local2 = _local7 % 7;
_local6 = 1 + Math.floor(_local7 / 7);
_local24 = this["dayBlock" + _local2];
var _local3 = this[(("dayBlock" + _local2) + "label") + _local6];
_local3.text = _local8;
this[("dayBlock" + _local2) + "label0"].disabledArray[_local6] = false;
_local3.enabled = true;
_local3.styleName = undefined;
if ((_local23 && (_local4.getDate() == _local22.getDate())) && (__showToday)) {
_local18 = true;
if (todayIndicator == undefined) {
createObject("cal_todayIndicator", "todayIndicator", showTodayDepth);
todayIndicator._width = _local3._width;
todayIndicator._height = _local3._height;
todayIndicator.styleName = styleName;
mx.skins.ColoredSkinElement.setColorStyle(todayIndicator, "todayColor");
} else {
todayIndicator._visible = __showToday;
}
_local3.styleName = "TodayStyle";
_local3.draw();
todayIndicator._y = _local3._y;
todayIndicator._x = _local3._x;
todaysLabelReference = _local3;
} else if (!_local18) {
todaysLabelReference.styleName = undefined;
todaysLabelReference.draw();
todayIndicator._visible = false;
_local3.styleName = undefined;
}
if ((((_local4.getDate() == __selectedDate.getDate()) && (_local16)) && (!_local21)) && (!this[("dayBlock" + _local2) + "label0"].disabledArray[_local6])) {
selectedIndicator._x = _local3._x;
selectedIndicator._y = _local3._y;
selectedIndicator._visible = true;
selectedLabel = _local3;
selectedCell = (_local2 + ".") + _local6;
_local19 = _local2;
_local21 = true;
} else if (!_local16) {
selectedCell = undefined;
_local19 = undefined;
selectedIndicator._visible = false;
}
if (__selectableRange != undefined) {
var _local13 = selRangeMode;
switch (_local13) {
case 1 :
if ((_local4 < __selectableRange.rangeStart) || (_local4 > __selectableRange.rangeEnd)) {
_local3.enabled = false;
this[("dayBlock" + _local2) + "label0"].disabledArray[_local6] = true;
}
break;
case 2 :
if (_local4 < __selectableRange.rangeStart) {
_local3.enabled = false;
this[("dayBlock" + _local2) + "label0"].disabledArray[_local6] = true;
}
break;
case 3 :
if (_local4 > __selectableRange.rangeEnd) {
_local3.enabled = false;
this[("dayBlock" + _local2) + "label0"].disabledArray[_local6] = true;
}
break;
case 4 :
var _local9 = (((_local4.getFullYear() + ".") + _local4.getMonth()) + ".") + _local4.getDate();
var _local14 = (((__selectableRange.getFullYear() + ".") + __selectableRange.getMonth()) + ".") + __selectableRange.getDate();
if (_local9 != _local14) {
_local3.enabled = false;
this[("dayBlock" + _local2) + "label0"].disabledArray[_local6] = true;
}
break;
}
}
if (__disabledRanges.length > 0) {
var _local5 = 0;
while (_local5 < __disabledRanges.length) {
var _local10 = disRangeMode[_local5];
switch (_local10) {
case 1 :
if ((_local4 >= __disabledRanges[_local5].rangeStart) && (_local4 <= __disabledRanges[_local5].rangeEnd)) {
_local3.enabled = false;
this[("dayBlock" + _local2) + "label0"].disabledArray[_local6] = true;
}
break;
case 2 :
if (_local4 >= __disabledRanges[_local5].rangeStart) {
_local3.enabled = false;
this[("dayBlock" + _local2) + "label0"].disabledArray[_local6] = true;
}
break;
case 3 :
if (_local4 <= __disabledRanges[_local5].rangeEnd) {
_local3.enabled = false;
this[("dayBlock" + _local2) + "label0"].disabledArray[_local6] = true;
}
break;
case 4 :
var _local9 = (((_local4.getFullYear() + ".") + _local4.getMonth()) + ".") + _local4.getDate();
var _local11 = (((__disabledRanges[_local5].getFullYear() + ".") + __disabledRanges[_local5].getMonth()) + ".") + __disabledRanges[_local5].getDate();
if (_local9 == _local11) {
_local3.enabled = false;
this[("dayBlock" + _local2) + "label0"].disabledArray[_local6] = true;
}
break;
}
_local5++;
}
}
_local8++;
}
_local8 = 1;
_local7 = _local12 + _local20;
while (_local7 < 42) {
_local2 = _local7 % 7;
_local6 = 1 + Math.floor(_local7 / 7);
this[(("dayBlock" + _local2) + "label") + _local6].text = "";
this[("dayBlock" + _local2) + "label0"].disabledArray[_local6] = true;
_local7++;
}
if (__disabledDays.length > 0) {
_local7 = 0;
while (_local7 < __disabledDays.length) {
if (((__disabledDays[_local7] >= 0) && (__disabledDays[_local7] <= 6)) && (!isNaN(__disabledDays[_local7]))) {
_local2 = ((7 + __disabledDays[_local7]) - __firstDayOfWeek) % 7;
_local6 = 1;
while (_local6 < 7) {
this[("dayBlock" + _local2) + "label0"].disabledArray[_local6] = true;
selectedCell = undefined;
this[(("dayBlock" + _local2) + "label") + _local6].enabled = false;
_local6++;
}
}
_local7++;
}
}
checkSelectedIndicator(_local19, _local16);
__displayedMonth = newMonth;
__displayedYear = newYear;
_local25 = new Date(newYear, newMonth, 1);
_local26.dateDisplay.text = (_local26.__monthNames[_local25.getMonth()] + " ") + _local25.getFullYear();
todayIndicator._alpha = ((todaysLabelReference != undefined) ? (((todaysLabelReference.enabled == false) ? 30 : 100)) : 100);
invalidate();
}
function checkSelectedIndicator(columnIndex, selectCheck) {
if (!selectedLabel.enabled) {
if (selectCheck) {
__selectedDate = undefined;
selectedCell = undefined;
}
selectedIndicator._visible = false;
return(undefined);
}
if ((__selectedDate != undefined) && (selectCheck)) {
selectedIndicator._visible = true;
}
}
function getOffsetOfMonth(year, month) {
var _local3 = new Date(year, month, 1);
var _local2 = _local3.getDay() - __firstDayOfWeek;
return(((_local2 < 0) ? (_local2 + 7) : (_local2)));
}
function getNumberOfDaysInMonth(year, month) {
var _local1;
if (month == 1) {
if ((((year % 4) == 0) && ((year % 100) != 0)) || ((year % 400) == 0)) {
_local1 = 29;
} else {
_local1 = 28;
}
} else if ((((month == 3) || (month == 5)) || (month == 8)) || (month == 10)) {
_local1 = 30;
} else {
_local1 = 31;
}
return(_local1);
}
function stepDate(deltaY, deltaM) {
var _local4 = _parent;
var _local5 = __displayedYear;
var _local6 = __displayedMonth;
var _local3 = _local5 + deltaY;
var _local2 = _local6 + deltaM;
while (_local2 < 0) {
_local3--;
_local2 = _local2 + 12;
}
while (_local2 > 11) {
_local3++;
_local2 = _local2 - 12;
}
setSelectedMonthAndYear(_local2, _local3);
if (_local3 > _local5) {
_local4.dispatchScrollEvent("nextYear");
} else if (_local3 < _local5) {
_local4.dispatchScrollEvent("previousYear");
} else if (_local2 > _local6) {
_local4.dispatchScrollEvent("nextMonth");
} else if (_local2 < _local6) {
_local4.dispatchScrollEvent("previousMonth");
}
}
function get showToday() {
return(__showToday);
}
function set showToday(b) {
setShowToday(b);
//return(showToday);
}
function setShowToday(n) {
if (__showToday != n) {
__showToday = n;
}
setSelectedMonthAndYear(__displayedMonth, __displayedYear);
}
function get enabled() {
return(__enabled);
}
function set enabled(e) {
setEnabled(e);
//return(enabled);
}
function setEnabled(f) {
__enabled = f;
var _local3 = 0;
while (_local3 < 7) {
var _local2 = 0;
while (_local2 < 7) {
this[(("dayBlock" + _local3) + "label") + _local2].enabled = f;
this[("dayBlock" + _local3) + "label0"].disabledArray[_local2] = f;
_local2++;
}
_local3++;
}
if (!__enabled) {
selectedIndicator._visible = false;
todayIndicator._alpha = 30;
} else {
todayIndicator._alpha = 100;
setSelectedMonthAndYear(__displayedMonth, __displayedYear);
}
}
function get firstDayOfWeek() {
return(__firstDayOfWeek);
}
function set firstDayOfWeek(n) {
setFirstDayOfWeek(n);
//return(firstDayOfWeek);
}
function setFirstDayOfWeek(b) {
if ((b < 0) || (b > 6)) {
return(undefined);
}
if (b == __firstDayOfWeek) {
return(undefined);
}
__firstDayOfWeek = b;
drawDayNames();
setSelectedMonthAndYear(__displayedMonth, __displayedYear);
}
function get displayedMonth() {
return(__displayedMonth);
}
function set displayedMonth(m) {
setDisplayedMonth(m);
//return(displayedMonth);
}
function setDisplayedMonth(mo) {
if ((mo < 0) || (mo > 11)) {
return(undefined);
}
if (mo == __displayedMonth) {
return(undefined);
}
if (!checkMonthValidity(mo)) {
__displayedMonth = mo;
setSelectedMonthAndYear(mo, __displayedYear);
}
}
function get displayedYear() {
return(__displayedYear);
}
function set displayedYear(y) {
setDisplayedYear(y);
//return(displayedYear);
}
function setDisplayedYear(ye) {
if (ye <= 0) {
return(undefined);
}
if (ye == __displayedYear) {
return(undefined);
}
if (!checkYearValidity(ye)) {
__displayedYear = ye;
setSelectedMonthAndYear(__displayedMonth, ye);
}
}
function get dayNames() {
return(getDayNames());
}
function getDayNames() {
return(__dayNames.slice(0));
}
function set dayNames(d) {
setDayNames(d);
//return(dayNames);
}
function setDayNames(dn) {
if (dn.length < 7) {
var _local2 = 0;
while (_local2 < dn.length) {
__dayNames[_local2] = dn[_local2];
_local2++;
}
} else {
__dayNames = dn.slice(0);
}
drawDayNames();
}
function get disabledDays() {
return(getDisabledDays());
}
function getDisabledDays() {
var _local4 = new Array();
var _local2 = 0;
var _local3 = 0;
while (_local2 < __disabledDays.length) {
if ((__disabledDays[_local2] > 0) && (__disabledDays[_local2] < 6)) {
_local4[_local3] = __disabledDays[_local2];
_local3++;
}
_local2++;
}
return(_local4);
}
function set disabledDays(dd) {
setDisabledDays(dd);
//return(disabledDays);
}
function setDisabledDays(d) {
__disabledDays = d.slice(0);
setSelectedMonthAndYear(__displayedMonth, __displayedYear);
}
function get autoScale() {
return(__autoScale);
}
function set autoScale(a) {
setAutoScale(a);
//return(autoScale);
}
function setAutoScale(au) {
if (au != __autoScale) {
__autoScale = au;
}
}
function get cellHeight() {
return(__cellHeight);
}
function set cellHeight(c) {
setCellHeight(c);
//return(cellHeight);
}
function setCellHeight(ce) {
__cellHeight = ce;
}
function get cellWidth() {
return(__cellWidth);
}
function set cellWidth(c) {
setCellWidth(c);
//return(cellWidth);
}
function setCellWidth(cw) {
__cellWidth = cw;
}
function get colMargin() {
return(__colMargin);
}
function set colMargin(m) {
setColMargin(m);
//return(colMargin);
}
function setColMargin(cm) {
__colMargin = cm;
}
function get leftMargin() {
return(__leftMargin);
}
function set leftMargin(l) {
setLeftMargin(l);
//return(leftMargin);
}
function setLeftMargin(lm) {
__leftMargin = lm;
}
function get rightMargin() {
return(__rightMargin);
}
function set rightMargin(r) {
setRightMargin(r);
//return(rightMargin);
}
function setRightMargin(rm) {
__rightMargin = rm;
}
function get dayToDateMargin() {
return(__dayToDateMargin);
}
function set dayToDateMargin(dtd) {
setDayToDateMargin(dtd);
//return(dayToDateMargin);
}
function setDayToDateMargin(dm) {
__dayToDateMargin = dm;
}
function get dateMargin() {
return(__dateMargin);
}
function set dateMargin(dm) {
setDateMargin(dm);
//return(dateMargin);
}
function setDateMargin(dtm) {
__dateMargin = dtm;
}
function get selectableRange() {
return(__selectableRange);
}
function set selectableRange(sr) {
setSelectableRange(sr);
//return(selectableRange);
}
function setSelectableRange(srn) {
if (srn == undefined) {
__selectableRange = undefined;
setSelectedMonthAndYear(__displayedMonth, __displayedYear);
}
var _local7 = new Date();
var _local5 = _local7.getMonth();
var _local6 = _local7.getFullYear();
var _local3;
var _local4;
var _local8;
if (srn instanceof Date) {
selRangeMode = 4;
__selectableRange = new Date(srn.getFullYear(), srn.getMonth(), srn.getDate());
_local3 = srn.getMonth();
_local4 = srn.getFullYear();
} else if (srn instanceof Object) {
__selectableRange = new Object();
if ((srn.rangeStart == undefined) && (srn.rangeEnd != undefined)) {
selRangeMode = 3;
__selectableRange.rangeEnd = srn.rangeEnd;
if (_local6 <= __selectableRange.rangeEnd.getFullYear()) {
if (_local5 >= __selectableRange.rangeEnd.getMonth()) {
_local3 = __selectableRange.rangeEnd.getMonth();
_local4 = __selectableRange.rangeEnd.getFullYear();
} else if (_local5 <= __selectableRange.rangeEnd.getMonth()) {
_local3 = _local5;
_local4 = _local6;
}
} else if (_local6 > __selectableRange.rangeEnd.getFullYear()) {
_local3 = __selectableRange.rangeEnd.getMonth();
_local4 = __selectableRange.rangeEnd.getFullYear();
}
_local8 = ((__selectedDate != undefined) ? (((__selectedDate <= __selectableRange.rangeEnd) ? true : false)) : false);
} else if ((srn.rangeEnd == undefined) && (srn.rangeStart != undefined)) {
selRangeMode = 2;
__selectableRange.rangeStart = srn.rangeStart;
if (_local6 >= __selectableRange.rangeStart.getFullYear()) {
if (_local5 <= __selectableRange.rangeStart.getMonth()) {
_local3 = __selectableRange.rangeStart.getMonth();
_local4 = __selectableRange.rangeStart.getFullYear();
} else if (_local5 >= __selectableRange.rangeStart.getMonth()) {
_local3 = _local5;
_local4 = _local6;
}
} else if (_local6 < __selectableRange.rangeStart.getFullYear()) {
_local3 = __selectableRange.rangeStart.getMonth();
_local4 = __selectableRange.rangeStart.getFullYear();
}
_local8 = ((__selectedDate != undefined) ? (((__selectedDate >= __selectableRange.rangeStart) ? true : false)) : false);
} else if ((srn.rangeStart != undefined) && (srn.rangeEnd != undefined)) {
selRangeMode = 1;
__selectableRange.rangeStart = srn.rangeStart;
__selectableRange.rangeEnd = srn.rangeEnd;
if ((_local7 >= __selectableRange.rangeStart) && (_local7 <= __selectableRange.rangeEnd)) {
_local3 = _local5;
_local4 = _local6;
} else if (_local7 < __selectableRange.rangeStart) {
_local3 = __selectableRange.rangeStart.getMonth();
_local4 = __selectableRange.rangeStart.getFullYear();
} else if (_local7 > __selectableRange.rangeEnd) {
_local3 = __selectableRange.rangeEnd.getMonth();
_local4 = __selectableRange.rangeEnd.getFullYear();
}
if (__selectedDate != undefined) {
_local8 = !checkDateValidity(__selectedDate);
}
}
}
if (_local8) {
setSelectedMonthAndYear(__selectedDate.getMonth(), __selectedDate.getFullYear());
} else {
__selectedDate = undefined;
setSelectedMonthAndYear(_local3, _local4);
}
}
function get disabledRanges() {
return(__disabledRanges.slice(0));
}
function set disabledRanges(dr) {
setDisabledRanges(dr);
//return(disabledRanges);
}
function setDisabledRanges(drn) {
__disabledRanges = drn.slice(0);
var _local2 = 0;
while (_local2 < __disabledRanges.length) {
if (__disabledRanges[_local2] instanceof Date) {
disRangeMode[_local2] = 4;
__disabledRanges[_local2] = new Date(drn[_local2].getFullYear(), drn[_local2].getMonth(), drn[_local2].getDate());
} else if (__disabledRanges[_local2] instanceof Object) {
__disabledRanges[_local2] = new Object();
__disabledRanges[_local2] = drn[_local2];
if ((__disabledRanges[_local2].rangeStart == undefined) && (__disabledRanges[_local2].rangeEnd != undefined)) {
disRangeMode[_local2] = 3;
} else if ((__disabledRanges[_local2].rangeStart != undefined) && (__disabledRanges[_local2].rangeEnd == undefined)) {
disRangeMode[_local2] = 2;
} else if ((__disabledRanges[_local2].rangeStart != undefined) && (__disabledRanges[_local2].rangeEnd != undefined)) {
disRangeMode[_local2] = 1;
}
}
_local2++;
}
setSelectedMonthAndYear(__displayedMonth, __displayedYear);
}
function get selectedDate() {
return(__selectedDate);
}
function set selectedDate(d) {
setSelectedDate(d);
//return(selectedDate);
}
function setSelectedDate(sd) {
if (!checkDateValidity(sd)) {
__selectedDate = sd;
setSelectedMonthAndYear(__selectedDate.getMonth(), __selectedDate.getFullYear());
}
}
function get dragSelectMode() {
return(__dragSelectMode);
}
function set dragSelectMode(b) {
setDragSelectMode(b);
//return(dragSelectMode);
}
function setDragSelectMode(ds) {
__dragSelectMode = ds;
}
function checkDateValidity(dt) {
var _local4 = false;
if (__selectableRange != undefined) {
var _local9 = selRangeMode;
switch (_local9) {
case 1 :
if ((dt < __selectableRange.rangeStart) || (dt > __selectableRange.rangeEnd)) {
_local4 = true;
}
break;
case 2 :
if (dt < __selectableRange.rangeStart) {
_local4 = true;
}
break;
case 3 :
if (dt > __selectableRange.rangeEnd) {
_local4 = true;
}
break;
case 4 :
if ((dt > __selectableRange) || (dt < __selectableRange)) {
_local4 = true;
}
break;
}
}
if (__disabledRanges.length > 0) {
var _local2 = 0;
while (_local2 < __disabledRanges.length) {
var _local6 = disRangeMode[_local2];
switch (_local6) {
case 1 :
if ((dt >= __disabledRanges[_local2].rangeStart) && (dt <= __disabledRanges[_local2].rangeEnd)) {
_local4 = true;
}
break;
case 2 :
if (dt >= __disabledRanges[_local2].rangeStart) {
_local4 = true;
}
break;
case 3 :
if (dt <= __disabledRanges[_local2].rangeEnd) {
_local4 = true;
}
break;
case 4 :
var _local7 = (((dt.getFullYear() + ".") + dt.getMonth()) + ".") + dt.getDate();
var _local8 = (((__disabledRanges[_local2].getFullYear() + ".") + __disabledRanges[_local2].getMonth()) + ".") + __disabledRanges[_local2].getDate();
if (_local7 == _local8) {
_local4 = true;
}
break;
}
_local2++;
}
}
if (__disabledDays.length > 0) {
var _local5 = 0;
while (_local5 < __disabledDays.length) {
if (dt.getDay() == __disabledDays[_local5]) {
_local4 = true;
}
_local5++;
}
}
return(_local4);
}
function checkMonthValidity(m) {
var _local2 = false;
if (__selectableRange != undefined) {
var _local4 = selRangeMode;
switch (_local4) {
case 1 :
if ((m < __selectableRange.rangeStart.getMonth()) || (m > __selectableRange.rangeEnd.getMonth())) {
_local2 = true;
}
break;
case 2 :
if (m < __selectableRange.rangeStart.getMonth()) {
_local2 = true;
}
break;
case 3 :
if (m > __selectableRange.rangeEnd.getMonth()) {
_local2 = true;
}
break;
case 4 :
if ((m > __selectableRange.getMonth()) || (m < __selectableRange.getMonth())) {
_local2 = true;
}
break;
}
}
return(_local2);
}
function checkYearValidity(y) {
var _local2 = false;
if (__selectableRange != undefined) {
var _local4 = selRangeMode;
switch (_local4) {
case 1 :
if ((y < __selectableRange.rangeStart.getFullYear()) || (y > __selectableRange.rangeEnd.getFullYear())) {
_local2 = true;
}
break;
case 2 :
if (y < __selectableRange.rangeStart.getFullYear()) {
_local2 = true;
}
break;
case 3 :
if (y > __selectableRange.rangeEnd.getFullYear()) {
_local2 = true;
}
break;
case 4 :
if ((y > __selectableRange.getFullYear()) || (y < __selectableRange.getFullYear())) {
_local2 = true;
}
break;
}
}
return(_local2);
}
function invalidateStyle() {
selectedIndicator.invalidateStyle();
rollOverIndicator.invalidateStyle();
todayIndicator.invalidateStyle();
}
static var symbolName = "CalendarLayout";
static var symbolOwner = mx.controls.CalendarLayout;
var className = "CalendarLayout";
var defaultWidth = 205;
var defaultHeight = 165;
var dayBlockBaseDepth = 2;
var showTodayDepth = 200;
var selectedDateDepth = 198;
var rollOverDateDepth = 199;
var labelBaseDepth = 900;
var backgroundDepth = 1;
var selRangeMode = 1;
var disRangeMode = [];
var _color = {themeColor:1, rollOverColor:1, selectionColor:1, todayColor:1};
var __showToday = true;
var __disabledRanges = [];
var __enabled = true;
var __firstDayOfWeek = 0;
var __selectableRange = undefined;
var __selectedDate = undefined;
var __displayedMonth = undefined;
var __displayedYear = undefined;
var __dayNames = ["S", "M", "T", "W", "T", "F", "S"];
var __disabledDays = [];
var __autoScale = true;
var __cellHeight = 20;
var __cellWidth = 20;
var __colMargin = 8;
var __leftMargin = 8.5;
var __rightMargin = 8.5;
var __dayToDateMargin = 5;
var __dateMargin = 4;
var __dragSelectMode = false;
var __defaultCellHeight = mx.controls.CalendarLayout.prototype.__cellHeight;
var __defaultCellWidth = mx.controls.CalendarLayout.prototype.__cellWidth;
var __defaultColMargin = mx.controls.CalendarLayout.prototype.__colMargin;
var __defaultLeftMargin = mx.controls.CalendarLayout.prototype.__leftMargin;
var __defaultRightMargin = mx.controls.CalendarLayout.prototype.__rightMargin;
var __defaultDayToDateMargin = mx.controls.CalendarLayout.prototype.__dayToDateMargin;
var __defaultDateMargin = mx.controls.CalendarLayout.prototype.__dateMargin;
}
Symbol 977 MovieClip [__Packages.mx.controls.DateChooser] Frame 0
class mx.controls.DateChooser extends mx.core.UIComponent
{
var tabEnabled, boundingBox, __get__width, __get__height, createEmptyMovieClip, background_mc, border_mc, sizeXRatio, sizeYRatio, styleName, createClassObject, dateGrid, calHeader, createLabel, dateDisplay, fwdMonthButton, backMonthButton, fwdMonthHit, backMonthHit, __width, __height, _parent, dispatchEvent;
function DateChooser () {
super();
}
function init() {
super.init();
tabEnabled = false;
boundingBox._visible = false;
boundingBox._width = (boundingBox._height = 0);
}
function createChildren() {
var _local5 = __get__width();
var _local11 = __get__height();
createEmptyMovieClip("background_mc", backgroundDepth);
var _local3 = background_mc;
_local3.onPress = function () {
};
_local3.useHandCursor = false;
createEmptyMovieClip("border_mc", borderDepth);
var _local10 = border_mc;
sizeXRatio = _local5 / defaultWidth;
sizeYRatio = _local11 / defaultHeight;
_local3.beginFill(16777215, 100);
_local3.lineTo(_local5, 0);
_local3.lineTo(_local5, _local11);
_local3.lineTo(0, _local11);
_local3.lineTo(0, 0);
_local3.endFill();
_local3.styleName = this;
mx.skins.ColoredSkinElement.setColorStyle(_local3, "backgroundColor");
_local10.lineStyle(0, 0, 100);
_local10.lineTo(_local5, 0);
_local10.lineTo(_local5, _local11);
_local10.lineTo(0, _local11);
_local10.lineTo(0, 0);
mx.skins.ColoredSkinElement.setColorStyle(_local10, "borderColor");
if (_global.styles.CalendarLayout != undefined) {
styleName = _global.styles.CalendarLayout;
}
createClassObject(mx.controls.CalendarLayout, "dateGrid", dateGridDepth, {styleName:this});
for (var _local12 in uninitializer) {
dateGrid[_local12] = uninitializer[_local12];
}
dateGrid.move(0, 41 * sizeYRatio);
createEmptyMovieClip("calHeader", headerDepth);
var _local4 = calHeader;
_local4.beginFill(3708547, 100);
_local4.moveTo(1, 1);
_local4.lineTo(_local5 - 1, 1);
_local4.lineTo(_local5 - 1, 30 * sizeYRatio);
_local4.lineTo(1, 30 * sizeYRatio);
_local4.lineTo(1, 1);
_local4.endFill();
_local4.styleName = this;
mx.skins.ColoredSkinElement.setColorStyle(_local4, "headerColor");
createLabel("dateDisplay", headerDisplayDepth);
dateDisplay._width = 120 * sizeXRatio;
dateDisplay._height = 20 * sizeYRatio;
dateDisplay._x = 45 * sizeXRatio;
dateDisplay._y = 5 * sizeYRatio;
dateDisplay.readOnly = true;
dateDisplay.selectable = false;
dateDisplay.setStyle("styleName", "HeaderDateText");
dateDisplay.text = (monthNames[displayedMonth] + " ") + displayedYear;
createClassObject(mx.controls.SimpleButton, "fwdMonthButton", fwdMonthButtonSkinID);
var _local9 = fwdMonthButton;
_local9.autoRepeat = false;
_local9.tabEnabled = false;
_local9.move((_local5 - (12 * sizeXRatio)) - (6 * sizeXRatio), 8 * sizeYRatio);
_local9.falseUpSkin = fwdMonthButtonUpSymbolName;
_local9.falseDownSkin = fwdMonthButtonDownSymbolName;
_local9.falseDisabledSkin = fwdMonthButtonDisabledSymbolName;
_local9.buttonDownHandler = fwdMonthButtonDownHandler;
createClassObject(mx.controls.SimpleButton, "backMonthButton", backMonthButtonSkinID);
var _local8 = backMonthButton;
_local8.tabEnabled = false;
_local8.autoRepeat = false;
_local8.move(12 * sizeXRatio, 8 * sizeYRatio);
_local8.falseUpSkin = backMonthButtonUpSymbolName;
_local8.falseDownSkin = backMonthButtonDownSymbolName;
_local8.falseDisabledSkin = backMonthButtonDisabledSymbolName;
_local8.buttonDownHandler = backMonthButtonDownHandler;
var _local7 = fwdMonthButton._x;
var _local6 = fwdMonthButton._y;
createEmptyMovieClip("fwdMonthHit", buttonHitAreaDepth);
fwdMonthHit.beginFill(13369344, 50);
fwdMonthHit.moveTo(_local7 - (6.2 * sizeXRatio), _local6 - (2.3 * sizeYRatio));
fwdMonthHit.lineTo(_local7 + (12 * sizeXRatio), _local6 - (2.3 * sizeYRatio));
fwdMonthHit.lineTo(_local7 + (12 * sizeXRatio), _local6 + (16 * sizeYRatio));
fwdMonthHit.lineTo(_local7 - (6.2 * sizeXRatio), _local6 + (16 * sizeYRatio));
fwdMonthHit.lineTo(_local7 - (6.2 * sizeXRatio), _local6 - (2.3 * sizeYRatio));
fwdMonthHit.endFill();
fwdMonthHit._visible = false;
fwdMonthButton.hitArea = fwdMonthHit;
_local7 = backMonthButton._x;
_local6 = backMonthButton._y;
createEmptyMovieClip("backMonthHit", buttonHitAreaDepth + 1);
backMonthHit.beginFill(13369344, 50);
backMonthHit.lineTo(fwdMonthHit._width, 0);
backMonthHit.lineTo(fwdMonthHit._width, fwdMonthHit._height);
backMonthHit.lineTo(0, fwdMonthHit._height);
backMonthHit.lineTo(0, 0);
backMonthHit.endFill();
backMonthHit._x = _local7 - (6 * sizeXRatio);
backMonthHit._y = _local6 - (2.3 * sizeYRatio);
backMonthHit._visible = false;
backMonthButton.hitArea = backMonthHit;
}
function invalidateStyle() {
dateGrid.invalidateStyle();
calHeader.invalidateStyle();
background_mc.invalidateStyle();
border_mc.invalidateStyle();
}
function setStyle(n, val) {
var _local4 = ((val == " ") ? undefined : (val));
dateDisplay[n] = _local4;
dateGrid.setStyle(n, val);
super.setStyle(n, val);
}
function setSize(w, h, noEvent) {
if ((w <= 1) || (h <= 1)) {
return(undefined);
}
var _local10 = __get__width();
var _local9 = __get__height();
sizeXRatio = w / _local10;
sizeYRatio = h / _local9;
background_mc._width = w;
background_mc._height = h;
border_mc._width = w;
border_mc._height = h;
calHeader._xscale = background_mc._xscale;
calHeader._yscale = background_mc._yscale;
var _local5 = buttonWidth._width * sizeXRatio;
var _local6 = _local5._height * sizeYRatio;
backMonthButton.setSize(_local5, _local6);
fwdMonthButton.setSize(_local5, _local6);
var _local8 = backMonthButton._x * sizeXRatio;
var _local7 = backMonthButton._y * sizeYRatio;
var _local16 = fwdMonthButton._x * sizeXRatio;
var _local15 = fwdMonthButton._y * sizeYRatio;
backMonthButton._x = _local8;
backMonthButton._y = _local7;
fwdMonthButton._x = _local16;
fwdMonthButton._y = _local15;
backMonthHit._x = backMonthHit._x * sizeXRatio;
backMonthHit._y = backMonthHit._y * sizeYRatio;
backMonthHit._width = backMonthHit._width * sizeXRatio;
backMonthHit._height = backMonthHit._height * sizeYRatio;
fwdMonthHit._x = fwdMonthHit._x * sizeXRatio;
fwdMonthHit._y = fwdMonthHit._y * sizeYRatio;
fwdMonthHit._width = fwdMonthHit._width * sizeXRatio;
fwdMonthHit._height = fwdMonthHit._height * sizeYRatio;
dateDisplay._width = dateDisplay._width * sizeXRatio;
dateDisplay._height = dateDisplay._height * sizeYRatio;
var _local13 = dateDisplay._x * sizeXRatio;
var _local11 = dateDisplay._y * sizeYRatio;
dateDisplay._x = _local13;
dateDisplay._y = _local11;
if (dateGrid.__get__autoScale()) {
var _local14 = dateGrid._x * sizeXRatio;
dateGrid._x = _local14;
var _local12 = dateGrid._y * sizeYRatio;
dateGrid._y = _local12;
}
dateGrid.setSize(w, h, noEvent);
super.setSize(w, h, noEvent);
__width = w;
__height = h;
}
function getInitializer() {
if (uninitializer == undefined) {
uninitializer = new Object();
}
return(true);
}
function get showToday() {
if (__enabled) {
return(dateGrid.__get__showToday());
}
}
function set showToday(n) {
if (!__enabled) {
return;
}
if ((dateGrid == undefined) && (getInitializer())) {
uninitializer.showToday = n;
} else {
dateGrid.__set__showToday(n);
}
//return(showToday);
}
function get enabled() {
return(getEnabled());
}
function getEnabled() {
return(__enabled);
}
function set enabled(b) {
setEnabled(b);
//return(enabled);
}
function setEnabled(b) {
if (b == __enabled) {
return(undefined);
}
__enabled = b;
super.setEnabled(b);
fwdMonthButton.enabled = b;
backMonthButton.enabled = b;
dateDisplay.enabled = b;
dateGrid.__set__enabled(b);
}
function get firstDayOfWeek() {
if (__enabled) {
return(dateGrid.__get__firstDayOfWeek());
}
}
function set firstDayOfWeek(n) {
if (!__enabled) {
return;
}
if ((dateGrid == undefined) && (getInitializer())) {
uninitializer.firstDayOfWeek = n;
} else {
dateGrid.__set__firstDayOfWeek(n);
}
//return(firstDayOfWeek);
}
function get displayedMonth() {
if (__enabled) {
return(dateGrid.__get__displayedMonth());
}
}
function set displayedMonth(m) {
if (!__enabled) {
return;
}
dateGrid.__set__displayedMonth(m);
dateDisplay.text = (monthNames[dateGrid.__get__displayedMonth()] + " ") + displayedYear;
//return(displayedMonth);
}
function get displayedYear() {
if (__enabled) {
return(dateGrid.__get__displayedYear());
}
}
function set displayedYear(y) {
if (!__enabled) {
return;
}
dateGrid.__set__displayedYear(y);
dateDisplay.text = (monthNames[displayedMonth] + " ") + displayedYear;
//return(displayedYear);
}
function get dayNames() {
if (__enabled) {
if ((dateGrid == undefined) && (getInitializer())) {
return(uninitializer.dayNames);
}
return(dateGrid.__get__dayNames());
}
}
function set dayNames(d) {
if (!__enabled) {
return;
}
if ((dateGrid == undefined) && (getInitializer())) {
uninitializer.dayNames = d;
} else {
dateGrid.__set__dayNames(d);
}
//return(dayNames);
}
function get disabledDays() {
if (__enabled) {
if ((dateGrid == undefined) && (getInitializer())) {
return(uninitializer.disabledDays);
}
return(dateGrid.__get__disabledDays());
}
}
function set disabledDays(dd) {
if (!__enabled) {
return;
}
if ((dateGrid == undefined) && (getInitializer())) {
uninitializer.disabledDays = dd;
} else {
dateGrid.__set__disabledDays(dd);
}
//return(disabledDays);
}
function get selectableRange() {
if (__enabled) {
return(dateGrid.__get__selectableRange());
}
}
function set selectableRange(sRange) {
if (!__enabled) {
return;
}
dateGrid.__set__selectableRange(sRange);
//return(selectableRange);
}
function get disabledRanges() {
if (__enabled) {
return(dateGrid.__get__disabledRanges());
}
}
function set disabledRanges(r) {
if (!__enabled) {
return;
}
dateGrid.__set__disabledRanges(r.slice(0));
//return(disabledRanges);
}
function get selectedDate() {
if (__enabled) {
return(dateGrid.__get__selectedDate());
}
}
function set selectedDate(s) {
if (!__enabled) {
return;
}
dateGrid.__set__selectedDate(s);
dateDisplay.text = (monthNames[displayedMonth] + " ") + displayedYear;
//return(selectedDate);
}
function get monthNames() {
if (__enabled) {
return(getMonthNames());
}
}
function getMonthNames() {
return(__monthNames);
}
function set monthNames(a) {
if (!__enabled) {
return;
}
setMonthNames(a);
//return(monthNames);
}
function setMonthNames(a) {
__monthNames = new Array();
var _local2 = 0;
while (_local2 < a.length) {
__monthNames[_local2] = a[_local2];
_local2++;
}
if (dateGrid != undefined) {
dateDisplay.text = (__monthNames[displayedMonth] + " ") + displayedYear;
}
}
function fwdMonthButtonDownHandler() {
var _local2 = _parent;
var _local3 = new Date(_local2.displayedYear, _local2.displayedMonth, _local2.selectableRange.rangeEnd.getDate());
if ((_local2.selectableRange != undefined) && ((_local2.dateGrid.selRangeMode == 1) || (_local2.dateGrid.selRangeMode == 3))) {
if (_local2.selectableRange.rangeEnd > _local3) {
_local2.dateGrid.stepDate(0, 1);
_local2.dateDisplay.text = (_local2.monthNames[_local2.displayedMonth] + " ") + _local2.displayedYear;
}
} else if ((_local2.dateGrid.selRangeMode != 4) || (_local2.selectableRange == undefined)) {
_local2.dateGrid.stepDate(0, 1);
_local2.dateDisplay.text = (_local2.monthNames[_local2.displayedMonth] + " ") + _local2.displayedYear;
}
}
function backMonthButtonDownHandler() {
var _local2 = _parent;
var _local3 = new Date(_local2.displayedYear, _local2.displayedMonth, _local2.selectableRange.rangeStart.getDate());
if ((_local2.selectableRange != undefined) && ((_local2.dateGrid.selRangeMode == 1) || (_local2.dateGrid.selRangeMode == 2))) {
if (_local2.selectableRange.rangeStart < _local3) {
_local2.dateGrid.stepDate(0, -1);
_local2.dateDisplay.text = (_local2.monthNames[_local2.displayedMonth] + " ") + _local2.displayedYear;
}
} else if ((_local2.dateGrid.selRangeMode != 4) || (_local2.selectableRange == undefined)) {
_local2.dateGrid.stepDate(0, -1);
_local2.dateDisplay.text = (_local2.monthNames[_local2.displayedMonth] + " ") + _local2.displayedYear;
}
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll", detail:detail});
}
function dispatchChangeEvent() {
dispatchEvent({type:"change"});
}
static var symbolName = "DateChooser";
static var symbolOwner = mx.controls.DateChooser;
var className = "DateChooser";
static var version = "2.0.2.127";
var __enabled = true;
var __monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
var uninitializer = undefined;
var _color = {headerColor:1, backgroundColor:1};
var clipParameters = {showToday:1, firstDayOfWeek:1, monthNames:1, dayNames:1, disabledDays:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.DateChooser.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var distance = 1;
var gridY = 41;
var defaultWidth = 205;
var defaultHeight = 214;
var dateGridDepth = 5;
var backgroundDepth = 1;
var borderDepth = 2;
var headerDepth = 3;
var headerDisplayDepth = 4;
var buttonHitAreaDepth = 8;
var fwdMonthButtonSkinID = 6;
var fwdMonthButtonUpSymbolName = "fwdMonthUp";
var fwdMonthButtonDownSymbolName = "fwdMonthDown";
var fwdMonthButtonDisabledSymbolName = "fwdMonthDisabled";
var backMonthButtonSkinID = 7;
var backMonthButtonUpSymbolName = "backMonthUp";
var backMonthButtonDownSymbolName = "backMonthDown";
var backMonthButtonDisabledSymbolName = "backMonthDisabled";
var previousSelectedCellIndex = undefined;
}
Symbol 978 MovieClip [__Packages.mx.controls.ComboBox] Frame 0
class mx.controls.ComboBox extends mx.controls.ComboBase
{
var __set__editable, editable, __labels, data, __dropdownWidth, __width, _editable, selectedIndex, __dropdown, dataProvider, __labelFunction, createObject, border_mc, mask, text_mc, dispatchValueChangedEvent, getValue, length, selectedItem, _y, isPressed, owner, __set__visible, height, localToGlobal, __selectedIndexOnDropdown, __initialSelectedIndexOnDropdown, __get__height, getStyle, _parent, width, __dataProvider, selected, dispatchEvent;
function ComboBox () {
super();
}
function init() {
super.init();
}
function createChildren() {
super.createChildren();
__set__editable(editable);
if (__labels.length > 0) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < labels.length) {
_local6.addItem({label:labels[_local3], data:data[_local3]});
_local3++;
}
setDataProvider(_local6);
}
dropdownWidth = (((typeof(__dropdownWidth) == "number") ? (__dropdownWidth) : (__width)));
if (!_editable) {
selectedIndex = 0;
}
initializing = false;
}
function onKillFocus(n) {
if (_showingDropdown && (n != null)) {
displayDropdown(false);
}
super.onKillFocus();
}
function getDropdown() {
if (initializing) {
return(undefined);
}
if (!hasDropdown()) {
var _local3 = new Object();
_local3.styleName = this;
if (dropdownBorderStyle != undefined) {
_local3.borderStyle = dropdownBorderStyle;
}
_local3._visible = false;
__dropdown = mx.managers.PopUpManager.createPopUp(this, mx.controls.List, false, _local3, true);
__dropdown.scroller.mask.removeMovieClip();
if (dataProvider == undefined) {
dataProvider = new Array();
}
__dropdown.setDataProvider(dataProvider);
__dropdown.selectMultiple = false;
__dropdown.rowCount = __rowCount;
__dropdown.selectedIndex = selectedIndex;
__dropdown.vScrollPolicy = "auto";
__dropdown.labelField = __labelField;
__dropdown.labelFunction = __labelFunction;
__dropdown.owner = this;
__dropdown.changeHandler = _changeHandler;
__dropdown.scrollHandler = _scrollHandler;
__dropdown.itemRollOverHandler = _itemRollOverHandler;
__dropdown.itemRollOutHandler = _itemRollOutHandler;
__dropdown.resizeHandler = _resizeHandler;
__dropdown.mouseDownOutsideHandler = function (eventObj) {
var _local3 = this.owner;
var _local4 = new Object();
_local4.x = _local3._root._xmouse;
_local4.y = _local3._root._ymouse;
_local3._root.localToGlobal(_local4);
if (_local3.hitTest(_local4.x, _local4.y, false)) {
} else if ((!this.wrapDownArrowButton) && (this.owner.downArrow_mc.hitTest(_root._xmouse, _root._ymouse, false))) {
} else {
_local3.displayDropdown(false);
}
};
__dropdown.onTweenUpdate = function (v) {
this._y = v;
};
__dropdown.setSize(__dropdownWidth, __dropdown.height);
createObject("BoundingBox", "mask", 20);
mask._y = border_mc.height;
mask._width = __dropdownWidth;
mask._height = __dropdown.height;
mask._visible = false;
__dropdown.setMask(mask);
}
return(__dropdown);
}
function setSize(w, h, noEvent) {
super.setSize(w, h, noEvent);
__dropdownWidth = w;
__dropdown.rowHeight = h;
__dropdown.setSize(__dropdownWidth, __dropdown.height);
}
function setEditable(e) {
super.setEditable(e);
if (e) {
text_mc.setText("");
} else {
text_mc.setText(selectedLabel);
}
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
__labels = lbls;
setDataProvider(lbls);
//return(labels);
}
function getLabelField() {
return(__labelField);
}
function get labelField() {
return(getLabelField());
}
function setLabelField(s) {
__dropdown.labelField = (__labelField = s);
text_mc.setText(selectedLabel);
}
function set labelField(s) {
setLabelField(s);
//return(labelField);
}
function getLabelFunction() {
return(__labelFunction);
}
function get labelFunction() {
return(getLabelFunction());
}
function set labelFunction(f) {
__dropdown.labelFunction = (__labelFunction = f);
text_mc.setText(selectedLabel);
//return(labelFunction);
}
function setSelectedItem(v) {
super.setSelectedItem(v);
__dropdown.selectedItem = v;
text_mc.setText(selectedLabel);
}
function setSelectedIndex(v) {
super.setSelectedIndex(v);
__dropdown.selectedIndex = v;
if (v != undefined) {
text_mc.setText(selectedLabel);
}
dispatchValueChangedEvent(getValue());
}
function setRowCount(count) {
if (isNaN(count)) {
return(undefined);
}
__rowCount = count;
__dropdown.setRowCount(count);
}
function get rowCount() {
return(Math.max(1, Math.min(length, __rowCount)));
}
function set rowCount(v) {
setRowCount(v);
//return(rowCount);
}
function setDropdownWidth(w) {
__dropdownWidth = w;
__dropdown.setSize(w, __dropdown.height);
}
function get dropdownWidth() {
return(__dropdownWidth);
}
function set dropdownWidth(v) {
setDropdownWidth(v);
//return(dropdownWidth);
}
function get dropdown() {
return(getDropdown());
}
function setDataProvider(dp) {
super.setDataProvider(dp);
__dropdown.setDataProvider(dp);
if (!_editable) {
selectedIndex = 0;
}
}
function open() {
displayDropdown(true);
}
function close() {
displayDropdown(false);
}
function get selectedLabel() {
var _local2 = selectedItem;
if (_local2 == undefined) {
return("");
}
if (labelFunction != undefined) {
return(labelFunction(_local2));
}
if (typeof(_local2) != "object") {
return(_local2);
}
if (_local2[labelField] != undefined) {
return(_local2[labelField]);
}
if (_local2.label != undefined) {
return(_local2.label);
}
var _local3 = " ";
for (var _local4 in _local2) {
if (_local4 != "__ID__") {
_local3 = (_local2[_local4] + ", ") + _local3;
}
}
_local3 = _local3.substring(0, _local3.length - 3);
return(_local3);
}
function hasDropdown() {
return((__dropdown != undefined) && (__dropdown.valueOf() != undefined));
}
function tweenEndShow(value) {
_y = value;
isPressed = true;
owner.dispatchEvent({type:"open", target:owner});
}
function tweenEndHide(value) {
_y = value;
__set__visible(false);
owner.dispatchEvent({type:"close", target:owner});
}
function displayDropdown(show) {
if (show == _showingDropdown) {
return(undefined);
}
var _local3 = new Object();
_local3.x = 0;
_local3.y = height;
localToGlobal(_local3);
if (show) {
__selectedIndexOnDropdown = selectedIndex;
__initialSelectedIndexOnDropdown = selectedIndex;
getDropdown();
var _local2 = __dropdown;
_local2.isPressed = true;
_local2.rowCount = rowCount;
_local2.visible = show;
_local2._parent.globalToLocal(_local3);
_local2.onTweenEnd = tweenEndShow;
var _local5;
var _local8;
if ((_local3.y + _local2.height) > Stage.height) {
_local5 = _local3.y - __get__height();
_local8 = _local5 - _local2.height;
mask._y = -_local2.height;
} else {
_local5 = _local3.y - _local2.height;
_local8 = _local3.y;
mask._y = border_mc.height;
}
var _local6 = _local2.selectedIndex;
if (_local6 == undefined) {
_local6 = 0;
}
var _local4 = _local2.vPosition;
_local4 = _local6 - 1;
_local4 = Math.min(Math.max(_local4, 0), _local2.length - _local2.rowCount);
_local2.vPosition = _local4;
_local2.move(_local3.x, _local5);
_local2.tween = new mx.effects.Tween(__dropdown, _local5, _local8, getStyle("openDuration"));
} else {
__dropdown._parent.globalToLocal(_local3);
delete __dropdown.dragScrolling;
__dropdown.onTweenEnd = tweenEndHide;
__dropdown.tween = new mx.effects.Tween(__dropdown, __dropdown._y, _local3.y - __dropdown.height, getStyle("openDuration"));
if (__initialSelectedIndexOnDropdown != selectedIndex) {
dispatchChangeEvent(undefined, __initialSelectedIndexOnDropdown, selectedIndex);
}
}
var _local9 = getStyle("openEasing");
if (_local9 != undefined) {
__dropdown.tween.easingEquation = _local9;
}
_showingDropdown = show;
}
function onDownArrow() {
_parent.displayDropdown(!_parent._showingDropdown);
}
function keyDown(e) {
if (e.ctrlKey && (e.code == 40)) {
displayDropdown(true);
} else if (e.ctrlKey && (e.code == 38)) {
displayDropdown(false);
dispatchChangeEvent(undefined, __selectedIndexOnDropdown, selectedIndex);
} else if (e.code == 27) {
displayDropdown(false);
} else if (e.code == 13) {
if (_showingDropdown) {
selectedIndex = __dropdown.selectedIndex;
displayDropdown(false);
}
} else if (((((!_editable) || (e.code == 38)) || (e.code == 40)) || (e.code == 33)) || (e.code == 34)) {
selectedIndex = 0 + selectedIndex;
bInKeyDown = true;
var _local3 = dropdown;
_local3.keyDown(e);
bInKeyDown = false;
selectedIndex = __dropdown.selectedIndex;
}
}
function invalidateStyle(styleProp) {
__dropdown.invalidateStyle(styleProp);
super.invalidateStyle(styleProp);
}
function changeTextStyleInChildren(styleProp) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.changeTextStyleInChildren(styleProp);
super.changeTextStyleInChildren(styleProp);
}
function changeColorStyleInChildren(sheetName, styleProp, newValue) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.changeColorStyleInChildren(sheetName, styleProp, newValue);
super.changeColorStyleInChildren(sheetName, styleProp, newValue);
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
super.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
}
function onUnload() {
__dropdown.removeMovieClip();
}
function _resizeHandler() {
var _local2 = owner;
_local2.mask._width = width;
_local2.mask._height = height;
}
function _changeHandler(obj) {
var _local2 = owner;
var _local3 = _local2.selectedIndex;
obj.target = _local2;
if (this == owner.text_mc) {
_local2.selectedIndex = undefined;
_local2.dispatchChangeEvent(obj, -1, -2);
} else {
_local2.selectedIndex = selectedIndex;
if (!_local2._showingDropdown) {
_local2.dispatchChangeEvent(obj, _local3, _local2.selectedIndex);
} else if (!_local2.bInKeyDown) {
_local2.displayDropdown(false);
}
}
}
function _scrollHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOverHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOutHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
if (0 == __dataProvider.length) {
text_mc.setText("");
delete selected;
} else if ((__dataProvider.length == ((eventObj.lastItem - eventObj.firstItem) + 1)) && (eventObj.eventName == "addItems")) {
selectedIndex = 0;
}
}
function dispatchChangeEvent(obj, prevValue, newValue) {
var _local2;
if (prevValue != newValue) {
if ((obj != undefined) && (obj.type == "change")) {
_local2 = obj;
} else {
_local2 = {type:"change"};
}
dispatchEvent(_local2);
}
}
static var symbolName = "ComboBox";
static var symbolOwner = mx.controls.ComboBox;
static var version = "2.0.2.127";
var clipParameters = {labels:1, data:1, editable:1, rowCount:1, dropdownWidth:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ComboBox.prototype.clipParameters, mx.controls.ComboBase.prototype.clipParameters);
var className = "ComboBox";
var _showingDropdown = false;
var __rowCount = 5;
var dropdownBorderStyle = undefined;
var initializing = true;
var __labelField = "label";
var bInKeyDown = false;
}
Symbol 998 MovieClip [__Packages.mx.core.View] Frame 0
class mx.core.View extends mx.core.UIComponent
{
var tabChildren, tabEnabled, boundingBox_mc, border_mc, __get__width, __get__height, __tabIndex, depth, createObject, createClassObject, loadExternal, destroyObject, createClassChildAtDepth, doLater;
function View () {
super();
}
function init() {
super.init();
tabChildren = true;
tabEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function size() {
border_mc.move(0, 0);
border_mc.setSize(__get__width(), __get__height());
doLayout();
}
function draw() {
size();
}
function get numChildren() {
var _local3 = childNameBase;
var _local2 = 0;
while (true) {
if (this[_local3 + _local2] == undefined) {
return(_local2);
}
_local2++;
}
}
function get tabIndex() {
return((tabEnabled ? (__tabIndex) : undefined));
}
function set tabIndex(n) {
__tabIndex = n;
//return(tabIndex);
}
function addLayoutObject(object) {
}
function createChild(className, instanceName, initProps) {
if (depth == undefined) {
depth = 1;
}
var _local2;
if (typeof(className) == "string") {
_local2 = createObject(className, instanceName, depth++, initProps);
} else {
_local2 = createClassObject(className, instanceName, depth++, initProps);
}
if (_local2 == undefined) {
_local2 = loadExternal(className, _loadExternalClass, instanceName, depth++, initProps);
} else {
this[childNameBase + numChildren] = _local2;
_local2._complete = true;
childLoaded(_local2);
}
addLayoutObject(_local2);
return(_local2);
}
function getChildAt(childIndex) {
return(this[childNameBase + childIndex]);
}
function destroyChildAt(childIndex) {
if (!((childIndex >= 0) && (childIndex < numChildren))) {
return(undefined);
}
var _local4 = childNameBase + childIndex;
var _local6 = numChildren;
var _local3;
for (_local3 in this) {
if (_local3 == _local4) {
_local4 = "";
destroyObject(_local3);
break;
}
}
var _local2 = Number(childIndex);
while (_local2 < (_local6 - 1)) {
this[childNameBase + _local2] = this[childNameBase + (_local2 + 1)];
_local2++;
}
delete this[childNameBase + (_local6 - 1)];
depth--;
}
function initLayout() {
if (!hasBeenLayedOut) {
doLayout();
}
}
function doLayout() {
hasBeenLayedOut = true;
}
function createChildren() {
if (border_mc == undefined) {
border_mc = createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:this});
}
doLater(this, "initLayout");
}
function convertToUIObject(obj) {
}
function childLoaded(obj) {
convertToUIObject(obj);
}
static function extension() {
mx.core.ExternalContent.enableExternalContent();
}
static var symbolName = "View";
static var symbolOwner = mx.core.View;
static var version = "2.0.2.127";
var className = "View";
static var childNameBase = "_child";
var hasBeenLayedOut = false;
var _loadExternalClass = "UIComponent";
}
Symbol 999 MovieClip [__Packages.mx.core.ExternalContent] Frame 0
class mx.core.ExternalContent
{
var createObject, numChildren, prepList, doLater, loadList, dispatchEvent, loadedList, childLoaded;
function ExternalContent () {
}
function loadExternal(url, placeholderClassName, instanceName, depth, initProps) {
var _local2;
_local2 = createObject(placeholderClassName, instanceName, depth, initProps);
this[mx.core.View.childNameBase + numChildren] = _local2;
if (prepList == undefined) {
prepList = new Object();
}
prepList[instanceName] = {obj:_local2, url:url, complete:false, initProps:initProps};
prepareToLoadMovie(_local2);
return(_local2);
}
function prepareToLoadMovie(obj) {
obj.unloadMovie();
doLater(this, "waitForUnload");
}
function waitForUnload() {
var _local3;
for (_local3 in prepList) {
var _local2 = prepList[_local3];
if (_local2.obj.getBytesTotal() == 0) {
if (loadList == undefined) {
loadList = new Object();
}
loadList[_local3] = _local2;
_local2.obj.loadMovie(_local2.url);
delete prepList[_local3];
doLater(this, "checkLoadProgress");
} else {
doLater(this, "waitForUnload");
}
}
}
function checkLoadProgress() {
var _local8 = false;
var _local3;
for (_local3 in loadList) {
var _local2 = loadList[_local3];
_local2.loaded = _local2.obj.getBytesLoaded();
_local2.total = _local2.obj.getBytesTotal();
if (_local2.total > 0) {
_local2.obj._visible = false;
dispatchEvent({type:"progress", target:_local2.obj, current:_local2.loaded, total:_local2.total});
if (_local2.loaded == _local2.total) {
if (loadedList == undefined) {
loadedList = new Object();
}
loadedList[_local3] = _local2;
delete loadList[_local3];
doLater(this, "contentLoaded");
}
} else if (_local2.total == -1) {
if (_local2.failedOnce != undefined) {
_local2.failedOnce++;
if (_local2.failedOnce > 3) {
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadList[_local3];
}
} else {
_local2.failedOnce = 0;
}
}
_local8 = true;
}
if (_local8) {
doLater(this, "checkLoadProgress");
}
}
function contentLoaded() {
var _local4;
for (_local4 in loadedList) {
var _local2 = loadedList[_local4];
_local2.obj._visible = true;
_local2.obj._complete = true;
var _local3;
for (_local3 in _local2.initProps) {
_local2.obj[_local3] = _local2.initProps[_local3];
}
childLoaded(_local2.obj);
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadedList[_local4];
}
}
function convertToUIObject(obj) {
if (obj.setSize == undefined) {
var _local2 = mx.core.UIObject.prototype;
obj.addProperty("width", _local2.__get__width, null);
obj.addProperty("height", _local2.__get__height, null);
obj.addProperty("left", _local2.__get__left, null);
obj.addProperty("x", _local2.__get__x, null);
obj.addProperty("top", _local2.__get__top, null);
obj.addProperty("y", _local2.__get__y, null);
obj.addProperty("right", _local2.__get__right, null);
obj.addProperty("bottom", _local2.__get__bottom, null);
obj.addProperty("visible", _local2.__get__visible, _local2.__set__visible);
obj.move = mx.core.UIObject.prototype.move;
obj.setSize = mx.core.UIObject.prototype.setSize;
obj.size = mx.core.UIObject.prototype.size;
mx.events.UIEventDispatcher.initialize(obj);
}
}
static function enableExternalContent() {
}
static function classConstruct() {
var _local1 = mx.core.View.prototype;
var _local2 = mx.core.ExternalContent.prototype;
_local1.loadExternal = _local2.loadExternal;
_local1.prepareToLoadMovie = _local2.prepareToLoadMovie;
_local1.waitForUnload = _local2.waitForUnload;
_local1.checkLoadProgress = _local2.checkLoadProgress;
_local1.contentLoaded = _local2.contentLoaded;
_local1.convertToUIObject = _local2.convertToUIObject;
return(true);
}
static var classConstructed = classConstruct();
static var ViewDependency = mx.core.View;
}
Symbol 1000 MovieClip [__Packages.mx.core.ScrollView] Frame 0
class mx.core.ScrollView extends mx.core.View
{
var __width, hScroller, vScroller, __maxHPosition, propsInited, scrollAreaChanged, specialHScrollCase, createObject, viewableColumns, __height, oldRndUp, viewableRows, __viewMetrics, owner, enabled, border_mc, __get__width, __get__height, invLayout, mask_mc, _parent, dispatchEvent;
function ScrollView () {
super();
}
function getHScrollPolicy(Void) {
return(__hScrollPolicy);
}
function setHScrollPolicy(policy) {
__hScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get hScrollPolicy() {
return(getHScrollPolicy());
}
function set hScrollPolicy(policy) {
setHScrollPolicy(policy);
//return(hScrollPolicy);
}
function getVScrollPolicy(Void) {
return(__vScrollPolicy);
}
function setVScrollPolicy(policy) {
__vScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get vScrollPolicy() {
return(getVScrollPolicy());
}
function set vScrollPolicy(policy) {
setVScrollPolicy(policy);
//return(vScrollPolicy);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
//return(hPosition);
}
function getHPosition(Void) {
return(__hPosition);
}
function setHPosition(pos) {
hScroller.__set__scrollPosition(pos);
__hPosition = pos;
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
//return(vPosition);
}
function getVPosition(Void) {
return(__vPosition);
}
function setVPosition(pos) {
vScroller.__set__scrollPosition(pos);
__vPosition = pos;
}
function get maxVPosition() {
var _local2 = vScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
return(getMaxHPosition());
}
function set maxHPosition(pos) {
setMaxHPosition(pos);
//return(maxHPosition);
}
function getMaxHPosition(Void) {
if (__maxHPosition != undefined) {
return(__maxHPosition);
}
var _local2 = hScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
var _local3 = getViewMetrics();
if (hPadding == undefined) {
hPadding = 0;
}
if (wPadding == undefined) {
wPadding = 0;
}
propsInited = true;
delete scrollAreaChanged;
heightPadding = hPadding;
widthPadding = wPadding;
if (colWidth == 0) {
colWidth = 1;
}
if (rwHeight == 0) {
rwHeight = 1;
}
var _local5 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth);
if ((__hScrollPolicy == "on") || ((_local5 < colCount) && (__hScrollPolicy == "auto"))) {
if ((hScroller == undefined) || (specialHScrollCase)) {
delete specialHScrollCase;
hScroller = createObject("HScrollBar", "hSB", 1001);
hScroller.__set__lineScrollSize(20);
hScroller.scrollHandler = scrollProxy;
hScroller.__set__scrollPosition(__hPosition);
scrollAreaChanged = true;
}
if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local5)) || (scrollAreaChanged)) {
hScroller.setScrollProperties(_local5, 0, colCount - _local5);
viewableColumns = _local5;
numberOfCols = colCount;
columnWidth = colWidth;
}
} else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) {
hScroller.removeMovieClip();
delete hScroller;
scrollAreaChanged = true;
}
if (heightPadding == undefined) {
heightPadding = 0;
}
var _local4 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight);
var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0;
if ((__vScrollPolicy == "on") || ((_local4 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) {
if (vScroller == undefined) {
vScroller = createObject("VScrollBar", "vSB", 1002);
vScroller.scrollHandler = scrollProxy;
vScroller.__set__scrollPosition(__vPosition);
scrollAreaChanged = true;
rowH = 0;
}
if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local4 + oldRndUp))) || (scrollAreaChanged)) {
vScroller.setScrollProperties(_local4, 0, (rwCount - _local4) + _local8);
viewableRows = _local4;
rowC = rwCount;
rowH = rwHeight;
oldRndUp = _local8;
}
} else if (((__vScrollPolicy == "auto") || (__vScrollPolicy == "off")) && (vScroller != undefined)) {
vScroller.removeMovieClip();
delete vScroller;
scrollAreaChanged = true;
}
numberOfCols = colCount;
columnWidth = colWidth;
if (scrollAreaChanged) {
doLayout();
var _local2 = __viewMetrics;
var _local12 = ((owner != undefined) ? (owner) : this);
_local12.layoutContent(_local2.left, _local2.top, ((columnWidth * numberOfCols) - _local2.left) - _local2.right, rowC * rowH, (__width - _local2.left) - _local2.right, (__height - _local2.top) - _local2.bottom);
}
if (!enabled) {
setEnabled(false);
}
}
function getViewMetrics(Void) {
var _local2 = __viewMetrics;
var _local3 = border_mc.__get__borderMetrics();
_local2.left = _local3.left;
_local2.right = _local3.right;
if (vScroller != undefined) {
_local2.right = _local2.right + vScroller.minWidth;
}
_local2.top = _local3.top;
if ((hScroller == undefined) && ((__hScrollPolicy == "on") || (__hScrollPolicy == true))) {
hScroller = createObject("FHScrollBar", "hSB", 1001);
specialHScrollCase = true;
}
_local2.bottom = _local3.bottom;
if (hScroller != undefined) {
_local2.bottom = _local2.bottom + hScroller.minHeight;
}
return(_local2);
}
function doLayout(Void) {
var _local10 = __get__width();
var _local8 = __get__height();
delete invLayout;
var _local3 = (__viewMetrics = getViewMetrics());
var _local2 = _local3.left;
var _local9 = _local3.right;
var _local5 = _local3.top;
var _local11 = _local3.bottom;
var _local7 = hScroller;
var _local6 = vScroller;
_local7.setSize((_local10 - _local2) - _local9, _local7.minHeight + 0);
_local7.move(_local2, _local8 - _local11);
_local6.setSize(_local6.minWidth + 0, (_local8 - _local5) - _local11);
_local6.move(_local10 - _local9, _local5);
var _local4 = mask_mc;
_local4._width = (_local10 - _local2) - _local9;
_local4._height = (_local8 - _local5) - _local11;
_local4._x = _local2;
_local4._y = _local5;
}
function createChild(id, name, props) {
var _local2 = super.createChild(id, name, props);
return(_local2);
}
function init(Void) {
super.init();
__viewMetrics = new Object();
if (_global.__SVMouseWheelManager == undefined) {
var _local4 = (_global.__SVMouseWheelManager = new Object());
_local4.onMouseWheel = __onMouseWheel;
Mouse.addListener(_local4);
}
}
function __onMouseWheel(delta, scrollTarget) {
var _local4 = scrollTarget;
var _local1;
while (_local4 != undefined) {
if (_local4 instanceof mx.core.ScrollView) {
_local1 = _local4;
}
_local4 = _local4._parent;
}
if (_local1 != undefined) {
_local4 = ((delta <= 0) ? 1 : -1);
var _local2 = _local1.vScroller.lineScrollSize;
if (_local2 == undefined) {
_local2 = 0;
}
_local2 = Math.max(Math.abs(delta), _local2);
var _local3 = _local1.vPosition + (_local2 * _local4);
_local1.vPosition = Math.max(0, Math.min(_local3, _local1.maxVPosition));
_local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.vPosition});
}
}
function createChildren(Void) {
super.createChildren();
if (mask_mc == undefined) {
mask_mc = createObject("BoundingBox", "mask_mc", MASK_DEPTH);
}
mask_mc._visible = false;
}
function invalidate(Void) {
super.invalidate();
}
function draw(Void) {
size();
}
function size(Void) {
super.size();
}
function scrollProxy(docObj) {
_parent.onScroll(docObj);
}
function onScroll(docObj) {
var _local3 = docObj.target;
var _local2 = _local3.scrollPosition;
if (_local3 == vScroller) {
var _local4 = "vertical";
var _local5 = "__vPosition";
} else {
var _local4 = "horizontal";
var _local5 = "__hPosition";
}
this[_local5] = _local2;
dispatchEvent({type:"scroll", direction:_local4, position:_local2});
}
function setEnabled(v) {
vScroller.enabled = (hScroller.enabled = v);
}
function childLoaded(obj) {
super.childLoaded(obj);
obj.setMask(mask_mc);
}
static var symbolName = "ScrollView";
static var symbolOwner = mx.core.ScrollView;
static var version = "2.0.2.127";
var className = "ScrollView";
var __vScrollPolicy = "auto";
var __hScrollPolicy = "off";
var __vPosition = 0;
var __hPosition = 0;
var numberOfCols = 0;
var rowC = 0;
var columnWidth = 1;
var rowH = 0;
var heightPadding = 0;
var widthPadding = 0;
var MASK_DEPTH = 10000;
}
Symbol 1001 MovieClip [__Packages.mx.controls.listclasses.DataProvider] Frame 0
class mx.controls.listclasses.DataProvider extends Object
{
var length, splice, dispatchEvent, sortOn, reverse, sort;
function DataProvider (obj) {
super();
}
static function Initialize(obj) {
var _local4 = mixinProps;
var _local6 = _local4.length;
obj = obj.prototype;
var _local3 = 0;
while (_local3 < _local6) {
obj[_local4[_local3]] = mixins[_local4[_local3]];
_global.ASSetPropFlags(obj, _local4[_local3], 1);
_local3++;
}
mx.events.EventDispatcher.initialize(obj);
_global.ASSetPropFlags(obj, "addEventListener", 1);
_global.ASSetPropFlags(obj, "removeEventListener", 1);
_global.ASSetPropFlags(obj, "dispatchEvent", 1);
_global.ASSetPropFlags(obj, "dispatchQueue", 1);
Object.prototype.LargestID = 0;
Object.prototype.getID = function () {
if (this.__ID__ == undefined) {
this.__ID__ = Object.prototype.LargestID++;
_global.ASSetPropFlags(this, "__ID__", 1);
}
return(this.__ID__);
};
_global.ASSetPropFlags(Object.prototype, "LargestID", 1);
_global.ASSetPropFlags(Object.prototype, "getID", 1);
return(true);
}
function addItemAt(index, value) {
if (index < length) {
splice(index, 0, value);
} else if (index > length) {
trace("Cannot add an item past the end of the DataProvider");
return(undefined);
}
this[index] = value;
updateViews("addItems", index, index);
}
function addItem(value) {
addItemAt(length, value);
}
function addItemsAt(index, newItems) {
index = Math.min(length, index);
newItems.unshift(index, 0);
splice.apply(this, newItems);
newItems.splice(0, 2);
updateViews("addItems", index, (index + newItems.length) - 1);
}
function removeItemsAt(index, len) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < len) {
_local3.push(getItemID(index + _local2));
_local2++;
}
var _local6 = splice(index, len);
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:index, lastItem:(index + len) - 1, removedItems:_local6, removedIDs:_local3});
}
function removeItemAt(index) {
var _local2 = this[index];
removeItemsAt(index, 1);
return(_local2);
}
function removeAll(Void) {
splice(0);
updateViews("removeItems", 0, length - 1);
}
function replaceItemAt(index, itemObj) {
if ((index < 0) || (index >= length)) {
return(undefined);
}
var _local3 = getItemID(index);
this[index] = itemObj;
this[index].__ID__ = _local3;
updateViews("updateItems", index, index);
}
function getItemAt(index) {
return(this[index]);
}
function getItemID(index) {
var _local2 = this[index];
if ((typeof(_local2) != "object") && (_local2 != undefined)) {
return(index);
}
return(_local2.getID());
}
function sortItemsBy(fieldName, order) {
if (typeof(order) == "string") {
sortOn(fieldName);
if (order.toUpperCase() == "DESC") {
reverse();
}
} else {
sortOn(fieldName, order);
}
updateViews("sort");
}
function sortItems(compareFunc, optionFlags) {
sort(compareFunc, optionFlags);
updateViews("sort");
}
function editField(index, fieldName, newData) {
this[index][fieldName] = newData;
dispatchEvent({type:"modelChanged", eventName:"updateField", firstItem:index, lastItem:index, fieldName:fieldName});
}
function getEditingData(index, fieldName) {
return(this[index][fieldName]);
}
function updateViews(event, first, last) {
dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last});
}
static var mixinProps = ["addView", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "getItemAt", "getItemID", "sortItemsBy", "sortItems", "updateViews", "addItemsAt", "removeItemsAt", "getEditingData", "editField"];
static var evtDipatcher = mx.events.EventDispatcher;
static var mixins = new mx.controls.listclasses.DataProvider();
}
Symbol 1002 MovieClip [__Packages.mx.controls.listclasses.ScrollSelectList] Frame 0
class mx.controls.listclasses.ScrollSelectList extends mx.core.ScrollView
{
var invLayoutContent, rows, topRowZ, listContent, __dataProvider, __vPosition, tW, layoutX, layoutY, tH, invRowHeight, invalidate, __height, invUpdateControl, __cellRenderer, __labelFunction, __iconField, __iconFunction, getLength, baseRowZ, lastPosition, propertyTable, isSelected, wasKeySelected, changeFlag, clearSelected, selectItem, lastSelected, dispatchEvent, dragScrolling, _ymouse, scrollInterval, isPressed, onMouseUp, getSelectedIndex, enabled, tabEnabled, tabChildren, createEmptyMovieClip, border_mc;
function ScrollSelectList () {
super();
}
function layoutContent(x, y, w, h) {
delete invLayoutContent;
var _local4 = Math.ceil(h / __rowHeight);
roundUp = (h % __rowHeight) != 0;
var _local12 = _local4 - __rowCount;
if (_local12 < 0) {
var _local3 = _local4;
while (_local3 < __rowCount) {
rows[_local3].removeMovieClip();
delete rows[_local3];
_local3++;
}
topRowZ = topRowZ + _local12;
} else if (_local12 > 0) {
if (rows == undefined) {
rows = new Array();
}
var _local3 = __rowCount;
while (_local3 < _local4) {
var _local2 = (rows[_local3] = listContent.createObject(__rowRenderer, "listRow" + (topRowZ++), topRowZ, {owner:this, styleName:this, rowIndex:_local3}));
_local2._x = x;
_local2._y = Math.round((_local3 * __rowHeight) + y);
_local2.setSize(w, __rowHeight);
_local2.drawRow(__dataProvider.getItemAt(__vPosition + _local3), getStateAt(__vPosition + _local3));
_local2.lastY = _local2._y;
_local3++;
}
}
if (w != tW) {
var _local11 = ((_local12 > 0) ? (__rowCount) : (_local4));
var _local3 = 0;
while (_local3 < _local11) {
rows[_local3].setSize(w, __rowHeight);
_local3++;
}
}
if ((layoutX != x) || (layoutY != y)) {
var _local3 = 0;
while (_local3 < _local4) {
rows[_local3]._x = x;
rows[_local3]._y = Math.round((_local3 * __rowHeight) + y);
_local3++;
}
}
__rowCount = _local4;
layoutX = x;
layoutY = y;
tW = w;
tH = h;
}
function getRowHeight(Void) {
return(__rowHeight);
}
function setRowHeight(v) {
__rowHeight = v;
invRowHeight = true;
invalidate();
}
function get rowHeight() {
return(getRowHeight());
}
function set rowHeight(w) {
setRowHeight(w);
//return(rowHeight);
}
function setRowCount(v) {
__rowCount = v;
}
function getRowCount(Void) {
var _local2 = ((__rowCount == 0) ? (Math.ceil(__height / __rowHeight)) : (__rowCount));
return(_local2);
}
function get rowCount() {
return(getRowCount());
}
function set rowCount(w) {
setRowCount(w);
//return(rowCount);
}
function setEnabled(v) {
super.setEnabled(v);
invUpdateControl = true;
invalidate();
}
function setCellRenderer(cR) {
__cellRenderer = cR;
var _local2 = 0;
while (_local2 < rows.length) {
rows[_local2].setCellRenderer(true);
_local2++;
}
invUpdateControl = true;
invalidate();
}
function set cellRenderer(cR) {
setCellRenderer(cR);
//return(cellRenderer);
}
function get cellRenderer() {
return(__cellRenderer);
}
function set labelField(field) {
setLabelField(field);
//return(labelField);
}
function setLabelField(field) {
__labelField = field;
invUpdateControl = true;
invalidate();
}
function get labelField() {
return(__labelField);
}
function set labelFunction(func) {
setLabelFunction(func);
//return(labelFunction);
}
function setLabelFunction(func) {
__labelFunction = func;
invUpdateControl = true;
invalidate();
}
function get labelFunction() {
return(__labelFunction);
}
function set iconField(field) {
setIconField(field);
//return(iconField);
}
function setIconField(field) {
__iconField = field;
invUpdateControl = true;
invalidate();
}
function get iconField() {
return(__iconField);
}
function set iconFunction(func) {
setIconFunction(func);
//return(iconFunction);
}
function setIconFunction(func) {
__iconFunction = func;
invUpdateControl = true;
invalidate();
}
function get iconFunction() {
return(__iconFunction);
}
function setVPosition(pos) {
if (pos < 0) {
return(undefined);
}
if ((pos > 0) && (pos > ((getLength() - __rowCount) + roundUp))) {
return(undefined);
}
var _local8 = pos - __vPosition;
if (_local8 == 0) {
return(undefined);
}
__vPosition = pos;
var _local10 = _local8 > 0;
_local8 = Math.abs(_local8);
if (_local8 >= __rowCount) {
updateControl();
} else {
var _local4 = new Array();
var _local9 = __rowCount - _local8;
var _local12 = _local8 * __rowHeight;
var _local11 = _local9 * __rowHeight;
var _local6 = (_local10 ? 1 : -1);
var _local3 = 0;
while (_local3 < __rowCount) {
if (((_local3 < _local8) && (_local10)) || ((_local3 >= _local9) && (!_local10))) {
rows[_local3]._y = rows[_local3]._y + Math.round(_local6 * _local11);
var _local5 = _local3 + (_local6 * _local9);
var _local7 = __vPosition + _local5;
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
_local4[_local5].drawRow(__dataProvider.getItemAt(_local7), getStateAt(_local7), false);
} else {
rows[_local3]._y = rows[_local3]._y - Math.round(_local6 * _local12);
var _local5 = _local3 - (_local6 * _local8);
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
}
_local3++;
}
rows = _local4;
_local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].swapDepths(baseRowZ + _local3);
_local3++;
}
}
lastPosition = pos;
super.setVPosition(pos);
}
function setPropertiesAt(index, obj) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (propertyTable == undefined) {
propertyTable = new Object();
}
propertyTable[_local2] = obj;
rows[index - __vPosition].drawRow(__dataProvider.getItemAt(index), getStateAt(index));
}
function getPropertiesAt(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getPropertiesOf(obj) {
var _local2 = obj.getID();
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getStyle(styleProp) {
var _local2 = super.getStyle(styleProp);
var _local3 = mx.styles.StyleManager.colorNames[_local2];
if (_local3 != undefined) {
_local2 = _local3;
}
return(_local2);
}
function updateControl(Void) {
var _local2 = 0;
while (_local2 < __rowCount) {
rows[_local2].drawRow(__dataProvider.getItemAt(_local2 + __vPosition), getStateAt(_local2 + __vPosition));
_local2++;
}
delete invUpdateControl;
}
function getStateAt(index) {
return((isSelected(index) ? "selected" : "normal"));
}
function selectRow(rowIndex, transition, allowChangeEvent) {
if (!selectable) {
return(undefined);
}
var _local3 = __vPosition + rowIndex;
var _local8 = __dataProvider.getItemAt(_local3);
var _local5 = rows[rowIndex];
if (_local8 == undefined) {
return(undefined);
}
if (transition == undefined) {
transition = true;
}
if (allowChangeEvent == undefined) {
allowChangeEvent = wasKeySelected;
}
changeFlag = true;
if (((!multipleSelection) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
clearSelected(transition);
selectItem(_local3, true);
lastSelected = _local3;
_local5.drawRow(_local5.item, getStateAt(_local3), transition);
} else if (Key.isDown(16) && (multipleSelection)) {
if (lastSelected == undefined) {
lastSelected = _local3;
}
var _local4 = ((lastSelected < _local3) ? 1 : -1);
clearSelected(false);
var _local2 = lastSelected;
while (_local2 != _local3) {
selectItem(_local2, true);
if ((_local2 >= __vPosition) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "selected", false);
}
_local2 = _local2 + _local4;
}
selectItem(_local3, true);
_local5.drawRow(_local5.item, "selected", transition);
} else if (Key.isDown(17)) {
var _local7 = isSelected(_local3);
if ((!multipleSelection) || (wasKeySelected)) {
clearSelected(transition);
}
if (!((!multipleSelection) && (_local7))) {
selectItem(_local3, !_local7);
var _local9 = ((!_local7) ? "selected" : "normal");
_local5.drawRow(_local5.item, _local9, transition);
}
lastSelected = _local3;
}
if (allowChangeEvent) {
dispatchEvent({type:"change"});
}
delete wasKeySelected;
}
function dragScroll(Void) {
clearInterval(dragScrolling);
if (_ymouse < 0) {
setVPosition(__vPosition - 1);
selectRow(0, false);
var _local2 = Math.min((-_ymouse) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else if (_ymouse > __height) {
var _local3 = __vPosition;
setVPosition(__vPosition + 1);
if (_local3 != __vPosition) {
selectRow((__rowCount - 1) - roundUp, false);
}
var _local2 = Math.min((_ymouse - __height) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else {
dragScrolling = setInterval(this, "dragScroll", 15);
}
updateAfterEvent();
}
function __onMouseUp(Void) {
clearInterval(dragScrolling);
delete dragScrolling;
delete dragScrolling;
delete isPressed;
delete onMouseUp;
if (!selectable) {
return(undefined);
}
if (changeFlag) {
dispatchEvent({type:"change"});
}
delete changeFlag;
}
function moveSelBy(incr) {
if (!selectable) {
setVPosition(__vPosition + incr);
return(undefined);
}
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = -1;
}
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(getLength() - 1, _local2);
if (_local2 == _local3) {
return(undefined);
}
if ((_local3 < __vPosition) || (_local3 >= (__vPosition + __rowCount))) {
setVPosition(_local3);
}
if ((_local2 >= ((__vPosition + __rowCount) - roundUp)) || (_local2 < __vPosition)) {
setVPosition(__vPosition + incr);
}
wasKeySelected = true;
selectRow(_local2 - __vPosition, false);
}
function keyDown(e) {
if (selectable) {
if (findInputText()) {
return(undefined);
}
}
if (e.code == 40) {
moveSelBy(1);
} else if (e.code == 38) {
moveSelBy(-1);
} else if (e.code == 34) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((__rowCount - 1) - roundUp);
} else if (e.code == 33) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((1 - __rowCount) + roundUp);
} else if (e.code == 36) {
moveSelBy(-__dataProvider.length);
} else if (e.code == 35) {
moveSelBy(__dataProvider.length);
}
}
function findInputText(Void) {
var _local2 = Key.getAscii();
if ((_local2 >= 33) && (_local2 <= 126)) {
findString(String.fromCharCode(_local2));
return(true);
}
}
function findString(str) {
if (__dataProvider.length == 0) {
return(undefined);
}
var _local4 = getSelectedIndex();
if (_local4 == undefined) {
_local4 = 0;
}
var _local6 = 0;
var _local3 = _local4 + 1;
while (_local3 != _local4) {
var _local2 = __dataProvider.getItemAt(_local3);
if (_local2 instanceof XMLNode) {
_local2 = _local2.attributes[__labelField];
} else if (typeof(_local2) != "string") {
_local2 = String(_local2[__labelField]);
}
_local2 = _local2.substring(0, str.length);
if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) {
_local6 = _local3 - _local4;
break;
}
if (_local3 >= (getLength() - 1)) {
_local3 = -1;
}
_local3++;
}
if (_local6 != 0) {
moveSelBy(_local6);
}
}
function onRowPress(rowIndex) {
if (!enabled) {
return(undefined);
}
isPressed = true;
dragScrolling = setInterval(this, "dragScroll", 15);
onMouseUp = __onMouseUp;
if (!selectable) {
return(undefined);
}
selectRow(rowIndex);
}
function onRowRelease(rowIndex) {
}
function onRowRollOver(rowIndex) {
if (!enabled) {
return(undefined);
}
var _local2 = rows[rowIndex].item;
if (getStyle("useRollOver") && (_local2 != undefined)) {
rows[rowIndex].drawRow(_local2, "highlighted", false);
}
dispatchEvent({type:"itemRollOver", index:rowIndex + __vPosition});
}
function onRowRollOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (getStyle("useRollOver")) {
rows[rowIndex].drawRow(rows[rowIndex].item, getStateAt(rowIndex + __vPosition), false);
}
dispatchEvent({type:"itemRollOut", index:rowIndex + __vPosition});
}
function onRowDragOver(rowIndex) {
if (((!enabled) || (isPressed != true)) || (!selectable)) {
return(undefined);
}
if (dropEnabled) {
} else if (dragScrolling) {
selectRow(rowIndex, false);
} else {
onMouseUp = __onMouseUp;
onRowPress(rowIndex);
}
}
function onRowDragOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (dragEnabled) {
} else {
onRowRollOut(rowIndex);
}
}
function init(Void) {
super.init();
tabEnabled = true;
tabChildren = false;
if (__dataProvider == undefined) {
__dataProvider = new Array();
__dataProvider.addEventListener("modelChanged", this);
}
baseRowZ = (topRowZ = 10);
}
function createChildren(Void) {
super.createChildren();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
invLayoutContent = true;
invalidate();
}
function draw(Void) {
if (invRowHeight) {
delete invRowHeight;
__rowCount = 0;
listContent.removeMovieClip();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
}
if (invUpdateControl) {
updateControl();
}
border_mc.draw();
}
function invalidateStyle(propName) {
if (isRowStyle[propName]) {
invUpdateControl = true;
invalidate();
} else {
var _local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].invalidateStyle(propName);
_local3++;
}
}
super.invalidateStyle(propName);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.listclasses.ScrollSelectList);
static var mixIt2 = mx.controls.listclasses.DataProvider.Initialize(Array);
var CONTENTDEPTH = 100;
var __hPosition = 0;
var __rowRenderer = "SelectableRow";
var __rowHeight = 22;
var __rowCount = 0;
var __labelField = "label";
var minScrollInterval = 30;
var dropEnabled = false;
var dragEnabled = false;
var className = "ScrollSelectList";
var isRowStyle = {styleName:true, backgroundColor:true, selectionColor:true, rollOverColor:true, selectionDisabledColor:true, backgroundDisabledColor:true, textColor:true, textSelectedColor:true, textRollOverColor:true, textDisabledColor:true, alternatingRowColors:true, defaultIcon:true};
var roundUp = 0;
var selectable = true;
var multipleSelection = false;
}
Symbol 1003 MovieClip [__Packages.mx.controls.List] Frame 0
class mx.controls.List extends mx.controls.listclasses.ScrollSelectList
{
var border_mc, __labels, setDataProvider, roundUp, __get__rowCount, __dataProvider, __maxHPosition, invScrollProps, invalidate, __vPosition, getViewMetrics, setSize, __width, __rowHeight, totalWidth, totalHeight, displayWidth, __hScrollPolicy, vScroller, __hPosition, listContent, data, mask_mc, __height, __rowCount, invRowHeight, invLayoutContent, setScrollProperties, oldVWidth;
function List () {
super();
}
function setEnabled(v) {
super.setEnabled(v);
border_mc.backgroundColorName = (v ? "backgroundColor" : "backgroundDisabledColor");
border_mc.invalidate();
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
__labels = lbls;
setDataProvider(lbls);
//return(labels);
}
function setVPosition(pos) {
pos = Math.min((__dataProvider.length - __get__rowCount()) + roundUp, pos);
pos = Math.max(0, pos);
super.setVPosition(pos);
}
function setHPosition(pos) {
pos = Math.max(Math.min(__maxHPosition, pos), 0);
super.setHPosition(pos);
hScroll(pos);
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
invScrollProps = true;
invalidate();
}
function setHScrollPolicy(policy) {
if ((policy.toLowerCase() == "auto") && (!autoHScrollAble)) {
return(undefined);
}
super.setHScrollPolicy(policy);
if (policy == "off") {
setHPosition(0);
setVPosition(Math.min((__dataProvider.length - __get__rowCount()) + roundUp, __vPosition));
}
}
function setRowCount(rC) {
if (isNaN(rC)) {
return(undefined);
}
var _local2 = getViewMetrics();
setSize(__width, ((__rowHeight * rC) + _local2.top) + _local2.bottom);
}
function layoutContent(x, y, tW, tH, dW, dH) {
totalWidth = tW;
totalHeight = tH;
displayWidth = dW;
var _local4 = (((__hScrollPolicy == "on") || (__hScrollPolicy == "auto")) ? (Math.max(tW, dW)) : (dW));
super.layoutContent(x, y, _local4, dH);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
var _local3 = eventObj.eventName;
if ((((_local3 == "addItems") || (_local3 == "removeItems")) || (_local3 == "updateAll")) || (_local3 == "filterModel")) {
invScrollProps = true;
invalidate("invScrollProps");
}
}
function onScroll(eventObj) {
var _local3 = eventObj.target;
if (_local3 == vScroller) {
setVPosition(_local3.scrollPosition);
} else {
hScroll(_local3.scrollPosition);
}
super.onScroll(eventObj);
}
function hScroll(pos) {
__hPosition = pos;
listContent._x = -pos;
}
function init(Void) {
super.init();
if (labels.length > 0) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < labels.length) {
_local6.addItem({label:labels[_local3], data:data[_local3]});
_local3++;
}
setDataProvider(_local6);
}
__maxHPosition = 0;
}
function createChildren(Void) {
super.createChildren();
listContent.setMask(mask_mc);
border_mc.move(0, 0);
border_mc.setSize(__width, __height);
}
function getRowCount(Void) {
var _local2 = getViewMetrics();
return(((__rowCount == 0) ? (Math.ceil(((__height - _local2.top) - _local2.bottom) / __rowHeight)) : (__rowCount)));
}
function size(Void) {
super.size();
configureScrolling();
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
function draw(Void) {
if (invRowHeight) {
invScrollProps = true;
super.draw();
listContent.setMask(mask_mc);
invLayoutContent = true;
}
if (invScrollProps) {
configureScrolling();
delete invScrollProps;
}
if (invLayoutContent) {
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
super.draw();
}
function configureScrolling(Void) {
var _local2 = __dataProvider.length;
if (__vPosition > Math.max(0, (_local2 - getRowCount()) + roundUp)) {
setVPosition(Math.max(0, Math.min((_local2 - getRowCount()) + roundUp, __vPosition)));
}
var _local3 = getViewMetrics();
var _local4 = ((__hScrollPolicy != "off") ? (((__maxHPosition + __width) - _local3.left) - _local3.right) : ((__width - _local3.left) - _local3.right));
if (_local2 == undefined) {
_local2 = 0;
}
setScrollProperties(_local4, 1, _local2, __rowHeight);
if (oldVWidth != _local4) {
invLayoutContent = true;
}
oldVWidth = _local4;
}
static var symbolOwner = mx.controls.List;
static var symbolName = "List";
var className = "List";
static var version = "2.0.2.127";
var clipParameters = {rowHeight:1, enabled:1, visible:1, labels:1};
var scrollDepth = 1;
var __vScrollPolicy = "on";
var autoHScrollAble = false;
}
Symbol 1004 MovieClip [__Packages.mx.effects.Tween] Frame 0
class mx.effects.Tween extends Object
{
static var IntervalToken;
var arrayMode, listener, initVal, endVal, startTime, updateFunc, endFunc, ID;
function Tween (listenerObj, init, end, dur) {
super();
if (listenerObj == undefined) {
return;
}
if (typeof(init) != "number") {
arrayMode = true;
}
listener = listenerObj;
initVal = init;
endVal = end;
if (dur != undefined) {
duration = dur;
}
startTime = getTimer();
if (duration == 0) {
endTween();
} else {
AddTween(this);
}
}
static function AddTween(tween) {
tween.ID = ActiveTweens.length;
ActiveTweens.push(tween);
if (IntervalToken == undefined) {
Dispatcher.DispatchTweens = DispatchTweens;
IntervalToken = setInterval(Dispatcher, "DispatchTweens", Interval);
}
}
static function RemoveTweenAt(index) {
var _local2 = ActiveTweens;
if (((index >= _local2.length) || (index < 0)) || (index == undefined)) {
return(undefined);
}
_local2.splice(index, 1);
var _local4 = _local2.length;
var _local1 = index;
while (_local1 < _local4) {
_local2[_local1].ID--;
_local1++;
}
if (_local4 == 0) {
clearInterval(IntervalToken);
delete IntervalToken;
}
}
static function DispatchTweens(Void) {
var _local2 = ActiveTweens;
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2[_local1].doInterval();
_local1++;
}
updateAfterEvent();
}
function doInterval() {
var _local2 = getTimer() - startTime;
var _local3 = getCurVal(_local2);
if (_local2 >= duration) {
endTween();
} else if (updateFunc != undefined) {
listener[updateFunc](_local3);
} else {
listener.onTweenUpdate(_local3);
}
}
function getCurVal(curTime) {
if (arrayMode) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < initVal.length) {
_local3[_local2] = easingEquation(curTime, initVal[_local2], endVal[_local2] - initVal[_local2], duration);
_local2++;
}
return(_local3);
}
return(easingEquation(curTime, initVal, endVal - initVal, duration));
}
function endTween() {
if (endFunc != undefined) {
listener[endFunc](endVal);
} else {
listener.onTweenEnd(endVal);
}
RemoveTweenAt(ID);
}
function setTweenHandlers(update, end) {
updateFunc = update;
endFunc = end;
}
function easingEquation(t, b, c, d) {
return(((c / 2) * (Math.sin(Math.PI * ((t / d) - 0.5)) + 1)) + b);
}
static var ActiveTweens = new Array();
static var Interval = 10;
static var Dispatcher = new Object();
var duration = 3000;
}
Symbol 1005 MovieClip [__Packages.mx.controls.listclasses.SelectableRow] Frame 0
class mx.controls.listclasses.SelectableRow extends mx.core.UIComponent
{
var __height, cell, owner, rowIndex, icon_mc, createObject, __width, backGround, highlight, highlightColor, createLabel, createClassObject, listOwner, tabEnabled, item, createEmptyMovieClip, drawRect, isChangedToSelected, bGTween, grandOwner;
function SelectableRow () {
super();
}
function setValue(itmObj, state) {
var _local7 = __height;
var _local2 = cell;
var _local5 = owner;
var _local8 = itemToString(itmObj);
if (_local2.getValue() != _local8) {
_local2.setValue(_local8, itmObj, state);
}
var _local4 = _local5.getPropertiesAt(rowIndex + _local5.__vPosition).icon;
if (_local4 == undefined) {
_local4 = _local5.__iconFunction(itmObj);
if (_local4 == undefined) {
_local4 = itmObj[_local5.__iconField];
if (_local4 == undefined) {
_local4 = _local5.getStyle("defaultIcon");
}
}
}
var _local3 = icon_mc;
if ((_local4 != undefined) && (itmObj != undefined)) {
_local3 = createObject(_local4, "icon_mc", 20);
_local3._x = 2;
_local3._y = (_local7 - _local3._height) / 2;
_local2._x = 4 + _local3._width;
} else {
_local3.removeMovieClip();
_local2._x = 2;
}
var _local9 = ((_local3 == undefined) ? 0 : (_local3._width));
_local2.setSize(__width - _local9, Math.min(_local7, _local2.getPreferredHeight()));
_local2._y = (_local7 - _local2._height) / 2;
}
function size(Void) {
var _local3 = backGround;
var _local2 = cell;
var _local4 = __height;
var _local5 = __width;
var _local6 = ((icon_mc == undefined) ? 0 : (icon_mc._width));
_local2.setSize(_local5 - _local6, Math.min(_local4, _local2.getPreferredHeight()));
_local2._y = (_local4 - _local2._height) / 2;
icon_mc._y = (_local4 - icon_mc._height) / 2;
_local3._x = 0;
_local3._width = _local5;
_local3._height = _local4;
drawRowFill(_local3, normalColor);
drawRowFill(highlight, highlightColor);
}
function setCellRenderer(forceSizing) {
var _local3 = owner.__cellRenderer;
var _local4;
if (cell != undefined) {
_local4 = cell._x;
cell.removeMovieClip();
cell.removeTextField();
}
var _local2;
if (_local3 == undefined) {
_local2 = (cell = createLabel("cll", 0, {styleName:this}));
_local2.styleName = owner;
_local2.selectable = false;
_local2.tabEnabled = false;
_local2.background = false;
_local2.border = false;
} else if (typeof(_local3) == "string") {
_local2 = (cell = createObject(_local3, "cll", 0, {styleName:this}));
} else {
_local2 = (cell = createClassObject(_local3, "cll", 0, {styleName:this}));
}
_local2.owner = this;
_local2.listOwner = owner;
_local2.getCellIndex = getCellIndex;
_local2.getDataLabel = getDataLabel;
if (_local4 != undefined) {
_local2._x = _local4;
}
if (forceSizing) {
size();
}
}
function getCellIndex(Void) {
return({columnIndex:0, itemIndex:owner.rowIndex + listOwner.__vPosition});
}
function getDataLabel() {
return(listOwner.labelField);
}
function init(Void) {
super.init();
tabEnabled = false;
}
function createChildren(Void) {
setCellRenderer(false);
setupBG();
setState(state, false);
}
function drawRow(itmObj, state, transition) {
item = itmObj;
setState(state, transition);
setValue(itmObj, state, transition);
}
function itemToString(itmObj) {
if (itmObj == undefined) {
return(" ");
}
var _local2 = owner.__labelFunction(itmObj);
if (_local2 == undefined) {
_local2 = ((itmObj instanceof XMLNode) ? (itmObj.attributes[owner.__labelField]) : (itmObj[owner.__labelField]));
if (_local2 == undefined) {
_local2 = " ";
if (typeof(itmObj) == "object") {
for (var _local4 in itmObj) {
if (_local4 != "__ID__") {
_local2 = (itmObj[_local4] + ", ") + _local2;
}
}
_local2 = _local2.substring(0, _local2.length - 2);
} else {
_local2 = itmObj;
}
}
}
return(_local2);
}
function setupBG(Void) {
var _local2 = (backGround = createEmptyMovieClip("bG_mc", LOWEST_DEPTH));
drawRowFill(_local2, normalColor);
highlight = createEmptyMovieClip("tran_mc", LOWEST_DEPTH + 10);
_local2.owner = this;
_local2.grandOwner = owner;
_local2.onPress = bGOnPress;
_local2.onRelease = bGOnRelease;
_local2.onRollOver = bGOnRollOver;
_local2.onRollOut = bGOnRollOut;
_local2.onDragOver = bGOnDragOver;
_local2.onDragOut = bGOnDragOut;
_local2.useHandCursor = false;
_local2.trackAsMenu = true;
_local2.drawRect = drawRect;
highlight.drawRect = drawRect;
}
function drawRowFill(mc, newClr) {
mc.clear();
mc.beginFill(newClr);
mc.drawRect(1, 0, __width, __height);
mc.endFill();
mc._width = __width;
mc._height = __height;
}
function setState(newState, transition) {
var _local2 = highlight;
var _local8 = backGround;
var _local4 = __height;
var _local3 = owner;
if (!_local3.enabled) {
if ((newState == "selected") || (state == "selected")) {
highlightColor = _local3.getStyle("selectionDisabledColor");
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local2._y = 0;
_local2._height = _local4;
} else {
_local2._visible = false;
normalColor = _local3.getStyle("backgroundDisabledColor");
drawRowFill(_local8, normalColor);
}
cell.__enabled = false;
cell.setColor(_local3.getStyle("disabledColor"));
} else {
cell.__enabled = true;
if (transition && ((newState == state) || ((newState == "highlighted") && (state == "selected")))) {
isChangedToSelected = true;
return(undefined);
}
var _local6 = _local3.getStyle("selectionDuration");
var _local7 = 0;
if (isChangedToSelected && (newState == "selected")) {
transition = false;
}
var _local10 = transition && (_local6 != 0);
if (newState == "normal") {
_local7 = _local3.getStyle("color");
normalColor = getNormalColor();
drawRowFill(_local8, normalColor);
if (_local10) {
_local6 = _local6 / 2;
_local2._height = _local4;
_local2._width = __width;
_local2._y = 0;
bGTween = new mx.effects.Tween(this, _local4 + 2, _local4 * 0.2, _local6, 5);
} else {
_local2._visible = false;
}
delete isChangedToSelected;
} else {
highlightColor = _local3.getStyle(((newState == "highlighted") ? "rollOverColor" : "selectionColor"));
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local7 = _local3.getStyle(((newState == "highlighted") ? "textRollOverColor" : "textSelectedColor"));
if (_local10) {
_local2._height = _local4 * 0.5;
_local2._y = (_local4 - _local2._height) / 2;
bGTween = new mx.effects.Tween(this, _local2._height, _local4 + 2, _local6, 5);
var _local9 = _local3.getStyle("selectionEasing");
if (_local9 != undefined) {
bGTween.easingEquation = _local9;
}
} else {
_local2._y = 0;
_local2._height = _local4;
}
}
cell.setColor(_local7);
}
state = newState;
}
function onTweenUpdate(val) {
highlight._height = val;
highlight._y = (__height - val) / 2;
}
function onTweenEnd(val) {
onTweenUpdate(val);
highlight._visible = state != "normal";
}
function getNormalColor(Void) {
var _local3;
var _local2 = owner;
if (!owner.enabled) {
_local3 = _local2.getStyle("backgroundDisabledColor");
} else {
var _local5 = rowIndex + _local2.__vPosition;
if (rowIndex == undefined) {
_local3 = _local2.getPropertiesOf(item).backgroundColor;
} else {
_local3 = _local2.getPropertiesAt(_local5).backgroundColor;
}
if (_local3 == undefined) {
var _local4 = _local2.getStyle("alternatingRowColors");
if (_local4 == undefined) {
_local3 = _local2.getStyle("backgroundColor");
} else {
_local3 = _local4[_local5 % _local4.length];
}
}
}
return(_local3);
}
function invalidateStyle(propName) {
cell.invalidateStyle(propName);
super.invalidateStyle(propName);
}
function bGOnPress(Void) {
grandOwner.pressFocus();
grandOwner.onRowPress(owner.rowIndex);
}
function bGOnRelease(Void) {
grandOwner.releaseFocus();
grandOwner.onRowRelease(owner.rowIndex);
}
function bGOnRollOver(Void) {
grandOwner.onRowRollOver(owner.rowIndex);
}
function bGOnRollOut(Void) {
grandOwner.onRowRollOut(owner.rowIndex);
}
function bGOnDragOver(Void) {
grandOwner.onRowDragOver(owner.rowIndex);
}
function bGOnDragOut(Void) {
grandOwner.onRowDragOut(owner.rowIndex);
}
static var LOWEST_DEPTH = -16384;
var state = "normal";
var disabledColor = 15263976;
var normalColor = 16777215;
}
Symbol 1006 MovieClip [__Packages.mx.controls.RadioButton] Frame 0
class mx.controls.RadioButton extends mx.controls.Button
{
var setToggle, __value, selected, releaseFocus, phase, dispatchEvent, _parent, __data, setState, __state, getFocusManager;
function RadioButton () {
super();
}
function init(Void) {
setToggle(__toggle);
__value = this;
super.init();
}
function size(Void) {
super.size();
}
function onRelease() {
if (selected) {
return(undefined);
}
releaseFocus();
phase = "up";
setSelected(true);
dispatchEvent({type:"click"});
_parent[__groupName].dispatchEvent({type:"click"});
}
function setData(val) {
__data = val;
}
function set data(val) {
__data = val;
//return(data);
}
function getData(val) {
return(__data);
}
function get data() {
return(__data);
}
function onUnload() {
if (_parent[__groupName].selectedRadio == this) {
_parent[__groupName].selectedRadio = undefined;
}
_parent[__groupName].radioList[indexNumber] = null;
delete _parent[__groupName].radioList[indexNumber];
}
function setSelected(val) {
var _local2 = _parent[__groupName];
var _local4 = _local2.selectedRadio.__width;
var _local5 = _local2.selectedRadio.__height;
if (val) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = this;
} else if (_local2.selectedRadio == this) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = undefined;
}
setState(val);
}
function deleteGroupObj(groupName) {
delete _parent[groupName];
}
function getGroupName() {
return(__groupName);
}
function get groupName() {
return(__groupName);
}
function setGroupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return(undefined);
}
delete _parent[__groupName].radioList[__data];
addToGroup(groupName);
__groupName = groupName;
}
function set groupName(groupName) {
setGroupName(groupName);
//return(this.groupName);
}
function addToGroup(groupName) {
if ((groupName == "") || (groupName == undefined)) {
return(undefined);
}
var _local2 = _parent[groupName];
if (_local2 == undefined) {
_local2 = (_parent[groupName] = new mx.controls.RadioButtonGroup());
_local2.__groupName = groupName;
}
_local2.addInstance(this);
if (__state) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = this;
}
}
function get emphasized() {
return(undefined);
}
function keyDown(e) {
switch (e.code) {
case 40 :
setNext();
break;
case 38 :
setPrev();
break;
case 37 :
setPrev();
break;
case 39 :
setNext();
}
}
function setNext() {
var _local2 = _parent[groupName];
if ((_local2.selectedRadio.indexNumber + 1) == _local2.radioList.length) {
return(undefined);
}
var _local4 = (_local2.selectedRadio ? (_local2.selectedRadio.indexNumber) : -1);
var _local3 = 1;
while (_local3 < _local2.radioList.length) {
if ((_local2.radioList[_local4 + _local3] != undefined) && (_local2.radioList[_local4 + _local3].enabled)) {
var _local5 = getFocusManager();
_local2.radioList[_local4 + _local3].selected = true;
_local5.setFocus(_local2.radioList[_local2.selectedRadio.indexNumber]);
_local2.dispatchEvent({type:"click"});
break;
}
_local3++;
}
}
function setPrev() {
var _local2 = _parent[groupName];
if (_local2.selectedRadio.indexNumber == 0) {
return(undefined);
}
var _local4 = (_local2.selectedRadio ? (_local2.selectedRadio.indexNumber) : 1);
var _local3 = 1;
while (_local3 < _local2.radioList.length) {
if ((_local2.radioList[_local4 - _local3] != undefined) && (_local2.radioList[_local4 - _local3].enabled)) {
var _local5 = getFocusManager();
_local2.radioList[_local4 - _local3].selected = true;
_local5.setFocus(_local2.radioList[_local2.selectedRadio.indexNumber]);
_local2.dispatchEvent({type:"click"});
break;
}
_local3++;
}
}
function set toggle(v) {
//return(toggle);
}
function get toggle() {
}
function set icon(v) {
//return(icon);
}
function get icon() {
}
static var symbolName = "RadioButton";
static var symbolOwner = mx.controls.RadioButton;
static var version = "2.0.2.127";
var className = "RadioButton";
var btnOffset = 0;
var __toggle = true;
var __label = "Radio Button";
var __labelPlacement = "right";
var ignoreClassStyleDeclaration = {Button:1};
var __groupName = "radioGroup";
var indexNumber = 0;
var offset = false;
var falseUpSkin = "";
var falseDownSkin = "";
var falseOverSkin = "";
var falseDisabledSkin = "";
var trueUpSkin = "";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "";
var falseUpIcon = "RadioFalseUp";
var falseDownIcon = "RadioFalseDown";
var falseOverIcon = "RadioFalseOver";
var falseDisabledIcon = "RadioFalseDisabled";
var trueUpIcon = "RadioTrueUp";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "RadioTrueDisabled";
var centerContent = false;
var borderW = 0;
var clipParameters = {labelPlacement:1, data:1, label:1, groupName:1, selected:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.RadioButton.prototype.clipParameters, mx.controls.Button.prototype.clipParameters);
}
Symbol 1023 MovieClip [__Packages.mx.controls.RadioButtonGroup] Frame 0
class mx.controls.RadioButtonGroup
{
var radioList, __groupName, selectedRadio;
function RadioButtonGroup () {
init();
mx.events.UIEventDispatcher.initialize(this);
}
function init(Void) {
radioList = new Array();
}
function setGroupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return(undefined);
}
var _local6 = __groupName;
_parent[groupName] = this;
for (var _local5 in radioList) {
radioList[_local5].groupName = groupName;
var _local3 = radioList[_local5];
}
_local3.deleteGroupObj(_local6);
}
function getGroupName() {
return(__groupName);
}
function addInstance(instance) {
instance.indexNumber = indexNumber++;
radioList.push(instance);
}
function getValue() {
if (selectedRadio.data == "") {
return(selectedRadio.label);
}
return(selectedRadio.__data);
}
function getLabelPlacement() {
for (var _local3 in radioList) {
var _local2 = radioList[_local3].getLabelPlacement();
}
return(_local2);
}
function setLabelPlacement(pos) {
for (var _local3 in radioList) {
radioList[_local3].setLabelPlacement(pos);
}
}
function setEnabled(val) {
for (var _local3 in radioList) {
radioList[_local3].enabled = val;
}
}
function setSize(val, val1) {
for (var _local3 in radioList) {
radioList[_local3].setSize(val, val1);
}
}
function getEnabled() {
for (var _local4 in radioList) {
var _local2 = radioList[_local4].enabled;
var _local3 = t + (_local2 + 0);
}
if (_local3 == radioList.length) {
return(true);
}
if (_local3 == 0) {
return(false);
}
}
function setStyle(name, val) {
for (var _local4 in radioList) {
radioList[_local4].setStyle(name, val);
}
}
function setInstance(val) {
for (var _local3 in radioList) {
if (radioList[_local3] == val) {
radioList[_local3].selected = true;
}
}
}
function getInstance() {
return(selectedRadio);
}
function setValue(val) {
for (var _local4 in radioList) {
if ((radioList[_local4].__data == val) || (radioList[_local4].label == val)) {
var _local2 = _local4;
break;
}
}
if (_local2 != undefined) {
selectedRadio.setState(false);
selectedRadio.hitArea_mc._height = selectedRadio.__height;
selectedRadio.hitArea_mc._width = selectedRadio.__width;
selectedRadio = radioList[_local2];
selectedRadio.setState(true);
selectedRadio.hitArea_mc._height = (selectedRadio.hitArea_mc._width = 0);
}
}
function set groupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return;
}
var _local6 = __groupName;
_parent[groupName] = this;
for (var _local5 in radioList) {
radioList[_local5].groupName = groupName;
var _local3 = radioList[_local5];
}
_local3.deleteGroupObj(_local6);
//return(this.groupName);
}
function get groupName() {
return(__groupName);
}
function set selectedData(val) {
for (var _local4 in radioList) {
if ((radioList[_local4].__data == val) || (radioList[_local4].label == val)) {
var _local2 = _local4;
break;
}
}
if (_local2 != undefined) {
selectedRadio.setState(false);
selectedRadio = radioList[_local2];
selectedRadio.setState(true);
}
//return(selectedData);
}
function get selectedData() {
if ((selectedRadio.data == "") || (selectedRadio.data == undefined)) {
return(selectedRadio.label);
}
return(selectedRadio.__data);
}
function get selection() {
return(selectedRadio);
}
function set selection(val) {
for (var _local3 in radioList) {
if (radioList[_local3] == val) {
radioList[_local3].selected = true;
}
}
//return(selection);
}
function set labelPlacement(pos) {
for (var _local3 in radioList) {
radioList[_local3].setLabelPlacement(pos);
}
//return(labelPlacement);
}
function get labelPlacement() {
for (var _local3 in radioList) {
var _local2 = radioList[_local3].getLabelPlacement();
}
return(_local2);
}
function set enabled(val) {
for (var _local3 in radioList) {
radioList[_local3].enabled = val;
}
//return(enabled);
}
function get enabled() {
var _local2 = 0;
for (var _local3 in radioList) {
_local2 = _local2 + radioList[_local3].enabled;
}
if (_local2 == 0) {
return(false);
}
if (_local2 == radioList.length) {
return(true);
}
}
static var symbolName = "RadioButtonGroup";
static var symbolOwner = mx.controls.RadioButtonGroup;
static var version = "2.0.2.127";
var className = "RadioButtonGroup";
var indexNumber = 0;
}
Symbol 1024 MovieClip [__Packages.mx.controls.NumericStepper] Frame 0
class mx.controls.NumericStepper extends mx.core.UIComponent
{
var boundingBox_mc, _visible, tabEnabled, tabChildren, nextButton_mc, __width, prevButton_mc, __height, inputField, StepTrack_mc, focusTextField, createObject, enabled, __set__visible, setSize, createClassObject, __maxChars, dispatchEvent;
function NumericStepper () {
super();
}
function init() {
super.init();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
_visible = false;
tabEnabled = false;
tabChildren = true;
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
if (initializing) {
__visible = x;
}
}
function layoutControl() {
nextButton_mc._x = __width - nextButton_mc.__width;
nextButton_mc._y = 0;
prevButton_mc._x = __width - prevButton_mc.__width;
prevButton_mc._y = __height - prevButton_mc.__height;
inputField.setSize(__width - nextButton_mc.__width, __height);
StepTrack_mc._width = Math.max(nextButton_mc.__width, prevButton_mc.__width);
StepTrack_mc._x = __width - StepTrack_mc._width;
StepTrack_mc._height = __height - (nextButton_mc._height + prevButton_mc._height);
StepTrack_mc._y = nextButton_mc.__height;
}
function createChildren() {
super.createChildren();
addAsset("nextButton_mc", skinIDUpArrow);
addAsset("prevButton_mc", skinIDDownArrow);
addAsset("inputField", skinIDInput);
focusTextField = inputField.label;
createObject("StepTrack", "StepTrack_mc", 2);
size();
}
function draw() {
prevButton_mc.enabled = enabled;
nextButton_mc.enabled = enabled;
inputField.enabled = enabled;
size();
initializing = false;
__set__visible(__visible);
}
function size() {
var _local2 = calcMinHeight();
var _local3 = calcMinWidth();
if (__height < _local2) {
setSize(__width, _local2);
}
if (__width < _local3) {
setSize(_local3, __height);
}
layoutControl();
}
function calcMinHeight() {
return(22);
}
function calcMinWidth() {
return(40);
}
function addAsset(id, skinID) {
var _local2 = new Object();
_local2.styleName = this;
if (skinID == 10) {
_local2.falseUpSkin = upArrowUp;
_local2.falseOverSkin = upArrowOver;
_local2.falseDownSkin = upArrowDown;
_local2.falseDisabledSkin = upArrowDisabled;
createClassObject(mx.controls.SimpleButton, id, skinID, _local2);
var _local5 = nextButton_mc;
_local5.tabEnabled = false;
_local5.styleName = this;
_local5._x = __width - _local5.__width;
_local5._y = 0;
_local5.owner = this;
_local5.autoRepeat = true;
_local5.clickHandler = function () {
Selection.setSelection(0, 0);
};
_local5.buttonDownHandler = function () {
this.owner.buttonPress(this);
};
} else if (skinID == 11) {
_local2.falseUpSkin = downArrowUp;
_local2.falseOverSkin = downArrowOver;
_local2.falseDownSkin = downArrowDown;
_local2.falseDisabledSkin = downArrowDisabled;
createClassObject(mx.controls.SimpleButton, id, skinID, _local2);
var _local3 = prevButton_mc;
_local3.tabEnabled = false;
_local3.styleName = this;
_local3._x = __width - _local3.__width;
_local3._y = __height - _local3.__height;
_local3.owner = this;
_local3.autoRepeat = true;
_local3.clickHandler = function () {
Selection.setSelection(0, 0);
};
_local3.buttonDownHandler = function () {
this.owner.buttonPress(this);
};
} else if (skinID == 9) {
createClassObject(mx.controls.TextInput, id, skinID);
var _local4 = inputField;
_local4.styleName = this;
_local4.setSize(__width - nextButton_mc.__width, __height);
_local4.restrict = "0-9\\-\\.\\,";
_local4.maxChars = __maxChars;
_local4.text = value;
_local4.onSetFocus = function () {
this._parent.onSetFocus();
};
_local4.onKillFocus = function () {
this._parent.onKillFocus();
};
_local4.drawFocus = function (b) {
this._parent.drawFocus(b);
};
_local4.onKeyDown = function () {
this._parent.onFieldKeyDown();
};
}
}
function setFocus() {
Selection.setFocus(inputField);
}
function onKillFocus() {
mx.managers.SystemManager.form.focusManager.defaultPushButtonEnabled = true;
super.onKillFocus();
Key.removeListener(inputField);
if (Number(inputField.text) != value) {
var _local3 = checkValidValue(Number(inputField.text));
inputField.text = _local3;
value = (_local3);
dispatchEvent({type:"change"});
}
}
function onSetFocus() {
super.onSetFocus();
Key.addListener(inputField);
mx.managers.SystemManager.form.focusManager.defaultPushButtonEnabled = false;
}
function onFieldKeyDown() {
var _local2 = value;
switch (Key.getCode()) {
case 40 :
var _local3 = value - stepSize;
value = (_local3);
if (_local2 != value) {
dispatchEvent({type:"change"});
}
break;
case 38 :
_local3 = stepSize + value;
value = (_local3);
if (_local2 != value) {
dispatchEvent({type:"change"});
}
break;
case 36 :
inputField.text = minimum;
value = (minimum);
if (_local2 != value) {
dispatchEvent({type:"change"});
}
break;
case 35 :
inputField.text = maximum;
value = (maximum);
if (_local2 != value) {
dispatchEvent({type:"change"});
}
break;
case 13 :
value = (Number(inputField.text));
if (_local2 == value) {
break;
}
dispatchEvent({type:"change"});
}
}
function get nextValue() {
if (checkRange(value + stepSize)) {
__nextValue = value + stepSize;
return(__nextValue);
}
}
function get previousValue() {
if (checkRange(__value - stepSize)) {
__previousValue = value - stepSize;
return(__previousValue);
}
}
function set maxChars(num) {
__maxChars = num;
inputField.maxChars = __maxChars;
//return(maxChars);
}
function get maxChars() {
return(__maxChars);
}
function get value() {
return(__value);
}
function set value(v) {
var _local2 = checkValidValue(v);
if (_local2 == __value) {
return;
}
inputField.text = (__value = _local2);
//return(value);
}
function get minimum() {
return(__minimum);
}
function set minimum(v) {
__minimum = v;
//return(minimum);
}
function get maximum() {
return(__maximum);
}
function set maximum(v) {
__maximum = v;
//return(maximum);
}
function get stepSize() {
return(__stepSize);
}
function set stepSize(v) {
__stepSize = v;
//return(stepSize);
}
function onFocus() {
}
function buttonPress(button) {
var _local2 = value;
if (button._name == "nextButton_mc") {
value = value + stepSize;
} else {
value = value - stepSize;
}
if (_local2 != value) {
dispatchEvent({type:"change"});
Selection.setSelection(0, 0);
}
}
function checkRange(v) {
return((v >= minimum) and (v <= maximum));
}
function checkValidValue(val) {
var _local7 = val / stepSize;
var _local9 = Math.floor(_local7);
var _local2 = stepSize;
var _local6 = minimum;
var _local5 = maximum;
if ((val > _local6) and (val < _local5)) {
if ((_local7 - _local9) == 0) {
return(val);
}
var _local8 = Math.floor(val / _local2);
var _local4 = _local8 * _local2;
if (((((val - _local4) >= (_local2 / 2)) && (_local5 >= (_local4 + _local2))) && (_local6 <= (_local4 - _local2))) || (((val + _local2) == _local5) && (((_local5 - _local4) - _local2) > 1E-14))) {
_local4 = _local4 + _local2;
}
return(_local4);
}
if (val >= _local5) {
return(_local5);
}
return(_local6);
}
function onLabelChanged(o) {
var _local2 = checkValidValue(Number(o.__get__text()));
o.__set__text(_local2);
value = (_local2);
}
function get tabIndex() {
return(inputField.tabIndex);
}
function set tabIndex(w) {
inputField.tabIndex = w;
//return(tabIndex);
}
static var symbolName = "NumericStepper";
static var symbolOwner = mx.controls.NumericStepper;
static var version = "2.0.2.127";
var className = "NumericStepper";
var upArrowUp = "StepUpArrowUp";
var upArrowDown = "StepUpArrowDown";
var upArrowOver = "StepUpArrowOver";
var upArrowDisabled = "StepUpArrowDisabled";
var downArrowUp = "StepDownArrowUp";
var downArrowDown = "StepDownArrowDown";
var downArrowOver = "StepDownArrowOver";
var downArrowDisabled = "StepDownArrowDisabled";
var skinIDUpArrow = 10;
var skinIDDownArrow = 11;
var skinIDInput = 9;
var initializing = true;
var __visible = true;
var __minimum = 0;
var __maximum = 10;
var __stepSize = 1;
var __value = 0;
var __nextValue = 0;
var __previousValue = 0;
var clipParameters = {minimum:1, maximum:1, stepSize:1, value:1, maxChars:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.NumericStepper.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
}
Symbol 1222 MovieClip Frame 1
gotoAndStop (2);
Symbol 1222 MovieClip Frame 2
stop();
Symbol 1222 MovieClip Frame 8
gotoAndStop ("shoot");
Symbol 1236 MovieClip Frame 1
tnum = 0;
twait = 0;
firenum = 0;
firewait = _global.laserfirewaitORIG;
fadenum = 0;
fadespeed = 0.8;
Target = 0;
Targeti = 0;
Targettype = 0;
dmg = _global.laserdmgORIG;
twrnum = _global.twrlasernum;
_global.twrlasernum++;
_root.createEmptyMovieClip("draw" + this._parent._name, 89448 + twrnum);
this.drawlaser = function (bright) {
_root["draw" + this._parent._name].clear();
_root["draw" + this._parent._name].lineStyle(1, 16711680, bright);
_root["draw" + this._parent._name].moveTo(this._parent._x + this._x, this._parent._y + this._y);
_root["draw" + this._parent._name].lineTo(_root[this.Target]._x, _root[this.Target]._y);
};
this.drawlaserboom = function () {
_root["draw" + this._parent._name].clear();
_root["draw" + this._parent._name].lineStyle(7, 16711680, fadenum);
_root["draw" + this._parent._name].moveTo(this._parent._x + this._x, this._parent._y + this._y);
_root["draw" + this._parent._name].lineTo(_root[this.Target]._x, _root[this.Target]._y);
_root["draw" + this._parent._name].lineStyle(2, 16777215, fadenum);
_root["draw" + this._parent._name].moveTo(this._parent._x + this._x, this._parent._y + this._y);
_root["draw" + this._parent._name].lineTo(_root[this.Target]._x, _root[this.Target]._y);
};
this.sync = function () {
firenum = ((200 - firewait) / _global.twrlasernum) * twrnum;
trace(firenum);
};
this.onEnterFrame = function () {
if (_global.daygo == true) {
_root["draw" + this._parent._name].clear();
firenum++;
if (firenum == (200 - firewait)) {
}
if (firenum > (200 - firewait)) {
tnum++;
if (tnum > twait) {
_global.laserfindtarget(this._parent._name);
tnum = 0;
firenum = 0;
if (gotTarget == true) {
fadenum = 100;
_root["draw" + this._parent._name].clear();
_global.laserfire(Targeti, dmg, Targettype);
}
}
}
if (fadenum > fadespeed) {
fadenum = fadenum * fadespeed;
this.drawlaserboom();
}
}
};
Symbol 1294 MovieClip Frame 1
rad = _global.flamefagradORIG;
dmg = _global.flamefagdmgORIG;
dmgto = _global.flamefagdmgtoORIG;
Instance of Symbol 1293 MovieClip in Symbol 1294 MovieClip Frame 1
onClipEvent (load) {
count = 0;
countto = 2;
dmgcount = 0;
num = 0;
this.gotoAndStop(random(45));
}
onClipEvent (enterFrame) {
if (_global.daygo == true) {
count++;
if (count > countto) {
_root.attachMovie("twrflamesprite", ("flamesprite" + num) + this._parent._parent._name, 99898 + _global.pnum);
_global.pnum++;
_root[("flamesprite" + num) + this._parent._parent._name]._x = ((this._parent._parent._x + (this.pointer._x * 0.2)) + Math.sin(((-this.pointer._rotation) + 90) * 0.01745)) - 13;
_root[("flamesprite" + num) + this._parent._parent._name]._y = ((this._parent._parent._y + (this.pointer._y * 0.2)) + Math.cos(((-this.pointer._rotation) + 90) * 0.01745)) - 27;
_root[("flamesprite" + num) + this._parent._parent._name].xspeed = Math.sin(((-this.pointer._rotation) - 180) * 0.01745) * 0.5;
_root[("flamesprite" + num) + this._parent._parent._name].yspeed = Math.cos(((-this.pointer._rotation) - 180) * 0.01745) * 0.5;
num++;
count = 0;
}
dmgcount++;
if (dmgcount > (10 - this._parent.dmgto)) {
_global.flamefagtest(this._parent._parent._x, this._parent._parent._y, this._parent.dmg, this._parent.rad);
dmgcount = 0;
}
this.play();
} else {
this.stop();
}
}
Symbol 1298 MovieClip Frame 1
Color.prototype.setTint = function (r, g, b, amount) {
var _local4 = 100 - amount;
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = _local4));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
i = 0;
amt = _global.shieldamtORIG;
wait = 50 - amt;
lnum = 6;
mod = wait / lnum;
aspeed = 2;
twrnum = _global.twrshieldnum;
_global.twrshieldnum++;
_global.findshield();
this.onEnterFrame = function () {
if (_global.pausing == 0) {
j = 0;
while (j < lnum) {
if (Math.round(j * mod) == i) {
this["l" + j].A = 40;
}
if (this["l" + j].A > 0) {
this["l" + j].A = this["l" + j].A - aspeed;
if (_root._currentframe != 5) {
this["l" + j].A = 0;
}
c = new Color(this["l" + j]);
c.setTint(Math.random() * 150, (Math.random() * 100) + 150, Math.random() * 200, this["l" + j].A);
}
j++;
}
i++;
if (i > wait) {
i = 0;
}
}
};
Symbol 1299 MovieClip Frame 1
scaleORIG = this._xscale;
this.onEnterFrame = function () {
if (this.blink == true) {
if (this._alpha > 90) {
this._alpha = 50;
} else {
this._alpha = 100;
}
} else {
this._alpha = 100;
}
};
this.onMouseUp = function () {
blink = false;
};
stop();
Symbol 1299 MovieClip Frame 8
Symbol 1361 MovieClip Frame 1
stop();
Symbol 1366 Button
on (release) {
this.Ty = -150;
_root.select.start();
}
Symbol 1373 MovieClip Frame 1
stop();
Symbol 1383 Button
on (release) {
this.gotoAndStop("play");
_root.select.start();
_global.sandboxing = false;
}
Symbol 1386 Button
on (release) {
this.gotoAndStop("about");
_root.select.start();
}
Symbol 1390 Button
on (release) {
this.gotoAndStop("instructions");
_root.select.start();
}
Symbol 1393 Button
on (release) {
this.gotoAndStop("cheats");
_root.select.start();
}
Symbol 1397 Button
on (release) {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
getURL ("http://www.kongregate.com/?gamereferral=stormthehouse3", "_blank");
__com_mochibot__("172ef73b", this, 10301, true);
}
Symbol 1403 Button
on (release) {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
getURL ("http://www.kongregate.com/?gamereferral=stormthehouse3", "_blank");
__com_mochibot__("172ef73b", this, 10301, true);
}
Symbol 1410 MovieClip Frame 69
stop();
Symbol 1415 Button
on (release) {
_root.swordshit.unloadMovie();
_global.gametype = 1;
_global.score = 1;
_global.gametypelabel = "campaign";
_global.money = 0;
_global.day = 1;
_global.blitz = false;
_root.gotoAndStop("fade");
_global.setguys();
}
Symbol 1419 Button
on (release) {
_root.swordshit.unloadMovie();
_global.gametype = 2;
_global.gametypelabel = "flag";
_global.money = 70000 /* 0x011170 */;
_global.blitz = true;
_global.blitztype = "gunner";
_global.setguys();
_global.swordnum = 20;
_global.termnum = 1;
_global.blitzwait = 60;
_global.dayover();
_root.gotoAndStop("fade");
_root.gotoAndStop("buy");
}
Symbol 1420 MovieClip Frame 2
stop();
Symbol 1422 Button
on (release) {
_root.swordshit.unloadMovie();
_global.gametype = 3;
_global.gametypelabel = "sparta";
_global.blitz = true;
_global.score = 0;
_global.blitztype = "sword";
_global.setguys();
_global.swordnum = 20;
_global.spartannum = 0;
_global.spartanskilled = 0;
_global.blitzwait = 60;
_root.select.start();
_global.money = 120000 /* 0x01D4C0 */;
_root.gotoAndStop("buy");
}
Symbol 1423 MovieClip Frame 2
stop();
Symbol 1426 Button
on (release) {
_root.swordshit.unloadMovie();
_global.gametype = 4;
_global.gametypelabel = "zombie";
_global.money = 0;
_global.blitz = true;
_global.blitztype = "sword";
_global.score = 0;
_global.setguys();
_global.swordnum = 40;
_global.gun2 = "shotgun";
_global.gun1 = "pistol";
_global.gun = _global.gun1;
_global.sworddmg = 1;
_global.swordmaxhealth = 1;
_global.walllvl = 2;
_global.maxhealth = _global.walllvl * 100;
_global.health = _global.maxhealth;
_global.ztarget = 180;
_global.pistolmaxammo = _global.pistolmaxammoMAX;
_global.pistolacc = _global.pistolaccMAX;
_global.pistolreload = _global.pistolreloadMAX;
_global.shotgunmaxammo = 10;
_global.shotgunreload = _global.shotgunreloadMAX;
_global.shotgunshots = _global.shotgunshotsMAX;
_global.ammo1 = _global[_global.gun1 + "maxammo"];
_global.ammo2 = _global[_global.gun2 + "maxammo"];
_global.ammo = _global.ammo1;
_global.blitzwait = 40;
_root.gotoAndStop("fade");
}
Symbol 1427 MovieClip Frame 2
stop();
Symbol 1429 Button
on (release) {
_global.gametype = 5;
_global.gametypelabel = "entertainer";
_global.hardness = 3;
_global.money = 0;
_global.blitz = false;
_root.swordshit.unloadMovie();
_global.setguys();
_global.swordnum = 0;
_global.gun1 = "pistol";
_global.gun = _global.gun1;
_global.sworddmg = 1;
_global.swordmaxhealth = 1;
_global.walllvl = 1;
_global.maxhealth = _global.walllvl * 100;
_global.health = _global.maxhealth;
_global.ztarget = 120;
_global.pistolreload = _global.pistolreloadMAX;
_global.ammo1 = _global[_global.gun1 + "maxammo"];
_global.ammo2 = _global[_global.gun2 + "maxammo"];
_global.ammo = _global.ammo1;
_global.blitzwait = 40;
_root.gotoAndStop("fade");
}
Symbol 1430 MovieClip Frame 2
stop();
Symbol 1432 Button
on (release) {
this._parent.gotoAndStop("sandbox");
_root.select.start();
}
Symbol 1433 MovieClip Frame 2
stop();
Symbol 1436 Button
on (release) {
_root.swordshit.unloadMovie();
_global.gametype = 7;
_global.gametypelabel = "jeeppunch";
_global.money = 0;
_global.day = 1;
_global.setguys();
_global.swordnum = 0;
_root.gotoAndStop("fade");
}
Symbol 1437 MovieClip Frame 1
stop();
Symbol 1441 Button
on (release) {
gotoAndStop (1);
_root.select.start();
}
Symbol 1445 Button
on (release) {
getURL ("http://stormthehouse.net", "_blank");
}
Symbol 1448 Button
on (release) {
getURL ("http://flashgamelicense.com", "_blank");
}
Symbol 1467 Button
on (release) {
_global.octopussy = false;
_global.makeoctopussy();
_global.sandboxgodmode = false;
_global.fisty = false;
_global.godmoney = false;
_global.sandboxmoney = false;
gotoAndStop (1);
_root.select.start();
if (_global.godwall == true) {
_global.walllvl = 6;
} else {
_global.walllvl = 1;
}
_root.wall2.gotoAndStop(_global.walllvl);
}
Symbol 1470 Button
on (release) {
this.startatbtn.setFocus();
_global.gametype = 6;
_global.sandboxing = true;
if (this.startatbtn.selected == true) {
_global.startat = true;
_global.gametype = 1;
_global.day = this.daynum.value - 1;
}
_global.money = this.moneynum.value;
if (_global.sandboxmoney == true) {
_global.money = 999999 /* 0x0F423F */;
}
_root.wall.unloadMovie();
_root.swordshit.unloadMovie();
_global.walllvl = this.wallbtn.value;
_global.maxhealth = 100 * _global.walllvl;
_global.health = _global.maxhealth;
_global.setguys();
_global.swordnum = 0;
_global.gunnernum = 0;
_global.spartannum = 0;
_global.spartanskilled = 0;
if (_global.blitz == true) {
_global.blitzwait = (100 - this.blitzspeed.value) * 2;
_global[_global.blitztype + "num"] = 1;
}
if (_global.infiniteday == true) {
_global.swordnum = this.swords.value;
_global.gunnernum = this.gunners.value;
_global.jeepnum = this.jeeps.value;
_global.termnum = this.terms.value;
_global.jetnum = this.jets.value;
_global.apachenum = this.apaches.value;
_global.tanknum = this.tanks.value;
_global.mechnum = this.mechs.value;
}
_root.gotoAndStop("buy");
}
Symbol 1477 MovieClip Frame 1
stop();
Instance of Symbol 1410 MovieClip in Symbol 1477 MovieClip Frame 1
on (release) {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
getURL ("http://www.kongregate.com/?gamereferral=stormthehouse3", "_blank");
__com_mochibot__("172ef73b", this, 10301, true);
}
Symbol 1477 MovieClip Frame 2
i = 2;
while (i < (_global.minigamenum + 1)) {
this["mini" + i].gotoAndStop(_root.minigames[i]);
i++;
}
Instance of Symbol 1041 MovieClip [NumericStepper] "moneynum" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
maximum = 1000000000 /* 0x3B9ACA00 */;
minimum = 0;
stepSize = 1000;
value = 1000;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
function __f_keyDown(eventObj) {
trace(this.value);
}
this.addEventListener("keyDown", __f_keyDown);
}
Instance of Symbol 1041 MovieClip [NumericStepper] "wallbtn" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
maximum = 6;
minimum = 1;
stepSize = 1;
value = 1;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
this.value = _global.walllvl;
}
onClipEvent (load) {
function __f_change(eventObj) {
_root.wall2.gotoAndStop(this.value);
_global.walllvl = this.value;
_global.maxhealth = _global.walllvl * 100;
_global.health = _global.maxhealth;
_root.select.start();
}
this.addEventListener("change", __f_change);
}
Instance of Symbol 743 MovieClip [CheckBox] "fistybtn" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
label = "Fisty McBeefbunch (hit x)";
labelPlacement = "right";
selected = false;
}
onClipEvent (load) {
function __f_click(eventObj) {
_global.fisty = this.selected;
trace(_global.fisty);
_root.select.start();
}
this.addEventListener("click", __f_click);
}
Instance of Symbol 743 MovieClip [CheckBox] "godbtn" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
label = "God mode";
labelPlacement = "right";
selected = false;
}
onClipEvent (load) {
this.selected = _global.godmode;
}
onClipEvent (load) {
function __f_click(eventObj) {
_global.sandboxgodmode = this.selected;
trace(_global.sandboxgodmode);
_root.select.start();
}
this.addEventListener("click", __f_click);
}
Instance of Symbol 1022 MovieClip [RadioButton] "blitzbtn" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup";
label = "Blitz";
labelPlacement = "right";
selected = false;
}
onClipEvent (load) {
function __f_click(eventObj) {
_global.infiniteday = false;
_global.blitz = true;
_global.startat = false;
this._parent.blitztype._y = -80;
this._parent.blitzspeed._y = -50;
this._parent.blitztext._y = -80;
this._parent.startattext._y = 9999;
this._parent.daynum._y = 9999;
this._parent.infinitedaytext._y = 9999;
this._parent.swords._y = 9999;
this._parent.gunners._y = 9999;
this._parent.jeeps._y = 9999;
this._parent.term._y = 9999;
this._parent.jets._y = 9999;
this._parent.apaches._y = 9999;
this._parent.tanks._y = 9999;
this._parent.mechs._y = 9999;
_root.select.start();
}
this.addEventListener("click", __f_click);
}
Instance of Symbol 1022 MovieClip [RadioButton] "infinitebtn" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup";
label = "Infinite day";
labelPlacement = "right";
selected = false;
}
onClipEvent (load) {
function __f_click(eventObj) {
_global.infiniteday = true;
_global.startat = false;
_global.blitz = false;
this._parent.infinitedaytext._y = -79;
this._parent.swords._y = -80.7;
this._parent.gunners._y = -80.7;
this._parent.jeeps._y = -55.6;
this._parent.terms._y = -55.6;
this._parent.jets._y = -30.6;
this._parent.apaches._y = -30.6;
this._parent.tanks._y = -5.7;
this._parent.mechs._y = -5.7;
this._parent.startattext._y = 9999;
this._parent.daynum._y = 9999;
this._parent.blitztype._y = 9999;
this._parent.blitzspeed._y = 9999;
this._parent.blitztext._y = 9999;
_root.select.start();
}
this.addEventListener("click", __f_click);
}
Instance of Symbol 1022 MovieClip [RadioButton] "startatbtn" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup";
label = "Start at day...";
labelPlacement = "right";
selected = true;
}
onClipEvent (load) {
function __f_click(eventObj) {
_global.gametype = 1;
_global.startat = true;
_global.infiniteday = false;
_global.blitz = false;
this._parent.blitztype._y = 9999;
this._parent.blitzspeed._y = 9999;
this._parent.blitztext._y = 9999;
this._parent.infinitedaytext._y = 9999;
this._parent.swords._y = 9999;
this._parent.gunners._y = 9999;
this._parent.jeeps._y = 9999;
this._parent.terms._y = 9999;
this._parent.jets._y = 9999;
this._parent.apaches._y = 9999;
this._parent.tanks._y = 9999;
this._parent.mechs._y = 9999;
this._parent.startattext._y = -50;
this._parent.daynum._y = -50;
}
this.addEventListener("click", __f_click);
}
Instance of Symbol 997 MovieClip [ComboBox] "blitztype" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
editable = false;
labels = [];
labels[0] = "sword";
labels[1] = "gunner";
labels[2] = "jeep";
labels[3] = "term";
labels[4] = "jet";
labels[5] = "apache";
labels[6] = "tank";
labels[7] = "mech";
rowCount = 5;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
_global.blitztype = "sword";
}
onClipEvent (load) {
function __f_change(eventObj) {
_global.blitztype = this.selectedItem.label;
trace(_global.blitztype);
_root.select.start();
}
this.addEventListener("change", __f_change);
}
Instance of Symbol 1041 MovieClip [NumericStepper] "blitzspeed" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
maximum = 99;
minimum = 1;
stepSize = 1;
value = 50;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
this.data = _global.blitzwait;
}
onClipEvent (load) {
function __f_change(eventObj) {
_global.blitzwait = this.data;
_root.select.start();
}
this.addEventListener("change", __f_change);
}
Instance of Symbol 743 MovieClip [CheckBox] "fistybtn" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
label = "Extra towers";
labelPlacement = "right";
selected = false;
}
onClipEvent (load) {
function __f_load(eventObj) {
this.selected = _global.godoctopussy;
}
this.addEventListener("load", __f_load);
}
onClipEvent (load) {
function __f_click(eventObj) {
_global.octopussy = this.selected;
_global.makeoctopussy();
_root.select.start();
}
this.addEventListener("click", __f_click);
}
Instance of Symbol 743 MovieClip [CheckBox] "fistybtn" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
label = "Infinite money";
labelPlacement = "right";
selected = false;
}
onClipEvent (load) {
function __f_load(eventObj) {
this.selected = _global.godmoney;
}
this.addEventListener("load", __f_load);
}
onClipEvent (load) {
function __f_click(eventObj) {
_global.sandboxmoney = true;
_root.select.start();
}
this.addEventListener("click", __f_click);
}
Instance of Symbol 1041 MovieClip [NumericStepper] "swords" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
maximum = 999;
minimum = 0;
stepSize = 1;
value = 0;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 1041 MovieClip [NumericStepper] "jeeps" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
maximum = 999;
minimum = 0;
stepSize = 1;
value = 0;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 1041 MovieClip [NumericStepper] "jets" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
maximum = 999;
minimum = 0;
stepSize = 1;
value = 0;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 1041 MovieClip [NumericStepper] "tanks" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
maximum = 999;
minimum = 0;
stepSize = 1;
value = 0;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 1041 MovieClip [NumericStepper] "gunners" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
maximum = 999;
minimum = 0;
stepSize = 1;
value = 0;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 1041 MovieClip [NumericStepper] "terms" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
maximum = 999;
minimum = 0;
stepSize = 1;
value = 0;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 1041 MovieClip [NumericStepper] "apaches" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
maximum = 999;
minimum = 0;
stepSize = 1;
value = 0;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 1041 MovieClip [NumericStepper] "mechs" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
maximum = 999;
minimum = 0;
stepSize = 1;
value = 0;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 1041 MovieClip [NumericStepper] "daynum" in Symbol 1477 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
maximum = 99;
minimum = 1;
stepSize = 1;
value = 1;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 1476 MovieClip in Symbol 1477 MovieClip Frame 6
onClipEvent (load) {
this.text.setFocus();
}
onClipEvent (keyDown) {
if (Key.isDown(13)) {
cheated = false;
novelty = false;
if (this.text.toLowerCase() == "die another day") {
if (_global.godmode == false) {
_global.godmode = true;
this.text = "god mode";
} else {
_global.godmode = false;
this.text = "god mode OFF";
}
cheated = true;
}
if (this.text.toLowerCase() == "goldfinger") {
if (_global.godfisty == false) {
_global.godfisty = true;
_global.givehelp();
_root.helpbox.text.gotoAndStop("fisty");
this.text = "unlocked fisty mcbeefpunch";
} else {
_global.godfisty = false;
this.text = "fisty mcbeefpunch OFF";
}
cheated = true;
}
if (this.text.toLowerCase() == "from russia with love") {
if (_global.godammo == false) {
_global.godammo = true;
this.text = "unlimited ammo";
} else {
_global.godammo = false;
this.text = "unlimited ammo OFF";
}
cheated = true;
}
if (this.text.toLowerCase() == "diamonds are forever") {
if (_global.godmoney == false) {
_global.godmoney = true;
this.text = "unlimited money";
} else {
_global.godmoney = false;
this.text = "unlimited money OFF";
}
cheated = true;
}
if (this.text.toLowerCase() == "the world is not enough") {
_global.giveallguns();
this.text = "all weapons";
cheated = true;
}
if (this.text.toLowerCase() == "live and let die") {
if (_global.godwall == false) {
_global.godwall = true;
_global.walllvl = 6;
_root.wall2.gotoAndStop(_global.walllvl);
this.text = "full wall";
} else {
_global.godwall = false;
_global.walllvl = 1;
_root.wall2.gotoAndStop(_global.walllvl);
this.text = "full wall OFF";
}
cheated = true;
}
if (this.text.toLowerCase() == "the living daylights") {
if (_global.livingdaylights == false) {
_global.livingdaylights = true;
this.text = "shorter day length";
} else {
_global.livingdaylights = false;
this.text = "shorter day length OFF";
}
cheated = true;
}
if (this.text.toLowerCase() == "octopussy") {
if (_global.octopussy == false) {
_global.godoctopussy = true;
_global.makeoctopussy();
this.text = "more tower slots";
} else {
_global.godoctopussy = false;
_global.makeoctopussy();
this.text = "more tower slots OFF";
}
cheated = true;
}
if (this.text.toLowerCase() == "moonraker") {
if (_global.moonraker == false) {
_global.moonraker = true;
this.text = "enemies moonwalk";
type = "sword";
i = 0;
while (i < _global.swordnum) {
s = "sword" + i;
_root.swordshit[s]._xscale = -100;
i++;
}
} else {
_global.moonraker = false;
this.text = "enemies moonwalk OFF";
type = "sword";
i = 0;
while (i < _global.swordnum) {
s = "sword" + i;
_root.swordshit[s]._xscale = 100;
i++;
}
}
cheated = true;
}
if ((this.text.toLowerCase() == "storm the house") or (this.text.toLowerCase() == "stormthehouse")) {
this.text = "lol. try again.";
novelty = true;
}
if ((((this.text.toLowerCase() == "storm the house sucks") or (this.text.toLowerCase() == "this game sucks")) or (this.text.toLowerCase() == "this sucks")) or (this.text.toLowerCase() == "sth sucks")) {
this.text = "well you know what? YOU SUCK";
novelty = true;
}
if ((((((((((((this.text.toLowerCase() == "fuck") or (this.text.toLowerCase() == "shit")) or (this.text.toLowerCase() == "pussy")) or (this.text.toLowerCase() == "cunt")) or (this.text.toLowerCase() == "bitch")) or (this.text.toLowerCase() == "ass")) or (this.text.toLowerCase() == "asshole")) or (this.text.toLowerCase() == "fag")) or (this.text.toLowerCase() == "faggot")) or (this.text.toLowerCase() == "bastard")) or (this.text.toLowerCase() == "teabag")) or (this.text.toLowerCase() == "arabian sungoggles on a windy day")) {
this.text = "you e-mail your mother with that keyboard?";
novelty = true;
}
if (cheated == false) {
if (novelty == false) {
this.text = "";
}
_root.beep.start();
} else {
_root.reloadFINISH.start();
_global.cheated = true;
}
}
}
Symbol 1485 Button
on (release) {
this._parent.easy.gotoAndStop(2);
this._parent.normal.gotoAndStop(1);
this._parent.hard.gotoAndStop(1);
this._parent.whygod.gotoAndStop(1);
_root.select.start();
_global.diff = "easy";
_global.diffdmg = 2;
_global.diffmoney = 1.5;
}
Symbol 1487 MovieClip Frame 1
stop();
Symbol 1494 Button
on (release) {
this._parent.easy.gotoAndStop(1);
this._parent.normal.gotoAndStop(2);
this._parent.hard.gotoAndStop(1);
this._parent.whygod.gotoAndStop(1);
_root.select.start();
_global.diff = "normal";
_global.diffdmg = 1.5;
_global.diffmoney = 1;
}
Symbol 1496 MovieClip Frame 1
stop();
Symbol 1500 Button
on (release) {
this._parent.easy.gotoAndStop(1);
this._parent.normal.gotoAndStop(1);
this._parent.hard.gotoAndStop(2);
this._parent.whygod.gotoAndStop(1);
_root.select.start();
_global.diff = "hard";
_global.diffdmg = 1;
_global.diffmoney = 1;
}
Symbol 1502 MovieClip Frame 1
stop();
Symbol 1508 Button
on (release) {
this._parent.easy.gotoAndStop(1);
this._parent.normal.gotoAndStop(1);
this._parent.hard.gotoAndStop(1);
this._parent.whygod.gotoAndStop(2);
_root.select.start();
_global.diff = "whygod";
_global.diffdmg = 0.75;
_global.diffmoney = 1;
}
Symbol 1509 MovieClip Frame 1
stop();
Symbol 1510 MovieClip Frame 1
easy.gotoAndStop(1);
normal.gotoAndStop(2);
hard.gotoAndStop(1);
whygod.gotoAndStop(1);
_global.diff = "normal";
_global.diffdmg = 1.5;
_global.diffmoney = 1;
Symbol 1511 MovieClip Frame 11
stop();
Symbol 1514 MovieClip Frame 1
stop();
Symbol 1539 MovieClip Frame 1
stop();
Instance of Symbol 826 MovieClip "light" in Symbol 1566 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._alpha > 1) {
this._alpha = this._alpha * 0.8;
}
}
Symbol 1577 MovieClip Frame 1
stop();
Symbol 1582 Button
on (release) {
global_sound = new Sound();
global_sound.setVolume(0);
_global.mute = true;
this.gotoAndStop(2);
}
Symbol 1585 Button
on (release) {
global_sound = new Sound();
global_sound.setVolume(100);
_global.mute = false;
this.gotoAndStop(1);
}
Symbol 1586 MovieClip Frame 1
stop();
Symbol 1593 Button
on (release) {
_root.select.start();
_global.towerset();
}
Symbol 1599 Button
on (release) {
_root.select.start();
_global.weaponset();
}
Symbol 1600 MovieClip Frame 1
stop();
Symbol 1600 MovieClip Frame 2
stop();
Symbol 1607 Button
on (release) {
if (_global.gunset == true) {
if (_global.money >= _global[_global.selectedgun + "cost"]) {
_global["have" + _global.selectedgun] = true;
_global.givemoney(-_global[_global.selectedgun + "cost"]);
_root.buyscreen.infobox.cost = "";
_root.buyscreen.infobox.info.gotoAndStop("blank");
_root.buyscreen.infobox.upgrades.gotoAndStop(1);
_root.buyscreen.infobox.buybutton.gotoAndStop(2);
_global.buttoncheck();
_root.gunbuy.start();
if (_global.gunnoob == true) {
_global.givehelp("gunnoob");
_global.gunnoob = false;
}
_global.gun2 = _global.gun1;
_global.ammo2 = _global[_global.gun2 + "maxammo"];
_root.buyscreen.button14.gunicon.gotoAndStop(_root.buyscreen.button13.weapon);
_root.buyscreen.button14.weapon = _root.buyscreen.button13.weapon;
_root.buyscreen.button13.gunicon.gotoAndStop(_global.selectedgun);
_root.buyscreen.button13.weapon = _global.selectedgun;
_global.gun1 = _global.selectedgun;
_global.gun = _global.gun1;
_global.giveammo(_global[_global.gun + "maxammo"]);
_global.upgradecheck(_global.gun, "gun");
}
} else if ((_root.gunicon.follow == false) and (_global.money >= _global[("twr" + this["tower" + i]) + "cost"])) {
_root.gunicon.follow = true;
_root.gunicon.hasgun = false;
_root.gunicon._alpha = 0;
_root.gunicon.origX = _root._xmouse;
_root.gunicon.origY = _root._ymouse;
_root.gunicon.gotoAndStop(_global.selectedgun);
_root.gunicon.weapon = _global.selectedgun;
_root.select.start();
if (_global.towernoob == true) {
_global.givehelp("towernoob");
_global.towernoob = false;
}
}
}
Symbol 1612 Button
on (release) {
if (_root.gunicon.follow == false) {
trace(_global.selectedgun);
_root.buyshit.start();
_global.givemoney(Math.round(_root[("twrslot" + _global.selectedtwr) + "costs"] * 0.9));
_root[("twrslot" + _global.selectedtwr) + "costs"] = 0;
_root["twrslot" + _global.selectedtwr].gotoAndStop("blank");
_global[("twrslot" + _global.selectedtwr) + "weapon"] = "blank";
_global.clearinfo();
}
}
Symbol 1613 MovieClip Frame 1
stop();
Symbol 1716 MovieClip Frame 1
stop();
Instance of Symbol 1716 MovieClip "upgrades" in Symbol 1717 MovieClip Frame 1
onClipEvent (mouseDown) {
down = 1;
}
onClipEvent (mouseUp) {
down = 0;
}
onClipEvent (load) {
down = 0;
}
Symbol 1721 Button
on (release) {
_global.day++;
_root.helpbox.Ty = -150;
_root.gotoAndStop("fade");
}
Symbol 1727 Button
on (release) {
if (_global.money >= _global.gunmancost) {
_global.givemoney(-_global.gunmancost);
_global.addgunman();
_root.buyshit.start();
_root.buyscreen.gunmancost = "$" + _global.gunmancost;
_global.buttoncheck();
} else {
_root.beep.start();
}
}
Symbol 1734 MovieClip Frame 1
sizeX = this._width / 2;
sizeY = this._height / 2;
ts = 100;
scalespeed = 0;
scale = 100;
speed = 0.7;
decel = 0.3;
down = 0;
this.onMouseDown = function () {
down = 1;
};
this.onMouseUp = function () {
down = 0;
};
out = 0;
Symbol 1756 Button
on (release) {
if (_global.money >= _global.repairmancost) {
_global.givemoney(-_global.repairmancost);
_global.addrepairman();
_global.buttoncheck();
_root.buyshit.start();
_root.buyscreen.repairmancost = "$" + _global.repairmancost;
} else {
_root.beep.start();
}
}
Symbol 1761 MovieClip Frame 1
stop();
Symbol 1762 MovieClip Frame 1
this.gotoAndStop(_global.walllvl + 1);
if (_global.walllvl == _global.wallmax) {
_root.buyscreen.btnwall.max.gotoAndStop(2);
}
Instance of Symbol 1232 MovieClip "wall" in Symbol 1762 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_global.walllvl + 1);
if (this._currentframe == _root.wall._currentframe) {
this._parent.plus.gotoAndStop(2);
}
}
Symbol 1763 Button
on (release) {
if (_global.money >= _global.wallcost) {
_root.buyshit.start();
_global.walllvl++;
dmg = _global.maxhealth - _global.health;
_global.maxhealth = _global.walllvl * 100;
_global.health = _global.maxhealth - dmg;
_global.dmghouse(0);
_root.wall.gotoAndStop(_global.walllvl);
if (_global.walllvl == _global.wallmax) {
_root.buyscreen.btnwall.max.gotoAndStop(2);
}
_global.givemoney(-_global.wallcost);
if (_global.walllvl < _global.wallmax) {
_global.wallcost = _global.wallcost * 2.5;
_root.buyscreen.wallcost = "$" + _global.wallcost;
}
_global.buttoncheck();
} else {
_root.beep.start();
}
}
Symbol 1767 MovieClip Frame 1
stop();
Symbol 1776 Button
on (release) {
if ((_global.money >= _global.houserepaircost) and (_global.health < _global.maxhealth)) {
_global.rephouse(-_global.houserepairamt);
_global.givemoney(-_global.houserepaircost);
_global.buttoncheck();
_root.buyshit.start();
} else {
_root.beep.start();
}
}
Symbol 1780 MovieClip Frame 1
wait = 20;
num = 0;
this._alpha = 0;
this.onEnterFrame = function () {
num++;
if (num > wait) {
this.unloadMovie();
_global.covered = false;
}
};
Symbol 1793 Button
on (release) {
_root.gotoAndStop("buy");
}