Section 1
//Cookie (code.data.Cookie)
package code.data {
import flash.net.*;
import code.logic.*;
public class Cookie {
private const id:String = "Develish_Hairdresser1.01";
private static var so:SharedObject;
public static var da:Object;
public function Cookie():void{
initSo();
initData();
}
public function del():void{
so.close();
}
private function initData():void{
var _local1:Array;
var _local2:Object;
da = so.data;
if (da["help"] == null){
da["help"] = true;
};
if (da["Levelarr"] == null){
trace("初始化Cookie数据");
_local1 = new Array({cup:PlayerStar.NoStar.value, level:PlayerStar.BronzeStar.value}, {cup:PlayerStar.WinStar.value, level:PlayerStar.BronzeStar.value}, {cup:PlayerStar.WinStar.value, level:PlayerStar.BronzeStar.value}, {cup:PlayerStar.WinStar.value, level:PlayerStar.BronzeStar.value}, {cup:PlayerStar.WinStar.value, level:PlayerStar.BronzeStar.value}, {cup:PlayerStar.WinStar.value, level:PlayerStar.BronzeStar.value}, {cup:PlayerStar.WinStar.value, level:PlayerStar.BronzeStar.value}, {cup:PlayerStar.WinStar.value, level:PlayerStar.BronzeStar.value}, {cup:PlayerStar.WinStar.value, level:PlayerStar.BronzeStar.value}, {cup:PlayerStar.WinStar.value, level:PlayerStar.BronzeStar.value});
da["Levelarr"] = _local1;
};
if (da["Achievement"] == null){
_local2 = {SlyDevil:[true, "SlyDevil"], SuperSlyDevil:[true, "SuperSlyDevil"], SilverDevil:[true, "SilverDevil"], GoldDevil:[true, "GoldDevil"], SuperDevil:[true, "SuperDevil"]};
da["Achievement"] = _local2;
};
if (da["CurrLevel"] == null){
da["CurrLevel"] = 0;
};
if (da["effect"] == null){
da["effect"] = true;
};
if (da["endGame"] == null){
da["endGame"] = false;
};
}
private function initSo():void{
so = SharedObject.getLocal(id, "/");
}
public static function flush():void{
so.flush();
}
}
}//package code.data
Section 2
//CountryCookie (code.data.CountryCookie)
package code.data {
import flash.net.*;
public class CountryCookie {
private static const countryName:String = "savedLang";
private static const name:String = "spilgames_language_v100";
public static const nameGroup:Array = ["en_us", "cn", "nl", "fr", "de", "pl", "se", "it", "es", "br", "id", "ru", "en_uk", "in", "tr", "my", "pt", "ph", "jp"];
private static var so:SharedObject;
public function CountryCookie():void{
so = SharedObject.getLocal(name, "/");
}
private static function mathCountryNameToLanguagerNum(_arg1:String):int{
var _local2:int;
_local2 = nameGroup.indexOf(_arg1);
if (_local2 == -1){
return (1);
};
return ((_local2 + 1));
}
public static function set country(_arg1:int):void{
so.data[countryName] = mathLanguagerNumToCountryName(_arg1);
}
private static function mathLanguagerNumToCountryName(_arg1:int):String{
if ((((_arg1 < 1)) || ((_arg1 > nameGroup.length)))){
return ("en_us");
};
return (nameGroup[(_arg1 - 1)]);
}
public static function get country():int{
if (so.data[countryName] == null){
return (1);
};
return (mathCountryNameToLanguagerNum(so.data[countryName]));
}
}
}//package code.data
Section 3
//Data (code.data.Data)
package code.data {
public class Data {
public static const Hair:String = "hair";
public static const LevelMaxNum:int = 10;
public static const LevelFaildMC1:String = "BeCatchMC";
public static const LevelFaildMC2:String = "TimeOverMC";
public static const AngerActionArr:Array = new Array(Phone, Magazines, Coffee, Hair);
public static const AngleActionTurnHeadOdds:Number = 0.15;
public static const DevilSuperStateHappenSeatMaxLengthToEnd:Number = 0.05;
public static const MainMC:String = "MainMC";
public static const AngerActionPhoneArr:Array = new Array("phone_1", "phone_2", "phone_3", "phone_4", "phone_5", "phone_6", "phone_7");
public static const AngleActionMinTime:Number = 3;
public static const LevelWarnMC:String = "POPMC";
public static const Magazines:String = "magazines";
public static const AngleThinKAndToDoOdds:Number = 0.85;
public static const isProtect:Boolean = false;
public static const AngleSuperStateHappenSeatMaxLengthToEnd:Number = 0.8;
public static const Phone:String = "phone";
public static const AngleActionMaxTime:Number = 10;
public static const MenuMC:String = "MenuMC";
public static const NPGArr:Array = new Array("CuteSchoolKid", "GothicBoy", "TeenageGirl", "Sweet16Girl", "Toddler", "ToughAfroGuy", "Motherwithbaby", "NerdMan", "BusinessWoman", "OldLady");
public static const AngerActionCutHairArr:Array = new Array("hair_1", "hair_2");
public static const AngleSuperStateEffectLength:Number = 1;
public static const stageWidth:Number = 660;
public static const AngleCutHairTurnActionDoOdds:Number = 0.2;
public static const AngleFakeTurnHeadDoOdds:Number = 0.02;
public static const LevelPreMC:String = "";
public static const LostGameMC:String = "";
public static const HowToPlayMC:String = "HowToPlayMC";
public static const DevilSuperSpeed:Number = 0.6;
public static const CreditsMC:String = "CreditsMC";
public static const AngerActioncoffeeArr:Array = new Array("coffee_01", "coffee_02", "coffee_03", "coffee_04");
public static const AchiMC:String = "AchievementMC";
public static const AngleSuperSpeed:Number = 0.6;
public static const DevilNormalSpeed:Number = 0.2;
public static const AngleCutHaitMinTime:Number = 1;
public static const AngleSuperStateOdds:Number = 0.1;
public static const AngleCutHaitMaxTime:Number = 2;
public static const stageHeight:Number = 480;
public static const loadingMC:String = "LoadingMC";
public static const isTest:Boolean = false;
public static const WinGameMC:String = "";
public static const LevelPassMC:String = "LevelCompleteMC";
public static const Coffee:String = "coffee";
public static const AngleNormalSpeed:Number = 0.2;
public static const LevelMapMC:String = "LevelmapMC";
public static const FpsNum:int = 30;
public static const AngerActionmagazinesArr:Array = new Array("magazines_1", "magazines_2", "magazines_3", "magazines_4", "magazines_5");
public static var pash:Boolean = true;
public static var siteLock:Boolean;
public static var MusicEable:Boolean = true;
public static var debug:Boolean;
public static var HasNewAchievement:Boolean = false;
public static var faildNum:int;
public static var SoundEable:Boolean = true;
public static var QualityType:Number = 1;
public static var googleIsShow:Boolean = false;
public static var LevelCurrNum:int;
}
}//package code.data
Section 4
//LocationTextData (code.data.LocationTextData)
package code.data {
public class LocationTextData {
public static const LinkTextArr:Array = new Array("Link:", "Link:", "Link:", "Lien :", "Link:", "Enlace:", "Link:", "Link:", "Link:", "Länk:", "Link:", "Ссылка:", "Link:", "Sambungan:", "Pautan:", "リンク:", "链接地址:");
public static const EnterYourNameArr:Array = new Array("Enter your name here:", "Enter your name here:", "Vul hier je naam in:", "Entre ton nom ici :", "Gib deinen Namen hier ein:", "Escribe aquí tu nombre:", "Escreva o seu nome aqui:", "Escreva o seu nome aqui:", "Inserisci il tuo nome qui: ", "Ange ditt namn här:", "Tu wpisz swoje imię:", "Введи свое имя:", "İsminizi girin:", "Masukkan nama anda disini:", "Masukkan nama anda di sini:", "あなたの名前を入力して下さい:", "在这输入你的名字:");
public static const EnterTextArr:Array = new Array("Enter text here:", "Enter text here:", "Vul hier je tekst in:", "Entre ton texte ici :", "Hier kannst du einen Text eingeben:", "Introduce aquí el texto:", "Escreva um texto aqui:", "Escreva o texto aqui:", "Entra qui il testo:", "Skriv text här:", "Tu wpisz tekst:", "Введи текст:", "Mesajınızı buraya girin:", "Masukkan kalimat disini:", "Masukkan teks di sini:", "カードの文章を入力して下さい:", "在这输入你的寄语:");
}
}//package code.data
Section 5
//Action (code.logic.Action)
package code.logic {
import flash.display.*;
import code.tool.*;
import code.data.*;
public class Action {
public function Angel(_arg1:Angle, _arg2:MyselfMC, _arg3:String=null):Object{
var _local4:Array;
var _local5:int;
var _local6:Object;
_local4 = offsetProbability(_arg2.currFrame, _arg2.totalFrame);
if (_arg3 == null){
_arg3 = radomAction(_local4);
};
_local5 = actionTime(_arg3);
_local6 = getRadomActionList(_arg1.display, _arg3, _local5);
return (_local6);
}
private function offsetProbability(_arg1:int, _arg2:int):Array{
var _local3:Number;
_local3 = (_arg1 / _arg2);
return (Probability.offsetProbability("hair", int((Data.LevelCurrNum * _local3)), Data.AngerActionArr));
}
private function actionTime(_arg1:String, _arg2:Number=1):int{
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
_local3 = 2;
_local4 = (Data.AngleActionMaxTime * _arg2);
if (_arg1 == Data.Hair){
_local3 = Data.AngleCutHaitMinTime;
_local4 = Data.AngleCutHaitMaxTime;
} else {
_local3 = Data.AngleActionMinTime;
_local4 = Data.AngleActionMaxTime;
};
_local5 = Math.abs(((_local4 - _local3) + 1));
_local6 = (Math.floor((Math.random() * _local5)) + _local3);
return ((_local6 * Data.FpsNum));
}
private function radomAction(_arg1:Array):String{
var _local2:int;
_local2 = Math.floor((Math.random() * _arg1.length));
return (_arg1[_local2]);
}
private function getActionList(_arg1:String):Array{
var _local2:Array;
switch (_arg1){
case Data.Phone:
_local2 = Data.AngerActionPhoneArr.concat();
break;
case Data.Magazines:
_local2 = Data.AngerActionmagazinesArr.concat();
break;
case Data.Coffee:
_local2 = Data.AngerActioncoffeeArr.concat();
break;
case Data.Hair:
_local2 = Data.AngerActionCutHairArr.concat();
break;
default:
_local2 = new Array();
};
return (_local2);
}
private function getBegian(_arg1:String):int{
var _local2:int;
switch (_arg1){
case Data.Phone:
_local2 = 0;
break;
case Data.Coffee:
_local2 = (Data.AngerActionPhoneArr.length - 1);
break;
case Data.Magazines:
_local2 = ((Data.AngerActionPhoneArr.length + Data.AngerActioncoffeeArr.length) - 1);
break;
case Data.Hair:
_local2 = (((Data.AngerActionPhoneArr.length + Data.AngerActioncoffeeArr.length) + Data.AngerActionmagazinesArr.length) - 1);
break;
default:
_local2 = 0;
};
return (_local2);
}
private function getRadomActionList(_arg1:MovieClip, _arg2:String, _arg3:int):Object{
var _local4:Array;
var _local5:Array;
var _local6:Array;
var _local7:int;
var _local8:int;
var _local9:FrameLabel;
var _local10:int;
var _local11:String;
var _local12:int;
var _local13:FrameLabel;
var _local14:int;
_local4 = new Array();
_local5 = getActionList(_arg2);
_local6 = _arg1.currentLabels;
_local7 = 0;
_local8 = getBegian(_arg2);
while (_arg3 > _local7) {
_local10 = Math.floor((Math.random() * _local5.length));
_local11 = _local5[_local10];
_local12 = _local8;
while (_local12 < _local6.length) {
_local9 = _local6[_local12];
if (_local11 == _local9.name){
_local13 = _local6[(_local12 + 1)];
_local14 = (_local13.frame - _local9.frame);
_local7 = (_local7 + _local14);
_local4.push(_local9);
break;
};
_local12++;
};
};
return ({Action:_arg2, ActionList:_local4, Time:_local7});
}
public function AngelFly(_arg1:MovieClip, _arg2:String, _arg3:int=1):Object{
var _local4:Array;
var _local5:int;
var _local6:FrameLabel;
var _local7:Array;
var _local8:int;
var _local9:int;
_local4 = _arg1.currentLabels;
_local5 = _local4.length;
_local7 = [];
_local7.push(getLabel("surprise", _local4));
_local8 = (_local5 - 1);
while (_local8 > 0) {
_local6 = _local4[_local8];
if (_local6.name == _arg2){
_local9 = 0;
while (_local9 < _arg3) {
_local7.push(_local6);
_local9++;
};
return ({Action:Data.Hair, ActionList:_local7, Time:_arg3});
};
_local8--;
};
return ({Action:Data.Hair, ActionList:_local7, Time:_arg3});
}
public function devil():void{
}
private function getLabel(_arg1:String, _arg2:Array):FrameLabel{
var _local3:FrameLabel;
var _local4:int;
_local4 = 0;
while (_local4 < _arg2.length) {
_local3 = _arg2[_local4];
if (_arg1 == _local3.name){
return (_local3);
};
_local4++;
};
return (null);
}
}
}//package code.logic
Section 6
//ActionPlay (code.logic.ActionPlay)
package code.logic {
import flash.display.*;
import code.tool.*;
import code.data.*;
import code.*;
public class ActionPlay {
private var _colsedEye:int;
private var _currlabel:FrameLabel;
private var _openEye:int;
private var _nextLabel:FrameLabel;
private var _actionAngleList:Array;
private var _currLabelEndFram:int;
private var _isGo:Boolean;// = false
private var _angle:Angle;
private var _main:Main;
private var _labels:Array;
private var _currPlayNum:Number;
private var _start:Boolean;// = false
private var choosuond:ChooseSound;
private var _angleAction:String;
private var _startAngle:Boolean;// = false
private var _currSound:String;
public function ActionPlay(){
_start = false;
_startAngle = false;
_isGo = false;
super();
}
public function step():void{
if (_start){
if (((_startAngle) && (!((_angle == null))))){
isAngle();
};
};
}
private function getNextLabel(_arg1:FrameLabel):FrameLabel{
var _local2:FrameLabel;
var _local3:FrameLabel;
var _local4:int;
_local4 = 0;
while (_local4 < _labels.length) {
_local2 = _labels[_local4];
if (_arg1.name == _local2.name){
_local3 = _labels[(_local4 + 1)];
};
_local4++;
};
return (_local3);
}
private function AngleEndActionfun():void{
initAngle();
if (_isGo){
_main.start();
} else {
_main.angleCutHair();
};
}
private function getAngleTurnBack(_arg1:String):FrameLabel{
var _local2:String;
var _local3:FrameLabel;
var _local4:int;
switch (_arg1){
case Data.Phone:
_local2 = "tel_huitou";
break;
case Data.Magazines:
_local2 = "book_huitou";
break;
case Data.Coffee:
_local2 = "coffee_huitou";
break;
default:
_local2 = "hair_2";
break;
};
_local4 = 0;
while (_local4 < _labels.length) {
_local3 = _labels[_local4];
if (_local3.name == _local2){
return (_local3);
};
_local4++;
};
return (null);
}
public function clearFrameScript(_arg1:int=0):void{
if (_arg1 == 0){
_arg1 = (_angle.currentFrame - 1);
};
_angle.display.addFrameScript(_arg1, null);
}
private function fakeBack():void{
if (_currPlayNum < _actionAngleList.length){
start();
clearFrameScript();
} else {
AngleEndActionfun();
};
}
public function closeEyeTimefun():void{
_angle.display.gotoAndPlay(_openEye);
clearFrameScript();
}
private function isAngle():void{
player();
}
public function angelplay(_arg1:Main):void{
choosuond = new ChooseSound();
_main = _arg1;
_angle = _main.angle;
_actionAngleList = _angle.action["ActionList"];
_angleAction = _angle.action["Action"];
if (_angleAction == Data.Hair){
_angle.isCutHair = true;
_isGo = true;
} else {
_angle.isCutHair = false;
_isGo = false;
};
_currPlayNum = 0;
_labels = _angle.display.currentLabels;
_start = true;
_startAngle = true;
start();
}
private function start():void{
var _local1:Object;
_currlabel = _actionAngleList[_currPlayNum];
if (_angle.display != null){
_angle.changeFace(_currlabel.name);
};
_nextLabel = getNextLabel(_currlabel);
_currPlayNum++;
_currLabelEndFram = MCPlayer.getCurrLabelFinalFrame(_angle.display, _currlabel.name);
_local1 = choosuond.check(_currlabel.name);
if (_local1 != null){
_currSound = _local1["name"];
};
choosuond.play(_angle.display, _local1);
}
private function initAngle():void{
_actionAngleList = new Array();
_angleAction = null;
_currlabel = null;
_nextLabel = null;
_start = false;
_startAngle = false;
clearFrameScript();
_angle = null;
}
private function onRandomBackFun():Boolean{
if (Math.random() < (Data.AngleFakeTurnHeadDoOdds + ((Math.sqrt((Data.LevelCurrNum / (Data.LevelMaxNum - 1))) / 10) * 7))){
return (false);
};
return (true);
}
private function player():void{
if (_angle.currentFrame == _currLabelEndFram){
if (_currSound != null){
SoundsManager.stopSound(_currSound);
};
if (_currPlayNum >= _actionAngleList.length){
AngleGotoBackfun(false);
} else {
if (_angleAction == Data.Hair){
start();
} else {
if (Math.random() < ((Data.AngleActionTurnHeadOdds + ((Math.sqrt((Data.LevelCurrNum / (Data.LevelMaxNum - 1))) / 10) * 4)) + (_main.seat / 5))){
AngleGotoBackfun(true);
} else {
start();
};
};
};
};
}
private function AngleGotoBackfun(_arg1:Boolean=false):void{
var _local2:Boolean;
var _local3:FrameLabel;
_local3 = getAngleTurnBack(_angleAction);
_angle.changeFace(_local3.name);
_colsedEye = int((_local3.frame + 7));
_openEye = int(((_colsedEye + (5 * Game.lostFramePre)) + 1));
if (_arg1){
_local2 = onRandomBackFun();
} else {
_local2 = true;
};
if (_local2){
_angle.display.addFrameScript(_colsedEye, closeEyeTimefun);
_angle.display.addFrameScript((_colsedEye + 6), AngleEndActionfun);
} else {
_angle.display.addFrameScript((_colsedEye + 3), fakeBack);
};
}
}
}//package code.logic
Section 7
//Angle (code.logic.Angle)
package code.logic {
import flash.display.*;
import code.tool.*;
import code.data.*;
public class Angle extends Character {
private var _speed:Number;
private var _action:Object;
private var _isthink:Boolean;
override public function stop():void{
super.stop();
if (display["cutMC"] != null){
(display["cutMC"] as MovieClip).stop();
};
}
public function step(_arg1:MyselfMC):void{
var _local2:Number;
if (((isCutHair) && (!(_isthink)))){
if (display.currentLabel == "hairfly"){
_speed = -(Data.AngleSuperSpeed);
} else {
_speed = -(Data.AngleNormalSpeed);
};
_local2 = (_arg1.barCurrFrame / _arg1.totalFrame);
_arg1.barCurrFrame = (_arg1.barCurrFrame + (_speed * _local2));
_arg1.jumpFrame();
};
}
public function get isthink():Boolean{
return (_isthink);
}
public function set isthink(_arg1:Boolean):void{
_isthink = _arg1;
}
public function set action(_arg1:Object):void{
_action = _arg1;
}
public function think():void{
this.changeFace("think");
display.addFrameScript(MCPlayer.getCurrLabelBegianFrame(display, "think"), changeMindFun);
}
override public function play():void{
super.play();
if (display["cutMC"] != null){
(display["cutMC"] as MovieClip).play();
};
if (_isthink){
think();
};
}
public function get action():Object{
return (_action);
}
private function changeMindFun():void{
var _local1:MovieClip;
_local1 = (display.getChildByName("managerMC") as MovieClip);
switch (action["Action"]){
case Data.Phone:
_local1.gotoAndStop(1);
break;
case Data.Magazines:
_local1.gotoAndStop(2);
break;
default:
_local1.gotoAndStop(3);
};
}
}
}//package code.logic
Section 8
//Character (code.logic.Character)
package code.logic {
import flash.display.*;
import code.tool.*;
import flash.utils.*;
public class Character {
private var __display:MovieClip;
private var _isCuthair:Boolean;
public function Character():void{
}
public function setDisplay(_arg1:MovieClip):void{
display = _arg1;
if (getQualifiedClassName(this) == "code.logic::Character"){
display.addFrameScript((MCPlayer.getCurrLabelBegianFrame(display, "devil") - 2), rePalyFun);
display.addFrameScript(112, clondFun);
display.addFrameScript((display.totalFrames - 1), stopDevilFun);
};
}
private function clondFun():void{
var _local1:MovieClip;
_local1 = (display.getChildByName("clound") as MovieClip);
if (_local1 != null){
_local1.visible = false;
};
}
public function get currentFrame():int{
return (display.currentFrame);
}
private function stopDevilFun():void{
display.stop();
}
public function get totalFrames():int{
return (display.totalFrames);
}
public function del():void{
if (__display != null){
__display.parent.removeChild(__display);
__display = null;
};
}
public function set isCutHair(_arg1:Boolean):void{
_isCuthair = _arg1;
}
public function changeFace(_arg1:Object, _arg2:Boolean=true):void{
if (__display != null){
if (_arg2){
__display.gotoAndPlay(_arg1);
} else {
__display.gotoAndStop(_arg1);
};
} else {
trace(("Null" + _arg1));
};
}
private function rePalyFun():void{
display.gotoAndPlay(1);
}
public function stop():void{
var _local1:int;
var _local2:MovieClip;
display.stop();
_local1 = (display.numChildren - 1);
while (_local1 > 0) {
_local2 = (display.getChildAt(_local1) as MovieClip);
if (_local2 != null){
_local2.stop();
};
_local1--;
};
}
public function get isCutHair():Boolean{
return (_isCuthair);
}
public function play():void{
var _local1:int;
var _local2:MovieClip;
display.play();
_local1 = (display.numChildren - 1);
while (_local1 > 0) {
_local2 = (display.getChildAt(_local1) as MovieClip);
if (((!((_local2 == null))) && (!((_local2.name == "managerMC"))))){
_local2.play();
};
_local1--;
};
}
public function get display():MovieClip{
return (__display);
}
public function set display(_arg1:MovieClip):void{
__display = _arg1;
}
}
}//package code.logic
Section 9
//ChooseSound (code.logic.ChooseSound)
package code.logic {
import flash.display.*;
import code.tool.*;
public class ChooseSound {
public function play(_arg1:MovieClip, _arg2:Object):void{
var _local3:Array;
var _local4:String;
var _local5:int;
var _local6:int;
if (_arg2 == null){
return;
};
_local3 = _arg2["seatArr"];
_local4 = _arg2["name"];
if (_arg1 != null){
if (_local3 == null){
_arg1.addFrameScript(_arg2["start"], startFun(_local4, _arg1));
} else {
_local6 = 0;
while (_local6 < _local3.length) {
_local5 = _local3[_local6];
_arg1.addFrameScript(_local5, startFun(_local4, _arg1));
_local6++;
};
};
if (_arg1.currentLabel == "coffee_04"){
_arg1.addFrameScript(466, startFun("find", _arg1));
};
} else {
trace("this mc is null !");
};
}
public function check(_arg1:String):Object{
var _local2:Object;
if (_arg1 == "hair1"){
_local2 = "";
};
switch (_arg1){
case "hair_1":
_local2 = {name:"cutHair", seatArr:null, start:775, end:818};
break;
case "hair_2":
_local2 = {name:("whistle" + Math.floor((Math.random() * 3))), seatArr:null, start:825, end:891};
break;
case "coffee_01":
_local2 = {name:"churnUp", seatArr:[350]};
break;
case "coffee_02":
_local2 = {name:"churnUp", seatArr:[393]};
break;
case "coffee_04":
_local2 = {name:"sweet", seatArr:[474, 482, 490]};
break;
case "magazines_2":
_local2 = {name:"chuckBook", seatArr:[582, 615, 490]};
break;
case "magazines_5":
_local2 = {name:"chuckBook", seatArr:[746]};
break;
case "magazines_1":
_local2 = {name:"pickBook", seatArr:[498]};
break;
case "magazines_3":
_local2 = {name:"pickBook", seatArr:[633]};
break;
case "magazines_4":
_local2 = {name:"smail", seatArr:[716]};
break;
case "phone_1":
_local2 = {name:("talk" + Math.floor((Math.random() * 2))), seatArr:[1]};
break;
case "phone_2":
_local2 = {name:("talk" + Math.floor((Math.random() * 2))), seatArr:[91]};
break;
case "phone_3":
_local2 = {name:("talk" + Math.floor((Math.random() * 2))), seatArr:[136]};
break;
case "phone_4":
_local2 = {name:("fadie" + Math.floor((Math.random() * 3))), seatArr:[169]};
break;
case "phone_5":
_local2 = {name:("talk" + Math.floor((Math.random() * 2))), seatArr:[0x0101]};
break;
case "phone_6":
_local2 = {name:"smail", seatArr:[290]};
break;
case "phone_7":
_local2 = {name:("talk" + Math.floor((Math.random() * 2))), seatArr:[317]};
break;
case "hairfly":
_local2 = {name:"flyCutHair", seatArr:[1225]};
break;
default:
_local2 = null;
};
return (_local2);
}
private function startFun(_arg1:String, _arg2:MovieClip):Function{
var fun:Function;
var name = _arg1;
var mc = _arg2;
fun = function ():void{
SoundsManager.playSound(name);
mc.addFrameScript((mc.currentFrame - 1), null);
};
return (fun);
}
}
}//package code.logic
Section 10
//ControlList (code.logic.ControlList)
package code.logic {
import flash.events.*;
import flash.display.*;
import code.ui.*;
import code.tool.*;
import code.data.*;
public class ControlList extends UI {
private var _helpBtn:McButton;
private var _soundBtnOff:McButton;
private var _soundBtnOn:McButton;
private var _effectBtnSend:MovieClip;
private var _sendBtn:McButton;
private var _pashBtn:McButton;
private var _homeBtn:McButton;
public function ControlList(_arg1:Sprite, _arg2:UIManager=null, _arg3:Boolean=true){
super(_arg2);
display = _arg1;
init();
if (_arg3){
setBtnUnactive();
} else {
_homeBtn.visible = false;
if (display.name == "controlListMC_Main"){
_sendBtn.unactive();
};
};
checkSound();
}
public function setAllBtnActiveeable(_arg1:Boolean=true):void{
_helpBtn.unactive(_arg1);
_pashBtn.unactive(_arg1);
_homeBtn.unactive(_arg1);
_soundBtnOn.unactive(_arg1);
_soundBtnOff.unactive(_arg1);
}
private function onClickFun(_arg1:MouseEvent):void{
if (((_arg1.target as Sprite).parent as MovieClip).currentFrame != 4){
SoundsManager.playSound("menu_press");
};
if (_arg1.target == _soundBtnOn.getChildByName("HitMC")){
Data.SoundEable = false;
Data.MusicEable = false;
SoundsManager.pause(true);
_soundBtnOn.visible = false;
_soundBtnOff.visible = true;
} else {
if (_arg1.target == _soundBtnOff.getChildByName("HitMC")){
Data.SoundEable = true;
Data.MusicEable = true;
SoundsManager.pause(false);
_soundBtnOn.visible = true;
_soundBtnOff.visible = false;
} else {
if (_arg1.target == _pashBtn.getChildByName("HitMC")){
display.dispatchEvent(new Event("Pash_ConTrolList"));
} else {
if (_arg1.target == _helpBtn.getChildByName("HitMC")){
display.dispatchEvent(new Event("Help_ConTrolList"));
} else {
if (_arg1.target == _homeBtn.getChildByName("HitMC")){
display.dispatchEvent(new Event("HomePage_ConTrolList"));
} else {
if (_arg1.target == _sendBtn.getChildByName("HitMC")){
if (_effectBtnSend != null){
display.removeChild(_effectBtnSend);
_effectBtnSend = null;
};
display.dispatchEvent(new Event("SendToFriend"));
};
};
};
};
};
};
}
private function setBtnUnactive():void{
if ((((display.name == "controlListMC_TimerOver")) || ((display.name == "controlListMC_BeCatch")))){
_pashBtn.visible = false;
} else {
_homeBtn.visible = false;
_pashBtn.unactive();
_pashBtn.buttonMode = false;
};
_helpBtn.unactive();
_helpBtn.buttonMode = false;
if (display.name == "controlListMC_levelMap"){
if ((((Data.LevelCurrNum < 1)) && (Cookie.da["effect"]))){
_sendBtn.unactive();
} else {
if ((((Cookie.da["Levelarr"][0]["cup"] > PlayerStar.NoStar.value)) && (Cookie.da["effect"]))){
Cookie.da["effect"] = false;
Cookie.flush();
_effectBtnSend = Attach.getMovieClip("effect_btn_SendToFriend");
_effectBtnSend.visible = false;
_effectBtnSend.x = _sendBtn.x;
_effectBtnSend.y = _sendBtn.y;
display.addChild(_effectBtnSend);
};
_sendBtn.unactive(false);
};
} else {
_sendBtn.unactive();
};
}
private function onMouseOverFun(_arg1:MouseEvent):void{
if (((_arg1.target as Sprite).parent as MovieClip).currentFrame != 4){
SoundsManager.playSound("menu_touch");
};
}
override public function initMC():void{
_soundBtnOn = (display.getChildByName("soundBtn_on") as McButton);
_soundBtnOff = (display.getChildByName("soundBtn_off") as McButton);
_pashBtn = (display.getChildByName("pashBtn") as McButton);
_helpBtn = (display.getChildByName("helpBtn") as McButton);
_homeBtn = (display.getChildByName("homeBtn") as McButton);
_sendBtn = (display.getChildByName("sendBtn") as McButton);
}
private function checkSound():void{
if (((Data.SoundEable) || (Data.MusicEable))){
_soundBtnOff.visible = false;
} else {
_soundBtnOn.visible = false;
};
}
override public function initEvent():void{
_soundBtnOn.addEventListener(MouseEvent.CLICK, onClickFun);
_soundBtnOff.addEventListener(MouseEvent.CLICK, onClickFun);
_pashBtn.addEventListener(MouseEvent.CLICK, onClickFun);
_helpBtn.addEventListener(MouseEvent.CLICK, onClickFun);
_homeBtn.addEventListener(MouseEvent.CLICK, onClickFun);
_sendBtn.addEventListener(MouseEvent.CLICK, onClickFun);
_soundBtnOn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_soundBtnOff.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_pashBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_helpBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_homeBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_sendBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
}
public function setEffectShow():void{
if (_effectBtnSend != null){
_effectBtnSend.visible = true;
};
}
override public function removeEvent():void{
_soundBtnOn.removeEventListener(MouseEvent.CLICK, onClickFun);
_soundBtnOff.removeEventListener(MouseEvent.CLICK, onClickFun);
_pashBtn.removeEventListener(MouseEvent.CLICK, onClickFun);
_helpBtn.removeEventListener(MouseEvent.CLICK, onClickFun);
_homeBtn.removeEventListener(MouseEvent.CLICK, onClickFun);
_sendBtn.removeEventListener(MouseEvent.CLICK, onClickFun);
_soundBtnOn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_soundBtnOff.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_pashBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_helpBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_homeBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_sendBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
}
}
}//package code.logic
Section 11
//Devil (code.logic.Devil)
package code.logic {
import flash.events.*;
import flash.display.*;
import code.tool.*;
import code.data.*;
public class Devil extends Character {
private var _smokeMC:Sprite;
private var _speed:Number;// = 1
private var _speedDevil:Number;
private var _currSpeed:Number;
public function Devil(){
_speed = 1;
super();
_speedDevil = Data.DevilNormalSpeed;
}
override public function setDisplay(_arg1:MovieClip):void{
super.setDisplay(_arg1);
}
public function addSmoke(_arg1:String, _arg2:int=0, _arg3:int=0, _arg4:int=0):void{
if (((!((display == null))) && (!((display.parent == null))))){
if (_smokeMC == null){
_smokeMC = Attach.getSprite(_arg1);
};
_smokeMC.x = _arg2;
_smokeMC.y = _arg3;
display.parent.addChildAt(_smokeMC, _arg4);
};
}
public function removeSmoke():void{
if (_smokeMC != null){
if (display.parent.getChildIndex(_smokeMC) != -1){
_smokeMC.parent.removeChild(_smokeMC);
};
_smokeMC = null;
};
}
public function step(_arg1:MyselfMC, _arg2:MovieClip):void{
if (isCutHair){
checkSuperSate(_arg2);
_currSpeed = (_speed * _speedDevil);
_arg1.barCurrFrame = (_arg1.barCurrFrame + _currSpeed);
_arg1.jumpFrame();
};
}
public function get speed():Number{
return (((_currSpeed > 1)) ? _currSpeed : 1);
}
public function initSeed():void{
_speedDevil = Data.DevilNormalSpeed;
}
private function checkSuperSate(_arg1:MovieClip):void{
var _local2:int;
_local2 = int((_arg1.totalFrames * (1 - Data.DevilSuperStateHappenSeatMaxLengthToEnd)));
if (_arg1.currentFrame == _local2){
SoundsManager.playSound("fullSate", true, int.MAX_VALUE);
_speedDevil = Data.DevilSuperSpeed;
this.display.dispatchEvent(new Event("AddSpeed"));
};
}
}
}//package code.logic
Section 12
//LManager (code.logic.LManager)
package code.logic {
import flash.events.*;
import code.ui.*;
import code.tool.*;
import code.data.*;
public class LManager {
private var _main:Main;
private var _uim:UIManager;
private var _achievement:String;
public function LManager(_arg1:UIManager){
_uim = _arg1;
init();
}
private function onCatchFun(_arg1:Event):void{
endMain();
_uim.levelFaild(true);
}
public function stopGameFun():void{
_main.stopGameFun();
}
private function checkAchievement():void{
if (achievement(PlayerStar.GoldStar, 10)){
trace("完成所有关卡金币的成就");
if (Cookie.da["Achievement"]["GoldDevil"][0]){
SpilSystem.instance.submitAchievement("TOPHAIRDRESSER");
_achievement = "GoldDevil";
Cookie.da["Achievement"]["GoldDevil"][0] = false;
} else {
_achievement = null;
};
if (CheckAllachievement()){
trace("发送成就:完成所有关卡和成就");
Tracker.end();
if (Cookie.da["Achievement"]["SuperDevil"][0]){
SpilSystem.instance.submitAchievement("SUPERDEVIL");
_achievement = "SuperDevil";
Cookie.da["Achievement"]["SuperDevil"][0] = false;
} else {
_achievement = null;
};
};
} else {
if (achievement(PlayerStar.SilverStar, 10)){
trace("完成所有关卡银币的成就");
if (Cookie.da["Achievement"]["SilverDevil"][0]){
_achievement = "SilverDevil";
Cookie.da["Achievement"]["SilverDevil"][0] = false;
} else {
_achievement = null;
};
} else {
if (achievement(PlayerStar.BronzeStar, 5)){
trace("完成5个关卡的成就");
if (Cookie.da["Achievement"]["SuperSlyDevil"][0]){
SpilSystem.instance.submitAchievement("LIKEAREALDEVIL");
_achievement = "SuperSlyDevil";
Cookie.da["Achievement"]["SuperSlyDevil"][0] = false;
} else {
_achievement = null;
};
} else {
if (achievement(PlayerStar.BronzeStar, 3)){
trace("完成3个关卡的成就");
if (Cookie.da["Achievement"]["SlyDevil"][0]){
SpilSystem.instance.submitAchievement("DEVILBEGINNER");
_achievement = "SlyDevil";
Cookie.da["Achievement"]["SlyDevil"][0] = false;
} else {
_achievement = null;
};
} else {
_achievement = null;
};
};
};
};
}
private function init():void{
Data.LevelCurrNum = Cookie.da["CurrLevel"];
start();
}
private function onPassLevelFun(_arg1:Event):void{
var _local2:int;
_local2 = Cookie.da["Levelarr"][Data.LevelCurrNum]["cup"];
if (_local2 < _main.star.value){
Cookie.da["Levelarr"][Data.LevelCurrNum]["cup"] = _main.star.value;
};
if (_main.star.value < PlayerStar.GoldStar.value){
Cookie.da["Levelarr"][Data.LevelCurrNum]["level"] = (_main.star.value + 1);
};
checkAchievement();
Data.LevelCurrNum++;
if (Data.LevelCurrNum < Data.LevelMaxNum){
if (Cookie.da["CurrLevel"] < Data.LevelCurrNum){
Cookie.da["Levelarr"][Data.LevelCurrNum]["cup"] = PlayerStar.NoStar.value;
Cookie.da["CurrLevel"] = Data.LevelCurrNum;
};
Cookie.flush();
};
_uim.passLevel(_main.star, _achievement);
}
public function playGameFun():void{
_main.playGameFun();
_main.start();
}
private function onHelpFun(_arg1:Event):void{
_uim.howToPlay(_main.pashFun);
}
public function checkGameEnd():void{
if (CheckAllachievement()){
} else {
_uim.keepInGame();
};
}
public function start():void{
_uim.levelMap();
}
private function onNoPassLevelFun(_arg1:Event):void{
endMain();
_uim.levelFaild(false);
}
public function reStart():void{
_uim.transition(_uim.delLevelFaild);
}
private function CheckAllachievement():Boolean{
var _local1:Array;
var _local2:*;
_local1 = new Array();
_local1.push(Cookie.da["Achievement"]["GoldDevil"][0]);
_local1.push(Cookie.da["Achievement"]["SilverDevil"][0]);
_local1.push(Cookie.da["Achievement"]["SuperSlyDevil"][0]);
_local1.push(Cookie.da["Achievement"]["SlyDevil"][0]);
for (_local2 in _local1) {
if (_local1[_local2] == true){
return (false);
};
};
return (true);
}
public function main():void{
_main = new Main(_uim.mc);
_main.display.addEventListener("Catch", onCatchFun);
_main.display.addEventListener("NoPassLevel", onNoPassLevelFun);
_main.display.addEventListener("PassLevel", onPassLevelFun);
_main.display.addEventListener("Help_Main", onHelpFun);
}
public function endMain():void{
_main.display.removeEventListener("Catch", onCatchFun);
_main.display.removeEventListener("NoPassLevel", onNoPassLevelFun);
_main.display.removeEventListener("PassLevel", onPassLevelFun);
_main.del();
_main = null;
}
public function initGameFun():void{
if (Cookie.da["help"]){
Cookie.da["help"] = false;
Cookie.flush();
_uim.howToPlay(playGameFun);
SoundsManager.playMusic("tutorial_music");
} else {
playGameFun();
};
}
private function achievement(_arg1:PlayerStar, _arg2:int=1):Boolean{
var _local3:int;
var _local4:int;
var _local5:int;
_local3 = 0;
_local4 = 0;
while (_local4 < Cookie.da["Levelarr"].length) {
_local5 = Cookie.da["Levelarr"][_local4]["cup"];
if (_local5 >= _arg1.value){
_local3++;
};
if (_local3 == _arg2){
return (true);
};
_local4++;
};
return (false);
}
}
}//package code.logic
Section 13
//Main (code.logic.Main)
package code.logic {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import code.tool.*;
import code.data.*;
public class Main {
private var _timeText:TextField;
private var _level:String;
private var __Pmc:Sprite;
private var _controlBar:ControlList;
private var _actionPlayer:ActionPlay;
private var _timeOver:Boolean;
private var _angleActionTimeCount:Number;// = 0
private var _timeCount:int;
private var _angleCutHairTimeCount:Number;// = 0
private var _action:Action;
private var _guest:Character;
private var _angle:Angle;
private var _prossBar:MyselfMC;
private var _backGround:MovieClip;
private var _musicPosition:Number;// = 0
private var _hitMC:Sprite;
private var _pash:Boolean;
private var __mc:MovieClip;
private var _devil:Devil;
public static var currPre:Number;
public function Main(_arg1:Sprite){
_angleCutHairTimeCount = 0;
_angleActionTimeCount = 0;
_musicPosition = 0;
super();
__Pmc = _arg1;
init();
if (Data.isTest){
addTestFun();
};
playMusic();
}
private function onMouseUpFun(_arg1:MouseEvent):void{
if (((((_pash) && (Data.pash))) && (!(_timeOver)))){
__mc.gotoAndStop(_level);
_devil.isCutHair = false;
_devil.changeFace("normal");
playMusic();
};
_devil.initSeed();
_devil.removeSmoke();
stopSpund();
}
private function offsetHairflyFun(_arg1:Number):Number{
if (_arg1 < (Data.AngleSuperStateHappenSeatMaxLengthToEnd / 3)){
_arg1 = 3;
} else {
if (_arg1 < (Data.AngleSuperStateHappenSeatMaxLengthToEnd / 2)){
_arg1 = 2;
} else {
if (_arg1 < Data.AngleSuperStateHappenSeatMaxLengthToEnd){
_arg1 = 1;
};
};
};
return ((Data.AngleSuperStateEffectLength * ((Math.random())<((Math.sqrt((Data.LevelCurrNum / (Data.LevelMaxNum - 1))) / 10) * 8)) ? 2 : 1));
}
public function del():void{
if (Data.isTest){
removeTestFun();
};
SoundsManager.memoryRelease();
Data.pash = false;
removeEvent();
removeMC();
}
private function init():void{
initData();
initMC();
initEvent();
}
private function levelPassFun():void{
_angle.display.stop();
__mc.dispatchEvent(new Event("PassLevel"));
}
private function checkCatch():void{
if (((_angle.isCutHair) && (_devil.isCutHair))){
levelFaildAction();
SoundsManager.memoryRelease();
SoundsManager.playSound("angre");
SoundsManager.playSound("beCatch");
SoundsManager.playMusic("failed_music", 0);
};
}
private function onMouseDownFun(_arg1:MouseEvent):void{
if (((((_pash) && (Data.pash))) && (!(_timeOver)))){
__mc.gotoAndPlay(_level);
_devil.changeFace("hair");
_devil.isCutHair = true;
_devil.addSmoke("SmokeMC", _guest.display.x, ((_guest.display.y - _guest.display.height) + 10), __mc.getChildIndex(_hitMC));
SoundsManager.playSound("devilCutHair", true, int.MAX_VALUE);
SoundsManager.playSound("damageup");
playMusic(true);
};
}
public function pashFun(_arg1:Boolean=true):void{
Data.pash = _arg1;
if (Data.pash){
playGameFun();
} else {
stopGameFun();
};
SoundsManager.pause(!(Data.pash));
}
private function removeMC():void{
__mc.parent.removeChild(__mc);
__mc = null;
}
private function stopSpund():void{
SoundsManager.stopSound("devilCutHair");
SoundsManager.stopSound("damageup");
SoundsManager.stopSound("fullSate");
}
public function get seat():Number{
return ((_prossBar.currFrame / _prossBar.totalFrame));
}
private function onHelpFun(_arg1:Event):void{
helpFun();
SoundsManager.playMusic("tutorial_music");
}
private function initMC():void{
var _local1:MovieClip;
var _local2:Sprite;
__mc = Attach.getMovieClip("MainMC");
__mc.stop();
__Pmc.addChild(__mc);
checkTarget();
_hitMC = (__mc.getChildByName("hitMC") as Sprite);
if (_hitMC == null){
creatHitMC();
};
_local1 = Attach.getMovieClip("angleMC");
_local1.x = 520;
_local1.y = 440;
__mc.addChildAt(_local1, 0);
_angle = new Angle();
_angle.isCutHair = true;
_angle.setDisplay(_local1);
_angle.changeFace("hair_1", false);
_local1 = Attach.getMovieClip("devilMC");
_local1.x = 150;
_local1.y = 430;
__mc.addChildAt(_local1, 0);
_devil = new Devil();
_devil.isCutHair = false;
_devil.setDisplay(_local1);
_devil.changeFace("normal");
_local1 = Attach.getMovieClip(Data.NPGArr[Data.LevelCurrNum]);
_local1.x = 330;
_local1.y = 440;
__mc.addChildAt(_local1, 0);
_guest = new Character();
_guest.setDisplay(_local1);
_backGround = Attach.getMovieClip("backGroundMC");
_backGround.name = "backGroundMC";
_backGround.stop();
__mc.addChildAt(_backGround, 0);
_local2 = (__mc.getChildByName("controlListMC_Main") as Sprite);
_controlBar = new ControlList(_local2, null, false);
}
private function onEnterFrameFun(_arg1:Event):void{
if (Data.pash){
__mc.stage.focus = __mc;
step();
};
}
private function initData():void{
Data.pash = true;
_pash = true;
_timeCount = ((1.5 * 60) * Data.FpsNum);
_actionPlayer = new ActionPlay();
_action = new Action();
}
private function timeOverFun():void{
_prossBar.barCurrFrame--;
_prossBar.jumpFrame();
if (_prossBar.currFrame == 1){
_pash = false;
_timeOver = false;
__mc.dispatchEvent(new Event("NoPassLevel"));
};
}
private function checkTarget():void{
Main.currPre = getPre();
switch (Main.currPre){
case 0.6:
_level = "LV3";
break;
case 0.8:
_level = "LV2";
break;
case 1:
_level = "LV1";
break;
};
__mc.gotoAndStop(_level);
__mc.addFrameScript((MCPlayer.getCurrLabelBegianFrame(__mc, _level) - 1), initLevel);
}
private function onPashFun(_arg1:Event):void{
var _local2:Sprite;
Data.pash = !(Data.pash);
_local2 = Attach.getSprite("UIPAUSEMC");
_local2.name = "pashMC";
__mc.addChild(_local2);
_local2.addEventListener(MouseEvent.CLICK, onClickPashMCFun);
pashFun(Data.pash);
}
private function addTestFun():void{
DebugTest.getoneDebugTest().init(__mc.stage, [32], new Array(levelPassAction));
}
private function levelFaildAction():void{
var _local1:int;
__mc.gotoAndStop(_level);
_pash = false;
_devil.removeSmoke();
_devil.changeFace("be catched");
_angle.changeFace("cought");
_guest.changeFace((MCPlayer.getCurrLabelBegianFrame(_guest.display, "devil") - 1), false);
_local1 = MCPlayer.getCurrLabelFinalFrame(_angle.display);
_angle.display.addFrameScript(_local1, catchFun);
MCPlayer.stopMC(_backGround);
}
private function timeOut():void{
var _local1:MovieClip;
_local1 = (__mc.getChildByName("time") as MovieClip);
_local1.stop();
__mc.gotoAndStop(_level);
_devil.changeFace("be catched");
_devil.removeSmoke();
_devil.isCutHair = false;
_angle.stop();
_guest.changeFace((MCPlayer.getCurrLabelBegianFrame(_guest.display, "devil") - 1), false);
_timeOver = true;
stopSpund();
SoundsManager.playMusic("failed_music", 0);
MCPlayer.stopMC(_backGround);
}
public function get display():Sprite{
return (__mc);
}
private function catchFun():void{
_angle.display.stop();
__mc.dispatchEvent(new Event("Catch"));
}
private function GameIimeCount():void{
var _local1:MovieClip;
_timeCount--;
_timeText.text = Time.getTime(_timeCount);
if ((_timeCount / Data.FpsNum) == 0){
timeOut();
} else {
if (_timeCount <= (10 * Data.FpsNum)){
_local1 = (__mc.getChildByName("time") as MovieClip);
_local1.play();
};
};
}
private function initLevel():void{
var _local1:MovieClip;
var _local2:MovieClip;
_local1 = (__mc.getChildByName("time") as MovieClip);
_local1.stop();
_local2 = (_local1.getChildByName("timeTextMC") as MovieClip);
_timeText = (_local2.getChildByName("timeText") as TextField);
_timeText.selectable = false;
_timeText.mouseEnabled = false;
_timeText.text = Time.getTime(_timeCount);
_local1 = (__mc.getChildByName("prossBar") as MovieClip);
_prossBar = new MyselfMC();
_prossBar.setDisplay(_local1);
__mc.addFrameScript((__mc.currentFrame - 1), null);
}
private function checkPlayTime():void{
var _local1:Object;
if (_angle.action != null){
_local1 = _angle.action;
if (_local1["Action"] == Data.Hair){
_angleCutHairTimeCount = (_angleCutHairTimeCount + _local1["Time"]);
} else {
_angleActionTimeCount = (_angleActionTimeCount + _local1["Time"]);
};
};
if (_angleCutHairTimeCount >= (Data.AngleCutHaitMaxTime * Data.FpsNum)){
_angleCutHairTimeCount = 0;
do {
_angle.action = _action.Angel(_angle, _prossBar);
} while (_angle.action["Action"] == Data.Hair);
} else {
if (_angleActionTimeCount >= (Data.AngleActionMaxTime * Data.FpsNum)){
_angleActionTimeCount = 0;
do {
_angle.action = _action.Angel(_angle, _prossBar);
} while (_angle.action["Action"] != Data.Hair);
};
};
}
public function stopGameFun():void{
Data.pash = false;
_controlBar.setAllBtnActiveeable();
_guest.display.stop();
_angle.stop();
_devil.stop();
(_backGround["maskMC"] as MovieClip).stop();
}
private function step():void{
if (_pash){
_actionPlayer.step();
_devil.step(_prossBar, _backGround);
_angle.step(_prossBar);
changeaBackGroundFrame();
checkCatch();
if (_pash){
checkBar();
};
if (_pash){
if (_timeOver){
timeOverFun();
} else {
GameIimeCount();
};
};
};
}
private function changeaBackGroundFrame():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:MovieClip;
_local1 = _backGround.currentFrame;
_local2 = _backGround.totalFrames;
if (_devil.isCutHair){
if (_local1 < _local2){
_local3 = int((_local1 + _devil.speed));
_backGround.gotoAndStop(((_local3 > _local2)) ? _local2 : _local3);
_local4 = (_backGround["maskMC"] as MovieClip);
if (_local4 != null){
_local4.gotoAndStop((((_local4.currentFrame - 1) > 1)) ? (_local4.currentFrame - 1) : _local4.totalFrames);
};
};
} else {
if (_local1 > 1){
_backGround.gotoAndStop((((_backGround.currentFrame - 10) > 1)) ? (_backGround.currentFrame - 10) : 1);
};
};
}
private function getPre():Number{
var _local1:Number;
var _local2:int;
_local2 = Cookie.da["Levelarr"][Data.LevelCurrNum]["level"];
if (_local2 == PlayerStar.GoldStar.value){
_local1 = 0.6;
} else {
if (_local2 == PlayerStar.SilverStar.value){
_local1 = 0.8;
} else {
if (_local2 == PlayerStar.BronzeStar.value){
_local1 = 1;
} else {
_local1 = 0.6;
};
};
};
return (_local1);
}
public function get angle():Angle{
return (_angle);
}
private function onAnglePlayFun():void{
_angle.display.stop();
if (Math.random() < Data.AngleThinKAndToDoOdds){
_angle.isCutHair = false;
_angle.isthink = false;
_actionPlayer.angelplay(this);
} else {
_angle.isCutHair = true;
_angle.isthink = false;
_angleActionTimeCount = (_angleActionTimeCount - _angle.action["Time"]);
angleCutHair();
};
_angle.display.addFrameScript((_angle.currentFrame - 1), null);
}
private function playMusic(_arg1:Boolean=false):void{
var _local2:int;
if ((Data.LevelCurrNum % 2) == 0){
_local2 = 1;
} else {
_local2 = 2;
};
if (_arg1){
_musicPosition = SoundsManager.getMusicPosition((("angel_" + _local2) + "_music"));
SoundsManager.playMusic((("devil_" + _local2) + "_music"), int.MAX_VALUE, 1, 1);
} else {
SoundsManager.playMusic((("angel_" + _local2) + "_music"), int.MAX_VALUE, 1, 1, _musicPosition);
};
}
private function creatHitMC():void{
var _local1:int;
_hitMC = new Sprite();
MyDrawSprite.draw(_hitMC, MyDrawSprite.Rect, Data.stageWidth, Data.stageHeight, 0);
_hitMC.x = (Data.stageWidth / 2);
_hitMC.y = (Data.stageHeight / 2);
_local1 = __mc.getChildIndex(__mc.getChildByName("controlBar"));
__mc.addChildAt(_hitMC, _local1);
}
private function devilAddSpeedFun(_arg1:Event):void{
__mc.gotoAndPlay((_level + " super"));
}
public function start():void{
_angle.isCutHair = true;
_angle.action = _action.Angel(_angle, _prossBar);
checkPlayTime();
if (_angle.action["Action"] == Data.Hair){
_angleActionTimeCount = 0;
_actionPlayer.angelplay(this);
} else {
_angleCutHairTimeCount = 0;
_angle.isthink = true;
_angle.think();
SoundsManager.playSound("think0");
_angle.display.addFrameScript(MCPlayer.getCurrLabelFinalFrame(_angle.display, "think"), onAnglePlayFun);
};
}
private function levelPassAction():void{
var _local1:int;
__mc.gotoAndStop(_level);
_pash = false;
_devil.changeFace("win");
_devil.removeSmoke();
_angle.changeFace("gamefinish");
_guest.changeFace(MCPlayer.getCurrLabelBegianFrame(_guest.display, "devil"));
_local1 = (MCPlayer.getCurrLabelFinalFrame(_angle.display) - 1);
_angle.display.addFrameScript(_local1, levelPassFun);
SoundsManager.memoryRelease();
SoundsManager.playSound("winSound");
SoundsManager.playMusic("complete_music", 0);
}
public function playGameFun():void{
Data.pash = true;
_controlBar.setAllBtnActiveeable(false);
_guest.display.play();
_angle.play();
_devil.play();
if (_devil.isCutHair){
playMusic(true);
} else {
playMusic();
};
}
private function removeTestFun():void{
DebugTest.getoneDebugTest().del();
}
private function initEvent():void{
__mc.stage.addEventListener(Event.ENTER_FRAME, onEnterFrameFun);
_hitMC.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDownFun);
_hitMC.stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUpFun);
_controlBar.display.addEventListener("Help_ConTrolList", onHelpFun);
_controlBar.display.addEventListener("Pash_ConTrolList", onPashFun);
_devil.display.addEventListener("AddSpeed", devilAddSpeedFun);
}
private function checkBar():void{
if (_prossBar.checkOver()){
levelPassAction();
};
}
public function angleCutHair():void{
var _local1:Number;
_local1 = (_prossBar.currFrame / _prossBar.totalFrame);
if ((((_local1 > Data.AngleSuperStateHappenSeatMaxLengthToEnd)) && ((Math.random() < Math.sqrt((Data.AngleSuperStateOdds + (((Data.LevelCurrNum / (Data.LevelMaxNum - 1)) / 10) * 5))))))){
_local1 = offsetHairflyFun(_local1);
_angle.action = _action.AngelFly(_angle.display, "hairfly", _local1);
} else {
_angle.action = _action.Angel(_angle, _prossBar, Data.Hair);
};
_angle.isCutHair = true;
_angleCutHairTimeCount = (_angleCutHairTimeCount + _angle.action["Time"]);
_actionPlayer.angelplay(this);
}
private function onClickPashMCFun(_arg1:MouseEvent):void{
var _local2:Sprite;
_local2 = (__mc.getChildByName("pashMC") as Sprite);
if (_local2 != null){
__mc.removeChild(_local2);
};
pashFun(true);
}
private function removeEvent():void{
__mc.stage.removeEventListener(Event.ENTER_FRAME, onEnterFrameFun);
_hitMC.removeEventListener(MouseEvent.MOUSE_DOWN, onMouseDownFun);
_hitMC.stage.removeEventListener(MouseEvent.MOUSE_UP, onMouseUpFun);
_controlBar.display.removeEventListener("Help_ConTrolList", onHelpFun);
_controlBar.display.removeEventListener("Pash_ConTrolList", onPashFun);
_devil.display.removeEventListener("AddSpeed", devilAddSpeedFun);
}
private function helpFun():void{
Data.pash = false;
stopGameFun();
__mc.dispatchEvent(new Event("Help_Main"));
}
public function get star():PlayerStar{
if (_level == "LV3"){
return (PlayerStar.GoldStar);
};
if (_level == "LV2"){
return (PlayerStar.SilverStar);
};
if (_level == "LV1"){
return (PlayerStar.BronzeStar);
};
return (PlayerStar.NoStar);
}
}
}//package code.logic
Section 14
//MyselfMC (code.logic.MyselfMC)
package code.logic {
import flash.display.*;
public class MyselfMC {
private var __scissor:Sprite;
private var _right:Number;
private var _left:Number;
private var _barCurrFrame:Number;
private var __mc:MovieClip;
private var __bar:Sprite;
public function setDisplay(_arg1:MovieClip):void{
__mc = _arg1;
_barCurrFrame = 1;
__mc.gotoAndStop(int(_barCurrFrame));
__scissor = (__mc.getChildByName("scissor") as Sprite);
__bar = (__mc.getChildByName("bar") as Sprite);
if (__bar != null){
_left = __bar.getBounds(__mc).left;
_right = __bar.getBounds(__mc).right;
trace(((("left :" + _left) + " right :") + _right));
};
}
public function get barCurrFrame():Number{
return (_barCurrFrame);
}
public function get totalFrame():int{
return (__mc.totalFrames);
}
public function set barCurrFrame(_arg1:Number):void{
_barCurrFrame = _arg1;
}
public function checkScissorSeat():PlayerStar{
var _local1:Number;
var _local2:Number;
var _local3:Number;
if (((!((__scissor == null))) && (!((__bar == null))))){
_local1 = (__scissor.x - __bar.getBounds(__mc).left);
_local2 = __bar.width;
} else {
_local1 = barCurrFrame;
_local2 = totalFrame;
};
_local3 = (_local1 / _local2);
if (_local3 >= 1){
return (PlayerStar.GoldStar);
};
if (_local3 >= 0.8){
return (PlayerStar.SilverStar);
};
if (_local3 >= 0.6){
return (PlayerStar.BronzeStar);
};
return (PlayerStar.NoStar);
}
public function get currFrame():int{
return (__mc.currentFrame);
}
public function jumpFrame():void{
if (__mc != null){
if (((!((__scissor == null))) && (!((__bar == null))))){
if (_barCurrFrame < _left){
_barCurrFrame = int(_left);
} else {
if (_barCurrFrame > _right){
_barCurrFrame = int(_right);
};
};
__scissor.x = _barCurrFrame;
} else {
if (_barCurrFrame < 1){
_barCurrFrame = 1;
} else {
if (_barCurrFrame > __mc.totalFrames){
_barCurrFrame = __mc.totalFrames;
};
};
__mc.gotoAndStop(int(_barCurrFrame));
};
};
}
public function getLocalCurrFrame(_arg1:MovieClip):int{
var _local2:int;
_local2 = int(((__mc.currentFrame / __mc.totalFrames) * _arg1.totalFrames));
return (_local2);
}
public function checkOver():Boolean{
var _local1:Number;
var _local2:int;
_local1 = 0.99;
_local2 = (__mc.totalFrames * _local1);
if (__mc.currentFrame >= _local2){
return (true);
};
return (false);
}
}
}//package code.logic
Section 15
//PlayerStar (code.logic.PlayerStar)
package code.logic {
public class PlayerStar {
private var _value:int;
public static const GoldStar:PlayerStar = new PlayerStar(5);
;
public static const NoStar:PlayerStar = new PlayerStar(2);
;
public static const WinStar:PlayerStar = new PlayerStar(1);
;
public static const BronzeStar:PlayerStar = new PlayerStar(3);
;
public static const SilverStar:PlayerStar = new PlayerStar(4);
;
public function PlayerStar(_arg1:int){
_value = _arg1;
}
public function get value():int{
return (_value);
}
public function upStar(_arg1:PlayerStar):PlayerStar{
if (_arg1 == GoldStar){
return (GoldStar);
};
if (_arg1 == GoldStar){
return (GoldStar);
};
if (_arg1 == SilverStar){
return (GoldStar);
};
if (_arg1 == BronzeStar){
return (SilverStar);
};
return (GoldStar);
}
}
}//package code.logic
Section 16
//Attach (code.tool.Attach)
package code.tool {
import flash.display.*;
import flash.media.*;
import flash.utils.*;
public class Attach {
public static function getSound(_arg1:String):Sound{
var _local2:Class;
var _local3:Sound;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function getMovieClip(_arg1:String):MovieClip{
var _local2:Class;
var _local3:MovieClip;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function getSprite(_arg1:String):Sprite{
var _local2:Class;
var _local3:Sprite;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function getBitmapData(_arg1:String):BitmapData{
var _local2:Class;
var _local3:BitmapData;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new _local2(null, null);
return (_local3);
}
}
}//package code.tool
Section 17
//Brand (code.tool.Brand)
package code.tool {
import flash.net.*;
import flash.events.*;
import flash.display.*;
public class Brand extends MovieClip {
private var halfUrl:String;
private var hitMc:Sprite;
private var _btn:SimpleButton;
public function Brand(){
this.gotoAndStop(Language.branding_nr);
_btn = new SimpleButton();
onlySelf();
if (hitMc != null){
hitMc.mouseChildren = true;
hitMc.buttonMode = true;
hitMc.addEventListener(MouseEvent.CLICK, toURL, false, 0, true);
};
}
private function haveCon():void{
if (this.parent != null){
switch (this.parent.name){
case "moreGameBtn_menu":
haveConFun();
halfUrl = "&utm_content=button_mainscreen_moregames";
break;
case "moreGameBtn_sendToFriendMC":
haveConFun();
halfUrl = "&utm_content=button_sendToFriend_moregames";
break;
case "moreGameBtn_fromFriendMC":
haveConFun();
halfUrl = "&utm_content=button_fromFriend_moregames";
break;
case "moreGameBtn_howtoplay":
haveConFun();
halfUrl = "&utm_content=button_howtoplay_moregames";
break;
case "moreGameBtn_staff":
haveConFun();
halfUrl = "&utm_content=button_staff_moregames";
break;
case "moreGameBtn_winMC":
haveConFun();
halfUrl = "&utm_content=button_gamecomplete_moregames";
break;
case "moreGameBtn_lostMC":
haveConFun();
halfUrl = "&utm_content=button_gamelost_moregames";
break;
case "startGameBtn_AddUI":
haveConFun();
halfUrl = "&utm_content=sitelocked";
break;
case "moreGameBtn_KeepInGame":
haveConFun();
halfUrl = "&utm_content=KeepInGame";
break;
};
};
}
private function haveConFun():void{
hitMc = (this.parent as Sprite);
}
private function toURL(_arg1:MouseEvent):void{
if (halfUrl == "&utm_content=sitelocked"){
getURL(halfUrl, true);
} else {
getURL(halfUrl);
};
}
private function onlySelf():void{
switch (this.name){
case "logo_loadMc":
hitMc = this;
halfUrl = "&utm_content=logo_preloader";
break;
case "logo_AddUIMC":
hitMc = this;
halfUrl = "&utm_content=logo_preloader";
break;
case "logo_MainMC":
sceneFun();
break;
case "logo_bar":
hitMc = this;
barFun();
break;
default:
haveCon();
};
}
private function sceneFun():void{
hitMc = this;
halfUrl = "&utm_content=logo_level";
}
private function barFun():void{
if (this.parent != null){
switch (this.parent.name){
case "controlListMC_Main":
halfUrl = "&utm_content=logo_level";
break;
case "controlListMC_Achievement":
halfUrl = "&utm_content=logo_Achievement";
break;
case "controlListMC_LevelPass":
halfUrl = "&utm_content=logo_levelcomplete";
break;
case "controlListMC_TimerOver":
halfUrl = "&utm_content=logo_levelFaildTimeOver";
break;
case "controlListMC_BeCatch":
halfUrl = "&utm_content=logo_logo_levelFaildBeCatch";
break;
case "controlListMC_levelMap":
halfUrl = "&utm_content=logo_levelselect";
break;
case "controlListMC_credits":
halfUrl = "&utm_content=logo_gamelost_moregames";
break;
case "controlListMC_Transition":
halfUrl = "&utm_content=logo_transition";
break;
};
};
}
public static function getURL(_arg1:String, _arg2:Boolean=false):void{
if (_arg2){
if (Language._languageNum == 1){
_arg1 = Language.url3;
} else {
_arg1 = (Language.url3 + _arg1);
};
} else {
if (Language._languageNum == 1){
_arg1 = Language.url1;
} else {
_arg1 = (Language.url1 + _arg1);
};
};
navigateToURL(new URLRequest(_arg1), "_blank");
}
}
}//package code.tool
Section 18
//CountriesBox (code.tool.CountriesBox)
package code.tool {
import flash.events.*;
import flash.display.*;
import code.data.*;
import flash.geom.*;
public class CountriesBox extends Sprite {
private var flagMc:MovieClip;
private var selectBox:MovieClip;
public var countryName:MovieClip;
public var selectbox:MovieClip;
private var i:uint;
public var flag:MovieClip;
private var pop:Sprite;
public var popList:MovieClip;
private var baseX:Number;// = 0
private var baseY:Number;// = 0
private var country_name:MovieClip;
private var nameGroup:Array;
private var mul:int;// = 1
private var obj:Object;
public function CountriesBox(){
mul = 1;
baseX = 0;
baseY = 0;
super();
obj = new Object();
addEventListener(Event.ADDED_TO_STAGE, addToStageHandler);
addEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
}
private function init():void{
initPos();
setFlag();
setPop();
initEvent();
initPoPEvent();
}
private function initPoPEvent():void{
pop.addEventListener(MouseEvent.MOUSE_OVER, overPoPHandler);
pop.addEventListener(MouseEvent.MOUSE_OUT, outPoPHandler);
}
private function delPoPEvent():void{
pop.removeEventListener(MouseEvent.MOUSE_OVER, overPoPHandler);
pop.removeEventListener(MouseEvent.MOUSE_OUT, outPoPHandler);
}
private function outHandler(_arg1:MouseEvent):void{
pop.visible = false;
}
private function initPos():void{
var _local1:Point;
_local1 = new Point();
_local1 = this.localToGlobal(new Point(x, y));
if (_local1.y > (Data.stageHeight / 2)){
popTo = "up";
} else {
popTo = "down";
};
}
private function set popTo(_arg1:String):void{
if (_arg1 == "down"){
mul = -1;
} else {
mul = 1;
};
setPop();
}
private function initEvent():void{
addEventListener(MouseEvent.ROLL_OVER, overHandler, false, 0, true);
addEventListener(MouseEvent.ROLL_OUT, outHandler, false, 0, true);
addEventListener(MouseEvent.CLICK, clickHandler, false, 0, true);
}
private function setPop():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:MovieClip;
var _local6:String;
_local3 = 0;
_local4 = 0;
pop = (getChildByName("popList") as Sprite);
selectBox = (getChildByName("selectbox") as MovieClip);
_local1 = pop["_blank"].width;
_local2 = pop["_blank"].height;
baseX = selectBox.x;
if (mul == 1){
baseY = (selectBox.y + 2);
} else {
baseY = ((selectBox.y + selectBox.height) + _local2);
};
pop.y = baseY;
pop.visible = false;
pop["_blank"].visible = false;
nameGroup = CountryCookie.nameGroup;
i = 0;
while (i < nameGroup.length) {
_local6 = nameGroup[i];
if (pop.getChildByName(("l_" + _local6)) != null){
_local5 = (pop.getChildByName(("l_" + _local6)) as MovieClip);
_local5.mouseChildren = false;
_local5.buttonMode = true;
_local5.stop();
_local5["flag"].mouseEnable = false;
_local5["flag"].mouseChildren = false;
_local5["flag"].gotoAndStop(_local6);
obj[("l_" + _local6)] = true;
_local3 = (((i % 2) == 0)) ? 0 : 1;
_local4 = (((i / 2) < 0)) ? 2 : Math.floor((i / 2));
_local5.x = ((_local1 * (i % 2)) - _local3);
_local5.y = (mul * (((-(_local2) * Math.floor((i / 2))) - (mul * _local2)) + _local4));
};
i++;
};
i = 0;
while (i < pop.numChildren) {
if (pop.getChildAt(i).name.indexOf("l_") != -1){
if (obj[pop.getChildAt(i).name] == undefined){
pop.getChildAt(i).visible = false;
};
};
i++;
};
if ((nameGroup.length % 2) == 0){
pop["_blank"].visible = false;
} else {
pop["_blank"].visible = true;
pop["_blank"].x = (_local1 - 1);
pop["_blank"].y = (mul * (((-(_local2) * Math.floor((nameGroup.length / 2))) - (mul * _local2)) + _local4));
};
}
private function addToStageHandler(_arg1:Event):void{
init();
}
private function clickHandler(_arg1:MouseEvent):void{
var _local2:String;
var _local3:MovieClip;
_local2 = _arg1.target["name"];
if (_local2 == "_blank"){
return;
};
if (_local2.indexOf("l_") != -1){
_local3 = (_arg1.target["getChildByName"]("flag") as MovieClip);
flagMc.gotoAndStop(_local2.substr(2));
country_name.gotoAndStop(_local3.currentFrame);
setLanguage(_local3.currentFrame);
pop.visible = false;
};
}
private function outPoPHandler(_arg1:MouseEvent):void{
var _local2 = _arg1.target;
_local2["gotoAndStop"](1);
}
private function overPoPHandler(_arg1:MouseEvent):void{
var _local2 = _arg1.target;
_local2["gotoAndStop"](2);
}
private function overHandler(_arg1:MouseEvent):void{
pop.visible = true;
}
private function setLanguage(_arg1:int):void{
Language.language = _arg1;
CountryCookie.country = _arg1;
MyDispatcher.langChanged();
}
private function removeFromStageHandler(_arg1:Event):void{
removeEventListener(MouseEvent.ROLL_OVER, overHandler);
removeEventListener(MouseEvent.ROLL_OUT, outHandler);
removeEventListener(MouseEvent.CLICK, clickHandler);
removeEventListener(Event.ADDED_TO_STAGE, addToStageHandler);
removeEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
delPoPEvent();
}
private function setFlag():void{
var _local1:int;
country_name = (getChildByName("countryName") as MovieClip);
flagMc = (getChildByName("flag") as MovieClip);
_local1 = Language.languageNum();
flagMc.gotoAndStop(_local1);
country_name.gotoAndStop(_local1);
}
}
}//package code.tool
Section 19
//DebugTest (code.tool.DebugTest)
package code.tool {
import flash.events.*;
import flash.display.*;
public class DebugTest {
public var keyArr:Array;
public var funArr:Array;
public var stage:Stage;
private static var _oneDebugTest:DebugTest;
private function onKeyDown(_arg1:KeyboardEvent):void{
var _local2:int;
_local2 = 0;
while (_local2 < keyArr.length) {
if (_arg1.keyCode == keyArr[_local2]){
var _local3 = funArr;
_local3[_local2]();
return;
};
_local2++;
};
}
public function del():void{
if (_oneDebugTest == null){
return;
};
if (_oneDebugTest.stage == null){
return;
};
if (!_oneDebugTest.stage.hasEventListener(KeyboardEvent.KEY_DOWN)){
return;
};
_oneDebugTest.stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
_oneDebugTest.stage = null;
_oneDebugTest.funArr = null;
_oneDebugTest.keyArr = null;
_oneDebugTest = null;
}
public function init(_arg1:Stage, _arg2:Array, _arg3:Array):void{
this.stage = _arg1;
this.funArr = _arg3;
this.keyArr = _arg2;
this.stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown, false, 0, false);
}
public static function getoneDebugTest():DebugTest{
if (_oneDebugTest != null){
return (_oneDebugTest);
};
_oneDebugTest = new (DebugTest);
return (_oneDebugTest);
}
}
}//package code.tool
Section 20
//Fillter (code.tool.Fillter)
package code.tool {
import flash.display.*;
import flash.filters.*;
public class Fillter {
public static function delLight(_arg1:Sprite):void{
var _local2:Array;
_local2 = _arg1.filters;
_local2 = null;
_arg1.filters = _local2;
}
public static function light(_arg1:Sprite, _arg2:Number=20, _arg3:uint=0xFFFFFF):void{
var _local4:GlowFilter;
var _local5:Array;
_local4 = new GlowFilter(_arg3, 1, _arg2, _arg2, 2, 1, false, false);
_local5 = _arg1.filters;
_local5[0] = _local4;
_arg1.filters = _local5;
}
}
}//package code.tool
Section 21
//FpsCounter (code.tool.FpsCounter)
package code.tool {
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import code.data.*;
import flash.system.*;
public class FpsCounter extends Sprite {
private const timer:int = 30;
private var oldT:uint;
private var mfpsCount:int;// = 0
private var _averageFps:int;
private var _visable:Boolean;
private var avgCount:int;
private var avgCount2:int;// = 30
private var textBox:TextField;
private var mfpsCount2:int;// = 0
private var textBox3:TextField;
private var textBox4:TextField;
private var textBox2:TextField;
public function FpsCounter(_arg1:Boolean=true){
var _local2:Number;
mfpsCount = 0;
mfpsCount2 = 0;
avgCount2 = 30;
super();
_visable = _arg1;
_local2 = Data.stageWidth;
textBox = new TextField();
textBox.text = "fps average";
textBox.textColor = 11145540;
textBox.selectable = false;
textBox.x = (_local2 - 100);
textBox.autoSize = "right";
textBox2 = new TextField();
textBox2.text = "fps (physics)";
textBox2.textColor = 11145540;
textBox2.selectable = false;
textBox2.y = 15;
textBox2.x = (_local2 - 100);
textBox2.autoSize = "right";
textBox3 = new TextField();
textBox3.text = "memory wasted";
textBox3.textColor = 11145540;
textBox3.selectable = false;
textBox3.y = 30;
textBox3.x = (_local2 - 100);
textBox3.autoSize = "right";
textBox4 = new TextField();
textBox4.text = "x: |y: ";
textBox4.textColor = 11145540;
textBox4.selectable = false;
textBox4.y = 45;
textBox4.x = (_local2 - 100);
textBox4.autoSize = "right";
avgCount = timer;
oldT = getTimer();
if (_visable){
addChild(textBox);
addChild(textBox2);
addChild(textBox3);
addChild(textBox4);
};
}
public function updateEnd():void{
}
public function updatePhys(_arg1:uint):void{
var _local2:uint;
var _local3:uint;
_local2 = getTimer();
_local3 = (_local2 - _arg1);
mfpsCount2 = (mfpsCount2 + _local3);
if (avgCount2 < 1){
textBox2.text = String((Math.round((1000 / (mfpsCount2 / 30))) + " fps (physics)"));
avgCount2 = 30;
mfpsCount2 = 0;
};
avgCount2--;
}
public function get averageFps():Number{
return (_averageFps);
}
public function update():void{
var _local1:uint;
var _local2:uint;
_local1 = getTimer();
_local2 = (_local1 - oldT);
mfpsCount = (mfpsCount + _local2);
if (avgCount < 1){
_averageFps = Math.round((1000 / (mfpsCount / timer)));
textBox.text = (String(_averageFps) + " fps average");
avgCount = timer;
mfpsCount = 0;
};
avgCount--;
oldT = getTimer();
textBox3.text = (Math.round((System.totalMemory / (0x0400 * 0x0400))) + " MB used");
textBox4.text = (((("x:" + stage.mouseX) + "| ") + "y:") + stage.mouseY);
}
}
}//package code.tool
Section 22
//GetGameURL (code.tool.GetGameURL)
package code.tool {
import flash.external.*;
public class GetGameURL {
public static function codeToString(_arg1:String):String{
return (Encrypt(decodeURI(_arg1)));
}
public static function stringToCode(_arg1:String):String{
return (encodeURI(Encrypt(_arg1)));
}
public static function getMyselfURL(_arg1:String="&code="):String{
var _local2:String;
var _local3:Number;
var _local4:String;
var _local5:Number;
_local2 = GetGameURL.getCurrentURL();
_local3 = _local2.indexOf(_arg1);
if (_local3 == -1){
return ("");
};
_local2 = _local2.substring((_local3 + _arg1.length));
_local5 = _local2.indexOf("&");
if (_local5 == -1){
_local4 = _local2;
} else {
_local4 = _local2.substring(0, _local5);
};
return (_local4);
}
public static function getCurrentURL():String{
var loc:Object;
try {
loc = ExternalInterface.call("window.location.href.toString");
} catch(e:Error) {
return ("");
};
if (loc == null){
return ("");
};
if (String(loc).indexOf(".swf") != -1){
return ("");
};
return (String(loc));
}
private static function Encrypt(_arg1:String):String{
var _local2:String;
var _local3:int;
_local2 = "";
_local3 = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode((_arg1.charCodeAt(_local3) ^ 0xFF)));
_local3++;
};
return (_local2);
}
}
}//package code.tool
Section 23
//InterNet (code.tool.InterNet)
package code.tool {
import flash.net.*;
public class InterNet {
public static function getNewURL(_arg1:String=null):void{
var _local2:URLRequest;
if (_arg1 == null){
_arg1 = "http://www.gameportal.net";
};
_local2 = new URLRequest(_arg1);
navigateToURL(_local2);
}
}
}//package code.tool
Section 24
//Language (code.tool.Language)
package code.tool {
import flash.net.*;
public class Language {
public static var SpillGroupUrl:Array = new Array();
public static var localConnection:LocalConnection = new LocalConnection();
public static var _languageNum:uint = 0;
public static var _languageBox:Array = new Array();
public static var hostingdomain:String;
public static function get url3():String{
var _local1:int;
_local1 = 0;
while (_local1 < SpillGroupUrl.length) {
if (localConnection.domain == SpillGroupUrl[_local1]){
return (_languageBox[_languageNum].url4);
};
_local1++;
};
return (_languageBox[_languageNum].url3);
}
public static function get language_nr():String{
return (_languageBox[_languageNum].language_nr);
}
public static function languageNum():int{
return ((_languageNum + 1));
}
public static function set language(_arg1:Object):void{
var returnDomain:Function;
var language1:languageItem;
var language2:languageItem;
var language3:languageItem;
var language4:languageItem;
var language5:languageItem;
var language6:languageItem;
var language7:languageItem;
var language8:languageItem;
var language9:languageItem;
var language10:languageItem;
var language11:languageItem;
var language12:languageItem;
var language13:languageItem;
var language14:languageItem;
var language15:languageItem;
var language16:languageItem;
var language17:languageItem;
var language18:languageItem;
var language19:languageItem;
var myArray:Array;
var domainextention:int;
var domainname:int;
var languageVersion = _arg1;
returnDomain = function (_arg1:String):String{
var _local2:String;
var _local3:uint;
_local2 = new String();
_local3 = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
return (_local2);
};
if (localConnection.domain != "localhost"){
myArray = localConnection.domain.split(".");
domainextention = (myArray.length - 1);
domainname = (myArray.length - 2);
hostingdomain = ((myArray[domainname] + ".") + myArray[domainextention]);
} else {
hostingdomain = "localhost";
};
language1 = new languageItem();
language1.url1 = ("http://www.girlsgogames.com/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language1.url2 = "http://www.girlsgogames.com/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language1.url3 = ("http://www.girlsgogames.com/game/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language1.url4 = "http://www.girlsgogames.com/game/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language1.language_nr = 1;
language1.branding_nr = 29;
_languageBox.push(language1);
language2 = new languageItem();
language2.url1 = "http://www.game.com.cn/moregames/";
language2.url2 = "http://www.game.com.cn/moregames/";
language2.url3 = "http://www.game.com.cn/moregames/";
language2.url4 = "http://www.game.com.cn/moregames/";
language2.language_nr = 17;
language2.branding_nr = 2;
_languageBox.push(language2);
language3 = new languageItem();
language3.url1 = ("http://www.girlsgogames.nl/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language3.url2 = "http://www.girlsgogames.nl/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language3.url3 = ("http://www.girlsgogames.nl/spel/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language3.url4 = "http://www.girlsgogames.nl/spel/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language3.language_nr = 3;
language3.branding_nr = 30;
_languageBox.push(language3);
language4 = new languageItem();
language4.url1 = ("http://www.girlsgogames.fr/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language4.url2 = "http://www.girlsgogames.fr/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language4.url3 = ("http://www.girlsgogames.fr/jeu/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language4.url4 = "http://www.girlsgogames.fr/jeu/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language4.language_nr = 4;
language4.branding_nr = 31;
_languageBox.push(language4);
language5 = new languageItem();
language5.url1 = ("http://www.girlsgogames.de/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language5.url2 = "http://www.girlsgogames.de/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language5.url3 = ("http://www.girlsgogames.de/spiel/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language5.url4 = "http://www.girlsgogames.de/spiel/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language5.language_nr = 5;
language5.branding_nr = 32;
_languageBox.push(language5);
language6 = new languageItem();
language6.url1 = ("http://www.girlsgogames.pl/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language6.url2 = "http://www.girlsgogames.pl/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language6.url3 = ("http://www.girlsgogames.pl/gra/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language6.url4 = "http://www.girlsgogames.pl/gra/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language6.language_nr = 11;
language6.branding_nr = 33;
_languageBox.push(language6);
language7 = new languageItem();
language7.url1 = ("http://www.girlsgogames.se/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language7.url2 = "http://www.girlsgogames.se/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language7.url3 = ("http://www.girlsgogames.se/spel_/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language7.url4 = "http://www.girlsgogames.se/spel_/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language7.language_nr = 10;
language7.branding_nr = 34;
_languageBox.push(language7);
language8 = new languageItem();
language8.url1 = ("http://www.girlsgogames.it/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language8.url2 = "http://www.girlsgogames.it/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language8.url3 = ("http://www.girlsgogames.it/gioco/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language8.url4 = "http://www.girlsgogames.it/gioco/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language8.language_nr = 9;
language8.branding_nr = 35;
_languageBox.push(language8);
language9 = new languageItem();
language9.url1 = ("http://www.juegosdechicas.com/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language9.url2 = "http://www.juegosdechicas.com/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language9.url3 = ("http://www.juegosdechicas.com/juego/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language9.url4 = "http://www.juegosdechicas.com/juego/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language9.language_nr = 6;
language9.branding_nr = 36;
_languageBox.push(language9);
language10 = new languageItem();
language10.url1 = ("http://www.girlsgogames.com.br/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language10.url2 = "http://www.girlsgogames.com.br/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language10.url3 = ("http://www.girlsgogames.com.br/jogo/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language10.url4 = "http://www.girlsgogames.com.br/jogo/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language10.language_nr = 7;
language10.branding_nr = 38;
_languageBox.push(language10);
language11 = new languageItem();
language11.url1 = ("http://www.games.co.id/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language11.url2 = "http://www.games.co.id/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language11.url3 = ("http://www.games.co.id/permainanme/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language11.url4 = "http://www.games.co.id/permainanme/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language11.language_nr = 14;
language11.branding_nr = 13;
_languageBox.push(language11);
language12 = new languageItem();
language12.url1 = ("http://www.girlsgogames.ru/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language12.url2 = "http://www.girlsgogames.ru/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language12.url3 = ("http://www.girlsgogames.ru/igra/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language12.url4 = "http://www.girlsgogames.ru/igra/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language12.language_nr = 12;
language12.branding_nr = 39;
_languageBox.push(language12);
language13 = new languageItem();
language13.url1 = ("http://www.girlsgogames.co.uk/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language13.url2 = "http://www.girlsgogames.co.uk/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language13.url3 = ("http://www.girlsgogames.co.uk/game/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language13.url4 = "http://www.girlsgogames.co.uk/game/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language13.language_nr = 2;
language13.branding_nr = 37;
_languageBox.push(language13);
language14 = new languageItem();
language14.url1 = ("http://www.girlsgogames.in/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language14.url2 = "http://www.girlsgogames.in/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language14.url3 = ("http://www.girlsgogames.in/game/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language14.url4 = "http://www.girlsgogames.in/game/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language14.language_nr = 2;
language14.branding_nr = 40;
_languageBox.push(language14);
language15 = new languageItem();
language15.url1 = ("http://www.girlsgogamestr.com/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language15.url2 = "http://www.girlsgogamestr.com/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language15.url3 = ("http://www.girlsgogamestr.com/oyun/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language15.url4 = "http://www.girlsgogamestr.com/oyun/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language15.language_nr = 13;
language15.branding_nr = 41;
_languageBox.push(language15);
language16 = new languageItem();
language16.url1 = ("http://www.game.com.my/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language16.url2 = "http://www.game.com.my/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language16.url3 = ("http://www.game.com.my/permainan_/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language16.url4 = "http://www.game.com.my/permainan_/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language16.language_nr = 15;
language16.branding_nr = 16;
_languageBox.push(language16);
language17 = new languageItem();
language17.url1 = ("http://www.ojogos.pt/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language17.url2 = "http://www.ojogos.pt/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language17.url3 = ("http://www.ojogos.pt/jogo/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language17.url4 = "http://www.ojogos.pt/jogo/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language17.language_nr = 8;
language17.branding_nr = 42;
_languageBox.push(language17);
language18 = new languageItem();
language18.url1 = ("http://www.laro.com.ph/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language18.url2 = "http://www.laro.com.ph/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language18.url3 = ("http://www.laro.com.ph/game/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language18.url4 = "http://www.laro.com.ph/game/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language18.language_nr = 2;
language18.branding_nr = 43;
_languageBox.push(language18);
language19 = new languageItem();
language19.url1 = ("http://www.egames.jp/moregames/?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language19.url2 = "http://www.egames.jp/moregames/?utm_medium=brandedgames_internal&utm_campaign=devilish_hairdresser";
language19.url3 = ("http://www.egames.jp/game/Devilish-Hairdresser.html?utm_medium=brandedgames_external&utm_campaign=devilish_hairdresser&utm_source=" + hostingdomain);
language19.url4 = "http://www.egames.jp/game/Devilish-Hairdresser.html?utm_medium=brandedgames_internal&utm_campaign= ";
language19.language_nr = 16;
language19.branding_nr = 44;
_languageBox.push(language19);
SpillGroupUrl.push("localhost");
SpillGroupUrl.push("www8.agame.com");
if ((((((languageVersion is Number)) || ((languageVersion is uint)))) || ((languageVersion is int)))){
_languageNum = (Number(languageVersion) - 1);
};
}
public static function get url1():String{
var _local1:int;
_local1 = 0;
while (_local1 < SpillGroupUrl.length) {
if (localConnection.domain == SpillGroupUrl[_local1]){
return (_languageBox[_languageNum].url2);
};
_local1++;
};
return (_languageBox[_languageNum].url1);
}
public static function get branding_nr():String{
return (_languageBox[_languageNum].branding_nr);
}
}
}//package code.tool
class languageItem {
public var url1:String;
public var url2:String;
public var url4:String;
public var url3:String;
public var language_nr:int;
public var branding_nr:int;
private function languageItem(){
}
}
Section 25
//McButton (code.tool.McButton)
package code.tool {
import flash.events.*;
import flash.display.*;
public class McButton extends MovieClip {
public var mc:MovieClip;
private var newHitMc:Sprite;
public function McButton(){
this.stop();
setHandUse(true);
newHitMc = (this.getChildByName("mc") as Sprite);
if (newHitMc == null){
createHitMc();
};
newHitMc.name = "HitMC";
newHitMc.addEventListener(MouseEvent.ROLL_OVER, rollOverFun, false, 0, true);
newHitMc.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownFun, false, 0, true);
newHitMc.addEventListener(MouseEvent.MOUSE_UP, mouseUpFun, false, 0, true);
newHitMc.addEventListener(MouseEvent.ROLL_OUT, rollOutFun, false, 0, true);
}
public function del():void{
newHitMc.removeEventListener(MouseEvent.ROLL_OVER, rollOverFun);
newHitMc.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownFun);
newHitMc.removeEventListener(MouseEvent.MOUSE_UP, mouseUpFun);
newHitMc.removeEventListener(MouseEvent.ROLL_OUT, rollOutFun);
}
private function rollOutFun(_arg1:MouseEvent):void{
if (this.currentFrame != 4){
this.gotoAndStop(1);
this.addChild(newHitMc);
};
}
private function mouseDownFun(_arg1:MouseEvent):void{
if (this.currentFrame != 4){
this.gotoAndStop(3);
this.addChild(newHitMc);
};
}
private function mouseUpFun(_arg1:MouseEvent):void{
if (this.currentFrame != 4){
this.gotoAndStop(2);
this.addChild(newHitMc);
};
}
public function get HitMc():Sprite{
return (newHitMc);
}
private function rollOverFun(_arg1:MouseEvent):void{
if (this.currentFrame != 4){
this.gotoAndStop(2);
this.addChild(newHitMc);
};
}
public function setHandUse(_arg1:Boolean):void{
this.buttonMode = _arg1;
}
public function unactive(_arg1:Boolean=true):void{
if (_arg1){
setHandUse(false);
this.gotoAndStop(4);
} else {
this.gotoAndStop(1);
};
}
private function createHitMc():void{
newHitMc = new Sprite();
this.addChild(newHitMc);
newHitMc.graphics.lineStyle(0, 0, 0);
newHitMc.graphics.beginFill(0, 0);
newHitMc.graphics.drawRect((-(this.width) / 2), (-(this.height) / 2), this.width, this.height);
newHitMc.graphics.endFill();
}
}
}//package code.tool
Section 26
//MCPlayer (code.tool.MCPlayer)
package code.tool {
import flash.display.*;
public class MCPlayer {
public static function stopMC(_arg1:Sprite):void{
var _local2:int;
var _local3:MovieClip;
if ((_arg1 is MovieClip)){
(_arg1 as MovieClip).stop();
};
if ((_arg1 is Sprite)){
_local2 = (_arg1.numChildren - 1);
while (_local2 >= 0) {
_local3 = (_arg1.getChildAt(_local2) as MovieClip);
stopMC(_local3);
_local2--;
};
};
}
public static function playMC(_arg1:Sprite):void{
var _local2:int;
var _local3:MovieClip;
if ((_arg1 is MovieClip)){
(_arg1 as MovieClip).play();
};
if ((_arg1 is Sprite)){
_local2 = (_arg1.numChildren - 1);
while (_local2 >= 0) {
_local3 = (_arg1.getChildAt(_local2) as MovieClip);
playMC(_local3);
_local2--;
};
};
}
public static function getCurrLabelFinalFrame(_arg1:MovieClip, _arg2:String=null):int{
var _local3:Array;
var _local4:int;
var _local5:int;
var _local6:FrameLabel;
if (_arg2 == null){
_arg2 = _arg1.currentLabel;
};
_local3 = _arg1.currentLabels;
_local4 = _local3.length;
_local5 = 0;
while (_local5 < _local4) {
if ((_local3[_local5] is FrameLabel)){
_local6 = _local3[_local5];
if (_local6.name == _arg2){
if (_local5 < (_local4 - 1)){
return (((_local3[(_local5 + 1)] as FrameLabel).frame - 1));
};
return ((_arg1.totalFrames - 1));
};
};
_local5++;
};
return (-1);
}
public static function getCurrLabelBegianFrame(_arg1:MovieClip, _arg2:String=null):int{
var _local3:Array;
var _local4:int;
var _local5:int;
var _local6:FrameLabel;
if (_arg2 == null){
_arg2 = _arg1.currentLabel;
};
_local3 = _arg1.currentLabels;
_local4 = _local3.length;
_local5 = 0;
while (_local5 < _local4) {
if ((_local3[_local5] is FrameLabel)){
_local6 = _local3[_local5];
if (_local6.name == _arg2){
return (_local6.frame);
};
};
_local5++;
};
return (-1);
}
}
}//package code.tool
Section 27
//MyDispatcher (code.tool.MyDispatcher)
package code.tool {
import flash.events.*;
public class MyDispatcher {
static const LANGUAGE_CHANGED:String = "languageChanged";
static var dispatcher:EventDispatcher = new EventDispatcher();
public static function removeLangChangedListener(_arg1:Function):void{
dispatcher.removeEventListener(LANGUAGE_CHANGED, _arg1);
}
static function langChanged():void{
dispatcher.dispatchEvent(new Event(LANGUAGE_CHANGED));
}
public static function addLangChangedListener(_arg1:Function):void{
dispatcher.addEventListener(LANGUAGE_CHANGED, _arg1);
}
}
}//package code.tool
Section 28
//MyDrawSprite (code.tool.MyDrawSprite)
package code.tool {
import flash.display.*;
public class MyDrawSprite {
public static const Rect:String = "rect";
public static const Cyc:String = "cyc";
public static function draw(_arg1:Sprite, _arg2:String, _arg3:Number=20, _arg4:Number=20, _arg5:Number=1, _arg6:uint=0):void{
_arg1.graphics.lineStyle(1, _arg6, _arg5);
_arg1.graphics.beginFill(_arg6, _arg5);
if (_arg2 == Rect){
_arg1.graphics.drawRect((-(_arg3) / 2), (-(_arg4) / 2), _arg3, _arg4);
} else {
if (_arg2 == Cyc){
_arg1.graphics.drawCircle((-(_arg3) / 2), (-(_arg3) / 2), _arg3);
};
};
_arg1.graphics.endFill();
}
}
}//package code.tool
Section 29
//PictureTransition (code.tool.PictureTransition)
package code.tool {
import flash.events.*;
import flash.display.*;
import fl.transitions.*;
import flash.utils.*;
import fl.transitions.easing.*;
public class PictureTransition {
private function showDsiplay(_arg1:MovieClip, _arg2:MovieClip):void{
_arg1.gotoAndStop((((_arg1.currentFrame + 1) > _arg1.totalFrames)) ? 1 : (_arg1.currentFrame + 1));
_arg2.stop();
TransitionManager.start(_arg1, {type:Fade, direction:Transition.IN, duration:1, easing:None.easeNone});
}
public function pixelDissolve(_arg1:MovieClip, _arg2:MovieClip):void{
var _local3:Timer;
showDsiplay(_arg1, _arg2);
_local3 = new Timer(3000, int.MAX_VALUE);
_local3.addEventListener("timer", getFunction(changDisplay, _arg1, _arg2, false));
_local3.start();
}
private function changDisplay(_arg1:MovieClip, _arg2:MovieClip):void{
_arg2.gotoAndStop((((_arg2.currentFrame + 1) > _arg2.totalFrames)) ? 1 : (_arg2.currentFrame + 1));
TransitionManager.start(_arg1, {type:Fade, direction:Transition.OUT, duration:1, easing:None.easeNone});
TransitionManager.start(_arg2, {type:Fade, direction:Transition.IN, duration:1, easing:None.easeNone});
setTimeout(getFunction(showDsiplay, _arg1, _arg2), 1000);
}
private function getFunction(_arg1:Function, _arg2:MovieClip, _arg3:MovieClip, _arg4:Boolean=true):Function{
var f:Function;
var fun = _arg1;
var mc = _arg2;
var mc2 = _arg3;
var bool = _arg4;
if (bool){
f = function ():void{
fun(mc, mc2);
};
} else {
f = function (_arg1:TimerEvent):void{
fun(mc, mc2);
};
};
return (f);
}
public static function oneObject():PictureTransition{
return (new (PictureTransition));
}
}
}//package code.tool
Section 30
//Probability (code.tool.Probability)
package code.tool {
public class Probability {
public static function offsetProbability(_arg1:Object, _arg2:int, _arg3:Array):Array{
var _local4:Array;
var _local5:int;
_local4 = new Array();
_local5 = 0;
while (_local5 < _arg2) {
_local4.push(_arg1);
_local5++;
};
return (_arg3.concat(_local4));
}
}
}//package code.tool
Section 31
//SoundsManager (code.tool.SoundsManager)
package code.tool {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class SoundsManager {
private static const SOUNDSLINK:Array = ["cutHair", "churnUp", "sweet", "chuckBook", "pickBook", "whistle0", "whistle1", "whistle2", "devilCutHair", "damageup", "fullSate", "winSound", "camera", "jumpwindow", "menu_back", "menu_press", "menu_touch", "other_press", "other_touch", "pagego", "pageback", "window_press", "window_touch", "smail", "beCatch", "fadie0", "fadie1", "fadie2", "angre", "think1", "think2", "find", "person", "talk0", "talk1", "think0", "flyCutHair", "achievements_music", "angel_1_music", "angel_2_music", "complete_music", "devil_1_music", "devil_2_music", "failed_music", "mainscreen_music", "tutorial_music"];
private static const VOLUME_SOUND:Number = 0.95;
private static const VOLUME_MUSIC:Number = 0.8;
private static var curMusicVolume:Number;
private static var TmepFun:Function;
private static var curMusicArr:Array;
private static var curSoundVolume:Number;
private static var fadeTimer:Timer;
private static var soundsArr:Array;
private static function timerFun(_arg1:Event):void{
fadeMusic();
}
public static function stopMusic(_arg1:Boolean=false):void{
var _local2:*;
if (!_arg1){
for (_local2 in curMusicArr) {
if (soundsArr[curMusicArr[_local2].name].channel[0] != null){
soundsArr[curMusicArr[_local2].name].channel[0].stop();
};
};
curMusicArr = new Array();
};
}
private static function fadeMusic():void{
var _local1:int;
var _local2:SoundChannel;
var _local3:Number;
var _local4:SoundTransform;
_local1 = curMusicArr.length;
if (_local1 > 0){
_local2 = soundsArr[curMusicArr[0].name].channel[0];
if (_local1 == 1){
if (_local2.soundTransform.volume < curMusicVolume){
_local3 = (100 / curMusicArr[0].delayStart);
if (_local3 > 1){
_local3 = 1;
};
_local4 = _local2.soundTransform;
_local4.volume = (_local2.soundTransform.volume + _local3);
_local2.soundTransform = _local4;
} else {
fadeTimer.stop();
};
} else {
if (_local1 > 1){
if (_local2.soundTransform.volume > 0){
_local3 = (100 / curMusicArr[0].delayEnd);
if (_local3 > 1){
_local3 = 1;
};
_local4 = _local2.soundTransform;
_local4.volume = (_local2.soundTransform.volume - _local3);
_local2.soundTransform = _local4;
};
if (_local2.soundTransform.volume <= 0){
_local2.stop();
curMusicArr.splice(0, (_local1 - 1));
startMusic(curMusicArr[0].name, curMusicArr[0].times, curMusicArr[0].initVol, curMusicArr[0].startTime);
};
};
};
};
}
public static function modifyMusicVolume(_arg1:Number=-1):void{
var _local2:*;
var _local3:SoundTransform;
if (_arg1 < 0){
curMusicVolume = VOLUME_MUSIC;
} else {
curMusicVolume = _arg1;
};
for (_local2 in curMusicArr) {
if (soundsArr[curMusicArr[_local2].name].channel[0] != null){
_local3 = soundsArr[curMusicArr[_local2].name].channel[0].soundTransform;
_local3.volume = curMusicVolume;
soundsArr[curMusicArr[_local2].name].channel[0].soundTransform = _local3;
};
};
}
public static function memoryRelease():void{
var _local1:*;
var _local2:Object;
var _local3:*;
for (_local1 in soundsArr) {
_local2 = soundsArr[_local1];
if (!_local2["music"]){
for (_local3 in _local2["channel"]) {
if (_local2["channel"][_local3] != null){
_local2["channel"][_local3].stop();
delete _local2["channel"][_local3];
};
};
_local2["channel"] = [];
};
};
}
public static function pause(_arg1:Boolean):void{
if (_arg1){
modifySoundsVolume(0);
modifyMusicVolume(0);
} else {
modifySoundsVolume();
modifyMusicVolume();
};
}
public static function init():void{
var _local1:int;
var _local2:String;
var _local3:Sound;
var _local4:Object;
curMusicVolume = VOLUME_MUSIC;
curSoundVolume = VOLUME_SOUND;
soundsArr = new Array();
_local1 = 0;
while (_local1 < SOUNDSLINK.length) {
_local2 = SOUNDSLINK[_local1];
_local3 = getSound(_local2);
_local4 = {name:_local2, sound:_local3, channel:[], music:false, loop:false};
soundsArr[_local2] = _local4;
_local1++;
};
curMusicArr = new Array();
fadeTimer = new Timer(100);
fadeTimer.addEventListener("timer", timerFun, false, 0, true);
fadeTimer.stop();
}
public static function playMusic(_arg1:String, _arg2:int=2147483647, _arg3:int=10, _arg4:int=100, _arg5:Number=0):void{
var _local6:Number;
var _local7:Object;
_local6 = 0;
if (_arg3 < 100){
_local6 = curMusicVolume;
};
_local7 = {name:_arg1, times:_arg2, delayStart:_arg3, delayEnd:_arg4, initVol:_local6, startTime:_arg5};
if (soundsArr[_arg1] != null){
soundsArr[_arg1].music = true;
if (curMusicArr.length == 0){
startMusic(_arg1, _arg2, _local6, _arg5);
fadeMusic();
};
if (!(((curMusicArr.length > 0)) && ((curMusicArr[(curMusicArr.length - 1)].name == _arg1)))){
curMusicArr.push(_local7);
fadeMusic();
fadeTimer.start();
};
} else {
trace((("Music \"" + _arg1) + "\" is not exist!"));
};
}
private static function onPlayFun(_arg1:String, _arg2:int, _arg3:Number):void{
if (soundsArr[_arg1].channel[0] != null){
soundsArr[_arg1].channel[0].removeEventListener(Event.SOUND_COMPLETE, TmepFun);
soundsArr[_arg1].channel[0].stop();
soundsArr[_arg1].channel[0] = soundsArr[_arg1].sound.play(0, _arg2, new SoundTransform(_arg3));
};
}
private static function getOnPlayFun(_arg1:String, _arg2:int, _arg3:Number):Function{
var fun:Function;
var s = _arg1;
var times = _arg2;
var initVol = _arg3;
fun = function (_arg1:Event):void{
onPlayFun(s, times, initVol);
};
return (fun);
}
public static function modifySoundsVolume(_arg1:Number=-1):void{
var _local2:*;
var _local3:*;
var _local4:SoundTransform;
if (_arg1 < 0){
curSoundVolume = VOLUME_SOUND;
} else {
curSoundVolume = _arg1;
};
for (_local2 in soundsArr) {
if (!soundsArr[_local2].music){
for (_local3 in soundsArr[_local2].channel) {
if (soundsArr[_local2].channel[_local3] != null){
_local4 = soundsArr[_local2].channel[_local3].soundTransform;
_local4.volume = curSoundVolume;
soundsArr[_local2].channel[_local3].soundTransform = _local4;
};
};
};
};
}
private static function startMusic(_arg1:String, _arg2:int=2147483647, _arg3:Number=0, _arg4:Number=0):void{
var _local5:SoundChannel;
if (_arg1 != null){
if (soundsArr[_arg1] != null){
if (soundsArr[_arg1].channel[0] != null){
soundsArr[_arg1].channel[0].stop();
};
if (_arg4 == 0){
_local5 = soundsArr[_arg1].sound.play(_arg4, _arg2, new SoundTransform(_arg3));
} else {
_local5 = soundsArr[_arg1].sound.play(_arg4, 0, new SoundTransform(_arg3));
};
soundsArr[_arg1].channel[0] = _local5;
soundsArr[_arg1].music = true;
if (((!((_arg4 == 0))) && ((_arg2 > 0)))){
TmepFun = getOnPlayFun(_arg1, (_arg2 - 1), _arg3);
_local5.addEventListener(Event.SOUND_COMPLETE, TmepFun);
};
} else {
trace((("Music \"" + _arg1) + "\" is not exist!"));
};
};
}
public static function playSoundFromStop(_arg1:String, _arg2:int=0):void{
var _local3:Object;
if (soundsArr[_arg1] != null){
_local3 = soundsArr[_arg1];
if (!_local3["music"]){
if (_local3["channel"][_arg2] != null){
_local3["channel"][_arg2].play();
} else {
playSound(_arg1);
};
};
};
}
private static function getSound(_arg1:String):Sound{
var _local2:Class;
var _local3:Sound;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function stopSound(_arg1:String, _arg2:int=0):void{
var _local3:Object;
if (soundsArr[_arg1] != null){
_local3 = soundsArr[_arg1];
if (!_local3["music"]){
if (_local3["channel"][_arg2] != null){
_local3["channel"][_arg2].stop();
delete _local3["channel"][_arg2];
};
};
};
}
public static function getMusicPosition(_arg1:String, _arg2:int=0):Number{
var _local3:Number;
var _local4:Object;
_local3 = 0;
if (soundsArr[_arg1] != null){
_local4 = soundsArr[_arg1];
if (_local4["music"]){
if (_local4["channel"][_arg2] != null){
_local3 = _local4["channel"][_arg2].position;
} else {
trace((("the Music " + _arg1) + " is not playing"));
};
} else {
trace((("the vedio " + _arg1) + " is not Music !"));
};
} else {
trace((("the vedio " + _arg1) + " is not exit !"));
};
return (_local3);
}
public static function playSound(_arg1:String, _arg2:Boolean=true, _arg3:int=0, _arg4:Number=-1):int{
var _local5:SoundChannel;
if (soundsArr[_arg1] != null){
if (_arg3 > 0){
soundsArr[_arg1].loop = true;
};
if ((((_arg4 == -1)) || ((curSoundVolume == 0)))){
_arg4 = curSoundVolume;
};
if (soundsArr[_arg1].channel[0] != null){
soundsArr[_arg1].channel[0].stop();
};
_local5 = soundsArr[_arg1].sound.play(0, _arg3, new SoundTransform(_arg4));
if (!_arg2){
soundsArr[_arg1].channel.push(_local5);
return ((soundsArr[_arg1].channel.length - 1));
};
soundsArr[_arg1].channel[0] = _local5;
return (0);
} else {
trace((("Sound \"" + _arg1) + "\" is not exist!"));
};
return (-1);
}
}
}//package code.tool
Section 32
//StageSetting (code.tool.StageSetting)
package code.tool {
import flash.display.*;
public class StageSetting {
public function StageSetting(_arg1:Sprite){
_arg1.stage.showDefaultContextMenu = true;
_arg1.stage.scaleMode = StageScaleMode.NO_SCALE;
_arg1.stage.stageFocusRect = false;
_arg1.stage.tabChildren = false;
}
}
}//package code.tool
Section 33
//Time (code.tool.Time)
package code.tool {
public class Time {
public static function getTime(_arg1:int):String{
var _local2:String;
var _local3:int;
var _local4:int;
var _local5:String;
var _local6:String;
if (_arg1 >= 0){
_local3 = ((_arg1 / 30) / 60);
_local4 = ((_arg1 / 30) % 60);
_local5 = _local3.toString();
_local6 = _local4.toString();
if (_local3 < 10){
_local5 = ("0" + _local3);
};
if (_local4 < 10){
_local6 = ("0" + _local4);
};
_local2 = ((_local5 + ":") + _local6);
} else {
_local2 = "00:00";
};
return (_local2);
}
public static function getZeroNumberChar(_arg1:uint):String{
var _local2:String;
_local2 = _arg1.toString();
if ((((_arg1 >= 0)) && ((_arg1 < 10)))){
_local2 = ("0000" + _local2);
};
if ((((_arg1 >= 10)) && ((_arg1 < 100)))){
_local2 = ("000" + _local2);
};
if ((((_arg1 >= 100)) && ((_arg1 < 1000)))){
_local2 = ("00" + _local2);
};
if ((((_arg1 >= 1000)) && ((_arg1 < 10000)))){
_local2 = ("0" + _local2);
};
return (_local2);
}
}
}//package code.tool
Section 34
//TitleMC (code.tool.TitleMC)
package code.tool {
import flash.events.*;
import flash.display.*;
public class TitleMC extends MovieClip {
public function TitleMC(){
init();
}
private function init():void{
changeLang();
addEvent();
}
private function langChangeHandler(_arg1:Event):void{
changeLang();
}
private function removeHandler(_arg1:Event):void{
MyDispatcher.removeLangChangedListener(langChangeHandler);
}
private function addEvent():void{
addEventListener(Event.REMOVED_FROM_STAGE, removeHandler);
MyDispatcher.addLangChangedListener(langChangeHandler);
}
private function changeLang():void{
if (Language._languageNum == 1){
this.gotoAndStop(this.totalFrames);
} else {
this.gotoAndStop(1);
};
}
}
}//package code.tool
Section 35
//Tracker (code.tool.Tracker)
package code.tool {
import flash.utils.*;
import code.data.*;
public class Tracker {
private static var isEnd:Boolean = true;
private static var tracker:Object;
private static var isBegian:Boolean = true;
private static var isHalf:Boolean = true;
public static function begian():void{
if (isBegian){
isBegian = false;
var _local1 = tracker;
_local1["trackEvent"]("Devilish Hairdresse", "mainscreen viewed", "per session", 0);
};
}
public static function half():void{
if (isHalf){
isHalf = false;
var _local1 = tracker;
_local1["trackEvent"]("Devilish Hairdresse", "game completed", "per session", 0);
};
}
public static function shop(_arg1:Boolean=true):void{
if (_arg1){
var _local2 = tracker;
_local2["trackEvent"]("Devilish Hairdresser", "uk_shop", "per session", 0);
} else {
_local2 = tracker;
_local2["trackEvent"]("Devilish Hairdresser", "us_shop", "per session", 0);
};
}
public static function init(_arg1:Document):void{
var _local2:Class;
_local2 = (getDefinitionByName("com.google.analytics.GATracker") as Class);
tracker = new _local2(_arg1, "UA-6695967-1", "AS3", Data.googleIsShow);
}
public static function end():void{
if (isEnd){
isEnd = false;
var _local1 = tracker;
_local1["trackEvent"]("Devilish Hairdresse", "all achievements completed", "per session", 0);
};
}
}
}//package code.tool
Section 36
//TranslateTxt (code.tool.TranslateTxt)
package code.tool {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class TranslateTxt extends MovieClip {
public function TranslateTxt(){
var _local1:TextField;
super();
stop();
_local1 = new TextField();
_local1 = null;
init();
}
private function init():void{
changeLang();
addEvent();
}
private function langChangeHandler(_arg1:Event):void{
changeLang();
}
private function removeHandler(_arg1:Event):void{
MyDispatcher.removeLangChangedListener(langChangeHandler);
}
private function addEvent():void{
addEventListener(Event.REMOVED_FROM_STAGE, removeHandler);
MyDispatcher.addLangChangedListener(langChangeHandler);
}
private function changeLang():void{
gotoAndStop(Language.language_nr);
}
}
}//package code.tool
Section 37
//Achievement (code.ui.Achievement)
package code.ui {
import flash.events.*;
import flash.display.*;
import code.logic.*;
import code.tool.*;
import flash.utils.*;
import code.data.*;
public class Achievement extends UI {
var _mainMenuBtn:Sprite;
private var _controlBar:ControlList;
private var _cupNameArr:Array;
private var _cupArr:Array;
private var _myTimer:Timer;
private var _helpMC:MovieClip;
public function Achievement(_arg1:UIManager){
super(_arg1);
init();
if (Data.isTest){
addTestFun();
};
}
private function initCup():void{
var _local1:Sprite;
var _local2:int;
_cupArr = new Array();
_local2 = 0;
while (_local2 < _cupNameArr.length) {
_local1 = (display.getChildByName(_cupNameArr[_local2]) as Sprite);
_local1.buttonMode = true;
_local1.mouseChildren = false;
if (Cookie.da["Achievement"][_cupNameArr[_local2]][0]){
(_local1 as MovieClip).gotoAndStop(3);
} else {
(_local1 as MovieClip).gotoAndStop(1);
};
_cupArr.push(_local1);
_local2++;
};
if (Data.HasNewAchievement){
checkMaxHighCup();
};
Data.HasNewAchievement = false;
}
private function onClickFun(_arg1:MouseEvent):void{
SoundsManager.playSound("menu_press");
uim.delAchievement();
uim.levelMap();
}
private function addAllCup():void{
var _local1:int;
var _local2:MovieClip;
_local1 = 0;
while (_local1 < _cupArr.length) {
_local2 = _cupArr[_local1];
_local2.gotoAndStop(2);
_local1++;
};
}
private function checkMaxHighCup():void{
var _local1:int;
var _local2:MovieClip;
_local1 = (_cupNameArr.length - 1);
while (_local1 >= 0) {
if (!Cookie.da["Achievement"][_cupNameArr[_local1]][0]){
_local2 = _cupArr[_local1];
_local2.gotoAndStop(2);
break;
};
_local1--;
};
}
private function onMouseOverFun(_arg1:MouseEvent):void{
SoundsManager.playSound("menu_touch");
}
override public function initMC():void{
var _local1:Sprite;
var _local2:Array;
_cupNameArr = new Array("SlyDevil", "SuperSlyDevil", "SilverDevil", "GoldDevil", "SuperDevil");
if (Data.AchiMC == ""){
_local2 = _cupNameArr.concat("mainMenuBtn");
drawMC(_local2);
} else {
setMC(Data.AchiMC);
};
_mainMenuBtn = (display.getChildByName("mainMenuBtn") as Sprite);
_helpMC = (display.getChildByName("insturctionMC") as MovieClip);
_helpMC.stop();
_helpMC.visible = false;
initCup();
_local1 = (display.getChildByName("controlListMC_Achievement") as Sprite);
_controlBar = new ControlList(_local1);
}
private function onMouseRollOverFun(_arg1:MouseEvent):void{
var _local2:int;
var _local3:Sprite;
SoundsManager.playSound("other_touch");
_local2 = _cupArr.indexOf(_arg1.target);
_local3 = _cupArr[_local2];
_helpMC.gotoAndStop((_local2 + 1));
_helpMC.x = _local3.x;
_helpMC.y = 150;
_helpMC.gotoAndStop((_local2 + 1));
_myTimer = new Timer(500, 1);
_myTimer.addEventListener(TimerEvent.TIMER, onTimerFun);
_myTimer.start();
}
private function removeTestFun():void{
DebugTest.getoneDebugTest().del();
}
override public function initEvent():void{
var _local1:int;
var _local2:Sprite;
_mainMenuBtn.addEventListener(MouseEvent.CLICK, onClickFun);
_mainMenuBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_local1 = 0;
while (_local1 < _cupArr.length) {
_local2 = _cupArr[_local1];
_local2.mouseChildren = false;
_local2.addEventListener(MouseEvent.ROLL_OVER, onMouseRollOverFun);
_local2.addEventListener(MouseEvent.ROLL_OUT, onMouseOutFun);
_local1++;
};
}
override public function removeEvent():void{
if (Data.isTest){
removeTestFun();
};
}
private function onMouseOutFun(_arg1:MouseEvent):void{
if (_myTimer != null){
_myTimer.stop();
};
_helpMC.visible = false;
}
private function onTimerFun(_arg1:TimerEvent):void{
_helpMC.visible = true;
}
private function addTestFun():void{
DebugTest.getoneDebugTest().init(display.stage, [32], new Array(addAllCup));
}
}
}//package code.ui
Section 38
//CreditsClass (code.ui.CreditsClass)
package code.ui {
import flash.events.*;
import flash.display.*;
import code.logic.*;
import code.tool.*;
import code.data.*;
public class CreditsClass extends UI {
private var _controlBar:ControlList;
private var _levelBtn:Sprite;
private var _photo2:MovieClip;
private var _photo:MovieClip;
public function CreditsClass(_arg1:UIManager){
super(_arg1);
init();
}
private function initPhoto():void{
PictureTransition.oneObject().pixelDissolve(_photo, _photo2);
if ((((Data.LevelCurrNum >= Data.LevelMaxNum)) && (!(Cookie.da["endGame"])))){
_photo.addFrameScript((_photo.totalFrames - 1), onEndMCFun);
Cookie.da["endGame"] = true;
Cookie.flush();
Data.LevelCurrNum = 0;
};
}
private function onEndMCFun():void{
_photo.stop();
uim.delCredits();
uim.GM.checkGameEnd();
_photo.addFrameScript((_photo.currentFrame - 1), null);
}
private function onClickFun(_arg1:MouseEvent):void{
uim.pageChange(true);
}
private function onMouseOverFun(_arg1:MouseEvent):void{
}
override public function initMC():void{
var _local1:Sprite;
setMC(Data.CreditsMC);
_levelBtn = (display.getChildByName("levelMapBtn") as Sprite);
if (Data.LevelCurrNum >= Data.LevelMaxNum){
_levelBtn.visible = false;
};
_photo = (display.getChildByName("photoMC") as MovieClip);
_photo.gotoAndStop(_photo.totalFrames);
_photo2 = (display.getChildByName("photoMC2") as MovieClip);
_photo2.gotoAndStop(1);
initPhoto();
_local1 = (display.getChildByName("controlListMC_Credit") as Sprite);
_controlBar = new ControlList(_local1);
}
override public function initEvent():void{
_levelBtn.addEventListener(MouseEvent.CLICK, onClickFun);
_levelBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
}
override public function removeEvent():void{
_levelBtn.removeEventListener(MouseEvent.CLICK, onClickFun);
}
}
}//package code.ui
Section 39
//FromFriend (code.ui.FromFriend)
package code.ui {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import code.tool.*;
public class FromFriend extends UI {
private var _moreGameBtn:Sprite;
private var _output:TextField;
private var _startGameBtn:Sprite;
private var _photo:MovieClip;
private var _friend:TextField;
public function FromFriend(_arg1:UIManager){
super(_arg1);
init();
initOutput();
}
private function onMouseClickFun(_arg1:MouseEvent):void{
SoundsManager.playSound("menu_press");
if (_arg1.target == _startGameBtn.getChildByName("HitMC")){
uim.delFromFriend();
uim.menu();
};
}
private function initDis():void{
_output = (display.getChildByName("outputText") as TextField);
_output.selectable = false;
_output.tabEnabled = false;
_friend = (display.getChildByName("friendText") as TextField);
_friend.selectable = false;
_friend.tabEnabled = false;
_startGameBtn = (display.getChildByName("startGameBtn") as Sprite);
_moreGameBtn = (display.getChildByName("moreGameBtn_fromFriendMC") as Sprite);
_photo = (display.getChildByName("photo") as MovieClip);
_photo.stop();
}
private function onMouseOverFun(_arg1:MouseEvent):void{
SoundsManager.playSound("menu_touch");
}
override public function initMC():void{
this.setMC("FromFriendMC");
initDis();
}
override public function initEvent():void{
_startGameBtn.addEventListener(MouseEvent.CLICK, onMouseClickFun);
_startGameBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_moreGameBtn.addEventListener(MouseEvent.CLICK, onMouseClickFun);
_moreGameBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
}
private function initOutput():void{
var _local1:String;
var _local2:String;
var _local3:String;
_local1 = GetGameURL.getMyselfURL("code=");
_output.text = GetGameURL.codeToString(_local1);
_local2 = GetGameURL.getMyselfURL("friend=");
_friend.text = GetGameURL.codeToString(_local2);
_local3 = GetGameURL.getMyselfURL("&frame=");
_local3 = GetGameURL.codeToString(_local3);
_photo.gotoAndStop(int(_local3));
}
override public function removeEvent():void{
_startGameBtn.removeEventListener(MouseEvent.CLICK, onMouseClickFun);
}
}
}//package code.ui
Section 40
//GameOption (code.ui.GameOption)
package code.ui {
import flash.events.*;
import flash.display.*;
import code.tool.*;
import code.data.*;
public class GameOption {
private var __mc:Sprite;
private var _soundBtn:MovieClip;
private var _qualityBtn:MovieClip;
private var _musicBtn:MovieClip;
public function GameOption(_arg1:Sprite){
__mc = _arg1;
initGameOption();
}
private function changeSound():void{
if (Data.SoundEable){
_soundBtn.gotoAndStop(1);
Data.SoundEable = true;
SoundsManager.modifySoundsVolume();
} else {
_soundBtn.gotoAndStop(3);
Data.SoundEable = false;
SoundsManager.modifySoundsVolume(0);
};
}
private function onMouseOverFun(_arg1:MouseEvent):void{
SoundsManager.playSound("other_touch");
}
private function initMC():void{
_qualityBtn = (__mc.getChildByName("qualityBtn") as MovieClip);
_qualityBtn.buttonMode = true;
changeQuality();
_soundBtn = (__mc.getChildByName("soundBtn") as MovieClip);
_soundBtn.buttonMode = true;
changeSound();
_musicBtn = (__mc.getChildByName("musicBtn") as MovieClip);
_musicBtn.buttonMode = true;
changeMusic();
}
private function onMouseDown(_arg1:MouseEvent):void{
switch (_arg1.target){
case _qualityBtn:
SoundsManager.playSound("other_press");
Data.QualityType++;
if (Data.QualityType > 3){
Data.QualityType = 1;
};
changeQuality();
break;
case _musicBtn:
SoundsManager.playSound("other_press");
Data.MusicEable = !(Data.MusicEable);
changeMusic();
break;
case _soundBtn:
SoundsManager.playSound("other_press");
Data.SoundEable = !(Data.SoundEable);
changeSound();
break;
};
}
private function removeMC():void{
}
private function initEvent():void{
__mc.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
_qualityBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_musicBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_soundBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
}
public function del():void{
removeEvent();
removeMC();
}
private function removeEvent():void{
__mc.removeEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
}
private function changeMusic():void{
if (Data.MusicEable){
_musicBtn.gotoAndStop(1);
Data.MusicEable = true;
SoundsManager.modifyMusicVolume();
} else {
_musicBtn.gotoAndStop(3);
Data.MusicEable = false;
SoundsManager.modifyMusicVolume(0);
};
}
private function initGameOption():void{
initMC();
initEvent();
}
private function changeQuality():void{
switch (Data.QualityType){
case 1:
__mc.stage.quality = StageQuality.BEST;
_qualityBtn.gotoAndStop(1);
Data.QualityType = 1;
break;
case 2:
__mc.stage.quality = StageQuality.MEDIUM;
_qualityBtn.gotoAndStop(2);
Data.QualityType = 2;
break;
case 3:
__mc.stage.quality = StageQuality.LOW;
_qualityBtn.gotoAndStop(3);
Data.QualityType = 3;
break;
};
}
}
}//package code.ui
Section 41
//HowToPlay (code.ui.HowToPlay)
package code.ui {
import flash.events.*;
import flash.display.*;
import code.tool.*;
import code.data.*;
public class HowToPlay extends UI {
private var _skipBtn:Sprite;
private var _nextBtn:Sprite;
private var _backBtn:Sprite;
public function HowToPlay(_arg1:UIManager, _arg2:Function=null){
super(_arg1);
init();
addClickStartBtnFun(_arg2);
}
private function onClickBackBtnFun(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
SoundsManager.playSound("window_press");
_local2 = displayMC.currentFrame;
_local3 = displayMC.totalFrames;
if (_local2 <= (_local3 - 2)){
displayMC.gotoAndStop(_local3);
} else {
displayMC.gotoAndStop((_local2 - 1));
};
}
private function onClickNextBtnFun(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
SoundsManager.playSound("window_press");
_local2 = displayMC.currentFrame;
_local3 = displayMC.totalFrames;
if (_local2 >= _local3){
displayMC.gotoAndStop((_local3 - 2));
} else {
displayMC.gotoAndStop((_local2 + 1));
};
}
private function onMouseOverFun(_arg1:MouseEvent):void{
SoundsManager.playSound("window_touch");
}
override public function initMC():void{
var _local1:Array;
if (Data.HowToPlayMC == ""){
_local1 = new Array("backBtn");
drawMC(_local1);
} else {
setMC(Data.HowToPlayMC);
};
display.name = "howToPlayMC";
(display as MovieClip).addFrameScript(((display as MovieClip).totalFrames - 3), initBtn);
}
private function onClickSkipBtnFun(_arg1:MouseEvent):void{
SoundsManager.playSound("window_press");
display.dispatchEvent(new Event("ClickStartBtn"));
uim.delHowToPlay();
}
private function addClickStartBtnFun(_arg1:Function):void{
var ClickStartBtnFun:Function;
var fun = _arg1;
if (fun != null){
ClickStartBtnFun = function (_arg1:Event):void{
fun();
};
display.addEventListener("ClickStartBtn", ClickStartBtnFun);
};
}
private function addEvent():void{
_backBtn.addEventListener(MouseEvent.CLICK, onClickBackBtnFun);
_nextBtn.addEventListener(MouseEvent.CLICK, onClickNextBtnFun);
_skipBtn.addEventListener(MouseEvent.CLICK, onClickSkipBtnFun);
_backBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_nextBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_skipBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
}
private function initBtn():void{
displayMC.stop();
_backBtn = (display.getChildByName("BackBtn") as Sprite);
_nextBtn = (display.getChildByName("NextBtn") as Sprite);
_skipBtn = (display.getChildByName("SkipBtn") as Sprite);
addEvent();
displayMC.addFrameScript((displayMC.currentFrame - 1), null);
}
}
}//package code.ui
Section 42
//KeepInGame (code.ui.KeepInGame)
package code.ui {
import flash.events.*;
import flash.display.*;
import code.tool.*;
public class KeepInGame extends UI {
private var _mainMenuBtn:Sprite;
private var _merchdiseBtn:MovieClip;
private var _startGameBtn:Sprite;
private var _moreGameBtn:Sprite;
public function KeepInGame(_arg1:UIManager){
super(_arg1);
init();
}
private function showTextFun():void{
var _local1:MovieClip;
_local1 = (_merchdiseBtn.getChildByName("mc") as MovieClip);
_local1.gotoAndStop(2);
}
private function onClickFun(_arg1:MouseEvent):void{
SoundsManager.playSound("menu_press");
if (_arg1.target == _startGameBtn.getChildByName("HitMC")){
uim.delKeepInGame();
uim.levelMap();
} else {
if (_arg1.target == _mainMenuBtn.getChildByName("HitMC")){
uim.delKeepInGame();
uim.menu();
};
};
}
private function onClickMerchdiseBtnFun(_arg1:MouseEvent):void{
var _local2:String;
var _local3:Boolean;
SoundsManager.playSound("menu_press");
if (Language._languageNum == 0){
_local3 = false;
_local2 = "http://www.zazzle.com/spilgames";
} else {
if (Language._languageNum == 12){
_local3 = true;
_local2 = "http://www.zazzle.co.uk/spilgames";
};
};
if (_local2 != null){
InterNet.getNewURL(_local2);
};
Tracker.shop(_local3);
}
private function onMouseOverFun(_arg1:MouseEvent):void{
SoundsManager.playSound("menu_touch");
}
override public function initMC():void{
setMC("KeepInGameMC");
_startGameBtn = (display.getChildByName("startGameBtn") as Sprite);
_mainMenuBtn = (display.getChildByName("mainMenuBtn") as Sprite);
_moreGameBtn = (display.getChildByName("moreGameBtn_KeepInGame") as Sprite);
_merchdiseBtn = (display.getChildByName("merchdiseBtn") as MovieClip);
_merchdiseBtn.addFrameScript(1, showTextFun);
if ((((Language._languageNum == 0)) || ((Language._languageNum == 12)))){
_merchdiseBtn.visible = true;
} else {
_merchdiseBtn.visible = false;
};
}
override public function initEvent():void{
_startGameBtn.addEventListener(MouseEvent.CLICK, onClickFun);
_mainMenuBtn.addEventListener(MouseEvent.CLICK, onClickFun);
_merchdiseBtn.addEventListener(MouseEvent.CLICK, onClickMerchdiseBtnFun);
_merchdiseBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_startGameBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_mainMenuBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
}
override public function removeEvent():void{
_startGameBtn.removeEventListener(MouseEvent.CLICK, onClickFun);
_mainMenuBtn.removeEventListener(MouseEvent.CLICK, onClickFun);
_merchdiseBtn.removeEventListener(MouseEvent.CLICK, onClickMerchdiseBtnFun);
_merchdiseBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_startGameBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_mainMenuBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
}
}
}//package code.ui
Section 43
//LevelFaild (code.ui.LevelFaild)
package code.ui {
import flash.events.*;
import flash.display.*;
import code.logic.*;
import code.tool.*;
import code.data.*;
public class LevelFaild extends UI {
private var _mainMenuBtn:Sprite;
private var _rePalyBtn:Sprite;
private var _controlBar:ControlList;
private var _isCatch:Boolean;
public function LevelFaild(_arg1:UIManager, _arg2:Boolean=true){
super(_arg1);
_isCatch = _arg2;
if (_isCatch){
if (Data.faildNum++ == 9){
trace("被抓了", Data.faildNum, "次");
SpilSystem.instance.submitAchievement("WANNABEANGEL");
};
};
init();
}
private function onMainMenuBtnClickFun(_arg1:MouseEvent):void{
SoundsManager.playSound("menu_press");
uim.delLevelFaild();
uim.levelMap();
}
private function onRePalyBtnClickFun(_arg1:MouseEvent):void{
SoundsManager.playSound("menu_press");
uim.GM.reStart();
}
private function onMouseOverFun(_arg1:MouseEvent):void{
SoundsManager.playSound("menu_touch");
}
override public function initMC():void{
var _local1:Sprite;
var _local2:Array;
var _local3:Array;
if (_isCatch){
if (Data.LevelFaildMC1 == ""){
_local2 = new Array("rePalyBtn", "mainMenuBtn");
drawMC(_local2);
} else {
setMC(Data.LevelFaildMC1);
};
_local1 = (display.getChildByName("controlListMC_BeCatch") as Sprite);
SoundsManager.playSound("person");
} else {
if (Data.LevelFaildMC2 == ""){
_local3 = new Array("rePalyBtn", "mainMenuBtn");
drawMC(_local3);
} else {
setMC(Data.LevelFaildMC2);
};
_local1 = (display.getChildByName("controlListMC_TimerOver") as Sprite);
};
_rePalyBtn = (display.getChildByName("rePalyBtn") as Sprite);
_mainMenuBtn = (display.getChildByName("mainMenuBtn") as Sprite);
_controlBar = new ControlList(_local1);
}
override public function initEvent():void{
_rePalyBtn.addEventListener(MouseEvent.CLICK, onRePalyBtnClickFun);
_mainMenuBtn.addEventListener(MouseEvent.CLICK, onMainMenuBtnClickFun);
_controlBar.display.addEventListener("HomePage_ConTrolList", onHomePageFun);
_rePalyBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_mainMenuBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
}
private function onHomePageFun(_arg1:Event):void{
uim.delLevelFaild();
uim.menu();
}
}
}//package code.ui
Section 44
//LevelMap (code.ui.LevelMap)
package code.ui {
import flash.events.*;
import flash.display.*;
import code.logic.*;
import code.tool.*;
import code.data.*;
public class LevelMap extends UI {
private var _merchdiseBtn:MovieClip;
private var _achievementBtn:MovieClip;
private var _hasBtn:Boolean;
private var _controlBar:ControlList;
private var _levelArr:Array;
private var _creditBtn:Sprite;
public function LevelMap(_arg1:UIManager, _arg2:Boolean=false){
super(_arg1);
_hasBtn = _arg2;
init();
}
private function onSendToFriendFun(_arg1:Event):void{
if ((((Cookie.da["Levelarr"][0]["cup"] > PlayerStar.NoStar.value)) && (!(Cookie.da["effect"])))){
uim.delLevelMap();
uim.sendToFriend();
};
}
private function onClickFun(_arg1:MouseEvent):void{
SoundsManager.playSound("other_press");
uim.delLevelMap();
uim.achievement();
}
private function getBtnArr():Array{
var _local1:Array;
var _local2:int;
_local1 = new Array();
_local2 = 0;
while (_local2 < Data.LevelMaxNum) {
_local1.push(("Level" + _local2));
_local2++;
};
return (_local1);
}
private function onMouseOverFun(_arg1:MouseEvent):void{
SoundsManager.playSound("other_touch");
}
override public function initMC():void{
var _local1:MovieClip;
var _local2:Sprite;
var _local3:Array;
if (Data.LevelMapMC == ""){
_local3 = getBtnArr();
drawMC(_local3);
} else {
setMC(Data.LevelMapMC);
};
_local1 = (display.getChildByName("mc") as MovieClip);
MCPlayer.stopMC(_local1);
_creditBtn = (display.getChildByName("creditBtn") as Sprite);
_creditBtn.mouseChildren = false;
if (Cookie.da["Levelarr"][(Data.LevelMaxNum - 1)]["cup"] > PlayerStar.NoStar.value){
_creditBtn.visible = true;
} else {
_creditBtn.visible = false;
};
_achievementBtn = (display.getChildByName("achievementBtn") as MovieClip);
_achievementBtn.mouseChildren = false;
_achievementBtn.mouseEnabled = false;
_achievementBtn.buttonMode = true;
if (Data.HasNewAchievement){
_achievementBtn.gotoAndPlay(1);
} else {
if (CheckAllachievement()){
_achievementBtn.gotoAndStop(_achievementBtn.totalFrames);
} else {
_achievementBtn.gotoAndStop((_achievementBtn.totalFrames - 1));
};
};
_merchdiseBtn = (display.getChildByName("merchdiseBtn") as MovieClip);
_merchdiseBtn.mouseChildren = false;
if ((((Language._languageNum == 0)) || ((Language._languageNum == 12)))){
_merchdiseBtn.visible = true;
} else {
_merchdiseBtn.visible = false;
};
initLevelBtn();
_local2 = (display.getChildByName("controlListMC_levelMap") as Sprite);
_controlBar = new ControlList(_local2);
}
private function onClickMerchdiseBtnFun(_arg1:MouseEvent):void{
var _local2:String;
var _local3:Boolean;
if (Language._languageNum == 0){
_local3 = false;
_local2 = "http://www.zazzle.com/spilgames";
} else {
if (Language._languageNum == 12){
_local3 = true;
_local2 = "http://www.zazzle.co.uk/spilgames";
};
};
if (_local2 != null){
InterNet.getNewURL(_local2);
};
Tracker.shop(_local3);
}
private function onLevelFun(_arg1:MouseEvent):void{
var _local2:Sprite;
var _local3:int;
SoundsManager.playSound("other_press");
_local2 = (_arg1.target as Sprite);
_local3 = _levelArr.indexOf(_local2.parent);
Data.LevelCurrNum = _local3;
uim.isSure();
}
override public function initEvent():void{
_achievementBtn.addEventListener(MouseEvent.CLICK, onClickFun);
_creditBtn.addEventListener(MouseEvent.CLICK, onClickCreditBtnFun);
_controlBar.display.addEventListener("SendToFriend", onSendToFriendFun);
_merchdiseBtn.addEventListener(MouseEvent.CLICK, onClickMerchdiseBtnFun);
_achievementBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
}
private function onClickCreditBtnFun(_arg1:MouseEvent):void{
uim.pageChange();
}
private function initLevelBtn():void{
var _local1:int;
var _local2:int;
var _local3:Sprite;
var _local4:MovieClip;
var _local5:Sprite;
_levelArr = new Array();
_local2 = 0;
while (_local2 < Data.LevelMaxNum) {
_local1 = Cookie.da["Levelarr"][_local2]["cup"];
if (Data.LevelMapMC == ""){
_local3 = (display.getChildByName(("Level" + _local2)) as Sprite);
_local3.buttonMode = true;
} else {
_local4 = (display.getChildByName(("Level" + _local2)) as MovieClip);
if (_hasBtn){
_local5 = (display.getChildByName(("LevelBtn" + _local2)) as Sprite);
} else {
_local4.buttonMode = true;
};
};
if (_local2 > Cookie.da["CurrLevel"]){
if (Data.LevelMapMC == ""){
_local3.alpha = 0.1;
} else {
_local4.gotoAndStop(1);
};
} else {
if (_local2 < Cookie.da["CurrLevel"]){
if (Data.LevelMapMC == ""){
_local3.alpha = 1;
_local3.scaleX = _local1;
_local3.addEventListener(MouseEvent.CLICK, onLevelFun);
} else {
_local4.gotoAndStop(_local1);
if (_hasBtn){
_local5.addEventListener(MouseEvent.CLICK, onLevelFun);
_local5.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
} else {
_local4.addEventListener(MouseEvent.CLICK, onLevelFun);
_local4.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
};
};
} else {
if (Data.LevelMapMC == ""){
_local3.alpha = 1;
_local3.addEventListener(MouseEvent.CLICK, onLevelFun);
} else {
_local4.gotoAndStop(_local1);
Fillter.light(_local4, 30, 0xFF0000);
if (_hasBtn){
_local5.addEventListener(MouseEvent.CLICK, onLevelFun);
_local5.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
} else {
_local4.addEventListener(MouseEvent.CLICK, onLevelFun);
_local4.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
};
};
};
};
if (Data.LevelMapMC == ""){
_levelArr.push(_local3);
} else {
if (!_hasBtn){
_levelArr.push(_local4);
} else {
_levelArr.push(_local5);
};
};
_local2++;
};
}
public function setEffectShow():void{
_controlBar.setEffectShow();
}
override public function removeEvent():void{
_achievementBtn.removeEventListener(MouseEvent.CLICK, onClickFun);
_creditBtn.addEventListener(MouseEvent.CLICK, onClickCreditBtnFun);
_controlBar.display.addEventListener("SendToFriend", onSendToFriendFun);
_merchdiseBtn.removeEventListener(MouseEvent.CLICK, onClickMerchdiseBtnFun);
_achievementBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_creditBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_merchdiseBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
}
private function CheckAllachievement():Boolean{
var _local1:Array;
var _local2:*;
_local1 = new Array();
_local1.push(Cookie.da["Achievement"]["GoldDevil"][0]);
_local1.push(Cookie.da["Achievement"]["SilverDevil"][0]);
_local1.push(Cookie.da["Achievement"]["SuperSlyDevil"][0]);
_local1.push(Cookie.da["Achievement"]["SlyDevil"][0]);
for (_local2 in _local1) {
if (_local1[_local2] == false){
return (true);
};
};
return (false);
}
}
}//package code.ui
Section 45
//LevelPass (code.ui.LevelPass)
package code.ui {
import flash.events.*;
import flash.display.*;
import code.logic.*;
import code.tool.*;
import code.data.*;
public class LevelPass extends UI {
private var _starMC:MovieClip;
private var _geustMC:MovieClip;
private var _controlBar:ControlList;
private var _achievement:String;
private var _star:PlayerStar;
public function LevelPass(_arg1:UIManager, _arg2:PlayerStar=null, _arg3:String=null){
super(_arg1);
_star = _arg2;
_achievement = _arg3;
init();
}
private function onCuPWarinFun():void{
var _local1:MovieClip;
_local1 = (display.getChildByName("cupWarningMC") as MovieClip);
if (_achievement == null){
_local1.stop();
_local1.visible = false;
} else {
Data.HasNewAchievement = true;
};
}
private function onChangeGuestFun():void{
_geustMC = (display.getChildByName("photoMC") as MovieClip);
_geustMC.gotoAndStop(Data.LevelCurrNum);
}
private function onChangeStarFun():void{
_starMC = (display.getChildByName("starMC") as MovieClip);
if (_star == PlayerStar.GoldStar){
_starMC.gotoAndStop(3);
} else {
if (_star == PlayerStar.SilverStar){
_starMC.gotoAndStop(2);
} else {
if (_star == PlayerStar.BronzeStar){
_starMC.gotoAndStop(1);
};
};
};
}
override public function initMC():void{
var _local1:Sprite;
var _local2:Array;
if (Data.LevelPassMC == ""){
_local2 = new Array("againBtn", "mainMenuBtn");
drawMC(_local2);
} else {
setMC(Data.LevelPassMC);
};
display.name = "levelPass";
displayMC.buttonMode = true;
displayMC.mouseChildren = false;
displayMC.addFrameScript(7, onDelMainFun);
displayMC.addFrameScript(6, onChangeGuestFun);
displayMC.addFrameScript(24, onChangeStarFun);
displayMC.addFrameScript((displayMC.totalFrames - 1), onNextLevelFun);
_local1 = (display.getChildByName("controlListMC_LevelPass") as Sprite);
_controlBar = new ControlList(_local1);
}
private function onNextLevelFun():void{
displayMC.stop();
display.stage.addEventListener(MouseEvent.CLICK, onClickFun);
}
private function onClickFun(_arg1:MouseEvent):void{
SoundsManager.playSound("other_press");
display.stage.removeEventListener(MouseEvent.CLICK, onClickFun);
uim.delPassLevel();
SoundsManager.playMusic("mainscreen_music");
if (Data.LevelCurrNum < Data.LevelMaxNum){
uim.setEffectShow();
} else {
if (!Cookie.da["endGame"]){
uim.pageChange();
};
};
}
private function onDelMainFun():void{
uim.GM.endMain();
uim.levelMap(false);
uim.mc.swapChildrenAt(0, (uim.mc.numChildren - 1));
}
}
}//package code.ui
Section 46
//Loading (code.ui.Loading)
package code.ui {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import code.tool.*;
import code.data.*;
import flash.external.*;
public class Loading extends UI {
private var percentTxt:TextField;
private var loadingMc:MovieClip;
private var spilDomain:SpilDomain;
public function Loading(_arg1:UIManager){
super(_arg1);
init();
initDomain();
}
override public function initMC():void{
if (Data.loadingMC == ""){
drawMC(new Array());
} else {
setMC(Data.loadingMC);
loadingMc = (display.getChildByName("loadingMc") as MovieClip);
percentTxt = (display.getChildByName("percentText") as TextField);
};
}
override public function initEvent():void{
display.addEventListener(Event.ENTER_FRAME, onProgress);
}
private function onProgress(_arg1:Event):void{
var _local2:Number;
_local2 = (display.root.loaderInfo.bytesLoaded / display.root.loaderInfo.bytesTotal);
if (_local2 >= 1){
if (_local2 >= 1){
if ((((spilDomain == null)) || ((spilDomain.status == 0)))){
Data.siteLock = true;
completeFun();
} else {
if (spilDomain.status == -1){
trace("现在的进度:", _local2);
return;
};
if (spilDomain.status == 1){
completeFun();
};
};
};
} else {
_local2 = Math.round((_local2 * 100));
if (Data.loadingMC == ""){
trace("No loading Bar exit!");
} else {
percentTxt.text = String(_local2);
loadingMc.gotoAndStop((_local2 + 1));
};
};
}
private function completeFun():void{
var _local1:Sprite;
(display.root as MovieClip).gotoAndStop(2);
(display.root as MovieClip).gotoAndStop(1);
uim.delLoading();
SoundsManager.init();
uim.checkLink();
_local1 = new Sprite();
MyDrawSprite.draw(_local1, MyDrawSprite.Rect, Data.stageWidth, Data.stageHeight);
_local1.x = (Data.stageWidth / 2);
_local1.y = (Data.stageHeight / 2);
uim.mc.parent.addChild(_local1);
uim.mc.mask = _local1;
}
override public function removeEvent():void{
display.removeEventListener(Event.ENTER_FRAME, onProgress);
}
private function initDomain():void{
var checkUrl:String;
try {
checkUrl = (ExternalInterface.call("window.location.href.toString") as String);
} catch(e:Error) {
return;
};
spilDomain = new SpilDomain();
spilDomain.urlCheck = checkUrl;
spilDomain.loadXML();
}
}
}//package code.ui
Section 47
//Menu (code.ui.Menu)
package code.ui {
import flash.events.*;
import flash.display.*;
import code.tool.*;
import code.data.*;
public class Menu extends UI {
private var _merchdiseBtn:MovieClip;
private var _spillGameBtn:Sprite;
private var _startGameBtn:Sprite;
private var _gameOption:GameOption;
private var _moreGameBtn:Sprite;
private var _howToPlayBtn:Sprite;
public function Menu(_arg1:UIManager){
super(_arg1);
init();
}
private function merchdiseFun(_arg1:Event):void{
if ((((Language._languageNum == 0)) || ((Language._languageNum == 12)))){
_merchdiseBtn.visible = true;
} else {
_merchdiseBtn.visible = false;
};
}
private function onClickMoreGameBtnFun(_arg1:MouseEvent):void{
SoundsManager.playSound("menu_press");
}
private function showTextFun():void{
var _local1:MovieClip;
_local1 = (_merchdiseBtn.getChildByName("mc") as MovieClip);
_local1.gotoAndStop(1);
}
private function onClickFun(_arg1:MouseEvent):void{
SoundsManager.playSound("menu_press");
InterNet.getNewURL();
}
private function onClickMerchdiseBtnFun(_arg1:MouseEvent):void{
var _local2:String;
var _local3:Boolean;
SoundsManager.playSound("menu_press");
if (Language._languageNum == 0){
_local3 = false;
_local2 = "http://www.zazzle.com/spilgames";
} else {
if (Language._languageNum == 12){
_local3 = true;
_local2 = "http://www.zazzle.co.uk/spilgames";
};
};
if (_local2 != null){
InterNet.getNewURL(_local2);
};
Tracker.shop(_local3);
}
private function onMouseOverFun(_arg1:MouseEvent):void{
SoundsManager.playSound("menu_touch");
}
override public function initMC():void{
var _local1:Array;
if (Data.MenuMC == ""){
_local1 = new Array("sartGameBtn", "howToPlayBtn", "moreGameBtn_menu");
drawMC(_local1);
} else {
setMC(Data.MenuMC);
};
_startGameBtn = (display.getChildByName("sartGameBtn") as Sprite);
_howToPlayBtn = (display.getChildByName("howToPlayBtn") as Sprite);
_moreGameBtn = (display.getChildByName("moreGameBtn_menu") as Sprite);
_spillGameBtn = (display.getChildByName("spillGameBtn") as Sprite);
_merchdiseBtn = (display.getChildByName("merchdiseBtn") as MovieClip);
_merchdiseBtn.addFrameScript(1, showTextFun);
if ((((Language._languageNum == 0)) || ((Language._languageNum == 12)))){
_merchdiseBtn.visible = true;
} else {
_merchdiseBtn.visible = false;
};
_gameOption = new GameOption(display);
}
override public function initEvent():void{
_startGameBtn.addEventListener(MouseEvent.CLICK, onClickStartGameBtnFun);
_howToPlayBtn.addEventListener(MouseEvent.CLICK, onClickHowToPlayBtnFun);
_spillGameBtn.addEventListener(MouseEvent.CLICK, onClickFun);
_merchdiseBtn.addEventListener(MouseEvent.CLICK, onClickMerchdiseBtnFun);
_moreGameBtn.addEventListener(MouseEvent.CLICK, onClickMoreGameBtnFun);
_startGameBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_howToPlayBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_spillGameBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_merchdiseBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_moreGameBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
MyDispatcher.addLangChangedListener(merchdiseFun);
}
private function onClickStartGameBtnFun(_arg1:MouseEvent):void{
SoundsManager.playSound("menu_press");
uim.delMenu();
uim.start();
}
private function onClickHowToPlayBtnFun(_arg1:MouseEvent):void{
SoundsManager.playSound("menu_press");
uim.howToPlay();
}
override public function removeEvent():void{
_startGameBtn.removeEventListener(MouseEvent.CLICK, onClickStartGameBtnFun);
_howToPlayBtn.removeEventListener(MouseEvent.CLICK, onClickHowToPlayBtnFun);
_spillGameBtn.removeEventListener(MouseEvent.CLICK, onClickFun);
_merchdiseBtn.removeEventListener(MouseEvent.CLICK, onClickMerchdiseBtnFun);
_moreGameBtn.removeEventListener(MouseEvent.CLICK, onClickMoreGameBtnFun);
_startGameBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_howToPlayBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_spillGameBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_merchdiseBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_moreGameBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
MyDispatcher.removeLangChangedListener(merchdiseFun);
}
}
}//package code.ui
Section 48
//MyTransition (code.ui.MyTransition)
package code.ui {
import flash.display.*;
import code.logic.*;
public class MyTransition extends UI {
private var _controlBar:ControlList;
private var _romvePreFun:Function;
public function MyTransition(_arg1:UIManager, _arg2:Function=null){
super(_arg1);
init();
setRemovePreFun(_arg2);
}
override public function initMC():void{
var _local1:Sprite;
setMC("TransitionMC");
displayMC.addFrameScript(19, transitionFun);
displayMC.addFrameScript((displayMC.totalFrames - 1), endFun);
_local1 = (display.getChildByName("controlListMC_Transition") as Sprite);
_controlBar = new ControlList(_local1);
_controlBar.setAllBtnActiveeable();
}
private function transitionFun():void{
_romvePreFun();
uim.GM.main();
uim.GM.stopGameFun();
uim.mc.swapChildrenAt(0, (uim.mc.numChildren - 1));
}
private function setRemovePreFun(_arg1:Function=null):void{
if (_arg1 == null){
_romvePreFun = uim.delLevelMap;
} else {
_romvePreFun = _arg1;
};
}
private function endFun():void{
displayMC.stop();
uim.delTransition();
uim.initGame();
}
}
}//package code.ui
Section 49
//PageChange (code.ui.PageChange)
package code.ui {
import flash.events.*;
public class PageChange extends UI {
private var _isPre:Boolean;
public function PageChange(_arg1:UIManager, _arg2:Boolean=false){
super(_arg1);
_isPre = _arg2;
init();
}
private function addNextPage():void{
uim.delLevelMap();
uim.credits();
uim.mc.swapChildrenAt(0, (uim.mc.numChildren - 1));
}
override public function initMC():void{
var _local1:int;
setMC("ChangePageMC");
_local1 = (displayMC.totalFrames - 1);
if (_isPre){
displayMC.addFrameScript(10, addPrePage);
displayMC.addFrameScript(1, remove);
} else {
displayMC.addFrameScript(10, addNextPage);
displayMC.addFrameScript(_local1, remove);
};
}
override public function initEvent():void{
display.addEventListener(Event.ENTER_FRAME, run);
}
private function run(_arg1:Event):void{
if (_isPre){
displayMC.gotoAndStop((((displayMC.currentFrame - 1) > 0)) ? (displayMC.currentFrame - 1) : displayMC.totalFrames);
};
}
private function addPrePage():void{
uim.delCredits();
uim.levelMap();
uim.mc.swapChildrenAt(0, (uim.mc.numChildren - 1));
}
override public function removeEvent():void{
display.removeEventListener(Event.ENTER_FRAME, run);
}
private function remove():void{
displayMC.stop();
uim.delPageChange();
}
}
}//package code.ui
Section 50
//SendToFriend (code.ui.SendToFriend)
package code.ui {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import code.tool.*;
import fl.transitions.*;
import code.data.*;
import fl.transitions.easing.*;
import flash.system.*;
public class SendToFriend extends UI {
private const _photoNameArr:Array;
private var _builtLinkBtn:Sprite;
private var _btnArr:Array;
private var _web:TextField;
private var _currPhotoNum:Number;// = 0
private var _photoArr:Array;
private var _nextBtn:Sprite;
private var _moreGameBtn:Sprite;
private var _url:String;
private var _friend:TextField;
private var _input:TextField;
private var _backBTn:Sprite;
private var _seatArr:Array;
private var _preBtn:Sprite;
private var _frame:int;
private var _phone:MovieClip;
public function SendToFriend(_arg1:UIManager){
_photoNameArr = new Array("PhotoAlbum_photo02_01", "PhotoAlbum_photo02_02", "PhotoAlbum_photo02_03", "PhotoAlbum_photo02_04", "PhotoAlbum_photo02_05", "PhotoAlbum_photo02_06", "PhotoAlbum_photo02_07", "PhotoAlbum_photo02_08", "PhotoAlbum_photo02_09", "PhotoAlbum_photo02_10");
_currPhotoNum = 0;
super(_arg1);
init();
initURL();
}
private function onChangeFun(_arg1:Event):void{
this.updataShareURL();
}
private function onClickFun(_arg1:MouseEvent):void{
switch (_arg1.target){
case _backBTn.getChildByName("HitMC"):
SoundsManager.playSound("menu_press");
uim.delSentToFriend();
uim.levelMap();
break;
case _builtLinkBtn.getChildByName("HitMC"):
SoundsManager.playSound("menu_press");
System.setClipboard(_web.text);
break;
case _nextBtn.getChildByName("HitMC"):
SoundsManager.playSound("other_press");
changeRim();
break;
case _preBtn.getChildByName("HitMC"):
SoundsManager.playSound("other_press");
changeRim(false);
break;
case _moreGameBtn.getChildByName("HitMC"):
SoundsManager.playSound("menu_press");
break;
};
}
override public function initMC():void{
this.setMC("SendtofriendMC");
initDis();
initPhone();
}
private function onMouseOverFun(_arg1:MouseEvent):void{
SoundsManager.playSound("other_touch");
}
private function onMouseOverOverFun(_arg1:MouseEvent):void{
SoundsManager.playSound("menu_touch");
}
private function initPhone():void{
var _local1:int;
var _local2:Sprite;
var _local3:int;
var _local4:MovieClip;
_btnArr = new Array();
_seatArr = new Array();
_photoArr = new Array();
_local1 = 0;
while (_local1 < 3) {
_local2 = (display.getChildByName(("photo" + (_local1 + 1).toString())) as Sprite);
_local2.addEventListener(MouseEvent.CLICK, onClickPhotoFun);
_local2.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_btnArr.push(_local2);
_local3 = display.getChildIndex(_local2);
_local4 = Attach.getMovieClip(_photoNameArr[(_currPhotoNum + _local1)]);
_local4.x = _local2.x;
_local4.y = _local2.y;
display.addChildAt(_local4, _local3);
if (checkOpen((_currPhotoNum + _local1))){
_local4.gotoAndStop(1);
} else {
_local4.gotoAndStop(2);
};
_photoArr.push(_local4);
_seatArr.push(new Array(_local2.x, _local2.y, _local3));
_local1++;
};
}
private function initURL():void{
_url = (GetGameURL.getCurrentURL() + "?");
_url = (_url + "&utm_content=send_to_friend&code=");
}
private function onClearTxtFun(_arg1:MouseEvent):void{
if (_arg1.target == _input){
_input.removeEventListener(MouseEvent.CLICK, onClearTxtFun);
if (_input.text == LocationTextData.EnterTextArr[(int(Language.language_nr) - 1)]){
_input.text = "";
};
} else {
if (_arg1.target == _friend){
_friend.removeEventListener(MouseEvent.CLICK, onClearTxtFun);
if (_friend.text == LocationTextData.EnterYourNameArr[(int(Language.language_nr) - 1)]){
_friend.text = "";
};
};
};
}
private function changeRim(_arg1:Boolean=true):void{
if (_arg1){
_currPhotoNum++;
if (_currPhotoNum >= _photoNameArr.length){
_currPhotoNum = 0;
};
} else {
_currPhotoNum--;
if (_currPhotoNum < 0){
_currPhotoNum = (_photoNameArr.length - 1);
};
};
getNewPhoto();
}
private function changePhoto():void{
var _local1:MovieClip;
var _local2:int;
var _local3:int;
_photoArr = new Array();
_local2 = 0;
while (_local2 < _seatArr.length) {
_local3 = offsetCurrPhotoNum((_currPhotoNum + _local2));
_local1 = Attach.getMovieClip(_photoNameArr[_local3]);
_local1.x = _seatArr[_local2][0];
_local1.y = _seatArr[_local2][1];
display.addChildAt(_local1, _seatArr[_local2][2]);
if (checkOpen(_local3)){
_local1.gotoAndStop(1);
} else {
_local1.gotoAndStop(2);
};
_photoArr.push(_local1);
TransitionManager.start(_local1, {type:Fade, direction:Transition.IN, duration:1, easing:None.easeNone});
_local2++;
};
}
private function initDis():void{
_input = (display.getChildByName("inputText") as TextField);
_input.doubleClickEnabled = true;
_input.type = TextFieldType.INPUT;
_input.maxChars = 60;
_input.text = LocationTextData.EnterTextArr[(int(Language.language_nr) - 1)];
_input.setSelection(0, _input.length);
_friend = (display.getChildByName("friendText") as TextField);
_friend.doubleClickEnabled = true;
_friend.type = TextFieldType.INPUT;
_friend.maxChars = 25;
_friend.text = LocationTextData.EnterYourNameArr[(int(Language.language_nr) - 1)];
_friend.setSelection(0, _friend.length);
_web = (display.getChildByName("webText") as TextField);
_web.doubleClickEnabled = true;
_web.text = LocationTextData.LinkTextArr[(int(Language.language_nr) - 1)];
_backBTn = (display.getChildByName("backBtn") as Sprite);
_builtLinkBtn = (display.getChildByName("builtLinkBtn") as Sprite);
_phone = (display.getChildByName("phoneMC") as MovieClip);
_phone.stop();
_frame = _phone.currentFrame;
_preBtn = (display.getChildByName("preBtn") as Sprite);
_nextBtn = (display.getChildByName("nextBtn") as Sprite);
display.stage.focus = _input;
}
private function getNewPhoto():void{
var _local1:MovieClip;
var _local2:int;
_local2 = 0;
while (_local2 < _photoArr.length) {
_local1 = _photoArr[_local2];
display.removeChild(_local1);
_local2++;
};
changePhoto();
}
override public function initEvent():void{
_input.addEventListener(Event.CHANGE, onChangeFun);
_input.addEventListener(MouseEvent.CLICK, onClearTxtFun);
_input.addEventListener(MouseEvent.DOUBLE_CLICK, onSelectionAllFun);
_friend.addEventListener(Event.CHANGE, onChangeFun);
_friend.addEventListener(MouseEvent.DOUBLE_CLICK, onSelectionAllFun);
_friend.addEventListener(MouseEvent.CLICK, onClearTxtFun);
_web.addEventListener(MouseEvent.DOUBLE_CLICK, onSelectionAllFun);
_preBtn.addEventListener(MouseEvent.CLICK, onClickFun);
_preBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_nextBtn.addEventListener(MouseEvent.CLICK, onClickFun);
_nextBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_builtLinkBtn.addEventListener(MouseEvent.CLICK, onClickFun);
_builtLinkBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverOverFun);
_backBTn.addEventListener(MouseEvent.CLICK, onClickFun);
_backBTn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverOverFun);
}
private function onSelectionAllFun(_arg1:MouseEvent):void{
var _local2:TextField;
_local2 = (_arg1.target as TextField);
_local2.setSelection(0, _local2.length);
display.stage.focus = _local2;
}
private function checkOpen(_arg1:Number):Boolean{
if (Cookie.da["Levelarr"][_arg1]["cup"] > 2){
return (true);
};
return (false);
}
private function updataShareURL():void{
var _local1:String;
_local1 = "";
_frame = _phone.currentFrame;
_local1 = (_local1 + GetGameURL.stringToCode(((_input.text == "")) ? " " : _input.text));
_local1 = (_local1 + "&friend=");
_local1 = (_local1 + GetGameURL.stringToCode(((_friend.text == "")) ? " " : _friend.text));
_local1 = (_local1 + "&frame=");
_local1 = (_local1 + GetGameURL.stringToCode(_frame.toString()));
_web.text = (_url + _local1);
}
override public function removeEvent():void{
_input.removeEventListener(Event.CHANGE, onChangeFun);
_input.removeEventListener(MouseEvent.CLICK, onClearTxtFun);
_friend.removeEventListener(Event.CHANGE, onChangeFun);
_friend.removeEventListener(MouseEvent.DOUBLE_CLICK, onSelectionAllFun);
_preBtn.removeEventListener(MouseEvent.CLICK, onClickFun);
_preBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_nextBtn.removeEventListener(MouseEvent.CLICK, onClickFun);
_nextBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_builtLinkBtn.removeEventListener(MouseEvent.CLICK, onClickFun);
_builtLinkBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverOverFun);
_backBTn.removeEventListener(MouseEvent.CLICK, onClickFun);
_backBTn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverOverFun);
}
private function offsetCurrPhotoNum(_arg1:int):int{
var _local2:int;
_local2 = _arg1;
if (_local2 < 0){
_local2 = (_local2 + _photoNameArr.length);
};
if (_local2 >= _photoNameArr.length){
_local2 = (_local2 - _photoNameArr.length);
};
return (_local2);
}
private function onClickPhotoFun(_arg1:MouseEvent):void{
var _local2:int;
SoundsManager.playSound("other_press");
_local2 = _btnArr.indexOf((_arg1.target as Sprite).parent);
_frame = (offsetCurrPhotoNum((_currPhotoNum + _local2)) + 1);
if (checkOpen((_frame - 1))){
_phone.gotoAndStop(_frame);
};
updataShareURL();
}
}
}//package code.ui
Section 51
//SiteLock (code.ui.SiteLock)
package code.ui {
import flash.events.*;
import flash.display.*;
import code.tool.*;
public class SiteLock extends UI {
private var _startGameBtn:Sprite;
public function SiteLock(_arg1:UIManager){
super(_arg1);
init();
}
override public function initMC():void{
setMC("SiteLockMC");
_startGameBtn = (display.getChildByName("startGameBtn_AddUI") as Sprite);
}
override public function initEvent():void{
_startGameBtn.addEventListener(MouseEvent.CLICK, onClickFun);
_startGameBtn.addEventListener(MouseEvent.ROLL_OVER, oRollOverFun);
}
override public function removeEvent():void{
_startGameBtn.removeEventListener(MouseEvent.CLICK, onClickFun);
}
private function oRollOverFun(_arg1:MouseEvent):void{
SoundsManager.playSound("menu_touch");
}
private function onClickFun(_arg1:MouseEvent):void{
SoundsManager.playSound("menu_press");
}
}
}//package code.ui
Section 52
//SureMC (code.ui.SureMC)
package code.ui {
import flash.events.*;
import flash.display.*;
import code.tool.*;
import code.data.*;
public class SureMC extends UI {
private var _starMC:MovieClip;
private var _playBrn:Sprite;
private var _backBtn:Sprite;
public function SureMC(_arg1:UIManager){
super(_arg1);
init();
}
private function initStarFun():void{
var _local1:int;
_starMC = (display.getChildByName("starMC") as MovieClip);
_local1 = (Cookie.da["Levelarr"][Data.LevelCurrNum]["cup"] - 1);
if (_local1 <= 0){
_local1 = 1;
};
_starMC.gotoAndStop(_local1);
}
private function onMouseOverFun(_arg1:MouseEvent):void{
SoundsManager.playSound("window_touch");
}
override public function initMC():void{
setMC("POPMC");
displayMC.addFrameScript((displayMC.totalFrames - 1), initBtn);
}
private function onClickFun(_arg1:MouseEvent):void{
SoundsManager.playSound("window_press");
if (_arg1.target == _playBrn.getChildByName("HitMC")){
uim.delSure();
uim.transition();
} else {
if (_arg1.target == _backBtn.getChildByName("HitMC")){
uim.delSure();
};
};
}
private function addEvent():void{
_playBrn.addEventListener(MouseEvent.CLICK, onClickFun);
_backBtn.addEventListener(MouseEvent.CLICK, onClickFun);
_playBrn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_backBtn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
}
public function initBtn():void{
displayMC.stop();
_playBrn = (display.getChildByName("playBrn") as Sprite);
_backBtn = (display.getChildByName("backBtn") as Sprite);
initStarFun();
addEvent();
}
override public function removeEvent():void{
_playBrn.removeEventListener(MouseEvent.CLICK, onClickFun);
_backBtn.removeEventListener(MouseEvent.CLICK, onClickFun);
_playBrn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
_backBtn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverFun);
}
}
}//package code.ui
Section 53
//UI (code.ui.UI)
package code.ui {
import flash.display.*;
import code.tool.*;
import code.data.*;
public class UI {
private var __mc:Sprite;
private var _uim:UIManager;
public function UI(_arg1:UIManager){
_uim = _arg1;
}
public function get display():Sprite{
return (__mc);
}
public function set display(_arg1:Sprite):void{
__mc = _arg1;
}
public function initMC():void{
}
public function drawMC(_arg1:Array=null):void{
var _local2:int;
var _local3:Sprite;
__mc = new Sprite();
MyDrawSprite.draw(__mc, MyDrawSprite.Rect, Data.stageWidth, Data.stageHeight);
__mc.x = (Data.stageWidth / 2);
__mc.y = (Data.stageHeight / 2);
_uim.mc.addChild(__mc);
if (_arg1 != null){
_local2 = 0;
while (_local2 < _arg1.length) {
_local3 = new Sprite();
_local3.name = _arg1[_local2];
MyDrawSprite.draw(_local3, MyDrawSprite.Rect, 80, 20);
_local3.x = 0;
_local3.y = (-200 + (40 * _local2));
display.addChild(_local3);
_local2++;
};
};
}
public function initEvent():void{
}
public function del():void{
removeEvent();
removeMC();
}
public function init():void{
initMC();
initEvent();
}
public function removeMC():void{
__mc.parent.removeChild(__mc);
__mc = null;
}
public function setMC(_arg1:String):void{
__mc = Attach.getSprite(_arg1);
_uim.mc.addChild(__mc);
}
public function get uim():UIManager{
return (_uim);
}
public function removeEvent():void{
}
public function get displayMC():MovieClip{
return ((__mc as MovieClip));
}
}
}//package code.ui
Section 54
//UIManager (code.ui.UIManager)
package code.ui {
import flash.display.*;
import code.logic.*;
import code.tool.*;
import code.data.*;
import olduncle.*;
public class UIManager {
private var _lManager:LManager;
private var _levelFaild:LevelFaild;
private var _sureMC:SureMC;
private var _fromFriend:FromFriend;
private var _levelMap:LevelMap;
private var _sendToFriend:SendToFriend;
private var _levelPass:LevelPass;
private var _pageChange:PageChange;
private var _howToPlay:HowToPlay;
private var _menu:Menu;
private var _keepGameInGame:KeepInGame;
private var _credits:CreditsClass;
private var _achievement:Achievement;
private var _transition:MyTransition;
private var __mc:Sprite;
private var _loading:Loading;
public function UIManager(_arg1:Sprite){
__mc = new Sprite();
__mc.name = "Game";
_arg1.addChild(__mc);
loading();
}
public function passLevel(_arg1:PlayerStar=null, _arg2:String=null):void{
_levelPass = new LevelPass(this, _arg1, _arg2);
SoundsManager.playSound("camera");
}
public function delMenu():void{
_menu.del();
_menu = null;
}
public function delPageChange():void{
_pageChange.del();
_pageChange = null;
}
public function keepInGame():void{
_keepGameInGame = new KeepInGame(this);
Tracker.half();
}
public function get mc():Sprite{
return (__mc);
}
public function delCredits():void{
_credits.del();
_credits = null;
}
public function delKeepInGame():void{
_keepGameInGame.del();
_keepGameInGame = null;
}
public function credits():void{
_credits = new CreditsClass(this);
}
public function checkLink():void{
try {
if (Data.siteLock){
addAlert();
} else {
afterAlert();
};
} catch(e:Error) {
addAlert();
};
}
public function delAchievement():void{
_achievement.del();
_achievement = null;
}
public function pageChange(_arg1:Boolean=false):void{
_pageChange = new PageChange(this, _arg1);
if (_arg1){
SoundsManager.playSound("pageback");
} else {
SoundsManager.playSound("pagego");
};
}
public function delPassLevel():void{
_levelPass.del();
_levelPass = null;
}
public function initGame():void{
_lManager.initGameFun();
}
public function achievement():void{
_achievement = new Achievement(this);
SoundsManager.playMusic("achievements_music");
}
public function setEffectShow():void{
_levelMap.setEffectShow();
}
public function delLoading():void{
_loading.del();
_loading = null;
}
public function levelMap(_arg1:Boolean=true):void{
_levelMap = new LevelMap(this, true);
if (_arg1){
SoundsManager.playMusic("mainscreen_music");
};
}
private function addAlert():void{
new Alert(__mc, afterAlert);
}
private function loading():void{
_loading = new Loading(this);
}
public function howToPlay(_arg1:Function=null):void{
_howToPlay = new HowToPlay(this, _arg1);
SoundsManager.playSound("jumpwindow");
}
public function sendToFriend():void{
_sendToFriend = new SendToFriend(this);
SoundsManager.playMusic("mainscreen_music");
}
public function delSure():void{
_sureMC.del();
}
public function delTransition():void{
_transition.del();
}
public function delFromFriend():void{
_fromFriend.del();
_fromFriend = null;
}
public function delLevelFaild():void{
_levelFaild.del();
_levelFaild = null;
SoundsManager.stopMusic();
}
public function transition(_arg1:Function=null):void{
_transition = new MyTransition(this, _arg1);
SoundsManager.playSound("camera");
}
public function protect():void{
new SiteLock(this);
}
public function delSentToFriend():void{
_sendToFriend.del();
_sendToFriend = null;
}
public function menu():void{
_menu = new Menu(this);
SoundsManager.playMusic("mainscreen_music");
Tracker.begian();
}
public function levelFaild(_arg1:Boolean):void{
_levelFaild = new LevelFaild(this, _arg1);
SoundsManager.playMusic("failed_music");
}
public function delLevelMap():void{
_levelMap.del();
_levelMap = null;
}
public function isSure():void{
_sureMC = new SureMC(this);
SoundsManager.playSound("jumpwindow");
}
private function afterAlert():void{
if (GetGameURL.getCurrentURL().indexOf("code") == -1){
menu();
} else {
fromFriend();
};
}
public function start():void{
_lManager = new LManager(this);
}
public function get GM():LManager{
return (_lManager);
}
public function fromFriend():void{
_fromFriend = new FromFriend(this);
SoundsManager.playMusic("mainscreen_music");
}
public function delHowToPlay():void{
_howToPlay.del();
_howToPlay = null;
}
}
}//package code.ui
Section 55
//Game (code.Game)
package code {
import flash.events.*;
import flash.display.*;
import code.ui.*;
import code.tool.*;
import code.data.*;
public class Game {
private static var _fpsCounter:FpsCounter;
public function Game(_arg1:Sprite){
new StageSetting(_arg1);
new Cookie();
new CountryCookie();
Language.language = CountryCookie.country;
new UIManager(_arg1);
_fpsCounter = new FpsCounter(false);
_arg1.addChild(_fpsCounter);
_arg1.stage.addEventListener(Event.ENTER_FRAME, onSeeFPSFun);
}
private function onSeeFPSFun(_arg1:Event):void{
_fpsCounter.update();
}
public static function get lostFramePre():Number{
return ((1 - (_fpsCounter.averageFps / Data.FpsNum)));
}
}
}//package code
Section 56
//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 57
//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 58
//CampaignManager (com.google.analytics.campaign.CampaignManager)
package com.google.analytics.campaign {
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
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 59
//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 60
//FlashTracker (com.google.analytics.components.FlashTracker)
package com.google.analytics.components {
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.events.*;
import flash.display.*;
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 61
//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 62
//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 63
//Buffer (com.google.analytics.core.Buffer)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.net.*;
import flash.events.*;
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 64
//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 65
//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 66
//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 67
//EventInfo (com.google.analytics.core.EventInfo)
package com.google.analytics.core {
import com.google.analytics.data.*;
import com.google.analytics.utils.*;
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 68
//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 69
//ga_internal (com.google.analytics.core.ga_internal)
package com.google.analytics.core {
public namespace ga_internal;
}//package com.google.analytics.core
Section 70
//GIFRequest (com.google.analytics.core.GIFRequest)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.net.*;
import flash.events.*;
import flash.display.*;
import com.google.analytics.utils.*;
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 71
//IdleTimer (com.google.analytics.core.IdleTimer)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.events.*;
import flash.display.*;
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 72
//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 73
//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 74
//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 75
//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 76
//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 77
//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 78
//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 79
//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 80
//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 81
//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 82
//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 83
//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 84
//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 85
//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 86
//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 87
//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 88
//_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 89
//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 90
//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 91
//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 92
//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 93
//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 94
//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 95
//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 96
//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 97
//ILayout (com.google.analytics.debug.ILayout)
package com.google.analytics.debug {
import com.google.analytics.core.*;
import flash.net.*;
import flash.display.*;
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 98
//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 99
//Label (com.google.analytics.debug.Label)
package com.google.analytics.debug {
import flash.events.*;
import flash.display.*;
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 100
//Layout (com.google.analytics.debug.Layout)
package com.google.analytics.debug {
import com.google.analytics.core.*;
import flash.net.*;
import flash.events.*;
import flash.display.*;
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 101
//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 102
//Panel (com.google.analytics.debug.Panel)
package com.google.analytics.debug {
import flash.events.*;
import flash.display.*;
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 103
//Style (com.google.analytics.debug.Style)
package com.google.analytics.debug {
public const Style:_Style = new _Style();
}//package com.google.analytics.debug
Section 104
//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 105
//UISprite (com.google.analytics.debug.UISprite)
package com.google.analytics.debug {
import flash.events.*;
import flash.display.*;
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 106
//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 107
//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 108
//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 109
//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 110
//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 111
//JavascriptProxy (com.google.analytics.external.JavascriptProxy)
package com.google.analytics.external {
import com.google.analytics.debug.*;
import flash.external.*;
import flash.system.*;
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 112
//Environment (com.google.analytics.utils.Environment)
package com.google.analytics.utils {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
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 113
//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 114
//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 115
//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 116
//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 117
//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 118
//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 119
//Bridge (com.google.analytics.v4.Bridge)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
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 120
//Configuration (com.google.analytics.v4.Configuration)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
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 121
//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 122
//Tracker (com.google.analytics.v4.Tracker)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
import com.google.analytics.data.*;
import com.google.analytics.utils.*;
import com.google.analytics.external.*;
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 123
//AnalyticsTracker (com.google.analytics.AnalyticsTracker)
package com.google.analytics {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.events.*;
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 124
//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 125
//GATracker (com.google.analytics.GATracker)
package com.google.analytics {
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.events.*;
import flash.display.*;
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 126
//SpilGamesServices (com.spilgames.api.SpilGamesServices)
package com.spilgames.api {
import flash.net.*;
import flash.events.*;
import flash.display.*;
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 127
//effect_02_95 (Develish_Hairdresser_fla.effect_02_95)
package Develish_Hairdresser_fla {
import flash.display.*;
public dynamic class effect_02_95 extends MovieClip {
public function effect_02_95(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package Develish_Hairdresser_fla
Section 128
//label_188 (Develish_Hairdresser_fla.label_188)
package Develish_Hairdresser_fla {
import flash.display.*;
public dynamic class label_188 extends MovieClip {
public var flag:MovieClip;
}
}//package Develish_Hairdresser_fla
Section 129
//LanguageSelectPopup_187 (Develish_Hairdresser_fla.LanguageSelectPopup_187)
package Develish_Hairdresser_fla {
import flash.display.*;
public dynamic class LanguageSelectPopup_187 extends MovieClip {
public var l_se:MovieClip;
public var l_br:MovieClip;
public var l_in:MovieClip;
public var l_cn: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_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 Develish_Hairdresser_fla
Section 130
//UI_bar_20 (Develish_Hairdresser_fla.UI_bar_20)
package Develish_Hairdresser_fla {
import flash.display.*;
public dynamic class UI_bar_20 extends MovieClip {
public var soundBtn_off:Btn_sound;
public var helpBtn:Btn_005;
public var pashBtn:Btn_006;
public var logo_bar:branding_aligned_center;
public var soundBtn_on:Btn_004;
public var sendBtn:Btn_020;
public var homeBtn:Btn_home;
}
}//package Develish_Hairdresser_fla
Section 131
//UI_InGame_02_01_88 (Develish_Hairdresser_fla.UI_InGame_02_01_88)
package Develish_Hairdresser_fla {
import flash.display.*;
import flash.text.*;
public dynamic class UI_InGame_02_01_88 extends MovieClip {
public var timeText:TextField;
}
}//package Develish_Hairdresser_fla
Section 132
//UI_InGame_02_87 (Develish_Hairdresser_fla.UI_InGame_02_87)
package Develish_Hairdresser_fla {
import flash.display.*;
public dynamic class UI_InGame_02_87 extends MovieClip {
public var timeTextMC:MovieClip;
public function UI_InGame_02_87(){
addFrameScript(12, frame13);
}
function frame13(){
gotoAndPlay(1);
}
}
}//package Develish_Hairdresser_fla
Section 133
//UI_InGame_05_91 (Develish_Hairdresser_fla.UI_InGame_05_91)
package Develish_Hairdresser_fla {
import flash.display.*;
public dynamic class UI_InGame_05_91 extends MovieClip {
public var mc:UI_InGame_05_01;
public function UI_InGame_05_91(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package Develish_Hairdresser_fla
Section 134
//UI_LevelComplete_02_102 (Develish_Hairdresser_fla.UI_LevelComplete_02_102)
package Develish_Hairdresser_fla {
import flash.display.*;
public dynamic class UI_LevelComplete_02_102 extends MovieClip {
public function UI_LevelComplete_02_102(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Develish_Hairdresser_fla
Section 135
//UI_LevelComplete_04_104 (Develish_Hairdresser_fla.UI_LevelComplete_04_104)
package Develish_Hairdresser_fla {
import flash.display.*;
public dynamic class UI_LevelComplete_04_104 extends MovieClip {
public function UI_LevelComplete_04_104(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Develish_Hairdresser_fla
Section 136
//UI_levelmap_011_143 (Develish_Hairdresser_fla.UI_levelmap_011_143)
package Develish_Hairdresser_fla {
import flash.display.*;
public dynamic class UI_levelmap_011_143 extends MovieClip {
public function UI_levelmap_011_143(){
addFrameScript(49, frame50);
}
function frame50(){
gotoAndPlay(1);
}
}
}//package Develish_Hairdresser_fla
Section 137
//UI_levelmap_012_126 (Develish_Hairdresser_fla.UI_levelmap_012_126)
package Develish_Hairdresser_fla {
import flash.display.*;
public dynamic class UI_levelmap_012_126 extends MovieClip {
public function UI_levelmap_012_126(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Develish_Hairdresser_fla
Section 138
//None (fl.transitions.easing.None)
package fl.transitions.easing {
public class None {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package fl.transitions.easing
Section 139
//Fade (fl.transitions.Fade)
package fl.transitions {
import flash.display.*;
public class Fade extends Transition {
protected var _alphaFinal:Number;
public function Fade(_arg1:MovieClip, _arg2:Object, _arg3:TransitionManager){
super(_arg1, _arg2, _arg3);
this._alphaFinal = this.manager.contentAppearance.alpha;
}
override protected function _render(_arg1:Number):void{
this._content.alpha = (this._alphaFinal * _arg1);
}
override public function get type():Class{
return (Fade);
}
}
}//package fl.transitions
Section 140
//Transition (fl.transitions.Transition)
package fl.transitions {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class Transition extends EventDispatcher {
protected var _direction:uint;// = 0
protected var _progress:Number;
public var ID:int;
protected var _twn:Tween;
protected var _content:MovieClip;
protected var _height:Number;// = NAN
protected var _width:Number;// = NAN
protected var _outerBounds:Rectangle;
protected var _easing:Function;
protected var _innerBounds:Rectangle;
protected var _manager:TransitionManager;
protected var _duration:Number;// = 2
public static const IN:uint = 0;
public static const OUT:uint = 1;
public function Transition(_arg1:MovieClip, _arg2:Object, _arg3:TransitionManager){
_direction = 0;
_duration = 2;
_width = NaN;
_height = NaN;
super();
this.content = _arg1;
this.direction = _arg2.direction;
this.duration = _arg2.duration;
this.easing = _arg2.easing;
this.manager = _arg3;
this._innerBounds = this.manager._innerBounds;
this._outerBounds = this.manager._outerBounds;
this._width = this.manager._width;
this._height = this.manager._height;
this._resetTween();
}
public function stop():void{
this._twn.fforward();
this._twn.stop();
}
private function _resetTween():void{
if (this._twn){
this._twn.stop();
this._twn.removeEventListener(TweenEvent.MOTION_FINISH, this.onMotionFinished);
};
this._twn = new Tween(this, "", this.easing, 0, 1, this.duration, true);
this._twn.stop();
this._twn.prop = "progress";
this._twn.addEventListener(TweenEvent.MOTION_FINISH, this.onMotionFinished, false, 0, true);
}
public function onMotionFinished(_arg1:Object):void{
if (this.direction == Transition.OUT){
this.dispatchEvent(new Event("transitionOutDone"));
} else {
this.dispatchEvent(new Event("transitionInDone"));
};
}
public function get duration():Number{
return (this._duration);
}
public function set duration(_arg1:Number):void{
if (_arg1){
this._duration = _arg1;
if (this._twn){
this._twn.duration = _arg1;
};
};
}
public function get easing():Function{
return (this._easing);
}
public function get manager():TransitionManager{
return (this._manager);
}
public function get progress():Number{
return (this._progress);
}
protected function _render(_arg1:Number):void{
}
public function get type():Class{
return (Transition);
}
public function drawCircle(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number):void{
_arg1.graphics.moveTo((_arg2 + _arg4), _arg3);
_arg1.graphics.curveTo((_arg4 + _arg2), ((Math.tan((Math.PI / 8)) * _arg4) + _arg3), ((Math.sin((Math.PI / 4)) * _arg4) + _arg2), ((Math.sin((Math.PI / 4)) * _arg4) + _arg3));
_arg1.graphics.curveTo(((Math.tan((Math.PI / 8)) * _arg4) + _arg2), (_arg4 + _arg3), _arg2, (_arg4 + _arg3));
_arg1.graphics.curveTo(((-(Math.tan((Math.PI / 8))) * _arg4) + _arg2), (_arg4 + _arg3), ((-(Math.sin((Math.PI / 4))) * _arg4) + _arg2), ((Math.sin((Math.PI / 4)) * _arg4) + _arg3));
_arg1.graphics.curveTo((-(_arg4) + _arg2), ((Math.tan((Math.PI / 8)) * _arg4) + _arg3), (-(_arg4) + _arg2), _arg3);
_arg1.graphics.curveTo((-(_arg4) + _arg2), ((-(Math.tan((Math.PI / 8))) * _arg4) + _arg3), ((-(Math.sin((Math.PI / 4))) * _arg4) + _arg2), ((-(Math.sin((Math.PI / 4))) * _arg4) + _arg3));
_arg1.graphics.curveTo(((-(Math.tan((Math.PI / 8))) * _arg4) + _arg2), (-(_arg4) + _arg3), _arg2, (-(_arg4) + _arg3));
_arg1.graphics.curveTo(((Math.tan((Math.PI / 8)) * _arg4) + _arg2), (-(_arg4) + _arg3), ((Math.sin((Math.PI / 4)) * _arg4) + _arg2), ((-(Math.sin((Math.PI / 4))) * _arg4) + _arg3));
_arg1.graphics.curveTo((_arg4 + _arg2), ((-(Math.tan((Math.PI / 8))) * _arg4) + _arg3), (_arg4 + _arg2), _arg3);
}
public function cleanUp():void{
this.removeEventListener("transitionInDone", this._manager.transitionInDone);
this.removeEventListener("transitionOutDone", this._manager.transitionOutDone);
this.stop();
}
public function set easing(_arg1:Function):void{
this._easing = _arg1;
if (this._twn){
this._twn.func = _arg1;
};
}
public function set manager(_arg1:TransitionManager):void{
if (this._manager){
this.removeEventListener("transitionInDone", this._manager.transitionInDone);
this.removeEventListener("transitionOutDone", this._manager.transitionOutDone);
};
this._manager = _arg1;
this.addEventListener("transitionInDone", this._manager.transitionInDone);
this.addEventListener("transitionOutDone", this._manager.transitionOutDone);
}
public function set progress(_arg1:Number):void{
if (this._progress == _arg1){
return;
};
this._progress = _arg1;
if (this._direction){
this._render((1 - _arg1));
} else {
this._render(_arg1);
};
this.dispatchEvent(new Event("transitionProgress"));
}
public function start():void{
this.content.visible = true;
this._twn.start();
}
public function drawBox(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{
_arg1.graphics.moveTo(_arg2, _arg3);
_arg1.graphics.lineTo((_arg2 + _arg4), _arg3);
_arg1.graphics.lineTo((_arg2 + _arg4), (_arg3 + _arg5));
_arg1.graphics.lineTo(_arg2, (_arg3 + _arg5));
_arg1.graphics.lineTo(_arg2, _arg3);
}
public function set content(_arg1:MovieClip):void{
if (_arg1){
this._content = _arg1;
if (this._twn){
this._twn.obj = _arg1;
};
};
}
private function _noEase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public function get content():MovieClip{
return (this._content);
}
public function set direction(_arg1:Number):void{
this._direction = (_arg1) ? 1 : 0;
}
public function get direction():Number{
return (this._direction);
}
}
}//package fl.transitions
Section 141
//TransitionManager (fl.transitions.TransitionManager)
package fl.transitions {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class TransitionManager extends EventDispatcher {
public var _innerBounds:Rectangle;
private var _visualPropList:Object;
private var _triggerEvent:String;
public var className:String;// = "TransitionManager"
public var type:Object;
private var _contentAppearance:Object;
private var _content:MovieClip;
public var _width:Number;// = NAN
public var _height:Number;// = NAN
public var _outerBounds:Rectangle;
private var _transitions:Object;
private static var IDCount:int = 0;
public function TransitionManager(_arg1:MovieClip){
type = TransitionManager;
className = "TransitionManager";
_width = NaN;
_height = NaN;
_visualPropList = {x:null, y:null, scaleX:null, scaleY:null, alpha:null, rotation:null};
super();
this.content = _arg1;
this._transitions = {};
}
public function get content():MovieClip{
return (this._content);
}
public function removeAllTransitions():void{
var _local1:Transition;
for each (_local1 in this._transitions) {
_local1.cleanUp();
this.removeTransition(_local1);
};
}
function transitionInDone(_arg1:Object):void{
var _local2:Boolean;
this.removeTransition(_arg1.target);
if (this.numInTransitions == 0){
_local2 = this._content.visible;
if ((((this._triggerEvent == "hide")) || ((this._triggerEvent == "hideChild")))){
this._content.visible = false;
};
if (_local2){
this.dispatchEvent(new Event("allTransitionsInDone"));
};
};
}
public function get numOutTransitions():Number{
var _local1:Number;
var _local2:Object;
var _local3:Transition;
_local1 = 0;
_local2 = this._transitions;
for each (_local3 in _local2) {
if (_local3.direction){
_local1++;
};
};
return (_local1);
}
public function get contentAppearance():Object{
return (this._contentAppearance);
}
public function saveContentAppearance():void{
var _local1:MovieClip;
var _local2:Object;
var _local3:String;
_local1 = this._content;
if (!this._contentAppearance){
_local2 = (this._contentAppearance = {});
for (_local3 in this._visualPropList) {
_local2[_local3] = _local1[_local3];
};
_local2.colorTransform = _local1.transform.colorTransform;
};
this._innerBounds = _local1.getBounds(_local1);
this._outerBounds = _local1.getBounds(_local1.parent);
this._width = _local1.width;
this._height = _local1.height;
}
public function addTransition(_arg1:Transition):Transition{
_arg1.ID = ++TransitionManager.IDCount;
this._transitions[_arg1.ID] = _arg1;
return (_arg1);
}
public function startTransition(_arg1:Object):Transition{
var _local2:Class;
var _local3:Transition;
this.removeTransition(this.findTransition(_arg1));
_local2 = _arg1.type;
_local3 = new _local2(this._content, _arg1, this);
this.addTransition(_local3);
_local3.start();
return (_local3);
}
function transitionOutDone(_arg1:Object):void{
var _local2:Boolean;
this.removeTransition(_arg1.target);
if (this.numOutTransitions == 0){
this.restoreContentAppearance();
_local2 = this._content.visible;
if (((_local2) && ((((_triggerEvent == "hide")) || ((_triggerEvent == "hideChild")))))){
this._content.visible = false;
};
if (_local2){
this.dispatchEvent(new Event("allTransitionsOutDone"));
};
};
}
public function restoreContentAppearance():void{
var _local1:MovieClip;
var _local2:Object;
var _local3:String;
_local1 = this._content;
_local2 = this._contentAppearance;
for (_local3 in this._visualPropList) {
_local1[_local3] = _local2[_local3];
};
_local1.transform.colorTransform = _local2.colorTransform;
}
public function get numTransitions():Number{
var _local1:Number;
var _local2:Transition;
_local1 = 0;
for each (_local2 in this._transitions) {
_local1++;
};
return (_local1);
}
public function findTransition(_arg1:Object):Transition{
var _local2:Transition;
for each (_local2 in this._transitions) {
if (_local2.type == _arg1.type){
return (_local2);
};
};
return (null);
}
public function set content(_arg1:MovieClip):void{
this._content = _arg1;
this.saveContentAppearance();
}
public function get numInTransitions():Number{
var _local1:Number;
var _local2:Object;
var _local3:Transition;
_local1 = 0;
_local2 = this._transitions;
for each (_local3 in _local2) {
if (!_local3.direction){
_local1++;
};
};
return (_local1);
}
public function removeTransition(_arg1:Transition):Boolean{
if (((((!(_arg1)) || (!(this._transitions)))) || (!(this._transitions[_arg1.ID])))){
return (false);
};
_arg1.cleanUp();
return (delete this._transitions[_arg1.ID]);
}
public function get transitionsList():Object{
return (this._transitions);
}
public static function start(_arg1:MovieClip, _arg2:Object):Transition{
if (!_arg1.__transitionManager){
_arg1.__transitionManager = new TransitionManager(_arg1);
};
if (_arg2.direction == 1){
_arg1.__transitionManager._triggerEvent = "hide";
} else {
_arg1.__transitionManager._triggerEvent = "reveal";
};
return (_arg1.__transitionManager.startTransition(_arg2));
}
}
}//package fl.transitions
Section 142
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
public var begin:Number;// = NAN
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var change:Number;// = NAN
private var _finish:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
isPlaying = false;
obj = null;
prop = "";
func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
begin = NaN;
change = NaN;
useSeconds = false;
prevTime = NaN;
prevPos = NaN;
looping = false;
_duration = NaN;
_time = NaN;
_fps = NaN;
_position = NaN;
_startTime = NaN;
_intervalID = 0;
_finish = NaN;
_timer = null;
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean;
_local2 = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 143
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
time = NaN;
position = NaN;
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 144
//Alert (olduncle.Alert)
package olduncle {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import zlong.country.*;
public class Alert extends MovieClip {
public var _txt:MovieClip;
public var goon:Btn_NO;
public var agame:Btn_YES;
private var _afterFunction:Function;
public function Alert(_arg1:DisplayObjectContainer, _arg2:Function){
m15();
_arg1.addChild(this);
_afterFunction = _arg2;
addEventListener(MouseEvent.CLICK, uiMouseClick);
}
private function m15():void{
var _local1:int;
_local1 = CountryInfo.instance.language;
(getChildByName("_txt") as MovieClip).gotoAndStop(_local1);
((getChildByName("goon") as MovieClip).getChildByName("_txt") as MovieClip).gotoAndStop(_local1);
((getChildByName("agame") as MovieClip).getChildByName("_txt") as MovieClip).gotoAndStop(_local1);
}
private function uiMouseClick(_arg1:MouseEvent):void{
var _local2:String;
_local2 = _arg1.target.name;
switch (_local2){
case "goon":
removeSelf();
_afterFunction();
break;
case "agame":
navigateToURL(new URLRequest(("http://" + CountryInfo.instance.domain)), "_blank");
break;
default:
break;
};
}
private function removeSelf():void{
var _local1:int;
removeEventListener(MouseEvent.CLICK, uiMouseClick);
_local1 = 0;
while (_local1 < numChildren) {
if ((getChildAt(_local1) is BtnBase)){
(getChildAt(_local1) as BtnBase).removeAll();
};
_local1++;
};
parent.removeChild(this);
}
}
}//package olduncle
Section 145
//BtnBase (olduncle.BtnBase)
package olduncle {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class BtnBase extends MovieClip {
private var _isDown:Boolean;
public var _txt:MovieClip;
private var _btnName:String;
private var _isAddUp:Boolean;
public function BtnBase(){
_isDown = false;
_isAddUp = false;
init();
}
public function get btnName():String{
return (_btnName);
}
public function init():void{
stop();
_btnName = name;
mouseChildren = false;
addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
}
protected function mouseUpHandler(_arg1:MouseEvent):void{
gotoAndStop(1);
_isDown = false;
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
}
protected function mouseDownHandler(_arg1:MouseEvent):void{
gotoAndStop(2);
_isDown = true;
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 100, 100, 100, 0);
if (!_isAddUp){
stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
_isAddUp = true;
};
}
public function removeAll():void{
removeEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
removeEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
}
protected function mouseOutHandler(_arg1:MouseEvent):void{
gotoAndStop(1);
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
}
protected function mouseOverHandler(_arg1:MouseEvent):void{
gotoAndStop(2);
if (_isDown){
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 100, 100, 100, 0);
};
}
}
}//package olduncle
Section 146
//Submitter (Spill.Components.Submitter)
package Spill.Components {
import flash.display.*;
public dynamic class Submitter extends MovieClip {
}
}//package Spill.Components
Section 147
//com (www.spilgames.com)
package www.spilgames {
import code.tool.*;
public dynamic class com extends McButton {
}
}//package www.spilgames
Section 148
//Countries (zlong.country.Countries)
package zlong.country {
import zlong.country.*;
class Countries {
private var _countryGroup:Array;
private var _portal:String;
private var _portalGroup:Array;
private var _countries:Object;
private var _country:String;
function Countries(){
initPortalGroup();
}
private function initPortalGroup():void{
var _local1:int;
_portalGroup = new Array();
_local1 = 0;
while (_local1 < CountriesData.DATA.children().length()) {
_portalGroup.push(CountriesData.DATA.children()[_local1].name());
_local1++;
};
}
private function initCountries():void{
var _local1:CountryItem;
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:int;
_countries = new Object();
_countryGroup = new Array();
_local6 = 0;
while (_local6 < CountriesData.DATA[_portal]["country"].length()) {
_local2 = CountriesData.DATA[_portal]["country"][_local6].@name;
_local3 = CountriesData.DATA[_portal]["country"][_local6].@domain;
_local4 = CountriesData.DATA[_portal]["country"][_local6].@game;
_local5 = int(CountriesData.DATA[_portal]["country"][_local6].@language);
_local1 = new CountryItem();
_local1.name = _local2;
_local1.domain = _local3;
_local1.game = _local4;
_local1.language = _local5;
_countries[_local1.name] = _local1;
_countryGroup.push(_local2);
_local6++;
};
}
function get countryGroup():Array{
if (_countryGroup == null){
throw (new ArgumentError("Please set portal"));
};
return (_countryGroup);
}
function set country(_arg1:String):void{
if (((!((_countryGroup == null))) && (!(inArray(_arg1, _countryGroup))))){
_country = _countryGroup[0];
trace(("Error in the country value,set country with default value : " + _countryGroup[0]));
trace(("Please set country with value : " + _countryGroup.toString()));
} else {
_country = _arg1;
};
}
function set portal(_arg1:String):void{
if (!inArray(_arg1, _portalGroup)){
throw (new ArgumentError(("Please set portal with value : " + _portalGroup.toString())));
};
_portal = _arg1;
initCountries();
if (((!((_country == null))) && (!(inArray(_country, _countryGroup))))){
throw (new ArgumentError(("Please reset country with value : " + _countryGroup.toString())));
};
}
function get current():CountryItem{
if (_portal == null){
throw (new ArgumentError("Please set portal"));
};
if (_country == null){
throw (new ArgumentError("Please set country"));
};
return (_countries[_country]);
}
private function inArray(_arg1:String, _arg2:Array):Boolean{
var _local3:int;
_local3 = 0;
while (_local3 < _arg2.length) {
if (_arg1 == _arg2[_local3]){
return (true);
};
_local3++;
};
return (false);
}
}
}//package zlong.country
Section 149
//CountriesData (zlong.country.CountriesData)
package zlong.country {
class CountriesData {
static const DATA:XML = <data>
<family>
<!-- new -->
<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="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.giocaregratis.it" game="gioco" language="9"/--><!-- Italian 2009.08.10 -->
<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.minigry.pl" game="gra" language="11"/--><!-- Polish 2009.08.10 -->
<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.mygames.co.uk" game="game" language="2"/--><!-- English UK 2009.08.28-->
<country name="en_uk" domain="www.agame.co.uk" 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="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="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="in" domain="www.girlsgogames.in" 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="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>
</data>
;
}
}//package zlong.country
Section 150
//CountryInfo (zlong.country.CountryInfo)
package zlong.country {
import zlong.domain.*;
import zlong.data.*;
public class CountryInfo {
private var countries:Countries;
private static var _instance:CountryInfo;
public function CountryInfo(){
countries = new Countries();
}
public function get domain():String{
return (countries.current.domain);
}
public function get countryGroup():Array{
return (countries.countryGroup);
}
public function get thisGameLink():String{
var _local1:String;
if (countries.current.name != "cn"){
_local1 = ("http://" + domain);
_local1 = (_local1 + ((("/" + countries.current.game) + "/") + GameInfo.html));
_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 set country(_arg1:String):void{
countries.country = _arg1;
}
public function get moreGameLink():String{
var _local1:String;
_local1 = ("http://" + domain);
if (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 country():String{
return (countries.current.name);
}
public function set portal(_arg1:String):void{
countries.portal = _arg1;
}
public function get sendToFriendLink():String{
var _local1:String;
_local1 = thisGameLink;
if (countries.current.name != "cn"){
_local1 = (_local1 + "&utm_content=send_to_friend");
};
return (_local1);
}
public function get language():int{
return (countries.current.language);
}
public static function get instance():CountryInfo{
if (_instance == null){
_instance = new (CountryInfo);
};
return (_instance);
}
}
}//package zlong.country
Section 151
//CountryItem (zlong.country.CountryItem)
package zlong.country {
final class CountryItem {
var domain:String;
var game:String;
var language:int;
var name:String;
}
}//package zlong.country
Section 152
//CountryCookie (zlong.data.CountryCookie)
package zlong.data {
import flash.net.*;
public class CountryCookie {
private static const countryName:String = "savedLang";
private static const name:String = "spilgames_language_v100";
private static var so:SharedObject;
public function CountryCookie():void{
so = SharedObject.getLocal(name, "/");
}
public static function set country(_arg1:String):void{
so.data[countryName] = _arg1;
}
public static function get country():String{
return (so.data[countryName]);
}
}
}//package zlong.data
Section 153
//GameInfo (zlong.data.GameInfo)
package zlong.data {
public class GameInfo {
public static var width:int = 550;
public static var height:int = 400;
public static var html:String = "Game-Name.html";
public static var cnversion:Boolean = false;
public static var name:String = "game_name";
public static var portal:String = "family";
}
}//package zlong.data
Section 154
//Dispatcher (zlong.display.Dispatcher)
package zlong.display {
import flash.events.*;
class Dispatcher {
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 155
//Menu (zlong.display.Menu)
package zlong.display {
import flash.events.*;
import flash.display.*;
import zlong.country.*;
import flash.ui.*;
import zlong.navigate.*;
public class Menu {
private var displayObject:InteractiveObject;
private var item:ContextMenuItem;
private var menu:ContextMenu;
public function Menu(_arg1:InteractiveObject){
displayObject = _arg1;
init();
initEvent();
}
private function changeLang(_arg1:Event):void{
item.caption = CountryInfo.instance.domain;
}
private function initEvent():void{
item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, clickItemHandler);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, changeLang);
}
private function init():void{
var _local1:ContextMenuBuiltInItems;
menu = new ContextMenu();
menu.hideBuiltInItems();
_local1 = menu.builtInItems;
_local1.print = true;
_local1.zoom = true;
_local1.quality = true;
item = new ContextMenuItem(("MoreGame: " + CountryInfo.instance.domain));
menu.customItems.push(item);
displayObject.contextMenu = menu;
}
private function clickItemHandler(_arg1:ContextMenuEvent):void{
Handler.click_moregames("Contex_Menu");
}
}
}//package zlong.display
Section 156
//DomainData (zlong.domain.DomainData)
package zlong.domain {
final class DomainData {
static const allowedDomain:Array = ["www8.agame.com", "www.zlonggamestest.com", "gamedev.dev.spilgames.com", "localhost"];
}
}//package zlong.domain
Section 157
//DomainInfo (zlong.domain.DomainInfo)
package zlong.domain {
import flash.net.*;
public final class DomainInfo {
private var _domain:String;
private var _domainAb:String;
private var _allowed:Boolean;
private static var _instance:DomainInfo;
public function DomainInfo(){
_domain = new LocalConnection().domain;
initAllowed();
initAb();
}
public function get domainAb():String{
return (_domainAb);
}
public function get allowed():Boolean{
return (_allowed);
}
public function get domain():String{
return (_domain);
}
private function initAb():void{
var _local1:Array;
var _local2:int;
var _local3:int;
if (_domain != "localhost"){
_local1 = _domain.split(".");
_local2 = (_local1.length - 1);
_local3 = (_local1.length - 2);
_domainAb = ((_local1[_local3] + ".") + _local1[_local2]);
} else {
_domainAb = "offline_play";
};
}
private function initAllowed():void{
var _local1:int;
_local1 = 0;
while (_local1 < DomainData.allowedDomain.length) {
if (_domain == DomainData.allowedDomain[_local1]){
_allowed = true;
break;
};
_local1++;
};
}
public static function get instance():DomainInfo{
if (_instance == null){
_instance = new (DomainInfo);
};
return (_instance);
}
}
}//package zlong.domain
Section 158
//Handler (zlong.navigate.Handler)
package zlong.navigate {
import flash.net.*;
import flash.events.*;
import zlong.country.*;
import flash.external.*;
public class Handler {
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_gamecn(_arg1:Event=null):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.game.com.cn");
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");
}
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");
}
}
}//package zlong.navigate
Section 159
//GameSetting (zlong.GameSetting)
package zlong {
import flash.display.*;
import zlong.country.*;
import zlong.data.*;
import zlong.display.*;
public class GameSetting {
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;
init();
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 160
//AchievementMC (AchievementMC)
package {
import flash.display.*;
public dynamic class AchievementMC extends MovieClip {
public var SuperSlyDevil:MovieClip;
public var insturctionMC:MovieClip;
public var controlListMC_Achievement:MovieClip;
public var SuperDevil:MovieClip;
public var GoldDevil:MovieClip;
public var mainMenuBtn:Btnback;
public var SlyDevil:MovieClip;
public var SilverDevil:MovieClip;
}
}//package
Section 161
//achievements_music (achievements_music)
package {
import flash.media.*;
public dynamic class achievements_music extends Sound {
}
}//package
Section 162
//angel_1_music (angel_1_music)
package {
import flash.media.*;
public dynamic class angel_1_music extends Sound {
}
}//package
Section 163
//angel_2_music (angel_2_music)
package {
import flash.media.*;
public dynamic class angel_2_music extends Sound {
}
}//package
Section 164
//angleMC (angleMC)
package {
import flash.display.*;
public dynamic class angleMC extends MovieClip {
public var managerMC:MovieClip;
public var cutMC:MovieClip;
public var musicMC:MovieClip;
}
}//package
Section 165
//angre (angre)
package {
import flash.media.*;
public dynamic class angre extends Sound {
}
}//package
Section 166
//backGroundMC (backGroundMC)
package {
import flash.display.*;
public dynamic class backGroundMC extends MovieClip {
public var maskMC:MovieClip;
}
}//package
Section 167
//beCatch (beCatch)
package {
import flash.media.*;
public dynamic class beCatch extends Sound {
}
}//package
Section 168
//BeCatchMC (BeCatchMC)
package {
import flash.display.*;
public dynamic class BeCatchMC extends MovieClip {
public var controlListMC_BeCatch:MovieClip;
public var mainMenuBtn:Btn_008;
public var rePalyBtn:Btn_007;
public function BeCatchMC(){
addFrameScript(60, frame61);
}
function frame61(){
stop();
}
}
}//package
Section 169
//branding_aligned_center (branding_aligned_center)
package {
import code.tool.*;
public dynamic class branding_aligned_center extends Brand {
}
}//package
Section 170
//Btn_004 (Btn_004)
package {
import code.tool.*;
public dynamic class Btn_004 extends McButton {
public function Btn_004(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 171
//Btn_005 (Btn_005)
package {
import code.tool.*;
public dynamic class Btn_005 extends McButton {
}
}//package
Section 172
//Btn_006 (Btn_006)
package {
import code.tool.*;
public dynamic class Btn_006 extends McButton {
public function Btn_006(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 173
//Btn_007 (Btn_007)
package {
import code.tool.*;
public dynamic class Btn_007 extends McButton {
}
}//package
Section 174
//Btn_008 (Btn_008)
package {
import code.tool.*;
public dynamic class Btn_008 extends McButton {
}
}//package
Section 175
//Btn_009 (Btn_009)
package {
import code.tool.*;
public dynamic class Btn_009 extends McButton {
}
}//package
Section 176
//Btn_010 (Btn_010)
package {
import code.tool.*;
public dynamic class Btn_010 extends McButton {
}
}//package
Section 177
//Btn_011 (Btn_011)
package {
import code.tool.*;
public dynamic class Btn_011 extends McButton {
public function Btn_011(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 178
//Btn_012 (Btn_012)
package {
import code.tool.*;
public dynamic class Btn_012 extends McButton {
}
}//package
Section 179
//Btn_014 (Btn_014)
package {
import code.tool.*;
public dynamic class Btn_014 extends McButton {
}
}//package
Section 180
//Btn_015 (Btn_015)
package {
import code.tool.*;
public dynamic class Btn_015 extends McButton {
}
}//package
Section 181
//Btn_016 (Btn_016)
package {
import code.tool.*;
public dynamic class Btn_016 extends McButton {
}
}//package
Section 182
//Btn_017 (Btn_017)
package {
import code.tool.*;
public dynamic class Btn_017 extends McButton {
}
}//package
Section 183
//Btn_018 (Btn_018)
package {
import code.tool.*;
public dynamic class Btn_018 extends McButton {
}
}//package
Section 184
//Btn_019 (Btn_019)
package {
import code.tool.*;
public dynamic class Btn_019 extends McButton {
}
}//package
Section 185
//Btn_020 (Btn_020)
package {
import code.tool.*;
public dynamic class Btn_020 extends McButton {
}
}//package
Section 186
//Btn_021 (Btn_021)
package {
import code.tool.*;
public dynamic class Btn_021 extends McButton {
}
}//package
Section 187
//Btn_021_02 (Btn_021_02)
package {
import code.tool.*;
public dynamic class Btn_021_02 extends McButton {
}
}//package
Section 188
//Btn_022 (Btn_022)
package {
import code.tool.*;
public dynamic class Btn_022 extends McButton {
}
}//package
Section 189
//Btn_023 (Btn_023)
package {
import code.tool.*;
public dynamic class Btn_023 extends McButton {
}
}//package
Section 190
//Btn_024 (Btn_024)
package {
import code.tool.*;
public dynamic class Btn_024 extends McButton {
}
}//package
Section 191
//Btn_025 (Btn_025)
package {
import code.tool.*;
public dynamic class Btn_025 extends McButton {
}
}//package
Section 192
//Btn_home (Btn_home)
package {
import code.tool.*;
public dynamic class Btn_home extends McButton {
public function Btn_home(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 193
//Btn_NO (Btn_NO)
package {
import olduncle.*;
public dynamic class Btn_NO extends BtnBase {
}
}//package
Section 194
//Btn_sound (Btn_sound)
package {
import code.tool.*;
public dynamic class Btn_sound extends McButton {
}
}//package
Section 195
//Btn_YES (Btn_YES)
package {
import olduncle.*;
public dynamic class Btn_YES extends BtnBase {
}
}//package
Section 196
//Btnback (Btnback)
package {
import code.tool.*;
public dynamic class Btnback extends McButton {
}
}//package
Section 197
//BusinessWoman (BusinessWoman)
package {
import flash.display.*;
public dynamic class BusinessWoman extends MovieClip {
public var clound:MovieClip;
}
}//package
Section 198
//camera (camera)
package {
import flash.media.*;
public dynamic class camera extends Sound {
}
}//package
Section 199
//ChangePageMC (ChangePageMC)
package {
import flash.display.*;
public dynamic class ChangePageMC extends MovieClip {
}
}//package
Section 200
//chuckBook (chuckBook)
package {
import flash.media.*;
public dynamic class chuckBook extends Sound {
}
}//package
Section 201
//churnUp (churnUp)
package {
import flash.media.*;
public dynamic class churnUp extends Sound {
}
}//package
Section 202
//complete_music (complete_music)
package {
import flash.media.*;
public dynamic class complete_music extends Sound {
}
}//package
Section 203
//CountriesBox (CountriesBox)
package {
import code.tool.*;
public dynamic class CountriesBox extends CountriesBox {
}
}//package
Section 204
//CreditsMC (CreditsMC)
package {
import flash.display.*;
public dynamic class CreditsMC extends MovieClip {
public var levelMapBtn:Btn_022;
public var photoMC:MovieClip;
public var mc:MovieClip;
public var controlListMC_Credit:MovieClip;
public var photoMC2:MovieClip;
}
}//package
Section 205
//CuteSchoolKid (CuteSchoolKid)
package {
import flash.display.*;
public dynamic class CuteSchoolKid extends MovieClip {
public var clound:MovieClip;
}
}//package
Section 206
//cutHair (cutHair)
package {
import flash.media.*;
public dynamic class cutHair extends Sound {
}
}//package
Section 207
//damageup (damageup)
package {
import flash.media.*;
public dynamic class damageup extends Sound {
}
}//package
Section 208
//devil_1_music (devil_1_music)
package {
import flash.media.*;
public dynamic class devil_1_music extends Sound {
}
}//package
Section 209
//devil_2_music (devil_2_music)
package {
import flash.media.*;
public dynamic class devil_2_music extends Sound {
}
}//package
Section 210
//devilCutHair (devilCutHair)
package {
import flash.media.*;
public dynamic class devilCutHair extends Sound {
}
}//package
Section 211
//devilMC (devilMC)
package {
import flash.display.*;
public dynamic class devilMC extends MovieClip {
public var cutMC:MovieClip;
public function devilMC(){
addFrameScript(25, frame26, 126, frame127, 371, frame372, 476, frame477);
}
function frame26(){
gotoAndPlay("hair");
}
function frame477(){
stop();
}
function frame127(){
stop();
}
function frame372(){
gotoAndPlay("normal");
}
}
}//package
Section 212
//Document (Document)
package {
import flash.display.*;
import code.tool.*;
import code.data.*;
import code.*;
import zlong.*;
public class Document extends MovieClip {
public function Document(){
stop();
new GameSetting(this, false, "girl", "Develish_Hairdresser", "Develish-Hairdresser.html", 660, 480);
initDocument();
if (loaderInfo.parameters["OUDebug"] != undefined){
trace("loaderInfo.parameters=", loaderInfo.parameters["OUDebug"]);
Data.debug = true;
};
SpilSystem.instance.init(this);
}
private function initDocument():void{
Tracker.init(this);
new Game(this);
}
}
}//package
Section 213
//effect_btn_SendToFriend (effect_btn_SendToFriend)
package {
import flash.display.*;
public dynamic class effect_btn_SendToFriend extends MovieClip {
}
}//package
Section 214
//fadie0 (fadie0)
package {
import flash.media.*;
public dynamic class fadie0 extends Sound {
}
}//package
Section 215
//fadie1 (fadie1)
package {
import flash.media.*;
public dynamic class fadie1 extends Sound {
}
}//package
Section 216
//fadie2 (fadie2)
package {
import flash.media.*;
public dynamic class fadie2 extends Sound {
}
}//package
Section 217
//failed_music (failed_music)
package {
import flash.media.*;
public dynamic class failed_music extends Sound {
}
}//package
Section 218
//find (find)
package {
import flash.media.*;
public dynamic class find extends Sound {
}
}//package
Section 219
//flyCutHair (flyCutHair)
package {
import flash.media.*;
public dynamic class flyCutHair extends Sound {
}
}//package
Section 220
//FromFriendMC (FromFriendMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class FromFriendMC extends MovieClip {
public var friendText:TextField;
public var photo:MovieClip;
public var startGameBtn:Btn_009;
public var moreGameBtn_fromFriendMC:Btn_012;
public var mc:MovieClip;
public var outputText:TextField;
}
}//package
Section 221
//fullSate (fullSate)
package {
import flash.media.*;
public dynamic class fullSate extends Sound {
}
}//package
Section 222
//GothicBoy (GothicBoy)
package {
import flash.display.*;
public dynamic class GothicBoy extends MovieClip {
public var clound:MovieClip;
}
}//package
Section 223
//HowToPlayMC (HowToPlayMC)
package {
import flash.display.*;
public dynamic class HowToPlayMC extends MovieClip {
public var SkipBtn:Btn_018;
public var NextBtn:Btn_011;
public var BackBtn:Btn_011;
public function HowToPlayMC(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package
Section 224
//jumpwindow (jumpwindow)
package {
import flash.media.*;
public dynamic class jumpwindow extends Sound {
}
}//package
Section 225
//KeepInGameMC (KeepInGameMC)
package {
import flash.display.*;
public dynamic class KeepInGameMC extends MovieClip {
public var startGameBtn:Btn_017;
public var moreGameBtn_KeepInGame:Btn_012;
public var mainMenuBtn:Btn_016;
public var merchdiseBtn:Btn_024;
}
}//package
Section 226
//LevelCompleteMC (LevelCompleteMC)
package {
import flash.display.*;
public dynamic class LevelCompleteMC extends MovieClip {
public var photoMC:MovieClip;
public var controlListMC_LevelPass:MovieClip;
public var starMC:MovieClip;
}
}//package
Section 227
//LevelmapMC (LevelmapMC)
package {
import flash.display.*;
public dynamic class LevelmapMC extends MovieClip {
public var LevelBtn0:UI_levelmap_000;
public var LevelBtn4:UI_levelmap_000;
public var Level0:MovieClip;
public var Level4:MovieClip;
public var Level2:MovieClip;
public var Level8:MovieClip;
public var Level5:MovieClip;
public var Level6:MovieClip;
public var Level7:MovieClip;
public var Level9:MovieClip;
public var Level3:MovieClip;
public var controlListMC_levelMap:MovieClip;
public var mc:MovieClip;
public var Level1:MovieClip;
public var merchdiseBtn:Btn_025;
public var creditBtn:Btn_021;
public var achievementBtn:MovieClip;
public var LevelBtn1:UI_levelmap_000;
public var LevelBtn2:UI_levelmap_000;
public var LevelBtn3:UI_levelmap_000;
public var LevelBtn5:UI_levelmap_000;
public var LevelBtn6:UI_levelmap_000;
public var LevelBtn8:UI_levelmap_000;
public var LevelBtn9:UI_levelmap_000;
public var LevelBtn7:UI_levelmap_000;
}
}//package
Section 228
//loadinglogo (loadinglogo)
package {
import code.tool.*;
public dynamic class loadinglogo extends TitleMC {
}
}//package
Section 229
//LoadingMC (LoadingMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class LoadingMC extends MovieClip {
public var percentText:TextField;
public var logo_loadMc:branding_aligned_center;
public var loadingMc:MovieClip;
}
}//package
Section 230
//main_logo (main_logo)
package {
import code.tool.*;
public dynamic class main_logo extends TitleMC {
}
}//package
Section 231
//MainMC (MainMC)
package {
import flash.display.*;
public dynamic class MainMC extends MovieClip {
public var prossBar:MovieClip;
public var speed:MovieClip;
public var hitMC:MovieClip;
public var time:MovieClip;
public var controlListMC_Main:MovieClip;
public function MainMC(){
addFrameScript(18, frame19, 36, frame37, 55, frame56, 73, frame74, 92, frame93, 110, frame111);
}
function frame74(){
gotoAndPlay("LV2 super");
}
function frame19(){
gotoAndPlay("LV3");
}
function frame111(){
gotoAndPlay("LV1 super");
}
function frame37(){
gotoAndPlay("LV3 super");
}
function frame93(){
gotoAndPlay("LV1");
}
function frame56(){
gotoAndPlay("LV2");
}
}
}//package
Section 232
//mainscreen_music (mainscreen_music)
package {
import flash.media.*;
public dynamic class mainscreen_music extends Sound {
}
}//package
Section 233
//menu_back (menu_back)
package {
import flash.media.*;
public dynamic class menu_back extends Sound {
}
}//package
Section 234
//menu_press (menu_press)
package {
import flash.media.*;
public dynamic class menu_press extends Sound {
}
}//package
Section 235
//menu_touch (menu_touch)
package {
import flash.media.*;
public dynamic class menu_touch extends Sound {
}
}//package
Section 236
//MenuMC (MenuMC)
package {
import flash.display.*;
import www.spilgames.*;
public dynamic class MenuMC extends MovieClip {
public var musicBtn:MovieClip;
public var howToPlayBtn:Btn_010;
public var spillGameBtn:com;
public var moreGameBtn_menu:Btn_012;
public var merchdiseBtn:Btn_024;
public var soundBtn:MovieClip;
public var sartGameBtn:Btn_009;
public var qualityBtn:MovieClip;
}
}//package
Section 237
//Motherwithbaby (Motherwithbaby)
package {
import flash.display.*;
public dynamic class Motherwithbaby extends MovieClip {
public var clound:MovieClip;
}
}//package
Section 238
//NerdMan (NerdMan)
package {
import flash.display.*;
public dynamic class NerdMan extends MovieClip {
public var clound:MovieClip;
}
}//package
Section 239
//OldLady (OldLady)
package {
import flash.display.*;
public dynamic class OldLady extends MovieClip {
public var clound:MovieClip;
}
}//package
Section 240
//other_press (other_press)
package {
import flash.media.*;
public dynamic class other_press extends Sound {
}
}//package
Section 241
//other_touch (other_touch)
package {
import flash.media.*;
public dynamic class other_touch extends Sound {
}
}//package
Section 242
//pageback (pageback)
package {
import flash.media.*;
public dynamic class pageback extends Sound {
}
}//package
Section 243
//pagego (pagego)
package {
import flash.media.*;
public dynamic class pagego extends Sound {
}
}//package
Section 244
//person (person)
package {
import flash.media.*;
public dynamic class person extends Sound {
}
}//package
Section 245
//PhotoAlbum_photo02_01 (PhotoAlbum_photo02_01)
package {
import flash.display.*;
public dynamic class PhotoAlbum_photo02_01 extends MovieClip {
}
}//package
Section 246
//PhotoAlbum_photo02_02 (PhotoAlbum_photo02_02)
package {
import flash.display.*;
public dynamic class PhotoAlbum_photo02_02 extends MovieClip {
}
}//package
Section 247
//PhotoAlbum_photo02_03 (PhotoAlbum_photo02_03)
package {
import flash.display.*;
public dynamic class PhotoAlbum_photo02_03 extends MovieClip {
}
}//package
Section 248
//PhotoAlbum_photo02_04 (PhotoAlbum_photo02_04)
package {
import flash.display.*;
public dynamic class PhotoAlbum_photo02_04 extends MovieClip {
}
}//package
Section 249
//PhotoAlbum_photo02_05 (PhotoAlbum_photo02_05)
package {
import flash.display.*;
public dynamic class PhotoAlbum_photo02_05 extends MovieClip {
}
}//package
Section 250
//PhotoAlbum_photo02_06 (PhotoAlbum_photo02_06)
package {
import flash.display.*;
public dynamic class PhotoAlbum_photo02_06 extends MovieClip {
}
}//package
Section 251
//PhotoAlbum_photo02_07 (PhotoAlbum_photo02_07)
package {
import flash.display.*;
public dynamic class PhotoAlbum_photo02_07 extends MovieClip {
}
}//package
Section 252
//PhotoAlbum_photo02_08 (PhotoAlbum_photo02_08)
package {
import flash.display.*;
public dynamic class PhotoAlbum_photo02_08 extends MovieClip {
}
}//package
Section 253
//PhotoAlbum_photo02_09 (PhotoAlbum_photo02_09)
package {
import flash.display.*;
public dynamic class PhotoAlbum_photo02_09 extends MovieClip {
}
}//package
Section 254
//PhotoAlbum_photo02_10 (PhotoAlbum_photo02_10)
package {
import flash.display.*;
public dynamic class PhotoAlbum_photo02_10 extends MovieClip {
}
}//package
Section 255
//pickBook (pickBook)
package {
import flash.media.*;
public dynamic class pickBook extends Sound {
}
}//package
Section 256
//POPMC (POPMC)
package {
import flash.display.*;
public dynamic class POPMC extends MovieClip {
public var backBtn:Btn_015;
public var playBrn:Btn_014;
public var starMC:MovieClip;
public function POPMC(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package
Section 257
//sendtofriend_logo (sendtofriend_logo)
package {
import code.tool.*;
public dynamic class sendtofriend_logo extends TitleMC {
}
}//package
Section 258
//SendtofriendMC (SendtofriendMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class SendtofriendMC extends MovieClip {
public var backBtn:Btnback;
public var friendText:TextField;
public var inputText:TextField;
public var photo1:UI_levelmap_000;
public var photo3:UI_levelmap_000;
public var nextBtn:Btn_011;
public var photo2:UI_levelmap_000;
public var phoneMC:MovieClip;
public var mc:MovieClip;
public var webText:TextField;
public var builtLinkBtn:Btn_019;
public var preBtn:Btn_011;
}
}//package
Section 259
//SiteLockMC (SiteLockMC)
package {
import flash.display.*;
public dynamic class SiteLockMC extends MovieClip {
public var startGameBtn_AddUI:Btn_023;
}
}//package
Section 260
//smail (smail)
package {
import flash.media.*;
public dynamic class smail extends Sound {
}
}//package
Section 261
//SmokeMC (SmokeMC)
package {
import flash.display.*;
public dynamic class SmokeMC extends MovieClip {
}
}//package
Section 262
//SpilDomain (SpilDomain)
package {
import flash.net.*;
import flash.events.*;
public class SpilDomain {
private const URL:String = "http://www8.agame.com/games/sitelock/sites.xml";
private var request:URLRequest;
private var _status:int;// = -1
private var loader:URLLoader;
private var xml:XML;
private var checkURL:String;
public function SpilDomain(){
_status = -1;
super();
initialize();
}
private function addEvt(_arg1:EventDispatcher, _arg2:String, _arg3:Function):void{
_arg1.addEventListener(_arg2, _arg3);
}
private function del():void{
delEvt(loader, Event.COMPLETE, onComplete);
delEvt(loader, IOErrorEvent.IO_ERROR, onError);
}
private function initialize():void{
loader = new URLLoader();
request = new URLRequest(URL);
}
public function loadXML():void{
loader.load(request);
addEvt(loader, IOErrorEvent.IO_ERROR, onError);
addEvt(loader, Event.COMPLETE, onComplete);
}
private function onError(_arg1:IOErrorEvent):void{
_status = 0;
loader.close();
del();
}
private function checkDomain():int{
var _local1:*;
if (checkURL == null){
return (0);
};
for each (_local1 in xml.item) {
if (checkURL.indexOf(_local1) != -1){
return (1);
};
};
return (0);
}
private function delEvt(_arg1:EventDispatcher, _arg2:String, _arg3:Function):void{
_arg1.removeEventListener(_arg2, _arg3);
}
public function set urlCheck(_arg1:String):void{
checkURL = _arg1;
}
private function onComplete(_arg1:Event):void{
xml = XML(loader.data);
_status = checkDomain();
del();
trace("xml loaded");
}
public function get status():int{
return (_status);
}
}
}//package
Section 263
//SpilSystem (SpilSystem)
package {
import flash.events.*;
import flash.display.*;
import Spill.Components.*;
public class SpilSystem {
private var _sub:Submitter;
private static var _instance:SpilSystem;
public function SpilSystem(){
_sub = new Submitter();
super();
trace(("sub: " + _sub));
_sub.addEventListener(Event.COMPLETE, SubmiterComponentInitialized);
_sub.addEventListener(IOErrorEvent.IO_ERROR, FailedToLoadSubmitter);
_sub.addEventListener("LoadingFailed", FailedToLoadSubmitter);
}
public function init(_arg1:MovieClip):void{
_sub._O0000Ol01(_arg1, "Develish_Hairdresser", "Develish-Hairdresser.html", 0, "normal", "", 0, 0, 1, true);
}
public function destroy():void{
if (_sub){
_sub.removeEventListener(Event.COMPLETE, SubmiterComponentInitialized);
_sub.removeEventListener("LoadingFailed", FailedToLoadSubmitter);
_sub.removeEventListener(IOErrorEvent.IO_ERROR, FailedToLoadSubmitter);
_sub = null;
};
}
public function submitScore(_arg1):void{
if (((_sub) && (_sub._O0Olll0lO()))){
_sub._O01lOO10O(_arg1);
};
}
private function FailedToLoadSubmitter(_arg1:Event):void{
_sub.removeEventListener(Event.COMPLETE, SubmiterComponentInitialized);
_sub.removeEventListener("LoadingFailed", FailedToLoadSubmitter);
_sub.removeEventListener(IOErrorEvent.IO_ERROR, FailedToLoadSubmitter);
trace(_sub._O0Olll0lO());
_sub = null;
trace("Failed to load submitter");
}
private function SubmiterComponentInitialized(_arg1:Event):void{
_sub.removeEventListener(Event.COMPLETE, SubmiterComponentInitialized);
_sub.removeEventListener(IOErrorEvent.IO_ERROR, FailedToLoadSubmitter);
_sub.removeEventListener("LoadingFailed", FailedToLoadSubmitter);
trace(_sub._O0Olll0lO());
trace("ScoreLoadSubmitComplete");
}
public function submitAchievement(_arg1):void{
if (((_sub) && (_sub._O0Olll0lO()))){
_sub._O00OOl1Ol(_arg1);
};
}
public static function get instance():SpilSystem{
if (_instance == null){
_instance = new (SpilSystem);
};
return (_instance);
}
}
}//package
Section 264
//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;
public var m_achievXMLData:XML;
private var parentObj;
public var m_scoreServerTimeXMLData:XML;
private static var _failed:Boolean = false;
private static var _loading:Boolean = false;
private static var _initialised:Boolean = false;
private static var SpilComp:SpilGamesServices;
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);
};
_failed = true;
_loading = false;
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("<hyscore><time>123456789</time></hyscore>");
};
}
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 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 (!_initialised){
trace("Initialising for the first time");
_initialised = true;
if (_arg1){
SpilComp = SpilGamesServices.getInstance();
SpilComp.addEventListener("servicesReady", SpilConfiguratorReady);
SpilComp.addEventListener(IOErrorEvent.IO_ERROR, SpilConfiguratorFailedToLoad);
SpilComp.addEventListener("servicesFailed", SpilConfiguratorFailedToInitialise);
_loading = true;
SpilComp.connect(_arg1);
} else {
throw (new Error("'container' cannot be null"));
};
} else {
trace("Initialisation called multiple times");
if (!_loading){
trace("Ready with loading");
if (!_failed){
trace("Simulate Submitter complete");
onLoadDone();
parentObj.dispatchEvent(new Event(Event.COMPLETE));
} else {
trace("Simulate Submitter LoadingFailed");
parentObj.dispatchEvent(new Event("LoadingFailed"));
};
} else {
trace("Still loading");
};
};
}
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);
};
_loading = false;
onLoadDone();
parentObj.dispatchEvent(new Event(Event.COMPLETE));
}
private function doCommTest():String{
if (SpilComp){
return ("y");
};
return (("FAILED " + SpilComp));
}
private function submitScore(_arg1:int):void{
if (SpilComp){
SpilComp.send("Score", "submitScore", processScoreResults, {score:_arg1, userName:SpilComp.getUserName(), userHash:SpilComp.getUserHash()});
};
}
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());
_failed = true;
_loading = false;
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 265
//sweet (sweet)
package {
import flash.media.*;
public dynamic class sweet extends Sound {
}
}//package
Section 266
//Sweet16Girl (Sweet16Girl)
package {
import flash.display.*;
public dynamic class Sweet16Girl extends MovieClip {
public var clound:MovieClip;
}
}//package
Section 267
//talk0 (talk0)
package {
import flash.media.*;
public dynamic class talk0 extends Sound {
}
}//package
Section 268
//talk1 (talk1)
package {
import flash.media.*;
public dynamic class talk1 extends Sound {
}
}//package
Section 269
//TeenageGirl (TeenageGirl)
package {
import flash.display.*;
public dynamic class TeenageGirl extends MovieClip {
public var clound:MovieClip;
}
}//package
Section 270
//think0 (think0)
package {
import flash.media.*;
public dynamic class think0 extends Sound {
}
}//package
Section 271
//think1 (think1)
package {
import flash.media.*;
public dynamic class think1 extends Sound {
}
}//package
Section 272
//think2 (think2)
package {
import flash.media.*;
public dynamic class think2 extends Sound {
}
}//package
Section 273
//TimeOverMC (TimeOverMC)
package {
import flash.display.*;
public dynamic class TimeOverMC extends MovieClip {
public var controlListMC_TimerOver:MovieClip;
public var mainMenuBtn:Btn_008;
public var rePalyBtn:Btn_007;
public function TimeOverMC(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
}
}
}//package
Section 274
//Toddler (Toddler)
package {
import flash.display.*;
public dynamic class Toddler extends MovieClip {
public var clound:MovieClip;
}
}//package
Section 275
//ToughAfroGuy (ToughAfroGuy)
package {
import flash.display.*;
public dynamic class ToughAfroGuy extends MovieClip {
public var clound:MovieClip;
}
}//package
Section 276
//TransitionMC (TransitionMC)
package {
import flash.display.*;
public dynamic class TransitionMC extends MovieClip {
public var controlListMC_Transition:MovieClip;
}
}//package
Section 277
//tutorial_music (tutorial_music)
package {
import flash.media.*;
public dynamic class tutorial_music extends Sound {
}
}//package
Section 278
//TXT_Achievement_title (TXT_Achievement_title)
package {
import code.tool.*;
public dynamic class TXT_Achievement_title extends TranslateTxt {
}
}//package
Section 279
//TXT_After (TXT_After)
package {
import code.tool.*;
public dynamic class TXT_After extends TranslateTxt {
}
}//package
Section 280
//TXT_Angel_Prison_is_your_destiny_now (TXT_Angel_Prison_is_your_destiny_now)
package {
import code.tool.*;
public dynamic class TXT_Angel_Prison_is_your_destiny_now extends TranslateTxt {
}
}//package
Section 281
//TXT_Another_Devilish_Haircut (TXT_Another_Devilish_Haircut)
package {
import code.tool.*;
public dynamic class TXT_Another_Devilish_Haircut extends TranslateTxt {
}
}//package
Section 282
//TXT_Areyousureyouarearealdevil (TXT_Areyousureyouarearealdevil)
package {
import code.tool.*;
public dynamic class TXT_Areyousureyouarearealdevil extends TranslateTxt {
}
}//package
Section 283
//TXT_Art_Design (TXT_Art_Design)
package {
import code.tool.*;
public dynamic class TXT_Art_Design extends TranslateTxt {
}
}//package
Section 284
//TXT_Back (TXT_Back)
package {
import code.tool.*;
public dynamic class TXT_Back extends TranslateTxt {
}
}//package
Section 285
//TXT_breathxue (TXT_breathxue)
package {
import code.tool.*;
public dynamic class TXT_breathxue extends TranslateTxt {
}
}//package
Section 286
//TXT_Buy_Devilish_styling_stuff (TXT_Buy_Devilish_styling_stuff)
package {
import code.tool.*;
public dynamic class TXT_Buy_Devilish_styling_stuff extends TranslateTxt {
}
}//package
Section 287
//TXT_CLICK_TO_RESUME (TXT_CLICK_TO_RESUME)
package {
import code.tool.*;
public dynamic class TXT_CLICK_TO_RESUME extends TranslateTxt {
}
}//package
Section 288
//TXT_ClickOnAPhototoStartHairdressing (TXT_ClickOnAPhototoStartHairdressing)
package {
import code.tool.*;
public dynamic class TXT_ClickOnAPhototoStartHairdressing extends TranslateTxt {
}
}//package
Section 289
//TXT_Clicktoconiuse (TXT_Clicktoconiuse)
package {
import code.tool.*;
public dynamic class TXT_Clicktoconiuse extends TranslateTxt {
}
}//package
Section 290
//TXT_Copy (TXT_Copy)
package {
import code.tool.*;
public dynamic class TXT_Copy extends TranslateTxt {
}
}//package
Section 291
//TXT_copy_code (TXT_copy_code)
package {
import code.tool.*;
public dynamic class TXT_copy_code extends TranslateTxt {
}
}//package
Section 292
//TXT_credit (TXT_credit)
package {
import code.tool.*;
public dynamic class TXT_credit extends TranslateTxt {
}
}//package
Section 293
//TXT_Credits_title (TXT_Credits_title)
package {
import code.tool.*;
public dynamic class TXT_Credits_title extends TranslateTxt {
}
}//package
Section 294
//TXT_Game_Concept (TXT_Game_Concept)
package {
import code.tool.*;
public dynamic class TXT_Game_Concept extends TranslateTxt {
}
}//package
Section 295
//TXT_Game_Design (TXT_Game_Design)
package {
import code.tool.*;
public dynamic class TXT_Game_Design extends TranslateTxt {
}
}//package
Section 296
//TXT_Game_Testing (TXT_Game_Testing)
package {
import code.tool.*;
public dynamic class TXT_Game_Testing extends TranslateTxt {
}
}//package
Section 297
//TXT_Gold_Devil (TXT_Gold_Devil)
package {
import code.tool.*;
public dynamic class TXT_Gold_Devil extends TranslateTxt {
}
}//package
Section 298
//TXT_Gold_Devil_in (TXT_Gold_Devil_in)
package {
import code.tool.*;
public dynamic class TXT_Gold_Devil_in extends TranslateTxt {
}
}//package
Section 299
//TXT_How_to_play_title (TXT_How_to_play_title)
package {
import code.tool.*;
public dynamic class TXT_How_to_play_title extends TranslateTxt {
}
}//package
Section 300
//TXT_How_to_play01 (TXT_How_to_play01)
package {
import code.tool.*;
public dynamic class TXT_How_to_play01 extends TranslateTxt {
}
}//package
Section 301
//TXT_How_to_play02 (TXT_How_to_play02)
package {
import code.tool.*;
public dynamic class TXT_How_to_play02 extends TranslateTxt {
}
}//package
Section 302
//TXT_How_to_play03 (TXT_How_to_play03)
package {
import code.tool.*;
public dynamic class TXT_How_to_play03 extends TranslateTxt {
}
}//package
Section 303
//TXT_How_to_play04 (TXT_How_to_play04)
package {
import code.tool.*;
public dynamic class TXT_How_to_play04 extends TranslateTxt {
}
}//package
Section 304
//TXT_How_to_play05 (TXT_How_to_play05)
package {
import code.tool.*;
public dynamic class TXT_How_to_play05 extends TranslateTxt {
}
}//package
Section 305
//TXT_How_to_play06 (TXT_How_to_play06)
package {
import code.tool.*;
public dynamic class TXT_How_to_play06 extends TranslateTxt {
}
}//package
Section 306
//TXT_Howtoplay (TXT_Howtoplay)
package {
import code.tool.*;
public dynamic class TXT_Howtoplay extends TranslateTxt {
}
}//package
Section 307
//TXT_jiaminyan (TXT_jiaminyan)
package {
import code.tool.*;
public dynamic class TXT_jiaminyan extends TranslateTxt {
}
}//package
Section 308
//TXT_jizhengyu (TXT_jizhengyu)
package {
import code.tool.*;
public dynamic class TXT_jizhengyu extends TranslateTxt {
}
}//package
Section 309
//TXT_KeepOn (TXT_KeepOn)
package {
import code.tool.*;
public dynamic class TXT_KeepOn extends TranslateTxt {
}
}//package
Section 310
//TXT_Levelmap (TXT_Levelmap)
package {
import code.tool.*;
public dynamic class TXT_Levelmap extends TranslateTxt {
}
}//package
Section 311
//TXT_liuxiao (TXT_liuxiao)
package {
import code.tool.*;
public dynamic class TXT_liuxiao extends TranslateTxt {
}
}//package
Section 312
//TXT_Love_this_game (TXT_Love_this_game)
package {
import code.tool.*;
public dynamic class TXT_Love_this_game extends TranslateTxt {
}
}//package
Section 313
//TXT_Mainmenu (TXT_Mainmenu)
package {
import code.tool.*;
public dynamic class TXT_Mainmenu extends TranslateTxt {
}
}//package
Section 314
//TXT_maliyong (TXT_maliyong)
package {
import code.tool.*;
public dynamic class TXT_maliyong extends TranslateTxt {
}
}//package
Section 315
//TXT_Merchandise (TXT_Merchandise)
package {
import code.tool.*;
public dynamic class TXT_Merchandise extends TranslateTxt {
}
}//package
Section 316
//TXT_Merchandise2 (TXT_Merchandise2)
package {
import code.tool.*;
public dynamic class TXT_Merchandise2 extends TranslateTxt {
}
}//package
Section 317
//TXT_MoreFreeOnlineGamesA (TXT_MoreFreeOnlineGamesA)
package {
import code.tool.*;
public dynamic class TXT_MoreFreeOnlineGamesA extends TranslateTxt {
}
}//package
Section 318
//TXT_MoreGame (TXT_MoreGame)
package {
import code.tool.*;
public dynamic class TXT_MoreGame extends TranslateTxt {
}
}//package
Section 319
//TXT_Music_&_Sound_Effect (TXT_Music_&_Sound_Effect)
package {
import code.tool.*;
public dynamic class TXT_Music_&_Sound_Effect extends TranslateTxt {
}
}//package
Section 320
//TXT_My_Devilish_Haircut (TXT_My_Devilish_Haircut)
package {
import code.tool.*;
public dynamic class TXT_My_Devilish_Haircut extends TranslateTxt {
}
}//package
Section 321
//TXT_OK (TXT_OK)
package {
import code.tool.*;
public dynamic class TXT_OK extends TranslateTxt {
}
}//package
Section 322
//TXT_PAUSE (TXT_PAUSE)
package {
import code.tool.*;
public dynamic class TXT_PAUSE extends TranslateTxt {
}
}//package
Section 323
//TXT_PhotoAlbum (TXT_PhotoAlbum)
package {
import code.tool.*;
public dynamic class TXT_PhotoAlbum extends TranslateTxt {
}
}//package
Section 324
//TXT_Pick_a_picture (TXT_Pick_a_picture)
package {
import code.tool.*;
public dynamic class TXT_Pick_a_picture extends TranslateTxt {
}
}//package
Section 325
//TXT_Play (TXT_Play)
package {
import code.tool.*;
public dynamic class TXT_Play extends TranslateTxt {
}
}//package
Section 326
//TXT_Play_This_Game_On (TXT_Play_This_Game_On)
package {
import code.tool.*;
public dynamic class TXT_Play_This_Game_On extends TranslateTxt {
}
}//package
Section 327
//TXT_PlayMoreNaughtyGamesAt (TXT_PlayMoreNaughtyGamesAt)
package {
import code.tool.*;
public dynamic class TXT_PlayMoreNaughtyGamesAt extends TranslateTxt {
}
}//package
Section 328
//TXT_POP (TXT_POP)
package {
import code.tool.*;
public dynamic class TXT_POP extends TranslateTxt {
}
}//package
Section 329
//TXT_Producer (TXT_Producer)
package {
import code.tool.*;
public dynamic class TXT_Producer extends TranslateTxt {
}
}//package
Section 330
//TXT_Programming (TXT_Programming)
package {
import code.tool.*;
public dynamic class TXT_Programming extends TranslateTxt {
}
}//package
Section 331
//TXT_Project_Management (TXT_Project_Management)
package {
import code.tool.*;
public dynamic class TXT_Project_Management extends TranslateTxt {
}
}//package
Section 332
//TXT_rico (TXT_rico)
package {
import code.tool.*;
public dynamic class TXT_rico extends TranslateTxt {
}
}//package
Section 333
//TXT_Sendtofriend (TXT_Sendtofriend)
package {
import code.tool.*;
public dynamic class TXT_Sendtofriend extends TranslateTxt {
}
}//package
Section 334
//TXT_Shop_for_merchandise (TXT_Shop_for_merchandise)
package {
import code.tool.*;
public dynamic class TXT_Shop_for_merchandise extends TranslateTxt {
}
}//package
Section 335
//TXT_Silver_Devil (TXT_Silver_Devil)
package {
import code.tool.*;
public dynamic class TXT_Silver_Devil extends TranslateTxt {
}
}//package
Section 336
//TXT_Silver_Devil_in (TXT_Silver_Devil_in)
package {
import code.tool.*;
public dynamic class TXT_Silver_Devil_in extends TranslateTxt {
}
}//package
Section 337
//TXT_Sly_Devil (TXT_Sly_Devil)
package {
import code.tool.*;
public dynamic class TXT_Sly_Devil extends TranslateTxt {
}
}//package
Section 338
//TXT_Sly_Devil_in (TXT_Sly_Devil_in)
package {
import code.tool.*;
public dynamic class TXT_Sly_Devil_in extends TranslateTxt {
}
}//package
Section 339
//TXT_star (TXT_star)
package {
import code.tool.*;
public dynamic class TXT_star extends TranslateTxt {
}
}//package
Section 340
//TXT_Start_Game (TXT_Start_Game)
package {
import code.tool.*;
public dynamic class TXT_Start_Game extends TranslateTxt {
}
}//package
Section 341
//TXT_sunxin (TXT_sunxin)
package {
import code.tool.*;
public dynamic class TXT_sunxin extends TranslateTxt {
}
}//package
Section 342
//TXT_Super_Devil (TXT_Super_Devil)
package {
import code.tool.*;
public dynamic class TXT_Super_Devil extends TranslateTxt {
}
}//package
Section 343
//TXT_Super_Devil_in (TXT_Super_Devil_in)
package {
import code.tool.*;
public dynamic class TXT_Super_Devil_in extends TranslateTxt {
}
}//package
Section 344
//TXT_Super_Sly_Devil (TXT_Super_Sly_Devil)
package {
import code.tool.*;
public dynamic class TXT_Super_Sly_Devil extends TranslateTxt {
}
}//package
Section 345
//TXT_Super_Sly_Devil_in (TXT_Super_Sly_Devil_in)
package {
import code.tool.*;
public dynamic class TXT_Super_Sly_Devil_in extends TranslateTxt {
}
}//package
Section 346
//TXT_Timesup (TXT_Timesup)
package {
import code.tool.*;
public dynamic class TXT_Timesup extends TranslateTxt {
}
}//package
Section 347
//TXT_tryagain (TXT_tryagain)
package {
import code.tool.*;
public dynamic class TXT_tryagain extends TranslateTxt {
}
}//package
Section 348
//TXT_Well_Done (TXT_Well_Done)
package {
import code.tool.*;
public dynamic class TXT_Well_Done extends TranslateTxt {
}
}//package
Section 349
//TXT_You_got_a_bronze_Star (TXT_You_got_a_bronze_Star)
package {
import code.tool.*;
public dynamic class TXT_You_got_a_bronze_Star extends TranslateTxt {
}
}//package
Section 350
//TXT_You_got_a_Gold_Star (TXT_You_got_a_Gold_Star)
package {
import code.tool.*;
public dynamic class TXT_You_got_a_Gold_Star extends TranslateTxt {
}
}//package
Section 351
//TXT_You_got_a_silver_Star (TXT_You_got_a_silver_Star)
package {
import code.tool.*;
public dynamic class TXT_You_got_a_silver_Star extends TranslateTxt {
}
}//package
Section 352
//TXT_You_got_caught (TXT_You_got_caught)
package {
import code.tool.*;
public dynamic class TXT_You_got_caught extends TranslateTxt {
}
}//package
Section 353
//UI_InGame_05_01 (UI_InGame_05_01)
package {
import code.tool.*;
public dynamic class UI_InGame_05_01 extends TranslateTxt {
}
}//package
Section 354
//UI_levelmap_000 (UI_levelmap_000)
package {
import code.tool.*;
public dynamic class UI_levelmap_000 extends McButton {
}
}//package
Section 355
//UIPAUSEMC (UIPAUSEMC)
package {
import flash.display.*;
public dynamic class UIPAUSEMC extends MovieClip {
}
}//package
Section 356
//whistle0 (whistle0)
package {
import flash.media.*;
public dynamic class whistle0 extends Sound {
}
}//package
Section 357
//whistle1 (whistle1)
package {
import flash.media.*;
public dynamic class whistle1 extends Sound {
}
}//package
Section 358
//whistle2 (whistle2)
package {
import flash.media.*;
public dynamic class whistle2 extends Sound {
}
}//package
Section 359
//window_press (window_press)
package {
import flash.media.*;
public dynamic class window_press extends Sound {
}
}//package
Section 360
//window_touch (window_touch)
package {
import flash.media.*;
public dynamic class window_touch extends Sound {
}
}//package
Section 361
//winSound (winSound)
package {
import flash.media.*;
public dynamic class winSound extends Sound {
}
}//package