Section 1
//NumberUtilities (ascb.util.NumberUtilities)
package ascb.util {
public class NumberUtilities {
private static var _aUniqueIDs:Array;
public static function random(_arg1:Number, _arg2:Number=0, _arg3:Number=1):Number{
var _local4:Number;
var _local5:Number;
var _local6:Number;
if (_arg1 > _arg2){
_local6 = _arg1;
_arg1 = _arg2;
_arg2 = _local6;
};
_local4 = ((_arg2 - _arg1) + (1 * _arg3));
_local5 = (Math.random() * _local4);
_local5 = (_local5 + _arg1);
return (floor(_local5, _arg3));
}
public static function ceil(_arg1:Number, _arg2:Number=1):Number{
return ((Math.ceil((_arg1 / _arg2)) * _arg2));
}
public static function getInstanceId(_arg1:String):int{
var _local2:String;
var _local3:String;
var _local4:int;
var _local5:int;
var _local6:int;
_local2 = "";
_local3 = "";
_local4 = (_arg1.length - 1);
while (_local4 >= 0) {
if ((((_arg1.charCodeAt(_local4) >= 48)) && ((_arg1.charCodeAt(_local4) <= 57)))){
_local2 = (_local2 + _arg1.charAt(_local4));
} else {
break;
};
_local4--;
};
_local5 = _local2.length;
while (_local5 >= 0) {
_local3 = (_local3 + _local2.charAt(_local5));
_local5--;
};
_local6 = int(_local3);
return (_local6);
}
public static function getUnique():Number{
var _local1:Date;
var _local2:Number;
if (_aUniqueIDs == null){
_aUniqueIDs = new Array();
};
_local1 = new Date();
_local2 = _local1.getTime();
while (!(isUnique(_local2))) {
_local2 = (_local2 + NumberUtilities.random(_local1.getTime(), (2 * _local1.getTime())));
};
_aUniqueIDs.push(_local2);
return (_local2);
}
private static function isUnique(_arg1:Number):Boolean{
var _local2:Number;
_local2 = 0;
while (_local2 < _aUniqueIDs.length) {
if (_aUniqueIDs[_local2] == _arg1){
return (false);
};
_local2++;
};
return (true);
}
public static function floor(_arg1:Number, _arg2:Number=1):Number{
return ((Math.floor((_arg1 / _arg2)) * _arg2));
}
public static function round(_arg1:Number, _arg2:Number=1):Number{
return ((Math.round((_arg1 / _arg2)) * _arg2));
}
}
}//package ascb.util
Section 2
//MD5 (com.adobe.crypto.MD5)
package com.adobe.crypto {
import flash.utils.*;
import com.adobe.utils.*;
public class MD5 {
public static var digest:ByteArray;
private static function ff(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(f, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private static function f(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg2) | (~(_arg1) & _arg3)));
}
private static function g(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg3) | (_arg2 & ~(_arg3))));
}
private static function h(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 ^ _arg2) ^ _arg3));
}
private static function i(_arg1:int, _arg2:int, _arg3:int):int{
return ((_arg2 ^ (_arg1 | ~(_arg3))));
}
private static function transform(_arg1:Function, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):int{
var _local9:int;
_local9 = (((_arg2 + int(_arg1(_arg3, _arg4, _arg5))) + _arg6) + _arg8);
return ((IntUtil.rol(_local9, _arg7) + _arg3));
}
private static function hh(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(h, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
public static function hash(_arg1:String):String{
var _local2:ByteArray;
_local2 = new ByteArray();
_local2.writeUTFBytes(_arg1);
return (hashBinary(_local2));
}
private static function createBlocks(_arg1:ByteArray):Array{
var _local2:Array;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = new Array();
_local3 = (_arg1.length * 8);
_local4 = 0xFF;
_local5 = 0;
while (_local5 < _local3) {
_local2[int((_local5 >> 5))] = (_local2[int((_local5 >> 5))] | ((_arg1[(_local5 / 8)] & _local4) << (_local5 % 32)));
_local5 = (_local5 + 8);
};
_local2[int((_local3 >> 5))] = (_local2[int((_local3 >> 5))] | (128 << (_local3 % 32)));
_local2[int(((((_local3 + 64) >>> 9) << 4) + 14))] = _local3;
return (_local2);
}
public static function hashBinary(_arg1:ByteArray):String{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:Array;
var _local11:int;
var _local12:int;
_local2 = 1732584193;
_local3 = -271733879;
_local4 = -1732584194;
_local5 = 271733878;
_local10 = createBlocks(_arg1);
_local11 = _local10.length;
_local12 = 0;
while (_local12 < _local11) {
_local6 = _local2;
_local7 = _local3;
_local8 = _local4;
_local9 = _local5;
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 0))], 7, -680876936);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 1))], 12, -389564586);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 2))], 17, 606105819);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 3))], 22, -1044525330);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 4))], 7, -176418897);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 5))], 12, 1200080426);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 6))], 17, -1473231341);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 7))], 22, -45705983);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 8))], 7, 1770035416);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 9))], 12, -1958414417);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 10))], 17, -42063);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 11))], 22, -1990404162);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 12))], 7, 1804603682);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 13))], 12, -40341101);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 14))], 17, -1502002290);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 15))], 22, 1236535329);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 1))], 5, -165796510);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 6))], 9, -1069501632);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 11))], 14, 643717713);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 0))], 20, -373897302);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 5))], 5, -701558691);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 10))], 9, 38016083);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 15))], 14, -660478335);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 4))], 20, -405537848);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 9))], 5, 568446438);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 14))], 9, -1019803690);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 3))], 14, -187363961);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 8))], 20, 1163531501);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 13))], 5, -1444681467);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 2))], 9, -51403784);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 7))], 14, 1735328473);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 12))], 20, -1926607734);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 5))], 4, -378558);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 8))], 11, -2022574463);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 11))], 16, 1839030562);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 14))], 23, -35309556);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 1))], 4, -1530992060);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 4))], 11, 1272893353);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 7))], 16, -155497632);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 10))], 23, -1094730640);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 13))], 4, 681279174);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 0))], 11, -358537222);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 3))], 16, -722521979);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 6))], 23, 76029189);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 9))], 4, -640364487);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 12))], 11, -421815835);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 15))], 16, 530742520);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 2))], 23, -995338651);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 0))], 6, -198630844);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 7))], 10, 1126891415);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 14))], 15, -1416354905);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 5))], 21, -57434055);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 12))], 6, 1700485571);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 3))], 10, -1894986606);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 10))], 15, -1051523);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 1))], 21, -2054922799);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 8))], 6, 1873313359);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 15))], 10, -30611744);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 6))], 15, -1560198380);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 13))], 21, 1309151649);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 4))], 6, -145523070);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 11))], 10, -1120210379);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 2))], 15, 718787259);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 9))], 21, -343485551);
_local2 = (_local2 + _local6);
_local3 = (_local3 + _local7);
_local4 = (_local4 + _local8);
_local5 = (_local5 + _local9);
_local12 = (_local12 + 16);
};
digest = new ByteArray();
digest.writeInt(_local2);
digest.writeInt(_local3);
digest.writeInt(_local4);
digest.writeInt(_local5);
digest.position = 0;
return ((((IntUtil.toHex(_local2) + IntUtil.toHex(_local3)) + IntUtil.toHex(_local4)) + IntUtil.toHex(_local5)));
}
private static function gg(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(g, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private static function ii(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(i, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
public static function hashBytes(_arg1:ByteArray):String{
return (hashBinary(_arg1));
}
}
}//package com.adobe.crypto
Section 3
//BitString (com.adobe.images.BitString)
package com.adobe.images {
public class BitString {
public var val:int;// = 0
public var len:int;// = 0
public function BitString(){
len = 0;
val = 0;
super();
}
}
}//package com.adobe.images
Section 4
//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_nrcodes:Array;
private var std_dc_chrominance_values:Array;
private var ZigZag:Array;
private var YDC_HT:Array;
private var bytenew:int;// = 0
private var fdtbl_Y:Array;
private var YAC_HT:Array;
private var std_ac_chrominance_nrcodes:Array;
private var DU:Array;
private var std_ac_luminance_values:Array;
private var UVTable:Array;
private var UDU:Array;
private var YDU: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){
var _local2:int;
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];
YTable = new Array(64);
UVTable = new Array(64);
fdtbl_Y = new Array(64);
fdtbl_UV = new Array(64);
std_dc_luminance_nrcodes = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0];
std_dc_luminance_values = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
std_ac_luminance_nrcodes = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125];
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];
std_dc_chrominance_nrcodes = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0];
std_dc_chrominance_values = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
std_ac_chrominance_nrcodes = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119];
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];
bitcode = new Array(0xFFFF);
category = new Array(0xFFFF);
bytenew = 0;
bytepos = 7;
DU = new Array(64);
YDU = new Array(64);
UDU = new Array(64);
VDU = new Array(64);
super();
if (_arg1 <= 0){
_arg1 = 1;
};
if (_arg1 > 100){
_arg1 = 100;
};
_local2 = 0;
if (_arg1 < 50){
_local2 = int((5000 / _arg1));
} else {
_local2 = int((200 - (_arg1 * 2)));
};
initHuffmanTbl();
initCategoryNumber();
initQuantTables(_local2);
}
private function RGB2YUV(_arg1:BitmapData, _arg2:int, _arg3:int):void{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:uint;
var _local8:Number;
var _local9:Number;
var _local10:Number;
_local4 = 0;
_local5 = 0;
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));
YDU[_local4] = ((((0.299 * _local8) + (0.587 * _local9)) + (0.114 * _local10)) - 128);
UDU[_local4] = (((-0.16874 * _local8) + (-0.33126 * _local9)) + (0.5 * _local10));
VDU[_local4] = (((0.5 * _local8) + (-0.41869 * _local9)) + (-0.08131 * _local10));
_local4++;
_local6++;
};
_local5++;
};
}
private function writeWord(_arg1:int):void{
writeByte(((_arg1 >> 8) & 0xFF));
writeByte((_arg1 & 0xFF));
}
private function writeByte(_arg1:int):void{
byteout.writeByte(_arg1);
}
private function writeDHT():void{
var _local1:int;
writeWord(65476);
writeWord(418);
writeByte(0);
_local1 = 0;
while (_local1 < 16) {
writeByte(std_dc_luminance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 11) {
writeByte(std_dc_luminance_values[_local1]);
_local1++;
};
writeByte(16);
_local1 = 0;
while (_local1 < 16) {
writeByte(std_ac_luminance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 161) {
writeByte(std_ac_luminance_values[_local1]);
_local1++;
};
writeByte(1);
_local1 = 0;
while (_local1 < 16) {
writeByte(std_dc_chrominance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 11) {
writeByte(std_dc_chrominance_values[_local1]);
_local1++;
};
writeByte(17);
_local1 = 0;
while (_local1 < 16) {
writeByte(std_ac_chrominance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 161) {
writeByte(std_ac_chrominance_values[_local1]);
_local1++;
};
}
private function writeBits(_arg1:BitString):void{
var _local2:int;
var _local3:int;
_local2 = _arg1.val;
_local3 = (_arg1.len - 1);
while (_local3 >= 0) {
if ((_local2 & uint((1 << _local3)))){
bytenew = (bytenew | uint((1 << bytepos)));
};
_local3--;
bytepos--;
if (bytepos < 0){
if (bytenew == 0xFF){
writeByte(0xFF);
writeByte(0);
} else {
writeByte(bytenew);
};
bytepos = 7;
bytenew = 0;
};
};
}
private function initHuffmanTbl():void{
YDC_HT = computeHuffmanTbl(std_dc_luminance_nrcodes, std_dc_luminance_values);
UVDC_HT = computeHuffmanTbl(std_dc_chrominance_nrcodes, std_dc_chrominance_values);
YAC_HT = computeHuffmanTbl(std_ac_luminance_nrcodes, std_ac_luminance_values);
UVAC_HT = computeHuffmanTbl(std_ac_chrominance_nrcodes, std_ac_chrominance_values);
}
public function encode(_arg1:BitmapData):ByteArray{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:int;
var _local6:int;
var _local7:BitString;
byteout = new ByteArray();
bytenew = 0;
bytepos = 7;
writeWord(65496);
writeAPP0();
writeDQT();
writeSOF0(_arg1.width, _arg1.height);
writeDHT();
writeSOS();
_local2 = 0;
_local3 = 0;
_local4 = 0;
bytenew = 0;
bytepos = 7;
_local5 = 0;
while (_local5 < _arg1.height) {
_local6 = 0;
while (_local6 < _arg1.width) {
RGB2YUV(_arg1, _local6, _local5);
_local2 = processDU(YDU, fdtbl_Y, _local2, YDC_HT, YAC_HT);
_local3 = processDU(UDU, fdtbl_UV, _local3, UVDC_HT, UVAC_HT);
_local4 = processDU(VDU, fdtbl_UV, _local4, UVDC_HT, UVAC_HT);
_local6 = (_local6 + 8);
};
_local5 = (_local5 + 8);
};
if (bytepos >= 0){
_local7 = new BitString();
_local7.len = (bytepos + 1);
_local7.val = ((1 << (bytepos + 1)) - 1);
writeBits(_local7);
};
writeWord(65497);
return (byteout);
}
private function initCategoryNumber():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
_local1 = 1;
_local2 = 2;
_local4 = 1;
while (_local4 <= 15) {
_local3 = _local1;
while (_local3 < _local2) {
category[(32767 + _local3)] = _local4;
bitcode[(32767 + _local3)] = new BitString();
bitcode[(32767 + _local3)].len = _local4;
bitcode[(32767 + _local3)].val = _local3;
_local3++;
};
_local3 = -((_local2 - 1));
while (_local3 <= -(_local1)) {
category[(32767 + _local3)] = _local4;
bitcode[(32767 + _local3)] = new BitString();
bitcode[(32767 + _local3)].len = _local4;
bitcode[(32767 + _local3)].val = ((_local2 - 1) + _local3);
_local3++;
};
_local1 = (_local1 << 1);
_local2 = (_local2 << 1);
_local4++;
};
}
private function writeDQT():void{
var _local1:int;
writeWord(65499);
writeWord(132);
writeByte(0);
_local1 = 0;
while (_local1 < 64) {
writeByte(YTable[_local1]);
_local1++;
};
writeByte(1);
_local1 = 0;
while (_local1 < 64) {
writeByte(UVTable[_local1]);
_local1++;
};
}
private function writeAPP0():void{
writeWord(65504);
writeWord(16);
writeByte(74);
writeByte(70);
writeByte(73);
writeByte(70);
writeByte(0);
writeByte(1);
writeByte(1);
writeByte(0);
writeWord(1);
writeWord(1);
writeByte(0);
writeByte(0);
}
private function writeSOS():void{
writeWord(65498);
writeWord(12);
writeByte(3);
writeByte(1);
writeByte(0);
writeByte(2);
writeByte(17);
writeByte(3);
writeByte(17);
writeByte(0);
writeByte(63);
writeByte(0);
}
private function processDU(_arg1:Array, _arg2:Array, _arg3:Number, _arg4:Array, _arg5:Array):Number{
var _local6:BitString;
var _local7:BitString;
var _local8:int;
var _local9:Array;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
_local6 = _arg5[0];
_local7 = _arg5[240];
_local9 = fDCTQuant(_arg1, _arg2);
_local8 = 0;
while (_local8 < 64) {
DU[ZigZag[_local8]] = _local9[_local8];
_local8++;
};
_local10 = (DU[0] - _arg3);
_arg3 = DU[0];
if (_local10 == 0){
writeBits(_arg4[0]);
} else {
writeBits(_arg4[category[(32767 + _local10)]]);
writeBits(bitcode[(32767 + _local10)]);
};
_local11 = 63;
while ((((_local11 > 0)) && ((DU[_local11] == 0)))) {
_local11--;
};
if (_local11 == 0){
writeBits(_local6);
return (_arg3);
};
_local8 = 1;
while (_local8 <= _local11) {
_local12 = _local8;
while ((((DU[_local8] == 0)) && ((_local8 <= _local11)))) {
_local8++;
};
_local13 = (_local8 - _local12);
if (_local13 >= 16){
_local14 = 1;
while (_local14 <= (_local13 / 16)) {
writeBits(_local7);
_local14++;
};
_local13 = int((_local13 & 15));
};
writeBits(_arg5[((_local13 * 16) + category[(32767 + DU[_local8])])]);
writeBits(bitcode[(32767 + DU[_local8])]);
_local8++;
};
if (_local11 != 63){
writeBits(_local6);
};
return (_arg3);
}
private function initQuantTables(_arg1:int):void{
var _local2:int;
var _local3:Number;
var _local4:Array;
var _local5:Array;
var _local6:Array;
var _local7:int;
var _local8:int;
_local4 = [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;
};
};
YTable[ZigZag[_local2]] = _local3;
_local2++;
};
_local5 = [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;
};
};
UVTable[ZigZag[_local2]] = _local3;
_local2++;
};
_local6 = [1, 1.387039845, 1.306562965, 1.175875602, 1, 0.785694958, 0.5411961, 0.275899379];
_local2 = 0;
_local7 = 0;
while (_local7 < 8) {
_local8 = 0;
while (_local8 < 8) {
fdtbl_Y[_local2] = (1 / (((YTable[ZigZag[_local2]] * _local6[_local7]) * _local6[_local8]) * 8));
fdtbl_UV[_local2] = (1 / (((UVTable[ZigZag[_local2]] * _local6[_local7]) * _local6[_local8]) * 8));
_local2++;
_local8++;
};
_local7++;
};
}
private function writeSOF0(_arg1:int, _arg2:int):void{
writeWord(65472);
writeWord(17);
writeByte(8);
writeWord(_arg2);
writeWord(_arg1);
writeByte(3);
writeByte(1);
writeByte(17);
writeByte(0);
writeByte(2);
writeByte(17);
writeByte(1);
writeByte(3);
writeByte(17);
writeByte(1);
}
private function computeHuffmanTbl(_arg1:Array, _arg2:Array):Array{
var _local3:int;
var _local4:int;
var _local5:Array;
var _local6:int;
var _local7:int;
_local3 = 0;
_local4 = 0;
_local5 = new Array();
_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;
_local23 = 0;
_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 5
//PNGEncoder (com.adobe.images.PNGEncoder)
package com.adobe.images {
import flash.display.*;
import flash.utils.*;
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 _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:int;
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++;
};
};
_local4 = 0;
if (_arg3 != null){
_local4 = _arg3.length;
};
_arg1.writeUnsignedInt(_local4);
_local5 = _arg1.position;
_arg1.writeUnsignedInt(_arg2);
if (_arg3 != null){
_arg1.writeBytes(_arg3);
};
_local6 = _arg1.position;
_arg1.position = _local5;
_local8 = 4294967295;
_local7 = 0;
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 _local2:ByteArray;
var _local3:ByteArray;
var _local4:ByteArray;
var _local5:int;
var _local6:uint;
var _local7:int;
_local2 = new ByteArray();
_local2.writeUnsignedInt(2303741511);
_local2.writeUnsignedInt(218765834);
_local3 = new ByteArray();
_local3.writeInt(_arg1.width);
_local3.writeInt(_arg1.height);
_local3.writeUnsignedInt(134610944);
_local3.writeByte(0);
writeChunk(_local2, 1229472850, _local3);
_local4 = new ByteArray();
_local5 = 0;
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 6
//JSON (com.adobe.serialization.json.JSON)
package com.adobe.serialization.json {
public class JSON {
public static function decode(_arg1:String){
var _local2:JSONDecoder;
_local2 = new JSONDecoder(_arg1);
return (_local2.getValue());
}
public static function encode(_arg1:Object):String{
var _local2:JSONEncoder;
_local2 = new JSONEncoder(_arg1);
return (_local2.getString());
}
}
}//package com.adobe.serialization.json
Section 7
//JSONDecoder (com.adobe.serialization.json.JSONDecoder)
package com.adobe.serialization.json {
public class JSONDecoder {
private var value;
private var tokenizer:JSONTokenizer;
private var token:JSONToken;
public function JSONDecoder(_arg1:String){
tokenizer = new JSONTokenizer(_arg1);
nextToken();
value = parseValue();
}
private function nextToken():JSONToken{
return ((token = tokenizer.getNextToken()));
}
private function parseObject():Object{
var _local1:Object;
var _local2:String;
_local1 = new Object();
nextToken();
if (token.type == JSONTokenType.RIGHT_BRACE){
return (_local1);
};
while (true) {
if (token.type == JSONTokenType.STRING){
_local2 = String(token.value);
nextToken();
if (token.type == JSONTokenType.COLON){
nextToken();
_local1[_local2] = parseValue();
nextToken();
if (token.type == JSONTokenType.RIGHT_BRACE){
return (_local1);
};
if (token.type == JSONTokenType.COMMA){
nextToken();
} else {
tokenizer.parseError(("Expecting } or , but found " + token.value));
};
} else {
tokenizer.parseError(("Expecting : but found " + token.value));
};
} else {
tokenizer.parseError(("Expecting string but found " + token.value));
};
};
return (null);
}
private function parseArray():Array{
var _local1:Array;
_local1 = new Array();
nextToken();
if (token.type == JSONTokenType.RIGHT_BRACKET){
return (_local1);
};
while (true) {
_local1.push(parseValue());
nextToken();
if (token.type == JSONTokenType.RIGHT_BRACKET){
return (_local1);
};
if (token.type == JSONTokenType.COMMA){
nextToken();
} else {
tokenizer.parseError(("Expecting ] or , but found " + token.value));
};
};
return (null);
}
public function getValue(){
return (value);
}
private function parseValue():Object{
if (token == null){
tokenizer.parseError("Unexpected end of input");
};
switch (token.type){
case JSONTokenType.LEFT_BRACE:
return (parseObject());
case JSONTokenType.LEFT_BRACKET:
return (parseArray());
case JSONTokenType.STRING:
case JSONTokenType.NUMBER:
case JSONTokenType.TRUE:
case JSONTokenType.FALSE:
case JSONTokenType.NULL:
return (token.value);
default:
tokenizer.parseError(("Unexpected " + token.value));
};
return (null);
}
}
}//package com.adobe.serialization.json
Section 8
//JSONEncoder (com.adobe.serialization.json.JSONEncoder)
package com.adobe.serialization.json {
import flash.utils.*;
public class JSONEncoder {
private var jsonString:String;
public function JSONEncoder(_arg1){
jsonString = convertToString(_arg1);
}
private function arrayToString(_arg1:Array):String{
var _local2:String;
var _local3:int;
_local2 = "";
_local3 = 0;
while (_local3 < _arg1.length) {
if (_local2.length > 0){
_local2 = (_local2 + ",");
};
_local2 = (_local2 + convertToString(_arg1[_local3]));
_local3++;
};
return ((("[" + _local2) + "]"));
}
private function convertToString(_arg1):String{
if ((_arg1 is String)){
return (escapeString((_arg1 as String)));
};
if ((_arg1 is Number)){
return ((isFinite((_arg1 as Number))) ? _arg1.toString() : "null");
} else {
if ((_arg1 is Boolean)){
return ((_arg1) ? "true" : "false");
} else {
if ((_arg1 is Array)){
return (arrayToString((_arg1 as Array)));
};
if ((((_arg1 is Object)) && (!((_arg1 == null))))){
return (objectToString(_arg1));
};
};
};
return ("null");
}
private function escapeString(_arg1:String):String{
var _local2:String;
var _local3:String;
var _local4:Number;
var _local5:int;
var _local6:String;
var _local7:String;
_local2 = "";
_local4 = _arg1.length;
_local5 = 0;
while (_local5 < _local4) {
_local3 = _arg1.charAt(_local5);
switch (_local3){
case "\"":
_local2 = (_local2 + "\\\"");
break;
case "\\":
_local2 = (_local2 + "\\\\");
break;
case "\b":
_local2 = (_local2 + "\\b");
break;
case "\f":
_local2 = (_local2 + "\\f");
break;
case "\n":
_local2 = (_local2 + "\\n");
break;
case "\r":
_local2 = (_local2 + "\\r");
break;
case "\t":
_local2 = (_local2 + "\\t");
break;
default:
if (_local3 < " "){
_local6 = _local3.charCodeAt(0).toString(16);
_local7 = ((_local6.length == 2)) ? "00" : "000";
_local2 = (_local2 + (("\\u" + _local7) + _local6));
} else {
_local2 = (_local2 + _local3);
};
};
_local5++;
};
return ((("\"" + _local2) + "\""));
}
private function objectToString(_arg1:Object):String{
var s:String;
var classInfo:XML;
var value:Object;
var key:String;
var v:XML;
var o = _arg1;
s = "";
classInfo = describeType(o);
if (classInfo.@name.toString() == "Object"){
for (key in o) {
value = o[key];
if ((value is Function)){
} else {
if (s.length > 0){
s = (s + ",");
};
s = (s + ((escapeString(key) + ":") + convertToString(value)));
};
};
} else {
for each (v in classInfo..*.(((name() == "variable")) || ((name() == "accessor")))) {
if (s.length > 0){
s = (s + ",");
};
s = (s + ((escapeString(v.@name.toString()) + ":") + convertToString(o[v.@name])));
};
};
return ((("{" + s) + "}"));
}
public function getString():String{
return (jsonString);
}
}
}//package com.adobe.serialization.json
Section 9
//JSONParseError (com.adobe.serialization.json.JSONParseError)
package com.adobe.serialization.json {
public class JSONParseError extends Error {
private var _text:String;
private var _location:int;
public function JSONParseError(_arg1:String="", _arg2:int=0, _arg3:String=""){
super(_arg1);
name = "JSONParseError";
_location = _arg2;
_text = _arg3;
}
public function get text():String{
return (_text);
}
public function get location():int{
return (_location);
}
}
}//package com.adobe.serialization.json
Section 10
//JSONToken (com.adobe.serialization.json.JSONToken)
package com.adobe.serialization.json {
public class JSONToken {
private var _value:Object;
private var _type:int;
public function JSONToken(_arg1:int=-1, _arg2:Object=null){
_type = _arg1;
_value = _arg2;
}
public function set value(_arg1:Object):void{
_value = _arg1;
}
public function get value():Object{
return (_value);
}
public function set type(_arg1:int):void{
_type = _arg1;
}
public function get type():int{
return (_type);
}
}
}//package com.adobe.serialization.json
Section 11
//JSONTokenizer (com.adobe.serialization.json.JSONTokenizer)
package com.adobe.serialization.json {
public class JSONTokenizer {
private var loc:int;
private var ch:String;
private var obj:Object;
private var jsonString:String;
public function JSONTokenizer(_arg1:String){
jsonString = _arg1;
loc = 0;
nextChar();
}
private function skipComments():void{
if (ch == "/"){
nextChar();
switch (ch){
case "/":
do {
nextChar();
} while (((!((ch == "\n"))) && (!((ch == "")))));
nextChar();
break;
case "*":
nextChar();
while (true) {
if (ch == "*"){
nextChar();
if (ch == "/"){
nextChar();
break;
};
} else {
nextChar();
};
if (ch == ""){
parseError("Multi-line comment not closed");
};
};
break;
default:
parseError((("Unexpected " + ch) + " encountered (expecting '/' or '*' )"));
};
};
}
private function isDigit(_arg1:String):Boolean{
return ((((_arg1 >= "0")) && ((_arg1 <= "9"))));
}
private function readNumber():JSONToken{
var _local1:JSONToken;
var _local2:String;
var _local3:Number;
_local1 = new JSONToken();
_local1.type = JSONTokenType.NUMBER;
_local2 = "";
if (ch == "-"){
_local2 = (_local2 + "-");
nextChar();
};
if (!isDigit(ch)){
parseError("Expecting a digit");
};
if (ch == "0"){
_local2 = (_local2 + ch);
nextChar();
if (isDigit(ch)){
parseError("A digit cannot immediately follow 0");
};
} else {
while (isDigit(ch)) {
_local2 = (_local2 + ch);
nextChar();
};
};
if (ch == "."){
_local2 = (_local2 + ".");
nextChar();
if (!isDigit(ch)){
parseError("Expecting a digit");
};
while (isDigit(ch)) {
_local2 = (_local2 + ch);
nextChar();
};
};
if ((((ch == "e")) || ((ch == "E")))){
_local2 = (_local2 + "e");
nextChar();
if ((((ch == "+")) || ((ch == "-")))){
_local2 = (_local2 + ch);
nextChar();
};
if (!isDigit(ch)){
parseError("Scientific notation number needs exponent value");
};
while (isDigit(ch)) {
_local2 = (_local2 + ch);
nextChar();
};
};
_local3 = Number(_local2);
if (((isFinite(_local3)) && (!(isNaN(_local3))))){
_local1.value = _local3;
return (_local1);
};
parseError((("Number " + _local3) + " is not valid!"));
return (null);
}
private function nextChar():String{
return ((ch = jsonString.charAt(loc++)));
}
public function getNextToken():JSONToken{
var _local1:JSONToken;
var _local2:String;
var _local3:String;
var _local4:String;
_local1 = new JSONToken();
skipIgnored();
switch (ch){
case "{":
_local1.type = JSONTokenType.LEFT_BRACE;
_local1.value = "{";
nextChar();
break;
case "}":
_local1.type = JSONTokenType.RIGHT_BRACE;
_local1.value = "}";
nextChar();
break;
case "[":
_local1.type = JSONTokenType.LEFT_BRACKET;
_local1.value = "[";
nextChar();
break;
case "]":
_local1.type = JSONTokenType.RIGHT_BRACKET;
_local1.value = "]";
nextChar();
break;
case ",":
_local1.type = JSONTokenType.COMMA;
_local1.value = ",";
nextChar();
break;
case ":":
_local1.type = JSONTokenType.COLON;
_local1.value = ":";
nextChar();
break;
case "t":
_local2 = ((("t" + nextChar()) + nextChar()) + nextChar());
if (_local2 == "true"){
_local1.type = JSONTokenType.TRUE;
_local1.value = true;
nextChar();
} else {
parseError(("Expecting 'true' but found " + _local2));
};
break;
case "f":
_local3 = (((("f" + nextChar()) + nextChar()) + nextChar()) + nextChar());
if (_local3 == "false"){
_local1.type = JSONTokenType.FALSE;
_local1.value = false;
nextChar();
} else {
parseError(("Expecting 'false' but found " + _local3));
};
break;
case "n":
_local4 = ((("n" + nextChar()) + nextChar()) + nextChar());
if (_local4 == "null"){
_local1.type = JSONTokenType.NULL;
_local1.value = null;
nextChar();
} else {
parseError(("Expecting 'null' but found " + _local4));
};
break;
case "\"":
_local1 = readString();
break;
default:
if (((isDigit(ch)) || ((ch == "-")))){
_local1 = readNumber();
} else {
if (ch == ""){
return (null);
};
parseError((("Unexpected " + ch) + " encountered"));
};
};
return (_local1);
}
private function skipWhite():void{
while (isWhiteSpace(ch)) {
nextChar();
};
}
private function isWhiteSpace(_arg1:String):Boolean{
return ((((((((_arg1 == " ")) || ((_arg1 == "\t")))) || ((_arg1 == "\n")))) || ((_arg1 == "\r"))));
}
public function parseError(_arg1:String):void{
throw (new JSONParseError(_arg1, loc, jsonString));
}
private function skipIgnored():void{
var _local1:int;
do {
_local1 = loc;
skipWhite();
skipComments();
} while (_local1 != loc);
}
private function isHexDigit(_arg1:String):Boolean{
var _local2:String;
_local2 = _arg1.toUpperCase();
return (((isDigit(_arg1)) || ((((_local2 >= "A")) && ((_local2 <= "F"))))));
}
private function readString():JSONToken{
var _local1:JSONToken;
var _local2:String;
var _local3:String;
var _local4:int;
_local1 = new JSONToken();
_local1.type = JSONTokenType.STRING;
_local2 = "";
nextChar();
while (((!((ch == "\""))) && (!((ch == ""))))) {
if (ch == "\\"){
nextChar();
switch (ch){
case "\"":
_local2 = (_local2 + "\"");
break;
case "/":
_local2 = (_local2 + "/");
break;
case "\\":
_local2 = (_local2 + "\\");
break;
case "b":
_local2 = (_local2 + "\b");
break;
case "f":
_local2 = (_local2 + "\f");
break;
case "n":
_local2 = (_local2 + "\n");
break;
case "r":
_local2 = (_local2 + "\r");
break;
case "t":
_local2 = (_local2 + "\t");
break;
case "u":
_local3 = "";
_local4 = 0;
while (_local4 < 4) {
if (!isHexDigit(nextChar())){
parseError((" Excepted a hex digit, but found: " + ch));
};
_local3 = (_local3 + ch);
_local4++;
};
_local2 = (_local2 + String.fromCharCode(parseInt(_local3, 16)));
break;
default:
_local2 = (_local2 + ("\\" + ch));
};
} else {
_local2 = (_local2 + ch);
};
nextChar();
};
if (ch == ""){
parseError("Unterminated string literal");
};
nextChar();
_local1.value = _local2;
return (_local1);
}
}
}//package com.adobe.serialization.json
Section 12
//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 13
//IntUtil (com.adobe.utils.IntUtil)
package com.adobe.utils {
public class IntUtil {
private static var hexChars:String = "0123456789abcdef";
public static function toHex(_arg1:int, _arg2:Boolean=false):String{
var _local3:String;
var _local4:int;
var _local5:int;
_local3 = "";
if (_arg2){
_local4 = 0;
while (_local4 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> (((3 - _local4) * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> ((3 - _local4) * 8)) & 15))));
_local4++;
};
} else {
_local5 = 0;
while (_local5 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> ((_local5 * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> (_local5 * 8)) & 15))));
_local5++;
};
};
return (_local3);
}
public static function ror(_arg1:int, _arg2:int):uint{
var _local3:int;
_local3 = (32 - _arg2);
return (((_arg1 << _local3) | (_arg1 >>> (32 - _local3))));
}
public static function rol(_arg1:int, _arg2:int):int{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
}
}//package com.adobe.utils
Section 14
//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(uids));
super.initialize();
}
}
}//package com.facebook.commands.admin
Section 15
//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 16
//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 17
//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(uids));
super.initialize();
}
}
}//package com.facebook.commands.admin
Section 18
//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 metrics:Array;
public var start_time:Date;
public var period:uint;
public var end_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(start_time), FacebookDataUtils.toDateString(end_time), period, JSON.encode(metrics));
super.initialize();
}
}
}//package com.facebook.commands.admin
Section 19
//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 20
//SetAppProperties (com.facebook.commands.admin.SetAppProperties)
package com.facebook.commands.admin {
import com.facebook.net.*;
import com.adobe.serialization.json.*;
import com.facebook.*;
public class SetAppProperties extends FacebookCall {
public var properties:Object;
public static const SCHEMA:Array = ["properties"];
public static const METHOD_NAME:String = "admin.setAppProperties";
public function SetAppProperties(_arg1:Object){
super(METHOD_NAME);
this.properties = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, JSON.encode(this.properties));
super.initialize();
}
}
}//package com.facebook.commands.admin
Section 21
//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, restriction_str);
super.initialize();
}
}
}//package com.facebook.commands.admin
Section 22
//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(uids));
super.initialize();
}
}
}//package com.facebook.commands.admin
Section 23
//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_api_key:String;
public var application_canvas_name:String;
public var application_id: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){
var _local4:Boolean;
var _local5:Boolean;
var _local6:Boolean;
super(METHOD_NAME);
_local4 = !((_arg1 == null));
_local5 = !((_arg2 == null));
_local6 = !((_arg3 == null));
if (((((((_local4) && (_local5))) || (((_local4) && (_local6))))) || (((_local5) && (_local6))))){
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, application_id, application_api_key, application_canvas_name);
super.initialize();
}
}
}//package com.facebook.commands.application
Section 24
//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 25
//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 26
//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, auth_token);
super.initialize();
}
}
}//package com.facebook.commands.auth
Section 27
//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 28
//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, user);
super.initialize();
}
}
}//package com.facebook.commands.auth
Section 29
//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 uid:String;
public var perm: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, perm, uid);
super.initialize();
}
}
}//package com.facebook.commands.auth
Section 30
//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 serial_only:Boolean;
public var method_feed:BatchCollection;
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 _local1:Array;
var _local2:uint;
var _local3:uint;
var _local4:String;
var _local5:FacebookCall;
var _local6:URLVariables;
_local1 = [];
_local2 = method_feed.length;
_local3 = 0;
while (_local3 < _local2) {
_local5 = (method_feed.getItemAt(_local3) as FacebookCall);
_local5.session = session;
_local5.initialize();
RequestHelper.formatRequest(_local5);
_local6 = _local5.args;
_local1.push(_local6.toString());
_local3++;
};
_local4 = JSON.encode(_local1);
applySchema(SCHEMA, _local4, serial_only);
super.initialize();
super.initialize();
}
}
}//package com.facebook.commands.batch
Section 31
//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 xid:String;
public var publish_to_stream:Boolean;
public var object_id:String;
public var text:String;
public var uid:String;
public var title:String;
public var url:String;
public static const SCHEMA:Array = ["text", "xid", "object_id", "uid", "title", "url", "publish_to_stream"];
public static const METHOD_NAME:String = "comments.add";
public function AddComments(_arg1:String, _arg2:String=null, _arg3:String=null, _arg4:String=null, _arg5:String=null, _arg6:String=null, _arg7:Boolean=false){
super(METHOD_NAME);
if ((((_arg2 == null)) && ((_arg3 == null)))){
throw (new Error("xid or object_id is required"));
};
this.text = _arg1;
this.xid = _arg2;
this.object_id = _arg3;
this.uid = _arg4;
this.title = _arg5;
this.url = _arg6;
this.publish_to_stream = _arg7;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, text, xid, object_id, uid, title, url, publish_to_stream);
super.initialize();
}
}
}//package com.facebook.commands.comments
Section 32
//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 var post_id:String;
public var object_id:String;
public static const SCHEMA:Array = ["xid", "object_id", "post_id"];
public static const METHOD_NAME:String = "comments.get";
public function GetComments(_arg1:String=null, _arg2:String=null, _arg3:String=null){
super(METHOD_NAME);
if ((((((_arg1 == null)) && ((_arg2 == null)))) && ((_arg3 == null)))){
throw (new Error("xid, post_id, or object_id is required"));
};
this.xid = _arg1;
this.object_id = _arg2;
this.post_id = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, xid, object_id, post_id);
super.initialize();
}
}
}//package com.facebook.commands.comments
Section 33
//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 comment_id:String;
public var xid:String;
public var object_id:String;
public static const SCHEMA:Array = ["comment_id", "xid", "object_id"];
public static const METHOD_NAME:String = "comments.remove";
public function RemoveComments(_arg1:String, _arg2:String=null, _arg3:String=null){
super(METHOD_NAME);
if ((((_arg2 == null)) && ((_arg3 == null)))){
throw (new Error("xid or object_id is required"));
};
this.comment_id = _arg1;
this.xid = _arg2;
this.object_id = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, comment_id, xid, object_id);
super.initialize();
}
}
}//package com.facebook.commands.comments
Section 34
//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 35
//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;
_local1 = FacebookDataUtils.facebookCollectionToJSONArray(accounts);
applySchema(SCHEMA, _local1);
super.initialize();
}
}
}//package com.facebook.commands.connect
Section 36
//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(email_hashes));
super.initialize();
}
}
}//package com.facebook.commands.connect
Section 37
//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 properties;
protected var obj_type:String;
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, obj_type, properties);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 38
//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 39
//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 name:String;
protected var assoc_info2:AssocInfoData;
protected var assoc_info1:AssocInfoData;
protected var assoc_type:Number;
protected var inverse: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, name, assoc_type, assoc_info1, assoc_info2, inverse);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 40
//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_name:String;
public var prop_type:uint;
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, obj_type, prop_name, prop_type);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 41
//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, obj_id);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 42
//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, obj_ids);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 43
//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, obj_type);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 44
//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 name:String;
public var obj_id: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, name, obj_id);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 45
//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 name:String;
public var obj_ids:Array;
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, name, obj_ids);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 46
//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 name:String;
public var obj_id:String;
public var no_data:Boolean;
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, name, obj_id, no_data);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 47
//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, name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 48
//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 49
//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 no_data:Boolean;
public var obj_id1:String;
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, obj_id1, obj_id2, no_data);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 50
//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 name:String;
public var uid: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, uid, name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 51
//GetCookiesData (com.facebook.commands.data.GetCookiesData)
package com.facebook.commands.data {
import com.facebook.data.*;
public class GetCookiesData extends FacebookData {
public var name:String;
public var uid:String;
public var path:String;
public var value:String;
public var expires:Number;
}
}//package com.facebook.commands.data
Section 52
//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 key:String;
public var prop_name: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, obj_type, key, prop_name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 53
//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 prop_names:Array;
public var obj_id:String;
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, obj_id, prop_names);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 54
//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, obj_id, prop_name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 55
//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 prop_names:Array;
public var obj_ids: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(obj_ids), FacebookDataUtils.toArrayString(prop_names));
super.initialize();
}
}
}//package com.facebook.commands.data
Section 56
//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, obj_type);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 57
//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 58
//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, pref_id);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 59
//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 60
//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 key:String;
public var prop_name:String;
public var increment:Number;
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, obj_type, key, prop_name, increment);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 61
//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 name:String;
public var obj_id: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, name, obj_id);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 62
//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 name:String;
public var obj_id1:Number;
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 = name;
this.obj_id1 = obj_id1;
this.obj_id2 = obj_id2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, name, obj_id1, obj_id2);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 63
//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, assocs, name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 64
//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, obj_type, key);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 65
//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, obj_type, keys);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 66
//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 name:String;
public var new_alias1:String;
public var new_name:String;
public var new_alias2: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, name, new_name, new_alias1, new_alias2);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 67
//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 new_name:String;
public var prop_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, obj_type, prop_name, new_name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 68
//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 obj_type:String;
public var new_name: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, obj_type, new_name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 69
//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 name:String;
public var data:String;
public var obj_id1:String;
public var obj_id2:String;
public var assoc_time:Date;
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, name, obj_id1, obj_id2, data, FacebookDataUtils.toDateString(assoc_time));
super.initialize();
}
}
}//package com.facebook.commands.data
Section 70
//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, assocs, name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 71
//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 name:String;
public var uid:String;
public var expires:Date;
public var value:String;
public var path: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, uid, name, value, FacebookDataUtils.toDateString(expires), path);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 72
//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 obj_type:String;
public var key:String;
public var prop_name:String;
public var value: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, obj_type, key, value, prop_name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 73
//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, obj_id, prop_name, prop_value);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 74
//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, pref_id, value);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 75
//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 map:NameValueCollection;
public var replace:Boolean;
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(map.toArray()), replace);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 76
//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 77
//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, obj_type, prop_name);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 78
//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 obj_id:String;
public var replace:Boolean;
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, obj_id, properties, replace);
super.initialize();
}
}
}//package com.facebook.commands.data
Section 79
//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 cancel_message:String;
public var eid: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, eid, cancel_message);
super.initialize();
}
}
}//package com.facebook.commands.events
Section 80
//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.commands.photos.*;
import com.facebook.*;
public class CreateEvent extends FacebookCall implements IUploadPhoto {
protected var _data:Object;
public var event_info:CreateEventData;
protected var _uploadQuality:uint;// = 80
protected var _uploadType:String;// = "png"
public static const SCHEMA:Array = ["event_info", "data"];
public static const METHOD_NAME:String = "events.create";
public function CreateEvent(_arg1:CreateEventData, _arg2:Object=null){
_uploadType = UploadPhotoTypes.PNG;
_uploadQuality = 80;
super(METHOD_NAME);
this.event_info = _arg1;
this.data = _arg2;
}
override facebook_internal function initialize():void{
var _local1:Object;
var _local2:String;
var _local3:Object;
_local1 = {};
for each (_local2 in event_info.schema) {
_local3 = event_info[_local2];
if ((_local3 is Date)){
_local3 = FacebookDataUtils.toDateString((_local3 as Date));
};
_local1[_local2] = _local3;
};
applySchema(SCHEMA, JSON.encode(_local1), data);
super.initialize();
}
public function get data():Object{
return (_data);
}
public function set uploadType(_arg1:String):void{
_uploadType = _arg1;
}
public function get uploadQuality():uint{
return (_uploadQuality);
}
public function set data(_arg1:Object):void{
_data = _arg1;
}
public function get uploadType():String{
return (_uploadType);
}
public function set uploadQuality(_arg1:uint):void{
_uploadQuality = _arg1;
}
}
}//package com.facebook.commands.events
Section 81
//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 event_info:EditEventData;
public var eid:String;
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 _local1:Object;
var _local2:String;
var _local3:Object;
_local1 = {};
for each (_local2 in event_info.schema) {
_local3 = event_info[_local2];
if ((_local3 is Date)){
_local3 = FacebookDataUtils.toDateString((_local3 as Date));
};
_local1[_local2] = _local3;
};
applySchema(SCHEMA, eid, JSON.encode(event_info));
super.initialize();
}
}
}//package com.facebook.commands.events
Section 82
//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 eids:Array;
public var uid:String;
public var start_time:Date;
public var end_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, uid, FacebookDataUtils.toArrayString(eids), FacebookDataUtils.toDateString(start_time), FacebookDataUtils.toDateString(end_time), rsvp_status);
super.initialize();
}
}
}//package com.facebook.commands.events
Section 83
//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, eid);
super.initialize();
}
}
}//package com.facebook.commands.events
Section 84
//Invite (com.facebook.commands.events.Invite)
package com.facebook.commands.events {
import com.facebook.net.*;
import com.facebook.utils.*;
import com.facebook.*;
public class Invite extends FacebookCall {
public var personal_message:String;
public var eid:String;
public var uids:Array;
public static const SCHEMA:Array = ["eid", "uids", "personal_message"];
public static const METHOD_NAME:String = "events.invite";
public function Invite(_arg1:String, _arg2:Array, _arg3:String=null){
super(METHOD_NAME);
this.eid = _arg1;
this.uids = _arg2;
this.personal_message = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, eid, FacebookDataUtils.toArrayString(uids), personal_message);
super.initialize();
}
}
}//package com.facebook.commands.events
Section 85
//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, eid, rsvp_status);
super.initialize();
}
}
}//package com.facebook.commands.events
Section 86
//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(names));
super.initialize();
}
}
}//package com.facebook.commands.fbml
Section 87
//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 88
//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, url);
super.initialize();
}
}
}//package com.facebook.commands.fbml
Section 89
//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, url);
super.initialize();
}
}
}//package com.facebook.commands.fbml
Section 90
//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(tags));
super.initialize();
}
}
}//package com.facebook.commands.fbml
Section 91
//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 fmbl:String;
public var handle: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, handle, fmbl);
super.initialize();
}
}
}//package com.facebook.commands.fbml
Section 92
//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, template_bundle_id);
super.initialize();
}
}
}//package com.facebook.commands.feed
Section 93
//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, template_bundle_id);
super.initialize();
}
}
}//package com.facebook.commands.feed
Section 94
//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 95
//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 image_4_link:String;
public var target_ids:Array;
public var title_template:String;
public var image_1_link:String;
public var body_data:Object;
public var title_data:Object;
public var body_general:String;
public var image_1:String;
public var image_4:String;
public var image_2_link:String;
public var page_actor_id:String;
public var image_3:String;
public var image_2:String;
public var image_3_link:String;
public var body_template: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, title_template, JSON.encode(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, FacebookDataUtils.toArrayString(target_ids));
super.initialize();
}
}
}//package com.facebook.commands.feed
Section 96
//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 template_bundle_id:String;
public var body_general:String;
public var user_message:String;
public var story_size:Number;
public var target_ids:Array;
public var template_data:Object;
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 97
//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 short_story_templates:TemplateCollection;
public var full_story_template:TemplateData;
public var action_links:ActionLinkCollection;
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(one_line_story_templates), FacebookDataUtils.facebookCollectionToJSONArray(short_story_templates), JSON.encode(full_story_template), FacebookDataUtils.facebookCollectionToJSONArray(action_links));
super.initialize();
}
}
}//package com.facebook.commands.feed
Section 98
//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:String;
public static const SCHEMA:Array = ["queries"];
public static const METHOD_NAME:String = "fql.multiquery";
public function FqlMultiquery(_arg1:Object){
super(METHOD_NAME);
queries = JSON.encode(_arg1);
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, queries);
super.initialize();
}
}
}//package com.facebook.commands.fql
Section 99
//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 100
//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 uids1:Array;
public var uids2:Array;
public static const SCHEMA:Array = ["uids1", "uids2"];
public static const METHOD_NAME:String = "friends.areFriends";
public function AreFriends(_arg1:Array, _arg2:Array){
super(METHOD_NAME);
this.uids1 = _arg1;
this.uids2 = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toArrayString(uids1), FacebookDataUtils.toArrayString(uids2));
super.initialize();
}
}
}//package com.facebook.commands.friends
Section 101
//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 102
//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, flid, uid);
super.initialize();
}
}
}//package com.facebook.commands.friends
Section 103
//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 104
//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, target_uid, source_uid);
super.initialize();
}
}
}//package com.facebook.commands.friends
Section 105
//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, gid);
super.initialize();
}
}
}//package com.facebook.commands.groups
Section 106
//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(gids), uid);
super.initialize();
}
}
}//package com.facebook.commands.groups
Section 107
//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 locale:String;
public var all:Boolean;
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, locale, all);
super.initialize();
}
}
}//package com.facebook.commands.intl
Section 108
//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(native_strings));
super.initialize();
}
}
}//package com.facebook.commands.intl
Section 109
//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 link_ids:Array;
public var limit:String;
public var uid: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, uid, FacebookDataUtils.toArrayString(link_ids), limit);
super.initialize();
}
}
}//package com.facebook.commands.links
Section 110
//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 comment:String;
public var url: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, uid, url, comment);
super.initialize();
}
}
}//package com.facebook.commands.links
Section 111
//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 recipient:String;
public var message: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, recipient, event_name, message);
super.initialize();
}
}
}//package com.facebook.commands.livemessage
Section 112
//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 folder_id:String;
public var offset:String;
public var uid:String;
public var limit: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, folder_id, uid, limit, offset);
super.initialize();
}
}
}//package com.facebook.commands.message
Section 113
//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 title:String;
public var uid:String;
public var content:String;
public static const SCHEMA:Array = ["title", "content", "uid"];
public static const METHOD_NAME:String = "notes.create";
public function CreateNotes(_arg1:String, _arg2:String, _arg3:String=null){
super(METHOD_NAME);
this.title = _arg1;
this.content = _arg2;
this.uid = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, title, content, uid);
super.initialize();
}
}
}//package com.facebook.commands.notes
Section 114
//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 note_id:String;
public var uid:String;
public static const SCHEMA:Array = ["note_id", "uid"];
public static const METHOD_NAME:String = "notes.delete";
public function DeleteNotes(_arg1:String, _arg2:String=null){
super(METHOD_NAME);
this.note_id = _arg1;
this.uid = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, note_id, uid);
super.initialize();
}
}
}//package com.facebook.commands.notes
Section 115
//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 uid:String;
public var title:String;
public var content:String;
public static const SCHEMA:Array = ["note_id", "title", "content", "uid"];
public static const METHOD_NAME:String = "notes.edit";
public function EditNotes(_arg1:String, _arg2:String=null, _arg3:String=null, _arg4:String=null){
super(METHOD_NAME);
this.note_id = _arg1;
this.title = _arg2;
this.content = _arg3;
this.uid = _arg4;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, note_id, title, content, uid);
super.initialize();
}
}
}//package com.facebook.commands.notes
Section 116
//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=null){
super(METHOD_NAME);
this.uid = _arg1;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, uid);
super.initialize();
}
}
}//package com.facebook.commands.notes
Section 117
//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 include_read:Boolean;
public var start_time:Date;
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(start_time), include_read);
super.initialize();
}
}
}//package com.facebook.commands.notifications
Section 118
//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 119
//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(notification_ids));
super.initialize();
}
}
}//package com.facebook.commands.notifications
Section 120
//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 subject:String;
public var recipients:Array;
public var fbml:String;
public var text:String;
public static const SCHEMA:Array = ["recipients", "subject", "text", "fbml"];
public static const METHOD_NAME:String = "notifications.sendEmail";
public function SendEmail(_arg1:Array, _arg2:String, _arg3:String=null, _arg4:String=null){
super(METHOD_NAME);
if ((((_arg3 == null)) && ((_arg4 == null)))){
throw (new Error("Must specify text or fbml string"));
};
this.recipients = _arg1;
this.subject = _arg2;
this.text = _arg3;
this.fbml = _arg4;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toArrayString(recipients), subject, text, fbml);
super.initialize();
}
}
}//package com.facebook.commands.notifications
Section 121
//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 type:String;
public var notification:String;
public var to_ids:Array;
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(to_ids), notification, type);
super.initialize();
}
}
}//package com.facebook.commands.notifications
Section 122
//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 page_ids:Array;
public var uid:String;
public var fields:Array;
public static const SCHEMA:Array = ["fields", "page_ids", "uid"];
public static const METHOD_NAME:String = "pages.getInfo";
public function GetPageInfo(_arg1:Array, _arg2:Array=null, _arg3:String=null){
super(METHOD_NAME);
this.fields = _arg1;
this.page_ids = _arg2;
this.uid = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toArrayString(fields), FacebookDataUtils.toArrayString(page_ids), uid);
super.initialize();
}
}
}//package com.facebook.commands.pages
Section 123
//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 page_id:String;
public var uid: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, page_id, uid);
super.initialize();
}
}
}//package com.facebook.commands.pages
Section 124
//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, page_id);
super.initialize();
}
}
}//package com.facebook.commands.pages
Section 125
//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 page_id:String;
public var uid: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, page_id, uid);
super.initialize();
}
}
}//package com.facebook.commands.pages
Section 126
//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 pid:String;
public var tags:PhotoTagCollection;
public var yPos:Number;
public var tag_uid:String;
public var tag_text:String;
public var xPos:Number;
public var owner_uid:String;
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("Must specify tags:PhotoTagCollection, or else must specify tag_uid or tag_text and both x and y values"));
};
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, pid, tag_uid, tag_text, xPos, yPos, FacebookDataUtils.facebookCollectionToJSONArray(tags), owner_uid);
super.initialize();
}
}
}//package com.facebook.commands.photos
Section 127
//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 name:String;
public var uid:String;
public var visible:String;
public var location: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=null, _arg3:String=null, _arg4:String=null, _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, name, location, description, visible, uid);
super.initialize();
}
}
}//package com.facebook.commands.photos
Section 128
//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=null, _arg2:Array=null){
super(METHOD_NAME);
this.uid = _arg1;
this.aids = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, uid, FacebookDataUtils.toArrayString(aids));
super.initialize();
}
}
}//package com.facebook.commands.photos
Section 129
//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 pids:Array;
protected var aid:String;
public static const SCHEMA:Array = ["subj_id", "aid", "pids"];
public static const METHOD_NAME:String = "photos.get";
public function GetPhotos(_arg1:String=null, _arg2:String=null, _arg3:Array=null){
super(METHOD_NAME);
if ((((((_arg1 == null)) && ((_arg2 == null)))) && ((_arg3 == null)))){
throw (new Error("Include at least one of subj_id, aid, or pids"));
};
this.subj_id = _arg1;
this.aid = _arg2;
this.pids = _arg3;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, subj_id, aid, FacebookDataUtils.toArrayString(pids));
super.initialize();
}
}
}//package com.facebook.commands.photos
Section 130
//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(pids));
super.initialize();
}
}
}//package com.facebook.commands.photos
Section 131
//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 {
protected var _data:Object;
public var uploadedPhoto:FacebookPhoto;
public var aid:String;
protected var _uploadQuality:uint;// = 80
public var uid:String;
public var caption:String;
protected var _uploadType:String;// = "png"
public static const SCHEMA:Array = ["data", "aid", "caption", "uid"];
public static const METHOD_NAME:String = "photos.upload";
public function UploadPhoto(_arg1:Object, _arg2:String=null, _arg3:String=null, _arg4:String=null){
_uploadType = UploadPhotoTypes.PNG;
_uploadQuality = 80;
super(METHOD_NAME);
this.data = _arg1;
this.aid = _arg2;
this.caption = _arg3;
this.uid = _arg4;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, data, aid, caption, uid);
super.initialize();
}
public function get data():Object{
return (_data);
}
public function set uploadType(_arg1:String):void{
_uploadType = _arg1;
}
public function get uploadQuality():uint{
return (_uploadQuality);
}
public function set data(_arg1:Object):void{
_data = _arg1;
}
public function get uploadType():String{
return (_uploadType);
}
public function set uploadQuality(_arg1:uint):void{
_uploadQuality = _arg1;
}
}
}//package com.facebook.commands.photos
Section 132
//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 133
//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 type:Number;
public var uid:String;
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, uid, type);
super.initialize();
}
}
}//package com.facebook.commands.profile
Section 134
//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, field);
super.initialize();
}
}
}//package com.facebook.commands.profile
Section 135
//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, uid);
super.initialize();
}
}
}//package com.facebook.commands.profile
Section 136
//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 mobile_profile:String;
public var markup:String;
public var profile:String;
public var profile_main:String;
public var uid: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, markup, uid, profile, mobile_profile, profile_main);
super.initialize();
}
}
}//package com.facebook.commands.profile
Section 137
//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 type:Number;
public var title:String;
public var items:InfoFieldsData;
public var uid:String;
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 _local1:Object;
var _local2:Number;
var _local3:Number;
var _local4:InfoItemData;
var _local5:Object;
var _local6:Object;
_local1 = {items:[], field:items.field};
_local2 = items.items.length;
_local3 = 0;
while (_local3 < _local2) {
_local4 = (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, title, type, JSON.encode(_local1), uid, format);
super.initialize();
}
}
}//package com.facebook.commands.profile
Section 138
//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 field:String;
public var options:Array;
public var format: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, field, options, format);
super.initialize();
}
}
}//package com.facebook.commands.profile
Section 139
//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, uid);
super.initialize();
}
}
}//package com.facebook.commands.sms
Section 140
//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 message:String;
public var session_id:Number;
public var req_session:Boolean;
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, uid, message, session_id, req_session);
super.initialize();
}
}
}//package com.facebook.commands.sms
Section 141
//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 limit:uint;
public var uid:String;
public static const SCHEMA:Array = ["uid", "limit"];
public static const METHOD_NAME:String = "status.get";
public function GetStatus(_arg1:String=null, _arg2:uint=100){
this.uid = _arg1;
this.limit = _arg2;
super(METHOD_NAME);
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, uid, limit);
super.initialize();
}
}
}//package com.facebook.commands.status
Section 142
//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, status, uid);
super.initialize();
}
}
}//package com.facebook.commands.status
Section 143
//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, post_id, comment);
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 144
//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 post_id:String;
public var uid: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, post_id, uid);
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 145
//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, post_id);
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 146
//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, uid);
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 147
//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 start_time:Date;
public var source_ids:Array;
public var filter_key:String;
public var end_time:Date;
public var metadata:Array;
public var limit:uint;
public var viewer_id:String;
public static const SCHEMA:Array = ["viewer_id", "source_ids", "start_time", "end_time", "limit", "filter_key", "metadata"];
public static const METHOD_NAME:String = "stream.get";
public function GetStream(_arg1:String=null, _arg2:Array=null, _arg3:Date=null, _arg4:Date=null, _arg5:uint=30, _arg6:String=null, _arg7:Array=null){
super(METHOD_NAME);
this.viewer_id = _arg1;
this.source_ids = _arg2;
this.start_time = _arg3;
this.end_time = _arg4;
this.limit = _arg5;
this.filter_key = _arg6;
this.metadata = _arg7;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, viewer_id, FacebookDataUtils.toArrayString(source_ids), FacebookDataUtils.toDateString(start_time), FacebookDataUtils.toDateString(end_time), limit, filter_key, FacebookDataUtils.toArrayString(metadata));
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 148
//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 message:String;
public var attachment:Object;
public var target_id:String;
public var action_links:Array;
public var uid:String;
public static const SCHEMA:Array = ["message", "attachment", "action_links", "target_id", "uid"];
public static const METHOD_NAME:String = "stream.publish";
public function PublishPost(_arg1:String=null, _arg2:Object=null, _arg3:Array=null, _arg4:String=null, _arg5:String=null){
super(METHOD_NAME);
this.message = _arg1;
this.attachment = _arg2;
this.action_links = _arg3;
this.target_id = _arg4;
this.uid = _arg5;
}
override facebook_internal function initialize():void{
var _local1:String;
_local1 = JSON.encode(action_links);
applySchema(SCHEMA, message, JSON.encode(attachment), ((_local1)!="null") ? _local1 : null, target_id, uid);
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 149
//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 comment_id:String;
public var uid: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, comment_id, uid);
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 150
//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 post_id:String;
public var uid: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, post_id, uid);
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 151
//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 var uid:String;
public static const SCHEMA:Array = ["post_id", "uid"];
public static const METHOD_NAME:String = "stream.remove";
public function RemovePost(_arg1:String, _arg2:String=null){
super(METHOD_NAME);
this.post_id = _arg1;
this.uid = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, post_id, uid);
super.initialize();
}
}
}//package com.facebook.commands.stream
Section 152
//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 uids:Array;
public var fields: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(uids), FacebookDataUtils.toArrayString(fields));
super.initialize();
}
}
}//package com.facebook.commands.users
Section 153
//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 154
//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 fields:Array;
public static const SCHEMA:Array = ["uids", "fields"];
public static const METHOD_NAME:String = "users.getStandardInfo";
public function GetStandardInfo(_arg1:Array, _arg2:Array){
super(METHOD_NAME);
this.uids = _arg1;
this.fields = _arg2;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, FacebookDataUtils.toArrayString(uids), FacebookDataUtils.toArrayString(fields));
super.initialize();
}
}
}//package com.facebook.commands.users
Section 155
//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, ext_perm, uid);
super.initialize();
}
}
}//package com.facebook.commands.users
Section 156
//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, uid);
super.initialize();
}
}
}//package com.facebook.commands.users
Section 157
//IsVerified (com.facebook.commands.users.IsVerified)
package com.facebook.commands.users {
import com.facebook.net.*;
public class IsVerified extends FacebookCall {
public static const SCHEMA:Array = [];
public static const METHOD_NAME:String = "users.isVerified";
public function IsVerified(_arg1:String=null){
super(METHOD_NAME);
}
}
}//package com.facebook.commands.users
Section 158
//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 clear:Boolean;
public var uid:String;
public var status_includes_verb:Boolean;
public var status:String;
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, status, clear, status_includes_verb, uid);
super.initialize();
}
}
}//package com.facebook.commands.users
Section 159
//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 160
//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 _data:Object;
protected var _description:String;
protected var _title:String;
protected var _ext:String;
public static const SCHEMA:Array = ["data", "title", "description"];
public static const METHOD_NAME:String = "video.upload";
public function UploadVideo(_arg1:String, _arg2:Object, _arg3:String=null, _arg4:String=null){
super(METHOD_NAME);
this.ext = _arg1;
this.data = _arg2;
this.title = _arg3;
this.description = _arg4;
}
override facebook_internal function initialize():void{
applySchema(SCHEMA, data, title, description);
super.initialize();
}
public function get ext():String{
return (_ext);
}
public function set title(_arg1:String):void{
_title = _arg1;
}
public function get data():Object{
return (_data);
}
public function set ext(_arg1:String):void{
_ext = _arg1;
}
public function set data(_arg1:Object):void{
_data = _arg1;
}
public function get title():String{
return (_title);
}
public function set description(_arg1:String):void{
_description = _arg1;
}
public function get description():String{
return (_description);
}
}
}//package com.facebook.commands.video
Section 161
//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 162
//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 163
//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 164
//GetAppPropertiesData (com.facebook.data.admin.GetAppPropertiesData)
package com.facebook.data.admin {
import com.facebook.data.*;
public class GetAppPropertiesData extends FacebookData {
public var appProperties:Object;
}
}//package com.facebook.data.admin
Section 165
//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 166
//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 167
//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 168
//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 169
//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 170
//RestrictionData (com.facebook.data.admin.RestrictionData)
package com.facebook.data.admin {
public class RestrictionData {
public var age_distribution:Number;
public var location:String;
public var type:Number;
public var age:Number;
}
}//package com.facebook.data.admin
Section 171
//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 canvas_name:String;
public var logo_url:String;
public var company_name:String;
public var display_name:String;
public var icon_url:String;
public var weekly_active_users:Number;
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 172
//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 173
//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 secret:String;
public var expires:Date;
public var session_key:String;
}
}//package com.facebook.data.auth
Section 174
//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 175
//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 176
//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 177
//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 178
//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 179
//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 180
//GetObjectTypeData (com.facebook.data.data.GetObjectTypeData)
package com.facebook.data.data {
import com.facebook.data.*;
public class GetObjectTypeData extends FacebookData {
public var name:String;
public var data_type:Number;
public var index_type:Number;
}
}//package com.facebook.data.data
Section 181
//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 182
//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 183
//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 184
//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 185
//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 186
//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 187
//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 188
//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 189
//SetAssociationsData (com.facebook.data.data.SetAssociationsData)
package com.facebook.data.data {
public class SetAssociationsData {
public var data:String;
public var obj_id1:Number;
public var obj_id2:Number;
public var assoc_time:Date;
}
}//package com.facebook.data.data
Section 190
//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 191
//CreateEventData (com.facebook.data.events.CreateEventData)
package com.facebook.data.events {
import com.facebook.*;
public class CreateEventData {
public var street:String;
public var subcategory:String;
public var start_time:Date;
public var name:String;
public var tagline:String;
public var privacy_type:String;
public var page_id:Number;
facebook_internal var schema:Array;
public var email:String;
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 category: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){
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 192
//EditEventData (com.facebook.data.events.EditEventData)
package com.facebook.data.events {
public class EditEventData {
public var street:String;
public var category:String;
public var start_time:Date;
public var tagline:String;
public var privacy_type:String;
public var host_id:Number;
public var description:String;
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 subcategory: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){
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 193
//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 194
//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 195
//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 196
//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 197
//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 198
//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 199
//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 200
//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 201
//GetMembersData (com.facebook.data.events.GetMembersData)
package com.facebook.data.events {
import com.facebook.data.*;
public class GetMembersData extends FacebookData {
public var attending:Array;
public var not_replied:Array;
public var declined:Array;
public var unsure:Array;
}
}//package com.facebook.data.events
Section 202
//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 203
//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 204
//AbstractTagData (com.facebook.data.fbml.AbstractTagData)
package com.facebook.data.fbml {
public class AbstractTagData {
public var description:String;
public var name:String;
public var header_fbml:String;
public var attributes:AttributeCollection;
public var type:String;
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 205
//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 206
//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 207
//ContainerTagData (com.facebook.data.fbml.ContainerTagData)
package com.facebook.data.fbml {
public class ContainerTagData extends AbstractTagData {
public var close_tag_fbml:String;
public var open_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 208
//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 209
//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){
super(_arg1, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
this.fbml = _arg2;
}
}
}//package com.facebook.data.fbml
Section 210
//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 211
//TagData (com.facebook.data.fbml.TagData)
package com.facebook.data.fbml {
public class TagData {
public var description:String;
public var name:String;
public var footer_fbml: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 close_tag_fbml:String;
}
}//package com.facebook.data.fbml
Section 212
//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 213
//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 214
//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 215
//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 216
//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 217
//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 218
//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 219
//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 220
//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 221
//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 222
//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 223
//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 224
//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 225
//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 226
//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 227
//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 228
//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 229
//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 members:Array;
public var notReplied:Array;
public var officers:Array;
}
}//package com.facebook.data.groups
Section 230
//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 231
//GroupData (com.facebook.data.groups.GroupData)
package com.facebook.data.groups {
import com.facebook.data.*;
public class GroupData {
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 group_type: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_subtype:String;
public var description:String;
}
}//package com.facebook.data.groups
Section 232
//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 233
//NoteData (com.facebook.data.notes.NoteData)
package com.facebook.data.notes {
public class NoteData {
public var note_id:String;
public var created_time:Date;
public var updated_time:Date;
public var title:String;
public var content:String;
public var uid:String;
}
}//package com.facebook.data.notes
Section 234
//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 235
//GetNotificationData (com.facebook.data.notifications.GetNotificationData)
package com.facebook.data.notifications {
import com.facebook.data.*;
public class GetNotificationData extends FacebookData {
public var group_invites:Array;
public var notificationCollection:NotificationCollection;
public var friendsRequests:Array;
public var event_invites:Array;
}
}//package com.facebook.data.notifications
Section 236
//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 237
//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 238
//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 239
//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 240
//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 241
//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 relax:Boolean;
public var think:Boolean;
public var dance:Boolean;
public var headphones:Boolean;
public var sing:Boolean;
public var workout:Boolean;
public var intimate:Boolean;
}
}//package com.facebook.data.pages
Section 242
//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 243
//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 244
//PageInfoData (com.facebook.data.pages.PageInfoData)
package com.facebook.data.pages {
import com.facebook.data.*;
import flash.events.*;
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 pic_small:String;
public var schedule:String;
public var website:String;
public var founded:String;
public var influences:String;
public var hours:String;
public var record_label:String;
public var band_members:String;
public var location:FacebookLocation;
public var mission:String;
public var directed_by:String;
public var type:String;
public var awards:String;
public var pic_large:String;
public var page_id:Number;
public var network:String;
public var pic_big:String;
public var studio:String;
public var release_date:String;
public var products:String;
public var hometown:String;
public var pic_square:String;
public var produced_by: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 245
//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 246
//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 247
//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 248
//AlbumData (com.facebook.data.photos.AlbumData)
package com.facebook.data.photos {
public class AlbumData {
public var cover_pid:String;
public var size:Number;
public var modified:Date;
public var modified_major:Date;
public var name:String;
public var aid:String;
public var type:String;
public var edit_link:String;
public var created:Date;
public var visible:String;
public var owner:String;
public var location:String;
public var link:String;
public var description:String;
}
}//package com.facebook.data.photos
Section 249
//FacebookPhoto (com.facebook.data.photos.FacebookPhoto)
package com.facebook.data.photos {
import com.facebook.data.*;
public class FacebookPhoto extends FacebookData {
public var src_small:String;
public var pid:String;
public var tags:Array;
public var src:String;
public var src_big:String;
public var created:Date;
public var caption:String;
public var owner:Number;
public var link:String;
public var aid:String;
public function FacebookPhoto(){
tags = [];
super();
}
}
}//package com.facebook.data.photos
Section 250
//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 251
//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 252
//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 253
//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 254
//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 255
//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 owner:String;
public var created:Date;
public var link:String;
public var aid:String;
}
}//package com.facebook.data.photos
Section 256
//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(_arg1, TagData);
}
public function addPhotoTag(_arg1:TagData):void{
this.addItem(_arg1);
}
}
}//package com.facebook.data.photos
Section 257
//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 258
//TagData (com.facebook.data.photos.TagData)
package com.facebook.data.photos {
public class TagData {
protected var _actualText:String;
public var pid:String;
protected var _actualY:Number;
protected var _actualX:Number;
public var created:Date;
public var tag_uid:String;
public var subject:String;
public function set y(_arg1:Number):void{
_actualY = _arg1;
}
public function set text(_arg1:String):void{
_actualText = _arg1;
}
public function get ycoord():Number{
return (_actualY);
}
public function set tag_text(_arg1:String):void{
_actualText = _arg1;
}
public function get text():String{
return (_actualText);
}
public function set x(_arg1:Number):void{
_actualX = _arg1;
}
public function get tag_text():String{
return (_actualText);
}
public function set ycoord(_arg1:Number):void{
_actualY = _arg1;
}
public function get y():Number{
return (_actualY);
}
public function set xcoord(_arg1:Number):void{
_actualX = _arg1;
}
public function get xcoord():Number{
return (_actualX);
}
public function get x():Number{
return (_actualX);
}
}
}//package com.facebook.data.photos
Section 259
//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 260
//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 261
//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 262
//InfoItemData (com.facebook.data.profile.InfoItemData)
package com.facebook.data.profile {
import com.facebook.*;
public class InfoItemData {
public var sublabel:String;
public var label:String;
facebook_internal var schema:Array;
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 263
//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 264
//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 265
//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 266
//Status (com.facebook.data.status.Status)
package com.facebook.data.status {
public class Status {
public var message:String;
public var status_id:String;
public var time:Date;
public var uid:String;
public var source:String;
}
}//package com.facebook.data.status
Section 267
//ActionLinkCollection (com.facebook.data.stream.ActionLinkCollection)
package com.facebook.data.stream {
import com.facebook.utils.*;
public class ActionLinkCollection extends FacebookArrayCollection {
public function ActionLinkCollection(){
super(null, ActionLinkData);
}
}
}//package com.facebook.data.stream
Section 268
//ActionLinkData (com.facebook.data.stream.ActionLinkData)
package com.facebook.data.stream {
public class ActionLinkData {
public var href:String;
public var text:String;
}
}//package com.facebook.data.stream
Section 269
//AttachmentData (com.facebook.data.stream.AttachmentData)
package com.facebook.data.stream {
public class AttachmentData {
public var name:String;
public var title:String;
public var body:String;
public var media:Array;
public var caption:String;
public var href:String;
public var text:String;
public var properties:Array;
public var label:String;
public var icon:String;
public var description:String;
}
}//package com.facebook.data.stream
Section 270
//CommentsData (com.facebook.data.stream.CommentsData)
package com.facebook.data.stream {
public class CommentsData {
public var posts:Array;
public var can_post:Boolean;
public var count:uint;
public var can_remove:Boolean;
}
}//package com.facebook.data.stream
Section 271
//FlashMedia (com.facebook.data.stream.FlashMedia)
package com.facebook.data.stream {
public class FlashMedia {
public var source_url:String;
public var preview_img:String;
}
}//package com.facebook.data.stream
Section 272
//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 273
//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 274
//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 profiles:ProfileCollection;
public var albums:AlbumCollection;
public var stories:StreamStoryCollection;
}
}//package com.facebook.data.stream
Section 275
//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 href:String;
public var count:uint;
public var friends:Array;
public var sample:Array;
}
}//package com.facebook.data.stream
Section 276
//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 277
//MusicMedia (com.facebook.data.stream.MusicMedia)
package com.facebook.data.stream {
public class MusicMedia {
public var title:String;
public var source_url:String;
public var artist:String;
}
}//package com.facebook.data.stream
Section 278
//PhotoMedia (com.facebook.data.stream.PhotoMedia)
package com.facebook.data.stream {
public class PhotoMedia {
public var pid:String;
public var index:uint;
public var owner:String;
public var aid:String;
}
}//package com.facebook.data.stream
Section 279
//PostCommentData (com.facebook.data.stream.PostCommentData)
package com.facebook.data.stream {
public class PostCommentData {
public var fromid:String;
public var text:String;
public var time:Date;
public var id:String;
}
}//package com.facebook.data.stream
Section 280
//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 281
//ProfileData (com.facebook.data.stream.ProfileData)
package com.facebook.data.stream {
public class ProfileData {
public var name:String;
public var url:String;
public var pic_square:String;
public var id:String;
}
}//package com.facebook.data.stream
Section 282
//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 283
//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 284
//StreamFilterData (com.facebook.data.stream.StreamFilterData)
package com.facebook.data.stream {
public class StreamFilterData {
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 type:String;
public var is_visible:Boolean;
}
}//package com.facebook.data.stream
Section 285
//StreamMediaData (com.facebook.data.stream.StreamMediaData)
package com.facebook.data.stream {
public class StreamMediaData {
public var src:String;
public var music:MusicMedia;
public var alt:String;
public var href:String;
public var flash:FlashMedia;
public var photo:PhotoMedia;
public var type:String;
public var video:VideoMedia;
public function toString():String{
return ([("type: " + type), ("href: " + href), ("src: " + src), ("alt: " + alt), ("photo: " + photo), ("video: " + video), ("flash: " + flash)].join(": "));
}
}
}//package com.facebook.data.stream
Section 286
//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 287
//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 target_id:String;
public var sourceXML:XML;
public var message:String;
public var updated_time:Date;
public var source_id:String;
public var filter_key:String;
public var post_id:String;
public var action_links:Array;
public var privacy:String;
public var attachment:AttachmentData;
public var actor_id:String;
public var is_hidden:Boolean;
public var viewer_id:String;
public var permalink: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 288
//VideoMedia (com.facebook.data.stream.VideoMedia)
package com.facebook.data.stream {
public class VideoMedia {
public var permalink:String;
public var preview_img:String;
public var display_url:String;
public var owner:String;
public var source_url:String;
}
}//package com.facebook.data.stream
Section 289
//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 290
//AffiliationData (com.facebook.data.users.AffiliationData)
package com.facebook.data.users {
public class AffiliationData {
public var nid:Number;
public var name:String;
public var status:String;
public var type:String;
public var year:String;
}
}//package com.facebook.data.users
Section 291
//FacebookUser (com.facebook.data.users.FacebookUser)
package com.facebook.data.users {
import com.facebook.data.*;
public class FacebookUser extends FacebookData {
public var isLoggedInUser:Boolean;
public var status:StatusData;
public var education_history:Array;
public var pic_big_with_logo:String;
public var notes_count:int;
public var pic_small:String;
public var has_added_app:Boolean;
public var pic_with_logo:String;
public var music:String;
public var religion:String;
public var significant_other_id:int;
public var email_hashes:Array;
public var hs2_name:String;
public var movies:String;
public var uid:String;
public var hometown_location:FacebookLocation;
public var wall_count:int;
public var proxied_email:String;
public var meeting_sex:Array;
public var sex:String;
public var work_history:Array;
public var hs_info:String;
public var pic_square:String;
public var hs1_id:int;
public var quotes:String;
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 pic_big:String;
public var networkAffiliations:Array;
public var birthdayDate:Date;
public var hs2_id:int;
public var relationship_status:String;
public var profile_url:String;
public var profile_update_time:Date;
public var pic_square_with_logo:String;
public var timezone:int;
public var activities:String;
public var political:String;
public function FacebookUser():void{
name = "";
first_name = "";
last_name = "";
super();
}
}
}//package com.facebook.data.users
Section 292
//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:String):FacebookUser{
return ((findItemByProperty("uid", _arg1) as FacebookUser));
}
public function addUser(_arg1:FacebookUser):void{
addItem(_arg1);
}
}
}//package com.facebook.data.users
Section 293
//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 294
//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 295
//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 296
//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 297
//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 298
//StatusData (com.facebook.data.users.StatusData)
package com.facebook.data.users {
public class StatusData {
public var message:String;
public var time:Date;
}
}//package com.facebook.data.users
Section 299
//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 300
//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: " + uid) + " affiation:") + affiations) + " first_name:") + first_name) + " last_name:") + last_name) + " name:") + name) + " timezone: ") + timezone) + "]"));
}
}
}//package com.facebook.data.users
Section 301
//ArrayResultData (com.facebook.data.ArrayResultData)
package com.facebook.data {
public class ArrayResultData extends FacebookData {
public var arrayResult:Array;
}
}//package com.facebook.data
Section 302
//BooleanResultData (com.facebook.data.BooleanResultData)
package com.facebook.data {
public class BooleanResultData extends FacebookData {
public var value:Boolean;
}
}//package com.facebook.data
Section 303
//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 304
//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(){
concentrations = [];
}
}
}//package com.facebook.data
Section 305
//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 306
//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 307
//FacebookLocation (com.facebook.data.FacebookLocation)
package com.facebook.data {
public class FacebookLocation extends FacebookData {
public var street:String;
public var country:String;
public var state:String;
public var zip:String;
public var city:String;
}
}//package com.facebook.data
Section 308
//FacebookNetwork (com.facebook.data.FacebookNetwork)
package com.facebook.data {
public class FacebookNetwork {
public var nid:int;
public var name:String;
public var status:String;
public var type:String;
public var year:String;
}
}//package com.facebook.data
Section 309
//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 310
//FBJSData (com.facebook.data.FBJSData)
package com.facebook.data {
public class FBJSData extends FacebookData {
public var results:Array;
}
}//package com.facebook.data
Section 311
//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 312
//JSONResultData (com.facebook.data.JSONResultData)
package com.facebook.data {
public class JSONResultData extends FacebookData {
public var result:Object;
}
}//package com.facebook.data
Section 313
//NumberResultData (com.facebook.data.NumberResultData)
package com.facebook.data {
public class NumberResultData extends FacebookData {
public var value:Number;
}
}//package com.facebook.data
Section 314
//StringResultData (com.facebook.data.StringResultData)
package com.facebook.data {
public class StringResultData extends FacebookData {
public var value:String;
}
}//package com.facebook.data
Section 315
//XMLDataParser (com.facebook.data.XMLDataParser)
package com.facebook.data {
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 flash.events.*;
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(){
fb_namespace = new Namespace("http://api.facebook.com/1.0/");
}
protected function parseGetPhotos(_arg1:XML):GetPhotosData{
var _local2:GetPhotosData;
var _local3:PhotoCollection;
var _local4:*;
var _local5:PhotoData;
_local2 = new GetPhotosData();
_local3 = new PhotoCollection();
for each (_local4 in _arg1..fb_namespace::photo) {
_local5 = new PhotoData();
_local5.pid = _local4.fb_namespace::pid;
_local5.aid = _local4.fb_namespace::aid;
_local5.owner = _local4.fb_namespace::owner;
_local5.src = _local4.fb_namespace::src;
_local5.src_big = _local4.fb_namespace::src_big;
_local5.src_small = _local4.fb_namespace::src_small;
_local5.caption = _local4.fb_namespace::caption;
_local5.created = FacebookXMLParserUtils.toDate(_local4.fb_namespace::created);
_local3.addPhoto(_local5);
};
_local2.photoCollection = _local3;
return (_local2);
}
protected function parseGetNotifications(_arg1:XML):GetNotificationData{
var _local2:GetNotificationData;
var _local3:NotificationCollection;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:NotificationMessageData;
var _local8:NotificationPokeData;
var _local9:NotificationShareData;
_local2 = new GetNotificationData();
_local3 = new NotificationCollection();
for each (_local4 in _arg1.fb_namespace::messages) {
_local7 = new NotificationMessageData();
_local7.unread = _local4.fb_namespace::unread;
_local7.most_recent = _local4.fb_namespace::most_recent;
_local3.addItem(_local7);
};
for each (_local5 in _arg1.fb_namespace::pokes) {
_local8 = new NotificationPokeData();
_local8.unread = _local5.fb_namespace::unread;
_local8.most_recent = _local5.fb_namespace::most_recent;
_local3.addItem(_local8);
};
for each (_local6 in _arg1.fb_namespace::shares) {
_local9 = new NotificationShareData();
_local9.unread = _local6.fb_namespace::unread;
_local9.most_recent = _local6.fb_namespace::most_recent;
_local3.addItem(_local9);
};
_local2.friendsRequests = FacebookXMLParserUtils.toUIDArray(_arg1.fb_namespace::friend_requests[0]);
_local2.group_invites = FacebookXMLParserUtils.toUIDArray(_arg1.fb_namespace::group_invites[0]);
_local2.event_invites = FacebookXMLParserUtils.toUIDArray(_arg1.fb_namespace::event_invites[0]);
_local2.notificationCollection = _local3;
return (_local2);
}
public function createFacebookError(_arg1:Object, _arg2:String):FacebookError{
var _local3:FacebookError;
_local3 = 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 parseSendEmail(_arg1:XML):ArrayResultData{
var _local2:ArrayResultData;
_local2 = new ArrayResultData();
_local2.arrayResult = FacebookXMLParserUtils.toArray(_arg1);
return (_local2);
}
protected function getAffiliation(_arg1:XML):AffiliationCollection{
var _local2:AffiliationCollection;
var _local3:*;
var _local4:AffiliationData;
_local2 = new AffiliationCollection();
for each (_local3 in _arg1..fb_namespace::afflication) {
_local4 = new AffiliationData();
_local4.nid = _local3.fb_namespace::nid;
_local4.name = _local3.fb_namespace::name;
_local4.type = _local3.fb_namespace::type;
_local4.status = _local3.fb_namespace::status;
_local4.year = _local3.fb_namespace::year;
_local2.addAffiliation(_local4);
};
return (_local2);
}
protected function parseGetUserPreferences(_arg1:XML):GetUserPreferencesData{
var _local2:GetUserPreferencesData;
var _local3:PreferenceCollection;
var _local4:*;
var _local5:PreferenceData;
_local2 = new GetUserPreferencesData();
_local3 = new PreferenceCollection();
for each (_local4 in _arg1..fb_namespace::preference) {
_local5 = new PreferenceData();
_local5.pref_id = _local4.fb_namespace::pref_id;
_local5.value = _local4.fb_namespace::value;
_local3.addItem(_local5);
};
_local2.perferenceCollection = _local3;
return (_local2);
}
protected function parseGetStandardInfo(_arg1:XML):GetStandardInfoData{
var _local2:GetStandardInfoData;
var _local3:UserCollection;
var _local4:*;
var _local5:UserData;
_local2 = new GetStandardInfoData();
_local3 = new UserCollection();
for each (_local4 in _arg1..fb_namespace::user) {
_local5 = new UserData();
_local5.uid = _local4.fb_namespace::uid;
_local5.affiations = getAffiliation(XML(_local4.fb_namespace::affiliations.toXMLString()));
_local5.first_name = _local4.fb_namespace::first_name;
_local5.last_name = _local4.fb_namespace::last_name;
_local5.name = _local4.fb_namespace::name;
_local5.timezone = _local4.fb_namespace::timezone;
_local3.addItem(_local5);
};
_local2.userCollection = _local3;
return (_local2);
}
protected function parseGetAppProperties(_arg1:XML):GetAppPropertiesData{
var _local2:GetAppPropertiesData;
_local2 = new GetAppPropertiesData();
_local2.appProperties = JSON.decode(_arg1.toString());
return (_local2);
}
protected function parseGetRegisteredTemplateBundles(_arg1:XML):GetRegisteredTemplateBundleData{
var _local2:GetRegisteredTemplateBundleData;
var _local3:TemplateBundleCollection;
var _local4:TemplateCollection;
var _local5:*;
_local2 = new GetRegisteredTemplateBundleData();
_local3 = new TemplateBundleCollection();
_local4 = new TemplateCollection();
for each (_local5 in _arg1..fb_namespace::template_bundle) {
getTemplate(_local5.fb_namespace::one_line_story_template, _local4);
getTemplate(_local5.fb_namespace::short_story_templates, _local4);
getTemplate(_local5.fb_namespace::full_story_template, _local4);
_local4.template_bundle_id = _local5.fb_namespace::template_bundle_id;
_local4.time_created = FacebookXMLParserUtils.toDate(_local5.fb_namespace::time_created);
};
_local2.bundleCollection = _local4;
return (_local2);
}
protected function parseGetRegisteredTemplateBundleByID(_arg1:XML):GetRegisteredTemplateBundleByIDData{
var _local2:GetRegisteredTemplateBundleByIDData;
var _local3:TemplateCollection;
_local2 = new GetRegisteredTemplateBundleByIDData();
_local3 = new TemplateCollection();
getTemplate(_arg1.fb_namespace::one_line_story_template, _local3);
getTemplate(_arg1.fb_namespace::short_story_templates, _local3);
getTemplate(_arg1.fb_namespace::full_story_template, _local3);
_local3.template_bundle_id = _arg1.fb_namespace::template_bundle_id;
_local3.time_created = FacebookXMLParserUtils.toDate(_arg1.fb_namespace::time_created);
_local2.templateCollection = _local3;
return (_local2);
}
protected function responseNodeNameToMethodName(_arg1:String):String{
var _local2:Array;
_local2 = _arg1.split("_");
_local2.pop();
return (_local2.join("."));
}
protected function parseGetObjectTypes(_arg1:XML):GetObjectTypesData{
var _local2:GetObjectTypesData;
var _local3:ObjectTypesCollection;
var _local4:*;
var _local5:ObjectTypesData;
_local2 = new GetObjectTypesData();
_local3 = new ObjectTypesCollection();
for each (_local4 in _arg1..fb_namespace::object_type_info) {
_local5 = new ObjectTypesData();
_local5.name = _local4.fb_namespace::name;
_local5.object_class = _local4.fb_namespace::object_class;
_local3.addItem(_local5);
};
_local2.objectTypeCollection = _local3;
return (_local2);
}
protected function parseFacebookPhoto(_arg1:XML):FacebookPhoto{
var _local2:FacebookPhoto;
_local2 = new FacebookPhoto();
_local2.pid = FacebookXMLParserUtils.toStringValue(_arg1.fb_namespace::pid[0]);
_local2.aid = FacebookXMLParserUtils.toStringValue(_arg1.fb_namespace::aid[0]);
_local2.owner = FacebookXMLParserUtils.toNumber(_arg1.fb_namespace::owner[0]);
_local2.src = FacebookXMLParserUtils.toStringValue(_arg1.fb_namespace::src[0]);
_local2.src_big = FacebookXMLParserUtils.toStringValue(_arg1.fb_namespace::src_big[0]);
_local2.src_small = FacebookXMLParserUtils.toStringValue(_arg1.fb_namespace::src_small[0]);
_local2.link = FacebookXMLParserUtils.toStringValue(_arg1.fb_namespace::link[0]);
_local2.caption = FacebookXMLParserUtils.toStringValue(_arg1.fb_namespace::caption[0]);
return (_local2);
}
protected function parseGetObjectType(_arg1:XML):GetObjectTypeData{
var _local2:GetObjectTypeData;
_local2 = new GetObjectTypeData();
_local2.name = _arg1.fb_namespace::name;
_local2.data_type = _arg1.fb_namespace::data_type;
_local2.index_type = _arg1.fb_namespace::index_type;
return (_local2);
}
protected function createTagObject(_arg1:XML, _arg2:Array){
var _local3:Number;
var _local4:String;
var _local5:AbstractTagData;
var _local6:Number;
var _local7:Object;
_local3 = _arg1.children().length();
_local4 = _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];
};
_local6 = 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 _local2:GetNotesData;
var _local3:NotesCollection;
var _local4:*;
var _local5:NoteData;
_local2 = new GetNotesData();
_local3 = new NotesCollection();
for each (_local4 in _arg1..fb_namespace::note) {
_local5 = new NoteData();
_local5.note_id = _local4.fb_namespace::note_id;
_local5.title = _local4.fb_namespace::title;
_local5.content = _local4.fb_namespace::content;
_local5.created_time = FacebookXMLParserUtils.toDate(_local4.fb_namespace::created_time);
_local5.updated_time = FacebookXMLParserUtils.toDate(_local4.fb_namespace::updated_time);
_local5.uid = _local4.fb_namespace::uid;
_local3.addItem(_local5);
};
_local2.notesCollection = _local3;
return (_local2);
}
protected function parseGetMetrics(_arg1:XML):GetMetricsData{
var _local2:GetMetricsData;
var _local3:MetricsDataCollection;
var _local4:*;
var _local5:MetricsData;
_local2 = new GetMetricsData();
_local3 = new MetricsDataCollection();
for each (_local4 in _arg1..fb_namespace::metrics) {
_local5 = new MetricsData();
_local5.end_time = FacebookXMLParserUtils.toDate(_local4.fb_namespace::end_time);
_local5.active_users = _local4.fb_namespace::active_users;
_local5.canvas_page_views = _local4.fb_namespace::canvas_page_views;
_local3.addItem(_local5);
};
_local2.metricsCollection = _local3;
return (_local2);
}
protected function parsePageGetInfo(_arg1:XML):GetPageInfoData{
var _local2:GetPageInfoData;
var _local3:PageInfoCollection;
var _local4:XMLList;
var _local5:Object;
var _local6:PageInfoData;
_local2 = new GetPageInfoData();
_local3 = new PageInfoCollection();
_local4 = _arg1.fb_namespace::page;
for each (_local5 in _local4) {
_local6 = new PageInfoData();
_local6.page_id = _local5.fb_namespace::page_id;
_local6.name = _local5.fb_namespace::name;
_local6.pic_small = _local5.fb_namespace::pic_small;
_local6.pic_big = _local5.fb_namespace::pic_big;
_local6.pic_square = _local5.fb_namespace::pic_square;
_local6.pic_large = _local5.fb_namespace::pic_large;
_local6.type = _local5.fb_namespace::type;
_local6.website = _local5.fb_namespace::website;
_local6.location = FacebookXMLParserUtils.createLocation(_local5.fb_namespace::location[0], fb_namespace);
_local6.hours = _local5.fb_namespace::hours;
_local6.band_members = _local5.fb_namespace::band_members;
_local6.bio = _local5.fb_namespace::bio;
_local6.hometown = _local5.fb_namespace::hometown;
_local6.genre = FacebookXMLParserUtils.toStringValue(_local5.fb_namespace::genre[0]);
_local6.record_label = _local5.fb_namespace::record_label;
_local6.influences = _local5.fb_namespace::influences;
_local6.has_added_app = FacebookXMLParserUtils.toBoolean(_local5.fb_namespace::has_added_app[0]);
_local6.founded = _local5.fb_namespace::founded;
_local6.company_overview = _local5.fb_namespace::company_overview;
_local6.mission = _local5.fb_namespace::mission;
_local6.products = _local5.fb_namespace::products;
_local6.release_date = _local5.fb_namespace::release_date;
_local6.starring = _local5.fb_namespace::starring;
_local6.written_by = _local5.fb_namespace::written_by;
_local6.directed_by = _local5.fb_namespace::directed_by;
_local6.produced_by = _local5.fb_namespace::produced_by;
_local6.studio = _local5.fb_namespace::studio;
_local6.awards = _local5.fb_namespace::awards;
_local6.plot_outline = _local5.fb_namespace::plot_outline;
_local6.network = _local5.fb_namespace::network;
_local6.season = _local5.fb_namespace::season;
_local6.schedule = _local5.fb_namespace::schedule;
_local3.addPageInfo(_local6);
};
_local2.pageInfoCollection = _local3;
return (_local2);
}
protected function parseGetTags(_arg1:XML):GetTagsData{
var _local2:GetTagsData;
var _local3:PhotoTagCollection;
var _local4:*;
var _local5:TagData;
_local2 = new GetTagsData();
_local3 = new PhotoTagCollection();
for each (_local4 in _arg1..fb_namespace::photo_tag) {
_local5 = new TagData();
_local5.text = _local4.fb_namespace::text;
_local5.pid = _local4.fb_namespace::pid;
_local5.subject = _local4.fb_namespace::subject;
_local5.xcoord = _local4.fb_namespace::xcoord;
_local5.ycoord = _local4.fb_namespace::ycoord;
_local5.created = FacebookXMLParserUtils.toDate(_local4.fb_namespace::created);
_local3.addPhotoTag(_local5);
};
_local2.photoTagsCollection = _local3;
return (_local2);
}
protected function parseGetGroupMembers(_arg1:XML):GetMemberData{
var _local2:GetMemberData;
_local2 = new GetMemberData();
_local2.members = FacebookXMLParserUtils.toUIDArray(_arg1.fb_namespace::members[0]);
_local2.admins = FacebookXMLParserUtils.toUIDArray(_arg1.fb_namespace::admins[0]);
_local2.officers = FacebookXMLParserUtils.toUIDArray(_arg1.fb_namespace::officers[0]);
_local2.notReplied = FacebookXMLParserUtils.toUIDArray(_arg1.fb_namespace::not_replied[0]);
return (_local2);
}
protected function parseGetGroups(_arg1:XML):GetGroupData{
var _local2:GetGroupData;
var _local3:GroupCollection;
var _local4:*;
var _local5:GroupData;
_local2 = new GetGroupData();
_local3 = new GroupCollection();
for each (_local4 in _arg1..fb_namespace::group) {
_local5 = new GroupData();
_local5.gid = _local4.fb_namespace::gid;
_local5.name = _local4.fb_namespace::name;
_local5.nid = _local4.fb_namespace::nid;
_local5.description = _local4.fb_namespace::description;
_local5.group_type = _local4.fb_namespace::group_type;
_local5.group_subtype = _local4.fb_namespace::group_subtype;
_local5.recent_news = _local4.fb_namespace::recent_news;
_local5.pic = _local4.fb_namespace::pic;
_local5.pic_big = _local4.fb_namespace::pic_big;
_local5.pic_small = _local4.fb_namespace::pic_small;
_local5.creator = _local4.fb_namespace::creator;
_local5.update_time = FacebookXMLParserUtils.toDate(_local4.fb_namespace::update_time);
_local5.office = _local4.fb_namespace::office;
_local5.website = _local4.fb_namespace::website;
_local5.venue = FacebookXMLParserUtils.createLocation(_local4.fb_namespace::venue[0], fb_namespace);
_local5.privacy = _local4.fb_namespace::privacy;
_local3.addGroup(_local5);
};
_local2.groups = _local3;
return (_local2);
}
protected function parseCreateAlbum(_arg1:XML):GetCreateAlbumData{
var _local2:GetCreateAlbumData;
var _local3:AlbumData;
_local2 = new GetCreateAlbumData();
_local3 = new AlbumData();
_local3.aid = _arg1.fb_namespace::aid;
_local3.cover_pid = _arg1.fb_namespace::cover_pid;
_local3.owner = _arg1.fb_namespace::owner;
_local3.name = _arg1.fb_namespace::name;
_local3.created = FacebookXMLParserUtils.toDate(_arg1.fb_namespace::created);
_local3.modified = FacebookXMLParserUtils.toDate(_arg1.fb_namespace::modified);
_local3.description = _arg1.fb_namespace::description;
_local3.location = _arg1.fb_namespace::location;
_local3.link = _arg1.fb_namespace::link;
_local3.size = _arg1.fb_namespace::size;
_local3.visible = _arg1.fb_namespace::visible;
_local2.albumData = _local3;
return (_local2);
}
protected function parseGetAllocation(_arg1:XML):GetAllocationData{
var _local2:GetAllocationData;
_local2 = new GetAllocationData();
_local2.allocationLimit = Number(_arg1.toString());
return (_local2);
}
protected function parseGetCookies(_arg1:XML):GetCookiesData{
var _local2:GetCookiesData;
_local2 = new GetCookiesData();
_local2.uid = _arg1.fb_namespace::uid;
_local2.name = _arg1.fb_namespace::name;
_local2.value = _arg1.fb_namespace::value;
_local2.expires = _arg1.fb_namespace::expires;
_local2.path = _arg1.fb_namespace::path;
return (_local2);
}
protected function parseGetCustomTags(_arg1:XML):GetCustomTagsData{
var _local2:Array;
var _local3:GetCustomTagsData;
var _local4:TagCollection;
var _local5:*;
_local2 = ["type", "name", "open_tag_fbml", "description", "close_tag_fbml", "is_public", "attributes", "header_fbml", "footer_fbml", "fbml"];
_local3 = new GetCustomTagsData();
_local4 = new TagCollection();
for each (_local5 in _arg1..fb_namespace::custom_tag) {
_local4.addItem(createTagObject(_local5, _local2));
};
_local3.tagCollection = _local4;
return (_local3);
}
protected function parseGetAlbums(_arg1:XML):GetAlbumsData{
var _local2:GetAlbumsData;
_local2 = new GetAlbumsData();
_local2.albumCollection = FacebookXMLParserUtils.createAlbumCollection(_arg1, fb_namespace);
return (_local2);
}
protected function parseGetInfo(_arg1:XML):GetInfoData{
var _local2:FacebookUserCollection;
var _local3:XMLList;
var _local4:uint;
var _local5:uint;
var _local6:GetInfoData;
var _local7:FacebookUser;
_local2 = new FacebookUserCollection();
_local3 = _arg1..fb_namespace::user;
_local4 = _local3.length();
_local5 = 0;
while (_local5 < _local4) {
_local7 = FacebookUserXMLParser.createFacebookUser(_local3[_local5], fb_namespace);
_local2.addItem(_local7);
_local5++;
};
_local6 = new GetInfoData();
_local6.userCollection = _local2;
return (_local6);
}
protected function parseGetLists(_arg1:XML):GetListsData{
var _local2:GetListsData;
var _local3:Array;
var _local4:*;
var _local5:ListsData;
_local2 = new GetListsData();
_local3 = [];
for each (_local4 in _arg1..fb_namespace::friendlist) {
_local5 = new ListsData();
_local5.flid = _local4.fb_namespace::flid;
_local5.name = _local4.fb_namespace::name;
_local3.push(_local5);
};
_local2.lists = _local3;
return (_local2);
}
public function parse(_arg1:String, _arg2:String):FacebookData{
var _local3:FacebookData;
var _local4:XML;
_local4 = new XML(_arg1);
switch (_arg2){
case "application.getPublicInfo":
_local3 = parseGetPublicInfo(_local4);
break;
case "data.getCookies":
_local3 = parseGetCookies(_local4);
break;
case "admin.getAllocation":
_local3 = parseGetAllocation(_local4);
break;
case "admin.getAppProperties":
_local3 = parseGetAppProperties(_local4);
break;
case "admin.getMetrics":
_local3 = parseGetMetrics(_local4);
break;
case "auth.getSession":
_local3 = new GetSessionData();
(_local3 as GetSessionData).expires = FacebookXMLParserUtils.toDate(_local4.fb_namespace::expires);
(_local3 as GetSessionData).uid = FacebookXMLParserUtils.toStringValue(_local4.fb_namespace::uid[0]);
(_local3 as GetSessionData).session_key = _local4.fb_namespace::session_key.toString();
(_local3 as GetSessionData).secret = String(_local4.fb_namespace::secret);
break;
case "feed.getRegisteredTemplateBundles":
_local3 = parseGetRegisteredTemplateBundles(_local4);
break;
case "friends.areFriends":
_local3 = parseAreFriends(_local4);
break;
case "notes.get":
_local3 = parseGetNotes(_local4);
break;
case "friends.get":
_local3 = parseGetFriends(_local4);
break;
case "friends.getAppUsers":
_local3 = parseGetAppUsersData(_local4);
break;
case "friends.getLists":
_local3 = parseGetLists(_local4);
break;
case "groups.get":
_local3 = 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 = parseGetGroupMembers(_local4);
break;
case "users.getInfo":
_local3 = 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 = parseGetNotifications(_local4);
break;
case "feed.getRegisteredTemplateBundleByID":
_local3 = parseGetRegisteredTemplateBundleByID(_local4);
break;
case "users.getStandardInfo":
_local3 = parseGetStandardInfo(_local4);
break;
case "feed.getRegisteredTemplateBundles":
_local3 = parseGetRegisteredTemplateBundles(_local4);
break;
case "data.getUserPreferences":
_local3 = 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 = parseSendEmail(_local4);
break;
case "data.getObjectTypes":
_local3 = parseGetObjectTypes(_local4);
break;
case "users.getStandardInfo":
_local3 = parseGetStandardInfo(_local4);
break;
case "data.getObjectType":
_local3 = parseGetObjectType(_local4);
break;
case "events.get":
_local3 = parseGetEvent(_local4);
break;
case "events.getMembers":
_local3 = parseGetMembers(_local4);
break;
case "fql.multiquery":
_local3 = new FacebookData();
break;
case "fql.query":
_local3 = new FacebookData();
break;
case "photos.createAlbum":
_local3 = parseCreateAlbum(_local4);
break;
case "photos.get":
_local3 = parseGetPhotos(_local4);
break;
case "photos.getTags":
_local3 = parseGetTags(_local4);
break;
case "photos.getAlbums":
_local3 = parseGetAlbums(_local4);
break;
case "photos.upload":
_local3 = parseFacebookPhoto(_local4);
break;
case "pages.getInfo":
_local3 = parsePageGetInfo(_local4);
break;
case "batch.run":
_local3 = parseBatchRun(_local4);
break;
case "fbml.getCustomTags":
_local3 = parseGetCustomTags(_local4);
break;
case "connect.unregisterUsers":
case "connect.registerUsers":
_local3 = new ArrayResultData();
(_local3 as ArrayResultData).arrayResult = FacebookXMLParserUtils.toArray(_local4);
break;
case "status.get":
_local3 = parseGetStatus(_local4);
break;
case "stream.get":
_local3 = FacebookStreamXMLParser.createStream(_local4, fb_namespace);
break;
case "stream.getComments":
_local3 = FacebookStreamXMLParser.createGetCommentsData(_local4, fb_namespace);
break;
case "stream.getFilters":
_local3 = FacebookStreamXMLParser.createStreamFilterCollection(_local4, 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 parseGetAppUsersData(_arg1:XML):GetAppUserData{
var _local2:Array;
var _local3:GetAppUserData;
_local2 = FacebookXMLParserUtils.toUIDArray(_arg1);
_local3 = new GetAppUserData();
_local3.uids = _local2;
return (_local3);
}
protected function parseGetStatus(_arg1:XML):GetStatusData{
var _local2:GetStatusData;
var _local3:Array;
var _local4:XMLList;
var _local5:uint;
var _local6:uint;
var _local7:XML;
var _local8:Status;
_local2 = new GetStatusData();
_local3 = [];
_local4 = _arg1.children();
_local5 = _local4.length();
_local6 = 0;
while (_local6 < _local5) {
_local7 = _local4[_local6];
_local8 = new Status();
_local8.uid = FacebookXMLParserUtils.toStringValue(_local7.fb_namespace::uid[0]);
_local8.status_id = FacebookXMLParserUtils.toStringValue(_local7.fb_namespace::status_id[0]);
_local8.time = FacebookXMLParserUtils.toDate(_local7.fb_namespace::time[0]);
_local8.source = FacebookXMLParserUtils.toStringValue(_local7.fb_namespace::source[0]);
_local8.message = FacebookXMLParserUtils.toStringValue(_local7.fb_namespace::message[0]);
_local3.push(_local8);
_local6++;
};
_local2.status = _local3;
return (_local2);
}
protected function parseGetMembers(_arg1:XML):GetMembersData{
var _local2:GetMembersData;
_local2 = new GetMembersData();
_local2.attending = FacebookXMLParserUtils.toUIDArray(_arg1..fb_namespace::attending[0]);
_local2.unsure = FacebookXMLParserUtils.toUIDArray(_arg1..fb_namespace::unsure[0]);
_local2.declined = FacebookXMLParserUtils.toUIDArray(_arg1..fb_namespace::declined[0]);
_local2.not_replied = FacebookXMLParserUtils.toUIDArray(_arg1..fb_namespace::not_replied[0]);
return (_local2);
}
protected function parseGetEvent(_arg1:XML):GetEventsData{
var _local2:GetEventsData;
var _local3:EventCollection;
var _local4:*;
var _local5:EventData;
_local2 = new GetEventsData();
_local3 = new EventCollection();
for each (_local4 in _arg1..fb_namespace::event) {
_local5 = new EventData();
_local5.eid = _local4.fb_namespace::eid;
_local5.name = _local4.fb_namespace::name;
_local5.tagline = _local4.fb_namespace::tagline;
_local5.nid = _local4.fb_namespace::nid;
_local5.pic = _local4.fb_namespace::pic;
_local5.pic_big = _local4.fb_namespace::pic_big;
_local5.pic_small = _local4.fb_namespace::pic_small;
_local5.host = _local4.fb_namespace::host;
_local5.description = _local4.fb_namespace::description;
_local5.event_type = _local4.fb_namespace::event_type;
_local5.event_subtype = _local4.fb_namespace::event_subtype;
_local5.start_time = FacebookXMLParserUtils.toDate(_local4.fb_namespace::start_time);
_local5.end_time = FacebookXMLParserUtils.toDate(_local4.fb_namespace::end_time);
_local5.creator = _local4.fb_namespace::end_time;
_local5.update_time = FacebookXMLParserUtils.toDate(_local4.fb_namespace::update_time);
_local5.location = _local4.fb_namespace::location;
_local5.venue = FacebookXMLParserUtils.createLocation(_local4.fb_namespace::venue[0], fb_namespace);
_local3.addItem(_local5);
};
_local2.eventCollection = _local3;
return (_local2);
}
protected function parseGetFriends(_arg1:XML):GetFriendsData{
var _local2:GetFriendsData;
var _local3:FacebookUserCollection;
var _local4:*;
var _local5:FacebookUser;
_local2 = new GetFriendsData();
_local3 = new FacebookUserCollection();
for each (_local4 in _arg1..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;
_local2 = new GetPublicInfoData();
_local2.app_id = _arg1.fb_namespace::app_id;
_local2.api_key = _arg1.fb_namespace::api_key;
_local2.canvas_name = _arg1.fb_namespace::canvas_name;
_local2.display_name = _arg1.fb_namespace::display_name;
_local2.icon_url = _arg1.fb_namespace::icon_url;
_local2.logo_url = _arg1.fb_namespace::logo_url;
_local2.developers = _arg1.fb_namespace::developers;
_local2.company_name = _arg1.fb_namespace::company_name;
_local2.developers = _arg1.fb_namespace::developers;
_local2.daily_active_users = _arg1.fb_namespace::daily_active_users;
_local2.weekly_active_users = _arg1.fb_namespace::weekly_active_users;
_local2.monthly_active_users = _arg1.fb_namespace::monthly_active_users;
_local2.description = _arg1.fb_namespace::description;
return (_local2);
}
protected function parseAreFriends(_arg1:XML):AreFriendsData{
var _local2:AreFriendsData;
var _local3:FriendsCollection;
var _local4:*;
var _local5:FriendsData;
_local2 = new AreFriendsData();
_local3 = new FriendsCollection();
for each (_local4 in _arg1..fb_namespace::friend_info) {
_local5 = new FriendsData();
_local5.uid1 = _local4.fb_namespace::uid1;
_local5.uid2 = _local4.fb_namespace::uid2;
_local5.are_friends = FacebookXMLParserUtils.toBoolean(XML(_local4.fb_namespace::are_friends.toXMLString()));
_local3.addItem(_local5);
};
_local2.friendsCollection = _local3;
return (_local2);
}
public function validateFacebookResponce(_arg1:String):FacebookError{
var error:FacebookError;
var xml:XML;
var xmlError:Error;
var hasXMLError:Boolean;
var result = _arg1;
error = null;
hasXMLError = false;
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.fb_namespace::error_code);
error.errorMsg = xml.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 _local2:XMLList;
var _local3:uint;
var _local4:Array;
var _local5:uint;
var _local6:BatchResult;
var _local7:String;
var _local8:XML;
var _local9:FacebookError;
var _local10:String;
var _local11:FacebookData;
_local2 = _arg1..fb_namespace::batch_run_response_elt;
_local3 = _local2.length();
_local4 = [];
_local5 = 0;
while (_local5 < _local3) {
_local7 = _local2[_local5].toString();
_local8 = new XML(_local7);
_local9 = validateFacebookResponce(_local7);
if (_local9 === null){
_local10 = responseNodeNameToMethodName(_local8.localName().toString());
_local11 = parse(_local7, _local10);
_local4.push(_local11);
} else {
_local4.push(_local9);
};
_local5++;
};
_local6 = 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.fb_namespace::template_body;
_local4.template_title = _local3.fb_namespace::template_title;
_arg2.addTemplateData(_local4);
};
}
}
}//package com.facebook.data
Section 316
//AbstractFileUploadDelegate (com.facebook.delegates.AbstractFileUploadDelegate)
package com.facebook.delegates {
import flash.utils.*;
import com.facebook.net.*;
import flash.net.*;
import com.facebook.utils.*;
import com.facebook.session.*;
import flash.events.*;
public class AbstractFileUploadDelegate extends WebDelegate {
protected var ba:ByteArray;
public function AbstractFileUploadDelegate(_arg1:FacebookCall, _arg2:WebSession){
super(_arg1, _arg2);
ba = new ByteArray();
}
override protected function onDataComplete(_arg1:Event):void{
var _local2:ByteArray;
var _local3:String;
_local2 = (_arg1.target.data as ByteArray);
if (_local2 == null){
super.onDataComplete(_arg1);
} else {
_local3 = _local2.readUTFBytes(_local2.length);
_local2.length = 0;
_local2 = null;
handleResult(_local3);
};
}
protected function getContentType():String{
return (null);
}
protected function uploadByteArray(_arg1:ByteArray):void{
var _local2:PostRequest;
var _local3:String;
var _local4:URLRequest;
_local2 = new PostRequest();
for (_local3 in call.args) {
if (_local3 != "data"){
_local2.writePostData(_local3, call.args[_local3]);
};
};
_local2.writeFileData(((("fn" + call.args["call_id"]) + ".") + getExt()), _arg1, 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);
}
protected function getExt():String{
return (null);
}
protected function onFileRefComplete(_arg1:Event):void{
fileRef = (call.args.data as FileReference);
uploadByteArray(fileRef["data"]);
}
}
}//package com.facebook.delegates
Section 317
//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 318
//IFacebookCallDelegate (com.facebook.delegates.IFacebookCallDelegate)
package com.facebook.delegates {
import com.facebook.net.*;
import com.facebook.session.*;
import flash.events.*;
public interface IFacebookCallDelegate extends IEventDispatcher {
function set session(_arg1:IFacebookSession):void;
function get session():IFacebookSession;
function close():void;
function set call(_arg1:FacebookCall):void;
function get call():FacebookCall;
}
}//package com.facebook.delegates
Section 319
//JSDelegate (com.facebook.delegates.JSDelegate)
package com.facebook.delegates {
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 flash.events.*;
import com.facebook.*;
import flash.external.*;
public class JSDelegate extends EventDispatcher implements IFacebookCallDelegate {
protected var _session:JSSession;
protected var _call:FacebookCall;
protected static var externalInterfaceCalls:Object = {};
protected static var externalInterfaceCallId:Number = 0;
public function JSDelegate(_arg1:FacebookCall, _arg2:JSSession){
this.call = _arg1;
this.session = _arg2;
execute();
}
public function set session(_arg1:IFacebookSession):void{
this._session = (_arg1 as JSSession);
}
protected function onReceiveStatus(_arg1:StatusEvent):void{
var _local2:FacebookError;
switch ((_arg1.level == "error")){
case "error":
_local2 = new FacebookError();
_local2.rawResult = _arg1.level;
var _local3 = call;
_local3.facebook_internal::handleError(_local2);
break;
case "warning":
case "status":
break;
};
}
public function get session():IFacebookSession{
return (_session);
}
protected function onReceiveError(_arg1:ErrorEvent):void{
var _local2:FacebookError;
_local2 = new FacebookError();
_local2.errorEvent = _arg1;
var _local3 = call;
_local3.facebook_internal::handleError(_local2);
}
public function get call():FacebookCall{
return (_call);
}
protected function buildCall():String{
var _local1:String;
var _local2:Object;
var _local3:String;
var _local4:String;
_local1 = ("bridgeFacebookCall_" + externalInterfaceCallId);
RequestHelper.formatRequest(call);
_local2 = {};
for (_local3 in call.args) {
_local2[_local3] = call.args[_local3];
};
_local4 = (((((((((((((((("function " + _local1) + "() { ") + "FB.Facebook.apiClient.callMethod(\"") + call.method) + "\", ") + JavascriptRequestHelper.formatURLVariables(call.args)) + ", ") + "function(result, exception) {") + "document.") + (_session as JSSession).as_swf_name) + ".bridgeFacebookReply(result, exception, ") + externalInterfaceCallId) + ")") + "}") + ");") + "}");
return (_local4);
}
protected function execute():void{
var _local1:Array;
var _local2:Object;
var _local3:String;
_local1 = [];
for each (_local2 in call.args) {
_local1.push(_local2);
};
var _local4 = ++externalInterfaceCallId;
externalInterfaceCalls[_local4] = call;
_local3 = buildCall();
ExternalInterface.addCallback("bridgeFacebookReply", postBridgeAsyncReply);
ExternalInterface.call(_local3);
}
protected function postBridgeAsyncReply(_arg1:Object, _arg2:Object, _arg3:uint):void{
var _local4:FacebookCall;
var _local5:JSONResultData;
var _local6:FacebookError;
_local4 = 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];
}
public function set call(_arg1:FacebookCall):void{
this._call = _arg1;
}
public function close():void{
}
}
}//package com.facebook.delegates
Section 320
//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;
var _local3:String;
_local2 = _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);
};
_local3 = (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 _local2:IFacebookSession;
var _local3:Array;
var _local4:String;
var _local5:String;
var _local6:*;
_local2 = _arg1.session;
_local3 = [];
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 321
//WebDelegate (com.facebook.delegates.WebDelegate)
package com.facebook.delegates {
import com.facebook.net.*;
import com.facebook.data.*;
import com.facebook.errors.*;
import flash.net.*;
import com.facebook.session.*;
import flash.events.*;
import com.facebook.events.*;
public class WebDelegate extends EventDispatcher implements IFacebookCallDelegate {
protected var loader:URLLoader;
protected var _session:WebSession;
protected var parser:XMLDataParser;
protected var fileRef:FileReference;
protected var _call:FacebookCall;
public function WebDelegate(_arg1:FacebookCall, _arg2:WebSession){
this.call = _arg1;
this.session = _arg2;
parser = new XMLDataParser();
execute();
}
protected function addOptionalArguments():void{
call.setRequestArgument("ss", true);
}
protected function clean():void{
if (loader == null){
return;
};
loader.removeEventListener(Event.COMPLETE, onDataComplete);
loader.removeEventListener(IOErrorEvent.IO_ERROR, onError);
loader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, onError);
}
protected function handleResult(_arg1:String):void{
var _local2:FacebookError;
var _local3:FacebookData;
clean();
_local2 = parser.validateFacebookResponce(_arg1);
if (_local2 == null){
_local3 = parser.parse(_arg1, call.method);
call.handleResult(_local3);
} else {
call.handleError(_local2);
};
}
public function get session():IFacebookSession{
return (_session);
}
protected function onDataComplete(_arg1:Event):void{
handleResult((_arg1.target.data as String));
}
public function get call():FacebookCall{
return (_call);
}
protected function post():void{
addOptionalArguments();
RequestHelper.formatRequest(call);
sendRequest();
}
protected function execute():void{
if (call == null){
throw (new Error("No call defined."));
};
post();
}
protected function sendRequest():void{
var _local1:URLRequest;
createURLLoader();
_local1 = new URLRequest(_session.rest_url);
_local1.contentType = "application/x-www-form-urlencoded";
_local1.method = URLRequestMethod.POST;
_local1.data = call.args;
trace(((_local1.url + "?") + unescape(call.args.toString())));
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.load(_local1);
}
protected function createURLLoader():void{
loader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onDataComplete);
loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, onHTTPStatus);
loader.addEventListener(IOErrorEvent.IO_ERROR, onError);
loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onError);
}
protected function onError(_arg1:ErrorEvent):void{
var _local2:FacebookError;
clean();
_local2 = parser.createFacebookError(_arg1, loader.data);
call.handleError(_local2);
dispatchEvent(new FacebookEvent(FacebookEvent.COMPLETE, false, false, false, null, _local2));
}
public function set session(_arg1:IFacebookSession):void{
_session = (_arg1 as WebSession);
}
public function close():void{
try {
loader.close();
} catch(e) {
};
}
protected function onHTTPStatus(_arg1:HTTPStatusEvent):void{
}
public function set call(_arg1:FacebookCall):void{
_call = _arg1;
}
}
}//package com.facebook.delegates
Section 322
//WebImageUploadDelegate (com.facebook.delegates.WebImageUploadDelegate)
package com.facebook.delegates {
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 flash.events.*;
import com.facebook.commands.photos.*;
public class WebImageUploadDelegate extends AbstractFileUploadDelegate {
public function WebImageUploadDelegate(_arg1:FacebookCall, _arg2:WebSession){
super(_arg1, _arg2);
}
override protected function getContentType():String{
return ("Content-Type: image/jpg");
}
override protected function sendRequest():void{
var _local1:ByteArray;
var _local2:URLRequest;
var _local3:Object;
var _local4:JPGEncoder;
_local2 = new URLRequest(_session.rest_url);
_local3 = call.args.data;
if (_local3 == null){
super.sendRequest();
return;
};
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.")));
};
};
};
}
override protected function getExt():String{
return ((((call as IUploadPhoto).uploadType == UploadPhotoTypes.JPEG)) ? "jpeg" : "png");
}
}
}//package com.facebook.delegates
Section 323
//VideoUploadDelegate (com.facebook.delegates.VideoUploadDelegate)
package com.facebook.delegates {
import flash.utils.*;
import com.facebook.net.*;
import flash.net.*;
import com.facebook.utils.*;
import com.facebook.session.*;
import flash.events.*;
import com.facebook.commands.video.*;
public class VideoUploadDelegate extends AbstractFileUploadDelegate {
public function VideoUploadDelegate(_arg1:FacebookCall, _arg2:WebSession){
super(_arg1, _arg2);
}
override protected function getContentType():String{
return (("Content-Type: video/" + (call as UploadVideo).ext));
}
override protected function sendRequest():void{
var _local1:ByteArray;
var _local2:URLRequest;
var _local3:Object;
_local2 = new URLRequest(_session.rest_url);
_local3 = 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.")));
};
};
}
override protected function getExt():String{
return ((call as UploadVideo).ext);
}
}
}//package com.facebook.delegates
Section 324
//FacebookError (com.facebook.errors.FacebookError)
package com.facebook.errors {
import com.facebook.data.*;
import flash.net.*;
import flash.events.*;
public class FacebookError extends FacebookData {
public var reason:String;
public var error:Error;
public var requestArgs:URLVariables;
public var errorCode:Number;
public var errorMsg:String;
public var errorEvent:ErrorEvent;
}
}//package com.facebook.errors
Section 325
//FacebookEvent (com.facebook.events.FacebookEvent)
package com.facebook.events {
import com.facebook.data.*;
import com.facebook.errors.*;
import flash.events.*;
public class FacebookEvent extends Event {
public var success:Boolean;
public var permission:String;
public var error:FacebookError;
public var hasPermission:Boolean;
public var data:FacebookData;
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 clone():Event{
return (new FacebookEvent(type, bubbles, cancelable, success, data, error));
}
override public function toString():String{
return (formatToString("FacebookEvent", "type", "success", "data", "error"));
}
}
}//package com.facebook.events
Section 326
//FacebookCall (com.facebook.net.FacebookCall)
package com.facebook.net {
import com.facebook.data.*;
import com.facebook.errors.*;
import flash.net.*;
import com.facebook.delegates.*;
import com.facebook.session.*;
import flash.events.*;
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 session:IFacebookSession;
public var result:FacebookData;
public var method:String;
public var args:URLVariables;
public var useSession:Boolean;// = true
public function FacebookCall(_arg1:String="no_method_required", _arg2:URLVariables=null){
success = false;
useSession = true;
super();
this.method = _arg1;
this.args = ((_arg2)!=null) ? _arg2 : new URLVariables();
}
facebook_internal function clearRequestArguments():void{
this.args = new URLVariables();
}
facebook_internal function initialize():void{
}
facebook_internal function handleError(_arg1:FacebookError):void{
this.error = _arg1;
success = false;
dispatchEvent(new FacebookEvent(FacebookEvent.COMPLETE, false, false, false, null, _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;
var _local4:uint;
_local3 = _arg1.length;
_local4 = 0;
while (_local4 < _local3) {
setRequestArgument(_arg1[_local4], _args[_local4]);
_local4++;
};
}
facebook_internal function handleResult(_arg1:FacebookData):void{
this.result = _arg1;
success = true;
dispatchEvent(new FacebookEvent(FacebookEvent.COMPLETE, false, false, true, _arg1));
}
}
}//package com.facebook.net
Section 327
//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 328
//IUploadVideo (com.facebook.net.IUploadVideo)
package com.facebook.net {
public interface IUploadVideo {
function set title(_arg1:String):void;
function set ext(_arg1:String):void;
function get title():String;
function get ext():String;
function get description():String;
function set description(_arg1:String):void;
}
}//package com.facebook.net
Section 329
//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 _waiting_for_login:Boolean;// = false
protected var _auth_token:String;
protected var _offline_access:Boolean;// = false
protected var loginRequest:IFacebookCallDelegate;
public function DesktopSession(_arg1:String, _arg2:String=null, _arg3:String=null){
_waiting_for_login = false;
_offline_access = false;
super(_arg1, null);
this._is_connected = false;
this._secret = _arg2;
if (_arg3){
this._session_key = _arg3;
};
}
override public function get waiting_for_login():Boolean{
return (_waiting_for_login);
}
protected function onVerifyLogin(_arg1:FacebookEvent):void{
var _local2:FacebookEvent;
_local2 = 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 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));
}
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 {
onConnectionError(_arg1.error);
};
}
protected function tokenCreated():void{
navigateToURL(new URLRequest(login_url));
}
override public function refreshSession():void{
var _local1:GetSession;
_waiting_for_login = false;
_local1 = new GetSession(_auth_token);
_local1.session = this;
var _local2 = _local1;
_local2.facebook_internal::initialize();
_local1.addEventListener(FacebookEvent.COMPLETE, validateSessionReply);
post(_local1);
}
protected function onLogin(_arg1:FacebookEvent):void{
var _local2:URLRequest;
var _local3:String;
_arg1.target.removeEventListener(FacebookEvent.COMPLETE, onLogin);
if (_arg1.success){
_auth_token = (_arg1.data as StringResultData).value;
_local2 = new URLRequest();
_local3 = "?";
if (_offline_access){
_local3 = (_local3 + "ext_perm=offline_access&");
};
_local2.url = (((((((login_url + _local3) + "api_key=") + api_key) + "&v=") + api_version) + "&auth_token=") + _auth_token);
navigateToURL(_local2, "_blank");
_waiting_for_login = true;
dispatchEvent(new FacebookEvent(FacebookEvent.WAITING_FOR_LOGIN));
} else {
onConnectionError(_arg1.error);
};
}
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, onVerifyLogin, false, 0, true);
post(_local1);
dispatchEvent(new FacebookEvent(FacebookEvent.VERIFYING_SESSION));
} else {
_is_connected = false;
dispatchEvent(new FacebookEvent(FacebookEvent.CONNECT));
};
}
override public function login(_arg1:Boolean):void{
var _local2:FacebookCall;
_offline_access = _arg1;
_session_key = null;
_local2 = new CreateToken();
_local2.session = this;
var _local3 = _local2;
_local3.facebook_internal::initialize();
_local2.addEventListener(FacebookEvent.COMPLETE, onLogin);
post(_local2);
}
protected function onConnectionError(_arg1:FacebookError):void{
_is_connected = false;
dispatchEvent(new FacebookEvent(FacebookEvent.CONNECT, false, false, false, null, _arg1));
}
}
}//package com.facebook.session
Section 330
//IFacebookSession (com.facebook.session.IFacebookSession)
package com.facebook.session {
import com.facebook.net.*;
import com.facebook.delegates.*;
import flash.events.*;
public interface IFacebookSession extends IEventDispatcher {
function get rest_url():String;
function get waiting_for_login():Boolean;
function get api_key():String;
function get is_connected():Boolean;
function get uid():String;
function set rest_url(_arg1:String):void;
function verifySession():void;
function set secret(_arg1:String):void;
function post(_arg1:FacebookCall):IFacebookCallDelegate;
function login(_arg1:Boolean):void;
function set session_key(_arg1:String):void;
function get secret():String;
function get expires():Date;
function get session_key():String;
function get api_version():String;
function refreshSession():void;
}
}//package com.facebook.session
Section 331
//JSSession (com.facebook.session.JSSession)
package com.facebook.session {
import com.facebook.net.*;
import com.facebook.delegates.*;
import flash.events.*;
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 rest_url():String{
return (null);
}
public function set rest_url(_arg1:String):void{
}
public function get waiting_for_login():Boolean{
return (true);
}
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 is_sessionless():Boolean{
return (true);
}
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 is_connected():Boolean{
return (true);
}
public function get session_key():String{
return (_session_key);
}
public function get api_key():String{
return (_api_key);
}
public function get expires():Date{
return (null);
}
public function get uid():String{
return (null);
}
public function refreshSession():void{
}
public function verifySession():void{
var _local1:FacebookCall;
_local1 = new GetLoggedInUser();
_local1.addEventListener(FacebookEvent.COMPLETE, onVerifyLogin);
_local1.session = this;
var _local2 = _local1;
_local2.facebook_internal::initialize();
post(_local1);
}
public function set secret(_arg1:String):void{
}
public function login(_arg1:Boolean):void{
}
public function set session_key(_arg1:String):void{
_session_key = _arg1;
}
}
}//package com.facebook.session
Section 332
//WebSession (com.facebook.session.WebSession)
package com.facebook.session {
import com.facebook.net.*;
import com.facebook.delegates.*;
import flash.events.*;
import com.facebook.events.*;
import com.facebook.*;
public class WebSession extends EventDispatcher implements IFacebookSession {
protected var _api_key:String;
protected var _api_version:String;// = "1.0"
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 _expires:Date;
protected var _session_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){
_api_version = "1.0";
_is_connected = false;
_rest_url = REST_URL;
login_url = "http://www.facebook.com/login.php";
super();
this._api_key = _arg1;
this._session_key = _arg3;
this.secret = _arg2;
}
public function get rest_url():String{
return (_rest_url);
}
public function set rest_url(_arg1:String):void{
_rest_url = _arg1;
}
public function get waiting_for_login():Boolean{
return (false);
}
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 WebDelegate(_arg1, this));
}
public function get secret():String{
return (_secret);
}
public function get api_version():String{
return (this._api_version);
}
public function get is_connected():Boolean{
return (_is_connected);
}
public function get session_key():String{
return (_session_key);
}
public function get api_key():String{
return (_api_key);
}
public function get expires():Date{
return (_expires);
}
public function get uid():String{
return (facebook_internal::_uid);
}
public function refreshSession():void{
}
public function verifySession():void{
if (_session_key){
_is_connected = true;
dispatchEvent(new FacebookEvent(FacebookEvent.CONNECT, false, false, true));
} else {
_is_connected = false;
dispatchEvent(new FacebookEvent(FacebookEvent.CONNECT, false, false, false));
};
}
public function set secret(_arg1:String):void{
_secret = _arg1;
}
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{
_session_key = _arg1;
}
}
}//package com.facebook.session
Section 333
//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{
var _local4:uint;
var _local5:uint;
if (_arg2 >= _arg1.length){
_arg2 = _arg1.length;
};
if (_arg3 == 0){
_arg3 = (_arg1.length - _arg2);
};
if ((_arg3 + _arg2) > _arg1.length){
_arg3 = (_arg1.length - _arg2);
};
_local4 = 4294967295;
_local5 = _arg2;
while (_local5 < _arg3) {
_local4 = (uint(crcTable[((_local4 ^ _arg1[_local5]) & 0xFF)]) ^ (_local4 >>> 8));
_local5++;
};
return ((_local4 ^ 4294967295));
}
protected static function createCRCTable():Array{
var _local1:Array;
var _local2:uint;
var _local3:uint;
var _local4:uint;
_local1 = [];
_local3 = 0;
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;
var _local3:ByteArray;
var _local4:uint;
var _local5:String;
_local2 = _arg1.replace(/\s/ig, "");
_local2 = _local2.toLowerCase();
_local3 = new ByteArray();
_local3.writeUTFBytes(_local2);
_local4 = CRC32(_local3, 0, _local3.length);
_local5 = MD5.hash(_local2);
return (((_local4 + "_") + _local5));
}
}
}//package com.facebook.utils
Section 334
//FacebookArrayCollection (com.facebook.utils.FacebookArrayCollection)
package com.facebook.utils {
import flash.utils.*;
import flash.events.*;
public class FacebookArrayCollection extends EventDispatcher {
protected var _source:Array;
protected var _type:Class;
protected var hash:Dictionary;
public function FacebookArrayCollection(_arg1:Array=null, _arg2:Class=null){
reset();
_type = _arg2;
initilizeSource(_arg1);
}
public function indexOf(_arg1:Object):int{
return (_source.indexOf(_arg1));
}
public function reset():void{
hash = new Dictionary(true);
_source = [];
}
public function findItemByProperty(_arg1:String, _arg2:Object, _arg3:Boolean=false):Object{
var _local4:Object;
for (_local4 in 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 source():Array{
return (_source);
}
public function toArray():Array{
var _local1:Array;
var _local2:uint;
var _local3:uint;
_local1 = [];
_local2 = length;
_local3 = 0;
while (_local3 < _local2) {
_local1.push(getItemAt(_local3));
_local3++;
};
return (_local1);
}
public function contains(_arg1:Object):Boolean{
return ((hash[_arg1] === true));
}
protected function verifyIndex(_arg1:uint):void{
if (_source.length < _arg1){
throw (new RangeError((("Index: " + _arg1) + ", is out of range.")));
};
}
public function removeItemAt(_arg1:uint):void{
var _local2:Object;
verifyIndex(_arg1);
_local2 = _source[_arg1];
delete hash[_local2];
_source.splice(_arg1, 1);
}
public function addItem(_arg1:Object):void{
addItemAt(_arg1, length);
}
public function get length():int{
return (_source.length);
}
public function addItemAt(_arg1:Object, _arg2:uint):void{
if (hash[_arg1] != null){
throw (new Error("Item already exists."));
};
if (((!((_type === null))) && (!((_arg1 is _type))))){
throw (new TypeError((("This collection requires " + _type) + " as the type.")));
};
hash[_arg1] = true;
_source.splice(_arg2, 0, _arg1);
}
public function getItemAt(_arg1:uint):Object{
verifyIndex(_arg1);
return (_source[_arg1]);
}
override public function toString():String{
return (_source.join(", "));
}
public function get type():Class{
return (_type);
}
protected function initilizeSource(_arg1:Array):void{
var _local2:uint;
var _local3:uint;
_source = [];
if (_arg1 == null){
return;
};
_local2 = _arg1.length;
_local3 = 0;
while (_local3 < _local2) {
addItem(_arg1[_local3]);
_local3++;
};
}
}
}//package com.facebook.utils
Section 335
//FacebookConnectUtil (com.facebook.utils.FacebookConnectUtil)
package com.facebook.utils {
import flash.display.*;
import com.facebook.net.*;
import com.facebook.data.*;
import com.facebook.errors.*;
import flash.events.*;
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;
};
_loaderInfo = _arg1;
}
public function getLoggedInUser():String{
return (ExternalInterface.call("FB.Connect.get_loggedInUser"));
}
public function callMethod(_arg1:String, ... _args):FacebookCall{
var _local3:String;
var _local4:String;
var _local5:FacebookCall;
_local3 = ("bridgeFacebookCall_" + externalInterfaceCallId);
_local4 = (((((((((((((((("function " + _local3) + "() { ") + "FB.Connect.") + _arg1) + "(") + JavascriptRequestHelper.formatParams(_args)) + ", ") + "function(result, exception) {") + "document.") + _loaderInfo.parameters.as_swf_name) + ".handleConnectCallback(result, exception, ") + externalInterfaceCallId) + ")") + "}") + ");") + "}");
ExternalInterface.call(_local4);
_local5 = new FacebookCall(_arg1);
externalInterfaceCalls[externalInterfaceCallId] = _local5;
return (_local5);
}
protected static function handleConnectCallback(_arg1:Object, _arg2:Object, _arg3:String):void{
var _local4:FacebookCall;
var _local5:FacebookData;
var _local6:FacebookError;
_local4 = externalInterfaceCalls[_arg3];
if (_arg1){
_local5 = new FacebookData();
_local5.rawResult = (_arg1 as String);
var _local7 = _local4;
_local7.facebook_internal::handleResult(_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 336
//FacebookDataUtils (com.facebook.utils.FacebookDataUtils)
package com.facebook.utils {
import com.adobe.serialization.json.*;
public class FacebookDataUtils {
public static function toJSONValuesArray(_arg1:Array):String{
var _local2:Array;
var _local3:Number;
var _local4:Number;
if (_arg1 == null){
return (null);
};
_local2 = [];
_local3 = _arg1.length;
_local4 = 0;
while (_local4 < _local3) {
_local2.push(JSON.encode(_arg1[_local4]));
_local4++;
};
return (_local2.join(","));
}
public static function formatDate(_arg1:String):Date{
var _local2:Date;
var _local3:Array;
var _local4:Array;
var _local5:Array;
if ((((_arg1 == "")) || ((_arg1 == null)))){
return (null);
};
_local2 = new Date();
_local3 = _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 _local3:String;
var _local4:String;
_local3 = _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 337
//FacebookSessionUtil (com.facebook.utils.FacebookSessionUtil)
package com.facebook.utils {
import flash.display.*;
import flash.net.*;
import com.facebook.session.*;
import flash.events.*;
import com.facebook.events.*;
import com.facebook.*;
import flash.system.*;
public class FacebookSessionUtil extends EventDispatcher {
public var facebook:Facebook;
protected var loaderInfo:LoaderInfo;
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){
var _local4:SharedObject;
var _local5:Object;
super();
this.secret = ((_arg2 == null)) ? _arg3.parameters.fb_sig_ss : _arg2;
this.api_key = _arg1;
this.loaderInfo = _arg3;
_local4 = getStoredSession();
if (_local4.data.session_key){
session_key = _local4.data.session_key;
};
_local5 = ((_arg3)!=null) ? _arg3.parameters : {};
if (_local5.fb_sig_session_key != null){
session_key = _local5.fb_sig_session_key;
};
if ((((_arg3.url.slice(0, 5) == "file:")) || ((Capabilities.playerType == "Desktop")))){
_activeSession = new DesktopSession(_arg1, this.secret);
} else {
if (((((_local5.fb_sig_ss) && (_local5.fb_sig_api_key))) && (_local5.fb_sig_session_key))){
_activeSession = new WebSession(_local5.fb_sig_api_key, _local5.fb_sig_ss, _local5.fb_sig_session_key);
(_activeSession as WebSession).facebook_internal::_uid = _local5.fb_sig_user;
} else {
if (_local5.as_app_name){
_activeSession = new JSSession(_arg1, _local5.as_app_name);
} else {
_activeSession = new DesktopSession(_arg1, _arg2);
};
};
};
_activeSession.session_key = session_key;
_activeSession.addEventListener(FacebookEvent.VERIFYING_SESSION, onVerifyingSession);
facebook = new Facebook();
facebook.addEventListener(FacebookEvent.WAITING_FOR_LOGIN, handleWaitingForLogin);
facebook.addEventListener(FacebookEvent.CONNECT, onFacebookReady);
facebook.startSession(_activeSession);
}
protected function handleWaitingForLogin(_arg1:FacebookEvent):void{
dispatchEvent(_arg1);
}
public function onVerifyingSession(_arg1:FacebookEvent):void{
dispatchEvent(_arg1);
}
protected function onVerifyLogin(_arg1:FacebookEvent):void{
_activeSession.removeEventListener(FacebookEvent.CONNECT, onVerifyLogin);
if (_arg1.success){
onFacebookReady(null);
dispatchEvent(new FacebookEvent(FacebookEvent.CONNECT, false, false, true));
} else {
dispatchEvent(new FacebookEvent(FacebookEvent.CONNECT, false, false, false));
};
}
public function logout():void{
getStoredSession().clear();
getStoredSession().flush();
facebook.logout();
}
public function verifySession():void{
_activeSession.verifySession();
}
protected function onFacebookReady(_arg1:FacebookEvent):void{
var _local2:SharedObject;
if (facebook.session_key){
_local2 = getStoredSession();
_local2.data.session_key = facebook.session_key;
_local2.data.stored_secret = facebook.secret;
_local2.flush(3000);
};
if (_arg1){
dispatchEvent(_arg1);
};
}
public function login(_arg1:Boolean=true):void{
facebook.login(_arg1);
}
protected function onWaitingForLogin(_arg1:FacebookEvent):void{
dispatchEvent(_arg1);
}
public function get activeSession():IFacebookSession{
return (_activeSession);
}
public function validateLogin():void{
facebook.refreshSession();
}
protected function getStoredSession():SharedObject{
return (SharedObject.getLocal((api_key + "_stored_session")));
}
}
}//package com.facebook.utils
Section 338
//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 _local3:Array;
var _local4:uint;
var _local5:uint;
var _local6:XML;
var _local7:PostCommentData;
_local3 = [];
_local4 = _arg1.length();
_local5 = 0;
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 _local3:Array;
var _local4:XMLList;
var _local5:uint;
var _local6:uint;
var _local7:XML;
var _local8:StreamMediaData;
if (_arg1 == null){
return (null);
};
_local3 = [];
_local4 = _arg1.children();
_local5 = _local4.length();
_local6 = 0;
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);
_local8.flash = createFlashMedia(_local7._arg2::swf[0], _arg2);
_local8.music = createMusicMedia(_local7._arg2::music[0], _arg2);
_local3.push(_local8);
_local6++;
};
return (_local3);
}
public static function createStreamFilterCollection(_arg1:XML, _arg2:Namespace):GetFiltersData{
var _local3:GetFiltersData;
var _local4:StreamFilterCollection;
var _local5:XMLList;
var _local6:uint;
var _local7:uint;
var _local8:XML;
var _local9:StreamFilterData;
_local3 = new GetFiltersData();
_local4 = new StreamFilterCollection();
_local5 = _arg1.._arg2::stream_filter;
_local6 = _local5.length();
_local7 = 0;
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{
var _local3:VideoMedia;
if (_arg1 == null){
return (null);
};
_local3 = 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 createFlashMedia(_arg1:XML, _arg2:Namespace):FlashMedia{
var _local3:FlashMedia;
if (_arg1 == null){
return (null);
};
_local3 = new FlashMedia();
_local3.source_url = FacebookXMLParserUtils.toStringValue(_arg1._arg2::source_url[0]);
_local3.preview_img = FacebookXMLParserUtils.toStringValue(_arg1._arg2::preview_img[0]);
return (_local3);
}
public static function createGetCommentsData(_arg1:XML, _arg2:Namespace):GetCommentsData{
var _local3:XMLList;
var _local4:GetCommentsData;
_local3 = _arg1.._arg2::comment;
_local4 = new GetCommentsData();
_local4.comments = createCommentsArray(_local3, _arg2);
return (_local4);
}
protected static function createActionLinksArray(_arg1:XML, _arg2:Namespace):Array{
var _local3:Array;
var _local4:XMLList;
var _local5:uint;
var _local6:uint;
var _local7:XML;
var _local8:ActionLinkData;
if (_arg1 == null){
return (null);
};
_local3 = [];
_local4 = _arg1.children();
_local5 = _local4.length();
_local6 = 0;
while (_local6 < _local5) {
_local7 = _local4[_local6];
_local8 = new ActionLinkData();
_local8.text = FacebookXMLParserUtils.toStringValue(_local7._arg2::text[0]);
_local8.href = FacebookXMLParserUtils.toStringValue(_local7._arg2::href[0]);
_local3.push(_local8);
_local6++;
};
return (_local3);
}
protected static function createMusicMedia(_arg1:XML, _arg2:Namespace):MusicMedia{
var _local3:MusicMedia;
if (_arg1 == null){
return (null);
};
_local3 = new MusicMedia();
_local3.source_url = FacebookXMLParserUtils.toStringValue(_arg1._arg2::source_url[0]);
_local3.artist = FacebookXMLParserUtils.toStringValue(_arg1._arg2::artist[0]);
_local3.title = FacebookXMLParserUtils.toStringValue(_arg1._arg2::title[0]);
return (_local3);
}
public static function createStream(_arg1:XML, _arg2:Namespace):GetStreamData{
var _local3:GetStreamData;
var _local4:StreamStoryCollection;
var _local5:ProfileCollection;
var _local6:uint;
var _local7:uint;
var _local8:XMLList;
var _local9:XMLList;
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;
_local3 = new GetStreamData();
_local4 = new StreamStoryCollection();
_local5 = new ProfileCollection();
_local3.stories = _local4;
_local3.profiles = _local5;
_local8 = _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]);
_local11.permalink = FacebookXMLParserUtils.toStringValue(_local10._arg2::permalink[0]);
_local11.is_hidden = FacebookXMLParserUtils.toBoolean(_local10._arg2::is_hidden[0]);
_local11.action_links = createActionLinksArray(_local10._arg2::action_links[0], _arg2);
_local4.addItem(_local11);
_local7++;
};
_local9 = _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{
var _local3:PhotoMedia;
if (_arg1 == null){
return (null);
};
_local3 = 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);
}
protected static function createComments(_arg1:XML, _arg2:Namespace):CommentsData{
var _local3:CommentsData;
var _local4:XMLList;
_local3 = 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]);
_local4 = _arg1._arg2::comment_list.children();
_local3.posts = createCommentsArray(_local4, _arg2);
return (_local3);
}
}
}//package com.facebook.utils
Section 339
//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 _local3:Array;
var _local4:XMLList;
var _local5:Object;
var _local6:FacebookWorkInfo;
_local3 = [];
_local4 = _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;
_local3 = 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 _local3:Array;
var _local4:XMLList;
var _local5:Object;
var _local6:FacebookEducationInfo;
var _local7:XML;
_local3 = [];
_local4 = _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 _local3:FacebookUser;
var _local4:XMLList;
var _local5:uint;
var _local6:XML;
var _local7:String;
var _local8:uint;
_local3 = new FacebookUser();
_local4 = _arg1.children();
_local5 = _local4.length();
_local8 = 0;
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;
var _local5:uint;
var _local6:uint;
_local3 = [];
_local4 = _arg1.children();
_local5 = _local4.length();
_local6 = 0;
while (_local6 < _local5) {
_local3.push(_local4[_local6].toString());
_local6++;
};
return (_local3);
}
protected static function createAffiliations(_arg1:XMLList, _arg2:Namespace):Array{
var _local3:Array;
var _local4:*;
var _local5:FacebookNetwork;
_local3 = [];
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 340
//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 _local3:AlbumCollection;
var _local4:*;
var _local5:AlbumData;
_local3 = 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;
_local5.modified_major = FacebookXMLParserUtils.toDate(_local4._arg2::modified_major);
_local5.edit_link = _local4._arg2::edit_link;
_local5.type = _local4._arg2::type;
_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{
var _local2:String;
var _local3:Date;
if (_arg1 == null){
return (null);
};
_local2 = _arg1;
while (_local2.length < 13) {
_local2 = (_local2 + "0");
};
_local3 = new Date(Number(_local2));
return (_local3);
}
public static function xmlListToObjectArray(_arg1:XMLList):Array{
var _local2:Array;
var _local3:uint;
var _local4:uint;
_local2 = [];
if (_arg1 == null){
return (_local2);
};
_local3 = _arg1.length();
_local4 = 0;
while (_local4 < _local3) {
_local2.push(xmlToObject(_arg1[_local4]));
_local4++;
};
return (_local2);
}
public static function toUIDArray(_arg1:XML):Array{
var _local2:Array;
var _local3:XMLList;
var _local4:uint;
var _local5:uint;
_local2 = [];
if (_arg1 == null){
return (_local2);
};
_local3 = _arg1.children();
_local4 = _local3.length();
_local5 = 0;
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;
_local3 = 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 _local2:Object;
var _local3:XMLList;
var _local4:uint;
var _local5:uint;
var _local6:XML;
_local2 = {};
_local3 = _arg1.children();
_local4 = _local3.length();
_local5 = 0;
while (_local5 < _local4) {
_local6 = _local3[_local5];
_local2[_local6.localName()] = _local6.toString();
_local5++;
};
return (_local2);
}
public static function xmlToUrlVariables(_arg1:XMLList):URLVariables{
var _local2:URLVariables;
var _local3:XML;
_local2 = new URLVariables();
for each (_local3 in _arg1) {
_local2[_local3.key.valueOf()] = _local3.value.valueOf();
};
return (_local2);
}
public static function nodeToObject(_arg1:XMLList):Object{
var _local2:Object;
var _local3:XML;
_local2 = {};
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 341
//FBJSBridgeUtil (com.facebook.utils.FBJSBridgeUtil)
package com.facebook.utils {
import com.facebook.data.*;
import flash.net.*;
import flash.events.*;
import com.facebook.events.*;
public class FBJSBridgeUtil extends EventDispatcher {
public var fb_fbjs_connection:String;
public var fb_local_connection:String;
protected var _params:Array;
protected var _methodName:String;
public var _api_key: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, onSendError, false, 0, true);
connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSendError, false, 0, true);
connection.addEventListener(StatusEvent.STATUS, 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, onReceiveError, false, 0, true);
receiveConnection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onReceiveError, false, 0, true);
receiveConnection.addEventListener(StatusEvent.STATUS, onReceiveStatus, false, 0, true);
receiveConnection.client = {asFunction:asFunction};
try {
receiveConnection.connect(fb_fbjs_connection);
} catch(e) {
};
};
}
protected function onSendError(_arg1:ErrorEvent):void{
dispatchEvent(_arg1);
}
protected function onReceiveStatus(_arg1:StatusEvent):void{
dispatchEvent(_arg1);
}
protected function onSendStatus(_arg1:StatusEvent):void{
dispatchEvent(_arg1);
}
protected function onReceiveError(_arg1:ErrorEvent):void{
dispatchEvent(_arg1);
}
public function call(_arg1:String, ... _args):void{
_methodName = _arg1;
_params = _args;
execute();
}
protected function execute():void{
connection.send(fb_local_connection, "callFBJS", _methodName, _params);
}
public function close():void{
try {
connection.close();
} catch(e) {
};
try {
receiveConnection.close();
} catch(e) {
};
}
protected function asFunction(... _args):void{
var _local2:FBJSData;
_local2 = new FBJSData();
_local2.results = _args;
dispatchEvent(new FacebookEvent(FacebookEvent.COMPLETE, false, false, true, _local2));
}
}
}//package com.facebook.utils
Section 342
//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 343
//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 _local2:Array;
var _local3:String;
_local2 = [];
for (_local3 in _arg1) {
_local2.push((((_local3 + ": ") + quote(_arg1[_local3])) + ""));
};
return ((("{" + _local2.join(", ")) + " }"));
}
public static function quote(_arg1:String):String{
var _local2:RegExp;
_local2 = /[\\"\r\n]/g;
return ((("\"" + _arg1.replace(_local2, _quote)) + "\""));
}
public static function formatParams(_arg1:Array):String{
var _local2:Array;
var _local3:uint;
var _local4:uint;
var _local5:Object;
var _local6:String;
_local2 = [];
_local3 = _arg1.length;
_local4 = 0;
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 _local2:Object;
var _local3:Boolean;
var _local4:Object;
var _local5:String;
_local2 = {method:true, sig:true, api_key:true, call_id:true};
_local3 = false;
_local4 = {};
for (_local5 in _arg1) {
if (_local2[_local5]){
} else {
_local3 = true;
_local4[_local5] = _arg1[_local5];
};
};
return ((_local3) ? objectToString(_local4) : "null");
}
}
}//package com.facebook.utils
Section 344
//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{
var _local1:String;
var _local2:Array;
if (versionObj != null){
return (versionObj);
};
_local1 = Capabilities.version;
versionObj = {};
_local2 = _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 345
//PostRequest (com.facebook.utils.PostRequest)
package com.facebook.utils {
import flash.utils.*;
public class PostRequest {
protected var postData:ByteArray;
protected var _boundary:String;// = "-----"
public function PostRequest(){
_boundary = "-----";
super();
createPostData();
}
public function getPostData():ByteArray{
postData.position = 0;
return (postData);
}
protected function writeDoubleDash():void{
postData.writeShort(0x2D2D);
}
public function writeFileData(_arg1:String, _arg2:ByteArray, _arg3:String):void{
var _local4:String;
var _local5:Number;
writeBoundary();
writeLineBreak();
_local4 = "Content-Disposition: form-data; filename=\"";
_local5 = 0;
while (_local5 < _local4.length) {
postData.writeByte(_local4.charCodeAt(_local5));
_local5++;
};
postData.writeUTFBytes(_arg1);
writeQuotationMark();
writeLineBreak();
_local4 = _arg3;
_local5 = 0;
while (_local5 < _local4.length) {
postData.writeByte(_local4.charCodeAt(_local5));
_local5++;
};
writeLineBreak();
writeLineBreak();
_arg2.position = 0;
postData.writeBytes(_arg2, 0, _arg2.length);
writeLineBreak();
}
public function createPostData():void{
postData = new ByteArray();
postData.endian = Endian.BIG_ENDIAN;
}
public function writePostData(_arg1:String, _arg2:String):void{
var _local3:String;
var _local4:uint;
var _local5:Number;
writeBoundary();
writeLineBreak();
_local3 = (("Content-Disposition: form-data; name=\"" + _arg1) + "\"");
_local4 = _local3.length;
_local5 = 0;
while (_local5 < _local4) {
postData.writeByte(_local3.charCodeAt(_local5));
_local5++;
};
writeLineBreak();
writeLineBreak();
postData.writeUTFBytes(_arg2);
writeLineBreak();
}
protected function writeBoundary():void{
var _local1:Number;
writeDoubleDash();
_local1 = 0;
while (_local1 < boundary.length) {
postData.writeByte(boundary.charCodeAt(_local1));
_local1++;
};
}
protected function writeLineBreak():void{
postData.writeShort(3338);
}
public function get boundary():String{
return (_boundary);
}
public function close():void{
writeBoundary();
writeDoubleDash();
}
protected function writeQuotationMark():void{
postData.writeByte(34);
}
public function set boundary(_arg1:String):void{
_boundary = _arg1;
}
}
}//package com.facebook.utils
Section 346
//ValidationUtils (com.facebook.utils.ValidationUtils)
package com.facebook.utils {
public class ValidationUtils {
public static function validateLength(_arg1:String):Boolean{
var _local2:Boolean;
_local2 = ((((_arg1 == null)) || ((_arg1.length >= 0xFF)))) ? false : true;
return (_local2);
}
public static function isDataObjectTypeValid(_arg1:String):Boolean{
var _local2:RegExp;
if ((((_arg1 == null)) || ((_arg1.length > 32)))){
return (false);
};
_local2 = new RegExp("[^a-z_0-9]", "ig");
return (!(_local2.exec(_arg1)));
}
}
}//package com.facebook.utils
Section 347
//Facebook (com.facebook.Facebook)
package com.facebook {
import com.facebook.net.*;
import flash.net.*;
import com.facebook.delegates.*;
import com.facebook.session.*;
import flash.events.*;
import com.facebook.events.*;
import com.facebook.commands.auth.*;
public class Facebook extends EventDispatcher {
public var waiting_for_login:Boolean;
public var connectionErrorMessage:String;
protected var _currentSession:IFacebookSession;
public function Facebook():void{
}
public function get api_version():String{
return ((_currentSession) ? this._currentSession.api_version : null);
}
public function get expires():Date{
return ((_currentSession) ? this._currentSession.expires : new Date());
}
public function get uid():String{
return ((_currentSession) ? this._currentSession.uid : null);
}
public function grantPermission(_arg1:Boolean):void{
var _local2:String;
_local2 = ((("http://www.facebook.com/login.php?return_session=" + (_arg1) ? 1 : 0) + "&api_key=") + api_key);
navigateToURL(new URLRequest(_local2), "_blank");
}
public function refreshSession():void{
_currentSession.refreshSession();
}
public function logout():void{
var _local1:ExpireSession;
_local1 = new ExpireSession();
_local1.addEventListener(FacebookEvent.COMPLETE, onLoggedOut, false, 0, true);
post(_local1);
}
public function startSession(_arg1:IFacebookSession):void{
_currentSession = _arg1;
if (_currentSession.is_connected){
dispatchEvent(new FacebookEvent(FacebookEvent.CONNECT, false, false, true));
} else {
_currentSession.addEventListener(FacebookEvent.CONNECT, onSessionConnected);
_currentSession.addEventListener(FacebookEvent.WAITING_FOR_LOGIN, onWaitingForLogin);
};
}
protected function onLoggedOut(_arg1:FacebookEvent):void{
if (_arg1.success == true){
_currentSession.session_key = null;
};
dispatchEvent(new FacebookEvent(FacebookEvent.LOGOUT, false, false, _arg1.success, _arg1.data, _arg1.error));
}
public function post(_arg1:FacebookCall):FacebookCall{
var _local2:IFacebookCallDelegate;
if (_currentSession){
_arg1.session = _currentSession;
_arg1.initialize();
_local2 = _currentSession.post(_arg1);
_arg1.delegate = _local2;
} else {
throw (new Error("Cannot post a call; no session has been set."));
};
return (_arg1);
}
protected function onSessionConnected(_arg1:FacebookEvent):void{
var _local2:IFacebookSession;
_local2 = (_arg1.target as IFacebookSession);
dispatchEvent(_arg1);
}
public function grantExtendedPermission(_arg1:String):void{
navigateToURL(new URLRequest(((((("http://www.facebook.com/authorize.php?api_key=" + api_key) + "&v=") + api_version) + "&ext_perm=") + _arg1)), "_blank");
}
public function login(_arg1:Boolean):void{
_currentSession.login(_arg1);
}
protected function onWaitingForLogin(_arg1:FacebookEvent):void{
waiting_for_login = true;
dispatchEvent(new FacebookEvent(FacebookEvent.WAITING_FOR_LOGIN));
}
public function get secret():String{
return ((_currentSession) ? this._currentSession.secret : null);
}
public function get session_key():String{
return ((_currentSession) ? this._currentSession.session_key : null);
}
public function get api_key():String{
return ((_currentSession) ? this._currentSession.api_key : null);
}
public function get is_connected():Boolean{
return ((_currentSession) ? this._currentSession.is_connected : false);
}
}
}//package com.facebook
Section 348
//facebook_internal (com.facebook.facebook_internal)
package com.facebook {
public namespace facebook_internal = "http://api.facebook.com/1.0/";
}//package com.facebook
Section 349
//PropTween (com.greensock.core.PropTween)
package com.greensock.core {
public class PropTween {
public var start:Number;
public var name:String;
public var prevNode:PropTween;
public var change:Number;
public var target:Object;
public var priority:int;
public var property:String;
public var nextNode:PropTween;
public var isPlugin:Boolean;
public function PropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean, _arg7:PropTween=null, _arg8:int=0){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
if (_arg7){
_arg7.prevNode = this;
this.nextNode = _arg7;
};
this.priority = _arg8;
}
}
}//package com.greensock.core
Section 350
//SimpleTimeline (com.greensock.core.SimpleTimeline)
package com.greensock.core {
public class SimpleTimeline extends TweenCore {
public var autoRemoveChildren:Boolean;
protected var _lastChild:TweenCore;
protected var _firstChild:TweenCore;
public function SimpleTimeline(_arg1:Object=null){
super(0, _arg1);
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:TweenCore;
var _local5:Number;
var _local6:TweenCore;
_local4 = _firstChild;
this.cachedTotalTime = _arg1;
this.cachedTime = _arg1;
while (_local4) {
_local6 = _local4.nextNode;
if (((_local4.active) || ((((_arg1 >= _local4.cachedStartTime)) && (!(_local4.cachedPaused)))))){
if (!_local4.cachedReversed){
_local4.renderTime(((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale), _arg2, false);
} else {
_local5 = (_local4.cacheIsDirty) ? _local4.totalDuration : _local4.cachedTotalDuration;
_local4.renderTime((_local5 - ((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale)), _arg2, false);
};
};
_local4 = _local6;
};
}
public function addChild(_arg1:TweenCore):void{
if (((!(_arg1.gc)) && (_arg1.timeline))){
_arg1.timeline.remove(_arg1, true);
};
_arg1.timeline = this;
if (_arg1.gc){
_arg1.setEnabled(true, true);
};
if (_firstChild){
_firstChild.prevNode = _arg1;
};
_arg1.nextNode = _firstChild;
_firstChild = _arg1;
_arg1.prevNode = null;
}
public function get rawTime():Number{
return (this.cachedTotalTime);
}
public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{
if (((!(_arg1.gc)) && (!(_arg2)))){
_arg1.setEnabled(false, true);
};
if (_arg1.nextNode){
_arg1.nextNode.prevNode = _arg1.prevNode;
} else {
if (_lastChild == _arg1){
_lastChild = _arg1.prevNode;
};
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (_firstChild == _arg1){
_firstChild = _arg1.nextNode;
};
};
}
}
}//package com.greensock.core
Section 351
//TweenCore (com.greensock.core.TweenCore)
package com.greensock.core {
import com.greensock.*;
public class TweenCore {
public var initted:Boolean;
protected var _hasUpdate:Boolean;
public var active:Boolean;
protected var _delay:Number;
public var cachedReversed:Boolean;
public var nextNode:TweenCore;
public var cachedTime:Number;
protected var _rawPrevTime:Number;// = -1
public var vars:Object;
public var cachedTotalTime:Number;
public var data;
public var timeline:SimpleTimeline;
public var cachedStartTime:Number;
public var prevNode:TweenCore;
public var cachedDuration:Number;
public var gc:Boolean;
protected var _pauseTime:Number;
public var cacheIsDirty:Boolean;
public var cachedPaused:Boolean;
public var cachedTimeScale:Number;
public var cachedTotalDuration:Number;
public static const version:Number = 1.1;
protected static var _classInitted:Boolean;
public function TweenCore(_arg1:Number=0, _arg2:Object=null){
var _local3:SimpleTimeline;
_rawPrevTime = -1;
super();
this.vars = ((_arg2) || ({}));
this.cachedDuration = (this.cachedTotalDuration = ((_arg1) || (0)));
_delay = ((this.vars.delay) || (0));
this.cachedTimeScale = ((this.vars.timeScale) || (1));
this.active = Boolean((((((_arg1 == 0)) && ((_delay == 0)))) && (!((this.vars.immediateRender == false)))));
this.cachedTotalTime = (this.cachedTime = 0);
this.data = this.vars.data;
if (!_classInitted){
if (isNaN(TweenLite.rootFrame)){
TweenLite.initClass();
_classInitted = true;
} else {
return;
};
};
_local3 = ((this.vars.timeline is SimpleTimeline)) ? this.vars.timeline : (this.vars.useFrames) ? TweenLite.rootFramesTimeline : TweenLite.rootTimeline;
this.cachedStartTime = (_local3.cachedTotalTime + _delay);
_local3.addChild(this);
if (this.vars.reversed){
this.cachedReversed = true;
};
if (this.vars.paused){
this.paused = true;
};
}
public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
}
public function get delay():Number{
return (_delay);
}
public function get duration():Number{
return (this.cachedDuration);
}
public function set reversed(_arg1:Boolean):void{
if (_arg1 != this.cachedReversed){
this.cachedReversed = _arg1;
setTotalTime(this.cachedTotalTime, true);
};
}
public function set startTime(_arg1:Number):void{
var _local2:Boolean;
_local2 = Boolean(((!((this.timeline == null))) && (((!((_arg1 == this.cachedStartTime))) || (this.gc)))));
this.cachedStartTime = _arg1;
if (_local2){
this.timeline.addChild(this);
};
}
public function set delay(_arg1:Number):void{
this.startTime = (this.startTime + (_arg1 - _delay));
_delay = _arg1;
}
public function resume():void{
this.paused = false;
}
public function get paused():Boolean{
return (this.cachedPaused);
}
public function play():void{
this.reversed = false;
this.paused = false;
}
public function set duration(_arg1:Number):void{
this.cachedDuration = (this.cachedTotalDuration = _arg1);
setDirtyCache(false);
}
public function invalidate():void{
}
public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{
this.reversed = false;
this.paused = false;
this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2);
}
public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{
if (!_arg1){
renderTime(this.cachedTotalDuration, _arg2, false);
return;
};
if (this.timeline.autoRemoveChildren){
this.setEnabled(false, false);
} else {
this.active = false;
};
if (!_arg2){
if (((((this.vars.onComplete) && ((this.cachedTime == this.cachedDuration)))) && (!(this.cachedReversed)))){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
} else {
if (((((this.cachedReversed) && ((this.cachedTotalTime == 0)))) && (this.vars.onReverseComplete))){
this.vars.onReverseComplete.apply(null, this.vars.onReverseCompleteParams);
};
};
};
}
public function get reversed():Boolean{
return (this.cachedReversed);
}
public function get totalTime():Number{
return (this.cachedTotalTime);
}
public function get startTime():Number{
return (this.cachedStartTime);
}
public function set currentTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
protected function setDirtyCache(_arg1:Boolean=true):void{
var _local2:TweenCore;
_local2 = (_arg1) ? this : this.timeline;
while (_local2) {
_local2.cacheIsDirty = true;
_local2 = _local2.timeline;
};
}
public function reverse(_arg1:Boolean=true):void{
this.reversed = true;
if (_arg1){
this.paused = false;
} else {
if (this.gc){
this.setEnabled(true, false);
};
};
}
public function set paused(_arg1:Boolean):void{
if (((!((_arg1 == this.cachedPaused))) && (this.timeline))){
if (_arg1){
_pauseTime = this.timeline.rawTime;
} else {
this.cachedStartTime = (this.cachedStartTime + (this.timeline.rawTime - _pauseTime));
_pauseTime = NaN;
setDirtyCache(false);
};
this.cachedPaused = _arg1;
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
};
if (((!(_arg1)) && (this.gc))){
this.setTotalTime(this.cachedTotalTime, false);
this.setEnabled(true, false);
};
}
public function kill():void{
setEnabled(false, false);
}
public function set totalTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
public function get currentTime():Number{
return (this.cachedTime);
}
protected function setTotalTime(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
var _local4:Number;
if (this.timeline){
_local3 = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime;
if (this.cachedReversed){
_local4 = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration;
this.cachedStartTime = (_local3 - ((_local4 - _arg1) / this.cachedTimeScale));
} else {
this.cachedStartTime = (_local3 - (_arg1 / this.cachedTimeScale));
};
if (!this.timeline.cacheIsDirty){
setDirtyCache(false);
};
if (this.cachedTotalTime != _arg1){
renderTime(_arg1, _arg2, false);
};
};
}
public function pause():void{
this.paused = true;
}
public function set totalDuration(_arg1:Number):void{
this.duration = _arg1;
}
public function get totalDuration():Number{
return (this.cachedTotalDuration);
}
public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
if (_arg1 == this.gc){
if (_arg1){
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
if (!_arg2){
this.timeline.addChild(this);
};
} else {
this.active = false;
if (!_arg2){
this.timeline.remove(this, true);
};
};
this.gc = !(_arg1);
};
return (false);
}
}
}//package com.greensock.core
Section 352
//Back (com.greensock.easing.Back)
package com.greensock.easing {
public class Back {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / (_arg4 * 0.5));
if (_arg1 < 1){
_arg5 = (_arg5 * 1.525);
return ((((_arg3 * 0.5) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2));
};
_arg1 = (_arg1 - 2);
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2));
}
}
}//package com.greensock.easing
Section 353
//TweenLite (com.greensock.TweenLite)
package com.greensock {
import flash.display.*;
import flash.utils.*;
import com.greensock.core.*;
import flash.events.*;
import com.greensock.plugins.*;
public class TweenLite extends TweenCore {
public var target:Object;
protected var _overwrite:uint;
public var ratio:Number;// = 0
protected var _notifyPluginsOfEnabled:Boolean;
protected var _hasPlugins:Boolean;
public var cachedPT1:PropTween;
protected var _overwrittenProps:Object;
public var propTweenLookup:Object;
protected var _ease:Function;
public static const version:Number = 11.101;
public static var rootTimeline:SimpleTimeline;
public static var fastEaseLookup:Dictionary = new Dictionary(false);
public static var onPluginEvent:Function;
public static var rootFramesTimeline:SimpleTimeline;
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var masterList:Dictionary = new Dictionary(false);
public static var overwriteManager:Object;
public static var rootFrame:Number;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _shape:Shape = new Shape();
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, onReverseComplete:1, onReverseCompleteParams:1, onRepeat:1, onRepeatParams:1, proxiedEase:1, easeParams:1, yoyo:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, onReverseCompleteListener:1, onRepeatListener:1, orientToBezier:1, timeScale:1, immediateRender:1, repeat:1, repeatDelay:1, timeline:1, data:1, paused:1};
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:Array;
var _local5:TweenLite;
ratio = 0;
super(_arg2, _arg3);
this.target = _arg1;
if ((((this.target is TweenCore)) && (("timeScale" in this.vars)))){
this.cachedTimeScale = 1;
};
propTweenLookup = {};
_ease = defaultEase;
_overwrite = (((!(("overwrite" in _arg3))) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
_local4 = masterList[_arg1];
if (!_local4){
masterList[_arg1] = [this];
} else {
if (_overwrite == 1){
for each (_local5 in _local4) {
if (!_local5.gc){
_local5.setEnabled(false, false);
};
};
masterList[_arg1] = [this];
} else {
_local4[_local4.length] = this;
};
};
if (((this.active) || (this.vars.immediateRender))){
renderTime(0, false, true);
};
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:Boolean;
var _local5:Number;
var _local6:PropTween;
_local5 = this.cachedTime;
this.active = true;
if (_arg1 >= this.cachedDuration){
this.cachedTotalTime = (this.cachedTime = this.cachedDuration);
this.ratio = 1;
_local4 = true;
if (this.cachedDuration == 0){
if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){
_arg3 = true;
};
_rawPrevTime = _arg1;
};
} else {
if (_arg1 <= 0){
this.cachedTotalTime = (this.cachedTime = (this.ratio = 0));
if (_arg1 < 0){
this.active = false;
if (this.cachedDuration == 0){
if (_rawPrevTime > 0){
_arg3 = true;
_local4 = true;
};
_rawPrevTime = _arg1;
};
};
if (((this.cachedReversed) && (!((_local5 == 0))))){
_local4 = true;
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
this.ratio = _ease(_arg1, 0, 1, this.cachedDuration);
};
};
if ((((this.cachedTime == _local5)) && (!(_arg3)))){
return;
};
if (!this.initted){
init();
if (((!(_local4)) && (this.cachedTime))){
this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration);
};
};
if ((((((((_local5 == 0)) && (this.vars.onStart))) && (!((this.cachedTime == 0))))) && (!(_arg2)))){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
_local6 = this.cachedPT1;
while (_local6) {
_local6.target[_local6.property] = (_local6.start + (this.ratio * _local6.change));
_local6 = _local6.nextNode;
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local4){
if (((_hasPlugins) && (this.cachedPT1))){
onPluginEvent("onComplete", this);
};
complete(true, _arg2);
};
}
protected function init():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:Boolean;
var _local5:Array;
var _local6:PropTween;
if (typeof(this.vars.ease) == "function"){
_ease = this.vars.ease;
};
if (this.vars.easeParams){
this.vars.proxiedEase = _ease;
_ease = easeProxy;
};
this.cachedPT1 = null;
this.propTweenLookup = {};
for (_local1 in this.vars) {
if ((((_local1 in _reservedProps)) && (!((((_local1 == "timeScale")) && ((this.target is TweenCore))))))){
} else {
if ((((_local1 in plugins)) && (new ((plugins[_local1] as Class)).onInitTween(this.target, this.vars[_local1], this)))){
this.cachedPT1 = new PropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true, this.cachedPT1);
if (this.cachedPT1.name == "_MULTIPLE_"){
_local2 = _local3.overwriteProps.length;
while (_local2--) {
this.propTweenLookup[_local3.overwriteProps[_local2]] = this.cachedPT1;
};
} else {
this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1;
};
if (_local3.priority){
this.cachedPT1.priority = _local3.priority;
_local4 = true;
};
if (((_local3.onDisable) || (_local3.onEnable))){
_notifyPluginsOfEnabled = true;
};
_hasPlugins = true;
} else {
this.cachedPT1 = new PropTween(this.target, _local1, Number(this.target[_local1]), ((typeof(this.vars[_local1]))=="number") ? (Number(this.vars[_local1]) - this.target[_local1]) : Number(this.vars[_local1]), _local1, false, this.cachedPT1);
this.propTweenLookup[_local1] = this.cachedPT1;
};
};
};
if (_local4){
onPluginEvent("onInit", this);
};
if (this.vars.runBackwards){
_local6 = this.cachedPT1;
while (_local6) {
_local6.start = (_local6.start + _local6.change);
_local6.change = -(_local6.change);
_local6 = _local6.nextNode;
};
};
_hasUpdate = Boolean(!((this.vars.onUpdate == null)));
if (_overwrittenProps){
killVars(_overwrittenProps);
if (this.cachedPT1 == null){
this.setEnabled(false, false);
};
};
if ((((((((_overwrite > 1)) && (this.cachedPT1))) && (masterList[this.target]))) && ((_local5.length > 1)))){
if (overwriteManager.manageOverwrites(this, this.propTweenLookup, _local5, _overwrite)){
init();
};
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
override public function invalidate():void{
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
onPluginEvent("onDisable", this);
};
this.cachedPT1 = null;
_overwrittenProps = null;
_hasUpdate = (this.initted = (this.active = (_notifyPluginsOfEnabled = false)));
this.propTweenLookup = {};
}
public function killVars(_arg1:Object, _arg2:Boolean=true):Boolean{
var _local3:String;
var _local4:PropTween;
var _local5:Boolean;
if (_overwrittenProps == null){
_overwrittenProps = {};
};
for (_local3 in _arg1) {
if ((_local3 in propTweenLookup)){
_local4 = propTweenLookup[_local3];
if (((_local4.isPlugin) && ((_local4.name == "_MULTIPLE_")))){
_local4.target.killProps(_arg1);
if (_local4.target.overwriteProps.length == 0){
_local4.name = "";
};
};
if (_local4.name != "_MULTIPLE_"){
if (_local4.nextNode){
_local4.nextNode.prevNode = _local4.prevNode;
};
if (_local4.prevNode){
_local4.prevNode.nextNode = _local4.nextNode;
} else {
if (this.cachedPT1 == _local4){
this.cachedPT1 = _local4.nextNode;
};
};
if (((_local4.isPlugin) && (_local4.target.onDisable))){
_local4.target.onDisable();
if (_local4.target.activeDisable){
_local5 = true;
};
};
delete propTweenLookup[_local3];
};
};
if (_arg2){
_overwrittenProps[_local3] = 1;
};
};
return (_local5);
}
override public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
var _local3:Array;
if (_arg1 == this.gc){
if (_arg1){
_local3 = TweenLite.masterList[this.target];
if (!_local3){
TweenLite.masterList[this.target] = [this];
} else {
_local3[_local3.length] = this;
};
};
super.setEnabled(_arg1, _arg2);
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
return (onPluginEvent((_arg1) ? "onEnable" : "onDisable", this));
};
};
return (false);
}
public static function initClass():void{
rootFrame = 0;
rootTimeline = new SimpleTimeline(null);
rootFramesTimeline = new SimpleTimeline(null);
rootTimeline.cachedStartTime = (getTimer() * 0.001);
rootFramesTimeline.cachedStartTime = rootFrame;
rootTimeline.autoRemoveChildren = true;
rootFramesTimeline.autoRemoveChildren = true;
_shape.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
}
public static function killTweensOf(_arg1:Object, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
if ((_arg1 in masterList)){
_local3 = masterList[_arg1];
_local4 = _local3.length;
while (_local4--) {
if (!TweenLite(_local3[_local4]).gc){
if (_arg2){
TweenLite(_local3[_local4]).complete(false, false);
} else {
TweenLite(_local3[_local4]).setEnabled(false, false);
};
};
};
delete masterList[_arg1];
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (new TweenLite(_arg1, _arg2, _arg3));
}
protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (1 - (_arg1 / _arg4));
return ((1 - (_arg1 * _arg1)));
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0}));
}
protected static function updateAll(_arg1:Event=null):void{
var _local2:Dictionary;
var _local3:Object;
var _local4:Array;
var _local5:int;
rootTimeline.renderTime((((getTimer() * 0.001) - rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale), false, false);
rootFrame++;
rootFramesTimeline.renderTime(((rootFrame - rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale), false, false);
if (!(rootFrame % 60)){
_local2 = masterList;
for (_local3 in _local2) {
_local4 = _local2[_local3];
_local5 = _local4.length;
while (_local5--) {
if (TweenLite(_local4[_local5]).gc){
_local4.splice(_local5, 1);
};
};
if (_local4.length == 0){
delete _local2[_local3];
};
};
};
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package com.greensock
Section 354
//BaseScrollPane (fl.containers.BaseScrollPane)
package fl.containers {
import fl.core.*;
import fl.controls.*;
import flash.display.*;
import flash.events.*;
import fl.events.*;
import flash.geom.*;
public class BaseScrollPane extends UIComponent {
protected var defaultLineScrollSize:Number;// = 4
protected var _maxHorizontalScrollPosition:Number;// = 0
protected var vScrollBar:Boolean;
protected var disabledOverlay:Shape;
protected var hScrollBar:Boolean;
protected var availableWidth:Number;
protected var _verticalPageScrollSize:Number;// = 0
protected var vOffset:Number;// = 0
protected var _verticalScrollBar:ScrollBar;
protected var useFixedHorizontalScrolling:Boolean;// = false
protected var contentWidth:Number;// = 0
protected var contentHeight:Number;// = 0
protected var _horizontalPageScrollSize:Number;// = 0
protected var background:DisplayObject;
protected var _useBitmpScrolling:Boolean;// = false
protected var contentPadding:Number;// = 0
protected var availableHeight:Number;
protected var _horizontalScrollBar:ScrollBar;
protected var contentScrollRect:Rectangle;
protected var _horizontalScrollPolicy:String;
protected var _verticalScrollPolicy:String;
protected static const SCROLL_BAR_STYLES:Object = {upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
private static var defaultStyles:Object = {repeatDelay:500, repeatInterval:35, skin:"ScrollPane_upSkin", contentPadding:0, disabledAlpha:0.5};
public function BaseScrollPane(){
contentWidth = 0;
contentHeight = 0;
contentPadding = 0;
vOffset = 0;
_maxHorizontalScrollPosition = 0;
_horizontalPageScrollSize = 0;
_verticalPageScrollSize = 0;
defaultLineScrollSize = 4;
useFixedHorizontalScrolling = false;
_useBitmpScrolling = false;
super();
}
protected function handleWheel(_arg1:MouseEvent):void{
if (((((!(enabled)) || (!(_verticalScrollBar.visible)))) || ((contentHeight <= availableHeight)))){
return;
};
_verticalScrollBar.scrollPosition = (_verticalScrollBar.scrollPosition - (_arg1.delta * verticalLineScrollSize));
setVerticalScrollPosition(_verticalScrollBar.scrollPosition);
dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _arg1.delta, horizontalScrollPosition));
}
public function get verticalScrollPosition():Number{
return (_verticalScrollBar.scrollPosition);
}
protected function drawDisabledOverlay():void{
if (enabled){
if (contains(disabledOverlay)){
removeChild(disabledOverlay);
};
} else {
disabledOverlay.x = (disabledOverlay.y = contentPadding);
disabledOverlay.width = availableWidth;
disabledOverlay.height = availableHeight;
disabledOverlay.alpha = (getStyleValue("disabledAlpha") as Number);
addChild(disabledOverlay);
};
}
public function set verticalScrollPosition(_arg1:Number):void{
drawNow();
_verticalScrollBar.scrollPosition = _arg1;
setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false);
}
protected function setContentSize(_arg1:Number, _arg2:Number):void{
if ((((((contentWidth == _arg1)) || (useFixedHorizontalScrolling))) && ((contentHeight == _arg2)))){
return;
};
contentWidth = _arg1;
contentHeight = _arg2;
invalidate(InvalidationType.SIZE);
}
public function get horizontalScrollPosition():Number{
return (_horizontalScrollBar.scrollPosition);
}
public function get horizontalScrollBar():ScrollBar{
return (_horizontalScrollBar);
}
override public function set enabled(_arg1:Boolean):void{
if (enabled == _arg1){
return;
};
_verticalScrollBar.enabled = _arg1;
_horizontalScrollBar.enabled = _arg1;
super.enabled = _arg1;
}
public function get verticalLineScrollSize():Number{
return (_verticalScrollBar.lineScrollSize);
}
public function get horizontalScrollPolicy():String{
return (_horizontalScrollPolicy);
}
protected function calculateAvailableSize():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local1 = ScrollBar.WIDTH;
_local2 = (contentPadding = Number(getStyleValue("contentPadding")));
_local3 = ((height - (2 * _local2)) - vOffset);
vScrollBar = (((_verticalScrollPolicy == ScrollPolicy.ON)) || ((((_verticalScrollPolicy == ScrollPolicy.AUTO)) && ((contentHeight > _local3)))));
_local4 = ((width - (vScrollBar) ? _local1 : 0) - (2 * _local2));
_local5 = (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - _local4);
hScrollBar = (((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_local5 > 0)))));
if (hScrollBar){
_local3 = (_local3 - _local1);
};
if (((((((hScrollBar) && (!(vScrollBar)))) && ((_verticalScrollPolicy == ScrollPolicy.AUTO)))) && ((contentHeight > _local3)))){
vScrollBar = true;
_local4 = (_local4 - _local1);
};
availableHeight = (_local3 + vOffset);
availableWidth = _local4;
}
public function get maxVerticalScrollPosition():Number{
drawNow();
return (Math.max(0, (contentHeight - availableHeight)));
}
public function set horizontalScrollPosition(_arg1:Number):void{
drawNow();
_horizontalScrollBar.scrollPosition = _arg1;
setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false);
}
public function get horizontalLineScrollSize():Number{
return (_horizontalScrollBar.lineScrollSize);
}
public function set verticalPageScrollSize(_arg1:Number):void{
_verticalPageScrollSize = _arg1;
invalidate(InvalidationType.SIZE);
}
public function get verticalScrollPolicy():String{
return (_verticalScrollPolicy);
}
protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
}
public function get useBitmapScrolling():Boolean{
return (_useBitmpScrolling);
}
protected function handleScroll(_arg1:ScrollEvent):void{
if (_arg1.target == _verticalScrollBar){
setVerticalScrollPosition(_arg1.position);
} else {
setHorizontalScrollPosition(_arg1.position);
};
}
public function set verticalLineScrollSize(_arg1:Number):void{
_verticalScrollBar.lineScrollSize = _arg1;
}
public function get verticalScrollBar():ScrollBar{
return (_verticalScrollBar);
}
protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
}
public function set horizontalPageScrollSize(_arg1:Number):void{
_horizontalPageScrollSize = _arg1;
invalidate(InvalidationType.SIZE);
}
override protected function draw():void{
if (isInvalid(InvalidationType.STYLES)){
setStyles();
drawBackground();
if (contentPadding != getStyleValue("contentPadding")){
invalidate(InvalidationType.SIZE, false);
};
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.STATE)){
drawLayout();
};
updateChildren();
super.draw();
}
public function set horizontalScrollPolicy(_arg1:String):void{
_horizontalScrollPolicy = _arg1;
invalidate(InvalidationType.SIZE);
}
override protected function configUI():void{
var _local1:Graphics;
super.configUI();
contentScrollRect = new Rectangle(0, 0, 85, 85);
_verticalScrollBar = new ScrollBar();
_verticalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true);
_verticalScrollBar.visible = false;
_verticalScrollBar.lineScrollSize = defaultLineScrollSize;
addChild(_verticalScrollBar);
copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES);
_horizontalScrollBar = new ScrollBar();
_horizontalScrollBar.direction = ScrollBarDirection.HORIZONTAL;
_horizontalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true);
_horizontalScrollBar.visible = false;
_horizontalScrollBar.lineScrollSize = defaultLineScrollSize;
addChild(_horizontalScrollBar);
copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES);
disabledOverlay = new Shape();
_local1 = disabledOverlay.graphics;
_local1.beginFill(0xFFFFFF);
_local1.drawRect(0, 0, width, height);
_local1.endFill();
addEventListener(MouseEvent.MOUSE_WHEEL, handleWheel, false, 0, true);
}
protected function calculateContentWidth():void{
}
public function get verticalPageScrollSize():Number{
if (isNaN(availableHeight)){
drawNow();
};
return (((((_verticalPageScrollSize == 0)) && (!(isNaN(availableHeight))))) ? availableHeight : _verticalPageScrollSize);
}
protected function drawLayout():void{
calculateAvailableSize();
calculateContentWidth();
background.width = width;
background.height = height;
if (vScrollBar){
_verticalScrollBar.visible = true;
_verticalScrollBar.x = ((width - ScrollBar.WIDTH) - contentPadding);
_verticalScrollBar.y = contentPadding;
_verticalScrollBar.height = availableHeight;
} else {
_verticalScrollBar.visible = false;
};
_verticalScrollBar.setScrollProperties(availableHeight, 0, (contentHeight - availableHeight), verticalPageScrollSize);
setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false);
if (hScrollBar){
_horizontalScrollBar.visible = true;
_horizontalScrollBar.x = contentPadding;
_horizontalScrollBar.y = ((height - ScrollBar.WIDTH) - contentPadding);
_horizontalScrollBar.width = availableWidth;
} else {
_horizontalScrollBar.visible = false;
};
_horizontalScrollBar.setScrollProperties(availableWidth, 0, (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - availableWidth), horizontalPageScrollSize);
setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false);
drawDisabledOverlay();
}
protected function drawBackground():void{
var _local1:DisplayObject;
_local1 = background;
background = getDisplayObjectInstance(getStyleValue("skin"));
background.width = width;
background.height = height;
addChildAt(background, 0);
if (((!((_local1 == null))) && (!((_local1 == background))))){
removeChild(_local1);
};
}
public function set horizontalLineScrollSize(_arg1:Number):void{
_horizontalScrollBar.lineScrollSize = _arg1;
}
public function get horizontalPageScrollSize():Number{
if (isNaN(availableWidth)){
drawNow();
};
return (((((_horizontalPageScrollSize == 0)) && (!(isNaN(availableWidth))))) ? availableWidth : _horizontalPageScrollSize);
}
public function get maxHorizontalScrollPosition():Number{
drawNow();
return (Math.max(0, (contentWidth - availableWidth)));
}
protected function setStyles():void{
copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES);
copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES);
}
protected function updateChildren():void{
_verticalScrollBar.enabled = (_horizontalScrollBar.enabled = enabled);
_verticalScrollBar.drawNow();
_horizontalScrollBar.drawNow();
}
public function set verticalScrollPolicy(_arg1:String):void{
_verticalScrollPolicy = _arg1;
invalidate(InvalidationType.SIZE);
}
public function set useBitmapScrolling(_arg1:Boolean):void{
_useBitmpScrolling = _arg1;
invalidate(InvalidationType.STATE);
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, ScrollBar.getStyleDefinition()));
}
}
}//package fl.containers
Section 355
//CellRenderer (fl.controls.listClasses.CellRenderer)
package fl.controls.listClasses {
import fl.controls.*;
import flash.events.*;
public class CellRenderer extends LabelButton implements ICellRenderer {
protected var _data:Object;
protected var _listData:ListData;
private static var defaultStyles:Object = {upSkin:"CellRenderer_upSkin", downSkin:"CellRenderer_downSkin", overSkin:"CellRenderer_overSkin", disabledSkin:"CellRenderer_disabledSkin", selectedDisabledSkin:"CellRenderer_selectedDisabledSkin", selectedUpSkin:"CellRenderer_selectedUpSkin", selectedDownSkin:"CellRenderer_selectedDownSkin", selectedOverSkin:"CellRenderer_selectedOverSkin", textFormat:null, disabledTextFormat:null, embedFonts:null, textPadding:5};
public function CellRenderer():void{
toggle = true;
focusEnabled = false;
}
override protected function toggleSelected(_arg1:MouseEvent):void{
}
override public function get selected():Boolean{
return (super.selected);
}
public function set listData(_arg1:ListData):void{
_listData = _arg1;
label = _listData.label;
setStyle("icon", _listData.icon);
}
override public function set selected(_arg1:Boolean):void{
super.selected = _arg1;
}
public function set data(_arg1:Object):void{
_data = _arg1;
}
public function get listData():ListData{
return (_listData);
}
override public function setSize(_arg1:Number, _arg2:Number):void{
super.setSize(_arg1, _arg2);
}
override protected function drawLayout():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
_local1 = Number(getStyleValue("textPadding"));
_local2 = 0;
if (icon != null){
icon.x = _local1;
icon.y = Math.round(((height - icon.height) >> 1));
_local2 = (icon.width + _local1);
};
if (label.length > 0){
textField.visible = true;
_local3 = Math.max(0, ((width - _local2) - (_local1 * 2)));
textField.width = _local3;
textField.height = (textField.textHeight + 4);
textField.x = (_local2 + _local1);
textField.y = Math.round(((height - textField.height) >> 1));
} else {
textField.visible = false;
};
background.width = width;
background.height = height;
}
public function get data():Object{
return (_data);
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls.listClasses
Section 356
//ICellRenderer (fl.controls.listClasses.ICellRenderer)
package fl.controls.listClasses {
public interface ICellRenderer {
function setSize(_arg1:Number, _arg2:Number):void;
function get listData():ListData;
function get data():Object;
function setMouseState(_arg1:String):void;
function set x(_arg1:Number):void;
function set y(_arg1:Number):void;
function set data(_arg1:Object):void;
function set selected(_arg1:Boolean):void;
function set listData(_arg1:ListData):void;
function get selected():Boolean;
}
}//package fl.controls.listClasses
Section 357
//ListData (fl.controls.listClasses.ListData)
package fl.controls.listClasses {
import fl.core.*;
public class ListData {
protected var _index:uint;
protected var _owner:UIComponent;
protected var _label:String;
protected var _icon:Object;// = null
protected var _row:uint;
protected var _column:uint;
public function ListData(_arg1:String, _arg2:Object, _arg3:UIComponent, _arg4:uint, _arg5:uint, _arg6:uint=0){
_icon = null;
super();
_label = _arg1;
_icon = _arg2;
_owner = _arg3;
_index = _arg4;
_row = _arg5;
_column = _arg6;
}
public function get owner():UIComponent{
return (_owner);
}
public function get label():String{
return (_label);
}
public function get row():uint{
return (_row);
}
public function get index():uint{
return (_index);
}
public function get icon():Object{
return (_icon);
}
public function get column():uint{
return (_column);
}
}
}//package fl.controls.listClasses
Section 358
//BaseButton (fl.controls.BaseButton)
package fl.controls {
import fl.core.*;
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import fl.events.*;
public class BaseButton extends UIComponent {
protected var _selected:Boolean;// = false
private var unlockedMouseState:String;
protected var pressTimer:Timer;
protected var mouseState:String;
protected var background:DisplayObject;
private var _mouseStateLocked:Boolean;// = false
protected var _autoRepeat:Boolean;// = false
private static var defaultStyles:Object = {upSkin:"Button_upSkin", downSkin:"Button_downSkin", overSkin:"Button_overSkin", disabledSkin:"Button_disabledSkin", selectedDisabledSkin:"Button_selectedDisabledSkin", selectedUpSkin:"Button_selectedUpSkin", selectedDownSkin:"Button_selectedDownSkin", selectedOverSkin:"Button_selectedOverSkin", focusRectSkin:null, focusRectPadding:null, repeatDelay:500, repeatInterval:35};
public function BaseButton(){
_selected = false;
_autoRepeat = false;
_mouseStateLocked = false;
super();
buttonMode = true;
mouseChildren = false;
useHandCursor = false;
setupMouseEvents();
setMouseState("up");
pressTimer = new Timer(1, 0);
pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true);
}
protected function endPress():void{
pressTimer.reset();
}
public function set mouseStateLocked(_arg1:Boolean):void{
_mouseStateLocked = _arg1;
if (_arg1 == false){
setMouseState(unlockedMouseState);
} else {
unlockedMouseState = mouseState;
};
}
public function get autoRepeat():Boolean{
return (_autoRepeat);
}
public function set autoRepeat(_arg1:Boolean):void{
_autoRepeat = _arg1;
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
mouseEnabled = _arg1;
}
public function get selected():Boolean{
return (_selected);
}
protected function mouseEventHandler(_arg1:MouseEvent):void{
if (_arg1.type == MouseEvent.MOUSE_DOWN){
setMouseState("down");
startPress();
} else {
if ((((_arg1.type == MouseEvent.ROLL_OVER)) || ((_arg1.type == MouseEvent.MOUSE_UP)))){
setMouseState("over");
endPress();
} else {
if (_arg1.type == MouseEvent.ROLL_OUT){
setMouseState("up");
endPress();
};
};
};
}
public function setMouseState(_arg1:String):void{
if (_mouseStateLocked){
unlockedMouseState = _arg1;
return;
};
if (mouseState == _arg1){
return;
};
mouseState = _arg1;
invalidate(InvalidationType.STATE);
}
protected function startPress():void{
if (_autoRepeat){
pressTimer.delay = Number(getStyleValue("repeatDelay"));
pressTimer.start();
};
dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true));
}
protected function buttonDown(_arg1:TimerEvent):void{
if (!_autoRepeat){
endPress();
return;
};
if (pressTimer.currentCount == 1){
pressTimer.delay = Number(getStyleValue("repeatInterval"));
};
dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true));
}
public function set selected(_arg1:Boolean):void{
if (_selected == _arg1){
return;
};
_selected = _arg1;
invalidate(InvalidationType.STATE);
}
override public function get enabled():Boolean{
return (super.enabled);
}
override protected function draw():void{
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawBackground();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
super.draw();
}
protected function setupMouseEvents():void{
addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false, 0, true);
}
protected function drawLayout():void{
background.width = width;
background.height = height;
}
protected function drawBackground():void{
var _local1:String;
var _local2:DisplayObject;
_local1 = (enabled) ? mouseState : "disabled";
if (selected){
_local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1));
};
_local1 = (_local1 + "Skin");
_local2 = background;
background = getDisplayObjectInstance(getStyleValue(_local1));
addChildAt(background, 0);
if (((!((_local2 == null))) && (!((_local2 == background))))){
removeChild(_local2);
};
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 359
//Button (fl.controls.Button)
package fl.controls {
import fl.core.*;
import flash.display.*;
import fl.managers.*;
public class Button extends LabelButton implements IFocusManagerComponent {
protected var emphasizedBorder:DisplayObject;
protected var _emphasized:Boolean;// = false
private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2};
public static var createAccessibilityImplementation:Function;
public function Button(){
_emphasized = false;
super();
}
override public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
var _local3:*;
super.drawFocus(_arg1);
if (_arg1){
_local2 = Number(getStyleValue("emphasizedPadding"));
if ((((_local2 < 0)) || (!(_emphasized)))){
_local2 = 0;
};
_local3 = getStyleValue("focusRectPadding");
_local3 = ((_local3)==null) ? 2 : _local3;
_local3 = (_local3 + _local2);
uiFocusRect.x = -(_local3);
uiFocusRect.y = -(_local3);
uiFocusRect.width = (width + (_local3 * 2));
uiFocusRect.height = (height + (_local3 * 2));
};
}
public function set emphasized(_arg1:Boolean):void{
_emphasized = _arg1;
invalidate(InvalidationType.STYLES);
}
override protected function draw():void{
if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){
drawEmphasized();
};
super.draw();
if (emphasizedBorder != null){
setChildIndex(emphasizedBorder, (numChildren - 1));
};
}
public function get emphasized():Boolean{
return (_emphasized);
}
override protected function initializeAccessibility():void{
if (Button.createAccessibilityImplementation != null){
Button.createAccessibilityImplementation(this);
};
}
protected function drawEmphasized():void{
var _local1:Object;
var _local2:Number;
if (emphasizedBorder != null){
removeChild(emphasizedBorder);
};
emphasizedBorder = null;
if (!_emphasized){
return;
};
_local1 = getStyleValue("emphasizedSkin");
if (_local1 != null){
emphasizedBorder = getDisplayObjectInstance(_local1);
};
if (emphasizedBorder != null){
addChildAt(emphasizedBorder, 0);
_local2 = Number(getStyleValue("emphasizedPadding"));
emphasizedBorder.x = (emphasizedBorder.y = -(_local2));
emphasizedBorder.width = (width + (_local2 * 2));
emphasizedBorder.height = (height + (_local2 * 2));
};
}
public static function getStyleDefinition():Object{
return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles));
}
}
}//package fl.controls
Section 360
//ButtonLabelPlacement (fl.controls.ButtonLabelPlacement)
package fl.controls {
public class ButtonLabelPlacement {
public static const TOP:String = "top";
public static const LEFT:String = "left";
public static const BOTTOM:String = "bottom";
public static const RIGHT:String = "right";
}
}//package fl.controls
Section 361
//ComboBox (fl.controls.ComboBox)
package fl.controls {
import fl.controls.listClasses.*;
import fl.core.*;
import flash.display.*;
import flash.events.*;
import fl.data.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.ui.*;
import flash.geom.*;
public class ComboBox extends UIComponent implements IFocusManagerComponent {
protected var _dropdownWidth:Number;
protected var highlightedCell:int;// = -1
protected var _prompt:String;
protected var isOpen:Boolean;// = false
protected var list:List;
protected var _rowCount:uint;// = 5
protected var currentIndex:int;
protected var isKeyDown:Boolean;// = false
protected var _labels:Array;
protected var background:BaseButton;
protected var inputField:TextInput;
protected var listOverIndex:uint;
protected var editableValue:String;
protected var _editable:Boolean;// = false
private var collectionItemImport:SimpleCollectionItem;
protected static const BACKGROUND_STYLES:Object = {overSkin:"overSkin", downSkin:"downSkin", upSkin:"upSkin", disabledSkin:"disabledSkin", repeatInterval:"repeatInterval"};
protected static const LIST_STYLES:Object = {upSkin:"comboListUpSkin", overSkin:"comboListOverSkin", downSkin:"comobListDownSkin", disabledSkin:"comboListDisabledSkin", downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval", textFormat:"textFormat", disabledAlpha:"disabledAlpha", skin:"listSkin"};
private static var defaultStyles:Object = {upSkin:"ComboBox_upSkin", downSkin:"ComboBox_downSkin", overSkin:"ComboBox_overSkin", disabledSkin:"ComboBox_disabledSkin", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, textPadding:3, buttonWidth:24, disabledAlpha:null, listSkin:null};
public static var createAccessibilityImplementation:Function;
public function ComboBox(){
_rowCount = 5;
_editable = false;
isOpen = false;
highlightedCell = -1;
isKeyDown = false;
super();
}
protected function drawList():void{
list.rowCount = Math.max(0, Math.min(_rowCount, list.dataProvider.length));
}
public function set imeMode(_arg1:String):void{
inputField.imeMode = _arg1;
}
public function get dropdown():List{
return (list);
}
public function get dropdownWidth():Number{
return (list.width);
}
public function sortItemsOn(_arg1:String, _arg2:Object=null){
return (list.sortItemsOn(_arg1, _arg2));
}
protected function onEnter(_arg1:ComponentEvent):void{
_arg1.stopPropagation();
}
public function removeItemAt(_arg1:uint):void{
list.removeItemAt(_arg1);
invalidate(InvalidationType.DATA);
}
public function open():void{
currentIndex = selectedIndex;
if (((isOpen) || ((length == 0)))){
return;
};
dispatchEvent(new Event(Event.OPEN));
isOpen = true;
addEventListener(Event.ENTER_FRAME, addCloseListener, false, 0, true);
positionList();
list.scrollToSelected();
stage.addChild(list);
}
public function get selectedItem():Object{
return (list.selectedItem);
}
public function set text(_arg1:String):void{
if (!editable){
return;
};
inputField.text = _arg1;
}
public function get labelField():String{
return (list.labelField);
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
var _local2:int;
var _local3:uint;
var _local4:Number;
var _local5:int;
isKeyDown = true;
if (_arg1.ctrlKey){
switch (_arg1.keyCode){
case Keyboard.UP:
if (highlightedCell > -1){
selectedIndex = highlightedCell;
dispatchEvent(new Event(Event.CHANGE));
};
close();
break;
case Keyboard.DOWN:
open();
break;
};
return;
};
_arg1.stopPropagation();
_local2 = Math.max(((calculateAvailableHeight() / list.rowHeight) << 0), 1);
_local3 = selectedIndex;
_local4 = ((highlightedCell)==-1) ? selectedIndex : highlightedCell;
_local5 = -1;
switch (_arg1.keyCode){
case Keyboard.SPACE:
if (isOpen){
close();
} else {
open();
};
return;
case Keyboard.ESCAPE:
if (isOpen){
if (highlightedCell > -1){
selectedIndex = selectedIndex;
};
close();
};
return;
case Keyboard.UP:
_local5 = Math.max(0, (_local4 - 1));
break;
case Keyboard.DOWN:
_local5 = Math.min((length - 1), (_local4 + 1));
break;
case Keyboard.PAGE_UP:
_local5 = Math.max((_local4 - _local2), 0);
break;
case Keyboard.PAGE_DOWN:
_local5 = Math.min((_local4 + _local2), (length - 1));
break;
case Keyboard.HOME:
_local5 = 0;
break;
case Keyboard.END:
_local5 = (length - 1);
break;
case Keyboard.ENTER:
if (((_editable) && ((highlightedCell == -1)))){
editableValue = inputField.text;
selectedIndex = -1;
} else {
if (((isOpen) && ((highlightedCell > -1)))){
editableValue = null;
selectedIndex = highlightedCell;
dispatchEvent(new Event(Event.CHANGE));
};
};
dispatchEvent(new ComponentEvent(ComponentEvent.ENTER));
close();
return;
default:
if (editable){
break;
};
_local5 = list.getNextIndexAtLetter(String.fromCharCode(_arg1.keyCode), _local4);
break;
};
if (_local5 > -1){
if (isOpen){
highlightCell(_local5);
inputField.text = list.itemToLabel(getItemAt(_local5));
} else {
highlightCell();
selectedIndex = _local5;
dispatchEvent(new Event(Event.CHANGE));
};
};
}
public function set dropdownWidth(_arg1:Number):void{
_dropdownWidth = _arg1;
invalidate(InvalidationType.SIZE);
}
public function get editable():Boolean{
return (_editable);
}
override protected function focusInHandler(_arg1:FocusEvent):void{
super.focusInHandler(_arg1);
if (editable){
stage.focus = inputField.textField;
};
}
protected function onStageClick(_arg1:MouseEvent):void{
if (!isOpen){
return;
};
if (((!(contains((_arg1.target as DisplayObject)))) && (!(list.contains((_arg1.target as DisplayObject)))))){
if (highlightedCell != -1){
selectedIndex = highlightedCell;
dispatchEvent(new Event(Event.CHANGE));
};
close();
};
}
protected function handleDataChange(_arg1:DataChangeEvent):void{
invalidate(InvalidationType.DATA);
}
override protected function keyUpHandler(_arg1:KeyboardEvent):void{
isKeyDown = false;
}
protected function onListItemUp(_arg1:MouseEvent):void{
var _local2:*;
stage.removeEventListener(MouseEvent.MOUSE_UP, onListItemUp);
if (((!((_arg1.target is ICellRenderer))) || (!(list.contains((_arg1.target as DisplayObject)))))){
return;
};
editableValue = null;
_local2 = selectedIndex;
selectedIndex = _arg1.target.listData.index;
if (_local2 != selectedIndex){
dispatchEvent(new Event(Event.CHANGE));
};
close();
}
public function removeAll():void{
list.removeAll();
inputField.text = "";
invalidate(InvalidationType.DATA);
}
public function set selectedItem(_arg1:Object):void{
list.selectedItem = _arg1;
invalidate(InvalidationType.SELECTED);
}
protected function highlightCell(_arg1:int=-1):void{
var _local2:ICellRenderer;
if (highlightedCell > -1){
_local2 = list.itemToCellRenderer(getItemAt(highlightedCell));
if (_local2 != null){
_local2.setMouseState("up");
};
};
if (_arg1 == -1){
return;
};
list.scrollToIndex(_arg1);
list.drawNow();
_local2 = list.itemToCellRenderer(getItemAt(_arg1));
if (_local2 != null){
_local2.setMouseState("over");
highlightedCell = _arg1;
};
}
public function itemToLabel(_arg1:Object):String{
if (_arg1 == null){
return ("");
};
return (list.itemToLabel(_arg1));
}
public function addItemAt(_arg1:Object, _arg2:uint):void{
list.addItemAt(_arg1, _arg2);
invalidate(InvalidationType.DATA);
}
public function replaceItemAt(_arg1:Object, _arg2:uint):Object{
return (list.replaceItemAt(_arg1, _arg2));
}
protected function showPrompt():void{
inputField.text = _prompt;
}
public function set rowCount(_arg1:uint):void{
_rowCount = _arg1;
invalidate(InvalidationType.SIZE);
}
public function get restrict():String{
return (inputField.restrict);
}
protected function setEmbedFonts():void{
var _local1:Object;
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
inputField.textField.embedFonts = _local1;
};
}
public function sortItems(... _args){
return (list.sortItems.apply(list, _args));
}
public function set labelField(_arg1:String):void{
list.labelField = _arg1;
invalidate(InvalidationType.DATA);
}
public function set editable(_arg1:Boolean):void{
_editable = _arg1;
drawTextField();
}
public function set prompt(_arg1:String):void{
if (_arg1 == ""){
_prompt = null;
} else {
_prompt = _arg1;
};
invalidate(InvalidationType.STATE);
}
public function get length():int{
return (list.length);
}
protected function drawTextField():void{
inputField.setStyle("upSkin", "");
inputField.setStyle("disabledSkin", "");
inputField.enabled = enabled;
inputField.editable = _editable;
inputField.textField.selectable = ((enabled) && (_editable));
inputField.mouseEnabled = (inputField.mouseChildren = ((enabled) && (_editable)));
inputField.focusEnabled = false;
if (_editable){
inputField.addEventListener(FocusEvent.FOCUS_IN, onInputFieldFocus, false, 0, true);
inputField.addEventListener(FocusEvent.FOCUS_OUT, onInputFieldFocusOut, false, 0, true);
} else {
inputField.removeEventListener(FocusEvent.FOCUS_IN, onInputFieldFocus);
inputField.removeEventListener(FocusEvent.FOCUS_OUT, onInputFieldFocusOut);
};
}
protected function onInputFieldFocusOut(_arg1:FocusEvent):void{
inputField.removeEventListener(ComponentEvent.ENTER, onEnter);
selectedIndex = selectedIndex;
}
protected function passEvent(_arg1:Event):void{
dispatchEvent(_arg1);
}
public function get imeMode():String{
return (inputField.imeMode);
}
public function get labelFunction():Function{
return (list.labelFunction);
}
protected function calculateAvailableHeight():Number{
var _local1:Number;
_local1 = Number(getStyleValue("contentPadding"));
return ((list.height - (_local1 * 2)));
}
public function get selectedIndex():int{
return (list.selectedIndex);
}
override protected function focusOutHandler(_arg1:FocusEvent):void{
isKeyDown = false;
if (isOpen){
if (((!(_arg1.relatedObject)) || (!(list.contains(_arg1.relatedObject))))){
if (((!((highlightedCell == -1))) && (!((highlightedCell == selectedIndex))))){
selectedIndex = highlightedCell;
dispatchEvent(new Event(Event.CHANGE));
};
close();
};
};
super.focusOutHandler(_arg1);
}
public function get selectedLabel():String{
if (editableValue != null){
return (editableValue);
};
if (selectedIndex == -1){
return (null);
};
return (itemToLabel(selectedItem));
}
public function get text():String{
return (inputField.text);
}
protected function onListChange(_arg1:Event):void{
editableValue = null;
dispatchEvent(_arg1);
invalidate(InvalidationType.SELECTED);
if (isKeyDown){
return;
};
close();
}
protected function onToggleListVisibility(_arg1:MouseEvent):void{
_arg1.stopPropagation();
dispatchEvent(_arg1);
if (isOpen){
close();
} else {
open();
stage.addEventListener(MouseEvent.MOUSE_UP, onListItemUp, false, 0, true);
};
}
override protected function draw():void{
var _local1:*;
_local1 = selectedIndex;
if ((((_local1 == -1)) && (((((!((prompt == null))) || (editable))) || ((length == 0)))))){
_local1 = Math.max(-1, Math.min(_local1, (length - 1)));
} else {
editableValue = null;
_local1 = Math.max(0, Math.min(_local1, (length - 1)));
};
if (list.selectedIndex != _local1){
list.selectedIndex = _local1;
invalidate(InvalidationType.SELECTED, false);
};
if (isInvalid(InvalidationType.STYLES)){
setStyles();
setEmbedFonts();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.DATA, InvalidationType.STATE)){
drawTextFormat();
drawLayout();
invalidate(InvalidationType.DATA);
};
if (isInvalid(InvalidationType.DATA)){
drawList();
invalidate(InvalidationType.SELECTED, true);
};
if (isInvalid(InvalidationType.SELECTED)){
if ((((_local1 == -1)) && (!((editableValue == null))))){
inputField.text = editableValue;
} else {
if (_local1 > -1){
if (length > 0){
inputField.horizontalScrollPosition = 0;
inputField.text = itemToLabel(list.selectedItem);
};
} else {
if ((((_local1 == -1)) && (!((_prompt == null))))){
showPrompt();
} else {
inputField.text = "";
};
};
};
if (((((editable) && ((selectedIndex > -1)))) && ((stage.focus == inputField.textField)))){
inputField.setSelection(0, inputField.length);
};
};
drawTextField();
super.draw();
}
public function addItem(_arg1:Object):void{
list.addItem(_arg1);
invalidate(InvalidationType.DATA);
}
public function get rowCount():uint{
return (_rowCount);
}
override protected function configUI():void{
super.configUI();
background = new BaseButton();
background.focusEnabled = false;
copyStylesToChild(background, BACKGROUND_STYLES);
background.addEventListener(MouseEvent.MOUSE_DOWN, onToggleListVisibility, false, 0, true);
addChild(background);
inputField = new TextInput();
inputField.focusTarget = (this as IFocusManagerComponent);
inputField.focusEnabled = false;
inputField.addEventListener(Event.CHANGE, onTextInput, false, 0, true);
addChild(inputField);
list = new List();
list.focusEnabled = false;
copyStylesToChild(list, LIST_STYLES);
list.addEventListener(Event.CHANGE, onListChange, false, 0, true);
list.addEventListener(ListEvent.ITEM_CLICK, onListChange, false, 0, true);
list.addEventListener(ListEvent.ITEM_ROLL_OUT, passEvent, false, 0, true);
list.addEventListener(ListEvent.ITEM_ROLL_OVER, passEvent, false, 0, true);
list.verticalScrollBar.addEventListener(Event.SCROLL, passEvent, false, 0, true);
}
protected function positionList():void{
var _local1:Point;
_local1 = localToGlobal(new Point(0, 0));
list.x = _local1.x;
if (((_local1.y + height) + list.height) > stage.stageHeight){
list.y = (_local1.y - list.height);
} else {
list.y = (_local1.y + height);
};
}
public function get value():String{
var _local1:Object;
if (editableValue != null){
return (editableValue);
};
_local1 = selectedItem;
if (((!(_editable)) && (!((_local1.data == null))))){
return (_local1.data);
};
return (itemToLabel(_local1));
}
public function get prompt():String{
return (_prompt);
}
public function set dataProvider(_arg1:DataProvider):void{
_arg1.addEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange, false, 0, true);
list.dataProvider = _arg1;
invalidate(InvalidationType.DATA);
}
public function set restrict(_arg1:String):void{
if (((componentInspectorSetting) && ((_arg1 == "")))){
_arg1 = null;
};
if (!_editable){
return;
};
inputField.restrict = _arg1;
}
protected function onTextInput(_arg1:Event):void{
_arg1.stopPropagation();
if (!_editable){
return;
};
editableValue = inputField.text;
selectedIndex = -1;
dispatchEvent(new Event(Event.CHANGE));
}
protected function onInputFieldFocus(_arg1:FocusEvent):void{
inputField.addEventListener(ComponentEvent.ENTER, onEnter, false, 0, true);
close();
}
public function getItemAt(_arg1:uint):Object{
return (list.getItemAt(_arg1));
}
override protected function initializeAccessibility():void{
if (ComboBox.createAccessibilityImplementation != null){
ComboBox.createAccessibilityImplementation(this);
};
}
protected function drawLayout():void{
var _local1:Number;
var _local2:Number;
_local1 = (getStyleValue("buttonWidth") as Number);
_local2 = (getStyleValue("textPadding") as Number);
background.setSize(width, height);
inputField.x = (inputField.y = _local2);
inputField.setSize(((width - _local1) - _local2), (height - _local2));
list.width = (isNaN(_dropdownWidth)) ? width : _dropdownWidth;
background.enabled = enabled;
background.drawNow();
}
public function removeItem(_arg1:Object):Object{
return (list.removeItem(_arg1));
}
private function addCloseListener(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, addCloseListener);
if (!isOpen){
return;
};
stage.addEventListener(MouseEvent.MOUSE_DOWN, onStageClick, false, 0, true);
}
public function get dataProvider():DataProvider{
return (list.dataProvider);
}
public function get textField():TextInput{
return (inputField);
}
protected function setStyles():void{
copyStylesToChild(background, BACKGROUND_STYLES);
copyStylesToChild(list, LIST_STYLES);
}
public function set labelFunction(_arg1:Function):void{
list.labelFunction = _arg1;
invalidate(InvalidationType.DATA);
}
protected function drawTextFormat():void{
var _local1:TextFormat;
_local1 = (getStyleValue((_enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local1 == null){
_local1 = new TextFormat();
};
inputField.textField.defaultTextFormat = _local1;
inputField.textField.setTextFormat(_local1);
setEmbedFonts();
}
public function set selectedIndex(_arg1:int):void{
list.selectedIndex = _arg1;
highlightCell();
invalidate(InvalidationType.SELECTED);
}
public function close():void{
highlightCell();
highlightedCell = -1;
if (!isOpen){
return;
};
dispatchEvent(new Event(Event.CLOSE));
stage.removeEventListener(MouseEvent.MOUSE_DOWN, onStageClick);
isOpen = false;
stage.removeChild(list);
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, List.getStyleDefinition()));
}
}
}//package fl.controls
Section 362
//LabelButton (fl.controls.LabelButton)
package fl.controls {
import fl.core.*;
import flash.display.*;
import flash.events.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.ui.*;
public class LabelButton extends BaseButton implements IFocusManagerComponent {
protected var _labelPlacement:String;// = "right"
protected var _toggle:Boolean;// = false
protected var icon:DisplayObject;
protected var oldMouseState:String;
protected var mode:String;// = "center"
public var textField:TextField;
protected var _label:String;// = "Label"
private static var defaultStyles:Object = {icon:null, upIcon:null, downIcon:null, overIcon:null, disabledIcon:null, selectedDisabledIcon:null, selectedUpIcon:null, selectedDownIcon:null, selectedOverIcon:null, textFormat:null, disabledTextFormat:null, textPadding:5, embedFonts:false};
public static var createAccessibilityImplementation:Function;
public function LabelButton(){
_labelPlacement = ButtonLabelPlacement.RIGHT;
_toggle = false;
_label = "Label";
mode = "center";
super();
}
protected function toggleSelected(_arg1:MouseEvent):void{
selected = !(selected);
dispatchEvent(new Event(Event.CHANGE, true));
}
public function get labelPlacement():String{
return (_labelPlacement);
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
if (oldMouseState == null){
oldMouseState = mouseState;
};
setMouseState("down");
startPress();
};
}
protected function setEmbedFont(){
var _local1:Object;
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
}
override protected function keyUpHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
setMouseState(oldMouseState);
oldMouseState = null;
endPress();
dispatchEvent(new MouseEvent(MouseEvent.CLICK));
};
}
override public function get selected():Boolean{
return ((_toggle) ? _selected : false);
}
public function set labelPlacement(_arg1:String):void{
_labelPlacement = _arg1;
invalidate(InvalidationType.SIZE);
}
public function set toggle(_arg1:Boolean):void{
if (((!(_arg1)) && (super.selected))){
selected = false;
};
_toggle = _arg1;
if (_toggle){
addEventListener(MouseEvent.CLICK, toggleSelected, false, 0, true);
} else {
removeEventListener(MouseEvent.CLICK, toggleSelected);
};
invalidate(InvalidationType.STATE);
}
public function get label():String{
return (_label);
}
override public function set selected(_arg1:Boolean):void{
_selected = _arg1;
if (_toggle){
invalidate(InvalidationType.STATE);
};
}
override protected function draw():void{
if (textField.text != _label){
label = _label;
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawBackground();
drawIcon();
drawTextFormat();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){
if (((isFocused) && (focusManager.showFocusIndicator))){
drawFocus(true);
};
};
validate();
}
public function get toggle():Boolean{
return (_toggle);
}
override protected function configUI():void{
super.configUI();
textField = new TextField();
textField.type = TextFieldType.DYNAMIC;
textField.selectable = false;
addChild(textField);
}
override protected function drawLayout():void{
var _local1:Number;
var _local2:String;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local1 = Number(getStyleValue("textPadding"));
_local2 = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement;
textField.height = (textField.textHeight + 4);
_local3 = (textField.textWidth + 4);
_local4 = (textField.textHeight + 4);
_local5 = ((icon)==null) ? 0 : (icon.width + _local1);
_local6 = ((icon)==null) ? 0 : (icon.height + _local1);
textField.visible = (label.length > 0);
if (icon != null){
icon.x = Math.round(((width - icon.width) / 2));
icon.y = Math.round(((height - icon.height) / 2));
};
if (textField.visible == false){
textField.width = 0;
textField.height = 0;
} else {
if ((((_local2 == ButtonLabelPlacement.BOTTOM)) || ((_local2 == ButtonLabelPlacement.TOP)))){
_local7 = Math.max(0, Math.min(_local3, (width - (2 * _local1))));
if ((height - 2) > _local4){
_local8 = _local4;
} else {
_local8 = (height - 2);
};
_local3 = _local7;
textField.width = _local3;
_local4 = _local8;
textField.height = _local4;
textField.x = Math.round(((width - _local3) / 2));
textField.y = Math.round(((((height - textField.height) - _local6) / 2) + ((_local2)==ButtonLabelPlacement.BOTTOM) ? _local6 : 0));
if (icon != null){
icon.y = Math.round(((_local2)==ButtonLabelPlacement.BOTTOM) ? (textField.y - _local6) : ((textField.y + textField.height) + _local1));
};
} else {
_local7 = Math.max(0, Math.min(_local3, ((width - _local5) - (2 * _local1))));
_local3 = _local7;
textField.width = _local3;
textField.x = Math.round(((((width - _local3) - _local5) / 2) + ((_local2)!=ButtonLabelPlacement.LEFT) ? _local5 : 0));
textField.y = Math.round(((height - textField.height) / 2));
if (icon != null){
icon.x = Math.round(((_local2)!=ButtonLabelPlacement.LEFT) ? (textField.x - _local5) : ((textField.x + _local3) + _local1));
};
};
};
super.drawLayout();
}
override protected function initializeAccessibility():void{
if (LabelButton.createAccessibilityImplementation != null){
LabelButton.createAccessibilityImplementation(this);
};
}
protected function drawIcon():void{
var _local1:DisplayObject;
var _local2:String;
var _local3:Object;
_local1 = icon;
_local2 = (enabled) ? mouseState : "disabled";
if (selected){
_local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1));
};
_local2 = (_local2 + "Icon");
_local3 = getStyleValue(_local2);
if (_local3 == null){
_local3 = getStyleValue("icon");
};
if (_local3 != null){
icon = getDisplayObjectInstance(_local3);
};
if (icon != null){
addChildAt(icon, 1);
};
if (((!((_local1 == null))) && (!((_local1 == icon))))){
removeChild(_local1);
};
}
public function set label(_arg1:String):void{
_label = _arg1;
if (textField.text != _label){
textField.text = _label;
dispatchEvent(new ComponentEvent(ComponentEvent.LABEL_CHANGE));
};
invalidate(InvalidationType.SIZE);
invalidate(InvalidationType.STYLES);
}
protected function drawTextFormat():void{
var _local1:Object;
var _local2:TextFormat;
var _local3:TextFormat;
_local1 = UIComponent.getStyleDefinition();
_local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat);
textField.setTextFormat(_local2);
_local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local3 != null){
textField.setTextFormat(_local3);
} else {
_local3 = _local2;
};
textField.defaultTextFormat = _local3;
setEmbedFont();
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition()));
}
}
}//package fl.controls
Section 363
//List (fl.controls.List)
package fl.controls {
import fl.controls.listClasses.*;
import fl.core.*;
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import fl.managers.*;
import flash.ui.*;
import flash.geom.*;
public class List extends SelectableList implements IFocusManagerComponent {
protected var _labelField:String;// = "label"
protected var _rowHeight:Number;// = 20
protected var _cellRenderer:Object;
protected var _iconField:String;// = "icon"
protected var _labelFunction:Function;
protected var _iconFunction:Function;
private static var defaultStyles:Object = {focusRectSkin:null, focusRectPadding:null};
public static var createAccessibilityImplementation:Function;
public function List(){
_rowHeight = 20;
_labelField = "label";
_iconField = "icon";
super();
}
public function get iconField():String{
return (_iconField);
}
protected function doKeySelection(_arg1:int, _arg2:Boolean, _arg3:Boolean):void{
var _local4:Boolean;
var _local5:int;
var _local6:Array;
var _local7:int;
var _local8:int;
_local4 = false;
if (_arg2){
_local6 = [];
_local7 = lastCaretIndex;
_local8 = _arg1;
if (_local7 == -1){
_local7 = ((caretIndex)!=-1) ? caretIndex : _arg1;
};
if (_local7 > _local8){
_local8 = _local7;
_local7 = _arg1;
};
_local5 = _local7;
while (_local5 <= _local8) {
_local6.push(_local5);
_local5++;
};
selectedIndices = _local6;
caretIndex = _arg1;
_local4 = true;
} else {
selectedIndex = _arg1;
caretIndex = (lastCaretIndex = _arg1);
_local4 = true;
};
if (_local4){
dispatchEvent(new Event(Event.CHANGE));
};
invalidate(InvalidationType.DATA);
}
override protected function drawList():void{
var _local1:Rectangle;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:Object;
var _local6:ICellRenderer;
var _local7:Dictionary;
var _local8:Dictionary;
var _local9:Boolean;
var _local10:String;
var _local11:Object;
var _local12:Sprite;
var _local13:String;
listHolder.x = (listHolder.y = contentPadding);
_local1 = listHolder.scrollRect;
_local1.x = _horizontalScrollPosition;
_local1.y = (Math.floor(_verticalScrollPosition) % rowHeight);
listHolder.scrollRect = _local1;
listHolder.cacheAsBitmap = useBitmapScrolling;
_local2 = Math.floor((_verticalScrollPosition / rowHeight));
_local3 = Math.min(length, ((_local2 + rowCount) + 1));
_local7 = (renderedItems = new Dictionary(true));
_local4 = _local2;
while (_local4 < _local3) {
_local7[_dataProvider.getItemAt(_local4)] = true;
_local4++;
};
_local8 = new Dictionary(true);
while (activeCellRenderers.length > 0) {
_local6 = (activeCellRenderers.pop() as ICellRenderer);
_local5 = _local6.data;
if ((((_local7[_local5] == null)) || ((invalidItems[_local5] == true)))){
availableCellRenderers.push(_local6);
} else {
_local8[_local5] = _local6;
invalidItems[_local5] = true;
};
list.removeChild((_local6 as DisplayObject));
};
invalidItems = new Dictionary(true);
_local4 = _local2;
while (_local4 < _local3) {
_local9 = false;
_local5 = _dataProvider.getItemAt(_local4);
if (_local8[_local5] != null){
_local9 = true;
_local6 = _local8[_local5];
delete _local8[_local5];
} else {
if (availableCellRenderers.length > 0){
_local6 = (availableCellRenderers.pop() as ICellRenderer);
} else {
_local6 = (getDisplayObjectInstance(getStyleValue("cellRenderer")) as ICellRenderer);
_local12 = (_local6 as Sprite);
if (_local12 != null){
_local12.addEventListener(MouseEvent.CLICK, handleCellRendererClick, false, 0, true);
_local12.addEventListener(MouseEvent.ROLL_OVER, handleCellRendererMouseEvent, false, 0, true);
_local12.addEventListener(MouseEvent.ROLL_OUT, handleCellRendererMouseEvent, false, 0, true);
_local12.addEventListener(Event.CHANGE, handleCellRendererChange, false, 0, true);
_local12.doubleClickEnabled = true;
_local12.addEventListener(MouseEvent.DOUBLE_CLICK, handleCellRendererDoubleClick, false, 0, true);
if (_local12["setStyle"] != null){
for (_local13 in rendererStyles) {
var _local16 = _local12;
_local16["setStyle"](_local13, rendererStyles[_local13]);
};
};
};
};
};
list.addChild((_local6 as Sprite));
activeCellRenderers.push(_local6);
_local6.y = (rowHeight * (_local4 - _local2));
_local6.setSize((availableWidth + _maxHorizontalScrollPosition), rowHeight);
_local10 = itemToLabel(_local5);
_local11 = null;
if (_iconFunction != null){
_local11 = _iconFunction(_local5);
} else {
if (_iconField != null){
_local11 = _local5[_iconField];
};
};
if (!_local9){
_local6.data = _local5;
};
_local6.listData = new ListData(_local10, _local11, this, _local4, _local4, 0);
_local6.selected = !((_selectedIndices.indexOf(_local4) == -1));
if ((_local6 is UIComponent)){
(_local6 as UIComponent).drawNow();
};
_local4++;
};
}
public function get iconFunction():Function{
return (_iconFunction);
}
public function set iconField(_arg1:String):void{
if (_arg1 == _iconField){
return;
};
_iconField = _arg1;
invalidate(InvalidationType.DATA);
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
var _local2:int;
if (!selectable){
return;
};
switch (_arg1.keyCode){
case Keyboard.UP:
case Keyboard.DOWN:
case Keyboard.END:
case Keyboard.HOME:
case Keyboard.PAGE_UP:
case Keyboard.PAGE_DOWN:
moveSelectionVertically(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection)));
break;
case Keyboard.LEFT:
case Keyboard.RIGHT:
moveSelectionHorizontally(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection)));
break;
case Keyboard.SPACE:
if (caretIndex == -1){
caretIndex = 0;
};
doKeySelection(caretIndex, _arg1.shiftKey, _arg1.ctrlKey);
scrollToSelected();
break;
default:
_local2 = getNextIndexAtLetter(String.fromCharCode(_arg1.keyCode), selectedIndex);
if (_local2 > -1){
selectedIndex = _local2;
scrollToSelected();
};
break;
};
_arg1.stopPropagation();
}
override public function itemToLabel(_arg1:Object):String{
if (_labelFunction != null){
return (String(_labelFunction(_arg1)));
};
return (((_arg1[_labelField])!=null) ? String(_arg1[_labelField]) : "");
}
public function get labelField():String{
return (_labelField);
}
override protected function moveSelectionVertically(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{
var _local4:int;
var _local5:int;
var _local6:int;
_local4 = Math.max(Math.floor((calculateAvailableHeight() / rowHeight)), 1);
_local5 = -1;
_local6 = 0;
switch (_arg1){
case Keyboard.UP:
if (caretIndex > 0){
_local5 = (caretIndex - 1);
};
break;
case Keyboard.DOWN:
if (caretIndex < (length - 1)){
_local5 = (caretIndex + 1);
};
break;
case Keyboard.PAGE_UP:
if (caretIndex > 0){
_local5 = Math.max((caretIndex - _local4), 0);
};
break;
case Keyboard.PAGE_DOWN:
if (caretIndex < (length - 1)){
_local5 = Math.min((caretIndex + _local4), (length - 1));
};
break;
case Keyboard.HOME:
if (caretIndex > 0){
_local5 = 0;
};
break;
case Keyboard.END:
if (caretIndex < (length - 1)){
_local5 = (length - 1);
};
break;
};
if (_local5 >= 0){
doKeySelection(_local5, _arg2, _arg3);
scrollToSelected();
};
}
public function set labelField(_arg1:String):void{
if (_arg1 == _labelField){
return;
};
_labelField = _arg1;
invalidate(InvalidationType.DATA);
}
public function set rowCount(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
_local2 = Number(getStyleValue("contentPadding"));
_local3 = ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0;
height = (((rowHeight * _arg1) + (2 * _local2)) + _local3);
}
override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
list.x = -(_arg1);
super.setHorizontalScrollPosition(_arg1, true);
}
public function set iconFunction(_arg1:Function):void{
if (_iconFunction == _arg1){
return;
};
_iconFunction = _arg1;
invalidate(InvalidationType.DATA);
}
public function get labelFunction():Function{
return (_labelFunction);
}
override protected function moveSelectionHorizontally(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{
}
override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
invalidate(InvalidationType.SCROLL);
super.setVerticalScrollPosition(_arg1, true);
}
protected function calculateAvailableHeight():Number{
var _local1:Number;
_local1 = Number(getStyleValue("contentPadding"));
return (((height - (_local1 * 2)) - ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0));
}
override protected function draw():void{
var _local1:Boolean;
_local1 = !((contentHeight == (rowHeight * length)));
contentHeight = (rowHeight * length);
if (isInvalid(InvalidationType.STYLES)){
setStyles();
drawBackground();
if (contentPadding != getStyleValue("contentPadding")){
invalidate(InvalidationType.SIZE, false);
};
if (_cellRenderer != getStyleValue("cellRenderer")){
_invalidateList();
_cellRenderer = getStyleValue("cellRenderer");
};
};
if (((isInvalid(InvalidationType.SIZE, InvalidationType.STATE)) || (_local1))){
drawLayout();
};
if (isInvalid(InvalidationType.RENDERER_STYLES)){
updateRendererStyles();
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.SIZE, InvalidationType.DATA, InvalidationType.SCROLL, InvalidationType.SELECTED)){
drawList();
};
updateChildren();
validate();
}
override protected function configUI():void{
useFixedHorizontalScrolling = true;
_horizontalScrollPolicy = ScrollPolicy.AUTO;
_verticalScrollPolicy = ScrollPolicy.AUTO;
super.configUI();
}
override public function get rowCount():uint{
return (Math.ceil((calculateAvailableHeight() / rowHeight)));
}
override protected function initializeAccessibility():void{
if (List.createAccessibilityImplementation != null){
List.createAccessibilityImplementation(this);
};
}
override public function scrollToIndex(_arg1:int):void{
var _local2:uint;
var _local3:uint;
drawNow();
_local2 = (Math.floor(((_verticalScrollPosition + availableHeight) / rowHeight)) - 1);
_local3 = Math.ceil((_verticalScrollPosition / rowHeight));
if (_arg1 < _local3){
verticalScrollPosition = (_arg1 * rowHeight);
} else {
if (_arg1 > _local2){
verticalScrollPosition = (((_arg1 + 1) * rowHeight) - availableHeight);
};
};
}
public function get rowHeight():Number{
return (_rowHeight);
}
public function set labelFunction(_arg1:Function):void{
if (_labelFunction == _arg1){
return;
};
_labelFunction = _arg1;
invalidate(InvalidationType.DATA);
}
public function set rowHeight(_arg1:Number):void{
_rowHeight = _arg1;
invalidate(InvalidationType.SIZE);
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, SelectableList.getStyleDefinition()));
}
}
}//package fl.controls
Section 364
//ScrollBar (fl.controls.ScrollBar)
package fl.controls {
import fl.core.*;
import flash.events.*;
import fl.events.*;
public class ScrollBar extends UIComponent {
private var _direction:String;// = "vertical"
protected var inDrag:Boolean;// = false
protected var upArrow:BaseButton;
private var _pageScrollSize:Number;// = 0
protected var downArrow:BaseButton;
private var _pageSize:Number;// = 10
private var thumbScrollOffset:Number;
private var _maxScrollPosition:Number;// = 0
private var _scrollPosition:Number;// = 0
protected var track:BaseButton;
private var _minScrollPosition:Number;// = 0
private var _lineScrollSize:Number;// = 1
protected var thumb:LabelButton;
protected static const THUMB_STYLES:Object = {disabledSkin:"thumbDisabledSkin", downSkin:"thumbDownSkin", overSkin:"thumbOverSkin", upSkin:"thumbUpSkin", icon:"thumbIcon", textPadding:0};
public static const WIDTH:Number = 15;
protected static const DOWN_ARROW_STYLES:Object = {disabledSkin:"downArrowDisabledSkin", downSkin:"downArrowDownSkin", overSkin:"downArrowOverSkin", upSkin:"downArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
protected static const UP_ARROW_STYLES:Object = {disabledSkin:"upArrowDisabledSkin", downSkin:"upArrowDownSkin", overSkin:"upArrowOverSkin", upSkin:"upArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
protected static const TRACK_STYLES:Object = {disabledSkin:"trackDisabledSkin", downSkin:"trackDownSkin", overSkin:"trackOverSkin", upSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
private static var defaultStyles:Object = {downArrowDisabledSkin:"ScrollArrowDown_disabledSkin", downArrowDownSkin:"ScrollArrowDown_downSkin", downArrowOverSkin:"ScrollArrowDown_overSkin", downArrowUpSkin:"ScrollArrowDown_upSkin", thumbDisabledSkin:"ScrollThumb_upSkin", thumbDownSkin:"ScrollThumb_downSkin", thumbOverSkin:"ScrollThumb_overSkin", thumbUpSkin:"ScrollThumb_upSkin", trackDisabledSkin:"ScrollTrack_skin", trackDownSkin:"ScrollTrack_skin", trackOverSkin:"ScrollTrack_skin", trackUpSkin:"ScrollTrack_skin", upArrowDisabledSkin:"ScrollArrowUp_disabledSkin", upArrowDownSkin:"ScrollArrowUp_downSkin", upArrowOverSkin:"ScrollArrowUp_overSkin", upArrowUpSkin:"ScrollArrowUp_upSkin", thumbIcon:"ScrollBar_thumbIcon", repeatDelay:500, repeatInterval:35};
public function ScrollBar(){
_pageSize = 10;
_pageScrollSize = 0;
_lineScrollSize = 1;
_minScrollPosition = 0;
_maxScrollPosition = 0;
_scrollPosition = 0;
_direction = ScrollBarDirection.VERTICAL;
inDrag = false;
super();
setStyles();
focusEnabled = false;
}
public function get minScrollPosition():Number{
return (_minScrollPosition);
}
public function set minScrollPosition(_arg1:Number):void{
setScrollProperties(_pageSize, _arg1, _maxScrollPosition);
}
public function setScrollPosition(_arg1:Number, _arg2:Boolean=true):void{
var _local3:Number;
_local3 = scrollPosition;
_scrollPosition = Math.max(_minScrollPosition, Math.min(_maxScrollPosition, _arg1));
if (_local3 == _scrollPosition){
return;
};
if (_arg2){
dispatchEvent(new ScrollEvent(_direction, (scrollPosition - _local3), scrollPosition));
};
updateThumb();
}
public function set scrollPosition(_arg1:Number):void{
setScrollPosition(_arg1, true);
}
public function get pageScrollSize():Number{
return (((_pageScrollSize)==0) ? _pageSize : _pageScrollSize);
}
public function set pageSize(_arg1:Number):void{
if (_arg1 > 0){
_pageSize = _arg1;
};
}
public function setScrollProperties(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0):void{
this.pageSize = _arg1;
_minScrollPosition = _arg2;
_maxScrollPosition = _arg3;
if (_arg4 >= 0){
_pageScrollSize = _arg4;
};
enabled = (_maxScrollPosition > _minScrollPosition);
setScrollPosition(_scrollPosition, false);
updateThumb();
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
downArrow.enabled = (track.enabled = (thumb.enabled = (upArrow.enabled = ((enabled) && ((_maxScrollPosition > _minScrollPosition))))));
updateThumb();
}
protected function updateThumb():void{
var _local1:Number;
_local1 = ((_maxScrollPosition - _minScrollPosition) + _pageSize);
if ((((((track.height <= 12)) || ((_maxScrollPosition <= _minScrollPosition)))) || ((((_local1 == 0)) || (isNaN(_local1)))))){
thumb.height = 12;
thumb.visible = false;
} else {
thumb.height = Math.max(13, ((_pageSize / _local1) * track.height));
thumb.y = (track.y + ((track.height - thumb.height) * ((_scrollPosition - _minScrollPosition) / (_maxScrollPosition - _minScrollPosition))));
thumb.visible = enabled;
};
}
protected function thumbPressHandler(_arg1:MouseEvent):void{
inDrag = true;
thumbScrollOffset = (mouseY - thumb.y);
thumb.mouseStateLocked = true;
mouseChildren = false;
stage.addEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler, false, 0, true);
}
protected function thumbReleaseHandler(_arg1:MouseEvent):void{
inDrag = false;
mouseChildren = true;
thumb.mouseStateLocked = false;
stage.removeEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag);
stage.removeEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler);
}
public function set pageScrollSize(_arg1:Number):void{
if (_arg1 >= 0){
_pageScrollSize = _arg1;
};
}
protected function handleThumbDrag(_arg1:MouseEvent):void{
var _local2:Number;
_local2 = Math.max(0, Math.min((track.height - thumb.height), ((mouseY - track.y) - thumbScrollOffset)));
setScrollPosition((((_local2 / (track.height - thumb.height)) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition));
}
public function set direction(_arg1:String):void{
var _local2:Boolean;
if (_direction == _arg1){
return;
};
_direction = _arg1;
if (isLivePreview){
return;
};
setScaleY(1);
_local2 = (_direction == ScrollBarDirection.HORIZONTAL);
if (((_local2) && (componentInspectorSetting))){
if (rotation == 90){
return;
};
setScaleX(-1);
rotation = -90;
};
if (!componentInspectorSetting){
if (((_local2) && ((rotation == 0)))){
rotation = -90;
setScaleX(-1);
} else {
if (((!(_local2)) && ((rotation == -90)))){
rotation = 0;
setScaleX(1);
};
};
};
invalidate(InvalidationType.SIZE);
}
public function set lineScrollSize(_arg1:Number):void{
if (_arg1 > 0){
_lineScrollSize = _arg1;
};
}
override public function get height():Number{
return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.width : super.height);
}
protected function scrollPressHandler(_arg1:ComponentEvent):void{
var _local2:Number;
var _local3:Number;
_arg1.stopImmediatePropagation();
if (_arg1.currentTarget == upArrow){
setScrollPosition((_scrollPosition - _lineScrollSize));
} else {
if (_arg1.currentTarget == downArrow){
setScrollPosition((_scrollPosition + _lineScrollSize));
} else {
_local2 = (((track.mouseY / track.height) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition);
_local3 = ((pageScrollSize)==0) ? pageSize : pageScrollSize;
if (_scrollPosition < _local2){
setScrollPosition(Math.min(_local2, (_scrollPosition + _local3)));
} else {
if (_scrollPosition > _local2){
setScrollPosition(Math.max(_local2, (_scrollPosition - _local3)));
};
};
};
};
}
public function get pageSize():Number{
return (_pageSize);
}
public function set maxScrollPosition(_arg1:Number):void{
setScrollProperties(_pageSize, _minScrollPosition, _arg1);
}
public function get scrollPosition():Number{
return (_scrollPosition);
}
override public function get enabled():Boolean{
return (super.enabled);
}
override protected function draw():void{
var _local1:Number;
if (isInvalid(InvalidationType.SIZE)){
_local1 = super.height;
downArrow.move(0, Math.max(upArrow.height, (_local1 - downArrow.height)));
track.setSize(WIDTH, Math.max(0, (_local1 - (downArrow.height + upArrow.height))));
updateThumb();
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
setStyles();
};
downArrow.drawNow();
upArrow.drawNow();
track.drawNow();
thumb.drawNow();
validate();
}
override protected function configUI():void{
super.configUI();
track = new BaseButton();
track.move(0, 14);
track.useHandCursor = false;
track.autoRepeat = true;
track.focusEnabled = false;
addChild(track);
thumb = new LabelButton();
thumb.label = "";
thumb.setSize(WIDTH, 15);
thumb.move(0, 15);
thumb.focusEnabled = false;
addChild(thumb);
downArrow = new BaseButton();
downArrow.setSize(WIDTH, 14);
downArrow.autoRepeat = true;
downArrow.focusEnabled = false;
addChild(downArrow);
upArrow = new BaseButton();
upArrow.setSize(WIDTH, 14);
upArrow.move(0, 0);
upArrow.autoRepeat = true;
upArrow.focusEnabled = false;
addChild(upArrow);
upArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true);
downArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true);
track.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true);
thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbPressHandler, false, 0, true);
enabled = false;
}
public function get direction():String{
return (_direction);
}
public function get lineScrollSize():Number{
return (_lineScrollSize);
}
override public function setSize(_arg1:Number, _arg2:Number):void{
if (_direction == ScrollBarDirection.HORIZONTAL){
super.setSize(_arg2, _arg1);
} else {
super.setSize(_arg1, _arg2);
};
}
public function get maxScrollPosition():Number{
return (_maxScrollPosition);
}
override public function get width():Number{
return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.height : super.width);
}
protected function setStyles():void{
copyStylesToChild(downArrow, DOWN_ARROW_STYLES);
copyStylesToChild(thumb, THUMB_STYLES);
copyStylesToChild(track, TRACK_STYLES);
copyStylesToChild(upArrow, UP_ARROW_STYLES);
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 365
//ScrollBarDirection (fl.controls.ScrollBarDirection)
package fl.controls {
public class ScrollBarDirection {
public static const HORIZONTAL:String = "horizontal";
public static const VERTICAL:String = "vertical";
}
}//package fl.controls
Section 366
//ScrollPolicy (fl.controls.ScrollPolicy)
package fl.controls {
public class ScrollPolicy {
public static const OFF:String = "off";
public static const ON:String = "on";
public static const AUTO:String = "auto";
}
}//package fl.controls
Section 367
//SelectableList (fl.controls.SelectableList)
package fl.controls {
import fl.controls.listClasses.*;
import fl.core.*;
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import fl.data.*;
import fl.managers.*;
import fl.events.*;
import flash.ui.*;
import fl.containers.*;
public class SelectableList extends BaseScrollPane implements IFocusManagerComponent {
protected var invalidItems:Dictionary;
protected var renderedItems:Dictionary;
protected var listHolder:Sprite;
protected var _allowMultipleSelection:Boolean;// = false
protected var lastCaretIndex:int;// = -1
protected var _selectedIndices:Array;
protected var availableCellRenderers:Array;
protected var list:Sprite;
protected var caretIndex:int;// = -1
protected var updatedRendererStyles:Object;
protected var preChangeItems:Array;
protected var activeCellRenderers:Array;
protected var rendererStyles:Object;
protected var _verticalScrollPosition:Number;
protected var _dataProvider:DataProvider;
protected var _horizontalScrollPosition:Number;
private var collectionItemImport:SimpleCollectionItem;
protected var _selectable:Boolean;// = true
private static var defaultStyles:Object = {skin:"List_skin", cellRenderer:CellRenderer, contentPadding:null, disabledAlpha:null};
public static var createAccessibilityImplementation:Function;
public function SelectableList(){
_allowMultipleSelection = false;
_selectable = true;
caretIndex = -1;
lastCaretIndex = -1;
super();
activeCellRenderers = [];
availableCellRenderers = [];
invalidItems = new Dictionary(true);
renderedItems = new Dictionary(true);
_selectedIndices = [];
if (dataProvider == null){
dataProvider = new DataProvider();
};
verticalScrollPolicy = ScrollPolicy.AUTO;
rendererStyles = {};
updatedRendererStyles = {};
}
protected function drawList():void{
}
public function set allowMultipleSelection(_arg1:Boolean):void{
if (_arg1 == _allowMultipleSelection){
return;
};
_allowMultipleSelection = _arg1;
if (((!(_arg1)) && ((_selectedIndices.length > 1)))){
_selectedIndices = [_selectedIndices.pop()];
invalidate(InvalidationType.DATA);
};
}
public function sortItemsOn(_arg1:String, _arg2:Object=null){
return (_dataProvider.sortOn(_arg1, _arg2));
}
public function removeItemAt(_arg1:uint):Object{
return (_dataProvider.removeItemAt(_arg1));
}
public function get selectedItem():Object{
return (((_selectedIndices.length)==0) ? null : _dataProvider.getItemAt(selectedIndex));
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
if (!selectable){
return;
};
switch (_arg1.keyCode){
case Keyboard.UP:
case Keyboard.DOWN:
case Keyboard.END:
case Keyboard.HOME:
case Keyboard.PAGE_UP:
case Keyboard.PAGE_DOWN:
moveSelectionVertically(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection)));
_arg1.stopPropagation();
break;
case Keyboard.LEFT:
case Keyboard.RIGHT:
moveSelectionHorizontally(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection)));
_arg1.stopPropagation();
break;
};
}
public function get selectable():Boolean{
return (_selectable);
}
public function itemToCellRenderer(_arg1:Object):ICellRenderer{
var _local2:*;
var _local3:ICellRenderer;
if (_arg1 != null){
for (_local2 in activeCellRenderers) {
_local3 = (activeCellRenderers[_local2] as ICellRenderer);
if (_local3.data == _arg1){
return (_local3);
};
};
};
return (null);
}
public function getNextIndexAtLetter(_arg1:String, _arg2:int=-1):int{
var _local3:int;
var _local4:Number;
var _local5:Number;
var _local6:Object;
var _local7:String;
if (length == 0){
return (-1);
};
_arg1 = _arg1.toUpperCase();
_local3 = (length - 1);
_local4 = 0;
while (_local4 < _local3) {
_local5 = ((_arg2 + 1) + _local4);
if (_local5 > (length - 1)){
_local5 = (_local5 - length);
};
_local6 = getItemAt(_local5);
if (_local6 == null){
break;
};
_local7 = itemToLabel(_local6);
if (_local7 == null){
} else {
if (_local7.charAt(0).toUpperCase() == _arg1){
return (_local5);
};
};
_local4++;
};
return (-1);
}
public function invalidateList():void{
_invalidateList();
invalidate(InvalidationType.DATA);
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
list.mouseChildren = _enabled;
}
public function get selectedIndices():Array{
return (_selectedIndices.concat());
}
public function set selectable(_arg1:Boolean):void{
if (_arg1 == _selectable){
return;
};
if (!_arg1){
selectedIndices = [];
};
_selectable = _arg1;
}
public function itemToLabel(_arg1:Object):String{
return (_arg1["label"]);
}
public function addItemAt(_arg1:Object, _arg2:uint):void{
_dataProvider.addItemAt(_arg1, _arg2);
invalidateList();
}
public function replaceItemAt(_arg1:Object, _arg2:uint):Object{
return (_dataProvider.replaceItemAt(_arg1, _arg2));
}
protected function handleDataChange(_arg1:DataChangeEvent):void{
var _local2:int;
var _local3:int;
var _local4:String;
var _local5:uint;
_local2 = _arg1.startIndex;
_local3 = _arg1.endIndex;
_local4 = _arg1.changeType;
if (_local4 == DataChangeType.INVALIDATE_ALL){
clearSelection();
invalidateList();
} else {
if (_local4 == DataChangeType.INVALIDATE){
_local5 = 0;
while (_local5 < _arg1.items.length) {
invalidateItem(_arg1.items[_local5]);
_local5++;
};
} else {
if (_local4 == DataChangeType.ADD){
_local5 = 0;
while (_local5 < _selectedIndices.length) {
if (_selectedIndices[_local5] >= _local2){
_selectedIndices[_local5] = (_selectedIndices[_local5] + (_local2 - _local3));
};
_local5++;
};
} else {
if (_local4 == DataChangeType.REMOVE){
_local5 = 0;
while (_local5 < _selectedIndices.length) {
if (_selectedIndices[_local5] >= _local2){
if (_selectedIndices[_local5] <= _local3){
delete _selectedIndices[_local5];
} else {
_selectedIndices[_local5] = (_selectedIndices[_local5] - ((_local2 - _local3) + 1));
};
};
_local5++;
};
} else {
if (_local4 == DataChangeType.REMOVE_ALL){
clearSelection();
} else {
if (_local4 == DataChangeType.REPLACE){
} else {
selectedItems = preChangeItems;
preChangeItems = null;
};
};
};
};
};
};
invalidate(InvalidationType.DATA);
}
protected function _invalidateList():void{
availableCellRenderers = [];
while (activeCellRenderers.length > 0) {
list.removeChild((activeCellRenderers.pop() as DisplayObject));
};
}
protected function updateRendererStyles():void{
var _local1:Array;
var _local2:uint;
var _local3:uint;
var _local4:String;
_local1 = availableCellRenderers.concat(activeCellRenderers);
_local2 = _local1.length;
_local3 = 0;
while (_local3 < _local2) {
if (_local1[_local3].setStyle == null){
} else {
for (_local4 in updatedRendererStyles) {
_local1[_local3].setStyle(_local4, updatedRendererStyles[_local4]);
};
_local1[_local3].drawNow();
};
_local3++;
};
updatedRendererStyles = {};
}
public function set selectedItem(_arg1:Object):void{
var _local2:int;
_local2 = _dataProvider.getItemIndex(_arg1);
selectedIndex = _local2;
}
public function sortItems(... _args){
return (_dataProvider.sort.apply(_dataProvider, _args));
}
public function removeAll():void{
_dataProvider.removeAll();
}
protected function handleCellRendererChange(_arg1:Event):void{
var _local2:ICellRenderer;
var _local3:uint;
_local2 = (_arg1.currentTarget as ICellRenderer);
_local3 = _local2.listData.index;
_dataProvider.invalidateItemAt(_local3);
}
protected function moveSelectionVertically(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{
}
override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
if (_arg1 == _horizontalScrollPosition){
return;
};
_local3 = (_arg1 - _horizontalScrollPosition);
_horizontalScrollPosition = _arg1;
if (_arg2){
dispatchEvent(new ScrollEvent(ScrollBarDirection.HORIZONTAL, _local3, _arg1));
};
}
public function scrollToSelected():void{
scrollToIndex(selectedIndex);
}
public function invalidateItem(_arg1:Object):void{
if (renderedItems[_arg1] == null){
return;
};
invalidItems[_arg1] = true;
invalidate(InvalidationType.DATA);
}
protected function handleCellRendererClick(_arg1:MouseEvent):void{
var _local2:ICellRenderer;
var _local3:uint;
var _local4:int;
var _local5:int;
var _local6:uint;
if (!_enabled){
return;
};
_local2 = (_arg1.currentTarget as ICellRenderer);
_local3 = _local2.listData.index;
if (((!(dispatchEvent(new ListEvent(ListEvent.ITEM_CLICK, false, true, _local2.listData.column, _local2.listData.row, _local3, _local2.data)))) || (!(_selectable)))){
return;
};
_local4 = selectedIndices.indexOf(_local3);
if (!_allowMultipleSelection){
if (_local4 != -1){
return;
};
_local2.selected = true;
_selectedIndices = [_local3];
lastCaretIndex = (caretIndex = _local3);
} else {
if (_arg1.shiftKey){
_local6 = ((_selectedIndices.length)>0) ? _selectedIndices[0] : _local3;
_selectedIndices = [];
if (_local6 > _local3){
_local5 = _local6;
while (_local5 >= _local3) {
_selectedIndices.push(_local5);
_local5--;
};
} else {
_local5 = _local6;
while (_local5 <= _local3) {
_selectedIndices.push(_local5);
_local5++;
};
};
caretIndex = _local3;
} else {
if (_arg1.ctrlKey){
if (_local4 != -1){
_local2.selected = false;
_selectedIndices.splice(_local4, 1);
} else {
_local2.selected = true;
_selectedIndices.push(_local3);
};
caretIndex = _local3;
} else {
_selectedIndices = [_local3];
lastCaretIndex = (caretIndex = _local3);
};
};
};
dispatchEvent(new Event(Event.CHANGE));
invalidate(InvalidationType.DATA);
}
public function get length():uint{
return (_dataProvider.length);
}
public function get allowMultipleSelection():Boolean{
return (_allowMultipleSelection);
}
protected function onPreChange(_arg1:DataChangeEvent):void{
switch (_arg1.changeType){
case DataChangeType.REMOVE:
case DataChangeType.ADD:
case DataChangeType.INVALIDATE:
case DataChangeType.REMOVE_ALL:
case DataChangeType.REPLACE:
case DataChangeType.INVALIDATE_ALL:
break;
default:
preChangeItems = selectedItems;
break;
};
}
public function getRendererStyle(_arg1:String, _arg2:int=-1):Object{
return (rendererStyles[_arg1]);
}
override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
if (_arg1 == _verticalScrollPosition){
return;
};
_local3 = (_arg1 - _verticalScrollPosition);
_verticalScrollPosition = _arg1;
if (_arg2){
dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _local3, _arg1));
};
}
protected function moveSelectionHorizontally(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{
}
public function set selectedIndices(_arg1:Array):void{
if (!_selectable){
return;
};
_selectedIndices = ((_arg1)==null) ? [] : _arg1.concat();
invalidate(InvalidationType.SELECTED);
}
public function get selectedIndex():int{
return (((_selectedIndices.length)==0) ? -1 : _selectedIndices[(_selectedIndices.length - 1)]);
}
override protected function draw():void{
super.draw();
}
override protected function configUI():void{
super.configUI();
listHolder = new Sprite();
addChild(listHolder);
listHolder.scrollRect = contentScrollRect;
list = new Sprite();
listHolder.addChild(list);
}
public function addItem(_arg1:Object):void{
_dataProvider.addItem(_arg1);
invalidateList();
}
protected function handleCellRendererMouseEvent(_arg1:MouseEvent):void{
var _local2:ICellRenderer;
var _local3:String;
_local2 = (_arg1.target as ICellRenderer);
_local3 = ((_arg1.type)==MouseEvent.ROLL_OVER) ? ListEvent.ITEM_ROLL_OVER : ListEvent.ITEM_ROLL_OUT;
dispatchEvent(new ListEvent(_local3, false, false, _local2.listData.column, _local2.listData.row, _local2.listData.index, _local2.data));
}
public function clearRendererStyle(_arg1:String, _arg2:int=-1):void{
delete rendererStyles[_arg1];
updatedRendererStyles[_arg1] = null;
invalidate(InvalidationType.RENDERER_STYLES);
}
protected function handleCellRendererDoubleClick(_arg1:MouseEvent):void{
var _local2:ICellRenderer;
var _local3:uint;
if (!_enabled){
return;
};
_local2 = (_arg1.currentTarget as ICellRenderer);
_local3 = _local2.listData.index;
dispatchEvent(new ListEvent(ListEvent.ITEM_DOUBLE_CLICK, false, true, _local2.listData.column, _local2.listData.row, _local3, _local2.data));
}
public function get rowCount():uint{
return (0);
}
public function isItemSelected(_arg1:Object):Boolean{
return ((selectedItems.indexOf(_arg1) > -1));
}
public function set dataProvider(_arg1:DataProvider):void{
if (_dataProvider != null){
_dataProvider.removeEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange);
_dataProvider.removeEventListener(DataChangeEvent.PRE_DATA_CHANGE, onPreChange);
};
_dataProvider = _arg1;
_dataProvider.addEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange, false, 0, true);
_dataProvider.addEventListener(DataChangeEvent.PRE_DATA_CHANGE, onPreChange, false, 0, true);
clearSelection();
invalidateList();
}
override protected function drawLayout():void{
super.drawLayout();
contentScrollRect = listHolder.scrollRect;
contentScrollRect.width = availableWidth;
contentScrollRect.height = availableHeight;
listHolder.scrollRect = contentScrollRect;
}
public function getItemAt(_arg1:uint):Object{
return (_dataProvider.getItemAt(_arg1));
}
override protected function initializeAccessibility():void{
if (SelectableList.createAccessibilityImplementation != null){
SelectableList.createAccessibilityImplementation(this);
};
}
public function scrollToIndex(_arg1:int):void{
}
public function removeItem(_arg1:Object):Object{
return (_dataProvider.removeItem(_arg1));
}
public function get dataProvider():DataProvider{
return (_dataProvider);
}
public function set maxHorizontalScrollPosition(_arg1:Number):void{
_maxHorizontalScrollPosition = _arg1;
invalidate(InvalidationType.SIZE);
}
public function setRendererStyle(_arg1:String, _arg2:Object, _arg3:uint=0):void{
if (rendererStyles[_arg1] == _arg2){
return;
};
updatedRendererStyles[_arg1] = _arg2;
rendererStyles[_arg1] = _arg2;
invalidate(InvalidationType.RENDERER_STYLES);
}
public function invalidateItemAt(_arg1:uint):void{
var _local2:Object;
_local2 = _dataProvider.getItemAt(_arg1);
if (_local2 != null){
invalidateItem(_local2);
};
}
public function set selectedItems(_arg1:Array):void{
var _local2:Array;
var _local3:uint;
var _local4:int;
if (_arg1 == null){
selectedIndices = null;
return;
};
_local2 = [];
_local3 = 0;
while (_local3 < _arg1.length) {
_local4 = _dataProvider.getItemIndex(_arg1[_local3]);
if (_local4 != -1){
_local2.push(_local4);
};
_local3++;
};
selectedIndices = _local2;
}
public function clearSelection():void{
selectedIndex = -1;
}
override public function get maxHorizontalScrollPosition():Number{
return (_maxHorizontalScrollPosition);
}
public function get selectedItems():Array{
var _local1:Array;
var _local2:uint;
_local1 = [];
_local2 = 0;
while (_local2 < _selectedIndices.length) {
_local1.push(_dataProvider.getItemAt(_selectedIndices[_local2]));
_local2++;
};
return (_local1);
}
public function set selectedIndex(_arg1:int):void{
selectedIndices = ((_arg1)==-1) ? null : [_arg1];
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, BaseScrollPane.getStyleDefinition()));
}
}
}//package fl.controls
Section 368
//TextInput (fl.controls.TextInput)
package fl.controls {
import fl.core.*;
import flash.display.*;
import flash.events.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.ui.*;
public class TextInput extends UIComponent implements IFocusManagerComponent {
protected var _html:Boolean;// = false
protected var _savedHTML:String;
protected var background:DisplayObject;
protected var _editable:Boolean;// = true
public var textField:TextField;
private static var defaultStyles:Object = {upSkin:"TextInput_upSkin", disabledSkin:"TextInput_disabledSkin", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, textPadding:0, embedFonts:false};
public static var createAccessibilityImplementation:Function;
public function TextInput(){
_editable = true;
_html = false;
super();
}
override public function drawFocus(_arg1:Boolean):void{
if (focusTarget != null){
focusTarget.drawFocus(_arg1);
return;
};
super.drawFocus(_arg1);
}
public function set imeMode(_arg1:String):void{
_imeMode = _arg1;
}
override protected function isOurFocus(_arg1:DisplayObject):Boolean{
return ((((_arg1 == textField)) || (super.isOurFocus(_arg1))));
}
protected function handleKeyDown(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.ENTER){
dispatchEvent(new ComponentEvent(ComponentEvent.ENTER, true));
};
}
public function set text(_arg1:String):void{
textField.text = _arg1;
_html = false;
invalidate(InvalidationType.DATA);
invalidate(InvalidationType.STYLES);
}
protected function updateTextFieldType():void{
textField.type = (((enabled) && (editable))) ? TextFieldType.INPUT : TextFieldType.DYNAMIC;
textField.selectable = enabled;
}
public function get selectionEndIndex():int{
return (textField.selectionEndIndex);
}
public function get editable():Boolean{
return (_editable);
}
override protected function focusInHandler(_arg1:FocusEvent):void{
var _local2:IFocusManager;
if (_arg1.target == this){
stage.focus = textField;
};
_local2 = focusManager;
if (((editable) && (_local2))){
_local2.showFocusIndicator = true;
if (((textField.selectable) && ((textField.selectionBeginIndex == textField.selectionBeginIndex)))){
setSelection(0, textField.length);
};
};
super.focusInHandler(_arg1);
if (editable){
setIMEMode(true);
};
}
public function get selectionBeginIndex():int{
return (textField.selectionBeginIndex);
}
public function set alwaysShowSelection(_arg1:Boolean):void{
textField.alwaysShowSelection = _arg1;
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
updateTextFieldType();
}
protected function setEmbedFont(){
var _local1:Object;
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
}
public function get horizontalScrollPosition():int{
return (textField.scrollH);
}
public function set condenseWhite(_arg1:Boolean):void{
textField.condenseWhite = _arg1;
}
public function set displayAsPassword(_arg1:Boolean):void{
textField.displayAsPassword = _arg1;
}
public function set horizontalScrollPosition(_arg1:int):void{
textField.scrollH = _arg1;
}
public function get restrict():String{
return (textField.restrict);
}
public function get textWidth():Number{
return (textField.textWidth);
}
public function get textHeight():Number{
return (textField.textHeight);
}
public function set editable(_arg1:Boolean):void{
_editable = _arg1;
updateTextFieldType();
}
public function get maxChars():int{
return (textField.maxChars);
}
public function get length():int{
return (textField.length);
}
public function getLineMetrics(_arg1:int):TextLineMetrics{
return (textField.getLineMetrics(_arg1));
}
public function get imeMode():String{
return (_imeMode);
}
override protected function focusOutHandler(_arg1:FocusEvent):void{
super.focusOutHandler(_arg1);
if (editable){
setIMEMode(false);
};
}
public function set htmlText(_arg1:String):void{
if (_arg1 == ""){
text = "";
return;
};
_html = true;
_savedHTML = _arg1;
textField.htmlText = _arg1;
invalidate(InvalidationType.DATA);
invalidate(InvalidationType.STYLES);
}
public function get text():String{
return (textField.text);
}
override public function get enabled():Boolean{
return (super.enabled);
}
public function get condenseWhite():Boolean{
return (textField.condenseWhite);
}
public function get alwaysShowSelection():Boolean{
return (textField.alwaysShowSelection);
}
override protected function draw():void{
var _local1:Object;
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawTextFormat();
drawBackground();
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
super.draw();
}
protected function handleTextInput(_arg1:TextEvent):void{
_arg1.stopPropagation();
dispatchEvent(new TextEvent(TextEvent.TEXT_INPUT, true, false, _arg1.text));
}
override protected function configUI():void{
super.configUI();
tabChildren = true;
textField = new TextField();
addChild(textField);
updateTextFieldType();
textField.addEventListener(TextEvent.TEXT_INPUT, handleTextInput, false, 0, true);
textField.addEventListener(Event.CHANGE, handleChange, false, 0, true);
textField.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown, false, 0, true);
}
public function setSelection(_arg1:int, _arg2:int):void{
textField.setSelection(_arg1, _arg2);
}
public function get displayAsPassword():Boolean{
return (textField.displayAsPassword);
}
public function appendText(_arg1:String):void{
textField.appendText(_arg1);
}
public function set restrict(_arg1:String):void{
if (((componentInspectorSetting) && ((_arg1 == "")))){
_arg1 = null;
};
textField.restrict = _arg1;
}
public function get htmlText():String{
return (textField.htmlText);
}
protected function drawBackground():void{
var _local1:DisplayObject;
var _local2:String;
_local1 = background;
_local2 = (enabled) ? "upSkin" : "disabledSkin";
background = getDisplayObjectInstance(getStyleValue(_local2));
if (background == null){
return;
};
addChildAt(background, 0);
if (((((!((_local1 == null))) && (!((_local1 == background))))) && (contains(_local1)))){
removeChild(_local1);
};
}
override public function setFocus():void{
stage.focus = textField;
}
protected function drawLayout():void{
var _local1:Number;
_local1 = Number(getStyleValue("textPadding"));
if (background != null){
background.width = width;
background.height = height;
};
textField.width = (width - (2 * _local1));
textField.height = (height - (2 * _local1));
textField.x = (textField.y = _local1);
}
public function set maxChars(_arg1:int):void{
textField.maxChars = _arg1;
}
public function get maxHorizontalScrollPosition():int{
return (textField.maxScrollH);
}
protected function drawTextFormat():void{
var _local1:Object;
var _local2:TextFormat;
var _local3:TextFormat;
_local1 = UIComponent.getStyleDefinition();
_local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat);
textField.setTextFormat(_local2);
_local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local3 != null){
textField.setTextFormat(_local3);
} else {
_local3 = _local2;
};
textField.defaultTextFormat = _local3;
setEmbedFont();
if (_html){
textField.htmlText = _savedHTML;
};
}
protected function handleChange(_arg1:Event):void{
_arg1.stopPropagation();
dispatchEvent(new Event(Event.CHANGE, true));
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 369
//ComponentShim (fl.core.ComponentShim)
package fl.core {
import flash.display.*;
public dynamic class ComponentShim extends MovieClip {
}
}//package fl.core
Section 370
//InvalidationType (fl.core.InvalidationType)
package fl.core {
public class InvalidationType {
public static const SIZE:String = "size";
public static const ALL:String = "all";
public static const DATA:String = "data";
public static const SCROLL:String = "scroll";
public static const STATE:String = "state";
public static const STYLES:String = "styles";
public static const SELECTED:String = "selected";
public static const RENDERER_STYLES:String = "rendererStyles";
}
}//package fl.core
Section 371
//UIComponent (fl.core.UIComponent)
package fl.core {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.system.*;
public class UIComponent extends Sprite {
protected var _enabled:Boolean;// = true
private var _mouseFocusEnabled:Boolean;// = true
protected var startHeight:Number;
protected var _height:Number;
protected var _oldIMEMode:String;// = null
protected var startWidth:Number;
public var focusTarget:IFocusManagerComponent;
protected var errorCaught:Boolean;// = false
protected var uiFocusRect:DisplayObject;
protected var _width:Number;
public var version:String;// = "3.0.0.15"
protected var isFocused:Boolean;// = false
protected var callLaterMethods:Dictionary;
private var _focusEnabled:Boolean;// = true
private var tempText:TextField;
protected var invalidateFlag:Boolean;// = false
protected var _inspector:Boolean;// = false
protected var sharedStyles:Object;
protected var invalidHash:Object;
protected var isLivePreview:Boolean;// = false
protected var _imeMode:String;// = null
protected var instanceStyles:Object;
protected var _x:Number;
protected var _y:Number;
public static var inCallLaterPhase:Boolean = false;
private static var defaultStyles:Object = {focusRectSkin:"focusRectSkin", focusRectPadding:2, textFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), disabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultTextFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultDisabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0)};
public static var createAccessibilityImplementation:Function;
private static var focusManagers:Dictionary = new Dictionary(false);
public function UIComponent(){
version = "3.0.0.15";
isLivePreview = false;
invalidateFlag = false;
_enabled = true;
isFocused = false;
_focusEnabled = true;
_mouseFocusEnabled = true;
_imeMode = null;
_oldIMEMode = null;
errorCaught = false;
_inspector = false;
super();
instanceStyles = {};
sharedStyles = {};
invalidHash = {};
callLaterMethods = new Dictionary();
StyleManager.registerInstance(this);
configUI();
invalidate(InvalidationType.ALL);
tabEnabled = (this is IFocusManagerComponent);
focusRect = false;
if (tabEnabled){
addEventListener(FocusEvent.FOCUS_IN, focusInHandler);
addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
};
initializeFocusManager();
addEventListener(Event.ENTER_FRAME, hookAccessibility, false, 0, true);
}
public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
isFocused = _arg1;
if (((!((uiFocusRect == null))) && (contains(uiFocusRect)))){
removeChild(uiFocusRect);
uiFocusRect = null;
};
if (_arg1){
uiFocusRect = (getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite);
if (uiFocusRect == null){
return;
};
_local2 = Number(getStyleValue("focusRectPadding"));
uiFocusRect.x = -(_local2);
uiFocusRect.y = -(_local2);
uiFocusRect.width = (width + (_local2 * 2));
uiFocusRect.height = (height + (_local2 * 2));
addChildAt(uiFocusRect, 0);
};
}
private function callLaterDispatcher(_arg1:Event):void{
var _local2:Dictionary;
var _local3:Object;
if (_arg1.type == Event.ADDED_TO_STAGE){
removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher);
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
return;
};
_arg1.target.removeEventListener(Event.RENDER, callLaterDispatcher);
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
return;
};
inCallLaterPhase = true;
_local2 = callLaterMethods;
for (_local3 in _local2) {
_local3();
delete _local2[_local3];
};
inCallLaterPhase = false;
}
private function addedHandler(_arg1:Event):void{
removeEventListener("addedToStage", addedHandler);
initializeFocusManager();
}
protected function getStyleValue(_arg1:String):Object{
return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]);
}
protected function isOurFocus(_arg1:DisplayObject):Boolean{
return ((_arg1 == this));
}
override public function get scaleX():Number{
return ((width / startWidth));
}
override public function get scaleY():Number{
return ((height / startHeight));
}
override public function set height(_arg1:Number):void{
if (_height == _arg1){
return;
};
setSize(width, _arg1);
}
protected function keyDownHandler(_arg1:KeyboardEvent):void{
}
protected function focusInHandler(_arg1:FocusEvent):void{
var _local2:IFocusManager;
if (isOurFocus((_arg1.target as DisplayObject))){
_local2 = focusManager;
if (((_local2) && (_local2.showFocusIndicator))){
drawFocus(true);
isFocused = true;
};
};
}
public function setStyle(_arg1:String, _arg2:Object):void{
if ((((instanceStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
instanceStyles[_arg1] = _arg2;
invalidate(InvalidationType.STYLES);
}
override public function get visible():Boolean{
return (super.visible);
}
public function get componentInspectorSetting():Boolean{
return (_inspector);
}
override public function get x():Number{
return ((isNaN(_x)) ? super.x : _x);
}
override public function get y():Number{
return ((isNaN(_y)) ? super.y : _y);
}
protected function setIMEMode(_arg1:Boolean){
var enabled = _arg1;
if (_imeMode != null){
if (enabled){
IME.enabled = true;
_oldIMEMode = IME.conversionMode;
try {
if (((!(errorCaught)) && (!((IME.conversionMode == IMEConversionMode.UNKNOWN))))){
IME.conversionMode = _imeMode;
};
errorCaught = false;
} catch(e:Error) {
errorCaught = true;
throw (new Error(("IME mode not supported: " + _imeMode)));
};
} else {
if (((!((IME.conversionMode == IMEConversionMode.UNKNOWN))) && (!((_oldIMEMode == IMEConversionMode.UNKNOWN))))){
IME.conversionMode = _oldIMEMode;
};
IME.enabled = false;
};
};
}
public function set enabled(_arg1:Boolean):void{
if (_arg1 == _enabled){
return;
};
_enabled = _arg1;
invalidate(InvalidationType.STATE);
}
public function setSharedStyle(_arg1:String, _arg2:Object):void{
if ((((sharedStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
sharedStyles[_arg1] = _arg2;
if (instanceStyles[_arg1] == null){
invalidate(InvalidationType.STYLES);
};
}
protected function keyUpHandler(_arg1:KeyboardEvent):void{
}
public function set focusEnabled(_arg1:Boolean):void{
_focusEnabled = _arg1;
}
override public function set scaleX(_arg1:Number):void{
setSize((startWidth * _arg1), height);
}
public function get mouseFocusEnabled():Boolean{
return (_mouseFocusEnabled);
}
override public function set scaleY(_arg1:Number):void{
setSize(width, (startHeight * _arg1));
}
protected function getDisplayObjectInstance(_arg1:Object):DisplayObject{
var classDef:Object;
var skin = _arg1;
classDef = null;
if ((skin is Class)){
return ((new (skin) as DisplayObject));
};
if ((skin is DisplayObject)){
(skin as DisplayObject).x = 0;
(skin as DisplayObject).y = 0;
return ((skin as DisplayObject));
};
try {
classDef = getDefinitionByName(skin.toString());
} catch(e:Error) {
try {
classDef = (loaderInfo.applicationDomain.getDefinition(skin.toString()) as Object);
} catch(e:Error) {
};
};
if (classDef == null){
return (null);
};
return ((new (classDef) as DisplayObject));
}
protected function copyStylesToChild(_arg1:UIComponent, _arg2:Object):void{
var _local3:String;
for (_local3 in _arg2) {
_arg1.setStyle(_local3, getStyleValue(_arg2[_local3]));
};
}
protected function beforeComponentParameters():void{
}
protected function callLater(_arg1:Function):void{
if (inCallLaterPhase){
return;
};
callLaterMethods[_arg1] = true;
if (stage != null){
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
} else {
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
};
}
protected function createFocusManager():void{
if (focusManagers[stage] == null){
focusManagers[stage] = new FocusManager(stage);
};
}
override public function set visible(_arg1:Boolean):void{
var _local2:String;
if (super.visible == _arg1){
return;
};
super.visible = _arg1;
_local2 = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE;
dispatchEvent(new ComponentEvent(_local2, true));
}
protected function hookAccessibility(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, hookAccessibility);
initializeAccessibility();
}
public function set componentInspectorSetting(_arg1:Boolean):void{
_inspector = _arg1;
if (_inspector){
beforeComponentParameters();
} else {
afterComponentParameters();
};
}
override public function set x(_arg1:Number):void{
move(_arg1, _y);
}
public function drawNow():void{
draw();
}
override public function set y(_arg1:Number):void{
move(_x, _arg1);
}
protected function checkLivePreview():Boolean{
var className:String;
if (parent == null){
return (false);
};
try {
className = getQualifiedClassName(parent);
} catch(e:Error) {
};
return ((className == "fl.livepreview::LivePreviewParent"));
}
protected function focusOutHandler(_arg1:FocusEvent):void{
if (isOurFocus((_arg1.target as DisplayObject))){
drawFocus(false);
isFocused = false;
};
}
public function set mouseFocusEnabled(_arg1:Boolean):void{
_mouseFocusEnabled = _arg1;
}
public function getFocus():InteractiveObject{
if (stage){
return (stage.focus);
};
return (null);
}
protected function validate():void{
invalidHash = {};
}
override public function get height():Number{
return (_height);
}
public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{
invalidHash[_arg1] = true;
if (_arg2){
this.callLater(draw);
};
}
public function get enabled():Boolean{
return (_enabled);
}
protected function getScaleX():Number{
return (super.scaleX);
}
protected function getScaleY():Number{
return (super.scaleY);
}
public function get focusEnabled():Boolean{
return (_focusEnabled);
}
protected function afterComponentParameters():void{
}
protected function draw():void{
if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){
if (((isFocused) && (focusManager.showFocusIndicator))){
drawFocus(true);
};
};
validate();
}
protected function configUI():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
isLivePreview = checkLivePreview();
_local1 = rotation;
rotation = 0;
_local2 = super.width;
_local3 = super.height;
var _local4 = 1;
super.scaleY = _local4;
super.scaleX = _local4;
setSize(_local2, _local3);
move(super.x, super.y);
rotation = _local1;
startWidth = _local2;
startHeight = _local3;
if (numChildren > 0){
removeChildAt(0);
};
}
protected function setScaleX(_arg1:Number):void{
super.scaleX = _arg1;
}
protected function setScaleY(_arg1:Number):void{
super.scaleY = _arg1;
}
private function initializeFocusManager():void{
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true);
} else {
createFocusManager();
};
}
public function set focusManager(_arg1:IFocusManager):void{
UIComponent.focusManagers[this] = _arg1;
}
public function clearStyle(_arg1:String):void{
setStyle(_arg1, null);
}
protected function isInvalid(_arg1:String, ... _args):Boolean{
if (((invalidHash[_arg1]) || (invalidHash[InvalidationType.ALL]))){
return (true);
};
while (_args.length > 0) {
if (invalidHash[_args.pop()]){
return (true);
};
};
return (false);
}
public function setSize(_arg1:Number, _arg2:Number):void{
_width = _arg1;
_height = _arg2;
invalidate(InvalidationType.SIZE);
dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false));
}
override public function set width(_arg1:Number):void{
if (_width == _arg1){
return;
};
setSize(_arg1, height);
}
public function setFocus():void{
if (stage){
stage.focus = this;
};
}
protected function initializeAccessibility():void{
if (UIComponent.createAccessibilityImplementation != null){
UIComponent.createAccessibilityImplementation(this);
};
}
public function get focusManager():IFocusManager{
var _local1:DisplayObject;
_local1 = this;
while (_local1) {
if (UIComponent.focusManagers[_local1] != null){
return (IFocusManager(UIComponent.focusManagers[_local1]));
};
_local1 = _local1.parent;
};
return (null);
}
override public function get width():Number{
return (_width);
}
public function move(_arg1:Number, _arg2:Number):void{
_x = _arg1;
_y = _arg2;
super.x = Math.round(_arg1);
super.y = Math.round(_arg2);
dispatchEvent(new ComponentEvent(ComponentEvent.MOVE));
}
public function validateNow():void{
invalidate(InvalidationType.ALL, false);
draw();
}
public function getStyle(_arg1:String):Object{
return (instanceStyles[_arg1]);
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
public static function mergeStyles(... _args):Object{
var _local2:Object;
var _local3:uint;
var _local4:uint;
var _local5:Object;
var _local6:String;
_local2 = {};
_local3 = _args.length;
_local4 = 0;
while (_local4 < _local3) {
_local5 = _args[_local4];
for (_local6 in _local5) {
if (_local2[_local6] != null){
} else {
_local2[_local6] = _args[_local4][_local6];
};
};
_local4++;
};
return (_local2);
}
}
}//package fl.core
Section 372
//DataProvider (fl.data.DataProvider)
package fl.data {
import flash.events.*;
import fl.events.*;
public class DataProvider extends EventDispatcher {
protected var data:Array;
public function DataProvider(_arg1:Object=null){
if (_arg1 == null){
data = [];
} else {
data = getDataFromObject(_arg1);
};
}
protected function dispatchPreChangeEvent(_arg1:String, _arg2:Array, _arg3:int, _arg4:int):void{
dispatchEvent(new DataChangeEvent(DataChangeEvent.PRE_DATA_CHANGE, _arg1, _arg2, _arg3, _arg4));
}
public function invalidateItemAt(_arg1:int):void{
checkIndex(_arg1, (data.length - 1));
dispatchChangeEvent(DataChangeType.INVALIDATE, [data[_arg1]], _arg1, _arg1);
}
public function getItemIndex(_arg1:Object):int{
return (data.indexOf(_arg1));
}
protected function getDataFromObject(_arg1:Object):Array{
var _local2:Array;
var _local3:Array;
var _local4:uint;
var _local5:Object;
var _local6:XML;
var _local7:XMLList;
var _local8:XML;
var _local9:XMLList;
var _local10:XML;
var _local11:XMLList;
var _local12:XML;
if ((_arg1 is Array)){
_local3 = (_arg1 as Array);
if (_local3.length > 0){
if ((((_local3[0] is String)) || ((_local3[0] is Number)))){
_local2 = [];
_local4 = 0;
while (_local4 < _local3.length) {
_local5 = {label:String(_local3[_local4]), data:_local3[_local4]};
_local2.push(_local5);
_local4++;
};
return (_local2);
};
};
return (_arg1.concat());
//unresolved jump
};
if ((_arg1 is DataProvider)){
return (_arg1.toArray());
};
if ((_arg1 is XML)){
_local6 = (_arg1 as XML);
_local2 = [];
_local7 = _local6.*;
for each (_local8 in _local7) {
_arg1 = {};
_local9 = _local8.attributes();
for each (_local10 in _local9) {
_arg1[_local10.localName()] = _local10.toString();
};
_local11 = _local8.*;
for each (_local12 in _local11) {
if (_local12.hasSimpleContent()){
_arg1[_local12.localName()] = _local12.toString();
};
};
_local2.push(_arg1);
};
return (_local2);
//unresolved jump
};
throw (new TypeError((("Error: Type Coercion failed: cannot convert " + _arg1) + " to Array or DataProvider.")));
}
public function removeItemAt(_arg1:uint):Object{
var _local2:Array;
checkIndex(_arg1, (data.length - 1));
dispatchPreChangeEvent(DataChangeType.REMOVE, data.slice(_arg1, (_arg1 + 1)), _arg1, _arg1);
_local2 = data.splice(_arg1, 1);
dispatchChangeEvent(DataChangeType.REMOVE, _local2, _arg1, _arg1);
return (_local2[0]);
}
public function addItem(_arg1:Object):void{
dispatchPreChangeEvent(DataChangeType.ADD, [_arg1], (data.length - 1), (data.length - 1));
data.push(_arg1);
dispatchChangeEvent(DataChangeType.ADD, [_arg1], (data.length - 1), (data.length - 1));
}
public function sortOn(_arg1:Object, _arg2:Object=null){
var _local3:Array;
dispatchPreChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1));
_local3 = data.sortOn(_arg1, _arg2);
dispatchChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1));
return (_local3);
}
public function sort(... _args){
var _local2:Array;
dispatchPreChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1));
_local2 = data.sort.apply(data, _args);
dispatchChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1));
return (_local2);
}
public function addItems(_arg1:Object):void{
addItemsAt(_arg1, data.length);
}
public function concat(_arg1:Object):void{
addItems(_arg1);
}
public function clone():DataProvider{
return (new DataProvider(data));
}
public function toArray():Array{
return (data.concat());
}
public function get length():uint{
return (data.length);
}
public function addItemAt(_arg1:Object, _arg2:uint):void{
checkIndex(_arg2, data.length);
dispatchPreChangeEvent(DataChangeType.ADD, [_arg1], _arg2, _arg2);
data.splice(_arg2, 0, _arg1);
dispatchChangeEvent(DataChangeType.ADD, [_arg1], _arg2, _arg2);
}
public function getItemAt(_arg1:uint):Object{
checkIndex(_arg1, (data.length - 1));
return (data[_arg1]);
}
override public function toString():String{
return ((("DataProvider [" + data.join(" , ")) + "]"));
}
public function invalidateItem(_arg1:Object):void{
var _local2:uint;
_local2 = getItemIndex(_arg1);
if (_local2 == -1){
return;
};
invalidateItemAt(_local2);
}
protected function dispatchChangeEvent(_arg1:String, _arg2:Array, _arg3:int, _arg4:int):void{
dispatchEvent(new DataChangeEvent(DataChangeEvent.DATA_CHANGE, _arg1, _arg2, _arg3, _arg4));
}
protected function checkIndex(_arg1:int, _arg2:int):void{
if ((((_arg1 > _arg2)) || ((_arg1 < 0)))){
throw (new RangeError((((("DataProvider index (" + _arg1) + ") is not in acceptable range (0 - ") + _arg2) + ")")));
};
}
public function addItemsAt(_arg1:Object, _arg2:uint):void{
var _local3:Array;
checkIndex(_arg2, data.length);
_local3 = getDataFromObject(_arg1);
dispatchPreChangeEvent(DataChangeType.ADD, _local3, _arg2, ((_arg2 + _local3.length) - 1));
data.splice.apply(data, [_arg2, 0].concat(_local3));
dispatchChangeEvent(DataChangeType.ADD, _local3, _arg2, ((_arg2 + _local3.length) - 1));
}
public function replaceItem(_arg1:Object, _arg2:Object):Object{
var _local3:int;
_local3 = getItemIndex(_arg2);
if (_local3 != -1){
return (replaceItemAt(_arg1, _local3));
};
return (null);
}
public function removeItem(_arg1:Object):Object{
var _local2:int;
_local2 = getItemIndex(_arg1);
if (_local2 != -1){
return (removeItemAt(_local2));
};
return (null);
}
public function merge(_arg1:Object):void{
var _local2:Array;
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:Object;
_local2 = getDataFromObject(_arg1);
_local3 = _local2.length;
_local4 = data.length;
dispatchPreChangeEvent(DataChangeType.ADD, data.slice(_local4, data.length), _local4, (this.data.length - 1));
_local5 = 0;
while (_local5 < _local3) {
_local6 = _local2[_local5];
if (getItemIndex(_local6) == -1){
data.push(_local6);
};
_local5++;
};
if (data.length > _local4){
dispatchChangeEvent(DataChangeType.ADD, data.slice(_local4, data.length), _local4, (this.data.length - 1));
} else {
dispatchChangeEvent(DataChangeType.ADD, [], -1, -1);
};
}
public function replaceItemAt(_arg1:Object, _arg2:uint):Object{
var _local3:Array;
checkIndex(_arg2, (data.length - 1));
_local3 = [data[_arg2]];
dispatchPreChangeEvent(DataChangeType.REPLACE, _local3, _arg2, _arg2);
data[_arg2] = _arg1;
dispatchChangeEvent(DataChangeType.REPLACE, _local3, _arg2, _arg2);
return (_local3[0]);
}
public function invalidate():void{
dispatchEvent(new DataChangeEvent(DataChangeEvent.DATA_CHANGE, DataChangeType.INVALIDATE_ALL, data.concat(), 0, data.length));
}
public function removeAll():void{
var _local1:Array;
_local1 = data.concat();
dispatchPreChangeEvent(DataChangeType.REMOVE_ALL, _local1, 0, _local1.length);
data = [];
dispatchChangeEvent(DataChangeType.REMOVE_ALL, _local1, 0, _local1.length);
}
}
}//package fl.data
Section 373
//SimpleCollectionItem (fl.data.SimpleCollectionItem)
package fl.data {
public dynamic class SimpleCollectionItem {
public var label:String;
public var data:String;
public function toString():String{
return ((((("[SimpleCollectionItem: " + label) + ",") + data) + "]"));
}
}
}//package fl.data
Section 374
//ComponentEvent (fl.events.ComponentEvent)
package fl.events {
import flash.events.*;
public class ComponentEvent extends Event {
public static const HIDE:String = "hide";
public static const BUTTON_DOWN:String = "buttonDown";
public static const MOVE:String = "move";
public static const RESIZE:String = "resize";
public static const ENTER:String = "enter";
public static const LABEL_CHANGE:String = "labelChange";
public static const SHOW:String = "show";
public function ComponentEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function toString():String{
return (formatToString("ComponentEvent", "type", "bubbles", "cancelable"));
}
override public function clone():Event{
return (new ComponentEvent(type, bubbles, cancelable));
}
}
}//package fl.events
Section 375
//DataChangeEvent (fl.events.DataChangeEvent)
package fl.events {
import flash.events.*;
public class DataChangeEvent extends Event {
protected var _items:Array;
protected var _endIndex:uint;
protected var _changeType:String;
protected var _startIndex:uint;
public static const PRE_DATA_CHANGE:String = "preDataChange";
public static const DATA_CHANGE:String = "dataChange";
public function DataChangeEvent(_arg1:String, _arg2:String, _arg3:Array, _arg4:int=-1, _arg5:int=-1):void{
super(_arg1);
_changeType = _arg2;
_startIndex = _arg4;
_items = _arg3;
_endIndex = ((_arg5)==-1) ? _startIndex : _arg5;
}
public function get changeType():String{
return (_changeType);
}
public function get startIndex():uint{
return (_startIndex);
}
public function get items():Array{
return (_items);
}
override public function clone():Event{
return (new DataChangeEvent(type, _changeType, _items, _startIndex, _endIndex));
}
override public function toString():String{
return (formatToString("DataChangeEvent", "type", "changeType", "startIndex", "endIndex", "bubbles", "cancelable"));
}
public function get endIndex():uint{
return (_endIndex);
}
}
}//package fl.events
Section 376
//DataChangeType (fl.events.DataChangeType)
package fl.events {
public class DataChangeType {
public static const ADD:String = "add";
public static const REMOVE:String = "remove";
public static const REMOVE_ALL:String = "removeAll";
public static const CHANGE:String = "change";
public static const REPLACE:String = "replace";
public static const INVALIDATE:String = "invalidate";
public static const INVALIDATE_ALL:String = "invalidateAll";
public static const SORT:String = "sort";
}
}//package fl.events
Section 377
//ListEvent (fl.events.ListEvent)
package fl.events {
import flash.events.*;
public class ListEvent extends Event {
protected var _index:int;
protected var _item:Object;
protected var _columnIndex:int;
protected var _rowIndex:int;
public static const ITEM_DOUBLE_CLICK:String = "itemDoubleClick";
public static const ITEM_ROLL_OUT:String = "itemRollOut";
public static const ITEM_ROLL_OVER:String = "itemRollOver";
public static const ITEM_CLICK:String = "itemClick";
public function ListEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=-1, _arg5:int=-1, _arg6:int=-1, _arg7:Object=null){
super(_arg1, _arg2, _arg3);
_rowIndex = _arg5;
_columnIndex = _arg4;
_index = _arg6;
_item = _arg7;
}
public function get rowIndex():Object{
return (_rowIndex);
}
public function get index():int{
return (_index);
}
public function get item():Object{
return (_item);
}
public function get columnIndex():int{
return (_columnIndex);
}
override public function clone():Event{
return (new ListEvent(type, bubbles, cancelable, _columnIndex, _rowIndex));
}
override public function toString():String{
return (formatToString("ListEvent", "type", "bubbles", "cancelable", "columnIndex", "rowIndex", "index", "item"));
}
}
}//package fl.events
Section 378
//ScrollEvent (fl.events.ScrollEvent)
package fl.events {
import flash.events.*;
public class ScrollEvent extends Event {
private var _position:Number;
private var _direction:String;
private var _delta:Number;
public static const SCROLL:String = "scroll";
public function ScrollEvent(_arg1:String, _arg2:Number, _arg3:Number){
super(ScrollEvent.SCROLL, false, false);
_direction = _arg1;
_delta = _arg2;
_position = _arg3;
}
override public function clone():Event{
return (new ScrollEvent(_direction, _delta, _position));
}
public function get position():Number{
return (_position);
}
override public function toString():String{
return (formatToString("ScrollEvent", "type", "bubbles", "cancelable", "direction", "delta", "position"));
}
public function get delta():Number{
return (_delta);
}
public function get direction():String{
return (_direction);
}
}
}//package fl.events
Section 379
//FocusManager (fl.managers.FocusManager)
package fl.managers {
import fl.core.*;
import fl.controls.*;
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.text.*;
import flash.ui.*;
public class FocusManager implements IFocusManager {
private var focusableObjects:Dictionary;
private var _showFocusIndicator:Boolean;// = true
private var defButton:Button;
private var focusableCandidates:Array;
private var _form:DisplayObjectContainer;
private var _defaultButtonEnabled:Boolean;// = true
private var activated:Boolean;// = false
private var _defaultButton:Button;
private var calculateCandidates:Boolean;// = true
private var lastFocus:InteractiveObject;
private var lastAction:String;
public function FocusManager(_arg1:DisplayObjectContainer){
activated = false;
calculateCandidates = true;
_showFocusIndicator = true;
_defaultButtonEnabled = true;
super();
focusableObjects = new Dictionary(true);
if (_arg1 != null){
_form = _arg1;
addFocusables(DisplayObject(_arg1));
_arg1.addEventListener(Event.ADDED, addedHandler);
_arg1.addEventListener(Event.REMOVED, removedHandler);
activate();
};
}
public function get showFocusIndicator():Boolean{
return (_showFocusIndicator);
}
private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{
var _local5:int;
var _local6:int;
var _local7:DisplayObject;
var _local8:IFocusManagerGroup;
var _local9:int;
var _local10:DisplayObject;
var _local11:IFocusManagerGroup;
_local5 = focusableCandidates.length;
_local6 = _arg1;
while (true) {
if (_arg2){
_arg1--;
} else {
_arg1++;
};
if (_arg3){
if (((_arg2) && ((_arg1 < 0)))){
break;
};
if (((!(_arg2)) && ((_arg1 == _local5)))){
break;
};
} else {
_arg1 = ((_arg1 + _local5) % _local5);
if (_local6 == _arg1){
break;
};
};
if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){
_local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1]));
if ((_local7 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local7);
_local9 = 0;
while (_local9 < focusableCandidates.length) {
_local10 = focusableCandidates[_local9];
if ((_local10 is IFocusManagerGroup)){
_local11 = IFocusManagerGroup(_local10);
if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){
_arg1 = _local9;
break;
};
};
_local9++;
};
};
return (_arg1);
};
};
return (_arg1);
}
public function set form(_arg1:DisplayObjectContainer):void{
_form = _arg1;
}
private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{
var focusable:IFocusManagerComponent;
var io:InteractiveObject;
var doc:DisplayObjectContainer;
var i:int;
var child:DisplayObject;
var o = _arg1;
var skipTopLevel = _arg2;
if (!skipTopLevel){
if ((o is IFocusManagerComponent)){
focusable = IFocusManagerComponent(o);
if (focusable.focusEnabled){
if (((focusable.tabEnabled) && (isTabVisible(o)))){
focusableObjects[o] = true;
calculateCandidates = true;
};
o.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
o.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
};
} else {
if ((o is InteractiveObject)){
io = (o as InteractiveObject);
if (((((io) && (io.tabEnabled))) && ((findFocusManagerComponent(io) == io)))){
focusableObjects[io] = true;
calculateCandidates = true;
};
io.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
io.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
};
};
};
if ((o is DisplayObjectContainer)){
doc = DisplayObjectContainer(o);
o.addEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler);
if ((((((doc is Stage)) || ((doc.parent is Stage)))) || (doc.tabChildren))){
i = 0;
while (i < doc.numChildren) {
try {
child = doc.getChildAt(i);
if (child != null){
addFocusables(doc.getChildAt(i));
};
} catch(error:SecurityError) {
};
i = (i + 1);
};
};
};
}
private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{
return (_arg1.getChildIndex(_arg2));
}
private function mouseFocusChangeHandler(_arg1:FocusEvent):void{
if ((_arg1.relatedObject is TextField)){
return;
};
_arg1.preventDefault();
}
private function focusOutHandler(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
_local2 = (_arg1.target as InteractiveObject);
}
private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{
var _local3:IFocusManagerGroup;
if (!isEnabledAndVisible(_arg1)){
return (false);
};
if ((_arg1 is IFocusManagerGroup)){
_local3 = IFocusManagerGroup(_arg1);
if (_arg2 == _local3.groupName){
return (false);
};
};
return (true);
}
public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{
var _local2:InteractiveObject;
_local2 = _arg1;
while (_arg1) {
if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){
return (_arg1);
};
_arg1 = _arg1.parent;
};
return (_local2);
}
private function sortFocusableObjectsTabIndex():void{
var _local1:Object;
var _local2:InteractiveObject;
focusableCandidates = [];
for (_local1 in focusableObjects) {
_local2 = InteractiveObject(_local1);
if (((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))){
focusableCandidates.push(_local2);
};
};
focusableCandidates.sort(sortByTabIndex);
}
private function removeFocusables(_arg1:DisplayObject):void{
var _local2:Object;
var _local3:DisplayObject;
if ((_arg1 is DisplayObjectContainer)){
_arg1.removeEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler);
_arg1.removeEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
for (_local2 in focusableObjects) {
_local3 = DisplayObject(_local2);
if (DisplayObjectContainer(_arg1).contains(_local3)){
if (_local3 == lastFocus){
lastFocus = null;
};
_local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
delete focusableObjects[_local2];
calculateCandidates = true;
};
};
};
}
private function addedHandler(_arg1:Event):void{
var _local2:DisplayObject;
_local2 = DisplayObject(_arg1.target);
if (_local2.stage){
addFocusables(DisplayObject(_arg1.target));
};
}
private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{
while (_arg1 != InteractiveObject(form)) {
if ((((((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))) && (IFocusManagerComponent(_arg1).mouseFocusEnabled))) && (UIComponent(_arg1).enabled))){
return (_arg1);
};
_arg1 = _arg1.parent;
if (_arg1 == null){
break;
};
};
return (null);
}
private function tabChildrenChangeHandler(_arg1:Event):void{
var _local2:DisplayObjectContainer;
if (_arg1.target != _arg1.currentTarget){
return;
};
calculateCandidates = true;
_local2 = DisplayObjectContainer(_arg1.target);
if (_local2.tabChildren){
addFocusables(_local2, true);
} else {
removeFocusables(_local2);
};
}
public function sendDefaultButtonEvent():void{
defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
}
public function getFocus():InteractiveObject{
var _local1:InteractiveObject;
_local1 = form.stage.focus;
return (findFocusManagerComponent(_local1));
}
private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{
var _local2:DisplayObjectContainer;
var _local3:TextField;
var _local4:SimpleButton;
_local2 = DisplayObject(form).parent;
while (_arg1 != _local2) {
if ((_arg1 is UIComponent)){
if (!UIComponent(_arg1).enabled){
return (false);
};
} else {
if ((_arg1 is TextField)){
_local3 = TextField(_arg1);
if ((((_local3.type == TextFieldType.DYNAMIC)) || (!(_local3.selectable)))){
return (false);
};
} else {
if ((_arg1 is SimpleButton)){
_local4 = SimpleButton(_arg1);
if (!_local4.enabled){
return (false);
};
};
};
};
if (!_arg1.visible){
return (false);
};
_arg1 = _arg1.parent;
};
return (true);
}
public function set defaultButton(_arg1:Button):void{
var _local2:Button;
_local2 = (_arg1) ? Button(_arg1) : null;
if (_local2 != _defaultButton){
if (_defaultButton){
_defaultButton.emphasized = false;
};
if (defButton){
defButton.emphasized = false;
};
_defaultButton = _local2;
defButton = _local2;
if (_local2){
_local2.emphasized = true;
};
};
}
private function deactivateHandler(_arg1:Event):void{
var _local2:InteractiveObject;
_local2 = InteractiveObject(_arg1.target);
}
public function setFocus(_arg1:InteractiveObject):void{
if ((_arg1 is IFocusManagerComponent)){
IFocusManagerComponent(_arg1).setFocus();
} else {
form.stage.focus = _arg1;
};
}
private function setFocusToNextObject(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
if (!hasFocusableObjects()){
return;
};
_local2 = getNextFocusManagerComponent(_arg1.shiftKey);
if (_local2){
setFocus(_local2);
};
}
private function hasFocusableObjects():Boolean{
var _local1:Object;
for (_local1 in focusableObjects) {
return (true);
};
return (false);
}
private function tabIndexChangeHandler(_arg1:Event):void{
calculateCandidates = true;
}
private function sortFocusableObjects():void{
var _local1:Object;
var _local2:InteractiveObject;
focusableCandidates = [];
for (_local1 in focusableObjects) {
_local2 = InteractiveObject(_local1);
if (((((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))) && ((_local2.tabIndex > 0)))){
sortFocusableObjectsTabIndex();
return;
};
focusableCandidates.push(_local2);
};
focusableCandidates.sort(sortByDepth);
}
private function keyFocusChangeHandler(_arg1:FocusEvent):void{
showFocusIndicator = true;
if ((((((_arg1.keyCode == Keyboard.TAB)) || ((_arg1.keyCode == 0)))) && (!(_arg1.isDefaultPrevented())))){
setFocusToNextObject(_arg1);
_arg1.preventDefault();
};
}
private function getIndexOfFocusedObject(_arg1:DisplayObject):int{
var _local2:int;
var _local3:int;
_local2 = focusableCandidates.length;
_local3 = 0;
_local3 = 0;
while (_local3 < _local2) {
if (focusableCandidates[_local3] == _arg1){
return (_local3);
};
_local3++;
};
return (-1);
}
public function hideFocus():void{
}
private function removedHandler(_arg1:Event):void{
var _local2:int;
var _local3:DisplayObject;
var _local4:InteractiveObject;
_local3 = DisplayObject(_arg1.target);
if ((((_local3 is IFocusManagerComponent)) && ((focusableObjects[_local3] == true)))){
if (_local3 == lastFocus){
IFocusManagerComponent(lastFocus).drawFocus(false);
lastFocus = null;
};
_local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
delete focusableObjects[_local3];
calculateCandidates = true;
} else {
if ((((_local3 is InteractiveObject)) && ((focusableObjects[_local3] == true)))){
_local4 = (_local3 as InteractiveObject);
if (_local4){
if (_local4 == lastFocus){
lastFocus = null;
};
delete focusableObjects[_local4];
calculateCandidates = true;
};
_local3.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
};
};
removeFocusables(_local3);
}
private function sortByDepth(_arg1:InteractiveObject, _arg2:InteractiveObject):Number{
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:String;
var _local7:String;
var _local8:String;
var _local9:DisplayObject;
var _local10:DisplayObject;
_local3 = "";
_local4 = "";
_local8 = "0000";
_local9 = DisplayObject(_arg1);
_local10 = DisplayObject(_arg2);
while (((!((_local9 == DisplayObject(form)))) && (_local9.parent))) {
_local5 = getChildIndex(_local9.parent, _local9);
_local6 = _local5.toString(16);
if (_local6.length < 4){
_local7 = (_local8.substring(0, (4 - _local6.length)) + _local6);
};
_local3 = (_local7 + _local3);
_local9 = _local9.parent;
};
while (((!((_local10 == DisplayObject(form)))) && (_local10.parent))) {
_local5 = getChildIndex(_local10.parent, _local10);
_local6 = _local5.toString(16);
if (_local6.length < 4){
_local7 = (_local8.substring(0, (4 - _local6.length)) + _local6);
};
_local4 = (_local7 + _local4);
_local10 = _local10.parent;
};
return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : 0);
}
public function get defaultButton():Button{
return (_defaultButton);
}
private function activateHandler(_arg1:Event):void{
var _local2:InteractiveObject;
_local2 = InteractiveObject(_arg1.target);
if (lastFocus){
if ((lastFocus is IFocusManagerComponent)){
IFocusManagerComponent(lastFocus).setFocus();
} else {
form.stage.focus = lastFocus;
};
};
lastAction = "ACTIVATE";
}
public function showFocus():void{
}
public function set defaultButtonEnabled(_arg1:Boolean):void{
_defaultButtonEnabled = _arg1;
}
public function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject{
var _local2:DisplayObject;
var _local3:String;
var _local4:int;
var _local5:Boolean;
var _local6:int;
var _local7:int;
var _local8:IFocusManagerGroup;
if (!hasFocusableObjects()){
return (null);
};
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
_local2 = form.stage.focus;
_local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2)));
_local3 = "";
if ((_local2 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local2);
_local3 = _local8.groupName;
};
_local4 = getIndexOfFocusedObject(_local2);
_local5 = false;
_local6 = _local4;
if (_local4 == -1){
if (_arg1){
_local4 = focusableCandidates.length;
};
_local5 = true;
};
_local7 = getIndexOfNextObject(_local4, _arg1, _local5, _local3);
return (findFocusManagerComponent(focusableCandidates[_local7]));
}
private function mouseDownHandler(_arg1:MouseEvent):void{
var _local2:InteractiveObject;
if (_arg1.isDefaultPrevented()){
return;
};
_local2 = getTopLevelFocusTarget(InteractiveObject(_arg1.target));
if (!_local2){
return;
};
showFocusIndicator = false;
if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){
setFocus(_local2);
};
lastAction = "MOUSEDOWN";
}
private function isTabVisible(_arg1:DisplayObject):Boolean{
var _local2:DisplayObjectContainer;
_local2 = _arg1.parent;
while (((((_local2) && (!((_local2 is Stage))))) && (!(((_local2.parent) && ((_local2.parent is Stage))))))) {
if (!_local2.tabChildren){
return (false);
};
_local2 = _local2.parent;
};
return (true);
}
public function get nextTabIndex():int{
return (0);
}
private function keyDownHandler(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.TAB){
lastAction = "KEY";
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
};
if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){
sendDefaultButtonEvent();
};
}
private function focusInHandler(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
var _local3:Button;
_local2 = InteractiveObject(_arg1.target);
if (form.contains(_local2)){
lastFocus = findFocusManagerComponent(InteractiveObject(_local2));
if ((lastFocus is Button)){
_local3 = Button(lastFocus);
if (defButton){
defButton.emphasized = false;
defButton = _local3;
_local3.emphasized = true;
};
} else {
if (((defButton) && (!((defButton == _defaultButton))))){
defButton.emphasized = false;
defButton = _defaultButton;
_defaultButton.emphasized = true;
};
};
};
}
private function tabEnabledChangeHandler(_arg1:Event):void{
var _local2:InteractiveObject;
var _local3:Boolean;
calculateCandidates = true;
_local2 = InteractiveObject(_arg1.target);
_local3 = (focusableObjects[_local2] == true);
if (_local2.tabEnabled){
if (((!(_local3)) && (isTabVisible(_local2)))){
if (!(_local2 is IFocusManagerComponent)){
_local2.focusRect = false;
};
focusableObjects[_local2] = true;
};
} else {
if (_local3){
delete focusableObjects[_local2];
};
};
}
public function set showFocusIndicator(_arg1:Boolean):void{
_showFocusIndicator = _arg1;
}
public function get form():DisplayObjectContainer{
return (_form);
}
private function sortByTabIndex(_arg1:InteractiveObject, _arg2:InteractiveObject):int{
return (((_arg1.tabIndex > _arg2.tabIndex)) ? 1 : ((_arg1.tabIndex < _arg2.tabIndex)) ? -1 : sortByDepth(_arg1, _arg2));
}
public function activate():void{
if (activated){
return;
};
form.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true);
form.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true);
form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
form.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true);
form.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true);
form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
activated = true;
if (lastFocus){
setFocus(lastFocus);
};
}
public function deactivate():void{
form.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler);
form.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler);
form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
form.stage.removeEventListener(Event.ACTIVATE, activateHandler);
form.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler);
form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
activated = false;
}
public function get defaultButtonEnabled():Boolean{
return (_defaultButtonEnabled);
}
}
}//package fl.managers
Section 380
//IFocusManager (fl.managers.IFocusManager)
package fl.managers {
import fl.controls.*;
import flash.display.*;
public interface IFocusManager {
function getFocus():InteractiveObject;
function deactivate():void;
function set defaultButton(_arg1:Button):void;
function set showFocusIndicator(_arg1:Boolean):void;
function get defaultButtonEnabled():Boolean;
function get nextTabIndex():int;
function get defaultButton():Button;
function get showFocusIndicator():Boolean;
function setFocus(_arg1:InteractiveObject):void;
function activate():void;
function showFocus():void;
function set defaultButtonEnabled(_arg1:Boolean):void;
function hideFocus():void;
function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject;
function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject;
}
}//package fl.managers
Section 381
//IFocusManagerComponent (fl.managers.IFocusManagerComponent)
package fl.managers {
public interface IFocusManagerComponent {
function set focusEnabled(_arg1:Boolean):void;
function drawFocus(_arg1:Boolean):void;
function setFocus():void;
function get focusEnabled():Boolean;
function get tabEnabled():Boolean;
function get tabIndex():int;
function get mouseFocusEnabled():Boolean;
}
}//package fl.managers
Section 382
//IFocusManagerGroup (fl.managers.IFocusManagerGroup)
package fl.managers {
public interface IFocusManagerGroup {
function set groupName(_arg1:String):void;
function set selected(_arg1:Boolean):void;
function get groupName():String;
function get selected():Boolean;
}
}//package fl.managers
Section 383
//StyleManager (fl.managers.StyleManager)
package fl.managers {
import fl.core.*;
import flash.utils.*;
import flash.text.*;
public class StyleManager {
private var globalStyles:Object;
private var classToDefaultStylesDict:Dictionary;
private var styleToClassesHash:Object;
private var classToStylesDict:Dictionary;
private var classToInstancesDict:Dictionary;
private static var _instance:StyleManager;
public function StyleManager(){
styleToClassesHash = {};
classToInstancesDict = new Dictionary(true);
classToStylesDict = new Dictionary(true);
classToDefaultStylesDict = new Dictionary(true);
globalStyles = UIComponent.getStyleDefinition();
}
public static function clearComponentStyle(_arg1:Object, _arg2:String):void{
var _local3:Class;
var _local4:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance().classToStylesDict[_local3];
if (((!((_local4 == null))) && (!((_local4[_arg2] == null))))){
delete _local4[_arg2];
invalidateComponentStyle(_local3, _arg2);
};
}
private static function getClassDef(_arg1:Object):Class{
var component = _arg1;
if ((component is Class)){
return ((component as Class));
};
try {
return ((getDefinitionByName(getQualifiedClassName(component)) as Class));
} catch(e:Error) {
if ((component is UIComponent)){
try {
return ((component.loaderInfo.applicationDomain.getDefinition(getQualifiedClassName(component)) as Class));
} catch(e:Error) {
};
};
};
return (null);
}
public static function clearStyle(_arg1:String):void{
setStyle(_arg1, null);
}
public static function setComponentStyle(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Class;
var _local5:Object;
_local4 = getClassDef(_arg1);
_local5 = getInstance().classToStylesDict[_local4];
if (_local5 == null){
_local5 = (getInstance().classToStylesDict[_local4] = {});
};
if (_local5 == _arg3){
return;
};
_local5[_arg2] = _arg3;
invalidateComponentStyle(_local4, _arg2);
}
private static function setSharedStyles(_arg1:UIComponent):void{
var _local2:StyleManager;
var _local3:Class;
var _local4:Object;
var _local5:String;
_local2 = getInstance();
_local3 = getClassDef(_arg1);
_local4 = _local2.classToDefaultStylesDict[_local3];
for (_local5 in _local4) {
_arg1.setSharedStyle(_local5, getSharedStyle(_arg1, _local5));
};
}
public static function getComponentStyle(_arg1:Object, _arg2:String):Object{
var _local3:Class;
var _local4:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance().classToStylesDict[_local3];
return (((_local4)==null) ? null : _local4[_arg2]);
}
private static function getInstance(){
if (_instance == null){
_instance = new (StyleManager);
};
return (_instance);
}
private static function invalidateComponentStyle(_arg1:Class, _arg2:String):void{
var _local3:Dictionary;
var _local4:Object;
var _local5:UIComponent;
_local3 = getInstance().classToInstancesDict[_arg1];
if (_local3 == null){
return;
};
for (_local4 in _local3) {
_local5 = (_local4 as UIComponent);
if (_local5 == null){
} else {
_local5.setSharedStyle(_arg2, getSharedStyle(_local5, _arg2));
};
};
}
private static function invalidateStyle(_arg1:String):void{
var _local2:Dictionary;
var _local3:Object;
_local2 = getInstance().styleToClassesHash[_arg1];
if (_local2 == null){
return;
};
for (_local3 in _local2) {
invalidateComponentStyle(Class(_local3), _arg1);
};
}
public static function registerInstance(_arg1:UIComponent):void{
var inst:StyleManager;
var classDef:Class;
var target:Class;
var defaultStyles:Object;
var styleToClasses:Object;
var n:String;
var instance = _arg1;
inst = getInstance();
classDef = getClassDef(instance);
if (classDef == null){
return;
};
if (inst.classToInstancesDict[classDef] == null){
inst.classToInstancesDict[classDef] = new Dictionary(true);
target = classDef;
while (defaultStyles == null) {
if (target["getStyleDefinition"] != null){
defaultStyles = target["getStyleDefinition"]();
break;
};
try {
target = (instance.loaderInfo.applicationDomain.getDefinition(getQualifiedSuperclassName(target)) as Class);
} catch(err:Error) {
try {
target = (getDefinitionByName(getQualifiedSuperclassName(target)) as Class);
} catch(e:Error) {
defaultStyles = UIComponent.getStyleDefinition();
break;
};
};
};
styleToClasses = inst.styleToClassesHash;
for (n in defaultStyles) {
if (styleToClasses[n] == null){
styleToClasses[n] = new Dictionary(true);
};
styleToClasses[n][classDef] = true;
};
inst.classToDefaultStylesDict[classDef] = defaultStyles;
inst.classToStylesDict[classDef] = {};
};
inst.classToInstancesDict[classDef][instance] = true;
setSharedStyles(instance);
}
public static function getStyle(_arg1:String):Object{
return (getInstance().globalStyles[_arg1]);
}
private static function getSharedStyle(_arg1:UIComponent, _arg2:String):Object{
var _local3:Class;
var _local4:StyleManager;
var _local5:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance();
_local5 = _local4.classToStylesDict[_local3][_arg2];
if (_local5 != null){
return (_local5);
};
_local5 = _local4.globalStyles[_arg2];
if (_local5 != null){
return (_local5);
};
return (_local4.classToDefaultStylesDict[_local3][_arg2]);
}
public static function setStyle(_arg1:String, _arg2:Object):void{
var _local3:Object;
_local3 = getInstance().globalStyles;
if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
_local3[_arg1] = _arg2;
invalidateStyle(_arg1);
}
}
}//package fl.managers
Section 384
//asdas_173 (my_fla.asdas_173)
package my_fla {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public dynamic class asdas_173 extends MovieClip {
public var fbk_btn:SimpleButton;
public function asdas_173(){
addFrameScript(0, frame1);
}
function frame1(){
fbk_btn.addEventListener(MouseEvent.CLICK, fbkFun);
}
public function fbkFun(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://apps.facebook.com/yotreat/"), "_blank");
}
}
}//package my_fla
Section 385
//asdasdf_176 (my_fla.asdasdf_176)
package my_fla {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public dynamic class asdasdf_176 extends MovieClip {
public var twitter_btn:SimpleButton;
public function asdasdf_176(){
addFrameScript(0, frame1);
}
public function twitterFun(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://twitter.com/yotreat"), "_blank");
}
function frame1(){
twitter_btn.addEventListener(MouseEvent.CLICK, twitterFun);
}
}
}//package my_fla
Section 386
//bg_62 (my_fla.bg_62)
package my_fla {
import flash.display.*;
public dynamic class bg_62 extends MovieClip {
public var sObj1:MovieClip;
public var sObj2:MovieClip;
public var sObj4:MovieClip;
public var sObj5:MovieClip;
public var sObj6:MovieClip;
public var sObj7:MovieClip;
public var sObj9:MovieClip;
public var sObj3:MovieClip;
public var sObj8:MovieClip;
public var wrong_mc:MovieClip;
public var panel_mc:MovieClip;
public var sObj10:MovieClip;
public var cont_mc:MovieClip;
public function bg_62(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package my_fla
Section 387
//bgyikujpassghgh_189 (my_fla.bgyikujpassghgh_189)
package my_fla {
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class bgyikujpassghgh_189 extends MovieClip {
public var pauseGame_btn:SimpleButton;
public function bgyikujpassghgh_189(){
addFrameScript(0, frame1, 23, frame24, 48, frame49);
}
function frame1(){
stop();
}
function frame24(){
stop();
pauseGame_btn.addEventListener(MouseEvent.CLICK, MovieClip(root).resumeGame);
}
function frame49(){
stop();
MovieClip(root).PauseBg.visible = false;
gotoAndStop(1);
}
}
}//package my_fla
Section 388
//CVUJHGHJNpassghg_202 (my_fla.CVUJHGHJNpassghg_202)
package my_fla {
import flash.display.*;
public dynamic class CVUJHGHJNpassghg_202 extends MovieClip {
public function CVUJHGHJNpassghg_202(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package my_fla
Section 389
//dfgxbvcpassghg_190 (my_fla.dfgxbvcpassghg_190)
package my_fla {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public dynamic class dfgxbvcpassghg_190 extends MovieClip {
public var logo_mc:MovieClip;
public function dfgxbvcpassghg_190(){
addFrameScript(0, frame1);
}
public function sendWebsite(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.yotreat.com"), "_blank");
}
function frame1(){
logo_mc.buttonMode = true;
logo_mc.addEventListener(MouseEvent.MOUSE_DOWN, sendWebsite);
}
}
}//package my_fla
Section 390
//fcghng_2 (my_fla.fcghng_2)
package my_fla {
import flash.display.*;
import flash.text.*;
public dynamic class fcghng_2 extends MovieClip {
public var loadTxt_txt:TextField;
}
}//package my_fla
Section 391
//fljhflogon_17 (my_fla.fljhflogon_17)
package my_fla {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public dynamic class fljhflogon_17 extends MovieClip {
public var logo_mc:MovieClip;
public function fljhflogon_17(){
addFrameScript(0, frame1);
}
public function sendWebsite(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.yotreat.com/"), "_blank");
}
function frame1(){
logo_mc.buttonMode = true;
logo_mc.addEventListener(MouseEvent.MOUSE_DOWN, sendWebsite);
}
}
}//package my_fla
Section 392
//fljhflogon_lo_18 (my_fla.fljhflogon_lo_18)
package my_fla {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public dynamic class fljhflogon_lo_18 extends MovieClip {
public var logo_mc:MovieClip;
public function fljhflogon_lo_18(){
addFrameScript(0, frame1);
}
public function sendWebsite(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.yotreat.com//"), "_blank");
}
function frame1(){
logo_mc.buttonMode = true;
logo_mc.addEventListener(MouseEvent.MOUSE_DOWN, sendWebsite);
}
}
}//package my_fla
Section 393
//fvgtyj_ti_167 (my_fla.fvgtyj_ti_167)
package my_fla {
import flash.display.*;
public dynamic class fvgtyj_ti_167 extends MovieClip {
public function fvgtyj_ti_167(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package my_fla
Section 394
//gameOverMc_228 (my_fla.gameOverMc_228)
package my_fla {
import fl.controls.*;
import flash.display.*;
import flash.text.*;
public dynamic class gameOverMc_228 extends MovieClip {
public var left_btn:SimpleButton;
public var score10:TextField;
public var pos1:TextField;
public var pos3:TextField;
public var pos4:TextField;
public var pos5:TextField;
public var pos7:TextField;
public var pos2:TextField;
public var pos6:TextField;
public var pos8:TextField;
public var pAgain_btn:SimpleButton;
public var pos9:TextField;
public var name_txt:TextField;
public var name1:TextField;
public var name3:TextField;
public var name4:TextField;
public var name6:TextField;
public var name8:TextField;
public var name2:TextField;
public var name7:TextField;
public var name9:TextField;
public var name5:TextField;
public var score_txt:TextField;
public var gCont_mc:MovieClip;
public var pos10:TextField;
public var countryCombo:ComboBox;
public var submit_btn:SimpleButton;
public var right_btn:SimpleButton;
public var name_mc:MovieClip;
public var score1:TextField;
public var score2:TextField;
public var score3:TextField;
public var score4:TextField;
public var score5:TextField;
public var score6:TextField;
public var score7:TextField;
public var score8:TextField;
public var name10:TextField;
public var score9:TextField;
public var combo_mc:MovieClip;
public function gameOverMc_228(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package my_fla
Section 395
//gvhk_ti_162 (my_fla.gvhk_ti_162)
package my_fla {
import flash.display.*;
public dynamic class gvhk_ti_162 extends MovieClip {
public var pause_btn:SimpleButton;
public function gvhk_ti_162(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package my_fla
Section 396
//gvjhfg_233 (my_fla.gvjhfg_233)
package my_fla {
import flash.display.*;
public dynamic class gvjhfg_233 extends MovieClip {
public function gvjhfg_233(){
addFrameScript(0, frame1, 12, frame13);
}
function frame1(){
stop();
}
function frame13(){
gotoAndPlay(2);
}
}
}//package my_fla
Section 397
//gyulpassasa_188 (my_fla.gyulpassasa_188)
package my_fla {
import flash.display.*;
public dynamic class gyulpassasa_188 extends MovieClip {
public var _mc:MovieClip;
}
}//package my_fla
Section 398
//jkjh_110 (my_fla.jkjh_110)
package my_fla {
import flash.display.*;
public dynamic class jkjh_110 extends MovieClip {
public function jkjh_110(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = false;
this.mouseChildren = false;
}
}
}//package my_fla
Section 399
//lmnk_218 (my_fla.lmnk_218)
package my_fla {
import flash.display.*;
import flash.text.*;
public dynamic class lmnk_218 extends MovieClip {
public var levelScore_txt:TextField;
}
}//package my_fla
Section 400
//loderan_180 (my_fla.loderan_180)
package my_fla {
import flash.display.*;
public dynamic class loderan_180 extends MovieClip {
public var timeMc:MovieClip;
public var cont_mc:MovieClip;
}
}//package my_fla
Section 401
//MainTimeline (my_fla.MainTimeline)
package my_fla {
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.events.*;
import com.greensock.*;
import fl.managers.*;
import flash.text.*;
import com.greensock.easing.*;
import nature.*;
import ascb.util.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var dummyObject:MovieClip;
public var sSoundChannel1:SoundChannel;
public var loaderCont_mc:MovieClip;
public var loaderAttach:Boolean;
public var childObj:Object;
public var nextView:Boolean;
public var userId:String;
public var min:String;
public var sec:String;
public var perct:int;
public var rTime:int;
public var urlString:String;
public var myContextMenu:ContextMenu;
public var i:int;
public var own_site:String;
public var s:int;
public var wrongCnt:Number;
public var clickVar:Boolean;
public var more_btn:SimpleButton;
public var tid:int;
public var objCount:Number;
public var dummy_mc:MovieClip;
public var tim:int;
public var correctCnt:Number;
public var lvlScore_mc:MovieClip;
public var gameId:String;
public var pauseSound:Boolean;
public var start_xml:XML;
public var PauseBg:MovieClip;
public var ref_mc:MovieClip;
public var setPause:Boolean;
public var restrictVar:Boolean;
public var uniqueId:Number;
public var bgSoundObj:bgSound;
public var fm:FocusManager;
public var play_btn:SimpleButton;
public var reduceScore:Number;
public var objArray2:Array;
public var cntLoader:URLLoader;
public var wrong_txt:TextField;
public var cntRequest:URLRequest;
public var back_btn:SimpleButton;
public var next_btn:SimpleButton;
public var menuItem:ContextMenuItem;
public var startLoader:URLLoader;
public var loadFinish:Boolean;
public var correct_txt:TextField;
public var setArray:Array;
public var matched:Boolean;
public var scaleArray:Array;
public var level_btn:SimpleButton;
public var levelArray:Array;
public var stid:Number;
public var levelVar:Boolean;
public var scoreId:int;
public var hScore:highScore;
public var bgChannel:SoundChannel;
public var subSoundChannel:SoundChannel;
public var pauseVar:Boolean;
public var subSoundChannel1:SoundChannel;
public var levelScore:Number;
public var wrong_mc:MovieClip;
public var gameScore_txt:TextField;
public var submitscore:SimpleButton;
public var loaderTim:Number;
public var levels:int;
public var combineVar:Boolean;
public var correct_mc:MovieClip;
public var no_of_objects2:Number;
public var scoreCnt:Number;
public var gPage:MovieClip;
public var timePanel_mc:MovieClip;
public var gameName:String;
public var objArray:Array;
public var timerVar:Number;
public var logo:MovieClip;
public var hide_mc:MovieClip;
public var loginVar:Boolean;
public var txtPerct:Number;
public var timeScore:Number;
public var objPanel_mc:MovieClip;
public var startRequest:URLRequest;
public var gameScore:Number;
public var dispTime:Boolean;
public var bg_mc:MovieClip;
public var nonStopSound:Boolean;
public var loaderBg:preLoader_mc;
public var text_mc:MovieClip;
public var no_of_objects:Number;
public function MainTimeline(){
addFrameScript(0, frame1, 4, frame5, 9, frame10, 10, frame11, 12, frame13, 14, frame15, 19, frame20, 24, frame25, 29, frame30);
}
public function txtVisileFun(){
text_mc.visible = false;
}
public function timeUpFun(){
var _local1:timeUp;
_local1 = new timeUp();
objPanel_mc.timeMc.visible = false;
objPanel_mc.timeMc.time_mc.gotoAndStop(1);
dummyObject.visible = false;
objPanel_mc.cont_mc.addChild((_local1 as MovieClip));
_local1.gotoAndPlay(2);
}
public function submit(_arg1:MouseEvent){
gotoAndStop("highScorePage");
}
public function findObjFun(){
TweenLite.to(objPanel_mc, 0.5, {x:(stage.stageWidth / 2), y:50, onComplete:resetVarFun});
if ((((currentLabel == "gamePage")) && ((scoreCnt == 0)))){
scoreId = setInterval(speedFun, 1000);
};
}
public function addObjectFun(){
childObj.x = -45;
childObj.y = 0;
childObj.scaleX = scaleArray[levels].scale;
childObj.scaleY = scaleArray[levels].scale;
objPanel_mc.addChild((childObj as MovieClip));
dummyObject = (childObj as MovieClip);
setTimeout(findObjFun, 500);
timerVar = setInterval(loaderTimer, 200);
timSound("timeSnd");
}
public function clearListener(){
clearInterval(timerVar);
sSoundChannel1.stop();
clearInterval(tid);
clearInterval(scoreId);
clearTimeout(stid);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, checkMouse);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, listenKey);
stage.removeEventListener(Event.MOUSE_LEAVE, gotoSleep);
}
public function selectObjectFun(){
var _local1:Class;
hide_mc.visible = true;
setPause = true;
_local1 = (getDefinitionByName(("obj" + levels)) as Class);
childObj = new (_local1);
childObj.name = "objSel";
childObj.scale = scaleArray[levels].scale;
childObj.findId = 0;
if (levels == 5){
childObj.gotoAndStop(objArray2[objCount]);
} else {
childObj.gotoAndStop(objArray[objCount]);
};
objPanel_mc.initX = objPanel_mc.x;
objPanel_mc.initY = objPanel_mc.y;
TweenLite.to(objPanel_mc, 0.5, {scaleX:1, scaleY:1, rotation:360, onComplete:addObjectFun});
}
public function stopSound(){
subSoundChannel.stop();
}
public function reachStageFun(_arg1:MovieClip, _arg2:MovieClip){
if (currentLabel == "gamePage"){
TweenLite.to(_arg1, 0.5, {x:_arg2.x, y:_arg2.y, scaleX:1, scaleY:1, onComplete:removeObjFun, onCompleteParams:[_arg1, _arg2]});
};
}
public function playSound(_arg1:String){
var _local2:Class;
var _local3:Object;
if (timePanel_mc.mute_btn.currentFrame == 1){
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
subSoundChannel = _local3.play();
} else {
stopSound();
};
}
public function startLoaderFun(_arg1:Event){
start_xml = new XML(_arg1.target.data);
gameId = start_xml.game_id;
userId = start_xml.uid;
gameName = start_xml.game_url;
trace(("userId=" + userId));
urlString = ("http://www.yotreat.com/game_tracking?nid=" + gameId);
cntRequest = new URLRequest(urlString);
loadFinish = true;
}
public function callPause(){
if (currentLabel == "gamePage"){
if (PauseBg.visible == false){
pauseGameFun();
};
};
}
public function removeFun(_arg1:MovieClip){
_arg1.parent.removeChild(_arg1);
}
function frame5(){
stop();
stage.tabChildren = false;
stage.stageFocusRect = false;
fm = new FocusManager(this);
fm.setFocus(dummy_mc);
SoundMixer.stopAll();
levels = 1;
tid = 0;
tim = 600;
min = "";
sec = "";
rTime = 20;
pauseSound = false;
nonStopSound = false;
gameScore = 0;
play_btn.addEventListener(MouseEvent.MOUSE_DOWN, playFun);
more_btn.addEventListener(MouseEvent.MOUSE_DOWN, moreFun);
}
function frame1(){
uniqueId = 5017;
loadFinish = false;
startLoader = new URLLoader();
own_site = root.loaderInfo.parameters.ownsite;
startRequest = new URLRequest(((("http://www.yotreat.com/gameinfo?swfid=" + uniqueId) + "&ownsite=") + own_site));
startLoader.load(startRequest);
startLoader.addEventListener(Event.COMPLETE, startLoaderFun);
cntLoader = new URLLoader();
stop();
stage.scaleMode = "exactFit";
loaderAttach = true;
loaderBg = new preLoader_mc();
loaderAddFun();
stage.addEventListener(Event.ENTER_FRAME, loadSwf);
playLoaderSnd("loaderSnd");
txtPerct = 0;
perct = 0;
myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
menuItem = new ContextMenuItem("http://www.yotreat.com");
menuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, getAction);
myContextMenu.customItems.push(menuItem);
this.contextMenu = myContextMenu;
subSoundChannel1 = new SoundChannel();
}
function frame10(){
stop();
next_btn.addEventListener(MouseEvent.CLICK, nextFun);
}
function frame13(){
play_btn.addEventListener(MouseEvent.CLICK, playFun1);
}
public function resetLoader(){
if (currentLabel == "gamePage"){
dispTime = false;
sSoundChannel1.stop();
objPanel_mc.x = 300;
objPanel_mc.y = 250;
loaderTim = 0;
objPanel_mc.timeMc.visible = true;
matched = false;
no_of_objects2--;
trace(("no_of_objects2=" + no_of_objects2));
if (no_of_objects2 > 0){
objPanel_mc.timeMc.gotoAndStop(1);
objCount++;
if (dummyObject != null){
dummyObject.parent.removeChild(dummyObject);
dummyObject = null;
};
objPanel_mc.scaleX = 0;
objPanel_mc.scaleY = 0;
objPanel_mc.x = objPanel_mc.initX;
objPanel_mc.y = objPanel_mc.initY;
if (levels != 5){
selectObjectFun();
} else {
hide_mc.visible = false;
clickVar = false;
TweenLite.to(bg_mc.panel_mc, 1, {y:50});
TweenLite.to(bg_mc.cont_mc, 1, {y:0});
if ((((currentLabel == "gamePage")) && ((scoreCnt == 0)))){
scoreId = setInterval(speedFun, 1000);
};
};
} else {
levelVar = true;
clearListener();
if (levels < 5){
gotoAndStop("levelUpPage");
} else {
gameScore = (gameScore + levelScore);
gotoAndStop("gameEndPage");
};
};
};
}
function frame15(){
stop();
setPause = false;
levelArray = new Array("", 6, 6, 8, 8, 5);
scaleArray = new Array("");
scaleArray.push({scale:1.2, xx:100, yy:39, startX:40, ran:10});
scaleArray.push({scale:1, xx:100, yy:39, startX:70, ran:10});
scaleArray.push({scale:1, xx:70, yy:39, startX:40, ran:10});
scaleArray.push({scale:1, xx:100, yy:39, startX:70, ran:10});
scaleArray.push({scale:1.2, xx:110, yy:39, startX:70, ran:10});
no_of_objects = levelArray[levels];
no_of_objects2 = levelArray[levels];
i = 0;
s = 0;
objArray = new Array();
objArray2 = new Array();
setArray = new Array("");
reduceScore = 0;
objCount = 0;
dummyObject = new MovieClip();
levelScore = 0;
dummyObject = null;
objPanel_mc.scaleX = 0;
objPanel_mc.scaleY = 0;
nextView = false;
combineVar = false;
restrictVar = false;
scoreCnt = 0;
pauseVar = false;
levelVar = false;
scoreId = 0;
correctCnt = 0;
wrongCnt = 0;
clickVar = true;
matched = false;
hide_mc.visible = false;
loaderTim = 1;
timerVar = 0;
tid = setInterval(stimer, 1000);
timePanel_mc.mute_btn.buttonMode = true;
timePanel_mc.pause_btn.buttonMode = true;
PauseBg.visible = false;
bg_mc.gotoAndStop(levels);
objArray = randomNumber.generateRandom(1, no_of_objects);
objArray2 = randomNumber.generateRandom(6, 10);
dispTime = false;
objectsFun();
timePanel_mc.time_mc.time_txt.text = tim;
sSoundChannel1 = new SoundChannel();
timePanel_mc.pause_btn.addEventListener(MouseEvent.MOUSE_DOWN, pauseGame);
stage.addEventListener(KeyboardEvent.KEY_DOWN, listenKey);
if (!nonStopSound){
nonStopSound = true;
bgSoundObj = new bgSound();
bgChannel = bgSoundObj.play(0, int.MAX_VALUE);
};
if (pauseSound){
timePanel_mc.mute_btn.gotoAndStop(2);
};
timePanel_mc.mute_btn.addEventListener(MouseEvent.MOUSE_DOWN, muteSound);
subSoundChannel = new SoundChannel();
stid = 0;
stage.addEventListener(Event.MOUSE_LEAVE, gotoSleep);
}
function frame20(){
stop();
level_btn.visible = false;
SoundMixer.stopAll();
clearInterval(scoreId);
wrong_txt.text = String(wrongCnt);
correct_txt.text = String(correctCnt);
if ((((levels == 1)) || ((levels == 3)))){
lvlScore_mc.y = 0x0101;
correct_mc.visible = false;
wrong_mc.visible = false;
correct_txt.visible = false;
wrong_txt.visible = false;
};
if (!pauseSound){
nonStopSound = false;
};
levels++;
if (levelScore < 0){
levelScore = 0;
};
lvlScore_mc.levelScore_txt.text = String(levelScore);
level_btn.addEventListener(MouseEvent.MOUSE_DOWN, levelUpFun);
}
public function checkMouse(_arg1:MouseEvent){
clearTimeout(stid);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, checkMouse);
}
function frame11(){
stop();
back_btn.addEventListener(MouseEvent.CLICK, backFun);
}
public function wrongFun(_arg1:MouseEvent){
var _local2:star;
var _local3:wrongMc;
if (currentLabel == "gamePage"){
if (!clickVar){
trace("wrong");
clickVar = true;
playSound("wrong");
sSoundChannel1.stop();
reduceScore = (reduceScore + 25);
_local2 = new star();
_local2.x = mouseX;
_local2.y = mouseY;
addChild(_local2);
levelScore = (levelScore - 25);
scoreDispFun("-50", mouseX, mouseY);
if ((((((levels == 2)) || ((levels == 4)))) || ((((((levels == 5)) && ((bg_mc.panel_mc.y == -83)))) && (combineVar))))){
combineVar = false;
scoreCnt = 0;
clearInterval(scoreId);
wrongCnt++;
trace(("wrongCnt=" + wrongCnt));
_local3 = new wrongMc();
clearInterval(timerVar);
objPanel_mc.timeMc.visible = false;
objPanel_mc.timeMc.time_mc.gotoAndStop(1);
if (dummyObject != null){
dummyObject.visible = false;
};
objPanel_mc.cont_mc.addChild((_local3 as MovieClip));
hide_mc.visible = true;
setPause = true;
_local3.gotoAndPlay(2);
} else {
if (levels != 5){
clickVar = false;
};
};
};
if ((((levels == 5)) && ((bg_mc.panel_mc.y == 50)))){
clickVar = false;
};
};
}
function frame25(){
stop();
submitscore.visible = false;
SoundMixer.stopAll();
timeScore = Math.round(((120 / tim) * 5000));
gameScore = (gameScore + timeScore);
if (gameScore < 0){
gameScore = 0;
};
gameScore_txt.text = String(gameScore);
submitscore.addEventListener(MouseEvent.CLICK, submit);
}
public function removeObjFun(_arg1:MovieClip, _arg2:MovieClip){
if (currentLabel == "gamePage"){
_arg1.parent.removeChild(_arg1);
if ((((levels == 2)) || ((levels == 4)))){
resetLoader();
} else {
if (levels != 5){
TweenLite.to(_arg2, 1, {y:(_arg2.y - 50), alpha:0, onComplete:clearObjFun, onCompleteParams:[_arg2]});
};
};
if (levels == 5){
clickVar = false;
trace("removeeee");
if ((((no_of_objects <= 0)) && ((no_of_objects2 <= 0)))){
clearListener();
};
if (bg_mc.panel_mc.y == -83){
clickVar = false;
resetLoader();
};
};
};
}
public function muteSound(_arg1:MouseEvent){
muteFunction();
}
function frame30(){
stage.focus = gPage.name_txt;
gPage.score_txt.text = String(gameScore);
SoundMixer.stopAll();
loginVar = true;
if ((((userId == "0")) || ((userId == "")))){
loginVar = false;
} else {
loginVar = true;
};
hScore = new highScore(loginVar, gPage, gameScore, levels, gameId, gameName, own_site);
}
public function addListenerFun(){
s = 1;
while (s <= no_of_objects) {
bg_mc[("sObj" + s)].addEventListener(MouseEvent.MOUSE_DOWN, addInventoryFun);
bg_mc[("sObj" + s)].findId = 0;
s++;
};
if (levels == 5){
s = 6;
while (s <= 10) {
bg_mc[("sObj" + s)].addEventListener(MouseEvent.MOUSE_DOWN, addInventoryFun);
bg_mc[("sObj" + s)].appear = 0;
s++;
};
};
bg_mc.wrong_mc.addEventListener(MouseEvent.MOUSE_DOWN, wrongFun);
if ((((levels == 2)) || ((levels == 4)))){
setTimeout(selectObjectFun, 500);
};
if (scoreCnt == 0){
scoreId = setInterval(speedFun, 1000);
};
}
public function stimer(){
tim--;
timePanel_mc.time_mc.time_txt.text = tim;
if ((((currentLabel == "gamePage")) && ((PauseBg.visible == false)))){
TweenLite.to(timePanel_mc.time_mc, 0.3, {scaleX:0.9, scaleY:0.9, onComplete:timefun});
};
if (tim < 0){
clearListener();
gameScore = (gameScore + levelScore);
gotoAndStop("gameEndPage");
};
}
public function placeObjFun(_arg1:MovieClip){
TweenLite.to(_arg1, 0.5, {x:540, y:40, scaleX:1, scaleY:1});
}
public function wordsDisplayFun(_arg1:Number, _arg2:Number){
var _local3:Number;
var _local4:Class;
var _local5:Object;
objPanel_mc.timeMc.visible = false;
objPanel_mc.timeMc.time_mc.gotoAndStop(1);
if (dummyObject != null){
dummyObject.visible = false;
};
_local3 = Math.round(((Math.random() * 2) + 1));
_local4 = (getDefinitionByName(("word" + _local3)) as Class);
_local5 = new (_local4);
objPanel_mc.cont_mc.addChild((_local5 as MovieClip));
_local5.gotoAndPlay(2);
}
public function moveObjectFun(_arg1:MovieClip, _arg2:MovieClip){
if ((((levels == 1)) || ((levels == 3)))){
if (no_of_objects <= 0){
levelVar = true;
clickVar = true;
};
reachStageFun(_arg1, _arg2);
if ((((currentLabel == "gamePage")) && ((scoreCnt == 0)))){
scoreId = setInterval(speedFun, 1000);
};
} else {
if ((((levels == 2)) || ((levels == 4)))){
trace(("clickVar=" + clickVar));
TweenLite.to(_arg1, 0.7, {y:-35, alpha:0, onComplete:removeObjFun, onCompleteParams:[_arg1, _arg2]});
} else {
if (levels == 5){
TweenLite.to(_arg1, 0.7, {y:-35, alpha:0, onComplete:removeObjFun, onCompleteParams:[_arg1, _arg2]});
};
};
};
if ((((levels == 5)) && (!(nextView)))){
nextView = true;
TweenLite.to(bg_mc.panel_mc, 1, {y:-83});
TweenLite.to(bg_mc.cont_mc, 1, {y:-200});
if (combineVar){
TweenLite.to(_arg2, 1, {y:(_arg2.y - 50), alpha:0, onComplete:clearObjFun, onCompleteParams:[_arg2]});
setTimeout(selectObjectFun, 500);
} else {
TweenLite.to(_arg1, 0.7, {y:-35, alpha:0, onComplete:removeObjFun, onCompleteParams:[_arg1, _arg2]});
};
};
}
public function loaderTimer(){
loaderTim = (loaderTim + 1);
trace(("loaderTim=" + loaderTim));
if (Math.round(loaderTim) > 2){
hide_mc.visible = false;
setPause = false;
};
objPanel_mc.timeMc.time_mc.gotoAndStop(Math.round(loaderTim));
if ((((loaderTim >= 60)) && (!(dispTime)))){
hide_mc.visible = true;
dispTime = true;
timeUpFun();
};
if (loaderTim == 30){
timSound("timeSnd");
};
if (loaderTim >= 65){
clearInterval(timerVar);
scoreCnt = 0;
wrongCnt++;
clearInterval(scoreId);
combineVar = false;
resetLoader();
};
}
public function pauseGame(_arg1:MouseEvent){
pauseGameFun();
}
public function resetVarFun(){
clickVar = false;
}
public function loaderAddFun(){
loaderCont_mc.addChild(loaderBg);
}
public function muteFunction(){
if (timePanel_mc.mute_btn.currentFrame == 1){
sSoundChannel1.stop();
bgChannel.stop();
timePanel_mc.mute_btn.gotoAndStop(2);
pauseSound = true;
} else {
if ((((((levels == 2)) || ((levels == 4)))) || ((levels == 5)))){
if (objPanel_mc.timeMc.time_mc.currentFrame != 1){
if ((((loaderTim < 10)) || ((loaderTim > 32)))){
timSound("timeSnd");
};
};
};
bgChannel = bgSoundObj.play(0, int.MAX_VALUE);
timePanel_mc.mute_btn.gotoAndStop(1);
pauseSound = false;
};
}
public function getAction(_arg1:ContextMenuEvent){
if (!this.loaderInfo.url.match("yotreat")){
navigateToURL(new URLRequest(_arg1.target.caption), "_blank");
};
}
public function gotoSleep(_arg1:Event){
stid = setTimeout(callPause, 3000);
stage.addEventListener(MouseEvent.MOUSE_MOVE, checkMouse);
}
public function backFun(_arg1:MouseEvent){
if (currentFrame == 11){
gotoAndStop(10);
} else {
if (currentFrame == 12){
gotoAndStop(11);
} else {
if (currentFrame == 13){
gotoAndStop(12);
};
};
};
trace(("frame=" + currentFrame));
}
public function pauseGameFun(){
if ((((((timePanel_mc.pause_btn.currentFrame == 1)) && ((PauseBg._mc.currentFrame == 1)))) && (!(levelVar)))){
clearInterval(scoreId);
clearInterval(tid);
pauseVar = true;
timePanel_mc.pause_btn.gotoAndStop(2);
PauseBg.visible = true;
PauseBg._mc.gotoAndPlay(2);
if (timePanel_mc.mute_btn.currentFrame == 1){
bgChannel.stop();
};
sSoundChannel1.stop();
if ((((((levels == 2)) || ((levels == 4)))) || ((levels == 5)))){
if (objPanel_mc.timeMc.time_mc.currentFrame >= 1){
clearInterval(timerVar);
};
};
} else {
if ((((timePanel_mc.pause_btn.currentFrame == 2)) && ((PauseBg._mc.currentFrame == 24)))){
pauseVar = false;
PauseBg._mc.gotoAndPlay(25);
timePanel_mc.pause_btn.gotoAndStop(1);
if (timePanel_mc.mute_btn.currentFrame == 2){
bgChannel.stop();
} else {
bgChannel = bgSoundObj.play(0, int.MAX_VALUE);
};
tid = setInterval(stimer, 1000);
if ((((((levels == 2)) || ((levels == 4)))) || ((levels == 5)))){
if (objPanel_mc.timeMc.time_mc.currentFrame != 1){
timerVar = setInterval(loaderTimer, 200);
if ((((loaderTim < 10)) || ((loaderTim > 32)))){
timSound("timeSnd");
};
};
};
};
};
}
public function sparkFun(_arg1:Number, _arg2:Number){
var _local3:spark;
playSound("twinkle");
_local3 = new spark();
_local3.x = _arg1;
_local3.y = _arg2;
addChild((_local3 as MovieClip));
}
public function timSound(_arg1:String){
var _local2:Class;
var _local3:Object;
if (timePanel_mc.mute_btn.currentFrame == 1){
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
sSoundChannel1 = _local3.play();
};
}
public function playLoaderSnd(_arg1:String){
var _local2:Class;
var _local3:Object;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
subSoundChannel1 = _local3.play();
}
public function scoreDispFun(_arg1:String, _arg2:Number, _arg3:Number){
var _local4:scoreDisp;
_local4 = new scoreDisp();
_local4.x = _arg2;
_local4.y = _arg3;
_local4._txt.text = String(_arg1);
addChild(_local4);
TweenLite.to(_local4, 1.6, {y:(_local4.y - 50), alpha:0, onComplete:scoreRemoveFun, onCompleteParams:[_local4]});
}
public function nextFun(_arg1:MouseEvent){
if (currentFrame == 10){
gotoAndStop(11);
} else {
if (currentFrame == 11){
gotoAndStop(12);
} else {
if (currentFrame == 12){
gotoAndStop(13);
};
};
};
trace(("next=" + currentFrame));
}
public function scoreFun(_arg1:MovieClip, _arg2:Number, _arg3:Number){
if ((((((((levels == 2)) && (matched))) || ((((levels == 4)) && (matched))))) || ((((((levels == 5)) && ((bg_mc.panel_mc.y == -83)))) && (matched))))){
if (objPanel_mc.timeMc.time_mc.currentFrame > 40){
levelScore = (levelScore - 10);
scoreDispFun("-10", objPanel_mc.x, (objPanel_mc.y - 30));
} else {
if ((((objPanel_mc.timeMc.time_mc.currentFrame > 10)) && ((objPanel_mc.timeMc.time_mc.currentFrame < 40)))){
levelScore = (levelScore + 5);
scoreDispFun("+5", objPanel_mc.x, (objPanel_mc.y - 30));
} else {
if (objPanel_mc.timeMc.time_mc.currentFrame < 10){
levelScore = (levelScore + 10);
scoreDispFun("+10", objPanel_mc.x, (objPanel_mc.y - 30));
};
};
};
} else {
if ((((((((levels == 5)) && ((bg_mc.panel_mc.y == 50)))) || ((levels == 1)))) || ((levels == 3)))){
if (scoreCnt >= 20){
levelScore = (levelScore - 10);
scoreDispFun("very Lazy -10", _arg2, _arg3);
} else {
if ((((scoreCnt > 15)) && ((scoreCnt < 20)))){
levelScore = (levelScore - 5);
scoreDispFun("Lazy +5", _arg2, _arg3);
} else {
if ((((scoreCnt > 10)) && ((scoreCnt < 15)))){
levelScore = (levelScore + 5);
scoreDispFun("HyperActive +5", _arg2, _arg3);
} else {
if ((((((scoreCnt > 5)) && ((scoreCnt < 10)))) || ((scoreCnt < 5)))){
levelScore = (levelScore + 10);
scoreDispFun("Speedy +10", _arg2, _arg3);
};
};
};
};
};
};
}
public function timefun(){
if ((((currentLabel == "gamePage")) && ((PauseBg.visible == false)))){
TweenLite.to(timePanel_mc.time_mc, 0.3, {scaleX:0.7, scaleY:0.7});
};
}
public function clearObjFun(_arg1:MovieClip){
if (no_of_objects > 0){
clickVar = false;
};
_arg1.parent.removeChild(_arg1);
if ((((no_of_objects <= 0)) && ((bg_mc.cont_mc.numChildren == 0)))){
levelVar = true;
clearListener();
if (levels < 5){
gotoAndStop("levelUpPage");
};
};
}
public function playFun(_arg1:MouseEvent){
cntLoader.load(cntRequest);
gotoAndStop("instructionPage");
}
public function listenKey(_arg1:KeyboardEvent){
if ((((_arg1.keyCode == 80)) || ((_arg1.keyCode == 112)))){
if (hide_mc.visible == false){
pauseGameFun();
};
} else {
if ((((_arg1.keyCode == 77)) || ((_arg1.keyCode == 109)))){
if (PauseBg.visible == false){
muteFunction();
};
};
};
}
public function loadSwf(_arg1:Event){
perct = Math.round(((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 278));
txtPerct = Math.round(((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100));
text_mc.loadTxt_txt.text = String((txtPerct + "%"));
loaderBg.y = perct;
trace(("perct=" + perct));
if ((((perct >= 278)) && ((txtPerct == 100)))){
loaderBg.flash_mc.gotoAndPlay(2);
playLoaderSnd("loaderEnd");
TweenLite.to(loaderBg, 2, {y:615, onComplete:txtVisileFun});
stage.removeEventListener(Event.ENTER_FRAME, loadSwf);
setTimeout(callGameFun, 3000);
trace("callHere");
};
}
public function resumeGame(_arg1:MouseEvent){
pauseGameFun();
}
public function objectsFun(){
var _local1:Class;
var _local2:Object;
if ((((((levels == 1)) || ((levels == 3)))) || ((levels == 5)))){
clickVar = false;
i = 1;
while (i <= no_of_objects) {
_local1 = (getDefinitionByName(("obj" + levels)) as Class);
_local2 = new (_local1);
bg_mc.cont_mc.addChild((_local2 as MovieClip));
setArray.push(_local2);
_local2.scaleX = scaleArray[levels].scale;
_local2.scaleY = scaleArray[levels].scale;
_local2.x = (scaleArray[levels].startX + ((i - 1) * scaleArray[levels].xx));
_local2.y = scaleArray[levels].yy;
_local2.name = ("object" + objArray[(i - 1)]);
_local2.gotoAndStop(objArray[(i - 1)]);
i++;
};
};
setTimeout(addListenerFun, 200);
}
public function addInventoryFun(_arg1:MouseEvent){
var _local2:MovieClip;
var _local3:Number;
sSoundChannel1.stop();
_local3 = NumberUtilities.getInstanceId(_arg1.currentTarget.name);
if ((((((((levels == 1)) && ((_arg1.currentTarget.findId == 0)))) || ((((levels == 3)) && ((_arg1.currentTarget.findId == 0)))))) || ((((((((levels == 5)) && ((bg_mc.panel_mc.y == 50)))) && ((_arg1.currentTarget.findId == 0)))) && (!(combineVar)))))){
trace("clickk");
if (levels == 5){
hide_mc.visible = true;
setPause = true;
};
if (!combineVar){
clickVar = true;
};
trace("correct5");
_arg1.currentTarget.findId = 1;
playSound("jump");
combineVar = true;
nextView = false;
no_of_objects--;
if (no_of_objects <= 0){
clickVar = true;
};
trace(("no_of_objects=" + no_of_objects));
_local2 = (bg_mc.cont_mc.getChildByName(("object" + _local3)) as MovieClip);
levelScore = (levelScore + 250);
scoreFun((_arg1.currentTarget as MovieClip), _arg1.currentTarget.x, _arg1.currentTarget.y);
scoreDispFun("+250", _arg1.currentTarget.x, (_arg1.currentTarget.y - 30));
_arg1.currentTarget.parent.setChildIndex(_arg1.currentTarget, (_arg1.currentTarget.parent.numChildren - 1));
sparkFun(_arg1.currentTarget.x, _arg1.currentTarget.y);
TweenLite.to(_arg1.currentTarget, 0.6, {scaleX:1.2, scaleY:1.2, ease:Back.easeOut, onComplete:moveObjectFun, onCompleteParams:[_arg1.currentTarget, _local2]});
} else {
if ((((((levels == 2)) && (!(clickVar)))) || ((((levels == 4)) && (!(clickVar)))))){
trace(("add=" + clickVar));
if (_local3 == objArray[objCount]){
hide_mc.visible = true;
setPause = true;
matched = true;
clickVar = true;
correctCnt++;
_arg1.currentTarget.findId = 1;
clearInterval(timerVar);
sSoundChannel1.stop();
playSound("jump");
scoreDispFun("+250", _arg1.currentTarget.x, (_arg1.currentTarget.y - 30));
wordsDisplayFun(objPanel_mc.x, objPanel_mc.y);
levelScore = (levelScore + 250);
sparkFun(_arg1.currentTarget.x, _arg1.currentTarget.y);
TweenLite.to(_arg1.currentTarget, 0.6, {scaleX:1.2, scaleY:1.2, ease:Back.easeOut, onComplete:moveObjectFun, onCompleteParams:[_arg1.currentTarget, _local2]});
} else {
hide_mc.visible = true;
setPause = true;
sSoundChannel1.stop();
playSound("wrong");
clickVar = true;
clearInterval(timerVar);
levelScore = (levelScore - 25);
scoreDispFun("-50", mouseX, mouseY);
wrongCnt++;
resetLoader();
};
scoreFun((_arg1.currentTarget as MovieClip), _arg1.currentTarget.x, _arg1.currentTarget.y);
};
};
if ((((((levels == 5)) && ((_arg1.currentTarget.appear == 0)))) && ((bg_mc.panel_mc.y == 50)))){
sSoundChannel1.stop();
playSound("wrong");
levelScore = (levelScore - 25);
scoreDispFun("-50", mouseX, mouseY);
};
if ((((((levels == 5)) && ((bg_mc.panel_mc.y == -83)))) && (combineVar))){
clearInterval(timerVar);
scoreFun((_arg1.currentTarget as MovieClip), _arg1.currentTarget.x, _arg1.currentTarget.y);
if (_local3 == objArray2[objCount]){
combineVar = false;
matched = true;
clickVar = true;
_arg1.currentTarget.findId = 1;
scoreDispFun("+250", _arg1.currentTarget.x, (_arg1.currentTarget.y - 30));
wordsDisplayFun(objPanel_mc.x, objPanel_mc.y);
sSoundChannel1.stop();
playSound("jump");
levelScore = (levelScore + 250);
sparkFun(_arg1.currentTarget.x, _arg1.currentTarget.y);
TweenLite.to(_arg1.currentTarget, 0.6, {scaleX:1.2, scaleY:1.2, ease:Back.easeOut, onComplete:moveObjectFun, onCompleteParams:[_arg1.currentTarget, _local2]});
} else {
if (bg_mc.panel_mc.y == -83){
sSoundChannel1.stop();
playSound("wrong");
combineVar = false;
levelScore = (levelScore - 25);
scoreDispFun("-50", mouseX, mouseY);
resetLoader();
};
};
if (no_of_objects2 <= 0){
levelVar = true;
};
};
scoreCnt = 0;
clearInterval(scoreId);
}
public function levelUpFun(_arg1:MouseEvent){
gotoAndStop("gamePage");
}
public function playFun1(_arg1:MouseEvent){
MochiBot.track(this, "45ce5f65");
gotoAndStop("gamePage");
}
public function scoreRemoveFun(_arg1:MovieClip){
_arg1.parent.removeChild(_arg1);
}
public function callGameFun(){
gotoAndStop("startPage");
}
public function moreFun(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.yotreat.com/"), "_blank");
}
public function speedFun(){
scoreCnt++;
}
}
}//package my_fla
Section 402
//sparkaa_158 (my_fla.sparkaa_158)
package my_fla {
import flash.display.*;
public dynamic class sparkaa_158 extends MovieClip {
public function sparkaa_158(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
this.parent.removeChild(this);
}
}
}//package my_fla
Section 403
//Symbol14_geaa_222 (my_fla.Symbol14_geaa_222)
package my_fla {
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Symbol14_geaa_222 extends MovieClip {
public var twitter_btn:SimpleButton;
public function Symbol14_geaa_222(){
addFrameScript(80, frame81, 83, frame84);
}
function frame84(){
stop();
MovieClip(root).submitscore.visible = true;
}
function frame81(){
twitter_btn.addEventListener(MouseEvent.CLICK, twitterFun1);
}
public function twitterFun1(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://twitter.com/yotreat"), "_blank");
}
}
}//package my_fla
Section 404
//Symbol14_lvl_213 (my_fla.Symbol14_lvl_213)
package my_fla {
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Symbol14_lvl_213 extends MovieClip {
public var twitter_btn:SimpleButton;
public function Symbol14_lvl_213(){
addFrameScript(80, frame81, 83, frame84);
}
public function twitterFun(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://twitter.com/yotreat"), "_blank");
}
function frame84(){
stop();
MovieClip(root).level_btn.visible = true;
}
function frame81(){
twitter_btn.addEventListener(MouseEvent.CLICK, twitterFun);
}
}
}//package my_fla
Section 405
//Symbol2_l_280 (my_fla.Symbol2_l_280)
package my_fla {
import flash.display.*;
public dynamic class Symbol2_l_280 extends MovieClip {
public function Symbol2_l_280(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package my_fla
Section 406
//Symbol6_l_282 (my_fla.Symbol6_l_282)
package my_fla {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public dynamic class Symbol6_l_282 extends MovieClip {
public var yoLogo_mc:MovieClip;
public function Symbol6_l_282(){
addFrameScript(0, frame1);
}
function frame1(){
yoLogo_mc.addEventListener(MouseEvent.MOUSE_DOWN, yoLogoFun);
}
public function yoLogoFun(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.yotreat.com"), "_blank");
}
}
}//package my_fla
Section 407
//time_172 (my_fla.time_172)
package my_fla {
import flash.display.*;
import flash.text.*;
public dynamic class time_172 extends MovieClip {
public var time_txt:TextField;
}
}//package my_fla
Section 408
//timePane_160 (my_fla.timePane_160)
package my_fla {
import flash.display.*;
public dynamic class timePane_160 extends MovieClip {
public var pannel:MovieClip;
public var mute_btn:MovieClip;
public var time_mc:MovieClip;
public var pause_btn:MovieClip;
}
}//package my_fla
Section 409
//vfgjmh_in_47 (my_fla.vfgjmh_in_47)
package my_fla {
import flash.display.*;
public dynamic class vfgjmh_in_47 extends MovieClip {
public var time_mc:MovieClip;
}
}//package my_fla
Section 410
//vfgjmhloap_183 (my_fla.vfgjmhloap_183)
package my_fla {
import flash.display.*;
public dynamic class vfgjmhloap_183 extends MovieClip {
public var time_mc:MovieClip;
}
}//package my_fla
Section 411
//xcbxcbloap_184 (my_fla.xcbxcbloap_184)
package my_fla {
import flash.display.*;
public dynamic class xcbxcbloap_184 extends MovieClip {
public function xcbxcbloap_184(){
addFrameScript(0, frame1, 60, frame61);
}
function frame1(){
stop();
}
function frame61(){
stop();
}
}
}//package my_fla
Section 412
//randomNumber (nature.randomNumber)
package nature {
public class randomNumber {
public static function generateRandom(_arg1:int, _arg2:int):Array{
var _local3:int;
var _local4:Array;
var _local5:Array;
var _local6:int;
var _local7:int;
_local3 = 0;
_local4 = new Array();
_local5 = new Array();
_local6 = (_arg2 - _arg1);
_local3 = _arg1;
while (_local3 <= _arg2) {
_local5.push(_local3);
_local3++;
};
_local3 = _arg1;
while (_local3 <= _arg2) {
_local7 = Math.round((Math.random() * (_local5.length - 1)));
_local4.push(_local5[_local7]);
_local5.splice(_local7, 1);
_local3++;
};
return (_local4);
}
public static function randomize(_arg1:Array):Array{
var _local2:int;
var _local3:Array;
var _local4:Array;
var _local5:int;
_local2 = 0;
if (_arg1[0] == ""){
_local2 = 1;
};
_local3 = new Array();
_local4 = generateRandom(_local2, (_arg1.length - 1));
_local5 = 0;
while (_local5 < _local4.length) {
_local3.push(_arg1[_local4[_local5]]);
_local5++;
};
return (_local3);
}
}
}//package nature
Section 413
//bgSound (bgSound)
package {
import flash.media.*;
public dynamic class bgSound extends Sound {
}
}//package
Section 414
//CellRenderer_disabledSkin (CellRenderer_disabledSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_disabledSkin extends MovieClip {
}
}//package
Section 415
//CellRenderer_downSkin (CellRenderer_downSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_downSkin extends MovieClip {
}
}//package
Section 416
//CellRenderer_overSkin (CellRenderer_overSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_overSkin extends MovieClip {
}
}//package
Section 417
//CellRenderer_selectedDisabledSkin (CellRenderer_selectedDisabledSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_selectedDisabledSkin extends MovieClip {
}
}//package
Section 418
//CellRenderer_selectedDownSkin (CellRenderer_selectedDownSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_selectedDownSkin extends MovieClip {
}
}//package
Section 419
//CellRenderer_selectedOverSkin (CellRenderer_selectedOverSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_selectedOverSkin extends MovieClip {
}
}//package
Section 420
//CellRenderer_selectedUpSkin (CellRenderer_selectedUpSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_selectedUpSkin extends MovieClip {
}
}//package
Section 421
//CellRenderer_upSkin (CellRenderer_upSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_upSkin extends MovieClip {
}
}//package
Section 422
//ComboBox_disabledSkin (ComboBox_disabledSkin)
package {
import flash.display.*;
public dynamic class ComboBox_disabledSkin extends MovieClip {
}
}//package
Section 423
//ComboBox_downSkin (ComboBox_downSkin)
package {
import flash.display.*;
public dynamic class ComboBox_downSkin extends MovieClip {
}
}//package
Section 424
//ComboBox_overSkin (ComboBox_overSkin)
package {
import flash.display.*;
public dynamic class ComboBox_overSkin extends MovieClip {
}
}//package
Section 425
//ComboBox_upSkin (ComboBox_upSkin)
package {
import flash.display.*;
public dynamic class ComboBox_upSkin extends MovieClip {
}
}//package
Section 426
//focusRectSkin (focusRectSkin)
package {
import flash.display.*;
public dynamic class focusRectSkin extends MovieClip {
}
}//package
Section 427
//highScore (highScore)
package {
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.events.*;
import com.greensock.easing.*;
public class highScore extends MovieClip {
var movie_mc:thumbMc;
var nameURL:String;// = ""
var rightMove:Boolean;// = false
var imageRand:Array;
var startY:Number;// = 0
var gameCount:int;// = 0
var scoreList:Number;// = 0
var gLevel:int;// = 0
var i:int;// = 0
var startMov:Number;// = 110
var highScorePath:String;// = ""
var leftMove:Boolean;// = false
var gameScoreArr:Array;
var gPage:MovieClip;
var gameData:Array;
var gameScore:Number;// = 0
var totalGames:Number;// = 0
var gId:String;// = ""
var userName:String;// = ""
public function highScore(_arg1:Boolean, _arg2:MovieClip, _arg3, _arg4:int, _arg5:String, _arg6:String, _arg7:String){
var _local8:URLLoader;
var _local9:URLRequest;
var _local10:Array;
var _local11:Number;
imageRand = new Array();
totalGames = 0;
gameCount = 0;
gameData = new Array();
gPage = new MovieClip();
gLevel = 0;
gId = "";
highScorePath = "";
userName = "";
gameScore = 0;
rightMove = false;
scoreList = 0;
leftMove = false;
gameScoreArr = new Array();
nameURL = "";
i = 0;
startMov = 110;
startY = 0;
super();
nameURL = _arg6;
gId = _arg5;
trace(("gId=" + gId));
gPage = _arg2;
gameScore = _arg3;
gPage.right_btn.visible = false;
gPage.left_btn.visible = false;
_local8 = new URLLoader();
_local9 = new URLRequest(((((("http://www.yotreat.com/score/submit?gameid=" + gId) + "&score=") + gameScore) + "&ownsite=") + _arg7));
_local8.load(_local9);
_local8.addEventListener(Event.COMPLETE, getXml);
_local10 = new Array("Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Darussalam", "Bulgaria", "Burkina", "Faso", "Burma (Myanmar)", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape", "Verde", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo", "Costa Rica", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "East", "Timor", "Egypt", "Salvador", "England", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Great Britain", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea (North)", "Korea (South)", "Kosovo", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia", "Moldova", "Monaco", "Mongolia", "Montenegro", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Northern Ireland", "Oman", "Pakistan", "Palau", "Palestinian", "Panama", "Papua new Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russia", "Rwanda", "Nevis", "Lucia Vincent", "Arabia", "Scotland", "Senegal", "Serbia", "Seychelles", "Sierra", "Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "Spain", "Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Togo", "Tonga", "Trinidad", "Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "Uruguay", "Uzbekistan", "Vanuatu", "Vatican", "Venezuela", "Vietnam", "Western Sahara*", "Wales", "Yemen", "Zaire", "Zambia", "Zimbabwe");
_local10.sort();
if (_arg1){
startY = 385;
gPage.gotoAndStop(2);
} else {
startY = 92;
gPage.gotoAndStop(1);
gPage.countryCombo.addItem({label:"All Countries"});
_local11 = 0;
while (_local11 < _local10.length) {
gPage.countryCombo.addItem({label:_local10[_local11]});
_local11++;
};
gPage.name_txt.addEventListener(Event.CHANGE, nameFun);
gPage.submit_btn.addEventListener(MouseEvent.MOUSE_DOWN, sendScore);
gPage.pAgain_btn.addEventListener(MouseEvent.MOUSE_DOWN, playGame);
gPage.countryCombo.addEventListener(Event.CHANGE, comboFun);
};
setTimeout(createMovieFun, 100, 1, 3);
}
function rightMoveOut(_arg1:MouseEvent){
rightMove = false;
gPage.gCont_mc.removeEventListener(Event.ENTER_FRAME, galleryMoveFun);
}
function gotoGame(_arg1:MouseEvent){
navigateToURL(new URLRequest(_arg1.currentTarget.urlPath), "_blank");
}
function loadImage(_arg1:Event){
_arg1.target.content.width = 115;
_arg1.target.content.height = 75;
gPage.gCont_mc.getChildAt(gameCount).gameName_txt.text = String(gameData[gameCount].gName);
gPage.gCont_mc.getChildAt(gameCount).imageCont_mc.addChild(_arg1.target.content);
gPage.gCont_mc.getChildAt(gameCount).urlPath = gameData[gameCount].gPath;
gPage.gCont_mc.getChildAt(gameCount).addEventListener(MouseEvent.MOUSE_DOWN, gotoGame);
gameCount++;
if ((((gameCount < 10)) && ((gameCount < totalGames)))){
loadImages(gameCount);
};
}
function comboFun(_arg1:Event){
gPage.combo_mc.gotoAndStop(1);
}
function loadImages(_arg1:int){
var _local2:Loader;
_local2 = new Loader();
_local2.load(new URLRequest(gameData[_arg1].iPath));
_local2.contentLoaderInfo.addEventListener(Event.COMPLETE, loadImage);
}
function nameFun(_arg1:Event){
if (((!((gPage.name_txt.text == ""))) && (!((gPage.name_txt.text == null))))){
gPage.name_mc.gotoAndStop(1);
};
}
function rightMoveFun(_arg1:MouseEvent){
rightMove = true;
gPage.gCont_mc.addEventListener(Event.ENTER_FRAME, galleryMoveFun);
}
function galleryMoveFun(_arg1:Event){
if (((leftMove) && (gPage.gCont_mc.hitTestObject(gPage.left_btn)))){
gPage.right_btn.visible = true;
gPage.gCont_mc.x = (gPage.gCont_mc.x + 9);
} else {
if (!rightMove){
gPage.left_btn.visible = false;
};
};
if (((rightMove) && (gPage.gCont_mc.hitTestObject(gPage.right_btn)))){
gPage.left_btn.visible = true;
gPage.gCont_mc.x = (gPage.gCont_mc.x - 9);
} else {
if (!leftMove){
gPage.right_btn.visible = false;
};
};
}
function loadScoreList(){
var _local1:*;
_local1 = 0;
while (_local1 < scoreList) {
gPage[("pos" + (_local1 + 1))].text = String(gameScoreArr[_local1].position);
gPage[("name" + (_local1 + 1))].text = String(gameScoreArr[_local1].uName);
gPage[("score" + (_local1 + 1))].text = String(gameScoreArr[_local1].uScore);
_local1++;
};
}
function createMovieFun(_arg1:Number, _arg2:Number){
i = _arg1;
while (i <= _arg2) {
movie_mc = new thumbMc();
movie_mc.x = (startMov + ((i - 1) * 130));
movie_mc.y = startY;
gPage.gCont_mc.addChild(movie_mc);
trace(("xpos=" + movie_mc.x));
i++;
};
}
function hideMsgBox(_arg1:MouseEvent){
gPage.msgBox_mc.visible = false;
}
function generateRandom(_arg1:int):Array{
var _local2:int;
var _local3:Array;
var _local4:Array;
var _local5:int;
_local2 = 0;
_local3 = new Array();
_local4 = new Array();
_local2 = 0;
while (_local2 < _arg1) {
_local4.push(_local2);
_local2++;
};
_local2 = 0;
while (_local2 < _arg1) {
_local5 = Math.round((Math.random() * (_local4.length - 1)));
if (_local5 == -1){
_local5 = 0;
};
_local3.push(_local4[_local5]);
_local4.splice(_local5, 1);
_local2++;
};
trace(_local3);
return (_local3);
}
function playGame(_arg1:MouseEvent){
MovieClip(gPage.root).gotoAndStop("startPage");
}
function leftMoveOut(_arg1:MouseEvent){
leftMove = false;
gPage.gCont_mc.removeEventListener(Event.ENTER_FRAME, galleryMoveFun);
}
function postFun(){
navigateToURL(new URLRequest(("http://www.yotreat.com/highscores/" + nameURL)));
}
function handleComplete(_arg1:Event){
var _local2:String;
var _local3:URLLoader;
_local2 = String(_arg1.target);
_local3 = new URLLoader(new URLRequest(_local2));
}
function getXml(_arg1:Event){
var _local2:XML;
var _local3:int;
var _local4:int;
_local2 = XML(_arg1.target.data);
totalGames = _local2.similargames.game.length();
trace(("totalGames=" + totalGames));
trace(("totalGame=" + _local2.highscores.game.length()));
scoreList = _local2.highscores.game.length();
_local3 = 0;
while (_local3 < totalGames) {
gameData.push({gName:_local2.similargames.game[_local3].title, gPath:_local2.similargames.game[_local3].url, iPath:_local2.similargames.game[_local3].thump});
_local3++;
};
_local4 = 0;
while (_local4 < scoreList) {
gameScoreArr.push({position:_local2.highscores.game[_local4].user_rank, uName:_local2.highscores.game[_local4].user_name, uScore:_local2.highscores.game[_local4].user_score});
trace(("pos=" + gameScoreArr[_local4].position));
_local4++;
};
imageRand = generateRandom(totalGames);
if (gPage.currentFrame == 2){
loadScoreList();
};
if (totalGames > 3){
gPage.right_btn.visible = true;
};
if ((((totalGames > 3)) && ((totalGames < 10)))){
createMovieFun(4, totalGames);
} else {
if (totalGames >= 10){
createMovieFun(4, 10);
};
};
gPage.right_btn.addEventListener(MouseEvent.MOUSE_OVER, rightMoveFun);
gPage.right_btn.addEventListener(MouseEvent.MOUSE_OUT, rightMoveOut);
gPage.left_btn.addEventListener(MouseEvent.MOUSE_OVER, leftMoveFun);
gPage.left_btn.addEventListener(MouseEvent.MOUSE_OUT, leftMoveOut);
loadImages(gameCount);
}
function leftMoveFun(_arg1:MouseEvent){
leftMove = true;
gPage.gCont_mc.addEventListener(Event.ENTER_FRAME, galleryMoveFun);
}
function sendScore(_arg1:MouseEvent){
var _local2:String;
var _local3:URLVariables;
var _local4:URLRequest;
var _local5:Loader;
userName = gPage.name_txt.text;
trace((("text=" + gPage.name_txt.text) + "*"));
if ((((userName == null)) || ((userName == "")))){
trace("Enter Name");
gPage.name_mc.gotoAndPlay(2);
};
if (gPage.countryCombo.selectedItem.label == "All Countries"){
gPage.combo_mc.gotoAndPlay(2);
};
if (((((!((userName == null))) && (!((userName == ""))))) && (!((gPage.countryCombo.selectedItem.label == "All Countries"))))){
_local2 = "http://www.yotreat.com/score/submit";
_local3 = new URLVariables();
_local3.score = gameScore;
_local3.gameid = gId;
_local3.name = userName;
_local3.country = gPage.countryCombo.selectedItem.label;
_local4 = new URLRequest(_local2);
_local4.data = _local3;
_local5 = new Loader();
_local5.addEventListener(Event.COMPLETE, handleComplete);
_local5.load(_local4);
MovieClip(gPage.root).gotoAndStop("startPage");
setTimeout(postFun, 2000);
};
}
}
}//package
Section 428
//jump (jump)
package {
import flash.media.*;
public dynamic class jump extends Sound {
}
}//package
Section 429
//List_skin (List_skin)
package {
import flash.display.*;
public dynamic class List_skin extends MovieClip {
}
}//package
Section 430
//loaderEnd (loaderEnd)
package {
import flash.media.*;
public dynamic class loaderEnd extends Sound {
}
}//package
Section 431
//loaderSnd (loaderSnd)
package {
import flash.media.*;
public dynamic class loaderSnd extends Sound {
}
}//package
Section 432
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 433
//obj1 (obj1)
package {
import flash.display.*;
public dynamic class obj1 extends MovieClip {
public var sObj1:MovieClip;
public function obj1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 434
//obj2 (obj2)
package {
import flash.display.*;
public dynamic class obj2 extends MovieClip {
public function obj2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 435
//obj3 (obj3)
package {
import flash.display.*;
public dynamic class obj3 extends MovieClip {
public function obj3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 436
//obj4 (obj4)
package {
import flash.display.*;
public dynamic class obj4 extends MovieClip {
public function obj4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 437
//obj5 (obj5)
package {
import flash.display.*;
public dynamic class obj5 extends MovieClip {
public function obj5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 438
//preLoader_mc (preLoader_mc)
package {
import flash.display.*;
public dynamic class preLoader_mc extends MovieClip {
public var flash_mc:MovieClip;
}
}//package
Section 439
//santalaugh (santalaugh)
package {
import flash.media.*;
public dynamic class santalaugh extends Sound {
}
}//package
Section 440
//scoreDisp (scoreDisp)
package {
import flash.display.*;
import flash.text.*;
public dynamic class scoreDisp extends MovieClip {
public var _txt:TextField;
public function scoreDisp(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package
Section 441
//ScrollArrowDown_disabledSkin (ScrollArrowDown_disabledSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_disabledSkin extends MovieClip {
}
}//package
Section 442
//ScrollArrowDown_downSkin (ScrollArrowDown_downSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_downSkin extends MovieClip {
}
}//package
Section 443
//ScrollArrowDown_overSkin (ScrollArrowDown_overSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_overSkin extends MovieClip {
}
}//package
Section 444
//ScrollArrowDown_upSkin (ScrollArrowDown_upSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_upSkin extends MovieClip {
}
}//package
Section 445
//ScrollArrowUp_disabledSkin (ScrollArrowUp_disabledSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_disabledSkin extends MovieClip {
}
}//package
Section 446
//ScrollArrowUp_downSkin (ScrollArrowUp_downSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_downSkin extends MovieClip {
}
}//package
Section 447
//ScrollArrowUp_overSkin (ScrollArrowUp_overSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_overSkin extends MovieClip {
}
}//package
Section 448
//ScrollArrowUp_upSkin (ScrollArrowUp_upSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_upSkin extends MovieClip {
}
}//package
Section 449
//ScrollBar_thumbIcon (ScrollBar_thumbIcon)
package {
import flash.display.*;
public dynamic class ScrollBar_thumbIcon extends MovieClip {
}
}//package
Section 450
//ScrollThumb_downSkin (ScrollThumb_downSkin)
package {
import flash.display.*;
public dynamic class ScrollThumb_downSkin extends MovieClip {
}
}//package
Section 451
//ScrollThumb_overSkin (ScrollThumb_overSkin)
package {
import flash.display.*;
public dynamic class ScrollThumb_overSkin extends MovieClip {
}
}//package
Section 452
//ScrollThumb_upSkin (ScrollThumb_upSkin)
package {
import flash.display.*;
public dynamic class ScrollThumb_upSkin extends MovieClip {
}
}//package
Section 453
//ScrollTrack_skin (ScrollTrack_skin)
package {
import flash.display.*;
public dynamic class ScrollTrack_skin extends MovieClip {
}
}//package
Section 454
//spark (spark)
package {
import flash.display.*;
public dynamic class spark extends MovieClip {
public function spark(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
this.parent.removeChild(this);
}
}
}//package
Section 455
//star (star)
package {
import flash.display.*;
public dynamic class star extends MovieClip {
public function star(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
this.parent.removeChild(this);
}
}
}//package
Section 456
//TextInput_disabledSkin (TextInput_disabledSkin)
package {
import flash.display.*;
public dynamic class TextInput_disabledSkin extends MovieClip {
}
}//package
Section 457
//TextInput_upSkin (TextInput_upSkin)
package {
import flash.display.*;
public dynamic class TextInput_upSkin extends MovieClip {
}
}//package
Section 458
//thumbMc (thumbMc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class thumbMc extends MovieClip {
public var imageLoader_mc:MovieClip;
public var gameName_txt:TextField;
public var imageCont_mc:MovieClip;
}
}//package
Section 459
//timerSnd (timerSnd)
package {
import flash.media.*;
public dynamic class timerSnd extends Sound {
}
}//package
Section 460
//timeSnd (timeSnd)
package {
import flash.media.*;
public dynamic class timeSnd extends Sound {
}
}//package
Section 461
//timeUp (timeUp)
package {
import flash.display.*;
public dynamic class timeUp extends MovieClip {
public function timeUp(){
addFrameScript(0, frame1, 21, frame22);
}
function frame1(){
stop();
}
function frame22(){
stop();
this.parent.removeChild(this);
}
}
}//package
Section 462
//twinkle (twinkle)
package {
import flash.media.*;
public dynamic class twinkle extends Sound {
}
}//package
Section 463
//word1 (word1)
package {
import flash.display.*;
public dynamic class word1 extends MovieClip {
public function word1(){
addFrameScript(0, frame1, 22, frame23);
}
function frame1(){
stop();
}
function frame23(){
stop();
this.parent.removeChild(this);
}
}
}//package
Section 464
//word2 (word2)
package {
import flash.display.*;
public dynamic class word2 extends MovieClip {
public function word2(){
addFrameScript(0, frame1, 22, frame23);
}
function frame1(){
stop();
}
function frame23(){
stop();
this.parent.removeChild(this);
}
}
}//package
Section 465
//word3 (word3)
package {
import flash.display.*;
public dynamic class word3 extends MovieClip {
public function word3(){
addFrameScript(0, frame1, 22, frame23);
}
function frame1(){
stop();
}
function frame23(){
stop();
this.parent.removeChild(this);
}
}
}//package
Section 466
//wrong (wrong)
package {
import flash.media.*;
public dynamic class wrong extends Sound {
}
}//package
Section 467
//wrongMc (wrongMc)
package {
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class wrongMc extends MovieClip {
public function wrongMc(){
addFrameScript(0, frame1, 23, frame24);
}
function frame1(){
stop();
}
function frame24(){
stop();
MovieClip(root).resetLoader();
this.parent.removeChild(this);
}
}
}//package