Frame 1
this.stop();
Fader._alpha = 0;
this.load_done = false;
this.mochi_done = true;
this.loadCheck = function () {
var _local5;
var _local4;
var _local3;
_local5 = this.getBytesLoaded();
_local4 = this.getBytesTotal();
_local3 = _local5 / _local4;
LoadGame.setPercent(_local3);
if (_local3 >= 1) {
this.load_done = true;
}
if ((this.load_done == true) && (this.mochi_done == true)) {
clearInterval(this.load_interval);
_root.gotoAndPlay("Mochi");
}
};
this.load_interval = setInterval(this, "loadCheck", 50);
this.gotoPage = function (the_scene, the_frame) {
if (the_frame == undefined) {
the_frame = 1;
}
_root.Game.removeEverything();
if (the_scene == "Loading") {
GameStatus.game_mode = "loading";
_root.gotoAndStop("LoadingStart");
} else if (the_scene == "Domain") {
GameStatus.game_mode = "domain";
_root.gotoAndStop("DomainStart");
} else if (the_scene == "Credits") {
GameStatus.game_mode = "credits";
_root.gotoAndStop("CreditsStart");
} else if (the_scene == "Instructions") {
GameStatus.game_mode = "instructions";
_root.gotoAndStop("InstructionsStart");
} else if (the_scene == "Game") {
GameStatus.game_mode = "game";
_root.gotoAndStop("GameStart");
} else if (the_scene == "Viewer") {
GameStatus.game_mode = "viewer";
_root.gotoAndStop("ViewerStart");
} else if (the_scene == "Tutorial") {
GameStatus.game_mode = "tutorial";
_root.gotoAndStop("TutorialStart");
} else if (the_scene == "Mapping") {
GameStatus.game_mode = "mapping";
_root.gotoAndStop("MappingStart");
} else if (the_scene == "Precache") {
GameStatus.game_mode = "precache";
_root.gotoAndStop("PrecacheStart");
} else {
GameStatus.game_mode = "instructions";
_root.gotoAndStop("InstructionsStart");
}
};
System.security.loadPolicyFile("http://onslaught.playr.co.uk/crossdomain.onslaught.xml");
Frame 2
this.stop();
if (GameStatus.local_mode == true) {
GameStatus.domain_check = false;
}
var base_font = "Futura Medium";
_global.style.setStyle("fontFamily", base_font);
_global.style.setStyle("embedFonts", true);
_global.style.setStyle("fontSize", 10);
_global.style.setStyle("fontWeight", "normal");
_global.style.setStyle("borderColor", 16777215);
_global.styles.TextArea.backgroundColor = undefined;
_global.styles.TextArea.borderColor = 16777215 /* 0xFFFFFF */;
_global.styles.TextArea.borderStyle = "solid";
_global.styles.TextArea.marginLeft = 3;
_global.styles.TextArea.marginRight = 3;
_global.styles.TextArea.color = 16777215 /* 0xFFFFFF */;
_global.styles.TextField.color = 16777215 /* 0xFFFFFF */;
_global.styles.TextField.setStyle("backgroundColor", undefined);
_global.styles.TextField.setStyle("fontFamily", base_font);
_global.styles.TextField.setStyle("fontSize", 11);
_global.styles.TextField.setStyle("fontWeight", "normal");
_global.styles.TextField.setStyle("borderColor", 16777215);
_global.styles.TextField.setStyle("borderStyle", "solid");
_global.styles.ScrollPane.borderColor = 16777215 /* 0xFFFFFF */;
_global.styles.ScrollPane.backgroundColor = 0;
_global.styles.Button.color = 0;
_global.styles.Button.embedFonts = true;
_global.styles.Button.setStyle("fontSize", 8);
_global.styles.NumericStepper.color = 16777215 /* 0xFFFFFF */;
if (GameStatus.game_xray == true) {
_root.xray = new OnslaughtXray();
}
this.mochiDone = function () {
_root.gotoAndPlay("Check");
};
skipToGame.onPress = function () {
_root.gotoAndPlay("Check");
};
if (GameStatus.local_mode == true) {
this.mochiDone();
} else {
var CPMStarContentSpotID = "12690Q54FEC192";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
}
if (GameStatus.kongregate_mode == true) {
_root.kongregateServices.connect();
}
Frame 5
gotoAndStop ("Mochi");
Frame 6
this.domain_check_passed = true;
gotoAndStop("Done");
play();
Frame 9
gotoAndPlay ("Check");
Frame 10
this.stop();
var fx_opts = new Object();
fx_opts.target_obj = Fader;
fx_opts.target_alpha = 100;
fx_opts.effect_duration = 450;
fx_opts.internal_clock = true;
fx_opts.from = this;
fx_opts.onComplete = function () {
this.from.gotoAndPlay("Exit");
};
this.effect = new VisualEffect(fx_opts);
Frame 13
this.gotoAndPlay("Done");
Frame 14
this.stop();
_root.gotoAndPlay("PrecacheWait");
Frame 17
this.play();
Frame 21
this.gotoAndPlay("CacheDone");
Frame 24
gotoAndPlay ("PrecacheStart");
Frame 25
stopAllSounds();
Instance of Symbol 296 MovieClip [Button] in Frame 25
//component parameters
onClipEvent (construct) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 390 MovieClip [CheckBox] in Frame 25
//component parameters
onClipEvent (construct) {
label = "CheckBox";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 419 MovieClip [ComboBox] in Frame 25
//component parameters
onClipEvent (construct) {
editable = false;
rowCount = 5;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 495 MovieClip [RadioButton] in Frame 25
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup";
label = "Radio Button";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 357 MovieClip [ScrollPane] in Frame 25
//component parameters
onClipEvent (construct) {
contentPath = "";
hLineScrollSize = 5;
hPageScrollSize = 20;
hScrollPolicy = "auto";
scrollDrag = false;
vLineScrollSize = 5;
vPageScrollSize = 20;
vScrollPolicy = "auto";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] in Frame 25
//component parameters
onClipEvent (construct) {
editable = true;
html = true;
text = "";
wordWrap = true;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 144 MovieClip [TextInput] in Frame 25
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 163 MovieClip [NumericStepper] in Frame 25
//component parameters
onClipEvent (construct) {
maximum = 10;
minimum = 0;
stepSize = 1;
value = 0;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Frame 28
this.stop();
if (GameStatus.debug_mode == true) {
this.gotoPage("Instructions", 1);
} else {
this.gotoPage("Credits", 1);
}
Frame 29
this.stop();
TheURL.onPress = function () {
_root.getURL("http://onslaught.playr.co.uk", "_blank");
};
DomainCheck.text = "This game lives on: http://" + GameStatus.domain_check_for;
DomainActual.text = "Actually from: " + _root._url;
Frame 30
this.stop();
if (_root.map_load != "") {
_root.gotoPage("Game");
}
Frame 34
this.gotoAndPlay("Credits");
Frame 35
stop();
if (GameStatus.game_mode != "instructions") {
_root.gotoPage("Credits");
}
if (_root.map_load != "") {
_root.gotoPage("Game");
}
Frame 37
stop();
if (GameStatus.game_mode != "game") {
_root.gotoPage("Instructions");
}
Frame 42
this.stop();
if (GameStatus.game_mode != "mapping") {
_root.gotoPage("Loading", 1);
}
Instance of Symbol 296 MovieClip [Button] "MapGridAlign" in Frame 42
//component parameters
onClipEvent (construct) {
icon = "";
label = "";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 390 MovieClip [CheckBox] "MapGridSnap" in Frame 42
//component parameters
onClipEvent (construct) {
label = "";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 296 MovieClip [Button] "MapLoad" in Frame 42
//component parameters
onClipEvent (construct) {
icon = "";
label = "Load";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "MapSave" in Frame 42
//component parameters
onClipEvent (construct) {
icon = "";
label = "Save";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "MapPlay" in Frame 42
//component parameters
onClipEvent (construct) {
icon = "";
label = "Play";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "MapClear" in Frame 42
//component parameters
onClipEvent (construct) {
icon = "";
label = "Clear";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Frame 47
stop();
if (GameStatus.game_mode != "tutorial") {
_root.gotoPage("Loading", 1);
}
Symbol 5 MovieClip [DataBindingClasses] Frame 1
#initclip 1
Object.registerClass("DataBindingClasses", mx.data.components.DataBinding);
#endinitclip
stop();
Symbol 1216 MovieClip [__Packages.GameStatus] Frame 0
class GameStatus extends Object
{
function GameStatus () {
super();
}
static var debug_mode = true;
static var local_mode = false;
static var kongregate_mode = false;
static var domain_check = true;
static var domain_check_for = ["onslaught.playr.co.uk"];
static var mod_active = false;
static var mod_name = "default";
static var s3_mode = false;
static var map_mode = true;
static var map_load = false;
static var sound_load = true;
static var sound_on = true;
static var sound_volume = 80;
static var sound_pan_max = 1.7;
static var sound_announce_wave = true;
static var sound_mute_x = 17;
static var sound_mute_y = 463;
static var game_paused = false;
static var game_over = false;
static var game_area_x = 720;
static var game_area_y = 480;
static var game_screen_x = 720;
static var game_screen_y = 535;
static var game_map_custom = false;
static var game_quality = "high";
static var game_speed = 100;
static var game_xray = false;
static var game_diff = "easy";
static var game_type = "normal";
static var keyboard_ignore = false;
static var turret_info_show = true;
static var turret_info_x = 30;
static var turret_info_y = 30;
static var message_waiting = false;
static var show_combo_in_range = false;
static var settings_panel_x = 270;
static var settings_panel_y = 30;
static var tutorial_panel_x = 270;
static var tutorial_panel_y = 30;
static var freak_now_cost_sec = 250;
static var rocket_smoke = true;
static var rocket_smoke_max = 200;
static var sniper_brass_max = 15;
static var url_map_share = "http://onslaught.playr.co.uk";
static var url_map_rate = "http://onslaught.playr.co.uk/map.rate.php";
static var gamegum_mode = false;
static var gamegum_user = "";
static var gamegum_pass = "";
static var gamegum_game = "Onslaught";
static var gamegum_version = "2.0";
}
Symbol 1217 MovieClip [__Packages.OnslaughtXray] Frame 0
class OnslaughtXray
{
function OnslaughtXray () {
trace("OnslaughtXray");
loadXray();
}
function loadXray() {
trace("loadXray");
com.blitzagency.xray.util.XrayLoader.addEventListener(com.blitzagency.xray.util.XrayLoader.LOADCOMPLETE, this, "xrayLoadComplete");
com.blitzagency.xray.util.XrayLoader.addEventListener(com.blitzagency.xray.util.XrayLoader.LOADERROR, this, "xrayLoadError");
com.blitzagency.xray.util.XrayLoader.loadConnector("xrayConnector_1.6.3.swf");
}
function xrayLoadComplete() {
trace("xrayLoadComplete");
_global.tt("xrayLoadComplete called");
}
function xrayLoadError() {
trace("Unable to load XRay Connector");
}
}
Symbol 1218 MovieClip [__Packages.com.blitzagency.events.IStaticBroadcastable] Frame 0
interface com.blitzagency.events.IStaticBroadcastable
{
}
Symbol 1219 MovieClip [__Packages.com.blitzagency.xray.util.XrayLoader] Frame 0
class com.blitzagency.xray.util.XrayLoader implements com.blitzagency.events.IStaticBroadcastable
{
static var loaded, componentSWFPath, containerMovie, fpsMeter, loader, connector;
var broadcaster;
function XrayLoader () {
}
static function trace() {
if (loaded) {
_global.tt.apply(_global.tt, arguments);
}
}
static function tt() {
if (loaded) {
_global.tt.apply(_global.tt, arguments);
}
}
static function tf() {
if (loaded) {
_global.tf.traceFunction.apply(_global.tf, arguments);
}
}
static function loadConnector(componentSWF, containerClip, showFPS) {
componentSWFPath = componentSWF;
containerMovie = ((!containerClip) ? _root : (containerClip));
fpsMeter = showFPS;
return(loadXray());
}
static function addEventListener(eventName, listener, methodName) {
if (loader == undefined) {
loader = new com.blitzagency.xray.util.XrayLoader();
}
loader.addSingletonEventListener(eventName, listener, methodName);
}
static function removeEventListener(eventName, listener, methodName) {
loader.removeSingletonEventListener(eventName, listener, methodName);
}
function addSingletonEventListener(eventName, listener, methodName) {
if (broadcaster == undefined) {
broadcaster = new com.blitzagency.events.EventBroadcaster(this);
}
broadcaster.addEventListener(eventName, listener, methodName);
}
function broadcastSingletonEvent(eventName, data) {
broadcaster.broadcastEvent(eventName, data);
}
function removeSingletonEventListener(eventName, listener, methodName) {
broadcaster.removeEventListener(eventName, listener, methodName);
}
static function broadcastEvent(eventName, data) {
if (loader == undefined) {
loader = new com.blitzagency.xray.util.XrayLoader();
}
loader.broadcastSingletonEvent(eventName, data);
}
static function loadXray() {
var _local1 = new MovieClipLoader();
connector = containerMovie.createEmptyMovieClip("__xrayConnector", containerMovie.getNextHighestDepth());
_local1.addListener(com.blitzagency.xray.util.XrayLoader);
_local1.loadClip(componentSWFPath, connector);
return(connector);
}
static function onLoadProgress(target_mc, loadedBytes, totalBytes) {
var _local1 = Math.floor((loadedBytes / totalBytes) * 100);
broadcastEvent(LOADPROGRESS, {type:LOADPROGRESS, percentLoaded:_local1});
}
static function onLoadInit(targetMC) {
_global.com.blitzagency.xray.Xray.initConnections();
if (fpsMeter) {
_global.com.blitzagency.xray.Xray.createFPSMeter(targetMC);
}
broadcastEvent(LOADCOMPLETE, {type:LOADCOMPLETE});
}
static function onLoadComplete(targetMC) {
loaded = true;
}
static function onLoadError(targetMC, errorCode) {
broadcastEvent(LOADERROR, {type:LOADERROR, errorCode:errorCode});
}
static var LOADCOMPLETE = "LoadComplete";
static var LOADPROGRESS = "LoadProgress";
static var LOADERROR = "LoadError";
}
Symbol 1220 MovieClip [__Packages.com.blitzagency.events.EventBroadcaster] Frame 0
class com.blitzagency.events.EventBroadcaster
{
var registeredListeners;
function EventBroadcaster (target) {
if (target == undefined) {
throw new Error("ERROR: You must pass in the target object to the EventBroadcaster class. [broadcaster = new EventBroadcaster(this);]");
}
registeredListeners = new Object();
}
function addEventListener(eventName, listenerObj, methodName) {
if (registeredListeners[eventName] == undefined) {
registeredListeners[eventName] = new Array();
}
registeredListeners[eventName].push({listenerObj:listenerObj, methodName:methodName});
}
function broadcastEvent(eventName, data) {
var _local4;
var _local2 = 0;
while (_local2 < registeredListeners[eventName].length) {
_local4 = eventName;
if (registeredListeners[eventName][_local2].methodName != undefined) {
_local4 = registeredListeners[eventName][_local2].methodName;
}
registeredListeners[eventName][_local2].listenerObj[_local4](data);
_local2++;
}
}
function removeEventListener(eventName, listenerObj, methodName) {
var _local3 = registeredListeners[eventName];
var _local2 = _local3.length - 1;
while (_local2 >= 0) {
var _local4 = _local3[_local2].listenerObj;
var _local5 = _local3[_local2].methodName;
if ((_local4 == listenerObj) && (_local5 == methodName)) {
_local3.splice(_local2, 1);
}
_local2--;
}
}
}
Symbol 1221 MovieClip [__Packages.OnslaughtObject] Frame 0
class OnslaughtObject extends MovieClip
{
var eventManager, Maths, time_last, frame_last, cacheAsBitmap, target_modes, target_modes_valid, _x, _y, target_box_min_x, target_box_max_x, target_box_min_y, target_box_max_y, interval, effect, removeMovieClip, filters;
function OnslaughtObject () {
super();
eventManager = new Object();
AsBroadcaster.initialize(eventManager);
if (Maths == undefined) {
Maths = new MathCache();
}
time_last = GameClock.timeNow();
frame_last = GameClock.timeNow();
if (cacheAsBitmap != undefined) {
cacheAsBitmap = true;
}
var _local3;
target_modes = new Array();
target_modes_valid = new Array();
_local3 = new Object();
_local3.mode = "near";
_local3.title = "Nearest";
target_modes.push(_local3);
_local3 = new Object();
_local3.mode = "far";
_local3.title = "Furthest";
target_modes.push(_local3);
_local3 = new Object();
_local3.mode = "weak";
_local3.title = "Weakest";
target_modes.push(_local3);
_local3 = new Object();
_local3.mode = "strong";
_local3.title = "Strongest";
target_modes.push(_local3);
_local3 = new Object();
_local3.mode = "slow";
_local3.title = "Slowest";
target_modes.push(_local3);
_local3 = new Object();
_local3.mode = "fast";
_local3.title = "Fastest";
target_modes.push(_local3);
_local3 = new Object();
_local3.mode = "old";
_local3.title = "Oldest";
target_modes.push(_local3);
_local3 = new Object();
_local3.mode = "young";
_local3.title = "Youngest";
target_modes.push(_local3);
for (var _local4 in target_modes) {
_local3 = target_modes[_local4];
target_modes_valid[_local3.mode] = _local3;
}
}
function effectNew(new_obj) {
return(new VisualEffect(new_obj));
}
function broadcastMessage(the_msg) {
eventManager.broadcastMessage(the_msg);
}
function addListener(the_obj) {
eventManager.addListener(the_obj);
}
function addEventListener(event_name, func) {
eventManager.addEventListener(event_name, func);
}
function removeListener(the_obj) {
eventManager.removeListener(the_obj);
}
function arrayPick(the_list, the_qty) {
if (the_qty == undefined) {
the_qty = 1;
}
var _local4 = the_list.length;
if (_local4 == the_qty) {
return(the_list);
}
if (the_qty == 1) {
var _local11 = Math.floor(Math.random() * _local4);
return([the_list[_local11]]);
}
if (the_qty == 2) {
var _local6 = 0;
var _local5 = 0;
while (_local6 == _local5) {
_local6 = Math.floor(Math.random() * _local4);
_local5 = Math.floor(Math.random() * _local4);
}
return([the_list[_local6], the_list[_local5]]);
}
if (_local4 <= 2) {
return(the_list);
}
var _local1 = _local4;
var _local3;
var _local8;
var _local7;
while (_local1-- , _local1) {
_local3 = Math.floor(Math.random() * (_local1 + 1));
_local8 = the_list[_local1];
_local7 = the_list[_local3];
the_list[_local1] = _local7;
the_list[_local3] = _local8;
}
var _local10 = new Array();
_local1 = 0;
while (_local1 < the_qty) {
_local10.push(the_list[_local1]);
_local1++;
}
return(_local10);
}
function trigDegreesTo(point_from, point_to) {
var _local1 = point_to._y - point_from._y;
var _local2 = point_to._x - point_from._x;
return(Math.atan2(_local1, _local2) * 57.296);
}
function trigRadiansTo(point_from, point_to) {
var _local1 = point_to._y - point_from._y;
var _local2 = point_to._x - point_from._x;
return(Math.atan2(_local1, _local2));
}
function trigForwardAtAngle(theta, hyp) {
var _local2 = theta * 0.0174498255;
return({x:Maths.cos_cached(_local2) * hyp, y:Maths.sin_cached(_local2) * hyp, distance:hyp});
}
function trigDistanceTo(obj_a, obj_b, as_square) {
var _local2 = obj_b._x - obj_a._x;
var _local1 = obj_b._y - obj_a._y;
var _local3 = (_local2 * _local2) + (_local1 * _local1);
if (as_square == true) {
return(_local3);
}
return(Math.sqrt(_local3));
}
function trigDeg2Rad(deg) {
return(deg * 0.0174531179870181);
}
function trigDec2Hex(dec) {
var _local2 = "0123456789ABCDEF";
var _local1;
var _local4;
var _local5;
if (dec > 15) {
_local1 = _local2.charAt(Math.floor(dec / 16));
_local4 = _local2.charAt(dec - (_local1 * 16));
} else {
_local1 = 0;
_local4 = _local2.charAt(dec);
}
_local5 = _local1 + _local4;
return(_local5);
}
function targetInRange(the_obj, the_range) {
if (!(the_obj && (the_obj._name))) {
return(false);
}
var _local5 = the_obj._x;
var _local4 = the_obj._y;
var _local12 = _x - the_range;
var _local7 = _x + the_range;
var _local10 = _y - the_range;
var _local6 = _y + the_range;
if ((((_local5 < _local12) || (_local5 > _local7)) || (_local4 < _local10)) || (_local4 > _local6)) {
return(false);
}
var _local13 = trigDistanceTo(this, the_obj);
if (_local13 > the_range) {
return(false);
}
if (target_angle_mode == TA_MODE_ENGAGED) {
var _local8 = trigDegreesTo(this, the_obj);
var _local9 = (_local8 + 720) % 360;
var _local11 = ((target_angle_deg + 360) - (_local9 + 360)) % 360;
if (Math.abs(_local11) > target_angle_spread) {
return(false);
}
}
return(true);
}
function targetExists(the_obj) {
if (the_obj && (the_obj._name)) {
return(true);
}
return(false);
}
function targetAttackers() {
return(AttackerManager.attackers);
}
function targetAcquire(the_obj, the_range, the_type) {
if (target_modes_valid[the_type] == undefined) {
the_type = "near";
}
var _local6 = 1E38;
var _local8 = 0;
var _local7 = targetAcquireBySlice(the_obj, the_range, true);
var _local2;
var _local3;
var _local4;
var _local5;
var _local10 = false;
if ((((the_type == "weak") || (the_type == "near")) || (the_type == "slow")) || (the_type == "young")) {
_local10 = true;
}
var _local11 = the_range * the_range;
for (var _local13 in _local7) {
_local3 = _local7[_local13];
if (!(_local3 && (_local3._name))) {
continue;
}
_local4 = trigDistanceTo(the_obj, _local3, true);
if (_local4 >= _local11) {
continue;
}
switch (the_type) {
case "weak" :
_local2 = _local3.energy;
break;
case "strong" :
_local2 = _local3.energy;
break;
case "slow" :
_local2 = _local3.move_speed;
break;
case "fast" :
_local2 = _local3.move_speed;
break;
case "near" :
_local2 = _local4;
break;
case "far" :
_local2 = _local4;
break;
case "old" :
_local2 = _local3.age;
break;
case "young" :
_local2 = _local3.age;
}
if (_local10) {
if (_local2 < _local6) {
_local6 = _local2;
_local5 = _local3;
}
} else if (_local2 > _local8) {
_local8 = _local2;
_local5 = _local3;
}
}
return(_local5);
}
function targetAvailableOrAcquire(the_target, the_source, the_range, the_type) {
if (targetExists(the_target) && (targetInRange(the_target, the_range))) {
return(the_target);
}
return(targetAcquire(the_source, the_range, the_type));
}
function targetAcquireBySlice(the_obj, the_range, give_all) {
var _local6 = targetAttackers();
var _local5 = new Array();
var _local2;
var _local4;
var _local3;
var _local7;
var _local8;
var _local9;
if (target_box_built == false) {
target_box_min_x = the_obj._x - the_range;
target_box_max_x = the_obj._x + the_range;
target_box_min_y = the_obj._y - the_range;
target_box_max_y = the_obj._y + the_range;
if (target_box_static == true) {
target_box_built = true;
}
}
for (var _local10 in _local6) {
_local2 = _local6[_local10];
if (_local2 && (_local2._name)) {
_local4 = _local2._x;
_local3 = _local2._y;
if ((((_local4 >= target_box_min_x) && (_local4 <= target_box_max_x)) && (_local3 >= target_box_min_y)) && (_local3 <= target_box_max_y)) {
if (target_angle_mode == TA_MODE_ENGAGED) {
_local7 = trigDegreesTo(this, _local2);
_local8 = (_local7 + 720) % 360;
_local9 = ((target_angle_deg + 360) - (_local8 + 360)) % 360;
if (Math.abs(_local9) < target_angle_spread) {
_local5.push(_local2);
}
} else {
_local5.push(_local2);
}
}
}
}
if (give_all == true) {
return(_local5);
}
if (_local5.length > 0) {
return(arrayPick(_local5, 1));
}
return(undefined);
}
function targetListInBox(the_obj, the_range) {
return(targetAcquireBySlice(the_obj, the_range, true));
}
function removeMyself() {
clearInterval(interval);
if (effect) {
effect.effectRemove();
}
delete effect;
var _local2;
for (var _local3 in eventManager._listeners) {
_local2 = eventManager._listeners[_local3];
eventManager.removeListener(_local2);
}
removeMovieClip();
}
function blackHoled(the_hole) {
var _local5 = trigDistanceTo(this, the_hole);
var _local4 = _local5 / the_hole.gravity;
var _local2 = new Object();
_local2.target_obj = this;
_local2.target_x = the_hole._x;
_local2.target_y = the_hole._y;
_local2.target_xscale = 25;
_local2.target_yscale = 25;
_local2.effect_duration = _local4 * 1000;
_local2.from = this;
_local2.onComplete = function () {
this.from.onBlackHoled();
this.from.removeMyself();
};
effect = effectNew(_local2);
}
function keyboardOff() {
GameStatus.keyboard_ignore = true;
}
function keyboardOn() {
GameStatus.keyboard_ignore = false;
}
function filterAddShadow() {
var _local2 = filters;
var _local3 = new flash.filters.DropShadowFilter(6, 45, 3355443, 75, 8, 8, 1, 1);
_local2.push(_local3);
filters = _local2;
}
var frame_space = 32;
var black_holed = false;
var black_hole_affect = true;
var target_box_static = false;
var target_box_built = false;
static var TA_MODE_NONE = "none";
static var TA_MODE_ENGAGED = "engaged";
static var TA_SPREAD_WIDE = 50;
static var TA_SPREAD_MEDIUM = 30;
static var TA_SPREAD_NARROW = 15;
var target_angle_mode = TA_MODE_NONE;
var target_angle_deg = 0;
var target_angle_spread = 30;
var target_angle_available = true;
var init_done = false;
static var rad_min = 100;
static var rad_max = -100;
}
Symbol 1222 MovieClip [__Packages.MathCache] Frame 0
class MathCache extends Math
{
static var lookup_sin, lookup_cos, lookup_atan2, lookup_sqrt, lookup_fwd, lookup_log;
function MathCache () {
super();
if (lookup_sin == undefined) {
lookup_sin = new Object();
}
if (lookup_cos == undefined) {
lookup_cos = new Object();
}
if (lookup_atan2 == undefined) {
lookup_atan2 = new Object();
}
if (lookup_sqrt == undefined) {
lookup_sqrt = new Object();
}
if (lookup_fwd == undefined) {
lookup_fwd = new Object();
}
if (lookup_log == undefined) {
lookup_log = new Object();
}
if (cache_init == false) {
var _local2 = -PI;
while (_local2 < PI) {
lookup_sin[_local2] = Math.sin(_local2);
lookup_cos[_local2] = Math.cos(_local2);
_local2 = _local2 + 0.01;
}
cache_init = true;
}
}
function deg2rad_cached(deg) {
return(deg * (PI * 0.0055555));
}
function cacheHitRate() {
var _local1 = new Object();
var _local2 = cache_hit_sin;
var _local3 = cache_hit_cos;
var _local7 = cache_hit_sqrt;
var _local6 = cache_hit_atan2;
var _local4 = cache_hit_fwd;
var _local5 = cache_hit_log;
var _local9 = cache_hit_sin - cache_miss_sin;
var _local11 = cache_hit_cos - cache_miss_cos;
var _local12 = cache_hit_sqrt - cache_miss_sqrt;
var _local13 = cache_hit_atan2 - cache_miss_atan2;
var _local10 = cache_hit_fwd - cache_miss_fwd;
var _local8 = cache_hit_log - cache_miss_log;
var _local18 = cache_miss_sin;
var _local15 = cache_miss_cos;
var _local19 = cache_miss_sqrt;
var _local16 = cache_miss_atan2;
var _local14 = cache_miss_fwd;
var _local17 = cache_miss_log;
_local1.rate_sin = Math.floor((_local9 / _local2) * 100);
_local1.rate_cos = Math.floor((_local11 / _local3) * 100);
_local1.rate_sqrt = Math.floor((_local12 / _local7) * 100);
_local1.rate_atan2 = Math.floor((_local13 / _local6) * 100);
_local1.rate_fwd = Math.floor((_local10 / _local4) * 100);
_local1.rate_log = Math.floor((_local8 / _local5) * 100);
_local1.hit_sin = _local9;
_local1.hit_cos = _local11;
_local1.hit_sqrt = _local12;
_local1.hit_atan2 = _local13;
_local1.hit_fwd = _local10;
_local1.hit_log = _local8;
_local1.miss_sin = _local18;
_local1.miss_cos = _local15;
_local1.miss_sqrt = _local19;
_local1.miss_atan2 = _local16;
_local1.miss_fwd = _local14;
_local1.miss_log = _local17;
_local1.total_sin = _local2;
_local1.total_cos = _local3;
_local1.total_sqrt = _local7;
_local1.total_atan2 = _local6;
_local1.total_fwd = _local4;
_local1.total_log = _local5;
_local1.total = ((((_local2 + _local3) + _local7) + _local6) + _local4) + _local5;
_local1.total_hit = ((((_local1.hit_sin + _local1.hit_cos) + _local1.hit_sqrt) + _local1.hit_atan2) + _local1.hit_fwd) + _local1.hit_log;
_local1.total_miss = ((((_local1.miss_sin + _local1.miss_cos) + _local1.miss_sqrt) + _local1.miss_atan2) + _local1.miss_fwd) + _local1.miss_log;
_local1.total_rate = Math.floor((_local1.total_hit / _local1.total) * 100);
cache_hit_sin = 0;
cache_hit_cos = 0;
cache_hit_sqrt = 0;
cache_hit_atan2 = 0;
cache_hit_fwd = 0;
cache_hit_log = 0;
cache_miss_sin = 0;
cache_miss_cos = 0;
cache_miss_sqrt = 0;
cache_miss_atan2 = 0;
cache_miss_fwd = 0;
cache_miss_log = 0;
return(_local1);
}
function sqrt_cached(num) {
var _local7 = int((num * cache_accuracy_sqrt) + 1);
cache_hit_sqrt++;
if (lookup_sqrt[_local7] == undefined) {
var _local6 = 1 / cache_accuracy_sqrt;
var _local1 = 0;
var _local2 = 0;
var _local3 = 0;
var _local4 = 0;
var _local5 = 0;
_local4 = num;
_local2 = _local4 * 0.25;
do {
_local5++;
_local3 = _local4 / _local2;
_local2 = (_local2 + _local3) * 0.5;
_local1 = _local2 - _local3;
if (_local1 < 0) {
_local1 = -_local1;
}
} while (_local1 > _local6);
lookup_sqrt[_local7] = _local2;
cache_miss_sqrt++;
}
return(lookup_sqrt[_local7]);
}
function sin_cached(num) {
var _local1 = cache_accuracy_sin;
var _local2 = Math.floor(num * _local1) / _local1;
cache_hit_sin++;
if (lookup_sin[_local2] == undefined) {
var _local3 = Math.sin(_local2);
lookup_sin[_local2] = Math.floor(_local3 * _local1) / _local1;
cache_miss_sin++;
}
return(lookup_sin[_local2]);
}
function cos_cached(num) {
var _local1 = cache_accuracy_cos;
var _local2 = Math.floor(num * _local1) / _local1;
cache_hit_cos++;
if (lookup_cos[_local2] == undefined) {
var _local3 = Math.cos(_local2);
lookup_cos[_local2] = Math.floor(_local3 * _local1) / _local1;
cache_miss_cos++;
}
return(lookup_cos[_local2]);
}
function log_cached(num) {
var _local1 = cache_accuracy_log;
var _local2 = Math.floor(num * _local1) / _local1;
cache_hit_log++;
if (lookup_log[_local2] == undefined) {
var _local3 = Math.log(_local2);
lookup_log[_local2] = Math.floor(_local3 * _local1) / _local1;
cache_miss_log++;
}
return(lookup_log[_local2]);
}
function atan2_cached(d_y, d_x) {
d_y = d_y / Math.abs(d_x);
d_x = d_x / Math.abs(d_x);
if (d_y == Infinity) {
d_y = 1;
d_x = 0;
}
if (d_x == Infinity) {
d_x = 1;
d_y = 0;
}
if (isNaN(d_y)) {
d_y = 1;
d_x = 0;
}
if (isNaN(d_x)) {
d_x = 0;
d_y = -1;
}
var _local3 = cache_accuracy_atan2;
var _local5 = Math.floor(d_y * _local3) / _local3;
var _local6 = Math.floor(d_x * _local3) / _local3;
var _local4 = (_local5 + "-") + _local6;
cache_hit_atan2++;
if (lookup_atan2[_local4] == undefined) {
var _local7 = Math.atan2(_local5, _local6);
lookup_atan2[_local4] = Math.floor(_local7 * _local3) / _local3;
cache_miss_atan2++;
}
return(lookup_atan2[_local4]);
}
function fwd_cached(theta, hyp) {
var _local3 = theta * (PI * 0.0055555);
var _local2 = new Object();
_local2.x = cos_cached(_local3) * hyp;
_local2.y = sin_cached(_local3) * hyp;
_local2.distance = hyp;
return(_local2);
}
static var cache_accuracy = 10;
static var cache_accuracy_sin = 100;
static var cache_accuracy_cos = 100;
static var cache_accuracy_atan2 = 10;
static var cache_accuracy_sqrt = 1;
static var cache_accuracy_fwd = 10;
static var cache_accuracy_log = 10;
static var PI = 3.14;
static var cache_hit = 0;
static var cache_miss = 0;
static var cache_hit_sin = 0;
static var cache_miss_sin = 0;
static var cache_hit_cos = 0;
static var cache_miss_cos = 0;
static var cache_hit_atan2 = 0;
static var cache_miss_atan2 = 0;
static var cache_hit_sqrt = 0;
static var cache_miss_sqrt = 0;
static var cache_hit_fwd = 0;
static var cache_miss_fwd = 0;
static var cache_hit_log = 0;
static var cache_miss_log = 0;
static var cache_init = false;
}
Symbol 1223 MovieClip [__Packages.GameClock] Frame 0
class GameClock extends MovieClip
{
var the_date;
function GameClock () {
super();
the_date = new Date();
time_last = the_date.getTime();
}
static function timeNow(eternal) {
if (eternal == true) {
return(time_eternal);
}
return(time_now);
}
function onEnterFrame() {
update();
}
function update() {
the_date = new Date();
var _local3 = the_date.getTime();
var _local2 = _local3 - time_last;
if ((GameStatus.game_over != true) && (GameStatus.game_paused != true)) {
time_now = time_now + (_local2 * (GameStatus.game_speed / 100));
}
time_eternal = time_eternal + _local2;
time_last = _local3;
}
static var time_now = 0;
static var time_last = 0;
static var time_eternal = 0;
var interval = 0;
var frame_space = 32;
}
Symbol 1224 MovieClip [__Packages.SimpleDepthManager] Frame 0
class SimpleDepthManager extends OnslaughtObject
{
var _depth, _count, _mcl, createEmptyMovieClip, attachMovie, getInstanceAtDepth, getNextHighestDepth;
function SimpleDepthManager () {
super();
_depth = 1;
_count = 0;
_mcl = new MovieClipLoader();
_mcl.addListener(this);
}
function createClip() {
validateDepth();
var _local2 = createEmptyMovieClip(getInstanceName(), _depth);
return(_local2);
}
function attachClip(id, init) {
validateDepth();
var _local2 = attachMovie(id, getInstanceName(), _depth, init);
return(_local2);
}
function loadClip(url) {
var _local2 = createClip();
_mcl.loadClip(url, _local2);
return(_local2);
}
function removeClipAt(d) {
var _local2 = getInstanceAtDepth(d);
if (_local2 == undefined) {
return(false);
}
_local2.removeMovieClip();
if (d < _depth) {
_depth = d;
}
return(true);
}
function removeClip(mc) {
if (mc._parent != this) {
return(false);
}
return(removeClipAt(mc.getDepth()));
}
function getInstanceName() {
return((("sdm_" + (++_count)) + "_") + _depth);
}
function validateDepth() {
var _local3 = 1000;
var _local2 = 0;
while ((getInstanceAtDepth(_depth) && (_local2 < _local3)) && (_depth < MAX_DEPTH)) {
_depth++;
_local2++;
}
if (_local2 == _local3) {
_depth = getNextHighestDepth();
}
if (_depth >= MAX_DEPTH) {
throw new Error("Unable to find a valid new depth.");
}
}
static var MAX_DEPTH = 1048576;
}
Symbol 1225 MovieClip [__Packages.OnslaughtManager] Frame 0
class OnslaughtManager extends SimpleDepthManager
{
var interval, removeMovieClip;
function OnslaughtManager () {
super();
}
function pruneDead(list_in, remove_item) {
var _local1;
var _local3 = new Array();
for (var _local5 in list_in) {
_local1 = list_in[_local5];
if (remove_item == _local1) {
continue;
}
if (_local1 && (_local1._name)) {
_local3.push(_local1);
}
}
return(_local3);
}
function removeMyself() {
clearInterval(interval);
removeMovieClip();
}
}
Symbol 1226 MovieClip [__Packages.AttackerManager] Frame 0
class AttackerManager extends OnslaughtManager
{
static var attackers;
var time_last, wave_last, interval, waves, attacker_hp_rate, attacker_speed_easy, attacker_speed_medium, attacker_speed_hard, attacker_speed_extreme, attacker_hp_rate_easy, attacker_hp_rate_medium, attacker_hp_rate_hard, attacker_hp_rate_extreme, wave_size_list, attacker_speed_list, getNextHighestDepth, attachMovie, broadcastMessage, attacker_focus, pruneDead;
function AttackerManager () {
super();
time_last = GameClock.timeNow();
wave_last = GameClock.timeNow();
interval = setInterval(this, "update", frame_space);
waves = new Array();
attackers = new Array();
attacker_hp_rate = new Array();
if (attacker_speed_easy == undefined) {
attacker_speed_easy = 60;
}
if (attacker_speed_medium == undefined) {
attacker_speed_medium = 60;
}
if (attacker_speed_hard == undefined) {
attacker_speed_hard = 80;
}
if (attacker_speed_extreme == undefined) {
attacker_speed_extreme = 80;
}
if (attacker_hp_rate_easy == undefined) {
attacker_hp_rate_easy = new Array();
attacker_hp_rate_easy[1] = 1.3;
attacker_hp_rate_easy[10] = 1.2;
attacker_hp_rate_easy[30] = 1.15;
attacker_hp_rate_easy[40] = 1.1;
attacker_hp_rate_easy[60] = 1.09;
attacker_hp_rate_easy[80] = 1.05;
attacker_hp_rate_easy[100] = 1.04;
attacker_hp_rate_easy[120] = 1.03;
attacker_hp_rate_easy[200] = 1.02;
}
if (attacker_hp_rate_medium == undefined) {
attacker_hp_rate_medium = new Array();
attacker_hp_rate_medium[1] = 1.3;
attacker_hp_rate_medium[10] = 1.2;
attacker_hp_rate_medium[20] = 1.25;
attacker_hp_rate_medium[30] = 1.15;
attacker_hp_rate_medium[40] = 1.1;
attacker_hp_rate_medium[60] = 1.09;
attacker_hp_rate_medium[80] = 1.05;
attacker_hp_rate_medium[100] = 1.04;
attacker_hp_rate_medium[120] = 1.03;
attacker_hp_rate_medium[200] = 1.02;
}
if (attacker_hp_rate_hard == undefined) {
attacker_hp_rate_hard = new Array();
attacker_hp_rate_hard[1] = 1.4;
attacker_hp_rate_hard[10] = 1.3;
attacker_hp_rate_hard[30] = 1.2;
attacker_hp_rate_hard[40] = 1.1;
attacker_hp_rate_hard[60] = 1.05;
attacker_hp_rate_hard[100] = 1.04;
attacker_hp_rate_hard[120] = 1.03;
attacker_hp_rate_hard[200] = 1.02;
}
if (attacker_hp_rate_extreme == undefined) {
attacker_hp_rate_extreme = new Array();
attacker_hp_rate_extreme[1] = 1.125;
}
switch (GameStatus.game_diff) {
case "easy" :
attacker_hp_rate = attacker_hp_rate_easy;
attacker_speed = attacker_speed_easy;
break;
case "medium" :
attacker_hp_rate = attacker_hp_rate_medium;
attacker_speed = attacker_speed_medium;
break;
case "hard" :
attacker_hp_rate = attacker_hp_rate_hard;
attacker_speed = attacker_speed_hard;
break;
case "extreme" :
attacker_hp_rate = attacker_hp_rate_extreme;
attacker_speed = attacker_speed_extreme;
break;
default :
attacker_hp_rate = attacker_hp_rate_easy;
attacker_speed = attacker_speed_easy;
}
}
function update() {
var _local3 = GameClock.timeNow();
var _local5 = _local3 - time_last;
time_last = _local3;
if (_local5 == 0) {
return(false);
}
var _local4 = _local3 - wave_last;
var _local6 = Math.ceil((wave_spacing - _local4) / 100) / 10;
_root.Game.waveClockUpdate(_local6);
_root.Game.timeLimitUpdate();
if (no_more_waves) {
clearInterval(interval);
_root.WaveClock.clockSet(0);
return(undefined);
}
if (_local4 > wave_spacing) {
waveSend();
}
pruneWaves();
if ((attackers.length == 0) && (waves.length == 0)) {
if (wave_follow == true) {
waveSend();
}
}
if (kill_target != undefined) {
if (total_kills >= kill_target) {
kill_target_hit = true;
}
}
}
function waveSend() {
if (GameStatus.game_paused) {
return(false);
}
if (GameStatus.game_over) {
return(false);
}
pruneWaves();
if (no_more_waves == true) {
return(false);
}
if (wave_limit_hit == true) {
return(undefined);
}
if (kill_target_hit == true) {
return(undefined);
}
if (wave_limit != undefined) {
if (wave_num >= wave_limit) {
if (wave_limit_notify != true) {
_root.Game.waveLimitHit();
wave_limit_notify = true;
}
return(undefined);
}
}
_waveNext();
if (wave_limit != undefined) {
_root.Game.waveLimitUpdate();
}
wave_last = GameClock.timeNow();
var _local3 = new Object();
_local3.wave_num = wave_num;
_local3.wave_size = wave_size;
_local3.attacker_energy = attacker_energy;
_local3.attacker_value = attacker_value;
_local3.attacker_speed = attacker_speed;
_local3.attacker_spacing = attacker_spacing;
_local3.attacker_types = attacker_types;
_local3.manager = this;
_local3.scale_bump = 1;
var _local5 = wave_size;
if (wave_size_list != undefined) {
_local5 = wave_size_list[wave_size_list_cur];
wave_size_list_cur = (wave_size_list_cur + 1) % wave_size_list.length;
}
_local3.wave_size = _local5;
var _local4 = 10 / _local5;
_local3.scale_bump = _local4;
if (attacker_size_change == false) {
_local3.scale_bump = 1;
}
_local3.attacker_energy = attacker_energy * _local4;
_local3.attacker_value = Math.round(attacker_value * _local4);
if (attacker_speed_list != undefined) {
var _local10 = attacker_speed_list[attacker_speed_list_cur];
_local3.attacker_speed = _local10;
attacker_speed_list_cur = (attacker_speed_list_cur + 1) % attacker_speed_list.length;
}
var _local8 = "WaveManager";
var _local9 = getNextHighestDepth();
var _local7 = _local8 + _local9;
var _local6 = attachMovie(_local8, _local7, _local9, _local3);
waves[_local7] = _local6;
_root.Wave.text = wave_num;
return(_local6);
}
function _waveNext() {
if (no_more_waves == true) {
return(false);
}
wave_num++;
if (attacker_hp_rate[wave_num] != undefined) {
attacker_upgrade_rate = attacker_hp_rate[wave_num];
}
attacker_value = wave_num;
attacker_energy = attacker_energy * attacker_upgrade_rate;
broadcastMessage("nextWave");
return(true);
}
function attackerNew(obj_type, init_obj) {
var _local3 = obj_type;
var _local4 = getNextHighestDepth();
var _local5 = _local3 + _local4;
var _local2 = attachMovie(_local3, _local5, _local4, init_obj);
attackers.push(_local2);
return(_local2);
}
function attackerDead(the_obj) {
}
function attackerKilled(the_obj) {
_root.Game.CashManager.cashWin(the_obj.cash_bounty);
_root.Game.CashManager.cashKerching(the_obj._x, the_obj._y, the_obj.cash_bounty);
total_kills++;
_root.Game.total_kills = total_kills;
_root.Kills.text = total_kills;
_root.Game.attackerKilled();
pruneAttackers(the_obj);
attackerDead(the_obj);
}
function attackerList() {
return(attackers);
}
function attackerCount() {
return(attackers.length);
}
function waveCount() {
return(waves.length);
}
function waveDone(the_wave) {
pruneWaves(the_wave);
}
function attackerFocusTry() {
attackerFocusCancel();
attacker_focus = _root.Game.OverlayManager.overlayNew("AttackerFocus");
}
function attackerFocusCancel() {
if (attacker_focus && (attacker_focus._name)) {
attacker_focus.focusCancel();
}
}
function attackerFocus(the_att) {
if (!(the_att && (the_att._name))) {
return(undefined);
}
var _local1;
for (var _local3 in TurretManager.turrets) {
_local1 = TurretManager.turrets[_local3];
if (_local1.turret_subtype == "weapon") {
_local1.weapon_target = the_att;
}
}
}
function pruneWaves(the_obj) {
waves = pruneDead(waves, the_obj);
}
function pruneAttackers(the_obj) {
attackers = pruneDead(attackers, the_obj);
}
function doPrune() {
pruneWaves();
pruneAttackers();
}
function noMoreWaves() {
no_more_waves = true;
}
var frame_space = 200;
var attacker_upgrade_rate = 1.3;
var attacker_energy = 10;
var attacker_speed = 60;
var attacker_speed_list_cur = 0;
var attacker_value = 0;
var attacker_spacing = 700;
var attacker_types = 9;
var attacker_size_change = true;
var wave_size = 10;
var wave_size_list_cur = 0;
var wave_spacing = 20000;
var wave_follow = false;
var wave_num = 0;
var wave_limit = undefined;
var wave_limit_hit = false;
var wave_limit_notify = false;
var kill_target = undefined;
var kill_target_hit = false;
var kill_target_notify = false;
var total_kills = 0;
var no_more_waves = false;
}
Symbol 1227 MovieClip [__Packages.WaveManager] Frame 0
class WaveManager extends OnslaughtManager
{
var time_last, attacker_last, interval, attacker_point, _parent, manager, removeMovieClip;
function WaveManager () {
super();
time_last = GameClock.timeNow();
attacker_last = 0;
interval = setInterval(this, "update", 200);
attacker_point = new Array();
attacker_point[0] = false;
attacker_point[1] = true;
attacker_point[2] = false;
attacker_point[3] = true;
attacker_point[4] = true;
attacker_point[5] = true;
attacker_point[6] = false;
attacker_point[7] = true;
attacker_point[8] = true;
if (GameStatus.sound_announce_wave == true) {
SoundPlayer.play("NextWave");
}
}
function update() {
var _local4 = GameClock.timeNow();
var _local6 = _local4 - time_last;
time_last = _local4;
if (_local6 == 0) {
return(false);
}
var _local8 = _local4 - attacker_last;
if (_local8 > attacker_spacing) {
attacker_last = _local4;
var _local3 = new Object();
_local3.energy_start = attacker_energy;
_local3.move_speed = attacker_speed;
_local3.cash_bounty = attacker_value;
_local3.waypoint_total = _root.Game.RoadManager.waypoint_total;
_local3.active = true;
_local3.scale_bump = scale_bump;
var _local5 = (wave_num - 1) % attacker_types;
var _local7 = "Attacker" + _local5;
_local3.repoint = attacker_point[_local5];
_parent.attackerNew(_local7, _local3);
wave_sent++;
if (wave_sent >= wave_size) {
manager.waveDone(this);
removeMyself();
}
}
}
function removeMyself() {
removeMovieClip();
}
var attacker_energy = 10;
var attacker_value = 1;
var attacker_speed = 60;
var attacker_spacing = 700;
var attacker_types = 9;
var wave_num = 1;
var wave_size = 10;
var wave_sent = 0;
var scale_bump = 1;
}
Symbol 1228 MovieClip [__Packages.SoundPlayer] Frame 0
class SoundPlayer extends Object
{
static var sound_init, class_size;
function SoundPlayer () {
super();
}
static function play(sound_class, src_object) {
if (sound_init != true) {
soundInit();
}
if ((((GameStatus.sound_load == true) && (GameStatus.sound_on == true)) && (GameStatus.sound_volume > 0)) && (sound_class != undefined)) {
if (class_size == undefined) {
class_size = new Object();
}
if (class_size[sound_class] == undefined) {
classCount(sound_class);
}
var _local2 = 0;
var _local3 = class_size[sound_class];
for (var _local4 in _local3) {
_local2++;
}
if (_local2 == 0) {
return(undefined);
}
var _local9 = Math.floor(Math.random() * _local2);
var _local8 = _local3[_local9];
if (_local8 == undefined) {
return(undefined);
}
chan_cur++;
chan_cur = chan_cur % chan_max;
var _local15 = "chan_" + chan_cur;
var _local5 = new Sound(_root);
_local5.attachSound(_level0.sound_library[_local8].track_file);
if ((src_object && (src_object._name)) && (GameStatus.sound_pan_max > 0)) {
var _local10 = Math.max(1, src_object._x);
var _local12 = _local10 / GameStatus.game_screen_x;
var _local7 = GameStatus.sound_pan_max;
var _local11 = _local7 / 2;
var _local14 = ((_local7 * _local12) - _local11) * 100;
_local5.setPan(_local14);
}
_local5.setVolume(GameStatus.sound_volume);
_local5.start();
}
}
static function classCount(sound_class) {
var _local3;
var _local2;
var _local4 = new Array();
if (_level0.sound_library[sound_class] != undefined) {
_local4.push(sound_class);
}
var _local1 = 1;
while (_local1 <= 99) {
_local3 = _local1.toString();
if (_local1 < 10) {
_local3 = "0" + _local1.toString();
}
_local2 = sound_class + _local3;
if (_level0.sound_library[_local2] != undefined) {
_local4.push(_local2);
}
_local1++;
}
class_size[sound_class] = _local4;
}
static function soundInit() {
var _local2 = new Object();
_local2.Chime01 = "ONS2_chime_02.aif";
_local2.Chime02 = "ONS2_chime_03.aif";
_local2.ClickMin = "ONS2_close_01.aif";
_local2.ClickMax = "ONS2_open_01.aif";
_local2.Click01 = "ONS2_click_06.aif";
_local2.Pause = "pause_03.aif";
_local2.UnPause = "un_pause_03.aif";
_local2.ClickUpgrade01 = "ONS2_click_01.aif";
_local2.UpgradeNo = "ONS2_raspberry_chirp_short.aif";
_local2.ClickButton01 = "ONS2_click_01.aif";
_local2.ClickTab01 = "ONS2_click_01.aif";
_local2.Build = "ONS2_turretmade_inv_4.aif";
_local2.Sell = "weapon_sale_01.aif";
_local2.ClickLeft01 = "ONS2_ratchet_04.aif";
_local2.ClickRight01 = "ONS2_ratchet_04.aif";
_local2.RackPrev01 = "ONS2_ratchet_05.aif";
_local2.RackNext01 = "ONS2_ratchet_05.aif";
_local2.Message01 = "ONS2_raspberry_mid_31.aif";
_local2.Weapon01 = "ONS2_newWeapon_1.aif";
_local2.NextWave01 = "ONS2_nextWave_02.aif";
_local2.UpgradeDamage01 = "ONS2_chime_04.aif";
_local2.UpgradeRange01 = "ONS2_chime_04.aif";
_local2.UpgradeRate01 = "ONS2_chime_04.aif";
_local2.ClickBuild = "cartfall_14.aif";
_local2.TurretSelect = "cartfall_14.aif";
_local2.AttackerDead01 = "ONS2_explode_05shrt_02.aif";
_local2.Cannon01 = "ONS2_cannon_2shrt.aif";
_local2.Cannon02 = "ONS2_cannon_3.aif";
_local2.Laser01 = "ONS2_laser_09_var.aif";
_local2.Rocket01 = "ONS2_rocket_09.aif";
_local2.Rocket02 = "ONS2_rocket_05.aif";
_local2.Rocket03 = "ONS2_rocket_03.aif";
_local2.Tazer01 = "ONS2_taser_30.aif";
_local2.Sniper01 = "sniper_03.aif";
_local2.BlackHole01 = "black_hole_01.aif";
_local2.BlastBFG = "BFG_01.aif";
_local2.BlastSmall = "BlastSmall_01.aif";
_local2.BlastMedium = "BlastMed_01.aif";
_local2.BlastLarge = "BlowUp_02.aif";
_local2.Combo = "combo_16.aif";
_local2.FreakoutStart01 = "freakout_up_20.aif";
_local2.FreakoutEnd = "freakout_dn_20_shrt.aif";
_local2.FreakoutWarn = "FreakWarning_01.aif";
_local2.FusionLow = "Fusion_Low_01.aif";
_local2.FusionMed = "Fusion_Med_01.aif";
_local2.FusionHigh = "Fusion_Hi_01.aif";
_local2.FusionMax = "Fusion_Max_01.aif";
_local2.BaseHit01 = "ONS2_scream_03.aif";
_local2.BaseWarn3 = "vox_3_lives_remaining.aif";
_local2.BaseWarn2 = "vox_2_lives_remaining.aif";
_local2.BaseWarn1 = "vox_1_lives_remaining.aif";
_local2.BaseDead01 = "ONS2_basehit_02.aif";
var _local3;
_level0.sound_library = new Object();
for (var _local4 in _local2) {
_local3 = _local2[_local4];
_level0.sound_library[_local4] = new Sound(_root);
_level0.sound_library[_local4].attachSound(_local3);
_level0.sound_library[_local4].track_file = _local3;
}
sound_init = true;
}
static var chan_cur = 0;
static var chan_max = 16;
}
Symbol 1229 MovieClip [__Packages.turrets.Turret] Frame 0
class turrets.Turret extends OnslaughtObject
{
var weapon_x, Weapon, weapon_y, interval, stop, turret_num, tweens, join_to, filterAddShadow, lineStyle, trigForwardAtAngle, moveTo, lineTo, sound_fire, weapon_target, onFire, trigDegreesTo, target_bear_to, modifyNotifyGone, fusionNotifyGone, onTurretGone, modifyNotifyNew, fusionNotifyNew, onTurretNew, modifyMove, onMove, target_modes, _x, _y, target_angle_available, target_angle_mode, target_angle_spread, target_angle_deg, upgrade_damage_amount, upgrade_range_amount, upgrade_rate_amount, upgrade_damage_cost, upgrade_range_cost, upgrade_rate_cost, IndicateDamage, IndicateRange, IndicateRate, _parent, onUpgrade, freak_next, getNextHighestDepth, attachMovie, onModifyUpdate, combo_recharge, combo_next, arrayPick, combo_sign, trigDistanceTo, combo_range_fx_out, combo_range_notify, combo_range_fx_in, effectNew, link_in_range, LinkOfferedFlag, LinkWantedFlag;
function Turret () {
super();
weapon_x = Weapon._x;
weapon_y = Weapon._y;
modifyUpdate();
if (Weapon.cacheAsBimap != undefined) {
Weapon.cacheAsBitmap = true;
}
if (active) {
interval = setInterval(this, "update", frame_space);
} else {
stop();
Weapon.stop();
}
display_name = (display_name + "") + turret_num;
tweens = new Array();
combo_mines = new Array();
join_to = new Array();
filterAddShadow();
}
function update() {
if (active == false) {
clearInterval(interval);
}
}
function deactivate() {
active = false;
clearInterval(interval);
}
function reactivate() {
active = true;
interval = setInterval(this, "update", frame_space);
}
function turretRangeSplash() {
var _local3;
var _local4;
lineStyle(2, 14496563, 100);
_local3 = trigForwardAtAngle(0, weapon_range);
moveTo(_local3.x, _local3.y);
var _local2 = 0;
while (_local2 <= 360) {
_local3 = trigForwardAtAngle(_local2, weapon_range);
lineTo(_local3.x, _local3.y);
_local2++;
}
}
function turretCanFire() {
var _local2 = GameClock.timeNow() - weapon_fired;
return(((_local2 > weapon_rate_msec) ? true : false));
}
function turretFire(the_target, the_damage, no_sound) {
Weapon.fire();
weapon_fired = GameClock.timeNow();
weapon_fire_count++;
_root.Game.weaponFired();
var _local4 = new Object();
_local4.x = Weapon.FirePoint._x;
_local4.y = Weapon.FirePoint._y;
Weapon.localToGlobal(_local4);
var _local5 = weapon_poison_effective;
var _local3 = new Object();
_local3._x = _local4.x;
_local3._y = _local4.y;
_local3._rotation = Weapon._rotation;
_local3.bullet_target = the_target;
_local3.bullet_damage = the_damage;
_local3.bullet_poison = _local5;
_local3.turret = this;
_local3.bullet_poison = weapon_poison_effective;
_local3.holding_capable = holding_round;
_local3.holding_initially = holding_round;
if (holding_pattern) {
_local3.holding_capable = holding_pattern;
}
var _local6 = _root.Game.bulletNew(weapon_type, _local3);
if (no_sound != true) {
SoundPlayer.play(sound_fire, this);
}
if (target_reacquire == true) {
weapon_target = undefined;
}
onFire();
return(_local6);
}
function turretBearTowards(the_target, time_diff) {
var _local4 = trigDegreesTo(this, the_target);
var _local3 = (time_diff / 1000) * weapon_rotate;
var _local2 = (_local4 + 360) - (Weapon._rotation + 360);
if (Math.abs(_local2) < 1) {
Weapon._rotation = _local4;
if (target_bear_ignore == true) {
target_bear_to = undefined;
}
return(true);
}
if (Math.abs(_local2) < Math.abs(_local3)) {
Weapon._rotation = _local4;
if (target_bear_ignore == true) {
target_bear_to = undefined;
}
return(true);
}
var _local5 = (_local2 + 360) % 360;
var _local6 = (360 - _local2) % 360;
if (_local6 < _local5) {
Weapon._rotation = Weapon._rotation - _local3;
} else {
Weapon._rotation = Weapon._rotation + _local3;
}
return(false);
}
function turretBearTarget(the_target, then_ignore) {
if (the_target && (the_target._name)) {
target_bear_to = the_target;
target_bear_ignore = then_ignore;
return(true);
}
target_bear_to = undefined;
target_bear_ignore = true;
return(false);
}
function notifyGone(the_turret) {
linkNotifyGone(the_turret);
modifyNotifyGone(the_turret);
comboNotifyGone(the_turret);
fusionNotifyGone(the_turret);
onTurretGone(the_turret);
_root.Game.TurretManager.broadcastMessage("onTurretStatsChange");
}
function notifyNew(the_turret) {
linkNotifyNew(the_turret);
modifyNotifyNew(the_turret);
comboNotifyNew(the_turret);
fusionNotifyNew(the_turret);
onTurretNew(the_turret);
_root.Game.TurretManager.broadcastMessage("onTurretStatsChange");
}
function notifyMove(the_turret) {
notifyGone(the_turret);
notifyNew(the_turret);
}
function turretMoved() {
modifyMove();
comboGetInRange();
combo_mines_set = false;
combo_holes_set = false;
target_box_built = false;
onMove();
}
function onPress() {
if ((active == true) && (_root.Game.game_demo != true)) {
_root.Game.TurretManager.turretSelect(this);
}
}
function turretKill() {
weapon_kill_count++;
}
function modLoad() {
GameManager.mod.modTurret(this, "Turret" + turret_type);
}
function turretTargetModeCycle() {
target_type_num = (target_type_num + 1) % target_modes.length;
var _local2 = target_modes[target_type_num];
target_type = _local2.mode;
turretTargetModeShow(_local2.title);
}
function turretTargetModeLockToggle() {
var _local2;
if (target_reacquire == true) {
target_reacquire = false;
_local2 = "Lock On";
} else {
target_reacquire = true;
_local2 = "Lock Off";
}
turretTargetModeShow(_local2);
}
function turretTargetModeShow(the_title) {
var _local3 = new Object();
_local3.mode = the_title;
_local3._x = _x;
_local3._y = _y;
_local3._alpha = 100;
var _local4 = _root.Game.overlayNew("TargetMode", _local3);
_root.Game.TurretManager.broadcastMessage("onTurretStatsChange");
SoundPlayer.play("ClickButton", this);
}
function turretTargetDirectional() {
if (target_angle_available == false) {
target_angle_mode = OnslaughtObject.TA_MODE_NONE;
return(undefined);
}
if (target_angle_mode == OnslaughtObject.TA_MODE_NONE) {
target_angle_spread = OnslaughtObject.TA_SPREAD_WIDE;
turretTargetDirectionalSet();
} else if (target_angle_mode == OnslaughtObject.TA_MODE_ENGAGED) {
if (target_angle_spread == OnslaughtObject.TA_SPREAD_WIDE) {
target_angle_spread = OnslaughtObject.TA_SPREAD_MEDIUM;
turretTargetDirectionalSet();
} else if (target_angle_spread == OnslaughtObject.TA_SPREAD_MEDIUM) {
target_angle_spread = OnslaughtObject.TA_SPREAD_NARROW;
turretTargetDirectionalSet();
} else {
target_angle_mode = OnslaughtObject.TA_MODE_NONE;
}
}
}
function turretTargetDirectionalSet() {
if (target_angle_available == false) {
target_angle_mode = OnslaughtObject.TA_MODE_NONE;
return(undefined);
}
target_angle_mode = OnslaughtObject.TA_MODE_ENGAGED;
var _local3 = new MovieClip();
_local3._x = _root._xmouse;
_local3._y = _root._ymouse;
var _local4 = trigDegreesTo(this, _local3);
target_angle_deg = (_local4 + 720) % 360;
}
function upgradeGetAmount(the_type) {
var _local2;
var _local4;
if (the_type == "damage") {
_local2 = upgrade_damage_amount;
_local4 = upgrade_damage_level;
} else if (the_type == "range") {
_local2 = upgrade_range_amount;
_local4 = upgrade_range_level;
} else if (the_type == "rate") {
_local2 = upgrade_rate_amount;
_local4 = upgrade_rate_level;
} else {
return(false);
}
var _local3 = 0;
for (var _local5 in _local2) {
_local3++;
}
if (_local4 >= _local3) {
return(false);
}
var _local6 = _local2[_local4];
return(_local6);
}
function upgradeGetCost(the_type) {
var _local2;
var _local4;
if (the_type == "damage") {
_local2 = upgrade_damage_cost;
_local4 = upgrade_damage_level;
} else if (the_type == "range") {
_local2 = upgrade_range_cost;
_local4 = upgrade_range_level;
} else if (the_type == "rate") {
_local2 = upgrade_rate_cost;
_local4 = upgrade_rate_level;
} else {
return(false);
}
var _local3 = 0;
for (var _local5 in _local2) {
_local3++;
}
if (_local4 >= _local3) {
return(false);
}
var _local6 = _local2[_local4];
return(_local6);
}
function upgradeGetMax(the_type) {
var _local2;
if (the_type == "damage") {
_local2 = upgrade_damage_amount;
} else if (the_type == "range") {
_local2 = upgrade_range_amount;
} else if (the_type == "rate") {
_local2 = upgrade_rate_amount;
} else {
return(false);
}
var _local3 = 0;
for (var _local4 in _local2) {
_local3++;
}
var _local7 = _local3 - 1;
var _local5 = _local2[_local7];
return(_local5);
}
function upgradeAsPercent(the_type) {
var _local2;
var _local5;
if (the_type == "damage") {
_local2 = upgrade_damage_amount;
_local5 = upgrade_damage_level;
} else if (the_type == "range") {
_local2 = upgrade_range_amount;
_local5 = upgrade_range_level;
} else if (the_type == "rate") {
_local2 = upgrade_rate_amount;
_local5 = upgrade_rate_level;
} else {
return(false);
}
var _local3 = 0;
for (var _local4 in _local2) {
_local3++;
}
var _local6 = Math.floor((_local5 / _local3) * 100);
return(_local6);
}
function upgradeDamage(opts) {
if (GameStatus.game_over) {
return(false);
}
if (GameStatus.game_paused) {
return(false);
}
var _local3 = upgradeGetAmount("damage");
var _local4 = upgradeGetCost("damage");
if ((_local3 != false) && (_root.Game.cashSpend(_local4))) {
weapon_damage = _local3;
upgrade_damage_level++;
cash_value = cash_value + _local4;
if (opts.no_sound != true) {
SoundPlayer.play("UpgradeDamage", this);
}
upgradeDone();
return(true);
}
if (opts.no_sound != true) {
SoundPlayer.play("UpgradeNo", this);
}
return(false);
}
function upgradeRange(opts) {
if (GameStatus.game_over) {
return(false);
}
if (GameStatus.game_paused) {
return(false);
}
var _local3 = upgradeGetAmount("range");
var _local4 = upgradeGetCost("range");
if ((_local3 != false) && (_root.Game.cashSpend(_local4))) {
weapon_range = _local3;
upgrade_range_level++;
cash_value = cash_value + _local4;
if (opts.no_sound != true) {
SoundPlayer.play("UpgradeRange", this);
}
upgradeDone();
return(true);
}
if (opts.no_sound != true) {
SoundPlayer.play("UpgradeNo", this);
}
return(false);
}
function upgradeRate(opts) {
if (GameStatus.game_over) {
return(false);
}
if (GameStatus.game_paused) {
return(false);
}
var _local3 = upgradeGetAmount("rate");
var _local4 = upgradeGetCost("rate");
if ((_local3 != false) && (_root.Game.cashSpend(_local4))) {
weapon_rate = _local3;
upgrade_rate_level++;
cash_value = cash_value + _local4;
if (opts.no_sound != true) {
SoundPlayer.play("UpgradeRate", this);
}
upgradeDone();
return(true);
}
if (opts.no_sound != true) {
SoundPlayer.play("UpgradeNo", this);
}
return(false);
}
function upgradeDamageMax() {
var _local2 = new Object();
_local2.no_sound = true;
while (upgradeDamage(_local2)) {
}
SoundPlayer.play("UpgradeDamage", this);
return(true);
}
function upgradeRangeMax() {
var _local2 = new Object();
_local2.no_sound = true;
while (upgradeRange(_local2)) {
}
SoundPlayer.play("UpgradeRange", this);
return(true);
}
function upgradeRateMax() {
var _local2 = new Object();
_local2.no_sound = true;
while (upgradeRate(_local2)) {
}
SoundPlayer.play("UpgradeRate", this);
return(true);
}
function upgradeDone() {
var _local5 = upgradeAsPercent("damage");
var _local4 = upgradeAsPercent("range");
var _local3 = upgradeAsPercent("rate");
IndicateDamage.setPercentage(_local5);
IndicateRange.setPercentage(_local4);
IndicateRate.setPercentage(_local3);
comboActivate();
modifyUpdate();
_parent.turretRangeUpdate();
target_box_built = false;
onUpgrade();
freakoutActivate();
_root.Game.TurretManager.broadcastMessage("onTurretStatsChange");
return(true);
}
function freakoutNow() {
if (freak_available) {
freak_next = freakoutNext();
}
var _local3 = "FreakoutEngine";
var _local4 = getNextHighestDepth();
var _local5 = _local3 + _local4;
var _local2 = new Object();
_local2.freak_target = this;
_local2._x = 0;
_local2._y = 0;
_local2.freak_length = freak_length;
_local2.freak_damage_mult = freak_damage_mult;
_local2.freak_range_mult = freak_range_mult;
_local2.freak_rate_mult = freak_rate_mult;
var _local6 = attachMovie(_local3, _local5, _local4, _local2);
}
function freakoutNext() {
var _local4 = GameClock.timeNow();
var _local2 = freak_space / 2;
var _local6 = Math.random() * _local2;
var _local3 = (upgrade_rate_level * freak_rate_mult) * 1000;
var _local5 = ((_local4 + _local2) + _local6) - _local3;
return(_local5);
}
function freakoutActivate() {
if (freak_capable == true) {
if (((upgrade_damage_level >= freak_level_damage) && (upgrade_range_level >= freak_level_range)) && (upgrade_rate_level >= freak_level_rate)) {
freak_available = true;
if (freak_next == false) {
freak_next = GameClock.timeNow() + 60000;
}
}
}
}
function modifyGain(the_type, the_amount) {
if (modify_possible == false) {
return(false);
}
var _local2 = the_amount;
if (the_type == "damage_added") {
modify_damage_added = modify_damage_added + _local2;
} else if (the_type == "damage_mult") {
modify_damage_mult = modify_damage_mult + _local2;
} else if (the_type == "range_added") {
modify_range_added = modify_range_added + _local2;
} else if (the_type == "range_mult") {
modify_range_mult = modify_range_mult + _local2;
} else if (the_type == "rate_added") {
modify_rate_added = modify_rate_added + _local2;
} else if (the_type == "rate_mult") {
modify_rate_mult = modify_rate_mult + _local2;
}
modifyUpdate();
}
function modifyUpdate() {
weapon_damage_effective = modifyDamage(weapon_damage);
weapon_range_effective = modifyRange(weapon_range);
weapon_rate_effective = modifyRate(weapon_rate);
weapon_poison_effective = modifyPoison(weapon_poison);
weapon_rate_msec = 1000 / (weapon_rate_effective / 60);
combo_rate_msec = 1000 / (combo_rate / 60);
onModifyUpdate();
target_box_built = false;
return(true);
}
function modifyDumpStats() {
trace((this + ": added damage ") + modify_damage_added);
trace((this + ": added range ") + modify_range_added);
trace((this + ": added rate ") + modify_rate_added);
trace((this + ": mult damage ") + modify_damage_mult);
trace((this + ": mult range ") + modify_range_mult);
trace((this + ": mult rate ") + modify_rate_mult);
trace((this + ": weapon damage ") + weapon_damage);
trace((this + ": weapon range ") + weapon_range);
trace((this + ": weapon rate ") + weapon_rate);
trace((this + ": weapon rate msec ") + weapon_rate_msec);
trace((this + ": combo rate msec ") + combo_rate_msec);
trace((this + ": effective damage ") + weapon_damage_effective);
trace((this + ": effective range ") + weapon_range_effective);
trace((this + ": effective rate ") + weapon_rate_effective);
}
function modifyLose(the_type, the_amount) {
modifyGain(the_type, -the_amount);
}
function modifyDamage(the_amount) {
return(modifyStat(modify_damage_added, modify_damage_mult, the_amount));
}
function modifyRange(the_amount) {
return(modifyStat(modify_range_added, modify_range_mult, the_amount));
}
function modifyRate(the_amount) {
return(modifyStat(modify_rate_added, modify_rate_mult, the_amount));
}
function modifyPoison(the_amount) {
return(modifyStat(modify_poison_added, modify_poison_mult, the_amount));
}
function modifyStat(the_added, the_mult, the_amount) {
the_mult = Math.max(the_mult, 0.2);
var _local1 = (the_amount + the_added) * the_mult;
_local1 = Math.max(0, _local1);
return(_local1);
}
function comboFireClusterBomb(opts) {
var _local4 = Combos.data("clusterbomb");
combo_recharge = _local4.recharge;
var _local7 = "ClusterBomb";
var _local3 = new Object();
_local3.bullet_damage = modifyDamage(_local4.bullet_damage);
_local3.cluster = true;
_local3.cluster_qty = _local4.cluster_qty;
_local3.cluster_holding = _local4.cluster_holding;
_local3.cluster_damage = modifyDamage(_local4.cluster_damage);
_local3.blast = true;
_local3.blast_type = "BlastSmall";
_local3.blast_damage = modifyDamage(_local4.blast_damage);
_local3.sound_blast = "BlastSmall";
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
comboTake(comboPickOne(combo_red));
}
_root.Game.weaponComboFired();
var _local5 = comboFireBullet(_local7, _local3);
return(_local5);
}
function comboFireSparkyClusterBomb(opts) {
var _local4 = Combos.data("sparky_clusterbomb");
combo_recharge = _local4.recharge;
var _local7 = "ClusterBomb";
var _local3 = new Object();
_local3.bullet_damage = modifyDamage(_local4.bullet_damage);
_local3.cluster = true;
_local3.cluster_qty = _local4.cluster_qty;
_local3.cluster_damage = modifyDamage(_local4.cluster_damage);
_local3.cluster_type = "ClusterSpark";
_local3.blast = true;
_local3.blast_type = "BlastSmall";
_local3.blast_damage = modifyDamage(_local4.blast_damage);
_local3.sound_blast = "BlastSmall";
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
comboTake(comboPickOne(combo_red));
comboTake(comboPickOne(combo_yellow));
}
_root.Game.weaponComboFired();
var _local5 = comboFireBullet(_local7, _local3);
return(_local5);
}
function comboFireBigClusterBomb(opts) {
var _local4 = Combos.data("big_clusterbomb");
combo_recharge = _local4.recharge;
var _local7 = "ClusterBomb";
var _local3 = new Object();
_local3.bullet_damage = modifyDamage(_local4.bullet_damage);
_local3.cluster = true;
_local3.cluster_qty = _local4.cluster_qty;
_local3.cluster_holding = _local4.cluster_holding;
_local3.cluster_damage = modifyDamage(_local4.cluster_damage);
_local3.blast = true;
_local3.blast_type = "BlastLarge";
_local3.blast_damage = modifyDamage(_local4.blast_damage);
_local3.sound_blast = "BlastMedium";
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
comboTake(comboPickTwo(combo_red));
}
_root.Game.weaponComboFired();
var _local5 = comboFireBullet(_local7, _local3);
return(_local5);
}
function comboFireBigSparkyClusterBomb(opts) {
var _local4 = Combos.data("big_sparky_clusterbomb");
combo_recharge = _local4.recharge;
var _local7 = "ClusterBomb";
var _local3 = new Object();
_local3.bullet_damage = modifyDamage(_local4.bullet_damage);
_local3.cluster = true;
_local3.cluster_qty = _local4.cluster_qty;
_local3.cluster_holding = _local4.cluster_holding;
_local3.cluster_damage = modifyDamage(_local4.cluster_damage);
_local3.cluster_type = "ClusterSpark";
_local3.blast = true;
_local3.blast_type = "BlastLarge";
_local3.blast_damage = modifyDamage(_local4.blast_damage);
_local3.sound_blast = "BlastMedium";
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
comboTake(comboPickTwo(combo_red));
comboTake(comboPickOne(combo_yellow));
}
_root.Game.weaponComboFired();
var _local5 = comboFireBullet(_local7, _local3);
return(_local5);
}
function comboFireLaserClusterBomb(opts) {
var _local4 = Combos.data("laser_clusterbomb");
combo_recharge = _local4.recharge;
var _local6 = comboTakeLink(combo_green, opts);
var _local8 = "ClusterBomb";
var _local3 = new Object();
_local3.bullet_damage = modifyDamage(_local4.bullet_damage);
_local3.cluster = true;
_local3.cluster_qty = _local4.cluster_qty;
_local3.cluster_laser = true;
_local3.cluster_laser_damage = modifyDamage(_local6 + _local4.cluster_laser_damage);
_local3.cluster_holding = _local4.cluster_holding;
_local3.cluster_damage = modifyDamage(_local4.cluster_damage);
_local3.blast = true;
_local3.blast_type = "BlastMedium";
_local3.blast_damage = modifyDamage(_local4.blast_damage);
_local3.sound_blast = "BlastMedium";
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
comboTake(comboPickOne(combo_red));
}
_root.Game.weaponComboFired();
var _local7 = comboFireBullet(_local8, _local3);
return(_local7);
}
function comboFireBigLaserClusterBomb(opts) {
var _local4 = Combos.data("big_laser_clusterbomb");
combo_recharge = _local4.recharge;
var _local6 = comboTakeLink(combo_green, opts);
var _local8 = "ClusterBomb";
var _local3 = new Object();
_local3.bullet_damage = modifyDamage(_local4.bullet_damage);
_local3.cluster = true;
_local3.cluster_qty = _local4.cluster_qty;
_local3.cluster_laser = true;
_local3.cluster_laser_damage = modifyDamage(_local6 + _local4.cluster_laser_damage);
_local3.cluster_holding = _local4.cluster_holding;
_local3.cluster_damage = modifyDamage(_local4.cluster_damage);
_local3.blast = true;
_local3.blast_type = "BlastLarge";
_local3.blast_damage = modifyDamage(_local4.blast_damage);
_local3.sound_blast = "BlastMedium";
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
comboTake(comboPickTwo(combo_red));
}
_root.Game.weaponComboFired();
var _local7 = comboFireBullet(_local8, _local3);
return(_local7);
}
function comboFireLandmine(opts) {
var _local4 = Combos.data("landmine");
combo_recharge = _local4.recharge;
if (!combo_mines_set) {
comboFindMinepoints();
}
var _local8 = comboPickOne(combo_minepoints);
var _local6 = _local8[0];
var _local9 = "Landmine";
var _local3 = new Object();
_local3._x = _x;
_local3._y = _y;
_local3.blast = true;
_local3.cluster = false;
_local3.move_speed = 220;
_local3.bullet_damage = modifyDamage(_local4.bullet_damage);
_local3.mine_location = _local6;
_local3.blast = true;
_local3.blast_type = "BlastSmall";
_local3.blast_damage = modifyDamage(_local4.blast_damage);
_local3.sound_blast = "BlastSmall";
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
comboTake(comboPickOne(combo_blue));
}
_root.Game.weaponComboFired();
var _local5 = comboFireBullet(_local9, _local3);
combo_mines.push(_local5);
return(_local5);
}
function comboFireBigLandmine(opts) {
var _local4 = Combos.data("big_landmine");
combo_recharge = _local4.recharge;
if (!combo_mines_set) {
comboFindMinepoints();
}
var _local8 = comboPickOne(combo_minepoints);
var _local6 = _local8[0];
var _local9 = "LandmineBig";
var _local3 = new Object();
_local3._x = _x;
_local3._y = _y;
_local3.move_speed = 220;
_local3.bullet_damage = modifyDamage(_local4.bullet_damage);
_local3.mine_location = _local6;
_local3.blast = true;
_local3.blast_type = "BlastLarge";
_local3.blast_damage = modifyDamage(_local4.blast_damage);
_local3.cluster = false;
_local3.sound_blast = "BlastMedium";
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
comboTake(comboPickOne(combo_red));
comboTake(comboPickOne(combo_blue));
}
_root.Game.weaponComboFired();
var _local5 = comboFireBullet(_local9, _local3);
combo_mines.push(_local5);
return(_local5);
}
function comboFireSparkyLandmine(opts) {
var _local4 = Combos.data("sparky_landmine");
combo_recharge = _local4.recharge;
if (!combo_mines_set) {
comboFindMinepoints();
}
var _local8 = comboPickOne(combo_minepoints);
var _local6 = _local8[0];
var _local9 = "LandmineSparky";
var _local3 = new Object();
_local3._x = _x;
_local3._y = _y;
_local3.move_speed = 220;
_local3.bullet_damage = modifyDamage(_local4.bullet_damage);
_local3.mine_location = _local6;
_local3.blast = true;
_local3.blast_type = "BlastSmall";
_local3.blast_damage = modifyDamage(_local4.blast_damage);
_local3.cluster = true;
_local3.cluster_qty = _local4.cluster_qty;
_local3.cluster_type = "ClusterSpark";
_local3.sound_blast = "BlastMedium";
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
comboTake(comboPickOne(combo_red));
comboTake(comboPickOne(combo_blue));
comboTake(comboPickOne(combo_yellow));
}
_root.Game.weaponComboFired();
var _local5 = comboFireBullet(_local9, _local3);
combo_mines.push(_local5);
return(_local5);
}
function comboFireBigClusterLandmine(opts) {
var _local4 = Combos.data("big_cluster_landmine");
combo_recharge = _local4.recharge;
if (!combo_mines_set) {
comboFindMinepoints();
}
var _local8 = comboPickOne(combo_minepoints);
var _local6 = _local8[0];
var _local9 = "LandmineBigCluster";
var _local3 = new Object();
_local3._x = _x;
_local3._y = _y;
_local3.move_speed = 220;
_local3.bullet_damage = modifyDamage(_local4.bullet_damage);
_local3.mine_location = _local6;
_local3.blast = true;
_local3.blast_type = "BlastLarge";
_local3.blast_damage = modifyDamage(_local4.blast_damage);
_local3.cluster = true;
_local3.cluster_laser = false;
_local3.cluster_qty = _local4.cluster_qty;
_local3.cluster_damage = modifyDamage(_local4.cluster_damage);
_local3.cluster_holding = _local4.cluster_holding;
_local3.sound_blast = "BlastMedium";
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
comboTake(comboPickTwo(combo_red));
comboTake(comboPickOne(combo_blue));
}
_root.Game.weaponComboFired();
var _local5 = comboFireBullet(_local9, _local3);
combo_mines.push(_local5);
return(_local5);
}
function comboFireBigLaserClusterLandmine(opts) {
var _local4 = Combos.data("big_laser_cluster_landmine");
combo_recharge = _local4.recharge;
if (!combo_mines_set) {
comboFindMinepoints();
}
var _local8 = comboPickOne(combo_minepoints);
var _local6 = _local8[0];
var _local9 = "LandmineBigClusterLaser";
var _local3 = new Object();
_local3._x = _x;
_local3._y = _y;
_local3.move_speed = 220;
_local3.bullet_damage = modifyDamage(_local4.bullet_damage);
_local3.mine_location = _local6;
_local3.blast = true;
_local3.blast_type = "BlastLarge";
_local3.blast_damage = modifyDamage(_local4.blast_damage);
_local3.cluster = true;
_local3.cluster_laser = true;
_local3.cluster_qty = _local4.cluster_qty;
_local3.cluster_damage = modifyDamage(_local4.cluster_damage);
_local3.cluster_laser_damage = modifyDamage(_local4.cluster_laser_damage);
_local3.cluster_holding = _local4.cluster_holding;
_local3.sound_blast = "BlastMedium";
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
comboTake(comboPickTwo(combo_red));
comboTake(comboPickOne(combo_blue));
comboTake(comboPickOne(combo_green));
}
_root.Game.weaponComboFired();
var _local5 = comboFireBullet(_local9, _local3);
combo_mines.push(_local5);
return(_local5);
}
function comboFireBFG(opts) {
var _local4 = Combos.data("bfg");
combo_recharge = _local4.recharge;
var _local5 = linkFire(this, 0);
var _local3 = new Object();
_local3.bullet_damage = modifyDamage(_local4.bullet_damage + _local5);
_local3.move_speed = _local4.move_speed;
_local3.target_reacquire = true;
_local3.offscreen_remove = true;
_local3.offscreen_lock = true;
_local3.no_rotate = true;
_local3.holding_capable = true;
_local3.blast = true;
_local3.blast_type = "BlastBFG";
_local3.blast_damage = modifyDamage(_local4.blast_damage + _local5);
_local3.laser_capable = true;
_local3.laser_damage = modifyDamage(_local4.laser_damage + _local5);
_local3.laser_range = _local4.laser_range;
_local3.laser_rate = _local4.laser_rate;
_local3.impact_range = 10;
_local3.sound_blast = "BlastBFG";
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
comboTake(comboPickOne(combo_red));
comboTake(comboPickOne(combo_blue));
}
_root.Game.weaponComboFired();
var _local6 = comboFireBullet("BFG", _local3);
return(_local6);
}
function comboFireTazerBFG(opts) {
var _local4 = Combos.data("tazer_bfg");
combo_recharge = _local4.recharge;
var _local3 = new Object();
_local3.bullet_damage = modifyDamage(_local4.bullet_damage);
_local3.move_speed = _local4.move_speed;
_local3.target_reacquire = true;
_local3.offscreen_remove = true;
_local3.offscreen_lock = true;
_local3.no_rotate = true;
_local3.holding_capable = true;
_local3.blast = true;
_local3.blast_type = "BlastBFG";
_local3.blast_damage = modifyDamage(_local4.blast_damage);
_local3.laser_capable = true;
_local3.laser_damage = modifyDamage(_local4.laser_damage);
_local3.laser_range = _local4.laser_range;
_local3.laser_rate = _local4.laser_rate;
_local3.laser_type = "Spark";
var _local5 = int(weapon_poison_effective);
if (_local5 <= 0) {
_local5 = 20;
}
_local3.bullet_poison = _local5;
_local3.impact_range = 10;
_local3.sound_blast = "BlastBFG";
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
comboTake(comboPickOne(combo_red));
comboTake(comboPickOne(combo_blue));
}
_root.Game.weaponComboFired();
var _local6 = comboFireBullet("BFGTazer", _local3);
return(_local6);
}
function comboFireRocketBFG(opts) {
var _local4 = Combos.data("rocket_bfg");
combo_recharge = _local4.recharge;
var _local5 = linkFire(this, 0);
var _local3 = new Object();
_local3.bullet_damage = modifyDamage(_local4.bullet_damage + _local5);
_local3.move_speed = _local4.move_speed;
_local3.target_reacquire = true;
_local3.offscreen_remove = true;
_local3.offscreen_lock = true;
_local3.no_rotate = true;
_local3.holding_capable = true;
_local3.blast = true;
_local3.blast_type = "BlastBFG";
_local3.blast_damage = modifyDamage(_local4.blast_damage + _local5);
_local3.laser_capable = true;
_local3.laser_damage = modifyDamage(_local4.laser_damage + _local5);
_local3.laser_range = _local4.laser_range;
_local3.laser_rate = _local4.laser_rate;
_local3.rocket_capable = true;
_local3.rocket_damage = modifyDamage(_local4.rocket_damage + _local5);
_local3.impact_range = 10;
_local3.sound_blast = "BlastBFG";
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
comboTake(comboPickOne(combo_red));
comboTake(comboPickOne(combo_blue));
}
_root.Game.weaponComboFired();
var _local7 = comboFireBullet("BFG", _local3);
return(true);
}
function comboFireLaserRocket(opts) {
var _local4 = Combos.data("laser_rocket");
combo_recharge = _local4.recharge;
var _local5 = comboTakeLink(combo_green, opts);
var _local3 = new Object();
_local3.bullet_damage = modifyDamage(_local5 + _local4.bullet_damage);
_local3.holding_capable = true;
_local3.laser_capable = true;
_local3.laser_damage = modifyDamage(_local5 + _local4.laser_damage);
_local3.laser_range = _local4.laser_range;
_local3.move_speed = _local4.move_speed;
_local3.laserblast = true;
_local3.laserblast_damage = _local4.laserblast_damage;
_local3.laserblast_qty = _local4.laserblast_qty;
_local3.laserblast_range = _local4.laserblast_range;
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
}
_root.Game.weaponComboFired();
var _local7 = comboFireBullet("RocketLaser", _local3);
return(_local7);
}
function comboFireTazerRocket(opts) {
var _local4 = Combos.data("tazer_rocket");
combo_recharge = _local4.recharge;
var _local3 = new Object();
_local3.bullet_damage = modifyDamage(_local4.bullet_damage);
_local3.holding_capable = true;
_local3.laser_capable = true;
_local3.laser_damage = modifyDamage(_local4.laser_damage);
_local3.laser_range = _local4.laser_range;
_local3.move_speed = _local4.move_speed;
_local3.laser_type = "Spark";
_local3.bullet_poison = comboTakePoison(combo_yellow, opts);
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
}
_root.Game.weaponComboFired();
var _local6 = comboFireBullet("RocketTazer", _local3);
return(_local6);
}
function comboFirePoisonGas(opts) {
var _local4 = Combos.data("poison_rocket");
combo_recharge = _local4.recharge;
var _local3 = new Object();
_local3.move_speed = _local4.move_speed;
_local3.holding_capable = true;
_local3.bullet_damage = modifyDamage(_local4.bullet_damage);
_local3.weapon_damage = modifyDamage(_local4.bullet_damage);
_local3.blast = true;
_local3.blast_damage = _local4.blast_damage;
_local3.blast_type = "BlastPoison";
_local3.blast_poison = 2;
_local3.sound_blast = "BlastMedium";
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
comboTake(comboPickOne(combo_green));
comboTake(comboPickOne(combo_blue));
}
_root.Game.weaponComboFired();
var _local5 = comboFireBullet("RocketPoison", _local3);
return(_local5);
}
function comboFireNuke(opts) {
var _local4 = Combos.data("nuke");
combo_recharge = _local4.recharge;
var _local3 = new Object();
_local3.move_speed = _local4.move_speed;
_local3.holding_capable = true;
_local3.bullet_damage = modifyDamage(_local4.bullet_damage);
_local3.weapon_damage = modifyDamage(_local4.bullet_damage);
_local3.blast = true;
_local3.blast_damage = modifyDamage(_local4.blast_damage);
_local3.blast_type = "BlastHuge";
_local3.sound_blast = "BlastLarge";
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
comboTake(comboPickTwo(combo_blue));
}
_root.Game.weaponComboFired();
var _local5 = comboFireBullet("RocketNuke", _local3);
return(_local5);
}
function comboFireBlackHole(opts) {
var _local4 = Combos.data("blackhole");
combo_recharge = _local4.recharge;
if (!combo_holes_set) {
comboFindBlackHolePoints();
}
var _local8 = comboPickOne(combo_holepoints);
var _local6 = _local8[0];
var _local3 = new Object();
_local3.hole_location = _local6;
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
_local3.hole_duration = _local4.blackhole_duration;
_local3.weapon_range = _local4.blackhole_radius;
if (opts.combo_silent != true) {
comboTake(comboPickTwo(combo_yellow));
comboTake(comboPickOne(combo_green));
}
_root.Game.weaponComboFired();
var _local5 = comboFireBullet("BlackHole", _local3);
SoundPlayer.play("BlackHole", _local5);
return(_local5);
}
function comboFireShockwave(opts) {
var _local4 = Combos.data("shockwave");
combo_recharge = _local4.recharge;
var _local5 = comboTakeLink(combo_green, opts);
var _local3 = new Object();
_local3.bullet_damage = modifyDamage(_local5 + _local4.bullet_damage);
_local3.weapon_damage = modifyDamage(_local5 + _local4.bullet_damage);
_local3.bullet_poison = _local4.bullet_poison;
_local3.blast = true;
_local3.blast_type = "BlastShockwave";
_local3.blast_damage = modifyDamage(_local5 + _local4.blast_damage);
_local3.blast_poison = _local4.blast_poison;
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
if (opts.combo_silent != true) {
comboTake(comboPickOne(combo_yellow));
comboTake(comboPickOne(combo_blue));
}
_root.Game.weaponComboFired();
var _local7 = comboFireBullet("Spark", _local3);
return(_local7);
}
function comboFireNapalm(opts) {
var _local4 = Combos.data("napalm");
combo_recharge = _local4.recharge;
var _local3 = new Object();
_local3.weapon_damage = modifyDamage(_local4.bullet_damage);
_local3.blast = true;
_local3.blast_type = "BlastNapalm";
_local3.blast_damage = modifyDamage(_local4.blast_damage);
_local3.combo_silent = opts.combo_silent;
_local3.target = opts.the_target;
_local3.napalm_quantity = _local4.napalm_quantity;
_local3.napalm_timing = _local4.napalm_timing;
_local3.napalm_jit = _local4.napalm_jit;
if (opts.combo_silent != true) {
comboTake(comboPickOne(combo_yellow));
comboTake(comboPickOne(combo_blue));
comboTake(comboPickOne(combo_red));
}
_root.Game.weaponComboFired();
var _local5 = comboFireBullet("RocketNapalm", _local3);
return(_local5);
}
function comboActivate() {
if (combo_never == true) {
return(false);
}
if (combo_capable != true) {
var _local2 = upgradeAsPercent("damage");
if (_local2 == 100) {
combo_capable = true;
combo_fired = GameClock.timeNow();
combo_next = combo_fired;
}
}
return(combo_capable);
}
function comboCountColours() {
var _local4 = combo_in_range;
combo_red = new Array();
combo_green = new Array();
combo_blue = new Array();
combo_yellow = new Array();
var _local2;
for (var _local5 in _local4) {
_local2 = _local4[_local5];
if (_local2 != this) {
if (_local2.comboCanFire()) {
var _local3 = _local2.turret_type;
if (_local3 == "Red") {
combo_red.push(_local2);
}
if (_local3 == "Green") {
combo_green.push(_local2);
}
if (_local3 == "Blue") {
combo_blue.push(_local2);
}
if (_local3 == "Yellow") {
combo_yellow.push(_local2);
}
}
}
}
return(true);
}
function comboCountColoursRegardless() {
var _local4 = combo_in_range;
combo_red = new Array();
combo_green = new Array();
combo_blue = new Array();
combo_yellow = new Array();
var _local2;
for (var _local5 in _local4) {
_local2 = _local4[_local5];
if (_local2 == this) {
continue;
}
if (_local2.active == false) {
continue;
}
if (_local2.combo_capable != true) {
continue;
}
var _local3 = _local2.turret_type;
if (_local3 == "Red") {
combo_red.push(_local2);
}
if (_local3 == "Green") {
combo_green.push(_local2);
}
if (_local3 == "Blue") {
combo_blue.push(_local2);
}
if (_local3 == "Yellow") {
combo_yellow.push(_local2);
}
}
return(true);
}
function comboFireBullet(the_type, opts) {
comboFired(opts);
Weapon.fire();
weapon_fired = GameClock.timeNow();
var _local5 = new Object();
_local5.x = Weapon.FirePoint._x;
_local5.y = Weapon.FirePoint._y;
Weapon.localToGlobal(_local5);
var _local3 = new Object();
_local3._x = _local5.x;
_local3._y = _local5.y;
_local3._rotation = Weapon._rotation;
_local3.bullet_target = opts.target;
_local3.bullet_damage = weapon_damage_effective;
_local3.turret = this;
if (opts != undefined) {
for (var _local6 in opts) {
_local3[_local6] = opts[_local6];
}
}
var _local7 = _root.Game.bulletNew(the_type, _local3);
return(_local7);
}
function comboPickOne(the_list) {
return(arrayPick(the_list, 1));
}
function comboPickTwo(the_list) {
return(arrayPick(the_list, 2));
}
function comboTake(in_list) {
var _local2;
var _local5;
var _local6;
var _local7;
var _local4;
var _local3 = 0;
while (_local3 < in_list.length) {
_local2 = in_list[_local3];
_local2.combo_fired = GameClock.timeNow();
_local2.combo_assist_count++;
_local2.combo_next = (_local2.combo_fired + combo_recharge) - 1;
_local5 = "SpecialTake";
_local6 = _local2.getNextHighestDepth();
_local7 = _local5 + _local6;
_local4 = new Object();
_local4._x = 0;
_local4._y = 0;
_local2.combo_sign = _local2.attachMovie(_local5, _local7, _local6, _local4);
_local2.turretBearTarget(this, true);
_local3++;
}
}
function comboFired(opts) {
combo_fired = GameClock.timeNow();
combo_fire_count++;
combo_next = combo_fired + combo_recharge;
var _local3 = "SpecialFire";
var _local4 = getNextHighestDepth();
var _local5 = _local3 + _local4;
var _local2 = new Object();
_local2._rotation = Weapon._rotation;
_local2._x = 0;
_local2._y = 0;
combo_sign = attachMovie(_local3, _local5, _local4, _local2);
SoundPlayer.play("Combo", this);
}
function comboTakeLink(tur_list, opts) {
var _local4 = comboPickOne(tur_list);
var _local2 = _local4[0];
if (!(_local2 && (_local2._name))) {
return(0);
}
var _local3 = _local2.linkFire(this, 0);
var _local5 = _local2.weapon_damage_effective;
_local3 = _local3 + _local5;
if (_local3 == undefined) {
_local3 = 0;
}
_local2.Weapon._rotation = trigDegreesTo(_local2, this);
if (opts.combo_silent != true) {
comboTake(_local4);
}
return(_local3);
}
function comboTakePoison(tur_list, opts) {
var _local3 = comboPickOne(tur_list);
var _local4 = _local3[0];
var _local5 = 20;
if (_local4 == undefined) {
return(_local5);
}
var _local2 = _local4.weapon_poison_effective;
if (_local2 == undefined) {
_local2 = _local5;
}
if (opts.combo_silent != true) {
comboTake(_local3);
}
return(_local2);
}
function comboCanFire() {
if (active != true) {
return(false);
}
if (combo_capable != true) {
return(false);
}
var _local2 = GameClock.timeNow();
var _local3 = _local2 - weapon_fired;
if (_local3 < weapon_rate_msec) {
return(false);
}
if (_local2 < combo_next) {
return(false);
}
return(true);
}
function comboFindMinepoints() {
combo_minepoints = new Array();
var _local10 = upgradeGetMax("range");
var _local4 = _root.Game.RoadManager.getMinePoints();
var _local7;
var _local6;
var _local5;
var _local3;
for (var _local11 in _local4) {
_local3 = _local4[_local11];
_local7 = trigDistanceTo(this, _local3);
if (_local7 <= _local10) {
_local6 = _local3._x;
_local5 = _local3._y;
combo_minepoints.push(new Object({_x:_local6, _y:_local5}));
}
}
combo_mines_set = true;
}
function comboFindBlackHolePoints() {
combo_holepoints = new Array();
var _local10 = combo_hole_range;
var _local4 = _root.Game.RoadManager.getMinePoints();
var _local7;
var _local6;
var _local5;
var _local3;
for (var _local11 in _local4) {
_local3 = _local4[_local11];
_local7 = trigDistanceTo(this, _local3);
if (_local7 <= _local10) {
_local6 = _local3._x;
_local5 = _local3._y;
combo_holepoints.push(new Object({_x:_local6, _y:_local5}));
}
}
combo_holes_set = true;
}
function comboGetInRange() {
combo_in_range = new Array();
var _local3 = TurretManager.turrets;
var _local2;
var _local4;
for (var _local5 in _local3) {
_local2 = _local3[_local5];
if (_local2 == this) {
continue;
}
if (_local2.combo_never == true) {
continue;
}
if (_local2.active != true) {
continue;
}
_local4 = trigDistanceTo(this, _local2);
if (_local4 > combo_range) {
continue;
}
combo_in_range.push(_local2);
_local2.comboNotifyNew(this);
}
}
function comboNotifyNew(the_turret) {
if (the_turret == this) {
return(false);
}
if (the_turret.combo_never == true) {
return(false);
}
var _local7 = trigDistanceTo(this, the_turret);
if (_local7 >= combo_range) {
return(false);
}
combo_in_range.push(the_turret);
var _local3 = new Array();
var _local4 = new Array();
var _local2;
for (var _local5 in combo_in_range) {
_local2 = combo_in_range[_local5];
if (_local3[_local2] != true) {
_local3[_local2] = true;
_local4.push(_local2);
}
}
combo_in_range = _local4;
return(true);
}
function comboNotifyGone(the_turret) {
var _local3 = new Array();
var _local2;
for (var _local5 in combo_in_range) {
_local2 = combo_in_range[_local5];
if (_local2 != the_turret) {
_local3.push(_local2);
}
}
combo_in_range = _local3;
return(true);
}
function comboInRangeShow() {
if (combo_range_fx_out != undefined) {
combo_range_fx_out.effectComplete();
combo_range_fx_out = undefined;
}
if (combo_range_notify && (combo_range_notify._name)) {
return(undefined);
}
var _local3 = "TurretComboInRange";
var _local4 = getNextHighestDepth();
var _local6 = _local3 + _local4;
var _local5 = new Object();
_local5._alpha = 0;
combo_range_notify = attachMovie(_local3, _local6, _local4, _local5);
var _local2 = new Object();
_local2.target_obj = combo_range_notify;
_local2.target_alpha = 100;
_local2.effect_duration = 120;
combo_range_fx_in = effectNew(_local2);
}
function comboInRangeHide() {
if (!(combo_range_notify && (combo_range_notify._name))) {
return(undefined);
}
if (combo_range_fx_in != undefined) {
combo_range_fx_in.effectRemove();
combo_range_fx_in = undefined;
}
if (combo_range_fx_out != undefined) {
combo_range_fx_out.effectRemove();
}
var _local2 = new Object();
_local2.target_obj = combo_range_notify;
_local2.target_alpha = 0;
_local2.effect_duration = 240;
_local2.from = this;
_local2.onComplete = function () {
this.from.combo_range_notify.removeMovieClip();
};
combo_range_fx_out = effectNew(_local2);
}
function linkGetInRange() {
var _local3 = TurretManager.turrets;
var _local2;
var _local4;
link_in_range = new Array();
link_qty_in_range = 0;
for (var _local5 in _local3) {
_local2 = _local3[_local5];
if (_local2 != this) {
if (_local2.link_capable) {
_local4 = trigDistanceTo(this, _local2);
if (_local4 <= weapon_range_effective) {
link_in_range.push(_local2);
link_qty_in_range++;
}
}
}
}
}
function linkNotifyNew(the_turret) {
linkGetInRange();
return(false);
}
function linkNotifyGone(the_turret) {
var _local3 = new Array();
var _local2;
for (var _local5 in link_in_range) {
_local2 = link_in_range[_local5];
if (_local2 != the_turret) {
_local3.push(_local2);
}
}
link_in_range = _local3;
}
function linkOffered(the_state) {
if (the_state == true) {
link_offered = true;
} else {
link_offered = false;
}
LinkOfferedFlag._visible = link_offered;
}
function linkWanted(the_state) {
if (the_state == true) {
link_wanted = true;
} else {
link_wanted = false;
}
LinkWantedFlag._visible = link_wanted;
}
function linkFire(the_target, the_damage, lead_turret) {
if (link_qty_in_range == 0) {
turretFire(the_target, the_damage, false);
return(the_damage);
}
linkOffered(false);
var _local3 = 0;
var _local5 = weapon_damage_effective;
var _local4 = new Array();
var _local6 = 0;
var _local2;
for (var _local7 in link_in_range) {
_local2 = link_in_range[_local7];
if (_local2.link_offered == true) {
_local2.linkOffered(false);
_local4.push(_local2);
_local6++;
}
}
if (_local6 == 0) {
_local5 = weapon_damage_effective;
if (lead_turret == true) {
turretFire(the_target, _local5, false);
link_fire_count++;
} else {
turretFire(the_target, _local5, true);
link_assist_count++;
}
link_last_damage = _local5;
return(_local5);
}
for (var _local7 in _local4) {
_local2 = _local4[_local7];
_local2.Weapon._rotation = trigDegreesTo(_local2, this);
_local3 = _local2.linkFire(this, 0, false);
_local3 = _local3 * link_mult;
_local5 = _local5 + _local3;
}
if (lead_turret == true) {
turretFire(the_target, _local5, false);
link_fire_count++;
} else {
turretFire(the_target, _local5, true);
link_assist_count++;
}
link_last_damage = _local5;
return(_local5);
}
var active = true;
var pre_setup = false;
var cash_value = 0;
var turret_type = "Generic";
var turret_subtype = "weapon";
var frame_space = 70;
var display_name = "Generic";
var freak_capable = false;
var freak_available = false;
var freak_length = 5000;
var freak_space = 80000;
var freak_damage_mult = 3;
var freak_range_mult = 0;
var freak_rate_mult = 4;
var freak_level_damage = 4;
var freak_level_range = 0;
var freak_level_rate = 4;
var weapon_damage = 0;
var weapon_range = 0;
var weapon_rate = 0;
var weapon_poison = 0;
var weapon_rotate = 270;
var target_type = "near";
var target_type_num = 0;
var target_reacquire = false;
var target_bear_ignore = false;
var weapon_damage_effective = 1;
var weapon_range_effective = 1;
var weapon_rate_effective = 1;
var weapon_poison_effective = 0;
var weapon_rate_msec = 0;
var weapon_type = "Bullet";
var weapon_fired = 0;
var weapon_fire_count = 0;
var weapon_kill_count = 0;
var weapon_must_face = true;
var modify_possible = true;
var modify_damage_added = 0;
var modify_range_added = 0;
var modify_rate_added = 0;
var modify_poison_added = 0;
var modify_damage_mult = 1;
var modify_range_mult = 1;
var modify_rate_mult = 1;
var modify_poison_mult = 1;
var combo_capable = false;
var combo_never = false;
var combo_fired = 0;
var combo_range = 70;
var combo_rate = 7;
var combo_rate_msec = 8000;
var combo_fire_count = 0;
var combo_kill_count = 0;
var combo_assist_count = 0;
var combo_minepoints = new Array();
var combo_mines_set = false;
var combo_holepoints = new Array();
var combo_holes_set = false;
var combo_hole_range = 90;
var combo_in_range = new Array();
var combo_red = new Array();
var combo_green = new Array();
var combo_blue = new Array();
var combo_yellow = new Array();
var combo_mines = new Array();
var link_qty_in_range = 0;
var link_capable = false;
var link_mult = 1.25;
var link_wanted = false;
var link_offered = false;
var link_fire_count = 0;
var link_assist_count = 0;
var link_last_damage = 0;
var link_chain_size = 0;
var fusion_capable = false;
var holding_pattern = false;
var holding_round = false;
var holding_max = 4;
var upgrade_damage_level = 0;
var upgrade_range_level = 0;
var upgrade_rate_level = 0;
var join_possible = true;
var join_max = 3;
var join_visible = false;
var target_box_static = true;
var target_box_built = false;
}
Symbol 1230 MovieClip [__Packages.mods.ModManager] Frame 0
class mods.ModManager
{
var mod_name, so, mod_defaults, mod_assets, asset_library;
function ModManager (the_mod) {
if (the_mod == undefined) {
trace("No mod name supplied");
return;
}
mod_name = the_mod;
so = SharedObject.getLocal("onslaught");
if (so.data.mods == undefined) {
GameManager.debug("Created mod store");
so.data.mods = new Object();
so.flush();
}
if (so.data.mods[mod_name] == undefined) {
GameManager.debug("Created specific mod");
so.data.mods[mod_name] = new Object();
so.flush();
}
Combos.mod = this;
turrets.Turret.mod = this;
mod_defaults = new mods.ModDefaults();
mod_assets = mod_defaults.mod_assets;
asset_library = mod_defaults.asset_library;
}
function get the_mod() {
return(mod_name);
}
function modAsObject() {
var _local4 = new Object();
for (var _local6 in mod_defaults.item_library) {
if (itemHasDelta(_local6)) {
_local4[_local6] = new Object();
var _local3 = itemGetAssets(_local6);
for (var _local5 in _local3) {
var _local2 = assetDeltaGet(_local6, _local5);
if (_local2 != undefined) {
_local4[_local6][_local5] = _local2;
}
}
}
}
return(_local4);
}
function modFromObject(obj) {
var _local14;
var _local13;
var _local17;
var _local18;
var _local2;
var _local4;
var _local7;
var _local6;
for (var _local24 in mod_defaults.item_library) {
if (obj[_local24] == undefined) {
itemDeltaClear(_local24);
} else {
var _local16 = itemGetAssets(_local24);
for (var _local23 in _local16) {
if (obj[_local24][_local23] != undefined) {
var _local19 = _local16[_local23];
var _local5 = obj[_local24][_local23];
_local4 = assetDescribe(_local23);
_local7 = _local4.min;
_local6 = _local4.max;
switch (_local19) {
case MOD_ARRAY_INDEXED :
_local14 = _local5[_local4.key_field];
_local13 = _local5[_local4.val_field];
_local17 = 0;
_local18 = 0;
for (var _local21 in _local14) {
_local17++;
}
for (var _local21 in _local13) {
_local18++;
}
_local2 = Math.min(_local17, _local18);
if (_local7 != undefined) {
if (_local2 < _local7) {
trace(MOD_ARRAY_INDEXED + ": Not enough values");
break;
}
}
if (_local6 != undefined) {
if (_local2 > _local6) {
trace(MOD_ARRAY_INDEXED + ": Too many values");
break;
}
} else {
var _local11 = new Object();
var _local8 = new Array();
var _local9 = new Array();
var _local3 = 0;
while (_local3 < _local2) {
_local8[_local3] = _local14[_local3];
_local9[_local3] = _local13[_local3];
_local3++;
}
_local11[_local4.key_field] = _local8;
_local11[_local4.val_field] = _local9;
assetDeltaSet(_local24, _local23, _local11);
if (_local4.key_asset != undefined) {
assetDeltaSet(_local24, _local4.key_asset, _local8);
}
if (_local4.val_asset != undefined) {
assetDeltaSet(_local24, _local4.val_asset, _local9);
}
break;
if (typeof(_local5) != "array") {
trace(((_local24 + ".") + _local23) + " is not an array");
} else {
_local2 = 0;
var _local12 = new Array();
for (var _local22 in _local5) {
_local12[_local2] = _local5[_local22];
_local2++;
}
if (_local7 != undefined) {
if (_local2 < _local7) {
trace(MOD_ARRAY + ": Not enough values");
break;
}
} else if (_local6 != undefined) {
if (_local2 > _local6) {
trace(MOD_ARRAY + ": Too many values");
break;
}
} else {
assetDeltaSet(_local24, _local23, _local12);
break;
var _local15 = _local5.toString();
_local2 = _local15.length;
if (_local7 != undefined) {
if (_local2 < _local7) {
trace(MOD_STRING + ": String is too short");
break;
}
} else if (_local6 != undefined) {
if (_local2 > _local6) {
trace(MOD_STRING + ": String is too long");
break;
}
} else {
assetDeltaSet(_local24, _local23, _local15);
break;
if (_local5 == true) {
assetDeltaSet(_local24, _local23, true);
} else {
assetDeltaSet(_local24, _local23, false);
}
break;
var _local10 = Number(_local5);
if (_local7 != undefined) {
if (_local10 < _local7) {
trace(MOD_NUMBER + ": Number is too small");
break;
}
} else if (_local6 != undefined) {
if (_local10 > _local6) {
trace(MOD_NUMBER + ": Number is too large");
break;
}
} else {
assetDeltaSet(_local24, _local23, _local10);
break;
GameManager.debug("Unknown mod type: " + _local16[_local23]);
}
}
}
}
}
case MOD_ARRAY :
if (typeof(_local5) != "array") {
trace(((_local24 + ".") + _local23) + " is not an array");
} else {
_local2 = 0;
var _local12 = new Array();
for (var _local22 in _local5) {
_local12[_local2] = _local5[_local22];
_local2++;
}
if (_local7 != undefined) {
if (_local2 < _local7) {
trace(MOD_ARRAY + ": Not enough values");
break;
}
} else if (_local6 != undefined) {
if (_local2 > _local6) {
trace(MOD_ARRAY + ": Too many values");
break;
}
} else {
assetDeltaSet(_local24, _local23, _local12);
break;
var _local15 = _local5.toString();
_local2 = _local15.length;
if (_local7 != undefined) {
if (_local2 < _local7) {
trace(MOD_STRING + ": String is too short");
break;
}
} else if (_local6 != undefined) {
if (_local2 > _local6) {
trace(MOD_STRING + ": String is too long");
break;
}
} else {
assetDeltaSet(_local24, _local23, _local15);
break;
if (_local5 == true) {
assetDeltaSet(_local24, _local23, true);
} else {
assetDeltaSet(_local24, _local23, false);
}
break;
var _local10 = Number(_local5);
if (_local7 != undefined) {
if (_local10 < _local7) {
trace(MOD_NUMBER + ": Number is too small");
break;
}
} else if (_local6 != undefined) {
if (_local10 > _local6) {
trace(MOD_NUMBER + ": Number is too large");
break;
}
} else {
assetDeltaSet(_local24, _local23, _local10);
break;
GameManager.debug("Unknown mod type: " + _local16[_local23]);
}
}
}
}
case MOD_STRING :
var _local15 = _local5.toString();
_local2 = _local15.length;
if (_local7 != undefined) {
if (_local2 < _local7) {
trace(MOD_STRING + ": String is too short");
break;
}
} else if (_local6 != undefined) {
if (_local2 > _local6) {
trace(MOD_STRING + ": String is too long");
break;
}
} else {
assetDeltaSet(_local24, _local23, _local15);
break;
if (_local5 == true) {
assetDeltaSet(_local24, _local23, true);
} else {
assetDeltaSet(_local24, _local23, false);
}
break;
var _local10 = Number(_local5);
if (_local7 != undefined) {
if (_local10 < _local7) {
trace(MOD_NUMBER + ": Number is too small");
break;
}
} else if (_local6 != undefined) {
if (_local10 > _local6) {
trace(MOD_NUMBER + ": Number is too large");
break;
}
} else {
assetDeltaSet(_local24, _local23, _local10);
break;
GameManager.debug("Unknown mod type: " + _local16[_local23]);
}
}
case MOD_BOOLEAN :
if (_local5 == true) {
assetDeltaSet(_local24, _local23, true);
} else {
assetDeltaSet(_local24, _local23, false);
}
break;
case MOD_INT :
case MOD_NUMBER :
var _local10 = Number(_local5);
if (_local7 != undefined) {
if (_local10 < _local7) {
trace(MOD_NUMBER + ": Number is too small");
break;
}
} else if (_local6 != undefined) {
if (_local10 > _local6) {
trace(MOD_NUMBER + ": Number is too large");
break;
}
} else {
assetDeltaSet(_local24, _local23, _local10);
break;
GameManager.debug("Unknown mod type: " + _local16[_local23]);
}
default :
GameManager.debug("Unknown mod type: " + _local16[_local23]);
}
} else {
assetDeltaClear(_local24, _local23);
}
}
}
}
return(true);
}
function modSignature() {
var _local3 = modAsObject();
var _local2 = JSON.stringify(_local3);
var _local4 = MD5.calculate(_local2);
return(_local4);
}
function modClear() {
so.data.mods[mod_name] = new Object();
so.flush();
return(true);
}
function assetDump(item_name, asset_name) {
var _local2 = so.data.mods[mod_name][item_name][asset_name];
trace(((item_name + ".") + asset_name) + ":");
if (typeof(_local2) == "object") {
for (var _local3 in _local2) {
trace((_local3 + " => ") + _local2[_local3]);
}
} else {
trace(_local2);
}
}
function assetValueDump(item_name, asset_name) {
var _local2 = mod_defaults[item_name][asset_name];
trace(((item_name + ".") + asset_name) + ":");
if (typeof(_local2) == "object") {
for (var _local3 in _local2) {
trace((_local3 + " => ") + _local2[_local3]);
}
} else {
trace(_local2);
}
}
function assetDeltaSet(item_name, asset_name, new_val) {
if (so.data.mods[mod_name][item_name] == undefined) {
so.data.mods[mod_name][item_name] = new Object();
}
so.data.mods[mod_name][item_name][asset_name] = new_val;
if (so.flush()) {
return(true);
}
trace("Asset write failed");
return(false);
}
function assetDeltaGet(item_name, asset_name) {
if (so.data.mods[mod_name][item_name] != undefined) {
return(so.data.mods[mod_name][item_name][asset_name]);
}
return(undefined);
}
function assetDeltaClear(item_name, asset_name) {
assetDeltaSet(item_name, asset_name, undefined);
var _local2 = assetDescribe(asset_name);
if (_local2.key_asset != undefined) {
assetDeltaSet(item_name, _local2.key_asset, undefined);
}
if (_local2.val_asset != undefined) {
assetDeltaSet(item_name, _local2.val_asset, undefined);
}
return(true);
}
function assetDescribe(asset_name) {
if (asset_library[asset_name] != undefined) {
return(asset_library[asset_name]);
}
return(undefined);
}
function assetGetLibraryData(asset_name, asset_value) {
var _local2 = assetDescribe(asset_name);
if (_local2 != undefined) {
return(_local2[asset_value]);
}
return(undefined);
}
function assetDefaults(item_name, asset_name) {
if (mod_defaults[item_name] != undefined) {
if (mod_defaults[item_name][asset_name] != undefined) {
if (typeof(mod_defaults[item_name][asset_name]) == "object") {
var _local4 = new Object();
for (var _local5 in mod_defaults[item_name][asset_name]) {
_local4[_local5] = mod_defaults[item_name][asset_name][_local5];
}
return(_local4);
}
return(mod_defaults[item_name][asset_name]);
}
trace("No default asset: " + asset_name);
} else {
trace("No item: " + item_name);
}
return(undefined);
}
function itemDeltaClear(item_name) {
if (so.data.mods[mod_name][item_name]) {
GameManager.debug("Clearing item: " + item_name);
delete so.data.mods[mod_name][item_name];
so.flush();
return(true);
}
return(false);
}
function itemGetAssets(item_name) {
if (mod_assets[item_name] != undefined) {
return(mod_assets[item_name]);
}
return(undefined);
}
function itemGetAssetType(item_name, asset_name) {
if (mod_assets[item_name] != undefined) {
if (mod_assets[item_name][asset_name] != undefined) {
return(mod_assets[item_name][asset_name]);
}
}
return(undefined);
}
function itemHasDelta(item_name) {
if (so.data.mods[mod_name][item_name] == undefined) {
return(false);
}
for (var _local3 in so.data.mods[mod_name][item_name]) {
if (so.data.mods[mod_name][item_name][_local3] != undefined) {
return(true);
}
}
return(false);
}
function modTurret(the_tur, item_name) {
var _local3 = mod_defaults[item_name];
if (_local3 == undefined) {
GameManager.debug("No mods for: " + item_name);
return(false);
}
var _local4 = mod_assets[item_name];
var _local2;
_local2 = _local3.upgrade_damage;
if (_local2 != undefined) {
_local3.upgrade_damage_cost = _local2.cost;
_local3.upgrade_damage_amount = _local2.amount;
_local4.upgrade_damage_cost = MOD_ARRAY;
_local4.upgrade_damage_amount = MOD_ARRAY;
delete _local4.upgrade_damage;
}
_local2 = _local3.upgrade_range;
if (_local2 != undefined) {
_local3.upgrade_range_cost = _local2.cost;
_local3.upgrade_range_amount = _local2.amount;
_local4.upgrade_range_cost = MOD_ARRAY;
_local4.upgrade_range_amount = MOD_ARRAY;
delete _local4.upgrade_range;
}
_local2 = _local3.upgrade_rate;
if (_local2 != undefined) {
_local3.upgrade_rate_cost = _local2.cost;
_local3.upgrade_rate_amount = _local2.amount;
_local4.upgrade_rate_cost = MOD_ARRAY;
_local4.upgrade_rate_amount = MOD_ARRAY;
delete _local4.upgrade_rate;
}
modObject(the_tur, item_name, _local3, _local4);
the_tur.upgradeDone();
}
function modCombo(combo) {
var _local2 = Combos.data_raw(combo);
if (_local2 == undefined) {
GameManager.debug("No such combo");
return(undefined);
}
var _local3 = "Combo_" + combo;
var _local4 = mod_defaults[_local3];
if (_local4 == undefined) {
GameManager.debug("No default assets for: " + _local3);
return(_local2);
}
return(modObject(_local2, _local3, _local4));
}
function modManagers(obj) {
var _local2 = "GameSettings";
var _local3 = mod_defaults[_local2];
if (_local3 == undefined) {
GameManager.debug("No default assets for: " + _local2);
return(obj);
}
return(modObject(obj, _local2, _local3));
}
function modTurretsAvailable() {
var _local3 = new Array("RangeUp", "DamageUp", "RateUpExchange", "RangeUpExchange", "RateUp", "DamageUpBig", "DamageUpBigExchange", "Targeter", "Sniper", "Fusion", "Railgun", "Combonly");
var _local9 = new Array();
_local9.Blue = true;
_local9.Green = true;
_local9.Red = true;
_local9.Yellow = true;
var _local5;
var _local4;
var _local6;
var _local8 = "turret_available";
var _local7 = 0;
for (var _local2 in _local3) {
_local7++;
}
var _local2 = 0;
while (_local2 < _local7) {
_local6 = "Turret" + _local3[_local2];
_local5 = assetDefaults(_local6, _local8);
_local4 = assetDeltaGet(_local6, _local8);
if (_local4 != undefined) {
_local5 = _local4;
}
_local9[_local3[_local2]] = _local5;
_local2++;
}
return(_local9);
}
function modTurretsCost() {
var _local3 = new Array("Blue", "Green", "Red", "Yellow", "RangeUp", "DamageUp", "RateUpExchange", "RangeUpExchange", "RateUp", "DamageUpBig", "DamageUpBigExchange", "Targeter", "Sniper", "Fusion", "Railgun", "Combonly");
var _local9 = new Array();
var _local5;
var _local4;
var _local6;
var _local8 = "turret_cost";
var _local7 = 0;
for (var _local2 in _local3) {
_local7++;
}
var _local2 = 0;
while (_local2 < _local7) {
_local6 = "Turret" + _local3[_local2];
_local5 = assetDefaults(_local6, _local8);
_local4 = assetDeltaGet(_local6, _local8);
if (_local4 != undefined) {
_local5 = _local4;
}
_local9[_local3[_local2]] = _local5;
_local2++;
}
return(_local9);
}
function modTurretsUnlock() {
var _local4 = new Array("RangeUp", "DamageUp", "RateUpExchange", "RangeUpExchange", "RateUp", "DamageUpBig", "DamageUpBigExchange", "Targeter", "Sniper", "Fusion", "Railgun", "Combonly");
var _local3 = new Array();
var _local2;
var _local5;
var _local6;
var _local7 = "turret_unlock";
for (var _local8 in _local4) {
_local6 = "Turret" + _local4[_local8];
_local2 = assetDefaults(_local6, _local7);
_local5 = assetDeltaGet(_local6, _local7);
if (_local5 != undefined) {
_local2 = _local5;
}
if (_local3[_local2] == undefined) {
_local3[_local2] = new Array();
}
_local3[_local2].push(_local4[_local8]);
}
return(_local3);
}
function modStartingCash() {
var _local3 = new Array("easy", "medium", "hard", "extreme", "sandbox", "sandbox2", "debug");
var _local9 = new Array();
var _local5;
var _local4;
var _local7 = "GameSettings";
var _local6;
var _local8 = 0;
for (var _local2 in _local3) {
_local8++;
}
var _local2 = 0;
while (_local2 < _local8) {
_local6 = "starting_cash_" + _local3[_local2];
_local5 = assetDefaults(_local7, _local6);
_local4 = assetDeltaGet(_local7, _local6);
if (_local4 != undefined) {
_local5 = _local4;
}
_local9[_local3[_local2]] = _local5;
_local2++;
}
return(_local9);
}
function modObject(obj, item_name, item_assets, asset_list) {
var _local10;
var _local5;
var _local4;
var _local6;
var _local7;
var _local11;
if (asset_list == undefined) {
asset_list = mod_assets[item_name];
}
for (var _local16 in asset_list) {
var _local12 = obj[_local16];
var _local2 = item_assets[_local16];
var _local8 = assetDeltaGet(item_name, _local16);
if (_local8 == undefined) {
continue;
}
_local2 = _local8;
if (_local12 != _local2) {
switch (asset_list[_local16]) {
case MOD_ARRAY_INDEXED :
_local10 = assetDescribe(_local16);
_local5 = _local2[_local10.key_field];
_local4 = _local2[_local10.val_field];
_local6 = 0;
_local7 = 0;
for (var _local13 in _local5) {
_local6++;
}
for (var _local13 in _local4) {
_local7++;
}
_local11 = Math.min(_local6, _local7);
obj[_local16] = new Array();
var _local14 = 0;
while (_local14 < _local11) {
obj[_local16][_local5[_local14]] = _local4[_local14];
_local14++;
}
break;
case MOD_ARRAY :
obj[_local16] = new Array();
for (_local14 in _local2) {
obj[_local16][_local14] = _local2[_local14];
}
break;
case MOD_STRING :
obj[_local16] = _local2;
break;
case MOD_BOOLEAN :
obj[_local16] = _local2;
break;
case MOD_NUMBER :
obj[_local16] = _local2;
break;
default :
GameManager.debug("Unknown mod type: " + asset_list[_local16]);
}
}
}
return(obj);
}
static var MOD_PLAY = "playing";
static var MOD_EDIT = "editing";
static var MOD_SAVE = "saving";
static var MOD_LOAD = "loading";
static var mod_mode = MOD_PLAY;
static var MOD_BOOLEAN = "boolean";
static var MOD_STRING = "string";
static var MOD_NUMBER = "number";
static var MOD_INT = "integer";
static var MOD_ARRAY = "array";
static var MOD_ARRAY_INDEXED = "arrayIndexed";
}
Symbol 1231 MovieClip [__Packages.mods.ModDefaults] Frame 0
class mods.ModDefaults extends Object
{
var item_library, Test, TurretBlue, TurretGreen, TurretRed, TurretYellow, TurretRangeUp, TurretDamageUp, TurretRateUpExchange, TurretRangeUpExchange, TurretRateUp, TurretDamageUpBig, TurretDamageUpBigExchange, TurretSniper, TurretRailgun, TurretFusion, TurretCombonly, TurretTargeter, GameSettings, asset_library, mod_assets;
function ModDefaults () {
super();
initItemLibrary();
initAssetLibrary();
initModAssets();
initTurretsStandard();
initTurretsModifiers();
initTurretsSuper();
initCombos();
initManagers();
}
function initItemLibrary() {
item_library = new Object({GameSettings:"Game Settings", TurretBlue:"Turret: Blue Cannon", TurretGreen:"Turret: Green Laser", TurretRed:"Turret: Red Rocket", TurretYellow:"Turret: Yellow Tazer", TurretRangeUp:"Modifier: Range Enhancer", TurretDamageUp:"Modifier: Damage Enhancer", TurretRateUpExchange:"Modifier: Rate Exchanger", TurretRangeUpExchange:"Modifier: Range Exchanger", TurretRateUp:"Modifier: Rate Enhancer", TurretDamageUpBig:"Modifier: Big Damage Enhancer", TurretDamageUpBigExchange:"Modifier: Big Damage Exchanger", TurretSniper:"Super Turret: Sniper", TurretRailgun:"Super Turret: Railgun", TurretFusion:"Super Turret: Fusion Cannon", Combo_clusterbomb:"Combo: Clusterbomb", Combo_big_clusterbomb:"Combo: Big Clusterbomb", Combo_sparky_clusterbomb:"Combo: Sparky Clusterbomb", Combo_big_sparky_clusterbomb:"Combo: Big Sparky Clusterbomb", Combo_laser_clusterbomb:"Combo: Laser Clusterbomb", Combo_big_laser_clusterbomb:"Combo: Big Laser Clusterbomb", Combo_landmine:"Combo: Landmine", Combo_big_landmine:"Combo: Big Landmine", Combo_sparky_landmine:"Combo: Sparky Landmine", Combo_big_cluster_landmine:"Combo: Bit Cluster Landmine", Combo_big_laser_cluster_landmine:"Combo: Big Laser Cluster Landmine", Combo_bfg:"Combo: BFG", Combo_tazer_bfg:"Combo: Tazer BFG", Combo_rocket_bfg:"Combo: Rocket BFG", Combo_laser_rocket:"Combo: Laser Rocket", Combo_tazer_rocket:"Combo: Tazer Rocket", Combo_poison_rocket:"Combo: Poison Rocket", Combo_nuke:"Combo: Nuke", Combo_blackhole:"Combo: Black Hole", Combo_shockwave:"Combo: Shockwave", Combo_napalm:"Combo: Napalm"});
}
function initTurretsStandard() {
Test = new Object();
Test.test_string = "Test String";
Test.test_number = 50.5;
Test.test_int = 10;
Test.test_array = {the_key:[10, 20, 30], the_val:[100, 200, 300]};
TurretBlue = new Object();
TurretBlue.turret_cost = 10;
TurretBlue.weapon_damage = 15;
TurretBlue.weapon_range = 130;
TurretBlue.weapon_rate = 100;
TurretBlue.weapon_poison = 0;
TurretBlue.weapon_rotate = 270;
TurretBlue.weapon_must_face = true;
TurretBlue.upgrade_damage = {cost:[20, 50, 100, 250, 600, 1000, 1100, 1200, 1500], amount:[30, 60, 150, 400, 1200, 3100, 8500, 19400, 46000]};
TurretBlue.upgrade_range = {cost:[30, 100, 200, 500, 950], amount:[140, 150, 165, 180, 220]};
TurretBlue.upgrade_rate = {cost:[50, 150, 300, 450, 950, 1000, 1450], amount:[110, 125, 140, 160, 180, 200, 240]};
TurretBlue.freak_capable = true;
TurretBlue.freak_available = false;
TurretBlue.freak_length = 5000;
TurretBlue.freak_space = 80000 /* 0x013880 */;
TurretBlue.freak_damage_mult = 3;
TurretBlue.freak_range_mult = 0;
TurretBlue.freak_rate_mult = 4;
TurretBlue.freak_level_damage = 4;
TurretBlue.freak_level_range = 0;
TurretBlue.freak_level_rate = 4;
TurretBlue.modify_possible = true;
TurretBlue.combo_capable = false;
TurretBlue.combo_never = false;
TurretGreen = new Object();
TurretGreen.turret_cost = 15;
TurretGreen.weapon_damage = 25;
TurretGreen.weapon_range = 100;
TurretGreen.weapon_rate = 60;
TurretGreen.weapon_poison = 0;
TurretGreen.weapon_rotate = 270;
TurretGreen.weapon_must_face = true;
TurretGreen.upgrade_damage = {cost:[20, 50, 125, 300, 700, 850, 950, 1000], amount:[50, 120, 400, 1500, 3900, 9300, 19500, 35000]};
TurretGreen.upgrade_range = {cost:[15, 25, 40, 65, 105, 170, 275, 445, 720, 1100], amount:[110, 125, 140, 160, 180, 205, 230, 255, 285, 320]};
TurretGreen.upgrade_rate = {cost:[30, 75, 180, 300, 450, 600, 800, 900, 1000], amount:[65, 70, 80, 90, 105, 120, 135, 160, 190]};
TurretGreen.freak_capable = false;
TurretGreen.freak_available = false;
TurretGreen.freak_length = 5000;
TurretGreen.freak_space = 80000 /* 0x013880 */;
TurretGreen.freak_damage_mult = 3;
TurretGreen.freak_range_mult = 0;
TurretGreen.freak_rate_mult = 4;
TurretGreen.freak_level_damage = 4;
TurretGreen.freak_level_range = 0;
TurretGreen.freak_level_rate = 4;
TurretGreen.modify_possible = true;
TurretGreen.combo_capable = false;
TurretGreen.combo_never = false;
TurretRed = new Object();
TurretRed.turret_cost = 20;
TurretRed.weapon_damage = 50;
TurretRed.weapon_range = 200;
TurretRed.weapon_rate = 50;
TurretRed.weapon_poison = 0;
TurretRed.weapon_rotate = 270;
TurretRed.weapon_must_face = false;
TurretRed.upgrade_damage = {cost:[50, 100, 200, 350, 650, 1200, 1300, 1500, 1500], amount:[120, 350, 800, 1950, 6050, 11500, 27000, 48900, 65000]};
TurretRed.upgrade_range = {cost:[35, 80, 160, 400, 900, 1100, 1300, 1500], amount:[210, 220, 230, 250, 275, 300, 325, 350]};
TurretRed.upgrade_rate = {cost:[30, 60, 115, 200, 340, 600, 900, 1050, 1150], amount:[60, 70, 85, 100, 115, 135, 155, 180, 210]};
TurretRed.freak_capable = false;
TurretRed.freak_available = false;
TurretRed.freak_length = 5000;
TurretRed.freak_space = 80000 /* 0x013880 */;
TurretRed.freak_damage_mult = 3;
TurretRed.freak_range_mult = 0;
TurretRed.freak_rate_mult = 4;
TurretRed.freak_level_damage = 4;
TurretRed.freak_level_range = 0;
TurretRed.freak_level_rate = 4;
TurretRed.modify_possible = true;
TurretRed.combo_capable = false;
TurretRed.combo_never = false;
TurretYellow = new Object();
TurretYellow.turret_cost = 50;
TurretYellow.weapon_damage = 50;
TurretYellow.weapon_range = 70;
TurretYellow.weapon_rate = 60;
TurretYellow.weapon_poison = 1;
TurretYellow.weapon_rotate = 720;
TurretYellow.weapon_must_face = false;
TurretYellow.upgrade_damage = {cost:[40, 80, 190, 300, 600, 1000, 1100], amount:[75, 125, 200, 800, 3500, 11000, 30000]};
TurretYellow.upgrade_range = {cost:[50, 100, 300, 600, 1000], amount:[75, 85, 105, 130, 155]};
TurretYellow.upgrade_rate = {cost:[50, 100, 225, 390, 650, 1100, 1450], amount:[70, 80, 90, 100, 120, 150, 180]};
TurretYellow.freak_capable = true;
TurretYellow.freak_available = false;
TurretYellow.freak_length = 5000;
TurretYellow.freak_space = 80000 /* 0x013880 */;
TurretYellow.freak_damage_mult = 3;
TurretYellow.freak_range_mult = 0;
TurretYellow.freak_rate_mult = 4;
TurretYellow.freak_level_damage = 4;
TurretYellow.freak_level_range = 0;
TurretYellow.freak_level_rate = 4;
TurretYellow.modify_possible = true;
TurretYellow.combo_capable = false;
TurretYellow.combo_never = false;
}
function initTurretsModifiers() {
TurretRangeUp = new Object();
TurretRangeUp.turret_unlock = 300;
TurretRangeUp.turret_available = false;
TurretRangeUp.turret_cost = 2000;
TurretRangeUp.weapon_range = 80;
TurretRangeUp.upgrade_range = {cost:[1500], amount:[130]};
TurretRangeUp.modify_up_damage = 0;
TurretRangeUp.modify_up_range = 100;
TurretRangeUp.modify_up_rate = 0;
TurretRangeUp.modify_up_damage_mult = 0;
TurretRangeUp.modify_up_range_mult = 0;
TurretRangeUp.modify_up_rate_mult = 0;
TurretDamageUp = new Object();
TurretDamageUp.turret_unlock = 450;
TurretDamageUp.turret_available = false;
TurretDamageUp.turret_cost = 5000;
TurretDamageUp.weapon_range = 80;
TurretDamageUp.upgrade_range = {cost:[1500], amount:[130]};
TurretDamageUp.modify_up_damage = 0;
TurretDamageUp.modify_up_range = 0;
TurretDamageUp.modify_up_rate = 0;
TurretDamageUp.modify_up_damage_mult = 0.4;
TurretDamageUp.modify_up_range_mult = 0;
TurretDamageUp.modify_up_rate_mult = 0;
TurretRateUpExchange = new Object();
TurretRateUpExchange.turret_unlock = 550;
TurretRateUpExchange.turret_available = false;
TurretRateUpExchange.turret_cost = 1200;
TurretRateUpExchange.weapon_range = 80;
TurretRateUpExchange.upgrade_range = {cost:[1500], amount:[130]};
TurretRateUpExchange.modify_up_damage = 0;
TurretRateUpExchange.modify_up_range = 0;
TurretRateUpExchange.modify_up_rate = 0;
TurretRateUpExchange.modify_up_damage_mult = -0.4;
TurretRateUpExchange.modify_up_range_mult = -0.1;
TurretRateUpExchange.modify_up_rate_mult = 0.6;
TurretRangeUpExchange = new Object();
TurretRangeUpExchange.turret_unlock = 700;
TurretRangeUpExchange.turret_available = false;
TurretRangeUpExchange.turret_cost = 1000;
TurretRangeUpExchange.weapon_range = 80;
TurretRangeUpExchange.upgrade_range = {cost:[1500], amount:[130]};
TurretRangeUpExchange.modify_up_damage = 0;
TurretRangeUpExchange.modify_up_range = 100;
TurretRangeUpExchange.modify_up_rate = 0;
TurretRangeUpExchange.modify_up_damage_mult = 0;
TurretRangeUpExchange.modify_up_range_mult = 0;
TurretRangeUpExchange.modify_up_rate_mult = -0.25;
TurretRateUp = new Object();
TurretRateUp.turret_unlock = 850;
TurretRateUp.turret_available = false;
TurretRateUp.turret_cost = 3000;
TurretRateUp.weapon_range = 80;
TurretRateUp.upgrade_range = {cost:[1500], amount:[130]};
TurretRateUp.modify_up_damage = 0;
TurretRateUp.modify_up_range = 0;
TurretRateUp.modify_up_rate = 0;
TurretRateUp.modify_up_damage_mult = 0;
TurretRateUp.modify_up_range_mult = 0;
TurretRateUp.modify_up_rate_mult = 1.2;
TurretDamageUpBig = new Object();
TurretDamageUpBig.turret_unlock = 1000;
TurretDamageUpBig.turret_available = false;
TurretDamageUpBig.turret_cost = 8500;
TurretDamageUpBig.weapon_range = 80;
TurretDamageUpBig.upgrade_range = {cost:[1500], amount:[130]};
TurretDamageUpBig.modify_up_damage = 0;
TurretDamageUpBig.modify_up_range = 0;
TurretDamageUpBig.modify_up_rate = 0;
TurretDamageUpBig.modify_up_damage_mult = 1;
TurretDamageUpBig.modify_up_range_mult = 0;
TurretDamageUpBig.modify_up_rate_mult = 0;
TurretDamageUpBigExchange = new Object();
TurretDamageUpBigExchange.turret_unlock = 1100;
TurretDamageUpBigExchange.turret_available = false;
TurretDamageUpBigExchange.turret_cost = 3500;
TurretDamageUpBigExchange.weapon_range = 80;
TurretDamageUpBigExchange.upgrade_range = {cost:[1500], amount:[130]};
TurretDamageUpBigExchange.modify_up_damage = 0;
TurretDamageUpBigExchange.modify_up_range = 0;
TurretDamageUpBigExchange.modify_up_rate = 0;
TurretDamageUpBigExchange.modify_up_damage_mult = 1;
TurretDamageUpBigExchange.modify_up_range_mult = -0.3;
TurretDamageUpBigExchange.modify_up_rate_mult = -0.3;
}
function initTurretsSuper() {
TurretSniper = new Object();
TurretSniper.turret_unlock = 1300;
TurretSniper.turret_available = false;
TurretSniper.turret_cost = 12000;
TurretSniper.weapon_damage = 3000000 /* 0x2DC6C0 */;
TurretSniper.weapon_range = 300;
TurretSniper.weapon_rate = 30;
TurretSniper.weapon_poison = 0;
TurretSniper.weapon_rotate = 90;
TurretSniper.upgrade_damage = {cost:[5000, 7500, 10000], amount:[7000000, 15000000, 55000000]};
TurretSniper.upgrade_range = {cost:[4000, 4000], amount:[400, 500]};
TurretSniper.upgrade_rate = {cost:[5000, 8000], amount:[45, 60]};
TurretSniper.freak_capable = false;
TurretSniper.freak_available = false;
TurretSniper.freak_length = 5000;
TurretSniper.freak_space = 180000 /* 0x02BF20 */;
TurretSniper.freak_damage_mult = 3;
TurretSniper.freak_range_mult = 0;
TurretSniper.freak_rate_mult = 4;
TurretSniper.freak_level_damage = 3;
TurretSniper.freak_level_range = 2;
TurretSniper.freak_level_rate = 2;
TurretSniper.modify_possible = false;
TurretRailgun = new Object();
TurretRailgun.turret_unlock = 1500;
TurretRailgun.turret_available = false;
TurretRailgun.turret_cost = 12000;
TurretRailgun.weapon_damage = 4000000 /* 0x3D0900 */;
TurretRailgun.weapon_range = 300;
TurretRailgun.weapon_rate = 30;
TurretRailgun.weapon_poison = 0;
TurretRailgun.weapon_rotate = 90;
TurretRailgun.upgrade_damage = {cost:[5000, 7500, 10000], amount:[9000000, 15000000, 25000000]};
TurretRailgun.upgrade_range = {cost:[4000, 4000], amount:[400, 500]};
TurretRailgun.upgrade_rate = {cost:[5000, 6000], amount:[60, 90]};
TurretRailgun.freak_capable = false;
TurretRailgun.freak_available = false;
TurretRailgun.freak_length = 5000;
TurretRailgun.freak_space = 180000 /* 0x02BF20 */;
TurretRailgun.freak_damage_mult = 3;
TurretRailgun.freak_range_mult = 0;
TurretRailgun.freak_rate_mult = 4;
TurretRailgun.freak_level_damage = 3;
TurretRailgun.freak_level_range = 2;
TurretRailgun.freak_level_rate = 2;
TurretRailgun.modify_possible = false;
TurretFusion = new Object();
TurretFusion.turret_unlock = 1400;
TurretFusion.turret_available = false;
TurretFusion.turret_cost = 12000;
TurretFusion.weapon_damage = 4000000 /* 0x3D0900 */;
TurretFusion.weapon_range = 300;
TurretFusion.weapon_rate = 30;
TurretFusion.weapon_poison = 0;
TurretFusion.weapon_rotate = 90;
TurretFusion.upgrade_damage = {cost:[5000, 7500, 10000], amount:[3000000, 10000000, 35000000]};
TurretFusion.upgrade_range = {cost:[4000, 4000], amount:[400, 500]};
TurretFusion.upgrade_rate = {cost:[5000, 8000], amount:[60, 90]};
TurretFusion.freak_capable = false;
TurretFusion.freak_available = false;
TurretFusion.freak_length = 5000;
TurretFusion.freak_space = 180000 /* 0x02BF20 */;
TurretFusion.freak_damage_mult = 3;
TurretFusion.freak_range_mult = 0;
TurretFusion.freak_rate_mult = 4;
TurretFusion.freak_level_damage = 3;
TurretFusion.freak_level_range = 2;
TurretFusion.freak_level_rate = 2;
TurretFusion.modify_possible = false;
TurretCombonly = new Object();
TurretCombonly.turret_unlock = 1600;
TurretCombonly.turret_available = false;
TurretCombonly.turret_cost = 5000;
TurretTargeter = new Object();
TurretTargeter.turret_unlock = 1200;
TurretTargeter.turret_available = false;
TurretTargeter.turret_cost = 1400;
}
function initCombos() {
var _local4 = Combos.list();
var _local3;
var _local5;
var _local6;
var _local2 = 0;
while (_local2 < _local4.length) {
_local3 = _local4[_local2];
_local5 = Combos.data_raw(_local3);
_local6 = "Combo_" + _local3;
this[_local6] = _local5;
_local2++;
}
}
function initManagers() {
var _local2 = new Object();
_local2.attacker_hp_rate_easy = new Object({wave:[1, 10, 30, 40, 60, 80, 100, 120, 200], rate:[1.3, 1.2, 1.15, 1.1, 1.09, 1.05, 1.04, 1.03, 1.02]});
_local2.attacker_hp_rate_medium = new Object({wave:[1, 10, 20, 30, 40, 60, 80, 100, 120, 200], rate:[1.3, 1.2, 1.25, 1.15, 1.1, 1.09, 1.05, 1.04, 1.03, 1.02]});
_local2.attacker_hp_rate_hard = new Object({wave:[1, 10, 30, 40, 60, 100, 120, 200], rate:[1.4, 1.3, 1.2, 1.1, 1.05, 1.04, 1.03, 1.02]});
_local2.attacker_hp_rate_extreme = new Object({wave:[1], rate:[1.125]});
_local2.attacker_speed_easy = 60;
_local2.attacker_speed_medium = 60;
_local2.attacker_speed_hard = 80;
_local2.attacker_speed_extreme = 80;
_local2.wave_size = 10;
_local2.wave_spacing = 20000;
_local2.attacker_spacing = 700;
_local2.attacker_energy = 10;
_local2.attacker_upgrade_rate = 1.125;
_local2.starting_cash_easy = 30;
_local2.starting_cash_medium = 30;
_local2.starting_cash_hard = 30;
_local2.starting_cash_extreme = 30;
_local2.starting_cash_sandbox = 100000 /* 0x0186A0 */;
_local2.starting_cash_sandbox2 = 1000000 /* 0x0F4240 */;
_local2.starting_cash_debug = 10000000 /* 0x989680 */;
GameSettings = _local2;
}
function initAssetLibrary() {
asset_library = new Object();
var _local2;
var _local3;
_local2 = new mods.ModLibraryItem();
_local2.title = "Test Indexed Array";
_local2.desc = "Test Indexed Array";
_local2.min = 1;
_local2.key_field = "the_key";
_local2.val_field = "the_val";
_local2.key_asset = "test_array_key";
_local2.val_asset = "test_array_val";
_local3 = new mods.ModLibraryItem();
_local3.title = "The Key";
_local3.desc = "Key field";
_local3.unit = "x";
_local3.min = 1;
_local3.step = 1;
_local2.key_data = _local3;
_local3 = new mods.ModLibraryItem();
_local3.title = "The Value";
_local3.desc = "Value field";
_local3.unit = "y";
_local3.min = 1;
_local3.step = 1;
_local2.val_data = _local3;
asset_library.test_array = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Test String";
_local2.desc = "Test String";
_local2.unit = "chars";
asset_library.test_string = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Test Number";
_local2.desc = "Test Number";
_local2.min = -100;
_local2.max = 100;
_local2.step = 0.5;
_local2.unit = "x";
asset_library.test_number = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Test Integer";
_local2.desc = "Test Integer";
_local2.min = -100;
_local2.max = 100;
_local2.unit = "chars";
asset_library.test_int = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Initial Damage";
_local2.desc = "Initial damage of the turret when it is first built";
_local2.min = 1;
_local2.unit = "hit points";
asset_library.weapon_damage = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Initial Range";
_local2.desc = "Initial range of the turret when it is first built";
_local2.min = 10;
_local2.max = 800;
_local2.unit = "pixels";
asset_library.weapon_range = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Initial Rate of Fire";
_local2.desc = "Initial rate of fire of the turret when it is first built";
_local2.min = 1;
_local2.max = 300;
_local2.unit = "round/minute";
asset_library.weapon_rate = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Initial Poison";
_local2.desc = "Initial poison of the turret when it is first built";
_local2.min = 0;
_local2.max = 40;
_local2.unit = "movement speed/sec";
asset_library.weapon_poison = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Weapon Rotation";
_local2.desc = "Speed that the turret can bear round towards it's target";
_local2.min = 1;
_local2.max = 720;
_local2.unit = "degrees/sec";
asset_library.weapon_rotate = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Fire when facing";
_local2.desc = "If the weapon has to be facing the target straight on before it can fire";
asset_library.weapon_must_face = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Can Be Modified";
_local2.desc = "Wether or not modifier turrets will affect this turret";
asset_library.modify_possible = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Combo";
_local2.desc = "If the turret is initially combo-capable when it is first built";
asset_library.combo_capable = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Never Combo";
_local2.desc = "If the turret will never be available for combos";
asset_library.combo_never = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Freakout Capability";
_local2.desc = "If the turret is capable of Freakout";
asset_library.freak_capable = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Freakout Available Now";
_local2.desc = "If the turret is initially able to Freakout when it is first built";
asset_library.freak_available = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Freakout Length";
_local2.desc = "Amount of time a Freakout will last";
_local2.min = 1000;
_local2.max = 60000;
_local2.step = 100;
_local2.unit = "msecs";
asset_library.freak_length = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Freakout Spacing";
_local2.desc = "Minimum amount of time between Freakouts";
_local2.min = 10000;
_local2.step = 1000;
_local2.unit = "msecs";
asset_library.freak_space = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Freak Damage x";
_local2.desc = "Damage multiplier in effect during a Freakout";
_local2.min = 1;
asset_library.freak_damage_mult = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Freak Range x";
_local2.desc = "Range multiplier in effect during a Freakout";
_local2.min = 1;
asset_library.freak_range_mult = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Freak Rate x";
_local2.desc = "Rate of fire multiplier in effect during a Freakout";
_local2.min = 1;
asset_library.freak_rate_mult = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Freak Damage Level";
_local2.desc = "Damage upgrade level required to enable Freakouts";
_local2.min = 1;
asset_library.freak_level_damage = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Freak Range Level";
_local2.desc = "Range upgrade level required to enable Freakouts";
_local2.min = 1;
asset_library.freak_level_range = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Freak Rate Level";
_local2.desc = "Rate of fire upgrade level required to enable Freakouts";
_local2.min = 1;
asset_library.freak_level_rate = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Mod Damage +";
_local2.desc = "Amount of damage this modifier turret adds";
_local2.min = -420;
_local2.max = 420;
_local2.step = 1;
_local2.unit = "hit points";
asset_library.modify_up_damage = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Mod Range +";
_local2.desc = "Amount of range this modifier turret adds";
_local2.min = -420;
_local2.max = 420;
_local2.step = 1;
_local2.unit = "pixels";
asset_library.modify_up_range = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Mod Rate +";
_local2.desc = "Amount of rate of fire this modifier turret adds";
_local2.min = -420;
_local2.max = 420;
_local2.step = 1;
_local2.unit = "rounds/min";
asset_library.modify_up_rate = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Mod Damage x";
_local2.desc = "Damage multiplier this modifier turret adds";
_local2.min = -20;
_local2.max = 20;
_local2.step = 0.1;
asset_library.modify_up_damage_mult = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Mod Range x";
_local2.desc = "Range multiplier this modifier turret adds";
_local2.min = -20;
_local2.max = 20;
_local2.step = 0.1;
asset_library.modify_up_range_mult = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Mod Rate x";
_local2.desc = "Rate of fire multiplier this modifier turret adds";
_local2.min = -20;
_local2.max = 20;
_local2.step = 0.1;
asset_library.modify_up_rate_mult = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Damage Upgrade Path";
_local2.desc = "The amount of damage and cost of each upgrade";
_local2.min = 1;
_local2.key_field = "cost";
_local2.val_field = "amount";
_local2.key_asset = "upgrade_damage_cost";
_local2.val_asset = "upgrade_damage_amount";
_local3 = new mods.ModLibraryItem();
_local3.title = "Cost";
_local3.desc = "How much this upgrade will cost";
_local3.unit = "$";
_local3.min = 1;
_local3.step = 1;
_local2.key_data = _local3;
_local3 = new mods.ModLibraryItem();
_local3.title = "Damage";
_local3.desc = "Upgraded damage";
_local3.unit = "hp";
_local3.min = 1;
_local3.step = 1;
_local2.val_data = _local3;
asset_library.upgrade_damage = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Range Upgrade Path";
_local2.desc = "The amount of range and cost of each upgrade";
_local2.min = 1;
_local2.key_field = "cost";
_local2.val_field = "amount";
_local2.key_asset = "upgrade_range_cost";
_local2.val_asset = "upgrade_range_amount";
_local3 = new mods.ModLibraryItem();
_local3.title = "Cost";
_local3.desc = "How much this upgrade will cost";
_local3.unit = "$";
_local3.min = 1;
_local3.step = 1;
_local2.key_data = _local3;
_local3 = new mods.ModLibraryItem();
_local3.title = "Range";
_local3.desc = "New range";
_local3.unit = "pixels";
_local3.min = 1;
_local3.step = 1;
_local2.val_data = _local3;
asset_library.upgrade_range = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Rate of Fire Upgrade Path";
_local2.desc = "The rate of fire and cost of each upgrade";
_local2.min = 1;
_local2.key_field = "cost";
_local2.val_field = "amount";
_local2.key_asset = "upgrade_rate_cost";
_local2.val_asset = "upgrade_rate_amount";
_local3 = new mods.ModLibraryItem();
_local3.title = "Cost";
_local3.desc = "How much this upgrade will cost";
_local3.unit = "$";
_local3.min = 1;
_local3.step = 1;
_local2.key_data = _local3;
_local3 = new mods.ModLibraryItem();
_local3.title = "Rate";
_local3.desc = "Rate of fire";
_local3.unit = "r/min";
_local3.min = 60;
_local3.step = 1;
_local2.val_data = _local3;
asset_library.upgrade_rate = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Kills to Unlock";
_local2.desc = "Number of kills required to unlock this turret";
_local2.min = 1;
_local2.step = 1;
asset_library.turret_unlock = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Initial Availability";
_local2.desc = "If this turret is initially available to purchase";
asset_library.turret_available = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Purchase Cost";
_local2.desc = "Amount of cash required to buy this turret";
_local2.min = 1;
_local2.step = 1;
asset_library.turret_cost = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Combo Recharge";
_local2.desc = "Amount of time before the turrets used firing this combo can used to combo again";
_local2.min = 1000;
_local2.step = 100;
_local2.unit = "milliseconds";
asset_library.recharge = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Bullet Damage";
_local2.desc = "Amount of damage done by the combo projectile on impact with the target";
_local2.min = 0;
_local2.unit = "hit points";
asset_library.bullet_damage = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Bullet Poison";
_local2.desc = "Amount of poison inflicted by the combo projectile on impact with the target";
_local2.min = 0;
_local2.max = 90;
_local2.unit = "movement speed/sec";
asset_library.bullet_poison = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Cluster Damage";
_local2.desc = "Amount of damage done by each cluster rocket for cluster blasts";
_local2.min = 0;
_local2.unit = "hit points";
asset_library.cluster_damage = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Cluster Quantity";
_local2.desc = "Amount of cluster rockets released on impact";
_local2.min = 0;
asset_library.cluster_qty = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Cluster Holding";
_local2.desc = "Are the cluster rockets allowed to enter holding pattern?";
asset_library.cluster_holding = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Cluster Laser";
_local2.desc = "Do the cluster rockets also fire lasers?";
asset_library.cluster_laser = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Cluster Laser Damage";
_local2.desc = "Amount of damage done by the lasers fired by the cluster rockets";
_local2.min = 0;
_local2.unit = "hit points";
asset_library.cluster_laser_damage = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Blast Damage";
_local2.desc = "Amount of damage done by the main blast";
_local2.min = 0;
_local2.unit = "hit points";
asset_library.blast_damage = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Blast Poison";
_local2.desc = "Amount of poison inflicted by the main blast";
_local2.min = 0;
_local2.max = 90;
_local2.unit = "movement speed/sec";
asset_library.blast_poison = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Laser Damage";
_local2.desc = "Amount of damage done by the lasers fired by cluster blasts";
_local2.min = 0;
_local2.unit = "hit points";
asset_library.laser_damage = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Laser Range";
_local2.desc = "Firing range of laser rockets fired by cluster blasts";
_local2.min = 50;
_local2.max = 800;
_local2.unit = "pixels";
asset_library.laser_range = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Laser Rate";
_local2.desc = "Rate of fire of laser rockets fired by cluster blasts";
_local2.min = 1;
_local2.max = 240;
_local2.unit = "rounds/min";
asset_library.laser_rate = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Rocket Damage";
_local2.desc = "Amount of damage done by cluster rockets on impact";
_local2.min = 0;
_local2.unit = "hit points";
asset_library.rocket_damage = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Move Speed";
_local2.desc = "Speed that the projectile travels";
_local2.min = 60;
_local2.unit = "pixels/sec";
asset_library.move_speed = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Laser-blast Damage";
_local2.desc = "Damage inflicted by lasers fired by a combo laser-blast";
_local2.min = 0;
_local2.unit = "hit points";
asset_library.laserblast_damage = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Laser-blast Quantity";
_local2.desc = "Number of lasers fired by a combo laser-blast";
_local2.min = 1;
asset_library.laserblast_qty = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Laser-blast Range";
_local2.desc = "Range of lasers fired by a combo laser-blast";
_local2.min = 1;
_local2.max = 800;
_local2.unit = "pixels";
asset_library.laserblast_range = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Fuel Quantity";
_local2.desc = "Number of sub-blasts fired by a napalm blast";
_local2.min = 1;
_local2.max = 40;
_local2.step = 1;
_local2.unit = "blasts";
asset_library.napalm_quantity = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Blast Timing";
_local2.desc = "Time between individual napalm blasts";
_local2.min = 10;
_local2.max = 500;
_local2.step = 5;
_local2.unit = "milliseconds";
asset_library.napalm_timing = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Blast Stagger";
_local2.desc = "How widely spread the napalm blast is";
_local2.min = 5;
_local2.max = 100;
_local2.step = 1;
_local2.unit = "pixels";
asset_library.napalm_jit = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Event Horizon";
_local2.desc = "How close something can get to a blackhole before it is sucked in";
_local2.min = 1;
_local2.max = 720;
_local2.step = 10;
_local2.unit = "pixels";
asset_library.blackhole_radius = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Duration";
_local2.desc = "How long a blackhole persists";
_local2.min = 100;
_local2.max = 20000;
_local2.step = 100;
_local2.unit = "milliseconds";
asset_library.blackhole_duration = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Wormhole Theory";
_local2.desc = "Are blackholed items ejected into an alternate universe instead of simply being destroyed?";
asset_library.blackhole_eject = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Attacker HP Progression (Easy)";
_local2.desc = "The rate at which attackers get harder in an easy game";
_local2.min = 1;
_local2.key_field = "wave";
_local2.val_field = "rate";
_local3 = new mods.ModLibraryItem();
_local3.title = "Wave";
_local3.desc = "The wave at which this happens";
_local3.min = 1;
_local3.step = 1;
_local2.key_data = _local3;
_local3 = new mods.ModLibraryItem();
_local3.title = "Multiplier";
_local3.desc = "Next wave of creeps HP is mulitplied by this amount";
_local3.min = 1;
_local3.step = 0.01;
_local2.val_data = _local3;
asset_library.attacker_hp_rate_easy = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Attacker HP Progression (Medium)";
_local2.desc = "The rate at which attackers get harder in a medium game";
_local2.min = 1;
_local2.key_field = "wave";
_local2.val_field = "rate";
_local3 = new mods.ModLibraryItem();
_local3.title = "Wave";
_local3.desc = "The wave at which this happens";
_local3.min = 1;
_local3.step = 1;
_local2.key_data = _local3;
_local3 = new mods.ModLibraryItem();
_local3.title = "Multiplier";
_local3.desc = "Next wave of creeps HP is mulitplied by this amount";
_local3.min = 1;
_local3.step = 0.01;
_local2.val_data = _local3;
asset_library.attacker_hp_rate_medium = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Attacker HP Progression (Hard)";
_local2.desc = "The rate at which attackers get harder in a hard game";
_local2.min = 1;
_local2.key_field = "wave";
_local2.val_field = "rate";
_local3 = new mods.ModLibraryItem();
_local3.title = "Wave";
_local3.desc = "The wave at which this happens";
_local3.min = 1;
_local3.step = 1;
_local2.key_data = _local3;
_local3 = new mods.ModLibraryItem();
_local3.title = "Multiplier";
_local3.desc = "Next wave of creeps HP is mulitplied by this amount";
_local3.min = 1;
_local3.step = 0.01;
_local2.val_data = _local3;
asset_library.attacker_hp_rate_hard = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Attacker HP Progression (Extreme)";
_local2.desc = "The rate at which attackers get harder in an extreme game";
_local2.min = 1;
_local2.key_field = "wave";
_local2.val_field = "rate";
_local3 = new mods.ModLibraryItem();
_local3.title = "Wave";
_local3.desc = "The wave at which this happens";
_local3.min = 1;
_local3.step = 1;
_local2.key_data = _local3;
_local3 = new mods.ModLibraryItem();
_local3.title = "Multiplier";
_local3.desc = "Next wave of creeps HP is mulitplied by this amount";
_local3.min = 1;
_local3.step = 0.01;
_local2.val_data = _local3;
asset_library.attacker_hp_rate_extreme = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Attacker Speed (Easy)";
_local2.desc = "Speed creeps will move down the road in an easy game";
_local2.min = 40;
_local2.max = 600;
_local2.unit = "pixels/sec";
asset_library.attacker_speed_easy = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Attacker Speed (Medium)";
_local2.desc = "Speed creeps will move down the road in a medium game";
_local2.min = 40;
_local2.max = 600;
_local2.unit = "pixels/sec";
asset_library.attacker_speed_medium = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Attacker Speed (Hard)";
_local2.desc = "Speed creeps will move down the road in a hard game";
_local2.min = 40;
_local2.max = 600;
_local2.unit = "pixels/sec";
asset_library.attacker_speed_hard = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Attacker Speed (Extreme)";
_local2.desc = "Speed creeps will move down the road in an extreme game";
_local2.min = 40;
_local2.max = 600;
_local2.unit = "pixels/sec";
asset_library.attacker_speed_extreme = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Wave Spacing";
_local2.desc = "Time between each wave of creeps";
_local2.min = 5000;
_local2.max = 40000;
_local2.step = 100;
_local2.unit = "milliseconds";
asset_library.wave_spacing = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Attacker Spacing";
_local2.desc = "Time between creeps in a wave";
_local2.min = 100;
_local2.max = 40000;
_local2.step = 100;
_local2.unit = "milliseconds";
asset_library.attacker_spacing = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Wave Size";
_local2.desc = "Number of creeps per wave";
_local2.min = 1;
_local2.max = 30;
asset_library.wave_size = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Attacker HP";
_local2.desc = "Initial HP of a creep at the start of the game";
_local2.min = 1;
_local2.max = 100;
_local2.unit = "hit points";
asset_library.attacker_energy = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Attacker HP Upgrade Rate";
_local2.desc = "Initial attacker HP multiplier per wave";
_local2.min = 1;
_local2.max = 10;
_local2.unit = "multiplier per wave";
asset_library.attacker_upgrade_rate = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Cash (easy)";
_local2.desc = "Amount of cash at the start of an easy game";
_local2.min = 1;
_local2.step = 1;
_local2.max = 10000000 /* 0x989680 */;
_local2.unit = "dollars";
asset_library.starting_cash_easy = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Cash (medium)";
_local2.desc = "Amount of cash at the start of a medium game";
_local2.min = 1;
_local2.step = 1;
_local2.max = 10000000 /* 0x989680 */;
_local2.unit = "dollars";
asset_library.starting_cash_medium = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Cash (hard)";
_local2.desc = "Amount of cash at the start of a hard game";
_local2.min = 1;
_local2.step = 1;
_local2.max = 10000000 /* 0x989680 */;
_local2.unit = "dollars";
asset_library.starting_cash_hard = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Cash (extreme)";
_local2.desc = "Amount of cash at the start of an extreme game";
_local2.min = 1;
_local2.step = 1;
_local2.max = 10000000 /* 0x989680 */;
_local2.unit = "dollars";
asset_library.starting_cash_extreme = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Cash (sandbox)";
_local2.desc = "Amount of cash at the start of a sandbox game";
_local2.min = 1;
_local2.step = 1;
_local2.max = 10000000 /* 0x989680 */;
_local2.unit = "dollars";
asset_library.starting_cash_sandbox = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Cash (sandbox 2)";
_local2.desc = "Amount of cash at the start of a second level sandbox game";
_local2.min = 1;
_local2.step = 1;
_local2.max = 10000000 /* 0x989680 */;
_local2.unit = "dollars";
asset_library.starting_cash_sandbox2 = _local2;
_local2 = new mods.ModLibraryItem();
_local2.title = "Cash (debug)";
_local2.desc = "Amount of cash at the start of a debug game";
_local2.min = 1;
_local2.step = 1;
_local2.max = 10000000 /* 0x989680 */;
_local2.unit = "dollars";
asset_library.starting_cash_debug = _local2;
}
function initModAssets() {
mod_assets = new Object();
var _local11 = new Object({turret_cost:MOD_NUMBER, weapon_damage:MOD_NUMBER, weapon_range:MOD_NUMBER, weapon_rate:MOD_NUMBER, weapon_poison:MOD_NUMBER, weapon_rotate:MOD_NUMBER, weapon_must_face:MOD_BOOLEAN, upgrade_damage:MOD_ARRAY_INDEXED, upgrade_range:MOD_ARRAY_INDEXED, upgrade_rate:MOD_ARRAY_INDEXED, modify_possible:MOD_BOOLEAN, combo_capable:MOD_BOOLEAN, combo_never:MOD_BOOLEAN, freak_capable:MOD_BOOLEAN, freak_available:MOD_BOOLEAN, freak_length:MOD_NUMBER, freak_space:MOD_NUMBER, freak_damage_mult:MOD_NUMBER, freak_range_mult:MOD_NUMBER, freak_rate_mult:MOD_NUMBER, freak_level_damage:MOD_NUMBER, freak_level_range:MOD_NUMBER, freak_level_rate:MOD_NUMBER});
var _local10 = new Object({turret_unlock:MOD_NUMBER, turret_cost:MOD_NUMBER, turret_available:MOD_BOOLEAN, weapon_range:MOD_NUMBER, upgrade_range:MOD_ARRAY_INDEXED, modify_up_damage:MOD_NUMBER, modify_up_range:MOD_NUMBER, modify_up_rate:MOD_NUMBER, modify_up_damage_mult:MOD_NUMBER, modify_up_range_mult:MOD_NUMBER, modify_up_rate_mult:MOD_NUMBER});
var _local15 = new Object({turret_unlock:MOD_NUMBER, turret_cost:MOD_NUMBER, turret_available:MOD_BOOLEAN, freak_length:MOD_NUMBER, freak_space:MOD_NUMBER, freak_damage_mult:MOD_NUMBER, freak_range_mult:MOD_NUMBER, freak_rate_mult:MOD_NUMBER, freak_level_damage:MOD_NUMBER, freak_level_range:MOD_NUMBER, freak_level_rate:MOD_NUMBER, weapon_damage:MOD_NUMBER, weapon_range:MOD_NUMBER, weapon_rate:MOD_NUMBER, weapon_poison:MOD_NUMBER, weapon_rotate:MOD_NUMBER, modify_possible:MOD_BOOLEAN, weapon_must_face:MOD_BOOLEAN, upgrade_damage:MOD_ARRAY_INDEXED, upgrade_range:MOD_ARRAY_INDEXED, upgrade_rate:MOD_ARRAY_INDEXED});
var _local12 = new Object({turret_unlock:MOD_NUMBER, turret_cost:MOD_NUMBER, turret_available:MOD_BOOLEAN, weapon_damage:MOD_NUMBER, weapon_range:MOD_NUMBER, weapon_rate:MOD_NUMBER, weapon_poison:MOD_NUMBER, weapon_rotate:MOD_NUMBER, weapon_must_face:MOD_BOOLEAN, upgrade_damage:MOD_ARRAY_INDEXED, upgrade_range:MOD_ARRAY_INDEXED, upgrade_rate:MOD_ARRAY_INDEXED, modify_possible:MOD_BOOLEAN, freak_capable:MOD_BOOLEAN, freak_available:MOD_BOOLEAN, freak_length:MOD_NUMBER, freak_space:MOD_NUMBER, freak_damage_mult:MOD_NUMBER, freak_range_mult:MOD_NUMBER, freak_rate_mult:MOD_NUMBER, freak_level_damage:MOD_NUMBER, freak_level_range:MOD_NUMBER, freak_level_rate:MOD_NUMBER});
var _local16 = new Object({test_array:MOD_ARRAY_INDEXED, test_string:MOD_STRING, test_number:MOD_NUMBER, test_int:MOD_INT});
var _local13 = new Object({turret_unlock:MOD_NUMBER, turret_cost:MOD_NUMBER, turret_available:MOD_BOOLEAN});
mod_assets.Test = _local16;
mod_assets.TurretBlue = _local11;
mod_assets.TurretGreen = _local11;
mod_assets.TurretRed = _local11;
mod_assets.TurretYellow = _local11;
mod_assets.TurretSniper = _local12;
mod_assets.TurretRailgun = _local12;
mod_assets.TurretFusion = _local15;
mod_assets.TurretRangeUp = _local10;
mod_assets.TurretDamageUp = _local10;
mod_assets.TurretRateUpExchange = _local10;
mod_assets.TurretRangeUpExchange = _local10;
mod_assets.TurretRateUp = _local10;
mod_assets.TurretDamageUpBig = _local10;
mod_assets.TurretDamageUpBigExchange = _local10;
mod_assets.TurretCombonly = _local13;
mod_assets.TurretTargeter = _local13;
var _local7 = Combos.list();
var _local6;
var _local4;
var _local8;
var _local3;
var _local2;
var _local5 = 0;
while (_local5 < _local7.length) {
_local6 = _local7[_local5];
_local4 = Combos.data_raw(_local6);
_local8 = "Combo_" + _local6;
_local2 = new Object();
for (var _local9 in _local4) {
_local3 = typeof(_local4[_local9]);
switch (_local3) {
case "number" :
_local2[_local9] = MOD_NUMBER;
break;
case "boolean" :
_local2[_local9] = MOD_BOOLEAN;
break;
case "string" :
_local2[_local9] = MOD_STRING;
break;
default :
trace((("Unknown type: " + _local9) + " => ") + _local3);
}
}
mod_assets[_local8] = _local2;
_local5++;
}
var _local14 = new Object({attacker_energy:MOD_NUMBER, attacker_upgrade_rate:MOD_NUMBER, attacker_hp_rate_easy:MOD_ARRAY_INDEXED, attacker_hp_rate_medium:MOD_ARRAY_INDEXED, attacker_hp_rate_hard:MOD_ARRAY_INDEXED, attacker_hp_rate_extreme:MOD_ARRAY_INDEXED, attacker_speed_easy:MOD_NUMBER, attacker_speed_medium:MOD_NUMBER, attacker_speed_hard:MOD_NUMBER, attacker_speed_extreme:MOD_NUMBER, attacker_spacing:MOD_NUMBER, wave_spacing:MOD_NUMBER, wave_size:MOD_NUMBER, starting_cash_easy:MOD_NUMBER, starting_cash_medium:MOD_NUMBER, starting_cash_hard:MOD_NUMBER, starting_cash_extreme:MOD_NUMBER, starting_cash_sandbox:MOD_NUMBER, starting_cash_sandbox2:MOD_NUMBER});
mod_assets.GameSettings = _local14;
}
static var MOD_BOOLEAN = mods.ModManager.MOD_BOOLEAN;
static var MOD_STRING = mods.ModManager.MOD_STRING;
static var MOD_NUMBER = mods.ModManager.MOD_NUMBER;
static var MOD_INT = mods.ModManager.MOD_INT;
static var MOD_ARRAY = mods.ModManager.MOD_ARRAY;
static var MOD_ARRAY_INDEXED = mods.ModManager.MOD_ARRAY_INDEXED;
}
Symbol 1232 MovieClip [__Packages.Combos] Frame 0
class Combos
{
static var mod, combo_data;
function Combos () {
}
static function data(combo) {
if (init_done != true) {
init();
}
return(mod.modCombo(combo));
}
static function data_raw(combo) {
if (init_done != true) {
init();
}
return(combo_data[combo]);
}
static function list() {
if (init_done != true) {
init();
}
var _local1 = new Array();
for (var _local2 in combo_data) {
_local1.push(_local2);
}
return(_local1);
}
static function init() {
init_done = true;
combo_data = new Object();
var _local1;
_local1 = new ComboData();
_local1.recharge = 5000;
_local1.bullet_damage = 5000000 /* 0x4C4B40 */;
_local1.cluster_damage = 3300000 /* 0x325AA0 */;
_local1.cluster_qty = 6;
_local1.cluster_holding = true;
_local1.blast_damage = 7000000 /* 0x6ACFC0 */;
combo_data.clusterbomb = _local1;
_local1 = new ComboData();
_local1.recharge = 5000;
_local1.bullet_damage = 5500000 /* 0x53EC60 */;
_local1.cluster_damage = 800000 /* 0x0C3500 */;
_local1.cluster_qty = 8;
_local1.cluster_holding = true;
_local1.blast_damage = 4700000 /* 0x47B760 */;
combo_data.sparky_clusterbomb = _local1;
_local1 = new ComboData();
_local1.recharge = 6200;
_local1.bullet_damage = 8000000 /* 0x7A1200 */;
_local1.cluster_damage = 4500000 /* 0x44AA20 */;
_local1.cluster_qty = 10;
_local1.cluster_holding = true;
_local1.blast_damage = 8000000 /* 0x7A1200 */;
combo_data.big_clusterbomb = _local1;
_local1 = new ComboData();
_local1.recharge = 6200;
_local1.bullet_damage = 6000000 /* 0x5B8D80 */;
_local1.cluster_damage = 15000;
_local1.cluster_qty = 12;
_local1.cluster_holding = true;
_local1.blast_damage = 5000000 /* 0x4C4B40 */;
combo_data.big_sparky_clusterbomb = _local1;
_local1 = new ComboData();
_local1.recharge = 10000;
_local1.bullet_damage = 2000000 /* 0x1E8480 */;
_local1.cluster_damage = 2000000 /* 0x1E8480 */;
_local1.cluster_qty = 5;
_local1.cluster_holding = true;
_local1.cluster_laser_damage = 700000 /* 0x0AAE60 */;
_local1.blast_damage = 4000000 /* 0x3D0900 */;
combo_data.laser_clusterbomb = _local1;
_local1 = new ComboData();
_local1.recharge = 11400;
_local1.bullet_damage = 4000000 /* 0x3D0900 */;
_local1.cluster_qty = 5;
_local1.cluster_laser_damage = 900000 /* 0x0DBBA0 */;
_local1.cluster_holding = true;
_local1.cluster_damage = 2000000 /* 0x1E8480 */;
_local1.blast_damage = 6000000 /* 0x5B8D80 */;
combo_data.big_laser_clusterbomb = _local1;
_local1 = new ComboData();
_local1.recharge = 7000;
_local1.bullet_damage = 10000000 /* 0x989680 */;
_local1.blast_damage = 9000000 /* 0x895440 */;
combo_data.landmine = _local1;
_local1 = new ComboData();
_local1.recharge = 7000;
_local1.bullet_damage = 9000000 /* 0x895440 */;
_local1.blast_damage = 15000000 /* 0xE4E1C0 */;
combo_data.big_landmine = _local1;
_local1 = new ComboData();
_local1.recharge = 7000;
_local1.bullet_damage = 9000000 /* 0x895440 */;
_local1.blast_damage = 15000000 /* 0xE4E1C0 */;
_local1.cluster_qty = 8;
combo_data.sparky_landmine = _local1;
_local1 = new ComboData();
_local1.recharge = 8000;
_local1.bullet_damage = 9000000 /* 0x895440 */;
_local1.cluster_qty = 10;
_local1.cluster_holding = true;
_local1.cluster_damage = 4500000 /* 0x44AA20 */;
_local1.blast_damage = 15000000 /* 0xE4E1C0 */;
combo_data.big_cluster_landmine = _local1;
_local1 = new ComboData();
_local1.recharge = 10800;
_local1.bullet_damage = 7000000 /* 0x6ACFC0 */;
_local1.cluster_laser_damage = 1000000 /* 0x0F4240 */;
_local1.cluster_qty = 10;
_local1.cluster_holding = true;
_local1.cluster_damage = 2000000 /* 0x1E8480 */;
_local1.blast_damage = 9000000 /* 0x895440 */;
combo_data.big_laser_cluster_landmine = _local1;
_local1 = new ComboData();
_local1.recharge = 9000;
_local1.bullet_damage = 5800000 /* 0x588040 */;
_local1.blast_damage = 7500000 /* 0x7270E0 */;
_local1.laser_damage = 4200000 /* 0x401640 */;
_local1.laser_range = 250;
_local1.laser_rate = 180;
_local1.move_speed = 60;
combo_data.bfg = _local1;
_local1 = new ComboData();
_local1.recharge = 9000;
_local1.bullet_damage = 5800000 /* 0x588040 */;
_local1.blast_damage = 7500000 /* 0x7270E0 */;
_local1.laser_damage = 4200000 /* 0x401640 */;
_local1.laser_range = 250;
_local1.laser_rate = 180;
_local1.move_speed = 60;
combo_data.tazer_bfg = _local1;
_local1 = new ComboData();
_local1.recharge = 9000;
_local1.bullet_damage = 6500000 /* 0x632EA0 */;
_local1.blast_damage = 7500000 /* 0x7270E0 */;
_local1.laser_damage = 4500000 /* 0x44AA20 */;
_local1.laser_range = 250;
_local1.laser_rate = 180;
_local1.rocket_damage = 2000000 /* 0x1E8480 */;
_local1.move_speed = 60;
combo_data.rocket_bfg = _local1;
_local1 = new ComboData();
_local1.recharge = 3000;
_local1.bullet_damage = 2000000 /* 0x1E8480 */;
_local1.laser_damage = 2000000 /* 0x1E8480 */;
_local1.laser_range = 200;
_local1.move_speed = 100;
_local1.laserblast_damage = 1000000 /* 0x0F4240 */;
_local1.laserblast_qty = 6;
_local1.laserblast_range = 300;
combo_data.laser_rocket = _local1;
_local1 = new ComboData();
_local1.recharge = 3000;
_local1.bullet_damage = 2000000 /* 0x1E8480 */;
_local1.laser_damage = 2000000 /* 0x1E8480 */;
_local1.laser_range = 200;
_local1.move_speed = 100;
combo_data.tazer_rocket = _local1;
_local1 = new ComboData();
_local1.recharge = 5000;
_local1.bullet_damage = 1000;
_local1.blast_damage = 100;
_local1.move_speed = 150;
combo_data.poison_rocket = _local1;
_local1 = new ComboData();
_local1.recharge = 7400;
_local1.bullet_damage = 9000000 /* 0x895440 */;
_local1.blast_damage = 60000000 /* 0x3938700 */;
_local1.move_speed = 150;
combo_data.nuke = _local1;
_local1 = new ComboData();
_local1.recharge = 20000;
_local1.blackhole_radius = 120;
_local1.blackhole_duration = 3000;
_local1.blackhole_eject = false;
combo_data.blackhole = _local1;
_local1 = new ComboData();
_local1.recharge = 9000;
_local1.bullet_damage = 1000000 /* 0x0F4240 */;
_local1.bullet_poison = 100;
_local1.blast_damage = 1000000 /* 0x0F4240 */;
_local1.blast_poison = 75;
combo_data.shockwave = _local1;
_local1 = new ComboData();
_local1.recharge = 6500;
_local1.bullet_damage = 2000000 /* 0x1E8480 */;
_local1.blast_damage = 2500000 /* 0x2625A0 */;
_local1.napalm_quantity = 16;
_local1.napalm_timing = 75;
_local1.napalm_jit = 30;
combo_data.napalm = _local1;
}
static var init_done = false;
}
Symbol 1233 MovieClip [__Packages.ComboData] Frame 0
class ComboData extends Object
{
function ComboData (data_in) {
super();
for (var _local4 in data_in) {
this[_local4] = data_in[_local4];
}
}
var recharge = 5000;
}
Symbol 1234 MovieClip [__Packages.mods.ModLibraryItem] Frame 0
class mods.ModLibraryItem
{
function ModLibraryItem () {
}
var step = 1;
var key_field = "keys";
var val_field = "values";
}
Symbol 1235 MovieClip [__Packages.GameManager] Frame 0
class GameManager extends OnslaughtManager
{
static var self, mod_active, mod, tx, prefs;
var turrets_cost, turrets_unlock, turrets_available, starting_cash_levels, game_version, GameExit, TheTimeLimit, TheWaveLimit, TheKillTarget, KeyboardManager, GlobalClock, CashManager, BulletManager, TurretManager, AttackerManager, RoadManager, TurretInfo, SmokeManager, OverlayManager, game_type, wave_size_list, attacker_speed_list, starting_cash, challenge_mode, challenge_data, interval_setup, interval_gamewin, game_diff, Loading, time_last, Watermark, WatermarkMod, createTextField, getNextHighestDepth, attachMovie, SoundMute, TurretInfoPoint, game_settings;
function GameManager () {
super();
self = this;
turrets_cost = new Array();
turrets_cost.Blue = 10;
turrets_cost.Green = 15;
turrets_cost.Red = 20;
turrets_cost.Yellow = 50;
turrets_cost.RangeUp = 2000;
turrets_cost.DamageUp = 5000;
turrets_cost.RateUpExchange = 1200;
turrets_cost.RangeUpExchange = 1000;
turrets_cost.RateUp = 3000;
turrets_cost.DamageUpBig = 8500;
turrets_cost.DamageUpBigExchange = 3500;
turrets_cost.Targeter = 1400;
turrets_cost.Sniper = 12000;
turrets_cost.Fusion = 12000;
turrets_cost.Railgun = 12000;
turrets_cost.Combonly = 5000;
turrets_unlock = new Array();
turrets_unlock[300] = new Array("RangeUp");
turrets_unlock[450] = new Array("DamageUp");
turrets_unlock[550] = new Array("RateUpExchange");
turrets_unlock[700] = new Array("RangeUpExchange");
turrets_unlock[850] = new Array("RateUp");
turrets_unlock[1000] = new Array("DamageUpBig");
turrets_unlock[1100] = new Array("DamageUpBigExchange");
turrets_unlock[1200] = new Array("Targeter");
turrets_unlock[1300] = new Array("Sniper");
turrets_unlock[1400] = new Array("Fusion");
turrets_unlock[1500] = new Array("Railgun");
turrets_unlock[1600] = new Array("Combonly");
turrets_available = new Array();
turrets_available.Blue = true;
turrets_available.Green = true;
turrets_available.Red = true;
turrets_available.Yellow = true;
turrets_available.RangeUp = false;
turrets_available.DamageUp = false;
turrets_available.RateUpExchange = false;
turrets_available.RangeUpExchange = false;
turrets_available.RateUp = false;
turrets_available.DamageUpBig = false;
turrets_available.DamageUpBigExchange = false;
turrets_available.Targeter = false;
turrets_available.Sniper = false;
turrets_available.Fusion = false;
turrets_available.Railgun = false;
turrets_available.Combonly = false;
starting_cash_levels = new Array();
starting_cash_levels.easy = 30;
starting_cash_levels.medium = 30;
starting_cash_levels.hard = 30;
starting_cash_levels.extreme = 30;
starting_cash_levels.sandbox = 100000 /* 0x0186A0 */;
starting_cash_levels.sandbox2 = 1000000 /* 0x0F4240 */;
starting_cash_levels.debug = 10000000 /* 0x989680 */;
var _local4 = new ContextMenu();
_local4.builtInItems.print = false;
_local4.builtInItems.play = false;
_local4.builtInItems.loop = false;
_local4.builtInItems.rewind = false;
_local4.builtInItems.forward_back = false;
_root.menu = _local4;
_root._focusrect = false;
game_version = OnslaughtVersion.version;
if (GameStatus.debug_mode == true) {
game_version = game_version + "-d";
}
if (GameStatus.kongregate_mode == true) {
game_version = game_version + "-k";
}
if (GameStatus.gamegum_mode == true) {
game_version = game_version + "-g";
_root.gamegum = new com.pointersoft.gameapi.GameStat(GameStatus.gamegum_user, GameStatus.gamegum_pass, "Onslaught2", _root.Game.game_version);
}
}
function onLoad() {
var _local4 = "0cb46dc8c0130c8d";
GameExit = _root.GameExit;
TheTimeLimit = _root.TheTimeLimit;
TheWaveLimit = _root.TheWaveLimit;
TheKillTarget = _root.TheKillTarget;
TheTimeLimit._alpha = 0;
TheWaveLimit._alpha = 0;
TheKillTarget._alpha = 0;
TheTimeLimit._visible = false;
TheWaveLimit._visible = false;
TheKillTarget._visible = false;
var _local3 = _root.map_load;
_root.map_load = "";
if ((_local3 != "") && (_local3 != undefined)) {
mapPlayShared(_local3);
} else {
resetGame();
}
}
function removeEverything() {
Key.removeListener(KeyboardManager);
GlobalClock.removeMovieClip();
CashManager.removeMovieClip();
KeyboardManager.removeMovieClip();
BulletManager.removeMovieClip();
TurretManager.removeMovieClip();
AttackerManager.removeMovieClip();
RoadManager.removeMovieClip();
TurretInfo.removeMovieClip();
SmokeManager.removeMovieClip();
OverlayManager.removeMovieClip();
TheTimeLimit._alpha = 0;
TheWaveLimit._alpha = 0;
TheKillTarget._alpha = 0;
TheTimeLimit._visible = false;
TheWaveLimit._visible = false;
TheKillTarget._visible = false;
}
function get sandboxed() {
return(game_sandbox);
}
function resetGame() {
removeEverything();
_root.game_version = game_version;
mod_active = GameStatus.mod_active;
mod = new mods.ModManager(GameStatus.mod_name);
if (mod_active) {
turrets_available = mod.modTurretsAvailable();
turrets_cost = mod.modTurretsCost();
turrets_unlock = mod.modTurretsUnlock();
starting_cash_levels = mod.modStartingCash();
}
turrets_available = new Array();
turrets_available.Blue = true;
turrets_available.Green = true;
turrets_available.Red = true;
turrets_available.Yellow = true;
game_type = GameStatus.game_type;
game_sandbox = false;
wave_limit = undefined;
kill_target = undefined;
wave_limit_hit = false;
kill_target_hit = false;
time_limit = undefined;
turret_limit = undefined;
wave_size_list = undefined;
attacker_speed_list = undefined;
starting_cash = starting_cash_levels[GameStatus.game_diff];
challenge_mode = challengeEncode(GameStatus.game_challenge);
challenge_data = GameStatus.game_challenge;
GameStatus.game_over = false;
GameStatus.game_paused = false;
player_lives = 10;
total_shots = 0;
total_combos = 0;
total_kills = 0;
total_spent = 0;
clearInterval(interval_setup);
clearInterval(interval_gamewin);
if (GameStatus.debug_mode == true) {
turrets_available.RangeUp = true;
turrets_available.DamageUp = true;
turrets_available.RateUpExchange = true;
turrets_available.RangeUpExchange = true;
turrets_available.RateUp = true;
turrets_available.DamageUpBig = true;
turrets_available.DamageUpBigExchange = true;
turrets_available.Targeter = true;
turrets_available.Sniper = true;
turrets_available.Fusion = true;
turrets_available.Railgun = true;
turrets_available.Combonly = true;
starting_cash = starting_cash_levels.debug;
}
if (game_type == "sandbox") {
game_sandbox = true;
starting_cash = starting_cash_levels.sandbox;
turrets_available.RangeUp = true;
turrets_available.DamageUp = true;
turrets_available.RateUpExchange = true;
turrets_available.RangeUpExchange = true;
turrets_available.RateUp = true;
turrets_available.DamageUpBig = true;
turrets_available.DamageUpBigExchange = true;
turrets_available.Targeter = true;
if (modeIsAvailable("sandbox2")) {
turrets_available.Sniper = true;
turrets_available.Fusion = true;
turrets_available.Railgun = true;
turrets_available.Combonly = true;
starting_cash = starting_cash_levels.sandbox2;
}
} else if (game_type == "challenge") {
GameStatus.game_diff = GameStatus.game_challenge.difficulty;
wave_limit = challengeParseWaveLimit(GameStatus.game_challenge.objective);
kill_target = challengeParseKillTarget(GameStatus.game_challenge.objective);
starting_cash = GameStatus.game_challenge.cash;
time_limit = GameStatus.game_challenge.timelimit;
turret_limit = GameStatus.game_challenge.turretlimit;
wave_size_list = challengeParseWaveSize(GameStatus.game_challenge.wavesize);
attacker_speed_list = challengeParseWaveSpeed(GameStatus.game_challenge.wavespeed);
challenge_mode = challengeEncode(GameStatus.game_challenge);
var _local4;
var _local3 = 0;
if (time_limit != undefined) {
targetReset(TheTimeLimit, _local3);
_local3++;
}
if (wave_limit != undefined) {
targetReset(TheWaveLimit, _local3);
waveLimitUpdate();
_local3++;
}
if (kill_target != undefined) {
targetReset(TheKillTarget, _local3);
killTargetUpdate();
_local3++;
}
}
game_diff = GameStatus.game_diff;
_root.Wave.text = "0";
_root.Level.text = "0";
_root.Kills.text = "0";
_root.Cash.text = "$" + starting_cash;
attachManagerClock();
attachManagerKeyboard();
attachManagerRoad();
attachManagerCash();
attachManagerAttacker();
attachManagerTurret();
attachManagerSmoke();
attachManagerBullet();
attachManagerTurretInfo();
attachManagerMute();
attachDebugWindow();
Loading = _root.Loading;
Loading._visible = true;
attachManagerOverlay();
time_last = GameClock.timeNow();
if (!RoadManager.roadBuild(_root.game_map, _root.game_map_custom)) {
gotoHomepage();
}
settingsInit();
settingsApply();
WeaponReviews.init();
interval_setup = setInterval(this, "setupFinal", 50);
watermarkUpdate();
}
function setupFinal() {
clearInterval(interval_setup);
_root.WeaponRack = _root.BuildPanel.WeaponRack;
_root.WeaponPanel = TurretInfo.InfoBuild;
weaponStoreReset();
if (time_limit != undefined) {
time_begin = GameClock.timeNow();
}
turretInfoShow();
Selection.setFocus(TurretInfo.ButtonNextWave);
messageNew("Welcome to Onslaught 2!\n\nPress i to show or hide this window at any time.\n\nPress g to bring up some game prefs.", true);
if (GameStatus.sound_load == true) {
messageNew("You can turn the sounds on and off at any time by pressing the mute symbol in the bottom left corner.", true);
}
messageNew("The attackers are on their way, you may want to build some defences!\n\nClick on 'build' to begin, or select a turret from the weapon store at the bottom.", true);
Loading._visible = false;
GameExit.onPress = mx.utils.Delegate.create(this, gameExitConfirm);
debug("Boom shank-a-lank!");
}
static function debug(str) {
if (GameStatus.debug_mode == true) {
trace((GameClock.timeNow() + ": ") + str);
}
}
function watermarkUpdate() {
Watermark = _root.Watermark;
WatermarkMod = _root.WatermarkMod;
Watermark.text = game_version;
Watermark.text = Watermark.text + (", map: " + _root.Game.RoadManager.mapName(_root.game_map));
Watermark.text = Watermark.text + (", difficulty: " + game_diff);
if (game_type == "challenge") {
Watermark.text = Watermark.text + (", challenge: " + GameStatus.game_challenge.name);
}
if (sandboxed) {
Watermark.text = Watermark.text + ", sandboxed";
}
if (GameStatus.debug_mode == true) {
Watermark.text = Watermark.text + ", debug mode";
}
WatermarkMod.text = "";
if (mod_active == true) {
WatermarkMod.text = WatermarkMod.text + ((("Mod: " + mod.__get__the_mod()) + ", signature: ") + mod.modSignature());
}
}
function attachDebugWindow() {
if (!(tx && (tx._name))) {
tx = createTextField("DebugTx", getNextHighestDepth(), 3, 3, 720, 535);
tx.selectable = false;
tx.editable = false;
}
tx.text = "";
}
function attachManagerClock() {
var _local2 = "GameClock";
var _local3 = getNextHighestDepth();
var _local4 = _local2 + _local3;
GlobalClock = attachMovie(_local2, _local4, _local3);
}
function attachManagerKeyboard() {
var _local2 = "KeyboardManager";
var _local3 = getNextHighestDepth();
var _local4 = _local2 + _local3;
KeyboardManager = attachMovie(_local2, _local4, _local3);
}
function attachManagerRoad() {
var _local2 = "RoadManager";
var _local3 = getNextHighestDepth();
var _local4 = _local2 + _local3;
RoadManager = attachMovie(_local2, _local4, _local3);
}
function attachManagerCash() {
var _local2 = "CashManager";
var _local3 = getNextHighestDepth();
var _local5 = _local2 + _local3;
var _local4 = new Object();
_local4.starting_cash = starting_cash;
CashManager = attachMovie(_local2, _local5, _local3, _local4);
}
function attachManagerAttacker() {
var _local3 = "AttackerManager";
var _local4 = getNextHighestDepth();
var _local5 = _local3 + _local4;
var _local2 = new Object();
_local2.attacker_upgrade_rate = attacker_upgrade_rate;
_local2.attacker_energy = attacker_energy;
_local2.attacker_speed = attacker_speed;
_local2.attacker_speed_list = attacker_speed_list;
_local2.attacker_spacing = attacker_spacing;
_local2.attacker_types = attacker_types;
_local2.wave_size = wave_size;
_local2.wave_spacing = wave_spacing;
_local2.wave_limit = wave_limit;
_local2.wave_size_list = wave_size_list;
_local2.kill_target = kill_target;
if (mod_active) {
mod.modManagers(_local2);
}
AttackerManager = attachMovie(_local3, _local5, _local4, _local2);
}
function attachManagerTurret() {
var _local2 = "TurretManager";
var _local3 = getNextHighestDepth();
var _local5 = _local2 + _local3;
var _local4 = new Object();
_local4.turret_limit = turret_limit;
TurretManager = attachMovie(_local2, _local5, _local3, _local4);
}
function attachManagerBullet() {
var _local2 = "BulletManager";
var _local3 = getNextHighestDepth();
var _local4 = _local2 + _local3;
BulletManager = attachMovie(_local2, _local4, _local3);
}
function attachManagerSmoke() {
var _local2 = "SmokeManager";
var _local3 = getNextHighestDepth();
var _local4 = _local2 + _local3;
SmokeManager = attachMovie(_local2, _local4, _local3);
}
function attachManagerOverlay() {
var _local2 = "OverlayManager";
var _local3 = getNextHighestDepth();
var _local4 = _local2 + _local3;
OverlayManager = attachMovie(_local2, _local4, _local3);
}
function attachManagerMute() {
if (GameStatus.sound_load == true) {
SoundMute = _root.MuteButton;
}
}
function attachManagerTurretInfo() {
var _local4 = "TurretInfo";
var _local5 = getNextHighestDepth();
var _local6 = _local4 + _local5;
var _local3 = new Object();
_local3._x = GameStatus.turret_info_x;
_local3._y = GameStatus.turret_info_y;
TurretInfo = attachMovie(_local4, _local6, _local5, _local3);
TurretInfoPoint = _root.TurretInfoPoint;
}
function attachManagerMappingInfo() {
var _local4 = "MappingInfo";
var _local5 = getNextHighestDepth();
var _local6 = _local4 + _local5;
var _local3 = new Object();
_local3._x = GameStatus.turret_info_x;
_local3._y = GameStatus.turret_info_y;
TurretInfo = attachMovie(_local4, _local6, _local5, _local3);
TurretInfoPoint = _root.TurretInfoPoint;
}
function waveClockUpdate(new_time) {
_root.WaveClock.value = new_time;
}
function gotoHomepage() {
_root.gotoPage("Instructions", 1);
}
function gameExitConfirm() {
TurretInfo.exitConfirm();
}
function gameExit() {
removeEverything();
gotoHomepage();
}
function bulletNew(bullet_type, init_obj) {
return(BulletManager.bulletNew(bullet_type, init_obj));
}
function overlayNew(the_type, opts) {
return(OverlayManager.overlayNew(the_type, opts));
}
function turretNew(obj_type, init_obj) {
var _local2 = TurretManager.turretNew(obj_type, init_obj);
if (mod_active) {
_local2.modLoad();
}
return(_local2);
}
function attackerDead(the_obj) {
return(AttackerManager.attackerDead(the_obj));
}
function attackerKilled() {
_root.Game.TurretManager.broadcastMessage("onTurretKill");
weaponStoreUpdate();
if (GameStatus.kongregate_mode == true) {
kongregateUpdateKills();
}
if (GameStatus.gamegum_mode == true) {
gamegumUpdateKills();
}
if (kill_target != undefined) {
killTargetUpdate();
if (total_kills >= kill_target) {
killTargetHit();
}
}
if (wave_limit_hit == true) {
gameWinCheckSetup();
}
if (kill_target_hit == true) {
gameWinCheckSetup();
}
modeUpdate();
}
function attackerList() {
return(AttackerManager.attackerList());
}
function attackerFocusTry() {
cancelAll();
AttackerManager.attackerFocusTry();
}
function attackerFocusCancel() {
AttackerManager.attackerFocusCancel();
}
function waveSend() {
AttackerManager.waveSend();
}
function turretRangeToggle() {
return(TurretManager.turretRangeToggle());
}
function turretComboInRangeToggle() {
return(TurretManager.turretComboInRangeToggle());
}
function turretSell() {
return(TurretManager.turretSell());
}
function turretList() {
return(TurretManager.turretList());
}
function turretRangeUpdate() {
return(TurretManager.turretRangeUpdate());
}
function turretMove() {
return(TurretManager.turretMove());
}
function turretMoveCancel() {
return(TurretManager.turretMoveCancel());
}
function turretInfoShow() {
TurretInfo.infoDoMaximise();
GameStatus.turret_info_show = true;
}
function turretInfoHide() {
TurretInfo.infoDoMinimise();
GameStatus.turret_info_show = false;
}
function turretInfoToggle() {
if (GameStatus.turret_info_show == false) {
turretInfoShow();
} else {
turretInfoHide();
}
}
function turretToggleDirectional() {
TurretManager.turretToggleDirectional();
}
function turretBuildIfAvailable(the_type) {
if (turrets_available[the_type] == true) {
var _local3 = new Object();
_local3.turret_type = the_type;
_local3.turret_range = _root.WeaponRack.rackTypeRange(the_type);
_local3.turret_cost = turrets_cost[the_type];
buildTry(_local3);
}
}
function cashSpend(the_amount) {
var _local2 = CashManager.cashSpend(the_amount);
if (game_type == "sandbox") {
return(_local2);
}
if (_local2) {
if (GameStatus.kongregate_mode == true) {
kongregateUpdateSpent(the_amount);
}
}
return(_local2);
}
function cashAvailable(the_amount) {
return(CashManager.cashAvailable(the_amount));
}
function cashWin(the_amount) {
return(CashManager.cashWin(the_amount));
}
function cashKerching(the_x, the_y, the_amount) {
return(CashManager.cashKerching(the_x, the_y, the_amount));
}
function roadBaseHit() {
if (game_demo != true) {
_root.Game.RoadManager.player_base.lifeLost(player_lives);
player_lives--;
}
if (player_lives == 0) {
gameOver();
}
}
function gameOver() {
TurretInfo.infoGameEnd();
game_over = true;
GameStatus.game_over = true;
if (game_type == "challenge") {
TurretInfo.InfoChallengeOver.challengeLost();
challengeSaveBest();
} else if (GameStatus.kongregate_mode == true) {
kongregateSubmitScore();
}
}
function buildTry(new_data) {
cancelAll();
return(TurretManager.turretBuildTry(new_data));
}
function cancelAll() {
AttackerManager.attackerFocusCancel();
TurretManager.turretCancelAllBuild();
TurretManager.turretJoinCancel();
}
function buildCancel() {
return(TurretManager.turretBuildCancel());
}
function pauseToggle() {
if (GameStatus.game_paused == true) {
pauseOff();
} else {
pauseOn();
}
}
function pauseOn() {
GameStatus.game_paused = true;
SoundPlayer.play("Pause");
}
function pauseOff() {
GameStatus.game_paused = false;
SoundPlayer.play("UnPause");
}
function weaponAvailable(new_type) {
var _local5 = false;
var _local4 = false;
var _local3 = false;
if (turrets_cost[new_type] != undefined) {
_local5 = "Turret" + new_type;
_local4 = turrets_cost[new_type];
_local3 = new_type;
if (turrets_available[_local3] != true) {
turrets_available[_local3] = true;
_root.WeaponRack.rackItemAdd(_local5, _local4, _local3, true);
_root.WeaponPanel.rackItemAdd(_local5, _local4, _local3, true);
messageNew("New weapon available: " + _local3);
SoundPlayer.play("Weapon");
}
}
}
function weaponStoreUpdate() {
if (turrets_unlock[total_kills] != undefined) {
var _local2 = turrets_unlock[total_kills];
for (var _local3 in _local2) {
weaponAvailable(_local2[_local3]);
}
}
}
function weaponStoreReset() {
_root.WeaponPanel.rackReset(true);
_root.WeaponRack.rackReset(true);
_root.WeaponRack.reviewSet();
}
function weaponFired() {
total_shots++;
}
function weaponComboFired() {
total_combos++;
}
function messageNew(the_msg, no_alert) {
TurretInfo.InfoMessages.messageAdd(the_msg, no_alert);
}
function messageClear() {
TurretInfo.InfoMessages.messageClear();
}
function settingsShow() {
if (!(game_settings && (game_settings._name))) {
var _local2 = "GameSettings";
var _local3 = getNextHighestDepth();
var _local4 = _local2 + _local3;
game_settings = attachMovie(_local2, _local4, _local3);
}
}
function settingsApply() {
AttackerManager.wave_spacing = prefGet("PrefWaveSpace") * 1000;
AttackerManager.wave_follow = prefGet("PrefWaveFollow");
GameStatus.sound_on = prefGet("PrefSound");
GameStatus.sound_volume = prefGet("PrefSoundVolume");
GameStatus.sound_pan_max = prefGet("PrefSoundPan");
GameStatus.sound_announce_wave = prefGet("PrefSoundNextWave");
GameStatus.rocket_smoke = prefGet("PrefSmoke");
GameStatus.rocket_smoke_max = prefGet("PrefSmokeMax");
GameStatus.game_quality = prefGet("PrefQuality");
GameStatus.game_speed = prefGet("PrefTimeScale");
GameStatus.mod_active = prefGet("ModActive");
_root._quality = GameStatus.game_quality;
SoundMute.update();
}
function settingsSetDefault() {
var _local1 = SharedObject.getLocal("onslaught");
if (_local1.data.PrefPlayerName == undefined) {
_local1.data.PrefPlayerName = "";
}
if (_local1.data.PrefLeagueID == undefined) {
_local1.data.PrefLeagueID = "";
}
if (_local1.data.PrefLeaguePass == undefined) {
_local1.data.PrefLeaguePass = "";
}
if (_local1.data.PrefLeagueSubmit == undefined) {
_local1.data.PrefLeagueSubmit = false;
}
if (_local1.data.PrefAccountLogin == undefined) {
_local1.data.PrefAccountLogin = "";
}
if (_local1.data.PrefAccountPass == undefined) {
_local1.data.PrefAccountPass = "";
}
if (_local1.data.PrefWaveSpace == undefined) {
_local1.data.PrefWaveSpace = 20;
}
if (_local1.data.PrefWaveFollow == undefined) {
_local1.data.PrefWaveFollow = false;
}
if (_local1.data.PrefWaveRemember == undefined) {
_local1.data.PrefWaveRemember = false;
}
if (_local1.data.PrefSound == undefined) {
_local1.data.PrefSound = GameStatus.sound_on;
}
if (_local1.data.PrefSoundVolume == undefined) {
_local1.data.PrefSoundVolume = GameStatus.sound_volume;
}
if (_local1.data.PrefSoundPan == undefined) {
_local1.data.PrefSoundPan = GameStatus.sound_pan_max;
}
if (_local1.data.PrefSound == undefined) {
_local1.data.PrefSound = GameStatus.sound_on;
}
if (_local1.data.PrefSoundVolume == undefined) {
_local1.data.PrefSoundVolume = GameStatus.sound_volume;
}
if (_local1.data.PrefSoundPan == undefined) {
_local1.data.PrefSoundPan = GameStatus.sound_pan_max;
}
if (_local1.data.PrefSoundNextWave == undefined) {
_local1.data.PrefSoundNextWave = true;
}
if (_local1.data.PrefSmoke == undefined) {
_local1.data.PrefSmoke = GameStatus.rocket_smoke;
}
if (_local1.data.PrefSmokeMax == undefined) {
_local1.data.PrefSmokeMax = GameStatus.rocket_smoke_max;
}
if (_local1.data.PrefQuality == undefined) {
_local1.data.PrefQuality = GameStatus.game_quality;
}
if (_local1.data.PrefTimeScale == undefined) {
_local1.data.PrefTimeScale = GameStatus.game_speed;
}
if (_local1.data.ModesAvailable == undefined) {
_local1.data.ModesAvailable = new Array();
}
if (_local1.data.ModesComplete == undefined) {
_local1.data.ModesComplete = new Array();
}
if (_local1.data.ChallengeBestGame == undefined) {
_local1.data.ChallengeBestGame = new Array();
}
if (_local1.data.ModActive == undefined) {
_local1.data.ModActive = false;
}
_local1.flush();
}
function settingsInit() {
settingsSetDefault();
var _local2 = SharedObject.getLocal("onslaught");
if (_local2.data.PrefWaveRemember == true) {
AttackerManager.wave_spacing = _local2.data.PrefWaveSpace * 1000;
AttackerManager.wave_follow = _local2.data.PrefWaveFollow;
} else {
_local2.data.PrefWaveSpace = wave_spacing / 1000;
_local2.data.PrefWaveFollow = false;
}
if (_local2.data.PrefSound == undefined) {
_local2.data.PrefSound = GameStatus.sound_on;
} else {
GameStatus.sound_on = _local2.data.PrefSound;
}
if (_local2.data.PrefSoundVolume == undefined) {
_local2.data.PrefSoundVolume = GameStatus.sound_volume;
} else {
GameStatus.sound_volume = _local2.data.PrefSoundVolume;
}
if (_local2.data.PrefSoundPan == undefined) {
_local2.data.PrefSoundPan = GameStatus.sound_pan_max;
} else {
GameStatus.sound_pan_max = _local2.data.PrefSoundPan;
}
if (_local2.data.PrefSoundNextWave == undefined) {
_local2.data.PrefSoundNextWave = GameStatus.sound_announce_wave;
} else {
GameStatus.sound_announce_wave = _local2.data.PrefSoundNextWave;
}
if (_local2.data.PrefTimeScale == undefined) {
_local2.data.PrefTimeScale = GameStatus.game_speed;
} else {
GameStatus.game_speed = _local2.data.PrefTimeScale;
}
if (_local2.data.ModActive == undefined) {
_local2.data.ModActive = GameStatus.mod_active;
} else {
GameStatus.mod_active = _local2.data.ModActive;
}
_local2.flush();
}
static function prefSet(pref_name, pref_value) {
if (prefs == undefined) {
prefs = SharedObject.getLocal("onslaught");
}
prefs.data[pref_name] = pref_value;
prefs.flush();
return(true);
}
static function prefGet(pref_name) {
if (prefs == undefined) {
prefs = SharedObject.getLocal("onslaught");
}
return(prefs.data[pref_name]);
}
function settingsSoundUpdate() {
return(prefSet("PrefSound", GameStatus.sound_on));
}
function kongregateUpdateKills() {
if ((total_kills % 100) == 0) {
_kongregateUpdateKills();
}
}
function _kongregateUpdateKills() {
if (game_type == "sandbox") {
return(undefined);
}
var _local3;
var _local4;
_local3 = "Kills-" + game_diff;
_local4 = total_kills;
debug((("K: " + _local3) + " = ") + _local4);
_root.kongregateStats.submit(_local3, _local4);
}
function kongregateChallengeComplete() {
if (game_type == "challenge") {
if (GameStatus.game_challenge.preset == true) {
var _local3 = "Challenge-" + GameStatus.game_challenge.name;
debug((("K: " + _local3) + " = ") + 1);
_root.kongregateStats.submit(_local3, 1);
}
}
}
function kongregateUpdateSpent(the_amount) {
if (game_type == "sandbox") {
return(undefined);
}
var _local3;
var _local4;
_local3 = "Spend";
_local4 = total_spent;
debug((("K: " + _local3) + " = ") + _local4);
_root.kongregateStats.submit(_local3, _local4);
if (the_amount > 0) {
_local3 = "SpendLifetime";
_local4 = the_amount;
debug((("K: " + _local3) + " = ") + _local4);
_root.kongregateStats.submit(_local3, _local4);
}
}
function kongregateSubmitScore() {
if (game_type != "normal") {
return(undefined);
}
var _local4 = total_kills * total_spent;
var _local3;
var _local5;
_local3 = "HighScore-" + game_diff;
_local5 = _local4;
debug((("K: " + _local3) + " = ") + _local5);
_root.kongregateStats.submit(_local3, _local4);
var _local6 = _root.Game.RoadManager.mapName(_root.game_map);
_local3 = "HighScore-" + _local6;
_local5 = _local4;
debug((("K: " + _local3) + " = ") + _local5);
_root.kongregateStats.submit(_local3, _local4);
kongregateUpdateSpent(0);
_kongregateUpdateKills();
}
function gamegumUpdateKills() {
var _local4 = _root.Game.RoadManager.mapName(_root.game_map);
var _local3;
if (total_kills == 1000) {
_local3 = "100-waves";
_root.gamegum.sendStat("100-waves", 1);
}
if (total_kills == 2000) {
_local3 = "200-waves-" + _root.game_map;
_root.gamegum.sendStat(_local3, 1);
}
if (total_kills == 3000) {
_local3 = "300-waves-" + _root.game_map;
_root.gamegum.sendStat(_local3, 1);
}
}
function mapPlayShared(map_name) {
Loading._visible = true;
if (GameStatus.maps_loaded[map_name] != undefined) {
var _local6 = JSON.stringify(GameStatus.maps_loaded[map_name]);
mapLoadShared(_local6);
return(undefined);
}
var _local4 = new LoadVars();
_local4.map_name = map_name;
var _local3 = new LoadVars();
_local3.onLoad = function (success) {
if (success) {
if (this.error != undefined) {
_root.Game.messageNew(this.error);
} else {
_root.Game.mapLoadShared(this.map);
}
} else {
_root.Game.messageNew("Failed to load map");
}
};
_local4.sendAndLoad(GameStatus.url_map_share + "/map.load.php", _local3, "GET");
}
function mapLoadShared(map_data) {
var _local4 = JSON.parse(map_data);
var _local3 = SharedObject.getLocal("onslaught");
if (typeof(_local3.data.MapsSaved) != "object") {
_local3.data.MapsSaved = new Object();
}
var _local5 = _local4.name;
_local3.data.MapsSaved[_local5] = _local4;
_local3.flush();
_root.game_map = _local5;
_root.game_map_custom = true;
_root.gotoPage("Game", 1);
resetGame();
}
function mapSharedStore(map_name) {
if (GameStatus.maps_loaded[map_name] != undefined) {
var _local2 = GameStatus.maps_loaded[map_name];
var _local1 = SharedObject.getLocal("onslaught");
if (typeof(_local1.data.MapsSaved) != "object") {
_local1.data.MapsSaved = new Object();
}
map_name = _local2.name;
_local1.data.MapsSaved[map_name] = _local2;
_local1.flush();
return(true);
}
return(false);
}
function waveLimitHit() {
if (wave_limit_hit != true) {
targetHit(TheWaveLimit);
AttackerManager.noMoreWaves();
var _local2 = "Message from Attackers:\nThat's it! We give up! We've sent the last of our army!\n\nWhatever you've got in Area 51, you can keep it!";
messageNew(_local2);
gameWinCheckSetup();
}
wave_limit_hit = true;
}
function killTargetHit() {
if (kill_target_hit != true) {
targetHit(TheKillTarget);
AttackerManager.noMoreWaves();
var _local2 = "Kill Target Hit:\nWell played, you've reached your kill target!";
messageNew(_local2);
gameWinCheckSetup();
}
wave_limit_hit = true;
kill_target_hit = true;
}
function targetReset(the_obj, the_num) {
var _local1;
the_obj.filters = new Array();
the_obj.ticked = false;
the_obj.Tick._visible = false;
the_obj._y = 5;
_local1 = new Object();
_local1._y = 5 + (the_num * 25);
_local1.autoAlpha = 100;
gs.TweenLite.to(the_obj, 1, _local1);
_local1 = new Object();
_local1.autoAlpha = 40;
_local1.delay = 3;
_local1.overwrite = false;
gs.TweenLite.to(the_obj, 10, _local1);
}
function targetFlash(the_clip) {
var _local1;
_local1 = new Object();
_local1.alpha = 0.6;
_local1.color = 16777215 /* 0xFFFFFF */;
_local1.blurX = 12;
_local1.blurY = 12;
_local1.strength = 6;
_local1.overwrite = true;
gs.TweenFilterLite.to(the_clip, 0, {glowFilter:_local1});
_local1 = new Object();
_local1.type = "Glow";
_local1.alpha = 0;
_local1.delay = 0.1;
_local1.overwrite = false;
gs.TweenFilterLite.to(the_clip, 10, {glowFilter:_local1});
the_clip._alpha = 100;
_local1 = new Object();
_local1.autoAlpha = 40;
_local1.overwrite = false;
gs.TweenLite.to(the_clip, 10, _local1);
}
function targetMissed(the_clip) {
var _local1;
_local1 = new Object();
_local1.alpha = 0.6;
_local1.color = 16724787 /* 0xFF3333 */;
_local1.blurX = 12;
_local1.blurY = 12;
_local1.strength = 6;
_local1.overwrite = true;
gs.TweenFilterLite.to(the_clip, 1, {glowFilter:_local1});
_local1 = new Object();
_local1.autoAlpha = 100;
_local1.overwrite = false;
gs.TweenLite.to(the_clip, 1, _local1);
}
function targetHit(the_clip) {
var _local1;
_local1 = new Object();
_local1.alpha = 0.6;
_local1.color = 3407667 /* 0x33FF33 */;
_local1.blurX = 12;
_local1.blurY = 12;
_local1.strength = 6;
_local1.overwrite = true;
gs.TweenFilterLite.to(the_clip, 1, {glowFilter:_local1});
_local1 = new Object();
_local1.autoAlpha = 100;
_local1.overwrite = false;
gs.TweenLite.to(the_clip, 1, _local1);
}
function killTargetUpdate() {
var _local3 = TheKillTarget;
var _local2 = total_kills;
var _local4 = kill_target;
TheKillTarget.value = (_local2 + "/") + _local4;
if (_local2 >= _local4) {
_local3.Tick._visible = true;
}
if (_local2 > 0) {
if ((_local2 % 100) == 0) {
_local3.filters = new Array();
targetFlash(_local3);
}
}
}
function waveLimitUpdate() {
var _local3 = TheWaveLimit;
var _local2 = int(AttackerManager.wave_num);
var _local4 = int(wave_limit);
TheWaveLimit.value = (_local2 + "/") + _local4;
if (_local2 >= _local4) {
_local3.Tick._visible = true;
}
if (_local2 > 0) {
if ((_local2 % 50) == 0) {
_local3.filters = new Array();
targetFlash(_local3);
}
}
}
function timeLimitHit() {
if (time_limit_hit == false) {
AttackerManager.noMoreWaves();
var _local2 = true;
if (kill_target != undefined) {
if (kill_target_hit == false) {
_local2 = false;
targetMissed(TheKillTarget);
}
}
if (wave_limit != undefined) {
if (wave_limit_hit == false) {
_local2 = false;
targetMissed(TheWaveLimit);
}
} else {
wave_limit_hit = true;
}
time_limit_hit = true;
if (_local2 == true) {
TheTimeLimit.Tick._visible = true;
targetHit(TheTimeLimit);
gameWinCheckSetup();
} else {
targetMissed(TheTimeLimit);
gameOver();
}
}
}
function timeLimitUpdate() {
if (time_limit != undefined) {
var _local5 = time_begin + (time_limit * 1000);
var _local4 = Math.round((_local5 - GameClock.timeNow()) / 1000);
if (isNaN(_local4)) {
return(undefined);
}
if (_local4 <= 0) {
timeLimitHit();
TheTimeLimit.value = "00:00";
return(undefined);
}
var _local2 = Math.floor(_local4 / 60);
var _local3 = _local4 % 60;
if (_local2 < 10) {
_local2 = "0" + _local2.toString();
}
if (_local3 < 10) {
_local3 = "0" + _local3.toString();
}
TheTimeLimit.value = (_local2 + ":") + _local3;
}
}
function modeIsAvailable(game_mode) {
if (GameStatus.debug_mode == true) {
return(true);
}
var _local1 = MD5.calculate(("98230192" + game_mode) + "912837123");
var _local2 = SharedObject.getLocal("onslaught");
if (_local2.data.ModesAvailable[game_mode] == _local1) {
return(true);
}
return(false);
}
function modeIsComplete(game_mode) {
var _local1 = MD5.calculate(("98230192" + game_mode) + "912837123");
var _local2 = SharedObject.getLocal("onslaught");
if (_local2.data.ModesComplete[game_mode] == _local1) {
return(true);
}
return(false);
}
function modeSetAvailable(game_mode) {
var _local2 = MD5.calculate(("98230192" + game_mode) + "912837123");
var _local1 = SharedObject.getLocal("onslaught");
_local1.data.ModesAvailable[game_mode] = _local2;
_local1.flush();
return(true);
}
function modeSetComplete(game_mode) {
var _local2 = MD5.calculate(("98230192" + game_mode) + "912837123");
var _local1 = SharedObject.getLocal("onslaught");
_local1.data.ModesComplete[game_mode] = _local2;
_local1.flush();
return(true);
}
function modeUpdate() {
if (game_type != "normal") {
return(undefined);
}
var _local2;
if (total_kills == 2000) {
if (!modeIsAvailable("extreme")) {
_local2 = "Well done, you have managed to defeat 200 waves in a normal game. You have unlocked the extreme mode.";
messageNew(_local2);
}
modeSetAvailable("extreme");
}
if (total_kills == 4000) {
if (!modeIsComplete(game_diff)) {
_local2 = (("Well done, you have managed to defeat 4000 kills in " + game_diff) + " ") + "mode! You can tick that one off.";
messageNew(_local2);
}
if (game_diff == "medium") {
if (!modeIsAvailable("sandbox")) {
_local2 = (("Excellent work! 400 waves in " + game_diff) + " mode has unlocked ") + "the sandbox. Congrats!";
messageNew(_local2);
}
modeSetAvailable("sandbox");
}
if (game_diff == "hard") {
if (!modeIsAvailable("sandbox2")) {
_local2 = (("Excellent work! 400 waves in " + game_diff) + " mode has unlocked ") + "the super sandbox. w00t!";
messageNew(_local2);
}
modeSetAvailable("sandbox2");
}
modeSetComplete(game_diff);
if ((modeIsComplete("easy") and modeIsComplete("medium")) and modeIsComplete("hard")) {
if (!modeIsAvailable("modding")) {
_local2 = "Excellent work! 4000 kills in all three modes unlocks the modding interface! Scha-weet!";
messageNew(_local2);
}
modeSetAvailable("modding");
}
}
}
function modeCheck() {
if ((modeIsComplete("easy") and modeIsComplete("medium")) and modeIsComplete("hard")) {
if (!modeIsAvailable("modding")) {
modeSetAvailable("modding");
}
}
}
function challengeBestGame(game_mode) {
var _local1 = MD5.calculate(("98230192" + game_mode) + "912837123");
var _local2 = SharedObject.getLocal("onslaught");
return(_local2.data.ChallengeBestGame[_local1]);
}
function challengeEncode(the_chal) {
var _local2 = (((((((((((("challenge;" + the_chal.difficulty) + ";") + the_chal.objective) + ";") + the_chal.cash) + ";") + the_chal.timelimit) + ";") + the_chal.turretlimit) + ";") + the_chal.wavesize) + ";") + the_chal.wavespeed;
return(_local2);
}
function challengeParseWaveLimit(the_str) {
if (the_str == undefined) {
return(undefined);
}
var _local1 = the_str.split(",");
if (_local1[0] == "w") {
return(parseInt(_local1[1]));
}
return(undefined);
}
function challengeParseKillTarget(the_str) {
if (the_str == undefined) {
return(undefined);
}
var _local1 = the_str.split(",");
if (_local1[0] == "k") {
return(_local1[1]);
}
return(undefined);
}
function challengeParseWaveSize(the_str) {
var _local1 = new Array();
if (the_str == undefined) {
_local1.push(10);
} else {
_local1 = the_str.split(",");
}
return(_local1);
}
function challengeParseWaveSpeed(the_str) {
var _local1 = new Array();
if (the_str == undefined) {
_local1.push(60);
} else {
_local1 = the_str.split(",");
}
return(_local1);
}
function challengeSaveBest() {
var _local2 = new Object();
_local2.score = total_spent * total_kills;
_local2.kills = total_kills;
_local2.spend = total_spent;
_local2.date = new Date();
_local2.challenge_mode = challenge_mode;
_local2.challenge_data = challenge_data;
var _local4 = MD5.calculate(("98230192" + challenge_mode) + "912837123");
var _local3 = SharedObject.getLocal("onslaught");
var _local5 = _local3.data.ChallengeBestGame[_local4];
if (_local5 == undefined) {
_local3.data.ChallengeBestGame[_local4] = _local2;
} else {
var _local6;
var _local7;
if (kill_target != undefined) {
_local6 = _local5.kills;
_local7 = _local2.kills;
} else {
_local6 = _local5.score;
_local7 = _local2.score;
}
if (_local7 > _local6) {
_local3.data.ChallengeBestGame[_local4] = _local2;
}
}
_local3.flush();
}
function gameWin() {
clearInterval(interval_gamewin);
var _local2;
if (game_type == "tutorial") {
if (!modeIsAvailable("challenge")) {
_local2 = "Well done, you have completed the tutorial mode. You have unlocked the challenge mode.";
messageNew(_local2);
modeSetAvailable("challenge");
}
modeSetAvailable("challenge");
modeSetComplete("tutorial");
} else if (game_type == "challenge") {
TurretInfo.InfoChallengeOver.challengeWon();
TurretInfo.infoGameEnd();
_local2 = "You beat the challenge! ";
if (kill_target != undefined) {
_local2 = _local2 + "You hammered through the kill target! ";
} else if (wave_limit != undefined) {
_local2 = _local2 + "You beat back every wave! ";
}
if (time_limit != undefined) {
_local2 = _local2 + "And all within the time limit too! ";
}
_local2 = _local2 + "Consider this challenge complete.";
messageNew(_local2);
modeSetComplete(challenge_mode);
challengeSaveBest();
if (GameStatus.kongregate_mode == true) {
kongregateChallengeComplete();
}
}
}
function gameWinCheck() {
AttackerManager.doPrune();
var _local2 = true;
if (kill_target != undefined) {
if (total_kills < kill_target) {
_local2 = false;
}
}
if (wave_limit_hit == true) {
var _local4 = AttackerManager.attackerCount();
var _local3 = AttackerManager.waveCount();
if ((_local3 > 0) || (_local4 > 0)) {
_local2 = false;
}
}
if (_local2 == true) {
gameWin();
}
}
function gameWinCheckSetup() {
if (interval_gamewin == undefined) {
interval_gamewin = setInterval(this, "gameWinCheck", 1000);
}
}
var player_lives = 10;
var total_shots = 0;
var total_combos = 0;
var total_kills = 0;
var total_spent = 0;
var game_paused = false;
var game_over = false;
var game_demo = false;
var game_sandbox = false;
var attacker_upgrade_rate = 1.3;
var attacker_energy = 10;
var attacker_speed = 60;
var attacker_spacing = 700;
var attacker_types = 9;
var wave_size = 10;
var wave_spacing = 20000;
var wave_limit = undefined;
var wave_limit_hit = false;
var kill_target = undefined;
var kill_target_hit = false;
var turret_limit = undefined;
var time_begin = undefined;
var time_limit = undefined;
var time_limit_hit = false;
}
Symbol 1236 MovieClip [__Packages.SoundMute] Frame 0
class SoundMute extends OnslaughtObject
{
var Muted, _visible;
function SoundMute () {
super();
}
function onLoad() {
Muted._visible = !GameStatus.sound_on;
_visible = GameStatus.sound_load;
}
function onPress() {
if (GameStatus.sound_on == true) {
GameStatus.sound_on = false;
} else {
GameStatus.sound_on = true;
}
_root.Game.settingsSoundUpdate();
update();
}
function update() {
Muted._visible = !GameStatus.sound_on;
}
}
Symbol 112 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 _local3 = __width;
var _local2 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2});
}
}
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 = mx.core.UIObject(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 164 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 165 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 167 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 166 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 113 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 168 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 363 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 _local11 = 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 _local9 = (__width - borderW) - borderW;
var _local10 = (__height - borderW) - borderW;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local11 = Math.min(_local9 - _local7, _local15 + 5);
_local3._width = _local11;
_local8 = Math.min(_local10, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local9 - _local11) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local9 - _local11) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local11;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local10 - _local6) / 2;
_local4 = (_local10 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local11 = Math.min(_local9, _local15 + 5);
_local3._width = _local11;
_local8 = Math.min(_local10 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local9 - _local11) / 2;
_local2._x = (_local9 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local10 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local10 - _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 1237 MovieClip [__Packages.OnslaughtVersion] Frame 0
class OnslaughtVersion
{
function OnslaughtVersion () {
}
static var version = "2348-plob";
}
Symbol 1238 MovieClip [__Packages.com.pointersoft.gameapi.GameStat] Frame 0
class com.pointersoft.gameapi.GameStat
{
var sending_lc;
function GameStat (u, p, g, v) {
username = u;
password = p;
game = g;
version = v;
sending_lc = new LocalConnection();
}
function sendScore(score) {
var _local2 = new com.pointersoft.gameapi.GameStat(username, password, game, version);
sending_lc.send("lc_game1", "setScore", _local2, score);
}
function sendStat(stat, val) {
var _local2 = new com.pointersoft.gameapi.GameStat(username, password, game, version);
sending_lc.send("lc_game1", "setStat", _local2, stat, val);
}
var username = "";
var password = "";
var game = "";
var version = "";
}
Symbol 1239 MovieClip [__Packages.WeaponReviews] Frame 0
class WeaponReviews
{
static var weapon_ratings;
function WeaponReviews () {
}
static function init() {
var _local1;
weapon_ratings = new Object();
_local1 = new Object();
_local1.turret_class = "weapon";
_local1.display_name = "Cannon";
_local1.rating_damage = 3;
_local1.rating_range = 2;
_local1.rating_rate = 4;
_local1.tooltip_text = "Cannon (standard turret)\nGood rate of fire, very upgradeable cannon and can freak out, inflicting lots of damage";
weapon_ratings.TurretBlue = _local1;
_local1 = new Object();
_local1.turret_class = "weapon";
_local1.display_name = "Laser";
_local1.rating_damage = 3;
_local1.rating_range = 4;
_local1.rating_rate = 3;
_local1.tooltip_text = "Laser (standard turret)\nGood range and rate of fire, can be used to make chains of lasers to increase power";
weapon_ratings.TurretGreen = _local1;
_local1 = new Object();
_local1.turret_class = "weapon";
_local1.display_name = "Rocket";
_local1.rating_damage = 5;
_local1.rating_range = 5;
_local1.rating_rate = 4;
_local1.tooltip_text = "Rocket (standard turret)\nGreat range and damage but quite expensive to upgrade";
weapon_ratings.TurretRed = _local1;
_local1 = new Object();
_local1.turret_class = "weapon";
_local1.display_name = "Tazer";
_local1.rating_damage = 2;
_local1.rating_range = 1;
_local1.rating_rate = 3;
_local1.tooltip_text = "Tazer (standard turret)\nHigh rate of fire, causes attackers to be slowed down temporarily";
weapon_ratings.TurretYellow = _local1;
_local1 = new Object();
_local1.turret_class = "weapon";
_local1.display_name = "Sniper";
_local1.rating_damage = 5;
_local1.rating_range = 5;
_local1.rating_rate = 1;
_local1.tooltip_text = "Sniper (super turret)\nHuge damage but very slow to turn and reload";
weapon_ratings.TurretSniper = _local1;
_local1 = new Object();
_local1.turret_class = "weapon";
_local1.display_name = "Fusion";
_local1.rating_damage = 5;
_local1.rating_range = 4;
_local1.rating_rate = 1;
_local1.tooltip_text = "Fusion Tower (super turret)\nAccumulates charge and stun from laser and tazer turrets to unleash high powered blasts";
weapon_ratings.TurretFusion = _local1;
_local1 = new Object();
_local1.turret_class = "weapon";
_local1.display_name = "Railgun";
_local1.rating_damage = 5;
_local1.rating_range = 5;
_local1.rating_rate = 2;
_local1.tooltip_text = "Railgun (super turret)\nUnstoppable, high power laser beam that cuts clean through the attackers";
weapon_ratings.TurretRailgun = _local1;
_local1 = new Object();
_local1.turret_class = "weapon";
_local1.display_name = "Combonly";
_local1.rating_damage = 5;
_local1.rating_range = 5;
_local1.rating_rate = 5;
_local1.tooltip_text = "Combonly (special turret)\nWhen built in combo range fully upgraded standard turrets it can join them together into a combo-firing turret";
weapon_ratings.TurretCombonly = _local1;
_local1 = new Object();
_local1.turret_class = "weapon";
_local1.display_name = "Targeter";
_local1.rating_damage = 0;
_local1.rating_range = 2;
_local1.rating_rate = 5;
_local1.tooltip_text = "Targeter (special turret)\nCalls in fire support from other turrets (standard or super) that have been joined to it";
weapon_ratings.TurretTargeter = _local1;
_local1 = new Object();
_local1.turret_class = "modifier";
_local1.display_name = "Damage+";
_local1.rating_damage = "+40%";
_local1.tooltip_text = "Damager (modifier turret)\nIncreases the damage of all standard turrets in it's range by 40%";
weapon_ratings.TurretDamageUp = _local1;
_local1 = new Object();
_local1.turret_class = "modifier";
_local1.display_name = "Big Damage+";
_local1.rating_damage = "+100%";
_local1.tooltip_text = "Big Damager (modifier turret)\nIncreases the damage of all standard turrets in it's range by 100%";
weapon_ratings.TurretDamageUpBig = _local1;
_local1 = new Object();
_local1.turret_class = "modifier";
_local1.display_name = "Big Damage+/-";
_local1.rating_damage = "+100%";
_local1.rating_range = "-30%";
_local1.rating_rate = "-30%";
_local1.tooltip_text = "Big Damage Exchanger (modifier turret)\nIncreases the damage of all standard turrets in it's range by 100%, at the cost of some range and rate of fire";
weapon_ratings.TurretDamageUpBigExchange = _local1;
_local1 = new Object();
_local1.turret_class = "modifier";
_local1.display_name = "Rate+";
_local1.rating_rate = "+120";
_local1.tooltip_text = "Rate Enhancer (modifier turret)\nIncreases the rate of fire of all standard turrets in it's range by 120 rounds/min";
weapon_ratings.TurretRateUp = _local1;
_local1 = new Object();
_local1.turret_class = "modifier";
_local1.display_name = "Rate+/-";
_local1.rating_damage = "-40%";
_local1.rating_range = "-10%";
_local1.rating_rate = "+60";
_local1.tooltip_text = "Rate Exchanger (modifier turret)\nIncreases the rate of fire of all standard turrets in it's range by 60 rounds/min, at the cost of some damage and range";
weapon_ratings.TurretRateUpExchange = _local1;
_local1 = new Object();
_local1.turret_class = "modifier";
_local1.display_name = "Range+";
_local1.rating_range = "+100";
_local1.tooltip_text = "Ranger (modifier turret)\nIncreases the range of all standard turrets in it's range by 100";
weapon_ratings.TurretRangeUp = _local1;
_local1 = new Object();
_local1.turret_class = "modifier";
_local1.display_name = "Range+/-";
_local1.rating_range = "+100";
_local1.rating_rate = "-25%";
_local1.tooltip_text = "Range Exchanger (modifier turret)\nIncreases the range of all standard turrets in it's range by 100, at the cost of some rate of fire";
weapon_ratings.TurretRangeUpExchange = _local1;
}
}
Symbol 1240 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 1241 MovieClip [__Packages.JSON] Frame 0
class JSON
{
static var inst;
var text;
function JSON () {
}
static function getInstance() {
if (inst == null) {
inst = new JSON();
}
return(inst);
}
static function stringify(arg) {
var _local3;
var _local2;
var _local6;
var _local1 = "";
var _local4;
switch (typeof(arg)) {
case "object" :
if (arg) {
if (arg instanceof Array) {
_local2 = 0;
while (_local2 < arg.length) {
_local4 = stringify(arg[_local2]);
if (_local1) {
_local1 = _local1 + ",";
}
_local1 = _local1 + _local4;
_local2++;
}
return(("[" + _local1) + "]");
}
if (typeof(arg.toString) != "undefined") {
for (_local2 in arg) {
_local4 = arg[_local2];
if ((typeof(_local4) != "undefined") && (typeof(_local4) != "function")) {
_local4 = stringify(_local4);
if (_local1) {
_local1 = _local1 + ",";
}
_local1 = _local1 + ((stringify(_local2) + ":") + _local4);
}
}
return(("{" + _local1) + "}");
}
}
return("null");
case "number" :
return((isFinite(arg) ? (String(arg)) : "null"));
case "string" :
_local6 = arg.length;
_local1 = "\"";
_local2 = 0;
while (_local2 < _local6) {
_local3 = arg.charAt(_local2);
if (_local3 >= " ") {
if ((_local3 == "\\") || (_local3 == "\"")) {
_local1 = _local1 + "\\";
}
_local1 = _local1 + _local3;
} else {
switch (_local3) {
case "\b" :
_local1 = _local1 + "\\b";
break;
case "\f" :
_local1 = _local1 + "\\f";
break;
case newline :
_local1 = _local1 + "\\n";
break;
case "\r" :
_local1 = _local1 + "\\r";
break;
case "\t" :
_local1 = _local1 + "\\t";
break;
default :
_local3 = _local3.charCodeAt();
_local1 = _local1 + (("\\u00" + Math.floor(_local3 / 16).toString(16)) + (_local3 % 16).toString(16));
}
}
_local2 = _local2 + 1;
}
return(_local1 + "\"");
case "boolean" :
return(String(arg));
}
return("null");
}
static function parse(text) {
var _local1 = getInstance();
_local1.at = 0;
_local1.ch = " ";
_local1.text = text;
return(_local1.value());
}
function error(m) {
var _local2 = ((("JSONError: " + m) + " at ") + (at - 1)) + newline;
_local2 = _local2 + (text.substr(at - 10, 20) + newline);
_local2 = _local2 + " ^";
throw new Error(_local2);
}
function next() {
ch = text.charAt(at);
at = at + 1;
return(ch);
}
function white() {
while (ch) {
if (ch <= " ") {
next();
} else if (ch == "/") {
switch (next()) {
case "/" :
while ((next() && (ch != newline)) && (ch != "\r")) {
}
break;
case "*" :
next();
while (true) {
if (ch) {
if (ch == "*") {
if (next() == "/") {
next();
break;
}
} else {
next();
}
} else {
error("Unterminated comment");
}
}
break;
default :
error("Syntax error");
}
} else {
break;
}
}
}
function str() {
var _local5;
var _local2 = "";
var _local4;
var _local3;
var _local6 = false;
if ((ch == "\"") || (ch == "'")) {
var _local7 = ch;
while (next()) {
if (ch == _local7) {
next();
return(_local2);
}
if (ch == "\\") {
switch (next()) {
case "b" :
_local2 = _local2 + "\b";
break;
case "f" :
_local2 = _local2 + "\f";
break;
case "n" :
_local2 = _local2 + newline;
break;
case "r" :
_local2 = _local2 + "\r";
break;
case "t" :
_local2 = _local2 + "\t";
break;
case "u" :
_local3 = 0;
_local5 = 0;
while (_local5 < 4) {
_local4 = parseInt(next(), 16);
if (!isFinite(_local4)) {
_local6 = true;
break;
}
_local3 = (_local3 * 16) + _local4;
_local5 = _local5 + 1;
}
if (_local6) {
_local6 = false;
break;
}
_local2 = _local2 + String.fromCharCode(_local3);
break;
default :
_local2 = _local2 + ch;
}
} else {
_local2 = _local2 + ch;
}
}
}
error("Bad string");
}
function key() {
var _local2 = ch;
var _local6 = false;
var _local3 = text.indexOf(":", at);
var _local4 = text.indexOf("\"", at);
var _local5 = text.indexOf("'", at);
if (((_local4 <= _local3) && (_local4 > -1)) || ((_local5 <= _local3) && (_local5 > -1))) {
_local2 = str();
white();
if (ch == ":") {
return(_local2);
}
error("Bad key");
}
while (next()) {
if (ch == ":") {
return(_local2);
}
if (ch <= " ") {
} else {
_local2 = _local2 + ch;
}
}
error("Bad key");
}
function arr() {
var _local2 = [];
if (ch == "[") {
next();
white();
if (ch == "]") {
next();
return(_local2);
}
while (ch) {
if (ch == "]") {
next();
return(_local2);
}
_local2.push(value());
white();
if (ch == "]") {
next();
return(_local2);
}
if (ch != ",") {
break;
}
next();
white();
}
}
error("Bad array");
}
function obj() {
var _local3;
var _local2 = {};
if (ch == "{") {
next();
white();
if (ch == "}") {
next();
return(_local2);
}
while (ch) {
if (ch == "}") {
next();
return(_local2);
}
_local3 = key();
if (ch != ":") {
break;
}
next();
_local2[_local3] = value();
white();
if (ch == "}") {
next();
return(_local2);
}
if (ch != ",") {
break;
}
next();
white();
}
}
error("Bad object");
}
function num() {
var _local2 = "";
var _local3;
if (ch == "-") {
_local2 = "-";
next();
}
while (((((ch >= "0") && (ch <= "9")) || (ch == "x")) || ((ch >= "a") && (ch <= "f"))) || ((ch >= "A") && (ch <= "F"))) {
_local2 = _local2 + ch;
next();
}
if (ch == ".") {
_local2 = _local2 + ".";
next();
while ((ch >= "0") && (ch <= "9")) {
_local2 = _local2 + ch;
next();
}
}
if ((ch == "e") || (ch == "E")) {
_local2 = _local2 + ch;
next();
if ((ch == "-") || (ch == "+")) {
_local2 = _local2 + ch;
next();
}
while ((ch >= "0") && (ch <= "9")) {
_local2 = _local2 + ch;
next();
}
}
_local3 = Number(_local2);
if (!isFinite(_local3)) {
error("Bad number");
}
return(_local3);
}
function word() {
switch (ch) {
case "t" :
if (((next() == "r") && (next() == "u")) && (next() == "e")) {
next();
return(true);
}
break;
case "f" :
if ((((next() == "a") && (next() == "l")) && (next() == "s")) && (next() == "e")) {
next();
return(false);
}
break;
case "n" :
if (!(((next() == "u") && (next() == "l")) && (next() == "l"))) {
break;
}
next();
return(null);
}
error("Syntax error");
}
function value() {
white();
switch (ch) {
case "{" :
return(obj());
case "[" :
return(arr());
case "\"" :
case "'" :
return(str());
case "-" :
return(num());
}
return((((ch >= "0") && (ch <= "9")) ? (num()) : (word())));
}
var at = 0;
var ch = " ";
}
Symbol 1242 MovieClip [__Packages.gs.TweenLite] Frame 0
class gs.TweenLite
{
static var _e, _classInitted, _curTime, _gc, _listening;
var tweenID, endTargetID, vars, duration, delay, target, tweens, _subTweens, _hst, _initted, _active, initTime, startTime;
function TweenLite ($target, $duration, $vars) {
_cnt++;
tweenID = "tw" + _cnt;
endTargetID = getID($target, true);
if (($vars.overwrite != false) && ($target != undefined)) {
delete _all[endTargetID];
_all[endTargetID] = {info:[$target, endTargetID]};
}
_all[endTargetID][tweenID] = this;
vars = $vars;
duration = $duration || 0.001;
delay = $vars.delay || 0;
target = $target;
if (typeof(vars.ease) != "function") {
vars.ease = defaultEase;
}
if (vars.easeParams != undefined) {
vars.proxiedEase = vars.ease;
vars.ease = easeProxy;
}
if (typeof(vars.autoAlpha) == "number") {
vars._alpha = vars.autoAlpha;
}
tweens = {};
_subTweens = [];
_hst = (_initted = false);
_active = ($duration == 0) && (delay == 0);
if ((_e._visible != false) || (!_classInitted)) {
_curTime = getTimer();
_e = _root.createEmptyMovieClip("_tweenLite_mc", _root.getNextHighestDepth() || 9999);
_e.swapDepths(-1);
_e._visible = false;
clearInterval(_gc);
_gc = setInterval(killGarbage, 2000);
_e.onEnterFrame = executeAll;
_classInitted = true;
}
initTime = _curTime;
if (_active || ((vars.runBackwards == true) && (vars.renderOnStart != true))) {
initTweenVals();
startTime = _curTime;
if (_active) {
render(startTime + 1);
} else {
render(startTime);
}
}
if ((!_active) && (!_listening)) {
_listening = true;
}
}
function initTweenVals($hrp, $reservedProps) {
var _local7 = typeof(target) == "movieclip";
var _local4;
var _local2;
if (target instanceof Array) {
var _local9 = vars.endArray || ([]);
_local2 = 0;
while (_local2 < _local9.length) {
if ((target[_local2] != _local9[_local2]) && (target[_local2] != undefined)) {
tweens[_local2.toString()] = {o:target, p:_local2.toString(), s:target[_local2], c:_local9[_local2] - target[_local2]};
}
_local2++;
}
} else {
for (_local4 in vars) {
if (((((((((((((((((_local4 == "ease") || (_local4 == "delay")) || (_local4 == "overwrite")) || (_local4 == "onComplete")) || (_local4 == "onCompleteParams")) || (_local4 == "onCompleteScope")) || (_local4 == "runBackwards")) || (_local4 == "onUpdate")) || (_local4 == "onUpdateParams")) || (_local4 == "onUpdateScope")) || (_local4 == "autoAlpha")) || (_local4 == "onStart")) || (_local4 == "onStartParams")) || (_local4 == "onStartScope")) || (_local4 == "renderOnStart")) || (_local4 == "easeParams")) || ($hrp && ($reservedProps.indexOf((" " + _local4) + " ") != -1))) {
} else if ((_local4 == "tint") && (_local7 || (target instanceof TextField))) {
var _local5 = new Color(target);
var _local3 = vars._alpha;
if (_local3 != undefined) {
delete vars._alpha;
delete tweens._alpha;
} else {
_local3 = target._alpha;
}
if ((vars[_local4] == null) || (vars[_local4] == "")) {
addSubTween(tintProxy, _local5.getTransform(), {rb:0, gb:0, bb:0, ab:0, ra:_local3, ga:_local3, ba:_local3, aa:_local3}, {color:_local5});
} else {
addSubTween(tintProxy, _local5.getTransform(), {rb:vars[_local4] >> 16, gb:(vars[_local4] >> 8) & 255, bb:vars[_local4] & 255, ra:0, ga:0, ba:0, aa:_local3}, {color:_local5});
}
} else if ((_local4 == "frame") && (_local7)) {
addSubTween(frameProxy, {frame:target._currentframe}, {frame:vars[_local4]}, {mc:target});
} else if ((_local4 == "volume") && (_local7 || (target instanceof Sound))) {
var _local6;
if (_local7) {
_local6 = new Sound(target);
} else {
_local6 = Sound(target);
}
addSubTween(volumeProxy, {volume:_local6.getVolume()}, {volume:vars[_local4]}, {sound:_local6});
} else if (target[_local4] != undefined) {
if (typeof(vars[_local4]) == "number") {
tweens[_local4] = {o:target, p:_local4, s:target[_local4], c:vars[_local4] - target[_local4]};
} else {
tweens[_local4] = {o:target, p:_local4, s:target[_local4], c:Number(vars[_local4])};
}
}
}
}
if (vars.runBackwards == true) {
var _local8;
for (_local4 in tweens) {
_local8 = tweens[_local4];
_local8.s = _local8.s + _local8.c;
_local8.c = _local8.c * -1;
}
}
if (typeof(vars.autoAlpha) == "number") {
target._visible = !((vars.runBackwards == true) && (target._alpha == 0));
}
_initted = true;
}
function addSubTween($proxy, $target, $props, $info) {
_subTweens.push({proxy:$proxy, target:$target, info:$info});
for (var _local7 in $props) {
if ($target[_local7] != undefined) {
if (typeof($props[_local7]) == "number") {
tweens[(("st" + _subTweens.length) + "_") + _local7] = {o:$target, p:_local7, s:$target[_local7], c:$props[_local7] - $target[_local7]};
} else {
tweens[(("st" + _subTweens.length) + "_") + _local7] = {o:$target, p:_local7, s:$target[_local7], c:Number($props[_local7])};
}
}
}
_hst = true;
}
static function to($target, $duration, $vars) {
return(new gs.TweenLite($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenLite($target, $duration, $vars));
}
static function delayedCall($delay, $onComplete, $onCompleteParams, $onCompleteScope) {
return(new gs.TweenLite($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, onCompleteScope:$onCompleteScope, overwrite:false}));
}
function render($t) {
var _local5 = ($t - startTime) / 1000;
if (_local5 > duration) {
_local5 = duration;
}
var _local3;
var _local4 = vars.ease(_local5, 0, 1, duration);
for (var _local6 in tweens) {
_local3 = tweens[_local6];
_local3.o[_local3.p] = _local3.s + (_local4 * _local3.c);
}
if (_hst) {
var _local2 = 0;
while (_local2 < _subTweens.length) {
_subTweens[_local2].proxy(_subTweens[_local2]);
_local2++;
}
}
if (vars.onUpdate != undefined) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local5 == duration) {
complete(true);
}
}
static function executeAll() {
var _local2 = _all;
var _local3 = (_curTime = getTimer());
if (_listening) {
var _local1;
for (var _local5 in _local2) {
for (var _local4 in _local2[_local5]) {
_local1 = _local2[_local5][_local4];
if (_local1.active) {
_local1.render(_local3);
}
}
}
}
}
static function removeTween($t) {
_all[$t.endTargetID][$t.tweenID] = {active:false};
delete _all[$t.endTargetID][$t.tweenID];
}
static function killTweensOf($tg, $complete) {
var _local3 = getID($tg, true);
if ($complete) {
var _local1 = _all[_local3];
for (var _local2 in _local1) {
_local1[_local2].complete(false);
}
}
delete _all[_local3];
}
function complete($skipRender) {
if ($skipRender != true) {
if (!_initted) {
initTweenVals();
}
render(startTime + (duration * 1000));
return(undefined);
}
if ((typeof(vars.autoAlpha) == "number") && (target._alpha == 0)) {
target._visible = false;
}
if (vars.onComplete) {
vars.onComplete.apply(vars.onCompleteScope, vars.onCompleteParams);
}
removeTween(this);
}
static function getID($tg, $lookup) {
var _local3;
if ($lookup) {
var _local1 = _all;
if (typeof($tg) == "movieclip") {
if (_local1[String($tg)] != undefined) {
return(String($tg));
}
_local3 = String($tg);
_all[_local3] = {info:[$tg, _local3]};
return(_local3);
}
for (var _local4 in _local1) {
if (_local1[_local4].info[0] == $tg) {
return(_local4);
}
}
}
_cnt++;
_local3 = "t" + _cnt;
_all[_local3] = {info:[$tg, _local3]};
return(_local3);
}
static function killGarbage() {
if (_listening) {
var _local1 = _all;
var _local2;
var _local3;
var _local5;
var _local6 = 0;
var _local4 = 0;
for (_local3 in _local1) {
_local4 = 0;
for (_local5 in _local1[_local3]) {
_local2 = _local1[_local3][_local5];
if (_local2.tweens == undefined) {
} else {
_local4++;
}
}
if (_local4 == 0) {
delete _local1[_local3];
} else {
_local6++;
}
}
if (_local6 == 0) {
_listening = false;
}
}
}
static function defaultEase($t, $b, $c, $d) {
$t = $t / $d;
return((((-$c) * $t) * ($t - 2)) + $b);
}
function easeProxy($t, $b, $c, $d) {
var _local3 = this;
return(_local3.proxiedEase.apply(null, arguments.concat(_local3.easeParams)));
}
static function tintProxy($o) {
$o.info.color.setTransform($o.target);
}
static function frameProxy($o) {
$o.info.mc.gotoAndStop(Math.round($o.target.frame));
}
static function volumeProxy($o) {
$o.info.sound.setVolume($o.target.volume);
}
function get active() {
if (_active) {
return(true);
}
if (((_curTime - initTime) / 1000) > delay) {
_active = true;
startTime = initTime + (delay * 1000);
if (!_initted) {
initTweenVals();
} else if (typeof(vars.autoAlpha) == "number") {
target._visible = true;
}
if (duration == 0.001) {
startTime = startTime - 1;
}
if (vars.onStart != undefined) {
vars.onStart.apply(vars.onStartScope, vars.onStartParams);
}
return(true);
}
return(false);
}
static var version = 6.1;
static var killDelayedCallsTo = killTweensOf;
static var _all = new Object();
static var _cnt = -16000;
static var _hrp = false;
}
Symbol 1243 MovieClip [__Packages.gs.TweenFilterLite] Frame 0
class gs.TweenFilterLite extends gs.TweenLite
{
var _clrsa, _filters, _matrix, target, vars, _cmf, _endMatrix, tweens, startTime, duration, _hst, _subTweens;
function TweenFilterLite ($target, $duration, $vars) {
super($target, $duration, $vars);
if ((gs.TweenLite.version < 6.1) || (gs.TweenLite.version == undefined)) {
trace("ERROR! Please update your TweenLite class. TweenFilterLite requires a more recent version. Download updates at http://www.TweenLite.com.");
}
if ($vars.type != undefined) {
trace(("TweenFilterLite error: " + $target) + " is using deprecated syntax. Please update to the new syntax. See http://www.TweenFilterLite.com for details.");
}
}
static function to($target, $duration, $vars) {
return(new gs.TweenFilterLite($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenFilterLite($target, $duration, $vars));
}
function initTweenVals($hrp, $reservedProps) {
_clrsa = [];
_filters = [];
_matrix = _idMatrix.slice();
$reservedProps = $reservedProps || "";
$reservedProps = $reservedProps + " blurFilter glowFilter colorMatrixFilter dropShadowFilter bevelFilter ";
if ((typeof(target) == "movieclip") || (target instanceof TextField)) {
var _local4;
if (vars.blurFilter != undefined) {
_local4 = vars.blurFilter;
addFilter("blur", _local4, flash.filters.BlurFilter, ["blurX", "blurY", "quality"], new flash.filters.BlurFilter(0, 0, _local4.quality || 2));
}
if (vars.glowFilter != undefined) {
_local4 = vars.glowFilter;
addFilter("glow", _local4, flash.filters.GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength", "inner", "knockout"], new flash.filters.GlowFilter(16777215, 0, 0, 0, _local4.strength || 1, _local4.quality || 2, _local4.inner, _local4.knockout));
}
if (vars.colorMatrixFilter != undefined) {
_local4 = vars.colorMatrixFilter;
var _local11 = addFilter("colorMatrix", _local4, flash.filters.ColorMatrixFilter, [], new flash.filters.ColorMatrixFilter(_matrix));
_cmf = _local11.filter;
_matrix = _cmf.matrix;
if ((_local4.matrix != undefined) && (_local4.matrix instanceof Array)) {
_endMatrix = _local4.matrix;
} else {
if (_local4.relative == true) {
_endMatrix = _matrix.slice();
} else {
_endMatrix = _idMatrix.slice();
}
_endMatrix = setBrightness(_endMatrix, _local4.brightness);
_endMatrix = setContrast(_endMatrix, _local4.contrast);
_endMatrix = setHue(_endMatrix, _local4.hue);
_endMatrix = setSaturation(_endMatrix, _local4.saturation);
_endMatrix = setThreshold(_endMatrix, _local4.threshold);
if (!isNaN(_local4.colorize)) {
_endMatrix = colorize(_endMatrix, _local4.colorize, _local4.amount);
} else if (!isNaN(_local4.color)) {
_endMatrix = colorize(_endMatrix, _local4.color, _local4.amount);
}
}
var _local5 = 0;
while (_local5 < _endMatrix.length) {
if ((_matrix[_local5] != _endMatrix[_local5]) && (_matrix[_local5] != undefined)) {
tweens["tfl_mtx" + _local5] = {o:_matrix, p:_local5.toString(), s:_matrix[_local5], c:_endMatrix[_local5] - _matrix[_local5]};
}
_local5++;
}
}
if (vars.dropShadowFilter != undefined) {
_local4 = vars.dropShadowFilter;
addFilter("dropShadow", _local4, flash.filters.DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength", "inner", "knockout", "hideObject"], new flash.filters.DropShadowFilter(0, 45, 0, 0, 0, 0, 1, _local4.quality || 2, _local4.inner, _local4.knockout, _local4.hideObject));
}
if (vars.bevelFilter != undefined) {
_local4 = vars.bevelFilter;
addFilter("bevel", _local4, flash.filters.BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new flash.filters.BevelFilter(0, 0, 16777215, 0.5, 0, 0.5, 2, 2, 0, _local4.quality || 2));
}
if (vars.runBackwards == true) {
var _local3;
var _local5 = 0;
while (_local5 < _clrsa.length) {
_local3 = _clrsa[_local5];
_local3.sr = _local3.sr + _local3.cr;
_local3.cr = _local3.cr * -1;
_local3.sg = _local3.sg + _local3.cg;
_local3.cg = _local3.cg * -1;
_local3.sb = _local3.sb + _local3.cb;
_local3.cb = _local3.cb * -1;
_local3.f[_local3.p] = ((_local3.sr << 16) | (_local3.sg << 8)) | _local3.sb;
_local5++;
}
}
super.initTweenVals(true, $reservedProps);
} else {
super.initTweenVals($hrp, $reservedProps);
}
}
function addFilter($name, $fv, $filterType, $props, $defaultFilter) {
var _local5 = {type:$filterType};
var _local8 = target.filters;
var _local3;
_local3 = 0;
while (_local3 < _local8.length) {
if (_local8[_local3] instanceof $filterType) {
_local5.filter = _local8[_local3];
break;
}
_local3++;
}
if (_local5.filter == undefined) {
_local5.filter = $defaultFilter;
_local8.push(_local5.filter);
target.filters = _local8;
}
var _local2;
var _local9;
var _local4;
var _local7;
_local3 = 0;
while (_local3 < $props.length) {
_local2 = $props[_local3];
if ($fv[_local2] != undefined) {
if (((_local2 == "color") || (_local2 == "highlightColor")) || (_local2 == "shadowColor")) {
_local4 = HEXtoRGB(_local5.filter[_local2]);
_local7 = HEXtoRGB($fv[_local2]);
_clrsa.push({f:_local5.filter, p:_local2, sr:_local4.rb, cr:_local7.rb - _local4.rb, sg:_local4.gb, cg:_local7.gb - _local4.gb, sb:_local4.bb, cb:_local7.bb - _local4.bb});
} else if ((((_local2 == "quality") || (_local2 == "inner")) || (_local2 == "knockout")) || (_local2 == "hideObject")) {
_local5.filter[_local2] = $fv[_local2];
} else {
if (typeof($fv[_local2]) == "number") {
_local9 = $fv[_local2] - _local5.filter[_local2];
} else {
_local9 = Number($fv[_local2]);
}
tweens[("tfl_" + $name) + _local3] = {o:_local5.filter, p:_local2, s:_local5.filter[_local2], c:_local9};
}
}
_local3++;
}
_filters.push(_local5);
_hf = true;
return(_local5);
}
function render($t) {
var _local11 = ($t - startTime) / 1000;
if (_local11 > duration) {
_local11 = duration;
}
var _local7 = vars.ease(_local11, 0, 1, duration);
var _local4;
var _local3;
var _local5;
var _local9;
var _local10;
var _local8;
for (var _local12 in tweens) {
_local4 = tweens[_local12];
_local4.o[_local4.p] = _local4.s + (_local7 * _local4.c);
}
if (_hf) {
_local3 = 0;
while (_local3 < _clrsa.length) {
_local4 = _clrsa[_local3];
_local9 = _local4.sr + (_local7 * _local4.cr);
_local10 = _local4.sg + (_local7 * _local4.cg);
_local8 = _local4.sb + (_local7 * _local4.cb);
_local4.f[_local4.p] = ((_local9 << 16) | (_local10 << 8)) | _local8;
_local3++;
}
if (_cmf) {
_cmf.matrix = _matrix;
}
var _local6 = target.filters;
_local3 = 0;
while (_local3 < _filters.length) {
_local5 = _local6.length - 1;
while (_local5 > -1) {
if (_local6[_local5] instanceof _filters[_local3].type) {
_local6.splice(_local5, 1, _filters[_local3].filter);
break;
}
_local5--;
}
_local3++;
}
target.filters = _local6;
}
if (_hst) {
_local3 = 0;
while (_local3 < _subTweens.length) {
_subTweens[_local3].proxy(_subTweens[_local3]);
_local3++;
}
}
if (vars.onUpdate != undefined) {
vars.onUpdate.apply(null, vars.onUpdateParams);
}
if (_local11 == duration) {
super.complete(true);
}
}
function HEXtoRGB($n) {
return({rb:$n >> 16, gb:($n >> 8) & 255, bb:$n & 255});
}
static function colorize($m, $color, $amount) {
if (($color == undefined) || (isNaN($color))) {
return($m);
}
if ($amount == undefined) {
$amount = 1;
}
var _local3 = (($color >> 16) & 255) / 255;
var _local5 = (($color >> 8) & 255) / 255;
var _local2 = ($color & 255) / 255;
var _local4 = 1 - $amount;
var _local7 = [_local4 + (($amount * _local3) * _lumR), ($amount * _local3) * _lumG, ($amount * _local3) * _lumB, 0, 0, ($amount * _local5) * _lumR, _local4 + (($amount * _local5) * _lumG), ($amount * _local5) * _lumB, 0, 0, ($amount * _local2) * _lumR, ($amount * _local2) * _lumG, _local4 + (($amount * _local2) * _lumB), 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local7, $m));
}
static function setThreshold($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
var _local2 = [_lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, 0, 0, 0, 1, 0];
return(applyMatrix(_local2, $m));
}
static function setHue($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = $n * (Math.PI/180);
var _local1 = Math.cos($n);
var _local2 = Math.sin($n);
var _local4 = [(_lumR + (_local1 * (1 - _lumR))) + (_local2 * (-_lumR)), (_lumG + (_local1 * (-_lumG))) + (_local2 * (-_lumG)), (_lumB + (_local1 * (-_lumB))) + (_local2 * (1 - _lumB)), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * 0.143), (_lumG + (_local1 * (1 - _lumG))) + (_local2 * 0.14), (_lumB + (_local1 * (-_lumB))) + (_local2 * -0.283), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * (-(1 - _lumR))), (_lumG + (_local1 * (-_lumG))) + (_local2 * _lumG), (_lumB + (_local1 * (1 - _lumB))) + (_local2 * _lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return(applyMatrix(_local4, $m));
}
static function setBrightness($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = ($n * 100) - 100;
return(applyMatrix([1, 0, 0, 0, $n, 0, 1, 0, 0, $n, 0, 0, 1, 0, $n, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], $m));
}
static function setSaturation($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
var _local4 = 1 - $n;
var _local3 = _local4 * _lumR;
var _local5 = _local4 * _lumG;
var _local2 = _local4 * _lumB;
var _local6 = [_local3 + $n, _local5, _local2, 0, 0, _local3, _local5 + $n, _local2, 0, 0, _local3, _local5, _local2 + $n, 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local6, $m));
}
static function setContrast($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = $n + 0.01;
var _local2 = [$n, 0, 0, 0, 128 * (1 - $n), 0, $n, 0, 0, 128 * (1 - $n), 0, 0, $n, 0, 128 * (1 - $n), 0, 0, 0, 1, 0];
return(applyMatrix(_local2, $m));
}
static function applyMatrix($m, $m2) {
if (((($m == undefined) || (!($m instanceof Array))) || ($m2 == undefined)) || (!($m2 instanceof Array))) {
return($m2);
}
var _local7 = [];
var _local2 = 0;
var _local5 = 0;
var _local6 = 0;
while (_local6 < 4) {
var _local1 = 0;
while (_local1 < 5) {
if (_local1 == 4) {
_local5 = $m[_local2 + 4];
} else {
_local5 = 0;
}
_local7[_local2 + _local1] = (((($m[_local2] * $m2[_local1]) + ($m[_local2 + 1] * $m2[_local1 + 5])) + ($m[_local2 + 2] * $m2[_local1 + 10])) + ($m[_local2 + 3] * $m2[_local1 + 15])) + _local5;
_local1++;
}
_local2 = _local2 + 5;
_local6++;
}
return(_local7);
}
static var version = 7.06;
static var delayedCall = gs.TweenLite.delayedCall;
static var killTweensOf = gs.TweenLite.killTweensOf;
static var killDelayedCallsTo = gs.TweenLite.killDelayedCallsTo;
static var _idMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
static var _lumR = 0.212671;
static var _lumG = 0.71516;
static var _lumB = 0.072169;
var _hf = false;
}
Symbol 1244 MovieClip [__Packages.MD5] Frame 0
class MD5
{
function MD5 () {
}
static function calculate(src) {
return(hex_md5(src));
}
static function hex_md5(src) {
return(binl2hex(core_md5(str2binl(src), src.length * 8)));
}
static function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
return(new Array(_local4, _local3, _local2, _local1));
}
static function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
static function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
static function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
static function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
static function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
static function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
static function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
static function str2binl(str) {
var _local3 = new Array();
var _local4 = 255;
var _local1 = 0;
while (_local1 < (str.length * 8)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((str.charCodeAt(_local1 / 8) & _local4) << (_local1 % 32));
_local1 = _local1 + 8;
}
return(_local3);
}
static function binl2hex(binarray) {
var _local4 = new String("");
var _local3 = new String("0123456789abcdef");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
}
Symbol 1245 MovieClip [__Packages.Projectile] Frame 0
class Projectile extends OnslaughtObject
{
var laser_rate_msec, rocket_rate_msec, laser_fired, rocket_fired, rocket_range_sq, _x, _y, bullet_target, turret, _rotation, sound_blast, interval, black_holed, effect, blackHoled, removeMovieClip;
function Projectile () {
super();
laser_rate_msec = 1000 / (laser_rate / 60);
rocket_rate_msec = 1000 / (rocket_rate / 60);
laser_fired = GameClock.timeNow();
rocket_fired = GameClock.timeNow();
laser_range_sq = laser_range * laser_range;
rocket_range_sq = rocket_range * rocket_range;
}
function projectileBlast() {
if (blast == true) {
var _local3 = new Object();
_local3._x = _x;
_local3._y = _y;
_local3.bullet_target = bullet_target;
_local3.target_x = bullet_target._x;
_local3.target_y = bullet_target._y;
_local3.weapon_damage = blast_damage;
_local3.weapon_poison = blast_poison;
_local3.turret = turret;
_local3.blast_angle = _rotation;
_local3.napalm_quantity = napalm_quantity;
_local3.napalm_timing = napalm_timing;
_local3.napalm_jit = napalm_jit;
_root.Game.bulletNew(blast_type, _local3);
if (sound_blast != undefined) {
SoundPlayer.play(sound_blast, this);
}
}
}
function projectileCluster() {
if (cluster == true) {
var _local3 = new Object();
_local3._x = _x;
_local3._y = _y;
_local3.cluster_damage = cluster_damage;
_local3.cluster_qty = cluster_qty;
_local3.cluster_laser = cluster_laser;
_local3.cluster_laser_damage = cluster_laser_damage;
_local3.cluster_holding = cluster_holding;
_local3.cluster_rocket = cluster_rocket;
_local3.turret = turret;
_root.Game.bulletNew(cluster_type, _local3);
}
}
function projectileBlackHoled(the_hole) {
clearInterval(interval);
black_holed = true;
effect.effectRemove();
blackHoled(the_hole);
}
function removeMyself() {
_root.Game.BulletManager.bulletSpent(this);
clearInterval(interval);
removeMovieClip();
removeMovieClip();
}
var bullet_damage = 1;
var bullet_poison = 1;
var blast = false;
var blast_type = "BlastMedium";
var blast_damage = 1000000;
var blast_poison = 1;
var cluster = false;
var cluster_qty = 5;
var cluster_holding = true;
var cluster_damage = 1000000;
var cluster_laser_damage = 1000000;
var cluster_rocket = "Rocket9";
var cluster_laser = false;
var cluster_type = "ClusterBlast";
var laser_capable = false;
var laser_damage = 1000000;
var laser_range = 200;
var laser_range_sq = 200;
var laser_rate = 120;
var laser_type = "LaserBeam";
var laser_poison = 0;
var rocket_capable = false;
var rocket_damage = 1000000;
var rocket_range = 300;
var rocket_rate = 120;
var rocket_type = "Rocket9";
var no_rotate = false;
var offscreen_remove = false;
var offscreen_lock = false;
var napalm_quantity = 16;
var napalm_timing = 75;
var napalm_jit = 30;
}
Symbol 1246 MovieClip [__Packages.BlackHole] Frame 0
class BlackHole extends Projectile
{
var _x, hole_location, _y, _xscale, _yscale, _alpha, effect, effectNew, hole_opened, getNextHighestDepth, attachMovie, Swirl, interval, targetListInBox, trigDistanceTo;
function BlackHole () {
super();
_x = hole_location._x;
_y = hole_location._y;
_xscale = 0;
_yscale = 0;
_alpha = 0;
var _local3 = new Object();
_local3.target_xscale = 100;
_local3.target_yscale = 100;
_local3.target_alpha = 100;
_local3.effect_duration = 200;
_local3.target_obj = this;
_local3.onComplete = function () {
this.target_obj.update();
};
effect = effectNew(_local3);
hole_opened = GameClock.timeNow();
SoundPlayer.play("BlackHole");
}
function onEnterFrame() {
var _local3 = "BlackHoleDebris";
var _local5 = getNextHighestDepth();
var _local6 = _local3 + _local5;
var _local2 = new Object();
var _local4 = weapon_range / 2;
_local2._x = Math.floor((Math.random() * weapon_range) - _local4);
_local2._y = Math.floor((Math.random() * weapon_range) - _local4);
_local2.hole = this;
var _local7 = attachMovie(_local3, _local6, _local5, _local2);
Swirl._rotation = Swirl._rotation + 29;
}
function update() {
if (interval == undefined) {
interval = setInterval(this, "update", 200);
}
var _local2;
var _local6;
var _local3 = targetListInBox(this, weapon_range);
for (var _local12 in _local3) {
_local2 = _local3[_local12];
if (_local2.black_holed != true) {
_local6 = trigDistanceTo(this, _local2);
if (_local6 <= weapon_range) {
_local2.attackerBlackHoled(this);
}
}
}
_local3 = BulletManager.bullets;
var _local5;
var _local4;
var _local11 = _x - weapon_range;
var _local9 = _x + weapon_range;
var _local10 = _y - weapon_range;
var _local8 = _y + weapon_range;
for (var _local12 in _local3) {
_local2 = _local3[_local12];
if (_local2.black_holed != true) {
_local5 = _local2._x;
_local4 = _local2._y;
if (((((_local2 && (_local2._name)) && (_local5 >= _local11)) && (_local5 <= _local9)) && (_local4 >= _local10)) && (_local4 <= _local8)) {
if (_local2.black_hole_affect == true) {
_local2.projectileBlackHoled(this);
}
}
}
}
var _local14 = GameClock.timeNow();
var _local13 = _local14 - hole_opened;
if (_local13 >= hole_duration) {
clearInterval(interval);
var _local7 = new Object();
_local7.target_xscale = 0;
_local7.target_yscale = 0;
_local7.target_alpha = 0;
_local7.effect_duration = 200;
_local7.target_obj = this;
_local7.onComplete = function () {
this.target_obj.removeMyself();
};
effect = effectNew(_local7);
}
}
var weapon_range = 120;
var gravity = 500;
var hole_duration = 3000;
var black_hole_affect = false;
}
Symbol 1247 MovieClip [__Packages.BulletManager] Frame 0
class BulletManager extends OnslaughtManager
{
static var bullets;
var interval, pruneDead, attachClip, removeClip, getNextHighestDepth, attachMovie;
function BulletManager () {
super();
interval = setInterval(this, "update", frame_space);
}
function update() {
bullets = pruneDead(bullets);
}
function bulletNew(obj_type, init_obj) {
var _local2 = attachClip(obj_type, init_obj);
bullets.push(_local2);
return(_local2);
}
function bulletSpent(the_bullet) {
removeClip(the_bullet);
return(true);
}
function rocketSmoke(the_obj) {
var _local3 = "RocketTrail";
var _local4 = getNextHighestDepth();
var _local5 = _local3 + _local4;
var _local2 = new Object();
_local2._x = the_obj._x;
_local2._y = the_obj._y;
_local2._rotation = Math.random() * 360;
var _local6 = attachMovie(_local3, _local5, _local4, _local2);
}
function rocketSmokeGone(the_obj) {
the_obj.removeMovieClip();
}
var time_last = 0;
var frame_space = 1000;
}
Symbol 1248 MovieClip [__Packages.TurretManager] Frame 0
class TurretManager extends OnslaughtManager
{
static var turrets;
var type_names, addListener, broadcastMessage, getNextHighestDepth, attachMovie, effectNew, cur_turret, the_range, the_range_effective, the_highlight, move_clip, build_clip;
function TurretManager () {
super();
turrets = new Array();
time_last = GameClock.timeNow();
type_names = new Array();
type_names.TurretBlue = new Array("BangBang", "Cannon", "Shooter", "Shotgun", "Boomer", "Artillery", "MG42-", "Gun", "Kapow");
type_names.TurretGreen = new Array("Laser", "MeanGreen", "Greeno", "Greeny", "IR Tower", "Beamer", "BeamShot");
type_names.TurretRed = new Array("Rocket", "SAMTower", "ScudMan", "ICBM", "Silo", "Station", "Bigboy", "Minuteman");
type_names.TurretYellow = new Array("Shocker", "Tazer", "Zap", "Joules", "Lightning", "Bzzt", "StunGun", "Jaundice");
type_names.TurretTargeter = new Array("TargetPainter", "Frontline", "Caller", "HeadsUp", "Longrange");
type_names.TurretSniper = new Array("Snipes", "Wesley", "Precision", "Kar98k", "Moisin-Nagent", "Shootah");
type_names.TurretRailgun = new Array("Dith", "CERN", "ParticleCannon", "HALO", "PPSX-761", "ZAP");
type_names.TurretFusion = new Array("Charger", "SinkHole", "BlackHole", "Quasar", "BuildUp", "Compile");
addListener(_root.UpgradePanel);
broadcastMessage("onTurretChange");
}
function turretNew(obj_type, init_obj) {
turret_counter++;
init_obj.turret_num = turret_counter;
if (type_names[init_obj.turret_type] != undefined) {
var _local9 = type_names[obj_type];
var _local10 = Math.floor(Math.random() * _local9.length);
init_obj.display_name = _local9[_local10];
}
init_obj._alpha = 0;
var _local7 = obj_type;
var _local8 = getNextHighestDepth();
var _local11 = _local7 + _local8;
var _local2 = attachMovie(_local7, _local11, _local8, init_obj);
var _local3;
turrets.push(_local2);
for (var _local5 in turrets) {
_local3 = turrets[_local5];
_local3.notifyNew(_local2);
}
var _local4 = new Object();
_local4.target_obj = _local2;
_local4.effect_duration = 150;
_local4.target_alpha = 100;
_local2.effect = effectNew(_local4);
SoundPlayer.play("Build", _local2);
return(_local2);
}
function get turret_count() {
return(turret_counter);
}
function turretSelect(the_turret) {
if (cur_turret && (cur_turret._name)) {
turretHighlightHide();
turretRangeHide();
turretComboInRangeHide();
turretJoinHide();
delete cur_turret.onFire;
}
if (cur_turret == the_turret) {
cur_turret = undefined;
turretHighlightHide();
turretRangeHide();
turretComboInRangeHide();
turretJoinHide();
} else {
cur_turret = the_turret;
turretHighlightShow();
turretJoinShow();
}
if (cur_turret != undefined) {
if (range_show == true) {
turretRangeShow();
}
if (GameStatus.show_combo_in_range == true) {
turretComboInRangeShow();
}
cur_turret.onFire = function () {
_root.Game.TurretManager.broadcastMessage("onTurretFire");
};
}
broadcastMessage("onTurretChange");
SoundPlayer.play("TurretSelect", cur_turret);
}
function turretUpgradeDamage() {
if (cur_turret) {
cur_turret.upgradeDamage();
broadcastMessage("onTurretUpgrade");
}
}
function turretUpgradeRange() {
if (cur_turret) {
cur_turret.upgradeRange();
broadcastMessage("onTurretUpgrade");
}
}
function turretUpgradeRate() {
if (cur_turret) {
cur_turret.upgradeRate();
broadcastMessage("onTurretUpgrade");
}
}
function turretUpgradeDamageMax() {
if (cur_turret) {
cur_turret.upgradeDamageMax();
broadcastMessage("onTurretUpgrade");
}
}
function turretUpgradeRangeMax() {
if (cur_turret) {
cur_turret.upgradeRangeMax();
broadcastMessage("onTurretUpgrade");
}
}
function turretUpgradeRateMax() {
if (cur_turret) {
cur_turret.upgradeRateMax();
broadcastMessage("onTurretUpgrade");
}
}
function turretRangeToggle() {
if (range_show == false) {
range_show = true;
turretRangeShow();
} else {
range_show = false;
turretRangeHide();
}
}
function turretRangeShow() {
var _local2 = cur_turret;
if (!_local2) {
return(false);
}
if (the_range) {
return(true);
}
if (_local2.target_angle_mode == OnslaughtObject.TA_MODE_ENGAGED) {
turretRangeShowAngled();
} else {
turretRangeShowCircular();
}
}
function turretRangeShowAngled() {
var _local3 = getNextHighestDepth();
var _local2 = "TurretRangeAngled";
var _local4 = _local2 + _local3;
the_range = TurretRangeAngled(attachMovie(_local2, _local4, _local3));
the_range.turret = cur_turret;
}
function turretRangeShowCircular() {
var _local2 = cur_turret;
if (_local2.weapon_range_effective != _local2.weapon_range) {
var _local5 = getNextHighestDepth();
var _local4 = "TurretRangeEffective";
var _local6 = _local4 + _local5;
var _local3 = attachMovie(_local4, _local6, _local5);
_local3._width = _local2.weapon_range_effective * 2;
_local3._height = _local2.weapon_range_effective * 2;
_local3._x = _local2._x;
_local3._y = _local2._y;
the_range_effective = _local3;
}
var _local5 = getNextHighestDepth();
var _local4 = "TurretRange";
var _local6 = _local4 + _local5;
the_range = attachMovie(_local4, _local6, _local5);
the_range._width = _local2.weapon_range * 2;
the_range._height = _local2.weapon_range * 2;
the_range._x = _local2._x;
the_range._y = _local2._y;
}
function turretRangeHide() {
if (the_range != undefined) {
the_range.removeMovieClip();
}
if (the_range_effective != undefined) {
the_range_effective.removeMovieClip();
}
the_range = undefined;
the_range_effective = undefined;
}
function turretRangeUpdate() {
if (the_range) {
turretRangeHide();
turretRangeShow(cur_turret);
}
}
function turretHighlightShow() {
if (!the_highlight) {
var _local2 = "TurretHighlight";
var _local3 = getNextHighestDepth();
var _local5 = _local2 + _local3;
var _local4 = attachMovie(_local2, _local5, _local3);
the_highlight = _local4;
}
the_highlight._x = cur_turret._x;
the_highlight._y = cur_turret._y;
}
function turretHighlightHide() {
if (the_highlight) {
the_highlight.removeMovieClip();
}
the_highlight = undefined;
}
function turretComboInRangeShow() {
var _local2 = cur_turret.combo_in_range;
var _local3;
for (var _local4 in _local2) {
_local3 = _local2[_local4];
_local3.comboInRangeShow();
}
}
function turretComboInRangeHide() {
var _local2 = cur_turret.combo_in_range;
var _local3;
for (var _local4 in _local2) {
_local3 = _local2[_local4];
_local3.comboInRangeHide();
}
}
function turretComboInRangeToggle() {
if (GameStatus.show_combo_in_range == false) {
GameStatus.show_combo_in_range = true;
turretComboInRangeShow();
} else {
GameStatus.show_combo_in_range = false;
turretComboInRangeHide();
}
}
function turretList() {
return(turrets);
}
function turretSold(the_turret) {
var _local4 = new Array();
for (var _local5 in turrets) {
var _local2 = turrets[_local5];
if (_local2 != the_turret) {
_local2.notifyGone(the_turret);
_local4.push(_local2);
}
}
turret_counter--;
turrets = _local4;
}
function turretSell() {
if (GameStatus.game_over) {
return(false);
}
if (GameStatus.game_paused) {
return(false);
}
var _local3 = cur_turret;
if (!_local3) {
return(false);
}
turretRangeHide();
_local3.onSell();
var _local6 = _local3.cash_value;
var _local5 = Math.ceil(_local6 * turret_resale);
_root.Game.CashManager.cashKerching(_local3._x, _local3._y, _local5);
_root.Game.CashManager.cashWin(_local5);
_root.Game.CashManager.cashUnspend(_local5);
SoundPlayer.play("Sell", _local3);
turretSold(_local3);
_local3.active = false;
var _local4 = new Object();
_local4.target_obj = _local3;
_local4.target_alpha = 0;
_local4.effect_duration = 200;
_local4.onComplete = function () {
this.target_obj.removeMyself();
};
_local3.effect = effectNew(_local4);
cur_turret = undefined;
turretHighlightHide();
broadcastMessage("onTurretChange");
return(true);
}
function turretMove() {
turretCancelAllBuild();
if (GameStatus.game_over) {
return(false);
}
var _local3 = "MoveShape";
var _local4 = getNextHighestDepth();
var _local5 = _local3 + _local4;
var _local2 = new Object();
_local2.the_turret = cur_turret;
_local2.turret_range = cur_turret.weapon_range;
move_clip = attachMovie(_local3, _local5, _local4, _local2);
return(true);
}
function turretMoveCancel() {
if (move_clip && (move_clip._name)) {
move_clip.buildCancel();
}
}
function turretMoveNotify(the_turret) {
the_turret.turretMoved();
for (var _local3 in turrets) {
var _local1 = turrets[_local3];
if (_local1 != the_turret) {
_local1.notifyMove(the_turret);
}
}
}
function turretGetLayout() {
var _local3 = new Array();
for (var _local4 in turrets) {
var _local2 = turrets[_local4];
var _local1 = new Object();
_local1.x = _local2._x;
_local1.y = _local2._y;
_local1.name = _local2._name;
_local1.turret_type = _local2.turret_type;
_local1.weapon_rotation = _local2.Weapon._rotation;
_local1.upgrade_damage = _local2.upgrade_damage_level;
_local1.upgrade_range = _local2.upgrade_range_level;
_local1.upgrade_rate = _local2.upgrade_rate_level;
_local1.weapon_damage = _local2.weapon_damage;
_local1.weapon_range = _local2.weapon_range;
_local1.weapon_rate = _local2.weapon_rate;
_local1.weapon_fire_count = _local2.weapon_fire_count;
_local1.weapon_kill_count = _local2.weapon_kill_count;
_local1.combo_fire_count = _local2.combo_fire_count;
_local3.push(_local1);
}
return(_local3);
}
function turretBuildTry(new_data) {
turretCancelAllBuild();
if (GameStatus.game_over) {
return(false);
}
if (isNaN(new_data.turret_cost)) {
return(false);
}
if (new_data.turret_cost == undefined) {
return(false);
}
var _local2 = "BuildShape";
var _local4 = getNextHighestDepth();
var _local5 = _local2 + _local4;
new_data.turret_limit = turret_limit;
build_clip = attachMovie(_local2, _local5, _local4, new_data);
return(true);
}
function turretBuildCancel() {
if (build_clip && (build_clip._name)) {
build_clip.buildCancel();
}
}
function turretCancelAllBuild() {
turretBuildCancel();
turretMoveCancel();
}
function turretTargetModeCycle() {
if (GameStatus.game_over) {
return(false);
}
if (GameStatus.game_paused) {
return(false);
}
var _local2 = cur_turret;
if (_local2 && (_local2._name)) {
_local2.turretTargetModeCycle();
return(true);
}
return(false);
}
function turretTargetModeLockToggle() {
if (GameStatus.game_over) {
return(false);
}
if (GameStatus.game_paused) {
return(false);
}
var _local2 = cur_turret;
if (_local2 && (_local2._name)) {
_local2.turretTargetModeLockToggle();
return(true);
}
return(false);
}
function turretToggleDirectional() {
if (GameStatus.game_over) {
return(false);
}
if (GameStatus.game_paused) {
return(false);
}
var _local2 = cur_turret;
if (_local2 && (_local2._name)) {
_local2.turretTargetDirectional();
turretRangeUpdate();
return(true);
}
return(false);
}
function turretSetDirectional() {
if (GameStatus.game_over) {
return(false);
}
if (GameStatus.game_paused) {
return(false);
}
var _local2 = cur_turret;
if (_local2 && (_local2._name)) {
_local2.turretTargetDirectionalSet();
turretRangeUpdate();
return(true);
}
return(false);
}
function turretJoin() {
if (GameStatus.game_over) {
return(false);
}
if (GameStatus.game_paused) {
return(false);
}
var _local2 = cur_turret;
if (_local2 && (_local2._name)) {
_local2.joinFrom();
return(true);
}
return(false);
}
function turretJoinShow() {
if (cur_turret && (cur_turret._name)) {
cur_turret.joinShow();
}
}
function turretJoinHide() {
if (cur_turret && (cur_turret._name)) {
cur_turret.joinHide();
}
}
function turretJoinCancel() {
if (cur_turret && (cur_turret._name)) {
cur_turret.joinCancel();
}
}
var turret_counter = 0;
var time_last = 0;
var frame_space = 66;
var range_show = true;
var turret_resale = 0.7;
var turret_limit = undefined;
}
Symbol 1249 MovieClip [__Packages.TurretRangeAngled] Frame 0
class TurretRangeAngled extends OnslaughtObject
{
var _x, turret, _y, lineStyle, beginFill, endFill, _rotation, trigForwardAtAngle, moveTo, lineTo;
function TurretRangeAngled () {
super();
}
function onLoad() {
draw();
}
function draw() {
_x = turret._x;
_y = turret._y;
var _local2 = turret.weapon_range;
var _local4 = turret.weapon_range_effective;
var _local3 = turret.target_angle_spread * 2;
lineStyle(1, 0, 50);
beginFill(3407616, 15);
drawArc(_local2, _local3, 18);
endFill();
if (_local4 != _local2) {
lineStyle(2, 0, 15);
beginFill(16777215, 10);
drawArc(_local4, _local3, _local2 + 1);
endFill();
}
_rotation = turret.target_angle_deg - (_local3 / 2);
}
function drawArc(the_range, the_angle, min_range) {
var _local3 = trigForwardAtAngle(the_angle, min_range);
var _local10 = trigForwardAtAngle(the_angle, the_range);
var _local9 = 0;
var _local5 = the_angle / 360;
var _local2 = the_angle / 360;
var _local7 = -_local2;
moveTo(min_range, 0);
lineTo(the_range, 0);
arcTo(0, 0, the_range, _local9, _local5, 24);
lineTo(_local3.x, _local3.y);
arcTo(0, 0, min_range, _local2, _local7, 8);
}
function arcTo(centerX, centerY, radius, startAngle, arcAngle, steps) {
var _local4 = (Math.PI*2);
var _local9 = arcAngle / steps;
var _local7 = centerX + (Math.cos(startAngle * _local4) * radius);
var _local6 = centerY + (Math.sin(startAngle * _local4) * radius);
var _local2 = 1;
while (_local2 <= steps) {
var _local3 = startAngle + (_local2 * _local9);
_local7 = centerX + (Math.cos(_local3 * _local4) * radius);
_local6 = centerY + (Math.sin(_local3 * _local4) * radius);
lineTo(_local7, _local6);
_local2++;
}
}
var para_a = 0.87;
var para_b = 200;
}
Symbol 1250 MovieClip [__Packages.AttackerEngine] Frame 0
class AttackerEngine extends OnslaughtObject
{
var _x, _y, created_at, _alpha, effect_in, effectNew, Body, effect, trigDistanceTo, trigDegreesTo, interval_replenish, removeMyself, black_holed, HealthBar, interval, blackHoled, getNextHighestDepth, attachMovie;
function AttackerEngine () {
super();
waypoint_list = _root.Game.RoadManager.getWaypointList();
waypoint_total = _root.Game.RoadManager.getWaypointTotal();
waypoint_cur = 1;
energy = energy_start;
energy_pct = Math.ceil((energy / energy_start) * 100);
move_speed_init = move_speed;
var _local4 = waypoint_jitter;
var _local7 = Math.round((Math.random() * _local4) - (_local4 / 2));
var _local6 = Math.round((Math.random() * _local4) - (_local4 / 2));
var _local5 = waypoint_list[1];
_x = _local5._x + _local7;
_y = _local5._y + _local6;
created_at = GameClock.timeNow();
update();
}
function get age() {
return(GameClock.timeNow() - created_at);
}
function onLoad() {
_alpha = 0;
var _local2 = new Object();
_local2.target_obj = this;
_local2.target_alpha = 100;
_local2.effect_duration = 225;
effect_in = effectNew(_local2);
Body._xscale = 100 + ((scale_bump - 1) * 6);
Body._yscale = 100 + ((scale_bump - 1) * 6);
}
function update() {
effect.effectRemove();
var _local2 = waypoint_list[waypoint_cur];
waypoint_cur++;
if (waypoint_cur > waypoint_total) {
attackerHitBase();
return(true);
}
updateMove();
}
function updateMove() {
effect.effectRemove();
var _local4 = waypoint_list[waypoint_cur];
var _local8 = trigDistanceTo(this, _local4);
var _local5 = _local8 / move_speed;
if (repoint) {
Body._rotation = trigDegreesTo(this, _local4);
}
var _local3 = waypoint_jitter;
var _local7 = Math.round((Math.random() * _local3) - (_local3 / 2));
var _local6 = Math.round((Math.random() * _local3) - (_local3 / 2));
var _local2 = new Object();
_local2.target_obj = this;
_local2.target_x = _local4._x + _local7;
_local2.target_y = _local4._y + _local6;
_local2.effect_duration = _local5 * 1000;
_local2.pausable = true;
_local2.from = this;
_local2.onComplete = function () {
this.from.update();
};
effect = effectNew(_local2);
if (move_speed < move_speed_init) {
if (interval_replenish == undefined) {
_local2 = new Object();
_local2.effect_duration = 1000;
_local2.pausable = true;
_local2.target_obj = this;
_local2.from = this;
_local2.onComplete = function () {
this.from.attackerReplenish();
};
interval_replenish = effectNew(_local2);
}
}
return(true);
}
function attackerHitBase() {
_root.Game.roadBaseHit();
removeMyself();
}
function attackerHit(the_damage, hit_by) {
if (black_holed == true) {
return(undefined);
}
energy = energy - the_damage;
if (energy <= 0) {
if (hit_by && (hit_by._name)) {
hit_by.turretKill();
}
SoundPlayer.play("AttackerDead", this);
attackerDead();
} else {
SoundPlayer.play("AttackerHit", this);
energy_pct = Math.ceil((energy / energy_start) * 100);
HealthBar.text = energy_pct;
}
}
function attackerPoison(the_poison, minus) {
if (black_holed == true) {
return(undefined);
}
if (minus == true) {
move_speed = move_speed - the_poison;
} else {
move_speed = move_speed / the_poison;
}
move_speed = Math.max(move_speed, 5);
updateMove();
}
function attackerReplenish() {
if (black_holed == true) {
return(undefined);
}
if (GameStatus.game_paused == true) {
return(undefined);
}
move_speed = move_speed + 2;
if (move_speed >= move_speed_init) {
move_speed = move_speed_init;
}
interval_replenish = undefined;
updateMove();
}
function attackerDead(dirty_kill) {
if (dirty_kill != true) {
_root.Game.AttackerManager.attackerKilled(this);
}
interval_replenish.effectRemove();
removeMyself();
}
function attackerBlackHoled(the_hole) {
black_holed = true;
interval_replenish.effectRemove();
clearInterval(interval);
effect.effectRemove();
cash_bounty = 0;
blackHoled(the_hole);
}
function onBlackHoled() {
attackerDead(true);
}
function focusOnMe() {
var _local5 = "CrossHair";
var _local6 = getNextHighestDepth();
var _local7 = _local5 + _local6;
var _local3 = new Object();
_local3._x = 0;
_local3._y = 0;
_local3._alpha = 100;
var _local4 = attachMovie(_local5, _local7, _local6, _local3);
var _local2 = new Object();
_local2.target_width = 80;
_local2.target_height = 80;
_local2.effect_duration = 350;
_local2.target_alpha = 0;
_local2.target_obj = _local4;
_local2.onComplete = function () {
this.target_obj.removeMyself();
};
_local4.effect = effectNew(_local2);
}
var waypoint_list = new Array();
var waypoint_cur = 1;
var waypoint_total = 0;
var frame_space = 64;
var move_speed = 60;
var move_speed_init = 60;
var energy = 10;
var energy_start = 10;
var energy_pct = 0;
var cash_bounty = 1;
var repoint = false;
var scale_bump = 1;
var waypoint_jitter = 19;
}
Symbol 1251 MovieClip [__Packages.VisualEffect] Frame 0
class VisualEffect extends OnslaughtObject
{
var internal_time, time_start, time_last, time_end, start_x, target_obj, start_y, start_alpha, start_rotation, start_scale, start_xscale, start_yscale, start_width, start_height, target_scale, target_xscale, target_yscale, prop_list, prop_diff, interval, onComplete, removeMyself;
function VisualEffect (init_obj) {
super();
effectSetup(init_obj);
}
function effectSetup(init_obj) {
for (var _local6 in init_obj) {
this[_local6] = init_obj[_local6];
}
if (pausable) {
use_eternal_clock = false;
}
if (internal_clock == true) {
internal_time = new Date();
time_start = internal_time.getTime();
time_last = internal_time.getTime();
} else {
time_last = GameClock.timeNow(use_eternal_clock);
time_start = GameClock.timeNow(use_eternal_clock);
}
time_end = time_start + effect_duration;
start_x = target_obj._x;
start_y = target_obj._y;
start_alpha = target_obj._alpha;
start_rotation = target_obj._rotation;
start_scale = target_obj._scale;
start_xscale = target_obj._xscale;
start_yscale = target_obj._yscale;
start_width = target_obj._width;
start_height = target_obj._height;
if (target_scale) {
target_xscale = target_scale;
target_yscale = target_scale;
}
prop_list = new Array("_x", "_y", "_alpha", "_rotation", "_xscale", "_yscale", "_width", "_height");
prop_diff = new Array();
var _local2;
var _local4;
var _local3;
for (var _local6 in prop_list) {
_local2 = prop_list[_local6];
_local4 = this["start" + _local2];
_local3 = this["target" + _local2];
if (_local3 == undefined) {
continue;
}
if (_local4 != _local3) {
prop_diff.push(_local2);
}
}
interval = setInterval(this, "update", frame_space);
}
function update() {
var _local7;
if (internal_clock == true) {
var _local9 = new Date();
_local7 = _local9.getTime();
} else {
_local7 = GameClock.timeNow(use_eternal_clock);
}
var _local8 = _local7 - time_start;
var _local5 = _local8 / effect_duration;
var _local2;
var _local3;
var _local4;
for (var _local6 in prop_diff) {
_local2 = prop_diff[_local6];
_local3 = this["start" + _local2];
_local4 = this["target" + _local2];
if (_local5 >= 1) {
target_obj[_local2] = _local4;
} else {
target_obj[_local2] = _local3 + ((_local4 - _local3) * _local5);
}
}
if (_local5 >= 1) {
effectComplete();
}
}
function effectComplete() {
clearInterval(interval);
onComplete();
removeMyself();
}
function effectRemove() {
clearInterval(interval);
removeMyself();
}
var effect_duration = 1000;
var pausable = false;
var use_eternal_clock = true;
var internal_clock = false;
var frame_space = 32;
var move_mode = "linear";
}
Symbol 1252 MovieClip [__Packages.GamePause] Frame 0
class GamePause extends OnslaughtObject
{
var IconPause, IconPlay, interval;
function GamePause () {
super();
IconPause._alpha = 0;
IconPlay._alpha = 100;
update();
interval = setInterval(this, "update", 333);
}
function onPress() {
_root.Game.pauseToggle();
}
function update() {
if (is_paused != GameStatus.game_paused) {
is_paused = GameStatus.game_paused;
if (is_paused == true) {
IconPlay._alpha = 0;
} else {
IconPlay._alpha = 100;
IconPause._alpha = 0;
}
}
if (is_paused == true) {
if (IconPause._alpha == 100) {
IconPause._alpha = 0;
} else {
IconPause._alpha = 100;
}
}
}
var is_paused = false;
}
Symbol 1253 MovieClip [__Packages.CashManager] Frame 0
class CashManager extends OnslaughtManager
{
var addListener, broadcastMessage, getNextHighestDepth, attachMovie;
function CashManager () {
super();
player_cash = starting_cash;
addListener(_root.UpgradePanel);
cashUpdate();
}
function cashUpdate() {
_root.Cash.text = "$" + player_cash;
_root.Game.total_spent = total_spent;
broadcastMessage("onCashChange");
}
function cashAvailable(the_amount) {
if (player_cash >= the_amount) {
return(true);
}
return(false);
}
function cashSpend(the_amount) {
if (cashAvailable(the_amount)) {
player_cash = player_cash - the_amount;
total_spent = total_spent + the_amount;
cashUpdate();
return(true);
}
return(false);
}
function cashUnspend(the_amount) {
total_spent = total_spent - the_amount;
cashUpdate();
return(true);
}
function cashWin(the_amount) {
if (the_amount > 0) {
player_cash = player_cash + the_amount;
cashUpdate();
}
return(true);
}
function cashKerching(the_x, the_y, the_amount) {
if (the_amount == 0) {
return(undefined);
}
var _local4 = "CashEarned";
var _local3 = getNextHighestDepth();
var _local5 = _local4 + _local3;
var _local2 = new Object();
_local2._x = the_x;
_local2._y = the_y;
_local2.amount = the_amount;
return(attachMovie(_local4, _local5, _local3, _local2));
}
var starting_cash = 30;
var player_cash = 0;
var total_spent = 0;
}
Symbol 1254 MovieClip [__Packages.ClusterBlastEngine] Frame 0
class ClusterBlastEngine extends Projectile
{
var _x, _y, trigForwardAtAngle, turret, removeMyself;
function ClusterBlastEngine () {
super();
}
function onLoad() {
var _local6;
var _local3;
var _local5;
var _local4 = 0;
while (_local4 < cluster_qty) {
_local3 = new Object();
_local3._x = _x;
_local3._y = _y;
_local3._rotation = ((_local4 + 1) / cluster_qty) * 360;
_local5 = trigForwardAtAngle(_local3._rotation, 30);
_local3._x = _local3._x + _local5.x;
_local3._y = _local3._y + _local5.y;
_local3.bullet_target = false;
_local3.bullet_damage = cluster_damage;
_local3.turret = turret;
_local3.holding_capable = cluster_holding;
_local3.laser_capable = cluster_laser;
_local3.laser_damage = cluster_laser_damage;
_local6 = _root.Game.bulletNew(cluster_rocket, _local3);
_local4++;
}
removeMyself();
}
var cluster_qty = 5;
var cluster_rocket = "Rocket9";
var cluster_damage = 1000000;
var cluster_holding = true;
var cluster_laser = false;
var cluster_laser_damage = 1000000;
}
Symbol 1255 MovieClip [__Packages.ClusterSparkEngine] Frame 0
class ClusterSparkEngine extends Projectile
{
var targetListInBox, _x, _y, trigForwardAtAngle, turret, removeMyself;
function ClusterSparkEngine () {
super();
}
function onLoad() {
var _local8;
var _local3;
var _local5;
var _local6 = targetListInBox(this, cluster_range);
var _local7 = _local6.length;
SoundPlayer.play("Tazer", this);
var _local4 = 0;
while (_local4 < cluster_qty) {
_local3 = new Object();
_local3._x = _x;
_local3._y = _y;
_local3._rotation = ((_local4 + 1) / cluster_qty) * 360;
_local5 = trigForwardAtAngle(_local3._rotation, 40);
_local3._x = _local3._x + _local5.x;
_local3._y = _local3._y + _local5.y;
_local3.bullet_target = _local6[_local4 % _local7];
_local3.bullet_damage = cluster_damage;
_local3.bullet_poison = cluster_poison;
_local3.turret = turret;
_local8 = _root.Game.bulletNew(cluster_spark, _local3);
_local4++;
}
removeMyself();
}
var cluster_qty = 5;
var cluster_spark = "Spark";
var cluster_damage = 50000;
var cluster_poison = 20;
var cluster_range = 220;
}
Symbol 1256 MovieClip [__Packages.FreakoutEngine] Frame 0
class FreakoutEngine extends OnslaughtManager
{
var freak_start_x, freak_target, freak_start_y, getNextHighestDepth, freak_warning, attachMovie, freak_timer, _parent, removeMovieClip;
function FreakoutEngine () {
super();
freak_start_x = freak_target.weapon_x;
freak_start_y = freak_target.weapon_y;
}
function onEnterFrame() {
update();
}
function update() {
if (freak_stage == 0) {
var _local3 = "TurretFreakWarning";
var _local4 = getNextHighestDepth();
var _local7 = _local3 + _local4;
freak_warning = attachMovie(_local3, _local7, _local4);
freak_timer = GameClock.timeNow();
SoundPlayer.play("FreakoutWarn", _parent);
freak_stage++;
} else if (freak_stage == 1) {
var _local6 = GameClock.timeNow();
var _local5 = _local6 - freak_timer;
if (_local5 > freak_warn_time) {
freak_stage++;
}
} else if (freak_stage == 2) {
freak_warning.removeMovieClip();
freak_target.modifyGain("damage_mult", freak_damage_mult);
freak_target.modifyGain("range_mult", freak_range_mult);
freak_target.modifyGain("rate_mult", freak_rate_mult);
freak_timer = GameClock.timeNow();
SoundPlayer.play("FreakoutStart", _parent);
_root.Game.TurretManager.broadcastMessage("onTurretStatsChange");
freak_stage++;
} else if (freak_stage == 3) {
var _local6 = GameClock.timeNow();
var _local5 = _local6 - freak_timer;
freakoutJitter();
if (_local5 > freak_length) {
freak_stage++;
}
} else if (freak_stage == 4) {
freak_target.modifyLose("damage_mult", freak_damage_mult);
freak_target.modifyLose("range_mult", freak_range_mult);
freak_target.modifyLose("rate_mult", freak_rate_mult);
freak_target.Weapon._x = freak_start_x;
freak_target.Weapon._y = freak_start_y;
SoundPlayer.play("FreakoutEnd", _parent);
_root.Game.TurretManager.broadcastMessage("onTurretStatsChange");
removeMyself();
}
}
function removeMyself() {
removeMovieClip();
}
function freakoutJitter() {
var _local3 = Math.floor(Math.random() * freak_twitch_x);
var _local2 = Math.floor(Math.random() * freak_twitch_y);
var _local5 = freak_target.Weapon._x - freak_start_x;
var _local4 = freak_target.Weapon._y - freak_start_y;
if (_local5 > 0) {
freak_target.Weapon._x = freak_target.Weapon._x - _local3;
} else {
freak_target.Weapon._x = freak_target.Weapon._x + _local3;
}
if (_local4 > 0) {
freak_target.Weapon._y = freak_target.Weapon._y - _local2;
} else {
freak_target.Weapon._y = freak_target.Weapon._y + _local2;
}
return(true);
}
var freak_damage_mult = 3;
var freak_range_mult = 0;
var freak_rate_mult = 4;
var freak_twitch_x = 4;
var freak_twitch_y = 4;
var freak_warn_time = 3000;
var freak_length = 5000;
var freak_stage = 0;
}
Symbol 1257 MovieClip [__Packages.GameManagerIntro] Frame 0
class GameManagerIntro extends GameManager
{
var GameSelect, game_version, game_demo, wave_size, wave_spacing, attacker_upgrade_rate, attacker_energy, attacker_types, removeEverything, attachManagerClock, attachManagerRoad, attachManagerCash, attachManagerTurret, attachManagerBullet, attachManagerSmoke, attachManagerAttacker, RoadManager, settingsInit, AttackerManager, total_kills;
function GameManagerIntro () {
super();
}
function onLoad() {
GameSelect = _root.Selector;
resetGame();
}
function resetGame() {
_root.game_version = game_version;
game_demo = true;
wave_size = 1;
wave_spacing = 2500;
attacker_upgrade_rate = 1;
attacker_energy = 1050;
attacker_types = 3;
removeEverything();
attachManagerClock();
attachManagerRoad();
if (GameStatus.debug_mode == true) {
} else if (GameStatus.local_mode == true) {
} else {
attachManagerCash();
attachManagerTurret();
attachManagerBullet();
attachManagerSmoke();
attachManagerAttacker();
}
RoadManager.roadBuild();
settingsInit();
AttackerManager.wave_spacing = 6000;
AttackerManager.wave_follow = false;
AttackerManager.attacker_upgrade_rate = 1;
AttackerManager.attacker_size_change = false;
GameStatus.game_over = false;
GameStatus.game_paused = false;
GameStatus.game_speed = 100;
GameStatus.sound_announce_wave = false;
GameManager.mod = new mods.ModManager(GameStatus.mod_name);
}
function difficultySet(the_lev) {
the_lev = the_lev.toLowerCase();
if (the_lev == "extreme") {
GameStatus.game_diff = "extreme";
} else if (the_lev == "hard") {
GameStatus.game_diff = "hard";
} else if (the_lev == "medium") {
GameStatus.game_diff = "medium";
} else if (the_lev == "easy") {
GameStatus.game_diff = "easy";
} else {
GameStatus.game_diff = "easy";
return(false);
}
return(true);
}
function modeSet(the_mode) {
GameSelect.selectShow(the_mode);
return(true);
}
function attackerKilled() {
total_kills = 0;
}
}
Symbol 1258 MovieClip [__Packages.GameManagerMapping] Frame 0
class GameManagerMapping extends GameManager
{
var waypoint_list, grid_snap, getNextHighestDepth, KeyboardManager, attachMovie, attachManagerClock, settingsInit, grid, createEmptyMovieClip, the_road, the_midpoints, the_waypoints, attachManagerTurret, attachManagerMappingInfo, GlobalClock, TurretManager, TurretInfo, MapGridSnap, MapGridAlign, MapSave, MapLoad, MapPlay, MapClear, MapName, WaypointStart, Waypoint, WaypointBase, waypoint_start_x, waypoint_start_y, base_start_x, base_start_y, base_start_scale, trigDistanceTo, map_name, turretInfoShow, waypoint_cur, waypoint_build, the_highlight;
function GameManagerMapping () {
super();
waypoint_list = new Array();
grid_snap = false;
}
function attachManagerKeyboard() {
var _local2 = "KeyboardManagerMapping";
var _local3 = getNextHighestDepth();
var _local4 = _local2 + _local3;
KeyboardManager = attachMovie(_local2, _local4, _local3);
}
function resetGame() {
removeEverything();
mapClear();
roadClear();
waypointClear();
attachManagerClock();
attachManagerKeyboard();
settingsInit();
GameStatus.game_speed = 100;
var _local3;
var _local4;
_local4 = getNextHighestDepth();
_local3 = "TheGrid";
grid = createEmptyMovieClip(_local3, _local4);
grid._x = 0;
grid._y = 0;
_local4 = getNextHighestDepth();
_local3 = "TheRoad";
the_road = createEmptyMovieClip(_local3, _local4);
the_road._x = 0;
the_road._y = 0;
_local4 = getNextHighestDepth();
_local3 = "TheMidpoints";
the_midpoints = createEmptyMovieClip(_local3, _local4);
the_midpoints._x = 0;
the_midpoints._y = 0;
_local4 = getNextHighestDepth();
_local3 = "TheWaypoints";
the_waypoints = createEmptyMovieClip(_local3, _local4);
the_waypoints._x = 0;
the_waypoints._y = 0;
attachManagerTurret();
attachManagerMappingInfo();
_root.Game = this;
gridDraw();
return(true);
}
function removeEverything() {
Key.removeListener(KeyboardManager);
the_road.removeMovieClip();
the_midpoints.removeMovieClip();
the_waypoints.removeMovieClip();
GlobalClock.removeMovieClip();
KeyboardManager.removeMovieClip();
TurretManager.removeMovieClip();
TurretInfo.removeMovieClip();
}
function onLoad() {
resetGame();
MapGridSnap = _root.MapGridSnap;
MapGridAlign = _root.MapGridAlign;
MapSave = _root.MapSave;
MapLoad = _root.MapLoad;
MapPlay = _root.MapPlay;
MapClear = _root.MapClear;
MapName = _root.MapName;
WaypointStart = _root.WaypointStart;
Waypoint = _root.Waypoint;
WaypointBase = _root.WaypointBase;
WaypointStart.from = this;
WaypointStart.onPress = function () {
this.startDrag(false, 0, 0, 720, 535);
};
WaypointStart.onRelease = function () {
_root.Game.map_changed = true;
this.stopDrag();
this.from.gridAlign(this);
this.from.waypointPathUpdate();
};
WaypointBase.from = this;
WaypointBase.onPress = function () {
this.startDrag(false);
};
WaypointBase.onRelease = function () {
_root.Game.map_changed = true;
this.stopDrag();
this.from.gridAlign(this);
this.from.waypointPathUpdate();
};
Waypoint.from = this;
Waypoint.onPress = function () {
this.from.waypointBuild();
};
MapSave.onPress = function () {
SoundPlayer.play("ClickButton");
_root.Game.turretInfoShow();
_root.Game.TurretInfo.ButtonSave.onClick();
};
MapPlay.onPress = function () {
SoundPlayer.play("ClickButton");
_root.Game.mapPlay();
};
MapLoad.onPress = function () {
SoundPlayer.play("ClickButton");
_root.Game.turretInfoShow();
_root.Game.TurretInfo.ButtonLoad.onClick();
};
MapClear.onPress = function () {
SoundPlayer.play("ClickButton");
_root.Game.turretInfoShow();
_root.Game.TurretInfo.ButtonClear.onClick();
};
MapGridSnap.addEventListener("click", gridToggle);
MapGridAlign.onPress = function () {
_root.Game.gridAlignAll();
};
waypoint_start_x = WaypointStart._x;
waypoint_start_y = WaypointStart._y;
base_start_x = WaypointBase._x;
base_start_y = WaypointBase._y;
base_start_scale = 63;
WaypointBase._xscale = base_start_scale;
WaypointBase._yscale = base_start_scale;
if (GameStatus.map_load == true) {
mapLoad(GameStatus.game_map, GameStatus.game_map_custom);
}
GameStatus.map_load = false;
}
function gridToggle() {
SoundPlayer.play("ClickButton");
_root.Game.grid_snap = _root.MapGridSnap.selected;
if (_root.Game.grid_snap == true) {
_root.Game.grid._visible = true;
} else {
_root.Game.grid._visible = false;
}
}
function gridDraw() {
var _local3 = getNextHighestDepth();
var _local4 = "Grid" + _local3;
grid = createEmptyMovieClip(_local4, _local3);
grid._x = 0;
grid._y = 0;
grid._visible = false;
var _local2 = 0;
while (_local2 <= GameStatus.game_area_x) {
grid.lineStyle(1, 3355443, 20);
if (((_local2 / grid_size) % 6) == 0) {
grid.lineStyle(2, 3355443, 20);
}
grid.moveTo(_local2, 0);
grid.lineTo(_local2, GameStatus.game_area_y);
_local2 = _local2 + grid_size;
}
_local2 = 0;
while (_local2 <= GameStatus.game_area_y) {
grid.lineStyle(1, 3355443, 20);
if (((_local2 / grid_size) % 6) == 0) {
grid.lineStyle(2, 3355443, 20);
}
grid.moveTo(0, _local2);
grid.lineTo(GameStatus.game_area_x, _local2);
_local2 = _local2 + grid_size;
}
}
function gridAlign(the_item, force) {
if (force == true) {
} else if (grid_snap != true) {
return(false);
}
var _local15 = grid_size / 2;
var _local14 = the_item._x;
var _local13 = the_item._y;
var _local3 = new MovieClip();
var _local7 = new MovieClip();
var _local6 = new MovieClip();
var _local8 = new MovieClip();
_local3._x = the_item._x - (the_item._x % grid_size);
_local3._y = the_item._y - (the_item._y % grid_size);
_local7._x = _local3._x + grid_size;
_local7._y = _local3._y;
_local6._x = _local3._x;
_local6._y = _local3._y + grid_size;
_local8._x = _local3._x + grid_size;
_local8._y = _local3._y + grid_size;
var _local11 = trigDistanceTo(_local3, the_item);
var _local9 = trigDistanceTo(_local7, the_item);
var _local12 = trigDistanceTo(_local6, the_item);
var _local10 = trigDistanceTo(_local8, the_item);
var _local5 = new MovieClip();
var _local4 = 10000;
if (_local11 < _local4) {
_local5 = _local3;
_local4 = _local11;
}
if (_local9 < _local4) {
_local5 = _local7;
_local4 = _local9;
}
if (_local12 < _local4) {
_local5 = _local6;
_local4 = _local12;
}
if (_local10 < _local4) {
_local5 = _local8;
_local4 = _local10;
}
the_item._x = _local5._x;
the_item._y = _local5._y;
if ((the_item._x != _local14) || (the_item._x != _local13)) {
map_changed = true;
}
}
function gridAlignAll() {
gridAlign(WaypointBase, true);
gridAlign(WaypointStart, true);
var _local2;
for (var _local3 in waypoint_list) {
_local2 = waypoint_list[_local3];
gridAlign(_local2, true);
}
waypointHighlightUpdate();
waypointPathUpdate();
}
function messageNew(the_msg, no_alert) {
TurretInfo.MappingHelp.messageAdd(the_msg, no_alert);
}
function mapLoad(the_map, map_custom) {
var _local6 = the_map;
map_name = the_map;
MapName.__set__text(the_map);
var _local2;
var _local4;
var _local11;
var _local12;
var _local8 = false;
var _local9 = SharedObject.getLocal("onslaught");
if (_local9.data.MapsSaved[_local6]) {
var _local7 = _local9.data.MapsSaved[_local6];
_local4 = _local7.road;
_local11 = _local4[0];
_local12 = _local7.base;
_local8 = true;
}
if (_local8 == true) {
roadClear();
for (var _local3 in waypoint_list) {
waypoint_list[_local3].removeMovieClip();
}
MapName.__set__text(_local6);
waypoint_list = new Array();
_local2 = _local11;
WaypointStart._x = _local2.x;
WaypointStart._y = _local2.y;
_local2 = _local12;
WaypointBase._x = _local2.x;
WaypointBase._y = _local2.y;
var _local5 = 0;
for (var _local3 in _local4) {
_local5++;
}
var _local3 = 1;
while (_local3 < (_local5 - 1)) {
_local2 = _local4[_local3];
_local2._x = _local2.x;
_local2._y = _local2.y;
waypointNew(_local2, true, true);
_local3++;
}
waypointHighlightHide();
waypointPathUpdate();
map_changed = false;
return(true);
}
return(false);
}
function mapPlay() {
if (map_changed == true) {
TurretInfo.MappingSave.update();
TurretInfo.ButtonSave.onClick();
turretInfoShow();
return(false);
}
if (MapName.__get__text() == "") {
MapName.__set__text("Temp");
}
var _local3 = map_name;
var _local4 = SharedObject.getLocal("onslaught");
if (typeof(_local4.data.MapsSaved) != "object") {
_local4.data.MapsSaved = new Object();
}
if (_local4.data.MapsSaved[_local3] == undefined) {
messageNew(("No such map '" + _local3) + "'");
return(false);
}
_root.game_map = _local3;
_root.game_map_custom = true;
_root.gotoPage("Game", 1);
}
function mapPlayShared(map_name) {
if (GameStatus.maps_loaded[map_name] != undefined) {
var _local6 = JSON.stringify(GameStatus.maps_loaded[map_name]);
mapLoadShared(_local6);
return(undefined);
}
var _local4 = new LoadVars();
_local4.map_name = map_name;
var _local3 = new LoadVars();
_local3.onLoad = function (success) {
if (success) {
if (this.error != undefined) {
_root.Game.messageNew(this.error);
} else {
_root.Game.mapLoadShared(this.map);
}
} else {
_root.Game.messageNew("Failed to load map");
}
};
_local4.sendAndLoad(GameStatus.url_map_share + "/map.load.php", _local3, "GET");
}
function mapLoadShared(map_data) {
var _local5 = JSON.parse(map_data);
var _local3 = SharedObject.getLocal("onslaught");
if (typeof(_local3.data.MapsSaved) != "object") {
_local3.data.MapsSaved = new Object();
}
var _local4 = _local5.name;
_local3.data.MapsSaved[_local4] = _local5;
_local3.flush();
TurretInfo.MappingLoad.update();
TurretInfo.MappingSave.update();
_root.Game.messageNew(("Map '" + _local4) + "' saved in your map library.");
mapLoad(_local4);
}
function mapShowSharedList(the_list) {
return(TurretInfo.MappingShare.mapListShared(the_list));
}
function mapSave(map_name) {
MapSave.onPress();
var _local12;
var _local11;
_local12 = WaypointStart._x;
_local11 = WaypointStart._y;
if (!_root.StartArea.hitTest(_local12, _local11, false)) {
TurretInfo.MappingSave.saveWarning("There is no start point on the map");
return(false);
}
_local12 = WaypointBase._x + WaypointBase.BasePoint._x;
_local11 = WaypointBase._y + WaypointBase.BasePoint._y;
if (!_root.BaseArea.hitTest(_local12, _local11, false)) {
TurretInfo.MappingSave.saveWarning("There is no base on the map");
return(false);
}
var _local6 = 0;
for (var _local5 in waypoint_list) {
_local6++;
}
var _local3;
var _local4;
var _local9 = new Object();
var _local7 = new Array();
_local9 = new Object();
_local9.x = WaypointBase._x;
_local9.y = WaypointBase._y;
_local4 = new Object();
_local4.x = WaypointStart._x;
_local4.y = WaypointStart._y;
_local7.push(_local4);
var _local5 = 0;
while (_local5 < _local6) {
_local3 = waypoint_list[_local5];
if (_local3 && (_local3._name)) {
_local4 = new Object();
_local4.x = _local3._x;
_local4.y = _local3._y;
_local7.push(_local4);
}
_local5++;
}
if (_local6 == 0) {
_local3 = WaypointStart;
}
var _local13 = waypointClosestBasePoint(_local3);
_local4 = new Object();
_local4.x = _local13._x;
_local4.y = _local13._y;
_local7.push(_local4);
var _local8 = new Object();
_local8.base = _local9;
_local8.road = _local7;
_local8.name = map_name;
var _local10 = SharedObject.getLocal("onslaught");
if (typeof(_local10.data.MapsSaved) != "object") {
_local10.data.MapsSaved = new Object();
}
_local10.data.MapsSaved[map_name] = _local8;
_local10.flush();
messageNew(("Map '" + map_name) + "' saved!");
map_changed = false;
TurretInfo.update();
return(true);
}
function mapShare(user, pass, map_name) {
var _local6 = SharedObject.getLocal("onslaught");
if (typeof(_local6.data.MapsSaved) != "object") {
return(false);
}
var _local4 = _local6.data.MapsSaved[map_name];
if (_local4 == undefined) {
return(false);
}
var _local3 = new LoadVars();
_local3.user = user;
_local3.pass = pass;
_local3.map_name = JSON.stringify(_local4.name);
_local3.map_base = JSON.stringify(_local4.base);
_local3.map_road = JSON.stringify(_local4.road);
_local3.t = GameClock.timeNow(true);
var _local5 = new LoadVars();
_local5.onLoad = function (success) {
if (success == true) {
_root.Game.messageNew(this.output);
_root.Game.TurretInfo.MappingShare.resetToReload();
} else {
_root.Game.messageNew("Failed to share map");
}
};
_local3.sendAndLoad(GameStatus.url_map_share + "/map.share.php", _local5, "GET");
return(true);
}
function mapClear() {
WaypointBase._x = base_start_x;
WaypointBase._y = base_start_y;
WaypointBase._xscale = base_start_scale;
WaypointBase._yscale = base_start_scale;
WaypointStart._x = waypoint_start_x;
WaypointStart._y = waypoint_start_y;
roadClear();
var _local3 = 0;
for (var _local2 in waypoint_list) {
_local3++;
}
var _local4;
var _local2 = 0;
while (_local2 < _local3) {
_local4 = waypoint_list[_local2];
_local4.removeMovieClip();
_local2++;
}
waypoint_list = new Array();
waypoint_cur = undefined;
waypointHighlightHide();
}
function waypointBuild() {
var _local2 = "BuildWaypoint";
var _local3 = getNextHighestDepth();
var _local4 = _local2 + _local3;
var _local5 = new Object();
waypoint_build = attachMovie(_local2, _local4, _local3);
}
function waypointNew(new_opts, no_update, build_anywhere) {
var _local3;
if (build_anywhere != true) {
if (!_root.StartArea.hitTest(new_opts._x, new_opts._y, true)) {
return(false);
}
for (var _local5 in waypoint_list) {
_local3 = waypoint_list[_local5];
if ((new_opts._x == _local3._x) && (new_opts._y == _local3._y)) {
return(false);
}
}
}
var _local6 = waypointMake(new_opts);
waypoint_list.push(_local6);
if (no_update != true) {
waypointPathUpdate();
}
map_changed = true;
}
function waypointMake(new_opts) {
var _local4 = "WaypointPath";
var _local5 = the_waypoints.getNextHighestDepth();
var _local9 = _local4 + _local5;
new_opts.placed = false;
new_opts._alpha = 60;
new_opts.from = this;
if (grid_snap == true) {
new_opts._x = (new_opts._x - (new_opts._x % grid_size)) + 0;
new_opts._y = (new_opts._y - (new_opts._y % grid_size)) + 0;
}
new_opts.onPress = function () {
this.from_x = this._x;
this.from_y = this._y;
this.startDrag(false);
this.moving = true;
};
new_opts.onRelease = function () {
this.stopDrag();
var _local2 = Math.abs(this._x - this.from_x);
var _local3 = Math.abs(this._y - this.from_y);
if ((_local2 + _local3) <= 2) {
this.from.waypointSelect(this);
this._x = this.from_x;
this._y = this.from_y;
} else {
if (this.from.grid_snap == true) {
this.from.gridAlign(this);
this.from.waypointHighlightUpdate();
}
this.from.map_changed = true;
this.from.waypointPathUpdate();
}
this.moving = false;
};
new_opts.onMouseUp = function () {
this.stopDrag();
if (this.moving != true) {
return(false);
}
if (_root.PlayArea.hitTest(this._x, this._y, true)) {
this.from.waypointPathUpdate();
this.from.waypointHighlightUpdate();
if (this.from.grid_build && (this.from.grid_build._name)) {
this.from.grid_build.removeMovieClip();
}
this.placed = true;
} else {
this.from.waypointSelect(this, true);
this.from.waypointDelete();
}
};
new_opts.onMouseMove = function () {
};
var _local6 = the_waypoints.attachMovie(_local4, _local9, _local5, new_opts);
return(_local6);
}
function waypointSelect(the_wp, force) {
if (waypoint_cur) {
waypointHighlightHide();
}
if (force == true) {
waypoint_cur = undefined;
waypointHighlightHide();
}
if (waypoint_cur == the_wp) {
waypoint_cur = undefined;
waypointHighlightHide();
} else {
waypoint_cur = the_wp;
waypointHighlightShow();
}
}
function waypointDelete() {
if (waypoint_cur && (waypoint_cur._name)) {
var _local5 = new Array();
var _local4 = 0;
for (var _local2 in waypoint_list) {
_local4++;
}
var _local3;
var _local2 = 0;
while (_local2 < _local4) {
_local3 = waypoint_list[_local2];
if (_local3 != waypoint_cur) {
_local5.push(_local3);
}
_local2++;
}
waypoint_cur.removeMovieClip();
waypointHighlightHide();
waypoint_list = _local5;
}
waypoint_cur = undefined;
waypointHighlightHide();
waypointPathUpdate();
}
function waypointNudge(x_nudge, y_nudge) {
if (waypoint_cur && (waypoint_cur._name)) {
if (Key.isDown(16)) {
x_nudge = x_nudge * 10;
y_nudge = y_nudge * 10;
}
waypoint_cur._x = waypoint_cur._x + x_nudge;
waypoint_cur._y = waypoint_cur._y + y_nudge;
if (waypoint_cur._x <= 0) {
waypoint_cur._x = 0;
}
if (waypoint_cur._y <= 0) {
waypoint_cur._y = 0;
}
if (waypoint_cur._x >= 720) {
waypoint_cur._x = 720;
}
if (waypoint_cur._y >= 480) {
waypoint_cur._y = 480;
}
waypointHighlightUpdate();
waypointPathUpdate();
}
}
function waypointHighlightShow() {
if (!the_highlight) {
var _local2 = "TurretHighlight";
var _local3 = getNextHighestDepth();
var _local5 = _local2 + _local3;
var _local4 = attachMovie(_local2, _local5, _local3);
the_highlight = _local4;
}
the_highlight._x = waypoint_cur._x;
the_highlight._y = waypoint_cur._y;
}
function waypointHighlightHide() {
if (the_highlight) {
the_highlight.removeMovieClip();
}
the_highlight = undefined;
}
function waypointHighlightUpdate() {
if (waypoint_cur) {
waypointHighlightHide();
waypointHighlightShow();
}
}
function waypointPathUpdate() {
roadClear();
var _local13;
var _local14;
var _local6;
var _local3;
var _local5;
var _local9;
var _local8;
var _local10 = new MovieClip();
var _local11 = false;
var _local12 = false;
_local9 = WaypointStart._x;
_local8 = WaypointStart._y;
if (_root.StartArea.hitTest(_local9, _local8, false)) {
the_road.moveTo(_local9, _local8);
_local12 = true;
} else {
WaypointStart._x = waypoint_start_x;
WaypointStart._y = waypoint_start_y;
}
_local9 = WaypointBase._x + WaypointBase.BasePoint._x;
_local8 = WaypointBase._y + WaypointBase.BasePoint._y;
if (_root.BaseArea.hitTest(_local9, _local8, false)) {
WaypointBase._xscale = 100;
WaypointBase._yscale = 100;
_local11 = true;
} else {
WaypointBase._x = base_start_x;
WaypointBase._y = base_start_y;
WaypointBase._xscale = base_start_scale;
WaypointBase._yscale = base_start_scale;
}
the_road.lineStyle(30, 6710886, 40);
var _local7 = 0;
for (var _local4 in waypoint_list) {
_local7++;
}
if (_local7 > 0) {
_local3 = waypoint_list[0];
_local9 = WaypointStart._x;
_local8 = WaypointStart._y;
if (_local12 == true) {
the_road.moveTo(_local9, _local8);
the_road.lineTo(_local3._x, _local3._y);
waypointInsertBetween(WaypointStart, _local3, 0);
}
var _local4 = 1;
while (_local4 < _local7) {
_local5 = waypoint_list[_local4];
if (!(_local5 && (_local5._name))) {
} else {
_local6 = _local3;
_local3 = _local5;
the_road.moveTo(_local6._x, _local6._y);
the_road.lineTo(_local3._x, _local3._y);
waypointInsertBetween(_local6, _local3, _local4);
}
_local4++;
}
} else if ((_local12 == true) && (_local11 == true)) {
_local3 = WaypointStart;
}
_local9 = WaypointBase._x + WaypointBase.BasePoint._x;
_local8 = WaypointBase._y + WaypointBase.BasePoint._y;
if (_local11 == true) {
_local10 = waypointClosestBasePoint(_local3);
the_road.moveTo(_local3._x, _local3._y);
the_road.lineTo(_local10._x, _local10._y);
waypointInsertBetween(_local3, _local10, _local7);
}
}
function waypointInsert(the_place, the_point) {
var _local4 = 0;
for (var _local2 in waypoint_list) {
_local4++;
}
var _local8 = new Object();
_local8._x = the_point._x;
_local8._y = the_point._y;
var _local6 = waypointMake(_local8);
var _local5;
var _local3 = new Array();
if (the_place == 0) {
_local3.push(_local6);
}
var _local2 = 0;
while (_local2 < _local4) {
_local5 = waypoint_list[_local2];
_local3.push(_local5);
if ((_local2 + 1) == the_place) {
_local3.push(_local6);
}
_local2++;
}
waypoint_list = _local3;
waypointPathUpdate();
}
function waypointInsertBetween(point_from, point_to, the_place) {
var _local8 = point_from._x + ((point_to._x - point_from._x) / 2);
var _local7 = point_from._y + ((point_to._y - point_from._y) / 2);
var _local4 = "WaypointInsert";
var _local5 = the_midpoints.getNextHighestDepth();
var _local9 = _local4 + _local5;
var _local3 = new Object();
_local3._x = _local8;
_local3._y = _local7;
_local3.place = the_place;
_local3.onPress = function () {
_root.Game.waypointInsert(this.place, this);
};
return(the_midpoints.attachMovie(_local4, _local9, _local5, _local3));
}
function waypointInsertAtStart(the_point) {
var _local6 = new Object();
_local6._x = the_point._x;
_local6._y = the_point._y;
var _local7 = waypointMake(_local6);
var _local4;
var _local5 = new Array();
_local5.push(_local7);
var _local3 = 0;
for (var _local2 in waypoint_list) {
_local3++;
}
var _local2 = 0;
while (_local2 < _local3) {
_local4 = waypoint_list[_local2];
_local5.push(_local4);
_local2++;
}
waypoint_list = _local5;
waypointPathUpdate();
}
function waypointClosestBasePoint(src_point) {
var _local5;
var _local7 = 100000000 /* 0x5F5E100 */;
var _local6;
var _local8;
var _local9;
var _local2;
var _local3;
var _local4 = 1;
while (_local4 <= 31) {
_local8 = "BP" + _local4;
_local6 = WaypointBase[_local8];
_local2 = new Object();
_local2.x = _local6._x;
_local2.y = _local6._y;
WaypointBase.localToGlobal(_local2);
_local3 = new MovieClip();
_local3._x = _local2.x;
_local3._y = _local2.y;
_local5 = trigDistanceTo(_local3, src_point);
if (_local5 < _local7) {
_local7 = _local5;
_local9 = _local3;
}
_local4++;
}
return(_local9);
}
function roadClear() {
var _local6 = the_road.getDepth();
var _local5 = "TheRoad";
var _local4 = createEmptyMovieClip(_local5, _local6);
_local4._x = 0;
_local4._y = 0;
the_road = _local4;
var _local2;
for (var _local3 in the_midpoints) {
_local2 = the_midpoints[_local3];
_local2.removeMovieClip();
}
}
function waypointClear() {
for (var _local3 in waypoint_list) {
waypoint_list[_local3].removeMovieClip();
}
waypoint_list = new Array();
var _local5 = getNextHighestDepth();
var _local4 = "TheWaypoints";
var _local2 = createEmptyMovieClip(_local4, _local5);
_local2._x = 0;
_local2._y = 0;
the_waypoints.swapDepths(_local2);
the_waypoints.removeMovieClip();
the_waypoints = _local2;
}
var grid_size = 20;
var map_changed = false;
}
Symbol 374 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 171 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 169 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 170 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 1259 MovieClip [__Packages.GameManagerTutorial] Frame 0
class GameManagerTutorial extends GameManager
{
var resetGame, messageClear, messageNew, Tutorial, getNextHighestDepth, attachMovie, modeIsAvailable, modeSetAvailable;
function GameManagerTutorial () {
super();
}
function onLoad() {
resetGame();
messageClear();
var _local2 = "This is tutorial mode! The tutorial window will guide you through everything you need to know to play the game.";
messageNew(_local2);
}
function removeEverything() {
super.removeEverything();
if (Tutorial && (Tutorial._name)) {
Tutorial.removeMovieClip();
}
}
function setupFinal() {
super.setupFinal();
GameManager.debug("Boom shank-a-lank!");
var _local3 = "GameTutorial";
var _local4 = getNextHighestDepth();
var _local5 = _local3 + _local4;
Tutorial = attachMovie(_local3, _local5, _local4);
if (!modeIsAvailable("challenge")) {
var _local6 = "Once you've played through the tutorial, have a go at the challenges, which you've now unlocked!.";
messageNew(_local6);
}
modeSetAvailable("challenge");
GameManager.debug("Ready for challenge");
}
var wave_limit = 50;
}
Symbol 1260 MovieClip [__Packages.KeyboardManager] Frame 0
class KeyboardManager extends OnslaughtManager
{
function KeyboardManager () {
super();
Key.addListener(this);
}
function onKeyDown() {
if (GameStatus.keyboard_ignore == true) {
return(false);
}
if (_root.Game.game_settings && (_root.Game.game_settings._name)) {
return(false);
}
if (GameStatus.game_over == true) {
return(false);
}
var _local2 = Key.getCode();
var _local3;
var _local6;
var _local5;
var _local4;
if (_local2 == 49) {
if (Key.isDown(16)) {
_root.Game.turretBuildIfAvailable("RateUp");
} else {
_root.Game.turretBuildIfAvailable("Blue");
}
} else if (_local2 == 50) {
if (Key.isDown(16)) {
_root.Game.turretBuildIfAvailable("DamageUpBig");
} else {
_root.Game.turretBuildIfAvailable("Green");
}
} else if (_local2 == 51) {
if (Key.isDown(16)) {
_root.Game.turretBuildIfAvailable("DamageUpBigExchange");
} else {
_root.Game.turretBuildIfAvailable("Red");
}
} else if (_local2 == 52) {
if (Key.isDown(16)) {
_root.Game.turretBuildIfAvailable("Targeter");
} else {
_root.Game.turretBuildIfAvailable("Yellow");
}
} else if (_local2 == 53) {
if (Key.isDown(16)) {
_root.Game.turretBuildIfAvailable("Sniper");
} else {
_root.Game.turretBuildIfAvailable("RangeUp");
}
} else if (_local2 == 54) {
if (Key.isDown(16)) {
_root.Game.turretBuildIfAvailable("Fusion");
} else {
_root.Game.turretBuildIfAvailable("DamageUp");
}
} else if (_local2 == 55) {
if (Key.isDown(16)) {
_root.Game.turretBuildIfAvailable("Railgun");
} else {
_root.Game.turretBuildIfAvailable("RateUpExchange");
}
} else if (_local2 == 56) {
if (Key.isDown(16)) {
_root.Game.turretBuildIfAvailable("Combonly");
} else {
_root.Game.turretBuildIfAvailable("RangeUpExchange");
}
} else if (_local2 == 57) {
_root.Game.turretBuildIfAvailable("DamageUpBigExchange");
} else if (_local2 == 48) {
_root.Game.turretBuildIfAvailable("RangeUpExchange");
} else if (_local2 == 45) {
_root.Game.turretBuildIfAvailable("RateUpExchange");
} else if (_local2 == 81) {
if (Key.isDown(16)) {
_root.Game.TurretManager.turretUpgradeDamageMax();
} else {
_root.Game.TurretManager.turretUpgradeDamage();
}
} else if (_local2 == 87) {
if (Key.isDown(16)) {
_root.Game.TurretManager.turretUpgradeRangeMax();
} else {
_root.Game.TurretManager.turretUpgradeRange();
}
} else if (_local2 == 69) {
if (Key.isDown(16)) {
_root.Game.TurretManager.turretUpgradeRateMax();
} else {
_root.Game.TurretManager.turretUpgradeRate();
}
} else if (_local2 == 65) {
if (GameStatus.debug_mode == true) {
_root.Game.turretBuildIfAvailable("Targeter");
}
} else if (_local2 == 66) {
_root.BuildPanel.WeaponRack.rackBuyCurrent();
} else if (_local2 == 67) {
_root.Game.turretComboInRangeToggle();
} else if (_local2 == 68) {
if (Key.isDown(16)) {
_root.Game.TurretManager.turretSetDirectional();
} else {
_root.Game.TurretManager.turretToggleDirectional();
}
} else if (_local2 == 70) {
_root.Game.attackerFocusTry();
} else if (_local2 == 71) {
_root.Game.settingsShow();
} else if (_local2 == 72) {
_root.messageHint();
} else if (_local2 == 73) {
_root.Game.turretInfoToggle();
} else if (_local2 == 74) {
_root.Game.TurretManager.turretJoin();
} else if (_local2 == 76) {
_root.Game.TurretManager.turretTargetModeLockToggle();
} else if (_local2 == 77) {
_root.Game.turretMove();
} else if (_local2 == 80) {
_root.Game.pauseToggle();
} else if (_local2 == 82) {
_root.Game.turretRangeToggle();
} else if (_local2 == 83) {
_root.Game.TurretManager.turretSell();
} else if (_local2 == 84) {
_root.Game.TurretManager.turretTargetModeCycle();
} else if (_local2 == 32) {
_root.Game.waveSend();
} else if (_local2 == 27) {
_root.Game.cancelAll();
} else if (_local2 == 39) {
_root.BuildPanel.WeaponRack.ButtonRight.onPress();
} else if (_local2 == 37) {
_root.BuildPanel.WeaponRack.ButtonLeft.onPress();
} else if (_local2 == 38) {
} else if (_local2 == 40) {
} else if (_local2 == 13) {
_root.WeaponRack.rackBuyItem();
}
return(true);
}
function onKeyUp() {
var _local1 = Key.getCode();
}
}
Symbol 1261 MovieClip [__Packages.KeyboardManagerMapping] Frame 0
class KeyboardManagerMapping extends OnslaughtManager
{
function KeyboardManagerMapping () {
super();
Key.addListener(this);
}
function onKeyDown() {
if (GameStatus.keyboard_ignore == true) {
return(undefined);
}
var _local2 = Key.getCode();
var _local4;
var _local7;
var _local6;
var _local5;
if (_local2 == 49) {
_root.Game.WaypointStart._x = _root._xmouse;
_root.Game.WaypointStart._y = _root._ymouse;
_root.Game.waypointPathUpdate();
} else if (_local2 == 50) {
var _local3 = new Object();
_local3._x = _root._xmouse;
_local3._y = _root._ymouse;
if (Key.isDown(16)) {
_root.Game.waypointInsertAtStart(_local3);
} else {
_root.Game.waypointNew(_local3);
}
} else if (_local2 == 51) {
_root.Game.WaypointBase._x = _root._xmouse - _root.Game.WaypointBase.BasePoint._x;
_root.Game.WaypointBase._y = _root._ymouse - _root.Game.WaypointBase.BasePoint._y;
_root.Game.waypointPathUpdate();
} else if (_local2 == 8) {
_root.Game.waypointDelete();
} else if (_local2 == 37) {
_root.Game.waypointNudge(-1, 0);
} else if (_local2 == 39) {
_root.Game.waypointNudge(1, 0);
} else if (_local2 == 38) {
_root.Game.waypointNudge(0, -1);
} else if (_local2 == 40) {
_root.Game.waypointNudge(0, 1);
} else if (_local2 == 73) {
_root.Game.turretInfoToggle();
}
}
function onKeyUp() {
var _local1 = Key.getCode();
}
}
Symbol 1262 MovieClip [__Packages.OverlayManager] Frame 0
class OverlayManager extends OnslaughtManager
{
static var overlays;
var getNextHighestDepth, attachMovie, pruneDead;
function OverlayManager () {
super();
if (overlays == undefined) {
overlays = new Array();
}
}
function overlayNew(new_type, opts) {
var _local3 = new_type;
var _local4 = getNextHighestDepth();
var _local5 = _local3 + _local4;
var _local6 = opts;
var _local2 = attachMovie(_local3, _local5, _local4, _local6);
overlays.push(_local2);
overlays = pruneDead(overlays);
return(_local2);
}
function removeMyself() {
var _local1;
for (var _local2 in overlays) {
_local1 = overlays[_local2];
_local1.removeMyself();
_local1.removeMovieClip();
}
}
}
Symbol 1263 MovieClip [__Packages.LaserEngine] Frame 0
class LaserEngine extends Projectile
{
var _rotation, _alpha, targetExists, bullet_target, bullet_damage, _x, _y, filters, lineStyle, moveTo, lineTo, removeMyself, effect, effectNew, turret;
function LaserEngine () {
super();
_rotation = 0;
_alpha = 80;
laserFire();
}
function laserFire() {
if (targetExists(bullet_target)) {
var _local3 = laserGetType(bullet_damage);
var _local7 = bullet_target._x - _x;
var _local5 = bullet_target._y - _y;
var _local6 = new flash.filters.GlowFilter(_local3.glow, 1, _local3.glow_size, _local3.glow_size, 5);
var _local8 = new flash.filters.BlurFilter(4, 4);
var _local4 = new Array();
_local4.push(_local6);
_local4.push(_local8);
filters = _local4;
lineStyle(_local3.beam_size, _local3.colour, 100);
moveTo(0, 0);
lineTo(_local7, _local5);
targetHit(bullet_target);
} else {
removeMyself();
}
var _local2 = new Object();
_local2.pausable = true;
_local2.target_obj = this;
_local2.target_alpha = 0;
_local2.effect_duration = laser_persist;
_local2.from = this;
_local2.onComplete = function () {
this.from.removeMyself();
};
effect = effectNew(_local2);
}
function laserGetType(the_damage) {
var _local1 = new Object();
_local1.colour = 65280;
_local1.glow = 10092441 /* 0x99FF99 */;
_local1.glow_size = 5;
_local1.beam_size = 1;
if ((0 <= the_damage) and (the_damage < 50)) {
_local1.colour = 65280;
_local1.glow = 65280;
_local1.glow_size = 5;
_local1.beam_size = 1;
} else if ((50 <= the_damage) && (the_damage <= 120)) {
_local1.colour = 65280;
_local1.glow = 16711680 /* 0xFF0000 */;
_local1.glow_size = 5;
_local1.beam_size = 1;
} else if ((120 <= the_damage) && (the_damage <= 400)) {
_local1.colour = 65280;
_local1.glow = 255;
_local1.glow_size = 5;
_local1.beam_size = 1;
} else if ((400 <= the_damage) && (the_damage <= 1500)) {
_local1.colour = 16776960 /* 0xFFFF00 */;
_local1.glow = 65280;
_local1.glow_size = 5;
_local1.beam_size = 3;
} else if ((1500 <= the_damage) && (the_damage <= 3900)) {
_local1.colour = 16776960 /* 0xFFFF00 */;
_local1.glow = 16711680 /* 0xFF0000 */;
_local1.glow_size = 5;
_local1.beam_size = 3;
} else if ((3900 <= the_damage) && (the_damage <= 9300)) {
_local1.colour = 16776960 /* 0xFFFF00 */;
_local1.glow = 255;
_local1.glow_size = 5;
_local1.beam_size = 3;
} else if ((9300 <= the_damage) && (the_damage <= 19500)) {
_local1.colour = 16711680 /* 0xFF0000 */;
_local1.glow = 65280;
_local1.glow_size = 5;
_local1.beam_size = 5;
} else if ((19500 <= the_damage) && (the_damage <= 35000)) {
_local1.colour = 16711680 /* 0xFF0000 */;
_local1.glow = 16711680 /* 0xFF0000 */;
_local1.glow_size = 5;
_local1.beam_size = 5;
} else if ((35000 <= the_damage) && (the_damage <= 60000)) {
_local1.colour = 16711680 /* 0xFF0000 */;
_local1.glow = 255;
_local1.glow_size = 5;
_local1.beam_size = 5;
} else if ((60000 <= the_damage) && (the_damage <= 100000)) {
_local1.colour = 6685080 /* 0x660198 */;
_local1.glow = 65280;
_local1.glow_size = 5;
_local1.beam_size = 6;
} else if ((100000 <= the_damage) && (the_damage <= 200000)) {
_local1.colour = 6685080 /* 0x660198 */;
_local1.glow = 16711680 /* 0xFF0000 */;
_local1.glow_size = 5;
_local1.beam_size = 6;
} else if ((200000 <= the_damage) && (the_damage <= 400000)) {
_local1.colour = 6685080 /* 0x660198 */;
_local1.glow = 255;
_local1.glow_size = 5;
_local1.beam_size = 6;
} else if ((400000 <= the_damage) && (the_damage <= 750000)) {
_local1.colour = 16711807 /* 0xFF007F */;
_local1.glow = 65280;
_local1.glow_size = 5;
_local1.beam_size = 7;
} else if ((750000 <= the_damage) && (the_damage <= 900000)) {
_local1.colour = 16711807 /* 0xFF007F */;
_local1.glow = 16711680 /* 0xFF0000 */;
_local1.glow_size = 5;
_local1.beam_size = 7;
} else if ((900000 <= the_damage) && (the_damage <= 1000000)) {
_local1.colour = 16711807 /* 0xFF007F */;
_local1.glow = 255;
_local1.glow_size = 5;
_local1.beam_size = 7;
} else if ((1000000 <= the_damage) && (the_damage <= 2000000)) {
_local1.colour = 4374779 /* 0x42C0FB */;
_local1.glow = 65280;
_local1.glow_size = 5;
_local1.beam_size = 8;
} else if ((2000000 <= the_damage) && (the_damage <= 3000000)) {
_local1.colour = 4374779 /* 0x42C0FB */;
_local1.glow = 16711680 /* 0xFF0000 */;
_local1.glow_size = 5;
_local1.beam_size = 8;
} else if ((3000000 <= the_damage) && (the_damage <= 4000000)) {
_local1.colour = 4374779 /* 0x42C0FB */;
_local1.glow = 255;
_local1.glow_size = 5;
_local1.beam_size = 8;
} else if ((4000000 <= the_damage) && (the_damage <= 5000000)) {
_local1.colour = 238;
_local1.glow = 65280;
_local1.glow_size = 5;
_local1.beam_size = 9;
} else if ((5000000 <= the_damage) && (the_damage <= 6000000)) {
_local1.colour = 238;
_local1.glow = 16711680 /* 0xFF0000 */;
_local1.glow_size = 5;
_local1.beam_size = 9;
} else if ((6000000 <= the_damage) && (the_damage <= 7000000)) {
_local1.colour = 238;
_local1.glow = 255;
_local1.glow_size = 5;
_local1.beam_size = 9;
} else if ((7000000 <= the_damage) && (the_damage <= 8000000)) {
_local1.colour = 3355443 /* 0x333333 */;
_local1.glow = 65280;
_local1.glow_size = 5;
_local1.beam_size = 10;
} else if (the_damage > 8000000) {
_local1.colour = 16777215 /* 0xFFFFFF */;
_local1.glow = 11141120 /* 0xAA0000 */;
_local1.glow_size = 8;
_local1.beam_size = 10;
}
return(_local1);
}
function targetHit(the_obj) {
the_obj.attackerHit(bullet_damage, turret);
removeMyself();
}
var laser_persist = 350;
var black_hole_affect = false;
}
Symbol 1264 MovieClip [__Packages.RailLaser] Frame 0
class RailLaser extends LaserEngine
{
var targetExists, bullet_target, bullet_damage, trigDistanceTo, _x, _y, moveTo, lineStyle, lineTo, interval, effect, effectNew, targetAttackers, hitTest, turret, removeMyself;
function RailLaser () {
super();
}
function laserFire() {
if (targetExists(bullet_target)) {
var _local3 = railGetType(bullet_damage);
var _local6;
var _local4;
var _local5;
var _local11 = trigDistanceTo(this, bullet_target);
var _local10 = _local11 / 900;
var _local8 = (bullet_target._x - _x) / _local10;
var _local7 = (bullet_target._y - _y) / _local10;
var _local2 = 0;
while (_local2 < _local3.beams.length) {
moveTo(0, 0);
_local4 = _local3.beams[_local2];
_local5 = _local3.alphas[_local2];
_local6 = _local3.sizes[_local2];
lineStyle(_local6, _local4, _local5);
lineTo(_local8, _local7);
_local2++;
}
}
interval = setInterval(this, "railHurt", 32);
var _local9 = new Object();
_local9.pausable = true;
_local9.target_obj = this;
_local9.effect_duration = laser_persist;
_local9.from = this;
_local9.onComplete = function () {
this.from.railRemove();
};
effect = effectNew(_local9);
}
function railHurt() {
clearInterval(interval);
var _local2;
var _local3 = targetAttackers();
for (var _local4 in _local3) {
_local2 = _local3[_local4];
if (hitTest(_local2._x, _local2._y, true)) {
_local2.attackerHit(bullet_damage, turret);
}
}
}
function railRemove() {
clearInterval(interval);
removeMyself();
}
function railGetType(the_damage) {
var _local1 = new Object();
_local1.beams = new Array();
_local1.alphas = new Array();
_local1.sizes = new Array();
_local1.beams[0] = 16777215 /* 0xFFFFFF */;
_local1.beams[1] = 16777215 /* 0xFFFFFF */;
_local1.beams[2] = 16777215 /* 0xFFFFFF */;
_local1.beams[3] = 16777215 /* 0xFFFFFF */;
_local1.beams[4] = 3394611 /* 0x33CC33 */;
_local1.alphas[0] = 20;
_local1.alphas[1] = 30;
_local1.alphas[2] = 40;
_local1.alphas[3] = 50;
_local1.alphas[4] = 75;
_local1.sizes[0] = 40;
_local1.sizes[1] = 30;
_local1.sizes[2] = 20;
_local1.sizes[3] = 10;
_local1.sizes[4] = 3;
if ((0 < the_damage) and (the_damage <= 4000000)) {
_local1.beams[0] = 16777215 /* 0xFFFFFF */;
_local1.beams[1] = 16777215 /* 0xFFFFFF */;
_local1.beams[2] = 16777215 /* 0xFFFFFF */;
_local1.beams[3] = 16777215 /* 0xFFFFFF */;
_local1.beams[4] = 3394611 /* 0x33CC33 */;
_local1.alphas[0] = 20;
_local1.alphas[1] = 30;
_local1.alphas[2] = 40;
_local1.alphas[3] = 50;
_local1.alphas[4] = 75;
_local1.sizes[0] = 40;
_local1.sizes[1] = 30;
_local1.sizes[2] = 20;
_local1.sizes[3] = 10;
_local1.sizes[4] = 3;
} else if ((4000000 < the_damage) && (the_damage <= 9000000)) {
_local1.beams[0] = 16777215 /* 0xFFFFFF */;
_local1.beams[1] = 16777215 /* 0xFFFFFF */;
_local1.beams[2] = 16777215 /* 0xFFFFFF */;
_local1.beams[3] = 3394611 /* 0x33CC33 */;
_local1.beams[4] = 3394611 /* 0x33CC33 */;
_local1.alphas[0] = 20;
_local1.alphas[1] = 30;
_local1.alphas[2] = 40;
_local1.alphas[3] = 50;
_local1.alphas[4] = 75;
_local1.sizes[0] = 40;
_local1.sizes[1] = 30;
_local1.sizes[2] = 20;
_local1.sizes[3] = 10;
_local1.sizes[4] = 3;
} else if ((9000000 < the_damage) && (the_damage <= 15000000)) {
_local1.beams[0] = 16777215 /* 0xFFFFFF */;
_local1.beams[1] = 16777215 /* 0xFFFFFF */;
_local1.beams[2] = 3394611 /* 0x33CC33 */;
_local1.beams[3] = 3394611 /* 0x33CC33 */;
_local1.beams[4] = 3394611 /* 0x33CC33 */;
_local1.alphas[0] = 20;
_local1.alphas[1] = 30;
_local1.alphas[2] = 40;
_local1.alphas[3] = 50;
_local1.alphas[4] = 75;
_local1.sizes[0] = 40;
_local1.sizes[1] = 30;
_local1.sizes[2] = 20;
_local1.sizes[3] = 10;
_local1.sizes[4] = 3;
} else if ((15000000 < the_damage) && (the_damage <= 25000000)) {
_local1.beams[0] = 16777215 /* 0xFFFFFF */;
_local1.beams[1] = 16777215 /* 0xFFFFFF */;
_local1.beams[2] = 16724787 /* 0xFF3333 */;
_local1.beams[3] = 16724787 /* 0xFF3333 */;
_local1.beams[4] = 16724787 /* 0xFF3333 */;
_local1.alphas[0] = 20;
_local1.alphas[1] = 30;
_local1.alphas[2] = 40;
_local1.alphas[3] = 50;
_local1.alphas[4] = 75;
_local1.sizes[0] = 40;
_local1.sizes[1] = 30;
_local1.sizes[2] = 20;
_local1.sizes[3] = 10;
_local1.sizes[4] = 3;
} else if (25000000 < the_damage) {
_local1.beams[0] = 16777215 /* 0xFFFFFF */;
_local1.beams[1] = 16777215 /* 0xFFFFFF */;
_local1.beams[2] = 16777215 /* 0xFFFFFF */;
_local1.beams[3] = 16724991 /* 0xFF33FF */;
_local1.beams[4] = 16724991 /* 0xFF33FF */;
_local1.alphas[0] = 20;
_local1.alphas[1] = 30;
_local1.alphas[2] = 40;
_local1.alphas[3] = 50;
_local1.alphas[4] = 75;
_local1.sizes[0] = 40;
_local1.sizes[1] = 30;
_local1.sizes[2] = 20;
_local1.sizes[3] = 10;
_local1.sizes[4] = 3;
}
return(_local1);
}
var laser_persist = 125;
var black_hole_affect = false;
}
Symbol 1265 MovieClip [__Packages.RoadManager] Frame 0
class RoadManager extends OnslaughtObject
{
var map_layouts, map_bases, waypoints, waypoint_list, getNextHighestDepth, attachMovie, start_point, _x, _y, moveTo, lineStyle, lineTo, trigDistanceTo, road_mask, createEmptyMovieClip, player_base, map_names;
function RoadManager () {
super();
layoutBuild();
}
function roadBuild(map_name, map_custom) {
var _local18 = map_layouts[map_name];
var _local20 = map_bases[map_name];
if (map_custom == true) {
var _local26 = SharedObject.getLocal("onslaught");
var _local23 = _local26.data.MapsSaved[map_name];
_local20 = _local23.base;
_local18 = _local23.road;
}
var _local10;
var _local16;
var _local17;
var _local22;
var _local6;
var _local3;
var _local4;
waypoints = new Array();
waypoint_list = new Array();
if (_local18 != undefined) {
var _local13 = 0;
var _local12 = 0;
while (_local12 < _local18.length) {
_local13++;
_local3 = _local18[_local12];
_local17 = "Waypoint";
_local16 = getNextHighestDepth();
_local10 = "Waypoint" + _local13;
_local6 = attachMovie(_local17, _local10, _local16);
_local6._x = _local3.x;
_local6._y = _local3.y;
_local3._x = _local3.x;
_local3._y = _local3.y;
_local4 = new Object();
_local4.x = _local3.x;
_local4._x = _local3.x;
_local4.y = _local3.y;
_local4._y = _local3.y;
_local6._visible = false;
waypoints[_local10] = _local6;
waypoint_list[_local13] = _local4;
_local12++;
}
waypoint_total = _local13;
start_point = new Object();
start_point._x = waypoint_list[0]._x;
start_point._y = waypoint_list[0]._y;
} else if (_root.Waypoint1 && (_root.Waypoint1._name)) {
var _local12 = 1;
while (_local12 <= waypoint_total) {
_local10 = "Waypoint" + _local12;
_local6 = _root[_local10];
_local4 = new Object();
_local4.x = _local6._x;
_local4._x = _local6._x;
_local4.y = _local6._y;
_local4._y = _local6._y;
waypoints[_local10] = _local6;
waypoint_list[_local12] = _local4;
_local12++;
}
} else {
return(false);
}
_x = 0;
_y = 0;
map_as_vec = new Array();
mine_points = new Array();
_local3 = waypoints.Waypoint1;
moveTo(_local3._x, _local3._y);
var _local24 = new Number(line_width + 3);
lineStyle(_local24, 6710886, line_alpha);
if (dump_points) {
trace("Road:");
trace(((("new Object( {x:" + _local3._x) + ", y:") + _local3._y) + "} ),");
}
var _local8 = new Object({_x:_local3._x, _y:_local3._y});
var _local11;
var _local21 = 4;
var _local9;
var _local7;
var _local15;
var _local14;
var _local19;
var _local29;
var _local31;
var _local30;
var _local28;
var _local12 = 2;
while (_local12 <= waypoint_total) {
_local3 = waypoints["Waypoint" + _local12];
lineTo(_local3._x, _local3._y);
_local11 = new Object({_x:_local3._x, _y:_local3._y});
_local19 = trigDistanceTo(_local8, _local11);
_local9 = Math.floor(_local19 / _local21);
_local15 = _local11._x - _local8._x;
_local14 = _local11._y - _local8._y;
var _local5 = 1;
while (_local5 <= _local9) {
_local7 = new Object();
_local7._x = Math.round(_local8._x + ((_local5 / _local9) * _local15));
_local7._y = Math.round(_local8._y + ((_local5 / _local9) * _local14));
_local7.waypoint = _local12;
mine_points.push(_local7);
_local5++;
}
_local8 = _local11;
if (dump_points) {
trace(((("new Object( {x:" + _local3._x) + ", y:") + _local3._y) + "} ),");
}
_local12++;
}
_local17 = "RoadMask";
_local16 = getNextHighestDepth();
_local10 = _local17 + _local16;
_local22 = new Object();
_local22._x = 0;
_local22._y = 0;
_local22._visible = true;
road_mask = createEmptyMovieClip(_local10, _local16, _local22);
_local3 = waypoints.Waypoint1;
road_mask.moveTo(_local3._x, _local3._y);
road_mask.lineStyle(line_width, line_colour, line_alpha);
_local12 = 2;
while (_local12 <= waypoint_total) {
_local3 = waypoints["Waypoint" + _local12];
road_mask.lineTo(_local3._x, _local3._y);
_local12++;
}
if (_local20) {
_local17 = "PlayerBase";
_local16 = getNextHighestDepth();
_local10 = _local17 + _local16;
player_base = attachMovie(_local17, _local10, _local16);
player_base._x = _local20.x;
player_base._y = _local20.y;
if (dump_points) {
trace("Base:");
trace(((("\t\t\tnew Object( {x:" + _local20.x) + ", y:") + _local20.y) + "} ),");
}
_root.PlayerBase = player_base;
}
return(true);
}
function getWaypointList() {
return(waypoint_list);
}
function getWaypointTotal() {
return(waypoint_total);
}
function getWaypoints() {
return(waypoints);
}
function getRoadAsVectors() {
return(map_as_vec);
}
function getMinePoints() {
return(mine_points);
}
function getRoadStart() {
return(new Object(start_point));
}
function mapName(map_name) {
return(map_names[map_name]);
}
function layoutBuild() {
map_layouts = new Array();
map_bases = new Array();
map_names = new Array();
map_bases.map1 = new Object({x:574.9, y:75.7});
map_names.map1 = "Classic";
map_layouts.map1 = new Array(new Object({x:0, y:446.2}), new Object({x:84, y:382}), new Object({x:300.45, y:382}), new Object({x:465.85, y:223.6}), new Object({x:636.9, y:223.6}), new Object({x:636.9, y:382}), new Object({x:465.85, y:382}), new Object({x:300.4, y:223.6}), new Object({x:192.2, y:223.6}), new Object({x:192.2, y:35.8}), new Object({x:84, y:35.8}), new Object({x:84, y:129.1}), new Object({x:574.4, y:129.1}));
map_bases.map2 = new Object({x:254.6, y:156.6});
map_names.map2 = "Incoming";
map_layouts.map2 = new Array(new Object({x:655, y:0}), new Object({x:655, y:410}), new Object({x:65, y:410}), new Object({x:65, y:65}), new Object({x:580, y:65}), new Object({x:580, y:335}), new Object({x:140, y:335}), new Object({x:140, y:140}), new Object({x:505, y:140}), new Object({x:505, y:260}), new Object({x:310, y:260}), new Object({x:310, y:240}));
map_bases.map3 = new Object({x:48.2, y:323.2});
map_names.map3 = "Ells";
map_layouts.map3 = new Array(new Object({x:715, y:65}), new Object({x:583.05, y:65}), new Object({x:583.05, y:390.55}), new Object({x:333.65, y:390.55}), new Object({x:332.85, y:254.85}), new Object({x:456.6, y:254.85}), new Object({x:456.6, y:65}), new Object({x:110.1, y:65}), new Object({x:110.1, y:254.85}), new Object({x:233.35, y:254.85}), new Object({x:233.35, y:353}), new Object({x:147.2, y:353}));
map_bases.map4 = new Object({x:581.2, y:332.6});
map_names.map4 = "Looping";
map_layouts.map4 = new Array(new Object({x:0, y:209.1}), new Object({x:48.5, y:144.55}), new Object({x:100.35, y:88.95}), new Object({x:161.2, y:50.5}), new Object({x:225.5, y:41.55}), new Object({x:287.55, y:89.6}), new Object({x:308.5, y:176.3}), new Object({x:316, y:273.8}), new Object({x:300.5, y:367.4}), new Object({x:212, y:407.45}), new Object({x:125.85, y:386.45}), new Object({x:75.5, y:337.4}), new Object({x:86.85, y:258.8}), new Object({x:136, y:201.8}), new Object({x:213.5, y:171.8}), new Object({x:333.55, y:177.35}), new Object({x:394.1, y:198.8}), new Object({x:456.05, y:230.2}), new Object({x:512.8, y:266.95}), new Object({x:580.05, y:261}), new Object({x:629.25, y:224.9}), new Object({x:653.4, y:169.3}), new Object({x:659.5, y:110.7}), new Object({x:614.5, y:55.9}), new Object({x:535.25, y:54.6}), new Object({x:459.8, y:99.25}), new Object({x:422.2, y:171.6}), new Object({x:406.05, y:305.3}), new Object({x:446.35, y:354.9}), new Object({x:524.5, y:376}), new Object({x:580.9, y:376}));
map_bases.map5 = new Object({x:587.2, y:249.8});
map_names.map5 = "Sinus";
map_layouts.map5 = new Array(new Object({x:0, y:302.25}), new Object({x:133.8, y:302.25}), new Object({x:156.55, y:283.45}), new Object({x:186.8, y:274.45}), new Object({x:217.05, y:302.25}), new Object({x:263.85, y:302.25}), new Object({x:294.1, y:366.15}), new Object({x:334.8, y:52.2}), new Object({x:363.6, y:415.75}), new Object({x:398.3, y:302.25}), new Object({x:470.65, y:302.25}), new Object({x:491.85, y:274.45}), new Object({x:537.15, y:262.45}), new Object({x:567.35, y:302.25}), new Object({x:585.65, y:302.25}));
map_bases.map6 = new Object({x:564.6, y:356.8});
map_names.map6 = "Puzzle";
map_layouts.map6 = new Array(new Object({x:0, y:43.7}), new Object({x:215, y:43.7}), new Object({x:215, y:277.8}), new Object({x:515, y:277.8}), new Object({x:515, y:43.7}), new Object({x:215, y:43.7}), new Object({x:515, y:277.8}), new Object({x:440, y:351.95}), new Object({x:365, y:426.1}), new Object({x:290, y:351.95}), new Object({x:215, y:277.8}), new Object({x:515, y:43.7}), new Object({x:639.85, y:43.7}), new Object({x:639.85, y:368.8}));
map_bases.map7 = new Object({x:24.6, y:356.8});
map_names.map7 = "Squarely";
map_layouts.map7 = new Array(new Object({x:639.85, y:0}), new Object({x:639.85, y:211.85}), new Object({x:462.75, y:211.85}), new Object({x:462.75, y:70.55}), new Object({x:559.8, y:70.55}), new Object({x:559.8, y:381.5}), new Object({x:255.95, y:381.5}), new Object({x:258.3, y:123.15}), new Object({x:404.3, y:123.15}), new Object({x:404.3, y:296.8}), new Object({x:164.3, y:296.8}), new Object({x:164.3, y:40.55}), new Object({x:347.55, y:40.55}), new Object({x:345.85, y:205.85}), new Object({x:97.25, y:205.85}), new Object({x:97.25, y:368.15}));
map_bases.map8 = new Object({x:324, y:191.8});
map_names.map8 = "Inspired";
map_layouts.map8 = new Array(new Object({x:0, y:233.95}), new Object({x:200.5, y:233.95}), new Object({x:200.5, y:54.05}), new Object({x:84.25, y:54.05}), new Object({x:84.25, y:162.3}), new Object({x:636.65, y:162.3}), new Object({x:636.65, y:54.05}), new Object({x:520.4, y:54.05}), new Object({x:520.4, y:415.5}), new Object({x:636.65, y:415.5}), new Object({x:636.65, y:308.8}), new Object({x:84.25, y:308.8}), new Object({x:84.25, y:415.5}), new Object({x:200.5, y:415.5}), new Object({x:200.5, y:233.95}), new Object({x:321.8, y:233.95}));
map_bases.map9 = new Object({x:585, y:380});
map_names.map9 = "Lyne";
map_layouts.map9 = new Array(new Object({x:0, y:0}), new Object({x:590, y:410}));
map_bases.tutorial = new Object({x:570, y:350});
map_names.tutorial = "Quick Tutorial";
map_layouts.tutorial = new Array(new Object({x:720, y:100}), new Object({x:100, y:100}), new Object({x:100, y:410}), new Object({x:580, y:410}));
map_bases.map10 = new Object({x:602, y:10});
map_names.map10 = "Penta";
map_layouts.map10 = new Array(new Object({x:360, y:20}), new Object({x:220, y:60}), new Object({x:129, y:170}), new Object({x:129, y:310}), new Object({x:200, y:420}), new Object({x:360, y:460}), new Object({x:522, y:420}), new Object({x:590, y:310}), new Object({x:590, y:170}), new Object({x:500, y:60}), new Object({x:360, y:20}), new Object({x:200, y:420}), new Object({x:589, y:169}), new Object({x:130, y:170}), new Object({x:523, y:418}), new Object({x:360, y:20}), new Object({x:580, y:20}), new Object({x:607, y:37}));
map_bases.map11 = new Object({x:580, y:360});
map_names.map11 = "Bad Pipe";
map_layouts.map11 = new Array(new Object({x:20, y:460}), new Object({x:260, y:460}), new Object({x:260, y:300}), new Object({x:240, y:300}), new Object({x:240, y:240}), new Object({x:300, y:240}), new Object({x:280, y:180}), new Object({x:320, y:200}), new Object({x:320, y:140}), new Object({x:300, y:140}), new Object({x:280, y:120}), new Object({x:260, y:100}), new Object({x:260, y:80}), new Object({x:260, y:20}), new Object({x:280, y:40}), new Object({x:300, y:60}), new Object({x:320, y:80}), new Object({x:340, y:60}), new Object({x:360, y:40}), new Object({x:380, y:20}), new Object({x:380, y:80}), new Object({x:380, y:100}), new Object({x:360, y:120}), new Object({x:340, y:140}), new Object({x:320, y:140}), new Object({x:320, y:200}), new Object({x:360, y:180}), new Object({x:340, y:240}), new Object({x:320, y:240}), new Object({x:400, y:240}), new Object({x:400, y:300}), new Object({x:380, y:300}), new Object({x:260, y:300}), new Object({x:380, y:300}), new Object({x:380, y:460}), new Object({x:640, y:460}), new Object({x:645, y:437}));
map_bases.map12 = new Object({x:160, y:320});
map_names.map12 = "Miss Direction";
map_layouts.map12 = new Array(new Object({x:0, y:420}), new Object({x:580, y:420}), new Object({x:540, y:460}), new Object({x:700, y:460}), new Object({x:700, y:300}), new Object({x:660, y:340}), new Object({x:440, y:120}), new Object({x:480, y:80}), new Object({x:320, y:80}), new Object({x:320, y:220}), new Object({x:360, y:180}), new Object({x:560, y:380}), new Object({x:460, y:380}), new Object({x:660, y:200}), new Object({x:700, y:240}), new Object({x:700, y:100}), new Object({x:560, y:100}), new Object({x:600, y:140}), new Object({x:340, y:380}), new Object({x:220, y:260}), new Object({x:220, y:120}), new Object({x:280, y:120}), new Object({x:200, y:40}), new Object({x:120, y:120}), new Object({x:180, y:120}), new Object({x:180, y:240}), new Object({x:120, y:240}), new Object({x:120, y:160}), new Object({x:20, y:260}), new Object({x:120, y:360}), new Object({x:120, y:300}), new Object({x:180, y:300}), new Object({x:180, y:340}), new Object({x:184.9, y:337}));
map_bases.standard = map_bases.map1;
map_layouts.standard = map_layouts.map1;
}
var map_as_vec = new Array();
var mine_points = new Array();
var dump_points = false;
var waypoint_total = 12;
var line_width = 28;
var line_colour = 11700315;
var line_alpha = 100;
}
Symbol 1266 MovieClip [__Packages.SmokeManager] Frame 0
class SmokeManager extends OnslaughtManager
{
var attachMovie;
function SmokeManager () {
super();
}
function rocketSmoke(from) {
if (GameStatus.rocket_smoke != true) {
return(false);
}
var _local7 = GameStatus.rocket_smoke_max;
var _local4 = "RocketTrail";
var _local6 = smoke_cur;
var _local5 = _local4 + _local6;
var _local2 = new Object();
_local2._x = from._x;
_local2._y = from._y;
var _local3 = this[_local5];
if (_local3 && (_local3._name)) {
_local3.removeMyself();
}
var _local8 = attachMovie(_local4, _local5, _local6, _local2);
smoke_cur++;
smoke_cur = (smoke_cur % _local7) + 1;
}
var smoke_cur = 1;
}
Symbol 1267 MovieClip [__Packages.turretinfo.TurretInfoPoint] Frame 0
class turretinfo.TurretInfoPoint extends OnslaughtManager
{
var NewMessage, NewWeapon, interval;
function TurretInfoPoint () {
super();
message_new = false;
weapon_new = false;
_root.Game.turretInfoToggle();
}
function onPress() {
if (GameStatus.message_waiting == true) {
GameStatus.turret_info_show = true;
_root.Game.TurretInfo.ButtonMessages.onPress();
_root.Game.TurretInfo.InfoMessages.messageFirstUnread();
messageRead();
} else {
_root.Game.turretInfoToggle();
}
}
function onLoad() {
NewMessage._visible = false;
NewWeapon._visible = false;
}
function flash() {
if (weapon_new == true) {
if (NewWeapon._visible) {
NewWeapon._visible = false;
} else {
NewWeapon._visible = true;
}
}
if (message_new == true) {
if (NewMessage._visible) {
NewMessage._visible = false;
} else {
NewMessage._visible = true;
}
}
}
function messageNew() {
clearInterval(interval);
interval = setInterval(this, "flash", 400);
message_new = true;
GameStatus.message_waiting = true;
}
function messageNewWeapon() {
clearInterval(interval);
interval = setInterval(this, "flash", 400);
weapon_new = true;
GameStatus.message_waiting = true;
}
function messageRead() {
clearInterval(interval);
weapon_new = false;
message_new = false;
NewMessage._visible = false;
NewWeapon._visible = false;
GameStatus.message_waiting = false;
}
var message_new = false;
var weapon_new = false;
}
Symbol 1268 MovieClip [__Packages.WaveClock] Frame 0
class WaveClock extends OnslaughtObject
{
var Sweep, __get__value, clock_now, clock_max;
function WaveClock () {
super();
Sweep._rotation = -90;
}
function set value(new_time) {
clockSet(new_time);
//return(__get__value());
}
function onPress() {
_root.Game.waveSend();
}
function clockSet(new_time) {
if (new_time == clock_now) {
return(undefined);
}
clock_max = _root.Game.AttackerManager.wave_spacing / 1000;
clock_now = new_time;
var _local3 = clock_now / clock_max;
Sweep._rotation = (360 * _local3) - 90;
}
}
Symbol 1269 MovieClip [__Packages.mods.ModAssets] Frame 0
class mods.ModAssets extends MovieClip
{
static var selected;
var item_list, timer, resetButton, selected_last, mod, cur_item, _parent, onChange, getNextHighestDepth, attachMovie;
function ModAssets () {
super();
}
function onLoad() {
item_list = new Array();
initResetButton();
}
function init() {
clearInterval(timer);
listHighlight();
}
function initResetButton() {
resetButton._visible = false;
resetButton.onPress = mx.utils.Delegate.create(this, resetClick);
}
function updateList(item_name) {
var _local2;
if (item_name == undefined) {
GameManager.debug("No item name given");
listClear();
_local2 = new Object();
_local2.active = false;
_local2.text = "Nothing selected";
_local2.value = undefined;
listAdd(_local2);
return(undefined);
}
selected = undefined;
selected_last = undefined;
listClear();
var _local4;
var _local3 = mod.itemGetAssets(item_name);
cur_item = item_name;
for (var _local6 in _local3) {
_local2 = new Object();
_local2.text = mod.assetGetLibraryData(_local6, "title");
if (_local2.text == undefined) {
_local2.text = _local6;
}
_local2.item = item_name;
_local2.asset = _local6;
_local2.type = _local3[_local6];
_local2.highlighted = false;
if (mod.assetDeltaGet(_local2.item, _local2.asset) != undefined) {
_local2.highlighted = true;
}
_local2.onClick = function () {
mods.ModAssets.selected = this;
this.broadcastMessage("selectChange");
};
_local4 = listAdd(_local2);
_local4.addListener(this);
}
listHighlightFlag();
_parent.invalidate();
}
function selectChange() {
var _local2 = 0;
while (_local2 < item_list.length) {
if (selected == item_list[_local2]) {
item_list[_local2].selected = true;
} else {
item_list[_local2].selected = false;
}
_local2++;
}
selected_last = selected;
onChange();
timer = setInterval(this, "init", 50);
}
function listClear() {
var _local4 = new Object();
_local4.autoAlpha = 0;
_local4.onComplete = function () {
this.removeMovieClip();
};
var _local3;
var _local2 = 0;
while (_local2 < item_list.length) {
_local3 = item_list[_local2];
_local3.removeMovieClip();
_local2++;
}
item_list = new Array();
}
function listAdd(new_opts) {
var _local3 = "ModListItem";
var _local4 = getNextHighestDepth();
var _local5 = _local3 + _local4;
var _local2 = attachMovie(_local3, _local5, _local4, new_opts);
_local2._x = 0;
_local2._y = item_list.length * 16;
item_list.push(_local2);
return(_local2);
}
function listHighlight() {
var _local2;
var _local4;
var _local5 = false;
var _local3 = 0;
while (_local3 < item_list.length) {
_local2 = item_list[_local3];
_local4 = mod.assetDeltaGet(_local2.item, _local2.asset);
if (_local4 != undefined) {
_local2.__set__highlighted(true);
_local5 = true;
} else {
_local2.__set__highlighted(false);
}
_local3++;
}
resetButton._visible = _local5;
}
function listHighlightFlag() {
timer = setInterval(this, "init", 50);
}
function resetClick() {
mod.itemDeltaClear(cur_item);
updateList(cur_item);
}
}
Symbol 1270 MovieClip [__Packages.mods.ModListItem] Frame 0
class mods.ModListItem extends MovieClip
{
var whenPressed, __get__onClick, __get__highlighted, opts_over, glows, opts_none, theLabel, hitArea, opts_press, opts_select, opts_unselect, eventManager;
function ModListItem () {
super();
_init_events();
}
function set onClick(new_func) {
whenPressed = new_func;
//return(__get__onClick());
}
function set selected(new_val) {
is_selected = new_val;
updateHighlight();
//return(selected);
}
function set highlighted(new_val) {
is_highlighted = new_val;
updateHighlight();
//return(__get__highlighted());
}
function updateHighlight() {
if (is_selected) {
opts_over = glows.select;
} else {
opts_over = glows.over;
}
if (is_selected) {
opts_none = glows.select;
} else if (is_highlighted) {
opts_none = glows.hilight;
} else {
opts_none = glows.unselect;
}
onRollOut();
}
function get selected() {
return(is_selected);
}
function onLoad() {
theLabel.embedFonts = true;
hitArea._visible = true;
hitArea._alpha = 0;
var _local2 = new Object();
_local2.blurX = 12;
_local2.blurY = 12;
_local2.alpha = 0.6;
_local2.strength = 6;
_local2.color = 16777215 /* 0xFFFFFF */;
_local2.overwrite = true;
var _local6 = new Object();
_local6.blurX = 12;
_local6.blurY = 12;
_local6.alpha = 0.6;
_local6.strength = 6;
_local6.color = 16750899 /* 0xFF9933 */;
_local6.overwrite = true;
var _local3 = new Object();
_local3.blurX = 0;
_local3.blurY = 0;
_local3.alpha = 0;
_local3.strength = 0;
_local3.overwrite = true;
var _local4 = new Object();
_local4.blurX = 9;
_local4.blurY = 9;
_local4.alpha = 0.6;
_local4.strength = 6;
_local4.color = 6750054 /* 0x66FF66 */;
_local4.overwrite = true;
var _local5 = new Object();
_local5.blurX = 9;
_local5.blurY = 9;
_local5.alpha = 0.6;
_local5.strength = 6;
_local5.color = 11154227 /* 0xAA3333 */;
_local5.overwrite = true;
glows = new Object();
glows.over = {glowFilter:_local2};
glows.press = {glowFilter:_local6};
glows.select = {glowFilter:_local4};
glows.unselect = {glowFilter:_local3};
glows.none = {glowFilter:_local3};
glows.hilight = {glowFilter:_local5};
opts_over = glows.over;
opts_press = glows.press;
opts_select = glows.select;
opts_unselect = glows.unselect;
opts_none = glows.none;
}
function onRollOver() {
gs.TweenFilterLite.to(this, 0.1, opts_over);
}
function onRollOut() {
gs.TweenFilterLite.to(this, 0.8, opts_none);
}
function onPress() {
if (active == true) {
gs.TweenFilterLite.to(this, 0.05, opts_press);
whenPressed();
}
}
function onRelease() {
gs.TweenFilterLite.to(this, 0.05, opts_over);
}
function onReleaseOutside() {
gs.TweenFilterLite.to(this, 0.8, opts_none);
}
function _init_events() {
eventManager = new Object();
AsBroadcaster.initialize(eventManager);
}
function broadcastMessage(the_msg) {
eventManager.broadcastMessage(the_msg);
}
function addListener(the_obj) {
eventManager.addListener(the_obj);
}
function addEventListener(event_name, func) {
eventManager.addEventListener(event_name, func);
}
function removeListener(the_obj) {
eventManager.removeListener(the_obj);
}
var is_selected = false;
var is_highlighted = false;
var active = true;
}
Symbol 1271 MovieClip [__Packages.mods.ModItems] Frame 0
class mods.ModItems extends MovieClip
{
static var selected;
var timer, resetButton, selected_last, defaults, item, _parent, item_list, onChange, getNextHighestDepth, attachMovie, mod;
function ModItems () {
super();
}
function onLoad() {
}
function init() {
clearInterval(timer);
listHighlight();
}
function initResetButton() {
resetButton._visible = false;
resetButton.onPress = mx.utils.Delegate.create(this, resetClick);
}
function updateList(item_name) {
var _local2;
if (item_name == undefined) {
GameManager.debug("No item name given");
listClear();
_local2 = new Object();
_local2.active = false;
_local2.text = "Nothing selected";
_local2.value = undefined;
listAdd(_local2);
return(undefined);
}
selected_last = undefined;
listClear();
var _local3 = defaults.item_library;
item = item_name;
var _local4;
for (var _local5 in _local3) {
_local2 = new Object();
_local2.text = _local3[_local5];
_local2.item = _local5;
_local2.target = this;
_local2.highlighted = false;
_local2.onClick = function () {
mods.ModItems.selected = this;
this.broadcastMessage("selectChange");
};
_local4 = listAdd(_local2);
_local4.addListener(this);
}
listHighlightFlag();
_parent.invalidate();
}
function selectChange() {
var _local2 = 0;
while (_local2 < item_list.length) {
if (selected == item_list[_local2]) {
item_list[_local2].selected = true;
} else {
item_list[_local2].selected = false;
}
_local2++;
}
selected_last = selected;
onChange();
timer = setInterval(this, "init", 50);
}
function listClear() {
var _local4 = new Object();
_local4.autoAlpha = 0;
_local4.onComplete = function () {
this.removeMovieClip();
};
var _local3;
var _local2 = 0;
while (_local2 < item_list.length) {
_local3 = item_list[_local2];
_local3.removeMovieClip();
_local2++;
}
item_list = new Array();
}
function listAdd(new_opts) {
var _local3 = "ModListItem";
var _local4 = getNextHighestDepth();
var _local5 = _local3 + _local4;
var _local2 = attachMovie(_local3, _local5, _local4, new_opts);
_local2._x = 0;
_local2._y = item_list.length * 16;
item_list.push(_local2);
return(_local2);
}
function listHighlight() {
var _local3;
var _local5;
var _local4 = false;
var _local2 = 0;
while (_local2 < item_list.length) {
_local3 = item_list[_local2];
if (mod.itemHasDelta(_local3.item) == true) {
_local3.__set__highlighted(true);
_local4 = true;
} else {
_local3.__set__highlighted(false);
}
_local2++;
}
resetButton._visible = _local4;
}
function listHighlightFlag() {
timer = setInterval(this, "init", 50);
}
function resetClick() {
mod.modClear();
updateList(item);
}
}
Symbol 1272 MovieClip [__Packages.mods.ModValue] Frame 0
class mods.ModValue extends MovieClip
{
var value, asset, item, setup_timer, eventManager, listen;
function ModValue () {
super();
}
function toString() {
return((((item + ".") + asset) + " = ") + value);
}
function valueSetAfter() {
clearInterval(setup_timer);
}
function onLoad() {
_init_events();
if (setup_after == true) {
setup_timer = setInterval(this, "valueSetAfter", 32);
}
}
function _init_events() {
eventManager = new Object();
AsBroadcaster.initialize(eventManager);
if (listen != undefined) {
addListener(listen);
}
}
function broadcastMessage(the_msg) {
eventManager.broadcastMessage(the_msg);
}
function addListener(the_obj) {
eventManager.addListener(the_obj);
}
function addEventListener(event_name, func) {
eventManager.addEventListener(event_name, func);
}
function removeListener(the_obj) {
eventManager.removeListener(the_obj);
}
var setup_after = false;
}
Symbol 1273 MovieClip [__Packages.mods.ModValueArray] Frame 0
class mods.ModValueArray extends mods.ModValue
{
function ModValueArray () {
super();
}
}
Symbol 1274 MovieClip [__Packages.gv.gvCheckbox] Frame 0
class gv.gvCheckbox extends MovieClip
{
var checked, is_checked, onChange, tick_mc;
function gvCheckbox () {
super();
update();
}
function onLoad() {
if (checked == true) {
is_checked = true;
}
update();
}
function get selected() {
return(is_checked);
}
function set selected(new_val) {
if (new_val != is_checked) {
is_checked = new_val;
onChange();
}
update();
//return(selected);
}
function onPress() {
if (is_checked == true) {
is_checked = false;
} else {
is_checked = true;
}
update();
onChange();
}
function update() {
if (is_checked == true) {
tick_mc._visible = true;
} else {
tick_mc._visible = false;
}
}
}
Symbol 1275 MovieClip [__Packages.mods.ModValueBoolean] Frame 0
class mods.ModValueBoolean extends mods.ModValue
{
var theCheckBox, onChange;
function ModValueBoolean () {
super();
}
function onLoad() {
super.onLoad();
theCheckBox.checked = is_selected;
theCheckBox.onChange = mx.utils.Delegate.create(this, valueChanged);
}
function get value() {
return(is_selected);
}
function set value(new_val) {
is_selected = new_val;
//return(value);
}
function disableOnChange() {
onChange = undefined;
}
function valueChanged() {
is_selected = theCheckBox.selected;
onChange();
}
var is_selected = false;
}
Symbol 1276 MovieClip [__Packages.mods.ModValueNumber] Frame 0
class mods.ModValueNumber extends mods.ModValue
{
var theNumber, the_value, desc, theStepper, onChange;
function ModValueNumber () {
super();
}
function onLoad() {
super.onLoad();
theNumber.__set__text(the_value.toString());
theNumber.__set__restrict(restrict);
theNumber.__set__maxChars(18);
theNumber._visible = false;
if (desc.max != undefined) {
theStepper.__set__maximum(desc.max);
} else {
theStepper.__set__maximum(1E20);
}
if (desc.min != undefined) {
theStepper.__set__minimum(desc.min);
} else {
theStepper.__set__minimum(-1E20);
}
if (desc.step != undefined) {
theStepper.__set__stepSize(desc.step);
}
theStepper.__set__value(the_value);
var _local3 = mx.utils.Delegate.create(this, valueChanged);
theStepper.addEventListener("change", _local3);
}
function get value() {
return(the_value);
}
function set value(new_val) {
the_value = new_val;
theNumber.__set__text(new_val.toString());
theStepper.__set__value(the_value);
//return(value);
}
function disableOnChange() {
onChange = undefined;
}
function valueChanged() {
the_value = theStepper.value;
onChange();
}
function valueSetAfter() {
super.valueSetAfter();
theNumber.__set__text(the_value.toString());
theStepper.__set__value(the_value);
}
var restrict = "0-9.\\-";
var setup_after = true;
}
Symbol 114 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 = TextField(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 _local4 = nextButton_mc;
_local4.tabEnabled = false;
_local4.styleName = this;
_local4._x = __width - _local4.__width;
_local4._y = 0;
_local4.owner = this;
_local4.autoRepeat = true;
_local4.clickHandler = function () {
Selection.setSelection(0, 0);
};
_local4.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 _local5 = inputField;
_local5.styleName = this;
_local5.setSize(__width - nextButton_mc.__width, __height);
_local5.restrict = "0-9\\-\\.\\,";
_local5.maxChars = __maxChars;
_local5.text = value;
_local5.onSetFocus = function () {
this._parent.onSetFocus();
};
_local5.onKillFocus = function () {
this._parent.onKillFocus();
};
_local5.drawFocus = function (b) {
this._parent.drawFocus(b);
};
_local5.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 172 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 6 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 1277 MovieClip [__Packages.mods.ModValues] Frame 0
class mods.ModValues extends MovieClip
{
var item_list, resetButton, cur_item, cur_asset, mod, legend, asset_cur, _parent, getNextHighestDepth, attachMovie, onChange, asset_timer, description;
function ModValues () {
super();
}
function onLoad() {
item_list = new Array();
initResetButton();
}
function initResetButton() {
resetButton._visible = false;
resetButton.onPress = mx.utils.Delegate.create(this, assetDefault);
}
function assetShow(item_name, asset_name) {
cur_item = item_name;
cur_asset = asset_name;
var _local9 = mod.itemGetAssets(item_name);
var _local5 = _local9[asset_name];
assetClear();
legend._alpha = 0;
var _local3;
var _local4 = mod.assetDescribe(asset_name);
var _local10 = mod.assetDefaults(cur_item, cur_asset);
var _local2 = new Object();
_local2.listen = this;
_local2.type = _local5;
_local2.text = _local4.title;
_local2.item = item_name;
_local2.asset = asset_name;
_local2.desc = _local4;
_local2.value = _local10;
_local2.onChange = function () {
this.broadcastMessage("valueChanged");
};
var _local7 = mod.assetDeltaGet(item_name, asset_name);
if (_local7 != undefined) {
_local2.value = _local7;
resetButton._visible = true;
} else {
resetButton._visible = false;
}
switch (_local5) {
case mods.ModManager.MOD_STRING :
_local3 = assetCreate(TYPE_STRING, _local2);
_local3.value = _local2.value;
asset_cur = _local3;
assetDescribe(_local4);
break;
case mods.ModManager.MOD_BOOLEAN :
_local3 = assetCreate(TYPE_BOOLEAN, _local2);
_local3.value = _local2.value;
asset_cur = _local3;
assetDescribe(_local4);
break;
case mods.ModManager.MOD_NUMBER :
_local3 = assetCreate(TYPE_NUMBER, _local2);
_local3.value = _local2.value;
asset_cur = _local3;
assetDescribe(_local4);
break;
case mods.ModManager.MOD_ARRAY_INDEXED :
_local2.field_key = _local4.key_field;
_local2.field_val = _local4.val_field;
_local3 = assetCreate(TYPE_ARRAY_INDEXED, _local2);
_local3.value = _local2.value;
asset_cur = _local3;
break;
default :
GameManager.debug("Unhandled value type: " + _local5);
}
legendUpdate();
_parent.invalidate();
}
function legendUpdate() {
if (asset_cur.type == mods.ModManager.MOD_ARRAY_INDEXED) {
gs.TweenLite.to(legend, 1, {autoAlpha:100});
} else {
gs.TweenLite.to(legend, 1.2, {autoAlpha:0});
}
}
function assetCreate(new_id, new_opts) {
var _local4 = getNextHighestDepth();
var _local5 = new_id + _local4;
var _local2 = item_list[item_list.length - 1];
if (_local2 && (_local2._name)) {
new_opts._y = _local2._y + _local2._height;
}
var _local3 = attachMovie(new_id, _local5, _local4, new_opts);
item_list.push(_local3);
return(_local3);
}
function assetClear() {
var _local3;
var _local2 = 0;
while (_local2 < item_list.length) {
_local3 = item_list[_local2];
_local3.disableOnChange();
_local3.removeMovieClip();
_local2++;
}
item_list = new Array();
resetButton._visible = false;
}
function valueChanged() {
mod.assetDeltaSet(asset_cur.item, asset_cur.asset, asset_cur.value);
if (asset_cur.type == mods.ModManager.MOD_ARRAY_INDEXED) {
if (asset_cur.desc.key_asset != undefined) {
var _local2 = asset_cur.value[asset_cur.desc.key_field];
mod.assetDeltaSet(asset_cur.item, asset_cur.desc.key_asset, _local2);
}
if (asset_cur.desc.val_asset != undefined) {
var _local3 = asset_cur.value[asset_cur.desc.val_field];
mod.assetDeltaSet(asset_cur.item, asset_cur.desc.val_asset, _local3);
}
}
resetButton._visible = true;
onChange();
}
function assetDefault() {
var _local3;
var _local2 = 0;
while (_local2 < item_list.length) {
_local3 = item_list[_local2];
_local3.disableOnChange();
_local2++;
}
if (asset_cur) {
mod.assetDeltaClear(cur_item, cur_asset);
assetClear();
assetShow(cur_item, cur_asset);
}
}
function assetDefaultLater() {
clearInterval(asset_timer);
assetShow(cur_item, cur_asset);
}
function assetDescribe(asset_desc) {
if (description && (description._name)) {
description.removeMovieClip();
}
var _local3 = "ModAssetDesc";
var _local2 = new Object();
_local2.asset_desc = asset_desc;
description = assetCreate(_local3, _local2);
}
static var TYPE_BOOLEAN = "ModValueBoolean";
static var TYPE_ARRAY = "ModValueArray";
static var TYPE_ARRAY_INDEXED = "ModValueArrayIndexed";
static var TYPE_NUMBER = "ModValueNumber";
static var TYPE_STRING = "ModValueString";
}
Symbol 1278 MovieClip [__Packages.mods.ModValueLegend] Frame 0
class mods.ModValueLegend extends MovieClip
{
function ModValueLegend () {
super();
}
}
Symbol 1279 MovieClip [__Packages.mods.ModAssetDesc] Frame 0
class mods.ModAssetDesc extends MovieClip
{
var theText, text, asset_desc;
function ModAssetDesc () {
super();
}
function onLoad() {
var _local3 = theText._height;
text = "";
if (asset_desc.desc != undefined) {
text = text + asset_desc.desc;
}
if (asset_desc.min != undefined) {
text = text + ("\nMin: " + asset_desc.min);
}
if (asset_desc.max != undefined) {
text = text + ("\nMax: " + asset_desc.max);
}
if (asset_desc.unit != undefined) {
text = text + ("\nUnits: " + asset_desc.unit);
}
var _local2 = gs.utils.text.TextMetrics.getLineMetrics(theText);
theText._height = _local3 * _local2.length;
}
}
Symbol 1280 MovieClip [__Packages.gs.utils.text.TextMetrics] Frame 0
class gs.utils.text.TextMetrics
{
function TextMetrics () {
}
static function getTextBounds(tf) {
var _local3 = tf.getTextFormat(0, 1);
var _local1 = {};
if (_local3.align == "right") {
_local1.xMax = (tf._x + tf._width) - 2;
} else if (_local3.align == "center") {
_local1.xMax = (tf._x + (tf._width / 2)) + (tf.textWidth / 2);
} else {
_local1.xMax = (tf._x + tf.textWidth) + 2;
}
_local1.xMin = _local1.xMax - tf.textWidth;
_local1.yMax = (tf._y + tf.textHeight) + 2;
_local1.yMin = tf._y + 2;
_local1.y = _local1.yMin;
_local1.x = _local1.xMin;
_local1.textWidth = tf.textWidth;
_local1.textHeight = tf.textHeight;
return(_local1);
}
static function getLineMetrics(tf) {
var _local7 = [];
var _local5 = tf.getTextFormat(0, 1);
var _local10 = _local5.leading;
var _local8 = _local5.getTextExtent("Mg");
_local5.leading = 0;
tf.setNewTextFormat(_local5);
var _local13 = tf.text.split(String.fromCharCode(13));
var _local24 = tf.text;
var _local23 = tf._height;
tf.text = "Mg";
var _local12 = tf.textHeight;
_local5.leading = _local10;
tf.setNewTextFormat(_local5);
tf.text = "M\nM\nM\nM\nM\nM\nM\nM\nM\nM\nM\nM\nM\nM\nM\nM\nM\nM\nM\nM";
var _local17 = (tf.textHeight / 20) + (_local5.leading / 20);
var _local11 = 3;
var _local2 = 0;
var _local4 = "";
tf.text = "";
tf._height = _local17 + 6;
var _local6;
var _local22;
var _local9;
var _local3;
_local9 = 0;
while (_local9 < _local13.length) {
_local6 = _local13[_local9].split(" ");
_local3 = 0;
while (_local3 < _local6.length) {
tf.text = tf.text + (_local6[_local3] + " ");
if (tf.maxscroll != 1) {
if (_local5.align == "right") {
_local22 = ((tf._x + tf._width) - _local2) - 2;
} else if (_local5.align == "center") {
_local22 = (tf._x + (tf._width / 2)) - (_local2 / 2);
} else {
_local22 = tf._x + 2;
}
_local7.push({text:_local4, x:_local22, y:(_local11 + tf._y) + Math.round(_local7.length * _local17), width:_local2, height:_local12, lineHeight:_local17, leading:_local10, ascent:_local8.ascent, descent:_local8.descent});
tf.text = _local6[_local3] + " ";
}
_local2 = tf.textWidth;
_local4 = tf.text;
_local3++;
}
_local4 = _local4.substr(0, _local4.length - 1);
if (_local5.align == "right") {
_local22 = ((tf._x + tf._width) - _local2) - 2;
} else if (_local5.align == "center") {
_local22 = (tf._x + (tf._width / 2)) - (_local2 / 2);
} else {
_local22 = tf._x + 2;
}
_local7.push({text:_local4, x:_local22, y:(_local11 + tf._y) + Math.round(_local7.length * _local17), width:_local2, height:_local12, lineHeight:_local17, leading:_local10, ascent:_local8.ascent, descent:_local8.descent});
tf.text = "";
_local2 = 0;
_local4 = "";
_local9++;
}
tf._height = _local23;
tf.text = _local24;
return(_local7);
}
static function getSubstringMetrics(tf, text_str) {
var _local16 = [];
var _local15 = getLineMetrics(tf);
var _local6 = _local15[0].ascent;
var _local7 = _local15[0].descent;
var _local8 = _local15[0].lineHeight;
var _local11 = _local15[0].leading;
var _local20 = tf.getTextFormat(0, 1);
tf.setNewTextFormat(_local20);
var _local23 = tf.text;
var _local21 = tf._height;
tf.text = text_str;
var _local22 = _local20.getTextExtent(text_str);
var _local19 = Math.max(_local22.width, tf.textWidth);
var _local18 = _local15[0].height;
tf.text = "M";
var _local17 = tf.textWidth;
var _local5;
var _local2;
var _local3;
var _local4;
var _local24;
var _local13;
_local5 = 0;
while (_local5 < _local15.length) {
_local4 = _local15[_local5];
_local3 = _local4.text.split(text_str);
_local3.pop();
tf.text = "";
_local2 = 0;
while (_local2 < _local3.length) {
tf.text = tf.text + (_local3[_local2] + "M");
_local16.push({x:(_local4.x + tf.textWidth) - _local17, y:_local4.y, width:_local19, height:_local18, lineHeight:_local8, leading:_local11, ascent:_local6, descent:_local7});
tf.text = tf.text.substr(0, -1) + text_str;
_local2++;
}
_local5++;
}
tf._height = _local21;
tf.text = _local23;
return(_local16);
}
}
Symbol 1281 MovieClip [__Packages.mods.ModValueInteger] Frame 0
class mods.ModValueInteger extends mods.ModValueNumber
{
function ModValueInteger () {
super();
}
var restrict = "0-9";
}
Symbol 1282 MovieClip [__Packages.mods.ModValueArrayIndexed] Frame 0
class mods.ModValueArrayIndexed extends mods.ModValue
{
var item_list, desc, f_change, f_move_up, f_move_down, f_add_above, f_add_below, f_delete, value, onChange, _parent, getNextHighestDepth, attachMovie, change_post_remove;
function ModValueArrayIndexed () {
super();
}
function get clicked() {
return(mods.ModValueArrayIndexedItem.clicked);
}
function onLoad() {
super.onLoad();
item_list = new Array();
var _local6 = 0;
var _local4;
var _local5;
var _local3;
var _local10 = desc.key_data;
var _local8 = desc.val_data;
var _local7 = keys;
var _local9 = values;
f_change = mx.utils.Delegate.create(this, valueChanged);
f_move_up = mx.utils.Delegate.create(this, moveUp);
f_move_down = mx.utils.Delegate.create(this, moveDown);
f_add_above = mx.utils.Delegate.create(this, addAbove);
f_add_below = mx.utils.Delegate.create(this, addBelow);
f_delete = mx.utils.Delegate.create(this, itemRemove);
for (_local4 in _local7) {
_local6++;
}
_local4 = 0;
while (_local4 < _local6) {
_local3 = new Object();
_local3.place = _local4;
_local3.text_key = desc.key_data.title;
_local3.text_val = desc.val_data.title;
_local3.text_num = _local4 + 1;
_local3.value_key = Number(_local7[_local4]);
_local3.value_val = Number(_local9[_local4]);
_local3.desc_key = _local10;
_local3.desc_val = _local8;
_local3.onChange = f_change;
_local3.onMoveUp = f_move_up;
_local3.onMoveDown = f_move_down;
_local3.onAddAbove = f_add_above;
_local3.onAddBelow = f_add_below;
_local3.onRemove = f_delete;
_local5 = assetCreate("ModValueArrayIndexedItem", _local3);
_local5._y = y_start + (_local5._height * _local4);
item_list.push(_local5);
_local4++;
}
}
function disableOnChange() {
var _local3;
var _local2 = 0;
while (_local2 < item_list.length) {
_local3 = item_list[_local2];
_local3.onChange = undefined;
_local2++;
}
}
function valueChanged() {
var _local5 = new Array();
var _local6 = new Array();
var _local4;
var _local3;
var _local2 = 0;
while (_local2 < item_list.length) {
_local4 = item_list[_local2];
_local3 = _local4.value;
_local5.push(_local3.key);
_local6.push(_local3.value);
_local2++;
}
value[field_key] = _local5;
value[field_val] = _local6;
onChange();
}
function listChanged() {
_parent._parent.invalidate();
valueChanged();
}
function get keys() {
return(value[field_key]);
}
function get values() {
return(value[field_val]);
}
function toString() {
var _local3 = keys;
var _local5 = values;
var _local4 = new Array();
var _local2 = 0;
while (_local2 < _local3.length) {
_local4[_local2] = (_local3[_local2] + " => ") + _local5[_local2];
_local2++;
}
return(_local4.join(","));
}
function assetCreate(new_id, new_opts) {
var _local2 = getNextHighestDepth();
var _local4 = new_id + _local2;
var _local3 = attachMovie(new_id, _local4, _local2, new_opts);
return(_local3);
}
function addAbove() {
if (change_in_progress == true) {
return(false);
}
return(itemInsert(clicked.place));
}
function addBelow() {
if (change_in_progress == true) {
return(false);
}
return(itemInsert(clicked.place + 1));
}
function moveUp() {
if (change_in_progress == true) {
return(false);
}
var _local3;
var _local2;
if (clicked.place > 0) {
_local3 = item_list[clicked.place];
_local2 = item_list[clicked.place - 1];
itemSwap(_local3, _local2);
return(true);
}
return(false);
}
function moveDown() {
if (change_in_progress == true) {
return(false);
}
var _local3;
var _local2;
if (clicked.place < (item_list.length - 1)) {
_local3 = item_list[clicked.place];
_local2 = item_list[clicked.place + 1];
itemSwap(_local3, _local2);
return(true);
}
return(false);
}
function itemRemove() {
if (change_in_progress == true) {
return(false);
}
change_in_progress = true;
var _local2;
var _local11 = new Array();
var _local4 = 0;
var _local6;
if (desc.min != undefined) {
if (item_list.length <= desc.min) {
return(false);
}
}
var _local3 = 0;
while (_local3 < item_list.length) {
_local2 = item_list[_local3];
if (_local3 == clicked.place) {
var _local5 = mx.utils.Delegate.create(this, changeDone);
change_post_remove = _local2;
gs.TweenLite.to(_local2, 0.2, {_yscale:0, onComplete:_local5, overwrite:false});
} else {
_local2.place = _local4;
_local2.text_num = (_local4 + 1).toString();
_local6 = y_start + (_local2._height * _local4);
gs.TweenLite.to(_local2, 0.2, {_y:_local6, overwrite:false});
_local11.push(_local2);
_local4++;
}
_local3++;
}
delete item_list;
item_list = _local11;
listChanged();
return(true);
}
function changeDone() {
if (change_post_remove && (change_post_remove._name)) {
change_post_remove.removeMovieClip();
}
change_in_progress = false;
}
function itemSwap(a, b) {
if (change_in_progress == true) {
return(false);
}
change_in_progress = true;
var _local8;
var _local5 = a.place;
var _local4 = b.place;
var _local7 = a._y;
var _local6 = b._y;
_local8 = item_list[_local5];
item_list[_local5] = item_list[_local4];
item_list[_local4] = _local8;
a.place = _local4;
b.place = _local5;
a.text_num = (a.place + 1).toString();
b.text_num = (b.place + 1).toString();
var _local9 = mx.utils.Delegate.create(this, changeDone);
gs.TweenLite.to(a, 0.2, {_y:_local6, overwrite:false});
gs.TweenLite.to(b, 0.2, {_y:_local7, overwrite:false, onComplete:_local9});
listChanged();
return(true);
}
function itemInsert(place) {
var _local3;
var _local6;
var _local8;
var _local4;
if (desc.max != undefined) {
if (item_list.length >= desc.min) {
return(false);
}
}
if (change_in_progress == true) {
return(false);
}
change_in_progress = true;
var _local16 = desc.key_data;
var _local13 = desc.val_data;
var _local22 = keys;
var _local20 = values;
var _local9 = 0;
var _local10 = 0;
var _local11;
var _local12;
if (place > 0) {
_local3 = item_list[place - 1];
_local9 = _local3.__get__value().key;
_local10 = _local3.__get__value().value;
}
if (place < (item_list.length - 1)) {
_local3 = item_list[place];
_local11 = _local3.__get__value().key;
_local12 = _local3.__get__value().value;
} else {
_local3 = item_list[item_list.length - 1];
_local11 = _local3.__get__value().key;
_local12 = _local3.__get__value().value;
}
var _local14 = _local9 + ((_local11 - _local9) / 2);
var _local15 = _local10 + ((_local12 - _local10) / 2);
var _local2 = item_list.length - 1;
while (_local2 >= place) {
_local3 = item_list[_local2];
item_list[_local2 + 1] = _local3;
_local3.place = _local2 + 1;
_local3.text_num = (_local2 + 2).toString();
_local6 = y_start + (_local3._height * (_local2 + 1));
gs.TweenLite.to(_local3, 0.2, {_y:_local6, overwrite:false});
_local2--;
}
_local4 = new Object();
_local4.place = place;
_local4.text_key = desc.key_data.title;
_local4.text_val = desc.val_data.title;
_local4.text_num = place + 1;
_local4.value_key = _local14;
_local4.value_val = _local15;
_local4.desc_key = _local16;
_local4.desc_val = _local13;
_local4.onChange = f_change;
_local4.onMoveUp = f_move_up;
_local4.onMoveDown = f_move_down;
_local4.onAddAbove = f_add_above;
_local4.onAddBelow = f_add_below;
_local4.onRemove = f_delete;
_local8 = assetCreate("ModValueArrayIndexedItem", _local4);
_local8._y = y_start + (_local8._height * place);
_local8._alpha = 0;
item_list[place] = _local8;
var _local17 = mx.utils.Delegate.create(this, changeDone);
gs.TweenLite.to(_local8, 0.2, {_alpha:100, overwrite:false, onComplete:_local17});
listChanged();
return(true);
}
var y_start = 0;
var field_key = "keys";
var field_val = "values";
var change_in_progress = false;
}
Symbol 1283 MovieClip [__Packages.mods.ModValueArrayIndexedItem] Frame 0
class mods.ModValueArrayIndexedItem extends mods.ModValue
{
static var clicked;
var desc_key, theStepperKey, value_key, desc_val, theStepperVal, value_val, ButtonAddAbove, ButtonAddBelow, ButtonMoveUp, ButtonMoveDown, ButtonRemove, onAddAbove, onAddBelow, onMoveUp, onMoveDown, onRemove, onChange;
function ModValueArrayIndexedItem () {
super();
}
function onLoad() {
super.onLoad();
if (desc_key.max != undefined) {
theStepperKey.__set__maximum(desc_key.max);
} else {
theStepperKey.__set__maximum(1E20);
}
if (desc_key.min != undefined) {
theStepperKey.__set__minimum(desc_key.min);
} else {
theStepperKey.__set__minimum(-1E20);
}
if (desc_key.step != undefined) {
theStepperKey.__set__stepSize(desc_key.step);
}
theStepperKey.__set__value(value_key);
if (desc_val.max != undefined) {
theStepperVal.__set__maximum(desc_val.max);
} else {
theStepperVal.__set__maximum(1E20);
}
if (desc_val.min != undefined) {
theStepperVal.__set__minimum(desc_val.min);
} else {
theStepperVal.__set__minimum(-1E20);
}
if (desc_val.step != undefined) {
theStepperVal.__set__stepSize(desc_val.step);
}
theStepperVal.__set__value(value_val);
var _local3 = mx.utils.Delegate.create(this, valueChanged);
theStepperKey.addEventListener("change", _local3);
theStepperVal.addEventListener("change", _local3);
ButtonAddAbove.__set__onClick(mx.utils.Delegate.create(this, onClickAddAbove));
ButtonAddBelow.__set__onClick(mx.utils.Delegate.create(this, onClickAddBelow));
ButtonMoveUp.__set__onClick(mx.utils.Delegate.create(this, onClickMoveUp));
ButtonMoveDown.__set__onClick(mx.utils.Delegate.create(this, onClickMoveDown));
ButtonRemove.onClick = mx.utils.Delegate.create(this, onClickRemove);
}
function onClickAddAbove() {
clicked = this;
onAddAbove();
}
function onClickAddBelow() {
clicked = this;
onAddBelow();
}
function onClickMoveUp() {
clicked = this;
onMoveUp();
}
function onClickMoveDown() {
clicked = this;
onMoveDown();
}
function onClickRemove() {
clicked = this;
onRemove();
}
function valueSetAfter() {
super.valueSetAfter();
theStepperKey.__set__value(value_key);
theStepperVal.__set__value(value_val);
}
function setVal(k, v) {
value_key = Number(k);
value_val = Number(v);
theStepperKey.__set__value(value_key);
theStepperVal.__set__value(value_val);
}
function get value() {
return({key:theStepperKey.__get__value(), value:theStepperVal.__get__value()});
}
function valueChanged() {
value_key = theStepperKey.value;
value_val = theStepperVal.value;
onChange();
}
var setup_after = true;
}
Symbol 1284 MovieClip [__Packages.IconArrow] Frame 0
class IconArrow extends MovieClip
{
var whenPressed, __get__onClick, boundingBox_mc, opts_over, opts_press, opts_none, opts_disabled, _alpha;
function IconArrow () {
super();
}
function set onClick(new_func) {
if (is_enabled == false) {
return;
}
whenPressed = new_func;
//return(__get__onClick());
}
function get enabled() {
return(is_enabled);
}
function set enabled(new_val) {
var _local2 = is_enabled;
is_enabled = new_val;
if (is_enabled != _local2) {
onRollOut();
}
//return(enabled);
}
function onLoad() {
boundingBox_mc._visible = true;
boundingBox_mc._alpha = 0;
var _local2 = new Object();
_local2.blurX = 12;
_local2.blurY = 12;
_local2.alpha = 0.6;
_local2.strength = 6;
_local2.color = 16777215 /* 0xFFFFFF */;
_local2.overwrite = true;
opts_over = new Object();
opts_over.glowFilter = _local2;
var _local4 = new Object();
_local4.blurX = 12;
_local4.blurY = 12;
_local4.alpha = 0.6;
_local4.strength = 6;
_local4.color = 16750899 /* 0xFF9933 */;
_local4.overwrite = true;
opts_press = new Object();
opts_press.glowFilter = _local4;
var _local3 = new Object();
_local3.blurX = 0;
_local3.blurY = 0;
_local3.alpha = 0;
_local3.strength = 0;
_local3.overwrite = true;
opts_none = new Object();
opts_none.glowFilter = _local3;
opts_disabled = new Object();
opts_disabled.glowFilter = _local3;
}
function disable() {
gs.TweenFilterLite.to(this, 0.1, opts_disabled);
_alpha = 20;
}
function enable() {
_alpha = 100;
}
function onRollOver() {
if (is_enabled == false) {
disable();
return(undefined);
}
enable();
gs.TweenFilterLite.to(this, 0.1, opts_over);
}
function onRollOut() {
if (is_enabled == false) {
disable();
return(undefined);
}
enable();
gs.TweenFilterLite.to(this, 0.8, opts_none);
}
function onPress() {
if (is_enabled == false) {
disable();
return(undefined);
}
enable();
gs.TweenFilterLite.to(this, 0.05, opts_press);
whenPressed();
}
function onRelease() {
if (is_enabled == false) {
disable();
return(undefined);
}
enable();
gs.TweenFilterLite.to(this, 0.05, opts_over);
}
function onReleaseOutside() {
if (is_enabled == false) {
disable();
return(undefined);
}
enable();
gs.TweenFilterLite.to(this, 0.8, opts_none);
}
var is_enabled = true;
}
Symbol 1285 MovieClip [__Packages.mods.ModValueString] Frame 0
class mods.ModValueString extends mods.ModValue
{
var theString, the_value, onChange;
function ModValueString () {
super();
}
function onLoad() {
super.onLoad();
var _local3 = mx.utils.Delegate.create(this, valueChanged);
theString.addEventListener("change", _local3);
}
function get value() {
return(the_value);
}
function set value(new_val) {
the_value = new_val;
theString.__set__text(new_val.toString());
//return(value);
}
function valueChanged() {
the_value = theString.text;
onChange();
}
function valueSetAfter() {
super.valueSetAfter();
theString.__set__text(the_value.toString());
}
var restrict = "0-9.\\-";
var setup_after = true;
}
Symbol 1286 MovieClip [__Packages.MiniMap] Frame 0
class MiniMap extends RoadManager
{
var the_map_name, _parent, map_layouts, the_road, createEmptyMovieClip, getNextHighestDepth, the_map, line_colour, map_bases, map_names;
function MiniMap () {
super();
the_map_name = "No Map";
}
function onLoad() {
var _local2 = _parent._parent._name;
if (map_layouts[_local2]) {
buildMap(_local2);
}
}
function buildMapFromData(map_data) {
if (the_road && (the_road._name)) {
the_road.removeMovieClip();
}
the_road = createEmptyMovieClip("TheRoad", getNextHighestDepth());
the_road._x = 0;
the_road._y = 0;
the_map = map_data.name;
var _local6 = map_data.road;
var _local10 = map_data.base;
the_map_name = map_data.name;
var _local7 = 0;
for (var _local2 in _local6) {
_local7++;
}
the_road.lineStyle(4, line_colour, 100);
var _local3 = _local6[0];
var _local5 = (_local3.x / map_div) + 4;
var _local4 = (_local3.y / map_div) + 4;
the_road.moveTo(_local5, _local4);
var _local2 = 1;
while (_local2 < _local7) {
_local3 = _local6[_local2];
_local5 = (_local3.x / map_div) + 4;
_local4 = (_local3.y / map_div) + 4;
the_road.lineTo(_local5, _local4);
_local2++;
}
_local5 = (_local10.x / map_div) + 4;
_local4 = (_local10.y / map_div) + 4;
var _local9 = (_local5 - 4) + 4;
var _local8 = (_local4 - 3) + 4;
var _local12 = (_local5 + 4) + 4;
var _local11 = (_local4 + 3) + 4;
the_road.moveTo(_local9, _local8);
the_road.lineStyle(1, 6710886, 50);
the_road.beginFill(16724787, 75);
the_road.lineTo(_local12, _local8);
the_road.lineTo(_local12, _local11);
the_road.lineTo(_local9, _local11);
the_road.lineTo(_local9, _local8);
the_road.endFill();
}
function buildMap(which_map, map_custom) {
if (the_road && (the_road._name)) {
the_road.removeMovieClip();
}
if (which_map == undefined) {
return(noMap());
}
the_road = createEmptyMovieClip("TheRoad", getNextHighestDepth());
the_road._x = 0;
the_road._y = 0;
the_map = which_map;
var _local5 = map_layouts[the_map];
var _local3 = map_bases[the_map];
the_map_name = map_names[the_map];
if (map_custom == true) {
var _local6 = SharedObject.getLocal("onslaught");
var _local2 = _local6.data.MapsSaved[which_map];
_local3 = _local2.base;
_local5 = _local2.road;
the_map_name = which_map;
}
var _local2 = new Object();
_local2.road = _local5;
_local2.base = _local3;
_local2.name = the_map_name;
return(buildMapFromData(_local2));
}
function noMap() {
the_road.removeMovieClip();
the_map_name = "No Map";
return(false);
}
var map_x = 72;
var map_y = 48;
var map_div = 11;
}
Symbol 1287 MovieClip [__Packages.WeaponRack] Frame 0
class WeaponRack extends OnslaughtManager
{
var item_list, item_list_by_type, getNextHighestDepth, attachMovie;
function WeaponRack () {
super();
item_list = new Array();
item_list_by_type = new Array();
}
function rackItemAdd(item_id, item_cost, item_type, populate) {
var _local4 = "WeaponRackItem";
var _local5 = getNextHighestDepth();
var _local6 = _local4 + _local5;
var _local2 = new Object();
_local2.item_cost = item_cost;
_local2.item_id = item_id;
_local2.item_type = item_type;
_local2._x = rackSize() * item_width;
_local2._y = 0;
var _local3 = attachMovie(_local4, _local6, _local5, _local2);
item_list.push(_local3);
item_list_by_type[item_type] = _local3;
if (populate == true) {
_local3.itemPopulate();
}
item_total++;
}
function rackItemType(item_num) {
var _local2 = item_list[item_num];
return(_local2.item_type);
}
function rackItemSubType(item_num) {
var _local2 = item_list[item_num];
return(_local2.turret.turret_subtype);
}
function rackSize() {
return(item_total);
}
function rackEmpty() {
var _local2;
for (var _local3 in item_list) {
_local2 = item_list[_local3];
_local2.removeMovieClip();
}
item_list = new Array();
item_list_by_type = new Array();
item_total = 0;
}
function rackReset(populate) {
rackEmpty();
var _local4 = new Array();
var _local3;
for (_local3 in _root.Game.turrets_available) {
if (_root.Game.turrets_available[_local3] == true) {
_local4.unshift(_local3);
}
}
for (var _local6 in _local4) {
_local3 = _local4[_local6];
rackItemAdd("Turret" + _local3, _root.Game.turrets_cost[_local3], _local3, populate);
}
}
function rackTypeRange(the_type) {
var _local2 = item_list_by_type[the_type];
if (_local2) {
return(_local2.turret.weapon_range);
}
return(undefined);
}
var item_width = 48;
var item_height = 50;
var item_total = 0;
}
Symbol 1288 MovieClip [__Packages.WeaponRackItem] Frame 0
class WeaponRackItem extends OnslaughtManager
{
var Hover, getNextHighestDepth, turret, ItemPoint, ItemCost;
function WeaponRackItem () {
super();
Hover._visible = false;
}
function itemPopulate() {
var _local3 = item_id;
var _local5 = getNextHighestDepth();
var _local4 = ("WeaponRackItem" + _local3) + _local5;
var _local2 = new Object();
_local2.active = false;
_local2._rotation = 60;
turret = ItemPoint.attachMovie(_local3, _local4, 0, _local2);
ItemCost.text = "$" + item_cost;
can_build = true;
if (item_tooltip != "") {
org.bigcrunch.ToolTip.install(turret, item_tooltip, 400);
}
turret.onPress = mx.utils.Delegate.create(this, onClick);
}
function itemReset() {
ItemCost.text = "";
can_build = false;
var _local2 = "WeaponRackPoint";
var _local3 = getNextHighestDepth();
var _local4 = _local2 + _local3;
ItemPoint.removeMovieClip();
}
function onClick() {
if (can_build) {
var _local3 = new Object();
_local3.turret_range = turret.weapon_range;
_local3.turret_type = item_type;
_local3.turret_cost = item_cost;
_root.Game.buildTry(_local3);
SoundPlayer.play("ClickBuild");
}
}
var item_cost = 999;
var item_id = "TurretBlue";
var item_type = "Blue";
var item_tooltip = undefined;
var can_build = false;
}
Symbol 1289 MovieClip [__Packages.org.bigcrunch.ToolTip] Frame 0
class org.bigcrunch.ToolTip
{
static var _text, label, _cont, _caller, _mouseListener, showTimer, hideTimer, shadow, bg;
function ToolTip () {
}
static function set text(_t) {
_text = _t;
//return(text);
}
static function get text() {
return(label.text);
}
static function get active() {
return(_cont._visible);
}
static function set caller(_c) {
_caller = _c;
//return(caller);
}
static function get caller() {
return(_caller);
}
static function show(_t, time) {
if (time && (time > 0)) {
setText((_t ? (_t) : (_text)));
_mouseListener.show = mx.utils.Delegate.create(getInstance(), show);
_mouseListener.hide = mx.utils.Delegate.create(getInstance(), hide);
showTimer = setInterval(_mouseListener, "show", time);
return(undefined);
}
clearInterval(showTimer);
clearInterval(hideTimer);
hideTimer = setInterval(_mouseListener, "hide", hide_delay);
Mouse.addListener(_mouseListener);
_mouseListener.onMouseMove = mx.utils.Delegate.create(getInstance(), setToolTipToMouse);
setToolTipToMouse();
_cont._visible = true;
}
static function hide() {
Mouse.removeListener(_mouseListener);
delete _mouseListener.onMouseMove;
_cont._visible = false;
clearInterval(showTimer);
clearInterval(hideTimer);
}
static function getInstance() {
if (_instance == undefined) {
_instance = new org.bigcrunch.ToolTip();
init();
}
return(_instance);
}
static function init() {
_cont = _root.createEmptyMovieClip("__tooltip_mc", 9000);
shadow = _cont.createEmptyMovieClip("shadow", 1);
bg = _cont.createEmptyMovieClip("bg", 2);
_cont.createTextField("label", 3, 5, 0, 200, 20);
label = _cont.label;
label.autoSize = "left";
label.html = true;
label.selectable = false;
label.multiline = true;
label.wordWrap = true;
_mouseListener = new Object();
hide();
}
static function setText(_t) {
label.htmlText = ("<font face=\"Verdana\" size=\"10\">" + _t) + "</font>";
resetBG();
}
static function setToolTipToMouse(Void) {
_cont._x = _root._xmouse + 15;
_cont._y = _root._ymouse;
if ((_cont._x + bg._width) > Stage.width) {
_cont._x = (_root._xmouse - bg._width) - 5;
}
if ((_cont._y + bg._height) > Stage.height) {
_cont._y = (_root._ymouse - bg._height) - 5;
}
updateAfterEvent();
}
static function resetBG(Void) {
var _local2 = label.textWidth + 12;
var _local1 = label.textHeight + 4;
bg.clear();
bg.lineStyle(0, 3355443, 80);
bg.beginFill(16777164, 80);
bg.moveTo(0, 0);
bg.lineTo(0, _local1);
bg.lineTo(_local2, _local1);
bg.lineTo(_local2, 0);
bg.lineTo(0, 0);
bg.endFill();
shadow.clear();
shadow.beginFill(3355443, 60);
shadow.moveTo(2, 2);
shadow.lineTo(2, _local1 + 2);
shadow.lineTo(_local2 + 2, _local1 + 2);
shadow.lineTo(_local2 + 2, 2);
shadow.lineTo(2, 2);
shadow.endFill();
}
static function install(mc, text, delay) {
mc.toolTipText = (text ? (text) : "");
mc.toolTipDelay = (delay ? (delay) : 500);
mc.oldOnRollOver = mc.onRollOver;
mc.onRollOver = function () {
if (this.oldOnRollOver) {
this.oldOnRollOver();
}
if (this.toolTipText != "") {
org.bigcrunch.ToolTip.show(this.toolTipText, this.toolTipDelay);
}
};
mc.oldOnRollOut = mc.onRollOut;
mc.onRollOut = function () {
if (this.oldOnRollOut) {
this.oldOnRollOut();
}
org.bigcrunch.ToolTip.hide();
};
}
static var _instance = getInstance();
static var hide_delay = 4500;
}
Symbol 1290 MovieClip [__Packages.BuildShape] Frame 0
class BuildShape extends OnslaughtObject
{
var _x, _y, TurretRange, CanBuild, CannotAfford, CannotBuild, build_areas, BuildArea, trigDeg2Rad, getNextHighestDepth, attachMovie, removeMyself, trigDistanceTo, turret_limit;
function BuildShape () {
super();
_x = _root._xmouse;
_y = _root._ymouse;
_visible = true;
can_build = false;
can_afford = false;
TurretRange._visible = false;
CanBuild._visible = false;
CannotAfford._visible = false;
CannotBuild._visible = true;
if (turret_range > 0) {
TurretRange._visible = true;
TurretRange._width = turret_range * 2;
TurretRange._height = turret_range * 2;
}
build_areas = new Array();
var _local10 = (BuildArea._width / 2) + 1;
var _local14 = (BuildArea._height / 2) + 1;
var _local8 = 0;
var _local9 = 0;
build_areas.push(new Array(_local8, _local9 + _local14));
build_areas.push(new Array(_local8, _local9 - _local14));
build_areas.push(new Array(_local8 + _local10, _local9));
build_areas.push(new Array(_local8 - _local10, _local9));
var _local12 = Math.sin(trigDeg2Rad(45)) * _local10;
var _local11 = Math.cos(trigDeg2Rad(45)) * _local10;
build_areas.push(new Array(_local8 + _local12, _local9 + _local11));
build_areas.push(new Array(_local8 + _local12, _local9 - _local11));
build_areas.push(new Array(_local8 - _local12, _local9 + _local11));
build_areas.push(new Array(_local8 - _local12, _local9 - _local11));
if (show_points) {
var _local4;
var _local6;
var _local7;
var _local5;
for (var _local13 in build_areas) {
_local4 = "BuildPoint";
_local6 = getNextHighestDepth();
_local7 = _local4 + _local6;
_local5 = attachMovie(_local4, _local7, _local6);
_local5._x = build_areas[_local13][0];
_local5._y = build_areas[_local13][1];
}
}
}
function onEnterFrame() {
update();
}
function onRelease() {
buildHere();
if (Key.isDown(16)) {
} else {
removeMyself();
}
}
function update() {
_x = _root._xmouse;
_y = _root._ymouse;
can_build = buildCheck();
if (GameStatus.game_paused || (GameStatus.game_over)) {
CanBuild._visible = false;
CannotAfford._visible = false;
CannotBuild._visible = true;
} else if (can_build == true) {
CanBuild._visible = true;
CannotAfford._visible = false;
CannotBuild._visible = false;
} else if (can_afford == false) {
CanBuild._visible = false;
CannotAfford._visible = true;
CannotBuild._visible = false;
} else {
CanBuild._visible = false;
CannotAfford._visible = false;
CannotBuild._visible = true;
}
if (!allIsOk()) {
buildCancel();
}
if (GameStatus.show_combo_in_range != true) {
return(undefined);
}
var _local6 = TurretManager.turrets;
var _local3;
var _local5;
var _local4;
var _local8 = 70;
var _local7;
var _local12 = _x - _local8;
var _local10 = _x + _local8;
var _local11 = _y - _local8;
var _local9 = _y + _local8;
for (var _local13 in _local6) {
_local3 = _local6[_local13];
_local5 = _local3._x;
_local4 = _local3._y;
if ((((_local5 < _local12) || (_local5 > _local10)) || (_local4 < _local11)) || (_local4 > _local9)) {
_local3.comboInRangeHide();
} else {
_local7 = trigDistanceTo(this, _local3);
if (_local7 < _local8) {
_local3.comboInRangeShow();
} else {
_local3.comboInRangeHide();
}
}
}
}
function allIsOk() {
return(true);
}
function buildCheck() {
if (GameStatus.game_over) {
return(false);
}
if (GameStatus.game_paused) {
return(false);
}
if (!_root.Game.cashAvailable(turret_cost)) {
can_afford = false;
return(false);
}
can_afford = true;
if (!_root.PlayArea.hitTest(_x, _y, false)) {
return(false);
}
if (turret_limit != undefined) {
if (_root.Game.TurretManager.turret_count >= turret_limit) {
return(false);
}
}
var _local8 = TurretManager.turrets;
var _local7 = BuildArea._width;
var _local6 = buildCheckOtherTurrets(_local8, _local7);
if (_local6 == false) {
return(false);
}
var _local4;
var _local3;
for (var _local5 in build_areas) {
_local4 = _x + build_areas[_local5][0];
_local3 = _y + build_areas[_local5][1];
if (_root.Game.RoadManager.hitTest(_local4, _local3, true)) {
return(false);
}
}
return(true);
}
function buildCheckOtherTurrets(turret_list, the_range) {
var _local3;
var _local2;
for (var _local5 in turret_list) {
_local3 = turret_list[_local5];
_local2 = trigDistanceTo(this, _local3);
if (_local2 < the_range) {
return(false);
}
}
return(true);
}
function buildHere() {
var _local3 = TurretManager.turrets;
var _local4;
for (var _local6 in _local3) {
_local4 = _local3[_local6];
_local4.comboInRangeHide();
}
if (GameStatus.game_over) {
return(false);
}
if (GameStatus.game_paused) {
return(false);
}
var _local8 = buildCheck();
if (_local8 != true) {
return(false);
}
if (!_root.Game.cashSpend(turret_cost)) {
return(false);
}
var _local7 = "Turret" + turret_type;
var _local5 = new Object();
_local5._x = _x;
_local5._y = _y;
_local5.turret_type = turret_type;
_local5.cash_value = turret_cost;
_local5.active = true;
_root.Game.turretNew(_local7, _local5);
return(true);
}
function buildCancel() {
var _local2 = TurretManager.turrets;
var _local3;
for (var _local4 in _local2) {
_local3 = _local2[_local4];
_local3.comboInRangeHide();
}
removeMyself();
}
var turret_range = 0;
var turret_cost = 0;
var turret_type = 0;
var can_build = false;
var can_afford = false;
var show_points = false;
var _visible = false;
}
Symbol 1291 MovieClip [__Packages.MoveShape] Frame 0
class MoveShape extends BuildShape
{
var turret_cost, the_turret, trigDistanceTo, buildCheck, _x, _y, effectNew, removeMyself;
function MoveShape () {
super();
turret_cost = 500;
}
function allIsOk() {
if (the_turret && (the_turret._name)) {
return(true);
}
return(false);
}
function buildCheckOtherTurrets(turret_list, the_range) {
var _local2;
var _local3;
for (var _local5 in turret_list) {
_local2 = turret_list[_local5];
if (_local2 == the_turret) {
continue;
}
_local3 = trigDistanceTo(this, _local2);
if (_local3 < the_range) {
return(false);
}
}
return(true);
}
function buildHere() {
var _local3 = TurretManager.turrets;
var _local4;
for (var _local7 in _local3) {
_local4 = _local3[_local7];
_local4.comboInRangeHide();
}
if (GameStatus.game_over) {
return(false);
}
if (GameStatus.game_paused) {
return(false);
}
var _local8 = buildCheck();
if (_local8 != true) {
return(false);
}
if (!_root.Game.cashSpend(turret_cost)) {
return(false);
}
_root.Game.TurretManager.turretSelect(the_turret);
var _local5 = new Object();
the_turret.active = false;
_local5.target_obj = the_turret;
_local5.target_alpha = 0;
_local5.effect_duration = 130;
_local5.final_x = _x;
_local5.final_y = _y;
_local5.onComplete = function () {
this.target_obj._x = this.final_x;
this.target_obj._y = this.final_y;
this.target_obj._alpha = 0;
_root.Game.TurretManager.turretMoveNotify(this.target_obj);
var _local3 = new Object();
_local3.target_obj = this.target_obj;
_local3.target_alpha = 100;
_local3.effect_duration = 130;
_local3.onComplete = function () {
this.target_obj.active = true;
this.target_obj.reactivate();
_root.Game.TurretManager.turretSelect(this.target_obj);
};
this.target_obj.effect = this.effectNew(_local3);
SoundPlayer.play("Build", this.target_obj);
};
the_turret.effect = effectNew(_local5);
SoundPlayer.play("Sell", this);
removeMyself();
return(true);
}
}
Symbol 1292 MovieClip [__Packages.TargetMode] Frame 0
class TargetMode extends OnslaughtObject
{
var _y, effect, effectNew;
function TargetMode () {
super();
}
function onLoad() {
var _local2 = new Object();
_local2.target_y = _y - 40;
_local2.target_alpha = 0;
_local2.effect_duration = 1100;
_local2.target_obj = this;
_local2.onComplete = function () {
this.target_obj.removeMyself();
};
effect = effectNew(_local2);
}
}
Symbol 1293 MovieClip [__Packages.BarrattBrass] Frame 0
class BarrattBrass extends Projectile
{
var interval, effect, effectNew;
function BarrattBrass () {
super();
}
function onLoad() {
interval = setInterval(this, "brassRemove", 8000);
}
function brassRemove() {
var _local2 = new Object();
_local2.target_obj = this;
_local2.target_alpha = 0;
_local2.from = this;
_local2.effect_duration = 1000;
_local2.onComplete = function () {
this.from.removeMyself();
};
effect = effectNew(_local2);
}
}
Symbol 1294 MovieClip [__Packages.PlayerBase] Frame 0
class PlayerBase extends OnslaughtObject
{
function PlayerBase () {
super();
}
function onLoad() {
resetLives();
}
function lifeLost(life_num) {
var _local4 = "Life" + life_num;
var _local3 = this[_local4];
if (_local3) {
_local3.killed();
if (life_num == 1) {
SoundPlayer.play("BaseDead");
SoundPlayer.play("BaseHit");
} else if (life_num == 2) {
SoundPlayer.play("BaseWarn1");
SoundPlayer.play("BaseHit");
} else if (life_num == 3) {
SoundPlayer.play("BaseWarn2");
SoundPlayer.play("BaseHit");
} else if (life_num == 4) {
SoundPlayer.play("BaseWarn3");
SoundPlayer.play("BaseHit");
} else if (life_num > 4) {
SoundPlayer.play("BaseHit");
}
}
}
function resetLives() {
var _local4;
var _local3;
var _local2 = 1;
while (_local2 <= 10) {
_local4 = "Life" + _local2;
_local3 = this[_local4];
if (_local3) {
_local3.alive();
}
_local2++;
}
}
}
Symbol 1295 MovieClip [__Packages.BuildWaypoint] Frame 0
class BuildWaypoint extends BuildShape
{
var _x, _y, can_build, CanBuild, CannotBuild, removeMyself;
function BuildWaypoint () {
super();
}
function update() {
_x = _root._xmouse;
_y = _root._ymouse;
can_build = buildCheck();
if (can_build == true) {
CanBuild._visible = true;
CannotBuild._visible = false;
} else {
CanBuild._visible = false;
CannotBuild._visible = true;
}
}
function buildCheck() {
if (!_root.PlayArea.hitTest(_x, _y, false)) {
return(false);
}
return(true);
}
function onRelease() {
buildHere();
removeMyself();
}
function onMouseUp() {
onRelease();
}
function buildHere() {
var _local4 = buildCheck();
if (_local4 != true) {
return(false);
}
var _local3 = new Object();
_local3._x = _x;
_local3._y = _y;
_root.Game.waypointNew(_local3);
return(true);
}
}
Symbol 1296 MovieClip [__Packages.TutorialShow] Frame 0
class TutorialShow extends OnslaughtObject
{
var interval, _visible, removeMyself;
function TutorialShow () {
super();
interval = setInterval(this, "update", blink_duration);
}
function update() {
blink_amount++;
if (_visible == true) {
_visible = false;
} else {
_visible = true;
}
if (blink_amount > blink_total) {
clearInterval(interval);
removeMyself();
}
}
var blink_amount = 0;
var blink_total = 7;
var blink_duration = 400;
}
Symbol 1297 MovieClip [__Packages.GameSettings] Frame 0
class GameSettings extends OnslaughtObject
{
var _x, _y, _alpha, TitleBar, CloseButton, Settings;
function GameSettings () {
super();
_x = GameStatus.settings_panel_x;
_y = GameStatus.settings_panel_y;
_alpha = 75;
TitleBar.onPress = function () {
this._parent.startDrag();
};
TitleBar.onRelease = function () {
this._parent.stopDrag();
GameStatus.settings_panel_x = this._parent._x;
GameStatus.settings_panel_y = this._parent._y;
};
CloseButton.onPress = function () {
this._parent.prefsSaveAndApply();
_root.Game.pauseOff();
this._parent.removeMovieClip();
};
_root.Game.pauseOn();
}
function prefsSaveAndApply() {
var _local3 = SharedObject.getLocal("onslaught");
_local3.data.PrefPlayerName = Settings.__get__content().PrefPlayerName.text;
_local3.data.PrefLeagueID = Settings.__get__content().PrefLeagueID.text;
_local3.data.PrefLeaguePass = Settings.__get__content().PrefLeaguePass.text;
_local3.data.PrefLeagueSubmit = Settings.__get__content().PrefLeagueSubmit.selected;
_local3.data.PrefAccountLogin = Settings.__get__content().PrefAccountLogin.text;
_local3.data.PrefAccountPass = Settings.__get__content().PrefAccountPass.text;
if (_local3.data.PrefPlayerName == undefined) {
_local3.data.PrefPlayerName = "";
}
if (_local3.data.PrefLeagueID == undefined) {
_local3.data.PrefLeagueID = "";
}
if (_local3.data.PrefLeaguePass == undefined) {
_local3.data.PrefLeaguePass = "";
}
if (_local3.data.PrefAccountLogin == undefined) {
_local3.data.PrefAccountLogin = "";
}
if (_local3.data.PrefAccountPass == undefined) {
_local3.data.PrefAccountPass = "";
}
_local3.data.PrefWaveSpace = Settings.__get__content().PrefWaveSpace.value;
_local3.data.PrefWaveFollow = Settings.__get__content().PrefWaveFollow.selected;
_local3.data.PrefWaveRemember = Settings.__get__content().PrefWaveRemember.selected;
_local3.data.PrefSound = Settings.__get__content().PrefSound.selected;
_local3.data.PrefSoundVolume = Settings.__get__content().PrefSoundVolume.value;
_local3.data.PrefSoundPan = Settings.__get__content().PrefSoundPan.value;
_local3.data.PrefSoundNextWave = Settings.__get__content().PrefSoundNextwave.selected;
_local3.data.PrefSmoke = Settings.__get__content().PrefSmoke.selected;
_local3.data.PrefSmokeMax = Settings.__get__content().PrefSmokeMax.value;
_local3.data.PrefQuality = Settings.__get__content().PrefQuality.value;
_local3.data.PrefTimeScale = Settings.__get__content().PrefTimeScale.value;
_local3.flush();
_root.Game.settingsApply();
}
}
Symbol 292 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 177 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 _local5 = "down";
if (depthFlag == kBottom) {
_local5 = "up";
}
var _local6;
if (_local3[_local2] != undefined) {
_local6 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local5);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local6 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local6, _local3, _local5);
}
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 _local5 = "down";
if (depthFlag == kBottom) {
_local5 = "up";
}
var _local6;
if (_local3[_local2] != undefined) {
_local6 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local5);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local6 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local6, _local3, _local5);
}
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(MovieClip(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 _local1 = targetDepth;
var _local2 = targetDepth;
if (direction == "down") {
while (depthTable[_local2] != undefined) {
_local2--;
}
return(_local2);
}
while (depthTable[_local1] != undefined) {
_local1++;
}
return(_local1);
}
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 358 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 173 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 293 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 _local4 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth);
if ((__hScrollPolicy == "on") || ((_local4 < colCount) && (__hScrollPolicy == "auto"))) {
if ((hScroller == undefined) || (specialHScrollCase)) {
delete specialHScrollCase;
hScroller = mx.controls.scrollClasses.ScrollBar(createObject("HScrollBar", "hSB", 1001));
hScroller.__set__lineScrollSize(20);
hScroller.scrollHandler = scrollProxy;
hScroller.__set__scrollPosition(__hPosition);
scrollAreaChanged = true;
}
if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local4)) || (scrollAreaChanged)) {
hScroller.setScrollProperties(_local4, 0, colCount - _local4);
viewableColumns = _local4;
numberOfCols = colCount;
columnWidth = colWidth;
}
} else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) {
hScroller.removeMovieClip();
delete hScroller;
scrollAreaChanged = true;
}
if (heightPadding == undefined) {
heightPadding = 0;
}
var _local5 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight);
var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0;
if ((__vScrollPolicy == "on") || ((_local5 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) {
if (vScroller == undefined) {
vScroller = mx.controls.scrollClasses.ScrollBar(createObject("VScrollBar", "vSB", 1002));
vScroller.scrollHandler = scrollProxy;
vScroller.__set__scrollPosition(__vPosition);
scrollAreaChanged = true;
rowH = 0;
}
if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local5 + oldRndUp))) || (scrollAreaChanged)) {
vScroller.setScrollProperties(_local5, 0, (rwCount - _local5) + _local8);
viewableRows = _local5;
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 = mx.controls.scrollClasses.ScrollBar(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 361 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 359 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 360 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 294 MovieClip [__Packages.mx.containers.ScrollPane] Frame 0
class mx.containers.ScrollPane extends mx.core.ScrollView
{
var _total, _loaded, destroyChildAt, createChild, __scrollContent, spContentHolder, hScroller, vScroller, __get__hScrollPolicy, __vScrollPolicy, __get__vScrollPolicy, tabEnabled, keyDown, mask_mc, hPosition, __get__maxHPosition, vPosition, __get__maxVPosition, __hPosition, __vPosition, invalidate;
function ScrollPane () {
super();
}
function getBytesTotal() {
return(_total);
}
function getBytesLoaded() {
return(_loaded);
}
function set contentPath(scrollableContent) {
if (!initializing) {
if (scrollableContent == undefined) {
destroyChildAt(0);
} else {
if (this[mx.core.View.childNameBase + 0] != undefined) {
destroyChildAt(0);
}
createChild(scrollableContent, "spContentHolder");
}
}
__scrollContent = scrollableContent;
//return(contentPath);
}
function get contentPath() {
return(__scrollContent);
}
function get content() {
return(spContentHolder);
}
function setHPosition(position) {
if ((position <= hScroller.maxPos) && (position >= hScroller.minPos)) {
super.setHPosition(position);
spContentHolder._x = -position;
}
}
function setVPosition(position) {
if ((position <= vScroller.maxPos) && (position >= vScroller.minPos)) {
super.setVPosition(position);
spContentHolder._y = -position;
}
}
function get vLineScrollSize() {
return(__vLineScrollSize);
}
function set vLineScrollSize(vLineSize) {
__vLineScrollSize = vLineSize;
vScroller.__set__lineScrollSize(vLineSize);
//return(vLineScrollSize);
}
function get hLineScrollSize() {
return(__hLineScrollSize);
}
function set hLineScrollSize(hLineSize) {
__hLineScrollSize = hLineSize;
hScroller.__set__lineScrollSize(hLineSize);
//return(hLineScrollSize);
}
function get vPageScrollSize() {
return(__vPageScrollSize);
}
function set vPageScrollSize(vPageSize) {
__vPageScrollSize = vPageSize;
vScroller.__set__pageScrollSize(vPageSize);
//return(vPageScrollSize);
}
function get hPageScrollSize() {
return(__hPageScrollSize);
}
function set hPageScrollSize(hPageSize) {
__hPageScrollSize = hPageSize;
hScroller.__set__pageScrollSize(hPageSize);
//return(hPageScrollSize);
}
function set hScrollPolicy(policy) {
__hScrollPolicy = policy.toLowerCase();
setScrollProperties(spContentHolder._width, 1, spContentHolder._height, 1);
//return(__get__hScrollPolicy());
}
function set vScrollPolicy(policy) {
__vScrollPolicy = policy.toLowerCase();
setScrollProperties(spContentHolder._width, 1, spContentHolder._height, 1);
//return(__get__vScrollPolicy());
}
function get scrollDrag() {
return(__scrollDrag);
}
function set scrollDrag(s) {
__scrollDrag = s;
if (__scrollDrag) {
spContentHolder.useHandCursor = true;
spContentHolder.onPress = function () {
this._parent.startDragLoop();
};
spContentHolder.tabEnabled = false;
spContentHolder.onRelease = (spContentHolder.onReleaseOutside = function () {
delete this.onMouseMove;
});
__scrollDrag = true;
} else {
delete spContentHolder.onPress;
spContentHolder.tabEnabled = false;
spContentHolder.tabChildren = true;
spContentHolder.useHandCursor = false;
__scrollDrag = false;
}
//return(scrollDrag);
}
function init(Void) {
super.init();
tabEnabled = true;
keyDown = _onKeyDown;
}
function createChildren(Void) {
super.createChildren();
mask_mc._visible = false;
initializing = false;
if ((__scrollContent != undefined) && (__scrollContent != "")) {
contentPath = (__scrollContent);
}
}
function size(Void) {
super.size();
setScrollProperties(spContentHolder._width, 1, spContentHolder._height, 1);
hPosition = Math.min(hPosition, __get__maxHPosition());
vPosition = Math.min(vPosition, __get__maxVPosition());
}
function setScrollProperties(columnCount, columnWidth, rowCount, rowHeight) {
super.setScrollProperties(columnCount, columnWidth, rowCount, rowHeight);
hScroller.__set__lineScrollSize(__hLineScrollSize);
hScroller.__set__pageScrollSize(__hPageScrollSize);
vScroller.__set__lineScrollSize(__vLineScrollSize);
vScroller.__set__pageScrollSize(__vPageScrollSize);
}
function onScroll(scrollEvent) {
spContentHolder._x = -__hPosition;
spContentHolder._y = -__vPosition;
super.onScroll(scrollEvent);
}
function childLoaded(obj) {
super.childLoaded(obj);
onComplete();
}
function onComplete(Void) {
setScrollProperties(spContentHolder._width, 1, spContentHolder._height, 1);
hPosition = 0;
vPosition = 0;
scrollDrag = (__scrollDrag);
invalidate();
}
function startDragLoop(Void) {
spContentHolder.lastX = spContentHolder._xmouse;
spContentHolder.lastY = spContentHolder._ymouse;
spContentHolder.onMouseMove = function () {
var _local5 = this.lastX - this._xmouse;
var _local4 = this.lastY - this._ymouse;
_local5 = _local5 + this._parent.hPosition;
_local4 = _local4 + this._parent.vPosition;
var _local3 = this._parent.getViewMetrics();
var _local7 = (this._parent.__height - _local3.top) - _local3.bottom;
var _local6 = (this._parent.__width - _local3.left) - _local3.right;
this._parent.__hPosition = Math.max(0, Math.min(_local5, this._width - _local6));
this._parent.__vPosition = Math.max(0, Math.min(_local4, this._height - _local7));
this._parent.hScroller.scrollPosition = this._parent.__hPosition;
this._x = -this._parent.hPosition;
this._parent.vScroller.scrollPosition = this._parent.__vPosition;
this._y = -this._parent.vPosition;
super.dispatchEvent({type:"scroll"});
};
}
function dispatchEvent(o) {
o.target = this;
_total = o.total;
_loaded = o.current;
super.dispatchEvent(o);
}
function refreshPane(Void) {
contentPath = (__scrollContent);
}
function _onKeyDown(e) {
if (((hScroller != undefined) && (__hPosition <= hScroller.maxPos)) && (__hPosition >= hScroller.minPos)) {
if (e.code == 37) {
hPosition = hPosition - hLineScrollSize;
} else if (e.code == 39) {
hPosition = hPosition + hLineScrollSize;
}
}
if (((vScroller != undefined) && (__vPosition <= vScroller.maxPos)) && (__vPosition >= vScroller.minPos)) {
if (e.code == 33) {
vPosition = vPosition - vPageScrollSize;
} else if (e.code == 34) {
vPosition = vPosition + vPageScrollSize;
}
if (e.code == 40) {
vPosition = vPosition + vLineScrollSize;
} else if (e.code == 38) {
vPosition = vPosition - vLineScrollSize;
}
}
if (e.code == 36) {
vPosition = vScroller.minPos;
} else if (e.code == 35) {
vPosition = vScroller.maxPos;
}
}
static var symbolName = "ScrollPane";
static var symbolOwner = mx.containers.ScrollPane;
var className = "ScrollPane";
static var version = "2.0.2.127";
var __hScrollPolicy = "auto";
var __scrollDrag = false;
var __vLineScrollSize = 5;
var __hLineScrollSize = 5;
var __vPageScrollSize = 20;
var __hPageScrollSize = 20;
var clipParameters = {contentPath:1, scrollDrag:1, hScrollPolicy:1, vScrollPolicy:1, vLineScrollSize:1, hLineScrollSize:1, vPageScrollSize:1, hPageScrollSize:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.containers.ScrollPane.prototype.clipParameters, mx.core.ScrollView.prototype.clipParameters);
var initializing = true;
}
Symbol 1298 MovieClip [__Packages.Slider] Frame 0
class Slider extends MovieClip
{
var maxVal, minVal, range, onSlide, onChange, value, obj, _parent, res, snap, trackLength, handle, createEmptyMovieClip, getNextHighestDepth, lineStyle, beginFill, endFill, _xmouse, stopDrag, sliding, fading, _alpha;
function Slider () {
super();
}
static function create(target, depth, args) {
var _local1 = Slider(target.attachMovie(symbolName, "slider" + depth, depth));
_local1.init(args);
return(_local1);
}
function init(args) {
maxVal = args.max;
minVal = args.min;
range = maxVal - minVal;
args.start = (args.start ? (args.start) : 0);
onSlide = args.onSlide;
onChange = args.onChange;
value = Math.min(Math.max(minVal, args.start), maxVal);
(args.objectToCall ? ((obj = args.objectToCall)) : ((obj = _parent)));
(args.trackWidth ? ((trackWidth = args.trackWidth)) : null);
(args.trackHeight ? ((trackHeight = args.trackHeight)) : null);
(args.handleWidth ? ((handleWidth = args.handleWidth)) : null);
(args.handleHeight ? ((handleHeight = args.handleHeight)) : null);
(args.trackFill ? ((trackFill = args.trackFill)) : null);
(args.handleFill ? ((handleFill = args.handleFill)) : null);
(args.trackBorder ? ((trackBorder = args.trackBorder)) : null);
(args.handleBorder ? ((handleBorder = args.handleBorder)) : null);
(args.res ? ((res = args.res)) : undefined);
(args.snap ? ((snap = args.snap)) : undefined);
trackLength = trackWidth - handleWidth;
createHandle();
render();
}
function createHandle() {
handle = createEmptyMovieClip("handle2", getNextHighestDepth());
handle.top = (handle._y = (trackHeight - handleHeight) / 2);
handle.right = trackWidth - handleWidth;
handle.from = this;
handle.onPress = function () {
if (this.from.enabled != true) {
return(undefined);
}
this.startDrag(false, 0, this.top, this.right, this.top);
this.onEnterFrame = function () {
this._parent.updateValue();
};
};
handle.onReleaseOutside = (handle.onRelease = function () {
delete this.onEnterFrame;
this.stopDrag();
this._parent.updateValue();
this._parent.valueChanged();
});
handle._x = ((value - minVal) / range) * trackLength;
}
function render() {
lineStyle(1, trackBorder);
beginFill(trackFill);
drawRect(this, 0, 0, trackWidth, trackHeight);
endFill();
handle.lineStyle(1, handleBorder);
handle.beginFill(handleFill);
drawRect(handle, 0, 0, handleWidth, handleHeight);
handle.endFill();
}
function getValue() {
return(value);
}
function setValue(val) {
if (val != value) {
if ((val >= minVal) && (val <= maxVal)) {
value = val;
} else if (val < minVal) {
value = minVal;
} else if (val > maxVal) {
value = maxVal;
}
handleUpdate();
valueChanged();
}
}
function handleUpdate() {
handle._x = ((value - minVal) / range) * trackLength;
}
function valueChanged() {
obj.onChange(value);
}
function updateValue() {
var _local2 = (handle._x * (range / trackLength)) + minVal;
if (res != undefined) {
_local2 = Math.floor(_local2 * res) / res;
}
if (snap != undefined) {
_local2 = _local2 - (_local2 % snap);
}
value = _local2;
obj[onSlide](value);
}
function onPress() {
var _local2 = _xmouse;
var _local3 = handleWidth / 2;
if ((_local2 >= _local3) && (_local2 <= (trackWidth - _local3))) {
handle._x = _local2 - _local3;
value = ((range * (_local2 - _local3)) / trackWidth) + minVal;
} else if (_local2 < _local3) {
handle._x = 0;
value = minVal;
} else if (_local2 > (trackWidth - _local3)) {
handle._x = trackWidth - handleWidth;
value = maxVal;
}
handle.onPress();
}
function onRelease() {
delete handle.onEnterFrame;
stopDrag();
updateValue();
valueChanged();
}
function onReleaseOutside() {
onRelease();
}
function drawRect(mc, x1, y1, width, height) {
mc.moveTo(x1, y1);
mc.lineTo(x1 + width, y1);
mc.lineTo(x1 + width, y1 + height);
mc.lineTo(x1, y1 + height);
mc.lineTo(x1, y1);
}
function slideTo(new_val) {
sliding = new mx.transitions.Tween(this, "value", mx.transitions.easing.Regular.easeOut, value, new_val, sliding_time, true);
sliding.start();
var _local2 = function () {
this.obj.handleUpdate();
};
sliding.onMotionChanged = _local2;
}
function sliderEnabled(is_on) {
if (enabled != is_on) {
enabled = is_on;
var _local2 = (enabled ? 100 : 25);
delete fading;
fading = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.None.easeNone, _alpha, _local2, sliding_time, true);
fading.start();
}
}
static var symbolName = "__Packages.Slider";
static var symbolLinked = Object.registerClass(symbolName, Slider);
var enabled = true;
var trackHeight = 10;
var trackWidth = 200;
var handleWidth = 10;
var handleHeight = 10;
var trackFill = 14474460;
var handleFill = 10066329;
var trackBorder = 13421772;
var handleBorder = 13421772;
var sliding_time = 0.3;
}
Symbol 1299 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 1300 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 1301 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 1302 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 1303 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 1304 MovieClip [__Packages.PrefData] Frame 0
class PrefData extends MovieClip
{
var PrefPlayerName, PrefLeagueID, PrefLeaguePass, PrefLeagueSubmit, PrefAccountLogin, PrefAccountPass, PrefWaveSpace, PrefWaveFollow, PrefWaveRemember, PrefSound, PrefSoundVolume, PrefSoundPan, PrefSoundNextWave, PrefSmoke, PrefSmokeMax, PrefQuality, PrefTimeScale;
function PrefData () {
super();
}
function onLoad() {
var _local3 = SharedObject.getLocal("onslaught");
_root.Game.settingsSetDefault();
PrefPlayerName.__set__text(_local3.data.PrefPlayerName);
PrefLeagueID.__set__text(_local3.data.PrefLeagueID);
PrefLeaguePass.__set__text(_local3.data.PrefLeaguePass);
PrefLeagueSubmit.selected = _local3.data.PrefLeagueSubmit;
PrefAccountLogin.__set__text(_local3.data.PrefAccountLogin);
PrefAccountPass.__set__text(_local3.data.PrefAccountPass);
PrefWaveSpace.__set__value(_local3.data.PrefWaveSpace);
PrefWaveFollow.selected = _local3.data.PrefWaveFollow;
PrefWaveRemember.selected = _local3.data.PrefWaveRemember;
PrefSound.selected = _local3.data.PrefSound;
PrefSoundVolume.__set__value(_local3.data.PrefSoundVolume);
PrefSoundPan.__set__value(_local3.data.PrefSoundPan);
PrefSoundNextWave.selected = _local3.data.PrefSoundNextWave;
PrefSmoke.selected = _local3.data.PrefSmoke;
PrefSmokeMax.__set__value(_local3.data.PrefSmokeMax);
PrefQuality.removeAll();
PrefQuality.addItem("Low", "low");
PrefQuality.addItem("Medium", "medium");
PrefQuality.addItem("High", "high");
if (_local3.data.PrefQuality == "low") {
PrefQuality.selectedIndex = 0;
} else if (_local3.data.PrefQuality == "medium") {
PrefQuality.selectedIndex = 1;
}
if (_local3.data.PrefQuality == "high") {
PrefQuality.selectedIndex = 2;
}
if (_local3.data.PrefQuality == "autolow") {
PrefQuality.selectedIndex = 3;
}
if (_local3.data.PrefQuality == "autohigh") {
PrefQuality.selectedIndex = 4;
}
PrefQuality.value = _local3.data.PrefQuality;
if (GameStatus.sound_load != true) {
PrefSound.enabled = false;
PrefSoundVolume.enabled = false;
PrefSoundPan.enabled = false;
PrefSoundNextWave.enabled = false;
}
var _local4 = new Object();
_local4.trackWidth = 180;
_local4.trackHeight = 5;
_local4.trackFill = 12303291 /* 0xBBBBBB */;
_local4.handleWidth = 6;
_local4.handleHeight = 15;
_local4.handleBorder = 10066329 /* 0x999999 */;
_local4.handleFill = 15658734 /* 0xEEEEEE */;
_local4.res = 1;
_local4.snap = 5;
_local4.min = 50;
_local4.max = 200;
_local4.start = _local3.data.PrefTimeScale;
PrefTimeScale.init(_local4);
_local3.flush();
}
}
Symbol 399 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 _local3 = function (Void) {
return(this["get" + p]());
};
if (setter) {
_local2 = function (val) {
this["set" + p](val);
};
}
obj.addProperty(propName, _local3, _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 400 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 401 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 420 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 421 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 422 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 423 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(MovieClip(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(MovieClip(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 424 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 1305 MovieClip [__Packages.mapping.MappingClear] Frame 0
class mapping.MappingClear extends OnslaughtObject
{
var ButtonClear;
function MappingClear () {
super();
ButtonClear.__set__label("Clear the map");
}
function onLoad() {
ButtonClear.onPress = function () {
SoundPlayer.play("ClickButton");
_root.Game.mapClear();
};
}
}
Symbol 1306 MovieClip [__Packages.mapping.MappingDelete] Frame 0
class mapping.MappingDelete extends OnslaughtObject
{
var ButtonDelete, ButtonBack;
function MappingDelete () {
super();
}
function onLoad() {
ButtonDelete.onPress = function () {
SoundPlayer.play("ClickButton");
this._parent._parent.MappingLoad.mapRemove();
};
ButtonBack.onPress = function () {
this._parent._parent.ButtonLoad.onClick();
};
}
}
Symbol 1307 MovieClip [__Packages.mapping.MappingLoad] Frame 0
class mapping.MappingLoad extends OnslaughtObject
{
var map_list, ButtonPrev, ButtonNext, ButtonLoad, ButtonDelete, _parent, _visible, MiniMap;
function MappingLoad () {
super();
mapSetup();
map_cur = 0;
}
function mapSetup() {
var _local3 = SharedObject.getLocal("onslaught");
map_list = _local3.data.MapsSaved;
map_total = 0;
for (var _local2 in map_list) {
if (map_list[_local2] != undefined) {
map_total++;
}
}
}
function update() {
mapSetup();
}
function onLoad() {
ButtonPrev.onPress = function () {
SoundPlayer.play("ClickButton");
this._parent.mapPrev();
};
ButtonNext.onPress = function () {
SoundPlayer.play("ClickButton");
this._parent.mapNext();
};
ButtonLoad.onPress = function () {
SoundPlayer.play("ClickButton");
this._parent.mapLoad();
};
ButtonDelete.onPress = function () {
SoundPlayer.play("ClickButton");
this._parent.mapDelete();
};
_parent.MappingDelete._visible = false;
mapPrev();
}
function mapDelete() {
_visible = false;
_parent.MappingDelete._visible = true;
}
function mapRemove() {
var _local3 = SharedObject.getLocal("onslaught");
var _local2 = 0;
for (var _local4 in map_list) {
if (_local2 == map_cur) {
delete _local3.data.MapsSaved[_local4];
mapSetup();
mapShow();
}
_local2++;
}
map_cur = Math.max(map_cur - 1, 0);
if (_local2 == 0) {
MiniMap.noMap();
}
mapShow();
_local3.flush();
_parent.MappingLoad.update();
_parent.MappingSave.update();
_parent.ButtonLoad.onClick();
}
function mapPrev() {
map_cur--;
map_cur = Math.max(map_cur, 0);
mapShow();
}
function mapNext() {
map_cur++;
map_cur = Math.min(map_cur, map_total - 1);
mapShow();
}
function mapShow() {
var _local2 = 0;
for (var _local3 in map_list) {
if (_local2 == map_cur) {
MiniMap.buildMap(_local3, true);
return(undefined);
}
_local2++;
}
MiniMap.noMap();
}
function mapLoad() {
var _local3 = 0;
for (var _local4 in map_list) {
if (_local3 == map_cur) {
_root.Game.mapLoad(_local4);
return(undefined);
}
_local3++;
}
}
var map_cur = 0;
var map_total = 0;
}
Symbol 1308 MovieClip [__Packages.ReviewRating] Frame 0
class ReviewRating extends OnslaughtManager
{
function ReviewRating () {
super();
ratingSet(0);
}
function ratingSet(the_num) {
var _local4;
var _local3;
var _local2 = 1;
while (_local2 <= pip_total) {
_local4 = "Rating" + _local2;
_local3 = this[_local4];
if (the_num >= _local2) {
_local3._visible = true;
} else {
_local3._visible = false;
}
_local2++;
}
}
var pip_total = 5;
}
Symbol 1309 MovieClip [__Packages.MapRating] Frame 0
class MapRating extends ReviewRating
{
function MapRating () {
super();
}
var pip_total = 7;
}
Symbol 1310 MovieClip [__Packages.mapping.MappingShare] Frame 0
class mapping.MappingShare extends OnslaughtObject
{
var SaveWarning, Working, MapList, ButtonLoad, _parent, MiniMap, MapRating, MapRatingPips, UrlRate;
function MappingShare () {
super();
}
function onLoad() {
SaveWarning._visible = false;
Working._visible = false;
resetToReload();
MapList.removeAll();
MapList.addItem("click to load");
MapList.addEventListener("close", mapPreview);
ButtonLoad.addEventListener("click", loadClick);
update();
}
function loadClick() {
SoundPlayer.play("ClickButton");
var _local2 = _parent.load_mode;
if (_local2 == 1) {
_parent.mapLoadSharedList();
_parent.ButtonLoad.enabled = false;
_parent.Working._visible = true;
} else if (_local2 == 2) {
_parent.mapLoad();
}
}
function resetToReload() {
list_loaded = false;
load_mode = 1;
}
function update() {
}
function mapPreview() {
if (GameStatus.maps_loaded == undefined) {
GameStatus.maps_loaded = new Object();
}
if (GameStatus.maps_ratings == undefined) {
GameStatus.maps_ratings = new Object();
}
var _local6 = _parent.MapList;
var map_name = _local6.selectedItem.data;
if (map_name == undefined) {
return(false);
}
if (GameStatus.maps_loaded[map_name] == undefined) {
_parent.Working._visible = true;
var _local5 = new LoadVars();
_local5.map_name = map_name;
_local5.t = GameClock.timeNow();
var _local4 = new LoadVars();
_local4.from = _parent;
_local4.onLoad = function (success) {
this.from.Working._visible = false;
if (success == true) {
if (this.error != undefined) {
_root.Game.messageNew("Error: " + this.error);
} else {
var _local3 = this.map_name;
GameStatus.maps_loaded[_local3] = JSON.parse(this.map);
GameStatus.maps_ratings[_local3] = this.rating;
this.from.mapPreviewShow(_local3);
}
}
};
_local5.sendAndLoad(GameStatus.url_map_share + "/map.load.php", _local4, "GET");
} else {
_parent.mapPreviewShow(map_name);
}
}
function mapPreviewShow(map_name) {
var _local2 = GameStatus.maps_loaded[map_name];
if (_local2 == undefined) {
return(false);
}
MiniMap.buildMapFromData(_local2);
MapRating.text = GameStatus.maps_ratings[map_name];
MapRatingPips.ratingSet(GameStatus.maps_ratings[map_name]);
delete UrlRate.onPress;
UrlRate.onPress = function () {
var _local1 = (GameStatus.url_map_rate + "?map_id=") + escape(map_name);
var _local2 = (((("window.open( '" + _local1) + "', ") + "'MapRating', ") + "'width=420,height=380' ") + ")";
flash.external.ExternalInterface.call(_local2);
};
return(true);
}
function mapListShared(the_list) {
MapList.removeAll();
for (var _local3 in the_list) {
MapList.addItem(_local3, _local3);
}
ButtonLoad.enabled = true;
list_loaded = true;
load_mode = 2;
Working._visible = false;
}
function mapLoad() {
_root.Game.mapPlayShared(MapList.selectedItem.data);
}
function mapLoadSharedList() {
var _local6 = (GameStatus.url_map_share + "/map.list.php?t=") + GameClock.timeNow();
var _local5 = new LoadVars();
_local5.onLoad = function (success) {
if (success == true) {
if (this.output == "list") {
var _local3 = new Array();
for (var _local4 in this) {
if (typeof(this[_local4]) == "string") {
if (_local4 != "output") {
_local3[_local4] = this[_local4];
}
}
}
_root.Game.mapShowSharedList(_local3);
} else {
_root.Game.messageNew("Error in list of shared maps");
}
} else {
_root.Game.messageNew("Failed to lost list of shared maps");
}
};
_local5.load(_local6);
}
function mapShowSharedList(the_list) {
return(mapListShared(the_list));
}
var list_loaded = false;
var load_mode = 1;
}
Symbol 1311 MovieClip [__Packages.mapping.MappingSave] Frame 0
class mapping.MappingSave extends OnslaughtObject
{
var SaveWarning, ButtonSave, MapName, MapList, keyboardOff, keyboardOn, ShareUser, SharePass, SaveOverwrite, SaveNew, SaveShare;
function MappingSave () {
super();
SaveWarning._visible = false;
}
function onLoad() {
var _local2 = function () {
SoundPlayer.play("ClickButton");
this._parent.trySave();
};
ButtonSave.addEventListener("click", _local2);
var _local4 = function () {
this._parent.SaveNew.selected = true;
};
MapName.addEventListener("change", _local4);
var _local3 = function () {
SoundPlayer.play("ClickButton");
this._parent.SaveOverwrite.selected = true;
};
MapList.addEventListener("close", _local3);
MapName.addEventListener("focusIn", keyboardOff);
MapName.addEventListener("focusOut", keyboardOn);
ShareUser.addEventListener("focusIn", keyboardOff);
ShareUser.addEventListener("focusOut", keyboardOn);
SharePass.addEventListener("focusIn", keyboardOff);
SharePass.addEventListener("focusOut", keyboardOn);
SaveOverwrite.selected = true;
SaveWarning._visible = false;
SaveWarning.Message.editable = false;
SaveWarning.Message.label.selectable = false;
update();
}
function trySave() {
var _local3;
if (SaveOverwrite.selected == true) {
_root.Game.mapSave(MapList.selectedItem.data);
_local3 = MapList.selectedItem.data;
} else if (MapName.__get__text() == "") {
SaveNew.setStyle("borderColor", 16711680);
} else {
SaveNew.setStyle("borderColor", 16777215);
_root.Game.mapSave(MapName.__get__text());
_local3 = MapName.text;
}
if ((_local3 != undefined) && (SaveShare.selected == true)) {
if (ShareUser.__get__text() == "") {
ShareUser.setStyle("borderColor", 16711680);
} else if (SharePass.__get__text() == "") {
ShareUser.setStyle("borderColor", 16777215);
SharePass.setStyle("borderColor", 16711680);
} else {
ShareUser.setStyle("borderColor", 16777215);
SharePass.setStyle("borderColor", 16777215);
_root.Game.mapShare(ShareUser.__get__text(), SharePass.__get__text(), _local3);
}
}
}
function update() {
var _local3 = SharedObject.getLocal("onslaught");
MapList.removeAll();
for (var _local4 in _local3.data.MapsSaved) {
MapList.addItem(_local4, _local4);
}
SaveWarning._visible = false;
if (_root.Game.map_changed == true) {
saveWarning("This map has been changed but not saved.");
}
}
function saveWarning(the_msg) {
SaveWarning._visible = true;
SaveWarning.Message.text = the_msg;
SaveWarning.WarnButton._visible = false;
}
}
Symbol 479 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 _local5 = _local2.selectedRadio.__width;
var _local4 = _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 496 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 1312 MovieClip [__Packages.turretinfo.TurretInfoMessages] Frame 0
class turretinfo.TurretInfoMessages extends OnslaughtManager
{
static var messages;
var message_list, message_read, MessageText, MessagePos, MessageNext, MessagePrev, _parent;
function TurretInfoMessages () {
super();
message_list = new Array();
message_read = new Array();
message_num = 0;
message_count = 0;
messages = 0;
}
function messageClear() {
message_list = new Array();
message_read = new Array();
message_num = 0;
message_count = 0;
messages = 0;
}
function onLoad() {
MessageText.text = "Loading...";
MessagePos.__set__text("");
MessageText.editable = false;
MessageText.html = true;
MessageText.tabEnabled = false;
MessageText.styleSheet = new TextField.StyleSheet();
MessageText.styleSheet.parseCSS("a { text-decoration: underline; }");
MessageText.setStyle("background", false);
MessageText.setStyle("border", false);
MessagePos.textAlign = "center";
MessagePos.label.selectable = false;
MessagePos.__set__editable(false);
MessageNext.setStyle("color", 0);
MessagePrev.setStyle("color", 0);
MessagePrev.addEventListener("click", clickPrev);
MessageNext.addEventListener("click", clickNext);
messageShow();
}
function clickPrev() {
var _local2 = _parent;
if (_local2.message_num > 0) {
SoundPlayer.play("ClickLeft");
_local2.message_num--;
}
_local2.messageShow();
}
function clickNext() {
var _local2 = _parent;
if (_local2.message_num < (_local2.message_count - 1)) {
SoundPlayer.play("ClickRight");
_local2.message_num++;
}
_local2.messageShow();
}
function messageShow() {
MessageText.htmlText = message_list[message_num];
if ((MessageText.text == undefined) || (MessageText.text == "undefined")) {
MessageText.text = "Loading...";
}
MessageNext.enabled = false;
MessagePrev.enabled = false;
if (message_num < (message_count - 1)) {
MessageNext.enabled = true;
}
if (message_num > 0) {
MessagePrev.enabled = true;
}
MessagePos.__set__text(((message_num + 1) + " of ") + message_list.length);
message_read[message_num] = true;
_root.Game.TurretInfoPoint.messageRead();
}
function messageAdd(the_msg, no_alert) {
message_list[message_count] = the_msg;
message_count++;
messages++;
messageShow();
if (no_alert != true) {
_root.Game.TurretInfoPoint.messageNew();
SoundPlayer.play("Message");
}
}
function messageFirstUnread() {
var _local2 = 0;
while (_local2 < message_count) {
message_num = _local2;
if (message_read[_local2] != true) {
_local2 = message_count;
}
_local2++;
}
messageShow();
}
var message_num = 0;
var message_count = 0;
var message_new = false;
}
Symbol 499 MovieClip [__Packages.mx.controls.TextArea] Frame 0
class mx.controls.TextArea extends mx.core.ScrollView
{
var label, invalidate, initText, dispatchValueChangedEvent, getHPosition, setHPosition, getVPosition, setVPosition, _color, focusTextField, tfx, tfy, tfw, tfh, doLater, _vpos, _hpos, hookedV, vScroller, hookedH, hScroller, getViewMetrics, __get__width, __get__height, hScrollPolicy, vScrollPolicy, getStyle, getFocusManager, addEventListener, removeEventListener, _getTextFormat;
function TextArea () {
super();
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(x) {
label.maxChars = x;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(s) {
label.restrict = ((s == "") ? null : (s));
//return(restrict);
}
function get wordWrap() {
return(label.wordWrap);
}
function set wordWrap(s) {
label.wordWrap = s;
invalidate();
//return(wordWrap);
}
function get editable() {
return(__editable);
}
function set editable(x) {
__editable = x;
label.type = (x ? "input" : "dynamic");
//return(editable);
}
function get password() {
return(label.password);
}
function set password(s) {
label.password = s;
//return(password);
}
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);
}
var _local2 = label;
if (_local2.html == true) {
return(_local2.htmlText);
}
return(_local2.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
invalidate();
}
dispatchValueChangedEvent(t);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
label.hscroll = pos;
label.background = false;
//return(hPosition);
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
label.scroll = pos + 1;
label.background = false;
//return(vPosition);
}
function get maxVPosition() {
var _local2 = label.maxscroll - 1;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
var _local2 = label.maxhscroll;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function init(Void) {
super.init();
label.styleName = this;
_color = mx.core.UIObject.textColorList;
focusTextField = label;
label.owner = this;
label.onSetFocus = function (x) {
this._parent.onSetFocus(x);
};
label.onKillFocus = function (x) {
this._parent.onKillFocus(x);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = function () {
this.owner.adjustScrollBars();
this.owner.dispatchEvent({type:"change"});
this.owner.dispatchValueChangedEvent(this.owner.text);
};
label.onScroller = function () {
this.owner.hPosition = this.hscroll;
this.owner.vPosition = this.scroll - 1;
};
if (text == undefined) {
text = ("");
}
}
function createChildren(Void) {
super.createChildren();
label.autoSize = "none";
}
function layoutContent(x, y, totalW, totalH, displayW, displayH) {
var _local2 = label;
if ((((tfx != x) || (tfy != y)) || (tfw != displayW)) || (tfh != displayH)) {
tfx = x;
tfy = y;
tfw = displayW;
tfh = displayH;
_local2.move(tfx, tfy);
_local2.setSize(tfw, tfh);
doLater(this, "adjustScrollBars");
}
}
function scrollChanged(Void) {
var _local2 = Selection;
if (_local2.lastBeginIndex != undefined) {
restoreSelection();
}
label.background = false;
}
function onScroll(docObj) {
var _local3 = label;
super.onScroll(docObj);
_local3.hscroll = hPosition + 0;
_local3.scroll = vPosition + 1;
_vpos = _local3.scroll;
_hpos = _local3.hscroll;
_local3.background = false;
if (hookedV != true) {
vScroller.addEventListener("scrollChanged", this);
hookedV = true;
}
if (hookedH != true) {
hScroller.addEventListener("scrollChanged", this);
hookedH = true;
}
}
function size(Void) {
var _local3 = getViewMetrics();
var _local7 = _local3.left + _local3.right;
var _local4 = _local3.top + _local3.bottom;
var _local6 = _local3.left;
var _local5 = _local3.top;
tfx = _local6;
tfy = _local5;
tfw = __get__width() - _local7;
tfh = __get__height() - _local4;
super.size();
label.move(tfx, tfy);
label.setSize(tfw, tfh);
if (__get__height() <= 40) {
hScrollPolicy = "off";
vScrollPolicy = "off";
}
doLater(this, "adjustScrollBars");
}
function setEnabled(enable) {
vScroller.enabled = enable;
hScroller.enabled = enable;
label.type = (((editable == false) || (enable == false)) ? "dynamic" : "input");
label.selectable = enable;
var _local3 = getStyle((enable ? "color" : "disabledColor"));
if (_local3 == undefined) {
_local3 = (enable ? 0 : 8947848);
}
setColor(_local3);
}
function setColor(col) {
label.textColor = col;
}
function setFocus(Void) {
Selection.setFocus(label);
}
function onSetFocus(x) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
getFocusManager().defaultPushButtonEnabled = false;
addEventListener("keyDown", this);
super.onSetFocus(x);
}
function onKillFocus(x) {
getFocusManager().defaultPushButtonEnabled = true;
removeEventListener("keyDown", this);
super.onKillFocus(x);
}
function restoreSelection(x) {
var _local2 = Selection;
Selection.setSelection(_local2.lastBeginIndex, _local2.lastEndIndex);
label.scroll = _vpos;
label.hscroll = _hpos;
}
function getLineOffsets(Void) {
var _local16 = _getTextFormat();
var _local18 = _local16.getTextExtent2(label.text);
var _local5 = _root._getTextExtent;
_local5.setNewTextFormat(TextFormat(_local16));
var _local14 = label.wordWrap;
var _local9 = 0;
var _local7 = (label._width - 2) - 2;
var _local12 = new Array();
var _local17 = new String(label.text);
var _local15 = _local17.split("\r");
var _local11 = 0;
while (_local11 < _local15.length) {
_local12.push(_local9);
var _local4 = _local15[_local11];
_local5.text = _local4;
var _local13 = Math.ceil(_local5.textWidth / _local7);
var _local10 = Math.floor(_local4.length / _local13);
var _local3;
while (_local14 && (_local5.textWidth > _local7)) {
_local3 = _local4.indexOf(" ", _local10);
var _local6;
if (_local3 == -1) {
_local3 = _local4.lastIndexOf(" ");
if (_local3 == -1) {
_local3 = _local10;
}
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
if (_local5.textWidth > _local7) {
while (_local5.textWidth > _local7) {
var _local8 = _local3;
_local3 = _local4.lastIndexOf(" ", _local3 - 1);
if (_local3 == -1) {
_local3 = _local8 - 1;
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
}
} else if (_local5.textWidth < _local7) {
var _local8 = _local3;
while (_local5.textWidth < _local7) {
_local8 = _local3;
_local3 = _local4.indexOf(" ", _local3 + 1);
if (_local3 == -1) {
if (_local4.indexOf(" ", 0) != -1) {
break;
}
_local3 = _local8 + 1;
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
}
_local3 = _local8;
}
_local9 = _local9 + _local3;
_local12.push(_local9 + 1);
_local4 = _local4.substr(_local3);
if (_local4.charAt(0) == " ") {
_local4 = _local4.substr(1, _local4.length - 1);
_local9 = _local9 + 1;
}
_local5.text = _local4;
}
_local9 = _local9 + (_local4.length + 1);
_local11++;
}
return(_local12);
}
function keyDown(e) {
var _local5 = e.code;
if (_local5 == 34) {
var _local6 = (label.bottomScroll - label.scroll) + 1;
var _local3 = getLineOffsets();
var _local2 = Math.min(label.bottomScroll + 1, label.maxscroll);
if (_local2 == label.maxscroll) {
var _local4 = label.length;
Selection.setSelection(_local4, _local4);
} else {
label.scroll = _local2;
Selection.setSelection(_local3[_local2 - 1], _local3[_local2 - 1]);
}
} else if (_local5 == 33) {
var _local6 = (label.bottomScroll - label.scroll) + 1;
var _local3 = getLineOffsets();
var _local2 = label.scroll - 1;
if (_local2 < 1) {
Selection.setSelection(0, 0);
} else {
Selection.setSelection(_local3[_local2 - 1], _local3[_local2 - 1]);
label.scroll = Math.max(_local2 - _local6, 1);
}
}
}
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 = true;
_local2.wordWrap = wordWrap == true;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = ((editable == true) ? "input" : "dynamic");
size();
_local2.background = false;
}
function adjustScrollBars() {
var _local2 = label;
var _local4 = (_local2.bottomScroll - _local2.scroll) + 1;
var _local3 = (_local4 + _local2.maxscroll) - 1;
if (_local3 < 1) {
_local3 = 1;
}
var _local5 = 0;
if ((_local2.textWidth + 5) > _local2._width) {
if (!_local2.wordWrap) {
_local5 = _local2._width + _local2.maxhscroll;
}
} else {
_local2.hscroll = 0;
_local2.background = false;
}
if ((_local2.height / _local4) != Math.round(_local2.height / _local4)) {
_local3--;
}
setScrollProperties(_local5, 1, _local3, _local2.height / _local4);
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
super.setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding);
if (vScroller == undefined) {
hookedV = false;
}
if (hScroller == undefined) {
hookedH = false;
}
}
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);
}
function get styleSheet() {
return(label.styleSheet);
}
function set styleSheet(v) {
label.styleSheet = v;
//return(styleSheet);
}
static var symbolName = "TextArea";
static var symbolOwner = mx.controls.TextArea;
static var version = "2.0.2.127";
var className = "TextArea";
var initializing = true;
var clipParameters = {text:1, wordWrap:1, editable:1, maxChars:1, restrict:1, html:1, password:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextArea.prototype.clipParameters, mx.core.ScrollView.prototype.clipParameters);
var __vScrollPolicy = "auto";
var __hScrollPolicy = "auto";
var __editable = true;
}
Symbol 1313 MovieClip [__Packages.mapping.MappingHelp] Frame 0
class mapping.MappingHelp extends turretinfo.TurretInfoMessages
{
var messageClear, messageAdd;
function MappingHelp () {
super();
messageClear();
var _local3;
_local3 = "Welcome to the mapping mode!\n\nDrag the starting point and base to create a start and end point for the path, drop waypoints to create a road.";
messageAdd(_local3, true);
_local3 = "Select a waypoint by clicking on it and use the arrow keys to nudge it around. Hold down the shift key to nudge it around faster.\n\nPress backspace to delete the selected waypoint.";
messageAdd(_local3, true);
_local3 = "You can save your map by giving it any name you want. You can load and change previous maps you have saved. Finally you can play your maps to see how they work.";
messageAdd(_local3, true);
_local3 = "Keyboard Shortcuts:\n1 = Put start on cursor\n2 = Put new waypoint on cursor\n3 = Put base on cursor\nBackspace = Remove selected waypoint\n";
messageAdd(_local3, true);
_local3 = "Tips:\nMaps work better when the attackers come from the edge of the screen.\n\nEnsure there is enough space to place some turrets\n\nBe creative!";
messageAdd(_local3, true);
}
}
Symbol 1314 MovieClip [__Packages.turretinfo.TurretInfoTab] Frame 0
class turretinfo.TurretInfoTab extends OnslaughtManager
{
var cur_tab, gotoAndStop, onClick;
function TurretInfoTab () {
super();
}
function onRollOver() {
if (cur_tab == this) {
gotoAndStop("Selected");
} else if (disabled) {
gotoAndStop("No");
} else {
gotoAndStop("Over");
}
}
function onRollOut() {
if (cur_tab == this) {
gotoAndStop("Selected");
} else {
gotoAndStop("Up");
}
}
function onPress() {
if (disabled) {
gotoAndStop("No");
} else {
onClick();
gotoAndStop("Down");
}
}
function onRelease() {
if (cur_tab == this) {
gotoAndStop("Selected");
} else if (disabled) {
gotoAndStop("No");
} else {
gotoAndStop("Over");
}
}
function onReleaseOutside() {
if (cur_tab == this) {
gotoAndStop("Selected");
} else {
gotoAndStop("Up");
}
}
var disabled = false;
}
Symbol 1315 MovieClip [__Packages.mapping.MappingInfo] Frame 0
class mapping.MappingInfo extends OnslaughtObject
{
var _x, _y, _alpha, info_page, TurretName, ButtonHelp, ButtonSave, ButtonLoad, ButtonClear, ButtonGrid, ButtonPlay, ButtonMenu, ButtonShare, TitleBar, ButtonMessages, MappingLoad, MappingSave, effect, effectNew, cur_tab, MappingHelp, MappingClear, MappingShare, MappingDelete;
function MappingInfo () {
super();
_x = GameStatus.turret_info_x;
_y = GameStatus.turret_info_y;
_alpha = 80;
info_page = undefined;
infoHideAll();
TurretName.text = "Mapping Mode";
ButtonHelp.text = "Help";
ButtonSave.text = "Save";
ButtonLoad.text = "Load";
ButtonClear.text = "Clear";
ButtonGrid.text = "Grid";
ButtonPlay.text = "Play";
ButtonMenu.text = "Menu";
ButtonShare.text = "Shared";
TitleBar.onPress = function () {
this._parent.startDrag();
};
TitleBar.onRelease = function () {
this._parent.stopDrag();
GameStatus.turret_info_x = this._parent._x;
GameStatus.turret_info_y = this._parent._y;
};
ButtonHelp.onClick = function () {
SoundPlayer.play("ClickTab");
this._parent.infoTabSelect(this);
this._parent.infoHideAll();
this._parent.MappingHelp._visible = true;
this._parent.info_page = "help";
};
ButtonSave.onClick = function () {
SoundPlayer.play("ClickTab");
this._parent.infoTabSelect(this);
this._parent.infoHideAll();
this._parent.MappingSave._visible = true;
this._parent.info_page = "save";
};
ButtonLoad.onClick = function () {
SoundPlayer.play("ClickTab");
this._parent.infoTabSelect(this);
this._parent.infoHideAll();
this._parent.MappingLoad._visible = true;
this._parent.info_page = "load";
this._parent.MappingLoad.mapShow();
};
ButtonShare.onClick = function () {
SoundPlayer.play("ClickTab");
this._parent.infoTabSelect(this);
this._parent.infoHideAll();
this._parent.info_page = "share";
this._parent.MappingShare._visible = true;
};
ButtonClear.onClick = function () {
SoundPlayer.play("ClickTab");
this._parent.infoTabSelect(this);
this._parent.infoHideAll();
this._parent.MappingClear._visible = true;
this._parent.info_page = "clear";
};
ButtonGrid.onClick = function () {
SoundPlayer.play("ClickTab");
if (_root.MapGridSnap.selected == true) {
_root.MapGridSnap.selected = false;
} else {
_root.MapGridSnap.selected = true;
}
_root.Game.gridToggle();
};
ButtonPlay.onClick = function () {
SoundPlayer.play("ClickTab");
_root.Game.mapPlay();
};
ButtonMenu.onClick = function () {
SoundPlayer.play("ClickTab");
_root.gotoPage("Instructions");
};
}
function onLoad() {
ButtonMessages = ButtonHelp;
ButtonHelp.onClick();
}
function update() {
MappingLoad.update();
MappingSave.update();
}
function infoDoMinimise() {
if (is_visible == false) {
return(false);
}
infoHideAll();
var _local3 = new Object();
effect.effectRemove();
_local3.effect_duration = 225;
_local3.target_obj = this;
_local3.target_x = _root.TurretInfoPoint._x;
_local3.target_y = _root.TurretInfoPoint._y;
_local3.target_scale = 10;
effect = effectNew(_local3);
is_visible = false;
SoundPlayer.play("ClickMin");
}
function infoDoMaximise() {
if (is_visible == true) {
return(false);
}
var _local2 = new Object();
effect.effectRemove();
_local2.effect_duration = 225;
_local2.target_obj = this;
_local2.onComplete = function () {
this.target_obj.infoPostMaximise();
};
_local2.target_x = GameStatus.turret_info_x;
_local2.target_y = GameStatus.turret_info_y;
_local2.target_scale = 100;
effect = effectNew(_local2);
SoundPlayer.play("ClickMax");
}
function infoPostMaximise() {
is_visible = true;
if (info_page == "load") {
ButtonLoad.onClick();
} else if (info_page == "save") {
ButtonSave.onClick();
} else if (info_page == "clear") {
ButtonClear.onClick();
} else if (info_page == "help") {
ButtonHelp.onClick();
} else if (info_page == "share") {
ButtonShare.onClick();
}
}
function infoTabSelect(the_tab) {
if (cur_tab) {
cur_tab.cur_tab = undefined;
cur_tab.onRollOut();
}
cur_tab = the_tab;
the_tab.cur_tab = the_tab;
the_tab.onRollOver();
}
function infoHideAll() {
MappingHelp._visible = false;
MappingLoad._visible = false;
MappingSave._visible = false;
MappingClear._visible = false;
MappingShare._visible = false;
MappingDelete._visible = false;
}
var frame_space = 200;
var is_visible = true;
var effect_complete = true;
}
Symbol 1316 MovieClip [__Packages.turretinfo.TurretInfoGreen] Frame 0
class turretinfo.TurretInfoGreen extends OnslaughtObject
{
var interval, LinkFire, LinkAssist, _visible, cur_turret, Link, LinkDamage, LinkChainSize, LinkWanted, LinkOffered;
function TurretInfoGreen () {
super();
interval = setInterval(this, "update", frame_update);
}
function onLoad() {
LinkFire.setStyle("textAlign", "right");
LinkAssist.setStyle("textAlign", "right");
}
function update() {
if (_visible == false) {
clearInterval(interval);
interval = undefined;
return(undefined);
}
if (interval == undefined) {
interval = setInterval(this, "update", frame_update);
}
cur_turret = _root.Game.TurretManager.cur_turret;
if (!(cur_turret && (cur_turret._name))) {
return(undefined);
}
var _local4 = new Array();
var _local3;
for (var _local5 in cur_turret.link_in_range) {
_local3 = cur_turret.link_in_range[_local5];
_local4.push(_local3.display_name);
}
Link.__set__text(_local4.join(newline));
LinkFire.__set__text(cur_turret.link_fire_count.toString());
LinkAssist.__set__text(cur_turret.link_assist_count.toString());
LinkDamage.__set__text(Math.floor(cur_turret.link_last_damage).toString());
LinkChainSize.__set__text("0");
if (cur_turret.link_wanted == true) {
LinkWanted.__set__text("Wanted");
} else {
LinkWanted.__set__text("");
}
if (cur_turret.link_offered == true) {
LinkOffered.__set__text("Offered");
} else {
LinkOffered.__set__text("");
}
}
var frame_update = 200;
}
Symbol 1317 MovieClip [__Packages.turretinfo.TurretInfoBlue] Frame 0
class turretinfo.TurretInfoBlue extends OnslaughtObject
{
var interval, FreakNext, FreakCost, FreakBuy, cur_turret, _visible;
function TurretInfoBlue () {
super();
interval = setInterval(this, "update", frame_update);
}
function onLoad() {
FreakNext.textAlign = "center";
FreakCost.textAlign = "center";
FreakBuy.__set__label("Buy");
FreakBuy.enabled = false;
FreakBuy.addEventListener("click", buyNow);
}
function buyNow() {
if (GameStatus.game_paused == true) {
return(undefined);
}
if (GameStatus.game_over == true) {
return(undefined);
}
cur_turret = _root.Game.TurretManager.cur_turret;
if ((cur_turret && (cur_turret._name)) && (cur_turret.freak_available)) {
var _local3 = Math.floor((cur_turret.freak_next - GameClock.timeNow()) / 1000);
var _local4 = _local3 * GameStatus.freak_now_cost_sec;
if (_root.Game.cashSpend(_local4)) {
cur_turret.freakoutNow();
}
}
}
function update() {
if (_visible == false) {
clearInterval(interval);
interval = undefined;
return(undefined);
}
if (interval == undefined) {
interval = setInterval(this, "update", frame_update);
}
cur_turret = _root.Game.TurretManager.cur_turret;
if (cur_turret.freak_available == true) {
var _local3 = Math.floor((cur_turret.freak_next - GameClock.timeNow()) / 1000);
var _local4 = _local3 * GameStatus.freak_now_cost_sec;
FreakNext.__set__text(_local3 + "s");
FreakCost.__set__text("$" + _local4);
if (_root.Game.cashAvailable(_local4)) {
FreakBuy.enabled = true;
} else {
FreakBuy.enabled = false;
}
} else {
FreakNext.__set__text("n/a");
FreakCost.__set__text("n/a");
FreakBuy.enabled = false;
}
}
var frame_update = 500;
}
Symbol 1318 MovieClip [__Packages.turrets.TurretBlue] Frame 0
class turrets.TurretBlue extends turrets.Turret
{
var pre_setup, weapon_damage, weapon_range, weapon_rate, turret_type, weapon_type, upgrade_damage_cost, upgrade_damage_amount, upgrade_range_cost, upgrade_range_amount, upgrade_rate_cost, upgrade_rate_amount, upgrade_bullet, comboFindMinepoints, comboGetInRange, modifyUpdate, IndicateDamage, upgradeAsPercent, IndicateRange, IndicateRate, WeaponLegs, time_last, freak_next, freakoutNow, weapon_target, targetAvailableOrAcquire, weapon_range_effective, target_type, target_bear_to, turretBearTowards, active, interval, weapon_must_face, turretCanFire, comboCanFire, turretFire, weapon_damage_effective, upgrade_damage_level, comboCountColours, combo_blue, combo_green, combo_red, combo_yellow, comboFireBigLaserClusterLandmine, comboFireBigClusterLandmine, comboFireBigLaserClusterBomb, comboFireBigClusterBomb, comboFireSparkyLandmine, comboFireSparkyClusterBomb, comboFireLaserClusterBomb, comboFireBigLandmine, comboFireClusterBomb, comboFireLandmine;
function TurretBlue () {
super();
if (pre_setup == false) {
weapon_damage = 15;
weapon_range = 130;
weapon_rate = 100;
turret_type = "Blue";
weapon_type = "Bullet";
upgrade_damage_cost = new Array();
upgrade_damage_amount = new Array();
upgrade_range_cost = new Array();
upgrade_range_amount = new Array();
upgrade_rate_cost = new Array();
upgrade_rate_amount = new Array();
upgrade_bullet = new Array();
upgrade_bullet[0] = "Bullet";
upgrade_bullet[1] = "Bullet";
upgrade_bullet[2] = "Bullet2";
upgrade_bullet[3] = "Bullet3";
upgrade_bullet[4] = "Bullet4";
upgrade_bullet[5] = "Bullet5";
upgrade_bullet[6] = "Bullet6";
upgrade_bullet[7] = "Bullet7";
upgrade_bullet[8] = "Bullet8";
upgrade_bullet[9] = "Bullet9";
upgrade_damage_cost[0] = 20;
upgrade_damage_cost[1] = 50;
upgrade_damage_cost[2] = 100;
upgrade_damage_cost[3] = 250;
upgrade_damage_cost[4] = 600;
upgrade_damage_cost[5] = 1000;
upgrade_damage_cost[6] = 1100;
upgrade_damage_cost[7] = 1200;
upgrade_damage_cost[8] = 1500;
upgrade_damage_amount[0] = 30;
upgrade_damage_amount[1] = 60;
upgrade_damage_amount[2] = 150;
upgrade_damage_amount[3] = 400;
upgrade_damage_amount[4] = 1200;
upgrade_damage_amount[5] = 3100;
upgrade_damage_amount[6] = 8500;
upgrade_damage_amount[7] = 18400;
upgrade_damage_amount[8] = 46000;
upgrade_range_cost[0] = 30;
upgrade_range_cost[1] = 100;
upgrade_range_cost[2] = 200;
upgrade_range_cost[3] = 500;
upgrade_range_cost[4] = 950;
upgrade_range_amount[0] = 140;
upgrade_range_amount[1] = 150;
upgrade_range_amount[2] = 165;
upgrade_range_amount[3] = 180;
upgrade_range_amount[4] = 220;
upgrade_rate_cost[0] = 50;
upgrade_rate_cost[1] = 150;
upgrade_rate_cost[2] = 300;
upgrade_rate_cost[3] = 450;
upgrade_rate_cost[4] = 950;
upgrade_rate_cost[5] = 1000;
upgrade_rate_cost[6] = 1450;
upgrade_rate_amount[0] = 110;
upgrade_rate_amount[1] = 125;
upgrade_rate_amount[2] = 140;
upgrade_rate_amount[3] = 160;
upgrade_rate_amount[4] = 180;
upgrade_rate_amount[5] = 200;
upgrade_rate_amount[6] = 240;
comboFindMinepoints();
comboGetInRange();
modifyUpdate();
}
IndicateDamage.setPercentage(upgradeAsPercent("damage"));
IndicateRange.setPercentage(upgradeAsPercent("range"));
IndicateRate.setPercentage(upgradeAsPercent("rate"));
WeaponLegs._rotation = Math.random() * 90;
}
function update() {
var _local2 = GameClock.timeNow();
var _local3 = _local2 - time_last;
if (_local3 > 0) {
if (freak_available == true) {
if (_local2 >= freak_next) {
freakoutNow();
}
}
weapon_target = targetAvailableOrAcquire(weapon_target, this, weapon_range_effective, target_type);
if (weapon_target && (weapon_target._name)) {
target_bear_to = undefined;
turretTryFiring(weapon_target);
} else if (target_bear_to && (target_bear_to._name)) {
turretBearTowards(target_bear_to, _local3);
}
}
time_last = _local2;
if (active == false) {
clearInterval(interval);
}
return(true);
}
function turretTryFiring(the_target) {
if (the_target && (the_target._name)) {
var _local3 = GameClock.timeNow() - time_last;
if (turretBearTowards(the_target, _local3) == true) {
} else if (weapon_must_face == true) {
return(false);
}
if (turretCanFire()) {
if (comboCanFire()) {
comboFire(the_target);
} else {
turretFire(the_target, weapon_damage_effective);
}
}
}
return(true);
}
function onUpgrade() {
if (upgrade_bullet[upgrade_damage_level]) {
weapon_type = upgrade_bullet[upgrade_damage_level];
}
}
function onSell() {
}
function comboFire(the_target) {
comboCountColours();
var _local4 = combo_blue.length;
var _local5 = combo_green.length;
var _local3 = combo_red.length;
var _local6 = combo_yellow.length;
var _local2 = new Object();
_local2.the_target = the_target;
if (((_local3 >= 2) && (_local5 >= 1)) && (_local4 >= 1)) {
return(comboFireBigLaserClusterLandmine(_local2));
}
if ((_local3 >= 2) && (_local4 >= 1)) {
return(comboFireBigClusterLandmine(_local2));
}
if ((_local3 >= 2) && (_local5 >= 1)) {
return(comboFireBigLaserClusterBomb(_local2));
}
if (_local3 >= 2) {
return(comboFireBigClusterBomb(_local2));
}
if ((_local4 >= 1) && (_local6 >= 1)) {
return(comboFireSparkyLandmine(_local2));
}
if ((_local3 >= 1) && (_local6 >= 1)) {
return(comboFireSparkyClusterBomb(_local2));
}
if ((_local3 >= 1) && (_local5 >= 1)) {
return(comboFireLaserClusterBomb(_local2));
}
if ((_local3 >= 1) && (_local4 >= 1)) {
return(comboFireBigLandmine(_local2));
}
if (_local3 >= 1) {
return(comboFireClusterBomb(_local2));
}
if (_local4 >= 1) {
return(comboFireLandmine(_local2));
}
turretFire(the_target, weapon_damage_effective);
}
static var turret_cost = 10;
var display_name = "Cannon";
var sound_fire = "Cannon";
var freak_capable = true;
var freak_available = false;
var freak_level_damage = 4;
var freak_level_range = 0;
var freak_level_rate = 4;
}
Symbol 1319 MovieClip [__Packages.turretinfo.TurretInfoSandbox] Frame 0
class turretinfo.TurretInfoSandbox extends OnslaughtObject
{
var SlideWaveSize, SlideAttackerSpeed, BankRecharge, WaveNumber, value;
function TurretInfoSandbox () {
super();
}
function onLoad() {
var _local5 = new Object();
_local5.trackWidth = 150;
_local5.trackHeight = 5;
_local5.trackFill = 12303291 /* 0xBBBBBB */;
_local5.handleWidth = 6;
_local5.handleHeight = 15;
_local5.handleBorder = 10066329 /* 0x999999 */;
_local5.handleFill = 15658734 /* 0xEEEEEE */;
_local5.res = 1;
var _local4 = new Object();
_local4.trackWidth = 150;
_local4.trackHeight = 5;
_local4.trackFill = 12303291 /* 0xBBBBBB */;
_local4.handleWidth = 6;
_local4.handleHeight = 15;
_local4.handleBorder = 10066329 /* 0x999999 */;
_local4.handleFill = 15658734 /* 0xEEEEEE */;
_local4.res = 1;
_local4.min = 1;
_local4.max = 10;
_local4.snap = 1;
_local4.start = GameManager.self.AttackerManager.wave_size;
var _local3 = new Object();
_local3.trackWidth = 150;
_local3.trackHeight = 5;
_local3.trackFill = 12303291 /* 0xBBBBBB */;
_local3.handleWidth = 6;
_local3.handleHeight = 15;
_local3.handleBorder = 10066329 /* 0x999999 */;
_local3.handleFill = 15658734 /* 0xEEEEEE */;
_local3.res = 1;
_local3.min = 40;
_local3.max = 120;
_local3.snap = 10;
_local3.start = GameManager.self.AttackerManager.attacker_speed;
SlideWaveSize.init(_local4);
SlideAttackerSpeed.init(_local3);
BankRecharge.addEventListener("click", updateBank);
WaveNumber.addEventListener("change", updateWave);
WaveNumber.inputField.editable = false;
_root.Game.AttackerManager.addListener(this);
}
function nextWave() {
updateWaveChanged();
}
function updateBank() {
_root.Game.CashManager.player_cash = _root.Game.starting_cash;
_root.Game.CashManager.cashUpdate();
}
function updateWave() {
_root.Game.AttackerManager.wave_num = value - 1;
}
function updateWaveChanged() {
WaveNumber.__set__value(_root.Game.AttackerManager.wave_num);
}
function onChange() {
_root.Game.AttackerManager.wave_size = SlideWaveSize.value;
_root.Game.AttackerManager.attacker_speed = SlideAttackerSpeed.value;
}
function update() {
WaveNumber.__set__value(_root.Game.AttackerManager.wave_num);
}
}
Symbol 1320 MovieClip [__Packages.UpgradeGraph] Frame 0
class UpgradeGraph extends OnslaughtManager
{
var steps, units, getNextHighestDepth, attachMovie, Background, Fade, BarLimit, val_current, BarCurrent, val_possible, BarPossible, val_limit;
function UpgradeGraph () {
super();
if (steps == undefined) {
steps = new Array();
steps.push(100);
steps.push(1000);
steps.push(10000);
steps.push(100000);
}
units = new Array();
}
function graphUnitClear() {
var _local2;
for (var _local3 in units) {
_local2 = units[_local3];
_local2.removeMovieClip();
}
units = new Array();
}
function graphSetDimsAndScale(the_width, the_height, the_scale) {
var _local2 = 0;
for (var _local4 in the_scale) {
_local2++;
}
bar_x = (the_width / (_local2 * step_bars)) - bar_space;
bar_y = the_height;
graphSetScale(the_scale);
}
function graphSetScale(the_scale) {
steps = the_scale;
graphUnitClear();
var _local7 = step_bars * (bar_x + bar_space);
var _local9 = steps.length * scale_minor;
var _local8 = _local7 / scale_minor;
var _local3;
var _local4;
var _local6;
var _local2;
var _local5 = 1;
while (_local5 <= _local9) {
_local3 = "UpgradeGraphScaleMinor";
_local4 = getNextHighestDepth();
_local6 = _local3 + _local4;
_local2 = attachMovie(_local3, _local6, _local4);
_local2._x = _local5 * _local8;
_local2._y = 0;
_local2._height = bar_y;
units.push(_local2);
_local5++;
}
_local5 = 1;
while (_local5 <= steps.length) {
_local3 = "UpgradeGraphScale";
_local4 = getNextHighestDepth();
_local6 = _local3 + _local4;
_local2 = attachMovie(_local3, _local6, _local4);
_local2._x = _local5 * _local7;
_local2._y = 0;
_local2.marker = steps[_local5 - 1];
units.push(_local2);
_local5++;
}
_local7 = step_bars * (bar_x + bar_space);
var _local10 = steps.length;
Background._width = (_local7 * _local10) + 2;
Background._height = bar_y + 2;
Background._x = -1;
Background._y = 0;
Background._visible = true;
Fade._width = (_local7 * _local10) + 1;
Fade._height = bar_y;
Fade._x = 0;
Fade._y = 0;
Fade._visible = true;
BarLimit.swapDepths(getNextHighestDepth());
}
function graphSetCurrent(the_val) {
val_current = the_val;
graphSetValue(the_val, BarCurrent);
}
function graphSetPossible(the_val) {
val_possible = the_val;
if (!the_val) {
the_val = val_current;
}
graphSetValue(the_val, BarPossible);
}
function graphSetLimit(the_val) {
val_limit = the_val;
var _local3 = graphGetWidth(the_val);
BarLimit._width = bar_x;
BarLimit._height = bar_y;
BarLimit._y = 0;
var _local2 = new Object();
_local2._x = _local3 - bar_x;
_local2.overwrite = true;
gs.TweenLite.to(BarLimit, 0.25, _local2);
}
function graphSetValue(the_val, the_bar) {
if (!the_val) {
the_val = 0;
}
the_bar._height = bar_y;
the_bar._y = 0;
var _local2 = new Object();
_local2._width = graphGetWidth(the_val);
_local2.overwrite = true;
gs.TweenLite.to(the_bar, 0.25, _local2);
}
function graphGetWidth(the_val) {
if (!the_val) {
return(0);
}
var _local11 = steps;
var _local4 = 0;
var _local6 = 0;
var _local2;
var _local10;
var _local8;
var _local9;
var _local7;
var _local3 = 0;
while (_local3 < _local11.length) {
_local2 = steps[_local3];
if (the_val >= _local2) {
_local6 = _local6 + (step_bars * (bar_x + bar_space));
} else if ((the_val >= _local4) && (the_val < _local2)) {
_local10 = step_bars * (bar_x + bar_space);
_local8 = _local2 - _local4;
_local9 = the_val - _local4;
_local7 = _local9 / _local8;
_local6 = _local6 + (_local10 * _local7);
}
_local4 = _local2;
_local3++;
}
return(_local6);
}
var peak_max = 1000000;
var bar_x = 2;
var bar_y = 18;
var bar_space = 1;
var step_bars = 10;
var scale_minor = 5;
}
Symbol 1321 MovieClip [__Packages.turretinfo.TurretInfoYellow] Frame 0
class turretinfo.TurretInfoYellow extends OnslaughtObject
{
var ChargePct, ChargeDamage, ChargeReload, ChargeGraph, _visible, interval, cur_turret;
function TurretInfoYellow () {
super();
update();
}
function onLoad() {
ChargePct.textAlign = "center";
ChargeDamage.textAlign = "center";
ChargeReload.textAlign = "center";
ChargeGraph.graphSetDimsAndScale(200, 20, new Array(50, 100, 150, 200));
}
function update() {
if (_visible == false) {
clearInterval(interval);
interval = undefined;
return(undefined);
}
if (interval == undefined) {
interval = setInterval(this, "update", frame_update);
}
cur_turret = _root.Game.TurretManager.cur_turret;
if (!(cur_turret && (cur_turret._name))) {
return(undefined);
}
var _local3 = Math.floor(cur_turret.charge_cur);
ChargePct.__set__text(_local3 + "%");
ChargeDamage.__set__text(Math.floor(cur_turret.charge_damage).toString());
ChargeReload.__set__text(Math.floor(cur_turret.charge_rate).toString() + "%/sec");
ChargeGraph.graphSetCurrent(cur_turret.charge_cur - cur_turret.charge_use);
ChargeGraph.graphSetPossible(cur_turret.charge_cur);
ChargeGraph.graphSetLimit(cur_turret.charge_max + 1);
}
var frame_update = 200;
}
Symbol 1322 MovieClip [__Packages.turrets.TurretYellow] Frame 0
class turrets.TurretYellow extends turrets.Turret
{
var pre_setup, weapon_damage, weapon_range, weapon_rate, turret_type, weapon_type, upgrade_damage_cost, upgrade_damage_amount, upgrade_range_cost, upgrade_range_amount, upgrade_rate_cost, upgrade_rate_amount, comboGetInRange, modifyUpdate, IndicateDamage, upgradeAsPercent, IndicateRange, IndicateRate, WeaponLegs, weapon_must_face, upgrade_damage_level, upgrade_rate_level, time_last, freak_next, freakoutNow, weapon_target, targetAvailableOrAcquire, weapon_range_effective, active, interval, turretBearTowards, turretCanFire, comboCanFire, turretFire, weapon_damage_effective, modifyStat, modify_damage_added, modify_damage_mult, modify_poison_added, modify_poison_mult, weapon_poison_effective, comboCountColours, combo_blue, combo_green, combo_red, combo_yellow, comboFireBlackHole, comboFireShockwave, comboFireTazerBFG;
function TurretYellow () {
super();
if (pre_setup == false) {
weapon_damage = 50;
weapon_range = 70;
weapon_rate = 60;
turret_type = "Yellow";
weapon_type = "Spark";
upgrade_damage_cost = new Array();
upgrade_damage_amount = new Array();
upgrade_range_cost = new Array();
upgrade_range_amount = new Array();
upgrade_rate_cost = new Array();
upgrade_rate_amount = new Array();
upgrade_damage_cost[0] = 40;
upgrade_damage_cost[1] = 80;
upgrade_damage_cost[2] = 190;
upgrade_damage_cost[3] = 300;
upgrade_damage_cost[4] = 600;
upgrade_damage_cost[5] = 1000;
upgrade_damage_cost[6] = 1100;
upgrade_damage_amount[0] = 75;
upgrade_damage_amount[1] = 125;
upgrade_damage_amount[2] = 200;
upgrade_damage_amount[3] = 800;
upgrade_damage_amount[4] = 3500;
upgrade_damage_amount[5] = 11000;
upgrade_damage_amount[6] = 30000;
upgrade_range_cost[0] = 50;
upgrade_range_cost[1] = 100;
upgrade_range_cost[2] = 300;
upgrade_range_cost[3] = 600;
upgrade_range_cost[4] = 1000;
upgrade_range_amount[0] = 75;
upgrade_range_amount[1] = 85;
upgrade_range_amount[2] = 105;
upgrade_range_amount[3] = 130;
upgrade_range_amount[4] = 155;
upgrade_rate_cost[0] = 50;
upgrade_rate_cost[1] = 100;
upgrade_rate_cost[2] = 225;
upgrade_rate_cost[3] = 390;
upgrade_rate_cost[4] = 650;
upgrade_rate_cost[5] = 1100;
upgrade_rate_cost[6] = 1450;
upgrade_rate_amount[0] = 70;
upgrade_rate_amount[1] = 80;
upgrade_rate_amount[2] = 90;
upgrade_rate_amount[3] = 100;
upgrade_rate_amount[4] = 120;
upgrade_rate_amount[5] = 150;
upgrade_rate_amount[6] = 180;
comboGetInRange();
modifyUpdate();
}
IndicateDamage.setPercentage(upgradeAsPercent("damage"));
IndicateRange.setPercentage(upgradeAsPercent("range"));
IndicateRate.setPercentage(upgradeAsPercent("rate"));
WeaponLegs._rotation = Math.random() * 90;
weapon_must_face = false;
}
function onUpgrade() {
var _local2 = upgradeAsPercent("damage");
weapon_poison = weapon_poison_max * (_local2 / 100);
weapon_poison = Math.max(1, weapon_poison);
charge_max = charge_base + (upgrade_damage_level * 10);
charge_rate = charge_rate_base + (upgrade_rate_level * 2);
}
function update() {
var _local2 = GameClock.timeNow();
var _local3 = _local2 - time_last;
if (_local3 > 0) {
if (freak_available == true) {
if (_local2 >= freak_next) {
freakoutNow();
}
}
chargeAccumulate(_local3);
weapon_target = targetAvailableOrAcquire(weapon_target, this, weapon_range_effective, target_type);
turretTryFiring(weapon_target);
}
time_last = _local2;
if (active == false) {
clearInterval(interval);
}
return(true);
}
function turretTryFiring(the_target) {
if (the_target && (the_target._name)) {
var _local3 = GameClock.timeNow() - time_last;
if (turretBearTowards(the_target, _local3) == true) {
} else if (weapon_must_face == true) {
return(false);
}
if (turretCanFire()) {
if (comboCanFire()) {
comboFire(the_target);
} else if (charge_cur > 0) {
chargeFire(the_target);
} else {
turretFire(the_target, weapon_damage_effective);
}
}
}
return(true);
}
function chargeFire(the_target) {
var _local2 = charge_cur / 100;
var _local7 = _local2;
var _local3 = _local2 * 3;
var _local5 = modifyStat(modify_damage_added, modify_damage_mult + _local7, weapon_damage);
var _local4 = modifyStat(modify_poison_added + _local3, modify_poison_mult, weapon_poison);
var _local8 = weapon_poison_effective;
weapon_poison_effective = _local4;
var _local6 = turretFire(the_target, weapon_damage_effective);
weapon_poison_effective = _local8;
charge_damage = _local5;
charge_cur = charge_cur - charge_use;
charge_cur = Math.max(charge_cur, 0);
return(_local6);
}
function chargeAccumulate(time_diff) {
if (charge_cur >= charge_max) {
return(false);
}
charge_cur = Math.max(charge_cur, 0);
var _local2 = charge_rate;
charge_cur = charge_cur + (_local2 * (time_diff / 1000));
charge_cur = Math.min(charge_cur, charge_max);
}
function comboFire(the_target) {
comboCountColours();
var _local5 = combo_blue.length;
var _local4 = combo_green.length;
var _local7 = combo_red.length;
var _local3 = combo_yellow.length;
var _local2 = new Object();
_local2.the_target = the_target;
if ((_local3 >= 2) && (_local4 == 1)) {
return(comboFireBlackHole(_local2));
}
if (((_local3 >= 1) && (_local5 == 1)) && (_local4 == 1)) {
return(comboFireShockwave(_local2));
}
if ((_local7 >= 1) && (_local5 == 1)) {
return(comboFireTazerBFG(_local2));
}
if (charge_cur > 0) {
return(chargeFire(the_target));
}
return(turretFire(the_target, weapon_damage_effective));
}
static var turret_cost = 50;
var display_name = "Tazer";
var sound_fire = "Tazer";
var weapon_rotate = 720;
var weapon_poison_max = 10;
var weapon_poison = 1;
var target_type = "fast";
var target_reacquire = true;
var freak_capable = true;
var freak_available = false;
var freak_level_damage = 4;
var freak_level_range = 0;
var freak_level_rate = 4;
var charge_cur = 0;
var charge_base = 100;
var charge_max = 100;
var charge_rate_base = 10;
var charge_rate = 10;
var charge_use = 50;
var charge_damage = 0;
var fusion_capable = true;
}
Symbol 1323 MovieClip [__Packages.turretinfo.TurretInfoFusion] Frame 0
class turretinfo.TurretInfoFusion extends OnslaughtObject
{
var StoreDamage, StorePoison, StoreTime, _visible, interval, cur_turret;
function TurretInfoFusion () {
super();
}
function onLoad() {
StoreDamage.textAlign = "center";
StorePoison.textAlign = "center";
StoreTime.textAlign = "center";
}
function update() {
if (_visible == false) {
clearInterval(interval);
interval = undefined;
return(undefined);
}
if (interval == undefined) {
interval = setInterval(this, "update", frame_update);
}
cur_turret = _root.Game.TurretManager.cur_turret;
if (!(cur_turret && (cur_turret._name))) {
return(undefined);
}
StoreDamage.__set__text(cur_turret.store_damage.toString());
StorePoison.__set__text(cur_turret.store_poison.toString());
var _local4 = GameClock.time_now - cur_turret.weapon_fired;
var _local3 = _local4 - cur_turret.store_time;
if (_local3 > 0) {
StoreTime.__set__text("Now!");
} else {
StoreTime.__set__text(Math.abs(Math.floor(_local3 / 1000)) + "s");
}
}
var frame_update = 200;
}
Symbol 1324 MovieClip [__Packages.turrets.TurretFusion] Frame 0
class turrets.TurretFusion extends turrets.Turret
{
var pre_setup, weapon_damage, weapon_range, weapon_rate, turret_type, weapon_type, upgrade_damage_cost, upgrade_damage_amount, upgrade_range_cost, upgrade_range_amount, upgrade_rate_cost, upgrade_rate_amount, comboGetInRange, modifyUpdate, IndicateDamage, upgradeAsPercent, IndicateRange, IndicateRate, WeaponLegs, weapon_fired, _x, _y, FusionGlowBlue, FusionGlowWhite, FusionGlowRed, time_last, fusion_list, arrayPick, fusion_in_range, weapon_target, targetAvailableOrAcquire, weapon_range_effective, target_type, turretBearTowards, weapon_must_face, target_bear_to, active, interval, turretCanFire, comboCanFire, comboCountColours, combo_blue, combo_green, combo_red, combo_yellow, trigDistanceTo, weapon_damage_effective, weapon_poison_effective, turretFire;
function TurretFusion () {
super();
if (pre_setup == false) {
weapon_damage = 1000000 /* 0x0F4240 */;
weapon_range = 300;
weapon_rate = 30;
turret_type = "Fusion";
weapon_type = "Spark";
upgrade_damage_cost = new Array();
upgrade_damage_amount = new Array();
upgrade_range_cost = new Array();
upgrade_range_amount = new Array();
upgrade_rate_cost = new Array();
upgrade_rate_amount = new Array();
upgrade_damage_cost[0] = 5000;
upgrade_damage_cost[1] = 7500;
upgrade_damage_cost[2] = 10000;
upgrade_damage_amount[0] = 3000000 /* 0x2DC6C0 */;
upgrade_damage_amount[1] = 10000000 /* 0x989680 */;
upgrade_damage_amount[2] = 35000000 /* 0x2160EC0 */;
upgrade_range_cost[0] = 4000;
upgrade_range_cost[1] = 4000;
upgrade_range_amount[0] = 400;
upgrade_range_amount[1] = 500;
upgrade_rate_cost[0] = 5000;
upgrade_rate_cost[1] = 8000;
upgrade_rate_amount[0] = 60;
upgrade_rate_amount[1] = 90;
comboGetInRange();
modifyUpdate();
}
IndicateDamage.setPercentage(upgradeAsPercent("damage"));
IndicateRange.setPercentage(upgradeAsPercent("range"));
IndicateRate.setPercentage(upgradeAsPercent("rate"));
WeaponLegs._rotation = Math.random() * 90;
}
function onLoad() {
fusionGetInRange();
weapon_fired = GameClock.timeNow();
var _local3 = new Object();
_local3._x = _x;
_local3._y = _y;
_local3._visible = false;
FusionGlowBlue = _root.Game.OverlayManager.overlayNew("FusionGlowBlue", _local3);
FusionGlowWhite = _root.Game.OverlayManager.overlayNew("FusionGlowWhite", _local3);
FusionGlowRed = _root.Game.OverlayManager.overlayNew("FusionGlowRed", _local3);
}
function update() {
var _local6 = GameClock.timeNow();
var _local5 = _local6 - time_last;
if (_local5 > 0) {
if (fusion_list == undefined) {
fusion_list = arrayPick(fusion_in_range, fusion_qty_in_range);
fusion_list_place = 0;
}
var _local4 = false;
var _local3;
var _local2 = fusion_list_place;
while (_local2 < fusion_qty_in_range) {
if (_local4 == true) {
} else {
_local3 = fusion_list[_local2];
if (_local3.turretCanFire()) {
_local3.turretFire(this, _local3.weapon_damage_effective);
_local4 = true;
}
}
_local2++;
}
if (_local4 == false) {
fusion_list = undefined;
}
weapon_target = targetAvailableOrAcquire(weapon_target, this, weapon_range_effective, target_type);
if (weapon_target) {
if (turretBearTowards(weapon_target, _local5) == true) {
} else if (weapon_must_face == true) {
return(false);
}
if (fusionCanFire()) {
turretTryFiring(weapon_target);
}
} else if (target_bear_to && (target_bear_to._name)) {
turretBearTowards(target_bear_to, _local5);
}
fusionSetGlow();
}
time_last = _local6;
if (active == false) {
clearInterval(interval);
}
return(true);
}
function turretTryFiring(the_target) {
if (the_target && (the_target._name)) {
var _local3 = GameClock.timeNow() - time_last;
if (turretBearTowards(the_target, _local3) == true) {
} else if (weapon_must_face == true) {
return(false);
}
if (turretCanFire()) {
if (comboCanFire()) {
comboFire(the_target);
} else {
fusionFire(the_target);
}
}
}
return(true);
}
function onUpgrade() {
fusionGetInRange();
}
function onSell() {
FusionGlowWhite.removeMovieClip();
FusionGlowBlue.removeMovieClip();
FusionGlowRed.removeMovieClip();
}
function onMove() {
fusionGetInRange();
FusionGlowWhite._x = _x;
FusionGlowWhite._y = _y;
FusionGlowBlue._x = _x;
FusionGlowBlue._y = _y;
FusionGlowRed._x = _x;
FusionGlowRed._y = _y;
}
function comboFire(the_target) {
comboCountColours();
var _local7 = combo_blue.length;
var _local6 = combo_green.length;
var _local5 = combo_red.length;
var _local4 = combo_yellow.length;
var _local2 = new Object();
_local2.the_target = the_target;
fusionFire(the_target);
}
function attackerHit(the_damage) {
store_damage = store_damage + (the_damage * fusion_mult_damage);
}
function attackerPoison(the_poison) {
store_poison = store_poison + (the_poison * fusion_mult_poison);
}
function fusionGetInRange() {
var _local3 = TurretManager.turrets;
var _local2;
var _local4;
fusion_in_range = new Array();
fusion_qty_in_range = 0;
for (var _local5 in _local3) {
_local2 = _local3[_local5];
if (_local2 != this) {
if (_local2.fusion_capable) {
_local4 = trigDistanceTo(this, _local2);
if (_local4 <= weapon_range_effective) {
fusion_in_range.push(_local2);
fusion_qty_in_range++;
}
}
}
}
}
function fusionNotifyNew(the_turret) {
fusionGetInRange();
return(false);
}
function fusionNotifyGone(the_turret) {
var _local3 = new Array();
var _local2;
for (var _local5 in fusion_in_range) {
_local2 = fusion_in_range[_local5];
if (_local2 != the_turret) {
_local3.push(_local2);
}
}
fusion_in_range = _local3;
}
function fusionSetGlow() {
if (store_damage == 0) {
FusionGlowWhite._visible = false;
FusionGlowRed._visible = false;
FusionGlowBlue._visible = false;
} else {
var _local2 = 80;
var _local7 = 1.1;
var _local3;
var _local6;
var _local5 = Math.floor(store_damage / 500000);
var _local4 = _local5 % _local2;
if (fusion_glow_pulse == true) {
fusion_glow_pulse = false;
_local3 = _local2 * _local7;
_local6 = _local4 * _local7;
} else {
fusion_glow_pulse = true;
_local3 = _local2;
_local6 = _local4;
}
if (_local5 >= (_local2 * 3)) {
FusionGlowWhite._visible = true;
FusionGlowBlue._visible = true;
FusionGlowRed._visible = true;
FusionGlowWhite._width = _local3;
FusionGlowWhite._height = _local3;
FusionGlowBlue._width = _local2;
FusionGlowBlue._height = _local2;
FusionGlowRed._width = _local2;
FusionGlowRed._height = _local2;
sound_fire = "FusionMax";
} else if (_local5 >= (_local2 * 2)) {
FusionGlowWhite._visible = true;
FusionGlowBlue._visible = true;
FusionGlowRed._visible = true;
FusionGlowWhite._width = _local3;
FusionGlowWhite._height = _local3;
FusionGlowBlue._width = _local2;
FusionGlowBlue._height = _local2;
FusionGlowRed._width = _local4;
FusionGlowRed._height = _local4;
sound_fire = "FusionHigh";
} else if (_local5 >= _local2) {
FusionGlowWhite._visible = true;
FusionGlowBlue._visible = true;
FusionGlowRed._visible = false;
FusionGlowWhite._width = _local3;
FusionGlowWhite._height = _local3;
FusionGlowBlue._width = _local4;
FusionGlowBlue._height = _local4;
sound_fire = "FusionMed";
} else if (_local5 > 0) {
FusionGlowWhite._visible = true;
FusionGlowBlue._visible = false;
FusionGlowRed._visible = false;
FusionGlowWhite._width = _local6;
FusionGlowWhite._height = _local6;
sound_fire = "FusionLow";
}
}
}
function fusionCanFire() {
var _local2 = GameClock.timeNow() - weapon_fired;
return(((_local2 > store_time) ? true : false));
}
function fusionFire(the_target) {
var _local5 = weapon_damage_effective;
var _local3 = Math.min(_local5, store_damage);
var _local4 = _local3 + weapon_damage_effective;
var _local2;
_local2 = Math.min(100, store_poison);
weapon_poison_effective = _local2;
turretFire(the_target, _local4);
_local2 = Math.min(100, store_poison);
weapon_poison_effective = _local2;
store_damage = store_damage - _local3;
store_poison = store_poison - _local2;
if (store_damage == 0) {
store_mode = 0;
}
return(true);
}
static var turret_cost = 12000;
var display_name = "Fusion";
var sound_fire = "FusionLow";
var weapon_rotate = 90;
var modify_possible = false;
var combo_never = true;
var store_damage = 0;
var store_poison = 0;
var store_time = 6000;
var store_mode = 0;
var frame_space = 64;
var fusion_qty_in_range = 0;
var fusion_list_place = 0;
var fusion_mult_damage = 1.15;
var fusion_mult_poison = 1.15;
var fusion_glow_pulse = false;
}
Symbol 1325 MovieClip [__Packages.turretinfo.TurretInfoUpgrades] Frame 0
class turretinfo.TurretInfoUpgrades extends OnslaughtObject
{
var DamageCost, RangeCost, RateCost, DamageGraph, RangeGraph, RateGraph, _visible, cur_turret;
function TurretInfoUpgrades () {
super();
DamageCost.onClick = function () {
SoundPlayer.play("ClickButton");
if (Key.isDown(16)) {
this._parent.cur_turret.upgradeDamageMax();
} else {
this._parent.cur_turret.upgradeDamage();
}
};
RangeCost.onClick = function () {
SoundPlayer.play("ClickButton");
if (Key.isDown(16)) {
this._parent.cur_turret.upgradeRangeMax();
} else {
this._parent.cur_turret.upgradeRange();
}
};
RateCost.onClick = function () {
SoundPlayer.play("ClickButton");
if (Key.isDown(16)) {
this._parent.cur_turret.upgradeRateMax();
} else {
this._parent.cur_turret.upgradeRate();
}
};
_root.Game.TurretManager.addListener(this);
_root.Game.CashManager.addListener(this);
}
function onLoad() {
DamageGraph.graphSetScale(new Array(10, 100, 1000, 10000, 65000));
RangeGraph.graphSetScale(new Array(100, 150, 200, 250, 350));
RateGraph.graphSetScale(new Array(50, 100, 150, 200, 250));
}
function onTurretUpgrade() {
update();
}
function onTurretChange() {
update();
}
function onCashChange() {
updateCost();
}
function update() {
if (_visible == false) {
return(undefined);
}
cur_turret = _root.Game.TurretManager.cur_turret;
if (!(cur_turret && (cur_turret._name))) {
return(undefined);
}
DamageGraph.graphSetCurrent(cur_turret.weapon_damage);
DamageGraph.graphSetPossible(cur_turret.upgradeGetAmount("damage"));
DamageGraph.graphSetLimit(cur_turret.upgradeGetMax("damage"));
RangeGraph.graphSetCurrent(cur_turret.weapon_range);
RangeGraph.graphSetPossible(cur_turret.upgradeGetAmount("range"));
RangeGraph.graphSetLimit(cur_turret.upgradeGetMax("range"));
RateGraph.graphSetCurrent(cur_turret.weapon_rate);
RateGraph.graphSetPossible(cur_turret.upgradeGetAmount("rate"));
RateGraph.graphSetLimit(cur_turret.upgradeGetMax("rate"));
updateCost();
}
function updateCost() {
if (_visible == false) {
return(undefined);
}
cur_turret = _root.Game.TurretManager.cur_turret;
if (!(cur_turret && (cur_turret._name))) {
return(undefined);
}
var _local3 = cur_turret.upgradeGetCost("damage");
var _local4 = cur_turret.upgradeGetCost("range");
var _local5 = cur_turret.upgradeGetCost("rate");
if (_local3) {
DamageCost.text = "$" + _local3;
DamageCost.disabled = false;
} else {
DamageCost.text = "Max!";
DamageCost.disabled = true;
}
if (_local4) {
RangeCost.text = "$" + _local4;
RangeCost.disabled = false;
} else {
RangeCost.text = "Max!";
RangeCost.disabled = true;
}
if (_local5) {
RateCost.text = "$" + _local5;
RateCost.disabled = false;
} else {
RateCost.text = "Max!";
RateCost.disabled = true;
}
}
var frame_update = 200;
}
Symbol 1326 MovieClip [__Packages.TurretUpgradeLevels] Frame 0
class TurretUpgradeLevels extends OnslaughtObject
{
var LineLeft, LineRight, BarLeft, BarRight, trigDec2Hex;
function TurretUpgradeLevels () {
super();
LineLeft._visible = false;
LineRight._visible = false;
BarLeft._visible = false;
BarRight._visible = false;
if (init_val > 0) {
setPercentage(init_val);
}
}
function setPercentage(new_val) {
var _local3 = Math.min(100, Math.max(0, new_val));
if (_local3 > 0) {
LineLeft._visible = true;
LineRight._visible = true;
BarLeft._visible = true;
BarRight._visible = true;
} else {
LineLeft._visible = false;
LineRight._visible = false;
BarLeft._visible = false;
BarRight._visible = false;
}
if (_local3 >= 100) {
LineLeft._visible = false;
LineRight._visible = false;
}
var _local6 = 99.9;
var _local4 = 0 + ((_local3 / 100) * full_sweep);
_local4 = _local4 / 2;
var _local7 = 0.5;
var _local2;
_local2 = new Object();
_local2.overwrite = true;
_local2._rotation = _local4;
gs.TweenLite.to(BarLeft, _local7, _local2);
_local2 = new Object();
_local2.overwrite = true;
_local2._rotation = _local4;
gs.TweenLite.to(LineLeft, _local7, _local2);
_local2 = new Object();
_local2.overwrite = true;
_local2._rotation = 180 + (-_local4);
gs.TweenLite.to(BarRight, _local7, _local2);
_local2 = new Object();
_local2.overwrite = true;
_local2._rotation = 180 + (-_local4);
gs.TweenLite.to(LineRight, _local7, _local2);
var _local27 = 255;
var _local18 = 32;
var _local26 = 32;
var _local22 = parseInt((("0x" + trigDec2Hex(_local27)) + trigDec2Hex(_local18)) + trigDec2Hex(_local26));
var _local14 = 255;
var _local15 = 255;
var _local13 = 32;
var _local36 = parseInt((("0x" + trigDec2Hex(_local14)) + trigDec2Hex(_local15)) + trigDec2Hex(_local13));
var _local23 = 64;
var _local29 = 255;
var _local21 = 64;
var _local20 = parseInt((("0x" + trigDec2Hex(_local23)) + trigDec2Hex(_local29)) + trigDec2Hex(_local21));
var _local8 = _local27;
var _local16 = _local18;
var _local9 = _local26;
var _local24 = _local14;
var _local19 = _local15;
var _local25 = _local13;
if (_local3 >= _local6) {
_local8 = _local14;
_local16 = _local15;
_local9 = _local13;
_local24 = _local23;
_local19 = _local29;
_local25 = _local21;
}
var _local33 = _local24 - _local8;
var _local31 = _local19 - _local16;
var _local35 = _local25 - _local9;
var _local10 = new Color(BarLeft);
var _local12 = new Color(BarRight);
if (_local3 >= 100) {
_local10.setRGB(_local20);
_local12.setRGB(_local20);
LineLeft._visible = false;
LineRight._visible = false;
} else if (_local3 <= 0) {
_local10.setRGB(_local22);
_local12.setRGB(_local22);
} else {
var _local5 = 0;
var _local11 = _local3 - _local6;
var _local17 = 100 - _local6;
_local5 = _local11 / _local17;
if (_local3 < _local6) {
_local11 = _local3;
_local17 = _local6;
_local5 = _local11 / _local17;
}
var _local32 = Math.floor(_local8 + (_local5 * _local33));
var _local34 = Math.floor(_local16 + (_local5 * _local31));
var _local30 = Math.floor(_local9 + (_local5 * _local35));
var _local28 = parseInt((("0x" + trigDec2Hex(_local32)) + trigDec2Hex(_local34)) + trigDec2Hex(_local30));
_local10.setRGB(_local28);
_local12.setRGB(_local28);
}
}
var init_val = 0;
var full_sweep = 120;
}
Symbol 1327 MovieClip [__Packages.turretinfo.TurretInfoGeneral] Frame 0
class turretinfo.TurretInfoGeneral extends OnslaughtObject
{
var ButtonSell, CashValue, Shots, Kills, _visible, cur_turret, UpgradeLevelDamage, UpgradeLevelRange, UpgradeLevelRate, Damage, Range, Rate, target_modes_valid, TargetMode;
function TurretInfoGeneral () {
super();
_root.Game.TurretManager.addListener(this);
}
function onLoad() {
ButtonSell.__set__label("Sell");
var _local3 = function () {
SoundPlayer.play("ClickButton");
_root.Game.turretSell();
};
ButtonSell.addEventListener("click", _local3);
CashValue.textAlign = "center";
Shots.textAlign = "center";
Kills.textAlign = "center";
update();
}
function onTurretChange() {
update();
}
function onTurretStatsChange() {
updateGraphs();
updateStats();
}
function onTurretFire() {
updateKills();
}
function onTurretKill() {
updateKills();
}
function update() {
if (_visible == false) {
return(undefined);
}
cur_turret = _root.Game.TurretManager.cur_turret;
if (!(cur_turret && (cur_turret._name))) {
return(undefined);
}
updateStats();
updateGraphs();
updateKills();
}
function updateGraphs() {
if (_visible == false) {
return(undefined);
}
cur_turret = _root.Game.TurretManager.cur_turret;
if (!(cur_turret && (cur_turret._name))) {
return(undefined);
}
var _local5 = cur_turret.upgradeAsPercent("damage");
var _local4 = cur_turret.upgradeAsPercent("range");
var _local3 = cur_turret.upgradeAsPercent("rate");
UpgradeLevelDamage.setPercentage(_local5);
UpgradeLevelRange.setPercentage(_local4);
UpgradeLevelRate.setPercentage(_local3);
}
function updateKills() {
if (_visible == false) {
return(undefined);
}
cur_turret = _root.Game.TurretManager.cur_turret;
if (!(cur_turret && (cur_turret._name))) {
return(undefined);
}
Shots.__set__text(cur_turret.weapon_fire_count.toString());
Kills.__set__text(cur_turret.weapon_kill_count.toString());
}
function updateStats() {
if (_visible == false) {
return(undefined);
}
cur_turret = _root.Game.TurretManager.cur_turret;
if (!(cur_turret && (cur_turret._name))) {
return(undefined);
}
Shots.__set__text(cur_turret.weapon_fire_count.toString());
Kills.__set__text(cur_turret.weapon_kill_count.toString());
CashValue.__set__text("$" + Math.floor(cur_turret.cash_value * _root.Game.TurretManager.turret_resale));
var _local5 = new Array();
var _local3 = new Array();
var _local4 = new Array();
_local5.push(cur_turret.weapon_damage_effective);
if (cur_turret.modify_damage_added != 0) {
_local5.push("+" + cur_turret.modify_damage_added);
}
if (cur_turret.modify_damage_mult != 1) {
_local5.push("x" + (cur_turret.modify_damage_mult - 1));
}
Damage.__set__text(_local5.join(", "));
_local3.push(cur_turret.weapon_range_effective);
if (cur_turret.modify_range_added != 0) {
_local3.push("+" + cur_turret.modify_range_added);
}
if (cur_turret.modify_range_mult != 1) {
_local3.push("x" + (cur_turret.modify_range_mult - 1));
}
Range.__set__text(_local3.join(", "));
_local4.push(cur_turret.weapon_rate_effective);
if (cur_turret.modify_rate_added != 0) {
_local4.push("+" + cur_turret.modify_rate_added);
}
if (cur_turret.modify_rate_mult != 1) {
_local4.push("x" + (cur_turret.modify_rate_mult - 1));
}
Rate.__set__text(_local4.join(", "));
var _local6 = target_modes_valid[cur_turret.target_type];
if (cur_turret.target_reacquire == true) {
TargetMode.__set__text("Any " + _local6.title.toLowerCase());
} else {
TargetMode.__set__text("Lock on to " + _local6.title.toLowerCase());
}
}
var frame_update = 200;
}
Symbol 1328 MovieClip [__Packages.turretinfo.TurretInfoBuild] Frame 0
class turretinfo.TurretInfoBuild extends OnslaughtManager
{
var item_list_by_type, item_list;
function TurretInfoBuild () {
super();
}
function onLoad() {
rackReset();
}
function rackItemAdd(item_id, item_cost, item_type) {
var _local4 = "RackItem" + item_cur.toString();
var _local2 = this[_local4];
var _local3 = WeaponReviews.weapon_ratings["Turret" + item_type];
_local2.item_id = item_id;
_local2.item_cost = item_cost;
_local2.item_type = item_type;
_local2.item_tooltip = _local3.tooltip_text;
_local2.itemPopulate();
item_list_by_type[item_type] = _local2;
item_cur++;
}
function rackEmpty() {
var _local2;
for (var _local3 in item_list) {
_local2 = item_list[_local3];
_local2.itemReset();
}
item_list = new Array();
item_list_by_type = new Array();
item_cur = 0;
}
function rackReset(populate) {
rackEmpty();
var _local4 = new Array();
var _local3;
for (_local3 in _root.Game.turrets_available) {
if (_root.Game.turrets_available[_local3] == true) {
_local4.unshift(_local3);
}
}
for (var _local6 in _local4) {
_local3 = _local4[_local6];
rackItemAdd("Turret" + _local3, _root.Game.turrets_cost[_local3], _local3, populate);
}
}
function rackTypeRange(the_type) {
var _local2 = item_list_by_type[the_type];
if (_local2) {
return(_local2.turret.weapon_range);
}
return(undefined);
}
var item_cur = 0;
var item_total = 16;
}
Symbol 1329 MovieClip [__Packages.turretinfo.TurretInfoCombos] Frame 0
class turretinfo.TurretInfoCombos extends OnslaughtObject
{
var interval, _visible, cur_turret, Combo, ComboFire, ComboAssist, ComboNext;
function TurretInfoCombos () {
super();
interval = setInterval(this, "update", frame_update);
}
function update() {
if (_visible == false) {
clearInterval(interval);
interval = undefined;
return(undefined);
}
if (interval == undefined) {
interval = setInterval(this, "update", frame_update);
}
cur_turret = _root.Game.TurretManager.cur_turret;
var _local5 = new Array();
var _local3;
var _local4;
for (var _local6 in cur_turret.combo_in_range) {
_local3 = cur_turret.combo_in_range[_local6];
if (_local3.combo_capable) {
_local4 = _local3.display_name;
_local5.push(_local4);
}
}
var _local8 = GameClock.timeNow();
_local5.sort();
Combo.text = _local5.join(newline);
ComboFire.text = cur_turret.combo_fire_count;
ComboAssist.text = cur_turret.combo_assist_count;
var _local7 = Math.floor((cur_turret.combo_next - _local8) / 1000);
if (isNaN(_local7)) {
ComboNext.text = "n/a";
} else if (_local7 < 0) {
ComboNext.text = "Now!";
} else {
ComboNext.text = _local7 + "s";
}
}
var frame_update = 200;
}
Symbol 1330 MovieClip [__Packages.turretinfo.TurretInfoModify] Frame 0
class turretinfo.TurretInfoModify extends OnslaughtObject
{
var _visible, cur_turret, Modify;
function TurretInfoModify () {
super();
_root.Game.TurretManager.addListener(this);
}
function onTurretChange() {
update();
}
function onTurretStatsChange() {
update();
}
function update() {
if (_visible == false) {
return(undefined);
}
cur_turret = _root.Game.TurretManager.cur_turret;
if (!(cur_turret && (cur_turret._name))) {
return(undefined);
}
var _local5 = new Array();
var _local3;
var _local4;
for (var _local6 in cur_turret.modify_in_range) {
_local3 = cur_turret.modify_in_range[_local6];
if (_local3.modify_possible) {
_local4 = _local3.display_name;
_local5.push(_local4);
}
}
Modify.text = _local5.join(newline);
}
}
Symbol 1331 MovieClip [__Packages.turretinfo.TurretInfoGameOver] Frame 0
class turretinfo.TurretInfoGameOver extends OnslaughtManager
{
var Working, ButtonRestart, ButtonBack, ScoreSubmit, MapRate, ButtonSubmit, Rating, PlayerName, Shots, Kills, Spend, Score, LeagueName, LeaguePass;
function TurretInfoGameOver () {
super();
}
function onLoad() {
Working._visible = false;
var _local6 = function () {
SoundPlayer.play("ClickButton");
_root.Game.resetGame();
};
ButtonRestart.addEventListener("click", _local6);
var _local5 = function () {
SoundPlayer.play("ClickButton");
_root.Game.gotoHomepage();
};
ButtonBack.addEventListener("click", _local5);
var _local4 = function () {
SoundPlayer.play("ClickButton");
this._parent._parent.goSubmit();
};
if (_root.game_map_custom == true) {
ScoreSubmit._visible = false;
MapRate._visible = true;
ButtonSubmit = MapRate.ButtonSubmit;
Working = MapRate.Working;
Rating = MapRate.Rating;
var _local3 = new Object();
_local3.trackWidth = 132;
_local3.trackHeight = 4;
_local3.trackFill = 12303291 /* 0xBBBBBB */;
_local3.handleWidth = 6;
_local3.handleHeight = 15;
_local3.handleBorder = 10066329 /* 0x999999 */;
_local3.handleFill = 15658734 /* 0xEEEEEE */;
_local3.obj = this;
_local3.min = 0;
_local3.max = 7;
_local3.snap = 0.5;
_local3.start = 3.5;
Rating.init(_local3);
} else if (_root.Game.sandboxed == true) {
ScoreSubmit._visible = false;
MapRate._visible = false;
} else if (GameManager.mod_active == true) {
ScoreSubmit._visible = false;
MapRate._visible = false;
} else {
ScoreSubmit._visible = true;
MapRate._visible = false;
ButtonSubmit = ScoreSubmit.ButtonSubmit;
PlayerName = ScoreSubmit.PlayerName;
Working = ScoreSubmit.Working;
var _local7 = SharedObject.getLocal("onslaught");
PlayerName.__set__text(_local7.data.PrefPlayerName);
if ((PlayerName.__get__text() == undefined) || (PlayerName.__get__text() == "undefined")) {
PlayerName.__set__text("");
}
if (GameStatus.kongregate_mode == true) {
ScoreSubmit._visible = false;
MapRate._visible = false;
}
}
Working._visible = false;
ButtonSubmit.addEventListener("click", _local4);
}
function goSubmit() {
if (_root.game_map_custom == true) {
Working._visible = true;
ButtonRestart.enabled = false;
ButtonBack.enabled = false;
ButtonSubmit.enabled = false;
ButtonSubmit.__set__label("Sending...");
var _local6 = SharedObject.getLocal("onslaught");
var _local7 = new Date();
var _local13 = ("http://onslaught.playr.co.uk/map.rate.ingame.php?t=" + _local7.getTime()) + "";
var _local3 = new LoadVars();
_local3.user = _local6.data.PrefAccountLogin;
_local3.pass = _local6.data.PrefAccountPass;
_local3.map = _root.game_map;
_local3.rating = Rating.value;
_local3.t = _local7.getTime();
var _local5 = new LoadVars();
_local5.from = this;
_local5.onLoad = function (success) {
if (success == true) {
if (this.error) {
this.from.ButtonSubmit.label = "Error!";
_root.Game.messageNew(this.error);
this.from.ButtonSubmit.enabled = true;
} else {
this.from.ButtonSubmit.label = "Thanks!";
}
} else {
_root.Game.messageNew(this.error);
}
this.from.ButtonRestart.enabled = true;
this.from.ButtonBack.enabled = true;
this.from.Working._visible = false;
};
_local3.sendAndLoad(_local13, _local5, "POST");
} else if (GameStatus.kongregate_mode == true) {
} else if (GameStatus.gamegum_mode == true) {
Working._visible = false;
var _local12 = _root.Game.total_kills * _root.Game.total_spent;
var _local10 = _root.Game.RoadManager.mapName(_root.game_map);
var _local4 = new com.pointersoft.gameapi.GameStat(GameStatus.gamegum_user, GameStatus.gamegum_pass, "Onslaught2", _root.Game.game_version);
_local4.sendStat("Kills", _root.Game.total_kills);
_local4.sendStat("Spend", _root.Game.total_spent);
_local4.sendStat("Score on " + _local10, _root.Game.total_spent);
_local4.sendScore(_local12);
ButtonSubmit.enabled = false;
ButtonSubmit.__set__label("Thanks!");
} else {
if (PlayerName.__get__text() == "") {
PlayerName.setStyle("borderColor", 16724787);
return(false);
}
Working._visible = true;
ButtonRestart.enabled = false;
ButtonBack.enabled = false;
ButtonSubmit.enabled = false;
ButtonSubmit.__set__label("Sending...");
var _local3 = new LoadVars();
_local3.player = PlayerName.text;
_local3.game = "onslaught2";
_local3.shots = Shots.text;
_local3.kills = Kills.text;
_local3.spent = Spend.text;
_local3.score = Score.text;
_local3.combos = _root.Game.total_combos;
_local3.version = _root.Game.game_version;
_local3.map = _root.game_map;
_local3.layout = JSON.stringify(_root.Game.TurretManager.turretGetLayout());
_local3.league_name = LeagueName.text;
_local3.league_pass = LeaguePass.text;
var _local11 = ((((((((((((((_local3.player + _local3.score) + _local3.kills) + _local3.spent) + _local3.shots) + _local3.combos) + _local3.game) + _local3.version) + _local3.map) + _local3.layout) + "81ff910b") + "c811c2da") + "7c8b1982") + "36b1c2ff") + "29ff7abc") + "d919f1ba";
var _local9 = MD5.calculate(_local11);
var _local8 = MD5.calculate(_local9);
_local3.confirm = _local8;
var _local5 = new LoadVars();
_local5.from = this;
_local5.onLoad = function (success) {
if (success == true) {
this.from.ButtonSubmit.label = "Thanks!";
} else {
this.from.ButtonSubmit.label = "Error!";
}
this.from.ButtonRestart.enabled = true;
this.from.ButtonBack.enabled = true;
this.from.Working._visible = false;
};
var _local7 = new Date();
var _local13 = "http://onslaught.playr.co.uk/score.submit.php?t=" + _local7.getTime();
_local3.sendAndLoad(_local13, _local5, "POST");
}
}
function update() {
Kills.__set__text(_root.Game.total_kills + "");
Shots.__set__text(_root.Game.total_shots + "");
Spend.__set__text(_root.Game.total_spent + "");
Score.__set__text((_root.Game.total_kills * _root.Game.total_spent) + "");
var _local3 = SharedObject.getLocal("onslaught");
PlayerName.__set__text(_local3.data.PrefPlayerName);
LeagueName.__set__text(_local3.data.PrefLeagueID);
LeaguePass.__set__text(_local3.data.PrefLeagePass);
if (PlayerName.__get__text() == undefined) {
PlayerName.__set__text("");
}
if (LeagueName.__get__text() == undefined) {
LeagueName.__set__text("");
}
if (LeaguePass.__get__text() == undefined) {
LeaguePass.__set__text("");
}
if (PlayerName.__get__text() == "undefined") {
PlayerName.__set__text("");
}
if (LeagueName.__get__text() == "undefined") {
LeagueName.__set__text("");
}
if (LeaguePass.__get__text() == "undefined") {
LeaguePass.__set__text("");
}
}
var setup = false;
}
Symbol 1332 MovieClip [__Packages.turretinfo.TurretInfoChallengeOver] Frame 0
class turretinfo.TurretInfoChallengeOver extends OnslaughtManager
{
var ButtonRestart, ButtonBack, TheTitle, TheText, Kills, Time, Spend, Score;
function TurretInfoChallengeOver () {
super();
}
function onLoad() {
var _local4 = function () {
SoundPlayer.play("ClickButton");
_root.Game.resetGame();
};
ButtonRestart.addEventListener("click", _local4);
var _local3 = function () {
SoundPlayer.play("ClickButton");
_root.Game.gotoHomepage();
};
ButtonBack.addEventListener("click", _local3);
}
function challengeWon() {
TheTitle.text = "Challenge Passed!";
TheText.text = "Well done, you passed the challenge!";
}
function challengeLost() {
TheTitle.text = "Challenge Failed.";
TheText.text = "Oh noes, you didn't beat the challenge :( Why not try again?";
}
function update() {
Kills.__set__text(_root.Game.total_kills + "");
Time.__set__text(_root.Game.total_time + "");
Spend.__set__text(_root.Game.total_spent + "");
Score.__set__text((_root.Game.total_kills * _root.Game.total_spent) + "");
}
var setup = false;
}
Symbol 1333 MovieClip [__Packages.turretinfo.TurretInfoGame] Frame 0
class turretinfo.TurretInfoGame extends OnslaughtManager
{
var ButtonRestart, ButtonBack, ButtonSettings, ButtonMap, Maths, interval, _visible, _parent, CacheHitSin, CacheHitCos, CacheHitSqrt, CacheHitAtan2, CacheHitFwd, CacheRate, FPS;
function TurretInfoGame () {
super();
ButtonRestart.__set__label("Restart");
ButtonBack.__set__label("Main Menu");
ButtonSettings.__set__label("Settings");
ButtonMap.__set__label("Map Mode");
ButtonRestart.focusEnabled = false;
ButtonBack.focusEnabled = false;
ButtonSettings.focusEnabled = false;
ButtonMap.focusEnabled = false;
ButtonBack.onPress = mx.utils.Delegate.create(this, exitConfirm);
ButtonRestart.onPress = mx.utils.Delegate.create(this, restartConfirm);
ButtonSettings.onPress = function () {
SoundPlayer.play("ClickButton");
_root.Game.settingsShow();
};
ButtonMap.onPress = function () {
SoundPlayer.play("ClickButton");
GameStatus.map_load = true;
GameStatus.game_map = _root.game_map;
GameStatus.game_map_custom = _root.game_map_custom;
_root.gotoPage("Mapping");
};
if (GameStatus.map_mode != true) {
ButtonMap._visible = false;
}
Maths = new MathCache();
interval = setInterval(this, "update", frame_update);
game_fps_last = GameClock.timeNow(true);
}
function onEnterFrame() {
game_fps++;
}
function exitConfirm() {
SoundPlayer.play("ClickButton");
_visible = false;
_parent.InfoExit.mode = turretinfo.TurretInfoExit.MODE_EXIT;
_parent.InfoExit.update();
_parent.InfoExit._visible = true;
}
function restartConfirm() {
SoundPlayer.play("ClickButton");
_visible = false;
_parent.InfoExit.mode = turretinfo.TurretInfoExit.MODE_RESTART;
_parent.InfoExit.update();
_parent.InfoExit._visible = true;
}
function update() {
if (_visible == false) {
clearInterval(interval);
interval = undefined;
return(undefined);
}
if (interval == undefined) {
interval = setInterval(this, "update", frame_update);
}
var _local2 = Maths.cacheHitRate();
CacheHitSin.text = _local2.hit_sin;
CacheHitCos.text = _local2.hit_cos;
CacheHitSqrt.text = _local2.hit_sqrt;
CacheHitAtan2.text = _local2.hit_atan2;
CacheHitFwd.text = _local2.hit_fwd;
if (isNaN(_local2.total_rate)) {
CacheRate.text = "0%";
} else {
CacheRate.text = _local2.total_rate + "%";
}
var _local3 = GameClock.timeNow(true);
var _local4 = _local3 - game_fps_last;
var _local5 = _local4 / 1000;
FPS.text = Math.floor(game_fps / _local5);
game_fps_last = _local3;
game_fps = 0;
}
var frame_update = 1000;
var game_fps = 0;
var game_fps_last = 0;
}
Symbol 1334 MovieClip [__Packages.turretinfo.TurretInfoExit] Frame 0
class turretinfo.TurretInfoExit extends MovieClip
{
var ButtonExit, TheTitle, TheText, ButtonCancel, onExitCancel, onExitConfirm, onRestartConfirm;
function TurretInfoExit () {
super();
}
function update() {
switch (mode) {
case MODE_EXIT :
ButtonExit.onPress = mx.utils.Delegate.create(this, exitConfirm);
TheTitle.text = "Exit to Main Menu";
TheText.text = "Are you sure you\nwant to exit the game?";
ButtonExit.__set__label("Quit");
break;
case MODE_RESTART :
ButtonExit.onPress = mx.utils.Delegate.create(this, restartConfirm);
TheTitle.text = "Restart This Game";
TheText.text = "Are you sure you\nwant to restart the game?";
ButtonExit.__set__label("Restart");
break;
default :
mode = MODE_EXIT;
update();
}
}
function onLoad() {
ButtonCancel.onPress = mx.utils.Delegate.create(this, exitCancel);
update();
}
function exitCancel() {
onExitCancel();
}
function exitConfirm() {
onExitConfirm();
GameStatus.game_type = "normal";
_root.Game.gotoHomepage();
}
function restartConfirm() {
onRestartConfirm();
_root.Game.resetGame();
}
static var MODE_EXIT = "exit";
static var MODE_RESTART = "restart";
var mode = MODE_EXIT;
}
Symbol 1335 MovieClip [__Packages.turretinfo.TurretInfoSpecific] Frame 0
class turretinfo.TurretInfoSpecific extends OnslaughtManager
{
function TurretInfoSpecific () {
super();
}
}
Symbol 1336 MovieClip [__Packages.turretinfo.TurretInfo] Frame 0
class turretinfo.TurretInfo extends OnslaughtObject
{
var _x, _y, _alpha, info_page, ButtonBuild, ButtonGeneral, ButtonUpgrades, ButtonCombos, ButtonSpecific, ButtonPause, ButtonGame, ButtonKeys, ButtonNextWave, ButtonSettings, ButtonMessages, ButtonSandbox, ButtonGameOver, TitleBar, CloseButton, cur_turret, prev_turret, InfoExit, InfoMessages, InfoNone, InfoGame, effect, effectNew, interval, TurretName, InfoGreen, InfoBlue, InfoRed, InfoYellow, InfoSniper, InfoFusion, InfoModify, InfoSpecific, cur_tab, InfoGeneral, InfoUpgrades, InfoCombos, InfoBuild, InfoSettings, InfoSandbox, InfoGameOver, InfoChallengeOver;
function TurretInfo () {
super();
}
function init() {
_x = GameStatus.turret_info_x;
_y = GameStatus.turret_info_y;
_alpha = 80;
info_page = undefined;
infoHideAll();
ButtonBuild.text = "Build";
ButtonGeneral.text = "General";
ButtonUpgrades.text = "Upgrades";
ButtonCombos.text = "Combos";
ButtonSpecific.text = "Specific";
ButtonPause.text = "Pause";
ButtonGame.text = "Game";
ButtonKeys.text = "Keys";
ButtonNextWave.text = "Next Wave";
ButtonSettings.text = "Settings";
ButtonMessages.text = "Messages";
ButtonSandbox.text = "Sandbox";
ButtonGameOver.text = "Game Over";
ButtonGameOver._visible = false;
if (_root.Game.game_type == "sandbox") {
ButtonSandbox._visible = true;
} else {
ButtonSandbox._visible = false;
}
TitleBar.onPress = function () {
if (this._parent.is_visible != true) {
_root.Game.turretInfoShow();
return(undefined);
}
this._parent.startDrag();
};
TitleBar.onRelease = function () {
this._parent.stopDrag();
};
CloseButton.onPress = function () {
_root.Game.turretInfoHide();
};
ButtonGeneral.onPress = function () {
if (this._parent.is_visible != true) {
_root.Game.turretInfoShow();
return(undefined);
}
this._parent.infoTabSelect(this);
this._parent.infoButtonShow();
this._parent.infoHideAll();
this._parent.InfoGeneral._visible = true;
this._parent.info_page = "general";
this._parent.InfoGeneral.update();
if (this._parent.no_sound != true) {
SoundPlayer.play("ClickTab");
}
};
ButtonCombos.onPress = function () {
if (this._parent.is_visible != true) {
_root.Game.turretInfoShow();
return(undefined);
}
this._parent.infoTabSelect(this);
this._parent.infoButtonShow();
this._parent.infoHideAll();
this._parent.InfoCombos._visible = true;
this._parent.info_page = "combos";
this._parent.InfoCombos.update();
if (this._parent.no_sound != true) {
SoundPlayer.play("ClickTab");
}
};
ButtonUpgrades.onPress = function () {
if (this._parent.is_visible != true) {
_root.Game.turretInfoShow();
return(undefined);
}
this._parent.infoTabSelect(this);
this._parent.infoButtonShow();
this._parent.infoHideAll();
this._parent.InfoUpgrades._visible = true;
this._parent.info_page = "upgrades";
this._parent.InfoUpgrades.update();
if (this._parent.no_sound != true) {
SoundPlayer.play("ClickTab");
}
};
ButtonSpecific.onPress = function () {
if (this._parent.is_visible != true) {
_root.Game.turretInfoShow();
return(undefined);
}
this._parent.infoTabSelect(this);
this._parent.infoButtonShow();
this._parent.infoHideAll();
this._parent.infoSpecificShow();
this._parent.info_page = "specific";
if (this._parent.no_sound != true) {
SoundPlayer.play("ClickTab");
}
};
ButtonBuild.onPress = function () {
if (this._parent.is_visible != true) {
_root.Game.turretInfoShow();
return(undefined);
}
this._parent.infoTabSelect(this);
this._parent.infoHideAll();
this._parent.InfoBuild._visible = true;
this._parent.info_page = "build";
this._parent.InfoBuild.update();
if (this._parent.no_sound != true) {
SoundPlayer.play("ClickTab");
}
};
ButtonMessages.onPress = function () {
if (this._parent.is_visible != true) {
_root.Game.turretInfoShow();
return(undefined);
}
this._parent.infoTabSelect(this);
this._parent.infoHideAll();
this._parent.InfoMessages._visible = true;
this._parent.info_page = "messages";
if (this._parent.no_sound != true) {
SoundPlayer.play("ClickTab");
}
};
ButtonGameOver.onPress = function () {
if (this._parent.is_visible != true) {
_root.Game.turretInfoShow();
return(undefined);
}
this._parent.infoTabSelect(this);
this._parent.infoHideAll();
this._parent.info_page = "gameover";
if (GameStatus.game_type == "challenge") {
this._parent.InfoGameOver._visible = false;
this._parent.InfoChallengeOver._visible = true;
} else {
this._parent.InfoGameOver._visible = true;
this._parent.InfoChallengeOver._visible = false;
}
if (this._parent.no_sound != true) {
SoundPlayer.play("ClickTab");
}
};
ButtonGame.onPress = function () {
if (this._parent.is_visible != true) {
_root.Game.turretInfoShow();
return(undefined);
}
this._parent.infoTabSelect(this);
this._parent.infoHideAll();
this._parent.InfoGame._visible = true;
this._parent.info_page = "game";
this._parent.InfoGame.update();
if (this._parent.no_sound != true) {
SoundPlayer.play("ClickTab");
}
};
ButtonSettings.onPress = function () {
if (this._parent.is_visible != true) {
_root.Game.turretInfoShow();
return(undefined);
}
this._parent.infoTabSelect(this);
this._parent.infoHideAll();
this._parent.InfoSettings._visible = true;
this._parent.info_page = "settings";
if (this._parent.no_sound != true) {
SoundPlayer.play("ClickTab");
}
};
ButtonNextWave.onPress = function () {
if (this._parent.is_visible != true) {
_root.Game.turretInfoShow();
return(undefined);
}
_root.Game.waveSend();
};
ButtonPause.onPress = function () {
if (this._parent.is_visible != true) {
_root.Game.turretInfoShow();
return(undefined);
}
_root.Game.pauseToggle();
};
ButtonSandbox.onPress = function () {
if (this._parent.is_visible != true) {
_root.Game.turretInfoShow();
return(undefined);
}
this._parent.infoTabSelect(this);
this._parent.infoHideAll();
this._parent.InfoSandbox._visible = true;
this._parent.info_page = "sandbox";
this._parent.InfoSandbox.update();
if (this._parent.no_sound != true) {
SoundPlayer.play("ClickTab");
}
};
infoNoTurret();
cur_turret = _root.Game.TurretManager.cur_turret;
prev_turret = cur_turret;
_root.Game.TurretManager.addListener(this);
InfoExit.onExitCancel = mx.utils.Delegate.create(this, onExitCancel);
}
function onLoad() {
init();
infoHideAll();
info_page = "messages";
InfoMessages._visible = true;
InfoNone._visible = false;
}
function exitConfirm() {
info_page = "exitconfirm";
if (is_visible != true) {
_root.Game.turretInfoShow();
return(undefined);
}
infoTabSelect(ButtonGame);
infoHideAll();
InfoGame._visible = true;
info_page = "exitconfirm";
InfoGame.exitConfirm();
}
function onExitCancel() {
ButtonGame.onPress();
}
function onTurretChange() {
update();
}
function infoDoMinimise() {
if (is_visible == false) {
return(false);
}
infoHideAll();
infoButtonHide();
var _local3 = new Object();
effect.effectRemove();
_local3.effect_duration = 225;
_local3.target_obj = this;
_local3.target_x = _root.TurretInfoPoint._x;
_local3.target_y = _root.TurretInfoPoint._y;
_local3.target_scale = 10;
effect = effectNew(_local3);
is_visible = false;
clearInterval(interval);
SoundPlayer.play("ClickMin");
}
function infoDoMaximise() {
if (is_visible == true) {
return(false);
}
var _local2 = new Object();
effect.effectRemove();
_local2.effect_duration = 225;
_local2.target_obj = this;
_local2.onComplete = function () {
this.target_obj.infoPostMaximise();
};
_local2.target_x = GameStatus.turret_info_x;
_local2.target_y = GameStatus.turret_info_y;
_local2.target_scale = 100;
effect = effectNew(_local2);
SoundPlayer.play("ClickMax");
}
function infoPostMaximise() {
is_visible = true;
clearInterval(interval);
interval = setInterval(this, "update", frame_space);
infoButtonShow();
infoCheckState();
infoDetectTurret();
}
function infoCheckState() {
if (is_visible != true) {
return(false);
}
cur_turret = _root.Game.TurretManager.cur_turret;
no_clicks = true;
if (cur_turret && (cur_turret._name)) {
if (info_page == "gameover") {
ButtonGameOver.onPress();
} else if (info_page == "game") {
ButtonGame.onPress();
} else if (info_page == "exitconfirm") {
InfoExit._visible = true;
} else if (info_page == "build") {
ButtonBuild.onPress();
} else if (info_page == "messages") {
ButtonMessages.onPress();
} else if (info_page == "general") {
ButtonGeneral.onPress();
} else if (info_page == "upgrades") {
ButtonUpgrades.onPress();
} else if (info_page == "combos") {
ButtonCombos.onPress();
} else if (info_page == "specific") {
ButtonSpecific.onPress();
} else if (info_page == "sandbox") {
ButtonSandbox.onPress();
} else {
ButtonGeneral.onPress();
}
} else if (info_page == "gameover") {
ButtonGameOver.onPress();
} else if (info_page == "game") {
ButtonGame.onPress();
} else if (info_page == "exitconfirm") {
InfoExit._visible = true;
} else if (info_page == "messages") {
ButtonMessages.onPress();
} else if (info_page == "sandbox") {
ButtonSandbox.onPress();
} else if (info_page == "build") {
ButtonBuild.onPress();
} else {
infoNoTurret();
}
no_clicks = false;
}
function update() {
if (is_visible == true) {
cur_turret = _root.Game.TurretManager.cur_turret;
if (prev_turret != cur_turret) {
infoCheckState();
}
prev_turret = cur_turret;
GameStatus.turret_info_x = _x;
GameStatus.turret_info_y = _y;
infoDetectTurret();
if (GameStatus.game_paused) {
ButtonPause.text = "Un-pause";
} else {
ButtonPause.text = "Pause";
}
}
}
function infoDetectTurret() {
cur_turret = _root.Game.TurretManager.cur_turret;
if (cur_turret && (cur_turret._name)) {
if (cur_turret.turret_type == "Green") {
ButtonSpecific.text = "Link";
} else if (cur_turret.turret_type == "Blue") {
ButtonSpecific.text = "Freakout";
} else if (cur_turret.turret_type == "Red") {
ButtonSpecific.text = "Holding";
} else if (cur_turret.turret_type == "Yellow") {
ButtonSpecific.text = "Charge";
} else if (cur_turret.turret_type == "Sniper") {
ButtonSpecific.text = "Sniper";
} else if (cur_turret.turret_type == "Fusion") {
ButtonSpecific.text = "Fusion";
} else if (cur_turret.turret_subtype == "modifier") {
ButtonSpecific.text = "Modify";
} else {
ButtonSpecific._visible = false;
}
infoButtonShow();
infoGotTurret();
TurretName.text = cur_turret.display_name;
} else {
infoButtonHide();
if ((((((info_page != "gameover") && (info_page != "messages")) && (info_page != "sandbox")) && (info_page != "game")) && (info_page != "exitconfirm")) && (info_page != "build")) {
infoNoTurret();
}
TurretName.text = "No turret selected";
}
}
function infoSpecificShow() {
if (cur_turret.turret_type == "Green") {
InfoGreen._visible = true;
InfoGreen.update();
} else if (cur_turret.turret_type == "Blue") {
InfoBlue._visible = true;
InfoBlue.update();
} else if (cur_turret.turret_type == "Red") {
InfoRed._visible = true;
InfoRed.update();
} else if (cur_turret.turret_type == "Yellow") {
InfoYellow._visible = true;
InfoYellow.update();
} else if (cur_turret.turret_type == "Sniper") {
InfoSniper._visible = true;
InfoSniper.update();
} else if (cur_turret.turret_type == "Fusion") {
InfoFusion._visible = true;
InfoFusion.update();
} else if (cur_turret.turret_subtype == "modifier") {
InfoModify._visible = true;
InfoModify.update();
} else {
InfoSpecific._visible = true;
InfoSpecific.update();
}
}
function infoTabSelect(the_tab) {
if (cur_tab) {
cur_tab.cur_tab = undefined;
cur_tab.onRollOut();
}
cur_tab = the_tab;
the_tab.cur_tab = the_tab;
the_tab.onRollOver();
}
function infoGotTurret() {
InfoNone._visible = false;
TurretName.text = cur_turret.display_name;
if (info_page == undefined) {
infoButtonShow();
InfoNone._visible = false;
InfoGeneral._visible = true;
InfoBlue._visible = false;
InfoGreen._visible = false;
InfoYellow._visible = false;
InfoRed._visible = false;
InfoUpgrades._visible = false;
InfoCombos._visible = false;
InfoSpecific._visible = false;
InfoExit._visible = false;
info_page = "general";
}
}
function infoNoTurret() {
infoHideAll();
InfoNone._visible = true;
TurretName.text = "No Turret Selected";
infoButtonHide();
}
function infoHideAll() {
InfoNone._visible = false;
InfoGeneral._visible = false;
InfoUpgrades._visible = false;
InfoCombos._visible = false;
InfoSpecific._visible = false;
InfoBuild._visible = false;
InfoGame._visible = false;
InfoSettings._visible = false;
InfoMessages._visible = false;
InfoBlue._visible = false;
InfoGreen._visible = false;
InfoYellow._visible = false;
InfoRed._visible = false;
InfoSniper._visible = false;
InfoFusion._visible = false;
InfoModify._visible = false;
InfoSandbox._visible = false;
InfoGameOver._visible = false;
InfoChallengeOver._visible = false;
InfoExit._visible = false;
}
function infoButtonShow() {
ButtonGeneral._visible = true;
ButtonUpgrades._visible = true;
ButtonCombos._visible = true;
ButtonSpecific._visible = true;
}
function infoButtonHide() {
ButtonGeneral._visible = false;
ButtonUpgrades._visible = false;
ButtonCombos._visible = false;
ButtonSpecific._visible = false;
}
function infoGameEnd() {
infoHideAll();
InfoGameOver.update();
InfoChallengeOver.update();
ButtonGameOver._visible = true;
if (GameStatus.game_type == "challenge") {
InfoGameOver._visible = false;
InfoChallengeOver._visible = true;
} else {
InfoGameOver._visible = true;
InfoChallengeOver._visible = false;
}
info_page = "gameover";
_root.Game.turretInfoShow();
ButtonGameOver.onPress();
}
var frame_space = 200;
var is_visible = true;
var effect_complete = true;
var no_clicks = false;
}
Symbol 1337 MovieClip [__Packages.UpgradePanel] Frame 0
class UpgradePanel extends OnslaughtObject
{
var _alpha, DamageCost, RangeCost, RateCost, DamageGraph, RangeGraph, RateGraph, cur_turret;
function UpgradePanel () {
super();
}
function onLoad() {
_alpha = 40;
graphZeroAll();
DamageCost.text = "---";
RangeCost.text = "---";
RateCost.text = "---";
DamageCost.CannotAfford._visible = false;
RangeCost.CannotAfford._visible = false;
RateCost.CannotAfford._visible = false;
DamageCost.onPress = function () {
if (Key.isDown(16)) {
_root.Game.TurretManager.turretUpgradeDamageMax();
} else {
_root.Game.TurretManager.turretUpgradeDamage();
}
};
RangeCost.onPress = function () {
if (Key.isDown(16)) {
_root.Game.TurretManager.turretUpgradeRangeMax();
} else {
_root.Game.TurretManager.turretUpgradeRange();
}
};
RateCost.onPress = function () {
if (Key.isDown(16)) {
_root.Game.TurretManager.turretUpgradeRateMax();
} else {
_root.Game.TurretManager.turretUpgradeRate();
}
};
DamageGraph.onPress = function () {
this._parent.DamageCost.onPress();
};
RangeGraph.onPress = function () {
this._parent.RangeCost.onPress();
};
RateGraph.onPress = function () {
this._parent.RateCost.onPress();
};
DamageGraph.graphSetDimsAndScale(195, 14, new Array(10, 100, 1000, 10000, 100000));
RangeGraph.graphSetDimsAndScale(195, 14, new Array(100, 150, 200, 250, 350));
RateGraph.graphSetDimsAndScale(195, 14, new Array(50, 100, 150, 200, 250));
update();
}
function onTurretUpgrade() {
update();
}
function onTurretChange() {
update();
}
function onCashChange() {
updateCost();
}
function graphZeroAll() {
DamageGraph.graphSetCurrent(0);
DamageGraph.graphSetPossible(0);
DamageGraph.graphSetLimit(0);
RangeGraph.graphSetCurrent(0);
RangeGraph.graphSetPossible(0);
RangeGraph.graphSetLimit(0);
RateGraph.graphSetCurrent(0);
RateGraph.graphSetPossible(0);
RateGraph.graphSetLimit(0);
}
function update() {
cur_turret = _root.Game.TurretManager.cur_turret;
if (!(cur_turret && (cur_turret._name))) {
_alpha = 40;
graphZeroAll();
DamageCost.text = "---";
RangeCost.text = "---";
RateCost.text = "---";
DamageCost.CannotAfford._visible = false;
RangeCost.CannotAfford._visible = false;
RateCost.CannotAfford._visible = false;
return(true);
}
_alpha = 75;
DamageGraph.graphSetCurrent(cur_turret.weapon_damage);
DamageGraph.graphSetPossible(cur_turret.upgradeGetAmount("damage"));
DamageGraph.graphSetLimit(cur_turret.upgradeGetMax("damage"));
RangeGraph.graphSetCurrent(cur_turret.weapon_range);
RangeGraph.graphSetPossible(cur_turret.upgradeGetAmount("range"));
RangeGraph.graphSetLimit(cur_turret.upgradeGetMax("range"));
RateGraph.graphSetCurrent(cur_turret.weapon_rate);
RateGraph.graphSetPossible(cur_turret.upgradeGetAmount("rate"));
RateGraph.graphSetLimit(cur_turret.upgradeGetMax("rate"));
updateCost();
}
function updateCost() {
cur_turret = _root.Game.TurretManager.cur_turret;
if (cur_turret && (cur_turret._name)) {
costSet(cur_turret.upgradeGetCost("damage"), DamageCost);
costSet(cur_turret.upgradeGetCost("range"), RangeCost);
costSet(cur_turret.upgradeGetCost("rate"), RateCost);
}
}
function costSet(the_cost, the_button) {
if (the_cost > 0) {
the_button.text = "$" + the_cost;
if (_root.Game.cashAvailable(the_cost)) {
the_button.CanAfford._visible = true;
the_button.CannotAfford._visible = false;
} else {
the_button.CanAfford._visible = false;
the_button.CannotAfford._visible = true;
}
} else {
the_button.text = "Max!";
the_button.CanAfford._visible = false;
the_button.CannotAfford._visible = true;
}
}
}
Symbol 1338 MovieClip [__Packages.GameTutorial] Frame 0
class GameTutorial extends OnslaughtObject
{
var _x, _y, _alpha, TitleBar, ButtonPrev, ButtonNext, ButtonShow, CloseButton, Tutorial, page_list, cur_data, SectionTitle, show_target, show_root, show_pointer, trigDegreesTo;
function GameTutorial () {
super();
_x = GameStatus.tutorial_panel_x;
_y = GameStatus.tutorial_panel_y;
_alpha = 75;
TitleBar.onPress = function () {
this._parent.startDrag();
};
TitleBar.onRelease = function () {
this._parent.stopDrag();
GameStatus.tutorial_panel_x = this._parent._x;
GameStatus.tutorial_panel_x = this._parent._y;
};
ButtonPrev.onPress = function () {
SoundPlayer.play("ClickButton");
this._parent.tutorialPagePrev();
};
ButtonNext.onPress = function () {
SoundPlayer.play("ClickButton");
this._parent.tutorialPageNext();
};
ButtonShow.onPress = function () {
SoundPlayer.play("ClickButton");
this._parent.tutorialShow();
};
CloseButton.onPress = function () {
SoundPlayer.play("ClickButton");
_root.Game.gotoHomepage();
};
_root.Game.pauseOn();
tutorialBuild();
}
function onLoad() {
ButtonNext.setStyle("color", 0);
ButtonPrev.setStyle("color", 0);
ButtonShow.setStyle("color", 0);
Tutorial.fontSize = 11;
Tutorial.__set__editable(false);
tutorialPageShow();
}
function tutorialPage(page_num) {
return(page_list[page_num]);
}
function tutorialPageNext() {
var _local3 = cur_page + 1;
var _local2 = tutorialPage(_local3);
if (_local2 != undefined) {
cur_page++;
tutorialPageShow();
}
}
function tutorialPagePrev() {
var _local3 = cur_page - 1;
var _local2 = tutorialPage(_local3);
if (_local2 != undefined) {
cur_page--;
tutorialPageShow();
}
}
function tutorialPageShow() {
tutorialBuild();
cur_data = tutorialPage(cur_page);
Tutorial.__set__text(cur_data.text);
SectionTitle.text = cur_data.title;
show_target = cur_data.show;
show_root = cur_data.show_root;
if (cur_data.show_now == true) {
tutorialShow();
}
if (cur_data.onPage != undefined) {
cur_data.onPage();
}
ButtonPrev.enabled = true;
ButtonNext.enabled = true;
ButtonShow.enabled = true;
var _local3 = cur_page + 1;
var _local2 = tutorialPage(_local3);
if (_local2 == undefined) {
ButtonNext.enabled = false;
}
if (cur_page == 1) {
ButtonPrev.enabled = false;
}
if (cur_data.show == undefined) {
ButtonShow.enabled = false;
}
}
function tutorialShow() {
if (cur_data.onShow != undefined) {
cur_data.onShow();
}
if (show_target && (show_target._name)) {
if (show_pointer && (show_pointer._name)) {
show_pointer.removeMyself();
}
var _local3 = new Object();
_local3.x = show_target._x;
_local3.y = show_target._y;
if (cur_data.show_root != undefined) {
cur_data.show_root.localToGlobal(_local3);
}
if (cur_data.show_x_off) {
_local3.x = _local3.x + cur_data.show_x_off;
}
if (cur_data.show_y_off) {
_local3.y = _local3.y + cur_data.show_y_off;
}
var _local4 = new MovieClip();
_local4._x = _local3.x;
_local4._y = _local3.y;
var _local9 = trigDegreesTo(this, _local4);
var _local6 = "TutorialShow";
var _local7 = _root.Game.getNextHighestDepth();
var _local8 = _local6 + _local7;
var _local5 = new Object();
_local5._rotation = _local9;
_local5._x = _local3.x;
_local5._y = _local3.y;
show_pointer = _root.Game.attachMovie(_local6, _local8, _local7, _local5);
}
}
function tutorialBuild() {
var _local3;
page_list = new Array();
page_list.push("arse");
_local3 = new Object();
_local3.from = this;
_local3.title = "Welcome to Onslaught";
_local3.text = "This tutorial will guide you through the basics of playing the game.\n\nSometimes the tutorial will need to show you something. You can see what the tutorial is referring to by clicking on the 'Show me' button that is indicated.";
_local3.show = ButtonShow;
_local3.show_now = true;
_local3.show_root = this;
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Ending the Tutorial";
_local3.text = "You can leave the tutorial at any time by clicking the close button at the top of the window. You will be taken back to the main menu.\n\nYou can move the info panel (to the left) out of the way by clicking it's close button.";
_local3.show = CloseButton;
_local3.show_now = true;
_local3.show_root = this;
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "The Attackers";
_local3.text = "Attackers will come down the path heading for your base. They will start here and head down the road. If they reach your base you lose a life. You have 10 lives to begin with.\n\nThe tutorial is limited to 50 waves of attackers, to start you off easy.";
_local3.show = _root.Game.RoadManager.Waypoint1;
_local3.show_now = true;
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Pause and Unpause";
_local3.text = "Currently the game is paused while you get to grips with the tutorial. Click the flashing pause button to start the clock running.";
_local3.show = _root.GamePause;
_local3.show_root = _root;
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "The Wave Clock";
_local3.text = "Attackers are now on their way! The clock in the bottom corner shows you how long until the next wave of attackers is here.\n\nYou'd better either pause the game again or start building some defences!";
_local3.show = _root.WaveClock;
_local3.show_root = _root;
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "The Weapon Store";
_local3.text = "Choose a weapon in the store by using the arrow buttons (or arrow keys on the keyboard) to scroll left and right through the available weapons.";
_local3.show = _root.BuildPanel.WeaponRack;
_local3.show_root = _root.BuildPanel.WeaponRack;
_local3.show_x_off = 40;
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Cash Flow";
_local3.text = "You can only buy a turret if you have enough cash. Your funds are shown in the game stats in the bottom corner, by the game clock.\n\nKilling attackers earns you money.";
_local3.show = _root.Cash;
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Buying a Turret";
_local3.text = "If you have enough cash, click on the turret to buy it (or press B to buy the weapon on display), then click where you want to build it on the map. You can't build on the road, on the base or on other turrets.\n\nYou can't build while the game is paused.";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Destruction Begins";
_local3.text = "Now sit back and watch as your turret takes care of the oncoming attackers (provided you built the turret in range of the road).\n\nThe range of the turret is shown by the green circle around it.";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "It's Too Easy!";
_local3.text = "If you get bored of waiting for the next group of attackers, you can press the spacebar to send the next wave right away. You can also click on the wave clock in the bottom corner.";
_local3.show = _root.WaveClock;
_local3.show_now = true;
_local3.show_root = _root;
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Harder attackers";
_local3.text = "With each wave the attackers get a little bit stronger, but they're worth a little bit more cash. Now is the time to upgrade your defences!\n\nHighlight a turret, (the first one you built for example), by clicking on it. It will go green when selected.";
_local3.show = TurretManager.turrets[0];
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Upgrades";
_local3.text = "The upgrade panel shows what upgrades are available for that turret. If the buttons are red, you can't afford it. If you can afford it click on the button to upgrade your turret.\n\nIt's much better to spend your money on upgrades to existing turrets than building lots of new turrets.";
_local3.show = _root.UpgradePanel.DamageCost;
_local3.show_root = _root.UpgradePanel;
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Need some Cash?";
_local3.text = "Short on funds or perhaps you've just put a turret in the wrong place and need to get rid of it. Select the turret then press S to sell it.\n\nYou can sell any turret for 70% of the value of the turret plus the cost of all its upgrades.";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Bigger Weapons";
_local3.text = "Turrets on their own don't cut the mustard, they need to work together. Upgrading a turret's damage to the max activates its combo mode.\n\nCombos are special weapons that are fired by a group of turrets that are all close together, and have all had their damage upgraded to the maximum.";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Your First Combo";
_local3.text = "Clearly it costs quite a bit of cash to get enough turrets upgraded to combo level, so we'll give you some money to get you started.\n\nClick on the 'Show Me' button and I'll spot you some money to get started (I'll only do this once).";
_local3.show = _root.Cash;
_local3.onShow = function () {
if (this.from.cash_awarded != true) {
_root.Game.CashManager.player_cash = 14500;
_root.Game.CashManager.cashUpdate();
this.from.cash_awarded = true;
}
};
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Correct Placement";
_local3.text = "The turrets need to be close enough for the combo to take effect. To see which turrets are close enough for combos press C to toggle combo display on and off.\n\nBuild one blue turret near the corner in the road and then build a red turret in combo range of it. Max out both their damages.";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Which Turret Fires?";
_local3.text = "There's plenty of different combos but the one that is used depends on which turret fires. Turrets fire when enemies come into their range. The first turret to see an enemy will fire and trigger that combo.\n\nMax out the range on the blue turret so it is always the first to get an enemy in range.";
_local3.show = _root.UpgradePanel.RangeCost;
_local3.show_root = _root.UpgradePanel;
_local3.show_now = true;
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Combolicious";
_local3.text = "You should have seen your first combo, the Cluster Bomb. There's plenty of different combinations to try involving all the different turret types. Experiment to find one you like.";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Modifier Turrets";
_local3.text = "These are special turrets that don't fire at attackers but instead affect any other weapons in their range. Some of them boost range, some boost damage and some boost the rate of fire.\n";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Your First Modifier";
_local3.text = "Once you've made 300 kills a modifier turret will become available in the weapon store, RangeUp. Look out for the flashing message icon when the message comes through that it is available.\n\nHint: save your cash, it costs $2000!";
_local3.show = _root.TurretInfoPoint;
_local3.show_root = _root;
_local3.show_now = true;
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Make My Range";
_local3.text = "Build one of these new modifier turrets so that some other turrets are in its range. Click on one of the turrets in range and you will see a larger border around the range. This is the effective range of this turret; it has been increased by the modifier turret.";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "In Summary";
_local3.text = "So now you know about turrets, upgrades, combos and modifiers. You have all the tools you need to play the game! Congratulations!";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Back Home";
_local3.text = "To go back to the main menu, bring up the info panel by clicking on its icon, if it is minimised.";
_local3.show = _root.TurretInfoPoint;
_local3.show_root = _root;
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Back Home";
_local3.text = "Click on the 'Game' tab and then click 'Main Menu' to go back to the home page.\n\nAlternatively you can close this tutorial window to be taken back to the home page straight away.";
_local3.show = _root.Game.TurretInfo.ButtonGame;
_local3.show_root = _root.Game.TurretInfo;
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "All Done";
_local3.text = "That's it. You can go home now.";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "All Done";
_local3.text = "Really, go home.";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Still here?";
_local3.text = "Honestly, nothing to see!";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Oh dear";
_local3.text = "I'm telling you, go home.";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Fine";
_local3.text = "Well I'm not saying anything more..";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Silence";
_local3.text = "";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "More Silence";
_local3.text = "";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Yet More Silence";
_local3.text = "";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Tumbleweed";
_local3.text = "";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "*cough*";
_local3.text = "Look. I've had enough. That's your lot.";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Oh OK";
_local3.text = "Just one more then. You can move turrets by pressing M. This will move the selected turret, but it costs $500 per move. Use it wisely!";
page_list.push(_local3);
_local3 = new Object();
_local3.from = this;
_local3.title = "Thanks!";
_local3.text = "And don't forget to check out the forum!\n";
page_list.push(_local3);
}
var cur_page = 1;
var cash_awarded = false;
}
Symbol 1339 MovieClip [__Packages.GameSelectButton] Frame 0
class GameSelectButton extends MovieClip
{
var Locked, Ticked, TheNumber, Label1, Label2, Label3, button, _parent, __get__number;
function GameSelectButton () {
super();
Locked._alpha = 60;
Ticked._alpha = 60;
TheNumber._alpha = 60;
}
function onLoad() {
Label1._visible = false;
Label2._visible = false;
Label3._visible = false;
Locked._visible = false;
Ticked._visible = false;
TheNumber._visible = false;
button = _parent._parent;
Ticked._visible = button.is_ticked;
Locked._visible = button.is_locked;
Label1.text = button.the_label;
Label2.text = button.the_label;
Label3.text = button.the_label;
var _local3 = gs.utils.text.TextMetrics.getLineMetrics(Label3);
var _local2 = _local3.length;
if (_local2 == 1) {
Label1._visible = true;
} else if (_local2 == 2) {
Label2._visible = true;
} else {
Label3._visible = true;
}
number = (undefined);
}
function set number(new_val) {
TheNumber.text = new_val;
if ((new_val != "") && (new_val != undefined)) {
TheNumber._visible = true;
} else {
TheNumber._visible = false;
}
//return(__get__number());
}
var tooltip_text = "Arses";
var tooltip_show = false;
}
Symbol 1340 MovieClip [__Packages.RocketEngine] Frame 0
class RocketEngine extends Projectile
{
var time_last, interval, offscreen_remove, offscreen_lock, _width, _height, _x, _y, removeMyself, trigForwardAtAngle, _rotation, bullet_target, targetAvailableOrAcquire, trigDegreesTo, trigDistanceTo, no_rotate, laser_capable, laser_range_sq, laser_fired, laser_rate_msec, rocket_capable, rocket_fired, rocket_rate_msec, projectileBlast, projectileCluster, bullet_damage, turret, laser_damage, bullet_poison, laser_type, rocket_damage, rocket_type;
function RocketEngine () {
super();
time_last = GameClock.timeNow();
if (Math.random() >= 0.5) {
holding_dir = -1;
}
impact_range_sq = impact_range * impact_range;
var _local3 = frame_space + (Math.random() * 10);
interval = setInterval(this, "update", _local3);
}
function update() {
var _local6 = GameClock.timeNow();
var _local7 = _local6 - time_last;
if (_local7 == 0) {
return(false);
}
time_last = _local6;
if ((offscreen_remove == true) || (offscreen_lock == true)) {
var _local21 = -_width;
var _local16 = GameStatus.game_screen_x + _width;
var _local19 = -_height;
var _local15 = GameStatus.game_screen_y + _height;
if ((((_x < _local21) || (_x > _local16)) || (_y < _local19)) || (_y > _local15)) {
removeMyself();
}
}
if (GameStatus.rocket_smoke == true) {
_root.Game.SmokeManager.rocketSmoke(this);
}
var _local13 = (_local7 / 1000) * move_speed;
var _local3 = (_local7 / 1000) * rotate_speed;
var _local4 = trigForwardAtAngle(_rotation, _local13);
var _local10 = _local4.x;
var _local8 = _local4.y;
var _local11 = _local4.distance;
var _local22 = _local11 * _local11;
bullet_target = targetAvailableOrAcquire(bullet_target, this, weapon_range, target_type);
if (holding_initially == true) {
_x = _x + _local10;
_y = _y + _local8;
_rotation = _rotation + (_local3 * holding_dir);
} else if (bullet_target) {
var _local12 = trigDegreesTo(this, bullet_target);
var _local9 = _local12 - _rotation;
var _local5 = trigDistanceTo(this, bullet_target, true);
if (no_rotate != true) {
if (Math.abs(_local9) < Math.abs(_local3)) {
_rotation = _local12;
} else {
var _local18 = (_local9 + 360) % 360;
var _local20 = (360 - _local9) % 360;
if (_local20 < _local18) {
_rotation = _rotation - _local3;
} else {
_rotation = _rotation + _local3;
}
}
}
if ((!isNaN(_local5)) && (_local5 < _local22)) {
_x = bullet_target._x;
_y = bullet_target._y;
targetHit(bullet_target);
} else if ((!isNaN(_local5)) && (_local5 < impact_range_sq)) {
_x = bullet_target._x;
_y = bullet_target._y;
targetHit(bullet_target);
} else {
_x = _x + _local10;
_y = _y + _local8;
}
if (laser_capable == true) {
if (_local5 <= laser_range_sq) {
var _local14 = _local6 - laser_fired;
if (_local14 >= laser_rate_msec) {
laserFire();
}
}
}
if (rocket_capable == true) {
var _local17 = _local6 - rocket_fired;
if (_local17 >= rocket_rate_msec) {
rocketFire();
}
}
} else if (holding_capable == true) {
offscreen_remove = false;
_x = _x + _local10;
_y = _y + _local8;
if (no_rotate != true) {
_rotation = _rotation + (_local3 * holding_dir);
}
} else {
_x = _x + _local4.x;
_y = _y + _local4.y;
offscreen_remove = true;
}
}
function targetHit(the_obj) {
projectileBlast();
projectileCluster();
the_obj.attackerHit(bullet_damage, turret);
removeMyself();
}
function targetThis(the_obj) {
bullet_target = the_obj;
holding_initially = false;
}
function laserFire() {
laser_fired = GameClock.timeNow();
var _local3 = new Object();
_local3._x = _x;
_local3._y = _y;
_local3._rotation = 0;
_local3.bullet_target = bullet_target;
_local3.bullet_damage = laser_damage;
_local3.bullet_poison = bullet_poison;
_local3.turret = turret;
var _local4 = _root.Game.bulletNew(laser_type, _local3);
}
function rocketFire() {
rocket_fired = GameClock.timeNow();
var _local3 = new Object();
_local3._x = _x;
_local3._y = _y;
_local3._rotation = trigDegreesTo(this, bullet_target);
_local3.bullet_target = bullet_target;
_local3.bullet_damage = rocket_damage;
_local3.turret = turret;
_local3.holding_capable = holding_capable;
var _local4 = _root.Game.bulletNew(rocket_type, _local3);
}
var move_speed = 250;
var rotate_speed = 270;
var weapon_range = 1000;
var holding_capable = false;
var holding_initially = false;
var holding_dir = 1;
var target_locked = false;
var target_reacquire = false;
var impact_range = 8;
var impact_range_sq = 64;
var frame_space = 32;
var rocket_dead = false;
var target_type = "near";
}
Symbol 1341 MovieClip [__Packages.SparkEngine] Frame 0
class SparkEngine extends Projectile
{
var _rotation, targetExists, bullet_target, trigDistanceTo, _x, _y, projectileBlast, target_coords, removeMyself, effect, effectNew, spark_visual, bullet_damage, filters, lineStyle, moveTo, lineTo, turret;
function SparkEngine () {
super();
_rotation = 0;
if (targetExists(bullet_target)) {
var _local4 = trigDistanceTo(this, bullet_target);
sparkDraw(_x, _y, bullet_target._x, bullet_target._y, _local4);
projectileBlast();
targetHit(bullet_target);
} else if (target_coords != undefined) {
var _local4 = trigDistanceTo(this, target_coords);
sparkDraw(_x, _y, target_coords._x, target_coords._y, _local4);
projectileBlast();
} else {
removeMyself();
}
var _local3 = new Object();
_local3.pausable = true;
_local3.target_obj = this;
_local3.target_alpha = 0;
_local3.effect_duration = laser_persist;
_local3.from = this;
_local3.onComplete = function () {
this.from.removeMyself();
};
effect = effectNew(_local3);
}
function sparkDraw(from_x, from_y, to_x, to_y, dist) {
var _local8;
if (spark_visual != undefined) {
_local8 = spark_visual;
} else {
_local8 = sparkGetType(bullet_damage);
}
var _local13 = new flash.filters.GlowFilter(_local8.glow, 1, _local8.glow_size, _local8.glow_size, 4);
var _local14 = new flash.filters.BlurFilter(3, 3);
var _local12 = new Array();
_local12.push(_local13);
_local12.push(_local14);
filters = _local12;
lineStyle(_local8.beam_size, _local8.colour, 75);
moveTo(0, 0);
var _local3 = jitter_amount;
var _local15 = jitter_seg_space;
var _local16 = Math.floor(dist / _local15);
var _local11 = Math.max(3, _local16);
var _local18 = _local11 + 6;
var _local17 = _local18 - _local11;
var _local10 = to_x - from_x;
var _local9 = to_y - from_y;
var _local7 = Math.floor((Math.random() * _local17) + _local11);
var _local6;
var _local5;
var _local4;
var _local19 = new Array();
var _local24;
var _local2 = 1;
while (_local2 < _local7) {
_local6 = _local2 / _local7;
_local5 = _local10 * _local6;
_local4 = _local9 * _local6;
_local5 = _local5 + ((Math.random() * _local3) - (_local3 / 2));
_local4 = _local4 + ((Math.random() * _local3) - (_local3 / 2));
lineTo(_local5, _local4);
_local2++;
}
}
function sparkGetType(the_damage) {
var _local1 = new Object();
_local1.colour = 65280;
_local1.glow = 10092441 /* 0x99FF99 */;
_local1.glow_size = 5;
_local1.beam_size = 1;
if ((50 <= the_damage) and (the_damage < 75)) {
_local1.colour = 10066431 /* 0x9999FF */;
_local1.glow = 16777215 /* 0xFFFFFF */;
_local1.glow_size = 3;
_local1.beam_size = 6;
} else if ((75 <= the_damage) && (the_damage < 125)) {
_local1.colour = 16724787 /* 0xFF3333 */;
_local1.glow = 16777215 /* 0xFFFFFF */;
_local1.glow_size = 3;
_local1.beam_size = 6;
} else if ((125 <= the_damage) && (the_damage < 200)) {
_local1.glow = 16777215 /* 0xFFFFFF */;
_local1.colour = 16711680 /* 0xFF0000 */;
_local1.glow_size = 3;
_local1.beam_size = 6;
} else if ((200 <= the_damage) && (the_damage < 800)) {
_local1.glow = 16777215 /* 0xFFFFFF */;
_local1.colour = 3407667 /* 0x33FF33 */;
_local1.glow_size = 3;
_local1.beam_size = 6;
} else if ((800 <= the_damage) && (the_damage < 3500)) {
_local1.glow = 16777215 /* 0xFFFFFF */;
_local1.colour = 3407667 /* 0x33FF33 */;
_local1.glow_size = 4;
_local1.beam_size = 6;
} else if ((3500 <= the_damage) && (the_damage < 11000)) {
_local1.glow = 16777215 /* 0xFFFFFF */;
_local1.colour = 16724991 /* 0xFF33FF */;
_local1.glow_size = 4;
_local1.beam_size = 6;
} else if ((11000 <= the_damage) && (the_damage < 30000)) {
_local1.glow = 16777215 /* 0xFFFFFF */;
_local1.colour = 3355647 /* 0x3333FF */;
_local1.glow_size = 4;
_local1.beam_size = 6;
} else if ((30000 <= the_damage) && (the_damage < 60000)) {
_local1.glow = 16777011 /* 0xFFFF33 */;
_local1.colour = 0;
_local1.glow_size = 10;
_local1.beam_size = 2;
} else if ((60000 <= the_damage) && (the_damage < 100000)) {
_local1.glow = 16777215 /* 0xFFFFFF */;
_local1.colour = 16776960 /* 0xFFFF00 */;
_local1.glow_size = 6;
_local1.beam_size = 3;
} else if ((100000 <= the_damage) && (the_damage < 500000)) {
_local1.glow = 16711935 /* 0xFF00FF */;
_local1.colour = 16711680 /* 0xFF0000 */;
_local1.glow_size = 7;
_local1.beam_size = 3;
} else if ((500000 <= the_damage) && (the_damage < 1000000)) {
_local1.glow = 16711935 /* 0xFF00FF */;
_local1.colour = 16711680 /* 0xFF0000 */;
_local1.glow_size = 7;
_local1.beam_size = 3;
} else if ((1000000 <= the_damage) && (the_damage < 2000000)) {
_local1.glow = 16776960 /* 0xFFFF00 */;
_local1.colour = 16711935 /* 0xFF00FF */;
_local1.glow_size = 7;
_local1.beam_size = 4;
} else if ((2000000 <= the_damage) && (the_damage < 3000000)) {
_local1.glow = 10066431 /* 0x9999FF */;
_local1.colour = 6710886 /* 0x666666 */;
_local1.glow_size = 7;
_local1.beam_size = 4;
} else if ((2000000 <= the_damage) && (the_damage < 4000000)) {
_local1.glow = 16751103 /* 0xFF99FF */;
_local1.colour = 6710886 /* 0x666666 */;
_local1.glow_size = 7;
_local1.beam_size = 4;
} else if ((4000000 <= the_damage) && (the_damage < 5000000)) {
_local1.glow = 16777215 /* 0xFFFFFF */;
_local1.colour = 6710886 /* 0x666666 */;
_local1.glow_size = 7;
_local1.beam_size = 4;
} else if ((5000000 <= the_damage) && (the_damage < 7500000)) {
_local1.glow = 16777011 /* 0xFFFF33 */;
_local1.colour = 13395558 /* 0xCC6666 */;
_local1.glow_size = 8;
_local1.beam_size = 4;
} else if ((7500000 <= the_damage) && (the_damage < 10000000)) {
_local1.glow = 3407667 /* 0x33FF33 */;
_local1.colour = 16724787 /* 0xFF3333 */;
_local1.glow_size = 8;
_local1.beam_size = 4;
} else if ((10000000 <= the_damage) && (the_damage < 25000000)) {
_local1.glow = 16777215 /* 0xFFFFFF */;
_local1.colour = 16724787 /* 0xFF3333 */;
_local1.glow_size = 8;
_local1.beam_size = 5;
} else if ((25000000 <= the_damage) && (the_damage < 30000000)) {
_local1.glow = 16777215 /* 0xFFFFFF */;
_local1.colour = 3355443 /* 0x333333 */;
_local1.glow_size = 8;
_local1.beam_size = 7;
} else if ((30000000 <= the_damage) && (the_damage < 40000000)) {
_local1.glow = 16777215 /* 0xFFFFFF */;
_local1.colour = 3355596 /* 0x3333CC */;
_local1.glow_size = 8;
_local1.beam_size = 8;
} else if ((40000000 <= the_damage) && (the_damage < 50000000)) {
_local1.glow = 3394611 /* 0x33CC33 */;
_local1.colour = 3355443 /* 0x333333 */;
_local1.glow_size = 8;
_local1.beam_size = 9;
} else if ((50000000 <= the_damage) && (the_damage < 60000000)) {
_local1.glow = 3394611 /* 0x33CC33 */;
_local1.colour = 11184810 /* 0xAAAAAA */;
_local1.glow_size = 8;
_local1.beam_size = 10;
} else if ((60000000 <= the_damage) && (the_damage < 70000000)) {
_local1.glow = 3394611 /* 0x33CC33 */;
_local1.colour = 11184810 /* 0xAAAAAA */;
_local1.glow_size = 10;
_local1.beam_size = 12;
} else if ((70000000 <= the_damage) && (the_damage < 80000000)) {
_local1.glow = 3394611 /* 0x33CC33 */;
_local1.colour = 11184810 /* 0xAAAAAA */;
_local1.glow_size = 12;
_local1.beam_size = 14;
} else if ((80000000 <= the_damage) && (the_damage < 90000000)) {
_local1.glow = 3394611 /* 0x33CC33 */;
_local1.colour = 11184810 /* 0xAAAAAA */;
_local1.glow_size = 14;
_local1.beam_size = 16;
} else if ((90000000 <= the_damage) && (the_damage < 100000000)) {
_local1.glow = 3394611 /* 0x33CC33 */;
_local1.colour = 11184810 /* 0xAAAAAA */;
_local1.glow_size = 16;
_local1.beam_size = 20;
} else if ((100000000 <= the_damage) && (the_damage < 110000000)) {
_local1.glow = 3394611 /* 0x33CC33 */;
_local1.colour = 11184810 /* 0xAAAAAA */;
_local1.glow_size = 20;
_local1.beam_size = 20;
} else if ((110000000 <= the_damage) && (the_damage < 120000000)) {
_local1.glow = 3394611 /* 0x33CC33 */;
_local1.colour = 11184810 /* 0xAAAAAA */;
_local1.glow_size = 24;
_local1.beam_size = 24;
} else if ((120000000 <= the_damage) && (the_damage < 130000000)) {
_local1.glow = 3394611 /* 0x33CC33 */;
_local1.colour = 11184810 /* 0xAAAAAA */;
_local1.glow_size = 28;
_local1.beam_size = 28;
} else if (130000000 <= the_damage) {
_local1.glow = 3394611 /* 0x33CC33 */;
_local1.colour = 11184810 /* 0xAAAAAA */;
_local1.glow_size = 32;
_local1.beam_size = 32;
}
return(_local1);
}
function targetHit(the_obj) {
the_obj.attackerPoison(bullet_poison, true);
the_obj.attackerHit(bullet_damage, turret);
removeMyself();
}
var bullet_poison = 1;
var laser_persist = 400;
var black_hole_affect = false;
var jitter_amount = 11;
var jitter_seg_space = 11;
}
Symbol 1342 MovieClip [__Packages.Shockwave] Frame 0
class Shockwave extends AttackerEngine
{
var _x, start_x, _y, start_y, waypoint_cur, waypoint_from, effect_remove, effectNew, time_start, interval, waypoint_total, effect, waypoint_list, trigDistanceTo, _rotation, trigDegreesTo, removeMyself, ZapFrom, localToGlobal, ZapTo, targetAcquireBySlice;
function Shockwave () {
super();
_x = start_x;
_y = start_y;
}
function onLoad() {
waypoint_cur = waypoint_from;
var _local2 = new Object();
_local2.target_obj = this;
_local2.effect_duration = wave_duration;
_local2.pausable = true;
_local2.onComplete = mx.utils.Delegate.create(this, updateRemove);
effect_remove = effectNew(_local2);
update();
time_start = GameClock.timeNow();
interval = setInterval(this, "shockWaveSpark", 32);
}
function update() {
waypoint_cur = waypoint_cur + move_direction;
if (waypoint_cur <= 0) {
updateRemove();
} else if (waypoint_cur > waypoint_total) {
updateRemove();
} else {
updateMove();
}
}
function updateMove() {
effect.effectRemove();
var _local3 = waypoint_list[waypoint_cur];
var _local5 = trigDistanceTo(this, _local3);
var _local4 = _local5 / move_speed;
if (repoint) {
_rotation = trigDegreesTo(this, _local3);
}
var _local2 = new Object();
_local2.target_obj = this;
_local2.target_x = _local3._x;
_local2.target_y = _local3._y;
_local2.effect_duration = _local4 * 1000;
_local2.pausable = true;
_local2.onComplete = mx.utils.Delegate.create(this, update);
effect = effectNew(_local2);
return(true);
}
function updateRemove() {
effect.effectRemove();
effect_remove.effectRemove();
removeMyself();
}
function shockWaveSpark() {
if (GameStatus.game_paused == true) {
return(undefined);
}
var _local4;
var _local3;
var _local9 = new Object();
_local9.colour = 5635925 /* 0x55FF55 */;
_local9.glow = 16777215 /* 0xFFFFFF */;
_local9.glow_size = 4;
_local9.beam_size = 8;
_local4 = new Object();
_local4.x = ZapFrom._x;
_local4.y = ZapFrom._y;
localToGlobal(_local4);
var _local8 = new Object();
_local8._x = _local4.x;
_local8._y = _local4.y;
_local8.spark_visual = _local9;
_local4 = new Object();
_local4.x = ZapTo._x;
_local4.y = ZapTo._y;
localToGlobal(_local4);
_local4._x = _local4.x;
_local4._y = _local4.y;
_local8.target_coords = _local4;
var _local13 = GameClock.timeNow() - time_start;
var _local12 = _local13 / wave_duration;
var _local11 = 1 - _local12;
var _local7 = _local11 * bullet_damage;
var _local6 = _local11 * bullet_poison;
if (_local7 < 0) {
_local7 = 0;
}
if (_local6 < 0) {
_local6 = 0;
}
_local8.bullet_damage = _local7;
_local8.bullet_poison = _local6;
_local8._alpha = (_local11 * 100) + 10;
var _local14 = _root.Game.bulletNew("Spark", _local8);
var _local5 = targetAcquireBySlice(this, weapon_range, true);
for (var _local10 in _local5) {
_local3 = _local5[_local10];
_local3.attackerHit(_local7);
_local3.attackerPoison(_local6, true);
}
}
var move_speed = 150;
var repoint = true;
var black_hole_affect = false;
var move_direction = -1;
var wave_duration = 3000;
var weapon_range = 10;
var bullet_damage = 1000000;
var bullet_poison = 100;
}
Symbol 1343 MovieClip [__Packages.LandmineEngine] Frame 0
class LandmineEngine extends Projectile
{
var mine_location, effect, effectNew, interval, time_last, target_obj, targetAcquireBySlice, projectileBlast, projectileCluster, removeMyself;
function LandmineEngine () {
super();
var _local4 = 10;
mine_location._x = mine_location._x + Math.floor((Math.random() * _local4) - (_local4 / 2));
mine_location._y = mine_location._y + Math.floor((Math.random() * _local4) - (_local4 / 2));
var _local3 = new Object();
_local3.target_obj = this;
_local3.target_x = mine_location._x;
_local3.target_y = mine_location._y;
_local3.pausable = true;
_local3.effect_duration = 1000;
_local3.from = this;
_local3.onComplete = function () {
this.from.mine_planted = true;
};
effect = effectNew(_local3);
interval = setInterval(this, "update", frame_space_plant);
}
function update() {
var _local2 = GameClock.timeNow();
var _local3 = _local2 - time_last;
time_last = _local2;
if (_local3 == 0) {
return(false);
}
if (mine_planted == true) {
target_obj = targetAcquireBySlice(this, mine_range);
if (target_obj != undefined) {
projectileBlast();
projectileCluster();
removeMyself();
}
}
}
var mine_range = 20;
var frame_space_plant = 150;
var mine_planted = false;
var bullet_speed = 220;
var bullet_rotation = 0;
var bullet_damage = 1000000;
var offscreen_remove = true;
}
Symbol 1344 MovieClip [__Packages.ClusterBombEngine] Frame 0
class ClusterBombEngine extends Projectile
{
var targetExists, bullet_target, trigDistanceTo, _rotation, trigDegreesTo, trigForwardAtAngle, _x, _y, projectileBlast, projectileCluster, removeMyself, turret;
function ClusterBombEngine () {
super();
time_last = GameClock.timeNow();
}
function onEnterFrame() {
update();
}
function update() {
var _local5 = GameClock.timeNow();
var _local3 = _local5 - time_last;
time_last = _local5;
if (_local3 == 0) {
return(false);
}
var _local6 = (_local3 / 1000) * move_speed;
if (targetExists(bullet_target)) {
var _local4 = trigDistanceTo(this, bullet_target);
if (_local4 < impact_range) {
targetHit(bullet_target);
} else {
_rotation = trigDegreesTo(this, bullet_target);
var _local2 = trigForwardAtAngle(_rotation, _local6);
var _local9 = _local2.x;
var _local8 = _local2.y;
var _local7 = _local2.distance;
if (_local4 < _local7) {
targetHit(bullet_target);
clusterExplode();
} else {
_x = _x + _local2.x;
_y = _y + _local2.y;
}
}
} else {
clusterExplode();
}
}
function clusterExplode() {
projectileBlast();
projectileCluster();
removeMyself();
}
function targetHit(the_obj) {
the_obj.attackerHit(bullet_damage, turret);
}
var move_speed = 750;
var bullet_damage = 1000000;
var time_last = 0;
var impact_range = 3;
var blast = true;
var blast_type = "BlastSmall";
var blast_damage = 1000000;
var cluster = true;
var cluster_qty = 5;
var cluster_holding = true;
var cluster_damage = 1000000;
var cluster_rocket = "Rocket9";
var cluster_laser = false;
var cluster_type = "ClusterBlast";
}
Symbol 1345 MovieClip [__Packages.ShellEngine] Frame 0
class ShellEngine extends Projectile
{
var interval, frame_space, targetExists, bullet_target, trigDistanceTo, _rotation, trigDegreesTo, trigForwardAtAngle, _x, _y, turret, removeMovieClip;
function ShellEngine () {
super();
time_last = GameClock.timeNow();
interval = setInterval(this, "update", frame_space);
}
function update() {
var _local5 = GameClock.timeNow();
var _local3 = _local5 - time_last;
time_last = _local5;
if (_local3 == 0) {
return(false);
}
var _local6 = (_local3 / 1000) * move_speed;
if (targetExists(bullet_target)) {
var _local4 = trigDistanceTo(this, bullet_target);
if (_local4 < impact_range) {
targetHit(bullet_target);
} else {
_rotation = trigDegreesTo(this, bullet_target);
var _local2 = trigForwardAtAngle(_rotation, _local6);
var _local9 = _local2.x;
var _local8 = _local2.y;
var _local7 = _local2.distance;
if (_local4 < _local7) {
targetHit(bullet_target);
} else {
_x = _x + _local2.x;
_y = _y + _local2.y;
}
}
} else {
removeMyself();
}
}
function targetHit(the_obj) {
the_obj.attackerHit(bullet_damage, turret);
removeMyself();
}
function removeMyself() {
removeMovieClip();
}
var move_speed = 900;
var bullet_damage = 1;
var time_last = 0;
var impact_range = 3;
}
Symbol 1346 MovieClip [__Packages.BulletSniper] Frame 0
class BulletSniper extends Projectile
{
var _rotation, targetExists, bullet_target, trigDistanceTo, _x, _y, lineStyle, moveTo, lineTo, bullet_damage, turret, interval;
function BulletSniper () {
super();
}
function onLoad() {
_rotation = 0;
if (targetExists(bullet_target)) {
var _local8 = trigDistanceTo(this, bullet_target);
var _local7 = bullet_target._x - _x;
var _local6 = bullet_target._y - _y;
var _local2 = (Math.random() / 2) + 0;
var _local5 = (Math.random() / 2) + 0.1;
var _local4;
var _local3;
lineStyle(1, 7829299, 75);
_local4 = _local7 * (_local2 + 0);
_local3 = _local6 * (_local2 + 0);
moveTo(_local4, _local3);
_local4 = _local7 * (_local2 + _local5);
_local3 = _local6 * (_local2 + _local5);
lineTo(_local4, _local3);
bullet_target.attackerHit(bullet_damage, turret);
turret.brassFire();
interval = setInterval(this, "removeMyself", 32);
}
}
}
Symbol 1347 MovieClip [__Packages.BlastEngine] Frame 0
class BlastEngine extends Projectile
{
var _width, _height, _alpha, preBlast, onBlast, blast_types, effect, effectNew, removeMyself, targetAcquireBySlice, trigDistanceTo, turret;
function BlastEngine () {
super();
_width = blast_start;
_height = blast_start;
_alpha = 100;
blastSetup();
preBlast();
}
function onLoad() {
blast_mode = 0;
update();
}
function update() {
if (blast_mode == 0) {
onBlast();
var _local3 = blast_types[blast_type];
if (_local3.time != undefined) {
blast_time = _local3.time;
}
if (_local3.size != undefined) {
blast_size = _local3.size;
}
if (_local3.decay != undefined) {
blast_decay = _local3.decay;
}
var _local2 = new Object();
_local2.target_width = blast_size;
_local2.target_height = blast_size;
_local2.target_obj = this;
_local2.use_eternal_clock = false;
_local2.effect_duration = blast_time;
_local2.from = this;
_local2.onComplete = function () {
this.from.update();
};
effect = effectNew(_local2);
blast_mode++;
} else if (blast_mode == 1) {
blastDamage();
var _local2 = new Object();
_local2.target_alpha = 0;
_local2.target_obj = this;
_local2.use_eternal_clock = false;
_local2.effect_duration = blast_decay;
_local2.from = this;
_local2.onComplete = function () {
this.from.update();
};
effect = effectNew(_local2);
blast_mode++;
} else if (blast_mode == 2) {
blast_done = true;
blastCheckDone();
}
}
function blastCheckDone() {
if (blast_done == true) {
removeMyself();
}
}
function blastSetup() {
var _local2;
blast_types = new Array();
_local2 = new Object();
_local2.name = "tiny";
_local2.time = 60;
_local2.size = 70;
_local2.decay = 1500;
blast_types.tiny = _local2;
_local2 = new Object();
_local2.name = "small";
_local2.time = 70;
_local2.size = 100;
_local2.decay = 1500;
blast_types.small = _local2;
_local2 = new Object();
_local2.name = "medium";
_local2.time = 80;
_local2.size = 160;
_local2.decay = 1750;
blast_types.medium = _local2;
_local2 = new Object();
_local2.name = "large";
_local2.time = 80;
_local2.size = 190;
_local2.decay = 2000;
blast_types.large = _local2;
_local2 = new Object();
_local2.name = "huge";
_local2.time = 90;
_local2.size = 250;
_local2.decay = 2500;
blast_types.huge = _local2;
_local2 = new Object();
_local2.name = "poison";
_local2.time = 80;
_local2.size = 190;
_local2.decay = 2500;
blast_types.poison = _local2;
_local2 = new Object();
_local2.name = "bfg";
_local2.time = 80;
_local2.size = 190;
_local2.decay = 2500;
blast_types.bfg = _local2;
}
function blastDamage() {
var _local2;
var _local4;
var _local5 = blast_size / 2;
var _local3 = targetAcquireBySlice(this, _local5, true);
for (var _local6 in _local3) {
_local2 = _local3[_local6];
if (!(_local2 && (_local2._name))) {
continue;
}
_local4 = trigDistanceTo(this, _local2);
if (_local4 <= _local5) {
_local2.attackerPoison(weapon_poison);
_local2.attackerHit(weapon_damage, turret);
}
}
onBlast();
}
var weapon_damage = 1000000;
var weapon_poison = 1;
var blast_start = 10;
var blast_time = 75;
var blast_size = 80;
var blast_decay = 2000;
var blast_mode = 0;
var blast_type = "small";
var blast_done = false;
}
Symbol 1348 MovieClip [__Packages.blasts.BlastBFG] Frame 0
class blasts.BlastBFG extends BlastEngine
{
function BlastBFG () {
super();
}
var blast_type = "bfg";
}
Symbol 1349 MovieClip [__Packages.blasts.BlastHuge] Frame 0
class blasts.BlastHuge extends BlastEngine
{
function BlastHuge () {
super();
}
var blast_type = "huge";
}
Symbol 1350 MovieClip [__Packages.blasts.BlastLarge] Frame 0
class blasts.BlastLarge extends BlastEngine
{
function BlastLarge () {
super();
}
var blast_type = "large";
}
Symbol 1351 MovieClip [__Packages.blasts.BlastMedium] Frame 0
class blasts.BlastMedium extends BlastEngine
{
function BlastMedium () {
super();
}
var blast_type = "medium";
}
Symbol 1352 MovieClip [__Packages.blasts.BlastNapalm] Frame 0
class blasts.BlastNapalm extends BlastEngine
{
var napalm_fwd, trigForwardAtAngle, blast_angle, napalm_x, _x, napalm_y, _y, interval, blast_done, blastCheckDone, blast_damage, turret, _rotation, sound_blast;
function BlastNapalm () {
super();
}
function update() {
if (napalm_init != true) {
napalm_fwd = trigForwardAtAngle(blast_angle, napalm_space);
napalm_x = _x;
napalm_y = _y;
interval = setInterval(this, "update", napalm_timing);
napalm_init = true;
}
if (napalm_out >= napalm_quantity) {
blast_done = true;
blastCheckDone();
} else {
if (GameStatus.game_paused == true) {
return(undefined);
}
var _local4 = Math.round((Math.random() * napalm_jit) - (napalm_jit / 2));
var _local5 = Math.round((Math.random() * napalm_jit) - (napalm_jit / 2));
var _local3 = new Object();
_local3._x = napalm_x + _local4;
_local3._y = napalm_y + _local5;
_local3.weapon_damage = blast_damage;
_local3.turret = turret;
_local3.blast_angle = _rotation;
_local3.blast_type = blast_type;
_root.Game.bulletNew(napalm_blast, _local3);
if (sound_blast != undefined) {
SoundPlayer.play(sound_blast, this);
}
napalm_x = napalm_x + napalm_fwd.x;
napalm_y = napalm_y + napalm_fwd.y;
napalm_out++;
}
}
var napalm_jit = 30;
var napalm_quantity = 16;
var napalm_timing = 75;
var napalm_out = 0;
var napalm_blast = "BlastSmall";
var napalm_init = false;
var napalm_space = 15;
var blast_type = "tiny";
}
Symbol 1353 MovieClip [__Packages.blasts.BlastPoison] Frame 0
class blasts.BlastPoison extends BlastEngine
{
function BlastPoison () {
super();
}
var blast_type = "poison";
}
Symbol 1354 MovieClip [__Packages.blasts.BlastShockwave] Frame 0
class blasts.BlastShockwave extends BlastEngine
{
var _x, target_x, _y, target_y, bullet_target, spark_offset, _width, interval, blast_done, removeMyself;
function BlastShockwave () {
super();
}
function preBlast() {
_x = target_x;
_y = target_y;
var _local3;
var _local4;
_local3 = new Object();
_local3.start_x = _x;
_local3.start_y = _y;
_local3.bullet_damage = weapon_damage;
_local3.bullet_poison = weapon_poison;
_local3.waypoint_from = bullet_target.waypoint_cur - 1;
_local3.move_direction = 1;
_local4 = _root.Game.BulletManager.bulletNew("Shockwave", _local3);
_local3 = new Object();
_local3.start_x = _x;
_local3.start_y = _y;
_local3.bullet_damage = weapon_damage;
_local3.bullet_poison = weapon_poison;
_local3.waypoint_from = bullet_target.waypoint_cur;
_local3.move_direction = -1;
_local4 = _root.Game.BulletManager.bulletNew("Shockwave", _local3);
}
function onBlast() {
spark_offset = _width / 2;
blastSpark();
}
function blastSpark() {
if (GameStatus.game_paused == true) {
return(undefined);
}
clearInterval(interval);
spark_count++;
if (spark_count > spark_total) {
spark_done = true;
blastCheckDone();
return(undefined);
}
var _local3 = new Object();
_local3._x = _x;
_local3._y = _y;
var _local5 = new Object();
_local5._x = (_x + (Math.random() * spark_offset)) - (spark_offset / 2);
_local5._y = (_y + (Math.random() * spark_offset)) - (spark_offset / 2);
_local3.target_coords = _local5;
var _local4 = new Object();
_local4.colour = 10066431 /* 0x9999FF */;
_local4.glow = 16777215 /* 0xFFFFFF */;
_local4.glow_size = 3;
_local4.beam_size = 6;
_local3.spark_visual = _local4;
_local3.bullet_damage = weapon_damage;
_local3._alpha = (1 - (spark_count / spark_total)) * 100;
_root.Game.bulletNew("Spark", _local3);
var _local6 = Math.floor(Math.random() * 700) + 100;
setInterval(this, "blastSpark", _local6);
}
function blastCheckDone() {
if ((blast_done == true) && (spark_done == true)) {
removeMyself();
}
}
var spark_total = 15;
var spark_count = 0;
var spark_done = false;
var weapon_damage = 1000000;
var weapon_poison = 100;
var blast_type = "shockwave";
var blast_time = 105;
var blast_size = 200;
var blast_decay = 2500;
}
Symbol 1355 MovieClip [__Packages.blasts.BlastSmall] Frame 0
class blasts.BlastSmall extends BlastEngine
{
function BlastSmall () {
super();
}
var blast_type = "small";
}
Symbol 1356 MovieClip [__Packages.BlackHoleDebris] Frame 0
class BlackHoleDebris extends OnslaughtObject
{
var _rotation, trigDegreesTo, hole, effect, effectNew;
function BlackHoleDebris () {
super();
_rotation = trigDegreesTo(this, hole.Core);
var _local3 = new Object();
_local3.target_obj = this;
_local3.target_x = hole.Core._x;
_local3.target_y = hole.Core._y;
_local3.effect_duration = 100;
_local3.from = this;
_local3.onComplete = function () {
this.from.removeMyself();
};
effect = effectNew(_local3);
}
}
Symbol 1357 MovieClip [__Packages.turrets.TurretModify] Frame 0
class turrets.TurretModify extends turrets.Turret
{
var upgrade_damage_cost, upgrade_damage_amount, upgrade_range_cost, upgrade_range_amount, upgrade_rate_cost, upgrade_rate_amount, combo_capable, combo_range, combo_in_range, active, target_angle_available, join_possible, trigDistanceTo;
function TurretModify () {
super();
upgrade_damage_cost = new Array();
upgrade_damage_amount = new Array();
upgrade_range_cost = new Array();
upgrade_range_amount = new Array();
upgrade_rate_cost = new Array();
upgrade_rate_amount = new Array();
upgrade_range_amount[0] = 130;
upgrade_range_cost[0] = 1500;
combo_capable = false;
combo_range = 0;
combo_in_range = new Array();
combo_never = true;
if (active == true) {
modifyGetInRange(weapon_range);
modifyAssertAll();
_root.Game.turretRangeUpdate();
}
target_angle_available = false;
join_possible = false;
}
function onMove() {
combo_capable = false;
combo_range = 0;
combo_in_range = new Array();
combo_never = true;
}
function onSell() {
modifyUnAssertAll();
}
function onUpgrade() {
modifyUnAssertAll();
modifyGetInRange(weapon_range);
modifyAssertAll();
}
function modifyGetInRange(the_range) {
modify_in_range = new Array();
var _local3 = TurretManager.turrets;
var _local2;
var _local4;
for (var _local5 in _local3) {
_local2 = _local3[_local5];
if (_local2 != this) {
_local4 = trigDistanceTo(this, _local2);
if (_local4 <= the_range) {
if (_local2.modify_possible == true) {
modify_in_range.push(_local2);
}
}
}
}
}
function modifyAssertAll() {
var _local2 = 0;
while (_local2 < modify_in_range.length) {
var _local3 = modify_in_range[_local2];
_modifyAssert(_local3);
_local2++;
}
}
function modifyUnAssertAll() {
var _local2 = 0;
while (_local2 < modify_in_range.length) {
var _local3 = modify_in_range[_local2];
_modifyUnAssert(_local3);
_local2++;
}
}
function _modifyAssert(the_turret) {
the_turret.modifyGain("damage_added", modify_up_damage);
the_turret.modifyGain("range_added", modify_up_range);
the_turret.modifyGain("rate_added", modify_up_rate);
the_turret.modifyGain("damage_mult", modify_up_damage_mult);
the_turret.modifyGain("range_mult", modify_up_range_mult);
the_turret.modifyGain("rate_mult", modify_up_rate_mult);
}
function _modifyUnAssert(the_turret) {
the_turret.modifyLose("damage_added", modify_up_damage);
the_turret.modifyLose("range_added", modify_up_range);
the_turret.modifyLose("rate_added", modify_up_rate);
the_turret.modifyLose("damage_mult", modify_up_damage_mult);
the_turret.modifyLose("range_mult", modify_up_range_mult);
the_turret.modifyLose("rate_mult", modify_up_rate_mult);
}
function modifyNotifyNew(the_turret) {
if (the_turret == this) {
return(false);
}
var _local7 = trigDistanceTo(this, the_turret);
if (_local7 > weapon_range) {
return(false);
}
modify_in_range.push(the_turret);
_modifyAssert(the_turret);
var _local3 = new Array();
var _local4 = new Array();
var _local2;
for (var _local5 in modify_in_range) {
_local2 = modify_in_range[_local5];
if (_local3[_local2] != true) {
_local3[_local2] = true;
_local4.push(_local2);
}
}
modify_in_range = _local4;
}
function modifyNotifyGone(the_turret) {
var _local2;
var _local3 = new Array();
for (var _local5 in modify_in_range) {
_local2 = modify_in_range[_local5];
if (_local2 != the_turret) {
_local3.push(_local2);
} else {
_modifyUnAssert(_local2);
}
}
modify_in_range = _local3;
}
function modifyMove(the_turret) {
modifyUnAssertAll();
modifyGetInRange(weapon_range);
modifyAssertAll();
}
var display_name = "Modify";
var turret_type = "Modify";
var turret_subtype = "modifier";
var weapon_range = 80;
var modify_possible = false;
var modify_up_damage = 0;
var modify_up_range = 0;
var modify_up_rate = 0;
var modify_up_damage_mult = 0;
var modify_up_range_mult = 0;
var modify_up_rate_mult = 0;
var modify_in_range = new Array();
var combo_never = true;
}
Symbol 1358 MovieClip [__Packages.turrets.TurretDamageUp] Frame 0
class turrets.TurretDamageUp extends turrets.TurretModify
{
function TurretDamageUp () {
super();
}
static var turret_cost = 5000;
var turret_type = "DamageUp";
var display_name = "Boom";
var modify_up_damage_mult = 0.4;
}
Symbol 1359 MovieClip [__Packages.turrets.TurretDamageUpBig] Frame 0
class turrets.TurretDamageUpBig extends turrets.TurretModify
{
function TurretDamageUpBig () {
super();
}
static var turret_cost = 85000;
var turret_type = "DamageUpBig";
var display_name = "BigBang";
var modify_up_damage_mult = 1;
}
Symbol 1360 MovieClip [__Packages.turrets.TurretDamageUpBigExchange] Frame 0
class turrets.TurretDamageUpBigExchange extends turrets.TurretModify
{
function TurretDamageUpBigExchange () {
super();
}
static var turret_cost = 3500;
var turret_type = "DamageUpBigExchange";
var display_name = "BigBangEx";
var modify_up_damage_mult = 1;
var modify_up_range_mult = -0.3;
var modify_up_rate_mult = -0.3;
}
Symbol 1361 MovieClip [__Packages.turrets.TurretGreen] Frame 0
class turrets.TurretGreen extends turrets.Turret
{
var link_in_range, link_qty_in_range, pre_setup, weapon_damage, weapon_range, weapon_rate, turret_type, weapon_type, upgrade_damage_cost, upgrade_damage_amount, upgrade_range_cost, upgrade_range_amount, upgrade_rate_cost, upgrade_rate_amount, comboGetInRange, modifyUpdate, linkGetInRange, IndicateDamage, upgradeAsPercent, IndicateRange, IndicateRate, time_last, turretCanFire, linkOffered, linkWanted, weapon_target, targetAvailableOrAcquire, weapon_range_effective, target_type, target_bear_to, turretBearTowards, active, interval, weapon_must_face, comboCanFire, linkFire, weapon_damage_effective, comboCountColours, combo_blue, combo_green, combo_red, combo_yellow, comboFireRocketBFG, comboFireBFG;
function TurretGreen () {
super();
link_in_range = new Array();
link_qty_in_range = 0;
if (pre_setup == false) {
weapon_damage = 25;
weapon_range = 100;
weapon_rate = 60;
turret_type = "Green";
weapon_type = "LaserBeam";
upgrade_damage_cost = new Array();
upgrade_damage_amount = new Array();
upgrade_range_cost = new Array();
upgrade_range_amount = new Array();
upgrade_rate_cost = new Array();
upgrade_rate_amount = new Array();
upgrade_damage_cost[0] = 20;
upgrade_damage_cost[1] = 50;
upgrade_damage_cost[2] = 125;
upgrade_damage_cost[3] = 300;
upgrade_damage_cost[4] = 700;
upgrade_damage_cost[5] = 850;
upgrade_damage_cost[6] = 950;
upgrade_damage_cost[7] = 1000;
upgrade_damage_amount[0] = 50;
upgrade_damage_amount[1] = 120;
upgrade_damage_amount[2] = 400;
upgrade_damage_amount[3] = 1500;
upgrade_damage_amount[4] = 3900;
upgrade_damage_amount[5] = 9300;
upgrade_damage_amount[6] = 19500;
upgrade_damage_amount[7] = 35000;
upgrade_range_cost[0] = 15;
upgrade_range_cost[1] = 25;
upgrade_range_cost[2] = 40;
upgrade_range_cost[3] = 65;
upgrade_range_cost[4] = 105;
upgrade_range_cost[5] = 170;
upgrade_range_cost[6] = 275;
upgrade_range_cost[7] = 445;
upgrade_range_cost[8] = 720;
upgrade_range_cost[9] = 1100;
upgrade_range_amount[0] = 110;
upgrade_range_amount[1] = 125;
upgrade_range_amount[2] = 140;
upgrade_range_amount[3] = 160;
upgrade_range_amount[4] = 180;
upgrade_range_amount[5] = 205;
upgrade_range_amount[6] = 230;
upgrade_range_amount[7] = 255;
upgrade_range_amount[8] = 285;
upgrade_range_amount[9] = 320;
upgrade_rate_cost[0] = 30;
upgrade_rate_cost[1] = 75;
upgrade_rate_cost[2] = 180;
upgrade_rate_cost[3] = 300;
upgrade_rate_cost[4] = 450;
upgrade_rate_cost[5] = 600;
upgrade_rate_cost[6] = 800;
upgrade_rate_cost[7] = 900;
upgrade_rate_cost[8] = 1000;
upgrade_rate_amount[0] = 65;
upgrade_rate_amount[1] = 70;
upgrade_rate_amount[2] = 80;
upgrade_rate_amount[3] = 90;
upgrade_rate_amount[4] = 105;
upgrade_rate_amount[5] = 120;
upgrade_rate_amount[6] = 135;
upgrade_rate_amount[7] = 160;
upgrade_rate_amount[8] = 190;
comboGetInRange();
modifyUpdate();
linkGetInRange();
}
IndicateDamage.setPercentage(upgradeAsPercent("damage"));
IndicateRange.setPercentage(upgradeAsPercent("range"));
IndicateRate.setPercentage(upgradeAsPercent("rate"));
}
function update() {
var _local3 = GameClock.timeNow();
var _local2 = _local3 - time_last;
if (_local2 > 0) {
if (turretCanFire()) {
linkOffered(true);
} else {
linkOffered(false);
}
linkWanted(false);
weapon_target = targetAvailableOrAcquire(weapon_target, this, weapon_range_effective, target_type);
if (weapon_target) {
linkWanted(true);
target_bear_to = undefined;
turretTryFiring(weapon_target);
} else if (target_bear_to && (target_bear_to._name)) {
turretBearTowards(target_bear_to, _local2);
}
}
time_last = _local3;
if (active == false) {
clearInterval(interval);
}
return(true);
}
function turretTryFiring(the_target) {
if (the_target && (the_target._name)) {
var _local3 = GameClock.timeNow() - time_last;
if (turretBearTowards(the_target, _local3) == true) {
} else if (weapon_must_face == true) {
return(false);
}
if (turretCanFire()) {
if (comboCanFire()) {
comboFire(the_target);
} else {
linkFire(the_target, weapon_damage_effective, true);
}
}
}
return(true);
}
function onUpgrade() {
linkGetInRange();
}
function onModifyUpdate() {
linkGetInRange();
}
function onMove() {
linkGetInRange();
}
function comboFire(the_target) {
comboCountColours();
var _local4 = combo_blue.length;
var _local7 = combo_green.length;
var _local3 = combo_red.length;
var _local6 = combo_yellow.length;
var _local2 = new Object();
_local2.the_target = the_target;
if ((_local3 >= 2) && (_local4 >= 1)) {
return(comboFireRocketBFG(_local2));
}
if ((_local3 >= 1) && (_local4 >= 1)) {
return(comboFireBFG(_local2));
}
linkFire(the_target, weapon_damage_effective, true);
}
static var turret_cost = 15;
var display_name = "Laser";
var sound_fire = "Laser";
var link_capable = true;
var link_wanted = true;
var link_offered = true;
var fusion_capable = true;
}
Symbol 1362 MovieClip [__Packages.turrets.TurretRailgun] Frame 0
class turrets.TurretRailgun extends turrets.Turret
{
var pre_setup, weapon_damage, weapon_range, weapon_rate, turret_type, weapon_type, upgrade_damage_cost, upgrade_damage_amount, upgrade_range_cost, upgrade_range_amount, upgrade_rate_cost, upgrade_rate_amount, comboGetInRange, modifyUpdate, IndicateDamage, upgradeAsPercent, IndicateRange, IndicateRate, time_last, freak_available, freak_next, freakoutNow, weapon_target, targetAvailableOrAcquire, weapon_range_effective, target_type, target_bear_to, turretBearTowards, active, interval, weapon_must_face, turretCanFire, comboCanFire, turretFire, weapon_damage_effective, upgrade_damage_level, upgrade_bullet, comboCountColours, combo_blue, combo_green, combo_red, combo_yellow;
function TurretRailgun () {
super();
if (pre_setup == false) {
weapon_damage = 4000000 /* 0x3D0900 */;
weapon_range = 300;
weapon_rate = 30;
turret_type = "Railgun";
weapon_type = "RailLaser";
upgrade_damage_cost = new Array();
upgrade_damage_amount = new Array();
upgrade_range_cost = new Array();
upgrade_range_amount = new Array();
upgrade_rate_cost = new Array();
upgrade_rate_amount = new Array();
upgrade_damage_cost[0] = 5000;
upgrade_damage_cost[1] = 7500;
upgrade_damage_cost[2] = 10000;
upgrade_damage_amount[0] = 9000000 /* 0x895440 */;
upgrade_damage_amount[1] = 15000000 /* 0xE4E1C0 */;
upgrade_damage_amount[2] = 25000000 /* 0x17D7840 */;
upgrade_range_cost[0] = 4000;
upgrade_range_cost[1] = 4000;
upgrade_range_amount[0] = 400;
upgrade_range_amount[1] = 500;
upgrade_rate_cost[0] = 5000;
upgrade_rate_cost[1] = 6000;
upgrade_rate_amount[0] = 60;
upgrade_rate_amount[1] = 90;
comboGetInRange();
modifyUpdate();
}
IndicateDamage.setPercentage(upgradeAsPercent("damage"));
IndicateRange.setPercentage(upgradeAsPercent("range"));
IndicateRate.setPercentage(upgradeAsPercent("rate"));
}
function update() {
var _local2 = GameClock.timeNow();
var _local3 = _local2 - time_last;
if (_local3 > 0) {
if (freak_available == true) {
if (_local2 >= freak_next) {
freakoutNow();
}
}
weapon_target = targetAvailableOrAcquire(weapon_target, this, weapon_range_effective, target_type);
if (weapon_target && (weapon_target._name)) {
target_bear_to = undefined;
turretTryFiring(weapon_target);
} else if (target_bear_to && (target_bear_to._name)) {
turretBearTowards(target_bear_to, _local3);
}
}
time_last = _local2;
if (active == false) {
clearInterval(interval);
}
return(true);
}
function turretTryFiring(the_target) {
if (the_target && (the_target._name)) {
var _local3 = GameClock.timeNow() - time_last;
if (turretBearTowards(the_target, _local3) == true) {
} else if (weapon_must_face == true) {
return(false);
}
if (turretCanFire()) {
if (comboCanFire()) {
comboFire(the_target);
} else {
turretFire(the_target, weapon_damage_effective);
}
}
}
return(true);
}
function onUpgrade() {
if (upgrade_bullet[upgrade_damage_level]) {
weapon_type = upgrade_bullet[upgrade_damage_level];
}
}
function onSell() {
}
function comboFire(the_target) {
comboCountColours();
var _local7 = combo_blue.length;
var _local6 = combo_green.length;
var _local5 = combo_red.length;
var _local4 = combo_yellow.length;
var _local2 = new Object();
_local2.the_target = the_target;
turretFire(the_target, weapon_damage_effective);
}
static var turret_cost = 12000;
var display_name = "Railgun";
var sound_fire = "Tazer";
var weapon_rotate = 90;
var modify_possible = false;
var combo_never = true;
}
Symbol 1363 MovieClip [__Packages.turrets.TurretRangeUp] Frame 0
class turrets.TurretRangeUp extends turrets.TurretModify
{
function TurretRangeUp () {
super();
}
static var turret_cost = 2000;
var turret_type = "RangeUp";
var display_name = "Ranger";
var modify_up_range = 100;
}
Symbol 1364 MovieClip [__Packages.turrets.TurretRangeUpExchange] Frame 0
class turrets.TurretRangeUpExchange extends turrets.TurretModify
{
function TurretRangeUpExchange () {
super();
}
static var turret_cost = 1000;
var turret_type = "RangeUpExchange";
var display_name = "RangerEx";
var modify_up_range = 100;
var modify_up_rate_mult = -0.25;
}
Symbol 1365 MovieClip [__Packages.turrets.TurretRateUp] Frame 0
class turrets.TurretRateUp extends turrets.TurretModify
{
function TurretRateUp () {
super();
}
static var turret_cost = 3000;
var turret_type = "RateUp";
var display_name = "Speed";
var modify_up_rate_mult = 1.2;
}
Symbol 1366 MovieClip [__Packages.turrets.TurretRateUpExchange] Frame 0
class turrets.TurretRateUpExchange extends turrets.TurretModify
{
function TurretRateUpExchange () {
super();
}
static var turret_cost = 1200;
var turret_type = "RateUpExchange";
var display_name = "SpeedEx";
var modify_up_damage_mult = -0.4;
var modify_up_range_mult = -0.1;
var modify_up_rate_mult = 0.6;
}
Symbol 1367 MovieClip [__Packages.turrets.TurretRed] Frame 0
class turrets.TurretRed extends turrets.Turret
{
var pre_setup, weapon_damage, weapon_range, weapon_rate, turret_type, weapon_type, upgrade_damage_cost, upgrade_damage_amount, upgrade_range_cost, upgrade_range_amount, upgrade_rate_cost, upgrade_rate_amount, upgrade_bullet, comboGetInRange, modifyUpdate, IndicateDamage, upgradeAsPercent, IndicateRange, IndicateRate, weapon_must_face, time_last, weapon_target, targetAvailableOrAcquire, weapon_range_effective, target_type, target_bear_to, turretBearTowards, turretCanFire, turretFire, weapon_damage_effective, active, interval, comboCanFire, upgrade_damage_level, upgrade_range_level, upgrade_rate_level, targetAcquire, comboCountColours, combo_blue, combo_green, combo_red, combo_yellow, comboFireNuke, comboFireNapalm, comboFirePoisonGas, comboFireTazerRocket, comboFireLaserRocket;
function TurretRed () {
super();
if (pre_setup == false) {
weapon_damage = 50;
weapon_range = 200;
weapon_rate = 50;
turret_type = "Red";
weapon_type = "Rocket";
upgrade_damage_cost = new Array();
upgrade_damage_amount = new Array();
upgrade_range_cost = new Array();
upgrade_range_amount = new Array();
upgrade_rate_cost = new Array();
upgrade_rate_amount = new Array();
upgrade_bullet = new Array();
upgrade_damage_cost[0] = 50;
upgrade_damage_cost[1] = 100;
upgrade_damage_cost[2] = 200;
upgrade_damage_cost[3] = 350;
upgrade_damage_cost[4] = 650;
upgrade_damage_cost[5] = 1200;
upgrade_damage_cost[6] = 1300;
upgrade_damage_cost[7] = 1500;
upgrade_damage_cost[8] = 1500;
upgrade_damage_amount[0] = 120;
upgrade_damage_amount[1] = 350;
upgrade_damage_amount[2] = 800;
upgrade_damage_amount[3] = 1950;
upgrade_damage_amount[4] = 6050;
upgrade_damage_amount[5] = 11500;
upgrade_damage_amount[6] = 27000;
upgrade_damage_amount[7] = 48900;
upgrade_damage_amount[8] = 65000;
upgrade_range_cost[0] = 35;
upgrade_range_cost[1] = 80;
upgrade_range_cost[2] = 160;
upgrade_range_cost[3] = 400;
upgrade_range_cost[4] = 900;
upgrade_range_cost[5] = 1100;
upgrade_range_cost[6] = 1300;
upgrade_range_cost[7] = 1500;
upgrade_range_amount[0] = 210;
upgrade_range_amount[1] = 220;
upgrade_range_amount[2] = 230;
upgrade_range_amount[3] = 250;
upgrade_range_amount[4] = 275;
upgrade_range_amount[5] = 300;
upgrade_range_amount[6] = 325;
upgrade_range_amount[7] = 350;
upgrade_rate_cost[0] = 30;
upgrade_rate_cost[1] = 60;
upgrade_rate_cost[2] = 115;
upgrade_rate_cost[3] = 200;
upgrade_rate_cost[4] = 340;
upgrade_rate_cost[5] = 600;
upgrade_rate_cost[6] = 900;
upgrade_rate_cost[7] = 1050;
upgrade_rate_cost[8] = 1150;
upgrade_rate_amount[0] = 60;
upgrade_rate_amount[1] = 70;
upgrade_rate_amount[2] = 85;
upgrade_rate_amount[3] = 100;
upgrade_rate_amount[4] = 115;
upgrade_rate_amount[5] = 135;
upgrade_rate_amount[6] = 155;
upgrade_rate_amount[7] = 180;
upgrade_rate_amount[8] = 210;
upgrade_bullet[0] = "Rocket";
upgrade_bullet[1] = "Rocket";
upgrade_bullet[2] = "Rocket2";
upgrade_bullet[3] = "Rocket3";
upgrade_bullet[4] = "Rocket4";
upgrade_bullet[5] = "Rocket5";
upgrade_bullet[6] = "Rocket6";
upgrade_bullet[7] = "Rocket7";
upgrade_bullet[8] = "Rocket8";
upgrade_bullet[9] = "Rocket9";
comboGetInRange();
modifyUpdate();
}
holding_current = new Array();
IndicateDamage.setPercentage(upgradeAsPercent("damage"));
IndicateRange.setPercentage(upgradeAsPercent("range"));
IndicateRate.setPercentage(upgradeAsPercent("rate"));
weapon_must_face = false;
}
function update() {
var _local6 = GameClock.timeNow();
var _local5 = _local6 - time_last;
if (_local5 > 0) {
weapon_target = targetAvailableOrAcquire(weapon_target, this, weapon_range_effective, target_type);
if (weapon_target) {
turretTryFiring(weapon_target);
var _local2;
for (var _local4 in holding_current) {
_local2 = holding_current[_local4];
_local2.targetThis(weapon_target);
}
holding_current = new Array();
} else if (target_bear_to && (target_bear_to._name)) {
turretBearTowards(target_bear_to, _local5);
}
if (holding_pattern) {
if (turretCanFire()) {
var _local3 = 0;
for (var _local4 in holding_current) {
_local3++;
}
if (_local3 < holding_max) {
holding_round = true;
var _local7 = turretFire(undefined, weapon_damage_effective);
holding_round = false;
holding_current.push(_local7);
}
}
}
}
time_last = _local6;
if (active == false) {
clearInterval(interval);
}
return(true);
}
function turretTryFiring(the_target) {
if (the_target && (the_target._name)) {
var _local3 = GameClock.timeNow() - time_last;
if (turretBearTowards(the_target, _local3) == true) {
} else if (weapon_must_face == true) {
return(false);
}
if (turretCanFire()) {
if (comboCanFire()) {
comboFire(the_target);
} else {
turretFire(the_target, weapon_damage_effective);
}
}
}
return(true);
}
function holdingDispatch(the_target) {
var _local2;
for (var _local3 in holding_current) {
_local2 = holding_current[_local3];
_local2.targetThis(weapon_target);
}
holding_current = new Array();
return(true);
}
function onUpgrade() {
if (upgrade_bullet[upgrade_damage_level]) {
weapon_type = upgrade_bullet[upgrade_damage_level];
}
if (((upgrade_damage_level >= upgrade_holding_damage) && (upgrade_range_level >= upgrade_holding_range)) && (upgrade_rate_level >= upgrade_holding_rate)) {
holding_pattern = true;
}
}
function onSell() {
var _local3 = targetAcquire(this, 720, "weak");
var _local2;
for (var _local4 in holding_current) {
_local2 = holding_current[_local4];
_local2.targetThis(_local3);
}
}
function comboFire(the_target) {
comboCountColours();
var _local3 = combo_blue.length;
var _local5 = combo_green.length;
var _local6 = combo_red.length;
var _local4 = combo_yellow.length;
var _local2 = new Object();
_local2.the_target = the_target;
if (_local3 >= 2) {
return(comboFireNuke(_local2));
}
if (((_local6 >= 1) && (_local4 >= 1)) && (_local3 >= 1)) {
return(comboFireNapalm(_local2));
}
if ((_local3 >= 1) && (_local5 >= 1)) {
return(comboFirePoisonGas(_local2));
}
if (_local4 >= 1) {
return(comboFireTazerRocket(_local2));
}
if (_local5 >= 1) {
return(comboFireLaserRocket(_local2));
}
return(turretFire(the_target, weapon_damage_effective));
}
static var turret_cost = 20;
var display_name = "Rocket";
var sound_fire = "Rocket";
var holding_pattern = false;
var holding_round = false;
var holding_max = 4;
var holding_current = new Array();
var upgrade_holding_damage = 0;
var upgrade_holding_range = 3;
var upgrade_holding_rate = 3;
}
Symbol 1368 MovieClip [__Packages.turrets.TurretSniper] Frame 0
class turrets.TurretSniper extends turrets.Turret
{
var pre_setup, weapon_damage, weapon_range, weapon_rate, turret_type, weapon_type, upgrade_damage_cost, upgrade_damage_amount, upgrade_range_cost, upgrade_range_amount, upgrade_rate_cost, upgrade_rate_amount, comboGetInRange, modifyUpdate, IndicateDamage, upgradeAsPercent, IndicateRange, IndicateRate, WeaponLegs, Weapon, getNextHighestDepth, brass_heap, createEmptyMovieClip, globalToLocal, effectNew, time_last, freak_available, freak_next, freakoutNow, weapon_target, targetAvailableOrAcquire, weapon_range_effective, target_type, target_bear_to, turretBearTowards, active, interval, weapon_must_face, turretCanFire, comboCanFire, turretFire, weapon_damage_effective, upgrade_damage_level, upgrade_bullet, freak_level_damage, freak_level_range, upgrade_range_level, freak_level_rate, upgrade_rate_level, comboCountColours, combo_blue, combo_green, combo_red, combo_yellow;
function TurretSniper () {
super();
if (pre_setup == false) {
weapon_damage = 3000000 /* 0x2DC6C0 */;
weapon_range = 300;
weapon_rate = 30;
turret_type = "Sniper";
weapon_type = "BulletSniper";
upgrade_damage_cost = new Array();
upgrade_damage_amount = new Array();
upgrade_range_cost = new Array();
upgrade_range_amount = new Array();
upgrade_rate_cost = new Array();
upgrade_rate_amount = new Array();
upgrade_damage_cost[0] = 5000;
upgrade_damage_cost[1] = 7500;
upgrade_damage_cost[2] = 10000;
upgrade_damage_amount[0] = 7000000 /* 0x6ACFC0 */;
upgrade_damage_amount[1] = 15000000 /* 0xE4E1C0 */;
upgrade_damage_amount[2] = 55000000 /* 0x3473BC0 */;
upgrade_range_cost[0] = 4000;
upgrade_range_cost[1] = 4000;
upgrade_range_amount[0] = 400;
upgrade_range_amount[1] = 500;
upgrade_rate_cost[0] = 5000;
upgrade_rate_cost[1] = 8000;
upgrade_rate_amount[0] = 45;
upgrade_rate_amount[1] = 60;
comboGetInRange();
modifyUpdate();
}
IndicateDamage.setPercentage(upgradeAsPercent("damage"));
IndicateRange.setPercentage(upgradeAsPercent("range"));
IndicateRate.setPercentage(upgradeAsPercent("rate"));
WeaponLegs._rotation = Math.random() * 90;
}
function onLoad() {
var _local4 = "Brass";
var _local3 = Weapon.getDepth();
var _local2 = new Object();
_local2._x = 0;
_local2._y = 0;
Weapon.swapDepths(getNextHighestDepth());
brass_heap = createEmptyMovieClip(_local4, _local3, _local2);
brass_heap.cur_piece = 0;
}
function brassFire() {
var _local4 = new Object();
_local4.x = Weapon.BrassPoint._x;
_local4.y = Weapon.BrassPoint._y;
Weapon.localToGlobal(_local4);
globalToLocal(_local4);
var _local2 = new Object();
_local2.x = (Weapon.BrassPointTo._x + (Math.random() * 20)) - 10;
_local2.y = (Weapon.BrassPointTo._y + (Math.random() * 20)) - 10;
Weapon.localToGlobal(_local2);
globalToLocal(_local2);
var _local7 = "BarrattBrass";
var _local8 = brass_heap.cur_piece;
var _local10 = _local7 + _local8;
var _local5 = new Object();
_local5._x = _local4.x;
_local5._y = _local4.y;
var _local6 = brass_heap[_local10];
if (_local6 && (_local6._name)) {
_local6.removeMyself();
}
var _local9 = brass_heap.attachMovie(_local7, _local10, _local8, _local5);
brass_heap.cur_piece++;
brass_heap.cur_piece = brass_heap.cur_piece % GameStatus.sniper_brass_max;
var _local3 = new Object();
_local3.target_obj = _local9;
_local3.target_x = _local2.x;
_local3.target_y = _local2.y;
_local3.target_rotation = 2160 + (Math.random() * 2160);
_local3.effect_duration = 400;
_local9.effect = effectNew(_local3);
}
function update() {
var _local2 = GameClock.timeNow();
var _local3 = _local2 - time_last;
if (_local3 > 0) {
if (freak_available == true) {
if (_local2 >= freak_next) {
freakoutNow();
}
}
weapon_target = targetAvailableOrAcquire(weapon_target, this, weapon_range_effective, target_type);
if (weapon_target && (weapon_target._name)) {
target_bear_to = undefined;
turretTryFiring(weapon_target);
} else if (target_bear_to && (target_bear_to._name)) {
turretBearTowards(target_bear_to, _local3);
}
}
time_last = _local2;
if (active == false) {
clearInterval(interval);
}
return(true);
}
function turretTryFiring(the_target) {
if (the_target && (the_target._name)) {
var _local3 = GameClock.timeNow() - time_last;
if (turretBearTowards(the_target, _local3) == true) {
} else if (weapon_must_face == true) {
return(false);
}
if (turretCanFire()) {
if (comboCanFire()) {
comboFire(the_target);
} else {
turretFire(the_target, weapon_damage_effective);
}
}
}
return(true);
}
function onUpgrade() {
if (upgrade_bullet[upgrade_damage_level]) {
weapon_type = upgrade_bullet[upgrade_damage_level];
}
if (((upgrade_damage_level >= freak_level_damage) && (upgrade_range_level >= freak_level_range)) && (upgrade_rate_level >= freak_level_rate)) {
freak_available = true;
if (freak_next == false) {
freak_next = GameClock.timeNow() + 60000;
}
}
}
function onSell() {
}
function comboFire(the_target) {
comboCountColours();
var _local7 = combo_blue.length;
var _local6 = combo_green.length;
var _local5 = combo_red.length;
var _local4 = combo_yellow.length;
var _local2 = new Object();
_local2.the_target = the_target;
turretFire(the_target, weapon_damage_effective);
}
static var turret_cost = 12000;
var display_name = "Sniper";
var sound_fire = "Sniper";
var weapon_rotate = 90;
var modify_possible = false;
var combo_never = true;
}
Symbol 1369 MovieClip [__Packages.CombonlyPlate] Frame 0
class CombonlyPlate extends OnslaughtObject
{
var ring1_spin, ring2_spin, _parent, Ring1, effectNew, Ring2;
function CombonlyPlate () {
super();
ring1_spin = 4871 + (Math.random() * 500);
ring2_spin = 2917 + (Math.random() * 500);
}
function onLoad() {
if (_parent.active == true) {
spinRing1();
spinRing2();
}
}
function spinRing1() {
if (_parent.active != true) {
return(undefined);
}
var _local4 = ring1_spin;
var _local3 = Ring1;
_local3._rotation = _local3._rotation % 360;
var _local2 = new Object();
_local2.target_obj = _local3;
_local2.target_rotation = 360;
_local2.effect_duration = _local4;
_local2.from = this;
_local2.onComplete = function () {
this.from.spinRing1();
};
Ring1.effect = effectNew(_local2);
}
function spinRing2() {
if (_parent.active != true) {
return(undefined);
}
var _local4 = ring2_spin;
var _local3 = Ring2;
_local3._rotation = _local3._rotation % 360;
var _local2 = new Object();
_local2.target_obj = _local3;
_local2.target_rotation = -360;
_local2.effect_duration = _local4;
_local2.from = this;
_local2.onComplete = function () {
this.from.spinRing2();
};
Ring2.effect = effectNew(_local2);
}
}
Symbol 1370 MovieClip [__Packages.turrets.TurretCombonly] Frame 0
class turrets.TurretCombonly extends turrets.Turret
{
var turret_type, weapon_type, pre_setup, weapon_damage, weapon_rate, upgrade_damage_cost, upgrade_damage_amount, upgrade_range_cost, upgrade_range_amount, upgrade_rate_cost, upgrade_rate_amount, comboGetInRange, modifyUpdate, TheColour, IndicateDamage, upgradeAsPercent, IndicateRange, IndicateRate, combo_capable, combo_fired, weapon_fired, combo_next, Spinner, interval, combo_type_count, combo_types, weapon_colour, time_last, weapon_target, targetAvailableOrAcquire, target_type, target_bear_to, turretBearTowards, active, comboCanFire, combo_weapons, combo_take, combo_needs, linkNotifyNew, comboNotifyNew, linkNotifyGone, comboNotifyGone, linkGetInRange, combo_holes_set, comboCountColoursRegardless, combo_blue, combo_green, combo_red, combo_yellow, arrayPick, cash_value, _x, _y, getNextHighestDepth, Weapon, attachMovie, WeaponLegs, frame_space, comboFireNuke, comboFirePoisonGas, comboFireTazerRocket, comboFireLaserRocket, comboFireNapalm, comboFireRocketBFG, comboFireBFG, comboFireBigLaserClusterLandmine, comboFireBigClusterLandmine, comboFireBigLaserClusterBomb, comboFireBigClusterBomb, comboFireSparkyLandmine, comboFireSparkyClusterBomb, comboFireLaserClusterBomb, comboFireBigLandmine, comboFireClusterBomb, comboFireLandmine, comboFireBlackHole, comboFireTazerBFG, comboFireShockwave;
function TurretCombonly () {
super();
turret_type = "Combonly";
weapon_type = undefined;
if (pre_setup == false) {
weapon_damage = 0;
weapon_range = 300;
weapon_rate = 250;
upgrade_damage_cost = new Array();
upgrade_damage_amount = new Array();
upgrade_range_cost = new Array();
upgrade_range_amount = new Array();
upgrade_rate_cost = new Array();
upgrade_rate_amount = new Array();
comboGetInRange();
modifyUpdate();
}
TheColour._alpha = 0;
IndicateDamage.setPercentage(upgradeAsPercent("damage"));
IndicateRange.setPercentage(upgradeAsPercent("range"));
IndicateRate.setPercentage(upgradeAsPercent("rate"));
}
function onLoad() {
combo_capable = true;
combo_fired = GameClock.timeNow();
weapon_fired = combo_fired;
combo_next = combo_fired;
comboScan();
var _local2;
_local2 = new flash.filters.BlurFilter(12, 12);
TheColour.filters = new Array(_local2);
_local2 = new flash.filters.BlurFilter(3, 3);
Spinner.filters = new Array(_local2);
clearInterval(interval);
interval = setInterval(this, "update", 1000);
combo_type_count = 0;
}
function update() {
if (combo_mode == "choose") {
comboGlowCancel();
comboScan();
combo_type_count = 0;
} else if (combo_mode == "cycle") {
comboScan();
var _local7 = 200;
combo_type_count = (combo_type_count + 1) % combo_types.length;
var _local2 = combo_types[combo_type_count];
if (_local2 == undefined) {
weapon_colour = undefined;
combo_to_fire = undefined;
comboGlowCancel();
comboScan();
combo_mode = "choose";
} else {
var _local3 = 16750899 /* 0xFF9933 */;
if (_local2 == "Red") {
_local3 = 16711680 /* 0xFF0000 */;
}
if (_local2 == "Green") {
_local3 = 113153 /* 0x01BA01 */;
}
if (_local2 == "Blue") {
_local3 = 255;
}
if (_local2 == "Yellow") {
_local3 = 16763904 /* 0xFFCC00 */;
}
var _local4;
_local4 = new Object();
_local4.tint = _local3;
_local4._alpha = 75;
_local4.overwrite = false;
gs.TweenLite.to(TheColour, 0.5, _local4);
weapon_colour = _local2;
}
} else if (combo_mode == "fire") {
var _local6 = GameClock.timeNow();
var _local5 = _local6 - time_last;
if (_local5 > 0) {
weapon_target = targetAvailableOrAcquire(weapon_target, this, weapon_range_effective, target_type);
if (weapon_target && (weapon_target._name)) {
target_bear_to = undefined;
turretTryFiring(weapon_target);
} else if (target_bear_to && (target_bear_to._name)) {
turretBearTowards(target_bear_to, _local5);
}
}
time_last = _local6;
}
if (active == false) {
clearInterval(interval);
return(undefined);
}
return(true);
}
function turretTryFiring(the_target) {
if (the_target && (the_target._name)) {
var _local3 = GameClock.timeNow() - time_last;
if (turretBearTowards(the_target, _local3)) {
if (comboCanFire()) {
comboFire(the_target);
}
}
}
return(true);
}
function onPress() {
if (GameStatus.game_paused == true) {
return(undefined);
}
if (GameStatus.game_over == true) {
return(undefined);
}
if (active == false) {
return(undefined);
}
if (_root.Game.game_demo == true) {
return(undefined);
}
if (combo_mode == "cycle") {
if (weapon_colour != undefined) {
combo_mode = "fire";
combo_to_fire = combo_weapons[weapon_colour];
combo_take = combo_needs[weapon_colour];
comboChoose(weapon_colour);
}
}
_root.Game.TurretManager.turretSelect(this);
}
function notifyNew(the_turret) {
linkNotifyNew(the_turret);
if (combo_to_fire != undefined) {
return(undefined);
}
combo_update = true;
combo_mode = "choose";
comboGlowCancel();
comboNotifyNew(the_turret);
comboScan();
_root.Game.TurretManager.broadcastMessage("onTurretStatsChange");
}
function notifyGone(the_turret) {
linkNotifyGone(the_turret);
if (combo_to_fire != undefined) {
return(undefined);
}
combo_update = true;
combo_mode = "choose";
comboGlowCancel();
comboNotifyGone(the_turret);
comboScan();
_root.Game.TurretManager.broadcastMessage("onTurretStatsChange");
}
function onMove() {
linkGetInRange();
combo_holes_set = false;
if (combo_to_fire != undefined) {
return(undefined);
}
notifyNew(this);
}
function comboScan(the_turret) {
if (combo_to_fire != undefined) {
return(undefined);
}
comboCountColoursRegardless();
var _local5 = combo_blue.length;
var _local7 = combo_green.length;
var _local6 = combo_red.length;
var _local9 = combo_yellow.length;
var _local2 = new Array();
var _local3 = new Array();
if (_local5 >= 2) {
_local2.Blue = "Landmine";
_local3.Blue = new Object({blue:2});
}
if ((_local6 >= 1) && (_local5 >= 1)) {
_local2.Blue = "ClusterBomb";
_local3.Blue = new Object({blue:1, red:1});
}
if ((_local7 >= 1) && (_local6 >= 1)) {
_local2.Red = "LaserRocket";
_local3.Red = new Object({green:1, red:1});
}
if ((_local9 >= 1) && (_local6 >= 1)) {
_local2.Red = "TazerRocket";
_local3.Red = new Object({yellow:1, red:1});
}
if ((_local6 >= 1) && (_local5 >= 2)) {
_local2.Blue = "BigLandmine";
_local3.Blue = new Object({blue:2, red:1});
}
if ((_local5 >= 2) && (_local9 >= 1)) {
_local2.Blue = "SparkyLandmine";
_local3.Blue = new Object({blue:2, yellow:1});
}
if ((_local6 >= 2) && (_local5 >= 1)) {
_local2.Blue = "BigClusterBomb";
_local3.Blue = new Object({red:2, blue:1});
}
if ((_local5 >= 2) && (_local6 >= 1)) {
_local2.Red = "Nuke";
_local3.Red = new Object({blue:2, red:1});
}
if ((_local9 >= 3) && (_local7 >= 1)) {
_local2.Yellow = "BlackHole";
_local3.Yellow = new Object({yellow:3, green:1});
}
if (((_local6 >= 1) && (_local7 >= 1)) && (_local5 >= 1)) {
_local2.Blue = "LaserClusterBomb";
_local3.Blue = new Object({red:1, green:1, blue:1});
}
if (((_local6 >= 1) && (_local5 >= 1)) && (_local9 >= 1)) {
_local2.Yellow = "TazerBFG";
_local3.Yellow = new Object({red:1, yellow:1, blue:1});
}
if (((_local6 >= 1) && (_local5 >= 1)) && (_local7 >= 1)) {
_local2.Green = "BFG";
_local3.Green = new Object({red:1, green:1, blue:1});
}
if (((_local5 >= 1) && (_local7 >= 1)) && (_local6 >= 1)) {
_local2.Red = "PoisonGas";
_local3.Red = new Object({red:1, green:1, blue:1});
}
if (((_local6 >= 1) && (_local9 >= 1)) && (_local5 >= 1)) {
_local2.Blue = "SparkyClusterBomb";
_local3.Blue = new Object({red:1, yellow:1, blue:1});
}
if (((_local9 >= 2) && (_local5 >= 1)) && (_local7 >= 1)) {
_local2.Yellow = "Shockwave";
_local3.Yellow = new Object({yellow:2, green:1, blue:1});
}
if (((_local6 >= 2) && (_local5 >= 1)) && (_local7 >= 1)) {
_local2.Blue = "BigLaserClusterBomb";
_local3.Blue = new Object({red:2, green:1, blue:1});
}
if (((_local6 >= 2) && (_local5 >= 1)) && (_local7 >= 1)) {
_local2.Green = "RocketBFG";
_local3.Green = new Object({red:2, green:1, blue:1});
}
if (((_local6 >= 2) && (_local5 >= 1)) && (_local9 >= 1)) {
_local2.Red = "Napalm";
_local3.Red = new Object({red:2, yellow:1, blue:1});
}
if ((_local6 >= 2) && (_local5 >= 2)) {
_local2.Blue = "BigClusterLandmine";
_local3.Blue = new Object({red:2, blue:2});
}
if (((_local6 >= 2) && (_local5 >= 2)) && (_local7 >= 1)) {
_local2.Blue = "BigLaserClusterBombLandmine";
_local3.Blue = new Object({red:2, blue:2, green:1});
}
var _local8 = 0;
combo_types = new Array();
combo_weapons = new Array();
combo_needs = new Array();
var _local4;
for (var _local10 in _local2) {
_local4 = _local10.toString();
combo_types.push(_local4);
combo_weapons[_local4] = _local2[_local10];
combo_needs[_local4] = _local3[_local10];
_local8++;
}
if (_local8 == 0) {
combo_mode = "choose";
} else if (_local8 > 0) {
combo_mode = "cycle";
}
return(undefined);
}
function comboChoose(weapon_type) {
if (weapon_type == undefined) {
return(undefined);
}
comboGetInRange();
comboCountColoursRegardless();
var _local16 = combo_blue.length;
var _local15 = combo_green.length;
var _local14 = combo_red.length;
var _local12 = combo_yellow.length;
var _local8;
var _local7;
var _local9;
for (var _local11 in combo_take) {
_local7 = "combo_" + _local11;
_local8 = this[_local7];
_local9 = combo_take[_local11];
if (_local8.length < _local9) {
comboGlowCancel();
combo_mode = "choose";
return(undefined);
}
}
combo_mode = "fire";
comboGlowCancel();
var _local3;
_local3 = new Object();
_local3._alpha = 0;
_local3.onComplete = function (the_item) {
the_item.removeMovieClip();
};
_local3.onCompleteParams = [Spinner];
gs.TweenLite.to(Spinner, 0.5, _local3);
comboWeaponAttach(weapon_type);
active = false;
var _local6;
var _local4;
var _local17;
for (var _local11 in combo_take) {
_local7 = "combo_" + _local11;
_local8 = this[_local7];
_local9 = combo_take[_local11];
_local6 = arrayPick(_local8, _local9);
for (var _local10 in _local6) {
_local4 = _local6[_local10];
_local4.active = false;
cash_value = cash_value + _local4.cash_value;
var _local5 = new Object();
_local5.blurX = 15;
_local5.blurY = 15;
_local5.overwrite = false;
_local3 = new Object();
_local3.blurFilter = _local5;
_local3.onComplete = function (tur) {
_root.Game.TurretManager.turretSold(tur);
tur.removeMyself();
};
_local3.onCompleteParams = [_local4];
gs.TweenFilterLite.to(_local4, 2, _local3);
_local3 = new Object();
_local3._alpha = 0;
_local3._x = _x;
_local3._y = _y;
_local3.overwrite = false;
gs.TweenLite.to(_local4, 2, _local3);
}
}
}
function comboWeaponAttach(weapon_type) {
var _local2;
if (weapon_type == "Red") {
_local2 = "MissileLauncher";
}
if (weapon_type == "Yellow") {
_local2 = "SparkGun";
}
if (weapon_type == "Green") {
_local2 = "Laser";
}
if (weapon_type == "Blue") {
_local2 = "Cannon";
}
var _local3 = getNextHighestDepth();
var _local6 = "Weapon";
var _local5 = new Object();
_local5._alpha = 0;
_local5._x = 0;
_local5._y = 0;
Weapon = attachMovie(_local2, _local6, _local3, _local5);
var _local4 = new Object();
_local4.autoAlpha = 100;
_local4.onComplete = function (tur) {
tur.comboActivate();
tur.combo_capable = true;
};
_local4.onCompleteParams = [this];
gs.TweenLite.to(Weapon, 1.5, _local4);
if (weapon_type == "Blue") {
_local2 = "CannonLegs";
_local3 = getNextHighestDepth();
_local6 = _local2 + _local3;
WeaponLegs = attachMovie(_local2, _local6, _local3, _local5);
WeaponLegs.swapDepths(Weapon);
}
if (weapon_type == "Yellow") {
_local2 = "ElectricLegs";
_local3 = getNextHighestDepth();
_local6 = _local2 + _local3;
WeaponLegs = attachMovie(_local2, _local6, _local3, _local5);
WeaponLegs.swapDepths(Weapon);
}
if (WeaponLegs && (WeaponLegs._name)) {
WeaponLegs._rotation = Math.round(Math.random() * 360);
_local4 = new Object();
_local4.autoAlpha = 100;
gs.TweenLite.to(WeaponLegs, 3, _local4);
}
}
function comboActivate() {
active = true;
clearInterval(interval);
interval = setInterval(this, "update", frame_space);
}
function comboGlowCancel() {
var _local2 = new Object();
_local2._alpha = 0;
gs.TweenLite.to(TheColour, 0.25, _local2);
}
function comboFire(the_target) {
var _local2 = new Object();
_local2.combo_silent = true;
_local2.the_target = the_target;
switch (combo_to_fire) {
case "Nuke" :
comboFireNuke(_local2);
break;
case "PoisonGas" :
comboFirePoisonGas(_local2);
break;
case "TazerRocket" :
comboFireTazerRocket(_local2);
break;
case "LaserRocket" :
comboFireLaserRocket(_local2);
break;
case "Napalm" :
comboFireNapalm(_local2);
break;
case "RocketBFG" :
comboFireRocketBFG(_local2);
break;
case "BFG" :
comboFireBFG(_local2);
break;
case "BigLaserClusterBombLandmine" :
comboFireBigLaserClusterLandmine(_local2);
break;
case "BigClusterLandmine" :
comboFireBigClusterLandmine(_local2);
break;
case "BigLaserClusterBomb" :
comboFireBigLaserClusterBomb(_local2);
break;
case "BigClusterBomb" :
comboFireBigClusterBomb(_local2);
break;
case "SparkyLandmine" :
comboFireSparkyLandmine(_local2);
break;
case "SparkyClusterBomb" :
comboFireSparkyClusterBomb(_local2);
break;
case "LaserClusterBomb" :
comboFireLaserClusterBomb(_local2);
break;
case "BigLandmine" :
comboFireBigLandmine(_local2);
break;
case "ClusterBomb" :
comboFireClusterBomb(_local2);
break;
case "Landmine" :
comboFireLandmine(_local2);
break;
case "BlackHole" :
comboFireBlackHole(_local2);
break;
case "TazerBFG" :
comboFireTazerBFG(_local2);
break;
case "Shockwave" :
comboFireShockwave(_local2);
}
}
static var turret_cost = 5000;
var weapon_range = 200;
var weapon_range_effective = 200;
var display_name = "Combonly";
var combo_to_fire = undefined;
var combo_update = true;
var combo_mode = "choose";
var combo_never = true;
var need_red = 0;
var need_green = 0;
var need_blue = 0;
var need_yellow = 0;
}
Symbol 1371 MovieClip [__Packages.turrets.TurretTargeter] Frame 0
class turrets.TurretTargeter extends turrets.Turret
{
var pre_setup, weapon_damage, weapon_range, weapon_rate, turret_type, weapon_type, upgrade_damage_cost, upgrade_damage_amount, upgrade_range_cost, upgrade_range_amount, upgrade_rate_cost, upgrade_rate_amount, modifyUpdate, IndicateDamage, upgradeAsPercent, IndicateRange, IndicateRate, WeaponLegs, target_beam, join_lines_in, join_lines_out, time_last, weapon_target, targetAvailableOrAcquire, weapon_range_effective, turretBearTowards, Weapon, active, interval, turretCanFire, weapon_fired, join_to, join_possible, join_clip, join_max, join_visible, join_lines, _x, _y;
function TurretTargeter () {
super();
if (pre_setup == false) {
weapon_damage = 0;
weapon_range = 120;
weapon_rate = 240;
turret_type = "Targeter";
weapon_type = undefined;
upgrade_damage_cost = new Array();
upgrade_damage_amount = new Array();
upgrade_range_cost = new Array();
upgrade_range_amount = new Array();
upgrade_rate_cost = new Array();
upgrade_rate_amount = new Array();
upgrade_range_cost[0] = 250;
upgrade_range_cost[1] = 350;
upgrade_range_cost[2] = 500;
upgrade_range_cost[3] = 700;
upgrade_range_amount[0] = 140;
upgrade_range_amount[1] = 170;
upgrade_range_amount[2] = 200;
upgrade_range_amount[3] = 230;
modifyUpdate();
}
IndicateDamage.setPercentage(upgradeAsPercent("damage"));
IndicateRange.setPercentage(upgradeAsPercent("range"));
IndicateRate.setPercentage(upgradeAsPercent("rate"));
WeaponLegs._rotation = Math.random() * 90;
var _local6;
var _local5;
var _local4;
_local5 = "TargetBeam";
_local4 = _root.Game.OverlayManager.getNextHighestDepth();
_local6 = _local5 + _local4;
target_beam = _root.Game.OverlayManager.createEmptyMovieClip(_local6, _local4);
_local5 = "JoinLinesIn";
_local4 = _root.Game.OverlayManager.getNextHighestDepth();
_local6 = _local5 + _local4;
join_lines_in = _root.Game.OverlayManager.createEmptyMovieClip(_local6, _local4);
_local5 = "JoinLinesOut";
_local4 = _root.Game.OverlayManager.getNextHighestDepth();
_local6 = _local5 + _local4;
join_lines_out = _root.Game.OverlayManager.createEmptyMovieClip(_local6, _local4);
}
function onUpgrade() {
}
function onMove() {
}
function onSell() {
joinHide();
target_beam.removeMovieClip();
}
function onTurretGone(the_tur) {
joinUnjoin(the_tur);
}
function update() {
var _local3 = GameClock.timeNow();
var _local2 = _local3 - time_last;
if (_local2 > 0) {
weapon_target = targetAvailableOrAcquire(weapon_target, this, weapon_range_effective, target_type);
if (weapon_target) {
if (turretBearTowards(weapon_target, _local2)) {
targetPaint(weapon_target);
turretTryFiring(weapon_target);
}
} else {
target_beam.clear();
Weapon._rotation = Weapon._rotation + ((_local2 / 1000) * weapon_rotate_idle);
}
}
time_last = _local3;
if (active == false) {
clearInterval(interval);
}
return(true);
}
function turretTryFiring(the_target) {
if (turretCanFire() == true) {
weapon_fired = GameClock.timeNow();
if (join_to.length == 0) {
return(true);
}
for (var _local4 in join_to) {
var _local2 = join_to[_local4];
_local2.turretTryFiring(the_target);
_local2.turretBearTarget(the_target);
}
if (target_reacquire == true) {
weapon_target = undefined;
}
return(true);
}
return(false);
}
function targetPaint(the_target) {
if (target_beam_init == false) {
target_beam.filters = [new flash.filters.GlowFilter(16729156, 40, 4, 4, 2)];
target_beam_init = true;
}
target_beam.clear();
target_beam.lineStyle(1, 16729156, 60);
var _local2 = new flash.geom.Point(Weapon.FirePoint._x, Weapon.FirePoint._y);
Weapon.localToGlobal(_local2);
target_beam.moveTo(_local2.x, _local2.y);
target_beam.lineTo(the_target._x, the_target._y);
}
function joinFrom() {
if (join_possible == false) {
return(undefined);
}
joinCancel();
var _local4 = "TurretJoiner";
var _local3 = _root.Game.TurretManager.getNextHighestDepth();
var _local5 = _local4 + _local3;
join_clip = _root.Game.TurretManager.attachMovie(_local4, _local5, _local3);
join_clip.turret = this;
}
function joinTo(the_tur) {
if (join_possible == false) {
return(false);
}
if (joinToAlready(the_tur)) {
return(true);
}
if (join_to.length == join_max) {
join_to.shift();
}
join_to.push(the_tur);
if (join_visible == true) {
joinUpdate();
}
return(true);
}
function joinUnjoin(the_tur) {
var _local3 = new Array();
for (var _local5 in join_to) {
var _local2 = join_to[_local5];
if (_local2 != the_tur) {
_local3.push(_local2);
}
}
join_to = _local3;
if (join_visible == true) {
joinUpdate();
}
return(true);
}
function joinUpdate() {
joinHide();
joinShow();
}
function joinShow() {
if (join_lines && (join_lines._name)) {
joinHide();
}
join_lines = join_lines_in;
join_lines_in = join_lines_out;
join_lines.clear();
join_lines._alpha = 0;
join_lines._visible = true;
join_lines.filters = [new flash.filters.GlowFilter(16750848, 20, 4, 4, 2)];
join_lines.lineStyle(5, 16750848, 20);
for (var _local3 in join_to) {
var _local2 = join_to[_local3];
join_lines.moveTo(_x, _y);
join_lines.lineTo(_local2._x, _local2._y);
}
gs.TweenLite.to(join_lines, 0.3, {autoAlpha:100});
join_visible = true;
}
function joinHide() {
if (join_lines && (join_lines._name)) {
join_lines_out = join_lines;
gs.TweenLite.to(join_lines_out, 0.3, {autoAlpha:0});
}
join_visible = false;
}
function joinCancel() {
if (join_clip && (join_clip._name)) {
join_clip.removeMovieClip();
}
}
function joinToAlready(the_tur) {
for (var _local4 in join_to) {
var _local2 = join_to[_local4];
if (_local2 == the_tur) {
return(true);
}
}
return(false);
}
static var turret_cost = 1400;
var display_name = "Targeter";
var weapon_rotate = 360;
var weapon_rotate_idle = 90;
var target_type = "fast";
var target_reacquire = true;
var target_beam_init = false;
var combo_never = true;
}
Symbol 1372 MovieClip [__Packages.TurretJoiner] Frame 0
class TurretJoiner extends OnslaughtObject
{
var _x, _y, CanJoin, CannotJoin, AlreadyJoined, link_line, createEmptyMovieClip, getNextHighestDepth, turret, turret_over, trigDistanceTo, removeMyself;
function TurretJoiner () {
super();
_x = _root._xmouse;
_y = _root._ymouse;
_visible = true;
CanJoin._visible = false;
CannotJoin._visible = false;
AlreadyJoined._visible = false;
link_line = createEmptyMovieClip("LinkLine", getNextHighestDepth());
}
function onEnterFrame() {
update();
}
function update() {
_x = _root._xmouse;
_y = _root._ymouse;
joinCheck();
if (link_line_init == false) {
link_line.filters = [new flash.filters.GlowFilter(16755370, 40, 4, 4, 2)];
link_line_init = true;
}
link_line.clear();
link_line.lineStyle(2, 16729156, 60);
if (already_joined == true) {
CanJoin._visible = true;
CannotJoin._visible = false;
AlreadyJoined._visible = true;
link_line.lineStyle(2, 16777062, 80);
} else if (can_join == true) {
CanJoin._visible = true;
CannotJoin._visible = false;
AlreadyJoined._visible = false;
link_line.lineStyle(2, 4521796, 60);
} else {
CanJoin._visible = false;
CannotJoin._visible = true;
AlreadyJoined._visible = false;
link_line.lineStyle(2, 16729156, 60);
}
var _local4 = turret._x - _x;
var _local3 = turret._y - _y;
link_line.lineTo(_local4, _local3);
}
function joinCheck() {
can_join = false;
already_joined = false;
turret_over = undefined;
var _local10 = _x - 30;
var _local8 = _x + 30;
var _local9 = _y - 30;
var _local7 = _y + 30;
var _local12 = 17;
var _local13 = 17;
if (!_root.PlayArea.hitTest(_x, _y, false)) {
return(false);
}
var _local5 = 1000000000 /* 0x3B9ACA00 */;
var _local6;
var _local3;
for (var _local11 in TurretManager.turrets) {
_local3 = TurretManager.turrets[_local11];
if ((((_local3._x > _local10) && (_local3._x < _local8)) && (_local3._y > _local9)) && (_local3._y < _local7)) {
var _local4 = trigDistanceTo(this, _local3);
if (_local4 < _local5) {
_local6 = _local3;
_local5 = _local4;
}
}
}
if (!_local6) {
return(false);
}
if (_local5 > _local12) {
return(false);
}
if (_local5 < _local13) {
_x = _local6._x;
_y = _local6._y;
}
if (_local6 == turret) {
return(false);
}
if (_local6.join_possible == false) {
return(false);
}
turret_over = _local6;
if (turret.joinToAlready(_local6)) {
already_joined = true;
return(false);
}
can_join = true;
return(true);
}
function onRelease() {
joinCheck();
if (turret.joinToAlready(turret_over)) {
turret.joinUnjoin(turret_over);
} else if (can_join == true) {
turret.joinTo(turret_over);
}
removeMyself();
}
var can_join = false;
var already_joined = false;
var _visible = false;
var link_line_init = false;
}
Symbol 1373 MovieClip [__Packages.AttackerFocus] Frame 0
class AttackerFocus extends OnslaughtObject
{
var _x, _y, _visible, targetAcquire, removeMyself;
function AttackerFocus () {
super();
_x = _root._xmouse;
_y = _root._ymouse;
_visible = true;
}
function onEnterFrame() {
focusUpdate();
}
function onRelease() {
focusHere();
}
function focusUpdate() {
_x = _root._xmouse;
_y = _root._ymouse;
}
function focusHere() {
var _local3 = targetAcquire(this, 25, "near");
if (_local3 != undefined) {
_root.Game.AttackerManager.attackerFocus(_local3);
_local3.focusOnMe();
}
removeMyself();
}
function focusCancel() {
removeMyself();
}
}
Symbol 1374 MovieClip [__Packages.OpeningCredits] Frame 0
class OpeningCredits extends OnslaughtObject
{
var LogoAnt, LogoPlayr, CreditURL, CreditTitle, Fader;
function OpeningCredits () {
super();
}
function onLoad() {
if (GameStatus.debug_mode == true) {
done();
return(undefined);
}
if (GameStatus.local_mode == true) {
done();
return(undefined);
}
LogoAnt._visible = false;
LogoPlayr._visible = false;
CreditURL._visible = false;
CreditTitle._visible = false;
Fader._visible = false;
LogoAnt._alpha = 0;
LogoPlayr._alpha = 0;
CreditURL._alpha = 0;
CreditTitle._alpha = 0;
Fader._alpha = 0;
LogoAnt.onPress = function () {
this.getURL("mailto:info@antfactor.com", "_self");
};
LogoPlayr.onPress = function () {
this.getURL("http://www.playr.co.uk/?referrer=onslaught", "_self");
};
setTextToPlayr();
setUrlToPlayr();
gs.TweenLite.to(CreditTitle, 0.6, {autoAlpha:100, delay:0.2, overwrite:false});
gs.TweenLite.to(LogoPlayr, 0.6, {autoAlpha:100, delay:0.4, overwrite:false});
gs.TweenLite.to(CreditURL, 0.6, {autoAlpha:100, delay:0.6, overwrite:false});
gs.TweenLite.to(CreditTitle, 0.3, {autoAlpha:0, delay:2.2, overwrite:false, onComplete:mx.utils.Delegate.create(this, setTextToAnt)});
gs.TweenLite.to(LogoPlayr, 0.3, {autoAlpha:0, delay:2.2, overwrite:false});
gs.TweenLite.to(CreditURL, 0.3, {autoAlpha:0, delay:2.2, overwrite:false, onComplete:mx.utils.Delegate.create(this, setUrlToAnt)});
gs.TweenLite.to(CreditTitle, 0.6, {autoAlpha:100, delay:3.2, overwrite:false});
gs.TweenLite.to(LogoAnt, 0.6, {autoAlpha:100, delay:3.4, overwrite:false});
gs.TweenLite.to(CreditURL, 0.6, {autoAlpha:100, delay:3.6, overwrite:false});
gs.TweenLite.to(CreditTitle, 0.3, {autoAlpha:0, delay:5.2, overwrite:false});
gs.TweenLite.to(LogoAnt, 0.3, {autoAlpha:0, delay:5.2, overwrite:false});
gs.TweenLite.to(CreditURL, 0.3, {autoAlpha:0, delay:5.2, overwrite:false});
gs.TweenLite.to(Fader, 0, {autoAlpha:100, delay:6, overwrite:false, onComplete:done});
}
function setTextToAnt() {
CreditTitle.__set__text("Sound by Anthony Galante");
}
function setUrlToAnt() {
CreditURL.onPress = LogoAnt.onPress;
CreditURL.TheURL.text = "info@antfactor.com";
}
function setTextToPlayr() {
CreditTitle.__set__text("Code and Engine by Gaby Vanhegan");
}
function setUrlToPlayr() {
CreditURL.onPress = LogoPlayr.onPress;
CreditURL.TheURL.text = "http://www.playr.co.uk/";
}
function done() {
_root.gotoPage("Instructions", 1);
}
}
Symbol 1375 MovieClip [__Packages.GameSelectMapping] Frame 0
class GameSelectMapping extends OnslaughtObject
{
var Working, MapList, MapShared, ButtonLoad, ButtonPlay, ButtonEditor, ButtonBack, map_list, MapPreview, this_map, MapRating, MapRatingPips;
function GameSelectMapping () {
super();
Working._visible = false;
}
function onLoad() {
Working._visible = false;
resetToReload();
MapList.removeAll();
MapShared.removeAll();
MapShared.addItem("click to load");
var _local5 = mx.utils.Delegate.create(this, loadClick);
var _local7 = mx.utils.Delegate.create(this, playClick);
var _local6 = mx.utils.Delegate.create(this, editClick);
var _local8 = mx.utils.Delegate.create(this, mapPreviewLibrary);
var _local4 = mx.utils.Delegate.create(this, mapPreviewShared);
MapList.addEventListener("close", _local8);
MapShared.addEventListener("close", _local4);
ButtonLoad.addEventListener("click", _local5);
ButtonPlay.addEventListener("click", _local7);
ButtonEditor.addEventListener("click", _local6);
ButtonBack.onPress = function () {
_root.Game.modeSet("home");
};
var _local9 = SharedObject.getLocal("onslaught");
map_list = _local9.data.MapsSaved;
map_total = 0;
for (var _local3 in map_list) {
if (map_list[_local3] != undefined) {
MapList.addItem(_local3, _local3);
}
}
MapPreview.MapName.setStyle("color", 16777215);
update();
}
function loadClick() {
SoundPlayer.play("ClickButton");
if (load_mode == 1) {
mapLoadSharedList();
ButtonLoad.enabled = false;
Working._visible = true;
} else if (load_mode == 2) {
mapLoad();
}
}
function playClick() {
SoundPlayer.play("ClickButton");
mapLoad();
}
function editClick() {
SoundPlayer.play("ClickButton");
if (is_shared == true) {
_root.Game.mapSharedStore(this_map);
}
GameStatus.map_load = true;
GameStatus.game_map = this_map;
GameStatus.game_map_custom = true;
_root.gotoPage("Mapping");
}
function resetToReload() {
list_loaded = false;
load_mode = 1;
}
function update() {
}
function mapPreviewLibrary() {
var _local2 = MapList.selectedItem.data;
mapPreview(_local2, false);
}
function mapPreviewShared() {
var _local2 = MapShared.selectedItem.data;
mapPreview(_local2, true);
}
function mapPreview(map_name, map_shared) {
if (GameStatus.maps_loaded == undefined) {
GameStatus.maps_loaded = new Object();
}
if (GameStatus.maps_ratings == undefined) {
GameStatus.maps_ratings = new Object();
}
if (map_name == undefined) {
return(false);
}
is_shared = map_shared;
this_map = map_name;
if (map_shared == false) {
var _local7 = SharedObject.getLocal("onslaught");
if (_local7.data.MapsSaved[map_name]) {
mapPreviewShow(map_name, false);
}
}
if (map_shared == true) {
if (GameStatus.maps_loaded[map_name] != undefined) {
mapPreviewShow(map_name, true);
} else {
Working._visible = true;
var _local5 = new LoadVars();
_local5.map_name = map_name;
_local5.t = GameClock.timeNow();
var _local4 = new LoadVars();
_local4.from = this;
_local4.onLoad = function (success) {
this.from.Working._visible = false;
if (success == true) {
if (this.error != undefined) {
_root.Game.messageNew("Error: " + this.error);
} else {
var _local3 = this.map_name;
GameStatus.maps_loaded[_local3] = JSON.parse(this.map);
GameStatus.maps_ratings[_local3] = this.rating;
this.from.mapPreviewShow(_local3, true);
}
}
};
_local5.sendAndLoad(GameStatus.url_map_share + "/map.load.php", _local4, "GET");
}
}
}
function mapPreviewShow(map_name, map_shared) {
if (map_shared == false) {
MapPreview.buildMap(map_name, true);
} else {
var _local2 = GameStatus.maps_loaded[map_name];
if (_local2 == undefined) {
return(false);
}
MapPreview.buildMapFromData(_local2);
MapRating.text = GameStatus.maps_ratings[map_name];
MapRatingPips.ratingSet(GameStatus.maps_ratings[map_name]);
}
return(true);
}
function mapListShared(the_list) {
MapShared.removeAll();
for (var _local3 in the_list) {
MapShared.addItem(_local3, _local3);
}
ButtonLoad.enabled = true;
list_loaded = true;
load_mode = 2;
Working._visible = false;
}
function mapLoad() {
if (is_shared == true) {
GameStatus.game_map = _root.game_map;
GameStatus.game_map_custom = _root.game_map_custom;
_root.Game.mapPlayShared(this_map);
} else {
var _local4 = this_map;
var _local3 = SharedObject.getLocal("onslaught");
if (typeof(_local3.data.MapsSaved) != "object") {
_local3.data.MapsSaved = new Object();
}
if (_local3.data.MapsSaved[_local4] == undefined) {
return(false);
}
_root.game_map = _local4;
_root.game_map_custom = true;
_root.gotoPage("Game", 1);
}
}
function mapLoadSharedList() {
var _local4 = (GameStatus.url_map_share + "/map.list.php?t=") + GameClock.timeNow();
var _local3 = new LoadVars();
_local3.onLoad = function (success) {
if (success == true) {
if (this.output == "list") {
this.from.MapShared.removeAll();
var _local3 = new Array();
for (var _local2 in this) {
if (typeof(this[_local2]) == "string") {
if (_local2 != "output") {
this.from.MapShared.addItem(_local2, _local2);
}
}
}
this.from.ButtonLoad.enabled = true;
this.from.list_loaded = true;
this.from.load_mode = 2;
this.from.Working._visible = false;
}
}
};
_local3.load(_local4);
_local3.from = this;
}
function mapShowSharedList(the_list) {
return(mapListShared(the_list));
}
var list_loaded = false;
var load_mode = 1;
var map_cur = 0;
var map_total = 0;
var is_shared = false;
}
Symbol 1376 MovieClip [__Packages.GameSelectMap] Frame 0
class GameSelectMap extends OnslaughtObject
{
var GameType, __get__title, ButtonBack, map1, map2, map3, map4, map5, map6, map7, map8, map9, map10, map11, map12;
function GameSelectMap () {
super();
}
function set title(new_text) {
GameType.text = new_text;
//return(__get__title());
}
function update() {
if (GameStatus.game_type == "challenge") {
title = ("Challenge: " + GameStatus.game_challenge.name);
} else if (GameStatus.game_type == "sandbox") {
title = ("Sandbox Mode");
} else {
title = ("Difficulty: " + GameStatus.game_diff);
}
}
function onLoad() {
ButtonBack.onPress = function () {
if (GameStatus.game_type == "challenge") {
_root.Game.modeSet("challenge");
} else if (GameStatus.game_type == "sandbox") {
_root.Game.modeSet("home");
} else {
_root.Game.modeSet("home");
}
};
map1.onPress = mx.utils.Delegate.create(this, clickMap1);
map2.onPress = mx.utils.Delegate.create(this, clickMap2);
map3.onPress = mx.utils.Delegate.create(this, clickMap3);
map4.onPress = mx.utils.Delegate.create(this, clickMap4);
map5.onPress = mx.utils.Delegate.create(this, clickMap5);
map6.onPress = mx.utils.Delegate.create(this, clickMap6);
map7.onPress = mx.utils.Delegate.create(this, clickMap7);
map8.onPress = mx.utils.Delegate.create(this, clickMap8);
map9.onPress = mx.utils.Delegate.create(this, clickMap9);
map10.onPress = mx.utils.Delegate.create(this, clickMap10);
map11.onPress = mx.utils.Delegate.create(this, clickMap11);
map12.onPress = mx.utils.Delegate.create(this, clickMap12);
}
function clickMap1() {
clickMap(1);
}
function clickMap2() {
clickMap(2);
}
function clickMap3() {
clickMap(3);
}
function clickMap4() {
clickMap(4);
}
function clickMap5() {
clickMap(5);
}
function clickMap6() {
clickMap(6);
}
function clickMap7() {
clickMap(7);
}
function clickMap8() {
clickMap(8);
}
function clickMap9() {
clickMap(9);
}
function clickMap10() {
clickMap(10);
}
function clickMap11() {
clickMap(11);
}
function clickMap12() {
clickMap(12);
}
function clickMap(map_num) {
SoundPlayer.play("ClickButton");
_root.game_map_custom = false;
_root.game_map = "map" + map_num.toString();
_root.gotoPage("Game", 1);
}
}
Symbol 1377 MovieClip [__Packages.VerticalScrollerItem] Frame 0
class VerticalScrollerItem extends MovieClip
{
var Label1, Label2, Label3, __get__text;
function VerticalScrollerItem () {
super();
}
function set text(new_val) {
Label1._visible = false;
Label2._visible = false;
Label3._visible = false;
Label1.text = new_val;
Label2.text = new_val;
Label3.text = new_val;
var _local4 = gs.utils.text.TextMetrics.getLineMetrics(Label3);
var _local2 = _local4.length;
if (_local2 == 1) {
Label1._visible = true;
} else if (_local2 == 2) {
Label2._visible = true;
} else {
Label3._visible = true;
}
//return(__get__text());
}
}
Symbol 1378 MovieClip [__Packages.VerticalScroller] Frame 0
class VerticalScroller extends MovieClip
{
var item_cur, ItemCur, ItemSlider, item_list, ButtonUp, ButtonDown, SliderMask, __get__items, onChange;
function VerticalScroller () {
super();
}
function onLoad() {
item_cur = 0;
ItemCur = ItemSlider.Item;
ItemCur.text = item_list[item_cur].label;
ButtonUp.from = this;
ButtonUp.onClick = function () {
this.from.scrollUp();
};
ButtonDown.from = this;
ButtonDown.onClick = function () {
this.from.scrollDown();
};
ItemSlider.setMask(SliderMask);
}
function set items(new_list) {
item_list = new_list;
ItemCur.text = item_list[item_cur].label;
//return(__get__items());
}
function get value() {
return(item_list[item_cur].data);
}
function set value(new_val) {
var _local5 = item_list[item_cur].data;
if (_local5 == new_val) {
return;
}
var _local3;
var _local2 = 0;
while (_local2 < item_list.length) {
_local3 = item_list[_local2].data;
if (new_val == _local3) {
item_cur = _local2;
scrollTo(false, true);
return;
}
_local2++;
}
//return(value);
}
function scrollUp() {
item_cur--;
if (item_cur < 0) {
item_cur = item_list.length - 1;
}
scrollTo(true);
}
function scrollDown() {
item_cur = (item_cur + 1) % item_list.length;
scrollTo(false);
}
function scrollTo(scroll_up, no_onchange) {
var _local9 = item_h;
var _local7 = 0;
var _local11 = 0;
var _local5 = -item_h;
if (scroll_up == true) {
_local9 = -item_h;
_local7 = 0;
_local11 = 0;
_local5 = item_h;
}
var _local6 = "VerticalScrollerItem";
var _local8 = ItemSlider.getNextHighestDepth();
var _local10 = _local6 + _local8;
var _local3 = new Object();
_local3._x = 0;
_local3._y = _local9;
_local3._alpha = 0;
var _local4 = ItemSlider.attachMovie(_local6, _local10, _local8, _local3);
_local4.text = item_list[item_cur].label;
var _local2;
_local2 = new Object();
_local2._y = _local5;
_local2.autoAlpha = 0;
_local2.onCompleteParams = new Array(ItemCur);
_local2.onComplete = function (the_clip) {
the_clip.removeMovieClip();
};
gs.TweenLite.to(ItemCur, 0.4, _local2);
_local2 = new Object();
_local2._y = _local7;
_local2.autoAlpha = 100;
if (no_onchange != true) {
onChange();
_local2.onCompleteParams = new Array(this);
_local2.onComplete = function (the_clip) {
the_clip.onChangeComplete();
};
}
gs.TweenLite.to(_local4, 0.4, _local2);
ItemCur = _local4;
}
var item_x = 0;
var item_y = 0;
var item_w = 60;
var item_h = 60;
}
Symbol 1379 MovieClip [__Packages.GameSelectChallenge] Frame 0
class GameSelectChallenge extends OnslaughtObject
{
static var ChallengeOptions;
var challenge_list, ChallengeStats, ChallengeUnplayed, ChallengeLast, ChallengeNext, ChallengePrev, stat_box_x, stat_box_y, ButtonBack, ButtonPlay, SelectDifficulty, SelectObjective, SelectCash, SelectTimeLimit, SelectTurretLimit, SelectWaveSize, SelectAttackerSpeed, init_done, box_last, getNextHighestDepth, attachMovie;
function GameSelectChallenge () {
super();
challenge_list = new Array();
var _local4;
_local4 = new Object();
_local4.difficulty = "easy";
_local4.objective = "k,10";
_local4.cash = 3000;
_local4.timelimit = undefined;
_local4.turretlimit = undefined;
_local4.wavesize = "10";
_local4.wavespeed = "60";
_local4.name = "Test";
_local4.encoded = _root.Game.challengeEncode(_local4);
if (GameStatus.debug_mode == true) {
challenge_list.push(_local4);
}
_local4 = new Object();
_local4.difficulty = "easy";
_local4.objective = undefined;
_local4.cash = 30;
_local4.timelimit = 60;
_local4.turretlimit = undefined;
_local4.wavesize = "10";
_local4.wavespeed = "60";
_local4.name = "Warmup";
_local4.encoded = _root.Game.challengeEncode(_local4);
challenge_list.push(_local4);
_local4 = new Object();
_local4.difficulty = "easy";
_local4.objective = "w,300";
_local4.cash = 30;
_local4.timelimit = undefined;
_local4.turretlimit = undefined;
_local4.wavesize = "10";
_local4.wavespeed = "60";
_local4.name = "Threetown";
_local4.encoded = _root.Game.challengeEncode(_local4);
challenge_list.push(_local4);
_local4 = new Object();
_local4.difficulty = "hard";
_local4.objective = "w,100";
_local4.cash = 30;
_local4.timelimit = 1200;
_local4.turretlimit = undefined;
_local4.wavesize = "10";
_local4.wavespeed = "60";
_local4.name = "Spiffles";
_local4.encoded = _root.Game.challengeEncode(_local4);
challenge_list.push(_local4);
_local4 = new Object();
_local4.difficulty = "medium";
_local4.objective = "w,300";
_local4.cash = 30;
_local4.timelimit = undefined;
_local4.turretlimit = 15;
_local4.wavesize = "10";
_local4.wavespeed = "60";
_local4.name = "Limitations";
_local4.encoded = _root.Game.challengeEncode(_local4);
challenge_list.push(_local4);
_local4 = new Object();
_local4.difficulty = "easy";
_local4.objective = "k,3000";
_local4.cash = 3000;
_local4.timelimit = 1200;
_local4.turretlimit = undefined;
_local4.wavesize = "3";
_local4.wavespeed = "90";
_local4.name = "Problem3";
_local4.encoded = _root.Game.challengeEncode(_local4);
challenge_list.push(_local4);
_local4 = new Object();
_local4.difficulty = "medium";
_local4.objective = "k,4000";
_local4.cash = 3000;
_local4.timelimit = 1200;
_local4.turretlimit = undefined;
_local4.wavesize = "10,9,8,7,6,5,4,3,2,1";
_local4.wavespeed = "60";
_local4.name = "Bounce";
_local4.encoded = _root.Game.challengeEncode(_local4);
challenge_list.push(_local4);
_local4 = new Object();
_local4.difficulty = "hard";
_local4.objective = undefined;
_local4.cash = 30;
_local4.timelimit = 900;
_local4.turretlimit = 15;
_local4.wavesize = "1";
_local4.wavespeed = "90";
_local4.name = "Bludgeon";
_local4.encoded = _root.Game.challengeEncode(_local4);
challenge_list.push(_local4);
_local4 = new Object();
_local4.difficulty = "medium";
_local4.objective = "k,1000";
_local4.cash = 500;
_local4.timelimit = undefined;
_local4.turretlimit = 10;
_local4.wavesize = "1,2,3";
_local4.wavespeed = "60";
_local4.name = "Longshine";
_local4.encoded = _root.Game.challengeEncode(_local4);
challenge_list.push(_local4);
_local4 = new Object();
_local4.difficulty = "medium";
_local4.objective = "k,1000";
_local4.cash = 500;
_local4.timelimit = undefined;
_local4.turretlimit = 10;
_local4.wavesize = "1,2,3";
_local4.wavespeed = "120";
_local4.name = "Speedshine";
_local4.encoded = _root.Game.challengeEncode(_local4);
challenge_list.push(_local4);
_local4 = new Object();
_local4.difficulty = "hard";
_local4.objective = "k,1000";
_local4.cash = 500;
_local4.timelimit = undefined;
_local4.turretlimit = 10;
_local4.wavesize = "1,2,3";
_local4.wavespeed = "120";
_local4.name = "Hardshine";
_local4.encoded = _root.Game.challengeEncode(_local4);
challenge_list.push(_local4);
_local4 = new Object();
_local4.difficulty = "hard";
_local4.objective = "w,500";
_local4.cash = 30;
_local4.timelimit = 1800;
_local4.turretlimit = undefined;
_local4.wavesize = 10;
_local4.wavespeed = "60";
_local4.name = "Duration";
_local4.encoded = _root.Game.challengeEncode(_local4);
challenge_list.push(_local4);
_local4 = new Object();
_local4.difficulty = "hard";
_local4.objective = undefined;
_local4.cash = 30;
_local4.timelimit = 1200;
_local4.turretlimit = 8;
_local4.wavesize = "10,10,10,1";
_local4.wavespeed = "90";
_local4.name = "Clockers";
_local4.encoded = _root.Game.challengeEncode(_local4);
challenge_list.push(_local4);
_local4 = new Object();
_local4.difficulty = "medium";
_local4.objective = "w,500";
_local4.cash = 30;
_local4.timelimit = 1800;
_local4.turretlimit = undefined;
_local4.wavesize = "10";
_local4.wavespeed = "60,40";
_local4.name = "Ripples";
_local4.encoded = _root.Game.challengeEncode(_local4);
challenge_list.push(_local4);
_local4 = new Object();
_local4.difficulty = "hard";
_local4.objective = "w,500";
_local4.cash = 30;
_local4.timelimit = 1800;
_local4.turretlimit = 15;
_local4.wavesize = "10";
_local4.wavespeed = "60,40";
_local4.name = "Smollocks";
_local4.encoded = _root.Game.challengeEncode(_local4);
challenge_list.push(_local4);
}
function onLoad() {
ChallengeStats._alpha = 0;
ChallengeUnplayed._alpha = 0;
ChallengeStats._visible = false;
ChallengeUnplayed._visible = false;
ChallengeLast._visible = false;
ChallengeNext._alpha = 0;
ChallengePrev._alpha = 0;
ChallengeNext._visible = false;
ChallengePrev._visible = false;
stat_box_x = ChallengeStats._x;
stat_box_y = ChallengeStats._y;
ButtonBack.onPress = function () {
_root.Game.modeSet("home");
};
ChallengeNext.onClick = mx.utils.Delegate.create(this, challengePresetNext);
ChallengePrev.onClick = mx.utils.Delegate.create(this, challengePresetPrev);
ButtonPlay.addEventListener("click", mx.utils.Delegate.create(this, challengeSelect));
var _local3 = new Array();
_local3.difficulty = new Array(new Object({label:"Easy Peasy", data:"easy"}), new Object({label:"Medium", data:"medium"}), new Object({label:"Hard as Nails", data:"hard"}));
if (_root.Game.modeIsAvailable("extreme")) {
_local3.cash.push(new Object({label:"Extreme!", data:"extreme"}));
}
_local3.objective = new Array(new Object({label:"Last as long as you can", data:undefined}), new Object({label:"Make 1000 Kills", data:"k,1000"}), new Object({label:"Beat 100 Waves", data:"w,100"}), new Object({label:"Make 2000 Kills", data:"k,2000"}), new Object({label:"Beat 200 Waves", data:"w,200"}), new Object({label:"Make 3000 Kills", data:"k,3000"}), new Object({label:"Beat 300 Waves", data:"w,300"}), new Object({label:"Make 4000 Kills", data:"k,4000"}), new Object({label:"Beat 400 Waves", data:"w,400"}), new Object({label:"Make 5000 Kills", data:"k,5000"}), new Object({label:"Beat 500 Waves", data:"w,500"}), new Object({label:"Make 6000 Kills", data:"k,6000"}), new Object({label:"Beat 600 Waves", data:"w,600"}), new Object({label:"Make 7000 Kills", data:"k,7000"}), new Object({label:"Beat 700 Waves", data:"w,700"}), new Object({label:"Make 8000 Kills", data:"k,8000"}), new Object({label:"Beat 800 Waves", data:"w,800"}), new Object({label:"Make 9000 Kills", data:"k,9000"}), new Object({label:"Beat 900 Waves", data:"w,900"}), new Object({label:"Make 10000 Kills", data:"k,10000"}), new Object({label:"Beat 1000 Waves", data:"w,1000"}));
if (GameStatus.debug_mode == true) {
_local3.objective.push(new Object({label:"Make 10 Kills", data:"k,10"}));
}
_local3.cash = new Array(new Object({label:"$30", data:30}), new Object({label:"$500", data:500}), new Object({label:"$3000", data:3000}));
if (_root.Game.modeIsAvailable("sandbox")) {
_local3.cash.push(new Object({label:"$50000", data:50000}));
}
if (_root.Game.modeIsAvailable("sandbox2")) {
_local3.cash.push(new Object({label:"One Meelion Dollars!", data:1000000}));
}
_local3.timelimit = new Array(new Object({label:"Unlimited", data:undefined}), new Object({label:"30 mins", data:1800}), new Object({label:"25 mins", data:1500}), new Object({label:"20 mins", data:1200}), new Object({label:"15 mins", data:900}), new Object({label:"10 mins", data:600}), new Object({label:"9 mins", data:540}), new Object({label:"8 mins", data:480}), new Object({label:"7 mins", data:420}), new Object({label:"6 mins", data:360}), new Object({label:"5 mins", data:300}), new Object({label:"4 mins", data:240}), new Object({label:"3 mins", data:280}), new Object({label:"2 mins", data:120}), new Object({label:"60 seconds", data:60}));
_local3.turretlimit = new Array(new Object({label:"Unlimited", data:undefined}), new Object({label:"50 Turrets", data:50}), new Object({label:"40 Turrets", data:40}), new Object({label:"30 Turrets", data:30}), new Object({label:"20 Turrets", data:20}), new Object({label:"15 Turrets", data:15}), new Object({label:"10 Turrets", data:10}), new Object({label:"8 Turrets", data:9}), new Object({label:"8 Turrets", data:8}), new Object({label:"8 Turrets", data:7}), new Object({label:"8 Turrets", data:5}), new Object({label:"5 Turrets", data:5}));
_local3.wavesize = new Array(new Object({label:"Standard 10", data:"10"}), new Object({label:"5 medium", data:"5"}), new Object({label:"3 large", data:"3"}), new Object({label:"2 big", data:"2"}), new Object({label:"1 huge", data:"1"}), new Object({label:"1, 2, 3", data:"1,2,3"}), new Object({label:"10 to 1 cycle", data:"10,9,8,7,6,5,4,3,2,1"}), new Object({label:"5 to 1 cycle", data:"5,4,3,2,1"}), new Object({label:"10 then 1", data:"10,1"}), new Object({label:"10, 10, 10 then 1", data:"10,10,10,1"}), new Object({label:"10, 5, 10, 5, 10, 5, 10 then 1", data:"10,5,10,5,10,5,10,1"}));
_local3.wavespeed = new Array(new Object({label:"Normal", data:"60"}), new Object({label:"Fast", data:"90"}), new Object({label:"Drunk", data:"40"}), new Object({label:"Tweaked", data:"120"}), new Object({label:"Normal-slow Alternate", data:"60,40"}), new Object({label:"Slow-Fast Alternate", data:"90,40"}), new Object({label:"Slow-Med-Fast\nCycle", data:"40,60,90"}));
ChallengeOptions = _local3;
var _local4 = mx.utils.Delegate.create(this, challengeCustom);
SelectDifficulty.__set__items(ChallengeOptions.difficulty);
SelectDifficulty.onChange = _local4;
SelectObjective.__set__items(ChallengeOptions.objective);
SelectObjective.onChange = _local4;
SelectCash.__set__items(ChallengeOptions.cash);
SelectCash.onChange = _local4;
SelectTimeLimit.__set__items(ChallengeOptions.timelimit);
SelectTimeLimit.onChange = _local4;
SelectTurretLimit.__set__items(ChallengeOptions.turretlimit);
SelectTurretLimit.onChange = _local4;
SelectWaveSize.__set__items(ChallengeOptions.wavesize);
SelectWaveSize.onChange = _local4;
SelectAttackerSpeed.__set__items(ChallengeOptions.wavespeed);
SelectAttackerSpeed.onChange = _local4;
}
function doInit() {
if (init_done != true) {
if (GameStatus.game_challenge != undefined) {
SelectDifficulty.__set__value(GameStatus.game_challenge.difficulty);
SelectObjective.__set__value(GameStatus.game_challenge.objective);
SelectCash.__set__value(GameStatus.game_challenge.cash);
SelectTimeLimit.__set__value(GameStatus.game_challenge.timelimit);
SelectTurretLimit.__set__value(GameStatus.game_challenge.turretlimit);
SelectWaveSize.__set__value(GameStatus.game_challenge.wavesize);
SelectAttackerSpeed.__set__value(GameStatus.game_challenge.wavespeed);
challengeChanged();
} else {
challengePresetShow();
}
var _local2;
_local2 = new Object();
_local2.autoAlpha = 100;
_local2.overwrite = true;
gs.TweenLite.to(ChallengeNext, 0.5, _local2);
_local2 = new Object();
_local2.autoAlpha = 100;
_local2.overwrite = true;
gs.TweenLite.to(ChallengePrev, 0.5, _local2);
init_done = true;
}
}
function challengeCustom() {
challenge_preset = false;
challengeChanged();
}
function challengeGet() {
var _local4 = new Object();
_local4.difficulty = SelectDifficulty.value;
_local4.objective = SelectObjective.value;
_local4.cash = SelectCash.value;
_local4.timelimit = SelectTimeLimit.value;
_local4.turretlimit = SelectTurretLimit.value;
_local4.wavesize = SelectWaveSize.value;
_local4.wavespeed = SelectAttackerSpeed.value;
_local4.name = "Custom challenge";
_local4.preset = false;
GameStatus.game_challenge = _local4;
var _local5 = _root.Game.challengeEncode(_local4);
for (var _local6 in challenge_list) {
var _local3 = challenge_list[_local6];
if (_local5 == _local3.encoded) {
challenge_preset = true;
GameStatus.game_challenge.name = _local3.name;
GameStatus.game_challenge.preset = true;
}
}
}
function challengeSelect() {
challengeGet();
_root.Game.modeSet("mapchoose");
}
function challengeChanged() {
challengeGet();
var _local14 = "Custom Challenge";
if (challenge_preset == true) {
_local14 = challenge_list[challenge_num].name;
} else if (box_last == "unplayed") {
return(undefined);
}
var _local16 = _root.Game.challengeEncode(GameStatus.game_challenge);
var _local7 = _root.Game.challengeBestGame(_local16);
var _local6;
var _local8;
var _local15;
var _local3;
var _local5;
if (_local7 != undefined) {
var _local18 = (_local7.kills + ", $") + _local7.spend;
var _local20 = _local7.score;
var _local9 = _local7.date;
var _local12 = _local9.getDate();
var _local13 = _local9.getMonth() + 1;
var _local17 = _local9.getFullYear();
var _local11 = _local9.getHours();
var _local10 = _local9.getMinutes();
if (_local12 < 10) {
_local12 = "0" + _local12.toString();
}
if (_local13 < 10) {
_local13 = "0" + _local13.toString();
}
if (_local11 < 10) {
_local11 = "0" + _local11.toString();
}
if (_local10 < 10) {
_local10 = "0" + _local10.toString();
}
var _local19 = ((((((((_local12 + "/") + _local13) + "/") + _local17) + ", ") + _local11) + ":") + _local10) + "";
_local6 = "GameChallengeStats";
_local8 = getNextHighestDepth();
_local15 = _local6 + _local8;
_local3 = new Object();
_local3._alpha = 0;
_local3._visible = false;
_local3._x = stat_box_x;
_local3._y = stat_box_y;
_local3.the_title = _local14;
_local3.the_kills = _local18;
_local3.the_score = _local20;
_local3.the_date = _local19;
_local5 = attachMovie(_local6, _local15, _local8, _local3);
if (_root.Game.modeIsComplete(_local16)) {
_local5.Ticked._visible = true;
} else {
_local5.Ticked._visible = false;
}
box_last = "played";
} else {
_local6 = "GameChallengeUnplayed";
_local8 = getNextHighestDepth();
_local15 = _local6 + _local8;
_local3 = new Object();
_local3._alpha = 0;
_local3._visible = false;
_local3._x = stat_box_x;
_local3._y = stat_box_y;
_local3.the_title = _local14;
_local5 = attachMovie(_local6, _local15, _local8, _local3);
box_last = "unplayed";
}
var _local4;
_local4 = new Object();
_local4.autoAlpha = 0;
_local4.overwrite = true;
_local4.onCompleteParams = new Array(ChallengeLast);
_local4.onComplete = function (the_clip) {
the_clip.removeMovieClip();
};
gs.TweenLite.to(ChallengeLast, 0.5, _local4);
_local4 = new Object();
_local4.autoAlpha = 100;
_local4.overwrite = true;
gs.TweenLite.to(_local5, 0.5, _local4);
ChallengeLast = _local5;
}
function challengePresetNext() {
if (challenge_preset == true) {
challenge_num = (challenge_num + 1) % challenge_list.length;
}
challenge_preset = true;
challengePresetShow();
}
function challengePresetPrev() {
if (challenge_preset == true) {
challenge_num--;
if (challenge_num < 0) {
challenge_num = challenge_list.length - 1;
}
}
challenge_preset = true;
challengePresetShow();
}
function challengePresetShow(scroll_left) {
var _local2 = challenge_list[challenge_num];
SelectDifficulty.__set__value(_local2.difficulty);
SelectObjective.__set__value(_local2.objective);
SelectCash.__set__value(_local2.cash);
SelectTimeLimit.__set__value(_local2.timelimit);
SelectTurretLimit.__set__value(_local2.turretlimit);
SelectWaveSize.__set__value(_local2.wavesize);
SelectAttackerSpeed.__set__value(_local2.wavespeed);
challenge_preset = true;
challengeChanged(scroll_left);
}
var challenge_num = 0;
var challenge_preset = false;
}
Symbol 1380 MovieClip [__Packages.mods.ModActivate] Frame 0
class mods.ModActivate extends MovieClip
{
var TheCheckbox, whenClicked, __get__onClick;
function ModActivate () {
super();
}
function onLoad() {
TheCheckbox.clickHandler = mx.utils.Delegate.create(this, onClickHandler);
TheCheckbox.selected = GameStatus.mod_active;
}
function onClickHandler() {
GameStatus.mod_active = TheCheckbox.selected;
whenClicked();
}
function get value() {
return(TheCheckbox.selected);
}
function set value(new_val) {
TheCheckbox.selected = new_val;
//return(value);
}
function set onClick(new_f) {
whenClicked = new_f;
//return(__get__onClick());
}
}
Symbol 1381 MovieClip [__Packages.mods.ModImportExport] Frame 0
class mods.ModImportExport extends MovieClip
{
var ModString, ButtonCreate, ButtonCopy, ButtonLoad, mod, defaults;
function ModImportExport () {
super();
}
function set mod_text(new_val) {
ModString.__set__text(new_val);
//return(mod_text);
}
function get mod_text() {
return(ModString.__get__text());
}
function onLoad() {
ButtonCreate.onPress = mx.utils.Delegate.create(this, onButtonCreate);
ButtonCopy.onPress = mx.utils.Delegate.create(this, onButtonCopy);
ButtonLoad.onPress = mx.utils.Delegate.create(this, onButtonLoad);
mod = GameManager.mod;
defaults = mod.mod_defaults;
var _local2 = mx.utils.Delegate.create(this, onChange);
ModString.addEventListener("change", _local2);
onChange();
}
function onChange() {
if (mod_text == "") {
ButtonLoad.enabled = false;
ButtonCopy.enabled = false;
} else {
ButtonLoad.enabled = true;
ButtonCopy.enabled = true;
}
}
function onButtonCreate() {
var _local2 = mod.modAsObject();
mod_text = (JSON.stringify(_local2));
onChange();
}
function onButtonCopy() {
System.setClipboard(mod_text);
}
function onButtonLoad() {
var _local2;
try {
_local2 = JSON.parse(mod_text);
mod.modFromObject(_local2);
mod_text = ("# Your mod was successfully loaded!");
} catch(e) {
mod_text = ("# There were errors in the mod you pasted in.");
}
}
}
Symbol 1382 MovieClip [__Packages.mods.ModList] Frame 0
class mods.ModList extends MovieClip
{
var TheScroller, ResetButton, __get__mod, __get__defaults, __get__onChange, __get__buttonReset;
function ModList () {
super();
}
function onLoad() {
TheScroller.setStyle("borderStyle", "none");
ResetButton._visible = false;
}
function set content(new_obj) {
TheScroller.__set__contentPath(new_obj);
//return(content);
}
function get content() {
return(TheScroller.__get__content());
}
function set mod(mod) {
TheScroller.__get__content().mod = mod;
//return(__get__mod());
}
function set defaults(md) {
TheScroller.__get__content().defaults = md;
//return(__get__defaults());
}
function set onChange(f) {
TheScroller.__get__content().onChange = f;
//return(__get__onChange());
}
function set buttonReset(b) {
TheScroller.__get__content().resetButton = b;
//return(__get__buttonReset());
}
}
Symbol 1383 MovieClip [__Packages.mods.ModInterface] Frame 0
class mods.ModInterface extends MovieClip
{
var ButtonNext, ButtonPrev, ModValue, ModItemList, ModAssetList, legend, md, timer, mod;
function ModInterface () {
super();
}
function update() {
switch (mod_mode) {
case MOD_ITEMS :
gs.TweenLite.to(this, 0.5, {_x:(box_x * 0) + box_off});
ButtonNext.__set__enabled(((mods.ModItems.selected == undefined) ? false : true));
ButtonPrev.__set__enabled(false);
break;
case MOD_ASSETS :
gs.TweenLite.to(this, 0.5, {_x:(box_x * 1) + box_off});
ButtonNext.__set__enabled(((mods.ModAssets.selected == undefined) ? false : true));
ButtonPrev.__set__enabled(true);
break;
case MOD_VALUES :
gs.TweenLite.to(this, 0.5, {_x:(box_x * 2) + box_off});
ButtonNext.__set__enabled(false);
ButtonPrev.__set__enabled(true);
ModValue.__get__content().legendUpdate();
break;
default :
gs.TweenLite.to(this, 0.5, {_x:(box_x * 0) + box_off});
ButtonNext.__set__enabled(false);
ButtonPrev.__set__enabled(false);
}
}
function onLoad() {
ModItemList.title = "Moddable Stuff";
ModItemList.__set__content("ModItems");
ModAssetList.title = "Moddable Asset";
ModAssetList.__set__content("ModAssets");
ModValue.title = "Specific Asset";
ModValue.__set__content("ModValues");
legend._alpha = 0;
md = new mods.ModDefaults();
timer = setInterval(this, "init", 50);
}
function onClickNext() {
switch (mod_mode) {
case MOD_ITEMS :
if (mods.ModItems.selected != undefined) {
mod_mode = MOD_ASSETS;
update();
}
break;
case MOD_ASSETS :
if (mods.ModAssets.selected != undefined) {
mod_mode = MOD_VALUES;
update();
}
break;
case MOD_VALUES :
}
}
function onClickPrev() {
gs.TweenLite.to(legend, 1.2, {autoAlpha:0});
switch (mod_mode) {
case MOD_ITEMS :
break;
case MOD_ASSETS :
mod_mode = MOD_ITEMS;
update();
break;
case MOD_VALUES :
mod_mode = MOD_ASSETS;
update();
ModAssetList.__get__content().init();
}
}
function onItemChange() {
var _local2 = mods.ModItems.selected;
GameManager.debug("Item: " + _local2.item);
ModAssetList.__get__content().updateList(_local2.item);
ModAssetList.title = _local2.text;
mod_mode = MOD_ASSETS;
update();
}
function onAssetChange() {
var _local2 = mods.ModAssets.selected;
GameManager.debug("Asset: " + _local2.asset);
ModValue.__get__content().assetShow(_local2.item, _local2.asset);
var _local3 = mod.assetDescribe(_local2.asset);
ModValue.title = ((_local3.title == undefined) ? (_local2.asset) : (_local3.title));
mod_mode = MOD_VALUES;
update();
return(undefined);
}
function onValueChange() {
return(undefined);
}
function get mode() {
return(mod_mode);
}
function init() {
clearInterval(timer);
mod = GameManager.mod;
ModItemList.__set__onChange(mx.utils.Delegate.create(this, onItemChange));
ModAssetList.__set__onChange(mx.utils.Delegate.create(this, onAssetChange));
ModValue.__set__onChange(mx.utils.Delegate.create(this, onValueChange));
ModItemList.__set__mod(mod);
ModAssetList.__set__mod(mod);
ModValue.__set__mod(mod);
ModItemList.__set__defaults(md);
ModAssetList.__set__defaults(md);
ModValue.__set__defaults(md);
ModItemList.__set__buttonReset(ModItemList.ResetButton);
ModAssetList.__set__buttonReset(ModAssetList.ResetButton);
ModValue.__set__buttonReset(ModValue.ResetButton);
ModItemList.__get__content().initResetButton();
ModAssetList.__get__content().initResetButton();
ModValue.__get__content().initResetButton();
ModValue.__get__content().legend = legend;
ModItemList.__get__content().updateList("");
}
function reset() {
mod_mode = MOD_ITEMS;
update();
}
static var MOD_ITEMS = "modItems";
static var MOD_ASSETS = "modAssets";
static var MOD_VALUES = "modValues";
var mod_mode = MOD_ITEMS;
var box_x = -275;
var box_off = 95;
}
Symbol 1384 MovieClip [__Packages.GameSelectMod] Frame 0
class GameSelectMod extends OnslaughtObject
{
var mode, ModExporter, ButtonBack, ButtonExport, ButtonNext, TheMod, ButtonPrev, TheLegend, ModSwitch;
function GameSelectMod () {
super();
mode = MODE_EDIT;
ModExporter._visible = false;
ModExporter._alpha = 0;
}
function onLoad() {
ButtonBack.onPress = mx.utils.Delegate.create(this, onBackButton);
ButtonExport.onPress = mx.utils.Delegate.create(this, onExportButton);
ButtonNext.__set__onClick(mx.utils.Delegate.create(TheMod, TheMod.onClickNext));
ButtonPrev.__set__onClick(mx.utils.Delegate.create(TheMod, TheMod.onClickPrev));
TheMod.ButtonPrev = ButtonPrev;
TheMod.ButtonNext = ButtonNext;
TheMod.legend = TheLegend;
TheMod.update();
ModSwitch.__set__onClick(mx.utils.Delegate.create(this, onActivateSwitch));
}
function onActivateSwitch() {
GameManager.prefSet("ModActive", ModSwitch.__get__value());
}
function onExportButton() {
if (mode == MODE_EXPORT) {
mode = MODE_EDIT;
} else {
mode = MODE_EXPORT;
}
update();
}
function onBackButton() {
mode = MODE_EDIT;
update();
_root.Game.modeSet("home");
TheMod.reset();
}
function update() {
if (mode == MODE_EDIT) {
gs.TweenLite.to(ModExporter, crossfade_time, {autoAlpha:0});
gs.TweenLite.to(TheMod, crossfade_time, {autoAlpha:100, delay:crossfade_time});
gs.TweenLite.to(ButtonNext, crossfade_time, {autoAlpha:100, delay:crossfade_time});
gs.TweenLite.to(ButtonPrev, crossfade_time, {autoAlpha:100, delay:crossfade_time});
gs.TweenLite.to(ModSwitch, crossfade_time, {autoAlpha:100, delay:crossfade_time});
ButtonExport.__set__label("Export");
} else if (mode == MODE_EXPORT) {
gs.TweenLite.to(ModExporter, crossfade_time, {autoAlpha:100, delay:crossfade_time});
gs.TweenLite.to(TheMod, crossfade_time, {autoAlpha:0});
gs.TweenLite.to(ButtonNext, crossfade_time, {autoAlpha:0});
gs.TweenLite.to(ButtonPrev, crossfade_time, {autoAlpha:0});
gs.TweenLite.to(ModSwitch, crossfade_time, {autoAlpha:0});
ButtonExport.__set__label("Edit");
} else {
mode = MODE_EDIT;
update();
}
}
static var MODE_EDIT = "modEdit";
static var MODE_EXPORT = "modExport";
var crossfade_time = 0.4;
}
Symbol 1385 MovieClip [__Packages.GameSelectMode] Frame 0
class GameSelectMode extends OnslaughtObject
{
var interval, ButtonEasy, ButtonMedium, ButtonHard, ButtonExtreme, ButtonSandbox, ButtonTutorial, ButtonMap, ButtonChallenge, ButtonMod, SampleBlue, SampleGreen;
function GameSelectMode () {
super();
deactivate();
}
function onLoad() {
_root.Game.modeCheck();
deactivate();
interval = setInterval(this, "deactivate", 500);
ButtonEasy.the_label = "Easy Mode";
ButtonEasy.is_locked = false;
ButtonEasy.is_ticked = _root.Game.modeIsComplete("easy");
ButtonEasy.onPress = function () {
if (this.is_locked) {
return(undefined);
}
GameSelect.page_show = this.SelectMap;
GameStatus.game_type = "normal";
_root.Game.difficultySet("easy");
_root.Game.modeSet("mapchoose");
};
ButtonMedium.the_label = "Medium Mode";
ButtonMedium.is_locked = false;
ButtonMedium.is_ticked = _root.Game.modeIsComplete("medium");
ButtonMedium.onPress = function () {
if (this.is_locked) {
return(undefined);
}
GameSelect.page_show = this.SelectMap;
GameStatus.game_type = "normal";
_root.Game.difficultySet("medium");
_root.Game.modeSet("mapchoose");
};
ButtonHard.the_label = "Hard Mode";
ButtonHard.is_locked = false;
ButtonHard.is_ticked = _root.Game.modeIsComplete("hard");
ButtonHard.onPress = function () {
if (this.is_locked) {
return(undefined);
}
GameSelect.page_show = this.SelectMap;
GameStatus.game_type = "normal";
_root.Game.difficultySet("hard");
_root.Game.modeSet("mapchoose");
};
ButtonExtreme.the_label = "Extreme Mode";
ButtonExtreme.is_locked = !_root.Game.modeIsAvailable("extreme");
ButtonExtreme.is_ticked = _root.Game.modeIsComplete("extreme");
ButtonExtreme.onPress = function () {
if (this.is_locked) {
return(undefined);
}
GameSelect.page_show = this.SelectMap;
GameStatus.game_type = "normal";
_root.Game.difficultySet("extreme");
_root.Game.modeSet("mapchoose");
};
ButtonSandbox.the_label = "Sandbox Mode";
ButtonSandbox.is_locked = !_root.Game.modeIsAvailable("sandbox");
ButtonSandbox.is_ticked = false;
ButtonSandbox.onPress = function () {
if (this.is_locked) {
return(undefined);
}
GameSelect.page_show = this.SelectMap;
GameStatus.game_type = "sandbox";
_root.Game.difficultySet("easy");
_root.Game.modeSet("sandbox");
};
ButtonTutorial.the_label = "Quick Tutorial";
ButtonTutorial.is_locked = false;
ButtonTutorial.is_ticked = _root.Game.modeIsComplete("tutorial");
ButtonTutorial.onPress = function () {
if (this.is_locked) {
return(undefined);
}
GameSelect.page_show = this.SelectMode;
GameStatus.game_type = "tutorial";
_root.Game.difficultySet("easy");
_root.game_map = "tutorial";
_root.gotoPage("Tutorial", 1);
};
ButtonMap.the_label = "Map Tools";
ButtonMap.is_locked = false;
ButtonMap.is_ticked = false;
ButtonMap.onPress = function () {
if (this.is_locked) {
return(undefined);
}
GameSelect.page_show = this.SelectMapping;
GameStatus.game_type = "normal";
_root.Game.difficultySet("easy");
_root.Game.modeSet("mapping");
};
ButtonChallenge.the_label = "Challenge Games";
ButtonChallenge.is_locked = !_root.Game.modeIsAvailable("challenge");
ButtonChallenge.is_ticked = false;
ButtonChallenge.onPress = function () {
if (this.is_locked) {
return(undefined);
}
GameSelect.page_show = this.SelectChallenge;
GameStatus.game_type = "challenge";
_root.Game.modeSet("challenge");
};
ButtonMod.the_label = "Mods";
ButtonMod.is_locked = !_root.Game.modeIsAvailable("modding");
ButtonMod.is_ticked = false;
ButtonMod.onPress = function () {
if (this.is_locked) {
return(undefined);
}
GameSelect.page_show = this.SelectMod;
_root.Game.modeSet("mod");
};
toolTipSetup();
}
function deactivate() {
SampleBlue.active = false;
SampleGreen.active = false;
SampleBlue.deactivate();
SampleGreen.deactivate();
clearInterval(interval);
}
function toolTipSetup() {
if (_root.Game.modeIsAvailable("sandbox") == false) {
org.bigcrunch.ToolTip.install(ButtonSandbox, "Score 4000 kills on\nmedium to unlock", 250);
} else if (_root.Game.modeIsAvailable("sandbox2") == false) {
org.bigcrunch.ToolTip.install(ButtonSandbox, "Score 4000 kills on hard\nto unlock the super sandbox!", 250);
}
if (_root.Game.modeIsAvailable("extreme") == false) {
org.bigcrunch.ToolTip.install(ButtonExtreme, "Make 2000 kills on any\ndifficulty to unlock", 250);
}
if (_root.Game.modeIsAvailable("challenge") == false) {
org.bigcrunch.ToolTip.install(ButtonChallenge, "Play the tutorial to\nunlock the challenges", 250);
}
if (_root.Game.modeIsAvailable("modding") == false) {
org.bigcrunch.ToolTip.install(ButtonMod, "Complete easy, medium and hard\nmodes to enable modding", 250);
}
}
}
Symbol 1386 MovieClip [__Packages.GameSelect] Frame 0
class GameSelect extends OnslaughtObject
{
var SelectMode, SelectMod, SelectMap, SelectMapping, SelectChallenge, page_last;
function GameSelect () {
super();
SelectMode._visible = false;
SelectMod._visible = false;
SelectMap._visible = false;
SelectMapping._visible = false;
SelectChallenge._visible = false;
}
function onLoad() {
SelectMode._visible = true;
SelectMod._visible = false;
SelectMap._visible = false;
SelectMapping._visible = false;
SelectChallenge._visible = false;
page_last = SelectMode;
}
function selectShow(the_page) {
the_page = the_page.toLowerCase();
var _local2;
if (the_page == "mapchoose") {
_local2 = SelectMap;
} else if (the_page == "sandbox") {
_local2 = SelectMap;
} else if (the_page == "mapping") {
_local2 = SelectMapping;
} else if (the_page == "challenge") {
_local2 = SelectChallenge;
} else if (the_page == "mod") {
_local2 = SelectMod;
} else if (the_page == "home") {
_local2 = SelectMode;
} else {
_local2 = SelectMode;
}
if (page_last == _local2) {
return(undefined);
}
var _local3;
if (page_last && (page_last._name)) {
_local3 = new Object();
_local3.autoAlpha = 0;
gs.TweenLite.to(page_last, 0.3, _local3);
}
page_last = _local2;
page_last.update();
_local2._alpha = 0;
_local2._visible = true;
_local3 = new Object();
_local3.autoAlpha = 100;
_local3.delay = 0.4;
_local3.onCompleteParams = new Array(_local2);
_local3.onComplete = function (a_page) {
a_page.doInit();
};
gs.TweenLite.to(_local2, 0.3, _local3);
}
}
Symbol 1387 MovieClip [__Packages.ReviewWeapon] Frame 0
class ReviewWeapon extends OnslaughtObject
{
var DamageRating, RangeRating, RateRating, weapon_type;
function ReviewWeapon () {
super();
DamageRating.ratingSet(0);
RangeRating.ratingSet(0);
RateRating.ratingSet(0);
}
function reviewShow(the_type) {
DamageRating.ratingSet(0);
RangeRating.ratingSet(0);
RateRating.ratingSet(0);
weapon_type = "";
var _local2 = WeaponReviews.weapon_ratings[the_type];
if (_local2 != undefined) {
weapon_type = _local2.display_name;
DamageRating.ratingSet(_local2.rating_damage);
RangeRating.ratingSet(_local2.rating_range);
RateRating.ratingSet(_local2.rating_rate);
}
}
}
Symbol 1388 MovieClip [__Packages.ReviewModifier] Frame 0
class ReviewModifier extends OnslaughtObject
{
var DamageModify, RangeModify, RateModify, weapon_type;
function ReviewModifier () {
super();
}
function reviewShow(the_type) {
DamageModify.text = "No effect";
RangeModify.text = "No effect";
RateModify.text = "No effect";
weapon_type = "";
var _local2 = WeaponReviews.weapon_ratings[the_type];
if (_local2 != undefined) {
weapon_type = _local2.display_name;
if (_local2.rating_damage != undefined) {
DamageModify.text = _local2.rating_damage;
}
if (_local2.rating_range != undefined) {
RangeModify.text = _local2.rating_range;
}
if (_local2.rating_rate != undefined) {
RateModify.text = _local2.rating_rate;
}
}
}
}
Symbol 1389 MovieClip [__Packages.BuildPanel] Frame 0
class BuildPanel extends OnslaughtManager
{
var _alpha;
function BuildPanel () {
super();
_alpha = 75;
}
}
Symbol 1390 MovieClip [__Packages.WeaponRackSliding] Frame 0
class WeaponRackSliding extends OnslaughtObject
{
var Rack, RackMask, rack_start_x, rack_start_y, ButtonLeft, ButtonRight, effect, effectNew, _parent;
function WeaponRackSliding () {
super();
Rack.setMask(RackMask);
rack_start_x = Rack._x;
rack_start_y = Rack._y;
ButtonLeft.onPress = function () {
this._parent.slideItemPrev();
};
ButtonRight.onPress = function () {
this._parent.slideItemNext();
};
}
function rackReset(populate) {
item_cur = 0;
Rack._x = rack_start_x;
return(Rack.rackReset(populate));
}
function rackItemAdd(item_id, item_cost, item_type, populate) {
return(Rack.rackItemAdd(item_id, item_cost, item_type, populate));
}
function rackBuyCurrent() {
var _local4 = Rack.rackItemType(item_cur);
var _local6 = Rack.rackTypeRange(_local4);
var _local5 = _root.Game.turrets_cost[_local4];
var _local3 = new Object();
_local3.turret_range = _local6;
_local3.turret_type = _local4;
_local3.turret_cost = _local5;
_root.Game.buildTry(_local3);
}
function rackEmpty() {
return(Rack.rackEmpty());
}
function slideItemNext() {
if ((item_cur + 1) >= Rack.item_total) {
return(false);
}
SoundPlayer.play("RackNext");
item_cur++;
if (effect) {
effect.effectRemove();
}
var _local2 = new Object();
_local2.target_obj = Rack;
_local2.target_x = rack_start_x - (item_cur * Rack.item_width);
_local2.effect_duration = 200;
effect = effectNew(_local2);
reviewSet();
}
function slideItemPrev() {
if (item_cur <= 0) {
return(false);
}
SoundPlayer.play("RackPrev");
item_cur--;
if (effect) {
effect.effectRemove();
}
var _local2 = new Object();
_local2.target_obj = Rack;
_local2.target_x = rack_start_x - (item_cur * Rack.item_width);
_local2.effect_duration = 200;
effect = effectNew(_local2);
reviewSet();
}
function reviewSet() {
var _local2 = Rack.rackItemType(item_cur);
var _local3 = Rack.rackItemSubType(item_cur);
if (_local3 == "weapon") {
_parent.ReviewModifier._visible = false;
_parent.ReviewWeapon._visible = true;
_parent.ReviewWeapon.reviewShow("Turret" + _local2);
} else if (_local3 == "modifier") {
_parent.ReviewModifier._visible = true;
_parent.ReviewWeapon._visible = false;
_parent.ReviewModifier.reviewShow("Turret" + _local2);
}
}
function rackTypeRange(the_type) {
return(Rack.rackTypeRange(the_type));
}
var item_cur = 0;
}
Symbol 2 MovieClip [__Packages.mx.data.components.DataBinding] Frame 0
class mx.data.components.DataBinding extends MovieClip
{
function DataBinding () {
super();
}
function Dummy() {
new mx.data.binding.Binding();
new mx.data.binding.ComponentMixins();
new mx.data.binding.CustomFormatter();
new mx.data.binding.CustomValidator();
new mx.data.binding.DataAccessor();
new mx.data.binding.DataType();
new mx.data.binding.DateBase();
new mx.data.binding.Encoder();
new mx.data.binding.EndPoint();
new mx.data.binding.FieldAccessor();
new mx.data.binding.Formatter();
new mx.data.binding.Kind();
new mx.data.binding.Log();
new mx.data.binding.TypedValue();
new mx.utils.ClassFinder();
new mx.utils.Collection();
new mx.utils.CollectionImpl();
new mx.utils.Iterator();
new mx.utils.IteratorImpl();
new mx.utils.StringFormatter();
new mx.utils.StringTokenParser();
}
}
Symbol 7 MovieClip [__Packages.mx.data.binding.Binding] Frame 0
class mx.data.binding.Binding
{
var is2way, dest, source, format;
function Binding (source, dest, format, is2way) {
mx.events.EventDispatcher.initialize(this);
var _local5 = this;
_local5.source = source;
_local5.dest = dest;
_local5.format = format;
_local5.is2way = is2way;
registerBinding(this);
calcShortLoc(source);
calcShortLoc(dest);
_global.__dataLogger.logData(null, ("Creating binding " + summaryString()) + (is2way ? ", 2-way" : ""), {binding:this});
_global.__dataLogger.nestLevel++;
mx.data.binding.ComponentMixins.initComponent(dest.component);
if (source.component != undefined) {
mx.data.binding.ComponentMixins.initComponent(source.component);
}
dest.component.addBinding(this);
if (source.component != undefined) {
source.component.addBinding(this);
setUpListener(source, false);
if (this.is2way) {
setUpListener(dest, true);
setUpIndexListeners(source, false);
setUpIndexListeners(dest, true);
} else {
setUpIndexListeners(source, false);
setUpIndexListeners(dest, false);
}
} else {
execute();
}
_global.__dataLogger.nestLevel--;
}
function execute(reverse) {
var _local3;
var _local4;
if (reverse) {
if (!is2way) {
_global.__dataLogger.logData(null, ("Warning: Can't execute binding " + summaryString(false)) + " in reverse, because it's not a 2 way binding", {binding:this}, mx.data.binding.Log.BRIEF);
return(["error"]);
}
_local3 = dest;
_local4 = source;
} else {
_local3 = source;
_local4 = dest;
}
_global.__dataLogger.logData(null, "Executing binding " + summaryString(reverse), {binding:this});
_global.__dataLogger.nestLevel++;
var _local10;
if (_local3.constant != undefined) {
_local10 = {value:new mx.data.binding.TypedValue(_local3.constant, "String"), getAnyTypedValue:function () {
return(this.value);
}, getTypedValue:function () {
return(this.value);
}, getGettableTypes:function () {
return(["String"]);
}};
} else {
_local10 = _local3.component.getField(_local3.property, _local3.location, true);
}
var _local20;
var _local16;
var _local13 = "";
var _local6 = _local4.component.getField(_local4.property, _local4.location);
if (format != null) {
var _local5 = getRuntimeObject(format);
if (_local5 != null) {
if (reverse) {
_local5.setupDataAccessor(_local4.component, _local4.property, _local4.location);
_local5.dataAccessor = _local6;
_local6 = _local5;
} else {
_local5.setupDataAccessor(_local3.component, _local3.property, _local3.location);
_local5.dataAccessor = _local10;
_local10 = _local5;
}
}
}
var _local15 = ((format == null) ? (_local6.getSettableTypes()) : null);
var _local11 = _local10.getAnyTypedValue(_local15);
var _local7 = new Object();
if (_local6.type.readonly == true) {
_global.__dataLogger.logData(null, "Not executing binding because the destination is read-only", null, mx.data.binding.Log.BRIEF);
var _local8 = new Object();
_local8.type = "invalid";
_local8.property = _local4.property;
_local8.location = _local4.location;
_local8.messages = [{message:"Cannot assign to a read-only data field."}];
_local4.component.dispatchEvent(_local8);
_local7.event = _local8;
} else {
_global.__dataLogger.logData(null, "Assigning new value '<value>' (<typeName>) " + _local13, {value:_local11.value, typeName:_local11.typeName, unformattedValue:_local20, formatterFrom:_local16});
var _local14 = _local6.setAnyTypedValue(_local11);
_local6.validateAndNotify(_local7, false, _local14);
_local4.component.dispatchEvent({type:"bindingExecuted", binding:this});
}
if (_local7.event != null) {
if (_local3.component != null) {
var _local9 = new Object();
_local9.type = _local7.event.type;
_local9.property = _local3.property;
_local9.location = _local3.location;
_local9.messages = _local7.event.messages;
_local9.to = _local4.component;
_local3.component.dispatchEvent(_local9);
}
}
_global.__dataLogger.nestLevel--;
return(_local7.event.messages);
}
function queueForExecute(reverse) {
if (!queued) {
if (_global.__databind_executeQueue == null) {
_global.__databind_executeQueue = new Array();
}
if (_root.__databind_dispatch == undefined) {
_root.createEmptyMovieClip("__databind_dispatch", -8888);
}
_global.__databind_executeQueue.push(this);
queued = true;
this.reverse = reverse;
_root.__databind_dispatch.onEnterFrame = dispatchEnterFrame;
}
}
static function dispatchEnterFrame() {
_root.__databind_dispatch.onEnterFrame = null;
var _local4 = 0;
while (_local4 < _global.__databind_executeQueue.length) {
var _local3 = _global.__databind_executeQueue[_local4];
_local3.execute(_local3.reverse);
_local4++;
}
var _local5;
while (_local5 = _global.__databind_executeQueue.pop() , _local5 != null) {
_local5.queued = false;
_local5.reverse = false;
}
}
function calcShortLoc(endpoint) {
var _local1 = endpoint.location;
if (_local1.path != null) {
_local1 = _local1.path;
}
endpoint.loc = ((_local1 instanceof Array) ? (_local1.join(".")) : (_local1));
}
function summaryString(reverse) {
var _local2 = "<binding.dest.component>:<binding.dest.property>:<binding.dest.loc>";
var _local3 = "<binding.source.component>:<binding.source.property>:<binding.source.loc>";
if (source.constant == null) {
if (reverse == true) {
return((("from " + _local2) + " to ") + _local3);
}
return((("from " + _local3) + " to ") + _local2);
}
return("from constant '<binding.source.constant>' to " + _local2);
}
static function getRuntimeObject(info, constructorParameter) {
if (info.cls == undefined) {
info.cls = mx.utils.ClassFinder.findClass(info.className);
}
var _local3 = new info.cls(constructorParameter);
if (_local3 == null) {
_global.__dataLogger.logData(null, "Could not construct a formatter or validator - new <info.className>(<params>)", {info:info, params:constructorParameter}, mx.data.binding.Log.BRIEF);
}
for (var _local4 in info.settings) {
_local3[_local4] = info.settings[_local4];
}
return(_local3);
}
static function refreshFromSources(component, property, bindings) {
var _local5 = null;
var _local3;
_local3 = 0;
while (_local3 < bindings.length) {
var _local1 = bindings[_local3];
var _local2 = null;
if ((_local1.dest.component == component) && ((property == null) || (property == _local1.dest.property))) {
_local2 = _local1.execute();
} else if ((_local1.is2way && (_local1.source.component == component)) && ((property == null) || (property == _local1.source.property))) {
_local2 = _local1.execute(true);
}
if (_local2 != null) {
_local5 = ((_local5 == null) ? (_local2) : (_local5.concat(_local2)));
}
_local3++;
}
return(_local5);
}
static function refreshDestinations(component, bindings) {
var _local1;
_local1 = 0;
while (_local1 < bindings.length) {
var _local2 = bindings[_local1];
if (_local2.source.component == component) {
_local2.execute();
} else if (_local2.is2way && (_local2.dest.component == component)) {
_local2.execute(true);
}
_local1++;
}
_local1 = 0;
while (_local1 < component.__indexBindings.length) {
var _local3 = component.__indexBindings[_local1];
_local3.binding.execute(_local3.reverse);
_local1++;
}
}
static function okToCallGetterFromSetter() {
function setter(val) {
this.value2 = this.value;
}
function getter() {
return(5);
}
var _local2 = new Object();
_local2.addProperty("value", getter, setter);
_local2.value = 0;
var _local3 = _local2.value2 == _local2.value;
return(_local3);
}
function setUpListener(endpoint, reverse) {
var _local4 = new Object();
_local4.binding = this;
_local4.property = endpoint.property;
_local4.reverse = reverse;
_local4.immediate = okToCallGetterFromSetter();
_local4.handleEvent = function (event) {
_global.__dataLogger.logData(event.target, "Data of property '<property>' has changed. <immediate>.", this);
if (this.immediate) {
if (this.binding.executing != true) {
this.binding.executing = true;
this.binding.execute(this.reverse);
this.binding.executing = false;
}
} else {
this.binding.queueForExecute(this.reverse);
}
};
if (endpoint.event instanceof Array) {
for (var _local5 in endpoint.event) {
endpoint.component.__addHighPrioEventListener(endpoint.event[_local5], _local4);
}
} else {
endpoint.component.__addHighPrioEventListener(endpoint.event, _local4);
}
mx.data.binding.ComponentMixins.initComponent(endpoint.component);
}
function setUpIndexListeners(endpoint, reverse) {
if (endpoint.location.indices != undefined) {
var _local3 = 0;
while (_local3 < endpoint.location.indices.length) {
var _local2 = endpoint.location.indices[_local3];
if (_local2.component != undefined) {
setUpListener(_local2, reverse);
if (_local2.component.__indexBindings == undefined) {
_local2.component.__indexBindings = new Array();
}
_local2.component.__indexBindings.push({binding:this, reverse:reverse});
}
_local3++;
}
}
}
static function copyBinding(b) {
var _local1 = new Object();
_local1.source = copyEndPoint(b.source);
_local1.dest = copyEndPoint(b.dest);
_local1.format = b.format;
_local1.is2way = b.is2way;
return(_local1);
}
static function copyEndPoint(e) {
var _local1 = new Object();
_local1.constant = e.constant;
_local1.component = String(e.component);
_local1.event = e.event;
_local1.location = e.location;
_local1.property = e.property;
return(_local1);
}
static function registerScreen(screen, id) {
var symbol = screenRegistry[id];
if (symbol == null) {
screenRegistry[id] = {symbolPath:String(screen), bindings:[], id:id};
return(undefined);
}
if (symbol.symbolPath == String(screen)) {
return(undefined);
}
var instancePath = String(screen);
var i = 0;
while (i < bindingRegistry.length) {
var b = bindingRegistry[i];
var src = copyEndPoint(b.source);
var dst = copyEndPoint(b.dest);
var prefix = (symbol.symbolPath + ".");
var symbolContainsSource = (prefix == b.source.component.substr(0, prefix.length));
var symbolContainsDest = (prefix == b.dest.component.substr(0, prefix.length));
if (symbolContainsSource) {
if (symbolContainsDest) {
src.component = eval (instancePath + src.component.substr(symbol.symbolPath.length));
dst.component = eval (instancePath + dst.component.substr(symbol.symbolPath.length));
new mx.data.binding.Binding(src, dst, b.format, b.is2way);
} else {
src.component = eval (instancePath + src.component.substr(symbol.symbolPath.length));
dst.component = eval (dst.component);
new mx.data.binding.Binding(src, dst, b.format, b.is2way);
}
} else if (symbolContainsDest) {
src.component = eval (src.component);
dst.component = eval (instancePath + dst.component.substr(symbol.symbolPath.length));
new mx.data.binding.Binding(src, dst, b.format, b.is2way);
}
i++;
}
}
static function registerBinding(binding) {
var _local1 = copyBinding(binding);
bindingRegistry.push(_local1);
}
static function getLocalRoot(clip) {
var _local2;
var _local3 = clip._url;
while (clip != null) {
if (clip._url != _local3) {
break;
}
_local2 = clip;
clip = clip._parent;
}
return(_local2);
}
var queued = false;
var reverse = false;
static var counter = 0;
static var screenRegistry = new Object();
static var bindingRegistry = new Array();
}
Symbol 8 MovieClip [__Packages.mx.data.binding.TypedValue] Frame 0
class mx.data.binding.TypedValue
{
var value, typeName, type;
function TypedValue (value, typeName, type) {
this.value = value;
this.typeName = typeName;
this.type = type;
}
}
Symbol 9 MovieClip [__Packages.mx.data.binding.DataAccessor] Frame 0
class mx.data.binding.DataAccessor
{
var dataAccessor, component, property, location, type;
function DataAccessor () {
}
function getAnyTypedValue(suggestedTypes) {
var _local3 = 0;
while (_local3 < suggestedTypes.length) {
var _local5 = getTypedValue(suggestedTypes[_local3]);
if (_local5 != null) {
return(_local5);
}
_local3++;
}
var _local5 = getTypedValue();
_local3 = 0;
while (_local3 < suggestedTypes.length) {
var _local2 = suggestedTypes[_local3];
if (_local2 == "String") {
return(new mx.data.binding.TypedValue(String(_local5.value), _local2));
}
if (_local2 == "Number") {
return(new mx.data.binding.TypedValue(Number(_local5.value), _local2));
}
if (_local2 == "Boolean") {
return(new mx.data.binding.TypedValue(Boolean(_local5.value), _local2));
}
_local3++;
}
return(_local5);
}
function setAnyTypedValue(newValue) {
var _local7 = getSettableTypes();
if ((_local7 == null) || (-1 != findString(newValue.typeName, _local7))) {
return(setTypedValue(newValue));
}
var _local3 = 0;
while (_local3 < _local7.length) {
var _local2 = _local7[_local3];
if (_local2 == "String") {
return(setTypedValue(new mx.data.binding.TypedValue(String(newValue.value), _local2)));
}
if (_local2 == "Number") {
var _local5 = Number(newValue.value);
var _local6 = setTypedValue(new mx.data.binding.TypedValue(_local5, _local2));
if (_local5.toString() == "NaN") {
return([("Failed to convert '" + newValue.value) + "' to a number"]);
}
return(_local6);
}
if (_local2 == "Boolean") {
return(setTypedValue(new mx.data.binding.TypedValue(Boolean(newValue.value), _local2)));
}
_local3++;
}
return(dataAccessor.setTypedValue(newValue));
}
function getTypedValue(requestedType) {
var _local2 = dataAccessor.getTypedValue(requestedType);
return(_local2);
}
function getGettableTypes() {
return(null);
}
function setTypedValue(newValue) {
return(dataAccessor.setTypedValue(newValue));
}
function getSettableTypes() {
return(null);
}
function findLastAccessor() {
return(((dataAccessor == null) ? this : (dataAccessor.findLastAccessor())));
}
function setupDataAccessor(component, property, location) {
this.component = component;
this.property = property;
this.location = location;
type = component.findSchema(property, location);
}
static function findString(str, arr) {
var _local3 = str.toLowerCase();
var _local1 = 0;
while (_local1 < arr.length) {
if (arr[_local1].toLowerCase() == _local3) {
return(_local1);
}
_local1++;
}
return(-1);
}
static function conversionFailed(newValue, target) {
return(((("Failed to convert to " + target) + ": '") + newValue.value) + "'");
}
}
Symbol 10 MovieClip [__Packages.mx.data.binding.ComponentMixins] Frame 0
class mx.data.binding.ComponentMixins
{
var __refreshing, __bindings, __schema, __fieldCache, _eventDispatcher;
function ComponentMixins () {
}
function refreshFromSources() {
if (__refreshing != null) {
return(undefined);
}
__refreshing = true;
_global.__dataLogger.logData(this, "Refreshing from sources");
_global.__dataLogger.nestLevel++;
mx.data.binding.Binding.refreshFromSources(this, null, __bindings);
_global.__dataLogger.nestLevel--;
__refreshing = null;
}
function refreshDestinations() {
_global.__dataLogger.logData(this, "Refreshing Destinations");
_global.__dataLogger.nestLevel++;
mx.data.binding.Binding.refreshDestinations(this, __bindings);
_global.__dataLogger.nestLevel--;
}
function validateProperty(property, initialMessages) {
var _local4 = null;
var _local3 = getField(property);
if (_local3 != null) {
_local4 = _local3.validateAndNotify(null, null, initialMessages);
} else {
_global.__dataLogger.logData(this, "Can't validate property '<property>' because it doesn't exist", {property:property});
}
return(_local4);
}
function addBinding(binding) {
if (__bindings == undefined) {
__bindings = new Array();
}
__bindings.push(binding);
var _local3 = false;
if (binding.source.component == this) {
getField(binding.source.property, binding.source.location);
_local3 = true;
}
if (binding.dest.component == this) {
getField(binding.dest.property, binding.dest.location);
_local3 = _local3 | Object(binding).is2way;
}
if (_local3) {
var _local4 = binding.dest.component.findSchema(binding.dest.property, binding.dest.location);
if (_local4.readonly) {
binding.source.component.__setReadOnly(true);
}
}
}
static function initComponent(component) {
var _local2 = mx.data.binding.ComponentMixins.prototype;
if (component.refreshFromSources == undefined) {
component.refreshFromSources = _local2.refreshFromSources;
}
if (component.refreshDestinations == undefined) {
component.refreshDestinations = _local2.refreshDestinations;
}
if (component.validateProperty == undefined) {
component.validateProperty = _local2.validateProperty;
}
if (component.createFieldAccessor == undefined) {
component.createFieldAccessor = _local2.createFieldAccessor;
}
if (component.createField == undefined) {
component.createField = _local2.createField;
}
if (component.addBinding == undefined) {
component.addBinding = _local2.addBinding;
}
if (component.findSchema == undefined) {
component.findSchema = _local2.findSchema;
}
if (component.getField == undefined) {
component.getField = _local2.getField;
}
if (component.refreshAndValidate == undefined) {
component.refreshAndValidate = _local2.refreshAndValidate;
}
if (component.getFieldFromCache == undefined) {
component.getFieldFromCache = _local2.getFieldFromCache;
}
if (component.getBindingMetaData == undefined) {
component.getBindingMetaData = _local2.getBindingMetaData;
}
if (component.__setReadOnly == undefined) {
component.__setReadOnly = _local2.__setReadOnly;
}
if (component.__addHighPrioEventListener == undefined) {
component.__addHighPrioEventListener = _local2.__addHighPrioEventListener;
}
}
function createFieldAccessor(property, location, mustExist) {
return(mx.data.binding.FieldAccessor.createFieldAccessor(this, property, location, mx.data.binding.FieldAccessor.findElementType(__schema, property), mustExist));
}
function findSchema(property, location) {
if (typeof(location) == "string") {
if (mx.data.binding.FieldAccessor.isActionScriptPath(String(location))) {
location = location.split(".");
} else {
return(null);
}
}
var _local5 = mx.data.binding.FieldAccessor.findElementType(__schema, property);
if (location != null) {
if (location.path != null) {
location = location.path;
}
if (!(location instanceof Array)) {
return(null);
}
var _local2 = 0;
while (_local2 < location.length) {
var _local4 = location[_local2];
_local5 = mx.data.binding.FieldAccessor.findElementType(_local5, _local4);
_local2++;
}
}
return(_local5);
}
function createField(property, location) {
var _local3 = findSchema(property, location);
var _local2;
if (_local3.validation != null) {
_local2 = mx.data.binding.Binding.getRuntimeObject(_local3.validation);
} else {
_local2 = new mx.data.binding.DataType();
}
_local2.setupDataAccessor(this, property, location);
return(_local2);
}
static function deepEqual(a, b) {
if (a == b) {
return(true);
}
if (typeof(a) != typeof(b)) {
return(false);
}
if (typeof(a) != "object") {
return(false);
}
var _local3 = new Object();
for (var _local4 in a) {
if (!deepEqual(a[_local4], b[_local4])) {
return(false);
}
_local3[_local4] = 1;
}
for (var _local4 in b) {
if (_local3[_local4] != 1) {
return(false);
}
}
return(true);
}
function getFieldFromCache(property, location) {
for (var _local5 in __fieldCache) {
var _local2 = __fieldCache[_local5];
if ((_local2.property == property) && (deepEqual(_local2.location, location))) {
return(_local2);
}
}
return(null);
}
function getField(property, location) {
var _local2 = getFieldFromCache(property, location);
if (_local2 != null) {
return(_local2);
}
_local2 = createField(property, location);
if (__fieldCache == null) {
__fieldCache = new Array();
}
__fieldCache.push(_local2);
return(_local2);
}
function refreshAndValidate(property) {
_global.__dataLogger.logData(this, "Refreshing and validating " + property);
_global.__dataLogger.nestLevel++;
var _local3 = mx.data.binding.Binding.refreshFromSources(this, property, __bindings);
_local3 = validateProperty(property, _local3);
_global.__dataLogger.nestLevel--;
return(_local3 == null);
}
function getBindingMetaData(name) {
return(this["__" + name]);
}
function __setReadOnly(setting) {
if (Object(this).editable != undefined) {
Object(this).editable = !setting;
}
}
function __addHighPrioEventListener(event, handler) {
var _local3 = ((_eventDispatcher != undefined) ? (_eventDispatcher) : this);
if (_local3.__highPrioEvents == undefined) {
_local3.__highPrioEvents = new Object();
}
var _local4 = "__q_" + event;
if (_local3.__highPrioEvents[_local4] == undefined) {
_local3.__highPrioEvents[_local4] = new Array();
}
_global.ASSetPropFlags(_local3.__highPrioEvents, _local4, 1);
mx.events.EventDispatcher._removeEventListener(_local3.__highPrioEvents[_local4], event, handler);
_local3.__highPrioEvents[_local4].push(handler);
if (_local3._databinding_original_dispatchEvent == undefined) {
_local3._databinding_original_dispatchEvent = _local3.dispatchEvent;
_local3.dispatchEvent = function (eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this.dispatchQueue(this.__highPrioEvents, eventObj);
this._databinding_original_dispatchEvent(eventObj);
};
}
}
}
Symbol 11 MovieClip [__Packages.mx.data.binding.ObjectDumper] Frame 0
class mx.data.binding.ObjectDumper
{
var inProgress;
function ObjectDumper () {
inProgress = new Array();
}
static function toString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local3 = new mx.data.binding.ObjectDumper();
if (maxLineLength == undefined) {
maxLineLength = 100;
}
if (indent == undefined) {
indent = 0;
}
return(_local3.realToString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent));
}
function realToString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local8 = 0;
while (_local8 < inProgress.length) {
if (inProgress[_local8] == obj) {
return("***");
}
_local8++;
}
inProgress.push(obj);
indent++;
var _local16 = typeof(obj);
var _local5;
if ((obj instanceof XMLNode) && (showXMLstructures != true)) {
_local5 = obj.toString();
} else if (obj instanceof Date) {
_local5 = obj.toString();
} else if (_local16 == "object") {
var _local4 = new Array();
if (obj instanceof Array) {
_local5 = "[";
var _local15 = 0;
while (_local15 < obj.length) {
_local4.push(_local15);
_local15++;
}
} else {
_local5 = "{";
for (var _local15 in obj) {
_local4.push(_local15);
}
_local4.sort();
}
var _local9 = "";
var _local3 = 0;
while (_local3 < _local4.length) {
var _local6 = obj[_local4[_local3]];
var _local7 = true;
if (typeof(_local6) == "function") {
_local7 = showFunctions == true;
}
if (typeof(_local6) == "undefined") {
_local7 = showUndefined == true;
}
if (_local7) {
_local5 = _local5 + _local9;
if (!(obj instanceof Array)) {
_local5 = _local5 + (_local4[_local3] + ": ");
}
_local5 = _local5 + realToString(_local6, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent);
_local9 = ", `";
}
_local3++;
}
if (obj instanceof Array) {
_local5 = _local5 + "]";
} else {
_local5 = _local5 + "}";
}
} else if (_local16 == "function") {
_local5 = "function";
} else if (_local16 == "string") {
_local5 = ("\"" + obj) + "\"";
} else {
_local5 = String(obj);
}
if (_local5 == "undefined") {
_local5 = "-";
}
inProgress.pop();
return(replaceAll(_local5, "`", ((_local5.length < maxLineLength) ? "" : (newline + doIndent(indent)))));
}
static function replaceAll(str, from, to) {
var _local3 = str.split(from);
var _local4 = "";
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3.length) {
_local4 = _local4 + (_local2 + _local3[_local1]);
_local2 = to;
_local1++;
}
return(_local4);
}
function doIndent(indent) {
var _local2 = "";
var _local1 = 0;
while (_local1 < indent) {
_local2 = _local2 + " ";
_local1++;
}
return(_local2);
}
}
Symbol 12 MovieClip [__Packages.mx.xpath.NodePathInfo] Frame 0
class mx.xpath.NodePathInfo
{
function NodePathInfo (nodeName, filter) {
__nodeName = nodeName;
__filter = filter;
}
function get nodeName() {
return(__nodeName);
}
function get filter() {
return(__filter);
}
var __nodeName = null;
var __filter = null;
}
Symbol 13 MovieClip [__Packages.mx.utils.StringTokenParser] Frame 0
class mx.utils.StringTokenParser
{
var _source, _skipChars;
function StringTokenParser (source, skipChars) {
_source = source;
_skipChars = ((skipChars == undefined) ? null : (skipChars));
}
function get token() {
return(_token);
}
function getPos() {
return(_index);
}
function nextToken() {
var _local4;
var _local2;
var _local3 = _source.length;
skipBlanks();
if (_index >= _local3) {
return(tkEOF);
}
_local2 = _source.charCodeAt(_index);
if (((((_local2 >= 65) && (_local2 <= 90)) || ((_local2 >= 97) && (_local2 <= 122))) || ((_local2 >= 192) && (_local2 <= Number.POSITIVE_INFINITY))) || (_local2 == 95)) {
_local4 = _index;
_index++;
_local2 = _source.charCodeAt(_index);
while (((((((_local2 >= 65) && (_local2 <= 90)) || ((_local2 >= 97) && (_local2 <= 122))) || ((_local2 >= 48) && (_local2 <= 57))) || ((_local2 >= 192) && (_local2 <= Number.POSITIVE_INFINITY))) || (_local2 == 95)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
_token = _source.substring(_local4, _index);
return(tkSymbol);
}
if ((_local2 == 34) || (_local2 == 39)) {
_index++;
_local4 = _index;
_local2 = _source.charCodeAt(_local4);
while (((_local2 != 34) && (_local2 != 39)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
_token = _source.substring(_local4, _index);
_index++;
return(tkString);
}
if ((_local2 == 45) || ((_local2 >= 48) && (_local2 <= 57))) {
var _local5 = tkInteger;
_local4 = _index;
_index++;
_local2 = _source.charCodeAt(_index);
while (((_local2 >= 48) && (_local2 <= 57)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
if (_index < _local3) {
if (((((((_local2 >= 48) && (_local2 <= 57)) || (_local2 == 46)) || (_local2 == 43)) || (_local2 == 45)) || (_local2 == 101)) || (_local2 == 69)) {
_local5 = tkFloat;
}
while ((((((((_local2 >= 48) && (_local2 <= 57)) || (_local2 == 46)) || (_local2 == 43)) || (_local2 == 45)) || (_local2 == 101)) || (_local2 == 69)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
}
_token = _source.substring(_local4, _index);
return(_local5);
}
_token = _source.charAt(_index);
_index++;
return(tkSymbol);
}
function skipBlanks() {
if (_index < _source.length) {
var _local2 = _source.charAt(_index);
while ((_local2 == " ") || ((_skipChars != null) && (skipChar(_local2)))) {
_index++;
_local2 = _source.charAt(_index);
}
}
}
function skipChar(ch) {
var _local2 = 0;
while (_local2 < _skipChars.length) {
if (ch == _skipChars[_local2]) {
return(true);
}
_local2++;
}
return(false);
}
static var tkEOF = -1;
static var tkSymbol = 0;
static var tkString = 1;
static var tkInteger = 2;
static var tkFloat = 3;
var _index = 0;
var _token = "";
}
Symbol 14 MovieClip [__Packages.mx.xpath.FilterExpr] Frame 0
class mx.xpath.FilterExpr
{
function FilterExpr (attrInit, nameInit, valueInit) {
__attr = attrInit;
__name = nameInit;
__value = valueInit;
}
function get attr() {
return(__attr);
}
function set attr(newVal) {
__attr = newVal;
//return(attr);
}
function get name() {
return(__name);
}
function set name(newVal) {
__name = newVal;
//return(name);
}
function get value() {
return(__value);
}
function set value(newVal) {
__value = newVal;
//return(value);
}
var __attr = false;
var __value = null;
var __name = null;
}
Symbol 15 MovieClip [__Packages.mx.xpath.FilterStack] Frame 0
class mx.xpath.FilterStack
{
var __expr, __ops;
function FilterStack (filterVal) {
__expr = new Array();
__ops = new Array();
var _local2 = new mx.utils.StringTokenParser(filterVal);
var _local5 = _local2.nextToken();
var _local4;
var _local3 = _local2.__get__token();
while (_local5 != mx.utils.StringTokenParser.tkEOF) {
if (_local3 == "@") {
_local5 = _local2.nextToken();
_local3 = _local2.token;
_local4 = new mx.xpath.FilterExpr(true, _local3, null);
__expr.splice(0, 0, _local4);
if (_local2.nextToken() == mx.utils.StringTokenParser.tkSymbol) {
if (_local2.__get__token() == "=") {
_local5 = _local2.nextToken();
_local4.__set__value(_local2.token);
}
}
} else if ((_local3 == "and") || (_local3 == "or")) {
__ops.splice(0, 0, _local3);
} else if ((_local3 != ")") && (_local3 != "(")) {
_local4 = new mx.xpath.FilterExpr(false, _local3, null);
__expr.splice(0, 0, _local4);
if (_local2.nextToken() == mx.utils.StringTokenParser.tkSymbol) {
if (_local2.__get__token() == "=") {
_local5 = _local2.nextToken();
_local4.__set__value(_local2.token);
}
}
}
_local5 = _local2.nextToken();
_local3 = _local2.token;
}
}
function get exprs() {
return(__expr);
}
function get ops() {
return(__ops);
}
}
Symbol 16 MovieClip [__Packages.mx.xpath.XPathAPI] Frame 0
class mx.xpath.XPathAPI
{
function XPathAPI () {
}
static function getEvalString(node, path) {
var _local7 = "";
var _local4 = null;
var _local9 = getPathSet(path);
var _local3 = _local9[0].nodeName;
var _local8;
var _local2 = node;
var _local5 = false;
if ((_local3 != undefined) && ((_local3 == "*") || (node.nodeName == _local3))) {
var _local6 = 1;
while (_local6 < _local9.length) {
_local3 = _local9[_local6].nodeName;
_local8 = _local3.indexOf("@");
if (_local8 >= 0) {
_local3 = _local3.substring(_local8 + 1);
_local5 = _local2.attributes[_local3] != undefined;
_local7 = _local7 + (".attributes." + _local3);
} else {
_local5 = false;
var _local1 = 0;
while (_local1 < _local2.childNodes.length) {
_local4 = _local2.childNodes[_local1];
if (_local4.nodeName == _local3) {
_local7 = _local7 + (".childNodes." + _local1);
_local1 = _local2.childNodes.length;
_local2 = _local4;
_local5 = true;
}
_local1++;
}
}
if (!_local5) {
return("");
}
_local6++;
}
if (!_local5) {
_local7 = "";
} else if (_local8 == -1) {
_local7 = _local7 + ".firstChild.nodeValue";
}
} else {
_local7 = "";
}
return(_local7);
}
static function selectNodeList(node, path) {
var _local2 = new Array(node);
var _local5 = getPathSet(path);
var _local4 = _local5[0];
var _local6 = _local4.__get__nodeName();
var _local1 = null;
if ((_local6 != undefined) && ((_local6 == "*") || (node.nodeName == _local6))) {
if (_local4.filter.length > 0) {
_local1 = new mx.xpath.FilterStack(_local4.__get__filter());
_local2 = filterNodes(_local2, _local1);
}
if (_local2.length > 0) {
var _local3 = 1;
while (_local3 < _local5.length) {
_local4 = _local5[_local3];
_local2 = getAllChildNodesByName(_local2, _local4.__get__nodeName());
if (_local4.filter.length > 0) {
_local1 = new mx.xpath.FilterStack(_local4.__get__filter());
} else {
_local1 = null;
}
if ((_local1 != null) && (_local1.exprs.length > 0)) {
_local2 = filterNodes(_local2, _local1);
}
_local3++;
}
}
} else {
_local2 = new Array();
}
return(_local2);
}
static function selectSingleNode(node, path) {
var _local1 = selectNodeList(node, path);
if (_local1.length > 0) {
return(_local1[0]);
}
return(null);
}
static function setNodeValue(node, path, newValue) {
var _local1 = new Array(node);
var _local9 = getPathSet(path);
var _local7 = _local9[_local9.length - 1].nodeName;
if (_local7.charAt(0) == "@") {
_local7 = _local7.substring(1, _local7.length);
_local9.pop();
} else {
_local7 = null;
}
var _local5 = _local9[0];
var _local11 = _local5.__get__nodeName();
var _local3 = null;
if ((_local11 != undefined) && ((_local11 == "*") || (node.nodeName == _local11))) {
if (_local5.filter.length > 0) {
_local3 = new mx.xpath.FilterStack(_local5.__get__filter());
_local1 = filterNodes(_local1, _local3);
}
if (_local1.length > 0) {
var _local2 = 1;
while (_local2 < _local9.length) {
_local5 = _local9[_local2];
_local1 = getAllChildNodesByName(_local1, _local5.__get__nodeName());
if (_local5.filter.length > 0) {
_local3 = new mx.xpath.FilterStack(_local5.__get__filter());
} else {
_local3 = null;
}
if ((_local3 != null) && (_local3.exprs.length > 0)) {
_local1 = filterNodes(_local1, _local3);
}
_local2++;
}
}
} else {
_local1 = new Array();
}
var _local4 = null;
var _local6 = null;
var _local10 = new XML();
var _local2 = 0;
while (_local2 < _local1.length) {
if (_local7 != null) {
_local1[_local2].attributes[_local7] = newValue;
} else {
_local4 = _local1[_local2];
if ((_local4.firstChild == null) || (_local4.firstChild.nodeType != 3)) {
_local6 = _local10.createTextNode(newValue);
_local4.appendChild(_local6);
} else {
_local6 = _local4.firstChild;
_local6.nodeValue = newValue;
}
}
_local2++;
}
return(_local1.length);
}
static function copyStack(toStk, fromStk) {
var _local1 = 0;
while (_local1 < fromStk.length) {
toStk.splice(_local1, 0, fromStk[_local1]);
_local1++;
}
}
static function evalExpr(expr, node) {
var _local2 = true;
if (expr.__get__attr()) {
_local2 = ((expr.__get__value() != null) ? (node.attributes[expr.name] == expr.__get__value()) : (node.attributes[expr.name] != null));
} else {
var _local3 = getChildNodeByName(node, expr.__get__name());
if (_local3 != null) {
_local2 = ((expr.__get__value() != null) ? (_local3.firstChild.nodeValue == expr.__get__value()) : true);
} else {
_local2 = false;
}
}
return(_local2);
}
static function filterNodes(nodeList, stack) {
var _local13 = new Array();
var _local2;
var _local3;
var _local9;
var _local6;
var _local10;
var _local1 = true;
var _local4;
var _local5;
var _local8 = 0;
while (_local8 < nodeList.length) {
_local5 = true;
_local2 = new Array();
_local3 = new Array();
copyStack(_local2, stack.__get__exprs());
copyStack(_local3, stack.__get__ops());
_local4 = nodeList[_local8];
while ((_local2.length > 0) && (_local5)) {
if (typeof(_local2[_local2.length - 1]) == "object") {
_local9 = _local2.pop();
_local1 = evalExpr(_local9, _local4);
} else {
_local10 = Boolean(_local2.pop());
_local1 = _local10;
}
if (_local3.length > 0) {
var _local7 = _local2.pop();
_local6 = _local7;
switch (_local3[_local3.length - 1]) {
case "and" :
_local1 = _local1 && (evalExpr(_local6, _local4));
_local5 = _local1;
break;
case "or" :
_local1 = _local1 || (evalExpr(_local6, _local4));
_local5 = !_local1;
}
_local3.pop();
_local2.push(_local1);
}
}
if (_local1) {
_local13.push(_local4);
}
_local8++;
}
return(_local13);
}
static function getAllChildNodesByName(nodeList, name) {
var _local5 = new Array();
var _local2;
var _local3 = 0;
while (_local3 < nodeList.length) {
_local2 = nodeList[_local3].childNodes;
if (_local2 != null) {
var _local1 = 0;
while (_local1 < _local2.length) {
if ((name == "*") || (_local2[_local1].nodeName == name)) {
_local5.push(_local2[_local1]);
}
_local1++;
}
}
_local3++;
}
return(_local5);
}
static function getChildNodeByName(node, nodeName) {
var _local2;
var _local3 = node.childNodes;
var _local1 = 0;
while (_local1 < _local3.length) {
_local2 = _local3[_local1];
if (_local2.nodeName == nodeName) {
return(_local2);
}
_local1++;
}
return(null);
}
static function getKeyValues(node, keySpec) {
var _local5 = "";
var _local3 = new mx.utils.StringTokenParser(keySpec);
var _local2 = _local3.nextToken();
var _local1;
var _local6;
while (_local2 != mx.utils.StringTokenParser.tkEOF) {
_local1 = _local3.token;
_local5 = _local5 + (" " + _local1);
if (_local2 == mx.utils.StringTokenParser.tkSymbol) {
if (_local1 == "@") {
_local2 = _local3.nextToken();
_local1 = _local3.token;
if (_local2 == mx.utils.StringTokenParser.tkSymbol) {
_local5 = _local5 + (((_local1 + "='") + node.attributes[_local1]) + "'");
}
} else if (_local1 == "/") {
_local2 = _local3.nextToken();
if (_local2 == mx.utils.StringTokenParser.tkSymbol) {
_local1 = _local3.token;
node = getChildNodeByName(node, _local1);
if (node != null) {
_local5 = _local5 + _local1;
}
}
} else if ((((_local1 != "and") && (_local1 != "or")) && (_local1 != "[")) && (_local1 != "]")) {
_local6 = getChildNodeByName(node, _local1);
if (_local6 != null) {
_local5 = _local5 + (("='" + _local6.firstChild.nodeValue) + "'");
}
}
}
if (node == null) {
trace(("Invalid keySpec specified. '" + keySpec) + "' Error.");
return("ERR");
}
_local2 = _local3.nextToken();
}
return(_local5.slice(1));
}
static function getPath(node, keySpecs) {
var _local2 = "";
var _local5 = keySpecs[node.nodeName];
if (_local5 == undefined) {
var _local8 = "";
var _local10;
for (_local10 in node.attributes) {
_local8 = _local8 + (((("@" + _local10) + "='") + node.attributes[_local10]) + "' and ");
}
var _local7 = "";
var _local1;
var _local6;
var _local4 = 0;
while (_local4 < node.childNodes.length) {
_local1 = node.childNodes[_local4];
_local6 = _local1.firstChild.nodeValue;
if (_local6 != undefined) {
_local7 = _local7 + (((_local1.nodeName + "='") + _local6) + "' and ");
}
_local4++;
}
if (_local8.length > 0) {
if (_local7.length > 0) {
_local2 = (((("/" + node.nodeName) + "[") + _local8) + _local7.substring(0, _local7.length - 4)) + "]";
} else {
_local2 = ((("/" + node.nodeName) + "[") + _local8.substring(0, _local8.length - 4)) + "]";
}
} else {
_local2 = ((("/" + node.nodeName) + "[") + _local7.substring(0, _local7.length - 4)) + "]";
}
} else {
_local2 = _local2 + (("/" + node.nodeName) + getKeyValues(node, _local5));
}
var _local1 = node.parentNode;
while (_local1.parentNode != null) {
_local5 = keySpecs[_local1.nodeName];
if (_local5 != undefined) {
_local2 = (("/" + _local1.nodeName) + getKeyValues(_local1, _local5)) + _local2;
} else {
_local2 = ("/" + _local1.nodeName) + _local2;
}
_local1 = _local1.parentNode;
}
return(_local2);
}
static function getPathSet(path) {
var _local6 = new Array();
var _local4;
var _local1;
var _local2;
var _local5;
while (path.length > 0) {
_local4 = path.lastIndexOf("/");
_local1 = path.substring(_local4 + 1);
_local2 = _local1.indexOf("[", 0);
_local5 = ((_local2 >= 0) ? (_local1.substring(_local2 + 1, _local1.length - 1)) : "");
_local1 = ((_local2 >= 0) ? (_local1.substring(0, _local2)) : (_local1));
_local6.splice(0, 0, new mx.xpath.NodePathInfo(_local1, _local5));
path = path.substring(0, _local4);
}
return(_local6);
}
}
Symbol 17 MovieClip [__Packages.mx.data.binding.FieldAccessor] Frame 0
class mx.data.binding.FieldAccessor
{
var component, property, parentObj, fieldName, m_location, type, index, xpath;
function FieldAccessor (component, property, parentObj, fieldName, type, index, parentField) {
this.component = component;
this.property = property;
this.parentObj = parentObj;
this.fieldName = fieldName;
if (component == parentObj) {
m_location = undefined;
} else if (parentField.m_location == undefined) {
m_location = fieldName;
} else {
m_location = (parentField.m_location + ".") + fieldName;
}
this.type = type;
this.index = index;
}
function getValue() {
var _local2 = getFieldData();
if ((_local2 == null) && (type.value != undefined)) {
var _local3 = new mx.data.binding.TypedValue(type.value, "String");
_local3.getDefault = true;
component.getField(fieldName).setAnyTypedValue(_local3);
_local2 = _local3.value;
}
if ((isXML(_local2) && (_local2.childNodes.length == 1)) && (_local2.firstChild.nodeType == 3)) {
return(_local2.firstChild.nodeValue);
}
return(_local2);
}
function setValue(newValue, newTypedValue) {
if (newTypedValue.getDefault) {
newTypedValue.value = newValue;
} else {
if (xpath != null) {
var _local5 = getFieldData();
if (_local5 != null) {
setXMLData(_local5, newValue);
} else {
_global.__dataLogger.logData(component, "Can't assign to '<property>:<xpath>' because there is no element at the given path", this);
}
} else if (isXML(parentObj)) {
if (type.category == "attribute") {
parentObj.attributes[fieldName] = newValue;
} else if (type.category == "array") {
} else {
var _local5 = getOrCreateFieldData();
setXMLData(_local5, newValue);
}
} else {
if (parentObj == null) {
_global.__dataLogger.logData(component, "Can't set field '<property>/<location>' because the field doesn't exist", this);
}
parentObj[fieldName] = newValue;
}
component.propertyModified(property, (xpath == null) && (parentObj == component), newTypedValue.type);
}
}
static function isActionScriptPath(str) {
var _local2 = str.toLowerCase();
var _local3 = "0123456789abcdefghijklmnopqrstuvwxyz_.";
var _local1 = 0;
while (_local1 < _local2.length) {
if (-1 == _local3.indexOf(_local2.charAt(_local1))) {
return(false);
}
_local1++;
}
return(true);
}
static function createFieldAccessor(component, property, location, type, mustExist) {
if (mustExist && (component[property] == null)) {
_global.__dataLogger.logData(component, "Warning: property '<property>' does not exist", {property:property});
return(null);
}
var _local5 = new mx.data.binding.FieldAccessor(component, property, component, property, type, null, null);
if (location == null) {
return(_local5);
}
var _local7 = null;
if (location.indices != null) {
_local7 = location.indices;
location = location.path;
}
if (typeof(location) == "string") {
if (_local7 != null) {
_global.__dataLogger.logData(component, "Warning: ignoring index values for property '<property>', path '<location>'", {property:property, location:location});
}
if (isActionScriptPath(String(location))) {
location = location.split(".");
} else {
_local5.xpath = location;
return(_local5);
}
}
if (location instanceof Array) {
var _local3;
var _local11 = 0;
_local3 = 0;
while (_local3 < location.length) {
var _local2 = null;
var _local4 = location[_local3];
if (_local4 == "[n]") {
if (_local7 == null) {
_global.__dataLogger.logData(component, "Error: indices for <property>:<location> are null, but [n] appears in the location.", {property:property, location:location});
return(null);
}
_local2 = _local7[_local11++];
if (_local2 == null) {
_global.__dataLogger.logData(component, "Error: not enough index values for <property>:<location>", {property:property, location:location});
return(null);
}
}
_local5 = _local5.getChild(_local4, _local2, mustExist);
_local3++;
}
if (mustExist && (_local5.getValue() == null)) {
_global.__dataLogger.logData(component, "Warning: field <property>:<m_location> does not exist, or is null", _local5);
}
return(_local5);
}
trace("unrecognized location: " + mx.data.binding.ObjectDumper.toString(location));
return(null);
}
function getFieldAccessor() {
return(this);
}
function getChild(childName, index, mustExist) {
if (childName == ".") {
return(this);
}
var _local2 = getOrCreateFieldData(mustExist);
if (_local2 == null) {
return(null);
}
var _local4 = findElementType(type, childName);
return(new mx.data.binding.FieldAccessor(component, property, _local2, childName, _local4, index, this));
}
function getOrCreateFieldData(mustExist) {
var _local3 = getFieldData();
if (_local3 == null) {
if (mustExist) {
_global.__dataLogger.logData(component, "Warning: field <property>:<m_location> does not exist", this);
} else {
setupComplexField();
_local3 = getFieldData();
}
}
return(_local3);
}
function evaluateSubPath(obj, type) {
var path = type.path;
if (isActionScriptPath(path)) {
var tokens = path.split(".");
var i = 0;
while (i < tokens.length) {
var token = tokens[i];
if (isXML(obj)) {
obj = obj.firstChild;
while (obj != null) {
if (toLocalName(obj.nodeName) == token) {
break;
}
obj = obj.nextSibling;
}
} else {
obj = obj[token];
}
if (obj == null) {
_global.__dataLogger.logData(component, "Warning: path '<path>' evaluates to null, at '<token>' in <t.property>:<t.m_location>", {path:path, token:token, t:this});
break;
}
i++;
}
} else if (isXML(obj)) {
if (path.charAt(0) != "/") {
path = "/" + path;
}
if (obj.nodeName == null) {
obj = obj.firstChild;
} else {
path = toLocalName(obj.nodeName) + path;
}
var category = ((type.category != null) ? (type.category) : (((type.elements.length > 0) ? "complex" : "simple")));
if ((category == "simple") || (category == "attribute")) {
obj = eval ("obj" + mx.xpath.XPathAPI.getEvalString(obj, path));
} else if (category == "complex") {
obj = mx.xpath.XPathAPI.selectSingleNode(obj, path);
} else if (category == "array") {
obj = mx.xpath.XPathAPI.selectNodeList(obj, path);
}
} else {
_global.__dataLogger.logData(component, "Error: path '<path>' is an XPath. It cannot be applied to non-XML data <t.property>:<t.m_location>", {path:path, t:this});
}
return(obj);
}
function getFieldData() {
if (xpath != null) {
var _local4 = parentObj[fieldName].firstChild;
while ((_local4 != null) && (_local4.nodeType != 1)) {
_local4 = _local4.nextSibling;
}
var _local10 = mx.xpath.XPathAPI.selectSingleNode(_local4, xpath);
return(_local10);
}
if (isXML(parentObj)) {
if (type.path != null) {
return(evaluateSubPath(parentObj, type));
}
if (type.category == "attribute") {
var _local5 = parentObj.attributes;
for (var _local8 in _local5) {
if (toLocalName(_local8) == fieldName) {
return(_local5[_local8]);
}
}
return(undefined);
}
var _local3 = parentObj.firstChild;
if (type.category == "array") {
var _local6 = new Array();
while (_local3 != null) {
if (toLocalName(_local3.nodeName) == fieldName) {
_local6.push(_local3);
}
_local3 = _local3.nextSibling;
}
return(_local6);
}
while (_local3 != null) {
if (toLocalName(_local3.nodeName) == fieldName) {
return(_local3);
}
_local3 = _local3.nextSibling;
}
return(null);
}
if (fieldName == "[n]") {
var _local7;
if (index.component != null) {
var _local9 = index.component.getField(index.property, index.location);
_local7 = _local9.getAnyTypedValue(["Number"]);
_local7 = _local7.value;
} else {
_local7 = index.constant;
}
var _local11 = Number(_local7);
if (typeof(_local7) == "undefined") {
_global.__dataLogger.logData(component, "Error: index specification '<index>' was not supplied, or incorrect, for <t.property>:<t.m_location>", {index:_local11, t:this});
return(null);
}
if (_local11.toString() == "NaN") {
_global.__dataLogger.logData(component, "Error: index value '<index>' for <t.property>:<t.m_location> is not a number", {index:_local11, t:this});
return(null);
}
if (!(parentObj instanceof Array)) {
_global.__dataLogger.logData(component, "Error: indexed field <property>:<m_location> is not an array", this);
return(null);
}
if ((_local11 < 0) || (_local11 >= parentObj.length)) {
_global.__dataLogger.logData(component, "Error: index '<index>' for <t.property>:<t.m_location> is out of bounds", {index:_local11, t:this});
return(null);
}
_global.__dataLogger.logData(component, "Accessing item [<index>] of <t.property>:<t.m_location>", {index:_local11, t:this});
return(parentObj[_local11]);
}
if (type.path != null) {
return(evaluateSubPath(parentObj, type));
}
return(parentObj[fieldName]);
}
static function setXMLData(obj, newValue) {
while (obj.hasChildNodes()) {
obj.firstChild.removeNode();
}
var _local2 = xmlNodeFactory.createTextNode(newValue);
obj.appendChild(_local2);
}
function setupComplexField() {
var _local2;
if (isXML(parentObj)) {
_local2 = xmlNodeFactory.createElement(fieldName);
parentObj.appendChild(_local2);
} else if (dataIsXML()) {
parentObj[fieldName] = new XML();
} else {
parentObj[fieldName] = new Object();
}
}
static function findElementType(type, name) {
var _local1 = 0;
while (_local1 < type.elements.length) {
if (type.elements[_local1].name == name) {
return(type.elements[_local1].type);
}
_local1++;
}
return(null);
}
function isXML(obj) {
return(obj instanceof XMLNode);
}
function dataIsXML() {
return(type.name == "XML");
}
static function accessField(component, fieldName, desiredTypes) {
var _local1;
_local1 = desiredTypes[fieldName];
if (_local1 == null) {
_local1 = desiredTypes.dflt;
}
if (_local1 == null) {
_local1 = desiredTypes;
}
var _local4 = component.createField("data", [fieldName]);
var _local2 = _local4.getAnyTypedValue([_local1]);
return(_local2.value);
}
static function ExpandRecord(obj, objectType, desiredTypes) {
var _local4 = new Object();
mx.data.binding.ComponentMixins.initComponent(_local4);
_local4.data = obj;
_local4.__schema = {elements:[{name:"data", type:objectType}]};
var _local2 = new Object();
if (objectType.elements.length > 0) {
var _local3 = 0;
while (_local3 < objectType.elements.length) {
var _local10 = objectType.elements[_local3].name;
_local2[_local10] = accessField(_local4, _local10, desiredTypes);
_local3++;
}
} else if ((obj instanceof XML) || (obj instanceof XMLNode)) {
if ((obj.childNodes.length == 1) && (obj.firstChild.nodeType == 3)) {
return(obj.firstChild.nodeValue);
}
var _local5 = obj.lastChild;
while (_local5 != null) {
var _local10 = toLocalName(_local5.nodeName);
if ((_local10 != null) && (_local2[_local10] == null)) {
_local2[_local10] = accessField(_local4, _local10, desiredTypes);
}
_local5 = _local5.previousSibling;
}
for (var _local10 in obj.attributes) {
if (_local2[_local10] != null) {
_global.__dataLogger.logData(null, "Warning: attribute '<name>' has same name as an element, in XML object <obj>", {name:_local10, obj:obj});
}
_local2[_local10] = accessField(_local4, _local10, desiredTypes);
}
} else {
if (typeof(obj) != "object") {
return(obj);
}
for (var _local10 in obj) {
_local2[_local10] = accessField(_local4, _local10, desiredTypes);
}
}
return(_local2);
}
static function wrapArray(theArray, itemType, desiredTypes) {
var _local4 = {getItemAt:function (index) {
if ((index < 0) || (index >= this.data.length)) {
return(undefined);
}
var _local2 = this.data[index];
if (_local2 == undefined) {
return(undefined);
}
var _local3 = mx.data.binding.FieldAccessor.ExpandRecord(_local2, this.type, desiredTypes);
return(_local3);
}, getItemID:function (index) {
return(index);
}, data:theArray, type:itemType, length:theArray.length};
return(_local4);
}
static function toLocalName(nodeName) {
var _local1 = nodeName.split(":");
var _local2 = _local1[_local1.length - 1];
return(_local2);
}
static var xmlNodeFactory = new XML();
}
Symbol 18 MovieClip [__Packages.mx.data.kinds.Data] Frame 0
class mx.data.kinds.Data extends mx.data.binding.DataAccessor
{
var component, property, location;
function Data () {
super();
}
function getTypedValue(requestedType) {
var _local5;
var _local2 = getFieldAccessor().getValue();
var _local3 = null;
if (_local2 != null) {
if (_local2 instanceof Array) {
_local3 = "Array";
} else if ((_local2 instanceof XMLNode) || (_local2 instanceof XMLNode)) {
_local3 = "XML";
} else {
var _local4 = typeof(_local2);
_local3 = _local4.charAt(0).toUpperCase() + _local4.slice(1);
}
} else {
_local2 = null;
}
_local5 = new mx.data.binding.TypedValue(_local2, _local3, null);
return(_local5);
}
function getGettableTypes() {
return(null);
}
function setTypedValue(newValue) {
getFieldAccessor().setValue(newValue.value, newValue);
return(null);
}
function getSettableTypes() {
return(null);
}
function getFieldAccessor() {
return(component.createFieldAccessor(property, location, false));
}
}
Symbol 19 MovieClip [__Packages.mx.data.binding.Formatter] Frame 0
class mx.data.binding.Formatter extends mx.data.binding.DataAccessor
{
function Formatter () {
super();
}
}
Symbol 20 MovieClip [__Packages.mx.data.binding.DataType] Frame 0
class mx.data.binding.DataType extends mx.data.binding.DataAccessor
{
var errorArray, type, kind, dataAccessor, encoder, formatter, getAnyTypedValue, setAnyTypedValue, component, location, property;
function DataType () {
super();
errorArray = null;
}
function setupDataAccessor(component, property, location) {
super.setupDataAccessor(component, property, location);
type = component.findSchema(property, location);
if (type.kind != undefined) {
kind = mx.data.binding.Binding.getRuntimeObject(type.kind);
} else {
kind = new mx.data.kinds.Data();
}
kind.setupDataAccessor(component, property, location);
dataAccessor = kind;
if (type.encoder != undefined) {
encoder = mx.data.binding.Binding.getRuntimeObject(type.encoder);
encoder.setupDataAccessor(component, property, location);
encoder.dataAccessor = dataAccessor;
dataAccessor = encoder;
}
if (type.formatter != undefined) {
formatter = mx.data.binding.Binding.getRuntimeObject(type.formatter);
formatter.setupDataAccessor(component, property, location);
formatter.dataAccessor = dataAccessor;
}
}
function getAsBoolean() {
var _local2 = getAnyTypedValue(["Boolean"]);
return(_local2.value);
}
function getAsNumber() {
var _local2 = getAnyTypedValue(["Number"]);
return(_local2.value);
}
function getAsString() {
var _local2 = getAnyTypedValue(["String"]);
return(_local2.value);
}
function setAsBoolean(newValue) {
setAnyTypedValue(new mx.data.binding.TypedValue(newValue, "Boolean"));
}
function setAsNumber(newValue) {
setAnyTypedValue(new mx.data.binding.TypedValue(newValue, "Number"));
}
function setAsString(newValue) {
setAnyTypedValue(new mx.data.binding.TypedValue(newValue, "String"));
}
function validationError(errorMessage) {
if (errorArray == null) {
errorArray = new Array();
}
errorArray.push(errorMessage);
}
function validate(value) {
}
function getTypedValue(requestedType) {
var _local2;
if ((requestedType == "String") && (formatter != null)) {
_local2 = formatter.getTypedValue(requestedType);
} else {
_local2 = dataAccessor.getTypedValue(requestedType);
if (_local2.type == null) {
_local2.type = type;
}
if (_local2.typeName == null) {
_local2.typeName = type.name;
}
}
if ((_local2.typeName != requestedType) && (requestedType != null)) {
_local2 = null;
}
return(_local2);
}
function getGettableTypes() {
var _local2 = new Array();
var _local3 = gettableTypes();
if (_local3 != null) {
_local2 = _local2.concat(_local3);
}
if (type.name != null) {
_local2 = _local2.concat(type.name);
}
if (formatter != null) {
_local2 = _local2.concat(formatter.getGettableTypes());
}
if (_local2.length == 0) {
return(null);
}
return(_local2);
}
function setTypedValue(newValue) {
if ((newValue.typeName == "String") && (formatter != null)) {
return(formatter.setTypedValue(newValue));
}
var _local3 = dataAccessor.getSettableTypes();
if ((_local3 == null) || (-1 != mx.data.binding.DataAccessor.findString(newValue.typeName, _local3))) {
return(dataAccessor.setTypedValue(newValue));
}
return(["Can't set a value of type " + newValue.typeName]);
}
function getSettableTypes() {
var _local2 = new Array();
var _local3 = settableTypes();
if (_local3 != null) {
_local2 = _local2.concat(_local3);
}
if (type.name != null) {
_local2 = _local2.concat(type.name);
}
if (formatter != null) {
_local2 = _local2.concat(formatter.getSettableTypes());
}
if (_local2.length == 0) {
return(null);
}
return(_local2);
}
function gettableTypes() {
return(dataAccessor.getGettableTypes());
}
function settableTypes() {
return(dataAccessor.getSettableTypes());
}
function validateAndNotify(returnData, noEvent, initialMessages) {
var _local4 = false;
errorArray = null;
for (var _local6 in initialMessages) {
validationError(initialMessages[_local6]);
_local4 = true;
}
var _local7 = getTypedValue();
if ((_local7.value == null) || (_local7.value == "")) {
if (type.required == false) {
_global.__dataLogger.logData(component, "Validation of null value succeeded because field '<property>/<m_location>' is not required", this);
} else {
var _local8 = ((location == null) ? "" : (":" + String(location)));
validationError((("Required item '" + property) + _local8) + "' is missing");
_local4 = true;
}
} else {
validate(_local7.value);
_local4 = true;
}
if (_local4 && (noEvent != true)) {
var _local5 = new Object();
_local5.type = ((errorArray == null) ? "valid" : "invalid");
_local5.property = property;
_local5.location = location;
_local5.messages = errorArray;
component.dispatchEvent(_local5);
returnData.event = _local5;
}
return(errorArray);
}
}
Symbol 21 MovieClip [__Packages.mx.data.binding.EndPoint] Frame 0
class mx.data.binding.EndPoint
{
function EndPoint () {
}
}
Symbol 22 MovieClip [__Packages.mx.data.binding.Log] Frame 0
class mx.data.binding.Log
{
var level, name;
function Log (logLevel, logName) {
level = ((logLevel == undefined) ? (BRIEF) : (logLevel));
name = ((name == undefined) ? "" : (name));
}
function logInfo(msg, level) {
if (level == undefined) {
level = BRIEF;
}
onLog((((getDateString() + " ") + name) + ": ") + mx.data.binding.ObjectDumper.toString(msg));
}
function logData(target, message, info, level) {
if (level == undefined) {
level = VERBOSE;
}
var _local6 = ((name.length > 0) ? ((" " + name) + ": ") : " ");
var _local4 = ((target == null) ? "" : (target + ": "));
if (_local4.indexOf("_level0.") == 0) {
_local4 = _local4.substr(8);
}
var _local3 = ((getDateString() + _local6) + _local4) + substituteIntoString(message, info, 50);
if (showDetails && (info != null)) {
_local3 = _local3 + ("\n " + mx.data.binding.ObjectDumper.toString(info));
} else {
var _local2 = 0;
while (_local2 < nestLevel) {
_local3 = " " + _local3;
_local2++;
}
}
onLog(_local3);
}
function onLog(message) {
trace(message);
}
function getDateString() {
var _local1 = new Date();
return(((((((((_local1.getMonth() + 1) + "/") + _local1.getDate()) + " ") + _local1.getHours()) + ":") + _local1.getMinutes()) + ":") + _local1.getSeconds());
}
static function substituteIntoString(message, info, maxlen, rawDataType) {
var _local9 = "";
if (info == null) {
return(message);
}
var _local11 = message.split("<");
if (_local11 == null) {
return(message);
}
_local9 = _local9 + _local11[0];
var _local7 = 1;
while (_local7 < _local11.length) {
var _local8 = _local11[_local7].split(">");
var _local5 = _local8[0].split(".");
var _local1 = info;
var _local4 = rawDataType;
var _local3 = 0;
while (_local3 < _local5.length) {
var _local2 = _local5[_local3];
if (_local2 != "") {
_local4 = mx.data.binding.FieldAccessor.findElementType(_local4, _local2);
var _local6 = new mx.data.binding.FieldAccessor(null, null, _local1, _local2, _local4, null, null);
_local1 = _local6.getValue();
}
_local3++;
}
if (typeof(_local1) != "string") {
_local1 = mx.data.binding.ObjectDumper.toString(_local1);
}
if (_local1.indexOf("_level0.") == 0) {
_local1 = _local1.substr(8);
}
if ((maxlen != null) && (_local1.length > maxlen)) {
_local1 = _local1.substr(0, maxlen) + "...";
}
_local9 = _local9 + _local1;
_local9 = _local9 + _local8[1];
_local7++;
}
var _local14 = _local9.split(">");
_local9 = _local14.join(">");
_local14 = _local9.split("<");
_local9 = _local14.join("<");
return(_local9);
}
static var NONE = -1;
static var BRIEF = 0;
static var VERBOSE = 1;
static var DEBUG = 2;
static var INFO = 2;
static var WARNING = 1;
static var ERROR = 0;
var showDetails = false;
var nestLevel = 0;
}
Symbol 23 MovieClip [__Packages.mx.utils.ClassFinder] Frame 0
class mx.utils.ClassFinder
{
function ClassFinder () {
}
static function findClass(fullClassName) {
if (fullClassName == null) {
return(null);
}
var _local3 = _global;
var _local4 = fullClassName.split(".");
var _local2 = 0;
while (_local2 < _local4.length) {
_local3 = _local3[_local4[_local2]];
_local2++;
}
if (_local3 == null) {
_global.__dataLogger.logData(null, "Could not find class '<classname>'", {classname:fullClassName}, mx.data.binding.Log.BRIEF);
}
return(_local3);
}
}
Symbol 24 MovieClip [__Packages.mx.data.binding.CustomFormatter] Frame 0
class mx.data.binding.CustomFormatter
{
function CustomFormatter () {
}
function format(rawValue) {
}
function unformat(formattedValue) {
}
}
Symbol 25 MovieClip [__Packages.mx.data.binding.CustomValidator] Frame 0
class mx.data.binding.CustomValidator
{
var field;
function CustomValidator () {
}
function validate(value) {
}
function validationError(message) {
field.validationError(message);
}
}
Symbol 26 MovieClip [__Packages.mx.data.binding.DateBase] Frame 0
class mx.data.binding.DateBase extends mx.data.binding.DataAccessor
{
var dataAccessor;
function DateBase () {
super();
}
function internalToExternal(rawValue) {
return(null);
}
function externalToInternal(value) {
return(null);
}
function externalTypeName() {
return(null);
}
function internalTypeName() {
return(null);
}
function getTypedValue(requestedType) {
var _local3;
if ((requestedType == externalTypeName()) || (requestedType == null)) {
var _local4 = dataAccessor.getTypedValue();
var _local2 = internalToExternal(_local4.value);
_local3 = new mx.data.binding.TypedValue(_local2, externalTypeName());
}
return(_local3);
}
function getGettableTypes() {
return([externalTypeName()]);
}
function setTypedValue(newValue) {
if ((newValue.typeName == externalTypeName()) || (newValue.typeName == null)) {
var _local4 = externalToInternal(newValue.value);
var _local3;
if (!_local4) {
_local3 = [mx.data.binding.DataAccessor.conversionFailed(newValue, internalTypeName())];
}
var _local5 = dataAccessor.setTypedValue(new mx.data.binding.TypedValue(_local4, internalTypeName()));
if (_local3) {
return(_local3);
}
return(_local5);
}
return([mx.data.binding.DataAccessor.conversionFailed(newValue, internalTypeName())]);
}
function getSettableTypes() {
return([externalTypeName()]);
}
static function extractTokenDate(value, tokenInfo) {
var _local1 = "";
if (value != null) {
switch (tokenInfo.token) {
case "M" :
var _local5 = value.getMonth() + 1;
if (_local5 < 10) {
_local1 = _local1 + "0";
}
_local1 = _local1 + _local5.toString();
break;
case "Y" :
var _local6 = value.getFullYear().toString();
if ((tokenInfo.end - tokenInfo.begin) < 3) {
_local1 = _local6.substr(2);
} else {
_local1 = _local6;
}
break;
case "D" :
var _local3 = value.getDate();
if (_local3 < 10) {
_local1 = _local1 + "0";
}
_local1 = _local1 + _local3.toString();
break;
case "H" :
var _local8 = value.getHours();
if (_local8 < 10) {
_local1 = _local1 + "0";
}
_local1 = _local1 + _local8.toString();
break;
case "N" :
var _local7 = value.getMinutes();
if (_local7 < 10) {
_local1 = _local1 + "0";
}
_local1 = _local1 + _local7.toString();
break;
case "S" :
var _local4 = value.getSeconds();
if (_local4 < 10) {
_local1 = _local1 + "0";
}
_local1 = _local1 + _local4.toString();
}
}
return(_local1);
}
static function infuseTokenDate(tkData, tk, value) {
if (tkData.length > 0) {
switch (tk.token) {
case "M" :
value.setMonth(Number(tkData) - 1);
break;
case "D" :
value.setDate(Number(tkData));
break;
case "Y" :
value.setYear(Number(tkData));
break;
case "H" :
value.setHours(Number(tkData));
break;
case "N" :
value.setMinutes(Number(tkData));
break;
case "S" :
value.setSeconds(Number(tkData));
}
}
}
}
Symbol 27 MovieClip [__Packages.mx.data.binding.Encoder] Frame 0
class mx.data.binding.Encoder extends mx.data.binding.DataAccessor
{
function Encoder () {
super();
}
}
Symbol 28 MovieClip [__Packages.mx.data.binding.Kind] Frame 0
class mx.data.binding.Kind extends mx.data.binding.DataAccessor
{
function Kind () {
super();
}
}
Symbol 29 MovieClip [__Packages.mx.utils.Iterator] Frame 0
interface mx.utils.Iterator{}
Symbol 30 MovieClip [__Packages.mx.utils.Collection] Frame 0
interface mx.utils.Collection{}
Symbol 31 MovieClip [__Packages.mx.utils.IteratorImpl] Frame 0
class mx.utils.IteratorImpl
{
var _collection, _cursor;
function IteratorImpl (coll) {
_collection = coll;
_cursor = 0;
}
function hasNext() {
return(_cursor < _collection.getLength());
}
function next() {
return(_collection.getItemAt(_cursor++));
}
}
Symbol 32 MovieClip [__Packages.mx.utils.CollectionImpl] Frame 0
class mx.utils.CollectionImpl extends Object
{
var _items;
function CollectionImpl () {
super();
_items = new Array();
}
function addItem(item) {
var _local2 = false;
if (item != null) {
_items.push(item);
_local2 = true;
}
return(_local2);
}
function clear() {
_items = new Array();
}
function contains(item) {
return(internalGetItem(item) > -1);
}
function getItemAt(index) {
return(_items[index]);
}
function getIterator() {
return(new mx.utils.IteratorImpl(this));
}
function getLength() {
return(_items.length);
}
function isEmpty() {
return(_items.length == 0);
}
function removeItem(item) {
var _local2 = false;
var _local3 = internalGetItem(item);
if (_local3 > -1) {
_items.splice(_local3, 1);
_local2 = true;
}
return(_local2);
}
function internalGetItem(item) {
var _local3 = -1;
var _local2 = 0;
while (_local2 < _items.length) {
if (_items[_local2] == item) {
_local3 = _local2;
break;
}
_local2++;
}
return(_local3);
}
}
Symbol 33 MovieClip [__Packages.mx.utils.StringFormatter] Frame 0
class mx.utils.StringFormatter
{
var __extractToken, __infuseToken, __tokenInfo, __format;
function StringFormatter (format, tokens, extractTokenFunc, infuseTokenFunc) {
setFormat(format, tokens);
__extractToken = extractTokenFunc;
__infuseToken = infuseTokenFunc;
}
function extractValue(formattedData, result) {
if (result != null) {
var _local3 = null;
var _local2 = 0;
while (_local2 < __tokenInfo.length) {
_local3 = __tokenInfo[_local2];
__infuseToken(formattedData.substring(_local3.begin, _local3.end), _local3, result);
_local2++;
}
}
}
function formatValue(value) {
var _local5 = "";
if (value != null) {
var _local3 = __tokenInfo[0];
_local5 = __format.substring(0, _local3.begin) + __extractToken(value, _local3);
var _local4 = _local3;
var _local2 = 1;
while (_local2 < __tokenInfo.length) {
_local3 = __tokenInfo[_local2];
_local5 = _local5 + (__format.substring(_local4.end, _local3.begin) + __extractToken(value, _local3));
_local4 = _local3;
_local2++;
}
}
return(_local5);
}
function getFormat() {
return(__format);
}
function setFormat(format, tokens) {
function compareValues(a, b) {
if (a.begin < b.begin) {
return(-1);
}
if (a.begin > b.begin) {
return(1);
}
return(0);
}
if (format != __format) {
__format = format;
var _local5 = tokens.split(",");
__tokenInfo = new Array();
var _local4 = 0;
var _local3 = 0;
var _local7 = 0;
var _local2 = 0;
while (_local2 < _local5.length) {
_local4 = format.indexOf(_local5[_local2]);
if ((_local4 >= 0) && (_local4 < format.length)) {
_local3 = format.lastIndexOf(_local5[_local2]);
_local3 = ((_local3 >= 0) ? (_local3 + 1) : (_local4 + 1));
__tokenInfo.splice(_local7, 0, {token:_local5[_local2], begin:_local4, end:_local3});
_local7++;
}
_local2++;
}
__tokenInfo.sort(compareValues);
}
}
}
Symbol 174 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 175 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 176 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 178 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.126";
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 179 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 180 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 181 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 182 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 183 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.126";
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 362 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.126";
var className = "HScrollBar";
var minusMode = "Left";
var plusMode = "Right";
var minMode = "AtLeft";
var maxMode = "AtRight";
}
Symbol 364 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 365 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.126";
var className = "VScrollBar";
var minusMode = "Up";
var plusMode = "Down";
var minMode = "AtTop";
var maxMode = "AtBottom";
}
Symbol 425 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 47 MovieClip [AttackerFocus] Frame 1
#initclip 447
Object.registerClass("AttackerFocus", AttackerFocus);
#endinitclip
Symbol 53 MovieClip Frame 1
this.stop();
this._visible = false;
Symbol 54 MovieClip [GamePause] Frame 1
#initclip 290
Object.registerClass("GamePause", GamePause);
#endinitclip
Symbol 55 MovieClip [AttackerManager] Frame 1
#initclip 291
Object.registerClass("AttackerManager", AttackerManager);
#endinitclip
Symbol 56 MovieClip [BulletManager] Frame 1
#initclip 292
Object.registerClass("BulletManager", BulletManager);
#endinitclip
Symbol 57 MovieClip [CashManager] Frame 1
#initclip 293
Object.registerClass("CashManager", CashManager);
#endinitclip
Symbol 58 MovieClip [ClusterBlast] Frame 1
#initclip 294
Object.registerClass("ClusterBlast", ClusterBlastEngine);
#endinitclip
Symbol 59 MovieClip [ClusterSpark] Frame 1
#initclip 295
Object.registerClass("ClusterSpark", ClusterSparkEngine);
#endinitclip
Symbol 60 MovieClip [FreakoutEngine] Frame 1
#initclip 296
Object.registerClass("FreakoutEngine", FreakoutEngine);
#endinitclip
Symbol 61 MovieClip [GameClock] Frame 1
#initclip 297
Object.registerClass("GameClock", GameClock);
#endinitclip
Symbol 62 MovieClip [GameManager] Frame 1
#initclip 298
Object.registerClass("GameManager", GameManager);
#endinitclip
Symbol 63 MovieClip [GameManagerIntro] Frame 1
#initclip 299
Object.registerClass("GameManagerIntro", GameManagerIntro);
#endinitclip
Symbol 64 MovieClip [GameManagerMapping] Frame 1
#initclip 300
Object.registerClass("GameManagerMapping", GameManagerMapping);
#endinitclip
Symbol 65 MovieClip [GameManagerTutorial] Frame 1
#initclip 301
Object.registerClass("GameManagerTutorial", GameManagerTutorial);
#endinitclip
Symbol 66 MovieClip [KeyboardManager] Frame 1
#initclip 302
Object.registerClass("KeyboardManager", KeyboardManager);
#endinitclip
Symbol 67 MovieClip [KeyboardManagerMapping] Frame 1
#initclip 303
Object.registerClass("KeyboardManagerMapping", KeyboardManagerMapping);
#endinitclip
Symbol 68 MovieClip [OverlayManager] Frame 1
#initclip 304
Object.registerClass("OverlayManager", OverlayManager);
#endinitclip
Symbol 69 MovieClip [RailLaser] Frame 1
#initclip 305
Object.registerClass("RailLaser", RailLaser);
#endinitclip
Symbol 70 MovieClip [RoadManager] Frame 1
#initclip 306
Object.registerClass("RoadManager", RoadManager);
#endinitclip
Symbol 71 MovieClip [SmokeManager] Frame 1
#initclip 307
Object.registerClass("SmokeManager", SmokeManager);
#endinitclip
Symbol 72 MovieClip [TurretManager] Frame 1
#initclip 308
Object.registerClass("TurretManager", TurretManager);
#endinitclip
Symbol 73 MovieClip [VisualEffect] Frame 1
#initclip 309
Object.registerClass("VisualEffect", VisualEffect);
#endinitclip
Symbol 74 MovieClip [WaveManager] Frame 1
#initclip 310
Object.registerClass("WaveManager", WaveManager);
#endinitclip
Symbol 94 MovieClip [CashEarned] Frame 1
this.play();
if (!this.amount) {
this.amount = "0";
}
cash_amount = "$" + this.amount;
Symbol 94 MovieClip [CashEarned] Frame 19
this.stop();
this.removeMovieClip();
Symbol 97 MovieClip [TurretInfoPoint] Frame 1
#initclip 311
Object.registerClass("TurretInfoPoint", turretinfo.TurretInfoPoint);
#endinitclip
Symbol 100 MovieClip [WaveClock] Frame 1
#initclip 312
Object.registerClass("WaveClock", WaveClock);
#endinitclip
Symbol 101 MovieClip [ModAssets] Frame 1
#initclip 313
Object.registerClass("ModAssets", mods.ModAssets);
#endinitclip
Symbol 102 MovieClip [ModItems] Frame 1
#initclip 314
Object.registerClass("ModItems", mods.ModItems);
#endinitclip
Symbol 103 MovieClip [ModValueArray] Frame 1
#initclip 315
Object.registerClass("ModValueArray", mods.ModValueArray);
#endinitclip
Symbol 109 MovieClip [gvCheckbox] Frame 1
#initclip 316
Object.registerClass("gvCheckbox", gv.gvCheckbox);
#endinitclip
Symbol 110 MovieClip [ModValueBoolean] Frame 1
#initclip 317
Object.registerClass("ModValueBoolean", mods.ModValueBoolean);
#endinitclip
Symbol 118 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 120 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 123 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 125 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 128 MovieClip [Defaults] Frame 1
#initclip 253
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 129 MovieClip [UIObjectExtensions] Frame 1
#initclip 254
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 130 MovieClip [UIObject] Frame 1
#initclip 255
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 133 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 134 MovieClip Frame 1
#initclip 256
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 135 MovieClip [FocusRect] Frame 1
#initclip 257
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 136 MovieClip [FocusManager] Frame 1
#initclip 258
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 137 MovieClip [UIComponentExtensions] Frame 1
#initclip 259
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 138 MovieClip [UIComponent] Frame 1
#initclip 260
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 139 MovieClip [SimpleButton] Frame 1
#initclip 261
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 142 MovieClip [Border] Frame 1
#initclip 262
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 143 MovieClip [RectBorder] Frame 1
#initclip 263
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 144 MovieClip [TextInput] Frame 1
#initclip 264
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 151 MovieClip [StepThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 163 MovieClip [NumericStepper] Frame 1
#initclip 265
Object.registerClass("NumericStepper", mx.controls.NumericStepper);
#endinitclip
stop();
Instance of Symbol 139 MovieClip [SimpleButton] in Symbol 163 MovieClip [NumericStepper] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 144 MovieClip [TextInput] in Symbol 163 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;
}
Symbol 184 MovieClip [ModValueNumber] Frame 1
#initclip 318
Object.registerClass("ModValueNumber", mods.ModValueNumber);
#endinitclip
Instance of Symbol 163 MovieClip [NumericStepper] "theStepper" in Symbol 184 MovieClip [ModValueNumber] Frame 1
//component parameters
onClipEvent (construct) {
maximum = 10;
minimum = 0;
stepSize = 1;
value = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 185 MovieClip [ModValues] Frame 1
#initclip 319
Object.registerClass("ModValues", mods.ModValues);
#endinitclip
Symbol 187 MovieClip [ModListItem] Frame 1
#initclip 320
Object.registerClass("ModListItem", mods.ModListItem);
#endinitclip
Symbol 190 MovieClip [ModAssetDesc] Frame 1
#initclip 321
Object.registerClass("ModAssetDesc", mods.ModAssetDesc);
#endinitclip
Symbol 192 MovieClip [ModValueInteger] Frame 1
#initclip 322
Object.registerClass("ModValueInteger", mods.ModValueInteger);
#endinitclip
Instance of Symbol 144 MovieClip [TextInput] "theNumber" in Symbol 192 MovieClip [ModValueInteger] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "88888888";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 193 MovieClip [ModValueArrayIndexed] Frame 1
#initclip 323
Object.registerClass("ModValueArrayIndexed", mods.ModValueArrayIndexed);
#endinitclip
Symbol 197 MovieClip [IconArrowUp] Frame 1
#initclip 324
Object.registerClass("IconArrowUp", IconArrow);
#endinitclip
Symbol 199 MovieClip [IconX] Frame 1
#initclip 325
Object.registerClass("IconX", IconArrow);
#endinitclip
Symbol 202 MovieClip [ModValueArrayIndexedItem] Frame 1
#initclip 326
Object.registerClass("ModValueArrayIndexedItem", mods.ModValueArrayIndexedItem);
#endinitclip
Instance of Symbol 163 MovieClip [NumericStepper] "theStepperVal" in Symbol 202 MovieClip [ModValueArrayIndexedItem] Frame 1
//component parameters
onClipEvent (construct) {
maximum = 10;
minimum = 0;
stepSize = 1;
value = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 163 MovieClip [NumericStepper] "theStepperKey" in Symbol 202 MovieClip [ModValueArrayIndexedItem] Frame 1
//component parameters
onClipEvent (construct) {
maximum = 10;
minimum = 0;
stepSize = 1;
value = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 204 MovieClip [ModValueString] Frame 1
#initclip 327
Object.registerClass("ModValueString", mods.ModValueString);
#endinitclip
Instance of Symbol 144 MovieClip [TextInput] "theString" in Symbol 204 MovieClip [ModValueString] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "88888888";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 207 MovieClip [MiniMap] Frame 1
#initclip 328
Object.registerClass("MiniMap", MiniMap);
#endinitclip
Symbol 209 MovieClip [WeaponRack] Frame 1
#initclip 329
Object.registerClass("WeaponRack", WeaponRack);
#endinitclip
Symbol 217 MovieClip [WeaponRackItem] Frame 1
#initclip 330
Object.registerClass("WeaponRackItem", WeaponRackItem);
#endinitclip
Symbol 224 MovieClip [CannotAfford] Frame 1
this.play();
Symbol 224 MovieClip [CannotAfford] Frame 10
this.gotoAndPlay("Start");
Symbol 226 MovieClip [CannotBuild] Frame 1
this.play();
Symbol 226 MovieClip [CannotBuild] Frame 10
this.gotoAndPlay("Start");
Symbol 229 MovieClip [MoveShape] Frame 1
#initclip 331
Object.registerClass("MoveShape", MoveShape);
#endinitclip
Symbol 232 MovieClip [BuildShape] Frame 1
#initclip 332
Object.registerClass("BuildShape", BuildShape);
#endinitclip
Symbol 236 MovieClip [SpecialFire] Frame 1
this.play();
Symbol 236 MovieClip [SpecialFire] Frame 14
this.stop();
this.removeMovieClip();
Symbol 239 MovieClip [SpecialTake] Frame 1
this.play();
Symbol 239 MovieClip [SpecialTake] Frame 14
this.stop();
this.removeMovieClip();
Symbol 242 MovieClip [TargetMode] Frame 1
#initclip 333
Object.registerClass("TargetMode", TargetMode);
#endinitclip
Symbol 247 MovieClip [TurretFreakWarning] Frame 1
this.play();
Symbol 247 MovieClip [TurretFreakWarning] Frame 20
this.gotoAndPlay("Start");
Symbol 261 MovieClip [BarrattBrass] Frame 1
#initclip 334
Object.registerClass("BarrattBrass", BarrattBrass);
#endinitclip
Symbol 265 MovieClip [Waypoint] Frame 1
Symbol 275 MovieClip Frame 1
this.stop();
this.killed = function () {
this.gotoAndStop("Dead");
};
this.alive = function () {
this.gotoAndStop("Alive");
};
this.stop();
Symbol 275 MovieClip Frame 6
this.stop();
Symbol 276 MovieClip [PlayerBase] Frame 1
#initclip 335
Object.registerClass("PlayerBase", PlayerBase);
#endinitclip
Symbol 281 MovieClip [BuildWaypoint] Frame 1
#initclip 336
Object.registerClass("BuildWaypoint", BuildWaypoint);
#endinitclip
Symbol 288 MovieClip [RocketTrail] Frame 1
this.play();
Symbol 288 MovieClip [RocketTrail] Frame 31
this.stop();
this.removeMovieClip();
Symbol 290 MovieClip [TutorialShow] Frame 1
#initclip 337
Object.registerClass("TutorialShow", TutorialShow);
#endinitclip
Symbol 295 MovieClip [ButtonSkin] Frame 1
#initclip 266
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 296 MovieClip [Button] Frame 1
#initclip 267
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 139 MovieClip [SimpleButton] in Symbol 296 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 297 MovieClip [CustomBorder] Frame 1
#initclip 268
Object.registerClass("CustomBorder", mx.skins.CustomBorder);
mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder);
#endinitclip
Symbol 307 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 309 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 320 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 322 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 329 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 350 MovieClip [BtnDownArrow] Frame 1
#initclip 269
Object.registerClass("BtnDownArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 351 MovieClip [BtnUpArrow] Frame 1
#initclip 270
Object.registerClass("BtnUpArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 353 MovieClip [HScrollBar] Frame 1
#initclip 271
Object.registerClass("HScrollBar", mx.controls.HScrollBar);
#endinitclip
stop();
Instance of Symbol 296 MovieClip [Button] in Symbol 353 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 139 MovieClip [SimpleButton] in Symbol 353 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 354 MovieClip [VScrollBar] Frame 1
#initclip 272
Object.registerClass("VScrollBar", mx.controls.VScrollBar);
#endinitclip
stop();
Instance of Symbol 296 MovieClip [Button] in Symbol 354 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 139 MovieClip [SimpleButton] in Symbol 354 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 355 MovieClip [View] Frame 1
#initclip 273
Object.registerClass("View", mx.core.View);
#endinitclip
stop();
Symbol 356 MovieClip [ScrollView] Frame 1
#initclip 274
Object.registerClass("ScrollView", mx.core.ScrollView);
#endinitclip
stop();
Instance of Symbol 353 MovieClip [HScrollBar] in Symbol 356 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 354 MovieClip [VScrollBar] in Symbol 356 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 357 MovieClip [ScrollPane] Frame 1
#initclip 275
Object.registerClass("ScrollPane", mx.containers.ScrollPane);
#endinitclip
stop();
Symbol 372 MovieClip [GameSettings] Frame 1
#initclip 338
Object.registerClass("GameSettings", GameSettings);
#endinitclip
Instance of Symbol 357 MovieClip [ScrollPane] "Settings" in Symbol 372 MovieClip [GameSettings] Frame 1
//component parameters
onClipEvent (construct) {
contentPath = "PrefData";
hLineScrollSize = 5;
hPageScrollSize = 20;
hScrollPolicy = "off";
scrollDrag = false;
vLineScrollSize = 5;
vPageScrollSize = 20;
vScrollPolicy = "auto";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 378 MovieClip [CheckThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 389 MovieClip [CheckBoxAssets] Frame 1
#initclip 276
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 390 MovieClip [CheckBox] Frame 1
#initclip 277
Object.registerClass("CheckBox", mx.controls.CheckBox);
#endinitclip
stop();
Instance of Symbol 296 MovieClip [Button] in Symbol 390 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 402 MovieClip [ComboBase] Frame 1
#initclip 278
mx.controls.listclasses.DataSelector.Initialize(Object(mx.controls.ComboBase).prototype);
Object.registerClass("ComboBase", mx.controls.ComboBase);
#endinitclip
stop();
Instance of Symbol 139 MovieClip [SimpleButton] in Symbol 402 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 144 MovieClip [TextInput] in Symbol 402 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 403 MovieClip [DataProvider] Frame 1
#initclip 279
Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider);
#endinitclip
stop();
Symbol 404 MovieClip [DataSelector] Frame 1
#initclip 280
Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector);
#endinitclip
stop();
Symbol 405 MovieClip [SelectableRow] Frame 1
#initclip 281
Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow);
#endinitclip
stop();
Symbol 406 MovieClip [ScrollSelectList] Frame 1
#initclip 282
Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList);
#endinitclip
stop();
Symbol 407 MovieClip [List] Frame 1
#initclip 283
Object.registerClass("List", mx.controls.List);
#endinitclip
stop();
Symbol 413 MovieClip [ComboDownArrowDisabled] Frame 1
#initclip 284
Object.registerClass("ComboDownArrowDisabled", mx.controls.SimpleButton);
#endinitclip
Symbol 415 MovieClip [ComboThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 418 MovieClip [ComboAssets] Frame 1
#initclip 285
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 419 MovieClip [ComboBox] Frame 1
#initclip 286
Object.registerClass("ComboBox", mx.controls.ComboBox);
#endinitclip
stop();
Instance of Symbol 407 MovieClip [List] in Symbol 419 MovieClip [ComboBox] Frame 2
//component parameters
onClipEvent (initialize) {
multipleSelection = false;
rowHeight = 20;
}
Symbol 427 MovieClip [Slider] Frame 1
#initclip 339
Object.registerClass("Slider", Slider);
#endinitclip
Symbol 442 MovieClip [PrefData] Frame 1
#initclip 340
Object.registerClass("PrefData", PrefData);
#endinitclip
Instance of Symbol 163 MovieClip [NumericStepper] "PrefWaveSpace" in Symbol 442 MovieClip [PrefData] Frame 1
//component parameters
onClipEvent (construct) {
maximum = 20;
minimum = 10;
stepSize = 1;
value = 20;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 390 MovieClip [CheckBox] "PrefWaveFollow" in Symbol 442 MovieClip [PrefData] Frame 1
//component parameters
onClipEvent (construct) {
label = "";
labelPlacement = "left";
selected = false;
}
Instance of Symbol 390 MovieClip [CheckBox] "PrefWaveRemember" in Symbol 442 MovieClip [PrefData] Frame 1
//component parameters
onClipEvent (construct) {
label = "";
labelPlacement = "left";
selected = false;
}
Instance of Symbol 144 MovieClip [TextInput] "PrefPlayerName" in Symbol 442 MovieClip [PrefData] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 390 MovieClip [CheckBox] "PrefLeagueSubmit" in Symbol 442 MovieClip [PrefData] Frame 1
//component parameters
onClipEvent (construct) {
label = "";
labelPlacement = "left";
selected = false;
}
Instance of Symbol 144 MovieClip [TextInput] "PrefLeagueID" in Symbol 442 MovieClip [PrefData] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 144 MovieClip [TextInput] "PrefLeaguePass" in Symbol 442 MovieClip [PrefData] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
password = true;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 163 MovieClip [NumericStepper] "PrefSoundPan" in Symbol 442 MovieClip [PrefData] Frame 1
//component parameters
onClipEvent (construct) {
maximum = 2;
minimum = 0;
stepSize = 0.1;
value = 1.6;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 163 MovieClip [NumericStepper] "PrefSoundVolume" in Symbol 442 MovieClip [PrefData] Frame 1
//component parameters
onClipEvent (construct) {
maximum = 99;
minimum = 1;
stepSize = 1;
value = 50;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 390 MovieClip [CheckBox] "PrefSound" in Symbol 442 MovieClip [PrefData] Frame 1
//component parameters
onClipEvent (construct) {
label = "";
labelPlacement = "left";
selected = false;
}
Instance of Symbol 390 MovieClip [CheckBox] "PrefSmoke" in Symbol 442 MovieClip [PrefData] Frame 1
//component parameters
onClipEvent (construct) {
label = "";
labelPlacement = "left";
selected = false;
}
Instance of Symbol 163 MovieClip [NumericStepper] "PrefSmokeMax" in Symbol 442 MovieClip [PrefData] Frame 1
//component parameters
onClipEvent (construct) {
maximum = 500;
minimum = 1;
stepSize = 1;
value = 120;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 419 MovieClip [ComboBox] "PrefQuality" in Symbol 442 MovieClip [PrefData] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
rowCount = 5;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 390 MovieClip [CheckBox] "PrefSoundNextWave" in Symbol 442 MovieClip [PrefData] Frame 1
//component parameters
onClipEvent (construct) {
label = "";
labelPlacement = "left";
selected = false;
}
Instance of Symbol 144 MovieClip [TextInput] "PrefAccountLogin" in Symbol 442 MovieClip [PrefData] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 144 MovieClip [TextInput] "PrefAccountPass" in Symbol 442 MovieClip [PrefData] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
password = true;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 447 MovieClip [MappingClear] Frame 1
#initclip 341
Object.registerClass("MappingClear", mapping.MappingClear);
#endinitclip
Instance of Symbol 296 MovieClip [Button] "ButtonClear" in Symbol 447 MovieClip [MappingClear] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Clear the map";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 450 MovieClip [MappingDelete] Frame 1
#initclip 342
Object.registerClass("MappingDelete", mapping.MappingDelete);
#endinitclip
Instance of Symbol 296 MovieClip [Button] "ButtonDelete" in Symbol 450 MovieClip [MappingDelete] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Delete This Map";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonBack" in Symbol 450 MovieClip [MappingDelete] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Go Back";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 453 MovieClip [MappingLoad] Frame 1
#initclip 343
Object.registerClass("MappingLoad", mapping.MappingLoad);
#endinitclip
Instance of Symbol 296 MovieClip [Button] "ButtonPrev" in Symbol 453 MovieClip [MappingLoad] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Prev";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonNext" in Symbol 453 MovieClip [MappingLoad] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Next";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonLoad" in Symbol 453 MovieClip [MappingLoad] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Load";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonDelete" in Symbol 453 MovieClip [MappingLoad] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Delete";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 460 MovieClip [MapRating] Frame 1
#initclip 344
Object.registerClass("MapRating", MapRating);
#endinitclip
Symbol 473 MovieClip Frame 1
this.play();
Symbol 473 MovieClip Frame 16
this.gotoAndPlay("Start");
Symbol 474 MovieClip [MappingShare] Frame 1
#initclip 345
Object.registerClass("MappingShare", mapping.MappingShare);
#endinitclip
Instance of Symbol 419 MovieClip [ComboBox] "MapList" in Symbol 474 MovieClip [MappingShare] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
rowCount = 10;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonLoad" in Symbol 474 MovieClip [MappingShare] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Load";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 484 MovieClip [RadioThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 488 MovieClip [RadioThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 494 MovieClip [RadioButtonAssets] Frame 1
#initclip 287
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 495 MovieClip [RadioButton] Frame 1
#initclip 288
Object.registerClass("RadioButton", mx.controls.RadioButton);
#endinitclip
stop();
Instance of Symbol 296 MovieClip [Button] "foo" in Symbol 495 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 501 MovieClip [TextArea] Frame 1
#initclip 289
Object.registerClass("TextArea", mx.controls.TextArea);
#endinitclip
stop();
Instance of Symbol 296 MovieClip [Button] "WarnButton" in Symbol 502 MovieClip [MappingSaveWarn] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "Message" in Symbol 502 MovieClip [MappingSaveWarn] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = true;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 503 MovieClip [MappingSave] Frame 1
#initclip 346
Object.registerClass("MappingSave", mapping.MappingSave);
#endinitclip
Instance of Symbol 390 MovieClip [CheckBox] "SaveShare" in Symbol 503 MovieClip [MappingSave] Frame 1
//component parameters
onClipEvent (construct) {
label = "";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 144 MovieClip [TextInput] "ShareUser" in Symbol 503 MovieClip [MappingSave] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 144 MovieClip [TextInput] "SharePass" in Symbol 503 MovieClip [MappingSave] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonSave" in Symbol 503 MovieClip [MappingSave] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Save";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 144 MovieClip [TextInput] "MapName" in Symbol 503 MovieClip [MappingSave] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 495 MovieClip [RadioButton] "SaveNew" in Symbol 503 MovieClip [MappingSave] Frame 1
//component parameters
onClipEvent (construct) {
data = "";
groupName = "SaveName";
label = "";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 419 MovieClip [ComboBox] "MapList" in Symbol 503 MovieClip [MappingSave] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
rowCount = 10;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 495 MovieClip [RadioButton] "SaveOverwrite" in Symbol 503 MovieClip [MappingSave] Frame 1
//component parameters
onClipEvent (construct) {
data = "";
groupName = "SaveName";
label = "";
labelPlacement = "right";
selected = false;
}
Symbol 507 MovieClip [MappingHelp] Frame 1
#initclip 347
Object.registerClass("MappingHelp", mapping.MappingHelp);
#endinitclip
Instance of Symbol 296 MovieClip [Button] "MessagePrev" in Symbol 507 MovieClip [MappingHelp] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Prev";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "MessageNext" in Symbol 507 MovieClip [MappingHelp] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Next";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "MessagePos" in Symbol 507 MovieClip [MappingHelp] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
html = false;
text = "";
wordWrap = true;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 511 MovieClip [TurretInfoTab] Frame 1
#initclip 348
Object.registerClass("TurretInfoTab", turretinfo.TurretInfoTab);
#endinitclip
stop();
Symbol 514 Button
on (press) {
_root.Game.turretInfoToggle();
}
Symbol 515 MovieClip [MappingInfo] Frame 1
#initclip 349
Object.registerClass("MappingInfo", mapping.MappingInfo);
#endinitclip
Symbol 523 MovieClip [TurretInfoGreen] Frame 1
#initclip 350
Object.registerClass("TurretInfoGreen", turretinfo.TurretInfoGreen);
#endinitclip
Instance of Symbol 501 MovieClip [TextArea] "LinkDamage" in Symbol 523 MovieClip [TurretInfoGreen] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "Link" in Symbol 523 MovieClip [TurretInfoGreen] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "LinkFire" in Symbol 523 MovieClip [TurretInfoGreen] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "LinkAssist" in Symbol 523 MovieClip [TurretInfoGreen] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "LinkOffered" in Symbol 523 MovieClip [TurretInfoGreen] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "LinkWanted" in Symbol 523 MovieClip [TurretInfoGreen] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 528 MovieClip [TurretInfoBlue] Frame 1
#initclip 351
Object.registerClass("TurretInfoBlue", turretinfo.TurretInfoBlue);
#endinitclip
Instance of Symbol 501 MovieClip [TextArea] "FreakNext" in Symbol 528 MovieClip [TurretInfoBlue] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
html = false;
text = "";
wordWrap = true;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "FreakCost" in Symbol 528 MovieClip [TurretInfoBlue] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
html = false;
text = "";
wordWrap = true;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "FreakBuy" in Symbol 528 MovieClip [TurretInfoBlue] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 542 MovieClip [TurretInfoSandbox] Frame 1
#initclip 352
Object.registerClass("TurretInfoSandbox", turretinfo.TurretInfoSandbox);
#endinitclip
Instance of Symbol 296 MovieClip [Button] "BankRecharge" in Symbol 542 MovieClip [TurretInfoSandbox] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Recharge Cash";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 163 MovieClip [NumericStepper] "WaveNumber" in Symbol 542 MovieClip [TurretInfoSandbox] Frame 1
//component parameters
onClipEvent (construct) {
maximum = 9999;
minimum = 1;
stepSize = 1;
value = 1;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 546 MovieClip [UpgradeGraphBarYellow] Frame 1
this.stop();
Symbol 548 MovieClip [UpgradeGraphBarGreen] Frame 1
this.stop();
Symbol 550 MovieClip [UpgradeGraphBar] Frame 1
this.stop();
Symbol 553 MovieClip [UpgradeGraph] Frame 1
#initclip 353
Object.registerClass("UpgradeGraph", UpgradeGraph);
#endinitclip
Symbol 558 MovieClip [TurretInfoYellow] Frame 1
#initclip 354
Object.registerClass("TurretInfoYellow", turretinfo.TurretInfoYellow);
#endinitclip
Instance of Symbol 501 MovieClip [TextArea] "ChargePct" in Symbol 558 MovieClip [TurretInfoYellow] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
html = false;
text = "";
wordWrap = true;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "ChargeReload" in Symbol 558 MovieClip [TurretInfoYellow] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
html = false;
text = "";
wordWrap = true;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "ChargeDamage" in Symbol 558 MovieClip [TurretInfoYellow] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
html = false;
text = "";
wordWrap = true;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 563 MovieClip [TurretInfoFusion] Frame 1
#initclip 355
Object.registerClass("TurretInfoFusion", turretinfo.TurretInfoFusion);
#endinitclip
Instance of Symbol 501 MovieClip [TextArea] "StoreTime" in Symbol 563 MovieClip [TurretInfoFusion] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
html = false;
text = "";
wordWrap = true;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "StorePoison" in Symbol 563 MovieClip [TurretInfoFusion] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
html = false;
text = "";
wordWrap = true;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "StoreDamage" in Symbol 563 MovieClip [TurretInfoFusion] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
html = false;
text = "";
wordWrap = true;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 572 MovieClip Frame 1
this.stop();
this.disabled = false;
this.onRollOver = function () {
if (this.disabled) {
this.gotoAndStop("No");
} else {
this.gotoAndStop("Over");
}
};
this.onRollOut = function () {
this.gotoAndStop("Up");
};
this.onPress = function () {
if (this.disabled) {
this.gotoAndStop("No");
} else {
this.onClick();
this.gotoAndStop("Down");
}
};
this.onRelease = function () {
if (this.disabled) {
this.gotoAndStop("No");
} else {
this.gotoAndStop("Over");
}
};
this.onReleaseOutside = function () {
this.gotoAndStop("Up");
};
Symbol 579 MovieClip [TurretInfoUpgrades] Frame 1
#initclip 356
Object.registerClass("TurretInfoUpgrades", turretinfo.TurretInfoUpgrades);
#endinitclip
Symbol 587 MovieClip [TurretUpgradeLevels] Frame 1
#initclip 357
Object.registerClass("TurretUpgradeLevels", TurretUpgradeLevels);
#endinitclip
Symbol 597 MovieClip [TurretInfoGeneral] Frame 1
#initclip 358
Object.registerClass("TurretInfoGeneral", turretinfo.TurretInfoGeneral);
#endinitclip
Instance of Symbol 501 MovieClip [TextArea] "Kills" in Symbol 597 MovieClip [TurretInfoGeneral] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "Shots" in Symbol 597 MovieClip [TurretInfoGeneral] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "CashValue" in Symbol 597 MovieClip [TurretInfoGeneral] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "TargetMode" in Symbol 597 MovieClip [TurretInfoGeneral] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "Rate" in Symbol 597 MovieClip [TurretInfoGeneral] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "Range" in Symbol 597 MovieClip [TurretInfoGeneral] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "Damage" in Symbol 597 MovieClip [TurretInfoGeneral] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonSell" in Symbol 597 MovieClip [TurretInfoGeneral] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Sell";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 598 MovieClip [TurretInfoBuild] Frame 1
#initclip 359
Object.registerClass("TurretInfoBuild", turretinfo.TurretInfoBuild);
#endinitclip
Symbol 607 MovieClip [TurretInfoCombos] Frame 1
#initclip 360
Object.registerClass("TurretInfoCombos", turretinfo.TurretInfoCombos);
#endinitclip
Instance of Symbol 501 MovieClip [TextArea] "Combo" in Symbol 607 MovieClip [TurretInfoCombos] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
html = false;
text = "";
wordWrap = true;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 610 MovieClip [TurretInfoModify] Frame 1
#initclip 361
Object.registerClass("TurretInfoModify", turretinfo.TurretInfoModify);
#endinitclip
Instance of Symbol 501 MovieClip [TextArea] "Modify" in Symbol 610 MovieClip [TurretInfoModify] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
html = false;
text = "";
wordWrap = true;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 144 MovieClip [TextInput] "PlayerName" in Symbol 616 MovieClip [TurretInfoSubmitScore] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonSubmit" in Symbol 616 MovieClip [TurretInfoSubmitScore] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Submit Score";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonSubmit" in Symbol 622 MovieClip [TurretInfoRateMap] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Send Rating";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 624 MovieClip [TurretInfoGameOver] Frame 1
#initclip 362
Object.registerClass("TurretInfoGameOver", turretinfo.TurretInfoGameOver);
#endinitclip
Instance of Symbol 296 MovieClip [Button] "ButtonBack" in Symbol 624 MovieClip [TurretInfoGameOver] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Main Menu";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonRestart" in Symbol 624 MovieClip [TurretInfoGameOver] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Restart";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "Kills" in Symbol 624 MovieClip [TurretInfoGameOver] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "Shots" in Symbol 624 MovieClip [TurretInfoGameOver] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "Spend" in Symbol 624 MovieClip [TurretInfoGameOver] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "Score" in Symbol 624 MovieClip [TurretInfoGameOver] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 629 MovieClip [TurretInfoChallengeOver ] Frame 1
#initclip 363
Object.registerClass("TurretInfoChallengeOver ", turretinfo.TurretInfoChallengeOver);
#endinitclip
Instance of Symbol 296 MovieClip [Button] "ButtonBack" in Symbol 629 MovieClip [TurretInfoChallengeOver ] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Challenges";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonRestart" in Symbol 629 MovieClip [TurretInfoChallengeOver ] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Try Again";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "Kills" in Symbol 629 MovieClip [TurretInfoChallengeOver ] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "Time" in Symbol 629 MovieClip [TurretInfoChallengeOver ] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "Spend" in Symbol 629 MovieClip [TurretInfoChallengeOver ] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "Score" in Symbol 629 MovieClip [TurretInfoChallengeOver ] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 639 MovieClip [TurretInfoGame] Frame 1
#initclip 364
Object.registerClass("TurretInfoGame", turretinfo.TurretInfoGame);
#endinitclip
Instance of Symbol 296 MovieClip [Button] "ButtonSettings" in Symbol 639 MovieClip [TurretInfoGame] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Settings";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonRestart" in Symbol 639 MovieClip [TurretInfoGame] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Restart";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonMap" in Symbol 639 MovieClip [TurretInfoGame] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Map Mode";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonBack" in Symbol 639 MovieClip [TurretInfoGame] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Main Menu";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 642 MovieClip [TurretInfoMessages] Frame 1
#initclip 365
Object.registerClass("TurretInfoMessages", turretinfo.TurretInfoMessages);
#endinitclip
Instance of Symbol 296 MovieClip [Button] "MessagePrev" in Symbol 642 MovieClip [TurretInfoMessages] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Prev";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "MessageNext" in Symbol 642 MovieClip [TurretInfoMessages] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Next";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "MessagePos" in Symbol 642 MovieClip [TurretInfoMessages] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
html = false;
text = "";
wordWrap = true;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 645 MovieClip [TurretInfoSpecific] Frame 1
#initclip 366
Object.registerClass("TurretInfoSpecific", turretinfo.TurretInfoSpecific);
#endinitclip
Symbol 651 MovieClip [TurretInfo] Frame 1
#initclip 367
Object.registerClass("TurretInfo", turretinfo.TurretInfo);
#endinitclip
Symbol 656 MovieClip [SoundMute] Frame 1
#initclip 368
Object.registerClass("SoundMute", SoundMute);
#endinitclip
Symbol 667 MovieClip [UpgradePanel] Frame 1
#initclip 369
Object.registerClass("UpgradePanel", UpgradePanel);
#endinitclip
Symbol 671 MovieClip [GameTutorial] Frame 1
#initclip 370
Object.registerClass("GameTutorial", GameTutorial);
#endinitclip
Instance of Symbol 501 MovieClip [TextArea] "Tutorial" in Symbol 671 MovieClip [GameTutorial] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
html = false;
text = "";
wordWrap = true;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonShow" in Symbol 671 MovieClip [GameTutorial] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Show Me";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonPrev" in Symbol 671 MovieClip [GameTutorial] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Previous";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonNext" in Symbol 671 MovieClip [GameTutorial] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Next";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 672 MovieClip [Xray] Frame 1
#initclip 371
Object.registerClass("Xray", OnslaughtXray);
#endinitclip
Symbol 681 MovieClip [GameSelectButtonDisplay] Frame 1
#initclip 372
Object.registerClass("GameSelectButtonDisplay", GameSelectButton);
#endinitclip
Symbol 684 MovieClip [IconArrowDown] Frame 1
#initclip 373
Object.registerClass("IconArrowDown", IconArrow);
#endinitclip
Symbol 688 MovieClip [UpgradeGraphScaleMinor] Frame 1
this.stop();
Symbol 691 MovieClip [UpgradeGraphScale] Frame 1
this.stop();
if (!this.marker) {
this.marker = "?";
}
Symbol 700 MovieClip [Attacker8] Frame 1
#initclip 374
Object.registerClass("Attacker8", AttackerEngine);
#endinitclip
Symbol 705 MovieClip [Attacker7] Frame 1
#initclip 375
Object.registerClass("Attacker7", AttackerEngine);
#endinitclip
Symbol 710 MovieClip [Attacker6] Frame 1
#initclip 376
Object.registerClass("Attacker6", AttackerEngine);
#endinitclip
Symbol 715 MovieClip [Attacker5] Frame 1
#initclip 377
Object.registerClass("Attacker5", AttackerEngine);
#endinitclip
Symbol 720 MovieClip [Attacker4] Frame 1
#initclip 378
Object.registerClass("Attacker4", AttackerEngine);
#endinitclip
Symbol 725 MovieClip [Attacker3] Frame 1
#initclip 379
Object.registerClass("Attacker3", AttackerEngine);
#endinitclip
Symbol 730 MovieClip [Attacker2] Frame 1
#initclip 380
Object.registerClass("Attacker2", AttackerEngine);
#endinitclip
Symbol 735 MovieClip [Attacker1] Frame 1
#initclip 381
Object.registerClass("Attacker1", AttackerEngine);
#endinitclip
Symbol 740 MovieClip [Attacker0] Frame 1
#initclip 382
Object.registerClass("Attacker0", AttackerEngine);
#endinitclip
Symbol 744 MovieClip [RocketTazer] Frame 1
#initclip 383
Object.registerClass("RocketTazer", RocketEngine);
#endinitclip
Symbol 746 MovieClip [RocketPoison] Frame 1
#initclip 384
Object.registerClass("RocketPoison", RocketEngine);
#endinitclip
Symbol 748 MovieClip [RocketNuke] Frame 1
#initclip 385
Object.registerClass("RocketNuke", RocketEngine);
#endinitclip
Symbol 750 MovieClip [RocketNapalm] Frame 1
#initclip 386
Object.registerClass("RocketNapalm", RocketEngine);
#endinitclip
Symbol 752 MovieClip [RocketLaser] Frame 1
#initclip 387
Object.registerClass("RocketLaser", RocketEngine);
#endinitclip
Symbol 754 MovieClip [Rocket9] Frame 1
#initclip 388
Object.registerClass("Rocket9", RocketEngine);
#endinitclip
Symbol 756 MovieClip [Rocket8] Frame 1
#initclip 389
Object.registerClass("Rocket8", RocketEngine);
#endinitclip
Symbol 758 MovieClip [Rocket] Frame 1
#initclip 390
Object.registerClass("Rocket", RocketEngine);
#endinitclip
Symbol 760 MovieClip [Rocket2] Frame 1
#initclip 391
Object.registerClass("Rocket2", RocketEngine);
#endinitclip
Symbol 762 MovieClip [Rocket3] Frame 1
#initclip 392
Object.registerClass("Rocket3", RocketEngine);
#endinitclip
Symbol 764 MovieClip [Rocket4] Frame 1
#initclip 393
Object.registerClass("Rocket4", RocketEngine);
#endinitclip
Symbol 766 MovieClip [Rocket5] Frame 1
#initclip 394
Object.registerClass("Rocket5", RocketEngine);
#endinitclip
Symbol 768 MovieClip [Rocket6] Frame 1
#initclip 395
Object.registerClass("Rocket6", RocketEngine);
#endinitclip
Symbol 770 MovieClip [Rocket7] Frame 1
#initclip 396
Object.registerClass("Rocket7", RocketEngine);
#endinitclip
Symbol 771 MovieClip [Spark] Frame 1
#initclip 397
Object.registerClass("Spark", SparkEngine);
#endinitclip
Symbol 773 MovieClip [Shockwave] Frame 1
#initclip 398
Object.registerClass("Shockwave", Shockwave);
#endinitclip
Symbol 774 MovieClip [LaserBeam] Frame 1
#initclip 399
Object.registerClass("LaserBeam", LaserEngine);
#endinitclip
Symbol 778 MovieClip [Landmine] Frame 1
#initclip 400
Object.registerClass("Landmine", LandmineEngine);
#endinitclip
this.play();
Symbol 778 MovieClip [Landmine] Frame 19
this.gotoAndPlay("Beep");
Symbol 782 MovieClip [LandmineBig] Frame 1
#initclip 401
Object.registerClass("LandmineBig", LandmineEngine);
#endinitclip
this.play();
Symbol 782 MovieClip [LandmineBig] Frame 19
this.gotoAndPlay("Beep");
Symbol 784 MovieClip [LandmineBigCluster] Frame 1
#initclip 402
Object.registerClass("LandmineBigCluster", LandmineEngine);
#endinitclip
this.play();
Symbol 784 MovieClip [LandmineBigCluster] Frame 19
this.gotoAndPlay("Beep");
Symbol 788 MovieClip [LandmineBigClusterLaser] Frame 1
#initclip 403
Object.registerClass("LandmineBigClusterLaser", LandmineEngine);
#endinitclip
this.play();
Symbol 788 MovieClip [LandmineBigClusterLaser] Frame 19
this.gotoAndPlay("Beep");
Symbol 789 MovieClip Frame 1
this.stop();
this.mine_location = this._parent.mine_location;
this.mine_range = this._parent.mine_range;
this.bullet_speed = this._parent.bullet_speed;
this.bullet_rotation = this._parent.bullet_rotation;
this.bullet_damage = this._parent.bullet_damage;
this.blast = this._parent.blast;
this.blast_type = this._parent.blast_type;
this.blast_damage = this._parent.blast_damage;
this.cluster = this._parent.cluster;
this.cluster_qty = this._parent.cluster_qty;
this.cluster_holding = this._parent.cluster_holding;
this.cluster_damage = this._parent.cluster_damage;
this.cluster_rocket = this._parent.cluster_rocket;
this.cluster_laser = this._parent.cluster_laser;
if (!this.mine_location) {
this.mine_location = false;
}
if (!this.mine_range) {
this.mine_range = 20;
}
if (!this.bullet_speed) {
this.bullet_speed = 220;
}
if (!this.bullet_rotation) {
this.bullet_rotation = 0;
}
if (!this.bullet_damage) {
this.bullet_damage = 1000000 /* 0x0F4240 */;
}
if (!this.blast) {
this.blast = true;
}
if (!this.blast_type) {
this.blast_type = "BlastMedium";
}
if (!this.blast_damage) {
this.blast_damage = 1000000 /* 0x0F4240 */;
}
if (!this.cluster) {
this.cluster = false;
}
if (!this.cluster_qty) {
this.cluster_qty = 5;
}
if (!this.cluster_holding) {
this.cluster_holding = true;
}
if (!this.cluster_damage) {
this.cluster_damage = 1000000 /* 0x0F4240 */;
}
if (!this.cluster_rocket) {
this.cluster_rocket = false;
}
if (!this.cluster_laser) {
this.cluster_laser = false;
}
this.target_obj = this._parent;
this.time_last = _root.Clock.timeNow();
this.target_locked = false;
this.WeaponController.weapon = this.target_obj;
this.gotoAndPlay("Attack");
this.stop();
Symbol 789 MovieClip Frame 2
this.stop();
var time_now = _root.Clock.timeNow();
var time_diff = ((time_now - this.time_last) / 1000);
this.time_last = time_now;
if (time_diff > 0) {
var target_x = this.mine_location._x;
var target_y = this.mine_location._y;
var d_x = (target_x - this.target_obj._x);
var d_y = (target_y - this.target_obj._y);
var dist = Math.sqrt((d_x * d_x) + (d_y * d_y));
var move_x = ((d_x / dist) * (this.bullet_speed * time_diff));
var move_y = ((d_y / dist) * (this.bullet_speed * time_diff));
this.target_obj._x = this.target_obj._x + move_x;
this.target_obj._y = this.target_obj._y + move_y;
move_dist = Math.sqrt((move_x * move_x) + (move_y * move_y));
dist = Math.abs(dist);
move_dist = Math.abs(move_dist);
if (dist <= move_dist) {
this.target_obj._x = target_x;
this.target_obj._y = target_y;
this.gotoAndPlay("Planted");
} else {
this.play();
}
} else {
this.play();
}
Symbol 789 MovieClip Frame 3
this.stop();
this.gotoAndPlay("Attack");
Symbol 789 MovieClip Frame 4
this.stop();
if (!this.target_locked) {
this.WeaponController.weapon = this.target_obj;
this.target_locked = true;
}
var target = this.WeaponController.findAttackerInRange(near, this.mine_range);
if (target) {
if (this.blast == true) {
var new_type = this.blast_type;
var new_lev = _root.getNextHighestDepth();
var new_name = (new_type + new_lev);
var new_b = _root.attachMovie(new_type, new_name, new_lev);
new_b._x = this.target_obj._x;
new_b._y = this.target_obj._y;
new_b.weapon_damage = this.blast_damage;
}
if (this.cluster == true) {
var new_type = "AddonClusterBlast";
var new_lev = _root.getNextHighestDepth();
var new_name = (new_type + new_lev);
var new_b = _root.attachMovie(new_type, new_name, new_lev);
new_b._x = this.target_obj._x;
new_b._y = this.target_obj._y;
new_b.cluster_damage = this.cluster_damage;
new_b.cluster_qty = this.cluster_qty;
new_b.cluster_laser = this.cluster_laser;
new_b.cluster_holding = this.cluster_holding;
new_b.cluster_rocket = this.cluster_rocket;
}
this.gotoAndPlay("Detonated");
} else {
this.play();
}
Symbol 789 MovieClip Frame 14
this.stop();
this.gotoAndPlay("Planted");
Symbol 789 MovieClip Frame 15
this.stop();
this.target_obj.removeMovieClip();
Symbol 792 MovieClip [LandmineSparky] Frame 1
#initclip 404
Object.registerClass("LandmineSparky", LandmineEngine);
#endinitclip
this.play();
Symbol 792 MovieClip [LandmineSparky] Frame 19
this.gotoAndPlay("Beep");
Symbol 798 MovieClip [ClusterBomb] Frame 1
#initclip 405
Object.registerClass("ClusterBomb", ClusterBombEngine);
#endinitclip
Symbol 800 MovieClip [Bullet] Frame 1
#initclip 406
Object.registerClass("Bullet", ShellEngine);
#endinitclip
Symbol 801 MovieClip [Bullet2] Frame 1
#initclip 407
Object.registerClass("Bullet2", ShellEngine);
#endinitclip
Symbol 803 MovieClip [Bullet3] Frame 1
#initclip 408
Object.registerClass("Bullet3", ShellEngine);
#endinitclip
Symbol 805 MovieClip [Bullet4] Frame 1
#initclip 409
Object.registerClass("Bullet4", ShellEngine);
#endinitclip
Symbol 807 MovieClip [Bullet5] Frame 1
#initclip 410
Object.registerClass("Bullet5", ShellEngine);
#endinitclip
Symbol 808 MovieClip [Bullet6] Frame 1
#initclip 411
Object.registerClass("Bullet6", ShellEngine);
#endinitclip
Symbol 810 MovieClip [Bullet7] Frame 1
#initclip 412
Object.registerClass("Bullet7", ShellEngine);
#endinitclip
Symbol 812 MovieClip [Bullet8] Frame 1
#initclip 413
Object.registerClass("Bullet8", ShellEngine);
#endinitclip
Symbol 814 MovieClip [Bullet9] Frame 1
#initclip 414
Object.registerClass("Bullet9", ShellEngine);
#endinitclip
Symbol 815 MovieClip [BulletSniper] Frame 1
#initclip 415
Object.registerClass("BulletSniper", BulletSniper);
#endinitclip
Symbol 817 MovieClip [BlastBFG] Frame 1
#initclip 416
Object.registerClass("BlastBFG", blasts.BlastBFG);
#endinitclip
Symbol 819 MovieClip [BlastHuge] Frame 1
#initclip 417
Object.registerClass("BlastHuge", blasts.BlastHuge);
#endinitclip
Symbol 821 MovieClip [BlastLarge] Frame 1
#initclip 418
Object.registerClass("BlastLarge", blasts.BlastLarge);
#endinitclip
Symbol 823 MovieClip [BlastMedium] Frame 1
#initclip 419
Object.registerClass("BlastMedium", blasts.BlastMedium);
#endinitclip
Symbol 824 MovieClip [BlastNapalm] Frame 1
#initclip 420
Object.registerClass("BlastNapalm", blasts.BlastNapalm);
#endinitclip
Symbol 826 MovieClip [BlastPoison] Frame 1
#initclip 421
Object.registerClass("BlastPoison", blasts.BlastPoison);
#endinitclip
Symbol 828 MovieClip [BlastShockwave] Frame 1
#initclip 422
Object.registerClass("BlastShockwave", blasts.BlastShockwave);
#endinitclip
Symbol 829 MovieClip [BlastSmall] Frame 1
#initclip 423
Object.registerClass("BlastSmall", blasts.BlastSmall);
#endinitclip
Symbol 832 MovieClip [BlackHole] Frame 1
#initclip 424
Object.registerClass("BlackHole", BlackHole);
#endinitclip
Symbol 834 MovieClip [BlackHoleDebris] Frame 1
#initclip 425
Object.registerClass("BlackHoleDebris", BlackHoleDebris);
#endinitclip
Symbol 838 MovieClip [BFGOrb1] Frame 1
this.play();
Symbol 838 MovieClip [BFGOrb1] Frame 42
this.gotoAndPlay("Start");
Symbol 842 MovieClip [BFGOrb2] Frame 1
this.play();
Symbol 842 MovieClip [BFGOrb2] Frame 38
this.gotoAndPlay("Start");
Symbol 844 MovieClip [BFGOrb3] Frame 1
this.play();
Symbol 844 MovieClip [BFGOrb3] Frame 64
this.gotoAndPlay("Start");
Symbol 845 MovieClip [BFG] Frame 1
#initclip 426
Object.registerClass("BFG", RocketEngine);
#endinitclip
Symbol 847 MovieClip [BFGTazer] Frame 1
#initclip 427
Object.registerClass("BFGTazer", RocketEngine);
#endinitclip
Symbol 857 MovieClip [Cannon] Frame 1
this.fire = function () {
this.gotoAndPlay("Firing");
};
this.stop();
Symbol 857 MovieClip [Cannon] Frame 2
this.play();
Symbol 857 MovieClip [Cannon] Frame 20
this.gotoAndStop("Idle");
Symbol 858 MovieClip [TurretBlue] Frame 1
#initclip 428
Object.registerClass("TurretBlue", turrets.TurretBlue);
#endinitclip
Symbol 867 MovieClip [TurretDamageUp] Frame 1
#initclip 429
Object.registerClass("TurretDamageUp", turrets.TurretDamageUp);
#endinitclip
Symbol 869 MovieClip [TurretDamageUpBig] Frame 1
#initclip 430
Object.registerClass("TurretDamageUpBig", turrets.TurretDamageUpBig);
#endinitclip
Symbol 871 MovieClip [ModifyExchanger] Frame 1
this.stop();
Symbol 872 MovieClip [TurretDamageUpBigExchange] Frame 1
#initclip 431
Object.registerClass("TurretDamageUpBigExchange", turrets.TurretDamageUpBigExchange);
#endinitclip
Symbol 881 MovieClip Frame 1
this.fire = function () {
this.gotoAndPlay("Firing");
};
Symbol 881 MovieClip Frame 11
this.gotoAndStop("Idle");
Symbol 882 MovieClip [TurretFusion] Frame 1
#initclip 432
Object.registerClass("TurretFusion", turrets.TurretFusion);
#endinitclip
Symbol 891 MovieClip [Laser] Frame 1
this.fire = function () {
this.gotoAndPlay("Firing");
};
this.stop();
Symbol 891 MovieClip [Laser] Frame 2
this.play();
Symbol 891 MovieClip [Laser] Frame 16
this.gotoAndStop("Idle");
Symbol 896 MovieClip [TurretGreen] Frame 1
#initclip 433
Object.registerClass("TurretGreen", turrets.TurretGreen);
#endinitclip
Symbol 911 MovieClip [Railgun] Frame 1
this.fire = function () {
this.gotoAndPlay("Firing");
};
Symbol 911 MovieClip [Railgun] Frame 18
this.gotoAndStop("Idle");
Symbol 912 MovieClip [TurretRailgun] Frame 1
#initclip 434
Object.registerClass("TurretRailgun", turrets.TurretRailgun);
#endinitclip
Symbol 919 MovieClip [RadarDish] Frame 1
this.active = this._parent.active;
if (this.active == undefined) {
this.active = true;
}
this.blip = function () {
this.blip_last = new Date();
var _local7 = Math.random();
if (_local7 > this.blip_chance) {
return(true);
}
var _local4 = "RadarBlip";
var _local5 = this.getNextHighestDepth();
var _local10 = _local4 + _local5;
var _local3 = this.attachMovie(_local4, _local10, _local5);
var _local8 = Math.floor(Math.random() * 4);
var _local9 = "Blip" + _local8;
var _local6 = Sweep[_local9];
var _local2 = new Object();
_local2.x = _local6._x;
_local2.y = _local6._y;
Sweep.localToGlobal(_local2);
this.globalToLocal(_local2);
_local3._x = _local2.x;
_local3._y = _local2.y;
return(_local3);
};
this.time_last = new Date();
this.blip_last = this.time_last;
this.blip_rate = 73;
this.blip_chance = 0.55;
this.sweep_rate = 80;
this.stop();
if (this.active == true) {
this.play();
}
Symbol 919 MovieClip [RadarDish] Frame 3
this.stop();
var time_now = new Date();
var time_diff = (time_now.getTime() - this.time_last.getTime());
var blip_diff = (time_now.getTime() - this.blip_last.getTime());
var the_blip_rate = (60000 / this.blip_rate);
if (blip_diff >= the_blip_rate) {
this.blip();
}
var new_rot = (this.sweep_rate * (time_diff / 1000));
Sweep._rotation = Sweep._rotation + new_rot;
time_last = time_now;
this.play();
Symbol 919 MovieClip [RadarDish] Frame 5
this.gotoAndPlay("Scan");
Symbol 920 MovieClip [TurretRangeUp] Frame 1
#initclip 435
Object.registerClass("TurretRangeUp", turrets.TurretRangeUp);
#endinitclip
Symbol 921 MovieClip [TurretRangeUpExchange] Frame 1
#initclip 436
Object.registerClass("TurretRangeUpExchange", turrets.TurretRangeUpExchange);
#endinitclip
Symbol 927 MovieClip [RangerPulse] Frame 1
this.stop();
this.active = this._parent.active;
if (this.active == undefined) {
this.active = true;
}
if (this.active == true) {
this.play();
}
Symbol 927 MovieClip [RangerPulse] Frame 25
this.gotoAndPlay("Pulse");
Symbol 928 MovieClip [TurretRateUp] Frame 1
#initclip 437
Object.registerClass("TurretRateUp", turrets.TurretRateUp);
#endinitclip
Symbol 929 MovieClip [TurretRateUpExchange] Frame 1
#initclip 438
Object.registerClass("TurretRateUpExchange", turrets.TurretRateUpExchange);
#endinitclip
Symbol 934 MovieClip Frame 1
this.fire = function () {
this.gotoAndPlay("Fire");
};
Symbol 934 MovieClip Frame 15
this.gotoAndStop("Fire");
Symbol 939 MovieClip [MissileLauncher] Frame 1
if (!this.fire_count) {
this.fire_count = 0;
}
this.fire = function () {
this.setFirePoint();
this.fireMissle();
this.fire_count++;
this.gotoAndPlay("Firing");
};
this.fireMissle = function () {
var _local2 = "Fired" + (this.fire_count % 4);
var _local3 = this[_local2];
_local3.fire();
};
this.setFirePoint = function () {
var _local2 = "FirePoint" + (this.fire_count % 4);
this.FirePoint = this[_local2];
};
this.setFirePoint();
this.stop();
Symbol 939 MovieClip [MissileLauncher] Frame 2
this.play();
Symbol 939 MovieClip [MissileLauncher] Frame 18
this.gotoAndStop("Idle");
Symbol 940 MovieClip [TurretRed] Frame 1
#initclip 439
Object.registerClass("TurretRed", turrets.TurretRed);
#endinitclip
Symbol 947 MovieClip Frame 1
this.fire = function () {
this.gotoAndPlay("Firing");
};
Symbol 947 MovieClip Frame 2
this.stop();
Symbol 947 MovieClip Frame 3
this.play();
Symbol 947 MovieClip Frame 22
this.gotoAndStop("Idle");
Symbol 948 MovieClip [TurretSniper] Frame 1
#initclip 440
Object.registerClass("TurretSniper", turrets.TurretSniper);
#endinitclip
Symbol 952 MovieClip [SparkGun] Frame 1
this.fire = function () {
this.gotoAndPlay("Firing");
};
Symbol 952 MovieClip [SparkGun] Frame 11
this.gotoAndStop("Idle");
Symbol 953 MovieClip [TurretYellow] Frame 1
#initclip 441
Object.registerClass("TurretYellow", turrets.TurretYellow);
#endinitclip
Symbol 958 MovieClip [CombonlyPlate] Frame 1
#initclip 442
Object.registerClass("CombonlyPlate", CombonlyPlate);
#endinitclip
Symbol 962 MovieClip [TurretCombonly] Frame 1
#initclip 443
Object.registerClass("TurretCombonly", turrets.TurretCombonly);
#endinitclip
Symbol 971 MovieClip [TurretRangeAngled] Frame 1
#initclip 444
Object.registerClass("TurretRangeAngled", TurretRangeAngled);
#endinitclip
Symbol 975 MovieClip [TurretTargeter] Frame 1
#initclip 445
Object.registerClass("TurretTargeter", turrets.TurretTargeter);
#endinitclip
Symbol 980 MovieClip [TurretJoiner] Frame 1
#initclip 446
Object.registerClass("TurretJoiner", TurretJoiner);
#endinitclip
Symbol 1050 MovieClip [OpeningCredits] Frame 1
#initclip 448
Object.registerClass("OpeningCredits", OpeningCredits);
#endinitclip
Symbol 1064 MovieClip [MiniMapWhite] Frame 1
#initclip 461
Object.registerClass("MiniMapWhite", MiniMap);
#endinitclip
Symbol 1065 MovieClip [GameSelectMapping] Frame 1
#initclip 449
Object.registerClass("GameSelectMapping", GameSelectMapping);
#endinitclip
Instance of Symbol 419 MovieClip [ComboBox] "MapList" in Symbol 1065 MovieClip [GameSelectMapping] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
rowCount = 10;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 419 MovieClip [ComboBox] "MapShared" in Symbol 1065 MovieClip [GameSelectMapping] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
rowCount = 10;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonLoad" in Symbol 1065 MovieClip [GameSelectMapping] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Load map";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonPlay" in Symbol 1065 MovieClip [GameSelectMapping] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Play map";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonEditor" in Symbol 1065 MovieClip [GameSelectMapping] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Map Editor";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonBack" in Symbol 1065 MovieClip [GameSelectMapping] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "< Back";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 1068 MovieClip [GameSelectMap] Frame 1
#initclip 450
Object.registerClass("GameSelectMap", GameSelectMap);
#endinitclip
Instance of Symbol 296 MovieClip [Button] "map4" in Symbol 1068 MovieClip [GameSelectMap] Frame 1
//component parameters
onClipEvent (construct) {
icon = "ButtonMap";
label = "";
labelPlacement = "bottom";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "map3" in Symbol 1068 MovieClip [GameSelectMap] Frame 1
//component parameters
onClipEvent (construct) {
icon = "ButtonMap";
label = "";
labelPlacement = "bottom";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "map2" in Symbol 1068 MovieClip [GameSelectMap] Frame 1
//component parameters
onClipEvent (construct) {
icon = "ButtonMap";
label = "";
labelPlacement = "bottom";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "map1" in Symbol 1068 MovieClip [GameSelectMap] Frame 1
//component parameters
onClipEvent (construct) {
icon = "ButtonMap";
label = "";
labelPlacement = "bottom";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "map5" in Symbol 1068 MovieClip [GameSelectMap] Frame 1
//component parameters
onClipEvent (construct) {
icon = "ButtonMap";
label = "";
labelPlacement = "bottom";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "map8" in Symbol 1068 MovieClip [GameSelectMap] Frame 1
//component parameters
onClipEvent (construct) {
icon = "ButtonMap";
label = "";
labelPlacement = "bottom";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "map7" in Symbol 1068 MovieClip [GameSelectMap] Frame 1
//component parameters
onClipEvent (construct) {
icon = "ButtonMap";
label = "";
labelPlacement = "bottom";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "map6" in Symbol 1068 MovieClip [GameSelectMap] Frame 1
//component parameters
onClipEvent (construct) {
icon = "ButtonMap";
label = "";
labelPlacement = "bottom";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "map9" in Symbol 1068 MovieClip [GameSelectMap] Frame 1
//component parameters
onClipEvent (construct) {
icon = "ButtonMap";
label = "";
labelPlacement = "bottom";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "map10" in Symbol 1068 MovieClip [GameSelectMap] Frame 1
//component parameters
onClipEvent (construct) {
icon = "ButtonMap";
label = "";
labelPlacement = "bottom";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "map11" in Symbol 1068 MovieClip [GameSelectMap] Frame 1
//component parameters
onClipEvent (construct) {
icon = "ButtonMap";
label = "";
labelPlacement = "bottom";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "map12" in Symbol 1068 MovieClip [GameSelectMap] Frame 1
//component parameters
onClipEvent (construct) {
icon = "ButtonMap";
label = "";
labelPlacement = "bottom";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonBack" in Symbol 1068 MovieClip [GameSelectMap] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "< Back";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 1095 MovieClip [VerticalScrollerItem] Frame 1
#initclip 451
Object.registerClass("VerticalScrollerItem", VerticalScrollerItem);
#endinitclip
Symbol 1097 MovieClip [VerticalScroller] Frame 1
#initclip 452
Object.registerClass("VerticalScroller", VerticalScroller);
#endinitclip
Symbol 1098 MovieClip [GameSelectChallenge] Frame 1
#initclip 453
Object.registerClass("GameSelectChallenge", GameSelectChallenge);
#endinitclip
Instance of Symbol 296 MovieClip [Button] "ButtonBack" in Symbol 1098 MovieClip [GameSelectChallenge] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "< Back";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonPlay" in Symbol 1098 MovieClip [GameSelectChallenge] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Play >";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 1100 MovieClip [ModActivate] Frame 1
#initclip 454
Object.registerClass("ModActivate", mods.ModActivate);
#endinitclip
Instance of Symbol 390 MovieClip [CheckBox] "TheCheckbox" in Symbol 1100 MovieClip [ModActivate] Frame 1
//component parameters
onClipEvent (construct) {
label = "CheckBox";
labelPlacement = "right";
selected = false;
}
Symbol 1103 MovieClip [ModImportExport] Frame 1
#initclip 455
Object.registerClass("ModImportExport", mods.ModImportExport);
#endinitclip
Instance of Symbol 296 MovieClip [Button] "ButtonCreate" in Symbol 1103 MovieClip [ModImportExport] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Create Mod Save";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonLoad" in Symbol 1103 MovieClip [ModImportExport] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Load a Saved Mod";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonCopy" in Symbol 1103 MovieClip [ModImportExport] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Copy To Clipboard";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 501 MovieClip [TextArea] "ModString" in Symbol 1103 MovieClip [ModImportExport] Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = true;
maxChars = null;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 1107 MovieClip [ModList] Frame 1
#initclip 456
Object.registerClass("ModList", mods.ModList);
#endinitclip
Instance of Symbol 357 MovieClip [ScrollPane] "TheScroller" in Symbol 1107 MovieClip [ModList] Frame 1
//component parameters
onClipEvent (construct) {
contentPath = "";
hLineScrollSize = 5;
hPageScrollSize = 20;
hScrollPolicy = "off";
scrollDrag = false;
vLineScrollSize = 5;
vPageScrollSize = 20;
vScrollPolicy = "auto";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ResetButton" in Symbol 1107 MovieClip [ModList] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Reset to Defaults";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 1108 MovieClip [ModInterface] Frame 1
#initclip 457
Object.registerClass("ModInterface", mods.ModInterface);
#endinitclip
Symbol 1110 MovieClip [GameSelectMod] Frame 1
#initclip 458
Object.registerClass("GameSelectMod", GameSelectMod);
#endinitclip
Instance of Symbol 296 MovieClip [Button] "ButtonBack" in Symbol 1110 MovieClip [GameSelectMod] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "< Back";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonExport" in Symbol 1110 MovieClip [GameSelectMod] Frame 1
//component parameters
onClipEvent (construct) {
icon = "";
label = "Export";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 1116 Button
on (press) {
getURL ("http://onslaught.playr.co.uk/", "_blank");
}
Symbol 1122 MovieClip [GameSelectMode] Frame 1
#initclip 459
Object.registerClass("GameSelectMode", GameSelectMode);
#endinitclip
Instance of Symbol 296 MovieClip [Button] "ButtonExtreme" in Symbol 1122 MovieClip [GameSelectMode] Frame 1
//component parameters
onClipEvent (construct) {
icon = "GameSelectButton";
label = "";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonEasy" in Symbol 1122 MovieClip [GameSelectMode] Frame 1
//component parameters
onClipEvent (construct) {
icon = "GameSelectButton";
label = "";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonMedium" in Symbol 1122 MovieClip [GameSelectMode] Frame 1
//component parameters
onClipEvent (construct) {
icon = "GameSelectButton";
label = "";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonHard" in Symbol 1122 MovieClip [GameSelectMode] Frame 1
//component parameters
onClipEvent (construct) {
icon = "GameSelectButton";
label = "";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonSandbox" in Symbol 1122 MovieClip [GameSelectMode] Frame 1
//component parameters
onClipEvent (construct) {
icon = "GameSelectButton";
label = "";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonChallenge" in Symbol 1122 MovieClip [GameSelectMode] Frame 1
//component parameters
onClipEvent (construct) {
icon = "GameSelectButton";
label = "";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonMap" in Symbol 1122 MovieClip [GameSelectMode] Frame 1
//component parameters
onClipEvent (construct) {
icon = "GameSelectButton";
label = "";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonTutorial" in Symbol 1122 MovieClip [GameSelectMode] Frame 1
//component parameters
onClipEvent (construct) {
icon = "GameSelectButton";
label = "";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 296 MovieClip [Button] "ButtonMod" in Symbol 1122 MovieClip [GameSelectMode] Frame 1
//component parameters
onClipEvent (construct) {
icon = "GameSelectButton";
label = "";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 1123 MovieClip [GameSelect] Frame 1
#initclip 460
Object.registerClass("GameSelect", GameSelect);
#endinitclip
Symbol 1124 MovieClip Frame 1
var fx_opts = new Object();
fx_opts.effect_duration = 450;
fx_opts.target_obj = this;
fx_opts.target_alpha = 0;
fx_opts.internal_clock = true;
fx_opts.onComplete = function () {
this.target_obj.removeMovieClip();
};
this.effect = new VisualEffect(fx_opts);
Symbol 1140 MovieClip [WeaponRackSliding] Frame 1
#initclip 466
Object.registerClass("WeaponRackSliding", WeaponRackSliding);
#endinitclip
Symbol 1145 MovieClip [ReviewRating] Frame 1
#initclip 462
Object.registerClass("ReviewRating", ReviewRating);
#endinitclip
Symbol 1147 MovieClip [ReviewWeapon] Frame 1
#initclip 463
Object.registerClass("ReviewWeapon", ReviewWeapon);
#endinitclip
Symbol 1155 MovieClip [ReviewModifier] Frame 1
#initclip 464
Object.registerClass("ReviewModifier", ReviewModifier);
#endinitclip
Symbol 1156 MovieClip [BuildPanel] Frame 1
#initclip 465
Object.registerClass("BuildPanel", BuildPanel);
#endinitclip
Symbol 1169 MovieClip Frame 1
this.stop();
Symbol 1186 MovieClip Frame 1