Section 1
//ChangeTxtContent (AssistantClass.ChangeTxtContent)
package AssistantClass {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class ChangeTxtContent {
private var _endSMoney:int;
private var _totalFrames:int;
private var _changedScorePerFrame:int;
private var _curTxt:TextField;
private var _mc:MovieClip;
private var _event:String;
private var _startMoney:int;
private var _curMoney:int;
public function ChangeTxtContent(_arg1:MovieClip, _arg2:TextField, _arg3:int, _arg4:int, _arg5:String){
_mc = _arg1;
_curTxt = _arg2;
_startMoney = _arg3;
_endSMoney = _arg4;
_event = _arg5;
initData();
initEvent();
}
private function run(_arg1:Event):void{
if ((_curMoney + _changedScorePerFrame) > _endSMoney){
_mc.removeEventListener(Event.ENTER_FRAME, run);
_curMoney = _endSMoney;
_mc.dispatchEvent(new Event(_event));
} else {
_curMoney = (_curMoney + _changedScorePerFrame);
};
_curTxt.text = _curMoney.toString();
}
public function destroy():void{
_mc.removeEventListener(Event.ENTER_FRAME, run);
}
private function initEvent():void{
_mc.addEventListener(Event.ENTER_FRAME, run);
}
private function initData():void{
_curMoney = _startMoney;
_totalFrames = 30;
_changedScorePerFrame = int(((_endSMoney - _startMoney) / _totalFrames));
}
}
}//package AssistantClass
Section 2
//EventClickCus (AssistantClass.EventClickCus)
package AssistantClass {
import flash.events.*;
import element.*;
public class EventClickCus extends Event {
private var _custom:Custom;
public static const CUSTOM_DOWN:String = "CUSTOM_DOWN";
public function EventClickCus(_arg1:Custom){
_custom = _arg1;
super(CUSTOM_DOWN);
}
public function get clickedCustom():Custom{
return (_custom);
}
}
}//package AssistantClass
Section 3
//EventClickedFood (AssistantClass.EventClickedFood)
package AssistantClass {
import flash.events.*;
import element.*;
public class EventClickedFood extends Event {
private var _food:Food;
public static const CLICKEDFOOD:String = "CLICKEDFOOD";
public function EventClickedFood(_arg1:Food){
_food = _arg1;
super(CLICKEDFOOD);
}
public function get food():Food{
return (_food);
}
}
}//package AssistantClass
Section 4
//EventCustomGoAway (AssistantClass.EventCustomGoAway)
package AssistantClass {
import flash.events.*;
import element.*;
public class EventCustomGoAway extends Event {
private var _custom:Custom;
public static const CUSTOMGOAWAY:String = "CUSTOMGOAWAY";
public function EventCustomGoAway(_arg1:Custom){
_custom = _arg1;
super(CUSTOMGOAWAY);
}
public function get custom():Custom{
return (_custom);
}
}
}//package AssistantClass
Section 5
//EventGetMoney (AssistantClass.EventGetMoney)
package AssistantClass {
import flash.events.*;
public class EventGetMoney extends Event {
private var _money:int;
public static const GETMONEY:String = "GETMONEY";
public function EventGetMoney(_arg1:int){
_money = _arg1;
super(GETMONEY);
}
public function get moneyNumber():int{
return (_money);
}
}
}//package AssistantClass
Section 6
//EventRemoveFood (AssistantClass.EventRemoveFood)
package AssistantClass {
import flash.events.*;
public class EventRemoveFood extends Event {
private var _money:Number;
public static const REDUCEMONEY:String = "REDUCEMONEY";
public function EventRemoveFood(_arg1:Number){
_money = _arg1;
super(REDUCEMONEY);
}
public function get money():Number{
return (_money);
}
}
}//package AssistantClass
Section 7
//ExtButton (AssistantClass.ExtButton)
package AssistantClass {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import utils.*;
public class ExtButton extends MovieClip {
private var _enable:Boolean;
public function ExtButton(){
this.stop();
this.buttonMode = true;
this.mouseChildren = false;
_enable = true;
new TextField();
initEvent();
}
private function rollOverHandler(_arg1:MouseEvent):void{
SoundsManager.instance.playSound("menu_touch", 1, 1);
if (_enable){
this.gotoAndStop(2);
} else {
this.gotoAndStop(5);
};
}
public function get enable():Boolean{
return (_enable);
}
public function set enable(_arg1:Boolean):void{
_enable = _arg1;
if (((_enable) && ((this.currentFrame > 3)))){
this.gotoAndStop((this.currentFrame - 3));
};
if (((!(_enable)) && ((this.currentFrame <= 3)))){
this.gotoAndStop((this.currentFrame + 3));
};
}
private function mouseUpHandler(_arg1:MouseEvent):void{
if (_enable){
this.gotoAndStop(2);
} else {
this.gotoAndStop(5);
};
}
private function delEvent():void{
this.removeEventListener(MouseEvent.ROLL_OVER, rollOverHandler);
this.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
this.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
this.removeEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
this.removeEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
}
private function initEvent():void{
this.addEventListener(MouseEvent.ROLL_OVER, rollOverHandler);
this.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
this.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
this.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
this.addEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
}
private function mouseDownHandler(_arg1:MouseEvent):void{
SoundsManager.instance.playSound("menu_press", 1, 1);
if (_enable){
this.gotoAndStop(3);
} else {
this.gotoAndStop(6);
};
}
private function rollOutHandler(_arg1:MouseEvent):void{
if (_enable){
this.gotoAndStop(1);
} else {
this.gotoAndStop(4);
};
}
private function removeFromStageHandler(_arg1:Event):void{
delEvent();
}
}
}//package AssistantClass
Section 8
//GetXmlData (AssistantClass.GetXmlData)
package AssistantClass {
import utils.*;
public class GetXmlData {
public static var grdding6Money:int;
public static var curLevFrames:int;
public static var bw1Lev:int;
public static var bw2Money:int;
public static var curLevAllTargetArr:Array;
public static var bw3Lev:int;
public static var curLevAllFoodsArr:Array;
private static var curLevXml:XML;
public static var grdding6Lev:int;
public static var bw1Money:int;
public static var bw2Lev:int;
public static var grdding5Money:int;
public static var bw3Money:int;
public static var curLevAllCustom:Array;
public static var curLevAllTargetAwardArr:Array;
private static var curLev:int;
public static var grdding5Lev:int;
private static function initCurLevAllTarArr():void{
curLevAllTargetArr = new Array();
curLevAllTargetArr.push(int(curLevXml.attribute("target1")));
curLevAllTargetArr.push(int(curLevXml.attribute("target2")));
curLevAllTargetArr.push(int(curLevXml.attribute("target3")));
curLevAllTargetAwardArr = new Array();
curLevAllTargetAwardArr.push(int(curLevXml.attribute("target1award")));
curLevAllTargetAwardArr.push(int(curLevXml.attribute("target2award")));
curLevAllTargetAwardArr.push(int(curLevXml.attribute("target3award")));
}
private static function initCurLevAllCus():void{
var _local2:XML;
var _local3:int;
var _local4:int;
var _local5:Array;
var _local6:int;
curLevAllCustom = new Array();
var _local1:int;
while (_local1 < curLevXml["custom"].length()) {
_local2 = curLevXml["custom"][_local1];
_local3 = int(_local2.attribute("index"));
_local4 = int(_local2.attribute("spaceframes"));
_local5 = new Array();
_local5.push(int(_local2.attribute("needfood1")));
if (int(_local2.attribute("needfood2")) != -1){
_local5.push(int(_local2.attribute("needfood2")));
};
_local6 = int(_local2.attribute("allframes"));
curLevAllCustom.push(Attach2.getCustom(_local3, _local4, _local5, _local6));
_local1++;
};
}
private static function initCurLevAllFoodsArr():void{
var _local2:int;
curLevAllFoodsArr = new Array();
var _local1:int;
while (_local1 < curLevXml["viewedfood"].length()) {
_local2 = int(curLevXml["viewedfood"][_local1]);
curLevAllFoodsArr.push(_local2);
_local1++;
};
}
public static function initShopData():void{
grdding5Lev = int(XmlManager.xml["grdding5"].attribute("lev"));
grdding5Money = int(XmlManager.xml["grdding5"].attribute("money"));
grdding6Lev = int(XmlManager.xml["grdding6"].attribute("lev"));
grdding6Money = int(XmlManager.xml["grdding6"].attribute("money"));
bw1Lev = int(XmlManager.xml["bellywash1"].attribute("lev"));
bw1Money = int(XmlManager.xml["bellywash1"].attribute("money"));
bw2Lev = int(XmlManager.xml["bellywash2"].attribute("lev"));
bw2Money = int(XmlManager.xml["bellywash2"].attribute("money"));
bw3Lev = int(XmlManager.xml["bellywash3"].attribute("lev"));
bw3Money = int(XmlManager.xml["bellywash3"].attribute("money"));
}
public static function initCurLevData():void{
curLev = StaticLevData.currentLevel;
curLevXml = XmlManager.xml["level"][(curLev - 1)];
curLevFrames = int(curLevXml.attribute("totalframes"));
initCurLevAllTarArr();
initCurLevAllFoodsArr();
initCurLevAllCus();
}
}
}//package AssistantClass
Section 9
//IntPoint (AssistantClass.IntPoint)
package AssistantClass {
public class IntPoint {
public var cX:int;
public var cY:int;
public function IntPoint(_arg1:int, _arg2:int){
this.cX = _arg1;
this.cY = _arg2;
}
}
}//package AssistantClass
Section 10
//PositionProperty (AssistantClass.PositionProperty)
package AssistantClass {
public class PositionProperty {
public var isEmpty:Boolean;
public var PosX:Number;
public var PosY:Number;
public function PositionProperty(_arg1:Number, _arg2:Number, _arg3:Boolean){
this.PosX = _arg1;
this.PosY = _arg2;
this.isEmpty = _arg3;
}
}
}//package AssistantClass
Section 11
//StaticFunAndVar (AssistantClass.StaticFunAndVar)
package AssistantClass {
import utils.*;
import flash.geom.*;
public class StaticFunAndVar {
public static var howToPlayPar:String;
public static var isDisplayCompleteUI:Boolean = false;
public static function lengthOfTwoPoints(_arg1:Point, _arg2:Point):Number{
return (Math.sqrt((Math.pow((_arg1.x - _arg2.x), 2) + Math.pow((_arg1.y - _arg2.y), 2))));
}
public static function updateCueData():void{
if (StaticLevData.curMaxLev >= GetXmlData.grdding6Lev){
Cookie.instance.cueDisplay["gridding6"] = true;
Cookie.instance.cueDisplay["bw3"] = true;
Cookie.instance.cueDisplay["bw2"] = true;
Cookie.instance.cueDisplay["gridding5"] = true;
Cookie.instance.cueDisplay["bw1"] = true;
} else {
if (StaticLevData.curMaxLev >= GetXmlData.bw3Lev){
Cookie.instance.cueDisplay["bw3"] = true;
Cookie.instance.cueDisplay["bw2"] = true;
Cookie.instance.cueDisplay["gridding5"] = true;
Cookie.instance.cueDisplay["bw1"] = true;
} else {
if (StaticLevData.curMaxLev >= GetXmlData.bw2Lev){
Cookie.instance.cueDisplay["bw2"] = true;
Cookie.instance.cueDisplay["gridding5"] = true;
Cookie.instance.cueDisplay["bw1"] = true;
} else {
if (StaticLevData.curMaxLev >= GetXmlData.grdding5Lev){
Cookie.instance.cueDisplay["gridding5"] = true;
Cookie.instance.cueDisplay["bw1"] = true;
} else {
if (StaticLevData.curMaxLev >= GetXmlData.bw1Lev){
Cookie.instance.cueDisplay["bw1"] = true;
};
};
};
};
};
}
public static function isDisplayCue():Boolean{
if ((((StaticLevData.curMaxLev >= GetXmlData.grdding5Lev)) && (!(Cookie.instance.cueDisplay["gridding5"])))){
return (true);
};
if ((((StaticLevData.curMaxLev >= GetXmlData.grdding6Lev)) && (!(Cookie.instance.cueDisplay["gridding6"])))){
return (true);
};
if ((((StaticLevData.curMaxLev >= GetXmlData.bw1Lev)) && (!(Cookie.instance.cueDisplay["bw1"])))){
return (true);
};
if ((((StaticLevData.curMaxLev >= GetXmlData.bw2Lev)) && (!(Cookie.instance.cueDisplay["bw2"])))){
return (true);
};
if ((((StaticLevData.curMaxLev >= GetXmlData.bw3Lev)) && (!(Cookie.instance.cueDisplay["bw3"])))){
return (true);
};
return (false);
}
}
}//package AssistantClass
Section 12
//StaticLevData (AssistantClass.StaticLevData)
package AssistantClass {
import utils.*;
public class StaticLevData {
public static var qualityClickedCounts:int = 0;
public static var isCompletAllLev:Boolean;
public static var allLevs:int = 16;
public static var curMaxLev:int;
public static var currentLevel:int;
public static function initLevData():void{
curMaxLev = Cookie.instance.lev["maxLev"];
currentLevel = curMaxLev;
if (Cookie.instance.levslev["levslev"].length == allLevs){
isCompletAllLev = true;
} else {
isCompletAllLev = false;
};
}
}
}//package AssistantClass
Section 13
//StaticPar_Ingame (AssistantClass.StaticPar_Ingame)
package AssistantClass {
import utils.*;
import element.*;
import flash.geom.*;
public class StaticPar_Ingame {
private static var griddingEndX:Number;
public static var bellyWashLev:int;
private static var griddingEndY:Number;
public static var curBarbecueSpeed:Number;
public static var gridding:Array = new Array();
private static var allowCustomNum:int = 4;
public static var singleGriddingWidth:Number;
public static var griddingCushionX:Number;
private static var thermometerLev:int;
private static var griddingStartX:Number;
private static var griddingStartY:Number;
public static var allViewedFoods:Array = new Array("potato", "chickenwing", "fish", "chickenleg", "kebab", "meat", "sausage", "shrimp", "sleevefiah", "steak");
public static var griddingWidthNumber:int = 3;
public static var foodPosition:Array = new Array(new Point(455, 295), new Point(553, 299), new Point(455, 352), new Point(553, 356), new Point(455, 409), new Point(553, 413), new Point(455, 466));
public static var allCustom:Array = new Array("boy01", "boy02", "girl01", "girl02", "man01", "man02", "old01", "old02", "woman01", "woman02");
public static var griddingLengthNumber:int;
public static var allFoods:Array = new Array();
public static var singleGriddingLength:Number;
public static var customPosition:Array;
public static var griddingCushionY:Number;
public static function initSaggarGridding():void{
var _local2:Array;
var _local3:Array;
var _local4:Array;
var _local1:Array = new Array();
if (griddingLengthNumber == 4){
_local2 = [new PositionProperty(griddingStartX, griddingStartY, true), new PositionProperty((griddingStartX + singleGriddingLength), griddingStartY, true), new PositionProperty((griddingStartX + (singleGriddingLength * 2)), griddingStartY, true), new PositionProperty((griddingStartX + (singleGriddingLength * 3)), griddingStartY, true)];
_local1.push(_local2);
_local3 = [new PositionProperty(griddingStartX, (griddingStartY + singleGriddingWidth), true), new PositionProperty((griddingStartX + singleGriddingLength), (griddingStartY + singleGriddingWidth), true), new PositionProperty((griddingStartX + (singleGriddingLength * 2)), (griddingStartY + singleGriddingWidth), true), new PositionProperty((griddingStartX + (singleGriddingLength * 3)), (griddingStartY + singleGriddingWidth), true)];
_local1.push(_local3);
_local4 = [new PositionProperty(griddingStartX, (griddingStartY + (singleGriddingWidth * 2)), true), new PositionProperty((griddingStartX + singleGriddingLength), (griddingStartY + (singleGriddingWidth * 2)), true), new PositionProperty((griddingStartX + (singleGriddingLength * 2)), (griddingStartY + (singleGriddingWidth * 2)), true), new PositionProperty((griddingStartX + (singleGriddingLength * 3)), (griddingStartY + (singleGriddingWidth * 2)), true)];
_local1.push(_local4);
gridding = _local1;
} else {
if (griddingLengthNumber == 5){
_local2 = [new PositionProperty(griddingStartX, griddingStartY, true), new PositionProperty((griddingStartX + singleGriddingLength), griddingStartY, true), new PositionProperty((griddingStartX + (singleGriddingLength * 2)), griddingStartY, true), new PositionProperty((griddingStartX + (singleGriddingLength * 3)), griddingStartY, true), new PositionProperty((griddingStartX + (singleGriddingLength * 4)), griddingStartY, true)];
_local1.push(_local2);
_local3 = [new PositionProperty(griddingStartX, (griddingStartY + singleGriddingWidth), true), new PositionProperty((griddingStartX + singleGriddingLength), (griddingStartY + singleGriddingWidth), true), new PositionProperty((griddingStartX + (singleGriddingLength * 2)), (griddingStartY + singleGriddingWidth), true), new PositionProperty((griddingStartX + (singleGriddingLength * 3)), (griddingStartY + singleGriddingWidth), true), new PositionProperty((griddingStartX + (singleGriddingLength * 4)), (griddingStartY + singleGriddingWidth), true)];
_local1.push(_local3);
_local4 = [new PositionProperty(griddingStartX, (griddingStartY + (singleGriddingWidth * 2)), true), new PositionProperty((griddingStartX + singleGriddingLength), (griddingStartY + (singleGriddingWidth * 2)), true), new PositionProperty((griddingStartX + (singleGriddingLength * 2)), (griddingStartY + (singleGriddingWidth * 2)), true), new PositionProperty((griddingStartX + (singleGriddingLength * 3)), (griddingStartY + (singleGriddingWidth * 2)), true), new PositionProperty((griddingStartX + (singleGriddingLength * 4)), (griddingStartY + (singleGriddingWidth * 2)), true)];
_local1.push(_local4);
gridding = _local1;
} else {
if (griddingLengthNumber == 6){
_local2 = [new PositionProperty(griddingStartX, griddingStartY, true), new PositionProperty((griddingStartX + singleGriddingLength), griddingStartY, true), new PositionProperty((griddingStartX + (singleGriddingLength * 2)), griddingStartY, true), new PositionProperty((griddingStartX + (singleGriddingLength * 3)), griddingStartY, true), new PositionProperty((griddingStartX + (singleGriddingLength * 4)), griddingStartY, true), new PositionProperty((griddingStartX + (singleGriddingLength * 5)), griddingStartY, true)];
_local1.push(_local2);
_local3 = [new PositionProperty(griddingStartX, (griddingStartY + singleGriddingWidth), true), new PositionProperty((griddingStartX + singleGriddingLength), (griddingStartY + singleGriddingWidth), true), new PositionProperty((griddingStartX + (singleGriddingLength * 2)), (griddingStartY + singleGriddingWidth), true), new PositionProperty((griddingStartX + (singleGriddingLength * 3)), (griddingStartY + singleGriddingWidth), true), new PositionProperty((griddingStartX + (singleGriddingLength * 4)), (griddingStartY + singleGriddingWidth), true), new PositionProperty((griddingStartX + (singleGriddingLength * 5)), (griddingStartY + singleGriddingWidth), true)];
_local1.push(_local3);
_local4 = [new PositionProperty(griddingStartX, (griddingStartY + (singleGriddingWidth * 2)), true), new PositionProperty((griddingStartX + singleGriddingLength), (griddingStartY + (singleGriddingWidth * 2)), true), new PositionProperty((griddingStartX + (singleGriddingLength * 2)), (griddingStartY + (singleGriddingWidth * 2)), true), new PositionProperty((griddingStartX + (singleGriddingLength * 3)), (griddingStartY + (singleGriddingWidth * 2)), true), new PositionProperty((griddingStartX + (singleGriddingLength * 4)), (griddingStartY + (singleGriddingWidth * 2)), true), new PositionProperty((griddingStartX + (singleGriddingLength * 5)), (griddingStartY + (singleGriddingWidth * 2)), true)];
_local1.push(_local4);
gridding = _local1;
};
};
};
}
public static function initSaggarGriddingData():void{
if (griddingLengthNumber == 4){
griddingStartX = 90;
griddingStartY = 308;
griddingEndX = 326;
griddingEndY = 479;
} else {
if (griddingLengthNumber == 5){
griddingStartX = 60;
griddingStartY = 308;
griddingEndX = 359;
griddingEndY = 479;
} else {
if (griddingLengthNumber == 6){
griddingStartX = 29;
griddingStartY = 306;
griddingEndX = 388;
griddingEndY = 478;
} else {
trace("StaticPar_Ingame.initSaggarGriddingData出错");
};
};
};
singleGriddingLength = ((griddingEndX - griddingStartX) / griddingLengthNumber);
singleGriddingWidth = ((griddingEndY - griddingStartY) / griddingWidthNumber);
griddingCushionX = (singleGriddingLength / 5);
griddingCushionY = (singleGriddingWidth / 5);
}
public static function initCustomPosition():void{
customPosition = new Array(new PositionProperty(0, 60, true), new PositionProperty(124, 60, true), new PositionProperty(248, 60, true));
if (allowCustomNum == 4){
customPosition.push(new PositionProperty(372, 60, true));
};
}
public static function getCurLevelThermometer():Thermometer{
var _local1:Thermometer;
if (thermometerLev == 1){
_local1 = Attach2.getThermometer("thermometer1", 47, 81);
} else {
if (thermometerLev == 2){
_local1 = Attach2.getThermometer("thermometer1", 35, 70);
};
};
return (_local1);
}
public static function initObjectLev():void{
thermometerLev = Cookie.instance.thermometer["thermometerLev"];
griddingLengthNumber = Cookie.instance.gridding["griddingLengthNumber"];
bellyWashLev = Cookie.instance.bellyWashLev["bellyWashLev"];
}
}
}//package AssistantClass
Section 14
//XmlManager (AssistantClass.XmlManager)
package AssistantClass {
import flash.events.*;
import flash.net.*;
import flash.utils.*;
import main.*;
public class XmlManager extends EventDispatcher {
private var _isreadXML:Boolean;// = false
private var ldr:URLLoader;
private var timeOutID:int;
private static const EmbeddedXML:Class = XmlManager_EmbeddedXML;
private static var _xmlData:XML;
private static var _xml:XML = new XML(new EmbeddedXML());
public function XmlManager():void{
setGameData();
}
private function initData(_arg1:Event):void{
if (_isreadXML){
_xmlData = XML(ldr.data);
ldr = null;
} else {
_xmlData = _xml;
clearTimeout(timeOutID);
};
dispatchEvent(new Event(Manager.XMLLOADING_COMPLETE));
}
public function setGameData():void{
if (_isreadXML){
ldr = new URLLoader();
ldr.load(new URLRequest("BBQLevData.xml"));
ldr.addEventListener(Event.COMPLETE, initData, false, 0, true);
} else {
timeOutID = setTimeout(initData, 100, null);
};
}
public static function get xml():XML{
return (_xmlData);
}
}
}//package AssistantClass
Section 15
//XmlManager_EmbeddedXML (AssistantClass.XmlManager_EmbeddedXML)
package AssistantClass {
import mx.core.*;
public class XmlManager_EmbeddedXML extends ByteArrayAsset {
}
}//package AssistantClass
Section 16
//CampaignInfo (com.google.analytics.campaign.CampaignInfo)
package com.google.analytics.campaign {
import com.google.analytics.utils.*;
public class CampaignInfo {
private var _new:Boolean;
private var _empty:Boolean;
public function CampaignInfo(_arg1:Boolean=true, _arg2:Boolean=false){
_empty = _arg1;
_new = _arg2;
}
public function isEmpty():Boolean{
return (_empty);
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
if (((!(isEmpty())) && (isNew()))){
_local1.utmcn = utmcn;
};
if (((!(isEmpty())) && (!(isNew())))){
_local1.utmcr = utmcr;
};
return (_local1);
}
public function isNew():Boolean{
return (_new);
}
public function get utmcn():String{
return ("1");
}
public function get utmcr():String{
return ("1");
}
}
}//package com.google.analytics.campaign
Section 17
//CampaignKey (com.google.analytics.campaign.CampaignKey)
package com.google.analytics.campaign {
public class CampaignKey {
public var UCMD:String;// = "utm_medium"
public var UCID:String;// = "utm_id"
public var UCTR:String;// = "utm_term"
public var UCSR:String;// = "utm_source"
public var UCNO:String;// = "utm_nooverride"
public var UCCN:String;// = "utm_campaign"
public var UGCLID:String;// = "gclid"
public var UCCT:String;// = "utm_content"
}
}//package com.google.analytics.campaign
Section 18
//CampaignManager (com.google.analytics.campaign.CampaignManager)
package com.google.analytics.campaign {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import com.google.analytics.core.*;
import com.google.analytics.utils.*;
public class CampaignManager {
private var _config:Configuration;
private var _domainHash:Number;
private var _debug:DebugConfiguration;
private var _timeStamp:Number;
private var _referrer:String;
private var _buffer:Buffer;
public static const trackingDelimiter:String = "|";
public function CampaignManager(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Buffer, _arg4:Number, _arg5:String, _arg6:Number){
_config = _arg1;
_debug = _arg2;
_buffer = _arg3;
_domainHash = _arg4;
_referrer = _arg5;
_timeStamp = _arg6;
}
public function hasNoOverride(_arg1:String):Boolean{
var _local2:CampaignKey;
var _local3:Variables;
var _local4:String;
_local2 = _config.campaignKey;
if (_arg1 == ""){
return (false);
};
_local3 = new Variables(_arg1);
_local4 = "";
if (_local3.hasOwnProperty(_local2.UCNO)){
_local4 = _local3[_local2.UCNO];
switch (_local4){
case "1":
return (true);
case "":
case "0":
default:
return (false);
};
};
return (false);
}
public function getCampaignInformation(_arg1:String, _arg2:Boolean):CampaignInfo{
var _local3:CampaignInfo;
var _local4:CampaignTracker;
var _local5:Boolean;
var _local6:Boolean;
var _local7:int;
var _local8:CampaignTracker;
var _local9:int;
_local3 = new CampaignInfo();
_local5 = false;
_local6 = false;
_local7 = 0;
if (((_config.allowLinker) && (_buffer.isGenuine()))){
if (!_buffer.hasUTMZ()){
return (_local3);
};
};
_local4 = getTrackerFromSearchString(_arg1);
if (isValid(_local4)){
_local6 = hasNoOverride(_arg1);
if (((_local6) && (!(_buffer.hasUTMZ())))){
return (_local3);
};
};
if (!isValid(_local4)){
_local4 = getOrganicCampaign();
if (((!(_buffer.hasUTMZ())) && (isIgnoredKeyword(_local4)))){
return (_local3);
};
};
if (((!(isValid(_local4))) && (_arg2))){
_local4 = getReferrerCampaign();
if (((!(_buffer.hasUTMZ())) && (isIgnoredReferral(_local4)))){
return (_local3);
};
};
if (!isValid(_local4)){
if (((!(_buffer.hasUTMZ())) && (_arg2))){
_local4 = getDirectCampaign();
};
};
if (!isValid(_local4)){
return (_local3);
};
if (((_buffer.hasUTMZ()) && (!(_buffer.utmz.isEmpty())))){
_local8 = new CampaignTracker();
_local8.fromTrackerString(_buffer.utmz.campaignTracking);
_local5 = (_local8.toTrackerString() == _local4.toTrackerString());
_local7 = _buffer.utmz.responseCount;
};
if (((!(_local5)) || (_arg2))){
_local9 = _buffer.utma.sessionCount;
_local7++;
if (_local9 == 0){
_local9 = 1;
};
_buffer.utmz.domainHash = _domainHash;
_buffer.utmz.campaignCreation = _timeStamp;
_buffer.utmz.campaignSessions = _local9;
_buffer.utmz.responseCount = _local7;
_buffer.utmz.campaignTracking = _local4.toTrackerString();
_debug.info(_buffer.utmz.toString(), VisualDebugMode.geek);
_local3 = new CampaignInfo(false, true);
} else {
_local3 = new CampaignInfo(false, false);
};
return (_local3);
}
public function isValid(_arg1:CampaignTracker):Boolean{
if (((_arg1) && (_arg1.isValid()))){
return (true);
};
return (false);
}
public function getTrackerFromSearchString(_arg1:String):CampaignTracker{
var _local2:CampaignTracker;
var _local3:CampaignTracker;
var _local4:CampaignKey;
var _local5:Variables;
_local2 = getOrganicCampaign();
_local3 = new CampaignTracker();
_local4 = _config.campaignKey;
if (_arg1 == ""){
return (_local3);
};
_local5 = new Variables(_arg1);
if (_local5.hasOwnProperty(_local4.UCID)){
_local3.id = _local5[_local4.UCID];
};
if (_local5.hasOwnProperty(_local4.UCSR)){
_local3.source = _local5[_local4.UCSR];
};
if (_local5.hasOwnProperty(_local4.UGCLID)){
_local3.clickId = _local5[_local4.UGCLID];
};
if (_local5.hasOwnProperty(_local4.UCCN)){
_local3.name = _local5[_local4.UCCN];
} else {
_local3.name = "(not set)";
};
if (_local5.hasOwnProperty(_local4.UCMD)){
_local3.medium = _local5[_local4.UCMD];
} else {
_local3.medium = "(not set)";
};
if (_local5.hasOwnProperty(_local4.UCTR)){
_local3.term = _local5[_local4.UCTR];
} else {
if (((_local2) && (!((_local2.term == ""))))){
_local3.term = _local2.term;
};
};
if (_local5.hasOwnProperty(_local4.UCCT)){
_local3.content = _local5[_local4.UCCT];
};
return (_local3);
}
public function getOrganicCampaign():CampaignTracker{
var _local1:CampaignTracker;
var _local2:URL;
var _local3:String;
var _local4:Array;
var _local5:OrganicReferrer;
var _local6:String;
if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){
return (_local1);
};
_local2 = new URL(_referrer);
_local3 = "";
if (_local2.hostName != ""){
if (_local2.hostName.indexOf(".") > -1){
_local4 = _local2.hostName.split(".");
switch (_local4.length){
case 2:
_local3 = _local4[0];
break;
case 3:
_local3 = _local4[1];
break;
};
};
};
if (_config.organic.match(_local3)){
_local5 = _config.organic.getReferrerByName(_local3);
_local6 = _config.organic.getKeywordValue(_local5, _local2.search);
_local1 = new CampaignTracker();
_local1.source = _local5.engine;
_local1.name = "(organic)";
_local1.medium = "organic";
_local1.term = _local6;
};
return (_local1);
}
public function isIgnoredReferral(_arg1:CampaignTracker):Boolean{
if (((_arg1) && ((_arg1.medium == "referral")))){
return (_config.organic.isIgnoredReferral(_arg1.source));
};
return (false);
}
public function getDirectCampaign():CampaignTracker{
var _local1:CampaignTracker;
_local1 = new CampaignTracker();
_local1.source = "(direct)";
_local1.name = "(direct)";
_local1.medium = "(none)";
return (_local1);
}
public function isIgnoredKeyword(_arg1:CampaignTracker):Boolean{
if (((_arg1) && ((_arg1.medium == "organic")))){
return (_config.organic.isIgnoredKeyword(_arg1.term));
};
return (false);
}
public function getReferrerCampaign():CampaignTracker{
var _local1:CampaignTracker;
var _local2:URL;
var _local3:String;
var _local4:String;
if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){
return (_local1);
};
_local2 = new URL(_referrer);
_local3 = _local2.hostName;
_local4 = _local2.path;
if (_local3.indexOf("www.") == 0){
_local3 = _local3.substr(4);
};
_local1 = new CampaignTracker();
_local1.source = _local3;
_local1.name = "(referral)";
_local1.medium = "referral";
_local1.content = _local4;
return (_local1);
}
public static function isInvalidReferrer(_arg1:String):Boolean{
var _local2:URL;
if ((((((_arg1 == "")) || ((_arg1 == "-")))) || ((_arg1 == "0")))){
return (true);
};
if (_arg1.indexOf("://") > -1){
_local2 = new URL(_arg1);
if ((((_local2.protocol == Protocols.file)) || ((_local2.protocol == Protocols.none)))){
return (true);
};
};
return (false);
}
public static function isFromGoogleCSE(_arg1:String, _arg2:Configuration):Boolean{
var _local3:URL;
_local3 = new URL(_arg1);
if (_local3.hostName.indexOf(_arg2.google) > -1){
if (_local3.search.indexOf((_arg2.googleSearchParam + "=")) > -1){
if (_local3.path == ("/" + _arg2.googleCsePath)){
return (true);
};
};
};
return (false);
}
}
}//package com.google.analytics.campaign
Section 19
//CampaignTracker (com.google.analytics.campaign.CampaignTracker)
package com.google.analytics.campaign {
import com.google.analytics.utils.*;
public class CampaignTracker {
public var content:String;
public var source:String;
public var clickId:String;
public var name:String;
public var term:String;
public var medium:String;
public var id:String;
public function CampaignTracker(_arg1:String="", _arg2:String="", _arg3:String="", _arg4:String="", _arg5:String="", _arg6:String="", _arg7:String=""){
this.id = _arg1;
this.source = _arg2;
this.clickId = _arg3;
this.name = _arg4;
this.medium = _arg5;
this.term = _arg6;
this.content = _arg7;
}
public function isValid():Boolean{
if (((((!((id == ""))) || (!((source == ""))))) || (!((clickId == ""))))){
return (true);
};
return (false);
}
public function toTrackerString():String{
var _local1:Array = [];
_addIfNotEmpty(_local1, "utmcsr=", source);
_addIfNotEmpty(_local1, "utmccn=", name);
_addIfNotEmpty(_local1, "utmcmd=", medium);
_addIfNotEmpty(_local1, "utmctr=", term);
_addIfNotEmpty(_local1, "utmcct=", content);
_addIfNotEmpty(_local1, "utmcid=", id);
_addIfNotEmpty(_local1, "utmgclid=", clickId);
return (_local1.join(CampaignManager.trackingDelimiter));
}
private function _addIfNotEmpty(_arg1:Array, _arg2:String, _arg3:String):void{
if (_arg3 != ""){
_arg3 = _arg3.split("+").join("%20");
_arg3 = _arg3.split(" ").join("%20");
_arg1.push((_arg2 + _arg3));
};
}
public function fromTrackerString(_arg1:String):void{
var _local2:String = _arg1.split(CampaignManager.trackingDelimiter).join("&");
var _local3:Variables = new Variables(_local2);
if (_local3.hasOwnProperty("utmcid")){
this.id = _local3["utmcid"];
};
if (_local3.hasOwnProperty("utmcsr")){
this.source = _local3["utmcsr"];
};
if (_local3.hasOwnProperty("utmccn")){
this.name = _local3["utmccn"];
};
if (_local3.hasOwnProperty("utmcmd")){
this.medium = _local3["utmcmd"];
};
if (_local3.hasOwnProperty("utmctr")){
this.term = _local3["utmctr"];
};
if (_local3.hasOwnProperty("utmcct")){
this.content = _local3["utmcct"];
};
if (_local3.hasOwnProperty("utmgclid")){
this.clickId = _local3["utmgclid"];
};
}
}
}//package com.google.analytics.campaign
Section 20
//FlashTracker (com.google.analytics.components.FlashTracker)
package com.google.analytics.components {
import flash.display.*;
import flash.events.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import com.google.analytics.core.*;
import com.google.analytics.utils.*;
import com.google.analytics.external.*;
import com.google.analytics.*;
import flash.utils.*;
import com.google.analytics.events.*;
public class FlashTracker extends Sprite implements AnalyticsTracker {
private var _adSense:AdSenseGlobals;
private var _env:Environment;
protected var _height:Number;// = 18
private var _idleTimer:IdleTimer;
private var _config:Configuration;
private var _mode:String;// = "AS3"
private var _dom:HTMLDOM;
private var _ready:Boolean;// = false
protected var _width:Number;// = 18
private var _account:String;// = ""
protected var _componentInspectorSetting:Boolean;
private var _visualDebug:Boolean;// = false
public var boundingBox_mc:DisplayObject;
private var _debug:DebugConfiguration;
private var _buffer:Buffer;
private var _display:DisplayObject;
protected var livePreviewHeight:Number;
private var _jsproxy:JavascriptProxy;
protected var isLivePreview:Boolean;
protected var preview:MovieClip;
private var _gifRequest:GIFRequest;
protected var livePreviewWidth:Number;
private var _tracker:GoogleAnalyticsAPI;
public static var version:Version = API.version;
public function FlashTracker(){
_ready = false;
_account = "";
_mode = TrackerMode.AS3;
_visualDebug = false;
_width = 18;
_height = 18;
super();
_tracker = new TrackerCache();
isLivePreview = _checkLivePreview();
_componentInspectorSetting = false;
if (boundingBox_mc){
boundingBox_mc.visible = false;
removeChild(boundingBox_mc);
boundingBox_mc = null;
};
if (isLivePreview){
_createLivePreview();
};
addEventListener(Event.ENTER_FRAME, _factory);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
return (_tracker.trackEvent(_arg1, _arg2, _arg3, _arg4));
}
public function trackTrans():void{
_tracker.trackTrans();
}
private function _createLivePreview():void{
var _local1:Graphics;
var _local2:Class;
preview = new MovieClip();
_local1 = preview.graphics;
_local1.beginFill(0xFFFFFF);
_local1.moveTo(0, 0);
_local1.lineTo(0, _width);
_local1.lineTo(_width, _height);
_local1.lineTo(_height, 0);
_local1.lineTo(0, 0);
_local1.endFill();
_local2 = (getDefinitionByName("com.google.analytics.components::Icon") as Class);
preview.icon_mc = new (_local2);
preview.icon_mc.name = "icon_mc";
preview.addChild(preview.icon_mc);
addChild(preview);
}
public function trackPageview(_arg1:String=""):void{
_tracker.trackPageview(_arg1);
}
public function get account():String{
return (_account);
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_tracker.linkByPost(_arg1, _arg2);
}
public function getDetectTitle():Boolean{
return (_tracker.getDetectTitle());
}
public function setCampNameKey(_arg1:String):void{
_tracker.setCampNameKey(_arg1);
}
public function resetSession():void{
_tracker.resetSession();
}
public function set account(_arg1:String):void{
_account = _arg1;
}
public function get debug():DebugConfiguration{
if (!_debug){
_createDebugAndConfig();
};
return (_debug);
}
public function createEventTracker(_arg1:String):EventTracker{
return (_tracker.createEventTracker(_arg1));
}
public function set config(_arg1:Configuration):void{
_config = _arg1;
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
return (_tracker.addTrans(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8));
}
public function setLocalServerMode():void{
_tracker.setLocalServerMode();
}
public function getLocalGifPath():String{
return (_tracker.getLocalGifPath());
}
public function clearIgnoredRef():void{
_tracker.clearIgnoredRef();
}
public function isReady():Boolean{
return (_ready);
}
public function set debug(_arg1:DebugConfiguration):void{
_debug = _arg1;
}
public function getVersion():String{
return (_tracker.getVersion());
}
public function setLocalRemoteServerMode():void{
_tracker.setLocalRemoteServerMode();
}
public function setCampNOKey(_arg1:String):void{
_tracker.setCampNOKey(_arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
_tracker.addIgnoredOrganic(_arg1);
}
public function setCookiePath(_arg1:String):void{
_tracker.setCookiePath(_arg1);
}
public function setCampTermKey(_arg1:String):void{
_tracker.setCampTermKey(_arg1);
}
private function _trackerFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (AS3) v" + version) + "\naccount: ") + account));
_adSense = new AdSenseGlobals(debug);
_dom = new HTMLDOM(debug);
_dom.cacheProperties();
_env = new Environment("", "", "", debug, _dom);
_buffer = new Buffer(config, debug, false);
_gifRequest = new GIFRequest(config, debug, _buffer, _env);
_idleTimer = new IdleTimer(config, debug, _display, _buffer);
_env.url = _display.stage.loaderInfo.url;
return (new Tracker(account, config, debug, _env, _buffer, _gifRequest, _adSense));
}
public function setCampaignTrack(_arg1:Boolean):void{
_tracker.setCampaignTrack(_arg1);
}
public function getServiceMode():ServerOperationMode{
return (_tracker.getServiceMode());
}
public function set componentInspectorSetting(_arg1:Boolean):void{
_componentInspectorSetting = _arg1;
}
public function setSessionTimeout(_arg1:int):void{
_tracker.setSessionTimeout(_arg1);
}
public function setRemoteServerMode():void{
_tracker.setRemoteServerMode();
}
public function get visualDebug():Boolean{
return (_visualDebug);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_tracker.addOrganic(_arg1, _arg2);
}
public function setCookieTimeout(_arg1:int):void{
_tracker.setCookieTimeout(_arg1);
}
public function getClientInfo():Boolean{
return (_tracker.getClientInfo());
}
public function setAllowLinker(_arg1:Boolean):void{
_tracker.setAllowLinker(_arg1);
}
public function setClientInfo(_arg1:Boolean):void{
_tracker.setClientInfo(_arg1);
}
private function _bridgeFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (Bridge) v" + version) + "\naccount: ") + account));
return (new Bridge(account, _debug, _jsproxy));
}
public function get config():Configuration{
if (!_config){
_createDebugAndConfig();
};
return (_config);
}
public function set mode(_arg1:String):void{
_mode = _arg1;
}
public function setDetectFlash(_arg1:Boolean):void{
_tracker.setDetectFlash(_arg1);
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_tracker.addItem(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public function setVar(_arg1:String):void{
_tracker.setVar(_arg1);
}
public function clearIgnoredOrganic():void{
_tracker.clearIgnoredOrganic();
}
public function setDomainName(_arg1:String):void{
_tracker.setDomainName(_arg1);
}
private function _checkLivePreview():Boolean{
if (((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")))){
return (true);
};
return (false);
}
public function setCampSourceKey(_arg1:String):void{
_tracker.setCampSourceKey(_arg1);
}
public function setCampContentKey(_arg1:String):void{
_tracker.setCampContentKey(_arg1);
}
public function setSize(_arg1:Number, _arg2:Number):void{
}
public function setAllowAnchor(_arg1:Boolean):void{
_tracker.setAllowAnchor(_arg1);
}
public function setLocalGifPath(_arg1:String):void{
_tracker.setLocalGifPath(_arg1);
}
public function get mode():String{
return (_mode);
}
public function setSampleRate(_arg1:Number):void{
_tracker.setSampleRate(_arg1);
}
public function setAllowHash(_arg1:Boolean):void{
_tracker.setAllowHash(_arg1);
}
public function setDetectTitle(_arg1:Boolean):void{
_tracker.setDetectTitle(_arg1);
}
public function cookiePathCopy(_arg1:String):void{
_tracker.cookiePathCopy(_arg1);
}
private function _factory(_arg1:Event):void{
var _local2:GoogleAnalyticsAPI;
var _local3:TrackerCache;
removeEventListener(Event.ENTER_FRAME, _factory);
if (isLivePreview){
return;
};
_display = this;
_createDebugAndConfig();
if (visualDebug){
debug.layout = new Layout(debug, _display);
debug.active = visualDebug;
};
_jsproxy = new JavascriptProxy(debug);
_local3 = (_tracker as TrackerCache);
switch (mode){
case TrackerMode.BRIDGE:
_local2 = _bridgeFactory();
break;
case TrackerMode.AS3:
default:
_local2 = _trackerFactory();
};
if (!_local3.isEmpty()){
_local3.tracker = _local2;
_local3.flush();
};
_tracker = _local2;
_ready = true;
dispatchEvent(new AnalyticsEvent(AnalyticsEvent.READY, this));
}
public function getDetectFlash():Boolean{
return (_tracker.getDetectFlash());
}
public function clearOrganic():void{
_tracker.clearOrganic();
}
private function _createDebugAndConfig():void{
if (!_debug){
this.debug = new DebugConfiguration();
};
if (!_config){
this.config = new Configuration(debug);
};
}
public function addIgnoredRef(_arg1:String):void{
_tracker.addIgnoredRef(_arg1);
}
public function set visualDebug(_arg1:Boolean):void{
_visualDebug = _arg1;
}
public function setCampMediumKey(_arg1:String):void{
_tracker.setCampMediumKey(_arg1);
}
public function getAccount():String{
return (_tracker.getAccount());
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_tracker.link(_arg1, _arg2);
}
}
var _local1:* = ServerOperationMode;
return (_local1);
}//package com.google.analytics.components
Section 21
//Icon (com.google.analytics.components.Icon)
package com.google.analytics.components {
import flash.display.*;
public dynamic class Icon extends MovieClip {
}
}//package com.google.analytics.components
Section 22
//BrowserInfo (com.google.analytics.core.BrowserInfo)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.utils.*;
public class BrowserInfo {
private var _config:Configuration;
private var _info:Environment;
public function BrowserInfo(_arg1:Configuration, _arg2:Environment){
_config = _arg1;
_info = _arg2;
}
public function get utmul():String{
return (_info.language.toLowerCase());
}
public function get utmje():String{
return ("0");
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
public function get utmsr():String{
return (((_info.screenWidth + "x") + _info.screenHeight));
}
public function get utmcs():String{
return (_info.languageEncoding);
}
public function get utmfl():String{
var _local1:Version;
if (_config.detectFlash){
_local1 = _info.flashVersion;
return (((((_local1.major + ".") + _local1.minor) + " r") + _local1.build));
};
return ("-");
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
_local1.utmcs = utmcs;
_local1.utmsr = utmsr;
_local1.utmsc = utmsc;
_local1.utmul = utmul;
_local1.utmje = utmje;
_local1.utmfl = utmfl;
return (_local1);
}
public function get utmsc():String{
return ((_info.screenColorDepth + "-bit"));
}
}
}//package com.google.analytics.core
Section 23
//Buffer (com.google.analytics.core.Buffer)
package com.google.analytics.core {
import flash.events.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.net.*;
import com.google.analytics.data.*;
public dynamic class Buffer {
private var _SO:SharedObject;
private var _OBJ:Object;
private var _utma:UTMA;
private var _utmb:UTMB;
private var _utmc:UTMC;
private var _debug:DebugConfiguration;
private var _utmk:UTMK;
private var _config:Configuration;
private var _utmv:UTMV;
private var _utmz:UTMZ;
private var _volatile:Boolean;
public function Buffer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Boolean=false, _arg4:Object=null){
var _local5:Boolean;
var _local6:String;
super();
_config = _arg1;
_debug = _arg2;
UTMB.defaultTimespan = _config.sessionTimeout;
UTMZ.defaultTimespan = _config.conversionTimeout;
if (!_arg3){
_SO = SharedObject.getLocal(_config.cookieName, _config.cookiePath);
_local5 = false;
if (_SO.data.utma){
if (!hasUTMA()){
_createUMTA();
};
_utma.fromSharedObject(_SO.data.utma);
if (_debug.verbose){
_debug.info(("found: " + _utma.toString(true)), VisualDebugMode.geek);
};
if (_utma.isExpired()){
if (_debug.verbose){
_debug.warning("UTMA has expired", VisualDebugMode.advanced);
};
_clearUTMA();
_local5 = true;
};
};
if (_SO.data.utmb){
if (!hasUTMB()){
_createUMTB();
};
_utmb.fromSharedObject(_SO.data.utmb);
if (_debug.verbose){
_debug.info(("found: " + _utmb.toString(true)), VisualDebugMode.geek);
};
if (_utmb.isExpired()){
if (_debug.verbose){
_debug.warning("UTMB has expired", VisualDebugMode.advanced);
};
_clearUTMB();
_local5 = true;
};
};
if (_SO.data.utmc){
delete _SO.data.utmc;
_local5 = true;
};
if (_SO.data.utmk){
if (!hasUTMK()){
_createUMTK();
};
_utmk.fromSharedObject(_SO.data.utmk);
if (_debug.verbose){
_debug.info(("found: " + _utmk.toString()), VisualDebugMode.geek);
};
};
if (_SO.data.utmv){
if (!hasUTMV()){
_createUMTV();
};
_utmv.fromSharedObject(_SO.data.utmv);
if (_debug.verbose){
_debug.info(("found: " + _utmv.toString(true)), VisualDebugMode.geek);
};
if (_utmv.isExpired()){
if (_debug.verbose){
_debug.warning("UTMV has expired", VisualDebugMode.advanced);
};
_clearUTMV();
_local5 = true;
};
};
if (_SO.data.utmz){
if (!hasUTMZ()){
_createUMTZ();
};
_utmz.fromSharedObject(_SO.data.utmz);
if (_debug.verbose){
_debug.info(("found: " + _utmz.toString(true)), VisualDebugMode.geek);
};
if (_utmz.isExpired()){
if (_debug.verbose){
_debug.warning("UTMZ has expired", VisualDebugMode.advanced);
};
_clearUTMZ();
_local5 = true;
};
};
if (_local5){
save();
};
} else {
_OBJ = new Object();
if (_arg4){
for (_local6 in _arg4) {
_OBJ[_local6] = _arg4[_local6];
};
};
};
_volatile = _arg3;
}
public function clearCookies():void{
utma.reset();
utmb.reset();
utmc.reset();
utmz.reset();
utmv.reset();
utmk.reset();
}
public function save():void{
var flushStatus:String;
if (!isVolatile()){
flushStatus = null;
try {
flushStatus = _SO.flush();
} catch(e:Error) {
_debug.warning("Error...Could not write SharedObject to disk");
};
switch (flushStatus){
case SharedObjectFlushStatus.PENDING:
_debug.info("Requesting permission to save object...");
_SO.addEventListener(NetStatusEvent.NET_STATUS, _onFlushStatus);
break;
case SharedObjectFlushStatus.FLUSHED:
_debug.info("Value flushed to disk.");
break;
};
};
}
public function get utmv():UTMV{
if (!hasUTMV()){
_createUMTV();
};
return (_utmv);
}
public function get utmz():UTMZ{
if (!hasUTMZ()){
_createUMTZ();
};
return (_utmz);
}
public function hasUTMA():Boolean{
if (_utma){
return (true);
};
return (false);
}
public function hasUTMB():Boolean{
if (_utmb){
return (true);
};
return (false);
}
public function hasUTMC():Boolean{
if (_utmc){
return (true);
};
return (false);
}
public function isGenuine():Boolean{
if (!hasUTMK()){
return (true);
};
return ((utmk.hash == generateCookiesHash()));
}
public function resetCurrentSession():void{
_clearUTMB();
_clearUTMC();
save();
}
public function hasUTMK():Boolean{
if (_utmk){
return (true);
};
return (false);
}
public function generateCookiesHash():Number{
var _local1 = "";
_local1 = (_local1 + utma.valueOf());
_local1 = (_local1 + utmb.valueOf());
_local1 = (_local1 + utmc.valueOf());
_local1 = (_local1 + utmz.valueOf());
_local1 = (_local1 + utmv.valueOf());
return (Utils.generateHash(_local1));
}
private function _createUMTB():void{
_utmb = new UTMB();
_utmb.proxy = this;
}
private function _createUMTC():void{
_utmc = new UTMC();
}
private function _createUMTA():void{
_utma = new UTMA();
_utma.proxy = this;
}
public function hasUTMV():Boolean{
if (_utmv){
return (true);
};
return (false);
}
private function _createUMTK():void{
_utmk = new UTMK();
_utmk.proxy = this;
}
public function hasUTMZ():Boolean{
if (_utmz){
return (true);
};
return (false);
}
private function _createUMTV():void{
_utmv = new UTMV();
_utmv.proxy = this;
}
private function _onFlushStatus(_arg1:NetStatusEvent):void{
_debug.info("User closed permission dialog...");
switch (_arg1.info.code){
case "SharedObject.Flush.Success":
_debug.info("User granted permission -- value saved.");
break;
case "SharedObject.Flush.Failed":
_debug.info("User denied permission -- value not saved.");
break;
};
_SO.removeEventListener(NetStatusEvent.NET_STATUS, _onFlushStatus);
}
private function _createUMTZ():void{
_utmz = new UTMZ();
_utmz.proxy = this;
}
public function updateUTMA(_arg1:Number):void{
if (_debug.verbose){
_debug.info((("updateUTMA( " + _arg1) + " )"), VisualDebugMode.advanced);
};
if (!utma.isEmpty()){
if (isNaN(utma.sessionCount)){
utma.sessionCount = 1;
} else {
utma.sessionCount = (utma.sessionCount + 1);
};
utma.lastTime = utma.currentTime;
utma.currentTime = _arg1;
};
}
private function _clearUTMA():void{
_utma = null;
if (!isVolatile()){
_SO.data.utma = null;
delete _SO.data.utma;
};
}
private function _clearUTMC():void{
_utmc = null;
}
private function _clearUTMB():void{
_utmb = null;
if (!isVolatile()){
_SO.data.utmb = null;
delete _SO.data.utmb;
};
}
public function update(_arg1:String, _arg2):void{
if (isVolatile()){
_OBJ[_arg1] = _arg2;
} else {
_SO.data[_arg1] = _arg2;
};
}
private function _clearUTMZ():void{
_utmz = null;
if (!isVolatile()){
_SO.data.utmz = null;
delete _SO.data.utmz;
};
}
private function _clearUTMV():void{
_utmv = null;
if (!isVolatile()){
_SO.data.utmv = null;
delete _SO.data.utmv;
};
}
public function isVolatile():Boolean{
return (_volatile);
}
public function get utma():UTMA{
if (!hasUTMA()){
_createUMTA();
};
return (_utma);
}
public function get utmb():UTMB{
if (!hasUTMB()){
_createUMTB();
};
return (_utmb);
}
public function get utmc():UTMC{
if (!hasUTMC()){
_createUMTC();
};
return (_utmc);
}
public function get utmk():UTMK{
if (!hasUTMK()){
_createUMTK();
};
return (_utmk);
}
}
}//package com.google.analytics.core
Section 24
//DocumentInfo (com.google.analytics.core.DocumentInfo)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.utils.*;
import com.google.analytics.external.*;
public class DocumentInfo {
private var _config:Configuration;
private var _utmr:String;
private var _adSense:AdSenseGlobals;
private var _info:Environment;
private var _pageURL:String;
public function DocumentInfo(_arg1:Configuration, _arg2:Environment, _arg3:String, _arg4:String=null, _arg5:AdSenseGlobals=null){
_config = _arg1;
_info = _arg2;
_utmr = _arg3;
_pageURL = _arg4;
_adSense = _arg5;
}
public function get utmr():String{
if (!_utmr){
return ("-");
};
return (_utmr);
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
private function _renderPageURL(_arg1:String=""):String{
var _local2:String;
var _local3:String;
_local2 = _info.locationPath;
_local3 = _info.locationSearch;
if (((!(_arg1)) || ((_arg1 == "")))){
_arg1 = (_local2 + unescape(_local3));
};
return (_arg1);
}
public function get utmp():String{
return (_renderPageURL(_pageURL));
}
private function _generateHitId():Number{
var _local1:Number;
if (((_adSense.hid) && (!((_adSense.hid == ""))))){
_local1 = Number(_adSense.hid);
} else {
_local1 = Math.round((Math.random() * 2147483647));
_adSense.hid = String(_local1);
};
return (_local1);
}
public function get utmhid():String{
return (String(_generateHitId()));
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
if (((_config.detectTitle) && (!((utmdt == ""))))){
_local1.utmdt = utmdt;
};
_local1.utmhid = utmhid;
_local1.utmr = utmr;
_local1.utmp = utmp;
return (_local1);
}
public function get utmdt():String{
return (_info.documentTitle);
}
}
}//package com.google.analytics.core
Section 25
//Domain (com.google.analytics.core.Domain)
package com.google.analytics.core {
import com.google.analytics.debug.*;
public class Domain {
private var _mode:DomainNameMode;
private var _debug:DebugConfiguration;
private var _name:String;
public function Domain(_arg1:DomainNameMode=null, _arg2:String="", _arg3:DebugConfiguration=null){
_debug = _arg3;
if (_arg1 == null){
_arg1 = DomainNameMode.auto;
};
_mode = _arg1;
if (_arg1 == DomainNameMode.custom){
this.name = _arg2;
} else {
_name = _arg2;
};
}
public function get mode():DomainNameMode{
return (_mode);
}
public function set mode(_arg1:DomainNameMode):void{
_mode = _arg1;
if (_mode == DomainNameMode.none){
_name = "";
};
}
public function get name():String{
return (_name);
}
public function set name(_arg1:String):void{
if (((!((_arg1.charAt(0) == "."))) && (_debug))){
_debug.warning(("missing leading period \".\", cookie will only be accessible on " + _arg1), VisualDebugMode.geek);
};
_name = _arg1;
}
}
}//package com.google.analytics.core
Section 26
//DomainNameMode (com.google.analytics.core.DomainNameMode)
package com.google.analytics.core {
public class DomainNameMode {
private var _value:int;
private var _name:String;
public static const custom:DomainNameMode = new DomainNameMode(2, "custom");
;
public static const none:DomainNameMode = new DomainNameMode(0, "none");
;
public static const auto:DomainNameMode = new DomainNameMode(1, "auto");
;
public function DomainNameMode(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.core
Section 27
//EventInfo (com.google.analytics.core.EventInfo)
package com.google.analytics.core {
import com.google.analytics.utils.*;
import com.google.analytics.data.*;
public class EventInfo {
private var _isEventHit:Boolean;
private var _ext10:X10;
private var _x10:X10;
public function EventInfo(_arg1:Boolean, _arg2:X10, _arg3:X10=null){
_isEventHit = _arg1;
_x10 = _arg2;
_ext10 = _arg3;
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
public function get utmt():String{
return ("event");
}
public function get utme():String{
return (_x10.renderMergedUrlString(_ext10));
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
if (_isEventHit){
_local1.utmt = utmt;
};
_local1.utme = utme;
return (_local1);
}
}
}//package com.google.analytics.core
Section 28
//EventTracker (com.google.analytics.core.EventTracker)
package com.google.analytics.core {
import com.google.analytics.v4.*;
public class EventTracker {
private var _parent:GoogleAnalyticsAPI;
public var name:String;
public function EventTracker(_arg1:String, _arg2:GoogleAnalyticsAPI){
this.name = _arg1;
_parent = _arg2;
}
public function trackEvent(_arg1:String, _arg2:String=null, _arg3:Number=NaN):Boolean{
return (_parent.trackEvent(name, _arg1, _arg2, _arg3));
}
}
}//package com.google.analytics.core
Section 29
//ga_internal (com.google.analytics.core.ga_internal)
package com.google.analytics.core {
public namespace ga_internal;
}//package com.google.analytics.core
Section 30
//GIFRequest (com.google.analytics.core.GIFRequest)
package com.google.analytics.core {
import flash.display.*;
import flash.events.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import com.google.analytics.utils.*;
import flash.net.*;
import flash.system.*;
public class GIFRequest {
private var _info:Environment;
private var _count:int;
private var _utmac:String;
private var _alertcount:int;
private var _debug:DebugConfiguration;
private var _lastRequest:URLRequest;
private var _buffer:Buffer;
private var _config:Configuration;
private var _requests:Array;
public function GIFRequest(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Buffer, _arg4:Environment){
_config = _arg1;
_debug = _arg2;
_buffer = _arg3;
_info = _arg4;
_count = 0;
_alertcount = 0;
_requests = [];
}
public function get utmn():String{
return ((Utils.generate32bitRandom() as String));
}
public function onIOError(_arg1:IOErrorEvent):void{
var _local2:String = _lastRequest.url;
var _local3:String = String((_requests.length - 1));
var _local4 = (("Gif Request #" + _local3) + " failed");
if (_debug.GIFRequests){
if (!_debug.verbose){
if (_local2.indexOf("?") > -1){
_local2 = _local2.split("?")[0];
};
_local2 = _shortenURL(_local2);
};
if (int(_debug.mode) > int(VisualDebugMode.basic)){
_local4 = (_local4 + ((" \"" + _local2) + "\" does not exists or is unreachable"));
};
_debug.failure(_local4);
} else {
_debug.warning(_local4);
};
_removeListeners(_arg1.target);
}
public function send(_arg1:String, _arg2:Variables=null, _arg3:Boolean=false, _arg4:Boolean=false):void{
var _local5:String;
var _local6:URLRequest;
var _local7:URLRequest;
_utmac = _arg1;
if (!_arg2){
_arg2 = new Variables();
};
_arg2.URIencode = false;
_arg2.pre = ["utmwv", "utmn", "utmhn", "utmt", "utme", "utmcs", "utmsr", "utmsc", "utmul", "utmje", "utmfl", "utmdt", "utmhid", "utmr", "utmp"];
_arg2.post = ["utmcc"];
if (_debug.verbose){
_debug.info(((("tracking: " + _buffer.utmb.trackCount) + "/") + _config.trackingLimitPerSession), VisualDebugMode.geek);
};
if ((((_buffer.utmb.trackCount < _config.trackingLimitPerSession)) || (_arg3))){
if (_arg4){
updateToken();
};
if (((((_arg3) || (!(_arg4)))) || ((_buffer.utmb.token >= 1)))){
if (((!(_arg3)) && (_arg4))){
_buffer.utmb.token = (_buffer.utmb.token - 1);
};
_buffer.utmb.trackCount = (_buffer.utmb.trackCount + 1);
if (_debug.verbose){
_debug.info(_buffer.utmb.toString(), VisualDebugMode.geek);
};
_arg2.utmwv = utmwv;
_arg2.utmn = Utils.generate32bitRandom();
if (_info.domainName != ""){
_arg2.utmhn = _info.domainName;
};
if (_config.sampleRate < 1){
_arg2.utmsp = (_config.sampleRate * 100);
};
if ((((_config.serverMode == ServerOperationMode.local)) || ((_config.serverMode == ServerOperationMode.both)))){
_local5 = _info.locationSWFPath;
if (_local5.lastIndexOf("/") > 0){
_local5 = _local5.substring(0, _local5.lastIndexOf("/"));
};
_local6 = new URLRequest();
if (_config.localGIFpath.indexOf("http") == 0){
_local6.url = _config.localGIFpath;
} else {
_local6.url = (_local5 + _config.localGIFpath);
};
_local6.url = (_local6.url + ("?" + _arg2.toString()));
if (((_debug.active) && (_debug.GIFRequests))){
_debugSend(_local6);
} else {
sendRequest(_local6);
};
};
if ((((_config.serverMode == ServerOperationMode.remote)) || ((_config.serverMode == ServerOperationMode.both)))){
_local7 = new URLRequest();
if (_info.protocol == Protocols.HTTPS){
_local7.url = _config.secureRemoteGIFpath;
} else {
if (_info.protocol == Protocols.HTTP){
_local7.url = _config.remoteGIFpath;
} else {
_local7.url = _config.remoteGIFpath;
};
};
_arg2.utmac = utmac;
_arg2.utmcc = encodeURIComponent(utmcc);
_local7.url = (_local7.url + ("?" + _arg2.toString()));
if (((_debug.active) && (_debug.GIFRequests))){
_debugSend(_local7);
} else {
sendRequest(_local7);
};
};
};
};
}
public function onSecurityError(_arg1:SecurityErrorEvent):void{
if (_debug.GIFRequests){
_debug.failure(_arg1.text);
};
}
public function get utmsp():String{
return (((_config.sampleRate * 100) as String));
}
public function get utmcc():String{
var _local1:Array = [];
if (_buffer.hasUTMA()){
_local1.push((_buffer.utma.toURLString() + ";"));
};
if (_buffer.hasUTMZ()){
_local1.push((_buffer.utmz.toURLString() + ";"));
};
if (_buffer.hasUTMV()){
_local1.push((_buffer.utmv.toURLString() + ";"));
};
return (_local1.join("+"));
}
public function get utmac():String{
return (_utmac);
}
public function get utmwv():String{
return (_config.version);
}
public function sendRequest(_arg1:URLRequest):void{
var request = _arg1;
var loader:Loader = new Loader();
loader.name = String(_count++);
var context:LoaderContext = new LoaderContext(false);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
_lastRequest = request;
_requests[loader.name] = new RequestObject(request);
try {
loader.load(request, context);
} catch(e:Error) {
_debug.failure("\"Loader.load()\" could not instanciate Gif Request");
};
}
private function _removeListeners(_arg1:Object):void{
_arg1.removeEventListener(IOErrorEvent.IO_ERROR, onIOError);
_arg1.removeEventListener(Event.COMPLETE, onComplete);
}
public function updateToken():void{
var _local2:Number;
var _local1:Number = new Date().getTime();
_local2 = ((_local1 - _buffer.utmb.lastTime) * (_config.tokenRate / 1000));
if (_debug.verbose){
_debug.info(("tokenDelta: " + _local2), VisualDebugMode.geek);
};
if (_local2 >= 1){
_buffer.utmb.token = Math.min(Math.floor((_buffer.utmb.token + _local2)), _config.bucketCapacity);
_buffer.utmb.lastTime = _local1;
if (_debug.verbose){
_debug.info(_buffer.utmb.toString(), VisualDebugMode.geek);
};
};
}
public function get utmhn():String{
return (_info.domainName);
}
private function _shortenURL(_arg1:String):String{
var _local2:Array;
if (_arg1.length > 60){
_local2 = _arg1.split("/");
while (_arg1.length > 60) {
_local2.shift();
_arg1 = ("../" + _local2.join("/"));
};
};
return (_arg1);
}
private function _debugSend(_arg1:URLRequest):void{
var _local3:String;
var _local2 = "";
switch (_debug.mode){
case VisualDebugMode.geek:
_local2 = ((("Gif Request #" + _alertcount) + ":\n") + _arg1.url);
break;
case VisualDebugMode.advanced:
_local3 = _arg1.url;
if (_local3.indexOf("?") > -1){
_local3 = _local3.split("?")[0];
};
_local3 = _shortenURL(_local3);
_local2 = (((("Send Gif Request #" + _alertcount) + ":\n") + _local3) + " ?");
break;
case VisualDebugMode.basic:
default:
_local2 = (((("Send " + _config.serverMode.toString()) + " Gif Request #") + _alertcount) + " ?");
};
_debug.alertGifRequest(_local2, _arg1, this);
_alertcount++;
}
public function onComplete(_arg1:Event):void{
var _local2:String = _arg1.target.loader.name;
_requests[_local2].complete();
var _local3 = (("Gif Request #" + _local2) + " sent");
var _local4:String = _requests[_local2].request.url;
if (_debug.GIFRequests){
if (!_debug.verbose){
if (_local4.indexOf("?") > -1){
_local4 = _local4.split("?")[0];
};
_local4 = _shortenURL(_local4);
};
if (int(_debug.mode) > int(VisualDebugMode.basic)){
_local3 = (_local3 + ((" to \"" + _local4) + "\""));
};
_debug.success(_local3);
} else {
_debug.info(_local3);
};
_removeListeners(_arg1.target);
}
}
}//package com.google.analytics.core
Section 31
//IdleTimer (com.google.analytics.core.IdleTimer)
package com.google.analytics.core {
import flash.display.*;
import flash.events.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.utils.*;
public class IdleTimer {
private var _loop:Timer;
private var _stage:Stage;
private var _lastMove:int;
private var _debug:DebugConfiguration;
private var _session:Timer;
private var _inactivity:Number;
private var _buffer:Buffer;
public function IdleTimer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:DisplayObject, _arg4:Buffer){
var _local5:Number;
var _local6:Number;
var _local7:Number;
super();
_local5 = _arg1.idleLoop;
_local6 = _arg1.idleTimeout;
_local7 = _arg1.sessionTimeout;
_loop = new Timer((_local5 * 1000));
_session = new Timer((_local7 * 1000), 1);
_debug = _arg2;
_stage = _arg3.stage;
_buffer = _arg4;
_lastMove = getTimer();
_inactivity = (_local6 * 1000);
_loop.addEventListener(TimerEvent.TIMER, checkForIdle);
_session.addEventListener(TimerEvent.TIMER_COMPLETE, endSession);
_stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
_debug.info(((((("delay: " + _local5) + "sec , inactivity: ") + _local6) + "sec, sessionTimeout: ") + _local7), VisualDebugMode.geek);
_loop.start();
}
private function onMouseMove(_arg1:MouseEvent):void{
_lastMove = getTimer();
if (_session.running){
_debug.info("session timer reset", VisualDebugMode.geek);
_session.reset();
};
}
public function endSession(_arg1:TimerEvent):void{
_session.removeEventListener(TimerEvent.TIMER_COMPLETE, endSession);
_debug.info("session timer end session", VisualDebugMode.geek);
_session.reset();
_buffer.resetCurrentSession();
_debug.info(_buffer.utmb.toString(), VisualDebugMode.geek);
_debug.info(_buffer.utmc.toString(), VisualDebugMode.geek);
_session.addEventListener(TimerEvent.TIMER_COMPLETE, endSession);
}
public function checkForIdle(_arg1:TimerEvent):void{
var _local2:int;
_local2 = getTimer();
if ((_local2 - _lastMove) >= _inactivity){
if (!_session.running){
_debug.info("session timer start", VisualDebugMode.geek);
_session.start();
};
};
}
}
}//package com.google.analytics.core
Section 32
//Organic (com.google.analytics.core.Organic)
package com.google.analytics.core {
import com.google.analytics.utils.*;
public class Organic {
private var _sourcesCache:Array;
private var _sourcesEngine:Array;
private var _ignoredKeywords:Array;
private var _ignoredReferralsCache:Object;
private var _ignoredReferrals:Array;
private var _ignoredKeywordsCache:Object;
private var _sources:Array;
public static var throwErrors:Boolean = false;
public function Organic(){
_sources = [];
_sourcesCache = [];
_sourcesEngine = [];
_ignoredReferrals = [];
_ignoredReferralsCache = {};
_ignoredKeywords = [];
_ignoredKeywordsCache = {};
}
public function getKeywordValue(_arg1:OrganicReferrer, _arg2:String):String{
var _local3:String;
_local3 = _arg1.keyword;
return (getKeywordValueFromPath(_local3, _arg2));
}
public function isIgnoredKeyword(_arg1:String):Boolean{
if (_ignoredKeywordsCache.hasOwnProperty(_arg1)){
return (true);
};
return (false);
}
public function isIgnoredReferral(_arg1:String):Boolean{
if (_ignoredReferralsCache.hasOwnProperty(_arg1)){
return (true);
};
return (false);
}
public function clear():void{
clearEngines();
clearIgnoredReferrals();
clearIgnoredKeywords();
}
public function get ignoredKeywordsCount():int{
return (_ignoredKeywords.length);
}
public function match(_arg1:String):Boolean{
if (_arg1 == ""){
return (false);
};
_arg1 = _arg1.toLowerCase();
if (_sourcesEngine[_arg1] != undefined){
return (true);
};
return (false);
}
public function get count():int{
return (_sources.length);
}
public function addSource(_arg1:String, _arg2:String):void{
var _local3:OrganicReferrer;
_local3 = new OrganicReferrer(_arg1, _arg2);
if (_sourcesCache[_local3.toString()] == undefined){
_sources.push(_local3);
_sourcesCache[_local3.toString()] = (_sources.length - 1);
if (_sourcesEngine[_local3.engine] == undefined){
_sourcesEngine[_local3.engine] = [(_sources.length - 1)];
} else {
_sourcesEngine[_local3.engine].push((_sources.length - 1));
};
} else {
if (throwErrors){
throw (new Error((_local3.toString() + " already exists, we don't add it.")));
};
};
}
public function clearIgnoredKeywords():void{
_ignoredKeywords = [];
_ignoredKeywordsCache = {};
}
public function clearEngines():void{
_sources = [];
_sourcesCache = [];
_sourcesEngine = [];
}
public function get ignoredReferralsCount():int{
return (_ignoredReferrals.length);
}
public function addIgnoredReferral(_arg1:String):void{
if (_ignoredReferralsCache[_arg1] == undefined){
_ignoredReferrals.push(_arg1);
_ignoredReferralsCache[_arg1] = (_ignoredReferrals.length - 1);
} else {
if (throwErrors){
throw (new Error((("\"" + _arg1) + "\" already exists, we don't add it.")));
};
};
}
public function clearIgnoredReferrals():void{
_ignoredReferrals = [];
_ignoredReferralsCache = {};
}
public function getReferrerByName(_arg1:String):OrganicReferrer{
var _local2:int;
if (match(_arg1)){
_local2 = _sourcesEngine[_arg1][0];
return (_sources[_local2]);
};
return (null);
}
public function addIgnoredKeyword(_arg1:String):void{
if (_ignoredKeywordsCache[_arg1] == undefined){
_ignoredKeywords.push(_arg1);
_ignoredKeywordsCache[_arg1] = (_ignoredKeywords.length - 1);
} else {
if (throwErrors){
throw (new Error((("\"" + _arg1) + "\" already exists, we don't add it.")));
};
};
}
public function get sources():Array{
return (_sources);
}
public static function getKeywordValueFromPath(_arg1:String, _arg2:String):String{
var _local3:String;
var _local4:Variables;
if (_arg2.indexOf((_arg1 + "=")) > -1){
if (_arg2.charAt(0) == "?"){
_arg2 = _arg2.substr(1);
};
_arg2 = _arg2.split("+").join("%20");
_local4 = new Variables(_arg2);
_local3 = _local4[_arg1];
};
return (_local3);
}
}
}//package com.google.analytics.core
Section 33
//OrganicReferrer (com.google.analytics.core.OrganicReferrer)
package com.google.analytics.core {
public class OrganicReferrer {
private var _engine:String;
private var _keyword:String;
public function OrganicReferrer(_arg1:String, _arg2:String){
this.engine = _arg1;
this.keyword = _arg2;
}
public function set engine(_arg1:String):void{
_engine = _arg1.toLowerCase();
}
public function get keyword():String{
return (_keyword);
}
public function toString():String{
return (((engine + "?") + keyword));
}
public function get engine():String{
return (_engine);
}
public function set keyword(_arg1:String):void{
_keyword = _arg1.toLowerCase();
}
}
}//package com.google.analytics.core
Section 34
//RequestObject (com.google.analytics.core.RequestObject)
package com.google.analytics.core {
import flash.net.*;
import flash.utils.*;
public class RequestObject {
public var start:int;
public var request:URLRequest;
public var end:int;
public function RequestObject(_arg1:URLRequest){
start = getTimer();
this.request = _arg1;
}
public function toString():String{
var _local1:Array;
_local1 = [];
_local1.push((("duration: " + duration) + "ms"));
_local1.push(("url: " + request.url));
return ((("{ " + _local1.join(", ")) + " }"));
}
public function get duration():int{
if (!hasCompleted()){
return (0);
};
return ((end - start));
}
public function hasCompleted():Boolean{
return ((end > 0));
}
public function complete():void{
end = getTimer();
}
}
}//package com.google.analytics.core
Section 35
//ServerOperationMode (com.google.analytics.core.ServerOperationMode)
package com.google.analytics.core {
public class ServerOperationMode {
private var _value:int;
private var _name:String;
public static const both:ServerOperationMode = new ServerOperationMode(2, "both");
;
public static const remote:ServerOperationMode = new ServerOperationMode(1, "remote");
;
public static const local:ServerOperationMode = new ServerOperationMode(0, "local");
;
public function ServerOperationMode(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.core
Section 36
//TrackerCache (com.google.analytics.core.TrackerCache)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import flash.errors.*;
public class TrackerCache implements GoogleAnalyticsAPI {
public var tracker:GoogleAnalyticsAPI;
private var _ar:Array;
public static var CACHE_THROW_ERROR:Boolean;
public function TrackerCache(_arg1:GoogleAnalyticsAPI=null){
this.tracker = _arg1;
_ar = [];
}
public function size():uint{
return (_ar.length);
}
public function flush():void{
var _local1:Object;
var _local2:String;
var _local3:Array;
var _local4:int;
var _local5:int;
if (tracker == null){
return;
};
if (size() > 0){
_local4 = _ar.length;
while (_local5 < _local4) {
_local1 = _ar.shift();
_local2 = (_local1.name as String);
_local3 = (_local1.args as Array);
if (((!((_local2 == null))) && ((_local2 in tracker)))){
(tracker[_local2] as Function).apply(tracker, _local3);
};
_local5++;
};
};
}
public function enqueue(_arg1:String, ... _args):Boolean{
if (_arg1 == null){
return (false);
};
_ar.push({name:_arg1, args:_args});
return (true);
}
public function link(_arg1:String, _arg2:Boolean=false):void{
enqueue("link", _arg1, _arg2);
}
public function addOrganic(_arg1:String, _arg2:String):void{
enqueue("addOrganic", _arg1, _arg2);
}
public function setAllowLinker(_arg1:Boolean):void{
enqueue("setAllowLinker", _arg1);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
enqueue("trackEvent", _arg1, _arg2, _arg3, _arg4);
return (true);
}
public function getClientInfo():Boolean{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getClientInfo' method for the moment."));
};
return (false);
}
public function trackTrans():void{
enqueue("trackTrans");
}
public function trackPageview(_arg1:String=""):void{
enqueue("trackPageview", _arg1);
}
public function setClientInfo(_arg1:Boolean):void{
enqueue("setClientInfo", _arg1);
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
enqueue("linkByPost", _arg1, _arg2);
}
public function setCookieTimeout(_arg1:int):void{
enqueue("setCookieTimeout", _arg1);
}
public function isEmpty():Boolean{
return ((_ar.length == 0));
}
public function getDetectTitle():Boolean{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getDetectTitle' method for the moment."));
};
return (false);
}
public function resetSession():void{
enqueue("resetSession");
}
public function setDetectFlash(_arg1:Boolean):void{
enqueue("setDetectFlash", _arg1);
}
public function clear():void{
_ar = [];
}
public function setCampNameKey(_arg1:String):void{
enqueue("setCampNameKey", _arg1);
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
enqueue("addItem", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public function createEventTracker(_arg1:String):EventTracker{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'createEventTracker' method for the moment."));
};
return (null);
}
public function setVar(_arg1:String):void{
enqueue("setVar", _arg1);
}
public function clearIgnoredOrganic():void{
enqueue("clearIgnoredOrganic");
}
public function setDomainName(_arg1:String):void{
enqueue("setDomainName", _arg1);
}
public function setCampSourceKey(_arg1:String):void{
enqueue("setCampSourceKey", _arg1);
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'addTrans' method for the moment."));
};
return (null);
}
public function setCampContentKey(_arg1:String):void{
enqueue("setCampContentKey", _arg1);
}
public function setLocalServerMode():void{
enqueue("setLocalServerMode");
}
public function getLocalGifPath():String{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getLocalGifPath' method for the moment."));
};
return ("");
}
public function setAllowAnchor(_arg1:Boolean):void{
enqueue("setAllowAnchor", _arg1);
}
public function clearIgnoredRef():void{
enqueue("clearIgnoredRef");
}
public function setLocalGifPath(_arg1:String):void{
enqueue("setLocalGifPath", _arg1);
}
public function getVersion():String{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getVersion' method for the moment."));
};
return ("");
}
public function setCookiePath(_arg1:String):void{
enqueue("setCookiePath", _arg1);
}
public function setSampleRate(_arg1:Number):void{
enqueue("setSampleRate", _arg1);
}
public function setDetectTitle(_arg1:Boolean):void{
enqueue("setDetectTitle", _arg1);
}
public function setAllowHash(_arg1:Boolean):void{
enqueue("setAllowHash", _arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
enqueue("addIgnoredOrganic", _arg1);
}
public function setCampNOKey(_arg1:String):void{
enqueue("setCampNOKey", _arg1);
}
public function getServiceMode():ServerOperationMode{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getServiceMode' method for the moment."));
};
return (null);
}
public function setLocalRemoteServerMode():void{
enqueue("setLocalRemoteServerMode");
}
public function cookiePathCopy(_arg1:String):void{
enqueue("cookiePathCopy", _arg1);
}
public function getDetectFlash():Boolean{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getDetectFlash' method for the moment."));
};
return (false);
}
public function setCampaignTrack(_arg1:Boolean):void{
enqueue("setCampaignTrack", _arg1);
}
public function clearOrganic():void{
enqueue("clearOrganic");
}
public function setCampTermKey(_arg1:String):void{
enqueue("setCampTermKey", _arg1);
}
public function addIgnoredRef(_arg1:String):void{
enqueue("addIgnoredRef", _arg1);
}
public function setCampMediumKey(_arg1:String):void{
enqueue("setCampMediumKey", _arg1);
}
public function setSessionTimeout(_arg1:int):void{
enqueue("setSessionTimeout", _arg1);
}
public function setRemoteServerMode():void{
enqueue("setRemoteServerMode");
}
public function element(){
return (_ar[0]);
}
public function getAccount():String{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getAccount' method for the moment."));
};
return ("");
}
}
}//package com.google.analytics.core
Section 37
//TrackerMode (com.google.analytics.core.TrackerMode)
package com.google.analytics.core {
public class TrackerMode {
public static const BRIDGE:String = "Bridge";
public static const AS3:String = "AS3";
}
}//package com.google.analytics.core
Section 38
//Utils (com.google.analytics.core.Utils)
package com.google.analytics.core {
public class Utils {
public static function trim(_arg1:String, _arg2:Boolean=false):String{
var _local3:Array;
var _local4:String;
var _local5:int;
var _local6:int;
var _local7:int;
if (_arg1 == ""){
return ("");
};
_local3 = [" ", "\n", "\r", "\t"];
_local4 = _arg1;
if (_arg2){
_local5 = 0;
while ((((_local5 < _local3.length)) && ((_local4.indexOf(_local3[_local5]) > -1)))) {
_local4 = _local4.split(_local3[_local5]).join("");
_local5++;
};
} else {
_local6 = 0;
while ((((_local6 < _local4.length)) && ((_local3.indexOf(_local4.charAt(_local6)) > -1)))) {
_local6++;
};
_local4 = _local4.substr(_local6);
_local7 = (_local4.length - 1);
while ((((_local7 >= 0)) && ((_local3.indexOf(_local4.charAt(_local7)) > -1)))) {
_local7--;
};
_local4 = _local4.substring(0, (_local7 + 1));
};
return (_local4);
}
public static function generateHash(_arg1:String):int{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = 1;
_local3 = 0;
if (((!((_arg1 == null))) && (!((_arg1 == ""))))){
_local2 = 0;
_local4 = (_arg1.length - 1);
while (_local4 >= 0) {
_local5 = _arg1.charCodeAt(_local4);
_local2 = ((((_local2 << 6) & 268435455) + _local5) + (_local5 << 14));
_local3 = (_local2 & 266338304);
if (_local3 != 0){
_local2 = (_local2 ^ (_local3 >> 21));
};
_local4--;
};
};
return (_local2);
}
public static function generate32bitRandom():int{
return (Math.round((Math.random() * 2147483647)));
}
public static function validateAccount(_arg1:String):Boolean{
var _local2:RegExp;
_local2 = /^UA-[0-9]*-[0-9]*$/;
return (_local2.test(_arg1));
}
}
}//package com.google.analytics.core
Section 39
//Cookie (com.google.analytics.data.Cookie)
package com.google.analytics.data {
public interface Cookie {
function fromSharedObject(_arg1:Object):void;
function toURLString():String;
function get creation():Date;
function toSharedObject():Object;
function isExpired():Boolean;
function set creation(_arg1:Date):void;
function set expiration(_arg1:Date):void;
function get expiration():Date;
}
}//package com.google.analytics.data
Section 40
//UTMA (com.google.analytics.data.UTMA)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMA extends UTMCookie {
private var _sessionId:Number;
private var _domainHash:Number;
private var _firstTime:Number;
private var _currentTime:Number;
private var _lastTime:Number;
private var _sessionCount:Number;
public function UTMA(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN, _arg5:Number=NaN, _arg6:Number=NaN){
super("utma", "__utma", ["domainHash", "sessionId", "firstTime", "lastTime", "currentTime", "sessionCount"], (Timespan.twoyears * 1000));
this.domainHash = _arg1;
this.sessionId = _arg2;
this.firstTime = _arg3;
this.lastTime = _arg4;
this.currentTime = _arg5;
this.sessionCount = _arg6;
}
public function get lastTime():Number{
return (_lastTime);
}
public function set lastTime(_arg1:Number):void{
_lastTime = _arg1;
update();
}
public function set currentTime(_arg1:Number):void{
_currentTime = _arg1;
update();
}
public function get sessionId():Number{
return (_sessionId);
}
public function get sessionCount():Number{
return (_sessionCount);
}
public function get firstTime():Number{
return (_firstTime);
}
public function get currentTime():Number{
return (_currentTime);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function set sessionId(_arg1:Number):void{
_sessionId = _arg1;
update();
}
public function set sessionCount(_arg1:Number):void{
_sessionCount = _arg1;
update();
}
public function get domainHash():Number{
return (_domainHash);
}
public function set firstTime(_arg1:Number):void{
_firstTime = _arg1;
update();
}
}
}//package com.google.analytics.data
Section 41
//UTMB (com.google.analytics.data.UTMB)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMB extends UTMCookie {
private var _trackCount:Number;
private var _lastTime:Number;
private var _domainHash:Number;
private var _token:Number;
public static var defaultTimespan:Number = Timespan.thirtyminutes;
public function UTMB(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN){
super("utmb", "__utmb", ["domainHash", "trackCount", "token", "lastTime"], (defaultTimespan * 1000));
this.domainHash = _arg1;
this.trackCount = _arg2;
this.token = _arg3;
this.lastTime = _arg4;
}
public function set token(_arg1:Number):void{
_token = _arg1;
update();
}
public function set trackCount(_arg1:Number):void{
_trackCount = _arg1;
update();
}
public function get lastTime():Number{
return (_lastTime);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function set lastTime(_arg1:Number):void{
_lastTime = _arg1;
update();
}
public function get domainHash():Number{
return (_domainHash);
}
public function get token():Number{
return (_token);
}
public function get trackCount():Number{
return (_trackCount);
}
}
}//package com.google.analytics.data
Section 42
//UTMC (com.google.analytics.data.UTMC)
package com.google.analytics.data {
public class UTMC extends UTMCookie {
private var _domainHash:Number;
public function UTMC(_arg1:Number=NaN){
super("utmc", "__utmc", ["domainHash"]);
this.domainHash = _arg1;
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function get domainHash():Number{
return (_domainHash);
}
}
}//package com.google.analytics.data
Section 43
//UTMCookie (com.google.analytics.data.UTMCookie)
package com.google.analytics.data {
import com.google.analytics.core.*;
public class UTMCookie implements Cookie {
protected var inURL:String;
protected var name:String;
private var _creation:Date;
private var _expiration:Date;
public var proxy:Buffer;
private var _timespan:Number;
protected var fields:Array;
public function UTMCookie(_arg1:String, _arg2:String, _arg3:Array, _arg4:Number=0){
this.name = _arg1;
this.inURL = _arg2;
this.fields = _arg3;
_timestamp(_arg4);
}
public function isEmpty():Boolean{
var _local1:int;
var _local2:String;
var _local3:int;
_local1 = 0;
_local3 = 0;
while (_local3 < fields.length) {
_local2 = fields[_local3];
if ((((this[_local2] is Number)) && (isNaN(this[_local2])))){
_local1++;
} else {
if ((((this[_local2] is String)) && ((this[_local2] == "")))){
_local1++;
};
};
_local3++;
};
if (_local1 == fields.length){
return (true);
};
return (false);
}
protected function update():void{
resetTimestamp();
if (proxy){
proxy.update(name, toSharedObject());
};
}
public function fromSharedObject(_arg1:Object):void{
var _local2:String;
var _local3:int;
var _local4:int;
_local3 = fields.length;
_local4 = 0;
while (_local4 < _local3) {
_local2 = fields[_local4];
if (_arg1[_local2]){
this[_local2] = _arg1[_local2];
};
_local4++;
};
if (_arg1.creation){
this.creation = _arg1.creation;
};
if (_arg1.expiration){
this.expiration = _arg1.expiration;
};
}
private function _timestamp(_arg1:Number):void{
creation = new Date();
_timespan = _arg1;
if (_arg1 > 0){
expiration = new Date((creation.valueOf() + _arg1));
};
}
public function isExpired():Boolean{
var _local1:Date;
var _local2:Number;
_local1 = new Date();
_local2 = (expiration.valueOf() - _local1.valueOf());
if (_local2 <= 0){
return (true);
};
return (false);
}
public function set expiration(_arg1:Date):void{
_expiration = _arg1;
}
public function get creation():Date{
return (_creation);
}
public function reset():void{
var _local1:String;
var _local2:int;
_local2 = 0;
while (_local2 < fields.length) {
_local1 = fields[_local2];
if ((this[_local1] is Number)){
this[_local1] = NaN;
} else {
if ((this[_local1] is String)){
this[_local1] = "";
};
};
_local2++;
};
resetTimestamp();
update();
}
public function valueOf():String{
var _local1:Array;
var _local2:String;
var _local3:*;
var _local4:int;
_local1 = [];
_local4 = 0;
while (_local4 < fields.length) {
_local2 = fields[_local4];
_local3 = this[_local2];
if ((_local3 is String)){
if (_local3 == ""){
_local3 = "-";
_local1.push(_local3);
} else {
_local1.push(_local3);
};
} else {
if ((_local3 is Number)){
if (_local3 == 0){
_local1.push(_local3);
} else {
if (isNaN(_local3)){
_local3 = "-";
_local1.push(_local3);
} else {
_local1.push(_local3);
};
};
};
};
_local4++;
};
return (("" + _local1.join(".")));
}
public function resetTimestamp(_arg1:Number=NaN):void{
if (!isNaN(_arg1)){
_timespan = _arg1;
};
_creation = null;
_expiration = null;
_timestamp(_timespan);
}
public function get expiration():Date{
if (_expiration){
return (_expiration);
};
return (new Date((new Date().valueOf() + 1000)));
}
public function toURLString():String{
return (((inURL + "=") + valueOf()));
}
public function toSharedObject():Object{
var _local1:Object;
var _local2:String;
var _local3:*;
var _local4:int;
_local1 = {};
_local4 = 0;
for (;_local4 < fields.length;_local4++) {
_local2 = fields[_local4];
_local3 = this[_local2];
if ((_local3 is String)){
_local1[_local2] = _local3;
} else {
if (_local3 == 0){
_local1[_local2] = _local3;
} else {
if (isNaN(_local3)){
continue;
} else {
_local1[_local2] = _local3;
};
};
};
};
_local1.creation = creation;
_local1.expiration = expiration;
return (_local1);
}
public function toString(_arg1:Boolean=false):String{
var _local2:Array;
var _local3:String;
var _local4:*;
var _local5:int;
var _local6:int;
var _local7:String;
_local2 = [];
_local5 = fields.length;
_local6 = 0;
for (;_local6 < _local5;_local6++) {
_local3 = fields[_local6];
_local4 = this[_local3];
if ((_local4 is String)){
_local2.push((((_local3 + ": \"") + _local4) + "\""));
} else {
if (_local4 == 0){
_local2.push(((_local3 + ": ") + _local4));
} else {
if (isNaN(_local4)){
continue;
} else {
_local2.push(((_local3 + ": ") + _local4));
};
};
};
};
_local7 = (((name.toUpperCase() + " {") + _local2.join(", ")) + "}");
if (_arg1){
_local7 = (_local7 + (((" creation:" + creation) + ", expiration:") + expiration));
};
return (_local7);
}
public function set creation(_arg1:Date):void{
_creation = _arg1;
}
}
}//package com.google.analytics.data
Section 44
//UTMK (com.google.analytics.data.UTMK)
package com.google.analytics.data {
public class UTMK extends UTMCookie {
private var _hash:Number;
public function UTMK(_arg1:Number=NaN){
super("utmk", "__utmk", ["hash"]);
this.hash = _arg1;
}
public function set hash(_arg1:Number):void{
_hash = _arg1;
update();
}
public function get hash():Number{
return (_hash);
}
}
}//package com.google.analytics.data
Section 45
//UTMV (com.google.analytics.data.UTMV)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMV extends UTMCookie {
private var _domainHash:Number;
private var _value:String;
public function UTMV(_arg1:Number=NaN, _arg2:String=""){
super("utmv", "__utmv", ["domainHash", "value"], (Timespan.twoyears * 1000));
this.domainHash = _arg1;
this.value = _arg2;
}
override public function toURLString():String{
return (((inURL + "=") + encodeURI(valueOf())));
}
public function get value():String{
return (_value);
}
public function get domainHash():Number{
return (_domainHash);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function set value(_arg1:String):void{
_value = _arg1;
update();
}
}
}//package com.google.analytics.data
Section 46
//UTMZ (com.google.analytics.data.UTMZ)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMZ extends UTMCookie {
private var _campaignTracking:String;
private var _campaignCreation:Number;
private var _responseCount:Number;
private var _domainHash:Number;
private var _campaignSessions:Number;
public static var defaultTimespan:Number = Timespan.sixmonths;
public function UTMZ(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN, _arg5:String=""){
super("utmz", "__utmz", ["domainHash", "campaignCreation", "campaignSessions", "responseCount", "campaignTracking"], (defaultTimespan * 1000));
this.domainHash = _arg1;
this.campaignCreation = _arg2;
this.campaignSessions = _arg3;
this.responseCount = _arg4;
this.campaignTracking = _arg5;
}
public function set responseCount(_arg1:Number):void{
_responseCount = _arg1;
update();
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function set campaignCreation(_arg1:Number):void{
_campaignCreation = _arg1;
update();
}
public function get campaignTracking():String{
return (_campaignTracking);
}
public function get campaignSessions():Number{
return (_campaignSessions);
}
public function get domainHash():Number{
return (_domainHash);
}
public function get responseCount():Number{
return (_responseCount);
}
public function get campaignCreation():Number{
return (_campaignCreation);
}
public function set campaignSessions(_arg1:Number):void{
_campaignSessions = _arg1;
update();
}
public function set campaignTracking(_arg1:String):void{
_campaignTracking = _arg1;
update();
}
}
}//package com.google.analytics.data
Section 47
//X10 (com.google.analytics.data.X10)
package com.google.analytics.data {
public class X10 {
private var _delimEnd:String;// = ")"
private var _delimSet:String;// = "*"
private var _escapeChar:String;// = "'"
private var _delimBegin:String;// = "("
private var _delimNumValue:String;// = "!"
private var _key:String;// = "k"
private var _set:Array;
private var _projectData:Object;
private var _hasData:int;
private var _escapeCharMap:Object;
private var _minimum:int;
private var _value:String;// = "v"
public function X10(){
_key = "k";
_value = "v";
_set = [_key, _value];
_delimBegin = "(";
_delimEnd = ")";
_delimSet = "*";
_delimNumValue = "!";
_escapeChar = "'";
super();
_projectData = {};
_escapeCharMap = {};
_escapeCharMap[_escapeChar] = "'0";
_escapeCharMap[_delimEnd] = "'1";
_escapeCharMap[_delimSet] = "'2";
_escapeCharMap[_delimNumValue] = "'3";
_minimum = 1;
}
private function _clearInternal(_arg1:Number, _arg2:String):void{
var _local3:Boolean;
var _local4:int;
var _local5:int;
if (((hasProject(_arg1)) && (!((_projectData[_arg1][_arg2] == undefined))))){
_projectData[_arg1][_arg2] = undefined;
_local3 = true;
_local5 = _set.length;
_local4 = 0;
while (_local4 < _local5) {
if (_projectData[_arg1][_set[_local4]] != undefined){
_local3 = false;
break;
};
_local4++;
};
if (_local3){
_projectData[_arg1] = undefined;
_hasData = (_hasData - 1);
};
};
}
public function hasData():Boolean{
return ((_hasData > 0));
}
private function _setInternal(_arg1:Number, _arg2:String, _arg3:Number, _arg4:String):void{
if (!hasProject(_arg1)){
_projectData[_arg1] = {};
};
if (_projectData[_arg1][_arg2] == undefined){
_projectData[_arg1][_arg2] = [];
};
_projectData[_arg1][_arg2][_arg3] = _arg4;
_hasData = (_hasData + 1);
}
public function hasProject(_arg1:Number):Boolean{
return (_projectData[_arg1]);
}
public function clearKey(_arg1:Number):void{
_clearInternal(_arg1, _key);
}
private function _renderDataType(_arg1:Array):String{
var _local2:Array;
var _local3:String;
var _local4:int;
_local2 = [];
_local4 = 0;
while (_local4 < _arg1.length) {
if (_arg1[_local4] != undefined){
_local3 = "";
if (((!((_local4 == _minimum))) && ((_arg1[(_local4 - 1)] == undefined)))){
_local3 = (_local3 + _local4.toString());
_local3 = (_local3 + _delimNumValue);
};
_local3 = (_local3 + _escapeExtensibleValue(_arg1[_local4]));
_local2.push(_local3);
};
_local4++;
};
return (((_delimBegin + _local2.join(_delimSet)) + _delimEnd));
}
public function getKey(_arg1:Number, _arg2:Number):String{
return ((_getInternal(_arg1, _key, _arg2) as String));
}
public function clearValue(_arg1:Number):void{
_clearInternal(_arg1, _value);
}
public function renderMergedUrlString(_arg1:X10=null):String{
var _local2:Array;
var _local3:String;
if (!_arg1){
return (renderUrlString());
};
_local2 = [_arg1.renderUrlString()];
for (_local3 in _projectData) {
if (((hasProject(Number(_local3))) && (!(_arg1.hasProject(Number(_local3)))))){
_local2.push((_local3 + _renderProject(_projectData[_local3])));
};
};
return (_local2.join(""));
}
public function setValue(_arg1:Number, _arg2:Number, _arg3:Number):Boolean{
if (((((!((Math.round(_arg3) == _arg3))) || (isNaN(_arg3)))) || ((_arg3 == Infinity)))){
return (false);
};
_setInternal(_arg1, _value, _arg2, _arg3.toString());
return (true);
}
public function renderUrlString():String{
var _local1:Array;
var _local2:String;
_local1 = [];
for (_local2 in _projectData) {
if (hasProject(Number(_local2))){
_local1.push((_local2 + _renderProject(_projectData[_local2])));
};
};
return (_local1.join(""));
}
private function _getInternal(_arg1:Number, _arg2:String, _arg3:Number):Object{
if (((hasProject(_arg1)) && (!((_projectData[_arg1][_arg2] == undefined))))){
return (_projectData[_arg1][_arg2][_arg3]);
};
return (undefined);
}
public function setKey(_arg1:Number, _arg2:Number, _arg3:String):Boolean{
_setInternal(_arg1, _key, _arg2, _arg3);
return (true);
}
public function getValue(_arg1:Number, _arg2:Number){
var _local3:*;
_local3 = _getInternal(_arg1, _value, _arg2);
if (_local3 == null){
return (null);
};
return (Number(_local3));
}
private function _renderProject(_arg1:Object):String{
var _local2:String;
var _local3:Boolean;
var _local4:int;
var _local5:Array;
var _local6:int;
_local2 = "";
_local3 = false;
_local6 = _set.length;
_local4 = 0;
while (_local4 < _local6) {
_local5 = _arg1[_set[_local4]];
if (_local5){
if (_local3){
_local2 = (_local2 + _set[_local4]);
};
_local2 = (_local2 + _renderDataType(_local5));
_local3 = false;
} else {
_local3 = true;
};
_local4++;
};
return (_local2);
}
private function _escapeExtensibleValue(_arg1:String):String{
var _local2:String;
var _local3:int;
var _local4:String;
var _local5:String;
_local2 = "";
_local3 = 0;
while (_local3 < _arg1.length) {
_local4 = _arg1.charAt(_local3);
_local5 = _escapeCharMap[_local4];
if (_local5){
_local2 = (_local2 + _local5);
} else {
_local2 = (_local2 + _local4);
};
_local3++;
};
return (_local2);
}
}
}//package com.google.analytics.data
Section 48
//_Style (com.google.analytics.debug._Style)
package com.google.analytics.debug {
import flash.net.*;
import flash.text.*;
public class _Style {
public var borderColor:uint;
public var backgroundColor:uint;
private var _sheet:StyleSheet;
public var roundedCorner:uint;
public var alertColor:uint;
public var infoColor:uint;
public var successColor:uint;
private var _loader:URLLoader;
public var failureColor:uint;
private var _defaultSheet:String;
public var warningColor:uint;
public function _Style(){
_sheet = new StyleSheet();
_loader = new URLLoader();
_init();
}
private function _parseSheet(_arg1:String):void{
_sheet.parseCSS(_arg1);
}
public function get sheet():StyleSheet{
return (_sheet);
}
private function _init():void{
_defaultSheet = "";
_defaultSheet = (_defaultSheet + "a{text-decoration: underline;}\n");
_defaultSheet = (_defaultSheet + ".uiLabel{color: #000000;font-family: Arial;font-size: 12;margin-left: 2;margin-right: 2;}\n");
_defaultSheet = (_defaultSheet + ".uiWarning{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiAlert{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiInfo{color: #000000;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiSuccess{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiFailure{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiAlertAction{color: #ffffff;text-align: center;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiAlertTitle{color: #ffffff;font-family: Arial;font-size: 16;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + "\n");
roundedCorner = 6;
backgroundColor = 0xCCCCCC;
borderColor = 0x555555;
infoColor = 16777113;
alertColor = 0xFFCC00;
warningColor = 0xCC0000;
successColor = 0xFF00;
failureColor = 0xFF0000;
_parseSheet(_defaultSheet);
}
}
}//package com.google.analytics.debug
Section 49
//Alert (com.google.analytics.debug.Alert)
package com.google.analytics.debug {
import flash.events.*;
public class Alert extends Label {
public var actionOnNextLine:Boolean;// = true
public var autoClose:Boolean;// = true
private var _actions:Array;
public function Alert(_arg1:String, _arg2:Array, _arg3:String="uiAlert", _arg4:uint=0, _arg5:Align=null, _arg6:Boolean=false, _arg7:Boolean=true){
var _local8:int;
autoClose = true;
actionOnNextLine = true;
if (_arg4 == 0){
_arg4 = Style.alertColor;
};
if (_arg5 == null){
_arg5 = Align.center;
};
super(_arg1, _arg3, _arg4, _arg5, _arg6);
this.selectable = true;
super.mouseChildren = true;
this.buttonMode = true;
this.mouseEnabled = true;
this.useHandCursor = true;
this.actionOnNextLine = _arg7;
_actions = [];
_local8 = 0;
while (_local8 < _arg2.length) {
_arg2[_local8].container = this;
_actions.push(_arg2[_local8]);
_local8++;
};
}
protected function getAction(_arg1:String):AlertAction{
var _local2:int;
_local2 = 0;
while (_local2 < _actions.length) {
if (_arg1 == _actions[_local2].activator){
return (_actions[_local2]);
};
_local2++;
};
return (null);
}
override protected function layout():void{
super.layout();
_defineActions();
}
protected function spaces(_arg1:int):String{
var _local2:String;
var _local3:String;
var _local4:int;
_local2 = "";
_local3 = " ";
_local4 = 0;
while (_local4 < (_arg1 + 1)) {
_local2 = (_local2 + _local3);
_local4++;
};
return (_local2);
}
override public function onLink(_arg1:TextEvent):void{
var _local2:AlertAction;
if (isValidAction(_arg1.text)){
_local2 = getAction(_arg1.text);
if (_local2){
_local2.execute();
};
};
if (autoClose){
close();
};
}
protected function isValidAction(_arg1:String):Boolean{
var _local2:int;
_local2 = 0;
while (_local2 < _actions.length) {
if (_arg1 == _actions[_local2].activator){
return (true);
};
_local2++;
};
return (false);
}
private function _defineActions():void{
var _local1:String;
var _local2:Array;
var _local3:AlertAction;
var _local4:int;
_local1 = "";
if (actionOnNextLine){
_local1 = (_local1 + "\n");
} else {
_local1 = (_local1 + " |");
};
_local1 = (_local1 + " ");
_local2 = [];
_local4 = 0;
while (_local4 < _actions.length) {
_local3 = _actions[_local4];
_local2.push((((("<a href=\"event:" + _local3.activator) + "\">") + _local3.name) + "</a>"));
_local4++;
};
_local1 = (_local1 + _local2.join(" | "));
appendText(_local1, "uiAlertAction");
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 50
//AlertAction (com.google.analytics.debug.AlertAction)
package com.google.analytics.debug {
public class AlertAction {
public var container:Alert;
private var _callback;
public var name:String;
public var activator:String;
public function AlertAction(_arg1:String, _arg2:String, _arg3){
this.name = _arg1;
this.activator = _arg2;
_callback = _arg3;
}
public function execute():void{
if (_callback){
if ((_callback is Function)){
(_callback as Function)();
} else {
if ((_callback is String)){
var _local1 = container;
_local1[_callback]();
};
};
};
}
}
}//package com.google.analytics.debug
Section 51
//Align (com.google.analytics.debug.Align)
package com.google.analytics.debug {
public class Align {
private var _value:int;
private var _name:String;
public static const bottomRight:Align = new Align(18, "bottomRight");
;
public static const right:Align = new Align(16, "right");
;
public static const left:Align = new Align(32, "left");
;
public static const topRight:Align = new Align(17, "topRight");
;
public static const bottom:Align = new Align(2, "bottom");
;
public static const bottomLeft:Align = new Align(34, "bottomLeft");
;
public static const topLeft:Align = new Align(33, "topLeft");
;
public static const center:Align = new Align(0x0100, "center");
;
public static const none:Align = new Align(0, "none");
;
public static const top:Align = new Align(1, "top");
;
public function Align(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.debug
Section 52
//Background (com.google.analytics.debug.Background)
package com.google.analytics.debug {
import flash.display.*;
public class Background {
public static function drawRounded(_arg1, _arg2:Graphics, _arg3:uint=0, _arg4:uint=0):void{
var _local5:uint;
var _local6:uint;
var _local7:uint;
_local7 = Style.roundedCorner;
if ((((_arg3 > 0)) && ((_arg4 > 0)))){
_local5 = _arg3;
_local6 = _arg4;
} else {
_local5 = _arg1.width;
_local6 = _arg1.height;
};
if (((_arg1.stickToEdge) && (!((_arg1.alignement == Align.none))))){
switch (_arg1.alignement){
case Align.top:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, _local7, _local7);
break;
case Align.topLeft:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, 0, _local7);
break;
case Align.topRight:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, _local7, 0);
break;
case Align.bottom:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, _local7, 0, 0);
break;
case Align.bottomLeft:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, _local7, 0, 0);
break;
case Align.bottomRight:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, 0, 0, 0);
break;
case Align.left:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, _local7, 0, _local7);
break;
case Align.right:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, 0, _local7, 0);
break;
case Align.center:
_arg2.drawRoundRect(0, 0, _local5, _local6, _local7, _local7);
break;
};
} else {
_arg2.drawRoundRect(0, 0, _local5, _local6, _local7, _local7);
};
}
}
}//package com.google.analytics.debug
Section 53
//Debug (com.google.analytics.debug.Debug)
package com.google.analytics.debug {
import flash.events.*;
import flash.ui.*;
public class Debug extends Label {
private var _lines:Array;
private var _preferredForcedWidth:uint;// = 540
private var _linediff:int;// = 0
public var maxLines:uint;// = 16
public static var count:uint = 0;
public function Debug(_arg1:uint=0, _arg2:Align=null, _arg3:Boolean=false){
if (_arg2 == null){
_arg2 = Align.bottom;
};
super("", "uiLabel", _arg1, _arg2, _arg3);
this.name = ("Debug" + count++);
_lines = [];
selectable = true;
addEventListener(KeyboardEvent.KEY_DOWN, onKey);
}
public function writeBold(_arg1:String):void{
write(_arg1, true);
}
private function _getLinesToDisplay(_arg1:int=0):Array{
var _local2:Array;
var _local3:uint;
var _local4:uint;
if ((_lines.length - 1) > maxLines){
if ((_linediff <= 0)){
_linediff = (_linediff + _arg1);
} else {
if ((((_linediff > 0)) && ((_arg1 < 0)))){
_linediff = (_linediff + _arg1);
};
};
_local3 = ((_lines.length - maxLines) + _linediff);
_local4 = (_local3 + maxLines);
_local2 = _lines.slice(_local3, _local4);
} else {
_local2 = _lines;
};
return (_local2);
}
private function onKey(_arg1:KeyboardEvent=null):void{
var _local2:Array;
switch (_arg1.keyCode){
case Keyboard.DOWN:
_local2 = _getLinesToDisplay(1);
break;
case Keyboard.UP:
_local2 = _getLinesToDisplay(-1);
break;
default:
_local2 = null;
};
if (_local2 == null){
return;
};
text = _local2.join("\n");
}
override public function get forcedWidth():uint{
if (this.parent){
if (UISprite(this.parent).forcedWidth > _preferredForcedWidth){
return (_preferredForcedWidth);
};
return (UISprite(this.parent).forcedWidth);
//unresolved jump
};
return (super.forcedWidth);
}
public function write(_arg1:String, _arg2:Boolean=false):void{
var _local3:Array;
if (_arg1.indexOf("") > -1){
_local3 = _arg1.split("\n");
} else {
_local3 = [_arg1];
};
var _local4 = "";
var _local5 = "";
if (_arg2){
_local4 = "<b>";
_local5 = "</b>";
};
var _local6:int;
while (_local6 < _local3.length) {
_lines.push(((_local4 + _local3[_local6]) + _local5));
_local6++;
};
var _local7:Array = _getLinesToDisplay();
text = _local7.join("\n");
}
public function close():void{
dispose();
}
override protected function dispose():void{
removeEventListener(KeyboardEvent.KEY_DOWN, onKey);
super.dispose();
}
}
}//package com.google.analytics.debug
Section 54
//DebugConfiguration (com.google.analytics.debug.DebugConfiguration)
package com.google.analytics.debug {
import com.google.analytics.core.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
public class DebugConfiguration {
public var showHideKey:Number;
private var _mode:VisualDebugMode;
private var _verbose:Boolean;// = false
public var destroyKey:Number;
public var GIFRequests:Boolean;// = false
public var showInfos:Boolean;// = true
public var infoTimeout:Number;// = 1000
public var minimizedOnStart:Boolean;// = false
private var _active:Boolean;// = false
public var traceOutput:Boolean;// = false
public var layout:ILayout;
public var warningTimeout:Number;// = 1500
public var javascript:Boolean;// = false
public var showWarnings:Boolean;// = true
private var _visualInitialized:Boolean;// = false
public function DebugConfiguration(){
_mode = VisualDebugMode.basic;
showHideKey = Keyboard.SPACE;
destroyKey = Keyboard.BACKSPACE;
super();
}
public function get verbose():Boolean{
return (_verbose);
}
public function set verbose(_arg1:Boolean):void{
_verbose = _arg1;
}
public function set mode(_arg1):void{
if ((_arg1 is String)){
switch (_arg1){
case "geek":
_arg1 = VisualDebugMode.geek;
break;
case "advanced":
_arg1 = VisualDebugMode.advanced;
break;
case "basic":
default:
_arg1 = VisualDebugMode.basic;
};
};
_mode = _arg1;
}
public function success(_arg1:String):void{
if (layout){
layout.createSuccessAlert(_arg1);
};
if (traceOutput){
trace((("[+] " + _arg1) + " !!"));
};
}
public function get active():Boolean{
return (_active);
}
private function _initializeVisual():void{
if (layout){
layout.init();
_visualInitialized = true;
};
}
private function _destroyVisual():void{
if (((layout) && (_visualInitialized))){
layout.destroy();
};
}
public function warning(_arg1:String, _arg2:VisualDebugMode=null):void{
if (_filter(_arg2)){
return;
};
if (((layout) && (showWarnings))){
layout.createWarning(_arg1);
};
if (traceOutput){
trace((("## " + _arg1) + " ##"));
};
}
private function _filter(_arg1:VisualDebugMode=null):Boolean{
return (((_arg1) && ((int(_arg1) >= int(this.mode)))));
}
public function failure(_arg1:String):void{
if (layout){
layout.createFailureAlert(_arg1);
};
if (traceOutput){
trace((("[-] " + _arg1) + " !!"));
};
}
public function get mode(){
return (_mode);
}
public function set active(_arg1:Boolean):void{
_active = _arg1;
if (_active){
_initializeVisual();
} else {
_destroyVisual();
};
}
protected function trace(_arg1:String):void{
var _local7:Array;
var _local8:int;
var _local2:Array = [];
var _local3 = "";
var _local4 = "";
if (this.mode == VisualDebugMode.geek){
_local3 = (getTimer() + " - ");
_local4 = (new Array(_local3.length).join(" ") + " ");
};
if (_arg1.indexOf("\n") > -1){
_local7 = _arg1.split("\n");
_local8 = 0;
while (_local8 < _local7.length) {
if (_local7[_local8] == ""){
} else {
if (_local8 == 0){
_local2.push((_local3 + _local7[_local8]));
} else {
_local2.push((_local4 + _local7[_local8]));
};
};
_local8++;
};
} else {
_local2.push((_local3 + _arg1));
};
var _local5:int = _local2.length;
var _local6:int;
while (_local6 < _local5) {
trace(_local2[_local6]);
_local6++;
};
}
public function alert(_arg1:String):void{
if (layout){
layout.createAlert(_arg1);
};
if (traceOutput){
trace((("!! " + _arg1) + " !!"));
};
}
public function info(_arg1:String, _arg2:VisualDebugMode=null):void{
if (_filter(_arg2)){
return;
};
if (((layout) && (showInfos))){
layout.createInfo(_arg1);
};
if (traceOutput){
trace(_arg1);
};
}
public function alertGifRequest(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void{
if (layout){
layout.createGIFRequestAlert(_arg1, _arg2, _arg3);
};
if (traceOutput){
trace(((">> " + _arg1) + " <<"));
};
}
}
}//package com.google.analytics.debug
Section 55
//FailureAlert (com.google.analytics.debug.FailureAlert)
package com.google.analytics.debug {
public class FailureAlert extends Alert {
public function FailureAlert(_arg1:DebugConfiguration, _arg2:String, _arg3:Array){
var _local4:Align;
var _local5:Boolean;
var _local6:Boolean;
_local4 = Align.bottomLeft;
_local5 = true;
_local6 = false;
if (_arg1.verbose){
_arg2 = ((("<u><span class=\"uiAlertTitle\">Failure</span>" + spaces(18)) + "</u>\n\n") + _arg2);
_local4 = Align.center;
_local5 = false;
_local6 = true;
};
super(_arg2, _arg3, "uiFailure", Style.failureColor, _local4, _local5, _local6);
}
}
}//package com.google.analytics.debug
Section 56
//GIFRequestAlert (com.google.analytics.debug.GIFRequestAlert)
package com.google.analytics.debug {
public class GIFRequestAlert extends Alert {
public function GIFRequestAlert(_arg1:String, _arg2:Array){
super(_arg1, _arg2);
}
}
}//package com.google.analytics.debug
Section 57
//ILayout (com.google.analytics.debug.ILayout)
package com.google.analytics.debug {
import flash.display.*;
import com.google.analytics.core.*;
import flash.net.*;
public interface ILayout {
function createWarning(_arg1:String):void;
function addToStage(_arg1:DisplayObject):void;
function createGIFRequestAlert(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void;
function createPanel(_arg1:String, _arg2:uint, _arg3:uint):void;
function createInfo(_arg1:String):void;
function createFailureAlert(_arg1:String):void;
function addToPanel(_arg1:String, _arg2:DisplayObject):void;
function init():void;
function createSuccessAlert(_arg1:String):void;
function createVisualDebug():void;
function createAlert(_arg1:String):void;
function destroy():void;
function bringToFront(_arg1:DisplayObject):void;
function isAvailable():Boolean;
}
}//package com.google.analytics.debug
Section 58
//Info (com.google.analytics.debug.Info)
package com.google.analytics.debug {
import flash.events.*;
import flash.utils.*;
public class Info extends Label {
private var _timer:Timer;
public function Info(_arg1:String="", _arg2:uint=3000){
super(_arg1, "uiInfo", Style.infoColor, Align.top, true);
if (_arg2 > 0){
_timer = new Timer(_arg2, 1);
_timer.start();
_timer.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete, false, 0, true);
};
}
public function onComplete(_arg1:TimerEvent):void{
close();
}
override public function onLink(_arg1:TextEvent):void{
switch (_arg1.text){
case "hide":
close();
break;
};
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 59
//Label (com.google.analytics.debug.Label)
package com.google.analytics.debug {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class Label extends UISprite {
private var _color:uint;
private var _background:Shape;
private var _textField:TextField;
public var stickToEdge:Boolean;
private var _text:String;
protected var selectable:Boolean;
private var _tag:String;
public static var count:uint = 0;
public function Label(_arg1:String="", _arg2:String="uiLabel", _arg3:uint=0, _arg4:Align=null, _arg5:Boolean=false){
this.name = ("Label" + count++);
selectable = false;
_background = new Shape();
_textField = new TextField();
_text = _arg1;
_tag = _arg2;
if (_arg4 == null){
_arg4 = Align.none;
};
this.alignement = _arg4;
this.stickToEdge = _arg5;
if (_arg3 == 0){
_arg3 = Style.backgroundColor;
};
_color = _arg3;
_textField.addEventListener(TextEvent.LINK, onLink);
}
public function get tag():String{
return (_tag);
}
private function _draw():void{
var _local1:Graphics = _background.graphics;
_local1.clear();
_local1.beginFill(_color);
var _local2:uint = _textField.width;
var _local3:uint = _textField.height;
if (forcedWidth > 0){
_local2 = forcedWidth;
};
Background.drawRounded(this, _local1, _local2, _local3);
_local1.endFill();
}
public function get text():String{
return (_textField.text);
}
public function appendText(_arg1:String, _arg2:String=""):void{
if (_arg1 == ""){
return;
};
if (_arg2 == ""){
_arg2 = tag;
};
_textField.htmlText = (_textField.htmlText + (((("<span class=\"" + _arg2) + "\">") + _arg1) + "</span>"));
_text = (_text + _arg1);
_draw();
resize();
}
public function set text(_arg1:String):void{
if (_arg1 == ""){
_arg1 = _text;
};
_textField.htmlText = (((("<span class=\"" + tag) + "\">") + _arg1) + "</span>");
_text = _arg1;
_draw();
resize();
}
override protected function layout():void{
_textField.type = TextFieldType.DYNAMIC;
_textField.autoSize = TextFieldAutoSize.LEFT;
_textField.background = false;
_textField.selectable = selectable;
_textField.multiline = true;
_textField.styleSheet = Style.sheet;
this.text = _text;
addChild(_background);
addChild(_textField);
}
public function set tag(_arg1:String):void{
_tag = _arg1;
text = "";
}
public function onLink(_arg1:TextEvent):void{
}
override protected function dispose():void{
_textField.removeEventListener(TextEvent.LINK, onLink);
super.dispose();
}
}
}//package com.google.analytics.debug
Section 60
//Layout (com.google.analytics.debug.Layout)
package com.google.analytics.debug {
import flash.display.*;
import flash.events.*;
import com.google.analytics.core.*;
import flash.net.*;
import com.google.analytics.*;
public class Layout implements ILayout {
private var _display:DisplayObject;
private var _infoQueue:Array;
private var _maxCharPerLine:int;// = 85
private var _hasInfo:Boolean;
private var _warningQueue:Array;
private var _hasDebug:Boolean;
private var _hasWarning:Boolean;
private var _mainPanel:Panel;
private var _GRAlertQueue:Array;
private var _debug:DebugConfiguration;
public var visualDebug:Debug;
private var _hasGRAlert:Boolean;
public function Layout(_arg1:DebugConfiguration, _arg2:DisplayObject){
_display = _arg2;
_debug = _arg1;
_hasWarning = false;
_hasInfo = false;
_hasDebug = false;
_hasGRAlert = false;
_warningQueue = [];
_infoQueue = [];
_GRAlertQueue = [];
}
private function onKey(_arg1:KeyboardEvent=null):void{
switch (_arg1.keyCode){
case _debug.showHideKey:
_mainPanel.visible = !(_mainPanel.visible);
break;
case _debug.destroyKey:
destroy();
break;
};
}
public function createWarning(_arg1:String):void{
if (((_hasWarning) || (!(isAvailable())))){
_warningQueue.push(_arg1);
return;
};
_arg1 = _filterMaxChars(_arg1);
_hasWarning = true;
var _local2:Warning = new Warning(_arg1, _debug.warningTimeout);
addToPanel("analytics", _local2);
_local2.addEventListener(Event.REMOVED_FROM_STAGE, _clearWarning, false, 0, true);
if (_hasDebug){
visualDebug.writeBold(_arg1);
};
}
public function bringToFront(_arg1:DisplayObject):void{
_display.stage.setChildIndex(_arg1, (_display.stage.numChildren - 1));
}
public function createFailureAlert(_arg1:String):void{
var _local2:AlertAction;
if (_debug.verbose){
_arg1 = _filterMaxChars(_arg1);
_local2 = new AlertAction("Close", "close", "close");
} else {
_local2 = new AlertAction("X", "close", "close");
};
var _local3:Alert = new FailureAlert(_debug, _arg1, [_local2]);
addToPanel("analytics", _local3);
if (_hasDebug){
if (_debug.verbose){
_arg1 = _arg1.split("\n").join("");
_arg1 = _filterMaxChars(_arg1, 66);
};
visualDebug.writeBold(_arg1);
};
}
public function init():void{
var _local1 = 10;
var _local2:uint = (_display.stage.stageWidth - (_local1 * 2));
var _local3:uint = (_display.stage.stageHeight - (_local1 * 2));
var _local4:Panel = new Panel("analytics", _local2, _local3);
_local4.alignement = Align.top;
_local4.stickToEdge = false;
_local4.title = ("Google Analytics v" + GATracker.version);
_mainPanel = _local4;
addToStage(_local4);
bringToFront(_local4);
if (_debug.minimizedOnStart){
_mainPanel.onToggle();
};
createVisualDebug();
_display.stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey, false, 0, true);
}
public function addToPanel(_arg1:String, _arg2:DisplayObject):void{
var _local4:Panel;
var _local3:DisplayObject = _display.stage.getChildByName(_arg1);
if (_local3){
_local4 = (_local3 as Panel);
_local4.addData(_arg2);
} else {
trace((("panel \"" + _arg1) + "\" not found"));
};
}
private function _clearInfo(_arg1:Event):void{
_hasInfo = false;
if (_infoQueue.length > 0){
createInfo(_infoQueue.shift());
};
}
private function _filterMaxChars(_arg1:String, _arg2:int=0):String{
var _local6:String;
var _local3 = "\n";
var _local4:Array = [];
var _local5:Array = _arg1.split(_local3);
if (_arg2 == 0){
_arg2 = _maxCharPerLine;
};
var _local7:int;
while (_local7 < _local5.length) {
_local6 = _local5[_local7];
while (_local6.length > _arg2) {
_local4.push(_local6.substr(0, _arg2));
_local6 = _local6.substring(_arg2);
};
_local4.push(_local6);
_local7++;
};
return (_local4.join(_local3));
}
private function _clearGRAlert(_arg1:Event):void{
_hasGRAlert = false;
if (_GRAlertQueue.length > 0){
createGIFRequestAlert.apply(this, _GRAlertQueue.shift());
};
}
public function createSuccessAlert(_arg1:String):void{
var _local2:AlertAction;
if (_debug.verbose){
_arg1 = _filterMaxChars(_arg1);
_local2 = new AlertAction("Close", "close", "close");
} else {
_local2 = new AlertAction("X", "close", "close");
};
var _local3:Alert = new SuccessAlert(_debug, _arg1, [_local2]);
addToPanel("analytics", _local3);
if (_hasDebug){
if (_debug.verbose){
_arg1 = _arg1.split("\n").join("");
_arg1 = _filterMaxChars(_arg1, 66);
};
visualDebug.writeBold(_arg1);
};
}
public function isAvailable():Boolean{
return (!((_display.stage == null)));
}
public function createAlert(_arg1:String):void{
_arg1 = _filterMaxChars(_arg1);
var _local2:Alert = new Alert(_arg1, [new AlertAction("Close", "close", "close")]);
addToPanel("analytics", _local2);
if (_hasDebug){
visualDebug.writeBold(_arg1);
};
}
public function createInfo(_arg1:String):void{
if (((_hasInfo) || (!(isAvailable())))){
_infoQueue.push(_arg1);
return;
};
_arg1 = _filterMaxChars(_arg1);
_hasInfo = true;
var _local2:Info = new Info(_arg1, _debug.infoTimeout);
addToPanel("analytics", _local2);
_local2.addEventListener(Event.REMOVED_FROM_STAGE, _clearInfo, false, 0, true);
if (_hasDebug){
visualDebug.write(_arg1);
};
}
public function createGIFRequestAlert(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void{
var message = _arg1;
var request = _arg2;
var ref = _arg3;
if (_hasGRAlert){
_GRAlertQueue.push([message, request, ref]);
return;
};
_hasGRAlert = true;
var f:Function = function ():void{
ref.sendRequest(request);
};
message = _filterMaxChars(message);
var gra:GIFRequestAlert = new GIFRequestAlert(message, [new AlertAction("OK", "ok", f), new AlertAction("Cancel", "cancel", "close")]);
addToPanel("analytics", gra);
gra.addEventListener(Event.REMOVED_FROM_STAGE, _clearGRAlert, false, 0, true);
if (_hasDebug){
if (_debug.verbose){
message = message.split("\n").join("");
message = _filterMaxChars(message, 66);
};
visualDebug.write(message);
};
}
public function createVisualDebug():void{
if (!visualDebug){
visualDebug = new Debug();
visualDebug.alignement = Align.bottom;
visualDebug.stickToEdge = true;
addToPanel("analytics", visualDebug);
_hasDebug = true;
};
}
public function addToStage(_arg1:DisplayObject):void{
_display.stage.addChild(_arg1);
}
private function _clearWarning(_arg1:Event):void{
_hasWarning = false;
if (_warningQueue.length > 0){
createWarning(_warningQueue.shift());
};
}
public function createPanel(_arg1:String, _arg2:uint, _arg3:uint):void{
var _local4:Panel = new Panel(_arg1, _arg2, _arg3);
_local4.alignement = Align.center;
_local4.stickToEdge = false;
addToStage(_local4);
bringToFront(_local4);
}
public function destroy():void{
_mainPanel.close();
_debug.layout = null;
}
}
}//package com.google.analytics.debug
Section 61
//Margin (com.google.analytics.debug.Margin)
package com.google.analytics.debug {
public class Margin {
public var bottom:int;
public var top:int;
public var right:int;
public var left:int;
public function Margin(_arg1:int=0, _arg2:int=0, _arg3:int=0, _arg4:int=0){
this.top = _arg1;
this.bottom = _arg2;
this.left = _arg3;
this.right = _arg4;
}
}
}//package com.google.analytics.debug
Section 62
//Panel (com.google.analytics.debug.Panel)
package com.google.analytics.debug {
import flash.display.*;
import flash.events.*;
public class Panel extends UISprite {
private var _savedH:uint;
private var _data:UISprite;
private var _mask:Sprite;
private var _background:Shape;
private var _savedW:uint;
private var _stickToEdge:Boolean;
private var _border:Shape;
private var _borderColor:uint;
protected var baseAlpha:Number;
private var _backgroundColor:uint;
private var _title:Label;
private var _colapsed:Boolean;
private var _name:String;
public function Panel(_arg1:String, _arg2:uint, _arg3:uint, _arg4:uint=0, _arg5:uint=0, _arg6:Number=0.3, _arg7:Align=null, _arg8:Boolean=false){
_name = _arg1;
this.name = _arg1;
this.mouseEnabled = false;
_colapsed = false;
forcedWidth = _arg2;
forcedHeight = _arg3;
this.baseAlpha = _arg6;
_background = new Shape();
_data = new UISprite();
_data.forcedWidth = _arg2;
_data.forcedHeight = _arg3;
_data.mouseEnabled = false;
_title = new Label(_arg1, "uiLabel", 0xFFFFFF, Align.topLeft, _arg8);
_title.buttonMode = true;
_title.margin.top = 0.6;
_title.margin.left = 0.6;
_title.addEventListener(MouseEvent.CLICK, onToggle);
_title.mouseChildren = false;
_border = new Shape();
_mask = new Sprite();
_mask.useHandCursor = false;
_mask.mouseEnabled = false;
_mask.mouseChildren = false;
if (_arg7 == null){
_arg7 = Align.none;
};
this.alignement = _arg7;
this.stickToEdge = _arg8;
if (_arg4 == 0){
_arg4 = Style.backgroundColor;
};
_backgroundColor = _arg4;
if (_arg5 == 0){
_arg5 = Style.borderColor;
};
_borderColor = _arg5;
}
public function get stickToEdge():Boolean{
return (_stickToEdge);
}
public function onToggle(_arg1:MouseEvent=null):void{
if (_colapsed){
_data.visible = true;
} else {
_data.visible = false;
};
_colapsed = !(_colapsed);
_update();
resize();
}
public function set stickToEdge(_arg1:Boolean):void{
_stickToEdge = _arg1;
_title.stickToEdge = _arg1;
}
override protected function dispose():void{
_title.removeEventListener(MouseEvent.CLICK, onToggle);
super.dispose();
}
private function _draw():void{
var _local1:uint;
var _local2:uint;
if (((_savedW) && (_savedH))){
forcedWidth = _savedW;
forcedHeight = _savedH;
};
if (!_colapsed){
_local1 = forcedWidth;
_local2 = forcedHeight;
} else {
_local1 = _title.width;
_local2 = _title.height;
_savedW = forcedWidth;
_savedH = forcedHeight;
forcedWidth = _local1;
forcedHeight = _local2;
};
var _local3:Graphics = _background.graphics;
_local3.clear();
_local3.beginFill(_backgroundColor);
Background.drawRounded(this, _local3, _local1, _local2);
_local3.endFill();
var _local4:Graphics = _data.graphics;
_local4.clear();
_local4.beginFill(_backgroundColor, 0);
Background.drawRounded(this, _local4, _local1, _local2);
_local4.endFill();
var _local5:Graphics = _border.graphics;
_local5.clear();
_local5.lineStyle(0.1, _borderColor);
Background.drawRounded(this, _local5, _local1, _local2);
_local5.endFill();
var _local6:Graphics = _mask.graphics;
_local6.clear();
_local6.beginFill(_backgroundColor);
Background.drawRounded(this, _local6, (_local1 + 1), (_local2 + 1));
_local6.endFill();
}
public function get title():String{
return (_title.text);
}
private function _update():void{
_draw();
if (baseAlpha < 1){
_background.alpha = baseAlpha;
_border.alpha = baseAlpha;
};
}
public function addData(_arg1:DisplayObject):void{
_data.addChild(_arg1);
}
override protected function layout():void{
_update();
addChild(_background);
addChild(_data);
addChild(_title);
addChild(_border);
addChild(_mask);
mask = _mask;
}
public function set title(_arg1:String):void{
_title.text = _arg1;
}
public function close():void{
dispose();
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 63
//Style (com.google.analytics.debug.Style)
package com.google.analytics.debug {
public const Style:_Style = new _Style();
}//package com.google.analytics.debug
Section 64
//SuccessAlert (com.google.analytics.debug.SuccessAlert)
package com.google.analytics.debug {
public class SuccessAlert extends Alert {
public function SuccessAlert(_arg1:DebugConfiguration, _arg2:String, _arg3:Array){
var _local4:Align;
var _local5:Boolean;
var _local6:Boolean;
_local4 = Align.bottomLeft;
_local5 = true;
_local6 = false;
if (_arg1.verbose){
_arg2 = ((("<u><span class=\"uiAlertTitle\">Success</span>" + spaces(18)) + "</u>\n\n") + _arg2);
_local4 = Align.center;
_local5 = false;
_local6 = true;
};
super(_arg2, _arg3, "uiSuccess", Style.successColor, _local4, _local5, _local6);
}
}
}//package com.google.analytics.debug
Section 65
//UISprite (com.google.analytics.debug.UISprite)
package com.google.analytics.debug {
import flash.display.*;
import flash.events.*;
public class UISprite extends Sprite {
private var _forcedHeight:uint;
protected var listenResize:Boolean;
public var alignement:Align;
private var _forcedWidth:uint;
public var margin:Margin;
protected var alignTarget:DisplayObject;
public function UISprite(_arg1:DisplayObject=null){
listenResize = false;
alignement = Align.none;
this.alignTarget = _arg1;
margin = new Margin();
addEventListener(Event.ADDED_TO_STAGE, _onAddedToStage);
addEventListener(Event.REMOVED_FROM_STAGE, _onRemovedFromStage);
}
protected function dispose():void{
var _local1:DisplayObject;
var _local2:int;
_local2 = 0;
while (_local2 < numChildren) {
_local1 = getChildAt(_local2);
if (_local1){
removeChild(_local1);
};
_local2++;
};
}
protected function layout():void{
}
public function get forcedHeight():uint{
if (_forcedHeight){
return (_forcedHeight);
};
return (height);
}
public function alignTo(_arg1:Align, _arg2:DisplayObject=null):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:UISprite;
if (_arg2 == null){
if ((parent is Stage)){
_arg2 = this.stage;
} else {
_arg2 = parent;
};
};
if (_arg2 == this.stage){
if (this.stage == null){
return;
};
_local3 = this.stage.stageHeight;
_local4 = this.stage.stageWidth;
_local5 = 0;
_local6 = 0;
} else {
_local7 = (_arg2 as UISprite);
if (_local7.forcedHeight){
_local3 = _local7.forcedHeight;
} else {
_local3 = _local7.height;
};
if (_local7.forcedWidth){
_local4 = _local7.forcedWidth;
} else {
_local4 = _local7.width;
};
_local5 = 0;
_local6 = 0;
};
switch (_arg1){
case Align.top:
x = ((_local4 / 2) - (forcedWidth / 2));
y = (_local6 + margin.top);
break;
case Align.bottom:
x = ((_local4 / 2) - (forcedWidth / 2));
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
case Align.left:
x = (_local5 + margin.left);
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.right:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.center:
x = ((_local4 / 2) - (forcedWidth / 2));
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.topLeft:
x = (_local5 + margin.left);
y = (_local6 + margin.top);
break;
case Align.topRight:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = (_local6 + margin.top);
break;
case Align.bottomLeft:
x = (_local5 + margin.left);
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
case Align.bottomRight:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
};
if (((!(listenResize)) && (!((_arg1 == Align.none))))){
_arg2.addEventListener(Event.RESIZE, onResize, false, 0, true);
listenResize = true;
};
this.alignement = _arg1;
this.alignTarget = _arg2;
}
public function get forcedWidth():uint{
if (_forcedWidth){
return (_forcedWidth);
};
return (width);
}
protected function onResize(_arg1:Event):void{
resize();
}
private function _onRemovedFromStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onAddedToStage);
removeEventListener(Event.REMOVED_FROM_STAGE, _onRemovedFromStage);
dispose();
}
public function resize():void{
if (alignement != Align.none){
alignTo(alignement, alignTarget);
};
}
private function _onAddedToStage(_arg1:Event):void{
layout();
resize();
}
public function set forcedHeight(_arg1:uint):void{
_forcedHeight = _arg1;
}
public function set forcedWidth(_arg1:uint):void{
_forcedWidth = _arg1;
}
}
}//package com.google.analytics.debug
Section 66
//Warning (com.google.analytics.debug.Warning)
package com.google.analytics.debug {
import flash.events.*;
import flash.utils.*;
public class Warning extends Label {
private var _timer:Timer;
public function Warning(_arg1:String="", _arg2:uint=3000){
super(_arg1, "uiWarning", Style.warningColor, Align.top, false);
margin.top = 32;
if (_arg2 > 0){
_timer = new Timer(_arg2, 1);
_timer.start();
_timer.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete, false, 0, true);
};
}
public function onComplete(_arg1:TimerEvent):void{
close();
}
override public function onLink(_arg1:TextEvent):void{
switch (_arg1.text){
case "hide":
close();
break;
};
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 67
//VisualDebugMode (com.google.analytics.debug.VisualDebugMode)
package com.google.analytics.debug {
public class VisualDebugMode {
private var _value:int;
private var _name:String;
public static const advanced:VisualDebugMode = new VisualDebugMode(1, "advanced");
;
public static const geek:VisualDebugMode = new VisualDebugMode(2, "geek");
;
public static const basic:VisualDebugMode = new VisualDebugMode(0, "basic");
;
public function VisualDebugMode(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.debug
Section 68
//AnalyticsEvent (com.google.analytics.events.AnalyticsEvent)
package com.google.analytics.events {
import flash.events.*;
import com.google.analytics.*;
public class AnalyticsEvent extends Event {
public var tracker:AnalyticsTracker;
public static const READY:String = "ready";
public function AnalyticsEvent(_arg1:String, _arg2:AnalyticsTracker, _arg3:Boolean=false, _arg4:Boolean=false){
super(_arg1, _arg3, _arg4);
this.tracker = _arg2;
}
override public function clone():Event{
return (new AnalyticsEvent(type, tracker, bubbles, cancelable));
}
}
}//package com.google.analytics.events
Section 69
//AdSenseGlobals (com.google.analytics.external.AdSenseGlobals)
package com.google.analytics.external {
import com.google.analytics.debug.*;
public class AdSenseGlobals extends JavascriptProxy {
private var _gaGlobalVerified:Boolean;// = false
public static var gaGlobal_js:XML = <script>
<![CDATA[
function()
{
try
{
gaGlobal
}
catch(e)
{
gaGlobal = {} ;
}
}
]]>
</script>
;
public function AdSenseGlobals(_arg1:DebugConfiguration){
_gaGlobalVerified = false;
super(_arg1);
}
public function set vid(_arg1:String):void{
if (!isAvailable()){
return;
};
_verify();
setProperty("gaGlobal.vid", _arg1);
}
public function get hid():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.hid"));
}
public function get dh():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.dh"));
}
public function get gaGlobal():Object{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal"));
}
public function set hid(_arg1:String):void{
if (!isAvailable()){
return;
};
_verify();
setProperty("gaGlobal.hid", _arg1);
}
public function get sid():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.sid"));
}
private function _verify():void{
if (!_gaGlobalVerified){
executeBlock(gaGlobal_js);
_gaGlobalVerified = true;
};
}
public function get vid():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.vid"));
}
public function set sid(_arg1:String):void{
if (!isAvailable()){
return;
};
_verify();
setProperty("gaGlobal.sid", _arg1);
}
}
}//package com.google.analytics.external
Section 70
//HTMLDOM (com.google.analytics.external.HTMLDOM)
package com.google.analytics.external {
import com.google.analytics.debug.*;
public class HTMLDOM extends JavascriptProxy {
private var _referrer:String;
private var _protocol:String;
private var _host:String;
private var _location:String;
private var _pathname:String;
private var _title:String;
private var _characterSet:String;
private var _search:String;
private var _language:String;
private var _colorDepth:String;
public static var cache_properties_js:XML = <script>
<![CDATA[
function()
{
var obj = {};
obj.host = document.location.host;
obj.language = navigator.language ? navigator.language : navigator.browserLanguage;
obj.characterSet = document.characterSet ? document.characterSet : document.charset;
obj.colorDepth = window.screen.colorDepth;
obj.location = document.location.toString();
obj.pathname = document.location.pathname;
obj.protocol = document.location.protocol;
obj.search = document.location.search;
obj.referrer = document.referrer;
obj.title = document.title;
return obj;
}
]]>
</script>
;
public function HTMLDOM(_arg1:DebugConfiguration){
super(_arg1);
}
public function get search():String{
if (_search){
return (_search);
};
if (!isAvailable()){
return (null);
};
_search = getProperty("document.location.search");
return (_search);
}
public function get location():String{
if (_location){
return (_location);
};
if (!isAvailable()){
return (null);
};
_location = getPropertyString("document.location");
return (_location);
}
public function get pathname():String{
if (_pathname){
return (_pathname);
};
if (!isAvailable()){
return (null);
};
_pathname = getProperty("document.location.pathname");
return (_pathname);
}
public function get referrer():String{
if (_referrer){
return (_referrer);
};
if (!isAvailable()){
return (null);
};
_referrer = getProperty("document.referrer");
return (_referrer);
}
public function get protocol():String{
if (_protocol){
return (_protocol);
};
if (!isAvailable()){
return (null);
};
_protocol = getProperty("document.location.protocol");
return (_protocol);
}
public function cacheProperties():void{
var _local1:Object;
if (!isAvailable()){
return;
};
_local1 = call(cache_properties_js);
if (_local1){
_host = _local1.host;
_language = _local1.language;
_characterSet = _local1.characterSet;
_colorDepth = _local1.colorDepth;
_location = _local1.location;
_pathname = _local1.pathname;
_protocol = _local1.protocol;
_search = _local1.search;
_referrer = _local1.referrer;
_title = _local1.title;
};
}
public function get colorDepth():String{
if (_colorDepth){
return (_colorDepth);
};
if (!isAvailable()){
return (null);
};
_colorDepth = getProperty("window.screen.colorDepth");
return (_colorDepth);
}
public function get title():String{
if (_title){
return (_title);
};
if (!isAvailable()){
return (null);
};
_title = getProperty("document.title");
return (_title);
}
public function get host():String{
if (_host){
return (_host);
};
if (!isAvailable()){
return (null);
};
_host = getProperty("document.location.host");
return (_host);
}
public function get characterSet():String{
var _local1:String;
if (_characterSet){
return (_characterSet);
};
if (!isAvailable()){
return (null);
};
_local1 = getProperty("document.characterSet");
if (_local1 == null){
_local1 = getProperty("document.charset");
};
_characterSet = _local1;
return (_characterSet);
}
public function get language():String{
var _local1:String;
if (_language){
return (_language);
};
if (!isAvailable()){
return (null);
};
_local1 = getProperty("navigator.language");
if (_local1 == null){
_local1 = getProperty("navigator.browserLanguage");
};
_language = _local1;
return (_language);
}
}
}//package com.google.analytics.external
Section 71
//JavascriptProxy (com.google.analytics.external.JavascriptProxy)
package com.google.analytics.external {
import com.google.analytics.debug.*;
import flash.system.*;
import flash.external.*;
public class JavascriptProxy {
private var _notAvailableWarning:Boolean;// = true
private var _debug:DebugConfiguration;
public static var setProperty_js:XML = <script>
<![CDATA[
function( path , value )
{
var paths;
var prop;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
prop = paths.pop() ;
}
else
{
paths = [];
prop = path;
}
var target = window ;
var len = paths.length ;
for( var i = 0 ; i < len ; i++ )
{
target = target[ paths[i] ] ;
}
target[ prop ] = value ;
}
]]>
</script>
;
public static var hasProperty_js:XML = <script>
<![CDATA[
function( path )
{
var paths;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
}
else
{
paths = [path];
}
var target = window ;
var len = paths.length ;
for( var i = 0 ; i < len ; i++ )
{
target = target[ paths[i] ] ;
}
if( target )
{
return true;
}
else
{
return false;
}
}
]]>
</script>
;
public static var setPropertyRef_js:XML = <script>
<![CDATA[
function( path , target )
{
var paths;
var prop;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
prop = paths.pop() ;
}
else
{
paths = [];
prop = path;
}
alert( "paths:"+paths.length+", prop:"+prop );
var targets;
var name;
if( target.indexOf(".") > 0 )
{
targets = target.split(".");
name = targets.pop();
}
else
{
targets = [];
name = target;
}
alert( "targets:"+targets.length+", name:"+name );
var root = window;
var len = paths.length;
for( var i = 0 ; i < len ; i++ )
{
root = root[ paths[i] ] ;
}
var ref = window;
var depth = targets.length;
for( var j = 0 ; j < depth ; j++ )
{
ref = ref[ targets[j] ] ;
}
root[ prop ] = ref[name] ;
}
]]>
</script>
;
public function JavascriptProxy(_arg1:DebugConfiguration){
_notAvailableWarning = true;
super();
_debug = _arg1;
}
public function getProperty(_arg1:String){
return (call((_arg1 + ".valueOf")));
}
public function hasProperty(_arg1:String):Boolean{
return (call(hasProperty_js, _arg1));
}
public function setProperty(_arg1:String, _arg2):void{
call(setProperty_js, _arg1, _arg2);
}
public function executeBlock(_arg1:String):void{
var data = _arg1;
if (isAvailable()){
try {
ExternalInterface.call(data);
} catch(e:SecurityError) {
if (_debug.javascript){
_debug.warning("ExternalInterface is not allowed.\nEnsure that allowScriptAccess is set to \"always\" in the Flash embed HTML.");
};
} catch(e:Error) {
if (_debug.javascript){
_debug.warning(("ExternalInterface failed to make the call\nreason: " + e.message));
};
};
};
}
public function getPropertyString(_arg1:String):String{
return (call((_arg1 + ".toString")));
}
public function setPropertyByReference(_arg1:String, _arg2:String):void{
call(setPropertyRef_js, _arg1, _arg2);
}
public function call(_arg1:String, ... _args){
var output:String;
var functionName = _arg1;
var args = _args;
if (isAvailable()){
try {
if (((_debug.javascript) && (_debug.verbose))){
output = "";
output = ("Flash->JS: " + functionName);
output = (output + "( ");
if (args.length > 0){
output = (output + args.join(","));
};
output = (output + " )");
_debug.info(output);
};
args.unshift(functionName);
return (ExternalInterface.call.apply(ExternalInterface, args));
} catch(e:SecurityError) {
if (_debug.javascript){
_debug.warning("ExternalInterface is not allowed.\nEnsure that allowScriptAccess is set to \"always\" in the Flash embed HTML.");
};
} catch(e:Error) {
if (_debug.javascript){
_debug.warning(("ExternalInterface failed to make the call\nreason: " + e.message));
};
};
};
return (null);
}
public function isAvailable():Boolean{
var _local1:Boolean;
_local1 = ExternalInterface.available;
if (((_local1) && ((Capabilities.playerType == "External")))){
_local1 = false;
};
if (((((!(_local1)) && (_debug.javascript))) && (_notAvailableWarning))){
_debug.warning("ExternalInterface is not available.");
_notAvailableWarning = false;
};
return (_local1);
}
}
}//package com.google.analytics.external
Section 72
//Environment (com.google.analytics.utils.Environment)
package com.google.analytics.utils {
import com.google.analytics.debug.*;
import com.google.analytics.core.*;
import com.google.analytics.external.*;
import flash.system.*;
public class Environment {
private var _dom:HTMLDOM;
private var _appName:String;
private var _debug:DebugConfiguration;
private var _appVersion:Version;
private var _url:String;
private var _protocol:Protocols;
private var _userAgent:UserAgent;
public function Environment(_arg1:String="", _arg2:String="", _arg3:String="", _arg4:DebugConfiguration=null, _arg5:HTMLDOM=null){
var _local6:Version;
super();
if (_arg2 == ""){
if (isAIR()){
_arg2 = "AIR";
} else {
_arg2 = "Flash";
};
};
if (_arg3 == ""){
_local6 = flashVersion;
} else {
_local6 = Version.fromString(_arg3);
};
_url = _arg1;
_appName = _arg2;
_appVersion = _local6;
_debug = _arg4;
_dom = _arg5;
}
public function isAIR():Boolean{
return ((((playerType == "Desktop")) && ((Security.sandboxType.toString() == "application"))));
}
public function get playerType():String{
return (Capabilities.playerType);
}
public function get locationSearch():String{
var _local1:String;
_local1 = _dom.search;
if (_local1){
return (_local1);
};
return ("");
}
public function get protocol():Protocols{
if (!_protocol){
_findProtocol();
};
return (_protocol);
}
public function get flashVersion():Version{
var _local1:Version;
_local1 = Version.fromString(Capabilities.version.split(" ")[1], ",");
return (_local1);
}
public function get screenWidth():Number{
return (Capabilities.screenResolutionX);
}
public function get languageEncoding():String{
var _local1:String;
if (System.useCodePage){
_local1 = _dom.characterSet;
if (_local1){
return (_local1);
};
return ("-");
};
return ("UTF-8");
}
public function get appName():String{
return (_appName);
}
public function get screenColorDepth():String{
var _local1:String;
var _local2:String;
switch (Capabilities.screenColor){
case "bw":
_local1 = "1";
break;
case "gray":
_local1 = "2";
break;
case "color":
default:
_local1 = "24";
};
_local2 = _dom.colorDepth;
if (_local2){
_local1 = _local2;
};
return (_local1);
}
private function _findProtocol():void{
var _local1:Protocols;
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:String;
_local1 = Protocols.none;
if (_url != ""){
_local4 = _url.toLowerCase();
_local5 = _local4.substr(0, 5);
switch (_local5){
case "file:":
_local1 = Protocols.file;
break;
case "http:":
_local1 = Protocols.HTTP;
break;
case "https":
if (_local4.charAt(5) == ":"){
_local1 = Protocols.HTTPS;
};
break;
default:
_protocol = Protocols.none;
};
};
_local2 = _dom.protocol;
_local3 = (_local1.toString() + ":").toLowerCase();
if (((((_local2) && (!((_local2 == _local3))))) && (_debug))){
_debug.warning(((("Protocol mismatch: SWF=" + _local3) + ", DOM=") + _local2));
};
_protocol = _local1;
}
public function get locationSWFPath():String{
return (_url);
}
public function get platform():String{
var _local1:String;
_local1 = Capabilities.manufacturer;
return (_local1.split("Adobe ")[1]);
}
public function get operatingSystem():String{
return (Capabilities.os);
}
public function set appName(_arg1:String):void{
_appName = _arg1;
userAgent.applicationProduct = _arg1;
}
public function get userAgent():UserAgent{
if (!_userAgent){
_userAgent = new UserAgent(this, appName, appVersion.toString(4));
};
return (_userAgent);
}
ga_internal function set url(_arg1:String):void{
_url = _arg1;
}
public function get referrer():String{
var _local1:String;
_local1 = _dom.referrer;
if (_local1){
return (_local1);
};
if (protocol == Protocols.file){
return ("localhost");
};
return ("");
}
public function isInHTML():Boolean{
return ((Capabilities.playerType == "PlugIn"));
}
public function get language():String{
var _local1:String;
var _local2:String;
_local1 = _dom.language;
_local2 = Capabilities.language;
if (_local1){
if ((((_local1.length > _local2.length)) && ((_local1.substr(0, _local2.length) == _local2)))){
_local2 = _local1;
};
};
return (_local2);
}
public function get domainName():String{
var _local1:String;
var _local2:String;
var _local3:int;
if ((((protocol == Protocols.HTTP)) || ((protocol == Protocols.HTTPS)))){
_local1 = _url.toLowerCase();
if (protocol == Protocols.HTTP){
_local2 = _local1.split("http://").join("");
} else {
if (protocol == Protocols.HTTPS){
_local2 = _local1.split("https://").join("");
};
};
_local3 = _local2.indexOf("/");
if (_local3 > -1){
_local2 = _local2.substring(0, _local3);
};
return (_local2);
};
if (protocol == Protocols.file){
return ("localhost");
};
return ("");
}
public function set userAgent(_arg1:UserAgent):void{
_userAgent = _arg1;
}
public function set appVersion(_arg1:Version):void{
_appVersion = _arg1;
userAgent.applicationVersion = _arg1.toString(4);
}
public function get screenHeight():Number{
return (Capabilities.screenResolutionY);
}
public function get locationPath():String{
var _local1:String;
_local1 = _dom.pathname;
if (_local1){
return (_local1);
};
return ("");
}
public function get documentTitle():String{
var _local1:String;
_local1 = _dom.title;
if (_local1){
return (_local1);
};
return ("");
}
public function get appVersion():Version{
return (_appVersion);
}
}
}//package com.google.analytics.utils
Section 73
//Protocols (com.google.analytics.utils.Protocols)
package com.google.analytics.utils {
public class Protocols {
private var _value:int;
private var _name:String;
public static const none:Protocols = new Protocols(0, "none");
;
public static const HTTPS:Protocols = new Protocols(3, "HTTPS");
;
public static const file:Protocols = new Protocols(1, "file");
;
public static const HTTP:Protocols = new Protocols(2, "HTTP");
;
public function Protocols(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.utils
Section 74
//Timespan (com.google.analytics.utils.Timespan)
package com.google.analytics.utils {
public class Timespan {
public static var sixmonths:Number = 15768000;
public static var twoyears:Number = 63072000;
public static var thirtyminutes:Number = 1800;
}
}//package com.google.analytics.utils
Section 75
//URL (com.google.analytics.utils.URL)
package com.google.analytics.utils {
public class URL {
private var _url:String;
public function URL(_arg1:String=""){
_url = _arg1.toLowerCase();
}
public function get domain():String{
var _local1:Array;
if (((!((hostName == ""))) && ((hostName.indexOf(".") > -1)))){
_local1 = hostName.split(".");
switch (_local1.length){
case 2:
return (hostName);
case 3:
if (_local1[1] == "co"){
return (hostName);
};
_local1.shift();
return (_local1.join("."));
case 4:
_local1.shift();
return (_local1.join("."));
};
};
return ("");
}
public function get path():String{
var _local1:String = _url;
if (_local1.indexOf("://") > -1){
_local1 = _local1.split("://")[1];
};
if (_local1.indexOf(hostName) == 0){
_local1 = _local1.substr(hostName.length);
};
if (_local1.indexOf("?") > -1){
_local1 = _local1.split("?")[0];
};
if (_local1.charAt(0) != "/"){
_local1 = ("/" + _local1);
};
return (_local1);
}
public function get protocol():Protocols{
var _local1:String = _url.split("://")[0];
switch (_local1){
case "file":
return (Protocols.file);
case "http":
return (Protocols.HTTP);
case "https":
return (Protocols.HTTPS);
default:
return (Protocols.none);
};
}
public function get hostName():String{
var _local1:String = _url;
if (_local1.indexOf("://") > -1){
_local1 = _local1.split("://")[1];
};
if (_local1.indexOf("/") > -1){
_local1 = _local1.split("/")[0];
};
if (_local1.indexOf("?") > -1){
_local1 = _local1.split("?")[0];
};
if ((((protocol == Protocols.file)) || ((protocol == Protocols.none)))){
return ("");
};
return (_local1);
}
public function get subDomain():String{
if (((!((domain == ""))) && (!((domain == hostName))))){
return (hostName.split(("." + domain)).join(""));
};
return ("");
}
public function get search():String{
var _local1:String = _url;
if (_local1.indexOf("://") > -1){
_local1 = _local1.split("://")[1];
};
if (_local1.indexOf(hostName) == 0){
_local1 = _local1.substr(hostName.length);
};
if (_local1.indexOf("?") > -1){
_local1 = _local1.split("?")[1];
} else {
_local1 = "";
};
return (_local1);
}
}
}//package com.google.analytics.utils
Section 76
//UserAgent (com.google.analytics.utils.UserAgent)
package com.google.analytics.utils {
import com.google.analytics.core.*;
import flash.system.*;
public class UserAgent {
private var _version:Version;
private var _localInfo:Environment;
private var _applicationProduct:String;
public static var minimal:Boolean = false;
public function UserAgent(_arg1:Environment, _arg2:String="", _arg3:String=""){
_localInfo = _arg1;
applicationProduct = _arg2;
_version = Version.fromString(_arg3);
}
public function get tamarinProductToken():String{
if (UserAgent.minimal){
return ("");
};
if (System.vmVersion){
return (("Tamarin/" + Utils.trim(System.vmVersion, true)));
};
return ("");
}
public function set applicationProduct(_arg1:String):void{
_applicationProduct = _arg1;
}
public function get applicationVersion():String{
return (_version.toString(2));
}
public function get applicationProductToken():String{
var _local1:String;
_local1 = applicationProduct;
if (applicationVersion != ""){
_local1 = (_local1 + ("/" + applicationVersion));
};
return (_local1);
}
public function get vendorProductToken():String{
var _local1:String;
_local1 = "";
if (_localInfo.isAIR()){
_local1 = (_local1 + "AIR");
} else {
_local1 = (_local1 + "FlashPlayer");
};
_local1 = (_local1 + "/");
_local1 = (_local1 + _version.toString(3));
return (_local1);
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + applicationProductToken);
if (applicationComment != ""){
_local1 = (_local1 + (" " + applicationComment));
};
if (tamarinProductToken != ""){
_local1 = (_local1 + (" " + tamarinProductToken));
};
if (vendorProductToken != ""){
_local1 = (_local1 + (" " + vendorProductToken));
};
return (_local1);
}
public function get applicationComment():String{
var _local1:Array;
_local1 = [];
_local1.push(_localInfo.platform);
_local1.push(_localInfo.playerType);
if (!UserAgent.minimal){
_local1.push(_localInfo.operatingSystem);
_local1.push(_localInfo.language);
};
if (Capabilities.isDebugger){
_local1.push("DEBUG");
};
if (_local1.length > 0){
return ((("(" + _local1.join("; ")) + ")"));
};
return ("");
}
public function set applicationVersion(_arg1:String):void{
_version = Version.fromString(_arg1);
}
public function get applicationProduct():String{
return (_applicationProduct);
}
}
}//package com.google.analytics.utils
Section 77
//Variables (com.google.analytics.utils.Variables)
package com.google.analytics.utils {
import flash.net.*;
public dynamic class Variables {
public var post:Array;
public var URIencode:Boolean;
public var pre:Array;
public var sort:Boolean;// = true
public function Variables(_arg1:String=null, _arg2:Array=null, _arg3:Array=null){
pre = [];
post = [];
super();
if (_arg1){
decode(_arg1);
};
if (_arg2){
this.pre = _arg2;
};
if (_arg3){
this.post = _arg3;
};
}
private function _join(_arg1:Variables):void{
var _local2:String;
if (!_arg1){
return;
};
for (_local2 in _arg1) {
this[_local2] = _arg1[_local2];
};
}
public function join(... _args):void{
var _local2:int = _args.length;
var _local3:int;
while (_local3 < _local2) {
if (!(_args[_local3] is Variables)){
} else {
_join(_args[_local3]);
};
_local3++;
};
}
public function toString():String{
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:int;
var _local7:String;
var _local8:String;
var _local1:Array = [];
for (_local3 in this) {
_local2 = this[_local3];
if (URIencode){
_local2 = encodeURI(_local2);
};
_local1.push(((_local3 + "=") + _local2));
};
if (sort){
_local1.sort();
};
if (pre.length > 0){
pre.reverse();
_local5 = 0;
while (_local5 < pre.length) {
_local7 = pre[_local5];
_local6 = 0;
while (_local6 < _local1.length) {
_local4 = _local1[_local6];
if (_local4.indexOf(_local7) == 0){
_local1.unshift(_local1.splice(_local6, 1)[0]);
};
_local6++;
};
_local5++;
};
pre.reverse();
};
if (post.length > 0){
_local5 = 0;
while (_local5 < post.length) {
_local8 = post[_local5];
_local6 = 0;
while (_local6 < _local1.length) {
_local4 = _local1[_local6];
if (_local4.indexOf(_local8) == 0){
_local1.push(_local1.splice(_local6, 1)[0]);
};
_local6++;
};
_local5++;
};
};
return (_local1.join("&"));
}
public function decode(_arg1:String):void{
var _local2:Array;
var _local3:String;
var _local4:String;
var _local5:String;
var _local6:Array;
if (_arg1 == ""){
return;
};
if (_arg1.indexOf("&") > -1){
_local2 = _arg1.split("&");
} else {
_local2 = [_arg1];
};
var _local7:int;
while (_local7 < _local2.length) {
_local3 = _local2[_local7];
if (_local3.indexOf("=") > -1){
_local6 = _local3.split("=");
_local4 = _local6[0];
_local5 = decodeURI(_local6[1]);
this[_local4] = _local5;
};
_local7++;
};
}
public function toURLVariables():URLVariables{
var _local2:String;
var _local1:URLVariables = new URLVariables();
for (_local2 in this) {
_local1[_local2] = this[_local2];
};
return (_local1);
}
}
}//package com.google.analytics.utils
Section 78
//Version (com.google.analytics.utils.Version)
package com.google.analytics.utils {
public class Version {
private var _maxBuild:uint;// = 0xFF
private var _maxMinor:uint;// = 15
private var _maxMajor:uint;// = 15
private var _revision:uint;
private var _separator:String;// = "."
private var _maxRevision:uint;// = 0xFFFF
private var _build:uint;
private var _minor:uint;
private var _major:uint;
public function Version(_arg1:uint=0, _arg2:uint=0, _arg3:uint=0, _arg4:uint=0){
var _local5:Version;
_maxMajor = 15;
_maxMinor = 15;
_maxBuild = 0xFF;
_maxRevision = 0xFFFF;
_separator = ".";
super();
if ((((((((_arg1 > _maxMajor)) && ((_arg2 == 0)))) && ((_arg3 == 0)))) && ((_arg4 == 0)))){
_local5 = Version.fromNumber(_arg1);
_arg1 = _local5.major;
_arg2 = _local5.minor;
_arg3 = _local5.build;
_arg4 = _local5.revision;
};
this.major = _arg1;
this.minor = _arg2;
this.build = _arg3;
this.revision = _arg4;
}
public function toString(_arg1:int=0):String{
var _local2:Array;
if ((((_arg1 <= 0)) || ((_arg1 > 4)))){
_arg1 = getFields();
};
switch (_arg1){
case 1:
_local2 = [major];
break;
case 2:
_local2 = [major, minor];
break;
case 3:
_local2 = [major, minor, build];
break;
case 4:
default:
_local2 = [major, minor, build, revision];
};
return (_local2.join(_separator));
}
public function get revision():uint{
return (_revision);
}
public function set build(_arg1:uint):void{
_build = Math.min(_arg1, _maxBuild);
}
public function set minor(_arg1:uint):void{
_minor = Math.min(_arg1, _maxMinor);
}
public function get build():uint{
return (_build);
}
public function set major(_arg1:uint):void{
_major = Math.min(_arg1, _maxMajor);
}
public function get minor():uint{
return (_minor);
}
public function valueOf():uint{
return (((((major << 28) | (minor << 24)) | (build << 16)) | revision));
}
public function get major():uint{
return (_major);
}
public function set revision(_arg1:uint):void{
_revision = Math.min(_arg1, _maxRevision);
}
private function getFields():int{
var _local1:int;
_local1 = 4;
if (revision == 0){
_local1--;
};
if ((((_local1 == 3)) && ((build == 0)))){
_local1--;
};
if ((((_local1 == 2)) && ((minor == 0)))){
_local1--;
};
return (_local1);
}
public function equals(_arg1):Boolean{
if (!(_arg1 is Version)){
return (false);
};
if ((((((((_arg1.major == major)) && ((_arg1.minor == minor)))) && ((_arg1.build == build)))) && ((_arg1.revision == revision)))){
return (true);
};
return (false);
}
public static function fromString(_arg1:String="", _arg2:String="."):Version{
var _local3:Version;
var _local4:Array;
_local3 = new (Version);
if ((((_arg1 == "")) || ((_arg1 == null)))){
return (_local3);
};
if (_arg1.indexOf(_arg2) > -1){
_local4 = _arg1.split(_arg2);
_local3.major = parseInt(_local4[0]);
_local3.minor = parseInt(_local4[1]);
_local3.build = parseInt(_local4[2]);
_local3.revision = parseInt(_local4[3]);
} else {
_local3.major = parseInt(_arg1);
};
return (_local3);
}
public static function fromNumber(_arg1:Number=0):Version{
var _local2:Version;
_local2 = new (Version);
if (((((((((((isNaN(_arg1)) || ((_arg1 == 0)))) || ((_arg1 < 0)))) || ((_arg1 == Number.MAX_VALUE)))) || ((_arg1 == Number.POSITIVE_INFINITY)))) || ((_arg1 == Number.NEGATIVE_INFINITY)))){
return (_local2);
};
_local2.major = (_arg1 >>> 28);
_local2.minor = ((_arg1 & 251658240) >>> 24);
_local2.build = ((_arg1 & 0xFF0000) >>> 16);
_local2.revision = (_arg1 & 0xFFFF);
return (_local2);
}
}
}//package com.google.analytics.utils
Section 79
//Bridge (com.google.analytics.v4.Bridge)
package com.google.analytics.v4 {
import com.google.analytics.debug.*;
import com.google.analytics.core.*;
import com.google.analytics.external.*;
public class Bridge implements GoogleAnalyticsAPI {
private var _debug:DebugConfiguration;
private var _proxy:JavascriptProxy;
private var _jsContainer:String;// = "_GATracker"
private var _hasGATracker:Boolean;// = false
private var _account:String;
private static var _linkTrackingObject_js:XML = <script>
<![CDATA[
function( container , target )
{
var targets ;
var name ;
if( target.indexOf(".") > 0 )
{
targets = target.split(".");
name = targets.pop();
}
else
{
targets = [];
name = target;
}
var ref = window;
var depth = targets.length;
for( var j = 0 ; j < depth ; j++ )
{
ref = ref[ targets[j] ] ;
}
window[container][target] = ref[name] ;
}
]]>
</script>
;
private static var _createTrackingObject_js:XML = <script>
<![CDATA[
function( acct )
{
_GATracker[acct] = _gat._getTracker(acct);
}
]]>
</script>
;
private static var _injectTrackingObject_js:XML = <script>
<![CDATA[
function()
{
try
{
_GATracker
}
catch(e)
{
_GATracker = {};
}
}
]]>
</script>
;
private static var _checkGAJS_js:XML = <script>
<![CDATA[
function()
{
if( _gat && _gat._getTracker )
{
return true;
}
return false;
}
]]>
</script>
;
private static var _checkValidTrackingObject_js:XML = <script>
<![CDATA[
function(acct)
{
if( _GATracker[acct] && (_GATracker[acct]._getAccount) )
{
return true ;
}
else
{
return false;
}
}
]]>
</script>
;
public function Bridge(_arg1:String, _arg2:DebugConfiguration, _arg3:JavascriptProxy){
var _local4:String;
var _local5:String;
var _local6:String;
super();
_account = _arg1;
_debug = _arg2;
_proxy = _arg3;
if (!_checkGAJS()){
_local4 = "";
_local4 = (_local4 + "ga.js not found, be sure to check if\n");
_local4 = (_local4 + "<script src=\"http://www.google-analytics.com/ga.js\"></script>\n");
_local4 = (_local4 + "is included in the HTML.");
_debug.warning(_local4);
throw (new Error(_local4));
};
if (!_hasGATracker){
if (((_debug.javascript) && (_debug.verbose))){
_local5 = "";
_local5 = (_local5 + "The Google Analytics tracking code was not found on the container page\n");
_local5 = (_local5 + "we create it");
_debug.info(_local5, VisualDebugMode.advanced);
};
_injectTrackingObject();
};
if (Utils.validateAccount(_arg1)){
_createTrackingObject(_arg1);
} else {
if (_checkTrackingObject(_arg1)){
_linkTrackingObject(_arg1);
} else {
_local6 = "";
_local6 = (_local6 + (("JS Object \"" + _arg1) + "\" doesn't exist in DOM\n"));
_local6 = (_local6 + "Bridge object not created.");
_debug.warning(_local6);
throw (new Error(_local6));
};
};
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_debug.info((((("link( " + _arg1) + ", ") + _arg2) + " )"));
_call("_link", _arg1, _arg2);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_debug.info((("addOrganic( " + [_arg1, _arg2].join(", ")) + " )"));
_call("_addOrganic", _arg1);
}
public function setAllowLinker(_arg1:Boolean):void{
_debug.info((("setAllowLinker( " + _arg1) + " )"));
_call("_setAllowLinker", _arg1);
}
private function _linkTrackingObject(_arg1:String):void{
_proxy.call(_linkTrackingObject_js, _jsContainer, _arg1);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
var _local5 = 2;
if (((_arg3) && (!((_arg3 == ""))))){
_local5 = 3;
};
if ((((_local5 == 3)) && (!(isNaN(_arg4))))){
_local5 = 4;
};
switch (_local5){
case 4:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3, _arg4].join(", ")) + " )"));
return (_call("_trackEvent", _arg1, _arg2, _arg3, _arg4));
case 3:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3].join(", ")) + " )"));
return (_call("_trackEvent", _arg1, _arg2, _arg3));
case 2:
default:
_debug.info((("trackEvent( " + [_arg1, _arg2].join(", ")) + " )"));
return (_call("_trackEvent", _arg1, _arg2));
};
}
public function setClientInfo(_arg1:Boolean):void{
_debug.info((("setClientInfo( " + _arg1) + " )"));
_call("_setClientInfo", _arg1);
}
public function trackTrans():void{
_debug.info("trackTrans()");
_call("_trackTrans");
}
public function setCookieTimeout(_arg1:int):void{
_debug.info((("setCookieTimeout( " + _arg1) + " )"));
_call("_setCookieTimeout", _arg1);
}
public function trackPageview(_arg1:String=""):void{
_debug.info((("trackPageview( " + _arg1) + " )"));
_call("_trackPageview", _arg1);
}
public function getClientInfo():Boolean{
_debug.info("getClientInfo()");
return (_call("_getClientInfo"));
}
private function _checkValidTrackingObject(_arg1:String):Boolean{
return (_proxy.call(_checkValidTrackingObject_js, _arg1));
}
private function _checkGAJS():Boolean{
return (_proxy.call(_checkGAJS_js));
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_debug.warning((((("linkByPost( " + _arg1) + ", ") + _arg2) + " ) not implemented"));
}
private function _call(_arg1:String, ... _args){
_args.unshift(((((("window." + _jsContainer) + "[\"") + _account) + "\"].") + _arg1));
return (_proxy.call.apply(_proxy, _args));
}
public function hasGAJS():Boolean{
return (_checkGAJS());
}
private function _checkTrackingObject(_arg1:String):Boolean{
var _local2:Boolean = _proxy.hasProperty(_arg1);
var _local3:Boolean = _proxy.hasProperty((_arg1 + "._getAccount"));
return (((_local2) && (_local3)));
}
public function resetSession():void{
_debug.warning("resetSession() not implemented");
}
public function getDetectTitle():Boolean{
_debug.info("getDetectTitle()");
return (_call("_getDetectTitle"));
}
public function setCampNameKey(_arg1:String):void{
_debug.info((("setCampNameKey( " + _arg1) + " )"));
_call("_setCampNameKey", _arg1);
}
public function setDetectFlash(_arg1:Boolean):void{
_debug.info((("setDetectFlash( " + _arg1) + " )"));
_call("_setDetectFlash", _arg1);
}
public function createEventTracker(_arg1:String):EventTracker{
_debug.info((("createEventTracker( " + _arg1) + " )"));
return (new EventTracker(_arg1, this));
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_debug.info((("addItem( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6].join(", ")) + " )"));
_call("_addItem", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public function clearIgnoredOrganic():void{
_debug.info("clearIgnoredOrganic()");
_call("_clearIgnoreOrganic");
}
public function setVar(_arg1:String):void{
_debug.info((("setVar( " + _arg1) + " )"));
_call("_setVar", _arg1);
}
public function setDomainName(_arg1:String):void{
_debug.info((("setDomainName( " + _arg1) + " )"));
_call("_setDomainName", _arg1);
}
public function hasTrackingAccount(_arg1:String):Boolean{
if (Utils.validateAccount(_arg1)){
return (_checkValidTrackingObject(_arg1));
};
return (_checkTrackingObject(_arg1));
}
public function setCampSourceKey(_arg1:String):void{
_debug.info((("setCampSourceKey( " + _arg1) + " )"));
_call("_setCampSourceKey", _arg1);
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
_debug.info((("addTrans( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8].join(", ")) + " )"));
_call("_addTrans", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
return (null);
}
public function setCampContentKey(_arg1:String):void{
_debug.info((("setCampContentKey( " + _arg1) + " )"));
_call("_setCampContentKey", _arg1);
}
public function setLocalServerMode():void{
_debug.info("setLocalServerMode()");
_call("_setLocalServerMode");
}
public function getLocalGifPath():String{
_debug.info("getLocalGifPath()");
return (_call("_getLocalGifPath"));
}
public function clearIgnoredRef():void{
_debug.info("clearIgnoredRef()");
_call("_clearIgnoreRef");
}
public function setAllowAnchor(_arg1:Boolean):void{
_debug.info((("setAllowAnchor( " + _arg1) + " )"));
_call("_setAllowAnchor", _arg1);
}
public function setLocalGifPath(_arg1:String):void{
_debug.info((("setLocalGifPath( " + _arg1) + " )"));
_call("_setLocalGifPath", _arg1);
}
public function getVersion():String{
_debug.info("getVersion()");
return (_call("_getVersion"));
}
private function _injectTrackingObject():void{
_proxy.executeBlock(_injectTrackingObject_js);
_hasGATracker = true;
}
public function setCookiePath(_arg1:String):void{
_debug.info((("setCookiePath( " + _arg1) + " )"));
_call("_setCookiePath", _arg1);
}
public function setSampleRate(_arg1:Number):void{
_debug.info((("setSampleRate( " + _arg1) + " )"));
_call("_setSampleRate", _arg1);
}
public function setAllowHash(_arg1:Boolean):void{
_debug.info((("setAllowHash( " + _arg1) + " )"));
_call("_setAllowHash", _arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
_debug.info((("addIgnoredOrganic( " + _arg1) + " )"));
_call("_addIgnoredOrganic", _arg1);
}
public function setCampNOKey(_arg1:String):void{
_debug.info((("setCampNOKey( " + _arg1) + " )"));
_call("_setCampNOKey", _arg1);
}
public function cookiePathCopy(_arg1:String):void{
_debug.info((("cookiePathCopy( " + _arg1) + " )"));
_call("_cookiePathCopy", _arg1);
}
public function setLocalRemoteServerMode():void{
_debug.info("setLocalRemoteServerMode()");
_call("_setLocalRemoteServerMode");
}
public function getServiceMode():ServerOperationMode{
_debug.info("getServiceMode()");
return (_call("_getServiceMode"));
}
public function setDetectTitle(_arg1:Boolean):void{
_debug.info((("setDetectTitle( " + _arg1) + " )"));
_call("_setDetectTitle", _arg1);
}
private function _createTrackingObject(_arg1:String):void{
_proxy.call(_createTrackingObject_js, _arg1);
}
public function setCampaignTrack(_arg1:Boolean):void{
_debug.info((("setCampaignTrack( " + _arg1) + " )"));
_call("_setCampaignTrack", _arg1);
}
public function clearOrganic():void{
_debug.info("clearOrganic()");
_call("_clearOrganic");
}
public function setCampTermKey(_arg1:String):void{
_debug.info((("setCampTermKey( " + _arg1) + " )"));
_call("_setCampTermKey", _arg1);
}
public function getDetectFlash():Boolean{
_debug.info("getDetectFlash()");
return (_call("_getDetectFlash"));
}
public function setCampMediumKey(_arg1:String):void{
_debug.info((("setCampMediumKey( " + _arg1) + " )"));
_call("_setCampMediumKey", _arg1);
}
public function addIgnoredRef(_arg1:String):void{
_debug.info((("addIgnoredRef( " + _arg1) + " )"));
_call("_addIgnoredRef", _arg1);
}
public function setSessionTimeout(_arg1:int):void{
_debug.info((("setSessionTimeout( " + _arg1) + " )"));
_call("_setSessionTimeout", _arg1);
}
public function setRemoteServerMode():void{
_debug.info("setRemoteServerMode()");
_call("_setRemoteServerMode");
}
public function getAccount():String{
_debug.info("getAccount()");
return (_call("_getAccount"));
}
}
}//package com.google.analytics.v4
Section 80
//Configuration (com.google.analytics.v4.Configuration)
package com.google.analytics.v4 {
import com.google.analytics.debug.*;
import com.google.analytics.core.*;
import com.google.analytics.utils.*;
import com.google.analytics.campaign.*;
public class Configuration {
public var serverMode:ServerOperationMode;
public var detectFlash:Boolean;// = true
public var allowLocalTracking:Boolean;// = true
public var secureRemoteGIFpath:String;// = "https://ssl.google-analytics.com/__utm.gif"
public var hasSiteOverlay:Boolean;// = false
private var _version:String;// = "4.3as"
public var allowDomainHash:Boolean;// = true
public var detectClientInfo:Boolean;// = true
public var idleLoop:Number;// = 30
public var isTrackOutboundSubdomains:Boolean;// = false
public var cookiePath:String;// = "/"
public var transactionFieldDelim:String;// = "|"
private var _organic:Organic;
private var _cookieName:String;// = "analytics"
public var campaignKey:CampaignKey;
public var google:String;// = "google"
public var googleCsePath:String;// = "cse"
public var bucketCapacity:Number;// = 10
private var _sampleRate:Number;// = 1
public var remoteGIFpath:String;// = "http://www.google-analytics.com/__utm.gif"
public var googleSearchParam:String;// = "q"
public var allowLinker:Boolean;// = false
public var maxOutboundLinkExamined:Number;// = 1000
private var _debug:DebugConfiguration;
private var _trackingLimitPerSession:int;// = 500
private var _domain:Domain;
public var allowAnchor:Boolean;// = false
public var tokenCliff:int;// = 10
public var sessionTimeout:Number;
public var idleTimeout:Number;// = 60
public var campaignTracking:Boolean;// = true
public var domainName:String;// = ""
public var detectTitle:Boolean;// = true
public var tokenRate:Number;// = 0.2
public var conversionTimeout:Number;
public var localGIFpath:String;// = "/__utm.gif"
public function Configuration(_arg1:DebugConfiguration=null){
_version = "4.3as";
_sampleRate = 1;
_trackingLimitPerSession = 500;
_organic = new Organic();
googleCsePath = "cse";
googleSearchParam = "q";
google = "google";
_cookieName = "analytics";
allowDomainHash = true;
allowAnchor = false;
allowLinker = false;
hasSiteOverlay = false;
tokenRate = 0.2;
conversionTimeout = Timespan.sixmonths;
sessionTimeout = Timespan.thirtyminutes;
idleLoop = 30;
idleTimeout = 60;
maxOutboundLinkExamined = 1000;
tokenCliff = 10;
bucketCapacity = 10;
detectClientInfo = true;
detectFlash = true;
detectTitle = true;
campaignKey = new CampaignKey();
campaignTracking = true;
isTrackOutboundSubdomains = false;
serverMode = ServerOperationMode.remote;
localGIFpath = "/__utm.gif";
remoteGIFpath = "http://www.google-analytics.com/__utm.gif";
secureRemoteGIFpath = "https://ssl.google-analytics.com/__utm.gif";
cookiePath = "/";
transactionFieldDelim = "|";
domainName = "";
allowLocalTracking = true;
super();
_debug = _arg1;
_domain = new Domain(DomainNameMode.auto, "", _debug);
serverMode = ServerOperationMode.remote;
_initOrganicSources();
}
public function get organic():Organic{
return (_organic);
}
public function get trackingLimitPerSession():int{
return (_trackingLimitPerSession);
}
private function _initOrganicSources():void{
addOrganicSource(google, googleSearchParam);
addOrganicSource("yahoo", "p");
addOrganicSource("msn", "q");
addOrganicSource("aol", "query");
addOrganicSource("aol", "encquery");
addOrganicSource("lycos", "query");
addOrganicSource("ask", "q");
addOrganicSource("altavista", "q");
addOrganicSource("netscape", "query");
addOrganicSource("cnn", "query");
addOrganicSource("looksmart", "qt");
addOrganicSource("about", "terms");
addOrganicSource("mamma", "query");
addOrganicSource("alltheweb", "q");
addOrganicSource("gigablast", "q");
addOrganicSource("voila", "rdata");
addOrganicSource("virgilio", "qs");
addOrganicSource("live", "q");
addOrganicSource("baidu", "wd");
addOrganicSource("alice", "qs");
addOrganicSource("yandex", "text");
addOrganicSource("najdi", "q");
addOrganicSource("aol", "q");
addOrganicSource("club-internet", "q");
addOrganicSource("mama", "query");
addOrganicSource("seznam", "q");
addOrganicSource("search", "q");
addOrganicSource("wp", "szukaj");
addOrganicSource("onet", "qt");
addOrganicSource("netsprint", "q");
addOrganicSource("google.interia", "q");
addOrganicSource("szukacz", "q");
addOrganicSource("yam", "k");
addOrganicSource("pchome", "q");
addOrganicSource("kvasir", "searchExpr");
addOrganicSource("sesam", "q");
addOrganicSource("ozu", "q");
addOrganicSource("terra", "query");
addOrganicSource("nostrum", "query");
addOrganicSource("mynet", "q");
addOrganicSource("ekolay", "q");
addOrganicSource("search.ilse", "search_for");
}
public function get sampleRate():Number{
return (_sampleRate);
}
public function get cookieName():String{
return (_cookieName);
}
public function addOrganicSource(_arg1:String, _arg2:String):void{
var engine = _arg1;
var keyword = _arg2;
try {
_organic.addSource(engine, keyword);
} catch(e:Error) {
if (((_debug) && (_debug.active))){
_debug.warning(e.message);
};
};
}
public function get domain():Domain{
return (_domain);
}
public function set sampleRate(_arg1:Number):void{
if (_arg1 <= 0){
_arg1 = 0.1;
};
if (_arg1 > 1){
_arg1 = 1;
};
_arg1 = Number(_arg1.toFixed(2));
_sampleRate = _arg1;
}
public function get version():String{
return (_version);
}
}
}//package com.google.analytics.v4
Section 81
//GoogleAnalyticsAPI (com.google.analytics.v4.GoogleAnalyticsAPI)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
public interface GoogleAnalyticsAPI {
function setCampSourceKey(_arg1:String):void;
function getServiceMode():ServerOperationMode;
function resetSession():void;
function setLocalServerMode():void;
function setCampContentKey(_arg1:String):void;
function addOrganic(_arg1:String, _arg2:String):void;
function setDetectFlash(_arg1:Boolean):void;
function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object;
function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean;
function setCampTermKey(_arg1:String):void;
function setCampNameKey(_arg1:String):void;
function addIgnoredOrganic(_arg1:String):void;
function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void;
function setAllowLinker(_arg1:Boolean):void;
function getClientInfo():Boolean;
function getDetectFlash():Boolean;
function setCampaignTrack(_arg1:Boolean):void;
function createEventTracker(_arg1:String):EventTracker;
function setCookieTimeout(_arg1:int):void;
function setAllowAnchor(_arg1:Boolean):void;
function trackTrans():void;
function clearOrganic():void;
function trackPageview(_arg1:String=""):void;
function setLocalGifPath(_arg1:String):void;
function getVersion():String;
function getLocalGifPath():String;
function setVar(_arg1:String):void;
function clearIgnoredOrganic():void;
function setCampMediumKey(_arg1:String):void;
function addIgnoredRef(_arg1:String):void;
function setClientInfo(_arg1:Boolean):void;
function setCookiePath(_arg1:String):void;
function setSampleRate(_arg1:Number):void;
function setSessionTimeout(_arg1:int):void;
function setRemoteServerMode():void;
function clearIgnoredRef():void;
function setDomainName(_arg1:String):void;
function setDetectTitle(_arg1:Boolean):void;
function setAllowHash(_arg1:Boolean):void;
function getAccount():String;
function linkByPost(_arg1:Object, _arg2:Boolean=false):void;
function link(_arg1:String, _arg2:Boolean=false):void;
function setCampNOKey(_arg1:String):void;
function setLocalRemoteServerMode():void;
function cookiePathCopy(_arg1:String):void;
function getDetectTitle():Boolean;
}
}//package com.google.analytics.v4
Section 82
//Tracker (com.google.analytics.v4.Tracker)
package com.google.analytics.v4 {
import com.google.analytics.debug.*;
import com.google.analytics.core.*;
import com.google.analytics.utils.*;
import com.google.analytics.external.*;
import com.google.analytics.data.*;
import com.google.analytics.campaign.*;
public class Tracker implements GoogleAnalyticsAPI {
private const EVENT_TRACKER_LABEL_KEY_NUM:int = 3;
private const EVENT_TRACKER_VALUE_VALUE_NUM:int = 1;
private const EVENT_TRACKER_PROJECT_ID:int = 5;
private const EVENT_TRACKER_OBJECT_NAME_KEY_NUM:int = 1;
private const EVENT_TRACKER_TYPE_KEY_NUM:int = 2;
private var _adSense:AdSenseGlobals;
private var _eventTracker:X10;
private var _noSessionInformation:Boolean;// = false
private var _browserInfo:BrowserInfo;
private var _debug:DebugConfiguration;
private var _isNewVisitor:Boolean;// = false
private var _buffer:Buffer;
private var _config:Configuration;
private var _x10Module:X10;
private var _campaign:CampaignManager;
private var _formatedReferrer:String;
private var _timeStamp:Number;
private var _info:Environment;
private var _domainHash:Number;
private var _campaignInfo:CampaignInfo;
private var _gifRequest:GIFRequest;
private var _hasInitData:Boolean;// = false
private var _account:String;
public function Tracker(_arg1:String, _arg2:Configuration, _arg3:DebugConfiguration, _arg4:Environment, _arg5:Buffer, _arg6:GIFRequest, _arg7:AdSenseGlobals){
var _local8:String;
super();
_account = _arg1;
_config = _arg2;
_debug = _arg3;
_info = _arg4;
_buffer = _arg5;
_gifRequest = _arg6;
_adSense = _arg7;
if (!Utils.validateAccount(_arg1)){
_local8 = (("Account \"" + _arg1) + "\" is not valid.");
_debug.warning(_local8);
throw (new Error(_local8));
};
_initData();
}
private function _doTracking():Boolean{
if (((((!((_info.protocol == Protocols.file))) && (!((_info.protocol == Protocols.none))))) && (_isNotGoogleSearch()))){
return (true);
};
if (_config.allowLocalTracking){
return (true);
};
return (false);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_debug.info((("addOrganic( " + [_arg1, _arg2].join(", ")) + " )"));
_config.organic.addSource(_arg1, _arg2);
}
public function setAllowLinker(_arg1:Boolean):void{
_config.allowLinker = _arg1;
_debug.info((("setAllowLinker( " + _config.allowLinker) + " )"));
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
var _local5:Boolean;
var _local6 = 2;
if (((!((_arg1 == ""))) && (!((_arg2 == ""))))){
_eventTracker.clearKey(EVENT_TRACKER_PROJECT_ID);
_eventTracker.clearValue(EVENT_TRACKER_PROJECT_ID);
_local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_OBJECT_NAME_KEY_NUM, _arg1);
_local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_TYPE_KEY_NUM, _arg2);
if (((_arg3) && (!((_arg3 == ""))))){
_local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_LABEL_KEY_NUM, _arg3);
_local6 = 3;
if (!isNaN(_arg4)){
_local5 = _eventTracker.setValue(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_VALUE_VALUE_NUM, _arg4);
_local6 = 4;
};
};
if (_local5){
_debug.info(((("valid event tracking call\ncategory: " + _arg1) + "\naction: ") + _arg2), VisualDebugMode.geek);
_sendXEvent(_eventTracker);
};
} else {
_debug.warning(((("event tracking call is not valid, failed!\ncategory: " + _arg1) + "\naction: ") + _arg2), VisualDebugMode.geek);
_local5 = false;
};
switch (_local6){
case 4:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3, _arg4].join(", ")) + " )"));
break;
case 3:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3].join(", ")) + " )"));
break;
case 2:
default:
_debug.info((("trackEvent( " + [_arg1, _arg2].join(", ")) + " )"));
};
return (_local5);
}
public function trackPageview(_arg1:String=""):void{
_debug.info((("trackPageview( " + _arg1) + " )"));
if (_doTracking()){
_initData();
_trackMetrics(_arg1);
_noSessionInformation = false;
} else {
_debug.warning((("trackPageview( " + _arg1) + " ) failed"));
};
}
public function setCookieTimeout(_arg1:int):void{
_config.conversionTimeout = _arg1;
_debug.info((("setCookieTimeout( " + _config.conversionTimeout) + " )"));
}
public function trackTrans():void{
_debug.warning("trackTrans() not implemented");
}
public function setClientInfo(_arg1:Boolean):void{
_config.detectClientInfo = _arg1;
_debug.info((("setClientInfo( " + _config.detectClientInfo) + " )"));
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_debug.warning((("linkByPost( " + [_arg1, _arg2].join(", ")) + " ) not implemented"));
}
private function _initData():void{
var _local1:String;
var _local2:String;
if (!_hasInitData){
_updateDomainName();
_domainHash = _getDomainHash();
_timeStamp = Math.round((new Date().getTime() / 1000));
if (_debug.verbose){
_local1 = "";
_local1 = (_local1 + "_initData 0");
_local1 = (_local1 + ("\ndomain name: " + _config.domainName));
_local1 = (_local1 + ("\ndomain hash: " + _domainHash));
_local1 = (_local1 + (((("\ntimestamp: " + _timeStamp) + " (") + new Date((_timeStamp * 1000))) + ")"));
_debug.info(_local1, VisualDebugMode.geek);
};
};
if (_doTracking()){
_handleCookie();
};
if (!_hasInitData){
if (_doTracking()){
_formatedReferrer = _formatReferrer();
_browserInfo = new BrowserInfo(_config, _info);
_debug.info(("browserInfo: " + _browserInfo.toURLString()), VisualDebugMode.advanced);
if (_config.campaignTracking){
_campaign = new CampaignManager(_config, _debug, _buffer, _domainHash, _formatedReferrer, _timeStamp);
_campaignInfo = _campaign.getCampaignInformation(_info.locationSearch, _noSessionInformation);
_debug.info(("campaignInfo: " + _campaignInfo.toURLString()), VisualDebugMode.advanced);
};
};
_x10Module = new X10();
_eventTracker = new X10();
_hasInitData = true;
};
if (_config.hasSiteOverlay){
_debug.warning("Site Overlay is not supported");
};
if (_debug.verbose){
_local2 = "";
_local2 = (_local2 + "_initData (misc)");
_local2 = (_local2 + ("\nflash version: " + _info.flashVersion.toString(4)));
_local2 = (_local2 + ("\nprotocol: " + _info.protocol));
_local2 = (_local2 + (("\ndefault domain name (auto): \"" + _info.domainName) + "\""));
_local2 = (_local2 + ("\nlanguage: " + _info.language));
_local2 = (_local2 + ("\ndomain hash: " + _getDomainHash()));
_local2 = (_local2 + ("\nuser-agent: " + _info.userAgent));
_debug.info(_local2, VisualDebugMode.geek);
};
}
public function getDetectTitle():Boolean{
_debug.info("getDetectTitle()");
return (_config.detectTitle);
}
public function resetSession():void{
_debug.info("resetSession()");
_buffer.resetCurrentSession();
}
public function getClientInfo():Boolean{
_debug.info("getClientInfo()");
return (_config.detectClientInfo);
}
private function _sendXEvent(_arg1:X10=null):void{
var _local2:Variables;
var _local3:EventInfo;
var _local4:Variables;
var _local5:Variables;
_initData();
if (_takeSample()){
_local2 = new Variables();
_local2.URIencode = true;
_local3 = new EventInfo(true, _x10Module, _arg1);
_local4 = _local3.toVariables();
_local5 = _renderMetricsSearchVariables();
_local2.join(_local4, _local5);
_gifRequest.send(_account, _local2, false, true);
};
}
public function setDetectFlash(_arg1:Boolean):void{
_config.detectFlash = _arg1;
_debug.info((("setDetectFlash( " + _config.detectFlash) + " )"));
}
public function setCampNameKey(_arg1:String):void{
_config.campaignKey.UCCN = _arg1;
var _local2 = (("setCampNameKey( " + _config.campaignKey.UCCN) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCCN]"));
} else {
_debug.info(_local2);
};
}
private function _formatReferrer():String{
var _local2:String;
var _local3:URL;
var _local4:URL;
var _local1:String = _info.referrer;
if ((((_local1 == "")) || ((_local1 == "localhost")))){
_local1 = "-";
} else {
_local2 = _info.domainName;
_local3 = new URL(_local1);
_local4 = new URL(("http://" + _local2));
if (_local3.hostName == _local2){
return ("-");
};
if (_local4.domain == _local3.domain){
if (_local4.subDomain != _local3.subDomain){
_local1 = "0";
};
};
if ((((_local1.charAt(0) == "[")) && (_local1.charAt((_local1.length - 1))))){
_local1 = "-";
};
};
_debug.info(("formated referrer: " + _local1), VisualDebugMode.advanced);
return (_local1);
}
private function _visitCode():Number{
if (_debug.verbose){
_debug.info(("visitCode: " + _buffer.utma.sessionId), VisualDebugMode.geek);
};
return (_buffer.utma.sessionId);
}
public function createEventTracker(_arg1:String):EventTracker{
_debug.info((("createEventTracker( " + _arg1) + " )"));
return (new EventTracker(_arg1, this));
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_debug.warning((("addItem( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6].join(", ")) + " ) not implemented"));
}
public function clearIgnoredOrganic():void{
_debug.info("clearIgnoredOrganic()");
_config.organic.clearIgnoredKeywords();
}
public function setVar(_arg1:String):void{
var _local2:Variables;
if (((!((_arg1 == ""))) && (_isNotGoogleSearch()))){
_initData();
_buffer.utmv.domainHash = _domainHash;
_buffer.utmv.value = _arg1;
if (_debug.verbose){
_debug.info(_buffer.utmv.toString(), VisualDebugMode.geek);
};
_debug.info((("setVar( " + _arg1) + " )"));
if (_takeSample()){
_local2 = new Variables();
_local2.utmt = "var";
_gifRequest.send(_account, _local2);
};
} else {
_debug.warning((("setVar \"" + _arg1) + "\" is ignored"));
};
}
public function setDomainName(_arg1:String):void{
if (_arg1 == "auto"){
_config.domain.mode = DomainNameMode.auto;
} else {
if (_arg1 == "none"){
_config.domain.mode = DomainNameMode.none;
} else {
_config.domain.mode = DomainNameMode.custom;
_config.domain.name = _arg1;
};
};
_updateDomainName();
_debug.info((("setDomainName( " + _config.domainName) + " )"));
}
private function _updateDomainName():void{
var _local1:String;
if (_config.domain.mode == DomainNameMode.auto){
_local1 = _info.domainName;
if (_local1.substring(0, 4) == "www."){
_local1 = _local1.substring(4);
};
_config.domain.name = _local1;
};
_config.domainName = _config.domain.name.toLowerCase();
_debug.info(("domain name: " + _config.domainName), VisualDebugMode.advanced);
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
_debug.warning((("addTrans( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8].join(", ")) + " ) not implemented"));
return (null);
}
private function _renderMetricsSearchVariables(_arg1:String=""):Variables{
var _local4:Variables;
var _local2:Variables = new Variables();
_local2.URIencode = true;
var _local3:DocumentInfo = new DocumentInfo(_config, _info, _formatedReferrer, _arg1, _adSense);
_debug.info(("docInfo: " + _local3.toURLString()), VisualDebugMode.geek);
if (_config.campaignTracking){
_local4 = _campaignInfo.toVariables();
};
var _local5:Variables = _browserInfo.toVariables();
_local2.join(_local3.toVariables(), _local5, _local4);
return (_local2);
}
public function setCampContentKey(_arg1:String):void{
_config.campaignKey.UCCT = _arg1;
var _local2 = (("setCampContentKey( " + _config.campaignKey.UCCT) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCCT]"));
} else {
_debug.info(_local2);
};
}
private function _handleCookie():void{
var _local1:String;
var _local2:String;
var _local3:Array;
var _local4:String;
if (_config.allowLinker){
};
if (((_buffer.hasUTMA()) && (!(_buffer.utma.isEmpty())))){
if (((!(_buffer.hasUTMB())) || (!(_buffer.hasUTMC())))){
_buffer.updateUTMA(_timeStamp);
_noSessionInformation = true;
};
if (_debug.verbose){
_debug.info(("from cookie " + _buffer.utma.toString()), VisualDebugMode.geek);
};
} else {
_debug.info("create a new utma", VisualDebugMode.advanced);
_buffer.utma.domainHash = _domainHash;
_buffer.utma.sessionId = _getUniqueSessionId();
_buffer.utma.firstTime = _timeStamp;
_buffer.utma.lastTime = _timeStamp;
_buffer.utma.currentTime = _timeStamp;
_buffer.utma.sessionCount = 1;
if (_debug.verbose){
_debug.info(_buffer.utma.toString(), VisualDebugMode.geek);
};
_noSessionInformation = true;
_isNewVisitor = true;
};
if (((_adSense.gaGlobal) && ((_adSense.dh == String(_domainHash))))){
if (_adSense.sid){
_buffer.utma.currentTime = Number(_adSense.sid);
if (_debug.verbose){
_local1 = "";
_local1 = (_local1 + "AdSense sid found\n");
_local1 = (_local1 + (((("Override currentTime(" + _buffer.utma.currentTime) + ") from AdSense sid(") + Number(_adSense.sid)) + ")"));
_debug.info(_local1, VisualDebugMode.geek);
};
};
if (_isNewVisitor){
if (_adSense.sid){
_buffer.utma.lastTime = Number(_adSense.sid);
if (_debug.verbose){
_local2 = "";
_local2 = (_local2 + "AdSense sid found (new visitor)\n");
_local2 = (_local2 + (((("Override lastTime(" + _buffer.utma.lastTime) + ") from AdSense sid(") + Number(_adSense.sid)) + ")"));
_debug.info(_local2, VisualDebugMode.geek);
};
};
if (_adSense.vid){
_local3 = _adSense.vid.split(".");
_buffer.utma.sessionId = Number(_local3[0]);
_buffer.utma.firstTime = Number(_local3[1]);
if (_debug.verbose){
_local4 = "";
_local4 = (_local4 + "AdSense vid found (new visitor)\n");
_local4 = (_local4 + (((("Override sessionId(" + _buffer.utma.sessionId) + ") from AdSense vid(") + Number(_local3[0])) + ")\n"));
_local4 = (_local4 + (((("Override firstTime(" + _buffer.utma.firstTime) + ") from AdSense vid(") + Number(_local3[1])) + ")"));
_debug.info(_local4, VisualDebugMode.geek);
};
};
if (_debug.verbose){
_debug.info(("AdSense modified : " + _buffer.utma.toString()), VisualDebugMode.geek);
};
};
};
_buffer.utmb.domainHash = _domainHash;
if (isNaN(_buffer.utmb.trackCount)){
_buffer.utmb.trackCount = 0;
};
if (isNaN(_buffer.utmb.token)){
_buffer.utmb.token = _config.tokenCliff;
};
if (isNaN(_buffer.utmb.lastTime)){
_buffer.utmb.lastTime = _buffer.utma.currentTime;
};
_buffer.utmc.domainHash = _domainHash;
if (_debug.verbose){
_debug.info(_buffer.utmb.toString(), VisualDebugMode.advanced);
_debug.info(_buffer.utmc.toString(), VisualDebugMode.advanced);
};
}
public function setLocalServerMode():void{
_config.serverMode = ServerOperationMode.local;
_debug.info("setLocalServerMode()");
}
public function clearIgnoredRef():void{
_debug.info("clearIgnoredRef()");
_config.organic.clearIgnoredReferrals();
}
public function setCampSourceKey(_arg1:String):void{
_config.campaignKey.UCSR = _arg1;
var _local2 = (("setCampSourceKey( " + _config.campaignKey.UCSR) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCSR]"));
} else {
_debug.info(_local2);
};
}
public function getLocalGifPath():String{
_debug.info("getLocalGifPath()");
return (_config.localGIFpath);
}
public function setLocalGifPath(_arg1:String):void{
_config.localGIFpath = _arg1;
_debug.info((("setLocalGifPath( " + _config.localGIFpath) + " )"));
}
public function getVersion():String{
_debug.info("getVersion()");
return (_config.version);
}
public function setAllowAnchor(_arg1:Boolean):void{
_config.allowAnchor = _arg1;
_debug.info((("setAllowAnchor( " + _config.allowAnchor) + " )"));
}
private function _isNotGoogleSearch():Boolean{
var _local1:String = _config.domainName;
var _local2 = (_local1.indexOf("www.google.") < 0);
var _local3 = (_local1.indexOf(".google.") < 0);
var _local4 = (_local1.indexOf("google.") < 0);
var _local5 = (_local1.indexOf("google.org") > -1);
return (((((((((_local2) || (_local3))) || (_local4))) || (!((_config.cookiePath == "/"))))) || (_local5)));
}
public function setSampleRate(_arg1:Number):void{
if (_arg1 < 0){
_debug.warning("sample rate can not be negative, ignoring value.");
} else {
_config.sampleRate = _arg1;
};
_debug.info((("setSampleRate( " + _config.sampleRate) + " )"));
}
private function _takeSample():Boolean{
if (_debug.verbose){
_debug.info((((("takeSample: (" + (_visitCode() % 10000)) + ") < (") + (_config.sampleRate * 10000)) + ")"), VisualDebugMode.geek);
};
return (((_visitCode() % 10000) < (_config.sampleRate * 10000)));
}
public function setCookiePath(_arg1:String):void{
_config.cookiePath = _arg1;
_debug.info((("setCookiePath( " + _config.cookiePath) + " )"));
}
public function setAllowHash(_arg1:Boolean):void{
_config.allowDomainHash = _arg1;
_debug.info((("setAllowHash( " + _config.allowDomainHash) + " )"));
}
private function _generateUserDataHash():Number{
var _local1 = "";
_local1 = (_local1 + _info.appName);
_local1 = (_local1 + _info.appVersion);
_local1 = (_local1 + _info.language);
_local1 = (_local1 + _info.platform);
_local1 = (_local1 + _info.userAgent.toString());
_local1 = (_local1 + (((_info.screenWidth + "x") + _info.screenHeight) + _info.screenColorDepth));
_local1 = (_local1 + _info.referrer);
return (Utils.generateHash(_local1));
}
public function setCampNOKey(_arg1:String):void{
_config.campaignKey.UCNO = _arg1;
var _local2 = (("setCampNOKey( " + _config.campaignKey.UCNO) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCNO]"));
} else {
_debug.info(_local2);
};
}
public function addIgnoredOrganic(_arg1:String):void{
_debug.info((("addIgnoredOrganic( " + _arg1) + " )"));
_config.organic.addIgnoredKeyword(_arg1);
}
public function setLocalRemoteServerMode():void{
_config.serverMode = ServerOperationMode.both;
_debug.info("setLocalRemoteServerMode()");
}
public function cookiePathCopy(_arg1:String):void{
_debug.warning((("cookiePathCopy( " + _arg1) + " ) not implemented"));
}
public function setDetectTitle(_arg1:Boolean):void{
_config.detectTitle = _arg1;
_debug.info((("setDetectTitle( " + _config.detectTitle) + " )"));
}
public function setCampTermKey(_arg1:String):void{
_config.campaignKey.UCTR = _arg1;
var _local2 = (("setCampTermKey( " + _config.campaignKey.UCTR) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCTR]"));
} else {
_debug.info(_local2);
};
}
public function getServiceMode():ServerOperationMode{
_debug.info("getServiceMode()");
return (_config.serverMode);
}
private function _trackMetrics(_arg1:String=""):void{
var _local2:Variables;
var _local3:Variables;
var _local4:Variables;
var _local5:EventInfo;
if (_takeSample()){
_local2 = new Variables();
_local2.URIencode = true;
if (((_x10Module) && (_x10Module.hasData()))){
_local5 = new EventInfo(false, _x10Module);
_local3 = _local5.toVariables();
};
_local4 = _renderMetricsSearchVariables(_arg1);
_local2.join(_local3, _local4);
_gifRequest.send(_account, _local2);
};
}
public function setCampaignTrack(_arg1:Boolean):void{
_config.campaignTracking = _arg1;
_debug.info((("setCampaignTrack( " + _config.campaignTracking) + " )"));
}
public function addIgnoredRef(_arg1:String):void{
_debug.info((("addIgnoredRef( " + _arg1) + " )"));
_config.organic.addIgnoredReferral(_arg1);
}
public function clearOrganic():void{
_debug.info("clearOrganic()");
_config.organic.clearEngines();
}
public function getDetectFlash():Boolean{
_debug.info("getDetectFlash()");
return (_config.detectFlash);
}
public function setCampMediumKey(_arg1:String):void{
_config.campaignKey.UCMD = _arg1;
var _local2 = (("setCampMediumKey( " + _config.campaignKey.UCMD) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCMD]"));
} else {
_debug.info(_local2);
};
}
private function _getUniqueSessionId():Number{
var _local1:Number = ((Utils.generate32bitRandom() ^ _generateUserDataHash()) * 2147483647);
_debug.info(("Session ID: " + _local1), VisualDebugMode.geek);
return (_local1);
}
private function _getDomainHash():Number{
if (((((!(_config.domainName)) || ((_config.domainName == "")))) || ((_config.domain.mode == DomainNameMode.none)))){
_config.domainName = "";
return (1);
};
_updateDomainName();
if (_config.allowDomainHash){
return (Utils.generateHash(_config.domainName));
};
return (1);
}
public function setSessionTimeout(_arg1:int):void{
_config.sessionTimeout = _arg1;
_debug.info((("setSessionTimeout( " + _config.sessionTimeout) + " )"));
}
public function getAccount():String{
_debug.info("getAccount()");
return (_account);
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_debug.warning((("link( " + [_arg1, _arg2].join(", ")) + " ) not implemented"));
}
public function setRemoteServerMode():void{
_config.serverMode = ServerOperationMode.remote;
_debug.info("setRemoteServerMode()");
}
}
}//package com.google.analytics.v4
Section 83
//AnalyticsTracker (com.google.analytics.AnalyticsTracker)
package com.google.analytics {
import flash.events.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
public interface AnalyticsTracker extends GoogleAnalyticsAPI, IEventDispatcher {
function set config(_arg1:Configuration):void;
function isReady():Boolean;
function get mode():String;
function set debug(_arg1:DebugConfiguration):void;
function get account():String;
function set mode(_arg1:String):void;
function get config():Configuration;
function get debug():DebugConfiguration;
function set account(_arg1:String):void;
function get visualDebug():Boolean;
function set visualDebug(_arg1:Boolean):void;
}
}//package com.google.analytics
Section 84
//API (com.google.analytics.API)
package com.google.analytics {
import com.google.analytics.utils.*;
public class API {
public static var version:Version = new Version();
version.major = 1;
version.minor = 0;
version.build = 1;
version.revision = "$Rev: 319 $ ".split(" ")[1];
}
}//package com.google.analytics
Section 85
//GATracker (com.google.analytics.GATracker)
package com.google.analytics {
import flash.display.*;
import flash.events.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import com.google.analytics.core.*;
import com.google.analytics.utils.*;
import com.google.analytics.external.*;
import com.google.analytics.events.*;
public class GATracker implements AnalyticsTracker {
private var _adSense:AdSenseGlobals;
private var _env:Environment;
private var _visualDebug:Boolean;
private var _idleTimer:IdleTimer;
private var _debug:DebugConfiguration;
private var _buffer:Buffer;
private var _config:Configuration;
private var _mode:String;
private var _display:DisplayObject;
private var _jsproxy:JavascriptProxy;
private var _dom:HTMLDOM;
private var _eventDispatcher:EventDispatcher;
private var _ready:Boolean;// = false
private var _gifRequest:GIFRequest;
private var _account:String;
private var _tracker:GoogleAnalyticsAPI;
public static var version:Version = API.version;
public static var autobuild:Boolean = true;
public function GATracker(_arg1:DisplayObject, _arg2:String, _arg3:String="AS3", _arg4:Boolean=false, _arg5:Configuration=null, _arg6:DebugConfiguration=null){
_ready = false;
super();
_display = _arg1;
_eventDispatcher = new EventDispatcher(this);
_tracker = new TrackerCache();
this.account = _arg2;
this.mode = _arg3;
this.visualDebug = _arg4;
if (!_arg6){
this.debug = new DebugConfiguration();
};
if (!_arg5){
this.config = new Configuration(_arg6);
};
if (autobuild){
_factory();
};
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_tracker.link(_arg1, _arg2);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_tracker.addOrganic(_arg1, _arg2);
}
public function setAllowLinker(_arg1:Boolean):void{
_tracker.setAllowLinker(_arg1);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
return (_tracker.trackEvent(_arg1, _arg2, _arg3, _arg4));
}
public function setCookieTimeout(_arg1:int):void{
_tracker.setCookieTimeout(_arg1);
}
public function trackTrans():void{
_tracker.trackTrans();
}
public function trackPageview(_arg1:String=""):void{
_tracker.trackPageview(_arg1);
}
public function getClientInfo():Boolean{
return (_tracker.getClientInfo());
}
public function setClientInfo(_arg1:Boolean):void{
_tracker.setClientInfo(_arg1);
}
public function get account():String{
return (_account);
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_tracker.linkByPost(_arg1, _arg2);
}
public function getDetectTitle():Boolean{
return (_tracker.getDetectTitle());
}
public function dispatchEvent(_arg1:Event):Boolean{
return (_eventDispatcher.dispatchEvent(_arg1));
}
public function get config():Configuration{
return (_config);
}
public function set mode(_arg1:String):void{
_mode = _arg1;
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
_eventDispatcher.removeEventListener(_arg1, _arg2, _arg3);
}
public function setDetectFlash(_arg1:Boolean):void{
_tracker.setDetectFlash(_arg1);
}
public function resetSession():void{
_tracker.resetSession();
}
public function setCampNameKey(_arg1:String):void{
_tracker.setCampNameKey(_arg1);
}
public function get debug():DebugConfiguration{
return (_debug);
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_tracker.addItem(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
private function _bridgeFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (Bridge) v" + version) + "\naccount: ") + account));
return (new Bridge(account, _debug, _jsproxy));
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
_eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function clearIgnoredOrganic():void{
_tracker.clearIgnoredOrganic();
}
public function set account(_arg1:String):void{
_account = _arg1;
}
public function setVar(_arg1:String):void{
_tracker.setVar(_arg1);
}
public function build():void{
if (!isReady()){
_factory();
};
}
public function setDomainName(_arg1:String):void{
_tracker.setDomainName(_arg1);
}
public function createEventTracker(_arg1:String):EventTracker{
return (_tracker.createEventTracker(_arg1));
}
public function set config(_arg1:Configuration):void{
_config = _arg1;
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
return (_tracker.addTrans(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8));
}
public function setCampSourceKey(_arg1:String):void{
_tracker.setCampSourceKey(_arg1);
}
public function setCampContentKey(_arg1:String):void{
_tracker.setCampContentKey(_arg1);
}
public function willTrigger(_arg1:String):Boolean{
return (_eventDispatcher.willTrigger(_arg1));
}
public function setLocalServerMode():void{
_tracker.setLocalServerMode();
}
public function isReady():Boolean{
return (_ready);
}
public function getLocalGifPath():String{
return (_tracker.getLocalGifPath());
}
public function setAllowAnchor(_arg1:Boolean):void{
_tracker.setAllowAnchor(_arg1);
}
public function clearIgnoredRef():void{
_tracker.clearIgnoredRef();
}
public function get mode():String{
return (_mode);
}
public function set debug(_arg1:DebugConfiguration):void{
_debug = _arg1;
}
public function setLocalGifPath(_arg1:String):void{
_tracker.setLocalGifPath(_arg1);
}
public function getVersion():String{
return (_tracker.getVersion());
}
public function setSampleRate(_arg1:Number):void{
_tracker.setSampleRate(_arg1);
}
public function setCookiePath(_arg1:String):void{
_tracker.setCookiePath(_arg1);
}
public function setAllowHash(_arg1:Boolean):void{
_tracker.setAllowHash(_arg1);
}
public function setCampNOKey(_arg1:String):void{
_tracker.setCampNOKey(_arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
_tracker.addIgnoredOrganic(_arg1);
}
public function setLocalRemoteServerMode():void{
_tracker.setLocalRemoteServerMode();
}
public function cookiePathCopy(_arg1:String):void{
_tracker.cookiePathCopy(_arg1);
}
private function _factory():void{
var _local1:GoogleAnalyticsAPI;
var _local2:TrackerCache;
_jsproxy = new JavascriptProxy(debug);
if (visualDebug){
debug.layout = new Layout(debug, _display);
debug.active = visualDebug;
};
_local2 = (_tracker as TrackerCache);
switch (mode){
case TrackerMode.BRIDGE:
_local1 = _bridgeFactory();
break;
case TrackerMode.AS3:
default:
_local1 = _trackerFactory();
};
if (!_local2.isEmpty()){
_local2.tracker = _local1;
_local2.flush();
};
_tracker = _local1;
_ready = true;
dispatchEvent(new AnalyticsEvent(AnalyticsEvent.READY, this));
}
public function setCampTermKey(_arg1:String):void{
_tracker.setCampTermKey(_arg1);
}
private function _trackerFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (AS3) v" + version) + "\naccount: ") + account));
_adSense = new AdSenseGlobals(debug);
_dom = new HTMLDOM(debug);
_dom.cacheProperties();
_env = new Environment("", "", "", debug, _dom);
_buffer = new Buffer(config, debug, false);
_gifRequest = new GIFRequest(config, debug, _buffer, _env);
_idleTimer = new IdleTimer(config, debug, _display, _buffer);
_env.url = _display.stage.loaderInfo.url;
return (new Tracker(account, config, debug, _env, _buffer, _gifRequest, _adSense));
}
public function setDetectTitle(_arg1:Boolean):void{
_tracker.setDetectTitle(_arg1);
}
public function getServiceMode():ServerOperationMode{
return (_tracker.getServiceMode());
}
public function clearOrganic():void{
_tracker.clearOrganic();
}
public function setCampaignTrack(_arg1:Boolean):void{
_tracker.setCampaignTrack(_arg1);
}
public function addIgnoredRef(_arg1:String):void{
_tracker.addIgnoredRef(_arg1);
}
public function set visualDebug(_arg1:Boolean):void{
_visualDebug = _arg1;
}
public function setCampMediumKey(_arg1:String):void{
_tracker.setCampMediumKey(_arg1);
}
public function setSessionTimeout(_arg1:int):void{
_tracker.setSessionTimeout(_arg1);
}
public function getDetectFlash():Boolean{
return (_tracker.getDetectFlash());
}
public function get visualDebug():Boolean{
return (_visualDebug);
}
public function getAccount():String{
return (_tracker.getAccount());
}
public function hasEventListener(_arg1:String):Boolean{
return (_eventDispatcher.hasEventListener(_arg1));
}
public function setRemoteServerMode():void{
_tracker.setRemoteServerMode();
}
}
var _local1:* = ServerOperationMode;
return (_local1);
}//package com.google.analytics
Section 86
//SpilGamesServices (com.spilgames.api.SpilGamesServices)
package com.spilgames.api {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.system.*;
public class SpilGamesServices extends MovieClip {
private var _connected:Boolean;// = false
private var ERR_LOADCOMP:String;// = "Failed to load Spil Social Component."
private var _loader:Loader;
private var ERR_DOWNLOAD:String;// = "Failed downloading Spil Games Social configurator component."
private var _connecting:Boolean;// = false
private var DEFAULT_CONNECTION_LOCATION:String;// = "http://www8.agame.com/games/flash/services/ServicesConnection.swf"
private var ERR_INITCOMP:String;// = "Failed to communication with a Spil Social Component."
private var ERR_SPILCALL:String;// = "Failed processing a Spil call."
private var ERR_NOPARENT:String;// = "Failed creating Spil Games connector: No parent provided."
private var _showDebug:Boolean;// = false
private var _servicesConnection;// = null
private var _alwaysInFront:Boolean;// = false
public static const INVALID_TYPE:int = -1;
public static const INVALID_ID:int = -1;
private static var _instance:SpilGamesServices = null;
public function SpilGamesServices(){
if (_instance){
throw (new Error("Only a single instance can be created."));
};
_instance = this;
}
private function handleServicesFailed(_arg1:ErrorEvent):void{
_servicesConnection.removeEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.removeEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.removeEventListener("serviceError", handleServiceError);
_servicesConnection = null;
if (hasEventListener("servicesFailed")){
dispatchEvent(new ErrorEvent("servicesFailed", false, false, _arg1.text));
};
}
private function handleLoadComplete(_arg1:Event):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_servicesConnection = LoaderInfo(_arg1.target).content;
_servicesConnection.addEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.addEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.addEventListener("serviceError", handleServiceError);
addChild(_servicesConnection);
}
public function send(_arg1:String, _arg2:String, _arg3:Function, _arg4:Object=null):int{
if (_connected){
return (_servicesConnection.send(_arg1, _arg2, _arg3, _arg4));
};
return (INVALID_ID);
}
public function get connected():Boolean{
return (_connected);
}
public function showErrorMessage(_arg1:String):void{
if (((_servicesConnection) && (_servicesConnection.hasOwnProperty("showErrorMessage")))){
_servicesConnection.showErrorMessage(_arg1);
};
}
public function isSWFReady():Boolean{
return (isReady());
}
public function getSiteID():int{
if (_servicesConnection != null){
return (_servicesConnection.getSiteID());
};
return (INVALID_ID);
}
public function isReady():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isReady())));
}
private function handleServiceError(_arg1:Event):void{
var _local2 = "";
if ((_arg1 is ErrorEvent)){
_local2 = ErrorEvent(_arg1).text;
} else {
_local2 = _arg1.toString();
};
if (hasEventListener("serviceError")){
dispatchEvent(new ErrorEvent("serviceError", false, false, _local2));
};
}
public function disconnect():void{
if (_connected){
_servicesConnection.removeEventListener();
_servicesConnection.removeEventListener();
_servicesConnection.removeEventListener();
_servicesConnection.disconnect();
_servicesConnection = null;
};
if (_loader){
try {
_loader.close();
} catch(e:Error) {
} finally {
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
};
};
removeEventListener(Event.ENTER_FRAME, bringToFront);
if (parent){
parent.removeChild(this);
};
}
private function handleServicesReady(_arg1:Event):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_connected = true;
_connecting = false;
dispatchEvent(new Event("servicesReady"));
}
public function getChannelID():int{
if (_servicesConnection != null){
return (_servicesConnection.getChannelID());
};
return (INVALID_ID);
}
public function set showDebug(_arg1:Boolean):void{
if (_showDebug != _arg1){
_showDebug = _arg1;
if (_showDebug){
bringToFront();
};
};
}
public function hasValidUserData():Boolean{
return (isGuest());
}
public function isDomainAllowed():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isDomainValid())));
}
public function isGuest():Boolean{
var _local1:Object;
if (_servicesConnection != null){
return (_servicesConnection.isGuest());
};
trace("WARNING: SpilGamesServices connection not ready yet");
if (root.loaderInfo != null){
_local1 = root.loaderInfo.parameters;
return (((((((!(_local1.username)) || ((_local1.username == "")))) || (!(_local1.hash)))) || ((_local1.hash == ""))));
};
return (false);
}
public function get showDebug():Boolean{
return (_showDebug);
}
private function handleIOError(_arg1:IOErrorEvent):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
if (hasEventListener(_arg1.type)){
dispatchEvent(_arg1);
};
}
public function getItemType():int{
if (_servicesConnection != null){
return (_servicesConnection.getItemType());
};
return (INVALID_TYPE);
}
public function set alwaysInFront(_arg1:Boolean):void{
if (_alwaysInFront != _arg1){
_alwaysInFront = _arg1;
if (_alwaysInFront){
addEventListener(Event.ENTER_FRAME, bringToFront);
} else {
removeEventListener(Event.ENTER_FRAME, bringToFront);
};
};
}
public function getItemID():int{
if (_servicesConnection != null){
return (_servicesConnection.getItemID());
};
return (INVALID_ID);
}
public function getUserName():String{
if (_servicesConnection != null){
return (_servicesConnection.getUserName());
};
return ("");
}
public function allowDomain(_arg1:String):void{
Security.allowDomain("*");
Security.allowInsecureDomain("*");
}
public function getUserHash():String{
if (_servicesConnection != null){
return (_servicesConnection.getUserHash());
};
return ("");
}
public function connect(_arg1:DisplayObjectContainer):void{
var _local2:String;
var _local3:URLRequest;
if (((!(_connecting)) && (!(_connected)))){
if (!_arg1.stage){
trace("ERROR: The given clip must be present in the display list (added to stage)");
return;
};
_connecting = true;
_arg1.stage.addChild(this);
_local2 = DEFAULT_CONNECTION_LOCATION;
if (((root.loaderInfo.parameters["servicesLoc"]) && ((root.loaderInfo.parameters["servicesLoc"].length > 0)))){
_local2 = root.loaderInfo.parameters["servicesLoc"];
};
allowDomain(_local2);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_local3 = new URLRequest(_local2);
_loader.load(_local3);
};
}
public function get alwaysInFront():Boolean{
return (_alwaysInFront);
}
public function bringToFront(_arg1:Event=null):void{
var e = _arg1;
if (parent){
try {
parent.setChildIndex(this, (parent.numChildren - 1));
} catch(e:Error) {
removeEventListener(Event.ENTER_FRAME, bringToFront);
};
};
}
public static function getInstance():SpilGamesServices{
if (!_instance){
_instance = new (SpilGamesServices);
};
return (_instance);
}
}
}//package com.spilgames.api
Section 87
//AddObjectEffect (element.AddObjectEffect)
package element {
import flash.display.*;
import utils.*;
public class AddObjectEffect {
private var _effect:MovieClip;
private var _y:Number;
private var _mc:MovieClip;
private var _x:Number;
public function AddObjectEffect(_arg1:MovieClip, _arg2:Number, _arg3:Number){
_mc = _arg1;
_x = _arg2;
_y = _arg3;
initDis();
}
private function destroy():void{
_effect.addFrameScript((_effect.totalFrames - 1), null);
_mc.removeChild(_effect);
}
private function initDis():void{
_effect = Attach.getMovieClip("Effect_get");
_effect.x = _x;
_effect.y = _y;
_effect.addFrameScript((_effect.totalFrames - 1), destroy);
_mc.addChild(_effect);
}
}
}//package element
Section 88
//CusFoodWindow (element.CusFoodWindow)
package element {
import flash.display.*;
import utils.*;
public class CusFoodWindow {
private var _foodArr:Array;
private var curFood:MovieClip;
private var num:int;
private var _cusFoodWindow:MovieClip;
private var _cusMc:Sprite;
private static var str:String = "cusPutFoodWindow";
public function CusFoodWindow(_arg1:Sprite){
_cusMc = _arg1;
_cusFoodWindow = Attach.getMovieClip(str);
_cusMc.addChild(_cusFoodWindow);
initDate();
initPosition();
initEvent();
}
public function removeFood(_arg1:MovieClip):void{
curFood = _arg1;
curFood.gotoAndPlay(2);
curFood.addFrameScript((curFood.totalFrames - 1), stopAndRemoveFood);
var _local2:int;
while (_local2 < _foodArr.length) {
if (_foodArr[_local2] == _arg1){
_foodArr.splice(_local2, 1);
};
_local2++;
};
}
private function thisStop():void{
_cusFoodWindow.stop();
addChildAgain();
}
private function initEvent():void{
_cusFoodWindow.addFrameScript(9, thisStop);
_cusFoodWindow.addFrameScript(26, stopAndRemove);
_cusFoodWindow.addFrameScript((_cusFoodWindow.totalFrames - 1), stopAndRemove);
}
public function insertFood(_arg1:MovieClip):void{
_foodArr.push(_arg1);
_cusFoodWindow.addChild(_arg1);
_arg1.x = 11.5;
_arg1.y = (6 + (num * 37));
num++;
}
private function stopAndRemove():void{
_cusFoodWindow.stop();
_cusMc.removeChild(_cusFoodWindow);
}
private function addChildAgain():void{
var _local1:int;
while (_local1 < _foodArr.length) {
_cusFoodWindow.addChild(_foodArr[_local1]);
_local1++;
};
}
private function initPosition():void{
_cusFoodWindow.x = 90;
_cusFoodWindow.y = -10;
}
private function stopAndRemoveFood():void{
curFood.stop();
_cusFoodWindow.removeChild(curFood);
}
private function initDate():void{
num = 0;
_foodArr = new Array();
}
public function get window():MovieClip{
return (_cusFoodWindow);
}
}
}//package element
Section 89
//Custom (element.Custom)
package element {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import utils.*;
import AssistantClass.*;
import flash.utils.*;
import main.*;
import logic.*;
public class Custom extends Sprite {
public var cusPosition:int;
public var cusFoodWindow:CusFoodWindow;
private var _state:String;
private var overFrames:int;
public var foodArray:Array;
private var reqFood:MovieClip;
private var allMoney:int;
private var _peopleStar:PeopleStar;
private var _isCusReadyGoAway:Boolean;
public var allFrames:int;
private var _isTimeMoney:Boolean;
private var _requirementFoodName:Array;
public var angryFrames:int;
private var _cueMc:MovieClip;
public var awayFrames:int;
private var _mc:MovieClip;
private var _moneyMc:MovieClip;
private var _moneyMcTxt:TextField;
public var isNeedCurFood:Boolean;
public var requirementFood:Array;
private var _cusHappyFrames:int;
public var lable:String;
private var _money:MovieClip;
public var spaceFrames:int;
public var index:int;
private var _cusAwayFrames:int;
public var _pollMc:MovieClip;
private var _timeMoney:int;
private var _isCusInHappy:Boolean;
public static var GOAWAY:String = "GOAWAY";
public function Custom(_arg1:String, _arg2:int, _arg3:Array, _arg4:int){
_pollMc = Attach.getMovieClip(_arg1);
this.addChild(_pollMc);
this.spaceFrames = _arg2;
this.foodArray = _arg3;
this.allFrames = _arg4;
_peopleStar = new PeopleStar(this, _arg4);
init();
}
private function run(_arg1:Event):void{
if (UI_Ingame.isPause){
return;
};
overFrames++;
_peopleStar.run(overFrames);
if (overFrames == awayFrames){
SoundsManager.instance.playSound("客人生气离开", 1, 1);
_state = "angry";
_pollMc.gotoAndStop(4);
cusFoodWindow.window.gotoAndPlay(12);
cusReadyGoAway();
} else {
if (_isCusInHappy){
_cusHappyFrames++;
if (_cusHappyFrames == 40){
_isCusInHappy = false;
_cusHappyFrames = 0;
};
return;
};
};
if (overFrames < angryFrames){
if (_pollMc.currentFrame != 1){
_pollMc.gotoAndStop(1);
};
if (cusFoodWindow.window.currentFrame != 10){
cusFoodWindow.window.gotoAndStop(10);
};
} else {
if (overFrames < awayFrames){
if (_pollMc.currentFrame != 2){
_pollMc.gotoAndStop(2);
};
if (cusFoodWindow.window.currentFrame != 11){
cusFoodWindow.window.gotoAndStop(11);
};
};
};
}
private function isCusGoAway():void{
_pollMc.gotoAndStop(3);
if (requirementFood.length == 0){
_state = "happy";
cusFoodWindow.window.gotoAndPlay(30);
cusReadyGoAway();
} else {
_isCusInHappy = true;
_cusHappyFrames = 0;
};
}
private function stopAndAddEvent():void{
_moneyMc.stop();
_money = _moneyMc["money"];
_money.gotoAndStop(1);
_moneyMcTxt = _moneyMc["moneytxtmc"]["moneytxt"];
_moneyMcTxt.text = ("+" + allMoney.toString());
_money.addEventListener(MouseEvent.ROLL_OVER, rollover);
_money.addEventListener(MouseEvent.ROLL_OUT, rollout);
_money.addEventListener(MouseEvent.CLICK, clickmoney);
}
private function init():void{
initDate();
initEvent();
insertNeedFoodWindow();
initRequirementFood();
initAllStateFrames();
insertCurCusNeedFood();
insertCueMc();
initMoney();
}
private function initRequirementFood():void{
var _local2:String;
var _local1:int;
while (_local1 < foodArray.length) {
_local2 = StaticPar_Ingame.allViewedFoods[foodArray[_local1]];
_local2 = (_local2 + "_food");
_requirementFoodName.push(_local2);
appendMoney(_local2);
_local2 = (_local2 + "_need");
reqFood = Attach.getMovieClip(_local2);
reqFood.stop();
requirementFood.push(reqFood);
_local1++;
};
}
public function timeStart():void{
this.addEventListener(Event.ENTER_FRAME, run);
}
private function initMoney():void{
_moneyMc = Attach.getMovieClip("moneymc");
_moneyMc.visible = false;
_moneyMc.stop();
_moneyMc.x = 64;
_moneyMc.y = 180;
_moneyMc.addFrameScript(17, stopAndAddEvent);
_moneyMc.addFrameScript((_moneyMc.totalFrames - 1), removeMoneyAndCusGoAway);
this.addChild(_moneyMc);
}
private function judgegoaway(_arg1:Event):void{
if (UI_Ingame.isPause){
return;
};
if ((((_cusAwayFrames == 10)) && ((_state == "happy")))){
_isTimeMoney = true;
_moneyMc.visible = true;
_moneyMc.gotoAndPlay(2);
};
if (_cusAwayFrames == 40){
if (_state == "happy"){
_pollMc.visible = false;
} else {
if (_state == "angry"){
_mc.dispatchEvent(new EventCustomGoAway(this));
};
};
};
if (_isTimeMoney){
if (_timeMoney == 300){
removeMoneyAndCusGoAway();
this.removeEventListener(Event.ENTER_FRAME, judgegoaway);
};
_timeMoney++;
};
_cusAwayFrames++;
}
private function insertNeedFoodWindow():void{
cusFoodWindow = new CusFoodWindow(this);
}
private function clickmoney(_arg1:MouseEvent):void{
if (UI_Ingame.isPause){
return;
};
SoundsManager.instance.playSound("收钱", 1, 1);
_moneyMc.removeEventListener(MouseEvent.CLICK, clickmoney);
this.removeEventListener(Event.ENTER_FRAME, judgegoaway);
_moneyMc.play();
_mc.dispatchEvent(new EventGetMoney(allMoney));
}
private function removeMoneyAndCusGoAway():void{
_moneyMc.stop();
_moneyMc.removeEventListener(MouseEvent.CLICK, clickmoney);
this.removeChild(_moneyMc);
_moneyMc = null;
_mc.dispatchEvent(new EventCustomGoAway(this));
}
private function clickingfood(_arg1:EventClickedFood):void{
if (!(_arg1.food as Food).isFoodOK){
return;
};
var _local2:int;
while (_local2 < _requirementFoodName.length) {
if (SetFollowMouseFoodPos.curFoodName == _requirementFoodName[_local2]){
cueMcPlay();
return;
};
_local2++;
};
}
private function rollout(_arg1:MouseEvent):void{
_money.gotoAndStop(1);
}
private function cueMcStop():void{
_cueMc.stop();
_cueMc.visible = false;
}
private function setfood(_arg1:Event):void{
cueMcStop();
}
private function insertCurCusNeedFood():void{
var _local3:MovieClip;
var _local1:int = requirementFood.length;
var _local2:int;
while (_local2 < _local1) {
_local3 = requirementFood[_local2];
cusFoodWindow.insertFood(_local3);
_local2++;
};
}
private function rollover(_arg1:MouseEvent):void{
_money.gotoAndStop(2);
}
public function set mc(_arg1:MovieClip):void{
_mc = _arg1;
_mc.addEventListener(EventClickedFood.CLICKEDFOOD, clickingfood);
_mc.addEventListener(SetFollowMouseFoodPos.SETFOOD, setfood);
}
private function initDate():void{
requirementFood = new Array();
_requirementFoodName = new Array();
overFrames = 0;
_cusAwayFrames = 0;
allMoney = 0;
_isTimeMoney = false;
_timeMoney = 0;
_isCusInHappy = false;
_cusHappyFrames = 0;
}
public function getBellyWash():void{
var _local1:int = (int((allFrames / 5)) + 1);
if (StaticPar_Ingame.bellyWashLev == 1){
overFrames = (overFrames - _local1);
} else {
if (StaticPar_Ingame.bellyWashLev == 2){
overFrames = (overFrames - (_local1 * 2));
} else {
if (StaticPar_Ingame.bellyWashLev == 3){
overFrames = (overFrames - (_local1 * 3));
};
};
};
if (overFrames < 0){
overFrames = 0;
};
_pollMc.gotoAndStop(3);
_isCusInHappy = true;
_cusHappyFrames = 0;
}
private function initAllStateFrames():void{
angryFrames = (allFrames / 2);
awayFrames = allFrames;
}
public function getFood(_arg1:Food):void{
var _local2:String;
var _local4:MovieClip;
var _local5:String;
_local2 = (_arg1.lable + "_need");
var _local3:int;
while (_local3 < requirementFood.length) {
_local4 = requirementFood[_local3];
_local5 = getQualifiedClassName(_local4);
if ((((_local2 == _local5)) && (_arg1.isFoodOK))){
isNeedCurFood = true;
requirementFood.splice(_local3, 1);
_requirementFoodName.splice(_local3, 1);
cusFoodWindow.removeFood(_local4);
isCusGoAway();
return;
};
_local3++;
};
isNeedCurFood = false;
}
private function insertCueMc():void{
_cueMc = Attach.getMovieClip("cuemc");
_cueMc.x = 64.5;
_cueMc.y = 0;
cueMcStop();
this.addChild(_cueMc);
}
private function initEvent():void{
this.addEventListener(MouseEvent.CLICK, clickcustom);
}
private function appendMoney(_arg1:String):void{
var _local3:Food;
var _local2:int;
while (_local2 < StaticPar_Ingame.allFoods.length) {
_local3 = StaticPar_Ingame.allFoods[_local2];
if (_local3.lable == _arg1){
allMoney = (allMoney + _local3.foodPrice);
};
_local2++;
};
}
private function removeEvent():void{
_mc.removeEventListener(EventClickedFood.CLICKEDFOOD, clickingfood);
_mc.removeEventListener(SetFollowMouseFoodPos.SETFOOD, setfood);
this.removeEventListener(MouseEvent.CLICK, clickcustom);
this.removeEventListener(Event.ENTER_FRAME, run);
this.removeEventListener(Event.ENTER_FRAME, judgegoaway);
}
private function cusReadyGoAway():void{
_isCusReadyGoAway = true;
_peopleStar.destroy();
this.removeEventListener(MouseEvent.CLICK, clickcustom);
this.removeEventListener(Event.ENTER_FRAME, run);
this.addEventListener(Event.ENTER_FRAME, judgegoaway);
}
private function clickcustom(_arg1:MouseEvent):void{
if (UI_Ingame.isPause){
return;
};
_mc.dispatchEvent(new EventClickCus(this));
}
public function destroy():void{
this.removeChild(_cueMc);
this.removeChild(_pollMc);
removeEvent();
}
private function cueMcPlay():void{
_cueMc.play();
_cueMc.visible = true;
}
}
}//package element
Section 90
//DurativeScore (element.DurativeScore)
package element {
import flash.display.*;
import flash.text.*;
import utils.*;
public class DurativeScore {
private var _score:Number;
private var _mc:MovieClip;
private var _scoreTxt:TextField;
private var _durativeScore:MovieClip;
public function DurativeScore(_arg1:MovieClip, _arg2:Number){
_mc = _arg1;
_score = _arg2;
initDis();
}
private function initDis():void{
_durativeScore = Attach.getMovieClip("durativescore");
_durativeScore.x = 545;
_durativeScore.y = 438;
_durativeScore.addFrameScript((_durativeScore.totalFrames - 1), destroy);
_mc.addChild(_durativeScore);
_scoreTxt = (_durativeScore["score"] as MovieClip)["scoretxt"];
_scoreTxt.text = ("-" + _score.toString());
}
private function destroy():void{
_durativeScore.addFrameScript((_durativeScore.totalFrames - 1), null);
_mc.removeChild(_durativeScore);
}
}
}//package element
Section 91
//Food (element.Food)
package element {
import flash.display.*;
import flash.events.*;
import utils.*;
import AssistantClass.*;
import main.*;
public class Food extends Sprite {
public var searedTimes:int;
public var lable:String;
public var foodPrice:Number;
public var hargCookedTimes:int;
public var includeGridding:Array;
public var isCanOverTurn:Boolean;
public var isFoodOK:Boolean;
public var cookedTimes:int;
private var _foodMc:MovieClip;
private var moveTimes:int;
public var isSetOnGriddingEver:Boolean;
private var isOverTurn:Boolean;
public var foodSize:String;
public function Food(_arg1:String, _arg2:String, _arg3:int, _arg4:int, _arg5:int, _arg6:Number){
_foodMc = Attach.getMovieClip(_arg1);
_foodMc.gotoAndStop(1);
this.addChild(_foodMc);
lable = _arg1;
this.foodSize = _arg2;
this.hargCookedTimes = _arg3;
this.cookedTimes = _arg4;
this.searedTimes = _arg5;
this.foodPrice = _arg6;
this.mouseChildren = false;
initDate();
initOverTurn();
}
private function getCurMc():void{
var _local1:MovieClip = (_foodMc.getChildAt(0) as MovieClip);
_local1.addFrameScript((_local1.totalFrames - 1), goto6Frame);
}
private function goto6Frame():void{
_foodMc.gotoAndStop(6);
}
public function setNotEngrossed():void{
var _local2:IntPoint;
var _local1:int;
while (_local1 < includeGridding.length) {
_local2 = includeGridding[_local1];
(StaticPar_Ingame.gridding[_local2.cX][_local2.cY] as PositionProperty).isEmpty = true;
_local1++;
};
}
public function overTrunFood():void{
_foodMc.gotoAndStop(5);
isOverTurn = true;
isCanOverTurn = false;
moveTimes = 0;
}
public function destroy():void{
timeStop();
}
private function timegoon(_arg1:Event):void{
if (UI_Ingame.isPause){
return;
};
if (!isOverTurn){
if (moveTimes == hargCookedTimes){
_foodMc.gotoAndStop(2);
} else {
if (moveTimes == cookedTimes){
_foodMc.gotoAndStop(3);
isCanOverTurn = true;
} else {
if (moveTimes == searedTimes){
isCanOverTurn = false;
_foodMc.gotoAndStop(4);
};
};
};
} else {
if (isOverTurn){
if (moveTimes == hargCookedTimes){
_foodMc.gotoAndStop(7);
} else {
if (moveTimes == cookedTimes){
SoundsManager.instance.playSound("烧烤完成", 1, 1);
isFoodOK = true;
_foodMc.gotoAndStop(8);
} else {
if (moveTimes == searedTimes){
isFoodOK = false;
_foodMc.gotoAndStop(9);
};
};
};
};
};
moveTimes = (moveTimes + 1);
}
public function timeGoOn():void{
if (moveTimes >= searedTimes){
return;
};
this.addEventListener(Event.ENTER_FRAME, timegoon);
}
private function initDate():void{
moveTimes = 0;
isOverTurn = false;
isFoodOK = false;
isCanOverTurn = false;
includeGridding = new Array();
}
private function initOverTurn():void{
_foodMc.addFrameScript(4, getCurMc);
}
public function get foodMc():MovieClip{
return (_foodMc);
}
public function setEngrossed():void{
var _local2:IntPoint;
var _local1:int;
while (_local1 < includeGridding.length) {
_local2 = includeGridding[_local1];
(StaticPar_Ingame.gridding[_local2.cX][_local2.cY] as PositionProperty).isEmpty = false;
_local1++;
};
}
public function timeStop():void{
this.removeEventListener(Event.ENTER_FRAME, timegoon);
}
}
}//package element
Section 92
//LevelLabel (element.LevelLabel)
package element {
import flash.display.*;
import utils.*;
import AssistantClass.*;
public class LevelLabel {
private var curLevLev:int;
private var isMaxLev:Boolean;
private var levDataMc:MovieClip;
private var starMc:MovieClip;
private var _y:Number;
private var _mc:MovieClip;
private var _x:Number;
public var lev:int;
public function LevelLabel(_arg1:MovieClip, _arg2:int, _arg3:Number, _arg4:Number){
_mc = _arg1;
this.lev = _arg2;
_x = _arg3;
_y = _arg4;
initCurLevLev();
initLevDataMc();
}
private function insertStar():void{
if (curLevLev == 0){
return;
};
starMc = Attach.getMovieClip("star");
levDataMc.addChild(starMc);
if (curLevLev == 1){
starMc.gotoAndStop(1);
} else {
if (curLevLev == 2){
starMc.gotoAndStop(2);
} else {
if (curLevLev == 3){
starMc.gotoAndStop(3);
};
};
};
}
private function initLevDataMc():void{
levDataMc = Attach.getMovieClip("levellabel");
levDataMc.mouseChildren = false;
levDataMc.name = lev.toString();
if (isMaxLev){
levDataMc.gotoAndStop(3);
} else {
levDataMc.gotoAndStop(1);
};
levDataMc.x = _x;
levDataMc.y = _y;
_mc.addChild(levDataMc);
insertStar();
}
public function destroy():void{
if (starMc){
levDataMc.removeChild(starMc);
};
_mc.removeChild(levDataMc);
}
private function initCurLevLev():void{
if (lev == StaticLevData.curMaxLev){
isMaxLev = true;
if (StaticLevData.isCompletAllLev){
curLevLev = Cookie.instance.levslev["levslev"][(lev - 1)];
} else {
curLevLev = 0;
};
};
curLevLev = Cookie.instance.levslev["levslev"][(lev - 1)];
}
public function get levelDataMc():MovieClip{
return (levDataMc);
}
}
}//package element
Section 93
//PeopleStar (element.PeopleStar)
package element {
import flash.display.*;
import utils.*;
public class PeopleStar {
private var _curCusAllFrames:int;
private var _framesPerStar:int;
private var _peopleStar1:MovieClip;
private var _peopleStar2:MovieClip;
private var _peopleStar3:MovieClip;
private var _peopleStar4:MovieClip;
private var _peopleStar5:MovieClip;
private var _isPlayingStar:Boolean;
private var _peopleStarArr:Array;
private var _allStarFramesArr:Array;
private var _peopleFactStar:int;
private var _curStar:MovieClip;
private var _customSprite:Sprite;
private var _peopleStarLev:int;
public function PeopleStar(_arg1:Sprite, _arg2:int){
_customSprite = _arg1;
_curCusAllFrames = _arg2;
initData();
initDis();
}
private function star1Stop():void{
_peopleStar1.stop();
_isPlayingStar = false;
}
private function star3Stop():void{
_peopleStar3.stop();
_isPlayingStar = false;
}
private function star4Stop():void{
_peopleStar4.stop();
_isPlayingStar = false;
}
private function star5Stop():void{
_peopleStar5.stop();
_isPlayingStar = false;
}
private function star2Stop():void{
_peopleStar2.stop();
_isPlayingStar = false;
}
private function initData():void{
_framesPerStar = (_curCusAllFrames / 5);
_allStarFramesArr = new Array();
_allStarFramesArr.push(_framesPerStar);
_allStarFramesArr.push((_framesPerStar * 2));
_allStarFramesArr.push((_framesPerStar * 3));
_allStarFramesArr.push((_framesPerStar * 4));
_allStarFramesArr.push(_curCusAllFrames);
_peopleStarArr = new Array();
}
public function destroy():void{
_customSprite.removeChild(_peopleStar1);
_customSprite.removeChild(_peopleStar2);
_customSprite.removeChild(_peopleStar3);
_customSprite.removeChild(_peopleStar4);
_customSprite.removeChild(_peopleStar5);
}
private function initDis():void{
_peopleStar1 = Attach.getMovieClip("peoplestar");
_peopleStar1.stop();
_peopleStar1.gotoAndStop(1);
_peopleStar1.addFrameScript(19, star1Stop);
_peopleStar1.addFrameScript((_peopleStar1.totalFrames - 1), star1Stop);
_peopleStar1.x = 92;
_peopleStar1.y = 170;
_customSprite.addChild(_peopleStar1);
_peopleStarArr.push(_peopleStar1);
_peopleStar2 = Attach.getMovieClip("peoplestar");
_peopleStar2.stop();
_peopleStar2.gotoAndStop(1);
_peopleStar2.addFrameScript(19, star2Stop);
_peopleStar2.addFrameScript((_peopleStar2.totalFrames - 1), star2Stop);
_peopleStar2.x = 72;
_peopleStar2.y = 170;
_customSprite.addChild(_peopleStar2);
_peopleStarArr.push(_peopleStar2);
_peopleStar3 = Attach.getMovieClip("peoplestar");
_peopleStar3.stop();
_peopleStar3.gotoAndStop(1);
_peopleStar3.addFrameScript(19, star3Stop);
_peopleStar3.addFrameScript((_peopleStar3.totalFrames - 1), star3Stop);
_peopleStar3.x = 52;
_peopleStar3.y = 170;
_customSprite.addChild(_peopleStar3);
_peopleStarArr.push(_peopleStar3);
_peopleStar4 = Attach.getMovieClip("peoplestar");
_peopleStar4.stop();
_peopleStar4.gotoAndStop(1);
_peopleStar4.addFrameScript(19, star4Stop);
_peopleStar4.addFrameScript((_peopleStar4.totalFrames - 1), star4Stop);
_peopleStar4.x = 32;
_peopleStar4.y = 170;
_customSprite.addChild(_peopleStar4);
_peopleStarArr.push(_peopleStar4);
_peopleStar5 = Attach.getMovieClip("peoplestar");
_peopleStar5.stop();
_peopleStar5.gotoAndStop(1);
_peopleStar5.addFrameScript(19, star5Stop);
_peopleStar5.addFrameScript((_peopleStar5.totalFrames - 1), star5Stop);
_peopleStar5.x = 12;
_peopleStar5.y = 170;
_customSprite.addChild(_peopleStar5);
_peopleStarArr.push(_peopleStar5);
_peopleFactStar = 5;
}
public function run(_arg1:int):void{
if (_isPlayingStar){
return;
};
if (_arg1 <= _allStarFramesArr[0]){
_peopleStarLev = 5;
} else {
if (_arg1 <= _allStarFramesArr[1]){
_peopleStarLev = 4;
} else {
if (_arg1 <= _allStarFramesArr[2]){
_peopleStarLev = 3;
} else {
if (_arg1 <= _allStarFramesArr[3]){
_peopleStarLev = 2;
} else {
if (_arg1 <= _allStarFramesArr[4]){
_peopleStarLev = 1;
} else {
_peopleStarLev = 0;
};
};
};
};
};
if (_peopleFactStar == _peopleStarLev){
return;
};
if (_peopleFactStar > _peopleStarLev){
(_peopleStarArr[(_peopleFactStar - 1)] as MovieClip).gotoAndPlay(1);
_isPlayingStar = true;
_peopleFactStar--;
} else {
if (_peopleFactStar < _peopleStarLev){
(_peopleStarArr[_peopleFactStar] as MovieClip).gotoAndPlay(21);
_isPlayingStar = true;
_peopleFactStar++;
};
};
}
}
}//package element
Section 94
//Thermometer (element.Thermometer)
package element {
import flash.display.*;
import flash.events.*;
import AssistantClass.*;
import main.*;
public class Thermometer extends MovieClip {
public var highTemperarureSpeed:Number;// = 1.7
private var _temperatureChange:MovieClip;
private var count:int;
private var _curTemperature:Number;
public var highTemperarure:Number;
public var middleTemperatureSpeed:Number;// = 1.5
public var smallTemperatureSpeed:Number;// = 1.3
public var middleTemperature:Number;
private function initDis():void{
_temperatureChange = this["temperaturechange"];
_temperatureChange.stop();
}
private function click(_arg1:MouseEvent):void{
if (UI_Ingame.isPause){
return;
};
this.gotoAndPlay(2);
if ((_curTemperature + 10) < 100){
_curTemperature = (_curTemperature + 10);
} else {
_curTemperature = 100;
};
}
private function run(_arg1:Event):void{
if (UI_Ingame.isPause){
return;
};
if (_curTemperature > 0){
count++;
if (count == 10){
count = 0;
_curTemperature--;
};
_temperatureChange.gotoAndStop(_curTemperature);
};
if (_curTemperature == 0){
StaticPar_Ingame.curBarbecueSpeed = 1;
} else {
if ((((_curTemperature > 0)) && ((_curTemperature < middleTemperature)))){
StaticPar_Ingame.curBarbecueSpeed = smallTemperatureSpeed;
} else {
if ((((_curTemperature >= middleTemperature)) && ((_curTemperature < highTemperarure)))){
StaticPar_Ingame.curBarbecueSpeed = middleTemperatureSpeed;
} else {
if (_curTemperature >= highTemperarure){
StaticPar_Ingame.curBarbecueSpeed = highTemperarureSpeed;
};
};
};
};
}
public function destroy():void{
this.removeEventListener(MouseEvent.CLICK, click);
this.removeEventListener(Event.ENTER_FRAME, run);
this.addFrameScript(0, null);
}
private function initEvent():void{
this.addEventListener(MouseEvent.CLICK, click);
this.addEventListener(Event.ENTER_FRAME, run);
this.addFrameScript(0, stop);
}
public function init():void{
initDate();
initDis();
initEvent();
}
private function initDate():void{
_curTemperature = 0;
count = 0;
}
}
}//package element
Section 95
//a10_com_logo_201 (Hot_BBQ_Party_fla.a10_com_logo_201)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class a10_com_logo_201 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 96
//durativetxt_364 (Hot_BBQ_Party_fla.durativetxt_364)
package Hot_BBQ_Party_fla {
import flash.display.*;
import flash.text.*;
public dynamic class durativetxt_364 extends MovieClip {
public var scoretxt:TextField;
}
}//package Hot_BBQ_Party_fla
Section 97
//girlsgogames_186 (Hot_BBQ_Party_fla.girlsgogames_186)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class girlsgogames_186 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 98
//girlsgogames_187 (Hot_BBQ_Party_fla.girlsgogames_187)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class girlsgogames_187 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 99
//girlsgogames_188 (Hot_BBQ_Party_fla.girlsgogames_188)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class girlsgogames_188 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 100
//girlsgogames_189 (Hot_BBQ_Party_fla.girlsgogames_189)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class girlsgogames_189 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 101
//girlsgogames_190 (Hot_BBQ_Party_fla.girlsgogames_190)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class girlsgogames_190 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 102
//girlsgogames_191 (Hot_BBQ_Party_fla.girlsgogames_191)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class girlsgogames_191 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 103
//girlsgogames_192 (Hot_BBQ_Party_fla.girlsgogames_192)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class girlsgogames_192 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 104
//girlsgogames_194 (Hot_BBQ_Party_fla.girlsgogames_194)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class girlsgogames_194 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 105
//girlsgogames_195 (Hot_BBQ_Party_fla.girlsgogames_195)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class girlsgogames_195 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 106
//girlsgogames_196 (Hot_BBQ_Party_fla.girlsgogames_196)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class girlsgogames_196 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 107
//girlsgogames_197 (Hot_BBQ_Party_fla.girlsgogames_197)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class girlsgogames_197 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 108
//howtoplay_01_338 (Hot_BBQ_Party_fla.howtoplay_01_338)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class howtoplay_01_338 extends MovieClip {
public var filter:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 109
//juegosdechicas_193 (Hot_BBQ_Party_fla.juegosdechicas_193)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class juegosdechicas_193 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 110
//label_319 (Hot_BBQ_Party_fla.label_319)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class label_319 extends MovieClip {
public var flag:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 111
//LanguageSelectPopup_318 (Hot_BBQ_Party_fla.LanguageSelectPopup_318)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class LanguageSelectPopup_318 extends MovieClip {
public var l_se:MovieClip;
public var l_ar:MovieClip;
public var l_arg:MovieClip;
public var l_br:MovieClip;
public var l_cn:MovieClip;
public var l_in:MovieClip;
public var l_tr:MovieClip;
public var l_de:MovieClip;
public var l_my:MovieClip;
public var _blank:MovieClip;
public var l_es:MovieClip;
public var l_en_uk:MovieClip;
public var l_mx:MovieClip;
public var l_fr:MovieClip;
public var l_en_us:MovieClip;
public var l_pl:MovieClip;
public var l_pt:MovieClip;
public var l_ph:MovieClip;
public var l_nl:MovieClip;
public var l_id:MovieClip;
public var l_it:MovieClip;
public var l_jp:MovieClip;
public var l_ru:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 112
//logo_asoyun_com_172 (Hot_BBQ_Party_fla.logo_asoyun_com_172)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class logo_asoyun_com_172 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 113
//logo_game_149 (Hot_BBQ_Party_fla.logo_game_149)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class logo_game_149 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 114
//logo_game_com_my_173 (Hot_BBQ_Party_fla.logo_game_com_my_173)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class logo_game_com_my_173 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 115
//logo_giocaregratis_it_161 (Hot_BBQ_Party_fla.logo_giocaregratis_it_161)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class logo_giocaregratis_it_161 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 116
//logo_laro_com_ph_199 (Hot_BBQ_Party_fla.logo_laro_com_ph_199)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class logo_laro_com_ph_199 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 117
//logo_minigry_pl_171 (Hot_BBQ_Party_fla.logo_minigry_pl_171)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class logo_minigry_pl_171 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 118
//logo_my_games_co_uk_164 (Hot_BBQ_Party_fla.logo_my_games_co_uk_164)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class logo_my_games_co_uk_164 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 119
//logo_oyunlar123_com_185 (Hot_BBQ_Party_fla.logo_oyunlar123_com_185)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class logo_oyunlar123_com_185 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 120
//map_288 (Hot_BBQ_Party_fla.map_288)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class map_288 extends MovieClip {
public var levtwo:MovieClip;
public var levone:MovieClip;
public var levfive:MovieClip;
public var levthree:MovieClip;
public var levfour:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 121
//new_agame_com_146 (Hot_BBQ_Party_fla.new_agame_com_146)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class new_agame_com_146 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 122
//new_clickjogos_com_159 (Hot_BBQ_Party_fla.new_clickjogos_com_159)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class new_clickjogos_com_159 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 123
//new_flashgames_ru_165 (Hot_BBQ_Party_fla.new_flashgames_ru_165)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class new_flashgames_ru_165 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 124
//new_game_co_in_167 (Hot_BBQ_Party_fla.new_game_co_in_167)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class new_game_co_in_167 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 125
//new_games_co_id_169 (Hot_BBQ_Party_fla.new_games_co_id_169)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class new_games_co_id_169 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 126
//new_jeu_fr_155 (Hot_BBQ_Party_fla.new_jeu_fr_155)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class new_jeu_fr_155 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 127
//new_spel_se_162 (Hot_BBQ_Party_fla.new_spel_se_162)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class new_spel_se_162 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 128
//new_spielen_com_157 (Hot_BBQ_Party_fla.new_spielen_com_157)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class new_spielen_com_157 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 129
//new_zapjuegos_com_151 (Hot_BBQ_Party_fla.new_zapjuegos_com_151)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class new_zapjuegos_com_151 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 130
//newagame_co_uk_203 (Hot_BBQ_Party_fla.newagame_co_uk_203)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class newagame_co_uk_203 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 131
//newspel_nl_153 (Hot_BBQ_Party_fla.newspel_nl_153)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class newspel_nl_153 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 132
//RANKREACH_26 (Hot_BBQ_Party_fla.RANKREACH_26)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class RANKREACH_26 extends MovieClip {
public var targetlev:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 133
//Symbol1_337 (Hot_BBQ_Party_fla.Symbol1_337)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class Symbol1_337 extends MovieClip {
public var howtoplay1:MovieClip;
public var howtoplay2:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 134
//time_0_21 (Hot_BBQ_Party_fla.time_0_21)
package Hot_BBQ_Party_fla {
import flash.display.*;
public dynamic class time_0_21 extends MovieClip {
public var timebar:MovieClip;
}
}//package Hot_BBQ_Party_fla
Section 135
//Timeline_66 (Hot_BBQ_Party_fla.Timeline_66)
package Hot_BBQ_Party_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_66 extends MovieClip {
public var moneytxt:TextField;
}
}//package Hot_BBQ_Party_fla
Section 136
//SetCustomState (logic.SetCustomState)
package logic {
import flash.display.*;
import flash.events.*;
import element.*;
import AssistantClass.*;
import main.*;
public class SetCustomState {
private var _spacePosArr:Array;
private var _customIndex:int;
private var _spaceFrame:int;
private var _isCurLevCusAllView:Boolean;
private var _curCusPos:int;
private var _mc:MovieClip;
private var _haveLeaveNum:int;
private var _peopleNum:int;
private var _willArriveCustom:Custom;
private var _currentLevelCustom:Array;
public function SetCustomState(_arg1:MovieClip){
_mc = _arg1;
initDate();
initEvent();
}
private function getRandomPos():int{
var _local1:int = int((Math.random() * _spacePosArr.length));
return (_spacePosArr[_local1]);
}
public function run():void{
if (_isCurLevCusAllView){
return;
};
if (_willArriveCustom.spaceFrames == _spaceFrame){
if (isHaveCusPos()){
_curCusPos = getRandomPos();
setCurCus();
_customIndex++;
if (_customIndex < _peopleNum){
getCurCustom();
_spaceFrame = 0;
} else {
_isCurLevCusAllView = true;
trace("当前关卡人物已全部到位");
};
};
} else {
_spaceFrame++;
};
}
private function removethiscustom(_arg1:EventCustomGoAway):void{
_haveLeaveNum++;
var _local2:Custom = _arg1.custom;
_local2.destroy();
_mc.removeChild(_local2);
(StaticPar_Ingame.customPosition[_local2.cusPosition] as PositionProperty).isEmpty = true;
if (_haveLeaveNum == _peopleNum){
_mc.dispatchEvent(new Event(UI_Ingame.CURRENTLEVELOVER));
};
}
private function getCurCustom():void{
_willArriveCustom = _currentLevelCustom[_customIndex];
_willArriveCustom._pollMc.gotoAndStop(1);
}
private function initDate():void{
_currentLevelCustom = GetXmlData.curLevAllCustom;
_peopleNum = _currentLevelCustom.length;
_spaceFrame = 0;
_customIndex = 0;
_haveLeaveNum = 0;
getCurCustom();
_isCurLevCusAllView = false;
}
private function setCurCus():void{
_mc.addChildAt(_willArriveCustom, 14);
_willArriveCustom.mc = _mc;
_willArriveCustom.x = (StaticPar_Ingame.customPosition[_curCusPos] as PositionProperty).PosX;
_willArriveCustom.y = (StaticPar_Ingame.customPosition[_curCusPos] as PositionProperty).PosY;
_willArriveCustom.cusPosition = _curCusPos;
(StaticPar_Ingame.customPosition[_curCusPos] as PositionProperty).isEmpty = false;
_willArriveCustom.timeStart();
}
private function isHaveCusPos():Boolean{
_spacePosArr = new Array();
var _local1:int;
while (_local1 < StaticPar_Ingame.customPosition.length) {
if ((StaticPar_Ingame.customPosition[_local1] as PositionProperty).isEmpty == true){
_spacePosArr.push(_local1);
};
_local1++;
};
if (_spacePosArr.length == 0){
return (false);
};
return (true);
}
private function initEvent():void{
_mc.addEventListener(EventCustomGoAway.CUSTOMGOAWAY, removethiscustom);
}
public function destroy():void{
_mc.removeEventListener(EventCustomGoAway.CUSTOMGOAWAY, removethiscustom);
}
}
}//package logic
Section 137
//SetFollowMouseFoodPos (logic.SetFollowMouseFoodPos)
package logic {
import flash.display.*;
import flash.events.*;
import utils.*;
import element.*;
import AssistantClass.*;
import main.*;
import flash.ui.*;
public class SetFollowMouseFoodPos {
private var _isCurrentFoodCanSet:Boolean;
private var foollowMouseBellWashCup:MovieClip;
private var _isMouseClickFood:Boolean;
private var curFollowMouseFood:Food;
private var _filter:MovieClip;
private var _isClickOnMC:Boolean;
public var isDragingFood:Boolean;
private var _mc:MovieClip;
private var _griddingWhetherFoodCanSetArray:Array;
private var _followMouseFoodArr:Array;
private var _root:Sprite;
private var currentFoodY:Number;
private var currentFoodX:Number;
public var isBellyWashCanGet:Boolean;
private var _dustbin:MovieClip;
public var isDragingBellyWash:Boolean;
private var _foodOnSaggar:Array;
private var _saggar:MovieClip;
public static const SETFOOD:String = "SETFOOD";
public static var curFoodName:String;
public function SetFollowMouseFoodPos(_arg1:MovieClip, _arg2:MovieClip, _arg3:Array){
_mc = _arg1;
_griddingWhetherFoodCanSetArray = _arg3;
_saggar = _arg2;
_root = (_mc.parent as Sprite);
initDis();
initDate();
}
public function run():void{
if (isDragingFood){
if (_saggar.currentFrame != 2){
_saggar.gotoAndStop(2);
};
resetAllGriddingStateToFrame3();
setFoodPosition();
};
}
private function clickdustbin(_arg1:MouseEvent):void{
_dustbin.gotoAndStop(1);
if (isDragingFood){
SoundsManager.instance.playSound("扔垃圾", 1, 1);
_mc.dispatchEvent(new EventRemoveFood(int((curFollowMouseFood.foodPrice / 5))));
removeCurFood();
} else {
if (isDragingBellyWash){
SoundsManager.instance.playSound("扔垃圾", 1, 1);
_mc.dispatchEvent(new Event(UI_Ingame.BELLYWASHGIVETOPEOPLE));
removeCurBellyWash();
};
};
}
private function getCurrentFollowMouseFoodCoordinate():void{
if (curFollowMouseFood.foodSize == "one"){
currentFoodX = (_root.mouseX - (StaticPar_Ingame.singleGriddingLength / 2));
currentFoodY = (_root.mouseY - (StaticPar_Ingame.singleGriddingWidth / 2));
} else {
if (curFollowMouseFood.foodSize == "twoline"){
currentFoodX = (_root.mouseX - (StaticPar_Ingame.singleGriddingLength / 2));
currentFoodY = (_root.mouseY - StaticPar_Ingame.singleGriddingWidth);
} else {
if (curFollowMouseFood.foodSize == "tworow"){
currentFoodX = (_root.mouseX - StaticPar_Ingame.singleGriddingLength);
currentFoodY = (_root.mouseY - (StaticPar_Ingame.singleGriddingWidth / 2));
} else {
currentFoodX = (_root.mouseX - StaticPar_Ingame.singleGriddingLength);
currentFoodY = (_root.mouseY - StaticPar_Ingame.singleGriddingWidth);
};
};
};
}
public function customdown(_arg1:Custom):void{
if (isDragingFood){
_arg1.getFood(curFollowMouseFood);
if (_arg1.isNeedCurFood == true){
SoundsManager.instance.playSound("给食物", 1, 1);
new AddObjectEffect(_mc, _mc.mouseX, _mc.mouseY);
removeCurFood();
};
} else {
if (isDragingBellyWash){
trace("饮料给顾客");
SoundsManager.instance.playSound("给饮料", 1, 1);
new AddObjectEffect(_mc, _mc.mouseX, _mc.mouseY);
_arg1.getBellyWash();
_mc.dispatchEvent(new Event(UI_Ingame.BELLYWASHGIVETOPEOPLE));
removeCurBellyWash();
};
};
}
private function startSetProperty():void{
SoundsManager.instance.playSound("拿起食物", 1, 1);
curFollowMouseFood.mouseEnabled = false;
isDragingFood = true;
_isMouseClickFood = true;
Mouse.hide();
curFollowMouseFood.startDrag(true);
if (curFollowMouseFood.foodMc.currentFrame == 8){
_filter = curFollowMouseFood.foodMc["filter"];
_filter.visible = false;
};
}
private function clickcurfood(_arg1:MouseEvent):void{
if (UI_Ingame.isPause){
return;
};
if (((isDragingFood) || (isDragingBellyWash))){
return;
};
curFollowMouseFood = (_arg1.target as Food);
if (curFollowMouseFood.isCanOverTurn){
SoundsManager.instance.playSound("食物翻面", 1, 1);
curFollowMouseFood.overTrunFood();
} else {
_mc.setChildIndex(curFollowMouseFood, (_mc.numChildren - 1));
curFollowMouseFood.timeStop();
curFoodName = curFollowMouseFood.lable;
_mc.dispatchEvent(new EventClickedFood(curFollowMouseFood));
startSetProperty();
curFollowMouseFood.setNotEngrossed();
};
}
private function removeCurFood():void{
isDragingFood = false;
_mc.dispatchEvent(new Event(SETFOOD));
curFollowMouseFood.removeEventListener(MouseEvent.CLICK, clickcurfood);
curFollowMouseFood.timeStop();
_mc.removeChild(curFollowMouseFood);
_saggar.gotoAndStop(1);
resetAllGriddingStateToFrame1();
Mouse.show();
curFollowMouseFood.stopDrag();
}
public function clickmc():void{
if (_isMouseClickFood){
_isMouseClickFood = false;
} else {
if (isDragingFood){
_isClickOnMC = true;
resumeProperty();
_isClickOnMC = false;
};
};
}
public function removeMouseObject():void{
if (isDragingFood){
removeCurFood();
} else {
if (isDragingBellyWash){
removeCurBellyWash();
};
};
}
private function setFollowMouseFoodGridding():void{
var _local2:int;
var _local3:PositionProperty;
var _local4:Number;
var _local5:Number;
var _local6:Array;
var _local7:IntPoint;
var _local8:IntPoint;
var _local9:IntPoint;
var _local10:IntPoint;
var _local1:int;
while (_local1 < StaticPar_Ingame.griddingWidthNumber) {
_local2 = 0;
while (_local2 < StaticPar_Ingame.griddingLengthNumber) {
_local3 = StaticPar_Ingame.gridding[_local1][_local2];
_local4 = ((currentFoodX - _local3.PosX) + StaticPar_Ingame.griddingCushionX);
_local5 = ((currentFoodY - _local3.PosY) + StaticPar_Ingame.griddingCushionY);
if ((((((((_local4 >= 0)) && ((_local4 < StaticPar_Ingame.singleGriddingLength)))) && ((_local5 > 0)))) && ((_local5 < StaticPar_Ingame.singleGriddingWidth)))){
_local6 = new Array();
if (_local3.isEmpty == false){
return;
};
if (curFollowMouseFood.foodSize == "one"){
if (_isClickOnMC){
curFollowMouseFood.x = (_local3.PosX + (StaticPar_Ingame.singleGriddingLength / 2));
curFollowMouseFood.y = (_local3.PosY + (StaticPar_Ingame.singleGriddingWidth / 2));
_local7 = new IntPoint(_local1, _local2);
_local6.push(_local7);
} else {
(_griddingWhetherFoodCanSetArray[_local1][_local2] as MovieClip).gotoAndStop(2);
return;
};
} else {
if (curFollowMouseFood.foodSize == "twoline"){
if (_local1 >= 2){
return;
};
if ((StaticPar_Ingame.gridding[(_local1 + 1)][_local2] as PositionProperty).isEmpty == false){
return;
};
if (_isClickOnMC){
curFollowMouseFood.x = (_local3.PosX + (StaticPar_Ingame.singleGriddingLength / 2));
curFollowMouseFood.y = (_local3.PosY + StaticPar_Ingame.singleGriddingWidth);
_local7 = new IntPoint(_local1, _local2);
_local8 = new IntPoint((_local1 + 1), _local2);
_local6.push(_local7);
_local6.push(_local8);
} else {
(_griddingWhetherFoodCanSetArray[_local1][_local2] as MovieClip).gotoAndStop(2);
(_griddingWhetherFoodCanSetArray[(_local1 + 1)][_local2] as MovieClip).gotoAndStop(2);
return;
};
} else {
if (curFollowMouseFood.foodSize == "tworow"){
if (_local2 >= (StaticPar_Ingame.griddingLengthNumber - 1)){
return;
};
if ((StaticPar_Ingame.gridding[_local1][(_local2 + 1)] as PositionProperty).isEmpty == false){
return;
};
if (_isClickOnMC){
curFollowMouseFood.x = (_local3.PosX + StaticPar_Ingame.singleGriddingLength);
curFollowMouseFood.y = (_local3.PosY + (StaticPar_Ingame.singleGriddingWidth / 2));
_local7 = new IntPoint(_local1, _local2);
_local8 = new IntPoint(_local1, (_local2 + 1));
_local6.push(_local7);
_local6.push(_local8);
} else {
(_griddingWhetherFoodCanSetArray[_local1][_local2] as MovieClip).gotoAndStop(2);
(_griddingWhetherFoodCanSetArray[_local1][(_local2 + 1)] as MovieClip).gotoAndStop(2);
return;
};
} else {
if (curFollowMouseFood.foodSize == "three"){
if ((((_local1 >= 2)) || ((_local2 >= (StaticPar_Ingame.griddingLengthNumber - 1))))){
return;
};
if (((((StaticPar_Ingame.gridding[_local1][(_local2 + 1)] as PositionProperty).isEmpty == false)) || (((StaticPar_Ingame.gridding[(_local1 + 1)][(_local2 + 1)] as PositionProperty).isEmpty == false)))){
return;
};
if (_isClickOnMC){
curFollowMouseFood.x = (_local3.PosX + StaticPar_Ingame.singleGriddingLength);
curFollowMouseFood.y = (_local3.PosY + StaticPar_Ingame.singleGriddingWidth);
_local7 = new IntPoint(_local1, _local2);
_local8 = new IntPoint(_local1, (_local2 + 1));
_local9 = new IntPoint((_local1 + 1), (_local2 + 1));
_local6.push(_local7);
_local6.push(_local8);
_local6.push(_local9);
} else {
(_griddingWhetherFoodCanSetArray[_local1][_local2] as MovieClip).gotoAndStop(2);
(_griddingWhetherFoodCanSetArray[_local1][(_local2 + 1)] as MovieClip).gotoAndStop(2);
(_griddingWhetherFoodCanSetArray[(_local1 + 1)][(_local2 + 1)] as MovieClip).gotoAndStop(2);
return;
};
} else {
if (curFollowMouseFood.foodSize == "four"){
if ((((_local1 >= 2)) || ((_local2 >= (StaticPar_Ingame.griddingLengthNumber - 1))))){
return;
};
if (((((((StaticPar_Ingame.gridding[(_local1 + 1)][_local2] as PositionProperty).isEmpty == false)) || (((StaticPar_Ingame.gridding[_local1][(_local2 + 1)] as PositionProperty).isEmpty == false)))) || (((StaticPar_Ingame.gridding[(_local1 + 1)][(_local2 + 1)] as PositionProperty).isEmpty == false)))){
return;
};
if (_isClickOnMC){
curFollowMouseFood.x = (_local3.PosX + StaticPar_Ingame.singleGriddingLength);
curFollowMouseFood.y = (_local3.PosY + StaticPar_Ingame.singleGriddingWidth);
_local7 = new IntPoint(_local1, _local2);
_local8 = new IntPoint((_local1 + 1), _local2);
_local9 = new IntPoint(_local1, (_local2 + 1));
_local10 = new IntPoint((_local1 + 1), (_local2 + 1));
_local6.push(_local7);
_local6.push(_local8);
_local6.push(_local9);
_local6.push(_local10);
} else {
(_griddingWhetherFoodCanSetArray[_local1][_local2] as MovieClip).gotoAndStop(2);
(_griddingWhetherFoodCanSetArray[(_local1 + 1)][_local2] as MovieClip).gotoAndStop(2);
(_griddingWhetherFoodCanSetArray[_local1][(_local2 + 1)] as MovieClip).gotoAndStop(2);
(_griddingWhetherFoodCanSetArray[(_local1 + 1)][(_local2 + 1)] as MovieClip).gotoAndStop(2);
return;
};
};
};
};
};
};
_isCurrentFoodCanSet = true;
if (!curFollowMouseFood.isSetOnGriddingEver){
curFollowMouseFood.isSetOnGriddingEver = true;
};
curFollowMouseFood.includeGridding = _local6;
curFollowMouseFood.setEngrossed();
return;
};
_local2++;
};
_local1++;
};
}
public function setFoodPosition():void{
getCurrentFollowMouseFoodCoordinate();
setFollowMouseFoodGridding();
}
private function resumeProperty():void{
SoundsManager.instance.playSound("放下烤", 1, 1);
_isCurrentFoodCanSet = false;
setFoodPosition();
if (_isCurrentFoodCanSet){
curFollowMouseFood.mouseEnabled = true;
isDragingFood = false;
curFollowMouseFood.addEventListener(MouseEvent.CLICK, clickcurfood);
_mc.dispatchEvent(new Event(SETFOOD));
curFollowMouseFood.timeGoOn();
_saggar.gotoAndStop(1);
resetAllGriddingStateToFrame1();
Mouse.show();
curFollowMouseFood.stopDrag();
if (curFollowMouseFood.foodMc.currentFrame == 8){
_filter.visible = true;
};
};
}
private function initDustBin():void{
_dustbin = _mc["dustbin"];
_dustbin.gotoAndStop(1);
_dustbin.addEventListener(MouseEvent.CLICK, clickdustbin);
_dustbin.addEventListener(MouseEvent.ROLL_OVER, dustbinrollover);
_dustbin.addEventListener(MouseEvent.ROLL_OUT, dustbinrollout);
}
public function getFollowMouseFoodAndClick(_arg1:String):void{
var _local3:Food;
_arg1 = (_arg1 + "_food");
if (isDragingFood){
if (curFollowMouseFood.isSetOnGriddingEver){
return;
};
if (curFollowMouseFood.lable == _arg1){
removeCurFood();
return;
};
curFollowMouseFood.removeEventListener(MouseEvent.CLICK, clickcurfood);
_mc.removeChild(curFollowMouseFood);
};
var _local2:int;
while (_local2 < StaticPar_Ingame.allFoods.length) {
_local3 = (StaticPar_Ingame.allFoods[_local2] as Food);
if (_local3.lable == _arg1){
curFollowMouseFood = Attach2.getFood(_local3.lable, _local3.foodSize, _local3.hargCookedTimes, _local3.cookedTimes, _local3.searedTimes, _local3.foodPrice);
_followMouseFoodArr.push(curFollowMouseFood);
clickfood();
return;
};
_local2++;
};
trace("找不到这个食物:SetFollowFoodPos.getFollowMouseFood");
}
public function removeCurBellyWash():void{
isDragingBellyWash = false;
_mc.removeChild(foollowMouseBellWashCup);
Mouse.show();
foollowMouseBellWashCup.stopDrag();
}
private function resetAllGriddingStateToFrame1():void{
var _local2:int;
var _local1:int;
while (_local1 < StaticPar_Ingame.griddingWidthNumber) {
_local2 = 0;
while (_local2 < StaticPar_Ingame.griddingLengthNumber) {
(_griddingWhetherFoodCanSetArray[_local1][_local2] as MovieClip).gotoAndStop(1);
_local2++;
};
_local1++;
};
}
private function initDis():void{
initDustBin();
if (StaticPar_Ingame.bellyWashLev == 1){
foollowMouseBellWashCup = Attach.getMovieClip("cokecup");
} else {
if (StaticPar_Ingame.bellyWashLev == 2){
foollowMouseBellWashCup = Attach.getMovieClip("syrupcup");
} else {
if (StaticPar_Ingame.bellyWashLev == 3){
foollowMouseBellWashCup = Attach.getMovieClip("alcoholcup");
};
};
};
}
private function resetAllGriddingStateToFrame3():void{
var _local2:int;
var _local1:int;
while (_local1 < StaticPar_Ingame.griddingWidthNumber) {
_local2 = 0;
while (_local2 < StaticPar_Ingame.griddingLengthNumber) {
(_griddingWhetherFoodCanSetArray[_local1][_local2] as MovieClip).gotoAndStop(3);
_local2++;
};
_local1++;
};
}
private function initDate():void{
_isCurrentFoodCanSet = false;
isDragingFood = false;
isDragingBellyWash = false;
isBellyWashCanGet = false;
_isMouseClickFood = false;
_isClickOnMC = false;
_foodOnSaggar = new Array();
_followMouseFoodArr = new Array();
}
private function clickfood():void{
startSetProperty();
_mc.addChild(curFollowMouseFood);
}
private function dustbinrollover(_arg1:MouseEvent):void{
if (((isDragingFood) || (isDragingBellyWash))){
_dustbin.gotoAndStop(2);
};
}
public function clickBellyWash():void{
foollowMouseBellWashCup.mouseEnabled = false;
isDragingBellyWash = true;
Mouse.hide();
foollowMouseBellWashCup.startDrag(true);
_mc.addChild(foollowMouseBellWashCup);
}
public function destroy():void{
var _local2:Food;
_dustbin.removeEventListener(MouseEvent.CLICK, clickdustbin);
_dustbin.removeEventListener(MouseEvent.ROLL_OVER, dustbinrollover);
_dustbin.removeEventListener(MouseEvent.ROLL_OUT, dustbinrollout);
var _local1:int;
while (_local1 < _followMouseFoodArr.length) {
_local2 = _followMouseFoodArr[_local1];
_local2.destroy();
_local2.removeEventListener(MouseEvent.CLICK, clickcurfood);
if (_local2.parent == _mc){
_mc.removeChild(_local2);
};
_local1++;
};
}
private function dustbinrollout(_arg1:MouseEvent):void{
_dustbin.gotoAndStop(1);
}
}
}//package logic
Section 138
//AbstractScreen (main.AbstractScreen)
package main {
import flash.display.*;
import flash.utils.*;
public class AbstractScreen {
protected var _root:Sprite;
public function AbstractScreen(_arg1:Sprite){
if (getQualifiedClassName(this) == "main::AbstractScreen"){
throw (new ArgumentError("can't be constructed"));
};
_root = _arg1;
}
public function destroy():void{
throw (new Error("Abstract Method!"));
}
}
}//package main
Section 139
//Interlude (main.Interlude)
package main {
import flash.display.*;
import flash.events.*;
import utils.*;
public class Interlude {
private var _nextUIEvent:String;
private var interludeMovie:MovieClip;
public static var root:Sprite;
public function Interlude(_arg1:String):void{
_nextUIEvent = _arg1;
interludeMovie = Attach.getMovieClip("interlude");
root.addChild(interludeMovie);
interludeMovie.addFrameScript(34, dispatchEvent);
interludeMovie.addFrameScript(46, playopensound);
interludeMovie.addFrameScript((interludeMovie.totalFrames - 1), stopAndRemove);
SoundsManager.instance.playSound("切换帘关", 1, 1);
}
private function dispatchEvent():void{
root.dispatchEvent(new Event(_nextUIEvent));
root.setChildIndex(interludeMovie, (root.numChildren - 1));
}
private function playopensound():void{
SoundsManager.instance.playSound("切换帘开", 1, 1);
}
private function stopAndRemove():void{
root.dispatchEvent(new Event(Manager.INTERLUDEMOVIEOVER));
interludeMovie.stop();
interludeMovie.addFrameScript(34, null);
interludeMovie.addFrameScript(46, null);
interludeMovie.addFrameScript((interludeMovie.totalFrames - 1), null);
root.removeChild(interludeMovie);
}
}
}//package main
Section 140
//Manager (main.Manager)
package main {
import flash.display.*;
import flash.events.*;
import utils.*;
import AssistantClass.*;
public class Manager {
private var _root:Sprite;
private var _screen:AbstractScreen;
private var xmlManager:XmlManager;
public static const MAINMENU:String = "MAINMENU";
public static const LEVELMAP_START:String = "LEVELMAP_START";
public static const MAINMENU_STARTGAME:String = "MAINMENU_STARTGAME";
public static const XMLLOADING_COMPLETE:String = "XMLLOADING_COMPLETE";
public static const GAME_COMPLETE:String = "GAME_COMPLETE";
public static const MAINMENU_HOWTOPLAY:String = "MAINMENU_HOWTOPLAY";
public static const COERCE_HOWTOPLAY:String = "COERCE_HOWTOPLAY";
public static const LOADING_COMPLETE:String = "LOADING_COMPLETE";
public static const LEVELMAP_SHOP:String = "LEVELMAP_SHOP";
public static const INTERLUDEMOVIEOVER:String = "INTERLUDEMOVIEOVER";
public function Manager(_arg1:Sprite){
_root = _arg1;
Interlude.root = _root;
init();
}
private function coercehowtoplay(_arg1:Event):void{
_screen.destroy();
_screen = new UI_HowToPlay_Coerce(_root);
}
private function initXML():void{
xmlManager = new XmlManager();
}
private function initEvent():void{
xmlManager.addEventListener(XMLLOADING_COMPLETE, xmlLoadingComplete);
_root.addEventListener(MAINMENU, mainmenu);
_root.addEventListener(MAINMENU_STARTGAME, mainmenu_startgame);
_root.addEventListener(MAINMENU_HOWTOPLAY, mainmenu_howtoplay);
_root.addEventListener(COERCE_HOWTOPLAY, coercehowtoplay);
_root.addEventListener(LEVELMAP_SHOP, levelmap_shop);
_root.addEventListener(LEVELMAP_START, levelmap_start);
_root.addEventListener(GAME_COMPLETE, gamecomplete);
}
private function mainmenu_startgame(_arg1:Event):void{
_screen.destroy();
_screen = new UI_LevelMap(_root);
}
private function initAllFood():void{
var _local3:XML;
var _local4:String;
var _local5:String;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:Number;
var _local1:Array = new Array();
var _local2:int;
while (_local2 < XmlManager.xml["food"].length()) {
_local3 = XmlManager.xml["food"][_local2];
_local4 = _local3.attribute("name");
_local5 = _local3.attribute("foodsize");
_local6 = int(_local3.attribute("harfcookedtimes"));
_local7 = int(_local3.attribute("cookedtimes"));
_local8 = int(_local3.attribute("searedtimes"));
_local9 = Number(_local3.attribute("foodprice"));
_local1.push(Attach2.getFood(_local4, _local5, _local6, _local7, _local8, _local9));
_local2++;
};
StaticPar_Ingame.allFoods = _local1;
}
private function init():void{
initXML();
initEvent();
}
private function gamecomplete(_arg1:Event):void{
_screen.destroy();
_screen = new UI_GameComplete(_root);
}
private function levelmap_shop(_arg1:Event):void{
_screen.destroy();
_screen = new UI_Shop(_root);
}
private function mainmenu(_arg1:Event):void{
_screen.destroy();
_screen = new UI_MainMenu(_root);
}
private function levelmap_start(_arg1:Event):void{
_screen.destroy();
_screen = new UI_Ingame(_root);
}
private function xmlLoadingComplete(_arg1:Event):void{
initAllFood();
_screen = new UI_FirstMainMenu(_root);
}
private function mainmenu_howtoplay(_arg1:Event):void{
_screen.destroy();
_screen = new UI_HowToPlay(_root);
}
}
}//package main
Section 141
//UI_FirstMainMenu (main.UI_FirstMainMenu)
package main {
import flash.display.*;
import flash.events.*;
import utils.*;
import zlong.spilSystemTool.*;
import AssistantClass.*;
public class UI_FirstMainMenu extends AbstractScreen {
private var _quality:MovieClip;
private var _start:MovieClip;
private var _soundsCd:MovieClip;
private var _howToPlay:MovieClip;
private var _musicCd:MovieClip;
private var _mc:MovieClip;
public function UI_FirstMainMenu(_arg1:Sprite){
GoogleEvent.instance.gaTrackEvent("Mainscreen viewed", true);
super(_arg1);
initDis();
}
private function chooseQuality():void{
switch ((StaticLevData.qualityClickedCounts % 3)){
case 0:
_quality.gotoAndStop(1);
_root.stage.quality = StageQuality.BEST;
break;
case 1:
_quality.gotoAndStop(2);
_root.stage.quality = StageQuality.HIGH;
break;
case 2:
_quality.gotoAndStop(3);
_root.stage.quality = StageQuality.LOW;
break;
};
}
private function initSound():void{
if (Cookie.instance.sound["sound"]){
SoundsManager.instance.Enabled = true;
_soundsCd.gotoAndStop(1);
} else {
SoundsManager.instance.Enabled = false;
_soundsCd.gotoAndStop(2);
};
if (Cookie.instance.sound["music"]){
_musicCd.gotoAndStop(1);
} else {
SoundsManager.instance.MusicEnable = false;
_musicCd.gotoAndStop(2);
};
}
override public function destroy():void{
removeEvent();
_root.removeChild(_mc);
}
private function initElement():void{
_mc.stop();
_quality = _mc["quality"];
_musicCd = _mc["music"];
_soundsCd = _mc["sound"];
_quality.gotoAndStop(1);
_start = _mc["start"];
_howToPlay = _mc["howtoplay"];
initButtonEvent();
initSound();
if (SoundsManager.instance.currentMusic_sc != "BBQ_menu"){
SoundsManager.instance.playMusic("BBQ_menu", 1);
};
}
private function clickmusic(_arg1:MouseEvent):void{
if (_musicCd.currentFrame == 1){
Cookie.instance.sound["music"] = false;
SoundsManager.instance.MusicEnable = false;
_musicCd.gotoAndStop(2);
} else {
if (_musicCd.currentFrame == 2){
Cookie.instance.sound["music"] = true;
SoundsManager.instance.MusicEnable = true;
_musicCd.gotoAndStop(1);
if (SoundsManager.instance.currentMusic_sc != "BBQ_menu"){
SoundsManager.instance.playMusic("BBQ_menu", 1);
};
};
};
}
private function clickquality(_arg1:MouseEvent):void{
StaticLevData.qualityClickedCounts++;
chooseQuality();
}
private function clickhowtoplay(_arg1:MouseEvent):void{
new Interlude(Manager.MAINMENU_HOWTOPLAY);
}
private function clickstart(_arg1:MouseEvent):void{
if (Cookie.instance.isFirst["isFirst"]){
StaticFunAndVar.howToPlayPar = "firstTimesHowToPlay";
Cookie.instance.isFirst["isFirst"] = false;
new Interlude(Manager.COERCE_HOWTOPLAY);
} else {
new Interlude(Manager.MAINMENU_STARTGAME);
};
}
private function clicksounds(_arg1:MouseEvent):void{
if (_soundsCd.currentFrame == 1){
Cookie.instance.sound["sound"] = false;
SoundsManager.instance.Enabled = false;
_soundsCd.gotoAndStop(2);
} else {
if (_soundsCd.currentFrame == 2){
Cookie.instance.sound["sound"] = true;
SoundsManager.instance.Enabled = true;
_soundsCd.gotoAndStop(1);
};
};
}
private function removeEvent():void{
_quality.removeEventListener(MouseEvent.CLICK, clickquality);
_start.removeEventListener(MouseEvent.CLICK, clickstart);
_howToPlay.removeEventListener(MouseEvent.CLICK, clickhowtoplay);
_quality.removeEventListener(MouseEvent.CLICK, clickquality);
_soundsCd.removeEventListener(MouseEvent.CLICK, clicksounds);
}
private function initDis():void{
_mc = Attach.getMovieClip("UI_FIRSTMAIN");
_root.addChild(_mc);
_mc.addFrameScript((_mc.totalFrames - 1), initElement);
}
private function initButtonEvent():void{
_start.addEventListener(MouseEvent.CLICK, clickstart);
_howToPlay.addEventListener(MouseEvent.CLICK, clickhowtoplay);
_musicCd.addEventListener(MouseEvent.CLICK, clickmusic);
_quality.addEventListener(MouseEvent.CLICK, clickquality);
_soundsCd.addEventListener(MouseEvent.CLICK, clicksounds);
}
}
}//package main
Section 142
//UI_GameComplete (main.UI_GameComplete)
package main {
import flash.display.*;
import flash.events.*;
import utils.*;
public class UI_GameComplete extends AbstractScreen {
private var _mc:MovieClip;
private var _mainMenu:MovieClip;
public function UI_GameComplete(_arg1:Sprite){
super(_arg1);
initDis();
initEvent();
SoundsManager.instance.stopMusic();
SoundsManager.instance.playSound("BBQ_win", 1, 1);
}
private function clickmainmenu(_arg1:MouseEvent):void{
new Interlude(Manager.MAINMENU);
}
private function initEvent():void{
_mainMenu.addEventListener(MouseEvent.CLICK, clickmainmenu);
}
override public function destroy():void{
SoundsManager.instance.stopSound("BBQ_win");
_mainMenu.removeEventListener(MouseEvent.CLICK, clickmainmenu);
_root.removeChild(_mc);
}
private function initDis():void{
_mc = Attach.getMovieClip("UI_GAMECOMPLETE");
_root.addChild(_mc);
_mainMenu = _mc["mainmenu"];
}
}
}//package main
Section 143
//UI_HowToPlay (main.UI_HowToPlay)
package main {
import flash.display.*;
import flash.events.*;
import utils.*;
import AssistantClass.*;
public class UI_HowToPlay extends AbstractScreen {
private var _howToPlay:MovieClip;
private var _back:MovieClip;
private var _right:ExtButton;
private var _left:ExtButton;
private var _howToPlay2:MovieClip;
private var _mc:MovieClip;
private var _howToPlay1:MovieClip;
private var _curHowToPlay:MovieClip;
public function UI_HowToPlay(_arg1:Sprite){
super(_arg1);
initDis();
initButton();
initEvent();
}
override public function destroy():void{
removeEvent();
_root.removeChild(_mc);
}
private function clickleft(_arg1:MouseEvent):void{
_left.enable = false;
_left.gotoAndStop(4);
_right.enable = true;
_right.gotoAndStop(1);
if (_howToPlay.currentFrame != 1){
_howToPlay.gotoAndStop(1);
};
_curHowToPlay = _howToPlay1;
}
private function clickright(_arg1:MouseEvent):void{
_right.enable = false;
_right.gotoAndStop(4);
_left.enable = true;
_left.gotoAndStop(1);
if (_howToPlay.currentFrame != 2){
_howToPlay.gotoAndStop(2);
};
_curHowToPlay = _howToPlay2;
}
private function initDis():void{
_mc = Attach.getMovieClip("UI_HOWTOPLAY");
_root.addChild(_mc);
}
private function inithowtoplay2():void{
_howToPlay2 = _howToPlay["howtoplay2"];
_curHowToPlay = _howToPlay2;
}
private function initButton():void{
_howToPlay = _mc["howtoplay"];
_howToPlay.gotoAndStop(1);
_howToPlay.addFrameScript(0, inithowtoplay1);
_howToPlay.addFrameScript(1, inithowtoplay2);
_left = _mc["left"];
_right = _mc["right"];
_left.enable = false;
_left.gotoAndStop(4);
_back = _mc["back"];
}
private function clickback(_arg1:MouseEvent):void{
_curHowToPlay.stop();
new Interlude(Manager.MAINMENU);
}
private function inithowtoplay1():void{
_howToPlay1 = _howToPlay["howtoplay1"];
_curHowToPlay = _howToPlay1;
}
private function removeEvent():void{
_left.removeEventListener(MouseEvent.CLICK, clickleft);
_right.removeEventListener(MouseEvent.CLICK, clickright);
_back.removeEventListener(MouseEvent.CLICK, clickback);
}
private function initEvent():void{
_left.addEventListener(MouseEvent.CLICK, clickleft);
_right.addEventListener(MouseEvent.CLICK, clickright);
_back.addEventListener(MouseEvent.CLICK, clickback);
}
}
}//package main
Section 144
//UI_HowToPlay_Coerce (main.UI_HowToPlay_Coerce)
package main {
import flash.display.*;
import flash.events.*;
import utils.*;
import AssistantClass.*;
public class UI_HowToPlay_Coerce extends AbstractScreen {
private var _howToPlay:MovieClip;
private var _howToPlay1:MovieClip;
private var _howToPlay2:MovieClip;
private var _play:MovieClip;
private var _mc:MovieClip;
private var _curHowToPlay:MovieClip;
public function UI_HowToPlay_Coerce(_arg1:Sprite){
super(_arg1);
initDis();
initButton();
initEvent();
}
private function initCloseButton():void{
var _local1:MovieClip = _mc["back"];
_local1.visible = false;
_play = _mc["playgame"];
_play.x = _local1.x;
_play.y = _local1.y;
}
private function inithowtoplay2():void{
_howToPlay2 = _howToPlay["howtoplay2"];
_curHowToPlay = _howToPlay2;
}
private function initDis():void{
_mc = Attach.getMovieClip("UI_HOWTOPLAY");
_root.addChild(_mc);
}
private function initButton():void{
_howToPlay = _mc["howtoplay"];
_howToPlay.addFrameScript(0, inithowtoplay1);
_howToPlay.addFrameScript(1, inithowtoplay2);
if (StaticFunAndVar.howToPlayPar == "firstTimesHowToPlay"){
_howToPlay.gotoAndStop(1);
} else {
if (StaticFunAndVar.howToPlayPar == "howtousebw"){
_howToPlay.gotoAndStop(2);
};
};
initVisibleFalseButton();
initCloseButton();
}
private function initVisibleFalseButton():void{
var _local1:MovieClip = _mc["left"];
var _local2:MovieClip = _mc["right"];
_local1.visible = false;
_local2.visible = false;
}
override public function destroy():void{
_play.removeEventListener(MouseEvent.CLICK, clickback);
_root.removeChild(_mc);
}
private function inithowtoplay1():void{
_howToPlay1 = _howToPlay["howtoplay1"];
_curHowToPlay = _howToPlay1;
}
private function clickback(_arg1:MouseEvent):void{
_curHowToPlay.stop();
new Interlude(Manager.MAINMENU_STARTGAME);
}
private function initEvent():void{
_play.addEventListener(MouseEvent.CLICK, clickback);
}
}
}//package main
Section 145
//UI_Ingame (main.UI_Ingame)
package main {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import utils.*;
import zlong.spilSystemTool.*;
import element.*;
import AssistantClass.*;
import flash.geom.*;
import flash.utils.*;
import logic.*;
public class UI_Ingame extends AbstractScreen {
private var _targetText:TextField;
private var _isCurLevPass:Boolean;
private var _mc:MovieClip;
private var _setFollowFoodPos:SetFollowMouseFoodPos;
private var _curLevMoney:int;
private var _targetHintLev:MovieClip;
private var _reachTargetHint:MovieClip;
private var _bellWashOkEffect:MovieClip;
private var _resume:MovieClip;
private var _moveFramesAfterJump:int;
private var _framesPerJump:int;
private var _curLevAllTargetArr:Array;
private var _targetMc:MovieClip;
private var _currentLevel:int;
private var _backPictrue:MovieClip;
private var _bellyWashSprite:MovieClip;
private var _saggar:MovieClip;
private var _targetok:MovieClip;
private var _moneyText:TextField;
private var _levelMap:MovieClip;
private var _curLevLev:int;
private var _curLevFrames:int;
private var _time:MovieClip;
private var _target:MovieClip;
private var _griddingWhetherFoodCanSetArray:Array;
private var _viewedFoodArray:Array;
private var _timeBar:MovieClip;
private var _bellMove:MovieClip;
private var _alarmClock:MovieClip;
private var _bell:MovieClip;
private var _pauseMc:MovieClip;
private var _setCustomState:SetCustomState;
private var _pause:MovieClip;
public static var BELLYWASHGIVETOPEOPLE:String = "BELLYWASHGIVETOPEOPLE";
public static var isPause:Boolean;
public static var CURRENTLEVELOVER:String = "CURRENTLEVELOVER";
public function UI_Ingame(_arg1:Sprite){
super(_arg1);
initData();
initDis();
initEvent();
}
private function playMusic1():void{
if (SoundsManager.instance.currentMusic_sc != "BBQ_level1"){
SoundsManager.instance.fadeInMusic("BBQ_level1");
};
}
private function playMusic2():void{
if (SoundsManager.instance.currentMusic_sc != "BBQ_level2"){
SoundsManager.instance.fadeInMusic("BBQ_level2");
};
}
override public function destroy():void{
var _local2:MovieClip;
_setFollowFoodPos.destroy();
_setCustomState.destroy();
_pause.removeEventListener(MouseEvent.CLICK, clickpause);
_root.removeEventListener(Manager.INTERLUDEMOVIEOVER, inittargetmc);
_mc.removeEventListener(BELLYWASHGIVETOPEOPLE, bellywashgivetopeople);
_mc.removeEventListener(EventRemoveFood.REDUCEMONEY, reducemoney);
_mc.removeEventListener(Event.ENTER_FRAME, run);
_mc.removeEventListener(MouseEvent.CLICK, clickmc);
_mc.removeEventListener(EventClickCus.CUSTOM_DOWN, customdown);
_mc.removeEventListener(EventGetMoney.GETMONEY, getmoney);
_mc.removeEventListener(CURRENTLEVELOVER, complete);
_alarmClock.removeEventListener(MouseEvent.CLICK, clickalarmclock);
if (_bellyWashSprite != null){
_bellyWashSprite.removeEventListener(MouseEvent.CLICK, clickwashsprite);
_mc.removeChild(_bellyWashSprite);
_mc.removeChild(_bell);
_mc.removeChild(_bellWashOkEffect);
};
var _local1:int;
while (_local1 < _viewedFoodArray.length) {
_local2 = _viewedFoodArray[_local1];
_local2.removeEventListener(MouseEvent.CLICK, clickfood);
_local2.removeEventListener(MouseEvent.MOUSE_OVER, overfood);
_local2.removeEventListener(MouseEvent.MOUSE_OUT, outfood);
_mc.removeChild(_local2);
_local1++;
};
if (_pauseMc != null){
_mc.removeChild(_pauseMc);
};
_mc.removeChild(_saggar);
_mc.removeChild(_backPictrue);
_root.removeChild(_mc);
}
private function inittimebar():void{
_timeBar = _time["timebar"];
_timeBar.stop();
_timeBar.addFrameScript(85, _alarmClock.play);
_timeBar.addFrameScript((_timeBar.totalFrames - 1), gameOver);
}
private function reducemoney(_arg1:EventRemoveFood):void{
_curLevMoney = (_curLevMoney - _arg1.money);
_moneyText.text = _curLevMoney.toString();
new DurativeScore(_mc, _arg1.money);
}
private function initokbutton():void{
_targetMc.stop();
_targetok = _targetMc["ok"];
_targetok.addEventListener(MouseEvent.CLICK, clickok);
}
private function clickmc(_arg1:MouseEvent):void{
_setFollowFoodPos.clickmc();
}
private function bellwashcanget():void{
_bellMove.stop();
_setFollowFoodPos.isBellyWashCanGet = true;
_bellWashOkEffect.gotoAndPlay(1);
_bellyWashSprite.gotoAndStop(1);
}
private function getmoney(_arg1:EventGetMoney):void{
var _local2:int = _arg1.moneyNumber;
_curLevMoney = (_curLevMoney + _local2);
_moneyText.text = _curLevMoney.toString();
if (_curLevMoney >= _curLevAllTargetArr[2]){
if (_curLevLev >= 3){
return;
};
_curLevLev = 3;
_mc.setChildIndex(_reachTargetHint, (_mc.numChildren - 1));
_reachTargetHint.gotoAndPlay(1);
_targetHintLev.gotoAndStop(3);
_isCurLevPass = true;
} else {
if (_curLevMoney >= _curLevAllTargetArr[1]){
if (_curLevLev >= 2){
return;
};
_curLevLev = 2;
_mc.setChildIndex(_reachTargetHint, (_mc.numChildren - 1));
_reachTargetHint.gotoAndPlay(1);
_targetHintLev.gotoAndStop(2);
_isCurLevPass = true;
_target.gotoAndPlay(31);
_targetText.text = _curLevAllTargetArr[2].toString();
} else {
if (_curLevMoney >= _curLevAllTargetArr[0]){
if (_curLevLev >= 1){
return;
};
_curLevLev = 1;
_mc.setChildIndex(_reachTargetHint, (_mc.numChildren - 1));
_reachTargetHint.gotoAndPlay(1);
_targetHintLev.gotoAndStop(1);
_isCurLevPass = true;
_target.gotoAndPlay(11);
_targetText.text = _curLevAllTargetArr[1].toString();
};
};
};
}
private function overfood(_arg1:MouseEvent):void{
(_arg1.target as MovieClip).gotoAndStop(2);
}
private function initCurLevData():void{
StaticPar_Ingame.initObjectLev();
StaticPar_Ingame.initSaggarGriddingData();
StaticPar_Ingame.initSaggarGridding();
StaticPar_Ingame.initCustomPosition();
}
private function complete(_arg1:Event):void{
gameOver();
}
private function initlevdata():void{
var _local1:TextField = _targetMc["levdata"];
_local1.selectable = false;
_local1.text = _currentLevel.toString();
}
private function addPauseMc():void{
_pauseMc = Attach.getMovieClip("UI_PAUSE");
_mc.addChild(_pauseMc);
_pauseMc.addFrameScript(31, stopAndInitEvent);
_pauseMc.addFrameScript((_pauseMc.totalFrames - 1), stopAndRemvoePauseMc);
}
private function initFixElement():void{
_target = _mc["target"];
_target.addFrameScript(9, _target.stop);
_target.addFrameScript(29, _target.stop);
_target.addFrameScript((_target.totalFrames - 1), _target.stop);
_targetText = _mc["targettext"];
_targetText.text = _curLevAllTargetArr[0].toString();
_moneyText = _mc["moneytext"];
_time = _mc["time"];
_time.stop();
_time.addFrameScript(0, inittimebar);
_pause = _mc["pause"];
_pause.addEventListener(MouseEvent.CLICK, clickpause);
_alarmClock = _mc["alarmclock"];
_alarmClock.stop();
_reachTargetHint = _mc["hint"];
initHint();
}
private function initDis():void{
_mc = Attach.getMovieClip("UI_INGAME");
_root.addChild(_mc);
insertBackPictrue();
initFixElement();
initSaggar();
initFood();
insertBellyWash();
_setFollowFoodPos = new SetFollowMouseFoodPos(_mc, _saggar, _griddingWhetherFoodCanSetArray);
_setCustomState = new SetCustomState(_mc);
}
private function clickok(_arg1:MouseEvent):void{
_targetMc.gotoAndPlay(50);
}
private function stopAndRemvoePauseMc():void{
_pauseMc.stop();
_mc.removeChild(_pauseMc);
_pauseMc = null;
if (((_bell) && (!((_bellMove.currentFrame == _bellMove.totalFrames))))){
_bellMove.play();
};
isPause = false;
}
private function initEvent():void{
_root.addEventListener(Manager.INTERLUDEMOVIEOVER, inittargetmc);
_mc.addEventListener(BELLYWASHGIVETOPEOPLE, bellywashgivetopeople);
_mc.addEventListener(EventRemoveFood.REDUCEMONEY, reducemoney);
_mc.addEventListener(Event.ENTER_FRAME, run);
_mc.addEventListener(MouseEvent.CLICK, clickmc);
_mc.addEventListener(EventClickCus.CUSTOM_DOWN, customdown);
_mc.addEventListener(EventGetMoney.GETMONEY, getmoney);
_mc.addEventListener(CURRENTLEVELOVER, complete);
_alarmClock.addEventListener(MouseEvent.CLICK, clickalarmclock);
}
private function clickpause(_arg1:MouseEvent):void{
if (((_setFollowFoodPos.isDragingFood) || (_setFollowFoodPos.isDragingBellyWash))){
return;
};
isPause = true;
if (_bell){
_bellMove.stop();
};
addPauseMc();
}
private function stopAndInitEvent():void{
_pauseMc.stop();
_resume = _pauseMc["resume"];
_levelMap = _pauseMc["levelmap"];
_resume.addEventListener(MouseEvent.CLICK, clickresume);
_levelMap.addEventListener(MouseEvent.CLICK, clicklevelmap);
}
private function run(_arg1:Event):void{
var _local2:int;
if (isPause){
return;
};
if (_moveFramesAfterJump == _framesPerJump){
_local2 = _timeBar.currentFrame;
++_local2;
_timeBar.gotoAndStop(_local2);
_moveFramesAfterJump = 0;
};
_setFollowFoodPos.run();
_setCustomState.run();
_moveFramesAfterJump++;
}
private function initSaggar():void{
var _local2:Array;
var _local3:int;
var _local4:String;
var _local5:MovieClip;
_saggar = Attach.getMovieClip(("saggar" + StaticPar_Ingame.griddingLengthNumber));
_saggar.x = 210;
_saggar.y = 395;
_saggar.gotoAndStop(1);
_mc.addChild(_saggar);
var _local1:int;
while (_local1 < StaticPar_Ingame.griddingWidthNumber) {
_local2 = new Array();
_local3 = 0;
while (_local3 < StaticPar_Ingame.griddingLengthNumber) {
_local4 = (("gridding" + _local1) + _local3);
_local5 = _saggar[_local4];
_local5.gotoAndStop(1);
_local2.push(_local5);
_local3++;
};
_griddingWhetherFoodCanSetArray.push(_local2);
_local1++;
};
}
private function customdown(_arg1:EventClickCus):void{
if (isPause){
return;
};
var _local2:Custom = _arg1.clickedCustom;
_setFollowFoodPos.customdown(_local2);
}
private function initFood():void{
var _local4:int;
var _local5:MovieClip;
var _local1:Array = GetXmlData.curLevAllFoodsArr;
var _local2:int;
while (_local2 < _local1.length) {
_local4 = _local1[_local2];
_local5 = Attach.getMovieClip(StaticPar_Ingame.allViewedFoods[_local4]);
_local5.x = (StaticPar_Ingame.foodPosition[_local2] as Point).x;
_local5.y = (StaticPar_Ingame.foodPosition[_local2] as Point).y;
_local5.gotoAndStop(1);
_local5.addEventListener(MouseEvent.CLICK, clickfood);
_local5.addEventListener(MouseEvent.MOUSE_OVER, overfood);
_local5.addEventListener(MouseEvent.MOUSE_OUT, outfood);
_mc.addChild(_local5);
_viewedFoodArray.push(_local5);
_local2++;
};
var _local3:MovieClip = _mc["dustbin"];
_mc.setChildIndex(_local3, (_mc.numChildren - 1));
}
private function clickwashsprite(_arg1:MouseEvent):void{
if (_setFollowFoodPos.isDragingFood){
return;
};
if (_setFollowFoodPos.isDragingBellyWash){
_setFollowFoodPos.removeCurBellyWash();
return;
};
if (!_setFollowFoodPos.isBellyWashCanGet){
return;
};
_setFollowFoodPos.clickBellyWash();
}
private function clickresume(_arg1:MouseEvent):void{
_resume.removeEventListener(MouseEvent.CLICK, clickresume);
_levelMap.removeEventListener(MouseEvent.CLICK, clicklevelmap);
_pauseMc.gotoAndPlay(50);
}
private function outfood(_arg1:MouseEvent):void{
(_arg1.target as MovieClip).gotoAndStop(1);
}
private function initHint():void{
_reachTargetHint.gotoAndStop(1);
_reachTargetHint.addFrameScript((_reachTargetHint.totalFrames - 1), _reachTargetHint.stop);
_targetHintLev = _reachTargetHint["targetlev"];
_targetHintLev.stop();
}
private function initlev1():void{
var _local1:TextField = _targetMc["lev1"];
_local1.selectable = false;
_local1.text = (_curLevAllTargetArr[0] as int).toString();
}
private function initlev2():void{
var _local1:TextField = _targetMc["lev2"];
_local1.selectable = false;
_local1.text = (_curLevAllTargetArr[1] as int).toString();
}
private function initlev3():void{
var _local1:TextField = _targetMc["lev3"];
_local1.selectable = false;
_local1.text = (_curLevAllTargetArr[2] as int).toString();
}
private function overandremove():void{
isPause = false;
_targetok.removeEventListener(MouseEvent.CLICK, clickok);
_mc.removeChild(_targetMc);
if (_bellMove){
_bellMove.play();
};
}
private function insertBackPictrue():void{
if (StaticLevData.currentLevel >= 12){
playMusic2();
_backPictrue = Attach.getMovieClip("bg_4");
} else {
if (StaticLevData.currentLevel >= 8){
playMusic1();
_backPictrue = Attach.getMovieClip("bg_3");
} else {
if (StaticLevData.currentLevel >= 4){
playMusic2();
_backPictrue = Attach.getMovieClip("bg_2");
} else {
playMusic1();
_backPictrue = Attach.getMovieClip("bg_1");
};
};
};
_mc.addChildAt(_backPictrue, 0);
}
private function bellywashgivetopeople(_arg1:Event):void{
_setFollowFoodPos.isBellyWashCanGet = false;
_bellyWashSprite.gotoAndStop(2);
_bellMove.gotoAndPlay(1);
}
private function submitHighScore():void{
var _local1:int;
var _local2:int;
while (_local2 < Cookie.instance.levsMoney["levsmoney"].length) {
_local1 = (_local1 + Cookie.instance.levsMoney["levsmoney"][_local2]);
_local2++;
};
Award_HighScore.instance.submitScore(_local1);
trace(("最高的钱更变为:" + _local1));
}
private function clicklevelmap(_arg1:MouseEvent):void{
_resume.removeEventListener(MouseEvent.CLICK, clickresume);
_levelMap.removeEventListener(MouseEvent.CLICK, clicklevelmap);
new Interlude(Manager.MAINMENU_STARTGAME);
}
private function initData():void{
GetXmlData.initCurLevData();
_currentLevel = StaticLevData.currentLevel;
isPause = true;
_curLevMoney = 0;
_griddingWhetherFoodCanSetArray = new Array();
_viewedFoodArray = new Array();
_curLevFrames = GetXmlData.curLevFrames;
_curLevAllTargetArr = GetXmlData.curLevAllTargetArr;
_framesPerJump = (_curLevFrames / 100);
_moveFramesAfterJump = 0;
_isCurLevPass = false;
_curLevLev = 0;
initCurLevData();
}
private function insertBellyWash():void{
if (StaticPar_Ingame.bellyWashLev == 1){
_bellyWashSprite = Attach.getMovieClip("coke");
} else {
if (StaticPar_Ingame.bellyWashLev == 2){
_bellyWashSprite = Attach.getMovieClip("syrup");
} else {
if (StaticPar_Ingame.bellyWashLev == 3){
_bellyWashSprite = Attach.getMovieClip("alcohol");
} else {
trace("还没有购买饮料");
return;
};
};
};
_bellyWashSprite.gotoAndStop(2);
_bellyWashSprite.x = 527;
_bellyWashSprite.y = 119;
_mc.addChild(_bellyWashSprite);
_bellyWashSprite.addEventListener(MouseEvent.CLICK, clickwashsprite);
_bell = Attach.getMovieClip("bell");
_bell.x = 563;
_bell.y = 200;
_bell.stop();
_bell.mouseEnabled = false;
_mc.addChild(_bell);
_bellMove = _bell["bellmove"];
_bellMove.stop();
_bellMove.addFrameScript((_bellMove.totalFrames - 1), bellwashcanget);
_bellWashOkEffect = Attach.getMovieClip("Effect");
_bellWashOkEffect.x = 563;
_bellWashOkEffect.y = 200;
_bellWashOkEffect.gotoAndStop(_bellWashOkEffect.totalFrames);
_bellWashOkEffect.addFrameScript((_bellWashOkEffect.totalFrames - 1), _bellWashOkEffect.stop);
_mc.addChild(_bellWashOkEffect);
}
private function clickalarmclock(_arg1:MouseEvent):void{
}
private function gameOver():void{
var _local1:int = (_curLevMoney + int(GetXmlData.curLevAllTargetAwardArr[(_curLevLev - 1)]));
_setFollowFoodPos.removeMouseObject();
isPause = true;
_alarmClock.gotoAndStop(1);
trace("当前关卡已经结束");
if (_isCurLevPass){
if (_currentLevel == 1){
trace("发送通过第一关成就");
Award_HighScore.instance.submitAchievement("award1");
} else {
if (_currentLevel == 10){
Award_HighScore.instance.submitAchievement("award3");
} else {
if (_currentLevel == StaticLevData.allLevs){
Award_HighScore.instance.submitAchievement("award5");
};
};
};
if ((((Cookie.instance.money["curMoney"] < 15000)) && (((Cookie.instance.money["curMoney"] + _local1) >= 15000)))){
trace("发送获得15000分成就");
Award_HighScore.instance.submitAchievement("award4");
};
if (_currentLevel == 5){
GoogleEvent.instance.gaTrackEvent("Finish 5 Levels", true);
} else {
if (_currentLevel == 10){
GoogleEvent.instance.gaTrackEvent("Finish 10 Levels", true);
} else {
if (_currentLevel == 16){
GoogleEvent.instance.gaTrackEvent("Finish 16 Levels", true);
};
};
};
if ((((_currentLevel == StaticLevData.curMaxLev)) && (!(StaticLevData.isCompletAllLev)))){
trace(("插入当前关卡级别:" + _curLevLev));
Cookie.instance.levslev["levslev"].push(_curLevLev);
trace(("插入当前关卡的钱:" + _local1));
Cookie.instance.levsMoney["levsmoney"].push(_local1);
submitHighScore();
if (Cookie.instance.levslev["levslev"].length < StaticLevData.allLevs){
trace(("最大关卡提升为" + (StaticLevData.curMaxLev + 1)));
var _local2 = Cookie.instance.lev;
var _local3 = "maxLev";
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
} else {
trace("恭喜你,通过了所有的关卡");
StaticFunAndVar.isDisplayCompleteUI = true;
};
} else {
if (Cookie.instance.levsMoney["levsmoney"][(_currentLevel - 1)] < _local1){
trace(((("修改当前关卡的级别:从" + Cookie.instance.levslev["levslev"][(_currentLevel - 1)]) + "到") + _curLevLev));
Cookie.instance.levslev["levslev"][(_currentLevel - 1)] = _curLevLev;
trace(((("修改当前关卡的最高钱:从" + Cookie.instance.levsMoney["levsmoney"][(_currentLevel - 1)]) + "到") + _local1));
Cookie.instance.levsMoney["levsmoney"][(_currentLevel - 1)] = _local1;
submitHighScore();
};
};
new UI_Win(_mc, _curLevLev, _curLevMoney);
} else {
new UI_Lost(_mc);
};
}
private function clickfood(_arg1:MouseEvent):void{
if (_setFollowFoodPos.isDragingBellyWash){
return;
};
var _local2:MovieClip = (_arg1.target as MovieClip);
_setFollowFoodPos.getFollowMouseFoodAndClick(getQualifiedClassName(_local2));
}
private function inittargetmc(_arg1:Event):void{
_targetMc = Attach.getMovieClip("UI_LEVELTARGET");
_mc.addChild(_targetMc);
SoundsManager.instance.playSound("任务框弹出", 1, 1);
_targetMc.addFrameScript(24, initlevdata);
_targetMc.addFrameScript(27, initlev1);
_targetMc.addFrameScript(29, initlev2);
_targetMc.addFrameScript(31, initlev3);
_targetMc.addFrameScript(33, initokbutton);
_targetMc.addFrameScript((_targetMc.totalFrames - 1), overandremove);
}
}
}//package main
Section 146
//UI_LevelMap (main.UI_LevelMap)
package main {
import flash.display.*;
import flash.events.*;
import utils.*;
import element.*;
import AssistantClass.*;
public class UI_LevelMap extends AbstractScreen {
private var levArr:Array;
private var _levTwo:MovieClip;
private var _insideMc:MovieClip;
private var _shop:MovieClip;
private var _leveDataArr:Array;
private var _mainMenu:MovieClip;
private var _levThree:MovieClip;
private var _start:MovieClip;
private var _levFour:MovieClip;
private var _levOne:MovieClip;
private var _levFive:MovieClip;
private var _mc:MovieClip;
private var _isDisplayCue:Boolean;
public function UI_LevelMap(_arg1:Sprite){
super(_arg1);
initData();
initDis();
initLev();
initEvent();
trace(("当前可选的最大等级:" + Cookie.instance.lev["maxLev"]));
trace(("已经通过的关卡数:" + Cookie.instance.levslev["levslev"].length));
if (SoundsManager.instance.currentMusic_sc != "BBQ_map"){
SoundsManager.instance.fadeInMusic("BBQ_map");
};
}
override public function destroy():void{
removeEvent();
_root.removeChild(_mc);
var _local1:int;
while (_local1 < _leveDataArr.length) {
(_leveDataArr[_local1] as LevelLabel).destroy();
_local1++;
};
}
private function initData():void{
levArr = new Array();
_leveDataArr = new Array();
_isDisplayCue = true;
StaticLevData.initLevData();
GetXmlData.initShopData();
}
private function clickstart(_arg1:MouseEvent):void{
new Interlude(Manager.LEVELMAP_START);
}
private function initDis():void{
var _local1:MovieClip;
_mc = Attach.getMovieClip("UI_LEVELMAP");
_root.addChild(_mc);
_insideMc = _mc["insidemc"];
_levOne = _insideMc["levone"];
_levTwo = _insideMc["levtwo"];
_levTwo.gotoAndStop(1);
_levThree = _insideMc["levthree"];
_levThree.gotoAndStop(1);
_levFour = _insideMc["levfour"];
_levFour.gotoAndStop(1);
_levFive = _insideMc["levfive"];
_levFive.gotoAndStop(1);
initAllHouse();
_shop = _mc["shop"];
_start = _mc["start"];
_mainMenu = _mc["mainmenu"];
if (!StaticFunAndVar.isDisplayCue()){
_isDisplayCue = false;
_local1 = _mc["buyobjcue"];
_local1.stop();
_local1.visible = false;
};
}
private function initLev():void{
var _local1:MovieClip;
var _local2 = 1;
while (_local2 <= StaticLevData.curMaxLev) {
_local1 = _mc[("lev" + _local2)];
_leveDataArr.push(new LevelLabel(_mc, _local2, _local1.x, _local1.y));
_local2++;
};
var _local3:int;
while (_local3 < _leveDataArr.length) {
(_leveDataArr[_local3] as LevelLabel).levelDataMc.addEventListener(MouseEvent.CLICK, clicklev);
_local3++;
};
}
private function initAllHouse():void{
if (StaticLevData.curMaxLev >= 5){
_levTwo.gotoAndStop(2);
if (StaticLevData.curMaxLev >= 9){
_levThree.gotoAndStop(2);
if (StaticLevData.curMaxLev >= 13){
_levFour.gotoAndStop(2);
if (StaticLevData.isCompletAllLev){
_levFive.gotoAndStop(2);
};
};
};
};
}
private function clicklev(_arg1:MouseEvent):void{
SoundsManager.instance.playSound("levelselect_press", 1, 1);
var _local2:MovieClip = (_arg1.target as MovieClip);
var _local3:int;
while (_local3 < _leveDataArr.length) {
(_leveDataArr[_local3] as LevelLabel).levelDataMc.gotoAndStop(1);
_local3++;
};
_local2.gotoAndStop(3);
var _local4 = 1;
while (_local4 <= StaticLevData.curMaxLev) {
if (_local2.name == _local4.toString()){
StaticLevData.currentLevel = _local4;
trace(("当前选择的等级是:" + _local4));
};
_local4++;
};
}
private function clickmainmenu(_arg1:MouseEvent):void{
new Interlude(Manager.MAINMENU);
}
private function initEvent():void{
_shop.addEventListener(MouseEvent.CLICK, clickshop);
_mainMenu.addEventListener(MouseEvent.CLICK, clickmainmenu);
_start.addEventListener(MouseEvent.CLICK, clickstart);
}
private function removeEvent():void{
_shop.removeEventListener(MouseEvent.CLICK, clickshop);
_mainMenu.removeEventListener(MouseEvent.CLICK, clickmainmenu);
_start.removeEventListener(MouseEvent.CLICK, clickstart);
}
private function clickshop(_arg1:MouseEvent):void{
if (_isDisplayCue){
StaticFunAndVar.updateCueData();
};
new Interlude(Manager.LEVELMAP_SHOP);
}
}
}//package main
Section 147
//UI_Lost (main.UI_Lost)
package main {
import flash.display.*;
import flash.events.*;
import utils.*;
public class UI_Lost {
private var _lostLevMap:MovieClip;
private var _lostTryAgain:MovieClip;
private var _mc:MovieClip;
private var _lostMc:MovieClip;
public function UI_Lost(_arg1:MovieClip){
_mc = _arg1;
initDis();
SoundsManager.instance.stopMusic();
SoundsManager.instance.stopAllSound();
SoundsManager.instance.playSound("BBQ_lose", 1, 1);
}
private function initlostpro():void{
_lostMc.addFrameScript((_lostMc.totalFrames - 1), null);
_lostMc.stop();
_lostTryAgain = _lostMc["tryagain"];
_lostLevMap = _lostMc["levmap"];
_lostTryAgain.addEventListener(MouseEvent.CLICK, clicklosttryagain);
_lostLevMap.addEventListener(MouseEvent.CLICK, clicklostback);
}
private function destroy():void{
SoundsManager.instance.stopSound("BBQ_lose");
_lostTryAgain.removeEventListener(MouseEvent.CLICK, clicklosttryagain);
_lostLevMap.removeEventListener(MouseEvent.CLICK, clicklostback);
_mc.removeChild(_lostMc);
}
private function clicklosttryagain(_arg1:MouseEvent):void{
destroy();
new Interlude(Manager.LEVELMAP_START);
}
private function clicklostback(_arg1:MouseEvent):void{
destroy();
new Interlude(Manager.MAINMENU_STARTGAME);
}
private function initDis():void{
_lostMc = Attach.getMovieClip("UI_LEVELLOST");
_mc.addChild(_lostMc);
_lostMc.addFrameScript((_lostMc.totalFrames - 1), initlostpro);
}
}
}//package main
Section 148
//UI_MainMenu (main.UI_MainMenu)
package main {
import flash.display.*;
import flash.events.*;
import utils.*;
import AssistantClass.*;
public class UI_MainMenu extends AbstractScreen {
private var _quality:MovieClip;
private var _start:MovieClip;
private var _soundsCd:MovieClip;
private var _howToPlay:MovieClip;
private var _musicCd:MovieClip;
private var _mc:MovieClip;
public function UI_MainMenu(_arg1:Sprite){
super(_arg1);
initDis();
initElement();
initSound();
if (SoundsManager.instance.currentMusic_sc != "BBQ_menu"){
SoundsManager.instance.fadeInMusic("BBQ_menu");
};
}
private function chooseQuality():void{
switch ((StaticLevData.qualityClickedCounts % 3)){
case 0:
_quality.gotoAndStop(1);
_root.stage.quality = StageQuality.BEST;
break;
case 1:
_quality.gotoAndStop(2);
_root.stage.quality = StageQuality.HIGH;
break;
case 2:
_quality.gotoAndStop(3);
_root.stage.quality = StageQuality.LOW;
break;
};
}
private function initSound():void{
if (Cookie.instance.sound["sound"]){
SoundsManager.instance.Enabled = true;
_soundsCd.gotoAndStop(1);
} else {
SoundsManager.instance.Enabled = false;
_soundsCd.gotoAndStop(2);
};
if (Cookie.instance.sound["music"]){
_musicCd.gotoAndStop(1);
} else {
SoundsManager.instance.MusicEnable = false;
_musicCd.gotoAndStop(2);
};
}
override public function destroy():void{
removeEvent();
_root.removeChild(_mc);
}
private function initElement():void{
_quality = _mc["quality"];
_musicCd = _mc["music"];
_soundsCd = _mc["sound"];
_quality.gotoAndStop(1);
_start = _mc["start"];
_howToPlay = _mc["howtoplay"];
initButtonEvent();
}
private function clickmusic(_arg1:MouseEvent):void{
if (_musicCd.currentFrame == 1){
Cookie.instance.sound["music"] = false;
SoundsManager.instance.MusicEnable = false;
_musicCd.gotoAndStop(2);
} else {
if (_musicCd.currentFrame == 2){
Cookie.instance.sound["music"] = true;
SoundsManager.instance.MusicEnable = true;
_musicCd.gotoAndStop(1);
if (SoundsManager.instance.currentMusic_sc != "BBQ_menu"){
SoundsManager.instance.playMusic("BBQ_menu", 1);
};
};
};
}
private function clickquality(_arg1:MouseEvent):void{
StaticLevData.qualityClickedCounts++;
chooseQuality();
}
private function clickhowtoplay(_arg1:MouseEvent):void{
new Interlude(Manager.MAINMENU_HOWTOPLAY);
}
private function clickstart(_arg1:MouseEvent):void{
new Interlude(Manager.MAINMENU_STARTGAME);
}
private function clicksounds(_arg1:MouseEvent):void{
if (_soundsCd.currentFrame == 1){
Cookie.instance.sound["sound"] = false;
SoundsManager.instance.Enabled = false;
_soundsCd.gotoAndStop(2);
} else {
if (_soundsCd.currentFrame == 2){
Cookie.instance.sound["sound"] = true;
SoundsManager.instance.Enabled = true;
_soundsCd.gotoAndStop(1);
};
};
}
private function removeEvent():void{
_quality.removeEventListener(MouseEvent.CLICK, clickquality);
_start.removeEventListener(MouseEvent.CLICK, clickstart);
_howToPlay.removeEventListener(MouseEvent.CLICK, clickhowtoplay);
_musicCd.removeEventListener(MouseEvent.CLICK, clickmusic);
_soundsCd.removeEventListener(MouseEvent.CLICK, clicksounds);
}
private function initDis():void{
_mc = Attach.getMovieClip("UI_MAIN");
_root.addChild(_mc);
}
private function initButtonEvent():void{
_quality.addEventListener(MouseEvent.CLICK, clickquality);
_start.addEventListener(MouseEvent.CLICK, clickstart);
_howToPlay.addEventListener(MouseEvent.CLICK, clickhowtoplay);
_musicCd.addEventListener(MouseEvent.CLICK, clickmusic);
_soundsCd.addEventListener(MouseEvent.CLICK, clicksounds);
}
}
}//package main
Section 149
//UI_Shop (main.UI_Shop)
package main {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import utils.*;
import zlong.spilSystemTool.*;
import AssistantClass.*;
public class UI_Shop extends AbstractScreen {
private var _bwBuy2:ExtButton;
private var _bwBuy3:ExtButton;
private var _beginBwLev:int;
private var _gBuy5:ExtButton;
private var _yes1:MovieClip;
private var _yes2:MovieClip;
private var _yes3:MovieClip;
private var _yes5:MovieClip;
private var _bwBuy1:ExtButton;
private var _yes4:MovieClip;
private var _curMaxLev:int;
private var _mc:MovieClip;
private var _bw1:MovieClip;
private var _bw2:MovieClip;
private var _bw3:MovieClip;
private var _back:MovieClip;
private var _gTxt5:TextField;
private var _gTxt6:TextField;
private var _bwTxt2:TextField;
private var _bwTxt3:TextField;
private var _isBegin:Boolean;
private var _bwtTxt1:TextField;
private var _totelMoneyTxt:TextField;
private var _gridding5:MovieClip;
private var _gridding6:MovieClip;
private var _curYesButton:MovieClip;
private var _gBuy6:ExtButton;
public function UI_Shop(_arg1:Sprite){
super(_arg1);
initData();
initDis();
initYes();
initBuyButtonVisible();
}
private function rollover2(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
_mc.setChildIndex(_local2, (_mc.numChildren - 6));
_local2.gotoAndStop(4);
}
private function rollover1(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
_mc.setChildIndex(_local2, (_mc.numChildren - 6));
_local2.gotoAndStop(2);
}
private function rollout2(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
_mc.setChildIndex(_local2, (_mc.numChildren - 11));
_local2.gotoAndStop(3);
}
private function initBuyButtonVisible():void{
if (_curMaxLev < GetXmlData.grdding6Lev){
_gBuy6.enable = false;
_gridding6.gotoAndStop(1);
_gridding6.addEventListener(MouseEvent.ROLL_OVER, rollover1);
_gridding6.addEventListener(MouseEvent.ROLL_OUT, rollout1);
} else {
_gridding6.gotoAndStop(3);
_gridding6.addEventListener(MouseEvent.ROLL_OVER, rollover2);
_gridding6.addEventListener(MouseEvent.ROLL_OUT, rollout2);
if (Cookie.instance.gridding["griddingLengthNumber"] < 6){
_gBuy6.enable = true;
_gBuy6.addEventListener(MouseEvent.CLICK, buygridding6);
} else {
_gBuy6.enable = false;
};
if (((_isBegin) && (Cookie.instance.buyObj["gridding6"]))){
_yes2.gotoAndStop(_yes2.totalFrames);
};
};
if (_curMaxLev < GetXmlData.grdding5Lev){
_gBuy5.enable = false;
_gridding5.gotoAndStop(1);
_gridding5.addEventListener(MouseEvent.ROLL_OVER, rollover1);
_gridding5.addEventListener(MouseEvent.ROLL_OUT, rollout1);
} else {
_gridding5.gotoAndStop(3);
_gridding5.addEventListener(MouseEvent.ROLL_OVER, rollover2);
_gridding5.addEventListener(MouseEvent.ROLL_OUT, rollout2);
if (Cookie.instance.gridding["griddingLengthNumber"] < 5){
_gBuy5.enable = true;
_gBuy5.addEventListener(MouseEvent.CLICK, buygridding5);
} else {
_gBuy5.enable = false;
};
if (((_isBegin) && (Cookie.instance.buyObj["gridding5"]))){
_yes1.gotoAndStop(_yes1.totalFrames);
};
};
if (_curMaxLev < GetXmlData.bw3Lev){
_bwBuy3.enable = false;
_bw3.gotoAndStop(1);
_bw3.addEventListener(MouseEvent.ROLL_OVER, rollover1);
_bw3.addEventListener(MouseEvent.ROLL_OUT, rollout1);
} else {
_bw3.gotoAndStop(3);
_bw3.addEventListener(MouseEvent.ROLL_OVER, rollover2);
_bw3.addEventListener(MouseEvent.ROLL_OUT, rollout2);
if (Cookie.instance.bellyWashLev["bellyWashLev"] < 3){
_bwBuy3.enable = true;
_bwBuy3.addEventListener(MouseEvent.CLICK, buybw3);
} else {
_bwBuy3.enable = false;
};
if (((_isBegin) && (Cookie.instance.buyObj["bw3"]))){
_yes5.gotoAndStop(_yes5.totalFrames);
};
};
if (_curMaxLev < GetXmlData.bw2Lev){
_bwBuy2.enable = false;
_bw2.gotoAndStop(1);
_bw2.addEventListener(MouseEvent.ROLL_OVER, rollover1);
_bw2.addEventListener(MouseEvent.ROLL_OUT, rollout1);
} else {
_bw2.gotoAndStop(3);
_bw2.addEventListener(MouseEvent.ROLL_OVER, rollover2);
_bw2.addEventListener(MouseEvent.ROLL_OUT, rollout2);
if (Cookie.instance.bellyWashLev["bellyWashLev"] < 2){
_bwBuy2.enable = true;
_bwBuy2.addEventListener(MouseEvent.CLICK, buybw2);
} else {
_bwBuy2.enable = false;
};
if (((_isBegin) && (Cookie.instance.buyObj["bw2"]))){
_yes4.gotoAndStop(_yes4.totalFrames);
};
};
if (_curMaxLev < GetXmlData.bw1Lev){
_bwBuy1.enable = false;
_bw1.gotoAndStop(1);
_bw1.addEventListener(MouseEvent.ROLL_OVER, rollover1);
_bw1.addEventListener(MouseEvent.ROLL_OUT, rollout1);
} else {
_bw1.gotoAndStop(3);
_bw1.addEventListener(MouseEvent.ROLL_OVER, rollover2);
_bw1.addEventListener(MouseEvent.ROLL_OUT, rollout2);
if (Cookie.instance.bellyWashLev["bellyWashLev"] < 1){
_bwBuy1.enable = true;
_bwBuy1.addEventListener(MouseEvent.CLICK, buybw1);
} else {
_bwBuy1.enable = false;
};
if (((_isBegin) && (Cookie.instance.buyObj["bw1"]))){
_yes3.gotoAndStop(_yes3.totalFrames);
};
};
_isBegin = false;
}
private function buygridding5(_arg1:MouseEvent):void{
if (Cookie.instance.money["curMoney"] < GetXmlData.grdding5Money){
trace("你的钱不够");
return;
};
Cookie.instance.buyObj["gridding5"] = true;
Cookie.instance.money["curMoney"] = (Cookie.instance.money["curMoney"] - GetXmlData.grdding5Money);
Cookie.instance.gridding["griddingLengthNumber"] = 5;
_curYesButton = _yes1;
buySomeThing();
}
private function rollout1(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
_mc.setChildIndex(_local2, (_mc.numChildren - 11));
_local2.gotoAndStop(1);
}
private function buybw1(_arg1:MouseEvent):void{
if (Cookie.instance.money["curMoney"] < GetXmlData.bw1Money){
trace("你的钱不够");
return;
};
Cookie.instance.buyObj["bw1"] = true;
Cookie.instance.money["curMoney"] = (Cookie.instance.money["curMoney"] - GetXmlData.bw1Money);
Cookie.instance.bellyWashLev["bellyWashLev"] = 1;
_curYesButton = _yes3;
buySomeThing();
}
private function initYes():void{
_yes1 = _mc["yes1"];
_yes2 = _mc["yes2"];
_yes3 = _mc["yes3"];
_yes4 = _mc["yes4"];
_yes5 = _mc["yes5"];
_yes1.stop();
_yes2.stop();
_yes3.stop();
_yes4.stop();
_yes5.stop();
_yes1.addFrameScript((_yes1.totalFrames - 1), _yes1.stop);
_yes2.addFrameScript((_yes2.totalFrames - 1), _yes2.stop);
_yes3.addFrameScript((_yes3.totalFrames - 1), _yes3.stop);
_yes4.addFrameScript((_yes4.totalFrames - 1), _yes4.stop);
_yes5.addFrameScript((_yes5.totalFrames - 1), _yes5.stop);
_yes1.mouseEnabled = false;
_yes2.mouseEnabled = false;
_yes3.mouseEnabled = false;
_yes4.mouseEnabled = false;
_yes5.mouseEnabled = false;
}
private function buybw3(_arg1:MouseEvent):void{
if (Cookie.instance.money["curMoney"] < GetXmlData.bw3Money){
trace("你的钱不够");
return;
};
Cookie.instance.buyObj["bw3"] = true;
Cookie.instance.money["curMoney"] = (Cookie.instance.money["curMoney"] - GetXmlData.bw3Money);
Cookie.instance.bellyWashLev["bellyWashLev"] = 3;
_curYesButton = _yes5;
buySomeThing();
}
private function buygridding6(_arg1:MouseEvent):void{
if (Cookie.instance.money["curMoney"] < GetXmlData.grdding6Money){
trace("你的钱不够");
return;
};
Cookie.instance.buyObj["gridding6"] = true;
Cookie.instance.money["curMoney"] = (Cookie.instance.money["curMoney"] - GetXmlData.grdding6Money);
Cookie.instance.gridding["griddingLengthNumber"] = 6;
_curYesButton = _yes2;
buySomeThing();
}
private function buybw2(_arg1:MouseEvent):void{
if (Cookie.instance.money["curMoney"] < GetXmlData.bw2Money){
trace("你的钱不够");
return;
};
Cookie.instance.buyObj["bw2"] = true;
Cookie.instance.money["curMoney"] = (Cookie.instance.money["curMoney"] - GetXmlData.bw2Money);
Cookie.instance.bellyWashLev["bellyWashLev"] = 2;
_curYesButton = _yes4;
buySomeThing();
}
private function removeBuyButtonEvent():void{
_gBuy5.removeEventListener(MouseEvent.CLICK, buygridding5);
_gBuy6.removeEventListener(MouseEvent.CLICK, buygridding6);
_bwBuy1.removeEventListener(MouseEvent.CLICK, buybw1);
_bwBuy2.removeEventListener(MouseEvent.CLICK, buybw2);
_bwBuy3.removeEventListener(MouseEvent.CLICK, buybw3);
_gridding6.removeEventListener(MouseEvent.ROLL_OVER, rollover1);
_gridding6.removeEventListener(MouseEvent.ROLL_OUT, rollout1);
_gridding6.removeEventListener(MouseEvent.ROLL_OVER, rollover2);
_gridding6.removeEventListener(MouseEvent.ROLL_OUT, rollout2);
_gridding5.removeEventListener(MouseEvent.ROLL_OVER, rollover1);
_gridding5.removeEventListener(MouseEvent.ROLL_OUT, rollout1);
_gridding5.removeEventListener(MouseEvent.ROLL_OVER, rollover2);
_gridding5.removeEventListener(MouseEvent.ROLL_OUT, rollout2);
_bw3.removeEventListener(MouseEvent.ROLL_OVER, rollover1);
_bw3.removeEventListener(MouseEvent.ROLL_OUT, rollout1);
_bw3.removeEventListener(MouseEvent.ROLL_OVER, rollover2);
_bw3.removeEventListener(MouseEvent.ROLL_OUT, rollout2);
_bw2.removeEventListener(MouseEvent.ROLL_OVER, rollover1);
_bw2.removeEventListener(MouseEvent.ROLL_OUT, rollout1);
_bw2.removeEventListener(MouseEvent.ROLL_OVER, rollover2);
_bw2.removeEventListener(MouseEvent.ROLL_OUT, rollout2);
_bw1.removeEventListener(MouseEvent.ROLL_OVER, rollover1);
_bw1.removeEventListener(MouseEvent.ROLL_OUT, rollout1);
_bw1.removeEventListener(MouseEvent.ROLL_OVER, rollover2);
_bw1.removeEventListener(MouseEvent.ROLL_OUT, rollout2);
}
private function initData():void{
_curMaxLev = StaticLevData.curMaxLev;
_isBegin = true;
_beginBwLev = Cookie.instance.bellyWashLev["bellyWashLev"];
}
override public function destroy():void{
removeBuyButtonEvent();
_back.removeEventListener(MouseEvent.CLICK, clickback);
_root.removeChild(_mc);
}
private function initDis():void{
_mc = Attach.getMovieClip("UI_SHOP");
_root.addChild(_mc);
_back = _mc["back"];
_back.addEventListener(MouseEvent.CLICK, clickback);
_totelMoneyTxt = _mc["totalmoneytxt"];
_totelMoneyTxt.selectable = false;
_totelMoneyTxt.text = Cookie.instance.money["curMoney"].toString();
_gridding5 = _mc["gridding5"];
_gTxt5 = _mc["gtxt5"];
_gTxt5.selectable = false;
_gTxt5.mouseEnabled = false;
_gTxt5.text = GetXmlData.grdding5Money.toString();
_gBuy5 = _mc["gbuy5"];
_gridding6 = _mc["gridding6"];
_gTxt6 = _mc["gtxt6"];
_gTxt6.selectable = false;
_gTxt6.mouseEnabled = false;
_gTxt6.text = GetXmlData.grdding6Money.toString();
_gBuy6 = _mc["gbuy6"];
_bw1 = _mc["bw1"];
_bwtTxt1 = _mc["bwtxt1"];
_bwtTxt1.selectable = false;
_bwtTxt1.mouseEnabled = false;
_bwtTxt1.text = GetXmlData.bw1Money.toString();
_bwBuy1 = _mc["bwbuy1"];
_bw2 = _mc["bw2"];
_bwTxt2 = _mc["bwtxt2"];
_bwTxt2.selectable = false;
_bwTxt2.mouseEnabled = false;
_bwTxt2.text = GetXmlData.bw2Money.toString();
_bwBuy2 = _mc["bwbuy2"];
_bw3 = _mc["bw3"];
_bwTxt3 = _mc["bwtxt3"];
_bwTxt3.selectable = false;
_bwTxt3.mouseEnabled = false;
_bwTxt3.text = GetXmlData.bw3Money.toString();
_bwBuy3 = _mc["bwbuy3"];
}
private function clickback(_arg1:MouseEvent):void{
new Interlude(Manager.MAINMENU_STARTGAME);
if ((((_beginBwLev == 0)) && (!((Cookie.instance.bellyWashLev["bellyWashLev"] == 0))))){
StaticFunAndVar.howToPlayPar = "howtousebw";
new Interlude(Manager.COERCE_HOWTOPLAY);
} else {
new Interlude(Manager.MAINMENU_STARTGAME);
};
}
private function buySomeThing():void{
trace("发送购买一样道具成就");
Award_HighScore.instance.submitAchievement("award2");
_curYesButton.play();
_totelMoneyTxt.text = Cookie.instance.money["curMoney"].toString();
removeBuyButtonEvent();
initBuyButtonVisible();
}
}
}//package main
Section 150
//UI_Win (main.UI_Win)
package main {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import utils.*;
import AssistantClass.*;
public class UI_Win {
private var _curLevMoney:int;
private var _winMc:MovieClip;
private var _winOk:MovieClip;
private var _curChangeTxtContent:ChangeTxtContent;
private var _txt1:TextField;
private var _txt2:TextField;
private var _curLevAllTargetAward:int;
private var _curLevLev:int;
private var _effect:MovieClip;
private var _mc:MovieClip;
private var _totalMoney:int;
public static const TXT1COMPLETE:String = "TXT1COMPLETE";
public static const TXT2COMPLETE:String = "TXT2COMPLETE";
public static const TXT3COMPLETE:String = "TXT3COMPLETE";
public function UI_Win(_arg1:MovieClip, _arg2:int, _arg3:int){
_mc = _arg1;
_curLevLev = _arg2;
_curLevMoney = _arg3;
initData();
initTotalMoney();
initDis();
initEvent();
SoundsManager.instance.stopMusic();
SoundsManager.instance.stopAllSound();
SoundsManager.instance.playSound("BBQ_win", 1, 1);
}
private function initwinpro():void{
_winMc.stop();
_winOk = _winMc["ok"];
_effect = _winMc["effect"];
_effect.stop();
_effect.addFrameScript((_effect.totalFrames - 1), playtxt2);
_winOk.addEventListener(MouseEvent.CLICK, clickwinok);
_curChangeTxtContent = new ChangeTxtContent(_mc, _txt1, 0, _curLevMoney, TXT1COMPLETE);
}
private function initTotalMoney():void{
Cookie.instance.money["curMoney"] = (Cookie.instance.money["curMoney"] + (_curLevMoney + _curLevAllTargetAward));
if (Cookie.instance.money["curMoney"] > 99999){
Cookie.instance.money["curMoney"] = 99999;
};
}
private function initDis():void{
_winMc = Attach.getMovieClip("UI_LEVELWIN");
_mc.addChild(_winMc);
_winMc.addFrameScript(34, initcup);
_winMc.addFrameScript((_winMc.totalFrames - 1), initwinpro);
}
private function initData():void{
_totalMoney = Cookie.instance.money["curMoney"];
_curLevAllTargetAward = (GetXmlData.curLevAllTargetAwardArr[(_curLevLev - 1)] as int);
}
private function txt2changecomplete(_arg1:Event):void{
}
private function initcup():void{
_txt1 = _winMc["txt1"];
_txt2 = _winMc["txt2"];
var _local1:MovieClip = _winMc["cup"];
if (_curLevLev == 1){
_local1.gotoAndStop(1);
} else {
if (_curLevLev == 2){
_local1.gotoAndStop(2);
} else {
if (_curLevLev == 3){
_local1.gotoAndStop(3);
};
};
};
}
private function initEvent():void{
_mc.addEventListener(TXT1COMPLETE, txt1changecomplete);
_mc.addEventListener(TXT2COMPLETE, txt2changecomplete);
}
private function clickwinok(_arg1:MouseEvent):void{
destroy();
if (StaticFunAndVar.isDisplayCompleteUI){
StaticFunAndVar.isDisplayCompleteUI = false;
new Interlude(Manager.GAME_COMPLETE);
} else {
new Interlude(Manager.MAINMENU_STARTGAME);
};
}
private function txt1changecomplete(_arg1:Event):void{
_effect.play();
}
private function destroy():void{
SoundsManager.instance.stopSound("BBQ_win");
_curChangeTxtContent.destroy();
_mc.removeEventListener(TXT1COMPLETE, txt1changecomplete);
_mc.removeEventListener(TXT2COMPLETE, txt2changecomplete);
_winOk.removeEventListener(MouseEvent.CLICK, clickwinok);
_mc.removeChild(_winMc);
}
private function playtxt2():void{
_effect.stop();
_effect.addFrameScript((_effect.totalFrames - 1), null);
_curChangeTxtContent = new ChangeTxtContent(_mc, _txt2, 0, _curLevAllTargetAward, TXT2COMPLETE);
}
}
}//package main
Section 151
//ByteArrayAsset (mx.core.ByteArrayAsset)
package mx.core {
import flash.utils.*;
public class ByteArrayAsset extends ByteArray implements IFlexAsset {
mx_internal static const VERSION:String = "3.5.0.12683";
}
}//package mx.core
Section 152
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 153
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 154
//Stats (net.hires.debug.Stats)
package net.hires.debug {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.system.*;
public class Stats extends Sprite {
protected const WIDTH:uint = 70;
protected const HEIGHT:uint = 100;
protected var xml:XML;
protected var text:TextField;
protected var style:StyleSheet;
protected var timer:uint;
protected var fps:uint;
protected var ms:uint;
protected var ms_prev:uint;
protected var mem:Number;
protected var mem_max:Number;
protected var graph:Bitmap;
protected var rectangle:Rectangle;
protected var fps_graph:uint;
protected var mem_graph:uint;
protected var mem_max_graph:uint;
protected var theme:Object;
public function Stats(_arg1:Object=null):void{
this.theme = {bg:51, fps:0xFFFF00, ms:0xFF00, mem:0xFFFF, memmax:0xFF0070};
super();
this.mouseChildren = false;
this.mouseEnabled = false;
if (_arg1){
if (_arg1.bg != null){
this.theme.bg = _arg1.bg;
};
if (_arg1.fps != null){
this.theme.fps = _arg1.fps;
};
if (_arg1.ms != null){
this.theme.ms = _arg1.ms;
};
if (_arg1.mem != null){
this.theme.mem = _arg1.mem;
};
if (_arg1.memmax != null){
this.theme.memmax = _arg1.memmax;
};
};
this.mem_max = 0;
this.xml = <xml><fps>FPS:</fps><ms>MS:</ms><mem>MEM:</mem><memMax>MAX:</memMax></xml>
;
this.style = new StyleSheet();
this.style.setStyle("xml", {fontSize:"9px", fontFamily:"_sans", leading:"-2px"});
this.style.setStyle("fps", {color:this.hex2css(this.theme.fps)});
this.style.setStyle("ms", {color:this.hex2css(this.theme.ms)});
this.style.setStyle("mem", {color:this.hex2css(this.theme.mem)});
this.style.setStyle("memMax", {color:this.hex2css(this.theme.memmax)});
this.text = new TextField();
this.text.width = this.WIDTH;
this.text.height = 50;
this.text.styleSheet = this.style;
this.text.condenseWhite = true;
this.text.selectable = false;
this.text.mouseEnabled = false;
this.graph = new Bitmap();
this.graph.alpha = 0.3;
this.graph.y = 50;
this.rectangle = new Rectangle((this.WIDTH - 1), 0, 1, (this.HEIGHT - 50));
addEventListener(Event.ADDED_TO_STAGE, this.init, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, this.destroy, false, 0, true);
}
private function init(_arg1:Event):void{
graphics.beginFill(this.theme.bg, 0.3);
graphics.drawRect(0, 0, this.WIDTH, this.HEIGHT);
graphics.endFill();
addChild(this.text);
this.graph.bitmapData = new BitmapData(this.WIDTH, (this.HEIGHT - 50), false, this.theme.bg);
addChild(this.graph);
addEventListener(Event.ENTER_FRAME, this.update);
}
private function destroy(_arg1:Event):void{
graphics.clear();
while (numChildren > 0) {
removeChildAt(0);
};
this.graph.bitmapData.dispose();
removeEventListener(Event.ENTER_FRAME, this.update);
}
private function update(_arg1:Event):void{
this.timer = getTimer();
if ((this.timer - 1000) > this.ms_prev){
this.ms_prev = this.timer;
this.mem = Number((System.totalMemory * 9.54E-7).toFixed(3));
this.mem_max = ((this.mem_max > this.mem)) ? this.mem_max : this.mem;
this.fps_graph = Math.min(this.graph.height, ((this.fps / stage.frameRate) * this.graph.height));
this.mem_graph = (Math.min(this.graph.height, Math.sqrt(Math.sqrt((this.mem * 5000)))) - 2);
this.mem_max_graph = (Math.min(this.graph.height, Math.sqrt(Math.sqrt((this.mem_max * 5000)))) - 2);
this.graph.bitmapData.scroll(-1, 0);
this.graph.bitmapData.fillRect(this.rectangle, this.theme.bg);
this.graph.bitmapData.setPixel((this.graph.width - 1), (this.graph.height - this.fps_graph), this.theme.fps);
this.graph.bitmapData.setPixel((this.graph.width - 1), (this.graph.height - ((this.timer - this.ms) >> 1)), this.theme.ms);
this.graph.bitmapData.setPixel((this.graph.width - 1), (this.graph.height - this.mem_graph), this.theme.mem);
this.graph.bitmapData.setPixel((this.graph.width - 1), (this.graph.height - this.mem_max_graph), this.theme.memmax);
this.xml.fps = ((("FPS: " + this.fps) + " / ") + stage.frameRate);
this.xml.mem = ("MEM: " + this.mem);
this.xml.memMax = ("MAX: " + this.mem_max);
this.fps = 0;
};
this.fps++;
this.xml.ms = ("MS: " + (this.timer - this.ms));
this.ms = this.timer;
this.text.htmlText = this.xml;
}
private function onClick(_arg1:MouseEvent):void{
if (((mouseY / height) > 0.5)){
stage.frameRate--;
} else {
stage.frameRate++;
};
this.xml.fps = ((("FPS: " + this.fps) + " / ") + stage.frameRate);
this.text.htmlText = this.xml;
}
private function hex2css(_arg1:int):String{
return (("#" + _arg1.toString(16)));
}
}
}//package net.hires.debug
Section 155
//Submitter (Spill.Components.Submitter)
package Spill.Components {
import flash.display.*;
public dynamic class Submitter extends MovieClip {
}
}//package Spill.Components
Section 156
//Attach (utils.Attach)
package utils {
import flash.display.*;
import flash.media.*;
import flash.utils.*;
public class Attach {
public static function getSound(_arg1:String):Sound{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:Sound = new (_local2);
return (_local3);
}
public static function getMovieClip(_arg1:String):MovieClip{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:MovieClip = new (_local2);
return (_local3);
}
public static function getSprite(_arg1:String):Sprite{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:Sprite = new (_local2);
return (_local3);
}
public static function getBitmapData(_arg1:String):BitmapData{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:BitmapData = new _local2(null, null);
return (_local3);
}
}
}//package utils
Section 157
//Attach2 (utils.Attach2)
package utils {
import flash.display.*;
import element.*;
import AssistantClass.*;
import flash.utils.*;
public class Attach2 {
public static function getThermometer(_arg1:String, _arg2:Number, _arg3:Number):Thermometer{
var _local4:Class = (getDefinitionByName(_arg1) as Class);
var _local5:Thermometer = new (_local4);
_local5.middleTemperature = _arg2;
_local5.highTemperarure = _arg3;
return (_local5);
}
public static function getFood(_arg1:String, _arg2:String, _arg3:int, _arg4:int, _arg5:int, _arg6:Number):Food{
var _local7:Food = new Food(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
return (_local7);
}
public static function getMovieClipAndSetAttribute(_arg1:String):MovieClip{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:MovieClip = new (_local2);
_local3.mouseEnabled = false;
_local3.mouseChildren = false;
_local3.x = (-(_local3.width) / 2);
_local3.y = (-(_local3.height) / 2);
return (_local3);
}
public static function getCustom(_arg1:int, _arg2:int, _arg3:Array, _arg4:int):Custom{
var _local5:String = StaticPar_Ingame.allCustom[_arg1];
var _local6:Custom = new Custom(_local5, _arg2, _arg3, _arg4);
return (_local6);
}
}
}//package utils
Section 158
//Cookie (utils.Cookie)
package utils {
import flash.net.*;
public class Cookie {
private const NAME:String = "Hot_BBQ_Party";
private static var _instance:Cookie;
private static var _share:SharedObject;
private static var _data:Object;
public function Cookie():void{
init();
}
public function get money():Object{
return (_data["money"]);
}
private function initBuyObj():void{
var _local1:Object;
if (_data["buyobj"] == null){
_local1 = {gridding5:false, gridding6:false, bw1:false, bw2:false, bw3:false};
_data["buyobj"] = _local1;
};
}
public function get gridding():Object{
return (_data["gridding"]);
}
public function get bellyWashLev():Object{
return (_data["bellywash"]);
}
private function initMaxLev():void{
var _local1:Object;
if (_data["lev"] == null){
_local1 = {maxLev:1};
_data["lev"] = _local1;
};
}
public function get sound():Object{
return (_data["sound"]);
}
public function init():void{
initShare();
initData();
}
public function get buyObj():Object{
return (_data["buyobj"]);
}
public function del():void{
_share.close();
}
private function initCurMoney():void{
var _local1:Object;
if (_data["money"] == null){
_local1 = {curMoney:0};
_data["money"] = _local1;
};
}
private function initData():void{
_data = _share.data;
initMaxLev();
initCurMoney();
initGridding();
initThermometer();
initBellyWash();
initBuyObj();
initLevsLev();
initLevsMoney();
initSound();
initIsFirstTime();
initIsCueDisplayed();
}
public function get lev():Object{
return (_data["lev"]);
}
private function initLevsLev():void{
var _local1:Object;
if (_data["alllevslev"] == null){
_local1 = {levslev:[]};
_data["alllevslev"] = _local1;
};
}
private function initSound():void{
var _local1:Object;
if (_data["sound"] == null){
_local1 = {sound:true, music:true};
_data["sound"] = _local1;
};
}
private function initIsFirstTime():void{
var _local1:Object;
if (_data["first"] == null){
_local1 = {isFirst:true};
_data["first"] = _local1;
};
}
private function initBellyWash():void{
var _local1:Object;
if (_data["bellywash"] == null){
_local1 = {bellyWashLev:0};
_data["bellywash"] = _local1;
};
}
public function get thermometer():Object{
return (_data["thermometer"]);
}
public function get levslev():Object{
return (_data["alllevslev"]);
}
private function initIsCueDisplayed():void{
var _local1:Object;
if (_data["cuedisplay"] == null){
_local1 = {gridding5:false, gridding6:false, bw1:false, bw2:false, bw3:false};
_data["cuedisplay"] = _local1;
};
}
public function get levsMoney():Object{
return (_data["alllevsmoney"]);
}
public function get isFirst():Object{
return (_data["first"]);
}
private function initShare():void{
_share = SharedObject.getLocal(NAME, "/");
}
public function get cueDisplay():Object{
return (_data["cuedisplay"]);
}
private function initGridding():void{
var _local1:Object;
if (_data["gridding"] == null){
_local1 = {griddingLengthNumber:4};
_data["gridding"] = _local1;
};
}
private function initThermometer():void{
var _local1:Object;
if (_data["thermometer"] == null){
_local1 = {thermometerLev:1};
_data["thermometer"] = _local1;
};
}
private function initLevsMoney():void{
var _local1:Object;
if (_data["alllevsmoney"] == null){
_local1 = {levsmoney:[]};
_data["alllevsmoney"] = _local1;
};
}
public static function get instance():Cookie{
if (_instance == null){
_instance = new (Cookie);
};
return (_instance);
}
public static function get data():Object{
return (_data);
}
public static function flush():void{
_share.flush();
}
public static function clear():void{
_share.clear();
}
}
}//package utils
Section 159
//SoundsManager (utils.SoundsManager)
package utils {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class SoundsManager {
private const VALUE_FADE:Number = 0.02;
private var fadeInTimer:Timer;
public var curMusic_sc:SoundChannel;
private var curMusic_so:Sound;
private var valueSound:Number;
private var valueGroupSound:Number;
private var curMusic_st:String;
private var fadeTimes:int;
private var fadeOutTimer:Timer;
private var valueMusic:Number;
private var enabled:Boolean;
private var fadeInLabel:String;
private var soundArr:Array;
private var musicEnabled:Boolean;
private var currGroupSoundId:int;
private var groupSoundArr:Array;
private var pausePos:Number;
private static var currentInstance:SoundsManager;
public function SoundsManager(){
init();
}
private function initGroupSound():void{
var _local1:Object = groupSoundArr[currGroupSoundId];
_local1["soundChannel"] = _local1["sound"].play(0, 0, new SoundTransform(valueGroupSound));
initGroupSoundChannelEvent(_local1["soundChannel"]);
}
public function get ValueGroupSound():Number{
return (valueGroupSound);
}
private function stopFadeIn():void{
var _local1:SoundTransform = curMusic_sc.soundTransform;
_local1.volume = valueMusic;
curMusic_sc.soundTransform = _local1;
delFadeInTimer();
}
public function set ValueGroupSound(_arg1:Number):void{
var _local2:SoundTransform;
valueGroupSound = _arg1;
if (groupSoundArr != null){
_local2 = groupSoundArr[currGroupSoundId]["soundChannel"].soundTransform;
_local2.volume = _arg1;
groupSoundArr[currGroupSoundId]["soundChannel"].soundTransform = _local2;
};
}
private function remSoundArr(_arg1:SoundChannel):void{
var _local2:Object;
var _local3:int;
while (_local3 < soundArr.length) {
_local2 = soundArr[_local3];
if (_local2["soundChannel"] == _arg1){
_local2["soundChannel"].stop();
_local2["label"] = null;
_local2["sound"] = null;
_local2["soundChannel"] = null;
soundArr.splice(_local3, 1);
};
_local3++;
};
}
public function stopAllSound():void{
var _local1:int;
while (_local1 < soundArr.length) {
delSound(soundArr[_local1]["soundChannel"]);
_local1++;
};
}
public function get FadeTimes():int{
return (fadeTimes);
}
public function fadeOutMusic():void{
if (curMusic_sc != null){
startFadeOut();
};
}
public function set FadeTimes(_arg1:int):void{
fadeTimes = _arg1;
}
private function init():void{
FadeTimes = 200;
Enabled = true;
MusicEnable = true;
ValueMusic = 1;
ValueSound = 1;
valueGroupSound = 1;
soundArr = new Array();
groupSoundArr = new Array();
}
private function addSoundArr(_arg1:Object):void{
soundArr.push(_arg1);
}
public function overOldSound(_arg1:String, _arg2:Number, _arg3:int=0):void{
var _local4:Boolean;
var _local5:Object;
var _local6:int;
if (enabled){
_local4 = false;
_local6 = 0;
while (_local6 < soundArr.length) {
_local5 = soundArr[_local6];
if (_local5["label"] == _arg1){
_local4 = true;
break;
};
_local6++;
};
if (_local4){
delSound(_local5["soundChannel"]);
};
playSound(_arg1, _arg2, _arg3);
};
}
private function startFadeIn(_arg1:String):void{
initMusic(_arg1, 0);
initFadeInTimer();
}
public function set ValueMusic(_arg1:Number):void{
var _local2:SoundTransform;
valueMusic = _arg1;
if (curMusic_sc != null){
_local2 = curMusic_sc.soundTransform;
_local2.volume = _arg1;
curMusic_sc.soundTransform = _local2;
};
}
public function stopSound(_arg1:String):void{
var _local2:Object;
var _local3:int;
while (_local3 < soundArr.length) {
_local2 = soundArr[_local3];
if (_local2["label"] == _arg1){
delSound(_local2["soundChannel"]);
break;
};
_local3++;
};
}
public function get Enabled():Boolean{
return (enabled);
}
private function delGroupSoundChannelEvent(_arg1:SoundChannel):void{
_arg1.removeEventListener(Event.SOUND_COMPLETE, groupSoundCompleteHandler);
}
private function fadeOut(_arg1:TimerEvent):void{
var _local2:SoundTransform = curMusic_sc.soundTransform;
_local2.volume = (_local2.volume - VALUE_FADE);
curMusic_sc.soundTransform = _local2;
if (curMusic_sc.soundTransform.volume <= 0){
stopFadeOut();
};
}
public function playSound(_arg1:String, _arg2:Number, _arg3:int=0):void{
if (enabled){
initSound(_arg1, _arg2, _arg3);
};
}
public function get ValueSound():Number{
return (valueSound);
}
public function get currentMusic_sc():String{
if (curMusic_sc == null){
return (null);
};
return (curMusic_st);
}
private function delSound(_arg1:SoundChannel):void{
delSoundChannelEvent(_arg1);
remSoundArr(_arg1);
}
private function fadeIn(_arg1:TimerEvent):void{
var _local2:SoundTransform = curMusic_sc.soundTransform;
_local2.volume = (_local2.volume + VALUE_FADE);
curMusic_sc.soundTransform = _local2;
if (curMusic_sc.soundTransform.volume >= valueMusic){
stopFadeIn();
};
}
public function set Enabled(_arg1:Boolean):void{
enabled = _arg1;
if (_arg1){
} else {
stopAllSound();
};
}
public function overNewSound(_arg1:String, _arg2:Number, _arg3:int=0):void{
var _local4:Boolean;
var _local5:Object;
var _local6:int;
if (enabled){
_local4 = false;
_local6 = 0;
while (_local6 < soundArr.length) {
_local5 = soundArr[_local6];
if (_local5["label"] == _arg1){
_local4 = true;
break;
};
_local6++;
};
if (!_local4){
playSound(_arg1, _arg2, _arg3);
};
};
}
public function pauseMusic():void{
if (curMusic_sc != null){
pausePos = curMusic_sc.position;
curMusic_sc.stop();
curMusic_sc = null;
};
}
public function set MusicEnable(_arg1:Boolean):void{
musicEnabled = _arg1;
if (curMusic_st != null){
if (_arg1){
restartMusic();
} else {
pauseMusic();
};
};
}
public function playMusic(_arg1:String, _arg2:Number):void{
if (musicEnabled){
if (curMusic_sc != null){
stopMusic();
};
initMusic(_arg1, _arg2);
};
}
private function delGroupSound():void{
var _local1:Object = groupSoundArr[currGroupSoundId];
_local1["soundChannel"].stop();
_local1["soundChannel"] = null;
}
public function restartMusic():void{
curMusic_sc = curMusic_so.play(pausePos, int.MAX_VALUE, new SoundTransform(valueMusic));
if (curMusic_sc == null){
curMusic_sc = curMusic_so.play(1, int.MAX_VALUE, new SoundTransform(valueMusic));
};
pausePos = NaN;
}
private function stopFadeOut():void{
delFadeOutTimer();
delMusic();
if (fadeInLabel != null){
initMusic(fadeInLabel, 0);
initFadeInTimer();
fadeInLabel = null;
};
}
public function overNewMusic(_arg1:String, _arg2:Number):void{
if (((!((curMusic_st == _arg1))) && (musicEnabled))){
playMusic(_arg1, _arg2);
};
}
private function delMusic():void{
curMusic_sc.stop();
curMusic_st = null;
curMusic_so = null;
curMusic_sc = null;
}
private function delFadeOutTimer():void{
fadeOutTimer.removeEventListener(TimerEvent.TIMER, fadeOut);
fadeOutTimer = null;
}
private function initSound(_arg1:String, _arg2:Number, _arg3:int):void{
var _local4:Object = new Object();
_local4["label"] = _arg1;
_local4["sound"] = Attach.getSound(_arg1);
_local4["soundChannel"] = _local4["sound"].play(0, _arg3, new SoundTransform(_arg2));
initSoundChannelEvent(_local4["soundChannel"]);
addSoundArr(_local4);
}
private function groupSoundCompleteHandler(_arg1:Event):void{
delGroupSound();
currGroupSoundId++;
if (currGroupSoundId == groupSoundArr.length){
currGroupSoundId = 0;
};
initGroupSound();
}
public function setOneValueSound(_arg1:String, _arg2:Number):void{
var _local4:SoundTransform;
var _local3:int;
while (_local3 < soundArr.length) {
if (_arg1 == soundArr[_local3]["label"]){
_local4 = soundArr[_local3]["soundChannel"].soundTransform;
};
_local4.volume = _arg2;
soundArr[_local3]["soundChannel"].soundTransform = _local4;
_local3++;
};
}
public function get ValueMusic():Number{
return (valueMusic);
}
public function fadeInMusic(_arg1:String):void{
if (musicEnabled){
if (curMusic_sc != null){
startFadeOut();
fadeInLabel = _arg1;
} else {
startFadeIn(_arg1);
};
};
}
public function stopMusic():void{
if (curMusic_sc != null){
delMusic();
};
}
private function initFadeOutTimer():void{
fadeOutTimer = new Timer((fadeTimes / (valueMusic / VALUE_FADE)));
fadeOutTimer.addEventListener(TimerEvent.TIMER, fadeOut);
fadeOutTimer.start();
}
private function initFadeInTimer():void{
fadeInTimer = new Timer((fadeTimes / (valueMusic / VALUE_FADE)));
fadeInTimer.addEventListener(TimerEvent.TIMER, fadeIn);
fadeInTimer.start();
}
private function initSoundChannelEvent(_arg1:SoundChannel):void{
_arg1.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
}
public function get MusicEnable():Boolean{
return (musicEnabled);
}
private function startFadeOut():void{
initFadeOutTimer();
}
public function stopGroupSound():void{
var _local1:Object;
if (groupSoundArr != null){
_local1 = groupSoundArr[currGroupSoundId];
if (_local1 != null){
delGroupSoundChannelEvent(_local1["soundChannel"]);
delGroupSound();
};
groupSoundArr = new Array();
currGroupSoundId = NaN;
};
}
private function delSoundChannelEvent(_arg1:SoundChannel):void{
_arg1.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
}
private function initMusic(_arg1:String, _arg2:Number):void{
curMusic_st = _arg1;
curMusic_so = Attach.getSound(_arg1);
curMusic_sc = curMusic_so.play(0, int.MAX_VALUE, new SoundTransform(_arg2));
}
private function initGroupSoundChannelEvent(_arg1:SoundChannel):void{
_arg1.addEventListener(Event.SOUND_COMPLETE, groupSoundCompleteHandler);
}
private function delFadeInTimer():void{
fadeInTimer.removeEventListener(TimerEvent.TIMER, fadeIn);
fadeInTimer = null;
}
private function soundCompleteHandler(_arg1:Event):void{
delSound((_arg1.target as SoundChannel));
}
public function set ValueSound(_arg1:Number):void{
var _local2:int;
var _local3:SoundTransform;
valueSound = _arg1;
if (soundArr != null){
_local2 = 0;
while (_local2 < soundArr.length) {
_local3 = soundArr[_local2]["soundChannel"].soundTransform;
_local3.volume = _arg1;
soundArr[_local2]["soundChannel"].soundTransform = _local3;
_local2++;
};
};
}
public static function get instance():SoundsManager{
if (currentInstance == null){
currentInstance = new (SoundsManager);
};
return (currentInstance);
}
}
}//package utils
Section 160
//AbstractEffect (zlong.breathxue.utils.animationEffect.AbstractEffect)
package zlong.breathxue.utils.animationEffect {
import flash.display.*;
import flash.utils.*;
public class AbstractEffect {
protected var _mc:DisplayObject;
protected var _id:uint;
protected var _isMerge:Boolean;
protected var _runframe:uint;
protected var _stepframe:uint;
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
public function AbstractEffect(){
if (getQualifiedClassName(this) == "zlong::breathxue::utils::animationEffect::AbstractEffect"){
throw (new ArgumentError("can't be constructed"));
};
}
protected function initAbSet(_arg1:uint, _arg2:DisplayObject, _arg3:uint, _arg4:Boolean):void{
this._id = _arg1;
this._mc = _arg2;
this._isMerge = _arg4;
this._runframe = _arg3;
this._stepframe = 0;
if (this._mc == null){
throw (new ArgumentError("mc can't = null"));
};
}
function checkFinish():Boolean{
return (true);
}
function step():void{
}
function dispatchEvent():void{
}
protected function delMe():void{
var _local1 = getDefinitionByName(getQualifiedClassName(this));
_local1["del"](this._id);
this.dispatchEvent();
}
function get mc():DisplayObject{
return (this._mc);
}
function get isMerge():Boolean{
return (this._isMerge);
}
function get id():uint{
return (this._id);
}
}
}//package zlong.breathxue.utils.animationEffect
Section 161
//EffectManager (zlong.breathxue.utils.animationEffect.EffectManager)
package zlong.breathxue.utils.animationEffect {
import flash.display.*;
import flash.events.*;
import zlong.breathxue.utils.animationEffect.*;
class EffectManager {
public var IdCount:uint;
private var _arr:Array;
private var _listenerMc:DisplayObject;
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
function EffectManager():void{
this.IdCount = 0;
this._arr = new Array();
}
public function push(_arg1:AbstractEffect):uint{
this._arr.push(_arg1);
if (((!(this._listenerMc)) && ((this._arr.length > 0)))){
this._listenerMc = new Sprite();
this._listenerMc.addEventListener(Event.ENTER_FRAME, this.run);
};
return (this.IdCount++);
}
function findAndDeleteSameMcEffect(_arg1:DisplayObject, _arg2:Boolean):AbstractEffect{
var _local4:AbstractEffect;
var _local3:int = (this._arr.length - 1);
while (_local3 >= 0) {
_local4 = this._arr[_local3];
if (_local4.mc == _arg1){
if (((_arg2) && (_local4.isMerge))){
return (_local4);
};
this._arr.splice(_local3, 1);
};
_local3--;
};
return (null);
}
private function run(_arg1:Event):void{
var _local3:AbstractEffect;
var _local4:AbstractEffect;
var _local2:int;
while (_local2 < this._arr.length) {
_local3 = this._arr[_local2];
if (_local3.checkFinish()){
_local4 = (this._arr[_local2] as AbstractEffect);
this._arr.splice(_local2, 1);
_local4.dispatchEvent();
_local2--;
if (this._arr.length <= 0){
this._listenerMc.removeEventListener(Event.ENTER_FRAME, this.run);
this._listenerMc = null;
};
} else {
_local3.step();
};
_local2++;
};
}
public function del(_arg1:uint):void{
var _local2:int;
while (_local2 < this._arr.length) {
if ((this._arr[_local2] as AbstractEffect).id == _arg1){
this._arr.splice(_local2, 1);
if (this._arr.length <= 0){
this._listenerMc.removeEventListener(Event.ENTER_FRAME, this.run);
this._listenerMc = null;
};
return;
};
_local2++;
};
}
public function delByMc(_arg1:DisplayObject):void{
var _local3:AbstractEffect;
var _local2:int = (this._arr.length - 1);
while (_local2 >= 0) {
_local3 = this._arr[_local2];
if (_local3.mc == _arg1){
this._arr.splice(_local2, 1);
};
_local2--;
};
}
public function delAll():void{
this._arr = new Array();
if (this._listenerMc){
this._listenerMc.removeEventListener(Event.ENTER_FRAME, this.run);
this._listenerMc = null;
};
}
public function pauseAll():void{
this._listenerMc.removeEventListener(Event.ENTER_FRAME, this.run);
}
public function reStartAll():void{
this._listenerMc.addEventListener(Event.ENTER_FRAME, this.run);
}
}
}//package zlong.breathxue.utils.animationEffect
Section 162
//MoveEffect (zlong.breathxue.utils.animationEffect.MoveEffect)
package zlong.breathxue.utils.animationEffect {
import flash.display.*;
import flash.events.*;
import zlong.breathxue.utils.math.*;
import zlong.breathxue.utils.*;
public class MoveEffect extends AbstractEffect {
private var _position:mVector;
private var _EndPoint:mVector;
private var _stepVector:mVector;
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
public static const Move_EFFECT_FINISH:String = "Move_EFFECT_FINISH";
private static var _effectManager:EffectManager = new EffectManager();
private function initSet(_arg1:uint, _arg2:DisplayObject, _arg3:mVector, _arg4:mVector, _arg5:Number, _arg6:uint=0, _arg7:mVector=null, _arg8:Boolean=false, _arg9:AbstractEffect=null):void{
super.initAbSet(_arg1, _arg2, _arg6, _arg8);
this._EndPoint = _arg4;
this._stepVector = _arg7;
if ((((_arg5 == 0)) && ((_arg6 == 0)))){
throw (new ArgumentError("one of stepDistance or runframe need be setting"));
};
if (((!(this._EndPoint)) && (((!(_arg7)) || ((_runframe == 0)))))){
throw (new ArgumentError("if EndAlpha == NaN,then stepVector and runframe must be setting"));
};
if (_arg3 == null){
_arg3 = new mVector(_mc.x, _mc.y);
};
if (((_arg8) && (_arg9))){
this._position = (_arg9 as MoveEffect)._position;
} else {
this._position = new mVector();
_mc.x = (this._position.x = _arg3.x);
_mc.y = (this._position.y = _arg3.y);
};
if (!this._EndPoint){
FrameTimer.push(new FrameTimer(_runframe), delMe);
} else {
this._stepVector = this._EndPoint.minus(this._position);
if (_runframe > 0){
this._stepVector.multEquals((1 / (_runframe - _stepframe)));
} else {
this._stepVector.length = Math.abs(_arg5);
};
};
}
override function step():void{
var _local1:Number;
if (this._EndPoint){
if (_runframe > 0){
this._stepVector = this._EndPoint.minus(this._position);
this._stepVector.multEquals((1 / (_runframe - _stepframe)));
_stepframe++;
} else {
_local1 = this._stepVector.length;
this._stepVector = this._EndPoint.minus(this._position);
this._stepVector.length = Math.abs(_local1);
};
};
_mc.x = (this._position.x = (this._position.x + this._stepVector.x));
_mc.y = (this._position.y = (this._position.y + this._stepVector.y));
}
override function checkFinish():Boolean{
if (((this._EndPoint) && ((((((_runframe > 0)) && ((_stepframe >= _runframe)))) || ((this._EndPoint.minus(this._position).length <= Math.abs(this._stepVector.length))))))){
_mc.x = (this._position.x = this._EndPoint.x);
_mc.y = (this._position.y = this._EndPoint.y);
return (true);
};
return (false);
}
override function dispatchEvent():void{
_mc.dispatchEvent(new Event(Move_EFFECT_FINISH));
}
public static function push(_arg1:DisplayObject, _arg2:mVector, _arg3:mVector, _arg4:Number, _arg5:uint=0, _arg6:mVector=null, _arg7:Boolean=false):uint{
var _local8:AbstractEffect = _effectManager.findAndDeleteSameMcEffect(_arg1, _arg7);
var _local9:MoveEffect = new (MoveEffect);
_local9.initSet(_effectManager.IdCount, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _local8);
return (_effectManager.push(_local9));
}
public static function del(_arg1:uint):void{
_effectManager.del(_arg1);
}
public static function delByMc(_arg1:DisplayObject):void{
_effectManager.delByMc(_arg1);
}
public static function delAll():void{
_effectManager.delAll();
}
public static function pauseAll():void{
_effectManager.pauseAll();
}
public static function reStartAll():void{
_effectManager.reStartAll();
}
}
}//package zlong.breathxue.utils.animationEffect
Section 163
//TC (zlong.breathxue.utils.debug.TC)
package zlong.breathxue.utils.debug {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import zlong.breathxue.utils.math.*;
import zlong.breathxue.utils.animationEffect.*;
import zlong.breathxue.utils.*;
public class TC {
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
private static const TITLE_HEIGHT:int = 20;
private static var _MC:Sprite;
private static var _showMc:Sprite;
private static var _smallMc:Sprite;
private static var _Text:TextField;
private static var _move:Boolean;
private static var _nowEffect:Boolean;
public static function InitTC(_arg1:Sprite, _arg2:int=0, _arg3:int=0):void{
if (_arg1.stage == null){
return;
};
TcShow = true;
if (_arg2 == 0){
_arg2 = ((_arg1.stage.stageWidth / 3) * 2);
};
if (_arg3 == 0){
_arg3 = ((_arg1.stage.stageHeight / 3) * 2);
};
_MC = new Sprite();
_arg1.addChild(_MC);
_MC.alpha = 0.5;
_move = false;
createShow(_arg2, _arg3);
createSmall(_arg2);
}
private static function createShow(_arg1:int, _arg2:int):void{
_showMc = new Sprite();
_MC.addChild(_showMc);
_showMc.addChild(maketitle(_arg1));
_showMc.graphics.lineStyle(1, 11187199);
_showMc.graphics.drawRect(0, 0, _arg1, _arg2);
_Text = new TextField();
_Text.x = 0;
_Text.y = TITLE_HEIGHT;
_Text.width = _arg1;
_Text.height = (_arg2 - TITLE_HEIGHT);
_showMc.addChild(_Text);
_Text.multiline = true;
_Text.mouseWheelEnabled = true;
_Text.wordWrap = true;
_Text.background = true;
_Text.backgroundColor = 14541311;
_Text.stage.addEventListener(KeyboardEvent.KEY_DOWN, openAndClose);
}
private static function maketitle(_arg1:int):DisplayObject{
var _local2:Sprite = new Sprite();
_local2.graphics.beginFill(11187199);
_local2.graphics.drawRect(0, 0, _arg1, TITLE_HEIGHT);
_local2.graphics.endFill();
_local2.doubleClickEnabled = true;
var _local3:TextField = new TextField();
_local3.text = "Debug Text ('ctrl + d' open and close it)";
_local3.width = _arg1;
_local3.height = TITLE_HEIGHT;
_local3.mouseEnabled = false;
_local3.selectable = false;
_local2.addChild(_local3);
var _local4:Sprite = new Sprite();
_local4.graphics.beginFill(0, 0);
_local4.graphics.drawRect(0, 0, 18, 18);
_local4.graphics.endFill();
_local4.graphics.lineStyle(2, 11187199);
_local4.graphics.moveTo(6, 6);
_local4.graphics.lineTo(12, 12);
_local4.graphics.moveTo(12, 6);
_local4.graphics.lineTo(6, 12);
_local4.x = (_arg1 - 19);
_local4.y = 1;
_local2.addChild(_local4);
_local4.addEventListener(MouseEvent.CLICK, openAndClose);
_local2.addEventListener(MouseEvent.DOUBLE_CLICK, openAndClose);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, startMove);
_local2.addEventListener(MouseEvent.MOUSE_UP, endMove);
return (_local2);
}
private static function createSmall(_arg1:int):void{
_smallMc = new Sprite();
_smallMc.y = -20;
var _local2:Sprite = new Sprite();
_local2.y = 0;
_local2.graphics.beginFill(11187199);
_local2.graphics.drawRect(0, 0, (_arg1 / 2), TITLE_HEIGHT);
_local2.graphics.endFill();
_local2.doubleClickEnabled = true;
var _local3:TextField = new TextField();
_local3.text = "Debug Text";
_local3.width = (_arg1 / 2);
_local3.height = TITLE_HEIGHT;
_local3.mouseEnabled = false;
_local3.selectable = false;
_local2.addChild(_local3);
_smallMc.addChild(_local2);
_local2.addEventListener(MouseEvent.DOUBLE_CLICK, openAndClose);
}
private static function openAndClose(_arg1:Event):void{
var _local2:KeyboardEvent = (_arg1 as KeyboardEvent);
if (((!(_nowEffect)) && (((!(_local2)) || (((_local2.ctrlKey) && ((_local2.keyCode == 68)))))))){
if (_showMc.parent == null){
MoveEffect.push(_smallMc, new mVector(0, -20), new mVector(_showMc.x, _showMc.y), 0, 5);
_smallMc.addEventListener(MoveEffect.Move_EFFECT_FINISH, EffectFinish);
_nowEffect = true;
} else {
_showMc.visible = false;
_MC.addChild(_smallMc);
MoveEffect.push(_smallMc, new mVector(_showMc.x, _showMc.y), new mVector(0, -20), 0, 5);
_smallMc.addEventListener(MoveEffect.Move_EFFECT_FINISH, EffectFinish);
_nowEffect = true;
};
};
}
private static function EffectFinish(_arg1:Event):void{
_smallMc.removeEventListener(MoveEffect.Move_EFFECT_FINISH, EffectFinish);
_nowEffect = false;
if (_showMc.parent == null){
_showMc.visible = true;
_MC.addChild(_showMc);
_MC.removeChild(_smallMc);
} else {
_MC.removeChild(_showMc);
};
}
private static function endMove(_arg1:MouseEvent):void{
_showMc.stopDrag();
}
private static function startMove(_arg1:MouseEvent):void{
_showMc.startDrag();
}
public static function SHOW(... _args):void{
var _local2:int;
if (_MC){
_local2 = _Text.scrollV;
_Text.appendText((((Tools.getNowTimeAndMileSecond_1() + ": ") + _args.join(" ")) + "\n"));
if (_Text.length != _Text.selectionEndIndex){
_Text.scrollV = _local2;
} else {
_Text.scrollV = _Text.numLines;
};
_MC.parent.setChildIndex(_MC, (_MC.parent.numChildren - 1));
};
}
}
}//package zlong.breathxue.utils.debug
Section 164
//TcShow (zlong.breathxue.utils.debug.TcShow)
package zlong.breathxue.utils.debug {
public var TcShow:Boolean = false;
}//package zlong.breathxue.utils.debug
Section 165
//mVector (zlong.breathxue.utils.math.mVector)
package zlong.breathxue.utils.math {
public class mVector {
private var m_x:Number;
private var m_y:Number;
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
public function mVector(_arg1:Number=0, _arg2:Number=0){
this.m_x = _arg1;
this.m_y = _arg2;
}
public function setTo(_arg1:Number, _arg2:Number):void{
this.m_x = _arg1;
this.m_y = _arg2;
}
public function copyFrom(_arg1:mVector):void{
this.m_x = _arg1.m_x;
this.m_y = _arg1.m_y;
}
public function toString():String{
var _local1:Number = (Math.round((this.m_x * 1000)) / 1000);
var _local2:Number = (Math.round((this.m_y * 1000)) / 1000);
return ((((("[" + _local1) + ", ") + _local2) + "]"));
}
public function clone():mVector{
return (new mVector(this.m_x, this.m_y));
}
public function plus(_arg1:mVector):mVector{
return (new mVector((this.m_x + _arg1.m_x), (this.m_y + _arg1.m_y)));
}
public function plusEquals(_arg1:mVector):mVector{
this.m_x = (this.m_x + _arg1.m_x);
this.m_y = (this.m_y + _arg1.m_y);
return (this);
}
public function minus(_arg1:mVector):mVector{
return (new mVector((this.m_x - _arg1.m_x), (this.m_y - _arg1.m_y)));
}
public function minusEquals(_arg1:mVector):mVector{
this.m_x = (this.m_x - _arg1.m_x);
this.m_y = (this.m_y - _arg1.m_y);
return (this);
}
public function negate():mVector{
return (new mVector(-(this.m_x), -(this.m_y)));
}
public function negateEquals():void{
this.m_x = -(this.m_x);
this.m_y = -(this.m_y);
}
public function mult(_arg1:Number):mVector{
return (new mVector((this.m_x * _arg1), (this.m_y * _arg1)));
}
public function multEquals(_arg1:Number):mVector{
this.m_x = (this.m_x * _arg1);
this.m_y = (this.m_y * _arg1);
return (this);
}
public function rotate(_arg1:Number):mVector{
var _local2:mVector = new mVector(this.m_x, this.m_y);
_local2.rotateEquals(_arg1);
return (_local2);
}
public function rotateEquals(_arg1:Number):void{
var _local2:Number = TF_Class.cosD(_arg1);
var _local3:Number = TF_Class.sinD(_arg1);
var _local4:Number = ((this.m_x * _local2) - (this.m_y * _local3));
var _local5:Number = ((this.m_x * _local3) + (this.m_y * _local2));
this.m_x = _local4;
this.m_y = _local5;
}
public function dot(_arg1:mVector):Number{
return (((this.m_x * _arg1.m_x) + (this.m_y * _arg1.m_y)));
}
public function cross(_arg1:mVector):Number{
return (((this.m_x * _arg1.m_y) - (this.m_y * _arg1.m_x)));
}
public function times(_arg1:mVector):mVector{
return (new mVector((this.m_x * _arg1.m_x), (this.m_y * _arg1.m_y)));
}
public function divEquals(_arg1:Number):mVector{
if (_arg1 == 0){
_arg1 = 0.0001;
};
this.m_x = (this.m_x / _arg1);
this.m_y = (this.m_y / _arg1);
return (this);
}
public function distance(_arg1:mVector):Number{
var _local2:mVector = this.minus(_arg1);
return (_local2.length);
}
public function normalize():mVector{
var _local1:Number = this.length;
if (_local1 == 0){
_local1 = 0.0001;
};
return (this.mult((1 / _local1)));
}
public function getNormal():mVector{
return (new mVector(-(this.m_y), this.m_x));
}
public function isNormalTo(_arg1:mVector):Boolean{
return ((this.dot(_arg1) == 0));
}
public function angleBetween(_arg1:mVector):Number{
var _local2:Number = this.dot(_arg1);
var _local3:Number = (_local2 / (this.length * _arg1.length));
return (TF_Class.acosD(_local3));
}
public function get length():Number{
return (Math.sqrt(((this.m_x * this.m_x) + (this.m_y * this.m_y))));
}
public function set length(_arg1:Number):void{
var _local2:Number = this.length;
if (_local2){
this.multEquals((_arg1 / _local2));
} else {
this.m_x = _arg1;
};
}
public function set angle(_arg1:Number):void{
var _local2:Number = this.length;
this.m_x = (_local2 * TF_Class.cosD(_arg1));
this.m_y = (_local2 * TF_Class.sinD(_arg1));
}
public function get angle():Number{
return (TF_Class.atan2D(this.m_y, this.m_x));
}
public function set x(_arg1:Number):void{
this.m_x = _arg1;
}
public function get x():Number{
return (this.m_x);
}
public function set y(_arg1:Number):void{
this.m_y = _arg1;
}
public function get y():Number{
return (this.m_y);
}
}
}//package zlong.breathxue.utils.math
Section 166
//TF_Class (zlong.breathxue.utils.math.TF_Class)
package zlong.breathxue.utils.math {
public class TF_Class {
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
public static function sinD(_arg1:Number):Number{
return (Math.sin((_arg1 * (Math.PI / 180))));
}
public static function cosD(_arg1:Number):Number{
return (Math.cos((_arg1 * (Math.PI / 180))));
}
public static function tanD(_arg1:Number):Number{
return (Math.tan((_arg1 * (Math.PI / 180))));
}
public static function asinD(_arg1:Number):Number{
return ((Math.asin(_arg1) * (180 / Math.PI)));
}
public static function acosD(_arg1:Number):Number{
return ((Math.acos(_arg1) * (180 / Math.PI)));
}
public static function atanD(_arg1:Number):Number{
return ((Math.atan(_arg1) * (180 / Math.PI)));
}
public static function atan2D(_arg1:Number, _arg2:Number):Number{
return ((Math.atan2(_arg1, _arg2) * (180 / Math.PI)));
}
public static function distance(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number = (_arg3 - _arg1);
var _local6:Number = (_arg4 - _arg2);
return (Math.sqrt(((_local5 * _local5) + (_local6 * _local6))));
}
public static function angleOfLine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (atan2D((_arg4 - _arg2), (_arg3 - _arg1)));
}
public static function degreesToRadians(_arg1:Number):Number{
return ((_arg1 * (Math.PI / 180)));
}
public static function radiansToDegrees(_arg1:Number):Number{
return ((_arg1 * (180 / Math.PI)));
}
public static function fixAngle(_arg1:Number):Number{
_arg1 = (_arg1 % 360);
return (((_arg1)<0) ? (_arg1 + 360) : _arg1);
}
public static function cartesianToPolar(_arg1:mVector):Object{
var _local2:Number = Math.sqrt(((_arg1.x * _arg1.x) + (_arg1.y * _arg1.y)));
var _local3:Number = atan2D(_arg1.y, _arg1.x);
return ({r:_local2, t:_local3});
}
public static function FormatAngle(_arg1:Number):Number{
_arg1 = (_arg1 % 360);
if (_arg1 > 180){
_arg1 = (_arg1 - 360);
};
if (_arg1 < -180){
_arg1 = (_arg1 + 360);
};
return (_arg1);
}
public static function FormatAngle90(_arg1:Number):Number{
_arg1 = (_arg1 % 180);
if (_arg1 > 90){
_arg1 = (180 - _arg1);
};
if (_arg1 < -90){
_arg1 = (_arg1 + 180);
};
return (_arg1);
}
}
}//package zlong.breathxue.utils.math
Section 167
//Attach (zlong.breathxue.utils.Attach)
package zlong.breathxue.utils {
import flash.display.*;
import flash.media.*;
import flash.utils.*;
public class Attach {
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
public static function getDisplayObject(_arg1:String):DisplayObject{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:DisplayObject = new (_local2);
return (_local3);
}
public static function getSprite(_arg1:String):Sprite{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:Sprite = new (_local2);
return (_local3);
}
public static function getMovieClip(_arg1:String):MovieClip{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:MovieClip = new (_local2);
return (_local3);
}
public static function getBitmapData(_arg1:String):BitmapData{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:BitmapData = new _local2(null, null);
return (_local3);
}
public static function getSound(_arg1:String):Sound{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:Sound = new (_local2);
return (_local3);
}
}
}//package zlong.breathxue.utils
Section 168
//breathxue_utils_internal (zlong.breathxue.utils.breathxue_utils_internal)
package zlong.breathxue.utils {
public namespace breathxue_utils_internal = "http://www.zlonggames.com/flash/breathxue/utils/internal";
}//package zlong.breathxue.utils
Section 169
//FrameTimer (zlong.breathxue.utils.FrameTimer)
package zlong.breathxue.utils {
import flash.display.*;
import flash.events.*;
public class FrameTimer implements IEventDispatcher {
private var _ED:EventDispatcher;
private var _runframe:uint;
private var _cycleNum:uint;
private var _step:uint;
private var _id:uint;
private var _returnFunctionAlarm:Function;
private var _returnFunctionFinish:Function;
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
public static const FRAMETIMER_ALARM:String = "FRAMETIMER_ALARM";
public static const FRAMETIMER_FINISH:String = "FRAMETIMER_FINISH";
private static var IdCount:uint = 0;
private static var _arr:Array = new Array();
private static var _listenerMc:DisplayObject;
public function FrameTimer(_arg1:uint, _arg2:uint=0, _arg3:uint=0, _arg4:DisplayObject=null){
this._step = 0;
this._runframe = _arg1;
this._cycleNum = _arg2;
this._ED = new EventDispatcher(this);
if ((((_arg3 > 0)) && (_arg4))){
if (!_arg4.stage){
throw (new ArgumentError("mc didn`t connect stage"));
};
this._runframe = uint(((_arg3 / 1000) * _arg4.stage.frameRate));
};
this._id = FrameTimer.add(this);
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
this._ED.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
this._ED.removeEventListener(_arg1, _arg2, _arg3);
}
public function dispatchEvent(_arg1:Event):Boolean{
return (this._ED.dispatchEvent(_arg1));
}
public function hasEventListener(_arg1:String):Boolean{
return (this._ED.hasEventListener(_arg1));
}
public function willTrigger(_arg1:String):Boolean{
return (this._ED.willTrigger(_arg1));
}
public function del():void{
FrameTimer.delById(this._id);
}
public function get id():uint{
return (this._id);
}
public static function push(_arg1:FrameTimer, _arg2:Function=null, _arg3:Function=null):uint{
_arg1._returnFunctionAlarm = _arg2;
_arg1._returnFunctionFinish = _arg3;
return (_arg1._id);
}
private static function add(_arg1:FrameTimer, _arg2:Function=null, _arg3:Function=null):uint{
_arr.push(_arg1);
if (!_listenerMc){
_listenerMc = new Sprite();
_listenerMc.addEventListener(Event.ENTER_FRAME, run);
};
return (IdCount++);
}
private static function run(_arg1:Event):void{
var _local3:FrameTimer;
var _local2:int;
while (_local2 < _arr.length) {
_local3 = _arr[_local2];
if (_local3._step >= _local3._runframe){
_local3._ED.dispatchEvent(new Event(FRAMETIMER_ALARM));
if (_local3._returnFunctionAlarm != null){
_local3._returnFunctionAlarm();
};
_local3._step = 0;
_local3._step++;
if (_local3._cycleNum <= 0){
_local3._ED.dispatchEvent(new Event(FRAMETIMER_FINISH));
if (_local3._returnFunctionFinish != null){
_local3._returnFunctionFinish();
};
_arr.splice(_local2, 1);
_local2--;
if (_arr.length <= 0){
_listenerMc.removeEventListener(Event.ENTER_FRAME, run);
_listenerMc = null;
};
} else {
_local3._cycleNum--;
};
} else {
_local3._step++;
};
_local2++;
};
}
public static function delById(_arg1:uint):void{
var _local2:int;
while (_local2 < _arr.length) {
if ((_arr[_local2] as FrameTimer)._id == _arg1){
_arr.splice(_local2, 1);
if (_arr.length <= 0){
_listenerMc.removeEventListener(Event.ENTER_FRAME, run);
_listenerMc = null;
};
return;
};
_local2++;
};
}
public static function delAll():void{
_arr = new Array();
if (_listenerMc){
_listenerMc.removeEventListener(Event.ENTER_FRAME, run);
_listenerMc = null;
};
}
public static function pauseAll():void{
_listenerMc.removeEventListener(Event.ENTER_FRAME, run);
}
public static function reStartAll():void{
_listenerMc.addEventListener(Event.ENTER_FRAME, run);
}
}
}//package zlong.breathxue.utils
Section 170
//Tools (zlong.breathxue.utils.Tools)
package zlong.breathxue.utils {
import flash.display.*;
import flash.geom.*;
public class Tools {
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
public static function getNowTimeAndMileSecond_1():String{
var _local1:Date = new Date();
var _local2:int = _local1.getHours();
var _local3:int = _local1.getMinutes();
var _local4:int = _local1.getSeconds();
var _local5:int = _local1.getMilliseconds();
return (((((((((_local2 < 10)) ? ("0" + _local2) : _local2 + ":") + ((_local3 < 10)) ? ("0" + _local3) : _local3) + ":") + ((_local4 < 10)) ? ("0" + _local4) : _local4) + ":") + ((_local5 < 10)) ? ("00" + _local5) : ((_local5 < 100)) ? ("0" + _local5) : _local5));
}
public static function cutBmp(_arg1:DisplayObject, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):BitmapData{
var _local8:BitmapData;
var _local9:Rectangle;
var _local10:Matrix = new Matrix();
_local10.tx = -(_arg4);
_local10.ty = -(_arg5);
_local9 = new Rectangle(0, 0, _arg6, _arg7);
_local8 = new BitmapData(_arg2, _arg3, true, 0);
_local8.draw(_arg1, _local10, null, null, _local9, true);
return (_local8);
}
}
}//package zlong.breathxue.utils
Section 171
//Countries (zlong.country.Countries)
package zlong.country {
import zlong.country.*;
import zlong.*;
class Countries {
private var _countries:Object;
private var _portal:String;
private var _portalGroup:Array;
private var _country:String;
private var _countryGroup:Array;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
function Countries(){
this.initPortalGroup();
}
function set portal(_arg1:String):void{
if (!this.inArray(_arg1, this._portalGroup)){
throw (new ArgumentError(("Please set portal with value : " + this._portalGroup.toString())));
};
this._portal = _arg1;
this.initCountries();
if (((!((this._country == null))) && (!(this.inArray(this._country, this._countryGroup))))){
throw (new ArgumentError(("Please reset country with value : " + this._countryGroup.toString())));
};
}
function get portal():String{
return (this._portal);
}
function set country(_arg1:String):void{
if (((!((this._countryGroup == null))) && (!(this.inArray(_arg1, this._countryGroup))))){
this._country = this._countryGroup[0];
trace(("Error in the country value,set country with default value : " + this._countryGroup[0]));
trace(("Please set country with value : " + this._countryGroup.toString()));
} else {
this._country = _arg1;
};
}
function get current():CountryItem{
if (this._portal == null){
throw (new ArgumentError("Please set portal"));
};
if (this._country == null){
throw (new ArgumentError("Please set country"));
};
return (this._countries[this._country]);
}
function get countryGroup():Array{
if (this._countryGroup == null){
throw (new ArgumentError("Please set portal"));
};
return (this._countryGroup);
}
private function initCountries():void{
var _local1:CountryItem;
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:int;
this._countries = new Object();
this._countryGroup = new Array();
var _local6:int;
while (_local6 < CountriesData.DATA[this._portal]["country"].length()) {
_local2 = CountriesData.DATA[this._portal]["country"][_local6].@name;
_local3 = CountriesData.DATA[this._portal]["country"][_local6].@domain;
_local4 = CountriesData.DATA[this._portal]["country"][_local6].@game;
_local5 = int(CountriesData.DATA[this._portal]["country"][_local6].@language);
_local1 = new CountryItem();
_local1.name = _local2;
_local1.domain = _local3;
_local1.game = _local4;
_local1.language = _local5;
this._countries[_local1.name] = _local1;
this._countryGroup.push(_local2);
_local6++;
};
}
private function initPortalGroup():void{
this._portalGroup = new Array();
var _local1:int;
while (_local1 < CountriesData.DATA.children().length()) {
this._portalGroup.push(CountriesData.DATA.children()[_local1].name());
_local1++;
};
}
private function inArray(_arg1:String, _arg2:Array):Boolean{
var _local3:int;
while (_local3 < _arg2.length) {
if (_arg1 == _arg2[_local3]){
return (true);
};
_local3++;
};
return (false);
}
}
}//package zlong.country
Section 172
//CountriesData (zlong.country.CountriesData)
package zlong.country {
import zlong.*;
class CountriesData {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
static const DATA:XML = <data>
<family>
<!-- new -->
<country name="arg" domain="www.juegos.com.ar" game="game" language="6"/><!-- Argentina -->
<country name="mx" domain="www.juegos.mx" game="game" language="6"/><!-- Mexico -->
<country name="ar" domain="www.dailygame.com" game="game" language="1"/><!-- Arabic(English US) 2009.07.14-->
<country name="br" domain="www.ojogos.com.br" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="17"/><!-- Chinese -->
<country name="de" domain="www.jetztspielen.de" game="spiel" language="5"/><!-- German -->
<country name="es" domain="www.juegos.com" game="juego" language="6"/><!-- Spanish -->
<country name="fr" domain="www.jeux.fr" game="jeu" language="4"/><!-- French -->
<country name="id" domain="www.games.co.id" game="permainanme" language="14"/><!-- Indonesian -->
<country name="in" domain="www.game.co.in" game="game" language="2"/><!-- English UK -->
<country name="it" domain="www.gioco.it" game="gioco" language="9"/><!-- Italian -->
<country name="jp" domain="www.egames.jp" game="game" language="16"/><!-- Japanese -->
<country name="nl" domain="www.spelletjes.nl" game="spel" language="3"/><!-- Dutch -->
<country name="pl" domain="www.gry.pl" game="gra" language="11"/><!-- Polish -->
<country name="pt" domain="www.ojogos.pt" game="jogo" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.ourgames.ru" game="igra" language="12"/><!-- Russian -->
<country name="se" domain="www.spela.se" game="spel_" language="10"/><!-- Swedish -->
<country name="en_uk" domain="www.games.co.uk" game="game" language="2"/><!-- English UK -->
<country name="en_us" domain="www.gamesgames.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
<!-- country name="ph" domain="www.laro.com.ph" game="game" language="2"/ --><!-- English UK -->
<!-- country name="tr" domain="www.asoyun.com" game="oyun" language="13"/ --><!-- Turkish -->
<!-- country name="my" domain="www.game.com.my" game="permainan_" language="15"/ --><!-- Malaysian -->
</family>
<tween>
<!-- new -->
<country name="arg" domain="www.juegos.com.ar" game="game" language="6"/><!-- Argentina -->
<country name="mx" domain="www.juegos.mx" game="game" language="6"/><!-- Mexico -->
<country name="ar" domain="www.dailygame.com" game="game" language="1"/><!-- Arabic(English US) 2009.07.14 -->
<country name="br" domain="www.clickjogos.com" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="17"/><!-- Chinese -->
<country name="de" domain="www.spielen.com" game="spiel" language="5"/><!-- German -->
<country name="es" domain="www.zapjuegos.com" game="juego" language="6"/><!-- Spanish -->
<country name="fr" domain="www.jeu.fr" game="jeu" language="4"/><!-- French -->
<country name="id" domain="www.games.co.id" game="permainanme" language="14"/><!-- Indonesian -->
<country name="in" domain="www.game.co.in" game="game" language="2"/><!-- English UK -->
<country name="it" domain="www.gioco.it" game="gioco" language="9"/><!-- Italian 2009.08.10 -->
<country name="jp" domain="www.egames.jp" game="game" language="16"/><!-- Japanese -->
<country name="nl" domain="www.spel.nl" game="spel" language="3"/><!-- Dutch -->
<country name="pl" domain="www.gry.pl" game="gra" language="11"/><!-- Polish 2009.08.10-->
<country name="pt" domain="www.ojogos.pt" game="jogo" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.flashgames.ru" game="igra" language="12"/><!-- Russian -->
<country name="se" domain="www.spel.se" game="spel_" language="10"/><!-- Swedish -->
<country name="en_uk" domain="www.agame.com" game="game" language="2"/><!-- English UK 2009.08.28-->
<country name="en_us" domain="www.agame.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
<!-- country name="ph" domain="www.laro.com.ph" game="game" language="2"/ --><!-- English UK -->
<!-- country name="tr" domain="www.asoyun.com" game="oyun" language="13"/ --><!-- Turkish -->
<!-- country name="my" domain="www.game.com.my" game="permainan_" language="15"/ --><!-- Malaysian -->
</tween>
<girl>
<!-- new -->
<country name="arg" domain="www.juegosdechicas.com.ar" game="game" language="6"/><!-- Argentina -->
<country name="mx" domain="www.juegosdechicas.mx" game="game" language="6"/><!-- Mexico -->
<country name="ar" domain="www.dailygame.com" game="game" language="1"/><!-- Arabic(English US) 2009.07.14-->
<country name="br" domain="www.girlsgogames.com.br" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="17"/><!-- Chinese -->
<country name="de" domain="www.girlsgogames.de" game="spiel" language="5"/><!-- German -->
<country name="es" domain="www.girlsgogames.es" game="juego" language="6"/><!-- Spanish -->
<country name="fr" domain="www.girlsgogames.fr" game="jeu" language="4"/><!-- French -->
<country name="id" domain="www.games.co.id" game="permainanme" language="14"/><!-- Indonesian -->
<country name="in" domain="www.game.co.in" game="game" language="2"/><!-- English UK -->
<country name="it" domain="www.girlsgogames.it" game="gioco" language="9"/><!-- Italian -->
<country name="jp" domain="www.egames.jp" game="game" language="16"/><!-- Japanese -->
<country name="nl" domain="www.girlsgogames.nl" game="spel" language="3"/><!-- Dutch -->
<country name="pl" domain="www.girlsgogames.pl" game="gra" language="11"/><!-- Polish -->
<country name="pt" domain="www.ojogos.pt" game="jogo" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.girlsgogames.ru" game="igra" language="12"/><!-- Russian -->
<country name="se" domain="www.girlsgogames.se" game="spel_" language="10"/><!-- Swedish -->
<country name="en_uk" domain="www.girlsgogames.co.uk" game="game" language="2"/><!-- English UK -->
<country name="en_us" domain="www.girlsgogames.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
<!-- country name="ph" domain="www.laro.com.ph" game="game" language="2"/ --><!-- English UK -->
<!-- country name="tr" domain="www.girlsgogamestr.com" game="oyun" language="13"/ --><!-- Turkish -->
<!-- country name="my" domain="www.game.com.my" game="permainan_" language="15"/ --><!-- Malaysian -->
</girl>
<teen>
<!-- new -->
<!--country name="arg" domain="www.juegosdechicas.com.ar" game="game" language="6"/ --><!-- Argentina -->
<!--country name="mx" domain="www.juegosdechicas.mx" game="game" language="6"/ --><!-- Mexico -->
<!--country name="ar" domain="www.dailygame.com" game="game" language="1"/ --><!-- Arabic(English US) 2009.07.14-->
<!--country name="br" domain="www.a10.com" game="jogo" language="7"/ --><!-- Brazillian -->
<!--country name="cn" domain="www.game.com.cn" game="moregames" language="17"/ --><!-- Chinese -->
<!--country name="de" domain="www.a10.com" game="spiel" language="5"/ --><!-- German -->
<!--country name="es" domain="www.a10.com" game="juego" language="6"/ --><!-- Spanish -->
<!--country name="fr" domain="www.a10.com" game="jeu" language="4"/ --><!-- French -->
<!--country name="id" domain="www.a10.com" game="permainanme" language="14"/ --><!-- Indonesian -->
<!--country name="in" domain="www.a10.com" game="game" language="2"/ --><!-- English UK -->
<!--country name="it" domain="www.a10.com" game="gioco" language="9"/ --><!-- Italian -->
<!--country name="jp" domain="www.a10.com" game="game" language="16"/ --><!-- Japanese -->
<!--country name="nl" domain="www.a10.com" game="spel" language="3"/ --><!-- Dutch -->
<!--country name="pl" domain="www.a10.com" game="gra" language="11"/ --><!-- Polish -->
<!--country name="pt" domain="www.a10.com" game="jogo" language="8"/ --><!-- Portuguese -->
<!--country name="ru" domain="www.a10.com" game="igra" language="12"/ --><!-- Russian -->
<!--country name="se" domain="www.a10.com" game="spel_" language="10"/ --><!-- Swedish -->
<!--country name="en_uk" domain="www.a10.com" game="game" language="2"/ --><!-- English UK -->
<country name="en_us" domain="www.a10.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
<!-- country name="ph" domain="www.a10.com" game="game" language="2"/ --><!-- English UK -->
<!-- country name="tr" domain="www.a10.com" game="oyun" language="13"/ --><!-- Turkish -->
<!-- country name="my" domain="www.a10.com" game="permainan_" language="15"/ --><!-- Malaysian -->
</teen>
<zapapa>
<!-- new -->
<country name="arg" domain="www.zapapa.com" game="game" language="6"/><!-- Argentina -->
<country name="mx" domain="www.zapapa.com" game="game" language="6"/><!-- Mexico -->
<country name="ar" domain="www.zapapa.com" game="game" language="1"/><!-- Arabic(English US) 2009.07.14-->
<country name="br" domain="www.zapapa.com" game="game" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.zapapa.com" game="game" language="17"/><!-- Chinese -->
<country name="de" domain="www.zapapa.com" game="game" language="5"/><!-- German -->
<country name="es" domain="www.zapapa.com" game="game" language="6"/><!-- Spanish -->
<country name="fr" domain="www.zapapa.com" game="game" language="4"/><!-- French -->
<country name="id" domain="www.zapapa.com" game="game" language="14"/><!-- Indonesian -->
<country name="in" domain="www.zapapa.com" game="game" language="2"/><!-- English UK -->
<country name="it" domain="www.zapapa.com" game="game" language="9"/><!-- Italian -->
<country name="jp" domain="www.zapapa.com" game="game" language="16"/><!-- Japanese -->
<country name="nl" domain="www.zapapa.com" game="game" language="3"/><!-- Dutch -->
<country name="pl" domain="www.zapapa.com" game="game" language="11"/><!-- Polish -->
<country name="pt" domain="www.zapapa.com" game="game" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.zapapa.com" game="game" language="12"/><!-- Russian -->
<country name="se" domain="www.zapapa.com" game="game" language="10"/><!-- Swedish -->
<country name="en_uk" domain="www.zapapa.com" game="game" language="2"/><!-- English UK -->
<country name="en_us" domain="www.zapapa.com" game="game" language="1"/><!-- English US -->
</zapapa>
<hyves>
<!-- new -->
<country name="nl" domain="www.zapapa.nl" game="game" language="3"/><!-- Dutch -->
</hyves>
</data>
;
}
}//package zlong.country
Section 173
//CountryInfo (zlong.country.CountryInfo)
package zlong.country {
import zlong.domain.*;
import zlong.*;
import zlong.data.*;
public class CountryInfo {
private var countries:Countries;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
private static var _instance:CountryInfo;
public function CountryInfo(){
this.countries = new Countries();
}
public function set portal(_arg1:String):void{
this.countries.portal = _arg1;
}
public function get portal():String{
return (this.countries.portal);
}
public function set country(_arg1:String):void{
this.countries.country = _arg1;
}
public function get country():String{
return (this.countries.current.name);
}
public function get domain():String{
return (this.countries.current.domain);
}
public function get language():int{
return (this.countries.current.language);
}
public function get countryGroup():Array{
return (this.countries.countryGroup);
}
public function get moreGameLink():String{
var _local1:String;
_local1 = ("http://" + this.domain);
if (this.countries.current.name != "cn"){
_local1 = (_local1 + "/");
_local1 = (_local1 + ("?utm_medium=brandedgames_" + (DomainInfo.instance.allowed) ? "internal" : "external"));
_local1 = (_local1 + ("&utm_campaign=" + GameInfo.name));
_local1 = (_local1 + ("&utm_source=" + DomainInfo.instance.domainAb));
} else {
_local1 = (_local1 + "/");
_local1 = (_local1 + "moregames");
_local1 = (_local1 + "/");
};
return (_local1);
}
public function get thisGameLink():String{
var _local1:String;
_local1 = ("http://" + this.domain);
_local1 = (_local1 + ((("/" + this.countries.current.game) + "/") + GameInfo.html));
if (this.countries.current.name != "cn"){
_local1 = (_local1 + ("?utm_medium=brandedgames_" + (DomainInfo.instance.allowed) ? "internal" : "external"));
_local1 = (_local1 + ("&utm_campaign=" + GameInfo.name));
_local1 = (_local1 + ("&utm_source=" + DomainInfo.instance.domainAb));
};
return (_local1);
}
public function get sendToFriendLink():String{
var _local1:String = this.thisGameLink;
if (this.countries.current.name != "cn"){
_local1 = (_local1 + "&utm_content=send_to_friend");
};
return (_local1);
}
public static function get instance():CountryInfo{
if (_instance == null){
_instance = new (CountryInfo);
};
return (_instance);
}
}
}//package zlong.country
Section 174
//CountryItem (zlong.country.CountryItem)
package zlong.country {
import zlong.*;
final class CountryItem {
var name:String;
var domain:String;
var game:String;
var language:int;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
}
}//package zlong.country
Section 175
//CountryCookie (zlong.data.CountryCookie)
package zlong.data {
import flash.net.*;
import zlong.*;
public class CountryCookie {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
private static const name:String = "spilgames_language_v100";
private static const countryName:String = "savedLang";
private static var so:SharedObject;
public function CountryCookie():void{
so = SharedObject.getLocal(name, "/");
}
localComponent_internal static function set country(_arg1:String):void{
so.data[countryName] = _arg1;
}
localComponent_internal static function get country():String{
return (so.data[countryName]);
}
}
}//package zlong.data
Section 176
//GameInfo (zlong.data.GameInfo)
package zlong.data {
import zlong.*;
public class GameInfo {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
localComponent_internal static var cnversion:Boolean = false;
localComponent_internal static var portal:String = "family";
localComponent_internal static var name:String = "game_name";
localComponent_internal static var html:String = "Game-Name.html";
localComponent_internal static var width:int = 550;
localComponent_internal static var height:int = 400;
}
}//package zlong.data
Section 177
//AbstractBindingDisplay (zlong.display.AbstractBindingDisplay)
package zlong.display {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class AbstractBindingDisplay extends MovieClip {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public function AbstractBindingDisplay(){
if (getQualifiedClassName(this) == "zlong::display::AbstractBindingDisplay"){
throw (new ArgumentError("can't be constructed"));
};
}
public function initEvent(_arg1:Event=null):void{
}
public function delEvent(_arg1:Event=null):void{
}
}
}//package zlong.display
Section 178
//BindingDisplayEvent (zlong.display.BindingDisplayEvent)
package zlong.display {
import flash.events.*;
public class BindingDisplayEvent extends Event {
private var _BD:AbstractBindingDisplay;
private var _displayType:String;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public static const BINDING_DISPLAY_INIT:String = "BINDING_DISPLAY_INIT";
public static const BINDING_DISPLAY_DEL_EVENT:String = "BINDING_DISPLAY_DEL_EVENT";
public static const BINDING_DISPLAY_ADDED_TO_STAGE:String = "BINDING_DISPLAY_ADDED_TO_STAGE";
public static const BINDING_DISPLAY_REMOVE_TO_STAGE:String = "BINDING_DISPLAY_REMOVE_TO_STAGE";
public function BindingDisplayEvent(_arg1:String, _arg2:AbstractBindingDisplay, _arg3:String, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this._BD = _arg2;
this._displayType = _arg3;
}
public function get bindingDisplay():AbstractBindingDisplay{
return (this._BD);
}
public function get displayType():String{
return (this._displayType);
}
}
}//package zlong.display
Section 179
//BindingDisplayManager (zlong.display.BindingDisplayManager)
package zlong.display {
import flash.events.*;
public class BindingDisplayManager extends EventDispatcher {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
private static var _instance:BindingDisplayManager;
public function BindingDisplayManager():void{
}
public static function get Instance():BindingDisplayManager{
if (_instance == null){
_instance = new (BindingDisplayManager);
};
return (_instance);
}
}
}//package zlong.display
Section 180
//Copyright (zlong.display.Copyright)
package zlong.display {
import flash.events.*;
import zlong.navigate.*;
public class Copyright extends AbstractBindingDisplay {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public function Copyright(){
this.gotoAndStop(1);
this.buttonMode = true;
this.mouseChildren = false;
addEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_INIT, this, "Copyright"));
}
private function addToStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_ADDED_TO_STAGE, this, "Copyright"));
this.initEvent();
}
private function removeFromStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_REMOVE_TO_STAGE, this, "Copyright"));
this.delEvent();
}
override public function initEvent(_arg1:Event=null):void{
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
this.addEventListener(MouseEvent.CLICK, Handler.click_copyright);
this.addEventListener(MouseEvent.ROLL_OVER, this.rollOverHandler);
this.addEventListener(MouseEvent.MOUSE_DOWN, this.mouseDownHandler);
this.addEventListener(MouseEvent.MOUSE_UP, this.mouseUpHandler);
this.addEventListener(MouseEvent.ROLL_OUT, this.rollOutHandler);
this.addEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
}
override public function delEvent(_arg1:Event=null):void{
this.removeEventListener(MouseEvent.CLICK, Handler.click_copyright);
this.removeEventListener(MouseEvent.ROLL_OVER, this.rollOverHandler);
this.removeEventListener(MouseEvent.MOUSE_DOWN, this.mouseDownHandler);
this.removeEventListener(MouseEvent.MOUSE_UP, this.mouseUpHandler);
this.removeEventListener(MouseEvent.ROLL_OUT, this.rollOutHandler);
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
if (this.hasEventListener(Event.REMOVED_FROM_STAGE)){
removeEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
};
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_DEL_EVENT, this, "Copyright"));
}
private function rollOverHandler(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function mouseDownHandler(_arg1:MouseEvent):void{
this.gotoAndStop(3);
}
private function mouseUpHandler(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function rollOutHandler(_arg1:MouseEvent):void{
this.gotoAndStop(1);
}
}
}//package zlong.display
Section 181
//CountriesBox (zlong.display.CountriesBox)
package zlong.display {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import zlong.country.*;
import zlong.data.*;
public class CountriesBox extends AbstractBindingDisplay {
private var i:uint;
private var mul:int;// = 1
private var baseX:Number;// = 0
private var baseY:Number;// = 0
private var nameGroup:Array;
private var obj:Object;
private var pop:Sprite;
private var flagMc:MovieClip;
private var selectBox:MovieClip;
private var country_name:MovieClip;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public function CountriesBox(){
this.nameGroup = [];
super();
addEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_INIT, this, "CountriesBox"));
}
private function addToStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_ADDED_TO_STAGE, this, "CountriesBox"));
this.initEvent();
}
private function removeFromStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_REMOVE_TO_STAGE, this, "CountriesBox"));
this.delEvent();
}
override public function initEvent(_arg1:Event=null):void{
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
this.initShow();
addEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
}
override public function delEvent(_arg1:Event=null):void{
removeEventListener(MouseEvent.ROLL_OVER, this.overHandler);
removeEventListener(MouseEvent.ROLL_OUT, this.outHandler);
removeEventListener(MouseEvent.CLICK, this.clickHandler);
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
if (this.hasEventListener(Event.REMOVED_FROM_STAGE)){
removeEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
};
this.delPoPEvent();
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_DEL_EVENT, this, "CountriesBox"));
}
private function initShow():void{
this.obj = new Object();
this.initPos();
this.setFlag();
this.setPop();
this.initFlagEvent();
this.initPoPEvent();
if (GameInfo.cnversion){
this.visible = false;
this.setLanguage("cn");
};
}
private function initPos():void{
var _local1:Point = new Point();
_local1 = this.parent.localToGlobal(new Point(x, y));
if (_local1.y > (GameInfo.height / 2)){
this.mul = 1;
} else {
this.mul = -1;
};
}
private function setFlag():void{
this.country_name = (getChildByName("countryName") as MovieClip);
this.flagMc = (getChildByName("flag") as MovieClip);
this.flagMc.gotoAndStop(CountryInfo.instance.country);
this.country_name.gotoAndStop(CountryInfo.instance.country);
}
private function setPop():void{
var _local1:Number;
var _local2:Number;
var _local5:MovieClip;
var _local6:String;
var _local8:MovieClip;
var _local3:Number = 0;
var _local4:Number = 0;
this.pop = (getChildByName("popList") as Sprite);
this.selectBox = (getChildByName("selectbox") as MovieClip);
_local1 = this.pop.getChildByName("_blank").width;
_local2 = (this.pop.getChildByName("_blank").height - 1);
this.baseX = this.selectBox.x;
this.nameGroup = CountryInfo.instance.countryGroup;
var _local7:int = this.nameGroup.length;
if (this.mul == 1){
this.baseY = ((this.selectBox.y - (Math.round((_local7 / 2)) * _local2)) + _local2);
} else {
this.baseY = ((this.selectBox.y + this.selectBox.height) + _local2);
};
this.pop.y = this.baseY;
this.pop.visible = false;
this.pop.getChildByName("_blank").visible = false;
this.i = 0;
while (this.i < _local7) {
_local6 = this.nameGroup[this.i];
if (this.pop.getChildByName(("l_" + _local6)) != null){
_local5 = (this.pop.getChildByName(("l_" + _local6)) as MovieClip);
_local5.mouseChildren = false;
_local5.buttonMode = true;
_local5.stop();
_local8 = (_local5.getChildByName("flag") as MovieClip);
_local8.mouseEnabled = false;
_local8.mouseChildren = false;
_local8.gotoAndStop(_local6);
this.obj[("l_" + _local6)] = true;
_local3 = (((this.i % 2) == 0)) ? 0 : 1;
_local5.x = ((_local1 * (this.i % 2)) - _local3);
_local5.y = ((_local2 * Math.floor((this.i / 2))) - _local2);
};
this.i++;
};
this.i = 0;
while (this.i < this.pop.numChildren) {
if (this.pop.getChildAt(this.i).name.indexOf("l_") != -1){
if (this.obj[this.pop.getChildAt(this.i).name] == undefined){
this.pop.getChildAt(this.i).visible = false;
};
};
this.i++;
};
if ((this.nameGroup.length % 2) == 0){
this.pop.getChildByName("_blank").visible = false;
} else {
this.pop.getChildByName("_blank").visible = true;
this.pop.getChildByName("_blank").x = (_local1 - 1);
this.pop.getChildByName("_blank").y = (((_local2 * Math.floor((this.nameGroup.length / 2))) - _local2) - _local4);
};
}
private function initFlagEvent():void{
addEventListener(MouseEvent.ROLL_OVER, this.overHandler, false, 0, true);
addEventListener(MouseEvent.ROLL_OUT, this.outHandler, false, 0, true);
addEventListener(MouseEvent.CLICK, this.clickHandler, false, 0, true);
}
private function clickHandler(_arg1:MouseEvent):void{
var _local3:MovieClip;
var _local2:String = _arg1.target["name"];
if (_local2 == "_blank"){
return;
};
if (_local2.indexOf("l_") != -1){
_local3 = (_arg1.target["getChildByName"]("flag") as MovieClip);
this.flagMc.gotoAndStop(_local2.substr(2));
this.country_name.gotoAndStop(_local3.currentFrame);
this.setLanguage(_local2.substr(2));
this.pop.visible = false;
};
}
private function setLanguage(_arg1:String):void{
CountryInfo.instance.country = _arg1;
CountryCookie.country = _arg1;
Dispatcher.langChanged();
}
private function overHandler(_arg1:MouseEvent):void{
this.pop.visible = true;
}
private function outHandler(_arg1:MouseEvent):void{
this.pop.visible = false;
}
private function initPoPEvent():void{
this.pop.addEventListener(MouseEvent.MOUSE_OVER, this.overPoPHandler);
this.pop.addEventListener(MouseEvent.MOUSE_OUT, this.outPoPHandler);
}
private function delPoPEvent():void{
this.pop.removeEventListener(MouseEvent.MOUSE_OVER, this.overPoPHandler);
this.pop.removeEventListener(MouseEvent.MOUSE_OUT, this.outPoPHandler);
}
private function overPoPHandler(_arg1:MouseEvent):void{
var _local2 = _arg1.target;
_local2["gotoAndStop"](2);
}
private function outPoPHandler(_arg1:MouseEvent):void{
var _local2 = _arg1.target;
_local2["gotoAndStop"](1);
}
}
}//package zlong.display
Section 182
//Dispatcher (zlong.display.Dispatcher)
package zlong.display {
import flash.events.*;
import zlong.*;
class Dispatcher {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
static const LANGUAGE_CHANGED:String = "languageChanged";
static var dispatcher:EventDispatcher = new EventDispatcher();
static function langChanged():void{
dispatcher.dispatchEvent(new Event(LANGUAGE_CHANGED));
}
}
}//package zlong.display
Section 183
//ExtButton (zlong.display.ExtButton)
package zlong.display {
import flash.events.*;
import zlong.navigate.*;
public class ExtButton extends AbstractBindingDisplay {
private var _type:String;// = "moregames"
private var _position:String;// = "button_preloader"
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public function ExtButton(){
this.gotoAndStop(1);
this.buttonMode = true;
this.mouseChildren = false;
addEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_INIT, this, "ExtButton"));
}
private function addToStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_ADDED_TO_STAGE, this, "ExtButton"));
this.initEvent();
}
private function removeFromStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_REMOVE_TO_STAGE, this, "ExtButton"));
this.delEvent();
}
override public function initEvent(_arg1:Event=null):void{
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
this.addEventListener(MouseEvent.CLICK, this.clickHandler);
this.addEventListener(MouseEvent.ROLL_OVER, this.rollOverHandler);
this.addEventListener(MouseEvent.MOUSE_DOWN, this.mouseDownHandler);
this.addEventListener(MouseEvent.MOUSE_UP, this.mouseUpHandler);
this.addEventListener(MouseEvent.ROLL_OUT, this.rollOutHandler);
this.addEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
}
override public function delEvent(_arg1:Event=null):void{
this.removeEventListener(MouseEvent.CLICK, this.clickHandler);
this.removeEventListener(MouseEvent.ROLL_OVER, this.rollOverHandler);
this.removeEventListener(MouseEvent.MOUSE_DOWN, this.mouseDownHandler);
this.removeEventListener(MouseEvent.MOUSE_UP, this.mouseUpHandler);
this.removeEventListener(MouseEvent.ROLL_OUT, this.rollOutHandler);
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
if (this.hasEventListener(Event.REMOVED_FROM_STAGE)){
removeEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
};
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_DEL_EVENT, this, "ExtButton"));
}
public function set position(_arg1:String):void{
this._position = _arg1;
}
public function set type(_arg1:String):void{
this._type = _arg1;
}
private function clickHandler(_arg1:MouseEvent):void{
if (this._type == "moregames"){
Handler.click_moregames(this._position);
} else {
Handler.click_thisgame(this._position);
};
}
private function rollOverHandler(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function mouseDownHandler(_arg1:MouseEvent):void{
this.gotoAndStop(3);
}
private function mouseUpHandler(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function rollOutHandler(_arg1:MouseEvent):void{
this.gotoAndStop(1);
}
}
}//package zlong.display
Section 184
//Logo (zlong.display.Logo)
package zlong.display {
import flash.display.*;
import flash.events.*;
import zlong.country.*;
import zlong.navigate.*;
public class Logo extends AbstractBindingDisplay {
private const MAX_WIDTH:int = 200;
private const Max_HEIGHT:int = 50;
private var _hitArea:Sprite;
private var _position:String;// = "logo_preloader"
private var _alignHorizontal:String;// = "Center"
private var _alignVertical:String;// = "Center"
private var _maxWidth:Number;// = 150
private var _maxHeight:Number;// = 40
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public function Logo(){
this.initDis();
addEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler, false, 0, true);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_INIT, this, "Logo"));
}
private function addToStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_ADDED_TO_STAGE, this, "Logo"));
this.initEvent();
}
private function removeFromStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_REMOVE_TO_STAGE, this, "Logo"));
this.delEvent();
}
override public function initEvent(_arg1:Event=null):void{
gotoAndStop(CountryInfo.instance.domain);
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
this.addEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
this.addEventListener(MouseEvent.CLICK, this.clickHandler);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, this.langChangeHandler);
this.updateView();
}
override public function delEvent(_arg1:Event=null):void{
this.delDis();
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
if (this.hasEventListener(Event.REMOVED_FROM_STAGE)){
removeEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
};
this.removeEventListener(MouseEvent.CLICK, this.clickHandler);
Dispatcher.dispatcher.removeEventListener(Dispatcher.LANGUAGE_CHANGED, this.langChangeHandler);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_DEL_EVENT, this, "Logo"));
}
public function set position(_arg1:String):void{
this._position = _arg1;
}
public function set alignHorizontal(_arg1:String):void{
this._alignHorizontal = _arg1;
}
public function set alignVertical(_arg1:String):void{
this._alignVertical = _arg1;
}
public function set maxWidth(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
} else {
if (_arg1 > this.MAX_WIDTH){
_arg1 = this.MAX_WIDTH;
};
};
this._maxWidth = _arg1;
}
public function set maxHeight(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
} else {
if (_arg1 > this.Max_HEIGHT){
_arg1 = this.Max_HEIGHT;
};
};
this._maxHeight = _arg1;
}
private function updateView():void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local1:Sprite = (this.getChildAt(0) as Sprite);
if (!_local1){
return;
};
_local1.scaleX = 1;
_local1.scaleY = 1;
if ((((_local1.height > 0)) && ((_local1.width > 0)))){
_local2 = (this._maxHeight / _local1.height);
_local3 = (this._maxWidth / _local1.width);
_local4 = ((_local2 > _local3)) ? _local3 : _local2;
_local1.scaleX = _local4;
_local1.scaleY = _local4;
};
if (this._alignHorizontal){
switch (this._alignHorizontal){
case "Left":
_local1.x = 0;
break;
case "Right":
_local1.x = (this.MAX_WIDTH - _local1.width);
break;
case "Center":
_local1.x = ((this.MAX_WIDTH - _local1.width) / 2);
break;
};
};
if (this._alignVertical){
switch (this._alignVertical){
case "Up":
_local1.y = 0;
break;
case "Down":
_local1.y = (this.Max_HEIGHT - _local1.height);
break;
case "Center":
_local1.y = ((this.Max_HEIGHT - _local1.height) / 2);
break;
};
};
this._hitArea.width = _local1.width;
this._hitArea.height = _local1.height;
this._hitArea.x = _local1.x;
this._hitArea.y = _local1.y;
}
private function initDis():void{
buttonMode = true;
this._hitArea = new Sprite();
this.addChild(this._hitArea);
this._hitArea.graphics.beginFill(3368601, 0);
this._hitArea.graphics.drawRect(0, 0, 10, 10);
this._hitArea.graphics.endFill();
this.getChildByName("displayArea_mc").visible = false;
var _local1:int;
while (_local1 < this.totalFrames) {
this.addFrameScript(_local1, this.updateView);
_local1++;
};
}
private function delDis():void{
stop();
}
private function clickHandler(_arg1:MouseEvent):void{
Handler.click_moregames(this._position);
}
private function langChangeHandler(_arg1:Event):void{
gotoAndStop(CountryInfo.instance.domain);
}
}
}//package zlong.display
Section 185
//Menu (zlong.display.Menu)
package zlong.display {
import flash.events.*;
import flash.display.*;
import zlong.country.*;
import zlong.*;
import flash.ui.*;
import zlong.navigate.*;
public class Menu {
private var displayObject:InteractiveObject;
private var menu:ContextMenu;
private var item:ContextMenuItem;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public function Menu(_arg1:InteractiveObject){
this.displayObject = _arg1;
this.init();
this.initEvent();
}
private function init():void{
this.menu = new ContextMenu();
this.menu.hideBuiltInItems();
var _local1:ContextMenuBuiltInItems = this.menu.builtInItems;
_local1.print = true;
_local1.zoom = true;
_local1.quality = true;
this.item = new ContextMenuItem(("MoreGame: " + CountryInfo.instance.domain));
this.menu.customItems.push(this.item);
this.displayObject.contextMenu = this.menu;
}
private function initEvent():void{
this.item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, this.clickItemHandler);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, this.changeLang);
}
private function changeLang(_arg1:Event):void{
this.item.caption = CountryInfo.instance.domain;
}
private function clickItemHandler(_arg1:ContextMenuEvent):void{
Handler.click_moregames("Contex_Menu");
}
}
}//package zlong.display
Section 186
//TranText (zlong.display.TranText)
package zlong.display {
import flash.events.*;
import zlong.country.*;
public class TranText extends AbstractBindingDisplay {
private var isChange:Boolean;// = true
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public function TranText(){
addEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler, false, 0, true);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_INIT, this, "TranText"));
}
private function addToStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_ADDED_TO_STAGE, this, "TranText"));
this.initEvent();
}
private function removeFromStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_REMOVE_TO_STAGE, this, "TranText"));
this.delEvent();
}
override public function initEvent(_arg1:Event=null):void{
this.changeLang();
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
addEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, this.langChangeHandler);
}
override public function delEvent(_arg1:Event=null):void{
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
if (this.hasEventListener(Event.REMOVED_FROM_STAGE)){
removeEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
};
Dispatcher.dispatcher.removeEventListener(Dispatcher.LANGUAGE_CHANGED, this.langChangeHandler);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_DEL_EVENT, this, "TranText"));
}
public function set change(_arg1:Boolean):void{
this.isChange = _arg1;
}
private function changeLang():void{
gotoAndStop(CountryInfo.instance.language);
}
private function langChangeHandler(_arg1:Event):void{
if (this.isChange){
this.changeLang();
};
}
}
}//package zlong.display
Section 187
//DomainData (zlong.domain.DomainData)
package zlong.domain {
import zlong.*;
final class DomainData {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
static const allowedDomain:Array = ["www8.agame.com", "www.zlonggamestest.com", "gamedev.dev.spilgames.com"];
}
}//package zlong.domain
Section 188
//DomainInfo (zlong.domain.DomainInfo)
package zlong.domain {
import flash.net.*;
import zlong.*;
public final class DomainInfo {
private var _allowed:Boolean;
private var _domain:String;
private var _domainAb:String;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
private static var _instance:DomainInfo;
public function DomainInfo(){
this._domain = new LocalConnection().domain;
this.initAllowed();
this.initAb();
}
localComponent_internal function get allowed():Boolean{
return (this._allowed);
}
localComponent_internal function get domain():String{
return (this._domain);
}
localComponent_internal function get domainAb():String{
return (this._domainAb);
}
private function initAllowed():void{
var _local1:int;
while (_local1 < DomainData.allowedDomain.length) {
if (this._domain == DomainData.allowedDomain[_local1]){
this._allowed = true;
break;
};
_local1++;
};
}
private function initAb():void{
var _local1:Array;
var _local2:int;
var _local3:int;
if (this._domain != "localhost"){
_local1 = this._domain.split(".");
_local2 = (_local1.length - 1);
_local3 = (_local1.length - 2);
this._domainAb = ((_local1[_local3] + ".") + _local1[_local2]);
} else {
this._domainAb = "offline_play";
};
}
public static function get instance():DomainInfo{
if (_instance == null){
_instance = new (DomainInfo);
};
return (_instance);
}
}
}//package zlong.domain
Section 189
//Handler (zlong.navigate.Handler)
package zlong.navigate {
import flash.events.*;
import zlong.country.*;
import flash.net.*;
import zlong.*;
import flash.external.*;
public class Handler {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public static function click_gamecn(_arg1:Event=null):void{
var _local2:URLRequest = new URLRequest("http://www.game.com.cn");
navigateToURL(_local2, "_blank");
}
public static function click_copyright(_arg1:Event=null):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest("http://www.game.com.cn");
} else {
_local2 = new URLRequest("http://www.gameportal.net");
};
navigateToURL(_local2, "_blank");
}
public static function refurbish(_arg1:Event=null):void{
var e = _arg1;
try {
ExternalInterface.call("location.reload");
navigateToURL(new URLRequest(ExternalInterface.call("window.location.href.toString")), "_top");
} catch(myError:Error) {
};
}
public static function click_thisgame(_arg1:String):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.moreGameLink);
} else {
_local2 = new URLRequest(((CountryInfo.instance.thisGameLink + "&utm_content=") + _arg1));
};
navigateToURL(_local2, "_blank");
}
public static function click_moregames(_arg1:String):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.moreGameLink);
} else {
_local2 = new URLRequest(((CountryInfo.instance.moreGameLink + "&utm_content=") + _arg1));
};
navigateToURL(_local2, "_blank");
}
}
}//package zlong.navigate
Section 190
//LocalSiteDataLoader (zlong.site.LocalSiteDataLoader)
package zlong.site {
import flash.events.*;
import flash.net.*;
import zlong.*;
public class LocalSiteDataLoader {
private var _localSiteDataLoader:URLLoader;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
private static var _localSiteDataLoaderFinish:Boolean = true;
public function LocalSiteDataLoader(){
super();
_localSiteDataLoaderFinish = false;
this._localSiteDataLoader = new URLLoader();
this._localSiteDataLoader.dataFormat = URLLoaderDataFormat.TEXT;
this._localSiteDataLoader.addEventListener(IOErrorEvent.IO_ERROR, this.errorHandler);
this._localSiteDataLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.errorHandler);
this._localSiteDataLoader.addEventListener(Event.COMPLETE, this.LocalSiteDataLoaderFinish);
try {
this._localSiteDataLoader.load(new URLRequest(SiteData.URL));
} catch(e:Error) {
errorHandler();
};
}
private function LocalSiteDataLoaderFinish(_arg1:Event):void{
SiteData.allowedSite = new XML(this._localSiteDataLoader.data);
_localSiteDataLoaderFinish = true;
this.delLocalSiteDataLoader();
}
private function errorHandler(_arg1:Event=null):void{
SiteData.allowedSite = <sites></sites>
;
_localSiteDataLoaderFinish = true;
this.delLocalSiteDataLoader();
}
private function delLocalSiteDataLoader():void{
this._localSiteDataLoader.removeEventListener(IOErrorEvent.IO_ERROR, this.errorHandler);
this._localSiteDataLoader.removeEventListener(Event.COMPLETE, this.LocalSiteDataLoaderFinish);
this._localSiteDataLoader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this.errorHandler);
this._localSiteDataLoader = null;
}
public static function get localSiteDataLoaderFinish():Boolean{
return (_localSiteDataLoaderFinish);
}
}
}//package zlong.site
Section 191
//SiteData (zlong.site.SiteData)
package zlong.site {
import zlong.*;
public final class SiteData {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public static const URL:String = "http://www8.agame.com/games/sitelock/sites.xml";
public static var allowedSite:XML;
}
}//package zlong.site
Section 192
//Award_HighScore (zlong.spilSystemTool.Award_HighScore)
package zlong.spilSystemTool {
import flash.events.*;
import flash.display.*;
import zlong.Template.*;
import Spill.Components.*;
import zlong.*;
public class Award_HighScore implements IEventDispatcher {
private var _sub:Submitter;
private var _debug:Boolean;
private var _mc:DisplayObject;
framework_internal static const VERSION:String = "v1.08.201005181800";
public static const AWORD_HIGHSCORE_TOOL_INITIALIZED_COMPONENT:String = "AWORD_HIGHSCORE_TOOL_INITIALIZED_COMPONENT";
public static const AWORD_HIGHSCORE_TOOL_INITIALIZED_FAILED:String = "AWORD_HIGHSCORE_TOOL_INITIALIZED_FAILED";
public static const SCORE_LOAD_ERROR:String = "ScoreLoadError";
public static const SCORE_LOAD_TIME_COMPLETE:String = "ScoreLoadTimeComplete";
public static const SCORE_LOAD_SUBMET_COMPLETE:String = "ScoreLoadSubmitComplete";
public static const SCORE_LOAD_LIST_COMPLETE:String = "ScoreLoadListComplete";
public static const ACHIEV_LOAD_ERROW:String = "AchievLoadError";
public static const ACHIEV_LOAD_TIME_COMPLETE:String = "AchievLoadTimeComplete";
public static const ACHIEV_LOAD_LIST_COMPLETE:String = "AchievLoadListComplete";
public static const ACHIEV_LOADINFO_COMPLETE:String = "AchievLoadInfoComplete";
public static const ACHIEV_LOADGRANT_COMPLETE:String = "AchievLoadGrantComplete";
private static var _instance:Award_HighScore;
private static var _initialized_finish:Boolean = true;
public function Award_HighScore(){
_initialized_finish = false;
this._sub = new Submitter();
this._sub.addEventListener(Event.COMPLETE, this.SubmiterComponentInitialized);
this._sub.addEventListener(IOErrorEvent.IO_ERROR, this.FailedToLoadSubmitter);
this._sub.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.FailedToLoadSubmitter);
this._sub.addEventListener("LoadingFailed", this.FailedToLoadSubmitter);
}
public function init(_arg1:String, _arg2:DisplayObject, _arg3:Boolean=false, _arg4:Boolean=true):void{
this._debug = _arg3;
this._mc = _arg2;
if (_arg2.stage == null){
throw (new ArgumentError("container need be added in stage"));
};
if (this._sub){
this._sub._O0000Ol01(_arg2, AbstractRootClass.cutGameName(_arg1), (AbstractRootClass.cutGameName(_arg1, "-", true) + ".html"), 0, "normal", "", 0, 0, 1, _arg3);
};
}
private function SubmiterComponentInitialized(_arg1:Event):void{
if (this._debug){
Trace(("Award_HighScore_Tool_Initialized_Component" + _arg1));
if (this._mc){
this._mc.stage.addEventListener(KeyboardEvent.KEY_DOWN, this.keyBoardSendAwards);
};
};
_initialized_finish = true;
this._sub.removeEventListener(Event.COMPLETE, this.SubmiterComponentInitialized);
this._sub.removeEventListener(IOErrorEvent.IO_ERROR, this.FailedToLoadSubmitter);
this._sub.removeEventListener("LoadingFailed", this.FailedToLoadSubmitter);
this._sub.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this.FailedToLoadSubmitter);
if (this._debug){
this._sub.addEventListener(SCORE_LOAD_ERROR, this.eventHandlerScore);
this._sub.addEventListener(SCORE_LOAD_TIME_COMPLETE, this.eventHandlerScore);
this._sub.addEventListener(SCORE_LOAD_SUBMET_COMPLETE, this.eventHandlerScore);
this._sub.addEventListener(SCORE_LOAD_LIST_COMPLETE, this.eventHandlerScore);
this._sub.addEventListener(ACHIEV_LOAD_ERROW, this.eventHandlerAchiev);
this._sub.addEventListener(ACHIEV_LOAD_TIME_COMPLETE, this.eventHandlerAchiev);
this._sub.addEventListener(ACHIEV_LOAD_LIST_COMPLETE, this.eventHandlerAchiev);
this._sub.addEventListener(ACHIEV_LOADINFO_COMPLETE, this.eventHandlerAchiev);
this._sub.addEventListener(ACHIEV_LOADGRANT_COMPLETE, this.eventHandlerAchiev);
};
this.dispatchEvent(new Event(AWORD_HIGHSCORE_TOOL_INITIALIZED_COMPONENT));
}
private function keyBoardSendAwards(_arg1:Event):void{
var _local2:KeyboardEvent = (_arg1 as KeyboardEvent);
if (((((_local2.ctrlKey) && ((_local2.keyCode > 48)))) && ((_local2.keyCode < 58)))){
this.submitAchievement(("award" + String.fromCharCode(_local2.keyCode)));
};
}
private function FailedToLoadSubmitter(_arg1:Event):void{
if (this._debug){
Trace(("Award_HighScore_Tool_Initialized_Failed" + _arg1));
};
_initialized_finish = true;
this._sub.removeEventListener(Event.COMPLETE, this.SubmiterComponentInitialized);
this._sub.removeEventListener("LoadingFailed", this.FailedToLoadSubmitter);
this._sub.removeEventListener(IOErrorEvent.IO_ERROR, this.FailedToLoadSubmitter);
this._sub.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this.FailedToLoadSubmitter);
this.dispatchEvent(new Event(AWORD_HIGHSCORE_TOOL_INITIALIZED_FAILED));
this._sub = null;
}
private function eventHandlerScore(_arg1:Event):void{
if (_arg1.currentTarget.OO00OO1l1l.O0l00l0O0 != null){
Trace(("SCORE_EVENT" + _arg1.currentTarget.OO00OO1l1l.O0l00l0O0.toString()));
} else {
Trace(("SCORE_EVENT" + _arg1.type));
};
}
private function eventHandlerAchiev(_arg1:Event):void{
if (_arg1.currentTarget.OO00OO1l1l.O1OlOO00O != null){
Trace(("ACHIEV_EVENT" + _arg1.currentTarget.OO00OO1l1l.O1OlOO00O.toString()));
} else {
Trace(("ACHIEV_EVENT" + _arg1.type));
};
}
public function requestAchievementList():void{
if (this._sub){
this._sub._O1OlO10OO();
};
}
public function requestAchievementInfo(_arg1:int):void{
if (this._sub){
this._sub._OOlOOOll1(_arg1);
};
}
public function requestHighScoreList():void{
if (this._sub){
this._sub._O110l10ll();
};
}
public function requestUserHighScoreList(_arg1:String):void{
if (this._sub){
this._sub._O11lll1OO0(_arg1);
};
}
public function submitScore(_arg1):void{
if (this._sub){
if (this.isDomainAllowed()){
this._sub._O01lOO10O(_arg1);
} else {
Trace("No...DomainAllowed");
};
};
}
public function submitAchievement(_arg1):void{
if (this._sub){
if (this.isDomainAllowed()){
this._sub._O00OOl1Ol(_arg1);
} else {
Trace("No...DomainAllowed");
};
};
}
public function isComponentInitialized():Boolean{
if (this._sub){
return (this._sub._O0O1l0OO0);
};
return (false);
}
public function isDomainAllowed():Boolean{
if (this._sub){
return (this._sub._O0Olll0lO);
};
return (false);
}
public function destroy():void{
if (this._sub){
if (this._debug){
if (this._sub.hasEventListener("ScoreLoadError")){
this._sub.removeEventListener("ScoreLoadError", this.eventHandlerScore);
};
if (this._sub.hasEventListener("ScoreLoadTimeComplete")){
this._sub.removeEventListener("ScoreLoadTimeComplete", this.eventHandlerScore);
};
if (this._sub.hasEventListener("ScoreLoadSubmitComplete")){
this._sub.removeEventListener("ScoreLoadSubmitComplete", this.eventHandlerScore);
};
if (this._sub.hasEventListener("ScoreLoadListComplete")){
this._sub.removeEventListener("ScoreLoadListComplete", this.eventHandlerScore);
};
if (this._sub.hasEventListener("AchievLoadError")){
this._sub.removeEventListener("AchievLoadError", this.eventHandlerAchiev);
};
if (this._sub.hasEventListener("AchievLoadTimeComplete")){
this._sub.removeEventListener("AchievLoadTimeComplete", this.eventHandlerAchiev);
};
if (this._sub.hasEventListener("AchievLoadListComplete")){
this._sub.removeEventListener("AchievLoadListComplete", this.eventHandlerAchiev);
};
if (this._sub.hasEventListener("AchievLoadInfoComplete")){
this._sub.removeEventListener("AchievLoadInfoComplete", this.eventHandlerAchiev);
};
if (this._sub.hasEventListener("AchievLoadGrantComplete")){
this._sub.removeEventListener("AchievLoadGrantComplete", this.eventHandlerAchiev);
};
if (((this._mc) && (this._mc.stage.hasEventListener(KeyboardEvent.KEY_DOWN)))){
this._mc.stage.addEventListener(KeyboardEvent.KEY_DOWN, this.keyBoardSendAwards);
};
};
this._sub._O010ll111();
};
this._sub = null;
}
public function dispatchEvent(_arg1:Event):Boolean{
if (this._sub){
return (this._sub.dispatchEvent(_arg1));
};
return (false);
}
public function hasEventListener(_arg1:String):Boolean{
if (this._sub){
return (this._sub.hasEventListener(_arg1));
};
return (false);
}
public function willTrigger(_arg1:String):Boolean{
if (this._sub){
return (this._sub.willTrigger(_arg1));
};
return (false);
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (this._sub){
this._sub.removeEventListener(_arg1, _arg2, _arg3);
};
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (this._sub){
this._sub.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
};
}
public static function get instance():Award_HighScore{
if (_instance == null){
_instance = new (Award_HighScore);
};
return (_instance);
}
public static function get initializedFinish():Boolean{
return (_initialized_finish);
}
}
}//package zlong.spilSystemTool
Section 193
//GoogleEvent (zlong.spilSystemTool.GoogleEvent)
package zlong.spilSystemTool {
import flash.display.*;
import flash.net.*;
import com.google.analytics.*;
import zlong.utils.*;
public class GoogleEvent {
private var _gaGameName:String;
private var _gaTracker:GATracker;
private var _gaEventArr:Array;
private var _gaSharedObject:SharedObject;
framework_internal static const VERSION:String = "v1.08.201005181800";
private static var _instance:GoogleEvent;
public function GoogleEvent():void{
}
public function init(_arg1:String, _arg2:DisplayObject, _arg3:Boolean):void{
var _local4:String;
this._gaGameName = _arg1;
this._gaTracker = new GATracker(_arg2, "UA-6695967-1", "AS3", _arg3);
this._gaEventArr = new Array();
this._gaSharedObject = SharedObjectUtil.getLocal("googleEvent");
for (_local4 in this._gaSharedObject.data) {
this._gaEventArr.push(_local4);
};
}
public function gaTrackEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=true):void{
var _local4:int;
if (((!(_arg3)) || (!(_arg2)))){
_local4 = 0;
while (_local4 < this._gaEventArr.length) {
if (_arg1 == this._gaEventArr[_local4]){
return;
};
_local4++;
};
if (!_arg3){
this._gaSharedObject.data[_arg1] = 1;
SharedObjectUtil.save(this._gaSharedObject);
};
this._gaEventArr.push(_arg1);
};
this._gaTracker.trackEvent(this._gaGameName, _arg1, "per session", 0);
}
public static function get instance():GoogleEvent{
if (_instance == null){
_instance = new (GoogleEvent);
};
return (_instance);
}
}
}//package zlong.spilSystemTool
Section 194
//UiLoading (zlong.Template.demo.ui.UiLoading)
package zlong.Template.demo.ui {
import flash.display.*;
import flash.events.*;
import zlong.Template.*;
import flash.text.*;
import zlong.breathxue.utils.*;
public class UiLoading extends AbstractLoadingClass {
private var _mc_perText:TextField;
private var _loadingFoodArr:Array;
private var past:int;// = 0
private var _mc:Sprite;
private static const MC_CLASS_NAME:String = "UI_loading";
public function UiLoading(_arg1:Sprite):void{
_loadingFoodArr = new Array();
super(_arg1);
initDis(_arg1);
initEvent();
}
private function delDis():void{
_mc.parent.removeChild(_mc);
}
private function initEvent():void{
_mc.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
}
private function delEvent():void{
_mc.removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
}
override public function destroy():void{
delEvent();
delDis();
}
private function enterFrameHandler(_arg1:Event):void{
var _local2:Number = (_mc.root.loaderInfo.bytesLoaded / _mc.root.loaderInfo.bytesTotal);
var _local3:int = Math.round(((_local2 * 10000) / 100));
_mc_perText.text = (_local3 + "%");
if (int((_local3 / 10)) != past){
(_loadingFoodArr[past++] as MovieClip).play();
};
}
private function initDis(_arg1:Sprite):void{
var _local2:MovieClip;
_mc = Attach.getSprite(MC_CLASS_NAME);
_arg1.addChild(_mc);
var _local3 = 1;
while (_local3 <= 10) {
_local2 = (_mc.getChildByName(("food" + _local3)) as MovieClip);
_local2.stop();
_local2.addFrameScript((_local2.totalFrames - 1), _local2.stop);
_loadingFoodArr.push(_local2);
_local3++;
};
_mc_perText = (_mc.getChildByName("progress_txt") as TextField);
}
}
}//package zlong.Template.demo.ui
Section 195
//AbstractLoadingClass (zlong.Template.AbstractLoadingClass)
package zlong.Template {
import flash.display.*;
import flash.utils.*;
public class AbstractLoadingClass {
framework_internal static const VERSION:String = "v1.08.201005181800";
public function AbstractLoadingClass(_arg1:Sprite){
if (getQualifiedClassName(this) == "zlong::Template::AbstractLoadingClass"){
throw (new ArgumentError("can't be constructed"));
};
}
public function destroy():void{
throw (new ArgumentError("function destroy must be override"));
}
}
}//package zlong.Template
Section 196
//AbstractMainClass (zlong.Template.AbstractMainClass)
package zlong.Template {
import flash.display.*;
import flash.text.*;
import zlong.spilSystemTool.*;
import flash.utils.*;
import net.hires.debug.*;
import zlong.utils.*;
public class AbstractMainClass {
private var __mainMc:Sprite;
protected var __GameMc:Sprite;
private var _childClass:Class;
framework_internal static const VERSION:String = "v1.08.201005181800";
public function AbstractMainClass(_arg1:Sprite){
if (getQualifiedClassName(this) == "zlong::Template::AbstractMainClass"){
throw (new ArgumentError("can't be constructed"));
};
this._childClass = (getDefinitionByName(getQualifiedClassName(this)) as Class);
this.__mainMc = _arg1;
this.__GameMc = new Sprite();
this.__GameMc.name = "GameMc";
this.__mainMc.addChild(this.__GameMc);
this.initGameSetting();
}
protected function initGameSetting():void{
SharedObjectUtil.init(this.gameNameUnderline);
GoogleEvent.instance.init(this.gameNameUnderline, this.__mainMc.root, AbstractRootClass.instance._childClass["__debug__"]);
}
protected function showVersion(_arg1:String):void{
var _local2:Sprite;
_local2 = new Sprite();
_local2.name = "VersionMc";
_local2.mouseEnabled = false;
this.__mainMc.addChild(_local2);
var _local3:TextField = new TextField();
_local3.selectable = false;
_local3.mouseEnabled = false;
_local3.defaultTextFormat = new TextFormat("_san", 12, 0);
_local3.width = 200;
_local3.height = 50;
_local3.x = 0;
_local3.y = 0;
_local3.text = _arg1;
_local2.addChild(_local3);
}
protected function showFPS():void{
this.__mainMc.addChild(new Stats());
}
public function get gameNameUnderline():String{
return (AbstractRootClass.cutGameName((AbstractRootClass.instance._childClass["GAME_NAME"] as String)));
}
}
}//package zlong.Template
Section 197
//AbstractRootClass (zlong.Template.AbstractRootClass)
package zlong.Template {
import flash.events.*;
import flash.display.*;
import zlong.spilSystemTool.*;
import zlong.site.*;
import zlong.*;
import flash.utils.*;
import flash.geom.*;
public class AbstractRootClass extends MovieClip {
var _childClass:Class;
private var __mainMc:Sprite;
private var _game:Object;
private var _realLoaderUI:Object;
private var _textLoaderUI:TextLoader;
private var _loadingComplete:Boolean;
framework_internal static const VERSION:String = "v1.08.201005181800";
static var instance:AbstractRootClass;
public function AbstractRootClass(){
instance = this;
this._loadingComplete = false;
this.stop();
if (getQualifiedClassName(this) == "zlong::Template::AbstractRootClass"){
throw (new ArgumentError("can't be constructed"));
};
this._childClass = (getDefinitionByName(getQualifiedClassName(this)) as Class);
if (!(this._childClass["GAME_FRAMERATE"] is int)){
throw (new ArgumentError("Class Root need static const Int 'GAME_FRAMERATE'"));
};
if (!(this._childClass["GAME_NAME"] is String)){
throw (new ArgumentError("Class Root need static const String 'GAME_NAME'"));
};
if (!(this._childClass["STAGE_WIGHT"] is int)){
throw (new ArgumentError("Class Root need static const Int 'STAGE_WIGHT'"));
};
if (!(this._childClass["STAGE_HEIGHT"] is int)){
throw (new ArgumentError("Class Root need static const Int 'STAGE_HEIGHT'"));
};
if (!(this._childClass["PORTAL_TYPE"] is String)){
throw (new ArgumentError("Class Root need static const String 'PORTAL_TYPE'"));
};
if (!(this._childClass["LOADING_CLASS_NAME"] is String)){
throw (new ArgumentError("Class Root need static const String 'LOADING_CLASS_NAME'"));
};
if (!(this._childClass["GAME_CLASS_NAME"] is String)){
throw (new ArgumentError("Class Root need static const String 'GAME_CLASS_NAME'"));
};
if (!(this._childClass["VERSION_NUM"] is String)){
throw (new ArgumentError("Class Root need static const String 'VERSION_NUM'"));
};
if (!(this._childClass["__debug__"] is Boolean)){
throw (new ArgumentError("Class Root need static const Boolean '__debug__'"));
};
stage.frameRate = this._childClass["GAME_FRAMERATE"];
this.__mainMc = new Sprite();
this.__mainMc.name = "__mainMc";
this.addChild(this.__mainMc);
if (!this._childClass["__debug__"]){
this.scrollRect = new Rectangle(0, 0, this._childClass["STAGE_WIGHT"], this._childClass["STAGE_HEIGHT"]);
};
this.addFrameScript(0, this.s0);
this.addFrameScript(1, this.s1);
this.addFrameScript(2, this.s2);
}
private function s0():void{
this.script0();
this.stop();
this.initSettingBeforeLoading();
this.initTextloader();
this.initLoading();
}
private function s1():void{
var realLoadingClass:Class;
this.script1();
this.stop();
this._childClass["LOADING_CLASS_NAME"];
try {
realLoadingClass = (getDefinitionByName(this._childClass["LOADING_CLASS_NAME"]) as Class);
} catch(e:Error) {
throw (new ArgumentError(("can`t found the Loading Class " + _childClass["LOADING_CLASS_NAME"])));
return;
};
this._realLoaderUI = new realLoadingClass(this.__mainMc);
if (!(this._realLoaderUI is (getDefinitionByName("zlong.Template.AbstractLoadingClass") as Class))){
throw (new ArgumentError("the Loading Class mush extends Class AbstractLoadingClass"));
};
}
private function s2():void{
var mainClass:Class;
this.script2();
this.stop();
try {
mainClass = (getDefinitionByName(this._childClass["GAME_CLASS_NAME"]) as Class);
} catch(e:Error) {
throw (new ArgumentError(("can`t found the Main Class " + _childClass["GAME_CLASS_NAME"])));
return;
};
this._game = new mainClass(this.__mainMc);
if (!(this._game is (getDefinitionByName("zlong.Template.AbstractMainClass") as Class))){
throw (new ArgumentError("the Main Class mush extends Class AbstractMainClass"));
};
}
private function initLoading():void{
this.addEventListener(Event.ENTER_FRAME, this.updateLoading);
this.loaderInfo.addEventListener(Event.COMPLETE, this.LoadingComplete);
}
private function LoadingComplete(_arg1:Event):void{
this._loadingComplete = true;
}
private function updateLoading(_arg1:Event):void{
if (this.framesLoaded == 1){
this._textLoaderUI.update();
};
if ((((this.currentFrame == 1)) && ((this.framesLoaded >= 2)))){
this.realLoaderLoadingFinish();
};
if ((((((((this.currentFrame == 2)) && (((this._loadingComplete) || ((this.totalFrames == this.framesLoaded)))))) && (LocalSiteDataLoader.localSiteDataLoaderFinish))) && (Award_HighScore.initializedFinish))){
this.loadingFinish();
this.delLoading();
};
}
private function delLoading():void{
this.removeEventListener(Event.ENTER_FRAME, this.updateLoading);
}
private function initTextloader():void{
this._textLoaderUI = new TextLoader(this.__mainMc, this._childClass["STAGE_WIGHT"], this._childClass["STAGE_HEIGHT"]);
}
protected function delTextLoader():void{
if (this._textLoaderUI){
this._textLoaderUI.del();
this._textLoaderUI = null;
};
}
protected function delRealLoadingUI():void{
if (this._realLoaderUI){
var _local1 = this._realLoaderUI;
_local1["destroy"]();
};
}
protected function initSettingBeforeLoading():void{
new GameSetting(this, false, this._childClass["PORTAL_TYPE"], cutGameName((this._childClass["GAME_NAME"] as String)), (cutGameName((this._childClass["GAME_NAME"] as String), "-", true) + ".html"), this._childClass["STAGE_WIGHT"], this._childClass["STAGE_HEIGHT"]);
Award_HighScore.instance.init(cutGameName((this._childClass["GAME_NAME"] as String)), this, this._childClass["__debug__"], this._childClass["__debug__"]);
}
protected function realLoaderLoadingFinish():void{
this.delTextLoader();
this.gotoAndStop(2);
}
protected function loadingFinish():void{
this.delRealLoadingUI();
this.gotoAndStop(3);
}
protected function script0():void{
}
protected function script1():void{
}
protected function script2():void{
}
public static function cutGameName(_arg1:String, _arg2:String="_", _arg3:Boolean=false):String{
var _local4:RegExp = /[-| |_]/;
var _local5:Array = _arg1.split(_local4);
var _local6 = "";
var _local7 = "";
var _local8:int;
while (_local8 < _local5.length) {
_local7 = ((_local5[_local8] as String).toLowerCase() + _arg2);
if (_arg3){
_local6 = (_local6 + (_local7.charAt(0).toUpperCase() + _local7.substr(1)));
} else {
_local6 = (_local6 + _local7);
};
_local8++;
};
_local6 = _local6.substr(0, (_local6.length - 1));
return (_local6);
}
}
}//package zlong.Template
Section 198
//TextLoader (zlong.Template.TextLoader)
package zlong.Template {
import flash.display.*;
import flash.text.*;
import zlong.*;
public class TextLoader {
private var _tf:TextField;
private var _loaderInfo:LoaderInfo;
private var _width:Number;
private var _height:Number;
private var _pmc:Sprite;
framework_internal static const VERSION:String = "v1.08.201005181800";
public function TextLoader(_arg1:Sprite, _arg2:Number, _arg3:Number){
this._pmc = _arg1;
this._width = _arg2;
this._height = _arg3;
this._loaderInfo = _arg1.root.loaderInfo;
this._tf = new TextField();
this._tf.autoSize = TextFieldAutoSize.LEFT;
this._tf.defaultTextFormat = new TextFormat("_sans", 16, 0, true);
this._tf.height = 30;
this._pmc.addChild(this._tf);
}
function update():void{
this._tf.text = (("Loading... " + Math.floor(((100 * this._loaderInfo.bytesLoaded) / this._loaderInfo.bytesTotal))) + "%");
this._tf.x = ((this._width - this._tf.width) / 2);
this._tf.y = ((this._height - this._tf.height) / 2);
}
function del():void{
this._pmc.removeChild(this._tf);
this._tf = null;
this._loaderInfo = null;
this._pmc = null;
}
}
}//package zlong.Template
Section 199
//SharedObjectUtil (zlong.utils.SharedObjectUtil)
package zlong.utils {
import flash.events.*;
import flash.net.*;
public class SharedObjectUtil {
framework_internal static const VERSION:String = "v1.08.201005181800";
private static const PREFIX:String = "SpilGames";
private static const GLOBAL:String = "global";
private static var gameName:String;
private static var operatedSharedObject:SharedObject;
public static function init(_arg1:String):void{
}
public static function getGlobal(_arg1:String):SharedObject{
var so:SharedObject;
var name = _arg1;
try {
so = SharedObject.getLocal(((((PREFIX + "_") + GLOBAL) + "_") + name), "/");
} catch(err:Error) {
trace("create error");
};
return (so);
}
public static function getLocal(_arg1:String):SharedObject{
var so:SharedObject;
var name = _arg1;
try {
so = SharedObject.getLocal(((((PREFIX + "_") + gameName) + "_") + name), "/");
} catch(err:Error) {
trace("create error");
};
return (so);
}
public static function save(_arg1:SharedObject):void{
var flushResult:String;
var sharedObject = _arg1;
operatedSharedObject = sharedObject;
try {
flushResult = operatedSharedObject.flush();
if (flushResult == SharedObjectFlushStatus.PENDING){
operatedSharedObject.addEventListener(NetStatusEvent.NET_STATUS, statusHandler);
} else {
operatedSharedObject = null;
};
} catch(err:Error) {
};
}
private static function statusHandler(_arg1:NetStatusEvent):void{
if (_arg1.info["code"] == "SharedObject.Flush.Failed"){
} else {
if (_arg1.info["code"] == "SharedObject.Flush.Success"){
trace("save successed");
};
};
operatedSharedObject.removeEventListener(NetStatusEvent.NET_STATUS, statusHandler);
operatedSharedObject = null;
}
}
}//package zlong.utils
Section 200
//framework_internal (zlong.framework_internal)
package zlong {
public namespace framework_internal = "http://www.zlonggames.com/flash/framework/internal";
}//package zlong
Section 201
//GameSetting (zlong.GameSetting)
package zlong {
import flash.display.*;
import zlong.country.*;
import zlong.site.*;
import zlong.data.*;
import zlong.display.*;
public class GameSetting {
private var _XMLLoader:LocalSiteDataLoader;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public static const PORTAL_TYPE_FAMILY:String = "family";
public static const PORTAL_TYPE_TWEEN:String = "tween";
public static const PORTAL_TYPE_GIRL:String = "girl";
public static const PORTAL_TYPE_TEEN:String = "teen";
public static const PORTAL_TYPE_ZAPAPA:String = "zapapa";
public static const PORTAL_TYPE_HYVES:String = "hyves";
public function GameSetting(_arg1:InteractiveObject, _arg2:Boolean, _arg3:String, _arg4:String, _arg5:String, _arg6:int, _arg7:int){
GameInfo.cnversion = _arg2;
GameInfo.portal = _arg3;
GameInfo.name = _arg4;
GameInfo.html = _arg5;
GameInfo.width = _arg6;
GameInfo.height = _arg7;
this._XMLLoader = new LocalSiteDataLoader();
this.init();
this.initMenu(_arg1);
}
private function init():void{
new CountryCookie();
CountryInfo.instance.portal = GameInfo.portal;
if (CountryCookie.country == null){
CountryInfo.instance.country = "en_us";
} else {
CountryInfo.instance.country = String(CountryCookie.country);
};
}
private function initMenu(_arg1:InteractiveObject):void{
new Menu(_arg1);
}
}
}//package zlong
Section 202
//localComponent_internal (zlong.localComponent_internal)
package zlong {
public namespace localComponent_internal = "http://www.zlonggames.com/flash/localComponent/internal";
}//package zlong
Section 203
//alcohol (alcohol)
package {
import flash.display.*;
public dynamic class alcohol extends MovieClip {
}
}//package
Section 204
//alcoholcup (alcoholcup)
package {
import flash.display.*;
public dynamic class alcoholcup extends MovieClip {
}
}//package
Section 205
//BBQ_level1 (BBQ_level1)
package {
import flash.media.*;
public dynamic class BBQ_level1 extends Sound {
}
}//package
Section 206
//BBQ_level2 (BBQ_level2)
package {
import flash.media.*;
public dynamic class BBQ_level2 extends Sound {
}
}//package
Section 207
//BBQ_lose (BBQ_lose)
package {
import flash.media.*;
public dynamic class BBQ_lose extends Sound {
}
}//package
Section 208
//BBQ_map (BBQ_map)
package {
import flash.media.*;
public dynamic class BBQ_map extends Sound {
}
}//package
Section 209
//BBQ_menu (BBQ_menu)
package {
import flash.media.*;
public dynamic class BBQ_menu extends Sound {
}
}//package
Section 210
//BBQ_win (BBQ_win)
package {
import flash.media.*;
public dynamic class BBQ_win extends Sound {
}
}//package
Section 211
//bell (bell)
package {
import flash.display.*;
public dynamic class bell extends MovieClip {
public var bellmove:MovieClip;
}
}//package
Section 212
//bg_1 (bg_1)
package {
import flash.display.*;
public dynamic class bg_1 extends MovieClip {
}
}//package
Section 213
//bg_2 (bg_2)
package {
import flash.display.*;
public dynamic class bg_2 extends MovieClip {
}
}//package
Section 214
//bg_3 (bg_3)
package {
import flash.display.*;
public dynamic class bg_3 extends MovieClip {
}
}//package
Section 215
//bg_4 (bg_4)
package {
import flash.display.*;
public dynamic class bg_4 extends MovieClip {
}
}//package
Section 216
//boy01 (boy01)
package {
import flash.display.*;
public dynamic class boy01 extends MovieClip {
}
}//package
Section 217
//boy02 (boy02)
package {
import flash.display.*;
public dynamic class boy02 extends MovieClip {
}
}//package
Section 218
//button_1 (button_1)
package {
import flash.display.*;
public dynamic class button_1 extends MovieClip {
}
}//package
Section 219
//button_2 (button_2)
package {
import flash.display.*;
public dynamic class button_2 extends MovieClip {
}
}//package
Section 220
//button_3 (button_3)
package {
import flash.display.*;
public dynamic class button_3 extends MovieClip {
}
}//package
Section 221
//button_back (button_back)
package {
import AssistantClass.*;
public dynamic class button_back extends ExtButton {
}
}//package
Section 222
//button_buy (button_buy)
package {
import AssistantClass.*;
public dynamic class button_buy extends ExtButton {
}
}//package
Section 223
//button_howtoplay (button_howtoplay)
package {
import AssistantClass.*;
public dynamic class button_howtoplay extends ExtButton {
}
}//package
Section 224
//button_left (button_left)
package {
import AssistantClass.*;
public dynamic class button_left extends ExtButton {
}
}//package
Section 225
//button_LEVELMAP (button_LEVELMAP)
package {
import AssistantClass.*;
public dynamic class button_LEVELMAP extends ExtButton {
}
}//package
Section 226
//button_main (button_main)
package {
import AssistantClass.*;
public dynamic class button_main extends ExtButton {
}
}//package
Section 227
//button_moregame (button_moregame)
package {
import AssistantClass.*;
public dynamic class button_moregame extends ExtButton {
}
}//package
Section 228
//button_OK (button_OK)
package {
import AssistantClass.*;
public dynamic class button_OK extends ExtButton {
}
}//package
Section 229
//button_pause (button_pause)
package {
import AssistantClass.*;
public dynamic class button_pause extends ExtButton {
}
}//package
Section 230
//button_resume (button_resume)
package {
import AssistantClass.*;
public dynamic class button_resume extends ExtButton {
}
}//package
Section 231
//button_shop (button_shop)
package {
import AssistantClass.*;
public dynamic class button_shop extends ExtButton {
}
}//package
Section 232
//button_start (button_start)
package {
import AssistantClass.*;
public dynamic class button_start extends ExtButton {
}
}//package
Section 233
//button_tryagain (button_tryagain)
package {
import AssistantClass.*;
public dynamic class button_tryagain extends ExtButton {
}
}//package
Section 234
//chickenleg (chickenleg)
package {
import flash.display.*;
public dynamic class chickenleg extends MovieClip {
}
}//package
Section 235
//chickenleg_food (chickenleg_food)
package {
import flash.display.*;
public dynamic class chickenleg_food extends MovieClip {
public var filter:MovieClip;
}
}//package
Section 236
//chickenleg_food_need (chickenleg_food_need)
package {
import flash.display.*;
public dynamic class chickenleg_food_need extends MovieClip {
}
}//package
Section 237
//chickenwing (chickenwing)
package {
import flash.display.*;
public dynamic class chickenwing extends MovieClip {
}
}//package
Section 238
//chickenwing_food (chickenwing_food)
package {
import flash.display.*;
public dynamic class chickenwing_food extends MovieClip {
public var filter:MovieClip;
}
}//package
Section 239
//chickenwing_food_need (chickenwing_food_need)
package {
import flash.display.*;
public dynamic class chickenwing_food_need extends MovieClip {
}
}//package
Section 240
//coke (coke)
package {
import flash.display.*;
public dynamic class coke extends MovieClip {
}
}//package
Section 241
//cokecup (cokecup)
package {
import flash.display.*;
public dynamic class cokecup extends MovieClip {
}
}//package
Section 242
//cookedIco (cookedIco)
package {
import flash.display.*;
public dynamic class cookedIco extends MovieClip {
}
}//package
Section 243
//Copyright (Copyright)
package {
import zlong.display.*;
public dynamic class Copyright extends Copyright {
}
}//package
Section 244
//CountriesBox (CountriesBox)
package {
import zlong.display.*;
public dynamic class CountriesBox extends CountriesBox {
}
}//package
Section 245
//cuemc (cuemc)
package {
import flash.display.*;
public dynamic class cuemc extends MovieClip {
}
}//package
Section 246
//cusPutFoodWindow (cusPutFoodWindow)
package {
import flash.display.*;
public dynamic class cusPutFoodWindow extends MovieClip {
}
}//package
Section 247
//durativescore (durativescore)
package {
import flash.display.*;
public dynamic class durativescore extends MovieClip {
public var score:MovieClip;
}
}//package
Section 248
//Effect (Effect)
package {
import flash.display.*;
public dynamic class Effect extends MovieClip {
}
}//package
Section 249
//Effect_get (Effect_get)
package {
import flash.display.*;
public dynamic class Effect_get extends MovieClip {
}
}//package
Section 250
//fish (fish)
package {
import flash.display.*;
public dynamic class fish extends MovieClip {
}
}//package
Section 251
//fish_food (fish_food)
package {
import flash.display.*;
public dynamic class fish_food extends MovieClip {
public var filter:MovieClip;
}
}//package
Section 252
//fish_food_need (fish_food_need)
package {
import flash.display.*;
public dynamic class fish_food_need extends MovieClip {
}
}//package
Section 253
//girl01 (girl01)
package {
import flash.display.*;
public dynamic class girl01 extends MovieClip {
}
}//package
Section 254
//girl02 (girl02)
package {
import flash.display.*;
public dynamic class girl02 extends MovieClip {
}
}//package
Section 255
//HideConsole (HideConsole)
package {
public var HideConsole:Boolean;
HideConsole = false;
}//package
Section 256
//interlude (interlude)
package {
import flash.display.*;
public dynamic class interlude extends MovieClip {
}
}//package
Section 257
//kebab (kebab)
package {
import flash.display.*;
public dynamic class kebab extends MovieClip {
}
}//package
Section 258
//kebab_food (kebab_food)
package {
import flash.display.*;
public dynamic class kebab_food extends MovieClip {
public var filter:MovieClip;
}
}//package
Section 259
//kebab_food_need (kebab_food_need)
package {
import flash.display.*;
public dynamic class kebab_food_need extends MovieClip {
}
}//package
Section 260
//levellabel (levellabel)
package {
import flash.display.*;
public dynamic class levellabel extends MovieClip {
}
}//package
Section 261
//levelselect_press (levelselect_press)
package {
import flash.media.*;
public dynamic class levelselect_press extends Sound {
}
}//package
Section 262
//localization (localization)
package {
import flash.display.*;
public dynamic class localization extends MovieClip {
}
}//package
Section 263
//Logo (Logo)
package {
import zlong.display.*;
public dynamic class Logo extends Logo {
}
}//package
Section 264
//Main (Main)
package {
import flash.display.*;
import com.google.analytics.*;
import zlong.Template.*;
import main.*;
import zlong.breathxue.utils.debug.*;
public class Main extends AbstractMainClass {
private static var _instance:Main;
public static var tracker:GATracker;
public function Main(_arg1:Sprite){
_instance = this;
super(_arg1);
showVersion(Root.VERSION_NUM);
if (Root.__debug__){
TC.InitTC(__GameMc);
showFPS();
};
gameStart();
}
private function gameStart():void{
tracker = new GATracker(__GameMc, "UA-6695967-1", "AS3", false);
new Manager(__GameMc);
}
public static function get instance():Main{
return (_instance);
}
}
}//package
Section 265
//man01 (man01)
package {
import flash.display.*;
public dynamic class man01 extends MovieClip {
}
}//package
Section 266
//man02 (man02)
package {
import flash.display.*;
public dynamic class man02 extends MovieClip {
}
}//package
Section 267
//meat (meat)
package {
import flash.display.*;
public dynamic class meat extends MovieClip {
}
}//package
Section 268
//meat_food (meat_food)
package {
import flash.display.*;
public dynamic class meat_food extends MovieClip {
public var filter:MovieClip;
}
}//package
Section 269
//meat_food_need (meat_food_need)
package {
import flash.display.*;
public dynamic class meat_food_need extends MovieClip {
}
}//package
Section 270
//menu_press (menu_press)
package {
import flash.media.*;
public dynamic class menu_press extends Sound {
}
}//package
Section 271
//menu_touch (menu_touch)
package {
import flash.media.*;
public dynamic class menu_touch extends Sound {
}
}//package
Section 272
//moneymc (moneymc)
package {
import flash.display.*;
public dynamic class moneymc extends MovieClip {
public var moneytxtmc:MovieClip;
public var money:MovieClip;
}
}//package
Section 273
//MoreGamesLogo (MoreGamesLogo)
package {
import zlong.display.*;
import flash.utils.*;
public dynamic class MoreGamesLogo extends ExtButton {
public var __setPropDict:Dictionary;
public var __id3_:Logo;
public function MoreGamesLogo(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function __setProp___id3__MoreGamesLogo__2(){
try {
__id3_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id3_.alignHorizontal = "Center";
__id3_.alignVertical = "Center";
__id3_.maxHeight = 40;
__id3_.maxWidth = 150;
__id3_.position = "logo_preloader";
try {
__id3_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id3__MoreGamesLogo__1(){
try {
__id3_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id3_.alignHorizontal = "Center";
__id3_.alignVertical = "Center";
__id3_.maxHeight = 40;
__id3_.maxWidth = 150;
__id3_.position = "logo_mainscreen";
try {
__id3_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame3(){
if ((((__setPropDict[__id3_] == undefined)) || (!((((int(__setPropDict[__id3_]) >= 2)) && ((int(__setPropDict[__id3_]) <= 3))))))){
__setPropDict[__id3_] = currentFrame;
__setProp___id3__MoreGamesLogo__2();
};
}
function frame1(){
if ((((__setPropDict[__id3_] == undefined)) || (!((int(__setPropDict[__id3_]) == 1))))){
__setPropDict[__id3_] = currentFrame;
__setProp___id3__MoreGamesLogo__1();
};
}
function frame2(){
if ((((__setPropDict[__id3_] == undefined)) || (!((((int(__setPropDict[__id3_]) >= 2)) && ((int(__setPropDict[__id3_]) <= 3))))))){
__setPropDict[__id3_] = currentFrame;
__setProp___id3__MoreGamesLogo__2();
};
}
}
}//package
Section 274
//old01 (old01)
package {
import flash.display.*;
public dynamic class old01 extends MovieClip {
}
}//package
Section 275
//old02 (old02)
package {
import flash.display.*;
public dynamic class old02 extends MovieClip {
}
}//package
Section 276
//otherclick (otherclick)
package {
import flash.media.*;
public dynamic class otherclick extends Sound {
}
}//package
Section 277
//overTurn (overTurn)
package {
import flash.display.*;
public dynamic class overTurn extends MovieClip {
}
}//package
Section 278
//peoplestar (peoplestar)
package {
import flash.display.*;
public dynamic class peoplestar extends MovieClip {
}
}//package
Section 279
//potato (potato)
package {
import flash.display.*;
public dynamic class potato extends MovieClip {
}
}//package
Section 280
//potato_food (potato_food)
package {
import flash.display.*;
public dynamic class potato_food extends MovieClip {
public var filter:MovieClip;
}
}//package
Section 281
//potato_food_need (potato_food_need)
package {
import flash.display.*;
public dynamic class potato_food_need extends MovieClip {
}
}//package
Section 282
//Root (Root)
package {
import zlong.Template.*;
import zlong.*;
public class Root extends AbstractRootClass {
public static const STAGE_WIGHT:int = 600;
public static const GAME_CLASS_NAME:String = "Main";
public static const STAGE_HEIGHT:int = 500;
public static const PORTAL_TYPE:String = GameSetting.PORTAL_TYPE_FAMILY;
public static const VERSION_NUM:String = "";
public static const __debug__:Boolean = false;
public static const LOADING_CLASS_NAME:String = "zlong.Template.demo.ui.UiLoading";
public static const GAME_FRAMERATE:int = 30;
public static const GAME_NAME:String = "Hot_BBQ_Party";
override protected function script0():void{
Trace("script0");
}
override protected function script1():void{
Trace("script1");
}
override protected function script2():void{
Trace("script2");
}
}
}//package
Section 283
//saggar4 (saggar4)
package {
import flash.display.*;
public dynamic class saggar4 extends MovieClip {
public var gridding00:MovieClip;
public var gridding01:MovieClip;
public var gridding03:MovieClip;
public var gridding10:MovieClip;
public var gridding13:MovieClip;
public var gridding11:MovieClip;
public var gridding02:MovieClip;
public var gridding21:MovieClip;
public var gridding22:MovieClip;
public var gridding12:MovieClip;
public var gridding20:MovieClip;
public var gridding23:MovieClip;
}
}//package
Section 284
//saggar5 (saggar5)
package {
import flash.display.*;
public dynamic class saggar5 extends MovieClip {
public var gridding00:MovieClip;
public var gridding01:MovieClip;
public var gridding04:MovieClip;
public var gridding03:MovieClip;
public var gridding10:MovieClip;
public var gridding13:MovieClip;
public var gridding11:MovieClip;
public var gridding14:MovieClip;
public var gridding02:MovieClip;
public var gridding21:MovieClip;
public var gridding22:MovieClip;
public var gridding12:MovieClip;
public var gridding20:MovieClip;
public var gridding24:MovieClip;
public var gridding23:MovieClip;
}
}//package
Section 285
//saggar6 (saggar6)
package {
import flash.display.*;
public dynamic class saggar6 extends MovieClip {
public var gridding00:MovieClip;
public var gridding01:MovieClip;
public var gridding04:MovieClip;
public var gridding05:MovieClip;
public var gridding03:MovieClip;
public var gridding10:MovieClip;
public var gridding13:MovieClip;
public var gridding11:MovieClip;
public var gridding14:MovieClip;
public var gridding15:MovieClip;
public var gridding02:MovieClip;
public var gridding21:MovieClip;
public var gridding22:MovieClip;
public var gridding25:MovieClip;
public var gridding20:MovieClip;
public var gridding24:MovieClip;
public var gridding23:MovieClip;
public var gridding12:MovieClip;
}
}//package
Section 286
//sausage (sausage)
package {
import flash.display.*;
public dynamic class sausage extends MovieClip {
}
}//package
Section 287
//sausage_food (sausage_food)
package {
import flash.display.*;
public dynamic class sausage_food extends MovieClip {
public var filter:MovieClip;
}
}//package
Section 288
//sausage_food_need (sausage_food_need)
package {
import flash.display.*;
public dynamic class sausage_food_need extends MovieClip {
}
}//package
Section 289
//shrimp (shrimp)
package {
import flash.display.*;
public dynamic class shrimp extends MovieClip {
}
}//package
Section 290
//shrimp_food (shrimp_food)
package {
import flash.display.*;
public dynamic class shrimp_food extends MovieClip {
public var filter:MovieClip;
}
}//package
Section 291
//shrimp_food_need (shrimp_food_need)
package {
import flash.display.*;
public dynamic class shrimp_food_need extends MovieClip {
}
}//package
Section 292
//sleevefiah (sleevefiah)
package {
import flash.display.*;
public dynamic class sleevefiah extends MovieClip {
}
}//package
Section 293
//sleevefiah_food (sleevefiah_food)
package {
import flash.display.*;
public dynamic class sleevefiah_food extends MovieClip {
public var filter:MovieClip;
}
}//package
Section 294
//sleevefiah_food_need (sleevefiah_food_need)
package {
import flash.display.*;
public dynamic class sleevefiah_food_need extends MovieClip {
}
}//package
Section 295
//star (star)
package {
import flash.display.*;
public dynamic class star extends MovieClip {
}
}//package
Section 296
//steak (steak)
package {
import flash.display.*;
public dynamic class steak extends MovieClip {
}
}//package
Section 297
//steak_food (steak_food)
package {
import flash.display.*;
public dynamic class steak_food extends MovieClip {
public var filter:MovieClip;
}
}//package
Section 298
//steak_food_need (steak_food_need)
package {
import flash.display.*;
public dynamic class steak_food_need extends MovieClip {
}
}//package
Section 299
//SubmitterProxy (SubmitterProxy)
package {
import flash.events.*;
import flash.display.*;
import com.spilgames.api.*;
import flash.system.*;
public class SubmitterProxy extends MovieClip {
public var m_scoreXMLData:XML;
private var SpilComp:SpilGamesServices;
public var m_achievXMLData:XML;
private var parentObj;
public var m_scoreServerTimeXMLData:XML;
public function SubmitterProxy():void{
var cld:*;
super();
Security.allowDomain("*");
parentObj = this.parent;
parentObj.stop();
var i:int = (parentObj.numChildren - 1);
while (i >= 0) {
cld = parentObj.getChildAt(i);
if ((cld is MovieClip)){
cld.visible = false;
} else {
if (cld != null){
parentObj.removeChild(cld);
};
};
i = (i - 1);
};
try {
parentObj["setLoader"] = setLoader;
parentObj["isDomainAllowed"] = isDomainAllowed;
parentObj["hasUserData"] = hasUserData;
parentObj["_O0000Ol01"] = setLoader;
parentObj["_O0Olll0lO"] = isDomainAllowed;
} catch(e:Error) {
trace(e);
};
}
private function SpilConfiguratorFailedToInitialise(_arg1:Event):void{
if (SpilComp){
SpilComp.removeEventListener("servicesReady", SpilConfiguratorReady);
SpilComp.removeEventListener(IOErrorEvent.IO_ERROR, SpilConfiguratorFailedToLoad);
SpilComp.removeEventListener("servicesFailed", SpilConfiguratorFailedToInitialise);
};
parentObj.dispatchEvent(new Event("LoadingFailed"));
}
public function SpilCallback(_arg1:int, _arg2:Object):void{
}
private function onLoadDone():void{
parentObj["isSWFReady"] = isSWFReady;
parentObj["setServerSelect"] = setServerSelect;
parentObj["requestScoreServerTime"] = requestScoreServerTime;
parentObj["getScoreServerTime"] = getScoreServerTime;
parentObj["submitScore"] = submitScore;
parentObj["requestHighscoreList"] = requestHighscoreList;
parentObj["requestUserHighscoreList"] = requestUserHighscoreList;
parentObj["submitGrantAward"] = submitGrantAward;
parentObj["requestAwardList"] = requestAwardList;
parentObj["requestAwardInfo"] = requestAwardInfo;
parentObj["destroy"] = destroy;
parentObj["getSpilGamesConnector"] = getSpilGamesConnector;
parentObj["_O0O1l0OO0"] = isSWFReady;
parentObj["_O0lOO010l"] = requestScoreServerTime;
parentObj["_O01Ol1O1O"] = getScoreServerTime;
parentObj["_O01lOO10O"] = submitScore;
parentObj["_O110l10ll"] = requestHighscoreList;
parentObj["_O11lll1OO0"] = requestUserHighscoreList;
parentObj["_O00OOl1Ol"] = submitGrantAward;
parentObj["_O1OlO10OO"] = requestAwardList;
parentObj["_OOlOOOll1"] = requestAwardInfo;
parentObj["_O010ll111"] = destroy;
parentObj["OO00OO1l1l"] = OO00OO1l1l();
}
private function processTimeResults(_arg1:int, _arg2:Object):void{
if (_arg2){
if (_arg2.errorMessage){
} else {
if (_arg2.xml){
m_scoreServerTimeXMLData = _arg2.xml;
};
};
} else {
m_scoreServerTimeXMLData = new XML("");
};
}
private function isSWFReady():Boolean{
return (((SpilComp) && (SpilComp.isSWFReady())));
}
private function requestAwardList():void{
if (SpilComp){
SpilComp.send("Awards", "getAwardList", processAwardResults, {userName:SpilComp.getUserName(), userHash:SpilComp.getUserHash()});
};
}
public function set O1lll0ll0(_arg1:XML):void{
m_scoreServerTimeXMLData = _arg1;
}
public function OO00OO1l1l():SubmitterProxy{
return (this);
}
private function hasUserData():Boolean{
return (!(SpilComp.hasValidUserData()));
}
public function get O0l00l0O0():XML{
return (m_scoreXMLData);
}
private function destroy():void{
parentObj = null;
m_scoreXMLData = null;
m_achievXMLData = null;
}
private function requestScoreServerTime():void{
if (SpilComp){
SpilComp.send("Score", "checkServerTime", processTimeResults);
};
}
private function requestUserHighscoreList(_arg1:String):void{
if (SpilComp){
SpilComp.send("Score", "getUserRankList", processScoreResults, {targetUserName:_arg1});
};
}
public function get O1OlOO00O():XML{
return (m_achievXMLData);
}
private function submitGrantAward(_arg1:String):void{
if (SpilComp){
SpilComp.send("Awards", "submitAward", processAwardResults, {tag:_arg1, userName:SpilComp.getUserName(), userHash:SpilComp.getUserHash()});
};
}
private function submitScore(_arg1:int):void{
if (SpilComp){
SpilComp.send("Score", "submitScore", processScoreResults, {score:_arg1, userName:SpilComp.getUserName(), userHash:SpilComp.getUserHash()});
};
}
private function setLoader(_arg1=null, _arg2:String="default", _arg3="", _arg4:int=0, _arg5:String="normal", _arg6:String="", _arg7:int=0, _arg8:int=0, _arg9:int=1, _arg10:Boolean=false, _arg11:int=1):void{
if (_arg1){
SpilComp = new SpilGamesServices();
SpilComp.addEventListener("servicesReady", SpilConfiguratorReady);
SpilComp.addEventListener(IOErrorEvent.IO_ERROR, SpilConfiguratorFailedToLoad);
SpilComp.addEventListener("servicesFailed", SpilConfiguratorFailedToInitialise);
SpilComp.connect(_arg1);
};
}
private function requestHighscoreList():void{
if (SpilComp){
SpilComp.send("Score", "getRankingList", processScoreResults, null);
};
}
public function set O0l00l0O0(_arg1:XML):void{
m_scoreXMLData = _arg1;
}
private function setServerSelect(_arg1:int):void{
if (SpilComp){
};
}
private function requestAwardInfo(_arg1:int):void{
if (SpilComp){
SpilComp.send("Awards", "getAward", SpilCallback, {awardID:_arg1});
};
}
public function set O1OlOO00O(_arg1:XML):void{
m_achievXMLData = _arg1;
}
private function processAwardResults(_arg1:int, _arg2:Object):void{
if (_arg2){
m_achievXMLData = _arg2.xml;
} else {
m_achievXMLData = new XML("<hyscor><awardid>147</awardid></hyscor>");
};
}
public function getSpilGamesConnector(){
return (SpilComp);
}
public function get O1lll0ll0():XML{
return (m_scoreServerTimeXMLData);
}
private function processScoreResults(_arg1:int, _arg2:Object):void{
if (_arg2){
m_scoreXMLData = _arg2.xml;
} else {
m_scoreXMLData = <hyscor><resultset>
<group>daily</group>
<result>
<position>1</position>
<timestamp>1271247768</timestamp>
<username>noot</username>
<authenticated>1</authenticated>
<score>2</score>
<gamelevel>0</gamelevel>
<country>NL</country>
</result>
</resultset>
<resultset>
<group>weekly</group>
<result>
<position>1</position>
<timestamp>1271247768</timestamp>
<username>noot</username>
<authenticated>1</authenticated>
<score>2</score>
<gamelevel>0</gamelevel>
<country>NL</country>
</result>
</resultset>
<resultset>
<group>monthly</group>
<result>
<position>1</position>
<timestamp>1271247768</timestamp>
<username>noot</username>
<authenticated>1</authenticated>
<score>2</score>
<gamelevel>0</gamelevel>
<country>NL</country>
</result>
</resultset>
</hyscor>
;
};
}
private function getScoreServerTime():void{
if (SpilComp){
SpilComp.send("Score", "getLatestTimeCheck", processTimeResults);
};
}
private function SpilConfiguratorReady(_arg1:Event):void{
if (SpilComp){
SpilComp.removeEventListener("servicesReady", SpilConfiguratorReady);
SpilComp.removeEventListener(IOErrorEvent.IO_ERROR, SpilConfiguratorFailedToLoad);
SpilComp.removeEventListener("servicesFailed", SpilConfiguratorFailedToInitialise);
};
onLoadDone();
parentObj.dispatchEvent(new Event(Event.COMPLETE));
}
private function doCommTest():String{
if (SpilComp){
return ("y");
};
return (("FAILED " + SpilComp));
}
private function SpilConfiguratorFailedToLoad(_arg1:Event):void{
if (SpilComp){
SpilComp.removeEventListener("servicesReady", SpilConfiguratorReady);
SpilComp.removeEventListener(IOErrorEvent.IO_ERROR, SpilConfiguratorFailedToLoad);
SpilComp.removeEventListener("servicesFailed", SpilConfiguratorFailedToInitialise);
};
trace("SpilConfiguratorFailedToLoad", _arg1.toString());
if (parentObj.hasEventListener(IOErrorEvent.IO_ERROR)){
parentObj.dispatchEvent(new IOErrorEvent(IOErrorEvent.IO_ERROR));
};
}
private function onLegacyEvent(_arg1:Event):void{
dispatchEvent(_arg1);
}
private function isDomainAllowed(_arg1:Boolean=false):Boolean{
return (SpilComp.isDomainAllowed());
}
private function setLoader2(_arg1=null, _arg2:String="default", _arg3:int=1, _arg4="", _arg5:int=0, _arg6:String="normal", _arg7:String="", _arg8:int=0, _arg9:int=0, _arg10:int=1, _arg11:Boolean=false, _arg12:int=1):void{
setLoader(_arg1, _arg2, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12);
}
}
}//package
Section 300
//syrup (syrup)
package {
import flash.display.*;
public dynamic class syrup extends MovieClip {
}
}//package
Section 301
//syrupcup (syrupcup)
package {
import flash.display.*;
public dynamic class syrupcup extends MovieClip {
}
}//package
Section 302
//Trace (Trace)
package {
import zlong.breathxue.utils.debug.*;
import flash.utils.*;
public function Trace(... _args):void{
var TcClass:Class;
var args = _args;
if (!HideConsole){
trace(args);
};
if (TcShow){
try {
TcClass = (getDefinitionByName("zlong.breathxue.utils.debug.TC") as Class);
} catch(e:Error) {
TcShow = false;
};
if (TcClass){
var _local3 = TcClass;
_local3["SHOW"](args);
};
};
}
}//package
Section 303
//txt_back (txt_back)
package {
import zlong.display.*;
public dynamic class txt_back extends TranText {
}
}//package
Section 304
//txt_bowus (txt_bowus)
package {
import zlong.display.*;
public dynamic class txt_bowus extends TranText {
}
}//package
Section 305
//TXT_BRONZE_RANK_REACH (TXT_BRONZE_RANK_REACH)
package {
import zlong.display.*;
public dynamic class TXT_BRONZE_RANK_REACH extends TranText {
}
}//package
Section 306
//txt_buy (txt_buy)
package {
import zlong.display.*;
public dynamic class txt_buy extends TranText {
}
}//package
Section 307
//txt_coins (txt_coins)
package {
import zlong.display.*;
public dynamic class txt_coins extends TranText {
}
}//package
Section 308
//txt_game_complete (txt_game_complete)
package {
import zlong.display.*;
public dynamic class txt_game_complete extends TranText {
}
}//package
Section 309
//TXT_GOLD_RANK_REACH (TXT_GOLD_RANK_REACH)
package {
import zlong.display.*;
public dynamic class TXT_GOLD_RANK_REACH extends TranText {
}
}//package
Section 310
//txt_how_to_play (txt_how_to_play)
package {
import zlong.display.*;
public dynamic class txt_how_to_play extends TranText {
}
}//package
Section 311
//txt_leve1_TARGET (txt_leve1_TARGET)
package {
import zlong.display.*;
public dynamic class txt_leve1_TARGET extends TranText {
}
}//package
Section 312
//txt_level_clear (txt_level_clear)
package {
import zlong.display.*;
public dynamic class txt_level_clear extends TranText {
}
}//package
Section 313
//txt_level_failed (txt_level_failed)
package {
import zlong.display.*;
public dynamic class txt_level_failed extends TranText {
}
}//package
Section 314
//txt_LEVELMAP (txt_LEVELMAP)
package {
import zlong.display.*;
public dynamic class txt_LEVELMAP extends TranText {
}
}//package
Section 315
//txt_loading (txt_loading)
package {
import zlong.display.*;
public dynamic class txt_loading extends TranText {
}
}//package
Section 316
//txt_main (txt_main)
package {
import zlong.display.*;
public dynamic class txt_main extends TranText {
}
}//package
Section 317
//txt_more_games_at (txt_more_games_at)
package {
import zlong.display.*;
public dynamic class txt_more_games_at extends TranText {
}
}//package
Section 318
//txt_OK (txt_OK)
package {
import zlong.display.*;
public dynamic class txt_OK extends TranText {
}
}//package
Section 319
//txt_pause (txt_pause)
package {
import zlong.display.*;
public dynamic class txt_pause extends TranText {
}
}//package
Section 320
//txt_resume (txt_resume)
package {
import zlong.display.*;
public dynamic class txt_resume extends TranText {
}
}//package
Section 321
//TXT_SELVER_RANK_REACH (TXT_SELVER_RANK_REACH)
package {
import zlong.display.*;
public dynamic class TXT_SELVER_RANK_REACH extends TranText {
}
}//package
Section 322
//txt_shop (txt_shop)
package {
import zlong.display.*;
public dynamic class txt_shop extends TranText {
}
}//package
Section 323
//txt_shop1_1 (txt_shop1_1)
package {
import zlong.display.*;
public dynamic class txt_shop1_1 extends TranText {
}
}//package
Section 324
//txt_shop1_2 (txt_shop1_2)
package {
import zlong.display.*;
public dynamic class txt_shop1_2 extends TranText {
}
}//package
Section 325
//txt_shop1_3 (txt_shop1_3)
package {
import zlong.display.*;
public dynamic class txt_shop1_3 extends TranText {
}
}//package
Section 326
//txt_shop2_1 (txt_shop2_1)
package {
import zlong.display.*;
public dynamic class txt_shop2_1 extends TranText {
}
}//package
Section 327
//txt_shop2_2 (txt_shop2_2)
package {
import zlong.display.*;
public dynamic class txt_shop2_2 extends TranText {
}
}//package
Section 328
//txt_shop2_3 (txt_shop2_3)
package {
import zlong.display.*;
public dynamic class txt_shop2_3 extends TranText {
}
}//package
Section 329
//txt_shop3_1 (txt_shop3_1)
package {
import zlong.display.*;
public dynamic class txt_shop3_1 extends TranText {
}
}//package
Section 330
//txt_shop3_2 (txt_shop3_2)
package {
import zlong.display.*;
public dynamic class txt_shop3_2 extends TranText {
}
}//package
Section 331
//txt_shop3_3_ (txt_shop3_3_)
package {
import zlong.display.*;
public dynamic class txt_shop3_3_ extends TranText {
}
}//package
Section 332
//txt_shop4_1 (txt_shop4_1)
package {
import zlong.display.*;
public dynamic class txt_shop4_1 extends TranText {
}
}//package
Section 333
//txt_shop4_2_ (txt_shop4_2_)
package {
import zlong.display.*;
public dynamic class txt_shop4_2_ extends TranText {
}
}//package
Section 334
//txt_shop4_3 (txt_shop4_3)
package {
import zlong.display.*;
public dynamic class txt_shop4_3 extends TranText {
}
}//package
Section 335
//txt_shop5_1 (txt_shop5_1)
package {
import zlong.display.*;
public dynamic class txt_shop5_1 extends TranText {
}
}//package
Section 336
//txt_shop5_2 (txt_shop5_2)
package {
import zlong.display.*;
public dynamic class txt_shop5_2 extends TranText {
}
}//package
Section 337
//txt_shop5_3 (txt_shop5_3)
package {
import zlong.display.*;
public dynamic class txt_shop5_3 extends TranText {
}
}//package
Section 338
//txt_start (txt_start)
package {
import zlong.display.*;
public dynamic class txt_start extends TranText {
}
}//package
Section 339
//txt_try_again (txt_try_again)
package {
import zlong.display.*;
public dynamic class txt_try_again extends TranText {
}
}//package
Section 340
//UI_FIRSTMAIN (UI_FIRSTMAIN)
package {
import flash.display.*;
public dynamic class UI_FIRSTMAIN extends MovieClip {
public var sound:button_3;
public var music:button_2;
public var __id5_:MoreGamesLogo;
public var start:button_start;
public var howtoplay:button_howtoplay;
public var quality:button_1;
public function UI_FIRSTMAIN(){
__setProp___id5__UI_FIRSTMAIN_Layer12_1();
}
function __setProp___id5__UI_FIRSTMAIN_Layer12_1(){
try {
__id5_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id5_.position = "button_mainscreen_moregames";
__id5_.type = "moregames";
try {
__id5_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 341
//UI_GAMECOMPLETE (UI_GAMECOMPLETE)
package {
import flash.display.*;
public dynamic class UI_GAMECOMPLETE extends MovieClip {
public var __id6_:Logo;
public var mainmenu:button_main;
public function UI_GAMECOMPLETE(){
__setProp___id6__UI_GAMECOMPLETE__1();
}
function __setProp___id6__UI_GAMECOMPLETE__1(){
try {
__id6_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id6_.alignHorizontal = "Center";
__id6_.alignVertical = "Center";
__id6_.maxHeight = 40;
__id6_.maxWidth = 150;
__id6_.position = "logo_levelcomplete";
try {
__id6_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 342
//UI_HOWTOPLAY (UI_HOWTOPLAY)
package {
import flash.display.*;
public dynamic class UI_HOWTOPLAY extends MovieClip {
public var left:button_left;
public var right:button_left;
public var playgame:button_start;
public var howtoplay:MovieClip;
public var __id1_:Logo;
public var back:button_back;
public function UI_HOWTOPLAY(){
__setProp___id1__UI_HOWTOPLAY__1();
}
function __setProp___id1__UI_HOWTOPLAY__1(){
try {
__id1_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id1_.alignHorizontal = "Center";
__id1_.alignVertical = "Center";
__id1_.maxHeight = 40;
__id1_.maxWidth = 150;
__id1_.position = "logo_playingGame";
try {
__id1_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 343
//UI_INGAME (UI_INGAME)
package {
import flash.display.*;
import flash.text.*;
public dynamic class UI_INGAME extends MovieClip {
public var dustbin:MovieClip;
public var targettext:TextField;
public var alarmclock:MovieClip;
public var hint:MovieClip;
public var target:MovieClip;
public var time:MovieClip;
public var moneytext:TextField;
public var pause:button_pause;
}
}//package
Section 344
//UI_LEVELLOST (UI_LEVELLOST)
package {
import flash.display.*;
public dynamic class UI_LEVELLOST extends MovieClip {
public var levmap:button_LEVELMAP;
public var __id7_:Logo;
public var tryagain:button_tryagain;
public function UI_LEVELLOST(){
__setProp___id7__UI_LEVELLOST_Layer14_1();
}
function __setProp___id7__UI_LEVELLOST_Layer14_1(){
try {
__id7_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id7_.alignHorizontal = "Center";
__id7_.alignVertical = "Center";
__id7_.maxHeight = 40;
__id7_.maxWidth = 150;
__id7_.position = "logo_gameover";
try {
__id7_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 345
//UI_LEVELMAP (UI_LEVELMAP)
package {
import flash.display.*;
public dynamic class UI_LEVELMAP extends MovieClip {
public var lev14:MovieClip;
public var lev12:MovieClip;
public var lev13:MovieClip;
public var lev15:MovieClip;
public var lev10:MovieClip;
public var shop:button_shop;
public var lev16:MovieClip;
public var start:button_start;
public var mainmenu:button_main;
public var insidemc:MovieClip;
public var lev2:MovieClip;
public var lev4:MovieClip;
public var lev6:MovieClip;
public var lev7:MovieClip;
public var lev8:MovieClip;
public var lev3:MovieClip;
public var lev9:MovieClip;
public var lev1:MovieClip;
public var lev5:MovieClip;
public var buyobjcue:MovieClip;
public var lev11:MovieClip;
}
}//package
Section 346
//UI_LEVELTARGET (UI_LEVELTARGET)
package {
import flash.display.*;
import flash.text.*;
import flash.utils.*;
public dynamic class UI_LEVELTARGET extends MovieClip {
public var ok:button_OK;
public var __setPropDict:Dictionary;
public var levdata:TextField;
public var __id0_:Logo;
public var lev2:TextField;
public var lev1:TextField;
public var lev3:TextField;
public function UI_LEVELTARGET(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42);
}
function frame10(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame14(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame12(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame18(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame3(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame6(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame1(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame19(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame25(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame17(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame4(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame13(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame16(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame8(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame9(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame2(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame5(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame23(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame24(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame7(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame20(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame21(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame22(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame34(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame27(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame11(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame35(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame36(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame37(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame28(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame29(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame33(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame40(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame41(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame26(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame32(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame42(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame30(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame39(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function __setProp___id0__UI_LEVELTARGET_Layer17_1(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.alignHorizontal = "Center";
__id0_.alignVertical = "Center";
__id0_.maxHeight = 40;
__id0_.maxWidth = 150;
__id0_.position = "logo_playingGame";
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame31(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame15(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
function frame38(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 42))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__UI_LEVELTARGET_Layer17_1();
};
}
}
}//package
Section 347
//UI_LEVELWIN (UI_LEVELWIN)
package {
import flash.display.*;
import flash.text.*;
public dynamic class UI_LEVELWIN extends MovieClip {
public var ok:button_OK;
public var cup:MovieClip;
public var __id9_:Logo;
public var effect:MovieClip;
public var txt1:TextField;
public var txt2:TextField;
public function UI_LEVELWIN(){
__setProp___id9__UI_LEVELWIN_Layer13_1();
}
function __setProp___id9__UI_LEVELWIN_Layer13_1(){
try {
__id9_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id9_.alignHorizontal = "Center";
__id9_.alignVertical = "Center";
__id9_.maxHeight = 40;
__id9_.maxWidth = 150;
__id9_.position = "logo_levelcomplete";
try {
__id9_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 348
//UI_loading (UI_loading)
package {
import flash.display.*;
import flash.text.*;
public dynamic class UI_loading extends MovieClip {
public var progress_txt:TextField;
public var food3:MovieClip;
public var food5:MovieClip;
public var food6:MovieClip;
public var food7:MovieClip;
public var food1:MovieClip;
public var food4:MovieClip;
public var food8:MovieClip;
public var food2:MovieClip;
public var food9:MovieClip;
public var food10:MovieClip;
}
}//package
Section 349
//UI_MAIN (UI_MAIN)
package {
import flash.display.*;
public dynamic class UI_MAIN extends MovieClip {
public var sound:button_3;
public var music:button_2;
public var start:button_start;
public var howtoplay:button_howtoplay;
public var __id4_:MoreGamesLogo;
public var quality:button_1;
public function UI_MAIN(){
__setProp___id4__UI_MAIN__1();
}
function __setProp___id4__UI_MAIN__1(){
try {
__id4_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id4_.position = "button_mainscreen_moregames";
__id4_.type = "moregames";
try {
__id4_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 350
//UI_PAUSE (UI_PAUSE)
package {
import flash.display.*;
import flash.utils.*;
public dynamic class UI_PAUSE extends MovieClip {
public var resume:button_resume;
public var __setPropDict:Dictionary;
public var levelmap:button_LEVELMAP;
public var __id8_:Logo;
public function UI_PAUSE(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50);
}
function frame10(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame14(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame12(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame18(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame3(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame7(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame1(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame19(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame6(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame17(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame4(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame5(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame9(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame13(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame16(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame8(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame21(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame2(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame15(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame23(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame24(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame28(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame36(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame20(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame30(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame22(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame25(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame27(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame11(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame34(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame35(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame37(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame43(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame29(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame33(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame41(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame39(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function __setProp___id8__UI_PAUSE_Layer16_1(){
try {
__id8_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id8_.alignHorizontal = "Center";
__id8_.alignVertical = "Center";
__id8_.maxHeight = 40;
__id8_.maxWidth = 150;
__id8_.position = "logo_playingGame";
try {
__id8_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame32(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame42(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame46(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame40(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame26(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame48(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame49(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame44(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame45(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame31(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame47(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame50(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
function frame38(){
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 1)) && ((int(__setPropDict[__id8_]) <= 50))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__UI_PAUSE_Layer16_1();
};
}
}
}//package
Section 351
//UI_SHOP (UI_SHOP)
package {
import flash.display.*;
import flash.text.*;
public dynamic class UI_SHOP extends MovieClip {
public var yes2:MovieClip;
public var totalmoneytxt:TextField;
public var yes1:MovieClip;
public var yes3:MovieClip;
public var yes5:MovieClip;
public var yes4:MovieClip;
public var bwbuy2:button_buy;
public var gbuy6:button_buy;
public var gbuy5:button_buy;
public var bwbuy1:button_buy;
public var gridding5:MovieClip;
public var bwbuy3:button_buy;
public var bw1:MovieClip;
public var gridding6:MovieClip;
public var bw2:MovieClip;
public var bwtxt2:TextField;
public var bwtxt3:TextField;
public var bwtxt1:TextField;
public var __id2_:Logo;
public var gtxt5:TextField;
public var gtxt6:TextField;
public var bw3:MovieClip;
public var back:button_back;
public function UI_SHOP(){
__setProp___id2__UI_SHOP__1();
}
function __setProp___id2__UI_SHOP__1(){
try {
__id2_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id2_.alignHorizontal = "Center";
__id2_.alignVertical = "Center";
__id2_.maxHeight = 40;
__id2_.maxWidth = 150;
__id2_.position = "logo_playingGame";
try {
__id2_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 352
//woman01 (woman01)
package {
import flash.display.*;
public dynamic class woman01 extends MovieClip {
}
}//package
Section 353
//woman02 (woman02)
package {
import flash.display.*;
public dynamic class woman02 extends MovieClip {
}
}//package
Section 354
//任务框弹出 (任务框弹出)
package {
import flash.media.*;
public dynamic class 任务框弹出 extends Sound {
}
}//package
Section 355
//切换帘关 (切æ¢å¸˜å…³)
package {
import flash.media.*;
public dynamic class 切换帘关 extends Sound {
}
}//package
Section 356
//切换帘开 (切æ¢å¸˜å¼€)
package {
import flash.media.*;
public dynamic class 切换帘开 extends Sound {
}
}//package
Section 357
//客人生气离开 (客人生气离开)
package {
import flash.media.*;
public dynamic class 客人生气离开 extends Sound {
}
}//package
Section 358
//扔垃圾 (扔垃圾)
package {
import flash.media.*;
public dynamic class 扔垃圾 extends Sound {
}
}//package
Section 359
//拿起食物 (拿起食物)
package {
import flash.media.*;
public dynamic class 拿起食物 extends Sound {
}
}//package
Section 360
//收钱 (收钱)
package {
import flash.media.*;
public dynamic class 收钱 extends Sound {
}
}//package
Section 361
//放下烤 (放下烤)
package {
import flash.media.*;
public dynamic class 放下烤 extends Sound {
}
}//package
Section 362
//烧烤完成 (烧烤完æˆ)
package {
import flash.media.*;
public dynamic class 烧烤完成 extends Sound {
}
}//package
Section 363
//给食物 (给食物)
package {
import flash.media.*;
public dynamic class 给食物 extends Sound {
}
}//package
Section 364
//给饮料 (给饮料)
package {
import flash.media.*;
public dynamic class 给饮料 extends Sound {
}
}//package
Section 365
//食物翻面 (食物翻é¢)
package {
import flash.media.*;
public dynamic class 食物翻面 extends Sound {
}
}//package