Section 1
//MD5 (com.adobe.crypto.MD5)
package com.adobe.crypto {
import flash.utils.*;
import com.adobe.utils.*;
public class MD5 {
public static var digest:ByteArray;
private static function ff(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(f, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private static function f(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg2) | (~(_arg1) & _arg3)));
}
private static function g(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg3) | (_arg2 & ~(_arg3))));
}
private static function h(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 ^ _arg2) ^ _arg3));
}
private static function i(_arg1:int, _arg2:int, _arg3:int):int{
return ((_arg2 ^ (_arg1 | ~(_arg3))));
}
private static function transform(_arg1:Function, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):int{
var _local9:int;
_local9 = (((_arg2 + int(_arg1(_arg3, _arg4, _arg5))) + _arg6) + _arg8);
return ((IntUtil.rol(_local9, _arg7) + _arg3));
}
private static function hh(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(h, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
public static function hash(_arg1:String):String{
var _local2:ByteArray;
_local2 = new ByteArray();
_local2.writeUTFBytes(_arg1);
return (hashBinary(_local2));
}
private static function createBlocks(_arg1:ByteArray):Array{
var _local2:Array;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = new Array();
_local3 = (_arg1.length * 8);
_local4 = 0xFF;
_local5 = 0;
while (_local5 < _local3) {
_local2[int((_local5 >> 5))] = (_local2[int((_local5 >> 5))] | ((_arg1[(_local5 / 8)] & _local4) << (_local5 % 32)));
_local5 = (_local5 + 8);
};
_local2[int((_local3 >> 5))] = (_local2[int((_local3 >> 5))] | (128 << (_local3 % 32)));
_local2[int(((((_local3 + 64) >>> 9) << 4) + 14))] = _local3;
return (_local2);
}
public static function hashBinary(_arg1:ByteArray):String{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:Array;
var _local11:int;
var _local12:int;
_local2 = 1732584193;
_local3 = -271733879;
_local4 = -1732584194;
_local5 = 271733878;
_local10 = createBlocks(_arg1);
_local11 = _local10.length;
_local12 = 0;
while (_local12 < _local11) {
_local6 = _local2;
_local7 = _local3;
_local8 = _local4;
_local9 = _local5;
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 0))], 7, -680876936);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 1))], 12, -389564586);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 2))], 17, 606105819);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 3))], 22, -1044525330);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 4))], 7, -176418897);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 5))], 12, 1200080426);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 6))], 17, -1473231341);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 7))], 22, -45705983);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 8))], 7, 1770035416);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 9))], 12, -1958414417);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 10))], 17, -42063);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 11))], 22, -1990404162);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 12))], 7, 1804603682);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 13))], 12, -40341101);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 14))], 17, -1502002290);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 15))], 22, 1236535329);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 1))], 5, -165796510);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 6))], 9, -1069501632);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 11))], 14, 643717713);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 0))], 20, -373897302);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 5))], 5, -701558691);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 10))], 9, 38016083);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 15))], 14, -660478335);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 4))], 20, -405537848);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 9))], 5, 568446438);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 14))], 9, -1019803690);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 3))], 14, -187363961);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 8))], 20, 1163531501);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 13))], 5, -1444681467);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 2))], 9, -51403784);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 7))], 14, 1735328473);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 12))], 20, -1926607734);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 5))], 4, -378558);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 8))], 11, -2022574463);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 11))], 16, 1839030562);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 14))], 23, -35309556);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 1))], 4, -1530992060);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 4))], 11, 1272893353);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 7))], 16, -155497632);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 10))], 23, -1094730640);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 13))], 4, 681279174);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 0))], 11, -358537222);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 3))], 16, -722521979);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 6))], 23, 76029189);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 9))], 4, -640364487);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 12))], 11, -421815835);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 15))], 16, 530742520);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 2))], 23, -995338651);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 0))], 6, -198630844);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 7))], 10, 1126891415);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 14))], 15, -1416354905);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 5))], 21, -57434055);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 12))], 6, 1700485571);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 3))], 10, -1894986606);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 10))], 15, -1051523);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 1))], 21, -2054922799);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 8))], 6, 1873313359);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 15))], 10, -30611744);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 6))], 15, -1560198380);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 13))], 21, 1309151649);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 4))], 6, -145523070);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 11))], 10, -1120210379);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 2))], 15, 718787259);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 9))], 21, -343485551);
_local2 = (_local2 + _local6);
_local3 = (_local3 + _local7);
_local4 = (_local4 + _local8);
_local5 = (_local5 + _local9);
_local12 = (_local12 + 16);
};
digest = new ByteArray();
digest.writeInt(_local2);
digest.writeInt(_local3);
digest.writeInt(_local4);
digest.writeInt(_local5);
digest.position = 0;
return ((((IntUtil.toHex(_local2) + IntUtil.toHex(_local3)) + IntUtil.toHex(_local4)) + IntUtil.toHex(_local5)));
}
private static function gg(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(g, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private static function ii(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(i, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
public static function hashBytes(_arg1:ByteArray):String{
return (hashBinary(_arg1));
}
}
}//package com.adobe.crypto
Section 2
//JSON (com.adobe.serialization.json.JSON)
package com.adobe.serialization.json {
public class JSON {
public static function decode(_arg1:String){
var _local2:JSONDecoder;
_local2 = new JSONDecoder(_arg1);
return (_local2.getValue());
}
public static function encode(_arg1:Object):String{
var _local2:JSONEncoder;
_local2 = new JSONEncoder(_arg1);
return (_local2.getString());
}
}
}//package com.adobe.serialization.json
Section 3
//JSONDecoder (com.adobe.serialization.json.JSONDecoder)
package com.adobe.serialization.json {
public class JSONDecoder {
private var value;
private var tokenizer:JSONTokenizer;
private var token:JSONToken;
public function JSONDecoder(_arg1:String){
tokenizer = new JSONTokenizer(_arg1);
nextToken();
value = parseValue();
}
private function nextToken():JSONToken{
return ((token = tokenizer.getNextToken()));
}
private function parseObject():Object{
var _local1:Object;
var _local2:String;
_local1 = new Object();
nextToken();
if (token.type == JSONTokenType.RIGHT_BRACE){
return (_local1);
};
while (true) {
if (token.type == JSONTokenType.STRING){
_local2 = String(token.value);
nextToken();
if (token.type == JSONTokenType.COLON){
nextToken();
_local1[_local2] = parseValue();
nextToken();
if (token.type == JSONTokenType.RIGHT_BRACE){
return (_local1);
};
if (token.type == JSONTokenType.COMMA){
nextToken();
} else {
tokenizer.parseError(("Expecting } or , but found " + token.value));
};
} else {
tokenizer.parseError(("Expecting : but found " + token.value));
};
} else {
tokenizer.parseError(("Expecting string but found " + token.value));
};
};
return (null);
}
private function parseArray():Array{
var _local1:Array;
_local1 = new Array();
nextToken();
if (token.type == JSONTokenType.RIGHT_BRACKET){
return (_local1);
};
while (true) {
_local1.push(parseValue());
nextToken();
if (token.type == JSONTokenType.RIGHT_BRACKET){
return (_local1);
};
if (token.type == JSONTokenType.COMMA){
nextToken();
} else {
tokenizer.parseError(("Expecting ] or , but found " + token.value));
};
};
return (null);
}
public function getValue(){
return (value);
}
private function parseValue():Object{
if (token == null){
tokenizer.parseError("Unexpected end of input");
};
switch (token.type){
case JSONTokenType.LEFT_BRACE:
return (parseObject());
case JSONTokenType.LEFT_BRACKET:
return (parseArray());
case JSONTokenType.STRING:
case JSONTokenType.NUMBER:
case JSONTokenType.TRUE:
case JSONTokenType.FALSE:
case JSONTokenType.NULL:
return (token.value);
default:
tokenizer.parseError(("Unexpected " + token.value));
};
return (null);
}
}
}//package com.adobe.serialization.json
Section 4
//JSONEncoder (com.adobe.serialization.json.JSONEncoder)
package com.adobe.serialization.json {
import flash.utils.*;
public class JSONEncoder {
private var jsonString:String;
public function JSONEncoder(_arg1){
jsonString = convertToString(_arg1);
}
private function arrayToString(_arg1:Array):String{
var _local2:String;
var _local3:int;
_local2 = "";
_local3 = 0;
while (_local3 < _arg1.length) {
if (_local2.length > 0){
_local2 = (_local2 + ",");
};
_local2 = (_local2 + convertToString(_arg1[_local3]));
_local3++;
};
return ((("[" + _local2) + "]"));
}
private function convertToString(_arg1):String{
if ((_arg1 is String)){
return (escapeString((_arg1 as String)));
};
if ((_arg1 is Number)){
return ((isFinite((_arg1 as Number))) ? _arg1.toString() : "null");
} else {
if ((_arg1 is Boolean)){
return ((_arg1) ? "true" : "false");
} else {
if ((_arg1 is Array)){
return (arrayToString((_arg1 as Array)));
};
if ((((_arg1 is Object)) && (!((_arg1 == null))))){
return (objectToString(_arg1));
};
};
};
return ("null");
}
private function escapeString(_arg1:String):String{
var _local2:String;
var _local3:String;
var _local4:Number;
var _local5:int;
var _local6:String;
var _local7:String;
_local2 = "";
_local4 = _arg1.length;
_local5 = 0;
while (_local5 < _local4) {
_local3 = _arg1.charAt(_local5);
switch (_local3){
case "\"":
_local2 = (_local2 + "\\\"");
break;
case "\\":
_local2 = (_local2 + "\\\\");
break;
case "\b":
_local2 = (_local2 + "\\b");
break;
case "\f":
_local2 = (_local2 + "\\f");
break;
case "\n":
_local2 = (_local2 + "\\n");
break;
case "\r":
_local2 = (_local2 + "\\r");
break;
case "\t":
_local2 = (_local2 + "\\t");
break;
default:
if (_local3 < " "){
_local6 = _local3.charCodeAt(0).toString(16);
_local7 = ((_local6.length == 2)) ? "00" : "000";
_local2 = (_local2 + (("\\u" + _local7) + _local6));
} else {
_local2 = (_local2 + _local3);
};
};
_local5++;
};
return ((("\"" + _local2) + "\""));
}
private function objectToString(_arg1:Object):String{
var s:String;
var classInfo:XML;
var value:Object;
var key:String;
var v:XML;
var o = _arg1;
s = "";
classInfo = describeType(o);
if (classInfo.@name.toString() == "Object"){
for (key in o) {
value = o[key];
if ((value is Function)){
} else {
if (s.length > 0){
s = (s + ",");
};
s = (s + ((escapeString(key) + ":") + convertToString(value)));
};
};
} else {
for each (v in classInfo..*.(((name() == "variable")) || ((name() == "accessor")))) {
if (s.length > 0){
s = (s + ",");
};
s = (s + ((escapeString(v.@name.toString()) + ":") + convertToString(o[v.@name])));
};
};
return ((("{" + s) + "}"));
}
public function getString():String{
return (jsonString);
}
}
}//package com.adobe.serialization.json
Section 5
//JSONParseError (com.adobe.serialization.json.JSONParseError)
package com.adobe.serialization.json {
public class JSONParseError extends Error {
private var _text:String;
private var _location:int;
public function JSONParseError(_arg1:String="", _arg2:int=0, _arg3:String=""){
super(_arg1);
name = "JSONParseError";
_location = _arg2;
_text = _arg3;
}
public function get text():String{
return (_text);
}
public function get location():int{
return (_location);
}
}
}//package com.adobe.serialization.json
Section 6
//JSONToken (com.adobe.serialization.json.JSONToken)
package com.adobe.serialization.json {
public class JSONToken {
private var _value:Object;
private var _type:int;
public function JSONToken(_arg1:int=-1, _arg2:Object=null){
_type = _arg1;
_value = _arg2;
}
public function set value(_arg1:Object):void{
_value = _arg1;
}
public function get value():Object{
return (_value);
}
public function set type(_arg1:int):void{
_type = _arg1;
}
public function get type():int{
return (_type);
}
}
}//package com.adobe.serialization.json
Section 7
//JSONTokenizer (com.adobe.serialization.json.JSONTokenizer)
package com.adobe.serialization.json {
public class JSONTokenizer {
private var loc:int;
private var ch:String;
private var obj:Object;
private var jsonString:String;
public function JSONTokenizer(_arg1:String){
jsonString = _arg1;
loc = 0;
nextChar();
}
private function skipComments():void{
if (ch == "/"){
nextChar();
switch (ch){
case "/":
do {
nextChar();
} while (((!((ch == "\n"))) && (!((ch == "")))));
nextChar();
break;
case "*":
nextChar();
while (true) {
if (ch == "*"){
nextChar();
if (ch == "/"){
nextChar();
break;
};
} else {
nextChar();
};
if (ch == ""){
parseError("Multi-line comment not closed");
};
};
break;
default:
parseError((("Unexpected " + ch) + " encountered (expecting '/' or '*' )"));
};
};
}
private function isDigit(_arg1:String):Boolean{
return ((((_arg1 >= "0")) && ((_arg1 <= "9"))));
}
private function readNumber():JSONToken{
var _local1:JSONToken;
var _local2:String;
var _local3:Number;
_local1 = new JSONToken();
_local1.type = JSONTokenType.NUMBER;
_local2 = "";
if (ch == "-"){
_local2 = (_local2 + "-");
nextChar();
};
if (!isDigit(ch)){
parseError("Expecting a digit");
};
if (ch == "0"){
_local2 = (_local2 + ch);
nextChar();
if (isDigit(ch)){
parseError("A digit cannot immediately follow 0");
};
} else {
while (isDigit(ch)) {
_local2 = (_local2 + ch);
nextChar();
};
};
if (ch == "."){
_local2 = (_local2 + ".");
nextChar();
if (!isDigit(ch)){
parseError("Expecting a digit");
};
while (isDigit(ch)) {
_local2 = (_local2 + ch);
nextChar();
};
};
if ((((ch == "e")) || ((ch == "E")))){
_local2 = (_local2 + "e");
nextChar();
if ((((ch == "+")) || ((ch == "-")))){
_local2 = (_local2 + ch);
nextChar();
};
if (!isDigit(ch)){
parseError("Scientific notation number needs exponent value");
};
while (isDigit(ch)) {
_local2 = (_local2 + ch);
nextChar();
};
};
_local3 = Number(_local2);
if (((isFinite(_local3)) && (!(isNaN(_local3))))){
_local1.value = _local3;
return (_local1);
};
parseError((("Number " + _local3) + " is not valid!"));
return (null);
}
private function nextChar():String{
return ((ch = jsonString.charAt(loc++)));
}
public function getNextToken():JSONToken{
var _local1:JSONToken;
var _local2:String;
var _local3:String;
var _local4:String;
_local1 = new JSONToken();
skipIgnored();
switch (ch){
case "{":
_local1.type = JSONTokenType.LEFT_BRACE;
_local1.value = "{";
nextChar();
break;
case "}":
_local1.type = JSONTokenType.RIGHT_BRACE;
_local1.value = "}";
nextChar();
break;
case "[":
_local1.type = JSONTokenType.LEFT_BRACKET;
_local1.value = "[";
nextChar();
break;
case "]":
_local1.type = JSONTokenType.RIGHT_BRACKET;
_local1.value = "]";
nextChar();
break;
case ",":
_local1.type = JSONTokenType.COMMA;
_local1.value = ",";
nextChar();
break;
case ":":
_local1.type = JSONTokenType.COLON;
_local1.value = ":";
nextChar();
break;
case "t":
_local2 = ((("t" + nextChar()) + nextChar()) + nextChar());
if (_local2 == "true"){
_local1.type = JSONTokenType.TRUE;
_local1.value = true;
nextChar();
} else {
parseError(("Expecting 'true' but found " + _local2));
};
break;
case "f":
_local3 = (((("f" + nextChar()) + nextChar()) + nextChar()) + nextChar());
if (_local3 == "false"){
_local1.type = JSONTokenType.FALSE;
_local1.value = false;
nextChar();
} else {
parseError(("Expecting 'false' but found " + _local3));
};
break;
case "n":
_local4 = ((("n" + nextChar()) + nextChar()) + nextChar());
if (_local4 == "null"){
_local1.type = JSONTokenType.NULL;
_local1.value = null;
nextChar();
} else {
parseError(("Expecting 'null' but found " + _local4));
};
break;
case "\"":
_local1 = readString();
break;
default:
if (((isDigit(ch)) || ((ch == "-")))){
_local1 = readNumber();
} else {
if (ch == ""){
return (null);
};
parseError((("Unexpected " + ch) + " encountered"));
};
};
return (_local1);
}
private function skipWhite():void{
while (isWhiteSpace(ch)) {
nextChar();
};
}
private function isWhiteSpace(_arg1:String):Boolean{
return ((((((((_arg1 == " ")) || ((_arg1 == "\t")))) || ((_arg1 == "\n")))) || ((_arg1 == "\r"))));
}
public function parseError(_arg1:String):void{
throw (new JSONParseError(_arg1, loc, jsonString));
}
private function skipIgnored():void{
var _local1:int;
do {
_local1 = loc;
skipWhite();
skipComments();
} while (_local1 != loc);
}
private function isHexDigit(_arg1:String):Boolean{
var _local2:String;
_local2 = _arg1.toUpperCase();
return (((isDigit(_arg1)) || ((((_local2 >= "A")) && ((_local2 <= "F"))))));
}
private function readString():JSONToken{
var _local1:JSONToken;
var _local2:String;
var _local3:String;
var _local4:int;
_local1 = new JSONToken();
_local1.type = JSONTokenType.STRING;
_local2 = "";
nextChar();
while (((!((ch == "\""))) && (!((ch == ""))))) {
if (ch == "\\"){
nextChar();
switch (ch){
case "\"":
_local2 = (_local2 + "\"");
break;
case "/":
_local2 = (_local2 + "/");
break;
case "\\":
_local2 = (_local2 + "\\");
break;
case "b":
_local2 = (_local2 + "\b");
break;
case "f":
_local2 = (_local2 + "\f");
break;
case "n":
_local2 = (_local2 + "\n");
break;
case "r":
_local2 = (_local2 + "\r");
break;
case "t":
_local2 = (_local2 + "\t");
break;
case "u":
_local3 = "";
_local4 = 0;
while (_local4 < 4) {
if (!isHexDigit(nextChar())){
parseError((" Excepted a hex digit, but found: " + ch));
};
_local3 = (_local3 + ch);
_local4++;
};
_local2 = (_local2 + String.fromCharCode(parseInt(_local3, 16)));
break;
default:
_local2 = (_local2 + ("\\" + ch));
};
} else {
_local2 = (_local2 + ch);
};
nextChar();
};
if (ch == ""){
parseError("Unterminated string literal");
};
nextChar();
_local1.value = _local2;
return (_local1);
}
}
}//package com.adobe.serialization.json
Section 8
//JSONTokenType (com.adobe.serialization.json.JSONTokenType)
package com.adobe.serialization.json {
public class JSONTokenType {
public static const NUMBER:int = 11;
public static const FALSE:int = 8;
public static const RIGHT_BRACKET:int = 4;
public static const NULL:int = 9;
public static const TRUE:int = 7;
public static const RIGHT_BRACE:int = 2;
public static const UNKNOWN:int = -1;
public static const COMMA:int = 0;
public static const LEFT_BRACKET:int = 3;
public static const STRING:int = 10;
public static const LEFT_BRACE:int = 1;
public static const COLON:int = 6;
}
}//package com.adobe.serialization.json
Section 9
//IntUtil (com.adobe.utils.IntUtil)
package com.adobe.utils {
public class IntUtil {
private static var hexChars:String = "0123456789abcdef";
public static function toHex(_arg1:int, _arg2:Boolean=false):String{
var _local3:String;
var _local4:int;
var _local5:int;
_local3 = "";
if (_arg2){
_local4 = 0;
while (_local4 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> (((3 - _local4) * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> ((3 - _local4) * 8)) & 15))));
_local4++;
};
} else {
_local5 = 0;
while (_local5 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> ((_local5 * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> (_local5 * 8)) & 15))));
_local5++;
};
};
return (_local3);
}
public static function ror(_arg1:int, _arg2:int):uint{
var _local3:int;
_local3 = (32 - _arg2);
return (((_arg1 << _local3) | (_arg1 >>> (32 - _local3))));
}
public static function rol(_arg1:int, _arg2:int):int{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
}
}//package com.adobe.utils
Section 10
//StringUtil (com.adobe.utils.StringUtil)
package com.adobe.utils {
public class StringUtil {
public static function beginsWith(_arg1:String, _arg2:String):Boolean{
return ((_arg2 == _arg1.substring(0, _arg2.length)));
}
public static function trim(_arg1:String):String{
return (StringUtil.ltrim(StringUtil.rtrim(_arg1)));
}
public static function stringsAreEqual(_arg1:String, _arg2:String, _arg3:Boolean):Boolean{
if (_arg3){
return ((_arg1 == _arg2));
};
return ((_arg1.toUpperCase() == _arg2.toUpperCase()));
}
public static function replace(_arg1:String, _arg2:String, _arg3:String):String{
var _local4:String;
var _local5:Boolean;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
_local4 = new String();
_local5 = false;
_local6 = _arg1.length;
_local7 = _arg2.length;
_local8 = 0;
while (_local8 < _local6) {
if (_arg1.charAt(_local8) == _arg2.charAt(0)){
_local5 = true;
_local9 = 0;
while (_local9 < _local7) {
if (_arg1.charAt((_local8 + _local9)) != _arg2.charAt(_local9)){
_local5 = false;
break;
};
_local9++;
};
//unresolved if
_local4 = (_local4 + _arg3);
_local8 = (_local8 + (_local7 - 1));
} else {
_local4 = (_local4 + _arg1.charAt(_local8));
};
_local8++;
};
return (_local4);
}
public static function rtrim(_arg1:String):String{
var _local2:Number;
var _local3:Number;
_local2 = _arg1.length;
_local3 = _local2;
while (_local3 > 0) {
if (_arg1.charCodeAt((_local3 - 1)) > 32){
return (_arg1.substring(0, _local3));
};
_local3--;
};
return ("");
}
public static function endsWith(_arg1:String, _arg2:String):Boolean{
return ((_arg2 == _arg1.substring((_arg1.length - _arg2.length))));
}
public static function stringHasValue(_arg1:String):Boolean{
return (((!((_arg1 == null))) && ((_arg1.length > 0))));
}
public static function remove(_arg1:String, _arg2:String):String{
return (StringUtil.replace(_arg1, _arg2, ""));
}
public static function ltrim(_arg1:String):String{
var _local2:Number;
var _local3:Number;
_local2 = _arg1.length;
_local3 = 0;
while (_local3 < _local2) {
if (_arg1.charCodeAt(_local3) > 32){
return (_arg1.substring(_local3));
};
_local3++;
};
return ("");
}
}
}//package com.adobe.utils
Section 11
//BaseN (com.newgrounds.BaseN)
package com.newgrounds {
import flash.utils.*;
public class BaseN {
private var _hashIndex:String;
private var _base:Number;
private var _hashVal:Dictionary;
public function BaseN(_arg1:String=null){
var _local2:uint;
super();
if (_arg1){
_hashIndex = _arg1;
} else {
_hashIndex = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~@#$%^&*()+|;/";
};
_base = _hashIndex.length;
_hashVal = new Dictionary();
_local2 = 0;
while (_local2 < _base) {
_hashVal[_hashIndex.charAt(_local2)] = _local2;
_local2++;
};
}
private function baseNDecoder(_arg1:String):uint{
var _local2:uint;
var _local3:uint;
_local2 = 0;
_local3 = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 * _base);
_local2 = (_local2 + _hashVal[_arg1.charAt(_local3)]);
_local3++;
};
return (_local2);
}
public function decode(_arg1:String):Number{
var _local2:String;
var _local3:Array;
_local2 = "";
if (_arg1.charAt(0) == "-"){
_local2 = "-";
_arg1 = _arg1.substring(1);
};
_local3 = _arg1.split(".", 2);
_local2 = (_local2 + baseNDecoder(_local3[0]));
if (_local3.length > 1){
_local2 = (_local2 + ".");
_local2 = (_local2 + baseNDecoder(_local3[1]));
};
return (Number(_local2));
}
public function encode(_arg1:Number, _arg2:uint=1):String{
var _local3:String;
var _local4:String;
var _local5:Array;
_local3 = _arg1.toString();
_local4 = "";
if (_local3.charAt(0) == "-"){
_local4 = "-";
_local3 = _local3.substring(1);
};
_local5 = _local3.split(".", 2);
_local4 = (_local4 + baseNEncoder(_local5[0], _arg2));
if (_local5.length > 1){
_local4 = (_local4 + ("." + baseNEncoder(_local5[1])));
};
return (_local4);
}
private function baseNEncoder(_arg1:uint, _arg2:uint=1):String{
var _local3:String;
var _local4:uint;
_local3 = "";
_local4 = _arg1;
while (_local4 != 0) {
_local3 = (_hashIndex.charAt((_local4 % _base)) + _local3);
_local4 = (_local4 / _base);
};
if (_arg2){
while (_local3.length < _arg2) {
_local3 = (_hashIndex.charAt(0) + _local3);
};
};
return (_local3);
}
}
}//package com.newgrounds
Section 12
//NewgroundsAPI (com.newgrounds.NewgroundsAPI)
package com.newgrounds {
import flash.utils.*;
import com.adobe.serialization.json.*;
import flash.display.*;
import flash.events.*;
import com.adobe.crypto.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
public class NewgroundsAPI extends EventDispatcher {
private static const COMMANDS_WIKI_URL:String = "http://www.newgrounds.com/wiki/flashapi/commands/";
public static const events:Object = {MOVIE_CONNECTED:1, ADS_APPROVED:2, AD_ATTACHED:3, HOST_BLOCKED:4, NEW_VERSION_AVAILABLE:5, EVENT_LOGGED:6, SCORE_POSTED:7, SCORES_LOADED:8, MEDAL_UNLOCKED:9, MEDALS_LOADED:10, FILE_PRIVS_LOADED:11, FILE_SAVED:12};
private static const AD_TERMS_URL:String = "http://www.newgrounds.com/wiki/flashads/terms/";
private static const REMOVED_FROM_STAGE:String = "removedFromStage";
private static const GATEWAY_URL:String = "http://www.ngads.com/gateway_v2.php";
private static var connected:Boolean;
private static var error_format:TextFormat;
private static var user_id:Number;
private static var _initialized:Boolean = false;
private static var ad_swf_url:String;
private static var ad:Loader;
private static var user_email:String;
private static var ad_reset:Number = 0;
private static var publisher_id:Number;
private static var listeners:Array = setDefaultListeners();
private static var debug:Boolean;
private static var normal_format:TextFormat;
private static var do_echo:Boolean = false;
private static var ad_url:String;
private static var medals:Array = null;
private static var session_id:String;
private static var timeoutTimer:Timer;
public static var errors:Dictionary = NewgroundsAPIError.init_codes();
private static var adURLLoader:URLLoader;
private static var tracker_id:uint;
private static var user_name:String;
private static var movie_id:String;
private static var adContainer:Sprite;
private static var encryption_key:String;
private static var flashAdTarget:DisplayObjectContainer;
private static var host:String;
private static var loaders:Array = [];
private static var compressor:BaseN = new BaseN(compression_radix);
private static var period_aliases:Object = {t:{name:"Today", alias:"TODAY"}, p:{name:"Yesterday", alias:"YESTERDAY"}, w:{name:"This Week", alias:"THIS_WEEK"}, m:{name:"This Month", alias:"THIS_MONTH"}, y:{name:"This Year", alias:"THIS_YEAR"}, a:{name:"All-Time", alias:"ALL_TIME"}};
private static var score_page_counts:Object = new Object();
private static var version:String;
private static var link_format:TextFormat;
public static var periods:Object = getPeriodAliases();
private static var root:DisplayObject;
private static var compression_radix:String = "/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X";
private static var sharedObjects:Object = new Object();
private static var header_format:TextFormat;
private static var save_file = null;
public static function setMovieVersion(_arg1:String):void{
if (_arg1){
version = String(_arg1);
};
}
public static function unlockMedal(_arg1:String, _arg2:Boolean=false):void{
var _local3:Object;
if (!_arg1){
sendError({command_id:getCommandID("unlockMedal")}, new NewgroundsAPIError("MISSING_PARAM", "missing required medal name"));
return;
};
_local3 = new Object();
_local3.medal = _arg1;
_local3.get_score = _arg2;
sendSecureCommand("unlockMedal", _local3);
}
private static function uncompressHex(_arg1:String):String{
var _local2:uint;
var _local3:String;
var _local4:uint;
var _local5:uint;
var _local6:String;
var _local7:uint;
var _local8:String;
_local2 = uint(_arg1.charAt(0));
_local3 = "";
_local5 = 1;
while (_local5 < _arg1.length) {
_local6 = _arg1.substr(_local5, 4);
_local7 = uint(compressor.decode(_local6));
_local8 = _local7.toString(16);
if ((_local5 + 4) < _arg1.length){
_local4 = 6;
} else {
_local4 = _local2;
};
while (_local8.length < _local4) {
_local8 = ("0" + _local8);
};
_local3 = (_local3 + _local8);
_local5 = (_local5 + 4);
};
return (_local3);
}
public static function isFlashVersion(_arg1:uint, _arg2:uint=0, _arg3:uint=0, _arg4:uint=0):Boolean{
var _local6:Array;
var _local7:Array;
var _local8:uint;
_local6 = Capabilities.version.split(" ")[1].split(",");
_local7 = arguments;
_local8 = 0;
while (_local8 < _local7.length) {
_local6[_local8] = uint(_local6[_local8]);
_local8++;
};
_local8 = 0;
while (_local8 < _local7.length) {
if (_local6[_local8] > _local7[_local8]){
return (true);
};
if (_local6[_local8] < _local7[_local8]){
return (false);
};
_local8++;
};
return (true);
}
public static function loadLocal(_arg1:String){
var _local2:SharedObject;
if (!sharedObjects[_arg1]){
sharedObjects[_arg1] = SharedObject.getLocal(((("ng_ap_secure_" + movie_id) + "_") + _arg1));
};
_local2 = sharedObjects[_arg1];
_local2.flush();
if (_local2.data[_arg1]){
return (decodeData(sharedObjects.data[_arg1]));
};
return (null);
}
public static function hasUserEmail():Boolean{
return (((!((user_email == null))) && (!((user_email == "")))));
}
private static function getHost():String{
return (host);
}
public static function getYesterdaysScores(_arg1:String, _arg2:Object):void{
getScores(_arg1, "y", _arg2, "getYesterdaysScores");
}
public static function onNewVersionAvailable(_arg1:Object, _arg2:Object):void{
}
private static function echo(_arg1:String):void{
if (do_echo){
trace(_arg1);
};
}
public static function attachFlashAd(_arg1:DisplayObjectContainer):void{
var _local2:URLRequest;
Security.allowDomain("http://server.cpmstar.com");
Security.allowDomain("http://www.cpmstar.com");
Security.allowDomain("https://server.cpmstar.com");
Security.allowDomain("https://www.cpmstar.com");
Security.allowInsecureDomain("http://server.cpmstar.com");
Security.allowInsecureDomain("http://www.cpmstar.com");
Security.allowInsecureDomain("https://server.cpmstar.com");
Security.allowInsecureDomain("https://www.cpmstar.com");
flashAdTarget = _arg1;
sendMessage("You may get a security sandbox violation from this ad. This is nothing to worry about!");
if (resetAdTimer()){
if (ad_url){
adURLLoader = new URLLoader();
adURLLoader.addEventListener(Event.COMPLETE, adLoaderHandler);
adURLLoader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
if (ad_url.indexOf("?") > -1){
_local2 = new URLRequest(((ad_url + "&random=") + Math.random()));
adURLLoader.load(_local2);
} else {
_local2 = new URLRequest(((ad_url + "?random=") + Math.random()));
adURLLoader.load(_local2);
};
};
} else {
renderAd(_arg1);
};
}
public static function getThisMonthsScores(_arg1:String, _arg2:Object):void{
getScores(_arg1, "m", _arg2, "getThisMonthsScores");
}
public static function getScores(_arg1:String, _arg2:String, _arg3:Object=null, _arg4:String=null):void{
var _local5:String;
if (!_arg3){
_arg3 = new Object();
};
if (!hasUserSession()){
callListener(events.SCORES_LOADED, false, new NewgroundsAPIError("SITE_ID_REQUIRED", (("Host '" + getHost()) + "' does not have high scores enabled")));
return;
};
_arg3.publisher_id = publisher_id;
_arg3.period = _arg2;
_arg3.score = _arg1;
if (_arg3.user_id){
_local5 = _arg2;
} else {
_local5 = (_arg2 + "-u");
};
if (score_page_counts[_local5] == undefined){
_arg3.request_page_count = true;
};
sendCommand("getScores", _arg3);
}
public static function sendSecureCommand(_arg1:String, _arg2:Object, _arg3:Object=null, _arg4:Object=null):void{
var _local5:String;
var _local6:uint;
var _local7:String;
var _local8:String;
var _local9:String;
if (((((!(debug)) && (!(hasUserSession())))) && (!(hasUserEmail())))){
sendError({command_id:getCommandID(_arg1)}, new NewgroundsAPIError("IDENTIFICATION_REQUIRED", (("You must be logged in or provide an e-mail address ( using NewgroundsAPI.setUserEmail(\"name@domain.com\"); ) to use " + _arg1) + "().")));
return;
};
if (!_arg1){
fatalError("Missing command", "sendSecureCommand");
};
if (!_arg2){
fatalError("Missing secure_params", "sendSecureCommand");
};
if (!_arg3){
_arg3 = new Object();
};
_local5 = "";
_local6 = 0;
while (_local6 < 16) {
_local5 = (_local5 + compression_radix.charAt(Math.floor((Math.random() * compression_radix.length))));
_local6++;
};
if (debug){
_arg2.session_id = "";
} else {
_arg2.session_id = session_id;
};
_arg2.as_version = 3;
_arg2.user_email = user_email;
_arg2.publisher_id = publisher_id;
_arg2.seed = _local5;
_arg2.command_id = getCommandID(_arg1);
_local7 = MD5.hash(_local5);
_local8 = RC4.encrypt(JSON.encode(_arg2), encryption_key);
_local9 = (_local7 + _local8);
_arg3.secure = compressHex(_local9);
sendCommand("securePacket", _arg3, false, _arg4);
}
private static function initTextFormats():void{
if (!error_format){
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 0xFF0000;
};
if (!header_format){
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 0xFFFFFF;
};
if (!normal_format){
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 0xFFFFFF;
};
if (!link_format){
link_format = new TextFormat();
link_format.color = 0xFFFF00;
link_format.underline = true;
};
}
private static function getCommandName(_arg1:String):String{
return (_arg1);
}
private static function getPeriodAliases():Object{
var _local1:Object;
var _local2:String;
_local1 = new Object();
for (_local2 in period_aliases) {
_local1[period_aliases[_local2].alias] = _local2;
};
return (_local1);
}
public static function removeEventListener(_arg1:uint):void{
delete listeners[_arg1];
}
public static function getThisWeeksScores(_arg1:String, _arg2:Object):void{
getScores(_arg1, "w", _arg2, "getThisWeeksScores");
}
public static function setUserEmail(_arg1:String):void{
user_email = _arg1;
}
public static function hasUserSession():Boolean{
return (((((!((session_id == null))) && (!((session_id == ""))))) && (!((publisher_id == 0)))));
}
public static function getMedals():Array{
return (medals);
}
public static function addEventListener(_arg1:uint, _arg2:Function, _arg3:Object=null):void{
listeners[_arg1] = {listener:_arg2, params:_arg3};
}
private static function callListener(_arg1:uint, _arg2:Boolean, _arg3=undefined, _arg4=undefined):void{
echo(("Fired Event: " + getEventName(_arg1)));
if (listeners[_arg1]){
if ((_arg3 is NewgroundsAPIError)){
listeners[_arg1].listener({event:_arg1, success:_arg2, error:_arg3, target:_arg4}, listeners[_arg1].params);
} else {
listeners[_arg1].listener({event:_arg1, success:_arg2, data:_arg3, target:_arg4}, listeners[_arg1].params);
};
};
}
private static function compressHex(_arg1:String):String{
var _local2:uint;
var _local3:String;
var _local4:uint;
_local2 = (_arg1.length % 6);
_local3 = "";
_local4 = 0;
while (_local4 < _arg1.length) {
_local3 = (_local3 + compressor.encode(uint(("0x" + _arg1.substr(_local4, 6))), 4));
_local4 = (_local4 + 6);
};
return ((_local2.toString() + _local3));
}
private static function adLoaderHandler(_arg1:Event):void{
var _local2:URLLoader;
_local2 = URLLoader(_arg1.target);
if (_local2.data){
ad_swf_url = String(_local2.data);
} else {
ad_swf_url = null;
};
renderAd(flashAdTarget);
}
public static function checkFilePrivs(_arg1:String, _arg2:String):void{
var _local3:uint;
var _local4:Object;
if (user_id){
_local3 = user_id;
} else {
_local3 = 0;
};
_local4 = {folder:_arg1, filename:_arg2, user_id:_local3, publisher_id:publisher_id};
sendCommand("checkFilePrivs", _local4);
}
public static function connectMovie(_arg1:DisplayObject, _arg2:String, _arg3:String, _arg4:Boolean):void{
initialize(_arg1);
if (connected){
return;
};
timeoutTimer.start();
if (!_arg2){
fatalError("NewgroundsAPI.connectMovie() - missing required movie_id parameter", "connectMovie");
};
movie_id = String(_arg2);
tracker_id = uint(movie_id.substring(0, movie_id.indexOf(":")));
encryption_key = _arg3;
debug = _arg4;
connected = true;
sendCommand("connectMovie", {host:getHost(), movie_version:version});
}
private static function sendMessage(_arg1:String, _arg2:Boolean=false):String{
var _local3:String;
_local3 = ("[NewgroundsAPI] :: " + _arg1);
if (_arg2){
return (_local3);
};
trace(_local3);
return (null);
}
private static function renderAd(_arg1:DisplayObjectContainer):void{
var _local2:Shape;
var _local3:Shape;
if (ad){
removeAd();
};
if (ad_swf_url){
_local2 = new Shape();
_local2.graphics.beginFill(0);
_local2.graphics.moveTo(0, 0);
_local2.graphics.lineTo(300, 0);
_local2.graphics.lineTo(300, 250);
_local2.graphics.lineTo(0, 250);
_local2.graphics.lineTo(0, 0);
_local2.graphics.endFill();
_local3 = new Shape();
_local3.graphics.beginFill(0);
_local3.graphics.moveTo(0, 0);
_local3.graphics.lineTo(300, 0);
_local3.graphics.lineTo(300, 250);
_local3.graphics.lineTo(0, 250);
_local3.graphics.lineTo(0, 0);
_local3.graphics.endFill();
ad = new Loader();
adContainer = new Sprite();
adContainer.addChild(_local2);
adContainer.addChild(ad);
adContainer.addChild(_local3);
ad.mask = _local3;
_arg1.addChild(adContainer);
if (isFlashVersion(9, 0, 28)){
adContainer.addEventListener(REMOVED_FROM_STAGE, removeAdHandler);
};
ad.load(new URLRequest(ad_swf_url));
callListener(events.AD_ATTACHED, true, null, _arg1);
} else {
callListener(events.AD_ATTACHED, false, new NewgroundsAPIError("FLASH_ADS_NOT_APPROVED", "Unable to render ad"));
};
}
private static function fatalError(_arg1:String, _arg2:String):void{
if (_arg2){
_arg1 = (_arg1 + ((("\n\tSee " + COMMANDS_WIKI_URL) + _arg2.toLowerCase()) + " for additional information."));
};
throw (new Error(("***ERROR*** class=NewgroundsAPI\n\n" + _arg1)));
}
private static function ioErrorHandler(_arg1:IOErrorEvent):void{
sendWarning(("Ad failed to load:" + _arg1.toString()));
}
private static function sendError(_arg1:Object, _arg2:NewgroundsAPIError):void{
trace(((((("[NewgroundsAPI ERROR] :: " + getCommandName(_arg1.command_id)) + "() - ") + _arg2.name) + ":\n\t\t\t\t") + _arg2.message));
}
public static function connectionTimeOut(_arg1:Event=null):void{
callListener(events.MOVIE_CONNECTED, false, new NewgroundsAPIError("CONNECTION_FAILED", "Connection to NewgroundsAPI gateway timed out."));
}
private static function setDefaultListeners():Array{
var _local1:Array;
_local1 = new Array();
_local1[events.HOST_BLOCKED] = {listener:doBlockHost};
_local1[events.NEW_VERSION_AVAILABLE] = {listener:onNewVersionAvailable};
return (_local1);
}
public static function hasPublisher():Boolean{
return (!((publisher_id == 0)));
}
public static function getEventName(_arg1:uint):String{
var _local2:String;
for (_local2 in events) {
if (events[_local2] == _arg1){
return (_local2);
};
};
return (undefined);
}
public static function initialize(_arg1:DisplayObject):void{
var _local2:Object;
if (_initialized){
return;
};
_initialized = true;
NewgroundsAPI.root = _arg1;
timeoutTimer = new Timer(8000, 1);
if (_arg1.loaderInfo){
_local2 = _arg1.loaderInfo.parameters;
host = _arg1.loaderInfo.url;
};
if (_local2){
user_name = _local2.NewgroundsAPI_UserName;
user_id = _local2.NewgroundsAPI_UserID;
publisher_id = _local2.NewgroundsAPI_PublisherID;
session_id = _local2.NewgroundsAPI_SessionID;
} else {
publisher_id = 1;
session_id = null;
user_id = 0;
user_name = "Guest";
};
if ((((host.indexOf("http://") > -1)) || ((host.indexOf("https://") > -1)))){
host = host.split("/")[2].toLowerCase();
} else {
host = "localhost";
};
}
private static function removeAdHandler(_arg1:Event):void{
removeAd();
}
private static function resetAdTimer():Boolean{
var _local1:Date;
if (!ad_url){
return (false);
};
_local1 = new Date();
if (_local1.getTime() >= ad_reset){
ad_reset = (_local1.getTime() + ((1000 * 60) * 5));
return (true);
};
return (false);
}
public static function loadCustomLink(_arg1:String):void{
sendCommand("loadCustomLink", {host:getHost(), link:_arg1}, true);
}
public static function loadMySite():void{
sendCommand("loadMySite", {host:getHost()});
}
public static function saveFile(_arg1:String, _arg2:String, _arg3:Object, _arg4):void{
}
public static function getTodaysScores(_arg1:String, _arg2:Object):void{
getScores(_arg1, "t", _arg2, "getTodaysScores");
}
private static function doBlockHost(_arg1:Object):void{
}
private static function sendCommand(_arg1:String, _arg2:Object, _arg3:Boolean=false, _arg4:Object=null):void{
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:String;
var _local9:Array;
var _local10:String;
var _local11:URLLoader;
if (((!(connected)) && (!((_arg1 == "connectMovie"))))){
_local8 = (("NewgroundsAPI." + _arg1) + "() - NewgroundsAPI.connectMovie() must be called before this command can be called\n");
fatalError(_local8, "connectMovie");
};
_local5 = new URLVariables();
_local5.command_id = getCommandID(_arg1);
_local5.tracker_id = movie_id;
if (debug){
_local5.debug = debug;
};
if (_arg2){
for (_local6 in _arg2) {
_local5[_local6] = _arg2[_local6];
};
};
if (_arg4){
for (_local6 in _arg4) {
_local5[_local6] = _arg4[_local6];
};
};
echo((("OUTPUT: \n" + JSON.encode(_local5)) + "\n"));
_local7 = new URLRequest(((GATEWAY_URL + "?seed=") + Math.random()));
_local7.data = _local5;
if (_arg3){
_local7.method = URLRequestMethod.GET;
_local7.data = _local5;
navigateToURL(_local7, "_blank");
} else {
_local9 = new Array();
for (_local10 in _local5) {
_local9.push(((_local10 + "=") + escape(_local5[_local10])));
};
echo(((("POST " + GATEWAY_URL) + "?") + _local9.join("&")));
_local7.method = URLRequestMethod.POST;
_local11 = new URLLoader();
_local11.addEventListener(Event.COMPLETE, loaderHandler);
loaders.push(_local11);
_local11.load(_local7);
trace(_local7.data);
};
}
public static function getConfirmation(_arg1:String, _arg2:uint, _arg3:String, _arg4:Object, _arg5:String, _arg6:String):void{
}
private static function loaderHandler(_arg1:Event):void{
var _local2:URLLoader;
var _local3:uint;
var _local4:Object;
var _local5:NewgroundsAPIError;
_local2 = URLLoader(_arg1.target);
echo((("INPUT: \n" + _local2.data) + "\n"));
_local3 = 0;
while (_local3 < loaders.length) {
if (loaders[_local3] == _local2){
loaders.splice(_local3, 1);
break;
};
_local3++;
};
if (_local2.data){
_local4 = JSON.decode(_local2.data);
} else {
_local4 = {success:false};
};
if (!_local4.success){
_local5 = new NewgroundsAPIError(_local4.error_code, _local4.error_msg);
sendError(_local4, _local5);
} else {
doEvent(_local4);
};
}
public static function loadNewgrounds():void{
sendCommand("loadNewgrounds", {host:getHost()}, true);
}
public static function getOfficialVersionURL():String{
var _local1:String;
_local1 = ((((((GATEWAY_URL + "?tracker_id=") + movie_id) + "&command_id=") + getCommandID("loadOfficalVersion")) + "&seed=") + Math.random());
if (debug){
_local1 = (_local1 + "&debug=1");
};
return (_local1);
}
public static function getFiles(_arg1:String, _arg2:Object):void{
}
public static function logCustomEvent(_arg1:String):void{
sendCommand("logCustomEvent", {host:getHost(), event:_arg1});
}
public static function removeAd():void{
if (adURLLoader){
try {
adURLLoader.close();
} catch(e:Error) {
};
adURLLoader = null;
};
if (ad){
try {
ad.close();
} catch(e:Error) {
};
try {
Object(ad).unloadAndStop(true);
trace("uas");
} catch(e:Error) {
ad.unload();
};
if (ad.parent){
ad.parent.removeChild(ad);
};
};
if (adContainer){
if (isFlashVersion(9, 0, 28, 0)){
adContainer.removeEventListener(REMOVED_FROM_STAGE, removeAdHandler);
};
if (adContainer.parent){
adContainer.parent.removeChild(adContainer);
};
};
ad = null;
adContainer = null;
}
public static function postScore(_arg1:String, _arg2:Number, _arg3:Boolean):void{
sendSecureCommand("postScore", {score:_arg1, value:_arg2, get_best:_arg3});
}
public static function finishFileSave(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean, _arg5, _arg6):void{
}
private static function sendNotice(_arg1:String, _arg2:String=null):void{
if (_arg2){
_arg1 = (_arg1 + ((("\n[NewgroundsAPI NOTICE] :: \tSee " + COMMANDS_WIKI_URL) + _arg2.toLowerCase()) + " for additional information."));
};
trace(("[NewgroundsAPI NOTICE] :: " + _arg1));
}
public static function decodeData(_arg1:String){
return (JSON.decode(RC4.decrypt(uncompressHex(_arg1), encryption_key)));
}
public static function encodeData(_arg1:Object):String{
return (compressHex(RC4.encrypt(JSON.encode(_arg1), encryption_key)));
}
public static function getThisYearsScores(_arg1:String, _arg2:Object):void{
getScores(_arg1, "y", _arg2, "getThisYearsScores");
}
private static function doEvent(_arg1:Object):void{
var _local2:String;
var _local3:Object;
var _local4:String;
var _local5:Boolean;
var _local6:String;
var _local7:uint;
switch (getCommandName(_arg1.command_id)){
case "connectMovie":
timeoutTimer.stop();
sendMessage("You have successfully connected to the Newgrounds API Gateway");
sendMessage((("Movie identified as \"" + _arg1.movie_name) + "\""));
callListener(events.MOVIE_CONNECTED, _arg1.success, {movie_name:_arg1.movie_name});
_local5 = false;
if (_arg1.ad_status === -1){
_local2 = "This movie was not approved to run Flash Ads.";
sendWarning(_local2);
sendWarning((("visit " + AD_TERMS_URL) + " to view our approval guidelines"));
if (!_arg1.ad_url){
callListener(events.ADS_APPROVED, false, new NewgroundsAPIError("FLASH_ADS_NOT_APPROVED", _local2));
} else {
_local5 = true;
};
} else {
if (_arg1.ad_status === 0){
_local2 = "Flash Ads are currently awaiting approval.";
sendNotice(_local2);
if (!_arg1.ad_url){
callListener(events.ADS_APPROVED, false, new NewgroundsAPIError("FLASH_ADS_NOT_APPROVED", _local2));
} else {
_local5 = true;
};
};
};
if (_arg1.ad_url){
ad_url = unescape(_arg1.ad_url);
if (!_local5){
sendMessage("This movie has been approved to run Flash Ads!");
};
callListener(events.ADS_APPROVED, true);
};
if (_arg1.deny_host){
_local2 = (getHost() + " does not have permission to run this movie!");
sendWarning(_local2);
sendWarning(("\tUpdate your API configuration to unblock " + getHost()));
callListener(events.HOST_BLOCKED, true, {movie_url:unescape(_arg1.movie_url), redirect_url:getOfficialVersionURL()});
};
if (_arg1.movie_version){
sendWarning("According to your API Configuration, this version is out of date.");
if (version){
sendWarning(("\tThe this movie is version " + version));
};
sendWarning(("\tThe most current version is " + _arg1.movie_version));
callListener(events.NEW_VERSION_AVAILABLE, true, {movie_version:_arg1.movie_version, movie_url:unescape(_arg1.movie_url), redirect_url:getOfficialVersionURL()});
};
if (_arg1.request_portal_url){
sendCommand("setPortalID", {portal_url:host});
};
break;
case "logCustomEvent":
if (_arg1.success){
sendMessage((("Event '" + _arg1.event) + "' was logged."));
};
callListener(events.EVENT_LOGGED, _arg1.success, {event:_arg1.event});
break;
case "postScore":
if (_arg1.success){
_local4 = "User";
if (user_email){
_local4 = user_email;
} else {
if (user_name){
_local4 = user_name;
};
};
sendMessage((((((_local4 + " posted ") + _arg1.value) + " to '") + _arg1.score) + "'"));
_local3 = {score:_arg1.score, value:_arg1.value, username:_local4};
};
callListener(events.SCORE_POSTED, _arg1.success, _local3);
break;
case "getScores":
if (_arg1.user_id){
_local6 = _arg1.period;
} else {
_local6 = (_arg1.period + "-u");
};
if (_arg1.total_pages){
score_page_counts[_local6] = _arg1.total_pages;
};
_local3.user_id = _arg1.user_id;
_local3.current_page = _arg1.current_page;
_local3.total_pages = score_page_counts[_local6];
_local3.scores = _arg1.scores;
_local3.period = getPeriodName(_arg1.period);
callListener(events.SCORES_LOADED, _arg1.success, _local3);
break;
case "unlockMedal":
if (medals){
_local7 = 0;
while (_local7 < medals.length) {
if (medals[_local7].medal_name === _arg1.medal_name){
medals[_local7].medal_unlocked = true;
break;
};
_local7++;
};
};
_local3 = {medal_name:_arg1.medal_name, medal_value:_arg1.medal_value, medal_difficulty:_arg1.medal_difficulty};
callListener(events.MEDAL_UNLOCKED, _arg1.success, _local3);
break;
case "getMedals":
medals = _arg1.medals;
_local3 = {medals:_arg1.medals};
callListener(events.MEDALS_LOADED, _arg1.success, _local3);
break;
case "getFiles":
break;
case "getSystemFiles":
break;
case "saveFile":
save_file = null;
_local3 = {file_id:_arg1.file_id, filename:_arg1.filename, file_url:_arg1.file_url, thumbnail:_arg1.thumbnail, icon:_arg1.icon};
callListener(events.FILE_SAVED, _arg1.success, _local3);
break;
case "checkFilePrivs":
if (save_file){
save_file.checkPrivs(_arg1);
} else {
_local3 = {filename:_arg1.filename, folder:_arg1.folder, can_read:_arg1.can_read, can_write:_arg1.can_write};
callListener(events.FILE_PRIVS_LOADED, _arg1.success, _local3);
};
break;
};
}
public static function getPeriodAlias(_arg1:String):String{
var _local2:String;
for (_local2 in period_aliases) {
if (_local2 == _arg1){
return (period_aliases[_local2].alias);
};
};
return (null);
}
public static function loadMedals():void{
var _local1:Object;
if (medals){
callListener(events.MEDALS_LOADED, true, {medals:medals});
return;
};
_local1 = new Object();
if (hasUserSession()){
_local1.publisher_id = publisher_id;
_local1.user_id = user_id;
};
sendCommand("getMedals", _local1);
}
public static function saveLocal(_arg1:String, _arg2, _arg3:uint=0):void{
var _local4:SharedObject;
if (!sharedObjects[_arg1]){
sharedObjects[_arg1] = SharedObject.getLocal(((("ng_ap_secure_" + movie_id) + "_") + _arg1));
};
_local4 = sharedObjects[_arg1];
_local4.data[_arg1] = encodeData(_arg2);
_local4.flush();
}
public static function getPeriodName(_arg1:String):String{
var _local2:String;
for (_local2 in period_aliases) {
if (_local2 == _arg1){
return (period_aliases[_local2].name);
};
};
return (null);
}
private static function sendWarning(_arg1:String, _arg2:String=null):void{
if (_arg2){
_arg1 = (_arg1 + ((("\n[NewgroundsAPI WARNING] :: \tSee " + COMMANDS_WIKI_URL) + _arg2.toLowerCase()) + " for additional information."));
};
trace(("[NewgroundsAPI WARNING] :: " + _arg1));
}
public static function isNewgrounds():Boolean{
return ((((publisher_id == 1)) || ((getHost().toLowerCase().indexOf("ungrounded.net") > -1))));
}
private static function getCommandID(_arg1:String):String{
return (_arg1);
}
public static function getAlltimeScores(_arg1:String, _arg2:Object):void{
getScores(_arg1, "a", _arg2, "getAlltimeScores");
}
}
}//package com.newgrounds
Section 13
//NewgroundsAPIError (com.newgrounds.NewgroundsAPIError)
package com.newgrounds {
import flash.utils.*;
public class NewgroundsAPIError {
public var message:String;
public var name:String;
public var code:Number;// = 0
public var alias:String;
private static const always_caps:Array = new Array("API", "URL", "ID");
public static const error_names:Object = init_names();
public static const aliases:Array = 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_FOLDER", "FILE_NOT_FOUND", "SITE_ID_REQUIRED", "UPLOAD_IN_PROGRESS", "USER_CANCELLED", "CONFIRM_REQUEST", "CONNECTION_FAILED");
public static const error_codes:Object = init_codes();
public function NewgroundsAPIError(_arg1, _arg2:String){
code = 0;
super();
if ((_arg1 is String)){
_arg1 = error_codes[_arg1];
} else {
if (!(_arg1 is uint)){
_arg1 = 0;
};
};
trace(_arg1);
code = _arg1;
message = _arg2;
name = error_names[_arg1];
trace(name);
alias = aliases[_arg1];
}
public function isError():Boolean{
return (true);
}
private static function init_names():Array{
var _local1:Array;
var _local2:uint;
var _local3:Array;
var _local4:uint;
var _local5:String;
_local1 = new Array();
_local2 = 0;
while (_local2 < aliases.length) {
_local3 = aliases[_local2].toLowerCase().split("_");
_local4 = 0;
while (_local4 < _local3.length) {
_local3[_local4] = (_local3[_local4].substr(0, 1).toUpperCase() + _local3[_local4].substr(1, _local3[_local4].length));
for each (_local5 in always_caps) {
if (_local3[_local4].toUpperCase() == _local5){
_local3[_local4] = _local3[_local4].toUpperCase();
};
};
_local4++;
};
_local1[_local2] = _local3.join(" ");
_local2++;
};
return (_local1);
}
public static function init_codes():Dictionary{
var _local1:Dictionary;
var _local2:uint;
_local1 = new Dictionary();
_local2 = 0;
while (_local2 < aliases.length) {
_local1[aliases[_local2]] = _local2;
_local2++;
};
return (_local1);
}
}
}//package com.newgrounds
Section 14
//RC4 (com.newgrounds.RC4)
package com.newgrounds {
public class RC4 {
private static var mykey:Array = new Array(0xFF);
private static var sbox:Array = new Array(0xFF);
private static function charsToHex(_arg1:Array):String{
var _local2:String;
var _local3:Array;
var _local4:uint;
_local2 = new String("");
_local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
_local4 = 0;
while (_local4 < _arg1.length) {
_local2 = (_local2 + (_local3[(_arg1[_local4] >> 4)] + _local3[(_arg1[_local4] & 15)]));
_local4++;
};
return (_local2);
}
public static function encrypt(_arg1:String, _arg2:String):String{
var _local3:Array;
var _local4:Array;
var _local5:Array;
_local3 = strToChars(_arg1);
_local4 = strToChars(_arg2);
_local5 = calculate(_local3, _local4);
return (charsToHex(_local5));
}
private static function hexToChars(_arg1:String):Array{
var _local2:Array;
var _local3:uint;
_local2 = new Array();
_local3 = ((_arg1.substr(0, 2))=="0x") ? 2 : 0;
while (_local3 < _arg1.length) {
_local2.push(parseInt(_arg1.substr(_local3, 2), 16));
_local3 = (_local3 + 2);
};
return (_local2);
}
public static function encryptbin(_arg1:String, _arg2:String):Array{
var _local3:Array;
var _local4:Array;
var _local5:Array;
_local3 = strToChars(_arg1);
_local4 = strToChars(_arg2);
_local5 = calculate(_local3, _local4);
return (_local5);
}
public static function decrypt(_arg1:String, _arg2:String):String{
var _local3:Array;
var _local4:Array;
var _local5:Array;
_local3 = hexToChars(_arg1);
_local4 = strToChars(_arg2);
_local5 = calculate(_local3, _local4);
return (charsToStr(_local5));
}
private static function strToChars(_arg1:String):Array{
var _local2:Array;
var _local3:uint;
_local2 = new Array();
_local3 = 0;
while (_local3 < _arg1.length) {
_local2.push(_arg1.charCodeAt(_local3));
_local3++;
};
return (_local2);
}
private static function calculate(_arg1:Array, _arg2:Array):Array{
var _local3:uint;
var _local4:uint;
var _local5:Array;
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
initialize(_arg2);
_local3 = 0;
_local4 = 0;
_local5 = new Array();
_local9 = 0;
while (_local9 < _arg1.length) {
_local3 = ((_local3 + 1) % 0x0100);
_local4 = ((_local4 + sbox[_local3]) % 0x0100);
_local7 = sbox[_local3];
sbox[_local3] = sbox[_local4];
sbox[_local4] = _local7;
_local10 = ((sbox[_local3] + sbox[_local4]) % 0x0100);
_local6 = sbox[_local10];
_local8 = (_arg1[_local9] ^ _local6);
_local5.push(_local8);
_local9++;
};
return (_local5);
}
private static function initialize(_arg1:Array):void{
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
_local2 = 0;
_local4 = _arg1.length;
_local5 = 0;
while (_local5 <= 0xFF) {
mykey[_local5] = _arg1[(_local5 % _local4)];
sbox[_local5] = _local5;
_local5++;
};
_local5 = 0;
while (_local5 <= 0xFF) {
_local2 = (((_local2 + sbox[_local5]) + mykey[_local5]) % 0x0100);
_local3 = sbox[_local5];
sbox[_local5] = sbox[_local2];
sbox[_local2] = _local3;
_local5++;
};
}
private static function charsToStr(_arg1:Array):String{
var _local2:String;
var _local3:uint;
_local2 = new String("");
_local3 = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode(_arg1[_local3]));
_local3++;
};
return (_local2);
}
}
}//package com.newgrounds
Section 15
//BigBadBoss (enemies.BigBadBoss)
package enemies {
import flash.display.*;
import flash.events.*;
import tools.*;
public class BigBadBoss extends Enemy {
public var mc_head:MovieClip;
private var myEyes:MovieClip;
private var initY:Number;
public var eyes:MovieClip;
public var mc_hit:MovieClip;
private var yEyes:Number;
public var chair:MovieClip;
public var gag_body:MovieClip;
public function BigBadBoss(){
bleed = bleed_func;
die = die_func;
hp = 1;
hp_max = hp;
head = MovieClip(mc_head);
hit = MovieClip(mc_hit);
hit.visible = false;
myEyes = MovieClip(eyes);
addEventListener("addedToStage", initEvent, false, 0, true);
}
public function runtime():void{
myEyes.y = ((initY + ((player.y - yEyes) / 50)) - 6);
if (player.x < x){
scaleX = 1;
} else {
scaleX = -1;
};
}
private function die_func():void{
var _local1:SoundPlay;
var _local2:int;
var _local3:Number;
var _local4:Number;
MovieClip(root).medal_popup.unlockMedal("Polygonal Victory");
MovieClip(parent).goAway = true;
MovieClip(gag_body).visible = false;
myEyes.visible = false;
MovieClip(parent).bloodEnemy("Blood_Slicer", x, y);
MovieClip(parent).bloodEnemy("Blood_ChickenDog", x, y);
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "Die_Explode", (x - player.x), (x - player.x));
_local2 = (9 + (Math.random() * 4));
while (_local2) {
_local2--;
MovieClip(parent).meatSmall(x, y);
};
_local2 = (5 + (Math.random() * 4));
while (_local2) {
_local2--;
MovieClip(parent).meatMedium(x, y);
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_1", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_2", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_3", (-2 - (Math.random() * 2)));
};
}
private function initEvent(_arg1:Event):void{
removeEventListener("addedToStage", initEvent);
initY = myEyes.y;
yEyes = (player.y - 200);
}
private function bleed_func(_arg1:Number, _arg2:Number, _arg3:Number):void{
}
}
}//package enemies
Section 16
//Boss (enemies.Boss)
package enemies {
import flash.display.*;
import flash.events.*;
import tools.*;
public class Boss extends Enemy {
private var r2:String;// = "right2"
private var r3:String;// = "right3"
private var eye2:Object;
private var repetitions:int;// = 0
private var eye:Object;// = null
public var mc_sfx:MovieClip;
private var mashInactive:Object;
private var time:int;// = -80
public var mc_head:MovieClip;
public var hit2:Object;
private var l1:String;// = "left1"
private var l3:String;// = "left3"
private var l2:String;// = "left2"
private var mashActive:Object;
private var side:int;// = 0
private var m1:Object;
private var m2:Object;
private var m3:Object;
public var mc_hit:MovieClip;
private var phase:int;// = 1
private var r1:String;// = "right1"
public function Boss(){
eye = null;
phase = 1;
repetitions = 0;
time = -80;
side = 0;
l1 = "left1";
l2 = "left2";
l3 = "left3";
r1 = "right1";
r2 = "right2";
r3 = "right3";
super();
addFrameScript(0, frame1, 143, frame144, 161, frame162, 0x0100, frame257);
addEventListener("addedToStage", initEvent, false, 0, true);
bleed = bleed_func;
die = die_func;
hp = 100;
hp_max = hp;
head = MovieClip(mc_head);
hit = MovieClip(mc_hit);
hit.visible = false;
hit.stop();
}
public function start4(_arg1:Object):void{
eye = _arg1;
phase = 4;
if (side == 2){
m1.go(l1);
m2.go(l2);
m1.pushDir = "right";
m2.pushDir = "right";
mashActive = m3;
mashInactive = m1;
m1.stopMashing = true;
m2.stopMashing = true;
} else {
m2.go(r2);
m3.go(r3);
m2.pushDir = "left";
m3.pushDir = "left";
mashActive = m1;
mashInactive = m3;
m2.stopMashing = true;
m3.stopMashing = true;
};
time = 0;
}
function frame162(){
stop();
}
public function dieReal():void{
var _local1:SoundPlay;
var _local2:SoundPlay;
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "PowerDown");
_local2 = new SoundPlay(MovieClip(root).saveData["son"], "Die_Crush");
play();
}
private function eyeLook(_arg1:Object):void{
x = _arg1.x;
gotoAndPlay("lookPhase1");
hit.gotoAndPlay("lookPhase1");
if (phase == 1){
phase = 2;
} else {
phase = 1;
};
}
function frame1(){
stop();
}
private function bleed_func(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:SoundPlay;
var _local5:SoundPlay;
var _local6:Blood_Boss;
var _local7:SoundPlay;
var _local8:Blood_Boss;
if (phase <= 2){
_local4 = new SoundPlay(MovieClip(root).saveData["son"], "Blood", (x - player.x), (x - player.x));
_local5 = new SoundPlay(MovieClip(root).saveData["son"], "SlicerAttack", (x - player.x), (x - player.x));
_local6 = new Blood_Boss();
addChildAt(_local6, getChildIndex(MovieClip(mc_sfx)));
_local6.init(_arg1, _arg2, _arg3, true);
} else {
if (eye != null){
_local7 = new SoundPlay(MovieClip(root).saveData["son"], "SlicerAttack", (x - player.x), (x - player.x));
_local8 = new Blood_Boss();
addChildAt(_local8, getChildIndex(MovieClip(mc_sfx)));
_local8.init(_arg1, _arg2, _arg3, true);
eye.gotoAndPlay(3);
hp = 1000;
};
};
}
public function setHitEye(_arg1:Object):void{
eye2 = _arg1;
}
private function die_func():void{
}
private function openDoor():void{
MovieClip(parent).canExit = true;
MovieClip(parent).bg.door.play();
m2.play();
mashInactive.play();
}
private function initEvent(_arg1:Event):void{
removeEventListener("addedToStage", initEvent);
m1 = MovieClip(parent).m1;
m2 = MovieClip(parent).m2;
m3 = MovieClip(parent).m3;
}
function frame257(){
stop();
openDoor();
}
public function runtime():void{
if ((((phase == 1)) && (!(dead)))){
if (time == 0){
m1.go(l1);
};
if (time == 15){
m2.go(l2);
};
if (time == 30){
m3.go(l3);
};
if (time == 60){
m1.mash();
};
if (time == 75){
m2.mash();
};
if (time == 90){
m3.mash();
};
if (time == 140){
m3.go(r3);
};
if (time == 155){
m2.go(r2);
};
if (time == 170){
m1.go(r1);
};
if (time == 200){
m3.mash();
};
if (time == 215){
m2.mash();
};
if (time == 230){
m1.mash();
};
if (time == 280){
m1.go(l1);
};
if (time == 295){
m2.go(l2);
};
if (time == 310){
m3.go(l3);
};
if (time == 340){
m1.mash();
};
if (time == 355){
m2.mash();
};
if (time == 370){
m3.mash();
};
if (time == 420){
eyeLook(MovieClip(parent).er);
};
} else {
if ((((phase == 2)) && (!(dead)))){
if (time == 0){
m3.go(r3);
};
if (time == 15){
m2.go(r2);
};
if (time == 30){
m1.go(r1);
};
if (time == 60){
m3.mash();
};
if (time == 75){
m2.mash();
};
if (time == 90){
m1.mash();
};
if (time == 140){
m1.go(l1);
};
if (time == 155){
m2.go(l2);
};
if (time == 170){
m3.go(l3);
};
if (time == 200){
m1.mash();
};
if (time == 215){
m2.mash();
};
if (time == 230){
m3.mash();
};
if (time == 280){
m3.go(r3);
};
if (time == 295){
m2.go(r2);
};
if (time == 310){
m1.go(r1);
};
if (time == 340){
m3.mash();
};
if (time == 355){
m2.mash();
};
if (time == 370){
m1.mash();
};
if (time == 420){
eyeLook(MovieClip(parent).el);
};
} else {
if (phase == 4){
if (time == 60){
mashInactive.mash();
m2.mash();
};
if (time == 90){
mashActive.goTarget(player);
};
};
};
};
time++;
if ((((hp <= 30)) && ((phase < 3)))){
side = phase;
phase = 3;
gotoAndPlay("fallDown");
hit.gotoAndPlay("fallDown");
};
}
function frame144(){
time = -1;
gotoAndStop("hidden");
}
}
}//package enemies
Section 17
//BulletGunner (enemies.BulletGunner)
package enemies {
import flash.display.*;
import tools.*;
public class BulletGunner extends MovieClip {
private var dmg:Number;// = 1
private var ys:Number;
private var destroyed:Boolean;// = false
private var timeOut:Number;// = 0
private var speed:Number;// = 100
private var xs:Number;
private var ground:MovieClip;
private var player:Object;
private var game:Object;
public function BulletGunner(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object, _arg6:MovieClip){
dmg = 1;
destroyed = false;
speed = 100;
timeOut = 0;
super();
game = _arg1;
game.doRuntime(this, true);
x = _arg2;
y = _arg3;
player = _arg5;
rotation = ((_arg4 * -1) - 90);
ys = (speed * Math.cos(((Math.PI / 180) * _arg4)));
xs = (speed * Math.sin(((Math.PI / 180) * _arg4)));
ground = _arg6;
if (ground.hitTestPoint(x, y, true)){
destroy();
};
}
private function destroy(_arg1:Object=null):void{
var _local2:SoundPlay;
destroyed = true;
xs = 0;
ys = 0;
if (_arg1){
_arg1.takeDmg("Regular");
} else {
_local2 = new SoundPlay(MovieClip(root).saveData["son"], "Wall", (x - player.x), Calculator.getDist(x, y, player.x, player.y));
game.particle(x, y, ((((rotation * -1) + 90) + (Math.random() * 30)) - (Math.random() * 30)), "GunSpark", ((Math.random() * 3) + 1));
};
cleanUp();
}
public function runtime():void{
var _local1:int;
timeOut++;
if (timeOut == 90){
destroy();
} else {
if (!destroyed){
_local1 = 0;
while (_local1 < 10) {
x = (x + (xs / 10));
y = (y + (ys / 10));
if (ground.hitTestPoint(x, y, true)){
while (ground.hitTestPoint(x, y, true)) {
x = (x - (xs / 50));
y = (y - (ys / 50));
};
destroy();
break;
} else {
if (player.hit.hitTestPoint(x, y, true)){
destroy(player);
break;
};
};
_local1++;
};
};
};
}
private function cleanUp():void{
parent.removeChild(this);
game.doRuntime(this, false);
player = null;
game = null;
ground = null;
}
}
}//package enemies
Section 18
//CanJump (enemies.CanJump)
package enemies {
import flash.display.*;
public class CanJump extends MovieClip {
public var mc_hit:MovieClip;
public function CanJump(){
MovieClip(parent).doRuntime(this, true);
}
public function runtime(_arg1:Object):void{
if (((_arg1.train) && (MovieClip(mc_hit).hitTestPoint(_arg1.x, _arg1.y)))){
};
}
}
}//package enemies
Section 19
//CanNOTJump (enemies.CanNOTJump)
package enemies {
import flash.display.*;
public class CanNOTJump extends MovieClip {
public var mc_hit:MovieClip;
public function CanNOTJump(){
MovieClip(parent).doRuntime(this, true);
}
public function runtime(_arg1:Object):void{
if (((_arg1.train) && (MovieClip(mc_hit).hitTestPoint(_arg1.x, _arg1.y)))){
};
}
}
}//package enemies
Section 20
//ChickenDog (enemies.ChickenDog)
package enemies {
import flash.display.*;
import tools.*;
public class ChickenDog extends Enemy {
public var mc_sfx:MovieClip;
private var attacking:Boolean;// = false
public var mc_sprites:MovieClip;
public var mc_head:MovieClip;
private var sound:SoundPlay;
private var initX:Number;// = 0
public var mc_hit:MovieClip;
private var soundTimer:int;
private var scale:Number;
private var target:int;
private var follow:Boolean;// = false
private var activated:Boolean;// = false
private var attackRange:Number;// = 80
private var attackTimer:Number;// = 0
private var moveTimer:int;// = 1
public function ChickenDog(){
activated = false;
attacking = false;
attackRange = 80;
attackTimer = 0;
initX = 0;
follow = false;
moveTimer = 1;
scale = (0.95 + (Math.random() * 0.1));
soundTimer = (30 + (Math.random() * 30));
target = ((Math.random() * 300) - (Math.random() * 300));
super();
accel = (3 + (Math.random() * 2.5));
bleed = bleed_func;
die = die_func;
hp = 12;
hp_max = hp;
head = MovieClip(mc_head);
hit = MovieClip(mc_hit);
hit.visible = false;
maxSpeed = (15 + (Math.random() * 3.5));
maxSpeed = (maxSpeed / 2);
accel = (accel / 2);
sprites = MovieClip(mc_sprites);
sprites.stop();
sprites.scaleX = scale;
sprites.scaleY = scale;
findBounds(hit);
}
public function playSound():void{
var _local1:SoundPlay;
if (((((((((!((game == null))) && (game.isPlay))) && ((MovieClip(parent).levelName == player.currentLevel)))) && ((hp > 0)))) && ((MovieClip(parent).levelName == player.currentLevel)))){
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "ChickenDog_Attack", (x - player.x), (x - player.x));
};
}
private function bleed_func(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:SoundPlay;
var _local5:Blood_Small;
_local4 = new SoundPlay(MovieClip(root).saveData["son"], "Blood", (player.x - x), (player.x - x));
_local5 = new Blood_Small();
addChildAt(_local5, getChildIndex(MovieClip(mc_sfx)));
_local5.init(_arg1, _arg2, _arg3, true);
}
public function testDmg(_arg1:Object):void{
if (((((((((!((game == null))) && (game.isPlay))) && ((MovieClip(parent).levelName == player.currentLevel)))) && ((hp > 0)))) && ((MovieClip(parent).levelName == player.currentLevel)))){
if (_arg1.hitTestObject(player.hit)){
player.takeDmg("Regular");
};
};
}
private function die_func():void{
var _local1:SoundPlay;
var _local2:int;
var _local3:Number;
var _local4:Number;
MovieClip(root).totalKills++;
MovieClip(parent).bloodEnemy("Blood_ChickenDog", x, y);
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "Die_Explode", (x - player.x), (x - player.x));
_local2 = (8 + (Math.random() * 4));
while (_local2) {
_local2--;
MovieClip(parent).meatSmall(x, y);
};
_local2 = (2 + (Math.random() * 2));
while (_local2) {
_local2--;
MovieClip(parent).meatMedium(x, y);
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_1", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_2", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_3", (-2 - (Math.random() * 2)));
};
parent.removeChild(this);
}
public function runtime():void{
var _local1:SoundPlay;
if (!dead){
anim = "stand";
if (((active) && ((MovieClip(parent).levelName == player.currentLevel)))){
if (!activated){
activated = true;
accel = (accel * 2);
maxSpeed = (maxSpeed * 2);
};
if (player.x > (bounds.x + bounds.width)){
if (activated){
activated = false;
accel = (accel / 2);
maxSpeed = (maxSpeed / 2);
};
anim = "stand";
attacking = false;
active = false;
follow = false;
target = ((-(Math.random()) * 100) - 150);
};
if (player.x < bounds.x){
if (activated){
activated = false;
accel = (accel / 2);
maxSpeed = (maxSpeed / 2);
};
anim = "stand";
attacking = false;
active = false;
follow = false;
target = ((Math.random() * 100) + 150);
};
attackTimer--;
if (attackTimer < 0){
follow = true;
};
} else {
if (hp < hp_max){
};
moveTimer--;
if (moveTimer == 0){
target = ((Math.random() * 300) - (Math.random() * 300));
if (((((x + target) > (bounds.x + bounds.width))) || (((x + target) < bounds.x)))){
target = (target * -1);
};
};
if ((((((Calculator.getDist(x, y, player.x, player.y) < 250)) && ((player.x > bounds.x)))) && ((player.x < (bounds.x + bounds.width))))){
active = true;
};
};
if (((!(follow)) || (player.dead))){
if (target < -15){
xs = (xs - accel);
if (xs < -(maxSpeed)){
xs = -(maxSpeed);
};
scaleX = 1;
} else {
if (target > 15){
xs = (xs + accel);
if (xs > maxSpeed){
xs = maxSpeed;
};
scaleX = -1;
} else {
if (active){
moveTimer = 0;
};
if (moveTimer < 0){
moveTimer = (30 + (Math.random() * 30));
};
anim = "stand";
xs = (xs / 1.75);
if (Math.abs(xs) < 0.5){
xs = 0;
};
};
};
} else {
if (player.x > (bounds.x + bounds.width)){
if (activated){
activated = false;
accel = (accel / 2);
maxSpeed = (maxSpeed / 2);
};
anim = "stand";
attacking = false;
active = false;
follow = false;
target = ((-(Math.random()) * 100) - 150);
};
if (player.x < bounds.x){
if (activated){
activated = false;
accel = (accel / 2);
maxSpeed = (maxSpeed / 2);
};
anim = "stand";
attacking = false;
active = false;
follow = false;
target = ((Math.random() * 100) + 150);
};
if (((((((!(attacking)) && (((player.x + attackRange) < x)))) && ((player.x > bounds.x)))) && ((player.x < (bounds.x + bounds.width))))){
xs = (xs - accel);
if (xs < -(maxSpeed)){
xs = -(maxSpeed);
};
scaleX = 1;
} else {
if (((((((!(attacking)) && (((player.x - attackRange) > x)))) && ((player.x > bounds.x)))) && ((player.x < (bounds.x + bounds.width))))){
xs = (xs + accel);
if (xs > maxSpeed){
xs = maxSpeed;
};
scaleX = -1;
} else {
if ((((player.x > bounds.x)) && ((player.x < (bounds.x + bounds.width))))){
attacking = true;
};
};
};
};
if (((attacking) && (!(player.dead)))){
xs = (xs / 1.75);
if (Math.abs(xs) < 0.5){
xs = 0;
};
if (player.x < x){
scaleX = 1;
};
if (player.x > x){
scaleX = -1;
};
if (((((!((sprites.currentLabel == "attack"))) && (active))) && ((Calculator.getDist(x, y, player.x, player.y) > (attackRange * 1.1))))){
attacking = false;
follow = false;
attackTimer = 20;
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "ChickenDog_Away", (x - player.x), (x - player.x));
if ((((((player.x > x)) && ((player.x > bounds.x)))) && ((player.x < (bounds.x + bounds.width))))){
target = (-100 - (Math.random() * 100));
} else {
if ((((player.x > bounds.x)) && ((player.x < (bounds.x + bounds.width))))){
target = (100 + (Math.random() * 100));
};
};
if (((((x + target) > (bounds.x + bounds.width))) || (((x + target) < bounds.x)))){
target = (target * -1);
};
};
};
if (player.dead){
attacking = false;
follow = false;
attackTimer = 99999;
};
target = (target - xs);
x = (x + test_walls(xs));
test_floor();
if (((((attacking) && (!((anim == "attack"))))) && ((hp > 0)))){
anim = "attack";
};
if (anim != sprites.currentLabel){
sprites.gotoAndStop(anim);
};
};
}
}
}//package enemies
Section 21
//Enemy (enemies.Enemy)
package enemies {
import flash.display.*;
import flash.geom.*;
public class Enemy extends MovieClip {
protected var hp:Number;
protected var active:Boolean;// = false
protected var ys:Number;// = 0
protected var anim:String;
protected var jump:Boolean;// = false
protected var maxSpeed:Number;
protected var sprites:MovieClip;
protected var speed:Number;
protected var dead:Boolean;// = false
protected var xs:Number;// = 0
protected var ground:MovieClip;
protected var die:Function;
public var hit:MovieClip;
protected var bleed:Function;
protected var hp_max:Number;
protected var bounds:Object;
protected var canChangeAnim:Boolean;// = true
protected var head:MovieClip;
protected var player:Object;
protected var accel:Number;
protected var game:Object;
public function Enemy(){
canChangeAnim = true;
active = false;
dead = false;
hp_max = hp;
jump = false;
xs = 0;
ys = 0;
super();
MovieClip(parent).initEnemy(this);
}
protected function test_walls(_arg1:Number):Number{
var _local2:Number;
_local2 = _arg1;
while (((((ground.hitTestPoint(((x + 15) + _local2), (y - 15), true)) || (ground.hitTestPoint(((x + 15) + _local2), ((y - 100) + 15), true)))) || (ground.hitTestPoint(((x + 15) + _local2), (y - (100 / 2)), true)))) {
_local2--;
xs = 0;
};
while (((((ground.hitTestPoint(((x - 15) + _local2), (y - 15), true)) || (ground.hitTestPoint(((x - 15) + _local2), ((y - 100) + 15), true)))) || (ground.hitTestPoint(((x - 15) + _local2), (y - (100 / 2)), true)))) {
_local2++;
xs = 0;
};
if (((_local2) && (canChangeAnim))){
anim = "move";
};
return (_local2);
}
public function init(_arg1:Object, _arg2:Object, _arg3:MovieClip):void{
game = _arg1;
ground = _arg3;
player = _arg2;
game.doRuntime(this, true);
}
public function takeDmg(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
var _local5:Point;
_local5 = globalToLocal(new Point(_arg2, _arg3));
if (Math.abs((player.x - x)) < 1000){
active = true;
hp = (hp - _arg1);
if (head.hitTestPoint(_arg2, _arg3)){
hp = (hp - (_arg1 / 2));
};
};
bleed(_local5.x, _local5.y, _arg4);
if ((((hp <= 0)) && (!(dead)))){
game.doRuntime(this, false);
MovieClip(parent).removeEnemy(this);
dead = true;
die();
cleanUp();
};
}
protected function test_ceiling():void{
while (((((ground.hitTestPoint(x, (y - 100), true)) || (ground.hitTestPoint((x + 10), (y - 100), true)))) || (ground.hitTestPoint((x - 10), (y - 100), true)))) {
y++;
ys = 0;
};
}
protected function test_floor():void{
while (ground.hitTestPoint(x, y, true)) {
jump = false;
ys = 0;
y--;
};
if (!ground.hitTestPoint(x, (y + 10), true)){
jump = true;
} else {
while (!(ground.hitTestPoint(x, y, true))) {
jump = false;
ys = 0;
y++;
};
};
}
public function moveX(_arg1:Number):void{
if (_arg1){
xs = (xs + (accel * _arg1));
if (xs > maxSpeed){
xs = maxSpeed;
};
if (xs < -(maxSpeed)){
xs = -(maxSpeed);
};
} else {
xs = (xs / 1.75);
if (Math.abs(xs) < 0.1){
xs = 0;
};
};
}
protected function findBounds(_arg1):void{
var _local2:Object;
var _local3:int;
_local3 = 0;
while (_local3 < 10) {
_local2 = MovieClip(parent)[("mc_enemies" + _local3)];
if (_local2.hitTestObject(_arg1)){
bounds = _local2;
break;
};
_local3++;
};
}
private function cleanUp():void{
game = null;
ground = null;
player = null;
}
}
}//package enemies
Section 22
//FallKill (enemies.FallKill)
package enemies {
import flash.display.*;
public class FallKill extends MovieClip {
public var mc_hit:MovieClip;
public function FallKill(){
MovieClip(parent).doRuntime(this, true);
}
public function runtime(_arg1:Object):void{
if (MovieClip(mc_hit).hitTestPoint(_arg1.x, _arg1.y)){
_arg1.takeDmg("Fall", 5);
};
}
}
}//package enemies
Section 23
//Gunner (enemies.Gunner)
package enemies {
import flash.display.*;
import tools.*;
public class Gunner extends Enemy {
public var mc_sprites2:MovieClip;
public var mc_sfx:MovieClip;
private var precision:Number;// = 10
private var attacking:Boolean;// = false
public var mc_sprites:MovieClip;
public var mc_head:MovieClip;
public var mc_hit:MovieClip;
private var reload:int;// = 90
private var sprites2:MovieClip;
private var attackRange:Number;// = 400
private var attackTimer:Number;// = 70
public function Gunner(){
attacking = false;
attackRange = 400;
attackTimer = 70;
precision = 10;
reload = 90;
super();
accel = (1 + (Math.random() * 1));
bleed = bleed_func;
die = die_func;
hp = 30;
hp_max = hp;
head = MovieClip(mc_head);
hit = MovieClip(mc_hit);
maxSpeed = (13 + (Math.random() * 1.5));
sprites = MovieClip(mc_sprites);
sprites2 = MovieClip(mc_sprites2);
sprites.stop();
sprites2.stop();
findBounds(hit);
hit.visible = false;
}
private function bleed_func(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:SoundPlay;
var _local5:Blood_Small;
_local4 = new SoundPlay(MovieClip(root).saveData["son"], "Blood", (x - player.x), (x - player.x));
_local5 = new Blood_Small();
addChildAt(_local5, getChildIndex(MovieClip(mc_sfx)));
_local5.init(_arg1, _arg2, _arg3, true);
}
public function finishAttack():void{
attacking = false;
}
public function son2():void{
var _local1:SoundPlay;
var _local2:int;
if (((((((!((game == null))) && (game.isPlay))) && ((MovieClip(parent).levelName == player.currentLevel)))) && ((hp > 0)))){
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "Gunner", (x - player.x), (x - player.x));
MovieClip(parent).newParticle((x + (26 * -(scaleX))), (y - 75), ((80 * scaleX) + ((Math.random() * (precision / 2)) - (Math.random() * (precision / 2)))), "DouilleGunner", 1);
_local2 = 0;
while (_local2 < 3) {
game.newBulletGunner((x + (137 * -(scaleX))), (y - 62), ((90 * -(scaleX)) + ((Math.random() * precision) - (Math.random() * precision))));
_local2++;
};
};
}
public function testDmg(_arg1:Object, _arg2:Boolean=false):void{
var _local3:SoundPlay;
if (((((((((!((game == null))) && (game.isPlay))) && ((MovieClip(parent).levelName == player.currentLevel)))) && ((hp > 0)))) && ((MovieClip(parent).levelName == player.currentLevel)))){
if (_arg2){
_local3 = new SoundPlay(MovieClip(root).saveData["son"], "Tenderizer", (x - player.x), (x - player.x));
};
if (_arg1.hitTestObject(player.hit)){
player.takeDmg("Crush");
};
};
}
private function die_func():void{
var _local1:SoundPlay;
var _local2:int;
var _local3:Number;
var _local4:Number;
MovieClip(root).totalKills++;
MovieClip(parent).bloodEnemy("Blood_Gunner", x, y);
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "Die_Explode", (x - player.x), (x - player.x));
_local2 = (6 + (Math.random() * 3));
while (_local2) {
_local2--;
MovieClip(parent).meatMedium(x, y);
};
MovieClip(parent).meatBig(x, y);
MovieClip(parent).meatBig(x, y);
MovieClip(parent).meatBig(x, y);
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_1", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_2", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_3", (-2 - (Math.random() * 2)));
};
parent.removeChild(this);
}
public function runtime():void{
var _local1:SoundPlay;
if (!dead){
anim = "stand";
if (attacking){
anim = "attack";
moveX(0);
};
if (((((!(player.dead)) && (active))) && ((MovieClip(parent).levelName == player.currentLevel)))){
if (player.x < x){
scaleX = 1;
} else {
scaleX = -1;
};
if (((!(attacking)) && ((Calculator.getDistX(x, player.x) < 136)))){
anim = "melee";
attacking = true;
attackTimer = reload;
};
attackTimer++;
if (((((!(player.dead)) && ((attackTimer >= reload)))) && ((Calculator.getDistX(x, player.x) < attackRange)))){
if (Calculator.getDistX(x, player.x) < 136){
anim = "melee";
attacking = true;
attackTimer = reload;
} else {
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "Rooster", (x - player.x), (x - player.x));
attacking = true;
attackTimer = 0;
anim = "attack";
};
};
if (((!(player.dead)) && (!(attacking)))){
if ((player.x + attackRange) < x){
moveX(-1);
anim = "move";
} else {
if ((player.x - attackRange) > x){
moveX(1);
anim = "move";
} else {
moveX(0);
};
};
};
if ((((player.x < bounds.x)) || ((player.x > (bounds.x + bounds.width))))){
active = false;
anim = "stand";
attacking = false;
xs = 0;
};
} else {
if (hp < hp_max){
};
if (((((((!(player.dead)) && ((Calculator.getDist(x, y, player.x, player.y) < 300)))) && ((player.x > bounds.x)))) && ((player.x < (bounds.x + bounds.width))))){
active = true;
};
};
x = (x + test_walls(xs));
y = (y + ys);
test_floor();
if (((((attacking) && (!((anim == "attack"))))) && (!((anim == "melee"))))){
anim = "attack";
};
if (anim != sprites.currentLabel){
sprites.gotoAndStop(anim);
sprites2.gotoAndStop(anim);
};
};
}
}
}//package enemies
Section 24
//Kid1 (enemies.Kid1)
package enemies {
import flash.display.*;
import tools.*;
public class Kid1 extends Enemy {
public var mc_head:MovieClip;
public var diff:int;// = 1
private var initX:Number;// = 0
public var mc_hit:MovieClip;
private var scale:Number;
public var mc_sprites:MovieClip;
private var target:int;
public function Kid1(){
initX = 0;
scale = (0.95 + (Math.random() * 0.1));
target = ((Math.random() * 300) - (Math.random() * 300));
diff = 1;
super();
bleed = bleed_func;
die = die_func;
hp = 1;
hp_max = hp;
head = MovieClip(mc_head);
hit = MovieClip(mc_hit);
hit.visible = false;
maxSpeed = (5 + (Math.random() * 2.5));
sprites = MovieClip(mc_sprites);
sprites.scaleX = scale;
sprites.scaleY = scale;
sprites.gotoAndPlay(Math.ceil((Math.random() * sprites.totalFrames)));
findBounds(hit);
}
public function runtime():void{
if (!dead){
if (target < -15){
xs = -(maxSpeed);
scaleX = 1;
} else {
if (target > 15){
xs = maxSpeed;
scaleX = -1;
} else {
target = ((Math.random() * 300) + 150);
if ((Math.random() < 0.5)){
target = (target * -1);
//unresolved jump
};
if (((((x + target) > (bounds.x + bounds.width))) || (((x + target) < bounds.x)))){
target = (target * -1);
};
};
};
target = (target - xs);
x = (x + test_walls(xs));
test_floor();
};
}
private function die_func():void{
var _local1:SoundPlay;
var _local2:int;
var _local3:Number;
var _local4:Number;
MovieClip(parent).killKid();
MovieClip(parent).bloodEnemy("Blood_Slicer", x, y);
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "Die_Explode", (x - player.x), (x - player.x));
_local2 = (4 + (Math.random() * 2));
while (_local2) {
_local2--;
MovieClip(parent).meatSmall(x, y);
};
_local2 = (2 + (Math.random() * 2));
while (_local2) {
_local2--;
MovieClip(parent).meatMedium(x, y);
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_1", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_2", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_3", (-2 - (Math.random() * 2)));
};
parent.removeChild(this);
}
private function bleed_func(_arg1:Number, _arg2:Number, _arg3:Number):void{
}
}
}//package enemies
Section 25
//Kid2 (enemies.Kid2)
package enemies {
import flash.display.*;
import tools.*;
public class Kid2 extends Enemy {
public var mc_head:MovieClip;
public var diff:int;// = 1
private var initX:Number;// = 0
public var mc_hit:MovieClip;
private var scale:Number;
public var mc_sprites:MovieClip;
private var target:int;
public function Kid2(){
initX = 0;
scale = (0.95 + (Math.random() * 0.1));
target = ((Math.random() * 300) - (Math.random() * 300));
diff = 1;
super();
bleed = bleed_func;
die = die_func;
hp = 1;
hp_max = hp;
head = MovieClip(mc_head);
hit = MovieClip(mc_hit);
hit.visible = false;
maxSpeed = (5 + (Math.random() * 2.5));
sprites = MovieClip(mc_sprites);
sprites.scaleX = scale;
sprites.scaleY = scale;
sprites.gotoAndPlay(Math.ceil((Math.random() * sprites.totalFrames)));
findBounds(hit);
}
public function runtime():void{
if (!dead){
if (target < -15){
xs = -(maxSpeed);
scaleX = 1;
} else {
if (target > 15){
xs = maxSpeed;
scaleX = -1;
} else {
target = ((Math.random() * 300) + 150);
if ((Math.random() < 0.5)){
target = (target * -1);
//unresolved jump
};
if (((((x + target) > (bounds.x + bounds.width))) || (((x + target) < bounds.x)))){
target = (target * -1);
};
};
};
target = (target - xs);
x = (x + test_walls(xs));
test_floor();
};
}
private function die_func():void{
var _local1:SoundPlay;
var _local2:int;
var _local3:Number;
var _local4:Number;
MovieClip(parent).killKid();
MovieClip(parent).bloodEnemy("Blood_Slicer", x, y);
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "Die_Explode", (x - player.x), (x - player.x));
_local2 = (4 + (Math.random() * 2));
while (_local2) {
_local2--;
MovieClip(parent).meatSmall(x, y);
};
_local2 = (2 + (Math.random() * 2));
while (_local2) {
_local2--;
MovieClip(parent).meatMedium(x, y);
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_1", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_2", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_3", (-2 - (Math.random() * 2)));
};
parent.removeChild(this);
}
private function bleed_func(_arg1:Number, _arg2:Number, _arg3:Number):void{
}
}
}//package enemies
Section 26
//Kid3 (enemies.Kid3)
package enemies {
import flash.display.*;
import tools.*;
public class Kid3 extends Enemy {
public var mc_head:MovieClip;
public var diff:int;// = 1
private var initX:Number;// = 0
public var mc_hit:MovieClip;
private var scale:Number;
public var mc_sprites:MovieClip;
private var target:int;
public function Kid3(){
initX = 0;
scale = (0.95 + (Math.random() * 0.1));
target = ((Math.random() * 300) - (Math.random() * 300));
diff = 1;
super();
bleed = bleed_func;
die = die_func;
hp = 1;
hp_max = hp;
head = MovieClip(mc_head);
hit = MovieClip(mc_hit);
hit.visible = false;
maxSpeed = (5 + (Math.random() * 2.5));
sprites = MovieClip(mc_sprites);
sprites.scaleX = scale;
sprites.scaleY = scale;
sprites.gotoAndPlay(Math.ceil((Math.random() * sprites.totalFrames)));
findBounds(hit);
}
public function runtime():void{
if (!dead){
if (target < -15){
xs = -(maxSpeed);
scaleX = 1;
} else {
if (target > 15){
xs = maxSpeed;
scaleX = -1;
} else {
target = ((Math.random() * 300) + 150);
if ((Math.random() < 0.5)){
target = (target * -1);
//unresolved jump
};
if (((((x + target) > (bounds.x + bounds.width))) || (((x + target) < bounds.x)))){
target = (target * -1);
};
};
};
target = (target - xs);
x = (x + test_walls(xs));
test_floor();
};
}
private function die_func():void{
var _local1:SoundPlay;
var _local2:int;
var _local3:Number;
var _local4:Number;
MovieClip(parent).killKid();
MovieClip(parent).bloodEnemy("Blood_Slicer", x, y);
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "Die_Explode", (x - player.x), (x - player.x));
_local2 = (4 + (Math.random() * 2));
while (_local2) {
_local2--;
MovieClip(parent).meatSmall(x, y);
};
_local2 = (2 + (Math.random() * 2));
while (_local2) {
_local2--;
MovieClip(parent).meatMedium(x, y);
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_1", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_2", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_3", (-2 - (Math.random() * 2)));
};
parent.removeChild(this);
}
private function bleed_func(_arg1:Number, _arg2:Number, _arg3:Number):void{
}
}
}//package enemies
Section 27
//KidArcade1 (enemies.KidArcade1)
package enemies {
import flash.display.*;
import tools.*;
public class KidArcade1 extends Enemy {
public var mc_head:MovieClip;
private var time1:int;// = 0
private var time2:int;// = 0
public var mc_hit:MovieClip;
public var mc_sprites:MovieClip;
private var angle1:Number;// = 0
private var angle2:Number;// = 0
public function KidArcade1(){
angle1 = 0;
angle2 = 0;
time1 = 0;
time2 = 0;
super();
bleed = bleed_func;
die = die_func;
hp = 1;
hp_max = hp;
head = MovieClip(mc_head);
hit = MovieClip(mc_hit);
sprites = MovieClip(mc_sprites);
}
public function runtime():void{
time1--;
time2--;
if (time1 < 0){
time1 = (Math.random() * 30);
angle1 = ((Math.random() * 10) - (Math.random() * 10));
};
if (time2 < 0){
time2 = (Math.random() * 30);
angle2 = ((Math.random() * 10) - (Math.random() * 10));
};
sprites.head.rotation = (sprites.head.rotation + ((angle1 - sprites.head.rotation) / 2.5));
sprites.hand.rotation = (sprites.hand.rotation + ((angle2 - sprites.hand.rotation) / 2.5));
}
private function die_func():void{
var _local1:SoundPlay;
var _local2:int;
var _local3:Number;
var _local4:Number;
MovieClip(parent).killKid();
MovieClip(parent).a1.played = false;
MovieClip(parent).bloodEnemy("Blood_Slicer", x, y);
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "Die_Explode", (x - player.x), (x - player.x));
_local2 = (4 + (Math.random() * 2));
while (_local2) {
_local2--;
MovieClip(parent).meatSmall(x, y);
};
_local2 = (2 + (Math.random() * 2));
while (_local2) {
_local2--;
MovieClip(parent).meatMedium(x, y);
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_1", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_2", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_3", (-2 - (Math.random() * 2)));
};
parent.removeChild(this);
}
private function bleed_func(_arg1:Number, _arg2:Number, _arg3:Number):void{
}
}
}//package enemies
Section 28
//KidArcade2 (enemies.KidArcade2)
package enemies {
import flash.display.*;
import tools.*;
public class KidArcade2 extends Enemy {
public var mc_head:MovieClip;
private var time1:int;// = 0
private var time2:int;// = 0
public var mc_hit:MovieClip;
public var mc_sprites:MovieClip;
private var angle1:Number;// = 0
private var angle2:Number;// = 0
public function KidArcade2(){
angle1 = 0;
angle2 = 0;
time1 = 0;
time2 = 0;
super();
bleed = bleed_func;
die = die_func;
hp = 1;
hp_max = hp;
head = MovieClip(mc_head);
hit = MovieClip(mc_hit);
sprites = MovieClip(mc_sprites);
}
public function runtime():void{
time1--;
time2--;
if (time1 < 0){
time1 = (Math.random() * 30);
angle1 = ((Math.random() * 10) - (Math.random() * 10));
};
if (time2 < 0){
time2 = (Math.random() * 30);
angle2 = ((Math.random() * 10) - (Math.random() * 10));
};
sprites.head.rotation = (sprites.head.rotation + ((angle1 - sprites.head.rotation) / 2.5));
sprites.hand.rotation = (sprites.hand.rotation + ((angle2 - sprites.hand.rotation) / 2.5));
}
private function die_func():void{
var _local1:SoundPlay;
var _local2:int;
var _local3:Number;
var _local4:Number;
MovieClip(parent).killKid();
MovieClip(parent).a2.played = false;
MovieClip(parent).bloodEnemy("Blood_Slicer", x, y);
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "Die_Explode", (x - player.x), (x - player.x));
_local2 = (4 + (Math.random() * 2));
while (_local2) {
_local2--;
MovieClip(parent).meatSmall(x, y);
};
_local2 = (2 + (Math.random() * 2));
while (_local2) {
_local2--;
MovieClip(parent).meatMedium(x, y);
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_1", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_2", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_3", (-2 - (Math.random() * 2)));
};
parent.removeChild(this);
}
private function bleed_func(_arg1:Number, _arg2:Number, _arg3:Number):void{
}
}
}//package enemies
Section 29
//LavaKill (enemies.LavaKill)
package enemies {
import flash.display.*;
public class LavaKill extends MovieClip {
public var mc_hit:MovieClip;
public function LavaKill(){
MovieClip(parent).doRuntime(this, true);
}
public function runtime(_arg1:Object):void{
if (MovieClip(mc_hit).hitTestPoint(_arg1.x, _arg1.y)){
_arg1.y = (y - 10);
_arg1.takeDmg("Lava", 5);
};
}
}
}//package enemies
Section 30
//Masher (enemies.Masher)
package enemies {
import flash.display.*;
import flash.events.*;
import tools.*;
public class Masher extends MovieClip {
public var mashFrame:int;// = 1
private var playerSide:String;// = "none"
public var stopMashing:Boolean;// = false
public var pushDir:String;// = "none"
public var limitRight:Object;// = null
public var limitLeft:Object;// = null
private var positions:Array;
private var mySpeed:Number;// = 7.5
private var target:Object;
public var targetPlayer:Boolean;// = false
private var player:Object;
public function Masher(){
playerSide = "none";
positions = new Array();
targetPlayer = false;
mySpeed = 7.5;
limitLeft = null;
limitRight = null;
mashFrame = 1;
pushDir = "none";
stopMashing = false;
super();
addFrameScript(0, frame1, 16, frame17);
addEventListener("addedToStage", init, false, 0, true);
target = this;
MovieClip(parent).doRuntime(this, true);
}
private function init(_arg1:Event):void{
removeEventListener("addedToStage", init);
positions["right1"] = MovieClip(parent).r1;
positions["right2"] = MovieClip(parent).r2;
positions["right3"] = MovieClip(parent).r3;
positions["left1"] = MovieClip(parent).l1;
positions["left2"] = MovieClip(parent).l2;
positions["left3"] = MovieClip(parent).l3;
}
public function runtime(_arg1:Object):void{
var _local2:SoundPlay;
var _local3:SoundPlay;
x = (x + ((target.x - x) / mySpeed));
if (((!((limitLeft == null))) && ((target.x < (limitLeft.x + 160))))){
x = (x + (((limitLeft.x + 160) - x) / mySpeed));
} else {
if (((!((limitRight == null))) && ((target.x > (limitRight.x - 160))))){
x = (x + (((limitRight.x - 160) - x) / mySpeed));
} else {
if (((!((target == _arg1))) || ((((target == _arg1)) && (!(_arg1.dead)))))){
x = (x + ((target.x - x) / mySpeed));
};
};
};
if (currentFrame == 15){
_local2 = new SoundPlay(MovieClip(root).saveData["son"], "Tenderizer", (x - _arg1.x), (x - _arg1.x));
_local3 = new SoundPlay(MovieClip(root).saveData["son"], "Thud", (x - _arg1.x), (x - _arg1.x));
if (_arg1.x > x){
playerSide = "right";
} else {
playerSide = "left";
};
if (stopMashing){
if ((((pushDir == "right")) && ((_arg1.x < (x + 80))))){
_arg1.x = (x + 80);
};
if ((((pushDir == "left")) && ((_arg1.x > (x - 80))))){
_arg1.x = (x - 80);
};
if (pushDir != "none"){
playerSide = pushDir;
};
};
};
if ((((currentFrame >= 15)) && ((currentFrame <= 25)))){
if ((((((playerSide == "right")) && ((_arg1.x < (x + 80))))) && (!((pushDir == "left"))))){
_arg1.x = (x + 80);
if (currentFrame == 15){
_arg1.takeDmg("Crush");
_arg1.y = (y + 644);
_arg1.jump = false;
_arg1.ys = 0;
};
};
if ((((((playerSide == "left")) && ((_arg1.x > (x - 80))))) && (!((pushDir == "right"))))){
_arg1.x = (x - 80);
if (currentFrame == 15){
_arg1.takeDmg("Crush");
_arg1.y = (y + 644);
_arg1.jump = false;
_arg1.ys = 0;
};
};
};
if ((((target == _arg1)) && ((Math.abs((_arg1.x - x)) < 80)))){
mash();
target = this;
};
if ((((currentFrame == 1)) && (targetPlayer))){
target = _arg1;
};
}
function frame1(){
stop();
player = null;
}
function frame17(){
if (stopMashing){
stop();
};
}
public function goTarget(_arg1:Object):void{
targetPlayer = true;
mySpeed = (mySpeed * 2);
target = _arg1;
}
public function testKillBoss(_arg1:Object):void{
if (((targetPlayer) && (_arg1.hitTestObject(MovieClip(parent).Boss.hit2)))){
MovieClip(parent).Boss.dieReal();
targetPlayer = false;
};
}
public function go(_arg1:String):void{
target = positions[_arg1];
}
public function mash():void{
var _local1:SoundPlay;
play();
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "Rumble");
}
}
}//package enemies
Section 31
//MeatMasher (enemies.MeatMasher)
package enemies {
import flash.display.*;
import tools.*;
public class MeatMasher extends MovieClip {
private var hitPico:Boolean;// = false
public var mc_hit:MovieClip;
private var block:String;// = "none"
public function MeatMasher(){
block = "none";
hitPico = false;
super();
MovieClip(parent).doRuntime(this, true);
}
public function runtime(_arg1:Object):void{
var _local2:SoundPlay;
if (currentLabel == "smash"){
_local2 = new SoundPlay(MovieClip(root).saveData["son"], "Tenderizer", (x - _arg1.x), Calculator.getDist(x, y, _arg1.x, _arg1.y));
if (((!(_arg1.dead)) && (MovieClip(mc_hit).hitTestObject(_arg1.hit)))){
_arg1.takeDmg("Crush", 1);
_arg1.canMove(false);
_arg1.crushed = true;
_arg1.touchGround((y - 175));
hitPico = true;
};
if (_arg1.x < (x - 286)){
block = "left";
};
if (_arg1.x > (x - 114)){
block = "right";
};
};
if (currentLabel == "up"){
block = "none";
};
if ((((currentLabel == "down")) && (hitPico))){
_arg1.touchGround((y - 175));
};
if ((((currentLabel == "up")) && (hitPico))){
_arg1.canMove(true);
if (!_arg1.dead){
_arg1.crushed = false;
};
hitPico = false;
};
if ((((((((block == "left")) && ((_arg1.y > (y - 605))))) && ((_arg1.y < (y - 160))))) && ((_arg1.x > (x - 286))))){
_arg1.x = (x - 286);
};
if ((((((((block == "right")) && ((_arg1.y > (y - 605))))) && ((_arg1.y < (y - 160))))) && ((_arg1.x < (x - 114))))){
_arg1.x = (x - 114);
};
if ((((((((((((currentFrame > 6)) && ((currentFrame < 22)))) && ((_arg1.x > (x - 286))))) && ((_arg1.x < (x - 114))))) && (((_arg1.y - 100) < (y - 370))))) && ((_arg1.y > (y - 608))))){
_arg1.y = (y - 270);
if (_arg1.ys < 0){
_arg1.ys = 0;
};
};
}
}
}//package enemies
Section 32
//MeatSack (enemies.MeatSack)
package enemies {
import flash.display.*;
import tools.*;
public class MeatSack extends Enemy {
public var mc_head:MovieClip;
public var mc_hit:MovieClip;
public var mc_sfx:MovieClip;
public function MeatSack(){
bleed = bleed_func;
hp = 999;
hp_max = hp;
head = MovieClip(mc_head);
hit = MovieClip(mc_hit);
}
public function runtime():void{
hp = 999;
}
private function bleed_func(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:SoundPlay;
var _local5:Blood_Small;
_local4 = new SoundPlay(MovieClip(root).saveData["son"], "Blood", (x - player.x), (x - player.x));
_local5 = new Blood_Small();
addChildAt(_local5, getChildIndex(MovieClip(mc_sfx)));
_local5.init(_arg1, _arg2, _arg3, true);
}
}
}//package enemies
Section 33
//MeatSack2 (enemies.MeatSack2)
package enemies {
import flash.display.*;
import tools.*;
public class MeatSack2 extends Enemy {
public var mc_head:MovieClip;
public var mc_hit:MovieClip;
public var mc_sfx:MovieClip;
public function MeatSack2(){
bleed = bleed_func;
hp = 999;
hp_max = hp;
head = MovieClip(mc_head);
hit = MovieClip(mc_hit);
}
public function runtime():void{
hp = 999;
}
private function bleed_func(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:SoundPlay;
var _local5:Blood_Small;
_local4 = new SoundPlay(MovieClip(root).saveData["son"], "Blood", (x - player.x), (x - player.x));
_local5 = new Blood_Small();
addChildAt(_local5, getChildIndex(MovieClip(mc_sfx)));
_local5.init(_arg1, _arg2, _arg3, true);
}
}
}//package enemies
Section 34
//Obstacle_Cadaver (enemies.Obstacle_Cadaver)
package enemies {
import flash.display.*;
import tools.*;
public class Obstacle_Cadaver extends MovieClip {
private var active:Boolean;// = true
public var mc_hit:MovieClip;
private var hit:MovieClip;
public function Obstacle_Cadaver(){
active = true;
super();
MovieClip(parent).doRuntime(this, true);
hit = MovieClip(mc_hit);
stop();
if (Math.random() > 0.5){
nextFrame();
};
if (Math.random() > 0.5){
scaleX = (scaleX * -1);
};
}
public function runtime(_arg1:Object):void{
var _local2:SoundPlay;
var _local3:int;
if (_arg1.train != null){
if (((active) && (_arg1.train.hit.hitTestObject(hit)))){
active = false;
_local2 = new SoundPlay(MovieClip(root).saveData["son"], "Die_Explode");
MovieClip(parent).bloodEnemy("Blood_ChickenDog", x, y);
_local3 = (6 + (Math.random() * 3));
while (_local3) {
_local3--;
MovieClip(parent).newParticle(((x + (Math.random() * 10)) - (Math.random() * 10)), (y - (Math.random() * 20)), ((Math.random() * 45) - (Math.random() * 45)), "MeatChunk");
};
MovieClip(parent).removeChild(this);
};
};
}
}
}//package enemies
Section 35
//Obstacle_Hurt (enemies.Obstacle_Hurt)
package enemies {
import flash.display.*;
import tools.*;
public class Obstacle_Hurt extends MovieClip {
private var active:Boolean;// = true
public var mc_hit:MovieClip;
public var shit:MovieClip;
private var hit:MovieClip;
public function Obstacle_Hurt(){
active = true;
super();
MovieClip(parent).doRuntime(this, true);
hit = MovieClip(mc_hit);
stop();
if (Math.random() > 0.5){
nextFrame();
};
}
public function runtime(_arg1:Object):void{
var _local2:SoundPlay;
if (_arg1.train != null){
if (((active) && (_arg1.train.hit.hitTestObject(hit)))){
MovieClip(shit).play();
active = false;
_arg1.takeDmg("Train");
_local2 = new SoundPlay(MovieClip(root).saveData["son"], "Tenderizer");
};
};
}
}
}//package enemies
Section 36
//RailTombe (enemies.RailTombe)
package enemies {
import flash.display.*;
import tools.*;
public class RailTombe extends Enemy {
public var mc_head:MovieClip;
private var myTrack:Object;
public var mc_hit:MovieClip;
public function RailTombe(){
addFrameScript(4, frame5, 23, frame24);
active = true;
bleed = bleed_func;
die = die_func;
hp = 1;
hp_max = hp;
head = MovieClip(mc_head);
hit = MovieClip(mc_hit);
stop();
}
public function setTrack(_arg1:Object):void{
myTrack = _arg1;
}
public function runtime():void{
var _local1:SoundPlay;
if (((active) && (player.hit.hitTestObject(hit)))){
active = false;
player.takeDmg("Train");
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "Tenderizer");
};
}
private function die_func():void{
var _local1:SoundPlay;
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "SlicerAttack");
play();
myTrack.prevFrame();
}
function frame24(){
prevFrame();
}
function frame5(){
playSon();
}
private function bleed_func(_arg1:Number, _arg2:Number, _arg3:Number):void{
}
private function playSon():void{
var _local1:SoundPlay;
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "TrainLand");
}
}
}//package enemies
Section 37
//RescueDarnell (enemies.RescueDarnell)
package enemies {
import flash.display.*;
import tools.*;
public class RescueDarnell extends Enemy {
public var mc_head:MovieClip;
protected var MCbody:Object;
public var mc_hit:MovieClip;
public var myBody:MovieClip;
protected var MChead:Object;
protected var MCbox:Object;
public var myBox:MovieClip;
public var myHead:MovieClip;
public var mc_sfx:MovieClip;
public function RescueDarnell(){
bleed = bleed_func;
die = die_func;
hp = 8;
hp_max = hp;
head = MovieClip(mc_head);
hit = MovieClip(mc_hit);
MCbody = MovieClip(myBody);
MCbox = MovieClip(myBox);
MChead = MovieClip(myHead);
MCbody.visible = false;
MChead.visible = false;
}
public function runtime(_arg1:Object=null):void{
var _local2:Number;
if (_arg1 != null){
if (Calculator.getDist(x, y, _arg1.x, _arg1.y) <= 600){
if (_arg1.x < x){
_local2 = Calculator.getAngle(_arg1.x, (_arg1.y - 75), x, (y - 60));
MChead.scaleX = 1;
} else {
_local2 = Calculator.getAngle(x, (y - 60), _arg1.x, (_arg1.y - 75));
MChead.scaleX = -1;
};
MChead.rotation = ((_local2 - 10) / 2);
};
};
}
private function die_func():void{
var _local1:int;
var _local2:SoundPlay;
var _local3:int;
_local1 = 0;
while (_local1 < 4) {
_local3 = 0;
while (_local3 < 4) {
MovieClip(parent).newParticle(((x - 40) + (_local1 * 20)), ((y - 10) - (_local3 * 20)), (Math.random() * 360), "WoodShard");
MovieClip(parent).newParticle(((x - 40) + (_local1 * 20)), ((y - 10) - (_local3 * 20)), (Math.random() * 360), "WoodShard");
_local3++;
};
_local1++;
};
MovieClip(root).medal_popup.unlockMedal("Twice the Fun");
_local2 = new SoundPlay(MovieClip(root).saveData["son"], "TrainLand", (x - player.x), (x - (player.x / 1.5)));
MCbox.visible = false;
MCbody.visible = true;
MChead.visible = true;
MovieClip(parent).doRuntime(this, true);
}
private function bleed_func(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:SoundPlay;
_local4 = new SoundPlay(MovieClip(root).saveData["son"], "TrainLand", (x - player.x), (x - (player.x * 1.5)));
game.particle((x + _arg1), (y + _arg2), _arg3, "GunSpark", ((Math.random() * 3) + 1));
}
}
}//package enemies
Section 38
//RescueNene (enemies.RescueNene)
package enemies {
import flash.display.*;
import tools.*;
public class RescueNene extends Enemy {
public var mc_head:MovieClip;
protected var MCbody:Object;
public var mc_hit:MovieClip;
public var myBody:MovieClip;
protected var MChead:Object;
protected var MCbox:Object;
public var myBox:MovieClip;
public var myHead:MovieClip;
public var mc_sfx:MovieClip;
public function RescueNene(){
bleed = bleed_func;
die = die_func;
hp = 8;
hp_max = hp;
head = MovieClip(mc_head);
hit = MovieClip(mc_hit);
MCbody = MovieClip(myBody);
MCbox = MovieClip(myBox);
MChead = MovieClip(myHead);
MCbody.visible = false;
MChead.visible = false;
}
public function runtime(_arg1:Object=null):void{
var _local2:Number;
if (_arg1 != null){
if (Calculator.getDist(x, y, _arg1.x, _arg1.y) <= 600){
if (_arg1.x < x){
_local2 = Calculator.getAngle(_arg1.x, (_arg1.y - 75), x, (y - 60));
MChead.scaleX = 1;
} else {
_local2 = Calculator.getAngle(x, (y - 60), _arg1.x, (_arg1.y - 75));
MChead.scaleX = -1;
};
MChead.rotation = ((_local2 - 10) / 2);
};
};
}
private function die_func():void{
var _local1:int;
var _local2:SoundPlay;
var _local3:int;
_local1 = 0;
while (_local1 < 4) {
_local3 = 0;
while (_local3 < 4) {
MovieClip(parent).newParticle(((x - 40) + (_local1 * 20)), ((y - 10) - (_local3 * 20)), (Math.random() * 360), "WoodShard");
_local3++;
};
_local1++;
};
MovieClip(root).medal_popup.unlockMedal("Big Wet Juicy Kiss");
_local2 = new SoundPlay(MovieClip(root).saveData["son"], "TrainLand", (x - player.x), (x - (player.x / 1.5)));
MCbox.visible = false;
MCbody.visible = true;
MChead.visible = true;
MovieClip(parent).doRuntime(this, true);
}
private function bleed_func(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:SoundPlay;
_local4 = new SoundPlay(MovieClip(root).saveData["son"], "TrainLand", (x - player.x), (x - (player.x * 1.5)));
game.particle((x + _arg1), (y + _arg2), _arg3, "GunSpark", ((Math.random() * 3) + 1));
}
}
}//package enemies
Section 39
//SawKill (enemies.SawKill)
package enemies {
import flash.display.*;
import tools.*;
public class SawKill extends MovieClip {
private var timer:Number;// = 64
public var mc_hit:MovieClip;
private var son:SoundPlay;
private var hit:MovieClip;
public function SawKill(){
timer = 64;
super();
hit = MovieClip(mc_hit);
MovieClip(parent).doRuntime(this, true);
}
public function runtime(_arg1:Object):void{
if (hit.hitTestPoint(_arg1.x, _arg1.y)){
_arg1.takeDmg("Regular", 1);
};
timer++;
if ((((timer == 65)) && ((MovieClip(parent).levelName == _arg1.currentLevel)))){
son = new SoundPlay(MovieClip(root).saveData["son"], "Saw", (x - _arg1.x), (Calculator.getDist(x, y, _arg1.x, _arg1.y) * 1.2), osti);
timer = 0;
};
if (timer <= 64){
son.setProps(MovieClip(root).saveData["son"], (x - _arg1.x), (Calculator.getDist(x, y, _arg1.x, _arg1.y) * 1.2));
};
}
private function osti():void{
}
}
}//package enemies
Section 40
//Slicer (enemies.Slicer)
package enemies {
import flash.display.*;
import tools.*;
public class Slicer extends Enemy {
public var mc_sfx:MovieClip;
private var attacking:Boolean;// = false
public var mc_sprites:MovieClip;
public var mc_head:MovieClip;
private var sound:SoundPlay;
private var headTimer:Number;// = 0
private var initX:Number;// = 0
public var headFrame:Number;// = 1
public var mc_hit:MovieClip;
private var soundTimer:int;
private var scale:Number;
private var target:int;
private var follow:Boolean;// = false
private var attackRange:Number;// = 120
private var attackTimer:int;// = 0
private var moveTimer:int;// = 1
public function Slicer(){
attacking = false;
attackRange = 120;
attackTimer = 0;
initX = 0;
follow = false;
moveTimer = 1;
scale = (0.95 + (Math.random() * 0.1));
soundTimer = (30 + (Math.random() * 30));
target = ((Math.random() * 300) - (Math.random() * 300));
headFrame = 1;
headTimer = 0;
super();
accel = (3 + (Math.random() * 2.5));
bleed = bleed_func;
die = die_func;
hp = 20;
hp_max = hp;
head = MovieClip(mc_head);
hit = MovieClip(mc_hit);
hit.visible = false;
maxSpeed = 15;
sprites = MovieClip(mc_sprites);
sprites.stop();
sprites.scaleX = scale;
sprites.scaleY = scale;
findBounds(hit);
}
public function playSound():void{
var _local1:SoundPlay;
if (((((((((!((game == null))) && (game.isPlay))) && ((MovieClip(parent).levelName == player.currentLevel)))) && ((hp > 0)))) && ((MovieClip(parent).levelName == player.currentLevel)))){
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "Slicer", (x - player.x), (x - player.x));
};
}
private function bleed_func(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:SoundPlay;
var _local5:Blood_Small;
_local4 = new SoundPlay(MovieClip(root).saveData["son"], "Blood", (player.x - x), (player.x - x));
_local5 = new Blood_Small();
addChildAt(_local5, getChildIndex(MovieClip(mc_sfx)));
_local5.init(_arg1, _arg2, _arg3, true);
}
public function testDmg(_arg1:Object):void{
if (((((!((game == null))) && (game.isPlay))) && ((hp > 0)))){
if (_arg1.hitTestObject(player.hit)){
player.takeDmg("Regular");
};
};
}
private function die_func():void{
var _local1:SoundPlay;
var _local2:int;
var _local3:Number;
var _local4:Number;
MovieClip(root).totalKills++;
MovieClip(parent).bloodEnemy("Blood_Slicer", x, y);
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "Die_Explode", (x - player.x), (x - player.x));
_local2 = (6 + (Math.random() * 3));
while (_local2) {
_local2--;
MovieClip(parent).meatSmall(x, y);
};
_local2 = (2 + (Math.random() * 2));
while (_local2) {
_local2--;
MovieClip(parent).meatMedium(x, y);
};
MovieClip(parent).meatBig(x, y);
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_1", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_2", (-2 - (Math.random() * 2)));
};
_local3 = ((x + (Math.random() * 20)) - (Math.random() * 20));
_local4 = ((y - (Math.random() * 30)) - 10);
if (Math.random() > 0.5){
MovieClip(parent).newParticle(_local3, _local4, 0, "Organ_3", (-2 - (Math.random() * 2)));
};
parent.removeChild(this);
}
public function makeSound():void{
var _local1:SoundPlay;
if (((((((!((game == null))) && (game.isPlay))) && ((MovieClip(parent).levelName == player.currentLevel)))) && ((hp > 0)))){
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "SlicerAttack", (x - player.x), (x - player.x));
};
}
public function runtime():void{
if (!dead){
headTimer++;
if (headTimer == 20){
headFrame = 1;
};
anim = "stand";
if (((active) && ((MovieClip(parent).levelName == player.currentLevel)))){
if (player.x > (bounds.x + bounds.width)){
active = false;
follow = false;
target = ((-(Math.random()) * 100) - 150);
};
if (player.x < bounds.x){
active = false;
follow = false;
target = ((Math.random() * 100) + 150);
};
attackTimer--;
if ((((attackTimer < 0)) && (active))){
follow = true;
};
soundTimer--;
if (soundTimer < 0){
headTimer = 1;
headFrame = 3;
soundTimer = (40 + (Math.random() * 40));
playSound();
};
} else {
if (hp < hp_max){
};
if ((((((Calculator.getDist(x, y, player.x, player.y) < 350)) && ((player.x > bounds.x)))) && ((player.x < (bounds.x + bounds.width))))){
active = true;
};
};
if (((!(follow)) || (player.dead))){
xs = (xs / 1.75);
if (Math.abs(xs) < 0.5){
xs = 0;
};
} else {
if (((!(attacking)) && (((player.x + attackRange) < x)))){
xs = (xs - accel);
if (xs < -(maxSpeed)){
xs = -(maxSpeed);
};
scaleX = 1;
} else {
if (((!(attacking)) && (((player.x - attackRange) > x)))){
xs = (xs + accel);
if (xs > maxSpeed){
xs = maxSpeed;
};
scaleX = -1;
} else {
attacking = true;
};
};
};
if (((attacking) && (!(player.dead)))){
xs = (xs / 1.75);
if (Math.abs(xs) < 0.5){
xs = 0;
};
if (player.x < x){
scaleX = 1;
};
if (player.x > x){
scaleX = -1;
};
if (((!((sprites.currentLabel == "attack"))) && ((Calculator.getDist(x, y, player.x, player.y) > (attackRange * 1.1))))){
attacking = false;
follow = false;
attackTimer = (5 + (Math.random() * 5));
target = (100 - (Math.random() * 200));
};
};
if (player.dead){
attacking = false;
follow = false;
attackTimer = 99999;
};
target = (target - xs);
x = (x + test_walls(xs));
test_floor();
if (((attacking) && (!((anim == "attack"))))){
anim = "attack";
};
if (anim != sprites.currentLabel){
sprites.gotoAndStop(anim);
};
};
}
}
}//package enemies
Section 41
//Tenderizer (enemies.Tenderizer)
package enemies {
import flash.display.*;
import tools.*;
public class Tenderizer extends Enemy {
public var mc_sprites2:MovieClip;
public var mc_sfx:MovieClip;
private var attacking:Boolean;// = false
public var mc_sprites:MovieClip;
public var mc_head:MovieClip;
private var sound2:SoundPlay;
private var sound:SoundPlay;
public var headFrame:Number;// = 1
public var mc_hit:MovieClip;
private var soundTimer:int;
private var sprites2:MovieClip;
private var attackRange:Number;// = 80
private var attackTimer:Number;// = 0
private var attackTimer2:Number;// = 0
public function Tenderizer(){
attacking = false;
attackRange = 80;
attackTimer = 0;
attackTimer2 = 0;
soundTimer = (30 + (Math.random() * 30));
headFrame = 1;
super();
accel = (1 + (Math.random() * 1));
bleed = bleed_func;
die = die_func;
hp = 35;
hp_max = hp;
head = MovieClip(mc_head);
hit = MovieClip(mc_hit);
maxSpeed = (13 + (Math.random() * 1.5));
sprites = MovieClip(mc_sprites);
sprites2 = MovieClip(mc_sprites2);
sprites.stop();
sprites2.stop();
findBounds(hit);
}
public function soundSmash():void{
if (((((((!((game == null))) && (game.isPlay))) && ((MovieClip(parent).levelName == player.currentLevel)))) && ((MovieClip(parent).levelName == player.currentLevel)))){
sound2 = new SoundPlay(MovieClip(root).saveData["son"], "Tenderizer", (x - player.x), (x - player.x));
};
}
private function bleed_func(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:SoundPlay;
var _local5:Blood_Small;
_local4 = new SoundPlay(MovieClip(root).saveData["son"], "Blood", (x - player.x), (x - player.x));
_local5 = new Blood_Small();
addChildAt(_local5, getChildIndex(MovieClip(mc_sfx)));
_local5.init(_arg1, _arg2, _arg3, true);
}
public function testDmg(_arg1:Object, _arg2:Boolean=false):void{
if (((((((!((game == null))) && (game.isPlay))) && ((MovieClip(parent).levelName == player.currentLevel)))) && (_arg1.hitTestObject(player.hit)))){
if (((((_arg2) && (player.jump))) || (!(_arg2)))){
player.takeDmg("Crush");
};
};
}
private function die_func():void{
var _local1:SoundPlay;
MovieClip(root).totalKills++;
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "Tenderizer_Die", (x - player.x), (x - player.x));
anim = "die";
sprites.gotoAndStop(anim);
sprites2.gotoAndStop(anim);
}
public function resetHead():void{
sound = null;
soundTimer = (40 + (Math.random() * 45));
headFrame = 1;
}
public function runtime():void{
if (!dead){
anim = "stand";
if (((active) && ((MovieClip(parent).levelName == player.currentLevel)))){
attackTimer++;
if (!attacking){
if (Calculator.getDistX(x, player.x) < (attackRange * 0.8)){
if (player.x < x){
scaleX = 1;
} else {
scaleX = -1;
};
moveX(0);
} else {
if (player.x < x){
moveX(-1);
scaleX = 1;
} else {
moveX(1);
scaleX = -1;
};
};
if ((((Calculator.getDistX(x, player.x) < (attackRange * 1.5))) && (!(player.dead)))){
anim = "attack";
attacking = true;
};
} else {
moveX(0);
anim = "attack";
if (player.x < x){
scaleX = 1;
} else {
scaleX = -1;
};
attackTimer2++;
if (attackTimer2 == 40){
attackTimer = 0;
attackTimer2 = 0;
attacking = false;
anim = "stand";
};
};
soundTimer--;
if (soundTimer == 0){
sound = new SoundPlay(MovieClip(root).saveData["son"], "Chicken", (x - player.x), (x - player.x), resetHead);
};
if (soundTimer <= 0){
headFrame++;
};
if ((((player.x < bounds.x)) || ((player.x > (bounds.x + bounds.width))))){
active = false;
anim = "stand";
attacking = false;
xs = 0;
};
} else {
if (hp < hp_max){
};
if ((((((Calculator.getDist(x, y, player.x, player.y) < 200)) && ((player.x > bounds.x)))) && ((player.x < (bounds.x + bounds.width))))){
active = true;
};
};
x = (x + test_walls(xs));
y = (y + ys);
test_floor();
if (((attacking) && (!((anim == "attack"))))){
anim = "attack";
};
if (anim != sprites.currentLabel){
sprites.gotoAndStop(anim);
sprites2.gotoAndStop(anim);
};
};
}
}
}//package enemies
Section 42
//Wtface (enemies.Wtface)
package enemies {
import flash.display.*;
public class Wtface extends MovieClip {
public var mc_hit:MovieClip;
public function Wtface(){
MovieClip(parent).doRuntime(this, true);
}
public function runtime(_arg1:Object):void{
if (((_arg1.train) && (MovieClip(mc_hit).hitTestPoint(_arg1.x, _arg1.y)))){
_arg1.wtf = true;
} else {
_arg1.wtf = false;
};
}
}
}//package enemies
Section 43
//Anim (gameplay.Anim)
package gameplay {
import flash.display.*;
import flash.events.*;
public class Anim extends MovieClip {
protected var active:Boolean;// = true
public var mc_anim:MovieClip;
protected var animObj:Object;
public var b_skip:MovieClip;
protected var skipBtn:Object;// = null
protected var nextUp:String;
public function Anim(){
active = true;
skipBtn = null;
super();
}
public function runtime():void{
if (((!((skipBtn == null))) && (skipBtn.hitTestPoint(mouseX, mouseY)))){
skipBtn.gotoAndPlay(55);
};
}
public function finishAnim(_arg1:MouseEvent=null):void{
if (active){
active = false;
animObj.stop();
if (skipBtn != null){
removeEventListener("click", finishAnim);
skipBtn = null;
};
MovieClip(parent.parent).nextLevel(nextUp);
};
}
public function setBtn(_arg1:Object):void{
skipBtn = _arg1;
skipBtn.addEventListener("click", finishAnim, false, 0, true);
}
public function cleanUp():void{
}
}
}//package gameplay
Section 44
//BulletHero (gameplay.BulletHero)
package gameplay {
import flash.display.*;
import tools.*;
public class BulletHero extends MovieClip {
private var dmg:Number;// = 1
private var ys:Number;
private var enemies:Array;
private var destroyed:Boolean;// = false
private var timeOut:Number;// = 0
private var speed:Number;// = 100
private var xs:Number;
private var ground:MovieClip;
private var game:Object;
public function BulletHero(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Array, _arg6:MovieClip){
dmg = 1;
destroyed = false;
speed = 100;
timeOut = 0;
super();
game = _arg1;
game.doRuntime(this, true);
x = _arg2;
y = _arg3;
rotation = ((_arg4 * -1) - 90);
ys = (speed * Math.cos(((Math.PI / 180) * _arg4)));
xs = (speed * Math.sin(((Math.PI / 180) * _arg4)));
enemies = _arg5;
ground = _arg6;
if (ground.hitTestPoint(x, y, true)){
destroy();
};
}
private function destroy(_arg1:Object=null):void{
var _local2:SoundPlay;
destroyed = true;
xs = 0;
ys = 0;
if (_arg1){
_arg1.takeDmg(dmg, x, y, rotation);
} else {
_local2 = new SoundPlay(MovieClip(root).saveData["son"], "Wall", (x - game.getHero().x), Calculator.getDist(x, y, game.getHero().x, game.getHero().y));
game.particle(x, y, ((((rotation * -1) + 90) + (Math.random() * 30)) - (Math.random() * 30)), "GunSpark", ((Math.random() * 3) + 1));
};
cleanUp();
}
public function runtime():void{
var _local1:int;
var _local2:int;
timeOut++;
if (timeOut == 90){
destroy();
} else {
if (!destroyed){
_local1 = 0;
while (_local1 < 10) {
x = (x + (xs / 10));
y = (y + (ys / 10));
if (ground.hitTestPoint(x, y, true)){
while (ground.hitTestPoint(x, y, true)) {
x = (x - (xs / 50));
y = (y - (ys / 50));
};
destroy();
break;
} else {
_local2 = 0;
while (_local2 < enemies.length) {
if (enemies[_local2].hit.hitTestPoint(x, y, true)){
destroy(enemies[_local2]);
//unresolved jump
};
_local2++;
};
};
_local1++;
};
};
};
}
private function cleanUp():void{
parent.removeChild(this);
game.doRuntime(this, false);
enemies = null;
game = null;
ground = null;
}
}
}//package gameplay
Section 45
//Car (gameplay.Car)
package gameplay {
import flash.display.*;
import flash.geom.*;
import tools.*;
public class Car extends MovieClip {
private var jumpHeight:Number;// = 18
private var active:Boolean;// = false
private var ys:Number;// = 0
public var canJump:Boolean;// = false
private var jump:Boolean;// = false
private var sonRoll:SoundPlay;
private var maxSpeed:Number;// = 18
private var wheel1:MovieClip;
private var speed:Number;// = 0
public var mc_hit:MovieClip;
private var wheel2:MovieClip;
private var xs:Number;// = 0
private var track:Object;
private var stick:Object;
public var w1:Point;
private var stopMe:Boolean;// = false
public var mc_stick:MovieClip;
public var w2:Point;
public var hit:MovieClip;
public var mc_car:MovieClip;
private var sonTimer:Number;// = 1
private var car:MovieClip;
private var hasPico:Boolean;// = false
public function Car(){
stopMe = false;
active = false;
hasPico = false;
jump = false;
jumpHeight = 18;
maxSpeed = 18;
sonTimer = 1;
speed = 0;
xs = 0;
ys = 0;
canJump = false;
super();
addFrameScript(0, frame1);
MovieClip(parent).doRuntime(this, true);
car = MovieClip(mc_car);
hit = MovieClip(mc_hit);
stick = MovieClip(mc_stick);
wheel1 = car.mc_w1;
wheel2 = car.mc_w2;
wheel1.rotation = (Math.random() * 360);
wheel2.rotation = (Math.random() * 360);
stick.visible = false;
}
public function runtime(_arg1:Object):void{
var _local2:SoundPlay;
var _local3:Point;
var _local4:Boolean;
var _local5:Boolean;
var _local6:int;
var _local7:int;
var _local8:Number;
var _local9:SoundPlay;
var _local10:Point;
var _local11:Point;
var _local12:int;
var _local13:SoundPlay;
var _local14:Number;
var _local15:Number;
if (stopMe){
car.rotation = 0;
};
if (((((((((!(stopMe)) && (!(active)))) && (hit.hitTestPoint(_arg1.x, _arg1.y)))) && ((_arg1.ys > 0)))) && ((MovieClip(parent).levelName == _arg1.currentLevel)))){
sonRoll = new SoundPlay(MovieClip(root).saveData["son"], "TrainRoll", 0, ((speed / maxSpeed) * 300), useless);
active = true;
hasPico = true;
_arg1.crushed = true;
_arg1.moving = false;
_arg1.train = this;
_arg1.xs = 0;
_arg1.ys = 0;
speed = 2;
MovieClip(parent).camOffset = 225;
};
if (active){
sonTimer++;
if ((((sonTimer == 40)) && ((MovieClip(parent).levelName == _arg1.currentLevel)))){
sonTimer = 1;
sonRoll = new SoundPlay(MovieClip(root).saveData["son"], "TrainRoll", 0, (800 - ((speed / maxSpeed) * 300)), useless);
};
if (!_arg1.dead){
_arg1.doFace();
};
wheel1.rotation = (wheel1.rotation + speed);
wheel2.rotation = (wheel2.rotation + speed);
if (!jump){
if (Math.round((Math.random() * 3)) == 2){
doSparks();
};
doSmoke();
if (speed < (maxSpeed - 1)){
speed++;
} else {
if (speed > (maxSpeed + 1)){
speed--;
if (speed < (maxSpeed / 2)){
speed = (maxSpeed / 2);
};
};
};
if (speed >= (maxSpeed - 2)){
canJump = true;
};
if (((((canJump) && (!(_arg1.dead)))) && (Master.key.downCont("up")))){
sonRoll.shutUp();
_local2 = new SoundPlay(MovieClip(root).saveData["son"], "TrainJump");
jump = true;
xs = speed;
ys = -(jumpHeight);
x = (x + speed);
y = (y - jumpHeight);
} else {
stick.width = speed;
_local4 = false;
_local5 = false;
_local6 = 0;
while (_local6 < 50) {
if (track.hitTestPoint((x + speed), (y + _local6), true)){
_local5 = true;
break;
};
_local6++;
};
if (_local5){
stick.rotation = 0;
_local7 = 0;
while (_local7 < 55) {
_local3 = MovieClip(parent).globalToLocal(stick.localToGlobal(stick.pt));
if (track.hitTestPoint(_local3.x, _local3.y, true)){
_local4 = true;
break;
};
stick.rotation++;
_local7++;
};
};
if (_local4){
x = _local3.x;
y = _local3.y;
car.rotation = stick.rotation;
speed = (speed + (car.rotation / 15));
} else {
sonRoll.shutUp();
jump = true;
x = (x + speed);
xs = speed;
ys = 0;
car.rotation = 0;
};
};
} else {
sonRoll.setProps(MovieClip(root).saveData["son"], 0, 800);
x = (x + xs);
_local8 = 0;
while (_local8 < 10) {
y = (y + (ys / 10));
if (track.hitTestPoint(x, y, true)){
while (track.hitTestPoint(x, y, true)) {
y--;
};
jump = false;
sonRoll = new SoundPlay(MovieClip(root).saveData["son"], "TrainRoll", 0, (800 - ((speed / maxSpeed) * 300)), useless);
_local9 = new SoundPlay(MovieClip(root).saveData["son"], "TrainLand");
_local10 = parent.globalToLocal(this.localToGlobal(w1));
_local11 = parent.globalToLocal(this.localToGlobal(w2));
_local12 = 0;
while (_local12 <= 5) {
MovieClip(parent).newParticle(_local10.x, _local10.y, 0, "Spark_Train");
MovieClip(parent).newParticle(_local11.x, _local11.y, 0, "Spark_Train");
_local12++;
};
break;
};
_local8++;
};
ys = (ys + 1.5);
};
if (((!(_arg1.dead)) && (hasPico))){
if (Master.key.downCont("use")){
};
} else {
if ((((_arg1.ys > 0)) && (((hit.hitTestPoint(_arg1.x, _arg1.y)) || (hit.hitTestPoint(_arg1.x, (_arg1.y - (_arg1.ys / 2)))))))){
hasPico = true;
_arg1.crushed = true;
_arg1.moving = false;
_arg1.xs = 0;
_arg1.ys = 0;
};
};
if (x > MovieClip(parent).limit.x){
x = MovieClip(parent).limit.x;
speed = 0;
xs = 0;
if (!jump){
sonRoll.shutUp();
stopMe = true;
car.rotation = 0;
_local13 = new SoundPlay(MovieClip(root).saveData["son"], "Tenderizer");
_arg1.doFace(true);
MovieClip(parent).camOffset = 0;
_arg1.y = MovieClip(parent).limit.y;
active = false;
hasPico = false;
_arg1.crushed = false;
_arg1.moving = true;
_arg1.train = null;
_arg1.ys = 0;
sonRoll.setProps(MovieClip(root).saveData["son"], 999, 999);
};
};
if (hasPico){
_local14 = (Math.sin((car.rotation * (Math.PI / 180))) * 46);
_local15 = (Math.cos((car.rotation * (Math.PI / 180))) * 46);
_arg1.x = (x + _local14);
_arg1.y = (y - _local15);
_arg1.rotation = car.rotation;
if (_arg1.cadaver != null){
_arg1.cadaver.x = (x + _local14);
_arg1.cadaver.y = (y - _local15);
};
} else {
_arg1.x = x;
};
};
}
public function setTrack(_arg1:Object):void{
var _local2:int;
track = _arg1;
y = (y - 5);
_local2 = 0;
while (_local2 < 10) {
y++;
if (track.hitTestPoint(x, y, true)){
break;
};
_local2++;
};
}
public function increaseSpeed(_arg1:int):void{
maxSpeed = (maxSpeed + _arg1);
}
function frame1(){
w1 = new Point(-23, 1);
w2 = new Point(23, 1);
}
private function doSparks():void{
var _local1:Point;
if ((Math.random() > 0.5)){
_local1 = parent.globalToLocal(this.localToGlobal(w1));
} else {
_local1 = parent.globalToLocal(this.localToGlobal(w2));
};
MovieClip(parent).newParticle(_local1.x, _local1.y, -40, "Spark_Train");
}
private function useless():void{
}
private function doSmoke():void{
var _local1:Point;
if ((Math.random() > 0.5)){
_local1 = parent.globalToLocal(this.localToGlobal(w1));
} else {
_local1 = parent.globalToLocal(this.localToGlobal(w2));
};
MovieClip(parent).newParticle(_local1.x, _local1.y, -40, "Smoke_Train");
}
}
}//package gameplay
Section 46
//Elevator (gameplay.Elevator)
package gameplay {
import flash.display.*;
import tools.*;
public class Elevator extends MovieClip {
private var active:Boolean;// = true
private var moveDir:Number;// = 1
private var destination:Object;// = null
private var toHide:Object;
private var speed:Number;// = 0
public var mc_hit:MovieClip;
private var gear2:MovieClip;
private var gear1:MovieClip;
public var mc_gear1:MovieClip;
public var mc_gear2:MovieClip;
private var dir:String;
private var hit:MovieClip;
private var ended:Boolean;// = false
private var mySound:SoundPlay;
private var hasPico:Boolean;// = false
public function Elevator(){
active = true;
destination = null;
ended = false;
hasPico = false;
moveDir = 1;
speed = 0;
super();
hit = MovieClip(mc_hit);
gear1 = MovieClip(mc_gear1);
gear2 = MovieClip(mc_gear2);
gear1.rotation = (Math.random() * 360);
gear2.rotation = (Math.random() * 360);
MovieClip(parent).doRuntime(this, true);
}
public function runtime(_arg1:Object):void{
var _local2:*;
destination = MovieClip(parent).getDest(this);
if (((active) && (!(hasPico)))){
if (hit.hitTestObject(_arg1.hit)){
_arg1.elevator = true;
_arg1.y = y;
_arg1.ys = 0;
_arg1.canJump = false;
active = false;
hasPico = true;
mySound = new SoundPlay(MovieClip(root).saveData["son"], "Elevator", 0, (800 - ((speed / 10) * 800)), restartSound);
toHide.nextFrame();
};
};
if (hasPico){
if (MovieClip(parent).levelName != _arg1.currentLevel){
ended = true;
mySound.shutUp();
};
if (speed < 10){
speed++;
};
mySound.setProps(MovieClip(root).saveData["son"], 0, (800 - ((speed / 10) * 800)));
y = (y + (speed * moveDir));
if ((((dir == "down")) && ((y >= destination.y)))){
_arg1.elevator = false;
y = destination.y;
hasPico = false;
_arg1.canJump = true;
speed = 0;
_arg1.ys = 0;
_local2 = new SoundPlay(MovieClip(root).saveData["son"], "ElevatorLand");
mySound.shutUp();
};
if (_arg1.x < (x - (width / 2))){
_arg1.x = (x - (width / 2));
};
if (_arg1.x > (x + (width / 2))){
_arg1.x = (x + (width / 2));
};
_arg1.y = y;
_arg1.y = y;
_arg1.ys = 0;
_arg1.jump = false;
gear1.rotation = (gear1.rotation - (speed * moveDir));
gear2.rotation = (gear2.rotation + (speed * moveDir));
};
}
public function setDest(_arg1:Object, _arg2:Object):void{
toHide = _arg2;
destination = _arg1;
dir = "down";
}
public function setSpeed(_arg1:Number):void{
}
public function restartSound():void{
if (((hasPico) && (!(ended)))){
mySound = new SoundPlay(MovieClip(root).saveData["son"], "Elevator", 0, (800 - ((speed / 10) * 800)), restartSound);
};
}
public function stopAt(_arg1:Object, _arg2:Object):void{
var _local3:*;
if (hasPico){
_arg2.elevator = false;
y = _arg1.y;
hasPico = false;
_arg2.canJump = true;
speed = 0;
_arg2.ys = 0;
_local3 = new SoundPlay(MovieClip(root).saveData["son"], "ElevatorLand");
mySound.shutUp();
};
}
}
}//package gameplay
Section 47
//Game (gameplay.Game)
package gameplay {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Game extends MovieClip {
private var isPaused:Boolean;// = false
public var b_qual:SimpleButton;
public var b_menu:SimpleButton;
private var lastBMP:Bitmap;
public var fadeOut:MovieClip;
public var allKeys:MovieClip;
public var mc_container:MovieClip;
private var timer:Number;// = 0
private var boxMask:MovieClip;
public var b_vol:SimpleButton;
private var sawKeys:Boolean;// = false
private var container:MovieClip;
private var lastLevel:BitmapData;
private var currentLevel;
public var mc_fade:MovieClip;
public var mc_last:MovieClip;
public var mc_boxMask:MovieClip;
public var isPlay:Boolean;// = true
private var runtimeList:Array;
private var currentLevelName:String;
public var interface_hp:MovieClip;
private var songToPlay:String;// = "kaka"
private var player:Player;// = null
private var c_last:MovieClip;
public var mc_sky:MovieClip;
public function Game(_arg1:String){
isPaused = false;
player = null;
runtimeList = new Array();
timer = 0;
songToPlay = "kaka";
sawKeys = false;
isPlay = true;
super();
addEventListener("enterFrame", runtime, false, 0, true);
boxMask = MovieClip(mc_boxMask);
boxMask.stop();
c_last = MovieClip(mc_last);
container = MovieClip(mc_container);
if (_arg1.substr(0, 4) == "Anim"){
MovieClip(interface_hp).visible = false;
b_qual.visible = false;
b_vol.visible = false;
b_menu.visible = false;
loadAnim(_arg1, true);
MovieClip(allKeys).visible = false;
} else {
if (((!(sawKeys)) && ((currentLevelName == "Resto01")))){
MovieClip(allKeys).visible = true;
sawKeys = true;
} else {
MovieClip(allKeys).visible = false;
};
player = new Player(this);
initButtons();
loadLevel(_arg1, true);
};
addEventListener("addedToStage", initEvent, false, 0, true);
}
private function runtime(_arg1:Event=null):void{
var _local2:int;
if (player != null){
player.runtime();
player.ready = true;
};
_local2 = 0;
while (_local2 < runtimeList.length) {
runtimeList[_local2].runtime();
_local2++;
};
currentLevel.runtime();
if (lastLevel){
timer++;
MovieClip(mc_fade).alpha = (MovieClip(mc_fade).alpha + 0.03);
if (timer == 31){
Master.key.canUse(true);
c_last.removeChild(lastBMP);
lastBMP = null;
lastLevel.dispose();
boxMask.prevFrame();
};
};
}
private function clickQual(_arg1:MouseEvent):void{
switch (MovieClip(root).saveData.quality){
case "high":
stage.quality = "low";
MovieClip(root).saveData["quality"] = "low";
break;
case "medium":
stage.quality = "high";
MovieClip(root).saveData["quality"] = "high";
break;
case "low":
stage.quality = "medium";
MovieClip(root).saveData["quality"] = "medium";
break;
default:
break;
};
MovieClip(root).saveGame();
}
private function loadAnim(_arg1:String, _arg2:Boolean=false):void{
var _local3:Class;
currentLevelName = _arg1;
if (currentLevel){
currentLevel.cleanUp();
container.removeChild(currentLevel);
};
runtimeList = new Array();
_local3 = Class(getDefinitionByName(_arg1));
currentLevel = new (_local3);
container.addChild(currentLevel);
if (!_arg2){
boxMask.nextFrame();
};
}
private function clickMenu(_arg1:MouseEvent):void{
isPlay = false;
MovieClip(fadeOut).play();
clearButtons();
}
private function clickVol(_arg1:MouseEvent):void{
switch (MovieClip(root).saveData["son"]){
case 0:
MovieClip(root).saveData["son"] = 1;
break;
case 1:
MovieClip(root).saveData["son"] = 0;
break;
default:
break;
};
MovieClip(root).saveGame();
}
public function disablePico():void{
player.canMove(false);
}
public function blood(_arg1:Number, _arg2:Number, _arg3:Number):void{
currentLevel.blood(_arg1, _arg2, _arg3);
}
public function endFinish():void{
MovieClip(parent.parent).start_menu();
}
public function nextLevel(_arg1:String="bob"):void{
if (player == null){
MovieClip(interface_hp).visible = true;
player = new Player(this, false);
initButtons();
};
Master.key.canUse(false);
timer = 0;
lastLevel = new BitmapData(750, 550);
lastLevel.draw(MovieClip(mc_sky));
lastLevel.draw(container);
lastBMP = new Bitmap(lastLevel);
c_last.addChild(lastBMP);
if (_arg1 == "bob"){
loadLevel(currentLevelName);
} else {
loadLevel(_arg1);
};
MovieClip(mc_fade).alpha = 0;
}
public function getHero():Object{
return (player);
}
private function initEvent(_arg1:Event):void{
removeEventListener("addedToStage", initEvent);
if ((((currentLevelName == "Anim_Intro")) || ((currentLevelName == "Resto01")))){
MovieClip(root).canMeat = true;
MovieClip(root).totalKills = 0;
} else {
MovieClip(root).canMeat = false;
};
if (songToPlay != "kaka"){
MovieClip(root).jukebox.playSong(songToPlay);
songToPlay = "kaka";
};
}
private function loadLevel(_arg1:String, _arg2:Boolean=false):void{
var _local3:Class;
isPlay = true;
if (_arg1 == "Boss02"){
b_qual.visible = false;
b_vol.visible = false;
b_menu.visible = false;
};
if (MovieClip(parent) == null){
songToPlay = _arg1;
} else {
MovieClip(root).jukebox.playSong(_arg1);
};
currentLevelName = _arg1;
if (currentLevel){
currentLevel.cleanUp();
container.removeChild(currentLevel);
};
runtimeList = new Array();
_local3 = Class(getDefinitionByName(_arg1));
currentLevel = new (_local3);
currentLevel.init(this, player);
container.addChild(currentLevel);
if (!_arg2){
boxMask.nextFrame();
};
MovieClip(mc_sky).gotoAndStop(_arg1);
if (((!(sawKeys)) && ((currentLevelName == "Resto01")))){
MovieClip(allKeys).visible = true;
sawKeys = true;
} else {
MovieClip(allKeys).visible = false;
};
}
public function fuckOff():void{
MovieClip(root).jukebox.playSong("ShutUp");
player.stopChecking();
runtime();
removeEventListener("enterFrame", runtime);
currentLevel.cleanUp();
container.removeChild(currentLevel);
runtimeList = new Array();
player = null;
MovieClip(parent.parent).start_menu();
}
private function clearButtons():void{
b_qual.removeEventListener("click", clickQual);
b_vol.removeEventListener("click", clickVol);
b_menu.removeEventListener("click", clickMenu);
}
public function particle(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:String, _arg5:int):void{
while (_arg5) {
_arg5--;
currentLevel.newParticle(_arg1, _arg2, _arg3, _arg4);
};
}
public function forceExit():void{
MovieClip(fadeOut).play();
clearButtons();
}
public function newBullet(_arg1:Point, _arg2:Number):void{
currentLevel.newBullet(_arg1, _arg2);
}
public function newBulletGunner(_arg1:Number, _arg2:Number, _arg3:Number):void{
currentLevel.newBulletGunner(_arg1, _arg2, _arg3);
}
public function doRuntime(_arg1:Object, _arg2:Boolean):void{
if (_arg2){
runtimeList.push(_arg1);
} else {
runtimeList.splice(runtimeList.indexOf(_arg1), 1);
};
}
public function playEndAnim():void{
clearButtons();
currentLevel.keepRuntime = false;
player.stopChecking();
removeEventListener("enterFrame", runtime);
player.clearInfo();
runtimeList = new Array();
player = null;
loadAnim("Anim_End");
MovieClip(interface_hp).visible = false;
}
private function initButtons():void{
b_qual.visible = true;
b_vol.visible = true;
b_menu.visible = true;
b_qual.addEventListener("click", clickQual, false, 0, true);
b_vol.addEventListener("click", clickVol, false, 0, true);
b_menu.addEventListener("click", clickMenu, false, 0, true);
}
public function changeHP(_arg1:int):void{
MovieClip(interface_hp).gotoAndStop(((_arg1 * 2) + 1));
}
}
}//package gameplay
Section 48
//HealthPack (gameplay.HealthPack)
package gameplay {
import flash.display.*;
import tools.*;
public class HealthPack extends MovieClip {
public var mc_hit:MovieClip;
public function HealthPack(){
MovieClip(parent).doRuntime(this, true);
}
public function runtime(_arg1:Object):void{
var _local2:SoundPlay;
if (_arg1.hit.hitTestObject(MovieClip(mc_hit))){
_arg1.heal();
visible = false;
_local2 = new SoundPlay(MovieClip(root).saveData["son"], "Joint", 0, 0);
MovieClip(parent).doRuntime(this, false);
};
}
}
}//package gameplay
Section 49
//Level (gameplay.Level)
package gameplay {
import flash.utils.*;
import flash.display.*;
import flash.geom.*;
import tools.*;
import enemies.*;
public class Level extends MovieClip {
public var r2:MovieClip;
public var r3:MovieClip;
public var arcadePlayed:int;// = 0
public var b1:MeatMasher;
public var b2:MeatMasher;
private var limits:MovieClip;
private var enemies:Array;
public var levelName:String;
public var t0:RailTombe;
public var t2:RailTombe;
public var t1:RailTombe;
public var bg:Boss01_bg;
public var mc_sfx:MovieClip;
public var asset_limits:MovieClip;
public var asset_start:MovieClip;
public var mc_ele1:Elevator;
public var mc_ele2:Elevator;
private var lastY:Number;
public var mc_enemies:MovieClip;
private var runtimeList:Array;
public var ele_limit1:MovieClip;
public var ele_limit2:MovieClip;
private var lastX:Number;
public var keepRuntime:Boolean;// = true
public var er:MovieClip;
public var el:MovieClip;
public var tabarnac:MovieClip;
public var deathObject;
public var ele_limit:MovieClip;
protected var spark:String;// = "GunSpark_Resto"
public var player;
public var mc_eleMarde:Elevator;
public var mc_hero:MovieClip;
public var mc_eleKak:Elevator;
public var mytrack:MovieClip;
public var k4:Kid3;
public var k2:Kid1;
public var k3:Kid2;
private var deathObjectSpeed:Number;// = 0
public var k1:Kid1;
public var camOffset:Number;// = 0
public var l1:MovieClip;
public var l3:MovieClip;
public var l2:MovieClip;
public var mc_enemies0:MovieClip;
public var mc_enemies1:MovieClip;
public var mc_enemies2:MovieClip;
public var mc_enemies3:MovieClip;
public var mc_enemies4:MovieClip;
public var mc_enemies5:MovieClip;
public var mc_track:Train02_track1;
public var m1:Masher;
public var m2:Masher;
public var m3:Masher;
private var timeOff:int;// = 0
protected var smoke:String;// = "DashSmoke_Resto"
public var kidsKilled:int;// = 0
private var ground:MovieClip;
public var Boss:Boss;
public var mc_scroll:MovieClip;
public var mc_car:Car;
public var asset_ground:MovieClip;
public var limit:MovieClip;
private var cam:Point;
public var calice3:MovieClip;
public var a1:Arcade_BibleBot;
public var a2:Arcade_Chainsaw;
private var game:Game;
public var goAway:Boolean;// = false
public var r1:MovieClip;
public function Level(){
deathObjectSpeed = 0;
enemies = new Array();
runtimeList = new Array();
camOffset = 0;
smoke = "DashSmoke_Resto";
spark = "GunSpark_Resto";
arcadePlayed = 0;
kidsKilled = 0;
keepRuntime = true;
timeOff = 0;
goAway = false;
super();
ground = MovieClip(asset_ground);
limits = MovieClip(asset_limits);
ground.visible = false;
limits.visible = false;
}
public function newParticle(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:String, _arg5:Number=0):void{
var _local6:Class;
var _local7:*;
if (_arg4 == "GunSpark"){
_arg4 = spark;
};
_local6 = Class(getDefinitionByName(_arg4));
_local7 = new (_local6);
addChildAt(_local7, getChildIndex(MovieClip(mc_sfx)));
_local7.init(game, ground, _arg1, _arg2, _arg3);
if (_arg5){
_local7.forceSpeed(_arg5);
};
_local7 = null;
}
public function nextLevel(_arg1:String):void{
game.nextLevel(_arg1);
runtimeList = new Array();
}
public function initEnemy(_arg1:Object):void{
enemies.push(_arg1);
}
public function die(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:String, _arg5:Number=0):Object{
var _local6:Class;
_local6 = Class(getDefinitionByName(("Death_" + _arg4)));
deathObject = new (_local6);
addChildAt(deathObject, getChildIndex(MovieClip(mc_hero)));
deathObject.scaleX = _arg1;
deathObject.x = _arg2;
deathObject.y = _arg3;
deathObjectSpeed = _arg5;
return (deathObject);
}
public function setLvL(_arg1:String, _arg2:int):void{
levelName = _arg1;
player.currentLevel = levelName;
if (MovieClip(root).saveData["level"] < _arg2){
MovieClip(root).saveData["level"] = _arg2;
MovieClip(root).saveGame();
};
}
public function killKid():void{
kidsKilled++;
if (kidsKilled == 9){
MovieClip(root).medal_popup.unlockMedal("Vulgar Display of Power");
};
}
public function newBullet(_arg1:Point, _arg2:Number):void{
addChildAt(new BulletHero(game, _arg1.x, _arg1.y, _arg2, enemies, ground), getChildIndex(MovieClip(mc_sfx)));
}
public function doRuntime(_arg1:Object, _arg2:Boolean):void{
if (_arg2){
runtimeList.push(_arg1);
} else {
runtimeList.splice(runtimeList.indexOf(_arg1), 1);
};
}
public function cleanUp():void{
player.clearInfo();
removeChild(player);
player = null;
game = null;
}
public function dashSmoke(_arg1:Object):void{
var _local2:Class;
var _local3:*;
_local2 = Class(getDefinitionByName(smoke));
_local3 = new (_local2);
addChildAt(_local3, getChildIndex(MovieClip(mc_hero)));
_local3.x = _arg1.x;
_local3.y = _arg1.y;
}
public function init(_arg1:Game, _arg2:Player):void{
var _local3:int;
game = _arg1;
player = _arg2;
addChildAt(player, getChildIndex(MovieClip(mc_hero)));
player.init(MovieClip(asset_start), ground);
removeChild(MovieClip(asset_start));
cam = new Point(player.x, player.y);
scrollMap();
_local3 = 0;
while (_local3 < enemies.length) {
enemies[_local3].init(game, player, ground);
_local3++;
};
}
public function meatMedium(_arg1:Number, _arg2:Number):void{
addChildAt(new MeatSplatMed(game, ground, _arg1, _arg2), getChildIndex(MovieClip(mc_sfx)));
}
public function meatBig(_arg1:Number, _arg2:Number):void{
addChildAt(new MeatSplatBig(game, ground, _arg1, _arg2), getChildIndex(MovieClip(mc_sfx)));
}
private function scrollMap():void{
var _local1:Point;
var _local2:Number;
var _local3:Number;
var _local4:int;
var _local5:int;
_local1 = localToGlobal(cam);
_local2 = (375 - _local1.x);
_local3 = (355 - _local1.y);
_local4 = (numChildren - 1);
while (_local4 > getChildIndex(MovieClip(mc_scroll))) {
getChildAt(_local4).x = (getChildAt(_local4).x + _local2);
getChildAt(_local4).y = (getChildAt(_local4).y + _local3);
_local4--;
};
_local5 = 0;
while (_local5 < getChildIndex(MovieClip(mc_scroll))) {
MovieClip(getChildAt(_local5)).scrollMe(_local2, _local3);
_local5++;
};
}
public function playArcade():void{
arcadePlayed++;
if (arcadePlayed == 3){
MovieClip(root).medal_popup.unlockMedal("Dude, it's my Turn");
};
}
public function removeEnemy(_arg1:Object):void{
enemies.splice(enemies.indexOf(_arg1), 1);
}
public function bloodEnemy(_arg1:String, _arg2:Number, _arg3:Number):void{
var _local4:Class;
var _local5:*;
_local4 = Class(getDefinitionByName(_arg1));
_local5 = new (_local4);
addChildAt(_local5, getChildIndex(MovieClip(mc_sfx)));
_local5.x = _arg2;
_local5.y = _arg3;
}
public function newBulletGunner(_arg1:Number, _arg2:Number, _arg3:Number):void{
addChildAt(new BulletGunner(game, _arg1, _arg2, _arg3, player, ground), getChildIndex(MovieClip(mc_sfx)));
}
public function runtime():void{
var _local1:Number;
var _local2:Number;
var _local3:int;
var _local4:int;
if (keepRuntime){
if (goAway){
if (!player.jump){
player.canMove(false);
player.gangle();
};
timeOff++;
if (timeOff == 120){
MovieClip(parent.parent).playEndAnim();
keepRuntime = false;
};
};
if (keepRuntime){
if (player.fell){
_local1 = lastX;
_local2 = lastY;
} else {
_local1 = player.x;
_local2 = player.y;
lastX = _local1;
lastY = _local2;
};
if (_local1 < (limits.x + 375)){
_local1 = (limits.x + 375);
};
if (_local1 > ((limits.x + limits.width) - 375)){
_local1 = ((limits.x + limits.width) - 375);
};
if (_local2 > ((limits.y + limits.height) - 195)){
_local2 = ((limits.y + limits.height) - 195);
};
if (_local2 < (limits.y + 355)){
_local2 = (limits.y + 355);
};
if (!player.dead){
cam.x = (cam.x + ((_local1 + camOffset) - cam.x));
cam.y = (cam.y + ((_local2 + (camOffset / 3)) - cam.y));
scrollMap();
};
_local3 = 0;
while (_local3 < runtimeList.length) {
runtimeList[_local3].runtime(player);
_local3++;
};
_local4 = 0;
while (_local4 < deathObjectSpeed) {
if (!ground.hitTestPoint(deathObject.x, (deathObject.y + 1), true)){
deathObject.y++;
} else {
deathObjectSpeed = 0;
break;
};
_local4++;
};
};
};
}
public function blood(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:*;
_local4 = new Blood_Small();
addChildAt(_local4, getChildIndex(MovieClip(mc_sfx)));
_local4.init(_arg1, _arg2, _arg3);
}
public function meatSmall(_arg1:Number, _arg2:Number):void{
addChildAt(new MeatSplat(game, ground, _arg1, _arg2), getChildIndex(MovieClip(mc_sfx)));
}
}
}//package gameplay
Section 50
//Player (gameplay.Player)
package gameplay {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
public class Player extends MovieClip {
public var train:Object;
private var aimSpeed:Number;// = 1.5
private var dashDirection:Number;// = 0
public var canJump:Boolean;// = true
private var legs:MovieClip;
public var mc_arm:MovieClip;
public var jump:Boolean;
private var fireRate:Number;// = 5
private var facial:String;// = "normal"
public var moving:Boolean;// = true
public var mc_arm2:MovieClip;
private var arm:MovieClip;
public var cadaver:Object;
public var dead:Boolean;// = false
public var fell:Boolean;// = false
private var precision:Number;// = 3
public var crushed:Boolean;// = false
private var dashKeyRight:Boolean;// = false
private var fireTimer:Number;// = 0
private var dashTimer:Number;// = 0
private var dmgTimer:Number;// = 0
private var accel:Number;// = 2.75
public var mc_head:MovieClip;
public var elevator:Boolean;// = false
private var jumpHeight:Number;// = 22
private var active:Boolean;// = true
private var hp:int;// = 3
public var xs:Number;
private var dashKeyLeft:Boolean;// = false
public var mc_gun:MovieClip;
public var ys:Number;
private var character:String;// = "_pico"
public var mc_legs:MovieClip;
public var wtf:Boolean;// = false
private var legAnim:String;
private var maxSpeed:Number;// = 12
private var aim:Point;
private var gun:MovieClip;
private var deadTimer:Number;// = 0
private var arm2:MovieClip;
public var mc_hit:MovieClip;
private var soundDmg:SoundPlay;
private var firing:Boolean;
private var ground:MovieClip;
public var currentLevel:String;
private var dash:Boolean;// = false
public var hit:MovieClip;
public var ready:Boolean;
private var dashSpeed:Number;// = 0
private var head:MovieClip;
private var game:Game;
public function Player(_arg1, _arg2:Boolean=true){
character = "_pico";
accel = 2.75;
active = true;
aim = new Point(0, 0);
aimSpeed = 1.5;
dash = false;
dashDirection = 0;
dashKeyLeft = false;
dashKeyRight = false;
dashSpeed = 0;
dashTimer = 0;
deadTimer = 0;
dmgTimer = 0;
facial = "normal";
fireRate = 5;
fireTimer = 0;
hp = 3;
jumpHeight = 22;
maxSpeed = 12;
precision = 3;
canJump = true;
crushed = false;
dead = false;
elevator = false;
fell = false;
moving = true;
wtf = false;
super();
addEventListener("addedToStage", init_event, false, 0, true);
game = _arg1;
arm = MovieClip(mc_arm);
arm2 = MovieClip(mc_arm2);
gun = MovieClip(mc_gun);
head = MovieClip(mc_head);
legs = MovieClip(mc_legs);
hit = MovieClip(mc_hit);
ready = _arg2;
}
public function stopChecking():void{
currentLevel = "LOLFUCKYOU";
if (firing){
stage.removeEventListener("mouseUp", fire_up);
} else {
stage.removeEventListener("mouseDown", fire_down);
};
}
private function test_floor(_arg1:MovieClip):void{
if (((!(crushed)) && (!(elevator)))){
while (_arg1.hitTestPoint(x, y, true)) {
jump = false;
ys = 0;
y--;
};
if (!_arg1.hitTestPoint(x, (y + 10), true)){
dash = false;
jump = true;
} else {
while (!(_arg1.hitTestPoint(x, y, true))) {
jump = false;
ys = 0;
y++;
};
};
};
}
private function test_ceiling(_arg1:MovieClip):void{
if (((!(crushed)) && (!(elevator)))){
while (((((_arg1.hitTestPoint(x, (y - 100), true)) || (_arg1.hitTestPoint((x + 10), (y - 100), true)))) || (_arg1.hitTestPoint((x - 10), (y - 100), true)))) {
y++;
ys = 0;
};
};
}
public function clearInfo():void{
ground = null;
}
private function init_event(_arg1:Event):void{
removeEventListener("addedToStage", init_event);
stage.addEventListener("mouseDown", fire_down, false, 0, true);
aim.x = stage.mouseX;
aim.y = stage.mouseY;
}
public function gangle():void{
legs.gotoAndStop("stand");
}
public function takeDmg(_arg1:String, _arg2:int=1):void{
if (((active) && ((((dmgTimer <= 0)) || ((_arg2 > 1)))))){
hp = (hp - _arg2);
game.changeHP(hp);
facial = "hurt";
if ((((hp <= 0)) && (!(dead)))){
if (_arg1 == "Train"){
} else {
cadaver = MovieClip(parent).die(scaleX, x, y, _arg1, 60);
visible = false;
};
if (_arg1 == "Crush"){
crushed = true;
};
dead = true;
active = false;
if (_arg1 != "Train"){
soundDmg = new SoundPlay(MovieClip(root).saveData["son"], ("Die_" + _arg1));
};
if (_arg1 == "Regular"){
soundDmg = new SoundPlay(MovieClip(root).saveData["son"], "Blood");
};
if (_arg1 == "Fall"){
fell = true;
deadTimer = 60;
};
} else {
visible = false;
dmgTimer = 60;
if (_arg1 == "Regular"){
soundDmg = new SoundPlay(MovieClip(root).saveData["son"], "Blood");
} else {
if (_arg1 != "Train"){
soundDmg = new SoundPlay(MovieClip(root).saveData["son"], ("Dmg_" + _arg1));
};
};
};
};
}
public function init(_arg1:Object, _arg2:MovieClip):void{
gotoAndStop(1);
x = _arg1.x;
y = _arg1.y;
rotation = 0;
visible = true;
active = true;
cadaver = null;
canJump = true;
crushed = false;
dash = false;
dashDirection = 0;
dashKeyLeft = false;
dashKeyRight = false;
dashSpeed = 0;
dashTimer = 0;
dead = false;
deadTimer = 0;
dmgTimer = 0;
elevator = false;
facial = "normal";
fell = false;
firing = false;
ground = _arg2;
hp = 3;
jump = false;
legAnim = "stand";
moving = true;
train = null;
xs = 0;
ys = 0;
game.changeHP(hp);
head.gotoAndStop(1);
}
private function fire_down(_arg1:MouseEvent):void{
stage.removeEventListener("mouseDown", fire_down);
stage.addEventListener("mouseUp", fire_up, false, 0, true);
firing = true;
}
private function fire_up(_arg1:MouseEvent):void{
stage.removeEventListener("mouseUp", fire_up);
stage.addEventListener("mouseDown", fire_down, false, 0, true);
firing = false;
}
public function forceMove(_arg1:Number):void{
if (((((((((!(crushed)) && (!(dead)))) && (moving))) && (!(jump)))) && (!(ground.hitTestPoint((x + (_arg1 * 2)), (y - 15), true))))){
x = (x + _arg1);
};
}
public function doFace(_arg1:Boolean=false):void{
if (_arg1){
facial = "normal";
} else {
if (((!((facial == "hurt"))) || ((((facial == "hurt")) && ((dmgTimer <= 0)))))){
facial = "scared";
};
};
}
public function touchGround(_arg1:Number):void{
legs.gotoAndStop("stand");
ys = 0;
jump = false;
y = _arg1;
}
public function canMove(_arg1:Boolean):void{
active = _arg1;
}
public function runtime():void{
var _local1:SoundPlay;
var _local2:SoundPlay;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Point;
var _local7:Point;
var _local8:SoundPlay;
if (!dash){
dashTimer--;
if (dashTimer == 0){
dashDirection = 0;
};
if (((((moving) && (active))) && (Master.key.downCont("left")))){
xs = (xs - (accel - (Number(jump) * 1.75)));
if (xs < -(maxSpeed)){
xs = (xs + (-(maxSpeed) - xs));
};
legAnim = "run";
} else {
if (((((moving) && (active))) && (Master.key.downCont("right")))){
xs = (xs + (accel - (Number(jump) * 1.75)));
if (xs > maxSpeed){
xs = (xs + (maxSpeed - xs));
};
legAnim = "run";
} else {
if (moving){
xs = (xs / (1.75 - (Number(jump) * 0.7)));
if (Math.abs(xs) < 0.1){
xs = 0;
};
legAnim = "stand";
};
};
};
} else {
MovieClip(parent).dashSmoke(this);
xs = dashSpeed;
dashSpeed = (dashSpeed - (dashDirection * 4));
legAnim = "dash";
if (Math.abs(dashSpeed) < 1.5){
xs = 0;
dash = false;
dashDirection = 0;
};
};
if (jump){
dash = false;
ys = (ys + 1.5);
} else {
if (((((((((((((canJump) && (moving))) && (active))) && (Master.key.downCont("up")))) && (!(ground.hitTestPoint(x, (y - 100), true))))) && (!(ground.hitTestPoint((x + 10), (y - 100), true))))) && (!(ground.hitTestPoint((x - 10), (y - 100), true))))){
dash = false;
ys = -(jumpHeight);
jump = true;
};
if (((((((moving) && (active))) && (!(dash)))) && (!(jump)))){
if (((Master.key.downCont("left")) && (!(dashKeyLeft)))){
if (dashDirection == -1){
dash = true;
dashSpeed = (maxSpeed * -3);
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "Dash");
} else {
dashTimer = 10;
};
dashKeyLeft = true;
};
if (((Master.key.downCont("right")) && (!(dashKeyRight)))){
if (dashDirection == 1){
dash = true;
dashSpeed = (maxSpeed * 3);
_local2 = new SoundPlay(MovieClip(root).saveData["son"], "Dash");
} else {
dashTimer = 10;
};
dashKeyRight = true;
};
if (!Master.key.downCont("left")){
dashKeyLeft = false;
};
if (!Master.key.downCont("right")){
dashKeyRight = false;
};
};
};
if (active){
aim.x = (aim.x + ((stage.mouseX - aim.x) / aimSpeed));
aim.y = (aim.y + ((stage.mouseY - aim.y) / aimSpeed));
if (((((Calculator.getAngle(x, y, aim.x, aim.y) - rotation) < -90)) || (((Calculator.getAngle(x, y, aim.x, aim.y) - rotation) > 90)))){
scaleX = 1;
} else {
scaleX = -1;
};
_local3 = (Math.sin((rotation * (Math.PI / 180))) * 29.7);
_local4 = (Math.cos((rotation * (Math.PI / 180))) * 29.7);
gun.rotation = ((scaleX * Calculator.getAngle((x + _local3), (y - _local4), aim.x, aim.y)) - (rotation * scaleX));
if (scaleX == 1){
gun.rotation = (gun.rotation + 180);
};
_local5 = (Math.abs((gun.rotation + (rotation * scaleX))) / 10);
if (aim.y > (y - _local4)){
gun.x = (_local5 * 2);
gun.y = (-29.7 + _local5);
} else {
gun.x = _local5;
gun.y = (-29.7 - _local5);
};
if (ready){
_local6 = this.globalToLocal(gun.localToGlobal(gun.arm));
_local7 = this.globalToLocal(gun.localToGlobal(gun.hand));
arm.rotation = 0;
arm.height = ((_local6.y - arm.y) + 8);
arm.rotation = (Calculator.getAngle(_local6.x, _local6.y, arm.x, arm.y) + 90);
arm2.rotation = (Calculator.getAngle(_local7.x, _local7.y, arm2.x, arm2.y) + 90);
head.rotation = (gun.rotation / 2);
};
};
if (!crushed){
x = (x + test_walls(xs, ground));
y = (y + ys);
};
if (legAnim == "run"){
if ((((((xs < 0)) && ((scaleX == 1)))) || ((((xs > 0)) && ((scaleX == -1)))))){
legAnim = "forward";
} else {
legAnim = "backward";
};
};
if (legAnim == "dash"){
if ((((((xs < 0)) && ((scaleX == 1)))) || ((((xs > 0)) && ((scaleX == -1)))))){
legAnim = "dash_forward";
} else {
legAnim = "jump";
};
};
if (((active) && (!((legs.currentLabel == legAnim))))){
legs.gotoAndStop(legAnim);
};
if (!crushed){
test_floor(ground);
if (jump){
test_ceiling(ground);
};
};
if (active){
fireTimer++;
if (((firing) && ((fireTimer >= fireRate)))){
if (((((((!(dead)) && (active))) && (!(ground.hitTestPoint(parent.globalToLocal(gun.localToGlobal(gun.tip)).x, parent.globalToLocal(gun.localToGlobal(gun.tip)).y, true))))) && (((moving) || (((!(moving)) && ((gun.rotation > -10)))))))){
_local8 = new SoundPlay(MovieClip(root).saveData["son"], "Gun");
game.particle(parent.globalToLocal(gun.localToGlobal(gun.douille)).x, parent.globalToLocal(gun.localToGlobal(gun.douille)).y, ((gun.rotation + 40) * scaleX), "Douille", 1);
MovieClip(gun.mc_gun).gotoAndPlay(2);
MovieClip(gun.mc_fire).gotoAndPlay(((Math.floor((Math.random() * 3)) * 4) + 2));
fireTimer = 0;
game.newBullet(parent.globalToLocal(gun.localToGlobal(gun.tip)), ((((((scaleX == 1)) ? 0 : 180 + (scaleX * -(gun.rotation))) - 90) + ((Math.random() * precision) - (Math.random() * precision))) - rotation));
};
};
};
if (dead){
deadTimer++;
if (deadTimer == 120){
game.nextLevel();
};
};
dmgTimer--;
if ((((((((((((dmgTimer == 10)) || ((dmgTimer == 20)))) || ((dmgTimer == 30)))) || ((dmgTimer == 40)))) || ((dmgTimer == 50)))) || ((dmgTimer == 60)))){
visible = !(visible);
} else {
if ((((((dmgTimer <= 0)) && (!(dead)))) && (!((facial == "scared"))))){
visible = true;
facial = "normal";
};
};
head.gotoAndStop(facial);
if (wtf){
head.gotoAndStop("wtf");
};
}
public function heal():void{
hp++;
if (hp == 4){
hp = 3;
};
game.changeHP(hp);
}
private function test_walls(_arg1:Number, _arg2:MovieClip):Number{
var _local3:Number;
if (((!(crushed)) && (!(elevator)))){
_local3 = _arg1;
if (!dash){
while (((((_arg2.hitTestPoint(((x + 15) + _local3), (y - 15), true)) || (_arg2.hitTestPoint(((x + 15) + _local3), ((y - 100) + 15), true)))) || (_arg2.hitTestPoint(((x + 15) + _local3), (y - (100 / 2)), true)))) {
_local3--;
xs = 0;
};
while (((((_arg2.hitTestPoint(((x - 15) + _local3), (y - 15), true)) || (_arg2.hitTestPoint(((x - 15) + _local3), ((y - 100) + 15), true)))) || (_arg2.hitTestPoint(((x - 15) + _local3), (y - (100 / 2)), true)))) {
_local3++;
xs = 0;
};
} else {
while (((((_arg2.hitTestPoint(((x + 15) + (_local3 / 2)), (y - 15), true)) || (_arg2.hitTestPoint(((x + 15) + (_local3 / 2)), ((y - 100) + 15), true)))) || (_arg2.hitTestPoint(((x + 15) + (_local3 / 2)), (y - (100 / 2)), true)))) {
_local3--;
xs = 0;
};
while (((((_arg2.hitTestPoint(((x - 15) + (_local3 / 2)), (y - 15), true)) || (_arg2.hitTestPoint(((x - 15) + (_local3 / 2)), ((y - 100) + 15), true)))) || (_arg2.hitTestPoint(((x - 15) + (_local3 / 2)), (y - (100 / 2)), true)))) {
_local3++;
xs = 0;
};
while (((((_arg2.hitTestPoint(((x + 15) + _local3), (y - 15), true)) || (_arg2.hitTestPoint(((x + 15) + _local3), ((y - 100) + 15), true)))) || (_arg2.hitTestPoint(((x + 15) + _local3), (y - (100 / 2)), true)))) {
_local3--;
xs = 0;
};
while (((((_arg2.hitTestPoint(((x - 15) + _local3), (y - 15), true)) || (_arg2.hitTestPoint(((x - 15) + _local3), ((y - 100) + 15), true)))) || (_arg2.hitTestPoint(((x - 15) + _local3), (y - (100 / 2)), true)))) {
_local3++;
xs = 0;
};
};
if (jump){
legAnim = "jump";
} else {
if (Math.abs(_local3) < 1){
_local3 = 0;
dash = false;
dashSpeed = 0;
legAnim = "stand";
};
};
return (_local3);
//unresolved jump
};
return (0);
}
}
}//package gameplay
Section 51
//anim_332 (PicoPublic_fla.anim_332)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class anim_332 extends MovieClip {
public function anim_332(){
addFrameScript(137, frame138, 723, frame724);
}
function frame724(){
MovieClip(parent).finishAnim();
}
function frame138(){
MovieClip(root).jukebox.playSong("Resto01");
}
}
}//package PicoPublic_fla
Section 52
//anim_attack_70 (PicoPublic_fla.anim_attack_70)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class anim_attack_70 extends MovieClip {
public var mc_hit2:MovieClip;
public var mc_hit:MovieClip;
public function anim_attack_70(){
addFrameScript(8, frame9, 9, frame10, 14, frame15, 15, frame16, 21, frame22);
}
function frame10(){
MovieClip(parent.parent).testDmg(MovieClip(mc_hit));
}
function frame15(){
MovieClip(parent.parent).makeSound();
}
function frame22(){
MovieClip(parent).gotoAndStop(1);
}
function frame9(){
MovieClip(parent.parent).makeSound();
}
function frame16(){
MovieClip(parent.parent).testDmg(MovieClip(mc_hit2));
}
}
}//package PicoPublic_fla
Section 53
//anim_attack2_204 (PicoPublic_fla.anim_attack2_204)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class anim_attack2_204 extends MovieClip {
public var ht2:MovieClip;
public var ht3:MovieClip;
public var ht1:MovieClip;
public function anim_attack2_204(){
addFrameScript(21, frame22, 22, frame23, 23, frame24);
}
function frame22(){
MovieClip(parent.parent).testDmg(MovieClip(ht1), true);
}
function frame23(){
MovieClip(parent.parent).testDmg(MovieClip(ht2), true);
}
function frame24(){
MovieClip(parent.parent).testDmg(MovieClip(ht3));
MovieClip(parent.parent).soundSmash();
}
}
}//package PicoPublic_fla
Section 54
//anim_attack2_94 (PicoPublic_fla.anim_attack2_94)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class anim_attack2_94 extends MovieClip {
public function anim_attack2_94(){
addFrameScript(32, frame33, 64, frame65);
}
function frame65(){
MovieClip(parent.parent).finishAttack();
}
function frame33(){
MovieClip(parent.parent).son2();
}
}
}//package PicoPublic_fla
Section 55
//anim_die_196 (PicoPublic_fla.anim_die_196)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class anim_die_196 extends MovieClip {
public function anim_die_196(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package PicoPublic_fla
Section 56
//anim_melee_86 (PicoPublic_fla.anim_melee_86)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class anim_melee_86 extends MovieClip {
public var mc_hit:MovieClip;
public function anim_melee_86(){
addFrameScript(19, frame20, 20, frame21, 21, frame22);
}
function frame20(){
MovieClip(parent.parent).testDmg(MovieClip(mc_hit));
}
function frame22(){
MovieClip(parent.parent).testDmg(MovieClip(mc_hit), true);
}
function frame21(){
MovieClip(parent.parent).testDmg(MovieClip(mc_hit));
}
}
}//package PicoPublic_fla
Section 57
//animation_end_287 (PicoPublic_fla.animation_end_287)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class animation_end_287 extends MovieClip {
public function animation_end_287(){
addFrameScript(1665, frame1666, 1707, frame1708);
}
function frame1666(){
MovieClip(parent).play();
}
function frame1708(){
stop();
MovieClip(parent.parent.parent).endFinish();
}
}
}//package PicoPublic_fla
Section 58
//arrowInd_276 (PicoPublic_fla.arrowInd_276)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class arrowInd_276 extends MovieClip {
public function arrowInd_276(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PicoPublic_fla
Section 59
//Baril_156 (PicoPublic_fla.Baril_156)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Baril_156 extends MovieClip {
public function Baril_156(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PicoPublic_fla
Section 60
//Baril2_154 (PicoPublic_fla.Baril2_154)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Baril2_154 extends MovieClip {
public function Baril2_154(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PicoPublic_fla
Section 61
//bgSplt_257 (PicoPublic_fla.bgSplt_257)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class bgSplt_257 extends MovieClip {
public function bgSplt_257(){
addFrameScript(0, frame1);
}
function frame1(){
scaleX = (0.95 + (Math.random() * 0.1));
scaleY = (0.95 + (Math.random() * 0.1));
if (Math.random() > 0.5){
scaleX = (scaleX * -1);
};
if (Math.random() > 0.5){
scaleY = (scaleY * -1);
};
rotation = (-5 + (Math.random() * 10));
gotoAndStop(Math.ceil((Math.random() * 4)));
}
}
}//package PicoPublic_fla
Section 62
//BiblebotScreen_484 (PicoPublic_fla.BiblebotScreen_484)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class BiblebotScreen_484 extends MovieClip {
public function BiblebotScreen_484(){
addFrameScript(0, frame1, 1, frame2, 49, frame50);
}
function frame1(){
stop();
}
function frame2(){
if (!MovieClip(parent).played){
MovieClip(parent.parent).playArcade();
stop();
MovieClip(parent).lost = true;
};
}
function frame50(){
if (MovieClip(parent).played){
gotoAndStop(1);
} else {
MovieClip(parent.parent).playArcade();
stop();
MovieClip(parent).lost = true;
};
}
}
}//package PicoPublic_fla
Section 63
//Blocksample_424 (PicoPublic_fla.Blocksample_424)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Blocksample_424 extends MovieClip {
public function Blocksample_424(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PicoPublic_fla
Section 64
//blooddrop3_242 (PicoPublic_fla.blooddrop3_242)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class blooddrop3_242 extends MovieClip {
public function blooddrop3_242(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
scaleX = (0.5 + (Math.random() * 0.1));
scaleY = (0.5 + (Math.random() * 0.1));
rotation = (rotation + ((Math.random() * 20) - (Math.random() * 20)));
}
}
}//package PicoPublic_fla
Section 65
//bloodsplatz_241 (PicoPublic_fla.bloodsplatz_241)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class bloodsplatz_241 extends MovieClip {
public function bloodsplatz_241(){
addFrameScript(0, frame1, 20, frame21);
}
function frame1(){
scaleX = (scaleX * (0.8 + (Math.random() * 0.2)));
scaleY = (scaleY * (0.8 + (Math.random() * 0.2)));
if (Math.random() > 0.5){
scaleX = (scaleX * -1);
};
rotation = (rotation + ((Math.random() * 20) - (Math.random() * 20)));
}
function frame21(){
stop();
}
}
}//package PicoPublic_fla
Section 66
//Bossdoor_299 (PicoPublic_fla.Bossdoor_299)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Bossdoor_299 extends MovieClip {
public function Bossdoor_299(){
addFrameScript(40, frame41, 70, frame71, 71, frame72);
}
function frame72(){
prevFrame();
}
function frame71(){
stop();
}
function frame41(){
stop();
}
}
}//package PicoPublic_fla
Section 67
//bossHT_313 (PicoPublic_fla.bossHT_313)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class bossHT_313 extends MovieClip {
public function bossHT_313(){
addFrameScript(0, frame1);
}
function frame1(){
MovieClip(parent).hit2 = this;
}
}
}//package PicoPublic_fla
Section 68
//box_363 (PicoPublic_fla.box_363)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class box_363 extends MovieClip {
public function box_363(){
addFrameScript(0, frame1, 30, frame31);
}
function frame1(){
gotoAndPlay((Math.ceil((Math.random() * 15)) + 5));
if (Math.random() > 0.5){
scaleX = (scaleX * -1);
};
}
function frame31(){
stop();
}
}
}//package PicoPublic_fla
Section 69
//Bras_503 (PicoPublic_fla.Bras_503)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Bras_503 extends MovieClip {
public function Bras_503(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 70
//btn_mask_369 (PicoPublic_fla.btn_mask_369)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class btn_mask_369 extends MovieClip {
public function btn_mask_369(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package PicoPublic_fla
Section 71
//btn_skip_355 (PicoPublic_fla.btn_skip_355)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class btn_skip_355 extends MovieClip {
public function btn_skip_355(){
addFrameScript(89, frame90);
}
function frame90(){
stop();
}
}
}//package PicoPublic_fla
Section 72
//carSprites_162 (PicoPublic_fla.carSprites_162)
package PicoPublic_fla {
import flash.display.*;
public dynamic class carSprites_162 extends MovieClip {
public var mc_w1:MovieClip;
public var mc_w2:MovieClip;
}
}//package PicoPublic_fla
Section 73
//Chainsawscreen_486 (PicoPublic_fla.Chainsawscreen_486)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Chainsawscreen_486 extends MovieClip {
public function Chainsawscreen_486(){
addFrameScript(0, frame1, 1, frame2, 49, frame50);
}
function frame1(){
stop();
}
function frame2(){
if (!MovieClip(parent).played){
MovieClip(parent.parent).playArcade();
stop();
MovieClip(parent).lost = true;
};
}
function frame50(){
if (MovieClip(parent).played){
gotoAndStop(1);
} else {
MovieClip(parent.parent).playArcade();
stop();
MovieClip(parent).lost = true;
};
}
}
}//package PicoPublic_fla
Section 74
//Chickendogchomp_106 (PicoPublic_fla.Chickendogchomp_106)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Chickendogchomp_106 extends MovieClip {
public var mc_hit:MovieClip;
public function Chickendogchomp_106(){
addFrameScript(1, frame2, 6, frame7, 11, frame12);
}
function frame12(){
MovieClip(parent).gotoAndStop(1);
}
function frame7(){
MovieClip(parent.parent).testDmg(MovieClip(mc_hit));
}
function frame2(){
MovieClip(parent.parent).playSound();
}
}
}//package PicoPublic_fla
Section 75
//Deadchicken_427 (PicoPublic_fla.Deadchicken_427)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Deadchicken_427 extends MovieClip {
public function Deadchicken_427(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PicoPublic_fla
Section 76
//die_407 (PicoPublic_fla.die_407)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class die_407 extends MovieClip {
public function die_407(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package PicoPublic_fla
Section 77
//eleLimit_1_218 (PicoPublic_fla.eleLimit_1_218)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class eleLimit_1_218 extends MovieClip {
public function eleLimit_1_218(){
addFrameScript(0, frame1);
}
public function runtime(_arg1:Object):void{
if (MovieClip(parent).mc_ele1.y > y){
MovieClip(parent).mc_ele1.stopAt(this, _arg1);
MovieClip(parent).doRuntime(this, false);
};
}
function frame1(){
MovieClip(parent).doRuntime(this, true);
}
}
}//package PicoPublic_fla
Section 78
//eleLimit_2_231 (PicoPublic_fla.eleLimit_2_231)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class eleLimit_2_231 extends MovieClip {
public function eleLimit_2_231(){
addFrameScript(0, frame1);
}
public function runtime(_arg1:Object):void{
if (MovieClip(parent).mc_ele2.y > y){
MovieClip(parent).mc_ele2.stopAt(this, _arg1);
MovieClip(parent).doRuntime(this, false);
};
}
function frame1(){
MovieClip(parent).doRuntime(this, true);
}
}
}//package PicoPublic_fla
Section 79
//eleLimit_3_116 (PicoPublic_fla.eleLimit_3_116)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class eleLimit_3_116 extends MovieClip {
public function eleLimit_3_116(){
addFrameScript(0, frame1);
}
public function runtime(_arg1:Object):void{
if (MovieClip(parent).mc_eleMarde.y > y){
MovieClip(parent).mc_eleMarde.stopAt(this, _arg1);
MovieClip(parent).doRuntime(this, false);
};
}
function frame1(){
MovieClip(parent).doRuntime(this, true);
}
}
}//package PicoPublic_fla
Section 80
//eleLimit_4_115 (PicoPublic_fla.eleLimit_4_115)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class eleLimit_4_115 extends MovieClip {
public function eleLimit_4_115(){
addFrameScript(0, frame1);
}
public function runtime(_arg1:Object):void{
if (MovieClip(parent).mc_eleKak.y > y){
MovieClip(parent).mc_eleKak.stopAt(this, _arg1);
MovieClip(parent).doRuntime(this, false);
};
}
function frame1(){
MovieClip(parent).doRuntime(this, true);
}
}
}//package PicoPublic_fla
Section 81
//Engine1_125 (PicoPublic_fla.Engine1_125)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Engine1_125 extends MovieClip {
public var mc2:MovieClip;
public function Engine1_125(){
addFrameScript(0, frame1);
}
function frame1(){
MovieClip(mc2).gotoAndPlay(5);
}
}
}//package PicoPublic_fla
Section 82
//eyeHit_307 (PicoPublic_fla.eyeHit_307)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class eyeHit_307 extends MovieClip {
public function eyeHit_307(){
addFrameScript(0, frame1, 143, frame144, 161, frame162);
}
function frame144(){
gotoAndStop("hidden");
}
function frame162(){
stop();
}
function frame1(){
stop();
}
}
}//package PicoPublic_fla
Section 83
//eyeSolHT_311 (PicoPublic_fla.eyeSolHT_311)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class eyeSolHT_311 extends MovieClip {
public function eyeSolHT_311(){
addFrameScript(0, frame1);
}
function frame1(){
MovieClip(parent.parent).setHitEye(this);
}
}
}//package PicoPublic_fla
Section 84
//Factory02_ground_215 (PicoPublic_fla.Factory02_ground_215)
package PicoPublic_fla {
import flash.display.*;
public dynamic class Factory02_ground_215 extends MovieClip {
public var hideFactory2:MovieClip;
}
}//package PicoPublic_fla
Section 85
//Factory03_ground_223 (PicoPublic_fla.Factory03_ground_223)
package PicoPublic_fla {
import flash.display.*;
public dynamic class Factory03_ground_223 extends MovieClip {
public var hideFactory3:MovieClip;
}
}//package PicoPublic_fla
Section 86
//Factory04_ground_46 (PicoPublic_fla.Factory04_ground_46)
package PicoPublic_fla {
import flash.display.*;
public dynamic class Factory04_ground_46 extends MovieClip {
public var hideFactory4_2:MovieClip;
public var hideFactory4_1:MovieClip;
}
}//package PicoPublic_fla
Section 87
//fadeIn_256 (PicoPublic_fla.fadeIn_256)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class fadeIn_256 extends MovieClip {
public function fadeIn_256(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package PicoPublic_fla
Section 88
//fadeOutGame_373 (PicoPublic_fla.fadeOutGame_373)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class fadeOutGame_373 extends MovieClip {
public function fadeOutGame_373(){
addFrameScript(0, frame1, 24, frame25);
}
function frame1(){
stop();
}
function frame25(){
stop();
MovieClip(parent).fuckOff();
}
}
}//package PicoPublic_fla
Section 89
//fadeOutMenu_254 (PicoPublic_fla.fadeOutMenu_254)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class fadeOutMenu_254 extends MovieClip {
public function fadeOutMenu_254(){
addFrameScript(0, frame1, 24, frame25);
}
function frame1(){
stop();
}
function frame25(){
stop();
MovieClip(parent.parent.parent).start_game(MovieClip(parent).nextUp);
}
}
}//package PicoPublic_fla
Section 90
//gun_387 (PicoPublic_fla.gun_387)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class gun_387 extends MovieClip {
public var mc_gun:MovieClip;
public var douille:Point;
public var mc_fire:MovieClip;
public var arm:Point;
public var hand:Point;
public var tip:Point;
public function gun_387(){
addFrameScript(0, frame1);
}
function frame1(){
arm = new Point(26, 0);
douille = new Point(0, -12);
hand = new Point(-29, 6.7);
tip = new Point(-54.9, -10);
}
}
}//package PicoPublic_fla
Section 91
//gun_anim_388 (PicoPublic_fla.gun_anim_388)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class gun_anim_388 extends MovieClip {
public function gun_anim_388(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PicoPublic_fla
Section 92
//gunFire_391 (PicoPublic_fla.gunFire_391)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class gunFire_391 extends MovieClip {
public function gunFire_391(){
addFrameScript(0, frame1, 4, frame5, 8, frame9);
}
function frame1(){
stop();
}
function frame5(){
gotoAndStop(1);
}
function frame9(){
gotoAndStop(1);
}
}
}//package PicoPublic_fla
Section 93
//head_191 (PicoPublic_fla.head_191)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class head_191 extends MovieClip {
public function head_191(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
function frame3(){
gotoAndPlay(((MovieClip(parent.parent.parent).headFrame * 2) - 1));
}
function frame6(){
gotoAndPlay(5);
}
function frame7(){
gotoAndPlay(((MovieClip(parent.parent.parent).headFrame * 2) - 1));
}
function frame1(){
gotoAndPlay(((MovieClip(parent.parent.parent).headFrame * 2) - 1));
}
function frame4(){
gotoAndPlay(3);
}
function frame5(){
gotoAndPlay(((MovieClip(parent.parent.parent).headFrame * 2) - 1));
}
function frame8(){
gotoAndPlay(7);
}
function frame2(){
gotoAndPlay(1);
}
}
}//package PicoPublic_fla
Section 94
//hideMe_47 (PicoPublic_fla.hideMe_47)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class hideMe_47 extends MovieClip {
public function hideMe_47(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PicoPublic_fla
Section 95
//hit_200 (PicoPublic_fla.hit_200)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class hit_200 extends MovieClip {
public function hit_200(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package PicoPublic_fla
Section 96
//hit_358 (PicoPublic_fla.hit_358)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class hit_358 extends MovieClip {
public function hit_358(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package PicoPublic_fla
Section 97
//hit_495 (PicoPublic_fla.hit_495)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class hit_495 extends MovieClip {
public function hit_495(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package PicoPublic_fla
Section 98
//hit_56 (PicoPublic_fla.hit_56)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class hit_56 extends MovieClip {
public function hit_56(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package PicoPublic_fla
Section 99
//hit_Train01_541 (PicoPublic_fla.hit_Train01_541)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class hit_Train01_541 extends MovieClip {
public var t0:MovieClip;
public var t1:MovieClip;
public function hit_Train01_541(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package PicoPublic_fla
Section 100
//hit_Train02_143 (PicoPublic_fla.hit_Train02_143)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class hit_Train02_143 extends MovieClip {
public var t0:MovieClip;
public function hit_Train02_143(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package PicoPublic_fla
Section 101
//hit_Train03_181 (PicoPublic_fla.hit_Train03_181)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class hit_Train03_181 extends MovieClip {
public var t0:MovieClip;
public var t2:MovieClip;
public var t1:MovieClip;
public function hit_Train03_181(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package PicoPublic_fla
Section 102
//instructions_372 (PicoPublic_fla.instructions_372)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class instructions_372 extends MovieClip {
public var allKeys:Array;
public var txt1:TextField;
public var txt2:TextField;
public var txt3:TextField;
public var txt4:TextField;
public function instructions_372(){
addFrameScript(29, frame30, 30, frame31, 328, frame329);
}
function frame329(){
stop();
}
function frame30(){
allKeys = new Array();
allKeys[65] = "A";
allKeys[66] = "B";
allKeys[67] = "C";
allKeys[68] = "D";
allKeys[69] = "E";
allKeys[70] = "F";
allKeys[71] = "G";
allKeys[72] = "H";
allKeys[73] = "I";
allKeys[74] = "J";
allKeys[75] = "K";
allKeys[76] = "L";
allKeys[77] = "M";
allKeys[78] = "N";
allKeys[79] = "O";
allKeys[80] = "P";
allKeys[81] = "Q";
allKeys[82] = "R";
allKeys[83] = "S";
allKeys[84] = "T";
allKeys[85] = "U";
allKeys[86] = "V";
allKeys[87] = "W";
allKeys[88] = "X";
allKeys[89] = "Y";
allKeys[90] = "Z";
allKeys[32] = "space";
allKeys[37] = "left";
allKeys[38] = "up";
allKeys[39] = "right";
allKeys[40] = "down";
}
function frame31(){
setKeyNames();
}
public function setKeyNames():void{
txt1.text = allKeys[MovieClip(root).saveData["kLeft"]];
txt2.text = allKeys[MovieClip(root).saveData["kRight"]];
txt3.text = allKeys[MovieClip(root).saveData["kUp"]];
txt4.text = allKeys[MovieClip(root).saveData["kUse"]];
}
}
}//package PicoPublic_fla
Section 103
//invisible_21 (PicoPublic_fla.invisible_21)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class invisible_21 extends MovieClip {
public function invisible_21(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package PicoPublic_fla
Section 104
//keyMsg_275 (PicoPublic_fla.keyMsg_275)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class keyMsg_275 extends MovieClip {
public function keyMsg_275(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PicoPublic_fla
Section 105
//Kid1armfront_512 (PicoPublic_fla.Kid1armfront_512)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Kid1armfront_512 extends MovieClip {
public function Kid1armfront_512(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 106
//Kid1armleftscroto_505 (PicoPublic_fla.Kid1armleftscroto_505)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Kid1armleftscroto_505 extends MovieClip {
public function Kid1armleftscroto_505(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 107
//Kid1armrightfront_511 (PicoPublic_fla.Kid1armrightfront_511)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Kid1armrightfront_511 extends MovieClip {
public function Kid1armrightfront_511(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 108
//Kid1HeadFront_510 (PicoPublic_fla.Kid1HeadFront_510)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Kid1HeadFront_510 extends MovieClip {
public function Kid1HeadFront_510(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 109
//Kid1RunningBody_509 (PicoPublic_fla.Kid1RunningBody_509)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Kid1RunningBody_509 extends MovieClip {
public function Kid1RunningBody_509(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 110
//Kid2armfront_523 (PicoPublic_fla.Kid2armfront_523)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Kid2armfront_523 extends MovieClip {
public function Kid2armfront_523(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 111
//Kid2armleftscroto_516 (PicoPublic_fla.Kid2armleftscroto_516)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Kid2armleftscroto_516 extends MovieClip {
public function Kid2armleftscroto_516(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 112
//Kid2armrightfront_522 (PicoPublic_fla.Kid2armrightfront_522)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Kid2armrightfront_522 extends MovieClip {
public function Kid2armrightfront_522(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 113
//Kid2HeadFront_521 (PicoPublic_fla.Kid2HeadFront_521)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Kid2HeadFront_521 extends MovieClip {
public function Kid2HeadFront_521(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 114
//Kid2RunningBody_520 (PicoPublic_fla.Kid2RunningBody_520)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Kid2RunningBody_520 extends MovieClip {
public function Kid2RunningBody_520(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 115
//Kid3armfront_534 (PicoPublic_fla.Kid3armfront_534)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Kid3armfront_534 extends MovieClip {
public function Kid3armfront_534(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 116
//Kid3armleftscroto_527 (PicoPublic_fla.Kid3armleftscroto_527)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Kid3armleftscroto_527 extends MovieClip {
public function Kid3armleftscroto_527(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 117
//Kid3armrightfront_533 (PicoPublic_fla.Kid3armrightfront_533)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Kid3armrightfront_533 extends MovieClip {
public function Kid3armrightfront_533(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 118
//Kid3HeadFront_532 (PicoPublic_fla.Kid3HeadFront_532)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Kid3HeadFront_532 extends MovieClip {
public function Kid3HeadFront_532(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 119
//Kid3RunningBody_531 (PicoPublic_fla.Kid3RunningBody_531)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Kid3RunningBody_531 extends MovieClip {
public function Kid3RunningBody_531(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 120
//kidShit_504 (PicoPublic_fla.kidShit_504)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class kidShit_504 extends MovieClip {
public function kidShit_504(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
MovieClip(parent).gotoAndStop(MovieClip(parent.parent.parent).diff);
visible = false;
}
function frame2(){
MovieClip(parent).gotoAndStop(MovieClip(parent.parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 121
//Lavabubble_168 (PicoPublic_fla.Lavabubble_168)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Lavabubble_168 extends MovieClip {
public function Lavabubble_168(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndPlay(Math.ceil((Math.random() * 90)));
}
}
}//package PicoPublic_fla
Section 122
//Lavabubble2_405 (PicoPublic_fla.Lavabubble2_405)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Lavabubble2_405 extends MovieClip {
public function Lavabubble2_405(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
gotoAndPlay(Math.ceil((Math.random() * 18)));
}
function frame40(){
gotoAndPlay(18);
}
}
}//package PicoPublic_fla
Section 123
//levelsLocked_269 (PicoPublic_fla.levelsLocked_269)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class levelsLocked_269 extends MovieClip {
public function levelsLocked_269(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(root).saveData["level"]);
}
}
}//package PicoPublic_fla
Section 124
//limits_50 (PicoPublic_fla.limits_50)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class limits_50 extends MovieClip {
public function limits_50(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package PicoPublic_fla
Section 125
//lockProps_271 (PicoPublic_fla.lockProps_271)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class lockProps_271 extends MovieClip {
public function lockProps_271(){
addFrameScript(0, frame1);
}
function frame1(){
rotation = (-5 + (Math.random() * 10));
scaleX = (0.95 + (Math.random() * 1));
scaleY = scaleX;
}
}
}//package PicoPublic_fla
Section 126
//marde_19 (PicoPublic_fla.marde_19)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class marde_19 extends MovieClip {
public function marde_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PicoPublic_fla
Section 127
//Masher_Sprite_315 (PicoPublic_fla.Masher_Sprite_315)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Masher_Sprite_315 extends MovieClip {
public function Masher_Sprite_315(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent).mashFrame);
}
}
}//package PicoPublic_fla
Section 128
//meatFly_393 (PicoPublic_fla.meatFly_393)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class meatFly_393 extends MovieClip {
public function meatFly_393(){
addFrameScript(0, frame1);
}
function frame1(){
if ((Math.random() > 0.5)){
nextFrame();
} else {
stop();
};
stop();
}
}
}//package PicoPublic_fla
Section 129
//meatLand_394 (PicoPublic_fla.meatLand_394)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class meatLand_394 extends MovieClip {
public function meatLand_394(){
addFrameScript(0, frame1);
}
function frame1(){
if ((Math.random() > 0.5)){
scaleX = (scaleX * -1);
//unresolved jump
};
if ((Math.random() > 0.5)){
nextFrame();
} else {
stop();
};
stop();
}
}
}//package PicoPublic_fla
Section 130
//Mucnhfx_353 (PicoPublic_fla.Mucnhfx_353)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Mucnhfx_353 extends MovieClip {
public function Mucnhfx_353(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package PicoPublic_fla
Section 131
//NewgroundsAPI_Ad_Unit_2 (PicoPublic_fla.NewgroundsAPI_Ad_Unit_2)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import com.newgrounds.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class NewgroundsAPI_Ad_Unit_2 extends MovieClip {
public var background:MovieClip;
public function NewgroundsAPI_Ad_Unit_2(){
addFrameScript(0, frame1);
}
public function attachAd(_arg1:Object, _arg2:Object):void{
NewgroundsAPI.attachFlashAd(this);
}
function frame1(){
NewgroundsAPI.addEventListener(NewgroundsAPI.events.ADS_APPROVED, attachAd);
background.visible = false;
}
}
}//package PicoPublic_fla
Section 132
//NewgroundsAPI_Connector_17 (PicoPublic_fla.NewgroundsAPI_Connector_17)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import com.newgrounds.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class NewgroundsAPI_Connector_17 extends MovieClip {
public var closeButton:SimpleButton;
public function NewgroundsAPI_Connector_17(){
addFrameScript(0, frame1);
}
public function checkConnection(_arg1:Object, _arg2:Object):void{
if (!_arg1.success){
visible = true;
closeButton.addEventListener(MouseEvent.CLICK, closeHandler);
gotoAndStop(3);
};
}
public function closeHandler(_arg1:MouseEvent):void{
visible = false;
}
function frame1(){
visible = false;
stop();
}
public function initialize(_arg1:Object):void{
NewgroundsAPI.setMovieVersion(_arg1.movie_version);
NewgroundsAPI.connectMovie(root, _arg1.movie_id.toString(), _arg1.enc_key, _arg1.debug_mode);
if (((NewgroundsAPI.isNewgrounds()) || (_arg1.debug_mode))){
NewgroundsAPI.addEventListener(NewgroundsAPI.events.MOVIE_CONNECTED, checkConnection);
if (((!(NewgroundsAPI.hasUserSession())) && (!(_arg1.debug_mode)))){
visible = true;
closeButton.addEventListener(MouseEvent.CLICK, closeHandler);
gotoAndStop(2);
};
};
NewgroundsAPI.loadMedals();
}
}
}//package PicoPublic_fla
Section 133
//NewgroundsAPI_Medal_Popup_14 (PicoPublic_fla.NewgroundsAPI_Medal_Popup_14)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import com.newgrounds.*;
import flash.geom.*;
import com.adobe.utils.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class NewgroundsAPI_Medal_Popup_14 extends MovieClip {
public var medalClassName:String;
public var medalValueText:TextField;
public var pop_delay:Timer;
public var badChars:String;
public var medal_value:String;
public var myBitmapData:BitmapData;
public var i:uint;
public var medalNameText:TextField;
public var bitmapClass:Class;
public var medal_icon:MovieClip;
public var medal_name:String;
public function NewgroundsAPI_Medal_Popup_14(){
addFrameScript(0, frame1, 9, frame10);
}
public function unlockMedal(_arg1:String):void{
var _local2:Array;
var _local3:*;
var _local4:String;
var _local5:String;
pop_delay.stop();
_local2 = NewgroundsAPI.getMedals();
_local3 = null;
for (_local4 in _local2) {
if (_local2[_local4].medal_name == _arg1){
_local3 = _local2[_local4];
medal_name = _local3.medal_name;
medal_value = (_local3.medal_value + "pts");
NewgroundsAPI.unlockMedal(medal_name);
pop_delay.start();
visible = true;
_local5 = loaderInfo.url;
_local5 = loaderInfo.url;
if (_local5.indexOf("ungrounded.net") == -1){
visible = false;
};
gotoAndPlay(2);
break;
};
};
}
function frame10(){
medalClassName = medal_name;
badChars = "~`!@#$%^&*()-+=[{]}|;:'\"\\,<.>/? ";
i = 0;
while (i < badChars.length) {
medalClassName = StringUtil.remove(medalClassName, badChars.charAt(i));
i++;
};
try {
bitmapClass = Class(getDefinitionByName(medalClassName));
} catch(e:Error) {
trace((("Couldn't find medal image with class name " + medalClassName) + "!"));
};
if (bitmapClass){
myBitmapData = new bitmapClass(0, 0);
medal_icon.addChild(new Bitmap(myBitmapData));
};
medalNameText.text = medal_name;
medalValueText.text = medal_value;
stop();
}
function frame1(){
pop_delay = new Timer(3000, 1);
pop_delay.addEventListener(TimerEvent.TIMER, endDelay);
medal_name = "?????";
medal_value = "???";
visible = false;
stop();
}
public function endDelay(_arg1:TimerEvent):void{
if (medal_icon.getChildAt(0)){
medal_icon.removeChildAt(0);
};
gotoAndPlay(10);
pop_delay.stop();
}
}
}//package PicoPublic_fla
Section 134
//NG_10 (PicoPublic_fla.NG_10)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class NG_10 extends MovieClip {
public var btn:SimpleButton;
public function NG_10(){
addFrameScript(0, frame1, 100, frame101);
}
function frame1(){
stop();
}
function frame101(){
MovieClip(parent).enablePlay(btn);
}
}
}//package PicoPublic_fla
Section 135
//Oeilsprouit_310 (PicoPublic_fla.Oeilsprouit_310)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Oeilsprouit_310 extends MovieClip {
public function Oeilsprouit_310(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PicoPublic_fla
Section 136
//Oeilsprouit2_312 (PicoPublic_fla.Oeilsprouit2_312)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Oeilsprouit2_312 extends MovieClip {
public function Oeilsprouit2_312(){
addFrameScript(0, frame1, 1, frame2, 9, frame10);
}
function frame10(){
gotoAndStop(2);
}
function frame1(){
MovieClip(parent).start4(this);
}
function frame2(){
stop();
}
}
}//package PicoPublic_fla
Section 137
//Phobiedespe3titespersonnes_526 (PicoPublic_fla.Phobiedespe3titespersonnes_526)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Phobiedespe3titespersonnes_526 extends MovieClip {
public function Phobiedespe3titespersonnes_526(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 138
//Phobiedespetitespersonnes_515 (PicoPublic_fla.Phobiedespetitespersonnes_515)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Phobiedespetitespersonnes_515 extends MovieClip {
public function Phobiedespetitespersonnes_515(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(parent.parent).diff);
}
}
}//package PicoPublic_fla
Section 139
//rail_down_131 (PicoPublic_fla.rail_down_131)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class rail_down_131 extends MovieClip {
public function rail_down_131(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PicoPublic_fla
Section 140
//rail_endLeft_134 (PicoPublic_fla.rail_endLeft_134)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class rail_endLeft_134 extends MovieClip {
public function rail_endLeft_134(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PicoPublic_fla
Section 141
//rail_endRight_133 (PicoPublic_fla.rail_endRight_133)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class rail_endRight_133 extends MovieClip {
public function rail_endRight_133(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PicoPublic_fla
Section 142
//rail_straight_130 (PicoPublic_fla.rail_straight_130)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class rail_straight_130 extends MovieClip {
public function rail_straight_130(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PicoPublic_fla
Section 143
//Resto01_ground_477 (PicoPublic_fla.Resto01_ground_477)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Resto01_ground_477 extends MovieClip {
public function Resto01_ground_477(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package PicoPublic_fla
Section 144
//Saw2_36 (PicoPublic_fla.Saw2_36)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Saw2_36 extends MovieClip {
public function Saw2_36(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
gotoAndPlay(2);
}
function frame1(){
gotoAndPlay((Math.ceil((Math.random() * 4)) + 1));
}
}
}//package PicoPublic_fla
Section 145
//shit_9 (PicoPublic_fla.shit_9)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class shit_9 extends MovieClip {
public function shit_9(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PicoPublic_fla
Section 146
//Shitchickenbody_230 (PicoPublic_fla.Shitchickenbody_230)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Shitchickenbody_230 extends MovieClip {
public function Shitchickenbody_230(){
addFrameScript(0, frame1, 19, frame20, 45, frame46);
}
function frame1(){
stop();
}
function frame20(){
MovieClip(parent).sonBlood();
}
function frame46(){
prevFrame();
}
}
}//package PicoPublic_fla
Section 147
//SlicerHead_65 (PicoPublic_fla.SlicerHead_65)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class SlicerHead_65 extends MovieClip {
public function SlicerHead_65(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay(MovieClip(parent.parent.parent).headFrame);
}
function frame1(){
gotoAndPlay(MovieClip(parent.parent.parent).headFrame);
}
function frame4(){
gotoAndPlay(3);
}
function frame2(){
gotoAndPlay(1);
}
}
}//package PicoPublic_fla
Section 148
//sprites_491 (PicoPublic_fla.sprites_491)
package PicoPublic_fla {
import flash.display.*;
public dynamic class sprites_491 extends MovieClip {
public var hand:MovieClip;
public var head:MovieClip;
}
}//package PicoPublic_fla
Section 149
//sprites_497 (PicoPublic_fla.sprites_497)
package PicoPublic_fla {
import flash.display.*;
public dynamic class sprites_497 extends MovieClip {
public var hand:MovieClip;
public var head:MovieClip;
}
}//package PicoPublic_fla
Section 150
//SSMMScreen_480 (PicoPublic_fla.SSMMScreen_480)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class SSMMScreen_480 extends MovieClip {
public function SSMMScreen_480(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PicoPublic_fla
Section 151
//Steam_127 (PicoPublic_fla.Steam_127)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Steam_127 extends MovieClip {
public function Steam_127(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndPlay(Math.ceil((Math.random() * 40)));
}
}
}//package PicoPublic_fla
Section 152
//stick_164 (PicoPublic_fla.stick_164)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class stick_164 extends MovieClip {
public var pt:Point;
public function stick_164(){
addFrameScript(0, frame1);
}
function frame1(){
pt = new Point(100, 0);
}
}
}//package PicoPublic_fla
Section 153
//testKillBoss_316 (PicoPublic_fla.testKillBoss_316)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class testKillBoss_316 extends MovieClip {
public function testKillBoss_316(){
addFrameScript(0, frame1);
}
function frame1(){
MovieClip(parent).testKillBoss(this);
}
}
}//package PicoPublic_fla
Section 154
//trackAppear_144 (PicoPublic_fla.trackAppear_144)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class trackAppear_144 extends MovieClip {
public function trackAppear_144(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(3);
}
}
}//package PicoPublic_fla
Section 155
//train_smokeAnim_412 (PicoPublic_fla.train_smokeAnim_412)
package PicoPublic_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class train_smokeAnim_412 extends MovieClip {
public function train_smokeAnim_412(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package PicoPublic_fla
Section 156
//Calculator (tools.Calculator)
package tools {
public class Calculator {
public static function getDistX(_arg1:Number, _arg2:Number):Number{
return (Math.abs((_arg1 - _arg2)));
}
public static function getDist(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (Math.sqrt((Math.pow((_arg1 - _arg3), 2) + Math.pow((_arg2 - _arg4), 2))));
}
public static function getAngle(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((180 * Math.atan2((_arg4 - _arg2), (_arg3 - _arg1))) / Math.PI));
}
}
}//package tools
Section 157
//JukeBox (tools.JukeBox)
package tools {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class JukeBox extends MovieClip {
private var song:Sound;
private var soundChannel:SoundChannel;
private var currentSong:String;// = "none"
private var transformer:SoundTransform;
private var increment:Number;// = 0.075
private var nextSong:String;// = "none"
private var vol1:Number;// = 0.6
public var vol2:Number;// = 1
private var vol:Number;// = 0
public function JukeBox(){
currentSong = "none";
nextSong = "none";
vol = 0;
vol1 = 0.6;
vol2 = 1;
transformer = new SoundTransform();
increment = 0.075;
super();
addEventListener("enterFrame", runtime, false, 0, true);
}
public function runtime(_arg1:Event):void{
if (((!((nextSong == "none"))) || ((nextSong == "shutUp")))){
vol = (vol - increment);
if (vol <= 0){
if (song != null){
clearSong();
};
if (nextSong != "shutUp"){
vol = 1;
playNextSong();
} else {
currentSong = "none";
nextSong = "none";
};
};
};
transformer.volume = ((vol * vol1) * vol2);
if (currentSong != "none"){
soundChannel.soundTransform = transformer;
};
}
private function clearSong():void{
soundChannel.removeEventListener("soundComplete", repeat);
soundChannel.stop();
}
private function playNextSong():void{
if (nextSong != "none"){
currentSong = nextSong;
nextSong = "none";
switch (currentSong){
case "SongResto":
song = new SongResto();
break;
case "SongFactory":
song = new SongFactory();
break;
case "SongTrain":
song = new SongTrain();
break;
case "SongBoss":
song = new SongBoss();
break;
default:
break;
};
soundChannel = song.play();
soundChannel.soundTransform = transformer;
soundChannel.addEventListener("soundComplete", repeat, false, 0, true);
} else {
currentSong = "none";
};
}
public function playSong(_arg1:String):void{
var _local2:String;
if ((((_arg1 == "Resto01")) || ((_arg1 == "Kitchen01")))){
_local2 = "SongResto";
};
if ((((((((_arg1 == "Factory01")) || ((_arg1 == "Factory02")))) || ((_arg1 == "Factory03")))) || ((_arg1 == "Factory04")))){
_local2 = "SongFactory";
};
if ((((((_arg1 == "Train01")) || ((_arg1 == "Train02")))) || ((_arg1 == "Train03")))){
_local2 = "SongTrain";
};
if (_arg1 == "Boss01"){
_local2 = "SongBoss";
};
if ((((_arg1.toLowerCase() == "shutup")) || ((_arg1 == "Boss02")))){
_local2 = "shutUp";
};
if (currentSong != _local2){
nextSong = _local2;
};
}
private function repeat(_arg1:Event):void{
soundChannel.removeEventListener("soundComplete", repeat);
soundChannel = song.play();
soundChannel.addEventListener("soundComplete", repeat, false, 0, true);
}
}
}//package tools
Section 158
//KeyManager (tools.KeyManager)
package tools {
import flash.display.*;
import flash.events.*;
public class KeyManager extends MovieClip {
private var canUseKey:Boolean;// = true
private var controls:Array;
private var keysDown:Array;
public function KeyManager(){
canUseKey = true;
controls = new Array();
keysDown = new Array();
super();
addEventListener("addedToStage", eventInit, false, 0, true);
}
public function resetKeys(_arg1:Event=null):void{
keysDown = new Array();
}
public function downCont(_arg1:String):Boolean{
if ((((_arg1 == "use")) && (!(canUseKey)))){
return (false);
};
return (keysDown[controls[_arg1]]);
}
public function getKeys():Array{
var _local1:Array;
_local1 = new Array();
_local1[65] = "A";
_local1[66] = "B";
_local1[67] = "C";
_local1[68] = "D";
_local1[69] = "E";
_local1[70] = "F";
_local1[71] = "G";
_local1[72] = "H";
_local1[73] = "I";
_local1[74] = "J";
_local1[75] = "K";
_local1[76] = "L";
_local1[77] = "M";
_local1[78] = "N";
_local1[79] = "O";
_local1[80] = "P";
_local1[81] = "Q";
_local1[82] = "R";
_local1[83] = "S";
_local1[84] = "T";
_local1[85] = "U";
_local1[86] = "V";
_local1[87] = "W";
_local1[88] = "X";
_local1[89] = "Y";
_local1[90] = "Z";
return (_local1);
}
public function canUse(_arg1:Boolean):void{
canUseKey = _arg1;
}
public function down(_arg1:int):Boolean{
return (keysDown[_arg1]);
}
public function setControl(_arg1:String, _arg2:int):void{
controls[_arg1] = _arg2;
}
private function checkUp(_arg1:KeyboardEvent):void{
keysDown[_arg1.keyCode] = false;
}
private function eventInit(_arg1:Event):void{
removeEventListener("addedToStage", eventInit);
stage.addEventListener("keyDown", checkDown, false, 0, true);
stage.addEventListener("keyUp", checkUp, false, 0, true);
}
private function checkDown(_arg1:KeyboardEvent):void{
keysDown[_arg1.keyCode] = true;
}
}
}//package tools
Section 159
//MeatSplat (tools.MeatSplat)
package tools {
import flash.display.*;
public class MeatSplat extends MovieClip {
private var ys:Number;
private var xs:Number;
private var ground:MovieClip;
private var rotSpeed:Number;
private var game:Object;
public function MeatSplat(_arg1:Object, _arg2:MovieClip, _arg3:Number, _arg4:Number){
var _local5:Number;
rotSpeed = ((Math.random() * 20) - (Math.random() * 20));
super();
stop();
scaleX = (scaleY = (0.9 + (Math.random() * 0.3)));
rotation = (Math.random() * 360);
game = _arg1;
ground = _arg2;
rotation = (90 - (Math.random() * 180));
x = _arg3;
y = _arg4;
_local5 = (10 + (Math.random() * 10));
ys = -((_local5 * Math.cos(((Math.PI / 180) * rotation))));
xs = (_local5 * Math.sin(((Math.PI / 180) * rotation)));
stop();
game.doRuntime(this, true);
}
public function runtime():void{
var _local1:int;
var _local2:Number;
var _local3:SoundPlay;
if ((((currentFrame == 1)) && (ground.hitTestPoint((x + xs), (y + ys), true)))){
_local1 = 0;
while (_local1 < 15) {
x = (x + (xs / 15));
y = (y + (ys / 15));
if (ground.hitTestPoint(x, (y + 5), true)){
_local2 = MovieClip(parent).player.x;
_local3 = new SoundPlay(MovieClip(root).saveData["son"], "Chunk", (x - _local2), (x - _local2));
nextFrame();
rotation = 0;
xs = 0;
ys = 0;
cleanUp();
break;
};
if (ground.hitTestPoint(x, (y - 5), true)){
ys = (ys * -1);
break;
};
if (((ground.hitTestPoint((x + 5), y, true)) || (ground.hitTestPoint((x - 5), y, true)))){
xs = (xs * -1);
break;
};
_local1++;
};
} else {
x = (x + xs);
y = (y + ys);
};
if (currentFrame == 1){
ys = (ys + 1.3);
rotation = (rotation + rotSpeed);
};
}
private function cleanUp():void{
game.doRuntime(this, false);
game = null;
ground = null;
}
}
}//package tools
Section 160
//MeatSplatBig (tools.MeatSplatBig)
package tools {
import flash.display.*;
public class MeatSplatBig extends MovieClip {
private var ys:Number;
private var xs:Number;
private var ground:MovieClip;
private var rotSpeed:Number;
private var game:Object;
public function MeatSplatBig(_arg1:Object, _arg2:MovieClip, _arg3:Number, _arg4:Number){
var _local5:Number;
rotSpeed = ((Math.random() * 20) - (Math.random() * 20));
super();
addFrameScript(1, frame2);
stop();
scaleX = (scaleY = (0.9 + (Math.random() * 0.3)));
rotation = (Math.random() * 360);
game = _arg1;
ground = _arg2;
rotation = (90 - (Math.random() * 180));
x = _arg3;
y = _arg4;
_local5 = (10 + (Math.random() * 10));
ys = -((_local5 * Math.cos(((Math.PI / 180) * rotation))));
xs = ((_local5 * Math.sin(((Math.PI / 180) * rotation))) / 1.5);
stop();
game.doRuntime(this, true);
}
public function runtime():void{
var _local1:int;
var _local2:Number;
var _local3:SoundPlay;
if ((((currentFrame == 1)) && (ground.hitTestPoint((x + xs), (y + ys), true)))){
_local1 = 0;
while (_local1 < 15) {
x = (x + (xs / 15));
y = (y + (ys / 15));
if (ground.hitTestPoint(x, (y + 5), true)){
_local2 = MovieClip(parent).player.x;
_local3 = new SoundPlay(MovieClip(root).saveData["son"], "Chunk", (x - _local2), (x - _local2));
nextFrame();
rotation = 0;
xs = 0;
ys = 0;
cleanUp();
break;
};
if (ground.hitTestPoint(x, (y - 5), true)){
ys = (ys * -1);
break;
};
if (((ground.hitTestPoint((x + 5), y, true)) || (ground.hitTestPoint((x - 5), y, true)))){
xs = (xs * -1);
break;
};
_local1++;
};
} else {
x = (x + xs);
y = (y + ys);
};
if (currentFrame == 1){
ys = (ys + 1.3);
rotation = (rotation + rotSpeed);
};
}
function frame2(){
if (Math.random() > 0.5){
scaleX = (scaleX * -1);
};
}
private function cleanUp():void{
game.doRuntime(this, false);
game = null;
ground = null;
}
}
}//package tools
Section 161
//MeatSplatMed (tools.MeatSplatMed)
package tools {
import flash.display.*;
public class MeatSplatMed extends MovieClip {
private var ys:Number;
private var xs:Number;
private var ground:MovieClip;
private var rotSpeed:Number;
private var game:Object;
public function MeatSplatMed(_arg1:Object, _arg2:MovieClip, _arg3:Number, _arg4:Number){
var _local5:Number;
rotSpeed = ((Math.random() * 20) - (Math.random() * 20));
super();
addFrameScript(1, frame2);
stop();
scaleX = (scaleY = (0.9 + (Math.random() * 0.3)));
rotation = (Math.random() * 360);
game = _arg1;
ground = _arg2;
rotation = (90 - (Math.random() * 180));
x = _arg3;
y = _arg4;
_local5 = (10 + (Math.random() * 10));
ys = -((_local5 * Math.cos(((Math.PI / 180) * rotation))));
xs = (_local5 * Math.sin(((Math.PI / 180) * rotation)));
stop();
game.doRuntime(this, true);
}
public function runtime():void{
var _local1:int;
var _local2:Number;
var _local3:SoundPlay;
if ((((currentFrame == 1)) && (ground.hitTestPoint((x + xs), (y + ys), true)))){
_local1 = 0;
while (_local1 < 15) {
x = (x + (xs / 15));
y = (y + (ys / 15));
if (ground.hitTestPoint(x, (y + 5), true)){
_local2 = MovieClip(parent).player.x;
_local3 = new SoundPlay(MovieClip(root).saveData["son"], "Chunk", (x - _local2), (x - _local2));
nextFrame();
rotation = 0;
xs = 0;
ys = 0;
cleanUp();
break;
};
if (ground.hitTestPoint(x, (y - 5), true)){
ys = (ys * -1);
break;
};
if (((ground.hitTestPoint((x + 5), y, true)) || (ground.hitTestPoint((x - 5), y, true)))){
xs = (xs * -1);
break;
};
_local1++;
};
} else {
x = (x + xs);
y = (y + ys);
};
if (currentFrame == 1){
ys = (ys + 1.3);
rotation = (rotation + rotSpeed);
};
}
function frame2(){
if (Math.random() > 0.5){
scaleX = (scaleX * -1);
};
}
private function cleanUp():void{
game.doRuntime(this, false);
game = null;
ground = null;
}
}
}//package tools
Section 162
//MoveHero (tools.MoveHero)
package tools {
import flash.display.*;
public class MoveHero extends MovieClip {
protected var speed;// = 0
public var mc_hit:MovieClip;
private var hit:MovieClip;
public function MoveHero(){
speed = 0;
super();
hit = MovieClip(mc_hit);
MovieClip(parent).doRuntime(this, true);
}
public function runtime(_arg1:Object):void{
if (((hit.hitTestPoint(_arg1.x, _arg1.y)) && (!(_arg1.jump)))){
_arg1.forceMove(speed);
};
if (MovieClip(parent).deathObject){
if (hit.hitTestPoint(MovieClip(parent).deathObject.x, MovieClip(parent).deathObject.y)){
MovieClip(parent).deathObject.x = (MovieClip(parent).deathObject.x + speed);
};
};
}
}
}//package tools
Section 163
//Particle (tools.Particle)
package tools {
import flash.display.*;
public class Particle extends MovieClip {
private var ys:Number;// = 0
private var xs:Number;
private var ground:MovieClip;
private var rotSpeed:Number;
private var decay:Number;
private var bounceV:Number;
private var game:Object;
public function Particle(){
bounceV = (0.5 + (Math.random() * 0.25));
rotSpeed = ((Math.random() * 20) - (Math.random() * 20));
ys = 0;
super();
stop();
scaleX = (scaleY = (0.8 + (Math.random() * 0.4)));
rotation = (Math.random() * 360);
}
public function runtime():void{
var _local1:int;
if (ground.hitTestPoint((x + xs), (y + ys), true)){
_local1 = 0;
while (_local1 < 15) {
x = (x + (xs / 15));
y = (y + (ys / 15));
if (((ground.hitTestPoint(x, (y + 5), true)) || (ground.hitTestPoint(x, (y - 5), true)))){
ys = (ys * -(bounceV));
scaleX = (scaleX - (decay * 2));
scaleY = scaleX;
break;
};
if (((ground.hitTestPoint((x + 5), y, true)) || (ground.hitTestPoint((x - 5), y, true)))){
xs = (xs * -(bounceV));
scaleX = (scaleX - (decay * 2));
scaleY = scaleX;
break;
};
_local1++;
};
} else {
x = (x + xs);
y = (y + ys);
};
rotation = (rotation + rotSpeed);
scaleX = (scaleX - decay);
scaleY = scaleX;
ys++;
if (scaleX <= 0){
cleanUp();
};
}
public function init(_arg1:Object, _arg2:MovieClip, _arg3:Number, _arg4:Number, _arg5:Number):void{
game = _arg1;
rotation = _arg5;
ground = _arg2;
x = _arg3;
y = _arg4;
}
public function forceSpeed(_arg1:Number){
ys = _arg1;
}
protected function initStats(_arg1:Number, _arg2:Number, _arg3:Number):void{
decay = _arg3;
rotation = (rotation + ((Math.random() * _arg2) - (Math.random() * _arg2)));
if (ys == 0){
ys = -((_arg1 * Math.cos(((Math.PI / 180) * rotation))));
};
xs = (_arg1 * Math.sin(((Math.PI / 180) * rotation)));
gotoAndStop(Math.ceil((Math.random() * totalFrames)));
game.doRuntime(this, true);
}
private function cleanUp():void{
parent.removeChild(this);
game.doRuntime(this, false);
stop();
game = null;
ground = null;
}
}
}//package tools
Section 164
//ScrollObject (tools.ScrollObject)
package tools {
import flash.display.*;
public class ScrollObject extends MovieClip {
private var yp:Number;
protected var speed:Number;// = 1
public var door:MovieClip;
private var xp:Number;
public function ScrollObject(){
speed = 1;
super();
x = Math.round(x);
y = Math.round(y);
xp = x;
yp = y;
}
public function scrollMe(_arg1:Number, _arg2:Number):void{
xp = (xp + (_arg1 * speed));
yp = (yp + (_arg2 * speed));
x = Math.round(xp);
y = Math.round(yp);
}
}
}//package tools
Section 165
//Shitty (tools.Shitty)
package tools {
import flash.display.*;
public class Shitty extends MovieClip {
private var active:Boolean;// = false
private var playerG:Object;
private var dist:Number;// = 0
public var body:MovieClip;
public function Shitty(){
active = false;
dist = 0;
super();
MovieClip(parent).doRuntime(this, true);
}
public function runtime(_arg1:Object):void{
var _local2:SoundPlay;
if (((((!(active)) && ((_arg1.x < x)))) && ((_arg1.y > (y - 100))))){
_local2 = new SoundPlay(MovieClip(root).saveData["son"], "Chicken1", (x - _arg1.x), 0);
active = true;
MovieClip(body).play();
dist = (x - _arg1.x);
playerG = _arg1;
};
}
public function sonBlood():void{
var _local1:SoundPlay;
if (MovieClip(parent).levelName == playerG.currentLevel){
playerG = null;
MovieClip(parent).doRuntime(this, false);
_local1 = new SoundPlay(MovieClip(root).saveData["son"], "Blood1", dist, 0);
};
}
}
}//package tools
Section 166
//SoundPlay (tools.SoundPlay)
package tools {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class SoundPlay extends MovieClip {
private var sonChannel:SoundChannel;
private var endFunc:Function;
private var soundRange:Number;// = 800
private var son;
private var trans:SoundTransform;
public function SoundPlay(_arg1:int, _arg2:String, _arg3:Number=0, _arg4:Number=0, _arg5:Function=null):void{
var _local6:Number;
var _local7:Number;
var _local8:int;
soundRange = 800;
trans = new SoundTransform();
super();
_local6 = 1;
if (_arg3){
_local7 = (_arg3 / soundRange);
if (_local7 > 1){
_local7 = 1;
};
if (_local7 < -1){
_local7 = -1;
};
trans.pan = _local7;
_local6 = (1 - Math.abs((_arg4 / soundRange)));
if (_local6 < 0){
_local6 = 0;
};
if (_local6 > 1){
_local6 = 1;
};
if (_arg1 == 0){
_local6 = 0;
};
trans.volume = _local6;
};
if (_arg1 == 0){
_local6 = 0;
trans.volume = _local6;
};
if ((((_local6 > 0)) || (!((_arg5 == null))))){
switch (_arg2){
case "Blood":
_local8 = (Math.random() * 2);
if (_local8 == 0){
son = new Blood_1();
};
if (_local8 == 1){
son = new Blood_2();
};
break;
case "Chunk":
_local8 = (Math.random() * 2);
if (_local8 == 0){
son = new Chunk_1();
};
if (_local8 == 1){
son = new Chunk_2();
};
break;
case "Chicken":
_local8 = (Math.random() * 2);
if (_local8 == 0){
son = new Chicken_1();
};
if (_local8 == 1){
son = new Chicken_2();
};
break;
case "Gun":
_local8 = (Math.random() * 3);
if (_local8 == 0){
son = new Gun_1();
};
if (_local8 == 1){
son = new Gun_2();
};
if (_local8 == 2){
son = new Gun_3();
};
break;
case "Slicer":
_local8 = (Math.random() * 3);
if (_local8 == 0){
son = new Slicer_1();
};
if (_local8 == 1){
son = new Slicer_2();
};
if (_local8 == 2){
son = new Slicer_3();
};
break;
case "SlicerAttack":
_local8 = (Math.random() * 3);
if (_local8 == 0){
son = new SlicerAttack_1();
};
if (_local8 == 1){
son = new SlicerAttack_2();
};
if (_local8 == 2){
son = new SlicerAttack_3();
};
break;
case "Wall":
_local8 = (Math.random() * 3);
if (_local8 == 0){
son = new WallHit_1();
};
if (_local8 == 1){
son = new WallHit_2();
};
if (_local8 == 2){
son = new WallHit_3();
};
break;
case "Tenderizer":
_local8 = (Math.random() * 2);
if (_local8 == 0){
son = new Tender_1();
};
if (_local8 == 1){
son = new Tender_2();
};
break;
case "ChickenDog_Attack":
_local8 = (Math.random() * 2);
if (_local8 == 0){
son = new ChickenDog_Attack1();
};
if (_local8 == 1){
son = new ChickenDog_Attack2();
};
break;
case "TrainLand":
_local8 = (Math.random() * 2);
if (_local8 == 0){
son = new TrainLand_1();
};
if (_local8 == 1){
son = new TrainLand_2();
};
break;
case "TrainJump":
_local8 = (Math.random() * 2);
if (_local8 == 0){
son = new TrainJump_1();
};
if (_local8 == 1){
son = new TrainJump_2();
};
break;
case "PowerDown":
son = new PowerDown();
break;
case "Joint":
son = new Joint();
break;
case "Rumble":
son = new Rumble();
break;
case "Thud":
son = new Thud();
break;
case "Blood1":
son = new Blood_1();
break;
case "Chicken1":
son = new Chicken_1();
break;
case "Elevator":
son = new Elevator();
break;
case "ElevatorLand":
son = new ElevatorLand();
break;
case "Gunner":
son = new GunnerAttack();
break;
case "Rooster":
son = new Rooster();
break;
case "Dash":
son = new Dash();
break;
case "TrainRoll":
son = new TrainRoll();
break;
case "Dmg_Crush":
son = new Dmg_Crush();
break;
case "Die_Crush":
son = new Die_Crush();
break;
case "Die_Lava":
son = new Die_Lava();
break;
case "Die_Regular":
son = new Die_Regular();
break;
case "Die_Explode":
son = new Die_Explode();
break;
case "Die_Fall":
son = new Die_Fall();
break;
case "Tenderizer_Die":
son = new Tenderizer_Die();
break;
case "ChickenDog_Away":
son = new ChickenDog_Away();
break;
case "Saw":
son = new SawLoop();
break;
default:
break;
};
sonChannel = son.play();
sonChannel.addEventListener("soundComplete", cleanUp, false, 0, true);
sonChannel.soundTransform = trans;
if (_arg5 != null){
endFunc = _arg5;
};
} else {
if (_arg2 == "Saw"){
};
};
}
public function setProps(_arg1:int, _arg2:Number, _arg3:Number):void{
var _local4:Number;
var _local5:Number;
if (sonChannel){
_local4 = 1;
_local5 = (_arg2 / soundRange);
if (_local5 > 1){
_local5 = 1;
};
if (_local5 < -1){
_local5 = -1;
};
trans.pan = _local5;
_local4 = (1 - Math.abs((_arg3 / soundRange)));
if (_local4 < 0){
_local4 = 0;
};
if (_local4 > 1){
_local4 = 1;
};
if (_arg1 == 0){
_local4 = 0;
};
trans.volume = _local4;
sonChannel.soundTransform = trans;
};
}
public function shutUp():void{
sonChannel.stop();
}
private function cleanUp(_arg1):void{
sonChannel.removeEventListener("soundComplete", cleanUp);
if (endFunc != null){
endFunc();
};
endFunc = null;
sonChannel = null;
son = null;
}
}
}//package tools
Section 167
//Splat (tools.Splat)
package tools {
import flash.display.*;
public class Splat extends MovieClip {
public function init(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Boolean=false):void{
scaleX = ((Math.random() * 0.5) + 0.75);
scaleY = ((Math.random() * 0.5) + 0.75);
x = ((_arg1 + (Math.random() * 4)) - (Math.random() * 4));
y = ((_arg2 + (Math.random() * 4)) - (Math.random() * 4));
rotation = ((_arg3 + (Math.random() * 10)) - (Math.random() * 10));
if (((!(_arg4)) && ((((rotation > 90)) || ((rotation < -90)))))){
scaleY = (scaleY * -1);
};
if (_arg4){
if (parent.scaleX == 1){
scaleX = (scaleX * -1);
if (Math.abs(rotation) > 90){
scaleY = (scaleY * -1);
};
} else {
rotation = (rotation * -1);
if (Math.abs(rotation) > 90){
scaleY = (scaleY * -1);
};
};
};
}
protected function cleanUp():void{
parent.removeChild(this);
stop();
}
}
}//package tools
Section 168
//UseObject (tools.UseObject)
package tools {
import flash.display.*;
public class UseObject extends MovieClip {
protected var targetFunc:Function;
private var active:Boolean;// = true
public var sc:MovieClip;
public var mc_hit:MovieClip;
private var hit:MovieClip;
private var hold:Boolean;// = false
protected var stayActive:Boolean;// = false
public function UseObject(){
active = true;
hold = false;
stayActive = false;
super();
hit = MovieClip(mc_hit);
MovieClip(parent).doRuntime(this, true);
}
public function runtime(_arg1:Object):void{
if (Master.key.downCont("use")){
if (((((active) && (_arg1.hit.hitTestObject(hit)))) && (!(hold)))){
active = stayActive;
targetFunc();
};
hold = true;
};
if (((hold) && (!(Master.key.downCont("use"))))){
hold = false;
};
}
}
}//package tools
Section 169
//Anim_End (Anim_End)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Anim_End extends MovieClip {
public function Anim_End(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
prevFrame();
}
function frame1(){
stop();
}
}
}//package
Section 170
//Anim_Intro (Anim_Intro)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import gameplay.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Anim_Intro extends Anim {
public function Anim_Intro(){
addFrameScript(0, frame1);
}
function frame1(){
animObj = mc_anim;
nextUp = "Resto01";
setBtn(MovieClip(b_skip));
}
}
}//package
Section 171
//Arcade_BibleBot (Arcade_BibleBot)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Arcade_BibleBot extends UseObject {
public var lost:Boolean;
public var played:Boolean;
public function Arcade_BibleBot(){
addFrameScript(0, frame1);
}
public function exit():void{
if (!lost){
MovieClip(sc).play();
};
}
function frame1(){
played = true;
lost = false;
stayActive = true;
targetFunc = exit;
}
}
}//package
Section 172
//Arcade_Chainsaw (Arcade_Chainsaw)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Arcade_Chainsaw extends UseObject {
public var lost:Boolean;
public var played:Boolean;
public function Arcade_Chainsaw(){
addFrameScript(0, frame1);
}
public function exit():void{
if (!lost){
MovieClip(sc).play();
};
}
function frame1(){
played = true;
lost = false;
stayActive = true;
targetFunc = exit;
}
}
}//package
Section 173
//Arcade_SSMM (Arcade_SSMM)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Arcade_SSMM extends UseObject {
public function Arcade_SSMM(){
addFrameScript(0, frame1);
}
public function exit():void{
MovieClip(sc).nextFrame();
MovieClip(parent).playArcade();
}
function frame1(){
stayActive = true;
targetFunc = exit;
}
}
}//package
Section 174
//BigWetJuicyKiss (BigWetJuicyKiss)
package {
import flash.display.*;
public dynamic class BigWetJuicyKiss extends BitmapData {
public function BigWetJuicyKiss(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 175
//Blood_1 (Blood_1)
package {
import flash.media.*;
public dynamic class Blood_1 extends Sound {
}
}//package
Section 176
//Blood_2 (Blood_2)
package {
import flash.media.*;
public dynamic class Blood_2 extends Sound {
}
}//package
Section 177
//Blood_Boss (Blood_Boss)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Blood_Boss extends Splat {
public function Blood_Boss(){
addFrameScript(12, frame13);
}
function frame13(){
cleanUp();
}
}
}//package
Section 178
//Blood_ChickenDog (Blood_ChickenDog)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Blood_ChickenDog extends MovieClip {
public function Blood_ChickenDog(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
MovieClip(parent).removeChild(this);
}
}
}//package
Section 179
//Blood_Gunner (Blood_Gunner)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Blood_Gunner extends MovieClip {
public function Blood_Gunner(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
MovieClip(parent).removeChild(this);
}
}
}//package
Section 180
//Blood_Slicer (Blood_Slicer)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Blood_Slicer extends MovieClip {
public function Blood_Slicer(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
MovieClip(parent).removeChild(this);
}
}
}//package
Section 181
//Blood_Small (Blood_Small)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Blood_Small extends Splat {
public function Blood_Small(){
addFrameScript(15, frame16);
}
function frame16(){
cleanUp();
}
}
}//package
Section 182
//Boss01 (Boss01)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import gameplay.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Boss01 extends Level {
public var canExit:Boolean;
public function Boss01(){
addFrameScript(0, frame1);
}
function frame1(){
spark = "GunSpark_Boss";
setLvL("Boss01", 10);
MovieClip(m1).mashFrame = 1;
MovieClip(m2).mashFrame = 2;
MovieClip(m3).mashFrame = 3;
if (((MovieClip(root).canMeat) && ((MovieClip(root).totalKills == 0)))){
MovieClip(root).medal_popup.unlockMedal("Meat is Murder");
};
canExit = false;
}
}
}//package
Section 183
//Boss01_bg (Boss01_bg)
package {
import tools.*;
public dynamic class Boss01_bg extends ScrollObject {
}
}//package
Section 184
//Boss01_exit (Boss01_exit)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Boss01_exit extends UseObject {
public function Boss01_exit(){
addFrameScript(0, frame1);
}
public function exit():void{
if (MovieClip(parent).canExit){
MovieClip(parent).nextLevel("Boss02");
};
}
function frame1(){
targetFunc = exit;
stayActive = true;
}
}
}//package
Section 185
//Boss02 (Boss02)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import gameplay.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Boss02 extends Level {
public function Boss02(){
addFrameScript(0, frame1);
}
function frame1(){
spark = "GunSpark_Boss";
setLvL("Boss02", 11);
}
}
}//package
Section 186
//Boss02_bg (Boss02_bg)
package {
import tools.*;
public dynamic class Boss02_bg extends ScrollObject {
}
}//package
Section 187
//Building_02 (Building_02)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Building_02 extends ScrollObject {
public function Building_02(){
addFrameScript(0, frame1);
}
function frame1(){
speed = 0.2;
}
}
}//package
Section 188
//BuildingBG_03 (BuildingBG_03)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class BuildingBG_03 extends ScrollObject {
public function BuildingBG_03(){
addFrameScript(0, frame1);
}
function frame1(){
speed = 0.2;
}
}
}//package
Section 189
//BuildingBG_04 (BuildingBG_04)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class BuildingBG_04 extends ScrollObject {
public function BuildingBG_04(){
addFrameScript(0, frame1);
}
function frame1(){
speed = 0.2;
}
}
}//package
Section 190
//BuildingBG_1 (BuildingBG_1)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class BuildingBG_1 extends ScrollObject {
public function BuildingBG_1(){
addFrameScript(0, frame1);
}
function frame1(){
speed = 0.2;
}
}
}//package
Section 191
//Chicken_1 (Chicken_1)
package {
import flash.media.*;
public dynamic class Chicken_1 extends Sound {
}
}//package
Section 192
//Chicken_2 (Chicken_2)
package {
import flash.media.*;
public dynamic class Chicken_2 extends Sound {
}
}//package
Section 193
//ChickenDog_Attack1 (ChickenDog_Attack1)
package {
import flash.media.*;
public dynamic class ChickenDog_Attack1 extends Sound {
}
}//package
Section 194
//ChickenDog_Attack2 (ChickenDog_Attack2)
package {
import flash.media.*;
public dynamic class ChickenDog_Attack2 extends Sound {
}
}//package
Section 195
//ChickenDog_Away (ChickenDog_Away)
package {
import flash.media.*;
public dynamic class ChickenDog_Away extends Sound {
}
}//package
Section 196
//Chunk_1 (Chunk_1)
package {
import flash.media.*;
public dynamic class Chunk_1 extends Sound {
}
}//package
Section 197
//Chunk_2 (Chunk_2)
package {
import flash.media.*;
public dynamic class Chunk_2 extends Sound {
}
}//package
Section 198
//Colone (Colone)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Colone extends ScrollObject {
public function Colone(){
addFrameScript(0, frame1);
}
function frame1(){
speed = 0.35;
}
}
}//package
Section 199
//Dash (Dash)
package {
import flash.media.*;
public dynamic class Dash extends Sound {
}
}//package
Section 200
//DashSmoke_Resto (DashSmoke_Resto)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class DashSmoke_Resto extends MovieClip {
public var sc:Number;
public function DashSmoke_Resto(){
addFrameScript(0, frame1, 20, frame21);
}
function frame1(){
sc = (0.8 + (Math.random() * 0.4));
scaleY = sc;
scaleX = ((Math.random() > 0.5)) ? sc : -(sc);
alpha = (0.8 + (Math.random() * 0.2));
}
function frame21(){
stop();
MovieClip(parent).removeChild(this);
}
}
}//package
Section 201
//Death_Crush (Death_Crush)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Death_Crush extends MovieClip {
public function Death_Crush(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package
Section 202
//Death_Fall (Death_Fall)
package {
import flash.display.*;
public dynamic class Death_Fall extends MovieClip {
}
}//package
Section 203
//Death_Lava (Death_Lava)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Death_Lava extends MovieClip {
public function Death_Lava(){
addFrameScript(62, frame63);
}
function frame63(){
stop();
}
}
}//package
Section 204
//Death_Regular (Death_Regular)
package {
import flash.display.*;
public dynamic class Death_Regular extends MovieClip {
}
}//package
Section 205
//Die_Crush (Die_Crush)
package {
import flash.media.*;
public dynamic class Die_Crush extends Sound {
}
}//package
Section 206
//Die_Explode (Die_Explode)
package {
import flash.media.*;
public dynamic class Die_Explode extends Sound {
}
}//package
Section 207
//Die_Fall (Die_Fall)
package {
import flash.media.*;
public dynamic class Die_Fall extends Sound {
}
}//package
Section 208
//Die_Lava (Die_Lava)
package {
import flash.media.*;
public dynamic class Die_Lava extends Sound {
}
}//package
Section 209
//Die_Regular (Die_Regular)
package {
import flash.media.*;
public dynamic class Die_Regular extends Sound {
}
}//package
Section 210
//Dmg_Crush (Dmg_Crush)
package {
import flash.media.*;
public dynamic class Dmg_Crush extends Sound {
}
}//package
Section 211
//Douille (Douille)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Douille extends Particle {
public function Douille(){
addFrameScript(0, frame1);
}
function frame1(){
initStats(((Math.random() * 2.5) + 6), 5, (0.02 + (Math.random() * 0.015)));
}
}
}//package
Section 212
//DouilleGunner (DouilleGunner)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class DouilleGunner extends Particle {
public function DouilleGunner(){
addFrameScript(0, frame1);
}
function frame1(){
initStats(((Math.random() * 2.5) + 6), 5, (0.02 + (Math.random() * 0.015)));
}
}
}//package
Section 213
//DudeitsmyTurn (DudeitsmyTurn)
package {
import flash.display.*;
public dynamic class DudeitsmyTurn extends BitmapData {
public function DudeitsmyTurn(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 214
//Elevator (Elevator)
package {
import flash.media.*;
public dynamic class Elevator extends Sound {
}
}//package
Section 215
//ElevatorLand (ElevatorLand)
package {
import flash.media.*;
public dynamic class ElevatorLand extends Sound {
}
}//package
Section 216
//entrance1 (entrance1)
package {
import tools.*;
public dynamic class entrance1 extends ScrollObject {
}
}//package
Section 217
//entrance2 (entrance2)
package {
import tools.*;
public dynamic class entrance2 extends ScrollObject {
}
}//package
Section 218
//Factory01 (Factory01)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import gameplay.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Factory01 extends Level {
public function Factory01(){
addFrameScript(0, frame1);
}
function frame1(){
spark = "GunSpark_Factory";
MovieClip(b1).gotoAndPlay(12);
MovieClip(b2).gotoAndPlay(24);
setLvL("Factory01", 3);
}
}
}//package
Section 219
//Factory01_exit (Factory01_exit)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Factory01_exit extends UseObject {
public function Factory01_exit(){
addFrameScript(0, frame1);
}
public function exit():void{
MovieClip(parent).nextLevel("Factory02");
}
function frame1(){
targetFunc = exit;
}
}
}//package
Section 220
//Factory02 (Factory02)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import gameplay.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Factory02 extends Level {
public function Factory02(){
addFrameScript(0, frame1);
}
function frame1(){
spark = "GunSpark_Factory";
setLvL("Factory02", 4);
MovieClip(mc_ele1).setSpeed(1);
MovieClip(mc_ele1).setDest(MovieClip(ele_limit), MovieClip(asset_ground).hideFactory2);
}
public function getDest(_arg1:Object):Object{
return (MovieClip(ele_limit));
}
}
}//package
Section 221
//Factory02_exit (Factory02_exit)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Factory02_exit extends UseObject {
public function Factory02_exit(){
addFrameScript(0, frame1);
}
public function exit():void{
MovieClip(parent).nextLevel("Factory03");
}
function frame1(){
targetFunc = exit;
}
}
}//package
Section 222
//Factory02_map (Factory02_map)
package {
import tools.*;
public dynamic class Factory02_map extends ScrollObject {
}
}//package
Section 223
//Factory03 (Factory03)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import gameplay.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Factory03 extends Level {
public function Factory03(){
addFrameScript(0, frame1);
}
function frame1(){
spark = "GunSpark_Factory";
setLvL("Factory03", 5);
MovieClip(mc_ele2).setSpeed(1);
MovieClip(mc_ele2).setDest(MovieClip(ele_limit), MovieClip(asset_ground).hideFactory3);
MovieClip(b2).gotoAndPlay(20);
}
public function getDest(_arg1:Object):Object{
return (MovieClip(ele_limit));
}
}
}//package
Section 224
//Factory03_bg (Factory03_bg)
package {
import tools.*;
public dynamic class Factory03_bg extends ScrollObject {
}
}//package
Section 225
//Factory03_exit (Factory03_exit)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Factory03_exit extends UseObject {
public function Factory03_exit(){
addFrameScript(0, frame1);
}
public function exit():void{
MovieClip(parent).nextLevel("Factory04");
}
function frame1(){
targetFunc = exit;
}
}
}//package
Section 226
//Factory04 (Factory04)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import gameplay.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Factory04 extends Level {
public function Factory04(){
addFrameScript(0, frame1);
}
function frame1(){
spark = "GunSpark_Factory";
setLvL("Factory04", 6);
MovieClip(mc_eleMarde).setSpeed(1);
MovieClip(mc_eleMarde).setDest(MovieClip(ele_limit1), MovieClip(asset_ground).hideFactory4_1);
MovieClip(mc_eleKak).setSpeed(1);
MovieClip(mc_eleKak).setDest(MovieClip(ele_limit2), MovieClip(asset_ground).hideFactory4_2);
}
public function getDest(_arg1:Object):Object{
if (_arg1 == MovieClip(mc_eleMarde)){
return (MovieClip(ele_limit1));
};
return (MovieClip(ele_limit2));
}
}
}//package
Section 227
//Factory04_bg (Factory04_bg)
package {
import tools.*;
public dynamic class Factory04_bg extends ScrollObject {
}
}//package
Section 228
//Factory04_exit (Factory04_exit)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Factory04_exit extends UseObject {
public function Factory04_exit(){
addFrameScript(0, frame1);
}
public function exit():void{
MovieClip(parent).nextLevel("Train01");
}
function frame1(){
targetFunc = exit;
}
}
}//package
Section 229
//Gun_1 (Gun_1)
package {
import flash.media.*;
public dynamic class Gun_1 extends Sound {
}
}//package
Section 230
//Gun_2 (Gun_2)
package {
import flash.media.*;
public dynamic class Gun_2 extends Sound {
}
}//package
Section 231
//Gun_3 (Gun_3)
package {
import flash.media.*;
public dynamic class Gun_3 extends Sound {
}
}//package
Section 232
//GunnerAttack (GunnerAttack)
package {
import flash.media.*;
public dynamic class GunnerAttack extends Sound {
}
}//package
Section 233
//GunSpark_Boss (GunSpark_Boss)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class GunSpark_Boss extends Particle {
public function GunSpark_Boss(){
addFrameScript(0, frame1);
}
function frame1(){
initStats(((Math.random() * 5) + 2.5), 40, (0.02 + (Math.random() * 0.015)));
}
}
}//package
Section 234
//GunSpark_Factory (GunSpark_Factory)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class GunSpark_Factory extends Particle {
public function GunSpark_Factory(){
addFrameScript(0, frame1);
}
function frame1(){
initStats(((Math.random() * 5) + 2.5), 40, (0.02 + (Math.random() * 0.015)));
}
}
}//package
Section 235
//GunSpark_Kitchen (GunSpark_Kitchen)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class GunSpark_Kitchen extends Particle {
public function GunSpark_Kitchen(){
addFrameScript(0, frame1);
}
function frame1(){
initStats(((Math.random() * 5) + 2.5), 40, (0.02 + (Math.random() * 0.015)));
}
}
}//package
Section 236
//GunSpark_Resto (GunSpark_Resto)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class GunSpark_Resto extends Particle {
public function GunSpark_Resto(){
addFrameScript(0, frame1);
}
function frame1(){
initStats(((Math.random() * 5) + 2.5), 40, (0.02 + (Math.random() * 0.015)));
}
}
}//package
Section 237
//GunSpark_Train (GunSpark_Train)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class GunSpark_Train extends Particle {
public function GunSpark_Train(){
addFrameScript(0, frame1);
}
function frame1(){
initStats(((Math.random() * 5) + 2.5), 40, (0.02 + (Math.random() * 0.015)));
}
}
}//package
Section 238
//Joint (Joint)
package {
import flash.media.*;
public dynamic class Joint extends Sound {
}
}//package
Section 239
//Kitchen01 (Kitchen01)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import gameplay.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Kitchen01 extends Level {
public function Kitchen01(){
addFrameScript(0, frame1);
}
function frame1(){
spark = "GunSpark_Kitchen";
setLvL("Kitchen01", 2);
}
}
}//package
Section 240
//lava1 (lava1)
package {
import tools.*;
public dynamic class lava1 extends ScrollObject {
}
}//package
Section 241
//lava2 (lava2)
package {
import tools.*;
public dynamic class lava2 extends ScrollObject {
}
}//package
Section 242
//Level_01_comptoir (Level_01_comptoir)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Level_01_comptoir extends ScrollObject {
public function Level_01_comptoir(){
addFrameScript(32, frame33);
}
function frame33(){
stop();
}
}
}//package
Section 243
//Level01_arcade (Level01_arcade)
package {
import tools.*;
public dynamic class Level01_arcade extends ScrollObject {
}
}//package
Section 244
//Level01_bg (Level01_bg)
package {
import tools.*;
public dynamic class Level01_bg extends ScrollObject {
}
}//package
Section 245
//Level01_exit (Level01_exit)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Level01_exit extends UseObject {
public function Level01_exit(){
addFrameScript(0, frame1);
}
public function exit():void{
MovieClip(parent).nextLevel("Kitchen01");
}
function frame1(){
targetFunc = exit;
}
}
}//package
Section 246
//Level01_kitchen (Level01_kitchen)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Level01_kitchen extends ScrollObject {
public function Level01_kitchen(){
addFrameScript(0, frame1);
}
function frame1(){
speed = 0.85;
}
}
}//package
Section 247
//Level02_bg (Level02_bg)
package {
import tools.*;
public dynamic class Level02_bg extends ScrollObject {
}
}//package
Section 248
//Level02_exit_2 (Level02_exit_2)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Level02_exit_2 extends UseObject {
public function Level02_exit_2(){
addFrameScript(0, frame1);
}
public function exit():void{
MovieClip(parent).nextLevel("Factory01");
}
function frame1(){
targetFunc = exit;
}
}
}//package
Section 249
//Level02_resto (Level02_resto)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Level02_resto extends ScrollObject {
public function Level02_resto(){
addFrameScript(0, frame1);
}
function frame1(){
speed = 0.85;
}
}
}//package
Section 250
//MainMenu (MainMenu)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class MainMenu extends MovieClip {
public var levelNames:Array;
public var keyNames:Array;
public var checkKey:Boolean;
public var siteNames:Array;
public var i:int;
public var j:int;
public var smeg:Array;
public var k:int;
public var ind_quality:MovieClip;
public var keymsg:MovieClip;
public var h1:SimpleButton;
public var h2:SimpleButton;
public var h3:SimpleButton;
public var h4:SimpleButton;
public var nextUp:String;
public var b_play:SimpleButton;
public var targetKey:String;
public var specialFunc:Function;
public var arrowInd:MovieClip;
public var fadeOut:MovieClip;
public var allKeys:Array;
public var l1:MovieClip;
public var l3:MovieClip;
public var l4:MovieClip;
public var l5:MovieClip;
public var l8:MovieClip;
public var l2:MovieClip;
public var l7:MovieClip;
public var l9:MovieClip;
public var l6:MovieClip;
public var b_level:SimpleButton;
public var graine:SimpleButton;
public var pMusic:SimpleButton;
public var l10:MovieClip;
public var l11:MovieClip;
public var b_credits:SimpleButton;
public var p1:SimpleButton;
public var p2:SimpleButton;
public var p3:SimpleButton;
public var ind_music:MovieClip;
public var b_options:SimpleButton;
public var txt2:TextField;
public var txt3:TextField;
public var txt1:TextField;
public var p4:SimpleButton;
public var pQual:SimpleButton;
public var txt4:TextField;
public function MainMenu(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
public function clearLevels():void{
var _local1:int;
_local1 = 0;
while (_local1 < 11) {
smeg[_local1].removeEventListener("click", c_event);
_local1++;
};
}
public function clickVol(_arg1:MouseEvent):void{
switch (MovieClip(root).saveData["son"]){
case 0:
MovieClip(root).saveData["son"] = 1;
break;
case 1:
MovieClip(root).saveData["son"] = 0;
break;
default:
break;
};
MovieClip(root).saveGame();
updateInd();
}
public function c_event2(_arg1:MouseEvent):void{
var _local2:*;
var _local3:URLRequest;
_local2 = siteNames[smeg.indexOf(_arg1.target)];
_local3 = new URLRequest(_local2);
navigateToURL(_local3, "_blank");
}
public function c_event3(_arg1:MouseEvent):void{
checkKey = true;
graine.visible = true;
graine.addEventListener("click", cancelKey, false, 0, true);
stage.addEventListener("keyDown", tryKey, false, 0, true);
stage.focus = stage;
targetKey = keyNames[smeg.indexOf(_arg1.target)];
MovieClip(arrowInd).gotoAndStop(keyNames[smeg.indexOf(_arg1.target)]);
}
public function updateInd():void{
MovieClip(ind_music).gotoAndStop((MovieClip(root).saveData["son"] + 1));
MovieClip(ind_quality).gotoAndStop(MovieClip(root).saveData["quality"]);
}
function frame2(){
stop();
}
function frame3(){
smeg = new Array();
i = 1;
while (i < 12) {
smeg.push(this[("l" + i)]);
this[("l" + i)].addEventListener("click", c_event, false, 0, true);
i++;
};
specialFunc = clearLevels;
}
function frame4(){
updateInd();
pMusic.addEventListener("click", clickVol, false, 0, true);
pQual.addEventListener("click", clickQual, false, 0, true);
specialFunc = clearOptions;
smeg = new Array();
k = 1;
while (k < 5) {
smeg.push(this[("h" + k)]);
this[("h" + k)].addEventListener("click", c_event3, false, 0, true);
k++;
};
graine.visible = false;
setKeyNames();
}
function frame5(){
smeg = new Array();
j = 1;
while (j < 5) {
smeg.push(this[("p" + j)]);
this[("p" + j)].addEventListener("click", c_event2, false, 0, true);
j++;
};
specialFunc = clearCredits;
}
function frame1(){
levelNames = new Array("Anim_Intro", "Kitchen01", "Factory01", "Factory02", "Factory03", "Factory04", "Train01", "Train02", "Train03", "Boss01", "Boss02");
siteNames = new Array("http://ultrapitchfork.newgrounds.com", "http://joelasticot.newgrounds.com", "http://www.hopeku.com", "http://www.newgrounds.com");
keyNames = new Array("kLeft", "kRight", "kUp", "kUse");
checkKey = false;
allKeys = new Array();
allKeys[65] = "A";
allKeys[66] = "B";
allKeys[67] = "C";
allKeys[68] = "D";
allKeys[69] = "E";
allKeys[70] = "F";
allKeys[71] = "G";
allKeys[72] = "H";
allKeys[73] = "I";
allKeys[74] = "J";
allKeys[75] = "K";
allKeys[76] = "L";
allKeys[77] = "M";
allKeys[78] = "N";
allKeys[79] = "O";
allKeys[80] = "P";
allKeys[81] = "Q";
allKeys[82] = "R";
allKeys[83] = "S";
allKeys[84] = "T";
allKeys[85] = "U";
allKeys[86] = "V";
allKeys[87] = "W";
allKeys[88] = "X";
allKeys[89] = "Y";
allKeys[90] = "Z";
allKeys[32] = "space";
allKeys[37] = "left";
allKeys[38] = "up";
allKeys[39] = "right";
allKeys[40] = "down";
b_play.addEventListener("click", c_play, false, 0, true);
b_level.addEventListener("click", c_level, false, 0, true);
b_options.addEventListener("click", c_options, false, 0, true);
b_credits.addEventListener("click", c_credits, false, 0, true);
specialFunc = null;
}
public function tryKey(_arg1:KeyboardEvent):void{
var _local2:int;
_local2 = _arg1.keyCode;
if (_local2 == MovieClip(root).saveData[targetKey]){
cancelKey();
} else {
if ((((((((_local2 == MovieClip(root).saveData["kUp"])) || ((_local2 == MovieClip(root).saveData["kLeft"])))) || ((_local2 == MovieClip(root).saveData["kRight"])))) || ((_local2 == MovieClip(root).saveData["kUse"])))){
MovieClip(keymsg).gotoAndStop("inuse");
} else {
if ((((((((((_local2 < 65)) && ((_local2 > 40)))) || ((_local2 > 90)))) || ((((_local2 < 37)) && ((_local2 > 32)))))) || ((_local2 < 32)))){
MovieClip(keymsg).gotoAndStop("cant");
} else {
MovieClip(root).saveData[targetKey] = _local2;
cancelKey();
};
};
};
MovieClip(root).saveGame();
}
public function c_level(_arg1:MouseEvent):void{
if (currentLabel != "levels"){
if (specialFunc != null){
specialFunc();
};
gotoAndStop("levels");
};
}
public function setKeyNames():void{
txt1.text = allKeys[MovieClip(root).saveData["kLeft"]];
txt2.text = allKeys[MovieClip(root).saveData["kRight"]];
txt3.text = allKeys[MovieClip(root).saveData["kUp"]];
txt4.text = allKeys[MovieClip(root).saveData["kUse"]];
}
public function c_credits(_arg1:MouseEvent):void{
if (currentLabel != "credits"){
if (specialFunc != null){
specialFunc();
};
gotoAndStop("credits");
};
}
public function c_options(_arg1:MouseEvent):void{
if (currentLabel != "options"){
if (specialFunc != null){
specialFunc();
};
gotoAndStop("options");
};
}
public function clickQual(_arg1:MouseEvent):void{
switch (MovieClip(root).saveData.quality){
case "high":
stage.quality = "low";
MovieClip(root).saveData["quality"] = "low";
break;
case "medium":
stage.quality = "high";
MovieClip(root).saveData["quality"] = "high";
break;
case "low":
stage.quality = "medium";
MovieClip(root).saveData["quality"] = "medium";
break;
default:
break;
};
MovieClip(root).saveGame();
updateInd();
}
public function cancelKey(_arg1:MouseEvent=null):void{
MovieClip(arrowInd).gotoAndStop(1);
setKeyNames();
MovieClip(keymsg).gotoAndStop("none");
checkKey = false;
graine.visible = false;
graine.removeEventListener("click", cancelKey);
stage.removeEventListener("keyDown", tryKey);
}
public function c_play(_arg1:MouseEvent):void{
if (specialFunc != null){
specialFunc();
};
nextUp = "Anim_Intro";
MovieClip(fadeOut).play();
clearEvents();
}
public function clearOptions():void{
var _local1:int;
pMusic.removeEventListener("click", clickVol);
pQual.removeEventListener("click", clickQual);
_local1 = 0;
while (_local1 < 4) {
smeg[_local1].removeEventListener("click", c_event3);
_local1++;
};
}
public function clearCredits():void{
var _local1:int;
_local1 = 0;
while (_local1 < 4) {
smeg[_local1].removeEventListener("click", c_event2);
_local1++;
};
}
public function clearEvents():void{
b_play.removeEventListener("click", c_play);
b_level.removeEventListener("click", c_level);
b_options.removeEventListener("click", c_options);
b_credits.removeEventListener("click", c_credits);
if (specialFunc != null){
specialFunc();
};
}
public function c_event(_arg1:MouseEvent):void{
nextUp = levelNames[smeg.indexOf(_arg1.target)];
MovieClip(fadeOut).play();
clearEvents();
}
}
}//package
Section 251
//Master (Master)
package {
import flash.display.*;
import gameplay.*;
import tools.*;
import flash.ui.*;
public class Master extends MovieClip {
private var nextLevel:String;
private var customMenu:ContextMenu;
private var preloader:MovieClip;
private var c_content:MovieClip;
public var mc_content:MovieClip;
private var player:Player;
private var game:Game;
public static var key:KeyManager = new KeyManager();
public function Master(){
customMenu = new ContextMenu();
super();
customMenu.hideBuiltInItems();
contextMenu = customMenu;
customMenu.addEventListener("menuSelect", key.resetKeys, false, 0, true);
stage.addEventListener("deactivate", key.resetKeys, false, 0, true);
addChild(key);
key.setControl("use", MovieClip(root).saveData.kUse);
key.setControl("up", MovieClip(root).saveData.kUp);
key.setControl("left", MovieClip(root).saveData.kLeft);
key.setControl("right", MovieClip(root).saveData.kRight);
c_content = MovieClip(mc_content);
start_menu();
}
public function start_menu():void{
cleanUp();
c_content.addChild(new MainMenu());
}
public function updateKeys():void{
key.setControl("use", MovieClip(root).saveData.kUse);
key.setControl("up", MovieClip(root).saveData.kUp);
key.setControl("left", MovieClip(root).saveData.kLeft);
key.setControl("right", MovieClip(root).saveData.kRight);
}
public function start_game(_arg1:String):void{
updateKeys();
cleanUp();
game = new Game(_arg1);
c_content.addChild(game);
stage.focus = stage;
}
private function cleanUp():void{
while (c_content.numChildren) {
c_content.removeChildAt(0);
};
}
}
}//package
Section 252
//MeatChunk (MeatChunk)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class MeatChunk extends Particle {
public function MeatChunk(){
addFrameScript(0, frame1);
}
function frame1(){
initStats(((Math.random() * 2.5) + 6), 5, (0.02 + (Math.random() * 0.015)));
}
}
}//package
Section 253
//MeatisMurder (MeatisMurder)
package {
import flash.display.*;
public dynamic class MeatisMurder extends BitmapData {
public function MeatisMurder(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 254
//meatprocessor (meatprocessor)
package {
import tools.*;
public dynamic class meatprocessor extends ScrollObject {
}
}//package
Section 255
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 256
//Organ_1 (Organ_1)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Organ_1 extends Particle {
public function Organ_1(){
addFrameScript(0, frame1);
}
function frame1(){
initStats(((Math.random() * 6.5) + 4.5), 45, 0.015);
}
}
}//package
Section 257
//Organ_2 (Organ_2)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Organ_2 extends Particle {
public function Organ_2(){
addFrameScript(0, frame1);
}
function frame1(){
initStats(((Math.random() * 6.5) + 4.5), 45, 0.015);
}
}
}//package
Section 258
//Organ_3 (Organ_3)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Organ_3 extends Particle {
public function Organ_3(){
addFrameScript(0, frame1);
}
function frame1(){
initStats(((Math.random() * 6.5) + 4.5), 45, 0.015);
}
}
}//package
Section 259
//Panneau (Panneau)
package {
import tools.*;
public dynamic class Panneau extends ScrollObject {
}
}//package
Section 260
//Part1 (Part1)
package {
import tools.*;
public dynamic class Part1 extends ScrollObject {
}
}//package
Section 261
//PolygonalVictory (PolygonalVictory)
package {
import flash.display.*;
public dynamic class PolygonalVictory extends BitmapData {
public function PolygonalVictory(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 262
//PowerDown (PowerDown)
package {
import flash.media.*;
public dynamic class PowerDown extends Sound {
}
}//package
Section 263
//Preloader (Preloader)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Preloader extends MovieClip {
public var bar:MovieClip;
public var b2009:SimpleButton;
public var b2006:SimpleButton;
public var b2007:SimpleButton;
public var poop:MovieClip;
public var b2008:SimpleButton;
public var playBTN;
public var shit:MovieClip;
public function Preloader(){
addFrameScript(0, frame1);
}
public function runtime(_arg1:Event):void{
var _local2:String;
var _local3:*;
_local2 = loaderInfo.url;
_local3 = (((stage.loaderInfo.bytesLoaded / stage.loaderInfo.bytesTotal) * 100) + 1);
MovieClip(bar).gotoAndStop(Math.ceil(_local3));
if (_local3 == 101){
removeEventListener(Event.ENTER_FRAME, runtime);
};
}
public function click_2006(_arg1:MouseEvent):void{
loadURL("http://www.newgrounds.com/collection/picoday2006");
}
public function click_2007(_arg1:MouseEvent):void{
loadURL("http://www.newgrounds.com/collection/picoday2007");
}
public function click_2009(_arg1:MouseEvent):void{
loadURL("http://www.newgrounds.com/collection/picoday2009");
}
public function click_2008(_arg1:MouseEvent):void{
loadURL("http://www.newgrounds.com/collection/picoday2008");
}
public function enablePlay(_arg1):void{
playBTN = _arg1;
playBTN.addEventListener(MouseEvent.CLICK, playGame, false, 0, true);
}
function frame1(){
b2006.addEventListener(MouseEvent.CLICK, click_2006, false, 0, true);
b2007.addEventListener(MouseEvent.CLICK, click_2007, false, 0, true);
b2008.addEventListener(MouseEvent.CLICK, click_2008, false, 0, true);
b2009.addEventListener(MouseEvent.CLICK, click_2009, false, 0, true);
addEventListener(Event.ENTER_FRAME, runtime, false, 0, true);
}
public function playGame(_arg1:Event):void{
var _local2:String;
clearEvents();
_local2 = loaderInfo.url;
_local2 = loaderInfo.url;
MovieClip(root).gotoAndStop(3);
}
public function loadURL(_arg1:String):void{
var _local2:URLRequest;
_local2 = new URLRequest(_arg1);
navigateToURL(_local2, "_blank");
}
public function clearEvents():void{
b2006.removeEventListener(MouseEvent.CLICK, click_2006);
b2007.removeEventListener(MouseEvent.CLICK, click_2007);
b2008.removeEventListener(MouseEvent.CLICK, click_2008);
b2009.removeEventListener(MouseEvent.CLICK, click_2009);
playBTN.removeEventListener(MouseEvent.CLICK, playGame);
}
}
}//package
Section 264
//Resto_far1 (Resto_far1)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Resto_far1 extends ScrollObject {
public function Resto_far1(){
addFrameScript(0, frame1);
}
function frame1(){
speed = 0.85;
}
}
}//package
Section 265
//Resto_far2 (Resto_far2)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Resto_far2 extends ScrollObject {
public function Resto_far2(){
addFrameScript(0, frame1);
}
function frame1(){
speed = 0.85;
}
}
}//package
Section 266
//Resto_far3 (Resto_far3)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Resto_far3 extends ScrollObject {
public function Resto_far3(){
addFrameScript(0, frame1);
}
function frame1(){
speed = 0.85;
}
}
}//package
Section 267
//Resto01 (Resto01)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import gameplay.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Resto01 extends Level {
public function Resto01(){
addFrameScript(0, frame1);
}
function frame1(){
MovieClip(k1).diff = 2;
MovieClip(k2).diff = 3;
MovieClip(k3).diff = 2;
MovieClip(k4).diff = 2;
setLvL("Resto01", 1);
}
}
}//package
Section 268
//Rooster (Rooster)
package {
import flash.media.*;
public dynamic class Rooster extends Sound {
}
}//package
Section 269
//Rumble (Rumble)
package {
import flash.media.*;
public dynamic class Rumble extends Sound {
}
}//package
Section 270
//Saw (Saw)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Saw extends ScrollObject {
public function Saw(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
gotoAndPlay(2);
}
function frame1(){
gotoAndPlay((Math.ceil((Math.random() * 4)) + 1));
}
}
}//package
Section 271
//SawBG (SawBG)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class SawBG extends ScrollObject {
public function SawBG(){
addFrameScript(0, frame1);
}
function frame1(){
speed = 0.2;
}
}
}//package
Section 272
//SawLoop (SawLoop)
package {
import flash.media.*;
public dynamic class SawLoop extends Sound {
}
}//package
Section 273
//Slicer_1 (Slicer_1)
package {
import flash.media.*;
public dynamic class Slicer_1 extends Sound {
}
}//package
Section 274
//Slicer_2 (Slicer_2)
package {
import flash.media.*;
public dynamic class Slicer_2 extends Sound {
}
}//package
Section 275
//Slicer_3 (Slicer_3)
package {
import flash.media.*;
public dynamic class Slicer_3 extends Sound {
}
}//package
Section 276
//SlicerAttack_1 (SlicerAttack_1)
package {
import flash.media.*;
public dynamic class SlicerAttack_1 extends Sound {
}
}//package
Section 277
//SlicerAttack_2 (SlicerAttack_2)
package {
import flash.media.*;
public dynamic class SlicerAttack_2 extends Sound {
}
}//package
Section 278
//SlicerAttack_3 (SlicerAttack_3)
package {
import flash.media.*;
public dynamic class SlicerAttack_3 extends Sound {
}
}//package
Section 279
//Smoke_Train (Smoke_Train)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Smoke_Train extends Particle {
public function Smoke_Train(){
addFrameScript(0, frame1);
}
function frame1(){
initStats(((Math.random() * 6.5) + 4.5), 30, (0.02 + (Math.random() * 0.015)));
}
}
}//package
Section 280
//solid1 (solid1)
package {
import tools.*;
public dynamic class solid1 extends ScrollObject {
}
}//package
Section 281
//solid2 (solid2)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class solid2 extends ScrollObject {
public function solid2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 282
//solid3 (solid3)
package {
import tools.*;
public dynamic class solid3 extends ScrollObject {
}
}//package
Section 283
//SongBoss (SongBoss)
package {
import flash.media.*;
public dynamic class SongBoss extends Sound {
}
}//package
Section 284
//SongFactory (SongFactory)
package {
import flash.media.*;
public dynamic class SongFactory extends Sound {
}
}//package
Section 285
//SongResto (SongResto)
package {
import flash.media.*;
public dynamic class SongResto extends Sound {
}
}//package
Section 286
//SongTrain (SongTrain)
package {
import flash.media.*;
public dynamic class SongTrain extends Sound {
}
}//package
Section 287
//Spark_Train (Spark_Train)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Spark_Train extends Particle {
public function Spark_Train(){
addFrameScript(0, frame1);
}
function frame1(){
initStats(((Math.random() * 6.5) + 4.5), 45, (0.02 + (Math.random() * 0.015)));
}
}
}//package
Section 288
//Tabarnac (Tabarnac)
package {
import flash.display.*;
import flash.events.*;
import tools.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
public class Tabarnac extends MovieClip {
public var mc_loader:Preloader;
private var canPlay:Boolean;// = true
private var gameMaster;
public var save_quality:String;
private var percent:int;
public var medal_popup:MovieClip;
public var customMenu:ContextMenu;
public var save_level:int;
private var saveFile:SharedObject;
public var canMeat:Boolean;
public var jukebox:JukeBox;
public var newgroundsAPIconnector:MovieClip;
public var box:MovieClip;
public var saveData:Array;
public var API_Settings:Object;
private var loaderMC:MovieClip;
public var totalKills:Number;// = 0
public var save_son:int;
public function Tabarnac(){
var _local1:String;
canPlay = true;
totalKills = 0;
jukebox = new JukeBox();
super();
addFrameScript(0, frame1, 2, frame3, 3, frame4);
saveFile = SharedObject.getLocal("PicoDayGame_release");
if (saveFile.data.saveData == undefined){
saveData = new Array();
saveData["level"] = 1;
saveData["quality"] = "high";
saveData["son"] = 1;
saveData["kUp"] = 87;
saveData["kLeft"] = 65;
saveData["kRight"] = 68;
saveData["kUse"] = 69;
saveGame();
} else {
saveData = saveFile.data.saveData;
stage.quality = saveData["quality"];
jukebox.vol2 = saveData["son"];
};
_local1 = loaderInfo.url;
if (_local1.indexOf("file:///") != -1){
fscommand("allowScale", "false");
};
stop();
}
public function clickGoto(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.newgrounds.com/portal/view/493626");
navigateToURL(_local2, "_blank");
}
public function saveGame():void{
jukebox.vol2 = saveData["son"];
saveFile.data.saveData = saveData;
saveFile.flush();
}
function frame3(){
stop();
}
function frame1(){
stop();
customMenu = new ContextMenu();
customMenu.hideBuiltInItems();
contextMenu = customMenu;
API_Settings = {movie_id:6588, enc_key:"RNHJwZVkGw2cZRTvt0qKAkKAcSBDTZii", debug_mode:false, movie_version:""};
newgroundsAPIconnector.initialize(API_Settings);
MochiBot.track(this, "96877759");
}
public function playGame(_arg1:MouseEvent):void{
if (canPlay){
};
}
function frame4(){
box.addEventListener(MouseEvent.CLICK, clickGoto, false, 0, true);
}
}
}//package
Section 289
//tapis (tapis)
package {
import tools.*;
public dynamic class tapis extends ScrollObject {
}
}//package
Section 290
//tapis1 (tapis1)
package {
import tools.*;
public dynamic class tapis1 extends ScrollObject {
}
}//package
Section 291
//TapisLeft (TapisLeft)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class TapisLeft extends MoveHero {
public function TapisLeft(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
speed = -7.5;
}
function frame2(){
speed = -7.5;
}
}
}//package
Section 292
//TapisRight (TapisRight)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class TapisRight extends MoveHero {
public function TapisRight(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
speed = 7.5;
}
function frame2(){
speed = 7.5;
}
}
}//package
Section 293
//Tender_1 (Tender_1)
package {
import flash.media.*;
public dynamic class Tender_1 extends Sound {
}
}//package
Section 294
//Tender_2 (Tender_2)
package {
import flash.media.*;
public dynamic class Tender_2 extends Sound {
}
}//package
Section 295
//Tenderizer_Die (Tenderizer_Die)
package {
import flash.media.*;
public dynamic class Tenderizer_Die extends Sound {
}
}//package
Section 296
//Thud (Thud)
package {
import flash.media.*;
public dynamic class Thud extends Sound {
}
}//package
Section 297
//Track03_bg3 (Track03_bg3)
package {
import tools.*;
public dynamic class Track03_bg3 extends ScrollObject {
}
}//package
Section 298
//Train01 (Train01)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import gameplay.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Train01 extends Level {
public function Train01(){
addFrameScript(0, frame1);
}
function frame1(){
spark = "GunSpark_Train";
MovieClip(t0).setTrack(MovieClip(mytrack).t0);
MovieClip(t1).setTrack(MovieClip(mytrack).t1);
MovieClip(mc_car).setTrack(mytrack);
setLvL("Train01", 7);
}
}
}//package
Section 299
//Train01_exit (Train01_exit)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Train01_exit extends UseObject {
public function Train01_exit(){
addFrameScript(0, frame1);
}
public function exit():void{
MovieClip(parent).nextLevel("Train02");
}
function frame1(){
targetFunc = exit;
}
}
}//package
Section 300
//Train01_mapP2 (Train01_mapP2)
package {
import tools.*;
public dynamic class Train01_mapP2 extends ScrollObject {
}
}//package
Section 301
//train01_part1 (train01_part1)
package {
import tools.*;
public dynamic class train01_part1 extends ScrollObject {
}
}//package
Section 302
//Train01_track1 (Train01_track1)
package {
import tools.*;
public dynamic class Train01_track1 extends ScrollObject {
}
}//package
Section 303
//Train01_track2 (Train01_track2)
package {
import tools.*;
public dynamic class Train01_track2 extends ScrollObject {
}
}//package
Section 304
//Train02 (Train02)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import gameplay.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Train02 extends Level {
public function Train02(){
addFrameScript(0, frame1);
}
function frame1(){
spark = "GunSpark_Train";
MovieClip(t0).setTrack(MovieClip(tabarnac).t0);
MovieClip(mc_car).setTrack(tabarnac);
setLvL("Train02", 8);
}
}
}//package
Section 305
//Train02_bg (Train02_bg)
package {
import tools.*;
public dynamic class Train02_bg extends ScrollObject {
}
}//package
Section 306
//Train02_end (Train02_end)
package {
import tools.*;
public dynamic class Train02_end extends ScrollObject {
}
}//package
Section 307
//Train02_exit (Train02_exit)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Train02_exit extends UseObject {
public function Train02_exit(){
addFrameScript(0, frame1);
}
public function exit():void{
MovieClip(parent).nextLevel("Train03");
}
function frame1(){
targetFunc = exit;
}
}
}//package
Section 308
//Train02_p1 (Train02_p1)
package {
import tools.*;
public dynamic class Train02_p1 extends ScrollObject {
}
}//package
Section 309
//Train02_track1 (Train02_track1)
package {
import tools.*;
public dynamic class Train02_track1 extends ScrollObject {
}
}//package
Section 310
//Train02_track2 (Train02_track2)
package {
import tools.*;
public dynamic class Train02_track2 extends ScrollObject {
}
}//package
Section 311
//Train03 (Train03)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import gameplay.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Train03 extends Level {
public function Train03(){
addFrameScript(0, frame1);
}
function frame1(){
spark = "GunSpark_Train";
MovieClip(t0).setTrack(MovieClip(calice3).t0);
MovieClip(t1).setTrack(MovieClip(calice3).t1);
MovieClip(t2).setTrack(MovieClip(calice3).t2);
MovieClip(mc_car).setTrack(calice3);
setLvL("Train03", 9);
}
}
}//package
Section 312
//Train03_bg1 (Train03_bg1)
package {
import tools.*;
public dynamic class Train03_bg1 extends ScrollObject {
}
}//package
Section 313
//Train03_bg2 (Train03_bg2)
package {
import tools.*;
public dynamic class Train03_bg2 extends ScrollObject {
}
}//package
Section 314
//Train03_exit (Train03_exit)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Train03_exit extends UseObject {
public function Train03_exit(){
addFrameScript(0, frame1);
}
public function exit():void{
MovieClip(parent).nextLevel("Boss01");
}
function frame1(){
targetFunc = exit;
}
}
}//package
Section 315
//Train03_track1 (Train03_track1)
package {
import tools.*;
public dynamic class Train03_track1 extends ScrollObject {
}
}//package
Section 316
//Train03_track2 (Train03_track2)
package {
import tools.*;
public dynamic class Train03_track2 extends ScrollObject {
}
}//package
Section 317
//TrainJump_1 (TrainJump_1)
package {
import flash.media.*;
public dynamic class TrainJump_1 extends Sound {
}
}//package
Section 318
//TrainJump_2 (TrainJump_2)
package {
import flash.media.*;
public dynamic class TrainJump_2 extends Sound {
}
}//package
Section 319
//TrainLand_1 (TrainLand_1)
package {
import flash.media.*;
public dynamic class TrainLand_1 extends Sound {
}
}//package
Section 320
//TrainLand_2 (TrainLand_2)
package {
import flash.media.*;
public dynamic class TrainLand_2 extends Sound {
}
}//package
Section 321
//TrainRoll (TrainRoll)
package {
import flash.media.*;
public dynamic class TrainRoll extends Sound {
}
}//package
Section 322
//tubes (tubes)
package {
import tools.*;
public dynamic class tubes extends ScrollObject {
}
}//package
Section 323
//TwicetheFun (TwicetheFun)
package {
import flash.display.*;
public dynamic class TwicetheFun extends BitmapData {
public function TwicetheFun(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 324
//WallHit_1 (WallHit_1)
package {
import flash.media.*;
public dynamic class WallHit_1 extends Sound {
}
}//package
Section 325
//WallHit_2 (WallHit_2)
package {
import flash.media.*;
public dynamic class WallHit_2 extends Sound {
}
}//package
Section 326
//WallHit_3 (WallHit_3)
package {
import flash.media.*;
public dynamic class WallHit_3 extends Sound {
}
}//package
Section 327
//WoodShard (WoodShard)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tools.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class WoodShard extends Particle {
public function WoodShard(){
addFrameScript(0, frame1);
}
function frame1(){
initStats(((Math.random() * 6) + 14), 5, (0.02 + (Math.random() * 0.015)));
}
}
}//package
Section 328
//VulgarDisplayofPower (VulgarDisplayofPower)
package {
import flash.display.*;
public dynamic class VulgarDisplayofPower extends BitmapData {
public function VulgarDisplayofPower(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package