Section 1
//adBoxnew_1 (ClumsyScientist_fla.adBoxnew_1)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class adBoxnew_1 extends MovieClip {
public var _mc:MovieClip;
public function adBoxnew_1(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package ClumsyScientist_fla
Section 2
//attack2_150 (ClumsyScientist_fla.attack2_150)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class attack2_150 extends MovieClip {
public function attack2_150(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
MovieClip(root).tryFun();
}
}
}//package ClumsyScientist_fla
Section 3
//bg6_291 (ClumsyScientist_fla.bg6_291)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class bg6_291 extends MovieClip {
public var sObj7:MovieClip;
public var zoom_mc:MovieClip;
public var board_mc:MovieClip;
public function bg6_291(){
addFrameScript(0, frame1);
}
function frame1(){
board_mc.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(parent).zoomMC);
}
}
}//package ClumsyScientist_fla
Section 4
//bhjjkmuuaacopy_221 (ClumsyScientist_fla.bhjjkmuuaacopy_221)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class bhjjkmuuaacopy_221 extends MovieClip {
public function bhjjkmuuaacopy_221(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 5
//bhuiygvcopy2sci1_380 (ClumsyScientist_fla.bhuiygvcopy2sci1_380)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class bhuiygvcopy2sci1_380 extends MovieClip {
public function bhuiygvcopy2sci1_380(){
addFrameScript(0, frame1, 43, frame44);
}
function frame1(){
stop();
}
function frame44(){
stop();
}
}
}//package ClumsyScientist_fla
Section 6
//bhuiygvcopy3sci1_383 (ClumsyScientist_fla.bhuiygvcopy3sci1_383)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class bhuiygvcopy3sci1_383 extends MovieClip {
public function bhuiygvcopy3sci1_383(){
addFrameScript(0, frame1, 41, frame42);
}
function frame1(){
stop();
}
function frame42(){
stop();
}
}
}//package ClumsyScientist_fla
Section 7
//bhuiygvcopy4sci1_381 (ClumsyScientist_fla.bhuiygvcopy4sci1_381)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class bhuiygvcopy4sci1_381 extends MovieClip {
public function bhuiygvcopy4sci1_381(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
stop();
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 8
//bhuiygvcopy5sci1_382 (ClumsyScientist_fla.bhuiygvcopy5sci1_382)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class bhuiygvcopy5sci1_382 extends MovieClip {
public function bhuiygvcopy5sci1_382(){
addFrameScript(0, frame1, 13, frame14);
}
function frame14(){
stop();
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 9
//bhuiygvcopy7sci1_384 (ClumsyScientist_fla.bhuiygvcopy7sci1_384)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class bhuiygvcopy7sci1_384 extends MovieClip {
public function bhuiygvcopy7sci1_384(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 10
//bhuiygvcopy8sci1_385 (ClumsyScientist_fla.bhuiygvcopy8sci1_385)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class bhuiygvcopy8sci1_385 extends MovieClip {
public function bhuiygvcopy8sci1_385(){
addFrameScript(0, frame1, 21, frame22);
}
function frame1(){
stop();
}
function frame22(){
stop();
}
}
}//package ClumsyScientist_fla
Section 11
//bhuiygvsci1_379 (ClumsyScientist_fla.bhuiygvsci1_379)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class bhuiygvsci1_379 extends MovieClip {
public function bhuiygvsci1_379(){
addFrameScript(0, frame1, 43, frame44, 101, frame102, 129, frame130, 151, frame152, 162, frame163);
}
function frame152(){
MovieClip(root).melt_mc.gotoAndPlay(2);
}
function frame163(){
stop();
}
function frame102(){
stop();
}
function frame1(){
stop();
}
function frame44(){
stop();
}
function frame130(){
stop();
}
}
}//package ClumsyScientist_fla
Section 12
//cant1_123 (ClumsyScientist_fla.cant1_123)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class cant1_123 extends MovieClip {
public function cant1_123(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
MovieClip(parent).gotoAndStop("stand2");
}
}
}//package ClumsyScientist_fla
Section 13
//cant1copy_124 (ClumsyScientist_fla.cant1copy_124)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class cant1copy_124 extends MovieClip {
public function cant1copy_124(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
MovieClip(parent).gotoAndStop("stand3");
}
}
}//package ClumsyScientist_fla
Section 14
//cant4_126 (ClumsyScientist_fla.cant4_126)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class cant4_126 extends MovieClip {
public function cant4_126(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
MovieClip(parent).gotoAndStop("specs");
}
}
}//package ClumsyScientist_fla
Section 15
//cupsci1_255 (ClumsyScientist_fla.cupsci1_255)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class cupsci1_255 extends MovieClip {
public var sObj4_2:MovieClip;
public var hit:MovieClip;
public function cupsci1_255(){
addFrameScript(0, frame1, 10, frame11, 34, frame35, 43, frame44, 146, frame147);
}
public function takeObj4(_arg1:MouseEvent){
MovieClip(root).playSound("invclick");
MovieClip(root).manPostureFun(280);
}
function frame1(){
stop();
}
function frame11(){
MovieClip(root).playSound("liquid");
}
function frame35(){
stop();
}
function frame44(){
MovieClip(root).playSound("liquid");
}
function frame147(){
stop();
sObj4_2.tabEnabled = false;
sObj4_2.buttonMode = true;
sObj4_2.addEventListener(MouseEvent.MOUSE_DOWN, takeObj4);
}
}
}//package ClumsyScientist_fla
Section 16
//cvhbfqwqaa_288 (ClumsyScientist_fla.cvhbfqwqaa_288)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class cvhbfqwqaa_288 extends MovieClip {
public function cvhbfqwqaa_288(){
addFrameScript(114, frame115);
}
function frame115(){
stop();
MovieClip(root).gotoAndStop("s5");
}
}
}//package ClumsyScientist_fla
Section 17
//dfgret_60 (ClumsyScientist_fla.dfgret_60)
package ClumsyScientist_fla {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public dynamic class dfgret_60 extends MovieClip {
public var logo_mc:MovieClip;
public function dfgret_60(){
addFrameScript(0, frame1);
}
function frame1(){
logo_mc.buttonMode = true;
logo_mc.tabEnabled = false;
logo_mc.addEventListener(MouseEvent.MOUSE_DOWN, logoFun);
}
public function logoFun(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.timefall.com/"), "_blank");
}
}
}//package ClumsyScientist_fla
Section 18
//do_156 (ClumsyScientist_fla.do_156)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class do_156 extends MovieClip {
public function do_156(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
MovieClip(parent).gotoAndStop("stand2");
}
}
}//package ClumsyScientist_fla
Section 19
//door_83 (ClumsyScientist_fla.door_83)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class door_83 extends MovieClip {
public var sObj1_2:MovieClip;
public function door_83(){
addFrameScript(0, frame1, 19, frame20);
}
public function takeObj1(_arg1:MouseEvent){
MovieClip(root).specsFun();
}
function frame1(){
stop();
}
function frame20(){
stop();
sObj1_2.tabEnabled = false;
sObj1_2.buttonMode = true;
if (MovieClip(root).viewArray[1] == 1){
sObj1_2.visible = false;
};
sObj1_2.addEventListener(MouseEvent.MOUSE_DOWN, takeObj1);
}
}
}//package ClumsyScientist_fla
Section 20
//door2sci1_264 (ClumsyScientist_fla.door2sci1_264)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class door2sci1_264 extends MovieClip {
public var keyHit:MovieClip;
public function door2sci1_264(){
addFrameScript(0, frame1, 17, frame18, 19, frame20, 22, frame23);
}
function frame18(){
MovieClip(root).playSound("dooropen");
}
function frame1(){
stop();
}
function frame23(){
stop();
MovieClip(parent).doorOpen = true;
}
function frame20(){
MovieClip(parent).wire_mc.gotoAndStop(3);
}
}
}//package ClumsyScientist_fla
Section 21
//doorcopy3sci_90 (ClumsyScientist_fla.doorcopy3sci_90)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class doorcopy3sci_90 extends MovieClip {
public function doorcopy3sci_90(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 22
//doorcopysci_100 (ClumsyScientist_fla.doorcopysci_100)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class doorcopysci_100 extends MovieClip {
public function doorcopysci_100(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 23
//doorsci_95 (ClumsyScientist_fla.doorsci_95)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class doorsci_95 extends MovieClip {
public var sObj1_2:MovieClip;
public var keyHit:MovieClip;
public function doorsci_95(){
addFrameScript(0, frame1, 17, frame18, 30, frame31);
}
public function takeObj1(_arg1:MouseEvent){
MovieClip(root).specsFun();
}
function frame18(){
MovieClip(root).playSound("electricdoor");
}
function frame1(){
stop();
}
function frame31(){
stop();
sObj1_2.tabEnabled = false;
sObj1_2.buttonMode = true;
if (MovieClip(root).viewArray[1] == 1){
sObj1_2.visible = false;
};
sObj1_2.addEventListener(MouseEvent.MOUSE_DOWN, takeObj1);
}
}
}//package ClumsyScientist_fla
Section 24
//ertert_338 (ClumsyScientist_fla.ertert_338)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class ertert_338 extends MovieClip {
public var sObj11_2:MovieClip;
public function ertert_338(){
addFrameScript(0, frame1, 1, frame2, 14, frame15);
}
public function takeObj11(_arg1:MouseEvent){
if (!MovieClip(parent).clickObj){
MovieClip(parent).playSound("invclick");
MovieClip(parent).clickObj = true;
MovieClip(parent).currentObj = 11;
MovieClip(parent).manPostureFun(240);
};
}
function frame15(){
stop();
sObj11_2.tabEnabled = false;
sObj11_2.buttonMode = true;
sObj11_2.addEventListener(MouseEvent.MOUSE_DOWN, takeObj11);
}
function frame1(){
stop();
}
function frame2(){
MovieClip(root).playSound("electricdoor");
}
}
}//package ClumsyScientist_fla
Section 25
//erwerq3eqaa_411 (ClumsyScientist_fla.erwerq3eqaa_411)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class erwerq3eqaa_411 extends MovieClip {
public function erwerq3eqaa_411(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 26
//fasfasmuu_223 (ClumsyScientist_fla.fasfasmuu_223)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class fasfasmuu_223 extends MovieClip {
public function fasfasmuu_223(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 27
//fhcgnmuu_218 (ClumsyScientist_fla.fhcgnmuu_218)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class fhcgnmuu_218 extends MovieClip {
public var mute_btn:MovieClip;
public function fhcgnmuu_218(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 28
//fhcgnmuucopy_222 (ClumsyScientist_fla.fhcgnmuucopy_222)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class fhcgnmuucopy_222 extends MovieClip {
public var mute_btn:MovieClip;
public function fhcgnmuucopy_222(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 29
//filePage_lncopy2_197 (ClumsyScientist_fla.filePage_lncopy2_197)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class filePage_lncopy2_197 extends MovieClip {
public var close_btn:MovieClip;
public var book_mc:MovieClip;
public function filePage_lncopy2_197(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 30
//fireeesci1_389 (ClumsyScientist_fla.fireeesci1_389)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class fireeesci1_389 extends MovieClip {
public var sObj13_2:MovieClip;
public function fireeesci1_389(){
addFrameScript(0, frame1, 6, frame7, 14, frame15, 23, frame24, 30, frame31, 38, frame39);
}
public function takeObj13(_arg1:MouseEvent){
MovieClip(parent).playSound("invclick");
sObj13_2.visible = false;
MovieClip(parent).takeLobj(13, 511, 124);
}
function frame15(){
MovieClip(root).playSound("glassHit");
}
function frame7(){
MovieClip(root).playSound("glassHit");
}
function frame1(){
stop();
}
function frame24(){
MovieClip(root).playSound("glassHit");
}
function frame31(){
MovieClip(root).playSound("glassbreak1");
}
function frame39(){
stop();
sObj13_2.tabEnabled = false;
sObj13_2.buttonMode = true;
sObj13_2.addEventListener(MouseEvent.MOUSE_DOWN, takeObj13);
}
}
}//package ClumsyScientist_fla
Section 31
//firewsci1_396 (ClumsyScientist_fla.firewsci1_396)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class firewsci1_396 extends MovieClip {
public function firewsci1_396(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 32
//fuifsci1_344 (ClumsyScientist_fla.fuifsci1_344)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class fuifsci1_344 extends MovieClip {
public function fuifsci1_344(){
addFrameScript(0, frame1, 5, frame6, 23, frame24);
}
function frame6(){
MovieClip(parent).playSound("slidedoor");
}
function frame1(){
stop();
}
function frame24(){
stop();
MovieClip(parent).shutter_mc.buttonMode = true;
}
}
}//package ClumsyScientist_fla
Section 33
//gghjar_176 (ClumsyScientist_fla.gghjar_176)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class gghjar_176 extends MovieClip {
public var obj:MovieClip;
}
}//package ClumsyScientist_fla
Section 34
//gghjcopyar_178 (ClumsyScientist_fla.gghjcopyar_178)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class gghjcopyar_178 extends MovieClip {
public var obj:MovieClip;
}
}//package ClumsyScientist_fla
Section 35
//ghjghkj_333 (ClumsyScientist_fla.ghjghkj_333)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class ghjghkj_333 extends MovieClip {
public var sObj18_2:MovieClip;
public var sObj17_2:MovieClip;
public function ghjghkj_333(){
addFrameScript(0, frame1, 1, frame2, 14, frame15);
}
public function takeObj18(_arg1:MouseEvent){
if (!MovieClip(parent).clickObj){
MovieClip(parent).playSound("invclick");
MovieClip(parent).clickObj = true;
MovieClip(parent).currentObj = 18;
MovieClip(parent).manPostureFun(105);
};
}
public function takeObj17(_arg1:MouseEvent){
if (!MovieClip(parent).clickObj){
MovieClip(parent).playSound("invclick");
MovieClip(parent).clickObj = true;
MovieClip(parent).currentObj = 17;
MovieClip(parent).manPostureFun(105);
};
}
function frame15(){
stop();
sObj17_2.tabEnabled = false;
sObj17_2.buttonMode = true;
sObj18_2.tabEnabled = false;
sObj18_2.buttonMode = true;
sObj17_2.addEventListener(MouseEvent.MOUSE_DOWN, takeObj17);
sObj18_2.addEventListener(MouseEvent.MOUSE_DOWN, takeObj18);
}
function frame1(){
stop();
}
function frame2(){
MovieClip(root).playSound("electricdoor");
}
}
}//package ClumsyScientist_fla
Section 36
//ghucopysci1_405 (ClumsyScientist_fla.ghucopysci1_405)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class ghucopysci1_405 extends MovieClip {
public var tube_mc:MovieClip;
public var fire_mc:MovieClip;
public var can_mc:MovieClip;
public var hit:MovieClip;
public var beaker_mc:MovieClip;
public function ghucopysci1_405(){
addFrameScript(0, frame1, 12, frame13, 42, frame43, 57, frame58, 153, frame154, 209, frame210, 269, frame270, 354, frame355);
}
function frame270(){
stop();
if (beaker_mc.currentFrame == 2){
play();
} else {
MovieClip(parent).tryFun();
};
}
function frame154(){
stop();
if (can_mc.currentFrame == 2){
play();
} else {
MovieClip(parent).tryFun();
};
}
function frame210(){
stop();
if (tube_mc.currentFrame == 2){
play();
} else {
MovieClip(parent).tryFun();
};
}
function frame1(){
stop();
}
function frame13(){
MovieClip(parent).playSound("liquid");
}
function frame355(){
stop();
}
function frame43(){
stop();
}
function frame58(){
MovieClip(parent).playSound("liquid");
}
}
}//package ClumsyScientist_fla
Section 37
//ghuiuiuyuisci2_356 (ClumsyScientist_fla.ghuiuiuyuisci2_356)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class ghuiuiuyuisci2_356 extends MovieClip {
public var mac:MovieClip;
public function ghuiuiuyuisci2_356(){
addFrameScript(0, frame1, 24, frame25);
}
function frame1(){
stop();
}
function frame25(){
MovieClip(root).trapFun();
}
}
}//package ClumsyScientist_fla
Section 38
//guhigf_388 (ClumsyScientist_fla.guhigf_388)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class guhigf_388 extends MovieClip {
public function guhigf_388(){
addFrameScript(0, frame1, 1, frame2, 22, frame23, 44, frame45, 65, frame66, 92, frame93);
}
function frame93(){
stop();
MovieClip(parent).gotoAndStop("s9");
}
function frame1(){
stop();
}
function frame23(){
MovieClip(root).playSound("water");
}
function frame2(){
MovieClip(root).playSound("water");
}
function frame45(){
MovieClip(root).playSound("water");
}
function frame66(){
MovieClip(root).playSound("water");
}
}
}//package ClumsyScientist_fla
Section 39
//guyf_208 (ClumsyScientist_fla.guyf_208)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class guyf_208 extends MovieClip {
public function guyf_208(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 40
//gyhuiosci1_374 (ClumsyScientist_fla.gyhuiosci1_374)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class gyhuiosci1_374 extends MovieClip {
public function gyhuiosci1_374(){
addFrameScript(0, frame1, 60, frame61);
}
function frame1(){
stop();
}
function frame61(){
stop();
MovieClip(parent).iceMelted = true;
}
}
}//package ClumsyScientist_fla
Section 41
//gyu8ogsci1_372 (ClumsyScientist_fla.gyu8ogsci1_372)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class gyu8ogsci1_372 extends MovieClip {
public function gyu8ogsci1_372(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 42
//gyudfqwqaa_278 (ClumsyScientist_fla.gyudfqwqaa_278)
package ClumsyScientist_fla {
import flash.display.*;
import flash.events.*;
public dynamic class gyudfqwqaa_278 extends MovieClip {
public var manHit:MovieClip;
public function gyudfqwqaa_278(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
manHit.buttonMode = true;
manHit.addEventListener(MouseEvent.MOUSE_DOWN, manHitFun);
}
public function manHitFun(_arg1:MouseEvent){
if (currentFrame == 2){
gotoAndStop(3);
};
}
}
}//package ClumsyScientist_fla
Section 43
//gyuipa_72 (ClumsyScientist_fla.gyuipa_72)
package ClumsyScientist_fla {
import flash.display.*;
import flash.events.*;
public dynamic class gyuipa_72 extends MovieClip {
public var next_btn:SimpleButton;
public function gyuipa_72(){
addFrameScript(173, frame174, 252, frame253);
}
function frame174(){
stop();
next_btn.addEventListener(MouseEvent.CLICK, nextFun);
}
public function nextFun(_arg1:MouseEvent){
play();
}
function frame253(){
stop();
MovieClip(parent).gotoAndStop("s1");
}
}
}//package ClumsyScientist_fla
Section 44
//GYUIYGsci1_370 (ClumsyScientist_fla.GYUIYGsci1_370)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class GYUIYGsci1_370 extends MovieClip {
public function GYUIYGsci1_370(){
addFrameScript(159, frame160);
}
function frame160(){
stop();
}
}
}//package ClumsyScientist_fla
Section 45
//hjkkcopy2sci1_254 (ClumsyScientist_fla.hjkkcopy2sci1_254)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class hjkkcopy2sci1_254 extends MovieClip {
public function hjkkcopy2sci1_254(){
addFrameScript(1, frame2, 23, frame24, 66, frame67);
}
function frame24(){
MovieClip(root).man_mc.gotoAndStop("attack2");
stage.removeEventListener(Event.ENTER_FRAME, MovieClip(root).manMoveFun);
MovieClip(root).playSound("owl");
}
function frame2(){
MovieClip(root).playSound("owl");
}
function frame67(){
stop();
}
}
}//package ClumsyScientist_fla
Section 46
//hjkksci1_244 (ClumsyScientist_fla.hjkksci1_244)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class hjkksci1_244 extends MovieClip {
public function hjkksci1_244(){
addFrameScript(16, frame17, 33, frame34);
}
function frame17(){
MovieClip(root).playSound("owl");
}
function frame34(){
stop();
}
}
}//package ClumsyScientist_fla
Section 47
//hjksci1_369 (ClumsyScientist_fla.hjksci1_369)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class hjksci1_369 extends MovieClip {
public function hjksci1_369(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 48
//hosci1copy_317 (ClumsyScientist_fla.hosci1copy_317)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class hosci1copy_317 extends MovieClip {
public var s2:MovieClip;
public function hosci1copy_317(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 49
//hu8989copy2_116 (ClumsyScientist_fla.hu8989copy2_116)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class hu8989copy2_116 extends MovieClip {
public var man:MovieClip;
public function hu8989copy2_116(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 50
//huiedfcopy2sci1_274 (ClumsyScientist_fla.huiedfcopy2sci1_274)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class huiedfcopy2sci1_274 extends MovieClip {
public function huiedfcopy2sci1_274(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 51
//huiedfcopy3sci1_275 (ClumsyScientist_fla.huiedfcopy3sci1_275)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class huiedfcopy3sci1_275 extends MovieClip {
public function huiedfcopy3sci1_275(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 52
//huiedfcopy4sci1_276 (ClumsyScientist_fla.huiedfcopy4sci1_276)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class huiedfcopy4sci1_276 extends MovieClip {
public function huiedfcopy4sci1_276(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 53
//huiedfcopysci1_273 (ClumsyScientist_fla.huiedfcopysci1_273)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class huiedfcopysci1_273 extends MovieClip {
public function huiedfcopysci1_273(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 54
//huiuiesci1_386 (ClumsyScientist_fla.huiuiesci1_386)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class huiuiesci1_386 extends MovieClip {
public function huiuiesci1_386(){
addFrameScript(0, frame1, 12, frame13);
}
function frame1(){
stop();
}
function frame13(){
stop();
}
}
}//package ClumsyScientist_fla
Section 55
//huiuisci1_265 (ClumsyScientist_fla.huiuisci1_265)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class huiuisci1_265 extends MovieClip {
public function huiuisci1_265(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
MovieClip(parent).shockVar = true;
}
}
}//package ClumsyScientist_fla
Section 56
//huiuiuisci1_259 (ClumsyScientist_fla.huiuiuisci1_259)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class huiuiuisci1_259 extends MovieClip {
public function huiuiuisci1_259(){
addFrameScript(83, frame84);
}
function frame84(){
stop();
}
}
}//package ClumsyScientist_fla
Section 57
//huivcopy2qwqaa_282 (ClumsyScientist_fla.huivcopy2qwqaa_282)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class huivcopy2qwqaa_282 extends MovieClip {
public function huivcopy2qwqaa_282(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 58
//huivcopy3sci1_325 (ClumsyScientist_fla.huivcopy3sci1_325)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class huivcopy3sci1_325 extends MovieClip {
public var sObj14_2:MovieClip;
public function huivcopy3sci1_325(){
addFrameScript(0, frame1, 1, frame2, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame2(){
MovieClip(root).playSound("electricdoor");
}
}
}//package ClumsyScientist_fla
Section 59
//huivcopy4sci1_328 (ClumsyScientist_fla.huivcopy4sci1_328)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class huivcopy4sci1_328 extends MovieClip {
public var sObj15_2:MovieClip;
public function huivcopy4sci1_328(){
addFrameScript(0, frame1, 1, frame2, 14, frame15);
}
public function takeObj15(_arg1:MouseEvent){
if (!MovieClip(parent).clickObj){
MovieClip(parent).playSound("invclick");
MovieClip(parent).clickObj = true;
MovieClip(parent).currentObj = 15;
MovieClip(parent).manPostureFun(400);
};
}
function frame15(){
stop();
sObj15_2.buttonMode = true;
sObj15_2.tabEnabled = false;
sObj15_2.addEventListener(MouseEvent.MOUSE_DOWN, takeObj15);
}
function frame1(){
stop();
}
function frame2(){
MovieClip(root).playSound("electricdoor");
}
}
}//package ClumsyScientist_fla
Section 60
//huivcopy5sci1_330 (ClumsyScientist_fla.huivcopy5sci1_330)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class huivcopy5sci1_330 extends MovieClip {
public var sObj19_2:MovieClip;
public function huivcopy5sci1_330(){
addFrameScript(0, frame1, 1, frame2, 14, frame15);
}
public function takeObj19(_arg1:MouseEvent){
if (!MovieClip(parent).clickObj){
MovieClip(parent).playSound("invclick");
MovieClip(parent).clickObj = true;
MovieClip(parent).currentObj = 19;
MovieClip(parent).manPostureFun(314);
};
}
function frame15(){
stop();
sObj19_2.buttonMode = true;
sObj19_2.tabEnabled = false;
sObj19_2.addEventListener(MouseEvent.MOUSE_DOWN, takeObj19);
}
function frame1(){
stop();
}
function frame2(){
MovieClip(root).playSound("electricdoor");
}
}
}//package ClumsyScientist_fla
Section 61
//huivcopy6sci1_331 (ClumsyScientist_fla.huivcopy6sci1_331)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class huivcopy6sci1_331 extends MovieClip {
public var sObj16_2:MovieClip;
public function huivcopy6sci1_331(){
addFrameScript(0, frame1, 1, frame2, 14, frame15);
}
public function takeObj16(_arg1:MouseEvent){
if (!MovieClip(parent).clickObj){
MovieClip(parent).playSound("invclick");
MovieClip(parent).clickObj = true;
MovieClip(parent).currentObj = 16;
MovieClip(parent).manPostureFun(550);
};
}
function frame15(){
stop();
sObj16_2.buttonMode = true;
sObj16_2.tabEnabled = false;
sObj16_2.addEventListener(MouseEvent.MOUSE_DOWN, takeObj16);
}
function frame1(){
stop();
}
function frame2(){
MovieClip(root).playSound("electricdoor");
}
}
}//package ClumsyScientist_fla
Section 62
//huivcopysci_107 (ClumsyScientist_fla.huivcopysci_107)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class huivcopysci_107 extends MovieClip {
public function huivcopysci_107(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 63
//huivcopysci1_228 (ClumsyScientist_fla.huivcopysci1_228)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class huivcopysci1_228 extends MovieClip {
public function huivcopysci1_228(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 64
//huivsci1_342 (ClumsyScientist_fla.huivsci1_342)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class huivsci1_342 extends MovieClip {
public function huivsci1_342(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 65
//ighvhkg_363 (ClumsyScientist_fla.ighvhkg_363)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class ighvhkg_363 extends MovieClip {
public function ighvhkg_363(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
MovieClip(parent).gotoAndStop("up1");
}
function frame1(){
}
}
}//package ClumsyScientist_fla
Section 66
//ighvhkgcopy_367 (ClumsyScientist_fla.ighvhkgcopy_367)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class ighvhkgcopy_367 extends MovieClip {
public function ighvhkgcopy_367(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
MovieClip(parent).gotoAndStop("up");
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 67
//invPanel_mcar_159 (ClumsyScientist_fla.invPanel_mcar_159)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class invPanel_mcar_159 extends MovieClip {
public var ref3:MovieClip;
public var ref4:MovieClip;
public var ref6:MovieClip;
public var ref7:MovieClip;
public var ref9:MovieClip;
public var ref19:MovieClip;
public var ref12:MovieClip;
public var ref14:MovieClip;
public var obj1:MovieClip;
public var obj2:MovieClip;
public var obj3:MovieClip;
public var ref8:MovieClip;
public var obj5:MovieClip;
public var obj7:MovieClip;
public var obj8:MovieClip;
public var obj9:MovieClip;
public var ref5:MovieClip;
public var obj6:MovieClip;
public var obj4:MovieClip;
public var ref17:MovieClip;
public var panelIn_mc:MovieClip;
public var obj10:MovieClip;
public var obj11:MovieClip;
public var obj12:MovieClip;
public var obj14:MovieClip;
public var obj15:MovieClip;
public var obj17:MovieClip;
public var obj19:MovieClip;
public var obj16:MovieClip;
public var obj18:MovieClip;
public var obj13:MovieClip;
public var ref11:MovieClip;
public var ref13:MovieClip;
public var ref15:MovieClip;
public var ref16:MovieClip;
public var ref10:MovieClip;
public var ref18:MovieClip;
public var ref1:MovieClip;
public var ref2:MovieClip;
}
}//package ClumsyScientist_fla
Section 68
//ioiosdwsci1_235 (ClumsyScientist_fla.ioiosdwsci1_235)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class ioiosdwsci1_235 extends MovieClip {
public function ioiosdwsci1_235(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 69
//ioocopysci1_353 (ClumsyScientist_fla.ioocopysci1_353)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class ioocopysci1_353 extends MovieClip {
public var m:int;
public var macArray:Array;
public var mac1:MovieClip;
public var mac2:MovieClip;
public var mac3:MovieClip;
public var cnt1:MovieClip;
public var cnt2:MovieClip;
public var cnt3:MovieClip;
public function ioocopysci1_353(){
addFrameScript(0, frame1);
}
public function controllFun(_arg1:MouseEvent){
var _local2:String;
if (MovieClip(root).man_mc.visible == true){
_local2 = _arg1.currentTarget.name.substr(3);
m = 1;
while (m <= 3) {
if (this[("cnt" + m)].currentLabel != macArray[m][("pos" + Number(_local2))]){
this[("cnt" + m)].gotoAndStop(macArray[m][("pos" + Number(_local2))]);
this[("mac" + m)].gotoAndStop(macArray[m][("pos" + Number(_local2))]);
};
m++;
};
};
}
function frame1(){
cnt2.gotoAndStop(2);
m = 0;
macArray = new Array("");
macArray.push({pos1:"up", pos2:"down", pos3:"down"});
macArray.push({pos1:"down", pos2:"up", pos3:"down"});
macArray.push({pos1:"down", pos2:"down", pos3:"up"});
m = 1;
while (m <= 3) {
this[("cnt" + m)].buttonMode = true;
this[("cnt" + m)].tabEnabled = false;
this[("mac" + m)].gotoAndStop("down1");
this[("cnt" + m)].addEventListener(MouseEvent.MOUSE_DOWN, controllFun);
m++;
};
mac2.gotoAndStop("up1");
}
}
}//package ClumsyScientist_fla
Section 70
//jhhmgq3eqaa_408 (ClumsyScientist_fla.jhhmgq3eqaa_408)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class jhhmgq3eqaa_408 extends MovieClip {
public var fire_mc:MovieClip;
public function jhhmgq3eqaa_408(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 71
//jioiotr_213 (ClumsyScientist_fla.jioiotr_213)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class jioiotr_213 extends MovieClip {
public var try_btn:SimpleButton;
public function jioiotr_213(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
try_btn.addEventListener(MouseEvent.MOUSE_DOWN, tryFun2);
try_btn.addEventListener(MouseEvent.MOUSE_OVER, tryOverFun);
}
function frame1(){
stop();
try_btn.addEventListener(MouseEvent.MOUSE_DOWN, tryFun);
try_btn.addEventListener(MouseEvent.MOUSE_OVER, tryOverFun);
}
function frame2(){
try_btn.addEventListener(MouseEvent.MOUSE_DOWN, tryFun2);
try_btn.addEventListener(MouseEvent.MOUSE_OVER, tryOverFun);
}
public function tryOverFun(_arg1:MouseEvent){
MovieClip(root).playSound("button");
}
public function tryFun(_arg1:MouseEvent){
MovieClip(root).gotoAndStop("tryPage");
}
public function tryFun2(_arg1:MouseEvent){
MovieClip(root).gotoAndStop("startPage");
}
}
}//package ClumsyScientist_fla
Section 72
//keycopysci_114 (ClumsyScientist_fla.keycopysci_114)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class keycopysci_114 extends MovieClip {
public function keycopysci_114(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 73
//keysci1_277 (ClumsyScientist_fla.keysci1_277)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class keysci1_277 extends MovieClip {
public function keysci1_277(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 74
//lifsci1_376 (ClumsyScientist_fla.lifsci1_376)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class lifsci1_376 extends MovieClip {
public var water1:MovieClip;
public var wrong2:MovieClip;
public var wrong1:MovieClip;
public var wrong3:MovieClip;
public var c1:MovieClip;
public var c3:MovieClip;
public var c4:MovieClip;
public var c5:MovieClip;
public var c2:MovieClip;
public var wrong4:MovieClip;
public var wrong5:MovieClip;
public var water2:MovieClip;
public var w1:MovieClip;
public var w4:MovieClip;
public var w:int;
public var w2:MovieClip;
public var w3:MovieClip;
public var w5:MovieClip;
public function lifsci1_376(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
w = 0;
w = 1;
while (w <= 5) {
this[("wrong" + w)].visible = false;
this[("c" + w)].buttonMode = true;
this[("c" + w)].tabEnabled = false;
this[("w" + w)].buttonMode = true;
this[("w" + w)].tabEnabled = false;
this[("w" + w)].addEventListener(MouseEvent.MOUSE_DOWN, wrongFun);
this[("c" + w)].addEventListener(MouseEvent.MOUSE_DOWN, correctFun);
w++;
};
}
public function wrongFun(_arg1:MouseEvent){
if ((((_arg1.currentTarget.name == "w2")) && ((_arg1.currentTarget.currentFrame == 1)))){
_arg1.currentTarget.gotoAndPlay(2);
wrong2.visible = true;
wrong2.gotoAndPlay(2);
};
if ((((_arg1.currentTarget.name == "w1")) && ((_arg1.currentTarget.currentFrame == 1)))){
_arg1.currentTarget.gotoAndPlay(2);
wrong1.visible = true;
wrong1.gotoAndPlay(2);
};
if ((((((water1.currentFrame >= 44)) && ((_arg1.currentTarget.name == "w3")))) && ((_arg1.currentTarget.currentFrame == 1)))){
wrong3.visible = true;
wrong3.gotoAndPlay(2);
_arg1.currentTarget.gotoAndPlay(2);
};
if ((((((water1.currentFrame >= 102)) && ((_arg1.currentTarget.name == "w4")))) && ((_arg1.currentTarget.currentFrame == 1)))){
wrong4.visible = true;
wrong4.gotoAndPlay(2);
_arg1.currentTarget.gotoAndPlay(2);
};
if ((((((water1.currentFrame >= 130)) && ((_arg1.currentTarget.name == "w5")))) && ((_arg1.currentTarget.currentFrame == 1)))){
wrong5.visible = true;
wrong5.gotoAndPlay(2);
_arg1.currentTarget.gotoAndPlay(2);
};
}
public function correctFun(_arg1:MouseEvent){
if ((((_arg1.currentTarget.name == "c5")) && ((water2.currentFrame == 1)))){
_arg1.currentTarget.gotoAndPlay(2);
water2.gotoAndPlay(2);
};
if ((((_arg1.currentTarget.name == "c1")) && ((water1.currentFrame == 1)))){
_arg1.currentTarget.gotoAndPlay(2);
water1.gotoAndPlay(2);
};
if ((((((_arg1.currentTarget.name == "c2")) && ((water1.currentFrame == 44)))) && ((_arg1.currentTarget.currentFrame == 1)))){
_arg1.currentTarget.gotoAndPlay(2);
water1.gotoAndPlay(45);
};
if ((((((_arg1.currentTarget.name == "c3")) && ((water1.currentFrame == 102)))) && ((_arg1.currentTarget.currentFrame == 1)))){
_arg1.currentTarget.gotoAndPlay(2);
water1.gotoAndPlay(103);
};
if ((((((_arg1.currentTarget.name == "c4")) && ((water1.currentFrame == 130)))) && ((_arg1.currentTarget.currentFrame == 1)))){
_arg1.currentTarget.gotoAndPlay(2);
water1.gotoAndPlay(131);
};
}
}
}//package ClumsyScientist_fla
Section 75
//MainTimeline (ClumsyScientist_fla.MainTimeline)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import fl.motion.*;
import flash.geom.*;
import com.greensock.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
import CPMStar.*;
public dynamic class MainTimeline extends MovieClip {
public var rightMove:Boolean;
public var dummyClip:MovieClip;
public var jumpVar:Boolean;
public var ran:Number;
public var objName:Array;
public var iceMelted:Boolean;
public var clockVar:Boolean;
public var fire_mc:MovieClip;
public var book2Pan_mc:MovieClip;
public var speed:Number;
public var sec:String;
public var birdAttack:Boolean;
public var changeDress:Boolean;
public var i:int;
public var ext_mc:MovieClip;
public var screwCnt:Number;
public var leftMove:Boolean;
public var machine_mc:MovieClip;
public var tid:int;
public var tim:int;
public var dress_mc:MovieClip;
public var sObj12:MovieClip;
public var pauseSound:Boolean;
public var currentObj:Number;
public var pauseMode:Boolean;
public var bookPan_mc:MovieClip;
public var CPMStarSubPoolID:Number;
public var objectTaken:int;
public var CPMStarPoolID:Number;
public var boilChannel:SoundChannel;
public var dress2:MovieClip;
public var dress3:MovieClip;
public var getInitDepth:Number;
public var manDead:Boolean;
public var gf:GlowFilter;
public var bck_btn:SimpleButton;
public var bgChannel:SoundChannel;
public var count:Number;
public var menuItem:ContextMenuItem;
public var melt_mc:MovieClip;
public var timeVar:Number;
public var lock_mc:MovieClip;
public var sObj2:MovieClip;
public var sObj3:MovieClip;
public var sObj5:MovieClip;
public var sObj6:MovieClip;
public var sObj8:MovieClip;
public var sObj9:MovieClip;
public var shockVar:Boolean;
public var totalObjects:int;
public var view1Var:Boolean;
public var levels:int;
public var hole_mc:MovieClip;
public var mute_mc:MovieClip;
public var board_mc:MovieClip;
public var still:Boolean;
public var panel_mc:MovieClip;
public var backArray:Array;
public var cup1:MovieClip;
public var cup2:MovieClip;
public var right_btn:SimpleButton;
public var view2Var:Boolean;
public var gameScore:Number;
public var thumbPlaced:Boolean;
public var timeInc:Boolean;
public var openPanel:Boolean;
public var clickScore:Number;
public var thumbPan_mc:MovieClip;
public var preloader_mc:MovieClip;
public var dummyObject:MovieClip;
public var puzzleVar:Boolean;
public var left_btn:SimpleButton;
public var getObject:int;
public var dressMc:MovieClip;
public var clickObj:Boolean;
public var min:Number;
public var muteVar:Boolean;
public var zoomVar:Boolean;
public var stopAction_mc:MovieClip;
public var myContextMenu:ContextMenu;
public var score:int;
public var try_mc:MovieClip;
public var man_mc:MovieClip;
public var adBox:MovieClip;
public var viewArray:Array;
public var sizingMc:MovieClip;
public var clickCnt:Number;
public var objectInterchange:Boolean;
public var play_btn:SimpleButton;
public var bird_mc:MovieClip;
public var boiler:boilerSnd;
public var longChannel:SoundChannel;
public var walkAllow:Boolean;
public var dark_mc:MovieClip;
public var handle1:MovieClip;
public var handle3:MovieClip;
public var handle4:MovieClip;
public var handle_mc:MovieClip;
public var exp_mc:MovieClip;
public var handle2:MovieClip;
public var handle5:MovieClip;
public var objMsg:MovieClip;
public var downVar:Boolean;
public var specialStone:MovieClip;
public var trap:Number;
public var walkth_mc:MovieClip;
public var shutter_mc:MovieClip;
public var dragTorch:Boolean;
public var sideArray:Array;
public var doorOpen:Boolean;
public var shut_btn:SimpleButton;
public var subSoundChannel1:SoundChannel;
public var color:Color;
public var draw1:MovieClip;
public var draw2:MovieClip;
public var draw3:MovieClip;
public var draw4:MovieClip;
public var draw5:MovieClip;
public var bgSndObj:bgSound;
public var objectVar:Boolean;
public var wire_mc:MovieClip;
public var timeArray:Array;
public var gameStart:Boolean;
public var timeScore:Number;
public var door_mc:MovieClip;
public var walk_mc:MovieClip;
public var bg_mc:MovieClip;
public var clickX:Number;
public var powerVar:Boolean;
public var specsVar:Boolean;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16);
}
public function hideObjTip(){
objMsg.visible = false;
}
public function sObj9Fun(_arg1:MouseEvent){
if (!clickObj){
playSound("invclick");
clickObj = true;
currentObj = _arg1.currentTarget.name.substr(4);
trace(("currentObj=" + currentObj));
manPostureFun(110);
};
}
public function outObject(_arg1:MouseEvent){
if (objectTaken == 0){
TweenLite.to(sizingMc, 0.3, {scaleX:1, scaleY:1});
sizingMc.removeEventListener(MouseEvent.MOUSE_OUT, outObject);
};
}
public function cantTakeFun(){
if (man_mc.visible == true){
if (man_mc.currentLabel == "stand1"){
playSound("no2");
man_mc.gotoAndStop("cantTake1");
} else {
if (man_mc.currentLabel == "stand2"){
playSound("no2");
man_mc.gotoAndStop("cantTake2");
} else {
if (man_mc.currentLabel == "stand3"){
playSound("no2");
man_mc.gotoAndStop("cantTake3");
} else {
if (man_mc.currentLabel == "specs"){
playSound("no2");
man_mc.gotoAndStop("cantTake4");
};
};
};
};
};
}
public function manWalkFun(){
stage.addEventListener(Event.ENTER_FRAME, manMoveFun);
}
public function showProgress(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
_local2 = Math.round(((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 105));
_local3 = Math.round(((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesLoaded) * 197));
if (preloader_mc.currentFrame == 54){
preloader_mc.per_txt.text = (String(_local2) + "%");
if (_local2 >= 100){
removeEventListener(Event.ENTER_FRAME, showProgress);
playTimeFall();
preloader_mc.per_txt.visible = false;
preloader_mc.gotoAndPlay(198);
trace("LOADING COMPLETE");
};
};
}
function frame10(){
levels = 6;
handle_mc.buttonMode = true;
handle_mc.tabEnabled = false;
handle_mc.addEventListener(MouseEvent.MOUSE_DOWN, cup2Fun);
shut_btn.addEventListener(MouseEvent.MOUSE_DOWN, shutterFun);
shutter_mc.addEventListener(MouseEvent.MOUSE_DOWN, shutterCross);
}
function frame11(){
man_mc.x = 100;
levels = 7;
if (mute_mc.currentFrame == 1){
boiler = new boilerSnd();
boilChannel = boiler.play(0, int.MAX_VALUE);
};
}
function frame14(){
levels = 10;
i = 1;
while (i <= 5) {
this[("handle" + i)].buttonMode = true;
this[("handle" + i)].addEventListener(MouseEvent.MOUSE_DOWN, draw1Fun);
i++;
};
}
function frame16(){
SoundMixer.stopAll();
}
function frame12(){
walk_mc.visible = false;
SoundMixer.stopAll();
if (mute_mc.currentFrame == 1){
bgSndFun();
};
}
function frame15(){
try_mc.y = -238;
stopAction_mc.visible = false;
leftMove = false;
rightMove = false;
walkAllow = false;
man_mc.x = 100;
if (levels == 2){
view2Var = false;
birdAttack = false;
man_mc.gotoAndStop("stand3");
init();
};
if (levels == 3){
shockVar = false;
openPanel = false;
powerVar = false;
doorOpen = false;
manDead = false;
man_mc.gotoAndStop("stand2");
init();
};
if (levels == 7){
man_mc.gotoAndStop("stand2");
};
if (levels == 10){
man_mc.x = 100;
man_mc.gotoAndStop("stand2");
init();
};
man_mc.visible = true;
gotoAndStop(("s" + levels));
}
public function shutterCross(_arg1:MouseEvent){
if (shutter_mc.currentFrame == 24){
manPostureFun(630);
};
}
function frame1(){
stop();
stage.scaleMode = "exactFit";
addEventListener(Event.ENTER_FRAME, showProgress);
preloader_mc.per_txt.visible = false;
myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
menuItem = new ContextMenuItem("A game by QuickSailor");
menuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, getAction);
myContextMenu.customItems.push(menuItem);
this.contextMenu = myContextMenu;
CPMStarPoolID = 18840;
CPMStarSubPoolID = 998;
adBox.visible = false;
}
function frame3(){
SoundMixer.stopAll();
stop();
tid = 0;
min = 0;
sec = "";
tim = 0;
pauseSound = false;
pauseMode = false;
score = 0;
still = false;
gameStart = false;
i = 0;
totalObjects = 19;
count = 0;
screwCnt = 0;
timeInc = true;
timeVar = 0;
gameScore = 0;
clickCnt = 0;
timeScore = 0;
clickScore = 50000;
muteVar = false;
objectVar = false;
backArray = new Array();
viewArray = new Array();
timeArray = new Array("");
clickX = 0;
speed = 4;
levels = 1;
clockVar = false;
walkAllow = false;
leftMove = false;
rightMove = false;
clickObj = false;
view1Var = false;
changeDress = false;
specsVar = false;
view2Var = false;
birdAttack = false;
shockVar = false;
openPanel = false;
powerVar = false;
doorOpen = false;
manDead = false;
dragTorch = false;
jumpVar = false;
thumbPlaced = false;
puzzleVar = false;
downVar = false;
zoomVar = false;
iceMelted = false;
objName = new Array();
objName["obj1"] = "";
objName["obj2"] = "";
objName["obj3"] = "";
objName["obj4"] = "";
objName["obj5"] = "";
objName["obj6"] = "";
objName["obj7"] = "";
objName["obj8"] = "";
objName["obj9"] = "";
objName["obj10"] = "";
objName["obj11"] = "";
objName["obj12"] = "";
objName["obj13"] = "";
objName["obj14"] = "";
objName["obj15"] = "";
objName["obj16"] = "";
objName["obj17"] = "";
objName["obj18"] = "";
objName["obj19"] = "";
stop();
play_btn.addEventListener(MouseEvent.MOUSE_DOWN, playFun);
play_btn.tabEnabled = false;
}
function frame5(){
stop();
if (!gameStart){
man_mc.object = 0;
dummyClip = new MovieClip();
dummyClip = null;
sizingMc = new MovieClip();
tid = setInterval(stimer, 1000);
gf = new GlowFilter(0xFFFFFF, 1, 5, 5, 2, 1, false, false);
gameStart = true;
dummyObject = new MovieClip();
dummyObject = null;
objectTaken = 0;
getObject = 0;
getInitDepth = 0;
sideArray = new Array("", "");
objectInterchange = false;
specialStone = new MovieClip();
i = 1;
while (i <= totalObjects) {
panel_mc[("obj" + i)].addEventListener(MouseEvent.MOUSE_DOWN, takeObject);
panel_mc[("obj" + i)].addEventListener(MouseEvent.MOUSE_OVER, overObject);
panel_mc[("ref" + i)].free = 0;
panel_mc[("ref" + i)].objectId = 0;
i++;
};
stopAction_mc.visible = false;
stage.addEventListener(MouseEvent.MOUSE_UP, leaveObject);
if (dummyObject != null){
dummyObject.pressed++;
};
};
mute_mc.tabEnabled = false;
mute_mc.buttonMode = true;
mute_mc.addEventListener(MouseEvent.MOUSE_DOWN, muteFun);
stage.addEventListener(KeyboardEvent.KEY_DOWN, listenKey);
subSoundChannel1 = new SoundChannel();
stage.addEventListener(MouseEvent.MOUSE_OVER, showText);
stage.addEventListener(MouseEvent.MOUSE_OUT, hideText);
stage.addEventListener(Event.ENTER_FRAME, moveTip);
trap = 1;
man_mc.buttonMode = true;
man_mc.tabEnabled = false;
man_mc.addEventListener(MouseEvent.MOUSE_DOWN, manFun);
ran = 1;
walkth_mc.buttonMode = true;
walkth_mc.tabEnabled = false;
walkth_mc.addEventListener(MouseEvent.MOUSE_DOWN, walkFun);
man_mc.x = 100;
levels = 1;
dressMc = new MovieClip();
dress_mc.buttonMode = true;
dress_mc.tabEnabled = false;
dress2.buttonMode = true;
dress2.tabEnabled = false;
dress3.buttonMode = true;
dress3.tabEnabled = false;
dress_mc.addEventListener(MouseEvent.MOUSE_DOWN, dressFun);
dress_mc.addEventListener(MouseEvent.MOUSE_OVER, dressOver);
dress2.addEventListener(MouseEvent.MOUSE_OVER, dressOver);
dress3.addEventListener(MouseEvent.MOUSE_OVER, dressOver);
sObj9.buttonMode = true;
sObj9.tabEnabled = false;
sObj9.addEventListener(MouseEvent.MOUSE_DOWN, sObj9Fun);
thumbPan_mc.close_btn.addEventListener(MouseEvent.MOUSE_DOWN, closeThumb);
book2Pan_mc.close_btn.addEventListener(MouseEvent.MOUSE_DOWN, closeBook2);
bookPan_mc.close_btn.addEventListener(MouseEvent.MOUSE_DOWN, closeBook);
right_btn.addEventListener(MouseEvent.MOUSE_DOWN, rightFun);
}
function frame8(){
(levels == 4);
color = new Color();
color.brightness = -0.7;
man_mc.transform.colorTransform = color;
sObj8.buttonMode = true;
sObj8.tabEnabled = false;
sObj8.addEventListener(MouseEvent.MOUSE_DOWN, sObj8Fun);
}
function frame9(){
levels = 5;
bck_btn.visible = false;
color.brightness = 0;
man_mc.transform.colorTransform = color;
man_mc.x = 100;
man_mc.visible = true;
bg_mc.sObj7.buttonMode = true;
bg_mc.sObj7.tabEnabled = false;
bg_mc.sObj7.addEventListener(MouseEvent.MOUSE_DOWN, sObj7Fun);
bg_mc.zoom_mc.buttonMode = true;
bg_mc.zoom_mc.tabEnabled = false;
bg_mc.zoom_mc.addEventListener(MouseEvent.MOUSE_DOWN, zoomFun);
bck_btn.addEventListener(MouseEvent.MOUSE_DOWN, backFun);
}
function frame4(){
bgSndFun();
}
function frame6(){
levels = 2;
sObj2.buttonMode = true;
sObj2.tabEnabled = false;
sObj3.buttonMode = true;
sObj3.tabEnabled = false;
sObj2.addEventListener(MouseEvent.MOUSE_DOWN, objectFindFun);
sObj3.addEventListener(MouseEvent.MOUSE_DOWN, objectFindFun);
}
function frame7(){
levels = 3;
sObj6.buttonMode = true;
sObj6.tabEnabled = false;
sObj5.buttonMode = true;
sObj5.tabEnabled = false;
board_mc.buttonMode = true;
board_mc.tabEnabled = false;
sObj6.addEventListener(MouseEvent.MOUSE_DOWN, sObj5Fun);
sObj5.addEventListener(MouseEvent.MOUSE_DOWN, sObj5Fun);
board_mc.addEventListener(MouseEvent.MOUSE_DOWN, boardFun);
}
function frame13(){
man_mc.x = 100;
man_mc.gotoAndStop("stand2");
man_mc.visible = true;
sObj12.buttonMode = true;
sObj12.tabEnabled = false;
sObj12.addEventListener(MouseEvent.MOUSE_DOWN, sObj12Fun);
}
public function manPostureFun(_arg1:Number){
if (((((!(walkAllow)) && ((man_mc.visible == true)))) && ((((((((((((man_mc.currentLabel == "dress")) || ((man_mc.currentLabel == "stand1")))) || ((man_mc.currentLabel == "stand2")))) || ((man_mc.currentLabel == "stand3")))) || ((man_mc.currentLabel == "light")))) || ((man_mc.currentLabel == "specs")))))){
clickX = _arg1;
walkAllow = true;
if ((((man_mc.scaleX > 0)) && ((clickX < man_mc.x)))){
leftMove = true;
man_mc.scaleX = (man_mc.scaleX * -1);
} else {
if ((((man_mc.scaleX < 0)) && ((clickX > man_mc.x)))){
rightMove = true;
man_mc.scaleX = (man_mc.scaleX * -1);
} else {
if (clickX < man_mc.x){
leftMove = true;
} else {
if (clickX > man_mc.x){
rightMove = true;
};
};
};
};
if (man_mc.currentLabel == "stand1"){
man_mc.gotoAndStop("walk1");
} else {
if ((((man_mc.currentLabel == "stand2")) || ((man_mc.currentLabel == "light")))){
man_mc.gotoAndStop("walk2");
} else {
if (man_mc.currentLabel == "stand3"){
man_mc.gotoAndStop("walk3");
} else {
if (man_mc.currentLabel == "specs"){
man_mc.gotoAndStop("walk4");
} else {
if (man_mc.currentLabel == "dress"){
man_mc.gotoAndStop("walk5");
};
};
};
};
};
manWalkFun();
};
}
public function muteFun(_arg1:MouseEvent){
muteFunction();
}
public function zoomMC(_arg1:MouseEvent){
if (((((!(zoomVar)) && (!((man_mc.currentLabel == "walk2"))))) && (!(puzzleVar)))){
zoomVar = true;
man_mc.visible = false;
bck_btn.visible = true;
playSound("zoom");
TweenLite.to(bg_mc, 1, {scaleX:3, scaleY:3});
};
}
public function zoomFun(_arg1:MouseEvent){
if (!objectVar){
playSound("invclick");
objectVar = true;
stopAction_mc.visible = true;
if (!thumbPlaced){
thumbPan_mc.thuView_mc.gotoAndStop(1);
} else {
thumbPan_mc.thuView_mc.gotoAndStop(2);
};
TweenLite.to(thumbPan_mc, 0.5, {x:337, y:290, scaleX:1.1, scaleY:1.1, onComplete:hideStopAction});
};
}
public function takeInventory(_arg1:MouseEvent){
subtakeInv((_arg1.currentTarget as MovieClip), int(_arg1.currentTarget.name.substr((_arg1.currentTarget.name.length - 1))));
}
public function objectFindFun(_arg1:MouseEvent){
var _local2:String;
var _local3:Class;
var _local4:MovieClip;
if (man_mc.currentLabel == "stand3"){
if ((((_arg1.currentTarget.name == "sObj2")) || ((_arg1.currentTarget.name == "sObj3")))){
man_mc.gotoAndStop("up3");
};
playSound("invclick");
_arg1.currentTarget.visible = false;
_local2 = _arg1.currentTarget.name.substr(4);
_local3 = (getDefinitionByName(("o" + _local2)) as Class);
_local4 = new (_local3);
_local4.x = _arg1.currentTarget.x;
_local4.y = _arg1.currentTarget.y;
addChild(_local4);
subtakeInv(_local4, Number(_local2));
};
}
public function solveFun(){
if (puzzleVar){
man_mc.man.gotoAndPlay(21);
};
}
public function boardFun(_arg1:MouseEvent){
if (board_mc.currentFrame == 1){
playSound("electricdoor");
board_mc.gotoAndPlay(2);
};
}
public function leaveObject(_arg1:MouseEvent){
var _local2:Boolean;
var _local3:int;
if (dummyObject != null){
trace(man_mc.currentLabel);
if (((!(walkAllow)) && ((((((((((((((man_mc.currentLabel == "dress")) || ((man_mc.currentLabel == "stand1")))) || ((man_mc.currentLabel == "stand2")))) || ((man_mc.currentLabel == "stand3")))) || ((man_mc.currentLabel == "light")))) || ((man_mc.currentLabel == "specs")))) || ((man_mc.currentLabel == "jump")))))){
_local2 = false;
if (currentLabel == "s1"){
if (dummyObject.id == 1){
if (dummyObject.hitTestObject(man_mc)){
if (man_mc.currentLabel == "stand1"){
specsVar = true;
man_mc.gotoAndStop("specs");
} else {
if (man_mc.currentLabel == "dress"){
specsVar = true;
man_mc.gotoAndStop("stand2");
};
};
_local2 = true;
dummyObject.visible = false;
view1Fun();
};
};
if (dummyObject.id == 9){
if (((dummyObject.hitTestObject(cup1.keyHit)) && ((cup1.currentFrame == 1)))){
_local2 = true;
dummyObject.visible = false;
cup1.gotoAndPlay(2);
};
};
if (dummyObject.id == 10){
if (dummyObject.hitTestObject(man_mc)){
_local2 = true;
dummyObject.visible = false;
changeDress = true;
view1Fun();
if (man_mc.currentLabel == "stand1"){
specsVar = true;
man_mc.gotoAndStop("dress");
} else {
if (man_mc.currentLabel == "specs"){
specsVar = true;
man_mc.gotoAndStop("stand2");
};
};
};
};
};
if (currentLabel == "s2"){
if (dummyObject.id == 2){
if (((dummyObject.hitTestObject(exp_mc.hit)) && ((exp_mc.currentFrame == 1)))){
_local2 = true;
dummyObject.visible = false;
exp_mc.gotoAndPlay(2);
};
};
if (dummyObject.id == 3){
if (((dummyObject.hitTestObject(exp_mc.hit)) && ((exp_mc.currentFrame == 35)))){
_local2 = true;
dummyObject.visible = false;
exp_mc.gotoAndPlay(36);
};
};
if (dummyObject.id == 4){
if (((dummyObject.hitTestObject(bird_mc)) && ((bird_mc.currentFrame == 1)))){
_local2 = true;
dummyObject.visible = false;
bird_mc.gotoAndStop(2);
};
};
};
if (currentLabel == "s3"){
if ((((dummyObject.id == 5)) && (shockVar))){
if (((dummyObject.hitTestObject(door_mc.keyHit)) && ((door_mc.currentFrame == 1)))){
_local2 = true;
dummyObject.visible = false;
door_mc.gotoAndPlay(2);
};
};
};
if (currentLabel == "s4"){
if (dummyObject.id == 8){
if (dummyObject.hitTestObject(man_mc)){
_local2 = true;
dummyObject.visible = false;
dark_mc.gotoAndStop(2);
man_mc.visible = false;
};
};
};
if (currentLabel == "s5"){
if (dummyObject.id == 7){
if (dummyObject.hitTestObject(bg_mc.zoom_mc)){
_local2 = true;
dummyObject.visible = false;
bg_mc.zoom_mc.gotoAndPlay(2);
thumbPlaced = true;
};
};
};
if (currentLabel == "s9"){
if (dummyObject.id == 12){
if (((dummyObject.hitTestObject(ext_mc)) && ((ext_mc.currentFrame == 1)))){
_local2 = true;
dummyObject.visible = false;
ext_mc.gotoAndPlay(2);
};
};
if (dummyObject.id == 13){
if (((dummyObject.hitTestObject(fire_mc)) && ((fire_mc.currentFrame == 1)))){
_local2 = true;
dummyObject.visible = false;
fire_mc.gotoAndStop(2);
};
};
};
if (currentLabel == "s10"){
if (dummyObject.id == 14){
if (((dummyObject.hitTestObject(man_mc)) && (!((man_mc.currentLabel == "final"))))){
_local2 = true;
dummyObject.visible = false;
man_mc.gotoAndStop("final");
setTimeout(gameEndFun, 3000);
};
};
if (dummyObject.id == 15){
if (((dummyObject.hitTestObject(exp_mc.can_mc)) && ((exp_mc.currentFrame == 1)))){
_local2 = true;
dummyObject.visible = false;
exp_mc.can_mc.gotoAndStop(2);
};
};
if (dummyObject.id == 16){
if (((dummyObject.hitTestObject(exp_mc.tube_mc)) && ((exp_mc.currentFrame == 1)))){
_local2 = true;
dummyObject.visible = false;
exp_mc.tube_mc.gotoAndStop(2);
};
};
if (dummyObject.id == 19){
if (((dummyObject.hitTestObject(exp_mc.beaker_mc)) && ((exp_mc.currentFrame == 1)))){
_local2 = true;
dummyObject.visible = false;
exp_mc.beaker_mc.gotoAndStop(2);
};
};
if (dummyObject.id == 17){
if (((dummyObject.hitTestObject(exp_mc.hit)) && ((exp_mc.currentFrame == 1)))){
_local2 = true;
dummyObject.visible = false;
exp_mc.gotoAndPlay(2);
};
};
if (dummyObject.id == 18){
if (((dummyObject.hitTestObject(exp_mc.hit)) && ((exp_mc.currentFrame == 43)))){
_local2 = true;
dummyObject.visible = false;
exp_mc.gotoAndPlay(44);
};
};
};
};
if (!_local2){
getObject = 0;
Mouse.show();
stopDrag();
_local3 = getFreeSpace();
dummyObject.pressed = 0;
dummyObject.refId = _local3;
panel_mc[("ref" + _local3)].objectId = dummyObject.id;
stopAction_mc.visible = true;
TweenLite.to(panel_mc[("obj" + dummyObject.id)], 0.5, {x:panel_mc[("ref" + _local3)].x, y:panel_mc[("ref" + _local3)].y, onComplete:resetMc, onCompleteParams:[panel_mc[("obj" + dummyObject.id)]]});
dummyObject = null;
} else {
Mouse.show();
stopDrag();
dummyObject = null;
objectTaken = 0;
getObject = 0;
};
};
}
public function showThumb(){
objectVar = false;
}
public function closeBook(_arg1:MouseEvent){
TweenLite.to(bookPan_mc, 0.5, {x:314, y:855, scaleX:0.1, scaleY:0.1, onComplete:showBook});
}
public function init(){
i = 1;
while (i <= totalObjects) {
panel_mc[("obj" + i)].y = 650;
panel_mc[("obj" + i)].visible = true;
panel_mc[("obj" + i)].addEventListener(MouseEvent.MOUSE_DOWN, takeObject);
panel_mc[("obj" + i)].addEventListener(MouseEvent.MOUSE_OVER, overObject);
viewArray[i] = 0;
panel_mc[("ref" + i)].free = 0;
panel_mc[("ref" + i)].objectId = 0;
i++;
};
clickObj = false;
}
public function muteFunction(){
if (mute_mc.currentFrame == 1){
muteVar = true;
bgChannel.stop();
SoundMixer.stopAll();
mute_mc.gotoAndStop(2);
} else {
muteVar = false;
mute_mc.gotoAndStop(1);
bgChannel = bgSndObj.play(0, int.MAX_VALUE);
};
}
public function addFun(){
var _local1:Loader;
var _local2:String;
var _local3:URLRequest;
if (this.loaderInfo.url.match("www.timefall.com")){
_local1 = new Loader();
_local2 = ((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
_local3 = new URLRequest(_local2);
_local1.load(_local3);
adBox.addChild(_local1);
adBox.visible = true;
};
}
public function getAction(_arg1:ContextMenuEvent){
navigateToURL(new URLRequest("http://www.quicksailor.com/"), "_blank");
}
public function overObject(_arg1:MouseEvent){
if (objectTaken == 0){
sizingMc = (_arg1.currentTarget as MovieClip);
TweenLite.to(sizingMc, 0.3, {scaleX:1.2, scaleY:1.2});
sizingMc.addEventListener(MouseEvent.MOUSE_OUT, outObject);
};
}
public function manMoveFun(_arg1:Event){
if (walkAllow){
if ((((man_mc.x >= (clickX + 20))) && (leftMove))){
man_mc.x = (man_mc.x - speed);
} else {
if ((((man_mc.x <= (clickX - 20))) && (rightMove))){
man_mc.x = (man_mc.x + speed);
if ((((((man_mc.x > 270)) && ((currentLabel == "s2")))) && (birdAttack))){
birdAttack = false;
bird_mc.gotoAndStop(3);
};
} else {
if ((((man_mc.x > 600)) && (rightMove))){
man_mc.x = (man_mc.x + speed);
if (man_mc.x > 600){
if ((((currentFrame < 17)) && (!((currentLabel == "s7"))))){
nextFrame();
man_mc.x = 100;
setTimeout(removeWalkFun, 200);
} else {
removeWalkFun();
};
};
} else {
if ((((man_mc.x < 100)) && (leftMove))){
man_mc.x = (man_mc.x - speed);
if (man_mc.x < 0){
if (currentFrame > 2){
prevFrame();
man_mc.x = 500;
removeWalkFun();
} else {
removeWalkFun();
};
};
} else {
removeWalkFun();
};
};
};
};
};
}
public function gameEndFun(){
clearListener();
gotoAndStop("gameEnds");
}
public function playSound2(_arg1:String){
var _local2:Class;
var _local3:Object;
var _local4:SoundTransform;
if (mute_mc.currentFrame == 1){
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
_local4 = new SoundTransform();
longChannel = _local3.play(0, int.MAX_VALUE);
if (_arg1 == "alarm"){
_local4.volume = 0.1;
} else {
_local4.volume = 0.5;
};
longChannel.soundTransform = _local4;
};
}
public function showBook2(){
objectVar = false;
panel_mc.obj11.visible = true;
}
public function showObjTip(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Number){
if (objectTaken == 0){
objMsg.visible = true;
objMsg.text_txt.text = _arg1;
objMsg.width = _arg2;
objMsg.alpha = 0;
TweenLite.to(objMsg, 0.5, {alpha:1});
};
}
public function hideText(_arg1:MouseEvent){
if (objectTaken == 0){
objMsg.text_txt.text = "";
hideObjTip();
};
}
public function dressOut(_arg1:MouseEvent){
TweenLite.to(dressMc, 0.3, {scaleX:1, scaleY:1});
dressMc.removeEventListener(MouseEvent.MOUSE_OUT, dressOut);
}
public function playFun(_arg1:MouseEvent){
MochiBot.track(this, "dc5ba3b7");
gotoAndStop("introPage");
}
public function manFun(_arg1:MouseEvent){
if (currentLabel == "s5"){
if (((!(jumpVar)) && ((viewArray[7] == 1)))){
jumpVar = true;
manPostureFun(160);
};
if (((((puzzleVar) && ((man_mc.currentLabel == "jump")))) && (!(downVar)))){
downVar = true;
man_mc.gotoAndStop("jumpDown");
};
};
if (currentLabel == "s7"){
trace(("pos=" + man_mc.x));
if (man_mc.x == 100){
trap = 1;
manPostureFun(235);
} else {
if ((((((man_mc.x > 215)) && ((man_mc.x < 220)))) && ((man_mc.currentLabel == "stand2")))){
trace("aaa");
manPostureFun(317);
} else {
if ((((((man_mc.x > 298)) && ((man_mc.x < 303)))) && ((man_mc.currentLabel == "stand2")))){
trace("third");
trap = 2;
manPostureFun(415);
} else {
if ((((((man_mc.x > 393)) && ((man_mc.x < 397)))) && ((man_mc.currentLabel == "stand2")))){
trace("four");
manPostureFun(510);
} else {
if ((((((man_mc.x > 487)) && ((man_mc.x < 503)))) && ((man_mc.currentLabel == "stand2")))){
trace("four");
trap = 3;
manPostureFun(610);
} else {
if ((((((man_mc.x > 588)) && ((man_mc.x < 593)))) && ((man_mc.currentLabel == "stand2")))){
manPostureFun(640);
};
};
};
};
};
};
};
}
public function showText(_arg1:MouseEvent){
if (objectTaken == 0){
if (objName[_arg1.target.name] != undefined){
showObjTip(objName[_arg1.target.name], 100, _arg1.currentTarget.x, _arg1.currentTarget.y);
};
};
}
public function removeWalkFun(){
leftMove = false;
rightMove = false;
walkAllow = false;
stage.removeEventListener(Event.ENTER_FRAME, manMoveFun);
if (currentLabel == "s1"){
if (((((!((viewArray[1] == 1))) && (clickObj))) && ((currentObj == 1)))){
clickObj = false;
cup1.sObj1_2.visible = false;
if (man_mc.currentLabel == "walk1"){
man_mc.gotoAndStop("up1");
} else {
if (man_mc.currentLabel == "walk4"){
man_mc.gotoAndStop("up4");
} else {
if (man_mc.currentLabel == "walk5"){
man_mc.gotoAndStop("dress");
};
};
};
takeLobj(1, 335, 170);
} else {
if (((((!((viewArray[10] == 1))) && (clickObj))) && ((currentObj == 10)))){
clickObj = false;
dress_mc.visible = false;
if (man_mc.currentLabel == "walk1"){
man_mc.gotoAndStop("up1");
} else {
if (man_mc.currentLabel == "walk4"){
man_mc.gotoAndStop("up4");
} else {
if (man_mc.currentLabel == "walk5"){
man_mc.gotoAndStop("dress");
};
};
};
takeLobj(10, dress_mc.x, dress_mc.y);
} else {
if (((((!((viewArray[9] == 1))) && (clickObj))) && ((currentObj == 9)))){
trace("obj9");
clickObj = false;
sObj9.visible = false;
if (man_mc.currentLabel == "walk1"){
man_mc.gotoAndStop("up1");
} else {
if (man_mc.currentLabel == "walk4"){
man_mc.gotoAndStop("up4");
} else {
if (man_mc.currentLabel == "walk5"){
man_mc.gotoAndStop("dress");
};
};
};
takeLobj(9, sObj9.x, sObj9.y);
};
};
};
} else {
if (currentLabel == "s2"){
if (exp_mc.currentFrame == 147){
exp_mc.sObj4_2.visible = false;
man_mc.gotoAndStop("up3");
takeLobj(4, 280, 227);
} else {
if (!birdAttack){
man_mc.gotoAndStop("stand3");
};
};
} else {
if (currentLabel == "s3"){
if (((((((!((viewArray[5] == 1))) && (clickObj))) && (!(manDead)))) && ((currentObj == 5)))){
clickObj = false;
sObj5.visible = false;
man_mc.gotoAndStop("up2");
takeLobj(5, sObj5.x, sObj5.y);
} else {
if (((((((!((viewArray[6] == 1))) && (clickObj))) && (!(manDead)))) && ((currentObj == 6)))){
clickObj = false;
sObj6.visible = false;
man_mc.gotoAndStop("up2");
takeLobj(6, sObj6.x, sObj6.y);
} else {
if (((!(shockVar)) && (manDead))){
man_mc.gotoAndStop("shock");
} else {
manDead = false;
man_mc.gotoAndStop("stand2");
};
};
};
} else {
if (currentLabel == "s4"){
if (((((!((viewArray[8] == 1))) && (clickObj))) && ((currentObj == 8)))){
clickObj = false;
sObj8.visible = false;
man_mc.gotoAndStop("up2");
takeLobj(8, sObj8.x, sObj8.y);
} else {
man_mc.gotoAndStop("stand2");
};
} else {
if (currentLabel == "s5"){
if (((((!((viewArray[7] == 1))) && (clickObj))) && ((currentObj == 7)))){
clickObj = false;
bg_mc.sObj7.visible = false;
man_mc.gotoAndStop("up2");
takeLobj(7, 330, 246);
} else {
if (jumpVar){
if (man_mc.scaleX < 0){
man_mc.scaleX = (man_mc.scaleX * -1);
};
man_mc.gotoAndStop("jump");
} else {
man_mc.gotoAndStop("stand2");
};
};
} else {
if (currentLabel == "s6"){
if (((((!((viewArray[11] == 1))) && (clickObj))) && ((currentObj == 11)))){
clickObj = false;
cup2.sObj11_2.visible = false;
man_mc.gotoAndStop("up2");
takeLobj(11, 212, 360);
} else {
man_mc.gotoAndStop("stand2");
};
} else {
if (currentLabel == "s7"){
trace(((("xx=" + man_mc.x) + ":") + trap));
man_mc.gotoAndStop("stand2");
if ((((((man_mc.x > 100)) && ((man_mc.x < 150)))) && ((trap == 1)))){
man_mc.x = 100;
};
if ((((((((trap == 1)) && ((man_mc.currentLabel == "stand2")))) && ((machine_mc.mac1.currentLabel == "down1")))) && ((((man_mc.x > 215)) && ((man_mc.x < 220)))))){
trace("trap1");
man_mc.visible = false;
machine_mc.mac1.gotoAndStop("catch");
} else {
if ((((((((trap == 2)) && ((man_mc.currentLabel == "stand2")))) && ((machine_mc.mac2.currentLabel == "down1")))) && ((((man_mc.x > 393)) && ((man_mc.x < 397)))))){
trace("trap2");
man_mc.visible = false;
machine_mc.mac2.gotoAndStop("catch");
} else {
if ((((((((trap == 3)) && ((man_mc.currentLabel == "stand2")))) && ((machine_mc.mac3.currentLabel == "down1")))) && ((((man_mc.x > 588)) && ((man_mc.x < 593)))))){
trace("trap2");
man_mc.visible = false;
machine_mc.mac3.gotoAndStop("catch");
} else {
if ((((((man_mc.x > 627)) && ((man_mc.x < 632)))) && ((man_mc.currentLabel == "stand2")))){
nextFrame();
man_mc.x = 100;
man_mc.gotoAndStop("stand2");
} else {
man_mc.gotoAndStop("stand2");
};
};
};
};
} else {
if (currentLabel == "s8"){
man_mc.visible = false;
walk_mc.visible = true;
walk_mc.gotoAndPlay(2);
} else {
if (currentLabel == "s9"){
if (((((!((viewArray[12] == 1))) && (clickObj))) && ((currentObj == 12)))){
clickObj = false;
sObj12.visible = false;
man_mc.gotoAndStop("up2");
takeLobj(12, sObj12.x, sObj12.y);
} else {
man_mc.gotoAndStop("stand2");
};
} else {
if (currentLabel == "s10"){
if (((((!((viewArray[17] == 1))) && (clickObj))) && ((currentObj == 17)))){
clickObj = false;
draw1.sObj17_2.visible = false;
man_mc.gotoAndStop("up2");
takeLobj(17, 53, 390);
} else {
if (((((!((viewArray[18] == 1))) && (clickObj))) && ((currentObj == 18)))){
clickObj = false;
draw1.sObj18_2.visible = false;
man_mc.gotoAndStop("up2");
takeLobj(18, 90, 390);
} else {
if (((((!((viewArray[14] == 1))) && (clickObj))) && ((currentObj == 14)))){
clickObj = false;
exp_mc.beaker_mc.visible = false;
exp_mc.gotoAndStop(356);
man_mc.gotoAndStop("up2");
takeLobj(14, 570, 270);
} else {
if (((((!((viewArray[15] == 1))) && (clickObj))) && ((currentObj == 15)))){
clickObj = false;
draw4.sObj15_2.visible = false;
man_mc.gotoAndStop("up2");
takeLobj(15, 420, 390);
} else {
if (((((!((viewArray[16] == 1))) && (clickObj))) && ((currentObj == 16)))){
clickObj = false;
draw5.sObj16_2.visible = false;
man_mc.gotoAndStop("up2");
takeLobj(16, 570, 390);
} else {
if (((((!((viewArray[19] == 1))) && (clickObj))) && ((currentObj == 19)))){
clickObj = false;
draw3.sObj19_2.visible = false;
man_mc.gotoAndStop("up2");
takeLobj(19, 316, 385);
} else {
man_mc.gotoAndStop("stand2");
};
};
};
};
};
};
} else {
man_mc.gotoAndStop("stand2");
};
};
};
};
};
};
};
};
};
};
}
public function tryFun(){
playSound("tryagain");
stopAction_mc.visible = true;
TweenLite.to(try_mc, 1, {y:281});
}
public function rightFun(_arg1:MouseEvent){
if (!walkAllow){
if (currentLabel == "s1"){
if (view1Var){
manPostureFun(_arg1.currentTarget.x);
} else {
cantTakeFun();
};
};
if (currentLabel == "s2"){
trace(("bird=" + bird_mc.currentFrame));
if (bird_mc.currentFrame == 2){
manPostureFun(_arg1.currentTarget.x);
} else {
if (bird_mc.currentFrame == 1){
birdAttack = true;
manPostureFun(420);
};
};
};
if (currentLabel == "s3"){
if (!shockVar){
manDead = true;
manPostureFun(590);
} else {
if (doorOpen){
manPostureFun(_arg1.currentTarget.x);
} else {
cantTakeFun();
};
};
};
if (currentLabel == "s4"){
if (dark_mc.currentFrame == 2){
manPostureFun(_arg1.currentTarget.x);
} else {
cantTakeFun();
};
};
if (currentLabel == "s5"){
if (downVar){
manPostureFun(_arg1.currentTarget.x);
} else {
cantTakeFun();
};
};
if (currentLabel == "s6"){
if (shutter_mc.currentFrame == 24){
manPostureFun(_arg1.currentTarget.x);
} else {
cantTakeFun();
};
};
if (currentLabel == "s7"){
cantTakeFun();
};
if (currentLabel == "s8"){
if (iceMelted){
manPostureFun(219);
} else {
cantTakeFun();
};
};
if (currentLabel == "s9"){
if (hole_mc.visible == false){
manPostureFun(_arg1.currentTarget.x);
} else {
cantTakeFun();
};
};
};
}
public function manViewFun(){
zoomVar = false;
man_mc.visible = true;
}
public function interChangeObject(_arg1:int){
var _local2:int;
stopAction_mc.visible = true;
objectInterchange = true;
_local2 = 0;
_local2 = _arg1;
while (_local2 < totalObjects) {
if (panel_mc[("ref" + (_local2 + 1))].objectId != 0){
trace(("r=" + _local2));
TweenLite.to(panel_mc[("obj" + panel_mc[("ref" + (_local2 + 1))].objectId)], 0.25, {x:panel_mc[("ref" + _local2)].x, onComplete:hideStopAction});
panel_mc[("obj" + panel_mc[("ref" + (_local2 + 1))].objectId)].refId = _local2;
panel_mc[("ref" + _local2)].objectId = panel_mc[("ref" + (_local2 + 1))].objectId;
panel_mc[("ref" + (_local2 + 1))].objectId = 0;
panel_mc[("ref" + _local2)].free = 1;
panel_mc[("ref" + (_local2 + 1))].free = 0;
};
_local2++;
};
stopAction_mc.visible = false;
}
public function clearListener(){
clearInterval(tid);
stage.removeEventListener(Event.ENTER_FRAME, moveTip);
stage.removeEventListener(MouseEvent.MOUSE_OVER, showText);
stage.removeEventListener(MouseEvent.MOUSE_OUT, hideText);
stage.removeEventListener(Event.ENTER_FRAME, manMoveFun);
stage.removeEventListener(MouseEvent.MOUSE_UP, leaveObject);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, listenKey);
}
public function stopSound(){
subSoundChannel1.stop();
}
public function takeLobj(_arg1:Number, _arg2:Number, _arg3:Number){
var _local4:Class;
var _local5:MovieClip;
if (!clickObj){
playSound("invclick");
_local4 = (getDefinitionByName(("o" + _arg1)) as Class);
_local5 = new (_local4);
_local5.x = _arg2;
_local5.y = _arg3;
addChild(_local5);
subtakeInv(_local5, _arg1);
};
}
public function playSound(_arg1:String){
var _local2:Class;
var _local3:Object;
var _local4:SoundTransform;
if (mute_mc.currentFrame == 1){
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
subSoundChannel1 = _local3.play();
_local4 = new SoundTransform();
_local4.volume = 0.5;
subSoundChannel1.soundTransform = _local4;
} else {
stopSound();
};
}
public function specsFun(){
if (!clickObj){
playSound("invclick");
clickObj = true;
currentObj = 1;
manPostureFun(340);
};
}
public function shutterFun(_arg1:MouseEvent){
if ((((shutter_mc.currentFrame == 1)) && ((viewArray[11] == 1)))){
shutter_mc.gotoAndPlay(2);
};
}
public function forSpecialStone(){
var _local1:int;
objectTaken = 0;
getObject = 0;
Mouse.show();
stopDrag();
_local1 = getFreeSpace();
trace(("fspace=" + _local1));
specialStone.pressed = 0;
specialStone.refId = _local1;
panel_mc[("ref" + _local1)].objectId = specialStone.id;
stopAction_mc.visible = true;
TweenLite.to(panel_mc[("obj" + specialStone.id)], 0.5, {x:panel_mc[("ref" + _local1)].x, y:panel_mc[("ref" + _local1)].y, onComplete:resetMc, onCompleteParams:[panel_mc[("obj" + specialStone.id)]]});
specialStone = null;
}
public function sObj5Fun(_arg1:MouseEvent){
if (!clickObj){
playSound("invclick");
clickObj = true;
currentObj = _arg1.currentTarget.name.substr(4);
trace(("currentObj=" + currentObj));
manPostureFun(_arg1.currentTarget.x);
};
}
public function sObj12Fun(_arg1:MouseEvent){
playSound("invclick");
currentObj = _arg1.currentTarget.name.substr(4);
clickObj = true;
manPostureFun(_arg1.currentTarget.x);
}
public function takeObject(_arg1:MouseEvent){
if ((((objectTaken == 0)) && (!(still)))){
hideObjTip();
trace(("currentId=" + _arg1.currentTarget.id));
if ((((_arg1.currentTarget.id == 6)) && (!(objectVar)))){
playSound("invclick");
objectVar = true;
stopAction_mc.visible = true;
panel_mc.obj6.visible = false;
TweenLite.to(bookPan_mc, 0.5, {x:337, y:290, scaleX:1.1, scaleY:1.1, onComplete:hideStopAction});
} else {
if ((((_arg1.currentTarget.id == 11)) && (!(objectVar)))){
playSound("invclick");
objectVar = true;
stopAction_mc.visible = true;
panel_mc.obj11.visible = false;
TweenLite.to(book2Pan_mc, 0.5, {x:337, y:290, scaleX:1.1, scaleY:1.1, onComplete:hideStopAction});
} else {
dummyObject = MovieClip(_arg1.currentTarget);
dummyObject.scaleX = 1;
dummyObject.scaleY = 1;
Mouse.hide();
objectInterchange = false;
objectTaken = dummyObject.refId;
if (dummyObject.pressed == 0){
panel_mc[("ref" + dummyObject.refId)].free = 0;
};
dummyObject.startDrag(true);
};
};
};
}
public function panelOut(_arg1:MouseEvent){
if (((!((objectTaken == 0))) && ((objectInterchange == false)))){
interChangeObject(objectTaken);
getObject = objectTaken;
} else {
if (objectTaken == 0){
};
};
}
public function stimer(){
tim++;
if (tim == 60){
tim = 0;
min++;
};
}
public function closeThumb(_arg1:MouseEvent){
TweenLite.to(thumbPan_mc, 0.5, {x:314, y:855, scaleX:0.1, scaleY:0.1, onComplete:showThumb});
}
public function draw1Fun(_arg1:MouseEvent){
var _local2:String;
trace(_arg1.currentTarget.name.substr(6));
_local2 = _arg1.currentTarget.name.substr(6);
if (this[("draw" + _local2)].currentFrame == 1){
this[("handle" + _local2)].visible = false;
this[("draw" + _local2)].gotoAndPlay(2);
};
}
public function doorFun(_arg1:MouseEvent){
manPostureFun(590);
}
public function walkFun(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.timefall.com/games/point-and-click/clumsy-scientist-walkthrough/"), "_blank");
}
public function trapFun(){
if ((((((((trap == 1)) && ((man_mc.visible == true)))) && ((man_mc.currentLabel == "stand2")))) && ((((man_mc.x > 215)) && ((man_mc.x < 220)))))){
man_mc.visible = false;
man_mc.gotoAndStop("stand2");
machine_mc.mac1.gotoAndStop("catch");
} else {
if ((((((((trap == 2)) && ((man_mc.visible == true)))) && ((man_mc.currentLabel == "stand2")))) && ((((man_mc.x > 393)) && ((man_mc.x < 397)))))){
man_mc.visible = false;
man_mc.gotoAndStop("stand2");
machine_mc.mac2.gotoAndStop("catch");
} else {
if ((((((((trap == 3)) && ((man_mc.visible == true)))) && ((man_mc.currentLabel == "stand2")))) && ((((man_mc.x > 588)) && ((man_mc.x < 593)))))){
man_mc.visible = false;
man_mc.gotoAndStop("stand2");
machine_mc.mac3.gotoAndStop("catch");
};
};
};
}
public function changeObject(_arg1:MovieClip){
var _local2:int;
_local2 = _arg1.id;
_arg1.x = -100;
viewArray[_local2] = 1;
panel_mc[("obj" + _local2)].tabEnabled = false;
panel_mc[("obj" + _local2)].buttonMode = true;
panel_mc[("obj" + _local2)].pressed = 0;
panel_mc[("obj" + _local2)].id = _local2;
panel_mc[("obj" + _local2)].refId = _arg1.refId;
panel_mc[("ref" + _arg1.refId)].objectId = _local2;
panel_mc[("obj" + _local2)].x = panel_mc[("ref" + _arg1.refId)].x;
panel_mc[("obj" + _local2)].y = panel_mc[("ref" + _arg1.refId)].y;
stopAction_mc.visible = false;
}
public function listenKey(_arg1:KeyboardEvent){
if ((((_arg1.keyCode == 77)) || ((_arg1.keyCode == 109)))){
muteFunction();
};
}
public function moveTip(_arg1:Event){
if (objMsg.visible == true){
objMsg.x = mouseX;
objMsg.y = mouseY;
};
}
public function cup2Fun(_arg1:MouseEvent){
if (cup2.currentFrame == 1){
handle_mc.visible = false;
cup2.gotoAndPlay(2);
};
}
public function playTimeFall(){
var _local1:timefallSnd;
_local1 = new timefallSnd();
_local1.play();
}
public function getFreeSpace():int{
var _local1:int;
_local1 = 0;
_local1 = 1;
while (_local1 <= totalObjects) {
if (panel_mc[("ref" + _local1)].free == 0){
panel_mc[("ref" + _local1)].free = 1;
break;
};
_local1++;
};
return (_local1);
}
public function resetMc(_arg1:MovieClip){
objectTaken = 0;
stopAction_mc.visible = false;
_arg1.pressed = 0;
}
public function sObj7Fun(_arg1:MouseEvent){
playSound("invclick");
currentObj = _arg1.currentTarget.name.substr(4);
clickObj = true;
manPostureFun(330);
}
public function backFun(_arg1:MouseEvent){
if (((zoomVar) && (!(downVar)))){
bck_btn.visible = false;
playSound("zoom");
TweenLite.to(bg_mc, 1, {scaleX:1, scaleY:1, onComplete:solveFun});
setTimeout(manViewFun, 800);
};
}
public function closeBook2(_arg1:MouseEvent){
TweenLite.to(book2Pan_mc, 0.5, {x:314, y:855, scaleX:0.1, scaleY:0.1, onComplete:showBook2});
}
public function showBook(){
objectVar = false;
panel_mc.obj6.visible = true;
}
public function changeFrame(_arg1:String){
if (_arg1 == "s1"){
right_btn.visible = true;
left_btn.visible = true;
} else {
if ((((_arg1 == "s3")) || ((_arg1 == "s2")))){
right_btn.visible = false;
} else {
right_btn.visible = false;
left_btn.visible = false;
};
};
}
public function subtakeInv(_arg1:MovieClip, _arg2:int){
var _local3:int;
_local3 = getFreeSpace();
if (_local3 != 0){
_arg1.refId = _local3;
_arg1.id = _arg2;
stopAction_mc.visible = true;
TweenLite.to(_arg1, 0.75, {x:panel_mc[("ref" + _local3)].x, y:panel_mc[("ref" + _local3)].y, onComplete:changeObject, onCompleteParams:[MovieClip(_arg1)]});
};
}
public function dressOver(_arg1:MouseEvent){
dressMc = (_arg1.currentTarget as MovieClip);
TweenLite.to(dressMc, 0.3, {scaleX:1.2, scaleY:1.2});
dressMc.addEventListener(MouseEvent.MOUSE_OUT, dressOut);
}
public function stopSound2(){
if (longChannel.position > 0){
longChannel.stop();
};
}
public function sObj8Fun(_arg1:MouseEvent){
playSound("invclick");
currentObj = _arg1.currentTarget.name.substr(4);
clickObj = true;
manPostureFun(_arg1.currentTarget.x);
}
public function view1Fun(){
if (((changeDress) && (specsVar))){
view1Var = true;
};
}
public function hideStopAction1(_arg1:int){
stopAction_mc.visible = false;
panel_mc[("obj" + _arg1)].visible = true;
}
public function hideStopAction(){
stopAction_mc.visible = false;
}
public function dressFun(_arg1:MouseEvent){
if (!clickObj){
playSound("invclick");
clickObj = true;
currentObj = 10;
trace(("currentObj=" + currentObj));
manPostureFun(548);
};
}
public function bgSndFun(){
SoundMixer.stopAll();
bgSndObj = new bgSound();
bgChannel = bgSndObj.play(0, int.MAX_VALUE);
}
}
}//package ClumsyScientist_fla
Section 76
//mancolor2copy_122 (ClumsyScientist_fla.mancolor2copy_122)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class mancolor2copy_122 extends MovieClip {
public function mancolor2copy_122(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
MovieClip(parent).gotoAndStop("stand1");
}
}
}//package ClumsyScientist_fla
Section 77
//mancolor5copy_140 (ClumsyScientist_fla.mancolor5copy_140)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class mancolor5copy_140 extends MovieClip {
public function mancolor5copy_140(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
MovieClip(parent).gotoAndStop("stand2");
}
}
}//package ClumsyScientist_fla
Section 78
//mancolor5copy4_139 (ClumsyScientist_fla.mancolor5copy4_139)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class mancolor5copy4_139 extends MovieClip {
public function mancolor5copy4_139(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
MovieClip(parent).gotoAndStop("stand1");
}
}
}//package ClumsyScientist_fla
Section 79
//mancolor5copy5ch3_145 (ClumsyScientist_fla.mancolor5copy5ch3_145)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class mancolor5copy5ch3_145 extends MovieClip {
public function mancolor5copy5ch3_145(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
MovieClip(root).tryFun();
}
}
}//package ClumsyScientist_fla
Section 80
//mancolorcopy4sci1_151 (ClumsyScientist_fla.mancolorcopy4sci1_151)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class mancolorcopy4sci1_151 extends MovieClip {
public function mancolorcopy4sci1_151(){
addFrameScript(19, frame20, 61, frame62);
}
function frame20(){
stop();
}
function frame62(){
stop();
}
}
}//package ClumsyScientist_fla
Section 81
//mc_skip_but_03aqqlnewaa_21 (ClumsyScientist_fla.mc_skip_but_03aqqlnewaa_21)
package ClumsyScientist_fla {
import flash.display.*;
import flash.events.*;
public dynamic class mc_skip_but_03aqqlnewaa_21 extends MovieClip {
public var hit_mc:MovieClip;
public function mc_skip_but_03aqqlnewaa_21(){
addFrameScript(0, frame1, 10, frame11);
}
public function onMouseOver(_arg1:MouseEvent):void{
gotoAndPlay("over");
}
function frame1(){
stop();
this.hitArea = hit_mc;
hit_mc.visible = false;
mouseChildren = false;
buttonMode = true;
addEventListener(MouseEvent.ROLL_OVER, onMouseOver);
addEventListener(MouseEvent.ROLL_OUT, onMouseOut);
addEventListener(MouseEvent.CLICK, onClick);
}
public function onMouseOut(_arg1:MouseEvent):void{
gotoAndPlay("up");
}
function frame11(){
stop();
}
public function onClick(_arg1:MouseEvent):void{
var _local2 = root;
_local2["gotoAndPlay"](2);
}
}
}//package ClumsyScientist_fla
Section 82
//mcAssets_28 (ClumsyScientist_fla.mcAssets_28)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class mcAssets_28 extends MovieClip {
public function mcAssets_28(){
addFrameScript(0, frame1, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 83
//msg_panelfdthaaainv_225 (ClumsyScientist_fla.msg_panelfdthaaainv_225)
package ClumsyScientist_fla {
import flash.display.*;
import flash.text.*;
public dynamic class msg_panelfdthaaainv_225 extends MovieClip {
public var text_txt:TextField;
public function msg_panelfdthaaainv_225(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 84
//njk_200 (ClumsyScientist_fla.njk_200)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class njk_200 extends MovieClip {
public var hit_mc:MovieClip;
public function njk_200(){
addFrameScript(0, frame1, 4, frame5, 35, frame36, 37, frame38, 67, frame68, 68, frame69, 95, frame96);
}
function frame1(){
stop();
hit_mc.addEventListener(MouseEvent.MOUSE_DOWN, bookTurnFun);
}
function frame5(){
MovieClip(root).playSound("paperflip");
}
function frame96(){
stop();
}
function frame36(){
stop();
}
public function bookTurnFun(_arg1:MouseEvent){
if (currentFrame == 1){
gotoAndPlay(2);
} else {
if (currentFrame == 36){
gotoAndPlay(37);
} else {
if (currentFrame == 68){
gotoAndPlay(69);
};
};
};
}
function frame38(){
MovieClip(root).playSound("paperflip");
}
function frame68(){
stop();
}
function frame69(){
MovieClip(root).playSound("paperflip");
}
}
}//package ClumsyScientist_fla
Section 85
//njk_204 (ClumsyScientist_fla.njk_204)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class njk_204 extends MovieClip {
public var hit_mc:MovieClip;
public function njk_204(){
addFrameScript(0, frame1, 4, frame5, 35, frame36, 37, frame38, 67, frame68, 68, frame69, 95, frame96);
}
function frame1(){
stop();
hit_mc.addEventListener(MouseEvent.MOUSE_DOWN, bookTurnFun);
}
function frame5(){
MovieClip(root).playSound("paperflip");
}
function frame96(){
stop();
}
function frame36(){
stop();
}
public function bookTurnFun(_arg1:MouseEvent){
if (currentFrame == 1){
gotoAndPlay(2);
} else {
if (currentFrame == 36){
gotoAndPlay(37);
};
};
}
function frame38(){
MovieClip(root).playSound("paperflip");
}
function frame68(){
stop();
}
function frame69(){
MovieClip(root).playSound("paperflip");
}
}
}//package ClumsyScientist_fla
Section 86
//obj10_161 (ClumsyScientist_fla.obj10_161)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class obj10_161 extends MovieClip {
public var obj:MovieClip;
}
}//package ClumsyScientist_fla
Section 87
//obj11_182 (ClumsyScientist_fla.obj11_182)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class obj11_182 extends MovieClip {
public var obj:MovieClip;
}
}//package ClumsyScientist_fla
Section 88
//obj12_184 (ClumsyScientist_fla.obj12_184)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class obj12_184 extends MovieClip {
public var obj:MovieClip;
}
}//package ClumsyScientist_fla
Section 89
//obj13_186 (ClumsyScientist_fla.obj13_186)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class obj13_186 extends MovieClip {
public var obj:MovieClip;
}
}//package ClumsyScientist_fla
Section 90
//obj14_188 (ClumsyScientist_fla.obj14_188)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class obj14_188 extends MovieClip {
public var obj:MovieClip;
}
}//package ClumsyScientist_fla
Section 91
//obj15_190 (ClumsyScientist_fla.obj15_190)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class obj15_190 extends MovieClip {
public var obj:MovieClip;
}
}//package ClumsyScientist_fla
Section 92
//obj16_192 (ClumsyScientist_fla.obj16_192)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class obj16_192 extends MovieClip {
public var obj:MovieClip;
}
}//package ClumsyScientist_fla
Section 93
//obj1ar_164 (ClumsyScientist_fla.obj1ar_164)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class obj1ar_164 extends MovieClip {
public var obj:MovieClip;
}
}//package ClumsyScientist_fla
Section 94
//obj2ar_166 (ClumsyScientist_fla.obj2ar_166)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class obj2ar_166 extends MovieClip {
public var obj:MovieClip;
}
}//package ClumsyScientist_fla
Section 95
//obj2copyar_180 (ClumsyScientist_fla.obj2copyar_180)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class obj2copyar_180 extends MovieClip {
public var obj:MovieClip;
}
}//package ClumsyScientist_fla
Section 96
//obj3ar_168 (ClumsyScientist_fla.obj3ar_168)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class obj3ar_168 extends MovieClip {
public var obj:MovieClip;
}
}//package ClumsyScientist_fla
Section 97
//obj4ar_174 (ClumsyScientist_fla.obj4ar_174)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class obj4ar_174 extends MovieClip {
public var obj:MovieClip;
}
}//package ClumsyScientist_fla
Section 98
//obj5ar_170 (ClumsyScientist_fla.obj5ar_170)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class obj5ar_170 extends MovieClip {
public var obj:MovieClip;
public function obj5ar_170(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 99
//obj6ar_172 (ClumsyScientist_fla.obj6ar_172)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class obj6ar_172 extends MovieClip {
public var obj:MovieClip;
}
}//package ClumsyScientist_fla
Section 100
//oipip_319 (ClumsyScientist_fla.oipip_319)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class oipip_319 extends MovieClip {
public var s4:MovieClip;
public function oipip_319(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 101
//owlaqqlnewaa_4 (ClumsyScientist_fla.owlaqqlnewaa_4)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class owlaqqlnewaa_4 extends MovieClip {
public function owlaqqlnewaa_4(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package ClumsyScientist_fla
Section 102
//owlloo_64 (ClumsyScientist_fla.owlloo_64)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class owlloo_64 extends MovieClip {
public function owlloo_64(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 103
//paa_323 (ClumsyScientist_fla.paa_323)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class paa_323 extends MovieClip {
public var s1:MovieClip;
public var s2:MovieClip;
public var s4:MovieClip;
public var s3:MovieClip;
}
}//package ClumsyScientist_fla
Section 104
//preloadaqqlnewaa_3 (ClumsyScientist_fla.preloadaqqlnewaa_3)
package ClumsyScientist_fla {
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.text.*;
public dynamic class preloadaqqlnewaa_3 extends MovieClip {
public var per_txt:TextField;
public var logo_btn:SimpleButton;
public function preloadaqqlnewaa_3(){
addFrameScript(32, frame33, 53, frame54, 216, frame217);
}
public function linkFun(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.timefall.com/"), "_blank");
}
function frame217(){
stop();
logo_btn.addEventListener(MouseEvent.MOUSE_DOWN, linkFun);
}
function frame33(){
logo_btn.addEventListener(MouseEvent.MOUSE_DOWN, linkFun);
}
function frame54(){
stop();
per_txt.visible = true;
}
}
}//package ClumsyScientist_fla
Section 105
//rtyrtyaa_279 (ClumsyScientist_fla.rtyrtyaa_279)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class rtyrtyaa_279 extends MovieClip {
public function rtyrtyaa_279(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 106
//sciBoo_203 (ClumsyScientist_fla.sciBoo_203)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class sciBoo_203 extends MovieClip {
public var close_btn:MovieClip;
public var book_mc:MovieClip;
public function sciBoo_203(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 107
//shapeMc_54 (ClumsyScientist_fla.shapeMc_54)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class shapeMc_54 extends MovieClip {
public function shapeMc_54(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 108
//shock_132 (ClumsyScientist_fla.shock_132)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class shock_132 extends MovieClip {
public function shock_132(){
addFrameScript(1, frame2, 24, frame25);
}
function frame25(){
stop();
MovieClip(root).tryFun();
}
function frame2(){
MovieClip(root).playSound("shock1");
}
}
}//package ClumsyScientist_fla
Section 109
//SndAsset_27 (ClumsyScientist_fla.SndAsset_27)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class SndAsset_27 extends MovieClip {
public function SndAsset_27(){
addFrameScript(0, frame1, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 110
//Symbol4_314 (ClumsyScientist_fla.Symbol4_314)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class Symbol4_314 extends MovieClip {
public var p1:MovieClip;
public var p2:MovieClip;
public var p3:MovieClip;
public var p4:MovieClip;
}
}//package ClumsyScientist_fla
Section 111
//thum_294 (ClumsyScientist_fla.thum_294)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class thum_294 extends MovieClip {
public function thum_294(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 112
//thumbPan_207 (ClumsyScientist_fla.thumbPan_207)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class thumbPan_207 extends MovieClip {
public var close_btn:MovieClip;
public var thuView_mc:MovieClip;
public function thumbPan_207(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 113
//tvsci1_292 (ClumsyScientist_fla.tvsci1_292)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class tvsci1_292 extends MovieClip {
public var j:int;
public var perf_mc:MovieClip;
public var dragClip:MovieClip;
public var txt_mc:MovieClip;
public var rect_mc:MovieClip;
public var puzCont_mc:MovieClip;
public function tvsci1_292(){
addFrameScript(0, frame1, 21, frame22);
}
function frame1(){
stop();
}
function frame22(){
stop();
perf_mc.visible = false;
j = 1;
while (j <= 4) {
puzCont_mc[("s" + j)].buttonMode = true;
puzCont_mc[("s" + j)].addEventListener(MouseEvent.MOUSE_DOWN, dragFun);
j++;
};
dragClip = new MovieClip();
stage.addEventListener(MouseEvent.MOUSE_UP, objHitFun);
}
public function fitFun(){
if ((((((((txt_mc.p1.currentFrame == 2)) && ((txt_mc.p2.currentFrame == 2)))) && ((txt_mc.p3.currentFrame == 2)))) && ((txt_mc.p4.currentFrame == 2)))){
stage.removeEventListener(MouseEvent.MOUSE_UP, objHitFun);
if (MovieClip(root).man_mc.currentLabel == "jump"){
MovieClip(root).puzzleVar = true;
perf_mc.visible = true;
};
};
}
public function dragFun(_arg1:MouseEvent){
dragClip = (_arg1.currentTarget as MovieClip);
dragClip.parent.setChildIndex(dragClip, (puzCont_mc.numChildren - 1));
dragClip.startDrag(false, new Rectangle(rect_mc.x, rect_mc.y, rect_mc.width, rect_mc.height));
}
public function objHitFun(_arg1:MouseEvent){
var _local2:int;
var _local3:String;
dragClip.stopDrag();
_local2 = 1;
while (_local2 <= 4) {
_local3 = dragClip.name.substr(1);
if (((dragClip.hitTestObject(txt_mc[("p" + _local2)])) && ((Number(_local3) == _local2)))){
txt_mc[("p" + _local2)].gotoAndStop(2);
puzCont_mc[("s" + _local2)].visible = false;
puzCont_mc[("s" + _local2)].removeEventListener(MouseEvent.MOUSE_DOWN, dragFun);
fitFun();
break;
};
_local2++;
};
}
}
}//package ClumsyScientist_fla
Section 114
//tytyetcxv_362 (ClumsyScientist_fla.tytyetcxv_362)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class tytyetcxv_362 extends MovieClip {
public function tytyetcxv_362(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
stop();
MovieClip(parent).gotoAndStop("down1");
}
function frame1(){
}
}
}//package ClumsyScientist_fla
Section 115
//tytyetcxvcopy_366 (ClumsyScientist_fla.tytyetcxvcopy_366)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class tytyetcxvcopy_366 extends MovieClip {
public function tytyetcxvcopy_366(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
MovieClip(parent).gotoAndStop("down");
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 116
//tyuhjq3eqaa_415 (ClumsyScientist_fla.tyuhjq3eqaa_415)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class tyuhjq3eqaa_415 extends MovieClip {
public var sObj14_2:MovieClip;
public function tyuhjq3eqaa_415(){
addFrameScript(0, frame1, 1, frame2);
}
public function takeObj14(_arg1:MouseEvent){
if (((!(MovieClip(root).clickObj)) && ((MovieClip(parent).currentFrame == 355)))){
MovieClip(root).playSound("invclick");
MovieClip(root).clickObj = true;
MovieClip(root).currentObj = 14;
MovieClip(root).manPostureFun(480);
};
}
function frame1(){
stop();
}
function frame2(){
sObj14_2.buttonMode = true;
sObj14_2.tabEnabled = false;
sObj14_2.addEventListener(MouseEvent.MOUSE_DOWN, takeObj14);
}
}
}//package ClumsyScientist_fla
Section 117
//tyutyu_293 (ClumsyScientist_fla.tyutyu_293)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import nature.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class tyutyu_293 extends MovieClip {
public var arr:Array;
public var r:int;
public var thu1:MovieClip;
public var thu2:MovieClip;
public var thu3:MovieClip;
public function tyutyu_293(){
addFrameScript(0, frame1);
}
function frame1(){
arr = new Array("");
arr = randomNumber.generateRandom(1, 3);
r = 0;
while (r < 3) {
trace(arr[r]);
this[("thu" + (r + 1))].gotoAndStop(arr[r]);
this[("thu" + (r + 1))].addEventListener(MouseEvent.MOUSE_DOWN, thumbFun);
r++;
};
}
public function thumbFun(_arg1:MouseEvent){
if ((((((((_arg1.currentTarget.currentFrame == 2)) && (MovieClip(root).thumbPlaced))) && ((MovieClip(root).man_mc.currentLabel == "jump")))) && (MovieClip(root).zoomVar))){
MovieClip(parent).gotoAndPlay(2);
};
}
}
}//package ClumsyScientist_fla
Section 118
//tyutyuyy_321 (ClumsyScientist_fla.tyutyuyy_321)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class tyutyuyy_321 extends MovieClip {
public var s3:MovieClip;
public function tyutyuyy_321(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 119
//uhiuisci1_271 (ClumsyScientist_fla.uhiuisci1_271)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class uhiuisci1_271 extends MovieClip {
public var s1:MovieClip;
public var s2:MovieClip;
public var s4:MovieClip;
public var s3:MovieClip;
public var s:int;
public function uhiuisci1_271(){
addFrameScript(0, frame1, 18, frame19);
}
function frame1(){
stop();
}
function frame19(){
stop();
s = 1;
while (s <= 4) {
this[("s" + s)].buttonMode = true;
this[("s" + s)].addEventListener(MouseEvent.MOUSE_DOWN, switchFun);
s++;
};
}
public function switchFun(_arg1:MouseEvent){
if (_arg1.currentTarget.currentFrame == 1){
MovieClip(root).playSound("switchon");
_arg1.currentTarget.gotoAndStop(2);
};
if (_arg1.currentTarget.name == "s2"){
MovieClip(parent).wire_mc.gotoAndStop(2);
};
}
}
}//package ClumsyScientist_fla
Section 120
//uhosci1_261 (ClumsyScientist_fla.uhosci1_261)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class uhosci1_261 extends MovieClip {
public function uhosci1_261(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 121
//uiyui_270 (ClumsyScientist_fla.uiyui_270)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class uiyui_270 extends MovieClip {
public function uiyui_270(){
addFrameScript(9, frame10);
}
function frame10(){
MovieClip(root).playSound("electricspark");
}
}
}//package ClumsyScientist_fla
Section 122
//up3Mc_141 (ClumsyScientist_fla.up3Mc_141)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class up3Mc_141 extends MovieClip {
public function up3Mc_141(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
MovieClip(parent).gotoAndStop("stand3");
}
}
}//package ClumsyScientist_fla
Section 123
//up4_142 (ClumsyScientist_fla.up4_142)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class up4_142 extends MovieClip {
public function up4_142(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
MovieClip(parent).gotoAndStop("specs");
}
}
}//package ClumsyScientist_fla
Section 124
//vgyuytucopysci2_364 (ClumsyScientist_fla.vgyuytucopysci2_364)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class vgyuytucopysci2_364 extends MovieClip {
public function vgyuytucopysci2_364(){
addFrameScript(1, frame2, 34, frame35);
}
function frame2(){
MovieClip(root).playSound("machine");
}
function frame35(){
stop();
MovieClip(root).tryFun();
}
}
}//package ClumsyScientist_fla
Section 125
//vgyuytusci2_357 (ClumsyScientist_fla.vgyuytusci2_357)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class vgyuytusci2_357 extends MovieClip {
public function vgyuytusci2_357(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 126
//xdtyhsci1_334 (ClumsyScientist_fla.xdtyhsci1_334)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class xdtyhsci1_334 extends MovieClip {
public function xdtyhsci1_334(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
stop();
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 127
//yrtyrty_400 (ClumsyScientist_fla.yrtyrty_400)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class yrtyrty_400 extends MovieClip {
public function yrtyrty_400(){
addFrameScript(1, frame2);
}
function frame2(){
MovieClip(root).playSound("fire");
}
}
}//package ClumsyScientist_fla
Section 128
//yu8yuiio_312 (ClumsyScientist_fla.yu8yuiio_312)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class yu8yuiio_312 extends MovieClip {
public function yu8yuiio_312(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package ClumsyScientist_fla
Section 129
//yuiosci1copy_315 (ClumsyScientist_fla.yuiosci1copy_315)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class yuiosci1copy_315 extends MovieClip {
public function yuiosci1copy_315(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 130
//yuiyugicopy2sci1_401 (ClumsyScientist_fla.yuiyugicopy2sci1_401)
package ClumsyScientist_fla {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class yuiyugicopy2sci1_401 extends MovieClip {
public var hole_mc:MovieClip;
public function yuiyugicopy2sci1_401(){
addFrameScript(1, frame2, 24, frame25, 41, frame42, 63, frame64);
}
function frame64(){
stop();
MovieClip(root).hole_mc.visible = false;
}
function frame25(){
MovieClip(root).playSound("fireexe");
}
function frame2(){
MovieClip(root).playSound("fireexe");
}
function frame42(){
MovieClip(root).playSound("fireexe");
}
}
}//package ClumsyScientist_fla
Section 131
//yuiyugicopysci1_397 (ClumsyScientist_fla.yuiyugicopysci1_397)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class yuiyugicopysci1_397 extends MovieClip {
public var hole_mc:MovieClip;
}
}//package ClumsyScientist_fla
Section 132
//yutyq3eqaa_413 (ClumsyScientist_fla.yutyq3eqaa_413)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class yutyq3eqaa_413 extends MovieClip {
public var tube_mc:MovieClip;
public function yutyq3eqaa_413(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ClumsyScientist_fla
Section 133
//yyuo_194 (ClumsyScientist_fla.yyuo_194)
package ClumsyScientist_fla {
import flash.display.*;
public dynamic class yyuo_194 extends MovieClip {
public var obj:MovieClip;
}
}//package ClumsyScientist_fla
Section 134
//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 135
//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 136
//JPGEncoder (com.adobe.images.JPGEncoder)
package com.adobe.images {
import flash.utils.*;
import flash.display.*;
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 137
//PNGEncoder (com.adobe.images.PNGEncoder)
package com.adobe.images {
import flash.utils.*;
import flash.display.*;
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 138
//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 139
//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 140
//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 141
//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 142
//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 143
//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 144
//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 145
//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 146
//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 147
//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 148
//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 149
//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 150
//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 151
//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 152
//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 153
//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 154
//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 155
//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 156
//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 157
//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 158
//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 159
//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 160
//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 161
//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 162
//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 163
//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 164
//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 165
//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 166
//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 167
//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 168
//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 169
//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 170
//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 171
//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 172
//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 173
//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 174
//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 175
//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 176
//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 177
//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 178
//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 179
//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 180
//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 181
//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 182
//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 183
//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 184
//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 185
//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 186
//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 187
//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 188
//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 189
//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 190
//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 191
//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 192
//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 193
//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 194
//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 195
//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 196
//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 197
//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 198
//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 199
//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 200
//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 201
//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 202
//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 203
//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 204
//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 205
//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 206
//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 207
//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 208
//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 209
//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 210
//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 211
//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 212
//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 213
//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 214
//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 215
//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 216
//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 217
//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 218
//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 219
//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 220
//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 221
//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 222
//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 223
//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 224
//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 225
//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 226
//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 227
//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 228
//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 229
//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 230
//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 231
//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 232
//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 233
//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 234
//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 235
//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 236
//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 237
//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 238
//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 239
//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 240
//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 241
//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 242
//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 243
//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 244
//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 245
//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 246
//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 247
//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 248
//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 249
//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 250
//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 251
//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 252
//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 253
//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 254
//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 255
//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 256
//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 257
//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 258
//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 259
//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 260
//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 261
//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 262
//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 263
//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 264
//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 265
//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 266
//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 267
//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 268
//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 269
//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 270
//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 271
//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 272
//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 273
//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 274
//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 275
//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 276
//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 277
//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 278
//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 279
//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 280
//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 281
//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 282
//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 283
//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 284
//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 285
//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 286
//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 287
//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 288
//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 289
//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 290
//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 291
//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 292
//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 293
//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 294
//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 295
//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 296
//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 297
//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 298
//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 299
//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 300
//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 301
//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 302
//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 303
//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 304
//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 305
//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 306
//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 307
//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 308
//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 309
//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 310
//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 311
//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 312
//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 313
//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 314
//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 315
//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 316
//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 317
//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 318
//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 319
//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 320
//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 321
//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 322
//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 323
//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 324
//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 325
//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 326
//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 327
//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 328
//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 329
//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 330
//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 331
//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 332
//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 333
//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 334
//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 335
//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 336
//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 337
//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 338
//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 339
//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 340
//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 341
//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 342
//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 343
//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 344
//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 345
//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 346
//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 347
//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 348
//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 349
//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 350
//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 351
//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 352
//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 353
//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 354
//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 355
//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 356
//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 357
//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 358
//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 359
//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 360
//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 361
//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 362
//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 363
//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 364
//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 365
//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 366
//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 367
//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 368
//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 369
//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 370
//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 371
//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 372
//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 373
//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 374
//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 375
//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 376
//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 377
//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 378
//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 379
//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 380
//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 381
//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 382
//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 383
//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 384
//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 385
//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 386
//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 387
//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 388
//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 389
//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 390
//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 391
//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 392
//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 393
//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 394
//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 395
//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 396
//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 397
//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 398
//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 399
//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 400
//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 401
//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 402
//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 403
//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 404
//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 405
//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 406
//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 407
//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 408
//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 409
//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 410
//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 411
//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 412
//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 413
//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 414
//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 415
//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 416
//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 417
//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 418
//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 419
//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 420
//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 421
//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 422
//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 423
//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 424
//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 425
//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 426
//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 427
//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 428
//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 429
//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 430
//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 431
//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 432
//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 433
//ArrayResultData (com.facebook.data.ArrayResultData)
package com.facebook.data {
public class ArrayResultData extends FacebookData {
public var arrayResult:Array;
}
}//package com.facebook.data
Section 434
//BooleanResultData (com.facebook.data.BooleanResultData)
package com.facebook.data {
public class BooleanResultData extends FacebookData {
public var value:Boolean;
}
}//package com.facebook.data
Section 435
//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 436
//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 437
//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 438
//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 439
//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 440
//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 441
//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 442
//FBJSData (com.facebook.data.FBJSData)
package com.facebook.data {
public class FBJSData extends FacebookData {
public var results:Array;
}
}//package com.facebook.data
Section 443
//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 444
//JSONResultData (com.facebook.data.JSONResultData)
package com.facebook.data {
public class JSONResultData extends FacebookData {
public var result:Object;
}
}//package com.facebook.data
Section 445
//NumberResultData (com.facebook.data.NumberResultData)
package com.facebook.data {
public class NumberResultData extends FacebookData {
public var value:Number;
}
}//package com.facebook.data
Section 446
//StringResultData (com.facebook.data.StringResultData)
package com.facebook.data {
public class StringResultData extends FacebookData {
public var value:String;
}
}//package com.facebook.data
Section 447
//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 448
//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 449
//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 450
//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 451
//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 452
//RequestHelper (com.facebook.delegates.RequestHelper)
package com.facebook.delegates {
import flash.utils.*;
import flash.display.*;
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 453
//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 454
//WebImageUploadDelegate (com.facebook.delegates.WebImageUploadDelegate)
package com.facebook.delegates {
import flash.utils.*;
import com.adobe.images.*;
import flash.display.*;
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 455
//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 456
//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 457
//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 458
//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 459
//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 460
//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 461
//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 462
//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 463
//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 464
//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 465
//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 466
//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 467
//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 468
//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 469
//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 470
//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 471
//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 472
//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 473
//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 474
//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 475
//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 476
//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 477
//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 478
//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 479
//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 480
//facebook_internal (com.facebook.facebook_internal)
package com.facebook {
public namespace facebook_internal = "http://api.facebook.com/1.0/";
}//package com.facebook
Section 481
//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 482
//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 483
//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 484
//TweenLite (com.greensock.TweenLite)
package com.greensock {
import flash.utils.*;
import flash.display.*;
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 485
//Color (fl.motion.Color)
package fl.motion {
import flash.display.*;
import flash.geom.*;
public class Color extends ColorTransform {
private var _tintMultiplier:Number;// = 0
private var _tintColor:Number;// = 0
public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){
_tintColor = 0;
_tintMultiplier = 0;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function setTint(_arg1:uint, _arg2:Number):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
_local3 = ((_arg1 >> 16) & 0xFF);
_local4 = ((_arg1 >> 8) & 0xFF);
_local5 = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public function set tintColor(_arg1:uint):void{
this.setTint(_arg1, this.tintMultiplier);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
private function deriveTintColor():uint{
var _local1:Number;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
_local1 = (1 / this.tintMultiplier);
_local2 = Math.round((this.redOffset * _local1));
_local3 = Math.round((this.greenOffset * _local1));
_local4 = Math.round((this.blueOffset * _local1));
_local5 = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set brightness(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
_local2 = (1 - Math.abs(_arg1));
_local3 = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
private function parseXML(_arg1:XML=null):Color{
var _local2:XML;
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
_local2 = _arg1.elements()[0];
if (!_local2){
return (this);
};
for each (_local3 in _local2.attributes()) {
_local4 = _local3.localName();
if (_local4 == "tintColor"){
_local5 = (Number(_local3.toString()) as uint);
this.tintColor = _local5;
} else {
this[_local4] = Number(_local3.toString());
};
};
return (this);
}
public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:uint;
var _local15:uint;
var _local16:uint;
var _local17:uint;
_local4 = (1 - _arg3);
_local5 = ((_arg1 >> 24) & 0xFF);
_local6 = ((_arg1 >> 16) & 0xFF);
_local7 = ((_arg1 >> 8) & 0xFF);
_local8 = (_arg1 & 0xFF);
_local9 = ((_arg2 >> 24) & 0xFF);
_local10 = ((_arg2 >> 16) & 0xFF);
_local11 = ((_arg2 >> 8) & 0xFF);
_local12 = (_arg2 & 0xFF);
_local13 = ((_local5 * _local4) + (_local9 * _arg3));
_local14 = ((_local6 * _local4) + (_local10 * _arg3));
_local15 = ((_local7 * _local4) + (_local11 * _arg3));
_local16 = ((_local8 * _local4) + (_local12 * _arg3));
_local17 = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number;
var _local5:ColorTransform;
_local4 = (1 - _arg3);
_local5 = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3)));
return (_local5);
}
public static function fromXML(_arg1:XML):Color{
return (Color(new (Color).parseXML(_arg1)));
}
}
}//package fl.motion
Section 486
//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 487
//bgSound (bgSound)
package {
import flash.media.*;
public dynamic class bgSound extends Sound {
}
}//package
Section 488
//boilerSnd (boilerSnd)
package {
import flash.media.*;
public dynamic class boilerSnd extends Sound {
}
}//package
Section 489
//button (button)
package {
import flash.media.*;
public dynamic class button extends Sound {
}
}//package
Section 490
//dooropen (dooropen)
package {
import flash.media.*;
public dynamic class dooropen extends Sound {
}
}//package
Section 491
//electricdoor (electricdoor)
package {
import flash.media.*;
public dynamic class electricdoor extends Sound {
}
}//package
Section 492
//electricspark (electricspark)
package {
import flash.media.*;
public dynamic class electricspark extends Sound {
}
}//package
Section 493
//fire (fire)
package {
import flash.media.*;
public dynamic class fire extends Sound {
}
}//package
Section 494
//fireexe (fireexe)
package {
import flash.media.*;
public dynamic class fireexe extends Sound {
}
}//package
Section 495
//glassbreak1 (glassbreak1)
package {
import flash.media.*;
public dynamic class glassbreak1 extends Sound {
}
}//package
Section 496
//glassHit (glassHit)
package {
import flash.media.*;
public dynamic class glassHit extends Sound {
}
}//package
Section 497
//invclick (invclick)
package {
import flash.media.*;
public dynamic class invclick extends Sound {
}
}//package
Section 498
//liquid (liquid)
package {
import flash.media.*;
public dynamic class liquid extends Sound {
}
}//package
Section 499
//machine (machine)
package {
import flash.media.*;
public dynamic class machine extends Sound {
}
}//package
Section 500
//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 501
//no2 (no2)
package {
import flash.media.*;
public dynamic class no2 extends Sound {
}
}//package
Section 502
//o1 (o1)
package {
import flash.display.*;
public dynamic class o1 extends MovieClip {
}
}//package
Section 503
//o10 (o10)
package {
import flash.display.*;
public dynamic class o10 extends MovieClip {
}
}//package
Section 504
//o11 (o11)
package {
import flash.display.*;
public dynamic class o11 extends MovieClip {
}
}//package
Section 505
//o12 (o12)
package {
import flash.display.*;
public dynamic class o12 extends MovieClip {
}
}//package
Section 506
//o13 (o13)
package {
import flash.display.*;
public dynamic class o13 extends MovieClip {
}
}//package
Section 507
//o14 (o14)
package {
import flash.display.*;
public dynamic class o14 extends MovieClip {
}
}//package
Section 508
//o15 (o15)
package {
import flash.display.*;
public dynamic class o15 extends MovieClip {
}
}//package
Section 509
//o16 (o16)
package {
import flash.display.*;
public dynamic class o16 extends MovieClip {
}
}//package
Section 510
//o17 (o17)
package {
import flash.display.*;
public dynamic class o17 extends MovieClip {
}
}//package
Section 511
//o18 (o18)
package {
import flash.display.*;
public dynamic class o18 extends MovieClip {
}
}//package
Section 512
//o19 (o19)
package {
import flash.display.*;
public dynamic class o19 extends MovieClip {
}
}//package
Section 513
//o2 (o2)
package {
import flash.display.*;
public dynamic class o2 extends MovieClip {
}
}//package
Section 514
//o3 (o3)
package {
import flash.display.*;
public dynamic class o3 extends MovieClip {
}
}//package
Section 515
//o4 (o4)
package {
import flash.display.*;
public dynamic class o4 extends MovieClip {
}
}//package
Section 516
//o5 (o5)
package {
import flash.display.*;
public dynamic class o5 extends MovieClip {
public function o5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 517
//o6 (o6)
package {
import flash.display.*;
public dynamic class o6 extends MovieClip {
}
}//package
Section 518
//o7 (o7)
package {
import flash.display.*;
public dynamic class o7 extends MovieClip {
}
}//package
Section 519
//o8 (o8)
package {
import flash.display.*;
public dynamic class o8 extends MovieClip {
}
}//package
Section 520
//o9 (o9)
package {
import flash.display.*;
public dynamic class o9 extends MovieClip {
}
}//package
Section 521
//owl (owl)
package {
import flash.media.*;
public dynamic class owl extends Sound {
}
}//package
Section 522
//paperflip (paperflip)
package {
import flash.media.*;
public dynamic class paperflip extends Sound {
}
}//package
Section 523
//puzzMc (puzzMc)
package {
import flash.utils.*;
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class puzzMc extends MovieClip {
public var itemSq:MovieClip;
public function puzzMc(){
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
stop();
itemSq.gotoAndStop(this.itemId);
}
}
}//package
Section 524
//shock1 (shock1)
package {
import flash.media.*;
public dynamic class shock1 extends Sound {
}
}//package
Section 525
//shock2 (shock2)
package {
import flash.media.*;
public dynamic class shock2 extends Sound {
}
}//package
Section 526
//slidedoor (slidedoor)
package {
import flash.media.*;
public dynamic class slidedoor extends Sound {
}
}//package
Section 527
//switchon (switchon)
package {
import flash.media.*;
public dynamic class switchon extends Sound {
}
}//package
Section 528
//timefallSnd (timefallSnd)
package {
import flash.media.*;
public dynamic class timefallSnd extends Sound {
}
}//package
Section 529
//tryagain (tryagain)
package {
import flash.media.*;
public dynamic class tryagain extends Sound {
}
}//package
Section 530
//tvclick (tvclick)
package {
import flash.media.*;
public dynamic class tvclick extends Sound {
}
}//package
Section 531
//water (water)
package {
import flash.media.*;
public dynamic class water extends Sound {
}
}//package
Section 532
//zoom (zoom)
package {
import flash.media.*;
public dynamic class zoom extends Sound {
}
}//package