Section 1
//Base64 (be.boulevart.as3.security.Base64)
package be.boulevart.as3.security {
public class Base64 {
protected static var base64chars:String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
public static function decode(_arg1:String):String{
var _local2:Number;
var _local3:String;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
_local2 = 0;
_local3 = new String("");
while (_local2 < _arg1.length) {
var _temp1 = _local2;
_local2 = (_local2 + 1);
_local7 = base64chars.indexOf(_arg1.charAt(_temp1));
var _temp2 = _local2;
_local2 = (_local2 + 1);
_local8 = base64chars.indexOf(_arg1.charAt(_temp2));
var _temp3 = _local2;
_local2 = (_local2 + 1);
_local9 = base64chars.indexOf(_arg1.charAt(_temp3));
var _temp4 = _local2;
_local2 = (_local2 + 1);
_local10 = base64chars.indexOf(_arg1.charAt(_temp4));
_local4 = ((_local7 << 2) | (_local8 >> 4));
_local5 = (((_local8 & 15) << 4) | (_local9 >> 2));
_local6 = (((_local9 & 3) << 6) | _local10);
_local3 = (_local3 + String.fromCharCode(_local4));
if (_local9 != 64){
_local3 = (_local3 + String.fromCharCode(_local5));
};
if (_local10 != 64){
_local3 = (_local3 + String.fromCharCode(_local6));
};
};
return (_local3);
}
public static function encode(_arg1:String):String{
var _local2:Number;
var _local3:String;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
_local2 = 0;
_local3 = new String("");
while (_local2 < _arg1.length) {
var _temp1 = _local2;
_local2 = (_local2 + 1);
_local4 = _arg1.charCodeAt(_temp1);
var _temp2 = _local2;
_local2 = (_local2 + 1);
_local5 = _arg1.charCodeAt(_temp2);
var _temp3 = _local2;
_local2 = (_local2 + 1);
_local6 = _arg1.charCodeAt(_temp3);
_local7 = (_local4 >> 2);
_local8 = (((_local4 & 3) << 4) | (_local5 >> 4));
_local9 = (((_local5 & 15) << 2) | (_local6 >> 6));
_local10 = (_local6 & 63);
if (isNaN(_local5)){
_local10 = 64;
_local9 = _local10;
} else {
if (isNaN(_local6)){
_local10 = 64;
};
};
_local3 = (_local3 + (base64chars.charAt(_local7) + base64chars.charAt(_local8)));
_local3 = (_local3 + (base64chars.charAt(_local9) + base64chars.charAt(_local10)));
};
return (_local3);
}
}
}//package be.boulevart.as3.security
Section 2
//Base8 (be.boulevart.as3.security.Base8)
package be.boulevart.as3.security {
public class Base8 {
public static function decode(_arg1:String):String{
var _local2:String;
var _local3:Number;
_local2 = new String("");
_local3 = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode(parseInt(_arg1.substr(_local3, 2), 16)));
_local3 = (_local3 + 2);
};
return (_local2);
}
public static function encode(_arg1:String):String{
var _local2:String;
var _local3:Number;
_local2 = new String("");
_local3 = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + _arg1.charCodeAt(_local3).toString(16));
_local3++;
};
return (_local2);
}
}
}//package be.boulevart.as3.security
Section 3
//Encryption (be.boulevart.as3.security.Encryption)
package be.boulevart.as3.security {
public class Encryption {
protected var keySize:Number;
protected var input:String;
protected var isBase8orBase64:Boolean;// = false
protected var isTEAorRC4:Boolean;// = false
protected var encryptionType:Object;
protected var isLZW:Boolean;// = false
protected var isGoauldorMD5orROT13orSHA1:Boolean;// = false
protected var mode:String;
protected var key:String;
protected var isRijndael:Boolean;// = false
protected var blockSize:Number;
protected var r:Rijndael;
public function Encryption(_arg1:Object, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:Number){
isBase8orBase64 = false;
isTEAorRC4 = false;
isGoauldorMD5orROT13orSHA1 = false;
isRijndael = false;
isLZW = false;
super();
if (_arg1 != null){
this.setEncryptionType(_arg1);
};
if (_arg2 != null){
this.setInput(_arg2);
};
if (_arg3 != null){
this.setKey(_arg3);
};
if (_arg4 != null){
this.setMode(_arg4);
};
switch (_arg1){
case Base8:
this.isBase8orBase64 = true;
break;
case Base64:
this.isBase8orBase64 = true;
break;
case SHA1:
this.isGoauldorMD5orROT13orSHA1 = true;
break;
case MD5:
this.isGoauldorMD5orROT13orSHA1 = true;
break;
case RC4:
this.isTEAorRC4 = true;
break;
case TEA:
this.isTEAorRC4 = true;
break;
case LZW:
this.isLZW = true;
break;
case ROT13:
this.isGoauldorMD5orROT13orSHA1 = true;
break;
case Goauld:
this.isGoauldorMD5orROT13orSHA1 = true;
break;
case Rijndael:
this.isRijndael = true;
if (((!((this.keySize == undefined))) && (!((this.blockSize == undefined))))){
r = new Rijndael(_arg5, _arg6);
} else {
if (this.keySize != undefined){
r = new Rijndael(_arg5, null);
} else {
if (this.blockSize != undefined){
r = new Rijndael(null, _arg6);
} else {
r = new Rijndael(null, null);
};
};
};
break;
};
}
protected function setInput(_arg1:String):void{
input = _arg1;
}
public function decryptRijndael():void{
if (!isRijndael){
throw (new Error("Deze functie is ongeldig voor het gekozen encryptietype! Functie 'decryptRijndael' kan enkel aangeroepen worden voor een Rijndael decryptie."));
};
if ((((((this.getInput().length > 0)) && ((this.getKey().length > 0)))) && ((this.getMode().length > 0)))){
this.setInput(r.decrypt(this.getInput(), this.getKey(), this.getMode()));
} else {
if (this.getInput().length <= 0){
throw (new Error("Input string bestaat niet"));
};
if (this.getKey().length <= 0){
throw (new Error("Geen key opgegeven voor de decryptie"));
};
if (this.getMode().length <= 0){
throw (new Error("Geen modus opgegeven voor Rijndael decryptie. Geldige modi zijn CBC en ECB."));
};
};
}
public function decrypt():void{
if (!isTEAorRC4){
throw (new Error("Deze functie is ongeldig voor het gekozen encryptietype! Functie 'decrypt' kan enkel aangeroepen worden voor een TEA of RC4 encryptie."));
};
if ((((this.getInput().length > 0)) && ((this.getKey().length > 0)))){
this.setInput(this.getEncryptionType().decrypt(this.getInput(), this.getKey()));
} else {
if (this.getInput().length <= 0){
throw (new Error("Input string bestaat niet"));
};
if (this.getKey().length <= 0){
throw (new Error("Geen key opgegeven voor de encryptie"));
};
};
}
protected function getEncryptionType():Object{
return (encryptionType);
}
protected function getMode():String{
return (mode);
}
public function getInput():String{
return (input);
}
public function compress():void{
if (!isLZW){
throw (new Error("Deze functie is ongeldig voor het gekozen encryptietype! Functie 'compress' kan enkel aangeroepen worden voor het comprimeren van een string via LZW."));
};
if (this.getInput().length <= 0){
throw (new Error("Input string bestaat niet"));
};
this.setInput(this.getEncryptionType().compress(this.getInput()));
}
public function encode():void{
if (!isBase8orBase64){
throw (new Error("Deze functie is ongeldig voor het gekozen encryptietype! Functie 'encode' kan enkel aangeroepen worden voor een Base8 of Base64 encryptie."));
};
if (this.getInput().length <= 0){
throw (new Error("Input string bestaat niet"));
};
this.setInput(this.getEncryptionType().encode(this.getInput()));
}
public function decompress():void{
if (!isLZW){
throw (new Error("Deze functie is ongeldig voor het gekozen encryptietype! Functie 'decompress' kan enkel aangeroepen worden voor het decomprimeren van een string via LZW."));
};
if (this.getInput().length <= 0){
throw (new Error("Input string bestaat niet"));
};
this.setInput(this.getEncryptionType().decompress(this.getInput()));
}
public function encryptRijndael():void{
if (!isRijndael){
throw (new Error("Deze functie is ongeldig voor het gekozen encryptietype! Functie 'encryptRijndael' kan enkel aangeroepen worden voor een Rijndael encryptie."));
};
if ((((((this.getInput().length > 0)) && ((this.getKey().length > 0)))) && ((this.getMode().length > 0)))){
this.setInput(r.encrypt(this.getInput(), this.getKey(), this.getMode()));
} else {
if (this.getInput().length <= 0){
throw (new Error("Input string bestaat niet"));
};
if (this.getKey().length <= 0){
throw (new Error("Geen key opgegeven voor de encryptie"));
};
if (this.getMode().length <= 0){
throw (new Error("Geen modus opgegeven voor Rijndael encryptie. Geldige modi zijn CBC en ECB."));
};
};
}
public function encrypt():void{
if (!isTEAorRC4){
throw (new Error("Deze functie is ongeldig voor het gekozen encryptietype! Functie 'encrypt' kan enkel aangeroepen worden voor een TEA of RC4 encryptie."));
};
if ((((this.getInput().length > 0)) && ((this.getKey().length > 0)))){
this.setInput(this.getEncryptionType().encrypt(this.getInput(), this.getKey()));
} else {
if (this.getInput().length <= 0){
throw (new Error("Input string bestaat niet"));
};
if (this.getKey().length <= 0){
throw (new Error("Geen key opgegeven voor de encryptie"));
};
};
}
public function calculate():void{
if (!isGoauldorMD5orROT13orSHA1){
throw (new Error("Deze functie is ongeldig voor het gekozen encryptietype! Functie 'calculate' kan enkel aangeroepen worden voor het berekenen van een MD5, SHA1, ROT13 of Goauld string."));
};
if (this.getInput().length <= 0){
throw (new Error("Input string bestaat niet"));
};
this.setInput(this.getEncryptionType().calculate(this.getInput()));
}
protected function getKey():String{
return (key);
}
public function decode():void{
if (!isBase8orBase64){
throw (new Error("Deze functie is ongeldig voor het gekozen encryptietype! Functie 'decode' kan enkel aangeroepen worden voor een Base8 of Base64 decryptie."));
};
if (this.getInput().length <= 0){
throw (new Error("Input string bestaat niet"));
};
this.setInput(this.getEncryptionType().decode(this.getInput()));
}
protected function setEncryptionType(_arg1:Object){
encryptionType = _arg1;
}
protected function setMode(_arg1:String):void{
mode = _arg1;
}
protected function setKey(_arg1:String):void{
key = _arg1;
}
}
}//package be.boulevart.as3.security
Section 4
//EncryptionTypes (be.boulevart.as3.security.EncryptionTypes)
package be.boulevart.as3.security {
public class EncryptionTypes {
protected static var _SHA1:Object = SHA1;
protected static var _LZW:Object = LZW;
protected static var _Base64:Object = Base64;
protected static var _Goauld:Object = Goauld;
protected static var _ROT13:Object = ROT13;
protected static var _Rijndael:Object = Rijndael;
protected static var _RC4:Object = RC4;
protected static var _Base8:Object = Base8;
protected static var _TEA:Object = TEA;
protected static var _MD5:Object = MD5;
public function EncryptionTypes(){
_Base8 = Base8();
_Base64 = Base64();
_SHA1 = SHA1();
_MD5 = MD5();
_RC4 = RC4();
_Rijndael = Rijndael();
_TEA = TEA();
_LZW = LZW();
_ROT13 = ROT13();
_Goauld = Goauld();
}
public static function Rijndael():Object{
return (_Rijndael);
}
public static function LZW():Object{
return (_LZW);
}
public static function ROT13():Object{
return (_ROT13);
}
public static function RC4():Object{
return (_RC4);
}
public static function SHA1():Object{
return (_SHA1);
}
public static function Base8():Object{
return (_Base8);
}
public static function Base64():Object{
return (_Base64);
}
public static function TEA():Object{
return (_TEA);
}
public static function Goauld():Object{
return (_Goauld);
}
public static function MD5():Object{
return (_MD5);
}
}
}//package be.boulevart.as3.security
Section 5
//Goauld (be.boulevart.as3.security.Goauld)
package be.boulevart.as3.security {
public class Goauld {
public static var shiftValue:Number = 6;
public static function calculate(_arg1:String):String{
var _local2:String;
var _local3:Number;
var _local4:Number;
_local2 = new String("");
_local3 = 0;
while (_local3 < _arg1.length) {
_local4 = _arg1.substr(_local3, 1).charCodeAt(0);
_local2 = (_local2 + String.fromCharCode((_local4 ^ shiftValue)));
_local3++;
};
return (_local2);
}
}
}//package be.boulevart.as3.security
Section 6
//LZW (be.boulevart.as3.security.LZW)
package be.boulevart.as3.security {
public class LZW {
public static function compress(_arg1:String):String{
var _local2:String;
var _local3:Number;
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:String;
var _local8:Array;
var _local9:Array;
var _local10:String;
_local3 = 0x0100;
_local4 = _arg1;
_local5 = new Array();
_local6 = 0;
while (_local6 < _local3) {
_local5[String(_local6)] = _local6;
_local6++;
};
_local7 = new String("");
_local8 = _local4.split("");
_local9 = new Array();
_local6 = 0;
while (_local6 <= _local8.length) {
_local10 = _local8[_local6];
if (_local9.length == 0){
_local2 = String(_local10.charCodeAt(0));
} else {
_local2 = ((_local9.join("-") + "-") + String(_local10.charCodeAt(0)));
};
if (_local5[_local2] !== undefined){
_local9.push(_local10.charCodeAt(0));
} else {
_local7 = (_local7 + String.fromCharCode(_local5[_local9.join("-")]));
_local5[_local2] = _local3;
_local3++;
_local9 = new Array();
_local9.push(_local10.charCodeAt(0));
};
_local6++;
};
return (_local7);
}
public static function decompress(_arg1:String):String{
var _local2:Number;
var _local3:Array;
var _local4:Number;
var _local5:String;
var _local6:Array;
var _local7:String;
var _local8:String;
var _local9:String;
var _local10:String;
var _local11:Number;
var _local12:String;
_local2 = 0x0100;
_local3 = new Array();
_local4 = 0;
while (_local4 < _local2) {
_local10 = String.fromCharCode(_local4);
_local3[_local4] = _local10;
_local4++;
};
_local5 = _arg1;
_local6 = _local5.split("");
_local7 = new String("");
_local8 = new String("");
_local9 = new String("");
_local4 = 0;
while (_local4 < _local6.length) {
_local11 = _local5.charCodeAt(_local4);
_local12 = _local3[_local11];
if (_local7 == ""){
_local7 = _local12;
_local9 = (_local9 + _local12);
} else {
if (_local11 <= 0xFF){
_local9 = (_local9 + _local12);
_local8 = (_local7 + _local12);
_local3[_local2] = _local8;
_local2++;
_local7 = _local12;
} else {
_local8 = _local3[_local11];
if (_local8 == undefined){
_local8 = (_local7 + _local7.slice(0, 1));
};
_local9 = (_local9 + _local8);
_local3[_local2] = (_local7 + _local8.slice(0, 1));
_local2++;
_local7 = _local8;
};
};
_local4++;
};
return (_local9);
}
}
}//package be.boulevart.as3.security
Section 7
//MD5 (be.boulevart.as3.security.MD5)
package be.boulevart.as3.security {
public class MD5 {
protected static function md5_hh(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 ^ _arg3) ^ _arg4), _arg1, _arg2, _arg5, _arg6, _arg7));
}
protected static function md5_cmn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Number{
return (safe_add(bit_rol(safe_add(safe_add(_arg2, _arg1), safe_add(_arg4, _arg6)), _arg5), _arg3));
}
protected static function str2binl(_arg1:String):Array{
var _local2:Array;
var _local3:Number;
var _local4:Number;
_local2 = new Array();
_local3 = ((1 << 8) - 1);
_local4 = 0;
while (_local4 < (_arg1.length * 8)) {
_local2[(_local4 >> 5)] = (_local2[(_local4 >> 5)] | ((_arg1.charCodeAt((_local4 / 8)) & _local3) << (_local4 % 32)));
_local4 = (_local4 + 8);
};
return (_local2);
}
protected static function md5_ff(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 & _arg3) | (~(_arg2) & _arg4)), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function calculate(_arg1:String):String{
return (hex_md5(_arg1));
}
protected static function binl2hex(_arg1:Array):String{
var _local2:String;
var _local3:String;
var _local4:Number;
_local2 = new String("");
_local3 = new String("0123456789abcdef");
_local4 = 0;
while (_local4 < (_arg1.length * 4)) {
_local2 = (_local2 + (_local3.charAt(((_arg1[(_local4 >> 2)] >> (((_local4 % 4) * 8) + 4)) & 15)) + _local3.charAt(((_arg1[(_local4 >> 2)] >> ((_local4 % 4) * 8)) & 15))));
_local4++;
};
return (_local2);
}
protected static function safe_add(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
var _local4:Number;
_local3 = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF));
_local4 = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16));
return (((_local4 << 16) | (_local3 & 0xFFFF)));
}
protected static function md5_gg(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 & _arg4) | (_arg3 & ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
protected static function md5_ii(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn((_arg3 ^ (_arg2 | ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
protected static function hex_md5(_arg1:String):String{
return (binl2hex(core_md5(str2binl(_arg1), (_arg1.length * 8))));
}
protected static function bit_rol(_arg1:Number, _arg2:Number):Number{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
protected static function core_md5(_arg1:Array, _arg2:Number):Array{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
_arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (_arg2 % 32)));
_arg1[((((_arg2 + 64) >>> 9) << 4) + 14)] = _arg2;
_local3 = 1732584193;
_local4 = -271733879;
_local5 = -1732584194;
_local6 = 271733878;
_local7 = 0;
while (_local7 < _arg1.length) {
_local8 = _local3;
_local9 = _local4;
_local10 = _local5;
_local11 = _local6;
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 7, -680876936);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 1)], 12, -389564586);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 17, 606105819);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 3)], 22, -1044525330);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 7, -176418897);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 5)], 12, 1200080426);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 17, -1473231341);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 7)], 22, -45705983);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 7, 1770035416);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 9)], 12, -1958414417);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 17, -42063);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 11)], 22, -1990404162);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 7, 1804603682);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 13)], 12, -40341101);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 17, -1502002290);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 15)], 22, 1236535329);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 5, -165796510);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 6)], 9, -1069501632);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 14, 643717713);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 0)], 20, -373897302);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 5, -701558691);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 10)], 9, 38016083);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 14, -660478335);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 4)], 20, -405537848);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 5, 568446438);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 14)], 9, -1019803690);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 14, -187363961);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 8)], 20, 1163531501);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 5, -1444681467);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 2)], 9, -51403784);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 14, 1735328473);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 12)], 20, -1926607734);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 4, -378558);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 8)], 11, -2022574463);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 16, 1839030562);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 14)], 23, -35309556);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 4, -1530992060);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 4)], 11, 1272893353);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 16, -155497632);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 10)], 23, -1094730640);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 4, 681279174);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 0)], 11, -358537222);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 16, -722521979);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 6)], 23, 76029189);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 4, -640364487);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 12)], 11, -421815835);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 16, 530742520);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 2)], 23, -995338651);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 6, -198630844);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 7)], 10, 1126891415);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 15, -1416354905);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 5)], 21, -57434055);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 6, 1700485571);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 3)], 10, -1894986606);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 15, -1051523);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 1)], 21, -2054922799);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 6, 1873313359);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 15)], 10, -30611744);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 15, -1560198380);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 13)], 21, 1309151649);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 6, -145523070);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 11)], 10, -1120210379);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 15, 718787259);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 9)], 21, -343485551);
_local3 = safe_add(_local3, _local8);
_local4 = safe_add(_local4, _local9);
_local5 = safe_add(_local5, _local10);
_local6 = safe_add(_local6, _local11);
_local7 = (_local7 + 16);
};
return (new Array(_local3, _local4, _local5, _local6));
}
}
}//package be.boulevart.as3.security
Section 8
//RC4 (be.boulevart.as3.security.RC4)
package be.boulevart.as3.security {
public class RC4 {
protected static var mykey:Array = new Array(0xFF);
protected static var sbox:Array = new Array(0xFF);
protected static function charsToHex(_arg1:Array):String{
var _local2:String;
var _local3:Array;
var _local4:Number;
_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));
}
protected static function hexToChars(_arg1:String):Array{
var _local2:Array;
var _local3:Number;
_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 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));
}
protected static function strToChars(_arg1:String):Array{
var _local2:Array;
var _local3:Number;
_local2 = new Array();
_local3 = 0;
while (_local3 < _arg1.length) {
_local2.push(_arg1.charCodeAt(_local3));
_local3++;
};
return (_local2);
}
protected static function calculate(_arg1:Array, _arg2:Array):Array{
var _local3:Number;
var _local4:Number;
var _local5:Array;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
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);
}
protected static function initialize(_arg1:Array){
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_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++;
};
}
protected static function charsToStr(_arg1:Array):String{
var _local2:String;
var _local3:Number;
_local2 = new String("");
_local3 = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode(_arg1[_local3]));
_local3++;
};
return (_local2);
}
}
}//package be.boulevart.as3.security
Section 9
//Rijndael (be.boulevart.as3.security.Rijndael)
package be.boulevart.as3.security {
public class Rijndael {
public var keySize:Number;// = 128
protected var Nb:Number;
protected var SBoxInverse:Array;
protected var Nk:Number;
protected var shiftOffsets:Array;
protected var Nr:Number;
public var blockSize:Number;// = 128
protected var Rcon:Array;
protected var roundsArray:Array;
protected var SBox:Array;
public function Rijndael(_arg1:Number, _arg2:Number){
Rcon = [1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154, 47, 94, 188, 99, 198, 151, 53, 106, 212, 179, 125, 250, 239, 197, 145];
SBox = [99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 0xFF, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22];
SBoxInverse = [82, 9, 106, 213, 48, 54, 165, 56, 191, 64, 163, 158, 129, 243, 215, 251, 124, 227, 57, 130, 155, 47, 0xFF, 135, 52, 142, 67, 68, 196, 222, 233, 203, 84, 123, 148, 50, 166, 194, 35, 61, 238, 76, 149, 11, 66, 250, 195, 78, 8, 46, 161, 102, 40, 217, 36, 178, 118, 91, 162, 73, 109, 139, 209, 37, 114, 248, 246, 100, 134, 104, 152, 22, 212, 164, 92, 204, 93, 101, 182, 146, 108, 112, 72, 80, 253, 237, 185, 218, 94, 21, 70, 87, 167, 141, 157, 132, 144, 216, 171, 0, 140, 188, 211, 10, 247, 228, 88, 5, 184, 179, 69, 6, 208, 44, 30, 143, 202, 63, 15, 2, 193, 175, 189, 3, 1, 19, 138, 107, 58, 145, 17, 65, 79, 103, 220, 234, 151, 242, 207, 206, 240, 180, 230, 115, 150, 172, 116, 34, 231, 173, 53, 133, 226, 249, 55, 232, 28, 117, 223, 110, 71, 241, 26, 113, 29, 41, 197, 137, 111, 183, 98, 14, 170, 24, 190, 27, 252, 86, 62, 75, 198, 210, 121, 32, 154, 219, 192, 254, 120, 205, 90, 244, 31, 221, 168, 51, 136, 7, 199, 49, 177, 18, 16, 89, 39, 128, 236, 95, 96, 81, 127, 169, 25, 181, 74, 13, 45, 229, 122, 159, 147, 201, 156, 239, 160, 224, 59, 77, 174, 42, 245, 176, 200, 235, 187, 60, 131, 83, 153, 97, 23, 43, 4, 126, 186, 119, 214, 38, 225, 105, 20, 99, 85, 33, 12, 125];
blockSize = 128;
keySize = 128;
super();
if (_arg1 != undefined){
this.keySize = _arg1;
};
if (_arg2 != undefined){
this.blockSize = _arg2;
};
this.roundsArray = [0, 0, 0, 0, [0, 0, 0, 0, 10, 0, 12, 0, 14], 0, [0, 0, 0, 0, 12, 0, 12, 0, 14], 0, [0, 0, 0, 0, 14, 0, 14, 0, 14]];
this.shiftOffsets = [0, 0, 0, 0, [0, 1, 2, 3], 0, [0, 1, 2, 3], 0, [0, 1, 3, 4]];
this.Nb = (_arg2 / 32);
this.Nk = (_arg1 / 32);
this.Nr = this.roundsArray[this.Nk][this.Nb];
}
protected function encryption(_arg1:Array, _arg2:Array):Array{
var _local3:Number;
_arg1 = this.packBytes(_arg1);
this.addRoundKey(_arg1, _arg2);
_local3 = 1;
while (_local3 < Nr) {
this.Round(_arg1, _arg2.slice((this.Nb * _local3), (this.Nb * (_local3 + 1))));
_local3++;
};
this.FinalRound(_arg1, _arg2.slice((this.Nb * this.Nr)));
return (this.unpackBytes(_arg1));
}
protected function xtime(_arg1:Number):Number{
_arg1 = (_arg1 << 1);
return (((_arg1 & 0x0100)) ? (_arg1 ^ 283) : _arg1);
}
protected function charsToHex(_arg1:Array):String{
var _local2:String;
var _local3:Array;
var _local4:Number;
_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);
}
protected function InverseFinalRound(_arg1:Array, _arg2:Array):void{
this.addRoundKey(_arg1, _arg2);
this.shiftRow(_arg1, "decrypt");
this.byteSub(_arg1, "decrypt");
}
protected function mult_GF256(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
var _local4:Number;
_local3 = 0;
_local4 = 1;
while (_local4 < 0x0100) {
if ((_arg1 & _local4)){
_local3 = (_local3 ^ _arg2);
};
_local4 = (_local4 * 2);
_arg2 = xtime(_arg2);
};
return (_local3);
}
public function decrypt(_arg1:String, _arg2:String, _arg3:String):String{
var _local4:Array;
var _local5:Array;
var _local6:Array;
var _local7:Number;
var _local8:Array;
var _local9:Number;
var _local10:Number;
_local4 = new Array();
_local5 = new Array();
_local6 = hexToChars(_arg1);
_local7 = (this.blockSize / 8);
_local8 = this.keyExpansion(strToChars(_arg2));
_local9 = ((_local6.length / _local7) - 1);
while (_local9 > 0) {
_local5 = decryption(_local6.slice((_local9 * _local7), ((_local9 + 1) * _local7)), _local8);
if (_arg3 == "CBC"){
_local10 = 0;
while (_local10 < _local7) {
_local4[(((_local9 - 1) * _local7) + _local10)] = (_local5[_local10] ^ _local6[(((_local9 - 1) * _local7) + _local10)]);
_local10++;
};
} else {
_local4 = _local5.concat(_local4);
};
_local9--;
};
if (_arg3 == "ECB"){
_local4 = this.decryption(_local6.slice(0, _local7), _local8).concat(_local4);
};
return (charsToStr(_local4));
}
protected function hexToChars(_arg1:String):Array{
var _local2:Array;
var _local3:Number;
_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);
}
protected function shiftRow(_arg1:Array, _arg2:String):void{
var _local3:Number;
_local3 = 1;
while (_local3 < 4) {
if (_arg2 == "encrypt"){
_arg1[_local3] = this.cyclicShiftLeft(_arg1[_local3], this.shiftOffsets[Nb][_local3]);
} else {
_arg1[_local3] = this.cyclicShiftLeft(_arg1[_local3], (this.Nb - this.shiftOffsets[Nb][_local3]));
};
_local3++;
};
}
protected function FinalRound(_arg1:Array, _arg2:Array):void{
this.byteSub(_arg1, "encrypt");
this.shiftRow(_arg1, "encrypt");
this.addRoundKey(_arg1, _arg2);
}
protected function cyclicShiftLeft(_arg1:Array, _arg2:Number):Array{
var _local3:Array;
_local3 = _arg1.slice(0, _arg2);
_arg1 = _arg1.slice(_arg2).concat(_local3);
return (_arg1);
}
protected function strToChars(_arg1:String):Array{
var _local2:Array;
var _local3:Number;
_local2 = new Array();
_local3 = 0;
while (_local3 < _arg1.length) {
_local2.push(_arg1.charCodeAt(_local3));
_local3++;
};
return (_local2);
}
protected function mixColumn(_arg1:Array, _arg2:String):void{
var _local3:Array;
var _local4:Number;
var _local5:Number;
_local3 = new Array();
_local4 = 0;
while (_local4 < this.Nb) {
_local5 = 0;
while (_local5 < 4) {
if (_arg2 == "encrypt"){
_local3[_local5] = (((this.mult_GF256(_arg1[_local5][_local4], 2) ^ this.mult_GF256(_arg1[((_local5 + 1) % 4)][_local4], 3)) ^ _arg1[((_local5 + 2) % 4)][_local4]) ^ _arg1[((_local5 + 3) % 4)][_local4]);
} else {
_local3[_local5] = (((this.mult_GF256(_arg1[_local5][_local4], 14) ^ this.mult_GF256(_arg1[((_local5 + 1) % 4)][_local4], 11)) ^ this.mult_GF256(_arg1[((_local5 + 2) % 4)][_local4], 13)) ^ this.mult_GF256(_arg1[((_local5 + 3) % 4)][_local4], 9));
};
_local5++;
};
_local5 = 0;
while (_local5 < 4) {
_arg1[_local5][_local4] = _local3[_local5];
_local5++;
};
_local4++;
};
}
protected function decryption(_arg1:Array, _arg2:Array):Array{
var _local3:Number;
_arg1 = this.packBytes(_arg1);
this.InverseFinalRound(_arg1, _arg2.slice((this.Nb * this.Nr)));
_local3 = (Nr - 1);
while (_local3 > 0) {
this.InverseRound(_arg1, _arg2.slice((this.Nb * _local3), (this.Nb * (_local3 + 1))));
_local3--;
};
this.addRoundKey(_arg1, _arg2);
return (this.unpackBytes(_arg1));
}
protected function byteSub(_arg1:Array, _arg2:String):void{
var _local3:Array;
var _local4:Number;
var _local5:*;
if (_arg2 == "encrypt"){
_local3 = this.SBox;
} else {
_local3 = this.SBoxInverse;
};
_local4 = 0;
while (_local4 < 4) {
_local5 = 0;
while (_local5 < this.Nb) {
_arg1[_local4][_local5] = _local3[_arg1[_local4][_local5]];
_local5++;
};
_local4++;
};
}
protected function packBytes(_arg1:Array):Array{
var _local2:Array;
var _local3:Number;
_local2 = new Array();
_local2[0] = new Array();
_local2[1] = new Array();
_local2[2] = new Array();
_local2[3] = new Array();
_local3 = 0;
while (_local3 < _arg1.length) {
_local2[0][(_local3 / 4)] = _arg1[_local3];
_local2[1][(_local3 / 4)] = _arg1[(_local3 + 1)];
_local2[2][(_local3 / 4)] = _arg1[(_local3 + 2)];
_local2[3][(_local3 / 4)] = _arg1[(_local3 + 3)];
_local3 = (_local3 + 4);
};
return (_local2);
}
protected function formatPlaintext(_arg1:Array):Array{
var _local2:Number;
var _local3:Number;
_local2 = (blockSize / 8);
_local3 = (_local2 - (_arg1.length % _local2));
while ((((_local3 > 0)) && ((_local3 < _local2)))) {
_arg1[_arg1.length] = 0;
_local3--;
};
return (_arg1);
}
public function encrypt(_arg1:String, _arg2:String, _arg3:String):String{
var _local4:Array;
var _local5:Array;
var _local6:Number;
var _local7:Array;
var _local8:Array;
var _local9:Number;
var _local10:Number;
_local4 = new Array();
_local5 = new Array();
_local6 = (this.blockSize / 8);
if (_arg3 == "CBC"){
_local4 = this.getRandomBytes(_local6);
};
_local7 = this.formatPlaintext(strToChars(_arg1));
_local8 = this.keyExpansion(strToChars(_arg2));
_local9 = 0;
while (_local9 < (_local7.length / _local6)) {
_local5 = _local7.slice((_local9 * _local6), ((_local9 + 1) * _local6));
if (_arg3 == "CBC"){
_local10 = 0;
while (_local10 < _local6) {
_local5[_local10] = (_local5[_local10] ^ _local4[((_local9 * _local6) + _local10)]);
_local10++;
};
};
_local4 = _local4.concat(this.encryption(_local5, _local8));
_local9++;
};
return (charsToHex(_local4));
}
protected function keyExpansion(_arg1:Array):Array{
var _local2:Number;
var _local3:Array;
var _local4:Number;
_local2 = 0;
this.Nk = (this.keySize / 32);
this.Nb = (this.blockSize / 32);
_local3 = new Array();
this.Nr = this.roundsArray[this.Nk][this.Nb];
_local4 = 0;
while (_local4 < this.Nk) {
_local3[_local4] = (((_arg1[(4 * _local4)] | (_arg1[((4 * _local4) + 1)] << 8)) | (_arg1[((4 * _local4) + 2)] << 16)) | (_arg1[((4 * _local4) + 3)] << 24));
_local4++;
};
_local4 = this.Nk;
while (_local4 < (this.Nb * (this.Nr + 1))) {
_local2 = _local3[(_local4 - 1)];
if ((_local4 % this.Nk) == 0){
_local2 = ((((this.SBox[((_local2 >> 8) & 0xFF)] | (this.SBox[((_local2 >> 16) & 0xFF)] << 8)) | (this.SBox[((_local2 >> 24) & 0xFF)] << 16)) | (this.SBox[(_local2 & 0xFF)] << 24)) ^ this.Rcon[(Math.floor((_local4 / this.Nk)) - 1)]);
} else {
if ((((this.Nk > 6)) && (((_local4 % this.Nk) == 4)))){
_local2 = ((((this.SBox[((_local2 >> 24) & 0xFF)] << 24) | (this.SBox[((_local2 >> 16) & 0xFF)] << 16)) | (this.SBox[((_local2 >> 8) & 0xFF)] << 8)) | this.SBox[(_local2 & 0xFF)]);
};
};
_local3[_local4] = (_local3[(_local4 - this.Nk)] ^ _local2);
_local4++;
};
return (_local3);
}
protected function InverseRound(_arg1:Array, _arg2:Array):void{
this.addRoundKey(_arg1, _arg2);
this.mixColumn(_arg1, "decrypt");
this.shiftRow(_arg1, "decrypt");
this.byteSub(_arg1, "decrypt");
}
protected function unpackBytes(_arg1:Array):Array{
var _local2:Array;
var _local3:Number;
_local2 = new Array();
_local3 = 0;
while (_local3 < _arg1[0].length) {
_local2[_local2.length] = _arg1[0][_local3];
_local2[_local2.length] = _arg1[1][_local3];
_local2[_local2.length] = _arg1[2][_local3];
_local2[_local2.length] = _arg1[3][_local3];
_local3++;
};
return (_local2);
}
protected function addRoundKey(_arg1:Array, _arg2:Array):void{
var _local3:Number;
_local3 = 0;
while (_local3 < this.Nb) {
_arg1[0][_local3] = (_arg1[0][_local3] ^ (_arg2[_local3] & 0xFF));
_arg1[1][_local3] = (_arg1[1][_local3] ^ ((_arg2[_local3] >> 8) & 0xFF));
_arg1[2][_local3] = (_arg1[2][_local3] ^ ((_arg2[_local3] >> 16) & 0xFF));
_arg1[3][_local3] = (_arg1[3][_local3] ^ ((_arg2[_local3] >> 24) & 0xFF));
_local3++;
};
}
protected function Round(_arg1:Array, _arg2:Array):void{
this.byteSub(_arg1, "encrypt");
this.shiftRow(_arg1, "encrypt");
this.mixColumn(_arg1, "encrypt");
this.addRoundKey(_arg1, _arg2);
}
protected function getRandomBytes(_arg1:Number):Array{
var _local2:Array;
var _local3:Number;
_local2 = new Array();
_local3 = 0;
while (_local3 < _arg1) {
_local2[_local3] = Math.round((Math.random() * 0xFF));
_local3++;
};
return (_local2);
}
protected function charsToStr(_arg1:Array):String{
var _local2:String;
var _local3:Number;
_local2 = new String("");
_local3 = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode(_arg1[_local3]));
_local3++;
};
return (_local2);
}
}
}//package be.boulevart.as3.security
Section 10
//ROT13 (be.boulevart.as3.security.ROT13)
package be.boulevart.as3.security {
public class ROT13 {
protected static var chars:String = "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMabcdefghijklmnopqrstuvwxyzabcdefghijklm";
public static function calculate(_arg1:String):String{
var _local2:String;
var _local3:Number;
var _local4:String;
var _local5:Number;
_local2 = new String("");
_local3 = 0;
while (_local3 < _arg1.length) {
_local4 = _arg1.charAt(_local3);
_local5 = chars.indexOf(_local4);
if (_local5 > -1){
_local4 = chars.charAt((_local5 + 13));
};
_local2 = (_local2 + _local4);
_local3++;
};
return (_local2);
}
}
}//package be.boulevart.as3.security
Section 11
//SHA1 (be.boulevart.as3.security.SHA1)
package be.boulevart.as3.security {
public class SHA1 {
protected static function sha1_kt(_arg1:Number):Number{
return (((_arg1)<20) ? 1518500249 : ((_arg1)<40) ? 1859775393 : ((_arg1)<60) ? -1894007588 : -899497514);
}
protected static function binb2hex(_arg1:Array):String{
var _local2:String;
var _local3:String;
var _local4:Number;
_local2 = new String("");
_local3 = new String("0123456789abcdef");
_local4 = 0;
while (_local4 < (_arg1.length * 4)) {
_local2 = (_local2 + (_local3.charAt(((_arg1[(_local4 >> 2)] >> (((3 - (_local4 % 4)) * 8) + 4)) & 15)) + _local3.charAt(((_arg1[(_local4 >> 2)] >> ((3 - (_local4 % 4)) * 8)) & 15))));
_local4++;
};
return (_local2);
}
protected static function core_sha1(_arg1:Array, _arg2:Number):Array{
var _local3:Array;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
_arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (24 - (_arg2 % 32))));
_arg1[((((_arg2 + 64) >> 9) << 4) + 15)] = _arg2;
_local3 = new Array(80);
_local4 = 1732584193;
_local5 = -271733879;
_local6 = -1732584194;
_local7 = 271733878;
_local8 = -1009589776;
_local9 = 0;
while (_local9 < _arg1.length) {
_local10 = _local4;
_local11 = _local5;
_local12 = _local6;
_local13 = _local7;
_local14 = _local8;
_local15 = 0;
while (_local15 < 80) {
if (_local15 < 16){
_local3[_local15] = _arg1[(_local9 + _local15)];
} else {
_local3[_local15] = rol((((_local3[(_local15 - 3)] ^ _local3[(_local15 - 8)]) ^ _local3[(_local15 - 14)]) ^ _local3[(_local15 - 16)]), 1);
};
_local16 = safe_add(safe_add(rol(_local4, 5), sha1_ft(_local15, _local5, _local6, _local7)), safe_add(safe_add(_local8, _local3[_local15]), sha1_kt(_local15)));
_local8 = _local7;
_local7 = _local6;
_local6 = rol(_local5, 30);
_local5 = _local4;
_local4 = _local16;
_local15++;
};
_local4 = safe_add(_local4, _local10);
_local5 = safe_add(_local5, _local11);
_local6 = safe_add(_local6, _local12);
_local7 = safe_add(_local7, _local13);
_local8 = safe_add(_local8, _local14);
_local9 = (_local9 + 16);
};
return (new Array(_local4, _local5, _local6, _local7, _local8));
}
public static function calculate(_arg1:String):String{
return (hex_sha1(_arg1));
}
protected static function sha1_ft(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < 20){
return (((_arg2 & _arg3) | (~(_arg2) & _arg4)));
};
if (_arg1 < 40){
return (((_arg2 ^ _arg3) ^ _arg4));
};
if (_arg1 < 60){
return ((((_arg2 & _arg3) | (_arg2 & _arg4)) | (_arg3 & _arg4)));
};
return (((_arg2 ^ _arg3) ^ _arg4));
}
protected static function hex_sha1(_arg1:String):String{
return (binb2hex(core_sha1(str2binb(_arg1), (_arg1.length * 8))));
}
protected static function str2binb(_arg1:String):Array{
var _local2:Array;
var _local3:Number;
var _local4:Number;
_local2 = new Array();
_local3 = ((1 << 8) - 1);
_local4 = 0;
while (_local4 < (_arg1.length * 8)) {
_local2[(_local4 >> 5)] = (_local2[(_local4 >> 5)] | ((_arg1.charCodeAt((_local4 / 8)) & _local3) << (24 - (_local4 % 32))));
_local4 = (_local4 + 8);
};
return (_local2);
}
protected static function rol(_arg1:Number, _arg2:Number):Number{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
protected static function safe_add(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
var _local4:Number;
_local3 = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF));
_local4 = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16));
return (((_local4 << 16) | (_local3 & 0xFFFF)));
}
}
}//package be.boulevart.as3.security
Section 12
//TEA (be.boulevart.as3.security.TEA)
package be.boulevart.as3.security {
public class TEA {
protected static function strToChars(_arg1:String):Array{
var _local2:Array;
var _local3:Number;
_local2 = new Array();
_local3 = 0;
while (_local3 < _arg1.length) {
_local2.push(_arg1.charCodeAt(_local3));
_local3++;
};
return (_local2);
}
protected static function charsToHex(_arg1:Array):String{
var _local2:String;
var _local3:Array;
var _local4:Number;
_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:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
_local3 = charsToLongs(strToChars(_arg1));
_local4 = charsToLongs(strToChars(_arg2));
_local5 = _local3.length;
if (_local5 == 0){
return ("");
};
if (_local5 == 1){
var _temp1 = _local5;
_local5 = (_local5 + 1);
var _local14 = _temp1;
_local3[_local14] = 0;
};
_local7 = _local3[(_local5 - 1)];
_local8 = _local3[0];
_local9 = 2654435769;
_local12 = Math.floor((6 + (52 / _local5)));
_local13 = 0;
while (_local12-- > 0) {
_local13 = (_local13 + _local9);
_local11 = ((_local13 >>> 2) & 3);
_local6 = 0;
while (_local6 < (_local5 - 1)) {
_local8 = _local3[(_local6 + 1)];
_local10 = ((((_local7 >>> 5) ^ (_local8 << 2)) + ((_local8 >>> 3) ^ (_local7 << 4))) ^ ((_local13 ^ _local8) + (_local4[((_local6 & 3) ^ _local11)] ^ _local7)));
_local7 = (_local3[_local6] = (_local3[_local6] + _local10));
_local6++;
};
_local8 = _local3[0];
_local10 = ((((_local7 >>> 5) ^ (_local8 << 2)) + ((_local8 >>> 3) ^ (_local7 << 4))) ^ ((_local13 ^ _local8) + (_local4[((_local6 & 3) ^ _local11)] ^ _local7)));
_local7 = (_local3[(_local5 - 1)] = (_local3[(_local5 - 1)] + _local10));
};
return (charsToHex(longsToChars(_local3)));
}
protected static function hexToChars(_arg1:String):Array{
var _local2:Array;
var _local3:Number;
_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);
}
protected static function charsToStr(_arg1:Array):String{
var _local2:String;
var _local3:Number;
_local2 = new String("");
_local3 = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode(_arg1[_local3]));
_local3++;
};
return (_local2);
}
protected static function longsToChars(_arg1:Array):Array{
var _local2:Array;
var _local3:Number;
_local2 = new Array();
_local3 = 0;
while (_local3 < _arg1.length) {
_local2.push((_arg1[_local3] & 0xFF), ((_arg1[_local3] >>> 8) & 0xFF), ((_arg1[_local3] >>> 16) & 0xFF), ((_arg1[_local3] >>> 24) & 0xFF));
_local3++;
};
return (_local2);
}
public static function decrypt(_arg1:String, _arg2:String):String{
var _local3:Array;
var _local4:Array;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
_local3 = charsToLongs(hexToChars(_arg1));
_local4 = charsToLongs(strToChars(_arg2));
_local5 = _local3.length;
if (_local5 == 0){
return ("");
};
_local7 = _local3[(_local5 - 1)];
_local8 = _local3[0];
_local9 = 2654435769;
_local12 = Math.floor((6 + (52 / _local5)));
_local13 = (_local12 * _local9);
while (_local13 != 0) {
_local11 = ((_local13 >>> 2) & 3);
_local6 = (_local5 - 1);
while (_local6 > 0) {
_local7 = _local3[(_local6 - 1)];
_local10 = ((((_local7 >>> 5) ^ (_local8 << 2)) + ((_local8 >>> 3) ^ (_local7 << 4))) ^ ((_local13 ^ _local8) + (_local4[((_local6 & 3) ^ _local11)] ^ _local7)));
_local8 = (_local3[_local6] = (_local3[_local6] - _local10));
_local6--;
};
_local7 = _local3[(_local5 - 1)];
_local10 = ((((_local7 >>> 5) ^ (_local8 << 2)) + ((_local8 >>> 3) ^ (_local7 << 4))) ^ ((_local13 ^ _local8) + (_local4[((_local6 & 3) ^ _local11)] ^ _local7)));
_local8 = (_local3[0] = (_local3[0] - _local10));
_local13 = (_local13 - _local9);
};
return (charsToStr(longsToChars(_local3)));
}
protected static function charsToLongs(_arg1:Array):Array{
var _local2:Array;
var _local3:Number;
_local2 = new Array(Math.ceil((_arg1.length / 4)));
_local3 = 0;
while (_local3 < _local2.length) {
_local2[_local3] = (((_arg1[(_local3 * 4)] + (_arg1[((_local3 * 4) + 1)] << 8)) + (_arg1[((_local3 * 4) + 2)] << 16)) + (_arg1[((_local3 * 4) + 3)] << 24));
_local3++;
};
return (_local2);
}
}
}//package be.boulevart.as3.security
Section 13
//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 14
//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 15
//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 16
//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 17
//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 18
//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 19
//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 20
//acvd_180 (parkinglot3_fla.acvd_180)
package parkinglot3_fla {
import flash.display.*;
public dynamic class acvd_180 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var parkArea:MovieClip;
public var iceSurface1:MovieClip;
public var iceSurface2:MovieClip;
public var iceSurface3:MovieClip;
}
}//package parkinglot3_fla
Section 21
//animaton_118 (parkinglot3_fla.animaton_118)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class animaton_118 extends MovieClip {
public function animaton_118(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package parkinglot3_fla
Section 22
//animatoncopy2_120 (parkinglot3_fla.animatoncopy2_120)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class animatoncopy2_120 extends MovieClip {
public function animatoncopy2_120(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package parkinglot3_fla
Section 23
//bg1_66 (parkinglot3_fla.bg1_66)
package parkinglot3_fla {
import flash.display.*;
public dynamic class bg1_66 extends MovieClip {
public var s5:MovieClip;
public var block1:MovieClip;
public var block2:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 24
//bg10_223 (parkinglot3_fla.bg10_223)
package parkinglot3_fla {
import flash.display.*;
public dynamic class bg10_223 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block4:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
public var iceSurface1:MovieClip;
public var iceSurface2:MovieClip;
}
}//package parkinglot3_fla
Section 25
//bgsss_281 (parkinglot3_fla.bgsss_281)
package parkinglot3_fla {
import flash.display.*;
public dynamic class bgsss_281 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var movingCar1:MovieClip;
public var block8:MovieClip;
public var block14:MovieClip;
public var block12:MovieClip;
public var block13:MovieClip;
public var block7:MovieClip;
public var block10:MovieClip;
public var block11:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 26
//BUG_PRELOADER_25 (parkinglot3_fla.BUG_PRELOADER_25)
package parkinglot3_fla {
import flash.display.*;
public dynamic class BUG_PRELOADER_25 extends MovieClip {
public var innerloader:MovieClip;
}
}//package parkinglot3_fla
Section 27
//BUGload_26 (parkinglot3_fla.BUGload_26)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class BUGload_26 extends MovieClip {
public function BUGload_26(){
addFrameScript(74, frame75);
}
function frame75(){
}
}
}//package parkinglot3_fla
Section 28
//car17movcopy2_333 (parkinglot3_fla.car17movcopy2_333)
package parkinglot3_fla {
import flash.display.*;
public dynamic class car17movcopy2_333 extends MovieClip {
public var block4:MovieClip;
}
}//package parkinglot3_fla
Section 29
//careditedB_82 (parkinglot3_fla.careditedB_82)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class careditedB_82 extends MovieClip {
public var carG:MovieClip;
public var carBody:MovieClip;
public var tire1:MovieClip;
public var tire2:MovieClip;
public var tire4:MovieClip;
public var carCentre:MovieClip;
public var tire3:MovieClip;
public function careditedB_82(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
stop();
}
function frame6(){
stop();
if (MovieClip(root).damageCar6){
carBody.gotoAndStop(3);
MovieClip(root).damageCar6 = false;
};
}
function frame1(){
stop();
}
function frame4(){
stop();
if (MovieClip(root).damageCar4){
carBody.gotoAndStop(3);
MovieClip(root).damageCar4 = false;
};
}
function frame5(){
stop();
if (MovieClip(root).damageCar5){
carBody.gotoAndStop(3);
MovieClip(root).damageCar5 = false;
};
}
function frame2(){
stop();
}
}
}//package parkinglot3_fla
Section 30
//careditedBcopy_171 (parkinglot3_fla.careditedBcopy_171)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class careditedBcopy_171 extends MovieClip {
public var carG:MovieClip;
public var carBody:MovieClip;
public var tire1:MovieClip;
public var tire2:MovieClip;
public var tire4:MovieClip;
public var carCentre:MovieClip;
public var tire3:MovieClip;
public function careditedBcopy_171(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
stop();
}
function frame6(){
stop();
if (MovieClip(root).damageCar6){
carBody.gotoAndStop(3);
MovieClip(root).damageCar6 = false;
};
}
function frame1(){
stop();
}
function frame4(){
stop();
if (MovieClip(root).damageCar4){
carBody.gotoAndStop(3);
MovieClip(root).damageCar4 = false;
};
}
function frame5(){
stop();
if (MovieClip(root).damageCar5){
carBody.gotoAndStop(3);
MovieClip(root).damageCar5 = false;
};
}
function frame2(){
stop();
}
}
}//package parkinglot3_fla
Section 31
//carmov20copy_370 (parkinglot3_fla.carmov20copy_370)
package parkinglot3_fla {
import flash.display.*;
public dynamic class carmov20copy_370 extends MovieClip {
public var block10:MovieClip;
}
}//package parkinglot3_fla
Section 32
//carmovcopy_324 (parkinglot3_fla.carmovcopy_324)
package parkinglot3_fla {
import flash.display.*;
public dynamic class carmovcopy_324 extends MovieClip {
public var movingCar1:MovieClip;
public var block10:MovieClip;
}
}//package parkinglot3_fla
Section 33
//carmovlevl19copy2_363 (parkinglot3_fla.carmovlevl19copy2_363)
package parkinglot3_fla {
import flash.display.*;
public dynamic class carmovlevl19copy2_363 extends MovieClip {
public var block10:MovieClip;
}
}//package parkinglot3_fla
Section 34
//cghf_121 (parkinglot3_fla.cghf_121)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class cghf_121 extends MovieClip {
public function cghf_121(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package parkinglot3_fla
Section 35
//clm_13_24_697 (parkinglot3_fla.clm_13_24_697)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_13_24_697 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 36
//clm_13_29_687 (parkinglot3_fla.clm_13_29_687)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_13_29_687 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var block7:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 37
//clm_13_adfret_686 (parkinglot3_fla.clm_13_adfret_686)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_13_adfret_686 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 38
//clm_14_11_713 (parkinglot3_fla.clm_14_11_713)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_14_11_713 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var block11:MovieClip;
public var block14:MovieClip;
public var block15:MovieClip;
public var block12:MovieClip;
public var block13:MovieClip;
public var block7:MovieClip;
public var block18:MovieClip;
public var block19:MovieClip;
public var block3:MovieClip;
public var block10:MovieClip;
public var block23:MovieClip;
public var block20:MovieClip;
public var block16:MovieClip;
public var parkArea:MovieClip;
public var block24:MovieClip;
public var block17:MovieClip;
public var block22:MovieClip;
public var block21:MovieClip;
}
}//package parkinglot3_fla
Section 39
//clm_14_22_712 (parkinglot3_fla.clm_14_22_712)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_14_22_712 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 40
//clm_14_44_731 (parkinglot3_fla.clm_14_44_731)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_14_44_731 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 41
//clm_15_00_734 (parkinglot3_fla.clm_15_00_734)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_15_00_734 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 42
//clm_15_1_735 (parkinglot3_fla.clm_15_1_735)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_15_1_735 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var block11:MovieClip;
public var block14:MovieClip;
public var block15:MovieClip;
public var block12:MovieClip;
public var block13:MovieClip;
public var block7:MovieClip;
public var block10:MovieClip;
public var block3:MovieClip;
public var block16:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 43
//clm_15_23_761 (parkinglot3_fla.clm_15_23_761)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class clm_15_23_761 extends MovieClip {
public var carG:MovieClip;
public var carBody:MovieClip;
public var tire1:MovieClip;
public var tire2:MovieClip;
public var tire4:MovieClip;
public var carCentre:MovieClip;
public var tire3:MovieClip;
public function clm_15_23_761(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
stop();
}
function frame6(){
stop();
if (MovieClip(root).damageCar6){
carBody.gotoAndStop(3);
MovieClip(root).damageCar6 = false;
};
}
function frame1(){
stop();
}
function frame4(){
stop();
if (MovieClip(root).damageCar4){
carBody.gotoAndStop(3);
MovieClip(root).damageCar4 = false;
};
}
function frame5(){
stop();
if (MovieClip(root).damageCar5){
carBody.gotoAndStop(3);
MovieClip(root).damageCar5 = false;
};
}
function frame2(){
stop();
}
}
}//package parkinglot3_fla
Section 44
//clm_15_25_771 (parkinglot3_fla.clm_15_25_771)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class clm_15_25_771 extends MovieClip {
public function clm_15_25_771(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package parkinglot3_fla
Section 45
//clm_15_38_756 (parkinglot3_fla.clm_15_38_756)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_15_38_756 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 46
//clm_15_42_762 (parkinglot3_fla.clm_15_42_762)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_15_42_762 extends MovieClip {
public var innerT:MovieClip;
}
}//package parkinglot3_fla
Section 47
//clm_15_45_765 (parkinglot3_fla.clm_15_45_765)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_15_45_765 extends MovieClip {
public var innerT:MovieClip;
}
}//package parkinglot3_fla
Section 48
//clm_15_53_775 (parkinglot3_fla.clm_15_53_775)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class clm_15_53_775 extends MovieClip {
public function clm_15_53_775(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package parkinglot3_fla
Section 49
//clm_15_56_777 (parkinglot3_fla.clm_15_56_777)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class clm_15_56_777 extends MovieClip {
public function clm_15_56_777(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package parkinglot3_fla
Section 50
//clm_15_58_780 (parkinglot3_fla.clm_15_58_780)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class clm_15_58_780 extends MovieClip {
public function clm_15_58_780(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package parkinglot3_fla
Section 51
//clm_17_4_813 (parkinglot3_fla.clm_17_4_813)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_17_4_813 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block7:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 52
//clm_17_40_828 (parkinglot3_fla.clm_17_40_828)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_17_40_828 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 53
//clm_17_47_812 (parkinglot3_fla.clm_17_47_812)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_17_47_812 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 54
//clm_18_15_836 (parkinglot3_fla.clm_18_15_836)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_18_15_836 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 55
//clm_18_27_842 (parkinglot3_fla.clm_18_27_842)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_18_27_842 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 56
//clm_a_589 (parkinglot3_fla.clm_a_589)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_a_589 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var block11:MovieClip;
public var block14:MovieClip;
public var block12:MovieClip;
public var block13:MovieClip;
public var block7:MovieClip;
public var block10:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 57
//clm_b_588 (parkinglot3_fla.clm_b_588)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm_b_588 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 58
//clm12_435_684 (parkinglot3_fla.clm12_435_684)
package parkinglot3_fla {
import flash.display.*;
public dynamic class clm12_435_684 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 59
//cml10_42_613 (parkinglot3_fla.cml10_42_613)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml10_42_613 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 60
//cml10_43_627 (parkinglot3_fla.cml10_43_627)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml10_43_627 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 61
//cml10_64_614 (parkinglot3_fla.cml10_64_614)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml10_64_614 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block7:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 62
//cml11_42_660 (parkinglot3_fla.cml11_42_660)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml11_42_660 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 63
//cml11_43_639 (parkinglot3_fla.cml11_43_639)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml11_43_639 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var block7:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 64
//cml11_44_638 (parkinglot3_fla.cml11_44_638)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml11_44_638 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 65
//cml12_18_663 (parkinglot3_fla.cml12_18_663)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml12_18_663 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var block11:MovieClip;
public var block12:MovieClip;
public var block13:MovieClip;
public var block7:MovieClip;
public var block10:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 66
//cml12_8_662 (parkinglot3_fla.cml12_8_662)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml12_8_662 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 67
//cml16_26_782 (parkinglot3_fla.cml16_26_782)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml16_26_782 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 68
//cml16_32_797 (parkinglot3_fla.cml16_32_797)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml16_32_797 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 69
//cml16_51_783 (parkinglot3_fla.cml16_51_783)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml16_51_783 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var block11:MovieClip;
public var block12:MovieClip;
public var block13:MovieClip;
public var block7:MovieClip;
public var block10:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 70
//cml17_100_837 (parkinglot3_fla.cml17_100_837)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml17_100_837 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var block11:MovieClip;
public var block7:MovieClip;
public var block10:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 71
//cml19_36_863 (parkinglot3_fla.cml19_36_863)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml19_36_863 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 72
//cml19_43_873 (parkinglot3_fla.cml19_43_873)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml19_43_873 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 73
//cml19_70_865 (parkinglot3_fla.cml19_70_865)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml19_70_865 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 74
//cml19_80_864 (parkinglot3_fla.cml19_80_864)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml19_80_864 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var block11:MovieClip;
public var block14:MovieClip;
public var block15:MovieClip;
public var block12:MovieClip;
public var block13:MovieClip;
public var block7:MovieClip;
public var block18:MovieClip;
public var block3:MovieClip;
public var block10:MovieClip;
public var block16:MovieClip;
public var parkArea:MovieClip;
public var block17:MovieClip;
}
}//package parkinglot3_fla
Section 75
//cml2_3_398 (parkinglot3_fla.cml2_3_398)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml2_3_398 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block4:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 76
//cml2_30_397 (parkinglot3_fla.cml2_30_397)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml2_30_397 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 77
//cml2_31_415 (parkinglot3_fla.cml2_31_415)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml2_31_415 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 78
//cml20_39_895 (parkinglot3_fla.cml20_39_895)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml20_39_895 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 79
//cml20_51_913 (parkinglot3_fla.cml20_51_913)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml20_51_913 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 80
//cml20_52_896 (parkinglot3_fla.cml20_52_896)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml20_52_896 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var block11:MovieClip;
public var block14:MovieClip;
public var block15:MovieClip;
public var block12:MovieClip;
public var block13:MovieClip;
public var block7:MovieClip;
public var block10:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 81
//cml3_22_417 (parkinglot3_fla.cml3_22_417)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml3_22_417 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 82
//cml3_3_418 (parkinglot3_fla.cml3_3_418)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml3_3_418 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 83
//cml3_38_419 (parkinglot3_fla.cml3_38_419)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml3_38_419 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 84
//cml4_39_441 (parkinglot3_fla.cml4_39_441)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml4_39_441 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 85
//cml4_5_440 (parkinglot3_fla.cml4_5_440)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml4_5_440 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 86
//cml5_39_468 (parkinglot3_fla.cml5_39_468)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml5_39_468 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 87
//cml5_62_459 (parkinglot3_fla.cml5_62_459)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml5_62_459 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var block7:MovieClip;
public var block10:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 88
//cml5_63_458 (parkinglot3_fla.cml5_63_458)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml5_63_458 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 89
//cml6_39_483 (parkinglot3_fla.cml6_39_483)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml6_39_483 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block7:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 90
//cml6_4_482 (parkinglot3_fla.cml6_4_482)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml6_4_482 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 91
//cml6_40_498 (parkinglot3_fla.cml6_40_498)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml6_40_498 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 92
//cml7_27_542 (parkinglot3_fla.cml7_27_542)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class cml7_27_542 extends MovieClip {
public function cml7_27_542(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package parkinglot3_fla
Section 93
//cml7_28_547 (parkinglot3_fla.cml7_28_547)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class cml7_28_547 extends MovieClip {
public function cml7_28_547(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package parkinglot3_fla
Section 94
//cml7_29_544 (parkinglot3_fla.cml7_29_544)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class cml7_29_544 extends MovieClip {
public function cml7_29_544(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package parkinglot3_fla
Section 95
//cml7_30_538 (parkinglot3_fla.cml7_30_538)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class cml7_30_538 extends MovieClip {
public function cml7_30_538(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package parkinglot3_fla
Section 96
//cml7_38_516 (parkinglot3_fla.cml7_38_516)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml7_38_516 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 97
//cml7_51_532 (parkinglot3_fla.cml7_51_532)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml7_51_532 extends MovieClip {
public var innerT:MovieClip;
}
}//package parkinglot3_fla
Section 98
//cml7_52_529 (parkinglot3_fla.cml7_52_529)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml7_52_529 extends MovieClip {
public var innerT:MovieClip;
}
}//package parkinglot3_fla
Section 99
//cml7_59_507 (parkinglot3_fla.cml7_59_507)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml7_59_507 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 100
//cml7_60_508 (parkinglot3_fla.cml7_60_508)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml7_60_508 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block4:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 101
//cml7_9_528 (parkinglot3_fla.cml7_9_528)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class cml7_9_528 extends MovieClip {
public var carG:MovieClip;
public var carBody:MovieClip;
public var tire1:MovieClip;
public var tire2:MovieClip;
public var tire4:MovieClip;
public var carCentre:MovieClip;
public var tire3:MovieClip;
public function cml7_9_528(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
stop();
}
function frame6(){
stop();
if (MovieClip(root).damageCar6){
carBody.gotoAndStop(3);
MovieClip(root).damageCar6 = false;
};
}
function frame1(){
stop();
}
function frame4(){
stop();
if (MovieClip(root).damageCar4){
carBody.gotoAndStop(3);
MovieClip(root).damageCar4 = false;
};
}
function frame5(){
stop();
if (MovieClip(root).damageCar5){
carBody.gotoAndStop(3);
MovieClip(root).damageCar5 = false;
};
}
function frame2(){
stop();
}
}
}//package parkinglot3_fla
Section 102
//cml8_19_561 (parkinglot3_fla.cml8_19_561)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml8_19_561 extends MovieClip {
public var block5:MovieClip;
}
}//package parkinglot3_fla
Section 103
//cml8_22_581 (parkinglot3_fla.cml8_22_581)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class cml8_22_581 extends MovieClip {
public function cml8_22_581(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package parkinglot3_fla
Section 104
//cml8_23_586 (parkinglot3_fla.cml8_23_586)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class cml8_23_586 extends MovieClip {
public function cml8_23_586(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package parkinglot3_fla
Section 105
//cml8_24_583 (parkinglot3_fla.cml8_24_583)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class cml8_24_583 extends MovieClip {
public function cml8_24_583(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package parkinglot3_fla
Section 106
//cml8_25_577 (parkinglot3_fla.cml8_25_577)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class cml8_25_577 extends MovieClip {
public function cml8_25_577(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package parkinglot3_fla
Section 107
//cml8_29_549 (parkinglot3_fla.cml8_29_549)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml8_29_549 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 108
//cml8_30_550 (parkinglot3_fla.cml8_30_550)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml8_30_550 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var movingCar1:MovieClip;
public var block8:MovieClip;
public var block7:MovieClip;
public var block10:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 109
//cml8_31_555 (parkinglot3_fla.cml8_31_555)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml8_31_555 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 110
//cml8_43_571 (parkinglot3_fla.cml8_43_571)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml8_43_571 extends MovieClip {
public var innerT:MovieClip;
}
}//package parkinglot3_fla
Section 111
//cml8_44_568 (parkinglot3_fla.cml8_44_568)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml8_44_568 extends MovieClip {
public var innerT:MovieClip;
}
}//package parkinglot3_fla
Section 112
//cml8_8_567 (parkinglot3_fla.cml8_8_567)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class cml8_8_567 extends MovieClip {
public var carG:MovieClip;
public var carBody:MovieClip;
public var tire1:MovieClip;
public var tire2:MovieClip;
public var tire4:MovieClip;
public var carCentre:MovieClip;
public var tire3:MovieClip;
public function cml8_8_567(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
stop();
}
function frame6(){
stop();
if (MovieClip(root).damageCar6){
carBody.gotoAndStop(3);
MovieClip(root).damageCar6 = false;
};
}
function frame1(){
stop();
}
function frame4(){
stop();
if (MovieClip(root).damageCar4){
carBody.gotoAndStop(3);
MovieClip(root).damageCar4 = false;
};
}
function frame5(){
stop();
if (MovieClip(root).damageCar5){
carBody.gotoAndStop(3);
MovieClip(root).damageCar5 = false;
};
}
function frame2(){
stop();
}
}
}//package parkinglot3_fla
Section 113
//cml9_37_606 (parkinglot3_fla.cml9_37_606)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cml9_37_606 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 114
//CNGR8Sggg_929 (parkinglot3_fla.CNGR8Sggg_929)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class CNGR8Sggg_929 extends MovieClip {
public function CNGR8Sggg_929(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package parkinglot3_fla
Section 115
//dvfnd_258 (parkinglot3_fla.dvfnd_258)
package parkinglot3_fla {
import flash.display.*;
public dynamic class dvfnd_258 extends MovieClip {
public var s5:MovieClip;
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var movingCar1:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 116
//GameOverfff_922 (parkinglot3_fla.GameOverfff_922)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class GameOverfff_922 extends MovieClip {
public function GameOverfff_922(){
addFrameScript(0, frame1, 31, frame32);
}
function frame1(){
}
function frame32(){
stop();
MovieClip(root).gotoAndStop(44);
}
}
}//package parkinglot3_fla
Section 117
//guteer2_134 (parkinglot3_fla.guteer2_134)
package parkinglot3_fla {
import flash.display.*;
public dynamic class guteer2_134 extends MovieClip {
public var innerg:MovieClip;
}
}//package parkinglot3_fla
Section 118
//gutternew1_136 (parkinglot3_fla.gutternew1_136)
package parkinglot3_fla {
import flash.display.*;
public dynamic class gutternew1_136 extends MovieClip {
public var innerg:MovieClip;
}
}//package parkinglot3_fla
Section 119
//health_meter_111 (parkinglot3_fla.health_meter_111)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class health_meter_111 extends MovieClip {
public function health_meter_111(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package parkinglot3_fla
Section 120
//hio_267 (parkinglot3_fla.hio_267)
package parkinglot3_fla {
import flash.display.*;
public dynamic class hio_267 extends MovieClip {
public var block8:MovieClip;
}
}//package parkinglot3_fla
Section 121
//hitarea18_347 (parkinglot3_fla.hitarea18_347)
package parkinglot3_fla {
import flash.display.*;
public dynamic class hitarea18_347 extends MovieClip {
public var block12:MovieClip;
}
}//package parkinglot3_fla
Section 122
//hitbars_369 (parkinglot3_fla.hitbars_369)
package parkinglot3_fla {
import flash.display.*;
public dynamic class hitbars_369 extends MovieClip {
public var block12:MovieClip;
}
}//package parkinglot3_fla
Section 123
//hitbarslev16_320 (parkinglot3_fla.hitbarslev16_320)
package parkinglot3_fla {
import flash.display.*;
public dynamic class hitbarslev16_320 extends MovieClip {
public var block12:MovieClip;
}
}//package parkinglot3_fla
Section 124
//hjhacopy2B_97 (parkinglot3_fla.hjhacopy2B_97)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class hjhacopy2B_97 extends MovieClip {
public function hjhacopy2B_97(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package parkinglot3_fla
Section 125
//hjhacopy4B_102 (parkinglot3_fla.hjhacopy4B_102)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class hjhacopy4B_102 extends MovieClip {
public function hjhacopy4B_102(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package parkinglot3_fla
Section 126
//hjhacopy5B_99 (parkinglot3_fla.hjhacopy5B_99)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class hjhacopy5B_99 extends MovieClip {
public function hjhacopy5B_99(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package parkinglot3_fla
Section 127
//hjhacopyB_93 (parkinglot3_fla.hjhacopyB_93)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class hjhacopyB_93 extends MovieClip {
public function hjhacopyB_93(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package parkinglot3_fla
Section 128
//hjk_173 (parkinglot3_fla.hjk_173)
package parkinglot3_fla {
import flash.display.*;
public dynamic class hjk_173 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 129
//icapark_4_181 (parkinglot3_fla.icapark_4_181)
package parkinglot3_fla {
import flash.display.*;
public dynamic class icapark_4_181 extends MovieClip {
public var innerS:MovieClip;
}
}//package parkinglot3_fla
Section 130
//icapark_4lev10_226 (parkinglot3_fla.icapark_4lev10_226)
package parkinglot3_fla {
import flash.display.*;
public dynamic class icapark_4lev10_226 extends MovieClip {
public var innerS:MovieClip;
}
}//package parkinglot3_fla
Section 131
//insbbb_60 (parkinglot3_fla.insbbb_60)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class insbbb_60 extends MovieClip {
public var back_mc:SimpleButton;
public var close:SimpleButton;
public function insbbb_60(){
addFrameScript(12, frame13, 23, frame24);
}
public function backTomenu(_arg1:Event){
var e = _arg1;
play();
try {
MovieClip(root).channel.stop();
} catch(e) {
};
}
function frame13(){
stop();
back_mc.addEventListener(MouseEvent.MOUSE_DOWN, backTomenu);
}
function frame24(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package parkinglot3_fla
Section 132
//introaaa_36 (parkinglot3_fla.introaaa_36)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class introaaa_36 extends MovieClip {
public var tireMark:MovieClip;
public var menu_mc:MovieClip;
public function introaaa_36(){
addFrameScript(0, frame1, 22, frame23, 27, frame28);
}
function frame1(){
menu_mc.visible = false;
}
function frame23(){
menu_mc.visible = true;
}
function frame28(){
stop();
if (this.parent["ins_selected"]){
tireMark.gotoAndStop(10);
};
}
}
}//package parkinglot3_fla
Section 133
//jk_307 (parkinglot3_fla.jk_307)
package parkinglot3_fla {
import flash.display.*;
public dynamic class jk_307 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var block11:MovieClip;
public var block14:MovieClip;
public var block15:MovieClip;
public var block12:MovieClip;
public var block13:MovieClip;
public var block7:MovieClip;
public var block18:MovieClip;
public var block19:MovieClip;
public var block3:MovieClip;
public var block10:MovieClip;
public var block23:MovieClip;
public var block20:MovieClip;
public var block16:MovieClip;
public var block24:MovieClip;
public var block17:MovieClip;
public var block22:MovieClip;
public var block21:MovieClip;
public var iceSurface1:MovieClip;
public var iceSurface2:MovieClip;
public var iceSurface3:MovieClip;
public var iceSurface4:MovieClip;
public var iceSurface5:MovieClip;
public var iceSurface6:MovieClip;
public var iceSurface7:MovieClip;
public var iceSurface8:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 134
//jkl_126 (parkinglot3_fla.jkl_126)
package parkinglot3_fla {
import flash.display.*;
public dynamic class jkl_126 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block4:MovieClip;
public var gutter1:MovieClip;
public var gutter2:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 135
//lev1copy_65 (parkinglot3_fla.lev1copy_65)
package parkinglot3_fla {
import flash.display.*;
public dynamic class lev1copy_65 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 136
//lev2copy_125 (parkinglot3_fla.lev2copy_125)
package parkinglot3_fla {
import flash.display.*;
public dynamic class lev2copy_125 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 137
//lev3copy_146 (parkinglot3_fla.lev3copy_146)
package parkinglot3_fla {
import flash.display.*;
public dynamic class lev3copy_146 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 138
//lev5copy_172 (parkinglot3_fla.lev5copy_172)
package parkinglot3_fla {
import flash.display.*;
public dynamic class lev5copy_172 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 139
//lev6copy_179 (parkinglot3_fla.lev6copy_179)
package parkinglot3_fla {
import flash.display.*;
public dynamic class lev6copy_179 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 140
//levdark_154 (parkinglot3_fla.levdark_154)
package parkinglot3_fla {
import flash.display.*;
public dynamic class levdark_154 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block4:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 141
//level10copy2_222 (parkinglot3_fla.level10copy2_222)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level10copy2_222 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 142
//level11copy2_257 (parkinglot3_fla.level11copy2_257)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level11copy2_257 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 143
//level12basecopy_268 (parkinglot3_fla.level12basecopy_268)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level12basecopy_268 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 144
//level12bg_269 (parkinglot3_fla.level12bg_269)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level12bg_269 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var gutter1:MovieClip;
public var block7:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
public var gutter2:MovieClip;
}
}//package parkinglot3_fla
Section 145
//level12deviders_277 (parkinglot3_fla.level12deviders_277)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level12deviders_277 extends MovieClip {
public var block1:MovieClip;
}
}//package parkinglot3_fla
Section 146
//level13copy_280 (parkinglot3_fla.level13copy_280)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level13copy_280 extends MovieClip {
public var playMask:MovieClip;
public var lightArea:MovieClip;
public var maskLayer:MovieClip;
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 147
//level14copy_295 (parkinglot3_fla.level14copy_295)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level14copy_295 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 148
//level15copy2_306 (parkinglot3_fla.level15copy2_306)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level15copy2_306 extends MovieClip {
public var playMask:MovieClip;
public var lightArea:MovieClip;
public var maskLayer:MovieClip;
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 149
//level16maincopy_317 (parkinglot3_fla.level16maincopy_317)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level16maincopy_317 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var movingCar1:MovieClip;
public var block8:MovieClip;
public var block15:MovieClip;
public var gutter1:MovieClip;
public var gutter2:MovieClip;
public var block3:MovieClip;
public var gutter3:MovieClip;
public var parkArea:MovieClip;
public var iceSurface1:MovieClip;
public var iceSurface2:MovieClip;
}
}//package parkinglot3_fla
Section 150
//level17main2_331 (parkinglot3_fla.level17main2_331)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level17main2_331 extends MovieClip {
public var playMask:MovieClip;
public var lightArea:MovieClip;
public var maskLayer:MovieClip;
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 151
//level17mainup_332 (parkinglot3_fla.level17mainup_332)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level17mainup_332 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block4:MovieClip;
public var movingCar1:MovieClip;
public var gutter1:MovieClip;
public var gutter2:MovieClip;
public var block3:MovieClip;
public var gutter3:MovieClip;
public var gutter4:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 152
//LEVEL19_355 (parkinglot3_fla.LEVEL19_355)
package parkinglot3_fla {
import flash.display.*;
public dynamic class LEVEL19_355 extends MovieClip {
public var playMask:MovieClip;
public var lightArea:MovieClip;
public var maskLayer:MovieClip;
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 153
//LEVEL19BG1_356 (parkinglot3_fla.LEVEL19BG1_356)
package parkinglot3_fla {
import flash.display.*;
public dynamic class LEVEL19BG1_356 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var movingCar2:MovieClip;
public var block6:MovieClip;
public var block9:MovieClip;
public var block4:MovieClip;
public var movingCar1:MovieClip;
public var block8:MovieClip;
public var gutter1:MovieClip;
public var block7:MovieClip;
public var block10:MovieClip;
public var block3:MovieClip;
public var gutter3:MovieClip;
public var parkArea:MovieClip;
public var gutter2:MovieClip;
public var iceSurface1:MovieClip;
public var iceSurface2:MovieClip;
public var iceSurface3:MovieClip;
}
}//package parkinglot3_fla
Section 154
//level19movcar2copy2_362 (parkinglot3_fla.level19movcar2copy2_362)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level19movcar2copy2_362 extends MovieClip {
public var block4:MovieClip;
}
}//package parkinglot3_fla
Section 155
//LEVEL20MAIN_365 (parkinglot3_fla.LEVEL20MAIN_365)
package parkinglot3_fla {
import flash.display.*;
public dynamic class LEVEL20MAIN_365 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var movingCar1:MovieClip;
public var block8:MovieClip;
public var gutter1:MovieClip;
public var block7:MovieClip;
public var block3:MovieClip;
public var gutter3:MovieClip;
public var gutter4:MovieClip;
public var parkArea:MovieClip;
public var gutter2:MovieClip;
public var iceSurface1:MovieClip;
public var iceSurface2:MovieClip;
public var iceSurface3:MovieClip;
public var iceSurface4:MovieClip;
}
}//package parkinglot3_fla
Section 156
//level4copy5_153 (parkinglot3_fla.level4copy5_153)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level4copy5_153 extends MovieClip {
public var playMask:MovieClip;
public var lightArea:MovieClip;
public var maskLayer:MovieClip;
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 157
//level7basecopy_189 (parkinglot3_fla.level7basecopy_189)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level7basecopy_189 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 158
//level7bg_190 (parkinglot3_fla.level7bg_190)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level7bg_190 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block4:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 159
//level7divider_194 (parkinglot3_fla.level7divider_194)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level7divider_194 extends MovieClip {
public var block1:MovieClip;
}
}//package parkinglot3_fla
Section 160
//level8background_197 (parkinglot3_fla.level8background_197)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level8background_197 extends MovieClip {
public var block1:MovieClip;
public var movingCar1:MovieClip;
public var gutter1:MovieClip;
public var gutter2:MovieClip;
public var gutter3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 161
//level8basecopy_196 (parkinglot3_fla.level8basecopy_196)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level8basecopy_196 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 162
//level8divider_204 (parkinglot3_fla.level8divider_204)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level8divider_204 extends MovieClip {
public var block1:MovieClip;
}
}//package parkinglot3_fla
Section 163
//level8movobstaclecopy_206 (parkinglot3_fla.level8movobstaclecopy_206)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level8movobstaclecopy_206 extends MovieClip {
public var block8:MovieClip;
}
}//package parkinglot3_fla
Section 164
//level9basecopy_207 (parkinglot3_fla.level9basecopy_207)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level9basecopy_207 extends MovieClip {
public var playMask:MovieClip;
public var lightArea:MovieClip;
public var maskLayer:MovieClip;
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 165
//level9bg_208 (parkinglot3_fla.level9bg_208)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level9bg_208 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var gutter1:MovieClip;
public var block7:MovieClip;
public var block3:MovieClip;
public var gutter3:MovieClip;
public var parkArea:MovieClip;
public var gutter2:MovieClip;
}
}//package parkinglot3_fla
Section 166
//level9dividers_221 (parkinglot3_fla.level9dividers_221)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level9dividers_221 extends MovieClip {
public var block1:MovieClip;
}
}//package parkinglot3_fla
Section 167
//logodrop_3 (parkinglot3_fla.logodrop_3)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class logodrop_3 extends MovieClip {
public function logodrop_3(){
addFrameScript(146, frame147);
}
function frame147(){
stop();
}
}
}//package parkinglot3_fla
Section 168
//mainlev18_345 (parkinglot3_fla.mainlev18_345)
package parkinglot3_fla {
import flash.display.*;
public dynamic class mainlev18_345 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var gutter1:MovieClip;
public var block7:MovieClip;
public var block3:MovieClip;
public var gutter3:MovieClip;
public var parkArea:MovieClip;
public var gutter2:MovieClip;
public var iceSurface1:MovieClip;
public var iceSurface2:MovieClip;
public var iceSurface3:MovieClip;
}
}//package parkinglot3_fla
Section 169
//mainmvclp20_364 (parkinglot3_fla.mainmvclp20_364)
package parkinglot3_fla {
import flash.display.*;
public dynamic class mainmvclp20_364 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 170
//MainTimeline (parkinglot3_fla.MainTimeline)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import be.boulevart.as3.security.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class MainTimeline extends MovieClip {
public var savecarX;
public var loaded:Number;
public var popup_mc:MovieClip;
public var mcMsg:MovieClip;
public var perTxt:Number;
public var savebgY;
public var savebgX;
public var savecarY;
public var percByt:Number;
public var winner:MovieClip;
public var min;
public var sec;
public var outerloader:MovieClip;
public var speed:Number;
public var myContextMenu:ContextMenu;
public var e:Encryption;
public var i;
public var j;
public var k;
public var SFXmuteflag;
public var l;
public var timeLeft;
public var mainCarRot;
public var score;
public var blockcount;
public var timeID;
public var levelComp:MovieClip;
public var bgXpos;
public var rightkey;
public var animspeed:Number;
public var mainCarXpos;
public var guttercount;
public var ouchFlag;
public var advancedMode:Boolean;
public var progress_mc:MovieClip;
public var loadPerc:Number;
public var currentFrm:Number;
public var damageCar6;
public var moveFlag;
public var movCarcount;
public var muteflag;
public var life;
public var leftkey;
public var damageCar5;
public var channel;
public var damageCar4;
public var bgYpos;
public var darkArea:MovieClip;
public var savecarRot;
public var loadText:TextField;
public var mainCarYpos;
public var scoreSend:Boolean;
public var sideBar:MovieClip;
public var totalFrm:Number;
public var total:Number;
public var redLife;
public var totalPoints:Number;
public var iscollision;
public var gameComplete:MovieClip;
public var classicMode:Boolean;
public var mainCar:MovieClip;
public var icecount;
public var snd;
public var SFXmute_mc:MovieClip;
public var hitcar;
public var forwardkey;
public var mcOuch:MovieClip;
public var lifeBarFlag;
public var level;
public var currentLevel;
public var channel1;
public var spacekey;
public var backwardkey;
public var hitFlag;
public var frameCount:Number;
public var instructions:MovieClip;
public var musicmute_mc:MovieClip;
public var namePage:MovieClip;
public var hitframe;
public var lifeFrame;
public var ins_selected;
public var parking:MovieClip;
public var totalScore;
public var gameOver:MovieClip;
public var snd1;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48);
}
public function GameOver(){
try {
channel.stop();
} catch(e) {
};
clearInterval(timeID);
stage.removeEventListener(Event.ENTER_FRAME, EnterFrame);
}
public function CreateCipherText(_arg1, _arg2, _arg3):String{
var _local4:String;
var _local5:String;
var _local6:String;
_local4 = "katUnzI$n0wcH@y03ot3c#N0$oluT10n$";
_local5 = ((((_arg1 + "|") + _arg2) + "|") + _arg3);
_local6 = Encrypt(_local5, _local4);
return (_local6);
}
public function playSound(_arg1:String){
var str = _arg1;
try {
snd = getDefinitionByName(str);
snd = new snd();
channel = snd.play();
channel.addEventListener(Event.SOUND_COMPLETE, soundLoop);
} catch(e) {
};
}
public function handleScoreSubmitSuccessful(_arg1:Event):void{
trace("inside complete");
}
public function Encrypt(_arg1:String, _arg2:String):String{
e = new Encryption(EncryptionTypes.Rijndael(), _arg1, _arg2, "ECB", 128, 128);
e.encryptRijndael();
return (e.getInput());
}
function frame10(){
stop();
mainCarXpos = 64;
mainCarYpos = 93;
mainCarRot = 270;
blockcount = 2;
icecount = 3;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 6;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame14(){
stop();
mainCarXpos = 55;
mainCarYpos = 90;
mainCarRot = 270;
bgXpos = 134;
bgYpos = 223;
blockcount = 4;
icecount = 2;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 10;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
public function gutterCollision(){
lifeBarFlag = true;
if ((((speed > -4)) && ((speed <= 4)))){
redLife = 2;
};
if ((((((speed > 4)) && ((speed <= 7)))) || ((((speed > -7)) && ((speed <= -4)))))){
redLife = 3;
};
if ((((speed > 7)) || ((speed <= -7)))){
redLife = 5;
};
lifeFrame = (lifeFrame + redLife);
if (mcOuch.currentFrame == 1){
mcOuch.gotoAndPlay(1);
};
speed = 0;
if (lifeFrame <= 20){
mainCar.gotoAndStop(4);
};
if ((((lifeFrame > 20)) && ((lifeFrame <= 40)))){
mainCar.gotoAndStop(5);
};
if (lifeFrame > 40){
mainCar.gotoAndStop(6);
};
sideBar.lifeBar.gotoAndStop(lifeFrame);
}
function frame16(){
stop();
mainCarXpos = 90;
mainCarYpos = 380;
mainCarRot = -147;
bgXpos = -83;
bgYpos = -456;
blockcount = 9;
icecount = 0;
guttercount = 2;
movCarcount = 0;
timeLeft = 180;
level = 12;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame18(){
stop();
mainCarXpos = 56;
mainCarYpos = 179;
mainCarRot = 270;
bgXpos = 0;
bgYpos = 25;
blockcount = 10;
icecount = 0;
guttercount = 11;
movCarcount = 0;
timeLeft = 180;
level = 14;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame15(){
stop();
mainCarXpos = 61;
mainCarYpos = 95;
mainCarRot = 270;
bgXpos = -139;
bgYpos = -96;
blockcount = 6;
icecount = 0;
guttercount = 0;
movCarcount = 1;
timeLeft = 180;
level = 11;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame4(){
stop();
if (!muteflag){
playSound("music1");
};
ins_selected = true;
}
function frame5(){
stop();
stop();
frameCount = 0;
speed = 0;
mainCarXpos = mainCar.x;
mainCarYpos = mainCar.y;
mainCarRot = mainCar.rotation;
bgXpos = darkArea.x;
bgYpos = darkArea.y;
iscollision = false;
lifeBarFlag = false;
forwardkey = false;
backwardkey = false;
rightkey = false;
leftkey = false;
spacekey = false;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
hitframe = 1;
hitcar = 0;
hitFlag = false;
moveFlag = true;
lifeFrame = 0;
damageCar4 = false;
damageCar5 = false;
damageCar6 = false;
ouchFlag = false;
stage.addEventListener(Event.ENTER_FRAME, EnterFrame);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.addEventListener(KeyboardEvent.KEY_UP, keyReleased);
mainCarXpos = 57;
mainCarYpos = 247;
mainCarRot = 270;
blockcount = 3;
icecount = 0;
guttercount = 0;
movCarcount = 0;
life = 3;
timeLeft = 180;
score = 0;
level = 1;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame11(){
stop();
mainCarXpos = 68;
mainCarYpos = 153;
mainCarRot = 270;
blockcount = 4;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 7;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame6(){
stop();
mainCarXpos = 489;
mainCarYpos = 329;
mainCarRot = 90;
blockcount = 4;
icecount = 0;
guttercount = 2;
movCarcount = 0;
timeLeft = 180;
level = 2;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
public function soundLoop(_arg1:Event){
var e = _arg1;
try {
channel = snd.play();
channel.addEventListener(Event.SOUND_COMPLETE, soundLoop);
} catch(e) {
};
}
function frame24(){
stop();
mainCarXpos = 188;
mainCarYpos = 359;
mainCarRot = 180;
bgXpos = -33;
bgYpos = -58;
blockcount = 8;
icecount = 4;
guttercount = 4;
movCarcount = 1;
timeLeft = 180;
level = 20;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame19(){
stop();
mainCarXpos = 65;
mainCarYpos = 109;
mainCarRot = 270;
bgXpos = -127;
bgYpos = -105;
blockcount = 24;
icecount = 8;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 15;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
ApplyMask();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame17(){
stop();
mainCarXpos = 184;
mainCarYpos = 335;
mainCarRot = -135;
bgXpos = 180;
bgYpos = -204;
blockcount = 14;
icecount = 0;
guttercount = 0;
movCarcount = 1;
timeLeft = 180;
level = 13;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
ApplyMask();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame9(){
stop();
mainCarXpos = 54;
mainCarYpos = 335;
mainCarRot = 180;
blockcount = 2;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 5;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame2(){
stop();
stage.invalidate();
stage.addEventListener(Event.RENDER, onDisplayObjectsLoaded);
total = 0;
loaded = 0;
loadPerc = 0;
currentFrm = 0;
totalFrm = 0;
perTxt = 0;
percByt = 0;
animspeed = 0;
}
function frame27(){
stop();
mainCarXpos = 83;
mainCarYpos = 66;
mainCarRot = 0;
bgXpos = -21;
bgYpos = 455;
blockcount = 3;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 3;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame7(){
stop();
mainCarXpos = 172;
mainCarYpos = 400;
mainCarRot = 180;
blockcount = 3;
icecount = 0;
guttercount = 0;
movCarcount = 1;
timeLeft = 180;
level = 3;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame1(){
stop();
myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
contextMenu = myContextMenu;
}
function frame12(){
stop();
mainCarXpos = 174;
mainCarYpos = 397;
mainCarRot = -149;
bgXpos = -154;
bgYpos = -21;
blockcount = 1;
icecount = 0;
guttercount = 3;
movCarcount = 1;
timeLeft = 180;
level = 8;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame36(){
stop();
mainCarXpos = 50;
mainCarYpos = 340;
mainCarRot = -90;
bgXpos = -54;
bgYpos = 465;
blockcount = 13;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 12;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
public function playmore(_arg1:Event){
var e = _arg1;
try {
MovieClip(root).channel.stop();
} catch(e) {
};
MovieClip(root).gotoAndStop(1);
}
function frame22(){
stop();
mainCarXpos = 509;
mainCarYpos = 258;
mainCarRot = 134;
bgXpos = -15;
bgYpos = -421;
blockcount = 7;
icecount = 3;
guttercount = 3;
movCarcount = 0;
timeLeft = 180;
level = 18;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame23(){
stop();
mainCarXpos = 252;
mainCarYpos = 348;
mainCarRot = -126;
bgXpos = -58;
bgYpos = -25;
blockcount = 10;
icecount = 3;
guttercount = 3;
movCarcount = 2;
timeLeft = 180;
level = 19;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
ApplyMask();
configureGame();
if (!muteflag){
playSound("music2");
};
}
public function preLoader(_arg1:Event):void{
total = loaderInfo.bytesTotal;
loaded = loaderInfo.bytesLoaded;
loadPerc = Math.floor(((loaded / total) * 100));
currentFrm = outerloader.innerloader.currentFrame;
totalFrm = outerloader.innerloader.totalFrames;
perTxt = Math.round(((currentFrm / totalFrm) * 100));
loadText.text = String(perTxt);
percByt = (loaded / total);
animspeed = Math.ceil((totalFrm * percByt));
if (animspeed > currentFrm){
outerloader.innerloader.play();
progress_mc.play();
} else {
outerloader.innerloader.stop();
progress_mc.stop();
};
if ((((perTxt >= 99)) && ((loadPerc >= 100)))){
trace("completed..");
removeEventListener(Event.ENTER_FRAME, preLoader);
MovieClip(root).gotoAndStop(1, "game");
};
}
function frame3(){
stop();
advancedMode = false;
classicMode = false;
if (this["ins_selected"]){
namePage.gotoAndStop(28);
};
if (!muteflag){
playSound("music1");
};
musicmute_mc.addEventListener(MouseEvent.MOUSE_DOWN, musicmute);
SFXmute_mc.addEventListener(MouseEvent.MOUSE_DOWN, soundmute);
}
function frame29(){
stop();
mainCarXpos = 505;
mainCarYpos = 176;
mainCarRot = 90;
bgXpos = 285;
bgYpos = 232;
blockcount = 10;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 5;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame21(){
stop();
mainCarXpos = 108;
mainCarYpos = 367;
mainCarRot = -119;
bgXpos = -151;
bgYpos = -414;
blockcount = 5;
icecount = 0;
guttercount = 4;
movCarcount = 1;
timeLeft = 180;
level = 17;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
ApplyMask();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame39(){
stop();
mainCarXpos = 522;
mainCarYpos = 117;
mainCarRot = 90;
bgXpos = -570;
bgYpos = 1045;
blockcount = 16;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 15;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
public function playagain(_arg1:Event){
var e = _arg1;
try {
channel.stop();
} catch(e) {
};
gotoAndStop(1);
}
function frame31(){
stop();
mainCarXpos = 508;
mainCarYpos = 132;
mainCarRot = 90;
bgXpos = -286;
bgYpos = 250;
blockcount = 5;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 7;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame32(){
stop();
mainCarXpos = 180;
mainCarYpos = 361;
mainCarRot = -132;
bgXpos = -78;
bgYpos = -441;
blockcount = 10;
icecount = 0;
guttercount = 0;
movCarcount = 1;
timeLeft = 180;
level = 8;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame33(){
stop();
mainCarXpos = 347;
mainCarYpos = 241;
mainCarRot = 0;
bgXpos = 518;
bgYpos = 41;
blockcount = 14;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 9;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame34(){
stop();
mainCarXpos = 90;
mainCarYpos = 78;
mainCarRot = 0;
bgXpos = -265;
bgYpos = 914;
blockcount = 7;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 10;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame45(){
this.removeEventListener(Event.ENTER_FRAME, EnterFrame);
if (!muteflag){
playSound("music1");
};
}
function frame26(){
stop();
mainCarXpos = 508;
mainCarYpos = 259;
mainCarRot = 71;
bgXpos = -73;
bgYpos = 435;
blockcount = 4;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 2;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame40(){
stop();
mainCarXpos = 504;
mainCarYpos = 133;
mainCarRot = 90;
bgXpos = -270;
bgYpos = 205;
blockcount = 13;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 16;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame28(){
stop();
mainCarXpos = 40;
mainCarYpos = 116;
mainCarRot = -90;
bgXpos = 527;
bgYpos = 229;
blockcount = 3;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 4;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame43(){
stop();
mainCarXpos = 456;
mainCarYpos = 92;
mainCarRot = 0;
bgXpos = -257;
bgYpos = 214;
blockcount = 18;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 19;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame37(){
stop();
mainCarXpos = 33;
mainCarYpos = 213;
mainCarRot = -90;
bgXpos = -32;
bgYpos = -426;
blockcount = 9;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 13;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame8(){
stop();
mainCarXpos = 63;
mainCarYpos = 332;
mainCarRot = 270;
blockcount = 4;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 4;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
ApplyMask();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame44(){
stop();
mainCarXpos = 63;
mainCarYpos = 362;
mainCarRot = 180;
bgXpos = 279;
bgYpos = -219;
blockcount = 15;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 20;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame46(){
stop();
if (!muteflag){
playSound("music1");
};
winner.scoreBox.text = MovieClip(root).score;
winner.play_again.addEventListener(MouseEvent.MOUSE_DOWN, playmore);
scoreSend = false;
totalScore = score;
totalPoints = (level - 1);
if (ExternalInterface.available){
try {
ExternalInterface.call("getUsername", totalScore, totalPoints);
} catch(error:Error) {
trace("error Reading skey");
};
};
if (!scoreSend){
scoreSend = true;
checkForm();
};
}
function frame48(){
stop();
MovieClip(root).advancedMode = false;
MovieClip(root).classicMode = false;
gameOver.play_again.addEventListener(MouseEvent.MOUSE_DOWN, playagain);
if (life == 0){
gameOver.reasonBox.text = "!!! Crashed !!!";
};
if (timeLeft <= 0){
gameOver.reasonBox.text = "!!! Time Out !!!";
};
gameOver.scoreBox.text = score;
if (!muteflag){
playSound("music1");
};
stop();
scoreSend = false;
totalScore = score;
totalPoints = (level - 1);
if (ExternalInterface.available){
try {
ExternalInterface.call("getUsername", totalScore, totalPoints);
} catch(error:Error) {
trace("error Reading skey");
};
};
if (!scoreSend){
scoreSend = true;
checkForm();
};
}
public function keyPressed(_arg1:KeyboardEvent){
switch (_arg1.keyCode){
case 38:
forwardkey = true;
break;
case 40:
backwardkey = true;
break;
case 39:
rightkey = true;
break;
case 37:
leftkey = true;
break;
case 32:
spacekey = true;
break;
case 13:
if (popup_mc.currentFrame == 11){
popup_mc.play();
};
if (this.currentFrame == 45){
levelComp.nextlevel(new MouseEvent(MouseEvent.MOUSE_DOWN));
};
break;
};
}
public function keyReleased(_arg1:KeyboardEvent){
switch (_arg1.keyCode){
case 38:
forwardkey = false;
break;
case 40:
backwardkey = false;
break;
case 39:
rightkey = false;
break;
case 37:
leftkey = false;
break;
case 32:
spacekey = false;
break;
};
}
public function calculateScore(){
score = (((score + (10 * timeLeft)) + (10 * (54 - lifeFrame))) + (life * 100));
}
function frame42(){
stop();
mainCarXpos = 39;
mainCarYpos = 306;
mainCarRot = -90;
bgXpos = 330;
bgYpos = 213;
blockcount = 11;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 18;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame20(){
stop();
mainCarXpos = 45;
mainCarYpos = 209;
mainCarRot = -72;
bgXpos = -93;
bgYpos = -442;
blockcount = 6;
icecount = 2;
guttercount = 3;
movCarcount = 1;
timeLeft = 180;
level = 16;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame30(){
stop();
mainCarXpos = 33;
mainCarYpos = 119;
mainCarRot = -90;
bgXpos = 1094;
bgYpos = 41;
blockcount = 7;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 6;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame13(){
stop();
mainCarXpos = 115;
mainCarYpos = 365;
mainCarRot = 270;
bgXpos = -84;
bgYpos = -79;
blockcount = 9;
icecount = 0;
guttercount = 3;
movCarcount = 0;
timeLeft = 180;
level = 9;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
ApplyMask();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame35(){
stop();
mainCarXpos = 58;
mainCarYpos = 361;
mainCarRot = -114;
bgXpos = -226;
bgYpos = 452;
blockcount = 9;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 11;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame38(){
stop();
mainCarXpos = 0x0101;
mainCarYpos = 372;
mainCarRot = 180;
bgXpos = -36;
bgYpos = 634;
blockcount = 24;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 14;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame47(){
stop();
currentLevel = (level - 1);
levelComp.scoreBox.text = score;
levelComp.levelBox.text = currentLevel;
if (!muteflag){
playSound("music1");
};
}
function frame41(){
stop();
mainCarXpos = 172;
mainCarYpos = 116;
mainCarRot = -90;
bgXpos = -545;
bgYpos = -52;
blockcount = 7;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 17;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame25(){
stop();
mainCarXpos = 534;
mainCarYpos = 354;
mainCarRot = 90;
bgXpos = 0;
bgYpos = 0x0200;
blockcount = 9;
icecount = 0;
guttercount = 0;
movCarcount = 0;
life = 3;
timeLeft = 180;
score = 0;
level = 1;
lifeFrame = 0;
frameCount = 0;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
public function onDisplayObjectsLoaded(_arg1){
stage.removeEventListener(Event.RENDER, onDisplayObjectsLoaded);
this.addEventListener(Event.ENTER_FRAME, preLoader);
}
public function continueGame(){
iscollision = false;
if ((((speed <= -0.4)) || ((speed >= 0.4)))){
if (ouchFlag){
lifeBarFlag = false;
ouchFlag = false;
};
};
}
public function StopGame(){
lifeBarFlag = false;
iscollision = true;
life--;
lifeFrame = 0;
}
public function timer(){
if (popup_mc.visible){
return;
};
timeLeft--;
if (timeLeft < 0){
GameOver();
gotoAndStop(46);
return;
};
if ((((timeLeft / 60)) && ((timeLeft >= 0)))){
min = int((timeLeft / 60));
sec = (timeLeft % 60);
if (String(min).length == 1){
sideBar.mc_timer.text = (("0" + min) + ":");
} else {
sideBar.mc_timer.text = (min + ":");
};
if (String(sec).length == 1){
sideBar.mc_timer.text = ((sideBar.mc_timer.text + "0") + sec);
} else {
sideBar.mc_timer.text = ((sideBar.mc_timer.text + "") + sec);
};
} else {
sideBar.mc_timer.text = "00:00";
};
return (timeLeft);
}
public function StartGame(){
mainCar.x = mainCarXpos;
mainCar.y = mainCarYpos;
darkArea.x = bgXpos;
darkArea.y = bgYpos;
if (lifeFrame == 0){
mainCar.gotoAndStop(1);
};
if ((((lifeFrame > 0)) && ((lifeFrame <= 20)))){
mainCar.gotoAndStop(4);
damageCar4 = true;
};
if ((((lifeFrame > 20)) && ((lifeFrame <= 40)))){
mainCar.gotoAndStop(5);
damageCar5 = true;
};
if (lifeFrame > 40){
mainCar.gotoAndStop(6);
damageCar6 = true;
};
mainCar.rotation = mainCarRot;
speed = 0;
iscollision = false;
lifeBarFlag = false;
sideBar.mcLife.gotoAndStop(life);
sideBar.lifeBar.gotoAndStop(lifeFrame);
hitFlag = false;
moveFlag = true;
l = 1;
while (l <= movCarcount) {
root["darkArea"]["playGround"][("movingCar" + l)].gotoAndPlay(1);
if ((((((this.currentFrame == 15)) || ((this.currentFrame == 19)))) || ((this.currentFrame == 21)))){
root["darkArea"]["playMask"][("movingCar" + l)].gotoAndPlay(1);
};
l++;
};
}
public function playSound1(_arg1:String){
var str1 = _arg1;
try {
snd1 = getDefinitionByName(str1);
snd1 = new snd1();
channel1 = snd1.play();
} catch(e) {
};
}
public function LifeBar(){
lifeBarFlag = true;
if (!SFXmuteflag){
playSound1("crash1");
};
if ((((speed > -4)) && ((speed <= 4)))){
redLife = 5;
};
if ((((((speed > 4)) && ((speed <= 7)))) || ((((speed > -7)) && ((speed <= -4)))))){
redLife = 10;
};
if ((((speed > 7)) || ((speed <= -7)))){
redLife = 15;
};
lifeFrame = (lifeFrame + redLife);
if (mcOuch.currentFrame == 1){
mcOuch.gotoAndPlay(1);
};
speed = 0;
if (lifeFrame <= 20){
mainCar.gotoAndStop(4);
};
if ((((lifeFrame > 20)) && ((lifeFrame <= 40)))){
mainCar.gotoAndStop(5);
};
if (lifeFrame > 40){
mainCar.gotoAndStop(6);
};
sideBar.lifeBar.gotoAndStop(lifeFrame);
}
public function ApplyMask(){
var _local1:Point;
if ((((((((((((this.currentFrame == 6)) || ((this.currentFrame == 11)))) || ((this.currentFrame == 15)))) || ((this.currentFrame == 17)))) || ((this.currentFrame == 19)))) || ((this.currentFrame == 21)))){
darkArea.playMask.mask = darkArea.lightArea;
_local1 = new Point(mainCar.x, mainCar.y);
_local1 = darkArea.globalToLocal(_local1);
darkArea.lightArea.rotation = (mainCar.rotation + 90);
darkArea.lightArea.x = _local1.x;
darkArea.lightArea.y = _local1.y;
darkArea.maskLayer.rotation = (mainCar.rotation + 90);
darkArea.maskLayer.x = _local1.x;
darkArea.maskLayer.y = _local1.y;
};
}
public function startMove(){
root["darkArea"]["playGround"][("movingCar" + hitcar)].gotoAndPlay(1);
if ((((((this.currentFrame == 15)) || ((this.currentFrame == 19)))) || ((this.currentFrame == 21)))){
root["darkArea"]["playMask"][("movingCar" + hitcar)].gotoAndPlay(1);
};
hitFlag = false;
}
public function SubmitScore(_arg1:String, _arg2:String, _arg3:String, _arg4:String){
var _local5:String;
var _local6:URLRequest;
var _local7:URLLoader;
var _local8:URLVariables;
var _local9:URLVariables;
_local5 = "katUnzI$n0wcH@y03ot3c#N0$oluT10n$";
_local6 = new URLRequest("/member/setscore.php");
_local7 = new URLLoader();
_local8 = new URLVariables();
_local9 = new URLVariables();
_local7.addEventListener(Event.COMPLETE, handleScoreSubmitSuccessful);
_local8.verify = CreateCipherText(_arg3, _arg4, _arg1);
_local8.gameID = _arg1;
_local8.tourID = _arg2;
_local8.playerPoint = _arg4;
_local8.playerScore = _arg3;
trace(("Score" + _local8.playerScore));
trace(("Point" + _local8.playerPoint));
_local6.method = URLRequestMethod.POST;
_local7.dataFormat = URLLoaderDataFormat.TEXT;
_local6.data = _local8;
_local7.load(_local6);
}
public function EnterFrame(_arg1:Event){
var _local2:Point;
if (popup_mc.visible){
return;
};
if ((frameCount++ % 20) == 0){
if (!lifeBarFlag){
savecarX = mainCar.x;
savecarY = mainCar.y;
savecarRot = mainCar.rotation;
savebgX = darkArea.x;
savebgY = darkArea.y;
};
if (frameCount > 100){
frameCount = (frameCount - 100);
};
};
bgMove();
i = 1;
while (i <= blockcount) {
if (PixelPerfectCollisionDetection.isColliding(root["mainCar"], root["darkArea"]["playGround"][("block" + i)], MovieClip(root), true)){
if (((!(iscollision)) && (!(lifeBarFlag)))){
LifeBar();
};
};
i++;
};
j = 1;
while (j <= icecount) {
if (PixelPerfectCollisionDetection.isColliding(root["darkArea"]["playGround"][("iceSurface" + j)]["innerS"], root["mainCar"]["carCentre"], MovieClip(root), true)){
if ((((speed > 5)) || ((speed < -5)))){
if (((((forwardkey) && (leftkey))) || (((backwardkey) && (rightkey))))){
mainCar.rotation = (mainCar.rotation + ((speed * 0.04) * (mainCar.tire1.rotation + 20)));
mainCar.x = (mainCar.x - ((Math.cos(((mainCar.rotation * Math.PI) / 180)) * speed) * 3));
mainCar.y = (mainCar.y - ((Math.sin(((mainCar.rotation * Math.PI) / 180)) * speed) * 0.8));
} else {
mainCar.rotation = (mainCar.rotation + ((speed * 0.04) * (mainCar.tire1.rotation + 20)));
mainCar.x = (mainCar.x + ((Math.cos(((mainCar.rotation * Math.PI) / 180)) * speed) * 3));
mainCar.y = (mainCar.y + ((Math.sin(((mainCar.rotation * Math.PI) / 180)) * speed) * 0.8));
};
};
};
j++;
};
k = 1;
while (k <= guttercount) {
if (PixelPerfectCollisionDetection.isColliding(root["mainCar"]["carG"], root["darkArea"]["playGround"][("gutter" + k)]["innerg"], MovieClip(root), true)){
if (((!(iscollision)) && (!(lifeBarFlag)))){
gutterCollision();
};
};
k++;
};
l = 1;
while (l <= movCarcount) {
if (PixelPerfectCollisionDetection.isColliding(root["mainCar"], root["darkArea"]["playGround"][("movingCar" + l)], MovieClip(root), true)){
if (((!(iscollision)) && (!(hitFlag)))){
hitframe = root["darkArea"]["playGround"][("movingCar" + l)].currentFrame;
root["darkArea"]["playGround"][("movingCar" + l)].gotoAndStop(hitframe);
if ((((((this.currentFrame == 15)) || ((this.currentFrame == 19)))) || ((this.currentFrame == 21)))){
root["darkArea"]["playMask"][("movingCar" + l)].gotoAndStop(hitframe);
};
hitcar = l;
hitFlag = true;
LifeBar();
};
};
l++;
};
if (PixelPerfectCollisionDetection.isColliding(root["darkArea"]["playGround"]["parkArea"]["tireArea"], root["mainCar"]["tire1"], MovieClip(root), true)){
if (PixelPerfectCollisionDetection.isColliding(root["darkArea"]["playGround"]["parkArea"]["tireArea"], root["mainCar"]["tire2"], MovieClip(root), true)){
if (PixelPerfectCollisionDetection.isColliding(root["darkArea"]["playGround"]["parkArea"]["tireArea"], root["mainCar"]["tire3"], MovieClip(root), true)){
if (PixelPerfectCollisionDetection.isColliding(root["darkArea"]["playGround"]["parkArea"]["tireArea"], root["mainCar"]["tire4"], MovieClip(root), true)){
level++;
calculateScore();
GameOver();
parking.gotoAndStop(2);
parking.gotoAndPlay(2);
return;
};
};
};
};
if ((((timeLeft > 0)) && (lifeBarFlag))){
if (lifeFrame < 54){
continueGame();
};
if (lifeFrame > 53){
if (mcMsg.currentFrame >= 28){
StopGame();
};
return;
};
};
if ((((timeLeft > 0)) && (iscollision))){
if (life > 0){
StartGame();
} else {
if (life <= 0){
GameOver();
gotoAndStop(46);
return;
};
};
};
if (forwardkey){
if ((((mainCar.currentFrame == 1)) && ((Math.abs(speed) >= 1)))){
mainCar.gotoAndStop(2);
};
if (speed < 9){
if (lifeFrame <= 20){
speed = (speed + 0.4);
};
if ((((lifeFrame > 20)) && ((lifeFrame <= 40)))){
speed = (speed + 0.3);
};
if (lifeFrame > 40){
speed = (speed + 0.15);
};
};
};
if (backwardkey){
if ((((mainCar.currentFrame == 1)) && ((Math.abs(speed) >= 1)))){
mainCar.gotoAndStop(2);
};
if (speed > -9){
if (lifeFrame <= 20){
speed = (speed - 0.4);
};
if ((((lifeFrame > 20)) && ((lifeFrame <= 40)))){
speed = (speed - 0.3);
};
if (lifeFrame > 40){
speed = (speed - 0.15);
};
};
} else {
if (((!(forwardkey)) && (!(backwardkey)))){
speed = (speed * 0.7);
};
};
if (((((spacekey) && (!(iscollision)))) && (!(lifeBarFlag)))){
if (((((forwardkey) && (rightkey))) || (((backwardkey) && (leftkey))))){
mainCar.rotation = (mainCar.rotation + ((speed * 0.03) * mainCar.tire1.rotation));
mainCar.x = (mainCar.x + ((Math.cos(((mainCar.rotation * Math.PI) / 180)) * speed) * 2));
mainCar.y = (mainCar.y + ((Math.sin(((mainCar.rotation * Math.PI) / 180)) * speed) * 0.9));
speed = (speed * 0.7);
} else {
if (((((forwardkey) && (leftkey))) || (((backwardkey) && (rightkey))))){
mainCar.rotation = (mainCar.rotation + ((speed * 0.03) * mainCar.tire1.rotation));
mainCar.x = (mainCar.x - ((Math.cos(((mainCar.rotation * Math.PI) / 180)) * speed) * 2));
mainCar.y = (mainCar.y - ((Math.sin(((mainCar.rotation * Math.PI) / 180)) * speed) * 0.9));
speed = (speed * 0.7);
} else {
if (((forwardkey) || (backwardkey))){
speed = (speed * 0.5);
};
};
};
};
if (rightkey){
if (mainCar.tire1.rotation < 25){
mainCar.tire1.rotation = (mainCar.tire1.rotation + 4);
mainCar.tire2.rotation = (mainCar.tire2.rotation + 4);
};
};
if (leftkey){
if (mainCar.tire1.rotation > -25){
mainCar.tire1.rotation = (mainCar.tire1.rotation - 4);
mainCar.tire2.rotation = (mainCar.tire2.rotation - 4);
};
} else {
if (((!(rightkey)) && (!(leftkey)))){
if (mainCar.tire1.rotation > 0){
mainCar.tire1.rotation = (mainCar.tire1.rotation - 4);
mainCar.tire2.rotation = (mainCar.tire2.rotation - 4);
};
if (mainCar.tire1.rotation < 0){
mainCar.tire1.rotation = (mainCar.tire1.rotation + 4);
mainCar.tire2.rotation = (mainCar.tire2.rotation + 4);
};
};
};
if (((!(iscollision)) && (!(lifeBarFlag)))){
mainCar.rotation = (mainCar.rotation + ((speed * 0.02) * mainCar.tire1.rotation));
mainCar.x = (mainCar.x - (Math.sin(((mainCar.rotation * Math.PI) / 180)) * speed));
mainCar.y = (mainCar.y - ((Math.cos(((mainCar.rotation * Math.PI) / 180)) * -1) * speed));
};
if ((((((((((((this.currentFrame == 6)) || ((this.currentFrame == 11)))) || ((this.currentFrame == 15)))) || ((this.currentFrame == 17)))) || ((this.currentFrame == 19)))) || ((this.currentFrame == 21)))){
darkArea.playMask.mask = darkArea.lightArea;
_local2 = new Point(mainCar.x, mainCar.y);
_local2 = darkArea.globalToLocal(_local2);
darkArea.lightArea.rotation = (mainCar.rotation + 90);
darkArea.lightArea.x = _local2.x;
darkArea.lightArea.y = _local2.y;
darkArea.maskLayer.rotation = (mainCar.rotation + 90);
darkArea.maskLayer.x = _local2.x;
darkArea.maskLayer.y = _local2.y;
};
}
public function soundmute(_arg1:MouseEvent){
if (SFXmute_mc.currentFrame == 1){
SFXmuteflag = true;
SFXmute_mc.gotoAndStop(2);
} else {
SFXmuteflag = false;
SFXmute_mc.gotoAndStop(1);
};
}
public function bgMove(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:Point;
_local1 = false;
_local2 = darkArea.x;
_local3 = darkArea.y;
_local4 = mainCar.x;
_local5 = mainCar.y;
_local6 = new Point(mainCar.carCentre.x, mainCar.carCentre.y);
_local6 = mainCar.localToGlobal(_local6);
if (_local6.x > 563){
_local2 = (darkArea.x - 565);
_local4 = (mainCar.x - 565);
_local1 = true;
} else {
if (_local6.x < -18){
_local2 = (darkArea.x + 565);
_local4 = (565 + mainCar.x);
_local1 = true;
} else {
if (_local6.y > 426){
_local3 = (darkArea.y - 400);
_local5 = (mainCar.y - 400);
_local1 = true;
} else {
if (_local6.y < 24){
_local3 = (darkArea.y + 400);
_local5 = (400 + mainCar.y);
_local1 = true;
};
};
};
};
if (_local1){
darkArea.x = _local2;
darkArea.y = _local3;
mainCar.x = _local4;
mainCar.y = _local5;
_local1 = false;
};
}
public function musicmute(_arg1:MouseEvent){
var sndevnt = _arg1;
if (musicmute_mc.currentFrame == 1){
muteflag = true;
musicmute_mc.gotoAndStop(2);
try {
channel.stop();
} catch(e) {
};
} else {
muteflag = false;
musicmute_mc.gotoAndStop(1);
if ((((((currentFrame == 1)) || ((currentFrame == 2)))) || ((((currentFrame >= 23)) && ((currentFrame <= 26)))))){
playSound("music1");
} else {
if ((((currentFrame >= 3)) && ((currentFrame <= 22)))){
playSound("music2");
};
};
};
}
public function checkForm(){
SubmitScore(root.loaderInfo.parameters.gameID, root.loaderInfo.parameters.tourID, String(totalScore), String(totalPoints));
ExternalInterface.call((((("callAjax(" + totalScore) + ",") + totalPoints) + ")"));
}
public function configureGame(){
stage.addEventListener(Event.ENTER_FRAME, EnterFrame);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.addEventListener(KeyboardEvent.KEY_UP, keyReleased);
}
}
}//package parkinglot3_fla
Section 171
//manin218_344 (parkinglot3_fla.manin218_344)
package parkinglot3_fla {
import flash.display.*;
public dynamic class manin218_344 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 172
//mc_cngrtsccc_931 (parkinglot3_fla.mc_cngrtsccc_931)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mc_cngrtsccc_931 extends MovieClip {
public function mc_cngrtsccc_931(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package parkinglot3_fla
Section 173
//MUSICMUTE_52 (parkinglot3_fla.MUSICMUTE_52)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class MUSICMUTE_52 extends MovieClip {
public function MUSICMUTE_52(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package parkinglot3_fla
Section 174
//nlmnk_157 (parkinglot3_fla.nlmnk_157)
package parkinglot3_fla {
import flash.display.*;
public dynamic class nlmnk_157 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block4:MovieClip;
public var block3:MovieClip;
}
}//package parkinglot3_fla
Section 175
//nmnmnm2_48 (parkinglot3_fla.nmnmnm2_48)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class nmnmnm2_48 extends MovieClip {
public function nmnmnm2_48(){
addFrameScript(0, frame1);
}
public function logoRelease(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.gamezindia.com"), "_blank");
}
function frame1(){
this.addEventListener(MouseEvent.CLICK, logoRelease);
}
}
}//package parkinglot3_fla
Section 176
//ouchs_123 (parkinglot3_fla.ouchs_123)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class ouchs_123 extends MovieClip {
public function ouchs_123(){
addFrameScript(0, frame1, 11, frame12, 19, frame20);
}
function frame12(){
}
function frame1(){
stop();
}
function frame20(){
if (MovieClip(root).lifeFrame > 53){
MovieClip(root).mcMsg.gotoAndPlay(1);
};
if (MovieClip(root).hitFlag){
MovieClip(root).startMove();
};
MovieClip(root).mainCar.x = MovieClip(root).savecarX;
MovieClip(root).mainCar.y = MovieClip(root).savecarY;
MovieClip(root).mainCar.rotation = MovieClip(root).savecarRot;
MovieClip(root).darkArea.x = MovieClip(root).savebgX;
MovieClip(root).darkArea.y = MovieClip(root).savebgY;
MovieClip(root).ouchFlag = true;
}
}
}//package parkinglot3_fla
Section 177
//parkingareacopy10_198 (parkinglot3_fla.parkingareacopy10_198)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy10_198 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 178
//parkingareacopy11_212 (parkinglot3_fla.parkingareacopy11_212)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy11_212 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 179
//parkingareacopy12_231 (parkinglot3_fla.parkingareacopy12_231)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy12_231 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 180
//parkingareacopy13_259 (parkinglot3_fla.parkingareacopy13_259)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy13_259 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 181
//parkingareacopy14_279 (parkinglot3_fla.parkingareacopy14_279)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy14_279 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 182
//parkingareacopy15_291 (parkinglot3_fla.parkingareacopy15_291)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy15_291 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 183
//parkingareacopy16_298 (parkinglot3_fla.parkingareacopy16_298)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy16_298 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 184
//parkingareacopy17_314 (parkinglot3_fla.parkingareacopy17_314)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy17_314 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 185
//parkingareacopy18_322 (parkinglot3_fla.parkingareacopy18_322)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy18_322 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 186
//parkingareacopy19_339 (parkinglot3_fla.parkingareacopy19_339)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy19_339 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 187
//parkingareacopy20_353 (parkinglot3_fla.parkingareacopy20_353)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy20_353 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 188
//parkingareacopy21_357 (parkinglot3_fla.parkingareacopy21_357)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy21_357 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 189
//parkingareacopy22_366 (parkinglot3_fla.parkingareacopy22_366)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy22_366 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 190
//parkingareacopy3_80 (parkinglot3_fla.parkingareacopy3_80)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy3_80 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 191
//parkingareacopy4_132 (parkinglot3_fla.parkingareacopy4_132)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy4_132 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 192
//parkingareacopy5_150 (parkinglot3_fla.parkingareacopy5_150)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy5_150 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 193
//parkingareacopy6_155 (parkinglot3_fla.parkingareacopy6_155)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy6_155 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 194
//parkingareacopy7_175 (parkinglot3_fla.parkingareacopy7_175)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy7_175 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 195
//parkingareacopy8_184 (parkinglot3_fla.parkingareacopy8_184)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy8_184 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 196
//parkingareacopy9_195 (parkinglot3_fla.parkingareacopy9_195)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy9_195 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 197
//pop_upiii_58 (parkinglot3_fla.pop_upiii_58)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class pop_upiii_58 extends MovieClip {
public var popupName:TextField;
public var go_mc:SimpleButton;
public var popupText:TextField;
public function pop_upiii_58(){
addFrameScript(0, frame1, 1, frame2, 10, frame11, 21, frame22);
}
function frame1(){
stop();
this.visible = false;
}
function frame22(){
MovieClip(this.parent).sideBar.howtoplay.mouseEnabled = true;
}
function frame2(){
this.visible = true;
}
public function levelPopup(){
switch (MovieClip(root).currentFrame){
case 3:
this.popupName.text = "!!! Warming Up !!!";
this.popupText.text = " Use UP arrow key to accelerate, DOWN to brake, and the LEFT and RIGHT arrow keys to steer. You can also use the SPACE BAR key to use your parking brakes.Press ENTER key to close pop-up windows and continue with the game. Do not crash into obstacles. Its game over if theres more than a few scratches on your car!";
break;
case 4:
this.popupName.text = "!!! Bad Roads !!!";
this.popupText.text = " Watch out for the potholes on the road, they might add damage to your car if you are not careful!";
break;
case 5:
this.popupName.text = "!!! Watch out !!!";
this.popupText.text = " Keep an eye out for moving traffic, you never know when a car might come driving at you!";
break;
case 6:
this.popupName.text = "!!! Lights Out !!!";
this.popupText.text = " Oops! Got late tonight! Thankfully you have headlights... Now, where do you park your car?";
break;
case 7:
this.popupName.text = "!!! Blinded !!!";
this.popupText.text = " Its too foggy out there. You had better keep watch and take it slow...";
break;
case 8:
this.popupName.text = "!!! Ice Skater !!!";
this.popupText.text = " Ah... Ice all over the road. How perfect! Make sure you take it slow or you're in for trouble!";
break;
case 9:
this.popupName.text = "!!! Tight Spot !!!";
this.popupText.text = " This one's gonna be tricky. Take it slow, and keep watch!";
break;
case 10:
this.popupName.text = "!!! Parking Skillz !!!";
this.popupText.text = " Lets see how you tackle this one. Dont forget the potholes!";
break;
case 11:
this.popupName.text = "!!! Potholes in the dark !!!";
this.popupText.text = " I hope your headlamps shine down. Watch the road!";
break;
case 12:
this.popupName.text = "!!! Natural Calamity !!!";
this.popupText.text = " Wow. Ice and fog, together. Perfect time for a car-skid...";
break;
case 13:
this.popupName.text = "!!! Recipe for disaster !!!";
this.popupText.text = " Incoming traffic and fog sounds like a perfect recipe for disaster!";
break;
case 14:
this.popupName.text = "!!! Skillz that killz !!!";
this.popupText.text = " Now this is what you call serious driving skills";
break;
case 15:
this.popupName.text = "!!! Headlight rampage !!!";
this.popupText.text = " You have a good chance of getting your license revoked!";
break;
case 16:
this.popupName.text = "!!! Blur and bump !!!";
this.popupText.text = " Bad Weather + Bad Road = You need a whole lotta Good Luck!!!";
break;
case 17:
this.popupName.text = "!!! Slipping into disaster !!!";
this.popupText.text = " Ever got the feeling you are in for a world of pain?";
break;
case 18:
this.popupName.text = "!!! Out of control !!!";
this.popupText.text = " Lets see you get out of this alive!!";
break;
case 19:
this.popupName.text = "!!! The dark night !!!";
this.popupText.text = " Is this the night when your driving comes to an end?";
break;
case 20:
this.popupName.text = "!!! Bumps and Shivers !!!";
this.popupText.text = " Falling into all the potholes should keep you warm!";
break;
case 21:
this.popupName.text = "!!! Nightmareville !!!";
this.popupText.text = " Yes...Its your worst driving nightmare";
break;
case 22:
this.popupName.text = "!!! The final challenge !!!";
this.popupText.text = " Finally its all over!";
break;
};
}
public function whenKeyPressed(_arg1){
if (_arg1.keyCode == 13){
play();
};
}
function frame11(){
stop();
levelPopup();
go_mc.addEventListener(MouseEvent.MOUSE_DOWN, goTolevel);
go_mc.addEventListener(KeyboardEvent.KEY_DOWN, whenKeyPressed);
}
public function goTolevel(_arg1:Event){
play();
}
}
}//package parkinglot3_fla
Section 198
//powerbar_105 (parkinglot3_fla.powerbar_105)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class powerbar_105 extends MovieClip {
public function powerbar_105(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package parkinglot3_fla
Section 199
//sduhgaudghhh_45 (parkinglot3_fla.sduhgaudghhh_45)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class sduhgaudghhh_45 extends MovieClip {
public function sduhgaudghhh_45(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame30(){
if ((((MovieClip(this.parent).currentFrame == 22)) || ((MovieClip(this.parent).currentFrame == 42)))){
MovieClip(this.parent).gotoAndStop(43);
} else {
MovieClip(this.parent).gotoAndStop(45);
};
}
}
}//package parkinglot3_fla
Section 200
//skidaaa_43 (parkinglot3_fla.skidaaa_43)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class skidaaa_43 extends MovieClip {
public function skidaaa_43(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package parkinglot3_fla
Section 201
//skidmarkfff_925 (parkinglot3_fla.skidmarkfff_925)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class skidmarkfff_925 extends MovieClip {
public function skidmarkfff_925(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package parkinglot3_fla
Section 202
//SNDMUTE_55 (parkinglot3_fla.SNDMUTE_55)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class SNDMUTE_55 extends MovieClip {
public function SNDMUTE_55(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package parkinglot3_fla
Section 203
//Sorry_933 (parkinglot3_fla.Sorry_933)
package parkinglot3_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Sorry_933 extends MovieClip {
public var play_again:SimpleButton;
public var scoreBox:TextField;
public var reasonBox:TextField;
}
}//package parkinglot3_fla
Section 204
//submvcliplevel16copy_316 (parkinglot3_fla.submvcliplevel16copy_316)
package parkinglot3_fla {
import flash.display.*;
public dynamic class submvcliplevel16copy_316 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 205
//Symbol1_439 (parkinglot3_fla.Symbol1_439)
package parkinglot3_fla {
import flash.display.*;
public dynamic class Symbol1_439 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 206
//Symbol1ccc_930 (parkinglot3_fla.Symbol1ccc_930)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Symbol1ccc_930 extends MovieClip {
public var next_level:SimpleButton;
public var levelBox:TextField;
public var scoreBox:TextField;
public var close:SimpleButton;
public function Symbol1ccc_930(){
addFrameScript(19, frame20);
}
public function WhenKeyPressed1(_arg1){
var e = _arg1;
if (e.keyCode == 13){
try {
MovieClip(root).channel.stop();
} catch(e) {
};
if (MovieClip(root).advancedMode){
MovieClip(root).gotoAndStop((MovieClip(root).level + 2));
};
if (MovieClip(root).classicMode){
MovieClip(root).gotoAndStop((MovieClip(root).level + 22));
};
};
}
function frame20(){
stop();
next_level.addEventListener(MouseEvent.MOUSE_DOWN, nextlevel);
next_level.addEventListener(KeyboardEvent.KEY_DOWN, WhenKeyPressed1);
}
public function nextlevel(_arg1:Event){
var e = _arg1;
try {
MovieClip(root).channel.stop();
} catch(e) {
};
if (MovieClip(root).advancedMode){
MovieClip(root).gotoAndStop((MovieClip(root).level + 2));
};
if (MovieClip(root).classicMode){
MovieClip(root).gotoAndStop((MovieClip(root).level + 22));
};
}
}
}//package parkinglot3_fla
Section 207
//Symbol28_104 (parkinglot3_fla.Symbol28_104)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Symbol28_104 extends MovieClip {
public var mc_timer:TextField;
public var lifeBar:MovieClip;
public var howtoplay:SimpleButton;
public var mcLife:MovieClip;
public function Symbol28_104(){
addFrameScript(0, frame1);
}
public function backTomenu1(_arg1:Event){
if (MovieClip(this.parent).popup_mc.visible){
howtoplay.mouseEnabled = false;
return;
};
}
function frame1(){
stop();
howtoplay.addEventListener(MouseEvent.MOUSE_OVER, backTomenu1);
}
}
}//package parkinglot3_fla
Section 208
//Symbol5aaa_37 (parkinglot3_fla.Symbol5aaa_37)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Symbol5aaa_37 extends MovieClip {
public var classic_mode:SimpleButton;
public var help_mc:SimpleButton;
public var play_mc:SimpleButton;
public var advanced_mode:SimpleButton;
public function Symbol5aaa_37(){
addFrameScript(10, frame11, 33, frame34);
}
public function startMode(_arg1:Event){
this.play();
}
function frame34(){
stop();
MovieClip(root).advancedMode = false;
MovieClip(root).classicMode = false;
advanced_mode.addEventListener(MouseEvent.MOUSE_DOWN, adv_play);
classic_mode.addEventListener(MouseEvent.MOUSE_DOWN, class_play);
}
function frame11(){
stop();
play_mc.addEventListener(MouseEvent.MOUSE_DOWN, startMode);
help_mc.addEventListener(MouseEvent.MOUSE_DOWN, startHelp);
}
public function adv_play(_arg1:Event){
var e = _arg1;
MovieClip(root).advancedMode = true;
try {
MovieClip(root).channel.stop();
} catch(e) {
};
MovieClip(root).gotoAndStop(3);
}
public function class_play(_arg1:Event){
var e = _arg1;
MovieClip(root).classicMode = true;
try {
MovieClip(root).channel.stop();
} catch(e) {
};
MovieClip(root).gotoAndStop(23);
}
public function startHelp(_arg1:Event){
MovieClip(root).channel.stop();
MovieClip(root).gotoAndStop(2);
}
}
}//package parkinglot3_fla
Section 209
//Symbol99aB_87 (parkinglot3_fla.Symbol99aB_87)
package parkinglot3_fla {
import flash.display.*;
public dynamic class Symbol99aB_87 extends MovieClip {
public var innerT:MovieClip;
}
}//package parkinglot3_fla
Section 210
//SymbolhjhjhaB_84 (parkinglot3_fla.SymbolhjhjhaB_84)
package parkinglot3_fla {
import flash.display.*;
public dynamic class SymbolhjhjhaB_84 extends MovieClip {
public var innerT:MovieClip;
}
}//package parkinglot3_fla
Section 211
//teaser_1 (parkinglot3_fla.teaser_1)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.external.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class teaser_1 extends MovieClip {
public function teaser_1(){
addFrameScript(0, frame1, 439, frame440);
}
public function logoRelease(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.addictinggames.com"), "_blank");
}
function frame440(){
stop();
MovieClip(this.parent).gotoAndStop(2);
}
function frame1(){
this.addEventListener(MouseEvent.CLICK, logoRelease);
}
}
}//package parkinglot3_fla
Section 212
//vbnn_296 (parkinglot3_fla.vbnn_296)
package parkinglot3_fla {
import flash.display.*;
public dynamic class vbnn_296 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var gutter1:MovieClip;
public var block7:MovieClip;
public var gutter6:MovieClip;
public var gutter7:MovieClip;
public var block3:MovieClip;
public var gutter8:MovieClip;
public var gutter3:MovieClip;
public var gutter4:MovieClip;
public var gutter11:MovieClip;
public var parkArea:MovieClip;
public var gutter10:MovieClip;
public var gutter2:MovieClip;
public var gutter5:MovieClip;
public var gutter9:MovieClip;
public var block10:MovieClip;
}
}//package parkinglot3_fla
Section 213
//YOURggg_927 (parkinglot3_fla.YOURggg_927)
package parkinglot3_fla {
import flash.display.*;
import flash.text.*;
public dynamic class YOURggg_927 extends MovieClip {
public var play_again:SimpleButton;
public var scoreBox:TextField;
}
}//package parkinglot3_fla
Section 214
//z_44_395 (parkinglot3_fla.z_44_395)
package parkinglot3_fla {
import flash.display.*;
public dynamic class z_44_395 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 215
//z_7_371 (parkinglot3_fla.z_7_371)
package parkinglot3_fla {
import flash.display.*;
public dynamic class z_7_371 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 216
//z_8_372 (parkinglot3_fla.z_8_372)
package parkinglot3_fla {
import flash.display.*;
public dynamic class z_8_372 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var block7:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 217
//zacvzsdv_147 (parkinglot3_fla.zacvzsdv_147)
package parkinglot3_fla {
import flash.display.*;
public dynamic class zacvzsdv_147 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var movingCar1:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 218
//AGdom (AGdom)
package {
import flash.events.*;
import com.adobe.serialization.json.*;
import flash.net.*;
import flash.utils.*;
public class AGdom {
private var instanceLoader:URLLoader;
private var serviceTimer:Timer;
private var instanceRequest:URLRequest;
private var toolkit:Object;
public function AGdom(_arg1:Object):void{
instanceLoader = new URLLoader();
instanceRequest = new URLRequest();
super();
toolkit = _arg1;
serviceTimer = new Timer(15000, 1);
serviceTimer.addEventListener(TimerEvent.TIMER_COMPLETE, serviceTimeout);
}
private function returnServer(_arg1:Event):void{
var _local2:*;
serviceTimer.reset();
_local2 = JSON.decode(_arg1.target.data);
trace(("\ngetServerInstance response\n" + _arg1.target.data));
if (_local2["response-array"][0]["returnCode"] == "Error"){
serviceErrorReturn();
return;
};
toolkit.HSdomain = _local2["response-array"][0]["response"].instance;
toolkit.CSdomain = _local2["response-array"][0]["response"].communityInstance;
toolkit.AGdomain = toolkit.CSdomain;
toolkit.AGallowDomain(toolkit.HSdomain);
toolkit.AGallowDomain(toolkit.CSdomain);
toolkit.AGremovePreloader();
toolkit.loader.initLoader();
}
private function AGdomainStatus():void{
var _local1:int;
var _local2:*;
var _local3:String;
_local1 = (int(toolkit.AGfileLocation.indexOf("://")) + 3);
_local2 = toolkit.AGfileLocation.substring(0, _local1);
if (_local2 == "file://"){
trace("found local dev");
toolkit.AGdomain = (toolkit.CSdomain = "dev.addictinggames.com");
toolkit.HSdomain = "hsdev.addictinggames.com";
toolkit.AGdeveloper = true;
toolkit.AGmount = true;
getServer();
return;
};
_local3 = toolkit.AGfileLocation.substr(_local1);
toolkit.AGdomain = _local3.substring(0, _local3.indexOf("/"));
if (((!((_local3.indexOf("addictinggames.com") == -1))) || (!((_local3.indexOf("shockwave.com") == -1))))){
toolkit.AGmount = true;
getServer();
};
}
private function serviceErrorReturn():void{
trace("json error");
toolkit.AGserviceError();
}
private function serviceErrorSecurity(_arg1:SecurityErrorEvent):void{
trace(_arg1);
toolkit.AGserviceError();
}
private function serviceTimeout(_arg1:TimerEvent):void{
trace("timeout error");
toolkit.AGserviceError();
}
private function serviceErrorIO(_arg1:IOErrorEvent):void{
trace(_arg1);
toolkit.AGserviceError();
}
private function getServer():void{
var _local1:URLVariables;
serviceTimer.start();
toolkit.AGinitPreloader();
instanceLoader.dataFormat = URLLoaderDataFormat.TEXT;
instanceLoader.addEventListener(Event.COMPLETE, returnServer);
instanceLoader.addEventListener(IOErrorEvent.IO_ERROR, serviceErrorIO);
instanceLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, serviceErrorSecurity);
instanceRequest.method = URLRequestMethod.GET;
instanceRequest.url = (toolkit.AGdeveloper) ? (("http://" + toolkit.AGdomain) + "/scores/getServerInstance") : "/scores/getServerInstance";
trace(("\ncalling getServerInstance at: " + instanceRequest.url));
_local1 = new URLVariables();
_local1.id = 1;
_local1.gameId = toolkit.gameID;
instanceRequest.data = _local1;
instanceLoader.load(instanceRequest);
}
public function initDomain():void{
AGdomainStatus();
}
}
}//package
Section 219
//AGloader (AGloader)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.external.*;
public class AGloader {
private var assets:Array;
private var dataRequest:URLRequest;
private var modules:Array;
private var sequence:Array;
private var dataXML:XML;
private var index:int;// = 0
private var modContext:LoaderContext;
private var dataLoader:URLLoader;
private var modLoadInfo:LoaderInfo;
private var modRequest:URLRequest;
private var modLoader:Loader;
private var toolkit:Object;
public function AGloader(_arg1:Object):void{
index = 0;
modules = [];
assets = [];
sequence = [];
dataLoader = new URLLoader();
dataRequest = new URLRequest();
modLoader = new Loader();
modContext = new LoaderContext();
modRequest = new URLRequest();
super();
toolkit = _arg1;
}
private function initAsset(_arg1:Event):void{
toolkit[assets[index].classname].removeEventListener(Event.INIT, initAsset);
if (index < (assets.length - 1)){
index++;
loadAsset();
} else {
index = 0;
toolkit.AGremovePreloader();
loadSequence();
};
}
public function initLoader():void{
initLoadData();
}
private function parseLoadData(_arg1:Event):void{
var _local2:XMLList;
var _local3:XMLList;
var _local4:*;
var _local5:XMLList;
var _local6:*;
var _local7:XMLList;
var _local8:*;
var _local9:XMLList;
var _local10:*;
var _local11:XMLList;
var _local12:XMLList;
var _local13:XMLList;
var _local14:XMLList;
var _local15:XMLList;
var _local16:XMLList;
dataXML = new XML(dataLoader.data);
if (toolkit.AGtheme == null){
toolkit.AGtheme = dataXML.elements("theme");
};
if (!toolkit.AGdev){
toolkit.AGdev = Boolean(dataXML.elements("devpanel"));
};
toolkit.AGcompVersion = dataXML.elements("compVersion");
toolkit.AGmoduleVersion = dataXML.elements("moduleVersion");
toolkit.AGsoundOn = ((dataXML.elements("sounds"))=="on") ? true : false;
_local2 = dataXML.child("nav");
toolkit.AGassetPath = _local2.elements("assetpath");
toolkit.AGmodulePath = _local2.elements("modulepath");
toolkit.AGimagePath = _local2.elements("avatarpath");
toolkit.AGprofilePath = _local2.elements("profilepath");
toolkit.AGiconPath = _local2.elements("iconpath");
_local3 = dataXML.child("modules");
_local4 = 0;
while (_local4 < _local3.child("*").length()) {
modules[_local4] = {filename:_local3.child(_local4).@filename, classname:_local3.child(_local4).@classname, propname:_local3.child(_local4).@propname};
_local4++;
};
_local5 = dataXML.child("assets");
_local6 = 0;
while (_local6 < _local5.child("*").length()) {
assets[_local6] = {classname:_local5.child(_local6).@classname, methodname:_local5.child(_local6).@methodname};
_local6++;
};
_local7 = dataXML.child("sequence");
_local8 = 0;
while (_local8 < _local7.child("*").length()) {
sequence[_local8] = {classname:_local7.child(_local8).@classname, methodname:_local7.child(_local8).@methodname};
_local8++;
};
_local9 = dataXML.child("advertising");
_local10 = 0;
while (_local10 < _local9.child("*").length()) {
if (toolkit.AGadvert[_local10] != undefined){
} else {
toolkit.AGadvert[_local10] = {assetPath:_local9.child(_local10).@assetPath, navPath:_local9.child(_local10).@navPath};
};
_local10++;
};
_local11 = dataXML.child("messages");
_local12 = _local11.child("score");
toolkit.AGscoreMessage.high = _local12.elements("high");
toolkit.AGscoreMessage.best = _local12.elements("best");
toolkit.AGscoreMessage.tied = _local12.elements("tied");
toolkit.AGscoreMessage.less = _local12.elements("less");
toolkit.AGscoreMessage.initial = _local12.elements("initial");
toolkit.AGscoreMessage.logout = _local12.elements("logout");
toolkit.AGscoreMessage.zero = _local12.elements("zero");
_local13 = _local11.child("login");
toolkit.AGloginMessage.ondom = _local13.elements("ondom");
toolkit.AGloginMessage.offdom = _local13.elements("offdom");
_local14 = _local11.child("save");
toolkit.AGsaveMessage.screen = _local14.elements("screen");
toolkit.AGsaveMessage.submit = _local14.elements("submit");
_local15 = _local11.child("notify");
toolkit.AGnotifyMessage.screen = _local15.elements("screen");
toolkit.AGnotifyMessage.submit = _local15.elements("submit");
_local16 = _local11.child("error");
toolkit.AGerrorMessage.msg = _local16.elements("msg");
toolkit.AGerrorMessage.sub = _local16.elements("sub");
loadModule();
}
private function initModule(_arg1:Event):void{
var _local2:Class;
modLoadInfo.removeEventListener(Event.COMPLETE, initModule);
_local2 = (modLoadInfo.applicationDomain.getDefinition(modules[index].classname) as Class);
toolkit[modules[index].propname] = new _local2(toolkit);
if (index < (modules.length - 1)){
index++;
loadModule();
} else {
index = 0;
loadAsset();
};
}
private function loadSequence():void{
toolkit[sequence[index].classname].addEventListener(Event.INIT, initSequence);
var _local1 = toolkit[sequence[index].classname];
_local1[sequence[index].methodname]();
}
private function initLoadData():void{
var _local1:String;
var _local2:String;
_local1 = "config/AGloadData1.0.xml";
_local2 = (("http://" + toolkit.AGdomain) + "/sdk/hs/as3/config/AGloadData1.0.xml");
dataRequest.url = ((toolkit.AGassetLocation)=="remote") ? _local2 : _local1;
dataLoader.addEventListener(Event.COMPLETE, parseLoadData);
dataLoader.load(dataRequest);
}
private function loadAsset():void{
toolkit[assets[index].classname].addEventListener(Event.INIT, initAsset);
var _local1 = toolkit[assets[index].classname];
_local1[assets[index].methodname]();
}
private function loadModule():void{
var _local1:*;
var _local2:*;
_local1 = ((("modules/" + modules[index].propname) + "/") + modules[index].filename);
_local2 = ((("http://" + toolkit.AGdomain) + toolkit.AGmodulePath) + modules[index].filename);
modRequest.url = ((toolkit.AGassetLocation)=="remote") ? _local2 : _local1;
modContext.applicationDomain = ApplicationDomain.currentDomain;
modLoadInfo = modLoader.contentLoaderInfo;
modLoadInfo.addEventListener(Event.COMPLETE, initModule);
modLoader.load(modRequest, modContext);
}
private function initSequence(_arg1:Event):void{
toolkit[sequence[index].classname].removeEventListener(Event.INIT, initSequence);
if (index < (sequence.length - 1)){
index++;
loadSequence();
} else {
toolkit.gameInit();
};
}
}
}//package
Section 220
//AGtoolkit (AGtoolkit)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.external.*;
public class AGtoolkit extends MovieClip {
public var AGerrorMessage:Object;
public var loader:AGloader;
public var gameAuthor:String;
public var gameInit:Function;// = null
public var AGnotifyMessage:Object;
public var AGdev:Boolean;// = false
public var AGscoreMessage:Object;
public var AGassetLocation:String;// = "remote"
public var AGmoduleVersion:String;// = "1.0"
public var AGdomain:String;// = null
public var AGiconPath:String;// = null
public var AGsoundOn:Boolean;// = false
public var AGdeveloper:Boolean;// = false
public var AGfileLocation:String;// = null
public var screen:Object;
public var gameID:String;
public var AGimagePath:String;// = null
public var domain:AGdom;
public var AGgameoverScreenControl:Boolean;// = true
public var AGcompVersion:String;// = "1.0"
public var gameWidth:int;
public var comm:Object;
public var gamePause:Function;// = null
public var gameMute:Function;// = null
public var doc:Object;
public var CSdomain:String;// = null
public var AGdomains:Array;
public var AGmodulePath:String;// = null
public var AGtheme:String;// = null
public var AGadvert:Array;
public var toolbar:Object;
public var AGloginMessage:Object;
public var AGprofilePath:String;// = null
public var gameTitle:String;
public var AGpauseScreenControl:Boolean;// = true
public var HSdomain:String;// = null
public var gameVolume:Function;// = null
public var AGmount:Boolean;// = false
public var gameHeight:int;
public var gameRestart:Function;// = null
public var gameScore:Object;
public var AGassetPath:String;// = null
public var gameStats:Array;
public var AGsaveMessage:Object;
public var AGflashVersion:String;// = "AS3"
public function AGtoolkit(_arg1:Object, _arg2:String, _arg3:String, _arg4:String):void{
var _local5:*;
gameInit = null;
gameRestart = null;
gamePause = null;
gameMute = null;
gameVolume = null;
AGdomains = ["www.addictinggames.com"];
AGdomain = null;
HSdomain = null;
CSdomain = null;
AGassetPath = null;
AGmodulePath = null;
AGimagePath = null;
AGprofilePath = null;
AGiconPath = null;
AGassetLocation = "remote";
AGflashVersion = "AS3";
AGcompVersion = "1.0";
AGmoduleVersion = "1.0";
AGtheme = null;
AGsoundOn = false;
AGfileLocation = null;
AGmount = false;
AGdeveloper = false;
AGpauseScreenControl = true;
gameScore = {prop:null, label:null, type:null, precision:0, value:0, tstamp:0};
gameStats = [];
AGgameoverScreenControl = true;
AGscoreMessage = {high:"You set the High Score!", best:"You set a new personal best!", tied:"You tied your best score!", less:"Good game, but not your best!", initial:"Save your first score!", logout:" ", zero:" "};
AGloginMessage = {ondom:"Want to save your score?", offdom:"Want to save your score?"};
AGsaveMessage = {screen:"Want to save your score?", submit:"Your score has been saved!"};
AGnotifyMessage = {screen:"Congratulations! You just beat # Friends!", submit:"Your Friends have been served!"};
AGerrorMessage = {msg:"Sorry, an error occurred", sub:"please return to your game"};
AGadvert = [];
AGdev = false;
super();
addFrameScript(0, frame1);
doc = _arg1;
gameID = _arg2;
gameTitle = _arg3;
gameAuthor = _arg4;
gameWidth = doc.stage.stageWidth;
gameHeight = doc.stage.stageHeight;
AGfileLocation = doc.loaderInfo.url;
doc.stage.scaleMode = StageScaleMode.NO_SCALE;
for (_local5 in AGdomains) {
AGallowDomain(AGdomains[_local5]);
};
AGallowDomain("cdn.gigya.com");
AGinitPreloader();
domain = new AGdom(this);
loader = new AGloader(this);
}
public function AGsetTeaser(_arg1:String, _arg2:String):void{
AGadvert[0] = {assetPath:_arg1, navPath:_arg2};
}
public function AGpauseScreen(_arg1:Boolean):void{
AGpauseScreenControl = _arg1;
}
public function AGgameScore(_arg1:String, _arg2:String, _arg3:String, _arg4:Number=0):void{
gameScore.prop = _arg1;
gameScore.label = _arg2;
gameScore.type = _arg3;
if (_arg4 != 0){
gameScore.precision = _arg4;
};
}
public function AGreloadPage(_arg1:MouseEvent):void{
var _local2:*;
_local2 = (ExternalInterface.available) ? ExternalInterface.call("function(){return document.location.href;}") : null;
if (_local2 == null){
_local2 = "http://www.addictinggames.com";
};
navigateToURL(new URLRequest(_local2));
}
function frame1(){
stop();
}
public function AGaddAdvert(_arg1:String, _arg2:String):void{
AGadvert.push({assetPath:_arg1, navPath:_arg2});
}
public function AGsetTheme(_arg1:String):void{
AGtheme = _arg1;
}
public function AGinitPreloader():void{
var _local1:Sprite;
var _local2:*;
_local1 = new Sprite();
_local1.name = "preloader";
_local1.graphics.beginFill(0, 0.5);
_local1.graphics.drawRect(0, 0, gameWidth, gameHeight);
_local1.graphics.endFill();
_local2 = new LoadProcessor();
_local2.x = (gameWidth / 2);
_local2.y = ((gameHeight - 40) / 2);
_local1.addChild(_local2);
doc.addChild(_local1);
}
public function AGinitToolkit(_arg1:Function):void{
gameInit = _arg1;
domain.initDomain();
}
public function AGsubmitReplay():void{
comm.initSubmitReplay();
}
public function dataOutput(_arg1, _arg2):void{
if (AGdev){
screen.dataOutput(_arg1, _arg2);
};
}
public function AGgameStatsStat(_arg1:String, _arg2:String, _arg3:String, _arg4:Number=0):void{
var _local5:Object;
_local5 = {prop:null, label:null, type:null, precision:0, value:0, tstamp:0};
_local5.prop = _arg1;
_local5.label = _arg2;
_local5.type = _arg3;
if (_arg4 != 0){
_local5.precision = _arg4;
};
gameStats.push(_local5);
}
public function AGsetToolbar(_arg1:String, _arg2:Function):void{
switch (_arg1){
case "restart":
gameRestart = _arg2;
break;
case "pause":
gamePause = _arg2;
break;
case "mute":
gameMute = _arg2;
break;
case "volume":
gameVolume = _arg2;
break;
};
}
public function AGgetUser(_arg1:Function):void{
comm.DEVgetUser(_arg1);
}
public function AGremovePreloader():void{
doc.removeChild(doc.getChildByName("preloader"));
}
public function AGgameoverScreen(_arg1:Boolean):void{
AGgameoverScreenControl = _arg1;
}
public function AGserviceError():void{
var _local1:Sprite;
var _local2:*;
_local1 = new Sprite();
_local1.graphics.beginFill(0, 0.75);
_local1.graphics.drawRect(0, 0, gameWidth, gameHeight);
_local1.graphics.endFill();
_local2 = new ErrorScreen();
_local2.x = (gameWidth / 2);
_local2.y = (gameHeight / 2);
_local2.okBtn.addEventListener(MouseEvent.CLICK, AGreloadPage);
_local1.addChild(_local2);
doc.addChild(_local1);
}
public function AGsubmitScore(_arg1:Function=null):void{
gameRestart = ((_arg1)==null) ? gameRestart : _arg1;
gameScore.tstamp = new Date().getTime();
gameScore.value = doc[gameScore.prop];
screen.initGameOverSequence();
}
public function AGallowDomain(_arg1:String):void{
if (AGdomains.indexOf(_arg1) != -1){
return;
};
AGdomains.push(_arg1);
Security.allowDomain(_arg1, ("http://" + _arg1), ("https://" + _arg1));
Security.allowInsecureDomain(_arg1, ("http://" + _arg1), ("https://" + _arg1));
}
public function AGsetGameMessage(_arg1:String, _arg2:String, _arg3:String):void{
switch (_arg1){
case "score":
AGscoreMessage[_arg2] = _arg3;
break;
case "login":
AGloginMessage[_arg2] = _arg3;
break;
case "save":
AGsaveMessage[_arg2] = _arg3;
break;
case "notify":
AGnotifyMessage[_arg2] = _arg3;
break;
case "error":
AGerrorMessage[_arg2] = _arg3;
break;
};
}
public function dataTrace(_arg1):void{
if (AGdev){
screen.dataTrace(_arg1);
};
}
public function AGgetLeaderboard(_arg1:Function, _arg2:String, _arg3:String):void{
comm.DEVgetLeaderboard(_arg1, _arg2, _arg3);
}
public function AGgameover(_arg1:Function=null):void{
gameRestart = ((_arg1)==null) ? gameRestart : _arg1;
gameScore.tstamp = new Date().getTime();
gameScore.value = doc[gameScore.prop];
if (AGgameoverScreenControl){
screen.initGameOverScreen();
};
}
}
}//package
Section 221
//crash1 (crash1)
package {
import flash.media.*;
public dynamic class crash1 extends Sound {
}
}//package
Section 222
//crash2 (crash2)
package {
import flash.media.*;
public dynamic class crash2 extends Sound {
}
}//package
Section 223
//ErrorScreen (ErrorScreen)
package {
import flash.display.*;
public dynamic class ErrorScreen extends MovieClip {
public var okBtn:SimpleButton;
}
}//package
Section 224
//LoadProcessor (LoadProcessor)
package {
import flash.events.*;
import flash.display.*;
public dynamic class LoadProcessor extends MovieClip {
public var ringB:MovieClip;
public var ringC:MovieClip;
public var ringA:MovieClip;
public var spd:int;
public function LoadProcessor(){
addFrameScript(0, frame1);
}
public function rotate(_arg1:Event):void{
ringA.rotation = (ringA.rotation + spd);
ringB.rotation = (ringB.rotation - spd);
ringC.rotation = (ringC.rotation + spd);
}
function frame1(){
alpha = 0.7;
spd = 5;
addEventListener(Event.ENTER_FRAME, rotate);
}
}
}//package
Section 225
//music1 (music1)
package {
import flash.media.*;
public dynamic class music1 extends Sound {
}
}//package
Section 226
//music2 (music2)
package {
import flash.media.*;
public dynamic class music2 extends Sound {
}
}//package
Section 227
//PixelPerfectCollisionDetection (PixelPerfectCollisionDetection)
package {
import flash.geom.*;
import flash.display.*;
public class PixelPerfectCollisionDetection {
public static function getCollisionRect(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Rectangle{
var _local6:Rectangle;
var _local7:Rectangle;
var _local8:Rectangle;
var _local9:BitmapData;
var _local10:BitmapData;
var _local11:uint;
var _local12:Rectangle;
var _local13:int;
_local6 = _arg1.getBounds(_arg3);
_local7 = _arg2.getBounds(_arg3);
_local8 = _local6.intersection(_local7);
if (_local8.size.length > 0){
if (_arg4){
_local8.width = Math.ceil(_local8.width);
_local8.height = Math.ceil(_local8.height);
_local9 = getAlphaMap(_arg1, _local8, BitmapDataChannel.RED, _arg3);
_local10 = getAlphaMap(_arg2, _local8, BitmapDataChannel.GREEN, _arg3);
_local9.draw(_local10, null, null, BlendMode.LIGHTEN);
if (_arg5 <= 0){
_local11 = 65792;
} else {
if (_arg5 > 1){
_arg5 = 1;
};
_local13 = Math.round((_arg5 * 0xFF));
_local11 = (((_local13 << 16) | (_local13 << 8)) | 0);
};
_local12 = _local9.getColorBoundsRect(_local11, _local11);
_local9.getColorBoundsRect(_local11, _local11).x = (_local12.x + _local8.x);
_local12.y = (_local12.y + _local8.y);
return (_local12);
} else {
return (_local8);
};
//unresolved jump
};
return (null);
}
public static function isColliding(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Boolean{
var _local6:Rectangle;
_local6 = getCollisionRect(_arg1, _arg2, _arg3, _arg4, _arg5);
if (((!((_local6 == null))) && ((_local6.size.length > 0)))){
return (true);
};
return (false);
}
public static function getCollisionPoint(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Point{
var _local6:Rectangle;
var _local7:Number;
var _local8:Number;
_local6 = getCollisionRect(_arg1, _arg2, _arg3, _arg4, _arg5);
if (((!((_local6 == null))) && ((_local6.size.length > 0)))){
_local7 = ((_local6.left + _local6.right) / 2);
_local8 = ((_local6.top + _local6.bottom) / 2);
return (new Point(_local7, _local8));
};
return (null);
}
private static function getAlphaMap(_arg1:DisplayObject, _arg2:Rectangle, _arg3:uint, _arg4:DisplayObjectContainer):BitmapData{
var _local5:Matrix;
var _local6:Matrix;
var _local7:BitmapData;
var _local8:BitmapData;
_local5 = _arg4.transform.concatenatedMatrix.clone();
_local5.invert();
_local6 = _arg1.transform.concatenatedMatrix.clone();
_local6.concat(_local5);
_local6.translate(-(_arg2.x), -(_arg2.y));
_local7 = new BitmapData(_arg2.width, _arg2.height, true, 0);
_local7.draw(_arg1, _local6);
_local8 = new BitmapData(_arg2.width, _arg2.height, false, 0);
_local8.copyChannel(_local7, _local7.rect, new Point(0, 0), BitmapDataChannel.ALPHA, _arg3);
return (_local8);
}
}
}//package