Combined Code
movieClip 7 Defaults {
#initclip
Object.registerClass('Defaults', mx.skins.halo.Defaults);
#endinitclip
}
movieClip 8 UIObjectExtensions {
#initclip
Object.registerClass('UIObjectExtensions', mx.core.ext.UIObjectExtensions);
#endinitclip
}
movieClip 9 UIObject {
#initclip
Object.registerClass('UIObject', mx.core.UIObject);
#endinitclip
frame 1 {
stop();
}
}
movieClip 10 Border {
#initclip
Object.registerClass('Border', mx.skins.Border);
#endinitclip
frame 1 {
stop();
}
}
movieClip 11 RectBorder {
#initclip
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass('RectBorder', mx.skins.halo.RectBorder);
#endinitclip
frame 1 {
stop();
}
}
button 14 {
on (keyPress '<Tab>') {
this.tabHandler();
}
}
movieClip 15 {
#initclip
Object.registerClass('FocusManager', mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, 'focusManager', mx.managers.DepthManager.highestDepth--);
}
#endinitclip
frame 1 {
}
}
movieClip 17 BoundingBox {
}
movieClip 18 FocusRect {
#initclip
Object.registerClass('FocusRect', mx.skins.halo.FocusRect);
#endinitclip
}
movieClip 19 FocusManager {
#initclip
Object.registerClass('FocusManager', mx.managers.FocusManager);
#endinitclip
frame 1 {
stop();
}
}
movieClip 20 UIComponentExtensions {
#initclip
Object.registerClass('UIComponentExtensions', mx.core.ext.UIComponentExtensions);
#endinitclip
}
movieClip 21 UIComponent {
#initclip
Object.registerClass('UIComponent', mx.core.UIComponent);
#endinitclip
frame 1 {
stop();
}
}
movieClip 22 TextInput {
#initclip
Object.registerClass('TextInput', mx.controls.TextInput);
#endinitclip
frame 1 {
stop();
}
}
movieClip 51 {
frame 1 {
onEnterFrame = function () {
if (_visible) {
_rotation = _rotation + 30;
} else {
delete onEnterFrame;
}
};
}
}
movieClip 53 {
frame 10 {
stop();
}
}
movieClip 55 {
frame 37 {
_parent.setGotoFrame('done');
stop();
}
}
movieClip 57 {
}
movieClip 59 NewgroundsAPIAsset_Medal_Icon_Placeholder {
}
movieClip 67 NewgroundsAPIAsset_Medal_Popup {
frame 1 {
function endDelay() {
clearInterval(pop_delay);
gotoAndPlay('closeme');
}
_visible = true;
icon._visible = false;
pop_delay = setInterval(endDelay, 3000);
}
frame 2 {
medal.attachIcon(icon);
}
frame 10 {
icon._visible = true;
medal_name = medal.getName();
medal_value = medal.getValue() + 'pts';
stop();
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 73 NewgroundsAPIAsset_Login_Warning {
frame 1 {
function endDelay() {
clearInterval(pop_delay);
gotoAndPlay('closeme');
}
_x = 0;
_y = 0;
_visible = true;
pop_delay = setInterval(endDelay, 6000);
}
frame 10 {
stop();
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 76 NewgroundsAPIAsset_Connection_Error {
frame 1 {
function endDelay() {
clearInterval(pop_delay);
gotoAndPlay('closeme');
}
_x = 0;
_y = 0;
_visible = true;
pop_delay = setInterval(endDelay, 6000);
}
frame 10 {
stop();
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 78 {
}
movieClip 80 {
}
movieClip 82 {
}
movieClip 84 {
}
movieClip 86 {
}
movieClip 88 {
}
movieClip 90 {
}
movieClip 92 {
}
movieClip 94 {
}
movieClip 96 {
}
movieClip 97 NewgroundsAPIAsset_big_popup_background {
frame 1 {
var w = Math.round(this._width);
var h = Math.round(this._height);
if (w < 80) {
w = 80;
}
if (h < 80) {
h = 80;
}
this._width = 350;
this._height = 120;
t._width = w - 2;
t._x = 1;
b._width = w - 2;
b._x = 1;
c._width = w - 2;
c._x = 1;
c._height = h - 2;
c._y = 1;
l._height = h - 2;
l._y = 1;
r._height = h - 2;
r._y = 1;
tr._x = w - 7;
r._x = w - 7;
br._x = w - 7;
b._y = h - 7;
bl._y = h - 7;
br._y = h - 7;
shadow._width = w + 10;
shadow._height = h + 10;
}
}
button 101 {
on (release) {
this._visible = false;
this.removeMovieClip();
}
}
button 107 {
on (release) {
getURL(official_version_url, '_blank');
}
}
movieClip 109 NewgroundsAsset_New_Version_Available {
frame 1 {
_x = Stage.width / 2;
_y = Stage.height / 2;
background._width = Stage.width + 200;
background._height = Stage.height + 200;
background._x = -(_x + 100);
background._y = -(_y + 100);
}
}
button 110 {
on (release) {
getURL(official_version_url, '_blank');
}
}
movieClip 114 NewgroundsAsset_Illegal_Host {
frame 1 {
_x = Stage.width / 2;
_y = Stage.height / 2;
background._width = Stage.width + 200;
background._height = Stage.height + 200;
background._x = -(_x + 100);
background._y = -(_y + 100);
}
}
movieClip 115 API Connector (NewgroundsAPI) {
#initclip
Object.registerClass('API Connector (NewgroundsAPI)', com.newgrounds.components.APIConnector);
#endinitclip
frame 20 {
_visible = false;
}
}
frame 1 {
var NoMenu = new ContextMenu();
NoMenu.hideBuiltInItems();
this.menu = NoMenu;
}
frame 1 {
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
this.loadBar._width = getPercent * 640;
this.loadText = Math.round(getPercent * 100) + ' %';
if (bytes_loaded == bytes_total) {
_root.gotoAndStop(3);
}
}
movieClip 143 {
}
movieClip 145 {
}
movieClip 148 {
}
movieClip 149 {
}
movieClip 151 {
}
movieClip 153 {
}
// unknown tag 88 length 64
movieClip 159 {
}
movieClip 163 {
}
button 165 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
getURL('http://www.armorgames.com/', _blank);
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
// unknown tag 88 length 75
// unknown tag 88 length 92
movieClip 2 __Packages.mx.core.UIObject {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.core) {
_global.mx.core = new Object();
}
if (!_global.mx.core.UIObject) {
var v1 = function () {
super();
this.constructObject();
};
mx.core.UIObject = v1;
var v2 = new MovieClip();
mx.core.UIObject.prototype = v2;
v2.__get__width = function () {
return this._width;
};
v2.__get__height = function () {
return this._height;
};
v2.__get__left = function () {
return this._x;
};
v2.__get__x = function () {
return this._x;
};
v2.__get__top = function () {
return this._y;
};
v2.__get__y = function () {
return this._y;
};
v2.__get__right = function () {
return this._parent.width - (this._x + this.__get__width());
};
v2.__get__bottom = function () {
return this._parent.height - (this._y + this.__get__height());
};
v2.getMinHeight = function (Void) {
return this._minHeight;
};
v2.setMinHeight = function (h) {
this._minHeight = h;
};
v2.__get__minHeight = function () {
return this.getMinHeight();
};
v2.__set__minHeight = function (h) {
this.setMinHeight(h);
return this.__get__minHeight();
};
v2.getMinWidth = function (Void) {
return this._minWidth;
};
v2.setMinWidth = function (w) {
this._minWidth = w;
};
v2.__get__minWidth = function () {
return this.getMinWidth();
};
v2.__set__minWidth = function (w) {
this.setMinWidth(w);
return this.__get__minWidth();
};
v2.setVisible = function (x, noEvent) {
if (x != this._visible) {
this._visible = x;
if (noEvent != true) {
this.dispatchEvent({'type': x ? 'reveal' : 'hide'});
}
}
};
v2.__get__visible = function () {
return this._visible;
};
v2.__set__visible = function (x) {
this.setVisible(x, false);
return this.__get__visible();
};
v2.__get__scaleX = function () {
return this._xscale;
};
v2.__set__scaleX = function (x) {
this._xscale = x;
return this.__get__scaleX();
};
v2.__get__scaleY = function () {
return this._yscale;
};
v2.__set__scaleY = function (y) {
this._yscale = y;
return this.__get__scaleY();
};
v2.doLater = function (obj, fn) {
if (this.methodTable == undefined) {
this.methodTable = new Array();
}
this.methodTable.push({'obj': obj, 'fn': fn});
this.onEnterFrame = this.doLaterDispatcher;
};
v2.doLaterDispatcher = function (Void) {
delete this.onEnterFrame;
if (this.invalidateFlag) {
this.redraw();
}
var v3 = this.methodTable;
this.methodTable = new Array();
if (v3.length > 0) {
var v2;
v2 = v3.shift();
while (v2 != undefined) {
v2.obj[v2.fn]();
}
}
};
v2.cancelAllDoLaters = function (Void) {
delete this.onEnterFrame;
this.methodTable = new Array();
};
v2.invalidate = function (Void) {
this.invalidateFlag = true;
this.onEnterFrame = this.doLaterDispatcher;
};
v2.invalidateStyle = function (Void) {
this.invalidate();
};
v2.redraw = function (bAlways) {
if (this.invalidateFlag || bAlways) {
this.invalidateFlag = false;
var v2;
for (v2 in this.tfList) {
this.tfList[v2].draw();
}
this.draw();
this.dispatchEvent({'type': 'draw'});
}
};
v2.draw = function (Void) {};
v2.move = function (x, y, noEvent) {
var v3 = this._x;
var v2 = this._y;
this._x = x;
this._y = y;
if (noEvent != true) {
this.dispatchEvent({'type': 'move', 'oldX': v3, 'oldY': v2});
}
};
v2.setSize = function (w, h, noEvent) {
var v2 = this.__width;
var v3 = this.__height;
this.__width = w;
this.__height = h;
this.size();
if (noEvent != true) {
this.dispatchEvent({'type': 'resize', 'oldWidth': v2, 'oldHeight': v3});
}
};
v2.size = function (Void) {
this._width = this.__width;
this._height = this.__height;
};
v2.drawRect = function (x1, y1, x2, y2) {
this.moveTo(x1, y1);
this.lineTo(x2, y1);
this.lineTo(x2, y2);
this.lineTo(x1, y2);
this.lineTo(x1, y1);
};
v2.createLabel = function (name, depth, text) {
this.createTextField(name, depth, 0, 0, 0, 0);
var v2 = this[name];
v2._color = mx.core.UIObject.textColorList;
v2._visible = false;
v2.__text = text;
if (this.tfList == undefined) {
this.tfList = new Object();
}
this.tfList[name] = v2;
v2.invalidateStyle();
this.invalidate();
v2.styleName = this;
return v2;
};
v2.createObject = function (linkageName, id, depth, initobj) {
return this.attachMovie(linkageName, id, depth, initobj);
};
v2.createClassObject = function (className, id, depth, initobj) {
var v3 = className.symbolName == undefined;
if (v3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var v4 = this.createObject(className.symbolOwner.symbolName, id, depth, initobj);
if (v3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return v4;
};
v2.createEmptyObject = function (id, depth) {
return this.createClassObject(mx.core.UIObject, id, depth);
};
v2.destroyObject = function (id) {
var v2 = this[id];
if (v2.getDepth() < 0) {
var v4 = this.buildDepthTable();
var v5 = this.findNextAvailableDepth(0, v4, 'up');
var v3 = v5;
v2.swapDepths(v3);
}
v2.removeMovieClip();
delete this[id];
};
v2.getSkinIDName = function (tag) {
return this.idNames[tag];
};
v2.setSkin = function (tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return this.createObject(linkageName, this.getSkinIDName(tag), tag, initObj);
};
v2.createSkin = function (tag) {
var v2 = this.getSkinIDName(tag);
this.createEmptyObject(v2, tag);
return this[v2];
};
v2.createChildren = function (Void) {};
v2._createChildren = function (Void) {
this.createChildren();
this.childrenCreated = true;
};
v2.constructObject = function (Void) {
if (this._name == undefined) {
return undefined;
}
this.init();
this._createChildren();
this.createAccessibilityImplementation();
this._endInit();
if (this.validateNow) {
this.redraw(true);
} else {
this.invalidate();
}
};
v2.initFromClipParameters = function (Void) {
var v4 = false;
var v2;
for (v2 in this.clipParameters) {
if (this.hasOwnProperty(v2)) {
v4 = true;
this['def_' + v2] = this[v2];
delete this[v2];
}
}
if (v4) {
for (v2 in this.clipParameters) {
var v3 = this['def_' + v2];
if (v3 != undefined) {
this[v2] = v3;
}
}
}
};
v2.init = function (Void) {
this.__width = this._width;
this.__height = this._height;
if (this.initProperties == undefined) {
this.initFromClipParameters();
} else {
this.initProperties();
}
if (_global.cascadingStyles == true) {
this.stylecache = new Object();
}
};
v2.getClassStyleDeclaration = function (Void) {
var v4 = this;
var v3 = this.className;
while (v3 != undefined) {
if (this.ignoreClassStyleDeclaration[v3] == undefined) {
if (_global.styles[v3] != undefined) {
return _global.styles[v3];
}
}
v4 = v4.__proto__;
v3 = v4.className;
}
};
v2.setColor = function (color) {};
v2.__getTextFormat = function (tf, bAll) {
var v8 = this.stylecache.tf;
if (v8 != undefined) {
var v3;
for (v3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) {
if (tf[v3] == undefined) {
tf[v3] = v8[v3];
}
}
}
return false;
}
var v6 = false;
for (v3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) {
if (tf[v3] == undefined) {
var v5 = this._tf[v3];
if (v5 != undefined) {
tf[v3] = v5;
} else {
if (v3 == 'font' && this.fontFamily != undefined) {
tf[v3] = this.fontFamily;
} else {
if (v3 == 'size' && this.fontSize != undefined) {
tf[v3] = this.fontSize;
} else {
if (v3 == 'color' && this.color != undefined) {
tf[v3] = this.color;
} else {
if (v3 == 'leftMargin' && this.marginLeft != undefined) {
tf[v3] = this.marginLeft;
} else {
if (v3 == 'rightMargin' && this.marginRight != undefined) {
tf[v3] = this.marginRight;
} else {
if (v3 == 'italic' && this.fontStyle != undefined) {
tf[v3] = this.fontStyle == v3;
} else {
if (v3 == 'bold' && this.fontWeight != undefined) {
tf[v3] = this.fontWeight == v3;
} else {
if (v3 == 'align' && this.textAlign != undefined) {
tf[v3] = this.textAlign;
} else {
if (v3 == 'indent' && this.textIndent != undefined) {
tf[v3] = this.textIndent;
} else {
if (v3 == 'underline' && this.textDecoration != undefined) {
tf[v3] = this.textDecoration == v3;
} else {
if (v3 == 'embedFonts' && this.embedFonts != undefined) {
tf[v3] = this.embedFonts;
} else {
v6 = true;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
if (v6) {
var v9 = this.styleName;
if (v9 != undefined) {
if (typeof v9 != 'string') {
v6 = v9.__getTextFormat(tf, true, this);
} else {
if (_global.styles[v9] != undefined) {
v6 = _global.styles[v9].__getTextFormat(tf, true, this);
}
}
}
}
if (v6) {
var v10 = this.getClassStyleDeclaration();
if (v10 != undefined) {
v6 = v10.__getTextFormat(tf, true, this);
}
}
if (v6) {
if (_global.cascadingStyles) {
if (this._parent != undefined) {
v6 = this._parent.__getTextFormat(tf, false);
}
}
}
if (v6) {
v6 = _global.style.__getTextFormat(tf, true, this);
}
return v6;
};
v2._getTextFormat = function (Void) {
var v2 = this.stylecache.tf;
if (v2 != undefined) {
return v2;
}
v2 = new TextFormat();
this.__getTextFormat(v2, true);
this.stylecache.tf = v2;
if (this.enabled == false) {
var v3 = this.getStyle('disabledColor');
v2.color = v3;
}
return v2;
};
v2.getStyleName = function (Void) {
var v2 = this.styleName;
if (v2 != undefined) {
if (typeof v2 != 'string') {
return v2.getStyleName();
} else {
return v2;
}
}
if (this._parent != undefined) {
return this._parent.getStyleName();
} else {
return undefined;
}
};
v2.getStyle = function (styleProp) {
var v3;
++_global.getStyleCounter;
if (this[styleProp] != undefined) {
return this[styleProp];
}
var v6 = this.styleName;
if (v6 != undefined) {
if (typeof v6 != 'string') {
v3 = v6.getStyle(styleProp);
} else {
var v7 = _global.styles[v6];
v3 = v7.getStyle(styleProp);
}
}
if (v3 != undefined) {
return v3;
}
v7 = this.getClassStyleDeclaration();
if (v7 != undefined) {
v3 = v7[styleProp];
}
if (v3 != undefined) {
return v3;
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || mx.styles.StyleManager.isColorStyle(styleProp)) {
var v5 = this.stylecache;
if (v5 != undefined) {
if (v5[styleProp] != undefined) {
return v5[styleProp];
}
}
if (this._parent != undefined) {
v3 = this._parent.getStyle(styleProp);
} else {
v3 = _global.style[styleProp];
}
if (v5 != undefined) {
v5[styleProp] = v3;
}
return v3;
}
}
if (v3 == undefined) {
v3 = _global.style[styleProp];
}
return v3;
};
v1.mergeClipParameters = function (o, p) {
for (var v3 in p) {
o[v3] = p[v3];
}
return true;
};
v1.symbolName = 'UIObject';
v1.symbolOwner = mx.core.UIObject;
v1.version = '2.0.2.127';
v1.textColorList = {'color': 1, 'disabledColor': 1};
v2.invalidateFlag = false;
v2.lineWidth = 1;
v2.lineColor = 0;
v2.tabEnabled = false;
v2.clipParameters = {'visible': 1, 'minHeight': 1, 'minWidth': 1, 'maxHeight': 1, 'maxWidth': 1, 'preferredHeight': 1, 'preferredWidth': 1};
v2.addProperty('bottom', v2.__get__bottom, function () {});
v2.addProperty('height', v2.__get__height, function () {});
v2.addProperty('left', v2.__get__left, function () {});
v2.addProperty('minHeight', v2.__get__minHeight, v2.__set__minHeight);
v2.addProperty('minWidth', v2.__get__minWidth, v2.__set__minWidth);
v2.addProperty('right', v2.__get__right, function () {});
v2.addProperty('scaleX', v2.__get__scaleX, v2.__set__scaleX);
v2.addProperty('scaleY', v2.__get__scaleY, v2.__set__scaleY);
v2.addProperty('top', v2.__get__top, function () {});
v2.addProperty('visible', v2.__get__visible, v2.__set__visible);
v2.addProperty('width', v2.__get__width, function () {});
v2.addProperty('x', v2.__get__x, function () {});
v2.addProperty('y', v2.__get__y, function () {});
ASSetPropFlags(mx.core.UIObject.prototype, null, 1);
}
#endinitclip
}
movieClip 3 __Packages.mx.core.UIComponent {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.core) {
_global.mx.core = new Object();
}
if (!_global.mx.core.UIComponent) {
var v1 = function () {
super();
};
mx.core.UIComponent = v1;
var v2 = new mx.core.UIObject();
mx.core.UIComponent.prototype = v2;
v2.__get__width = function () {
return this.__width;
};
v2.__get__height = function () {
return this.__height;
};
v2.setVisible = function (x, noEvent) {
super.setVisible(x, noEvent);
};
v2.enabledChanged = function (id, oldValue, newValue) {
this.setEnabled(newValue);
this.invalidate();
delete this.stylecache.tf;
return newValue;
};
v2.setEnabled = function (enabled) {
this.invalidate();
};
v2.getFocus = function () {
var selFocus = Selection.getFocus();
return (selFocus === null) ? null : eval(selFocus);
};
v2.setFocus = function () {
Selection.setFocus(this);
};
v2.getFocusManager = function () {
var v2 = this;
while (v2 != undefined) {
if (v2.focusManager != undefined) {
return v2.focusManager;
}
v2 = v2._parent;
}
return undefined;
};
v2.onKillFocus = function (newFocus) {
this.removeEventListener('keyDown', this);
this.removeEventListener('keyUp', this);
this.dispatchEvent({'type': 'focusOut'});
this.drawFocus(false);
};
v2.onSetFocus = function (oldFocus) {
this.addEventListener('keyDown', this);
this.addEventListener('keyUp', this);
this.dispatchEvent({'type': 'focusIn'});
if ((this.getFocusManager()).bDrawFocus != false) {
this.drawFocus(true);
}
};
v2.findFocusInChildren = function (o) {
if (o.focusTextField != undefined) {
return o.focusTextField;
}
if (o.tabEnabled == true) {
return o;
}
return undefined;
};
v2.findFocusFromObject = function (o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return undefined;
}
if (o._parent.tabEnabled == true) {
o = o._parent;
return o;
}
if (o._parent.tabChildren) {
o = this.findFocusInChildren(o._parent);
return o;
}
o = this.findFocusFromObject(o._parent);
}
return o;
};
v2.pressFocus = function () {
var v3 = this.findFocusFromObject(this);
var v2 = this.getFocus();
if (v3 != v2) {
v2.drawFocus(false);
if ((this.getFocusManager()).bDrawFocus != false) {
v3.drawFocus(true);
}
}
};
v2.releaseFocus = function () {
var v2 = this.findFocusFromObject(this);
if (v2 != this.getFocus()) {
v2.setFocus();
}
};
v2.isParent = function (o) {
while (o != undefined) {
if (o == this) {
return true;
}
o = o._parent;
}
return false;
};
v2.size = function () {};
v2.init = function () {
super.init();
this._xscale = 100;
this._yscale = 100;
this._focusrect = _global.useFocusRect == false;
this.watch('enabled', this.enabledChanged);
if (this.enabled == false) {
this.setEnabled(false);
}
};
v2.dispatchValueChangedEvent = function (value) {
this.dispatchEvent({'type': 'valueChanged', 'value': value});
};
v1.symbolName = 'UIComponent';
v1.symbolOwner = mx.core.UIComponent;
v1.version = '2.0.2.127';
v1.kStretch = 5000;
v2.focusEnabled = true;
v2.tabEnabled = true;
v2.origBorderStyles = {'themeColor': 16711680};
v2.clipParameters = {};
v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
v2.addProperty('height', v2.__get__height, function () {});
v2.addProperty('width', v2.__get__width, function () {});
ASSetPropFlags(mx.core.UIComponent.prototype, null, 1);
}
#endinitclip
}
movieClip 4 __Packages.mx.controls.TextInput {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.controls) {
_global.mx.controls = new Object();
}
if (!_global.mx.controls.TextInput) {
var v1 = function () {
super();
};
mx.controls.TextInput = v1;
var v2 = new mx.core.UIComponent();
mx.controls.TextInput.prototype = v2;
v2.addEventListener = function (event, handler) {
if (event == 'enter') {
this.addEnterEvents();
}
super.addEventListener(event, handler);
};
v2.enterOnKeyDown = function () {
if (Key.getAscii() == 13) {
this.owner.dispatchEvent({'type': 'enter'});
}
};
v2.addEnterEvents = function () {
if (this.enterListener == undefined) {
this.enterListener = new Object();
this.enterListener.owner = this;
this.enterListener.onKeyDown = this.enterOnKeyDown;
}
};
v2.init = function (Void) {
super.init();
this.label.styleName = this;
this.tabChildren = true;
this.tabEnabled = false;
this.focusTextField = this.label;
this._color = mx.core.UIObject.textColorList;
this.label.onSetFocus = function () {
this._parent.onSetFocus();
};
this.label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
this.label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
this.label.onChanged = this.onLabelChanged;
};
v2.setFocus = function () {
Selection.setFocus(this.label);
};
v2.onLabelChanged = function (Void) {
this._parent.dispatchEvent({'type': 'change'});
this._parent.dispatchValueChangedEvent(this.__get__text());
};
v2.createChildren = function (Void) {
super.createChildren();
if (this.border_mc == undefined) {
this.createClassObject(_global.styles.rectBorderClass, 'border_mc', 0, {'styleName': this});
}
this.border_mc.swapDepths(this.label);
this.label.autoSize = 'none';
};
v2.__get__html = function () {
return this.getHtml();
};
v2.__set__html = function (value) {
this.setHtml(value);
return this.__get__html();
};
v2.getHtml = function () {
return this.label.html;
};
v2.setHtml = function (value) {
if (value != this.label.html) {
this.label.html = value;
}
};
v2.__get__text = function () {
return this.getText();
};
v2.__set__text = function (t) {
this.setText(t);
return this.__get__text();
};
v2.getText = function () {
if (this.initializing) {
return this.initText;
}
if (this.label.html == true) {
return this.label.htmlText;
}
return this.label.text;
};
v2.setText = function (t) {
if (this.initializing) {
this.initText = t;
} else {
var v2 = this.label;
if (v2.html == true) {
v2.htmlText = t;
} else {
v2.text = t;
}
}
this.dispatchValueChangedEvent(t);
};
v2.size = function (Void) {
this.border_mc.setSize(this.__get__width(), this.__get__height());
var v2 = this.border_mc.__get__borderMetrics();
var v6 = v2.left + v2.right;
var v3 = v2.top + v2.bottom;
var v5 = v2.left;
var v4 = v2.top;
this.tfx = v5;
this.tfy = v4;
this.tfw = this.__get__width() - v6;
this.tfh = this.__get__height() - v3;
this.label.move(this.tfx, this.tfy);
this.label.setSize(this.tfw, this.tfh + 1);
};
v2.setEnabled = function (enable) {
this.label.type = (this.__editable == true || enable == false) ? 'input' : 'dynamic';
this.label.selectable = enable;
var v2 = this.getStyle(enable ? 'color' : 'disabledColor');
if (v2 == undefined) {
v2 = enable ? 0 : 8947848;
}
this.setColor(v2);
};
v2.setColor = function (col) {
this.label.textColor = col;
};
v2.onKillFocus = function (newFocus) {
if (this.enterListener != undefined) {
Key.removeListener(this.enterListener);
}
if (this.bind != undefined) {
this.updateModel(this.__get__text());
}
super.onKillFocus(newFocus);
};
v2.onSetFocus = function (oldFocus) {
var f = Selection.getFocus();
var o = eval(f);
if (o != this.label) {
Selection.setFocus(this.label);
return undefined;
}
if (this.enterListener != undefined) {
Key.addListener(this.enterListener);
}
super.onSetFocus(oldFocus);
};
v2.draw = function (Void) {
var v2 = this.label;
var v4 = this.getText();
if (this.initializing) {
this.initializing = false;
delete this.initText;
}
var v3 = this._getTextFormat();
v2.embedFonts = v3.embedFonts == true;
if (v3 != undefined) {
v2.setTextFormat(v3);
v2.setNewTextFormat(v3);
}
v2.multiline = false;
v2.wordWrap = false;
if (v2.html == true) {
v2.setTextFormat(v3);
v2.htmlText = v4;
} else {
v2.text = v4;
}
v2.type = (this.__editable == true || this.enabled == false) ? 'input' : 'dynamic';
this.size();
};
v2.setEditable = function (s) {
this.__editable = s;
this.label.type = s ? 'input' : 'dynamic';
};
v2.__get__maxChars = function () {
return this.label.maxChars;
};
v2.__set__maxChars = function (w) {
this.label.maxChars = w;
return this.__get__maxChars();
};
v2.__get__length = function () {
return this.label.length;
};
v2.__get__restrict = function () {
return this.label.restrict;
};
v2.__set__restrict = function (w) {
this.label.restrict = (w == '') ? null : w;
return this.__get__restrict();
};
v2.__get__hPosition = function () {
return this.label.hscroll;
};
v2.__set__hPosition = function (w) {
this.label.hscroll = w;
return this.__get__hPosition();
};
v2.__get__maxHPosition = function () {
return this.label.maxhscroll;
};
v2.__get__editable = function () {
return this.__editable;
};
v2.__set__editable = function (w) {
this.setEditable(w);
return this.__get__editable();
};
v2.__get__password = function () {
return this.label.password;
};
v2.__set__password = function (w) {
this.label.password = w;
return this.__get__password();
};
v2.__get__tabIndex = function () {
return this.label.tabIndex;
};
v2.__set__tabIndex = function (w) {
this.label.tabIndex = w;
return this.__get__tabIndex();
};
v2.__set___accProps = function (val) {
this.label._accProps = val;
return this.__get___accProps();
};
v2.__get___accProps = function () {
return this.label._accProps;
};
v1.symbolName = 'TextInput';
v1.symbolOwner = mx.controls.TextInput;
v1.version = '2.0.2.127';
v2.className = 'TextInput';
v2.initializing = true;
v2.clipParameters = {'text': 1, 'editable': 1, 'password': 1, 'maxChars': 1, 'restrict': 1};
v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
v2._maxWidth = mx.core.UIComponent.kStretch;
v2.__editable = true;
v2.initText = '';
v2.addProperty('_accProps', v2.__get___accProps, v2.__set___accProps);
v2.addProperty('editable', v2.__get__editable, v2.__set__editable);
v2.addProperty('hPosition', v2.__get__hPosition, v2.__set__hPosition);
v2.addProperty('html', v2.__get__html, v2.__set__html);
v2.addProperty('length', v2.__get__length, function () {});
v2.addProperty('maxChars', v2.__get__maxChars, v2.__set__maxChars);
v2.addProperty('maxHPosition', v2.__get__maxHPosition, function () {});
v2.addProperty('password', v2.__get__password, v2.__set__password);
v2.addProperty('restrict', v2.__get__restrict, v2.__set__restrict);
v2.addProperty('tabIndex', v2.__get__tabIndex, v2.__set__tabIndex);
v2.addProperty('text', v2.__get__text, v2.__set__text);
ASSetPropFlags(mx.controls.TextInput.prototype, null, 1);
}
#endinitclip
}
movieClip 23 __Packages.mx.skins.SkinElement {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.skins) {
_global.mx.skins = new Object();
}
if (!_global.mx.skins.SkinElement) {
var v1 = function () {
super();
};
mx.skins.SkinElement = v1;
var v2 = new MovieClip();
mx.skins.SkinElement.prototype = v2;
v1.registerElement = function (name, className) {
Object.registerClass(name, (className == undefined) ? mx.skins.SkinElement : className);
_global.skinRegistry[name] = true;
};
v2.__set__visible = function (visible) {
this._visible = visible;
};
v2.move = function (x, y) {
this._x = x;
this._y = y;
};
v2.setSize = function (w, h) {
this._width = w;
this._height = h;
};
ASSetPropFlags(mx.skins.SkinElement.prototype, null, 1);
}
#endinitclip
}
movieClip 24 __Packages.mx.styles.CSSTextStyles {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.styles) {
_global.mx.styles = new Object();
}
if (!_global.mx.styles.CSSTextStyles) {
var v1 = function () {};
mx.styles.CSSTextStyles = v1;
var v2 = v1.prototype;
v1.addTextStyles = function (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;
});
};
ASSetPropFlags(mx.styles.CSSTextStyles.prototype, null, 1);
}
#endinitclip
}
movieClip 25 __Packages.mx.styles.StyleManager {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.styles) {
_global.mx.styles = new Object();
}
if (!_global.mx.styles.StyleManager) {
var v1 = function () {};
mx.styles.StyleManager = v1;
var v2 = v1.prototype;
v1.registerInheritingStyle = function (styleName) {
mx.styles.StyleManager.inheritingStyles[styleName] = true;
};
v1.isInheritingStyle = function (styleName) {
return mx.styles.StyleManager.inheritingStyles[styleName] == true;
};
v1.registerColorStyle = function (styleName) {
mx.styles.StyleManager.colorStyles[styleName] = true;
};
v1.isColorStyle = function (styleName) {
return mx.styles.StyleManager.colorStyles[styleName] == true;
};
v1.registerColorName = function (colorName, colorValue) {
mx.styles.StyleManager.colorNames[colorName] = colorValue;
};
v1.isColorName = function (colorName) {
return mx.styles.StyleManager.colorNames[colorName] != undefined;
};
v1.getColorName = function (colorName) {
return mx.styles.StyleManager.colorNames[colorName];
};
v1.inheritingStyles = {'color': true, 'direction': true, 'fontFamily': true, 'fontSize': true, 'fontStyle': true, 'fontWeight': true, 'textAlign': true, 'textIndent': true};
v1.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};
v1.colorNames = {'black': 0, 'white': 16777215, 'red': 16711680, 'green': 65280, 'blue': 255, 'magenta': 16711935, 'yellow': 16776960, 'cyan': 65535, 'haloGreen': 8453965, 'haloBlue': 2881013, 'haloOrange': 16761344};
v1.TextFormatStyleProps = {'font': true, 'size': true, 'color': true, 'leftMargin': false, 'rightMargin': false, 'italic': true, 'bold': true, 'align': true, 'indent': true, 'underline': false, 'embedFonts': false};
v1.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};
ASSetPropFlags(mx.styles.StyleManager.prototype, null, 1);
}
#endinitclip
}
movieClip 26 __Packages.mx.styles.CSSStyleDeclaration {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.styles) {
_global.mx.styles = new Object();
}
if (!_global.mx.styles.CSSStyleDeclaration) {
var v1 = function () {};
mx.styles.CSSStyleDeclaration = v1;
var v2 = v1.prototype;
v2.__getTextFormat = function (tf, bAll) {
var v5 = false;
if (this._tf != undefined) {
var v2;
for (v2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v2]) {
if (tf[v2] == undefined) {
var v3 = this._tf[v2];
if (v3 != undefined) {
tf[v2] = v3;
} else {
v5 = true;
}
}
}
}
return v5;
}
v5 = true;
return v5;
};
v2.getStyle = function (styleProp) {
var v2 = this[styleProp];
var v3 = mx.styles.StyleManager.getColorName(v2);
return (v3 == undefined) ? v2 : v3;
};
v1.classConstruct = function () {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return true;
};
v1.classConstructed = mx.styles.CSSStyleDeclaration.classConstruct();
v1.CSSTextStylesDependency = mx.styles.CSSTextStyles;
ASSetPropFlags(mx.styles.CSSStyleDeclaration.prototype, null, 1);
}
#endinitclip
}
movieClip 27 __Packages.mx.skins.Border {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.skins) {
_global.mx.skins = new Object();
}
if (!_global.mx.skins.Border) {
var v1 = function () {
super();
};
mx.skins.Border = v1;
var v2 = new mx.core.UIObject();
mx.skins.Border.prototype = v2;
v2.init = function (Void) {
super.init();
};
v1.symbolName = 'Border';
v1.symbolOwner = mx.skins.Border;
v2.className = 'Border';
v2.tagBorder = 0;
v2.idNames = new Array('border_mc');
ASSetPropFlags(mx.skins.Border.prototype, null, 1);
}
#endinitclip
}
movieClip 28 __Packages.mx.skins.RectBorder {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.skins) {
_global.mx.skins = new Object();
}
if (!_global.mx.skins.RectBorder) {
var v1 = function () {
super();
};
mx.skins.RectBorder = v1;
var v2 = new mx.skins.Border();
mx.skins.RectBorder.prototype = v2;
v2.__get__width = function () {
return this.__width;
};
v2.__get__height = function () {
return this.__height;
};
v2.init = function (Void) {
super.init();
};
v2.draw = function (Void) {
this.size();
};
v2.getBorderMetrics = function (Void) {
var v2 = this.offset;
if (this.__borderMetrics == undefined) {
this.__borderMetrics = {'left': v2, 'top': v2, 'right': v2, 'bottom': v2};
return this.__borderMetrics;
}
this.__borderMetrics.left = v2;
this.__borderMetrics.top = v2;
this.__borderMetrics.right = v2;
this.__borderMetrics.bottom = v2;
return this.__borderMetrics;
};
v2.__get__borderMetrics = function () {
return this.getBorderMetrics();
};
v2.drawBorder = function (Void) {};
v2.size = function (Void) {
this.drawBorder();
};
v2.setColor = function (Void) {
this.drawBorder();
};
v1.symbolName = 'RectBorder';
v1.symbolOwner = mx.skins.RectBorder;
v1.version = '2.0.2.127';
v2.className = 'RectBorder';
v2.borderStyleName = 'borderStyle';
v2.borderColorName = 'borderColor';
v2.shadowColorName = 'shadowColor';
v2.highlightColorName = 'highlightColor';
v2.buttonColorName = 'buttonColor';
v2.backgroundColorName = 'backgroundColor';
v2.addProperty('borderMetrics', v2.__get__borderMetrics, function () {});
v2.addProperty('height', v2.__get__height, function () {});
v2.addProperty('width', v2.__get__width, function () {});
ASSetPropFlags(mx.skins.RectBorder.prototype, null, 1);
}
#endinitclip
}
movieClip 29 __Packages.mx.events.EventDispatcher {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.events) {
_global.mx.events = new Object();
}
if (!_global.mx.events.EventDispatcher) {
var v1 = function () {};
mx.events.EventDispatcher = v1;
var v2 = v1.prototype;
v1._removeEventListener = function (queue, event, handler) {
if (queue != undefined) {
var v4 = queue.length;
var v1;
v1 = 0;
while (v1 < v4) {
var v2 = queue[v1];
if (v2 == handler) {
queue.splice(v1, 1);
return undefined;
}
++v1;
}
}
};
v1.initialize = function (object) {
if (mx.events.EventDispatcher._fEventDispatcher == undefined) {
mx.events.EventDispatcher._fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = mx.events.EventDispatcher._fEventDispatcher.addEventListener;
object.removeEventListener = mx.events.EventDispatcher._fEventDispatcher.removeEventListener;
object.dispatchEvent = mx.events.EventDispatcher._fEventDispatcher.dispatchEvent;
object.dispatchQueue = mx.events.EventDispatcher._fEventDispatcher.dispatchQueue;
};
v2.dispatchQueue = function (queueObj, eventObj) {
var v7 = '__q_' + eventObj.type;
var v4 = queueObj[v7];
if (v4 != undefined) {
var v5;
for (v5 in v4) {
var v1 = v4[v5];
var v3 = typeof v1;
if (v3 == 'object' || v3 == 'movieclip') {
if (v1.handleEvent != undefined) {
v1.handleEvent(eventObj);
}
if (v1[eventObj.type] != undefined) {
if (mx.events.EventDispatcher.exceptions[eventObj.type] == undefined) {
v1[eventObj.type](eventObj);
}
}
} else {
v1.apply(queueObj, [eventObj]);
}
}
}
};
v2.dispatchEvent = function (eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + 'Handler'](eventObj);
this.dispatchQueue(this, eventObj);
};
v2.addEventListener = function (event, handler) {
var v3 = '__q_' + event;
if (this[v3] == undefined) {
this[v3] = new Array();
}
_global.ASSetPropFlags(this, v3, 1);
mx.events.EventDispatcher._removeEventListener(this[v3], event, handler);
this[v3].push(handler);
};
v2.removeEventListener = function (event, handler) {
var v2 = '__q_' + event;
mx.events.EventDispatcher._removeEventListener(this[v2], event, handler);
};
v1._fEventDispatcher = undefined;
v1.exceptions = {'move': 1, 'draw': 1, 'load': 1};
ASSetPropFlags(mx.events.EventDispatcher.prototype, null, 1);
}
#endinitclip
}
movieClip 30 __Packages.mx.events.UIEventDispatcher {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.events) {
_global.mx.events = new Object();
}
if (!_global.mx.events.UIEventDispatcher) {
var v1 = function () {
super();
};
mx.events.UIEventDispatcher = v1;
var v2 = new mx.events.EventDispatcher();
mx.events.UIEventDispatcher.prototype = v2;
v1.addKeyEvents = function (obj) {
if (obj.keyHandler == undefined) {
obj.keyHandler = new Object();
var v1 = obj.keyHandler;
v1.owner = obj;
v1.onKeyDown = mx.events.UIEventDispatcher._fEventDispatcher.onKeyDown;
v1.onKeyUp = mx.events.UIEventDispatcher._fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
};
v1.removeKeyEvents = function (obj) {
Key.removeListener(obj.keyHandler);
};
v1.addLoadEvents = function (obj) {
if (obj.onLoad == undefined) {
obj.onLoad = mx.events.UIEventDispatcher._fEventDispatcher.onLoad;
obj.onUnload = mx.events.UIEventDispatcher._fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, 'onLoad');
}
}
};
v1.removeLoadEvents = function (obj) {
delete obj.onLoad;
delete obj.onUnload;
};
v1.initialize = function (obj) {
if (mx.events.UIEventDispatcher._fEventDispatcher == undefined) {
mx.events.UIEventDispatcher._fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = mx.events.UIEventDispatcher._fEventDispatcher.__addEventListener;
obj.__origAddEventListener = mx.events.UIEventDispatcher._fEventDispatcher.addEventListener;
obj.removeEventListener = mx.events.UIEventDispatcher._fEventDispatcher.removeEventListener;
obj.dispatchEvent = mx.events.UIEventDispatcher._fEventDispatcher.dispatchEvent;
obj.dispatchQueue = mx.events.UIEventDispatcher._fEventDispatcher.dispatchQueue;
};
v2.dispatchEvent = function (eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + 'Handler'](eventObj);
this.dispatchQueue(mx.events.EventDispatcher, eventObj);
this.dispatchQueue(this, eventObj);
};
v2.onKeyDown = function (Void) {
this.owner.dispatchEvent({'type': 'keyDown', 'code': Key.getCode(), 'ascii': Key.getAscii(), 'shiftKey': Key.isDown(16), 'ctrlKey': Key.isDown(17)});
};
v2.onKeyUp = function (Void) {
this.owner.dispatchEvent({'type': 'keyUp', 'code': Key.getCode(), 'ascii': Key.getAscii(), 'shiftKey': Key.isDown(16), 'ctrlKey': Key.isDown(17)});
};
v2.onLoad = function (Void) {
if (this.__sentLoadEvent != true) {
this.dispatchEvent({'type': 'load'});
}
this.__sentLoadEvent = true;
};
v2.onUnload = function (Void) {
this.dispatchEvent({'type': 'unload'});
};
v2.__addEventListener = function (event, handler) {
this.__origAddEventListener(event, handler);
var v3 = mx.events.UIEventDispatcher.lowLevelEvents;
for (var v5 in v3) {
if (mx.events.UIEventDispatcher[v5][event] != undefined) {
var v2 = v3[v5][0];
mx.events.UIEventDispatcher[v2](this);
}
}
};
v2.removeEventListener = function (event, handler) {
var v6 = '__q_' + event;
mx.events.EventDispatcher._removeEventListener(this[v6], event, handler);
if (this[v6].length == 0) {
var v2 = mx.events.UIEventDispatcher.lowLevelEvents;
for (var v5 in v2) {
if (mx.events.UIEventDispatcher[v5][event] != undefined) {
var v3 = v2[v5][1];
mx.events.UIEventDispatcher[v2[v5][1]](this);
}
}
}
};
v1.keyEvents = {'keyDown': 1, 'keyUp': 1};
v1.loadEvents = {'load': 1, 'unload': 1};
v1.lowLevelEvents = {'keyEvents': ['addKeyEvents', 'removeKeyEvents'], 'loadEvents': ['addLoadEvents', 'removeLoadEvents']};
v1._fEventDispatcher = undefined;
ASSetPropFlags(mx.events.UIEventDispatcher.prototype, null, 1);
}
#endinitclip
}
movieClip 31 __Packages.mx.skins.ColoredSkinElement {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.skins) {
_global.mx.skins = new Object();
}
if (!_global.mx.skins.ColoredSkinElement) {
var v1 = function () {};
mx.skins.ColoredSkinElement = v1;
var v2 = v1.prototype;
v2.setColor = function (c) {
if (c != undefined) {
var v2 = new Color(this);
v2.setRGB(c);
}
};
v2.draw = function (Void) {
this.setColor(this.getStyle(this._color));
this.onEnterFrame = undefined;
};
v2.invalidateStyle = function (Void) {
this.onEnterFrame = this.draw;
};
v1.setColorStyle = function (p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mx.skins.ColoredSkinElement.mixins.setColor;
p.invalidateStyle = mx.skins.ColoredSkinElement.mixins.invalidateStyle;
p.draw = mx.skins.ColoredSkinElement.mixins.draw;
p.setColor(p.getStyle(colorStyle));
};
v1.mixins = new mx.skins.ColoredSkinElement();
ASSetPropFlags(mx.skins.ColoredSkinElement.prototype, null, 1);
}
#endinitclip
}
movieClip 32 __Packages.mx.core.ext.UIObjectExtensions {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.core) {
_global.mx.core = new Object();
}
if (!_global.mx.core.ext) {
_global.mx.core.ext = new Object();
}
if (!_global.mx.core.ext.UIObjectExtensions) {
var v1 = function () {};
mx.core.ext.UIObjectExtensions = v1;
var v2 = v1.prototype;
v1.addGeometry = function (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);
};
v1.Extensions = function () {
if (mx.core.ext.UIObjectExtensions.bExtended == true) {
return true;
}
mx.core.ext.UIObjectExtensions.bExtended = true;
var v6 = mx.core.UIObject.prototype;
var v9 = mx.skins.SkinElement.prototype;
mx.core.ext.UIObjectExtensions.addGeometry(v9, v6);
mx.events.UIEventDispatcher.initialize(v6);
var v13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(v6);
var v5 = MovieClip.prototype;
v5.getTopLevel = v6.getTopLevel;
v5.createLabel = v6.createLabel;
v5.createObject = v6.createObject;
v5.createClassObject = v6.createClassObject;
v5.createEmptyObject = v6.createEmptyObject;
v5.destroyObject = v6.destroyObject;
_global.ASSetPropFlags(v5, 'getTopLevel', 1);
_global.ASSetPropFlags(v5, 'createLabel', 1);
_global.ASSetPropFlags(v5, 'createObject', 1);
_global.ASSetPropFlags(v5, 'createClassObject', 1);
_global.ASSetPropFlags(v5, 'createEmptyObject', 1);
_global.ASSetPropFlags(v5, 'destroyObject', 1);
v5.__getTextFormat = v6.__getTextFormat;
v5._getTextFormat = v6._getTextFormat;
v5.getStyleName = v6.getStyleName;
v5.getStyle = v6.getStyle;
_global.ASSetPropFlags(v5, '__getTextFormat', 1);
_global.ASSetPropFlags(v5, '_getTextFormat', 1);
_global.ASSetPropFlags(v5, 'getStyleName', 1);
_global.ASSetPropFlags(v5, 'getStyle', 1);
var v7 = TextField.prototype;
mx.core.ext.UIObjectExtensions.addGeometry(v7, v6);
v7.addProperty('enabled', function () {
return this.__enabled;
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
v7.move = v9.move;
v7.setSize = v9.setSize;
v7.invalidateStyle = function () {
this.invalidateFlag = true;
};
v7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var v2 = this._getTextFormat();
this.setTextFormat(v2);
this.setNewTextFormat(v2);
this.embedFonts = v2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == '') {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
v7.setColor = function (color) {
this.textColor = color;
};
v7.getStyle = v5.getStyle;
v7.__getTextFormat = v6.__getTextFormat;
v7.setValue = function (v) {
this.text = v;
};
v7.getValue = function () {
return this.text;
};
v7.addProperty('value', function () {
return this.getValue();
}, function (v) {
this.setValue(v);
});
v7._getTextFormat = function () {
var v2 = this.stylecache.tf;
if (v2 != undefined) {
return v2;
}
v2 = new TextFormat();
this.__getTextFormat(v2);
this.stylecache.tf = v2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var v4 = this.getTextFormat();
this.enabledColor = v4.color;
}
var v3 = this.getStyle('disabledColor');
v2.color = v3;
return v2;
}
if (this.enabledColor != undefined) {
if (v2.color == undefined) {
v2.color = this.enabledColor;
}
}
return v2;
};
v7.getPreferredWidth = function () {
this.draw();
return this.textWidth + 4;
};
v7.getPreferredHeight = function () {
this.draw();
return this.textHeight + 4;
};
TextFormat.prototype.getTextExtent2 = function (s) {
var v3 = _root._getTextExtent;
if (v3 == undefined) {
_root.createTextField('_getTextExtent', -2, 0, 0, 1000, 100);
v3 = _root._getTextExtent;
v3._visible = false;
}
_root._getTextExtent.text = s;
var v4 = this.align;
this.align = 'left';
_root._getTextExtent.setTextFormat(this);
this.align = v4;
return {'width': v3.textWidth, 'height': v3.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 v4 = _root;
while (v4._parent != undefined) {
v4 = v4._parent;
}
v4.addProperty('width', function () {
return Stage.width;
}, null);
v4.addProperty('height', function () {
return Stage.height;
}, null);
_global.ASSetPropFlags(v4, 'width', 1);
_global.ASSetPropFlags(v4, 'height', 1);
return true;
};
v1.bExtended = false;
v1.UIObjectExtended = mx.core.ext.UIObjectExtensions.Extensions();
v1.UIObjectDependency = mx.core.UIObject;
v1.SkinElementDependency = mx.skins.SkinElement;
v1.CSSTextStylesDependency = mx.styles.CSSTextStyles;
v1.UIEventDispatcherDependency = mx.events.UIEventDispatcher;
ASSetPropFlags(mx.core.ext.UIObjectExtensions.prototype, null, 1);
}
#endinitclip
}
movieClip 33 __Packages.mx.skins.halo.RectBorder {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.skins) {
_global.mx.skins = new Object();
}
if (!_global.mx.skins.halo) {
_global.mx.skins.halo = new Object();
}
if (!_global.mx.skins.halo.RectBorder) {
var v1 = function () {
super();
};
mx.skins.halo.RectBorder = v1;
var v2 = new mx.skins.RectBorder();
mx.skins.halo.RectBorder.prototype = v2;
v2.init = function (Void) {
this.borderWidths.default = 3;
super.init();
};
v2.getBorderMetrics = function (Void) {
if (this.offset == undefined) {
var v3 = this.getStyle(this.borderStyleName);
this.offset = this.borderWidths[v3];
}
if (this.getStyle(this.borderStyleName) == 'default' || this.getStyle(this.borderStyleName) == 'alert') {
this.__borderMetrics = {'left': 3, 'top': 1, 'right': 3, 'bottom': 3};
return this.__borderMetrics;
}
return super.getBorderMetrics();
};
v2.drawBorder = function (Void) {
var v6 = _global.styles[this.className];
if (v6 == undefined) {
v6 = _global.styles.RectBorder;
}
var v5 = this.getStyle(this.borderStyleName);
var v7 = this.getStyle(this.borderColorName);
if (v7 == undefined) {
v7 = v6[this.borderColorName];
}
var v8 = this.getStyle(this.backgroundColorName);
if (v8 == undefined) {
v8 = v6[this.backgroundColorName];
}
var v16 = this.getStyle('backgroundImage');
if (v5 != 'none') {
var v14 = this.getStyle(this.shadowColorName);
if (v14 == undefined) {
v14 = v6[this.shadowColorName];
}
var v13 = this.getStyle(this.highlightColorName);
if (v13 == undefined) {
v13 = v6[this.highlightColorName];
}
var v12 = this.getStyle(this.buttonColorName);
if (v12 == undefined) {
v12 = v6[this.buttonColorName];
}
var v11 = this.getStyle(this.borderCapColorName);
if (v11 == undefined) {
v11 = v6[this.borderCapColorName];
}
var v10 = this.getStyle(this.shadowCapColorName);
if (v10 == undefined) {
v10 = v6[this.shadowCapColorName];
}
}
this.offset = this.borderWidths[v5];
var v9 = this.offset;
var v3 = this.__get__width();
var v4 = this.__get__height();
this.clear();
this._color = undefined;
if (v5 == 'none') {
} else {
if (v5 == 'inset') {
this._color = this.colorList;
this.draw3dBorder(v11, v12, v7, v13, v14, v10);
} else {
if (v5 == 'outset') {
this._color = this.colorList;
this.draw3dBorder(v11, v7, v12, v14, v13, v10);
} else {
if (v5 == 'alert') {
var v15 = this.getStyle('themeColor');
this.drawRoundRect(0, 5, v3, v4 - 5, 5, 6184542, 10);
this.drawRoundRect(1, 4, v3 - 2, v4 - 5, 4, [6184542, 6184542], 10, 0, 'radial');
this.drawRoundRect(2, 0, v3 - 4, v4 - 2, 3, [0, 14342874], 100, 0, 'radial');
this.drawRoundRect(2, 0, v3 - 4, v4 - 2, 3, v15, 50);
this.drawRoundRect(3, 1, v3 - 6, v4 - 4, 2, 16777215, 100);
} else {
if (v5 == 'default') {
this.drawRoundRect(0, 5, v3, v4 - 5, {'tl': 5, 'tr': 5, 'br': 0, 'bl': 0}, 6184542, 10);
this.drawRoundRect(1, 4, v3 - 2, v4 - 5, {'tl': 4, 'tr': 4, 'br': 0, 'bl': 0}, [6184542, 6184542], 10, 0, 'radial');
this.drawRoundRect(2, 0, v3 - 4, v4 - 2, {'tl': 3, 'tr': 3, 'br': 0, 'bl': 0}, [12897484, 11844796], 100, 0, 'radial');
this.drawRoundRect(3, 1, v3 - 6, v4 - 4, {'tl': 2, 'tr': 2, 'br': 0, 'bl': 0}, 16777215, 100);
} else {
if (v5 == 'dropDown') {
this.drawRoundRect(0, 0, v3 + 1, v4, {'tl': 4, 'tr': 0, 'br': 0, 'bl': 4}, [13290186, 7895160], 100, -10, 'linear');
this.drawRoundRect(1, 1, v3 - 1, v4 - 2, {'tl': 3, 'tr': 0, 'br': 0, 'bl': 3}, 16777215, 100);
} else {
if (v5 == 'menuBorder') {
var v15 = this.getStyle('themeColor');
this.drawRoundRect(4, 4, v3 - 2, v4 - 3, 0, [6184542, 6184542], 10, 0, 'radial');
this.drawRoundRect(4, 4, v3 - 1, v4 - 2, 0, 6184542, 10);
this.drawRoundRect(0, 0, v3 + 1, v4, 0, [0, 14342874], 100, 250, 'linear');
this.drawRoundRect(0, 0, v3 + 1, v4, 0, v15, 50);
this.drawRoundRect(2, 2, v3 - 3, v4 - 4, 0, 16777215, 100);
} else {
if (v5 == 'comboNonEdit') {
} else {
this.beginFill(v7);
this.drawRect(0, 0, v3, v4);
this.drawRect(1, 1, v3 - 1, v4 - 1);
this.endFill();
this._color = this.borderColorName;
}
}
}
}
}
}
}
}
if (v8 != undefined) {
this.beginFill(v8);
this.drawRect(v9, v9, this.__get__width() - v9, this.__get__height() - v9);
this.endFill();
}
};
v2.draw3dBorder = function (c1, c2, c3, c4, c5, c6) {
var v3 = this.__get__width();
var v2 = this.__get__height();
this.beginFill(c1);
this.drawRect(0, 0, v3, v2);
this.drawRect(1, 0, v3 - 1, v2);
this.endFill();
this.beginFill(c2);
this.drawRect(1, 0, v3 - 1, 1);
this.endFill();
this.beginFill(c3);
this.drawRect(1, v2 - 1, v3 - 1, v2);
this.endFill();
this.beginFill(c4);
this.drawRect(1, 1, v3 - 1, 2);
this.endFill();
this.beginFill(c5);
this.drawRect(1, v2 - 2, v3 - 1, v2 - 1);
this.endFill();
this.beginFill(c6);
this.drawRect(1, 2, v3 - 1, v2 - 2);
this.drawRect(2, 2, v3 - 2, v2 - 2);
this.endFill();
};
v1.classConstruct = function () {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return true;
};
v1.symbolName = 'RectBorder';
v1.symbolOwner = mx.skins.halo.RectBorder;
v1.version = '2.0.2.127';
v2.borderCapColorName = 'borderCapColor';
v2.shadowCapColorName = 'shadowCapColor';
v2.colorList = {'highlightColor': 0, 'borderColor': 0, 'buttonColor': 0, 'shadowColor': 0, 'borderCapColor': 0, 'shadowCapColor': 0};
v2.borderWidths = {'none': 0, 'solid': 1, 'inset': 2, 'outset': 2, 'alert': 3, 'dropDown': 2, 'menuBorder': 2, 'comboNonEdit': 2};
v1.classConstructed = mx.skins.halo.RectBorder.classConstruct();
v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
ASSetPropFlags(mx.skins.halo.RectBorder.prototype, null, 1);
}
#endinitclip
}
movieClip 34 __Packages.mx.skins.halo.Defaults {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.skins) {
_global.mx.skins = new Object();
}
if (!_global.mx.skins.halo) {
_global.mx.skins.halo = new Object();
}
if (!_global.mx.skins.halo.Defaults) {
var v1 = function () {};
mx.skins.halo.Defaults = v1;
var v2 = v1.prototype;
v1.setThemeDefaults = function () {
var v2 = _global.style;
v2.themeColor = 8453965;
v2.disabledColor = 8684164;
v2.modalTransparency = 0;
v2.filled = true;
v2.stroked = true;
v2.strokeWidth = 1;
v2.strokeColor = 0;
v2.fillColor = 16777215;
v2.repeatInterval = 35;
v2.repeatDelay = 500;
v2.fontFamily = '_sans';
v2.fontSize = 12;
v2.selectionColor = 13500353;
v2.rollOverColor = 14942166;
v2.useRollOver = true;
v2.backgroundDisabledColor = 14540253;
v2.selectionDisabledColor = 14540253;
v2.selectionDuration = 200;
v2.openDuration = 250;
v2.borderStyle = 'inset';
v2.color = 734012;
v2.textSelectedColor = 24371;
v2.textRollOverColor = 2831164;
v2.textDisabledColor = 16777215;
v2.vGridLines = true;
v2.hGridLines = false;
v2.vGridLineColor = 6710886;
v2.hGridLineColor = 6710886;
v2.headerColor = 15395562;
v2.indentation = 17;
v2.folderOpenIcon = 'TreeFolderOpen';
v2.folderClosedIcon = 'TreeFolderClosed';
v2.defaultLeafIcon = 'TreeNodeIcon';
v2.disclosureOpenIcon = 'TreeDisclosureOpen';
v2.disclosureClosedIcon = 'TreeDisclosureClosed';
v2.popupDuration = 150;
v2.todayColor = 6710886;
_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration();
v2 = _global.styles.ScrollSelectList;
v2.backgroundColor = 16777215;
v2.borderColor = 13290186;
v2.borderStyle = 'inset';
_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration();
v2 = _global.styles.ComboBox;
v2.borderStyle = 'inset';
_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration();
v2 = _global.styles.NumericStepper;
v2.textAlign = 'center';
_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration();
v2 = _global.styles.RectBorder;
v2.borderColor = 14015965;
v2.buttonColor = 7305079;
v2.shadowColor = 15658734;
v2.highlightColor = 12897484;
v2.shadowCapColor = 14015965;
v2.borderCapColor = 9542041;
var v4 = new Object();
v4.borderColor = 16711680;
v4.buttonColor = 16711680;
v4.shadowColor = 16711680;
v4.highlightColor = 16711680;
v4.shadowCapColor = 16711680;
v4.borderCapColor = 16711680;
mx.core.UIComponent.prototype.origBorderStyles = v4;
var v3;
_global.styles.TextInput = new mx.styles.CSSStyleDeclaration();
v3 = _global.styles.TextInput;
v3.backgroundColor = 16777215;
v3.borderStyle = 'inset';
_global.styles.TextArea = _global.styles.TextInput;
_global.styles.Window = new mx.styles.CSSStyleDeclaration();
v3 = _global.styles.Window;
v3.borderStyle = 'default';
_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration();
v3 = _global.styles.windowStyles;
v3.fontWeight = 'bold';
_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration();
v3 = _global.styles.dataGridStyles;
v3.fontWeight = 'bold';
_global.styles.Alert = new mx.styles.CSSStyleDeclaration();
v3 = _global.styles.Alert;
v3.borderStyle = 'alert';
_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration();
v3 = _global.styles.ScrollView;
v3.borderStyle = 'inset';
_global.styles.View = new mx.styles.CSSStyleDeclaration();
v3 = _global.styles.View;
v3.borderStyle = 'none';
_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration();
v3 = _global.styles.ProgressBar;
v3.color = 11187123;
v3.fontWeight = 'bold';
_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration();
v3 = _global.styles.AccordionHeader;
v3.fontWeight = 'bold';
v3.fontSize = '11';
_global.styles.Accordion = new mx.styles.CSSStyleDeclaration();
v3 = _global.styles.Accordion;
v3.borderStyle = 'solid';
v3.backgroundColor = 16777215;
v3.borderColor = 9081738;
v3.headerHeight = 22;
v3.marginBottom = -1;
v3.marginTop = -1;
v3.marginRight = -1;
v3.marginLeft = -1;
v3.verticalGap = -1;
_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration();
v3 = _global.styles.DateChooser;
v3.borderColor = 9542041;
v3.headerColor = 16777215;
_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration();
v3 = _global.styles.CalendarLayout;
v3.fontSize = 10;
v3.textAlign = 'right';
v3.color = 2831164;
_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration();
v3 = _global.styles.WeekDayStyle;
v3.fontWeight = 'bold';
v3.fontSize = 11;
v3.textAlign = 'center';
v3.color = 2831164;
_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration();
v3 = _global.styles.TodayStyle;
v3.color = 16777215;
_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration();
v3 = _global.styles.HeaderDateText;
v3.fontSize = 12;
v3.fontWeight = 'bold';
v3.textAlign = 'center';
};
v2.drawRoundRect = function (x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof r == 'object') {
var v18 = r.br;
var v16 = r.bl;
var v15 = r.tl;
var v10 = r.tr;
} else {
var v10 = r;
var v15 = v10;
var v16 = v15;
var v18 = v16;
}
if (typeof c == 'object') {
if (typeof alpha != 'object') {
var v9 = [alpha, alpha];
} else {
var v9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var v14 = h * 0.7;
if (typeof rot != 'object') {
var v11 = {'matrixType': 'box', 'x': -v14, 'y': v14, 'w': w * 2, 'h': h * 4, 'r': rot * 0.0174532925199433};
} else {
var v11 = rot;
}
if (gradient == 'radial') {
this.beginGradientFill('radial', c, v9, ratios, v11);
} else {
this.beginGradientFill('linear', c, v9, ratios, v11);
}
} else {
if (c != undefined) {
this.beginFill(c, alpha);
}
}
r = v18;
var v13 = r - r * Math.SQRT1_2;
var v12 = r - r * 0.414213562373095;
this.moveTo(x + w, y + h - r);
this.lineTo(x + w, y + h - r);
this.curveTo(x + w, y + h - v12, x + w - v13, y + h - v13);
this.curveTo(x + w - v12, y + h, x + w - r, y + h);
r = v16;
v13 = r - r * Math.SQRT1_2;
v12 = r - r * 0.414213562373095;
this.lineTo(x + r, y + h);
this.curveTo(x + v12, y + h, x + v13, y + h - v13);
this.curveTo(x, y + h - v12, x, y + h - r);
r = v15;
v13 = r - r * Math.SQRT1_2;
v12 = r - r * 0.414213562373095;
this.lineTo(x, y + r);
this.curveTo(x, y + v12, x + v13, y + v13);
this.curveTo(x + v12, y, x + r, y);
r = v10;
v13 = r - r * Math.SQRT1_2;
v12 = r - r * 0.414213562373095;
this.lineTo(x + w - r, y);
this.curveTo(x + w - v12, y, x + w - v13, y + v13);
this.curveTo(x + w, y + v12, x + w, y + r);
this.lineTo(x + w, y + h - r);
if (c != undefined) {
this.endFill();
}
};
v1.classConstruct = function () {
mx.core.ext.UIObjectExtensions.Extensions();
mx.skins.halo.Defaults.setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return true;
};
v1.classConstructed = mx.skins.halo.Defaults.classConstruct();
v1.CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
v1.UIObjectDependency = mx.core.UIObject;
ASSetPropFlags(mx.skins.halo.Defaults.prototype, null, 1);
}
#endinitclip
}
movieClip 35 __Packages.mx.managers.SystemManager {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.managers) {
_global.mx.managers = new Object();
}
if (!_global.mx.managers.SystemManager) {
var v1 = function () {};
mx.managers.SystemManager = v1;
var v2 = v1.prototype;
v1.init = function (Void) {
if (mx.managers.SystemManager._initialized == false) {
mx.managers.SystemManager._initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
mx.managers.SystemManager._xAddEventListener = mx.managers.SystemManager.addEventListener;
mx.managers.SystemManager.addEventListener = mx.managers.SystemManager.__addEventListener;
mx.managers.SystemManager._xRemoveEventListener = mx.managers.SystemManager.removeEventListener;
mx.managers.SystemManager.removeEventListener = mx.managers.SystemManager.__removeEventListener;
}
};
v1.addFocusManager = function (f) {
mx.managers.SystemManager.form = f;
f.focusManager.activate();
};
v1.removeFocusManager = function (f) {};
v1.onMouseDown = function (Void) {
var v1 = mx.managers.SystemManager.form;
v1.focusManager._onMouseDown();
};
v1.onResize = function (Void) {
var v7 = Stage.width;
var v6 = Stage.height;
var v9 = _global.origWidth;
var v8 = _global.origHeight;
var v3 = Stage.align;
var v5 = (v9 - v7) / 2;
var v4 = (v8 - v6) / 2;
if (v3 == 'T') {
v4 = 0;
} else {
if (v3 == 'B') {
v4 = v8 - v6;
} else {
if (v3 == 'L') {
v5 = 0;
} else {
if (v3 == 'R') {
v5 = v9 - v7;
} else {
if (v3 == 'LT') {
v4 = 0;
v5 = 0;
} else {
if (v3 == 'TR') {
v4 = 0;
v5 = v9 - v7;
} else {
if (v3 == 'LB') {
v4 = v8 - v6;
v5 = 0;
} else {
if (v3 == 'RB') {
v4 = v8 - v6;
v5 = v9 - v7;
}
}
}
}
}
}
}
}
if (mx.managers.SystemManager.__screen == undefined) {
mx.managers.SystemManager.__screen = new Object();
}
mx.managers.SystemManager.__screen.x = v5;
mx.managers.SystemManager.__screen.y = v4;
mx.managers.SystemManager.__screen.width = v7;
mx.managers.SystemManager.__screen.height = v6;
_root.focusManager.relocate();
mx.managers.SystemManager.dispatchEvent({'type': 'resize'});
};
v1.__get__screen = function () {
mx.managers.SystemManager.init();
if (mx.managers.SystemManager.__screen == undefined) {
mx.managers.SystemManager.onResize();
}
return mx.managers.SystemManager.__screen;
};
v1._initialized = false;
v1.idleFrames = 0;
v1.isMouseDown = false;
v1.forms = new Array();
v1.addProperty('screen', v1.__get__screen, function () {});
ASSetPropFlags(mx.managers.SystemManager.prototype, null, 1);
}
#endinitclip
}
movieClip 36 __Packages.mx.controls.SimpleButton {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.controls) {
_global.mx.controls = new Object();
}
if (!_global.mx.controls.SimpleButton) {
var v1 = function () {
super();
};
mx.controls.SimpleButton = v1;
var v2 = new mx.core.UIComponent();
mx.controls.SimpleButton.prototype = v2;
v2.init = function (Void) {
super.init();
if (this.preset == undefined) {
this.boundingBox_mc._visible = false;
this.boundingBox_mc._height = 0;
this.boundingBox_mc._width = 0;
}
this.useHandCursor = false;
};
v2.createChildren = function (Void) {
if (this.preset != undefined) {
var v2 = this[this.idNames[this.preset]];
this[this.refNames[this.preset]] = v2;
this.skinName = v2;
if (this.falseOverSkin.length == 0) {
this.rolloverSkin = this.fus;
}
if (this.falseOverIcon.length == 0) {
this.rolloverIcon = this.fui;
}
this.initializing = false;
} else {
if (this.__state == true) {
this.setStateVar(true);
} else {
if (this.falseOverSkin.length == 0) {
this.rolloverSkin = this.fus;
}
if (this.falseOverIcon.length == 0) {
this.rolloverIcon = this.fui;
}
}
}
};
v2.setIcon = function (tag, linkageName) {
return this.setSkin(tag + 8, linkageName);
};
v2.changeIcon = function (tag, linkageName) {
this.linkLength = linkageName.length;
var v2 = this.stateNames[tag] + 'Icon';
this[v2] = linkageName;
this[this.idNames[tag + 8]] = v2;
this.setStateVar(this.getState());
};
v2.changeSkin = function (tag, linkageName) {
var v2 = this.stateNames[tag] + 'Skin';
this[v2] = linkageName;
this[this.idNames[tag]] = v2;
this.setStateVar(this.getState());
};
v2.viewIcon = function (varName) {
var v4 = varName + 'Icon';
var v3 = this[v4];
if (typeof v3 == 'string') {
var v5 = v3;
if (this.__emphasized) {
if (this[v3 + 'Emphasized'].length > 0) {
v3 += 'Emphasized';
}
}
if (this[v3].length == 0) {
return undefined;
}
v3 = this.setIcon(this.tagMap[v5], this[v3]);
if (v3 == undefined && _global.isLivePreview) {
v3 = this.setIcon(0, 'ButtonIcon');
}
this[v4] = v3;
}
this.iconName._visible = false;
this.iconName = v3;
this.iconName._visible = true;
};
v2.removeIcons = function () {
var v3 = 0;
while (v3 < 2) {
var v2 = 8;
while (v2 < 16) {
this.destroyObject(this.idNames[v2]);
this[this.stateNames[v2 - 8] + 'Icon'] = '';
++v2;
}
++v3;
}
this.refresh();
};
v2.setSkin = function (tag, linkageName, initobj) {
if (initobj == undefined) {
var v3 = super.setSkin(tag, linkageName, {'styleName': this});
this.calcSize(tag, v3);
return v3;
}
var v3 = super.setSkin(tag, linkageName, initobj);
this.calcSize(tag, v3);
return v3;
};
v2.calcSize = function (Void) {
this.__width = this._width;
this.__height = this._height;
};
v2.viewSkin = function (varName, initObj) {
var v3 = varName + 'Skin';
var v2 = this[v3];
if (typeof v2 == 'string') {
var v4 = v2;
if (this.__emphasized) {
if (this[v2 + 'Emphasized'].length > 0) {
v2 += 'Emphasized';
}
}
if (this[v2].length == 0) {
return undefined;
}
v2 = this.setSkin(this.tagMap[v4], this[v2], (initObj != undefined) ? initObj : {'styleName': this});
this[v3] = v2;
}
this.skinName._visible = false;
this.skinName = v2;
this.skinName._visible = true;
};
v2.showEmphasized = function (e) {
if (e && !this.__emphatic) {
if (mx.controls.SimpleButton.emphasizedStyleDeclaration != undefined) {
this.__emphaticStyleName = this.styleName;
this.styleName = mx.controls.SimpleButton.emphasizedStyleDeclaration;
}
this.__emphatic = true;
} else {
if (this.__emphatic) {
this.styleName = this.__emphaticStyleName;
}
this.__emphatic = false;
}
};
v2.refresh = function (Void) {
var v2 = this.getState();
if (this.enabled == false) {
this.viewIcon('disabled');
this.viewSkin('disabled');
} else {
this.viewSkin(this.phase);
this.viewIcon(this.phase);
}
this.setView(this.phase == 'down');
this.iconName.enabled = this.enabled;
};
v2.setView = function (offset) {
if (this.iconName == undefined) {
return undefined;
}
var v2 = offset ? this.btnOffset : 0;
this.iconName._x = (this.__width - this.iconName._width) / 2 + v2;
this.iconName._y = (this.__height - this.iconName._height) / 2 + v2;
};
v2.setStateVar = function (state) {
if (state) {
if (this.trueOverSkin.length == 0) {
this.rolloverSkin = this.tus;
} else {
this.rolloverSkin = this.trs;
}
if (this.trueOverIcon.length == 0) {
this.rolloverIcon = this.tui;
} else {
this.rolloverIcon = this.tri;
}
this.upSkin = this.tus;
this.downSkin = this.tds;
this.disabledSkin = this.dts;
this.upIcon = this.tui;
this.downIcon = this.tdi;
this.disabledIcon = this.dti;
} else {
if (this.falseOverSkin.length == 0) {
this.rolloverSkin = this.fus;
} else {
this.rolloverSkin = this.frs;
}
if (this.falseOverIcon.length == 0) {
this.rolloverIcon = this.fui;
} else {
this.rolloverIcon = this.fri;
}
this.upSkin = this.fus;
this.downSkin = this.fds;
this.disabledSkin = this.dfs;
this.upIcon = this.fui;
this.downIcon = this.fdi;
this.disabledIcon = this.dfi;
}
this.__state = state;
};
v2.setState = function (state) {
if (state != this.__state) {
this.setStateVar(state);
this.invalidate();
}
};
v2.size = function (Void) {
this.refresh();
};
v2.draw = function (Void) {
if (this.initializing) {
this.initializing = false;
this.skinName.visible = true;
this.iconName.visible = true;
}
this.size();
};
v2.getState = function (Void) {
return this.__state;
};
v2.setToggle = function (val) {
this.__toggle = val;
if (this.__toggle == false) {
this.setState(false);
}
};
v2.getToggle = function (Void) {
return this.__toggle;
};
v2.__set__toggle = function (val) {
this.setToggle(val);
return this.__get__toggle();
};
v2.__get__toggle = function () {
return this.getToggle();
};
v2.__set__value = function (val) {
this.setSelected(val);
return this.__get__value();
};
v2.__get__value = function () {
return this.getSelected();
};
v2.__set__selected = function (val) {
this.setSelected(val);
return this.__get__selected();
};
v2.__get__selected = function () {
return this.getSelected();
};
v2.setSelected = function (val) {
if (this.__toggle) {
this.setState(val);
} else {
this.setState(this.initializing ? val : this.__state);
}
};
v2.getSelected = function () {
return this.__state;
};
v2.setEnabled = function (val) {
if (this.enabled != val) {
super.setEnabled(val);
this.invalidate();
}
};
v2.onPress = function (Void) {
this.pressFocus();
this.phase = 'down';
this.refresh();
this.dispatchEvent({'type': 'buttonDown'});
if (this.autoRepeat) {
this.interval = setInterval(this, 'onPressDelay', this.getStyle('repeatDelay'));
}
};
v2.onPressDelay = function (Void) {
this.dispatchEvent({'type': 'buttonDown'});
if (this.autoRepeat) {
clearInterval(this.interval);
this.interval = setInterval(this, 'onPressRepeat', this.getStyle('repeatInterval'));
}
};
v2.onPressRepeat = function (Void) {
this.dispatchEvent({'type': 'buttonDown'});
updateAfterEvent();
};
v2.onRelease = function (Void) {
this.releaseFocus();
this.phase = 'rollover';
if (this.interval != undefined) {
clearInterval(this.interval);
delete this.interval;
}
if (this.getToggle()) {
this.setState(!this.getState());
} else {
this.refresh();
}
this.dispatchEvent({'type': 'click'});
};
v2.onDragOut = function (Void) {
this.phase = 'up';
this.refresh();
this.dispatchEvent({'type': 'buttonDragOut'});
};
v2.onDragOver = function (Void) {
if (this.phase != 'up') {
this.onPress();
return undefined;
} else {
this.phase = 'down';
this.refresh();
}
};
v2.onReleaseOutside = function (Void) {
this.releaseFocus();
this.phase = 'up';
if (this.interval != undefined) {
clearInterval(this.interval);
delete this.interval;
}
};
v2.onRollOver = function (Void) {
this.phase = 'rollover';
this.refresh();
};
v2.onRollOut = function (Void) {
this.phase = 'up';
this.refresh();
};
v2.getLabel = function (Void) {
return this.fui.text;
};
v2.setLabel = function (val) {
if (typeof this.fui == 'string') {
this.createLabel('fui', 8, val);
this.fui.styleName = this;
} else {
this.fui.text = val;
}
var v4 = this.fui._getTextFormat();
var v2 = v4.getTextExtent2(val);
this.fui._width = v2.width + 5;
this.fui._height = v2.height + 5;
this.iconName = this.fui;
this.setView(this.__state);
};
v2.__get__emphasized = function () {
return this.__emphasized;
};
v2.__set__emphasized = function (val) {
this.__emphasized = val;
var v2 = 0;
while (v2 < 8) {
this[this.idNames[v2]] = this.stateNames[v2] + 'Skin';
if (typeof this[this.idNames[v2 + 8]] == 'movieclip') {
this[this.idNames[v2 + 8]] = this.stateNames[v2] + 'Icon';
}
++v2;
}
this.showEmphasized(this.__emphasized);
this.setStateVar(this.__state);
this.invalidateStyle();
return this.__get__emphasized();
};
v2.keyDown = function (e) {
if (e.code == 32) {
this.onPress();
}
};
v2.keyUp = function (e) {
if (e.code == 32) {
this.onRelease();
}
};
v2.onKillFocus = function (newFocus) {
super.onKillFocus();
if (this.phase != 'up') {
this.phase = 'up';
this.refresh();
}
};
v1.symbolName = 'SimpleButton';
v1.symbolOwner = mx.controls.SimpleButton;
v1.version = '2.0.2.127';
v2.className = 'SimpleButton';
v2.style3dInset = 4;
v2.btnOffset = 1;
v2.__toggle = false;
v2.__state = false;
v2.__emphasized = false;
v2.__emphatic = false;
v1.falseUp = 0;
v1.falseDown = 1;
v1.falseOver = 2;
v1.falseDisabled = 3;
v1.trueUp = 4;
v1.trueDown = 5;
v1.trueOver = 6;
v1.trueDisabled = 7;
v2.falseUpSkin = 'SimpleButtonUp';
v2.falseDownSkin = 'SimpleButtonIn';
v2.falseOverSkin = '';
v2.falseDisabledSkin = 'SimpleButtonUp';
v2.trueUpSkin = 'SimpleButtonIn';
v2.trueDownSkin = '';
v2.trueOverSkin = '';
v2.trueDisabledSkin = 'SimpleButtonIn';
v2.falseUpIcon = '';
v2.falseDownIcon = '';
v2.falseOverIcon = '';
v2.falseDisabledIcon = '';
v2.trueUpIcon = '';
v2.trueDownIcon = '';
v2.trueOverIcon = '';
v2.trueDisabledIcon = '';
v2.phase = 'up';
v2.fui = 'falseUpIcon';
v2.fus = 'falseUpSkin';
v2.fdi = 'falseDownIcon';
v2.fds = 'falseDownSkin';
v2.frs = 'falseOverSkin';
v2.fri = 'falseOverIcon';
v2.dfi = 'falseDisabledIcon';
v2.dfs = 'falseDisabledSkin';
v2.tui = 'trueUpIcon';
v2.tus = 'trueUpSkin';
v2.tdi = 'trueDownIcon';
v2.tds = 'trueDownSkin';
v2.trs = 'trueOverSkin';
v2.tri = 'trueOverIcon';
v2.dts = 'trueDisabledSkin';
v2.dti = 'trueDisabledIcon';
v2.rolloverSkin = mx.controls.SimpleButton.prototype.frs;
v2.rolloverIcon = mx.controls.SimpleButton.prototype.fri;
v2.upSkin = mx.controls.SimpleButton.prototype.fus;
v2.downSkin = mx.controls.SimpleButton.prototype.fds;
v2.disabledSkin = mx.controls.SimpleButton.prototype.dfs;
v2.upIcon = mx.controls.SimpleButton.prototype.fui;
v2.downIcon = mx.controls.SimpleButton.prototype.fdi;
v2.disabledIcon = mx.controls.SimpleButton.prototype.dfi;
v2.initializing = true;
v2.idNames = ['fus', 'fds', 'frs', 'dfs', 'tus', 'tds', 'trs', 'dts', 'fui', 'fdi', 'fri', 'dfi', 'tui', 'tdi', 'tri', 'dti'];
v2.stateNames = ['falseUp', 'falseDown', 'falseOver', 'falseDisabled', 'trueUp', 'trueDown', 'trueOver', 'trueDisabled'];
v2.refNames = ['upSkin', 'downSkin', 'rolloverSkin', 'disabledSkin'];
v2.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};
v2.addProperty('emphasized', v2.__get__emphasized, v2.__set__emphasized);
v2.addProperty('selected', v2.__get__selected, v2.__set__selected);
v2.addProperty('toggle', v2.__get__toggle, v2.__set__toggle);
v2.addProperty('value', v2.__get__value, v2.__set__value);
ASSetPropFlags(mx.controls.SimpleButton.prototype, null, 1);
}
#endinitclip
}
movieClip 37 __Packages.mx.managers.DepthManager {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.managers) {
_global.mx.managers = new Object();
}
if (!_global.mx.managers.DepthManager) {
var v1 = function () {
MovieClip.prototype.createClassChildAtDepth = this.createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = this.createChildAtDepth;
MovieClip.prototype.setDepthTo = this.setDepthTo;
MovieClip.prototype.setDepthAbove = this.setDepthAbove;
MovieClip.prototype.setDepthBelow = this.setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = this.findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = this.shuffleDepths;
MovieClip.prototype.getDepthByFlag = this.getDepthByFlag;
MovieClip.prototype.buildDepthTable = this.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);
};
mx.managers.DepthManager = v1;
var v2 = v1.prototype;
v1.sortFunction = function (a, b) {
if (a.getDepth() > b.getDepth()) {
return 1;
}
return -1;
};
v1.test = function (depth) {
if (depth == mx.managers.DepthManager.reservedDepth) {
return false;
} else {
return true;
}
};
v1.createClassObjectAtDepth = function (className, depthSpace, initObj) {
var v1;
switch (depthSpace) {
case mx.managers.DepthManager.kCursor:
v1 = mx.managers.DepthManager.holder.createClassChildAtDepth(className, mx.managers.DepthManager.kTopmost, initObj);
return v1;
case mx.managers.DepthManager.kTooltip:
v1 = mx.managers.DepthManager.holder.createClassChildAtDepth(className, mx.managers.DepthManager.kTop, initObj);
return v1;
}
return v1;
};
v1.createObjectAtDepth = function (linkageName, depthSpace, initObj) {
var v1;
switch (depthSpace) {
case mx.managers.DepthManager.kCursor:
v1 = mx.managers.DepthManager.holder.createChildAtDepth(linkageName, mx.managers.DepthManager.kTopmost, initObj);
return v1;
case mx.managers.DepthManager.kTooltip:
v1 = mx.managers.DepthManager.holder.createChildAtDepth(linkageName, mx.managers.DepthManager.kTop, initObj);
return v1;
}
return v1;
};
v2.createClassChildAtDepth = function (className, depthFlag, initObj) {
if (this._childCounter == undefined) {
this._childCounter = 0;
}
var v3 = this.buildDepthTable();
var v2 = this.getDepthByFlag(depthFlag, v3);
var v6 = 'down';
if (depthFlag == mx.managers.DepthManager.kBottom) {
v6 = 'up';
}
var v5;
if (v3[v2] != undefined) {
v5 = v2;
v2 = this.findNextAvailableDepth(v2, v3, v6);
}
var v4 = this.createClassObject(className, 'depthChild' + this._childCounter++, v2, initObj);
if (v5 != undefined) {
v3[v2] = v4;
this.shuffleDepths(v4, v5, v3, v6);
}
if (depthFlag == mx.managers.DepthManager.kTopmost) {
v4._topmost = true;
}
return v4;
};
v2.createChildAtDepth = function (linkageName, depthFlag, initObj) {
if (this._childCounter == undefined) {
this._childCounter = 0;
}
var v3 = this.buildDepthTable();
var v2 = this.getDepthByFlag(depthFlag, v3);
var v6 = 'down';
if (depthFlag == mx.managers.DepthManager.kBottom) {
v6 = 'up';
}
var v5;
if (v3[v2] != undefined) {
v5 = v2;
v2 = this.findNextAvailableDepth(v2, v3, v6);
}
var v4 = this.createObject(linkageName, 'depthChild' + this._childCounter++, v2, initObj);
if (v5 != undefined) {
v3[v2] = v4;
this.shuffleDepths(v4, v5, v3, v6);
}
if (depthFlag == mx.managers.DepthManager.kTopmost) {
v4._topmost = true;
}
return v4;
};
v2.setDepthTo = function (depthFlag) {
var v2 = this._parent.buildDepthTable();
var v3 = this._parent.getDepthByFlag(depthFlag, v2);
if (v2[v3] != undefined) {
this.shuffleDepths(this, v3, v2, undefined);
} else {
this.swapDepths(v3);
}
if (depthFlag == mx.managers.DepthManager.kTopmost) {
this._topmost = true;
} else {
delete this._topmost;
}
};
v2.setDepthAbove = function (targetInstance) {
if (targetInstance._parent != this._parent) {
return undefined;
}
var v2 = targetInstance.getDepth() + 1;
var v3 = this._parent.buildDepthTable();
if (v3[v2] != undefined && this.getDepth() < v2) {
v2 -= 1;
}
if (v2 > mx.managers.DepthManager.highestDepth) {
v2 = mx.managers.DepthManager.highestDepth;
}
if (v2 == mx.managers.DepthManager.highestDepth) {
this._parent.shuffleDepths(this, v2, v3, 'down');
} else {
if (v3[v2] != undefined) {
this._parent.shuffleDepths(this, v2, v3, undefined);
} else {
this.swapDepths(v2);
}
}
};
v2.setDepthBelow = function (targetInstance) {
if (targetInstance._parent != this._parent) {
return undefined;
}
var v6 = targetInstance.getDepth() - 1;
var v3 = this._parent.buildDepthTable();
if (v3[v6] != undefined && this.getDepth() > v6) {
v6 += 1;
}
var v4 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers;
var v5;
for (v5 in v3) {
var v2 = v3[v5];
if (v2._parent != undefined) {
v4 = Math.min(v4, v2.getDepth());
}
}
if (v6 < v4) {
v6 = v4;
}
if (v6 == v4) {
this._parent.shuffleDepths(this, v6, v3, 'up');
} else {
if (v3[v6] != undefined) {
this._parent.shuffleDepths(this, v6, v3, undefined);
} else {
this.swapDepths(v6);
}
}
};
v2.findNextAvailableDepth = function (targetDepth, depthTable, direction) {
var v5 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers;
if (targetDepth < v5) {
targetDepth = v5;
}
if (depthTable[targetDepth] == undefined) {
return targetDepth;
}
var v2 = targetDepth;
var v1 = targetDepth;
if (direction == 'down') {
while (depthTable[v1] != undefined) {
--v1;
}
return v1;
}
while (depthTable[v2] != undefined) {
++v2;
}
return v2;
};
v2.shuffleDepths = function (subject, targetDepth, depthTable, direction) {
var v9 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers;
var v8 = v9;
var v5;
for (v5 in depthTable) {
var v7 = depthTable[v5];
if (v7._parent != undefined) {
v9 = Math.min(v9, v7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = 'up';
} else {
direction = 'down';
}
}
var v1 = new Array();
for (v5 in depthTable) {
v7 = depthTable[v5];
if (v7._parent != undefined) {
v1.push(v7);
}
}
v1.sort(mx.managers.DepthManager.sortFunction);
if (direction == 'up') {
var v3;
var v11;
while (v1.length > 0) {
v3 = v1.pop();
if (v3 == subject) {
break;
}
}
while (v1.length > 0) {
v11 = subject.getDepth();
v3 = v1.pop();
var v4 = v3.getDepth();
if (v11 > v4 + 1) {
if (v4 >= 0) {
subject.swapDepths(v4 + 1);
} else {
if (v11 > v8 && v4 < v8) {
subject.swapDepths(v8);
}
}
}
subject.swapDepths(v3);
if (v4 == targetDepth) {
break;
}
}
} else {
if (direction == 'down') {
var v3;
while (v1.length > 0) {
v3 = v1.shift();
if (v3 == subject) {
break;
}
}
while (v1.length > 0) {
var v11 = v3.getDepth();
v3 = v1.shift();
var v4 = v3.getDepth();
if (v11 < v4 - 1 && v4 > 0) {
subject.swapDepths(v4 - 1);
}
subject.swapDepths(v3);
if (v4 == targetDepth) {
break;
}
}
}
}
};
v2.getDepthByFlag = function (depthFlag, depthTable) {
var v2 = 0;
if (depthFlag == mx.managers.DepthManager.kTop || depthFlag == mx.managers.DepthManager.kNotopmost) {
var v5 = 0;
var v7 = false;
var v8;
for (v8 in depthTable) {
var v9 = depthTable[v8];
var v3 = typeof v9;
if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) {
if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) {
if (!v9._topmost) {
v2 = Math.max(v2, v9.getDepth());
} else {
if (!v7) {
v5 = v9.getDepth();
v7 = true;
} else {
v5 = Math.min(v5, v9.getDepth());
}
}
}
}
}
v2 += 20;
if (v7) {
if (v2 >= v5) {
v2 = v5 - 1;
}
}
} else {
if (depthFlag == mx.managers.DepthManager.kBottom) {
for (var v8 in depthTable) {
var v9 = depthTable[v8];
var v3 = typeof v9;
if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) {
if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) {
v2 = Math.min(v2, v9.getDepth());
}
}
}
v2 -= 20;
} else {
if (depthFlag == mx.managers.DepthManager.kTopmost) {
for (var v8 in depthTable) {
var v9 = depthTable[v8];
var v3 = typeof v9;
if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) {
if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) {
v2 = Math.max(v2, v9.getDepth());
}
}
}
v2 += 100;
}
}
}
if (v2 >= mx.managers.DepthManager.highestDepth) {
v2 = mx.managers.DepthManager.highestDepth;
}
var v6 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers;
for (v9 in depthTable) {
var v4 = depthTable[v9];
if (v4._parent != undefined) {
v6 = Math.min(v6, v4.getDepth());
}
}
if (v2 <= v6) {
v2 = v6;
}
return v2;
};
v2.buildDepthTable = function (Void) {
var v5 = new Array();
var v4;
for (v4 in this) {
var v2 = this[v4];
var v3 = typeof v2;
if (v3 == 'movieclip' || v3 == 'object' && v2.__getTextFormat != undefined) {
if (v2._parent == this) {
v5[v2.getDepth()] = v2;
}
}
}
return v5;
};
v1.reservedDepth = 1048575;
v1.highestDepth = 1048574;
v1.lowestDepth = -16383;
v1.numberOfAuthortimeLayers = 383;
v1.kCursor = 101;
v1.kTooltip = 102;
v1.kTop = 201;
v1.kBottom = 202;
v1.kTopmost = 203;
v1.kNotopmost = 204;
v1.holder = _root.createEmptyMovieClip('reserved', mx.managers.DepthManager.reservedDepth);
v1.__depthManager = new mx.managers.DepthManager();
ASSetPropFlags(mx.managers.DepthManager.prototype, null, 1);
}
#endinitclip
}
movieClip 38 __Packages.mx.managers.FocusManager {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.managers) {
_global.mx.managers = new Object();
}
if (!_global.mx.managers.FocusManager) {
var v1 = function () {
super();
};
mx.managers.FocusManager = v1;
var v2 = new mx.core.UIComponent();
mx.managers.FocusManager.prototype = v2;
v2.__get__defaultPushButton = function () {
return this.__defaultPushButton;
};
v2.__set__defaultPushButton = function (x) {
if (x != this.__defaultPushButton) {
this.__defaultPushButton.__set__emphasized(false);
this.__defaultPushButton = x;
this.defPushButton = x;
x.__set__emphasized(true);
}
return this.__get__defaultPushButton();
};
v2.getMaxTabIndex = function (o) {
var v3 = 0;
var v6;
for (v6 in o) {
var v2 = o[v6];
if (v2._parent == o) {
if (v2.tabIndex != undefined) {
if (v2.tabIndex > v3) {
v3 = v2.tabIndex;
}
}
if (v2.tabChildren == true) {
var v4 = this.getMaxTabIndex(v2);
if (v4 > v3) {
v3 = v4;
}
}
}
}
return v3;
};
v2.getNextTabIndex = function (Void) {
return this.getMaxTabIndex(this.form) + 1;
};
v2.__get__nextTabIndex = function () {
return this.getNextTabIndex();
};
v2.relocate = function (Void) {
var v2 = mx.managers.SystemManager.__get__screen();
this.move(v2.x - 1, v2.y - 1);
};
v2.init = function (Void) {
super.init();
this.tabEnabled = false;
this._height = 1;
this._width = 1;
this._y = -1;
this._x = -1;
this._alpha = 0;
this._parent.focusManager = this;
this._parent.tabChildren = true;
this._parent.tabEnabled = false;
this.form = this._parent;
this._parent.addEventListener('hide', this);
this._parent.addEventListener('reveal', this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(this.form);
this.tabCapture.tabIndex = 0;
this.watch('enabled', this.enabledChanged);
Selection.addListener(this);
this.lastMouse = new Object();
_global.ASSetPropFlags(this._parent, 'focusManager', 1);
_global.ASSetPropFlags(this._parent, 'tabChildren', 1);
_global.ASSetPropFlags(this._parent, 'tabEnabled', 1);
};
v2.enabledChanged = function (id, oldValue, newValue) {
this._visible = newValue;
return newValue;
};
v2.activate = function (Void) {
Key.addListener(this);
this._visible = true;
this.activated = this._visible;
if (this.lastFocus != undefined) {
this.bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
this.doLater(this, 'restoreFocus');
}
}
};
v2.deactivate = function (Void) {
Key.removeListener(this);
this._visible = false;
this.activated = this._visible;
var v2 = this.getSelectionFocus();
var v3 = this.getActualFocus(v2);
if (this.isOurFocus(v3)) {
this.lastSelFocus = v2;
this.lastFocus = v3;
}
this.cancelAllDoLaters();
};
v2.isOurFocus = function (o) {
if (o.focusManager == this) {
return true;
}
while (o != undefined) {
if (o.focusManager != undefined) {
return false;
}
if (o._parent == this._parent) {
return true;
}
o = o._parent;
}
return false;
};
v2.onSetFocus = function (o, n) {
if (n == null) {
if (this.activated) {
this.bNeedFocus = true;
}
} else {
var v2 = this.getFocus();
if (this.isOurFocus(v2)) {
this.bNeedFocus = false;
this.lastFocus = v2;
this.lastSelFocus = n;
}
}
};
v2.restoreFocus = function (Void) {
var v2 = this.lastSelFocus.hscroll;
if (v2 != undefined) {
var v5 = this.lastSelFocus.scroll;
var v4 = this.lastSelFocus.background;
}
this.lastFocus.setFocus();
var v3 = Selection;
Selection.setSelection(v3.lastBeginIndex, v3.lastEndIndex);
if (v2 != undefined) {
this.lastSelFocus.scroll = v5;
this.lastSelFocus.hscroll = v2;
this.lastSelFocus.background = v4;
}
};
v2.onUnload = function (Void) {
mx.managers.SystemManager.removeFocusManager(this.form);
};
v2.setFocus = function (o) {
if (o == null) {
Selection.setFocus(null);
} else {
if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
};
v2.getActualFocus = function (o) {
var v1 = o._parent;
while (v1 != undefined) {
if (v1.focusTextField != undefined) {
while (v1.focusTextField != undefined) {
o = v1;
v1 = v1._parent;
if (v1 == undefined) {
return undefined;
}
if (v1.focusTextField == undefined) {
return o;
}
}
}
if (v1.tabEnabled != true) {
return o;
}
o = v1;
v1 = o._parent;
}
return undefined;
};
v2.getSelectionFocus = function () {
var m = Selection.getFocus();
var o = eval(m);
return o;
};
v2.getFocus = function (Void) {
var v2 = this.getSelectionFocus();
return this.getActualFocus(v2);
};
v2.walkTree = function (p, index, groupName, dir, lookup, firstChild) {
var v5 = true;
var v11;
for (v11 in p) {
var v2 = p[v11];
if (v2._parent == p && v2.enabled != false && v2._visible != false && (v2.tabEnabled == true || v2.tabEnabled != false && (v2.onPress != undefined || v2.onRelease != undefined || v2.onReleaseOutside != undefined || v2.onDragOut != undefined || v2.onDragOver != undefined || v2.onRollOver != undefined || v2.onRollOut != undefined || v2 instanceof TextField))) {
if (v2._searchKey == this._searchKey) {
continue;
}
v2._searchKey = this._searchKey;
if (v2 != this._lastTarget) {
if ((v2.groupName != undefined || groupName != undefined) && v2.groupName == groupName) {
continue;
}
if (v2 instanceof TextField && v2.selectable == false) {
continue;
}
if (v5 || v2.groupName != undefined && v2.groupName == this._firstNode.groupName && v2.selected == true) {
if (firstChild) {
this._firstNode = v2;
firstChild = false;
}
}
if (this._nextIsNext == true) {
if (v2.groupName != undefined && v2.groupName == this._nextNode.groupName && v2.selected == true || this._nextNode == undefined && (v2.groupName == undefined || v2.groupName != undefined && v2.groupName != groupName)) {
this._nextNode = v2;
}
}
if (v2.groupName == undefined || groupName != v2.groupName) {
if (this._lastx.groupName != undefined && v2.groupName == this._lastx.groupName && this._lastx.selected == true) {
} else {
this._lastx = v2;
}
}
} else {
this._prevNode = this._lastx;
this._needPrev = false;
this._nextIsNext = true;
}
if (v2.tabIndex != undefined) {
if (v2.tabIndex == index) {
if (this._foundList[v2._name] == undefined) {
if (this._needPrev) {
this._prevObj = v2;
this._needPrev = false;
}
this._nextObj = v2;
}
}
if (dir && v2.tabIndex > index) {
if (this._nextObj == undefined || this._nextObj.tabIndex > v2.tabIndex && (v2.groupName == undefined || this._nextObj.groupName == undefined || v2.groupName != this._nextObj.groupName) || this._nextObj.groupName != undefined && this._nextObj.groupName == v2.groupName && this._nextObj.selected != true && (v2.selected == true || this._nextObj.tabIndex > v2.tabIndex)) {
this._nextObj = v2;
}
} else {
if (!dir && v2.tabIndex < index) {
if (this._prevObj == undefined || this._prevObj.tabIndex < v2.tabIndex && (v2.groupName == undefined || this._prevObj.groupName == undefined || v2.groupName != this._prevObj.groupName) || this._prevObj.groupName != undefined && this._prevObj.groupName == v2.groupName && this._prevObj.selected != true && (v2.selected == true || this._prevObj.tabIndex < v2.tabIndex)) {
this._prevObj = v2;
}
}
}
if (this._firstObj == undefined || v2.tabIndex < this._firstObj.tabIndex && (v2.groupName == undefined || this._firstObj.groupName == undefined || v2.groupName != this._firstObj.groupName) || this._firstObj.groupName != undefined && this._firstObj.groupName == v2.groupName && this._firstObj.selected != true && (v2.selected == true || v2.tabIndex < this._firstObj.tabIndex)) {
this._firstObj = v2;
}
if (this._lastObj == undefined || v2.tabIndex > this._lastObj.tabIndex && (v2.groupName == undefined || this._lastObj.groupName == undefined || v2.groupName != this._lastObj.groupName) || this._lastObj.groupName != undefined && this._lastObj.groupName == v2.groupName && this._lastObj.selected != true && (v2.selected == true || v2.tabIndex > this._lastObj.tabIndex)) {
this._lastObj = v2;
}
}
if (v2.tabChildren) {
this.getTabCandidateFromChildren(v2, index, groupName, dir, v5 && firstChild);
}
v5 = false;
} else {
if (v2._parent == p && v2.tabChildren == true && v2._visible != false) {
if (v2 == this._lastTarget) {
if (v2._searchKey == this._searchKey) {
continue;
}
v2._searchKey = this._searchKey;
if (this._prevNode == undefined) {
var v3 = this._lastx;
var v7 = false;
while (v3 != undefined) {
if (v3 == v2) {
v7 = true;
break;
}
v3 = v3._parent;
}
if (v7 == false) {
this._prevNode = this._lastx;
}
}
this._needPrev = false;
if (this._nextNode == undefined) {
this._nextIsNext = true;
}
} else {
if (!(v2.focusManager != undefined && v2.focusManager._parent == v2)) {
if (v2._searchKey == this._searchKey) {
continue;
}
v2._searchKey = this._searchKey;
this.getTabCandidateFromChildren(v2, index, groupName, dir, v5 && firstChild);
}
}
v5 = false;
}
}
}
this._lastNode = this._lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != this._parent) {
if (this._prevNode == undefined && dir) {
this._needPrev = true;
} else {
if (this._nextNode == undefined && !dir) {
this._nextIsNext = false;
}
}
this._lastTarget = this._lastTarget._parent;
this.getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
};
v2.getTabCandidate = function (o, index, groupName, dir, firstChild) {
var v2;
var v3 = true;
if (o == this._parent) {
v2 = o;
v3 = false;
} else {
v2 = o._parent;
if (v2 == undefined) {
v2 = o;
v3 = false;
}
}
this.walkTree(v2, index, groupName, dir, v3, firstChild);
};
v2.getTabCandidateFromChildren = function (o, index, groupName, dir, firstChild) {
this.walkTree(o, index, groupName, dir, false, firstChild);
};
v2.getFocusManagerFromObject = function (o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return o.focusManager;
}
o = o._parent;
}
return undefined;
};
v2.tabHandler = function (Void) {
this.bDrawFocus = true;
var v5 = this.getSelectionFocus();
var v4 = this.getActualFocus(v5);
if (v4 != v5) {
v5 = v4;
}
if (this.getFocusManagerFromObject(v5) != this) {
v5 == undefined;
}
if (v5 == undefined) {
v5 = this.form;
} else {
if (v5.tabIndex != undefined) {
if (this._foundList != undefined || this._foundList.tabIndex != v5.tabIndex) {
this._foundList = new Object();
this._foundList.tabIndex = v5.tabIndex;
}
this._foundList[v5._name] = v5;
}
}
var v3 = Key.isDown(16) != true;
this._searchKey = getTimer();
this._needPrev = true;
this._nextIsNext = false;
this._lastx = undefined;
this._firstNode = undefined;
this._lastNode = undefined;
this._nextNode = undefined;
this._prevNode = undefined;
this._firstObj = undefined;
this._lastObj = undefined;
this._nextObj = undefined;
this._prevObj = undefined;
this._lastTarget = v5;
var v6 = v5;
this.getTabCandidate(v6, (v5.tabIndex == undefined) ? 0 : v5.tabIndex, v5.groupName, v3, true);
var v2;
if (v3) {
if (this._nextObj != undefined) {
v2 = this._nextObj;
} else {
v2 = this._firstObj;
}
} else {
if (this._prevObj != undefined) {
v2 = this._prevObj;
} else {
v2 = this._lastObj;
}
}
if (v2.tabIndex != v5.tabIndex) {
this._foundList = new Object();
this._foundList.tabIndex = v2.tabIndex;
this._foundList[v2._name] = v2;
} else {
if (this._foundList == undefined) {
this._foundList = new Object();
this._foundList.tabIndex = v2.tabIndex;
}
this._foundList[v2._name] = v2;
}
if (v2 == undefined) {
if (v3 == false) {
if (this._nextNode != undefined) {
v2 = this._nextNode;
} else {
v2 = this._firstNode;
}
} else {
if (this._prevNode == undefined || v5 == this.form) {
v2 = this._lastNode;
} else {
v2 = this._prevNode;
}
}
}
if (v2 == undefined) {
return undefined;
}
this.lastTabFocus = v2;
this.setFocus(v2);
if (v2.emphasized != undefined) {
if (this.defPushButton != undefined) {
v5 = this.defPushButton;
this.defPushButton = v2;
v5.emphasized = false;
v2.emphasized = true;
}
} else {
if (this.defPushButton != undefined && this.defPushButton != this.__defaultPushButton) {
v5 = this.defPushButton;
this.defPushButton = this.__defaultPushButton;
v5.emphasized = false;
this.__defaultPushButton.__set__emphasized(true);
}
}
};
v2.onKeyDown = function (Void) {
mx.managers.SystemManager.idleFrames = 0;
if (this.defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (this.__get__defaultPushButton() != undefined) {
this.doLater(this, 'sendDefaultPushButtonEvent');
}
}
}
};
v2.sendDefaultPushButtonEvent = function (Void) {
this.defPushButton.dispatchEvent({'type': 'click'});
};
v2.getMousedComponentFromChildren = function (x, y, o) {
for (var v7 in o) {
var v2 = o[v7];
if (v2._visible && v2.enabled && v2._parent == o && v2._searchKey != this._searchKey) {
v2._searchKey = this._searchKey;
if (v2.hitTest(x, y, true)) {
if (v2.onPress != undefined || v2.onRelease != undefined) {
return v2;
}
var v3 = this.getMousedComponentFromChildren(x, y, v2);
if (v3 != undefined) {
return v3;
}
return v2;
}
}
}
return undefined;
};
v2.mouseActivate = function (Void) {
if (!this.bNeedFocus) {
return undefined;
}
this._searchKey = getTimer();
var v2 = this.getMousedComponentFromChildren(this.lastMouse.x, this.lastMouse.y, this.form);
if (v2 instanceof mx.core.UIComponent) {
return undefined;
}
v2 = this.findFocusFromObject(v2);
if (v2 == this.lastFocus) {
return undefined;
}
if (v2 == undefined) {
this.doLater(this, 'restoreFocus');
return undefined;
}
var v3 = v2.hscroll;
if (v3 != undefined) {
var v6 = v2.scroll;
var v5 = v2.background;
}
this.setFocus(v2);
var v4 = Selection;
Selection.setSelection(v4.lastBeginIndex, v4.lastEndIndex);
if (v3 != undefined) {
v2.scroll = v6;
v2.hscroll = v3;
v2.background = v5;
}
};
v2._onMouseDown = function (Void) {
this.bDrawFocus = false;
if (this.lastFocus != undefined) {
this.lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var v3 = Selection;
v3.lastBeginIndex = Selection.getBeginIndex();
v3.lastEndIndex = Selection.getEndIndex();
this.lastMouse.x = _root._xmouse;
this.lastMouse.y = _root._ymouse;
_root.localToGlobal(this.lastMouse);
};
v2.onMouseUp = function (Void) {
if (this._visible) {
this.doLater(this, 'mouseActivate');
}
};
v2.handleEvent = function (e) {
if (e.type == 'reveal') {
mx.managers.SystemManager.activate(this.form);
} else {
mx.managers.SystemManager.deactivate(this.form);
}
};
v1.enableFocusManagement = function () {
if (!mx.managers.FocusManager.initialized) {
mx.managers.FocusManager.initialized = true;
Object.registerClass('FocusManager', mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, 'focusManager', mx.managers.DepthManager.highestDepth--);
}
}
};
v1.symbolName = 'FocusManager';
v1.symbolOwner = mx.managers.FocusManager;
v1.version = '2.0.2.127';
v2.className = 'FocusManager';
v2.bNeedFocus = false;
v2.bDrawFocus = false;
v2.defaultPushButtonEnabled = true;
v2.activated = true;
v1.initialized = false;
v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
v2.addProperty('defaultPushButton', v2.__get__defaultPushButton, v2.__set__defaultPushButton);
v2.addProperty('nextTabIndex', v2.__get__nextTabIndex, function () {});
ASSetPropFlags(mx.managers.FocusManager.prototype, null, 1);
}
#endinitclip
}
movieClip 39 __Packages.mx.skins.halo.FocusRect {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.skins) {
_global.mx.skins = new Object();
}
if (!_global.mx.skins.halo) {
_global.mx.skins.halo = new Object();
}
if (!_global.mx.skins.halo.FocusRect) {
var v1 = function () {
super();
this.boundingBox_mc._visible = false;
this.boundingBox_mc._height = 0;
this.boundingBox_mc._width = 0;
};
mx.skins.halo.FocusRect = v1;
var v2 = new mx.skins.SkinElement();
mx.skins.halo.FocusRect.prototype = v2;
v2.draw = function (o) {
o.adjustFocusRect();
};
v2.setSize = function (w, h, r, a, rectCol) {
this._yscale = 100;
this._xscale = 100;
this.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;
this.beginFill(rectCol, a * 0.3);
this.drawRoundRect(0, 0, w, h, r);
this.drawRoundRect(2, 2, w - 4, h - 4, r);
this.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;
this.beginFill(rectCol, a * 0.3);
this.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;
this.drawRoundRect(2, 2, w - 4, h - 4, r);
this.endFill();
} else {
var v5;
if (r != 0) {
v5 = r - 2;
} else {
v5 = 0;
}
this.beginFill(rectCol, a * 0.3);
this.drawRoundRect(0, 0, w, h, r);
this.drawRoundRect(2, 2, w - 4, h - 4, v5);
this.endFill();
this.beginFill(rectCol, a * 0.3);
if (r != 0) {
v5 = r - 2;
r -= 1;
} else {
v5 = 0;
r = 0;
}
this.drawRoundRect(1, 1, w - 2, h - 2, r);
this.drawRoundRect(2, 2, w - 4, h - 4, v5);
this.endFill();
}
};
v2.handleEvent = function (e) {
if (e.type == 'unload') {
this._visible = true;
} else {
if (e.type == 'resize') {
e.target.adjustFocusRect();
} else {
if (e.type == 'move') {
e.target.adjustFocusRect();
}
}
}
};
v1.classConstruct = function () {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var v2 = this._parent.focus_mc;
if (!focused) {
v2._visible = false;
this.removeEventListener('unload', v2);
this.removeEventListener('move', v2);
this.removeEventListener('resize', v2);
} else {
if (v2 == undefined) {
v2 = this._parent.createChildAtDepth('FocusRect', mx.managers.DepthManager.kTop);
v2.tabEnabled = false;
this._parent.focus_mc = v2;
} else {
v2._visible = true;
}
v2.draw(this);
if (v2.getDepth() < this.getDepth()) {
v2.setDepthAbove(this);
}
this.addEventListener('unload', v2);
this.addEventListener('move', v2);
this.addEventListener('resize', v2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var v2 = this.getStyle('themeColor');
if (v2 == undefined) {
v2 = 8453965;
}
var v3 = this._parent.focus_mc;
v3.setSize(this.width + 4, this.height + 4, 0, 100, v2);
v3.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;
};
v1.classConstructed = mx.skins.halo.FocusRect.classConstruct();
v1.DefaultsDependency = mx.skins.halo.Defaults;
v1.UIComponentDependency = mx.core.UIComponent;
ASSetPropFlags(mx.skins.halo.FocusRect.prototype, null, 1);
}
#endinitclip
}
movieClip 40 __Packages.mx.managers.OverlappedWindows {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.managers) {
_global.mx.managers = new Object();
}
if (!_global.mx.managers.OverlappedWindows) {
var v1 = function () {};
mx.managers.OverlappedWindows = v1;
var v2 = v1.prototype;
v1.checkIdle = function (Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({'type': 'idle'});
} else {
++mx.managers.SystemManager.idleFrames;
}
};
v1.__addEventListener = function (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);
};
v1.__removeEventListener = function (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);
}
};
v1.onMouseDown = function (Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var v5 = _root;
var v3;
var v8 = _root._xmouse;
var v7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var v6 = mx.managers.SystemManager.forms.length;
var v4;
v4 = 0;
while (v4 < v6) {
var v2 = mx.managers.SystemManager.forms[v4];
if (v2._visible) {
if (v2.hitTest(v8, v7)) {
if (v3 == undefined) {
v3 = v2.getDepth();
v5 = v2;
} else {
if (v3 < v2.getDepth()) {
v3 = v2.getDepth();
v5 = v2;
}
}
}
}
++v4;
}
if (v5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(v5);
}
}
}
var v9 = mx.managers.SystemManager.form;
v9.focusManager._onMouseDown();
};
v1.onMouseMove = function (Void) {
mx.managers.SystemManager.idleFrames = 0;
};
v1.onMouseUp = function (Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
};
v1.activate = function (f) {
if (mx.managers.SystemManager.form != undefined) {
if (mx.managers.SystemManager.form != f && mx.managers.SystemManager.forms.length > 1) {
var v1 = mx.managers.SystemManager.form;
v1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
};
v1.deactivate = function (f) {
if (mx.managers.SystemManager.form != undefined) {
if (mx.managers.SystemManager.form == f && mx.managers.SystemManager.forms.length > 1) {
var v5 = mx.managers.SystemManager.form;
v5.focusManager.deactivate();
var v3 = mx.managers.SystemManager.forms.length;
var v1;
var v2;
v1 = 0;
while (v1 < v3) {
if (mx.managers.SystemManager.forms[v1] == f) {
v1 += 1;
while (v1 < v3) {
if (mx.managers.SystemManager.forms[v1]._visible == true) {
v2 = mx.managers.SystemManager.forms[v1];
}
++v1;
}
mx.managers.SystemManager.form = v2;
break;
} else {
if (mx.managers.SystemManager.forms[v1]._visible == true) {
v2 = mx.managers.SystemManager.forms[v1];
}
}
++v1;
}
v5 = mx.managers.SystemManager.form;
v5.focusManager.activate();
}
}
};
v1.addFocusManager = function (f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
};
v1.removeFocusManager = function (f) {
var v3 = mx.managers.SystemManager.forms.length;
var v1;
v1 = 0;
while (v1 < v3) {
if (mx.managers.SystemManager.forms[v1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(v1, 1);
return undefined;
}
++v1;
}
};
v1.enableOverlappedWindows = function () {
if (!mx.managers.OverlappedWindows.initialized) {
mx.managers.OverlappedWindows.initialized = true;
mx.managers.SystemManager.checkIdle = mx.managers.OverlappedWindows.checkIdle;
mx.managers.SystemManager.__addEventListener = mx.managers.OverlappedWindows.__addEventListener;
mx.managers.SystemManager.__removeEventListener = mx.managers.OverlappedWindows.__removeEventListener;
mx.managers.SystemManager.onMouseDown = mx.managers.OverlappedWindows.onMouseDown;
mx.managers.SystemManager.onMouseMove = mx.managers.OverlappedWindows.onMouseMove;
mx.managers.SystemManager.onMouseUp = mx.managers.OverlappedWindows.onMouseUp;
mx.managers.SystemManager.activate = mx.managers.OverlappedWindows.activate;
mx.managers.SystemManager.deactivate = mx.managers.OverlappedWindows.deactivate;
mx.managers.SystemManager.addFocusManager = mx.managers.OverlappedWindows.addFocusManager;
mx.managers.SystemManager.removeFocusManager = mx.managers.OverlappedWindows.removeFocusManager;
}
};
v1.initialized = false;
v1.SystemManagerDependency = mx.managers.SystemManager;
ASSetPropFlags(mx.managers.OverlappedWindows.prototype, null, 1);
}
#endinitclip
}
movieClip 41 __Packages.mx.styles.CSSSetStyle {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.styles) {
_global.mx.styles = new Object();
}
if (!_global.mx.styles.CSSSetStyle) {
var v1 = function () {};
mx.styles.CSSSetStyle = v1;
var v2 = v1.prototype;
v2._setStyle = function (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 v7 = mx.styles.StyleManager.colorNames.haloBlue;
var v6 = mx.styles.StyleManager.colorNames.haloGreen;
var v8 = mx.styles.StyleManager.colorNames.haloOrange;
var v4 = {};
v4[v7] = 12188666;
v4[v6] = 13500353;
v4[v8] = 16766319;
var v5 = {};
v5[v7] = 13958653;
v5[v6] = 14942166;
v5[v8] = 16772787;
var v9 = v4[newValue];
var v10 = v5[newValue];
if (v9 == undefined) {
v9 = newValue;
}
if (v10 == undefined) {
v10 = newValue;
}
this.setStyle('selectionColor', v9);
this.setStyle('rollOverColor', v10);
}
_level0.changeColorStyleInChildren(this.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(this.styleName, styleProp, newValue);
}
};
v2.changeTextStyleInChildren = function (styleProp) {
var v4 = getTimer();
var v5;
for (v5 in this) {
var v2 = this[v5];
if (v2._parent == this) {
if (v2.searchKey != v4) {
if (v2.stylecache != undefined) {
delete v2.stylecache.tf;
delete v2.stylecache[styleProp];
}
v2.invalidateStyle(styleProp);
v2.changeTextStyleInChildren(styleProp);
v2.searchKey = v4;
}
}
}
};
v2.changeColorStyleInChildren = function (sheetName, colorStyle, newValue) {
var v6 = getTimer();
var v7;
for (v7 in this) {
var v2 = this[v7];
if (v2._parent == this) {
if (v2.searchKey != v6) {
if (v2.getStyleName() == sheetName || sheetName == undefined || sheetName == '_global') {
if (v2.stylecache != undefined) {
delete v2.stylecache[colorStyle];
}
if (typeof v2._color == 'string') {
if (v2._color == colorStyle) {
var v4 = v2.getStyle(colorStyle);
if (colorStyle == 'color') {
if (this.stylecache.tf.color != undefined) {
this.stylecache.tf.color = v4;
}
}
v2.setColor(v4);
}
} else {
if (v2._color[colorStyle] != undefined) {
if (typeof v2 != 'movieclip') {
v2._parent.invalidateStyle();
} else {
v2.invalidateStyle(colorStyle);
}
}
}
}
v2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
v2.searchKey = v6;
}
}
}
};
v2.notifyStyleChangeInChildren = function (sheetName, styleProp, newValue) {
var v5 = getTimer();
var v6;
for (v6 in this) {
var v2 = this[v6];
if (v2._parent == this) {
if (v2.searchKey != v5) {
if (v2.styleName == sheetName || v2.styleName != undefined && typeof v2.styleName == 'movieclip' || sheetName == undefined) {
if (v2.stylecache != undefined) {
delete v2.stylecache[styleProp];
delete v2.stylecache.tf;
}
delete v2.enabledColor;
v2.invalidateStyle(styleProp);
}
v2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
v2.searchKey = v5;
}
}
}
};
v2.setStyle = function (styleProp, newValue) {
if (this.stylecache != undefined) {
delete this.stylecache[styleProp];
delete this.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 v10 = mx.styles.StyleManager.colorNames.haloBlue;
var v9 = mx.styles.StyleManager.colorNames.haloGreen;
var v11 = mx.styles.StyleManager.colorNames.haloOrange;
var v6 = {};
v6[v10] = 12188666;
v6[v9] = 13500353;
v6[v11] = 16766319;
var v7 = {};
v7[v10] = 13958653;
v7[v9] = 14942166;
v7[v11] = 16772787;
var v12 = v6[newValue];
var v13 = v7[newValue];
if (v12 == undefined) {
v12 = newValue;
}
if (v13 == undefined) {
v13 = newValue;
}
this.setStyle('selectionColor', v12);
this.setStyle('rollOverColor', v13);
}
if (typeof this._color == 'string') {
if (this._color == styleProp) {
if (styleProp == 'color') {
if (this.stylecache.tf.color != undefined) {
this.stylecache.tf.color = newValue;
}
}
this.setColor(newValue);
}
} else {
if (this._color[styleProp] != undefined) {
this.invalidateStyle(styleProp);
}
}
this.changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if (styleProp == 'backgroundColor' && isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return undefined;
}
}
this.invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || styleProp == 'styleName') {
var v8;
var v5 = newValue;
if (styleProp == 'styleName') {
v8 = (typeof newValue == 'string') ? _global.styles[newValue] : v5;
v5 = v8.themeColor;
if (v5 != undefined) {
v8.selectionColor = v5;
v8.rollOverColor = v8.selectionColor;
}
}
this.notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
};
v1.enableRunTimeCSS = function () {};
v1.classConstruct = function () {
var v2 = MovieClip.prototype;
var v3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = v3._setStyle;
v2.changeTextStyleInChildren = v3.changeTextStyleInChildren;
v2.changeColorStyleInChildren = v3.changeColorStyleInChildren;
v2.notifyStyleChangeInChildren = v3.notifyStyleChangeInChildren;
v2.setStyle = v3.setStyle;
_global.ASSetPropFlags(v2, 'changeTextStyleInChildren', 1);
_global.ASSetPropFlags(v2, 'changeColorStyleInChildren', 1);
_global.ASSetPropFlags(v2, 'notifyStyleChangeInChildren', 1);
_global.ASSetPropFlags(v2, 'setStyle', 1);
var v4 = TextField.prototype;
v4.setStyle = v2.setStyle;
v4.changeTextStyleInChildren = v3.changeTextStyleInChildren;
return true;
};
v1.classConstructed = mx.styles.CSSSetStyle.classConstruct();
v1.CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
ASSetPropFlags(mx.styles.CSSSetStyle.prototype, null, 1);
}
#endinitclip
}
movieClip 42 __Packages.mx.core.ext.UIComponentExtensions {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.core) {
_global.mx.core = new Object();
}
if (!_global.mx.core.ext) {
_global.mx.core.ext = new Object();
}
if (!_global.mx.core.ext.UIComponentExtensions) {
var v1 = function () {};
mx.core.ext.UIComponentExtensions = v1;
var v2 = v1.prototype;
v1.Extensions = function () {
if (mx.core.ext.UIComponentExtensions.bExtended == true) {
return true;
}
mx.core.ext.UIComponentExtensions.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();
};
v1.bExtended = false;
v1.UIComponentExtended = mx.core.ext.UIComponentExtensions.Extensions();
v1.UIComponentDependency = mx.core.UIComponent;
v1.FocusManagerDependency = mx.managers.FocusManager;
v1.OverlappedWindowsDependency = mx.managers.OverlappedWindows;
ASSetPropFlags(mx.core.ext.UIComponentExtensions.prototype, null, 1);
}
#endinitclip
}
movieClip 43 __Packages.com.newgrounds.components.APIConnector {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.components) {
_global.com.newgrounds.components = new Object();
}
if (!_global.com.newgrounds.components.APIConnector) {
var v1 = function () {
super();
this._x = Math.round(this._x);
this._y = Math.round(this._y);
if (this.fake_session and com.newgrounds.API.getHost() == 'localhost') {
com.newgrounds.API.setFakeSession(true);
}
if (this.api_id && !com.newgrounds.API.isConnected()) {
this._visible = false;
this.setGotoFrame('connecting');
if (this.error_screens) {
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.NEW_VERSION_AVAILABLE, this.onNewVersion, this);
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.HOST_BLOCKED, this.onBadHost, this);
}
if (this.medal_popups) {
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.UNLOCK_MEDAL, this.doUnlock, this);
}
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, this.onConnected, this);
if (com.newgrounds.API.isPublishedHost()) {
this.debug = false;
}
if (this.version) {
com.newgrounds.API.setVersion(this.version);
}
if (!com.newgrounds.API.hasUserSession()) {
var v3 = com.newgrounds.API.loadLocal('api_connector_data');
if (v3) {
this.local_data = v3;
} else {
this.local_data = {'medals_unlocked': new Array()};
}
}
com.newgrounds.API.setPreload(true);
com.newgrounds.API.connect(this.api_id, this.encryption_key, this.debug);
} else {
if (this.api_id && com.newgrounds.API.isConnected()) {
this._visible = false;
this.setGotoFrame('done');
}
}
};
com.newgrounds.components.APIConnector = v1;
com.newgrounds.components.APIConnector extends MovieClip;
var v2 = v1.prototype;
v2.doUnlock = function (e) {
var v5 = _root.attachMovie('NewgroundsAPIAsset_Medal_Popup', 'medal_pop_' + e.data.medal.getID(), _root.getNextHighestDepth());
if (e.data.x != undefined) {
v5._x = e.data.x + 254;
} else {
v5._x = Stage.width;
}
if (e.data.x != undefined) {
v5._y = e.data.y + 73;
} else {
v5._y = Stage.height;
}
v5.medal = e.data.medal;
var v3 = com.newgrounds.API.getMedals();
var v2 = 0;
while (v2 < v3.length) {
if (v3[v2].getID() != e.data.medal.getID() && _root['medal_pop_' + v3[v2].getID()]) {
_root['medal_pop_' + v3[v2].getID()]._y -= 70;
}
++v2;
}
};
v2.onLoginError = function () {
var v2 = _root.attachMovie('Asset_Login_Warning', 'Asset_Login_Warning', _root.getNextHighestDepth());
};
v2.onConnectionError = function () {
var v3 = _root.attachMovie('Asset_Connection_Error', 'Asset_Connection_Error', _root.getNextHighestDepth());
this.setGotoFrame('done');
};
v2.onConnected = function (event, params) {
if (event.success) {
this.setGotoFrame('connected');
if (this.error_screens && com.newgrounds.API.isPublishedHost() && com.newgrounds.API.hasPublisher() && !com.newgrounds.API.hasUserSession()) {
this.onLoginError();
}
} else {
if (this.error_screens) {
this.onConnectionError();
}
}
};
v2.onNewVersion = function () {
var v2 = _root.attachMovie('NewgroundsAsset_New_Version_Available', 'NewgroundsAsset_New_Version_Available', _root.getNextHighestDepth());
v2.official_version_url = com.newgrounds.API.getOfficialURL();
};
v2.onBadHost = function () {
var v2 = _root.attachMovie('NewgroundsAsset_Illegal_Host', 'NewgroundsAsset_Illegal_Host', _root.getNextHighestDepth());
v2.official_version_url = com.newgrounds.API.getOfficialURL();
};
v2.setGotoFrame = function (frame) {
if (this.goto_frame == null) {
this.goto_frame = frame;
this.gotoframe_interval = setInterval(this, 'gotoFrameIfLoaded', 50);
}
};
v2.gotoFrameIfLoaded = function () {
if (this.goto_frame != null && this._framesloaded == this._totalframes) {
this._visible = true;
this.gotoAndStop(this.goto_frame);
this.goto_frame = null;
clearInterval(this.gotoframe_interval);
}
};
v2.goto_frame = null;
ASSetPropFlags(com.newgrounds.components.APIConnector.prototype, null, 1);
}
#endinitclip
}
movieClip 116 __Packages.com.newgrounds.APIError {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.APIError) {
var v1 = function (error, msg) {
if ((Number(error)).toString() == String(error)) {
error = Number(error);
} else {
if (com.newgrounds.APIError.error_codes[String(error)]) {
error = com.newgrounds.APIError.error_codes[String(error)];
} else {
error = 0;
}
}
this.code = error;
this.message = msg;
this.name = com.newgrounds.APIError.error_names[error];
this.alias = com.newgrounds.APIError.aliases[error];
};
com.newgrounds.APIError = v1;
var v2 = v1.prototype;
v1.init_codes = function () {
var v2 = new Object();
var v1 = 0;
while (v1 < com.newgrounds.APIError.aliases.length) {
v2[com.newgrounds.APIError.aliases[v1]] = v1;
++v1;
}
return v2;
};
v1.init_names = function () {
var v5 = new Array();
var v3 = 0;
while (v3 < com.newgrounds.APIError.aliases.length) {
var v2 = (com.newgrounds.APIError.aliases[v3].toLowerCase()).split('_');
var v1 = 0;
while (v1 < v2.length) {
v2[v1] = (v2[v1].substr(0, 1)).toUpperCase() + v2[v1].substr(1, v2[v1].length);
for (var v4 in com.newgrounds.APIError.always_caps) {
if (v2[v1].toUpperCase() == com.newgrounds.APIError.always_caps[v4]) {
v2[v1] = v2[v1].toUpperCase();
}
}
++v1;
}
v5[v3] = v2.join(' ');
++v3;
}
return v5;
};
v2.isError = function () {
return true;
};
v1.aliases = new Array('UNKNOWN_ERROR', 'INVALID_API_ID', 'MISSING_PARAM', 'INVALID_STAT_ID', 'INVALID_COMMAND_ID', 'FLASH_ADS_NOT_APPROVED', 'PERMISSION_DENIED', 'IDENTIFICATION_REQUIRED', 'INVALID_EMAIL_ADDRESS', 'BANNED_USER', 'SESSION_EXPIRED', 'INVALID_SCORE', 'INVALID_MEDAL', 'INVALID_SAVE_GROUP', 'FILE_NOT_FOUND', 'SITE_ID_REQUIRED', 'UPLOAD_IN_PROGRESS', 'USER_CANCELLED', 'CONFIRM_REQUEST', 'ILLEGAL_REQUEST', 'CONNECTION_FAILED', 'QUERY_INCOMPLETE', 'SAVE_FILE_ERROR', 'INVALID_VALUE', 'SERVER_ERROR', 'INVALID_SCOREBOARD');
v1.always_caps = new Array('API', 'URL', 'ID');
v1.error_codes = com.newgrounds.APIError.init_codes();
v1.error_names = com.newgrounds.APIError.init_names();
v2.code = 0;
ASSetPropFlags(com.newgrounds.APIError.prototype, null, 1);
}
#endinitclip
}
movieClip 117 __Packages.com.newgrounds.API {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.API) {
var v1 = function () {};
com.newgrounds.API = v1;
var v2 = v1.prototype;
v1.setVersion = function (v) {
com.newgrounds.API.version = v;
};
v1.setUserEmail = function (e) {
com.newgrounds.API.user_email = e;
};
v1.setFakeSession = function (fake) {
com.newgrounds.API.fake_session = fake;
};
v1.setPreload = function (p) {
com.newgrounds.API.preload = p;
};
v1.getPercentLoaded = function () {
var v2;
if (com.newgrounds.API.preload && com.newgrounds.API.preload_items > 0) {
v2 = 80;
var v4 = Math.round((com.newgrounds.API.preload_items_loaded / com.newgrounds.API.preload_items) * 20);
var v3 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * v2) + v4;
return v3;
}
v2 = 100;
v3 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * v2);
return v3;
};
v1.reportNewAsset = function () {
if (com.newgrounds.API.preload) {
++com.newgrounds.API.preload_items;
}
};
v1.reportAssetLoaded = function () {
if (com.newgrounds.API.preload) {
++com.newgrounds.API.preload_items_loaded;
}
};
v1.populateMedals = function (medal_list) {
if (com.newgrounds.API.medals === null) {
com.newgrounds.API.medals = new Array();
var v2 = 0;
while (v2 < medal_list.length) {
var v1 = medal_list[v2];
com.newgrounds.API.medals.push(new com.newgrounds.Medal(v1.medal_id, v1.medal_name, v1.medal_value, v1.medal_difficulty, v1.medal_unlocked, v1.medal_icon));
++v2;
}
}
};
v1.populateSaveGroups = function (save_group_list, file_path, image_path) {
com.newgrounds.SaveFile.setFilePath(file_path);
com.newgrounds.SaveFile.setImagePath(image_path);
com.newgrounds.API.save_groups = new Array();
var v6 = 0;
while (v6 < save_group_list.length) {
var v2 = save_group_list[v6];
var v5 = new com.newgrounds.SaveGroup(v2.group_id, v2.group_name, v2.group_type);
var v4 = 0;
while (v4 < v2.keys.length) {
var v3 = v2.keys[v4];
v5.addKey(v3.id, v3.name, v3.type);
++v4;
}
v4 = 0;
while (v4 < v2.ratings.length) {
var v1 = v2.ratings[v4];
v5.addRating(v1.id, v1.name, v1.min, v1.max, v1.float);
++v4;
}
com.newgrounds.API.save_groups.push(v5);
++v6;
}
};
v1.populateScoreBoards = function (score_boards) {
com.newgrounds.API.scoreboards = new Array();
var v1 = 0;
while (v1 < score_boards.length) {
com.newgrounds.API.scoreboards.push(new com.newgrounds.ScoreBoard(score_boards[v1].id, score_boards[v1].name));
++v1;
}
};
v1.getOfficialURL = function () {
var v1 = com.newgrounds.API.GATEWAY_URL + '?tracker_id=' + com.newgrounds.API.movie_id + '&command_id=loadOfficalVersion&seed=' + Math.random();
if (com.newgrounds.API.debug) {
v1 += '&debug=1';
}
return v1;
};
v1.loadOfficialURL = function () {
getURL(com.newgrounds.API.getOfficialURL(), '_blank');
};
v1.hasUserSession = function () {
if (com.newgrounds.API.session_id && com.newgrounds.API.publisher_id) {
return true;
return false;
}
if (_root.NewgroundsAPI_PublisherID && _root.NewgroundsAPI_SessionID) {
return true;
}
return false;
};
v1.hostIsCompatible = function () {
return _root.NewgroundsAPI_PublisherID !== undefined;
};
v1.isNewgrounds = function () {
return com.newgrounds.API.publisher_id == 1 || _root.NewgroundsAPI_PublisherID == 1 || ((com.newgrounds.API.getHost()).toLowerCase()).indexOf('ungrounded.net') > -1 || ((com.newgrounds.API.getHost()).toLowerCase()).indexOf('newgrounds.com') > -1;
};
v1.hasPublisher = function () {
return com.newgrounds.API.publisher_id || _root.NewgroundsAPI_PublisherID;
};
v1.hasUserEmail = function () {
if (com.newgrounds.API.user_email) {
return true;
}
return false;
};
v1.isConnected = function () {
return com.newgrounds.API.connected;
};
v1.getID = function () {
return com.newgrounds.API.getTrackerID();
};
v1.getTrackerID = function () {
return com.newgrounds.API.tracker_id;
};
v1.getUserID = function () {
return com.newgrounds.API.user_id;
};
v1.getUserName = function () {
return com.newgrounds.API.user_name;
};
v1.connectionTimeOut = function () {
com.newgrounds.API.reportAssetLoaded();
clearInterval(com.newgrounds.API.timeout);
com.newgrounds.API.callListener(com.newgrounds.APIEvent.API_CONNECTED, false, new com.newgrounds.APIError('CONNECTION_FAILED', 'Connection to API gateway timed out.'));
};
v1.connect = function (m_id, encrypt_key, debug_mode) {
if (com.newgrounds.API.connected) {
return undefined;
}
com.newgrounds.API.sendMessage('Connecting to the Newgrounds API Gateway...');
var v2 = function () {
com.newgrounds.API.connectionTimeOut();
};
com.newgrounds.API.timeout = setInterval(v2, 10000, null);
if (!m_id) {
com.newgrounds.API.fatalError('API.connect() - missing required movie_id parameter', 'connect');
}
com.newgrounds.API.movie_id = String(m_id);
com.newgrounds.API.tracker_id = Number(com.newgrounds.API.movie_id.substring(0, com.newgrounds.API.movie_id.indexOf(':')));
com.newgrounds.API.encryption_key = encrypt_key;
com.newgrounds.API.debug = debug_mode;
com.newgrounds.API.user_id = 0;
com.newgrounds.API.user_name = 'Guest';
if (_root.NewgroundsAPI_PublisherID) {
com.newgrounds.API.publisher_id = _root.NewgroundsAPI_PublisherID;
if (_root.NewgroundsAPI_SessionID) {
com.newgrounds.API.session_id = _root.NewgroundsAPI_SessionID;
}
} else {
if (com.newgrounds.API.fake_session) {
com.newgrounds.API.publisher_id = 1;
com.newgrounds.API.session_id = 'D3bu64p1U53R';
com.newgrounds.API.user_id = 10;
com.newgrounds.API.user_name = 'API-Debugger';
} else {
if (com.newgrounds.API.debug) {
com.newgrounds.API.publisher_id = 1;
}
com.newgrounds.API.session_id = null;
}
}
if (_root.NewgroundsAPI_UserName) {
com.newgrounds.API.user_name = _root.NewgroundsAPI_UserName;
}
if (_root.NewgroundsAPI_UserID) {
com.newgrounds.API.user_id = _root.NewgroundsAPI_UserID;
}
if (_root.NewgroundsAPI_UserpageFormat) {
com.newgrounds.API.userpage_format = _root.NewgroundsAPI_UserpageFormat;
}
com.newgrounds.API.reportNewAsset();
com.newgrounds.API.connected = true;
com.newgrounds.API.sendCommand('connectMovie', {'host': com.newgrounds.API.getHost(), 'movie_version': com.newgrounds.API.version});
};
v1.getHost = function () {
if (!com.newgrounds.API.host) {
var v1 = _url;
if ((v1.toLowerCase()).indexOf('http://') > -1 or (v1.toLowerCase()).indexOf('https://') > -1) {
if ((v1.toLowerCase()).indexOf(com.newgrounds.API.NEWGROUNDS_PREVIEW) > -1) {
com.newgrounds.API.host = com.newgrounds.API.NEWGROUNDS_PREVIEW;
} else {
com.newgrounds.API.host = (v1.split('/'))[2].toLowerCase();
}
return com.newgrounds.API.host;
}
com.newgrounds.API.host = com.newgrounds.API.LOCAL_HOST;
}
return com.newgrounds.API.host;
};
v1.isPublishedHost = function () {
for (var v1 in com.newgrounds.API.PREVIEW_HOSTS) {
if (com.newgrounds.API.getHost() == com.newgrounds.API.PREVIEW_HOSTS[v1]) {
return false;
}
}
return true;
};
v1.loadUserPage = function (u_id, u_name) {
if (u_id == undefined && u_name == undefined) {
if (com.newgrounds.API.hasUserSession()) {
u_id = com.newgrounds.API.user_id;
u_name = com.newgrounds.API.user_name;
} else {
return false;
}
}
if (com.newgrounds.API.publisher_id == 1) {
var v1 = 'http://' + com.newgrounds.API.user_name.toLowerCase() + '.newgrounds.com';
getURL(v1, '_blank');
return true;
return false;
}
if (com.newgrounds.API.userpage_format) {
v1 = com.newgrounds.API.userpage_format;
v1 = (v1.split(':user_id:')).join(u_id.toString());
v1 = (v1.split(':user_name:')).join(escape(u_name));
getURL(v1, '_blank');
return true;
}
return false;
};
v1.loadNewgrounds = function () {
com.newgrounds.API.sendCommand('loadNewgrounds', {'host': com.newgrounds.API.getHost()}, true);
};
v1.loadMySite = function () {
com.newgrounds.API.sendCommand('loadMySite', {'host': com.newgrounds.API.getHost()}, true);
};
v1.loadCustomLink = function (link) {
com.newgrounds.API.sendCommand('loadCustomLink', {'host': com.newgrounds.API.getHost(), 'link': link}, true);
};
v1.logCustomEvent = function (event) {
com.newgrounds.API.sendCommand('logCustomEvent', {'host': com.newgrounds.API.getHost(), 'event': event});
};
v1.getScoreBoard = function (board) {
if (!com.newgrounds.API.scoreboards || com.newgrounds.API.scoreboards.length < 1) {
com.newgrounds.API.sendWarning('You do not have any scoreboards configured in your API setup.');
return null;
}
for (var v2 in com.newgrounds.API.scoreboards) {
if (typeof board == 'string' && com.newgrounds.API.scoreboards[v2].name == board) {
return com.newgrounds.API.scoreboards[v2];
} else {
if (typeof board == 'number' && com.newgrounds.API.scoreboards[v2].id == board) {
return com.newgrounds.API.scoreboards[v2];
}
}
}
com.newgrounds.API.sendWarning('Could not find any scoreboards named \'' + board + '\'.');
return null;
};
v1.postScore = function (board_name, value, tag) {
var v3 = com.newgrounds.API.getScoreBoard(board_name);
if (tag === undefined) {
tag = '';
}
if (!v3) {
com.newgrounds.API.sendError({'command_id': 'postScore'}, new com.newgrounds.APIError('INVALID_SCOREBOARD', 'Failed to post score. Check the spelling of your board name.'));
return undefined;
}
if (value == undefined) {
com.newgrounds.API.sendError({'command_id': 'postScore'}, new com.newgrounds.APIError('MISSING_PARAM', 'Missing score value'));
return undefined;
}
com.newgrounds.API.sendSecureCommand('postScore', {'user_name': com.newgrounds.API.user_name, 'board': v3.id, 'value': value, 'tag': tag, 'publisher_id': com.newgrounds.API.publisher_id});
};
v1.loadScores = function (board_name, period, tag) {
var v3 = 'loadScores';
var v2 = com.newgrounds.API.getScoreBoard(board_name);
if (!v2) {
com.newgrounds.API.sendError({'command_id': v3}, new com.newgrounds.APIError('INVALID_SCOREBOARD', 'Failed to load scores. Check the spelling of your board name.'));
return undefined;
}
var v1 = {};
v1.publisher_id = com.newgrounds.API.publisher_id;
v1.board = v2.id;
v1.num_results = v2.num_results;
v1.page = v2.page;
if (period === undefined) {
v1.period = v2.period;
} else {
v1.period = period;
}
if (tag === undefined) {
v1.tag = v2.tag;
} else {
v1.tag = tag;
}
com.newgrounds.API.sendCommand(v3, v1);
};
v1.unlockMedal = function (medal, x, y) {
if (!medal) {
com.newgrounds.API.sendError({'command_id': 'unlockMedal'}, new com.newgrounds.APIError('MISSING_PARAM', 'missing required medal name'));
return undefined;
}
if (typeof medal != 'object') {
medal = com.newgrounds.API.getMedal(medal);
}
if (!medal) {
com.newgrounds.API.sendError({'command_id': 'unlockMedal'}, new com.newgrounds.APIError('INVALID_MEDAL', 'medal unlock failed, check your medal name for correct spelling.'));
return undefined;
}
com.newgrounds.API.callListener(com.newgrounds.APIEvent.UNLOCK_MEDAL, true, {'medal': medal, 'x': x, 'y': y});
if (com.newgrounds.API.hasUserSession() or com.newgrounds.API.debug) {
com.newgrounds.API.sendMessage('Attempting to unlock \'' + medal.getName() + '\'');
var v3 = new Object();
v3.medal_id = medal.getID();
com.newgrounds.API.sendSecureCommand('unlockMedal', v3);
} else {
com.newgrounds.API.sendMessage('Unlocking \'' + medal.getName() + '\'');
medal.setUnlocked(true);
var v2 = com.newgrounds.API.loadLocal('medals_unlocked');
if (!v2) {
v2 = new Object();
}
v2[medal.getID()] = true;
com.newgrounds.API.saveLocal('medals_unlocked', v2);
}
};
v1.loadMedals = function () {
if (com.newgrounds.API.medals) {
com.newgrounds.API.callListener(com.newgrounds.APIEvent.MEDALS_LOADED, true, {'medals': com.newgrounds.API.medals});
return undefined;
}
var v1 = new Object();
if (com.newgrounds.API.hasUserSession()) {
v1.publisher_id = com.newgrounds.API.publisher_id;
v1.user_id = com.newgrounds.API.user_id;
}
com.newgrounds.API.sendCommand('getMedals', v1);
};
v1.getMedals = function () {
return com.newgrounds.API.medals;
};
v1.getMedal = function (identifier) {
if (!com.newgrounds.API.medals || com.newgrounds.API.medals.length < 1) {
com.newgrounds.API.sendWarning('You do not have any medals configured on your API setup!');
return false;
}
for (var v3 in com.newgrounds.API.medals) {
var v1 = com.newgrounds.API.medals[v3];
if (typeof identifier == 'string' && v1.getName() == identifier) {
return v1;
} else {
if (v1.getID() == identifier) {
return v1;
}
}
}
com.newgrounds.API.sendWarning('Could not find any medals named \'' + identifier + '\'.');
return false;
};
v1.saveLocal = function (save_id, save_data, size_allocation) {
if (!com.newgrounds.API.sharedObjects[save_id]) {
com.newgrounds.API.sharedObjects[save_id] = SharedObject.getLocal('ng_ap_secure_' + com.newgrounds.API.movie_id + '_' + save_id);
}
com.newgrounds.API.sharedObjects[save_id].data[save_id] = com.newgrounds.API.encodeData(save_data);
com.newgrounds.API.sharedObjects[save_id].flush();
};
v1.loadLocal = function (save_id) {
if (!com.newgrounds.API.sharedObjects[save_id]) {
com.newgrounds.API.sharedObjects[save_id] = SharedObject.getLocal('ng_ap_secure_' + com.newgrounds.API.movie_id + '_' + save_id);
}
com.newgrounds.API.sharedObjects[save_id].flush();
com.newgrounds.API.echo('sharedobject ' + save_id + ' is: ' + com.newgrounds.API.sharedObjects[save_id].data[save_id]);
if (com.newgrounds.API.sharedObjects[save_id].data[save_id]) {
com.newgrounds.API.echo('decoded: ' + com.newgrounds.API.decodeData(com.newgrounds.API.sharedObjects[save_id].data[save_id]));
return com.newgrounds.API.decodeData(com.newgrounds.API.sharedObjects[save_id].data[save_id]);
} else {
return null;
}
};
v1.encodeData = function (data) {
return com.newgrounds.API.compressHex(com.newgrounds.encoders.RC4.encrypt(com.newgrounds.encoders.JSON.encode(data), com.newgrounds.API.encryption_key));
};
v1.decodeData = function (base) {
return com.newgrounds.encoders.JSON.decode(com.newgrounds.encoders.RC4.decrypt(com.newgrounds.API.uncompressHex(base), com.newgrounds.API.encryption_key));
};
v1.compressHex = function (hex_value) {
var v6 = hex_value.length % 6;
var v4 = '';
var v5 = new com.newgrounds.encoders.BaseN(com.newgrounds.API.compression_radix);
var v1 = 0;
while (v1 < hex_value.length) {
var v2 = Number('0x' + hex_value.substr(v1, 6));
v4 += v5.encode(v2, 4);
v1 += 6;
}
return v6 + v4;
};
v1.uncompressHex = function (base_value) {
var v9 = Number(base_value.charAt(0));
var v7 = '';
var v3;
var v8 = new com.newgrounds.encoders.BaseN(com.newgrounds.API.compression_radix);
var v2 = 1;
while (v2 < base_value.length) {
var v6 = base_value.substr(v2, 4);
var v5 = v8.decode(v6);
var v1 = com.newgrounds.API.dec2hex(v5);
if (v2 + 4 < base_value.length) {
v3 = 6;
} else {
v3 = v9;
}
while (v1.length < v3) {
v1 = '0' + v1;
}
v7 += v1;
v2 += 4;
}
return v7;
};
v1.dec2hex = function (dec) {
var v4 = '0123456789ABCDEF';
var v3 = '';
while (dec > 0) {
var v2 = dec % 16;
v3 = v4.charAt(v2) + v3;
dec = (dec - v2) / 16;
}
return v3;
};
v1.getSaveGroup = function (group) {
if (com.newgrounds.API.save_groups == null || com.newgrounds.API.save_groups.length < 1) {
com.newgrounds.API.sendWarning('You do not have any save groups configured in your API setup!');
return null;
}
var v1 = 0;
while (v1 <= com.newgrounds.API.save_groups.length) {
if (typeof group == 'number' or (Number(group)).toString() == String(group)) {
if (com.newgrounds.API.save_groups[v1].getID() == Number(group)) {
return com.newgrounds.API.save_groups[v1];
}
} else {
if (typeof group == 'string') {
if ((com.newgrounds.API.save_groups[v1].getName()).toLowerCase() == group.toLowerCase()) {
return com.newgrounds.API.save_groups[v1];
}
}
}
++v1;
}
com.newgrounds.API.sendWarning('Could not find any save groups named \'' + group + '\'.');
return null;
};
v1.getCurrentSaveFile = function () {
return com.newgrounds.API.save_file;
};
v1.setCurrentSaveFile = function (current) {
com.newgrounds.API.save_file = current;
};
v1.loadSaveFile = function (save_id, get_contents) {
if (get_contents === undefined) {
get_contents = true;
}
var v1 = 'loadSaveFile';
var v2 = {'publisher_id': com.newgrounds.API.publisher_id, 'save_id': save_id, 'get_contents': get_contents};
com.newgrounds.API.save_file = null;
com.newgrounds.API.sendCommand(v1, v2);
};
v1.loadFilesByDate = function (group_name, sort_descending, key_name, key_value) {
if (sort_descending === undefined) {
sort_descending = true;
}
var v2 = com.newgrounds.API.getSaveGroup(group_name);
if (!v2) {
var v3 = new com.newgrounds.APIError('QUERY_INCOMPLETE', 'The query could not be preformed, check the spelling of your save group name.');
com.newgrounds.API.sendError({'command_id': 'loadFilesByDate'}, v3);
return undefined;
}
var v1 = new com.newgrounds.SaveGroupQuery(v2);
if (key_name) {
v1.addKeyCondition(key_name, '=', key_value);
}
v1.sortOn('CREATED_ON', sort_descending ? 'DESC' : 'ASC');
v1.execute();
};
v1.loadFilesByViews = function (group_name, sort_descending, key_name, key_value) {
if (sort_descending === undefined) {
sort_descending = true;
}
var v2 = com.newgrounds.API.getSaveGroup(group_name);
if (!v2) {
var v3 = new com.newgrounds.APIError('QUERY_INCOMPLETE', 'The query could not be preformed, check the spelling of your save group name.');
com.newgrounds.API.sendError({'command_id': 'loadFilesByViews'}, v3);
return undefined;
}
var v1 = new com.newgrounds.SaveGroupQuery(v2);
if (key_name) {
v1.addKeyCondition(key_name, '=', key_value);
}
v1.sortOn('TOTAL_VIEWS', sort_descending ? 'DESC' : 'ASC');
v1.execute();
};
v1.loadFilesByRating = function (group_name, rating_name, sort_descending, key_name, key_value) {
if (sort_descending === undefined) {
sort_descending = true;
}
var v2 = com.newgrounds.API.getSaveGroup(group_name);
if (!v2) {
var v3 = new com.newgrounds.APIError('QUERY_INCOMPLETE', 'The query could not be preformed, check the spelling of your save group name.');
com.newgrounds.API.sendError({'command_id': 'loadFilesByRating'}, v3);
return undefined;
}
var v1 = new com.newgrounds.SaveGroupQuery(v2);
if (key_name) {
v1.addKeyCondition(key_name, '=', key_value);
}
v1.sortOnRating(rating_name, sort_descending ? 'DESC' : 'ASC', 'score');
v1.execute();
};
v1.lookupSaveFiles = function (save_group) {
var v1 = 'lookupSaveFiles';
var v2 = {'publisher_id': com.newgrounds.API.publisher_id, 'group_id': save_group.getID(), 'query': com.newgrounds.encoders.JSON.encode(save_group.getQuery(true))};
com.newgrounds.API.sendCommand(v1, v2);
};
v1.newSaveFile = function (group) {
var v1 = com.newgrounds.API.getSaveGroup(group);
if (v1) {
return v1.newFile();
} else {
var v2 = new com.newgrounds.APIError('INVALID_SAVE_GROUP', 'You can not create new files in invalid groups.');
com.newgrounds.API.sendError({'command_id': 'newSaveFile'}, v2);
}
};
v1.newSaveQuery = function (group) {
var v1 = com.newgrounds.API.getSaveGroup(group);
if (v1) {
return v1.newQuery();
} else {
var v2 = new com.newgrounds.APIError('INVALID_SAVE_GROUP', '\'' + group + '\' is not a valid save group.');
com.newgrounds.API.sendError({'command_id': 'newSaveQuery'}, v2);
}
};
v1.checkFilePrivs = function (file) {
if (com.newgrounds.API.user_id) {
var v1 = com.newgrounds.API.user_id;
} else {
var v1 = 0;
}
var v2 = {'group': (file.getGroup()).getID(), 'filename': file.getName(), 'user_id': v1, 'publisher_id': com.newgrounds.API.publisher_id};
com.newgrounds.API.sendCommand('checkFilePrivs', v2);
};
v1.saveFile = function (file, overwrite) {
var v1;
v1 = {'group': (file.getGroup()).getID(), 'filename': file.getName(), 'description': file.getDescription(), 'draft': file.__get__draft(), 'user_name': com.newgrounds.API.user_name};
if (overwrite) {
v1.overwrite = overwrite;
}
if (file.getDuplicateID()) {
v1.save_id = file.getDuplicateID();
}
if ((file.getKeys()).length > 0) {
v1.keys = file.getKeys();
}
var v3;
v3 = {'file': file.getRawContents()};
if (file.getThumbnailImageScan()) {
v3.thumbnail = file.getThumbnailImageScan();
}
com.newgrounds.API.save_file = file;
com.newgrounds.API.sendSecureCommand('saveFile', v1, null, v3);
};
v1.rateSaveFile = function (file, rating, vote) {
var v1 = {'group': (file.getGroup()).getID(), 'save_id': file.getID(), 'rating_id': rating.rating_id, 'vote': vote, 'user_id': com.newgrounds.API.user_id};
com.newgrounds.API.sendSecureCommand('rateSaveFile', v1);
};
v1.getConfirmation = function (command_name, event, msg, target, confirm, cancel) {
var v1 = new com.newgrounds.APIError('CONFIRM_REQUEST', msg);
v1.confirm = function () {
target[confirm]();
};
v1.cancel = function () {
target[cancel]();
};
v1.command = command_name;
com.newgrounds.API.callListener(event, false, v1);
};
v1.onRemoteAuthentication = function (auth_result) {
var v1 = com.newgrounds.encoders.JSON.decode(com.newgrounds.encoders.RC4.decrypt(auth_result, com.newgrounds.API.encryption_key));
delete com.newgrounds.API.remote_auth;
com.newgrounds.API.user_id = v1.NewgroundsAPI_UserID;
com.newgrounds.API.user_name = v1.NewgroundsAPI_UserName;
com.newgrounds.API.session_id = v1.NewgroundsAPI_SessionID;
com.newgrounds.API.publisher_id = v1.NewgroundsAPI_PublisherID;
};
v1.doEvent = function (e) {
switch (e.command_id) {
case 'connectMovie':
clearInterval(com.newgrounds.API.timeout);
com.newgrounds.API.sendMessage('You have successfully connected to the Newgrounds API Gateway');
com.newgrounds.API.sendMessage('Movie identified as "' + e.movie_name + '"');
com.newgrounds.API.callListener(com.newgrounds.APIEvent.API_CONNECTED, e.success, {'title': e.movie_name});
var v7 = false;
if (e.ad_status === -1) {
var v11 = 'This movie was not approved to run Flash Ads.';
com.newgrounds.API.sendWarning(v11);
com.newgrounds.API.sendWarning('visit ' + com.newgrounds.API.AD_TERMS_URL + ' to view our approval guidelines');
if (!e.ad_url) {
com.newgrounds.API.callListener(com.newgrounds.APIEvent.ADS_APPROVED, false, new com.newgrounds.APIError('FLASH_ADS_NOT_APPROVED', v11));
} else {
v7 = true;
}
} else {
if (e.ad_status === 0) {
var v11 = 'Flash Ads are currently awaiting approval.';
com.newgrounds.API.sendNotice(v11);
if (!e.ad_url) {
com.newgrounds.API.callListener(com.newgrounds.APIEvent.ADS_APPROVED, false, new com.newgrounds.APIError('FLASH_ADS_NOT_APPROVED', v11));
} else {
v7 = true;
}
}
}
if (e.ad_url) {
com.newgrounds.API.ad_url = unescape(e.ad_url);
if (!v7) {
com.newgrounds.API.sendMessage('This movie has been approved to run Flash Ads!');
}
com.newgrounds.API.callListener(com.newgrounds.APIEvent.ADS_APPROVED, true);
}
if (e.deny_host) {
v11 = com.newgrounds.API.getHost() + ' does not have permission to run this movie!';
com.newgrounds.API.sendWarning(v11);
com.newgrounds.API.sendWarning('\tUpdate your API configuration to unblock ' + com.newgrounds.API.getHost());
com.newgrounds.API.callListener(com.newgrounds.APIEvent.HOST_BLOCKED, true, {'real_url': unescape(e.movie_url), 'url': com.newgrounds.API.getOfficialURL()});
} else {
if (e.movie_version) {
com.newgrounds.API.sendWarning('According to your API Configuration, this version is out of date.');
if (com.newgrounds.API.version) {
com.newgrounds.API.sendWarning('\tThe this movie is version ' + com.newgrounds.API.version);
}
com.newgrounds.API.sendWarning('\tThe most current version is ' + e.movie_version);
com.newgrounds.API.callListener(com.newgrounds.APIEvent.NEW_VERSION_AVAILABLE, true, {'version': e.movie_version, 'real_url': unescape(e.movie_url), 'url': com.newgrounds.API.getOfficialURL()});
}
}
if (e.request_portal_url) {
com.newgrounds.API.sendCommand('setPortalID', {'portal_url': _url});
}
if (com.newgrounds.API.preload) {
com.newgrounds.API.reportNewAsset();
var v8 = {};
if (com.newgrounds.API.hasUserSession()) {
v8.publisher_id = com.newgrounds.API.publisher_id;
v8.user_id = com.newgrounds.API.user_id;
}
com.newgrounds.API.sendCommand('preloadSettings', v8);
}
com.newgrounds.API.reportAssetLoaded();
break;
case 'preloadSettings':
if (e.medals) {
com.newgrounds.API.populateMedals(e.medals);
if (!com.newgrounds.API.hasUserSession() and !com.newgrounds.API.debug) {
com.newgrounds.API.echo('checking for sharedobject medals...');
var v4 = com.newgrounds.API.loadLocal('medals_unlocked');
if (v4) {
for (var v32 in v4) {
v32 = Number(v32);
if (v4[v32]) {
var v3 = com.newgrounds.API.getMedal(v32);
com.newgrounds.API.echo('now unlocking ' + v3.getName());
v3.setUnlocked(true);
}
}
}
}
}
if (e.save_groups) {
com.newgrounds.API.populateSaveGroups(e.save_groups, e.save_file_path);
}
if (e.score_boards) {
com.newgrounds.API.populateScoreBoards(e.score_boards);
}
if (_root.NewgroundsAPI_SaveFileID && _root.NewgroundsAPI_SaveGroupID) {
com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_REQUESTED, true, {'save_id': _root.NewgroundsAPI_SaveFileID, 'group': com.newgrounds.API.getSaveGroup(_root.NewgroundsAPI_SaveGroupID)});
}
com.newgrounds.API.callListener(com.newgrounds.APIEvent.METADATA_LOADED, true);
com.newgrounds.API.reportAssetLoaded();
break;
case 'logCustomEvent':
if (e.success) {
com.newgrounds.API.sendMessage('Event \'' + e.event + '\' was logged.');
}
com.newgrounds.API.callListener(com.newgrounds.APIEvent.EVENT_LOGGED, e.success, {'event': e.event});
break;
case 'postScore':
var v9;
if (e.success) {
var v5 = 'User';
if (com.newgrounds.API.user_email) {
v5 = com.newgrounds.API.user_email;
} else {
if (com.newgrounds.API.user_name) {
v5 = com.newgrounds.API.user_name;
}
}
var v19 = com.newgrounds.API.getScoreBoard(e.board);
com.newgrounds.API.sendMessage(v5 + ' posted ' + e.value + ' to \'' + v19.name + '\'');
v9 = {'board': v19, 'value': e.value, 'username': v5};
}
com.newgrounds.API.callListener(com.newgrounds.APIEvent.SCORE_POSTED, e.success, v9);
break;
case 'loadScores':
var v9 = new Object();
var v19 = com.newgrounds.API.getScoreBoard(e.board);
if (v19.exists()) {
v19.setScores(e.scores, e.period, e.page, e.num_results);
}
com.newgrounds.API.callListener(com.newgrounds.APIEvent.SCORES_LOADED, e.success, {'board': v19});
break;
case 'unlockMedal':
var v24 = com.newgrounds.API.getMedal(e.medal_name);
v24.setUnlocked(true);
com.newgrounds.API.sendMessage('Successfuly unlocked \'' + v24.getName() + '\'');
com.newgrounds.API.callListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, e.success, {'medal_id': v24.id, 'medal': v24});
break;
case 'getMedals':
com.newgrounds.API.populateMedals(e.medals);
com.newgrounds.API.callListener(com.newgrounds.APIEvent.MEDALS_LOADED, e.success, {'medals': com.newgrounds.API.medals});
break;
case 'loadSaveFile':
var v16 = com.newgrounds.API.getSaveGroup(e.group_id);
var v14 = new com.newgrounds.SaveFile(v16);
v14.id = e.file.save_id;
v14.name = e.file.filename;
v14.fileUrl = e.file.file;
v14.thumbnailUrl = e.file.thumb;
v14.authorName = e.file.user_name;
v14.authorId = e.file.user_id;
v14.description = e.file.description;
v14.setPermissions(e.file.status, e.file.locked);
for (var v6 in e.file.keys) {
v14.setKey(e.file.keys[v6].id, e.file.keys[v6].value);
}
for (v6 in e.file.ratings) {
v14.setRating(e.file.ratings[v6].id, e.file.ratings[v6].votes, e.file.ratings[v6].score);
}
if (e.get_contents) {
v14.loadContents();
}
com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_INITIALIZED, e.success, {'save_id': v14.id, 'file': v14});
com.newgrounds.API.save_file = v14;
break;
case 'lookupSaveFiles':
var v12 = (com.newgrounds.API.getSaveGroup(e.group_id)).getQuery();
v12.onExecuted(e.files);
break;
case 'rateSaveFile':
var v16 = com.newgrounds.API.getSaveGroup(e.group_id);
var v14 = v16.getFile(e.save_id);
if (e.already_voted) {
var v27 = new com.newgrounds.APIError('PERMISSION_DENIED', 'You have already voted on this item today');
com.newgrounds.API.callListener(com.newgrounds.APIEvent.VOTE_COMPLETE, false, {'error': v27, 'file': v14, 'save_id': v14.id});
return undefined;
} else {
if (e.success) {
var v10 = v14.onVoted(e);
com.newgrounds.API.callListener(com.newgrounds.APIEvent.VOTE_COMPLETE, e.success, {'rating': v10, 'file': v14, 'save_id': v14.id});
} else {
com.newgrounds.API.callListener(com.newgrounds.APIEvent.VOTE_COMPLETE, e.success, {'file': v14, 'save_id': v14.id});
com.newgrounds.API.sendError('Your vote was not accepted.');
}
}
break;
case 'saveFile':
if (com.newgrounds.API.save_file) {
if (!com.newgrounds.API.save_file.exists()) {
com.newgrounds.API.save_file.setID(e.save_id, true);
}
com.newgrounds.API.save_file.onSaved(e);
com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_SAVED, e.success, {'save_id': com.newgrounds.API.save_file.__get__id(), 'file': com.newgrounds.API.save_file});
if (e.success) {
com.newgrounds.API.sendMessage('You just saved a new file (id #' + e.save_id + ') to the \'' + (com.newgrounds.API.save_file.__get__group()).__get__name() + '\' save group.');
}
}
com.newgrounds.API.save_file = null;
break;
case 'checkFilePrivs':
var v9 = {'file': com.newgrounds.API.save_file, 'filename': e.filename, 'group': e.group, 'exists': e.exists, 'can_write': e.can_write};
if (e.duplicate_id) {
v9.duplicate_id = e.duplicate_id;
}
if (!e.success) {
com.newgrounds.API.sendWarning('You do not have permission to save this file!');
}
com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_PRIVS_LOADED, e.success, v9);
}
};
v1.getDispatcher = function () {
if (!com.newgrounds.API.eventDispatcher) {
com.newgrounds.API.eventDispatcher = new com.newgrounds.APIEventDispatcher();
}
return com.newgrounds.API.eventDispatcher;
};
v1.hasEventListener = function (event) {
return (com.newgrounds.API.getDispatcher()).hasEventListener(event);
};
v1.addEventListener = function (event, listener, target) {
com.newgrounds.API.echo('Adding a listener for \'' + event + '\'');
(com.newgrounds.API.getDispatcher()).addEventListener(event, listener, target);
};
v1.removeEventListener = function (event, target) {
(com.newgrounds.API.getDispatcher()).removeEventListener(event, target);
};
v1.callListener = function (event, success, data, target) {
com.newgrounds.API.echo('Fired Event: ' + event);
var v2 = new com.newgrounds.APIEvent(event, success, data);
(com.newgrounds.API.getDispatcher()).dispatchEvent(v2);
if (event == com.newgrounds.APIEvent.API_CONNECTED && !success) {
com.newgrounds.API.connected = false;
}
com.newgrounds.API.bridge.sendEvent(event, {'success': success, 'data': data});
};
v1.sendError = function (c, e) {
switch (c.command_id) {
case 'connectMovie':
clearInterval(com.newgrounds.API.timeout);
com.newgrounds.API.callListener(com.newgrounds.APIEvent.API_CONNECTED, false, {'error': e, 'response': c});
break;
case 'saveFile':
com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_SAVED, false, {'error': e, 'file': com.newgrounds.API.save_file, 'response': c});
com.newgrounds.API.save_file = null;
}
var v3 = '[Newgrounds API ERROR] :: ' + c.command_id + '() - ' + e.name + ':' + '\n' + '\t\t\t\t' + e.message;
trace(v3);
com.newgrounds.API.bridge.sendEvent('trace', {'data': v3});
};
v1.sendWarning = function (m, c) {
if (c) {
m += '\r[Newgrounds API WARNING] :: \tSee ' + com.newgrounds.API.COMMANDS_WIKI_URL + c.toLowerCase() + ' for additional information.';
}
var v1 = '[Newgrounds API WARNING] :: ' + m;
trace(v1);
com.newgrounds.API.bridge.sendEvent('trace', {'data': v1});
};
v1.sendNotice = function (m, c) {
if (c) {
m += '\r[Newgrounds API NOTICE] :: \tSee ' + com.newgrounds.API.COMMANDS_WIKI_URL + c.toLowerCase() + ' for additional information.';
}
trace('[Newgrounds API NOTICE] :: ' + m);
};
v1.fatalError = function (m, c) {
if (c) {
m += '\r\tSee ' + com.newgrounds.API.COMMANDS_WIKI_URL + c.toLowerCase() + ' for additional information.';
}
throw '***ERROR*** frame=' + _root._currentframe + ', class=API' + '\n' + '\n' + m;
};
v1.openLoginPage = function () {
if (com.newgrounds.API.hasUserSession()) {
return undefined;
}
if (!com.newgrounds.API.remote_auth) {
var v1 = com.newgrounds.encoders.MD5.calculate(Math.random() + 'a' + com.newgrounds.API.movie_id);
v1 = 'POOPYPANTS';
com.newgrounds.API.remote_auth = new com.newgrounds.RemoteAuth(v1);
}
var v2 = com.newgrounds.encoders.RC4.encrypt(com.newgrounds.API.remote_auth.__get__token(), com.newgrounds.API.encryption_key);
getURL(com.newgrounds.API.LOGIN_URL + '?api_auth_id=' + com.newgrounds.API.movie_id + '&api_auth_key=' + v2, '_blank');
};
v1.sendSecureCommand = function (command, secure_params, unsecure_params, files) {
if (!com.newgrounds.API.debug && !com.newgrounds.API.hasUserSession() && !com.newgrounds.API.hasUserEmail()) {
com.newgrounds.API.sendError({'command_id': command}, new com.newgrounds.APIError('IDENTIFICATION_REQUIRED', 'You must be logged in, or provide an e-mail address using \'API.setUserEmail("name@domain.com");\' to use ' + command + '().'));
return undefined;
}
if (!command) {
com.newgrounds.API.fatalError('Missing command', 'sendSecureCommand');
}
if (!secure_params) {
com.newgrounds.API.fatalError('Missing secure_params', 'sendSecureCommand');
}
if (!unsecure_params) {
unsecure_params = new Object();
}
var v2 = '';
var v1 = 0;
while (v1 < 16) {
v2 += com.newgrounds.API.compression_radix.charAt(Math.floor(Math.random() * com.newgrounds.API.compression_radix.length));
++v1;
}
if (com.newgrounds.API.debug && !com.newgrounds.API.fake_session && !com.newgrounds.API.session_id) {
secure_params.session_id = '';
} else {
secure_params.session_id = com.newgrounds.API.session_id;
}
secure_params.as_version = 2;
secure_params.user_email = com.newgrounds.API.user_email;
secure_params.publisher_id = com.newgrounds.API.publisher_id;
secure_params.seed = v2;
secure_params.command_id = command;
var v8 = com.newgrounds.encoders.JSON.encode(secure_params);
var v9 = com.newgrounds.encoders.MD5.calculate(v2);
var v6 = com.newgrounds.encoders.RC4.encrypt(v8, com.newgrounds.API.encryption_key);
var v7 = v9 + v6;
unsecure_params.secure = com.newgrounds.API.compressHex(v7);
com.newgrounds.API.sendCommand('securePacket', unsecure_params, false, files);
};
v1.sendCommand = function (command, params, open_browser, files) {
if (!com.newgrounds.API.connected and command != 'connectMovie') {
var v12 = 'API.' + command + '() - API.connect() must be called before this command can be called' + '\n';
com.newgrounds.API.fatalError(v12, 'connect');
}
if (open_browser) {
var v2 = new Object();
} else {
var v2 = new LoadVars();
}
v2.command_id = command;
v2.tracker_id = com.newgrounds.API.movie_id;
if (com.newgrounds.API.debug) {
v2.debug = com.newgrounds.API.debug;
}
if (params) {
for (var v9 in params) {
v2[v9] = params[v9];
}
}
if (files) {
for (v9 in files) {
v2[v9] = files[v9];
}
}
if (open_browser) {
var v6 = com.newgrounds.API.GATEWAY_URL + '?seed=' + Math.random();
for (v9 in v2) {
v6 += '&' + escape(v9) + '=' + escape(v2[v9]);
}
trace('OPENING ' + v6);
getURL(v6, '_blank');
v2.removeMovieClip();
} else {
var v10 = new LoadVars();
v10.remember_command_id = v2.command_id;
v10.onData = function (data) {
com.newgrounds.API.echo('INPUT: \r' + data + '\n');
if (data) {
var v2 = com.newgrounds.encoders.JSON.decode(data);
} else {
var v2 = {'success': false};
}
if (!v2.success) {
if (!v2.error_code && !v2.error_msg) {
v2.error_code = 'CONNECTION_FAILED';
v2.error_msg = 'Could not contact the API Gateway';
v2.command_id = this.remember_command_id;
}
var v4 = new com.newgrounds.APIError(v2.error_code, v2.error_msg);
com.newgrounds.API.sendError(v2, v4);
} else {
com.newgrounds.API.doEvent(v2);
}
};
var v7 = new Array();
for (var v8 in v2) {
v7.push(v8 + '=' + escape(v2[v8]));
}
com.newgrounds.API.echo('POST ' + com.newgrounds.API.GATEWAY_URL + '?' + v7.join('&'));
v2.sendAndLoad(com.newgrounds.API.GATEWAY_URL + '?seed=' + Math.random(), v10, 'POST');
com.newgrounds.API.last_command = v2.command_id;
}
};
v1.renderAd = function (target) {
if (com.newgrounds.API.ad_swf_url) {
target.background = target.createEmptyMovieClip('background', 100);
target.background.beginFill(0);
target.background.moveTo(0, 0);
target.background.lineTo(300, 0);
target.background.lineTo(300, 250);
target.background.lineTo(0, 250);
target.background.lineTo(0, 0);
target.background.endFill();
target.mask = target.createEmptyMovieClip('mask', 101);
target.mask.beginFill(0);
target.mask.moveTo(0, 0);
target.mask.lineTo(300, 0);
target.mask.lineTo(300, 250);
target.mask.lineTo(0, 250);
target.mask.lineTo(0, 0);
target.mask.endFill();
target.clip = target.createEmptyMovieClip('clip', 102);
target.clip.ad = target.clip.createEmptyMovieClip('ad', 100);
target.clip.setMask(target.mask);
target.clip.ad._lockroot = true;
loadMovie(com.newgrounds.API.ad_swf_url, target.clip.ad);
com.newgrounds.API.callListener(com.newgrounds.APIEvent.AD_ATTACHED, true, {'target': target});
} else {
com.newgrounds.API.callListener(com.newgrounds.APIEvent.AD_ATTACHED, false, new com.newgrounds.APIError('FLASH_ADS_NOT_APPROVED', 'Unable to render ad'));
}
};
v1.attachFlashAd = function (target) {
System.security.allowDomain('http://server.cpmstar.com');
System.security.allowDomain('http://www.cpmstar.com');
System.security.allowDomain('https://server.cpmstar.com');
System.security.allowDomain('https://www.cpmstar.com');
System.security.allowInsecureDomain('http://server.cpmstar.com');
System.security.allowInsecureDomain('http://www.cpmstar.com');
System.security.allowInsecureDomain('https://server.cpmstar.com');
System.security.allowInsecureDomain('https://www.cpmstar.com');
if (com.newgrounds.API.checkAdFlood()) {
com.newgrounds.API.ad_swf_url = null;
} else {
if (com.newgrounds.API.checkAdCache()) {
com.newgrounds.API.reportNewAsset();
var v1 = new LoadVars();
v1.onData = function (data) {
if (data) {
com.newgrounds.API.ad_swf_url = data;
} else {
com.newgrounds.API.ad_swf_url = null;
}
com.newgrounds.API.reportAssetLoaded();
com.newgrounds.API.renderAd(target);
};
if (com.newgrounds.API.ad_url.indexOf('?') > -1) {
v1.load(com.newgrounds.API.ad_url + '&random=' + Math.random());
} else {
v1.load(com.newgrounds.API.ad_url + '?random=' + Math.random());
}
if (!com.newgrounds.API.ad_warning) {
com.newgrounds.API.ad_warning = true;
com.newgrounds.API.sendMessage('You may get a security sandbox violation from this ad. This is nothing to worry about!');
}
} else {
if (com.newgrounds.API.ad_swf_url) {
com.newgrounds.API.renderAd(target);
}
}
}
};
v1.checkAdFlood = function () {
if (!com.newgrounds.API.ad_url) {
return false;
}
var v2 = new Date();
var v1 = v2.getTime();
if (v1 >= com.newgrounds.API.ad_flood) {
if (v1 - com.newgrounds.API.ad_flood > 1000) {
com.newgrounds.API.ad_flood = v1 + 1000;
return false;
}
com.newgrounds.API.ad_flood = v1;
com.newgrounds.API.sendWarning('This movie is attempting to load multiple ads at too high of a frequency; you may have a bad preloader loop.');
return true;
}
return false;
};
v1.checkAdCache = function () {
if (!com.newgrounds.API.ad_url) {
return false;
}
var v2 = new Date();
var v1 = v2.getTime();
if (v1 >= com.newgrounds.API.ad_url_cache) {
com.newgrounds.API.ad_url_cache = v1 + 300000;
return true;
}
return false;
};
v1.sendMessage = function (m, r) {
var v1 = '[Newgrounds API] :: ' + m;
if (r) {
return v1;
} else {
trace(v1);
com.newgrounds.API.bridge.sendEvent('trace', {'data': v1});
}
};
v1.echo = function (m) {
if (com.newgrounds.API.do_echo) {
trace(m);
}
};
v1.LOGIN_URL = 'http://ng-local.newgrounds.com/apilogin/';
v1.do_echo = true;
v1.GATEWAY_URL = 'http://www.ngads.com/gateway_v2.php';
v1.NEWGROUNDS_PREVIEW = 'uploads.ungrounded.net/previews';
v1.AD_TERMS_URL = 'http://www.newgrounds.com/wiki/using-the-site/terms-of-use/flash-ads/';
v1.COMMANDS_WIKI_URL = 'http://www.newgrounds.com/wiki/developer-resources/flash-api/commands/';
v1.LOCAL_HOST = 'localhost';
v1.NEWGROUNDS_WWW = 'www.newgrounds.com';
v1.PREVIEW_HOSTS = new Array(com.newgrounds.API.LOCAL_HOST, com.newgrounds.API.NEWGROUNDS_PREVIEW);
v1.ad_url_cache = 0;
v1.ad_flood = 0;
v1.ad_warning = false;
v1.save_file = null;
v1.publisher_id = 1;
v1.fake_session = false;
v1.medals = null;
v1.userpage_format = null;
v1.scoreboards = new Array();
v1.save_groups = null;
v1.compression_radix = '/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X';
v1.errors = com.newgrounds.APIError.init_codes();
v1.sharedObjects = new Object();
v1.bridge = new com.newgrounds.Bridge(_root.NewgroundsAPI_SandboxID);
v1.preload = true;
v1.preload_items = 0;
v1.preload_items_loaded = 0;
ASSetPropFlags(com.newgrounds.API.prototype, null, 1);
}
#endinitclip
}
movieClip 118 __Packages.com.newgrounds.Bridge {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.Bridge) {
var v1 = function (id) {
this.widget_id = id;
this.receiver = new LocalConnection();
this.transmitter = new LocalConnection();
this.receiver.receiveEvent = function (event, params) {
com.newgrounds.API.callListener(event, params.success, params.data);
};
try {
this.receiver.connect('rec_' + this.widget_id);
}
catch (v0) {
if (Error(v0) != null) {
var error = Error(v0);
} else {
throw v0;
}
}
};
com.newgrounds.Bridge = v1;
var v2 = v1.prototype;
v2.sendEvent = function (event, params) {
if (this.widget_id) {
this.transmitter.send(this.widget_id, 'sendEvent', event, this.validateParams(params));
}
};
v2.sendCommand = function (command, params) {
if (this.widget_id) {
this.transmitter.send(this.widget_id, 'sendCommand', command, this.validateParams(params));
}
};
v2.validateParams = function (params) {
var v2 = {};
for (var v3 in params) {
if (typeof params[v3] == 'string' || typeof params[v3] == 'number') {
v2[v3] = params[v3];
}
}
return v2;
};
ASSetPropFlags(com.newgrounds.Bridge.prototype, null, 1);
}
#endinitclip
}
movieClip 119 __Packages.com.newgrounds.SaveFile {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.SaveFile) {
var v1 = function (_group) {
this._group = _group;
this._filename = null;
this._file_id = null;
this._contents = null;
this._thumbnail = null;
this._thumbnail_url = null;
this.raw = null;
this.img = null;
this._draft = false;
this._keys = new Array();
this._ratings = new Array();
this._file_url = null;
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.FILE_PRIVS_LOADED, this.checkPrivs, this);
};
com.newgrounds.SaveFile = v1;
var v2 = v1.prototype;
v1.setFilePath = function (path) {
com.newgrounds.SaveFile.file_path = path + '/';
};
v1.setImagePath = function (path) {
com.newgrounds.SaveFile.image_path = path + '/';
};
v2.__get__name = function () {
return this._filename;
};
v2.__set__name = function (s) {
this._filename = s;
return this.__get__name();
};
v2.__get__id = function () {
return this._file_id;
};
v2.__get__description = function () {
return this._description;
};
v2.__set__description = function (s) {
this._description = s;
return this.__get__description();
};
v2.__get__contents = function () {
return this._contents;
};
v2.__set__contents = function (o) {
this._contents = o;
return this.__get__contents();
};
v2.__get__thumbnailUrl = function () {
return com.newgrounds.SaveFile.image_path + this._thumbnail_url;
};
v2.__set__thumbnailUrl = function (s) {
this._thumbnail_url = s;
return this.__get__thumbnailUrl();
};
v2.__get__fileUrl = function () {
return com.newgrounds.SaveFile.file_path + this._file_url;
};
v2.__set__fileUrl = function (s) {
this._file_url = s;
return this.__get__fileUrl();
};
v2.__get__authorID = function () {
return this._author_id;
};
v2.__set__authorID = function (i) {
this._author_id = i;
return this.__get__authorID();
};
v2.__get__authorName = function () {
return this._author_name;
};
v2.__set__authorName = function (n) {
this._author_name = n;
return this.__get__authorName();
};
v2.__get__views = function () {
return this._views;
};
v2.__get__draft = function () {
return this._draft;
};
v2.__set__draft = function (d) {
this._draft = d;
return this.__get__draft();
};
v2.__get__group = function () {
return this._group;
};
v2.__get__groupId = function () {
return this._group.getID();
};
v2.__get__groupName = function () {
return this._group.getName();
};
v2.__get__groupType = function () {
return this._group.getType();
};
v2.__get__locked = function () {
return this._locked;
};
v2.__get__shared = function () {
return this._isShared();
};
v2.__get__isPrivate = function () {
return this._isPrivate();
};
v2.__get__isPublic = function () {
return this._isPublic();
};
v2.__get__approved = function () {
return this._isApproved();
};
v2.__get__keys = function () {
return this._keys;
};
v2.__get__ratings = function () {
return this._ratings;
};
v2.loadAuthorPage = function () {
com.newgrounds.API.loadUserPage(this._author_id, this._author_name);
};
v2.getID = function () {
return this._file_id;
};
v2.exists = function () {
return this._file_id !== null;
};
v2.getGroup = function () {
return this._group;
};
v2.getName = function () {
return this._filename;
};
v2._isPrivate = function () {
return this.status == com.newgrounds.SaveFile.STATUS.PRIVATE;
};
v2._isShared = function () {
return this.status > com.newgrounds.SaveFile.STATUS.PRIVATE;
};
v2._isApproved = function () {
return this.status > com.newgrounds.SaveFile.STATUS.UNAPPROVED;
};
v2._isPublic = function () {
if (this._isPrivate()) {
return false;
return false;
}
if (this._group.isType('SYSTEM') or this._group.isType('PRIVATE')) {
return false;
return false;
}
if (this._group.isType('PUBLIC')) {
return true;
return false;
}
if (this._isApproved()) {
return true;
}
return false;
};
v2.isLocked = function () {
return this._locked;
};
v2.getDescription = function () {
return this._description;
};
v2.getShared = function () {
return this._draft;
};
v2.getThumbnailImageScan = function () {
return this.img;
};
v2.getRawContents = function () {
return this.raw;
};
v2.getDuplicateID = function () {
return this.duplicate_id;
};
v2.getKeys = function () {
return this._keys;
};
v2.getKey = function (key) {
var v3 = (this.getGroup()).getKey(key);
var v2 = 0;
while (v2 < this._keys.length) {
if (this._keys[v2].id == v3.key_id) {
return this._keys[v2].value;
}
++v2;
}
};
v2.getRating = function (rating) {
var v2 = (this.getGroup()).getRating(rating);
if (this._ratings[v2.rating_id]) {
return this._ratings[v2.rating_id];
} else {
return null;
}
};
v2.overwriteAllowed = function () {
return this.overwrite;
};
v2.getFileURL = function () {
return com.newgrounds.SaveFile.file_path + this._file_url;
};
v2.getThumbnailURL = function () {
return com.newgrounds.SaveFile.image_path + this._thumbnail_url;
};
v2.overwriteExisting = function () {
this.overwrite = true;
};
v2.setID = function (id, add_to_group) {
this._file_id = id;
if (add_to_group) {
(this.getGroup()).addFile(this);
}
};
v2.setName = function (filename, locked) {
this._filename = filename;
this._locked = locked;
};
v2.setDescription = function (description) {
this._description = description;
};
v2.setDraft = function (draft) {
this._draft = draft;
};
v2.setContents = function (_contents) {
this._contents = _contents;
};
v2.setThumbnail = function (thumb) {
if (thumb) {
this._thumbnail = thumb;
} else {
this._thumbnail = null;
}
};
v2.setThumbnailURL = function (url) {
this._thumbnail_url = url;
};
v2.setFileURL = function (url) {
this._file_url = url;
};
v2.setPermissions = function (status, _locked) {
this._locked = _locked;
this.status = status;
};
v2.setKey = function (key, val) {
var v4 = (this.getGroup()).getKeyID(key);
var v2;
if (!v4) {
this.onError('\'' + key + '\' is not a valid key for the \'' + this._group.__get__name() + '\' save group', 'setKey', 'INVALID_VALUE', true);
return undefined;
}
if (!this._group.keyValueIsValid(key, val) && val !== null) {
this.onError('\'' + val + '\' is not a valid ' + this._group.getKeyType(key, true), 'setKey', 'INVALID_VALUE', true);
return undefined;
}
switch (this._group.getKeyType(key, true)) {
case 'string':
if (val) {
val = String(val);
} else {
val = undefined;
}
break;
default:
val = Number(val);
}
var v5 = {'id': v4, 'value': val};
for (var v6 in this._keys) {
v2 = this._keys[v6];
if (v2.id == v4) {
this._keys[v6] = v5;
return undefined;
}
}
this._keys.push(v5);
};
v2.setRating = function (rating, votes, score) {
var v2 = (this.getGroup()).getRating(rating);
if (!votes) {
votes = 0;
}
if (!score) {
score = 0;
}
if (!v2.is_float) {
score = Math.round(Number(score));
}
this._ratings[v2.rating_id] = {'id': Number(v2.rating_id), 'name': v2.rating_name, 'votes': Number(votes), 'score': Number(score)};
return this._ratings[v2.rating_id];
};
v2.clearBuffer = function () {
this._contents = null;
this.raw = null;
this.img = null;
this.scanner = null;
this.overwrite = false;
this.duplicate_id = null;
};
v2.onError = function (msg, funct, code) {
com.newgrounds.SaveFile.busy = false;
if (!code) {
code = 'SAVE_FILE_ERROR';
}
if (!funct) {
funct = 'unknown_function';
}
var v3 = 'getSaveGroup(\'' + this._group.getName() + '\')';
if (this.exists()) {
funct = v3 + '.getFile(\'' + this.getName() + '\').' + funct;
} else {
funct = v3 + '.getNewFile().' + funct;
}
var v5 = new com.newgrounds.APIError(code, msg);
com.newgrounds.API.sendError({'command_id': funct}, v5);
};
v2.onSaved = function (p) {
com.newgrounds.SaveFile.busy = false;
if (!this.exists()) {
this.setID(p.save_id, true);
}
this.setName(p.filename);
this.setFileURL(p.file_url);
if (p.thumbnail) {
this._thumbnail_url = p.thumbnail;
}
};
v2.onVoted = function (p) {
trace('ONVOTED WAS CALLED');
return this.setRating(p.rating_id, p.votes, p.score);
};
v2.sendRating = function (rating, vote) {
var v6 = null;
if (!com.newgrounds.API.hasUserSession()) {
v6 = new com.newgrounds.APIError('PERMISSION_DENIED', 'You must be logged in to vote on save files');
}
var v2 = this._group.getRating(rating);
if (!v2) {
v6 = new com.newgrounds.APIError('PERMISSION_DENIED', '\'' + rating + '\' is not a valid rating for the \'' + this._group.getName() + '\' save group');
}
if (this.voted === true) {
v6 = new com.newgrounds.APIError('PERMISSION_DENIED', 'You have already voted on this item today');
}
if (vote < v2.min_value or vote > v2.max_value) {
v6 = new com.newgrounds.APIError('PERMISSION_DENIED', '\'' + rating + '\' votes must be between ' + v2.min_value + ' and ' + v2.max_value);
}
if (v6) {
com.newgrounds.API.callListener(com.newgrounds.APIEvent.VOTE_COMPLETE, false, {'error': v6, 'file': this});
return undefined;
}
this.voted = true;
com.newgrounds.API.rateSaveFile(this, v2, vote);
};
v2.replace = function () {
if (com.newgrounds.SaveFile.busy) {
this.onError('Another file is currently being saved, please try again later', 'replace');
return undefined;
}
this.overwriteExisting();
this.save();
};
v2.save = function () {
if (com.newgrounds.API.hasUserSession() && !this._author_id && !this._author_name) {
this._author_id = com.newgrounds.API.getUserID();
this._author_name = com.newgrounds.API.getUserName();
}
if (com.newgrounds.SaveFile.busy) {
this.onError('Another file is currently being saved, please try again later', 'save', 'UPLOAD_IN_PROGRESS');
return undefined;
}
com.newgrounds.SaveFile.busy = true;
if (this.isLocked()) {
this.onError('This file is _locked and cannot be overwritten.', 'save', 'PERMISSION_DENIED');
return undefined;
}
if (!this._filename) {
this.onError('Please provide a name for your file.', 'save', 'MISSING_PARAM');
return undefined;
} else {
if (!this._contents) {
this.onError('The file is empty.', 'save', 'MISSING_PARAM');
return undefined;
}
}
this.img = null;
com.newgrounds.API.checkFilePrivs(this);
};
v2.checkPrivs = function (e) {
if (e.data.file.id != this.__get__id()) {
return undefined;
}
if (e.success) {
if (e.data.can_write) {
this.can_write = e.data.can_write;
if (e.data.duplicate_id) {
this.duplicate_id = e.data.duplicate_id;
}
if (e.data.exists && !this.overwriteAllowed()) {
this.onError('You already have a file named \'' + this.getName() + '\'', 'save', 'CONFIRM_REQUEST');
} else {
this.startFile();
}
} else {
this.onError('This file is _locked and cannot be overwritten', 'save', 'PERMISSION_DENIED');
}
} else {
this.onError('There was a problem looking up your file\'s details. The server may be down.', 'save', 'UNKNOWN_ERROR');
}
};
v2.startFile = function () {
if (this.can_write) {
if (this._thumbnail) {
this.scanner = new com.newgrounds.encoders.ImageScanner(this._thumbnail);
this.scanner.setCallback(this, 'encodeFile');
this.scanner.startScan(100, 100, true);
} else {
this.encodeFile();
}
} else {
this.onError('You do not have permission to save this file.', 'save', 'PERMISSION_DENIED');
}
};
v2.encodeFile = function (img) {
this.img = img;
this.raw = (com.newgrounds.encoders.SerialXML.encode(this._contents)).toString();
this.compressFile();
};
v2.compressFile = function () {
com.newgrounds.encoders.LZW2.compress(this.raw, function (s, p) {
p.file.onCompressed(s);
}, {'file': this});
};
v2.onCompressed = function (compressed) {
this.raw = escape(compressed);
this.writeFile();
};
v2.getProgress = function () {};
v2.writeFile = function () {
((this.getGroup()).getQuery()).clearCache();
com.newgrounds.API.saveFile(this);
this.clearBuffer();
};
v2.loadContents = function () {
if (this._contents) {
com.newgrounds.API.setCurrentSaveFile(this);
com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_LOADED, true, {'file': this});
return undefined;
}
if (!this.getFileURL()) {
var v4 = new com.newgrounds.APIError('FILE_NOT_FOUND', 'Attempted to load contents of an unsaved file.');
com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_LOADED, false, {'file': this, 'error': v4});
return undefined;
}
var v2 = new LoadVars();
v2.target = this;
var target = this;
v2.onData = function (encoded) {
target.onLoaded(encoded);
};
v2.load(this.getFileURL());
};
v2.onLoaded = function (encoded) {
if (encoded == undefined) {
var v3 = new com.newgrounds.APIError('FILE_NOT_FOUND', 'We could not find the contents for this file. It may have been deleted.');
com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_LOADED, false, {'file': this, 'error': v3});
return undefined;
}
com.newgrounds.encoders.LZW.setXMLSafe(true);
this._contents = com.newgrounds.encoders.SerialXML.decode(com.newgrounds.encoders.LZW.decompress(encoded));
com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_LOADED, true, {'file': this});
};
v2.setViews = function (n) {
this._views = n;
};
v1.busy = false;
v2.can_write = false;
v2._draft = false;
v2.status = 0;
v2.voted = false;
v2._views = 0;
v2._locked = false;
v2.overwrite = false;
v2.duplicate_id = null;
v2._keys = null;
v2._ratings = null;
v2._author_id = null;
v2._author_name = null;
v1.STATUS = {'PRIVATE': 1, 'PUBLIC': 2, 'UNAPPROVED': 3, 'APPROVED': 4};
v2.addProperty('approved', v2.__get__approved, function () {});
v2.addProperty('authorID', v2.__get__authorID, v2.__set__authorID);
v2.addProperty('authorName', v2.__get__authorName, v2.__set__authorName);
v2.addProperty('contents', v2.__get__contents, v2.__set__contents);
v2.addProperty('description', v2.__get__description, v2.__set__description);
v2.addProperty('draft', v2.__get__draft, v2.__set__draft);
v2.addProperty('fileUrl', v2.__get__fileUrl, v2.__set__fileUrl);
v2.addProperty('group', v2.__get__group, function () {});
v2.addProperty('groupId', v2.__get__groupId, function () {});
v2.addProperty('groupName', v2.__get__groupName, function () {});
v2.addProperty('groupType', v2.__get__groupType, function () {});
v2.addProperty('id', v2.__get__id, function () {});
v2.addProperty('isPrivate', v2.__get__isPrivate, function () {});
v2.addProperty('isPublic', v2.__get__isPublic, function () {});
v2.addProperty('keys', v2.__get__keys, function () {});
v2.addProperty('locked', v2.__get__locked, function () {});
v2.addProperty('name', v2.__get__name, v2.__set__name);
v2.addProperty('ratings', v2.__get__ratings, function () {});
v2.addProperty('shared', v2.__get__shared, function () {});
v2.addProperty('thumbnailUrl', v2.__get__thumbnailUrl, v2.__set__thumbnailUrl);
v2.addProperty('views', v2.__get__views, function () {});
ASSetPropFlags(com.newgrounds.SaveFile.prototype, null, 1);
}
#endinitclip
}
movieClip 120 __Packages.com.newgrounds.SaveGroup {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.SaveGroup) {
var v1 = function (group_id, group_name, group_type) {
this.group_name = group_name;
this.group_id = group_id;
this.group_type = group_type;
this.query = new com.newgrounds.SaveGroupQuery(this);
this.ratings = new Array();
this.keys = new Array();
this.files = new Array();
};
com.newgrounds.SaveGroup = v1;
var v2 = v1.prototype;
v2.__get__id = function () {
return this.group_id;
};
v2.__get__name = function () {
return this.group_name;
};
v2.__get__type = function () {
return this.group_type;
};
v2.addFile = function (file) {
var v2 = 0;
while (v2 < this.files.length) {
if (this.files[v2].getID() == file.getID()) {
this.files[v2] = file;
return undefined;
}
++v2;
}
this.files.push(file);
};
v2.getFile = function (file_id) {
trace('getting the file ' + file_id);
var v2 = 0;
while (v2 < this.files.length) {
trace('Looking up ' + file_id + ' :: ' + this.files[v2].getID() + ' || ' + this.files[v2].getName());
if (com.newgrounds.SaveGroup.isNumeric(file_id) and this.files[v2].getID() == Number(file_id)) {
return this.files[v2];
} else {
if (this.files[v2].getName() == file_id) {
return this.files[v2];
}
}
++v2;
}
return null;
};
v2.addRating = function (rating_id, rating_name, min_value, max_value, is_float) {
var v3 = {'rating_id': rating_id, 'rating_name': rating_name, 'min_value': min_value, 'max_value': max_value, 'is_float': is_float};
if (!this.getRatingID(rating_name)) {
this.ratings.push(v3);
}
};
v2.getRating = function (rating_id) {
var v2 = 0;
while (v2 < this.ratings.length) {
if (com.newgrounds.SaveGroup.isNumeric(rating_id) and this.ratings[v2].rating_id == rating_id) {
return this.ratings[v2];
} else {
if (this.ratings[v2].rating_name == rating_id) {
return this.ratings[v2];
}
}
++v2;
}
return null;
};
v2.getRatingID = function (rating_id) {
var v2 = this.getRating(rating_id);
if (v2) {
return v2.rating_id;
}
return null;
};
v2.getRatingName = function (rating_id) {
var v2 = this.getRating(rating_id);
if (v2) {
return v2.rating_name;
}
return null;
};
v2.addKey = function (key_id, key_name, key_type) {
trace('>>>>>>>>>>> ADDING KEY ' + key_id + ' ' + key_name + ' ' + key_type);
var v2 = {'key_id': key_id, 'key_name': key_name, 'key_type': key_type};
if (!this.getKey(key_name)) {
this.keys.push(v2);
}
};
v2.getKey = function (key_id) {
var v2 = 0;
while (v2 < this.keys.length) {
if (com.newgrounds.SaveGroup.isNumeric(key_id) and this.keys[v2].key_id == key_id) {
return this.keys[v2];
} else {
if (this.keys[v2].key_name == key_id) {
return this.keys[v2];
}
}
++v2;
}
return null;
};
v2.getKeyType = function (key_name, as_string) {
var v2 = this.getKey(key_name);
if (v2) {
return as_string ? com.newgrounds.SaveGroup.KEY_TYPES[v2.key_type] : v2.key_type;
}
return null;
};
v2.getKeyID = function (key_id) {
var v2 = this.getKey(key_id);
if (v2) {
return v2.key_id;
}
return null;
};
v2.getKeyName = function (key_id) {
var v2 = this.getKey(key_id);
if (v2) {
return v2.key_name;
}
return null;
};
v2.keyValueIsValid = function (key, value) {
var v4;
var v7;
if (typeof value == 'number' or (Number(value)).toString() == String(value)) {
value = Number(value);
v4 = (Math.round(value) === value) ? 'integer' : 'float';
} else {
v4 = typeof value;
if (v4 == 'string') {
var v6 = '01234567890.-';
var v5 = true;
var v2 = 0;
while (v2 < value.length) {
if (v6.indexOf(value.charAt(v2)) < 0) {
v5 = false;
break;
}
++v2;
}
if (v5) {
value = Number(value);
v4 = 'float';
}
}
}
switch (this.getKeyType(key, true)) {
case 'integer':
v7 = v4 == 'integer' or v4 == 'boolean';
return v7;
case 'float':
v7 = v4 == 'float' or v4 == 'integer' or v4 == 'boolean';
return v7;
case 'string':
v7 = v4 == 'string' or v4 == 'float' or v4 == 'integer' or v4 == 'boolean';
return v7;
case 'boolean':
v7 = v4 == 'boolean' or value == 1 or value == 0 or value == '';
return v7;
}
v7 = false;
return v7;
};
v2.isType = function (type) {
return this.group_type == com.newgrounds.SaveGroup.TYPES[type.toUpperCase()];
};
v2.getID = function () {
return this.group_id;
};
v2.getName = function () {
return this.group_name;
};
v2.getType = function () {
return this.group_type;
};
v2.isSystem = function () {
return undefined;
};
v2.getQuery = function (as_object) {
if (as_object) {
return this.query.toObject();
}
return this.query;
};
v2.newQuery = function () {
this.query.reset();
return this.query;
};
v2.clearQuery = function () {
this.query.reset();
};
v2.newFile = function () {
var v2 = new com.newgrounds.SaveFile(this);
return v2;
};
v1.isNumeric = function (value) {
return typeof value == 'number' or (Number(value)).toString() == String(value);
};
v1.KEY_TYPES = [null, 'float', 'integer', 'string', 'boolean'];
v1.TYPES = {'SYSTEM': 0, 'PRIVATE': 1, 'PUBLIC': 2, 'MODERATED': 3};
v2.addProperty('id', v2.__get__id, function () {});
v2.addProperty('name', v2.__get__name, function () {});
v2.addProperty('type', v2.__get__type, function () {});
ASSetPropFlags(com.newgrounds.SaveGroup.prototype, null, 1);
}
#endinitclip
}
movieClip 121 __Packages.com.newgrounds.ValidationTools {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.ValidationTools) {
var v1 = function () {};
com.newgrounds.ValidationTools = v1;
var v2 = v1.prototype;
v1.isNumber = function (v) {
if (typeof v == 'number') {
return true;
return false;
}
if (typeof v == 'string' and (Number(v)).toString() == v) {
return true;
}
return false;
};
v1.isInteger = function (v) {
if (com.newgrounds.ValidationTools.isNumber(v)) {
v = Number(v);
return Math.floor(v) == v;
}
return false;
};
v1.isFloat = function (v) {
return com.newgrounds.ValidationTools.isNumber(v);
};
v1.isString = function (v) {
if (typeof v == 'string' or typeof v == 'number') {
return true;
}
return false;
};
v1.isEmpty = function (o) {
for (var v2 in o) {
return false;
}
return true;
};
ASSetPropFlags(com.newgrounds.ValidationTools.prototype, null, 1);
}
#endinitclip
}
movieClip 122 __Packages.com.newgrounds.APIEvent {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.APIEvent) {
var v1 = function (type, success, data) {
this._type = type;
this._success = success;
if (data.isError()) {
this._error = data;
this.data = null;
} else {
if (data.error && data.error.isError()) {
this._error = data.error;
this.data = data;
} else {
this.data = data;
this._error = null;
}
}
};
com.newgrounds.APIEvent = v1;
var v2 = v1.prototype;
v2.__get__error = function () {
return this._error;
};
v2.__get__type = function () {
return this._type;
};
v2.__get__success = function () {
return this._success;
};
v1.API_CONNECTED = 'apiConnected';
v1.ADS_APPROVED = 'adsApproved';
v1.AD_ATTACHED = 'adAttached';
v1.HOST_BLOCKED = 'hostBlocked';
v1.NEW_VERSION_AVAILABLE = 'newVersionAvailable';
v1.EVENT_LOGGED = 'eventLogged';
v1.SCORE_POSTED = 'scorePosted';
v1.SCORES_LOADED = 'scoresLoaded';
v1.UNLOCK_MEDAL = 'unlockMedal';
v1.MEDAL_UNLOCKED = 'medalUnlocked';
v1.MEDALS_LOADED = 'medalsLoaded';
v1.METADATA_LOADED = 'metadataLoaded';
v1.FILE_PRIVS_LOADED = 'filePrivsLoaded';
v1.FILE_SAVED = 'fileSaved';
v1.FILE_LOADED = 'fileLoaded';
v1.FILE_INITIALIZED = 'fileInitialized';
v1.FILE_REQUESTED = 'fileRequested';
v1.QUERY_COMPLETE = 'queryComplete';
v1.VOTE_COMPLETE = 'voteComplete';
v1.API_ERROR = 'apiError';
v1.UNCAUGHT_EVENT = 'uncaughtEvent';
v2.addProperty('error', v2.__get__error, function () {});
v2.addProperty('success', v2.__get__success, function () {});
v2.addProperty('type', v2.__get__type, function () {});
ASSetPropFlags(com.newgrounds.APIEvent.prototype, null, 1);
}
#endinitclip
}
movieClip 123 __Packages.com.newgrounds.SaveGroupQuery {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.SaveGroupQuery) {
var v1 = function (_group) {
this._group = _group;
this.reset();
};
com.newgrounds.SaveGroupQuery = v1;
var v2 = v1.prototype;
v2.__get__group = function () {
return this._group;
};
v2.__get__groupId = function () {
return this._group.getID();
};
v2.__get__resultsPerPage = function () {
return this._num_results;
};
v2.__set__resultsPerPage = function (n) {
this._num_results = n;
return this.__get__resultsPerPage();
};
v2.__get__pages = function () {
return this._pages;
};
v2.__get__page = function () {
return this._page;
};
v2.__set__page = function (n) {
this._page = n;
return this.__get__page();
};
v2.__get__randomize = function () {
return this._randomize_results;
};
v2.__set__randomize = function (b) {
this._randomize_results = b;
return this.__get__randomize();
};
v2.__get__results = function () {
return this._results;
};
v2.clearCache = function () {
this._results = [];
};
v2.reset = function () {
this.file_conditions = new Array();
this.key_conditions = new Array();
this.rating_conditions = new Array();
this.sort_conditions = new Array();
this.lookup_keys = new Object();
this.lookup_ratings = new Object();
this._num_results = 20;
this._page = 1;
this._randomize_results = false;
this._group_by = new Array();
this.clearCache();
};
v2.getGroup = function () {
return this._group;
};
v2.getGroupID = function () {
return this._group.getID();
};
v2.isRandomized = function () {
return this._randomize_results;
};
v2.toObject = function () {
var v2;
var v11 = {'page': this._page, 'num_results': this._num_results};
if (this._randomize_results) {
v11.randomize = 1;
}
if (!com.newgrounds.ValidationTools.isEmpty(this.file_conditions)) {
var v12 = [];
v2 = 0;
while (v2 < this.file_conditions.length) {
var v6 = this.file_conditions[v2];
v12.push({'field': com.newgrounds.SaveGroupQuery.file_fields[v6.field.toUpperCase()].id, 'operator': v6.operator, 'value': v6.value});
++v2;
}
v11.file_conditions = v12;
}
if (!com.newgrounds.ValidationTools.isEmpty(this.key_conditions)) {
v11.key_conditions = this.key_conditions;
}
if (!com.newgrounds.ValidationTools.isEmpty(this.rating_conditions)) {
v11.rating_conditions = this.rating_conditions;
}
if (!com.newgrounds.ValidationTools.isEmpty(this.sort_conditions)) {
var v14 = [];
v2 = 0;
while (v2 < this.sort_conditions.length) {
var v3 = this.sort_conditions[v2];
if (v3.table == com.newgrounds.SaveGroupQuery.TABLE_FILES) {
var v8 = com.newgrounds.SaveGroupQuery.file_fields[v3.field.toUpperCase()].id;
} else {
var v8 = v3.field;
}
var v5 = {'field': v8, 'table': v3.table};
if (v3.desc) {
v5.desc = 1;
}
if (v3.extra) {
v5.extra = v3.extra;
}
v14.push(v5);
++v2;
}
v11.sort_conditions = v14;
}
if (!com.newgrounds.ValidationTools.isEmpty(this.lookup_keys)) {
var v15 = [];
for (v2 in this.lookup_keys) {
v15.push(v2);
}
v11.lookup_keys = v15;
}
if (!com.newgrounds.ValidationTools.isEmpty(this.lookup_ratings)) {
var v13 = [];
for (v2 in this.lookup_ratings) {
v13.push(v2);
}
v11.lookup_ratings = v13;
}
if (!com.newgrounds.ValidationTools.isEmpty(this._group_by)) {
var v16 = [];
v2 = 0;
while (v2 < this._group_by.length) {
var v4 = this._group_by[v2];
if (v4.table == com.newgrounds.SaveGroupQuery.TABLE_FILES) {
v8 = com.newgrounds.SaveGroupQuery.file_fields[v4.field.toUpperCase()].id;
} else {
v8 = v4.field;
}
v16.push({'field': v8, 'table': v4.table});
++v2;
}
v11.group_by = v16;
}
return v11;
};
v2.toString = function () {
var v9;
var v2;
var v11 = [];
v9 = 'Lookup:\r';
var v14 = [];
for (var v6 in com.newgrounds.SaveGroupQuery.file_fields) {
v14.push(' ' + v6);
v2 = true;
}
v9 += v14.join('\n');
v11.push(v9);
v9 = '';
v2 = false;
var v16 = [];
for (v6 in this.lookup_keys) {
v16.push(' KEY \'' + this._group.getKeyName(v6) + '\'');
v2 = true;
}
if (v2) {
v9 += v16.join('\n');
v11.push(v9);
}
v9 = '';
v2 = false;
var v15 = [];
for (v6 in this.lookup_ratings) {
v15.push(' RATING \'' + this._group.getRatingName(v6) + '\'');
v2 = true;
}
if (v2) {
v9 += v15.join('\n');
v11.push(v9);
}
v9 = 'Where:\r';
v2 = false;
var v8 = [];
v6 = 0;
while (v6 < this.file_conditions.length) {
var v7 = this.file_conditions[v6];
var v10 = ' ' + v7.field + ' ' + v7.operator + ' ' + v7.value;
v8.push(v10);
v2 = true;
++v6;
}
v6 = 0;
while (v6 < this.key_conditions.length) {
v7 = this.key_conditions[v6];
v10 = ' KEY \'' + this._group.getKeyName(v7.key_id) + '\' ' + v7.operator + ' ' + v7.value;
v8.push(v10);
v2 = true;
++v6;
}
v6 = 0;
while (v6 < this.rating_conditions.length) {
v7 = this.rating_conditions[v6];
v10 = ' RATING \'' + this._group.getRatingName(v7.rating_id) + '\' ' + v7.operator + ' ' + v7.value;
v8.push(v10);
v2 = true;
++v6;
}
if (v2) {
v9 += v8.join('\n');
v11.push(v9);
}
v9 = 'Group By:\r';
v2 = false;
var v13 = [];
v6 = 0;
while (v6 < this._group_by.length) {
var v4 = this._group_by[v6];
var v5;
if (v4.table == com.newgrounds.SaveGroupQuery.TABLE_KEYS) {
v5 = ' KEY \'' + this._group.getKeyName(v4.field) + '\'';
} else {
if (v4.table == com.newgrounds.SaveGroupQuery.TABLE_RATINGS) {
v5 = ' RATING \'' + this._group.getRatingName(v4.field) + '\'';
} else {
v5 = ' ' + v4.field;
}
}
v13.push(v5);
v2 = true;
++v6;
}
if (v2) {
v9 += v13.join('\n');
v11.push(v9);
}
v9 = 'Order By:\r';
v2 = false;
var v12 = [];
if (this.isRandomized()) {
v12.push(' RANDOM');
v2 = true;
}
v6 = 0;
while (v6 < this.sort_conditions.length) {
var v3 = this.sort_conditions[v6];
if (v3.table == com.newgrounds.SaveGroupQuery.TABLE_KEYS) {
v5 = ' KEY \'' + this._group.getKeyName(v3.field) + '\'';
} else {
if (v3.table == com.newgrounds.SaveGroupQuery.TABLE_RATINGS) {
v5 = ' RATING \'' + this._group.getRatingName(v3.field) + '\' ' + ((v3.extra == 'votes') ? 'VOTES' : 'SCORE');
} else {
v5 = ' ' + v3.field;
}
}
v5 += v3.desc ? ' (DESCENDING)' : '';
v12.push(v5);
v2 = true;
++v6;
}
if (v2) {
v9 += v12.join('\n');
v11.push(v9);
}
v11.push('Page:\r ' + this._page);
v11.push('Results Per Page:\r ' + this._num_results);
return v11.join('\n');
};
v2.setResultsPerPage = function (r) {
this._num_results = r;
this.clearCache();
};
v2.setPage = function (p) {
this._page = p;
this.clearCache();
};
v2.setRandomize = function (bool) {
this._randomize_results = (bool === false) ? false : true;
};
v2.includeKey = function (key) {
if (!this._group.getKeyID(key)) {
trace('[SaveGroupQuery Error] :: \'' + key + '\' is not a valid key for the \'' + this._group.__get__name() + '\' group.');
return undefined;
}
this.lookup_keys[this._group.getKeyID(key)] = 1;
this.clearCache();
};
v2.includeRating = function (rating) {
if (!this._group.getRatingID(rating)) {
trace('[SaveGroupQuery Error] :: \'' + rating + '\' is not a valid rating for the \'' + this._group.__get__name() + '\' group.');
return undefined;
}
this.lookup_ratings[this._group.getRatingID(rating)] = 1;
this.clearCache();
};
v2.groupBy = function (field) {
this.addGroupItem(com.newgrounds.SaveGroupQuery.TABLE_FILES, field);
};
v2.groupByKey = function (key) {
if (!this._group.getKeyID(key)) {
this.error('\'' + key + '\' is not a valid key for the \'' + this._group.getName() + '\' _group');
return undefined;
}
this.addGroupItem(com.newgrounds.SaveGroupQuery.TABLE_KEYS, this._group.getKeyID(key));
};
v2.groupByRating = function (rating) {
if (!this._group.getRatingID(rating)) {
this.error('\'' + rating + '\' is not a valid rating for the \'' + this._group.getName() + '\' _group');
return undefined;
}
this.addGroupItem(com.newgrounds.SaveGroupQuery.TABLE_RATINGS, this._group.getRatingID(rating));
};
v2.addGroupItem = function (table, field) {
this._group_by.push({'table': table, 'field': field});
this.clearCache();
};
v2.excludeKey = function (key) {
delete this.lookup_keys[this._group.getKeyID(key)];
this.clearCache();
};
v2.excludeRating = function (rating) {
delete this.lookup_ratings[this._group.getRatingID(rating)];
this.clearCache();
};
v2.addCondition = function (field, operator, value) {
if (field == 'FILE_STATUS' && typeof value == 'string' && com.newgrounds.SaveFile.STATUS[value.toUpperCase()] !== undefined) {
value = com.newgrounds.SaveFile.STATUS[value.toUpperCase()];
}
if (operator == '==') {
operator = '=';
}
if (!this.validateOperator(operator) or !this.validateValue(field, value)) {
return undefined;
}
this.file_conditions.push({'field': field, 'operator': operator, 'value': value});
this.clearCache();
};
v2.addKeyCondition = function (key, operator, value) {
if (!this._group.getKeyID(key)) {
this.error('\'' + key + '\' is not a valid key for the \'' + this._group.getName() + '\' save _group');
} else {
if (!this.validateOperator(operator) or !this.validateKeyValue(key, value)) {
return undefined;
}
}
this.key_conditions.push({'key_id': this._group.getKeyID(key), 'operator': operator, 'value': value});
this.clearCache();
};
v2.addRatingCondition = function (rating, operator, value, column) {
if (!column) {
column = 'SCORE';
}
if (!this._group.getRatingID(rating)) {
this.error('\'' + rating + '\' is not a valid rating for the \'' + this._group.getName() + '\' save _group');
} else {
if (!this.validateOperator(operator)) {
return undefined;
} else {
if (!com.newgrounds.ValidationTools.isNumber(value)) {
this.error('Expected numeric value for rating \'' + rating + '\'');
return undefined;
}
}
}
if (!com.newgrounds.SaveGroupQuery.rating_columns[column]) {
var v2 = [];
for (var v3 in com.newgrounds.SaveGroupQuery.rating_columns) {
v2.push(v3);
}
this.error('Invalid rating column \'' + column + '\'. Valid columns are ' + v2.join(', '));
return undefined;
}
this.rating_conditions.push({'rating_id': this._group.getRatingID(rating), 'operator': operator, 'value': value, 'column': com.newgrounds.SaveGroupQuery.rating_columns[column]});
this.clearCache();
};
v2.sortOn = function (field, order) {
if (!com.newgrounds.SaveGroupQuery.file_fields[field]) {
var v2 = [];
for (var v3 in com.newgrounds.SaveGroupQuery.file_fields) {
v2.push(v3);
}
this.error('\'' + field + '\' is not a valid sort field. Valid fields are: ' + v2.join(', '));
return undefined;
}
this.addSortCondition(com.newgrounds.SaveGroupQuery.TABLE_FILES, field, order);
};
v2.sortOnKey = function (key, order) {
if (!this._group.getKeyID(key)) {
this.error('\'' + key + '\' is not a valid key for the \'' + this._group.getName() + '\' _group');
return undefined;
}
this.addSortCondition(com.newgrounds.SaveGroupQuery.TABLE_KEYS, this._group.getKeyID(key), order);
};
v2.sortOnRating = function (rating, order, column) {
if (!this._group.getRatingID(rating)) {
this.error('\'' + rating + '\' is not a valid rating for the \'' + this._group.getName() + '\' _group');
return undefined;
}
if (!column) {
column = 'score';
}
this.addSortCondition(com.newgrounds.SaveGroupQuery.TABLE_RATINGS, this._group.getRatingID(rating), order, column);
};
v2.sortOnRatingScore = function (rating, order) {
this.sortOnRating(rating, order, 'score');
};
v2.sortOnRatingVotes = function (rating, order) {
this.sortOnRating(rating, order, 'votes');
};
v2.addSortCondition = function (table, field, order, extra) {
var v7;
if (!order or order == '' or order.toUpperCase() == 'ASC') {
v7 = false;
} else {
if (order.toUpperCase() == 'DESC') {
v7 = true;
} else {
this.error('\'' + order + '\' is not a valid sort order!');
return undefined;
}
}
var v3 = {'table': table, 'field': field, 'desc': v7};
if (extra) {
v3.extra = extra;
}
this.sort_conditions.push(v3);
this.clearCache();
};
v2.onExecuted = function (results) {
this._results = [];
var v6 = 0;
while (v6 < results.length) {
var v2 = results[v6];
var v3 = new com.newgrounds.SaveFile(this._group);
v3.setName(v2.filename);
v3.setID(v2.save_id);
v3.setDescription(v2.description);
v3.setThumbnailURL(v2.thumb);
v3.setFileURL(v2.file);
if (v2.views) {
v3.setViews(v2.views);
}
v3.setPermissions(v2.status, v2.locked);
v3.authorName = v2.user_name;
v3.authorID = v2.user_id;
var v5 = 0;
while (v5 < v2.keys.length) {
v3.setKey(v2.keys[v5].id, v2.keys[v5].value);
++v5;
}
var v4 = 0;
while (v4 < v2.ratings.length) {
v3.setRating(v2.ratings[v4].id, v2.ratings[v4].votes, v2.ratings[v4].score);
++v4;
}
(this.getGroup()).addFile(v3);
this._results.push(v3);
++v6;
}
this.callEventDispatcher();
};
v2.hasResults = function () {
return this._results && this._results.length > 0;
};
v2.callEventDispatcher = function () {
com.newgrounds.API.callListener(com.newgrounds.APIEvent.QUERY_COMPLETE, true, {'query': this});
};
v2.execute = function () {
if (this.hasResults() && !this.isRandomized()) {
this.callEventDispatcher();
return undefined;
}
this._group.query = this;
com.newgrounds.API.lookupSaveFiles(this._group);
};
v2.processResults = function (files) {
return null;
};
v2.validateKeyValue = function (key, value) {
var v3 = this._group.getKeyType(key);
if (v3) {
var v2 = com.newgrounds.SaveGroup.KEY_TYPES[v3];
if (v2 == 'float' and com.newgrounds.ValidationTools.isFloat(value)) {
return true;
} else {
if (v2 == 'integer' and com.newgrounds.ValidationTools.isInteger(value)) {
return true;
} else {
if (v2 == 'string' and com.newgrounds.ValidationTools.isString(value)) {
return true;
}
}
}
this.error('Expected type ' + v2 + ' for key \'' + key + '\'');
}
return false;
};
v2.validateValue = function (field, value) {
if (com.newgrounds.SaveGroupQuery.file_fields[field]) {
if (com.newgrounds.SaveGroupQuery.file_fields[field].type == 'integer' and com.newgrounds.ValidationTools.isInteger(value)) {
return true;
} else {
if (com.newgrounds.SaveGroupQuery.file_fields[field].type == 'float' and com.newgrounds.ValidationTools.isFloat(value)) {
return true;
} else {
if (com.newgrounds.SaveGroupQuery.file_fields[field].type == 'string' and com.newgrounds.ValidationTools.isString(value)) {
return true;
} else {
this.error('Expecting ' + com.newgrounds.SaveGroupQuery.file_fields[field].type + ' value on \'' + field + '\' condition');
}
}
}
return false;
}
var v2 = [];
for (var v4 in com.newgrounds.SaveGroupQuery.file_fields) {
v2.push(v4);
}
this.error('\'' + field + '\' is not a searchable field. Valid fields are: ' + v2.join(', '));
return false;
};
v2.validateOperator = function (operator) {
var v2 = 0;
while (v2 < com.newgrounds.SaveGroupQuery.valid_operators.length) {
if (operator == com.newgrounds.SaveGroupQuery.valid_operators[v2]) {
return true;
}
++v2;
}
this.error('\'' + operator + '\' is not a valid lookup operation. Valid operations are: ' + com.newgrounds.SaveGroupQuery.valid_operators.join(', '));
return false;
};
v2.error = function (msg) {
trace('[QUERY ERROR] :: ' + msg);
};
v1.TABLE_FILES = 1;
v1.TABLE_KEYS = 2;
v1.TABLE_RATINGS = 3;
v2._results = [];
v1.file_fields = {'FILE_ID': {'id': 0, 'field': 'file_id', 'type': 'integer'}, 'AUTHOR_ID': {'id': 1, 'field': 'user_id', 'type': 'integer'}, 'AUTHOR_NAME': {'id': 2, 'field': 'user_name', 'type': 'string'}, 'FILE_NAME': {'id': 3, 'field': 'file_name', 'type': 'string'}, 'CREATED_ON': {'id': 4, 'field': 'created', 'type': 'string'}, 'UPDATED_ON': {'id': 5, 'field': 'last_update', 'type': 'string'}, 'TOTAL_VIEWS': {'id': 6, 'field': 'views', 'type': 'integer'}, 'FILE_STATUS': {'id': 7, 'field': 'status', 'type': 'integer'}};
v1.rating_columns = {'TOTAL_VOTES': 'votes', 'SCORE': 'score'};
v1.valid_operators = ['=', '<', '>', '!=', '<>', '<=', '>=', '*', '!*', '!*=', '!=*', '*=', '=*'];
v2.addProperty('group', v2.__get__group, function () {});
v2.addProperty('groupId', v2.__get__groupId, function () {});
v2.addProperty('page', v2.__get__page, v2.__set__page);
v2.addProperty('pages', v2.__get__pages, function () {});
v2.addProperty('randomize', v2.__get__randomize, v2.__set__randomize);
v2.addProperty('results', v2.__get__results, function () {});
v2.addProperty('resultsPerPage', v2.__get__resultsPerPage, v2.__set__resultsPerPage);
ASSetPropFlags(com.newgrounds.SaveGroupQuery.prototype, null, 1);
}
#endinitclip
}
movieClip 124 __Packages.com.newgrounds.encoders.BaseN {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.encoders) {
_global.com.newgrounds.encoders = new Object();
}
if (!_global.com.newgrounds.encoders.BaseN) {
var v1 = function (hash) {
this.ceiling = 100000000000000.0;
if (hash) {
this.hashIndex = hash;
} else {
this.hashIndex = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~@#$%^&*()+|;/';
}
this.bitSize = this.hashIndex.length;
this.hashVal = new Object();
this.i = 0;
while (this.i < this.bitSize) {
this.hashVal[this.hashIndex.charAt(this.i)] = this.i;
++this.i;
}
};
com.newgrounds.encoders.BaseN = v1;
var v2 = v1.prototype;
v2.verify = function (s) {
if (this.hashVal[s] != undefined) {
return true;
} else {
return false;
}
};
v2.encode = function (n, minchars) {
this.debug.lastencode = '';
if (typeof this.i != 'string') {
n = n.toString();
}
if (n.charAt(0) == '-') {
var v3 = '-';
n = n.substring(1);
} else {
var v3 = '';
}
if ((String(n)).indexOf('.') > -1) {
var v4 = (String(n)).split('.', 2);
return v3 + this.baseNEncoder(v4[0], minchars) + '.' + this.baseNEncoder(v4[1]);
} else {
this.debug.lastencode += '\tNo decimal\r';
return v3 + this.baseNEncoder(n, minchars);
}
};
v2.decode = function (s) {
var v4 = 1;
if (s.charAt(0) == '-') {
v4 = -1;
s = s.substring(1, s.length);
}
var v3 = s.indexOf('.');
if (v3 > -1) {
var v5 = Math.pow(10, this.baseNDecoder(s.substring(v3 + 1, s.length)));
return (this.baseNDecoder(s.substring(0, v3)) / v5) * v4;
} else {
return this.baseNDecoder(s) * v4;
}
};
v2.baseNEncoder = function (n, minchars) {
if (!minchars) {
minchars = 1;
}
var v4 = '';
while (n != 0) {
n = Math.round(n);
var v3 = n % this.bitSize;
if (Math.round(v3) != v3) {
trace('BaseN failed on ' + n + '%' + this.bitSize + ' = ' + v3 + ' ' + int(n) + ' ' + int(this.bitSize));
}
v4 = this.hashIndex.charAt(v3) + v4;
this.debug.lastencode += '\t-> n:' + n + ' % bitSize:' + this.bitSize + ' = ' + v3 + ', final char=' + v4 + '\n';
n -= v3;
n /= this.bitSize;
}
if (minchars) {
while (v4.length < minchars) {
v4 = this.hashIndex.charAt(0) + v4;
}
}
return v4;
};
v2.baseNDecoder = function (s) {
var v2 = 0;
var v6 = 0;
this.i = 0;
while (this.i < s.length) {
var v3 = s.charAt(s.length - this.i - 1);
if (v3 == this.hashIndex.charAt(0)) {
var v5 = 0;
} else {
var v5 = this.hashVal[v3] * Math.pow(this.bitSize, this.i);
}
v2 += v5;
if (v2 >= this.ceiling) {
v6 += (v2 - v2 % this.ceiling) / this.ceiling;
v2 %= this.ceiling;
}
++this.i;
}
if (v6 > 0) {
v2 = '' + v2;
while (v2.length < (this.ceiling.toString()).length - 1) {
v2 = '0' + v2;
}
v2 = '' + v6 + v2;
}
return v2;
};
v2.debug = new Object();
ASSetPropFlags(com.newgrounds.encoders.BaseN.prototype, null, 1);
}
#endinitclip
}
movieClip 125 __Packages.com.newgrounds.encoders.ImageScanner {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.encoders) {
_global.com.newgrounds.encoders = new Object();
}
if (!_global.com.newgrounds.encoders.ImageScanner) {
var v1 = function (the_source) {
if (the_source) {
this.image_source = the_source;
} else {
this.image_source = _root;
}
this.reset();
if (typeof this.image_source == 'movieclip') {
if (this.image_source == _root) {
this.source_width = Stage.width;
this.source_height = Stage.height;
} else {
this.source_width = Math.floor(this.image_source._width);
this.source_height = Math.floor(this.image_source._height);
}
this.sourceBitmap = new flash.display.BitmapData(this.source_width, this.source_height, false, 4294967295.0);
this.sourceBitmap.draw(_root);
} else {
if (this.image_source.width) {
this.source_width = this.image_source.width;
this.source_height = this.image_source.height;
this.sourceBitmap = this.image_source;
} else {
this.error('You can only use BitMaptData and MovieClip objects to create images');
}
}
};
com.newgrounds.encoders.ImageScanner = v1;
var v2 = v1.prototype;
v2.setCallback = function (target, funct) {
if (target && funct) {
this.callback_target = target;
this.callback_function = funct;
}
};
v2.reset = function () {
this.callback_target = null;
this.callback_function = null;
this.debug.bad_pixels = 0;
this.hash = '0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ<>?:;-_=+()!&';
var v3 = Math.pow(this.hash.length, 2);
trace('MAX COLORS: ' + v3);
var v2 = Math.floor(Math.pow(v3, 0.3333333333333333)) - 1;
var v4 = Math.pow(v2, 3);
this.cube = v2;
this.basen = new com.newgrounds.encoders.BaseN(this.hash);
this.xpos = 0;
this.ypos = 0;
this.pixels = 0;
this.busy = false;
};
v2.startScan = function (w, h, s) {
if (w) {
this.image_width = w;
}
if (h) {
this.image_height = h;
}
if (s != undefined) {
this.crop = s;
}
var v7 = _root.getNextHighestDepth();
var v6 = _root.createEmptyMovieClip('API_image_container_' + v7, v7);
var v5 = v6.createEmptyMovieClip('canvas', 100);
v5.attachBitmap(this.sourceBitmap, 100);
if (this.crop) {
if (this.image_width / this.source_width > this.image_height / this.source_height) {
this.canvas_width = this.image_width;
this.canvas_height = Math.ceil(this.source_height * (this.image_width / this.source_width));
} else {
this.canvas_height = this.image_height;
this.canvas_width = Math.ceil(this.source_width * (this.image_height / this.source_height));
}
} else {
this.canvas_width = this.image_width;
this.canvas_height = this.image_height;
}
v5._x = Math.round((this.image_width - this.canvas_width) / 2);
v5._width = this.canvas_width;
v5._height = this.canvas_height;
this.resizedBitmap = new flash.display.BitmapData(this.image_width, this.image_height, false, 4294967295.0);
this.resizedBitmap.draw(v6);
v6.removeMovieClip();
this.copyBitmap = new flash.display.BitmapData(this.image_width, this.image_height, false, 4294967295.0);
var v3 = '' + this.image_width;
while (v3.length < 3) {
v3 = '0' + v3;
}
var v4 = '' + this.image_height;
while (v4.length < 3) {
v4 = '0' + v4;
}
this.output = v3 + v4;
this.draw_interval = setInterval(this, 'drawChunk', 10);
this.busy = false;
return this.resizedBitmap;
};
v2.getBitmapData = function () {
return this.copyBitmap;
};
v2.getBytesTotal = function () {
return this.image_width * this.image_height * 2;
};
v2.getBytesScanned = function () {
return this.pixels * 2;
};
v2.getProgress = function () {
return Math.round((this.getBytesScanned() / this.getBytesTotal()) * 100);
};
v2.drawChunk = function () {
if (!this.busy) {
this.busy = true;
var v2 = 0;
while (v2 < this.pixels_per_chunk) {
if (!this.nextPixel()) {
trace(this.output.length);
clearInterval(this.draw_interval);
this.callback_interval = setInterval(this, 'doCallback', 25);
this.busy = true;
break;
}
++v2;
}
this.busy = false;
}
};
v2.doCallback = function () {
this.busy = false;
clearInterval(this.callback_interval);
if (this.callback_target and this.callback_function) {
this.callback_target[this.callback_function](this.output);
} else {
this.onScanComplete(this.output);
}
};
v2.onScanComplete = function (packet) {
this.sendMessage('packet size: ' + this.output.length + ' bytes', 'onScanComplete');
};
v2.nextPixel = function () {
var v15 = this.xpos;
var v14 = this.ypos;
var v7 = this.resizedBitmap.getPixel(v15, v14);
var v17 = v7 >> 16 & 255;
var v20 = v7 >> 8 & 255;
var v16 = v7 >> 0 & 255;
var v11 = Math.round(((v17 + 1) / 256) * this.cube);
var v10 = Math.round(((v20 + 1) / 256) * this.cube);
var v13 = Math.round(((v16 + 1) / 256) * this.cube);
var v12 = v11 * (this.cube + 1) * (this.cube + 1) + v10 * (this.cube + 1) + v13;
var v6 = this.basen.encode(v12, 2);
this.output += v6;
if (v6.length != 2) {
trace('bad pixel ' + v6);
}
var v5 = this.basen.decode(v6);
var v18 = v5;
var v8 = v5 % (this.cube + 1);
v5 = (v5 - v8) / (this.cube + 1);
var v9 = v5 % (this.cube + 1);
var v19 = (v5 - v9) / (this.cube + 1);
if (v13 != v8 and v10 != v9 and v11 != v10) {
++this.debug.bad_pixels;
trace('BAD PIXEL ' + this.debug.bad_pixels + ') ' + v12 + ' != ' + v18 + ' ' + v6);
trace(this.basen.debug.lastencode);
}
var v2 = (Math.round((v19 / this.cube) * 255)).toString(16);
var v4 = (Math.round((v9 / this.cube) * 255)).toString(16);
var v3 = (Math.round((v8 / this.cube) * 255)).toString(16);
while (v2.length < 2) {
v2 = '0' + v2;
}
while (v4.length < 2) {
v4 = '0' + v4;
}
while (v3.length < 2) {
v3 = '0' + v3;
}
this.copyBitmap.setPixel(v15, v14, Number('0x' + v2 + v4 + v3));
++this.pixels;
if (this.pixels >= this.image_width * this.image_height) {
return false;
}
++this.xpos;
if (this.xpos >= this.image_width) {
this.xpos = 0;
++this.ypos;
}
return true;
};
v2.error = function (e, f) {
this.sendMessage(e, f, 'ERROR');
};
v2.sendMessage = function (msg, func, type) {
var v1 = 'ImageScanner';
if (func) {
v1 += '.' + func + '()';
}
if (type) {
v1 = type + ' in ' + v1;
}
v1 += ' :: ' + msg;
trace(v1);
};
v2.image_width = 100;
v2.image_height = 100;
v2.crop = true;
v2.pixels_per_chunk = 500;
v2.debug = new Object();
ASSetPropFlags(com.newgrounds.encoders.ImageScanner.prototype, null, 1);
}
#endinitclip
}
movieClip 126 __Packages.com.newgrounds.encoders.SerialXML {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.encoders) {
_global.com.newgrounds.encoders = new Object();
}
if (!_global.com.newgrounds.encoders.SerialXML) {
var v1 = function () {};
com.newgrounds.encoders.SerialXML = v1;
var v2 = v1.prototype;
v1.decode = function (xml) {
if (!(xml instanceof XML)) {
xml = new XML(xml);
}
var v2 = com.newgrounds.encoders.SerialXML.populateObject(xml.firstChild, {});
return v2.DATA;
};
v1.encode = function (obj) {
var v1 = new XML();
com.newgrounds.encoders.SerialXML.populateXML(v1, obj, 'DATA');
return v1;
};
v1.populateObject = function (child, object) {
var v6 = child.nodeName;
var v5 = com.newgrounds.encoders.SerialXML.getValue(v6, child.attributes.v);
var v4 = child.attributes.n;
if (object instanceof Array) {
v4 = object.length;
object.push(v5);
} else {
object[v4] = v5;
}
if (child.hasChildNodes()) {
var v1 = 0;
while (v1 < child.childNodes.length) {
com.newgrounds.encoders.SerialXML.populateObject(child.childNodes[v1], object[v4]);
++v1;
}
}
return object;
};
v1.populateXML = function (child, obj, name) {
if (obj === undefined) {
return undefined;
}
var v5 = new XML();
var v2;
if (obj instanceof Array) {
v2 = v5.createElement(com.newgrounds.encoders.SerialXML.getType(obj));
if (name) {
v2.attributes.n = name;
}
child.appendChild(v2);
var v4 = 0;
while (v4 < obj.length) {
com.newgrounds.encoders.SerialXML.populateXML(v2, obj[v4]);
++v4;
}
} else {
if (typeof obj == 'object') {
v2 = v5.createElement(com.newgrounds.encoders.SerialXML.getType(obj));
if (name) {
v2.attributes.n = name;
}
child.appendChild(v2);
for (var v4 in obj) {
com.newgrounds.encoders.SerialXML.populateXML(v2, obj[v4], v4);
}
} else {
v2 = v5.createElement(com.newgrounds.encoders.SerialXML.getType(obj));
if (name) {
v2.attributes.n = name;
}
if ((com.newgrounds.encoders.SerialXML.getType(obj)).length == 1) {
v2.attributes.v = obj;
}
child.appendChild(v2);
}
}
};
v1.getValue = function (type, stringval) {
switch (type.toUpperCase()) {
case 'O':
return new Object();
break;
case 'A':
return new Array();
break;
case 'N':
return Number(stringval);
break;
case 'S':
return String(stringval);
break;
case 'TRUE':
return true;
break;
case 'FALSE':
return false;
break;
default:
return null;
}
};
v1.getType = function (obj) {
switch (obj instanceof Array ? 'array' : typeof obj) {
case 'array':
return 'A';
break;
case 'object':
return 'O';
break;
case 'string':
return 'S';
break;
case 'number':
return 'N';
case 'boolean':
return (obj === true) ? 'TRUE' : 'FALSE';
break;
default:
return 'NULL';
}
};
ASSetPropFlags(com.newgrounds.encoders.SerialXML.prototype, null, 1);
}
#endinitclip
}
movieClip 127 __Packages.com.newgrounds.encoders.LZW2 {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.encoders) {
_global.com.newgrounds.encoders = new Object();
}
if (!_global.com.newgrounds.encoders.LZW2) {
var v1 = function () {};
com.newgrounds.encoders.LZW2 = v1;
var v2 = v1.prototype;
v1.doCompressorConfig = function () {
com.newgrounds.encoders.LZW2.comp_dict = [];
var v1 = 0;
while (v1 < 256) {
com.newgrounds.encoders.LZW2.comp_dict[String.fromCharCode(v1)] = v1;
++v1;
}
com.newgrounds.encoders.LZW2.comp_dict.< = 256;
com.newgrounds.encoders.LZW2.comp_dict.> = 257;
com.newgrounds.encoders.LZW2.comp_dict.& = 258;
com.newgrounds.encoders.LZW2.comp_dict." = 259;
com.newgrounds.encoders.LZW2.comp_dict.\' = 260;
com.newgrounds.encoders.LZW2.pos = 0;
com.newgrounds.encoders.LZW2.result = '';
com.newgrounds.encoders.LZW2.buffer = '';
com.newgrounds.encoders.LZW2.nbChar = 256 + com.newgrounds.encoders.LZW2.skipnum;
};
v1.compress = function (string, callback, callback_params) {
com.newgrounds.encoders.LZW2.doCompressorConfig();
if (com.newgrounds.encoders.LZW2.busy) {
trace('[LZW COMPRESSOR] :: Compression can not begin until previous compression or decompression is complete!');
return undefined;
}
com.newgrounds.encoders.LZW2.splitStr = string.split('');
string = '';
com.newgrounds.encoders.LZW2.len = com.newgrounds.encoders.LZW2.splitStr.length;
com.newgrounds.encoders.LZW2.local = {'delay': 30, 'callback': callback, 'callback_params': callback_params, 'compress_chunk': function () {
com.newgrounds.encoders.LZW2.compress_chunk();
}, 'busy': false, 'complete': false};
com.newgrounds.encoders.LZW2.interval = setInterval(com.newgrounds.encoders.LZW2.local, 'compress_chunk', 5);
};
v1.getProgress = function () {
return Math.round((com.newgrounds.encoders.LZW2.pos / com.newgrounds.encoders.LZW2.len) * 100);
};
v1.compress_chunk = function () {
if (com.newgrounds.encoders.LZW2.local.delay > 0) {
--com.newgrounds.encoders.LZW2.local.delay;
} else {
if (!com.newgrounds.encoders.LZW2.local.busy) {
com.newgrounds.encoders.LZW2.local.busy = true;
var v1 = 0;
while (v1 < com.newgrounds.encoders.LZW2.max_chunk_length) {
com.newgrounds.encoders.LZW2.encode_next();
if (com.newgrounds.encoders.LZW2.local.complete) {
break;
}
++v1;
}
com.newgrounds.encoders.LZW2.local.busy = false;
}
}
if (com.newgrounds.encoders.LZW2.local.complete) {
trace('LZW2 complete ' + com.newgrounds.encoders.LZW2.nbChar + ' ' + com.newgrounds.encoders.LZW2.comp_dict.length + ' ' + com.newgrounds.encoders.LZW2.len + ' ' + com.newgrounds.encoders.LZW2.pos + ' ' + com.newgrounds.encoders.LZW2.skipnum);
clearInterval(com.newgrounds.encoders.LZW2.interval);
com.newgrounds.encoders.LZW2.local.callback(com.newgrounds.encoders.LZW2.result, com.newgrounds.encoders.LZW2.local.callback_params);
com.newgrounds.encoders.LZW2.result = '';
com.newgrounds.encoders.LZW2.buffer = '';
}
};
v1.encode_next = function () {
if (com.newgrounds.encoders.LZW2.pos <= com.newgrounds.encoders.LZW2.len) {
var v1 = com.newgrounds.encoders.LZW2.splitStr[com.newgrounds.encoders.LZW2.pos];
if (com.newgrounds.encoders.LZW2.comp_dict[com.newgrounds.encoders.LZW2.buffer + v1] !== undefined) {
com.newgrounds.encoders.LZW2.buffer += v1;
} else {
com.newgrounds.encoders.LZW2.result += String.fromCharCode(com.newgrounds.encoders.LZW2.comp_dict[com.newgrounds.encoders.LZW2.buffer]);
com.newgrounds.encoders.LZW2.comp_dict[com.newgrounds.encoders.LZW2.buffer + v1] = com.newgrounds.encoders.LZW2.nbChar;
++com.newgrounds.encoders.LZW2.nbChar;
com.newgrounds.encoders.LZW2.buffer = v1;
}
++com.newgrounds.encoders.LZW2.pos;
} else {
com.newgrounds.encoders.LZW2.local.complete = true;
return undefined;
}
};
v1.comp_config = false;
v1.skipnum = 5;
v1.busy = false;
v1.max_chunk_length = 12000;
ASSetPropFlags(com.newgrounds.encoders.LZW2.prototype, null, 1);
}
#endinitclip
}
movieClip 128 __Packages.com.newgrounds.encoders.LZW {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.encoders) {
_global.com.newgrounds.encoders = new Object();
}
if (!_global.com.newgrounds.encoders.LZW) {
var v1 = function () {};
com.newgrounds.encoders.LZW = v1;
var v2 = v1.prototype;
v1.setXMLSafe = function (x) {
com.newgrounds.encoders.LZW.xmlsafe = x;
};
v1.compress = function (str, escape_chars) {
var v2 = new Array();
var v11 = com.newgrounds.encoders.LZW.xmlsafe ? 5 : 0;
var v5 = 0;
while (v5 < 256) {
v2[String.fromCharCode(v5)] = v5;
++v5;
}
if (com.newgrounds.encoders.LZW.xmlsafe) {
v2.< = 256;
v2.> = 257;
v2.& = 258;
v2." = 259;
v2.\' = 260;
}
var v7 = '';
var v8 = str.split('');
var v9 = v8.length;
var v6 = 256 + v11;
var v1 = '';
var v4;
v5 = 0;
while (v5 <= v9) {
var v3 = v8[v5];
if (v2[v1 + v3] !== undefined) {
v1 += v3;
} else {
v4 = String.fromCharCode(v2[v1]);
if (escape_chars and (v2[v1] < 33 or v2[v1] > 126 or v4 == '%')) {
v4 = escape(v4);
}
v7 += v4;
v2[v1 + v3] = v6;
++v6;
v1 = v3;
}
++v5;
}
return v7;
};
v1.decompress = function (str) {
var v4 = new Array();
var v10 = com.newgrounds.encoders.LZW.xmlsafe ? 5 : 0;
var v6 = 0;
while (v6 < 256) {
var v9 = String.fromCharCode(v6);
v4[v6] = v9;
++v6;
}
if (com.newgrounds.encoders.LZW.xmlsafe) {
v4[256] = '<';
v4[257] = '>';
v4[258] = '&';
v4[259] = '"';
v4[260] = '\'';
}
var v11 = str;
var v13 = v11.split('');
var v12 = v13.length;
var v7 = 256 + v10;
var v1 = '';
var v2 = '';
var v8 = '';
v6 = 0;
while (v6 < v12) {
var v5 = v11.charCodeAt(v6);
var v3 = v4[v5];
if (v1 == '') {
v1 = v3;
v8 += v3;
} else {
if (v5 <= 255 + v10) {
v8 += v3;
v2 = v1 + v3;
v4[v7] = v2;
++v7;
v1 = v3;
} else {
v2 = v4[v5];
if (v2 == undefined) {
v2 = v1 + v1.slice(0, 1);
}
v8 += v2;
v4[v7] = v1 + v2.slice(0, 1);
++v7;
v1 = v2;
}
}
++v6;
}
return v8;
};
v1.compress_fp6 = function (str) {
var v3 = new Array();
var v10 = com.newgrounds.encoders.LZW.xmlsafe ? 5 : 0;
var v4 = 0;
while (v4 < 256) {
v3[String(v4)] = v4;
++v4;
}
if (com.newgrounds.encoders.LZW.xmlsafe) {
var v14 = String((new String('<')).charCodeAt(0));
var v11 = String((new String('>')).charCodeAt(0));
var v13 = String((new String('&')).charCodeAt(0));
var v15 = String((new String('"')).charCodeAt(0));
var v12 = String((new String('\'')).charCodeAt(0));
v3[v14] = 256;
v3[v11] = 257;
v3[v13] = 258;
v3[v15] = 259;
v3[v12] = 260;
}
var v7 = '';
var v16 = str;
var v8 = v16.split('');
var v9 = v8.length;
var v6 = 256 + v10;
var v1 = new Array();
v4 = 0;
while (v4 <= v9) {
var v2 = v8[v4];
if (v1.length == 0) {
var v5 = String(v2.charCodeAt(0));
} else {
var v5 = v1.join('-') + '-' + String(v2.charCodeAt(0));
}
if (v3[v5] !== undefined) {
v1.push(v2.charCodeAt(0));
} else {
v7 += String.fromCharCode(v3[v1.join('-')]);
v3[v5] = v6;
++v6;
false;
v1 = new Array();
v1.push(v2.charCodeAt(0));
}
++v4;
}
return v7;
};
v1.xmlsafe = false;
ASSetPropFlags(com.newgrounds.encoders.LZW.prototype, null, 1);
}
#endinitclip
}
movieClip 129 __Packages.com.newgrounds.RemoteAuth {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.RemoteAuth) {
var v1 = function (id) {
this.auth_token = id;
System.security.allowDomain('*');
this.receiver = new LocalConnection();
this.receiver.allowDomain = function () {
return true;
};
this.receiver.onAuth = function (auth_result) {
trace('remote login is a success! ' + auth_result);
com.newgrounds.API.onRemoteAuthentication(auth_result);
};
this.receiver.connect('_' + this.auth_token);
};
com.newgrounds.RemoteAuth = v1;
var v2 = v1.prototype;
v2.__get__token = function () {
return this.auth_token;
};
v2.addProperty('token', v2.__get__token, function () {});
ASSetPropFlags(com.newgrounds.RemoteAuth.prototype, null, 1);
}
#endinitclip
}
movieClip 130 __Packages.com.newgrounds.Medal {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.Medal) {
var v1 = function (id, name, value, difficulty, unlocked, _icon_url) {
if (id == undefined || name == undefined || value == undefined || difficulty == undefined) {
com.newgrounds.API.fatalError('Medal instances require an id, name, value and difficulty');
}
this._medal_id = id;
this._medal_name = name;
this._medal_value = value;
this._medal_difficulty = difficulty;
if (unlocked) {
this._medal_unlocked = true;
}
if (_icon_url) {
this._icon_url = _icon_url;
}
};
com.newgrounds.Medal = v1;
var v2 = v1.prototype;
v2.__get__difficulty = function () {
return com.newgrounds.Medal.difficulty_names[this._medal_difficulty];
};
v2.__get__difficultyId = function () {
return this._medal_difficulty;
};
v2.__get__icon_url = function () {
return this._icon_url;
};
v2.__get__id = function () {
return this._medal_id;
};
v2.__get__name = function () {
return this._medal_name;
};
v2.__get__unlocked = function () {
return this._medal_unlocked;
};
v2.__get__value = function () {
return this._medal_value;
};
v2.isUnlocked = function () {
return this._medal_unlocked;
};
v2.unlock = function () {
if (!this.isUnlocked()) {
com.newgrounds.API.unlockMedal(this);
}
};
v2.setUnlocked = function (u) {
this._medal_unlocked = u;
};
v2.attachIcon = function (target, depth) {
if (!depth) {
depth = target.getNextHighestDepth();
}
var v3 = target.createEmptyMovieClip('Asset_Medal_Icon_' + this.getID(), depth);
if (this._icon_url) {
v3.loadMovie(this._icon_url);
} else {
var v4 = flash.display.BitmapData.loadBitmap('Asset_default_medal_icon_' + this.getDifficulty(), depth);
v3.attachBitmap(v4, depth, true);
}
};
v2.getID = function () {
return this._medal_id;
};
v2.getName = function () {
return this._medal_name;
};
v2.getValue = function () {
return this._medal_value;
};
v2.getDifficulty = function (as_string) {
if (as_string) {
return com.newgrounds.Medal.difficulty_names[this._medal_difficulty];
} else {
return this._medal_difficulty;
}
};
v2._medal_unlocked = false;
v2._icon_loaded = false;
v2._icon_width = 50;
v2._icon_height = 50;
v2._icon_url = null;
v1.difficulty_names = new Array(null, 'Easy', 'Moderate', 'Challenging', 'Difficult', 'Brutal');
v2.addProperty('difficulty', v2.__get__difficulty, function () {});
v2.addProperty('difficultyId', v2.__get__difficultyId, function () {});
v2.addProperty('icon_url', v2.__get__icon_url, function () {});
v2.addProperty('id', v2.__get__id, function () {});
v2.addProperty('name', v2.__get__name, function () {});
v2.addProperty('unlocked', v2.__get__unlocked, function () {});
v2.addProperty('value', v2.__get__value, function () {});
ASSetPropFlags(com.newgrounds.Medal.prototype, null, 1);
}
#endinitclip
}
movieClip 131 __Packages.com.newgrounds.ScoreBoard {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.ScoreBoard) {
var v1 = function (id, name, tag) {
this._name = name;
this._id = id;
if (tag !== undefined) {
this._tag = tag;
}
};
com.newgrounds.ScoreBoard = v1;
var v2 = v1.prototype;
v2.exists = function () {
return Number(this._id) > 0;
};
v2.__get__id = function () {
return this._id;
};
v2.__get__name = function () {
return this._name;
};
v2.__get__period = function () {
return this._period;
};
v2.__get__tag = function () {
return this._tag;
};
v2.__get__page = function () {
return this._page;
};
v2.__get__num_results = function () {
return this._num_results;
};
v2.__get__scores = function () {
return this._scores;
};
v2.postScore = function (value, tag) {
if (tag !== undefined) {
this._tag = tag;
}
com.newgrounds.API.postScore(this._name, value, this._tag);
};
v2.loadScores = function (period, page, num_results, tag) {
if (period) {
this._period = period;
}
if (page) {
this._page = page;
}
if (num_results) {
this._num_results = num_results;
}
this._scores = [];
com.newgrounds.API.loadScores(this._name, this._period, tag);
};
v2.setScores = function (scores, period, page, num_results) {
if (period) {
this._period = period;
}
if (page) {
this._page = page;
}
if (num_results) {
this._num_results = num_results;
}
this._scores = [];
var v2 = 0;
while (v2 < scores.length) {
var v4 = this._num_results * (this._page - 1) + 1 + v2;
this._scores.push(new com.newgrounds.Score(this, v4, scores[v2].username, scores[v2].value, scores[v2].numeric_value));
++v2;
}
};
v2._period = 'Today';
v2._num_results = 10;
v2._page = 1;
v2._tag = '';
v2.addProperty('id', v2.__get__id, function () {});
v2.addProperty('name', v2.__get__name, function () {});
v2.addProperty('num_results', v2.__get__num_results, function () {});
v2.addProperty('page', v2.__get__page, function () {});
v2.addProperty('period', v2.__get__period, function () {});
v2.addProperty('scores', v2.__get__scores, function () {});
v2.addProperty('tag', v2.__get__tag, function () {});
ASSetPropFlags(com.newgrounds.ScoreBoard.prototype, null, 1);
}
#endinitclip
}
movieClip 132 __Packages.com.newgrounds.Score {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.Score) {
var v1 = function (board, position, username, value, numeric_value) {
this._board = board;
this._position = position;
this._username = username;
this._value = value;
this._numeric_value = numeric_value;
};
com.newgrounds.Score = v1;
var v2 = v1.prototype;
v2.__get__board = function () {
return this._board;
};
v2.__get__position = function () {
return this._position;
};
v2.__get__username = function () {
return this._username;
};
v2.__get__value = function () {
return this._value;
};
v2.__get__numeric_value = function () {
return this._numeric_value;
};
v1.fromTime = function (time) {
var v1 = time.split(':');
var v2 = Math.round(Number(v1.pop()) * 1000);
if (v1.length > 0) {
v2 += Number(v1.pop()) * 60;
}
if (v1.length > 0) {
v2 += Number(v1.pop()) * 3600;
}
return v2;
};
v1.fromDistance = function (distance) {
var v1 = distance.indexOf('\'');
var v5 = distance.indexOf('"', v1);
var v3 = Number(distance.substr(0, v1));
var v4 = Number(distance.substring(v1 + 1, v5));
return Math.round(v3 * 12 + v4);
};
v2.addProperty('board', v2.__get__board, function () {});
v2.addProperty('numeric_value', v2.__get__numeric_value, function () {});
v2.addProperty('position', v2.__get__position, function () {});
v2.addProperty('username', v2.__get__username, function () {});
v2.addProperty('value', v2.__get__value, function () {});
ASSetPropFlags(com.newgrounds.Score.prototype, null, 1);
}
#endinitclip
}
movieClip 133 __Packages.com.newgrounds.encoders.RC4 {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.encoders) {
_global.com.newgrounds.encoders = new Object();
}
if (!_global.com.newgrounds.encoders.RC4) {
var v1 = function () {};
com.newgrounds.encoders.RC4 = v1;
var v2 = v1.prototype;
v1.encrypt = function (src, key) {
var v3 = com.newgrounds.encoders.RC4.strToChars(src);
var v1 = com.newgrounds.encoders.RC4.strToChars(key);
var v2 = com.newgrounds.encoders.RC4.calculate(v3, v1);
return com.newgrounds.encoders.RC4.charsToHex(v2);
};
v1.encryptbin = function (src, key) {
var v3 = com.newgrounds.encoders.RC4.strToChars(src);
var v1 = com.newgrounds.encoders.RC4.strToChars(key);
var v2 = com.newgrounds.encoders.RC4.calculate(v3, v1);
return v2;
};
v1.decrypt = function (src, key) {
var v3 = com.newgrounds.encoders.RC4.hexToChars(src);
var v1 = com.newgrounds.encoders.RC4.strToChars(key);
var v2 = com.newgrounds.encoders.RC4.calculate(v3, v1);
return com.newgrounds.encoders.RC4.charsToStr(v2);
};
v1.initialize = function (pwd) {
var v2 = 0;
var v3;
var v4 = pwd.length;
var v1 = 0;
while (v1 <= 255) {
com.newgrounds.encoders.RC4.mykey[v1] = pwd[v1 % v4];
com.newgrounds.encoders.RC4.sbox[v1] = v1;
++v1;
}
v1 = 0;
while (v1 <= 255) {
v2 = (v2 + com.newgrounds.encoders.RC4.sbox[v1] + com.newgrounds.encoders.RC4.mykey[v1]) % 256;
v3 = com.newgrounds.encoders.RC4.sbox[v1];
com.newgrounds.encoders.RC4.sbox[v1] = com.newgrounds.encoders.RC4.sbox[v2];
com.newgrounds.encoders.RC4.sbox[v2] = v3;
++v1;
}
};
v1.calculate = function (plaintxt, psw) {
com.newgrounds.encoders.RC4.initialize(psw);
var v1 = 0;
var v2 = 0;
var v9 = new Array();
var v7;
var v5;
var v6;
var v3 = 0;
while (v3 < plaintxt.length) {
v1 = (v1 + 1) % 256;
v2 = (v2 + com.newgrounds.encoders.RC4.sbox[v1]) % 256;
v5 = com.newgrounds.encoders.RC4.sbox[v1];
com.newgrounds.encoders.RC4.sbox[v1] = com.newgrounds.encoders.RC4.sbox[v2];
com.newgrounds.encoders.RC4.sbox[v2] = v5;
var v4 = (com.newgrounds.encoders.RC4.sbox[v1] + com.newgrounds.encoders.RC4.sbox[v2]) % 256;
v7 = com.newgrounds.encoders.RC4.sbox[v4];
v6 = plaintxt[v3] ^ v7;
v9.push(v6);
++v3;
}
return v9;
};
v1.charsToHex = function (chars) {
var v4 = new String('');
var v3 = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f');
var v1 = 0;
while (v1 < chars.length) {
v4 += v3[chars[v1] >> 4] + v3[chars[v1] & 15];
++v1;
}
return v4;
};
v1.hexToChars = function (hex) {
var v3 = new Array();
var v1 = (hex.substr(0, 2) == '0x') ? 2 : 0;
while (v1 < hex.length) {
v3.push(parseInt(hex.substr(v1, 2), 16));
v1 += 2;
}
return v3;
};
v1.charsToStr = function (chars) {
var v3 = new String('');
var v1 = 0;
while (v1 < chars.length) {
v3 += String.fromCharCode(chars[v1]);
++v1;
}
return v3;
};
v1.strToChars = function (str) {
var v3 = new Array();
var v1 = 0;
while (v1 < str.length) {
v3.push(str.charCodeAt(v1));
++v1;
}
return v3;
};
v1.sbox = new Array(255);
v1.mykey = new Array(255);
ASSetPropFlags(com.newgrounds.encoders.RC4.prototype, null, 1);
}
#endinitclip
}
movieClip 134 __Packages.com.newgrounds.encoders.JSON {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.encoders) {
_global.com.newgrounds.encoders = new Object();
}
if (!_global.com.newgrounds.encoders.JSON) {
var v1 = function () {};
com.newgrounds.encoders.JSON = v1;
var v2 = v1.prototype;
v1.encode = function (arg, noquotes) {
var v3;
var v2;
var v6;
var v1 = '';
var v4;
if (arg.isSServerVar()) {
var v8 = 'sservervariable';
} else {
var v8 = typeof arg;
}
switch (v8) {
return 'null';
case 'sservervariable':
return '?' + arg.getEncodedValue();
break;
case 'object':
if (arg) {
if (arg instanceof Array) {
v2 = 0;
while (v2 < arg.length) {
v4 = com.newgrounds.encoders.JSON.encode(arg[v2]);
if (v1) {
v1 += ',';
}
v1 += v4;
++v2;
}
return '[' + v1 + ']';
} else {
if (typeof arg.toString != 'undefined') {
for (v2 in arg) {
v4 = arg[v2];
if (typeof v4 != 'undefined' && typeof v4 != 'function') {
v4 = com.newgrounds.encoders.JSON.encode(v4);
if (v1) {
v1 += ',';
}
v1 += com.newgrounds.encoders.JSON.encode(v2) + ':' + v4;
}
}
return '{' + v1 + '}';
}
}
}
return 'null';
case 'number':
return isFinite(arg) ? String(arg) : 'null';
case 'string':
v6 = arg.length;
if (noquotes) {
var v7 = '';
} else {
var v7 = '"';
}
v1 = v7;
v2 = 0;
while (v2 < v6) {
v3 = arg.charAt(v2);
if (v3 >= ' ') {
if (v3 == '\\' || v3 == '"') {
v1 += '\\';
}
v1 += v3;
} else {
switch (v3) {
case '\b':
v1 += '\\b';
break;
case '\f':
v1 += '\\f';
break;
case '\n':
v1 += '\\n';
break;
case '\r':
v1 += '\\r';
break;
case '\t':
v1 += '\\t';
break;
default:
v3 = v3.charCodeAt();
v1 += '\\u00' + (Math.floor(v3 / 16)).toString(16) + (v3 % 16).toString(16);
}
}
v2 += 1;
}
return v1 + v7;
case 'boolean':
return String(arg);
default:
return 'null';
}
};
v1.background_encode = function (arg, callback) {
if (com.newgrounds.encoders.JSON.busy) {
trace('[Newgrounds Encoder] :: Cannot encode a new file until the previous file is completed');
return false;
} else {
if (!callback) {
trace('[Newgrounds Encoder] :: Missing a callback function, skipping encode');
return false;
}
}
com.newgrounds.encoders.JSON.busy = true;
var v2 = new Date();
com.newgrounds.encoders.JSON.start = v2.getTime();
com.newgrounds.encoders.JSON.cache = {'busy': false, 'complete': false, 'arg': arg, 'target': arg, 'parents': [], 'encoded': '', 'callback': callback, 'encode_chunk': function () {
com.newgrounds.encoders.JSON.encode_chunk();
}};
if (com.newgrounds.encoders.JSON.getType(arg) == 'object') {
com.newgrounds.encoders.JSON.cache.encoded = '{';
com.newgrounds.encoders.JSON.interval = setInterval(com.newgrounds.encoders.JSON.cache, 'encode_chunk', 25);
return true;
}
if (com.newgrounds.encoders.JSON.getType(arg) == 'array') {
com.newgrounds.encoders.JSON.cache.encoded = '[';
}
com.newgrounds.encoders.JSON.interval = setInterval(com.newgrounds.encoders.JSON.cache, 'encode_chunk', 25);
return true;
};
v1.background_decode = function (arg, callback) {
if (com.newgrounds.encoders.JSON.busy) {
trace('[Newgrounds Encoder] :: Cannot decode a new file until the previous file is completed');
return false;
} else {
if (!callback) {
trace('[Newgrounds Encoder] :: Missing a callback function, skipping decode');
return false;
}
}
com.newgrounds.encoders.JSON.busy = true;
var v1 = new Date();
com.newgrounds.encoders.JSON.start = v1.getTime();
com.newgrounds.encoders.JSON.cache = {'busy': false, 'callback': callback, 'complete': false, 'arg': arg, 'pos': 0, 'parents': ['root'], 'target': null, 'scratch': '', 'decode_chunk': function () {
com.newgrounds.encoders.JSON.decode_chunk();
}};
com.newgrounds.encoders.JSON.interval = setInterval(com.newgrounds.encoders.JSON.cache, 'decode_chunk', 25);
return true;
};
v1.decode = function (text) {
var at = 0;
var ch = ' ';
var _value;
var _error = function (m) {
throw {'name': 'JSONError', 'message': m, 'at': at - 1, 'text': text};
};
var _next = function () {
ch = text.charAt(at);
at += 1;
return ch;
};
var _white = function () {
while (ch) {
if (ch <= ' ') {
_next();
} else {
if (ch == '/') {
switch (_next()) {
case '/':
for (;;) {
if (!(_next() && ch != '\n' && ch != '\r')) break;
}
break;
case '*':
_next();
for (;;) {
if (ch) {
if (ch == '*') {
if (_next() == '/') {
_next();
break;
}
} else {
_next();
}
continue;
}
_error('Unterminated comment');
}
break;
default:
_error('Syntax error');
}
} else {
break;
}
}
}
};
var _string = function () {
var v4;
var v1 = '';
var v3;
var v2;
var v5 = false;
if (ch == '"') {
while (_next()) {
if (ch == '"') {
_next();
return v1;
} else {
if (ch == '\\') {
switch (_next()) {
case 'b':
v1 += '\b';
break;
case 'f':
v1 += '\f';
break;
case 'n':
v1 += '\n';
break;
case 'r':
v1 += '\r';
break;
case 't':
v1 += '\t';
break;
case 'u':
v2 = 0;
v4 = 0;
while (v4 < 4) {
v3 = parseInt(_next(), 16);
if (!isFinite(v3)) {
v5 = true;
break;
}
v2 = v2 * 16 + v3;
v4 += 1;
}
if (v5) {
v5 = false;
} else {
v1 += String.fromCharCode(v2);
break;
default:
v1 += ch;
}
}
} else {
v1 += ch;
}
}
}
}
_error('Bad string');
};
var _array = function () {
var v1 = [];
if (ch == '[') {
_next();
_white();
if (ch == ']') {
_next();
return v1;
}
while (ch) {
v1.push(_value());
_white();
if (ch == ']') {
_next();
return v1;
} else {
if (ch != ',') {
break;
}
}
_next();
_white();
}
}
_error('Bad array');
};
var _object = function () {
var v2;
var v1 = {};
if (ch == '{') {
_next();
_white();
if (ch == '}') {
_next();
return v1;
}
while (ch) {
v2 = _string();
_white();
if (ch != ':') {
break;
}
_next();
v1[v2] = _value();
_white();
if (ch == '}') {
_next();
return v1;
} else {
if (ch != ',') {
break;
}
}
_next();
_white();
}
}
_error('Bad object');
};
var _number = function () {
var v1 = '';
var v2;
if (ch == '-') {
v1 = '-';
_next();
}
for (;;) {
if (!(ch >= '0' && ch <= '9')) break;
v1 += ch;
_next();
}
if (ch == '.') {
v1 += '.';
for (;;) {
if (!(_next() && ch >= '0' && ch <= '9')) break;
v1 += ch;
}
}
v2 = 1 * v1;
if (!isFinite(v2)) {
_error('Bad number');
} else {
return v2;
}
};
var _word = function () {
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') {
_next();
return null;
}
}
_error('Syntax error');
};
_value = function () {
_white();
switch (ch) {
case '{':
return _object();
case '[':
return _array();
case '"':
return _string();
case '-':
return _number();
}
return (ch >= '0' && ch <= '9') ? _number() : _word();
};
return _value();
};
v1.getType = function (v) {
if (v instanceof Array) {
return 'array';
} else {
return typeof v;
}
};
v1.decode_chunk = function () {
if (!com.newgrounds.encoders.JSON.cache.busy && !com.newgrounds.encoders.JSON.cache.complete) {
com.newgrounds.encoders.JSON.cache.busy = true;
var v1 = 0;
while (v1 < com.newgrounds.encoders.JSON.decode_chunks) {
com.newgrounds.encoders.JSON.chunk_decoder();
if (com.newgrounds.encoders.JSON.cache.complete) {
break;
}
++v1;
}
trace(Math.round((com.newgrounds.encoders.JSON.cache.pos / com.newgrounds.encoders.JSON.cache.arg.length) * 100) + '% decoded');
com.newgrounds.encoders.JSON.cache.busy = false;
}
if (com.newgrounds.encoders.JSON.cache.complete) {
var v2 = new Date();
com.newgrounds.encoders.JSON.busy = false;
clearInterval(com.newgrounds.encoders.JSON.interval);
com.newgrounds.encoders.JSON.cache.callback(com.newgrounds.encoders.JSON.cache.root, v2.getTime() - com.newgrounds.encoders.JSON.start);
com.newgrounds.encoders.JSON.cache.arg = '';
}
};
v1.encode_chunk = function () {
if (!com.newgrounds.encoders.JSON.cache.busy && !com.newgrounds.encoders.JSON.cache.complete) {
com.newgrounds.encoders.JSON.cache.busy = true;
var v1 = 0;
while (v1 < com.newgrounds.encoders.JSON.encode_chunks) {
com.newgrounds.encoders.JSON.chunk_encoder();
if (com.newgrounds.encoders.JSON.cache.complete) {
break;
}
++v1;
}
com.newgrounds.encoders.JSON.cache.busy = false;
}
if (com.newgrounds.encoders.JSON.cache.complete) {
var v3 = new Date();
var v2 = v3.getTime();
com.newgrounds.encoders.JSON.busy = false;
clearInterval(com.newgrounds.encoders.JSON.interval);
com.newgrounds.encoders.JSON.cache.callback(com.newgrounds.encoders.JSON.cache.encoded, v2 - com.newgrounds.encoders.JSON.start);
com.newgrounds.encoders.JSON.cache.encoded = '';
}
};
v1.chunk_decoder = function () {
function _object() {
var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
if (!com.newgrounds.encoders.JSON.cache.mode) {
com.newgrounds.encoders.JSON.cache.mode = 'object';
++com.newgrounds.encoders.JSON.cache.pos;
v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
if (v1 != '"') {
throw 'Malformed object key in encoded string. Keys must be wrapped in quotes ("")';
}
com.newgrounds.encoders.JSON.cache.scratch = '';
_setTargetValue({});
} else {
if (v1 == ',') {
++com.newgrounds.encoders.JSON.cache.pos;
v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
if (v1 != '"') {
throw 'Malformed object key in encoded string. Keys must be wrapped in quotes ("")';
}
com.newgrounds.encoders.JSON.cache.scratch = '';
} else {
if (v1 == '}') {
_useParent();
} else {
if (v1 == '"') {
++com.newgrounds.encoders.JSON.cache.pos;
v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
if (v1 != ':') {
throw 'Malformed object notation. Object keys and values must be separated by colons(:)';
}
_addParent(com.newgrounds.encoders.JSON.cache.scratch);
com.newgrounds.encoders.JSON.cache.mode = null;
} else {
if (v1 == '\\') {
++com.newgrounds.encoders.JSON.cache.pos;
v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
}
com.newgrounds.encoders.JSON.cache.scratch += v1;
}
}
}
}
++com.newgrounds.encoders.JSON.cache.pos;
}
function _array() {
var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
if (!com.newgrounds.encoders.JSON.cache.mode) {
com.newgrounds.encoders.JSON.cache.mode = 'array';
++com.newgrounds.encoders.JSON.cache.pos;
v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
_setTargetValue([]);
if (v1 != ']') {
_addArrayKey();
} else {
_useParent();
}
return undefined;
} else {
if (v1 == ',') {
_addArrayKey();
} else {
if (v1 == ']') {
_useParent();
}
}
}
++com.newgrounds.encoders.JSON.cache.pos;
}
function _boolean() {
var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
if (v1 == 't') {
_setTargetValue(true);
com.newgrounds.encoders.JSON.cache.pos += 3;
} else {
if (v1 == 'f') {
_setTargetValue(false);
com.newgrounds.encoders.JSON.cache.pos += 4;
} else {
throw 'Bool values must be true or false';
}
}
_useParent();
}
function _null() {
var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
if (v1 == 'n') {
_setTargetValue(null);
com.newgrounds.encoders.JSON.cache.pos += 2;
} else {
throw 'Null values must be null';
}
_useParent();
}
function _string() {
var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
if (!com.newgrounds.encoders.JSON.cache.mode) {
if (v1 != '"') {
throw 'Strings must be wrapped in quotes ("")';
}
com.newgrounds.encoders.JSON.cache.scratch = '';
com.newgrounds.encoders.JSON.cache.mode = 'string';
} else {
if (v1 == '"') {
_setTargetValue(com.newgrounds.encoders.JSON.cache.scratch);
_useParent();
} else {
if (v1 == '\\') {
++com.newgrounds.encoders.JSON.cache.pos;
v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
switch (v1) {
case 'n':
v1 = '\n';
break;
case 'r':
v1 = '\n';
break;
case 't':
v1 = '\t';
break;
case 'u':
v1 = '\\' + v1;
}
}
com.newgrounds.encoders.JSON.cache.scratch += v1;
}
}
++com.newgrounds.encoders.JSON.cache.pos;
}
function _number() {
var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
var v2 = '01234567890.-';
if (!com.newgrounds.encoders.JSON.cache.mode) {
com.newgrounds.encoders.JSON.cache.mode = 'number';
com.newgrounds.encoders.JSON.cache.scratch = '';
}
if (v2.indexOf(v1) < 0) {
_setTargetValue(Number(com.newgrounds.encoders.JSON.cache.scratch));
_useParent();
} else {
com.newgrounds.encoders.JSON.cache.scratch += v1;
++com.newgrounds.encoders.JSON.cache.pos;
}
}
function _setTargetValue(newval) {
var v2 = (_getParent()).obj;
var v1 = com.newgrounds.encoders.JSON.cache.parents[com.newgrounds.encoders.JSON.cache.parents.length - 1];
v2[v1] = newval;
}
function _useParent() {
com.newgrounds.encoders.JSON.cache.mode = com.newgrounds.encoders.JSON.getType((_getParent()).obj);
com.newgrounds.encoders.JSON.cache.parents.pop();
}
function _getParent() {
var v2 = com.newgrounds.encoders.JSON.cache;
var v1 = 0;
while (v1 < com.newgrounds.encoders.JSON.cache.parents.length - 1) {
v2 = v2[com.newgrounds.encoders.JSON.cache.parents[v1]];
++v1;
}
return {'obj': v2, 'name': com.newgrounds.encoders.JSON.cache.parents[v1]};
}
function _getCurrent() {
var v2 = com.newgrounds.encoders.JSON.cache;
var v1 = 0;
while (v1 < com.newgrounds.encoders.JSON.cache.parents.length) {
v2 = v2[com.newgrounds.encoders.JSON.cache.parents[v1]];
++v1;
}
return {'obj': v2, 'name': com.newgrounds.encoders.JSON.cache.parents[v1]};
}
function _addParent(child) {
com.newgrounds.encoders.JSON.cache.parents.push(child);
}
function _addArrayKey() {
var v1 = (_getCurrent()).obj.length;
com.newgrounds.encoders.JSON.cache.parents.push(v1);
com.newgrounds.encoders.JSON.cache.mode = null;
}
if (com.newgrounds.encoders.JSON.cache.pos >= com.newgrounds.encoders.JSON.cache.arg.length) {
com.newgrounds.encoders.JSON.cache.complete = true;
return undefined;
} else {
if (com.newgrounds.encoders.JSON.cache.mode) {
('_' + com.newgrounds.encoders.JSON.cache.mode)();
} else {
var char = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
switch (char) {
case '{':
_object();
break;
case '[':
_array();
break;
case '"':
_string();
break;
case 'n':
_null();
break;
case 't':
_boolean();
break;
case 'f':
_boolean();
break;
default:
_number();
}
}
}
};
v1.chunk_encoder = function () {
if (com.newgrounds.encoders.JSON.cache.complete) {
return undefined;
}
var v2 = com.newgrounds.encoders.JSON.getType(com.newgrounds.encoders.JSON.cache.target);
switch (v2) {
case 'number':
com.newgrounds.encoders.JSON.cache.encoded += com.newgrounds.encoders.JSON.cache.target;
com.newgrounds.encoders.JSON.getParent();
break;
case 'string':
com.newgrounds.encoders.JSON.cache.encoded += '"' + (com.newgrounds.encoders.JSON.cache.target.split('"')).join('\\"') + '"';
com.newgrounds.encoders.JSON.getParent();
break;
case 'boolean':
com.newgrounds.encoders.JSON.cache.encoded += (com.newgrounds.encoders.JSON.cache.target == true) ? 'true' : 'false';
com.newgrounds.encoders.JSON.getParent();
break;
case 'null':
com.newgrounds.encoders.JSON.cache.encoded += 'null';
com.newgrounds.encoders.JSON.getParent();
break;
case 'array':
if (com.newgrounds.encoders.JSON.cache.target.length < 1) {
com.newgrounds.encoders.JSON.cache.encoded += ']';
com.newgrounds.encoders.JSON.getParent();
} else {
com.newgrounds.encoders.JSON.cache.parents.push(com.newgrounds.encoders.JSON.cache.target);
com.newgrounds.encoders.JSON.cache.target = com.newgrounds.encoders.JSON.cache.target[0];
if (com.newgrounds.encoders.JSON.getType(com.newgrounds.encoders.JSON.cache.target) == 'array') {
com.newgrounds.encoders.JSON.cache.encoded += '[';
} else {
if (com.newgrounds.encoders.JSON.getType(com.newgrounds.encoders.JSON.cache.target) == 'object') {
com.newgrounds.encoders.JSON.cache.encoded += '{';
}
}
}
break;
case 'object':
for (var v1 in com.newgrounds.encoders.JSON.cache.target) {
break;
}
if (v1 === undefined) {
com.newgrounds.encoders.JSON.cache.encoded += '}';
com.newgrounds.encoders.JSON.getParent();
} else {
com.newgrounds.encoders.JSON.cache.parents.push(com.newgrounds.encoders.JSON.cache.target);
com.newgrounds.encoders.JSON.cache.target = com.newgrounds.encoders.JSON.cache.target[v1];
com.newgrounds.encoders.JSON.cache.encoded += '"' + (v1.split('"')).join('\\"') + '":';
if (com.newgrounds.encoders.JSON.getType(com.newgrounds.encoders.JSON.cache.target) == 'array') {
com.newgrounds.encoders.JSON.cache.encoded += '[';
} else {
if (com.newgrounds.encoders.JSON.getType(com.newgrounds.encoders.JSON.cache.target) == 'object') {
com.newgrounds.encoders.JSON.cache.encoded += '{';
}
}
}
break;
default:
com.newgrounds.encoders.JSON.cache.encoded += 'null';
com.newgrounds.encoders.JSON.getParent();
}
};
v1.getParent = function () {
if (com.newgrounds.encoders.JSON.cache.parents.length > 0) {
var v1 = com.newgrounds.encoders.JSON.cache.parents.pop();
if (com.newgrounds.encoders.JSON.getType(v1) == 'array') {
v1.shift();
} else {
for (var v3 in v1) {
delete v1[v3];
break;
}
}
if (com.newgrounds.encoders.JSON.getType(v1) == 'object' or com.newgrounds.encoders.JSON.getType(v1) == 'array') {
for (var v2 in v1) {
break;
}
if (v2 !== undefined) {
com.newgrounds.encoders.JSON.cache.encoded += ',';
}
}
com.newgrounds.encoders.JSON.cache.target = v1;
} else {
com.newgrounds.encoders.JSON.cache.complete = true;
}
};
v1.encode_chunks = 20000;
v1.decode_chunks = 20000;
v1.busy = false;
ASSetPropFlags(com.newgrounds.encoders.JSON.prototype, null, 1);
}
#endinitclip
}
movieClip 135 __Packages.com.newgrounds.APIEventDispatcher {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.APIEventDispatcher) {
var v1 = function () {};
com.newgrounds.APIEventDispatcher = v1;
var v2 = v1.prototype;
v2.addEventListener = function (event, callback, target) {
if (!target) {
throw 'Attempted to create a listener without providing a target object.';
}
if (!this.listeners[event]) {
this.listeners[event] = [];
} else {
this.removeEventListener(event, target);
}
this.listeners[event].push({'target': target, 'callback': callback});
};
v2.removeEventListener = function (event, target) {
if (!target) {
throw 'Attempted to remove a listener without providing a target object.';
}
if (!this.listeners[event] || this.listeners[event].length < 1) {
return undefined;
}
var v4 = [];
var v2 = 0;
while (v2 < this.listeners[event].length) {
if (this.listeners[event][v2].target != target) {
v4.push(this.listeners[event][v2]);
}
++v2;
}
this.listeners[event] = v4;
};
v2.dispatchEvent = function (event) {
if (!this.hasEventListener(event.__get__type())) {
return false;
}
this.collectGarbage(event.__get__type());
var v2 = 0;
while (v2 < this.listeners[event.__get__type()].length) {
var v4 = this.listeners[event.__get__type()][v2].callback;
if (this.listeners[event.__get__type()][v2].target) {
var v5 = this.listeners[event.__get__type()][v2].target;
v4.call(v5, event);
} else {
v4(event);
}
++v2;
}
return true;
};
v2.hasEventListener = function (event) {
return this.listeners[event] != undefined && this.listeners[event].length > 0;
};
v2.collectGarbage = function (event) {
var v5 = [];
if (!this.hasEventListener) {
return undefined;
}
var v2 = 0;
while (v2 < this.listeners[event].length) {
var v4 = this.listeners[event][v2].target;
if (v4) {
v5.push(this.listeners[event][v2]);
}
++v2;
}
this.listeners[event] = v5;
};
v2.listeners = {};
ASSetPropFlags(com.newgrounds.APIEventDispatcher.prototype, null, 1);
}
#endinitclip
}
movieClip 136 __Packages.com.newgrounds.encoders.MD5 {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.encoders) {
_global.com.newgrounds.encoders = new Object();
}
if (!_global.com.newgrounds.encoders.MD5) {
var v1 = function () {};
com.newgrounds.encoders.MD5 = v1;
var v2 = v1.prototype;
v1.calculate = function (src) {
return com.newgrounds.encoders.MD5.hex_md5(src);
};
v1.hex_md5 = function (src) {
return com.newgrounds.encoders.MD5.binl2hex(com.newgrounds.encoders.MD5.core_md5(com.newgrounds.encoders.MD5.str2binl(src), src.length * 8));
};
v1.core_md5 = function (x, len) {
x[len >> 5] |= 128 << len % 32;
x[(len + 64 >>> 9 << 4) + 14] = len;
var v4 = 1732584193;
var v3 = -271733879;
var v2 = -1732584194;
var v1 = 271733878;
var v5 = 0;
while (v5 < x.length) {
var v10 = v4;
var v9 = v3;
var v8 = v2;
var v7 = v1;
v4 = com.newgrounds.encoders.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 0], 7, -680876936);
v1 = com.newgrounds.encoders.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 1], 12, -389564586);
v2 = com.newgrounds.encoders.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 2], 17, 606105819);
v3 = com.newgrounds.encoders.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 3], 22, -1044525330);
v4 = com.newgrounds.encoders.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 4], 7, -176418897);
v1 = com.newgrounds.encoders.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 5], 12, 1200080426);
v2 = com.newgrounds.encoders.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 6], 17, -1473231341);
v3 = com.newgrounds.encoders.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 7], 22, -45705983);
v4 = com.newgrounds.encoders.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 8], 7, 1770035416);
v1 = com.newgrounds.encoders.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 9], 12, -1958414417);
v2 = com.newgrounds.encoders.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 10], 17, -42063);
v3 = com.newgrounds.encoders.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 11], 22, -1990404162);
v4 = com.newgrounds.encoders.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 12], 7, 1804603682);
v1 = com.newgrounds.encoders.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 13], 12, -40341101);
v2 = com.newgrounds.encoders.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 14], 17, -1502002290);
v3 = com.newgrounds.encoders.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 15], 22, 1236535329);
v4 = com.newgrounds.encoders.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 1], 5, -165796510);
v1 = com.newgrounds.encoders.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 6], 9, -1069501632);
v2 = com.newgrounds.encoders.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 11], 14, 643717713);
v3 = com.newgrounds.encoders.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 0], 20, -373897302);
v4 = com.newgrounds.encoders.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 5], 5, -701558691);
v1 = com.newgrounds.encoders.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 10], 9, 38016083);
v2 = com.newgrounds.encoders.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 15], 14, -660478335);
v3 = com.newgrounds.encoders.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 4], 20, -405537848);
v4 = com.newgrounds.encoders.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 9], 5, 568446438);
v1 = com.newgrounds.encoders.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 14], 9, -1019803690);
v2 = com.newgrounds.encoders.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 3], 14, -187363961);
v3 = com.newgrounds.encoders.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 8], 20, 1163531501);
v4 = com.newgrounds.encoders.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 13], 5, -1444681467);
v1 = com.newgrounds.encoders.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 2], 9, -51403784);
v2 = com.newgrounds.encoders.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 7], 14, 1735328473);
v3 = com.newgrounds.encoders.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 12], 20, -1926607734);
v4 = com.newgrounds.encoders.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 5], 4, -378558);
v1 = com.newgrounds.encoders.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 8], 11, -2022574463);
v2 = com.newgrounds.encoders.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 11], 16, 1839030562);
v3 = com.newgrounds.encoders.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 14], 23, -35309556);
v4 = com.newgrounds.encoders.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 1], 4, -1530992060);
v1 = com.newgrounds.encoders.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 4], 11, 1272893353);
v2 = com.newgrounds.encoders.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 7], 16, -155497632);
v3 = com.newgrounds.encoders.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 10], 23, -1094730640);
v4 = com.newgrounds.encoders.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 13], 4, 681279174);
v1 = com.newgrounds.encoders.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 0], 11, -358537222);
v2 = com.newgrounds.encoders.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 3], 16, -722521979);
v3 = com.newgrounds.encoders.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 6], 23, 76029189);
v4 = com.newgrounds.encoders.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 9], 4, -640364487);
v1 = com.newgrounds.encoders.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 12], 11, -421815835);
v2 = com.newgrounds.encoders.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 15], 16, 530742520);
v3 = com.newgrounds.encoders.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 2], 23, -995338651);
v4 = com.newgrounds.encoders.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 0], 6, -198630844);
v1 = com.newgrounds.encoders.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 7], 10, 1126891415);
v2 = com.newgrounds.encoders.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 14], 15, -1416354905);
v3 = com.newgrounds.encoders.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 5], 21, -57434055);
v4 = com.newgrounds.encoders.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 12], 6, 1700485571);
v1 = com.newgrounds.encoders.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 3], 10, -1894986606);
v2 = com.newgrounds.encoders.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 10], 15, -1051523);
v3 = com.newgrounds.encoders.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 1], 21, -2054922799);
v4 = com.newgrounds.encoders.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 8], 6, 1873313359);
v1 = com.newgrounds.encoders.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 15], 10, -30611744);
v2 = com.newgrounds.encoders.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 6], 15, -1560198380);
v3 = com.newgrounds.encoders.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 13], 21, 1309151649);
v4 = com.newgrounds.encoders.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 4], 6, -145523070);
v1 = com.newgrounds.encoders.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 11], 10, -1120210379);
v2 = com.newgrounds.encoders.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 2], 15, 718787259);
v3 = com.newgrounds.encoders.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 9], 21, -343485551);
v4 = com.newgrounds.encoders.MD5.safe_add(v4, v10);
v3 = com.newgrounds.encoders.MD5.safe_add(v3, v9);
v2 = com.newgrounds.encoders.MD5.safe_add(v2, v8);
v1 = com.newgrounds.encoders.MD5.safe_add(v1, v7);
v5 += 16;
}
return new Array(v4, v3, v2, v1);
};
v1.md5_cmn = function (q, a, b, x, s, t) {
return com.newgrounds.encoders.MD5.safe_add(com.newgrounds.encoders.MD5.bit_rol(com.newgrounds.encoders.MD5.safe_add(com.newgrounds.encoders.MD5.safe_add(a, q), com.newgrounds.encoders.MD5.safe_add(x, t)), s), b);
};
v1.md5_ff = function (a, b, c, d, x, s, t) {
return com.newgrounds.encoders.MD5.md5_cmn(b & c | ~b & d, a, b, x, s, t);
};
v1.md5_gg = function (a, b, c, d, x, s, t) {
return com.newgrounds.encoders.MD5.md5_cmn(b & d | c & ~d, a, b, x, s, t);
};
v1.md5_hh = function (a, b, c, d, x, s, t) {
return com.newgrounds.encoders.MD5.md5_cmn(b ^ c ^ d, a, b, x, s, t);
};
v1.md5_ii = function (a, b, c, d, x, s, t) {
return com.newgrounds.encoders.MD5.md5_cmn(c ^ (b | ~d), a, b, x, s, t);
};
v1.bit_rol = function (num, cnt) {
return num << cnt | num >>> 32 - cnt;
};
v1.safe_add = function (x, y) {
var v1 = (x & 65535) + (y & 65535);
var v2 = (x >> 16) + (y >> 16) + (v1 >> 16);
return v2 << 16 | v1 & 65535;
};
v1.str2binl = function (str) {
var v3 = new Array();
var v4 = 255;
var v1 = 0;
while (v1 < str.length * 8) {
v3[v1 >> 5] |= (str.charCodeAt(v1 / 8) & v4) << v1 % 32;
v1 += 8;
}
return v3;
};
v1.binl2hex = function (binarray) {
var v4 = new String('');
var v3 = new String('0123456789abcdef');
var v1 = 0;
while (v1 < binarray.length * 4) {
v4 += v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 + 4 & 15) + v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 & 15);
++v1;
}
return v4;
};
ASSetPropFlags(com.newgrounds.encoders.MD5.prototype, null, 1);
}
#endinitclip
}
frame 2 {
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
this.loadBar._width = getPercent * 640;
this.loadText = Math.round(getPercent * 100) + ' %';
if (bytes_loaded == bytes_total) {
_root.gotoAndStop(3);
}
gotoAndPlay(1);
}
movieClip 222 {
frame 1 {
stopAllSounds();
}
frame 2 {
stopAllSounds();
}
}
frame 3 {
stop();
}
button 227 {
on (release) {
_root.gotoAndPlay(5);
}
}
button 228 {
on (release) {
_root.play();
}
}
movieClip 229 {
frame 34 {
stop();
}
}
button 232 {
on (release) {
_root.play();
}
}
frame 5 {
mutesound = new Sound();
mutesound.attachSound('mutefx');
mutesound.start(0, 99);
_root.masterbg = 1;
_root.masterfx = 1;
var savefile = SharedObject.getLocal('zombo');
_root.highkillcount = savefile.data.highkillcount;
_root.supersaiyan = savefile.data.supersaiyan;
_root.gotutorial = savefile.data.gotutorial;
_root.ptutorial = savefile.data.ptutorial;
_root.kctutorial = savefile.data.kctutorial;
_root.lowgore = savefile.data.lowgore;
_root.herolevel = savefile.data.herolevel;
_root.headequip = savefile.data.headequip;
_root.heroexp = savefile.data.heroexp;
_root.expgained = savefile.data.expgained;
_root.expnext = savefile.data.expnext;
_root.npistol = savefile.data.npistol;
_root.nsniper = savefile.data.nsniper;
_root.nshotgun = savefile.data.nshotgun;
_root.nrifle = savefile.data.nrifle;
_root.nminigun = savefile.data.nminigun;
_root.nriot = savefile.data.nriot;
_root.nflame = savefile.data.nflame;
_root.nmfg = savefile.data.nmfg;
_root.ngod = savefile.data.ngod;
_root.plusammo1 = savefile.data.plusammo1;
_root.plusammo2 = savefile.data.plusammo2;
_root.plusammo3 = savefile.data.plusammo3;
_root.plusammo4 = savefile.data.plusammo4;
_root.plusammo5 = savefile.data.plusammo5;
_root.plusammo6 = savefile.data.plusammo6;
_root.wunlock1 = savefile.data.wunlock1;
_root.wunlock2 = savefile.data.wunlock2;
_root.wunlock3 = savefile.data.wunlock3;
_root.wunlock4 = savefile.data.wunlock4;
_root.wunlock5 = savefile.data.wunlock5;
_root.achtotal = savefile.data.achtotal;
_root.achievement1 = savefile.data.achievement1;
_root.achievement2 = savefile.data.achievement2;
_root.achievement3 = savefile.data.achievement3;
_root.achievement4 = savefile.data.achievement4;
_root.achievement5 = savefile.data.achievement5;
_root.achievement6 = savefile.data.achievement6;
_root.achievement7 = savefile.data.achievement7;
_root.achievement8 = savefile.data.achievement8;
_root.achievement9 = savefile.data.achievement9;
_root.achievement10 = savefile.data.achievement10;
_root.achievement11 = savefile.data.achievement11;
_root.achievement12 = savefile.data.achievement12;
_root.achievement13 = savefile.data.achievement13;
_root.achievement14 = savefile.data.achievement14;
_root.achievement15 = savefile.data.achievement15;
_root.achievement16 = savefile.data.achievement16;
_root.achievement17 = savefile.data.achievement17;
_root.achievement18 = savefile.data.achievement18;
_root.achievement19 = savefile.data.achievement19;
_root.achievement20 = savefile.data.achievement20;
}
button 233 {
on (release) {
getURL('http://www.armorgames.com/', _blank);
}
}
movieClip 237 {
}
movieClip 243 {
}
movieClip 246 {
frame 1 {
_root.stop();
gotoAndPlay(2);
}
frame 183 {
_root.nextFrame();
}
}
movieClip 248 {
}
movieClip 250 {
}
movieClip 251 {
}
button 252 {
on (release) {
getURL('http://www.ironzilla.com/', _blank);
}
}
movieClip 255 {
frame 1 {
_root.stop();
}
frame 2 {
_root.menusound = new Sound();
_root.menusound.attachSound('menubgsfx');
_root.menusound.start(0, 99);
}
frame 20 {
soundbg2 = new Sound();
soundbg2.attachSound('rankupsfx');
soundbg2.start(0, 1);
}
frame 136 {
_root.gotoAndStop(20);
}
}
frame 20 {
stop();
}
movieClip 258 {
}
movieClip 260 {
frame 53 {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('metalhit');
soundbg2.start(0, 1);
}
}
frame 60 {
stop();
}
}
movieClip 263 {
}
button 283 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 286 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
getURL('http://www.armorgames.com/', _blank);
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 287 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
gotoAndPlay(156);
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 288 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
Playtomic.Log.CustomMetric('Options');
gotoAndPlay(121);
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 289 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
gotoAndPlay(79);
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 302 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
gotoAndPlay(94);
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 303 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
if (_root.savefile.data.herolevel == undefined) {
_root.ehub.desc.gotoAndStop(4);
} else {
_root.gotoAndPlay(49);
}
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
if (_root.savefile.data.herolevel == undefined) {
_root.ehub.desc.gotoAndStop(1);
} else {
_root.ehub.desc.gotoAndStop(3);
}
}
on (rollOut) {
_root.ehub.desc.gotoAndStop(1);
}
}
button 304 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
_root.highkillcount = 0;
_root.supersaiyan = 0;
_root.gotutorial = 1;
_root.ptutorial = 1;
_root.kctutorial = 1;
_root.lowgore = 1;
_root.herolevel = 1;
_root.headequip = 1;
_root.heroexp = 0;
_root.expgained = 1;
_root.expnext = 50;
_root.plusammo1 = 0;
_root.plusammo2 = 0;
_root.plusammo3 = 0;
_root.plusammo4 = 0;
_root.plusammo5 = 0;
_root.plusammo6 = 0;
_root.npistol = 1;
_root.nsniper = 1;
_root.nshotgun = 1;
_root.narifle = 1;
_root.nminigun = 1;
_root.nriot = 1;
_root.nflame = 1;
_root.nmfg = 1;
_root.ngod = 1;
_root.wunlock1 = 0;
_root.achind = 0;
_root.achtotal = 0;
_root.achievement1 = 0;
_root.achievement2 = 0;
_root.achievement3 = 0;
_root.achievement4 = 0;
_root.achievement5 = 0;
_root.achievement6 = 0;
_root.achievement7 = 0;
_root.achievement8 = 0;
_root.achievement9 = 0;
_root.achievement10 = 0;
_root.achievement11 = 0;
_root.achievement12 = 0;
_root.achievement13 = 0;
_root.achievement14 = 0;
_root.achievement15 = 0;
_root.achievement16 = 0;
_root.achievement17 = 0;
_root.achievement18 = 0;
_root.achievement19 = 0;
_root.achievement20 = 0;
_root.totalcrates = 0;
_root.zombieskilled = 0;
_root.totaldeaths = 0;
savefile.clear();
_root.savefile.data.highkillcount = 0;
_root.savefile.data.supersaiyan = 0;
_root.savefile.data.masterbg = 1;
_root.savefile.data.masterfx = 1;
_root.savefile.data.gotutorial = 1;
_root.savefile.data.ptutorial = 1;
_root.savefile.data.kctutorial = 1;
_root.savefile.data.lowgore = 1;
_root.savefile.data.herolevel = 1;
_root.savefile.data.headequip = 1;
_root.savefile.data.heroexp = 0;
_root.savefile.data.expgained = 1;
_root.savefile.data.expnext = 50;
_root.savefile.data.npistol = 1;
_root.savefile.data.nsniper = 1;
_root.savefile.data.nshotgun = 1;
_root.savefile.data.nrifle = 1;
_root.savefile.data.nminigun = 1;
_root.savefile.data.nriot = 1;
_root.savefile.data.nflame = 1;
_root.savefile.data.nmfg = 1;
_root.savefile.data.ngod = 1;
_root.savefile.data.plusammo1 = 0;
_root.savefile.data.plusammo2 = 0;
_root.savefile.data.plusammo3 = 0;
_root.savefile.data.plusammo4 = 0;
_root.savefile.data.plusammo5 = 0;
_root.savefile.data.plusammo6 = 0;
_root.savefile.data.wunlock1 = 0;
_root.savefile.data.wunlock2 = 0;
_root.savefile.data.wunlock3 = 0;
_root.savefile.data.wunlock4 = 0;
_root.savefile.data.wunlock5 = 0;
_root.savefile.data.achtotal = 0;
_root.savefile.data.achievement1 = 0;
_root.savefile.data.achievement2 = 0;
_root.savefile.data.achievement3 = 0;
_root.savefile.data.achievement4 = 0;
_root.savefile.data.achievement5 = 0;
_root.savefile.data.achievement6 = 0;
_root.savefile.data.achievement7 = 0;
_root.savefile.data.achievement8 = 0;
_root.savefile.data.achievement9 = 0;
_root.savefile.data.achievement10 = 0;
_root.savefile.data.achievement11 = 0;
_root.savefile.data.achievement12 = 0;
_root.savefile.data.achievement13 = 0;
_root.savefile.data.achievement14 = 0;
_root.savefile.data.achievement15 = 0;
_root.savefile.data.achievement16 = 0;
_root.savefile.data.achievement17 = 0;
_root.savefile.data.achievement18 = 0;
_root.savefile.data.achievement19 = 0;
_root.savefile.data.achievement20 = 0;
_root.gotoAndStop(30);
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
if (_root.savefile.data.herolevel == undefined) {
_root.ehub.desc.gotoAndStop(1);
} else {
_root.ehub.desc.gotoAndStop(2);
}
}
on (rollOut) {
_root.ehub.desc.gotoAndStop(1);
}
}
movieClip 312 {
frame 1 {
stop();
}
}
// unknown tag 88 length 63
button 326 {
on (release) {
_root.masterfx = 1;
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 327 {
on (release) {
if (_root.masterbg == 0) {
_root.masterbg = 1;
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
if (_root.masterbg == 1) {
_root.menusound = new Sound();
_root.menusound.attachSound('menubgsfx');
_root.menusound.start(0, 99);
}
}
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 328 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
_root.nobg = 1;
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 333 {
on (release) {
_root.masterfx = 0;
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 334 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
_root.menusound.stop('menubgsfx');
_root.masterbg = 0;
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 335 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
_root.nobg = 0;
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 336 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
_root.lowgore = 0;
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 337 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
_root.lowgore = 1;
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
movieClip 339 {
frame 1 {
stop();
}
}
movieClip 340 {
frame 1 {
stop();
}
}
button 341 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
_quality = 'MEDIUM';
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 342 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
_quality = 'HIGH';
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 343 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
_quality = 'LOW';
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
movieClip 348 {
}
movieClip 350 {
}
movieClip 354 {
}
movieClip 356 {
frame 1 {
_root.kstreakup = 3;
}
frame 40 {
_root.kstreakup = 0;
stop();
}
}
movieClip 358 {
frame 1 {
_root.kstreakup = 2;
}
frame 40 {
_root.kstreakup = 0;
stop();
}
}
movieClip 361 {
}
movieClip 362 {
}
movieClip 363 {
frame 1 {
}
instance of movieClip 339 {
onClipEvent (enterFrame) {
if (_root.masterfx == 1) {
this.gotoAndStop(1);
}
if (_root.masterfx == 0) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 339 {
onClipEvent (enterFrame) {
if (_root.masterbg == 1) {
this.gotoAndStop(1);
}
if (_root.masterbg == 0) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 339 {
onClipEvent (enterFrame) {
if (_root.nobg == 1) {
this.gotoAndStop(1);
}
if (_root.nobg == 0) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 340 {
onClipEvent (enterFrame) {
if (_quality == 'LOW') {
this.gotoAndStop(1);
}
if (_quality == 'MEDIUM') {
this.gotoAndStop(2);
}
if (_quality == 'HIGH') {
this.gotoAndStop(3);
}
}
}
instance of movieClip 339 {
onClipEvent (enterFrame) {
if (_root.lowgore == 1) {
this.gotoAndStop(2);
}
if (_root.lowgore == 0) {
this.gotoAndStop(1);
}
}
}
}
movieClip 365 {
}
movieClip 367 {
}
movieClip 368 {
frame 1 {
function scrollThumbs() {
var v2 = -this._parent.scrollbar._y * ((this._height - this._parent.scrollbar._height) / (this._parent.scrollbarBG._height - this._parent.scrollbar._height) - 1);
this.Y = (v2 - this._y) * 0.2;
this._y += this.Y;
if (Math.abs(v2 - this._y) < 1 && !dragging) {
delete this.onEnterFrame;
}
}
txt.setMask(mask);
scrollbar.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse) && txt._height > mask._height) {
this.startDrag(false, scrollbarBG._x, scrollbarBG._y, scrollbarBG._x, scrollbarBG._height - this._height);
txt.onEnterFrame = scrollThumbs;
dragging = true;
}
};
scrollbar.onMouseUp = function () {
stopDrag();
dragging = false;
delete this.onEnterFrame;
};
}
}
movieClip 369 {
}
button 370 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
gotoAndPlay(135);
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 371 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
gotoAndPlay(121);
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
movieClip 384 {
}
button 385 {
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
getURL('https://facebook.com/IronZilla', _blank);
}
}
movieClip 388 {
}
button 389 {
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
getURL('http://twitter.com/home?status=Playing Zombocalypse. Join the fight for survival! +%23ironzilla', _blank);
}
}
movieClip 392 {
}
button 393 {
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
getURL('http://www.youtube.com/user/Ironzilla1', _blank);
}
}
button 394 {
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
getURL('https://www.facebook.com/ArmorGames', _blank);
}
}
button 395 {
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
getURL('http://twitter.com/armorgames', _blank);
}
}
button 396 {
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
getURL('http://www.youtube.com/user/armorgames', _blank);
}
}
movieClip 399 {
}
button 401 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
getURL('http://www.ironzilla.com/', _blank);
}
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
movieClip 402 {
}
button 405 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
getURL('http://www.armorgames.com/', _blank);
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
movieClip 407 {
frame 1 {
}
}
movieClip 408 {
frame 1 {
function scrollThumbs() {
var v2 = -this._parent.scrollbar._y * ((this._height - this._parent.scrollbar._height) / (this._parent.scrollbarBG._height - this._parent.scrollbar._height) - 1);
this.Y = (v2 - this._y) * 0.2;
this._y += this.Y;
if (Math.abs(v2 - this._y) < 1 && !dragging) {
delete this.onEnterFrame;
}
}
txt.setMask(mask);
scrollbar.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse) && txt._height > mask._height) {
this.startDrag(false, scrollbarBG._x, scrollbarBG._y, scrollbarBG._x, scrollbarBG._height - this._height);
txt.onEnterFrame = scrollThumbs;
dragging = true;
}
};
scrollbar.onMouseUp = function () {
stopDrag();
dragging = false;
delete this.onEnterFrame;
};
}
}
movieClip 409 {
}
button 410 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
gotoAndPlay(171);
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
movieClip 411 {
frame 78 {
stop();
}
frame 93 {
stop();
}
instance desc of movieClip 312 {
onClipEvent (enterFrame) {
achpercent = 'Achievements: ' + _root.achtotal * 5 + ' %';
exp = 'Exp: ' + _root.heroexp;
erank = 'Rank ' + _root.herolevel + ' - ' + _root.rank;
if (_root.herolevel == 1) {
_root.rank = 'Apprentice';
}
if (_root.herolevel == 2) {
_root.rank = 'Recruit';
}
if (_root.herolevel == 3) {
_root.rank = 'Rookie';
}
if (_root.herolevel == 4) {
_root.rank = 'Private';
}
if (_root.herolevel == 5) {
_root.rank = 'Private Grade l';
}
if (_root.herolevel == 6) {
_root.rank = 'Sergeant';
}
if (_root.herolevel == 7) {
_root.rank = 'Sergeant Grade l';
}
if (_root.herolevel == 8) {
_root.rank = 'Captain';
}
if (_root.herolevel == 9) {
_root.rank = 'Captain Grade l';
}
if (_root.herolevel == 10) {
_root.rank = 'Major';
}
if (_root.herolevel == 11) {
_root.rank = 'Major Grade l';
}
if (_root.herolevel == 12) {
_root.rank = 'Major Grade ll';
}
if (_root.herolevel == 13) {
_root.rank = 'Brigadier';
}
if (_root.herolevel == 14) {
_root.rank = 'Brigadier Grade l';
}
if (_root.herolevel == 15) {
_root.rank = 'Brigadier Grade ll';
}
if (_root.herolevel == 16) {
_root.rank = 'Commander';
}
if (_root.herolevel == 17) {
_root.rank = 'Master Commander';
}
if (_root.herolevel == 18) {
_root.rank = 'Elite';
}
if (_root.herolevel == 19) {
_root.rank = 'Master Elite';
}
if (_root.herolevel == 20) {
_root.rank = 'Legend';
}
if (_root.herolevel == 21) {
_root.rank = 'Mythic';
}
if (_root.herolevel == 22) {
_root.rank = 'Ascension';
}
if (_root.herolevel >= 22) {
if (_root.herolevel < 32) {
_root.rank = 'Ascension +';
}
}
if (_root.herolevel >= 32) {
_root.rank = 'Haxor';
}
}
}
frame 120 {
gotoAndStop(78);
}
frame 134 {
stop();
}
frame 155 {
gotoAndStop(78);
}
frame 170 {
stop();
}
frame 192 {
gotoAndStop(78);
}
}
button 413 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
getURL('http://www.ironzilla.com/', _blank);
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
movieClip 418 {
frame 40 {
stop();
}
}
button 420 {
on (release) {
Playtomic.Log.CustomMetric('IntroSkip');
gotoAndPlay(650);
}
}
movieClip 468 {
}
movieClip 470 {
}
movieClip 472 {
}
movieClip 473 {
frame 5 {
stopAllSounds();
if (_root.masterbg == 1) {
gsoundbg = new Sound();
gsoundbg.attachSound('introbg');
gsoundbg.start(0, 1);
}
}
frame 39 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 41 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 43 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 45 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 47 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 49 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 51 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 53 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 55 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 57 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 59 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 61 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 63 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 65 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 67 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 69 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 71 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 113 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 115 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 117 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 119 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 121 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 123 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 125 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 127 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 129 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 131 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 133 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 135 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 137 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 139 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 141 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 143 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 145 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 147 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 149 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 198 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 200 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 202 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 204 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 206 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 208 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 210 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 212 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 214 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('keystroke');
keystroke.start(0, 1);
}
}
frame 339 {
if (_root.masterbg == 1) {
keystroke4 = new Sound();
keystroke4.attachSound('heartbeat');
keystroke4.start(0, 99);
}
}
frame 339 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('timpact');
keystroke.start(0, 1);
}
if (_root.masterbg == 1) {
keystroke2 = new Sound();
keystroke2.attachSound('mainbg');
keystroke2.start(0, 1);
}
}
frame 439 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('timpact');
keystroke.start(0, 1);
}
if (_root.masterbg == 1) {
keystroke3 = new Sound();
keystroke3.attachSound('zambient');
keystroke3.start(0, 1);
}
}
frame 548 {
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('timpact');
keystroke.start(0, 1);
}
}
frame 650 {
stopAllSounds();
if (_root.masterbg == 1) {
keystroke = new Sound();
keystroke.attachSound('timpact');
keystroke.start(0, 1);
}
}
frame 746 {
_root.gotoAndPlay(48);
}
}
frame 48 {
_root.ptutorial = 1;
_root.kctutorial = 1;
_root.lowgore = 0;
_root.highkillcount = 0;
_root.herolevel = 1;
_root.headequip = 1;
_root.heroexp = 0;
_root.expgained = 1;
_root.expnext = 50;
_root.plusammo1 = 0;
_root.plusammo2 = 0;
_root.plusammo3 = 0;
_root.plusammo4 = 0;
_root.plusammo5 = 0;
_root.plusammo6 = 0;
_root.npistol = 1;
_root.nsniper = 1;
_root.nshotgun = 1;
_root.narifle = 1;
_root.nminigun = 1;
_root.nriot = 1;
_root.nflame = 1;
_root.nmfg = 1;
_root.ngod = 1;
_root.wunlock1 = 0;
_root.achind = 0;
_root.achtotal = 0;
_root.achievement1 = 0;
_root.achievement2 = 0;
_root.achievement3 = 0;
_root.achievement4 = 0;
_root.achievement5 = 0;
_root.achievement6 = 0;
_root.achievement7 = 0;
_root.achievement8 = 0;
_root.achievement9 = 0;
_root.achievement10 = 0;
_root.achievement11 = 0;
_root.achievement12 = 0;
_root.achievement13 = 0;
_root.achievement14 = 0;
_root.achievement15 = 0;
_root.achievement16 = 0;
_root.achievement17 = 0;
_root.achievement18 = 0;
_root.achievement19 = 0;
_root.achievement20 = 0;
_root.totalcrates = 0;
_root.zombieskilled = 0;
_root.totaldeaths = 0;
savefile.data.highkillcount = _root.highkillcount;
savefile.data.supersaiyan = _root.supersaiyan;
savefile.data.masterbg = _root.masterbg;
savefile.data.masterfx = _root.masterfx;
savefile.data.ptutorial = _root.ptutorial;
savefile.data.kctutorial = _root.kctutorial;
savefile.data.lowgore = _root.lowgore;
savefile.data.herolevel = _root.herolevel;
savefile.data.headequip = _root.headequip;
savefile.data.heroexp = _root.heroexp;
savefile.data.expgained = _root.expgained;
savefile.data.expnext = _root.expnext;
savefile.data.npistol = _root.npistol;
savefile.data.nsniper = _root.nsniper;
savefile.data.nshotgun = _root.nshotgun;
savefile.data.nrifle = _root.nrifle;
savefile.data.nminigun = _root.nminigun;
savefile.data.nriot = _root.nriot;
savefile.data.nflame = _root.nflame;
savefile.data.nmfg = _root.nmfg;
savefile.data.ngod = _root.ngod;
savefile.data.plusammo1 = _root.plusammo1;
savefile.data.plusammo2 = _root.plusammo2;
savefile.data.plusammo3 = _root.plusammo3;
savefile.data.plusammo4 = _root.plusammo4;
savefile.data.plusammo5 = _root.plusammo5;
savefile.data.plusammo6 = _root.plusammo6;
savefile.data.wunlock1 = _root.wunlock1;
savefile.data.wunlock2 = _root.wunlock2;
savefile.data.wunlock3 = _root.wunlock3;
savefile.data.wunlock4 = _root.wunlock4;
savefile.data.wunlock5 = _root.wunlock5;
savefile.data.achtotal = _root.achtotal;
savefile.data.achievement1 = _root.achievement1;
savefile.data.achievement2 = _root.achievement2;
savefile.data.achievement3 = _root.achievement3;
savefile.data.achievement4 = _root.achievement4;
savefile.data.achievement5 = _root.achievement5;
savefile.data.achievement6 = _root.achievement6;
savefile.data.achievement7 = _root.achievement7;
savefile.data.achievement8 = _root.achievement8;
savefile.data.achievement9 = _root.achievement9;
savefile.data.achievement10 = _root.achievement10;
savefile.data.achievement11 = _root.achievement11;
savefile.data.achievement12 = _root.achievement12;
savefile.data.achievement13 = _root.achievement13;
savefile.data.achievement14 = _root.achievement14;
savefile.data.achievement15 = _root.achievement15;
savefile.data.achievement16 = _root.achievement16;
savefile.data.achievement17 = _root.achievement17;
savefile.data.achievement18 = _root.achievement18;
savefile.data.achievement19 = _root.achievement19;
savefile.data.achievement20 = _root.achievement20;
}
frame 49 {
_root.newgame = 1;
stopAllSounds();
_root.mainhud.removeMovieClip();
_root.mainhud.swapDepths(-1);
_root.ssbonus = 0;
_root.valkyrie = 0;
_root.pantheon = 0;
_root.rambo = 0;
_root.adrenaline = 0;
_root.iamlegend = 0;
_root.doom = 0;
_root.killcount = 0;
_root.killstreak = 0;
_root.killbonus = 0;
_root.tkillbonus = 0;
_root.dkillbonus = 0;
_root.wchange = 0;
_root.gamepause = 0;
stopAllSounds();
if (_root.masterbg == 1) {
_root.gsoundbg = new Sound();
_root.gsoundbg.attachSound('mainbg');
_root.gsoundbg.start(0, 99);
}
if (_root.masterbg == 1) {
_root.gsoundbg2 = new Sound();
_root.gsoundbg2.attachSound('zambient');
_root.gsoundbg2.start(0, 99);
}
_root.achdmgtaken = 0;
_root.roundcrates = 0;
_root.powerused = 0;
_root.allyused = 0;
_root.neardeath = 0;
_root.clutchlife = 0;
_root.suicideb = 0;
_root.ndcount = 0;
_root.snatchercount = 0;
savefile.data.highkillcount = _root.highkillcount;
savefile.data.masterbg = _root.masterbg;
savefile.data.masterfx = _root.masterfx;
savefile.data.ptutorial = _root.ptutorial;
savefile.data.gotutorial = _root.gotutorial;
savefile.data.kctutorial = _root.kctutorial;
savefile.data.lowgore = _root.lowgore;
savefile.data.herolevel = _root.herolevel;
savefile.data.headequip = _root.headequip;
savefile.data.heroexp = _root.heroexp;
savefile.data.expgained = _root.expgained;
savefile.data.expnext = _root.expnext;
savefile.data.npistol = _root.npistol;
savefile.data.nsniper = _root.nsniper;
savefile.data.nshotgun = _root.nshotgun;
savefile.data.nrifle = _root.nrifle;
savefile.data.nminigun = _root.nminigun;
savefile.data.nriot = _root.nriot;
savefile.data.nflame = _root.nflame;
savefile.data.nmfg = _root.nmfg;
savefile.data.ngod = _root.ngod;
savefile.data.plusammo1 = _root.plusammo1;
savefile.data.plusammo2 = _root.plusammo2;
savefile.data.plusammo3 = _root.plusammo3;
savefile.data.plusammo4 = _root.plusammo4;
savefile.data.plusammo5 = _root.plusammo5;
savefile.data.plusammo6 = _root.plusammo6;
savefile.data.wunlock1 = _root.wunlock1;
savefile.data.wunlock2 = _root.wunlock2;
savefile.data.wunlock3 = _root.wunlock3;
savefile.data.wunlock4 = _root.wunlock4;
savefile.data.wunlock5 = _root.wunlock5;
savefile.data.achtotal = _root.achtotal;
savefile.data.achievement1 = _root.achievement1;
savefile.data.achievement2 = _root.achievement2;
savefile.data.achievement3 = _root.achievement3;
savefile.data.achievement4 = _root.achievement4;
savefile.data.achievement5 = _root.achievement5;
savefile.data.achievement6 = _root.achievement6;
savefile.data.achievement7 = _root.achievement7;
savefile.data.achievement8 = _root.achievement8;
savefile.data.achievement9 = _root.achievement9;
savefile.data.achievement10 = _root.achievement10;
savefile.data.achievement11 = _root.achievement11;
savefile.data.achievement12 = _root.achievement12;
savefile.data.achievement13 = _root.achievement13;
savefile.data.achievement14 = _root.achievement14;
savefile.data.achievement15 = _root.achievement15;
savefile.data.achievement16 = _root.achievement16;
savefile.data.achievement17 = _root.achievement17;
savefile.data.achievement18 = _root.achievement18;
savefile.data.achievement19 = _root.achievement19;
savefile.data.achievement20 = _root.achievement20;
savefile.flush();
}
frame 50 {
_root.goldenmachete = 0;
_root.doubledamage = 0;
_root.dmgmulti = 1;
_root.wave = 1;
_root.weaponequip = 1;
_root.totaldeaths = 0;
_root.wattack = 0;
_root.hitbox1speed = 0;
_root.hitbox2speed = 0;
_root.hitbox3speed = 0;
_root.hitbox4speed = 0;
_root.pistoldual = 0;
_root.screenshake = 0;
_root.bshake = 0;
_root.nobg = 0;
_root.hshake = 0;
_root.walking = 0;
_root.sprinting = 0;
_root.kstreakup = 0;
_root.supporton = 0;
_root.allysupport1 = 0;
_root.allysupport2 = 0;
_root.allysupport3 = 0;
_root.difficulty = 1;
_root.walkerlife = 1.5;
_root.runnerlife = 0.2;
_root.snatcherlife = 20;
_root.ammocount = 0;
_root.tammocount = 0;
_root.halive = 1;
_root.hlife = 100;
_root.htakingdmg = 0;
_root.bcount = 1;
_root.smokecount = 1;
_root.gcount = 1;
_root.newgame = 0;
_root.playpowerup1 = 0;
stop();
}
movieClip 476 {
}
movieClip 478 {
}
movieClip 480 {
}
movieClip 483 {
}
movieClip 485 {
}
movieClip 488 {
}
movieClip 490 {
}
movieClip 493 {
}
movieClip 496 {
}
instance of movieClip 496 {
onClipEvent (enterFrame) {
if (hitTest(_root.hero._x, _y) == true) {
if (_root.sprinting == 1) {
_root.hero._x -= 10;
} else {
_root.hero._x -= 7;
}
}
}
}
instance of movieClip 496 {
onClipEvent (enterFrame) {
if (hitTest(_root.hero._x, _y) == true) {
if (_root.sprinting == 1) {
_root.hero._x += 10;
} else {
_root.hero._x += 7;
}
}
}
}
movieClip 499 {
}
movieClip 501 {
}
movieClip 505 {
}
movieClip 509 {
frame 2 {
_root.wattack = 1;
_root.hitbox2._y = _root.hero._y;
_root.hitbox2._x = _root.hero._x;
_root.hitbox2speed = _root.heroscale * 10;
if (_root.masterfx == 1) {
gunsoundfx = new Sound();
gunsoundfx.attachSound('pistolshot');
gunsoundfx.start(0, 1);
}
_root.ammocount -= 1;
}
frame 7 {
_root.hitbox1._y = 99999;
_root.hitbox1._x = 99999;
if (_root.ammocount == 0) {
_root.weaponequip = 1;
}
}
frame 11 {
_root.wattack = 0;
gotoAndStop(1);
}
}
movieClip 510 {
frame 1 {
stop();
}
instance of movieClip 509 {
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (Key.isDown(32)) {
if (_root.wattack == 0) {
this.play();
}
}
}
}
}
}
movieClip 511 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 510 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
this.gotoAndStop(2);
}
}
}
}
movieClip 518 {
frame 2 {
_root.wattack = 1;
shoot = Math.floor(Math.random() * 3) + 1;
if (shoot == 1) {
play();
}
if (shoot == 2) {
gotoAndPlay(16);
}
if (shoot == 3) {
gotoAndPlay(31);
}
}
frame 5 {
playslash = Math.floor(Math.random() * 2) + 1;
if (_root.masterfx == 1) {
if (playslash == 1) {
slashfx = new Sound();
slashfx.attachSound('slashfx1');
slashfx.start(0, 1);
}
if (playslash == 2) {
slashfx = new Sound();
slashfx.attachSound('slashfx2');
slashfx.start(0, 1);
}
}
}
frame 7 {
_root.hitbox4._y = _root.hero._y;
_root.hitbox4._x = _root.hero._x;
_root.hitbox4speed = _root.heroscale * 9;
}
frame 8 {
_root.hitbox4._y = 99999;
_root.hitbox4._x = 99999;
_root.hitbox4speed = 0;
}
frame 15 {
_root.wattack = 0;
gotoAndStop(1);
}
frame 19 {
playslash = Math.floor(Math.random() * 2) + 1;
if (_root.masterfx == 1) {
if (playslash == 1) {
slashfx = new Sound();
slashfx.attachSound('slashfx1');
slashfx.start(0, 1);
}
if (playslash == 2) {
slashfx = new Sound();
slashfx.attachSound('slashfx2');
slashfx.start(0, 1);
}
}
}
frame 21 {
_root.hitbox4._y = _root.hero._y;
_root.hitbox4._x = _root.hero._x;
_root.hitbox4speed = _root.heroscale * 9;
}
frame 22 {
_root.hitbox4._y = 99999;
_root.hitbox4._x = 99999;
_root.hitbox4speed = 0;
}
frame 30 {
_root.wattack = 0;
gotoAndStop(1);
}
frame 35 {
playslash = Math.floor(Math.random() * 2) + 1;
if (_root.masterfx == 1) {
if (playslash == 1) {
slashfx = new Sound();
slashfx.attachSound('slashfx1');
slashfx.start(0, 1);
}
if (playslash == 2) {
slashfx = new Sound();
slashfx.attachSound('slashfx2');
slashfx.start(0, 1);
}
}
}
frame 37 {
_root.hitbox4._y = _root.hero._y;
_root.hitbox4._x = _root.hero._x;
_root.hitbox4speed = _root.heroscale * 9;
}
frame 38 {
_root.hitbox4._y = 99999;
_root.hitbox4._x = 99999;
_root.hitbox4speed = 0;
}
frame 45 {
_root.wattack = 0;
gotoAndStop(1);
}
}
movieClip 519 {
frame 1 {
stop();
}
instance of movieClip 518 {
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (Key.isDown(32)) {
if (_root.wattack == 0) {
this.play();
}
}
}
}
}
}
movieClip 520 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 519 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
this.gotoAndStop(2);
}
}
}
}
movieClip 522 {
}
movieClip 524 {
}
movieClip 528 {
frame 2 {
_root.wattack = 1;
shoot = Math.floor(Math.random() * 3) + 1;
if (shoot == 1) {
play();
}
if (shoot == 2) {
gotoAndPlay(12);
}
if (shoot == 3) {
gotoAndPlay(21);
}
}
frame 6 {
playslash = Math.floor(Math.random() * 2) + 1;
if (_root.masterfx == 1) {
if (playslash == 1) {
slashfx = new Sound();
slashfx.attachSound('gslash1');
slashfx.start(0, 1);
}
if (playslash == 2) {
slashfx = new Sound();
slashfx.attachSound('gslash2');
slashfx.start(0, 1);
}
}
_root.hitbox4._y = _root.hero._y;
_root.hitbox4._x = _root.hero._x;
_root.hitbox4speed = _root.heroscale * 12;
_root.ammocount -= 1;
}
frame 7 {
_root.hitbox4._y = 99999;
_root.hitbox4._x = 99999;
_root.hitbox4speed = 0;
}
frame 11 {
_root.wattack = 0;
if (_root.ammocount == 0) {
_root.mainhud.ammohud.gotoAndStop(1);
}
gotoAndStop(1);
}
frame 15 {
playslash = Math.floor(Math.random() * 2) + 1;
if (_root.masterfx == 1) {
if (playslash == 1) {
slashfx = new Sound();
slashfx.attachSound('gslash1');
slashfx.start(0, 1);
}
if (playslash == 2) {
slashfx = new Sound();
slashfx.attachSound('gslash2');
slashfx.start(0, 1);
}
}
_root.hitbox4._y = _root.hero._y;
_root.hitbox4._x = _root.hero._x;
_root.hitbox4speed = _root.heroscale * 12;
_root.ammocount -= 1;
}
frame 16 {
_root.hitbox4._y = 99999;
_root.hitbox4._x = 99999;
_root.hitbox4speed = 0;
}
frame 20 {
_root.wattack = 0;
if (_root.ammocount == 0) {
_root.mainhud.ammohud.gotoAndStop(1);
}
gotoAndStop(1);
}
frame 24 {
playslash = Math.floor(Math.random() * 2) + 1;
if (_root.masterfx == 1) {
if (playslash == 1) {
slashfx = new Sound();
slashfx.attachSound('gslash1');
slashfx.start(0, 1);
}
if (playslash == 2) {
slashfx = new Sound();
slashfx.attachSound('gslash2');
slashfx.start(0, 1);
}
}
_root.hitbox4._y = _root.hero._y;
_root.hitbox4._x = _root.hero._x;
_root.hitbox4speed = _root.heroscale * 12;
_root.ammocount -= 1;
}
frame 25 {
_root.hitbox4._y = 99999;
_root.hitbox4._x = 99999;
_root.hitbox4speed = 0;
}
frame 29 {
_root.wattack = 0;
if (_root.ammocount == 0) {
_root.mainhud.ammohud.gotoAndStop(1);
}
gotoAndStop(1);
}
}
movieClip 529 {
frame 1 {
stop();
}
instance of movieClip 528 {
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (Key.isDown(32)) {
if (_root.wattack == 0) {
this.play();
}
}
}
}
}
}
movieClip 530 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 529 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
this.gotoAndStop(2);
}
}
}
}
movieClip 532 {
}
movieClip 537 {
}
movieClip 539 {
}
movieClip 543 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay(1);
_root.htakingdmg = 0;
}
}
movieClip 547 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay(1);
_root.htakingdmg = 0;
}
}
movieClip 553 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay(1);
_root.htakingdmg = 0;
}
}
movieClip 558 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay(1);
_root.htakingdmg = 0;
}
}
movieClip 562 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay(1);
_root.htakingdmg = 0;
}
}
movieClip 566 {
}
movieClip 567 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay(1);
_root.htakingdmg = 0;
}
}
movieClip 572 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay(1);
_root.htakingdmg = 0;
}
}
movieClip 574 {
}
movieClip 576 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay(1);
_root.htakingdmg = 0;
}
}
movieClip 580 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay(1);
_root.htakingdmg = 0;
}
}
movieClip 583 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay(1);
_root.htakingdmg = 0;
}
}
movieClip 584 {
frame 1 {
if (_root.headequip == 1) {
this.gotoAndStop(1);
}
if (_root.headequip == 2) {
this.gotoAndStop(2);
}
if (_root.headequip == 3) {
this.gotoAndStop(3);
}
if (_root.headequip == 4) {
this.gotoAndStop(4);
}
if (_root.headequip == 5) {
this.gotoAndStop(5);
}
if (_root.headequip == 6) {
this.gotoAndStop(6);
}
if (_root.headequip == 7) {
this.gotoAndStop(7);
}
if (_root.headequip == 8) {
this.gotoAndStop(8);
}
if (_root.headequip == 9) {
this.gotoAndStop(9);
}
if (_root.headequip == 10) {
this.gotoAndStop(10);
}
}
instance of movieClip 543 {
onClipEvent (enterFrame) {
if (_root.htakingdmg == 1) {
this.play();
}
}
}
instance of movieClip 547 {
onClipEvent (enterFrame) {
if (_root.htakingdmg == 1) {
this.play();
}
}
}
instance of movieClip 553 {
onClipEvent (enterFrame) {
if (_root.htakingdmg == 1) {
this.play();
}
}
}
instance of movieClip 558 {
onClipEvent (enterFrame) {
if (_root.htakingdmg == 1) {
this.play();
}
}
}
instance of movieClip 562 {
onClipEvent (enterFrame) {
if (_root.htakingdmg == 1) {
this.play();
}
}
}
instance of movieClip 567 {
onClipEvent (enterFrame) {
if (_root.htakingdmg == 1) {
this.play();
}
}
}
instance of movieClip 572 {
onClipEvent (enterFrame) {
if (_root.htakingdmg == 1) {
this.play();
}
}
}
instance of movieClip 576 {
onClipEvent (enterFrame) {
if (_root.htakingdmg == 1) {
this.play();
}
}
}
instance of movieClip 580 {
onClipEvent (enterFrame) {
if (_root.htakingdmg == 1) {
this.play();
}
}
}
instance of movieClip 583 {
onClipEvent (enterFrame) {
if (_root.htakingdmg == 1) {
this.play();
}
}
}
}
movieClip 586 {
}
movieClip 587 {
frame 39 {
gotoAndPlay(1);
}
}
movieClip 588 {
instance of movieClip 587 {
onClipEvent (load) {
if (_root.weaponequip > 3 || _root.pistoldual == 1) {
this._visible = false;
}
if (_root.weaponequip < 3 && _root.pistoldual == 0) {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.weaponequip > 3 || _root.pistoldual == 1) {
this._visible = false;
}
if (_root.weaponequip <= 3 && _root.pistoldual == 0) {
this._visible = true;
}
}
}
}
movieClip 589 {
frame 2 {
_root.wattack = 1;
}
frame 4 {
_root.ammocount -= 1;
if (_root.masterfx == 1) {
gunsoundfx = new Sound();
gunsoundfx.attachSound('pistolshot');
gunsoundfx.start(0, 1);
}
}
frame 6 {
_root.hitbox3._y = _root.hero._y;
_root.hitbox3._x = _root.hero._x;
_root.hitbox3speed = _root.heroscale * 16;
}
frame 12 {
if (_root.ammocount <= 0) {
_root.weaponequip = 1;
}
}
frame 17 {
_root.wattack = 0;
gotoAndStop(1);
}
}
movieClip 590 {
frame 1 {
stop();
}
instance of movieClip 589 {
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (Key.isDown(32)) {
if (_root.wattack == 0) {
this.play();
}
}
}
}
}
}
movieClip 591 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 590 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
this.gotoAndStop(2);
}
}
}
}
movieClip 593 {
}
movieClip 597 {
}
movieClip 602 {
}
movieClip 603 {
}
movieClip 604 {
frame 1 {
playsound = 1;
gunsoundfx.stop('minigunshot');
}
frame 2 {
_root.wattack = 1;
_root.hitbox2._y = _root.hero._y;
_root.hitbox2._x = _root.hero._x;
_root.hitbox2speed = _root.heroscale * 20;
_root.ammocount -= 1;
if (_root.masterfx == 1) {
if (playsound == 1) {
_root.minigunfx = new Sound();
_root.minigunfx.attachSound('minigunshot');
_root.minigunfx.start(0, 99);
playsound = 0;
}
}
}
frame 3 {
_root.hitbox3._y = _root.hero._y;
_root.hitbox3._x = _root.hero._x;
_root.hitbox3speed = _root.heroscale * 15;
}
frame 5 {
_root.wattack = 1;
_root.hitbox2._y = _root.hero._y;
_root.hitbox2._x = _root.hero._x;
_root.hitbox2speed = _root.heroscale * 30;
}
frame 6 {
if (_root.ammocount == 0) {
_root.minigunfx.stop('minigunshot');
_root.weaponequip = 1;
}
if (_root.wattack == 1) {
this.gotoAndPlay(2);
} else {
_root.minigunfx.stop('minigunshot');
gotoAndStop(1);
}
}
}
movieClip 605 {
frame 1 {
stop();
}
instance of movieClip 604 {
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (Key.isDown(32)) {
_root.wattack = 1;
this.play();
}
}
}
}
}
movieClip 606 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 605 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.wattack = 1;
this.gotoAndStop(2);
} else {
_root.wattack = 0;
}
}
}
}
movieClip 608 {
}
movieClip 612 {
}
movieClip 613 {
frame 2 {
_root.wattack = 1;
_root.hitbox2._y = _root.hero._y;
_root.hitbox2._x = _root.hero._x;
_root.hitbox2speed = _root.heroscale * 35;
_root.ammocount -= 1;
if (_root.masterfx == 1) {
gunsoundfx = new Sound();
gunsoundfx.attachSound('snipershot');
gunsoundfx.start(0, 1);
}
}
frame 4 {
_root.hitbox3._y = _root.hero._y;
_root.hitbox3._x = _root.hero._x;
_root.hitbox3speed = _root.heroscale * 20;
}
frame 6 {
_root.wattack = 1;
_root.hitbox2._y = _root.hero._y;
_root.hitbox2._x = _root.hero._x;
_root.hitbox2speed = _root.heroscale * 15;
if (_root.ammocount == 0) {
_root.weaponequip = 1;
}
}
frame 26 {
_root.wattack = 0;
gotoAndStop(1);
}
}
movieClip 614 {
frame 1 {
stop();
}
instance of movieClip 613 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
if (_root.wattack == 0) {
if (_root.gamepause == 0) {
this.play();
}
}
}
}
}
}
movieClip 615 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 614 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
this.gotoAndStop(2);
}
}
}
}
movieClip 617 {
}
movieClip 621 {
}
movieClip 623 {
}
movieClip 624 {
}
movieClip 625 {
frame 1 {
flamesound = 1;
}
frame 2 {
if (_root.masterfx == 1) {
if (flamesound == 1) {
_root.flamethrowerfx = new Sound();
_root.flamethrowerfx.attachSound('flamesfx');
_root.flamethrowerfx.start(0, 99);
}
}
}
frame 3 {
_root.wattack = 1;
_root.hitbox4._y = _root.hero._y;
_root.hitbox4._x = _root.hero._x;
_root.hitbox4speed = _root.heroscale * 20;
_root.ammocount -= 1;
}
frame 4 {
_root.wattack = 1;
_root.hitbox4._y = _root.hero._y;
_root.hitbox4._x = _root.hero._x;
_root.hitbox4speed = _root.heroscale * 38;
}
frame 5 {
_root.hitbox4._y = 99999;
_root.hitbox4._x = 99999;
}
frame 6 {
if (_root.ammocount == 0) {
_root.flamethrowerfx.stop('flamesfx');
_root.mainhud.ammohud.gotoAndStop(1);
}
if (_root.wattack == 1) {
flamesound = 0;
this.gotoAndPlay(2);
} else {
_root.flamethrowerfx.stop('flamesfx');
gotoAndStop(1);
}
}
}
movieClip 626 {
frame 1 {
stop();
}
instance of movieClip 625 {
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (Key.isDown(32)) {
_root.wattack = 1;
this.play();
}
}
}
}
}
movieClip 627 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 626 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.wattack = 1;
this.gotoAndStop(2);
} else {
_root.wattack = 0;
}
}
}
}
movieClip 629 {
}
movieClip 632 {
}
movieClip 633 {
}
movieClip 641 {
frame 15 {
stop();
}
}
movieClip 642 {
frame 2 {
_root.wattack = 1;
_root.hitbox4._y = _root.hero._y;
_root.hitbox4._x = _root.hero._x;
_root.hitbox4speed = _root.heroscale * 20;
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('mfgshot');
soundfx.start(0, 1);
}
_root.ammocount -= 1;
}
frame 13 {
_root.hitbox4._y = 99999;
_root.hitbox4._x = 99999;
_root.hitbox4speed = 0;
}
frame 15 {
if (_root.ammocount == 0) {
_root.mainhud.ammohud.gotoAndStop(1);
}
}
frame 55 {
_root.wattack = 0;
gotoAndStop(1);
}
}
movieClip 643 {
frame 1 {
stop();
}
instance of movieClip 642 {
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (Key.isDown(32)) {
if (_root.wattack == 0) {
this.play();
}
}
}
}
}
}
movieClip 644 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 643 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
this.gotoAndStop(2);
}
}
}
}
movieClip 646 {
}
movieClip 649 {
}
movieClip 651 {
frame 2 {
_root.wattack = 1;
_root.hitbox4._y = _root.hero._y;
_root.hitbox4._x = _root.hero._x;
_root.hitbox4speed = _root.heroscale * 10;
_root.ammocount -= 1;
if (_root.masterfx == 1) {
gunsoundfx = new Sound();
gunsoundfx.attachSound('shotty');
gunsoundfx.start(0, 1);
}
}
frame 3 {
_root.hitbox4._y = 99999;
_root.hitbox4._x = 99999;
}
frame 4 {
_root.hitbox4._y = _root.hero._y;
_root.hitbox4._x = _root.hero._x;
_root.hitbox4speed = _root.heroscale * 30;
}
frame 5 {
_root.hitbox4._y = 99999;
_root.hitbox4._x = 99999;
}
frame 12 {
if (_root.ammocount == 0) {
_root.weaponequip = 1;
}
}
frame 26 {
_root.wattack = 0;
gotoAndStop(1);
}
}
movieClip 652 {
frame 1 {
stop();
}
instance of movieClip 651 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
if (_root.wattack == 0) {
if (_root.gamepause == 0) {
this.play();
}
}
}
}
}
}
movieClip 653 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 652 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
this.gotoAndStop(2);
}
}
}
}
movieClip 655 {
}
movieClip 656 {
frame 4 {
_root.ammocount -= 0.5;
if (_root.ammocount == 0) {
_root.mainhud.ammohud.gotoAndStop(1);
}
}
frame 5 {
_root.wattack = 1;
_root.hitbox4._y = _root.hero._y;
_root.hitbox4._x = _root.hero._x;
_root.hitbox4speed = 0;
}
frame 6 {
_root.wattack = 1;
_root.hitbox4._y = 99999;
_root.hitbox4._x = 99999;
}
frame 7 {
if (_root.wattack == 1) {
this.gotoAndPlay(4);
} else {
gotoAndStop(1);
}
}
}
movieClip 657 {
frame 1 {
stop();
}
instance of movieClip 656 {
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (Key.isDown(32)) {
_root.wattack = 1;
this.play();
}
}
}
}
}
movieClip 658 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 657 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.wattack = 1;
this.gotoAndStop(2);
} else {
_root.wattack = 0;
}
}
}
}
movieClip 660 {
}
movieClip 664 {
}
movieClip 665 {
frame 2 {
_root.wattack = 1;
_root.hitbox2._y = _root.hero._y;
_root.hitbox2._x = _root.hero._x;
_root.hitbox2speed = _root.heroscale * 20;
_root.ammocount -= 1;
if (_root.masterfx == 1) {
gunsoundfx = new Sound();
gunsoundfx.attachSound('arshot');
gunsoundfx.start(0, 1);
}
}
frame 5 {
_root.hitbox3._y = _root.hero._y;
_root.hitbox3._x = _root.hero._x;
_root.hitbox3speed = _root.heroscale * 15;
if (_root.masterfx == 1) {
gunsoundfx = new Sound();
gunsoundfx.attachSound('arshot');
gunsoundfx.start(0, 1);
}
}
frame 6 {
if (_root.ammocount == 0) {
_root.weaponequip = 1;
}
if (_root.wattack == 1) {
this.gotoAndPlay(2);
} else {
gotoAndStop(1);
}
}
}
movieClip 666 {
frame 1 {
stop();
}
instance of movieClip 665 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
if (_root.gamepause == 0) {
_root.wattack = 1;
this.play();
}
}
}
}
}
movieClip 667 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 666 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.wattack = 1;
this.gotoAndStop(2);
} else {
_root.wattack = 0;
}
}
}
}
movieClip 668 {
frame 14 {
gotoAndPlay(1);
}
}
movieClip 669 {
frame 1 {
if (_root.weaponequip != 4) {
if (_root.weaponequip != 7) {
if (_root.weaponequip != 9) {
if (_root.sprinting == 1) {
_root.smokecount += 1;
duplicateMovieClip(_root.sprintsmoke, 'sprintsmoke' + _root.smokecount, _root.smokecount);
_root['sprintsmoke' + _root.smokecount].play();
}
}
}
}
}
instance of movieClip 668 {
onClipEvent (load) {
if (_root.weaponequip > 3 || _root.pistoldual == 1) {
this._visible = false;
}
if (_root.weaponequip < 3 && _root.pistoldual == 0) {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.weaponequip > 3 || _root.pistoldual == 1) {
this._visible = false;
}
if (_root.weaponequip <= 3 && _root.pistoldual == 0) {
this._visible = true;
}
}
}
frame 4 {
if (_root.weaponequip != 4) {
if (_root.weaponequip != 7) {
if (_root.weaponequip != 9) {
if (_root.sprinting == 1) {
_root.smokecount += 1;
duplicateMovieClip(_root.sprintsmoke, 'sprintsmoke' + _root.smokecount, _root.smokecount);
_root['sprintsmoke' + _root.smokecount].play();
}
}
}
}
}
frame 7 {
if (_root.weaponequip != 4) {
if (_root.weaponequip != 7) {
if (_root.weaponequip != 9) {
if (_root.sprinting == 1) {
_root.smokecount += 1;
duplicateMovieClip(_root.sprintsmoke, 'sprintsmoke' + _root.smokecount, _root.smokecount);
_root['sprintsmoke' + _root.smokecount].play();
}
}
}
}
}
frame 10 {
if (_root.weaponequip != 4) {
if (_root.weaponequip != 7) {
if (_root.weaponequip != 9) {
if (_root.sprinting == 1) {
_root.smokecount += 1;
duplicateMovieClip(_root.sprintsmoke, 'sprintsmoke' + _root.smokecount, _root.smokecount);
_root['sprintsmoke' + _root.smokecount].play();
}
}
}
}
}
frame 14 {
if (_root.weaponequip != 4) {
if (_root.weaponequip != 7) {
if (_root.weaponequip != 9) {
if (_root.sprinting == 1) {
_root.smokecount += 1;
duplicateMovieClip(_root.sprintsmoke, 'sprintsmoke' + _root.smokecount, _root.smokecount);
_root['sprintsmoke' + _root.smokecount].play();
}
}
}
}
}
}
movieClip 679 {
frame 32 {
stop();
}
}
movieClip 680 {
frame 1 {
_root.walking = 1;
stop();
}
instance of movieClip 511 {
onClipEvent (enterFrame) {
if (_root.weaponequip == 3) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 520 {
onClipEvent (enterFrame) {
if (_root.weaponequip == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 530 {
onClipEvent (enterFrame) {
if (_root.weaponequip == 2) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 591 {
onClipEvent (enterFrame) {
if (_root.weaponequip == 3 && _root.pistoldual == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 606 {
onClipEvent (enterFrame) {
if (_root.weaponequip == 4) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 615 {
onClipEvent (enterFrame) {
if (_root.weaponequip == 5) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 627 {
onClipEvent (enterFrame) {
if (_root.weaponequip == 6) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 644 {
onClipEvent (enterFrame) {
if (_root.weaponequip == 7) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 653 {
onClipEvent (enterFrame) {
if (_root.weaponequip == 8) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 658 {
onClipEvent (enterFrame) {
if (_root.weaponequip == 9) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 667 {
onClipEvent (enterFrame) {
if (_root.weaponequip == 10) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
}
instance hero of movieClip 680 {
onClipEvent (load) {
yspeed = 0;
xspeed = 0;
friction = 0.7;
_root.power = 3;
}
onClipEvent (enterFrame) {
if (_root.halive == 1) {
if (_root.gamepause == 0) {
if (_root.weaponequip == 4) {
_root.power = 2;
} else {
if (_root.weaponequip == 7) {
_root.power = 2;
} else {
if (_root.weaponequip == 9) {
_root.power = 2;
} else {
if (_root.sprinting == 0) {
_root.power = 3;
}
if (_root.sprinting == 1) {
_root.power = 4.3;
}
}
}
}
if (Key.isDown(37) || Key.isDown(65)) {
this.gotoAndStop(2);
xspeed -= _root.power;
_xscale = -66.09999999999999;
_root.heroscale = -5;
if (_root.hero._x >= 300) {
if (_root.hero._x <= 1300) {
if (_root.power == 4.3) {
_root.buildings1._x -= 4;
_root.buildings2._x -= 7;
_root.buildings3._x -= 11;
}
if (_root.power == 3) {
_root.buildings1._x -= 2;
_root.buildings2._x -= 4;
_root.buildings3._x -= 8;
}
if (_root.power == 2) {
_root.buildings1._x -= 1.5;
_root.buildings2._x -= 3;
_root.buildings3._x -= 6;
}
}
}
} else {
if (Key.isDown(39) || Key.isDown(68)) {
this.gotoAndStop(2);
xspeed += _root.power;
_xscale = 66.09999999999999;
_root.heroscale = 5;
if (_root.hero._x >= 300) {
if (_root.hero._x <= 1300) {
if (_root.power == 4.3) {
_root.buildings1._x += 4;
_root.buildings2._x += 7;
_root.buildings3._x += 11;
}
if (_root.power == 3) {
_root.buildings1._x += 2;
_root.buildings2._x += 4;
_root.buildings3._x += 8;
}
if (_root.power == 2) {
_root.buildings1._x += 1.5;
_root.buildings2._x += 3;
_root.buildings3._x += 6;
}
}
}
} else {
_root.walking = 0;
this.gotoAndStop(1);
}
}
xspeed *= friction;
yspeed *= friction;
_y = _y + yspeed;
_x = _x + xspeed;
if (xspeed > -2.5) {
if (xspeed < 0) {
_root.sprinting = 0;
_root.walking = 0;
}
}
if (xspeed <= -2.5) {
if (xspeed < 0) {
_root.walking = 1;
}
}
if (xspeed < 2.5) {
if (xspeed >= 0) {
_root.sprinting = 0;
_root.walking = 0;
}
}
if (xspeed >= 2.5) {
if (xspeed >= 0) {
_root.walking = 1;
}
}
}
}
if (_root.halive == 0) {
this.gotoAndStop(3);
}
}
}
movieClip 682 {
frame 1 {
_root.sprinting = 0;
}
frame 2 {
if (runner == 1) {
play();
} else {
gotoAndPlay(1);
}
}
frame 19 {
_root.sprinting = 1;
}
frame 20 {
if (_root.walking == 0) {
_root.sprinting = 0;
gotoAndPlay(1);
} else {
gotoAndPlay(19);
}
}
}
instance sprintholder of movieClip 682 {
onClipEvent (enterFrame) {
if (_root.walking == 1) {
runner = 1;
} else {
runner = 0;
this.gotoAndPlay(1);
}
}
}
movieClip 684 {
frame 1 {
stop();
}
frame 24 {
_root.weaponequip = 1;
_root.dropweapon = 1;
gotoAndStop(1);
}
}
instance of movieClip 684 {
onClipEvent (enterFrame) {
if (Key.isDown(40) || Key.isDown(83)) {
if (_root.weaponequip != 1) {
this.play();
}
} else {
this.gotoAndStop(1);
}
}
}
movieClip 689 {
frame 4 {
stop();
}
}
movieClip 695 {
frame 4 {
stop();
}
}
movieClip 696 {
frame 1 {
rblood = Math.floor(Math.random() * 3) + 1;
if (rblood == 1) {
stop();
}
if (rblood == 2) {
gotoAndStop(2);
}
if (rblood == 3) {
gotoAndStop(3);
}
}
}
movieClip 697 {
frame 360 {
this.removeMovieClip();
}
}
instance sblood of movieClip 697 {
onClipEvent (enterFrame) {
if (_root.newgame == 1) {
this.removeMovieClip();
}
if (_root.lowgore == 1) {
this.removeMovieClip();
this._alpha = 0;
}
if (_root.lowgore == 0) {
this._alpha = 100;
}
}
}
movieClip 701 {
frame 1 {
rblood = Math.floor(Math.random() * 3) + 1;
if (rblood == 1) {
stop();
}
if (rblood == 2) {
gotoAndStop(2);
}
if (rblood == 3) {
gotoAndStop(3);
}
}
}
movieClip 706 {
frame 6 {
stop();
}
}
movieClip 707 {
instance of movieClip 706 {
onClipEvent (load) {
this._rotation = Math.floor(Math.random() * 359) + 1;
}
}
frame 360 {
this.removeMovieClip();
}
}
instance blood of movieClip 707 {
onClipEvent (enterFrame) {
if (_root.newgame == 1) {
this.removeMovieClip();
}
if (_root.lowgore == 1) {
this.removeMovieClip();
this._alpha = 0;
}
if (_root.lowgore == 0) {
this._alpha = 100;
}
}
}
movieClip 711 {
frame 1 {
bullet = Math.floor(Math.random() * 3) + 1;
if (bullet == 1) {
play();
}
if (bullet == 2) {
stop();
}
if (bullet == 3) {
stop();
}
}
}
movieClip 713 {
}
movieClip 714 {
instance of movieClip 713 {
onClipEvent (enterFrame) {
_rotation = _rotation + 20;
}
}
}
movieClip 715 {
frame 13 {
stop();
}
}
movieClip 716 {
frame 2 {
if (_root.masterfx == 1) {
if (_root.hshake == 1) {
acsoundfx = new Sound();
acsoundfx.attachSound('arshot');
acsoundfx.start(0, 1);
}
}
}
frame 4 {
if (_root.masterfx == 1) {
if (_root.hshake == 1) {
acsoundfx = new Sound();
acsoundfx.attachSound('arshot');
acsoundfx.start(0, 1);
}
}
}
frame 14 {
this.removeMovieClip();
stop();
}
}
instance cgun of movieClip 716 {
onClipEvent (enterFrame) {
if (_root.newgame == 1) {
this.removeMovieClip();
}
}
}
movieClip 717 {
frame 2 {
if (_root.sprinting == 1) {
this._x = _root.hero._x;
this._y = _root.hero._y;
}
}
frame 14 {
this.removeMovieClip();
stop();
}
}
instance sprintsmoke of movieClip 717 {
onClipEvent (enterFrame) {
if (_root.newgame == 1) {
this.removeMovieClip();
}
}
}
movieClip 719 {
}
movieClip 720 {
}
movieClip 722 {
}
movieClip 724 {
}
movieClip 725 {
frame 50 {
gotoAndPlay(1);
}
}
movieClip 729 {
}
movieClip 730 {
frame 1 {
blood = Math.floor(Math.random() * 4) + 1;
if (blood == 1) {
stop();
}
if (blood == 2) {
gotoAndStop(2);
}
if (blood == 3) {
gotoAndStop(3);
}
if (blood == 4) {
gotoAndStop(4);
}
}
}
movieClip 731 {
frame 2 {
zbloodfx = Math.floor(Math.random() * 2) + 1;
if (_root.masterfx == 1) {
if (zbloodfx == 1) {
soundfx1 = new Sound();
soundfx1.attachSound('bloodsfx');
soundfx1.start(0, 1);
}
if (zbloodfx == 2) {
soundfx1 = new Sound();
soundfx1.attachSound('bloodsfx2');
soundfx1.start(0, 1);
}
}
}
}
movieClip 738 {
}
movieClip 742 {
frame 7 {
_root.htakingdmg = 1;
}
}
movieClip 744 {
}
movieClip 755 {
frame 1 {
if (_root.weaponequip == 6) {
this.gotoAndPlay(73);
} else {
killanim = Math.floor(Math.random() * 3) + 1;
zdeathfx = Math.floor(Math.random() * 3) + 1;
if (killanim == 1) {
if (_root.masterfx == 1) {
if (zdeathfx == 1) {
zombiefx = new Sound();
zombiefx.attachSound('zdeath1');
zombiefx.start(0, 1);
}
}
this.play();
}
if (killanim == 2) {
this.gotoAndPlay(25);
}
if (killanim == 3) {
if (_root.masterfx == 1) {
if (zdeathfx == 1) {
zombiefx = new Sound();
zombiefx.attachSound('zdeath2');
zombiefx.start(0, 1);
}
}
this.gotoAndPlay(49);
}
}
}
frame 24 {
stop();
}
frame 48 {
stop();
}
frame 72 {
stop();
}
frame 96 {
stop();
}
frame 120 {
stop();
}
}
movieClip 757 {
frame 1 {
if (zalive == 0) {
gotoAndPlay(14);
}
}
frame 8 {
if (zalive == 0) {
gotoAndPlay(14);
}
if (zalive == 1) {
gotoAndStop(1);
}
}
frame 13 {
if (zalive == 0) {
gotoAndPlay(14);
}
if (zalive == 1) {
gotoAndStop(1);
}
}
frame 15 {
_root.killcount += 1;
_root.killstreak += 1;
if (_root.killstreak >= 5) {
_root.mainhud.killplayer.gotoAndPlay(2);
}
}
frame 34 {
rzombie();
}
frame 78 {
stop();
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 2) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 3) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 4) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 5) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 6) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
movieClip 761 {
}
movieClip 762 {
}
movieClip 764 {
}
movieClip 766 {
}
movieClip 768 {
}
movieClip 769 {
frame 31 {
gotoAndPlay(1);
}
}
movieClip 770 {
frame 2 {
zbloodfx = Math.floor(Math.random() * 2) + 1;
if (_root.masterfx == 1) {
if (zbloodfx == 1) {
soundfx1 = new Sound();
soundfx1.attachSound('bloodsfx');
soundfx1.start(0, 1);
}
if (zbloodfx == 2) {
soundfx1 = new Sound();
soundfx1.attachSound('bloodsfx2');
soundfx1.start(0, 1);
}
}
}
}
movieClip 776 {
}
movieClip 779 {
frame 7 {
_root.htakingdmg = 1;
}
}
movieClip 781 {
}
movieClip 784 {
frame 1 {
if (_root.weaponequip == 6) {
this.gotoAndPlay(73);
} else {
killanim = Math.floor(Math.random() * 3) + 1;
if (killanim == 1) {
this.play();
}
if (killanim == 2) {
this.gotoAndPlay(25);
}
if (killanim == 3) {
this.gotoAndPlay(49);
}
}
}
frame 24 {
stop();
}
frame 48 {
stop();
}
frame 72 {
stop();
}
frame 95 {
stop();
}
}
movieClip 785 {
frame 1 {
if (zalive == 0) {
gotoAndPlay(14);
}
}
frame 8 {
if (zalive == 0) {
gotoAndPlay(14);
}
if (zalive == 1) {
gotoAndStop(1);
}
}
frame 13 {
if (zalive == 0) {
gotoAndPlay(14);
}
if (zalive == 1) {
gotoAndStop(1);
}
}
frame 15 {
_root.killcount += 1;
_root.killstreak += 1;
if (_root.killstreak >= 5) {
_root.mainhud.killplayer.gotoAndPlay(2);
}
}
frame 34 {
rzombie();
}
frame 78 {
stop();
}
}
instance of movieClip 785 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.runnerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 1.5) + 4;
bspeed = zspeed;
zalive = 1;
zlife = _root.runnerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 13) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 785 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -1000) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 1000) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.runnerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2) + 6;
bspeed = zspeed;
zalive = 1;
zlife = _root.runnerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 6) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
movieClip 787 {
}
movieClip 788 {
}
movieClip 790 {
}
movieClip 792 {
}
movieClip 794 {
}
movieClip 795 {
frame 50 {
gotoAndPlay(1);
}
}
movieClip 796 {
frame 2 {
zbloodfx = Math.floor(Math.random() * 2) + 1;
if (_root.masterfx == 1) {
if (zbloodfx == 1) {
soundfx1 = new Sound();
soundfx1.attachSound('bloodsfx');
soundfx1.start(0, 1);
}
if (zbloodfx == 2) {
soundfx1 = new Sound();
soundfx1.attachSound('bloodsfx2');
soundfx1.start(0, 1);
}
}
}
}
movieClip 801 {
frame 8 {
_root.htakingdmg = 1;
}
}
movieClip 803 {
}
movieClip 806 {
frame 1 {
if (_root.weaponequip == 6) {
this.gotoAndPlay(25);
} else {
this.play();
}
}
frame 24 {
stop();
}
frame 24 {
stop();
}
frame 47 {
stop();
}
}
movieClip 807 {
frame 1 {
if (zalive == 0) {
gotoAndPlay(14);
}
}
frame 8 {
if (zalive == 0) {
gotoAndPlay(14);
}
if (zalive == 1) {
gotoAndStop(1);
}
}
frame 13 {
if (zalive == 0) {
gotoAndPlay(14);
}
if (zalive == 1) {
gotoAndStop(1);
}
}
frame 15 {
_root.killcount += 1;
_root.snatchercount += 1;
_root.killstreak += 1;
if (_root.killstreak >= 5) {
_root.mainhud.killplayer.gotoAndPlay(2);
}
}
frame 34 {
rzombie();
}
frame 78 {
stop();
}
}
instance of movieClip 807 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.snatcherlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 1.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.snatcherlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 12) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 2) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 2) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 2) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 2) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 3) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 3) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 3) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 3) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 4) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 5) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 6) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 7) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 7) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 785 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -1000) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 1000) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.runnerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2) + 6;
bspeed = zspeed;
zalive = 1;
zlife = _root.runnerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 7) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 785 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -1000) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 1000) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.runnerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2) + 6;
bspeed = zspeed;
zalive = 1;
zlife = _root.runnerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 7) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 8) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 8) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 785 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -1500) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 1500) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.runnerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2) + 6;
bspeed = zspeed;
zalive = 1;
zlife = _root.runnerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 9) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 9) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 10) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 785 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -1000) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 1000) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.runnerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2) + 6;
bspeed = zspeed;
zalive = 1;
zlife = _root.runnerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 10) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 757 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.walkerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.walkerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 11) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 785 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -1000) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 1000) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.runnerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2) + 6;
bspeed = zspeed;
zalive = 1;
zlife = _root.runnerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 11) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 785 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -1500) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 1500) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.runnerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2) + 6;
bspeed = zspeed;
zalive = 1;
zlife = _root.runnerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 11) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 807 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.snatcherlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 1.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.snatcherlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 12) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 807 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.snatcherlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 1.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.snatcherlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 13) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 785 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -1500) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.runnerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 1.5) + 4;
bspeed = zspeed;
zalive = 1;
zlife = _root.runnerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 14) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 807 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.snatcherlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 1.5) + 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.snatcherlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 14) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 785 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -1500) - 220;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 1500) + 1750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.runnerlife;
zspeed = 2;
}
zspeed = Math.floor(Math.random() * 2) + 6;
bspeed = zspeed;
zalive = 1;
zlife = _root.runnerlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 15) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
instance of movieClip 807 {
onClipEvent (load) {
function rzombie() {
this.gotoAndStop(1);
rzpos = Math.floor(Math.random() * 2) + 1;
if (rzpos == 1) {
this._x = Math.floor(Math.random() * -400) - 10000;
this._y = 320.85;
}
if (rzpos == 2) {
this._x = Math.floor(Math.random() * 400) + 10750;
this._y = 320.85;
}
zalive = 1;
zlife = _root.snatcherlife + 20;
zspeed = 1;
}
zspeed = 1;
bspeed = zspeed;
zalive = 1;
zlife = _root.snatcherlife;
rzombie();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 15) {
if (zalive == 1) {
this._x -= zspeed;
if (_root.hero._x > this._x) {
zspeed = bspeed * -1;
_xscale = 100;
}
if (_root.hero._x < this._x) {
zspeed = bspeed;
_xscale = -100;
}
if (hitTest(_root.hero._x, _y) == true) {
zspeed = 0;
this.gotoAndPlay(9);
}
if (zlife <= 0) {
zalive = 0;
zspeed = 0;
_root.bcount += 1;
duplicateMovieClip(_root.blood, 'blood' + _root.bcount, _root.bcount);
_root['blood' + _root.bcount]._x = this._x;
_root['blood' + _root.bcount]._y = this._y + 45;
_root['blood' + _root.bcount].play();
this.gotoAndPlay(14);
}
if (hitTest(_root.hitbox1) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox1.gotoAndPlay(1);
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
_root.hitbox1speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox2) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox2.gotoAndPlay(1);
_root.hitbox2._x = 99999;
_root.hitbox2._y = 99999;
_root.hitbox2speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox3) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
_root.hitbox3.gotoAndPlay(1);
_root.hitbox3._x = 99999;
_root.hitbox3._y = 99999;
_root.hitbox3speed = 0;
zlife -= _root.wpndmg;
}
if (hitTest(_root.hitbox4) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * _root.knockback;
zlife -= _root.wpndmg;
}
if (hitTest(_root.allystrike1.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike2.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 40;
zlife -= 25;
}
if (hitTest(_root.allystrike3.hitbox) == true) {
_root.bcount += 1;
duplicateMovieClip(_root.sblood, 'sblood' + _root.bcount, _root.bcount);
_root['sblood' + _root.bcount]._x = this._x;
_root['sblood' + _root.bcount]._y = this._y + 45;
_root['sblood' + _root.bcount].play();
_root.gcount += 1;
duplicateMovieClip(_root.cgun, 'cgun' + _root.gcount, _root.gcount);
_root['cgun' + _root.gcount]._x = this._x;
_root['cgun' + _root.gcount]._y = this._y + 45;
_root['cgun' + _root.gcount].play();
this.gotoAndPlay(2);
this._x += zspeed * 20;
zlife -= 25;
}
}
}
}
}
}
// unknown tag 88 length 68
movieClip 811 {
}
instance of movieClip 811 {
onClipEvent (enterFrame) {
if (_root.weaponequip == 1) {
_root.wpndmg = (Math.floor(Math.random() * 3) + 1) * _root.dmgmulti;
_root.knockback = 20 * _root.dmgmulti;
}
if (_root.weaponequip == 2) {
_root.wpndmg = 100;
_root.knockback = 50 * _root.dmgmulti;
}
if (_root.weaponequip == 3) {
if (_root.pistoldual == 0) {
_root.wpndmg = (Math.floor(Math.random() * 5) + 1.5) * _root.dmgmulti;
_root.knockback = 1 * _root.dmgmulti;
}
if (_root.pistoldual == 1) {
_root.wpndmg = (Math.floor(Math.random() * 5) + 3) * _root.dmgmulti;
_root.knockback = 20 * _root.dmgmulti;
}
}
if (_root.weaponequip == 4) {
_root.wpndmg = (Math.floor(Math.random() * 10) + 3) * _root.dmgmulti;
_root.knockback = 10 * _root.dmgmulti;
}
if (_root.weaponequip == 5) {
_root.wpndmg = (Math.floor(Math.random() * 6) + 2) * _root.dmgmulti;
_root.knockback = 10 * _root.dmgmulti;
}
if (_root.weaponequip == 6) {
_root.wpndmg = (Math.floor(Math.random() * 10) + 4) * _root.dmgmulti;
_root.knockback = 2 * _root.dmgmulti;
}
if (_root.weaponequip == 7) {
_root.wpndmg = Math.floor(Math.random() * 2) + 100;
_root.knockback = 1000;
}
if (_root.weaponequip == 8) {
_root.wpndmg = (Math.floor(Math.random() * 4) + 2) * _root.dmgmulti;
_root.knockback = 15 * _root.dmgmulti;
}
if (_root.weaponequip == 9) {
_root.wpndmg = (Math.floor(Math.random() * 0.5) + 0.5) * _root.dmgmulti;
_root.knockback = 18 * _root.dmgmulti;
}
if (_root.weaponequip == 10) {
_root.wpndmg = (Math.floor(Math.random() * 1.5) + 0.6) * _root.dmgmulti;
_root.knockback = 10 * _root.dmgmulti;
}
}
}
movieClip 813 {
}
instance of movieClip 813 {
onClipEvent (enterFrame) {
if (_root.screenshake == 1) {
var XX = 8;
var YY = 8;
var startshake = false;
var shakeavailable = true;
_root.onEnterFrame = function () {
function shakescreen() {
if (shakeavailable) {
startshake = true;
X = random(XX) - XX / 2;
Y = random(YY) - YY / 2;
_root._x += X;
_root._y += Y;
} else {}
}
shakescreen();
};
}
if (_root.screenshake == 0) {
shakeavailable = false;
}
if (_root.bshake == 1) {
var XX = 25;
var YY = 25;
var bstartshake = false;
var bshakeavailable = true;
_root.onEnterFrame = function () {
function bshakescreen() {
if (bshakeavailable) {
bstartshake = true;
X = random(XX) - XX / 2;
Y = random(YY) - YY / 2;
_root._x += X;
_root._y += Y;
} else {}
}
bshakescreen();
};
}
if (_root.bshake == 0) {
bshakeavailable = false;
}
if (_root.hshake == 1) {
var XX = 9;
var YY = 9;
var hstartshake = false;
var hshakeavailable = true;
_root.onEnterFrame = function () {
function hshakescreen() {
if (hshakeavailable) {
hbstartshake = true;
X = random(XX) - XX / 2;
Y = random(YY) - YY / 2;
_root._x += X;
_root._y += Y;
} else {}
}
hshakescreen();
};
}
if (_root.hshake == 0) {
hshakeavailable = false;
}
if (_root.killcount >= 5) {
_root.walkerlife = 1.5;
_root.runnerlife = 0.2;
_root.snatcherlife = 13;
_root.difficulty = 2;
}
if (_root.killcount >= 10) {
_root.difficulty = 4;
}
if (_root.killcount >= 20) {
_root.walkerlife = 2;
_root.runnerlife = 0.2;
_root.difficulty = 6;
}
if (_root.killcount >= 100) {
_root.difficulty = 7;
}
if (_root.killcount >= 150) {
_root.difficulty = 8;
}
if (_root.killcount >= 250) {
_root.walkerlife = 2.5;
_root.runnerlife = 0.2;
_root.difficulty = 9;
}
if (_root.killcount >= 350) {
_root.difficulty = 10;
}
if (_root.killcount >= 500) {
_root.difficulty = 11;
}
if (_root.killcount >= 510) {
_root.difficulty = 12;
}
if (_root.killcount >= 800) {
_root.difficulty = 13;
_root.walkerlife = 3;
_root.runnerlife = 0.5;
_root.snatcherlife = 20;
_quality = 'medium';
}
if (_root.killcount >= 1200) {
_root.walkerlife = 3.5;
_root.snatcherlife = 25;
_root.difficulty = 14;
}
if (_root.killcount >= 1800) {
_root.runnerlife = 1;
}
if (_root.killcount >= 2300) {
_root.walkerlife = 4;
_root.runnerlife = 1;
_root.difficulty = 15;
}
if (_root.killcount >= 3000) {
_root.walkerlife = 4.5;
_root.runnerlife = 1;
_root.snatcherlife = 30;
}
if (_root.killcount >= 10000) {
_root.walkerlife = 5;
_root.runnerlife = 1;
_root.snatcherlife = 35;
}
if (_root.killcount >= 11000) {
_root.walkerlife = 6;
_root.runnerlife = 3;
_root.snatcherlife = 40;
}
if (_root.killcount >= 12000) {
_root.walkerlife = 7;
_root.runnerlife = 3;
_root.snatcherlife = 45;
}
if (_root.killcount >= 13000) {
_root.walkerlife = 7;
_root.runnerlife = 3;
_root.snatcherlife = 50;
}
if (_root.killcount >= 14000) {
_root.walkerlife = 8;
_root.runnerlife = 4;
_root.snatcherlife = 55;
}
}
}
movieClip 815 {
}
movieClip 816 {
}
movieClip 818 {
}
movieClip 820 {
frame 25 {
stop();
}
}
movieClip 823 {
frame 11 {
stop();
}
}
movieClip 825 {
frame 1 {
stop();
}
frame 2 {
nocombo = 1;
_root.allysupport1 = 0;
if (_root.heroscale == -5) {
this._x = _root.hero._x - 100;
this._y = _root.hero._y;
} else {
this._x = _root.hero._x + 100;
this._y = _root.hero._y;
}
if (_root.masterfx == 1) {
asoundfx = new Sound();
asoundfx.attachSound('missilestrikev');
asoundfx.start(0, 1);
}
}
frame 35 {
if (_root.masterfx == 1) {
asoundfx = new Sound();
asoundfx.attachSound('missilesfx');
asoundfx.start(0, 1);
}
}
frame 59 {
nocombo = 0;
_root.bshake = 1;
asoundfx.stop('missilesfx');
if (_root.masterfx == 1) {
asoundfx = new Sound();
asoundfx.attachSound('explosion1');
asoundfx.start(0, 1);
}
}
frame 66 {
_root.bshake = 0;
}
frame 87 {
rstrike();
}
}
instance allystrike1 of movieClip 825 {
onClipEvent (load) {
function rstrike() {
nocombo = 0;
this._x = 99999;
this._y = 99999;
this.gotoAndStop(1);
}
rstrike();
}
onClipEvent (enterFrame) {
if (nocombo == 1) {
_root.killstreak = 0;
_root.dkillbonus = 0;
}
if (_root.gamepause == 0) {
if (Key.isDown(38) || Key.isDown(87)) {
if (_root.allysupport1 == 1) {
_root.kctutorial = 0;
_root.allyused = 1;
_root.killstreak = 0;
_root.dkillbonus = 0;
_root.allysupport1 = 0;
if (_root.neardeath == 1) {
_root.suicideb = 1;
}
this.play();
}
}
}
}
}
movieClip 827 {
frame 1 {
stop();
}
frame 2 {
_root.allysupport2 = 0;
if (_root.heroscale == -5) {
_root.allystrike2._xscale = -100;
} else {
_root.allystrike2._xscale = 100;
}
this._x = _root.hero._x;
this._y = _root.hero._y;
if (_root.masterfx == 1) {
asoundfx = new Sound();
asoundfx.attachSound('airstrikev');
asoundfx.start(0, 1);
}
}
frame 25 {
if (_root.masterfx == 1) {
asoundfx = new Sound();
asoundfx.attachSound('jetsfx');
asoundfx.start(0, 1);
}
}
frame 88 {
_root.bshake = 1;
if (_root.masterfx == 1) {
asoundfx = new Sound();
asoundfx.attachSound('explosion1');
asoundfx.start(0, 1);
}
}
frame 99 {
_root.bshake = 0;
}
frame 108 {
_root.bshake = 1;
if (_root.masterfx == 1) {
asoundfx = new Sound();
asoundfx.attachSound('explosion1');
asoundfx.start(0, 1);
}
}
frame 120 {
_root.bshake = 0;
}
frame 130 {
_root.bshake = 1;
if (_root.masterfx == 1) {
asoundfx = new Sound();
asoundfx.attachSound('explosion1');
asoundfx.start(0, 1);
}
}
frame 142 {
_root.bshake = 0;
}
frame 159 {
rstrike();
}
}
instance allystrike2 of movieClip 827 {
onClipEvent (load) {
function rstrike() {
this._x = 99999;
this._y = 99999;
this.gotoAndStop(1);
}
rstrike();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (Key.isDown(38) || Key.isDown(87)) {
if (_root.allysupport2 == 1) {
_root.kctutorial = 0;
_root.allyused = 1;
_root.killstreak = 0;
_root.dkillbonus = 0;
if (_root.neardeath == 1) {
_root.suicideb = 1;
}
this.play();
}
}
}
}
}
movieClip 838 {
frame 1 {
stop();
}
frame 2 {
_root.allysupport3 = 0;
heroshot = 1;
this._x = _root.hero._x;
this._y = _root.hero._y;
if (_root.masterfx == 1) {
asoundfx = new Sound();
asoundfx.attachSound('attackchopperv');
asoundfx.start(0, 1);
}
}
frame 76 {
_root.hshake = 1;
if (_root.masterfx == 1) {
soundfx1 = new Sound();
soundfx1.attachSound('chopperhover');
soundfx1.start(0, 1);
}
}
frame 267 {
_root.hshake = 0;
}
frame 295 {
rstrike();
}
}
instance allystrike3 of movieClip 838 {
onClipEvent (load) {
function rstrike() {
heroshot = 0;
this._x = 99999;
this._y = 99999;
this.gotoAndStop(1);
}
rstrike();
}
onClipEvent (enterFrame) {
if (heroshot == 1) {
this._x = _root.hero._x;
this._y = _root.hero._y;
}
if (_root.gamepause == 0) {
if (Key.isDown(38) || Key.isDown(87)) {
if (_root.allysupport3 == 1) {
_root.kctutorial = 0;
_root.allyused = 1;
this._x = _root.hero._x;
this._y = _root.hero._y;
_root.killstreak = 0;
_root.dkillbonus = 0;
if (_root.neardeath == 1) {
_root.suicideb = 1;
}
this.play();
}
}
}
}
}
movieClip 840 {
}
movieClip 841 {
frame 1 {
stop();
}
frame 170 {
_root.cratebox.rcrate();
}
}
movieClip 842 {
frame 1 {
stop();
}
frame 170 {
_root.cratebox.rcrate();
}
}
movieClip 845 {
}
movieClip 846 {
}
movieClip 847 {
frame 1 {
stop();
}
frame 170 {
_root.cratebox.rcrate();
}
}
movieClip 850 {
}
movieClip 851 {
}
movieClip 852 {
frame 1 {
stop();
}
frame 241 {
_root.cratebox.rcrate();
}
}
movieClip 855 {
}
movieClip 856 {
}
movieClip 857 {
frame 1 {
stop();
}
frame 240 {
_root.cratebox.rcrate();
}
}
movieClip 860 {
}
movieClip 861 {
}
movieClip 862 {
frame 1 {
stop();
}
frame 240 {
_root.cratebox.rcrate();
}
}
movieClip 864 {
}
movieClip 865 {
frame 1 {
stop();
}
frame 240 {
_root.cratebox.rcrate();
}
}
movieClip 867 {
}
movieClip 868 {
frame 1 {
stop();
}
frame 240 {
_root.cratebox.rcrate();
}
}
movieClip 870 {
}
movieClip 871 {
frame 1 {
stop();
}
frame 240 {
_root.cratebox.rcrate();
}
}
movieClip 873 {
}
movieClip 874 {
frame 1 {
stop();
}
frame 239 {
_root.cratebox.rcrate();
}
}
movieClip 875 {
frame 1 {
powerup = Math.floor(Math.random() * 9) + 1;
powerup2 = Math.floor(Math.random() * 100) + 1;
}
frame 2 {
powerup = Math.floor(Math.random() * 9) + 1;
powerup2 = Math.floor(Math.random() * 100) + 1;
if (powerup == 1) {
this.gotoAndStop(3);
}
if (powerup == 2) {
if (powerup2 <= 30) {
this.gotoAndStop(4);
} else {
this.gotoAndPlay(1);
}
}
if (powerup == 3) {
if (powerup2 <= 30) {
this.gotoAndStop(5);
} else {
this.gotoAndPlay(1);
}
}
if (powerup == 4) {
if (powerup2 <= 30) {
this.gotoAndStop(6);
} else {
this.gotoAndPlay(1);
}
}
if (powerup == 5) {
if (_root.wunlock1 == 1) {
if (powerup2 <= 20) {
this.gotoAndStop(7);
} else {
this.gotoAndPlay(1);
}
} else {
this.gotoAndPlay(1);
}
}
if (powerup == 6) {
if (_root.wunlock2 == 1) {
if (powerup2 <= 20) {
this.gotoAndStop(8);
} else {
this.gotoAndPlay(1);
}
} else {
this.gotoAndPlay(1);
}
}
if (powerup == 7) {
if (_root.wunlock3 == 1) {
if (powerup2 <= 20) {
this.gotoAndStop(9);
} else {
this.gotoAndPlay(1);
}
} else {
this.gotoAndPlay(1);
}
}
if (powerup == 8) {
if (_root.wunlock4 == 1) {
if (powerup2 <= 15) {
this.gotoAndStop(10);
} else {
this.gotoAndPlay(1);
}
} else {
this.gotoAndPlay(1);
}
}
if (powerup == 9) {
if (_root.wunlock5 == 1) {
if (powerup2 <= 15) {
this.gotoAndStop(11);
} else {
this.gotoAndPlay(1);
}
} else {
this.gotoAndPlay(1);
}
}
}
instance of movieClip 842 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
instance of movieClip 847 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
instance of movieClip 852 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
instance of movieClip 857 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
instance of movieClip 862 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
instance of movieClip 865 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
instance of movieClip 868 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
instance of movieClip 871 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
frame 11 {
stop();
}
instance of movieClip 874 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
}
instance cratebox of movieClip 875 {
onClipEvent (load) {
function rcrate() {
cratespeed = 10;
this.gotoAndPlay(1);
this._x = Math.floor(Math.random() * 1000) + 300;
this._y = Math.floor(Math.random() * -1200) - 800;
}
cratespeed = 10;
rcrate();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (hitTest(_root.crateboxa) == true) {
if (this._x >= _root.crateboxa._x) {
this._x += 20;
}
if (this._x < _root.crateboxa._x) {
this._x -= 20;
}
}
if (hitTest(_root.crateboxh) == true) {
if (this._x >= _root.crateboxh._x) {
this._x += 20;
}
if (this._x < _root.crateboxh._x) {
this._x -= 20;
}
}
if (hitTest(_root.hero._x, _y) == true) {
if (this._y >= 347) {
_root.pickuparrow._x = this._x;
_root.pickuparrow._y = this._y;
if (Key.isDown(40) || Key.isDown(83)) {
_root.hero.play();
_root.powered_mc.play();
_root.powered_mc._x = _root.hero._x;
_root.powered_mc._y = _root.hero._y;
_root.roundcrates += 1;
_root.powerused = 1;
_root.minigunfx.stop('minigunshot');
_root.flamethrowerfx.stop('flamesfx');
_root.hitbox4._y = 99999;
_root.hitbox4._x = 99999;
_root.hitbox4speed = 0;
_root.hitbox2._y = 99999;
_root.hitbox2._x = 99999;
_root.hitbox2speed = 0;
_root.hitbox3._y = 99999;
_root.hitbox3._x = 99999;
if (powerup == 1) {
if (_root.weaponequip == 3) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('dualpistolsv');
soundfx.start(0, 1);
}
_root.pistoldual = 1;
_root.weaponequip = 3;
if (_root.plusammo1 == 0) {
_root.ammocount = 12;
}
if (_root.plusammo1 == 1) {
_root.ammocount = 20;
}
}
if (_root.weaponequip != 3) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('pistolv');
soundfx.start(0, 1);
}
_root.weaponequip = 3;
if (_root.plusammo1 == 0) {
_root.ammocount = 12;
}
if (_root.plusammo1 == 1) {
_root.ammocount = 20;
}
}
}
if (powerup == 2) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('shotgunv');
soundfx.start(0, 1);
}
_root.weaponequip = 8;
if (_root.plusammo5 == 0) {
_root.ammocount = 8;
}
if (_root.plusammo5 == 1) {
_root.ammocount = 15;
}
}
if (powerup == 3) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('snipergunv');
soundfx.start(0, 1);
}
_root.weaponequip = 5;
if (_root.plusammo3 == 0) {
_root.ammocount = 10;
}
if (_root.plusammo3 == 1) {
_root.ammocount = 15;
}
}
if (powerup == 4) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('assaultriflev');
soundfx.start(0, 1);
}
_root.weaponequip = 10;
if (_root.plusammo6 == 0) {
_root.ammocount = 30;
}
if (_root.plusammo6 == 1) {
_root.ammocount = 50;
}
}
if (powerup == 5) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('minigunv');
soundfx.start(0, 1);
}
_root.weaponequip = 4;
if (_root.plusammo2 == 0) {
_root.ammocount = 30;
}
if (_root.plusammo2 == 1) {
_root.ammocount = 50;
}
}
if (powerup == 6) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('riotv');
soundfx.start(0, 1);
}
_root.weaponequip = 9;
_root.ammocount = 50;
}
if (powerup == 7) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('flamev');
soundfx.start(0, 1);
}
_root.weaponequip = 6;
if (_root.plusammo4 == 0) {
_root.ammocount = 30;
}
if (_root.plusammo4 == 1) {
_root.ammocount = 50;
}
}
if (powerup == 8) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('godhandv');
soundfx.start(0, 1);
}
_root.weaponequip = 2;
_root.ammocount = 30;
}
if (powerup == 9) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('mfgv');
soundfx.start(0, 1);
}
_root.weaponequip = 7;
_root.ammocount = 5;
}
_root.playpowerup1 = 1;
rcrate();
}
}
}
if (this._y < 347) {
this._y += cratespeed;
}
if (this._y == 347) {
cratespeed = 0;
}
}
}
}
// unknown tag 88 length 88
movieClip 878 {
}
movieClip 879 {
frame 1 {
stop();
}
frame 25 {
rpowered();
}
}
instance powered_mc of movieClip 879 {
onClipEvent (load) {
function rpowered() {
_root.playpowerup1 = 0;
this.gotoAndStop(1);
this._x = 99999;
this._y = 99999;
}
rpowered;
}
onClipEvent (enterFrame) {
if (_root.playpowerup1 == 1) {
this.play();
this._x = _root.hero._x;
this._y = _root.hero._y;
}
if (_root.playpowerup1 == 0) {
this._x = 99999;
this._y = 99999;
}
}
}
movieClip 883 {
}
movieClip 884 {
frame 1 {
stop();
}
frame 9 {
bounce = 0;
}
}
movieClip 885 {
frame 1 {
stop();
}
instance of movieClip 884 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.crateboxh._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
}
instance crateboxh of movieClip 885 {
onClipEvent (load) {
function hcrate() {
cratespeed = 10;
this.gotoAndPlay(1);
this._x = Math.floor(Math.random() * 1000) + 300;
this._y = Math.floor(Math.random() * -10000) - 15000;
}
cratespeed = 10;
hcrate();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (hitTest(_root.hero._x, _y) == true) {
if (this._y >= 347) {
_root.pickuparrow._x = this._x;
_root.pickuparrow._y = this._y;
if (Key.isDown(40) || Key.isDown(83)) {
_root.hero.play();
_root.poweredh.play();
_root.poweredh._x = _root.hero._x;
_root.poweredh._y = _root.hero._y;
_root.playpoweruph = 1;
_root.roundcrates += 1;
if (_root.hremaining <= 30) {
_root.clutchlife = 1;
}
_root.hremaining += 50;
hcrate();
}
}
}
if (this._y < 347) {
this._y += cratespeed;
}
if (this._y == 347) {
cratespeed = 0;
}
}
}
}
movieClip 886 {
frame 1 {
stop();
}
frame 170 {
_root.crateboxa.rcrate();
}
}
movieClip 887 {
frame 1 {
stop();
}
frame 170 {
_root.crateboxa.rcrate();
}
}
movieClip 888 {
frame 1 {
stop();
}
frame 241 {
_root.crateboxa.rcrate();
}
}
movieClip 889 {
frame 1 {
stop();
}
frame 240 {
_root.crateboxa.rcrate();
}
}
movieClip 890 {
frame 1 {
stop();
}
frame 240 {
_root.crateboxa.rcrate();
}
}
movieClip 891 {
frame 1 {
stop();
}
frame 240 {
_root.crateboxa.rcrate();
}
}
movieClip 892 {
frame 1 {
stop();
}
frame 240 {
_root.crateboxa.rcrate();
}
}
movieClip 893 {
frame 1 {
stop();
}
frame 240 {
_root.crateboxa.rcrate();
}
}
movieClip 894 {
frame 1 {
stop();
}
frame 239 {
_root.crateboxa.rcrate();
}
}
movieClip 895 {
frame 1 {
powerup = Math.floor(Math.random() * 9) + 1;
powerup2 = Math.floor(Math.random() * 100) + 1;
}
frame 2 {
powerup = Math.floor(Math.random() * 9) + 1;
powerup2 = Math.floor(Math.random() * 100) + 1;
if (powerup == 1) {
this.gotoAndStop(3);
}
if (powerup == 2) {
if (powerup2 <= 40) {
this.gotoAndStop(4);
} else {
this.gotoAndPlay(1);
}
}
if (powerup == 3) {
if (powerup2 <= 40) {
this.gotoAndStop(5);
} else {
this.gotoAndPlay(1);
}
}
if (powerup == 4) {
if (powerup2 <= 40) {
this.gotoAndStop(6);
} else {
this.gotoAndPlay(1);
}
}
if (powerup == 5) {
if (_root.wunlock1 == 1) {
if (powerup2 <= 25) {
this.gotoAndStop(7);
} else {
this.gotoAndPlay(1);
}
} else {
this.gotoAndPlay(1);
}
}
if (powerup == 6) {
if (_root.wunlock2 == 1) {
if (powerup2 <= 30) {
this.gotoAndStop(8);
} else {
this.gotoAndPlay(1);
}
} else {
this.gotoAndPlay(1);
}
}
if (powerup == 7) {
if (_root.wunlock3 == 1) {
if (powerup2 <= 20) {
this.gotoAndStop(9);
} else {
this.gotoAndPlay(1);
}
} else {
this.gotoAndPlay(1);
}
}
if (powerup == 8) {
if (_root.wunlock4 == 1) {
if (powerup2 <= 20) {
this.gotoAndStop(10);
} else {
this.gotoAndPlay(1);
}
} else {
this.gotoAndPlay(1);
}
}
if (powerup == 9) {
if (_root.wunlock5 == 1) {
if (powerup2 <= 15) {
this.gotoAndStop(11);
} else {
this.gotoAndPlay(1);
}
} else {
this.gotoAndPlay(1);
}
}
}
instance of movieClip 886 {
onClipEvent (enterFrame) {
if (_root.crateboxa._y >= 347) {
this.play();
}
}
}
instance of movieClip 887 {
onClipEvent (enterFrame) {
if (_root.crateboxa._y >= 347) {
this.play();
}
}
}
instance of movieClip 888 {
onClipEvent (enterFrame) {
if (_root.crateboxa._y >= 347) {
this.play();
}
}
}
instance of movieClip 889 {
onClipEvent (enterFrame) {
if (_root.crateboxa._y >= 347) {
this.play();
}
}
}
instance of movieClip 890 {
onClipEvent (enterFrame) {
if (_root.crateboxa._y >= 347) {
this.play();
}
}
}
instance of movieClip 891 {
onClipEvent (enterFrame) {
if (_root.crateboxa._y >= 347) {
this.play();
}
}
}
instance of movieClip 892 {
onClipEvent (enterFrame) {
if (_root.crateboxa._y >= 347) {
this.play();
}
}
}
instance of movieClip 893 {
onClipEvent (enterFrame) {
if (_root.crateboxa._y >= 347) {
this.play();
}
}
}
frame 11 {
stop();
}
instance of movieClip 894 {
onClipEvent (enterFrame) {
if (_root.crateboxa._y >= 347) {
this.play();
}
}
}
}
instance crateboxa of movieClip 895 {
onClipEvent (load) {
function rcrate() {
cratespeed = 10;
this.gotoAndPlay(1);
this._x = Math.floor(Math.random() * 1000) + 300;
this._y = Math.floor(Math.random() * -1500) - 1000;
}
cratespeed = 10;
rcrate();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (_root.difficulty >= 6) {
if (hitTest(_root.cratebox) == true) {
if (this._x >= _root.cratebox._x) {
this._x += 20;
}
if (this._x < _root.cratebox._x) {
this._x -= 20;
}
}
if (hitTest(_root.crateboxh) == true) {
if (this._x >= _root.crateboxh._x) {
this._x += 20;
}
if (this._x < _root.crateboxh._x) {
this._x -= 20;
}
}
if (hitTest(_root.hero._x, _y) == true) {
if (this._y >= 347) {
_root.pickuparrow._x = this._x;
_root.pickuparrow._y = this._y;
if (Key.isDown(40) || Key.isDown(83)) {
_root.hero.play();
_root.powered_mc.play();
_root.powered_mc._x = _root.hero._x;
_root.powered_mc._y = _root.hero._y;
_root.roundcrates += 1;
_root.powerused = 1;
_root.minigunfx.stop('minigunshot');
_root.flamethrowerfx.stop('flamesfx');
_root.hitbox4._y = 99999;
_root.hitbox4._x = 99999;
_root.hitbox4speed = 0;
_root.hitbox2._y = 99999;
_root.hitbox2._x = 99999;
_root.hitbox2speed = 0;
_root.hitbox3._y = 99999;
_root.hitbox3._x = 99999;
if (powerup == 1) {
if (_root.weaponequip == 3) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('dualpistolsv');
soundfx.start(0, 1);
}
_root.pistoldual = 1;
_root.weaponequip = 3;
if (_root.plusammo1 == 0) {
_root.ammocount = 12;
}
if (_root.plusammo1 == 1) {
_root.ammocount = 20;
}
}
if (_root.weaponequip != 3) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('pistolv');
soundfx.start(0, 1);
}
_root.weaponequip = 3;
if (_root.plusammo1 == 0) {
_root.ammocount = 12;
}
if (_root.plusammo1 == 1) {
_root.ammocount = 20;
}
}
}
if (powerup == 2) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('shotgunv');
soundfx.start(0, 1);
}
_root.weaponequip = 8;
if (_root.plusammo5 == 0) {
_root.ammocount = 8;
}
if (_root.plusammo5 == 1) {
_root.ammocount = 15;
}
}
if (powerup == 3) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('snipergunv');
soundfx.start(0, 1);
}
_root.weaponequip = 5;
if (_root.plusammo3 == 0) {
_root.ammocount = 10;
}
if (_root.plusammo3 == 1) {
_root.ammocount = 15;
}
}
if (powerup == 4) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('assaultriflev');
soundfx.start(0, 1);
}
_root.weaponequip = 10;
if (_root.plusammo6 == 0) {
_root.ammocount = 30;
}
if (_root.plusammo6 == 1) {
_root.ammocount = 50;
}
}
if (powerup == 5) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('minigunv');
soundfx.start(0, 1);
}
_root.weaponequip = 4;
if (_root.plusammo2 == 0) {
_root.ammocount = 30;
}
if (_root.plusammo2 == 1) {
_root.ammocount = 50;
}
}
if (powerup == 6) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('riotv');
soundfx.start(0, 1);
}
_root.weaponequip = 9;
_root.ammocount = 50;
}
if (powerup == 7) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('flamev');
soundfx.start(0, 1);
}
_root.weaponequip = 6;
if (_root.plusammo4 == 0) {
_root.ammocount = 30;
}
if (_root.plusammo4 == 1) {
_root.ammocount = 50;
}
}
if (powerup == 8) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('godhandv');
soundfx.start(0, 1);
}
_root.weaponequip = 2;
_root.ammocount = 30;
}
if (powerup == 9) {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('mfgv');
soundfx.start(0, 1);
}
_root.weaponequip = 7;
_root.ammocount = 5;
}
_root.playpowerup1 = 1;
rcrate();
}
}
}
if (this._y < 347) {
this._y += cratespeed;
}
if (this._y == 347) {
cratespeed = 0;
}
}
}
}
}
instance pickuparrow of movieClip 816 {
onClipEvent (enterFrame) {
this._x = 99999;
}
}
movieClip 898 {
}
movieClip 899 {
frame 25 {
_root.kstreak.rpowered();
}
}
movieClip 901 {
}
movieClip 902 {
frame 25 {
_root.kstreak.rpowered();
}
}
movieClip 904 {
}
movieClip 905 {
frame 25 {
_root.kstreak.rpowered();
}
}
movieClip 906 {
frame 1 {
stop();
}
}
instance kstreak of movieClip 906 {
onClipEvent (load) {
function rpowered() {
_root.kstreakup = 0;
this.gotoAndStop(1);
this._visible = false;
this._x = 99999;
this._y = 99999;
}
rpowered;
}
onClipEvent (enterFrame) {
if (_root.kstreakup == 1) {
this._visible = true;
this.gotoAndStop(2);
this._x = _root.hero._x;
this._y = _root.hero._y;
}
if (_root.kstreakup == 2) {
this._visible = true;
this.gotoAndStop(3);
this._x = _root.hero._x;
this._y = _root.hero._y;
}
if (_root.kstreakup == 3) {
this._visible = true;
this.gotoAndStop(4);
this._x = _root.hero._x;
this._y = _root.hero._y;
}
if (_root.kstreakup == 0) {
this._visible = false;
this._x = 99999;
this._y = 99999;
}
}
}
movieClip 908 {
}
movieClip 909 {
frame 1 {
stop();
}
frame 2 {
if (_root.masterfx == 1) {
soundfx = new Sound();
soundfx.attachSound('healthget');
soundfx.start(0, 1);
}
}
frame 25 {
rpowered();
}
}
instance poweredh of movieClip 909 {
onClipEvent (load) {
function rpowered() {
_root.playpoweruph = 0;
this.gotoAndStop(1);
this._x = 99999;
this._y = 99999;
}
rpowered;
}
onClipEvent (enterFrame) {
if (_root.playpoweruph == 1) {
this.play();
this._x = _root.hero._x;
this._y = _root.hero._y;
}
if (_root.playpoweruph == 0) {
this._x = 99999;
this._y = 99999;
}
}
}
movieClip 911 {
frame 1 {
stop();
}
frame 25 {
rdrop();
}
}
instance powered_mc of movieClip 911 {
onClipEvent (load) {
function rdrop() {
_root.dropweapon = 0;
this.gotoAndStop(1);
this._x = 99999;
this._y = 99999;
}
rdrop();
}
onClipEvent (enterFrame) {
if (_root.dropweapon == 1) {
this.play();
this._x = _root.hero._x;
this._y = _root.hero._y;
}
if (_root.dropweapon == 0) {
this._x = 99999;
this._y = 99999;
}
}
}
movieClip 915 {
}
movieClip 916 {
frame 1 {
stop();
}
frame 170 {
_root.crateboxp.rcrateboxp();
}
}
movieClip 917 {
frame 1 {
powerup = 1;
}
instance of movieClip 916 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
frame 2 {
powerup = 1;
if (powerup == 1) {
this.gotoAndStop(3);
}
if (powerup == 2) {
this.gotoAndStop(4);
} else {
this.gotoAndPlay(1);
}
if (powerup >= 3) {
this.gotoAndStop(5);
} else {
this.gotoAndPlay(1);
}
}
instance of movieClip 916 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.crateboxp._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
instance of movieClip 847 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
instance of movieClip 852 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
instance of movieClip 857 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
instance of movieClip 862 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
instance of movieClip 865 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
instance of movieClip 868 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
instance of movieClip 871 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
frame 11 {
stop();
}
instance of movieClip 874 {
onClipEvent (load) {
function rbounce() {
bounce = 1;
}
bounce = 1;
}
onClipEvent (enterFrame) {
if (_root.cratebox._y >= 347) {
if (bounce == 1) {
this.play();
}
}
}
}
}
instance crateboxp of movieClip 917 {
onClipEvent (load) {
function rcrateboxp() {
cratespeed = 10;
this.gotoAndPlay(1);
this._x = Math.floor(Math.random() * 1000) + 300;
this._y = Math.floor(Math.random() * -5000) - 12000;
}
cratespeed = 10;
rcrateboxp();
}
onClipEvent (enterFrame) {
if (_root.gamepause == 0) {
if (hitTest(_root.crateboxa) == true) {
if (this._x >= _root.crateboxa._x) {
this._x += 20;
}
if (this._x < _root.crateboxa._x) {
this._x -= 20;
}
}
if (hitTest(_root.crateboxh) == true) {
if (this._x >= _root.crateboxh._x) {
this._x += 20;
}
if (this._x < _root.crateboxh._x) {
this._x -= 20;
}
}
if (hitTest(_root.cratebox) == true) {
if (this._x >= _root.cratebox._x) {
this._x += 20;
}
if (this._x < _root.cratebox._x) {
this._x -= 20;
}
}
if (hitTest(_root.hero._x, _y) == true) {
if (this._y >= 347) {
_root.pickuparrow._x = this._x;
_root.pickuparrow._y = this._y;
if (Key.isDown(40) || Key.isDown(83)) {
_root.playpowerup1 = 1;
_root.powered_mc.play();
_root.powered_mc._x = _root.hero._x;
_root.powered_mc._y = _root.hero._y;
_root.roundcrates += 1;
if (powerup == 1) {
_root.doubledamage = 1;
_root.dmgmulti = 2;
_root.mainhud.powerplayer.gotoAndStop(2);
_root.mainhud.powerplayer.p1.gotoAndPlay(1);
soundfx = new Sound();
soundfx.attachSound('healthget');
soundfx.start(0, 1);
}
rcrateboxp();
}
}
}
if (this._y < 347) {
this._y += cratespeed;
}
if (this._y == 347) {
cratespeed = 0;
}
}
}
}
movieClip 919 {
frame 10 {
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
gotoAndStop(1);
}
}
instance hitbox1 of movieClip 919 {
onClipEvent (enterFrame) {
this._x += _root.hitbox1speed;
}
}
instance hitbox2 of movieClip 919 {
onClipEvent (enterFrame) {
this._x += _root.hitbox2speed;
}
}
instance hitbox3 of movieClip 919 {
onClipEvent (enterFrame) {
this._x += _root.hitbox3speed;
}
}
movieClip 921 {
frame 30 {
_root.hitbox1._x = 99999;
_root.hitbox1._y = 99999;
gotoAndStop(1);
}
}
instance hitbox4 of movieClip 921 {
onClipEvent (enterFrame) {
this._x += _root.hitbox4speed;
}
}
movieClip 923 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v3 = sX / this._width;
var v4 = sY / this._height;
_parent._x = cX - this._x * v3;
_parent._y = cY - this._y * v4;
_parent._xscale = 100 * v3;
_parent._yscale = 100 * v4;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
this.onUnload = resetStage;
}
}
instance vcam of movieClip 923 {
onClipEvent (enterFrame) {
if (_root.hero._x >= 300) {
if (_root.hero._x <= 1300) {
_y = _y + (_root.hero._y - 120 - _y);
_x = _x + (_root.hero._x - _x);
}
}
}
}
movieClip 926 {
}
movieClip 928 {
}
movieClip 933 {
}
movieClip 934 {
frame 80 {
stop();
}
}
movieClip 936 {
}
movieClip 937 {
frame 80 {
stop();
}
}
movieClip 939 {
}
movieClip 940 {
frame 80 {
stop();
}
}
movieClip 942 {
}
movieClip 943 {
frame 80 {
stop();
}
}
movieClip 945 {
}
movieClip 946 {
frame 80 {
stop();
}
}
movieClip 948 {
}
movieClip 949 {
frame 80 {
stop();
}
}
movieClip 951 {
}
movieClip 952 {
frame 80 {
stop();
}
}
movieClip 954 {
}
movieClip 955 {
frame 80 {
stop();
}
}
movieClip 957 {
}
movieClip 958 {
frame 80 {
stop();
}
}
movieClip 960 {
}
movieClip 961 {
frame 80 {
stop();
}
}
movieClip 963 {
}
movieClip 964 {
frame 80 {
stop();
}
}
movieClip 966 {
}
movieClip 967 {
frame 80 {
stop();
}
}
movieClip 969 {
}
movieClip 970 {
frame 80 {
stop();
}
}
movieClip 972 {
}
movieClip 973 {
frame 80 {
stop();
}
}
movieClip 975 {
}
movieClip 976 {
frame 80 {
stop();
}
}
movieClip 978 {
}
movieClip 979 {
frame 80 {
stop();
}
}
movieClip 981 {
}
movieClip 982 {
frame 80 {
stop();
}
}
movieClip 984 {
}
movieClip 985 {
frame 80 {
stop();
}
}
movieClip 987 {
}
movieClip 988 {
frame 80 {
stop();
}
}
movieClip 990 {
}
movieClip 991 {
frame 80 {
stop();
}
}
movieClip 992 {
frame 1 {
stop();
}
frame 2 {
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
_root.achievement1 = 1;
_root.achtotal += 1;
_root.achind = 1;
}
frame 3 {
_root.achievement2 = 1;
_root.achtotal += 1;
_root.achind = 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 4 {
_root.achievement3 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 5 {
_root.achievement4 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 6 {
_root.achievement5 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 7 {
_root.achievement6 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 8 {
_root.achievement7 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 9 {
_root.achievement8 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 10 {
_root.achievement9 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 11 {
_root.achievement10 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 12 {
_root.achievement11 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 13 {
_root.achievement12 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 14 {
_root.achievement13 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 15 {
_root.achievement14 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 16 {
_root.achievement15 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 17 {
_root.achievement16 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 18 {
_root.achievement17 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 19 {
_root.achievement18 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 20 {
_root.achievement19 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
frame 21 {
_root.achievement20 = 1;
_root.achind = 1;
_root.achtotal += 1;
if (_root.masterfx == 1) {
soundach = new Sound();
soundach.attachSound('achsfx');
soundach.start(0, 1);
}
}
}
movieClip 995 {
frame 1 {
stop();
}
frame 2 {
_root.ndcount = _root.killcount + 200;
}
}
movieClip 998 {
}
movieClip 999 {
frame 1 {
_root.kstreakup = 1;
}
frame 40 {
_root.kstreakup = 0;
stop();
}
}
movieClip 1001 {
}
movieClip 1002 {
frame 2 {
if (_root.masterfx == 1) {
soundfx1 = new Sound();
soundfx1.attachSound('killcombosfx');
soundfx1.start(0, 1);
}
}
frame 120 {
stop();
}
}
movieClip 1005 {
}
movieClip 1006 {
frame 1 {
stop();
}
frame 136 {
_root.kctutorial = 0;
stop();
}
}
movieClip 1008 {
}
movieClip 1010 {
}
movieClip 1011 {
frame 2 {
if (_root.masterfx == 1) {
soundfx1 = new Sound();
soundfx1.attachSound('killcombosfx');
soundfx1.start(0, 1);
}
}
frame 120 {
stop();
}
}
movieClip 1013 {
}
movieClip 1015 {
}
movieClip 1016 {
frame 2 {
if (_root.masterfx == 1) {
soundfx1 = new Sound();
soundfx1.attachSound('killcombosfx');
soundfx1.start(0, 1);
}
}
frame 120 {
stop();
}
}
movieClip 1017 {
frame 1 {
stop();
}
instance of movieClip 1006 {
onClipEvent (enterFrame) {
if (_root.kctutorial == 1) {
this.play();
} else {
this.stop();
}
}
}
}
movieClip 1022 {
}
movieClip 1026 {
frame 230 {
_root.doubledamage = 0;
_root.dmgmulti = 1;
}
frame 233 {
_root.mainhud.powerplayer.gotoAndStop(1);
}
}
movieClip 1027 {
frame 1 {
stop();
}
}
movieClip 1031 {
frame 1 {
_root.screenshake = 0;
zdeathfx = Math.floor(Math.random() * 5) + 1;
stop();
}
frame 2 {
_root.screenshake = 1;
_root.hremaining -= 5;
_root.achdmgtaken = 1;
}
frame 3 {
hurtsfx = Math.floor(Math.random() * 3) + 1;
if (_root.masterfx == 1) {
if (hurtsfx == 1) {
hurtfx = new Sound();
hurtfx.attachSound('hurt1');
hurtfx.start(0, 1);
}
if (hurtsfx == 2) {
hurtfx = new Sound();
hurtfx.attachSound('hurt2');
hurtfx.start(0, 1);
}
if (hurtsfx >= 3) {
hurtfx = new Sound();
hurtfx.attachSound('hurt3');
hurtfx.start(0, 1);
}
}
}
frame 5 {
_root.screenshake = 0;
}
frame 35 {
_root.screenshake = 0;
gotoAndStop(1);
}
}
movieClip 1037 {
}
movieClip 1038 {
}
movieClip 1041 {
}
movieClip 1047 {
}
movieClip 1050 {
}
movieClip 1053 {
}
movieClip 1058 {
}
movieClip 1066 {
}
movieClip 1077 {
}
movieClip 1081 {
}
movieClip 1083 {
}
movieClip 1086 {
}
movieClip 1088 {
}
movieClip 1091 {
}
movieClip 1094 {
}
movieClip 1098 {
}
movieClip 1115 {
}
movieClip 1117 {
}
movieClip 1118 {
frame 1 {
_root.pistoldual = 0;
_root.weaponequip = 1;
_root.minigunfx.stop('minigunshot');
_root.flamethrowerfx.stop('flamesfx');
stop();
}
frame 2 {
_root.pistoldual = 0;
_root.ammocount = 12;
}
instance of movieClip 1038 {
onClipEvent (enterFrame) {
if (_root.ammocount == 12) {
this.gotoAndStop(1);
}
if (_root.ammocount == 11) {
this.gotoAndStop(2);
}
if (_root.ammocount == 10) {
this.gotoAndStop(3);
}
if (_root.ammocount == 9) {
this.gotoAndStop(4);
}
if (_root.ammocount == 8) {
this.gotoAndStop(5);
}
if (_root.ammocount == 7) {
this.gotoAndStop(6);
}
if (_root.ammocount == 6) {
this.gotoAndStop(7);
}
if (_root.ammocount == 5) {
this.gotoAndStop(8);
}
if (_root.ammocount == 4) {
this.gotoAndStop(9);
}
if (_root.ammocount == 3) {
this.gotoAndStop(10);
}
if (_root.ammocount == 2) {
this.gotoAndStop(11);
}
if (_root.ammocount == 1) {
this.gotoAndStop(12);
}
if (_root.ammocount == 0) {
this.gotoAndStop(13);
}
}
}
frame 3 {
_root.ammocount = 12;
}
instance of movieClip 1041 {
onClipEvent (enterFrame) {
if (_root.ammocount == 12) {
this.gotoAndStop(1);
}
if (_root.ammocount == 11) {
this.gotoAndStop(2);
}
if (_root.ammocount == 10) {
this.gotoAndStop(3);
}
if (_root.ammocount == 9) {
this.gotoAndStop(4);
}
if (_root.ammocount == 8) {
this.gotoAndStop(5);
}
if (_root.ammocount == 7) {
this.gotoAndStop(6);
}
if (_root.ammocount == 6) {
this.gotoAndStop(7);
}
if (_root.ammocount == 5) {
this.gotoAndStop(8);
}
if (_root.ammocount == 4) {
this.gotoAndStop(9);
}
if (_root.ammocount == 3) {
this.gotoAndStop(10);
}
if (_root.ammocount == 2) {
this.gotoAndStop(11);
}
if (_root.ammocount == 1) {
this.gotoAndStop(12);
}
if (_root.ammocount == 0) {
this.gotoAndStop(13);
}
}
}
frame 4 {
_root.pistoldual = 0;
_root.ammocount = 30;
}
instance of movieClip 1047 {
onClipEvent (enterFrame) {
if (_root.ammocount == 30) {
this.gotoAndStop(31);
}
if (_root.ammocount == 29) {
this.gotoAndStop(30);
}
if (_root.ammocount == 28) {
this.gotoAndStop(29);
}
if (_root.ammocount == 27) {
this.gotoAndStop(28);
}
if (_root.ammocount == 26) {
this.gotoAndStop(27);
}
if (_root.ammocount == 25) {
this.gotoAndStop(26);
}
if (_root.ammocount == 24) {
this.gotoAndStop(25);
}
if (_root.ammocount == 23) {
this.gotoAndStop(24);
}
if (_root.ammocount == 22) {
this.gotoAndStop(23);
}
if (_root.ammocount == 21) {
this.gotoAndStop(22);
}
if (_root.ammocount == 20) {
this.gotoAndStop(21);
}
if (_root.ammocount == 19) {
this.gotoAndStop(20);
}
if (_root.ammocount == 18) {
this.gotoAndStop(19);
}
if (_root.ammocount == 17) {
this.gotoAndStop(18);
}
if (_root.ammocount == 16) {
this.gotoAndStop(17);
}
if (_root.ammocount == 15) {
this.gotoAndStop(16);
}
if (_root.ammocount == 14) {
this.gotoAndStop(15);
}
if (_root.ammocount == 13) {
this.gotoAndStop(14);
}
if (_root.ammocount == 12) {
this.gotoAndStop(13);
}
if (_root.ammocount == 11) {
this.gotoAndStop(12);
}
if (_root.ammocount == 10) {
this.gotoAndStop(11);
}
if (_root.ammocount == 9) {
this.gotoAndStop(10);
}
if (_root.ammocount == 8) {
this.gotoAndStop(9);
}
if (_root.ammocount == 7) {
this.gotoAndStop(8);
}
if (_root.ammocount == 6) {
this.gotoAndStop(7);
}
if (_root.ammocount == 5) {
this.gotoAndStop(6);
}
if (_root.ammocount == 4) {
this.gotoAndStop(5);
}
if (_root.ammocount == 3) {
this.gotoAndStop(4);
}
if (_root.ammocount == 2) {
this.gotoAndStop(3);
}
if (_root.ammocount == 1) {
this.gotoAndStop(2);
}
if (_root.ammocount == 0) {
this.gotoAndStop(1);
}
}
}
frame 5 {
_root.pistoldual = 0;
_root.ammocount = 30;
}
instance of movieClip 1050 {
onClipEvent (enterFrame) {
if (_root.ammocount == 30) {
this.gotoAndStop(31);
}
if (_root.ammocount == 29) {
this.gotoAndStop(30);
}
if (_root.ammocount == 28) {
this.gotoAndStop(29);
}
if (_root.ammocount == 27) {
this.gotoAndStop(28);
}
if (_root.ammocount == 26) {
this.gotoAndStop(27);
}
if (_root.ammocount == 25) {
this.gotoAndStop(26);
}
if (_root.ammocount == 24) {
this.gotoAndStop(25);
}
if (_root.ammocount == 23) {
this.gotoAndStop(24);
}
if (_root.ammocount == 22) {
this.gotoAndStop(23);
}
if (_root.ammocount == 21) {
this.gotoAndStop(22);
}
if (_root.ammocount == 20) {
this.gotoAndStop(21);
}
if (_root.ammocount == 19) {
this.gotoAndStop(20);
}
if (_root.ammocount == 18) {
this.gotoAndStop(19);
}
if (_root.ammocount == 17) {
this.gotoAndStop(18);
}
if (_root.ammocount == 16) {
this.gotoAndStop(17);
}
if (_root.ammocount == 15) {
this.gotoAndStop(16);
}
if (_root.ammocount == 14) {
this.gotoAndStop(15);
}
if (_root.ammocount == 13) {
this.gotoAndStop(14);
}
if (_root.ammocount == 12) {
this.gotoAndStop(13);
}
if (_root.ammocount == 11) {
this.gotoAndStop(12);
}
if (_root.ammocount == 10) {
this.gotoAndStop(11);
}
if (_root.ammocount == 9) {
this.gotoAndStop(10);
}
if (_root.ammocount == 8) {
this.gotoAndStop(9);
}
if (_root.ammocount == 7) {
this.gotoAndStop(8);
}
if (_root.ammocount == 6) {
this.gotoAndStop(7);
}
if (_root.ammocount == 5) {
this.gotoAndStop(6);
}
if (_root.ammocount == 4) {
this.gotoAndStop(5);
}
if (_root.ammocount == 3) {
this.gotoAndStop(4);
}
if (_root.ammocount == 2) {
this.gotoAndStop(3);
}
if (_root.ammocount == 1) {
this.gotoAndStop(2);
}
if (_root.ammocount == 0) {
this.gotoAndStop(1);
}
}
}
frame 6 {
_root.pistoldual = 0;
_root.ammocount = 10;
}
instance of movieClip 1053 {
onClipEvent (enterFrame) {
if (_root.ammocount == 10) {
this.gotoAndStop(11);
}
if (_root.ammocount == 9) {
this.gotoAndStop(10);
}
if (_root.ammocount == 8) {
this.gotoAndStop(9);
}
if (_root.ammocount == 7) {
this.gotoAndStop(8);
}
if (_root.ammocount == 6) {
this.gotoAndStop(7);
}
if (_root.ammocount == 5) {
this.gotoAndStop(6);
}
if (_root.ammocount == 4) {
this.gotoAndStop(5);
}
if (_root.ammocount == 3) {
this.gotoAndStop(4);
}
if (_root.ammocount == 2) {
this.gotoAndStop(3);
}
if (_root.ammocount == 1) {
this.gotoAndStop(2);
}
if (_root.ammocount == 0) {
this.gotoAndStop(1);
}
}
}
frame 7 {
_root.pistoldual = 0;
_root.ammocount = 30;
}
instance of movieClip 1058 {
onClipEvent (enterFrame) {
if (_root.ammocount == 30) {
this.gotoAndStop(31);
}
if (_root.ammocount == 29) {
this.gotoAndStop(30);
}
if (_root.ammocount == 28) {
this.gotoAndStop(29);
}
if (_root.ammocount == 27) {
this.gotoAndStop(28);
}
if (_root.ammocount == 26) {
this.gotoAndStop(27);
}
if (_root.ammocount == 25) {
this.gotoAndStop(26);
}
if (_root.ammocount == 24) {
this.gotoAndStop(25);
}
if (_root.ammocount == 23) {
this.gotoAndStop(24);
}
if (_root.ammocount == 22) {
this.gotoAndStop(23);
}
if (_root.ammocount == 21) {
this.gotoAndStop(22);
}
if (_root.ammocount == 20) {
this.gotoAndStop(21);
}
if (_root.ammocount == 19) {
this.gotoAndStop(20);
}
if (_root.ammocount == 18) {
this.gotoAndStop(19);
}
if (_root.ammocount == 17) {
this.gotoAndStop(18);
}
if (_root.ammocount == 16) {
this.gotoAndStop(17);
}
if (_root.ammocount == 15) {
this.gotoAndStop(16);
}
if (_root.ammocount == 14) {
this.gotoAndStop(15);
}
if (_root.ammocount == 13) {
this.gotoAndStop(14);
}
if (_root.ammocount == 12) {
this.gotoAndStop(13);
}
if (_root.ammocount == 11) {
this.gotoAndStop(12);
}
if (_root.ammocount == 10) {
this.gotoAndStop(11);
}
if (_root.ammocount == 9) {
this.gotoAndStop(10);
}
if (_root.ammocount == 8) {
this.gotoAndStop(9);
}
if (_root.ammocount == 7) {
this.gotoAndStop(8);
}
if (_root.ammocount == 6) {
this.gotoAndStop(7);
}
if (_root.ammocount == 5) {
this.gotoAndStop(6);
}
if (_root.ammocount == 4) {
this.gotoAndStop(5);
}
if (_root.ammocount == 3) {
this.gotoAndStop(4);
}
if (_root.ammocount == 2) {
this.gotoAndStop(3);
}
if (_root.ammocount == 1) {
this.gotoAndStop(2);
}
if (_root.ammocount == 0) {
this.gotoAndStop(1);
}
}
}
frame 8 {
_root.pistoldual = 0;
_root.ammocount = 5;
}
instance of movieClip 1066 {
onClipEvent (enterFrame) {
if (_root.ammocount == 5) {
this.gotoAndStop(6);
}
if (_root.ammocount == 4) {
this.gotoAndStop(5);
}
if (_root.ammocount == 3) {
this.gotoAndStop(4);
}
if (_root.ammocount == 2) {
this.gotoAndStop(3);
}
if (_root.ammocount == 1) {
this.gotoAndStop(2);
}
if (_root.ammocount == 0) {
this.gotoAndStop(1);
}
}
}
frame 9 {
_root.pistoldual = 0;
_root.ammocount = 8;
}
instance of movieClip 1077 {
onClipEvent (enterFrame) {
if (_root.ammocount >= 8) {
this.gotoAndStop(9);
}
if (_root.ammocount == 7) {
this.gotoAndStop(8);
}
if (_root.ammocount == 6) {
this.gotoAndStop(7);
}
if (_root.ammocount == 5) {
this.gotoAndStop(6);
}
if (_root.ammocount == 4) {
this.gotoAndStop(5);
}
if (_root.ammocount == 3) {
this.gotoAndStop(4);
}
if (_root.ammocount == 2) {
this.gotoAndStop(3);
}
if (_root.ammocount == 1) {
this.gotoAndStop(2);
}
if (_root.ammocount == 0) {
this.gotoAndStop(1);
}
}
}
frame 10 {
_root.pistoldual = 0;
_root.ammocount = 50;
}
instance of movieClip 1081 {
onClipEvent (enterFrame) {
if (_root.ammocount == 50) {
this.gotoAndStop(51);
}
if (_root.ammocount == 49) {
this.gotoAndStop(50);
}
if (_root.ammocount == 48) {
this.gotoAndStop(49);
}
if (_root.ammocount == 47) {
this.gotoAndStop(48);
}
if (_root.ammocount == 46) {
this.gotoAndStop(47);
}
if (_root.ammocount == 45) {
this.gotoAndStop(46);
}
if (_root.ammocount == 44) {
this.gotoAndStop(45);
}
if (_root.ammocount == 43) {
this.gotoAndStop(44);
}
if (_root.ammocount == 42) {
this.gotoAndStop(43);
}
if (_root.ammocount == 41) {
this.gotoAndStop(42);
}
if (_root.ammocount == 40) {
this.gotoAndStop(41);
}
if (_root.ammocount == 39) {
this.gotoAndStop(40);
}
if (_root.ammocount == 38) {
this.gotoAndStop(39);
}
if (_root.ammocount == 37) {
this.gotoAndStop(38);
}
if (_root.ammocount == 36) {
this.gotoAndStop(37);
}
if (_root.ammocount == 35) {
this.gotoAndStop(36);
}
if (_root.ammocount == 34) {
this.gotoAndStop(35);
}
if (_root.ammocount == 33) {
this.gotoAndStop(34);
}
if (_root.ammocount == 32) {
this.gotoAndStop(33);
}
if (_root.ammocount == 31) {
this.gotoAndStop(32);
}
if (_root.ammocount == 30) {
this.gotoAndStop(31);
}
if (_root.ammocount == 29) {
this.gotoAndStop(30);
}
if (_root.ammocount == 28) {
this.gotoAndStop(29);
}
if (_root.ammocount == 27) {
this.gotoAndStop(28);
}
if (_root.ammocount == 26) {
this.gotoAndStop(27);
}
if (_root.ammocount == 25) {
this.gotoAndStop(26);
}
if (_root.ammocount == 24) {
this.gotoAndStop(25);
}
if (_root.ammocount == 23) {
this.gotoAndStop(24);
}
if (_root.ammocount == 22) {
this.gotoAndStop(23);
}
if (_root.ammocount == 21) {
this.gotoAndStop(22);
}
if (_root.ammocount == 20) {
this.gotoAndStop(21);
}
if (_root.ammocount == 19) {
this.gotoAndStop(20);
}
if (_root.ammocount == 18) {
this.gotoAndStop(19);
}
if (_root.ammocount == 17) {
this.gotoAndStop(18);
}
if (_root.ammocount == 16) {
this.gotoAndStop(17);
}
if (_root.ammocount == 15) {
this.gotoAndStop(16);
}
if (_root.ammocount == 14) {
this.gotoAndStop(15);
}
if (_root.ammocount == 13) {
this.gotoAndStop(14);
}
if (_root.ammocount == 12) {
this.gotoAndStop(13);
}
if (_root.ammocount == 11) {
this.gotoAndStop(12);
}
if (_root.ammocount == 10) {
this.gotoAndStop(11);
}
if (_root.ammocount == 9) {
this.gotoAndStop(10);
}
if (_root.ammocount == 8) {
this.gotoAndStop(9);
}
if (_root.ammocount == 7) {
this.gotoAndStop(8);
}
if (_root.ammocount == 6) {
this.gotoAndStop(7);
}
if (_root.ammocount == 5) {
this.gotoAndStop(6);
}
if (_root.ammocount == 4) {
this.gotoAndStop(5);
}
if (_root.ammocount == 3) {
this.gotoAndStop(4);
}
if (_root.ammocount == 2) {
this.gotoAndStop(3);
}
if (_root.ammocount == 1) {
this.gotoAndStop(2);
}
if (_root.ammocount == 0) {
this.gotoAndStop(1);
}
}
}
frame 11 {
_root.pistoldual = 0;
_root.ammocount = 30;
}
instance of movieClip 1083 {
onClipEvent (enterFrame) {
if (_root.ammocount >= 30) {
this.gotoAndStop(31);
}
if (_root.ammocount == 29) {
this.gotoAndStop(30);
}
if (_root.ammocount == 28) {
this.gotoAndStop(29);
}
if (_root.ammocount == 27) {
this.gotoAndStop(28);
}
if (_root.ammocount == 26) {
this.gotoAndStop(27);
}
if (_root.ammocount == 25) {
this.gotoAndStop(26);
}
if (_root.ammocount == 24) {
this.gotoAndStop(25);
}
if (_root.ammocount == 23) {
this.gotoAndStop(24);
}
if (_root.ammocount == 22) {
this.gotoAndStop(23);
}
if (_root.ammocount == 21) {
this.gotoAndStop(22);
}
if (_root.ammocount == 20) {
this.gotoAndStop(21);
}
if (_root.ammocount == 19) {
this.gotoAndStop(20);
}
if (_root.ammocount == 18) {
this.gotoAndStop(19);
}
if (_root.ammocount == 17) {
this.gotoAndStop(18);
}
if (_root.ammocount == 16) {
this.gotoAndStop(17);
}
if (_root.ammocount == 15) {
this.gotoAndStop(16);
}
if (_root.ammocount == 14) {
this.gotoAndStop(15);
}
if (_root.ammocount == 13) {
this.gotoAndStop(14);
}
if (_root.ammocount == 12) {
this.gotoAndStop(13);
}
if (_root.ammocount == 11) {
this.gotoAndStop(12);
}
if (_root.ammocount == 10) {
this.gotoAndStop(11);
}
if (_root.ammocount == 9) {
this.gotoAndStop(10);
}
if (_root.ammocount == 8) {
this.gotoAndStop(9);
}
if (_root.ammocount == 7) {
this.gotoAndStop(8);
}
if (_root.ammocount == 6) {
this.gotoAndStop(7);
}
if (_root.ammocount == 5) {
this.gotoAndStop(6);
}
if (_root.ammocount == 4) {
this.gotoAndStop(5);
}
if (_root.ammocount == 3) {
this.gotoAndStop(4);
}
if (_root.ammocount == 2) {
this.gotoAndStop(3);
}
if (_root.ammocount == 1) {
this.gotoAndStop(2);
}
if (_root.ammocount == 0) {
this.gotoAndStop(1);
}
}
}
frame 12 {
_root.pistoldual = 0;
_root.ammocount = 20;
}
instance of movieClip 1086 {
onClipEvent (enterFrame) {
if (_root.ammocount == 20) {
this.gotoAndStop(21);
}
if (_root.ammocount == 19) {
this.gotoAndStop(20);
}
if (_root.ammocount == 18) {
this.gotoAndStop(19);
}
if (_root.ammocount == 17) {
this.gotoAndStop(18);
}
if (_root.ammocount == 16) {
this.gotoAndStop(17);
}
if (_root.ammocount == 15) {
this.gotoAndStop(16);
}
if (_root.ammocount == 14) {
this.gotoAndStop(15);
}
if (_root.ammocount == 13) {
this.gotoAndStop(14);
}
if (_root.ammocount == 12) {
this.gotoAndStop(13);
}
if (_root.ammocount == 11) {
this.gotoAndStop(12);
}
if (_root.ammocount == 10) {
this.gotoAndStop(11);
}
if (_root.ammocount == 9) {
this.gotoAndStop(10);
}
if (_root.ammocount == 8) {
this.gotoAndStop(9);
}
if (_root.ammocount == 7) {
this.gotoAndStop(8);
}
if (_root.ammocount == 6) {
this.gotoAndStop(7);
}
if (_root.ammocount == 5) {
this.gotoAndStop(6);
}
if (_root.ammocount == 4) {
this.gotoAndStop(5);
}
if (_root.ammocount == 3) {
this.gotoAndStop(4);
}
if (_root.ammocount == 2) {
this.gotoAndStop(3);
}
if (_root.ammocount == 1) {
this.gotoAndStop(2);
}
if (_root.ammocount == 0) {
this.gotoAndStop(1);
}
}
}
frame 13 {
_root.ammocount = 20;
}
instance of movieClip 1088 {
onClipEvent (enterFrame) {
if (_root.ammocount == 20) {
this.gotoAndStop(21);
}
if (_root.ammocount == 19) {
this.gotoAndStop(20);
}
if (_root.ammocount == 18) {
this.gotoAndStop(19);
}
if (_root.ammocount == 17) {
this.gotoAndStop(18);
}
if (_root.ammocount == 16) {
this.gotoAndStop(17);
}
if (_root.ammocount == 15) {
this.gotoAndStop(16);
}
if (_root.ammocount == 14) {
this.gotoAndStop(15);
}
if (_root.ammocount == 13) {
this.gotoAndStop(14);
}
if (_root.ammocount == 12) {
this.gotoAndStop(13);
}
if (_root.ammocount == 11) {
this.gotoAndStop(12);
}
if (_root.ammocount == 10) {
this.gotoAndStop(11);
}
if (_root.ammocount == 9) {
this.gotoAndStop(10);
}
if (_root.ammocount == 8) {
this.gotoAndStop(9);
}
if (_root.ammocount == 7) {
this.gotoAndStop(8);
}
if (_root.ammocount == 6) {
this.gotoAndStop(7);
}
if (_root.ammocount == 5) {
this.gotoAndStop(6);
}
if (_root.ammocount == 4) {
this.gotoAndStop(5);
}
if (_root.ammocount == 3) {
this.gotoAndStop(4);
}
if (_root.ammocount == 2) {
this.gotoAndStop(3);
}
if (_root.ammocount == 1) {
this.gotoAndStop(2);
}
if (_root.ammocount == 0) {
this.gotoAndStop(1);
}
}
}
frame 14 {
_root.pistoldual = 0;
_root.ammocount = 50;
}
instance of movieClip 1091 {
onClipEvent (enterFrame) {
if (_root.ammocount == 50) {
this.gotoAndStop(51);
}
if (_root.ammocount == 49) {
this.gotoAndStop(50);
}
if (_root.ammocount == 48) {
this.gotoAndStop(49);
}
if (_root.ammocount == 47) {
this.gotoAndStop(48);
}
if (_root.ammocount == 46) {
this.gotoAndStop(47);
}
if (_root.ammocount == 45) {
this.gotoAndStop(46);
}
if (_root.ammocount == 44) {
this.gotoAndStop(45);
}
if (_root.ammocount == 43) {
this.gotoAndStop(44);
}
if (_root.ammocount == 42) {
this.gotoAndStop(43);
}
if (_root.ammocount == 41) {
this.gotoAndStop(42);
}
if (_root.ammocount == 40) {
this.gotoAndStop(41);
}
if (_root.ammocount == 39) {
this.gotoAndStop(40);
}
if (_root.ammocount == 38) {
this.gotoAndStop(39);
}
if (_root.ammocount == 37) {
this.gotoAndStop(38);
}
if (_root.ammocount == 36) {
this.gotoAndStop(37);
}
if (_root.ammocount == 35) {
this.gotoAndStop(36);
}
if (_root.ammocount == 34) {
this.gotoAndStop(35);
}
if (_root.ammocount == 33) {
this.gotoAndStop(34);
}
if (_root.ammocount == 32) {
this.gotoAndStop(33);
}
if (_root.ammocount == 31) {
this.gotoAndStop(32);
}
if (_root.ammocount == 30) {
this.gotoAndStop(31);
}
if (_root.ammocount == 29) {
this.gotoAndStop(30);
}
if (_root.ammocount == 28) {
this.gotoAndStop(29);
}
if (_root.ammocount == 27) {
this.gotoAndStop(28);
}
if (_root.ammocount == 26) {
this.gotoAndStop(27);
}
if (_root.ammocount == 25) {
this.gotoAndStop(26);
}
if (_root.ammocount == 24) {
this.gotoAndStop(25);
}
if (_root.ammocount == 23) {
this.gotoAndStop(24);
}
if (_root.ammocount == 22) {
this.gotoAndStop(23);
}
if (_root.ammocount == 21) {
this.gotoAndStop(22);
}
if (_root.ammocount == 20) {
this.gotoAndStop(21);
}
if (_root.ammocount == 19) {
this.gotoAndStop(20);
}
if (_root.ammocount == 18) {
this.gotoAndStop(19);
}
if (_root.ammocount == 17) {
this.gotoAndStop(18);
}
if (_root.ammocount == 16) {
this.gotoAndStop(17);
}
if (_root.ammocount == 15) {
this.gotoAndStop(16);
}
if (_root.ammocount == 14) {
this.gotoAndStop(15);
}
if (_root.ammocount == 13) {
this.gotoAndStop(14);
}
if (_root.ammocount == 12) {
this.gotoAndStop(13);
}
if (_root.ammocount == 11) {
this.gotoAndStop(12);
}
if (_root.ammocount == 10) {
this.gotoAndStop(11);
}
if (_root.ammocount == 9) {
this.gotoAndStop(10);
}
if (_root.ammocount == 8) {
this.gotoAndStop(9);
}
if (_root.ammocount == 7) {
this.gotoAndStop(8);
}
if (_root.ammocount == 6) {
this.gotoAndStop(7);
}
if (_root.ammocount == 5) {
this.gotoAndStop(6);
}
if (_root.ammocount == 4) {
this.gotoAndStop(5);
}
if (_root.ammocount == 3) {
this.gotoAndStop(4);
}
if (_root.ammocount == 2) {
this.gotoAndStop(3);
}
if (_root.ammocount == 1) {
this.gotoAndStop(2);
}
if (_root.ammocount == 0) {
this.gotoAndStop(1);
}
}
}
frame 15 {
_root.pistoldual = 0;
_root.ammocount = 15;
}
instance of movieClip 1094 {
onClipEvent (enterFrame) {
if (_root.ammocount == 16) {
this.gotoAndStop(17);
}
if (_root.ammocount == 15) {
this.gotoAndStop(16);
}
if (_root.ammocount == 14) {
this.gotoAndStop(15);
}
if (_root.ammocount == 13) {
this.gotoAndStop(14);
}
if (_root.ammocount == 12) {
this.gotoAndStop(13);
}
if (_root.ammocount == 11) {
this.gotoAndStop(12);
}
if (_root.ammocount == 10) {
this.gotoAndStop(11);
}
if (_root.ammocount == 9) {
this.gotoAndStop(10);
}
if (_root.ammocount == 8) {
this.gotoAndStop(9);
}
if (_root.ammocount == 7) {
this.gotoAndStop(8);
}
if (_root.ammocount == 6) {
this.gotoAndStop(7);
}
if (_root.ammocount == 5) {
this.gotoAndStop(6);
}
if (_root.ammocount == 4) {
this.gotoAndStop(5);
}
if (_root.ammocount == 3) {
this.gotoAndStop(4);
}
if (_root.ammocount == 2) {
this.gotoAndStop(3);
}
if (_root.ammocount == 1) {
this.gotoAndStop(2);
}
if (_root.ammocount == 0) {
this.gotoAndStop(1);
}
}
}
frame 16 {
_root.pistoldual = 0;
_root.ammocount = 50;
}
instance of movieClip 1098 {
onClipEvent (enterFrame) {
if (_root.ammocount == 50) {
this.gotoAndStop(51);
}
if (_root.ammocount == 49) {
this.gotoAndStop(50);
}
if (_root.ammocount == 48) {
this.gotoAndStop(49);
}
if (_root.ammocount == 47) {
this.gotoAndStop(48);
}
if (_root.ammocount == 46) {
this.gotoAndStop(47);
}
if (_root.ammocount == 45) {
this.gotoAndStop(46);
}
if (_root.ammocount == 44) {
this.gotoAndStop(45);
}
if (_root.ammocount == 43) {
this.gotoAndStop(44);
}
if (_root.ammocount == 42) {
this.gotoAndStop(43);
}
if (_root.ammocount == 41) {
this.gotoAndStop(42);
}
if (_root.ammocount == 40) {
this.gotoAndStop(41);
}
if (_root.ammocount == 39) {
this.gotoAndStop(40);
}
if (_root.ammocount == 38) {
this.gotoAndStop(39);
}
if (_root.ammocount == 37) {
this.gotoAndStop(38);
}
if (_root.ammocount == 36) {
this.gotoAndStop(37);
}
if (_root.ammocount == 35) {
this.gotoAndStop(36);
}
if (_root.ammocount == 34) {
this.gotoAndStop(35);
}
if (_root.ammocount == 33) {
this.gotoAndStop(34);
}
if (_root.ammocount == 32) {
this.gotoAndStop(33);
}
if (_root.ammocount == 31) {
this.gotoAndStop(32);
}
if (_root.ammocount == 30) {
this.gotoAndStop(31);
}
if (_root.ammocount == 29) {
this.gotoAndStop(30);
}
if (_root.ammocount == 28) {
this.gotoAndStop(29);
}
if (_root.ammocount == 27) {
this.gotoAndStop(28);
}
if (_root.ammocount == 26) {
this.gotoAndStop(27);
}
if (_root.ammocount == 25) {
this.gotoAndStop(26);
}
if (_root.ammocount == 24) {
this.gotoAndStop(25);
}
if (_root.ammocount == 23) {
this.gotoAndStop(24);
}
if (_root.ammocount == 22) {
this.gotoAndStop(23);
}
if (_root.ammocount == 21) {
this.gotoAndStop(22);
}
if (_root.ammocount == 20) {
this.gotoAndStop(21);
}
if (_root.ammocount == 19) {
this.gotoAndStop(20);
}
if (_root.ammocount == 18) {
this.gotoAndStop(19);
}
if (_root.ammocount == 17) {
this.gotoAndStop(18);
}
if (_root.ammocount == 16) {
this.gotoAndStop(17);
}
if (_root.ammocount == 15) {
this.gotoAndStop(16);
}
if (_root.ammocount == 14) {
this.gotoAndStop(15);
}
if (_root.ammocount == 13) {
this.gotoAndStop(14);
}
if (_root.ammocount == 12) {
this.gotoAndStop(13);
}
if (_root.ammocount == 11) {
this.gotoAndStop(12);
}
if (_root.ammocount == 10) {
this.gotoAndStop(11);
}
if (_root.ammocount == 9) {
this.gotoAndStop(10);
}
if (_root.ammocount == 8) {
this.gotoAndStop(9);
}
if (_root.ammocount == 7) {
this.gotoAndStop(8);
}
if (_root.ammocount == 6) {
this.gotoAndStop(7);
}
if (_root.ammocount == 5) {
this.gotoAndStop(6);
}
if (_root.ammocount == 4) {
this.gotoAndStop(5);
}
if (_root.ammocount == 3) {
this.gotoAndStop(4);
}
if (_root.ammocount == 2) {
this.gotoAndStop(3);
}
if (_root.ammocount == 1) {
this.gotoAndStop(2);
}
if (_root.ammocount == 0) {
this.gotoAndStop(1);
}
}
}
frame 17 {
_root.pistoldual = 0;
_root.ammocount = 15;
}
instance of movieClip 1115 {
onClipEvent (enterFrame) {
if (_root.ammocount == 15) {
this.gotoAndStop(16);
}
if (_root.ammocount == 14) {
this.gotoAndStop(15);
}
if (_root.ammocount == 13) {
this.gotoAndStop(14);
}
if (_root.ammocount == 12) {
this.gotoAndStop(13);
}
if (_root.ammocount == 11) {
this.gotoAndStop(12);
}
if (_root.ammocount == 10) {
this.gotoAndStop(11);
}
if (_root.ammocount == 9) {
this.gotoAndStop(10);
}
if (_root.ammocount == 8) {
this.gotoAndStop(9);
}
if (_root.ammocount == 7) {
this.gotoAndStop(8);
}
if (_root.ammocount == 6) {
this.gotoAndStop(7);
}
if (_root.ammocount == 5) {
this.gotoAndStop(6);
}
if (_root.ammocount == 4) {
this.gotoAndStop(5);
}
if (_root.ammocount == 3) {
this.gotoAndStop(4);
}
if (_root.ammocount == 2) {
this.gotoAndStop(3);
}
if (_root.ammocount == 1) {
this.gotoAndStop(2);
}
if (_root.ammocount == 0) {
this.gotoAndStop(1);
}
}
}
frame 18 {
_root.pistoldual = 0;
_root.ammocount = 50;
}
instance of movieClip 1117 {
onClipEvent (enterFrame) {
if (_root.ammocount == 50) {
this.gotoAndStop(51);
}
if (_root.ammocount == 49) {
this.gotoAndStop(50);
}
if (_root.ammocount == 48) {
this.gotoAndStop(49);
}
if (_root.ammocount == 47) {
this.gotoAndStop(48);
}
if (_root.ammocount == 46) {
this.gotoAndStop(47);
}
if (_root.ammocount == 45) {
this.gotoAndStop(46);
}
if (_root.ammocount == 44) {
this.gotoAndStop(45);
}
if (_root.ammocount == 43) {
this.gotoAndStop(44);
}
if (_root.ammocount == 42) {
this.gotoAndStop(43);
}
if (_root.ammocount == 41) {
this.gotoAndStop(42);
}
if (_root.ammocount == 40) {
this.gotoAndStop(41);
}
if (_root.ammocount == 39) {
this.gotoAndStop(40);
}
if (_root.ammocount == 38) {
this.gotoAndStop(39);
}
if (_root.ammocount == 37) {
this.gotoAndStop(38);
}
if (_root.ammocount == 36) {
this.gotoAndStop(37);
}
if (_root.ammocount == 35) {
this.gotoAndStop(36);
}
if (_root.ammocount == 34) {
this.gotoAndStop(35);
}
if (_root.ammocount == 33) {
this.gotoAndStop(34);
}
if (_root.ammocount == 32) {
this.gotoAndStop(33);
}
if (_root.ammocount == 31) {
this.gotoAndStop(32);
}
if (_root.ammocount == 30) {
this.gotoAndStop(31);
}
if (_root.ammocount == 29) {
this.gotoAndStop(30);
}
if (_root.ammocount == 28) {
this.gotoAndStop(29);
}
if (_root.ammocount == 27) {
this.gotoAndStop(28);
}
if (_root.ammocount == 26) {
this.gotoAndStop(27);
}
if (_root.ammocount == 25) {
this.gotoAndStop(26);
}
if (_root.ammocount == 24) {
this.gotoAndStop(25);
}
if (_root.ammocount == 23) {
this.gotoAndStop(24);
}
if (_root.ammocount == 22) {
this.gotoAndStop(23);
}
if (_root.ammocount == 21) {
this.gotoAndStop(22);
}
if (_root.ammocount == 20) {
this.gotoAndStop(21);
}
if (_root.ammocount == 19) {
this.gotoAndStop(20);
}
if (_root.ammocount == 18) {
this.gotoAndStop(19);
}
if (_root.ammocount == 17) {
this.gotoAndStop(18);
}
if (_root.ammocount == 16) {
this.gotoAndStop(17);
}
if (_root.ammocount == 15) {
this.gotoAndStop(16);
}
if (_root.ammocount == 14) {
this.gotoAndStop(15);
}
if (_root.ammocount == 13) {
this.gotoAndStop(14);
}
if (_root.ammocount == 12) {
this.gotoAndStop(13);
}
if (_root.ammocount == 11) {
this.gotoAndStop(12);
}
if (_root.ammocount == 10) {
this.gotoAndStop(11);
}
if (_root.ammocount == 9) {
this.gotoAndStop(10);
}
if (_root.ammocount == 8) {
this.gotoAndStop(9);
}
if (_root.ammocount == 7) {
this.gotoAndStop(8);
}
if (_root.ammocount == 6) {
this.gotoAndStop(7);
}
if (_root.ammocount == 5) {
this.gotoAndStop(6);
}
if (_root.ammocount == 4) {
this.gotoAndStop(5);
}
if (_root.ammocount == 3) {
this.gotoAndStop(4);
}
if (_root.ammocount == 2) {
this.gotoAndStop(3);
}
if (_root.ammocount == 1) {
this.gotoAndStop(2);
}
if (_root.ammocount == 0) {
this.gotoAndStop(1);
}
}
}
}
movieClip 1127 {
frame 1 {
stop();
}
frame 2 {
_root.dkillbonus += _root.killbonus;
_root.tkillbonus += _root.killbonus;
}
frame 60 {
_root.killstreak = 0;
_root.dkillbonus = 1;
gotoAndStop(1);
}
}
movieClip 1130 {
}
movieClip 1131 {
frame 45 {
_root.mainhud.kctext.gotoAndStop(1);
}
}
movieClip 1133 {
}
movieClip 1134 {
frame 45 {
_root.mainhud.kctext.gotoAndStop(1);
}
}
movieClip 1136 {
}
movieClip 1137 {
frame 45 {
_root.mainhud.kctext.gotoAndStop(1);
}
}
movieClip 1138 {
frame 1 {
stop();
}
}
movieClip 1143 {
}
movieClip 1146 {
}
movieClip 1148 {
}
movieClip 1149 {
}
movieClip 1150 {
}
movieClip 1151 {
frame 938 {
stop();
}
}
// unknown tag 88 length 103
// unknown tag 88 length 63
movieClip 1157 {
}
button 1166 {
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
gotoAndStop(1);
}
}
button 1170 {
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
gotoAndStop(5);
}
}
button 1174 {
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
_root.gotoAndPlay(49);
}
}
button 1178 {
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
_root.hremaining -= 100;
}
}
button 1184 {
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('healthget');
soundbg2.start(0, 1);
}
gotoAndStop(6);
}
}
button 1186 {
on (release) {
if (_root.masterbg == 0) {
_root.masterbg = 1;
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
if (_root.masterbg == 1) {
_root.gsoundbg = new Sound();
_root.gsoundbg.attachSound('mainbg');
_root.gsoundbg.start(0, 99);
_root.gsoundbg2 = new Sound();
_root.gsoundbg2.attachSound('zambient');
_root.gsoundbg2.start(0, 99);
}
}
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 1187 {
on (release) {
Playtomic.Log.CustomMetric('SFXmute');
_root.masterfx = 0;
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 1188 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
Playtomic.Log.CustomMetric('BGmute');
_root.gsoundbg.stop('mainbg');
_root.gsoundbg2.stop('zambient');
_root.masterbg = 0;
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 1192 {
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
on (release) {
if (icheatcode.text == 'valkyrie') {
if (_root.valkyrie == 0) {
cheatplayer.gotoAndStop(5);
} else {
cheatplayer.gotoAndStop(4);
}
} else {
if (icheatcode.text == 'pantheon') {
if (_root.pantheon == 0) {
cheatplayer.gotoAndStop(6);
} else {
cheatplayer.gotoAndStop(4);
}
} else {
if (icheatcode.text == 'rambo') {
if (_root.rambo == 0) {
cheatplayer.gotoAndStop(7);
} else {
cheatplayer.gotoAndStop(4);
}
} else {
if (icheatcode.text == 'adrenaline') {
if (_root.adrenaline == 0) {
cheatplayer.gotoAndStop(8);
} else {
cheatplayer.gotoAndStop(4);
}
} else {
if (icheatcode.text == 'super saiyan') {
if (_root.supersaiyan == 0) {
cheatplayer.gotoAndStop(9);
} else {
cheatplayer.gotoAndStop(4);
}
} else {
if (icheatcode.text == 'i am legend') {
if (_root.iamlegend == 0) {
cheatplayer.gotoAndStop(10);
} else {
cheatplayer.gotoAndStop(4);
}
} else {
if (icheatcode.text == 'doom') {
if (_root.doom == 0) {
cheatplayer.gotoAndStop(11);
} else {
cheatplayer.gotoAndStop(4);
}
} else {
if (icheatcode.text == 'missingno') {
cheatplayer.gotoAndStop(12);
} else {
if (icheatcode.text == 'ijohnf') {
cheatplayer.gotoAndStop(13);
} else {
if (icheatcode.text == 'team meat') {
cheatplayer.gotoAndStop(15);
} else {
if (icheatcode.text == 'zombified') {
cheatplayer.gotoAndStop(14);
} else {
if (icheatcode.text == 'wtf') {
cheatplayer.gotoAndStop(16);
} else {
cheatplayer.gotoAndStop(3);
}
}
}
}
}
}
}
}
}
}
}
}
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
}
}
movieClip 1208 {
frame 1 {
stop();
}
frame 5 {
_root.valkyrie = 1;
_root.killstreak = 100;
}
frame 6 {
_root.pantheon = 1;
_root.weaponequip = 2;
}
frame 7 {
_root.rambo = 1;
_root.weaponequip = 4;
}
frame 8 {
_root.adrenaline = 1;
_root.hremaining += 100;
}
frame 9 {
_root.supersaiyan = 1;
_root.tkillbonus += 3000;
_root.ssbonus = 3000;
savefile.data.supersaiyan = _root.supersaiyan;
savefile.flush();
}
frame 10 {
_root.iamlegend = 1;
_root.killcount = 3000;
}
frame 11 {
_root.doom = 1;
_root.weaponequip = 7;
}
frame 12 {
_root.wunlock1 = 1;
_root.wunlock2 = 1;
_root.wunlock3 = 1;
_root.wunlock4 = 1;
_root.wunlock5 = 1;
_root.wunlock6 = 1;
_root.wunlock7 = 1;
_root.wunlock8 = 1;
_root.plusammo1 = 1;
_root.plusammo2 = 1;
_root.plusammo3 = 1;
_root.plusammo4 = 1;
_root.plusammo5 = 1;
_root.plusammo6 = 1;
}
frame 13 {
_root.headequip = 7;
}
frame 14 {
_root.headequip = 8;
}
frame 15 {
_root.headequip = 9;
}
frame 16 {
_root.headequip = 10;
}
}
movieClip 1210 {
frame 1 {
_root.gamepause = 0;
_root.mainhud._alpha = 85;
_root.gsoundbg.setVolume(100);
_root.gsoundbg2.setVolume(100);
stop();
}
frame 4 {
_root.gamepause = 1;
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('rankupsfx');
soundbg2.start(0, 1);
}
Playtomic.Log.CustomMetric('Pauses');
_root.mainhud._alpha = 100;
_root.gsoundbg.setVolume(20);
_root.gsoundbg2.setVolume(40);
stop();
}
instance of movieClip 1157 {
onClipEvent (enterFrame) {
if (gpause == false) {
_root.zzkey = 1;
}
}
}
instance of movieClip 339 {
onClipEvent (enterFrame) {
if (_root.masterfx == 1) {
this.gotoAndStop(1);
}
if (_root.masterfx == 0) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 339 {
onClipEvent (enterFrame) {
if (_root.masterbg == 1) {
this.gotoAndStop(1);
}
if (_root.masterbg == 0) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 339 {
onClipEvent (enterFrame) {
if (_root.nobg == 1) {
this.gotoAndStop(1);
}
if (_root.nobg == 0) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 340 {
onClipEvent (enterFrame) {
if (_quality == 'LOW') {
this.gotoAndStop(1);
}
if (_quality == 'MEDIUM') {
this.gotoAndStop(2);
}
if (_quality == 'HIGH') {
this.gotoAndStop(3);
}
}
}
instance of movieClip 339 {
onClipEvent (enterFrame) {
if (_root.lowgore == 1) {
this.gotoAndStop(2);
}
if (_root.lowgore == 0) {
this.gotoAndStop(1);
}
}
}
frame 6 {
icheatcode.text = 'type cheat_';
}
}
movieClip 1214 {
}
movieClip 1215 {
frame 1 {
stop();
}
frame 2 {
if (_root.masterfx == 1) {
_root.deathsfx = new Sound();
_root.deathsfx.attachSound('heartbeat');
_root.deathsfx.start(0, 99);
}
}
}
movieClip 1218 {
}
movieClip 1221 {
frame 1 {
_root.mainhud._alpha = 100;
}
frame 39 {
_root.mainhud._alpha = 85;
}
frame 70 {
stop();
}
frame 72 {
_root.mainhud._alpha = 100;
}
frame 141 {
_root.newgame = 1;
}
frame 165 {
_root.gotoAndStop(55);
}
}
movieClip 1222 {
instance of movieClip 926 {
onClipEvent (enterFrame) {
if (_root.nobg == 1) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance ach of movieClip 992 {
onClipEvent (enterFrame) {
if (_root.achdmgtaken == 0) {
if (_root.killcount >= 100) {
if (_root.killcount < 250) {
if (_root.achievement1 == 0) {
this.gotoAndStop(2);
}
}
}
if (_root.killcount >= 250) {
if (_root.killcount < 500) {
if (_root.achievement2 == 0) {
this.gotoAndStop(3);
}
}
}
if (_root.killcount >= 500) {
if (_root.achievement3 == 0) {
this.gotoAndStop(4);
}
}
}
if (_root.achievement4 == 0) {
if (_root.roundcrates >= 50) {
if (_root.roundcrates < 100) {
this.gotoAndStop(5);
}
}
}
if (_root.achievement5 == 0) {
if (_root.roundcrates >= 100) {
this.gotoAndStop(6);
}
}
if (_root.achievement6 == 0) {
if (_root.killcount >= 100) {
if (_root.killcount < 300) {
if (_root.powerused == 0) {
if (_root.allyused == 0) {
this.gotoAndStop(7);
}
}
}
}
}
if (_root.achievement7 == 0) {
if (_root.killcount >= 300) {
if (_root.killcount < 500) {
if (_root.powerused == 0) {
if (_root.allyused == 0) {
this.gotoAndStop(8);
}
}
}
}
}
if (_root.achievement8 == 0) {
if (_root.killcount >= 500) {
if (_root.powerused == 0) {
if (_root.allyused == 0) {
this.gotoAndStop(9);
}
}
}
}
if (_root.achievement9 == 0) {
if (_root.killstreak >= 100) {
if (_root.killstreak < 150) {
this.gotoAndStop(10);
}
}
}
if (_root.achievement10 == 0) {
if (_root.killstreak >= 150) {
this.gotoAndStop(11);
}
}
if (_root.achievement11 == 0) {
if (_root.allyused == 0) {
if (_root.killcount >= 300) {
if (_root.killcount < 500) {
this.gotoAndStop(12);
}
}
}
}
if (_root.achievement12 == 0) {
if (_root.allyused == 0) {
if (_root.killcount >= 500) {
this.gotoAndStop(13);
}
}
}
if (_root.achievement13 == 0) {
if (_root.snatchercount >= 7) {
this.gotoAndStop(14);
}
}
if (_root.achievement14 == 0) {
if (_root.killcount >= 1000) {
if (_root.killcount < 2000) {
this.gotoAndStop(15);
}
}
}
if (_root.achievement15 == 0) {
if (_root.killcount >= 2000) {
if (_root.killcount < 3000) {
this.gotoAndStop(16);
}
}
}
if (_root.achievement16 == 0) {
if (_root.killcount >= 3000) {
this.gotoAndStop(17);
}
}
if (_root.achievement17 == 0) {
if (_root.clutchlife == 1) {
this.gotoAndStop(18);
}
}
if (_root.achievement18 == 0) {
if (_root.suicideb == 1) {
this.gotoAndStop(19);
}
}
if (_root.neardeath == 1) {
if (_root.ndcount >= 1) {
if (_root.killcount > _root.ndcount - 150) {
if (_root.achievement19 == 0) {
this.gotoAndStop(20);
}
}
if (_root.killcount > _root.ndcount) {
if (_root.achievement20 == 0) {
this.gotoAndStop(21);
}
}
}
}
}
}
instance of movieClip 995 {
onClipEvent (enterFrame) {
if (_root.neardeath == 1) {
this.gotoAndStop(2);
}
if (_root.neardeath == 0) {
_root.ndcount = 0;
this.gotoAndStop(1);
}
}
}
instance of movieClip 1017 {
onClipEvent (enterFrame) {
if (_root.killstreak >= 25) {
if (_root.allysupport2 == 0) {
if (_root.allysupport3 == 0) {
_root.supporton = 1;
_root.allysupport1 = 1;
_root.allysupport2 = 0;
_root.allysupport3 = 0;
}
}
}
if (_root.allysupport1 == 1) {
this.gotoAndStop(2);
}
if (_root.killstreak >= 50) {
if (_root.allysupport3 == 0) {
_root.supporton = 1;
_root.allysupport1 = 0;
_root.allysupport2 = 1;
_root.allysupport3 = 0;
}
}
if (_root.allysupport2 == 1) {
this.gotoAndStop(3);
}
if (_root.killstreak >= 100) {
_root.supporton = 1;
_root.allysupport1 = 0;
_root.allysupport2 = 0;
_root.allysupport3 = 1;
}
if (_root.allysupport3 == 1) {
this.gotoAndStop(4);
}
if (_root.allysupport1 == 0) {
if (_root.allysupport2 == 0) {
if (_root.allysupport3 == 0) {
this.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 1031 {
onClipEvent (enterFrame) {
if (_root.htakingdmg == 1) {
this.play();
} else {
_root.shakescreen = 0;
gotoAndStop(1);
}
}
}
instance ammohud of movieClip 1118 {
onClipEvent (enterFrame) {
if (_root.weaponequip == 1) {
this.gotoAndStop(1);
}
if (_root.weaponequip == 2) {
this.gotoAndStop(4);
}
if (_root.weaponequip == 3) {
if (_root.pistoldual != 1) {
if (_root.plusammo1 == 1) {
this.gotoAndStop(12);
}
if (_root.plusammo1 == 0) {
this.gotoAndStop(2);
}
}
}
if (_root.weaponequip == 3) {
if (_root.pistoldual == 1) {
if (_root.plusammo1 == 1) {
this.gotoAndStop(13);
}
if (_root.plusammo1 == 0) {
this.gotoAndStop(3);
}
}
}
if (_root.weaponequip == 4) {
if (_root.plusammo2 == 1) {
this.gotoAndStop(14);
}
if (_root.plusammo2 == 0) {
this.gotoAndStop(5);
}
}
if (_root.weaponequip == 5) {
if (_root.plusammo3 == 1) {
this.gotoAndStop(15);
}
if (_root.plusammo3 == 0) {
this.gotoAndStop(6);
}
}
if (_root.weaponequip == 6) {
if (_root.plusammo4 == 1) {
this.gotoAndStop(16);
}
if (_root.plusammo4 == 0) {
this.gotoAndStop(7);
}
}
if (_root.weaponequip == 7) {
this.gotoAndStop(8);
}
if (_root.weaponequip == 8) {
if (_root.plusammo5 == 1) {
this.gotoAndStop(17);
}
if (_root.plusammo5 == 0) {
this.gotoAndStop(9);
}
}
if (_root.weaponequip == 9) {
this.gotoAndStop(10);
}
if (_root.weaponequip == 10) {
if (_root.plusammo6 == 1) {
this.gotoAndStop(18);
}
if (_root.plusammo6 == 0) {
this.gotoAndStop(11);
}
}
}
}
instance killplayer of movieClip 1127 {
onClipEvent (enterFrame) {
killstreak = _root.killstreak;
killbonus = '+ ' + _root.dkillbonus + ' BONUS EXP';
if (killstreak == 0) {
this.gotoAndStop(1);
}
if (_root.killstreak >= 5) {
if (_root.gamepause == 0) {
this.play();
}
if (_root.gamepause == 1) {
this.stop();
}
}
if (_root.killstreak < 40) {
_root.killbonus = 1;
}
if (_root.killstreak >= 40 && _root.killstreak < 60) {
_root.killbonus = 2;
}
if (_root.killstreak >= 60 && _root.killstreak < 100) {
_root.killbonus = 3;
}
if (_root.killstreak >= 100) {
_root.killbonus = 4;
}
}
}
instance of movieClip 1143 {
onClipEvent (load) {
_root.htotal = _root.hlife;
_root.hremaining = _root.hlife;
}
onClipEvent (enterFrame) {
if (_root.hremaining >= _root.hlife) {
_root.hremaining = 100;
}
if (this._xscale > 0) {
this._xscale = (_root.hremaining / _root.htotal) * 100;
}
if (_root.hremaining <= 0) {
_root.minigunfx.stop('minigunshot');
_root.flamethrowerfx.stop('flamesfx');
_root.hremaining = 0;
_root.halive = 0;
}
}
}
instance of movieClip 1151 {
onClipEvent (enterFrame) {
if (_root.ptutorial == 0) {
this.stop();
}
}
}
instance of movieClip 1210 {
onClipEvent (enterFrame) {
_root.cheatcode = cheatcode;
eweaponequip = _root.weaponequip;
eplusammo1 = _root.plusammo1;
ewunlock1 = _root.wunlock1;
edifficulty = _root.difficulty;
enobg = _root.nobg;
ehremaining = _root.hremaining;
gamepause = _root.gamepause;
if (Key.isDown(16)) {
this.gotoAndStop(4);
}
}
}
instance of movieClip 1215 {
onClipEvent (enterFrame) {
if (_root.hremaining > 30) {
_root.deathsfx.stop('heartbeat');
_root.neardeath = 0;
this.gotoAndStop(1);
}
if (_root.hremaining <= 30) {
if (_root.hremaining > 15) {
_root.neardeath = 1;
this.gotoAndStop(2);
}
}
if (_root.hremaining <= 15) {
_root.neardeath = 1;
this.gotoAndStop(3);
}
}
}
instance of movieClip 1221 {
onClipEvent (enterFrame) {
if (_root.halive == 0) {
this.play();
}
}
}
}
instance mainhud of movieClip 1222 {
onClipEvent (load) {
this.swapDepths(900000);
if (_root.herolevel == 1) {
_root.rank = 'Apprentice';
}
if (_root.herolevel == 2) {
_root.rank = 'Recruit';
}
if (_root.herolevel == 3) {
_root.rank = 'Rookie';
}
if (_root.herolevel == 4) {
_root.rank = 'Private';
}
if (_root.herolevel == 5) {
_root.rank = 'Private Grade l';
}
if (_root.herolevel == 6) {
_root.rank = 'Sergeant';
}
if (_root.herolevel == 7) {
_root.rank = 'Sergeant Grade l';
}
if (_root.herolevel == 8) {
_root.rank = 'Captain';
}
if (_root.herolevel == 9) {
_root.rank = 'Captain Grade l';
}
if (_root.herolevel == 10) {
_root.rank = 'Major';
}
if (_root.herolevel == 11) {
_root.rank = 'Major Grade l';
}
if (_root.herolevel == 12) {
_root.rank = 'Major Grade ll';
}
if (_root.herolevel == 13) {
_root.rank = 'Brigadier';
}
if (_root.herolevel == 14) {
_root.rank = 'Brigadier Grade l';
}
if (_root.herolevel == 15) {
_root.rank = 'Brigadier Grade ll';
}
if (_root.herolevel == 16) {
_root.rank = 'Commander';
}
if (_root.herolevel == 17) {
_root.rank = 'Master Commander';
}
if (_root.herolevel == 18) {
_root.rank = 'Elite';
}
if (_root.herolevel == 19) {
_root.rank = 'Master Elite';
}
if (_root.herolevel == 20) {
_root.rank = 'Legend';
}
if (_root.herolevel == 21) {
_root.rank = 'Mythic';
}
if (_root.herolevel == 22) {
_root.rank = 'Ascension';
}
if (_root.herolevel >= 22) {
if (_root.herolevel < 32) {
_root.rank = 'Ascension +';
}
}
if (_root.herolevel >= 32) {
_root.rank = 'Haxor';
}
playrank = 'Rank ' + _root.herolevel + ' - ' + _root.rank;
}
onClipEvent (enterFrame) {
achievement1 = _root.achievement1;
killcount = _root.killcount;
if (_root.hero._x >= 300) {
if (_root.hero._x <= 1300) {
_y = _y + (_root.hero._y - 120 - _y);
_x = _x + (_root.hero._x - _x);
}
}
}
}
frame 55 {
stopAllSounds();
_quality = 'high';
_root.mainhud.removeMovieClip();
_root.mainhud.swapDepths(-1);
_root.newgame = 1;
_root.ptutorial = 0;
if (_root.iamlegend == 0) {
_root.heroexp = _root.heroexp + _root.killcount + _root.tkillbonus;
}
_root.exphubmove = 0;
_root.uhead1 = 0;
_root.totalcrates += _root.roundcrates;
_root.zombieskilled += _root.killcount;
_root.totaldeaths = 1;
savefile.data.highkillcount = _root.highkillcount;
savefile.data.supersaiyan = _root.supersaiyan;
savefile.data.masterbg = _root.masterbg;
savefile.data.masterfx = _root.masterfx;
savefile.data.ptutorial = _root.ptutorial;
savefile.data.kctutorial = _root.kctutorial;
savefile.data.lowgore = _root.lowgore;
savefile.data.herolevel = _root.herolevel;
savefile.data.headequip = _root.headequip;
savefile.data.heroexp = _root.heroexp;
savefile.data.expgained = _root.expgained;
savefile.data.expnext = _root.expnext;
savefile.data.npistol = _root.npistol;
savefile.data.nsniper = _root.nsniper;
savefile.data.nshotgun = _root.nshotgun;
savefile.data.nrifle = _root.nrifle;
savefile.data.nminigun = _root.nminigun;
savefile.data.nriot = _root.nriot;
savefile.data.nflame = _root.nflame;
savefile.data.nmfg = _root.nmfg;
savefile.data.ngod = _root.ngod;
savefile.data.plusammo1 = _root.plusammo1;
savefile.data.plusammo2 = _root.plusammo2;
savefile.data.plusammo3 = _root.plusammo3;
savefile.data.plusammo4 = _root.plusammo4;
savefile.data.plusammo5 = _root.plusammo5;
savefile.data.plusammo6 = _root.plusammo6;
savefile.data.wunlock1 = _root.wunlock1;
savefile.data.wunlock2 = _root.wunlock2;
savefile.data.wunlock3 = _root.wunlock3;
savefile.data.wunlock4 = _root.wunlock4;
savefile.data.wunlock5 = _root.wunlock5;
savefile.data.achtotal = _root.achtotal;
savefile.data.achievement1 = _root.achievement1;
savefile.data.achievement2 = _root.achievement2;
savefile.data.achievement3 = _root.achievement3;
savefile.data.achievement4 = _root.achievement4;
savefile.data.achievement5 = _root.achievement5;
savefile.data.achievement6 = _root.achievement6;
savefile.data.achievement7 = _root.achievement7;
savefile.data.achievement8 = _root.achievement8;
savefile.data.achievement9 = _root.achievement9;
savefile.data.achievement10 = _root.achievement10;
savefile.data.achievement11 = _root.achievement11;
savefile.data.achievement12 = _root.achievement12;
savefile.data.achievement13 = _root.achievement13;
savefile.data.achievement14 = _root.achievement14;
savefile.data.achievement15 = _root.achievement15;
savefile.data.achievement16 = _root.achievement16;
savefile.data.achievement17 = _root.achievement17;
savefile.data.achievement18 = _root.achievement18;
savefile.data.achievement19 = _root.achievement19;
savefile.data.achievement20 = _root.achievement20;
savefile.flush();
stop();
}
movieClip 1228 {
}
movieClip 1229 {
frame 1 {
stop();
}
}
instance of movieClip 1229 {
onClipEvent (enterFrame) {
if (_root.armind == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
movieClip 1233 {
}
movieClip 1234 {
frame 1 {
stop();
}
}
instance of movieClip 1234 {
onClipEvent (enterFrame) {
if (_root.achind == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
movieClip 1237 {
}
// unknown tag 88 length 63
button 1254 {
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
getURL('http://twitter.com/home?status=I just fought off ' + _root.killcount + ' zombies in Zombocalypse!' + '+%23ironzilla', _blank);
}
}
button 1255 {
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
getURL('https://www.facebook.com/IronZilla', _blank);
}
}
button 1256 {
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
getURL('https://www.armorgames.com', _blank);
}
}
button 1257 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
if (_root.masterbg == 1) {
menubg = new Sound();
menubg.attachSound('menubgsfx');
menubg.start(0, 99);
}
_root.gotoAndStop(20);
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
button 1258 {
on (release) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('pistolshot');
soundbg2.start(0, 1);
}
_root.gotoAndPlay(49);
}
on (rollOver) {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('buttonfx1');
soundbg2.start(0, 1);
}
}
}
movieClip 1264 {
frame 39 {
stop();
}
}
movieClip 1268 {
frame 1 {
stop();
}
frame 20 {
_root.savefile.data.masterbg = _root.masterbg;
_root.savefile.data.masterfx = _root.masterfx;
_root.savefile.data.ptutorial = _root.ptutorial;
_root.savefile.data.kctutorial = _root.kctutorial;
_root.savefile.data.lowgore = _root.lowgore;
_root.savefile.data.herolevel = _root.herolevel;
_root.savefile.data.headequip = _root.headequip;
_root.savefile.data.heroexp = _root.heroexp;
_root.savefile.data.expgained = _root.expgained;
_root.savefile.data.expnext = _root.expnext;
_root.savefile.data.npistol = _root.npistol;
_root.savefile.data.nsniper = _root.nsniper;
_root.savefile.data.nshotgun = _root.nshotgun;
_root.savefile.data.nrifle = _root.nrifle;
_root.savefile.data.nminigun = _root.nminigun;
_root.savefile.data.nriot = _root.nriot;
_root.savefile.data.nflame = _root.nflame;
_root.savefile.data.nmfg = _root.nmfg;
_root.savefile.data.ngod = _root.ngod;
_root.savefile.data.plusammo1 = _root.plusammo1;
_root.savefile.data.plusammo2 = _root.plusammo2;
_root.savefile.data.plusammo3 = _root.plusammo3;
_root.savefile.data.plusammo4 = _root.plusammo4;
_root.savefile.data.plusammo5 = _root.plusammo5;
_root.savefile.data.plusammo6 = _root.plusammo6;
_root.savefile.data.wunlock1 = _root.wunlock1;
_root.savefile.data.wunlock2 = _root.wunlock2;
_root.savefile.data.wunlock3 = _root.wunlock3;
_root.savefile.data.wunlock4 = _root.wunlock4;
_root.savefile.data.wunlock5 = _root.wunlock5;
_root.savefile.data.achtotal = _root.achtotal;
_root.savefile.data.achievement1 = _root.achievement1;
_root.savefile.data.achievement2 = _root.achievement2;
_root.savefile.data.achievement3 = _root.achievement3;
_root.savefile.data.achievement4 = _root.achievement4;
_root.savefile.data.achievement5 = _root.achievement5;
_root.savefile.data.achievement6 = _root.achievement6;
_root.savefile.data.achievement7 = _root.achievement7;
_root.savefile.data.achievement8 = _root.achievement8;
_root.savefile.data.achievement9 = _root.achievement9;
_root.savefile.data.achievement10 = _root.achievement10;
_root.savefile.data.achievement11 = _root.achievement11;
_root.savefile.data.achievement12 = _root.achievement12;
_root.savefile.data.achievement13 = _root.achievement13;
_root.savefile.data.achievement14 = _root.achievement14;
_root.savefile.data.achievement15 = _root.achievement15;
_root.savefile.data.achievement16 = _root.achievement16;
_root.savefile.data.achievement17 = _root.achievement17;
_root.savefile.data.achievement18 = _root.achievement18;
_root.savefile.data.achievement19 = _root.achievement19;
_root.savefile.data.achievement20 = _root.achievement20;
_root.savefile.flush();
_root.gotut.play();
stop();
}
instance of movieClip 818 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.gotoAndPlay(49);
}
}
}
}
instance dynamicbg of movieClip 1268 {
onClipEvent (enterFrame) {
highkill = _root.highkillcount;
}
}
movieClip 1273 {
}
movieClip 1277 {
}
movieClip 1281 {
frame 2 {
if (_root.gotutorial == 0) {
play();
} else {
gotoAndPlay(1);
}
}
frame 49 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 50 {
if (_root.expgained < _root.expnext) {
if (_root.ikillcount > 0) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.expmc._alpha = 100;
if (_root.herolevel > 7) {
if (_root.ikillcount > 1001) {
_root.expgained += 10;
_root.ikillcount -= 10;
gotoAndPlay(49);
}
if (_root.ikillcount > 500) {
_root.expgained += 10;
_root.ikillcount -= 10;
gotoAndPlay(49);
}
if (_root.ikillcount > 100) {
_root.expgained += 5;
_root.ikillcount -= 5;
gotoAndPlay(49);
}
}
if (_root.ikillcount > 60) {
_root.expgained += 5;
_root.ikillcount -= 5;
gotoAndPlay(49);
}
if (_root.ikillcount > 30) {
_root.expgained += 2;
_root.ikillcount -= 2;
gotoAndPlay(49);
}
if (_root.ikillcount > 15) {
_root.expgained += 2;
_root.ikillcount -= 2;
gotoAndPlay(49);
}
if (_root.ikillcount > 0) {
_root.expgained += 1;
_root.ikillcount -= 1;
gotoAndPlay(49);
}
}
if (_root.ikillcount <= 0) {
_root.dynamicbg.play();
_root.exphub.expmc._alpha = 40;
_root.exphubmove = 1;
stop();
}
} else {
_root.expgained = _root.expnext;
_root.exphub.expmc.leveler.play();
stop();
}
}
}
movieClip 1288 {
frame 1 {
stop();
}
frame 2 {
if (_root.masterfx == 1) {
soundbg2 = new Sound();
soundbg2.attachSound('rankupsfx');
soundbg2.start(0, 1);
}
}
frame 2 {
_root.herolevel += 1;
}
frame 24 {
if (_root.herolevel == 2) {
_root.expgained = 1;
_root.expnext = 100;
_root.plusammo1 = 1;
_root.armind = 1;
}
if (_root.herolevel == 3) {
_root.expgained = 1;
_root.expnext = 200;
}
if (_root.herolevel == 4) {
_root.expgained = 1;
_root.expnext = 250;
_root.armind = 1;
_root.wunlock1 = 1;
}
if (_root.herolevel == 5) {
_root.expgained = 1;
_root.expnext = 250;
}
if (_root.herolevel == 6) {
_root.armind = 1;
_root.plusammo6 = 1;
_root.expgained = 1;
_root.expnext = 250;
}
if (_root.herolevel == 7) {
_root.expgained = 7;
_root.expnext = 300;
}
if (_root.herolevel == 8) {
_root.armind = 1;
_root.plusammo3 = 1;
_root.expgained = 1;
_root.expnext = 300;
}
if (_root.herolevel == 9) {
_root.expgained = 1;
_root.expnext = 400;
}
if (_root.herolevel == 10) {
_root.armind = 1;
_root.plusammo5 = 1;
_root.expgained = 1;
_root.expnext = 400;
}
if (_root.herolevel == 11) {
_root.expgained = 1;
_root.expnext = 800;
}
if (_root.herolevel == 12) {
_root.wunlock2 = 1;
_root.armind = 1;
_root.expgained = 1;
_root.expnext = 800;
}
if (_root.herolevel == 13) {
_root.expgained = 1;
_root.expnext = 1000;
}
if (_root.herolevel == 14) {
_root.armind = 1;
_root.wunlock3 = 1;
_root.expgained = 1;
_root.expnext = 1000;
}
if (_root.herolevel == 15) {
_root.expgained = 1;
_root.expnext = 1500;
}
if (_root.herolevel == 16) {
_root.armind = 1;
_root.plusammo2 = 1;
_root.expgained = 1;
_root.expnext = 1500;
}
if (_root.herolevel == 17) {
_root.expgained = 1;
_root.expnext = 2000;
}
if (_root.herolevel == 18) {
_root.armind = 1;
_root.plusammo4 = 1;
_root.expgained = 1;
_root.expnext = 2000;
}
if (_root.herolevel == 19) {
_root.expgained = 1;
_root.expnext = 3000;
}
if (_root.herolevel == 20) {
_root.armind = 1;
_root.wunlock5 = 1;
_root.expgained = 1;
_root.expnext = 3000;
}
if (_root.herolevel >= 21) {
_root.expgained = 1;
_root.expnext = 10000;
}
_root.exphub.expmc.adder.gotoAndPlay(20);
}
}
movieClip 1291 {
}
movieClip 1292 {
instance of movieClip 1291 {
onClipEvent (enterFrame) {
if (_root.iamlegend == 0) {
showgain = '+ ' + (_root.killcount + _root.tkillbonus) + ' XP';
} else {
showgain = '+ 0 XP';
}
}
}
}
movieClip 1293 {
frame 20 {
if (_root.gotutorial == 0) {
play();
} else {
gotoAndPlay(18);
}
}
frame 111 {
stop();
}
}
movieClip 1294 {
frame 1 {
_root.exphub.expmc.showexp = 'TOTAL XP: ' + _root.heroexp;
}
instance of movieClip 1277 {
onClipEvent (enterFrame) {
if (this._xscale > 0) {
this._xscale = (_root.expgained / _root.expnext) * 100;
}
}
}
instance adder of movieClip 1281 {
onClipEvent (load) {
if (_root.iamlegend == 0) {
_root.ikillcount = _root.killcount + _root.killbonus + _root.ssbonus;
} else {
_root.ikillcount = 0;
}
}
}
}
button 1295 {
on (rollOver) {
_root.exphub.overd1.useHandCursor = false;
_root.exphub.expdisplay._alpha = 100;
}
on (rollOut) {
_root.exphub.overd1.useHandCursor = false;
_root.exphub.expdisplay._alpha = 0;
}
}
movieClip 1296 {
instance expdisplay of movieClip 1273 {
onClipEvent (enterFrame) {
_root.heroexpd = 'NEXT RANK: ' + (_root.expnext - _root.expgained) + ' XP';
eheroexp = _root.heroexpd;
}
}
instance expmc of movieClip 1294 {
onClipEvent (enterFrame) {
_root.exphub.levelrank = 'Rank ' + _root.herolevel + ' - ' + _root.rank;
if (_root.herolevel == 1) {
_root.rank = 'Apprentice';
}
if (_root.herolevel == 2) {
_root.rank = 'Recruit';
}
if (_root.herolevel == 3) {
_root.rank = 'Rookie';
}
if (_root.herolevel == 4) {
_root.rank = 'Private';
}
if (_root.herolevel == 5) {
_root.rank = 'Private Grade l';
}
if (_root.herolevel == 6) {
_root.rank = 'Sergeant';
}
if (_root.herolevel == 7) {
_root.rank = 'Sergeant Grade l';
}
if (_root.herolevel == 8) {
_root.rank = 'Captain';
}
if (_root.herolevel == 9) {
_root.rank = 'Captain Grade l';
}
if (_root.herolevel == 10) {
_root.rank = 'Major';
}
if (_root.herolevel == 11) {
_root.rank = 'Major Grade l';
}
if (_root.herolevel == 12) {
_root.rank = 'Major Grade ll';
}
if (_root.herolevel == 13) {
_root.rank = 'Brigadier';
}
if (_root.herolevel == 14) {
_root.rank = 'Brigadier Grade l';
}
if (_root.herolevel == 15) {
_root.rank = 'Brigadier Grade ll';
}
if (_root.herolevel == 16) {
_root.rank = 'Commander';
}
if (_root.herolevel == 17) {
_root.rank = 'Master Commander';
}
if (_root.herolevel == 18) {
_root.rank = 'Elite';
}
if (_root.herolevel == 19) {
_root.rank = 'Master Elite';
}
if (_root.herolevel == 20) {
_root.rank = 'Legend';
}
if (_root.herolevel == 21) {
_root.rank = 'Mythic';
}
if (_root.herolevel == 22) {
_root.rank = 'Ascension';
}
if (_root.herolevel >= 22) {
if (_root.herolevel < 32) {
_root.rank = 'Ascension +';
}
}
if (_root.herolevel >= 32) {
_root.rank = 'Haxor';
}
}
}
}
instance exphub of movieClip 1296 {
onClipEvent (enterFrame) {
if (_root.exphubmove == 1) {
this._y += 3;
}
if (_root.exphub._y >= 394.9) {
_root.exphubmove = 0;
}
}
}
button 1297 {
on (rollOver) {
if (_root.armoryhub._x < 154.85) {
soundbg2 = new Sound();
soundbg2.attachSound('openhub');
soundbg2.start(0, 1);
_root.armind = 0;
_root.armoryspeed = 50;
button1.useHandCursor = false;
gotoAndStop(2);
}
}
}
button 1298 {
on (rollOver) {
if (_root.armoryhub._x > -162) {
soundbg2 = new Sound();
soundbg2.attachSound('openhub');
soundbg2.start(0, 1);
gotoAndStop(1);
_root.armoryspeed = -50;
}
}
on (rollOut) {
if (_root.armoryhub._x > -162) {
gotoAndStop(1);
_root.armoryspeed = -50;
}
}
}
movieClip 1299 {
frame 1 {
stop();
}
frame 2 {
obutton.useHandCursor = false;
}
}
button 1300 {
on (rollOver) {
if (_root.achhub._x >= 895) {
soundbg2 = new Sound();
soundbg2.attachSound('openhub');
soundbg2.start(0, 1);
_root.achind = 0;
_root.achspeed = 50;
button1.useHandCursor = false;
gotoAndStop(2);
}
}
}
button 1301 {
on (rollOver) {
if (_root.achhub._x > 564) {
soundbg2 = new Sound();
soundbg2.attachSound('openhub');
soundbg2.start(0, 1);
gotoAndStop(1);
_root.achspeed = -50;
}
}
on (rollOut) {
if (_root.achhub._x > 564) {
gotoAndStop(1);
_root.achspeed = -50;
}
}
}
movieClip 1302 {
frame 1 {
stop();
}
frame 2 {
obutton.useHandCursor = false;
}
}
button 1303 {
on (rollOver) {
button1.useHandCursor = false;
}
}
movieClip 1349 {
frame 1 {
stop();
}
}
button 1350 {
on (rollOver) {
_root.armoryhub.desc.gotoAndStop(23);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1351 {
on (rollOver) {
_root.armoryhub.desc.gotoAndStop(24);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1352 {
on (rollOver) {
_root.armoryhub.desc.gotoAndStop(25);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1357 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(2);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1360 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(3);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1362 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(4);
_root.npistol = 0;
gotoAndStop(3);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1363 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(4);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1364 {
frame 1 {
stop();
}
}
button 1366 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(5);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1368 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(6);
_root.nsniper = 0;
gotoAndStop(3);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1369 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(6);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1370 {
frame 1 {
stop();
}
}
button 1372 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(7);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1374 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(8);
_root.nshotgun = 0;
gotoAndStop(3);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1375 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(8);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1376 {
frame 1 {
stop();
}
}
button 1378 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(9);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1380 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(10);
_root.narifle = 0;
gotoAndStop(3);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1381 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(10);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1382 {
frame 1 {
stop();
}
}
button 1384 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(11);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1386 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(12);
_root.nminigun = 0;
gotoAndStop(3);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1387 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(12);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1389 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(13);
_root.nminigun = 2;
gotoAndStop(5);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1390 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(13);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1391 {
frame 1 {
stop();
}
}
button 1392 {
on (rollOver) {
_root.armoryhub.desc.gotoAndStop(14);
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1394 {
on (rollOver) {
_root.armoryhub.desc.gotoAndStop(15);
_root.nriot = 0;
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
gotoAndStop(3);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1395 {
on (rollOver) {
_root.armoryhub.desc.gotoAndStop(15);
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1396 {
frame 1 {
stop();
}
}
button 1397 {
on (rollOver) {
_root.armoryhub.desc.gotoAndStop(16);
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1399 {
on (rollOver) {
_root.armoryhub.desc.gotoAndStop(17);
_root.nflame = 0;
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
gotoAndStop(3);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1400 {
on (rollOver) {
_root.armoryhub.desc.gotoAndStop(17);
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
gotoAndStop(3);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1402 {
on (rollOver) {
_root.armoryhub.desc.gotoAndStop(18);
_root.nflame = 2;
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
gotoAndStop(5);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1403 {
on (rollOver) {
_root.armoryhub.desc.gotoAndStop(18);
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1404 {
frame 1 {
stop();
}
}
button 1405 {
on (rollOver) {
_root.armoryhub.desc.gotoAndStop(19);
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1407 {
on (rollOver) {
_root.armoryhub.desc.gotoAndStop(20);
_root.nmfg = 0;
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
gotoAndStop(3);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1408 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(20);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1409 {
frame 1 {
stop();
}
}
button 1410 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(21);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1412 {
on (rollOver) {
_root.armoryhub.desc.gotoAndStop(22);
_root.ngod = 0;
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
gotoAndStop(3);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1413 {
on (rollOver) {
_root.armoryhub.desc.gotoAndStop(22);
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1414 {
frame 1 {
stop();
}
}
movieClip 1417 {
instance of movieClip 584 {
onClipEvent (enterFrame) {
if (_root.headequip == 1) {
this.gotoAndStop(1);
}
if (_root.headequip == 2) {
this.gotoAndStop(2);
}
if (_root.headequip == 3) {
this.gotoAndStop(3);
}
if (_root.headequip == 4) {
this.gotoAndStop(4);
}
if (_root.headequip == 5) {
this.gotoAndStop(5);
}
if (_root.headequip == 6) {
this.gotoAndStop(6);
}
}
}
}
movieClip 1418 {
}
movieClip 1421 {
}
movieClip 1422 {
}
button 1423 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(30);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1424 {
}
button 1425 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
if (_root.headequip != 3) {
_root.armoryhub.desc.gotoAndStop(29);
}
if (_root.headequip == 3) {
_root.armoryhub.desc.gotoAndStop(30);
}
}
on (release) {
_root.headequip = 3;
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1426 {
frame 1 {
stop();
}
}
button 1427 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(31);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1429 {
}
button 1430 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
if (_root.headequip != 2) {
_root.armoryhub.desc.gotoAndStop(32);
}
if (_root.headequip == 2) {
_root.armoryhub.desc.gotoAndStop(33);
}
}
on (release) {
_root.headequip = 2;
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1431 {
frame 1 {
stop();
}
}
movieClip 1432 {
instance of movieClip 543 {
onClipEvent (enterFrame) {
if (_root.htakingdmg == 1) {
this.play();
}
}
}
}
movieClip 1433 {
}
button 1434 {
on (rollOver) {
if (_root.headequip != 1) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(26);
}
if (_root.headequip == 1) {
_root.armoryhub.desc.gotoAndStop(27);
}
}
on (release) {
_root.headequip = 1;
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
button 1435 {
on (rollOver) {
_root.armoryhub.desc.gotoAndStop(34);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1436 {
}
button 1437 {
on (rollOver) {
if (_root.headequip != 4) {
_root.armoryhub.desc.gotoAndStop(35);
}
if (_root.headequip == 4) {
_root.armoryhub.desc.gotoAndStop(36);
}
}
on (release) {
_root.headequip = 4;
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1438 {
frame 1 {
stop();
}
}
button 1439 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(37);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1441 {
}
button 1442 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
if (_root.headequip != 5) {
_root.armoryhub.desc.gotoAndStop(38);
}
if (_root.headequip == 5) {
_root.armoryhub.desc.gotoAndStop(39);
}
}
on (release) {
_root.headequip = 5;
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1443 {
frame 1 {
stop();
}
}
button 1444 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.armoryhub.desc.gotoAndStop(40);
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1445 {
}
button 1446 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
if (_root.headequip != 6) {
_root.armoryhub.desc.gotoAndStop(41);
}
if (_root.headequip == 6) {
_root.armoryhub.desc.gotoAndStop(42);
}
}
on (release) {
_root.headequip = 6;
}
on (rollOut) {
_root.armoryhub.desc.gotoAndStop(1);
}
}
movieClip 1447 {
frame 1 {
stop();
}
}
movieClip 1449 {
instance of movieClip 1364 {
onClipEvent (enterFrame) {
if (_root.herolevel >= 2) {
this.gotoAndStop(2);
}
if (_root.herolevel >= 2) {
if (_root.npistol == 0) {
this.gotoAndStop(3);
}
}
}
}
instance of movieClip 1370 {
onClipEvent (enterFrame) {
if (_root.herolevel >= 8) {
this.gotoAndStop(2);
}
if (_root.herolevel >= 8) {
if (_root.nsniper == 0) {
this.gotoAndStop(3);
}
}
}
}
instance of movieClip 1376 {
onClipEvent (enterFrame) {
if (_root.herolevel >= 10) {
this.gotoAndStop(2);
}
if (_root.herolevel >= 10) {
if (_root.nshotgun == 0) {
this.gotoAndStop(3);
}
}
}
}
instance of movieClip 1382 {
onClipEvent (enterFrame) {
if (_root.herolevel >= 6) {
this.gotoAndStop(2);
}
if (_root.herolevel >= 6) {
if (_root.narifle == 0) {
this.gotoAndStop(3);
}
}
}
}
instance of movieClip 1391 {
onClipEvent (enterFrame) {
if (_root.herolevel >= 4) {
if (_root.herolevel < 16) {
this.gotoAndStop(2);
}
}
if (_root.herolevel >= 4) {
if (_root.herolevel < 16) {
if (_root.nminigun == 0) {
this.gotoAndStop(3);
}
}
}
if (_root.herolevel >= 16) {
this.gotoAndStop(4);
}
if (_root.herolevel >= 16) {
if (_root.nminigun == 2) {
this.gotoAndStop(5);
}
}
}
}
instance of movieClip 1396 {
onClipEvent (enterFrame) {
if (_root.herolevel >= 12) {
this.gotoAndStop(2);
}
if (_root.herolevel >= 12) {
if (_root.nriot == 0) {
this.gotoAndStop(3);
}
}
}
}
instance of movieClip 1404 {
onClipEvent (enterFrame) {
if (_root.herolevel >= 14) {
if (_root.herolevel < 18) {
this.gotoAndStop(2);
}
}
if (_root.herolevel >= 14) {
if (_root.herolevel < 18) {
if (_root.nflame == 0) {
this.gotoAndStop(3);
}
}
}
if (_root.herolevel >= 18) {
this.gotoAndStop(4);
}
if (_root.herolevel >= 16) {
if (_root.nflame == 2) {
this.gotoAndStop(5);
}
}
}
}
instance of movieClip 1409 {
onClipEvent (enterFrame) {
if (_root.herolevel >= 20) {
this.gotoAndStop(2);
}
if (_root.herolevel >= 20) {
if (_root.nmfg == 0) {
this.gotoAndStop(3);
}
}
}
}
instance of movieClip 1414 {
onClipEvent (enterFrame) {
if (_root.herolevel >= 22) {
this.gotoAndStop(2);
}
if (_root.herolevel >= 22) {
if (_root.ngod == 0) {
this.gotoAndStop(3);
}
}
}
}
instance of movieClip 1426 {
onClipEvent (enterFrame) {
if (_root.achtotal < 4) {
this.gotoAndStop(1);
}
if (_root.achtotal >= 4) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 1431 {
onClipEvent (enterFrame) {
if (_root.achtotal < 8) {
this.gotoAndStop(1);
}
if (_root.achtotal >= 8) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 1438 {
onClipEvent (enterFrame) {
if (_root.achtotal < 12) {
this.gotoAndStop(1);
}
if (_root.achtotal >= 12) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 1443 {
onClipEvent (enterFrame) {
if (_root.achtotal < 16) {
this.gotoAndStop(1);
}
if (_root.achtotal >= 16) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 1447 {
onClipEvent (enterFrame) {
if (_root.achtotal < 20) {
this.gotoAndStop(1);
}
if (_root.achtotal >= 20) {
this.gotoAndStop(2);
}
}
}
}
instance armoryhub of movieClip 1449 {
onClipEvent (enterFrame) {
this._x += _root.armoryspeed;
if (this._x >= 154.85) {
_root.armoryspeed = 0;
_root.gohub1.enabled = false;
_root.dynamicbg.restart.enabled = false;
this._x = 154.85;
}
if (this._x <= -161.15) {
_root.gohub1.enabled = true;
_root.armoryspeed = 0;
_root.dynamicbg.restart.enabled = true;
this._x = -161.15;
}
}
}
movieClip 1474 {
frame 1 {
stop();
}
frame 3 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 4 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 5 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 6 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 7 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 8 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 9 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 10 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 11 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 12 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 13 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 14 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 15 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 16 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 17 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 18 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 19 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 20 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
frame 21 {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
}
movieClip 1480 {
}
button 1481 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(3);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
// unknown tag 88 length 79
movieClip 1485 {
}
button 1486 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(3);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1487 {
frame 1 {
stop();
}
}
button 1488 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(4);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1491 {
}
button 1492 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(4);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1493 {
frame 1 {
stop();
}
}
button 1494 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(5);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1497 {
}
button 1498 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(5);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1499 {
frame 1 {
stop();
}
}
button 1500 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(18);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1503 {
}
button 1504 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(18);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1505 {
frame 1 {
stop();
}
}
button 1506 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(19);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1508 {
}
button 1509 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(19);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1510 {
frame 1 {
stop();
}
}
button 1511 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(20);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1513 {
}
button 1514 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(20);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1515 {
frame 1 {
stop();
}
}
button 1516 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(21);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1517 {
}
button 1518 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(21);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1519 {
frame 1 {
stop();
}
}
button 1520 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(6);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1523 {
}
button 1524 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(6);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1525 {
frame 1 {
stop();
}
}
button 1526 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(7);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1528 {
}
button 1529 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(7);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1530 {
frame 1 {
stop();
}
}
button 1531 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(8);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1532 {
}
button 1533 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(8);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1534 {
frame 1 {
stop();
}
}
button 1535 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(9);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1536 {
}
button 1537 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(9);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1538 {
frame 1 {
stop();
}
}
button 1539 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(10);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1541 {
}
button 1542 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(10);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1543 {
frame 1 {
stop();
}
}
button 1544 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(11);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1546 {
}
button 1547 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(11);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1548 {
frame 1 {
stop();
}
}
button 1549 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(12);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1551 {
}
button 1552 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(12);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1553 {
frame 1 {
stop();
}
}
button 1554 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(13);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1556 {
}
button 1557 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(13);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1558 {
frame 1 {
stop();
}
}
button 1559 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(14);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1561 {
}
button 1562 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(14);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1563 {
frame 1 {
stop();
}
}
button 1564 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(15);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1566 {
}
button 1567 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(15);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1568 {
frame 1 {
stop();
}
}
button 1569 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(16);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1571 {
}
button 1572 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(16);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1573 {
frame 1 {
stop();
}
}
button 1574 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(17);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1576 {
}
button 1577 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(17);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1578 {
frame 1 {
stop();
}
}
button 1579 {
on (rollOver) {
_root.achhub.desc.gotoAndStop(2);
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1581 {
}
button 1582 {
on (rollOver) {
if (_root.masterfx == 1) {
soundfx2 = new Sound();
soundfx2.attachSound('expbeep');
soundfx2.start(0, 1);
}
_root.achhub.desc.gotoAndStop(2);
}
on (rollOut) {
_root.achhub.desc.gotoAndStop(1);
}
}
movieClip 1583 {
frame 1 {
stop();
}
}
movieClip 1584 {
instance of movieClip 1487 {
onClipEvent (enterFrame) {
if (_root.achievement2 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement2 == 1) {
this.gotoAndStop(3);
}
}
}
instance of movieClip 1493 {
onClipEvent (enterFrame) {
if (_root.achievement3 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement3 == 1) {
this.gotoAndStop(4);
}
}
}
instance of movieClip 1499 {
onClipEvent (enterFrame) {
if (_root.achievement4 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement4 == 1) {
this.gotoAndStop(5);
}
}
}
instance of movieClip 1505 {
onClipEvent (enterFrame) {
if (_root.achievement17 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement17 == 1) {
this.gotoAndStop(18);
}
}
}
instance of movieClip 1510 {
onClipEvent (enterFrame) {
if (_root.achievement18 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement18 == 1) {
this.gotoAndStop(19);
}
}
}
instance of movieClip 1515 {
onClipEvent (enterFrame) {
if (_root.achievement19 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement19 == 1) {
this.gotoAndStop(20);
}
}
}
instance of movieClip 1519 {
onClipEvent (enterFrame) {
if (_root.achievement20 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement20 == 1) {
this.gotoAndStop(21);
}
}
}
instance of movieClip 1525 {
onClipEvent (enterFrame) {
if (_root.achievement5 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement5 == 1) {
this.gotoAndStop(6);
}
}
}
instance of movieClip 1530 {
onClipEvent (enterFrame) {
if (_root.achievement6 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement6 == 1) {
this.gotoAndStop(7);
}
}
}
instance of movieClip 1534 {
onClipEvent (enterFrame) {
if (_root.achievement7 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement7 == 1) {
this.gotoAndStop(8);
}
}
}
instance of movieClip 1538 {
onClipEvent (enterFrame) {
if (_root.achievement8 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement8 == 1) {
this.gotoAndStop(9);
}
}
}
instance of movieClip 1543 {
onClipEvent (enterFrame) {
if (_root.achievement9 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement9 == 1) {
this.gotoAndStop(10);
}
}
}
instance of movieClip 1548 {
onClipEvent (enterFrame) {
if (_root.achievement10 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement10 == 1) {
this.gotoAndStop(11);
}
}
}
instance of movieClip 1553 {
onClipEvent (enterFrame) {
if (_root.achievement11 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement11 == 1) {
this.gotoAndStop(12);
}
}
}
instance of movieClip 1558 {
onClipEvent (enterFrame) {
if (_root.achievement12 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement12 == 1) {
this.gotoAndStop(13);
}
}
}
instance of movieClip 1563 {
onClipEvent (enterFrame) {
if (_root.achievement13 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement13 == 1) {
this.gotoAndStop(14);
}
}
}
instance of movieClip 1568 {
onClipEvent (enterFrame) {
if (_root.achievement14 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement14 == 1) {
this.gotoAndStop(15);
}
}
}
instance of movieClip 1573 {
onClipEvent (enterFrame) {
if (_root.achievement15 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement15 == 1) {
this.gotoAndStop(16);
}
}
}
instance of movieClip 1578 {
onClipEvent (enterFrame) {
if (_root.achievement16 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement16 == 1) {
this.gotoAndStop(17);
}
}
}
instance of movieClip 1583 {
onClipEvent (enterFrame) {
if (_root.achievement1 == 0) {
this.gotoAndStop(1);
}
if (_root.achievement1 == 1) {
this.gotoAndStop(2);
}
}
}
}
instance achhub of movieClip 1584 {
onClipEvent (enterFrame) {
achpercent = _root.achtotal * 5 + ' %';
this._x -= _root.achspeed;
if (this._x <= 565) {
_root.achspeed = 0;
_root.gohub1.enabled = false;
this._x = 565;
}
if (this._x >= 896) {
_root.gohub1.enabled = true;
_root.achspeed = 0;
this._x = 896;
}
}
}
movieClip 1586 {
}
movieClip 1587 {
frame 2 {
if (_root.killcount > _root.highkillcount) {
_root.highkillcount = _root.killcount;
play();
} else {
gotoAndStop(3);
}
}
frame 63 {
stop();
}
}
// unknown tag 88 length 139
movieClip 1593 {
}
button 1594 {
on (press) {
play();
}
}
movieClip 1595 {
frame 2 {
if (_root.gotutorial == 1) {
play();
} else {
gotoAndStop(1);
}
}
frame 45 {
stop();
}
frame 46 {
_root.gotutorial = 0;
_root.savefile.data.gotutorial = 0;
_root.savefile.data.gotutorial = _root.gotutorial;
_root.savefile.flush();
}
frame 49 {
_root.gotutorial = 0;
_root.savefile.data.gotutorial = 0;
_root.savefile.data.gotutorial = _root.gotutorial;
_root.savefile.flush();
}
frame 50 {
stop();
}
}
movieClip 1597 {
frame 31 {
stop();
}
}