Section 1
//MD5 (com.adobe.crypto.MD5)
package com.adobe.crypto {
import flash.utils.*;
import com.adobe.utils.*;
public class MD5 {
public static var digest:ByteArray;
private static function ff(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(f, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private static function f(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg2) | (~(_arg1) & _arg3)));
}
private static function g(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg3) | (_arg2 & ~(_arg3))));
}
private static function h(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 ^ _arg2) ^ _arg3));
}
private static function i(_arg1:int, _arg2:int, _arg3:int):int{
return ((_arg2 ^ (_arg1 | ~(_arg3))));
}
private static function transform(_arg1:Function, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):int{
var _local9:int = (((_arg2 + int(_arg1(_arg3, _arg4, _arg5))) + _arg6) + _arg8);
return ((IntUtil.rol(_local9, _arg7) + _arg3));
}
private static function hh(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(h, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
public static function hash(_arg1:String):String{
var _local2:ByteArray = new ByteArray();
_local2.writeUTFBytes(_arg1);
return (hashBinary(_local2));
}
private static function createBlocks(_arg1:ByteArray):Array{
var _local2:Array = new Array();
var _local3:int = (_arg1.length * 8);
var _local4 = 0xFF;
var _local5:int;
while (_local5 < _local3) {
_local2[int((_local5 >> 5))] = (_local2[int((_local5 >> 5))] | ((_arg1[(_local5 / 8)] & _local4) << (_local5 % 32)));
_local5 = (_local5 + 8);
};
_local2[int((_local3 >> 5))] = (_local2[int((_local3 >> 5))] | (128 << (_local3 % 32)));
_local2[int(((((_local3 + 64) >>> 9) << 4) + 14))] = _local3;
return (_local2);
}
public static function hashBinary(_arg1:ByteArray):String{
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local2 = 1732584193;
var _local3 = -271733879;
var _local4 = -1732584194;
var _local5 = 271733878;
var _local10:Array = createBlocks(_arg1);
var _local11:int = _local10.length;
var _local12:int;
while (_local12 < _local11) {
_local6 = _local2;
_local7 = _local3;
_local8 = _local4;
_local9 = _local5;
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 0))], 7, -680876936);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 1))], 12, -389564586);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 2))], 17, 606105819);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 3))], 22, -1044525330);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 4))], 7, -176418897);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 5))], 12, 1200080426);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 6))], 17, -1473231341);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 7))], 22, -45705983);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 8))], 7, 1770035416);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 9))], 12, -1958414417);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 10))], 17, -42063);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 11))], 22, -1990404162);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 12))], 7, 1804603682);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 13))], 12, -40341101);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 14))], 17, -1502002290);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 15))], 22, 1236535329);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 1))], 5, -165796510);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 6))], 9, -1069501632);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 11))], 14, 643717713);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 0))], 20, -373897302);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 5))], 5, -701558691);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 10))], 9, 38016083);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 15))], 14, -660478335);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 4))], 20, -405537848);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 9))], 5, 568446438);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 14))], 9, -1019803690);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 3))], 14, -187363961);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 8))], 20, 1163531501);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 13))], 5, -1444681467);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 2))], 9, -51403784);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 7))], 14, 1735328473);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 12))], 20, -1926607734);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 5))], 4, -378558);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 8))], 11, -2022574463);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 11))], 16, 1839030562);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 14))], 23, -35309556);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 1))], 4, -1530992060);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 4))], 11, 1272893353);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 7))], 16, -155497632);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 10))], 23, -1094730640);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 13))], 4, 681279174);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 0))], 11, -358537222);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 3))], 16, -722521979);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 6))], 23, 76029189);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 9))], 4, -640364487);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 12))], 11, -421815835);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 15))], 16, 530742520);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 2))], 23, -995338651);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 0))], 6, -198630844);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 7))], 10, 1126891415);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 14))], 15, -1416354905);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 5))], 21, -57434055);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 12))], 6, 1700485571);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 3))], 10, -1894986606);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 10))], 15, -1051523);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 1))], 21, -2054922799);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 8))], 6, 1873313359);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 15))], 10, -30611744);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 6))], 15, -1560198380);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 13))], 21, 1309151649);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 4))], 6, -145523070);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 11))], 10, -1120210379);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 2))], 15, 718787259);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 9))], 21, -343485551);
_local2 = (_local2 + _local6);
_local3 = (_local3 + _local7);
_local4 = (_local4 + _local8);
_local5 = (_local5 + _local9);
_local12 = (_local12 + 16);
};
digest = new ByteArray();
digest.writeInt(_local2);
digest.writeInt(_local3);
digest.writeInt(_local4);
digest.writeInt(_local5);
digest.position = 0;
return ((((IntUtil.toHex(_local2) + IntUtil.toHex(_local3)) + IntUtil.toHex(_local4)) + IntUtil.toHex(_local5)));
}
private static function gg(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(g, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private static function ii(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(i, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
public static function hashBytes(_arg1:ByteArray):String{
return (hashBinary(_arg1));
}
}
}//package com.adobe.crypto
Section 2
//BitString (com.adobe.images.BitString)
package com.adobe.images {
public class BitString {
public var val:int;// = 0
public var len:int;// = 0
}
}//package com.adobe.images
Section 3
//JPGEncoder (com.adobe.images.JPGEncoder)
package com.adobe.images {
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
public class JPGEncoder {
private var fdtbl_UV:Array;
private var std_ac_chrominance_values:Array;
private var std_dc_chrominance_values:Array;
private var ZigZag:Array;
private var YDC_HT:Array;
private var YAC_HT:Array;
private var bytenew:int;// = 0
private var fdtbl_Y:Array;
private var std_ac_chrominance_nrcodes:Array;
private var DU:Array;
private var std_ac_luminance_values:Array;
private var std_dc_chrominance_nrcodes:Array;
private var UVTable:Array;
private var YDU:Array;
private var UDU:Array;
private var byteout:ByteArray;
private var UVAC_HT:Array;
private var UVDC_HT:Array;
private var bytepos:int;// = 7
private var VDU:Array;
private var std_ac_luminance_nrcodes:Array;
private var std_dc_luminance_values:Array;
private var YTable:Array;
private var std_dc_luminance_nrcodes:Array;
private var bitcode:Array;
private var category:Array;
public function JPGEncoder(_arg1:Number=50){
this.ZigZag = [0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, 10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60, 21, 34, 37, 47, 50, 56, 59, 61, 35, 36, 48, 49, 57, 58, 62, 63];
this.YTable = new Array(64);
this.UVTable = new Array(64);
this.fdtbl_Y = new Array(64);
this.fdtbl_UV = new Array(64);
this.std_dc_luminance_nrcodes = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0];
this.std_dc_luminance_values = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
this.std_ac_luminance_nrcodes = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125];
this.std_ac_luminance_values = [1, 2, 3, 0, 4, 17, 5, 18, 33, 49, 65, 6, 19, 81, 97, 7, 34, 113, 20, 50, 129, 145, 161, 8, 35, 66, 177, 193, 21, 82, 209, 240, 36, 51, 98, 114, 130, 9, 10, 22, 23, 24, 25, 26, 37, 38, 39, 40, 41, 42, 52, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250];
this.std_dc_chrominance_nrcodes = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0];
this.std_dc_chrominance_values = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
this.std_ac_chrominance_nrcodes = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119];
this.std_ac_chrominance_values = [0, 1, 2, 3, 17, 4, 5, 33, 49, 6, 18, 65, 81, 7, 97, 113, 19, 34, 50, 129, 8, 20, 66, 145, 161, 177, 193, 9, 35, 51, 82, 240, 21, 98, 114, 209, 10, 22, 36, 52, 225, 37, 241, 23, 24, 25, 26, 38, 39, 40, 41, 42, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 130, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 226, 227, 228, 229, 230, 231, 232, 233, 234, 242, 243, 244, 245, 246, 247, 248, 249, 250];
this.bitcode = new Array(0xFFFF);
this.category = new Array(0xFFFF);
this.DU = new Array(64);
this.YDU = new Array(64);
this.UDU = new Array(64);
this.VDU = new Array(64);
super();
if (_arg1 <= 0){
_arg1 = 1;
};
if (_arg1 > 100){
_arg1 = 100;
};
var _local2:int;
if (_arg1 < 50){
_local2 = int((5000 / _arg1));
} else {
_local2 = int((200 - (_arg1 * 2)));
};
this.initHuffmanTbl();
this.initCategoryNumber();
this.initQuantTables(_local2);
}
private function initHuffmanTbl():void{
this.YDC_HT = this.computeHuffmanTbl(this.std_dc_luminance_nrcodes, this.std_dc_luminance_values);
this.UVDC_HT = this.computeHuffmanTbl(this.std_dc_chrominance_nrcodes, this.std_dc_chrominance_values);
this.YAC_HT = this.computeHuffmanTbl(this.std_ac_luminance_nrcodes, this.std_ac_luminance_values);
this.UVAC_HT = this.computeHuffmanTbl(this.std_ac_chrominance_nrcodes, this.std_ac_chrominance_values);
}
private function RGB2YUV(_arg1:BitmapData, _arg2:int, _arg3:int):void{
var _local6:int;
var _local7:uint;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local4:int;
var _local5:int;
while (_local5 < 8) {
_local6 = 0;
while (_local6 < 8) {
_local7 = _arg1.getPixel32((_arg2 + _local6), (_arg3 + _local5));
_local8 = Number(((_local7 >> 16) & 0xFF));
_local9 = Number(((_local7 >> 8) & 0xFF));
_local10 = Number((_local7 & 0xFF));
this.YDU[_local4] = ((((0.299 * _local8) + (0.587 * _local9)) + (0.114 * _local10)) - 128);
this.UDU[_local4] = (((-0.16874 * _local8) + (-0.33126 * _local9)) + (0.5 * _local10));
this.VDU[_local4] = (((0.5 * _local8) + (-0.41869 * _local9)) + (-0.08131 * _local10));
_local4++;
_local6++;
};
_local5++;
};
}
private function writeBits(_arg1:BitString):void{
var _local2:int = _arg1.val;
var _local3:int = (_arg1.len - 1);
while (_local3 >= 0) {
if ((_local2 & uint((1 << _local3)))){
this.bytenew = (this.bytenew | uint((1 << this.bytepos)));
};
_local3--;
this.bytepos--;
if (this.bytepos < 0){
if (this.bytenew == 0xFF){
this.writeByte(0xFF);
this.writeByte(0);
} else {
this.writeByte(this.bytenew);
};
this.bytepos = 7;
this.bytenew = 0;
};
};
}
private function writeWord(_arg1:int):void{
this.writeByte(((_arg1 >> 8) & 0xFF));
this.writeByte((_arg1 & 0xFF));
}
private function writeByte(_arg1:int):void{
this.byteout.writeByte(_arg1);
}
private function writeDHT():void{
var _local1:int;
this.writeWord(65476);
this.writeWord(418);
this.writeByte(0);
_local1 = 0;
while (_local1 < 16) {
this.writeByte(this.std_dc_luminance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 11) {
this.writeByte(this.std_dc_luminance_values[_local1]);
_local1++;
};
this.writeByte(16);
_local1 = 0;
while (_local1 < 16) {
this.writeByte(this.std_ac_luminance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 161) {
this.writeByte(this.std_ac_luminance_values[_local1]);
_local1++;
};
this.writeByte(1);
_local1 = 0;
while (_local1 < 16) {
this.writeByte(this.std_dc_chrominance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 11) {
this.writeByte(this.std_dc_chrominance_values[_local1]);
_local1++;
};
this.writeByte(17);
_local1 = 0;
while (_local1 < 16) {
this.writeByte(this.std_ac_chrominance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 161) {
this.writeByte(this.std_ac_chrominance_values[_local1]);
_local1++;
};
}
public function encode(_arg1:BitmapData):ByteArray{
var _local6:int;
var _local7:BitString;
this.byteout = new ByteArray();
this.bytenew = 0;
this.bytepos = 7;
this.writeWord(65496);
this.writeAPP0();
this.writeDQT();
this.writeSOF0(_arg1.width, _arg1.height);
this.writeDHT();
this.writeSOS();
var _local2:Number = 0;
var _local3:Number = 0;
var _local4:Number = 0;
this.bytenew = 0;
this.bytepos = 7;
var _local5:int;
while (_local5 < _arg1.height) {
_local6 = 0;
while (_local6 < _arg1.width) {
this.RGB2YUV(_arg1, _local6, _local5);
_local2 = this.processDU(this.YDU, this.fdtbl_Y, _local2, this.YDC_HT, this.YAC_HT);
_local3 = this.processDU(this.UDU, this.fdtbl_UV, _local3, this.UVDC_HT, this.UVAC_HT);
_local4 = this.processDU(this.VDU, this.fdtbl_UV, _local4, this.UVDC_HT, this.UVAC_HT);
_local6 = (_local6 + 8);
};
_local5 = (_local5 + 8);
};
if (this.bytepos >= 0){
_local7 = new BitString();
_local7.len = (this.bytepos + 1);
_local7.val = ((1 << (this.bytepos + 1)) - 1);
this.writeBits(_local7);
};
this.writeWord(65497);
return (this.byteout);
}
private function initCategoryNumber():void{
var _local3:int;
var _local1 = 1;
var _local2 = 2;
var _local4 = 1;
while (_local4 <= 15) {
_local3 = _local1;
while (_local3 < _local2) {
this.category[(32767 + _local3)] = _local4;
this.bitcode[(32767 + _local3)] = new BitString();
this.bitcode[(32767 + _local3)].len = _local4;
this.bitcode[(32767 + _local3)].val = _local3;
_local3++;
};
_local3 = -((_local2 - 1));
while (_local3 <= -(_local1)) {
this.category[(32767 + _local3)] = _local4;
this.bitcode[(32767 + _local3)] = new BitString();
this.bitcode[(32767 + _local3)].len = _local4;
this.bitcode[(32767 + _local3)].val = ((_local2 - 1) + _local3);
_local3++;
};
_local1 = (_local1 << 1);
_local2 = (_local2 << 1);
_local4++;
};
}
private function writeDQT():void{
var _local1:int;
this.writeWord(65499);
this.writeWord(132);
this.writeByte(0);
_local1 = 0;
while (_local1 < 64) {
this.writeByte(this.YTable[_local1]);
_local1++;
};
this.writeByte(1);
_local1 = 0;
while (_local1 < 64) {
this.writeByte(this.UVTable[_local1]);
_local1++;
};
}
private function writeAPP0():void{
this.writeWord(65504);
this.writeWord(16);
this.writeByte(74);
this.writeByte(70);
this.writeByte(73);
this.writeByte(70);
this.writeByte(0);
this.writeByte(1);
this.writeByte(1);
this.writeByte(0);
this.writeWord(1);
this.writeWord(1);
this.writeByte(0);
this.writeByte(0);
}
private function writeSOS():void{
this.writeWord(65498);
this.writeWord(12);
this.writeByte(3);
this.writeByte(1);
this.writeByte(0);
this.writeByte(2);
this.writeByte(17);
this.writeByte(3);
this.writeByte(17);
this.writeByte(0);
this.writeByte(63);
this.writeByte(0);
}
private function processDU(_arg1:Array, _arg2:Array, _arg3:Number, _arg4:Array, _arg5:Array):Number{
var _local8:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local6:BitString = _arg5[0];
var _local7:BitString = _arg5[240];
var _local9:Array = this.fDCTQuant(_arg1, _arg2);
_local8 = 0;
while (_local8 < 64) {
this.DU[this.ZigZag[_local8]] = _local9[_local8];
_local8++;
};
var _local10:int = (this.DU[0] - _arg3);
_arg3 = this.DU[0];
if (_local10 == 0){
this.writeBits(_arg4[0]);
} else {
this.writeBits(_arg4[this.category[(32767 + _local10)]]);
this.writeBits(this.bitcode[(32767 + _local10)]);
};
var _local11 = 63;
while ((((_local11 > 0)) && ((this.DU[_local11] == 0)))) {
_local11--;
};
if (_local11 == 0){
this.writeBits(_local6);
return (_arg3);
};
_local8 = 1;
while (_local8 <= _local11) {
_local12 = _local8;
while ((((this.DU[_local8] == 0)) && ((_local8 <= _local11)))) {
_local8++;
};
_local13 = (_local8 - _local12);
if (_local13 >= 16){
_local14 = 1;
while (_local14 <= (_local13 / 16)) {
this.writeBits(_local7);
_local14++;
};
_local13 = int((_local13 & 15));
};
this.writeBits(_arg5[((_local13 * 16) + this.category[(32767 + this.DU[_local8])])]);
this.writeBits(this.bitcode[(32767 + this.DU[_local8])]);
_local8++;
};
if (_local11 != 63){
this.writeBits(_local6);
};
return (_arg3);
}
private function initQuantTables(_arg1:int):void{
var _local2:int;
var _local3:Number;
var _local8:int;
var _local4:Array = [16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99];
_local2 = 0;
while (_local2 < 64) {
_local3 = Math.floor((((_local4[_local2] * _arg1) + 50) / 100));
if (_local3 < 1){
_local3 = 1;
} else {
if (_local3 > 0xFF){
_local3 = 0xFF;
};
};
this.YTable[this.ZigZag[_local2]] = _local3;
_local2++;
};
var _local5:Array = [17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99];
_local2 = 0;
while (_local2 < 64) {
_local3 = Math.floor((((_local5[_local2] * _arg1) + 50) / 100));
if (_local3 < 1){
_local3 = 1;
} else {
if (_local3 > 0xFF){
_local3 = 0xFF;
};
};
this.UVTable[this.ZigZag[_local2]] = _local3;
_local2++;
};
var _local6:Array = [1, 1.387039845, 1.306562965, 1.175875602, 1, 0.785694958, 0.5411961, 0.275899379];
_local2 = 0;
var _local7:int;
while (_local7 < 8) {
_local8 = 0;
while (_local8 < 8) {
this.fdtbl_Y[_local2] = (1 / (((this.YTable[this.ZigZag[_local2]] * _local6[_local7]) * _local6[_local8]) * 8));
this.fdtbl_UV[_local2] = (1 / (((this.UVTable[this.ZigZag[_local2]] * _local6[_local7]) * _local6[_local8]) * 8));
_local2++;
_local8++;
};
_local7++;
};
}
private function writeSOF0(_arg1:int, _arg2:int):void{
this.writeWord(65472);
this.writeWord(17);
this.writeByte(8);
this.writeWord(_arg2);
this.writeWord(_arg1);
this.writeByte(3);
this.writeByte(1);
this.writeByte(17);
this.writeByte(0);
this.writeByte(2);
this.writeByte(17);
this.writeByte(1);
this.writeByte(3);
this.writeByte(17);
this.writeByte(1);
}
private function computeHuffmanTbl(_arg1:Array, _arg2:Array):Array{
var _local7:int;
var _local3:int;
var _local4:int;
var _local5:Array = new Array();
var _local6 = 1;
while (_local6 <= 16) {
_local7 = 1;
while (_local7 <= _arg1[_local6]) {
_local5[_arg2[_local4]] = new BitString();
_local5[_arg2[_local4]].val = _local3;
_local5[_arg2[_local4]].len = _local6;
_local4++;
_local3++;
_local7++;
};
_local3 = (_local3 * 2);
_local6++;
};
return (_local5);
}
private function fDCTQuant(_arg1:Array, _arg2:Array):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;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:int;
var _local23:int;
_local22 = 0;
while (_local22 < 8) {
_local3 = (_arg1[(_local23 + 0)] + _arg1[(_local23 + 7)]);
_local10 = (_arg1[(_local23 + 0)] - _arg1[(_local23 + 7)]);
_local4 = (_arg1[(_local23 + 1)] + _arg1[(_local23 + 6)]);
_local9 = (_arg1[(_local23 + 1)] - _arg1[(_local23 + 6)]);
_local5 = (_arg1[(_local23 + 2)] + _arg1[(_local23 + 5)]);
_local8 = (_arg1[(_local23 + 2)] - _arg1[(_local23 + 5)]);
_local6 = (_arg1[(_local23 + 3)] + _arg1[(_local23 + 4)]);
_local7 = (_arg1[(_local23 + 3)] - _arg1[(_local23 + 4)]);
_local11 = (_local3 + _local6);
_local14 = (_local3 - _local6);
_local12 = (_local4 + _local5);
_local13 = (_local4 - _local5);
_arg1[(_local23 + 0)] = (_local11 + _local12);
_arg1[(_local23 + 4)] = (_local11 - _local12);
_local15 = ((_local13 + _local14) * 0.707106781);
_arg1[(_local23 + 2)] = (_local14 + _local15);
_arg1[(_local23 + 6)] = (_local14 - _local15);
_local11 = (_local7 + _local8);
_local12 = (_local8 + _local9);
_local13 = (_local9 + _local10);
_local19 = ((_local11 - _local13) * 0.382683433);
_local16 = ((0.5411961 * _local11) + _local19);
_local18 = ((1.306562965 * _local13) + _local19);
_local17 = (_local12 * 0.707106781);
_local20 = (_local10 + _local17);
_local21 = (_local10 - _local17);
_arg1[(_local23 + 5)] = (_local21 + _local16);
_arg1[(_local23 + 3)] = (_local21 - _local16);
_arg1[(_local23 + 1)] = (_local20 + _local18);
_arg1[(_local23 + 7)] = (_local20 - _local18);
_local23 = (_local23 + 8);
_local22++;
};
_local23 = 0;
_local22 = 0;
while (_local22 < 8) {
_local3 = (_arg1[(_local23 + 0)] + _arg1[(_local23 + 56)]);
_local10 = (_arg1[(_local23 + 0)] - _arg1[(_local23 + 56)]);
_local4 = (_arg1[(_local23 + 8)] + _arg1[(_local23 + 48)]);
_local9 = (_arg1[(_local23 + 8)] - _arg1[(_local23 + 48)]);
_local5 = (_arg1[(_local23 + 16)] + _arg1[(_local23 + 40)]);
_local8 = (_arg1[(_local23 + 16)] - _arg1[(_local23 + 40)]);
_local6 = (_arg1[(_local23 + 24)] + _arg1[(_local23 + 32)]);
_local7 = (_arg1[(_local23 + 24)] - _arg1[(_local23 + 32)]);
_local11 = (_local3 + _local6);
_local14 = (_local3 - _local6);
_local12 = (_local4 + _local5);
_local13 = (_local4 - _local5);
_arg1[(_local23 + 0)] = (_local11 + _local12);
_arg1[(_local23 + 32)] = (_local11 - _local12);
_local15 = ((_local13 + _local14) * 0.707106781);
_arg1[(_local23 + 16)] = (_local14 + _local15);
_arg1[(_local23 + 48)] = (_local14 - _local15);
_local11 = (_local7 + _local8);
_local12 = (_local8 + _local9);
_local13 = (_local9 + _local10);
_local19 = ((_local11 - _local13) * 0.382683433);
_local16 = ((0.5411961 * _local11) + _local19);
_local18 = ((1.306562965 * _local13) + _local19);
_local17 = (_local12 * 0.707106781);
_local20 = (_local10 + _local17);
_local21 = (_local10 - _local17);
_arg1[(_local23 + 40)] = (_local21 + _local16);
_arg1[(_local23 + 24)] = (_local21 - _local16);
_arg1[(_local23 + 8)] = (_local20 + _local18);
_arg1[(_local23 + 56)] = (_local20 - _local18);
_local23++;
_local22++;
};
_local22 = 0;
while (_local22 < 64) {
_arg1[_local22] = Math.round((_arg1[_local22] * _arg2[_local22]));
_local22++;
};
return (_arg1);
}
}
}//package com.adobe.images
Section 4
//PNGEncoder (com.adobe.images.PNGEncoder)
package com.adobe.images {
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
public class PNGEncoder {
private static var crcTableComputed:Boolean = false;
private static var crcTable:Array;
private static function writeChunk(_arg1:ByteArray, _arg2:uint, _arg3:ByteArray):void{
var _local8:uint;
var _local9:uint;
var _local10:uint;
if (!crcTableComputed){
crcTableComputed = true;
crcTable = [];
_local9 = 0;
while (_local9 < 0x0100) {
_local8 = _local9;
_local10 = 0;
while (_local10 < 8) {
if ((_local8 & 1)){
_local8 = uint((uint(3988292384) ^ uint((_local8 >>> 1))));
} else {
_local8 = uint((_local8 >>> 1));
};
_local10++;
};
crcTable[_local9] = _local8;
_local9++;
};
};
var _local4:uint;
if (_arg3 != null){
_local4 = _arg3.length;
};
_arg1.writeUnsignedInt(_local4);
var _local5:uint = _arg1.position;
_arg1.writeUnsignedInt(_arg2);
if (_arg3 != null){
_arg1.writeBytes(_arg3);
};
var _local6:uint = _arg1.position;
_arg1.position = _local5;
_local8 = 4294967295;
var _local7:int;
while (_local7 < (_local6 - _local5)) {
_local8 = uint((crcTable[((_local8 ^ _arg1.readUnsignedByte()) & uint(0xFF))] ^ uint((_local8 >>> 8))));
_local7++;
};
_local8 = uint((_local8 ^ uint(4294967295)));
_arg1.position = _local6;
_arg1.writeUnsignedInt(_local8);
}
public static function encode(_arg1:BitmapData):ByteArray{
var _local6:uint;
var _local7:int;
var _local2:ByteArray = new ByteArray();
_local2.writeUnsignedInt(2303741511);
_local2.writeUnsignedInt(218765834);
var _local3:ByteArray = new ByteArray();
_local3.writeInt(_arg1.width);
_local3.writeInt(_arg1.height);
_local3.writeUnsignedInt(134610944);
_local3.writeByte(0);
writeChunk(_local2, 1229472850, _local3);
var _local4:ByteArray = new ByteArray();
var _local5:int;
while (_local5 < _arg1.height) {
_local4.writeByte(0);
if (!_arg1.transparent){
_local7 = 0;
while (_local7 < _arg1.width) {
_local6 = _arg1.getPixel(_local7, _local5);
_local4.writeUnsignedInt(uint((((_local6 & 0xFFFFFF) << 8) | 0xFF)));
_local7++;
};
} else {
_local7 = 0;
while (_local7 < _arg1.width) {
_local6 = _arg1.getPixel32(_local7, _local5);
_local4.writeUnsignedInt(uint((((_local6 & 0xFFFFFF) << 8) | (_local6 >>> 24))));
_local7++;
};
};
_local5++;
};
_local4.compress();
writeChunk(_local2, 1229209940, _local4);
writeChunk(_local2, 1229278788, null);
return (_local2);
}
}
}//package com.adobe.images
Section 5
//JSON (com.adobe.serialization.json.JSON)
package com.adobe.serialization.json {
public class JSON {
public static function decode(_arg1:String){
var _local2:JSONDecoder = new JSONDecoder(_arg1);
return (_local2.getValue());
}
public static function encode(_arg1:Object):String{
var _local2:JSONEncoder = new JSONEncoder(_arg1);
return (_local2.getString());
}
}
}//package com.adobe.serialization.json
Section 6
//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){
this.tokenizer = new JSONTokenizer(_arg1);
this.nextToken();
this.value = this.parseValue();
}
private function parseObject():Object{
var _local2:String;
var _local1:Object = new Object();
this.nextToken();
if (this.token.type == JSONTokenType.RIGHT_BRACE){
return (_local1);
};
while (true) {
if (this.token.type == JSONTokenType.STRING){
_local2 = String(this.token.value);
this.nextToken();
if (this.token.type == JSONTokenType.COLON){
this.nextToken();
_local1[_local2] = this.parseValue();
this.nextToken();
if (this.token.type == JSONTokenType.RIGHT_BRACE){
return (_local1);
};
if (this.token.type == JSONTokenType.COMMA){
this.nextToken();
} else {
this.tokenizer.parseError(("Expecting } or , but found " + this.token.value));
};
} else {
this.tokenizer.parseError(("Expecting : but found " + this.token.value));
};
} else {
this.tokenizer.parseError(("Expecting string but found " + this.token.value));
};
};
return (null);
}
private function parseValue():Object{
if (this.token == null){
this.tokenizer.parseError("Unexpected end of input");
};
switch (this.token.type){
case JSONTokenType.LEFT_BRACE:
return (this.parseObject());
case JSONTokenType.LEFT_BRACKET:
return (this.parseArray());
case JSONTokenType.STRING:
case JSONTokenType.NUMBER:
case JSONTokenType.TRUE:
case JSONTokenType.FALSE:
case JSONTokenType.NULL:
return (this.token.value);
default:
this.tokenizer.parseError(("Unexpected " + this.token.value));
};
return (null);
}
private function nextToken():JSONToken{
return ((this.token = this.tokenizer.getNextToken()));
}
public function getValue(){
return (this.value);
}
private function parseArray():Array{
var _local1:Array = new Array();
this.nextToken();
if (this.token.type == JSONTokenType.RIGHT_BRACKET){
return (_local1);
};
while (true) {
_local1.push(this.parseValue());
this.nextToken();
if (this.token.type == JSONTokenType.RIGHT_BRACKET){
return (_local1);
};
if (this.token.type == JSONTokenType.COMMA){
this.nextToken();
} else {
this.tokenizer.parseError(("Expecting ] or , but found " + this.token.value));
};
};
return (null);
}
}
}//package com.adobe.serialization.json
Section 7
//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){
this.jsonString = this.convertToString(_arg1);
}
private function escapeString(_arg1:String):String{
var _local3:String;
var _local6:String;
var _local7:String;
var _local2 = "";
var _local4:Number = _arg1.length;
var _local5:int;
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 arrayToString(_arg1:Array):String{
var _local2 = "";
var _local3:int;
while (_local3 < _arg1.length) {
if (_local2.length > 0){
_local2 = (_local2 + ",");
};
_local2 = (_local2 + this.convertToString(_arg1[_local3]));
_local3++;
};
return ((("[" + _local2) + "]"));
}
public function getString():String{
return (this.jsonString);
}
private function objectToString(_arg1:Object):String{
var value:Object;
var key:String;
var v:XML;
var o = _arg1;
var s = "";
var classInfo:XML = 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 + ((this.escapeString(key) + ":") + this.convertToString(value)));
};
};
} else {
for each (v in classInfo..*.(((name() == "variable")) || ((name() == "accessor")))) {
if (s.length > 0){
s = (s + ",");
};
s = (s + ((this.escapeString(v.@name.toString()) + ":") + this.convertToString(o[v.@name])));
};
};
return ((("{" + s) + "}"));
}
private function convertToString(_arg1):String{
if ((_arg1 is String)){
return (this.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 (this.arrayToString((_arg1 as Array)));
};
if ((((_arg1 is Object)) && (!((_arg1 == null))))){
return (this.objectToString(_arg1));
};
};
};
return ("null");
}
}
}//package com.adobe.serialization.json
Section 8
//JSONParseError (com.adobe.serialization.json.JSONParseError)
package com.adobe.serialization.json {
public class JSONParseError extends Error {
private var _location:int;
private var _text:String;
public function JSONParseError(_arg1:String="", _arg2:int=0, _arg3:String=""){
super(_arg1);
name = "JSONParseError";
this._location = _arg2;
this._text = _arg3;
}
public function get location():int{
return (this._location);
}
public function get text():String{
return (this._text);
}
}
}//package com.adobe.serialization.json
Section 9
//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){
this._type = _arg1;
this._value = _arg2;
}
public function get value():Object{
return (this._value);
}
public function get type():int{
return (this._type);
}
public function set type(_arg1:int):void{
this._type = _arg1;
}
public function set value(_arg1:Object):void{
this._value = _arg1;
}
}
}//package com.adobe.serialization.json
Section 10
//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){
this.jsonString = _arg1;
this.loc = 0;
this.nextChar();
}
private function skipComments():void{
if (this.ch == "/"){
this.nextChar();
switch (this.ch){
case "/":
do {
this.nextChar();
} while (((!((this.ch == "\n"))) && (!((this.ch == "")))));
this.nextChar();
break;
case "*":
this.nextChar();
while (true) {
if (this.ch == "*"){
this.nextChar();
if (this.ch == "/"){
this.nextChar();
break;
};
} else {
this.nextChar();
};
if (this.ch == ""){
this.parseError("Multi-line comment not closed");
};
};
break;
default:
this.parseError((("Unexpected " + this.ch) + " encountered (expecting '/' or '*' )"));
};
};
}
private function isDigit(_arg1:String):Boolean{
return ((((_arg1 >= "0")) && ((_arg1 <= "9"))));
}
private function readString():JSONToken{
var _local3:String;
var _local4:int;
var _local1:JSONToken = new JSONToken();
_local1.type = JSONTokenType.STRING;
var _local2 = "";
this.nextChar();
while (((!((this.ch == "\""))) && (!((this.ch == ""))))) {
if (this.ch == "\\"){
this.nextChar();
switch (this.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 (!this.isHexDigit(this.nextChar())){
this.parseError((" Excepted a hex digit, but found: " + this.ch));
};
_local3 = (_local3 + this.ch);
_local4++;
};
_local2 = (_local2 + String.fromCharCode(parseInt(_local3, 16)));
break;
default:
_local2 = (_local2 + ("\\" + this.ch));
};
} else {
_local2 = (_local2 + this.ch);
};
this.nextChar();
};
if (this.ch == ""){
this.parseError("Unterminated string literal");
};
this.nextChar();
_local1.value = _local2;
return (_local1);
}
private function nextChar():String{
return ((this.ch = this.jsonString.charAt(this.loc++)));
}
public function getNextToken():JSONToken{
var _local2:String;
var _local3:String;
var _local4:String;
var _local1:JSONToken = new JSONToken();
this.skipIgnored();
switch (this.ch){
case "{":
_local1.type = JSONTokenType.LEFT_BRACE;
_local1.value = "{";
this.nextChar();
break;
case "}":
_local1.type = JSONTokenType.RIGHT_BRACE;
_local1.value = "}";
this.nextChar();
break;
case "[":
_local1.type = JSONTokenType.LEFT_BRACKET;
_local1.value = "[";
this.nextChar();
break;
case "]":
_local1.type = JSONTokenType.RIGHT_BRACKET;
_local1.value = "]";
this.nextChar();
break;
case ",":
_local1.type = JSONTokenType.COMMA;
_local1.value = ",";
this.nextChar();
break;
case ":":
_local1.type = JSONTokenType.COLON;
_local1.value = ":";
this.nextChar();
break;
case "t":
_local2 = ((("t" + this.nextChar()) + this.nextChar()) + this.nextChar());
if (_local2 == "true"){
_local1.type = JSONTokenType.TRUE;
_local1.value = true;
this.nextChar();
} else {
this.parseError(("Expecting 'true' but found " + _local2));
};
break;
case "f":
_local3 = (((("f" + this.nextChar()) + this.nextChar()) + this.nextChar()) + this.nextChar());
if (_local3 == "false"){
_local1.type = JSONTokenType.FALSE;
_local1.value = false;
this.nextChar();
} else {
this.parseError(("Expecting 'false' but found " + _local3));
};
break;
case "n":
_local4 = ((("n" + this.nextChar()) + this.nextChar()) + this.nextChar());
if (_local4 == "null"){
_local1.type = JSONTokenType.NULL;
_local1.value = null;
this.nextChar();
} else {
this.parseError(("Expecting 'null' but found " + _local4));
};
break;
case "\"":
_local1 = this.readString();
break;
default:
if (((this.isDigit(this.ch)) || ((this.ch == "-")))){
_local1 = this.readNumber();
} else {
if (this.ch == ""){
return (null);
};
this.parseError((("Unexpected " + this.ch) + " encountered"));
};
};
return (_local1);
}
private function skipWhite():void{
while (this.isWhiteSpace(this.ch)) {
this.nextChar();
};
}
public function parseError(_arg1:String):void{
throw (new JSONParseError(_arg1, this.loc, this.jsonString));
}
private function isWhiteSpace(_arg1:String):Boolean{
return ((((((((_arg1 == " ")) || ((_arg1 == "\t")))) || ((_arg1 == "\n")))) || ((_arg1 == "\r"))));
}
private function skipIgnored():void{
var _local1:int;
do {
_local1 = this.loc;
this.skipWhite();
this.skipComments();
} while (_local1 != this.loc);
}
private function isHexDigit(_arg1:String):Boolean{
var _local2:String = _arg1.toUpperCase();
return (((this.isDigit(_arg1)) || ((((_local2 >= "A")) && ((_local2 <= "F"))))));
}
private function readNumber():JSONToken{
var _local1:JSONToken = new JSONToken();
_local1.type = JSONTokenType.NUMBER;
var _local2 = "";
if (this.ch == "-"){
_local2 = (_local2 + "-");
this.nextChar();
};
if (!this.isDigit(this.ch)){
this.parseError("Expecting a digit");
};
if (this.ch == "0"){
_local2 = (_local2 + this.ch);
this.nextChar();
if (this.isDigit(this.ch)){
this.parseError("A digit cannot immediately follow 0");
};
} else {
while (this.isDigit(this.ch)) {
_local2 = (_local2 + this.ch);
this.nextChar();
};
};
if (this.ch == "."){
_local2 = (_local2 + ".");
this.nextChar();
if (!this.isDigit(this.ch)){
this.parseError("Expecting a digit");
};
while (this.isDigit(this.ch)) {
_local2 = (_local2 + this.ch);
this.nextChar();
};
};
if ((((this.ch == "e")) || ((this.ch == "E")))){
_local2 = (_local2 + "e");
this.nextChar();
if ((((this.ch == "+")) || ((this.ch == "-")))){
_local2 = (_local2 + this.ch);
this.nextChar();
};
if (!this.isDigit(this.ch)){
this.parseError("Scientific notation number needs exponent value");
};
while (this.isDigit(this.ch)) {
_local2 = (_local2 + this.ch);
this.nextChar();
};
};
var _local3:Number = Number(_local2);
if (((isFinite(_local3)) && (!(isNaN(_local3))))){
_local1.value = _local3;
return (_local1);
};
this.parseError((("Number " + _local3) + " is not valid!"));
return (null);
}
}
}//package com.adobe.serialization.json
Section 11
//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 12
//IntUtil (com.adobe.utils.IntUtil)
package com.adobe.utils {
public class IntUtil {
private static var hexChars:String = "0123456789abcdef";
public static function toHex(_arg1:int, _arg2:Boolean=false):String{
var _local4:int;
var _local5:int;
var _local3 = "";
if (_arg2){
_local4 = 0;
while (_local4 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> (((3 - _local4) * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> ((3 - _local4) * 8)) & 15))));
_local4++;
};
} else {
_local5 = 0;
while (_local5 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> ((_local5 * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> (_local5 * 8)) & 15))));
_local5++;
};
};
return (_local3);
}
public static function ror(_arg1:int, _arg2:int):uint{
var _local3:int = (32 - _arg2);
return (((_arg1 << _local3) | (_arg1 >>> (32 - _local3))));
}
public static function rol(_arg1:int, _arg2:int):int{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
}
}//package com.adobe.utils
Section 13
//BanUsers (com.facebook.commands.admin.BanUsers)
package com.facebook.commands.admin {
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.*;
public class BanUsers extends FacebookCall {
public var uids:Array;
public static const SCHEMA:Array = ["uids"];
public static const METHOD_NAME:String = "admin.banUsers";
public function BanUsers(_arg1:Array){
super(METHOD_NAME);
this.uids = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, JSON.encode(this.uids));
super.initialize();
}
}
}//package com.facebook.commands.admin
Section 14
//GetAllocation (com.facebook.commands.admin.GetAllocation)
package com.facebook.commands.admin {
import com.facebook.net.*;
import com.facebook.*;
public class GetAllocation extends FacebookCall {
public var user:String;
public var integration_point_name:String;
public static const SCHEMA:Array = ["integration_point_name"];
public static const METHOD_NAME:String = "admin.getAllocation";
public function GetAllocation(_arg1:String, _arg2:String=null){
super(METHOD_NAME);
this.integration_point_name = _arg1;
this.user = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.integration_point_name);
super.initialize();
}
}
}//package com.facebook.commands.admin
Section 15
//GetAppProperties (com.facebook.commands.admin.GetAppProperties)
package com.facebook.commands.admin {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class GetAppProperties extends FacebookCall {
public var properties:Array;
public static const SCHEMA:Array = ["properties"];
public static const METHOD_NAME:String = "admin.getAppProperties";
public function GetAppProperties(_arg1:Array){
super(METHOD_NAME);
this.properties = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toArrayString(this.properties));
super.initialize();
}
}
}//package com.facebook.commands.admin
Section 16
//GetBannedUsers (com.facebook.commands.admin.GetBannedUsers)
package com.facebook.commands.admin {
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.*;
public class GetBannedUsers extends FacebookCall {
public var uids:Array;
public static const SCHEMA:Array = ["uids"];
public static const METHOD_NAME:String = "admin.getBannedUsers";
public function GetBannedUsers(_arg1:Array=null){
super(METHOD_NAME);
this.uids = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, JSON.encode(this.uids));
super.initialize();
}
}
}//package com.facebook.commands.admin
Section 17
//GetMetrics (com.facebook.commands.admin.GetMetrics)
package com.facebook.commands.admin {
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.utils.*;
import com.facebook.*;
public class GetMetrics extends FacebookCall {
public var period:uint;
public var metrics:Array;
public var end_time:Date;
public var start_time:Date;
public static const SCHEMA:Array = ["start_time", "end_time", "period", "metrics"];
public static const METHOD_NAME:String = "admin.getMetrics";
public function GetMetrics(_arg1:Date, _arg2:Date, _arg3:uint, _arg4:Array){
super(METHOD_NAME);
this.start_time = _arg1;
this.end_time = _arg2;
this.period = _arg3;
this.metrics = _arg4;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toDateString(this.start_time), FacebookDataUtils.toDateString(this.end_time), this.period, JSON.encode(this.metrics));
super.initialize();
}
}
}//package com.facebook.commands.admin
Section 18
//GetRestrictionInfo (com.facebook.commands.admin.GetRestrictionInfo)
package com.facebook.commands.admin {
import com.facebook.net.*;
public class GetRestrictionInfo extends FacebookCall {
public static const SCHEMA:Array = [];
public static const METHOD_NAME:String = "admin.getRestrictionInfo";
public function GetRestrictionInfo(){
super(METHOD_NAME);
}
}
}//package com.facebook.commands.admin
Section 19
//SetAppProperties (com.facebook.commands.admin.SetAppProperties)
package com.facebook.commands.admin {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class SetAppProperties extends FacebookCall {
public var properties:Array;
public static const SCHEMA:Array = ["properties"];
public static const METHOD_NAME:String = "admin.setAppProperties";
public function SetAppProperties(_arg1:Array){
super(METHOD_NAME);
this.properties = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toArrayString(this.properties));
super.initialize();
}
}
}//package com.facebook.commands.admin
Section 20
//SetRestrictionInfo (com.facebook.commands.admin.SetRestrictionInfo)
package com.facebook.commands.admin {
import com.facebook.net.*;
import com.facebook.*;
public class SetRestrictionInfo extends FacebookCall {
public var restriction_str:String;
public static const SCHEMA:Array = ["restriction_str"];
public static const METHOD_NAME:String = "admin.setRestrictionInfo";
public function SetRestrictionInfo(_arg1:String=""){
super(METHOD_NAME);
this.restriction_str = _arg1;
}
override facebook_internal function initialize():void{
this.applySchema(SCHEMA, this.restriction_str);
super.initialize();
}
}
}//package com.facebook.commands.admin
Section 21
//UnbanUsers (com.facebook.commands.admin.UnbanUsers)
package com.facebook.commands.admin {
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.*;
public class UnbanUsers extends FacebookCall {
public var uids:Array;
public static const SCHEMA:Array = ["uids"];
public static const METHOD_NAME:String = "admin.unbanUsers";
public function UnbanUsers(_arg1:Array){
super(METHOD_NAME);
this.uids = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, JSON.encode(this.uids));
super.initialize();
}
}
}//package com.facebook.commands.admin
Section 22
//GetPublicInfo (com.facebook.commands.application.GetPublicInfo)
package com.facebook.commands.application {
import com.facebook.net.*;
import com.facebook.*;
public class GetPublicInfo extends FacebookCall {
public var application_canvas_name:String;
public var application_id:String;
public var application_api_key:String;
public static const SCHEMA:Array = ["application_id", "application_api_key", "application_canvas_name"];
public static const METHOD_NAME:String = "application.getPublicInfo";
public function GetPublicInfo(_arg1:String=null, _arg2:String=null, _arg3:String=null){
super(METHOD_NAME);
if ((((((_arg1 == null)) && ((_arg2 == null)))) && ((_arg3 == null)))){
throw (new Error("You must specify exactly one of application_id, application_api_key or application_canvas_name."));
};
if (((_arg1) && (!((((_arg2 == null)) && ((_arg3 == null))))))){
throw (new Error("You must specify exactly one of application_id, application_api_key or application_canvas_name."));
};
if (((_arg2) && (!((((_arg1 == null)) && ((_arg3 == null))))))){
throw (new Error("You must specify exactly one of application_id, application_api_key or application_canvas_name."));
};
if (((_arg3) && (!((((_arg1 == null)) && ((_arg2 == null))))))){
throw (new Error("You must specify exactly one of application_id, application_api_key or application_canvas_name."));
};
this.application_id = _arg1;
this.application_api_key = _arg2;
this.application_canvas_name = _arg3;
}
override facebook_internal function initialize():void{
this.applySchema(SCHEMA, this.application_id, this.application_api_key, this.application_canvas_name);
super.initialize();
}
}
}//package com.facebook.commands.application
Section 23
//CreateToken (com.facebook.commands.auth.CreateToken)
package com.facebook.commands.auth {
import com.facebook.net.*;
public class CreateToken extends FacebookCall {
public static const SCHEMA:Array = [];
public static const METHOD_NAME:String = "auth.createToken";
public function CreateToken(){
super(METHOD_NAME);
}
}
}//package com.facebook.commands.auth
Section 24
//ExpireSession (com.facebook.commands.auth.ExpireSession)
package com.facebook.commands.auth {
import com.facebook.net.*;
public class ExpireSession extends FacebookCall {
public static const SCHEMA:Array = [];
public static const METHOD_NAME:String = "auth.expireSession";
public function ExpireSession(){
super(METHOD_NAME);
}
}
}//package com.facebook.commands.auth
Section 25
//GetSession (com.facebook.commands.auth.GetSession)
package com.facebook.commands.auth {
import com.facebook.net.*;
import com.facebook.*;
public class GetSession extends FacebookCall {
public var auth_token:String;
public static const SCHEMA:Array = ["auth_token"];
public static const METHOD_NAME:String = "auth.getSession";
public function GetSession(_arg1:String){
super(METHOD_NAME);
this.auth_token = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.auth_token);
super.initialize();
}
}
}//package com.facebook.commands.auth
Section 26
//PromoteSession (com.facebook.commands.auth.PromoteSession)
package com.facebook.commands.auth {
import com.facebook.net.*;
public class PromoteSession extends FacebookCall {
public static const SCHEMA:Array = [];
public static const METHOD_NAME:String = "auth.promoteSession";
public function PromoteSession(){
super(METHOD_NAME);
}
}
}//package com.facebook.commands.auth
Section 27
//RevokeAuthorization (com.facebook.commands.auth.RevokeAuthorization)
package com.facebook.commands.auth {
import com.facebook.net.*;
import com.facebook.*;
public class RevokeAuthorization extends FacebookCall {
public var user:String;
public static const SCHEMA:Array = ["user"];
public static const METHOD_NAME:String = "auth.revokeAuthorization";
public function RevokeAuthorization(_arg1:String=null){
super(METHOD_NAME);
this.user = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.user);
super.initialize();
}
}
}//package com.facebook.commands.auth
Section 28
//RevokeExtendedPermission (com.facebook.commands.auth.RevokeExtendedPermission)
package com.facebook.commands.auth {
import com.facebook.net.*;
import com.facebook.*;
public class RevokeExtendedPermission extends FacebookCall {
public var perm:String;
public var uid:String;
public static const SCHEMA:Array = ["perm", "uid"];
public static const METHOD_NAME:String = "auth.revokeExtendedPermission";
public function RevokeExtendedPermission(_arg1:String, _arg2:String=null){
super(METHOD_NAME);
this.perm = _arg1;
this.uid = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.perm, this.uid);
super.initialize();
}
}
}//package com.facebook.commands.auth
Section 29
//BatchRun (com.facebook.commands.batch.BatchRun)
package com.facebook.commands.batch {
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.data.*;
import flash.net.*;
import com.facebook.delegates.*;
import com.facebook.data.batch.*;
import com.facebook.*;
public class BatchRun extends FacebookCall {
public var method_feed:BatchCollection;
public var serial_only:Boolean;
public static const SCHEMA:Array = ["method_feed", "serial_only"];
public static const METHOD_NAME:String = "batch.run";
public function BatchRun(_arg1:BatchCollection, _arg2:Boolean=false){
super(METHOD_NAME);
if (_arg1.length > 20){
throw (new RangeError(InternalErrorMessages.BATCH_RUN_RANGE_ERROR));
};
this.method_feed = _arg1;
this.serial_only = _arg2;
}
override facebook_internal function initialize():void{
var _local5:FacebookCall;
var _local6:URLVariables;
var _local1:Array = [];
var _local2:uint = this.method_feed.length;
var _local3:uint;
while (_local3 < _local2) {
_local5 = (this.method_feed.getItemAt(_local3) as FacebookCall);
_local5.session = session;
_local5.initialize();
RequestHelper.formatRequest(_local5);
_local6 = _local5.args;
_local1.push(_local6.toString());
_local3++;
};
var _local4:String = JSON.encode(_local1);
applySchema(SCHEMA, _local4, this.serial_only);
super.initialize();
super.initialize();
}
}
}//package com.facebook.commands.batch
Section 30
//AddComments (com.facebook.commands.comments.AddComments)
package com.facebook.commands.comments {
import com.facebook.net.*;
import com.facebook.*;
public class AddComments extends FacebookCall {
public var text:String;
public var url:String;
public var uid:String;
public var xid:String;
public var publish_to_stream:Boolean;
public var title:String;
public static const SCHEMA:Array = ["xid", "text", "uid", "title", "url", "publish_to_stream"];
public static const METHOD_NAME:String = "comments.add";
public function AddComments(_arg1:String, _arg2:String, _arg3:String=null, _arg4:String=null, _arg5:String=null, _arg6:Boolean=false){
super(METHOD_NAME);
this.xid = _arg1;
this.text = _arg2;
this.uid = _arg3;
this.title = _arg4;
this.url = _arg5;
this.publish_to_stream = _arg6;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.xid, this.text, this.uid, this.title, this.url, this.publish_to_stream);
super.initialize();
}
}
}//package com.facebook.commands.comments
Section 31
//GetComments (com.facebook.commands.comments.GetComments)
package com.facebook.commands.comments {
import com.facebook.net.*;
import com.facebook.*;
public class GetComments extends FacebookCall {
public var xid:String;
public static const SCHEMA:Array = ["xid"];
public static const METHOD_NAME:String = "comments.get";
public function GetComments(_arg1:String){
super(METHOD_NAME);
this.xid = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.xid);
super.initialize();
}
}
}//package com.facebook.commands.comments
Section 32
//RemoveComments (com.facebook.commands.comments.RemoveComments)
package com.facebook.commands.comments {
import com.facebook.net.*;
import com.facebook.*;
public class RemoveComments extends FacebookCall {
public var commentID:String;
public var xid:String;
public static const SCHEMA:Array = ["xid", "comment_id"];
public static const METHOD_NAME:String = "comments.remove";
public function RemoveComments(_arg1:String, _arg2:String){
super(METHOD_NAME);
this.xid = _arg1;
this.commentID = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.xid, this.commentID);
super.initialize();
}
}
}//package com.facebook.commands.comments
Section 33
//GetUnconnectedFriendsCount (com.facebook.commands.connect.GetUnconnectedFriendsCount)
package com.facebook.commands.connect {
import com.facebook.net.*;
public class GetUnconnectedFriendsCount extends FacebookCall {
public static const SCHEMA:Array = [];
public static const METHOD_NAME:String = "connect.getUnconnectedFriendsCount";
public function GetUnconnectedFriendsCount(){
super(METHOD_NAME);
}
}
}//package com.facebook.commands.connect
Section 34
//RegisterUsers (com.facebook.commands.connect.RegisterUsers)
package com.facebook.commands.connect {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.data.connect.*;
import com.facebook.*;
public class RegisterUsers extends FacebookCall {
public var accounts:ConnectAccountMapCollection;
public static const SCHEMA:Array = ["accounts"];
public static const METHOD_NAME:String = "connect.registerUsers";
public function RegisterUsers(_arg1:ConnectAccountMapCollection){
super(METHOD_NAME);
this.accounts = _arg1;
}
override facebook_internal function initialize():void{
var _local1:String = FacebookDataUtils.facebookCollectionToJSONArray(this.accounts);
applySchema(SCHEMA, _local1);
super.initialize();
}
}
}//package com.facebook.commands.connect
Section 35
//UnregisterUsers (com.facebook.commands.connect.UnregisterUsers)
package com.facebook.commands.connect {
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.*;
public class UnregisterUsers extends FacebookCall {
public var email_hashes:Array;
public static const SCHEMA:Array = ["email_hashes"];
public static const METHOD_NAME:String = "connect.unregisterUsers";
public function UnregisterUsers(_arg1:Array){
super(METHOD_NAME);
this.email_hashes = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, JSON.encode(this.email_hashes));
super.initialize();
}
}
}//package com.facebook.commands.connect
Section 36
//CreateObject (com.facebook.commands.data.CreateObject)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class CreateObject extends FacebookCall {
protected var obj_type:String;
protected var properties;
public static const SCHEMA:Array = ["obj_type", "properties"];
public static const METHOD_NAME:String = "data.createObject";
public function CreateObject(_arg1:String, _arg2=null){
super(METHOD_NAME);
this.obj_type = _arg1;
this.properties = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_type, this.properties);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 37
//CreateObjectType (com.facebook.commands.data.CreateObjectType)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.data.*;
import com.facebook.utils.*;
import com.facebook.*;
public class CreateObjectType extends FacebookCall {
public var name:String;
public static const SCHEMA:Array = ["name"];
public static const METHOD_NAME:String = "data.createObjectType";
public function CreateObjectType(_arg1:String){
super(METHOD_NAME);
if (ValidationUtils.isDataObjectTypeValid(_arg1) == false){
throw (new RangeError(FacebookDataUtils.supplantString(InternalErrorMessages.DATA_INVALID_NAME_ERROR, {propName:_arg1})));
};
this.name = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 38
//DefineAssociation (com.facebook.commands.data.DefineAssociation)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.data.*;
import com.facebook.utils.*;
import com.facebook.data.data.*;
import com.facebook.*;
public class DefineAssociation extends FacebookCall {
protected var inverse:String;
protected var assoc_type:Number;
protected var assoc_info1:AssocInfoData;
protected var assoc_info2:AssocInfoData;
protected var name:String;
public static const SCHEMA:Array = ["name", "assoc_type", "assoc_info1", "assoc_info2", "inverse"];
public static const METHOD_NAME:String = "data.defineAssociation";
public function DefineAssociation(_arg1:String, _arg2:Number, _arg3:AssocInfoData, _arg4:AssocInfoData, _arg5:String){
super(METHOD_NAME);
if (ValidationUtils.isDataObjectTypeValid(_arg1) == false){
throw (new RangeError(FacebookDataUtils.supplantString(InternalErrorMessages.DATA_INVALID_NAME_ERROR, {propName:_arg1})));
};
if (ValidationUtils.isDataObjectTypeValid(_arg5) == false){
throw (new RangeError(FacebookDataUtils.supplantString(InternalErrorMessages.DATA_INVALID_NAME_ERROR, {propName:_arg5})));
};
this.name = _arg1;
this.assoc_type = _arg2;
this.assoc_info1 = _arg3;
this.assoc_info2 = _arg4;
this.inverse = _arg5;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.name, this.assoc_type, this.assoc_info1, this.assoc_info2, this.inverse);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 39
//DefineObjectProperty (com.facebook.commands.data.DefineObjectProperty)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.data.*;
import com.facebook.utils.*;
import com.facebook.*;
public class DefineObjectProperty extends FacebookCall {
public var obj_type:String;
public var prop_type:uint;
public var prop_name:String;
public static const SCHEMA:Array = ["obj_type", "prop_name", "prop_type"];
public static const METHOD_NAME:String = "data.defineObjectProperty";
public function DefineObjectProperty(_arg1:String, _arg2:String, _arg3:uint){
super(METHOD_NAME);
if (ValidationUtils.isDataObjectTypeValid(_arg1) == false){
throw (new RangeError(FacebookDataUtils.supplantString(InternalErrorMessages.DATA_INVALID_NAME_ERROR, {propName:_arg1})));
};
if (ValidationUtils.isDataObjectTypeValid(_arg2) == false){
throw (new RangeError(FacebookDataUtils.supplantString(InternalErrorMessages.DATA_INVALID_NAME_ERROR, {propName:_arg2})));
};
this.prop_name = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_type, this.prop_name, this.prop_type);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 40
//DeleteObject (com.facebook.commands.data.DeleteObject)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class DeleteObject extends FacebookCall {
public var obj_id:String;
public static const SCHEMA:Array = ["obj_id"];
public static const METHOD_NAME:String = "data.deleteObject";
public function DeleteObject(_arg1:String){
super(METHOD_NAME);
this.obj_id = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_id);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 41
//DeleteObjects (com.facebook.commands.data.DeleteObjects)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class DeleteObjects extends FacebookCall {
public var obj_ids:Array;
public static const SCHEMA:Array = ["obj_ids"];
public static const METHOD_NAME:String = "data.deleteObjects";
public function DeleteObjects(_arg1:Array){
super(METHOD_NAME);
this.obj_ids = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_ids);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 42
//DropObjectType (com.facebook.commands.data.DropObjectType)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.data.*;
import com.facebook.utils.*;
import com.facebook.*;
public class DropObjectType extends FacebookCall {
public var obj_type:String;
public static const SCHEMA:Array = ["obj_type"];
public static const METHOD_NAME:String = "data.dropObjectType";
public function DropObjectType(_arg1:String){
super(METHOD_NAME);
if ((((_arg1.length > 32)) || ((ValidationUtils.isDataObjectTypeValid(_arg1) == false)))){
throw (new RangeError(InternalErrorMessages.DATA_INVALID_NAME_ERROR));
};
this.obj_type = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_type);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 43
//GetAssociatedObjectCount (com.facebook.commands.data.GetAssociatedObjectCount)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class GetAssociatedObjectCount extends FacebookCall {
public var obj_id:String;
public var name:String;
public static const SCHEMA:Array = ["name", "obj_id"];
public static const METHOD_NAME:String = "data.getAssociatedObjectCount";
public function GetAssociatedObjectCount(_arg1:String, _arg2:String){
super(METHOD_NAME);
this.name = _arg1;
this.obj_id = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.name, this.obj_id);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 44
//GetAssociatedObjectCounts (com.facebook.commands.data.GetAssociatedObjectCounts)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class GetAssociatedObjectCounts extends FacebookCall {
public var obj_ids:Array;
public var name:String;
public static const SCHEMA:Array = ["name", "obj_ids"];
public static const METHOD_NAME:String = "data.getAssociatedObjectCounts";
public function GetAssociatedObjectCounts(_arg1:String, _arg2:Array){
super(METHOD_NAME);
this.name = _arg1;
this.obj_ids = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.name, this.obj_ids);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 45
//GetAssociatedObjects (com.facebook.commands.data.GetAssociatedObjects)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class GetAssociatedObjects extends FacebookCall {
public var obj_id:String;
public var no_data:Boolean;
public var name:String;
public static const SCHEMA:Array = ["name", "obj_id", "no_data"];
public static const METHOD_NAME:String = "data.getAssociatedObjects";
public function GetAssociatedObjects(_arg1:String, _arg2:String, _arg3:Boolean=false){
super(METHOD_NAME);
this.name = _arg1;
this.obj_id = _arg2;
this.no_data = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.name, this.obj_id, this.no_data);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 46
//GetAssociationDefinition (com.facebook.commands.data.GetAssociationDefinition)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class GetAssociationDefinition extends FacebookCall {
public var name:String;
public static const SCHEMA:Array = ["name"];
public static const METHOD_NAME:String = "data.getAssociationDefinition";
public function GetAssociationDefinition(_arg1:String){
super(METHOD_NAME);
this.name = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 47
//GetAssociationDefinitions (com.facebook.commands.data.GetAssociationDefinitions)
package com.facebook.commands.data {
import com.facebook.net.*;
public class GetAssociationDefinitions extends FacebookCall {
public static const SCHEMA:Array = [];
public static const METHOD_NAME:String = "data.getAssociationDefinitions";
public function GetAssociationDefinitions(){
super(METHOD_NAME);
}
}
}//package com.facebook.commands.data
Section 48
//GetAssociations (com.facebook.commands.data.GetAssociations)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class GetAssociations extends FacebookCall {
public var obj_id1:String;
public var no_data:Boolean;
public var obj_id2:String;
public static const SCHEMA:Array = ["obj_id1", "obj_id2", "no_data"];
public static const METHOD_NAME:String = "data.getAssociations";
public function GetAssociations(_arg1:String, _arg2:String, _arg3:Boolean=true){
super(METHOD_NAME);
this.obj_id1 = _arg1;
this.obj_id2 = _arg2;
this.no_data = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_id1, this.obj_id2, this.no_data);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 49
//GetCookies (com.facebook.commands.data.GetCookies)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class GetCookies extends FacebookCall {
public var uid:String;
public var name:String;
public static const SCHEMA:Array = ["uid", "name"];
public static const METHOD_NAME:String = "data.getCookies";
public function GetCookies(_arg1:String, _arg2:String=null){
super(METHOD_NAME);
this.uid = _arg1;
this.name = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.uid, this.name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 50
//GetCookiesData (com.facebook.commands.data.GetCookiesData)
package com.facebook.commands.data {
import com.facebook.data.*;
public class GetCookiesData extends FacebookData {
public var uid:String;
public var value:String;
public var expires:Number;
public var path:String;
public var name:String;
}
}//package com.facebook.commands.data
Section 51
//GetHashValue (com.facebook.commands.data.GetHashValue)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class GetHashValue extends FacebookCall {
public var obj_type:String;
public var prop_name:String;
public var key:String;
public static const SCHEMA:Array = ["obj_type", "key", "prop_name"];
public static const METHOD_NAME:String = "data.getHashValue";
public function GetHashValue(_arg1:String, _arg2:String, _arg3:String){
super(METHOD_NAME);
this.obj_type = _arg1;
this.key = _arg2;
this.prop_name = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_type, this.key, this.prop_name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 52
//GetObject (com.facebook.commands.data.GetObject)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class GetObject extends FacebookCall {
public var obj_id:String;
public var prop_names:Array;
public static const SCHEMA:Array = ["obj_id", "prop_names"];
public static const METHOD_NAME:String = "data.getObject";
public function GetObject(_arg1:String, _arg2:Array=null){
super(METHOD_NAME);
this.obj_id = _arg1;
this.prop_names = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_id, this.prop_names);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 53
//GetObjectProperty (com.facebook.commands.data.GetObjectProperty)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class GetObjectProperty extends FacebookCall {
public var obj_id:String;
public var prop_name:String;
public static const SCHEMA:Array = ["obj_id", "prop_name"];
public static const METHOD_NAME:String = "data.getObjectProperty";
public function GetObjectProperty(_arg1:String, _arg2:String){
super(METHOD_NAME);
this.obj_id = _arg1;
this.prop_name = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_id, this.prop_name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 54
//GetObjects (com.facebook.commands.data.GetObjects)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class GetObjects extends FacebookCall {
public var obj_ids:Array;
public var prop_names:Array;
public static const SCHEMA:Array = ["obj_ids", "prop_names"];
public static const METHOD_NAME:String = "data.getObjects";
public function GetObjects(_arg1:Array, _arg2:Array=null){
super(METHOD_NAME);
this.obj_ids = _arg1;
this.prop_names = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toArrayString(this.obj_ids), FacebookDataUtils.toArrayString(this.prop_names));
super.initialize();
}
}
}//package com.facebook.commands.data
Section 55
//GetObjectType (com.facebook.commands.data.GetObjectType)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class GetObjectType extends FacebookCall {
public var obj_type:String;
public static const SCHEMA:Array = ["obj_type"];
public static const METHOD_NAME:String = "data.getObjectType";
public function GetObjectType(_arg1:String){
super(METHOD_NAME);
this.obj_type = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_type);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 56
//GetObjectTypes (com.facebook.commands.data.GetObjectTypes)
package com.facebook.commands.data {
import com.facebook.net.*;
public class GetObjectTypes extends FacebookCall {
public static const SCHEMA:Array = [];
public static const METHOD_NAME:String = "data.getObjectTypes";
public function GetObjectTypes(){
super(METHOD_NAME);
}
}
}//package com.facebook.commands.data
Section 57
//GetUserPreference (com.facebook.commands.data.GetUserPreference)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.data.*;
import com.facebook.*;
public class GetUserPreference extends FacebookCall {
public var value:String;
public var pref_id:Number;
public static const SCHEMA:Array = ["pref_id"];
public static const METHOD_NAME:String = "data.getUserPreference";
public function GetUserPreference(_arg1:uint){
super(METHOD_NAME);
if (_arg1 > 200){
throw (new RangeError(InternalErrorMessages.USER_PREFERENCE_ID_RANGE_ERROR));
};
this.pref_id = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.pref_id);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 58
//GetUserPreferences (com.facebook.commands.data.GetUserPreferences)
package com.facebook.commands.data {
import com.facebook.net.*;
public class GetUserPreferences extends FacebookCall {
public static const SCHEMA:Array = [];
public static const METHOD_NAME:String = "data.getUserPreferences";
public function GetUserPreferences(){
super(METHOD_NAME);
}
}
}//package com.facebook.commands.data
Section 59
//IncHashValue (com.facebook.commands.data.IncHashValue)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class IncHashValue extends FacebookCall {
public var obj_type:String;
public var increment:Number;
public var prop_name:String;
public var key:String;
public static const SCHEMA:Array = ["obj_type", "key", "prop_name", "increment"];
public static const METHOD_NAME:String = "data.incHashValue";
public function IncHashValue(_arg1:String, _arg2:String, _arg3:String, _arg4:Number){
super(METHOD_NAME);
this.obj_type = _arg1;
this.key = _arg2;
this.prop_name = _arg3;
this.increment = _arg4;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_type, this.key, this.prop_name, this.increment);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 60
//RemoveAssociatedObjects (com.facebook.commands.data.RemoveAssociatedObjects)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class RemoveAssociatedObjects extends FacebookCall {
public var obj_id:String;
public var name:String;
public static const SCHEMA:Array = ["name", "obj_id"];
public static const METHOD_NAME:String = "data.removeAssociatedObjects";
public function RemoveAssociatedObjects(_arg1:String, _arg2:String){
super(METHOD_NAME);
this.name = _arg1;
this.obj_id = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.name, this.obj_id);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 61
//RemoveAssociation (com.facebook.commands.data.RemoveAssociation)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class RemoveAssociation extends FacebookCall {
public var obj_id1:Number;
public var name:String;
public var obj_id2:Number;
public static const SCHEMA:Array = ["name", "obj_id1", "obj_id2"];
public static const METHOD_NAME:String = "data.removeAssociatedObjects";
public function RemoveAssociation(){
super(METHOD_NAME);
this.name = this.name;
this.obj_id1 = this.obj_id1;
this.obj_id2 = this.obj_id2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.name, this.obj_id1, this.obj_id2);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 62
//RemoveAssociations (com.facebook.commands.data.RemoveAssociations)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class RemoveAssociations extends FacebookCall {
public var name:String;
public var assocs:Array;
public static const SCHEMA:Array = ["assocs", "name"];
public static const METHOD_NAME:String = "data.removeAssociations";
public function RemoveAssociations(_arg1:Array, _arg2:String=""){
super(METHOD_NAME);
this.assocs = _arg1;
this.name = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.assocs, this.name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 63
//RemoveHashKey (com.facebook.commands.data.RemoveHashKey)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class RemoveHashKey extends FacebookCall {
public var obj_type:String;
public var key:String;
public static const SCHEMA:Array = ["obj_type", "key"];
public static const METHOD_NAME:String = "data.removeHashKey";
public function RemoveHashKey(_arg1:String, _arg2:String){
super(METHOD_NAME);
this.obj_type = _arg1;
this.key = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_type, this.key);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 64
//RemoveHashKeys (com.facebook.commands.data.RemoveHashKeys)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class RemoveHashKeys extends FacebookCall {
public var obj_type:String;
public var keys:Array;
public static const SCHEMA:Array = ["obj_type", "keys"];
public static const METHOD_NAME:String = "data.removeHashKeys";
public function RemoveHashKeys(_arg1:String, _arg2:Array){
super(METHOD_NAME);
this.obj_type = _arg1;
this.keys = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_type, this.keys);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 65
//RenameAssociation (com.facebook.commands.data.RenameAssociation)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.data.*;
import com.facebook.utils.*;
import com.facebook.*;
public class RenameAssociation extends FacebookCall {
public var new_alias1:String;
public var new_alias2:String;
public var new_name:String;
public var name:String;
public static const SCHEMA:Array = ["name", "new_name", "new_alias1", "new_alias2"];
public static const METHOD_NAME:String = "data.renameAssociation";
public function RenameAssociation(_arg1:String, _arg2:String="", _arg3:String="", _arg4:String=""){
super(METHOD_NAME);
if (ValidationUtils.isDataObjectTypeValid(_arg2) == false){
throw (new RangeError(FacebookDataUtils.supplantString(InternalErrorMessages.DATA_INVALID_NAME_ERROR, {propName:_arg2})));
};
if (ValidationUtils.isDataObjectTypeValid(_arg3) == false){
throw (new RangeError(FacebookDataUtils.supplantString(InternalErrorMessages.DATA_INVALID_NAME_ERROR, {propName:_arg3})));
};
if (ValidationUtils.isDataObjectTypeValid(_arg4) == false){
throw (new RangeError(FacebookDataUtils.supplantString(InternalErrorMessages.DATA_INVALID_NAME_ERROR, {propName:_arg4})));
};
this.name = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.name, this.new_name, this.new_alias1, this.new_alias2);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 66
//RenameObjectProperty (com.facebook.commands.data.RenameObjectProperty)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.data.*;
import com.facebook.utils.*;
import com.facebook.*;
public class RenameObjectProperty extends FacebookCall {
public var obj_type:String;
public var prop_name:String;
public var new_name:String;
public static const SCHEMA:Array = ["obj_type", "prop_name", "new_name"];
public static const METHOD_NAME:String = "data.renameObjectProperty";
public function RenameObjectProperty(_arg1:String, _arg2:String, _arg3:String){
super(METHOD_NAME);
if (ValidationUtils.isDataObjectTypeValid(_arg1) == false){
throw (new RangeError(FacebookDataUtils.supplantString(InternalErrorMessages.DATA_INVALID_NAME_ERROR, {propName:_arg1})));
};
if (ValidationUtils.isDataObjectTypeValid(_arg2) == false){
throw (new RangeError(FacebookDataUtils.supplantString(InternalErrorMessages.DATA_INVALID_NAME_ERROR, {propName:_arg2})));
};
if (ValidationUtils.isDataObjectTypeValid(_arg3) == false){
throw (new RangeError(FacebookDataUtils.supplantString(InternalErrorMessages.DATA_INVALID_NAME_ERROR, {propName:_arg3})));
};
this.obj_type = _arg1;
this.prop_name = _arg2;
this.new_name = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_type, this.prop_name, this.new_name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 67
//RenameObjectType (com.facebook.commands.data.RenameObjectType)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.data.*;
import com.facebook.utils.*;
import com.facebook.*;
public class RenameObjectType extends FacebookCall {
public var new_name:String;
public var obj_type:String;
public static const SCHEMA:Array = ["obj_type", "new_name"];
public static const METHOD_NAME:String = "data.renameObjectType";
public function RenameObjectType(_arg1:String, _arg2:String){
super(METHOD_NAME);
if (ValidationUtils.isDataObjectTypeValid(_arg1) == false){
throw (new RangeError(FacebookDataUtils.supplantString(InternalErrorMessages.DATA_INVALID_NAME_ERROR, {propName:_arg1})));
};
if (ValidationUtils.isDataObjectTypeValid(_arg2) == false){
throw (new RangeError(FacebookDataUtils.supplantString(InternalErrorMessages.DATA_INVALID_NAME_ERROR, {propName:_arg2})));
};
this.obj_type = _arg1;
this.new_name = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_type, this.new_name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 68
//SetAssociation (com.facebook.commands.data.SetAssociation)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.data.*;
import com.facebook.utils.*;
import com.facebook.*;
public class SetAssociation extends FacebookCall {
public var obj_id1:String;
public var assoc_time:Date;
public var data:String;
public var name:String;
public var obj_id2:String;
public static const SCHEMA:Array = ["name", "obj_id1", "obj_id2", "data", "assoc_time"];
public static const METHOD_NAME:String = "data.setAssociation";
public function SetAssociation(_arg1:String, _arg2:String, _arg3:String, _arg4:String=null, _arg5:Date=null){
super(method, args);
if (ValidationUtils.validateLength(_arg4) == false){
throw (new RangeError(FacebookDataUtils.supplantString(InternalErrorMessages.DATA_INVALID_NAME_ERROR, {propName:_arg4})));
};
this.name = _arg1;
this.obj_id1 = _arg2;
this.obj_id2 = _arg3;
this.assoc_time = _arg5;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.name, this.obj_id1, this.obj_id2, this.data, FacebookDataUtils.toDateString(this.assoc_time));
super.initialize();
}
}
}//package com.facebook.commands.data
Section 69
//SetAssociations (com.facebook.commands.data.SetAssociations)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.data.data.*;
import com.facebook.*;
public class SetAssociations extends FacebookCall {
protected var name:String;
protected var assocs:SetAssociationsDataCollection;
public static const SCHEMA:Array = ["assocs", "name"];
public static const METHOD_NAME:String = "data.setAssociations";
public function SetAssociations(_arg1:SetAssociationsDataCollection, _arg2:String=null){
super(METHOD_NAME);
this.assocs = _arg1;
this.name = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.assocs, this.name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 70
//SetCookie (com.facebook.commands.data.SetCookie)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class SetCookie extends FacebookCall {
public var uid:String;
public var value:String;
public var expires:Date;
public var path:String;
public var name:String;
public static const SCHEMA:Array = ["uid", "name", "value", "expires", "path"];
public static const METHOD_NAME:String = "data.setCookie";
public function SetCookie(_arg1:String, _arg2:String, _arg3:String, _arg4:Date=null, _arg5:String="/"){
super(METHOD_NAME);
this.uid = _arg1;
this.name = _arg2;
this.value = _arg3;
this.expires = _arg4;
this.path = _arg5;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.uid, this.name, this.value, FacebookDataUtils.toDateString(this.expires), this.path);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 71
//SetHashValue (com.facebook.commands.data.SetHashValue)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class SetHashValue extends FacebookCall {
public var value:String;
public var obj_type:String;
public var prop_name:String;
public var key:String;
public static const SCHEMA:Array = ["obj_type", "key", "value", "prop_name"];
public static const METHOD_NAME:String = "data.setHashValue";
public function SetHashValue(_arg1:String, _arg2:String, _arg3:String, _arg4:String){
super(METHOD_NAME);
this.obj_type = _arg1;
this.key = _arg2;
this.value = _arg3;
this.prop_name = _arg4;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_type, this.key, this.value, this.prop_name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 72
//SetObjectProperty (com.facebook.commands.data.SetObjectProperty)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class SetObjectProperty extends FacebookCall {
public var obj_id:String;
public var prop_value:String;
public var prop_name:String;
public static const SCHEMA:Array = ["obj_id", "prop_name", "prop_value"];
public static const METHOD_NAME:String = "data.setObjectProperty";
public function SetObjectProperty(_arg1:String, _arg2:String, _arg3:String){
super(METHOD_NAME);
this.obj_id = _arg1;
this.prop_name = _arg2;
this.prop_value = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_id, this.prop_name, this.prop_value);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 73
//SetUserPreference (com.facebook.commands.data.SetUserPreference)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.data.*;
import com.facebook.*;
public class SetUserPreference extends FacebookCall {
public var value:String;
public var pref_id:Number;
public static const SCHEMA:Array = ["pref_id", "value"];
public static const METHOD_NAME:String = "data.setUserPreference";
public function SetUserPreference(_arg1:uint, _arg2:String){
super(METHOD_NAME);
if (_arg1 > 200){
throw (new RangeError(InternalErrorMessages.USER_PREFERENCE_ID_RANGE_ERROR));
};
if (((!((_arg2 == null))) && ((_arg2.length > 128)))){
throw (new RangeError(InternalErrorMessages.USER_PREFERENCE_VALUE_RANGE_ERROR));
};
if (_arg2 == null){
_arg2 = "0";
};
this.pref_id = _arg1;
this.value = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.pref_id, this.value);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 74
//SetUserPreferences (com.facebook.commands.data.SetUserPreferences)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.data.data.*;
import com.facebook.*;
public class SetUserPreferences extends FacebookCall {
public var replace:Boolean;
public var map:NameValueCollection;
public static const SCHEMA:Array = ["map", "replace"];
public static const METHOD_NAME:String = "data.setUserPreferences";
public function SetUserPreferences(_arg1:NameValueCollection, _arg2:Boolean){
super(METHOD_NAME);
this.map = _arg1;
this.replace = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toJSONValuesArray(this.map.toArray()), this.replace);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 75
//UndefineAssociation (com.facebook.commands.data.UndefineAssociation)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.*;
public class UndefineAssociation extends FacebookCall {
public var name:String;
public static const SCHEMA:Array = ["name"];
public static const METHOD_NAME:String = "data.undefineAssociation";
public function UndefineAssociation(_arg1:String){
super(METHOD_NAME);
this.name = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 76
//UndefineObjectProperty (com.facebook.commands.data.UndefineObjectProperty)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.data.*;
import com.facebook.utils.*;
import com.facebook.*;
public class UndefineObjectProperty extends FacebookCall {
public var obj_type:String;
public var prop_name:String;
public static const SCHEMA:Array = ["obj_type", "prop_name"];
public static const METHOD_NAME:String = "data.undefineObjectProperty";
public function UndefineObjectProperty(_arg1:String, _arg2:String){
super(METHOD_NAME);
if (ValidationUtils.isDataObjectTypeValid(_arg1) == false){
throw (new RangeError(FacebookDataUtils.supplantString(InternalErrorMessages.DATA_INVALID_NAME_ERROR, {propName:_arg1})));
};
if (ValidationUtils.isDataObjectTypeValid(_arg2) == false){
throw (new RangeError(FacebookDataUtils.supplantString(InternalErrorMessages.DATA_INVALID_NAME_ERROR, {propName:_arg2})));
};
this.obj_type = _arg1;
this.prop_name = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_type, this.prop_name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 77
//UpdateObject (com.facebook.commands.data.UpdateObject)
package com.facebook.commands.data {
import com.facebook.net.*;
import com.facebook.data.data.*;
import com.facebook.*;
public class UpdateObject extends FacebookCall {
public var properties:NameValueData;
public var replace:Boolean;
public var obj_id:String;
public static const SCHEMA:Array = ["obj_id", "properties", "replace"];
public static const METHOD_NAME:String = "data.updateObject";
public function UpdateObject(_arg1:String, _arg2:NameValueData, _arg3:Boolean){
super(METHOD_NAME);
this.obj_id = _arg1;
this.properties = _arg2;
this.replace = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.obj_id, this.properties, this.replace);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 78
//CancelEvent (com.facebook.commands.events.CancelEvent)
package com.facebook.commands.events {
import com.facebook.net.*;
import com.facebook.*;
public class CancelEvent extends FacebookCall {
public var eid:String;
public var cancel_message:String;
public static const SCHEMA:Array = ["eid", "cancel_message"];
public static const METHOD_NAME:String = "events.cancel";
public function CancelEvent(_arg1:String, _arg2:String=null){
super(METHOD_NAME);
this.eid = _arg1;
this.cancel_message = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.eid, this.cancel_message);
super.initialize();
}
}
}//package com.facebook.commands.events
Section 79
//CreateEvent (com.facebook.commands.events.CreateEvent)
package com.facebook.commands.events {
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.utils.*;
import com.facebook.data.events.*;
import com.facebook.*;
public class CreateEvent extends FacebookCall implements IUploadPhoto {
protected var _data:Object;
public var event_info:CreateEventData;
protected var _uploadType:String;// = "png"
protected var _uploadQuality:uint;// = 80
public static const SCHEMA:Array = ["event_info", "data"];
public static const METHOD_NAME:String = "events.create";
public function CreateEvent(_arg1:CreateEventData, _arg2:Object){
super(METHOD_NAME);
this.event_info = _arg1;
this.data = _arg2;
}
public function get data():Object{
return (this._data);
}
public function get uploadQuality():uint{
return (this._uploadQuality);
}
override facebook_internal function initialize():void{
var _local2:String;
var _local3:Object;
var _local1:Object = {};
for each (_local2 in this.event_info.schema) {
_local3 = this.event_info[_local2];
if ((_local3 is Date)){
_local3 = FacebookDataUtils.toDateString((_local3 as Date));
};
_local1[_local2] = _local3;
};
applySchema(SCHEMA, JSON.encode(_local1), this.data);
super.initialize();
}
public function set uploadType(_arg1:String):void{
this._uploadType = _arg1;
}
public function set data(_arg1:Object):void{
this._data = _arg1;
}
public function set uploadQuality(_arg1:uint):void{
this._uploadQuality = _arg1;
}
public function get uploadType():String{
return (this._uploadType);
}
}
}//package com.facebook.commands.events
Section 80
//EditEvent (com.facebook.commands.events.EditEvent)
package com.facebook.commands.events {
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.utils.*;
import com.facebook.data.events.*;
import com.facebook.*;
public class EditEvent extends FacebookCall {
public var eid:String;
public var event_info:EditEventData;
public static const SCHEMA:Array = ["eid", "event_info"];
public static const METHOD_NAME:String = "events.edit";
public function EditEvent(_arg1:String, _arg2:EditEventData){
super(METHOD_NAME);
this.eid = _arg1;
this.event_info = _arg2;
}
override facebook_internal function initialize():void{
var _local2:String;
var _local3:Object;
var _local1:Object = {};
for each (_local2 in this.event_info.schema) {
_local3 = this.event_info[_local2];
if ((_local3 is Date)){
_local3 = FacebookDataUtils.toDateString((_local3 as Date));
};
_local1[_local2] = _local3;
};
applySchema(SCHEMA, this.eid, JSON.encode(this.event_info));
super.initialize();
}
}
}//package com.facebook.commands.events
Section 81
//GetEvents (com.facebook.commands.events.GetEvents)
package com.facebook.commands.events {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class GetEvents extends FacebookCall {
public var uid:String;
public var end_time:Date;
public var eids:Array;
public var start_time:Date;
public var rsvp_status:String;
public static const SCHEMA:Array = ["uid", "eids", "start_time", "end_time", "rsvp_status"];
public static const METHOD_NAME:String = "events.get";
public function GetEvents(_arg1:String=null, _arg2:Array=null, _arg3:Date=null, _arg4:Date=null, _arg5:String=null){
super(METHOD_NAME);
this.uid = _arg1;
this.eids = _arg2;
this.start_time = _arg3;
this.end_time = _arg4;
this.rsvp_status = _arg5;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.uid, FacebookDataUtils.toArrayString(this.eids), FacebookDataUtils.toDateString(this.start_time), FacebookDataUtils.toDateString(this.end_time), this.rsvp_status);
super.initialize();
}
}
}//package com.facebook.commands.events
Section 82
//GetMembers (com.facebook.commands.events.GetMembers)
package com.facebook.commands.events {
import com.facebook.net.*;
import com.facebook.*;
public class GetMembers extends FacebookCall {
public var eid:String;
public static const SCHEMA:Array = ["eid"];
public static const METHOD_NAME:String = "events.getMembers";
public function GetMembers(_arg1:String){
super(METHOD_NAME);
this.eid = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.eid);
super.initialize();
}
}
}//package com.facebook.commands.events
Section 83
//RSVP (com.facebook.commands.events.RSVP)
package com.facebook.commands.events {
import com.facebook.net.*;
import com.facebook.*;
public class RSVP extends FacebookCall {
public var eid:String;
public var rsvp_status:String;
public static const SCHEMA:Array = ["eid", "rsvp_status"];
public static const METHOD_NAME:String = "events.rsvp";
public function RSVP(_arg1:String, _arg2:String){
super(METHOD_NAME);
this.eid = _arg1;
this.rsvp_status = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.eid, this.rsvp_status);
super.initialize();
}
}
}//package com.facebook.commands.events
Section 84
//DeleteCustomTags (com.facebook.commands.fbml.DeleteCustomTags)
package com.facebook.commands.fbml {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class DeleteCustomTags extends FacebookCall {
public var names:Array;
public static const SCHEMA:Array = ["names"];
public static const METHOD_NAME:String = "fbml.deleteCustomTags";
public function DeleteCustomTags(_arg1:Array=null){
super(METHOD_NAME);
this.names = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toJSONValuesArray(this.names));
super.initialize();
}
}
}//package com.facebook.commands.fbml
Section 85
//GetCustomTags (com.facebook.commands.fbml.GetCustomTags)
package com.facebook.commands.fbml {
import com.facebook.net.*;
import com.facebook.*;
public class GetCustomTags extends FacebookCall {
protected var app_id:String;
public static const SCHEMA:Array = ["app_id"];
public static const METHOD_NAME:String = "fbml.getCustomTags";
public function GetCustomTags(_arg1:String=""){
super(METHOD_NAME);
this.app_id = _arg1;
}
override facebook_internal function initialize():void{
this.applySchema(SCHEMA, this.app_id);
super.initialize();
}
}
}//package com.facebook.commands.fbml
Section 86
//RefreshImgSrc (com.facebook.commands.fbml.RefreshImgSrc)
package com.facebook.commands.fbml {
import com.facebook.net.*;
import com.facebook.*;
public class RefreshImgSrc extends FacebookCall {
public var url:String;
public static const SCHEMA:Array = ["url"];
public static const METHOD_NAME:String = "fbml.refreshImgSrc";
public function RefreshImgSrc(_arg1:String){
super(METHOD_NAME);
this.url = _arg1;
}
override facebook_internal function initialize():void{
this.applySchema(SCHEMA, this.url);
super.initialize();
}
}
}//package com.facebook.commands.fbml
Section 87
//RefreshRefUrl (com.facebook.commands.fbml.RefreshRefUrl)
package com.facebook.commands.fbml {
import com.facebook.net.*;
import com.facebook.*;
public class RefreshRefUrl extends FacebookCall {
public var url:String;
public static const SCHEMA:Array = ["url"];
public static const METHOD_NAME:String = "fbml.refreshRefUrl";
public function RefreshRefUrl(_arg1:String){
super(METHOD_NAME);
this.url = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.url);
super.initialize();
}
}
}//package com.facebook.commands.fbml
Section 88
//RegisterCustomTags (com.facebook.commands.fbml.RegisterCustomTags)
package com.facebook.commands.fbml {
import com.facebook.data.fbml.*;
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class RegisterCustomTags extends FacebookCall {
public var tags:TagCollection;
public static const SCHEMA:Array = ["tags"];
public static const METHOD_NAME:String = "fbml.registerCustomTags";
public function RegisterCustomTags(_arg1:TagCollection){
super(METHOD_NAME);
this.tags = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.facebookCollectionToJSONArray(this.tags));
super.initialize();
}
}
}//package com.facebook.commands.fbml
Section 89
//SetRefHandle (com.facebook.commands.fbml.SetRefHandle)
package com.facebook.commands.fbml {
import com.facebook.net.*;
import com.facebook.*;
public class SetRefHandle extends FacebookCall {
public var handle:String;
public var fmbl:String;
public static const SCHEMA:Array = ["handle", "fmbl"];
public static const METHOD_NAME:String = "fbml.setRefHandle";
public function SetRefHandle(_arg1:String, _arg2:String){
super(METHOD_NAME);
this.handle = _arg1;
this.fmbl = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.handle, this.fmbl);
super.initialize();
}
}
}//package com.facebook.commands.fbml
Section 90
//DeactivateTemplateBundleByID (com.facebook.commands.feed.DeactivateTemplateBundleByID)
package com.facebook.commands.feed {
import com.facebook.net.*;
import com.facebook.*;
public class DeactivateTemplateBundleByID extends FacebookCall {
public var template_bundle_id:String;
public static const SCHEMA:Array = ["template_bundle_id"];
public static const METHOD_NAME:String = "feed.deactivateTemplateBundleByID";
public function DeactivateTemplateBundleByID(_arg1:String){
super(METHOD_NAME);
this.template_bundle_id = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.template_bundle_id);
super.initialize();
}
}
}//package com.facebook.commands.feed
Section 91
//GetRegisteredTemplateBundleByID (com.facebook.commands.feed.GetRegisteredTemplateBundleByID)
package com.facebook.commands.feed {
import com.facebook.net.*;
import com.facebook.*;
public class GetRegisteredTemplateBundleByID extends FacebookCall {
public var template_bundle_id:String;
public static const SCHEMA:Array = ["template_bundle_id"];
public static const METHOD_NAME:String = "feed.getRegisteredTemplateBundleByID";
public function GetRegisteredTemplateBundleByID(_arg1:String){
super(METHOD_NAME);
this.template_bundle_id = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.template_bundle_id);
super.initialize();
}
}
}//package com.facebook.commands.feed
Section 92
//GetRegisteredTemplateBundles (com.facebook.commands.feed.GetRegisteredTemplateBundles)
package com.facebook.commands.feed {
import com.facebook.net.*;
public class GetRegisteredTemplateBundles extends FacebookCall {
public static const SCHEMA:Array = [];
public static const METHOD_NAME:String = "feed.getRegisteredTemplateBundles";
public function GetRegisteredTemplateBundles(){
super(METHOD_NAME);
}
}
}//package com.facebook.commands.feed
Section 93
//PublishTemplatizedAction (com.facebook.commands.feed.PublishTemplatizedAction)
package com.facebook.commands.feed {
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.utils.*;
import com.facebook.*;
public class PublishTemplatizedAction extends FacebookCall {
public var title_template:String;
public var image_4_link:String;
public var target_ids:Array;
public var body_general:String;
public var image_1:String;
public var image_2:String;
public var image_3:String;
public var image_4:String;
public var image_2_link:String;
public var page_actor_id:String;
public var body_data:Object;
public var image_1_link:String;
public var title_data:Object;
public var body_template:String;
public var image_3_link:String;
public static const SCHEMA:Array = ["title_template", "title_data", "body_template", "body_data", "body_general", "page_actor_id", "image_1", "image_1_link", "image_2", "image_2_link", "image_3", "image_3_link", "image_4", "image_4_link", "target_ids"];
public static const METHOD_NAME:String = "feed.publishTemplatizedAction";
public function PublishTemplatizedAction(_arg1:String, _arg2:Object=null, _arg3:String="", _arg4:String="", _arg5:String="", _arg6:String="", _arg7:String="", _arg8:String="", _arg9:String="", _arg10:String="", _arg11:String="", _arg12:String="", _arg13:String="", _arg14:String="", _arg15:Array=null){
super(METHOD_NAME);
this.title_template = _arg1;
this.title_data = _arg2;
this.body_template = _arg3;
this.body_data = _arg4;
this.body_general = _arg5;
this.page_actor_id = _arg6;
this.image_1 = _arg7;
this.image_1_link = _arg8;
this.image_2 = _arg9;
this.image_2_link = _arg10;
this.image_3 = _arg11;
this.image_3_link = _arg12;
this.image_4 = _arg13;
this.image_4_link = _arg14;
this.target_ids = _arg15;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.title_template, JSON.encode(this.title_data), this.body_template, this.body_data, this.body_general, this.page_actor_id, this.image_1, this.image_1_link, this.image_2, this.image_2_link, this.image_3, this.image_3_link, this.image_4, this.image_4_link, FacebookDataUtils.toArrayString(this.target_ids));
super.initialize();
}
}
}//package com.facebook.commands.feed
Section 94
//PublishUserAction (com.facebook.commands.feed.PublishUserAction)
package com.facebook.commands.feed {
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.utils.*;
public class PublishUserAction extends FacebookCall {
public var target_ids:Array;
public var story_size:Number;
public var template_data:Object;
public var body_general:String;
public var user_message:String;
public var template_bundle_id:String;
public static const SCHEMA:Array = ["template_bundle_id", "template_data", "target_ids", "body_general", "story_size", "user_message"];
public static const METHOD_NAME:String = "feed.publishUserAction";
public function PublishUserAction(_arg1:String, _arg2:Object, _arg3:Array=null, _arg4:String=null, _arg5:Number=NaN, _arg6:String=null){
super(METHOD_NAME);
this.template_bundle_id = _arg1;
this.template_data = _arg2;
this.target_ids = _arg3;
this.body_general = _arg4;
this.story_size = _arg5;
this.user_message = _arg6;
applySchema(SCHEMA, _arg1, JSON.encode(_arg2), FacebookDataUtils.toArrayString(_arg3), _arg4, _arg5, _arg6);
}
}
}//package com.facebook.commands.feed
Section 95
//RegisterTemplateBundle (com.facebook.commands.feed.RegisterTemplateBundle)
package com.facebook.commands.feed {
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.utils.*;
import com.facebook.data.feed.*;
import com.facebook.*;
public class RegisterTemplateBundle extends FacebookCall {
public var action_links:ActionLinkCollection;
public var full_story_template:TemplateData;
public var short_story_templates:TemplateCollection;
public var one_line_story_templates:Array;
public static const SCHEMA:Array = ["one_line_story_templates", "short_story_templates", "full_story_template", "action_links"];
public static const METHOD_NAME:String = "feed.registerTemplateBundle";
public function RegisterTemplateBundle(_arg1:Array, _arg2:TemplateCollection, _arg3:TemplateData, _arg4:ActionLinkCollection){
super(METHOD_NAME);
this.one_line_story_templates = _arg1;
this.short_story_templates = _arg2;
this.full_story_template = _arg3;
this.action_links = _arg4;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, JSON.encode(this.one_line_story_templates), FacebookDataUtils.facebookCollectionToJSONArray(this.short_story_templates), JSON.encode(this.full_story_template), FacebookDataUtils.facebookCollectionToJSONArray(this.action_links));
super.initialize();
}
}
}//package com.facebook.commands.feed
Section 96
//FqlMultiquery (com.facebook.commands.fql.FqlMultiquery)
package com.facebook.commands.fql {
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.*;
public class FqlMultiquery extends FacebookCall {
public var queries:Object;
public static const SCHEMA:Array = ["queries"];
public static const METHOD_NAME:String = "fql.multiquery";
public function FqlMultiquery(_arg1:Object){
super(METHOD_NAME);
this.queries = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, JSON.encode(this.queries));
super.initialize();
}
}
}//package com.facebook.commands.fql
Section 97
//FqlQuery (com.facebook.commands.fql.FqlQuery)
package com.facebook.commands.fql {
import com.facebook.net.*;
import com.facebook.*;
public class FqlQuery extends FacebookCall {
public var query:String;
public static const SCHEMA:Array = ["query"];
public static const METHOD_NAME:String = "fql.query";
public function FqlQuery(_arg1:String){
super(METHOD_NAME);
this.query = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.query);
super.initialize();
}
}
}//package com.facebook.commands.fql
Section 98
//AreFriends (com.facebook.commands.friends.AreFriends)
package com.facebook.commands.friends {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class AreFriends extends FacebookCall {
public var format:String;
public var uids1:Array;
public var uids2:Array;
public static const SCHEMA:Array = ["uids1", "uids2", "format"];
public static const METHOD_NAME:String = "friends.areFriends";
public function AreFriends(_arg1:Array, _arg2:Array, _arg3:String){
super(METHOD_NAME);
this.uids1 = _arg1;
this.uids2 = _arg2;
this.format = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toArrayString(this.uids1), FacebookDataUtils.toArrayString(this.uids2), this.format);
super.initialize();
}
}
}//package com.facebook.commands.friends
Section 99
//GetAppUsers (com.facebook.commands.friends.GetAppUsers)
package com.facebook.commands.friends {
import com.facebook.net.*;
public class GetAppUsers extends FacebookCall {
public static const SCHEMA:Array = [];
public static const METHOD_NAME:String = "friends.getAppUsers";
public function GetAppUsers(){
super(METHOD_NAME);
}
}
}//package com.facebook.commands.friends
Section 100
//GetFriends (com.facebook.commands.friends.GetFriends)
package com.facebook.commands.friends {
import com.facebook.net.*;
import com.facebook.*;
public class GetFriends extends FacebookCall {
public var uid:String;
public var flid:String;
public static const SCHEMA:Array = ["flid", "uid"];
public static const METHOD_NAME:String = "friends.get";
public function GetFriends(_arg1:String=null, _arg2:String=null){
super(METHOD_NAME);
this.flid = _arg1;
this.uid = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.flid, this.uid);
super.initialize();
}
}
}//package com.facebook.commands.friends
Section 101
//GetLists (com.facebook.commands.friends.GetLists)
package com.facebook.commands.friends {
import com.facebook.net.*;
public class GetLists extends FacebookCall {
public static const SCHEMA:Array = [];
public static const METHOD_NAME:String = "friends.getLists";
public function GetLists(){
super(METHOD_NAME);
}
}
}//package com.facebook.commands.friends
Section 102
//GetMutualFriends (com.facebook.commands.friends.GetMutualFriends)
package com.facebook.commands.friends {
import com.facebook.net.*;
import com.facebook.*;
public class GetMutualFriends extends FacebookCall {
public var target_uid:String;
public var source_uid:String;
public static const SCHEMA:Array = ["target_uid", "source_uid"];
public static const METHOD_NAME:String = "friends.getMutualFriends";
public function GetMutualFriends(_arg1:String, _arg2:String=null){
super(METHOD_NAME);
this.target_uid = _arg1;
this.source_uid = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.target_uid, this.source_uid);
super.initialize();
}
}
}//package com.facebook.commands.friends
Section 103
//GetGroupMembers (com.facebook.commands.groups.GetGroupMembers)
package com.facebook.commands.groups {
import com.facebook.net.*;
import com.facebook.*;
public class GetGroupMembers extends FacebookCall {
public var gid:String;
public static const SCHEMA:Array = ["gid"];
public static const METHOD_NAME:String = "groups.getMembers";
public function GetGroupMembers(_arg1:String){
super(METHOD_NAME);
this.gid = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.gid);
super.initialize();
}
}
}//package com.facebook.commands.groups
Section 104
//GetGroups (com.facebook.commands.groups.GetGroups)
package com.facebook.commands.groups {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class GetGroups extends FacebookCall {
public var uid:String;
public var gids:Array;
public static const SCHEMA:Array = ["gids", "uid"];
public static const METHOD_NAME:String = "groups.get";
public function GetGroups(_arg1:Array=null, _arg2:String=null){
super(METHOD_NAME);
this.gids = _arg1;
this.uid = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toArrayString(this.gids), this.uid);
super.initialize();
}
}
}//package com.facebook.commands.groups
Section 105
//GetTranslations (com.facebook.commands.intl.GetTranslations)
package com.facebook.commands.intl {
import com.facebook.net.*;
import com.facebook.*;
public class GetTranslations extends FacebookCall {
public var all:Boolean;
public var locale:String;
public static const SCHEMA:Array = ["locale", "all"];
public static const METHOD_NAME:String = "intl.getTranslations";
public function GetTranslations(_arg1:String="en_US", _arg2:Boolean=false){
super(METHOD_NAME);
this.locale = _arg1;
this.all = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.locale, this.all);
super.initialize();
}
}
}//package com.facebook.commands.intl
Section 106
//UploadNativeStrings (com.facebook.commands.intl.UploadNativeStrings)
package com.facebook.commands.intl {
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.*;
public class UploadNativeStrings extends FacebookCall {
public var native_strings:Array;
public static const SCHEMA:Array = ["native_strings"];
public static const METHOD_NAME:String = "intl.uploadNativeStrings";
public function UploadNativeStrings(_arg1:Array){
super(METHOD_NAME);
this.native_strings = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, JSON.encode(this.native_strings));
super.initialize();
}
}
}//package com.facebook.commands.intl
Section 107
//GetLinks (com.facebook.commands.links.GetLinks)
package com.facebook.commands.links {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class GetLinks extends FacebookCall {
public var uid:String;
public var link_ids:Array;
public var limit:String;
public static const SCHEMA:Array = ["uid", "link_ids", "limit"];
public static const METHOD_NAME:String = "links.get";
public function GetLinks(_arg1:String=null, _arg2:Array=null, _arg3:String=null){
super(METHOD_NAME);
this.uid = _arg1;
this.link_ids = _arg2;
this.limit = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.uid, FacebookDataUtils.toArrayString(this.link_ids), this.limit);
super.initialize();
}
}
}//package com.facebook.commands.links
Section 108
//PostLink (com.facebook.commands.links.PostLink)
package com.facebook.commands.links {
import com.facebook.net.*;
import com.facebook.*;
public class PostLink extends FacebookCall {
public var uid:String;
public var url:String;
public var comment:String;
public static const SCHEMA:Array = ["uid", "url", "comment"];
public static const METHOD_NAME:String = "links.post";
public function PostLink(_arg1:String, _arg2:String, _arg3:String){
super(METHOD_NAME);
this.uid = _arg1;
this.url = _arg2;
this.comment = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.uid, this.url, this.comment);
super.initialize();
}
}
}//package com.facebook.commands.links
Section 109
//SendLiveMessage (com.facebook.commands.livemessage.SendLiveMessage)
package com.facebook.commands.livemessage {
import com.facebook.net.*;
import com.facebook.*;
public class SendLiveMessage extends FacebookCall {
public var event_name:String;
public var message:String;
public var recipient:String;
public static const SCHEMA:Array = ["recipient", "event_name", "message"];
public static const METHOD_NAME:String = "liveMessage.send";
public function SendLiveMessage(_arg1:String, _arg2:String, _arg3:String){
super(METHOD_NAME);
this.recipient = _arg1;
this.event_name = _arg2;
this.message = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.recipient, this.event_name, this.message);
super.initialize();
}
}
}//package com.facebook.commands.livemessage
Section 110
//GetThreadsInFolder (com.facebook.commands.message.GetThreadsInFolder)
package com.facebook.commands.message {
import com.facebook.net.*;
import com.facebook.*;
public class GetThreadsInFolder extends FacebookCall {
public var offset:String;
public var uid:String;
public var limit:String;
public var folder_id:String;
public static const SCHEMA:Array = ["folder_id", "uid", "limit", "offset"];
public static const METHOD_NAME:String = "Message.getThreadsInFolder";
public function GetThreadsInFolder(_arg1:String=null, _arg2:String=null, _arg3:String=null, _arg4:String=null){
super(METHOD_NAME);
this.folder_id = _arg1;
this.uid = _arg2;
this.limit = _arg3;
this.offset = _arg4;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.folder_id, this.uid, this.limit, this.offset);
super.initialize();
}
}
}//package com.facebook.commands.message
Section 111
//CreateNotes (com.facebook.commands.notes.CreateNotes)
package com.facebook.commands.notes {
import com.facebook.net.*;
import com.facebook.*;
public class CreateNotes extends FacebookCall {
public var uid:String;
public var title:String;
public var content:String;
public static const SCHEMA:Array = ["uid", "title", "content"];
public static const METHOD_NAME:String = "notes.create";
public function CreateNotes(_arg1:String, _arg2:String, _arg3:String){
super(METHOD_NAME);
this.uid = _arg1;
this.title = _arg2;
this.content = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.uid, this.title, this.content);
super.initialize();
}
}
}//package com.facebook.commands.notes
Section 112
//DeleteNotes (com.facebook.commands.notes.DeleteNotes)
package com.facebook.commands.notes {
import com.facebook.net.*;
import com.facebook.*;
public class DeleteNotes extends FacebookCall {
public var uid:String;
public var title:String;
public var content:String;
public static const SCHEMA:Array = ["title", "content", "uid"];
public static const METHOD_NAME:String = "notes.delete";
public function DeleteNotes(_arg1:String, _arg2:String, _arg3:String=""){
super(METHOD_NAME);
this.title = _arg1;
this.content = _arg2;
this.uid = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.title, this.content, this.uid);
super.initialize();
}
}
}//package com.facebook.commands.notes
Section 113
//EditNotes (com.facebook.commands.notes.EditNotes)
package com.facebook.commands.notes {
import com.facebook.net.*;
import com.facebook.*;
public class EditNotes extends FacebookCall {
public var note_id:String;
public var content:String;
public var title:String;
public static const SCHEMA:Array = ["note_id", "title", "content"];
public static const METHOD_NAME:String = "notes.edit";
public function EditNotes(_arg1:String="", _arg2:String="", _arg3:String=""){
super(METHOD_NAME);
this.note_id = _arg1;
this.title = _arg2;
this.content = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.note_id, this.title, this.content);
super.initialize();
}
}
}//package com.facebook.commands.notes
Section 114
//GetNotes (com.facebook.commands.notes.GetNotes)
package com.facebook.commands.notes {
import com.facebook.net.*;
import com.facebook.*;
public class GetNotes extends FacebookCall {
public var uid:String;
public static const SCHEMA:Array = ["uid"];
public static const METHOD_NAME:String = "notes.get";
public function GetNotes(_arg1:String=""){
super(METHOD_NAME);
this.uid = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.uid);
super.initialize();
}
}
}//package com.facebook.commands.notes
Section 115
//GetList (com.facebook.commands.notifications.GetList)
package com.facebook.commands.notifications {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class GetList extends FacebookCall {
public var start_time:Date;
public var include_read:Boolean;
public static const SCHEMA:Array = ["start_time", "include_read"];
public static const METHOD_NAME:String = "notifications.getList";
public function GetList(_arg1:Date=null, _arg2:Boolean=false){
super(METHOD_NAME);
this.start_time = _arg1;
this.include_read = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toDateString(this.start_time), this.include_read);
super.initialize();
}
}
}//package com.facebook.commands.notifications
Section 116
//GetNotifications (com.facebook.commands.notifications.GetNotifications)
package com.facebook.commands.notifications {
import com.facebook.net.*;
public class GetNotifications extends FacebookCall {
public static const SCHEMA:Array = [];
public static const METHOD_NAME:String = "notifications.get";
public function GetNotifications(){
super(METHOD_NAME);
}
}
}//package com.facebook.commands.notifications
Section 117
//MarkRead (com.facebook.commands.notifications.MarkRead)
package com.facebook.commands.notifications {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class MarkRead extends FacebookCall {
public var notification_ids:Array;
public static const SCHEMA:Array = ["notification_ids"];
public static const METHOD_NAME:String = "notifications.markRead";
public function MarkRead(_arg1:Array){
super(METHOD_NAME);
this.notification_ids = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toArrayString(this.notification_ids));
super.initialize();
}
}
}//package com.facebook.commands.notifications
Section 118
//SendEmail (com.facebook.commands.notifications.SendEmail)
package com.facebook.commands.notifications {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class SendEmail extends FacebookCall {
public var recipients:Array;
public var fbml:String;
public var subject:String;
public var text:String;
public static const SCHEMA:Array = ["recipients", "subject", "text", "subject"];
public static const METHOD_NAME:String = "notifications.sendEmail";
public function SendEmail(_arg1:Array, _arg2:String, _arg3:String, _arg4:String){
super(METHOD_NAME);
this.recipients = _arg1;
this.subject = _arg2;
this.text = _arg3;
this.fbml = _arg4;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toArrayString(this.recipients), this.subject, this.text, this.fbml);
super.initialize();
}
}
}//package com.facebook.commands.notifications
Section 119
//SendNotification (com.facebook.commands.notifications.SendNotification)
package com.facebook.commands.notifications {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class SendNotification extends FacebookCall {
public var to_ids:Array;
public var type:String;
public var notification:String;
public static const SCHEMA:Array = ["to_ids", "notification", "type"];
public static const METHOD_NAME:String = "notifications.send";
public function SendNotification(_arg1:Array, _arg2:String, _arg3:String=null){
super(METHOD_NAME);
this.to_ids = _arg1;
this.notification = _arg2;
this.type = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toArrayString(this.to_ids), this.notification, this.type);
super.initialize();
}
}
}//package com.facebook.commands.notifications
Section 120
//GetPageInfo (com.facebook.commands.pages.GetPageInfo)
package com.facebook.commands.pages {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class GetPageInfo extends FacebookCall {
public var uid:String;
public var page_ids:Array;
public var fields:Array;
public var type:String;
public var pages:Array;
public static const SCHEMA:Array = ["fields", "page_ids", "uid", "type"];
public static const METHOD_NAME:String = "pages.getInfo";
public function GetPageInfo(_arg1:Array, _arg2:Array=null, _arg3:String=null, _arg4:String=null){
super(METHOD_NAME);
this.fields = _arg1;
this.page_ids = _arg2;
this.uid = _arg3;
this.type = _arg4;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toArrayString(this.fields), FacebookDataUtils.toArrayString(this.page_ids), this.uid, this.type);
super.initialize();
}
}
}//package com.facebook.commands.pages
Section 121
//IsAdmin (com.facebook.commands.pages.IsAdmin)
package com.facebook.commands.pages {
import com.facebook.net.*;
import com.facebook.*;
public class IsAdmin extends FacebookCall {
public var uid:String;
public var page_id:String;
public static const SCHEMA:Array = ["page_id", "uid"];
public static const METHOD_NAME:String = "pages.isAdmin";
public function IsAdmin(_arg1:String, _arg2:String=null){
super(METHOD_NAME);
this.page_id = _arg1;
this.uid = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.page_id, this.uid);
super.initialize();
}
}
}//package com.facebook.commands.pages
Section 122
//IsAppAdded (com.facebook.commands.pages.IsAppAdded)
package com.facebook.commands.pages {
import com.facebook.net.*;
import com.facebook.*;
public class IsAppAdded extends FacebookCall {
public var page_id:String;
public static const SCHEMA:Array = ["page_id"];
public static const METHOD_NAME:String = "pages.isAppAdded";
public function IsAppAdded(_arg1:String=null){
super(METHOD_NAME);
this.page_id = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.page_id);
super.initialize();
}
}
}//package com.facebook.commands.pages
Section 123
//IsFan (com.facebook.commands.pages.IsFan)
package com.facebook.commands.pages {
import com.facebook.net.*;
import com.facebook.*;
public class IsFan extends FacebookCall {
public var uid:String;
public var page_id:String;
public static const SCHEMA:Array = ["page_id", "uid"];
public static const METHOD_NAME:String = "pages.isFan";
public function IsFan(_arg1:String=null, _arg2:String=null){
super(METHOD_NAME);
this.page_id = _arg1;
this.uid = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.page_id, this.uid);
super.initialize();
}
}
}//package com.facebook.commands.pages
Section 124
//AddTag (com.facebook.commands.photos.AddTag)
package com.facebook.commands.photos {
import com.facebook.net.*;
import com.facebook.data.photos.*;
import com.facebook.utils.*;
import com.facebook.*;
public class AddTag extends FacebookCall {
public var tags:PhotoTagCollection;
public var pid:String;
public var owner_uid:String;
public var tag_text:String;
public var tag_uid:String;
public var yPos:Number;
public var xPos:Number;
public static const SCHEMA:Array = ["pid", "tag_uid", "tag_text", "x", "y", "tags", "owner_uid"];
public static const METHOD_NAME:String = "photos.addTag";
public function AddTag(_arg1:String, _arg2:String=null, _arg3:String=null, _arg4:Number=NaN, _arg5:Number=NaN, _arg6:PhotoTagCollection=null, _arg7:String=null){
super(METHOD_NAME);
if ((((((((((_arg6 == null)) && ((_arg2 == null)))) && ((_arg3 == null)))) && (isNaN(_arg4)))) && (isNaN(_arg5)))){
throw (new Error("Please specify a tags array or all of [tag_uid, tag_text, x, y] "));
};
if ((((_arg6 == null)) && ((((((((_arg2 == null)) || ((_arg3 == null)))) || (isNaN(_arg4)))) || (isNaN(_arg5)))))){
throw (new Error("When tags is null you must specify [tag_uid, tag_text, x, y]"));
};
this.pid = _arg1;
this.tag_uid = _arg2;
this.tag_text = _arg3;
this.xPos = _arg4;
this.yPos = _arg5;
this.tags = _arg6;
this.owner_uid = _arg7;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.pid, this.tag_uid, this.tag_text, this.xPos, this.yPos, FacebookDataUtils.facebookCollectionToJSONArray(this.tags), this.owner_uid);
super.initialize();
}
}
}//package com.facebook.commands.photos
Section 125
//CreateAlbum (com.facebook.commands.photos.CreateAlbum)
package com.facebook.commands.photos {
import com.facebook.net.*;
import com.facebook.*;
public class CreateAlbum extends FacebookCall {
public var uid:String;
public var visible:String;
public var location:String;
public var name:String;
public var description:String;
public static const SCHEMA:Array = ["name", "location", "description", "visible", "uid"];
public static const METHOD_NAME:String = "photos.createAlbum";
public function CreateAlbum(_arg1:String, _arg2:String="", _arg3:String="", _arg4:String="", _arg5:String=null){
super(METHOD_NAME);
this.name = _arg1;
this.location = _arg2;
this.description = _arg3;
this.visible = _arg4;
this.uid = _arg5;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.name, this.location, this.description, this.visible, this.uid);
super.initialize();
}
}
}//package com.facebook.commands.photos
Section 126
//GetAlbums (com.facebook.commands.photos.GetAlbums)
package com.facebook.commands.photos {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class GetAlbums extends FacebookCall {
public var uid:String;
public var aids:Array;
public static const SCHEMA:Array = ["uid", "aids"];
public static const METHOD_NAME:String = "photos.getAlbums";
public function GetAlbums(_arg1:String="", _arg2:Array=null){
super(METHOD_NAME);
this.uid = _arg1;
this.aids = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.uid, FacebookDataUtils.toArrayString(this.aids));
super.initialize();
}
}
}//package com.facebook.commands.photos
Section 127
//GetPhotos (com.facebook.commands.photos.GetPhotos)
package com.facebook.commands.photos {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class GetPhotos extends FacebookCall {
protected var subj_id:String;
protected var aid:String;
protected var pids:Array;
public static const SCHEMA:Array = ["subj_id", "aid", "pids"];
public static const METHOD_NAME:String = "photos.get";
public function GetPhotos(_arg1:String="", _arg2:String="", _arg3:Array=null){
super(METHOD_NAME);
this.subj_id = _arg1;
this.aid = _arg2;
this.pids = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.subj_id, this.aid, FacebookDataUtils.toArrayString(this.pids));
super.initialize();
}
}
}//package com.facebook.commands.photos
Section 128
//GetTags (com.facebook.commands.photos.GetTags)
package com.facebook.commands.photos {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class GetTags extends FacebookCall {
public var pids:Array;
public static const SCHEMA:Array = ["pids"];
public static const METHOD_NAME:String = "photos.getTags";
public function GetTags(_arg1:Array=null){
super(METHOD_NAME);
this.pids = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toArrayString(this.pids));
super.initialize();
}
}
}//package com.facebook.commands.photos
Section 129
//UploadPhoto (com.facebook.commands.photos.UploadPhoto)
package com.facebook.commands.photos {
import com.facebook.net.*;
import com.facebook.data.photos.*;
import com.facebook.*;
public class UploadPhoto extends FacebookCall implements IUploadPhoto {
public var aid:String;
protected var _data:Object;
public var uid:String;
public var caption:String;
public var uploadedPhoto:FacebookPhoto;
protected var _uploadType:String;// = "png"
protected var _uploadQuality:uint;// = 80
public static const SCHEMA:Array = ["data", "aid", "caption", "uid"];
public static const METHOD_NAME:String = "photos.upload";
public function UploadPhoto(_arg1:Object=null, _arg2:String=null, _arg3:String=null, _arg4:String=null){
super(METHOD_NAME);
this.data = _arg1;
this.aid = _arg2;
this.caption = _arg3;
this.uid = _arg4;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.data, this.aid, this.caption, this.uid);
super.initialize();
}
public function get uploadType():String{
return (this._uploadType);
}
public function set data(_arg1:Object):void{
this._data = _arg1;
}
public function get data():Object{
return (this._data);
}
public function set uploadType(_arg1:String):void{
this._uploadType = _arg1;
}
public function set uploadQuality(_arg1:uint):void{
this._uploadQuality = _arg1;
}
public function get uploadQuality():uint{
return (this._uploadQuality);
}
}
}//package com.facebook.commands.photos
Section 130
//UploadPhotoTypes (com.facebook.commands.photos.UploadPhotoTypes)
package com.facebook.commands.photos {
public class UploadPhotoTypes {
public static const JPEG:String = "jpeg";
public static const PNG:String = "png";
}
}//package com.facebook.commands.photos
Section 131
//GetFBML (com.facebook.commands.profile.GetFBML)
package com.facebook.commands.profile {
import com.facebook.net.*;
import com.facebook.*;
public class GetFBML extends FacebookCall {
public var uid:String;
public var type:Number;
public static const SCHEMA:Array = ["uid", "type"];
public static const METHOD_NAME:String = "profile.getFBML";
public function GetFBML(_arg1:String=null, _arg2:Number=NaN){
super(METHOD_NAME);
this.uid = _arg1;
this.type = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.uid, this.type);
super.initialize();
}
}
}//package com.facebook.commands.profile
Section 132
//GetInfoOptions (com.facebook.commands.profile.GetInfoOptions)
package com.facebook.commands.profile {
import com.facebook.net.*;
import com.facebook.*;
public class GetInfoOptions extends FacebookCall {
public var field:String;
public static const SCHEMA:Array = ["field"];
public static const METHOD_NAME:String = "profile.getInfoOptions";
public function GetInfoOptions(_arg1:String){
super(METHOD_NAME);
this.field = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.field);
super.initialize();
}
}
}//package com.facebook.commands.profile
Section 133
//ProfileGetInfo (com.facebook.commands.profile.ProfileGetInfo)
package com.facebook.commands.profile {
import com.facebook.net.*;
import com.facebook.*;
public class ProfileGetInfo extends FacebookCall {
public var uid:String;
public static const SCHEMA:Array = ["uid"];
public static const METHOD_NAME:String = "profile.getInfo";
public function ProfileGetInfo(_arg1:String){
super(METHOD_NAME);
this.uid = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.uid);
super.initialize();
}
}
}//package com.facebook.commands.profile
Section 134
//SetFBML (com.facebook.commands.profile.SetFBML)
package com.facebook.commands.profile {
import com.facebook.net.*;
import com.facebook.*;
public class SetFBML extends FacebookCall {
public var uid:String;
public var profile_main:String;
public var markup:String;
public var profile:String;
public var mobile_profile:String;
public static const SCHEMA:Array = ["markup", "uid", "profile", "mobile_profile", "profile_main"];
public static const METHOD_NAME:String = "profile.setFBML";
public function SetFBML(_arg1:String=null, _arg2:String=null, _arg3:String=null, _arg4:String=null, _arg5:String=null){
super(METHOD_NAME);
this.markup = _arg1;
this.uid = _arg2;
this.profile = _arg3;
this.mobile_profile = _arg4;
this.profile_main = _arg5;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.markup, this.uid, this.profile, this.mobile_profile, this.profile_main);
super.initialize();
}
}
}//package com.facebook.commands.profile
Section 135
//SetInfo (com.facebook.commands.profile.SetInfo)
package com.facebook.commands.profile {
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.data.profile.*;
import com.facebook.*;
public class SetInfo extends FacebookCall {
public var uid:String;
public var items:InfoFieldsData;
public var title:String;
public var type:Number;
public var format:String;
public static const SCHEMA:Array = ["title", "type", "items", "uid", "format"];
public static const METHOD_NAME:String = "profile.setInfo";
public function SetInfo(_arg1:String, _arg2:Number, _arg3:InfoFieldsData, _arg4:String, _arg5:String=null){
super(METHOD_NAME);
this.title = _arg1;
this.type = _arg2;
this.items = _arg3;
this.uid = _arg4;
this.format = _arg5;
}
override facebook_internal function initialize():void{
var _local4:InfoItemData;
var _local5:Object;
var _local6:Object;
var _local1:Object = {items:[], field:this.items.field};
var _local2:Number = this.items.items.length;
var _local3:Number = 0;
while (_local3 < _local2) {
_local4 = (this.items.items.getItemAt(_local3) as InfoItemData);
_local5 = {};
for each (_local6 in _local4.schema) {
if (_local4[_local6] == null){
} else {
_local5[_local6] = _local4[_local6];
};
};
_local1.items.push(_local5);
_local3++;
};
applySchema(SCHEMA, this.title, this.type, JSON.encode(_local1), this.uid, this.format);
super.initialize();
}
}
}//package com.facebook.commands.profile
Section 136
//SetInfoOptions (com.facebook.commands.profile.SetInfoOptions)
package com.facebook.commands.profile {
import com.facebook.net.*;
import com.facebook.*;
public class SetInfoOptions extends FacebookCall {
public var options:Array;
public var format:String;
public var field:String;
public static const SCHEMA:Array = ["field", "options", "format"];
public static const METHOD_NAME:String = "profile.setInfoOptions";
public function SetInfoOptions(_arg1:String, _arg2:Array, _arg3:String){
super(METHOD_NAME);
this.field = _arg1;
this.options = _arg2;
this.format = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.field, this.options, this.format);
super.initialize();
}
}
}//package com.facebook.commands.profile
Section 137
//CanSendSMS (com.facebook.commands.sms.CanSendSMS)
package com.facebook.commands.sms {
import com.facebook.net.*;
import com.facebook.*;
public class CanSendSMS extends FacebookCall {
public var uid:String;
public static const SCHEMA:Array = ["uid"];
public static const METHOD_NAME:String = "sms.canSend";
public function CanSendSMS(_arg1:String=null){
super(METHOD_NAME);
this.uid = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.uid);
super.initialize();
}
}
}//package com.facebook.commands.sms
Section 138
//SendSMS (com.facebook.commands.sms.SendSMS)
package com.facebook.commands.sms {
import com.facebook.net.*;
import com.facebook.*;
public class SendSMS extends FacebookCall {
public var uid:String;
public var session_id:Number;
public var req_session:Boolean;
public var message:String;
public static const SCHEMA:Array = ["uid", "message", "session_id", "req_session"];
public static const METHOD_NAME:String = "sms.send";
public function SendSMS(_arg1:String, _arg2:String=null, _arg3:Number=NaN, _arg4:Boolean=false){
super(METHOD_NAME);
this.uid = _arg1;
this.message = _arg2;
this.session_id = _arg3;
this.req_session = _arg4;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.uid, this.message, this.session_id, this.req_session);
super.initialize();
}
}
}//package com.facebook.commands.sms
Section 139
//GetStatus (com.facebook.commands.status.GetStatus)
package com.facebook.commands.status {
import com.facebook.net.*;
import com.facebook.*;
public class GetStatus extends FacebookCall {
public var uid:String;
public var limit:uint;
public static const SCHEMA:Array = ["uid", "limit"];
public static const METHOD_NAME:String = "status.get";
public function GetStatus(_arg1:String, _arg2:uint=100){
this.uid = _arg1;
this.limit = _arg2;
super(METHOD_NAME);
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.uid, this.limit);
super.initialize();
}
}
}//package com.facebook.commands.status
Section 140
//SetStatus (com.facebook.commands.status.SetStatus)
package com.facebook.commands.status {
import com.facebook.net.*;
import com.facebook.*;
public class SetStatus extends FacebookCall {
public var uid:String;
public var status:String;
public static const SCHEMA:Array = ["status", "uid"];
public static const METHOD_NAME:String = "Status.set";
public function SetStatus(_arg1:String=null, _arg2:String=null){
super(METHOD_NAME);
this.status = _arg1;
this.uid = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.status, this.uid);
super.initialize();
}
}
}//package com.facebook.commands.status
Section 141
//AddComment (com.facebook.commands.stream.AddComment)
package com.facebook.commands.stream {
import com.facebook.net.*;
import com.facebook.*;
public class AddComment extends FacebookCall {
public var post_id:String;
public var comment:String;
public static const SCHEMA:Array = ["post_id", "comment"];
public static const METHOD_NAME:String = "stream.addComment";
public function AddComment(_arg1:String, _arg2:String){
super(METHOD_NAME);
this.post_id = _arg1;
this.comment = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.post_id, this.comment);
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 142
//AddLike (com.facebook.commands.stream.AddLike)
package com.facebook.commands.stream {
import com.facebook.net.*;
import com.facebook.*;
public class AddLike extends FacebookCall {
public var uid:String;
public var post_id:String;
public static const SCHEMA:Array = ["post_id", "uid"];
public static const METHOD_NAME:String = "stream.addLike";
public function AddLike(_arg1:String=null, _arg2:String=null){
super(METHOD_NAME);
this.post_id = _arg1;
this.uid = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.post_id, this.uid);
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 143
//GetComments (com.facebook.commands.stream.GetComments)
package com.facebook.commands.stream {
import com.facebook.net.*;
import com.facebook.*;
public class GetComments extends FacebookCall {
public var post_id:String;
public static const SCHEMA:Array = ["post_id"];
public static const METHOD_NAME:String = "stream.getComments";
public function GetComments(_arg1:String=null){
super(METHOD_NAME);
this.post_id = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.post_id);
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 144
//GetFilters (com.facebook.commands.stream.GetFilters)
package com.facebook.commands.stream {
import com.facebook.net.*;
import com.facebook.*;
public class GetFilters extends FacebookCall {
public var uid:String;
public static const SCHEMA:Array = ["uid"];
public static const METHOD_NAME:String = "stream.getFilters";
public function GetFilters(_arg1:String=null){
super(METHOD_NAME);
this.uid = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.uid);
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 145
//GetStream (com.facebook.commands.stream.GetStream)
package com.facebook.commands.stream {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class GetStream extends FacebookCall {
public var source_ids:Array;
public var viewer_id:String;
public var start_time:Date;
public var end_time:Date;
public var filter_key:String;
public var limit:uint;
public static const SCHEMA:Array = ["viewer_id", "source_ids", "start_time", "end_time", "limit", "filter_key"];
public static const METHOD_NAME:String = "stream.get";
public function GetStream(_arg1:String, _arg2:Array=null, _arg3:Date=null, _arg4:Date=null, _arg5:uint=30, _arg6:String=null){
this.viewer_id = _arg1;
this.source_ids = _arg2;
this.start_time = _arg3;
this.end_time = _arg4;
this.limit = _arg5;
this.filter_key = _arg6;
super(METHOD_NAME);
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.viewer_id, FacebookDataUtils.toArrayString(this.source_ids), FacebookDataUtils.toDateString(this.start_time), FacebookDataUtils.toDateString(this.end_time), this.limit, this.filter_key);
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 146
//PublishPost (com.facebook.commands.stream.PublishPost)
package com.facebook.commands.stream {
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.*;
public class PublishPost extends FacebookCall {
public var action_links:Array;
public var attachment:Object;
public var target_id:String;
public var message:String;
public static const SCHEMA:Array = ["message", "attachment", "action_links", "target_id"];
public static const METHOD_NAME:String = "stream.publish";
public function PublishPost(_arg1:String=null, _arg2:Object=null, _arg3:Array=null, _arg4:String=null){
super(METHOD_NAME);
this.message = _arg1;
this.attachment = _arg2;
this.action_links = _arg3;
this.target_id = _arg4;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.message, JSON.encode(this.attachment), JSON.encode(this.action_links), this.target_id);
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 147
//RemoveComment (com.facebook.commands.stream.RemoveComment)
package com.facebook.commands.stream {
import com.facebook.net.*;
import com.facebook.*;
public class RemoveComment extends FacebookCall {
public var uid:String;
public var comment_id:String;
public static const SCHEMA:Array = ["comment_id", "uid"];
public static const METHOD_NAME:String = "stream.removeComment";
public function RemoveComment(_arg1:String, _arg2:String=null){
super(METHOD_NAME);
this.comment_id = _arg1;
this.uid = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.comment_id, this.uid);
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 148
//RemoveLike (com.facebook.commands.stream.RemoveLike)
package com.facebook.commands.stream {
import com.facebook.net.*;
import com.facebook.*;
public class RemoveLike extends FacebookCall {
public var uid:String;
public var post_id:String;
public static const SCHEMA:Array = ["post_id", "uid"];
public static const METHOD_NAME:String = "stream.removeLike";
public function RemoveLike(_arg1:String=null, _arg2:String=null){
super(METHOD_NAME);
this.post_id = _arg1;
this.uid = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.post_id, this.uid);
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 149
//RemovePost (com.facebook.commands.stream.RemovePost)
package com.facebook.commands.stream {
import com.facebook.net.*;
import com.facebook.*;
public class RemovePost extends FacebookCall {
public var post_id:String;
public static const SCHEMA:Array = ["post_id"];
public static const METHOD_NAME:String = "stream.remove";
public function RemovePost(_arg1:String){
super(METHOD_NAME);
this.post_id = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.post_id);
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 150
//GetInfo (com.facebook.commands.users.GetInfo)
package com.facebook.commands.users {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class GetInfo extends FacebookCall {
public var fields:Array;
public var uids:Array;
public static const SCHEMA:Array = ["uids", "fields"];
public static const METHOD_NAME:String = "users.getInfo";
public function GetInfo(_arg1:Array, _arg2:Array){
super(METHOD_NAME);
this.uids = _arg1;
this.fields = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toArrayString(this.uids), FacebookDataUtils.toArrayString(this.fields));
super.initialize();
}
}
}//package com.facebook.commands.users
Section 151
//GetLoggedInUser (com.facebook.commands.users.GetLoggedInUser)
package com.facebook.commands.users {
import com.facebook.net.*;
public class GetLoggedInUser extends FacebookCall {
public static const SCHEMA:Array = [];
public static const METHOD_NAME:String = "users.getLoggedInUser";
public function GetLoggedInUser(){
super(METHOD_NAME);
}
}
}//package com.facebook.commands.users
Section 152
//GetStandardInfo (com.facebook.commands.users.GetStandardInfo)
package com.facebook.commands.users {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class GetStandardInfo extends FacebookCall {
public var uids:Array;
public var format:String;
public var fields:Array;
public static const SCHEMA:Array = ["uids", "fields", "format"];
public static const METHOD_NAME:String = "users.getStandardInfo";
public function GetStandardInfo(_arg1:Array, _arg2:Array, _arg3:String=""){
super(METHOD_NAME);
this.uids = _arg1;
this.fields = _arg2;
this.format = _arg3;
}
override facebook_internal function initialize():void{
this.applySchema(SCHEMA, this.uids, FacebookDataUtils.toArrayString(this.fields), this.format);
super.initialize();
}
}
}//package com.facebook.commands.users
Section 153
//HasAppPermission (com.facebook.commands.users.HasAppPermission)
package com.facebook.commands.users {
import com.facebook.net.*;
import com.facebook.*;
public class HasAppPermission extends FacebookCall {
public var uid:String;
public var ext_perm:String;
public static const SCHEMA:Array = ["ext_perm", "uid"];
public static const METHOD_NAME:String = "users.hasAppPermission";
public function HasAppPermission(_arg1:String, _arg2:String=null){
super(METHOD_NAME);
this.ext_perm = _arg1;
this.uid = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.ext_perm, this.uid);
super.initialize();
}
}
}//package com.facebook.commands.users
Section 154
//IsAppUser (com.facebook.commands.users.IsAppUser)
package com.facebook.commands.users {
import com.facebook.net.*;
import com.facebook.*;
public class IsAppUser extends FacebookCall {
public var uid:String;
public static const SCHEMA:Array = ["uid"];
public static const METHOD_NAME:String = "users.isAppUser";
public function IsAppUser(_arg1:String=null){
super(METHOD_NAME);
this.uid = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.uid);
super.initialize();
}
}
}//package com.facebook.commands.users
Section 155
//SetStatus (com.facebook.commands.users.SetStatus)
package com.facebook.commands.users {
import com.facebook.net.*;
import com.facebook.*;
public class SetStatus extends FacebookCall {
public var uid:String;
public var status:String;
public var status_includes_verb:Boolean;
public var clear:Boolean;
public static const SCHEMA:Array = ["status", "clear", "status_includes_verb", "uid"];
public static const METHOD_NAME:String = "users.setStatus";
public function SetStatus(_arg1:String=null, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:String=null){
super(METHOD_NAME);
this.status = _arg1;
this.clear = _arg2;
this.status_includes_verb = _arg3;
this.uid = _arg4;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.status, this.clear, this.status_includes_verb, this.uid);
super.initialize();
}
}
}//package com.facebook.commands.users
Section 156
//GetUploadLimits (com.facebook.commands.video.GetUploadLimits)
package com.facebook.commands.video {
import com.facebook.net.*;
public class GetUploadLimits extends FacebookCall {
public static const SCHEMA:Array = [];
public static const METHOD_NAME:String = "video.getUploadLimits";
public function GetUploadLimits(){
super(METHOD_NAME);
}
}
}//package com.facebook.commands.video
Section 157
//UploadVideo (com.facebook.commands.video.UploadVideo)
package com.facebook.commands.video {
import com.facebook.net.*;
import com.facebook.*;
public class UploadVideo extends FacebookCall implements IUploadVideo {
protected var _title:String;
protected var _ext:String;
protected var _data:Object;
protected var _description:String;
public static const SCHEMA:Array = ["data", "title", "description"];
public static const TIMEOUT:Number = 300000;
public static const METHOD_NAME:String = "video.upload";
public function UploadVideo(_arg1:String, _arg2:Object, _arg3:String=null, _arg4:String=null){
super(METHOD_NAME);
connectTimeout = TIMEOUT;
this.ext = _arg1;
this.data = _arg2;
this.title = _arg3;
this.description = _arg4;
}
public function get ext():String{
return (this._ext);
}
public function set description(_arg1:String):void{
this._description = _arg1;
}
public function get data():Object{
return (this._data);
}
public function set title(_arg1:String):void{
this._title = _arg1;
}
public function set ext(_arg1:String):void{
this._ext = _arg1;
}
public function set data(_arg1:Object):void{
this._data = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, this.data, this.title, this.description);
super.initialize();
}
public function get title():String{
return (this._title);
}
public function get description():String{
return (this._description);
}
}
}//package com.facebook.commands.video
Section 158
//UploadVideoTypes (com.facebook.commands.video.UploadVideoTypes)
package com.facebook.commands.video {
public class UploadVideoTypes {
public static const WMV:String = "wmv";
public static const VOB:String = "vob";
public static const MPE:String = "mpe";
public static const MPEG:String = "mpeg";
public static const MPG:String = "mpg";
public static const MPEG4:String = "mpeg4";
public static const FLV:String = "flv";
public static const MSV:String = "nsv";
public static const _3GPP:String = "3gpp";
public static const ASF:String = "asf";
public static const _3GP:String = "3gp";
public static const QT:String = "qt";
public static const MP4:String = "mp4";
public static const MOV:String = "mov";
public static const OGM:String = "ogm";
public static const M4V:String = "m4v";
public static const MKV:String = "mkv";
public static const AVI:String = "avi";
public static const _3G2:String = "3g2";
}
}//package com.facebook.commands.video
Section 159
//GetAllocationData (com.facebook.data.admin.GetAllocationData)
package com.facebook.data.admin {
import com.facebook.data.*;
public class GetAllocationData extends FacebookData {
public var allocationLimit:Number;
}
}//package com.facebook.data.admin
Section 160
//GetAllocationValues (com.facebook.data.admin.GetAllocationValues)
package com.facebook.data.admin {
public class GetAllocationValues {
public static const NOTIFICATIONS_PER_DAY:String = "notifications_per_day";
public static const ANNOUNCEMENT_NOTIFICATIONS_PER_WEEK:String = "announcement_notifications_per_week";
public static const EMAIL_DISABLE_MESSAGE_LOCATION:String = "email_disable_message_location";
public static const EMAILS_PER_DAY:String = "emails_per_day";
public static const REQUESTS_PER_DAY:String = "requests_per_day";
}
}//package com.facebook.data.admin
Section 161
//GetAppPropertiesData (com.facebook.data.admin.GetAppPropertiesData)
package com.facebook.data.admin {
import com.facebook.data.*;
public class GetAppPropertiesData extends FacebookData {
public var appProperties:Array;
}
}//package com.facebook.data.admin
Section 162
//GetMetricsData (com.facebook.data.admin.GetMetricsData)
package com.facebook.data.admin {
import com.facebook.data.*;
public class GetMetricsData extends FacebookData {
public var metricsCollection:MetricsDataCollection;
}
}//package com.facebook.data.admin
Section 163
//GetMetricsPeriodValues (com.facebook.data.admin.GetMetricsPeriodValues)
package com.facebook.data.admin {
public class GetMetricsPeriodValues {
public static const DAYS_30:uint = 0x278D00;
public static const DAYS_1:uint = 86400;
public static const DAYS_7:uint = 60400;
}
}//package com.facebook.data.admin
Section 164
//GetMetricsValues (com.facebook.data.admin.GetMetricsValues)
package com.facebook.data.admin {
public class GetMetricsValues {
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_413:String = "canvas_page_views_http_code_413";
public static const UNIQUE_UNBLOCKS:String = "unique_unblocks";
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_0:String = "canvas_page_views_http_code_0";
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_100:String = "canvas_page_views_http_code_100";
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_422:String = "canvas_page_views_http_code_422";
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_500:String = "canvas_page_views_http_code_500";
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_303:String = "canvas_page_views_http_code_303";
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_503:String = "canvas_page_views_http_code_503";
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_505:String = "canvas_page_views_http_code_505";
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_301:String = "canvas_page_views_http_code_301";
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_302:String = "canvas_page_views_http_code_302";
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_502:String = "canvas_page_views_http_code_502";
public static const ALL_VALUES:Array = ALL_USEAGE_VALUES.slice().concat(ALL_HTTP_METRICS.slice());
public static const API_CALLS:String = "api_calls";
public static const UNIQUE_BLOCKS:String = "unique_blocks";
public static const CANVAS_HTTP_REQUEST_TIME_AVG:String = "canvas_http_request_time_avg";
public static const UNIQUE_API_CALLS:String = "unique_api_calls";
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_200ND:String = "canvas_page_views_http_code_200ND";
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_200:String = "canvas_page_views_http_code_200";
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_400:String = "canvas_page_views_http_code_400";
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_401:String = "canvas_page_views_http_code_401";
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_403:String = "canvas_page_views_http_code_403";
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_404:String = "canvas_page_views_http_code_404";
public static const CANVAS_PAGE_VIEWS_HTTP_CODE_405:String = "canvas_page_views_http_code_405";
public static const CANVAS_PAGE_VIEWS:String = "canvas_page_views";
public static const ALL_HTTP_METRICS:Array = [CANVAS_PAGE_VIEWS_HTTP_CODE_0, CANVAS_PAGE_VIEWS_HTTP_CODE_100, CANVAS_PAGE_VIEWS_HTTP_CODE_200, CANVAS_PAGE_VIEWS_HTTP_CODE_200ND, CANVAS_PAGE_VIEWS_HTTP_CODE_301, CANVAS_PAGE_VIEWS_HTTP_CODE_302, CANVAS_PAGE_VIEWS_HTTP_CODE_303, CANVAS_PAGE_VIEWS_HTTP_CODE_400, CANVAS_PAGE_VIEWS_HTTP_CODE_401, CANVAS_PAGE_VIEWS_HTTP_CODE_403, CANVAS_PAGE_VIEWS_HTTP_CODE_404, CANVAS_PAGE_VIEWS_HTTP_CODE_405, CANVAS_PAGE_VIEWS_HTTP_CODE_413, CANVAS_PAGE_VIEWS_HTTP_CODE_422, CANVAS_PAGE_VIEWS_HTTP_CODE_500, CANVAS_PAGE_VIEWS_HTTP_CODE_502, CANVAS_PAGE_VIEWS_HTTP_CODE_503, CANVAS_PAGE_VIEWS_HTTP_CODE_505];
public static const ALL_USEAGE_VALUES:Array = [ACTIVE_USERS, API_CALLS, UNIQUE_API_CALLS, CANVAS_PAGE_VIEWS, UNIQUE_CANVAS_PAGE_VIEWS, CANVAS_HTTP_REQUEST_TIME_AVG, CANVAS_FBML_RENDER_TIME_AVG, UNIQUE_BLOCKS, UNIQUE_UNBLOCKS];
public static const CANVAS_FBML_RENDER_TIME_AVG:String = "canvas_fbml_render_time_avg";
public static const ACTIVE_USERS:String = "active_users";
public static const UNIQUE_CANVAS_PAGE_VIEWS:String = "unique_canvas_page_views";
}
}//package com.facebook.data.admin
Section 165
//MetricsData (com.facebook.data.admin.MetricsData)
package com.facebook.data.admin {
public class MetricsData {
public var end_time:Date;
public var canvas_page_views:Number;
public var active_users:Number;
}
}//package com.facebook.data.admin
Section 166
//MetricsDataCollection (com.facebook.data.admin.MetricsDataCollection)
package com.facebook.data.admin {
import com.facebook.utils.*;
public class MetricsDataCollection extends FacebookArrayCollection {
public function MetricsDataCollection(){
super(null, MetricsData);
}
}
}//package com.facebook.data.admin
Section 167
//RestrictionData (com.facebook.data.admin.RestrictionData)
package com.facebook.data.admin {
public class RestrictionData {
public var type:Number;
public var age_distribution:Number;
public var location:String;
public var age:Number;
}
}//package com.facebook.data.admin
Section 168
//GetPublicInfoData (com.facebook.data.application.GetPublicInfoData)
package com.facebook.data.application {
import com.facebook.data.*;
public class GetPublicInfoData extends FacebookData {
public var monthly_active_users:Number;
public var weekly_active_users:Number;
public var company_name:String;
public var logo_url:String;
public var canvas_name:String;
public var display_name:String;
public var icon_url:String;
public var developers:String;
public var daily_active_users:Number;
public var app_id:String;
public var api_key:String;
public var description:String;
}
}//package com.facebook.data.application
Section 169
//ExtendedPermissionValues (com.facebook.data.auth.ExtendedPermissionValues)
package com.facebook.data.auth {
public class ExtendedPermissionValues {
public static const READ_STREAM:String = "read_stream";
public static const PHOTO_UPLOAD:String = "photo_upload";
public static const PUBLISH_STREAM:String = "publish_stream";
public static const SHARE_ITEM:String = "share_item";
public static const CREATE_NOTE:String = "create_note";
public static const OFFLINE_ACCESS:String = "offline_access";
public static const CREATE_LISTING:String = "create_listing";
public static const VIDEO_UPLOAD:String = "video_upload";
public static const READ_MAILBOX:String = "read_mailbox";
public static const RSVP_EVENT:String = "rsvp_event";
public static const CREATE_EVENT:String = "create_event";
public static const SMS:String = "sms";
public static const EMAIL:String = "email";
public static const STATUS_UPDATE:String = "status_update";
}
}//package com.facebook.data.auth
Section 170
//GetSessionData (com.facebook.data.auth.GetSessionData)
package com.facebook.data.auth {
import com.facebook.data.*;
public class GetSessionData extends FacebookData {
public var uid:String;
public var expires:Date;
public var session_key:String;
public var secret:String;
}
}//package com.facebook.data.auth
Section 171
//BatchCollection (com.facebook.data.batch.BatchCollection)
package com.facebook.data.batch {
import com.facebook.net.*;
import com.facebook.utils.*;
public class BatchCollection extends FacebookArrayCollection {
public function BatchCollection(){
super(null, FacebookCall);
}
}
}//package com.facebook.data.batch
Section 172
//BatchResult (com.facebook.data.batch.BatchResult)
package com.facebook.data.batch {
import com.facebook.data.*;
public class BatchResult extends FacebookData {
public var results:Array;
}
}//package com.facebook.data.batch
Section 173
//ConnectAccountMapCollection (com.facebook.data.connect.ConnectAccountMapCollection)
package com.facebook.data.connect {
import com.facebook.utils.*;
public class ConnectAccountMapCollection extends FacebookArrayCollection {
public function ConnectAccountMapCollection(){
super(null, ConnectAccountMapData);
}
}
}//package com.facebook.data.connect
Section 174
//ConnectAccountMapData (com.facebook.data.connect.ConnectAccountMapData)
package com.facebook.data.connect {
public class ConnectAccountMapData {
public var email_hash:String;
public var account_url:String;
public var account_id:Number;
}
}//package com.facebook.data.connect
Section 175
//AssocInfoData (com.facebook.data.data.AssocInfoData)
package com.facebook.data.data {
public class AssocInfoData {
public var alias:String;
public var unique:Boolean;
public var object_type:String;
}
}//package com.facebook.data.data
Section 176
//AssocTypeValue (com.facebook.data.data.AssocTypeValue)
package com.facebook.data.data {
public class AssocTypeValue {
public static const TWO_WAY_SYMMETRIC:uint = 2;
public static const ONE_WAY:uint = 1;
public static const TWO_WAY_ASYMMETRIC:uint = 3;
}
}//package com.facebook.data.data
Section 177
//GetObjectTypeData (com.facebook.data.data.GetObjectTypeData)
package com.facebook.data.data {
import com.facebook.data.*;
public class GetObjectTypeData extends FacebookData {
public var index_type:Number;
public var name:String;
public var data_type:Number;
}
}//package com.facebook.data.data
Section 178
//GetObjectTypesData (com.facebook.data.data.GetObjectTypesData)
package com.facebook.data.data {
import com.facebook.data.*;
public class GetObjectTypesData extends FacebookData {
public var objectTypeCollection:ObjectTypesCollection;
}
}//package com.facebook.data.data
Section 179
//GetUserPreferencesData (com.facebook.data.data.GetUserPreferencesData)
package com.facebook.data.data {
import com.facebook.data.*;
public class GetUserPreferencesData extends FacebookData {
public var perferenceCollection:PreferenceCollection;
}
}//package com.facebook.data.data
Section 180
//NameValueCollection (com.facebook.data.data.NameValueCollection)
package com.facebook.data.data {
import com.facebook.utils.*;
public class NameValueCollection extends FacebookArrayCollection {
public function NameValueCollection(){
super(null, NameValueData);
}
}
}//package com.facebook.data.data
Section 181
//NameValueData (com.facebook.data.data.NameValueData)
package com.facebook.data.data {
public class NameValueData {
public var value:String;
public var id:uint;
}
}//package com.facebook.data.data
Section 182
//ObjectTypesCollection (com.facebook.data.data.ObjectTypesCollection)
package com.facebook.data.data {
import com.facebook.utils.*;
public class ObjectTypesCollection extends FacebookArrayCollection {
public function ObjectTypesCollection(){
super(null, ObjectTypesData);
}
}
}//package com.facebook.data.data
Section 183
//ObjectTypesData (com.facebook.data.data.ObjectTypesData)
package com.facebook.data.data {
public class ObjectTypesData {
public var object_class:String;
public var name:String;
}
}//package com.facebook.data.data
Section 184
//PreferenceCollection (com.facebook.data.data.PreferenceCollection)
package com.facebook.data.data {
import com.facebook.utils.*;
public class PreferenceCollection extends FacebookArrayCollection {
public function PreferenceCollection(){
super(null, PreferenceData);
}
}
}//package com.facebook.data.data
Section 185
//PreferenceData (com.facebook.data.data.PreferenceData)
package com.facebook.data.data {
public class PreferenceData {
public var value:String;
public var pref_id:Number;
}
}//package com.facebook.data.data
Section 186
//SetAssociationsData (com.facebook.data.data.SetAssociationsData)
package com.facebook.data.data {
public class SetAssociationsData {
public var obj_id1:Number;
public var assoc_time:Date;
public var data:String;
public var obj_id2:Number;
}
}//package com.facebook.data.data
Section 187
//SetAssociationsDataCollection (com.facebook.data.data.SetAssociationsDataCollection)
package com.facebook.data.data {
import com.facebook.utils.*;
public class SetAssociationsDataCollection extends FacebookArrayCollection {
public function SetAssociationsDataCollection(){
super(null, SetAssociationsData);
}
}
}//package com.facebook.data.data
Section 188
//CreateEventData (com.facebook.data.events.CreateEventData)
package com.facebook.data.events {
import com.facebook.*;
public class CreateEventData {
public var street:String;
public var category:String;
public var start_time:Date;
public var name:String;
public var tagline:String;
public var privacy_type:String;
public var page_id:Number;
public var email:String;
facebook_internal var schema:Array;
public var host:String;
public var description:String;
public var city:String;
public var phone:String;
public var end_time:Date;
public var location:String;
public var subcategory:String;
public function CreateEventData(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String, _arg7:Date, _arg8:Date, _arg9:String=null, _arg10:String=null, _arg11:String=null, _arg12:Number=NaN, _arg13:String=null, _arg14:String=null, _arg15:String=null){
this.schema = ["name", "category", "subcategory", "host", "location", "city", "start_time", "end_time", "street", "phone", "email", "page_id", "description", "privacy_type", "tagline"];
this.name = _arg1;
this.category = _arg2;
this.subcategory = _arg3;
this.host = _arg4;
this.location = _arg5;
this.city = _arg6;
this.start_time = _arg7;
this.end_time = _arg8;
this.street = _arg9;
this.phone = _arg10;
this.email = _arg11;
this.page_id = _arg12;
this.description = _arg13;
this.privacy_type = _arg14;
this.tagline = _arg15;
}
}
}//package com.facebook.data.events
Section 189
//EditEventData (com.facebook.data.events.EditEventData)
package com.facebook.data.events {
public class EditEventData {
public var description:String;
public var subcategory:String;
public var start_time:Date;
public var tagline:String;
public var privacy_type:String;
public var street:String;
public var host_id:Number;
public var schema:Array;
public var email:String;
public var host:String;
public var city:String;
public var phone:String;
public var end_time:Date;
public var location:String;
public var category:String;
public function EditEventData(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:Date, _arg7:Date, _arg8:String=null, _arg9:String=null, _arg10:String=null, _arg11:Number=NaN, _arg12:String=null, _arg13:String=null, _arg14:String=null){
this.schema = ["city", "category", "subcategory", "host", "location", "start_time", "end_time", "street", "phone", "email", "host_id", "description", "privacy_type", "tagline"];
this.city = _arg1;
this.category = _arg2;
this.subcategory = _arg3;
this.host = _arg4;
this.location = _arg5;
this.start_time = _arg6;
this.end_time = _arg7;
this.street = _arg8;
this.phone = _arg9;
this.email = _arg10;
this.host_id = _arg11;
this.description = _arg12;
this.privacy_type = _arg13;
this.tagline = _arg14;
}
}
}//package com.facebook.data.events
Section 190
//EventCategoriesValues (com.facebook.data.events.EventCategoriesValues)
package com.facebook.data.events {
public class EventCategoriesValues {
public static const PARTY:Number = 1;
public static const EDUCATION:Number = 3;
public static const MUSIC_ARTS:Number = 5;
public static const TRIPS:Number = 7;
public static const CAUSES:Number = 2;
public static const OTHER:Number = 8;
public static const MEETINGS:Number = 4;
public static const SPORTS:Number = 6;
}
}//package com.facebook.data.events
Section 191
//EventCollection (com.facebook.data.events.EventCollection)
package com.facebook.data.events {
import com.facebook.utils.*;
public class EventCollection extends FacebookArrayCollection {
public function EventCollection(){
super(null, EventData);
}
}
}//package com.facebook.data.events
Section 192
//EventData (com.facebook.data.events.EventData)
package com.facebook.data.events {
import com.facebook.data.*;
public class EventData {
public var eid:String;
public var update_time:Date;
public var nid:Number;
public var pic:String;
public var name:String;
public var tagline:String;
public var start_time:Date;
public var end_time:Date;
public var event_subtype:String;
public var pic_small:String;
public var pic_big:String;
public var host:String;
public var creator:Number;
public var venue:FacebookLocation;
public var location:String;
public var description:String;
public var event_type:String;
}
}//package com.facebook.data.events
Section 193
//EventPrivacyTypeValues (com.facebook.data.events.EventPrivacyTypeValues)
package com.facebook.data.events {
public class EventPrivacyTypeValues {
public static const SECRET:String = "SECRET";
public static const OPEN:String = "OPEN";
public static const CLOSED:String = "CLOSED";
}
}//package com.facebook.data.events
Section 194
//EventSubCategoriesValues (com.facebook.data.events.EventSubCategoriesValues)
package com.facebook.data.events {
public class EventSubCategoriesValues {
public static const CAMPING_TRIP:Number = 49;
public static const GROUP_TRIP:Number = 51;
public static const RECITAL:Number = 42;
public static const CARD_NIGHT:Number = 8;
public static const FUNDRAISER:Number = 24;
public static const PERFORMANCE:Number = 40;
public static const INFORMATIONAL_MEETING:Number = 34;
public static const PEP_RALLY:Number = 44;
public static const HOLIDAY_PARTY:Number = 10;
public static const RETAIL:Number = 57;
public static const LISTENING_PARTY:Number = 38;
public static const JAM_SESSION:Number = 37;
public static const CARNIVAL:Number = 53;
public static const FLEA_MARKET:Number = 56;
public static const OPENING:Number = 39;
public static const ROADTRIP:Number = 52;
public static const STUDY_GROUP:Number = 16;
public static const MOVIE_TV_NIGHT:Number = 12;
public static const AUDITION:Number = 35;
public static const FRATERNITY_SORORITY_PARTY:Number = 5;
public static const RALLY:Number = 26;
public static const CLASS:Number = 27;
public static const REUNION:Number = 23;
public static const LECTURE:Number = 28;
public static const DORM_HOUSE_MEETING:Number = 33;
public static const SLUMBER_PARTY:Number = 18;
public static const NIGHT_OF_MAYHEM:Number = 11;
public static const CONVENTION:Number = 32;
public static const DRINKING_GAMES:Number = 13;
public static const BENEFIT:Number = 20;
public static const FESTIVAL:Number = 55;
public static const PICK_UP:Number = 45;
public static const REHEARSAL:Number = 43;
public static const LAN_PARTY:Number = 15;
public static const CLUB_GROUP_MEETING:Number = 31;
public static const CEREMONY:Number = 54;
public static const BIRTHDAY_PARTY:Number = 1;
public static const CONCERT:Number = 4;
public static const WORKSHOP:Number = 30;
public static const EXHIBIT:Number = 36;
public static const BUSINESS_MEETING:Number = 6;
public static const PROTEST:Number = 25;
public static const DAYTRIP:Number = 50;
public static const PREVIEW:Number = 41;
public static const BAR_NIGHT:Number = 14;
public static const EROTIC_PARTY:Number = 19;
public static const DINNER_PARTY:Number = 9;
public static const OFFICE_HOURS:Number = 29;
public static const HOUSE_PARTY:Number = 22;
public static const BARBECUE:Number = 7;
public static const SPORTING_EVENT:Number = 46;
public static const COCKTAIL_PARTY:Number = 2;
public static const TOURNAMENT:Number = 48;
public static const MIXER:Number = 17;
public static const SPORTS_PRACTICE:Number = 47;
public static const CLUB_PARTY:Number = 3;
public static const GOODBYE_PARTY:Number = 21;
}
}//package com.facebook.data.events
Section 195
//FacebookEventData (com.facebook.data.events.FacebookEventData)
package com.facebook.data.events {
import com.facebook.data.users.*;
import com.facebook.data.*;
public class FacebookEventData {
public var eid:String;
public var update_time:Date;
public var attending:FacebookUserCollection;
public var nid:Number;
public var pic:String;
public var name:String;
public var not_replied:FacebookUserCollection;
public var tagline:String;
public var start_time:Date;
public var end_time:Date;
public var event_subtype:String;
public var pic_small:String;
public var pic_big:String;
public var host:String;
public var creator:FacebookUser;
public var unsure:FacebookUserCollection;
public var venue:FacebookLocation;
public var location:String;
public var description:String;
public var declined:FacebookUserCollection;
public var event_type:String;
public function FacebookEventData(_arg1:String):void{
this.eid = _arg1;
}
}
}//package com.facebook.data.events
Section 196
//FacebookEventDataCollection (com.facebook.data.events.FacebookEventDataCollection)
package com.facebook.data.events {
import com.facebook.utils.*;
public class FacebookEventDataCollection extends FacebookArrayCollection {
public function FacebookEventDataCollection(){
super(null, FacebookEventData);
}
}
}//package com.facebook.data.events
Section 197
//GetEventsData (com.facebook.data.events.GetEventsData)
package com.facebook.data.events {
import com.facebook.data.*;
public class GetEventsData extends FacebookData {
public var eventCollection:EventCollection;
}
}//package com.facebook.data.events
Section 198
//GetMembersData (com.facebook.data.events.GetMembersData)
package com.facebook.data.events {
import com.facebook.data.*;
public class GetMembersData extends FacebookData {
public var unsure:Array;
public var attending:Array;
public var not_replied:Array;
public var declined:Array;
}
}//package com.facebook.data.events
Section 199
//RSVPStatus (com.facebook.data.events.RSVPStatus)
package com.facebook.data.events {
public class RSVPStatus {
public static const UNSURE:String = "unsure";
public static const ATTENDING:String = "attending";
public static const NOT_REPLIED:String = "not_replied";
public static const DECLINED:String = "declined";
}
}//package com.facebook.data.events
Section 200
//RSVPStatusValues (com.facebook.data.events.RSVPStatusValues)
package com.facebook.data.events {
public class RSVPStatusValues {
public static const UNSURE:String = "unsure";
public static const ATTENDING:String = "attending";
public static const NOT_REPLIED:String = "not_replied";
public static const DECLINED:String = "declined";
}
}//package com.facebook.data.events
Section 201
//AbstractTagData (com.facebook.data.fbml.AbstractTagData)
package com.facebook.data.fbml {
public class AbstractTagData {
public var type:String;
public var description:String;
public var name:String;
public var header_fbml:String;
public var attributes:AttributeCollection;
public var is_public:String;
public var footer_fbml:String;
public function AbstractTagData(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String="", _arg6:String="", _arg7:AttributeCollection=null){
this.name = _arg1;
this.type = _arg4;
this.description = _arg5;
this.is_public = _arg6;
this.header_fbml = _arg2;
this.footer_fbml = _arg3;
this.attributes = _arg7;
}
}
}//package com.facebook.data.fbml
Section 202
//AttributeCollection (com.facebook.data.fbml.AttributeCollection)
package com.facebook.data.fbml {
import com.facebook.utils.*;
public class AttributeCollection extends FacebookArrayCollection {
public function AttributeCollection(){
super(null, AttributeData);
}
}
}//package com.facebook.data.fbml
Section 203
//AttributeData (com.facebook.data.fbml.AttributeData)
package com.facebook.data.fbml {
public class AttributeData {
public var default_value:String;
public var name:String;
public var description:String;
}
}//package com.facebook.data.fbml
Section 204
//ContainerTagData (com.facebook.data.fbml.ContainerTagData)
package com.facebook.data.fbml {
public class ContainerTagData extends AbstractTagData {
public var open_tag_fbml:String;
public var close_tag_fbml:String;
public function ContainerTagData(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String, _arg7:String="", _arg8:String="", _arg9:AttributeCollection=null){
this.open_tag_fbml = _arg5;
this.close_tag_fbml = _arg6;
super(_arg1, _arg2, _arg3, _arg4, _arg7, _arg8, _arg9);
}
}
}//package com.facebook.data.fbml
Section 205
//GetCustomTagsData (com.facebook.data.fbml.GetCustomTagsData)
package com.facebook.data.fbml {
import com.facebook.data.*;
public class GetCustomTagsData extends FacebookData {
public var tagCollection:TagCollection;
}
}//package com.facebook.data.fbml
Section 206
//LeafTagData (com.facebook.data.fbml.LeafTagData)
package com.facebook.data.fbml {
public class LeafTagData extends AbstractTagData {
public var fbml:String;
public function LeafTagData(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String="", _arg7:String="", _arg8:AttributeCollection=null){
this.fbml = _arg2;
super(_arg1, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
}
}//package com.facebook.data.fbml
Section 207
//TagCollection (com.facebook.data.fbml.TagCollection)
package com.facebook.data.fbml {
import com.facebook.utils.*;
public class TagCollection extends FacebookArrayCollection {
public function TagCollection(){
super(null, AbstractTagData);
}
}
}//package com.facebook.data.fbml
Section 208
//TagData (com.facebook.data.fbml.TagData)
package com.facebook.data.fbml {
public class TagData {
public var description:String;
public var close_tag_fbml:String;
public var name:String;
public var header_fbml:String;
public var open_tag_fbml:String;
public var attributes:AttributeCollection;
public var type:String;
public var fbml:String;
public var is_public:String;
public var footer_fbml:String;
}
}//package com.facebook.data.fbml
Section 209
//ActionLinkCollection (com.facebook.data.feed.ActionLinkCollection)
package com.facebook.data.feed {
import com.facebook.utils.*;
public class ActionLinkCollection extends FacebookArrayCollection {
public function ActionLinkCollection(){
super(null, ActionLinkData);
}
}
}//package com.facebook.data.feed
Section 210
//ActionLinkData (com.facebook.data.feed.ActionLinkData)
package com.facebook.data.feed {
public class ActionLinkData {
public var href:String;
public var text:String;
}
}//package com.facebook.data.feed
Section 211
//GetRegisteredTemplateBundleByIDData (com.facebook.data.feed.GetRegisteredTemplateBundleByIDData)
package com.facebook.data.feed {
import com.facebook.data.*;
public class GetRegisteredTemplateBundleByIDData extends FacebookData {
public var templateCollection:TemplateCollection;
}
}//package com.facebook.data.feed
Section 212
//GetRegisteredTemplateBundleData (com.facebook.data.feed.GetRegisteredTemplateBundleData)
package com.facebook.data.feed {
import com.facebook.data.*;
public class GetRegisteredTemplateBundleData extends FacebookData {
public var bundleCollection:TemplateCollection;
}
}//package com.facebook.data.feed
Section 213
//StorySizeValues (com.facebook.data.feed.StorySizeValues)
package com.facebook.data.feed {
public class StorySizeValues {
public static const SHORT:uint = 2;
public static const ONE_LINE:uint = 1;
public static const FULL:uint = 4;
}
}//package com.facebook.data.feed
Section 214
//TemplateBundleCollection (com.facebook.data.feed.TemplateBundleCollection)
package com.facebook.data.feed {
import com.facebook.utils.*;
public class TemplateBundleCollection extends FacebookArrayCollection {
public function TemplateBundleCollection(){
super(null, TemplateData);
}
}
}//package com.facebook.data.feed
Section 215
//TemplateCollection (com.facebook.data.feed.TemplateCollection)
package com.facebook.data.feed {
import com.facebook.utils.*;
public class TemplateCollection extends FacebookArrayCollection {
public var template_bundle_id:Number;
public var time_created:Date;
public function TemplateCollection(){
super(null, TemplateData);
}
public function addTemplateData(_arg1:TemplateData):void{
this.addItem(_arg1);
}
}
}//package com.facebook.data.feed
Section 216
//TemplateData (com.facebook.data.feed.TemplateData)
package com.facebook.data.feed {
public class TemplateData {
public var template_title:String;
public var template_body:String;
public var type:String;
}
}//package com.facebook.data.feed
Section 217
//AreFriendsData (com.facebook.data.friends.AreFriendsData)
package com.facebook.data.friends {
import com.facebook.data.*;
public class AreFriendsData extends FacebookData {
public var friendsCollection:FriendsCollection;
}
}//package com.facebook.data.friends
Section 218
//FriendsCollection (com.facebook.data.friends.FriendsCollection)
package com.facebook.data.friends {
import com.facebook.utils.*;
public class FriendsCollection extends FacebookArrayCollection {
public function FriendsCollection(){
super(null, FriendsData);
}
}
}//package com.facebook.data.friends
Section 219
//FriendsData (com.facebook.data.friends.FriendsData)
package com.facebook.data.friends {
public class FriendsData {
public var uid1:Number;
public var uid2:Number;
public var are_friends:Boolean;
}
}//package com.facebook.data.friends
Section 220
//GetAppUserData (com.facebook.data.friends.GetAppUserData)
package com.facebook.data.friends {
import com.facebook.data.*;
public class GetAppUserData extends FacebookData {
public var uids:Array;
}
}//package com.facebook.data.friends
Section 221
//GetFriendsData (com.facebook.data.friends.GetFriendsData)
package com.facebook.data.friends {
import com.facebook.data.users.*;
import com.facebook.data.*;
public class GetFriendsData extends FacebookData {
public var friends:FacebookUserCollection;
}
}//package com.facebook.data.friends
Section 222
//GetListsData (com.facebook.data.friends.GetListsData)
package com.facebook.data.friends {
import com.facebook.data.*;
public class GetListsData extends FacebookData {
public var lists:Array;
}
}//package com.facebook.data.friends
Section 223
//GetLoggedInUserData (com.facebook.data.friends.GetLoggedInUserData)
package com.facebook.data.friends {
import com.facebook.data.*;
public class GetLoggedInUserData extends FacebookData {
public var loggedInUser:Number;
}
}//package com.facebook.data.friends
Section 224
//ListsData (com.facebook.data.friends.ListsData)
package com.facebook.data.friends {
public class ListsData {
public var flid:Number;
public var name:String;
}
}//package com.facebook.data.friends
Section 225
//GetGroupData (com.facebook.data.groups.GetGroupData)
package com.facebook.data.groups {
import com.facebook.data.*;
public class GetGroupData extends FacebookData {
public var groups:GroupCollection;
}
}//package com.facebook.data.groups
Section 226
//GetMemberData (com.facebook.data.groups.GetMemberData)
package com.facebook.data.groups {
import com.facebook.data.*;
public class GetMemberData extends FacebookData {
public var admins:Array;
public var notReplied:Array;
public var members:Array;
public var officers:Array;
}
}//package com.facebook.data.groups
Section 227
//GroupCollection (com.facebook.data.groups.GroupCollection)
package com.facebook.data.groups {
import com.facebook.utils.*;
public class GroupCollection extends FacebookArrayCollection {
public function GroupCollection(){
super(null, GroupData);
}
public function addGroup(_arg1:GroupData):void{
this.addItem(_arg1);
}
}
}//package com.facebook.data.groups
Section 228
//GroupData (com.facebook.data.groups.GroupData)
package com.facebook.data.groups {
import com.facebook.data.*;
public class GroupData {
public var group_subtype:String;
public var gid:String;
public var update_time:Date;
public var privacy:String;
public var nid:Number;
public var pic:String;
public var name:String;
public var pic_big:String;
public var website:String;
public var office:String;
public var pic_small:String;
public var creator:String;
public var venue:FacebookLocation;
public var recent_news:String;
public var group_type:String;
public var description:String;
}
}//package com.facebook.data.groups
Section 229
//GetNotesData (com.facebook.data.notes.GetNotesData)
package com.facebook.data.notes {
import com.facebook.data.*;
public class GetNotesData extends FacebookData {
public var notesCollection:NotesCollection;
}
}//package com.facebook.data.notes
Section 230
//NoteData (com.facebook.data.notes.NoteData)
package com.facebook.data.notes {
public class NoteData {
public var created_time:Date;
public var note_id:String;
public var updated_time:Date;
public var title:String;
public var content:String;
public var uid:String;
}
}//package com.facebook.data.notes
Section 231
//NotesCollection (com.facebook.data.notes.NotesCollection)
package com.facebook.data.notes {
import com.facebook.utils.*;
public class NotesCollection extends FacebookArrayCollection {
public function NotesCollection(){
super(null, NoteData);
}
}
}//package com.facebook.data.notes
Section 232
//GetNotificationData (com.facebook.data.notifications.GetNotificationData)
package com.facebook.data.notifications {
import com.facebook.data.*;
public class GetNotificationData extends FacebookData {
public var notificationCollection:NotificationCollection;
public var event_invites:Array;
public var friendsRequests:Array;
public var group_invites:Array;
}
}//package com.facebook.data.notifications
Section 233
//GetNotificationValue (com.facebook.data.notifications.GetNotificationValue)
package com.facebook.data.notifications {
public class GetNotificationValue {
public static const APP_TO_USER:String = "app_to_user";
public static const USER_TO_USER:String = "user_to_user";
}
}//package com.facebook.data.notifications
Section 234
//NotificationCollection (com.facebook.data.notifications.NotificationCollection)
package com.facebook.data.notifications {
import com.facebook.utils.*;
public class NotificationCollection extends FacebookArrayCollection {
public function NotificationCollection(){
super(null, null);
}
}
}//package com.facebook.data.notifications
Section 235
//NotificationMessageData (com.facebook.data.notifications.NotificationMessageData)
package com.facebook.data.notifications {
public class NotificationMessageData {
public var most_recent:Number;
public var unread:Number;
}
}//package com.facebook.data.notifications
Section 236
//NotificationPokeData (com.facebook.data.notifications.NotificationPokeData)
package com.facebook.data.notifications {
public class NotificationPokeData {
public var most_recent:Number;
public var unread:Number;
}
}//package com.facebook.data.notifications
Section 237
//NotificationShareData (com.facebook.data.notifications.NotificationShareData)
package com.facebook.data.notifications {
public class NotificationShareData {
public var most_recent:Number;
public var unread:Number;
}
}//package com.facebook.data.notifications
Section 238
//GenreData (com.facebook.data.pages.GenreData)
package com.facebook.data.pages {
public class GenreData {
public var party:Boolean;
public var talk:Boolean;
public var raunchy:Boolean;
public var sing:Boolean;
public var relax:Boolean;
public var think:Boolean;
public var dance:Boolean;
public var headphones:Boolean;
public var workout:Boolean;
public var intimate:Boolean;
}
}//package com.facebook.data.pages
Section 239
//GetPageInfoData (com.facebook.data.pages.GetPageInfoData)
package com.facebook.data.pages {
import com.facebook.data.*;
public class GetPageInfoData extends FacebookData {
public var pageInfoCollection:PageInfoCollection;
}
}//package com.facebook.data.pages
Section 240
//PageInfoCollection (com.facebook.data.pages.PageInfoCollection)
package com.facebook.data.pages {
import com.facebook.utils.*;
public class PageInfoCollection extends FacebookArrayCollection {
public function PageInfoCollection(){
super(null, PageInfoData);
}
public function addPageInfo(_arg1:PageInfoData):void{
this.addItem(_arg1);
}
}
}//package com.facebook.data.pages
Section 241
//PageInfoData (com.facebook.data.pages.PageInfoData)
package com.facebook.data.pages {
import flash.events.*;
import com.facebook.data.*;
public class PageInfoData extends EventDispatcher {
public var starring:String;
public var genre:String;
public var season:String;
public var bio:String;
public var name:String;
public var record_label:String;
public var band_members:String;
public var pic_small:String;
public var schedule:String;
public var website:String;
public var influences:String;
public var founded:String;
public var hours:String;
public var directed_by:String;
public var location:FacebookLocation;
public var mission:String;
public var type:String;
public var awards:String;
public var pic_large:String;
public var pic_big:String;
public var network:String;
public var page_id:Number;
public var studio:String;
public var release_date:String;
public var products:String;
public var hometown:String;
public var produced_by:String;
public var pic_square:String;
public var company_overview:String;
public var plot_outline:String;
public var has_added_app:Boolean;
public var written_by:String;
}
}//package com.facebook.data.pages
Section 242
//PageInfoFieldValues (com.facebook.data.pages.PageInfoFieldValues)
package com.facebook.data.pages {
public class PageInfoFieldValues {
public static var FOUNDED:String = "founded";
public static var SEASON:String = "season";
public static var PIC_LARGE:String = "pic_large";
public static var STARRING:String = "starring";
public static var PIC_BIG:String = "pic_big";
public static var RELEASE_DATE:String = "release_date";
public static var NETWORK:String = "network";
public static var PIC_SQUARE:String = "pic_square";
public static var SCHEDULE:String = "schedule";
public static var NAME:String = "name";
public static var COMPANY_OVERVIEW:String = "company_overview";
public static var INFLUENCES:String = "influences";
public static var WRITTEN_BY:String = "written_by";
public static var ALL_VALUES:Array = [PAGE_ID, NAME, PIC_SMALL, PIC_BIG, PIC_SQUARE, PIC_LARGE, TYPE, WEBSITE, LOCATION, HOURS, BAND_MEMBERS, BIO, HOMETOWN, GENRE, RECORD_LABEL, INFLUENCES, HAS_ADDED_APP, FOUNDED, COMPANY_OVERVIEW, MISSION, PRODUCTS, RELEASE_DATE, STARRING, WRITTEN_BY, DIRECTED_BY, PRODUCED_BY, STUDIO, AWARDS, PLOT_OUTLINE, NETWORK, SEASON, SCHEDULE];
public static var HAS_ADDED_APP:String = "has_added_app";
public static var DIRECTED_BY:String = "directed_by";
public static var LOCATION:String = "location";
public static var AWARDS:String = "awards";
public static var TYPE:String = "type";
public static var PLOT_OUTLINE:String = "plot_outline";
public static var PAGE_ID:String = "page_id";
public static var PIC_SMALL:String = "pic_small";
public static var STUDIO:String = "studio";
public static var GENRE:String = "genre";
public static var PRODUCTS:String = "products";
public static var RECORD_LABEL:String = "record_label";
public static var BIO:String = "bio";
public static var MISSION:String = "mission";
public static var BAND_MEMBERS:String = "band_members";
public static var HOMETOWN:String = "hometown";
public static var PRODUCED_BY:String = "produced_by";
public static var WEBSITE:String = "website";
public static var HOURS:String = "hours";
}
}//package com.facebook.data.pages
Section 243
//PageTypeValue (com.facebook.data.pages.PageTypeValue)
package com.facebook.data.pages {
public class PageTypeValue {
public static const RETAIL:String = "retail";
public static const HOME_LIVING:String = "home_living";
public static const TECHNOLOGY:String = "technology";
public static const CONVENTION_CENTERS_SPORTS_COMPLEXES:String = "convertion_centers_sports_complexes";
public static const MUSEUMS_ATTRACTIONS:String = "museums_attractions";
public static const POLITICIANS:String = "politicians";
public static const TELEVISION:String = "television";
public static const REAL_ESTATE:String = "real_estate";
public static const PUBLIC_FIGURES:String = "public_figures";
public static const BARS_CLUBS:String = "bars_clubs";
public static const TRAVEL:String = "travel";
public static const COMMUNITIES:String = "communities";
public static const MODEL:String = "model";
public static const GOVERNMENT_PUBLIC_SERVICES:String = "government_public_services";
public static const LOCAL_HOTELS_LODGING:String = "local_hotels_lodging";
public static const NONPROFIT:String = "nonprofit";
public static const LOCAL_STORES:String = "local_stores";
public static const ONLINE_STORES:String = "online_stores";
public static const APPLICATION:String = "application";
public static const WEBSITES:String = "websites";
public static const LOCAL_BUSINESS:String = "local_business";
public static const FOOD_BEVERAGE:String = "food_beverage";
public static const PUBLIC_FIGURES_OTHER:String = "public_figures_other";
public static const PLACES:String = "place";
public static const PRODUCTS_OTHER:String = "products_other";
public static const PETS:String = "pets";
public static const RENTAL_CARS:String = "rental_cars";
public static const RELIGIOUS_ORGANIZATIONS:String = "religious_organizations";
public static const COMMUNICATIONS:String = "communications";
public static const SERVICES:String = "services";
public static const ARTIST:String = "artist";
public static const PRODUCTS:String = "products";
public static const MUSICIANS:String = "musicians";
public static const MEDICAL_SERVICES:String = "medical_services";
public static const FINANCIAL_SERVICES:String = "financial_services";
public static const CLUBS:String = "clubs";
public static const PROFESSIONAL_SERVICES:String = "professional_services";
public static const WRITER:String = "writer";
public static const EVENT_PLANNING_SERVICES:String = "event_planning_services";
public static const PHARMA:String = "pharma";
public static const CRITIC:String = "critic";
public static const FILM:String = "film";
public static const COMEDIAN:String = "comedian";
public static const LOCAL_RELIGIOUS_CENTERS:String = "local_religious_centers";
public static const EDUCATION:String = "education";
public static const LOCAL_PROFESSIONAL_SERVICES:String = "local_professional_services";
public static const LOCAL_AUTOMOTIVE_DEALERS_VEHICLE_SERVICES:String = "local_automotive_dealers_vehicle_services";
public static const RESTAURANTS_CAFES:String = "resturants_cafes";
public static const SPORTS_ATHLETICS:String = "sports_athletics";
public static const CONSUMER_PRODUCTS:String = "consumer_producrs";
public static const CAFE:String = "cafe";
public static const FASHION:String = "fashion";
public static const GAMES:String = "games";
public static const ATHLETE:String = "athlete";
public static const PARKS:String = "parks";
public static const STORES:String = "stores";
public static const RESTAURANTS:String = "restaurants";
public static const HOME_SERVICES:String = "home_services";
public static const HEALTH_BEAUTY:String = "health_beauty";
public static const BARS:String = "bars";
public static const LOCAL_BANKING_FINANCIAL_SERVICES:String = "local_banking_financial_services";
public static const HOTELS_LODGING:String = "hotels_lodging";
public static const LIBRARIES_PUBLIC_BUILDINGS:String = "libraries_public_buildings";
public static const ACTOR:String = "actor";
public static const SPORTS_TEAMS:String = "sports_teams";
public static const LOCAL_TECHNOLOGY_TELECOMMUNICATIONS_SERVICES:String = "local_technology_telecommunications_services";
public static const GROCERY:String = "grocery";
public static const LOCAL_TRAVEL_SERVICES:String = "local_travel_services";
public static const AUTOMOTIVE:String = "automotive";
public static const AIRLINES_SHIPS_TRAIN:String = "airlines_ships_train";
}
}//package com.facebook.data.pages
Section 244
//AlbumCollection (com.facebook.data.photos.AlbumCollection)
package com.facebook.data.photos {
import com.facebook.utils.*;
public class AlbumCollection extends FacebookArrayCollection {
public function AlbumCollection(){
super(null, AlbumData);
}
public function addAlbum(_arg1:AlbumData):void{
this.addItem(_arg1);
}
}
}//package com.facebook.data.photos
Section 245
//AlbumData (com.facebook.data.photos.AlbumData)
package com.facebook.data.photos {
public class AlbumData {
public var size:Number;
public var cover_pid:String;
public var created:Date;
public var modified:Date;
public var name:String;
public var owner:String;
public var description:String;
public var location:String;
public var visible:String;
public var link:String;
public var aid:String;
}
}//package com.facebook.data.photos
Section 246
//FacebookPhoto (com.facebook.data.photos.FacebookPhoto)
package com.facebook.data.photos {
import com.facebook.data.*;
public class FacebookPhoto extends FacebookData {
public var src:String;
public var src_big:String;
public var pid:String;
public var src_small:String;
public var caption:String;
public var created:Date;
public var owner:Number;
public var tags:Array;
public var link:String;
public var aid:String;
public function FacebookPhoto(){
this.tags = [];
super();
}
}
}//package com.facebook.data.photos
Section 247
//GetAlbumsData (com.facebook.data.photos.GetAlbumsData)
package com.facebook.data.photos {
import com.facebook.data.*;
public class GetAlbumsData extends FacebookData {
public var albumCollection:AlbumCollection;
}
}//package com.facebook.data.photos
Section 248
//GetCreateAlbumData (com.facebook.data.photos.GetCreateAlbumData)
package com.facebook.data.photos {
import com.facebook.data.*;
public class GetCreateAlbumData extends FacebookData {
public var albumData:AlbumData;
}
}//package com.facebook.data.photos
Section 249
//GetPhotosData (com.facebook.data.photos.GetPhotosData)
package com.facebook.data.photos {
import com.facebook.data.*;
public class GetPhotosData extends FacebookData {
public var photoCollection:PhotoCollection;
}
}//package com.facebook.data.photos
Section 250
//GetTagsData (com.facebook.data.photos.GetTagsData)
package com.facebook.data.photos {
import com.facebook.data.*;
public class GetTagsData extends FacebookData {
public var photoTagsCollection:PhotoTagCollection;
}
}//package com.facebook.data.photos
Section 251
//PhotoCollection (com.facebook.data.photos.PhotoCollection)
package com.facebook.data.photos {
import com.facebook.utils.*;
public class PhotoCollection extends FacebookArrayCollection {
public function PhotoCollection(){
super(null, PhotoData);
}
public function addPhoto(_arg1:PhotoData):void{
this.addItem(_arg1);
}
}
}//package com.facebook.data.photos
Section 252
//PhotoData (com.facebook.data.photos.PhotoData)
package com.facebook.data.photos {
public class PhotoData {
public var src:String;
public var src_big:String;
public var pid:String;
public var src_small:String;
public var caption:String;
public var created:Date;
public var owner:String;
public var link:String;
public var aid:String;
}
}//package com.facebook.data.photos
Section 253
//PhotoTagCollection (com.facebook.data.photos.PhotoTagCollection)
package com.facebook.data.photos {
import com.facebook.utils.*;
public class PhotoTagCollection extends FacebookArrayCollection {
public function PhotoTagCollection(_arg1:Array=null){
super(null, TagData);
}
public function addPhotoTag(_arg1:TagData):void{
this.addItem(_arg1);
}
}
}//package com.facebook.data.photos
Section 254
//PhotoVisibleValue (com.facebook.data.photos.PhotoVisibleValue)
package com.facebook.data.photos {
public class PhotoVisibleValue {
public static const NETWORKS:String = "networks";
public static const FRIENDS_OF_FRIENDS:String = "friends-of-friends";
public static const EVERYONE:String = "everyone";
public static const FRIENDS:String = "friends";
}
}//package com.facebook.data.photos
Section 255
//TagData (com.facebook.data.photos.TagData)
package com.facebook.data.photos {
public class TagData {
protected var _actualText:String;
protected var _actualX:Number;
protected var _actualY:Number;
public var pid:String;
public var created:Date;
public var tag_uid:String;
public var subject:String;
public function set y(_arg1:Number):void{
this._actualY = _arg1;
}
public function set text(_arg1:String):void{
this._actualText = _arg1;
}
public function get ycoord():Number{
return (this._actualY);
}
public function set tag_text(_arg1:String):void{
this._actualText = _arg1;
}
public function get text():String{
return (this._actualText);
}
public function set x(_arg1:Number):void{
this._actualX = _arg1;
}
public function get tag_text():String{
return (this._actualText);
}
public function set ycoord(_arg1:Number):void{
this._actualY = _arg1;
}
public function get y():Number{
return (this._actualY);
}
public function set xcoord(_arg1:Number):void{
this._actualX = _arg1;
}
public function get xcoord():Number{
return (this._actualX);
}
public function get x():Number{
return (this._actualX);
}
}
}//package com.facebook.data.photos
Section 256
//GetInfoOptionsData (com.facebook.data.profile.GetInfoOptionsData)
package com.facebook.data.profile {
import com.facebook.data.*;
public class GetInfoOptionsData extends FacebookData {
public var infoItemCollection:InfoItemCollection;
}
}//package com.facebook.data.profile
Section 257
//InfoFieldsData (com.facebook.data.profile.InfoFieldsData)
package com.facebook.data.profile {
public class InfoFieldsData {
public var items:InfoItemCollection;
public var field:String;
}
}//package com.facebook.data.profile
Section 258
//InfoItemCollection (com.facebook.data.profile.InfoItemCollection)
package com.facebook.data.profile {
import com.facebook.utils.*;
public class InfoItemCollection extends FacebookArrayCollection {
public function InfoItemCollection(_arg1:Array=null){
super(null, InfoItemData);
}
public function addInfoItem(_arg1:InfoItemData):void{
this.addItem(_arg1);
}
}
}//package com.facebook.data.profile
Section 259
//InfoItemData (com.facebook.data.profile.InfoItemData)
package com.facebook.data.profile {
import com.facebook.*;
public class InfoItemData {
facebook_internal var schema:Array;
public var sublabel:String;
public var label:String;
public var link:String;
public var image:String;
public var description:String;
public function InfoItemData(){
facebook_internal::schema = ["label", "link", "image", "description", "sublabel"];
}
}
}//package com.facebook.data.profile
Section 260
//ProfileTypeValues (com.facebook.data.profile.ProfileTypeValues)
package com.facebook.data.profile {
public class ProfileTypeValues {
public static const ORIGINAL:uint = 1;
public static const PROFILE_MAIN:uint = 2;
}
}//package com.facebook.data.profile
Section 261
//SetInfoTypeValue (com.facebook.data.profile.SetInfoTypeValue)
package com.facebook.data.profile {
public class SetInfoTypeValue {
public static const THUMBNAIL:uint = 5;
public static const TEXT_ONLY:uint = 1;
}
}//package com.facebook.data.profile
Section 262
//GetStatusData (com.facebook.data.status.GetStatusData)
package com.facebook.data.status {
import com.facebook.data.*;
public class GetStatusData extends FacebookData {
public var status:Array;
}
}//package com.facebook.data.status
Section 263
//Status (com.facebook.data.status.Status)
package com.facebook.data.status {
public class Status {
public var uid:String;
public var status_id:String;
public var source:String;
public var time:Date;
public var message:String;
}
}//package com.facebook.data.status
Section 264
//AttachmentData (com.facebook.data.stream.AttachmentData)
package com.facebook.data.stream {
public class AttachmentData {
public var body:String;
public var href:String;
public var caption:String;
public var name:String;
public var text:String;
public var media:Array;
public var label:String;
public var properties:Array;
public var title:String;
public var icon:String;
public var description:String;
}
}//package com.facebook.data.stream
Section 265
//CommentsData (com.facebook.data.stream.CommentsData)
package com.facebook.data.stream {
public class CommentsData {
public var can_remove:Boolean;
public var can_post:Boolean;
public var posts:Array;
public var count:uint;
}
}//package com.facebook.data.stream
Section 266
//GetCommentsData (com.facebook.data.stream.GetCommentsData)
package com.facebook.data.stream {
import com.facebook.data.*;
public class GetCommentsData extends FacebookData {
public var comments:Array;
}
}//package com.facebook.data.stream
Section 267
//GetFiltersData (com.facebook.data.stream.GetFiltersData)
package com.facebook.data.stream {
import com.facebook.data.*;
public class GetFiltersData extends FacebookData {
public var filters:StreamFilterCollection;
}
}//package com.facebook.data.stream
Section 268
//GetStreamData (com.facebook.data.stream.GetStreamData)
package com.facebook.data.stream {
import com.facebook.data.*;
import com.facebook.data.photos.*;
public class GetStreamData extends FacebookData {
public var stories:StreamStoryCollection;
public var albums:AlbumCollection;
public var profiles:ProfileCollection;
}
}//package com.facebook.data.stream
Section 269
//LikesData (com.facebook.data.stream.LikesData)
package com.facebook.data.stream {
public class LikesData {
public var can_like:Boolean;
public var user_likes:Boolean;
public var sample:Array;
public var href:String;
public var count:uint;
public var friends:Array;
}
}//package com.facebook.data.stream
Section 270
//MediaTypes (com.facebook.data.stream.MediaTypes)
package com.facebook.data.stream {
public class MediaTypes {
public static const PHOTO:String = "photo";
public static const LINK:String = "link";
public static const VIDEO:String = "video";
}
}//package com.facebook.data.stream
Section 271
//PhotoMedia (com.facebook.data.stream.PhotoMedia)
package com.facebook.data.stream {
public class PhotoMedia {
public var index:uint;
public var owner:String;
public var pid:String;
public var aid:String;
}
}//package com.facebook.data.stream
Section 272
//PostCommentData (com.facebook.data.stream.PostCommentData)
package com.facebook.data.stream {
public class PostCommentData {
public var text:String;
public var fromid:String;
public var id:String;
public var time:Date;
}
}//package com.facebook.data.stream
Section 273
//ProfileCollection (com.facebook.data.stream.ProfileCollection)
package com.facebook.data.stream {
import com.facebook.utils.*;
public class ProfileCollection extends FacebookArrayCollection {
public function ProfileCollection(){
super(null, ProfileData);
}
}
}//package com.facebook.data.stream
Section 274
//ProfileData (com.facebook.data.stream.ProfileData)
package com.facebook.data.stream {
public class ProfileData {
public var id:String;
public var pic_square:String;
public var name:String;
public var url:String;
}
}//package com.facebook.data.stream
Section 275
//StoryType (com.facebook.data.stream.StoryType)
package com.facebook.data.stream {
public class StoryType {
public static const LINK:uint = 12;
public static const FLICKR:uint = 7;
public static const JOINED:uint = 9;
public static const NOTE:uint = 15;
public static const YOU_TUBE:uint = 22;
public static const RELATIONSHIP:uint = 19;
public static const CONNECT_SHARE:uint = 237;
public static const PHOTO:uint = 247;
public static const FAN_PAGE:uint = 6;
public static const LIKES:uint = 11;
public static const CHANGED_PROFILE:uint = 2;
public static const GROUP:uint = 8;
public static const POST:uint = 17;
public static const LIKES_POST:uint = 10;
public static const TAG:uint = 20;
public static const MOBILE:uint = 14;
public static const VIDEO:uint = 128;
public static const POST_NOTE:uint = 80;
public static const FAN:uint = 5;
public static const NO_ICON:uint = 56;
public static const ABSENT:uint = 46;
public static const EVENT:uint = 4;
public static const COMMENT:uint = 3;
}
}//package com.facebook.data.stream
Section 276
//StreamFilterCollection (com.facebook.data.stream.StreamFilterCollection)
package com.facebook.data.stream {
import com.facebook.utils.*;
public class StreamFilterCollection extends FacebookArrayCollection {
public function StreamFilterCollection(){
super(null, StreamFilterData);
}
}
}//package com.facebook.data.stream
Section 277
//StreamFilterData (com.facebook.data.stream.StreamFilterData)
package com.facebook.data.stream {
public class StreamFilterData {
public var type:String;
public var icon_url:String;
public var name:String;
public var rank:uint;
public var uid:String;
public var value:String;
public var filter_key:String;
public var is_visible:Boolean;
}
}//package com.facebook.data.stream
Section 278
//StreamMediaData (com.facebook.data.stream.StreamMediaData)
package com.facebook.data.stream {
public class StreamMediaData {
public var src:String;
public var alt:String;
public var href:String;
public var photo:PhotoMedia;
public var type:String;
public var video:VideoMedia;
public function toString():String{
return ([("type: " + this.type), ("href: " + this.href), ("src: " + this.src), ("alt: " + this.alt), ("photo: " + this.photo), ("video: " + this.video)].join(": "));
}
}
}//package com.facebook.data.stream
Section 279
//StreamStoryCollection (com.facebook.data.stream.StreamStoryCollection)
package com.facebook.data.stream {
import com.facebook.utils.*;
public class StreamStoryCollection extends FacebookArrayCollection {
public function StreamStoryCollection(){
super(null, StreamStoryData);
}
}
}//package com.facebook.data.stream
Section 280
//StreamStoryData (com.facebook.data.stream.StreamStoryData)
package com.facebook.data.stream {
public class StreamStoryData {
public var comments:CommentsData;
public var created_time:Date;
public var message:String;
public var target_id:String;
public var sourceXML:XML;
public var privacy:String;
public var updated_time:Date;
public var source_id:String;
public var filter_key:String;
public var post_id:String;
public var attachment:AttachmentData;
public var actor_id:String;
public var viewer_id:String;
public var metadata:Object;
public var app_id:String;
public var type:uint;
public var likes:LikesData;
public var attribution:String;
}
}//package com.facebook.data.stream
Section 281
//VideoMedia (com.facebook.data.stream.VideoMedia)
package com.facebook.data.stream {
public class VideoMedia {
public var display_url:String;
public var owner:String;
public var permalink:String;
public var source_url:String;
public var preview_img:String;
}
}//package com.facebook.data.stream
Section 282
//AffiliationCollection (com.facebook.data.users.AffiliationCollection)
package com.facebook.data.users {
import com.facebook.utils.*;
public class AffiliationCollection extends FacebookArrayCollection {
public function AffiliationCollection(){
super(null, AffiliationData);
}
public function addAffiliation(_arg1:AffiliationData):void{
this.addItem(_arg1);
}
}
}//package com.facebook.data.users
Section 283
//AffiliationData (com.facebook.data.users.AffiliationData)
package com.facebook.data.users {
public class AffiliationData {
public var status:String;
public var nid:Number;
public var type:String;
public var name:String;
public var year:String;
}
}//package com.facebook.data.users
Section 284
//FacebookUser (com.facebook.data.users.FacebookUser)
package com.facebook.data.users {
import com.facebook.data.*;
public class FacebookUser extends FacebookData {
public var status:StatusData;
public var has_added_app:Boolean;
public var pic_with_logo:String;
public var pic_big_with_logo:String;
public var notes_count:int;
public var pic_small:String;
public var political:String;
public var music:String;
public var religion:String;
public var significant_other_id:int;
public var email_hashes:Array;
public var movies:String;
public var uid:String;
public var hometown_location:FacebookLocation;
public var wall_count:int;
public var hs2_name:String;
public var proxied_email:String;
public var sex:String;
public var hs_info:String;
public var work_history:Array;
public var meeting_sex:Array;
public var pic_square:String;
public var quotes:String;
public var hs1_id:int;
public var locale:String;
public var birthday:String;
public var tv:String;
public var affiliations:Array;
public var interests:String;
public var pic:String;
public var name:String;// = ""
public var grad_year:String;
public var about_me:String;
public var last_name:String;// = ""
public var pic_small_with_logo:String;
public var is_app_user:Boolean;
public var hs1_name:String;
public var books:String;
public var first_name:String;// = ""
public var current_location:FacebookLocation;
public var meeting_for:Array;
public var birthdayDate:Date;
public var networkAffiliations:Array;
public var pic_big:String;
public var relationship_status:String;
public var hs2_id:int;
public var profile_url:String;
public var profile_update_time:Date;
public var activities:String;
public var pic_square_with_logo:String;
public var timezone:int;
public var isLoggedInUser:Boolean;
public var education_history:Array;
public function FacebookUser():void{
}
}
}//package com.facebook.data.users
Section 285
//FacebookUserCollection (com.facebook.data.users.FacebookUserCollection)
package com.facebook.data.users {
import com.facebook.utils.*;
public class FacebookUserCollection extends FacebookArrayCollection {
public function FacebookUserCollection(){
super(null, FacebookUser);
}
public function getUserById(_arg1:int):FacebookUser{
return ((findItemByProperty("uid", _arg1) as FacebookUser));
}
public function addUser(_arg1:FacebookUser):void{
addItem(_arg1);
}
}
}//package com.facebook.data.users
Section 286
//FriendsGetData (com.facebook.data.users.FriendsGetData)
package com.facebook.data.users {
import com.facebook.data.*;
public class FriendsGetData extends FacebookData {
}
}//package com.facebook.data.users
Section 287
//GetInfoData (com.facebook.data.users.GetInfoData)
package com.facebook.data.users {
import com.facebook.data.*;
public class GetInfoData extends FacebookData {
public var userCollection:FacebookUserCollection;
}
}//package com.facebook.data.users
Section 288
//GetInfoFieldValues (com.facebook.data.users.GetInfoFieldValues)
package com.facebook.data.users {
public class GetInfoFieldValues {
public static const TIMEZONE:String = "timezone";
public static const TV:String = "tv";
public static const AFFILIATIONS:String = "affiliations";
public static const MEETING_FOR:String = "meeting_for";
public static const BOOKS:String = "books";
public static const PIC_BIG:String = "pic_big";
public static const MUSIC:String = "music";
public static const NAME:String = "name";
public static const PIC_SQUARE_WITH_LOGO:String = "pic_square_with_logo";
public static const LAST_NAME:String = "last_name";
public static const PIC_SQUARE:String = "pic_square";
public static const HAS_ADDED_APP:String = "has_added_app";
public static const ALL_VALUES:Array = [ABOUT_ME, ACTIVITIES, AFFILIATIONS, BIRTHDAY, BOOKS, CURRENT_LOCATION, EDUCATION_HISTORY, EMAIL_HASHES, FIRST_NAME, HAS_ADDED_APP, HOMETOWN_LOCATION, HS_INFO, INTERESTS, IS_APP_USER, LAST_NAME, LOCALE, MEETING_FOR, MEETING_SEX, MOVIES, MUSIC, NAME, NOTES_COUNT, PIC, PIC_WITH_LOGO, PIC_BIG, PIC_BIG_WITH_LOGO, PIC_SMALL, PIC_SMALL_WITH_LOGO, PIC_SQUARE, PIC_SQUARE_WITH_LOGO, POLITICAL, PROFILE_UPDATE_TIME, PROFILE_URL, PROXIED_EMAIL, QUOTES, RELATIONSHIP_STATUS, RELIGION, SEX, SIGNIFICANT_OTHER_ID, STATUS, TIMEZONE, TV, WALL_COUNT, WORK_HISTORY];
public static const ABOUT_ME:String = "about_me";
public static const MEETING_SEX:String = "meeting_sex";
public static const RELIGION:String = "religion";
public static const PROXIED_EMAIL:String = "proxied_email";
public static const EDUCATION_HISTORY:String = "education_history";
public static const IS_APP_USER:String = "is_app_user";
public static const HOMETOWN_LOCATION:String = "hometown_location";
public static const PROFILE_URL:String = "profile_url";
public static const WALL_COUNT:String = "wall_count";
public static const MOVIES:String = "movies";
public static const PROFILE_UPDATE_TIME:String = "profile_update_time";
public static const PIC_BIG_WITH_LOGO:String = "pic_big_with_logo";
public static const NOTES_COUNT:String = "notes_count";
public static const SEX:String = "sex";
public static const PIC_SMALL_WITH_LOGO:String = "pic_small_with_logo";
public static const NO_SESSION_VALUES:Array = [FIRST_NAME, LAST_NAME, NAME, LOCALE, AFFILIATIONS, PIC_SQUARE, PROFILE_URL];
public static const PIC_SMALL:String = "pic_small";
public static const FIRST_NAME:String = "first_name";
public static const CURRENT_LOCATION:String = "current_location";
public static const POLITICAL:String = "political";
public static const EMAIL_HASHES:String = "email_hashes";
public static const RELATIONSHIP_STATUS:String = "relationship_status";
public static const HS_INFO:String = "hs_info";
public static const WORK_HISTORY:String = "work_history";
public static const INTERESTS:String = "interests";
public static const PIC:String = "pic";
public static const ACTIVITIES:String = "activities";
public static const PIC_WITH_LOGO:String = "pic_with_logo";
public static const LOCALE:String = "locale";
public static const SIGNIFICANT_OTHER_ID:String = "significant_other_id";
public static const QUOTES:String = "quotes";
public static const STATUS:String = "status";
public static const BIRTHDAY:String = "birthday";
}
}//package com.facebook.data.users
Section 289
//GetStandardInfoData (com.facebook.data.users.GetStandardInfoData)
package com.facebook.data.users {
import com.facebook.data.*;
public class GetStandardInfoData extends FacebookData {
public var userCollection:UserCollection;
}
}//package com.facebook.data.users
Section 290
//HasAppPermissionValues (com.facebook.data.users.HasAppPermissionValues)
package com.facebook.data.users {
public class HasAppPermissionValues {
public static const CREATE_LISTING:String = "create_listing";
public static const EMAIL:String = "email";
public static const OFFLINE_ACCESS:String = "offline_access";
public static const PHOTO_UPLOAD:String = "photo_upload";
public static const PUBLISH_STREAM:String = "publish_stream";
public static const STATUS_UPDATE:String = "status_update";
public static const CREATE_EVENT:String = "create_event";
public static const SMS:String = "sms";
public static const SHARE_ITEM:String = "share_item";
public static const RSVP_EVENT:String = "rsvp_event";
}
}//package com.facebook.data.users
Section 291
//StatusData (com.facebook.data.users.StatusData)
package com.facebook.data.users {
public class StatusData {
public var time:Date;
public var message:String;
}
}//package com.facebook.data.users
Section 292
//UserCollection (com.facebook.data.users.UserCollection)
package com.facebook.data.users {
import com.facebook.utils.*;
public class UserCollection extends FacebookArrayCollection {
public function UserCollection(_arg1:Array=null){
super(null, UserData);
}
}
}//package com.facebook.data.users
Section 293
//UserData (com.facebook.data.users.UserData)
package com.facebook.data.users {
public class UserData {
public var affiations:AffiliationCollection;
public var name:String;
public var uid:String;
public var timezone:Number;
public var first_name:String;
public var last_name:String;
public function toString():String{
return ((((((((((((("[ UserData uid: " + this.uid) + " affiation:") + this.affiations) + " first_name:") + this.first_name) + " last_name:") + this.last_name) + " name:") + this.name) + " timezone: ") + this.timezone) + "]"));
}
}
}//package com.facebook.data.users
Section 294
//ArrayResultData (com.facebook.data.ArrayResultData)
package com.facebook.data {
public class ArrayResultData extends FacebookData {
public var arrayResult:Array;
}
}//package com.facebook.data
Section 295
//BooleanResultData (com.facebook.data.BooleanResultData)
package com.facebook.data {
public class BooleanResultData extends FacebookData {
public var value:Boolean;
}
}//package com.facebook.data
Section 296
//FacebookData (com.facebook.data.FacebookData)
package com.facebook.data {
import flash.events.*;
public class FacebookData extends EventDispatcher {
public var rawResult:String;
}
}//package com.facebook.data
Section 297
//FacebookEducationInfo (com.facebook.data.FacebookEducationInfo)
package com.facebook.data {
public class FacebookEducationInfo {
public var concentrations:Array;
public var name:String;
public var degree:String;
public var year:String;
public function FacebookEducationInfo(){
this.concentrations = [];
}
}
}//package com.facebook.data
Section 298
//FacebookErrorCodes (com.facebook.data.FacebookErrorCodes)
package com.facebook.data {
public class FacebookErrorCodes {
public static const API_EC_VERSION:Number = 12;
public static const API_EC_PERMISSION_DENIED:Number = 10;
public static const API_EC_HOST_UP:Number = 7;
public static const API_EC_SERVICE:Number = 2;
public static const API_EC_RATE:Number = 9;
public static const API_EC_METHOD:Number = 3;
public static const API_EC_HOST_API:Number = 6;
public static const API_EC_SUCCESS:Number = 0;
public static const SERVER_ERROR:Number = -1;
public static const API_EC_UNKNOWN:Number = 1;
public static const API_EC_DEPRECATED:Number = 11;
public static const API_EC_SECURE:Number = 8;
public static const API_EC_TOO_MANY_CALLS:Number = 4;
public static const API_EC_BAD_IP:Number = 5;
}
}//package com.facebook.data
Section 299
//FacebookErrorReason (com.facebook.data.FacebookErrorReason)
package com.facebook.data {
public class FacebookErrorReason {
public static const CONNECT_TIMEOUT:String = "connectTimeout";
public static const LOAD_TIMEOUT:String = "loadTimeout";
}
}//package com.facebook.data
Section 300
//FacebookLocation (com.facebook.data.FacebookLocation)
package com.facebook.data {
public class FacebookLocation extends FacebookData {
public var state:String;
public var street:String;
public var country:String;
public var zip:String;
public var city:String;
}
}//package com.facebook.data
Section 301
//FacebookNetwork (com.facebook.data.FacebookNetwork)
package com.facebook.data {
public class FacebookNetwork {
public var status:String;
public var nid:int;
public var type:String;
public var name:String;
public var year:String;
}
}//package com.facebook.data
Section 302
//FacebookWorkInfo (com.facebook.data.FacebookWorkInfo)
package com.facebook.data {
public class FacebookWorkInfo {
public var position:String;
public var start_date:Date;
public var company_name:String;
public var location:FacebookLocation;
public var end_date:Date;
public var description:String;
}
}//package com.facebook.data
Section 303
//FBJSData (com.facebook.data.FBJSData)
package com.facebook.data {
public class FBJSData extends FacebookData {
public var results:Array;
}
}//package com.facebook.data
Section 304
//InternalErrorMessages (com.facebook.data.InternalErrorMessages)
package com.facebook.data {
public class InternalErrorMessages {
public static var DATA_INVALID_NAME_ERROR:String = "";
public static var USER_PREFERENCE_ID_RANGE_ERROR:String = "pref_id must be less then 200.";
public static var USER_PREFERENCE_VALUE_RANGE_ERROR:String = "";
public static var BATCH_RUN_RANGE_ERROR:String = "";
}
}//package com.facebook.data
Section 305
//JSONResultData (com.facebook.data.JSONResultData)
package com.facebook.data {
public class JSONResultData extends FacebookData {
public var result:Object;
}
}//package com.facebook.data
Section 306
//NumberResultData (com.facebook.data.NumberResultData)
package com.facebook.data {
public class NumberResultData extends FacebookData {
public var value:Number;
}
}//package com.facebook.data
Section 307
//StringResultData (com.facebook.data.StringResultData)
package com.facebook.data {
public class StringResultData extends FacebookData {
public var value:String;
}
}//package com.facebook.data
Section 308
//XMLDataParser (com.facebook.data.XMLDataParser)
package com.facebook.data {
import flash.events.*;
import com.facebook.data.users.*;
import com.facebook.data.fbml.*;
import com.adobe.serialization.json.*;
import com.facebook.errors.*;
import com.facebook.data.photos.*;
import com.facebook.utils.*;
import com.facebook.data.status.*;
import com.facebook.data.data.*;
import com.facebook.data.notes.*;
import com.facebook.commands.data.*;
import com.facebook.data.application.*;
import com.facebook.data.feed.*;
import com.facebook.data.admin.*;
import com.facebook.data.events.*;
import com.facebook.data.friends.*;
import com.facebook.data.pages.*;
import com.facebook.data.notifications.*;
import com.facebook.data.groups.*;
import com.facebook.data.batch.*;
import com.facebook.data.auth.*;
public class XMLDataParser implements IFacebookResultParser {
protected var fb_namespace:Namespace;
public function XMLDataParser(){
this.fb_namespace = new Namespace("http://api.facebook.com/1.0/");
}
protected function parseSendEmail(_arg1:XML):ArrayResultData{
var _local2:ArrayResultData = new ArrayResultData();
_local2.arrayResult = FacebookXMLParserUtils.toArray(_arg1);
return (_local2);
}
protected function parseGetPhotos(_arg1:XML):GetPhotosData{
var _local4:*;
var _local5:PhotoData;
var _local2:GetPhotosData = new GetPhotosData();
var _local3:PhotoCollection = new PhotoCollection();
for each (_local4 in _arg1..this.fb_namespace::photo) {
_local5 = new PhotoData();
_local5.pid = _local4.this.fb_namespace::pid;
_local5.aid = _local4.this.fb_namespace::aid;
_local5.owner = _local4.this.fb_namespace::owner;
_local5.src = _local4.this.fb_namespace::src;
_local5.src_big = _local4.this.fb_namespace::src_big;
_local5.src_small = _local4.this.fb_namespace::src_small;
_local5.caption = _local4.this.fb_namespace::caption;
_local5.created = FacebookXMLParserUtils.toDate(_local4.this.fb_namespace::created);
_local3.addPhoto(_local5);
};
_local2.photoCollection = _local3;
return (_local2);
}
protected function parseGetNotifications(_arg1:XML):GetNotificationData{
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:NotificationMessageData;
var _local8:NotificationPokeData;
var _local9:NotificationShareData;
var _local2:GetNotificationData = new GetNotificationData();
var _local3:NotificationCollection = new NotificationCollection();
for each (_local4 in _arg1.this.fb_namespace::messages) {
_local7 = new NotificationMessageData();
_local7.unread = _local4.this.fb_namespace::unread;
_local7.most_recent = _local4.this.fb_namespace::most_recent;
_local3.addItem(_local7);
};
for each (_local5 in _arg1.this.fb_namespace::pokes) {
_local8 = new NotificationPokeData();
_local8.unread = _local5.this.fb_namespace::unread;
_local8.most_recent = _local5.this.fb_namespace::most_recent;
_local3.addItem(_local8);
};
for each (_local6 in _arg1.this.fb_namespace::shares) {
_local9 = new NotificationShareData();
_local9.unread = _local6.this.fb_namespace::unread;
_local9.most_recent = _local6.this.fb_namespace::most_recent;
_local3.addItem(_local9);
};
_local2.friendsRequests = FacebookXMLParserUtils.toUIDArray(_arg1.this.fb_namespace::friend_requests[0]);
_local2.group_invites = FacebookXMLParserUtils.toUIDArray(_arg1.this.fb_namespace::group_invites[0]);
_local2.event_invites = FacebookXMLParserUtils.toUIDArray(_arg1.this.fb_namespace::event_invites[0]);
_local2.notificationCollection = _local3;
return (_local2);
}
public function createFacebookError(_arg1:Object, _arg2:String):FacebookError{
var _local3:FacebookError = new FacebookError();
_local3.rawResult = _arg2;
_local3.errorCode = FacebookErrorCodes.SERVER_ERROR;
if ((_arg1 is Error)){
_local3.error = (_arg1 as Error);
} else {
_local3.errorEvent = (_arg1 as ErrorEvent);
};
return (_local3);
}
protected function getAffiliation(_arg1:XML):AffiliationCollection{
var _local3:*;
var _local4:AffiliationData;
var _local2:AffiliationCollection = new AffiliationCollection();
for each (_local3 in _arg1..this.fb_namespace::afflication) {
_local4 = new AffiliationData();
_local4.nid = _local3.this.fb_namespace::nid;
_local4.name = _local3.this.fb_namespace::name;
_local4.type = _local3.this.fb_namespace::type;
_local4.status = _local3.this.fb_namespace::status;
_local4.year = _local3.this.fb_namespace::year;
_local2.addAffiliation(_local4);
};
return (_local2);
}
protected function parseGetUserPreferences(_arg1:XML):GetUserPreferencesData{
var _local4:*;
var _local5:PreferenceData;
var _local2:GetUserPreferencesData = new GetUserPreferencesData();
var _local3:PreferenceCollection = new PreferenceCollection();
for each (_local4 in _arg1..this.fb_namespace::preference) {
_local5 = new PreferenceData();
_local5.pref_id = _local4.this.fb_namespace::pref_id;
_local5.value = _local4.this.fb_namespace::value;
_local3.addItem(_local5);
};
_local2.perferenceCollection = _local3;
return (_local2);
}
public function parse(_arg1:String, _arg2:String):FacebookData{
var _local3:FacebookData;
var _local4:XML = new XML(_arg1);
switch (_arg2){
case "application.getPublicInfo":
_local3 = this.parseGetPublicInfo(_local4);
break;
case "data.getCookies":
_local3 = this.parseGetCookies(_local4);
break;
case "admin.getAllocation":
_local3 = this.parseGetAllocation(_local4);
break;
case "admin.getAppProperties":
_local3 = this.parseGetAppProperties(_local4);
break;
case "admin.getMetrics":
_local3 = this.parseGetMetrics(_local4);
break;
case "auth.getSession":
_local3 = new GetSessionData();
(_local3 as GetSessionData).expires = FacebookXMLParserUtils.toDate(_local4.this.fb_namespace::expires);
(_local3 as GetSessionData).uid = FacebookXMLParserUtils.toStringValue(_local4.this.fb_namespace::uid[0]);
(_local3 as GetSessionData).session_key = _local4.this.fb_namespace::session_key.toString();
(_local3 as GetSessionData).secret = String(_local4.this.fb_namespace::secret);
break;
case "feed.getRegisteredTemplateBundles":
_local3 = this.parseGetRegisteredTemplateBundles(_local4);
break;
case "friends.areFriends":
_local3 = this.parseAreFriends(_local4);
break;
case "notes.get":
_local3 = this.parseGetNotes(_local4);
break;
case "friends.get":
_local3 = this.parseGetFriends(_local4);
break;
case "friends.getAppUsers":
_local3 = this.parseGetAppUsersData(_local4);
break;
case "friends.getLists":
_local3 = this.parseGetLists(_local4);
break;
case "groups.get":
_local3 = this.parseGetGroups(_local4);
break;
case "data.getAssociationDefinitions":
_local3 = new FacebookData();
break;
case "data.getAssociationDefinition":
_local3 = new FacebookData();
break;
case "data.getObject":
case "data.getObjects":
_local3 = new FacebookData();
break;
case "groups.getMembers":
_local3 = this.parseGetGroupMembers(_local4);
break;
case "users.getInfo":
_local3 = this.parseGetInfo(_local4);
break;
case "data.createObject":
case "data.setHashValue":
case "connect.getUnconnectedFriendsCount":
case "feed.registerTemplateBundle":
_local3 = new NumberResultData();
(_local3 as NumberResultData).value = FacebookXMLParserUtils.toNumber(_local4);
break;
case "notifications.get":
_local3 = this.parseGetNotifications(_local4);
break;
case "feed.getRegisteredTemplateBundleByID":
_local3 = this.parseGetRegisteredTemplateBundleByID(_local4);
break;
case "users.getStandardInfo":
_local3 = this.parseGetStandardInfo(_local4);
break;
case "feed.getRegisteredTemplateBundles":
_local3 = this.parseGetRegisteredTemplateBundles(_local4);
break;
case "data.getUserPreferences":
_local3 = this.parseGetUserPreferences(_local4);
break;
case "users.isAppUser":
case "users.hasAppPermission":
case "users.setStatus":
case "pages.isFan":
case "pages.isAppAdded":
case "pages.isAdmin":
case "admin.setAppProperties":
case "auth.expireSession":
case "auth.revokeAuthorization":
case "events.cancel":
case "events.edit":
case "events.rsvp":
case "liveMessage.send":
case "data.undefineAssociation":
case "data.defineAssociation":
case "data.removeHashKeys":
case "data.removeHashKey":
case "data.incHashValue":
case "data.updateObject":
case "data.deleteObject":
case "data.deleteObjects":
case "data.renameAssociation":
case "data.setObjectProperty":
case "profile.setInfo":
case "profile.setInfoOptions":
case "feed.deactivateTemplateBundleByID":
case "feed.publishTemplatizedAction":
case "admin.setRestrictionInfo":
case "data.setCookie":
case "data.createObjectType":
case "notes.delete":
case "notes.edit":
case "data.setUserPreference":
case "data.dropObjectType":
case "data.renameObjectType":
case "fbml.registerCustomTags":
case "fbml.deleteCustomTags":
case "fbml.refreshRefUrl":
case "fbml.refreshImgSrc":
case "fbml.setRefHandle":
case "data.setUserPreferences":
case "data.defineObjectProperty":
case "photos.addTag":
case "stream.addLike":
case "stream.removeLike":
case "stream.removeComment":
case "sms.canSend":
_local3 = new BooleanResultData();
(_local3 as BooleanResultData).value = FacebookXMLParserUtils.toBoolean(_local4);
break;
case "feed.publishUserAction":
_local3 = new BooleanResultData();
(_local3 as BooleanResultData).value = FacebookXMLParserUtils.toBoolean(_local4.children()[0]);
break;
case "notifications.sendEmail":
_local3 = this.parseSendEmail(_local4);
break;
case "data.getObjectTypes":
_local3 = this.parseGetObjectTypes(_local4);
break;
case "users.getStandardInfo":
_local3 = this.parseGetStandardInfo(_local4);
break;
case "data.getObjectType":
_local3 = this.parseGetObjectType(_local4);
break;
case "events.get":
_local3 = this.parseGetEvent(_local4);
break;
case "events.getMembers":
_local3 = this.parseGetMembers(_local4);
break;
case "fql.query":
_local3 = new FacebookData();
break;
case "photos.createAlbum":
_local3 = this.parseCreateAlbum(_local4);
break;
case "photos.get":
_local3 = this.parseGetPhotos(_local4);
break;
case "photos.getTags":
_local3 = this.parseGetTags(_local4);
break;
case "photos.getAlbums":
_local3 = this.parseGetAlbums(_local4);
break;
case "photos.upload":
_local3 = this.parseFacebookPhoto(_local4);
break;
case "pages.getInfo":
_local3 = this.parsePageGetInfo(_local4);
break;
case "batch.run":
_local3 = this.parseBatchRun(_local4);
break;
case "fbml.getCustomTags":
_local3 = this.parseGetCustomTags(_local4);
break;
case "connect.unregisterUsers":
case "connect.registerUsers":
_local3 = new ArrayResultData();
(_local3 as ArrayResultData).arrayResult = FacebookXMLParserUtils.toArray(_local4);
break;
case "status.get":
_local3 = this.parseGetStatus(_local4);
break;
case "stream.get":
_local3 = FacebookStreamXMLParser.createStream(_local4, this.fb_namespace);
break;
case "stream.getComments":
_local3 = FacebookStreamXMLParser.createGetCommentsData(_local4, this.fb_namespace);
break;
case "stream.getFilters":
_local3 = FacebookStreamXMLParser.createStreamFilterCollection(_local4, this.fb_namespace);
break;
case "auth.createToken":
case "events.create":
case "links.post":
case "auth.promoteSession":
case "admin.getRestrictionInfo":
case "data.getObjectProperty":
case "notifications.send":
case "notes.create":
case "data.getUserPreference":
case "profile.setFBML":
case "users.getLoggedInUser":
case "stream.addComment":
default:
_local3 = new StringResultData();
(_local3 as StringResultData).value = FacebookXMLParserUtils.toStringValue(_local4);
break;
};
_local3.rawResult = _arg1;
return (_local3);
}
protected function parseGetStandardInfo(_arg1:XML):GetStandardInfoData{
var _local4:*;
var _local5:UserData;
var _local2:GetStandardInfoData = new GetStandardInfoData();
var _local3:UserCollection = new UserCollection();
for each (_local4 in _arg1..this.fb_namespace::user) {
_local5 = new UserData();
_local5.uid = _local4.this.fb_namespace::uid;
_local5.affiations = this.getAffiliation(_local4.this.fb_namespace::affiliations);
_local5.first_name = _local4.this.fb_namespace::first_name;
_local5.last_name = _local4.this.fb_namespace::last_name;
_local5.name = _local4.this.fb_namespace::name;
_local5.timezone = _local4.this.fb_namespace::timezone;
_local3.addItem(_local5);
};
_local2.userCollection = _local3;
return (_local2);
}
protected function parseGetAppProperties(_arg1:XML):GetAppPropertiesData{
var _local2:GetAppPropertiesData = new GetAppPropertiesData();
_local2.appProperties = JSON.decode(_arg1.toString());
return (_local2);
}
protected function parseGetRegisteredTemplateBundles(_arg1:XML):GetRegisteredTemplateBundleData{
var _local5:*;
var _local2:GetRegisteredTemplateBundleData = new GetRegisteredTemplateBundleData();
var _local3:TemplateBundleCollection = new TemplateBundleCollection();
var _local4:TemplateCollection = new TemplateCollection();
for each (_local5 in _arg1..this.fb_namespace::template_bundle) {
this.getTemplate(_local5.this.fb_namespace::one_line_story_template, _local4);
this.getTemplate(_local5.this.fb_namespace::short_story_templates, _local4);
this.getTemplate(_local5.this.fb_namespace::full_story_template, _local4);
_local4.template_bundle_id = _local5.this.fb_namespace::template_bundle_id;
_local4.time_created = FacebookXMLParserUtils.toDate(_local5.this.fb_namespace::time_created);
};
_local2.bundleCollection = _local4;
return (_local2);
}
protected function parseGetRegisteredTemplateBundleByID(_arg1:XML):GetRegisteredTemplateBundleByIDData{
var _local2:GetRegisteredTemplateBundleByIDData = new GetRegisteredTemplateBundleByIDData();
var _local3:TemplateCollection = new TemplateCollection();
this.getTemplate(_arg1.this.fb_namespace::one_line_story_template, _local3);
this.getTemplate(_arg1.this.fb_namespace::short_story_templates, _local3);
this.getTemplate(_arg1.this.fb_namespace::full_story_template, _local3);
_local3.template_bundle_id = _arg1.this.fb_namespace::template_bundle_id;
_local3.time_created = FacebookXMLParserUtils.toDate(_arg1.this.fb_namespace::time_created);
_local2.templateCollection = _local3;
return (_local2);
}
protected function responseNodeNameToMethodName(_arg1:String):String{
var _local2:Array = _arg1.split("_");
_local2.pop();
return (_local2.join("."));
}
protected function parseGetObjectTypes(_arg1:XML):GetObjectTypesData{
var _local4:*;
var _local5:ObjectTypesData;
var _local2:GetObjectTypesData = new GetObjectTypesData();
var _local3:ObjectTypesCollection = new ObjectTypesCollection();
for each (_local4 in _arg1..this.fb_namespace::object_type_info) {
_local5 = new ObjectTypesData();
_local5.name = _local4.this.fb_namespace::name;
_local5.object_class = _local4.this.fb_namespace::object_class;
_local3.addItem(_local5);
};
_local2.objectTypeCollection = _local3;
return (_local2);
}
protected function parseFacebookPhoto(_arg1:XML):FacebookPhoto{
var _local2:FacebookPhoto = new FacebookPhoto();
_local2.pid = FacebookXMLParserUtils.toStringValue(_arg1.this.fb_namespace::pid[0]);
_local2.aid = FacebookXMLParserUtils.toStringValue(_arg1.this.fb_namespace::aid[0]);
_local2.owner = FacebookXMLParserUtils.toNumber(_arg1.this.fb_namespace::owner[0]);
_local2.src = FacebookXMLParserUtils.toStringValue(_arg1.this.fb_namespace::src[0]);
_local2.src_big = FacebookXMLParserUtils.toStringValue(_arg1.this.fb_namespace::src_big[0]);
_local2.src_small = FacebookXMLParserUtils.toStringValue(_arg1.this.fb_namespace::src_small[0]);
_local2.link = FacebookXMLParserUtils.toStringValue(_arg1.this.fb_namespace::link[0]);
_local2.caption = FacebookXMLParserUtils.toStringValue(_arg1.this.fb_namespace::caption[0]);
return (_local2);
}
protected function parseGetObjectType(_arg1:XML):GetObjectTypeData{
var _local2:GetObjectTypeData = new GetObjectTypeData();
_local2.name = _arg1.this.fb_namespace::name;
_local2.data_type = _arg1.this.fb_namespace::data_type;
_local2.index_type = _arg1.this.fb_namespace::index_type;
return (_local2);
}
protected function createTagObject(_arg1:XML, _arg2:Array){
var _local5:AbstractTagData;
var _local7:Object;
var _local3:Number = _arg1.children().length();
var _local4:String = _arg1.children()[0].toLowerCase();
if (_local4 == "leaf"){
_local5 = new LeafTagData(null, null, null, null, null);
(_local5 as LeafTagData).fbml = _arg1.children()[9];
} else {
_local5 = new ContainerTagData(null, null, null, null, null, null, null);
(_local5 as ContainerTagData).open_tag_fbml = _arg1.children()[2];
(_local5 as ContainerTagData).close_tag_fbml = _arg1.children()[4];
};
var _local6:Number = 0;
while (_local6 < _local3) {
_local7 = _arg1.children()[_local6];
switch (_arg2[_local6]){
case "name":
case "type":
case "description":
case "is_public":
case "header_fbml":
case "footer_fbml":
_local5[_arg2[_local6]] = _local7.text();
break;
case "attributes":
if ((_local7.children() is XMLList)){
if (_local7.children().length() == 0){
_local5[_arg2[_local6]] = null;
};
};
break;
};
_local6++;
};
return (_local5);
}
protected function parseGetNotes(_arg1:XML):GetNotesData{
var _local4:*;
var _local5:NoteData;
var _local2:GetNotesData = new GetNotesData();
var _local3:NotesCollection = new NotesCollection();
for each (_local4 in _arg1..this.fb_namespace::note) {
_local5 = new NoteData();
_local5.note_id = _local4.this.fb_namespace::note_id;
_local5.title = _local4.this.fb_namespace::title;
_local5.content = _local4.this.fb_namespace::content;
_local5.created_time = FacebookXMLParserUtils.toDate(_local4.this.fb_namespace::created_time);
_local5.updated_time = FacebookXMLParserUtils.toDate(_local4.this.fb_namespace::updated_time);
_local5.uid = _local4.this.fb_namespace::uid;
_local3.addItem(_local5);
};
_local2.notesCollection = _local3;
return (_local2);
}
protected function parseGetMetrics(_arg1:XML):GetMetricsData{
var _local4:*;
var _local5:MetricsData;
var _local2:GetMetricsData = new GetMetricsData();
var _local3:MetricsDataCollection = new MetricsDataCollection();
for each (_local4 in _arg1..this.fb_namespace::metrics) {
_local5 = new MetricsData();
_local5.end_time = FacebookXMLParserUtils.toDate(_local4.this.fb_namespace::end_time);
_local5.active_users = _local4.this.fb_namespace::active_users;
_local5.canvas_page_views = _local4.this.fb_namespace::canvas_page_views;
_local3.addItem(_local5);
};
_local2.metricsCollection = _local3;
return (_local2);
}
protected function parsePageGetInfo(_arg1:XML):GetPageInfoData{
var _local5:Object;
var _local6:PageInfoData;
var _local2:GetPageInfoData = new GetPageInfoData();
var _local3:PageInfoCollection = new PageInfoCollection();
var _local4:XMLList = _arg1.this.fb_namespace::page;
for each (_local5 in _local4) {
_local6 = new PageInfoData();
_local6.page_id = _local5.this.fb_namespace::page_id;
_local6.name = _local5.this.fb_namespace::name;
_local6.pic_small = _local5.this.fb_namespace::pic_small;
_local6.pic_big = _local5.this.fb_namespace::pic_big;
_local6.pic_square = _local5.this.fb_namespace::pic_square;
_local6.pic_large = _local5.this.fb_namespace::pic_large;
_local6.type = _local5.this.fb_namespace::type;
_local6.website = _local5.this.fb_namespace::website;
_local6.location = FacebookXMLParserUtils.createLocation(_local5.this.fb_namespace::location[0], this.fb_namespace);
_local6.hours = _local5.this.fb_namespace::hours;
_local6.band_members = _local5.this.fb_namespace::band_members;
_local6.bio = _local5.this.fb_namespace::bio;
_local6.hometown = _local5.this.fb_namespace::hometown;
_local6.genre = FacebookXMLParserUtils.toStringValue(_local5.this.fb_namespace::genre[0]);
_local6.record_label = _local5.this.fb_namespace::record_label;
_local6.influences = _local5.this.fb_namespace::influences;
_local6.has_added_app = FacebookXMLParserUtils.toBoolean(_local5.this.fb_namespace::has_added_app[0]);
_local6.founded = _local5.this.fb_namespace::founded;
_local6.company_overview = _local5.this.fb_namespace::company_overview;
_local6.mission = _local5.this.fb_namespace::mission;
_local6.products = _local5.this.fb_namespace::products;
_local6.release_date = _local5.this.fb_namespace::release_date;
_local6.starring = _local5.this.fb_namespace::starring;
_local6.written_by = _local5.this.fb_namespace::written_by;
_local6.directed_by = _local5.this.fb_namespace::directed_by;
_local6.produced_by = _local5.this.fb_namespace::produced_by;
_local6.studio = _local5.this.fb_namespace::studio;
_local6.awards = _local5.this.fb_namespace::awards;
_local6.plot_outline = _local5.this.fb_namespace::plot_outline;
_local6.network = _local5.this.fb_namespace::network;
_local6.season = _local5.this.fb_namespace::season;
_local6.schedule = _local5.this.fb_namespace::schedule;
_local3.addPageInfo(_local6);
};
_local2.pageInfoCollection = _local3;
return (_local2);
}
protected function parseGetTags(_arg1:XML):GetTagsData{
var _local4:*;
var _local5:TagData;
var _local2:GetTagsData = new GetTagsData();
var _local3:PhotoTagCollection = new PhotoTagCollection();
for each (_local4 in _arg1..this.fb_namespace::photo_tag) {
_local5 = new TagData();
_local5.text = _local4.this.fb_namespace::text;
_local5.pid = _local4.this.fb_namespace::pid;
_local5.subject = _local4.this.fb_namespace::subject;
_local5.xcoord = _local4.this.fb_namespace::xcoord;
_local5.ycoord = _local4.this.fb_namespace::ycoord;
_local5.created = FacebookXMLParserUtils.toDate(_local4.this.fb_namespace::created);
_local3.addPhotoTag(_local5);
};
_local2.photoTagsCollection = _local3;
return (_local2);
}
protected function parseGetGroupMembers(_arg1:XML):GetMemberData{
var _local2:GetMemberData = new GetMemberData();
_local2.members = FacebookXMLParserUtils.toUIDArray(_arg1.this.fb_namespace::members[0]);
_local2.admins = FacebookXMLParserUtils.toUIDArray(_arg1.this.fb_namespace::admins[0]);
_local2.officers = FacebookXMLParserUtils.toUIDArray(_arg1.this.fb_namespace::officers[0]);
_local2.notReplied = FacebookXMLParserUtils.toUIDArray(_arg1.this.fb_namespace::not_replied[0]);
return (_local2);
}
protected function parseGetGroups(_arg1:XML):GetGroupData{
var _local4:*;
var _local5:GroupData;
var _local2:GetGroupData = new GetGroupData();
var _local3:GroupCollection = new GroupCollection();
for each (_local4 in _arg1..this.fb_namespace::group) {
_local5 = new GroupData();
_local5.gid = _local4.this.fb_namespace::gid;
_local5.name = _local4.this.fb_namespace::name;
_local5.nid = _local4.this.fb_namespace::nid;
_local5.description = _local4.this.fb_namespace::description;
_local5.group_type = _local4.this.fb_namespace::group_type;
_local5.group_subtype = _local4.this.fb_namespace::group_subtype;
_local5.recent_news = _local4.this.fb_namespace::recent_news;
_local5.pic = _local4.this.fb_namespace::pic;
_local5.pic_big = _local4.this.fb_namespace::pic_big;
_local5.pic_small = _local4.this.fb_namespace::pic_small;
_local5.creator = _local4.this.fb_namespace::creator;
_local5.update_time = FacebookXMLParserUtils.toDate(_local4.this.fb_namespace::update_time);
_local5.office = _local4.this.fb_namespace::office;
_local5.website = _local4.this.fb_namespace::website;
_local5.venue = FacebookXMLParserUtils.createLocation(_local4.this.fb_namespace::venue[0], this.fb_namespace);
_local5.privacy = _local4.this.fb_namespace::privacy;
_local3.addGroup(_local5);
};
_local2.groups = _local3;
return (_local2);
}
protected function parseCreateAlbum(_arg1:XML):GetCreateAlbumData{
var _local2:GetCreateAlbumData = new GetCreateAlbumData();
var _local3:AlbumData = new AlbumData();
_local3.aid = _arg1.this.fb_namespace::aid;
_local3.cover_pid = _arg1.this.fb_namespace::cover_pid;
_local3.owner = _arg1.this.fb_namespace::owner;
_local3.name = _arg1.this.fb_namespace::name;
_local3.created = FacebookXMLParserUtils.toDate(_arg1.this.fb_namespace::created);
_local3.modified = FacebookXMLParserUtils.toDate(_arg1.this.fb_namespace::modified);
_local3.description = _arg1.this.fb_namespace::description;
_local3.location = _arg1.this.fb_namespace::location;
_local3.link = _arg1.this.fb_namespace::link;
_local3.size = _arg1.this.fb_namespace::size;
_local3.visible = _arg1.this.fb_namespace::visible;
_local2.albumData = _local3;
return (_local2);
}
protected function parseGetAllocation(_arg1:XML):GetAllocationData{
var _local2:GetAllocationData = new GetAllocationData();
_local2.allocationLimit = Number(_arg1.toString());
return (_local2);
}
protected function parseGetCookies(_arg1:XML):GetCookiesData{
var _local2:GetCookiesData = new GetCookiesData();
_local2.uid = _arg1.this.fb_namespace::uid;
_local2.name = _arg1.this.fb_namespace::name;
_local2.value = _arg1.this.fb_namespace::value;
_local2.expires = _arg1.this.fb_namespace::expires;
_local2.path = _arg1.this.fb_namespace::path;
return (_local2);
}
protected function parseGetCustomTags(_arg1:XML):GetCustomTagsData{
var _local5:*;
var _local2:Array = ["type", "name", "open_tag_fbml", "description", "close_tag_fbml", "is_public", "attributes", "header_fbml", "footer_fbml", "fbml"];
var _local3:GetCustomTagsData = new GetCustomTagsData();
var _local4:TagCollection = new TagCollection();
for each (_local5 in _arg1..this.fb_namespace::custom_tag) {
_local4.addItem(this.createTagObject(_local5, _local2));
};
_local3.tagCollection = _local4;
return (_local3);
}
protected function parseGetAlbums(_arg1:XML):GetAlbumsData{
var _local2:GetAlbumsData = new GetAlbumsData();
_local2.albumCollection = FacebookXMLParserUtils.createAlbumCollection(_arg1, this.fb_namespace);
return (_local2);
}
protected function parseGetInfo(_arg1:XML):GetInfoData{
var _local7:FacebookUser;
var _local2:FacebookUserCollection = new FacebookUserCollection();
var _local3:XMLList = _arg1..this.fb_namespace::user;
var _local4:uint = _local3.length();
var _local5:uint;
while (_local5 < _local4) {
_local7 = FacebookUserXMLParser.createFacebookUser(_local3[_local5], this.fb_namespace);
_local2.addItem(_local7);
_local5++;
};
var _local6:GetInfoData = new GetInfoData();
_local6.userCollection = _local2;
return (_local6);
}
protected function parseGetLists(_arg1:XML):GetListsData{
var _local4:*;
var _local5:ListsData;
var _local2:GetListsData = new GetListsData();
var _local3:Array = [];
for each (_local4 in _arg1..this.fb_namespace::friendlist) {
_local5 = new ListsData();
_local5.flid = _local4.this.fb_namespace::flid;
_local5.name = _local4.this.fb_namespace::name;
_local3.push(_local5);
};
_local2.lists = _local3;
return (_local2);
}
protected function parseGetAppUsersData(_arg1:XML):GetAppUserData{
var _local2:Array = FacebookXMLParserUtils.toUIDArray(_arg1);
var _local3:GetAppUserData = new GetAppUserData();
_local3.uids = _local2;
return (_local3);
}
protected function parseGetStatus(_arg1:XML):GetStatusData{
var _local7:XMLList;
var _local8:Status;
var _local2:GetStatusData = new GetStatusData();
var _local3:Array = [];
var _local4:XMLList = _arg1.children();
var _local5:uint = _local4.length();
var _local6:uint;
while (_local6 < _local5) {
_local7 = _local4[_local6].children();
_local8 = new Status();
_local8.uid = FacebookXMLParserUtils.toStringValue(_local7[0]);
_local8.status_id = FacebookXMLParserUtils.toStringValue(_local7[1]);
_local8.time = FacebookXMLParserUtils.toDate(_local7[2]);
_local8.source = FacebookXMLParserUtils.toStringValue(_local7[3]);
_local8.message = FacebookXMLParserUtils.toStringValue(_local7[4]);
_local3.push(_local8);
_local6++;
};
_local2.status = _local3;
return (_local2);
}
protected function parseGetMembers(_arg1:XML):GetMembersData{
var _local2:GetMembersData = new GetMembersData();
_local2.attending = FacebookXMLParserUtils.toUIDArray(_arg1..this.fb_namespace::attending[0]);
_local2.unsure = FacebookXMLParserUtils.toUIDArray(_arg1..this.fb_namespace::unsure[0]);
_local2.declined = FacebookXMLParserUtils.toUIDArray(_arg1..this.fb_namespace::declined[0]);
_local2.not_replied = FacebookXMLParserUtils.toUIDArray(_arg1..this.fb_namespace::not_replied[0]);
return (_local2);
}
protected function parseGetEvent(_arg1:XML):GetEventsData{
var _local4:*;
var _local5:EventData;
var _local2:GetEventsData = new GetEventsData();
var _local3:EventCollection = new EventCollection();
for each (_local4 in _arg1..this.fb_namespace::event) {
_local5 = new EventData();
_local5.eid = _local4.this.fb_namespace::eid;
_local5.name = _local4.this.fb_namespace::name;
_local5.tagline = _local4.this.fb_namespace::tagline;
_local5.nid = _local4.this.fb_namespace::nid;
_local5.pic = _local4.this.fb_namespace::pic;
_local5.pic_big = _local4.this.fb_namespace::pic_big;
_local5.pic_small = _local4.this.fb_namespace::pic_small;
_local5.host = _local4.this.fb_namespace::host;
_local5.description = _local4.this.fb_namespace::description;
_local5.event_type = _local4.this.fb_namespace::event_type;
_local5.event_subtype = _local4.this.fb_namespace::event_subtype;
_local5.start_time = FacebookXMLParserUtils.toDate(_local4.this.fb_namespace::start_time);
_local5.end_time = FacebookXMLParserUtils.toDate(_local4.this.fb_namespace::end_time);
_local5.creator = _local4.this.fb_namespace::end_time;
_local5.update_time = FacebookXMLParserUtils.toDate(_local4.this.fb_namespace::update_time);
_local5.location = _local4.this.fb_namespace::location;
_local5.venue = FacebookXMLParserUtils.createLocation(_local4.this.fb_namespace::venue[0], this.fb_namespace);
_local3.addItem(_local5);
};
_local2.eventCollection = _local3;
return (_local2);
}
protected function parseGetFriends(_arg1:XML):GetFriendsData{
var _local4:*;
var _local5:FacebookUser;
var _local2:GetFriendsData = new GetFriendsData();
var _local3:FacebookUserCollection = new FacebookUserCollection();
for each (_local4 in _arg1..this.fb_namespace::uid) {
_local5 = new FacebookUser();
_local5.uid = _local4;
_local3.addItem(_local5);
};
_local2.friends = _local3;
return (_local2);
}
protected function parseGetPublicInfo(_arg1:XML):GetPublicInfoData{
var _local2:GetPublicInfoData = new GetPublicInfoData();
_local2.app_id = _arg1.this.fb_namespace::app_id;
_local2.api_key = _arg1.this.fb_namespace::api_key;
_local2.canvas_name = _arg1.this.fb_namespace::canvas_name;
_local2.display_name = _arg1.this.fb_namespace::display_name;
_local2.icon_url = _arg1.this.fb_namespace::icon_url;
_local2.logo_url = _arg1.this.fb_namespace::logo_url;
_local2.developers = _arg1.this.fb_namespace::developers;
_local2.company_name = _arg1.this.fb_namespace::company_name;
_local2.developers = _arg1.this.fb_namespace::developers;
_local2.daily_active_users = _arg1.this.fb_namespace::daily_active_users;
_local2.weekly_active_users = _arg1.this.fb_namespace::weekly_active_users;
_local2.monthly_active_users = _arg1.this.fb_namespace::monthly_active_users;
return (_local2);
}
protected function parseAreFriends(_arg1:XML):AreFriendsData{
var _local4:*;
var _local5:FriendsData;
var _local2:AreFriendsData = new AreFriendsData();
var _local3:FriendsCollection = new FriendsCollection();
for each (_local4 in _arg1..this.fb_namespace::friend_info) {
_local5 = new FriendsData();
_local5.uid1 = _local4.this.fb_namespace::uid1;
_local5.uid2 = _local4.this.fb_namespace::uid2;
_local5.are_friends = FacebookXMLParserUtils.toBoolean(_local4.this.fb_namespace::are_friends);
_local3.addItem(_local5);
};
_local2.friendsCollection = _local3;
return (_local2);
}
public function validateFacebookResponce(_arg1:String):FacebookError{
var xml:XML;
var xmlError:Error;
var result = _arg1;
var error:FacebookError;
var hasXMLError:Boolean;
try {
xml = new XML(result);
} catch(e) {
xmlError = e;
hasXMLError = true;
};
if (hasXMLError == false){
if (xml.localName() == "error_response"){
error = new FacebookError();
error.rawResult = result;
error.errorCode = Number(xml.this.fb_namespace::error_code);
error.errorMsg = xml.this.fb_namespace::error_msg;
error.requestArgs = FacebookXMLParserUtils.xmlToUrlVariables(xml..arg);
};
return (error);
};
if (hasXMLError == true){
error = new FacebookError();
error.error = xmlError;
error.errorCode = -1;
};
return (error);
}
protected function parseBatchRun(_arg1:XML):FacebookData{
var _local7:String;
var _local8:XML;
var _local9:FacebookError;
var _local10:String;
var _local11:FacebookData;
var _local2:XMLList = _arg1..this.fb_namespace::batch_run_response_elt;
var _local3:uint = _local2.length();
var _local4:Array = [];
var _local5:uint;
while (_local5 < _local3) {
_local7 = _local2[_local5].toString();
_local8 = new XML(_local7);
_local9 = this.validateFacebookResponce(_local7);
if (_local9 === null){
_local10 = this.responseNodeNameToMethodName(_local8.localName().toString());
_local11 = this.parse(_local7, _local10);
_local4.push(_local11);
} else {
_local4.push(_local9);
};
_local5++;
};
var _local6:BatchResult = new BatchResult();
_local6.results = _local4;
return (_local6);
}
protected function getTemplate(_arg1:XMLList, _arg2:TemplateCollection):void{
var _local3:*;
var _local4:TemplateData;
for each (_local3 in _arg1) {
_local4 = new TemplateData();
_local4.type = _local3.localName();
_local4.template_body = _local3.this.fb_namespace::template_body;
_local4.template_title = _local3.this.fb_namespace::template_title;
_arg2.addTemplateData(_local4);
};
}
}
}//package com.facebook.data
Section 309
//AbstractFileUploadDelegate (com.facebook.delegates.AbstractFileUploadDelegate)
package com.facebook.delegates {
import flash.events.*;
import flash.utils.*;
import com.facebook.net.*;
import com.facebook.errors.*;
import flash.net.*;
import com.facebook.utils.*;
import com.facebook.session.*;
public class AbstractFileUploadDelegate extends WebDelegate {
protected var ba:ByteArray;
public function AbstractFileUploadDelegate(_arg1:FacebookCall, _arg2:WebSession){
super(_arg1, _arg2);
this.ba = new ByteArray();
}
protected function uploadByteArray(_arg1:ByteArray):void{
var _local3:String;
var _local4:URLRequest;
var _local2:PostRequest = new PostRequest();
for (_local3 in call.args) {
if (_local3 != "data"){
_local2.writePostData(_local3, call.args[_local3]);
};
};
_local2.writeFileData(((("fn" + call.args["call_id"]) + ".") + this.getExt()), _arg1, this.getContentType());
_local2.close();
_local4 = new URLRequest();
_local4.method = URLRequestMethod.POST;
_local4.contentType = ("multipart/form-data; boundary=" + _local2.boundary);
_local4.data = _local2.getPostData();
_local4.url = _session.rest_url;
createURLLoader();
loader.dataFormat = URLLoaderDataFormat.BINARY;
loader.load(_local4);
connectTimer.start();
}
protected function onFileRefComplete(_arg1:Event):void{
fileRef = (call.args.data as FileReference);
this.uploadByteArray(fileRef["data"]);
}
override protected function onDataComplete(_arg1:Event):void{
var _local3:FacebookError;
var _local4:String;
var _local2:ByteArray = (_arg1.target.data as ByteArray);
if (_local2 == null){
_local3 = new FacebookError();
call.handleError(_local3);
clean();
} else {
_local4 = _local2.readUTFBytes(_local2.length);
_local2.length = 0;
_local2 = null;
handleResult(_local4);
};
}
protected function getExt():String{
return (null);
}
protected function getContentType():String{
return (null);
}
}
}//package com.facebook.delegates
Section 310
//DesktopDelegate (com.facebook.delegates.DesktopDelegate)
package com.facebook.delegates {
import com.facebook.net.*;
import com.facebook.session.*;
public class DesktopDelegate extends WebDelegate {
public function DesktopDelegate(_arg1:FacebookCall, _arg2:DesktopSession){
super(_arg1, _arg2);
}
override protected function addOptionalArguments():void{
}
}
}//package com.facebook.delegates
Section 311
//IFacebookCallDelegate (com.facebook.delegates.IFacebookCallDelegate)
package com.facebook.delegates {
import flash.events.*;
import com.facebook.net.*;
import com.facebook.session.*;
public interface IFacebookCallDelegate extends IEventDispatcher {
function get session():IFacebookSession;
function close():void;
function set call(_arg1:FacebookCall):void;
function set session(_arg1:IFacebookSession):void;
function get call():FacebookCall;
}
}//package com.facebook.delegates
Section 312
//JSDelegate (com.facebook.delegates.JSDelegate)
package com.facebook.delegates {
import flash.events.*;
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.data.*;
import com.facebook.errors.*;
import com.facebook.utils.*;
import com.facebook.session.*;
import com.facebook.*;
import flash.external.*;
public class JSDelegate extends EventDispatcher implements IFacebookCallDelegate {
protected var _call:FacebookCall;
protected var _session:JSSession;
protected static var externalInterfaceCalls:Object = {};
protected static var externalInterfaceCallId:Number = 0;
public function JSDelegate(_arg1:FacebookCall, _arg2:JSSession){
this.call = _arg1;
this.session = _arg2;
this.execute();
}
public function set call(_arg1:FacebookCall):void{
this._call = _arg1;
}
protected function onReceiveError(_arg1:ErrorEvent):void{
var _local2:FacebookError = new FacebookError();
_local2.errorEvent = _arg1;
var _local3 = this.call;
_local3.facebook_internal::handleError(_local2);
}
public function get call():FacebookCall{
return (this._call);
}
protected function postBridgeAsyncReply(_arg1:Object, _arg2:Object, _arg3:uint):void{
var _local5:JSONResultData;
var _local6:FacebookError;
var _local4:FacebookCall = externalInterfaceCalls[_arg3];
if (_arg1){
_local5 = new JSONResultData();
_local5.result = _arg1;
var _local7 = _local4;
_local7.facebook_internal::handleResult(_local5);
} else {
_local6 = new FacebookError();
_local6.rawResult = JSON.encode(_arg2);
_local7 = _local4;
_local7.facebook_internal::handleError(_local6);
};
delete externalInterfaceCalls[_arg3];
}
protected function buildCall():String{
var _local3:String;
var _local4:String;
var _local1:String = ("bridgeFacebookCall_" + externalInterfaceCallId);
RequestHelper.formatRequest(this.call);
var _local2:Object = {};
for (_local3 in this.call.args) {
_local2[_local3] = this.call.args[_local3];
};
_local4 = (((((((((((((((("function " + _local1) + "() { ") + "FB.Facebook.apiClient.callMethod(\"") + this.call.method) + "\", ") + JavascriptRequestHelper.formatURLVariables(this.call.args)) + ", ") + "function(result, exception) {") + "document.") + (this._session as JSSession).as_swf_name) + ".bridgeFacebookReply(result, exception, ") + externalInterfaceCallId) + ")") + "}") + ");") + "}");
return (_local4);
}
protected function execute():void{
var _local2:Object;
var _local3:String;
var _local1:Array = [];
for each (_local2 in this.call.args) {
_local1.push(_local2);
};
var _local4 = ++externalInterfaceCallId;
externalInterfaceCalls[_local4] = this.call;
_local3 = this.buildCall();
ExternalInterface.addCallback("bridgeFacebookReply", this.postBridgeAsyncReply);
ExternalInterface.call(_local3);
}
protected function onReceiveStatus(_arg1:StatusEvent):void{
var _local2:FacebookError;
switch ((_arg1.level == "error")){
case "error":
_local2 = new FacebookError();
_local2.rawResult = _arg1.level;
var _local3 = this.call;
_local3.facebook_internal::handleError(_local2);
break;
case "warning":
case "status":
break;
};
}
public function set session(_arg1:IFacebookSession):void{
this._session = (_arg1 as JSSession);
}
public function get session():IFacebookSession{
return (this._session);
}
public function close():void{
}
}
}//package com.facebook.delegates
Section 313
//RequestHelper (com.facebook.delegates.RequestHelper)
package com.facebook.delegates {
import flash.display.*;
import flash.utils.*;
import com.facebook.net.*;
import flash.net.*;
import com.facebook.session.*;
import com.adobe.crypto.*;
public class RequestHelper {
protected static var callID:int = 0;
public static function formatRequest(_arg1:FacebookCall):void{
var _local2:IFacebookSession = _arg1.session;
_arg1.setRequestArgument("v", _local2.api_version);
if (_local2.api_key != null){
_arg1.setRequestArgument("api_key", _local2.api_key);
};
if (((!((_local2.session_key == null))) && (_arg1.useSession))){
_arg1.setRequestArgument("session_key", _local2.session_key);
};
var _local3:String = (new Date().time.toString() + callID++.toString());
_arg1.setRequestArgument("call_id", _local3);
_arg1.setRequestArgument("method", _arg1.method);
_arg1.setRequestArgument("sig", formatSig(_arg1));
}
public static function formatSig(_arg1:FacebookCall):String{
var _local4:String;
var _local5:String;
var _local6:*;
var _local2:IFacebookSession = _arg1.session;
var _local3:Array = [];
for (_local4 in _arg1.args) {
_local6 = _arg1.args[_local4];
if (((((((((!((_local4 === "sig"))) && (!((_local6 is ByteArray))))) && (!((_local6 is FileReference))))) && (!((_local6 is BitmapData))))) && (!((_local6 is Bitmap))))){
_local3.push(((_local4 + "=") + _local6.toString()));
};
};
_local3.sort();
_local5 = _local3.join("");
if (_local2.secret != null){
_local5 = (_local5 + _local2.secret);
};
return (MD5.hash(_local5));
}
}
}//package com.facebook.delegates
Section 314
//WebDelegate (com.facebook.delegates.WebDelegate)
package com.facebook.delegates {
import flash.events.*;
import flash.utils.*;
import com.facebook.net.*;
import com.facebook.data.*;
import com.facebook.errors.*;
import flash.net.*;
import com.facebook.session.*;
import com.facebook.events.*;
public class WebDelegate extends EventDispatcher implements IFacebookCallDelegate {
protected var connectTimer:Timer;
protected var loader:URLLoader;
protected var _session:WebSession;
protected var parser:XMLDataParser;
protected var fileRef:FileReference;
protected var _call:FacebookCall;
protected var loadTimer:Timer;
public function WebDelegate(_arg1:FacebookCall, _arg2:WebSession){
this.call = _arg1;
this.session = _arg2;
this.parser = new XMLDataParser();
this.connectTimer = new Timer(_arg1.connectTimeout, 1);
this.connectTimer.addEventListener(TimerEvent.TIMER_COMPLETE, this.onConnectTimeout, false, 0, true);
this.loadTimer = new Timer(_arg1.loadTimeout, 1);
this.loadTimer.addEventListener(TimerEvent.TIMER_COMPLETE, this.onLoadTimeOut, false, 0, true);
this.execute();
}
public function set call(_arg1:FacebookCall):void{
this._call = _arg1;
}
protected function execute():void{
if (this.call == null){
throw (new Error("No call defined."));
};
this.post();
}
protected function createURLLoader():void{
this.loader = new URLLoader();
this.loader.addEventListener(Event.COMPLETE, this.onDataComplete);
this.loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, this.onHTTPStatus);
this.loader.addEventListener(IOErrorEvent.IO_ERROR, this.onError);
this.loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.onError);
this.loader.addEventListener(Event.OPEN, this.onOpen);
}
protected function onOpen(_arg1:Event):void{
this.connectTimer.stop();
this.loadTimer.start();
}
protected function addOptionalArguments():void{
this.call.setRequestArgument("ss", true);
}
protected function onConnectTimeout(_arg1:TimerEvent):void{
var _local2:FacebookError = new FacebookError();
_local2.errorCode = FacebookErrorCodes.SERVER_ERROR;
_local2.reason = FacebookErrorReason.CONNECT_TIMEOUT;
this._call.handleError(_local2);
dispatchEvent(new FacebookEvent(FacebookEvent.COMPLETE, false, false, false, null, _local2));
this.loadTimer.stop();
this.close();
}
protected function clean():void{
this.connectTimer.stop();
this.loadTimer.stop();
if (this.loader == null){
return;
};
this.loader.removeEventListener(Event.COMPLETE, this.onDataComplete);
this.loader.removeEventListener(IOErrorEvent.IO_ERROR, this.onError);
this.loader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this.onError);
this.loader.removeEventListener(Event.OPEN, this.onOpen);
}
protected function onDataComplete(_arg1:Event):void{
this.handleResult((_arg1.target.data as String));
}
protected function onLoadTimeOut(_arg1:TimerEvent):void{
this.connectTimer.stop();
this.close();
var _local2:FacebookError = new FacebookError();
_local2.errorCode = FacebookErrorCodes.SERVER_ERROR;
_local2.reason = FacebookErrorReason.LOAD_TIMEOUT;
this._call.handleError(_local2);
dispatchEvent(new FacebookEvent(FacebookEvent.COMPLETE, false, false, false, null, _local2));
}
public function get session():IFacebookSession{
return (this._session);
}
protected function post():void{
this.addOptionalArguments();
RequestHelper.formatRequest(this.call);
this.sendRequest();
this.connectTimer.start();
}
public function get call():FacebookCall{
return (this._call);
}
protected function sendRequest():void{
this.createURLLoader();
var _local1:URLRequest = new URLRequest(this._session.rest_url);
_local1.contentType = "application/x-www-form-urlencoded";
_local1.method = URLRequestMethod.POST;
_local1.data = this.call.args;
trace(((_local1.url + "?") + unescape(this.call.args.toString())));
this.loader.dataFormat = URLLoaderDataFormat.TEXT;
this.loader.load(_local1);
}
protected function onError(_arg1:ErrorEvent):void{
this.clean();
var _local2:FacebookError = this.parser.createFacebookError(_arg1, this.loader.data);
this.call.handleError(_local2);
dispatchEvent(new FacebookEvent(FacebookEvent.COMPLETE, false, false, false, null, _local2));
}
protected function handleResult(_arg1:String):void{
var _local3:FacebookData;
this.clean();
var _local2:FacebookError = this.parser.validateFacebookResponce(_arg1);
if (_local2 == null){
_local3 = this.parser.parse(_arg1, this.call.method);
this.call.handleResult(_local3);
} else {
this.call.handleError(_local2);
};
}
public function close():void{
try {
this.loader.close();
} catch(e) {
};
this.connectTimer.stop();
this.loadTimer.stop();
}
protected function onHTTPStatus(_arg1:HTTPStatusEvent):void{
}
public function set session(_arg1:IFacebookSession):void{
this._session = (_arg1 as WebSession);
}
}
}//package com.facebook.delegates
Section 315
//WebImageUploadDelegate (com.facebook.delegates.WebImageUploadDelegate)
package com.facebook.delegates {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import com.adobe.images.*;
import com.facebook.net.*;
import flash.net.*;
import com.facebook.utils.*;
import com.facebook.session.*;
import com.facebook.commands.photos.*;
public class WebImageUploadDelegate extends AbstractFileUploadDelegate {
public function WebImageUploadDelegate(_arg1:FacebookCall, _arg2:WebSession){
super(_arg1, _arg2);
}
override protected function getExt():String{
return ((((call as IUploadPhoto).uploadType == UploadPhotoTypes.JPEG)) ? "jpeg" : "png");
}
override protected function getContentType():String{
return ("Content-Type: image/jpg");
}
override protected function sendRequest():void{
var _local1:ByteArray;
var _local4:JPGEncoder;
var _local2:URLRequest = new URLRequest(_session.rest_url);
var _local3:Object = call.args.data;
if ((((PlayerUtils.majorVersion == 9)) && ((_local3 is FileReference)))){
throw (new TypeError("Uploading FileReference with Player 9 is unsupported. Use either an BitmapData or ByteArray."));
};
if ((_local3 is Bitmap)){
_local3 = (_local3 as Bitmap).bitmapData;
};
if ((((PlayerUtils.majorVersion == 10)) && ((_local3 is FileReference)))){
_local1 = (_local3 as FileReference)["load"]();
fileRef = (_local3 as FileReference);
fileRef.addEventListener(Event.COMPLETE, onFileRefComplete);
} else {
if ((_local3 is ByteArray)){
uploadByteArray((_local3 as ByteArray));
} else {
if ((_local3 is BitmapData)){
switch ((call as UploadPhoto).uploadType){
case UploadPhotoTypes.JPEG:
_local4 = new JPGEncoder((call as UploadPhoto).uploadQuality);
ba = _local4.encode((_local3 as BitmapData));
break;
case UploadPhotoTypes.PNG:
ba = PNGEncoder.encode((_local3 as BitmapData));
break;
};
uploadByteArray(ba);
} else {
throw (new Error((("Error data type " + call.args.data) + " is not supported. Please use one of the following types: FileReference, ByteArray, BitmapData or Bitmap.")));
};
};
};
}
}
}//package com.facebook.delegates
Section 316
//VideoUploadDelegate (com.facebook.delegates.VideoUploadDelegate)
package com.facebook.delegates {
import flash.events.*;
import flash.utils.*;
import com.facebook.net.*;
import flash.net.*;
import com.facebook.utils.*;
import com.facebook.session.*;
import com.facebook.commands.video.*;
public class VideoUploadDelegate extends AbstractFileUploadDelegate {
public function VideoUploadDelegate(_arg1:FacebookCall, _arg2:WebSession){
super(_arg1, _arg2);
}
override protected function onOpen(_arg1:Event):void{
super.onOpen(_arg1);
loadTimer.stop();
}
override protected function getExt():String{
return ((call as UploadVideo).ext);
}
override protected function getContentType():String{
return (("Content-Type: video/" + (call as UploadVideo).ext));
}
override protected function sendRequest():void{
var _local1:ByteArray;
var _local2:URLRequest = new URLRequest(_session.rest_url);
var _local3:Object = call.args.data;
if ((((PlayerUtils.majorVersion == 9)) && ((_local3 is FileReference)))){
throw (new TypeError("Uploading FileReference with Player 9 is unsupported. Use ByteArray."));
};
if ((((PlayerUtils.majorVersion == 10)) && ((_local3 is FileReference)))){
_local1 = (_local3 as FileReference)["load"]();
fileRef = (_local3 as FileReference);
fileRef.addEventListener(Event.COMPLETE, onFileRefComplete);
} else {
if ((_local3 is ByteArray)){
uploadByteArray((_local3 as ByteArray));
} else {
throw (new Error((("Error data type " + call.args.data) + " is not supported. Please use one of the following types: FileReference or ByteArray.")));
};
};
}
}
}//package com.facebook.delegates
Section 317
//FacebookError (com.facebook.errors.FacebookError)
package com.facebook.errors {
import flash.events.*;
import com.facebook.data.*;
import flash.net.*;
public class FacebookError extends FacebookData {
public var errorMsg:String;
public var reason:String;
public var error:Error;
public var requestArgs:URLVariables;
public var errorCode:Number;
public var errorEvent:ErrorEvent;
}
}//package com.facebook.errors
Section 318
//FacebookEvent (com.facebook.events.FacebookEvent)
package com.facebook.events {
import flash.events.*;
import com.facebook.data.*;
import com.facebook.errors.*;
public class FacebookEvent extends Event {
public var success:Boolean;
public var error:FacebookError;
public var hasPermission:Boolean;
public var data:FacebookData;
public var permission:String;
public static const PERMISSIONS_LOADED:String = "permissionsLoaded";
public static const LOGOUT:String = "logout";
public static const CONNECT:String = "connect";
public static const VERIFYING_SESSION:String = "verifyingSession";
public static const WAITING_FOR_LOGIN:String = "waitingForLogin";
public static const PERMISSION_CHANGE:String = "permissionChanged";
public static const PERMISSION_STATUS:String = "permissionStatus";
public static const LOGIN_SUCCESS:String = "loginSuccess";
public static const ERROR:String = "facebookEventError";
public static const PERMISSIONS_WINDOW_SHOW:String = "permissionsWindowShow";
public static const LOGIN_FAILURE:String = "loginFailure";
public static const LOGIN_WINDOW_SHOW:String = "loginWindoShow";
public static const COMPLETE:String = "complete";
public function FacebookEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Boolean=false, _arg5:FacebookData=null, _arg6:FacebookError=null, _arg7:String="", _arg8:Boolean=false){
this.success = _arg4;
this.data = _arg5;
this.error = _arg6;
this.permission = _arg7;
this.hasPermission = _arg8;
super(_arg1, _arg2, _arg3);
}
override public function toString():String{
return (formatToString("FacebookEvent", "type", "success", "data", "error"));
}
override public function clone():Event{
return (new FacebookEvent(type, bubbles, cancelable, this.success, this.data, this.error));
}
}
}//package com.facebook.events
Section 319
//FacebookCall (com.facebook.net.FacebookCall)
package com.facebook.net {
import flash.events.*;
import com.facebook.data.*;
import com.facebook.errors.*;
import flash.net.*;
import com.facebook.delegates.*;
import com.facebook.session.*;
import com.facebook.events.*;
import com.facebook.*;
public class FacebookCall extends EventDispatcher {
public var success:Boolean;// = false
public var delegate:IFacebookCallDelegate;
public var error:FacebookError;
public var useSession:Boolean;// = true
public var session:IFacebookSession;
public var connectTimeout:uint;// = 8000
public var loadTimeout:uint;// = 30000
public var args:URLVariables;
public var method:String;
public var result:FacebookData;
public function FacebookCall(_arg1:String="no_method_required", _arg2:URLVariables=null){
this.method = _arg1;
this.args = ((_arg2)!=null) ? _arg2 : new URLVariables();
}
facebook_internal function handleError(_arg1:FacebookError):void{
this.error = _arg1;
this.success = false;
dispatchEvent(new FacebookEvent(FacebookEvent.COMPLETE, false, false, false, null, _arg1));
}
facebook_internal function initialize():void{
}
facebook_internal function handleResult(_arg1:FacebookData):void{
this.result = _arg1;
this.success = true;
dispatchEvent(new FacebookEvent(FacebookEvent.COMPLETE, false, false, true, _arg1));
}
facebook_internal function setRequestArgument(_arg1:String, _arg2:Object):void{
if ((((_arg2 is Number)) && (isNaN((_arg2 as Number))))){
return;
};
if (((((_arg1) && (!((_arg2 == null))))) && ((String(_arg2).length > 0)))){
this.args[_arg1] = _arg2;
};
}
protected function applySchema(_arg1:Array, ... _args):void{
var _local3:uint = _arg1.length;
var _local4:uint;
while (_local4 < _local3) {
this.setRequestArgument(_arg1[_local4], _args[_local4]);
_local4++;
};
}
facebook_internal function clearRequestArguments():void{
this.args = new URLVariables();
}
}
}//package com.facebook.net
Section 320
//IUploadPhoto (com.facebook.net.IUploadPhoto)
package com.facebook.net {
public interface IUploadPhoto {
function set data(_arg1:Object):void;
function set uploadType(_arg1:String):void;
function get data():Object;
function get uploadType():String;
function set uploadQuality(_arg1:uint):void;
function get uploadQuality():uint;
}
}//package com.facebook.net
Section 321
//IUploadVideo (com.facebook.net.IUploadVideo)
package com.facebook.net {
public interface IUploadVideo {
function set title(_arg1:String):void;
function get ext():String;
function set ext(_arg1:String):void;
function set description(_arg1:String):void;
function get description():String;
function get title():String;
}
}//package com.facebook.net
Section 322
//DesktopSession (com.facebook.session.DesktopSession)
package com.facebook.session {
import com.facebook.net.*;
import com.facebook.data.*;
import com.facebook.errors.*;
import flash.net.*;
import com.facebook.delegates.*;
import com.facebook.events.*;
import com.facebook.data.auth.*;
import com.facebook.*;
import com.facebook.commands.auth.*;
import com.facebook.commands.users.*;
public class DesktopSession extends WebSession implements IFacebookSession {
protected var _auth_token:String;
protected var loginRequest:IFacebookCallDelegate;
protected var _waiting_for_login:Boolean;// = false
protected var _offline_access:Boolean;// = false
public function DesktopSession(_arg1:String, _arg2:String=null, _arg3:String=null){
super(_arg1, null);
this._is_connected = false;
this._secret = _arg2;
if (_arg3){
this._session_key = _arg3;
};
}
override public function post(_arg1:FacebookCall):IFacebookCallDelegate{
rest_url = REST_URL;
if ((_arg1 is IUploadPhoto)){
return (new WebImageUploadDelegate(_arg1, this));
};
if ((_arg1 is IUploadVideo)){
rest_url = VIDEO_URL;
return (new VideoUploadDelegate(_arg1, this));
};
return (new DesktopDelegate(_arg1, this));
}
override public function get waiting_for_login():Boolean{
return (this._waiting_for_login);
}
protected function onLogin(_arg1:FacebookEvent):void{
var _local2:URLRequest;
var _local3:String;
_arg1.target.removeEventListener(FacebookEvent.COMPLETE, this.onLogin);
if (_arg1.success){
this._auth_token = (_arg1.data as StringResultData).value;
_local2 = new URLRequest();
_local3 = "?";
if (this._offline_access){
_local3 = (_local3 + "ext_perm=offline_access&");
};
_local2.url = (((((((login_url + _local3) + "api_key=") + api_key) + "&v=") + api_version) + "&auth_token=") + this._auth_token);
navigateToURL(_local2, "_blank");
this._waiting_for_login = true;
dispatchEvent(new FacebookEvent(FacebookEvent.WAITING_FOR_LOGIN));
} else {
this.onConnectionError(_arg1.error);
};
}
protected function onConnectionError(_arg1:FacebookError):void{
_is_connected = false;
dispatchEvent(new FacebookEvent(FacebookEvent.CONNECT, false, false, false, null, _arg1));
}
protected function tokenCreated():void{
navigateToURL(new URLRequest(login_url));
}
override public function login(_arg1:Boolean):void{
this._offline_access = _arg1;
_session_key = null;
var _local2:FacebookCall = new CreateToken();
_local2.session = this;
var _local3 = _local2;
_local3.facebook_internal::initialize();
_local2.addEventListener(FacebookEvent.COMPLETE, this.onLogin);
this.post(_local2);
}
protected function onVerifyLogin(_arg1:FacebookEvent):void{
var _local2:FacebookEvent = new FacebookEvent(FacebookEvent.CONNECT);
_local2.success = _arg1.success;
if (_arg1.success){
facebook_internal::_uid = (_arg1.data as StringResultData).value;
_local2.data = _arg1.data;
_is_connected = true;
} else {
_local2.error = _arg1.error;
_is_connected = false;
};
dispatchEvent(_local2);
}
override public function verifySession():void{
var _local1:FacebookCall;
if (_session_key){
_local1 = new GetLoggedInUser();
_local1.session = this;
var _local2 = _local1;
_local2.facebook_internal::initialize();
_local1.addEventListener(FacebookEvent.COMPLETE, this.onVerifyLogin, false, 0, true);
this.post(_local1);
dispatchEvent(new FacebookEvent(FacebookEvent.VERIFYING_SESSION));
} else {
_is_connected = false;
dispatchEvent(new FacebookEvent(FacebookEvent.CONNECT));
};
}
protected function validateSessionReply(_arg1:FacebookEvent):void{
var _local2:GetSessionData;
if (_arg1.success){
_local2 = (_arg1.data as GetSessionData);
facebook_internal::_uid = _local2.uid;
this._session_key = _local2.session_key;
this._expires = _local2.expires;
this._secret = ((((_local2.secret == null)) || ((_local2.secret == "")))) ? this._secret : _local2.secret;
_is_connected = true;
dispatchEvent(new FacebookEvent(FacebookEvent.CONNECT, false, false, true, _local2));
} else {
this.onConnectionError(_arg1.error);
};
}
override public function refreshSession():void{
this._waiting_for_login = false;
var _local1:GetSession = new GetSession(this._auth_token);
_local1.session = this;
var _local2 = _local1;
_local2.facebook_internal::initialize();
_local1.addEventListener(FacebookEvent.COMPLETE, this.validateSessionReply);
this.post(_local1);
}
}
}//package com.facebook.session
Section 323
//IFacebookSession (com.facebook.session.IFacebookSession)
package com.facebook.session {
import flash.events.*;
import com.facebook.net.*;
import com.facebook.delegates.*;
public interface IFacebookSession extends IEventDispatcher {
function set secret(_arg1:String):void;
function get waiting_for_login():Boolean;
function refreshSession():void;
function get rest_url():String;
function post(_arg1:FacebookCall):IFacebookCallDelegate;
function set rest_url(_arg1:String):void;
function login(_arg1:Boolean):void;
function set session_key(_arg1:String):void;
function get secret():String;
function get api_version():String;
function get expires():Date;
function get session_key():String;
function get uid():String;
function get api_key():String;
function get is_connected():Boolean;
function verifySession():void;
}
}//package com.facebook.session
Section 324
//JSSession (com.facebook.session.JSSession)
package com.facebook.session {
import flash.events.*;
import com.facebook.net.*;
import com.facebook.delegates.*;
import com.facebook.events.*;
import com.facebook.*;
import com.facebook.commands.users.*;
public class JSSession extends EventDispatcher implements IFacebookSession {
public var _api_key:String;
public var as_swf_name:String;
protected var _session_key:String;
public function JSSession(_arg1:String, _arg2:String){
this._api_key = _arg1;
this.as_swf_name = _arg2;
}
public function get waiting_for_login():Boolean{
return (true);
}
public function get expires():Date{
return (null);
}
public function get rest_url():String{
return (null);
}
public function get session_key():String{
return (this._session_key);
}
public function set rest_url(_arg1:String):void{
}
public function refreshSession():void{
}
protected function onVerifyLogin(_arg1:FacebookEvent):void{
if (_arg1.success){
dispatchEvent(new FacebookEvent(FacebookEvent.CONNECT, false, false, true));
} else {
dispatchEvent(new FacebookEvent(FacebookEvent.CONNECT, false, false, false));
};
}
public function get uid():String{
return (null);
}
public function get is_sessionless():Boolean{
return (true);
}
public function verifySession():void{
var _local1:FacebookCall = new GetLoggedInUser();
_local1.addEventListener(FacebookEvent.COMPLETE, this.onVerifyLogin);
_local1.session = this;
var _local2 = _local1;
_local2.facebook_internal::initialize();
this.post(_local1);
}
public function set secret(_arg1:String):void{
}
public function login(_arg1:Boolean):void{
}
public function set session_key(_arg1:String):void{
this._session_key = _arg1;
}
public function post(_arg1:FacebookCall):IFacebookCallDelegate{
return (new JSDelegate(_arg1, this));
}
public function get secret():String{
return (null);
}
public function get api_version():String{
return ("1.0");
}
public function get api_key():String{
return (this._api_key);
}
public function get is_connected():Boolean{
return (true);
}
}
}//package com.facebook.session
Section 325
//WebSession (com.facebook.session.WebSession)
package com.facebook.session {
import flash.events.*;
import com.facebook.net.*;
import com.facebook.delegates.*;
import com.facebook.events.*;
import com.facebook.*;
public class WebSession extends EventDispatcher implements IFacebookSession {
facebook_internal var _uid:String;
protected var _is_connected:Boolean;// = false
public var login_url:String;// = "http://www.facebook.com/login.php"
protected var _secret:String;
protected var _rest_url:String;// = "http://api.facebook.com/restserver.php"
protected var _api_version:String;// = "1.0"
protected var _expires:Date;
protected var _session_key:String;
protected var _api_key:String;
public static const VIDEO_URL:String = "http://api-video.facebook.com/restserver.php";
public static const REST_URL:String = "http://api.facebook.com/restserver.php";
public function WebSession(_arg1:String, _arg2:String, _arg3:String=null){
this._api_key = _arg1;
this._session_key = _arg3;
this.secret = _arg2;
}
public function get waiting_for_login():Boolean{
return (false);
}
public function get rest_url():String{
return (this._rest_url);
}
public function set rest_url(_arg1:String):void{
this._rest_url = _arg1;
}
public function post(_arg1:FacebookCall):IFacebookCallDelegate{
this.rest_url = REST_URL;
if ((_arg1 is IUploadPhoto)){
return (new WebImageUploadDelegate(_arg1, this));
};
if ((_arg1 is IUploadVideo)){
this.rest_url = VIDEO_URL;
return (new VideoUploadDelegate(_arg1, this));
};
return (new WebDelegate(_arg1, this));
}
public function get secret():String{
return (this._secret);
}
public function get expires():Date{
return (this._expires);
}
public function get api_key():String{
return (this._api_key);
}
public function refreshSession():void{
}
public function get session_key():String{
return (this._session_key);
}
public function get uid():String{
return (facebook_internal::_uid);
}
public function get api_version():String{
return (this._api_version);
}
public function get is_connected():Boolean{
return (this._is_connected);
}
public function set secret(_arg1:String):void{
this._secret = _arg1;
}
public function verifySession():void{
if (this._session_key){
this._is_connected = true;
dispatchEvent(new FacebookEvent(FacebookEvent.CONNECT, false, false, true));
} else {
this._is_connected = false;
dispatchEvent(new FacebookEvent(FacebookEvent.CONNECT, false, false, false));
};
}
public function set api_version(_arg1:String):void{
this._api_version = _arg1;
}
public function login(_arg1:Boolean):void{
}
public function set session_key(_arg1:String):void{
this._session_key = _arg1;
}
}
}//package com.facebook.session
Section 326
//EmailHashUtil (com.facebook.utils.EmailHashUtil)
package com.facebook.utils {
import flash.utils.*;
import com.adobe.crypto.*;
public class EmailHashUtil {
protected static const crcTable:Array = createCRCTable();
protected static function CRC32(_arg1:ByteArray, _arg2:uint=0, _arg3:uint=0):uint{
if (_arg2 >= _arg1.length){
_arg2 = _arg1.length;
};
if (_arg3 == 0){
_arg3 = (_arg1.length - _arg2);
};
if ((_arg3 + _arg2) > _arg1.length){
_arg3 = (_arg1.length - _arg2);
};
var _local4:uint = 4294967295;
var _local5:uint = _arg2;
while (_local5 < _arg3) {
_local4 = (uint(crcTable[((_local4 ^ _arg1[_local5]) & 0xFF)]) ^ (_local4 >>> 8));
_local5++;
};
return ((_local4 ^ 4294967295));
}
protected static function createCRCTable():Array{
var _local2:uint;
var _local4:uint;
var _local1:Array = [];
var _local3:uint;
while (_local3 < 0x0100) {
_local2 = _local3;
_local4 = 0;
while (_local4 < 8) {
if ((_local2 & 1)){
_local2 = (3988292384 ^ (_local2 >>> 1));
} else {
_local2 = (_local2 >>> 1);
};
_local4++;
};
_local1.push(_local2);
_local3++;
};
return (_local1);
}
public static function createHash(_arg1:String):String{
var _local2:String;
_local2 = _arg1.replace(/\s/ig, "");
_local2 = _local2.toLowerCase();
var _local3:ByteArray = new ByteArray();
_local3.writeUTFBytes(_local2);
var _local4:uint = CRC32(_local3, 0, _local3.length);
var _local5:String = MD5.hash(_local2);
return (((_local4 + "_") + _local5));
}
}
}//package com.facebook.utils
Section 327
//FacebookArrayCollection (com.facebook.utils.FacebookArrayCollection)
package com.facebook.utils {
import flash.events.*;
import flash.utils.*;
public class FacebookArrayCollection extends EventDispatcher {
protected var _source:Array;
protected var hash:Dictionary;
protected var _type:Class;
public function FacebookArrayCollection(_arg1:Array=null, _arg2:Class=null){
this.reset();
this._type = _arg2;
this.initilizeSource(_arg1);
}
protected function verifyIndex(_arg1:uint):void{
if (this._source.length < _arg1){
throw (new RangeError((("Index: " + _arg1) + ", is out of range.")));
};
}
public function addItem(_arg1:Object):void{
this.addItemAt(_arg1, this.length);
}
public function get length():int{
return (this._source.length);
}
public function addItemAt(_arg1:Object, _arg2:uint):void{
if (this.hash[_arg1] != null){
throw (new Error("Item already exists."));
};
if (((!((this._type === null))) && (!((_arg1 is this._type))))){
throw (new TypeError((("This collection requires " + this._type) + " as the type.")));
};
this.hash[_arg1] = true;
this._source.splice(_arg2, 0, _arg1);
}
public function indexOf(_arg1:Object):int{
return (this._source.indexOf(_arg1));
}
public function removeItemAt(_arg1:uint):void{
this.verifyIndex(_arg1);
var _local2:Object = this._source[_arg1];
delete this.hash[_local2];
this._source.splice(_arg1, 1);
}
public function getItemAt(_arg1:uint):Object{
this.verifyIndex(_arg1);
return (this._source[_arg1]);
}
override public function toString():String{
return (this._source.join(", "));
}
public function reset():void{
this.hash = new Dictionary(true);
this._source = [];
}
protected function initilizeSource(_arg1:Array):void{
this._source = [];
if (_arg1 == null){
return;
};
var _local2:uint = _arg1.length;
var _local3:uint;
while (_local3 < _local2) {
this.addItem(_arg1[_local3]);
_local3++;
};
}
public function findItemByProperty(_arg1:String, _arg2:Object, _arg3:Boolean=false):Object{
var _local4:Object;
for (_local4 in this.hash) {
if (((((_arg3) && ((_arg1 in _local4)))) && ((_local4[_arg1] === _arg2)))){
return (_local4);
};
if (((((!(_arg3)) && ((_arg1 in _local4)))) && ((_local4[_arg1] == _arg2)))){
return (_local4);
};
};
return (null);
}
public function get type():Class{
return (this._type);
}
public function get source():Array{
return (this._source);
}
public function toArray():Array{
var _local1:Array = [];
var _local2:uint = this.length;
var _local3:uint;
while (_local3 < _local2) {
_local1.push(this.getItemAt(_local3));
_local3++;
};
return (_local1);
}
public function contains(_arg1:Object):Boolean{
return ((this.hash[_arg1] === true));
}
}
}//package com.facebook.utils
Section 328
//FacebookConnectUtil (com.facebook.utils.FacebookConnectUtil)
package com.facebook.utils {
import flash.events.*;
import flash.display.*;
import com.facebook.net.*;
import com.facebook.data.*;
import com.facebook.errors.*;
import com.facebook.*;
import flash.external.*;
public class FacebookConnectUtil extends EventDispatcher {
protected var _loaderInfo:LoaderInfo;
protected static var externalInterfaceCallId:Number = 0;
protected static var externalInterfaceCalls:Object = {};
protected static var hasCallback:Boolean = false;
public function FacebookConnectUtil(_arg1:LoaderInfo){
if (hasCallback == false){
ExternalInterface.addCallback("handleConnectCallback", handleConnectCallback);
hasCallback = true;
};
this._loaderInfo = _arg1;
}
public function getLoggedInUser():String{
return (ExternalInterface.call("FB.Connect.get_loggedInUser"));
}
public function callMethod(_arg1:String, ... _args):FacebookCall{
var _local3:String = ("bridgeFacebookCall_" + externalInterfaceCallId);
var _local4 = (((((((((((((((("function " + _local3) + "() { ") + "FB.Connect.") + _arg1) + "(") + JavascriptRequestHelper.formatParams(_args)) + ", ") + "function(result, exception) {") + "document.") + this._loaderInfo.parameters.as_swf_name) + ".handleConnectCallback(result, exception, ") + externalInterfaceCallId) + ")") + "}") + ");") + "}");
ExternalInterface.call(_local4);
var _local5:FacebookCall = new FacebookCall(_arg1);
externalInterfaceCalls[externalInterfaceCallId] = _local5;
return (_local5);
}
protected static function handleConnectCallback(_arg1:Object, _arg2:Object, _arg3:String):void{
var _local5:FacebookData;
var _local6:FacebookError;
var _local4:FacebookCall = externalInterfaceCalls[_arg3];
if (_arg1){
_local5 = new FacebookData();
_local5.rawResult = (_arg1 as String);
var _local7 = _local4;
_local7.facebook_internal::handelResult(_local5);
} else {
_local6 = new FacebookError();
_local6.rawResult = (_arg2 as String);
_local7 = _local4;
_local7.facebook_internal::handleError(_local6);
};
delete externalInterfaceCalls[_arg3];
}
}
}//package com.facebook.utils
Section 329
//FacebookDataUtils (com.facebook.utils.FacebookDataUtils)
package com.facebook.utils {
import com.adobe.serialization.json.*;
public class FacebookDataUtils {
public static function toJSONValuesArray(_arg1:Array):String{
if (_arg1 == null){
return (null);
};
var _local2:Array = [];
var _local3:Number = _arg1.length;
var _local4:Number = 0;
while (_local4 < _local3) {
_local2.push(JSON.encode(_arg1[_local4]));
_local4++;
};
return (_local2.join(","));
}
public static function formatDate(_arg1:String):Date{
var _local4:Array;
var _local5:Array;
if ((((_arg1 == "")) || ((_arg1 == null)))){
return (null);
};
var _local2:Date = new Date();
var _local3:Array = _arg1.split(" ");
if (_local3.length == 2){
_local4 = _local3[0].split("-");
_local5 = _local3[1].split(":");
_local2.setFullYear(_local4[0]);
_local2.setMonth((_local4[1] - 1));
_local2.setDate(_local4[2]);
_local2.setHours(_local5[0]);
_local2.setMinutes(_local5[1]);
_local2.setSeconds(_local5[2]);
} else {
_local2.setTime((parseInt(_arg1) * 1000));
};
return (_local2);
}
public static function facebookCollectionToJSONArray(_arg1:FacebookArrayCollection):String{
if (_arg1 == null){
return (null);
};
return (JSON.encode(_arg1.toArray()));
}
public static function toDateString(_arg1:Date):String{
if (_arg1 == null){
return (null);
};
_arg1.setDate((_arg1.date + 1));
return (((_arg1 == null)) ? null : _arg1.getTime().toString().slice(0, 10));
}
public static function supplantString(_arg1:String, _arg2:Object):String{
var _local4:String;
var _local3:String = _arg1;
for (_local4 in _arg2) {
_local3 = _local3.replace(new RegExp((("\\{" + _local4) + "\\}"), "g"), _arg2[_local4]);
};
return (_local3);
}
public static function toArrayString(_arg1:Array):String{
return (((_arg1 == null)) ? null : _arg1.join(","));
}
}
}//package com.facebook.utils
Section 330
//FacebookSessionUtil (com.facebook.utils.FacebookSessionUtil)
package com.facebook.utils {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import com.facebook.session.*;
import com.facebook.events.*;
import com.facebook.*;
import flash.system.*;
public class FacebookSessionUtil extends EventDispatcher {
protected var loaderInfo:LoaderInfo;
public var facebook:Facebook;
protected var secret:String;
protected var _activeSession:IFacebookSession;
protected var session_key:String;
protected var api_key:String;
public function FacebookSessionUtil(_arg1:String, _arg2:String, _arg3:LoaderInfo){
this.secret = ((_arg2 == null)) ? _arg3.parameters.fb_sig_ss : _arg2;
this.api_key = _arg1;
this.loaderInfo = _arg3;
var _local4:SharedObject = this.getStoredSession();
if (_local4.data.session_key){
this.session_key = _local4.data.session_key;
};
var _local5:Object = ((_arg3)!=null) ? _arg3.parameters : {};
if (_local5.fb_sig_session_key != null){
this.session_key = _local5.fb_sig_session_key;
};
if ((((_arg3.url.slice(0, 5) == "file:")) || ((Capabilities.playerType == "Desktop")))){
this._activeSession = new DesktopSession(_arg1, this.secret);
} else {
if (((((_local5.fb_sig_ss) && (_local5.fb_sig_api_key))) && (_local5.fb_sig_session_key))){
this._activeSession = new WebSession(_local5.fb_sig_api_key, _local5.fb_sig_ss, _local5.fb_sig_session_key);
(this._activeSession as WebSession).facebook_internal::_uid = _local5.fb_sig_user;
} else {
if (_local5.as_app_name){
this._activeSession = new JSSession(_arg1, _local5.as_app_name);
} else {
this._activeSession = new DesktopSession(_arg1, _arg2);
};
};
};
this._activeSession.session_key = this.session_key;
this._activeSession.addEventListener(FacebookEvent.VERIFYING_SESSION, this.onVerifyingSession);
this.facebook = new Facebook();
this.facebook.addEventListener(FacebookEvent.WAITING_FOR_LOGIN, this.handleWaitingForLogin);
this.facebook.addEventListener(FacebookEvent.CONNECT, this.onFacebookReady);
this.facebook.startSession(this._activeSession);
}
protected function getStoredSession():SharedObject{
return (SharedObject.getLocal((this.api_key + "_stored_session")));
}
protected function handleWaitingForLogin(_arg1:FacebookEvent):void{
dispatchEvent(_arg1);
}
public function logout():void{
this.getStoredSession().clear();
this.getStoredSession().flush();
this.facebook.logout();
}
protected function onFacebookReady(_arg1:FacebookEvent):void{
var _local2:SharedObject;
if (this.facebook.session_key){
_local2 = this.getStoredSession();
_local2.data.session_key = this.facebook.session_key;
_local2.data.stored_secret = this.facebook.secret;
_local2.flush(3000);
};
if (_arg1){
dispatchEvent(_arg1);
};
}
protected function onWaitingForLogin(_arg1:FacebookEvent):void{
dispatchEvent(_arg1);
}
public function validateLogin():void{
this.facebook.refreshSession();
}
public function get activeSession():IFacebookSession{
return (this._activeSession);
}
public function login(_arg1:Boolean=true):void{
this.facebook.login(_arg1);
}
public function onVerifyingSession(_arg1:FacebookEvent):void{
dispatchEvent(_arg1);
}
public function verifySession():void{
this._activeSession.verifySession();
}
protected function onVerifyLogin(_arg1:FacebookEvent):void{
this._activeSession.removeEventListener(FacebookEvent.CONNECT, this.onVerifyLogin);
if (_arg1.success){
this.onFacebookReady(null);
dispatchEvent(new FacebookEvent(FacebookEvent.CONNECT, false, false, true));
} else {
dispatchEvent(new FacebookEvent(FacebookEvent.CONNECT, false, false, false));
};
}
}
}//package com.facebook.utils
Section 331
//FacebookStreamXMLParser (com.facebook.utils.FacebookStreamXMLParser)
package com.facebook.utils {
import com.facebook.data.stream.*;
public class FacebookStreamXMLParser {
public static function createCommentsArray(_arg1:XMLList, _arg2:Namespace):Array{
var _local6:XML;
var _local7:PostCommentData;
var _local3:Array = [];
var _local4:uint = _arg1.length();
var _local5:uint;
while (_local5 < _local4) {
_local6 = _arg1[_local5];
_local7 = new PostCommentData();
_local7.fromid = FacebookXMLParserUtils.toStringValue(_local6._arg2::fromid[0]);
_local7.id = FacebookXMLParserUtils.toStringValue(_local6._arg2::id[0]);
_local7.text = FacebookXMLParserUtils.toStringValue(_local6._arg2::text[0]);
_local7.time = FacebookXMLParserUtils.toDate(_local6._arg2::time[0]);
_local3.push(_local7);
_local5++;
};
return (_local3);
}
protected static function createMediaArray(_arg1:XML, _arg2:Namespace):Array{
var _local7:XML;
var _local8:StreamMediaData;
if (_arg1 == null){
return (null);
};
var _local3:Array = [];
var _local4:XMLList = _arg1.children();
var _local5:uint = _local4.length();
var _local6:uint;
while (_local6 < _local5) {
_local7 = _local4[_local6];
_local8 = new StreamMediaData();
_local8.type = FacebookXMLParserUtils.toStringValue(_local7._arg2::type[0]);
_local8.alt = FacebookXMLParserUtils.toStringValue(_local7._arg2::alt[0]);
_local8.href = FacebookXMLParserUtils.toStringValue(_local7._arg2::href[0]);
_local8.src = FacebookXMLParserUtils.toStringValue(_local7._arg2::src[0]);
_local8.video = createVideoMedia(_local7._arg2::video[0], _arg2);
_local8.photo = createPhotoMedia(_local7._arg2::photo[0], _arg2);
_local3.push(_local8);
_local6++;
};
return (_local3);
}
public static function createStreamFilterCollection(_arg1:XML, _arg2:Namespace):GetFiltersData{
var _local8:XML;
var _local9:StreamFilterData;
var _local3:GetFiltersData = new GetFiltersData();
var _local4:StreamFilterCollection = new StreamFilterCollection();
var _local5:XMLList = _arg1.._arg2::stream_filter;
var _local6:uint = _local5.length();
var _local7:uint;
while (_local7 < _local6) {
_local8 = _local5[_local7];
_local9 = new StreamFilterData();
_local9.filter_key = FacebookXMLParserUtils.toStringValue(_local8._arg2::filter_key[0]);
_local9.icon_url = FacebookXMLParserUtils.toStringValue(_local8._arg2::icon_url[0]);
_local9.is_visible = FacebookXMLParserUtils.toBoolean(_local8._arg2::is_visible[0]);
_local9.name = FacebookXMLParserUtils.toStringValue(_local8._arg2::name[0]);
_local9.rank = FacebookXMLParserUtils.toNumber(_local8._arg2::rank[0]);
_local9.type = FacebookXMLParserUtils.toStringValue(_local8._arg2::type[0]);
_local9.uid = FacebookXMLParserUtils.toStringValue(_local8._arg2::uid[0]);
_local9.value = FacebookXMLParserUtils.toStringValue(_local8._arg2::value[0]);
_local4.addItem(_local9);
_local7++;
};
_local3.filters = _local4;
return (_local3);
}
protected static function createVideoMedia(_arg1:XML, _arg2:Namespace):VideoMedia{
if (_arg1 == null){
return (null);
};
var _local3:VideoMedia = new VideoMedia();
_local3.display_url = FacebookXMLParserUtils.toStringValue(_arg1._arg2::display_url[0]);
_local3.owner = FacebookXMLParserUtils.toStringValue(_arg1._arg2::owner[0]);
_local3.permalink = FacebookXMLParserUtils.toStringValue(_arg1._arg2::permalink[0]);
_local3.source_url = FacebookXMLParserUtils.toStringValue(_arg1._arg2::source_url[0]);
_local3.preview_img = FacebookXMLParserUtils.toStringValue(_arg1._arg2::preview_img[0]);
return (_local3);
}
protected static function createComments(_arg1:XML, _arg2:Namespace):CommentsData{
var _local3:CommentsData = new CommentsData();
_local3.can_remove = FacebookXMLParserUtils.toBoolean(_arg1._arg2::can_remove[0]);
_local3.can_post = FacebookXMLParserUtils.toBoolean(_arg1._arg2::can_post[0]);
_local3.count = FacebookXMLParserUtils.toNumber(_arg1._arg2::count[0]);
var _local4:XMLList = _arg1._arg2::posts.children();
_local3.posts = createCommentsArray(_local4, _arg2);
return (_local3);
}
public static function createGetCommentsData(_arg1:XML, _arg2:Namespace):GetCommentsData{
var _local3:XMLList = _arg1.._arg2::comment;
var _local4:GetCommentsData = new GetCommentsData();
_local4.comments = createCommentsArray(_local3, _arg2);
return (_local4);
}
public static function createStream(_arg1:XML, _arg2:Namespace):GetStreamData{
var _local6:uint;
var _local7:uint;
var _local10:XML;
var _local11:StreamStoryData;
var _local12:XML;
var _local13:AttachmentData;
var _local14:LikesData;
var _local15:XML;
var _local16:XML;
var _local17:ProfileData;
var _local18:XML;
var _local3:GetStreamData = new GetStreamData();
var _local4:StreamStoryCollection = new StreamStoryCollection();
var _local5:ProfileCollection = new ProfileCollection();
_local3.stories = _local4;
_local3.profiles = _local5;
var _local8:XMLList = _arg1._arg2::posts.children();
_local6 = _local8.length();
_local7 = 0;
while (_local7 < _local6) {
_local10 = _local8[_local7];
_local11 = new StreamStoryData();
_local11.sourceXML = _local10;
_local12 = _local10._arg2::attachment[0];
_local13 = new AttachmentData();
_local13.name = FacebookXMLParserUtils.toStringValue(_local12._arg2::name[0]);
_local13.text = FacebookXMLParserUtils.toStringValue(_local12._arg2::text[0]);
_local13.body = FacebookXMLParserUtils.toStringValue(_local12._arg2::body[0]);
_local13.icon = FacebookXMLParserUtils.toStringValue(_local12._arg2::icon[0]);
_local13.label = FacebookXMLParserUtils.toStringValue(_local12._arg2::label[0]);
_local13.media = createMediaArray(_local12._arg2::media[0], _arg2);
_local13.title = FacebookXMLParserUtils.toStringValue(_local12._arg2::title[0]);
_local13.href = FacebookXMLParserUtils.toStringValue(_local12._arg2::href[0]);
_local13.caption = FacebookXMLParserUtils.toStringValue(_local12._arg2::caption[0]);
_local13.description = FacebookXMLParserUtils.toStringValue(_local12._arg2::description[0]);
_local13.properties = FacebookXMLParserUtils.xmlListToObjectArray(_local12.._arg2::stream_property);
_local11.attachment = _local13;
_local11.actor_id = FacebookXMLParserUtils.toStringValue(_local10._arg2::actor_id[0]);
_local11.comments = createComments(_local10._arg2::comments[0], _arg2);
_local14 = new LikesData();
_local15 = _local10._arg2::likes[0];
_local14.can_like = FacebookXMLParserUtils.toBoolean(_local15._arg2::can_like[0]);
_local14.user_likes = FacebookXMLParserUtils.toBoolean(_local15._arg2::user_likes[0]);
_local14.count = FacebookXMLParserUtils.toNumber(_local15._arg2::count[0]);
_local14.friends = FacebookXMLParserUtils.toUIDArray(_local15._arg2::friends[0]);
_local14.sample = FacebookXMLParserUtils.toUIDArray(_local15._arg2::sample[0]);
_local14.href = FacebookXMLParserUtils.toStringValue(_local15._arg2::href[0]);
_local11.likes = _local14;
_local11.attribution = FacebookXMLParserUtils.toStringValue(_local10._arg2::attribution[0]);
_local11.app_id = FacebookXMLParserUtils.toStringValue(_local10._arg2::app_id[0]);
_local11.metadata = FacebookXMLParserUtils.nodeToObject(_local10._arg2::metadata);
_local11.message = FacebookXMLParserUtils.toStringValue(_local10._arg2::message[0]);
_local11.source_id = FacebookXMLParserUtils.toStringValue(_local10._arg2::source_id[0]);
_local11.target_id = FacebookXMLParserUtils.toStringValue(_local10._arg2::target_id[0]);
_local11.post_id = FacebookXMLParserUtils.toStringValue(_local10._arg2::post_id[0]);
_local11.updated_time = FacebookXMLParserUtils.toDate(_local10._arg2::updated_time[0]);
_local11.created_time = FacebookXMLParserUtils.toDate(_local10._arg2::created_time[0]);
_local11.type = FacebookXMLParserUtils.toNumber(_local10._arg2::type[0]);
_local11.viewer_id = FacebookXMLParserUtils.toStringValue(_local10._arg2::viewer_id[0]);
_local16 = _local10._arg2::privacy[0];
_local11.privacy = FacebookXMLParserUtils.toStringValue(_local16._arg2::value[0]);
_local11.filter_key = FacebookXMLParserUtils.toStringValue(_local10._arg2::filter_key[0]);
_local4.addItem(_local11);
_local7++;
};
var _local9:XMLList = _arg1._arg2::profiles.children();
_local6 = _local9.length();
_local7 = 0;
while (_local7 < _local6) {
_local17 = new ProfileData();
_local18 = _local9[_local7];
_local17.id = FacebookXMLParserUtils.toStringValue(_local18._arg2::id[0]);
_local17.name = FacebookXMLParserUtils.toStringValue(_local18._arg2::name[0]);
_local17.pic_square = FacebookXMLParserUtils.toStringValue(_local18._arg2::pic_square[0]);
_local17.url = FacebookXMLParserUtils.toStringValue(_local18._arg2::url[0]);
_local5.addItem(_local17);
_local7++;
};
_local3.albums = FacebookXMLParserUtils.createAlbumCollection(_arg1._arg2::albums[0], _arg2);
return (_local3);
}
protected static function createPhotoMedia(_arg1:XML, _arg2:Namespace):PhotoMedia{
if (_arg1 == null){
return (null);
};
var _local3:PhotoMedia = new PhotoMedia();
_local3.aid = FacebookXMLParserUtils.toStringValue(_arg1._arg2::aid[0]);
_local3.index = FacebookXMLParserUtils.toNumber(_arg1._arg2::index[0]);
_local3.owner = FacebookXMLParserUtils.toStringValue(_arg1._arg2::owner[0]);
_local3.pid = FacebookXMLParserUtils.toStringValue(_arg1._arg2::pid[0]);
return (_local3);
}
}
}//package com.facebook.utils
Section 332
//FacebookUserXMLParser (com.facebook.utils.FacebookUserXMLParser)
package com.facebook.utils {
import com.facebook.data.users.*;
import com.facebook.data.*;
public class FacebookUserXMLParser {
protected static function parseWorkHistory(_arg1:XML, _arg2:Namespace):Array{
var _local5:Object;
var _local6:FacebookWorkInfo;
var _local3:Array = [];
var _local4:XMLList = _arg1.children();
for each (_local5 in _local4) {
_local6 = new FacebookWorkInfo();
_local6.location = FacebookXMLParserUtils.createLocation(_local5._arg2::location[0], _arg2);
_local6.company_name = String(_local5._arg2::company_name);
_local6.description = String(_local5._arg2::description);
_local6.position = String(_local5._arg2::position);
_local6.start_date = FacebookDataUtils.formatDate(_local5._arg2::start_date);
_local6.end_date = FacebookDataUtils.formatDate(_local5._arg2::end_date);
_local3.push(_local6);
};
return (_local3);
}
protected static function createStatus(_arg1:XML, _arg2:Namespace):StatusData{
var _local3:StatusData = new StatusData();
_local3.message = String(_arg1._arg2::message);
_local3.time = FacebookDataUtils.formatDate(String(_arg1._arg2::time));
return (_local3);
}
protected static function parseEducationHistory(_arg1:XML, _arg2:Namespace):Array{
var _local5:Object;
var _local6:FacebookEducationInfo;
var _local7:XML;
var _local3:Array = [];
var _local4:XMLList = _arg1.children();
for each (_local5 in _local4) {
_local6 = new FacebookEducationInfo();
_local6.name = String(_local5._arg2::name);
_local6.year = String(_local5._arg2::year);
_local6.degree = String(_local5._arg2::degree);
_local6.concentrations = [];
for each (_local7 in _local5.concentration) {
_local6.concentrations.push(_local7);
};
_local3.push(_local6);
};
return (_local3);
}
public static function createFacebookUser(_arg1:XML, _arg2:Namespace):FacebookUser{
var _local6:XML;
var _local7:String;
var _local3:FacebookUser = new FacebookUser();
var _local4:XMLList = _arg1.children();
var _local5:uint = _local4.length();
var _local8:uint;
while (_local8 < _local5) {
_local6 = _local4[_local8];
_local7 = _local6.localName().toString();
switch (_local7){
case "status":
_local3[_local7] = createStatus(_local6, _arg2);
break;
case "affiliations":
_local3[_local7] = createAffiliations(_local6.children(), _arg2);
break;
case "hometown_location":
case "current_location":
_local3[_local7] = FacebookXMLParserUtils.createLocation(_local6, _arg2);
break;
case "profile_update_time":
_local3[_local7] = FacebookDataUtils.formatDate(_local6.toString());
break;
case "hs_info":
_local3.hs1_id = parseInt(_local6._arg2::hs1_id);
_local3.hs1_name = String(_local6._arg2::hs1_name);
_local3.hs2_id = parseInt(_local6._arg2::hs2_id);
_local3.hs2_name = String(_local6._arg2::hs2_name);
_local3.grad_year = String(_local6._arg2::grad_year);
break;
case "education_history":
_local3[_local7] = parseEducationHistory(_local6, _arg2);
break;
case "work_history":
_local3[_local7] = parseWorkHistory(_local6, _arg2);
break;
case "timezone":
case "notes_count":
case "wall_count":
_local3[_local7] = Number(_local6.toString());
break;
case "has_added_app":
case "is_app_user":
_local3[_local7] = FacebookXMLParserUtils.toBoolean(_local6);
break;
case "meeting_sex":
case "meeting_for":
case "email_hashes":
_local3[_local7] = toArray(_local6, _arg2);
break;
default:
if ((_local7 in _local3)){
_local3[_local7] = String(_local6);
};
};
_local8++;
};
return (_local3);
}
protected static function toArray(_arg1:XML, _arg2:Namespace):Array{
var _local3:Array = [];
var _local4:XMLList = _arg1.children();
var _local5:uint = _local4.length();
var _local6:uint;
while (_local6 < _local5) {
_local3.push(_local4[_local6].toString());
_local6++;
};
return (_local3);
}
protected static function createAffiliations(_arg1:XMLList, _arg2:Namespace):Array{
var _local4:*;
var _local5:FacebookNetwork;
var _local3:Array = [];
for each (_local4 in _arg1) {
_local5 = new FacebookNetwork();
_local5.nid = parseInt(_local4._arg2::nid);
_local5.name = String(_local4._arg2::name);
_local5.type = String(_local4._arg2::type);
_local5.status = String(_local4._arg2::status);
_local5.year = String(_local4._arg2::year);
_local3.push(_local5);
};
return (_local3);
}
}
}//package com.facebook.utils
Section 333
//FacebookXMLParserUtils (com.facebook.utils.FacebookXMLParserUtils)
package com.facebook.utils {
import com.facebook.data.*;
import flash.net.*;
import com.facebook.data.photos.*;
public class FacebookXMLParserUtils {
public static function createAlbumCollection(_arg1:XML, _arg2:Namespace):AlbumCollection{
var _local4:*;
var _local5:AlbumData;
var _local3:AlbumCollection = new AlbumCollection();
for each (_local4 in _arg1.._arg2::album) {
_local5 = new AlbumData();
_local5.aid = FacebookXMLParserUtils.toStringValue(_local4._arg2::aid[0]);
_local5.cover_pid = FacebookXMLParserUtils.toStringValue(_local4._arg2::cover_pid[0]);
_local5.owner = _local4._arg2::owner;
_local5.name = _local4._arg2::name;
_local5.created = FacebookXMLParserUtils.toDate(_local4._arg2::created);
_local5.modified = FacebookXMLParserUtils.toDate(_local4._arg2::modified);
_local5.description = _local4._arg2::description;
_local5.location = _local4._arg2::location;
_local5.link = _local4._arg2::link;
_local5.size = _local4._arg2::size;
_local5.visible = _local4._arg2::visible;
_local3.addAlbum(_local5);
};
return (_local3);
}
public static function toNumber(_arg1:XML):Number{
if (_arg1 == null){
return (NaN);
};
return (Number(_arg1.toString()));
}
public static function toStringValue(_arg1:XML):String{
if (_arg1 == null){
return (null);
};
return (_arg1.toString());
}
public static function toDate(_arg1:String):Date{
if (_arg1 == null){
return (null);
};
var _local2:String = _arg1;
while (_local2.length < 13) {
_local2 = (_local2 + "0");
};
var _local3:Date = new Date(Number(_local2));
return (_local3);
}
public static function xmlListToObjectArray(_arg1:XMLList):Array{
var _local2:Array = [];
if (_arg1 == null){
return (_local2);
};
var _local3:uint = _arg1.length();
var _local4:uint;
while (_local4 < _local3) {
_local2.push(xmlToObject(_arg1[_local4]));
_local4++;
};
return (_local2);
}
public static function toUIDArray(_arg1:XML):Array{
var _local2:Array = [];
if (_arg1 == null){
return (_local2);
};
var _local3:XMLList = _arg1.children();
var _local4:uint = _local3.length();
var _local5:uint;
while (_local5 < _local4) {
_local2.push(toNumber(_local3[_local5]));
_local5++;
};
return (_local2);
}
public static function toBoolean(_arg1:XML):Boolean{
if (_arg1 == null){
return (false);
};
return ((_arg1.toString() == "1"));
}
public static function createLocation(_arg1:XML, _arg2:Namespace):FacebookLocation{
var _local3:FacebookLocation = new FacebookLocation();
if (_arg1 == null){
return (_local3);
};
_local3.city = String(_arg1._arg2::city);
_local3.state = String(_arg1._arg2::state);
_local3.country = String(_arg1._arg2::country);
_local3.zip = String(_arg1._arg2::zip);
_local3.street = String(_arg1._arg2::street);
return (_local3);
}
public static function xmlToObject(_arg1:XML):Object{
var _local6:XML;
var _local2:Object = {};
var _local3:XMLList = _arg1.children();
var _local4:uint = _local3.length();
var _local5:uint;
while (_local5 < _local4) {
_local6 = _local3[_local5];
_local2[_local6.localName()] = _local6.toString();
_local5++;
};
return (_local2);
}
public static function xmlToUrlVariables(_arg1:XMLList):URLVariables{
var _local3:XML;
var _local2:URLVariables = new URLVariables();
for each (_local3 in _arg1) {
_local2[_local3.key.valueOf()] = _local3.value.valueOf();
};
return (_local2);
}
public static function nodeToObject(_arg1:XMLList):Object{
var _local3:XML;
var _local2:Object = {};
for each (_local3 in _arg1) {
_local2[_local3.key.valueOf()] = _local3.value.valueOf();
};
return (_local2);
}
public static function toArray(_arg1:XML):Array{
if (_arg1 == null){
return (null);
};
return (_arg1.toString().split(","));
}
}
}//package com.facebook.utils
Section 334
//FBJSBridgeUtil (com.facebook.utils.FBJSBridgeUtil)
package com.facebook.utils {
import flash.events.*;
import com.facebook.data.*;
import flash.net.*;
import com.facebook.events.*;
public class FBJSBridgeUtil extends EventDispatcher {
protected var _params:Array;
protected var _methodName:String;
public var fb_fbjs_connection:String;
public var _api_key:String;
public var fb_local_connection:String;
protected static var receiveConnection:LocalConnection;
protected static var connection:LocalConnection;
public function FBJSBridgeUtil(_arg1:String, _arg2:String, _arg3:String){
var api_key = _arg1;
var fb_local_connection = _arg2;
var fb_fbjs_connection = _arg3;
super();
this._api_key = api_key;
this.fb_local_connection = fb_local_connection;
this.fb_fbjs_connection = fb_fbjs_connection;
if (connection == null){
connection = new LocalConnection();
connection.allowInsecureDomain("*");
connection.allowDomain("*");
connection.addEventListener(AsyncErrorEvent.ASYNC_ERROR, this.onSendError, false, 0, true);
connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.onSendError, false, 0, true);
connection.addEventListener(StatusEvent.STATUS, this.onSendStatus, false, 0, true);
};
if (receiveConnection == null){
receiveConnection = new LocalConnection();
receiveConnection.allowInsecureDomain("apps.facebook.com", "apps.*.facebook.com");
receiveConnection.allowDomain("apps.facebook.com", "apps.*.facebook.com");
receiveConnection.addEventListener(AsyncErrorEvent.ASYNC_ERROR, this.onReceiveError, false, 0, true);
receiveConnection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.onReceiveError, false, 0, true);
receiveConnection.addEventListener(StatusEvent.STATUS, this.onReceiveStatus, false, 0, true);
receiveConnection.client = {asFunction:this.asFunction};
try {
receiveConnection.connect(fb_fbjs_connection);
} catch(e) {
};
};
}
protected function onSendStatus(_arg1:StatusEvent):void{
dispatchEvent(_arg1);
}
protected function onSendError(_arg1:ErrorEvent):void{
dispatchEvent(_arg1);
}
protected function asFunction(... _args):void{
var _local2:FBJSData = new FBJSData();
_local2.results = _args;
dispatchEvent(new FacebookEvent(FacebookEvent.COMPLETE, false, false, true, _local2));
}
protected function onReceiveError(_arg1:ErrorEvent):void{
dispatchEvent(_arg1);
}
protected function execute():void{
connection.send(this.fb_local_connection, "callFBJS", this._methodName, this._params);
}
protected function onReceiveStatus(_arg1:StatusEvent):void{
dispatchEvent(_arg1);
}
public function close():void{
try {
connection.close();
} catch(e) {
};
try {
receiveConnection.close();
} catch(e) {
};
}
public function call(_arg1:String, ... _args):void{
this._methodName = _arg1;
this._params = _args;
this.execute();
}
}
}//package com.facebook.utils
Section 335
//IFacebookResultParser (com.facebook.utils.IFacebookResultParser)
package com.facebook.utils {
import com.facebook.data.*;
import com.facebook.errors.*;
public interface IFacebookResultParser {
function parse(_arg1:String, _arg2:String):FacebookData;
function validateFacebookResponce(_arg1:String):FacebookError;
}
}//package com.facebook.utils
Section 336
//JavascriptRequestHelper (com.facebook.utils.JavascriptRequestHelper)
package com.facebook.utils {
import flash.utils.*;
import flash.net.*;
public class JavascriptRequestHelper {
public static function objectToString(_arg1:Object):String{
var _local3:String;
var _local2:Array = [];
for (_local3 in _arg1) {
_local2.push((((_local3 + ": ") + quote(_arg1[_local3])) + ""));
};
return ((("{" + _local2.join(", ")) + " }"));
}
public static function quote(_arg1:String):String{
var _local2:RegExp = /[\\"\r\n]/g;
return ((("\"" + _arg1.replace(_local2, _quote)) + "\""));
}
public static function formatParams(_arg1:Array):String{
var _local5:Object;
var _local6:String;
var _local2:Array = [];
var _local3:uint = _arg1.length;
var _local4:uint;
while (_local4 < _local3) {
_local5 = _arg1[_local4];
_local6 = getQualifiedClassName(_local5);
switch (_local6){
case "Array":
_local5 = (("[" + _local5.join(", ")) + "]");
break;
case "Object":
_local5 = objectToString(_local5);
break;
case "String":
default:
_local5 = (("\"" + _local5) + "\"");
break;
};
_local2.push(_local5);
_local4++;
};
return (_local2.join(", "));
}
protected static function _quote(_arg1:String, ... _args):String{
switch (_arg1){
case "\\":
return ("\\\\");
case "\r":
return ("\\r");
case "\n":
return ("\\n");
case "\"":
return ("\\\"");
};
return (null);
}
public static function formatURLVariables(_arg1:URLVariables):String{
var _local5:String;
var _local2:Object = {method:true, sig:true, api_key:true, call_id:true};
var _local3:Boolean;
var _local4:Object = {};
for (_local5 in _arg1) {
if (_local2[_local5]){
} else {
_local3 = true;
_local4[_local5] = _arg1[_local5];
};
};
return ((_local3) ? objectToString(_local4) : "null");
}
}
}//package com.facebook.utils
Section 337
//PlayerUtils (com.facebook.utils.PlayerUtils)
package com.facebook.utils {
import flash.system.*;
public class PlayerUtils {
protected static var versionObj:Object;
public static function get internalBuildNumber():Number{
return (parseVersionString().internalBuildNumber);
}
public static function get platform():String{
return (parseVersionString().platform);
}
public static function get buildNumber():Number{
return (parseVersionString().buildNumber);
}
public static function get minorVersion():Number{
return (parseVersionString().minorVersion);
}
public static function parseVersionString():Object{
if (versionObj != null){
return (versionObj);
};
var _local1:String = Capabilities.version;
versionObj = {};
var _local2:Array = _local1.split(" ");
versionObj.platform = _local2[0];
_local2.shift();
_local2 = _local2[0].split(",");
versionObj.majorVersion = Number(_local2[0]);
versionObj.minorVersion = Number(_local2[1]);
versionObj.buildNumber = Number(_local2[2]);
versionObj.internalBuildNumber = Number(_local2[3]);
return (versionObj);
}
public static function get majorVersion():Number{
return (parseVersionString().majorVersion);
}
}
}//package com.facebook.utils
Section 338
//PostRequest (com.facebook.utils.PostRequest)
package com.facebook.utils {
import flash.utils.*;
public class PostRequest {
protected var _boundary:String;// = "-----"
protected var postData:ByteArray;
public function PostRequest(){
this.createPostData();
}
public function getPostData():ByteArray{
this.postData.position = 0;
return (this.postData);
}
protected function writeBoundary():void{
this.writeDoubleDash();
var _local1:Number = 0;
while (_local1 < this.boundary.length) {
this.postData.writeByte(this.boundary.charCodeAt(_local1));
_local1++;
};
}
protected function writeDoubleDash():void{
this.postData.writeShort(0x2D2D);
}
public function writeFileData(_arg1:String, _arg2:ByteArray, _arg3:String):void{
var _local4:String;
this.writeBoundary();
this.writeLineBreak();
_local4 = "Content-Disposition: form-data; filename=\"";
var _local5:Number = 0;
while (_local5 < _local4.length) {
this.postData.writeByte(_local4.charCodeAt(_local5));
_local5++;
};
this.postData.writeUTFBytes(_arg1);
this.writeQuotationMark();
this.writeLineBreak();
_local4 = _arg3;
_local5 = 0;
while (_local5 < _local4.length) {
this.postData.writeByte(_local4.charCodeAt(_local5));
_local5++;
};
this.writeLineBreak();
this.writeLineBreak();
_arg2.position = 0;
this.postData.writeBytes(_arg2, 0, _arg2.length);
this.writeLineBreak();
}
public function createPostData():void{
this.postData = new ByteArray();
this.postData.endian = Endian.BIG_ENDIAN;
}
public function writePostData(_arg1:String, _arg2:String):void{
var _local3:String;
this.writeBoundary();
this.writeLineBreak();
_local3 = (("Content-Disposition: form-data; name=\"" + _arg1) + "\"");
var _local4:uint = _local3.length;
var _local5:Number = 0;
while (_local5 < _local4) {
this.postData.writeByte(_local3.charCodeAt(_local5));
_local5++;
};
this.writeLineBreak();
this.writeLineBreak();
this.postData.writeUTFBytes(_arg2);
this.writeLineBreak();
}
public function get boundary():String{
return (this._boundary);
}
protected function writeLineBreak():void{
this.postData.writeShort(3338);
}
public function close():void{
this.writeBoundary();
this.writeDoubleDash();
}
protected function writeQuotationMark():void{
this.postData.writeByte(34);
}
public function set boundary(_arg1:String):void{
this._boundary = _arg1;
}
}
}//package com.facebook.utils
Section 339
//ValidationUtils (com.facebook.utils.ValidationUtils)
package com.facebook.utils {
public class ValidationUtils {
public static function validateLength(_arg1:String):Boolean{
var _local2:Boolean = ((((_arg1 == null)) || ((_arg1.length >= 0xFF)))) ? false : true;
return (_local2);
}
public static function isDataObjectTypeValid(_arg1:String):Boolean{
if ((((_arg1 == null)) || ((_arg1.length > 32)))){
return (false);
};
var _local2:RegExp = new RegExp("[^a-z_0-9]", "ig");
return (!(_local2.exec(_arg1)));
}
}
}//package com.facebook.utils
Section 340
//Facebook (com.facebook.Facebook)
package com.facebook {
import flash.events.*;
import com.facebook.net.*;
import flash.net.*;
import com.facebook.delegates.*;
import com.facebook.session.*;
import com.facebook.events.*;
import com.facebook.commands.auth.*;
public class Facebook extends EventDispatcher {
public var waiting_for_login:Boolean;
protected var _currentSession:IFacebookSession;
public var connectionErrorMessage:String;
public function Facebook():void{
}
public function post(_arg1:FacebookCall):FacebookCall{
var _local2:IFacebookCallDelegate;
if (this._currentSession){
_arg1.session = this._currentSession;
_arg1.initialize();
_local2 = this._currentSession.post(_arg1);
_arg1.delegate = _local2;
} else {
throw (new Error("Cannot post a call; no session has been set."));
};
return (_arg1);
}
public function startSession(_arg1:IFacebookSession):void{
this._currentSession = _arg1;
if (this._currentSession.is_connected){
dispatchEvent(new FacebookEvent(FacebookEvent.CONNECT, false, false, true));
} else {
this._currentSession.addEventListener(FacebookEvent.CONNECT, this.onSessionConnected);
this._currentSession.addEventListener(FacebookEvent.WAITING_FOR_LOGIN, this.onWaitingForLogin);
};
}
public function grantExtendedPermission(_arg1:String):void{
navigateToURL(new URLRequest(((((("http://www.facebook.com/authorize.php?api_key=" + this.api_key) + "&v=") + this.api_version) + "&ext_perm=") + _arg1)), "_blank");
}
public function refreshSession():void{
this._currentSession.refreshSession();
}
public function logout():void{
var _local1:ExpireSession = new ExpireSession();
_local1.addEventListener(FacebookEvent.COMPLETE, this.onLoggedOut, false, 0, true);
this.post(_local1);
}
public function get api_version():String{
return ((this._currentSession) ? this._currentSession.api_version : null);
}
protected function onLoggedOut(_arg1:FacebookEvent):void{
if (_arg1.success == true){
this._currentSession.session_key = null;
};
dispatchEvent(new FacebookEvent(FacebookEvent.LOGOUT, false, false, _arg1.success, _arg1.data, _arg1.error));
}
protected function onWaitingForLogin(_arg1:FacebookEvent):void{
this.waiting_for_login = true;
dispatchEvent(new FacebookEvent(FacebookEvent.WAITING_FOR_LOGIN));
}
public function login(_arg1:Boolean):void{
this._currentSession.login(_arg1);
}
public function get secret():String{
return ((this._currentSession) ? this._currentSession.secret : null);
}
public function grantPermission(_arg1:Boolean):void{
var _local2:String = ((("http://www.facebook.com/login.php?return_session=" + (_arg1) ? 1 : 0) + "&api_key=") + this.api_key);
navigateToURL(new URLRequest(_local2), "_blank");
}
public function get is_connected():Boolean{
return ((this._currentSession) ? this._currentSession.is_connected : false);
}
public function get session_key():String{
return ((this._currentSession) ? this._currentSession.session_key : null);
}
public function get uid():String{
return ((this._currentSession) ? this._currentSession.uid : null);
}
protected function onSessionConnected(_arg1:FacebookEvent):void{
var _local2:IFacebookSession = (_arg1.target as IFacebookSession);
dispatchEvent(_arg1);
}
public function get api_key():String{
return ((this._currentSession) ? this._currentSession.api_key : null);
}
public function get expires():Date{
return ((this._currentSession) ? this._currentSession.expires : new Date());
}
}
}//package com.facebook
Section 341
//facebook_internal (com.facebook.facebook_internal)
package com.facebook {
public namespace facebook_internal = "http://api.facebook.com/1.0/";
}//package com.facebook
Section 342
//KongregateEvent (com.kongregate.as3.client.events.KongregateEvent)
package com.kongregate.as3.client.events {
import flash.events.*;
public class KongregateEvent extends Event {
public static const COMPLETE:String = "component_api_available";
public function KongregateEvent(_arg1:String){
super(_arg1);
}
}
}//package com.kongregate.as3.client.events
Section 343
//AbstractShadowService (com.kongregate.as3.client.services.AbstractShadowService)
package com.kongregate.as3.client.services {
import flash.events.*;
public class AbstractShadowService extends EventDispatcher {
protected function alert(_arg1:String, _arg2:String, _arg3="", _arg4:String=""):void{
trace(((((((("Kongregate API: " + _arg1) + ".") + _arg2) + "(") + _arg3) + ") ") + _arg4));
}
}
}//package com.kongregate.as3.client.services
Section 344
//HighScoreServiceShadow (com.kongregate.as3.client.services.HighScoreServiceShadow)
package com.kongregate.as3.client.services {
public class HighScoreServiceShadow extends AbstractShadowService implements IHighScoreServices {
private var mode:String;
public function HighScoreServiceShadow(){
mode = "";
}
public function submit(_arg1:Number, _arg2:String=null):void{
alert("IHighScoreServices", "submit", arguments);
}
public function connect():Boolean{
alert("IKongregateServices", "connect");
return (true);
}
public function requestList(_arg1:Function):void{
alert("IHighScoreServices", "requestList", "", (("[Mode: " + mode) + "]"));
_arg1({success:false});
}
public function setMode(_arg1:String):void{
alert("IHighScoreServices", "setMode", arguments);
this.mode = _arg1;
}
}
}//package com.kongregate.as3.client.services
Section 345
//IHighScoreServices (com.kongregate.as3.client.services.IHighScoreServices)
package com.kongregate.as3.client.services {
public interface IHighScoreServices {
function setMode(_arg1:String):void;
function submit(_arg1:Number, _arg2:String=null):void;
function requestList(_arg1:Function):void;
}
}//package com.kongregate.as3.client.services
Section 346
//IKongregateServices (com.kongregate.as3.client.services.IKongregateServices)
package com.kongregate.as3.client.services {
import flash.events.*;
public interface IKongregateServices extends IEventDispatcher {
function getPlayerInfo(_arg1:Function):void;
function connect(_arg1:Number=-1):Boolean;
}
}//package com.kongregate.as3.client.services
Section 347
//IStatServices (com.kongregate.as3.client.services.IStatServices)
package com.kongregate.as3.client.services {
public interface IStatServices {
function submitArray(_arg1:Array):void;
function submit(_arg1:String, _arg2:Number):void;
}
}//package com.kongregate.as3.client.services
Section 348
//IUserServices (com.kongregate.as3.client.services.IUserServices)
package com.kongregate.as3.client.services {
public interface IUserServices {
function getName():String;
function getPlayerInfo(_arg1:Function):void;
}
}//package com.kongregate.as3.client.services
Section 349
//KongregateServiceShadow (com.kongregate.as3.client.services.KongregateServiceShadow)
package com.kongregate.as3.client.services {
public class KongregateServiceShadow extends AbstractShadowService implements IKongregateServices {
public function getName():String{
alert("IKongregateServices", "getName");
return ("Guest");
}
public function connect(_arg1:Number=-1):Boolean{
alert("IKongregateServices", "connect", arguments);
return (true);
}
public function getPlayerInfo(_arg1:Function):void{
alert("IKongregateServices", "getPlayerInfo");
_arg1(new Object());
}
}
}//package com.kongregate.as3.client.services
Section 350
//StatServiceShadow (com.kongregate.as3.client.services.StatServiceShadow)
package com.kongregate.as3.client.services {
public class StatServiceShadow extends AbstractShadowService implements IStatServices {
public function submitArray(_arg1:Array):void{
alert("IStatServices", "submitArray", arguments);
}
public function submit(_arg1:String, _arg2:Number):void{
alert("IStatServices", "submitStat", arguments);
}
}
}//package com.kongregate.as3.client.services
Section 351
//UserServiceShadow (com.kongregate.as3.client.services.UserServiceShadow)
package com.kongregate.as3.client.services {
public class UserServiceShadow extends AbstractShadowService implements IUserServices {
public function getName():String{
alert("UserService", "getName");
return ("Guest");
}
public function getPlayerInfo(_arg1:Function):void{
alert("UserService", "getPlayerInfo");
_arg1({isGuest:true, name:"Guest", points:0, level:0, isMode:false, isAdmin:false, isDeveloper:false, avatarPath:"", chatAvatarPath:""});
}
}
}//package com.kongregate.as3.client.services
Section 352
//IAPIBootstrap (com.kongregate.as3.client.IAPIBootstrap)
package com.kongregate.as3.client {
import flash.events.*;
import flash.display.*;
public interface IAPIBootstrap {
function init(_arg1:Event=null, _arg2:Stage=null):void;
function hideLog():void;
function showLog(_arg1:int=0):void;
}
}//package com.kongregate.as3.client
Section 353
//KongregateAPI (com.kongregate.as3.client.KongregateAPI)
package com.kongregate.as3.client {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import com.kongregate.as3.client.events.*;
import com.kongregate.as3.client.services.*;
import flash.system.*;
import flash.errors.*;
public class KongregateAPI extends Sprite {
private const VERSION:Number = 1;
private var loader:Loader;
private var loadedDomain:ApplicationDomain;
private static const CLASS_USER:String = "com.kongregate.as3.client.services.UserServices";
private static const CLASS_STATS:String = "com.kongregate.as3.client.services.StatServices";
private static const CLASS_SERVICES:String = "com.kongregate.as3.client.services.KongregateServices";
private static const CLASS_SCORES:String = "com.kongregate.as3.client.services.HighScoreServices";
private static const DEBUG_API_URL:String = "//Linuxpc/kongregate/public/flash/API_AS3.swf";
private static var _connected:Boolean;
private static var kUser:IUserServices;
private static var _loaded:Boolean;
private static var kServices:IKongregateServices;
private static var kScores:IHighScoreServices;
private static var mInstance:KongregateAPI;
private static var kStats:IStatServices;
private static var kAPI:IAPIBootstrap;
public function KongregateAPI(){
if (mInstance != null){
throw (new Error("Warning: KongregateAPI has been added to stage more than once or accessed improperly. Use getInstance() or a stage reference to access."));
};
mInstance = this;
this.addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true);
}
public function get loaded():Boolean{
return (_loaded);
}
public function get connected():Boolean{
return (_connected);
}
private function alertConnected(_arg1:TimerEvent=null):void{
var _local2:KongregateEvent;
var _local3:Boolean;
_local2 = new KongregateEvent(KongregateEvent.COMPLETE);
_local3 = this.dispatchEvent(_local2);
}
private function init(_arg1:Event):void{
var _local2:Object;
var _local3:String;
var _local4:URLRequest;
var _local5:LoaderContext;
this.removeEventListener(Event.ADDED_TO_STAGE, init);
_loaded = false;
_connected = false;
_local2 = LoaderInfo(root.loaderInfo).parameters;
_local3 = _local2.api_path;
if (_local3 == null){
trace("Alert: Kongregate API could not be loaded, due to local testing. API will load when the game is uploaded.");
createShadowServices();
return;
};
Security.allowDomain("*.kongregate.com");
Security.allowDomain("kongregatetrunk.com");
_local4 = new URLRequest(_local3);
_local5 = new LoaderContext(false);
_local5.applicationDomain = ApplicationDomain.currentDomain;
_local5.securityDomain = SecurityDomain.currentDomain;
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loader.load(_local4, _local5);
}
public function get api():IAPIBootstrap{
return (kAPI);
}
private function loadComplete(_arg1:Event):void{
getServices();
}
public function get scores():IHighScoreServices{
return (kScores);
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
throw (new IOError(("API file not found. " + _arg1)));
}
public function get services():IKongregateServices{
return (kServices);
}
public function get stats():IStatServices{
return (kStats);
}
private function createShadowServices():void{
var _local1:Timer;
trace(">>> Kongregate Shadow Services instantiated for local development..");
kServices = new KongregateServiceShadow();
kScores = new HighScoreServiceShadow();
kStats = new StatServiceShadow();
kUser = new UserServiceShadow();
_local1 = new Timer(200, 1);
_local1.addEventListener(TimerEvent.TIMER_COMPLETE, alertConnected);
_local1.start();
_connected = true;
}
public function get user():IUserServices{
return (kUser);
}
private function getServices():void{
var _local1:ApplicationDomain;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = ApplicationDomain.currentDomain;
kAPI = IAPIBootstrap(loader.getChildAt(0));
this.addChild(loader);
_local2 = _local1.getDefinition(CLASS_SERVICES);
trace(_local2);
kServices = _local2.getInstance();
_local3 = _local1.getDefinition(CLASS_SCORES);
kScores = _local3.getInstance();
_local4 = _local1.getDefinition(CLASS_STATS);
kStats = _local4.getInstance();
_local5 = _local1.getDefinition(CLASS_USER);
kUser = _local5.getInstance();
kServices.connect(VERSION);
_loaded = true;
_connected = true;
alertConnected();
}
public static function getInstance():KongregateAPI{
if (!mInstance){
throw (new IllegalOperationError("You must add the Kongregate API component to the stage before attempting to access it."));
};
return (mInstance);
}
}
}//package com.kongregate.as3.client
Section 354
//Config (defclass.SWFStats.Config)
package defclass.SWFStats {
import flash.utils.*;
public class Config {
public static const LevelLabels:Dictionary = new Dictionary();
public static const GUID:String = "c7780af6-d01e-4cfd-ab4e-59bfbca4e6b7";
public static const LevelCounterMetrics:Dictionary = new Dictionary();
public static const ScoreTables:Dictionary = new Dictionary();
public static const LevelRangedMetrics:Dictionary = new Dictionary();
public static const CustomMetrics:Dictionary = new Dictionary();
public static const SWFID:int = 82;
public function Config(){
super();
}
}
}//package defclass.SWFStats
Section 355
//Tracker (defclass.SWFStats.Tracker)
package defclass.SWFStats {
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
public class Tracker {
public static const Random:Number = Math.random();
private static const Ping:Timer = new Timer(30000);
public static var Initialised:Boolean = false;
public static var SourceUrl:String;
public static var DebugMode:Boolean = true;
public function Tracker(){
super();
}
public static function LogView():void{
var sendaction:URLLoader;
if (SourceUrl == null){
return;
};
if (DebugMode){
trace("SWFStats.Tracker.LogView");
};
sendaction = new URLLoader();
sendaction.addEventListener(IOErrorEvent.IO_ERROR, ErrorHandler);
sendaction.load(new URLRequest(((((((("http://tracker.swfstats.com/games/view.aspx?guid=" + Config.GUID) + "&swfid=") + Config.SWFID) + "&url=") + SourceUrl) + "&") + Random)));
Ping.addEventListener(TimerEvent.TIMER, PingServer);
Ping.start();
}
public static function ErrorHandler(e:IOErrorEvent):void{
if (DebugMode){
trace("** ERROR COMPLETING URL REQUEST TO SWFSTATS **");
};
SourceUrl = null;
}
private static function PingServer(e:Event):void{
var sendaction:URLLoader;
if (SourceUrl == null){
return;
};
if (DebugMode){
trace("SWFStats.Tracker.PingServer");
};
sendaction = new URLLoader();
sendaction.addEventListener(IOErrorEvent.IO_ERROR, ErrorHandler);
sendaction.load(new URLRequest(((((((("http://tracker.swfstats.com/games/ping.aspx?guid=" + Config.GUID) + "&swfid=") + Config.SWFID) + "&url=") + SourceUrl) + "&") + Random)));
}
public static function Initialise(defaulturl:String, turnoffdebugmode:Boolean=false):void{
var defaulturl = defaulturl;
var turnoffdebugmode = turnoffdebugmode;
DebugMode = (turnoffdebugmode) ? false : (Security.sandboxType == "localTrusted");
if (DebugMode){
trace("SWFStats.Tracker.Initialise");
};
if ((((Config.SWFID == 0)) || ((Config.GUID == "")))){
if (DebugMode){
trace("** ERROR YOU MUST COPY YOUR DATA INTO CONFIG.AS **");
trace(" You have not copied your settings into SWFStats\\Config.as.");
trace(" Solution:");
trace(" 1) Go to http://my.swfstats.com/");
trace(" 2) Select your game and go into the 'API Code' section");
trace(" 3) Copy your data into SWFStats\\Config.as");
};
return;
};
Initialised = true;
if (((!((defaulturl.indexOf("http://") == 0))) && (!((Security.sandboxType == "localTrusted"))))){
return;
};
SourceUrl = GetUrl(defaulturl);
Security.loadPolicyFile("http://tracker.swfstats.com/crossdomain.xml");
Security.loadPolicyFile("http://utils.swfstats.com/crossdomain.xml");
//unresolved jump
var _slot1 = s;
SourceUrl = null;
return;
if (DebugMode){
trace("** ERROR COULD NOT LOAD SWFSTATS POLICY FILE **");
};
}
public static function LogPlay():void{
var sendaction:URLLoader;
if (SourceUrl == null){
return;
};
if (DebugMode){
trace("SWFStats.Tracker.LogPlay");
};
sendaction = new URLLoader();
sendaction.addEventListener(IOErrorEvent.IO_ERROR, ErrorHandler);
sendaction.load(new URLRequest(((((((("http://tracker.swfstats.com/games/play.aspx?guid=" + Config.GUID) + "&swfid=") + Config.SWFID) + "&url=") + SourceUrl) + "&") + Random)));
}
private static function GetUrl(defaulturl:String):String{
var url:String;
var defaulturl = defaulturl;
url = String(ExternalInterface.call("window.location.href.toString"));
//unresolved jump
var _slot1 = s;
url = ((defaulturl)!=null) ? defaulturl : "";
return (((url)!="null") ? url : "");
}
}
}//package defclass.SWFStats
Section 356
//bt_gomain_25 (flysquirrelfly_fla.bt_gomain_25)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class bt_gomain_25 extends MovieClip {
public function bt_gomain_25(){
super();
addFrameScript(0, frame1, 17, frame18, 21, frame22);
}
function frame18(){
stop();
}
function frame1(){
stop();
}
function frame22(){
gotoAndStop(1);
}
}
}//package flysquirrelfly_fla
Section 357
//bt_incmusic_28 (flysquirrelfly_fla.bt_incmusic_28)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class bt_incmusic_28 extends MovieClip {
public function bt_incmusic_28(){
super();
addFrameScript(0, frame1, 17, frame18, 21, frame22);
}
function frame18(){
stop();
}
function frame1(){
stop();
}
function frame22(){
gotoAndStop(1);
}
}
}//package flysquirrelfly_fla
Section 358
//bt_incsound_27 (flysquirrelfly_fla.bt_incsound_27)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class bt_incsound_27 extends MovieClip {
public function bt_incsound_27(){
super();
addFrameScript(0, frame1, 17, frame18, 21, frame22);
}
function frame18(){
stop();
}
function frame1(){
stop();
}
function frame22(){
gotoAndStop(1);
}
}
}//package flysquirrelfly_fla
Section 359
//bt_ok_24 (flysquirrelfly_fla.bt_ok_24)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class bt_ok_24 extends MovieClip {
public function bt_ok_24(){
super();
addFrameScript(0, frame1, 16, frame17, 20, frame21);
}
function frame1(){
stop();
}
function frame17(){
stop();
}
function frame21(){
gotoAndStop(1);
}
}
}//package flysquirrelfly_fla
Section 360
//bt_resultacorn_144 (flysquirrelfly_fla.bt_resultacorn_144)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class bt_resultacorn_144 extends MovieClip {
public function bt_resultacorn_144(){
super();
addFrameScript(0, frame1, 17, frame18, 21, frame22);
}
function frame18(){
stop();
}
function frame1(){
stop();
}
function frame22(){
gotoAndStop(1);
}
}
}//package flysquirrelfly_fla
Section 361
//bt_resultawards_146 (flysquirrelfly_fla.bt_resultawards_146)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class bt_resultawards_146 extends MovieClip {
public function bt_resultawards_146(){
super();
addFrameScript(0, frame1, 16, frame17, 20, frame21);
}
function frame1(){
stop();
}
function frame17(){
stop();
}
function frame21(){
gotoAndStop(1);
}
}
}//package flysquirrelfly_fla
Section 362
//bt_resultdistance_143 (flysquirrelfly_fla.bt_resultdistance_143)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class bt_resultdistance_143 extends MovieClip {
public function bt_resultdistance_143(){
super();
addFrameScript(0, frame1, 17, frame18, 21, frame22);
}
function frame18(){
stop();
}
function frame1(){
stop();
}
function frame22(){
gotoAndStop(1);
}
}
}//package flysquirrelfly_fla
Section 363
//bt_resultheight_141 (flysquirrelfly_fla.bt_resultheight_141)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class bt_resultheight_141 extends MovieClip {
public function bt_resultheight_141(){
super();
addFrameScript(0, frame1, 16, frame17, 20, frame21);
}
function frame1(){
stop();
}
function frame17(){
stop();
}
function frame21(){
gotoAndStop(1);
}
}
}//package flysquirrelfly_fla
Section 364
//bt_resultmoney_140 (flysquirrelfly_fla.bt_resultmoney_140)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class bt_resultmoney_140 extends MovieClip {
public function bt_resultmoney_140(){
super();
addFrameScript(0, frame1, 16, frame17, 20, frame21);
}
function frame1(){
stop();
}
function frame17(){
stop();
}
function frame21(){
gotoAndStop(1);
}
}
}//package flysquirrelfly_fla
Section 365
//bt_resultobject_145 (flysquirrelfly_fla.bt_resultobject_145)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class bt_resultobject_145 extends MovieClip {
public function bt_resultobject_145(){
super();
addFrameScript(0, frame1, 17, frame18, 21, frame22);
}
function frame18(){
stop();
}
function frame1(){
stop();
}
function frame22(){
gotoAndStop(1);
}
}
}//package flysquirrelfly_fla
Section 366
//bt_resultspeed_142 (flysquirrelfly_fla.bt_resultspeed_142)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class bt_resultspeed_142 extends MovieClip {
public function bt_resultspeed_142(){
super();
addFrameScript(0, frame1, 17, frame18, 21, frame22);
}
function frame18(){
stop();
}
function frame1(){
stop();
}
function frame22(){
gotoAndStop(1);
}
}
}//package flysquirrelfly_fla
Section 367
//MainTimeline (flysquirrelfly_fla.MainTimeline)
package flysquirrelfly_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.geom.*;
import flash.media.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var loadtexttimer;
public var loadtext;
public var admgr;
public var pagemgr;
public var datamgr;
public var mcmammoth:mc_startingmammoth;
public var btartlogiclogo:SimpleButton;
public var textstart;
public var statsfirst;
public var mcloaderbar:MovieClip;
public var mcborder:mc_border;
public var btplay:SimpleButton;
public var btsponsor:SimpleButton;
public var buttonmgr;
public var soundmgr;
public var mcgnsplash:MovieClip;
public var tweenmgr;
public var loadertext:TextField;
public var ctrlmgr;
public var mcadbox:MovieClip;
public var staticpage;
public function MainTimeline(){
super();
addFrameScript(0, frame1, 5, frame6, 10, frame11, 15, frame16, 20, frame21, 25, frame26);
}
public function goArtlogic(e){
admgr.goArtlogic();
}
public function goSponsor(e){
admgr.goSponsor();
}
function frame6(){
stop();
if (!ctrlmgr){
ctrlmgr = new ControlManager(this.stage);
};
if (!soundmgr){
soundmgr = new SoundManager(this);
};
if (!tweenmgr){
tweenmgr = new TweenManager();
};
if (!datamgr){
datamgr = new GameDataManager(this);
};
if (!staticpage){
staticpage = new mc_staticpage();
};
staticpage.addEventListener(MouseEvent.CLICK, goArtlogic, false, 0, true);
staticpage.buttonMode = true;
staticpage.x = 0;
staticpage.y = 0;
this.addEventListener(Event.ENTER_FRAME, waitGNSplash, false, 0, true);
mcgnsplash.addEventListener(MouseEvent.CLICK, goSponsor, false, 0, true);
mcgnsplash.buttonMode = true;
pagemgr = mcgnsplash;
tweenmgr.clearScreen(this);
this.addChild(pagemgr);
this.addChild(new mc_border());
}
function frame1(){
this.stage.scaleMode = StageScaleMode.NO_SCALE;
stop();
loadtexttimer = 90;
textstart = Math.floor((Math.random() * 20));
loadtext = ["taming tyranosaurs", "drawing mountains", "digging lake", "drawing forest", "collecting smoke", "harvesting sheep", "creating clouds", "hanging clouds", "one cloud fall", "two clouds fall . . .", "five clouds fall . . .", "collecting fall clouds", "hanging fall clouds (sigh)", "counting acorn", "burying mammoth", "buying dynamites", "arranging dynamites", "igniting dynamites", "blowing squirrel", "blowing forest", "blowing mammoth", "mammoth is angry", "mammoth is kicking caveman", "caveman is angry", "caveman is demonstrating", "bribing caveman", "talking to caveman", "floating point", "creating bonfire", "pumping baloon", "wandering around", "collecting bones", "drawing on stone", "planting coconut", "catching mammoth", "researching antigravity", "armoring caveman", "digging mammoth hole", "throwing bomb", "launching pteranodon", "taming quetzacoatl", "looking for meteor", "feeding tyranosaurs", "exercising squirrel", "feeding squirrel", "selecting squirrel figurant", "positioning brachiosaurs", "preparing ropes", "catch running squirrel", "planting bone", "feeding mammoth", "feeding brachiosaurs"];
if (!admgr){
admgr = new HostManager(this);
};
btartlogiclogo.addEventListener(MouseEvent.CLICK, goArtlogic, false, 0, true);
btsponsor.addEventListener(MouseEvent.CLICK, goSponsor, false, 0, true);
admgr.getCPMAds(mcadbox, "preload");
trace(this.loaderInfo.bytesTotal);
this.addEventListener(Event.ENTER_FRAME, moveClip, false, 0, true);
}
public function goHighscore(e){
admgr.goHighscore();
}
function frame16(){
stop();
tweenmgr.clearScreen(this);
if (!admgr.usestatic){
pagemgr = new TutorialContainer(this);
pagemgr.x = 0;
pagemgr.y = 0;
this.addChild(pagemgr);
} else {
this.addChild(staticpage);
};
this.addChild(new mc_border());
}
function frame21(){
stop();
tweenmgr.clearScreen(this);
if (!admgr.usestatic){
pagemgr = new GameManager(this);
pagemgr.x = 0;
pagemgr.y = 0;
this.addChild(pagemgr);
} else {
this.addChild(staticpage);
};
this.addChild(new mc_border());
}
function frame26(){
stop();
tweenmgr.clearScreen(this);
if (!admgr.usestatic){
pagemgr = new StatisticsManager(this);
pagemgr.x = 0;
pagemgr.y = 0;
if (statsfirst){
pagemgr.goStatistics();
} else {
pagemgr.goUpgrade();
};
this.addChild(pagemgr);
} else {
this.addChild(staticpage);
};
this.addChild(new mc_border());
}
public function playGame(e){
this.play();
}
public function waitGNSplash(e){
if (mcgnsplash.currentFrame == mcgnsplash.totalFrames){
this.removeEventListener(Event.ENTER_FRAME, waitGNSplash);
play();
};
}
public function moveClip(e){
var pt:*;
pt = (this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal);
mcloaderbar.mcbar.scaleX = pt;
loadtexttimer++;
if (loadtexttimer >= 90){
loadtexttimer = 0;
loadertext.text = loadtext[textstart];
textstart++;
if (textstart == loadtext.length){
textstart = 0;
};
};
if (this.loaderInfo.bytesLoaded >= this.loaderInfo.bytesTotal){
this.removeEventListener(Event.ENTER_FRAME, moveClip);
btplay.y = (mcloaderbar.y + 20);
btplay.addEventListener(MouseEvent.CLICK, playGame, false, 0, true);
mcloaderbar.visible = false;
loadertext.visible = false;
};
}
public function goFacebook(e){
admgr.goFacebook();
}
function frame11(){
stop();
tweenmgr.clearScreen(this);
if (!admgr.usestatic){
pagemgr = new MainMenuManager(this);
pagemgr.x = 0;
pagemgr.y = 0;
this.addChild(pagemgr);
} else {
this.addChild(staticpage);
};
this.addChild(new mc_border());
}
}
}//package flysquirrelfly_fla
Section 368
//mc_achievements_note_116 (flysquirrelfly_fla.mc_achievements_note_116)
package flysquirrelfly_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_achievements_note_116 extends MovieClip {
public var headertext:TextField;
public var bodytext:TextField;
public function mc_achievements_note_116(){
super();
}
}
}//package flysquirrelfly_fla
Section 369
//mc_animbtnrocks_121 (flysquirrelfly_fla.mc_animbtnrocks_121)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_animbtnrocks_121 extends MovieClip {
public var btcredits:SimpleButton;
public var bthighscore:SimpleButton;
public var btstart:SimpleButton;
public var btachievements:SimpleButton;
public var btmoregames:SimpleButton;
public function mc_animbtnrocks_121(){
super();
addFrameScript(212, frame213);
}
function frame213(){
stop();
}
}
}//package flysquirrelfly_fla
Section 370
//mc_bgstars_17 (flysquirrelfly_fla.mc_bgstars_17)
package flysquirrelfly_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.geom.*;
import flash.media.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class mc_bgstars_17 extends MovieClip {
public var starfield;
public function mc_bgstars_17(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
starfield = new Starfield(640, 480, 100);
this.addChild(starfield);
starfield.startTwinkle();
}
}
}//package flysquirrelfly_fla
Section 371
//mc_blackscreen_120 (flysquirrelfly_fla.mc_blackscreen_120)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_blackscreen_120 extends MovieClip {
public function mc_blackscreen_120(){
super();
addFrameScript(189, frame190);
}
function frame190(){
stop();
}
}
}//package flysquirrelfly_fla
Section 372
//mc_btnnote_290 (flysquirrelfly_fla.mc_btnnote_290)
package flysquirrelfly_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_btnnote_290 extends MovieClip {
public var txnote:TextField;
public function mc_btnnote_290(){
super();
}
}
}//package flysquirrelfly_fla
Section 373
//mc_btnRockanimate_5 (flysquirrelfly_fla.mc_btnRockanimate_5)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_btnRockanimate_5 extends MovieClip {
public function mc_btnRockanimate_5(){
super();
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package flysquirrelfly_fla
Section 374
//mc_explode_smallcopy_230 (flysquirrelfly_fla.mc_explode_smallcopy_230)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_explode_smallcopy_230 extends MovieClip {
public function mc_explode_smallcopy_230(){
super();
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package flysquirrelfly_fla
Section 375
//mc_gnsplash_16 (flysquirrelfly_fla.mc_gnsplash_16)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_gnsplash_16 extends MovieClip {
public function mc_gnsplash_16(){
super();
addFrameScript(144, frame145);
}
function frame145(){
stop();
}
}
}//package flysquirrelfly_fla
Section 376
//mc_loaderbar_6 (flysquirrelfly_fla.mc_loaderbar_6)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_loaderbar_6 extends MovieClip {
public var mcbar:MovieClip;
public function mc_loaderbar_6(){
super();
}
}
}//package flysquirrelfly_fla
Section 377
//mc_lv0_altimeter_56 (flysquirrelfly_fla.mc_lv0_altimeter_56)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_lv0_altimeter_56 extends MovieClip {
public function mc_lv0_altimeter_56(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flysquirrelfly_fla
Section 378
//mc_lv0_fuel_54 (flysquirrelfly_fla.mc_lv0_fuel_54)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_lv0_fuel_54 extends MovieClip {
public function mc_lv0_fuel_54(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flysquirrelfly_fla
Section 379
//mc_lv0_speedo_52 (flysquirrelfly_fla.mc_lv0_speedo_52)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_lv0_speedo_52 extends MovieClip {
public function mc_lv0_speedo_52(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flysquirrelfly_fla
Section 380
//mc_lv0_stamina_55 (flysquirrelfly_fla.mc_lv0_stamina_55)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_lv0_stamina_55 extends MovieClip {
public function mc_lv0_stamina_55(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flysquirrelfly_fla
Section 381
//mc_lv1_altimeter_48 (flysquirrelfly_fla.mc_lv1_altimeter_48)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_lv1_altimeter_48 extends MovieClip {
public var mcaltimeterpointer:MovieClip;
public function mc_lv1_altimeter_48(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flysquirrelfly_fla
Section 382
//mc_lv1_fuel_50 (flysquirrelfly_fla.mc_lv1_fuel_50)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_lv1_fuel_50 extends MovieClip {
public function mc_lv1_fuel_50(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flysquirrelfly_fla
Section 383
//mc_lv1_speedo_46 (flysquirrelfly_fla.mc_lv1_speedo_46)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_lv1_speedo_46 extends MovieClip {
public var mcspeedometerpointer:MovieClip;
public function mc_lv1_speedo_46(){
super();
}
}
}//package flysquirrelfly_fla
Section 384
//mc_lv1_stamina_45 (flysquirrelfly_fla.mc_lv1_stamina_45)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_lv1_stamina_45 extends MovieClip {
public function mc_lv1_stamina_45(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flysquirrelfly_fla
Section 385
//mc_lv2_altimeter_39 (flysquirrelfly_fla.mc_lv2_altimeter_39)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_lv2_altimeter_39 extends MovieClip {
public function mc_lv2_altimeter_39(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flysquirrelfly_fla
Section 386
//mc_lv2_fuel_41 (flysquirrelfly_fla.mc_lv2_fuel_41)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_lv2_fuel_41 extends MovieClip {
public function mc_lv2_fuel_41(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flysquirrelfly_fla
Section 387
//mc_lv2_speedo_37 (flysquirrelfly_fla.mc_lv2_speedo_37)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_lv2_speedo_37 extends MovieClip {
public function mc_lv2_speedo_37(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flysquirrelfly_fla
Section 388
//mc_lv2_stamina_43 (flysquirrelfly_fla.mc_lv2_stamina_43)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_lv2_stamina_43 extends MovieClip {
public function mc_lv2_stamina_43(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flysquirrelfly_fla
Section 389
//mc_lv3_altimeter_32 (flysquirrelfly_fla.mc_lv3_altimeter_32)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_lv3_altimeter_32 extends MovieClip {
public function mc_lv3_altimeter_32(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flysquirrelfly_fla
Section 390
//mc_lv3_fuel_35 (flysquirrelfly_fla.mc_lv3_fuel_35)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_lv3_fuel_35 extends MovieClip {
public function mc_lv3_fuel_35(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flysquirrelfly_fla
Section 391
//mc_lv3_stamina_34 (flysquirrelfly_fla.mc_lv3_stamina_34)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_lv3_stamina_34 extends MovieClip {
public function mc_lv3_stamina_34(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flysquirrelfly_fla
Section 392
//mc_mammoth_eye_173 (flysquirrelfly_fla.mc_mammoth_eye_173)
package flysquirrelfly_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.geom.*;
import flash.media.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class mc_mammoth_eye_173 extends MovieClip {
public var ctr;
public var mcpupil:MovieClip;
public var rnd;
public function mc_mammoth_eye_173(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
mcpupil.visible = true;
this.addEventListener(Event.ENTER_FRAME, moveClip, false, 0, true);
ctr = 0;
rnd = (Math.random() * 60);
}
function frame2(){
mcpupil.visible = false;
}
public function setMousePosition(_point){
var mousepos:*;
var ang:*;
mousepos = this.globalToLocal(_point);
ang = Math.atan2(mousepos.y, mousepos.x);
mcpupil.x = (10 * Math.cos(ang));
mcpupil.y = (10 * Math.sin(ang));
}
public function moveClip(e){
ctr++;
if (ctr > (60 + rnd)){
ctr = 0;
rnd = (Math.random() * 60);
play();
};
}
}
}//package flysquirrelfly_fla
Section 393
//mc_statistics_283 (flysquirrelfly_fla.mc_statistics_283)
package flysquirrelfly_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_statistics_283 extends MovieClip {
public var totaldistancetext:TextField;
public var btsfx:SimpleButton;
public var mcmusiclamp04:MovieClip;
public var mcmusiclamp03:MovieClip;
public var acorncollectedtext:TextField;
public var btgoupgrade:SimpleButton;
public var totalcashtext:TextField;
public var btbgm:SimpleButton;
public var mcsoundlamp03:MovieClip;
public var achievementstext:TextField;
public var mcsoundlamp01:MovieClip;
public var mcsoundlamp02:MovieClip;
public var mcsoundlamp04:MovieClip;
public var objectscollectedtext:TextField;
public var btresetdata:SimpleButton;
public var btexit:SimpleButton;
public var totalscoretext:TextField;
public var attemptstext:TextField;
public var btsponsor:SimpleButton;
public var bestdistancetext:TextField;
public var bestheighttext:TextField;
public var mcmusiclamp01:MovieClip;
public var mcmusiclamp02:MovieClip;
public var cashtext:TextField;
public var btsubmit:SimpleButton;
public var mcadbox:MovieClip;
public var btnextcancel:SimpleButton;
public function mc_statistics_283(){
super();
}
}
}//package flysquirrelfly_fla
Section 394
//mc_submit_warning_135 (flysquirrelfly_fla.mc_submit_warning_135)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_submit_warning_135 extends MovieClip {
public function mc_submit_warning_135(){
super();
addFrameScript(60, frame61);
}
function frame61(){
stop();
}
}
}//package flysquirrelfly_fla
Section 395
//mc_submit_warning_already_136 (flysquirrelfly_fla.mc_submit_warning_already_136)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_submit_warning_already_136 extends MovieClip {
public function mc_submit_warning_already_136(){
super();
addFrameScript(60, frame61);
}
function frame61(){
stop();
}
}
}//package flysquirrelfly_fla
Section 396
//mc_sweat1_175 (flysquirrelfly_fla.mc_sweat1_175)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_sweat1_175 extends MovieClip {
public function mc_sweat1_175(){
super();
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package flysquirrelfly_fla
Section 397
//mc_sweat2_176 (flysquirrelfly_fla.mc_sweat2_176)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_sweat2_176 extends MovieClip {
public function mc_sweat2_176(){
super();
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package flysquirrelfly_fla
Section 398
//mc_sweat3_177 (flysquirrelfly_fla.mc_sweat3_177)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_sweat3_177 extends MovieClip {
public function mc_sweat3_177(){
super();
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package flysquirrelfly_fla
Section 399
//mc_sweat4_178 (flysquirrelfly_fla.mc_sweat4_178)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_sweat4_178 extends MovieClip {
public function mc_sweat4_178(){
super();
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package flysquirrelfly_fla
Section 400
//mc_upgrade_271 (flysquirrelfly_fla.mc_upgrade_271)
package flysquirrelfly_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_upgrade_271 extends MovieClip {
public var btupgradeparachute:SimpleButton;
public var btnextcancel:SimpleButton;
public var radarprice:TextField;
public var rocketprice:TextField;
public var upgrademoney:TextField;
public var mcupgradelamp01:MovieClip;
public var mcupgradelamp03:MovieClip;
public var btupgradelauncher:SimpleButton;
public var mcupgradelamp12:MovieClip;
public var mcupgradelamp11:MovieClip;
public var btgostatistics:SimpleButton;
public var mcupgradelamp23:MovieClip;
public var mcupgradelamp02:MovieClip;
public var patagiumprice:TextField;
public var mcupgradelamp13:MovieClip;
public var mcupgradelamp21:MovieClip;
public var mcupgradelamp31:MovieClip;
public var mcupgradelamp32:MovieClip;
public var btsponsor:SimpleButton;
public var staminaprice:TextField;
public var parachuteprice:TextField;
public var btupgradepatagium:SimpleButton;
public var btupgradestamina:SimpleButton;
public var btupgrademoney:SimpleButton;
public var launcherprice:TextField;
public var mcupgradelamp41:MovieClip;
public var mcupgradelamp52:MovieClip;
public var mcupgradelamp42:MovieClip;
public var mcupgradelamp51:MovieClip;
public var mcupgradelamp53:MovieClip;
public var mcupgradelamp43:MovieClip;
public var mcupgradelamp22:MovieClip;
public var mcupgradelamp33:MovieClip;
public var btupgraderadar:SimpleButton;
public var btupgraderocket:SimpleButton;
public var mcadbox:MovieClip;
public function mc_upgrade_271(){
super();
}
}
}//package flysquirrelfly_fla
Section 401
//mc_upgrade_lamp_26 (flysquirrelfly_fla.mc_upgrade_lamp_26)
package flysquirrelfly_fla {
import flash.display.*;
public dynamic class mc_upgrade_lamp_26 extends MovieClip {
public function mc_upgrade_lamp_26(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flysquirrelfly_fla
Section 402
//AchievementContainer (AchievementContainer)
package {
import flash.events.*;
import flash.display.*;
public class AchievementContainer extends MovieClip {
var maintimeline;
var hoveridx;
var hovertime;
var datamgr;
var btnmgr;
var skin;
var buttons;
var soundmgr;
var tweenmgr;
var note;
public function AchievementContainer(_mtl){
var i:*;
super();
maintimeline = _mtl;
tweenmgr = maintimeline.tweenmgr;
soundmgr = maintimeline.soundmgr;
datamgr = maintimeline.datamgr;
skin = new mc_achievements();
this.addChild(skin);
buttons = [skin.btach1, skin.btach2, skin.btach3, skin.btach4, skin.btach5, skin.btach6, skin.btach7, skin.btach8, skin.btach9, skin.btach10, skin.btach11, skin.btach12, skin.btach13, skin.btach14, skin.btach15, skin.btach16, skin.btach17, skin.btach18, skin.btach19, skin.btach20, skin.btach21, skin.btach22, skin.btach23, skin.btach24, skin.btach25, skin.btach26, skin.btach27, skin.btach28, skin.btach29, skin.btach30, skin.btach31, skin.btach32, skin.btach33, skin.btach34, skin.btach35, skin.btach36, skin.btach37, skin.btach38, skin.btach39, skin.btach40, skin.btach41, skin.btach42, skin.btach43, skin.btach44, skin.btach45, skin.btach46, skin.btach47, skin.btach48, skin.btach49, skin.btach50, skin.btgoright, skin.btgoleft, skin.btclose1, skin.btclose2];
btnmgr = new ButtonManager(buttons, "simplebutton");
note = skin.mcnote;
}
public function showPage(_clip=null){
reset();
tweenmgr.register(this, {live:15, ease:"easenone", x:-640, y:0, alpha:1, rotation:0, scalex:1, scaley:1});
soundmgr.playSFX("menuclick");
}
public function reset(){
var i:*;
i = 0;
while (i < buttons.length) {
buttons[i].gotoAndStop(1);
buttons[i].buttonMode = true;
i++;
};
i = 0;
while (i < 50) {
btnmgr.registerFunction(i, this, {onover:doOver, onout:doOut});
buttons[i].gotoAndStop((datamgr.achievements[i] + 1));
i++;
};
btnmgr.registerFunction(50, this, {onover:doOver, onout:doOut, onselect:showPage2});
btnmgr.registerFunction(51, this, {onover:doOver, onout:doOut, onselect:showPage});
btnmgr.registerFunction(52, this, {onover:doOver, onout:doOut, onselect:hidePage});
btnmgr.registerFunction(53, this, {onover:doOver, onout:doOut, onselect:hidePage});
note.scaleX = 1;
note.scaleY = 1;
note.y = 900;
this.addEventListener(Event.ENTER_FRAME, moveClip, false, 0, true);
}
public function showPage2(_clip=null){
reset();
tweenmgr.register(this, {live:15, ease:"easenone", x:-1280, y:0, alpha:1, rotation:0, scalex:1, scaley:1});
soundmgr.playSFX("menuclick");
}
private function moveClip(e){
var newx:*;
var newy:*;
if (hovertime > 0){
hovertime--;
if (hovertime == 0){
if ((note.x % 640) < 320){
newx = (note.x + (note.width * 0.6));
note.x = (note.x + (note.width * 0.3));
} else {
newx = (note.x - (note.width * 0.6));
note.x = (note.x - (note.width * 0.3));
};
if (note.y < 240){
newy = (note.y + (note.height * 0.6));
note.y = (note.y + (note.height * 0.3));
} else {
newy = (note.y - (note.height * 0.6));
note.y = (note.y - (note.height * 0.3));
};
note.scaleX = 0.01;
note.scaleY = 0.01;
note.visible = true;
tweenmgr.register(note, {live:5, ease:"easenone", x:newx, y:newy, alpha:1, rotation:0, scalex:1, scaley:1});
};
};
}
public function doOut(_btnidx){
if (hoveridx == _btnidx){
tweenmgr.register(buttons[hoveridx], {live:5, ease:"easenone", x:buttons[hoveridx].x, y:buttons[hoveridx].y, alpha:buttons[hoveridx].alpha, rotation:buttons[hoveridx].rotation, scalex:1, scaley:1});
note.scaleX = 1;
note.scaleY = 1;
note.y = 900;
hoveridx = -1;
hovertime = 0;
};
}
public function hidePage(_clip=null){
tweenmgr.register(this, {live:15, ease:"easenone", x:0, y:0, alpha:1, rotation:0, scalex:1, scaley:1});
soundmgr.playSFX("menuclick");
}
public function doOver(_btnidx){
if (_btnidx != hoveridx){
hoveridx = _btnidx;
if ((((hoveridx < 50)) && (datamgr.achievements[hoveridx]))){
hovertime = 15;
note.visible = false;
note.headertext.text = datamgr.achievementsnote[hoveridx][0];
note.bodytext.text = datamgr.achievementsnote[hoveridx][1];
note.x = buttons[hoveridx].x;
note.y = buttons[hoveridx].y;
};
tweenmgr.register(buttons[hoveridx], {live:5, ease:"easenone", x:buttons[hoveridx].x, y:buttons[hoveridx].y, alpha:buttons[hoveridx].alpha, rotation:buttons[hoveridx].rotation, scalex:1.2, scaley:1.2});
};
}
}
}//package
Section 403
//AdLoader (AdLoader)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.system.*;
public class AdLoader extends Sprite {
private var contentspotid:String;
private var cpmstarLoader:Loader;
public function AdLoader(contentspotid:String){
super();
this.contentspotid = contentspotid;
addEventListener(Event.ADDED, addedHandler);
}
private function addedHandler(event:Event):void{
var cpmstarViewSWFUrl:String;
var container:DisplayObjectContainer;
removeEventListener(Event.ADDED, addedHandler);
Security.allowDomain("server.cpmstar.com");
cpmstarViewSWFUrl = "http://server.cpmstar.com/adviewas3.swf";
container = parent;
cpmstarLoader = new Loader();
cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler);
cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler);
cpmstarLoader.load(new URLRequest(((cpmstarViewSWFUrl + "?contentspotid=") + contentspotid)));
addChild(cpmstarLoader);
}
private function dispatchHandler(event:Event):void{
dispatchEvent(event);
}
}
}//package
Section 404
//BaseSound (BaseSound)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
public class BaseSound extends Sound {
private var sndTransform:SoundTransform;
public var sndPlaying:Boolean;
private var sndFadeOut:Boolean;
private var sndFadeIn:Boolean;
private var sndPosTime:Number;
private var loop:Boolean;
private var sndObj:Sound;
private var sndChannel:SoundChannel;
private var sndTimer:Timer;
private var sndVolume:Number;
private var sndPan:Number;
public function BaseSound(){
super();
sndObj = this;
sndChannel = null;
sndTransform = null;
sndVolume = 1;
sndPan = 0;
sndPosTime = 0;
sndFadeIn = false;
sndFadeOut = false;
loop = false;
}
public function setVolume(vol:Number):void{
var sndTransform:SoundTransform;
sndVolume = vol;
if (sndChannel){
sndTransform = sndChannel.soundTransform;
sndTransform.volume = sndVolume;
sndChannel.soundTransform = sndTransform;
};
}
public function stopSound():void{
if (sndChannel){
sndPlaying = false;
sndChannel.stop();
sndChannel.removeEventListener(Event.SOUND_COMPLETE, sound_loop);
loop = false;
};
}
public function fadeOut(init:Boolean):void{
sndFadeOut = true;
sndFadeIn = false;
if (init){
setVolume(1);
};
if (!sndTimer){
sndTimer = new Timer(50);
sndTimer.addEventListener(TimerEvent.TIMER, sndTimerHandler, false, 0, true);
sndTimer.start();
};
}
public function pauseSound():void{
if (sndChannel){
sndPlaying = false;
sndPosTime = sndChannel.position;
sndChannel.stop();
sndChannel.removeEventListener(Event.SOUND_COMPLETE, sound_loop);
};
}
public function playSound():void{
stopSound();
sndChannel = sndObj.play();
sndChannel.addEventListener(Event.SOUND_COMPLETE, sound_complete, false, 0, true);
setVolume(sndVolume);
setPan(sndPan);
sndPlaying = true;
}
public function fadeIn(init:Boolean):void{
sndFadeIn = true;
sndFadeOut = false;
if (init){
setVolume(0);
};
if (!sndTimer){
sndTimer = new Timer(50);
sndTimer.addEventListener(TimerEvent.TIMER, sndTimerHandler, false, 0, true);
sndTimer.start();
};
}
private function sndTimerHandler(event:TimerEvent):void{
if (((sndFadeIn) && (sndFadeOut))){
sndFadeIn = false;
sndFadeOut = false;
setVolume(1);
};
if (sndFadeIn){
sndVolume = (sndVolume + 0.01);
if (sndVolume > 1){
setVolume(1);
sndFadeIn = false;
} else {
setVolume(sndVolume);
};
};
if (sndFadeOut){
sndVolume = (sndVolume - 0.01);
if (sndVolume < 0){
setVolume(0);
sndFadeOut = false;
} else {
setVolume(sndVolume);
};
};
}
public function setPan(pan:Number):void{
var sndTransform:SoundTransform;
sndPan = pan;
if (sndChannel){
sndTransform = sndChannel.soundTransform;
sndTransform.pan = sndPan;
sndChannel.soundTransform = sndTransform;
};
}
public function resumeSound():void{
stopSound();
sndChannel = sndObj.play(sndPosTime);
if (loop){
sndChannel.addEventListener(Event.SOUND_COMPLETE, sound_loop, false, 0, true);
};
setVolume(sndVolume);
setPan(sndPan);
sndPlaying = true;
}
private function sound_complete(event:Event){
sndChannel.removeEventListener(Event.SOUND_COMPLETE, sound_complete);
sndPlaying = false;
}
private function sound_loop(event:Event){
sndChannel = sndObj.play();
setVolume(sndVolume);
setPan(sndPan);
sndPlaying = true;
sndChannel.addEventListener(Event.SOUND_COMPLETE, sound_loop, false, 0, true);
}
public function playSoundLoop():void{
stopSound();
sndChannel = sndObj.play();
sndChannel.addEventListener(Event.SOUND_COMPLETE, sound_loop, false, 0, true);
setVolume(sndVolume);
setPan(sndPan);
sndPlaying = true;
loop = true;
}
}
}//package
Section 405
//bgm_leveltheme2 (bgm_leveltheme2)
package {
public dynamic class bgm_leveltheme2 extends BaseSound {
public function bgm_leveltheme2(){
super();
}
}
}//package
Section 406
//bgm_maintitle (bgm_maintitle)
package {
public dynamic class bgm_maintitle extends BaseSound {
public function bgm_maintitle(){
super();
}
}
}//package
Section 407
//BonusContainer (BonusContainer)
package {
public class BonusContainer extends ScrollContainer {
private var objects:Array;
public function BonusContainer(obj){
super();
objects = obj;
this.setLoop(false, -820, 740);
}
public function reset(){
while (this.numChildren > 0) {
this.removeChild(this.getChildAt(0));
};
}
public function dispatch(obj, time){
var rnd:*;
if (!this.contains(obj)){
rnd = Math.random();
obj.x = borderleft;
obj.y = (((rnd * 960) - this.y) - 240);
switch (obj.name){
case "Campfire":
obj.y = 370;
break;
case "Baloon":
case "Acorn":
case "Rocket Fuel":
if (obj.y > 250){
obj.y = (rnd * 250);
};
break;
case "Bomb":
case "Dynamite":
if (obj.y > 250){
obj.y = 370;
};
break;
default:
if (obj.y > 370){
obj.y = (rnd * 370);
};
break;
};
this.addChild(obj);
};
}
override public function moveClip(dx=0, dy=0){
this.update(dx, dy);
}
}
}//package
Section 408
//bt_ach1 (bt_ach1)
package {
import flash.display.*;
public dynamic class bt_ach1 extends MovieClip {
public function bt_ach1(){
super();
}
}
}//package
Section 409
//bt_ach10 (bt_ach10)
package {
import flash.display.*;
public dynamic class bt_ach10 extends MovieClip {
public function bt_ach10(){
super();
}
}
}//package
Section 410
//bt_ach11 (bt_ach11)
package {
import flash.display.*;
public dynamic class bt_ach11 extends MovieClip {
public function bt_ach11(){
super();
}
}
}//package
Section 411
//bt_ach12 (bt_ach12)
package {
import flash.display.*;
public dynamic class bt_ach12 extends MovieClip {
public function bt_ach12(){
super();
}
}
}//package
Section 412
//bt_ach13 (bt_ach13)
package {
import flash.display.*;
public dynamic class bt_ach13 extends MovieClip {
public function bt_ach13(){
super();
}
}
}//package
Section 413
//bt_ach14 (bt_ach14)
package {
import flash.display.*;
public dynamic class bt_ach14 extends MovieClip {
public function bt_ach14(){
super();
}
}
}//package
Section 414
//bt_ach15 (bt_ach15)
package {
import flash.display.*;
public dynamic class bt_ach15 extends MovieClip {
public function bt_ach15(){
super();
}
}
}//package
Section 415
//bt_ach16 (bt_ach16)
package {
import flash.display.*;
public dynamic class bt_ach16 extends MovieClip {
public function bt_ach16(){
super();
}
}
}//package
Section 416
//bt_ach17 (bt_ach17)
package {
import flash.display.*;
public dynamic class bt_ach17 extends MovieClip {
public function bt_ach17(){
super();
}
}
}//package
Section 417
//bt_ach18 (bt_ach18)
package {
import flash.display.*;
public dynamic class bt_ach18 extends MovieClip {
public function bt_ach18(){
super();
}
}
}//package
Section 418
//bt_ach19 (bt_ach19)
package {
import flash.display.*;
public dynamic class bt_ach19 extends MovieClip {
public function bt_ach19(){
super();
}
}
}//package
Section 419
//bt_ach2 (bt_ach2)
package {
import flash.display.*;
public dynamic class bt_ach2 extends MovieClip {
public function bt_ach2(){
super();
}
}
}//package
Section 420
//bt_ach20 (bt_ach20)
package {
import flash.display.*;
public dynamic class bt_ach20 extends MovieClip {
public function bt_ach20(){
super();
}
}
}//package
Section 421
//bt_ach21 (bt_ach21)
package {
import flash.display.*;
public dynamic class bt_ach21 extends MovieClip {
public function bt_ach21(){
super();
}
}
}//package
Section 422
//bt_ach22 (bt_ach22)
package {
import flash.display.*;
public dynamic class bt_ach22 extends MovieClip {
public function bt_ach22(){
super();
}
}
}//package
Section 423
//bt_ach23 (bt_ach23)
package {
import flash.display.*;
public dynamic class bt_ach23 extends MovieClip {
public function bt_ach23(){
super();
}
}
}//package
Section 424
//bt_ach24 (bt_ach24)
package {
import flash.display.*;
public dynamic class bt_ach24 extends MovieClip {
public function bt_ach24(){
super();
}
}
}//package
Section 425
//bt_ach25 (bt_ach25)
package {
import flash.display.*;
public dynamic class bt_ach25 extends MovieClip {
public function bt_ach25(){
super();
}
}
}//package
Section 426
//bt_ach26 (bt_ach26)
package {
import flash.display.*;
public dynamic class bt_ach26 extends MovieClip {
public function bt_ach26(){
super();
}
}
}//package
Section 427
//bt_ach27 (bt_ach27)
package {
import flash.display.*;
public dynamic class bt_ach27 extends MovieClip {
public function bt_ach27(){
super();
}
}
}//package
Section 428
//bt_ach28 (bt_ach28)
package {
import flash.display.*;
public dynamic class bt_ach28 extends MovieClip {
public function bt_ach28(){
super();
}
}
}//package
Section 429
//bt_ach29 (bt_ach29)
package {
import flash.display.*;
public dynamic class bt_ach29 extends MovieClip {
public function bt_ach29(){
super();
}
}
}//package
Section 430
//bt_ach3 (bt_ach3)
package {
import flash.display.*;
public dynamic class bt_ach3 extends MovieClip {
public function bt_ach3(){
super();
}
}
}//package
Section 431
//bt_ach30 (bt_ach30)
package {
import flash.display.*;
public dynamic class bt_ach30 extends MovieClip {
public function bt_ach30(){
super();
}
}
}//package
Section 432
//bt_ach31 (bt_ach31)
package {
import flash.display.*;
public dynamic class bt_ach31 extends MovieClip {
public function bt_ach31(){
super();
}
}
}//package
Section 433
//bt_ach32 (bt_ach32)
package {
import flash.display.*;
public dynamic class bt_ach32 extends MovieClip {
public function bt_ach32(){
super();
}
}
}//package
Section 434
//bt_ach33 (bt_ach33)
package {
import flash.display.*;
public dynamic class bt_ach33 extends MovieClip {
public function bt_ach33(){
super();
}
}
}//package
Section 435
//bt_ach34 (bt_ach34)
package {
import flash.display.*;
public dynamic class bt_ach34 extends MovieClip {
public function bt_ach34(){
super();
}
}
}//package
Section 436
//bt_ach35 (bt_ach35)
package {
import flash.display.*;
public dynamic class bt_ach35 extends MovieClip {
public function bt_ach35(){
super();
}
}
}//package
Section 437
//bt_ach36 (bt_ach36)
package {
import flash.display.*;
public dynamic class bt_ach36 extends MovieClip {
public function bt_ach36(){
super();
}
}
}//package
Section 438
//bt_ach37 (bt_ach37)
package {
import flash.display.*;
public dynamic class bt_ach37 extends MovieClip {
public function bt_ach37(){
super();
}
}
}//package
Section 439
//bt_ach38 (bt_ach38)
package {
import flash.display.*;
public dynamic class bt_ach38 extends MovieClip {
public function bt_ach38(){
super();
}
}
}//package
Section 440
//bt_ach39 (bt_ach39)
package {
import flash.display.*;
public dynamic class bt_ach39 extends MovieClip {
public function bt_ach39(){
super();
}
}
}//package
Section 441
//bt_ach4 (bt_ach4)
package {
import flash.display.*;
public dynamic class bt_ach4 extends MovieClip {
public function bt_ach4(){
super();
}
}
}//package
Section 442
//bt_ach40 (bt_ach40)
package {
import flash.display.*;
public dynamic class bt_ach40 extends MovieClip {
public function bt_ach40(){
super();
}
}
}//package
Section 443
//bt_ach41 (bt_ach41)
package {
import flash.display.*;
public dynamic class bt_ach41 extends MovieClip {
public function bt_ach41(){
super();
}
}
}//package
Section 444
//bt_ach42 (bt_ach42)
package {
import flash.display.*;
public dynamic class bt_ach42 extends MovieClip {
public function bt_ach42(){
super();
}
}
}//package
Section 445
//bt_ach43 (bt_ach43)
package {
import flash.display.*;
public dynamic class bt_ach43 extends MovieClip {
public function bt_ach43(){
super();
}
}
}//package
Section 446
//bt_ach44 (bt_ach44)
package {
import flash.display.*;
public dynamic class bt_ach44 extends MovieClip {
public function bt_ach44(){
super();
}
}
}//package
Section 447
//bt_ach45 (bt_ach45)
package {
import flash.display.*;
public dynamic class bt_ach45 extends MovieClip {
public function bt_ach45(){
super();
}
}
}//package
Section 448
//bt_ach46 (bt_ach46)
package {
import flash.display.*;
public dynamic class bt_ach46 extends MovieClip {
public function bt_ach46(){
super();
}
}
}//package
Section 449
//bt_ach47 (bt_ach47)
package {
import flash.display.*;
public dynamic class bt_ach47 extends MovieClip {
public function bt_ach47(){
super();
}
}
}//package
Section 450
//bt_ach48 (bt_ach48)
package {
import flash.display.*;
public dynamic class bt_ach48 extends MovieClip {
public function bt_ach48(){
super();
}
}
}//package
Section 451
//bt_ach49 (bt_ach49)
package {
import flash.display.*;
public dynamic class bt_ach49 extends MovieClip {
public function bt_ach49(){
super();
}
}
}//package
Section 452
//bt_ach5 (bt_ach5)
package {
import flash.display.*;
public dynamic class bt_ach5 extends MovieClip {
public function bt_ach5(){
super();
}
}
}//package
Section 453
//bt_ach50 (bt_ach50)
package {
import flash.display.*;
public dynamic class bt_ach50 extends MovieClip {
public function bt_ach50(){
super();
}
}
}//package
Section 454
//bt_ach6 (bt_ach6)
package {
import flash.display.*;
public dynamic class bt_ach6 extends MovieClip {
public function bt_ach6(){
super();
}
}
}//package
Section 455
//bt_ach7 (bt_ach7)
package {
import flash.display.*;
public dynamic class bt_ach7 extends MovieClip {
public function bt_ach7(){
super();
}
}
}//package
Section 456
//bt_ach8 (bt_ach8)
package {
import flash.display.*;
public dynamic class bt_ach8 extends MovieClip {
public function bt_ach8(){
super();
}
}
}//package
Section 457
//bt_ach9 (bt_ach9)
package {
import flash.display.*;
public dynamic class bt_ach9 extends MovieClip {
public function bt_ach9(){
super();
}
}
}//package
Section 458
//bt_arrow (bt_arrow)
package {
import flash.display.*;
public dynamic class bt_arrow extends MovieClip {
public function bt_arrow(){
super();
}
}
}//package
Section 459
//ButtonManager (ButtonManager)
package {
import flash.events.*;
import flash.geom.*;
public class ButtonManager {
private var prepress:Boolean;
private var curpress:Boolean;
private var tweenmgr:TweenManager;
private var curpos:Point;
private var functions:Array;
private var groupmode:Array;
public var mode:String;
public var button:Array;
public var status:Array;
private var group:Array;
public function ButtonManager(_btn, _btntype="movieclip", _group=null, _groupmode=null){
var i:*;
var j:*;
super();
functions = new Array();
status = new Array();
button = new Array();
mode = _btntype;
i = 0;
while (i < _btn.length) {
functions.push({scope:null, onover:null, onout:null, onselect:null, ondeselect:null});
status.push(0);
button.push(_btn[i]);
if (mode == "movieclip"){
button[i].gotoAndStop(1);
button[i].buttonMode = true;
};
button[i].addEventListener(MouseEvent.CLICK, doMouseClick, false, 0, true);
button[i].addEventListener(MouseEvent.MOUSE_OVER, doMouseOver, false, 0, true);
button[i].addEventListener(MouseEvent.MOUSE_OUT, doMouseOut, false, 0, true);
i++;
};
group = new Array();
groupmode = new Array();
if (_group){
i = 0;
while (i < _group.length) {
group.push(new Array());
j = 0;
while (j < _group[i].length) {
group[i].push(_group[i][j]);
j++;
};
groupmode.push(_groupmode[i]);
if (groupmode[i] == "toggle"){
btnActivate(button[group[i][0]]);
};
i++;
};
};
}
public function activateButton(_idx){
if (status[_idx] > -1){
btnActivate(button[_idx]);
};
}
public function moveClip(_pos, _press){
}
public function resetButtons(){
var i:*;
i = 0;
while (i < button.length) {
button[i].gotoAndStop(1);
status[i] = 0;
i++;
};
i = 0;
while (i < groupmode.length) {
if (groupmode[i] == "toggle"){
btnActivate(button[group[i][0]]);
};
i++;
};
}
private function btnShrink(_btn){
if (mode == "movieclip"){
if (_btn.currentLabel == "blow"){
_btn.gotoAndPlay("shrink");
applyFunction(btnIndex(_btn), "onout");
};
};
}
private function doMouseClick(e){
var idx:*;
idx = btnIndex(e.target);
btnActivate(e.target);
}
private function btnGroup(_btn):int{
var idx:*;
var res:*;
var i:*;
idx = btnIndex(_btn);
if (idx > -1){
res = -1;
i = 0;
while ((((res < 0)) && ((i < group.length)))) {
if (group[i].indexOf(idx) > -1){
res = group[i].indexOf(idx);
};
i++;
};
if (res > -1){
return ((i - 1));
};
return (-1);
//unresolved jump
};
return (-1);
}
public function unlockButton(_idx){
if (status[_idx] == -2){
status[_idx] = 0;
if (mode == "movieclip"){
button[_idx].gotoAndPlay("shrink");
};
};
}
public function enableButton(_idx){
if (status[_idx] == -1){
status[_idx] = 0;
if (mode == "movieclip"){
button[_idx].gotoAndPlay("shrink");
};
};
}
private function doMouseOver(e){
var idx:*;
idx = btnIndex(e.target);
applyFunction(idx, "onover");
btnBlow(e.target);
}
public function deactivateButton(_idx){
if (status[_idx] > -1){
btnDeactivate(button[_idx]);
};
}
private function btnIndex(_btn):int{
return (button.indexOf(_btn));
}
private function applyFunction(_idx, _event){
if (((functions[_idx]["scope"]) && (functions[_idx][_event]))){
functions[_idx][_event].apply(functions[_idx]["scope"], [_idx]);
};
}
public function registerFunction(_idx, _scope, _params){
functions[_idx]["scope"] = _scope;
if (_params["onover"]){
functions[_idx]["onover"] = _params["onover"];
};
if (_params["onout"]){
functions[_idx]["onout"] = _params["onout"];
};
if (_params["onselect"]){
functions[_idx]["onselect"] = _params["onselect"];
};
if (_params["ondeselect"]){
functions[_idx]["ondeselect"] = _params["ondeselect"];
};
}
private function doMouseOut(e){
var idx:*;
idx = btnIndex(e.target);
applyFunction(idx, "onout");
btnShrink(e.target);
}
private function btnBlow(_btn){
if (mode == "movieclip"){
if ((((_btn.currentFrame == 1)) || ((_btn.currentLabel == "shrink")))){
_btn.gotoAndPlay("blow");
applyFunction(btnIndex(_btn), "onover");
};
};
}
private function btnActivate(_btn){
var grp:*;
var idx:*;
var i:*;
grp = btnGroup(_btn);
idx = btnIndex(_btn);
if (status[idx] > -1){
if (grp > -1){
i = 0;
while (i < group[grp].length) {
if (group[grp][i] != idx){
btnDeactivate(button[group[grp][i]]);
} else {
if (status[idx] != 1){
status[idx] = 1;
if (mode == "movieclip"){
_btn.gotoAndPlay("activate");
};
applyFunction(idx, "onselect");
} else {
if (groupmode[grp] == "normal"){
status[idx] = 0;
if (mode == "movieclip"){
_btn.gotoAndPlay("deactivate");
};
applyFunction(idx, "ondeselect");
};
};
};
i++;
};
} else {
status[idx] = 2;
if (mode == "movieclip"){
_btn.gotoAndPlay("blow");
};
applyFunction(idx, "onselect");
};
};
}
private function btnDeactivate(_btn){
var idx:*;
idx = btnIndex(_btn);
if (status[idx] > -1){
status[idx] = 0;
if (mode == "movieclip"){
if (_btn.currentLabel == "activate"){
_btn.gotoAndPlay("deactivate");
applyFunction(idx, "ondeselect");
};
};
};
}
public function deactivateGroup(_grp){
var i:*;
i = 0;
while (i < group[_grp].length) {
if ((((status[group[_grp][i]] > -1)) && (!((status[group[_grp][i]] == 0))))){
btnDeactivate(button[group[_grp][i]]);
};
i++;
};
}
public function unregisterFunction(_idx, _params){
if (_params.indexOf("onover") > -1){
functions[_idx]["onover"] = null;
};
if (_params.indexOf("onout") > -1){
functions[_idx]["onout"] = null;
};
if (_params.indexOf("onselect") > -1){
functions[_idx]["onselect"] = null;
};
if (_params.indexOf("ondeselect") > -1){
functions[_idx]["ondeselect"] = null;
};
}
public function disableButton(_idx){
if (status[_idx] > -1){
status[_idx] = -1;
if (mode == "movieclip"){
button[_idx].gotoAndStop("disabled");
};
};
}
public function lockButton(_idx){
if (status[_idx] > -2){
status[_idx] = -2;
if (mode == "movieclip"){
button[_idx].gotoAndStop("locked");
};
};
}
}
}//package
Section 460
//ControlManager (ControlManager)
package {
import flash.events.*;
import flash.geom.*;
import flash.ui.*;
public class ControlManager {
public var KEYPRESS;
public var MOUSESCROLL;// = 0
public var MOUSEPOS;
public var PREVMOUSEPRESS;// = false
public var PREVKEYPRESS;
public var MOUSEPRESS;// = false
public function ControlManager(stage=null){
MOUSEPOS = new Point(0, 0);
PREVMOUSEPRESS = false;
MOUSEPRESS = false;
MOUSESCROLL = 0;
PREVKEYPRESS = new Array();
KEYPRESS = new Array();
super();
if (stage){
startListeners(stage);
};
}
private function keyReleaseHandler(e){
var key:*;
key = convertKeyCode(e.keyCode);
PREVKEYPRESS[key] = KEYPRESS[key];
KEYPRESS[key] = false;
}
private function keyPressHandler(e){
var key:*;
key = convertKeyCode(e.keyCode);
PREVKEYPRESS[key] = KEYPRESS[key];
KEYPRESS[key] = true;
}
private function mouseUpHandler(e){
PREVMOUSEPRESS = MOUSEPRESS;
MOUSEPRESS = false;
}
public function moveClip(){
var i:*;
PREVMOUSEPRESS = MOUSEPRESS;
MOUSESCROLL = 0;
for each (i in PREVKEYPRESS) {
i = false;
};
}
public function stopListeners(stage){
stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMovementHandler);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
stage.removeEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressHandler);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyReleaseHandler);
}
private function mouseDownHandler(e){
PREVMOUSEPRESS = MOUSEPRESS;
MOUSEPRESS = true;
}
private function mouseWheelHandler(e){
MOUSESCROLL = e.delta;
}
private function mouseMovementHandler(e){
MOUSEPOS.x = e.stageX;
MOUSEPOS.y = e.stageY;
}
private function convertKeyCode(code){
switch (code){
case Keyboard.UP:
return ("UP");
case Keyboard.DOWN:
return ("DOWN");
case Keyboard.LEFT:
return ("LEFT");
case Keyboard.RIGHT:
return ("RIGHT");
case Keyboard.ESCAPE:
return ("ESC");
case Keyboard.SPACE:
return ("SPACE");
case Keyboard.CONTROL:
return ("CTRL");
case Keyboard.SHIFT:
return ("SHIFT");
case Keyboard.NUMPAD_0:
return ("NUM_0");
case Keyboard.NUMPAD_1:
return ("NUM_1");
case Keyboard.NUMPAD_2:
return ("NUM_2");
case Keyboard.NUMPAD_3:
return ("NUM_3");
case Keyboard.NUMPAD_4:
return ("NUM_4");
case Keyboard.NUMPAD_5:
return ("NUM_5");
case Keyboard.NUMPAD_6:
return ("NUM_6");
case Keyboard.NUMPAD_7:
return ("NUM_7");
case Keyboard.NUMPAD_8:
return ("NUM_8");
case Keyboard.NUMPAD_9:
return ("NUM_9");
case Keyboard.F1:
return ("F1");
case Keyboard.F2:
return ("F2");
case Keyboard.F3:
return ("F3");
case Keyboard.F4:
return ("F4");
case Keyboard.F5:
return ("F5");
case Keyboard.F6:
return ("F6");
case Keyboard.F7:
return ("F7");
case Keyboard.F8:
return ("F8");
case Keyboard.F9:
return ("F9");
case Keyboard.F10:
return ("F10");
case Keyboard.F11:
return ("F11");
case Keyboard.F12:
return ("F12");
case Keyboard.F13:
return ("F13");
case Keyboard.F14:
return ("F14");
case Keyboard.F15:
return ("F15");
case 48:
return ("0");
case 49:
return ("1");
case 50:
return ("2");
case 51:
return ("3");
case 52:
return ("4");
case 53:
return ("5");
case 54:
return ("6");
case 55:
return ("7");
case 56:
return ("8");
case 57:
return ("9");
case 65:
return ("A");
case 66:
return ("B");
case 67:
return ("C");
case 68:
return ("D");
case 69:
return ("E");
case 70:
return ("F");
case 71:
return ("G");
case 72:
return ("H");
case 73:
return ("I");
case 74:
return ("J");
case 75:
return ("K");
case 76:
return ("L");
case 77:
return ("M");
case 78:
return ("N");
case 79:
return ("O");
case 80:
return ("P");
case 81:
return ("Q");
case 82:
return ("R");
case 83:
return ("S");
case 84:
return ("T");
case 85:
return ("U");
case 86:
return ("V");
case 87:
return ("W");
case 88:
return ("X");
case 89:
return ("Y");
case 90:
return ("Z");
default:
return ("unknown");
};
}
public function startListeners(stage){
stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMovementHandler, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressHandler, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_UP, keyReleaseHandler, false, 0, true);
}
}
}//package
Section 461
//CreditsContainer (CreditsContainer)
package {
import flash.display.*;
public class CreditsContainer extends MovieClip {
var maintimeline;
var hoveridx;
var datamgr;
var btnmgr;
var skin;
var buttons;
var soundmgr;
var tweenmgr;
public function CreditsContainer(_mtl){
var i:*;
super();
maintimeline = _mtl;
tweenmgr = maintimeline.tweenmgr;
soundmgr = maintimeline.soundmgr;
datamgr = maintimeline.datamgr;
skin = new mc_creditspage();
this.addChild(skin);
buttons = [skin.btcreditsclose];
btnmgr = new ButtonManager(buttons, "simplebutton");
}
public function showPage(_clip=null){
reset();
tweenmgr.register(this, {live:15, ease:"easenone", x:640, y:0, alpha:1, rotation:0, scalex:1, scaley:1});
soundmgr.playSFX("menuclick");
}
public function reset(){
var i:*;
i = 0;
while (i < buttons.length) {
buttons[i].gotoAndStop(1);
buttons[i].buttonMode = true;
i++;
};
btnmgr.registerFunction(0, this, {onover:doOver, onout:doOut, onselect:hidePage});
}
public function doOut(_btnidx){
if (hoveridx == _btnidx){
tweenmgr.register(buttons[hoveridx], {live:5, ease:"easenone", x:buttons[hoveridx].x, y:buttons[hoveridx].y, alpha:buttons[hoveridx].alpha, rotation:buttons[hoveridx].rotation, scalex:1, scaley:1});
hoveridx = -1;
};
}
public function hidePage(_clip=null){
tweenmgr.register(this, {live:15, ease:"easenone", x:0, y:0, alpha:1, rotation:0, scalex:1, scaley:1});
soundmgr.playSFX("menuclick");
}
public function doOver(_btnidx){
if (_btnidx != hoveridx){
hoveridx = _btnidx;
tweenmgr.register(buttons[hoveridx], {live:5, ease:"easenone", x:buttons[hoveridx].x, y:buttons[hoveridx].y, alpha:buttons[hoveridx].alpha, rotation:buttons[hoveridx].rotation, scalex:1.2, scaley:1.2});
};
}
}
}//package
Section 462
//DinosaurBase (DinosaurBase)
package {
import flash.display.*;
public class DinosaurBase extends MovieClip {
private var angles:Array;
private var scope:Object;
private var skin:MovieClip;
public var hitalready:Boolean;
public var dy:int;
public var hit:int;
public var type:String;
public var dx:int;
private var functions:Array;
private var detector:Array;
public var status:String;
public function DinosaurBase(_type, callback){
super();
dx = 0;
dy = 0;
status = "idle";
switch (_type){
case "Blizzard":
type = "Blizzard";
changeSkin();
break;
case "Meteor":
type = "Meteor";
changeSkin();
break;
case "Quetza":
type = "Quetza";
changeSkin();
break;
case "Ptera":
type = "Ptera";
changeSkin();
break;
case "Man":
type = "Man";
changeSkin("run");
break;
case "Brachio":
type = "Brachio";
changeSkin();
angles = [5, 30, 30, 30, 30, 45, 60, 80, 80, 75, 60];
break;
case "Rex":
type = "Rex";
changeSkin(status);
break;
};
if (((callback) && (callback["scope"]))){
scope = callback["scope"];
functions = new Array();
functions["onhit"] = callback["onhit"];
functions["onstop"] = callback["onstop"];
};
}
private function moveBlizzard(squirrelskin){
var i:*;
switch (status){
case "idle":
hit = -1;
i = 0;
while (i < detector.length) {
if (squirrelskin.hitTestObject(detector[i])){
hit = i;
};
i++;
};
if (hit > -1){
applyFunction("onhit");
status = "stop";
};
break;
};
}
private function moveRex(squirrelskin){
var i:*;
switch (status){
case "idle":
hit = -1;
i = 0;
while (i < detector.length) {
if (squirrelskin.hitTestObject(detector[i])){
hit = i;
};
i++;
};
switch (hit){
case 0:
status = "attackdown";
changeSkin(status);
break;
case 1:
status = "attackmid";
changeSkin(status);
break;
case 2:
status = "attackup";
changeSkin(status);
break;
case 3:
status = "attackjump";
changeSkin(status);
break;
};
break;
case "attackdown":
case "attackmid":
case "attackup":
case "attackjump":
if (skin.currentFrame == 6){
applyFunction("onhit");
} else {
if (skin.currentFrame == skin.totalFrames){
this.removeChild(skin);
skin = new mc_rex_idle();
detector = [skin.detector1, skin.detector2, skin.detector3, skin.detector4];
this.addChild(skin);
status = "hit";
applyFunction("onstop");
};
};
break;
};
}
private function applyFunction(param, angle=0){
if (((scope) && (functions[param]))){
if (type == "Brachio"){
functions[param].apply(scope, [type, hit, angle]);
} else {
functions[param].apply(scope, [type, hit]);
};
};
}
private function moveQuetza(squirrelskin){
var i:*;
switch (status){
case "idle":
hit = -1;
i = 0;
while (i < detector.length) {
if (squirrelskin.hitTestObject(detector[i])){
hit = i;
};
i++;
};
if (hit > -1){
applyFunction("onhit");
skin.beak.gotoAndPlay(10);
status = "stop";
};
break;
};
}
public function reset(){
status = "idle";
hitalready = false;
switch (type){
case "Blizzard":
changeSkin();
break;
case "Meteor":
changeSkin();
break;
case "Quetza":
changeSkin();
break;
case "Ptera":
changeSkin();
break;
case "Man":
changeSkin("run");
break;
case "Brachio":
changeSkin();
break;
case "Rex":
changeSkin("status");
break;
};
}
private function movePtera(squirrelskin){
var i:*;
switch (status){
case "idle":
hit = -1;
i = 0;
while (i < detector.length) {
if (squirrelskin.hitTestObject(detector[i])){
hit = i;
};
i++;
};
if (hit > -1){
applyFunction("onhit");
status = "stop";
};
break;
};
}
public function changeSkin(_skin=""){
switch (type){
case "Blizzard":
if (((skin) && (this.contains(skin)))){
this.removeChild(skin);
};
skin = new mc_blizzard();
detector = [skin.detector1, skin.detector2];
this.addChild(skin);
dx = -40;
dy = 0;
break;
case "Meteor":
if (((skin) && (this.contains(skin)))){
this.removeChild(skin);
};
skin = new mc_meteor();
detector = [skin.detector1];
this.addChild(skin);
dx = -40;
dy = 5;
break;
case "Quetza":
if (((skin) && (this.contains(skin)))){
this.removeChild(skin);
};
skin = new mc_quetzacoatl();
detector = [skin.detector1, skin.detector2];
this.addChild(skin);
dx = -40;
dy = -3;
break;
case "Ptera":
if (((skin) && (this.contains(skin)))){
this.removeChild(skin);
};
skin = new mc_pteranodon();
detector = [skin.detector1];
this.addChild(skin);
dx = -40;
dy = -3;
break;
case "Man":
if (_skin == "laugh"){
if (((skin) && (this.contains(skin)))){
this.removeChild(skin);
};
skin = new mc_manlaugh();
skin.scaleX = 1;
detector = [skin.detector1];
dx = 0;
this.addChild(skin);
} else {
if (_skin == "run"){
if (((skin) && (this.contains(skin)))){
this.removeChild(skin);
};
skin = new mc_manrun();
skin.scaleX = 1;
detector = [skin.detector1];
dx = -20;
this.addChild(skin);
} else {
if (_skin == "runback"){
if (((skin) && (this.contains(skin)))){
this.removeChild(skin);
};
skin = new mc_manrun();
skin.scaleX = -1;
detector = [skin.detector1];
dx = 10;
this.addChild(skin);
} else {
if (_skin == "hit"){
if (((skin) && (this.contains(skin)))){
this.removeChild(skin);
};
skin = new mc_manhit();
skin.scaleX = 1;
detector = [skin.detector1];
dx = -20;
this.addChild(skin);
};
};
};
};
break;
case "Brachio":
if (((skin) && (this.contains(skin)))){
this.removeChild(skin);
};
skin = new mc_brachiosaurus();
detector = [skin.detector1, skin.detector2, skin.detector3, skin.detector4, skin.detector5, skin.detector6, skin.detector7, skin.detector8, skin.detector9, skin.detector10];
this.addChild(skin);
break;
case "Rex":
if (_skin == "attackdown"){
if (((skin) && (this.contains(skin)))){
this.removeChild(skin);
};
skin = new mc_rex_attack_down();
this.addChild(skin);
} else {
if (_skin == "attackmid"){
if (((skin) && (this.contains(skin)))){
this.removeChild(skin);
};
skin = new mc_rex_attack_mid();
this.addChild(skin);
} else {
if (_skin == "attackup"){
if (((skin) && (this.contains(skin)))){
this.removeChild(skin);
};
skin = new mc_rex_attack_up();
this.addChild(skin);
} else {
if (_skin == "attackjump"){
if (((skin) && (this.contains(skin)))){
this.removeChild(skin);
};
skin = new mc_rex_attack_jump();
this.addChild(skin);
} else {
if (((skin) && (this.contains(skin)))){
this.removeChild(skin);
};
skin = new mc_rex_idle();
detector = [skin.detector1, skin.detector2, skin.detector3, skin.detector4];
this.addChild(skin);
};
};
};
};
break;
};
}
public function moveClip(squirrelskin){
if (type == "Rex"){
moveRex(squirrelskin);
} else {
if (type == "Brachio"){
moveBrachio(squirrelskin);
} else {
if (type == "Man"){
moveMan(squirrelskin);
} else {
if (type == "Ptera"){
movePtera(squirrelskin);
} else {
if (type == "Quetza"){
moveQuetza(squirrelskin);
} else {
if (type == "Meteor"){
moveMeteor(squirrelskin);
} else {
if (type == "Blizzard"){
moveBlizzard(squirrelskin);
};
};
};
};
};
};
};
}
private function moveMan(squirrelskin){
var i:*;
switch (status){
case "idle":
hit = -1;
i = 0;
while (i < detector.length) {
if (squirrelskin.hitTestObject(detector[i])){
hit = i;
};
i++;
};
if (hit > -1){
changeSkin("hit");
status = "hit";
};
break;
case "hit":
if (skin.currentFrame == 6){
if (!hitalready){
applyFunction("onhit");
hitalready = true;
};
status = "idle";
};
break;
};
}
private function moveBrachio(squirrelskin){
var i:*;
switch (status){
case "idle":
hit = -1;
i = 0;
while (i < detector.length) {
if (squirrelskin.hitTestObject(detector[i])){
hit = i;
};
i++;
};
if (hit > -1){
applyFunction("onhit", (angles[hit] - 180));
};
break;
};
}
private function moveMeteor(squirrelskin){
var i:*;
switch (status){
case "idle":
hit = -1;
i = 0;
while (i < detector.length) {
if (squirrelskin.hitTestObject(detector[i])){
hit = i;
};
i++;
};
if (hit > -1){
applyFunction("onhit");
status = "stop";
};
break;
};
}
}
}//package
Section 463
//DinosaurContainer (DinosaurContainer)
package {
public class DinosaurContainer extends ScrollContainer {
private var objects:Array;
public function DinosaurContainer(obj){
super();
objects = obj;
this.setLoop(false, -960, 960);
}
public function reset(){
while (this.numChildren > 0) {
this.removeChild(this.getChildAt(0));
};
}
public function dispatch(obj, time){
var o:*;
if (this.numChildren == 0){
switch (obj.name){
case "Rex":
if (time > 900){
if (this.y < 500){
obj.x = borderleft;
obj.y = 380;
if (obj.y > 380){
obj.y = 380;
};
this.addChild(obj);
obj.reset();
} else {
if (this.y < 2800){
o = objects[4];
o.x = borderright;
o.y = (300 - this.y);
this.addChild(o);
o.reset();
} else {
o = objects[5];
o.x = borderright;
o.y = (100 - this.y);
this.addChild(o);
o.reset();
};
};
};
break;
case "Man":
if (this.y < 500){
obj.x = (borderright - obj.width);
obj.y = 380;
if (obj.y > 380){
obj.y = 380;
};
this.addChild(obj);
obj.reset();
} else {
if (this.y < 2800){
o = objects[3];
o.x = borderright;
o.y = (300 - this.y);
this.addChild(o);
o.reset();
} else {
o = objects[5];
o.x = borderright;
o.y = (100 - this.y);
this.addChild(o);
o.reset();
};
};
break;
case "Brachio":
if (this.y < 500){
obj.x = borderleft;
obj.y = 380;
if (obj.y > 380){
obj.y = 380;
};
this.addChild(obj);
obj.reset();
} else {
if (this.y < 2800){
o = objects[6];
o.x = borderright;
o.y = (480 - this.y);
this.addChild(o);
o.reset();
};
};
break;
default:
break;
};
};
}
override public function moveClip(dx=0, dy=0){
this.updateMove(dx, dy);
}
}
}//package
Section 464
//DistanceSignContainer (DistanceSignContainer)
package {
import flash.display.*;
public class DistanceSignContainer extends MovieClip {
private var signpos:int;
private var lastd:int;
private var runnerskin:MovieClip;
private var signskin:MovieClip;
public var status;// = "idle"
public function DistanceSignContainer(_lastd){
status = "idle";
super();
if (_lastd){
lastd = _lastd;
} else {
lastd = 0;
};
reset();
}
public function reset(){
while (this.numChildren > 0) {
this.removeChild(this.getChildAt(0));
};
if (lastd > 10){
signskin = new mc_runsquirrelsign();
signskin.x = Math.floor((lastd / 5));
signskin.y = 370;
signskin.name = "sign";
signskin.gotoAndPlay(signskin.totalFrames);
signskin.setText((Math.floor(((lastd / 50) * -1)) + " ft"));
this.addChild(signskin);
};
status = "idle";
}
private function putSign(){
if (((signskin) && (this.contains(signskin)))){
this.removeChild(signskin);
};
signskin = runnerskin;
signskin.name = "stopsign";
signskin.gotoAndPlay(signskin.totalFrames);
signskin.setText((Math.floor(((lastd / 50) * -1)) + " ft"));
runnerskin = new mc_runsquirrel();
runnerskin.scaleX = -1;
runnerskin.x = signskin.x;
runnerskin.y = signskin.y;
runnerskin.name = "run";
this.addChild(runnerskin);
}
public function setDistance(_dist, _pos){
lastd = _dist;
signpos = _pos;
if (lastd > _dist){
runnerskin = new mc_runsquirrelsign();
runnerskin.x = 700;
runnerskin.y = 370;
runnerskin.name = "runsign";
this.addChild(runnerskin);
status = "working";
} else {
status = "idle";
};
}
public function moveClip(dx, y){
this.y = y;
if (signskin){
signskin.x = (signskin.x + dx);
};
if (((runnerskin) && (this.contains(runnerskin)))){
if (runnerskin.name == "runsign"){
runnerskin.x = (runnerskin.x - 15);
if (runnerskin.x < signpos){
runnerskin.x = signpos;
putSign();
};
} else {
if (runnerskin.name == "run"){
runnerskin.x = (runnerskin.x + 15);
if (runnerskin.x > 0x0500){
this.removeChild(runnerskin);
status = "finished";
};
};
};
};
}
}
}//package
Section 465
//FacebookShim (FacebookShim)
package {
import flash.display.*;
import com.facebook.data.users.*;
import com.facebook.data.fbml.*;
import com.adobe.images.*;
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.data.*;
import com.facebook.errors.*;
import com.facebook.data.photos.*;
import com.facebook.utils.*;
import com.facebook.data.stream.*;
import com.facebook.delegates.*;
import com.facebook.session.*;
import com.facebook.data.status.*;
import com.facebook.data.data.*;
import com.facebook.data.notes.*;
import com.facebook.commands.data.*;
import com.facebook.data.application.*;
import com.facebook.data.feed.*;
import com.facebook.data.admin.*;
import com.facebook.data.events.*;
import com.facebook.data.friends.*;
import com.facebook.data.pages.*;
import com.facebook.data.notifications.*;
import com.facebook.data.groups.*;
import com.facebook.events.*;
import com.facebook.data.batch.*;
import com.facebook.data.connect.*;
import com.facebook.data.profile.*;
import com.facebook.data.auth.*;
import com.adobe.crypto.*;
import com.adobe.utils.*;
import com.facebook.commands.photos.*;
import com.facebook.commands.video.*;
import com.facebook.*;
import com.facebook.commands.profile.*;
import com.facebook.commands.auth.*;
import com.facebook.commands.fbml.*;
import com.facebook.commands.notes.*;
import com.facebook.commands.stream.*;
import com.facebook.commands.notifications.*;
import com.facebook.commands.events.*;
import com.facebook.commands.pages.*;
import com.facebook.commands.comments.*;
import com.facebook.commands.connect.*;
import com.facebook.commands.sms.*;
import com.facebook.commands.feed.*;
import com.facebook.commands.batch.*;
import com.facebook.commands.admin.*;
import com.facebook.commands.groups.*;
import com.facebook.commands.users.*;
import com.facebook.commands.friends.*;
import com.facebook.commands.links.*;
import com.facebook.commands.intl.*;
import com.facebook.commands.fql.*;
import com.facebook.commands.message.*;
import com.facebook.commands.livemessage.*;
import com.facebook.commands.status.*;
import com.facebook.commands.application.*;
public class FacebookShim extends MovieClip {
var setuserpreference:SetUserPreference;
var facebookworkinfo:FacebookWorkInfo;
var defineassociation:DefineAssociation;
var getmetricsvalues:GetMetricsValues;
var setinfo:SetInfo;
var getgroupdata:GetGroupData;
var getgroupmembers:GetGroupMembers;
var stringresultdata:StringResultData;
var geteventsdata:GetEventsData;
var notescollection:NotesCollection;
var publishuseraction:PublishUserAction;
var getassociatedobjectcounts:GetAssociatedObjectCounts;
var jsonresultdata:JSONResultData;
var getregisteredtemplatebundlebyiddata:GetRegisteredTemplateBundleByIDData;
var setassociationsdatacollection:SetAssociationsDataCollection;
var attributedata:AttributeData;
var fbjsdata:FBJSData;
var videomedia:VideoMedia;
var getuserpreferences:GetUserPreferences;
var getuserpreferencesdata:GetUserPreferencesData;
var getrestrictioninfo:GetRestrictionInfo;
var setinfotypevalue:SetInfoTypeValue;
var isadmin:IsAdmin;
var fqlquery:FqlQuery;
var arrayresultdata:ArrayResultData;
var intutil:IntUtil;
var getloggedinuserdata:GetLoggedInUserData;
var sendnotification:SendNotification;
var gettags:GetTags;
var facebooklocation:FacebookLocation;
var rsvpstatus:RSVPStatus;
var cancelevent:CancelEvent;
var associnfodata:AssocInfoData;
var removehashkeys:RemoveHashKeys;
var setinfooptions:SetInfoOptions;
var defineobjectproperty:DefineObjectProperty;
var getbannedusers:GetBannedUsers;
var expiresession:ExpireSession;
var gettagsdata:GetTagsData;
var postlink:PostLink;
var facebooknetwork:FacebookNetwork;
var usercollection:UserCollection;
var getgroups:GetGroups;
var getmetrics:GetMetrics;
var notificationpokedata:NotificationPokeData;
var undefineobjectproperty:UndefineObjectProperty;
var deleteobject:DeleteObject;
var getallocation:GetAllocation;
var renameobjecttype:RenameObjectType;
var rsvp:RSVP;
var listsdata:ListsData;
var arefriends:AreFriends;
var websession:WebSession;
var phototagcollection:PhotoTagCollection;
var eventcollection:EventCollection;
var iuploadphoto:IUploadPhoto;
var friendsgetdata:FriendsGetData;
var webimageuploaddelegate:WebImageUploadDelegate;
var pagetypevalue:PageTypeValue;
var sendsms:SendSMS;
var renameobjectproperty:RenameObjectProperty;
var profiledata:ProfileData;
var eventcategoriesvalues:EventCategoriesValues;
var webdelegate:WebDelegate;
var photodata:PhotoData;
var jsontokentype:JSONTokenType;
var getassociatedobjects:GetAssociatedObjects;
var pageinfodata:PageInfoData;
var json:JSON;
var getloggedinuser:GetLoggedInUser;
var facebookusercollection:FacebookUserCollection;
var photomedia:PhotoMedia;
var namevaluecollection:NameValueCollection;
var createobjecttype:CreateObjectType;
var getlist:GetList;
var uploadphoto:UploadPhoto;
var unbanusers:UnbanUsers;
var isappuser:IsAppUser;
var getmembers:GetMembers;
var getinfo:GetInfo;
var getobjects:GetObjects;
var profilecollection:ProfileCollection;
var deleteobjects:DeleteObjects;
var getfiltersdata:GetFiltersData;
var infofieldsdata:InfoFieldsData;
var facebooksessionutil:FacebookSessionUtil;
var getpageinfo:GetPageInfo;
var batchrun:BatchRun;
var getmemberdata:GetMemberData;
var sendemail:SendEmail;
var getregisteredtemplatebundles:GetRegisteredTemplateBundles;
var templatebundlecollection:TemplateBundleCollection;
var sendlivemessage:SendLiveMessage;
var getunconnectedfriendscount:GetUnconnectedFriendsCount;
var leaftagdata:LeafTagData;
var getinfooptions:GetInfoOptions;
var getnotes:GetNotes;
var jssession:JSSession;
var getobjecttypesdata:GetObjectTypesData;
var revokeextendedpermission:RevokeExtendedPermission;
var facebookeventdata:FacebookEventData;
var removeassociatedobjects:RemoveAssociatedObjects;
var eventdata:EventData;
var registerusers:RegisterUsers;
var setcookie:SetCookie;
var updateobject:UpdateObject;
var numberresultdata:NumberResultData;
var setappproperties:SetAppProperties;
var batchcollection:BatchCollection;
var metricsdatacollection:MetricsDataCollection;
var removecomment:RemoveComment;
var getallocationvalues:GetAllocationValues;
var getassociationdefinitions:GetAssociationDefinitions;
var getalbumsdata:GetAlbumsData;
var facebookconnectutil:FacebookConnectUtil;
var getallocationdata:GetAllocationData;
var getnotifications:GetNotifications;
var likesdata:LikesData;
var restrictiondata:RestrictionData;
var setassociations:SetAssociations;
var getfriends:GetFriends;
var ifacebooksession:IFacebookSession;
var affiliationcollection:AffiliationCollection;
var ifacebookcalldelegate:IFacebookCallDelegate;
var removehashkey:RemoveHashKey;
var removeassociation:RemoveAssociation;
var addcomments:AddComments;
var desktopdelegate:DesktopDelegate;
var getcookiesdata:GetCookiesData;
var getfriendsdata:GetFriendsData;
var setuserpreferences:SetUserPreferences;
var emailhashutil:EmailHashUtil;
var uploadvideotypes:UploadVideoTypes;
var storytype:StoryType;
var preferencecollection:PreferenceCollection;
var tagcollection:TagCollection;
var isfan:IsFan;
var md5:MD5;
var notificationcollection:NotificationCollection;
var actionlinkcollection:ActionLinkCollection;
var streamstorycollection:StreamStoryCollection;
var getmetricsdata:GetMetricsData;
var setrestrictioninfo:SetRestrictionInfo;
var refreshimgsrc:RefreshImgSrc;
var jsdelegate:JSDelegate;
var markread:MarkRead;
var postcommentdata:PostCommentData;
var getappusers:GetAppUsers;
var registercustomtags:RegisterCustomTags;
var postrequest:PostRequest;
var friendscollection:FriendsCollection;
var userdata:UserData;
var getcommentsdata:GetCommentsData;
var getlists:GetLists;
var assoctypevalue:AssocTypeValue;
var getappuserdata:GetAppUserData;
var streammediadata:StreamMediaData;
var jsontoken:JSONToken;
var pageinfocollection:PageInfoCollection;
var getobject:GetObject;
var infoitemcollection:InfoItemCollection;
var getlinks:GetLinks;
var getcomments1:GetComments;
var ifacebookresultparser:IFacebookResultParser;
var publishpost:PublishPost;
var facebookarraycollection:FacebookArrayCollection;
var facebookcall:FacebookCall;
var jsonparseerror:JSONParseError;
var getlistsdata:GetListsData;
var getsessiondata:GetSessionData;
var attributecollection:AttributeCollection;
var removelike:RemoveLike;
var gettranslations:GetTranslations;
var uploadnativestrings:UploadNativeStrings;
var tagdata:TagData;
var albumcollection:AlbumCollection;
var photocollection:PhotoCollection;
var jpgencoder:JPGEncoder;
var hasapppermission:HasAppPermission;
var setrefhandle:SetRefHandle;
var publishtemplatizedaction:PublishTemplatizedAction;
var facebookeventdatacollection:FacebookEventDataCollection;
var groupcollection:GroupCollection;
var uploadphototypes:UploadPhotoTypes;
var facebookerrorcodes:FacebookErrorCodes;
var getstream:GetStream;
var notificationmessagedata:NotificationMessageData;
var getassociations:GetAssociations;
var getstandardinfodata:GetStandardInfoData;
var tagdata1:TagData;
var playerutils:PlayerUtils;
var getstatusdata:GetStatusData;
var undefineassociation:UndefineAssociation;
var getthreadsinfolder:GetThreadsInFolder;
var namevaluedata:NameValueData;
var removecomments:RemoveComments;
var getcookies:GetCookies;
var getappproperties:GetAppProperties;
var getsession:GetSession;
var editeventdata:EditEventData;
var getnotificationdata:GetNotificationData;
var createtoken:CreateToken;
var facebookuserxmlparser:FacebookUserXMLParser;
var gethashvalue:GetHashValue;
var getcustomtagsdata:GetCustomTagsData;
var renameassociation:RenameAssociation;
var templatecollection:TemplateCollection;
var albumdata:AlbumData;
var affiliationdata:AffiliationData;
var statusdata:StatusData;
var removeassociations:RemoveAssociations;
var addcomment:AddComment;
var streamstorydata:StreamStoryData;
var streamfilterdata:StreamFilterData;
var notedata:NoteData;
var abstractfileuploaddelegate:AbstractFileUploadDelegate;
var refreshrefurl:RefreshRefUrl;
var groupdata:GroupData;
var getinfodata:GetInfoData;
var javascriptrequesthelper:JavascriptRequestHelper;
var deactivatetemplatebundlebyid:DeactivateTemplateBundleByID;
var containertagdata:ContainerTagData;
var getpublicinfo:GetPublicInfo;
var objecttypescollection:ObjectTypesCollection;
var getalbums:GetAlbums;
var setfbml:SetFBML;
var pageinfofieldvalues:PageInfoFieldValues;
var isappadded:IsAppAdded;
var facebook:Facebook;
var friendsdata:FriendsData;
var getstatus:GetStatus;
var getnotificationvalue:GetNotificationValue;
var setstatus:SetStatus;
var editevent:EditEvent;
var actionlinkdata:ActionLinkData;
var getassociatedobjectcount:GetAssociatedObjectCount;
var promotesession:PromoteSession;
var registertemplatebundle:RegisterTemplateBundle;
var setassociation:SetAssociation;
var getcustomtags:GetCustomTags;
var extendedpermissionvalues:ExtendedPermissionValues;
var pngencoder:PNGEncoder;
var metricsdata:MetricsData;
var fqlmultiquery:FqlMultiquery;
var getobjecttype:GetObjectType;
var jsondecoder:JSONDecoder;
var createalbum:CreateAlbum;
var deletecustomtags:DeleteCustomTags;
var setobjectproperty:SetObjectProperty;
var editnotes:EditNotes;
var hasapppermissionvalues:HasAppPermissionValues;
var getobjecttypedata:GetObjectTypeData;
var desktopsession:DesktopSession;
var requesthelper:RequestHelper;
var getstreamdata:GetStreamData;
var cansendsms:CanSendSMS;
var facebookerror:FacebookError;
var preferencedata:PreferenceData;
var getcreatealbumdata:GetCreateAlbumData;
var sethashvalue:SetHashValue;
var eventprivacytypevalues:EventPrivacyTypeValues;
var getassociationdefinition:GetAssociationDefinition;
var iuploadvideo:IUploadVideo;
var inchashvalue:IncHashValue;
var mediatypes:MediaTypes;
var getobjectproperty:GetObjectProperty;
var getinfofieldvalues:GetInfoFieldValues;
var uploadvideo:UploadVideo;
var setassociationsdata:SetAssociationsData;
var storysizevalues:StorySizeValues;
var createevent:CreateEvent;
var templatedata:TemplateData;
var getmembersdata:GetMembersData;
var getapppropertiesdata:GetAppPropertiesData;
var facebookphoto:FacebookPhoto;
var jsonencoder:JSONEncoder;
var jsontokenizer:JSONTokenizer;
var dropobjecttype:DropObjectType;
var profilegetinfo:ProfileGetInfo;
var getpageinfodata:GetPageInfoData;
var facebookdatautils:FacebookDataUtils;
var objecttypesdata:ObjectTypesData;
var profiletypevalues:ProfileTypeValues;
var removepost:RemovePost;
var getcomments:GetComments;
var createnotes:CreateNotes;
var attachmentdata:AttachmentData;
var facebookeducationinfo:FacebookEducationInfo;
var createobject:CreateObject;
var getnotesdata:GetNotesData;
var getmetricsperiodvalues:GetMetricsPeriodValues;
var getstandardinfo:GetStandardInfo;
var unregisterusers:UnregisterUsers;
var addtag:AddTag;
var getphotos:GetPhotos;
var getmutualfriends:GetMutualFriends;
var booleanresultdata:BooleanResultData;
var photovisiblevalue:PhotoVisibleValue;
var bitstring:BitString;
var banusers:BanUsers;
var notificationsharedata:NotificationShareData;
var facebookdata:FacebookData;
var getphotosdata:GetPhotosData;
var getobjecttypes:GetObjectTypes;
var getregisteredtemplatebundledata:GetRegisteredTemplateBundleData;
var getregisteredtemplatebundlebyid:GetRegisteredTemplateBundleByID;
var facebookuser:FacebookUser;
var facebookevent:FacebookEvent;
var streamfiltercollection:StreamFilterCollection;
var getpublicinfodata:GetPublicInfoData;
var commentsdata:CommentsData;
var eventsubcategoriesvalues:EventSubCategoriesValues;
var xmldataparser:XMLDataParser;
var connectaccountmapdata:ConnectAccountMapData;
var genredata:GenreData;
var getuploadlimits:GetUploadLimits;
var getfbml:GetFBML;
var revokeauthorization:RevokeAuthorization;
var internalerrormessages:InternalErrorMessages;
var addlike:AddLike;
var getuserpreference:GetUserPreference;
var facebookxmlparserutils:FacebookXMLParserUtils;
var getinfooptionsdata:GetInfoOptionsData;
var facebookerrorreason:FacebookErrorReason;
var videouploaddelegate:VideoUploadDelegate;
var rsvpstatusvalues:RSVPStatusValues;
var fbjsbridgeutil:FBJSBridgeUtil;
var connectaccountmapcollection:ConnectAccountMapCollection;
var validationutils:ValidationUtils;
var batchresult:BatchResult;
var createeventdata:CreateEventData;
var abstracttagdata:AbstractTagData;
var arefriendsdata:AreFriendsData;
var getfilters:GetFilters;
var getevents:GetEvents;
var facebookstreamxmlparser:FacebookStreamXMLParser;
var infoitemdata:InfoItemData;
var setstatus1:SetStatus;
var deletenotes:DeleteNotes;
var status:Status;
}
}//package
Section 466
//FBDataManager (FBDataManager)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
public class FBDataManager extends MovieClip {
private var maintimeline;
private var fdata:Array;
private var picloader:Array;
private var connecturl;// = "http://gameboltz.com/testsquirrelfly/submit.php"
private var uid:int;
private var debug;// = true
private var fpanel:MovieClip;
private var txdebug:TextField;
private var par:Object;
private var paneltimer:int;
private var tweenmgr;
private var scrollidx:int;
private var inviteurl;// = "http://apps.facebook.com/testsquirrelfly/invite.php"
private var panelstatus:String;
public function FBDataManager(_mtl){
var pattern:RegExp;
debug = true;
connecturl = "http://gameboltz.com/testsquirrelfly/submit.php";
inviteurl = "http://apps.facebook.com/testsquirrelfly/invite.php";
super();
maintimeline = _mtl;
tweenmgr = maintimeline.tweenmgr;
this.x = 5;
this.y = 5;
if (debug){
txdebug = new TextField();
txdebug.x = 0;
txdebug.y = 480;
txdebug.width = 640;
txdebug.height = 20;
txdebug.textColor = 0;
txdebug.selectable = false;
this.addChild(txdebug);
};
par = LoaderInfo(maintimeline.root.loaderInfo).parameters;
if (par["fb_sig_user"]){
uid = int(par["fb_sig_user"]);
} else {
uid = 1266739467;
};
if (par["gateway"]){
connecturl = par["gateway"];
pattern = /%3A/gi;
connecturl.replace(pattern, ":");
pattern = /%2F/gi;
connecturl.replace(pattern, "/");
};
if (par["invite"]){
inviteurl = par["invite"];
pattern = /%3A/gi;
inviteurl.replace(pattern, ":");
pattern = /%2F/gi;
inviteurl.replace(pattern, "/");
};
}
private function loadPicLoader(){
var i:*;
var obj:*;
picloader = [fpanel.mcloader1, fpanel.mcloader2, fpanel.mcloader3, fpanel.mcloader4, fpanel.mcloader5, fpanel.mcloader6];
scrollidx = 0;
i = 0;
while (i < fdata.length) {
if (i > 6){
picloader.push(obj);
picloader[i].x = picloader[(i % 6)].x;
picloader[i].y = picloader[(i % 6)].y;
};
picloader[i].loader.source = fdata[i]["pic"];
picloader[i].txname.text = fdata[i]["name"];
picloader[i].txpoint.text = fdata[i]["score"];
i++;
};
fpanel.addEventListener(MouseEvent.ROLL_OVER, showPanel, false, 0, true);
fpanel.addEventListener(MouseEvent.ROLL_OUT, hidePanel, false, 0, true);
fpanel.btleft.addEventListener(MouseEvent.CLICK, scrollLeft, false, 0, true);
fpanel.btright.addEventListener(MouseEvent.CLICK, scrollRight, false, 0, true);
}
private function getName():String{
var i:*;
i = 0;
while ((((i < fdata.length)) && (!((fdata[i].uid == uid))))) {
if (fdata[i].uid != uid){
i++;
};
};
return (fdata[i].name);
}
private function showPanel(e){
if (panelstatus != "show"){
panelstatus = "show";
paneltimer = 10;
};
}
public function submit(_score){
var ul:*;
var rq:*;
var rv:*;
if (uid){
rq = new URLRequest(connecturl);
rv = new URLVariables();
rv.score = _score;
rv.uid = uid;
rq.data = rv;
rq.method = URLRequestMethod.POST;
sendToURL(rq);
};
}
private function parseData(_data){
var i:*;
var br:*;
var parsed:*;
br = _data.split(/\s+/);
i = 0;
parsed = new Array();
while (i < br.length) {
parsed.push({uid:int(br[i]), name:br[(i + 1)], pic:br[(i + 2)], score:int(br[(i + 3)])});
i = (i + 4);
};
return (parsed);
}
private function sortByScore(_data){
_data.sortOn("score", Array.DESCENDING);
return (_data);
}
private function setScore(_score){
var i:*;
i = 0;
while ((((i < fdata.length)) && (!((fdata[i].uid == uid))))) {
if (fdata[i].uid != uid){
i++;
};
};
if (i < fdata.length){
fdata[i].score = int(_score);
};
}
private function scrollRight(e){
var i:*;
if (scrollidx < (picloader.length - 6)){
scrollidx = (scrollidx + 6);
i = 0;
while (i < picloader.length) {
if (fpanel.contains(picloader[i])){
fpanel.removeChild(picloader[i]);
};
i++;
};
i = scrollidx;
while ((((i < (scrollidx + 6))) && ((i < picloader.length)))) {
fpanel.addChild(picloader[i]);
i++;
};
};
}
private function scrollLeft(e){
var i:*;
if (scrollidx > 5){
scrollidx = (scrollidx - 6);
i = 0;
while (i < picloader.length) {
if (fpanel.contains(picloader[i])){
fpanel.removeChild(picloader[i]);
};
i++;
};
i = scrollidx;
while ((((i < (scrollidx + 6))) && ((i < picloader.length)))) {
fpanel.addChild(picloader[i]);
i++;
};
};
}
function refreshPicLoader(){
var i:*;
var obj:*;
i = 0;
while (i < fdata.length) {
if (!picloader[i]){
picloader.push(obj);
picloader[i].x = picloader[(i % 6)].x;
picloader[i].y = picloader[(i % 6)].y;
};
picloader[i].loader.source = fdata[i]["pic"];
picloader[i].txname.text = fdata[i]["name"];
picloader[i].txpoint.text = fdata[i]["score"];
i++;
};
}
private function moveClip(e){
if (!maintimeline.contains(this)){
maintimeline.addChild(this);
};
maintimeline.setChildIndex(this, 1);
if (fpanel.currentFrame == 2){
if (!picloader){
fpanel.txgreeter.text = (("Welcome, " + getName()) + "!");
loadPicLoader();
} else {
if (paneltimer > 0){
paneltimer--;
if (paneltimer == 0){
if (panelstatus == "show"){
tweenmgr.register(fpanel, {live:10, ease:"easeoutcubic", x:0, y:-160, alpha:1, rotation:0, scalex:1, scaley:1});
} else {
if (panelstatus == "hide"){
tweenmgr.register(fpanel, {live:10, ease:"easeincubic", x:0, y:0, alpha:1, rotation:0, scalex:1, scaley:1});
};
};
};
};
};
};
}
private function setDebugText(s){
if (txdebug){
txdebug.text = s;
};
}
private function hidePanel(e){
if (panelstatus != "hide"){
panelstatus = "hide";
paneltimer = 10;
};
}
}
}//package
Section 467
//ForceVector (ForceVector)
package {
public class ForceVector {
public var dx:Number;
public var dy:Number;
public var a:Number;
public var r:Number;
public function ForceVector(_r=0, _a=0, _dx=0, _dy=0){
super();
if (_r == 0){
if (_a == 0){
setCartesian(_dx, _dy);
} else {
setTubular(_r, _a);
};
} else {
setTubular(_r, _a);
};
}
private function setCartesian(_dx, _dy){
dx = _dx;
dy = _dy;
r = getR(dx, dy);
a = getA(dx, dy);
}
public function addForce(_f){
setCartesian((dx + _f.dx), (dy + _f.dy));
}
private function getDy(_r, _a):Number{
return ((_r * Math.sin(((_a * Math.PI) / 180))));
}
private function getResultantA(_r, _a):Number{
dx = (getDx(r, a) + getDx(_r, _a));
dy = (getDy(r, a) + getDy(_r, _a));
return (((Math.atan2(dy, dx) * 180) / Math.PI));
}
private function setTubular(_r, _a){
r = _r;
a = _a;
dx = getDx(r, a);
dy = getDy(r, a);
}
private function getDx(_r, _a):Number{
return ((_r * Math.cos(((_a * Math.PI) / 180))));
}
public function setDx(_dx){
set(0, 0, _dx, dy);
}
public function setDy(_dy){
set(0, 0, dx, _dy);
}
private function getResultantR(_r, _a):Number{
dx = (getDx(r, a) + getDx(_r, _a));
dy = (getDy(r, a) + getDy(_r, _a));
return (Math.sqrt(((dx * dx) + (dy * dy))));
}
public function setA(_a){
set(r, _a);
}
public function set(_r=0, _a=0, _dx=0, _dy=0){
if (_r == 0){
if (_a == 0){
setCartesian(_dx, _dy);
} else {
setTubular(_r, _a);
};
} else {
setTubular(_r, _a);
};
}
private function getA(_dx, _dy):Number{
return (((Math.atan2(_dy, _dx) * 180) / Math.PI));
}
public function setR(_r){
set(_r, a);
}
public function add(_r=0, _a=0, _dx=0, _dy=0){
if (_r == 0){
if (_a == 0){
setCartesian((dx + _dx), (dy + _dy));
} else {
setTubular(getResultantR(_r, _a), getResultantA(_r, _a));
};
} else {
setTubular(getResultantR(_r, _a), getResultantA(_r, _a));
};
}
private function getR(_dx, _dy):Number{
return (Math.sqrt(((_dx * _dx) + (_dy * _dy))));
}
}
}//package
Section 468
//GameDataManager (GameDataManager)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class GameDataManager {
public var playtime:int;
private var maintimeline:MovieClip;
public var topspeed:int;
private var admgr:HostManager;
public var achievementsnote:Array;
public var maxobjecthit:int;
public var maxawards:int;
public var gravityfactor;
public var wingflapcount;
private var savepath:String;
public var rocketfactor;
public var achievements:Array;
public var totalobjecthit:int;
public var unlockallachievement:Boolean;// = false
public var totaldistance:int;
public var launchcount:int;
public var slingerfactor;
private var achieverskin:MovieClip;
public var wingflapfactor;
public var highestlaunch:int;
private var fbookmgr:FBDataManager;
public var badlandingstreak:int;
public var debugmode:Boolean;// = false
public var alreadysubmit:Boolean;
public var resetdata:Boolean;// = false
public var longestdistance:int;
private var savename:String;
public var parachutetime;
public var score:int;
public var goodlandingcount:int;
private var achieverqueue:Array;
private var achievertimer:int;
public var maxacorn:int;
private var savedata:Boolean;
public var rockettime;
private var achieverpic:MovieClip;
public var upgradeprice:Array;
public var goodlandingstreak:int;
public var money:int;
private var tracing:Boolean;// = false
public var totalacorn:int;
private var tweenmgr:TweenManager;
public var parachutefactor;
private var gnmgr:GameNinjaDataManager;
public var showtooltips:Array;
public var username;
public var upgrades:Array;
private var kongmgr:KongregateDataManager;
public var badlandingcount:int;
public var bouncefactor;
public var maxcoin:int;
public var totalawards:int;
public var totalmoney:int;
public function GameDataManager(mtl){
tracing = false;
resetdata = false;
debugmode = false;
unlockallachievement = false;
achievementsnote = [["Participation", "Play for 3 min total"], ["Test Drive", "Play for 5 min total"], ["Kinda Fun!", "Play for 10 min total"], ["Interesting", "Play for 30 min total"], ["Addicted", "Play for 60 min total"], ["I d l y", "Pause the game for 1 minutes"], ["Jobless", "Play a round without any stamina used"], ["Bungee Style!", "Hit a Brachiosaurs"], ["Dead Meat", "Hit a Rex"], ["Hit and Run", "Hit a Caveman"], ["Fast Glide", "Hit a Ptera"], ["Angry Bird", "Hit a Quetzacoatl"], ["Unfortunate", "Killed at the first bounce"], ["Secure Fly", "5 good landing in a row"], ["Preventative Fly", "10 good landing in a row"], ["Persistened", "10 bad landing total"], ["Determined", "25 bad landing total"], ["Boring Life", "Hit no object in a fly"], ["Barricades", "Hit more than 5 objects in a fly"], ["Blocked Road", "Hit more than 10 objects in a fly"], ["Stone Fence", "Hit more than 15 objects in a fly"], ["Foods!", "Get 1 acorn in a fly"], ["Collector", "Get 3 acorn in a fly"], ["Maniac", "Get 5 acorn in a fly"], ["Beginner's Luck", "Fly for 1000 ft"], ["Novice", "Fly for 5,000 ft"], ["Intermediate", "Fly for 10,000 ft"], ["Advancing", "Fly for 25,000 ft"], ["Experienced", "Fly for total 750,000 ft"], ["Blizzardius", "Hit a blizzard"], ["Meteora", "Burnt by meteor"], ["Researcher", "View credits page"], ["Show Off", "View awards page"], ["Start Over", "Reset game data"], ["Turning to The Darkside", "Completely upgraded patagium"], ["Rocketeer", "Completely upgraded rocket"], ["Airborne army", "Completely upgraded parachute"], ["Mechaniclist", "Completely upgraded launcher"], ["Scout camp", "Completely upgraded stamina"], ["Engineer", "Completely upgraded radar"], ["Nocturnity", "Spend money to all upgradable units"], ["Cheapmunk", "Collecting total 10 coin in a fly"], ["Thiefmunk", "Collecting total 15 coin in a fly"], ["Luckymunk", "Collecting total 20 coin in a fly"], ["Mountains", "Reaching top of mountains"], ["Cloudy", "Reaching clouds"], ["Astronuts", "Reaching stars"], ["Sprinter", "Reaching 20 mph"], ["Need 4 Speed", "Reaching 40 mph"], ["Lightning Tail", "Reaching 60 mph"]];
achievements = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
upgrades = [0, 0, 0, 0, 0, 0];
upgradeprice = [[0, 100, 1250, 4000, 0], [0, 25, 500, 2000, 0], [0, 75, 1000, 2500, 0], [0, 25, 1000, 7500, 0], [0, 100, 750, 5000, 0], [0, 75, 400, 3000, 0]];
bouncefactor = [0.5, 0.55, 0.6, 0.65];
slingerfactor = [0.4, 0.5, 0.65, 0.85];
wingflapcount = [3, 4, 6, 9];
wingflapfactor = [0.5, 0.6, 0.75, 0.9];
gravityfactor = [1, 0.99, 0.98, 0.96];
parachutefactor = [1, 0.3, 0.2, 0.1];
parachutetime = [0, 60, 120, 240];
rocketfactor = [0, 1, 1.5, 2];
rockettime = [0, 90, 100, 120];
super();
if (tracing){
trace("GameDataManager:$init: Initiating game data manager");
};
maintimeline = mtl;
tweenmgr = maintimeline.tweenmgr;
admgr = maintimeline.admgr;
if (admgr.usekong){
kongmgr = new KongregateDataManager(maintimeline);
};
gnmgr = new GameNinjaDataManager(maintimeline);
savename = "x_flysquirrelfly1.0_x";
savepath = "";
savedata = true;
resetData();
if (resetdata){
saveData();
};
loadData();
saveFaceBook();
achieverqueue = new Array();
achieverskin = new mc_achiever();
achieverpic = achieverskin.btach;
achievertimer = 0;
alreadysubmit = false;
}
public function doUpgrade(_idx){
if ((((money >= upgradeprice[_idx][(upgrades[_idx] + 1)])) && ((upgrades[_idx] < (upgradeprice[_idx].length - 2))))){
money = (money - upgradeprice[_idx][(upgrades[_idx] + 1)]);
var _local2 = upgrades;
var _local3 = _idx;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
} else {
if (((debugmode) && ((upgrades[_idx] < (upgradeprice[_idx].length - 2))))){
_local2 = upgrades;
_local3 = _idx;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
};
};
}
public function isCompletelyUpgraded():Boolean{
var res:*;
var i:*;
res = true;
i = 0;
while (i < upgrades.length) {
res = ((res) && ((upgrades[i] == 3)));
i++;
};
return (res);
}
public function addGoodLanding(){
goodlandingcount++;
if (goodlandingstreak == 0){
badlandingstreak = 0;
};
goodlandingstreak++;
}
public function saveKong(){
if (kongmgr){
kongmgr.submit({TOTAL_ACHIEVEMENTS:totalawards, MAX_DISTANCE:totaldistance, HIGHEST_LAUNCH:highestlaunch, MAX_SPEED:topspeed, TOTAL_ACORN:totalacorn, SCORE:score});
};
}
public function setUsername(_uname){
username = _uname;
}
private function pauseAchievement(_skin){
if (achieverqueue.length > 1){
achievertimer = 30;
} else {
achievertimer = 60;
};
achieverskin.addEventListener(Event.ENTER_FRAME, waitAchievement, false, 0, true);
}
public function doDebugMode(){
debugmode = true;
savedata = false;
achievements = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
}
public function setAchievement(_id){
if (!achievements[_id]){
achieverqueue.push(_id);
achievements[_id] = 1;
if (achieverqueue.length == 1){
showAchievement();
} else {
achievertimer = (achievertimer * 0.5);
};
};
}
private function waitAchievement(e){
achievertimer--;
if (achievertimer == 0){
tweenmgr.register(achieverskin, {live:15, ease:"easenone", x:achieverskin.x, y:(0 - achieverskin.height), alpha:1, rotation:0, scalex:1, scaley:1}, {scope:this, onfinished:hideAchievement});
achieverskin.removeEventListener(Event.ENTER_FRAME, waitAchievement);
};
}
public function saveFaceBook(){
if (fbookmgr){
fbookmgr.submit(score);
};
}
private function hideAchievement(_skin){
achieverqueue.splice(0, 1);
if (achieverqueue.length > 0){
showAchievement();
};
}
public function getAchievementCount():int{
var i:*;
var cnt:*;
cnt = 0;
i = 0;
while (i < achievements.length) {
cnt = (cnt + achievements[i]);
i++;
};
return (cnt);
}
public function resetData(){
upgrades = [0, 0, 0, 0, 0, 0];
launchcount = 0;
score = 0;
money = 0;
totalmoney = 0;
maxcoin = 0;
totaldistance = 0;
longestdistance = 0;
highestlaunch = 0;
topspeed = 0;
totalobjecthit = 0;
maxobjecthit = 0;
totalawards = 0;
maxawards = 0;
totalacorn = 0;
maxacorn = 0;
playtime = 0;
goodlandingcount = 0;
goodlandingstreak = 0;
badlandingcount = 0;
badlandingstreak = 0;
}
private function loadData(){
var so:*;
if (tracing){
trace("GameDataManager:loadData: :Loading Data");
};
so = SharedObject.getLocal(savename);
if (so.size == 0){
resetData();
saveData();
};
resetData();
achievements = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
if (so.data.launchcount){
achievements = so.data.achievements;
upgrades = so.data.upgrades;
launchcount = so.data.launchcount;
score = so.data.score;
money = so.data.money;
totalmoney = so.data.totalmoney;
maxcoin = so.data.maxcoin;
totaldistance = so.data.totaldistance;
longestdistance = so.data.longestdistance;
highestlaunch = so.data.highestlaunch;
topspeed = so.data.topspeed;
totalobjecthit = so.data.totalobjecthit;
maxobjecthit = so.data.maxobjecthit;
totalawards = so.data.totalawards;
maxawards = so.data.maxawards;
totalacorn = so.data.totalacorn;
maxacorn = so.data.maxacorn;
playtime = so.data.playtime;
goodlandingcount = so.data.goodlandingcount;
goodlandingstreak = so.data.goodlandingstreak;
badlandingcount = so.data.badlandingcount;
badlandingstreak = so.data.badlandingstreak;
};
}
public function saveGameNinja(_username=""){
if (_username != ""){
username = _username;
};
if (!alreadysubmit){
alreadysubmit = true;
if (((gnmgr) && (username))){
gnmgr.submit({username:username, score:score});
};
};
}
public function saveData(){
var so:*;
if (tracing){
trace("GameDataManager:saveData: Saving Data");
};
so = SharedObject.getLocal(savename);
if (savedata){
so.data.achievements = achievements;
so.data.upgrades = upgrades;
so.data.launchcount = launchcount;
so.data.score = score;
so.data.money = money;
so.data.totalmoney = totalmoney;
so.data.maxcoin = maxcoin;
so.data.totaldistance = totaldistance;
so.data.longestdistance = longestdistance;
so.data.highestlaunch = highestlaunch;
so.data.topspeed = topspeed;
so.data.totalobjecthit = totalobjecthit;
so.data.maxobjecthit = maxobjecthit;
so.data.totalawards = totalawards;
so.data.maxawards = maxawards;
so.data.totalacorn = totalacorn;
so.data.maxacorn = maxacorn;
so.data.playtime = playtime;
so.data.goodlandingcount = goodlandingcount;
so.data.goodlandingstreak = goodlandingstreak;
so.data.badlandingcount = badlandingcount;
so.data.badlandingstreak = badlandingstreak;
so.flush();
saveKong();
saveFaceBook();
};
alreadysubmit = false;
}
public function addBadLanding(){
badlandingcount++;
if (badlandingstreak == 0){
goodlandingstreak = 0;
};
badlandingstreak++;
}
public function isCanUpgrade():Boolean{
var i:*;
var res:*;
res = false;
i = 0;
while (i < upgrades.length) {
res = ((res) || ((((money >= upgradeprice[i][(upgrades[i] + 1)])) && ((upgrades[i] < (upgradeprice[i].length - 2))))));
i++;
};
return (res);
}
private function showAchievement(){
var pos:*;
achieverskin.x = (645 - achieverskin.width);
achieverskin.y = (0 - achieverskin.height);
achieverskin.txtach.text = achievementsnote[achieverqueue[0]][0];
pos = [achieverpic.x, achieverpic.y];
achieverskin.removeChild(achieverpic);
switch (achieverqueue[0]){
case 0:
achieverpic = new bt_ach1();
break;
case 1:
achieverpic = new bt_ach2();
break;
case 2:
achieverpic = new bt_ach3();
break;
case 3:
achieverpic = new bt_ach4();
break;
case 4:
achieverpic = new bt_ach5();
break;
case 5:
achieverpic = new bt_ach6();
break;
case 6:
achieverpic = new bt_ach7();
break;
case 7:
achieverpic = new bt_ach8();
break;
case 8:
achieverpic = new bt_ach9();
break;
case 9:
achieverpic = new bt_ach10();
break;
case 10:
achieverpic = new bt_ach11();
break;
case 11:
achieverpic = new bt_ach12();
break;
case 12:
achieverpic = new bt_ach13();
break;
case 13:
achieverpic = new bt_ach14();
break;
case 14:
achieverpic = new bt_ach15();
break;
case 15:
achieverpic = new bt_ach16();
break;
case 16:
achieverpic = new bt_ach17();
break;
case 17:
achieverpic = new bt_ach18();
break;
case 18:
achieverpic = new bt_ach19();
break;
case 19:
achieverpic = new bt_ach20();
break;
case 20:
achieverpic = new bt_ach21();
break;
case 21:
achieverpic = new bt_ach22();
break;
case 22:
achieverpic = new bt_ach23();
break;
case 23:
achieverpic = new bt_ach24();
break;
case 24:
achieverpic = new bt_ach25();
break;
case 25:
achieverpic = new bt_ach26();
break;
case 26:
achieverpic = new bt_ach27();
break;
case 27:
achieverpic = new bt_ach28();
break;
case 28:
achieverpic = new bt_ach29();
break;
case 29:
achieverpic = new bt_ach20();
break;
case 30:
achieverpic = new bt_ach31();
break;
case 31:
achieverpic = new bt_ach32();
break;
case 32:
achieverpic = new bt_ach33();
break;
case 33:
achieverpic = new bt_ach34();
break;
case 34:
achieverpic = new bt_ach35();
break;
case 35:
achieverpic = new bt_ach36();
break;
case 36:
achieverpic = new bt_ach37();
break;
case 37:
achieverpic = new bt_ach38();
break;
case 38:
achieverpic = new bt_ach39();
break;
case 39:
achieverpic = new bt_ach40();
break;
case 40:
achieverpic = new bt_ach41();
break;
case 41:
achieverpic = new bt_ach42();
break;
case 42:
achieverpic = new bt_ach43();
break;
case 43:
achieverpic = new bt_ach44();
break;
case 44:
achieverpic = new bt_ach45();
break;
case 45:
achieverpic = new bt_ach46();
break;
case 46:
achieverpic = new bt_ach47();
break;
case 47:
achieverpic = new bt_ach48();
break;
case 48:
achieverpic = new bt_ach49();
break;
case 49:
achieverpic = new bt_ach50();
break;
};
achieverpic.x = pos[0];
achieverpic.y = pos[1];
achieverpic.gotoAndStop(2);
achieverskin.addChild(achieverpic);
maintimeline.addChild(achieverskin);
maintimeline.setChildIndex(achieverskin, (maintimeline.numChildren - 2));
tweenmgr.register(achieverskin, {live:15, ease:"easenone", x:achieverskin.x, y:5, alpha:1, rotation:0, scalex:1, scaley:1}, {scope:this, onfinished:pauseAchievement});
}
}
}//package
Section 469
//GameManager (GameManager)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class GameManager extends MovieClip {
public var maintimeline;
public var panel;
private var shaketimer:int;
private var scrollprevx;
public var admgr;
private var pausedlg:MovieClip;
public var datamgr;
private var resetdlg:MovieClip;
private var starttime;
public var btnmgr;
private var scenectr;
private var shakestrength:int;
private var detectachievementstimer;
private var startpausetime;
public var soundmgr;
private var dialogitem;
private var resultdlg:MovieClip;
private var highscoredlg:MovieClip;
private var awards;
public var ctrlmgr;
private var tooltips:Array;
public var tweenmgr;
public var status:String;
private var upgradelamps:Array;
public function GameManager(_mtl){
var i:*;
super();
maintimeline = _mtl;
ctrlmgr = maintimeline.ctrlmgr;
tweenmgr = maintimeline.tweenmgr;
soundmgr = maintimeline.soundmgr;
admgr = maintimeline.admgr;
datamgr = maintimeline.datamgr;
scenectr = new SceneContainer(_mtl);
this.addChild(scenectr);
this.addEventListener(MouseEvent.MOUSE_UP, doFlap, false, 0, true);
tooltips = [new mc_tooltips_parachute(), new mc_tooltips_rocket()];
tooltips[0].addEventListener(MouseEvent.CLICK, hideTooltips, false, 0, true);
tooltips[1].addEventListener(MouseEvent.CLICK, hideTooltips, false, 0, true);
tooltips[0].buttonMode = true;
tooltips[1].buttonMode = true;
resultdlg = new mc_resultpage();
resultdlg.btstatistics.addEventListener(MouseEvent.CLICK, goStatistics, false, 0, true);
resultdlg.btupgrade.addEventListener(MouseEvent.CLICK, goUpgrade, false, 0, true);
pausedlg = new mc_paused();
pausedlg.y = -200;
panel = new mc_cpanel_lv0();
startNewGame();
detectachievementstimer = 60;
datamgr.showtooltips = new Array();
}
private function goUpgrade(e=null){
maintimeline.statsfirst = false;
maintimeline.gotoAndStop("statspage");
}
private function goStatistics(e=null){
maintimeline.statsfirst = true;
maintimeline.gotoAndStop("statspage");
}
private function hideTooltips(e=null){
status = "playing";
if (this.contains(tooltips[0])){
this.removeChild(tooltips[0]);
};
if (this.contains(tooltips[1])){
this.removeChild(tooltips[1]);
};
}
function noResultDialog(e){
maintimeline.stage.frameRate = 30;
awards = 0;
status = "startplaying";
this.removeChild(resultdlg);
}
private function detectResultAchievements(){
if (!scenectr.usewingflap){
datamgr.setAchievement(6);
};
if (scenectr.resultobject == 0){
datamgr.setAchievement(17);
};
if (scenectr.goodlanding){
if (datamgr.goodlandingstreak >= 10){
datamgr.setAchievement(14);
} else {
if (datamgr.goodlandingstreak >= 5){
datamgr.setAchievement(13);
};
};
} else {
if (scenectr.bouncecount == 0){
datamgr.setAchievement(12);
};
if (datamgr.badlandingcount >= 25){
datamgr.setAchievement(16);
} else {
if (datamgr.badlandingcount >= 10){
datamgr.setAchievement(15);
};
};
};
if (datamgr.totaldistance >= 750000){
datamgr.setAchievement(28);
};
}
private function increaseBGM(obj=null){
if (soundmgr.bgmvolume < 0.25){
soundmgr.adjustBGM(0.25);
} else {
if (soundmgr.bgmvolume < 0.5){
soundmgr.adjustBGM(0.5);
} else {
if (soundmgr.bgmvolume < 0.75){
soundmgr.adjustBGM(0.75);
} else {
if (soundmgr.bgmvolume < 1){
soundmgr.adjustBGM(1);
} else {
soundmgr.adjustBGM(0);
};
};
};
};
adjustBGMLamp(btnmgr.button[obj].parent);
soundmgr.playSFX("menuclick");
}
function hideResultDialog(e){
if (datamgr.isCanUpgrade()){
goUpgrade();
} else {
tweenmgr.register(resultdlg, {live:5, ease:"easenone", x:0, y:0, alpha:1, scalex:1, scaley:1}, {scope:this, onrefresh:scrollScene, onfinished:noResultDialog});
};
}
private function hidePauseDialog(obj=null){
tweenmgr.register(pausedlg, {live:5, ease:"easenone", x:0, y:600, alpha:1, scalex:1, scaley:1}, {scope:this, onfinished:noPauseDialog});
starttime = (starttime + (getTimer() - startpausetime));
soundmgr.playSFX("menuclick");
}
private function noPauseDialog(obj=null){
if (this.contains(obj)){
this.removeChild(obj);
};
status = "playing";
}
private function shakeScreen(){
var ang:*;
if (shaketimer > 1){
shaketimer--;
ang = (Math.PI * Math.random());
this.x = (this.x + ((shakestrength * Math.cos(ang)) - (shakestrength * 0.5)));
this.y = (this.y + ((shakestrength * Math.sin(ang)) - (shakestrength * 0.5)));
shakestrength = (shakestrength * 0.8);
} else {
if (shaketimer == 1){
shaketimer--;
this.x = 0;
this.y = 0;
};
};
}
private function showResultDialog(obj=null){
var resmoney:*;
var restime:*;
restime = (getTimer() - starttime);
starttime = getTimer();
resmoney = Math.floor((((((((scenectr.resultcoin * 5) + (scenectr.resultdistance / 25)) + (scenectr.resultheight / 50)) + (scenectr.resultobject / 8)) + ((scenectr.resultdistance / 1000) * 5)) + ((scenectr.resultdistance / 10000) * 25)) + ((scenectr.resultheight / 100) * 50)));
datamgr.launchcount++;
datamgr.money = (datamgr.money + resmoney);
datamgr.score = (datamgr.score + ((resmoney + scenectr.resultdistance) + scenectr.resultheight));
datamgr.totalmoney = (datamgr.totalmoney + resmoney);
datamgr.maxcoin = ((datamgr.maxcoin)<scenectr.resultcoin) ? scenectr.resultcoin : datamgr.maxcoin;
datamgr.totaldistance = (datamgr.totaldistance + scenectr.resultdistance);
datamgr.longestdistance = ((datamgr.longestdistance)<scenectr.resultdistance) ? scenectr.resultdistance : datamgr.longestdistance;
datamgr.highestlaunch = ((datamgr.highestlaunch)<scenectr.resultheight) ? scenectr.resultheight : datamgr.highestlaunch;
datamgr.topspeed = ((datamgr.topspeed)<scenectr.resultspeed) ? scenectr.resultspeed : datamgr.topspeed;
datamgr.totalobjecthit = (datamgr.totalobjecthit + scenectr.resultobject);
datamgr.maxobjecthit = ((datamgr.maxobjecthit)<scenectr.resultobject) ? scenectr.resultobject : datamgr.maxobjecthit;
datamgr.totalawards = (datamgr.totalawards + scenectr.resultawards);
datamgr.maxawards = ((datamgr.maxawards)<scenectr.resultawards) ? scenectr.resultawards : datamgr.maxawards;
datamgr.totalacorn = (datamgr.totalacorn + scenectr.resultacorn);
datamgr.maxacorn = ((datamgr.maxacorn)<scenectr.resultacorn) ? scenectr.resultacorn : datamgr.maxacorn;
datamgr.playtime = (datamgr.playtime + restime);
if (scenectr.goodlanding){
datamgr.addGoodLanding();
} else {
datamgr.addBadLanding();
};
resultdlg.resultscore.text = datamgr.score;
resultdlg.resultmoney.text = ("$ " + resmoney);
resultdlg.resultdistance.text = (scenectr.resultdistance.toFixed(1) + " ft");
resultdlg.resultheight.text = (scenectr.resultheight.toFixed(1) + " ft");
resultdlg.resultspeed.text = (scenectr.resultspeed.toFixed(1) + " mph");
resultdlg.resultobject.text = scenectr.resultobject;
resultdlg.resultawards.text = awards;
resultdlg.resultacorn.text = scenectr.resultacorn;
detectResultAchievements();
resultdlg.x = 740;
scrollprevx = resultdlg.x;
tweenmgr.register(resultdlg, {live:5, ease:"easenone", x:0, y:0, alpha:1, scalex:1, scaley:1}, {scope:this, onrefresh:scrollScene});
btnmgr = new ButtonManager([resultdlg.btresultok, resultdlg.btresultmoney, resultdlg.btresultdistance, resultdlg.btresultheight, resultdlg.btresultspeed, resultdlg.btresultobject, resultdlg.btresultawards, resultdlg.btresultacorn]);
btnmgr.registerFunction(0, this, {onselect:hideResultDialog});
if (!this.contains(resultdlg)){
this.addChild(resultdlg);
};
scenectr.moveScreen(0, 0);
datamgr.saveData();
soundmgr.playSFX("menuclick");
}
private function adjustSFXLamp(_lampparent){
_lampparent.mcsoundlamp01.gotoAndStop(1);
_lampparent.mcsoundlamp02.gotoAndStop(1);
_lampparent.mcsoundlamp03.gotoAndStop(1);
_lampparent.mcsoundlamp04.gotoAndStop(1);
if (soundmgr.sfxvolume > 0){
_lampparent.mcsoundlamp01.gotoAndStop(2);
};
if (soundmgr.sfxvolume > 0.25){
_lampparent.mcsoundlamp02.gotoAndStop(2);
};
if (soundmgr.sfxvolume > 0.5){
_lampparent.mcsoundlamp03.gotoAndStop(2);
};
if (soundmgr.sfxvolume > 0.75){
_lampparent.mcsoundlamp04.gotoAndStop(2);
};
}
private function adjustBGMLamp(_lampparent){
_lampparent.mcmusiclamp01.gotoAndStop(1);
_lampparent.mcmusiclamp02.gotoAndStop(1);
_lampparent.mcmusiclamp03.gotoAndStop(1);
_lampparent.mcmusiclamp04.gotoAndStop(1);
if (soundmgr.bgmvolume > 0){
_lampparent.mcmusiclamp01.gotoAndStop(2);
};
if (soundmgr.bgmvolume > 0.25){
_lampparent.mcmusiclamp02.gotoAndStop(2);
};
if (soundmgr.bgmvolume > 0.5){
_lampparent.mcmusiclamp03.gotoAndStop(2);
};
if (soundmgr.bgmvolume > 0.75){
_lampparent.mcmusiclamp04.gotoAndStop(2);
};
}
private function detectControl(){
if ((((status == "playing")) && ((scenectr.status == "flying")))){
if (ctrlmgr.KEYPRESS["A"]){
scenectr.startParachute();
};
if (ctrlmgr.KEYPRESS["S"]){
scenectr.startRocket();
};
if (((((!(ctrlmgr.KEYPRESS["P"])) && (ctrlmgr.PREVKEYPRESS["P"]))) || (((!(ctrlmgr.KEYPRESS["ESC"])) && (ctrlmgr.PREVKEYPRESS["ESC"]))))){
status = "paused";
showPauseDialog();
ctrlmgr.PREVKEYPRESS["P"] = false;
ctrlmgr.PREVKEYPRESS["ESC"] = false;
};
};
}
private function startNewGame(){
this.addEventListener(Event.ENTER_FRAME, moveClip, false, 0, true);
awards = 0;
status = "startplaying";
starttime = getTimer();
soundmgr.playBGM("leveltheme");
}
private function stopCurrentGame(btn){
this.removeEventListener(Event.ENTER_FRAME, moveClip);
status = "stop";
maintimeline.gotoAndPlay("coverpage");
soundmgr.playSFX("menuclick");
soundmgr.stopBGM();
}
private function increaseSFX(obj=null){
if (soundmgr.sfxvolume < 0.25){
soundmgr.adjustSFX(0.25);
} else {
if (soundmgr.sfxvolume < 0.5){
soundmgr.adjustSFX(0.5);
} else {
if (soundmgr.sfxvolume < 0.75){
soundmgr.adjustSFX(0.75);
} else {
if (soundmgr.sfxvolume < 1){
soundmgr.adjustSFX(1);
} else {
soundmgr.adjustSFX(0);
};
};
};
};
adjustSFXLamp(btnmgr.button[obj].parent);
soundmgr.playSFX("menuclick");
}
private function showPauseDialog(obj=null){
adjustSFXLamp(pausedlg);
adjustBGMLamp(pausedlg);
pausedlg.y = -200;
this.addChild(pausedlg);
tweenmgr.register(pausedlg, {live:5, ease:"easenone", x:0, y:0, alpha:1, scalex:1, scaley:1});
btnmgr = new ButtonManager([pausedlg.btok, pausedlg.btcancel, pausedlg.btsfx, pausedlg.btbgm]);
btnmgr.registerFunction(0, this, {onselect:hidePauseDialog});
btnmgr.registerFunction(1, this, {onselect:stopCurrentGame});
btnmgr.registerFunction(2, this, {onselect:increaseSFX});
btnmgr.registerFunction(3, this, {onselect:increaseBGM});
startpausetime = getTimer();
soundmgr.playSFX("menuclick");
}
private function goSponsor(_btidx){
maintimeline.goSponsor(null);
}
private function moveClip(e=null){
shakeScreen();
switch (status){
case "showdialog":
scenectr.moveClip();
btnmgr.moveClip(ctrlmgr.MOUSEPOS, ctrlmgr.MOUSEPRESS);
break;
case "startplaying":
scenectr.createStartScene();
status = "playing";
if (datamgr.showtooltips.length > 0){
datamgr.showTooltips();
};
break;
case "playing":
scenectr.moveClip();
maintimeline.stage.focus = maintimeline.stage;
if (scenectr.status == "finished"){
status = "showdialog";
showResultDialog();
} else {
if (scenectr.status == "flying"){
if (maintimeline.stage.frameRate < 30){
maintimeline.stage.frameRate = 30;
};
detectControl();
};
};
break;
case "paused":
if (((((!(ctrlmgr.KEYPRESS["P"])) && (ctrlmgr.PREVKEYPRESS["P"]))) || (((!(ctrlmgr.KEYPRESS["ESC"])) && (ctrlmgr.PREVKEYPRESS["ESC"]))))){
status = "playing";
hidePauseDialog();
ctrlmgr.PREVKEYPRESS["P"] = false;
ctrlmgr.PREVKEYPRESS["ESC"] = false;
};
break;
case "tooltips":
if (((((!(ctrlmgr.KEYPRESS["P"])) && (ctrlmgr.PREVKEYPRESS["P"]))) || (((!(ctrlmgr.KEYPRESS["ESC"])) && (ctrlmgr.PREVKEYPRESS["ESC"]))))){
status = "playing";
hideTooltips();
ctrlmgr.PREVKEYPRESS["P"] = false;
ctrlmgr.PREVKEYPRESS["ESC"] = false;
};
break;
case "endplayerrequest":
case "endplayerwin":
break;
};
detectPlayingAchievements();
ctrlmgr.moveClip();
}
private function doFlap(e=null){
if ((((status == "playing")) && ((scenectr.status == "flying")))){
scenectr.doWingFlap();
};
}
private function scrollScene(obj=null){
var dx:*;
dx = (obj.x - scrollprevx);
scrollprevx = obj.x;
scenectr.moveScreen((dx * 5), 0, true);
}
private function detectPlayingAchievements(){
var playtime:*;
var pausetime:*;
detectachievementstimer--;
if (detectachievementstimer == 0){
detectachievementstimer = 60;
if (status == "playing"){
playtime = (((datamgr.playtime + getTimer()) - starttime) / 60000);
if (playtime >= 60){
if (!datamgr.achievements[4]){
awards++;
};
datamgr.setAchievement(4);
} else {
if (playtime >= 30){
if (!datamgr.achievements[3]){
awards++;
};
datamgr.setAchievement(3);
} else {
if (playtime >= 10){
if (!datamgr.achievements[2]){
awards++;
};
datamgr.setAchievement(2);
} else {
if (playtime >= 5){
if (!datamgr.achievements[1]){
awards++;
};
datamgr.setAchievement(1);
} else {
if (playtime >= 3){
if (!datamgr.achievements[0]){
awards++;
};
datamgr.setAchievement(0);
};
};
};
};
};
if (scenectr.resultdistance >= 25000){
if (!datamgr.achievements[27]){
awards++;
};
datamgr.setAchievement(27);
} else {
if (scenectr.resultdistance >= 10000){
if (!datamgr.achievements[26]){
awards++;
};
datamgr.setAchievement(26);
} else {
if (scenectr.resultdistance >= 5000){
if (!datamgr.achievements[25]){
awards++;
};
datamgr.setAchievement(25);
} else {
if (scenectr.resultdistance >= 1000){
if (!datamgr.achievements[24]){
awards++;
};
datamgr.setAchievement(24);
};
};
};
};
} else {
if (status == "paused"){
pausetime = ((getTimer() - startpausetime) / 60000);
if (pausetime >= 1){
if (!datamgr.achievements[5]){
awards++;
};
datamgr.setAchievement(5);
};
};
};
} else {
if (detectachievementstimer == 20){
if (status == "playing"){
if (scenectr.dinohit[1]){
if (!datamgr.achievements[7]){
awards++;
};
datamgr.setAchievement(7);
};
if (scenectr.dinohit[0]){
if (!datamgr.achievements[8]){
awards++;
};
datamgr.setAchievement(8);
};
if (scenectr.dinohit[2]){
if (!datamgr.achievements[9]){
awards++;
};
datamgr.setAchievement(9);
};
if (scenectr.dinohit[3]){
if (!datamgr.achievements[10]){
awards++;
};
datamgr.setAchievement(10);
};
if (scenectr.dinohit[4]){
if (!datamgr.achievements[11]){
awards++;
};
datamgr.setAchievement(11);
};
if (scenectr.dinohit[6]){
if (!datamgr.achievements[29]){
awards++;
};
datamgr.setAchievement(29);
};
if (scenectr.dinohit[5]){
if (!datamgr.achievements[30]){
awards++;
};
datamgr.setAchievement(30);
};
if (scenectr.resultobject >= 15){
if (!datamgr.achievements[20]){
awards++;
};
datamgr.setAchievement(20);
} else {
if (scenectr.resultobject >= 10){
if (!datamgr.achievements[19]){
awards++;
};
datamgr.setAchievement(19);
} else {
if (scenectr.resultobject >= 5){
if (!datamgr.achievements[18]){
awards++;
};
datamgr.setAchievement(18);
};
};
};
if (scenectr.resultacorn >= 5){
if (!datamgr.achievements[23]){
awards++;
};
datamgr.setAchievement(23);
} else {
if (scenectr.resultacorn >= 3){
if (!datamgr.achievements[22]){
awards++;
};
datamgr.setAchievement(22);
} else {
if (scenectr.resultacorn >= 1){
if (!datamgr.achievements[21]){
awards++;
};
datamgr.setAchievement(21);
};
};
};
} else {
if (status == "paused"){
pausetime = ((getTimer() - startpausetime) / 60000);
if (pausetime >= 1){
if (!datamgr.achievements[5]){
awards++;
};
datamgr.setAchievement(5);
};
};
};
} else {
if (detectachievementstimer == 40){
if (status == "playing"){
if (scenectr.resultspeed >= 60){
if (!datamgr.achievements[49]){
awards++;
};
datamgr.setAchievement(49);
} else {
if (scenectr.resultspeed >= 40){
if (!datamgr.achievements[48]){
awards++;
};
datamgr.setAchievement(48);
} else {
if (scenectr.resultspeed >= 20){
if (!datamgr.achievements[47]){
awards++;
};
datamgr.setAchievement(47);
};
};
};
if (scenectr.resultheight >= 88){
if (!datamgr.achievements[46]){
awards++;
};
datamgr.setAchievement(46);
} else {
if (scenectr.resultheight >= 32){
if (!datamgr.achievements[45]){
awards++;
};
datamgr.setAchievement(45);
} else {
if (scenectr.resultheight >= 20){
if (!datamgr.achievements[44]){
awards++;
};
datamgr.setAchievement(44);
};
};
};
if (scenectr.resultcoin >= 20){
if (!datamgr.achievements[43]){
awards++;
};
datamgr.setAchievement(43);
} else {
if (scenectr.resultcoin >= 15){
if (!datamgr.achievements[42]){
awards++;
};
datamgr.setAchievement(42);
} else {
if (scenectr.resultcoin >= 10){
if (!datamgr.achievements[41]){
awards++;
};
datamgr.setAchievement(41);
};
};
};
} else {
if (status == "paused"){
pausetime = ((getTimer() - startpausetime) / 60000);
if (pausetime >= 1){
if (!datamgr.achievements[5]){
awards++;
};
datamgr.setAchievement(5);
};
};
};
};
};
};
}
private function showTooltips(){
if (datamgr.showtooltips.length > 0){
if (datamgr.showtooltips[0] == 0){
this.addChild(tooltips[0]);
} else {
if (datamgr.showtooltips[0] == 1){
this.addChild(tooltips[1]);
};
};
datamgr.showtooltips.splice(0, 1);
status = "tooltips";
};
}
}
}//package
Section 470
//GameNinjaDataManager (GameNinjaDataManager)
package {
import flash.net.*;
public class GameNinjaDataManager {
private var connecturl;// = "http://www.gameninja.com/getscores/flysquirrelfly.php"
private var highscoreurl;// = "http://gameninja.com/high-scores/flysquirrelfly.html"
private var maintimeline;
public function GameNinjaDataManager(_mtl){
connecturl = "http://www.gameninja.com/getscores/flysquirrelfly.php";
highscoreurl = "http://gameninja.com/high-scores/flysquirrelfly.html";
super();
maintimeline = _mtl;
}
public function submit(_params){
var ul:*;
var rq:*;
var rv:*;
rq = new URLRequest(connecturl);
rv = new URLVariables();
rv.score = _params["score"];
rv.username = _params["username"];
rq.data = rv;
rq.method = URLRequestMethod.POST;
sendToURL(rq);
navigateToURL(new URLRequest(highscoreurl), "_blank");
}
}
}//package
Section 471
//HostManager (HostManager)
package {
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import defclass.SWFStats.*;
import flash.ui.*;
public class HostManager {
private var usegameninjasites;
public var bboxid;// = "1473"
private var usekongsites;
private var nomochiadsites;
public var cpmprerollid:String;// = "1097QBDDDD5B0"
public var usecpmad;// = true
public var mochibotid:String;// = "10b61385"
public var usekong;// = true
private var cpmtimer;// = 0
private var nocpmadsites;
private var noswfstatssites;
public var usegameninja;// = true
public var bboxname;// = "flysquirrelfly"
public var usestatic;// = false
public var algid;// = "flysquirrelfly"
private var tracing:Boolean;// = true
private var cpmad;
private var nomochibotsites;
public var mochiadid:String;// = "357a9f990b57ea7d"
public var usemochibot;// = true
public var useswfstats;// = true
private var noadsites;
public var usead;// = true
public var url;
private var usestaticsites;
private var maintimeline;
public var cpmitlevelid:String;// = "1098Q4E741693"
public var usemochiad;// = false
public function HostManager(_mtl){
var i:*;
var res:*;
var date:*;
tracing = true;
algid = "flysquirrelfly";
bboxname = "flysquirrelfly";
bboxid = "1473";
mochiadid = "357a9f990b57ea7d";
mochibotid = "10b61385";
cpmprerollid = "1097QBDDDD5B0";
cpmitlevelid = "1098Q4E741693";
usead = true;
usecpmad = true;
usemochiad = false;
usemochibot = true;
useswfstats = true;
usestatic = false;
usekong = true;
usegameninja = true;
noadsites = [];
nocpmadsites = ["gameninja.com", "gameninja.com", "kongregate.com", "http://external.kongregate-games.com/", "file://"];
nomochiadsites = ["gameninja.com"];
nomochibotsites = [];
noswfstatssites = [];
usestaticsites = ["artlogicgames.com", "gameninja.com", "bin", "facebook.com", "gameboltz.com", "noadsfree.com"];
usekongsites = ["kongregate.com"];
usegameninjasites = ["gameninja.com"];
cpmtimer = 0;
super();
date = new Date();
maintimeline = _mtl;
url = maintimeline.loaderInfo.loaderURL;
i = 0;
while (i < noadsites.length) {
if (url.indexOf(noadsites[i]) > -1){
usead = false;
};
i++;
};
i = 0;
while (i < nocpmadsites.length) {
if (url.indexOf(nocpmadsites[i]) > -1){
usecpmad = false;
};
i++;
};
i = 0;
while (i < nomochiadsites.length) {
if (url.indexOf(nomochiadsites[i]) > -1){
usemochiad = false;
};
i++;
};
i = 0;
while (i < nomochibotsites.length) {
if (url.indexOf(nomochibotsites[i]) > -1){
usemochibot = false;
};
i++;
};
i = 0;
while (i < noswfstatssites.length) {
if (url.indexOf(noswfstatssites[i]) > -1){
useswfstats = false;
};
i++;
};
i = 0;
while (i < usestaticsites.length) {
if (((usestatic) && ((url.indexOf(usestaticsites[i]) > -1)))){
usestatic = false;
};
i++;
};
if (((usestatic) && ((date.getTime() >= 1258080263625)))){
usestatic = false;
};
usecpmad = ((usecpmad) && (usead));
usemochiad = ((((usemochiad) && (!(usecpmad)))) && (usead));
if (usemochibot){
MochiBot.track(maintimeline, mochibotid);
};
if (useswfstats){
Tracker.Initialise(url);
};
res = false;
i = 0;
while (i < usekongsites.length) {
res = ((res) || ((url.indexOf(usekongsites[i]) > -1)));
i++;
};
usekong = ((usekong) && (res));
res = false;
i = 0;
while (i < usegameninjasites.length) {
res = ((res) || ((url.indexOf(usegameninjasites[i]) > -1)));
i++;
};
usegameninja = ((usegameninja) && (res));
if (tracing){
trace(("Reading host : " + url));
trace(("Advertisements : " + (usead) ? "ON" : "OFF"));
trace(("CPMad : " + (usecpmad) ? "ON" : "OFF"));
trace(("Mochiad : " + (usemochiad) ? "ON" : "OFF"));
trace(("Mochibot : " + (usemochibot) ? "ON" : "OFF"));
trace(("SWFStats : " + (useswfstats) ? "ON" : "OFF"));
trace(("Locking : " + (usestatic) ? "ON" : "OFF"));
trace(("KongAPI : " + (usekong) ? "ON" : "OFF"));
trace(("GameNinjaAPI : " + (usegameninja) ? "ON" : "OFF"));
};
createContextMenu();
}
public function createContextMenu(){
var item1:ContextMenuItem;
var myMenu:*;
item1 = new ContextMenuItem("© 2009 Artlogic Games™");
item1.separatorBefore = true;
item1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, goArtlogic, false, 0, true);
myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.customItems.push(item1);
maintimeline.contextMenu = myMenu;
}
public function goSponsor(e=null){
navigateToURL(new URLRequest("http://gameninja.com/?game=flysquirrelfly"), "_blank");
}
public function clearCPMAds(_mc, _destroy=false){
_mc.removeChild(cpmad);
if (((((cpmtimer - getTimer()) > 60000)) || (_destroy))){
cpmad = null;
};
}
public function goHighscore(e=null){
navigateToURL(new URLRequest("http://gameninja.com/high-scores/flysquirrelfly.html"), "_blank");
}
public function goFacebook(e=null){
navigateToURL(new URLRequest("http://apps.facebook.com/flysquirrelfly"), "_blank");
}
public function goArtlogic(e=null){
navigateToURL(new URLRequest(("http://artlogicgames.com/?gamereferral=" + algid)), "_blank");
}
public function getCPMAds(_mc, _param){
if (usecpmad){
if (((!(cpmad)) || (((cpmtimer - getTimer()) > 60000)))){
cpmtimer = getTimer();
if (_param == "preload"){
cpmad = new AdLoader(cpmprerollid);
} else {
cpmad = new AdLoader(cpmitlevelid);
};
};
} else {
cpmad = new mc_gameninja_adbox();
};
_mc.addChild(cpmad);
}
}
}//package
Section 472
//KongregateDataManager (KongregateDataManager)
package {
import com.kongregate.as3.client.events.*;
import com.kongregate.as3.client.*;
public class KongregateDataManager {
private var maintimeline;
private var kongregate:KongregateAPI;
private var kongregateServiceLoaded:Boolean;// = false
public function KongregateDataManager(_mtl){
kongregateServiceLoaded = false;
super();
maintimeline = _mtl;
kongregate = new KongregateAPI();
maintimeline.addChild(kongregate);
kongregate.addEventListener(KongregateEvent.COMPLETE, serviceLoaded, false, 0, true);
}
public function submit(_params){
var i:*;
if (((kongregate) && (kongregateServiceLoaded))){
for (i in _params) {
kongregate.stats.submit(i, _params[i]);
};
};
}
private function serviceLoaded(e:KongregateEvent):void{
kongregate.services.connect();
kongregateServiceLoaded = true;
}
}
}//package
Section 473
//MainMenuManager (MainMenuManager)
package {
import flash.events.*;
import flash.display.*;
public class MainMenuManager extends MovieClip {
private var maintimeline;
private var admgr;
private var creditspage;
private var datamgr;
private var achievementpage;
private var buttons;
private var buttonmgr;
private var soundmgr;
private var tweenmgr;
private var highscorepage;
private var coverpage;
public function MainMenuManager(_mtl){
super();
maintimeline = _mtl;
tweenmgr = maintimeline.tweenmgr;
soundmgr = maintimeline.soundmgr;
admgr = maintimeline.admgr;
datamgr = maintimeline.datamgr;
coverpage = new mc_coverpage();
this.addChild(coverpage);
achievementpage = new AchievementContainer(maintimeline);
this.addChild(achievementpage);
creditspage = new CreditsContainer(maintimeline);
this.addChild(creditspage);
activateCoverButton();
soundmgr.playSFX("roarr");
soundmgr.playBGM("maintitle");
}
public function goArtlogic(_btnidx){
soundmgr.playSFX("menuclick");
maintimeline.goArtlogic(null);
}
public function hideCredits(_btnidx){
creditspage.hidePage();
soundmgr.playSFX("menuclick");
}
public function goSponsor(_btnidx){
soundmgr.playSFX("menuclick");
maintimeline.goSponsor(null);
}
public function skipIntro(_btnidx){
coverpage.gotoAndPlay(190);
coverpage.btn.gotoAndPlay(190);
buttonmgr.unregisterFunction(4, ["onselect"]);
soundmgr.playSFX("menuclick");
}
public function doDebugMode(_btnidx){
maintimeline.datamgr.doDebugMode();
coverpage.btdebugmode.enabled = false;
soundmgr.playSFX("menuclick");
}
public function goHighscore(_btnidx){
soundmgr.playSFX("menuclick");
maintimeline.goHighscore(null);
}
public function showAchievements(_btnidx){
achievementpage.showPage();
datamgr.setAchievement(32);
soundmgr.playSFX("menuclick");
}
public function playGame(_btnidx){
maintimeline.gotoAndPlay("tutorialpage");
soundmgr.playSFX("menuclick");
}
private function activateCoverButton(){
buttons = [coverpage.btn.btstart, coverpage.btn.btcredits, coverpage.btn.btachievements, coverpage.btn.bthighscore, coverpage.btn.btmoregames, coverpage.btskip, coverpage.btdebugmode, coverpage.btsponsor, coverpage.btartlogiclogo, coverpage.btplayfb];
buttonmgr = new ButtonManager(buttons, "simplebutton");
buttonmgr.registerFunction(0, this, {onselect:playGame});
buttonmgr.registerFunction(1, this, {onselect:showCredits});
buttonmgr.registerFunction(2, this, {onselect:showAchievements});
buttonmgr.registerFunction(3, this, {onselect:goHighscore});
buttonmgr.registerFunction(4, this, {onselect:goSponsor});
buttonmgr.registerFunction(5, this, {onselect:skipIntro});
buttonmgr.registerFunction(6, this, {onselect:doDebugMode});
buttonmgr.registerFunction(7, this, {onselect:goSponsor});
buttonmgr.registerFunction(8, this, {onselect:goArtlogic});
buttonmgr.registerFunction(9, this, {onselect:goFacebook});
coverpage.btn.btmoregames.addEventListener(MouseEvent.CLICK, goSponsor, false, 0, true);
}
public function goFacebook(_btnidx){
soundmgr.playSFX("menuclick");
maintimeline.goFacebook(null);
}
public function showCredits(_btnidx){
creditspage.showPage();
datamgr.setAchievement(31);
soundmgr.playSFX("menuclick");
}
}
}//package
Section 474
//MathVect (MathVect)
package {
public class MathVect {
public function MathVect(){
super();
trace("MathVect is a static class and should not be instantiated.");
}
public static function getResultAngle(rad1, ang1, rad2, ang2):Number{
var dx:*;
var dy:*;
dx = (getDx(rad1, ang1) + getDx(rad2, ang2));
dy = (getDy(rad1, ang1) + getDy(rad2, ang2));
return (((Math.atan2(dy, dx) / Math.PI) * 180));
}
public static function getObjectDistance(obj1, obj2):Number{
var dx:*;
var dy:*;
dx = (obj2.x - obj1.x);
dy = (obj2.y - obj1.y);
return (Math.sqrt(((dx * dx) + (dy * dy))));
}
public static function getDistance(x1, y1, x2, y2):Number{
var dx:*;
var dy:*;
dx = (x2 - x1);
dy = (y2 - y1);
return (Math.sqrt(((dx * dx) + (dy * dy))));
}
public static function isClose(v1, v2, lim=0.01){
return ((Math.abs((v2 - v1)) < lim));
}
public static function getResultDistance(rad1, ang1, rad2, ang2):Number{
var dx:*;
var dy:*;
dx = (getDx(rad1, ang1) + getDx(rad2, ang2));
dy = (getDy(rad1, ang1) + getDy(rad2, ang2));
return (Math.sqrt(((dx * dx) + (dy * dy))));
}
public static function addAngle(ang1, ang2):Number{
var res:*;
res = (ang1 + ang2);
if (res > 180){
res = (res - 360);
};
if (res < -180){
res = (res + 360);
};
return (res);
}
public static function getDx(rad, ang):Number{
return ((rad * Math.cos(((ang / 180) * Math.PI))));
}
public static function getDy(rad, ang):Number{
return ((rad * Math.sin(((ang / 180) * Math.PI))));
}
public static function getAngle(x1, y1, x2, y2):Number{
var dx:*;
var dy:*;
dx = (x2 - x1);
dy = (y2 - y1);
return (((Math.atan2(dy, dx) / Math.PI) * 180));
}
public static function getObjectAngle(obj1, obj2):Number{
var dx:*;
var dy:*;
dx = (obj2.x - obj1.x);
dy = (obj2.y - obj1.y);
return (((Math.atan2(dy, dx) / Math.PI) * 180));
}
public static function randRange(_start=0, _stop=1):Number{
return ((_start + (Math.random() * (_stop - _start))));
}
}
}//package
Section 475
//mc_achievements (mc_achievements)
package {
import flash.display.*;
public dynamic class mc_achievements extends MovieClip {
public var btclose1:MovieClip;
public var btclose2:MovieClip;
public var btach10:bt_ach10;
public var btach14:bt_ach14;
public var btach15:bt_ach15;
public var btach17:bt_ach17;
public var btach11:bt_ach11;
public var btach19:bt_ach19;
public var btach13:bt_ach13;
public var btach16:bt_ach16;
public var btach18:bt_ach18;
public var btach12:bt_ach12;
public var btach20:bt_ach20;
public var btach21:bt_ach21;
public var btach22:bt_ach22;
public var btach23:bt_ach23;
public var btach24:bt_ach24;
public var btach25:bt_ach25;
public var btach29:bt_ach29;
public var btach26:bt_ach26;
public var btach27:bt_ach27;
public var btach28:bt_ach28;
public var btach31:bt_ach31;
public var btach36:bt_ach36;
public var btach37:bt_ach37;
public var btach38:bt_ach38;
public var btach33:bt_ach33;
public var btach35:bt_ach35;
public var btach30:bt_ach30;
public var btach39:bt_ach39;
public var btach32:bt_ach32;
public var btach34:bt_ach34;
public var btach40:bt_ach40;
public var btach41:bt_ach41;
public var btach43:bt_ach43;
public var btach45:bt_ach45;
public var btach47:bt_ach47;
public var btach44:bt_ach44;
public var btach48:bt_ach48;
public var btach49:bt_ach49;
public var btach42:bt_ach42;
public var mcnote:MovieClip;
public var btach50:bt_ach50;
public var btach46:bt_ach46;
public var btgoright:bt_arrow;
public var btach1:bt_ach1;
public var btach2:bt_ach2;
public var btach4:bt_ach4;
public var btach5:bt_ach5;
public var btach6:bt_ach6;
public var btach7:bt_ach7;
public var btach9:bt_ach9;
public var btgoleft:bt_arrow;
public var btach3:bt_ach3;
public var btach8:bt_ach8;
public function mc_achievements(){
super();
}
}
}//package
Section 476
//mc_achiever (mc_achiever)
package {
import flash.display.*;
import flash.text.*;
public dynamic class mc_achiever extends MovieClip {
public var txtach:TextField;
public var btach:bt_ach1;
public function mc_achiever(){
super();
}
}
}//package
Section 477
//mc_backbg1 (mc_backbg1)
package {
import flash.display.*;
public dynamic class mc_backbg1 extends MovieClip {
public function mc_backbg1(){
super();
}
}
}//package
Section 478
//mc_backbg2 (mc_backbg2)
package {
import flash.display.*;
public dynamic class mc_backbg2 extends MovieClip {
public function mc_backbg2(){
super();
}
}
}//package
Section 479
//mc_backbg3 (mc_backbg3)
package {
import flash.display.*;
public dynamic class mc_backbg3 extends MovieClip {
public function mc_backbg3(){
super();
}
}
}//package
Section 480
//mc_baloon_eew (mc_baloon_eew)
package {
import flash.display.*;
public dynamic class mc_baloon_eew extends MovieClip {
public function mc_baloon_eew(){
super();
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package
Section 481
//mc_baloon_ooo (mc_baloon_ooo)
package {
import flash.display.*;
public dynamic class mc_baloon_ooo extends MovieClip {
public function mc_baloon_ooo(){
super();
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package
Section 482
//mc_baloon_ouch (mc_baloon_ouch)
package {
import flash.display.*;
public dynamic class mc_baloon_ouch extends MovieClip {
public function mc_baloon_ouch(){
super();
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package
Section 483
//mc_baloon_whee (mc_baloon_whee)
package {
import flash.display.*;
public dynamic class mc_baloon_whee extends MovieClip {
public function mc_baloon_whee(){
super();
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package
Section 484
//mc_baloon_woot (mc_baloon_woot)
package {
import flash.display.*;
public dynamic class mc_baloon_woot extends MovieClip {
public function mc_baloon_woot(){
super();
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package
Section 485
//mc_baloon_yippee (mc_baloon_yippee)
package {
import flash.display.*;
public dynamic class mc_baloon_yippee extends MovieClip {
public function mc_baloon_yippee(){
super();
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package
Section 486
//mc_baloon_zomg (mc_baloon_zomg)
package {
import flash.display.*;
public dynamic class mc_baloon_zomg extends MovieClip {
public function mc_baloon_zomg(){
super();
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package
Section 487
//mc_blizzard (mc_blizzard)
package {
import flash.display.*;
public dynamic class mc_blizzard extends MovieClip {
public var detector1:MovieClip;
public var detector2:MovieClip;
public function mc_blizzard(){
super();
}
}
}//package
Section 488
//mc_bodyblow (mc_bodyblow)
package {
import flash.display.*;
public dynamic class mc_bodyblow extends MovieClip {
public function mc_bodyblow(){
super();
addFrameScript(59, frame60);
}
function frame60(){
stop();
}
}
}//package
Section 489
//mc_bodypart (mc_bodypart)
package {
import flash.display.*;
public dynamic class mc_bodypart extends MovieClip {
public function mc_bodypart(){
super();
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package
Section 490
//mc_border (mc_border)
package {
import flash.display.*;
public dynamic class mc_border extends MovieClip {
public function mc_border(){
super();
}
}
}//package
Section 491
//mc_brachiosaurus (mc_brachiosaurus)
package {
import flash.display.*;
public dynamic class mc_brachiosaurus extends MovieClip {
public var detector1:MovieClip;
public var detector2:MovieClip;
public var detector3:MovieClip;
public var detector4:MovieClip;
public var detector6:MovieClip;
public var detector7:MovieClip;
public var detector8:MovieClip;
public var detector9:MovieClip;
public var detector5:MovieClip;
public var detector11:MovieClip;
public var detector10:MovieClip;
public function mc_brachiosaurus(){
super();
}
}
}//package
Section 492
//mc_campfire (mc_campfire)
package {
import flash.display.*;
public dynamic class mc_campfire extends MovieClip {
public function mc_campfire(){
super();
}
}
}//package
Section 493
//mc_cloud1 (mc_cloud1)
package {
import flash.display.*;
public dynamic class mc_cloud1 extends MovieClip {
public function mc_cloud1(){
super();
}
}
}//package
Section 494
//mc_cloud2 (mc_cloud2)
package {
import flash.display.*;
public dynamic class mc_cloud2 extends MovieClip {
public function mc_cloud2(){
super();
}
}
}//package
Section 495
//mc_coverpage (mc_coverpage)
package {
import flash.display.*;
public dynamic class mc_coverpage extends MovieClip {
public var btartlogiclogo:SimpleButton;
public var btn:MovieClip;
public var btdebugmode:SimpleButton;
public var btsponsor:SimpleButton;
public var btplayfb:SimpleButton;
public var btskip:SimpleButton;
public function mc_coverpage(){
super();
addFrameScript(194, frame195);
}
function frame195(){
stop();
}
}
}//package
Section 496
//mc_cpanel_lv0 (mc_cpanel_lv0)
package {
import flash.display.*;
import flash.text.*;
public dynamic class mc_cpanel_lv0 extends MovieClip {
public var mcspeedometer:MovieClip;
public var mcstamina:MovieClip;
public var mcfuel:MovieClip;
public var distancetext:TextField;
public var mcaltimeter:MovieClip;
public function mc_cpanel_lv0(){
super();
}
}
}//package
Section 497
//mc_cpanel_lv1 (mc_cpanel_lv1)
package {
import flash.display.*;
import flash.text.*;
public dynamic class mc_cpanel_lv1 extends MovieClip {
public var mcspeedometer:MovieClip;
public var mcstamina:MovieClip;
public var mcfuel:MovieClip;
public var distancetext:TextField;
public var mcaltimeter:MovieClip;
public function mc_cpanel_lv1(){
super();
}
}
}//package
Section 498
//mc_cpanel_lv2 (mc_cpanel_lv2)
package {
import flash.display.*;
import flash.text.*;
public dynamic class mc_cpanel_lv2 extends MovieClip {
public var mcspeedometer:MovieClip;
public var mcstamina:MovieClip;
public var mcfuel:MovieClip;
public var distancetext:TextField;
public var mcaltimeter:MovieClip;
public function mc_cpanel_lv2(){
super();
}
}
}//package
Section 499
//mc_cpanel_lv3 (mc_cpanel_lv3)
package {
import flash.display.*;
import flash.text.*;
public dynamic class mc_cpanel_lv3 extends MovieClip {
public var mcspeedometer:MovieClip;
public var mcstamina:MovieClip;
public var mcfuel:MovieClip;
public var distancetext:TextField;
public var mcaltimeter:MovieClip;
public function mc_cpanel_lv3(){
super();
}
}
}//package
Section 500
//mc_creditspage (mc_creditspage)
package {
import flash.display.*;
public dynamic class mc_creditspage extends MovieClip {
public var btcreditsclose:MovieClip;
public function mc_creditspage(){
super();
}
}
}//package
Section 501
//mc_explode_big (mc_explode_big)
package {
import flash.display.*;
public dynamic class mc_explode_big extends MovieClip {
public function mc_explode_big(){
super();
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package
Section 502
//mc_explode_big_long (mc_explode_big_long)
package {
import flash.display.*;
public dynamic class mc_explode_big_long extends MovieClip {
public function mc_explode_big_long(){
super();
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 503
//mc_explode_none (mc_explode_none)
package {
import flash.display.*;
public dynamic class mc_explode_none extends MovieClip {
public function mc_explode_none(){
super();
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package
Section 504
//mc_explode_small (mc_explode_small)
package {
import flash.display.*;
public dynamic class mc_explode_small extends MovieClip {
public function mc_explode_small(){
super();
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package
Section 505
//mc_flysquirrel_burnt (mc_flysquirrel_burnt)
package {
import flash.display.*;
public dynamic class mc_flysquirrel_burnt extends MovieClip {
public function mc_flysquirrel_burnt(){
super();
}
}
}//package
Section 506
//mc_flysquirrel_frozen (mc_flysquirrel_frozen)
package {
import flash.display.*;
public dynamic class mc_flysquirrel_frozen extends MovieClip {
public var mcfrozen1:MovieClip;
public var mcfrozen2:MovieClip;
public var mcfrozen4:MovieClip;
public var mcfrozen5:MovieClip;
public var mcfrozen9:MovieClip;
public var mcfrozen3:MovieClip;
public var mcfrozen7:MovieClip;
public var mcfrozen12:MovieClip;
public var mcfrozen16:MovieClip;
public var mcfrozen11:MovieClip;
public var mcfrozen13:MovieClip;
public var mcfrozen17:MovieClip;
public var mcfrozen15:MovieClip;
public var mcfrozen6:MovieClip;
public var mcfrozen14:MovieClip;
public var mcfrozen10:MovieClip;
public var mcfrozen8:MovieClip;
public function mc_flysquirrel_frozen(){
super();
}
}
}//package
Section 507
//mc_flysquirrel_hurt (mc_flysquirrel_hurt)
package {
import flash.display.*;
public dynamic class mc_flysquirrel_hurt extends MovieClip {
public function mc_flysquirrel_hurt(){
super();
}
}
}//package
Section 508
//mc_flysquirrel_meteor (mc_flysquirrel_meteor)
package {
import flash.display.*;
public dynamic class mc_flysquirrel_meteor extends MovieClip {
public function mc_flysquirrel_meteor(){
super();
}
}
}//package
Section 509
//mc_flysquirrel_onfire (mc_flysquirrel_onfire)
package {
import flash.display.*;
public dynamic class mc_flysquirrel_onfire extends MovieClip {
public function mc_flysquirrel_onfire(){
super();
}
}
}//package
Section 510
//mc_flysquirrel1_boost (mc_flysquirrel1_boost)
package {
import flash.display.*;
public dynamic class mc_flysquirrel1_boost extends MovieClip {
public function mc_flysquirrel1_boost(){
super();
}
}
}//package
Section 511
//mc_flysquirrel1_fast (mc_flysquirrel1_fast)
package {
import flash.display.*;
public dynamic class mc_flysquirrel1_fast extends MovieClip {
public function mc_flysquirrel1_fast(){
super();
}
}
}//package
Section 512
//mc_flysquirrel1_slow (mc_flysquirrel1_slow)
package {
import flash.display.*;
public dynamic class mc_flysquirrel1_slow extends MovieClip {
public function mc_flysquirrel1_slow(){
super();
}
}
}//package
Section 513
//mc_flysquirrel2_boost (mc_flysquirrel2_boost)
package {
import flash.display.*;
public dynamic class mc_flysquirrel2_boost extends MovieClip {
public function mc_flysquirrel2_boost(){
super();
}
}
}//package
Section 514
//mc_flysquirrel2_fast (mc_flysquirrel2_fast)
package {
import flash.display.*;
public dynamic class mc_flysquirrel2_fast extends MovieClip {
public function mc_flysquirrel2_fast(){
super();
}
}
}//package
Section 515
//mc_flysquirrel2_slow (mc_flysquirrel2_slow)
package {
import flash.display.*;
public dynamic class mc_flysquirrel2_slow extends MovieClip {
public function mc_flysquirrel2_slow(){
super();
}
}
}//package
Section 516
//mc_flysquirrel3_boost (mc_flysquirrel3_boost)
package {
import flash.display.*;
public dynamic class mc_flysquirrel3_boost extends MovieClip {
public function mc_flysquirrel3_boost(){
super();
}
}
}//package
Section 517
//mc_flysquirrel3_fast (mc_flysquirrel3_fast)
package {
import flash.display.*;
public dynamic class mc_flysquirrel3_fast extends MovieClip {
public function mc_flysquirrel3_fast(){
super();
}
}
}//package
Section 518
//mc_flysquirrel3_slow (mc_flysquirrel3_slow)
package {
import flash.display.*;
public dynamic class mc_flysquirrel3_slow extends MovieClip {
public function mc_flysquirrel3_slow(){
super();
}
}
}//package
Section 519
//mc_gameninja_adbox (mc_gameninja_adbox)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class mc_gameninja_adbox extends MovieClip {
public function mc_gameninja_adbox(){
super();
addFrameScript(0, frame1);
}
public function goSponsor(e){
navigateToURL(new URLRequest("http://gameninja.com/?game=flysquirrelfly"), "_blank");
}
function frame1(){
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, goSponsor, false, 0, true);
}
}
}//package
Section 520
//mc_highscore_dialog (mc_highscore_dialog)
package {
import flash.display.*;
import flash.text.*;
public dynamic class mc_highscore_dialog extends MovieClip {
public var usernametext:TextField;
public var btview:SimpleButton;
public var alreadywarning:MovieClip;
public var namewarning:MovieClip;
public var btclose:SimpleButton;
public var btsubmit:SimpleButton;
public function mc_highscore_dialog(){
super();
}
}
}//package
Section 521
//mc_manhit (mc_manhit)
package {
import flash.display.*;
public dynamic class mc_manhit extends MovieClip {
public var detector1:MovieClip;
public function mc_manhit(){
super();
}
}
}//package
Section 522
//mc_manlaugh (mc_manlaugh)
package {
import flash.display.*;
public dynamic class mc_manlaugh extends MovieClip {
public var detector1:MovieClip;
public function mc_manlaugh(){
super();
}
}
}//package
Section 523
//mc_manrun (mc_manrun)
package {
import flash.display.*;
public dynamic class mc_manrun extends MovieClip {
public var detector1:MovieClip;
public function mc_manrun(){
super();
}
}
}//package
Section 524
//mc_manwalk (mc_manwalk)
package {
import flash.display.*;
public dynamic class mc_manwalk extends MovieClip {
public var detector1:MovieClip;
public function mc_manwalk(){
super();
}
}
}//package
Section 525
//mc_meteor (mc_meteor)
package {
import flash.display.*;
public dynamic class mc_meteor extends MovieClip {
public var detector1:MovieClip;
public function mc_meteor(){
super();
}
}
}//package
Section 526
//mc_obj1 (mc_obj1)
package {
import flash.display.*;
public dynamic class mc_obj1 extends MovieClip {
public function mc_obj1(){
super();
}
}
}//package
Section 527
//mc_obj2 (mc_obj2)
package {
import flash.display.*;
public dynamic class mc_obj2 extends MovieClip {
public function mc_obj2(){
super();
}
}
}//package
Section 528
//mc_obj3 (mc_obj3)
package {
import flash.display.*;
public dynamic class mc_obj3 extends MovieClip {
public function mc_obj3(){
super();
}
}
}//package
Section 529
//mc_obj4 (mc_obj4)
package {
import flash.display.*;
public dynamic class mc_obj4 extends MovieClip {
public function mc_obj4(){
super();
}
}
}//package
Section 530
//mc_obj5 (mc_obj5)
package {
import flash.display.*;
public dynamic class mc_obj5 extends MovieClip {
public function mc_obj5(){
super();
}
}
}//package
Section 531
//mc_obj6 (mc_obj6)
package {
import flash.display.*;
public dynamic class mc_obj6 extends MovieClip {
public function mc_obj6(){
super();
}
}
}//package
Section 532
//mc_obj7 (mc_obj7)
package {
import flash.display.*;
public dynamic class mc_obj7 extends MovieClip {
public function mc_obj7(){
super();
}
}
}//package
Section 533
//mc_obj8 (mc_obj8)
package {
import flash.display.*;
public dynamic class mc_obj8 extends MovieClip {
public function mc_obj8(){
super();
}
}
}//package
Section 534
//mc_objradar_undefined (mc_objradar_undefined)
package {
import flash.display.*;
public dynamic class mc_objradar_undefined extends MovieClip {
public function mc_objradar_undefined(){
super();
}
}
}//package
Section 535
//mc_parachute1 (mc_parachute1)
package {
import flash.display.*;
public dynamic class mc_parachute1 extends MovieClip {
public function mc_parachute1(){
super();
}
}
}//package
Section 536
//mc_parachute2 (mc_parachute2)
package {
import flash.display.*;
public dynamic class mc_parachute2 extends MovieClip {
public function mc_parachute2(){
super();
}
}
}//package
Section 537
//mc_parachute3 (mc_parachute3)
package {
import flash.display.*;
public dynamic class mc_parachute3 extends MovieClip {
public function mc_parachute3(){
super();
}
}
}//package
Section 538
//mc_paused (mc_paused)
package {
import flash.display.*;
public dynamic class mc_paused extends MovieClip {
public var btsfx:MovieClip;
public var mcmusiclamp04:MovieClip;
public var btbgm:MovieClip;
public var btcancel:MovieClip;
public var mcsoundlamp03:MovieClip;
public var mcsoundlamp01:MovieClip;
public var mcsoundlamp02:MovieClip;
public var mcsoundlamp04:MovieClip;
public var btok:MovieClip;
public var mcmusiclamp01:MovieClip;
public var mcmusiclamp02:MovieClip;
public var mcmusiclamp03:MovieClip;
public function mc_paused(){
super();
}
}
}//package
Section 539
//mc_pteranodon (mc_pteranodon)
package {
import flash.display.*;
public dynamic class mc_pteranodon extends MovieClip {
public var detector1:MovieClip;
public function mc_pteranodon(){
super();
}
}
}//package
Section 540
//mc_quetzacoatl (mc_quetzacoatl)
package {
import flash.display.*;
public dynamic class mc_quetzacoatl extends MovieClip {
public var detector1:MovieClip;
public var detector2:MovieClip;
public var beak:MovieClip;
public function mc_quetzacoatl(){
super();
}
}
}//package
Section 541
//mc_radar (mc_radar)
package {
import flash.display.*;
public dynamic class mc_radar extends MovieClip {
public function mc_radar(){
super();
}
}
}//package
Section 542
//mc_reset_dialog (mc_reset_dialog)
package {
import flash.display.*;
public dynamic class mc_reset_dialog extends MovieClip {
public var btcancel:SimpleButton;
public var btok:SimpleButton;
public function mc_reset_dialog(){
super();
}
}
}//package
Section 543
//mc_resultpage (mc_resultpage)
package {
import flash.display.*;
import flash.text.*;
public dynamic class mc_resultpage extends MovieClip {
public var btresultacorn:MovieClip;
public var btstatistics:SimpleButton;
public var btresultdistance:MovieClip;
public var btresultok:MovieClip;
public var resultdistance:TextField;
public var resultawards:TextField;
public var btresultmoney:MovieClip;
public var resultspeed:TextField;
public var resultheight:TextField;
public var btresultawards:MovieClip;
public var btupgrade:SimpleButton;
public var resultscore:TextField;
public var resultacorn:TextField;
public var resultobject:TextField;
public var resultmoney:TextField;
public var btresultspeed:MovieClip;
public var btresultheight:MovieClip;
public var btresultobject:MovieClip;
public function mc_resultpage(){
super();
}
}
}//package
Section 544
//mc_rex_attack_down (mc_rex_attack_down)
package {
import flash.display.*;
public dynamic class mc_rex_attack_down extends MovieClip {
public function mc_rex_attack_down(){
super();
}
}
}//package
Section 545
//mc_rex_attack_jump (mc_rex_attack_jump)
package {
import flash.display.*;
public dynamic class mc_rex_attack_jump extends MovieClip {
public function mc_rex_attack_jump(){
super();
}
}
}//package
Section 546
//mc_rex_attack_mid (mc_rex_attack_mid)
package {
import flash.display.*;
public dynamic class mc_rex_attack_mid extends MovieClip {
public function mc_rex_attack_mid(){
super();
}
}
}//package
Section 547
//mc_rex_attack_up (mc_rex_attack_up)
package {
import flash.display.*;
public dynamic class mc_rex_attack_up extends MovieClip {
public function mc_rex_attack_up(){
super();
}
}
}//package
Section 548
//mc_rex_idle (mc_rex_idle)
package {
import flash.display.*;
public dynamic class mc_rex_idle extends MovieClip {
public var detector1:MovieClip;
public var detector2:MovieClip;
public var detector3:MovieClip;
public var detector4:MovieClip;
public var detector5:MovieClip;
public function mc_rex_idle(){
super();
}
}
}//package
Section 549
//mc_rocket1 (mc_rocket1)
package {
import flash.display.*;
public dynamic class mc_rocket1 extends MovieClip {
public function mc_rocket1(){
super();
}
}
}//package
Section 550
//mc_rocket2 (mc_rocket2)
package {
import flash.display.*;
public dynamic class mc_rocket2 extends MovieClip {
public function mc_rocket2(){
super();
}
}
}//package
Section 551
//mc_rocket3 (mc_rocket3)
package {
import flash.display.*;
public dynamic class mc_rocket3 extends MovieClip {
public function mc_rocket3(){
super();
}
}
}//package
Section 552
//mc_rocket3_booster (mc_rocket3_booster)
package {
import flash.display.*;
public dynamic class mc_rocket3_booster extends MovieClip {
public function mc_rocket3_booster(){
super();
}
}
}//package
Section 553
//mc_rope (mc_rope)
package {
import flash.display.*;
public dynamic class mc_rope extends MovieClip {
public function mc_rope(){
super();
}
}
}//package
Section 554
//mc_runsquirrel (mc_runsquirrel)
package {
import flash.display.*;
public dynamic class mc_runsquirrel extends MovieClip {
public function mc_runsquirrel(){
super();
}
}
}//package
Section 555
//mc_runsquirrelsign (mc_runsquirrelsign)
package {
import flash.display.*;
import flash.text.*;
public dynamic class mc_runsquirrelsign extends MovieClip {
public var txt;
public var distancetext:TextField;
public function mc_runsquirrelsign(){
super();
addFrameScript(0, frame1, 2, frame3, 4, frame5, 5, frame6, 8, frame9);
}
function frame3(){
distancetext.text = txt;
}
function frame6(){
distancetext.text = txt;
}
function frame1(){
setText();
distancetext.text = txt;
}
function frame5(){
gotoAndPlay(1);
}
function frame9(){
distancetext.text = txt;
stop();
}
public function setText(_dist=""){
if (_dist != ""){
txt = _dist;
};
if (!txt){
txt = "";
};
}
}
}//package
Section 556
//mc_sitsquirrel (mc_sitsquirrel)
package {
import flash.display.*;
public dynamic class mc_sitsquirrel extends MovieClip {
public function mc_sitsquirrel(){
super();
}
}
}//package
Section 557
//mc_skysmoke (mc_skysmoke)
package {
import flash.display.*;
public dynamic class mc_skysmoke extends MovieClip {
public function mc_skysmoke(){
super();
}
}
}//package
Section 558
//mc_soundloader (mc_soundloader)
package {
import flash.display.*;
public dynamic class mc_soundloader extends MovieClip {
public function mc_soundloader(){
super();
}
}
}//package
Section 559
//mc_standsquirrel (mc_standsquirrel)
package {
import flash.display.*;
public dynamic class mc_standsquirrel extends MovieClip {
public function mc_standsquirrel(){
super();
}
}
}//package
Section 560
//mc_star (mc_star)
package {
import flash.display.*;
public dynamic class mc_star extends MovieClip {
public function mc_star(){
super();
}
}
}//package
Section 561
//mc_stars (mc_stars)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.geom.*;
import flash.media.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class mc_stars extends MovieClip {
public var starfield;
public function mc_stars(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
starfield = new Starfield(0x0500, 480, 100);
this.addChild(starfield);
starfield.startTwinkle();
}
}
}//package
Section 562
//mc_startingbone (mc_startingbone)
package {
import flash.display.*;
public dynamic class mc_startingbone extends MovieClip {
public var mcropepos:MovieClip;
public function mc_startingbone(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 563
//mc_startingmammoth (mc_startingmammoth)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.geom.*;
import flash.media.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class mc_startingmammoth extends MovieClip {
public var mcropepos:MovieClip;
public var mceye:MovieClip;
public function mc_startingmammoth(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
public function setMousePosition(_point){
mceye.setMousePosition(_point);
}
}
}//package
Section 564
//mc_startingtree (mc_startingtree)
package {
import flash.display.*;
public dynamic class mc_startingtree extends MovieClip {
public var mcropepos:MovieClip;
public function mc_startingtree(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 565
//mc_startingtree2 (mc_startingtree2)
package {
import flash.display.*;
public dynamic class mc_startingtree2 extends MovieClip {
public var mcropepos:MovieClip;
public function mc_startingtree2(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 566
//mc_staticpage (mc_staticpage)
package {
import flash.display.*;
public dynamic class mc_staticpage extends MovieClip {
public function mc_staticpage(){
super();
}
}
}//package
Section 567
//mc_statspage (mc_statspage)
package {
import flash.display.*;
public dynamic class mc_statspage extends MovieClip {
public var mcstatistics:MovieClip;
public var mcnote:MovieClip;
public var mcupgrade:MovieClip;
public function mc_statspage(){
super();
}
}
}//package
Section 568
//mc_tooltips_parachute (mc_tooltips_parachute)
package {
import flash.display.*;
public dynamic class mc_tooltips_parachute extends MovieClip {
public function mc_tooltips_parachute(){
super();
}
}
}//package
Section 569
//mc_tooltips_rocket (mc_tooltips_rocket)
package {
import flash.display.*;
public dynamic class mc_tooltips_rocket extends MovieClip {
public function mc_tooltips_rocket(){
super();
}
}
}//package
Section 570
//mc_tree1 (mc_tree1)
package {
import flash.display.*;
public dynamic class mc_tree1 extends MovieClip {
public function mc_tree1(){
super();
}
}
}//package
Section 571
//mc_tree2 (mc_tree2)
package {
import flash.display.*;
public dynamic class mc_tree2 extends MovieClip {
public function mc_tree2(){
super();
}
}
}//package
Section 572
//mc_tree3 (mc_tree3)
package {
import flash.display.*;
public dynamic class mc_tree3 extends MovieClip {
public function mc_tree3(){
super();
}
}
}//package
Section 573
//mc_tutorial (mc_tutorial)
package {
import flash.display.*;
public dynamic class mc_tutorial extends MovieClip {
public function mc_tutorial(){
super();
}
}
}//package
Section 574
//mc_wajan (mc_wajan)
package {
import flash.display.*;
public dynamic class mc_wajan extends MovieClip {
public function mc_wajan(){
super();
}
}
}//package
Section 575
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public function MochiBot(){
super();
}
public static function track(parent:Sprite, tag:String):MochiBot{
var self:MochiBot;
var server:String;
var lv:URLVariables;
var url:String;
var req:URLRequest;
var loader:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
self = new (MochiBot);
parent.addChild(self);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
server = "http://core.mochibot.com/my/core.swf";
lv = new URLVariables();
lv["sb"] = Security.sandboxType;
lv["v"] = Capabilities.version;
lv["swfid"] = tag;
lv["mv"] = "8";
lv["fv"] = "9";
url = self.root.loaderInfo.loaderURL;
if (url.indexOf("http") == 0){
lv["url"] = url;
} else {
lv["url"] = "local";
};
req = new URLRequest(server);
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader = new Loader();
self.addChild(loader);
loader.load(req);
return (self);
}
}
}//package
Section 576
//ObjectDispatcher (ObjectDispatcher)
package {
public class ObjectDispatcher {
private var totaltimer:int;
private var timer:Array;
private var dispatcher:Array;
private var objects:Array;
private var probability:Array;
private var totalprob:Array;
private var timerdefault:Array;
public function ObjectDispatcher(){
super();
totaltimer = 0;
timer = new Array();
timerdefault = new Array();
objects = new Array();
probability = new Array();
totalprob = new Array();
dispatcher = new Array();
}
public function register(objtimer, objarray, objprob, objdispatcher){
var i:*;
var tot:*;
timer.push(objtimer);
timerdefault.push(objtimer);
objects.push(objarray);
probability.push(objprob);
tot = 0;
i = 0;
while (i < objprob.length) {
tot = (tot + objprob[i]);
i++;
};
totalprob.push(tot);
dispatcher.push(objdispatcher);
}
public function moveClip(){
var i:*;
var res:*;
var obj:*;
var rnd:*;
var idx:*;
var prb:*;
totaltimer++;
obj = null;
res = -1;
i = 0;
while ((((res == -1)) && ((i < timer.length)))) {
timer[i] = (timer[i] - 1);
if (timer[i] < 1){
res = i;
};
i++;
};
if (res > -1){
i = 0;
while (i < timer.length) {
if (i != res){
if (timer[i] < Math.floor((timerdefault[res] * 0.75))){
timer[i] = (timer[i] + Math.floor((timerdefault[res] * 0.75)));
};
} else {
timer[res] = timerdefault[res];
};
i++;
};
rnd = Math.random();
idx = -1;
prb = 0;
while ((((prb < rnd)) && ((idx < probability[res].length)))) {
idx++;
prb = (prb + (probability[res][idx] / totalprob[res]));
};
if ((((idx > -1)) && ((idx < probability[res].length)))){
dispatcher[res]["func"].apply(dispatcher[res]["scope"], [objects[res][idx], totaltimer]);
};
};
}
}
}//package
Section 577
//RadarContainer (RadarContainer)
package {
import flash.display.*;
import flash.geom.*;
public class RadarContainer extends MovieClip {
private var scenecolortransform:ColorTransform;
private var radar:Bitmap;
private var cliprect:Rectangle;
private var starty:Number;
private var startx:Number;
private var anchorx:Number;
private var colortransform:ColorTransform;
private var anchory:Number;
private var scale:Number;
private var blendmode:String;
private var smoothing:Boolean;
private var hitrange:Number;
private var skin:MovieClip;
public var level:int;
private var tracing:Boolean;// = false
private var centerx:Number;
private var radarbd:BitmapData;
private var matrix:Matrix;
private var centery:Number;
public function RadarContainer(){
tracing = false;
super();
startx = 172;
starty = 2;
centerx = (startx + 64);
centery = (starty + 48);
scale = 0.2;
anchorx = 0;
anchory = 0;
hitrange = 50;
matrix = new Matrix(scale, 0, 0, scale, 0, 0);
scenecolortransform = new ColorTransform(0, 0, 0, 0.5, 0, 0, 0, 0);
colortransform = new ColorTransform(1, 0.7, 0, 1, 0xFF, 128, 0, 0);
blendmode = BlendMode.NORMAL;
cliprect = new Rectangle(0, 0, 300, 100);
smoothing = true;
skin = new mc_radar();
this.addChild(skin);
radarbd = new BitmapData(300, 100, true, 0xFFFFFF);
radar = new Bitmap(radarbd);
radar.x = 5;
radar.y = 5;
this.addChild(radar);
}
public function drawContainer(_ctr):Object{
var i:*;
var obj:*;
var dx:*;
var dy:*;
var tx:*;
var ty:*;
var hitobj:*;
hitobj = null;
i = 0;
while (i < _ctr.numChildren) {
if (level == 1){
obj = new mc_objradar_undefined();
obj.x = _ctr.getChildAt(i).x;
obj.y = _ctr.getChildAt(i).y;
} else {
obj = _ctr.getChildAt(i);
};
dx = (anchorx - obj.x);
dy = ((anchory - obj.y) - _ctr.y);
tx = (centerx - (dx * scale));
ty = (centery - (dy * scale));
matrix.tx = tx;
matrix.ty = ty;
radarbd.lock();
radarbd.draw(obj, matrix, colortransform, blendmode, cliprect, smoothing);
radarbd.unlock();
if (MathVect.getDistance(centerx, centery, tx, ty) <= hitrange){
hitobj = _ctr.getChildAt(i);
};
i++;
};
return (hitobj);
}
public function drawScene(_ctr){
var i:*;
var obj:*;
var dx:*;
var dy:*;
var tx:*;
var ty:*;
var hitobj:*;
hitobj = null;
i = 0;
while (i < _ctr.numChildren) {
obj = _ctr.getChildAt(i);
dx = (anchorx - obj.x);
dy = ((anchory - obj.y) - _ctr.y);
tx = (centerx - (dx * scale));
ty = (centery - (dy * scale));
matrix.tx = tx;
matrix.ty = ty;
radarbd.lock();
radarbd.draw(obj, matrix, scenecolortransform, blendmode, cliprect, smoothing);
radarbd.unlock();
if (MathVect.getDistance(centerx, centery, tx, ty) <= hitrange){
hitobj = _ctr.getChildAt(i);
};
i++;
};
}
public function setAnchor(_obj){
radarbd.lock();
radarbd = new BitmapData(300, 100, true, 0xFFFFFF);
radarbd.unlock();
radar.bitmapData = radarbd;
anchorx = _obj.x;
anchory = _obj.y;
matrix.tx = centerx;
matrix.ty = centery;
radarbd.lock();
radarbd.draw(_obj, matrix, colortransform, blendmode, cliprect, smoothing);
radarbd.unlock();
hitrange = ((_obj.height * 1.1) * scale);
if (tracing){
trace("RadarContainer.setAnchor():Object anchor position : ", anchorx, anchory);
};
}
public function setLevel(_lv){
level = _lv;
if (level == 0){
if (this.contains(skin)){
this.removeChild(skin);
};
if (this.contains(radar)){
this.removeChild(radar);
};
} else {
if (level == 3){
this.addChild(skin);
this.addChild(radar);
colortransform = new ColorTransform(1, 0.9, 0.6, 1, 128, 128, 128, 0);
} else {
this.addChild(skin);
this.addChild(radar);
};
};
}
}
}//package
Section 578
//SceneContainer (SceneContainer)
package {
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class SceneContainer extends MovieClip {
private var bonusprob:Array;
public var panel:MovieClip;
private var dinolayer:DinosaurContainer;
private var squirrelglide:Boolean;
private var bestheight:Number;
public var resultawards:int;
public var treeskin:MovieClip;
private var bonusobject:Array;
private var lastmousepos:Point;
private var antigravitytimer:int;
private var slingerfactor:Number;
public var datamgr;
public var resultcoin:int;
private var parachuteskin:MovieClip;
private var starlayer:ScrollContainer;
private var defaultgravityforce:Number;
private var rocketskin:MovieClip;
public var squirrelskin:MovieClip;
private var frope:ForceVector;
private var usestar:Boolean;
public var resultspeed:Number;
private var baloonskin:MovieClip;
private var fbounce:ForceVector;
private var flift:ForceVector;
private var fantigravity:ForceVector;
public var usewingflap:Boolean;
private var dinoname:Array;
private var bonuslayer:BonusContainer;
private var squirreldist:Number;
private var fdrag:ForceVector;
private var dispatcher:ObjectDispatcher;
public var soundmgr;
private var frozenpart:Array;
private var ftotal:ForceVector;
public var goodlanding:Boolean;
private var maxaltimeter:Number;
public var dinohit:Array;
private var squirrelhangtimer:int;
public var maintimeline;
public var radar:MovieClip;
private var bgcloud:ScrollContainer;
public var resultdistance:Number;
private var wingflapcount:int;
private var rocketfactor:Number;
private var bonusname:Array;
public var launcherskin:MovieClip;
private var frozendr:Array;
private var fgravity:ForceVector;
private var gravityfactor:Number;
private var bgstars;
private var squirreltooltop:MovieClip;
private var frozendy:Array;
private var wingflapfactor:Number;
private var bglake:ScrollContainer;
private var frozendx:Array;
private var dinoprob:Array;
private var dinoevent:Boolean;
public var ropeskin:MovieClip;
private var wait:int;
private var squirrelposx:Number;
private var rocketactivated:Boolean;
private var squirrelposy:Number;
private var bestftotal:ForceVector;
public var resultheight:Number;
private var parachutetime:int;
private var fstop:ForceVector;
private var flaunch:ForceVector;
public var resultacorn:int;
public var resultobject:int;
private var maxspeedometer:Number;
public var bouncecount:int;
public var buttonmgr;
private var rockettime:int;
private var bgland;
private var parachuteactivated:Boolean;
private var rocketboosterskin:MovieClip;
private var signlayer:DistanceSignContainer;
private var launchpoint:Point;
private var dinoobject:Array;
public var ctrlmgr;
private var squirrelheight:Number;
private var bgstarsmoke;
private var bgmountain:ScrollContainer;
public var tweenmgr;
private var bouncefactor:Number;
private var squirreltoolbottom:MovieClip;
private var ftotalbackup:ForceVector;
private var squirrelskinpose:Array;
public var status:String;
private var squirrelruntimer:int;
private var parachutefactor:Number;
public function SceneContainer(_mtl){
var i:*;
var obj:*;
var rnd:*;
var pos:*;
super();
maintimeline = _mtl;
ctrlmgr = maintimeline.ctrlmgr;
tweenmgr = maintimeline.tweenmgr;
datamgr = maintimeline.datamgr;
soundmgr = maintimeline.soundmgr;
panel = new mc_cpanel_lv0();
radar = new RadarContainer();
initSquirrelSkin();
bgstars = new mc_stars();
bgstarsmoke = new MovieClip();
bgstarsmoke.addChild(new mc_skysmoke());
bgstarsmoke.addChild(new mc_skysmoke());
bgstarsmoke.getChildAt(0).x = (bgstarsmoke.getChildAt(0).width * -1);
bgstarsmoke.getChildAt(1).x = 0;
bgmountain = new ScrollContainer();
this.addChild(bgmountain);
obj = [new mc_backbg1(), new mc_backbg1()];
bgmountain.setLoop(true, ((obj[0].width * -1) + 5), obj[0].width, false);
i = 0;
while (i < obj.length) {
obj[i].x = ((i - 1) * obj[i].width);
obj[i].y = 0;
bgmountain.addChild(obj[i]);
i++;
};
bglake = new ScrollContainer();
this.addChild(bglake);
obj = [new mc_backbg2(), new mc_backbg2()];
bglake.setLoop(true, ((obj[0].width * -1) + 5), obj[0].width, false);
i = 0;
while (i < obj.length) {
obj[i].x = ((i - 1) * obj[i].width);
obj[i].y = 0;
bglake.addChild(obj[i]);
i++;
};
bgland = new MovieClip();
this.addChild(bgland);
obj = [new mc_backbg3(), new mc_backbg3(), new mc_backbg3(), new mc_backbg3()];
i = 0;
while (i < obj.length) {
obj[i].x = ((i * -1) * obj[i].width);
obj[i].y = 0;
bgland.addChild(obj[i]);
i++;
};
bgcloud = new ScrollContainer();
bgcloud.setLoop(true, -200, 1080);
this.addChild(bgcloud);
pos = -200;
i = 0;
while (i < 6) {
pos = (pos + ((Math.random() * 100) + 100));
if (Math.random() < 0.5){
obj = new mc_cloud1();
} else {
obj = new mc_cloud2();
};
bgcloud.addChild(obj);
obj.x = pos;
obj.y = (-500 - (Math.random() * 1600));
i++;
};
bonusobject = new Array();
bonuslayer = new BonusContainer(bonusobject);
dinoobject = new Array();
dinolayer = new DinosaurContainer(dinoobject);
starlayer = new ScrollContainer();
starlayer.setLoop(false, -820, 740);
signlayer = new DistanceSignContainer((datamgr.longestdistance * -50));
fstop = new ForceVector(0, 0);
createStopScene();
status = "finished";
}
private function createStopScene(){
var i:*;
var obj:*;
removeObject(treeskin);
removeObject(squirrelskin);
this.addChild(bgstars);
this.addChild(bgstarsmoke);
this.addChild(bgmountain);
this.addChild(bglake);
addObject(bgcloud);
this.addChild(bgland);
addObject(treeskin);
addObject(bonuslayer);
addObject(dinolayer);
addObject(starlayer);
addObject(signlayer);
if (((((squirrelskin) && (!((squirrelskin.name == "meteor"))))) && (!((squirrelskin.name == "frozen"))))){
squirrelskin = new mc_standsquirrel();
squirrelskin.x = 320;
squirrelskin.y = 380;
this.addChild(squirrelskin);
};
if (this.contains(panel)){
this.setChildIndex(panel, (numChildren - 1));
};
if (this.contains(radar)){
this.setChildIndex(radar, (numChildren - 2));
};
}
private function doBeforeLaunch(){
var ang:*;
var dist:*;
var mousepos:*;
var ftmp:*;
ftmp = new ForceVector();
if (((!(ctrlmgr.PREVMOUSEPRESS)) && (!(ctrlmgr.MOUSEPRESS)))){
if (datamgr.upgrades[0] == 3){
treeskin.setMousePosition(ctrlmgr.MOUSEPOS);
};
ftotal.addForce(fgravity);
ftotal.addForce(frope);
launchpoint.x = (treeskin.x + treeskin.mcropepos.x);
launchpoint.y = (treeskin.y + treeskin.mcropepos.y);
ropeskin.x = launchpoint.x;
ropeskin.y = launchpoint.y;
ropeskin.rotation = 0;
ropeskin.scaleX = (1 + (ftotal.r / 1000));
ropeskin.rotation = ftotal.a;
ftmp.setR(((ropeskin.scaleX - 1) * 50));
if (ftmp.r < 0){
ftmp.setR(0);
};
ftmp.setA((ropeskin.rotation - 180));
frope.addForce(ftmp);
if (frope.r > ftotal.r){
frope.setR(ftotal.r);
};
squirrelskin.rotation = ropeskin.rotation;
launcherskin.rotation = ropeskin.rotation;
squirrelskin.x = (launchpoint.x + MathVect.getDx((ropeskin.scaleX * 75), squirrelskin.rotation));
squirrelskin.y = (launchpoint.y + MathVect.getDy((ropeskin.scaleX * 75), squirrelskin.rotation));
launcherskin.x = (launchpoint.x + MathVect.getDx((ropeskin.scaleX * 75), launcherskin.rotation));
launcherskin.y = (launchpoint.y + MathVect.getDy((ropeskin.scaleX * 75), launcherskin.rotation));
} else {
if (ctrlmgr.MOUSEPRESS){
mousepos = this.globalToLocal(ctrlmgr.MOUSEPOS);
dist = MathVect.getObjectDistance(squirrelskin, mousepos);
if (dist < 50){
status = "preparing";
};
};
};
}
private function doFlyAnimation(){
var pt:*;
var dx:*;
var i:*;
var hitobj:*;
var fexplode:*;
if (squirrelhangtimer == 0){
if (((parachuteactivated) && ((parachutetime > 0)))){
parachutetime--;
fgravity.setR(((defaultgravityforce * gravityfactor) * parachutefactor));
if (parachutetime == 0){
stopParachute();
};
} else {
fgravity.setR((defaultgravityforce * gravityfactor));
};
if (((rocketactivated) && ((rockettime > 0)))){
rockettime--;
setPanel();
ftotal.addForce(new ForceVector(rocketfactor, -165));
if (rockettime == 0){
stopRocket();
};
};
if (antigravitytimer > 0){
antigravitytimer--;
} else {
if (((rocketactivated) && ((ftotal.dy > 0)))){
ftotal.setDy(0);
} else {
if (!rocketactivated){
ftotal.addForce(fgravity);
ftotal.addForce(fdrag);
};
};
};
ftotal.addForce(flift);
if (ftotal.r > bestftotal.r){
bestftotal.set(ftotal.r, ftotal.a);
};
if (ftotal.dx > 0){
ftotal.setDx(-1);
};
} else {
squirrelhangtimer--;
pt = dinolayer.globalToLocal(new Point(squirrelskin.x, squirrelskin.y));
dinoobject[3].x = pt.x;
dinoobject[3].y = pt.y;
if (squirrelhangtimer == 0){
dinoobject[3].dx = (ftotal.dx / 2);
dinoobject[3].dy = (ftotal.dy / 2);
ftotal = ftotalbackup;
this.setChildIndex(dinolayer, (this.numChildren - 5));
dinoevent = false;
};
};
if (this.getChildIndex(squirreltooltop) < this.getChildIndex(squirrelskin)){
this.swapChildren(squirreltooltop, squirrelskin);
this.setChildIndex(starlayer, (this.numChildren - 1));
};
dx = (ftotal.dx * 0.8);
squirreldist = (squirreldist + dx);
squirrelheight = (squirrelheight - (ftotal.dy * 0.1));
if (squirrelheight < 0){
squirrelheight = 0;
};
bestheight = ((squirrelheight)>bestheight) ? squirrelheight : bestheight;
squirrelposx = (320 - (ftotal.dx * 0.4));
squirrelposx = ((squirrelposx)>600) ? 600 : squirrelposx;
if (squirrelheight < (500 * slingerfactor)){
squirrelposy = (370 - (squirrelheight * (110 / (500 * slingerfactor))));
} else {
if (squirrelheight < 10000){
squirrelposy = 260;
} else {
squirrelposy = (260 - ((squirrelheight - 10000) * 0.022));
};
};
if (!MathVect.isClose(squirrelskin.x, squirrelposx)){
squirrelskin.x = (squirrelskin.x + ((squirrelposx - squirrelskin.x) * 0.05));
};
if (!MathVect.isClose(squirrelskin.y, squirrelposy)){
squirrelskin.y = (squirrelskin.y + (squirrelposy - squirrelskin.y));
};
squirreltoolbottom.x = squirrelskin.x;
squirreltoolbottom.y = squirrelskin.y;
squirreltooltop.x = squirrelskin.x;
squirreltooltop.y = squirrelskin.y;
if (squirrelruntimer > 0){
squirrelruntimer--;
if (squirrelruntimer == 0){
setFlyingSquirrelSkin();
};
} else {
if (((((((((((((((((((((((!((squirrelskin.name == "boost"))) && (!((squirrelskin.name == "burnt"))))) && (!((squirrelskin.name == "onfire"))))) && (!((squirrelskin.name == "run"))))) && (!((squirrelskin.name == "meteor"))))) && (!((squirrelskin.name == "frozen"))))) && (!((squirrelskin.name == "hurt"))))) || ((((squirrelskin.name == "boost")) && ((squirrelskin.currentFrame == squirrelskin.totalFrames)))))) || ((((squirrelskin.name == "burnt")) && ((squirrelskin.currentFrame == squirrelskin.totalFrames)))))) || ((((squirrelskin.name == "onfire")) && ((squirrelskin.currentFrame == squirrelskin.totalFrames)))))) || ((((squirrelskin.name == "run")) && ((squirrelskin.currentFrame == squirrelskin.totalFrames)))))) || ((((squirrelskin.name == "hurt")) && ((squirrelskin.currentFrame == squirrelskin.totalFrames)))))){
setFlyingSquirrelSkin();
};
};
dx = (dx * -1);
moveScreen(dx, squirrelheight);
radar.setAnchor(squirrelskin);
radar.drawScene(bgland);
hitobj = radar.drawContainer(bonuslayer);
detectBonusHit(hitobj);
if (radar.level == 3){
radar.drawContainer(dinolayer);
};
if (usestar){
createStars(squirrelskin.x, (squirrelskin.y - starlayer.y));
};
if (squirrelheight <= 0){
if ((((squirrelskin.name == "meteor")) || ((squirrelskin.name == "frozen")))){
ftotal.setR(0);
if (squirrelskin.name == "meteor"){
if (wait == 10){
if (datamgr.longestdistance < (squirreldist / -50)){
signlayer.setDistance(squirreldist, squirrelskin.x);
};
createBlow("Bomb long", squirrelskin.x, squirrelskin.y);
soundmgr.playSFX("bigexplosion");
};
} else {
if (squirrelskin.name == "frozen"){
if (wait == 90){
if (datamgr.longestdistance < (squirreldist / -50)){
signlayer.setDistance(squirreldist, squirrelskin.x);
};
squirrelskin.rotation = 0;
soundmgr.playSFX("icebreak");
};
explodeFrozenSquirrelSkin();
};
};
wait--;
if (wait == 0){
wait = 30;
hidePanel();
stopParachute();
stopRocket();
fstop = new ForceVector(0, 0);
this.removeChild(squirrelskin);
status = "stopflying";
createStopScene();
};
} else {
squirrelheight = 0;
squirrelskin.rotation = 0;
squirrelglide = false;
if (Math.abs(ftotal.dy) > 5){
ftotal.set((ftotal.r * bouncefactor), fbounce.a);
bouncecount++;
wait = 30;
soundmgr.playSFX("bounce");
} else {
if (dinolayer.contains(dinoobject[2])){
if (dinoobject[2].x > squirrelskin.x){
dinoobject[2].changeSkin("runback");
};
soundmgr.playSFX("angrycaveman");
};
ftotal.setR(0);
if (wait == 30){
if (datamgr.longestdistance < (squirreldist / -50)){
signlayer.setDistance(squirreldist, squirrelskin.x);
};
} else {
if (wait == 0){
wait = 30;
hidePanel();
stopParachute();
stopRocket();
fstop = new ForceVector(0, 0);
squirrelskin.gotoAndStop(1);
status = "stopflying";
createStopScene();
};
};
wait--;
};
};
};
}
private function setFlyingSquirrelSkin(){
if (ftotal.r > 300){
setSquirrelSkin("fast");
} else {
setSquirrelSkin("slow");
};
}
private function detectBonusHit(hitobj){
var fexplode:*;
var fadd:*;
if (((((hitobj) && (!((squirrelskin.name == "meteor"))))) && (!((squirrelskin.name == "frozen"))))){
resultobject++;
switch (hitobj.name){
case "Bomb":
bonuslayer.removeChild(hitobj);
createBlow(hitobj.name, hitobj.x, hitobj.y);
setSquirrelSkin("burnt");
if (ftotal.dy > 0){
ftotal.setDy(0);
};
fexplode = new ForceVector(300, -105);
ftotal.addForce(fexplode);
soundmgr.playSFX("bigexplosion");
if (Math.random() > 0.3){
createBaloonSkin("eew");
};
break;
case "Campfire":
stopParachute();
stopRocket();
setSquirrelSkin("onfire");
fadd = new ForceVector(50, -120);
ftotal.add(fadd.r, fadd.a);
ftotal.setA(fadd.a);
createBaloonSkin("ouch");
break;
case "Dynamite":
bonuslayer.removeChild(hitobj);
createBlow(hitobj.name, hitobj.x, hitobj.y);
setSquirrelSkin("burnt");
if (ftotal.dy > 0){
ftotal.setDy(0);
};
fexplode = new ForceVector(150, -105);
ftotal.addForce(fexplode);
soundmgr.playSFX("smallexplosion");
if (Math.random() > 0.7){
createBaloonSkin("eew");
};
break;
case "Coin":
bonuslayer.removeChild(hitobj);
createBlow(hitobj.name, hitobj.x, hitobj.y);
resultcoin = (resultcoin + 1);
soundmgr.playSFX("smallchange");
break;
case "Money Bag":
bonuslayer.removeChild(hitobj);
createBlow(hitobj.name, hitobj.x, hitobj.y);
resultcoin = (resultcoin + 5);
soundmgr.playSFX("bigchange");
if (Math.random() > 0.5){
createBaloonSkin("zomg");
} else {
createBaloonSkin("woot");
};
break;
case "Rocket Fuel":
bonuslayer.removeChild(hitobj);
createBlow(hitobj.name, hitobj.x, hitobj.y);
rockettime = datamgr.rockettime[datamgr.upgrades[2]];
setPanel();
panel.mcfuel.scaleX = 1.2;
panel.mcfuel.scaleY = 1.2;
tweenmgr.register(panel.mcfuel, {live:10, ease:"easenone", scalex:1, scaley:1});
soundmgr.playSFX("gravitymachine");
break;
case "Acorn":
bonuslayer.removeChild(hitobj);
createBlow(hitobj.name, hitobj.x, hitobj.y);
resultacorn++;
createBaloonSkin("yippee");
wingflapcount = (wingflapcount + (Math.floor((datamgr.wingflapcount[datamgr.upgrades[4]] / 2)) + 1));
if (wingflapcount > 9){
wingflapcount = 9;
};
setPanel();
panel.mcstamina.scaleX = 1.2;
panel.mcstamina.scaleY = 1.2;
tweenmgr.register(panel.mcstamina, {live:10, ease:"easenone", scalex:1, scaley:1});
soundmgr.playSFX("beingeaten");
break;
case "Baloon":
bonuslayer.removeChild(hitobj);
createBlow(hitobj.name, hitobj.x, hitobj.y);
if (!rocketactivated){
antigravitytimer = 60;
};
soundmgr.playSFX("gravitymachine");
break;
case "Anti Gravity":
bonuslayer.removeChild(hitobj);
createBlow(hitobj.name, hitobj.x, hitobj.y);
if (!rocketactivated){
antigravitytimer = 60;
};
soundmgr.playSFX("gravitymachine");
break;
};
};
}
public function moveClip(){
var i:*;
switch (status){
case "idle":
doBeforeLaunch();
break;
case "preparing":
doLaunchPreparation();
break;
case "readylaunch":
doLaunchAnimation();
break;
case "launched":
createFlyScene();
break;
case "flying":
dispatcher.moveClip();
doFlyAnimation();
doDinosaurAnimation();
refreshPanel();
resultheight = (bestheight / 25);
resultdistance = ((squirreldist / 50) * -1);
resultspeed = (bestftotal.r / 15);
break;
case "stopflying":
doDinosaurAnimation();
if (((squirrelskin) && ((squirrelskin.name == "frozen")))){
explodeFrozenSquirrelSkin();
};
resultheight = (bestheight / 25);
resultdistance = ((squirreldist / 50) * -1);
resultspeed = (bestftotal.r / 15);
if (wait > 0){
squirrelheight = (squirrelheight + fstop.dy);
moveScreen(fstop.dx, squirrelheight);
wait--;
} else {
status = "finished";
};
break;
case "finished":
doDinosaurAnimation();
if (((squirrelskin) && ((squirrelskin.name == "frozen")))){
explodeFrozenSquirrelSkin();
};
break;
};
}
private function setPanel(){
panel.mcstamina.gotoAndStop((10 - wingflapcount));
if (datamgr.rockettime[datamgr.upgrades[2]] > 0){
panel.mcfuel.gotoAndStop((10 - Math.floor(((rockettime / datamgr.rockettime[datamgr.upgrades[2]]) * 10))));
} else {
panel.mcfuel.gotoAndStop(10);
};
}
private function createBaloonSkin(_param){
if (((baloonskin) && (squirreltooltop.contains(baloonskin)))){
squirreltooltop.removeChild(baloonskin);
};
switch (_param){
case "whee":
baloonskin = new mc_baloon_whee();
break;
case "yippee":
baloonskin = new mc_baloon_yippee();
break;
case "eew":
baloonskin = new mc_baloon_eew();
break;
case "ooo":
baloonskin = new mc_baloon_ooo();
break;
case "ouch":
baloonskin = new mc_baloon_ouch();
break;
case "zomg":
baloonskin = new mc_baloon_zomg();
break;
case "woot":
baloonskin = new mc_baloon_woot();
break;
};
squirreltooltop.addChild(baloonskin);
}
private function createStars(_x, _y){
var i:*;
var obj:*;
var rnd:*;
var rnd2:*;
var bf:*;
rnd2 = Math.floor(MathVect.randRange(1, 2));
bf = new BlurFilter(10, 10, 1);
i = 0;
while (i < rnd2) {
rnd = MathVect.randRange(0.3, 1);
obj = new mc_star();
obj.name = "star";
obj.x = ((_x + (Math.random() * 50)) - 25);
obj.y = ((_y + (Math.random() * 50)) - 25);
obj.scaleX = rnd;
obj.scaleY = rnd;
obj.rotation = (rnd * 360);
obj.alpha = 1;
obj.filter = [bf];
starlayer.addChild(obj);
i++;
};
}
private function createBlow(_type, _x, _y){
var i:*;
var obj:*;
var rnd:*;
var rnd2:*;
var bf:*;
rnd2 = Math.floor(MathVect.randRange(1, 2));
bf = new BlurFilter(10, 10, 1);
i = 0;
while (i < rnd2) {
rnd = MathVect.randRange(0.3, 1);
switch (_type){
case "Squirrel":
obj = new mc_bodyblow();
obj.name = "bodyblow";
obj.x = ((_x + (Math.random() * 50)) - 25);
obj.y = (((_y + (Math.random() * 50)) - 25) - 150);
break;
case "Dynamite":
obj = new mc_explode_small();
obj.name = "explode_small";
obj.x = ((_x + (Math.random() * 50)) - 25);
obj.y = ((_y + (Math.random() * 50)) - 25);
break;
case "Bomb":
obj = new mc_explode_big();
obj.name = "explode_big";
obj.x = ((_x + (Math.random() * 50)) - 25);
obj.y = ((_y + (Math.random() * 50)) - 25);
break;
case "Bomb long":
obj = new mc_explode_big_long();
obj.name = "explode_big";
obj.x = ((_x + (Math.random() * 50)) - 25);
obj.y = ((_y + (Math.random() * 50)) - 25);
break;
default:
obj = new mc_explode_none();
obj.name = "explode_none";
obj.x = ((_x + (Math.random() * 50)) - 25);
obj.y = ((_y + (Math.random() * 50)) - 25);
break;
};
starlayer.addChild(obj);
i++;
};
}
public function doDinosaurHit(_type, _hit, _angle=0){
var pt:*;
var dx:*;
var dy:*;
var fadd:*;
if (status == "flying"){
switch (_type){
case "Blizzard":
wait = 90;
stopParachute();
stopRocket();
setSquirrelSkin("frozen");
soundmgr.playSFX("blizzardhit");
fadd = new ForceVector(100, 135);
ftotal.add(fadd.r, fadd.a);
ftotal.setA(fadd.a);
dinohit[6] = true;
goodlanding = false;
wingflapcount = 0;
parachutetime = 0;
rockettime = 0;
setPanel();
break;
case "Meteor":
wait = 10;
stopParachute();
stopRocket();
setSquirrelSkin("meteor");
fadd = new ForceVector(100, 135);
ftotal.add(fadd.r, fadd.a);
ftotal.setA(fadd.a);
dinohit[5] = true;
goodlanding = false;
wingflapcount = 0;
parachutetime = 0;
rockettime = 0;
setPanel();
break;
case "Ptera":
stopParachute();
stopRocket();
ftotalbackup = ftotal;
ftotal = new ForceVector(0, 0, (dinoobject[3].dx * 6), (dinoobject[3].dy * 6));
squirrelhangtimer = 180;
pt = dinolayer.globalToLocal(new Point(squirrelskin.x, squirrelskin.y));
dinoobject[3].x = pt.x;
dinoobject[3].y = pt.y;
dinoobject[3].dx = 0;
dinoobject[3].dy = 0;
this.setChildIndex(dinolayer, (this.numChildren - 2));
dinoevent = true;
dinohit[3] = true;
break;
case "Man":
if ((((((((squirrelskin.name == "fast")) || ((squirrelskin.name == "slow")))) || ((squirrelskin.name == "boost")))) || ((squirrelskin.name == "burnt")))){
stopParachute();
stopRocket();
setSquirrelSkin("hurt");
fadd = new ForceVector(400, -135);
ftotal.add(fadd.r, fadd.a);
ftotal.setA(fadd.a);
dinohit[2] = true;
soundmgr.playSFX("hitbycaveman");
};
break;
case "Brachio":
stopParachute();
stopRocket();
ftotal.set((ftotal.r + 5), _angle);
if (_hit == 9){
createBaloonSkin("whee");
};
setSquirrelSkin("run");
dinohit[1] = true;
break;
case "Quetza":
hidePanel();
stopParachute();
stopRocket();
removeObject(squirrelskin);
createBlow("Squirrel", dinoobject[4].x, dinoobject[4].y);
wait = 90;
dx = dinoobject[4].dx;
dy = dinoobject[4].dy;
fstop = new ForceVector(0, 0, dx, dy);
dinoobject[4].dx = 0;
dinoobject[4].dy = 0;
status = "stopflying";
dinohit[4] = true;
goodlanding = false;
soundmgr.playSFX("beingeaten");
if (datamgr.longestdistance < (squirreldist / -50)){
signlayer.setDistance(squirreldist, squirrelskin.x);
};
break;
case "Rex":
hidePanel();
stopParachute();
stopRocket();
removeObject(squirrelskin);
createBlow("Squirrel", squirrelskin.x, squirrelskin.y);
wait = 90;
dx = 0;
dy = ((squirrelheight / wait) * -1);
fstop = new ForceVector(0, 0, dx, dy);
status = "stopflying";
dinohit[0] = true;
goodlanding = false;
soundmgr.playSFX("beingeaten");
createBaloonSkin("eew");
if (datamgr.longestdistance < (squirreldist / -50)){
signlayer.setDistance(squirreldist, squirrelskin.x);
};
break;
};
};
}
private function createFlyScene(){
var i:*;
removeObject(treeskin);
removeObject(launcherskin);
removeObject(ropeskin);
removeObject(squirrelskin);
initSquirrelSkin();
squirrelskinpose["fast"].x = 270;
squirrelskinpose["fast"].y = squirrelskin.y;
squirrelskin.rotation = 360;
squirrelskin = squirrelskinpose["fast"];
squirrelskin.rotation = 0;
squirreltoolbottom = new MovieClip();
squirreltoolbottom.x = squirrelskin.x;
squirreltoolbottom.y = squirrelskin.y;
squirreltooltop = new MovieClip();
squirreltooltop.x = squirrelskin.x;
squirreltooltop.y = squirrelskin.y;
addObject(bgstars);
addObject(bgstarsmoke);
addObject(bgmountain);
addObject(bglake);
addObject(bgcloud);
addObject(bgland);
addObject(treeskin);
addObject(bonuslayer);
addObject(dinolayer);
addObject(signlayer);
addObject(squirreltoolbottom);
addObject(squirrelskin);
addObject(squirreltooltop);
if (this.contains(panel)){
this.setChildIndex(panel, (numChildren - 1));
};
if (this.contains(radar)){
this.setChildIndex(radar, (numChildren - 2));
};
addObject(starlayer);
signlayer.reset();
squirrelposx = 650;
squirrelposy = 240;
status = "flying";
}
public function startParachute(){
if (((((((!(rocketactivated)) && (!(parachuteactivated)))) && (!(dinoevent)))) && ((parachutetime > 0)))){
parachuteactivated = true;
ftotal.setDy(0);
if (parachuteskin){
squirreltooltop.addChild(parachuteskin);
};
stopRocket();
};
}
private function doLaunchAnimation(){
var ang:*;
var dist:*;
var preskiny:*;
var dx:*;
var dy:*;
launchpoint.x = (treeskin.x + treeskin.mcropepos.x);
launchpoint.y = (treeskin.y + treeskin.mcropepos.y);
if ((((squirrelskin.x > 0)) && ((squirrelskin.y > 0)))){
preskiny = squirrelskin.y;
dx = MathVect.getDx(50, ftotal.a);
dy = MathVect.getDy(50, ftotal.a);
squirrelskin.x = (squirrelskin.x + dx);
squirrelskin.y = (squirrelskin.y + dy);
squirreldist = (squirreldist + dx);
squirrelheight = (300 - squirrelskin.y);
ang = MathVect.getObjectAngle(launchpoint, squirrelskin);
dist = MathVect.getObjectDistance(launchpoint, squirrelskin);
if ((((launcherskin.x > launchpoint.x)) || ((dist < 75)))){
launcherskin.x = (launchpoint.x + MathVect.getDx(dist, ang));
launcherskin.y = (launchpoint.y + MathVect.getDy(dist, ang));
};
ang = MathVect.getObjectAngle(launchpoint, launcherskin);
dist = MathVect.getObjectDistance(launchpoint, launcherskin);
ropeskin.x = launchpoint.x;
ropeskin.y = launchpoint.y;
ropeskin.rotation = 0;
ropeskin.scaleX = (dist / 75);
ropeskin.rotation = ang;
if ((((((preskiny < 300)) && ((squirrelskin.y > 300)))) && ((ftotal.a < 0)))){
ftotal.set(ftotal.r, (ftotal.a * -1));
flaunch.set(ftotal.r, ftotal.a);
fbounce.set(ftotal.r, ftotal.a);
};
} else {
status = "launched";
showPanel();
};
}
private function showPanel(obj=null){
radar.y = -300;
this.addChild(radar);
tweenmgr.register(radar, {live:30, ease:"easeoutcubic", x:0, y:0, alpha:1, scalex:1, scaley:1});
panel.y = 300;
this.addChild(panel);
tweenmgr.register(panel, {live:30, ease:"easeoutcubic", x:0, y:0, alpha:1, scalex:1, scaley:1});
}
private function addObject(obj){
if (obj){
this.addChild(obj);
};
}
public function stopParachute(){
if (parachuteactivated){
parachuteactivated = false;
parachutetime = 0;
if (parachuteskin){
if (squirreltooltop.contains(parachuteskin)){
squirreltooltop.removeChild(parachuteskin);
};
};
};
}
public function createStartScene(){
var i:*;
lastmousepos = new Point(250, 370);
removeObject(bonuslayer);
bonuslayer.reset();
removeObject(dinolayer);
dinolayer.reset();
removeObject(treeskin);
switch (datamgr.upgrades[0]){
case 0:
treeskin = new mc_startingtree();
break;
case 1:
treeskin = new mc_startingbone();
break;
case 2:
treeskin = new mc_startingtree2();
break;
case 3:
treeskin = new mc_startingmammoth();
break;
};
treeskin.x = 250;
treeskin.y = 370;
launchpoint = new Point((treeskin.x - treeskin.mcropepos.x), (treeskin.y + treeskin.mcropepos.y));
removeObject(ropeskin);
ropeskin = new mc_rope();
ropeskin.x = launchpoint.x;
ropeskin.y = launchpoint.y;
removeObject(squirrelskin);
squirrelskin = new mc_sitsquirrel();
squirrelskin.x = (launchpoint.x + MathVect.getDx(treeskin.mcropepos.width, squirrelskin.rotation));
squirrelskin.y = (launchpoint.y + MathVect.getDy(treeskin.mcropepos.width, squirrelskin.rotation));
removeObject(launcherskin);
launcherskin = new mc_wajan();
launcherskin.x = (launchpoint.x + MathVect.getDx(treeskin.mcropepos.width, launcherskin.rotation));
launcherskin.y = (launchpoint.y + MathVect.getDy(treeskin.mcropepos.width, launcherskin.rotation));
launcherskin.buttonMode = true;
this.addChild(treeskin);
this.addChild(squirrelskin);
this.addChild(launcherskin);
this.addChild(ropeskin);
bouncefactor = datamgr.bouncefactor[datamgr.upgrades[0]];
slingerfactor = datamgr.slingerfactor[datamgr.upgrades[0]];
wingflapcount = datamgr.wingflapcount[datamgr.upgrades[4]];
wingflapfactor = datamgr.wingflapfactor[datamgr.upgrades[3]];
gravityfactor = datamgr.gravityfactor[datamgr.upgrades[3]];
usestar = ((datamgr.upgrades[3])==3) ? true : false;
parachutefactor = datamgr.parachutefactor[datamgr.upgrades[1]];
parachutetime = datamgr.parachutetime[datamgr.upgrades[1]];
rocketfactor = datamgr.rocketfactor[datamgr.upgrades[2]];
rockettime = datamgr.rockettime[datamgr.upgrades[2]];
radar.setLevel(datamgr.upgrades[5]);
defaultgravityforce = 4;
fgravity = new ForceVector((defaultgravityforce * gravityfactor), 90);
fdrag = new ForceVector(0.2, 0);
flift = new ForceVector(0, -90);
frope = new ForceVector(0, 0);
flaunch = new ForceVector(0, 0);
fbounce = new ForceVector(0, 0);
ftotal = new ForceVector(0, 0);
fstop = new ForceVector(0, 0);
maxaltimeter = 10000;
maxspeedometer = 750;
squirreldist = 0;
squirrelheight = 0;
bestftotal = new ForceVector(0, 0);
bestheight = 0;
dinohit = [false, false, false, false, false, false];
usewingflap = false;
bouncecount = 0;
goodlanding = true;
resultcoin = 0;
resultdistance = 0;
resultheight = 0;
resultspeed = 0;
resultobject = 0;
resultawards = 0;
resultacorn = 0;
dispatcher = new ObjectDispatcher();
if (rocketfactor > 0){
bonusobject = [new mc_obj1(), new mc_obj2(), new mc_obj3(), new mc_obj4(), new mc_obj5(), new mc_obj6(), new mc_obj7(), new mc_obj8(), new mc_campfire()];
bonusname = ["Bomb", "Dynamite", "Coin", "Money Bag", "Rocket Fuel", "Acorn", "Baloon", "Anti Gravity", "Campfire"];
bonusprob = [0.1, 0.2, 0.2, 0.1, 0.02, 0.05, 0.1, 0.05, 0.05];
} else {
bonusobject = [new mc_obj1(), new mc_obj2(), new mc_obj3(), new mc_obj4(), new mc_obj6(), new mc_obj7(), new mc_obj8(), new mc_campfire()];
bonusname = ["Bomb", "Dynamite", "Coin", "Money Bag", "Acorn", "Baloon", "Anti Gravity", "Campfire"];
bonusprob = [0.1, 0.2, 0.2, 0.1, 0.05, 0.1, 0.05, 0.05];
};
i = 0;
while (i < bonusobject.length) {
bonusobject[i].name = bonusname[i];
i++;
};
bonuslayer = new BonusContainer(bonusobject);
dispatcher.register(15, bonusobject, bonusprob, {scope:bonuslayer, func:bonuslayer.dispatch});
dinoobject = [new DinosaurBase("Rex", {scope:this, onhit:doDinosaurHit}), new DinosaurBase("Brachio", {scope:this, onhit:doDinosaurHit}), new DinosaurBase("Man", {scope:this, onhit:doDinosaurHit}), new DinosaurBase("Ptera", {scope:this, onhit:doDinosaurHit}), new DinosaurBase("Quetza", {scope:this, onhit:doDinosaurHit}), new DinosaurBase("Meteor", {scope:this, onhit:doDinosaurHit}), new DinosaurBase("Blizzard", {scope:this, onhit:doDinosaurHit})];
dinoname = ["Rex", "Brachio", "Man", "Ptera", "Quetza", "Meteor", "Blizzard"];
dinoprob = [0.3, 0.3, 0.3, 0, 0, 0, 0];
i = 0;
while (i < dinoobject.length) {
dinoobject[i].name = dinoname[i];
i++;
};
dinolayer = new DinosaurContainer(dinoobject);
dispatcher.register(150, dinoobject, dinoprob, {scope:dinolayer, func:dinolayer.dispatch});
dinoevent = false;
if (this.contains(panel)){
this.removeChild(panel);
switch (datamgr.upgrades[5]){
case 0:
panel = new mc_cpanel_lv0();
break;
case 1:
panel = new mc_cpanel_lv1();
break;
case 2:
panel = new mc_cpanel_lv2();
break;
case 3:
panel = new mc_cpanel_lv3();
break;
};
this.addChild(panel);
this.setChildIndex(panel, (numChildren - 1));
} else {
switch (datamgr.upgrades[5]){
case 0:
panel = new mc_cpanel_lv0();
break;
case 1:
panel = new mc_cpanel_lv1();
break;
case 2:
panel = new mc_cpanel_lv2();
break;
case 3:
panel = new mc_cpanel_lv3();
break;
};
};
if (this.contains(radar)){
this.setChildIndex(radar, (numChildren - 2));
};
setPanel();
moveScreen(0, 0);
status = "idle";
}
public function stopRocket(){
if (rocketactivated){
rocketactivated = false;
if (rocketskin){
if (squirreltooltop.contains(rocketskin)){
squirreltooltop.removeChild(rocketskin);
};
};
if (rocketboosterskin){
if (squirreltoolbottom.contains(rocketboosterskin)){
squirreltoolbottom.removeChild(rocketboosterskin);
};
};
};
}
private function removeObject(obj){
if (((obj) && (this.contains(obj)))){
this.removeChild(obj);
};
}
public function moveScreen(dx, y, bringsquirrel=false){
var s0:*;
var s1:*;
var s2:*;
var s3:*;
s0 = bgland.getChildAt(0);
s1 = bgland.getChildAt(1);
s2 = bgland.getChildAt(2);
s3 = bgland.getChildAt(3);
s0.x = (s0.x + (dx / 5));
s1.x = (s0.x + s0.width);
s2.x = (s1.x + s1.width);
s3.x = (s2.x + s2.width);
bgland.y = y;
if (s3.x > s3.width){
s0.x = (s0.x - s0.width);
s1.x = (s0.x + s0.width);
s2.x = (s1.x + s1.width);
s3.x = (s2.x + s2.width);
} else {
if (s3.x < 0){
s0.x = (s0.x + s0.width);
s1.x = (s0.x + s0.width);
s2.x = (s1.x + s1.width);
s3.x = (s2.x + s2.width);
};
};
if (treeskin){
treeskin.x = (treeskin.x + (dx / 5));
treeskin.y = (370 + y);
};
bglake.moveClip((dx / 20), 0);
bglake.y = (y * 0.9);
bgmountain.moveClip((dx / 40), 0);
bgmountain.y = (y * 0.8);
bgstars.x = (bgstars.x + (dx / 1000));
if (bgstars.x < ((bgstars.width * -1) + 640)){
bgstars.x = 0;
} else {
if (bgstars.x > 0){
bgstars.x = ((bgstars.width * -1) + 640);
};
};
s0 = bgstarsmoke.getChildAt(0);
s1 = bgstarsmoke.getChildAt(1);
s0.x = (s0.x + (dx / 100));
s1.x = (s0.x + s0.width);
if (s1.x < ((s1.width * -1) + 640)){
s0.x = s1.x;
s1.x = 0;
} else {
if (s0.x > 0){
s0.x = (s0.width * -1);
s1.x = 0;
};
};
bgcloud.moveClip((dx / 5), 0);
bgcloud.y = y;
bonuslayer.moveClip((dx / 5), 0);
bonuslayer.y = y;
dinolayer.moveClip((dx / 5), 0);
dinolayer.y = y;
starlayer.moveClip((dx / 5), 3);
starlayer.y = y;
signlayer.moveClip((dx / 5), y);
if (bringsquirrel){
if (treeskin){
treeskin.x = (treeskin.x + (dx / 5));
};
if (ropeskin){
ropeskin.x = (ropeskin.x + (dx / 5));
};
if (squirrelskin){
squirrelskin.x = (squirrelskin.x + (dx / 5));
};
if (launcherskin){
launcherskin.x = (launcherskin.x + (dx / 5));
};
};
}
private function initSquirrelSkin(){
var i:*;
squirrelskinpose = new Array();
switch (datamgr.upgrades[3]){
case 0:
squirrelskinpose["fast"] = new mc_flysquirrel1_fast();
squirrelskinpose["slow"] = new mc_flysquirrel1_slow();
squirrelskinpose["boost"] = new mc_flysquirrel1_boost();
break;
case 1:
squirrelskinpose["fast"] = new mc_flysquirrel2_fast();
squirrelskinpose["slow"] = new mc_flysquirrel2_slow();
squirrelskinpose["boost"] = new mc_flysquirrel2_boost();
break;
case 2:
case 3:
squirrelskinpose["fast"] = new mc_flysquirrel3_fast();
squirrelskinpose["slow"] = new mc_flysquirrel3_slow();
squirrelskinpose["boost"] = new mc_flysquirrel3_boost();
break;
};
squirrelskinpose["burnt"] = new mc_flysquirrel_burnt();
squirrelskinpose["hurt"] = new mc_flysquirrel_hurt();
squirrelskinpose["meteor"] = new mc_flysquirrel_meteor();
squirrelskinpose["frozen"] = new mc_flysquirrel_frozen();
squirrelskinpose["onfire"] = new mc_flysquirrel_onfire();
squirrelskinpose["stand"] = new mc_standsquirrel();
squirrelskinpose["run"] = new mc_runsquirrel();
squirrelskinpose["fast"].name = "fast";
squirrelskinpose["slow"].name = "slow";
squirrelskinpose["boost"].name = "boost";
squirrelskinpose["burnt"].name = "burnt";
squirrelskinpose["hurt"].name = "hurt";
squirrelskinpose["meteor"].name = "meteor";
squirrelskinpose["frozen"].name = "frozen";
squirrelskinpose["onfire"].name = "onfire";
squirrelskinpose["stand"].name = "stand";
squirrelskinpose["run"].name = "run";
frozenpart = [squirrelskinpose["frozen"].mcfrozen1, squirrelskinpose["frozen"].mcfrozen2, squirrelskinpose["frozen"].mcfrozen3, squirrelskinpose["frozen"].mcfrozen4, squirrelskinpose["frozen"].mcfrozen5, squirrelskinpose["frozen"].mcfrozen6, squirrelskinpose["frozen"].mcfrozen7, squirrelskinpose["frozen"].mcfrozen8, squirrelskinpose["frozen"].mcfrozen9, squirrelskinpose["frozen"].mcfrozen10, squirrelskinpose["frozen"].mcfrozen11, squirrelskinpose["frozen"].mcfrozen12, squirrelskinpose["frozen"].mcfrozen13, squirrelskinpose["frozen"].mcfrozen14, squirrelskinpose["frozen"].mcfrozen15, squirrelskinpose["frozen"].mcfrozen16, squirrelskinpose["frozen"].mcfrozen17];
frozendx = new Array();
frozendy = new Array();
frozendr = new Array();
i = 0;
while (i < frozenpart.length) {
frozendx[i] = ((Math.random() * 20) - 10);
frozendy[i] = (Math.random() * -30);
frozendr[i] = ((Math.random() * 30) - 15);
i++;
};
switch (datamgr.upgrades[1]){
case 0:
parachuteskin = null;
break;
case 1:
parachuteskin = new mc_parachute1();
break;
case 2:
parachuteskin = new mc_parachute2();
break;
case 3:
parachuteskin = new mc_parachute3();
break;
};
switch (datamgr.upgrades[2]){
case 0:
rocketskin = null;
rocketboosterskin = null;
break;
case 1:
rocketskin = new mc_rocket1();
rocketboosterskin = null;
break;
case 2:
rocketskin = new mc_rocket2();
rocketboosterskin = null;
break;
case 3:
rocketskin = new mc_rocket3();
rocketboosterskin = new mc_rocket3_booster();
break;
};
}
private function doLaunchPreparation(){
var ang:*;
var dist:*;
var mousepos:*;
launchpoint.x = (treeskin.x + treeskin.mcropepos.x);
launchpoint.y = (treeskin.y + treeskin.mcropepos.y);
mousepos = this.globalToLocal(ctrlmgr.MOUSEPOS);
if (mousepos.x > 620){
mousepos.x = 620;
} else {
if (mousepos.x < 260){
mousepos.x = 260;
};
};
if (mousepos.y > 460){
mousepos.y = 460;
} else {
if (mousepos.y < 10){
mousepos.y = 10;
};
};
if (datamgr.upgrades[0] >= 2){
if (datamgr.upgrades[0] == 3){
treeskin.setMousePosition(ctrlmgr.MOUSEPOS);
};
if ((squirrelskin.x - treeskin.x) < 75){
if (treeskin.currentFrame != 1){
treeskin.gotoAndStop(1);
soundmgr.playSFX("launchermove", false);
};
} else {
if ((squirrelskin.x - treeskin.x) < 150){
if (treeskin.currentFrame != 2){
treeskin.gotoAndStop(2);
soundmgr.playSFX("launchermove", false);
};
} else {
if ((squirrelskin.x - treeskin.x) < 225){
if (treeskin.currentFrame != 3){
treeskin.gotoAndStop(3);
soundmgr.playSFX("launchermove", false);
};
} else {
if ((squirrelskin.x - treeskin.x) < 300){
if (treeskin.currentFrame != 4){
treeskin.gotoAndStop(4);
soundmgr.playSFX("launchermove", false);
};
} else {
if (treeskin.currentFrame != 5){
treeskin.gotoAndStop(5);
soundmgr.playSFX("launchermove", false);
};
};
};
};
};
} else {
if ((squirrelskin.x - treeskin.x) < 75){
if (treeskin.currentFrame != 6){
treeskin.gotoAndStop(6);
soundmgr.playSFX("launchermove", false);
};
} else {
if ((squirrelskin.x - treeskin.x) < 150){
if (treeskin.currentFrame != 5){
treeskin.gotoAndStop(5);
soundmgr.playSFX("launchermove", false);
};
} else {
if ((squirrelskin.x - treeskin.x) < 225){
if (treeskin.currentFrame != 4){
treeskin.gotoAndStop(4);
soundmgr.playSFX("launchermove", false);
};
} else {
if ((squirrelskin.x - treeskin.x) < 300){
if (treeskin.currentFrame != 3){
treeskin.gotoAndStop(3);
soundmgr.playSFX("launchermove", false);
};
} else {
if (treeskin.currentFrame != 2){
treeskin.gotoAndStop(2);
soundmgr.playSFX("launchermove", false);
};
};
};
};
};
};
ang = MathVect.getObjectAngle(launchpoint, mousepos);
dist = MathVect.getObjectDistance(launchpoint, mousepos);
ropeskin.x = launchpoint.x;
ropeskin.y = launchpoint.y;
ropeskin.rotation = 0;
ropeskin.scaleX = (dist / 75);
ropeskin.rotation = ang;
squirrelskin.rotation = ang;
launcherskin.rotation = ang;
squirrelskin.x = (launchpoint.x + MathVect.getDx(dist, ang));
squirrelskin.y = (launchpoint.y + MathVect.getDy(dist, ang));
launcherskin.x = (launchpoint.x + MathVect.getDx(dist, ang));
launcherskin.y = (launchpoint.y + MathVect.getDy(dist, ang));
if (!ctrlmgr.MOUSEPRESS){
if (datamgr.upgrades[0] == 3){
soundmgr.playSFX("mammothrelease");
} else {
soundmgr.playSFX("launcherrelease");
};
ang = MathVect.getObjectAngle(launchpoint, squirrelskin);
dist = MathVect.getObjectDistance(launchpoint, squirrelskin);
status = "readylaunch";
ftotal.set(((dist * slingerfactor) + 50), (ang - 180));
flaunch.set(ftotal.r, ftotal.a);
fbounce.set(ftotal.r, ftotal.a);
squirreldist = (dist * slingerfactor);
squirrelheight = 25;
treeskin.play();
};
lastmousepos = mousepos;
}
private function doDinosaurAnimation(){
var i:*;
i = 0;
while (i < dinoobject.length) {
if (dinolayer.contains(dinoobject[i])){
dinoobject[i].moveClip(squirrelskin);
};
i++;
};
}
public function startRocket(){
if (((((((!(rocketactivated)) && (!(parachuteactivated)))) && (!(dinoevent)))) && ((rockettime > 0)))){
if (datamgr.upgrades[2] == 1){
soundmgr.playSFX("rocket1");
} else {
if (datamgr.upgrades[2] == 2){
soundmgr.playSFX("rocket2");
} else {
if (datamgr.upgrades[2] == 3){
soundmgr.playSFX("rocket3");
};
};
};
rocketactivated = true;
if (rocketskin){
squirreltooltop.addChild(rocketskin);
};
if (rocketboosterskin){
squirreltoolbottom.addChild(rocketboosterskin);
};
stopParachute();
};
}
private function hidePanel(obj=null){
tweenmgr.register(radar, {live:30, ease:"easeincubic", x:0, y:-300, alpha:1, scalex:1, scaley:1}, {scope:this, onfinished:removeObject});
tweenmgr.register(panel, {live:30, ease:"easeincubic", x:0, y:300, alpha:1, scalex:1, scaley:1}, {scope:this, onfinished:removeObject});
}
private function refreshPanel(){
var curhigh:*;
var curspeed:*;
var curdistance:*;
curhigh = (Math.floor(((squirrelheight / maxaltimeter) * 100)) + 1);
curspeed = (Math.floor((((-1 * ftotal.dx) / maxspeedometer) * 100)) + 1);
curdistance = ((squirreldist / 50) * -1);
if (curspeed == 101){
createBaloonSkin("ooo");
};
if (panel.mcaltimeter.currentFrame < curhigh){
panel.mcaltimeter.gotoAndStop((panel.mcaltimeter.currentFrame + 1));
} else {
if (panel.mcaltimeter.currentFrame > curhigh){
panel.mcaltimeter.gotoAndStop((panel.mcaltimeter.currentFrame - 1));
};
};
if (panel.mcspeedometer.currentFrame < curspeed){
panel.mcspeedometer.gotoAndStop((panel.mcspeedometer.currentFrame + 1));
} else {
if (panel.mcspeedometer.currentFrame > curspeed){
panel.mcspeedometer.gotoAndStop((panel.mcspeedometer.currentFrame - 1));
};
};
panel.distancetext.text = (curdistance.toFixed(1) + " m");
}
public function doWingFlap(){
var fflap:*;
if (((((!(rocketactivated)) && (!(dinoevent)))) && ((wingflapcount > 0)))){
wingflapcount--;
panel.mcstamina.gotoAndStop((10 - wingflapcount));
panel.mcstamina.scaleX = 1.2;
panel.mcstamina.scaleY = 1.2;
tweenmgr.register(panel.mcstamina, {live:10, ease:"easenone", scalex:1, scaley:1});
fflap = new ForceVector((ftotal.r * wingflapfactor), -135);
fflap.add(0, 0, (-50 * wingflapfactor), (-50 * wingflapfactor));
ftotal = fflap;
setSquirrelSkin("boost");
usewingflap = true;
};
}
private function explodeFrozenSquirrelSkin(){
var i:*;
i = 0;
while (i < frozenpart.length) {
if (frozenpart[i].y > 0){
if (frozendy[i] > 0){
frozendy[i] = (frozendy[i] * -0.5);
frozendx[i] = (frozendx[i] * -0.5);
frozendr[i] = ((Math.random() * 10) - 5);
};
};
frozenpart[i].x = (frozenpart[i].x + frozendx[i]);
frozenpart[i].y = (frozenpart[i].y + frozendy[i]);
frozenpart[i].r = (frozenpart[i].r + frozendr[i]);
frozendy[i] = (frozendy[i] + 1);
i++;
};
}
private function setSquirrelSkin(_pose){
if (((squirrelskinpose[_pose]) && (!((squirrelskin.name == _pose))))){
squirrelskinpose[_pose].x = squirrelskin.x;
squirrelskinpose[_pose].y = squirrelskin.y;
this.removeChild(squirrelskin);
squirrelskin = squirrelskinpose[_pose];
this.addChild(squirrelskin);
squirrelskin.gotoAndPlay(1);
if ((((squirrelskin.name == "meteor")) || ((squirrelskin.name == "frozen")))){
squirrelskin.rotation = -60;
};
};
}
}
}//package
Section 579
//ScrollContainer (ScrollContainer)
package {
import flash.display.*;
public class ScrollContainer extends MovieClip {
public var borderleft:Number;// = -100
public var borderright:Number;// = 740
public var fixed:Boolean;// = true
public var looping:Boolean;// = true
public function ScrollContainer(){
borderleft = -100;
borderright = 740;
looping = true;
fixed = true;
super();
}
public function setLoop(_loop=true, _left=-100, _right=740, _fixed=true){
looping = _loop;
borderleft = _left;
borderright = _right;
fixed = _fixed;
}
public function updateMove(dx, dy){
var i:*;
var obj:*;
if (fixed){
i = (this.numChildren - 1);
while (i > -1) {
obj = this.getChildAt(i);
obj.x = (obj.x + (dx + obj.dx));
obj.y = (obj.y + (dy + obj.dy));
obj = this.getChildAt(i);
if (obj.x > borderright){
if (looping){
obj.x = borderleft;
} else {
this.removeChild(obj);
};
};
if (obj.x < borderleft){
if (looping){
obj.x = borderright;
} else {
this.removeChild(obj);
};
};
i--;
};
} else {
obj = [this.getChildAt(0), this.getChildAt(1)];
obj[1].x = (obj[1].x + (dx + obj.dx));
obj[0].x = ((obj[1].x - obj[0].width) + 1);
if (obj[1].x > borderright){
obj[1].x = (obj[0].x - 1);
obj[0].x = (obj[0].x - obj[0].width);
} else {
if (obj[1].x < 0){
obj[1].x = (obj[1].width - 1);
obj[0].x = (obj[0].x - obj[0].width);
};
};
};
}
public function moveClip(dx=0, dy=0){
update(dx, dy);
}
public function update(dx, dy){
var i:*;
var obj:*;
if (fixed){
i = (this.numChildren - 1);
while (i > -1) {
obj = this.getChildAt(i);
obj.x = (obj.x + dx);
obj.y = (obj.y + dy);
obj = this.getChildAt(i);
if (obj.x > borderright){
if (looping){
obj.x = borderleft;
} else {
this.removeChild(obj);
};
} else {
if (obj.x < borderleft){
if (looping){
obj.x = borderright;
} else {
this.removeChild(obj);
};
};
};
i--;
};
} else {
obj = [this.getChildAt(0), this.getChildAt(1)];
obj[1].x = (obj[1].x + dx);
obj[0].x = ((obj[1].x - obj[0].width) + 1);
if (obj[1].x > borderright){
obj[1].x = (obj[0].x - 1);
obj[0].x = (obj[1].x - obj[0].width);
} else {
if (obj[1].x < 0){
obj[1].x = (obj[1].width - 1);
obj[0].x = (obj[1].x - obj[0].width);
};
};
};
}
}
}//package
Section 580
//sfx_angrycaveman (sfx_angrycaveman)
package {
public dynamic class sfx_angrycaveman extends BaseSound {
public function sfx_angrycaveman(){
super();
}
}
}//package
Section 581
//sfx_beingeaten (sfx_beingeaten)
package {
public dynamic class sfx_beingeaten extends BaseSound {
public function sfx_beingeaten(){
super();
}
}
}//package
Section 582
//sfx_bigchange (sfx_bigchange)
package {
public dynamic class sfx_bigchange extends BaseSound {
public function sfx_bigchange(){
super();
}
}
}//package
Section 583
//sfx_bigexplosion (sfx_bigexplosion)
package {
public dynamic class sfx_bigexplosion extends BaseSound {
public function sfx_bigexplosion(){
super();
}
}
}//package
Section 584
//sfx_blizzardhit (sfx_blizzardhit)
package {
public dynamic class sfx_blizzardhit extends BaseSound {
public function sfx_blizzardhit(){
super();
}
}
}//package
Section 585
//sfx_bounce (sfx_bounce)
package {
public dynamic class sfx_bounce extends BaseSound {
public function sfx_bounce(){
super();
}
}
}//package
Section 586
//sfx_eaten1 (sfx_eaten1)
package {
public dynamic class sfx_eaten1 extends BaseSound {
public function sfx_eaten1(){
super();
}
}
}//package
Section 587
//sfx_eaten2 (sfx_eaten2)
package {
public dynamic class sfx_eaten2 extends BaseSound {
public function sfx_eaten2(){
super();
}
}
}//package
Section 588
//sfx_gravitymachine (sfx_gravitymachine)
package {
public dynamic class sfx_gravitymachine extends BaseSound {
public function sfx_gravitymachine(){
super();
}
}
}//package
Section 589
//sfx_hitbycaveman (sfx_hitbycaveman)
package {
public dynamic class sfx_hitbycaveman extends BaseSound {
public function sfx_hitbycaveman(){
super();
}
}
}//package
Section 590
//sfx_icebreak (sfx_icebreak)
package {
public dynamic class sfx_icebreak extends BaseSound {
public function sfx_icebreak(){
super();
}
}
}//package
Section 591
//sfx_launchermove (sfx_launchermove)
package {
public dynamic class sfx_launchermove extends BaseSound {
public function sfx_launchermove(){
super();
}
}
}//package
Section 592
//sfx_launcherrelease (sfx_launcherrelease)
package {
public dynamic class sfx_launcherrelease extends BaseSound {
public function sfx_launcherrelease(){
super();
}
}
}//package
Section 593
//sfx_mammothrelease (sfx_mammothrelease)
package {
public dynamic class sfx_mammothrelease extends BaseSound {
public function sfx_mammothrelease(){
super();
}
}
}//package
Section 594
//sfx_menuclick (sfx_menuclick)
package {
public dynamic class sfx_menuclick extends BaseSound {
public function sfx_menuclick(){
super();
}
}
}//package
Section 595
//sfx_roarr (sfx_roarr)
package {
public dynamic class sfx_roarr extends BaseSound {
public function sfx_roarr(){
super();
}
}
}//package
Section 596
//sfx_rocket1 (sfx_rocket1)
package {
public dynamic class sfx_rocket1 extends BaseSound {
public function sfx_rocket1(){
super();
}
}
}//package
Section 597
//sfx_rocket2 (sfx_rocket2)
package {
public dynamic class sfx_rocket2 extends BaseSound {
public function sfx_rocket2(){
super();
}
}
}//package
Section 598
//sfx_rocket3 (sfx_rocket3)
package {
public dynamic class sfx_rocket3 extends BaseSound {
public function sfx_rocket3(){
super();
}
}
}//package
Section 599
//sfx_smallchange (sfx_smallchange)
package {
public dynamic class sfx_smallchange extends BaseSound {
public function sfx_smallchange(){
super();
}
}
}//package
Section 600
//sfx_smallexplosion (sfx_smallexplosion)
package {
public dynamic class sfx_smallexplosion extends BaseSound {
public function sfx_smallexplosion(){
super();
}
}
}//package
Section 601
//SoundManager (SoundManager)
package {
public class SoundManager {
private var tracing:Boolean;// = false
private var bgmdefaultvolume:Array;
private var sfxdefault:Array;
public var sfxvolume:Number;// = 1
public var bgmvolume:Number;// = 1
private var sfxdefaultvolume:Array;
private var usingsfxarray:Boolean;
private var bgmdefault:Array;
private var sndfx:Array;
private var sndbgm:BaseSound;
public function SoundManager(_usearray=false){
tracing = false;
bgmvolume = 1;
sfxvolume = 1;
super();
if (tracing){
trace("Sound Manager:$init: Use array : ", _usearray);
};
usingsfxarray = _usearray;
bgmdefault = new Array();
bgmdefaultvolume = new Array();
sfxdefault = new Array();
sfxdefaultvolume = new Array();
sndfx = new Array();
bgmdefault["leveltheme"] = new bgm_leveltheme2();
bgmdefaultvolume["leveltheme"] = 1;
bgmdefault["maintitle"] = new bgm_maintitle();
bgmdefaultvolume["maintitle"] = 1;
if (usingsfxarray){
sfxdefault["angrycaveman"] = new sfx_angrycaveman();
sfxdefault["beingeaten"] = new sfx_beingeaten();
sfxdefault["bigchange"] = new sfx_bigchange();
sfxdefault["bigexplosion"] = new sfx_bigexplosion();
sfxdefault["blizzardhit"] = new sfx_blizzardhit();
sfxdefault["bounce"] = new sfx_bounce();
sfxdefault["eaten1"] = new sfx_eaten1();
sfxdefault["eaten2"] = new sfx_eaten2();
sfxdefault["gravitymachine"] = new sfx_gravitymachine();
sfxdefault["hitbycaveman"] = new sfx_hitbycaveman();
sfxdefault["icebreak"] = new sfx_icebreak();
sfxdefault["launchermove"] = new sfx_launchermove();
sfxdefault["launcherrelease"] = new sfx_launcherrelease();
sfxdefault["mammothrelease"] = new sfx_mammothrelease();
sfxdefault["menuclick"] = new sfx_menuclick();
sfxdefault["roarr"] = new sfx_roarr();
sfxdefault["rocket1"] = new sfx_rocket1();
sfxdefault["rocket2"] = new sfx_rocket2();
sfxdefault["rocket3"] = new sfx_rocket3();
sfxdefault["smallchange"] = new sfx_smallchange();
sfxdefault["smallexplosion"] = new sfx_smallexplosion();
};
sfxdefaultvolume["angrycaveman"] = 1;
sfxdefaultvolume["beingeaten"] = 1;
sfxdefaultvolume["bigchange"] = 1;
sfxdefaultvolume["bigexplosion"] = 1;
sfxdefaultvolume["blizzardhit"] = 1;
sfxdefaultvolume["bounce"] = 1;
sfxdefaultvolume["eaten1"] = 1;
sfxdefaultvolume["eaten2"] = 1;
sfxdefaultvolume["gravitymachine"] = 1;
sfxdefaultvolume["hitbycaveman"] = 0.5;
sfxdefaultvolume["icebreak"] = 0.5;
sfxdefaultvolume["launchermove"] = 1;
sfxdefaultvolume["launcherrelease"] = 1;
sfxdefaultvolume["mammothrelease"] = 1;
sfxdefaultvolume["menuclick"] = 1;
sfxdefaultvolume["roarr"] = 1;
sfxdefaultvolume["rocket1"] = 1;
sfxdefaultvolume["rocket2"] = 0.5;
sfxdefaultvolume["rocket3"] = 1;
sfxdefaultvolume["smallchange"] = 1;
sfxdefaultvolume["smallexplosion"] = 1;
}
public function adjustBGM(_val=1){
bgmvolume = _val;
refreshVolume();
if (tracing){
trace("Sound Manager:adjustBGM: Adjusted to : ", bgmvolume);
};
}
private function startSFX(_snd, _vol=1){
var i:*;
i = 0;
if (sndfx.length < 20){
_snd.playSound();
_snd.setVolume((_vol * sfxvolume));
sndfx.push(_snd);
} else {
i = (sndfx.length - 1);
while (i >= 0) {
if (!sndfx[i].sndPlaying){
sndfx[i].stopSound();
sndfx.splice(i, 1);
};
i--;
};
if (_snd){
_snd.playSound();
_snd.setVolume((_vol * sfxvolume));
sndfx.push(_snd);
};
};
}
public function adjustSFX(_val=1){
sfxvolume = _val;
if (tracing){
trace("Sound Manager:adjustSFX: Adjusted to : ", sfxvolume);
};
}
public function refreshVolume(){
if (sndbgm){
sndbgm.setVolume(bgmvolume);
};
}
private function startSFX2(_snd, _vol=1){
_snd.playSound();
_snd.setVolume((_vol * sfxvolume));
}
public function stopSFX(){
var i:*;
var j:*;
if (usingsfxarray){
i = (sndfx.length - 1);
while (i >= 0) {
if (sndfx[i].sndPlaying){
sndfx[i].stopSound();
};
sndfx.splice(i, 1);
i--;
};
} else {
for each (j in sfxdefault) {
if (j.sndPlaying){
j.stopSound();
};
};
};
}
private function createSFX(_param):BaseSound{
var rnd:*;
switch (_param){
case "angrycaveman":
return (new sfx_angrycaveman());
case "beingeaten":
rnd = Math.random();
if (rnd < 0.3){
return (new sfx_beingeaten());
};
if (rnd < 0.3){
return (new sfx_eaten1());
};
return (new sfx_eaten2());
case "bigchange":
return (new sfx_bigchange());
case "bigexplosion":
return (new sfx_bigexplosion());
case "blizzardhit":
return (new sfx_blizzardhit());
case "bounce":
return (new sfx_bounce());
case "gravitymachine":
return (new sfx_gravitymachine());
case "hitbycaveman":
return (new sfx_hitbycaveman());
case "icebreak":
return (new sfx_icebreak());
case "launchermove":
return (new sfx_launchermove());
case "launcherrelease":
return (new sfx_launcherrelease());
case "mammothrelease":
return (new sfx_mammothrelease());
case "menuclick":
return (new sfx_menuclick());
case "roarr":
return (new sfx_roarr());
case "rocket1":
return (new sfx_rocket1());
case "rocket2":
return (new sfx_rocket2());
case "rocket3":
return (new sfx_rocket3());
case "smallchange":
return (new sfx_smallchange());
case "smallexplosion":
return (new sfx_smallexplosion());
};
return (null);
}
public function stopBGM(){
if (sndbgm){
if (tracing){
trace("Sound Manager:stopBGM: BGM stopped");
};
sndbgm.stopSound();
sndbgm = null;
};
}
public function playSFX(_param:String="", _multisound:Boolean=true){
var res:*;
var rand:*;
var played:*;
var i:*;
rand = Math.random();
played = false;
i = 0;
if (((usingsfxarray) || (!(_multisound)))){
if (sfxdefault[_param]){
startSFX2(sfxdefault[_param], sfxdefaultvolume[_param]);
if (tracing){
trace("Sound Manager:playSFX: Playing sfx : ", _param);
};
} else {
if (tracing){
trace("Sound Manager:playSFX: Invalid sfx param : ", _param);
};
};
} else {
if (sfxdefault[_param]){
startSFX(createSFX(_param), sfxdefaultvolume[_param]);
if (tracing){
trace("Sound Manager:playSFX: Playing sfx : ", _param);
};
} else {
if (tracing){
trace("Sound Manager:playSFX: Invalid sfx param : ", _param);
};
};
};
}
public function playBGM(_param:String=""){
if (bgmdefault[_param]){
if (sndbgm != bgmdefault[_param]){
stopBGM();
sndbgm = bgmdefault[_param];
sndbgm.playSoundLoop();
sndbgm.setVolume((bgmvolume * bgmdefaultvolume[_param]));
if (tracing){
trace("Sound Manager:playBGM: play bgm : ", _param);
};
} else {
sndbgm.setVolume((1 * bgmvolume));
if (tracing){
trace("Sound Manager:playBGM: play bgm : ", _param);
};
};
} else {
if (tracing){
trace("Sound Manager:playBGM: Invalid bgm param : ", _param);
};
};
}
}
}//package
Section 602
//Starfield (Starfield)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class Starfield extends Sprite {
private var offs:Array;
public var count:uint;
private var bd:BitmapData;
public var _debug:Boolean;
public var bdSize:uint;
public var perlinNoiseSize:Number;
public var h:Number;
public var w:Number;
public var minSize:Number;
public var maxSize:Number;
private var bmp:Bitmap;
public var holder:Sprite;
public var speedX:Number;
public var speedY:Number;
public function Starfield(pw:Number, ph:Number, pcount:uint, pminSize:Number=0.1, pmaxSize:Number=1.5, pperlinNoiseSize:Number=2, pspeedX:Number=0.1, pspeedY:Number=0.05, pbdSize:uint=30){
offs = [new Point(0, 0), new Point(0, 0)];
super();
holder = new Sprite();
w = pw;
h = ph;
count = pcount;
minSize = pminSize;
maxSize = pmaxSize;
bdSize = pbdSize;
speedX = pspeedX;
speedY = pspeedY;
perlinNoiseSize = pperlinNoiseSize;
bd = new BitmapData(30, 30, false);
bmp = new Bitmap(bd);
bmp.blendMode = BlendMode.SCREEN;
addChild(bmp);
generateField();
addChild(holder);
bmp.mask = holder;
bmp.width = w;
bmp.height = h;
}
public function twinkle():void{
offs[1].x = (offs[1].x + speedX);
offs[1].y = (offs[1].y + speedY);
bd.perlinNoise(perlinNoiseSize, perlinNoiseSize, 2, 10, false, true, 7, true, offs);
}
public function get debug():Boolean{
return (_debug);
}
public function addStar():void{
holder.graphics.beginFill(0xFFFFFF);
holder.graphics.drawCircle((Math.random() * w), (Math.random() * h), ((Math.random() * (maxSize - minSize)) + minSize));
holder.graphics.endFill();
}
public function set debug(arg:Boolean):void{
if (arg){
bmp.mask = null;
} else {
bmp.mask = holder;
};
_debug = arg;
}
public function startTwinkle():void{
addEventListener(Event.ENTER_FRAME, onframe, false, 0, true);
}
public function generateField():void{
var i:uint;
i = 0;
while (i < count) {
addStar();
i++;
};
}
public function stopTwinkle():void{
removeEventListener(Event.ENTER_FRAME, onframe);
}
private function onframe(event:Event):void{
twinkle();
}
}
}//package
Section 603
//StatisticsManager (StatisticsManager)
package {
import flash.events.*;
import flash.display.*;
public class StatisticsManager extends MovieClip {
private var maintimeline;
private var panel;
private var admgr;
private var datamgr;
private var resetdlg;
private var btnmgr;
private var dialog;
private var notetext;
private var overidx;
private var soundmgr;
private var highscoredlg;
private var buttons;
private var tweenmgr;
private var ctrlmgr;
private var overtimer;
private var note;
private var upgradelamps;
public function StatisticsManager(_mtl){
var i:*;
super();
maintimeline = _mtl;
tweenmgr = maintimeline.tweenmgr;
soundmgr = maintimeline.soundmgr;
ctrlmgr = maintimeline.ctrlmgr;
admgr = maintimeline.admgr;
datamgr = maintimeline.datamgr;
resetdlg = new mc_reset_dialog();
highscoredlg = new mc_highscore_dialog();
highscoredlg.namewarning.gotoAndStop(highscoredlg.namewarning.totalFrames);
highscoredlg.alreadywarning.gotoAndStop(highscoredlg.alreadywarning.totalFrames);
panel = new mc_statspage();
this.addChild(panel);
dialog = [panel.mcupgrade, panel.mcstatistics];
upgradelamps = [[panel.mcupgrade.mcupgradelamp01, panel.mcupgrade.mcupgradelamp02, panel.mcupgrade.mcupgradelamp03], [panel.mcupgrade.mcupgradelamp11, panel.mcupgrade.mcupgradelamp12, panel.mcupgrade.mcupgradelamp13], [panel.mcupgrade.mcupgradelamp21, panel.mcupgrade.mcupgradelamp22, panel.mcupgrade.mcupgradelamp23], [panel.mcupgrade.mcupgradelamp31, panel.mcupgrade.mcupgradelamp32, panel.mcupgrade.mcupgradelamp33], [panel.mcupgrade.mcupgradelamp41, panel.mcupgrade.mcupgradelamp42, panel.mcupgrade.mcupgradelamp43], [panel.mcupgrade.mcupgradelamp51, panel.mcupgrade.mcupgradelamp52, panel.mcupgrade.mcupgradelamp53]];
buttons = [dialog[0].btupgradelauncher, dialog[0].btupgradeparachute, dialog[0].btupgraderocket, dialog[0].btupgradepatagium, dialog[0].btupgradestamina, dialog[0].btupgraderadar, dialog[0].btupgrademoney, dialog[0].btsponsor, dialog[0].btgostatistics, dialog[0].btnextcancel, dialog[1].btexit, dialog[1].btresetdata, dialog[1].btsfx, dialog[1].btbgm, dialog[1].btgoupgrade, dialog[1].btnextcancel, dialog[1].btsponsor, dialog[1].btsubmit];
btnmgr = new ButtonManager(buttons, "Button");
i = 0;
while (i < buttons.length) {
buttons[i].scaleX = 1;
buttons[i].scaleY = 1;
btnmgr.registerFunction(i, this, {onover:onOver, onout:onOut});
i++;
};
btnmgr.registerFunction(0, this, {onselect:doUpgrade});
btnmgr.registerFunction(1, this, {onselect:doUpgrade});
btnmgr.registerFunction(2, this, {onselect:doUpgrade});
btnmgr.registerFunction(3, this, {onselect:doUpgrade});
btnmgr.registerFunction(4, this, {onselect:doUpgrade});
btnmgr.registerFunction(5, this, {onselect:doUpgrade});
btnmgr.registerFunction(7, this, {onselect:goSponsor});
btnmgr.registerFunction(8, this, {onselect:goStatistics});
btnmgr.registerFunction(9, this, {onselect:closePage});
btnmgr.registerFunction(10, this, {onselect:goMainMenu});
btnmgr.registerFunction(11, this, {onselect:showResetDialog});
btnmgr.registerFunction(12, this, {onselect:increaseSFX});
btnmgr.registerFunction(13, this, {onselect:increaseBGM});
btnmgr.registerFunction(14, this, {onselect:goUpgrade});
btnmgr.registerFunction(15, this, {onselect:closePage});
btnmgr.registerFunction(16, this, {onselect:goSponsor});
btnmgr.registerFunction(17, this, {onselect:showHighscoreDialog});
overidx = 0;
overtimer = 0;
note = panel.mcnote;
note.x = -500;
note.y = -500;
notetext = ["Upgrade Launcher", "Upgrade Parachute", "Upgrade Rocket", "Upgrade Patagium", "Upgrade Stamina", "Upgrade Radar", "Your Money", "", "", "Close Page", "", "", "Adjust Sound", "Adjust Music", "", "Close Page", "", ""];
setStatisticsText();
refreshUpgradePrices();
refreshUpgradeLamps();
adjustSFXLamp(dialog[1]);
adjustBGMLamp(dialog[1]);
this.addEventListener(Event.ENTER_FRAME, moveClip, false, 0, true);
}
private function increaseSFX(obj=null){
if (soundmgr.sfxvolume < 0.25){
soundmgr.adjustSFX(0.25);
} else {
if (soundmgr.sfxvolume < 0.5){
soundmgr.adjustSFX(0.5);
} else {
if (soundmgr.sfxvolume < 0.75){
soundmgr.adjustSFX(0.75);
} else {
if (soundmgr.sfxvolume < 1){
soundmgr.adjustSFX(1);
} else {
soundmgr.adjustSFX(0);
};
};
};
};
adjustSFXLamp(btnmgr.button[obj].parent);
soundmgr.playSFX("menuclick");
}
private function goSponsor(_btidx){
maintimeline.goSponsor(null);
soundmgr.playSFX("menuclick");
}
public function goUpgrade(idx=0){
panel.x = 0;
soundmgr.playSFX("menuclick");
admgr.getCPMAds(dialog[0].mcadbox, "interlevel");
}
private function doUpgrade(_idx){
var idx:*;
idx = _idx;
datamgr.doUpgrade(idx);
setStatisticsText();
refreshUpgradePrices();
refreshUpgradeLamps();
soundmgr.playSFX("menuclick");
if (datamgr.upgrades[idx] == 3){
if (datamgr.isCompletelyUpgraded()){
datamgr.setAchievement(40);
};
switch (idx){
case 3:
datamgr.setAchievement(34);
break;
case 2:
datamgr.setAchievement(35);
break;
case 1:
datamgr.setAchievement(36);
break;
case 0:
datamgr.setAchievement(37);
break;
case 4:
datamgr.setAchievement(38);
break;
case 5:
datamgr.setAchievement(39);
break;
};
} else {
if (datamgr.upgrades[idx] == 1){
switch (idx){
case 1:
datamgr.showtooltips.push(0);
break;
case 2:
datamgr.showtooltips.push(1);
break;
};
};
};
}
private function setStatisticsText(){
dialog[1].attemptstext.text = (datamgr.launchcount + 1);
dialog[1].achievementstext.text = (datamgr.getAchievementCount() + " / 50");
dialog[1].objectscollectedtext.text = datamgr.totalobjecthit;
dialog[1].bestdistancetext.text = (Math.floor(datamgr.longestdistance) + " ft");
dialog[1].cashtext.text = ("$ " + datamgr.money);
dialog[1].totaldistancetext.text = (Math.floor(datamgr.totaldistance) + " ft");
dialog[1].acorncollectedtext.text = datamgr.totalacorn;
dialog[1].bestheighttext.text = (Math.floor(datamgr.highestlaunch) + " ft");
dialog[1].totalcashtext.text = ("$ " + datamgr.totalmoney);
dialog[1].totalscoretext.text = datamgr.score;
}
public function goStatistics(idx=0){
panel.x = -640;
soundmgr.playSFX("menuclick");
admgr.getCPMAds(dialog[1].mcadbox, "interlevel");
}
private function increaseBGM(obj=null){
if (soundmgr.bgmvolume < 0.25){
soundmgr.adjustBGM(0.25);
} else {
if (soundmgr.bgmvolume < 0.5){
soundmgr.adjustBGM(0.5);
} else {
if (soundmgr.bgmvolume < 0.75){
soundmgr.adjustBGM(0.75);
} else {
if (soundmgr.bgmvolume < 1){
soundmgr.adjustBGM(1);
} else {
soundmgr.adjustBGM(0);
};
};
};
};
adjustBGMLamp(btnmgr.button[obj].parent);
soundmgr.playSFX("menuclick");
}
public function goSubmit(e=null){
if (((!((highscoredlg.usernametext.text == ""))) && (!(datamgr.alreadysubmit)))){
datamgr.saveGameNinja(highscoredlg.usernametext.text);
hideHighscoreDialog();
} else {
if (highscoredlg.usernametext.text == ""){
highscoredlg.namewarning.gotoAndPlay(1);
} else {
if (datamgr.alreadysubmit){
highscoredlg.alreadywarning.gotoAndPlay(1);
};
};
};
}
private function hideNote(_idx){
note.x = -500;
note.y = -500;
}
private function onOver(_idx){
tweenmgr.register(btnmgr.button[_idx], {live:5, ease:"easeoutcubic", x:btnmgr.button[_idx].x, y:btnmgr.button[_idx].y, alpha:btnmgr.button[_idx].alpha, rotation:btnmgr.button[_idx].rotation, scalex:1.2, scaley:1.2});
overidx = _idx;
overtimer = 5;
}
private function adjustSFXLamp(_lampparent){
_lampparent.mcsoundlamp01.gotoAndStop(1);
_lampparent.mcsoundlamp02.gotoAndStop(1);
_lampparent.mcsoundlamp03.gotoAndStop(1);
_lampparent.mcsoundlamp04.gotoAndStop(1);
if (soundmgr.sfxvolume > 0){
_lampparent.mcsoundlamp01.gotoAndStop(2);
};
if (soundmgr.sfxvolume > 0.25){
_lampparent.mcsoundlamp02.gotoAndStop(2);
};
if (soundmgr.sfxvolume > 0.5){
_lampparent.mcsoundlamp03.gotoAndStop(2);
};
if (soundmgr.sfxvolume > 0.75){
_lampparent.mcsoundlamp04.gotoAndStop(2);
};
}
private function adjustBGMLamp(_lampparent){
_lampparent.mcmusiclamp01.gotoAndStop(1);
_lampparent.mcmusiclamp02.gotoAndStop(1);
_lampparent.mcmusiclamp03.gotoAndStop(1);
_lampparent.mcmusiclamp04.gotoAndStop(1);
if (soundmgr.bgmvolume > 0){
_lampparent.mcmusiclamp01.gotoAndStop(2);
};
if (soundmgr.bgmvolume > 0.25){
_lampparent.mcmusiclamp02.gotoAndStop(2);
};
if (soundmgr.bgmvolume > 0.5){
_lampparent.mcmusiclamp03.gotoAndStop(2);
};
if (soundmgr.bgmvolume > 0.75){
_lampparent.mcmusiclamp04.gotoAndStop(2);
};
}
public function goHighscore(e=null){
soundmgr.playSFX("menuclick");
maintimeline.goHighscore(null);
hideHighscoreDialog();
}
private function refreshUpgradePrices(){
dialog[0].upgrademoney.text = ("$ " + datamgr.money);
dialog[0].launcherprice.text = ("$ " + datamgr.upgradeprice[0][(datamgr.upgrades[0] + 1)]);
dialog[0].parachuteprice.text = ("$ " + datamgr.upgradeprice[1][(datamgr.upgrades[1] + 1)]);
dialog[0].rocketprice.text = ("$ " + datamgr.upgradeprice[2][(datamgr.upgrades[2] + 1)]);
dialog[0].patagiumprice.text = ("$ " + datamgr.upgradeprice[3][(datamgr.upgrades[3] + 1)]);
dialog[0].staminaprice.text = ("$ " + datamgr.upgradeprice[4][(datamgr.upgrades[4] + 1)]);
dialog[0].radarprice.text = ("$ " + datamgr.upgradeprice[5][(datamgr.upgrades[5] + 1)]);
}
private function refreshUpgradeLamps(){
var i:*;
var j:*;
i = 0;
while (i < datamgr.upgrades.length) {
j = 0;
while (j <= (datamgr.upgrades[i] - 1)) {
upgradelamps[i][j].gotoAndStop(2);
j++;
};
i++;
};
}
private function showResetDialog(e=null){
this.addChild(resetdlg);
resetdlg.btok.addEventListener(MouseEvent.CLICK, resetData, false, 0, true);
resetdlg.btcancel.addEventListener(MouseEvent.CLICK, hideResetDialog, false, 0, true);
}
private function closePage(idx){
maintimeline.gotoAndPlay("gamepage");
soundmgr.playSFX("menuclick");
}
private function resetData(e){
soundmgr.playSFX("menuclick");
hideResetDialog();
setStatisticsText();
refreshUpgradePrices();
refreshUpgradeLamps();
if (!datamgr.achievements[33]){
datamgr.setAchievement(33);
} else {
datamgr.resetData();
refreshUpgradePrices();
refreshUpgradePrices();
resetUpgradeLamps();
datamgr.setAchievement(33);
};
}
private function showNote(_idx){
var xx:*;
var yy:*;
if (notetext[_idx] != ""){
note.scaleX = 1;
note.scaleY = 1;
xx = ((0 - (note.width / 2)) - (buttons[_idx].width / 2));
yy = ((buttons[_idx].y)<240) ? ((note.height / 2) + (buttons[_idx].height / 2)) : ((0 - (note.height / 2)) - (buttons[_idx].height / 2));
note.txnote.text = notetext[_idx];
note.x = (buttons[_idx].x - (buttons[_idx].width / 2));
note.y = buttons[_idx].y;
note.scaleX = 0.1;
note.scaleY = 0.1;
tweenmgr.register(note, {live:5, ease:"easeoutcubic", x:(buttons[_idx].x + xx), y:(buttons[_idx].y + yy), alpha:1, rotation:0, scalex:1, scaley:1});
};
}
private function moveClip(e){
if (overtimer > 0){
overtimer--;
if (overtimer == 0){
showNote(overidx);
};
};
}
private function resetUpgradeLamps(){
var i:*;
var j:*;
i = 0;
while (i < upgradelamps.length) {
j = 0;
while (j < upgradelamps[i].length) {
upgradelamps[i][j].gotoAndStop(1);
j++;
};
i++;
};
}
private function goMainMenu(idx){
maintimeline.gotoAndStop("coverpage");
soundmgr.playSFX("menuclick");
}
private function hideResetDialog(e=null){
this.removeChild(resetdlg);
resetdlg.btok.removeEventListener(MouseEvent.CLICK, resetData);
resetdlg.btcancel.removeEventListener(MouseEvent.CLICK, hideResetDialog);
}
private function showHighscoreDialog(e=null){
this.addChild(highscoredlg);
maintimeline.stage.focus = highscoredlg.usernametext;
highscoredlg.btsubmit.addEventListener(MouseEvent.CLICK, goSubmit, false, 0, true);
highscoredlg.btview.addEventListener(MouseEvent.CLICK, goHighscore, false, 0, true);
highscoredlg.btclose.addEventListener(MouseEvent.CLICK, hideHighscoreDialog, false, 0, true);
}
private function onOut(_idx){
tweenmgr.register(btnmgr.button[_idx], {live:5, ease:"easeoutcubic", x:btnmgr.button[_idx].x, y:btnmgr.button[_idx].y, alpha:btnmgr.button[_idx].alpha, rotation:btnmgr.button[_idx].rotation, scalex:1, scaley:1});
overidx = 0;
overtimer = 0;
hideNote(_idx);
}
private function hideHighscoreDialog(e=null){
this.removeChild(highscoredlg);
highscoredlg.btsubmit.removeEventListener(MouseEvent.CLICK, goSubmit);
highscoredlg.btview.removeEventListener(MouseEvent.CLICK, goHighscore);
highscoredlg.btclose.removeEventListener(MouseEvent.CLICK, hideHighscoreDialog);
}
}
}//package
Section 604
//TutorialContainer (TutorialContainer)
package {
import flash.events.*;
import flash.display.*;
public class TutorialContainer extends MovieClip {
private var maintimeline;
private var skin;
private var soundmgr;
private var tweenmgr;
private var holdtimer;
private var viewtime;// = 900
public function TutorialContainer(_mtl){
viewtime = 900;
super();
maintimeline = _mtl;
tweenmgr = maintimeline.tweenmgr;
soundmgr = maintimeline.soundmgr;
skin = new mc_tutorial();
this.addChild(skin);
this.addEventListener(Event.ENTER_FRAME, moveClip, false, 0, true);
skin.addEventListener(MouseEvent.CLICK, skipTimer, false, 0, true);
holdtimer = viewtime;
}
private function skipTimer(e=null){
if (holdtimer > 0){
soundmgr.playSFX("menuclick");
};
if (skin.x > -10){
holdtimer = viewtime;
tweenmgr.register(skin, {live:15, ease:"easenone", x:-640, y:0, alpha:1, rotation:0, scalex:1, scaley:1});
} else {
if (skin.x < -10){
this.removeEventListener(Event.ENTER_FRAME, moveClip);
skin.removeEventListener(MouseEvent.CLICK, skipTimer);
maintimeline.gotoAndPlay("gamepage");
};
};
}
private function moveClip(e){
if (holdtimer > 0){
holdtimer--;
if (holdtimer == 0){
skipTimer();
};
};
}
}
}//package
Section 605
//TweenEquations (TweenEquations)
package {
public class TweenEquations {
public static var equations:Array = new Array();
public function TweenEquations(){
super();
trace("TweenEquations is a static class and should not be instantiated.");
}
public static function easeOutBounce(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
t = (t / d);
if (t < (1 / 2.75)){
return (((c * ((7.5625 * t) * t)) + b));
};
if (t < (2 / 2.75)){
t = (t - (1.5 / 2.75));
return (((c * (((7.5625 * t) * t) + 0.75)) + b));
};
if (t < (2.5 / 2.75)){
t = (t - (2.25 / 2.75));
return (((c * (((7.5625 * t) * t) + 0.9375)) + b));
};
t = (t - (2.625 / 2.75));
return (((c * (((7.5625 * t) * t) + 0.984375)) + b));
}
public static function easeInOutElastic(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
var p:Number;
var s:Number;
var a:Number;
if (t == 0){
return (b);
};
t = (t / (d / 2));
if (t == 2){
return ((b + c));
};
p = (((!(Boolean(p_params))) || (isNaN(p_params.period)))) ? (d * (0.3 * 1.5)) : p_params.period;
a = (((!(Boolean(p_params))) || (isNaN(p_params.amplitude)))) ? 0 : p_params.amplitude;
if (((!(Boolean(a))) || ((a < Math.abs(c))))){
a = c;
s = (p / 4);
} else {
s = ((p / (2 * Math.PI)) * Math.asin((c / a)));
};
if (t < 1){
--t;
return (((-0.5 * ((a * Math.pow(2, (10 * t))) * Math.sin(((((t * d) - s) * (2 * Math.PI)) / p)))) + b));
};
--t;
return ((((((a * Math.pow(2, (-10 * t))) * Math.sin(((((t * d) - s) * (2 * Math.PI)) / p))) * 0.5) + c) + b));
}
public static function easeInOutQuad(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
t = (t / (d / 2));
if (t < 1){
return (((((c / 2) * t) * t) + b));
};
--t;
return ((((-(c) / 2) * ((t * (t - 2)) - 1)) + b));
}
public static function easeInOutBounce(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
if (t < (d / 2)){
return (((easeInBounce((t * 2), 0, c, d) * 0.5) + b));
};
return ((((easeOutBounce(((t * 2) - d), 0, c, d) * 0.5) + (c * 0.5)) + b));
}
public static function easeInOutBack(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
var s:Number;
s = (((!(Boolean(p_params))) || (isNaN(p_params.overshoot)))) ? 1.70158 : p_params.overshoot;
t = (t / (d / 2));
if (t < 1){
s = (s * 1.525);
return ((((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b));
};
t = (t - 2);
s = (s * 1.525);
return ((((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b));
}
public static function easeOutInCubic(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
if (t < (d / 2)){
return (easeOutCubic((t * 2), b, (c / 2), d, p_params));
};
return (easeInCubic(((t * 2) - d), (b + (c / 2)), (c / 2), d, p_params));
}
public static function easeNone(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
return ((((c * t) / d) + b));
}
public static function easeOutBack(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
var s:Number;
s = (((!(Boolean(p_params))) || (isNaN(p_params.overshoot)))) ? 1.70158 : p_params.overshoot;
t = ((t / d) - 1);
return (((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b));
}
public static function easeInOutSine(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
return ((((-(c) / 2) * (Math.cos(((Math.PI * t) / d)) - 1)) + b));
}
public static function easeInBack(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
var s:Number;
s = (((!(Boolean(p_params))) || (isNaN(p_params.overshoot)))) ? 1.70158 : p_params.overshoot;
t = (t / d);
return (((((c * t) * t) * (((s + 1) * t) - s)) + b));
}
public static function easeInQuart(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
t = (t / d);
return ((((((c * t) * t) * t) * t) + b));
}
public static function easeOutInQuint(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
if (t < (d / 2)){
return (easeOutQuint((t * 2), b, (c / 2), d, p_params));
};
return (easeInQuint(((t * 2) - d), (b + (c / 2)), (c / 2), d, p_params));
}
public static function easeOutInBounce(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
if (t < (d / 2)){
return (easeOutBounce((t * 2), b, (c / 2), d, p_params));
};
return (easeInBounce(((t * 2) - d), (b + (c / 2)), (c / 2), d, p_params));
}
public static function init():void{
equations = new Array();
equations["easenone"] = easeNone;
equations["linear"] = easeNone;
equations["easeinquad"] = easeInQuad;
equations["easeoutquad"] = easeOutQuad;
equations["easeinoutquad"] = easeInOutQuad;
equations["easeoutinquad"] = easeOutInQuad;
equations["easeincubic"] = easeInCubic;
equations["easeoutcubic"] = easeOutCubic;
equations["easeinoutcubic"] = easeInOutCubic;
equations["easeoutincubic"] = easeOutInCubic;
equations["easeinquart"] = easeInQuart;
equations["easeoutquart"] = easeOutQuart;
equations["easeinoutquart"] = easeInOutQuart;
equations["easeoutinquart"] = easeOutInQuart;
equations["easeinquint"] = easeInQuint;
equations["easeoutquint"] = easeOutQuint;
equations["easeinoutquint"] = easeInOutQuint;
equations["easeoutinquint"] = easeOutInQuint;
equations["easeinsine"] = easeInSine;
equations["easeoutsine"] = easeOutSine;
equations["easeinoutsine"] = easeInOutSine;
equations["easeoutinsine"] = easeOutInSine;
equations["easeincirc"] = easeInCirc;
equations["easeoutcirc"] = easeOutCirc;
equations["easeinoutcirc"] = easeInOutCirc;
equations["easeoutincirc"] = easeOutInCirc;
equations["easeinexpo"] = easeInExpo;
equations["easeoutexpo"] = easeOutExpo;
equations["easeinoutexpo"] = easeInOutExpo;
equations["easeoutinexpo"] = easeOutInExpo;
equations["easeinelastic"] = easeInElastic;
equations["easeoutelastic"] = easeOutElastic;
equations["easeinoutelastic"] = easeInOutElastic;
equations["easeoutinelastic"] = easeOutInElastic;
equations["easeinback"] = easeInBack;
equations["easeoutback"] = easeOutBack;
equations["easeinoutback"] = easeInOutBack;
equations["easeoutinback"] = easeOutInBack;
equations["easeinbounce"] = easeInBounce;
equations["easeoutbounce"] = easeOutBounce;
equations["easeinoutbounce"] = easeInOutBounce;
equations["easeoutinbounce"] = easeOutInBounce;
}
public static function easeOutExpo(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
return (((t)==d) ? (b + c) : (((c * 1.001) * (-(Math.pow(2, ((-10 * t) / d))) + 1)) + b));
}
public static function easeOutInBack(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
if (t < (d / 2)){
return (easeOutBack((t * 2), b, (c / 2), d, p_params));
};
return (easeInBack(((t * 2) - d), (b + (c / 2)), (c / 2), d, p_params));
}
public static function easeInExpo(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
return (((t)==0) ? b : (((c * Math.pow(2, (10 * ((t / d) - 1)))) + b) - (c * 0.001)));
}
public static function easeInCubic(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
t = (t / d);
return (((((c * t) * t) * t) + b));
}
public static function easeInQuint(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
t = (t / d);
return (((((((c * t) * t) * t) * t) * t) + b));
}
public static function easeInOutCirc(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
t = (t / (d / 2));
if (t < 1){
return ((((-(c) / 2) * (Math.sqrt((1 - (t * t))) - 1)) + b));
};
t = (t - 2);
return ((((c / 2) * (Math.sqrt((1 - (t * t))) + 1)) + b));
}
public static function easeInQuad(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
t = (t / d);
return ((((c * t) * t) + b));
}
public static function easeInBounce(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
return (((c - easeOutBounce((d - t), 0, c, d)) + b));
}
public static function easeOutInExpo(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
if (t < (d / 2)){
return (easeOutExpo((t * 2), b, (c / 2), d, p_params));
};
return (easeInExpo(((t * 2) - d), (b + (c / 2)), (c / 2), d, p_params));
}
public static function easeOutQuart(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
t = ((t / d) - 1);
return (((-(c) * ((((t * t) * t) * t) - 1)) + b));
}
public static function easeInSine(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
return ((((-(c) * Math.cos(((t / d) * (Math.PI / 2)))) + c) + b));
}
public static function easeInOutQuart(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
t = (t / (d / 2));
if (t < 1){
return (((((((c / 2) * t) * t) * t) * t) + b));
};
t = (t - 2);
return ((((-(c) / 2) * ((((t * t) * t) * t) - 2)) + b));
}
public static function easeOutInElastic(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
if (t < (d / 2)){
return (easeOutElastic((t * 2), b, (c / 2), d, p_params));
};
return (easeInElastic(((t * 2) - d), (b + (c / 2)), (c / 2), d, p_params));
}
public static function easeInElastic(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
var p:Number;
var s:Number;
var a:Number;
if (t == 0){
return (b);
};
t = (t / d);
if (t == 1){
return ((b + c));
};
p = (((!(Boolean(p_params))) || (isNaN(p_params.period)))) ? (d * 0.3) : p_params.period;
a = (((!(Boolean(p_params))) || (isNaN(p_params.amplitude)))) ? 0 : p_params.amplitude;
if (((!(Boolean(a))) || ((a < Math.abs(c))))){
a = c;
s = (p / 4);
} else {
s = ((p / (2 * Math.PI)) * Math.asin((c / a)));
};
--t;
return ((-(((a * Math.pow(2, (10 * t))) * Math.sin(((((t * d) - s) * (2 * Math.PI)) / p)))) + b));
}
public static function easeOutCubic(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
t = ((t / d) - 1);
return (((c * (((t * t) * t) + 1)) + b));
}
public static function easeOutQuint(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
t = ((t / d) - 1);
return (((c * (((((t * t) * t) * t) * t) + 1)) + b));
}
public static function easeOutInQuad(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
if (t < (d / 2)){
return (easeOutQuad((t * 2), b, (c / 2), d, p_params));
};
return (easeInQuad(((t * 2) - d), (b + (c / 2)), (c / 2), d, p_params));
}
public static function easeOutSine(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
return (((c * Math.sin(((t / d) * (Math.PI / 2)))) + b));
}
public static function easeOutQuad(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
t = (t / d);
return ((((-(c) * t) * (t - 2)) + b));
}
public static function easeInOutCubic(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
t = (t / (d / 2));
if (t < 1){
return ((((((c / 2) * t) * t) * t) + b));
};
t = (t - 2);
return ((((c / 2) * (((t * t) * t) + 2)) + b));
}
public static function easeInOutQuint(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
t = (t / (d / 2));
if (t < 1){
return ((((((((c / 2) * t) * t) * t) * t) * t) + b));
};
t = (t - 2);
return ((((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b));
}
public static function easeInCirc(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
t = (t / d);
return (((-(c) * (Math.sqrt((1 - (t * t))) - 1)) + b));
}
public static function easeOutInSine(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
if (t < (d / 2)){
return (easeOutSine((t * 2), b, (c / 2), d, p_params));
};
return (easeInSine(((t * 2) - d), (b + (c / 2)), (c / 2), d, p_params));
}
public static function easeInOutExpo(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
if (t == 0){
return (b);
};
if (t == d){
return ((b + c));
};
t = (t / (d / 2));
if (t < 1){
return (((((c / 2) * Math.pow(2, (10 * (t - 1)))) + b) - (c * 0.0005)));
};
--t;
return (((((c / 2) * 1.0005) * (-(Math.pow(2, (-10 * t))) + 2)) + b));
}
public static function easeOutElastic(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
var p:Number;
var s:Number;
var a:Number;
if (t == 0){
return (b);
};
t = (t / d);
if (t == 1){
return ((b + c));
};
p = (((!(Boolean(p_params))) || (isNaN(p_params.period)))) ? (d * 0.3) : p_params.period;
a = (((!(Boolean(p_params))) || (isNaN(p_params.amplitude)))) ? 0 : p_params.amplitude;
if (((!(Boolean(a))) || ((a < Math.abs(c))))){
a = c;
s = (p / 4);
} else {
s = ((p / (2 * Math.PI)) * Math.asin((c / a)));
};
return (((((a * Math.pow(2, (-10 * t))) * Math.sin(((((t * d) - s) * (2 * Math.PI)) / p))) + c) + b));
}
public static function easeOutCirc(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
t = ((t / d) - 1);
return (((c * Math.sqrt((1 - (t * t)))) + b));
}
public static function easeOutInQuart(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
if (t < (d / 2)){
return (easeOutQuart((t * 2), b, (c / 2), d, p_params));
};
return (easeInQuart(((t * 2) - d), (b + (c / 2)), (c / 2), d, p_params));
}
public static function easeOutInCirc(t:Number, b:Number, c:Number, d:Number, p_params:Object=null):Number{
if (t < (d / 2)){
return (easeOutCirc((t * 2), b, (c / 2), d, p_params));
};
return (easeInCirc(((t * 2) - d), (b + (c / 2)), (c / 2), d, p_params));
}
}
}//package
Section 606
//TweenManager (TweenManager)
package {
import flash.events.*;
import flash.display.*;
public class TweenManager {
public var tweenengine:MovieClip;
public var clip:Array;
public var curlive:Array;
public var clipparams:Array;
public var functions:Array;
public function TweenManager(){
super();
TweenEquations.init();
tweenengine = new MovieClip();
tweenengine.addEventListener(Event.ENTER_FRAME, moveClip, false, 0, true);
clip = new Array();
curlive = new Array();
clipparams = new Array();
functions = new Array();
}
public function register(_mc, _params, _function=null){
var i:*;
i = clip.indexOf(_mc);
if (i > -1){
clip.splice(i, 1);
curlive.splice(i, 1);
clipparams.splice(i, 1);
functions.splice(i, 1);
};
i = clip.length;
clip.push(_mc);
curlive.push(0);
clipparams.push({live:0, ease:"easenone", x:0, y:0, alpha:1, rotation:0, scalex:1, scaley:1, startx:0, starty:0, startalpha:1, startrotation:0, startscalex:1, startscaley:1});
clipparams[i].live = _params.live;
clipparams[i].ease = _params.ease;
clipparams[i].x = _params.x;
clipparams[i].y = _params.y;
clipparams[i].alpha = _params.alpha;
clipparams[i].rotation = _params.rotation;
clipparams[i].scalex = _params.scalex;
clipparams[i].scaley = _params.scaley;
clipparams[i].startx = clip[i].x;
clipparams[i].starty = clip[i].y;
clipparams[i].startalpha = clip[i].alpha;
clipparams[i].startrotation = clip[i].rotation;
clipparams[i].startscalex = clip[i].scaleX;
clipparams[i].startscaley = clip[i].scaleY;
if (((_function) && (_function["scope"]))){
functions.push(_function);
} else {
functions.push({scope:null});
};
}
private function applyFunction(_n, _event){
if (((functions[_n]["scope"]) && (functions[_n][_event]))){
functions[_n][_event].apply(functions[_n]["scope"], [clip[_n]]);
};
}
private function moveClip(e){
var i:*;
var cek:*;
cek = true;
i = (clip.length - 1);
while (i > -1) {
var _local4 = curlive;
var _local5 = i;
var _local6 = (_local4[_local5] + 1);
_local4[_local5] = _local6;
if (curlive[i] <= clipparams[i].live){
if (Math.abs((clipparams[i].x - clip[i].x)) > 1){
cek = false;
clip[i].x = TweenEquations.equations[clipparams[i].ease].apply(clip, [curlive[i], clipparams[i].startx, (clipparams[i].x - clipparams[i].startx), clipparams[i].live]);
};
if (Math.abs((clipparams[i].y - clip[i].y)) > 1){
cek = false;
clip[i].y = TweenEquations.equations[clipparams[i].ease].apply(clip, [curlive[i], clipparams[i].starty, (clipparams[i].y - clipparams[i].starty), clipparams[i].live]);
};
if (Math.abs((clipparams[i].alpha - clip[i].alpha)) > 0.01){
cek = false;
clip[i].alpha = TweenEquations.equations[clipparams[i].ease].apply(clip, [curlive[i], clipparams[i].startalpha, (clipparams[i].alpha - clipparams[i].startalpha), clipparams[i].live]);
};
if (Math.abs((clipparams[i].rotation - clip[i].rotation)) > 1){
cek = false;
clip[i].rotation = TweenEquations.equations[clipparams[i].ease].apply(clip, [curlive[i], clipparams[i].startrotation, (clipparams[i].rotation - clipparams[i].startrotation), clipparams[i].live]);
};
if (Math.abs((clipparams[i].scalex - clip[i].scaleX)) > 0.01){
cek = false;
clip[i].scaleX = TweenEquations.equations[clipparams[i].ease].apply(clip, [curlive[i], clipparams[i].startscalex, (clipparams[i].scalex - clipparams[i].startscalex), clipparams[i].live]);
};
if (Math.abs((clipparams[i].scaley - clip[i].scaleY)) > 0.01){
cek = false;
clip[i].scaleY = TweenEquations.equations[clipparams[i].ease].apply(clip, [curlive[i], clipparams[i].startscaley, (clipparams[i].scaley - clipparams[i].startscaley), clipparams[i].live]);
};
applyFunction(i, "onrefresh");
};
if (((cek) || ((curlive[i] > clipparams[i].live)))){
unregister(i);
};
i--;
};
}
public function clearScreen(_scr){
while (_scr.numChildren > 0) {
_scr.removeChild(_scr.getChildAt(0));
};
}
public function unregister(_n){
var f:*;
var p:*;
var o:*;
f = functions[_n];
p = clipparams[_n];
o = clip[_n];
clip.splice(_n, 1);
curlive.splice(_n, 1);
clipparams.splice(_n, 1);
functions.splice(_n, 1);
if (((f["scope"]) && (f["onfinished"]))){
f["onfinished"].apply(f["scope"], [o]);
};
}
}
}//package