Section 1
//wav (bubble_press.wav)
package bubble_press {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package bubble_press
Section 2
//wav (bubble_touch.wav)
package bubble_touch {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package bubble_touch
Section 3
//wav (close_curtain.wav)
package close_curtain {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package close_curtain
Section 4
//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 toURLString():String{
var _local1:Variables = toVariables();
return (_local1.toString());
}
public function isNew():Boolean{
return (_new);
}
public function get utmcn():String{
return ("1");
}
public function isEmpty():Boolean{
return (_empty);
}
public function toVariables():Variables{
var _local1:Variables = new Variables();
_local1.URIencode = true;
if (((!(isEmpty())) && (isNew()))){
_local1.utmcn = utmcn;
};
if (((!(isEmpty())) && (!(isNew())))){
_local1.utmcr = utmcr;
};
return (_local1);
}
public function get utmcr():String{
return ("1");
}
}
}//package com.google.analytics.campaign
Section 5
//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 6
//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 getCampaignInformation(_arg1:String, _arg2:Boolean):CampaignInfo{
var _local4:CampaignTracker;
var _local8:CampaignTracker;
var _local9:int;
var _local3:CampaignInfo = new CampaignInfo();
var _local5:Boolean;
var _local6:Boolean;
var _local7:int;
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 hasNoOverride(_arg1:String):Boolean{
var _local2:CampaignKey = _config.campaignKey;
if (_arg1 == ""){
return (false);
};
var _local3:Variables = new Variables(_arg1);
var _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 getTrackerFromSearchString(_arg1:String):CampaignTracker{
var _local2:CampaignTracker = getOrganicCampaign();
var _local3:CampaignTracker = new CampaignTracker();
var _local4:CampaignKey = _config.campaignKey;
if (_arg1 == ""){
return (_local3);
};
var _local5:Variables = 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 _local4:Array;
var _local5:OrganicReferrer;
var _local6:String;
if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){
return (_local1);
};
var _local2:URL = new URL(_referrer);
var _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 getDirectCampaign():CampaignTracker{
var _local1:CampaignTracker = 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 isIgnoredReferral(_arg1:CampaignTracker):Boolean{
if (((_arg1) && ((_arg1.medium == "referral")))){
return (_config.organic.isIgnoredReferral(_arg1.source));
};
return (false);
}
public function isValid(_arg1:CampaignTracker):Boolean{
if (((_arg1) && (_arg1.isValid()))){
return (true);
};
return (false);
}
public function getReferrerCampaign():CampaignTracker{
var _local1:CampaignTracker;
if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){
return (_local1);
};
var _local2:URL = new URL(_referrer);
var _local3:String = _local2.hostName;
var _local4:String = _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 = 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 7
//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 8
//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 = toVariables();
return (_local1.toString());
}
public function get utmsr():String{
return (((_info.screenWidth + "x") + _info.screenHeight));
}
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 get utmcs():String{
return (_info.languageEncoding);
}
public function toVariables():Variables{
var _local1:Variables = 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 9
//Buffer (com.google.analytics.core.Buffer)
package com.google.analytics.core {
import flash.events.*;
import flash.net.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
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 10
//DocumentInfo (com.google.analytics.core.DocumentInfo)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.external.*;
import com.google.analytics.utils.*;
public class DocumentInfo {
private var _pageURL:String;
private var _utmr:String;
private var _config:Configuration;
private var _adSense:AdSenseGlobals;
private var _info:Environment;
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 = toVariables();
return (_local1.toString());
}
private function _renderPageURL(_arg1:String=""):String{
var _local2:String = _info.locationPath;
var _local3:String = _info.locationSearch;
if (((!(_arg1)) || ((_arg1 == "")))){
_arg1 = (_local2 + unescape(_local3));
};
return (_arg1);
}
public function get utmp():String{
return (_renderPageURL(_pageURL));
}
public function get utmhid():String{
return (String(_generateHitId()));
}
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 toVariables():Variables{
var _local1:Variables = 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 11
//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 12
//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 13
//EventInfo (com.google.analytics.core.EventInfo)
package com.google.analytics.core {
import com.google.analytics.utils.*;
import com.google.analytics.data.*;
public class EventInfo {
private var _ext10:X10;
private var _isEventHit:Boolean;
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 = 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 = new Variables();
_local1.URIencode = true;
if (_isEventHit){
_local1.utmt = utmt;
};
_local1.utme = utme;
return (_local1);
}
}
}//package com.google.analytics.core
Section 14
//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 15
//ga_internal (com.google.analytics.core.ga_internal)
package com.google.analytics.core {
public namespace ga_internal;
}//package com.google.analytics.core
Section 16
//GIFRequest (com.google.analytics.core.GIFRequest)
package com.google.analytics.core {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
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 17
//IdleTimer (com.google.analytics.core.IdleTimer)
package com.google.analytics.core {
import flash.display.*;
import flash.events.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.utils.*;
public class IdleTimer {
private var _stage:Stage;
private var _loop:Timer;
private var _lastMove:int;
private var _inactivity:Number;
private var _debug:DebugConfiguration;
private var _session:Timer;
private var _buffer:Buffer;
public function IdleTimer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:DisplayObject, _arg4:Buffer){
var _local5:Number = _arg1.idleLoop;
var _local6:Number = _arg1.idleTimeout;
var _local7:Number = _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 = getTimer();
if ((_local2 - _lastMove) >= _inactivity){
if (!_session.running){
_debug.info("session timer start", VisualDebugMode.geek);
_session.start();
};
};
}
}
}//package com.google.analytics.core
Section 18
//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 isIgnoredKeyword(_arg1:String):Boolean{
if (_ignoredKeywordsCache.hasOwnProperty(_arg1)){
return (true);
};
return (false);
}
public function getKeywordValue(_arg1:OrganicReferrer, _arg2:String):String{
var _local3:String = _arg1.keyword;
return (getKeywordValueFromPath(_local3, _arg2));
}
public function isIgnoredReferral(_arg1:String):Boolean{
if (_ignoredReferralsCache.hasOwnProperty(_arg1)){
return (true);
};
return (false);
}
public function clear():void{
clearEngines();
clearIgnoredReferrals();
clearIgnoredKeywords();
}
public function get count():int{
return (_sources.length);
}
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 clearIgnoredKeywords():void{
_ignoredKeywords = [];
_ignoredKeywordsCache = {};
}
public function addSource(_arg1:String, _arg2:String):void{
var _local3:OrganicReferrer = 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 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 19
//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 get keyword():String{
return (_keyword);
}
public function get engine():String{
return (_engine);
}
public function set engine(_arg1:String):void{
_engine = _arg1.toLowerCase();
}
public function toString():String{
return (((engine + "?") + keyword));
}
public function set keyword(_arg1:String):void{
_keyword = _arg1.toLowerCase();
}
}
}//package com.google.analytics.core
Section 20
//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 end:int;
public var request:URLRequest;
public function RequestObject(_arg1:URLRequest){
start = getTimer();
this.request = _arg1;
}
public function hasCompleted():Boolean{
return ((end > 0));
}
public function toString():String{
var _local1:Array = [];
_local1.push((("duration: " + duration) + "ms"));
_local1.push(("url: " + request.url));
return ((("{ " + _local1.join(", ")) + " }"));
}
public function complete():void{
end = getTimer();
}
public function get duration():int{
if (!hasCompleted()){
return (0);
};
return ((end - start));
}
}
}//package com.google.analytics.core
Section 21
//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 22
//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 23
//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 24
//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 _local5:int;
var _local6:int;
var _local7:int;
if (_arg1 == ""){
return ("");
};
var _local3:Array = [" ", "\n", "\r", "\t"];
var _local4:String = _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 _local4:int;
var _local5:int;
var _local2 = 1;
var _local3:int;
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 = /^UA-[0-9]*-[0-9]*$/;
return (_local2.test(_arg1));
}
}
}//package com.google.analytics.core
Section 25
//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 26
//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 27
//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 28
//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 get domainHash():Number{
return (_domainHash);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
}
}//package com.google.analytics.data
Section 29
//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;
protected var fields:Array;
private var _timespan:Number;
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 _local2:String;
var _local1:int;
var _local3:int;
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);
}
public function resetTimestamp(_arg1:Number=NaN):void{
if (!isNaN(_arg1)){
_timespan = _arg1;
};
_creation = null;
_expiration = null;
_timestamp(_timespan);
}
protected function update():void{
resetTimestamp();
if (proxy){
proxy.update(name, toSharedObject());
};
}
public function reset():void{
var _local1:String;
var _local2:int;
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 fromSharedObject(_arg1:Object):void{
var _local2:String;
var _local3:int = fields.length;
var _local4:int;
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 = new Date();
var _local2:Number = (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 valueOf():String{
var _local2:String;
var _local3:*;
var _local1:Array = [];
var _local4:int;
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 toURLString():String{
return (((inURL + "=") + valueOf()));
}
public function get expiration():Date{
if (_expiration){
return (_expiration);
};
return (new Date((new Date().valueOf() + 1000)));
}
public function toSharedObject():Object{
var _local2:String;
var _local3:*;
var _local1:Object = {};
var _local4:int;
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 _local3:String;
var _local4:*;
var _local2:Array = [];
var _local5:int = fields.length;
var _local6:int;
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));
};
};
};
};
var _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 30
//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 31
//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 32
//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 33
//X10 (com.google.analytics.data.X10)
package com.google.analytics.data {
public class X10 {
private var _delimEnd:String;// = ")"
private var _minimum:int;
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 _hasData:int;
private var _escapeCharMap:Object;
private var _projectData:Object;
private var _value:String;// = "v"
public function X10(){
_set = [_key, _value];
super();
_projectData = {};
_escapeCharMap = {};
_escapeCharMap[_escapeChar] = "'0";
_escapeCharMap[_delimEnd] = "'1";
_escapeCharMap[_delimSet] = "'2";
_escapeCharMap[_delimNumValue] = "'3";
_minimum = 1;
}
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);
}
private function _renderProject(_arg1:Object):String{
var _local4:int;
var _local5:Array;
var _local2 = "";
var _local3:Boolean;
var _local6:int = _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);
}
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 _local3:String;
var _local4:int;
var _local2:Array = [];
_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 hasData():Boolean{
return ((_hasData > 0));
}
public function renderMergedUrlString(_arg1:X10=null):String{
var _local3:String;
if (!_arg1){
return (renderUrlString());
};
var _local2:Array = [_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 _local2:String;
var _local1:Array = [];
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 clearValue(_arg1:Number):void{
_clearInternal(_arg1, _value);
}
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 getValue(_arg1:Number, _arg2:Number){
var _local3:* = _getInternal(_arg1, _value, _arg2);
if (_local3 == null){
return (null);
};
return (Number(_local3));
}
private function _escapeExtensibleValue(_arg1:String):String{
var _local3:int;
var _local4:String;
var _local5:String;
var _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 34
//_Style (com.google.analytics.debug._Style)
package com.google.analytics.debug {
import flash.net.*;
import flash.text.*;
public class _Style {
public var failureColor:uint;
public var borderColor:uint;
public var backgroundColor:uint;
private var _sheet:StyleSheet;
public var roundedCorner:uint;
public var warningColor:uint;
public var infoColor:uint;
public var alertColor:uint;
public var successColor:uint;
private var _loader:URLLoader;
private var _defaultSheet:String;
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 35
//Alert (com.google.analytics.debug.Alert)
package com.google.analytics.debug {
import flash.events.*;
public class Alert extends Label {
public var autoClose:Boolean;// = true
public var actionOnNextLine: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){
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 = [];
var _local8:int;
while (_local8 < _arg2.length) {
_arg2[_local8].container = this;
_actions.push(_arg2[_local8]);
_local8++;
};
}
private function _defineActions():void{
var _local3:AlertAction;
var _local1 = "";
if (actionOnNextLine){
_local1 = (_local1 + "\n");
} else {
_local1 = (_local1 + " |");
};
_local1 = (_local1 + " ");
var _local2:Array = [];
var _local4:int;
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");
}
protected function isValidAction(_arg1:String):Boolean{
var _local2:int;
while (_local2 < _actions.length) {
if (_arg1 == _actions[_local2].activator){
return (true);
};
_local2++;
};
return (false);
}
override protected function layout():void{
super.layout();
_defineActions();
}
protected function getAction(_arg1:String):AlertAction{
var _local2:int;
while (_local2 < _actions.length) {
if (_arg1 == _actions[_local2].activator){
return (_actions[_local2]);
};
_local2++;
};
return (null);
}
protected function spaces(_arg1:int):String{
var _local2 = "";
var _local3 = " ";
var _local4:int;
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();
};
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 36
//AlertAction (com.google.analytics.debug.AlertAction)
package com.google.analytics.debug {
public class AlertAction {
public var container:Alert;
private var _callback;
public var activator:String;
public var name: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 37
//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 38
//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 = 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 39
//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 40
//DebugConfiguration (com.google.analytics.debug.DebugConfiguration)
package com.google.analytics.debug {
import flash.net.*;
import com.google.analytics.core.*;
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 41
//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 = Align.bottomLeft;
var _local5:Boolean;
var _local6:Boolean;
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 42
//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 43
//ILayout (com.google.analytics.debug.ILayout)
package com.google.analytics.debug {
import flash.display.*;
import flash.net.*;
import com.google.analytics.core.*;
public interface ILayout {
function createAlert(_arg1:String):void;
function addToStage(_arg1:DisplayObject):void;
function createGIFRequestAlert(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void;
function createWarning(_arg1:String):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 destroy():void;
function bringToFront(_arg1:DisplayObject):void;
function isAvailable():Boolean;
}
}//package com.google.analytics.debug
Section 44
//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 close():void{
if (parent != null){
parent.removeChild(this);
};
}
override public function onLink(_arg1:TextEvent):void{
switch (_arg1.text){
case "hide":
close();
break;
};
}
public function onComplete(_arg1:TimerEvent):void{
close();
}
}
}//package com.google.analytics.debug
Section 45
//Label (com.google.analytics.debug.Label)
package com.google.analytics.debug {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class Label extends UISprite {
private var _color:uint;
private var _background:Shape;
private var _textField:TextField;
public var stickToEdge:Boolean;
private var _text:String;
protected var selectable:Boolean;
private var _tag:String;
public static var count:uint = 0;
public function Label(_arg1:String="", _arg2:String="uiLabel", _arg3:uint=0, _arg4:Align=null, _arg5:Boolean=false){
this.name = ("Label" + count++);
selectable = false;
_background = new Shape();
_textField = new TextField();
_text = _arg1;
_tag = _arg2;
if (_arg4 == null){
_arg4 = Align.none;
};
this.alignement = _arg4;
this.stickToEdge = _arg5;
if (_arg3 == 0){
_arg3 = Style.backgroundColor;
};
_color = _arg3;
_textField.addEventListener(TextEvent.LINK, onLink);
}
public function get tag():String{
return (_tag);
}
private function _draw():void{
var _local1:Graphics = _background.graphics;
_local1.clear();
_local1.beginFill(_color);
var _local2:uint = _textField.width;
var _local3:uint = _textField.height;
if (forcedWidth > 0){
_local2 = forcedWidth;
};
Background.drawRounded(this, _local1, _local2, _local3);
_local1.endFill();
}
public function get text():String{
return (_textField.text);
}
public function appendText(_arg1:String, _arg2:String=""):void{
if (_arg1 == ""){
return;
};
if (_arg2 == ""){
_arg2 = tag;
};
_textField.htmlText = (_textField.htmlText + (((("<span class=\"" + _arg2) + "\">") + _arg1) + "</span>"));
_text = (_text + _arg1);
_draw();
resize();
}
public function set text(_arg1:String):void{
if (_arg1 == ""){
_arg1 = _text;
};
_textField.htmlText = (((("<span class=\"" + tag) + "\">") + _arg1) + "</span>");
_text = _arg1;
_draw();
resize();
}
override protected function layout():void{
_textField.type = TextFieldType.DYNAMIC;
_textField.autoSize = TextFieldAutoSize.LEFT;
_textField.background = false;
_textField.selectable = selectable;
_textField.multiline = true;
_textField.styleSheet = Style.sheet;
this.text = _text;
addChild(_background);
addChild(_textField);
}
public function set tag(_arg1:String):void{
_tag = _arg1;
text = "";
}
public function onLink(_arg1:TextEvent):void{
}
override protected function dispose():void{
_textField.removeEventListener(TextEvent.LINK, onLink);
super.dispose();
}
}
}//package com.google.analytics.debug
Section 46
//Layout (com.google.analytics.debug.Layout)
package com.google.analytics.debug {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import com.google.analytics.core.*;
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 47
//Margin (com.google.analytics.debug.Margin)
package com.google.analytics.debug {
public class Margin {
public var top:int;
public var left:int;
public var bottom:int;
public var right: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 48
//Panel (com.google.analytics.debug.Panel)
package com.google.analytics.debug {
import flash.display.*;
import flash.events.*;
public class Panel extends UISprite {
private var _savedH:uint;
private var _data:UISprite;
private var _mask:Sprite;
private var _background:Shape;
private var _savedW:uint;
private var _stickToEdge:Boolean;
private var _border:Shape;
private var _borderColor:uint;
protected var baseAlpha:Number;
private var _backgroundColor:uint;
private var _title:Label;
private var _colapsed:Boolean;
private var _name:String;
public function Panel(_arg1:String, _arg2:uint, _arg3:uint, _arg4:uint=0, _arg5:uint=0, _arg6:Number=0.3, _arg7:Align=null, _arg8:Boolean=false){
_name = _arg1;
this.name = _arg1;
this.mouseEnabled = false;
_colapsed = false;
forcedWidth = _arg2;
forcedHeight = _arg3;
this.baseAlpha = _arg6;
_background = new Shape();
_data = new UISprite();
_data.forcedWidth = _arg2;
_data.forcedHeight = _arg3;
_data.mouseEnabled = false;
_title = new Label(_arg1, "uiLabel", 0xFFFFFF, Align.topLeft, _arg8);
_title.buttonMode = true;
_title.margin.top = 0.6;
_title.margin.left = 0.6;
_title.addEventListener(MouseEvent.CLICK, onToggle);
_title.mouseChildren = false;
_border = new Shape();
_mask = new Sprite();
_mask.useHandCursor = false;
_mask.mouseEnabled = false;
_mask.mouseChildren = false;
if (_arg7 == null){
_arg7 = Align.none;
};
this.alignement = _arg7;
this.stickToEdge = _arg8;
if (_arg4 == 0){
_arg4 = Style.backgroundColor;
};
_backgroundColor = _arg4;
if (_arg5 == 0){
_arg5 = Style.borderColor;
};
_borderColor = _arg5;
}
public function get stickToEdge():Boolean{
return (_stickToEdge);
}
public function onToggle(_arg1:MouseEvent=null):void{
if (_colapsed){
_data.visible = true;
} else {
_data.visible = false;
};
_colapsed = !(_colapsed);
_update();
resize();
}
public function set stickToEdge(_arg1:Boolean):void{
_stickToEdge = _arg1;
_title.stickToEdge = _arg1;
}
override protected function dispose():void{
_title.removeEventListener(MouseEvent.CLICK, onToggle);
super.dispose();
}
private function _draw():void{
var _local1:uint;
var _local2:uint;
if (((_savedW) && (_savedH))){
forcedWidth = _savedW;
forcedHeight = _savedH;
};
if (!_colapsed){
_local1 = forcedWidth;
_local2 = forcedHeight;
} else {
_local1 = _title.width;
_local2 = _title.height;
_savedW = forcedWidth;
_savedH = forcedHeight;
forcedWidth = _local1;
forcedHeight = _local2;
};
var _local3:Graphics = _background.graphics;
_local3.clear();
_local3.beginFill(_backgroundColor);
Background.drawRounded(this, _local3, _local1, _local2);
_local3.endFill();
var _local4:Graphics = _data.graphics;
_local4.clear();
_local4.beginFill(_backgroundColor, 0);
Background.drawRounded(this, _local4, _local1, _local2);
_local4.endFill();
var _local5:Graphics = _border.graphics;
_local5.clear();
_local5.lineStyle(0.1, _borderColor);
Background.drawRounded(this, _local5, _local1, _local2);
_local5.endFill();
var _local6:Graphics = _mask.graphics;
_local6.clear();
_local6.beginFill(_backgroundColor);
Background.drawRounded(this, _local6, (_local1 + 1), (_local2 + 1));
_local6.endFill();
}
public function get title():String{
return (_title.text);
}
private function _update():void{
_draw();
if (baseAlpha < 1){
_background.alpha = baseAlpha;
_border.alpha = baseAlpha;
};
}
public function addData(_arg1:DisplayObject):void{
_data.addChild(_arg1);
}
override protected function layout():void{
_update();
addChild(_background);
addChild(_data);
addChild(_title);
addChild(_border);
addChild(_mask);
mask = _mask;
}
public function set title(_arg1:String):void{
_title.text = _arg1;
}
public function close():void{
dispose();
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 49
//Style (com.google.analytics.debug.Style)
package com.google.analytics.debug {
public const Style:_Style = new _Style();
}//package com.google.analytics.debug
Section 50
//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 = Align.bottomLeft;
var _local5:Boolean;
var _local6:Boolean;
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 51
//UISprite (com.google.analytics.debug.UISprite)
package com.google.analytics.debug {
import flash.display.*;
import flash.events.*;
public class UISprite extends Sprite {
private var _forcedWidth:uint;
public var margin:Margin;
protected var alignTarget:DisplayObject;
protected var listenResize:Boolean;
public var alignement:Align;
private var _forcedHeight:uint;
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);
}
public function get forcedHeight():uint{
if (_forcedHeight){
return (_forcedHeight);
};
return (height);
}
private function _onAddedToStage(_arg1:Event):void{
layout();
resize();
}
protected function dispose():void{
var _local1:DisplayObject;
var _local2:int;
while (_local2 < numChildren) {
_local1 = getChildAt(_local2);
if (_local1){
removeChild(_local1);
};
_local2++;
};
}
public function set forcedHeight(_arg1:uint):void{
_forcedHeight = _arg1;
}
public function set forcedWidth(_arg1:uint):void{
_forcedWidth = _arg1;
}
protected function layout():void{
}
public function get forcedWidth():uint{
if (_forcedWidth){
return (_forcedWidth);
};
return (width);
}
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;
}
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);
};
}
protected function onResize(_arg1:Event):void{
resize();
}
}
}//package com.google.analytics.debug
Section 52
//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 close():void{
if (parent != null){
parent.removeChild(this);
};
}
override public function onLink(_arg1:TextEvent):void{
switch (_arg1.text){
case "hide":
close();
break;
};
}
public function onComplete(_arg1:TimerEvent):void{
close();
}
}
}//package com.google.analytics.debug
Section 53
//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 54
//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 55
//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){
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 set hid(_arg1:String):void{
if (!isAvailable()){
return;
};
_verify();
setProperty("gaGlobal.hid", _arg1);
}
public function get dh():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.dh"));
}
public function get sid():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.sid"));
}
public function get vid():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.vid"));
}
private function _verify():void{
if (!_gaGlobalVerified){
executeBlock(gaGlobal_js);
_gaGlobalVerified = true;
};
}
public function set sid(_arg1:String):void{
if (!isAvailable()){
return;
};
_verify();
setProperty("gaGlobal.sid", _arg1);
}
public function get gaGlobal():Object{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal"));
}
}
}//package com.google.analytics.external
Section 56
//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 _language:String;
private var _host:String;
private var _pathname:String;
private var _location:String;
private var _search:String;
private var _characterSet:String;
private var _title:String;
private var _protocol: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 cacheProperties():void{
if (!isAvailable()){
return;
};
var _local1:Object = 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 language():String{
if (_language){
return (_language);
};
if (!isAvailable()){
return (null);
};
var _local1:String = getProperty("navigator.language");
if (_local1 == null){
_local1 = getProperty("navigator.browserLanguage");
};
_language = _local1;
return (_language);
}
public function get colorDepth():String{
if (_colorDepth){
return (_colorDepth);
};
if (!isAvailable()){
return (null);
};
_colorDepth = getProperty("window.screen.colorDepth");
return (_colorDepth);
}
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 get host():String{
if (_host){
return (_host);
};
if (!isAvailable()){
return (null);
};
_host = getProperty("document.location.host");
return (_host);
}
public function get characterSet():String{
if (_characterSet){
return (_characterSet);
};
if (!isAvailable()){
return (null);
};
var _local1:String = getProperty("document.characterSet");
if (_local1 == null){
_local1 = getProperty("document.charset");
};
_characterSet = _local1;
return (_characterSet);
}
public function get title():String{
if (_title){
return (_title);
};
if (!isAvailable()){
return (null);
};
_title = getProperty("document.title");
return (_title);
}
}
}//package com.google.analytics.external
Section 57
//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){
_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 = 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 58
//Environment (com.google.analytics.utils.Environment)
package com.google.analytics.utils {
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 screenWidth():Number{
return (Capabilities.screenResolutionX);
}
public function get playerType():String{
return (Capabilities.playerType);
}
public function get locationSearch():String{
var _local1:String = _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 = Version.fromString(Capabilities.version.split(" ")[1], ",");
return (_local1);
}
public function get userAgent():UserAgent{
if (!_userAgent){
_userAgent = new UserAgent(this, appName, appVersion.toString(4));
};
return (_userAgent);
}
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;
switch (Capabilities.screenColor){
case "bw":
_local1 = "1";
break;
case "gray":
_local1 = "2";
break;
case "color":
default:
_local1 = "24";
};
var _local2:String = _dom.colorDepth;
if (_local2){
_local1 = _local2;
};
return (_local1);
}
private function _findProtocol():void{
var _local4:String;
var _local5:String;
var _local1:Protocols = 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;
};
};
var _local2:String = _dom.protocol;
var _local3:String = (_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 = 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;
}
function set url(_arg1:String):void{
_url = _arg1;
}
public function get referrer():String{
var _local1:String = _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 = _dom.language;
var _local2:String = 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 = _dom.pathname;
if (_local1){
return (_local1);
};
return ("");
}
public function get documentTitle():String{
var _local1:String = _dom.title;
if (_local1){
return (_local1);
};
return ("");
}
public function get appVersion():Version{
return (_appVersion);
}
}
}//package com.google.analytics.utils
Section 59
//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 60
//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 61
//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 62
//UserAgent (com.google.analytics.utils.UserAgent)
package com.google.analytics.utils {
import com.google.analytics.core.*;
import flash.system.*;
public class UserAgent {
private var _localInfo:Environment;
private var _applicationProduct:String;
private var _version:Version;
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 get applicationVersion():String{
return (_version.toString(2));
}
public function get vendorProductToken():String{
var _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 = "";
_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.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 applicationProductToken():String{
var _local1:String = applicationProduct;
if (applicationVersion != ""){
_local1 = (_local1 + ("/" + applicationVersion));
};
return (_local1);
}
public function set applicationProduct(_arg1:String):void{
_applicationProduct = _arg1;
}
public function get applicationProduct():String{
return (_applicationProduct);
}
}
}//package com.google.analytics.utils
Section 63
//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 64
//Version (com.google.analytics.utils.Version)
package com.google.analytics.utils {
public class Version {
private var _revision:uint;
private var _maxBuild:uint;// = 0xFF
private var _maxMinor:uint;// = 15
private var _maxMajor:uint;// = 15
private var _separator:String;// = "."
private var _maxRevision:uint;// = 0xFFFF
private var _build:uint;
private var _major:uint;
private var _minor:uint;
public function Version(_arg1:uint=0, _arg2:uint=0, _arg3:uint=0, _arg4:uint=0){
var _local5:Version;
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 set revision(_arg1:uint):void{
_revision = Math.min(_arg1, _maxRevision);
}
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);
}
private function getFields():int{
var _local1 = 4;
if (revision == 0){
_local1--;
};
if ((((_local1 == 3)) && ((build == 0)))){
_local1--;
};
if ((((_local1 == 2)) && ((minor == 0)))){
_local1--;
};
return (_local1);
}
public function valueOf():uint{
return (((((major << 28) | (minor << 24)) | (build << 16)) | revision));
}
public function get major():uint{
return (_major);
}
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 _local4:Array;
var _local3:Version = 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 = 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 65
//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 66
//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 hasSiteOverlay:Boolean;// = false
public var allowLocalTracking:Boolean;// = true
public var secureRemoteGIFpath:String;// = "https://ssl.google-analytics.com/__utm.gif"
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;
public var allowAnchor:Boolean;// = false
private var _domain:Domain;
private var _trackingLimitPerSession:int;// = 500
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){
_organic = new Organic();
conversionTimeout = Timespan.sixmonths;
sessionTimeout = Timespan.thirtyminutes;
campaignKey = new CampaignKey();
serverMode = ServerOperationMode.remote;
super();
_debug = _arg1;
_domain = new Domain(DomainNameMode.auto, "", _debug);
serverMode = ServerOperationMode.remote;
_initOrganicSources();
}
public function get organic():Organic{
return (_organic);
}
public function get cookieName():String{
return (_cookieName);
}
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 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 67
//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 68
//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.external.*;
import com.google.analytics.utils.*;
import com.google.analytics.data.*;
import com.google.analytics.campaign.*;
public class Tracker implements GoogleAnalyticsAPI {
private const EVENT_TRACKER_LABEL_KEY_NUM:int = 3;
private const EVENT_TRACKER_VALUE_VALUE_NUM:int = 1;
private const EVENT_TRACKER_PROJECT_ID:int = 5;
private const EVENT_TRACKER_OBJECT_NAME_KEY_NUM:int = 1;
private const EVENT_TRACKER_TYPE_KEY_NUM:int = 2;
private var _adSense:AdSenseGlobals;
private var _eventTracker:X10;
private var _noSessionInformation:Boolean;// = false
private var _browserInfo:BrowserInfo;
private var _debug:DebugConfiguration;
private var _isNewVisitor:Boolean;// = false
private var _buffer:Buffer;
private var _config:Configuration;
private var _x10Module:X10;
private var _campaign:CampaignManager;
private var _formatedReferrer:String;
private var _timeStamp:Number;
private var _info:Environment;
private var _domainHash:Number;
private var _campaignInfo:CampaignInfo;
private var _gifRequest:GIFRequest;
private var _hasInitData:Boolean;// = false
private var _account:String;
public function Tracker(_arg1:String, _arg2:Configuration, _arg3:DebugConfiguration, _arg4:Environment, _arg5:Buffer, _arg6:GIFRequest, _arg7:AdSenseGlobals){
var _local8:String;
super();
_account = _arg1;
_config = _arg2;
_debug = _arg3;
_info = _arg4;
_buffer = _arg5;
_gifRequest = _arg6;
_adSense = _arg7;
if (!Utils.validateAccount(_arg1)){
_local8 = (("Account \"" + _arg1) + "\" is not valid.");
_debug.warning(_local8);
throw (new Error(_local8));
};
_initData();
}
private function _doTracking():Boolean{
if (((((!((_info.protocol == Protocols.file))) && (!((_info.protocol == Protocols.none))))) && (_isNotGoogleSearch()))){
return (true);
};
if (_config.allowLocalTracking){
return (true);
};
return (false);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_debug.info((("addOrganic( " + [_arg1, _arg2].join(", ")) + " )"));
_config.organic.addSource(_arg1, _arg2);
}
public function setAllowLinker(_arg1:Boolean):void{
_config.allowLinker = _arg1;
_debug.info((("setAllowLinker( " + _config.allowLinker) + " )"));
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
var _local5:Boolean;
var _local6 = 2;
if (((!((_arg1 == ""))) && (!((_arg2 == ""))))){
_eventTracker.clearKey(EVENT_TRACKER_PROJECT_ID);
_eventTracker.clearValue(EVENT_TRACKER_PROJECT_ID);
_local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_OBJECT_NAME_KEY_NUM, _arg1);
_local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_TYPE_KEY_NUM, _arg2);
if (((_arg3) && (!((_arg3 == ""))))){
_local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_LABEL_KEY_NUM, _arg3);
_local6 = 3;
if (!isNaN(_arg4)){
_local5 = _eventTracker.setValue(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_VALUE_VALUE_NUM, _arg4);
_local6 = 4;
};
};
if (_local5){
_debug.info(((("valid event tracking call\ncategory: " + _arg1) + "\naction: ") + _arg2), VisualDebugMode.geek);
_sendXEvent(_eventTracker);
};
} else {
_debug.warning(((("event tracking call is not valid, failed!\ncategory: " + _arg1) + "\naction: ") + _arg2), VisualDebugMode.geek);
_local5 = false;
};
switch (_local6){
case 4:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3, _arg4].join(", ")) + " )"));
break;
case 3:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3].join(", ")) + " )"));
break;
case 2:
default:
_debug.info((("trackEvent( " + [_arg1, _arg2].join(", ")) + " )"));
};
return (_local5);
}
public function trackPageview(_arg1:String=""):void{
_debug.info((("trackPageview( " + _arg1) + " )"));
if (_doTracking()){
_initData();
_trackMetrics(_arg1);
_noSessionInformation = false;
} else {
_debug.warning((("trackPageview( " + _arg1) + " ) failed"));
};
}
public function setCookieTimeout(_arg1:int):void{
_config.conversionTimeout = _arg1;
_debug.info((("setCookieTimeout( " + _config.conversionTimeout) + " )"));
}
public function trackTrans():void{
_debug.warning("trackTrans() not implemented");
}
public function setClientInfo(_arg1:Boolean):void{
_config.detectClientInfo = _arg1;
_debug.info((("setClientInfo( " + _config.detectClientInfo) + " )"));
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_debug.warning((("linkByPost( " + [_arg1, _arg2].join(", ")) + " ) not implemented"));
}
private function _initData():void{
var _local1:String;
var _local2:String;
if (!_hasInitData){
_updateDomainName();
_domainHash = _getDomainHash();
_timeStamp = Math.round((new Date().getTime() / 1000));
if (_debug.verbose){
_local1 = "";
_local1 = (_local1 + "_initData 0");
_local1 = (_local1 + ("\ndomain name: " + _config.domainName));
_local1 = (_local1 + ("\ndomain hash: " + _domainHash));
_local1 = (_local1 + (((("\ntimestamp: " + _timeStamp) + " (") + new Date((_timeStamp * 1000))) + ")"));
_debug.info(_local1, VisualDebugMode.geek);
};
};
if (_doTracking()){
_handleCookie();
};
if (!_hasInitData){
if (_doTracking()){
_formatedReferrer = _formatReferrer();
_browserInfo = new BrowserInfo(_config, _info);
_debug.info(("browserInfo: " + _browserInfo.toURLString()), VisualDebugMode.advanced);
if (_config.campaignTracking){
_campaign = new CampaignManager(_config, _debug, _buffer, _domainHash, _formatedReferrer, _timeStamp);
_campaignInfo = _campaign.getCampaignInformation(_info.locationSearch, _noSessionInformation);
_debug.info(("campaignInfo: " + _campaignInfo.toURLString()), VisualDebugMode.advanced);
};
};
_x10Module = new X10();
_eventTracker = new X10();
_hasInitData = true;
};
if (_config.hasSiteOverlay){
_debug.warning("Site Overlay is not supported");
};
if (_debug.verbose){
_local2 = "";
_local2 = (_local2 + "_initData (misc)");
_local2 = (_local2 + ("\nflash version: " + _info.flashVersion.toString(4)));
_local2 = (_local2 + ("\nprotocol: " + _info.protocol));
_local2 = (_local2 + (("\ndefault domain name (auto): \"" + _info.domainName) + "\""));
_local2 = (_local2 + ("\nlanguage: " + _info.language));
_local2 = (_local2 + ("\ndomain hash: " + _getDomainHash()));
_local2 = (_local2 + ("\nuser-agent: " + _info.userAgent));
_debug.info(_local2, VisualDebugMode.geek);
};
}
public function getDetectTitle():Boolean{
_debug.info("getDetectTitle()");
return (_config.detectTitle);
}
public function resetSession():void{
_debug.info("resetSession()");
_buffer.resetCurrentSession();
}
public function getClientInfo():Boolean{
_debug.info("getClientInfo()");
return (_config.detectClientInfo);
}
private function _sendXEvent(_arg1:X10=null):void{
var _local2:Variables;
var _local3:EventInfo;
var _local4:Variables;
var _local5:Variables;
_initData();
if (_takeSample()){
_local2 = new Variables();
_local2.URIencode = true;
_local3 = new EventInfo(true, _x10Module, _arg1);
_local4 = _local3.toVariables();
_local5 = _renderMetricsSearchVariables();
_local2.join(_local4, _local5);
_gifRequest.send(_account, _local2, false, true);
};
}
public function setDetectFlash(_arg1:Boolean):void{
_config.detectFlash = _arg1;
_debug.info((("setDetectFlash( " + _config.detectFlash) + " )"));
}
public function setCampNameKey(_arg1:String):void{
_config.campaignKey.UCCN = _arg1;
var _local2 = (("setCampNameKey( " + _config.campaignKey.UCCN) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCCN]"));
} else {
_debug.info(_local2);
};
}
private function _formatReferrer():String{
var _local2:String;
var _local3:URL;
var _local4:URL;
var _local1:String = _info.referrer;
if ((((_local1 == "")) || ((_local1 == "localhost")))){
_local1 = "-";
} else {
_local2 = _info.domainName;
_local3 = new URL(_local1);
_local4 = new URL(("http://" + _local2));
if (_local3.hostName == _local2){
return ("-");
};
if (_local4.domain == _local3.domain){
if (_local4.subDomain != _local3.subDomain){
_local1 = "0";
};
};
if ((((_local1.charAt(0) == "[")) && (_local1.charAt((_local1.length - 1))))){
_local1 = "-";
};
};
_debug.info(("formated referrer: " + _local1), VisualDebugMode.advanced);
return (_local1);
}
private function _visitCode():Number{
if (_debug.verbose){
_debug.info(("visitCode: " + _buffer.utma.sessionId), VisualDebugMode.geek);
};
return (_buffer.utma.sessionId);
}
public function createEventTracker(_arg1:String):EventTracker{
_debug.info((("createEventTracker( " + _arg1) + " )"));
return (new EventTracker(_arg1, this));
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_debug.warning((("addItem( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6].join(", ")) + " ) not implemented"));
}
public function clearIgnoredOrganic():void{
_debug.info("clearIgnoredOrganic()");
_config.organic.clearIgnoredKeywords();
}
public function setVar(_arg1:String):void{
var _local2:Variables;
if (((!((_arg1 == ""))) && (_isNotGoogleSearch()))){
_initData();
_buffer.utmv.domainHash = _domainHash;
_buffer.utmv.value = _arg1;
if (_debug.verbose){
_debug.info(_buffer.utmv.toString(), VisualDebugMode.geek);
};
_debug.info((("setVar( " + _arg1) + " )"));
if (_takeSample()){
_local2 = new Variables();
_local2.utmt = "var";
_gifRequest.send(_account, _local2);
};
} else {
_debug.warning((("setVar \"" + _arg1) + "\" is ignored"));
};
}
public function setDomainName(_arg1:String):void{
if (_arg1 == "auto"){
_config.domain.mode = DomainNameMode.auto;
} else {
if (_arg1 == "none"){
_config.domain.mode = DomainNameMode.none;
} else {
_config.domain.mode = DomainNameMode.custom;
_config.domain.name = _arg1;
};
};
_updateDomainName();
_debug.info((("setDomainName( " + _config.domainName) + " )"));
}
private function _updateDomainName():void{
var _local1:String;
if (_config.domain.mode == DomainNameMode.auto){
_local1 = _info.domainName;
if (_local1.substring(0, 4) == "www."){
_local1 = _local1.substring(4);
};
_config.domain.name = _local1;
};
_config.domainName = _config.domain.name.toLowerCase();
_debug.info(("domain name: " + _config.domainName), VisualDebugMode.advanced);
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
_debug.warning((("addTrans( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8].join(", ")) + " ) not implemented"));
return (null);
}
private function _renderMetricsSearchVariables(_arg1:String=""):Variables{
var _local4:Variables;
var _local2:Variables = new Variables();
_local2.URIencode = true;
var _local3:DocumentInfo = new DocumentInfo(_config, _info, _formatedReferrer, _arg1, _adSense);
_debug.info(("docInfo: " + _local3.toURLString()), VisualDebugMode.geek);
if (_config.campaignTracking){
_local4 = _campaignInfo.toVariables();
};
var _local5:Variables = _browserInfo.toVariables();
_local2.join(_local3.toVariables(), _local5, _local4);
return (_local2);
}
public function setCampContentKey(_arg1:String):void{
_config.campaignKey.UCCT = _arg1;
var _local2 = (("setCampContentKey( " + _config.campaignKey.UCCT) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCCT]"));
} else {
_debug.info(_local2);
};
}
private function _handleCookie():void{
var _local1:String;
var _local2:String;
var _local3:Array;
var _local4:String;
if (_config.allowLinker){
};
if (((_buffer.hasUTMA()) && (!(_buffer.utma.isEmpty())))){
if (((!(_buffer.hasUTMB())) || (!(_buffer.hasUTMC())))){
_buffer.updateUTMA(_timeStamp);
_noSessionInformation = true;
};
if (_debug.verbose){
_debug.info(("from cookie " + _buffer.utma.toString()), VisualDebugMode.geek);
};
} else {
_debug.info("create a new utma", VisualDebugMode.advanced);
_buffer.utma.domainHash = _domainHash;
_buffer.utma.sessionId = _getUniqueSessionId();
_buffer.utma.firstTime = _timeStamp;
_buffer.utma.lastTime = _timeStamp;
_buffer.utma.currentTime = _timeStamp;
_buffer.utma.sessionCount = 1;
if (_debug.verbose){
_debug.info(_buffer.utma.toString(), VisualDebugMode.geek);
};
_noSessionInformation = true;
_isNewVisitor = true;
};
if (((_adSense.gaGlobal) && ((_adSense.dh == String(_domainHash))))){
if (_adSense.sid){
_buffer.utma.currentTime = Number(_adSense.sid);
if (_debug.verbose){
_local1 = "";
_local1 = (_local1 + "AdSense sid found\n");
_local1 = (_local1 + (((("Override currentTime(" + _buffer.utma.currentTime) + ") from AdSense sid(") + Number(_adSense.sid)) + ")"));
_debug.info(_local1, VisualDebugMode.geek);
};
};
if (_isNewVisitor){
if (_adSense.sid){
_buffer.utma.lastTime = Number(_adSense.sid);
if (_debug.verbose){
_local2 = "";
_local2 = (_local2 + "AdSense sid found (new visitor)\n");
_local2 = (_local2 + (((("Override lastTime(" + _buffer.utma.lastTime) + ") from AdSense sid(") + Number(_adSense.sid)) + ")"));
_debug.info(_local2, VisualDebugMode.geek);
};
};
if (_adSense.vid){
_local3 = _adSense.vid.split(".");
_buffer.utma.sessionId = Number(_local3[0]);
_buffer.utma.firstTime = Number(_local3[1]);
if (_debug.verbose){
_local4 = "";
_local4 = (_local4 + "AdSense vid found (new visitor)\n");
_local4 = (_local4 + (((("Override sessionId(" + _buffer.utma.sessionId) + ") from AdSense vid(") + Number(_local3[0])) + ")\n"));
_local4 = (_local4 + (((("Override firstTime(" + _buffer.utma.firstTime) + ") from AdSense vid(") + Number(_local3[1])) + ")"));
_debug.info(_local4, VisualDebugMode.geek);
};
};
if (_debug.verbose){
_debug.info(("AdSense modified : " + _buffer.utma.toString()), VisualDebugMode.geek);
};
};
};
_buffer.utmb.domainHash = _domainHash;
if (isNaN(_buffer.utmb.trackCount)){
_buffer.utmb.trackCount = 0;
};
if (isNaN(_buffer.utmb.token)){
_buffer.utmb.token = _config.tokenCliff;
};
if (isNaN(_buffer.utmb.lastTime)){
_buffer.utmb.lastTime = _buffer.utma.currentTime;
};
_buffer.utmc.domainHash = _domainHash;
if (_debug.verbose){
_debug.info(_buffer.utmb.toString(), VisualDebugMode.advanced);
_debug.info(_buffer.utmc.toString(), VisualDebugMode.advanced);
};
}
public function setLocalServerMode():void{
_config.serverMode = ServerOperationMode.local;
_debug.info("setLocalServerMode()");
}
public function clearIgnoredRef():void{
_debug.info("clearIgnoredRef()");
_config.organic.clearIgnoredReferrals();
}
public function setCampSourceKey(_arg1:String):void{
_config.campaignKey.UCSR = _arg1;
var _local2 = (("setCampSourceKey( " + _config.campaignKey.UCSR) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCSR]"));
} else {
_debug.info(_local2);
};
}
public function getLocalGifPath():String{
_debug.info("getLocalGifPath()");
return (_config.localGIFpath);
}
public function setLocalGifPath(_arg1:String):void{
_config.localGIFpath = _arg1;
_debug.info((("setLocalGifPath( " + _config.localGIFpath) + " )"));
}
public function getVersion():String{
_debug.info("getVersion()");
return (_config.version);
}
public function setAllowAnchor(_arg1:Boolean):void{
_config.allowAnchor = _arg1;
_debug.info((("setAllowAnchor( " + _config.allowAnchor) + " )"));
}
private function _isNotGoogleSearch():Boolean{
var _local1:String = _config.domainName;
var _local2 = (_local1.indexOf("www.google.") < 0);
var _local3 = (_local1.indexOf(".google.") < 0);
var _local4 = (_local1.indexOf("google.") < 0);
var _local5 = (_local1.indexOf("google.org") > -1);
return (((((((((_local2) || (_local3))) || (_local4))) || (!((_config.cookiePath == "/"))))) || (_local5)));
}
public function setSampleRate(_arg1:Number):void{
if (_arg1 < 0){
_debug.warning("sample rate can not be negative, ignoring value.");
} else {
_config.sampleRate = _arg1;
};
_debug.info((("setSampleRate( " + _config.sampleRate) + " )"));
}
private function _takeSample():Boolean{
if (_debug.verbose){
_debug.info((((("takeSample: (" + (_visitCode() % 10000)) + ") < (") + (_config.sampleRate * 10000)) + ")"), VisualDebugMode.geek);
};
return (((_visitCode() % 10000) < (_config.sampleRate * 10000)));
}
public function setCookiePath(_arg1:String):void{
_config.cookiePath = _arg1;
_debug.info((("setCookiePath( " + _config.cookiePath) + " )"));
}
public function setAllowHash(_arg1:Boolean):void{
_config.allowDomainHash = _arg1;
_debug.info((("setAllowHash( " + _config.allowDomainHash) + " )"));
}
private function _generateUserDataHash():Number{
var _local1 = "";
_local1 = (_local1 + _info.appName);
_local1 = (_local1 + _info.appVersion);
_local1 = (_local1 + _info.language);
_local1 = (_local1 + _info.platform);
_local1 = (_local1 + _info.userAgent.toString());
_local1 = (_local1 + (((_info.screenWidth + "x") + _info.screenHeight) + _info.screenColorDepth));
_local1 = (_local1 + _info.referrer);
return (Utils.generateHash(_local1));
}
public function setCampNOKey(_arg1:String):void{
_config.campaignKey.UCNO = _arg1;
var _local2 = (("setCampNOKey( " + _config.campaignKey.UCNO) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCNO]"));
} else {
_debug.info(_local2);
};
}
public function addIgnoredOrganic(_arg1:String):void{
_debug.info((("addIgnoredOrganic( " + _arg1) + " )"));
_config.organic.addIgnoredKeyword(_arg1);
}
public function setLocalRemoteServerMode():void{
_config.serverMode = ServerOperationMode.both;
_debug.info("setLocalRemoteServerMode()");
}
public function cookiePathCopy(_arg1:String):void{
_debug.warning((("cookiePathCopy( " + _arg1) + " ) not implemented"));
}
public function setDetectTitle(_arg1:Boolean):void{
_config.detectTitle = _arg1;
_debug.info((("setDetectTitle( " + _config.detectTitle) + " )"));
}
public function setCampTermKey(_arg1:String):void{
_config.campaignKey.UCTR = _arg1;
var _local2 = (("setCampTermKey( " + _config.campaignKey.UCTR) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCTR]"));
} else {
_debug.info(_local2);
};
}
public function getServiceMode():ServerOperationMode{
_debug.info("getServiceMode()");
return (_config.serverMode);
}
private function _trackMetrics(_arg1:String=""):void{
var _local2:Variables;
var _local3:Variables;
var _local4:Variables;
var _local5:EventInfo;
if (_takeSample()){
_local2 = new Variables();
_local2.URIencode = true;
if (((_x10Module) && (_x10Module.hasData()))){
_local5 = new EventInfo(false, _x10Module);
_local3 = _local5.toVariables();
};
_local4 = _renderMetricsSearchVariables(_arg1);
_local2.join(_local3, _local4);
_gifRequest.send(_account, _local2);
};
}
public function setCampaignTrack(_arg1:Boolean):void{
_config.campaignTracking = _arg1;
_debug.info((("setCampaignTrack( " + _config.campaignTracking) + " )"));
}
public function addIgnoredRef(_arg1:String):void{
_debug.info((("addIgnoredRef( " + _arg1) + " )"));
_config.organic.addIgnoredReferral(_arg1);
}
public function clearOrganic():void{
_debug.info("clearOrganic()");
_config.organic.clearEngines();
}
public function getDetectFlash():Boolean{
_debug.info("getDetectFlash()");
return (_config.detectFlash);
}
public function setCampMediumKey(_arg1:String):void{
_config.campaignKey.UCMD = _arg1;
var _local2 = (("setCampMediumKey( " + _config.campaignKey.UCMD) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCMD]"));
} else {
_debug.info(_local2);
};
}
private function _getUniqueSessionId():Number{
var _local1:Number = ((Utils.generate32bitRandom() ^ _generateUserDataHash()) * 2147483647);
_debug.info(("Session ID: " + _local1), VisualDebugMode.geek);
return (_local1);
}
private function _getDomainHash():Number{
if (((((!(_config.domainName)) || ((_config.domainName == "")))) || ((_config.domain.mode == DomainNameMode.none)))){
_config.domainName = "";
return (1);
};
_updateDomainName();
if (_config.allowDomainHash){
return (Utils.generateHash(_config.domainName));
};
return (1);
}
public function setSessionTimeout(_arg1:int):void{
_config.sessionTimeout = _arg1;
_debug.info((("setSessionTimeout( " + _config.sessionTimeout) + " )"));
}
public function getAccount():String{
_debug.info("getAccount()");
return (_account);
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_debug.warning((("link( " + [_arg1, _arg2].join(", ")) + " ) not implemented"));
}
public function setRemoteServerMode():void{
_config.serverMode = ServerOperationMode.remote;
_debug.info("setRemoteServerMode()");
}
}
}//package com.google.analytics.v4
Section 69
//AnalyticsTracker (com.google.analytics.AnalyticsTracker)
package com.google.analytics {
import flash.events.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
public interface AnalyticsTracker extends GoogleAnalyticsAPI, IEventDispatcher {
function set account(_arg1:String):void;
function get config():Configuration;
function get mode():String;
function set config(_arg1:Configuration):void;
function set mode(_arg1:String):void;
function set debug(_arg1:DebugConfiguration):void;
function get visualDebug():Boolean;
function get account():String;
function set visualDebug(_arg1:Boolean):void;
function isReady():Boolean;
function get debug():DebugConfiguration;
}
}//package com.google.analytics
Section 70
//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 71
//GATracker (com.google.analytics.GATracker)
package com.google.analytics {
import flash.display.*;
import flash.events.*;
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import com.google.analytics.external.*;
import com.google.analytics.utils.*;
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){
_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 getClientInfo():Boolean{
return (_tracker.getClientInfo());
}
public function trackPageview(_arg1:String=""):void{
_tracker.trackPageview(_arg1);
}
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 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 addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
_eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function setDomainName(_arg1:String):void{
_tracker.setDomainName(_arg1);
}
public function createEventTracker(_arg1:String):EventTracker{
return (_tracker.createEventTracker(_arg1));
}
public function setCampSourceKey(_arg1:String):void{
_tracker.setCampSourceKey(_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 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 getLocalGifPath():String{
return (_tracker.getLocalGifPath());
}
public function setAllowAnchor(_arg1:Boolean):void{
_tracker.setAllowAnchor(_arg1);
}
public function clearIgnoredRef():void{
_tracker.clearIgnoredRef();
}
public function isReady():Boolean{
return (_ready);
}
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 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;
_jsproxy = new JavascriptProxy(debug);
if (visualDebug){
debug.layout = new Layout(debug, _display);
debug.active = visualDebug;
};
var _local2:TrackerCache = (_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 setCampNOKey(_arg1:String):void{
_tracker.setCampNOKey(_arg1);
}
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 getDetectFlash():Boolean{
return (_tracker.getDetectFlash());
}
public function get visualDebug():Boolean{
return (_visualDebug);
}
public function hasEventListener(_arg1:String):Boolean{
return (_eventDispatcher.hasEventListener(_arg1));
}
public function getAccount():String{
return (_tracker.getAccount());
}
public function setSessionTimeout(_arg1:int):void{
_tracker.setSessionTimeout(_arg1);
}
public function setRemoteServerMode():void{
_tracker.setRemoteServerMode();
}
}
var _local1:* = ServerOperationMode;
return (_local1);
}//package com.google.analytics
Section 72
//AwardsService (com.spilgames.api.AwardsService)
package com.spilgames.api {
public class AwardsService {
public static function submitAward(_arg1:String, _arg2:Function=null):int{
return (SpilGamesServices.getInstance().send("Awards", "submitAward", _arg2, {tag:_arg1, userName:User.getUserName(), userHash:User.getUserHash()}));
}
public static function isAvailable():Boolean{
return (SpilGamesServices.getInstance().isServiceAvailable("Awards"));
}
}
}//package com.spilgames.api
Section 73
//ScoreService (com.spilgames.api.ScoreService)
package com.spilgames.api {
public class ScoreService {
public static function submitScore(_arg1:int, _arg2:Function=null):int{
return (SpilGamesServices.getInstance().send("Score", "submitScore", _arg2, {score:_arg1, userName:User.getUserName(), userHash:User.getUserHash()}));
}
public static function isAvailable():Boolean{
return (SpilGamesServices.getInstance().isServiceAvailable("Score"));
}
}
}//package com.spilgames.api
Section 74
//SpilGamesServices (com.spilgames.api.SpilGamesServices)
package com.spilgames.api {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.system.*;
public class SpilGamesServices extends MovieClip {
private const DEFAULT_CONNECTION_LOCATION:String = "http://www8.agame.com/games/flash/services/ServicesConnection.swf";
private var _connected:Boolean;// = false
private var _connecting:Boolean;// = false
private var _loader:Loader;
private var _servicesConnection;// = null
private var _alwaysInFront:Boolean;// = false
public static const INVALID_ID:int = -1;
public static const CONFIGURATION_FAILED:String = "configurationFailure";
public static const INVALID_DOMAIN:String = "invalidDomain";
private static var _instance:SpilGamesServices = null;
public function SpilGamesServices(_arg1:Private=null){
if (!_arg1){
throw (new Error("Cannot instantiate this class, use SpilGamesServices.getInstance"));
};
}
private function handleRemovedFromStage(_arg1:Event):void{
trace("WARNING: please do not remove SpilGamesServices from the stage");
}
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 (isReady()){
return (_servicesConnection.send(_arg1, _arg2, _arg3, _arg4));
};
return (INVALID_ID);
}
private function handleServicesFailed(_arg1:ErrorEvent):void{
_servicesConnection.addEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.addEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.addEventListener("serviceError", handleServiceError);
_connecting = false;
if (hasEventListener("servicesFailed")){
dispatchEvent(new ErrorEvent("servicesFailed", false, false, _arg1.text));
};
}
public function get version():String{
return ("1.1");
}
public function isReady():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isReady())));
}
private function handleIOError(_arg1:IOErrorEvent):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_connecting = false;
if (hasEventListener(_arg1.type)){
dispatchEvent(_arg1);
};
}
private function handleServiceError(_arg1:Event):void{
var _local2:String;
if (hasEventListener("serviceError")){
_local2 = "";
if ((_arg1 is ErrorEvent)){
_local2 = ErrorEvent(_arg1).text;
} else {
_local2 = _arg1.toString();
};
dispatchEvent(new ErrorEvent("serviceError", false, false, _local2));
};
}
public function disconnect():void{
if (_servicesConnection){
_servicesConnection.removeEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.removeEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.removeEventListener("serviceError", handleServiceError);
if (_connected){
_servicesConnection.disconnect();
};
removeChild(_servicesConnection);
};
_servicesConnection = null;
if (_loader){
try {
_loader.close();
} catch(e:Error) {
} finally {
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
};
_loader = null;
};
removeEventListener(Event.ENTER_FRAME, bringToFront);
removeEventListener(Event.REMOVED_FROM_STAGE, handleRemovedFromStage);
if (parent){
parent.removeChild(this);
};
_connected = (_connecting = false);
}
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 get connection(){
return (_servicesConnection);
}
public function getSiteID():int{
if (_servicesConnection != null){
return (_servicesConnection.getSiteID());
};
return (INVALID_ID);
}
public function isServiceAvailable(_arg1:String):Boolean{
return (((isReady()) && (_servicesConnection.isServiceAvailable(_arg1))));
}
public function getChannelID():int{
if (_servicesConnection != null){
return (_servicesConnection.getChannelID());
};
return (INVALID_ID);
}
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 allowDomain(_arg1:String):void{
Security.allowDomain("*");
Security.allowInsecureDomain("*");
}
public function connect(_arg1:DisplayObjectContainer, ... _args):void{
var _local3:URLRequest;
var _local4:String;
var _local5:URLVariables;
var _local6:Date;
if (((!(_connecting)) && (!(_connected)))){
if (!_arg1.stage){
throw (new Error("The given clip must be present in the display list (added to stage)"));
};
_connecting = true;
_arg1.stage.addChild(this);
addEventListener(Event.REMOVED_FROM_STAGE, handleRemovedFromStage);
if (((root.loaderInfo.parameters["servicesLoc"]) && ((root.loaderInfo.parameters["servicesLoc"].length > 0)))){
_local4 = root.loaderInfo.parameters["servicesLoc"];
_local3 = new URLRequest(_local4);
} else {
_local4 = DEFAULT_CONNECTION_LOCATION;
_local5 = new URLVariables();
_local6 = new Date();
_local5.nocache = ((((_local6.fullYear * 12) + (_local6.month + 1)) * 31) + _local6.day);
_local3 = new URLRequest(_local4);
_local3.data = _local5;
};
allowDomain(_local4);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_loader.load(_local3);
};
}
public function get alwaysInFront():Boolean{
return (_alwaysInFront);
}
public function get connecting():Boolean{
return (_connecting);
}
public function isDomainAllowed():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isDomainValid())));
}
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(new Private());
};
return (_instance);
}
}
}//package com.spilgames.api
class Private {
private function Private(){
}
}
Section 75
//User (com.spilgames.api.User)
package com.spilgames.api {
import flash.display.*;
public class User {
public static function getUserName():String{
var _local1:* = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.getUserName());
};
return ("");
}
public static function isGuest():Boolean{
var _local2:DisplayObject;
var _local3:Object;
var _local1:* = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.isGuest());
};
_local2 = SpilGamesServices.getInstance().root;
if (_local2.loaderInfo != null){
_local3 = _local2.loaderInfo.parameters;
return (((((((!(_local3.username)) || ((_local3.username == "")))) || (!(_local3.hash)))) || ((_local3.hash == ""))));
};
return (false);
}
public static function getUserHash():String{
var _local1:* = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.getUserHash());
};
return ("");
}
}
}//package com.spilgames.api
Section 76
//LevelInGameControl (com.zhaocha.control.LevelInGameControl)
package com.zhaocha.control {
import flash.display.*;
import flash.events.*;
import com.zhaocha.menus.*;
import com.zhaocha.main.*;
import junlas.toolutil.*;
import com.zhaocha.movies.*;
import zlong.breathxue.utils.*;
public class LevelInGameControl {
private var _levelMc:Sprite;
private var _con:Sprite;
private var _findPic:Sprite;
private var _findPicWidth:Number;// = 0
private var _mouseCircle:MovieClip;
private var _findPicHeight:Number;// = 0
private var _findedMovieCount:int;
private var _sixPoints:ArrayList;
private var _sendNextLevel:Boolean;// = true
private var _sixMcs:ArrayList;
public function LevelInGameControl(_arg1:Sprite){
_con = _arg1;
_levelMc = (_con.getChildByName("UI_LevelInGame") as Sprite);
_findPic = (_levelMc.getChildByName(LevelManage.instance.currLevelName) as Sprite);
_findPicWidth = _findPic.width;
_findPicHeight = _findPic.height;
_mouseCircle = Attach.getMovieClip("MC_LM_circle");
_findPic.addChild(_mouseCircle);
initFindPoints();
initFindEvent();
}
private function addSymmetryPoints():void{
var _local2:String;
var _local3:String;
var _local4:MovieClip;
var _local5:MovieClip;
var _local6:String;
var _local7:Number;
var _local8:Number;
_sixMcs = new ArrayList();
var _local1:int;
while (_local1 < _sixPoints.length) {
_local2 = _sixPoints[_local1].c;
_local3 = _sixPoints[_local1].n;
_local4 = (_findPic.getChildByName(_local3) as MovieClip);
_local5 = Attach.getMovieClip(_local2);
_local6 = _local3.replace("a", "b");
_local5.name = _local6;
_local5.rotation = _local4.rotation;
_local5.alpha = 0;
if (LevelManage.instance.currSymmetry){
_local7 = (_findPicHeight / 2);
if (_local4.y > _local7){
_local5.y = (_local4.y - _local7);
} else {
_local5.y = (_local4.y + _local7);
};
_local5.x = _local4.x;
} else {
_local8 = (_findPicWidth / 2);
if (_local4.x > _local8){
_local5.x = (_local4.x - _local8);
} else {
_local5.x = (_local4.x + _local8);
};
_local5.y = _local4.y;
};
_findPic.addChildAt(_local5, _findPic.getChildIndex(_mouseCircle));
_sixMcs.push({o1:_local4, o2:_local5});
_local1++;
};
}
public function destroy():void{
MovieClip(_levelMc["bubble_helpBtn"]).removeEventListener(MouseEvent.CLICK, helpHandle);
_findPic.removeEventListener(MouseEvent.CLICK, clickErrorHandle);
}
private function helpHandle(_arg1:MouseEvent):void{
var _local2:int = (Math.random() * _sixMcs.length);
TipHelper.instance.addMe();
var _local3:MovieClip = MovieClip(_sixMcs[_local2].o1);
_local3.addChild(TipHelper.instance);
var _local4:MovieClip = Attach.getMovieClip("MinusTen");
_local4.x = _local3.x;
_local4.y = _local3.y;
new CharMovie(_findPic, _local4);
ScoreManage.instance.minusTen();
}
public function run():void{
var _local1:KeyboardEvent;
mouseMoveHandle();
if ((((_findedMovieCount == 7)) && (_sendNextLevel))){
_sendNextLevel = false;
_local1 = new KeyboardEvent(KeyboardEvent.KEY_DOWN);
_local1.keyCode = Config.Key_F5;
Config.stage.dispatchEvent(_local1);
};
}
private function clickHandle(_arg1:MouseEvent):void{
var _local5:Object;
var _local6:MovieClip;
var _local7:MovieClip;
_arg1.stopImmediatePropagation();
FindedMovie((_con as LevelInGame).findedMovies[_findedMovieCount++]).enable = true;
var _local2:MovieClip = Attach.getMovieClip("FindOK");
_local2.x = _arg1.target.x;
_local2.y = _arg1.target.y;
new CharMovie(_findPic, _local2);
var _local3:MovieClip = Attach.getMovieClip("PlusFive");
_local3.x = _arg1.target.x;
_local3.y = _arg1.target.y;
new CharMovie(_findPic, _local3);
ScoreManage.instance.plusFive();
if (_findedMovieCount == 6){
_local3.addEventListener(Event.COMPLETE, lastMovieComplete);
};
var _local4:int = (_sixMcs.length - 1);
while (_local4 >= 0) {
_local5 = _sixMcs[_local4];
_local6 = _local5.o1;
_local7 = _local5.o2;
if (_arg1.target == _local6){
_local6.removeEventListener(MouseEvent.CLICK, clickHandle);
_local7.removeEventListener(MouseEvent.CLICK, clickHandle);
_findPic.removeChild(_local6);
_sixMcs.removeByIndex(_local4);
TipHelper.instance.disable();
return;
};
if (_arg1.target == _local7){
_local6.removeEventListener(MouseEvent.CLICK, clickHandle);
_local7.removeEventListener(MouseEvent.CLICK, clickHandle);
_local7.alpha = 1;
_sixMcs.removeByIndex(_local4);
TipHelper.instance.disable();
return;
};
_local4--;
};
}
private function lastMovieComplete(_arg1:Event):void{
_findedMovieCount++;
}
private function randomFinds():void{
var _local4:int;
var _local5:Object;
var _local1:ArrayList = LevelManage.instance.currFinds;
_sixPoints = new ArrayList();
var _local2:int;
while (_local2 < 6) {
_local4 = int((Math.random() * _local1.length));
_sixPoints.push(_local1.removeByIndex(_local4));
_local2++;
};
var _local3:int = (_local1.length - 1);
while (_local3 >= 0) {
_local5 = _local1[_local3];
_findPic.removeChild(_findPic.getChildByName(_local5.n));
_local3--;
};
}
private function mouseMoveHandle():void{
var _local1:Number = _findPic.mouseX;
var _local2:Number = _findPic.mouseY;
if ((((((((_local1 >= 0)) && ((_local1 <= (_findPic.x + _findPicWidth))))) && ((_local2 >= 0)))) && ((_local2 <= (_findPic.y + _findPicHeight))))){
_mouseCircle.visible = true;
if (LevelManage.instance.currSymmetry){
_mouseCircle.x = _local1;
if (_local2 <= (_findPicHeight / 2)){
_mouseCircle.y = ((_findPicHeight / 2) + _local2);
} else {
_mouseCircle.y = (_local2 - (_findPicHeight / 2));
};
} else {
if (_local1 <= (_findPicWidth / 2)){
_mouseCircle.x = ((_findPicWidth / 2) + _local1);
} else {
_mouseCircle.x = (_local1 - (_findPicWidth / 2));
};
_mouseCircle.y = _local2;
};
} else {
_mouseCircle.visible = false;
};
}
private function clickErrorHandle(_arg1:MouseEvent):void{
var _local2:MovieClip = Attach.getMovieClip("MinusFive");
_local2.x = _findPic.mouseX;
_local2.y = _findPic.mouseY;
new CharMovie(_findPic, _local2);
ScoreManage.instance.minusFive();
}
private function initFindEvent():void{
var _local2:Object;
var _local3:MovieClip;
var _local4:MovieClip;
MovieClip(_levelMc["bubble_helpBtn"]).addEventListener(MouseEvent.CLICK, helpHandle);
_findPic.addEventListener(MouseEvent.CLICK, clickErrorHandle);
var _local1:int;
while (_local1 < _sixMcs.length) {
_local2 = _sixMcs[_local1];
_local3 = _local2.o1;
_local4 = _local2.o2;
_local3.mouseChildren = false;
_local4.mouseChildren = false;
_local3.addEventListener(MouseEvent.CLICK, clickHandle);
_local4.addEventListener(MouseEvent.CLICK, clickHandle);
_local1++;
};
}
private function initFindPoints():void{
randomFinds();
addSymmetryPoints();
}
}
}//package com.zhaocha.control
Section 77
//LabelEvent (com.zhaocha.evt.LabelEvent)
package com.zhaocha.evt {
import flash.events.*;
public class LabelEvent extends Event {
public static const Level_Between_Destroy:String = "Level_Between_Destroy";
public static const Destroy_All:String = "Destroy_All";
public function LabelEvent(_arg1:String, _arg2:Boolean){
super(_arg1, _arg2);
}
}
}//package com.zhaocha.evt
Section 78
//LevelInGameEvent (com.zhaocha.evt.LevelInGameEvent)
package com.zhaocha.evt {
import flash.events.*;
public class LevelInGameEvent extends Event {
public static const Next_Level_Name:String = "Next_Level_Name";
public function LevelInGameEvent(_arg1:String, _arg2:Boolean=false){
super(_arg1, _arg2, cancelable);
}
}
}//package com.zhaocha.evt
Section 79
//Config (com.zhaocha.main.Config)
package com.zhaocha.main {
import flash.display.*;
public class Config {
public static const Key_F5:uint = 900000000;
public static var LikeRoot:Sprite;
public static var CurrLevelId:uint;
public static var LeveA:Boolean = false;
public static var LeveB:Boolean = false;
public static var pauseState:Boolean;
public static var stage:Stage;
}
}//package com.zhaocha.main
Section 80
//DataLoader (com.zhaocha.main.DataLoader)
package com.zhaocha.main {
public class DataLoader {
private var _xmlClass:Class;
private var _xml:XML;
private static var _instance:DataLoader;
public function DataLoader(_arg1:Single){
_xmlClass = DataLoader__xmlClass;
super();
initLoad();
}
private function initLoad():void{
_xml = new XML(new _xmlClass());
}
public function get xml():XML{
return (_xml);
}
public static function get instance():DataLoader{
if (!_instance){
_instance = new DataLoader(new Single());
};
return (_instance);
}
}
}//package com.zhaocha.main
class Single {
private function Single(){
}
}
Section 81
//DataLoader__xmlClass (com.zhaocha.main.DataLoader__xmlClass)
package com.zhaocha.main {
import mx.core.*;
public class DataLoader__xmlClass extends ByteArrayAsset {
}
}//package com.zhaocha.main
Section 82
//LevelManage (com.zhaocha.main.LevelManage)
package com.zhaocha.main {
import junlas.toolutil.*;
public class LevelManage {
private var _currSymmetry:Boolean;
private var _currFinds:ArrayList;
private var _lastLevelId:int;
private var _maxScore:int;
private var _maxScoreFlag:Boolean;
private var _lastLevelFlag:Boolean;
private var _currLevelName:String;
private static var _instance:LevelManage;
public function LevelManage(_arg1:Single){
init();
}
public function get lastLevelFlag():Boolean{
return (_lastLevelFlag);
}
private function load():void{
var _local3:XML;
var _local4:XMLList;
var _local5:int;
var _local6:XML;
Config.CurrLevelId++;
var _local1:XMLList = DataLoader.instance.xml["levels"][0]["level"];
if (Config.CurrLevelId > _local1.length()){
Config.CurrLevelId = 1;
};
var _local2:int;
while (_local2 < _local1.length()) {
_local3 = _local1[_local2];
if (_local3.@["id"] == Config.CurrLevelId){
_currLevelName = _local3.@["name"];
_currSymmetry = ((_local3.@["xy"] == 0)) ? false : true;
_maxScoreFlag = ((_local3.@["maxScoreFlag"] == 1)) ? true : false;
_lastLevelFlag = ((_local3.@["lastLevelFlag"] == 1)) ? true : false;
_local4 = _local3["finds"][0]["find"];
_local5 = 0;
while (_local5 < _local4.length()) {
_local6 = _local4[_local5];
_currFinds.push({c:(_local6[0] + ""), n:(_local6.@["name"] + "")});
_local5++;
};
return;
};
_local2++;
};
}
public function get maxScoreFlag():Boolean{
return (_maxScoreFlag);
}
public function get currFinds():ArrayList{
return (_currFinds);
}
public function get currSymmetry():Boolean{
return (_currSymmetry);
}
private function init():void{
_currFinds = new ArrayList();
_maxScore = DataLoader.instance.xml.@["maxScore"];
}
public function get maxScore():int{
return (_maxScore);
}
public function update():void{
_currFinds.clear();
load();
}
public function get currLevelName():String{
return (_currLevelName);
}
public static function get instance():LevelManage{
if (!_instance){
_instance = new LevelManage(new Single());
};
return (_instance);
}
}
}//package com.zhaocha.main
class Single {
private function Single(){
}
}
Section 83
//ScoreManage (com.zhaocha.main.ScoreManage)
package com.zhaocha.main {
import utils.*;
import zlong.spilSystemTool.*;
import flash.text.*;
public class ScoreManage {
private var _tf:TextField;
private var _scoreVal:int;// = 0
private static var _instance:ScoreManage;
public function ScoreManage(_arg1:Single){
}
public function init(_arg1:TextField):void{
_tf = _arg1;
_tf.text = (_scoreVal + "");
}
private function check():void{
if (_scoreVal <= 0){
_scoreVal = 0;
};
_tf.text = (_scoreVal + "");
}
public function minusFive():void{
SoundsManager.instance.playSound("decrease.wav", 1);
_scoreVal = (_scoreVal - 5);
check();
}
public function destroy():void{
_scoreVal = 0;
}
public function plusFive():void{
SoundsManager.instance.playSound("find.wav", 1);
_scoreVal = (_scoreVal + 5);
check();
if (_scoreVal >= 210){
if (Cookie.instance.achi["achi5"] == false){
Award_HighScore.instance.submitAchievement("award5");
Cookie.instance.achi["achi5"] = true;
};
} else {
if (_scoreVal >= 100){
if (Cookie.instance.achi["achi4"] == false){
Award_HighScore.instance.submitAchievement("award4");
Cookie.instance.achi["achi4"] = true;
};
};
};
}
public function minusTen():void{
_scoreVal = (_scoreVal - 10);
check();
}
public function get scoreVal():int{
return (_scoreVal);
}
public static function get instance():ScoreManage{
if (!_instance){
_instance = new ScoreManage(new Single());
};
return (_instance);
}
}
}//package com.zhaocha.main
class Single {
private function Single(){
}
}
Section 84
//GameOverMenu (com.zhaocha.menus.GameOverMenu)
package com.zhaocha.menus {
import flash.display.*;
import flash.events.*;
import utils.*;
import zlong.spilSystemTool.*;
import com.zhaocha.main.*;
import com.zhaocha.movies.*;
import zlong.breathxue.utils.*;
public class GameOverMenu extends Sprite {
private var _gameOver:MovieClip;
private var _iconMusicBtn:MovieClip;
private var _iconAudioBtn:MovieClip;
public function GameOverMenu(){
GoogleEvent.instance.gaTrackEvent("game completed viewed", true);
Award_HighScore.instance.submitScore(ScoreManage.instance.scoreVal);
if ((((Config.CurrLevelId == 8)) || ((Config.CurrLevelId == 9)))){
if (Cookie.instance.achi["achi3"] == false){
trace("award3=======?");
Cookie.instance.achi["achi3"] = true;
Award_HighScore.instance.submitAchievement("award3");
};
};
initDisplay();
initEvent();
}
private function mainMenuHandle(_arg1:MouseEvent):void{
GoogleEvent.instance.gaTrackEvent("Play again button clicked", true);
var _local2:Sprite = (this.parent as Sprite);
destroy();
nextScene(_local2);
}
private function clickIconHandle(_arg1:MouseEvent):void{
if (_arg1.target == _iconAudioBtn){
IconState.instance.clickSoundIcon();
};
if (_arg1.target == _iconMusicBtn){
IconState.instance.clickMusicIcon();
};
}
private function initEvent():void{
MovieClip(_gameOver["btn_mainmenu"]).addEventListener(MouseEvent.CLICK, mainMenuHandle);
MovieClip(_gameOver["btn_moregames"]).addEventListener(MouseEvent.ROLL_OVER, moregamesBtnRoll);
MovieClip(_gameOver["btn_moregames"]).addEventListener(MouseEvent.CLICK, moregamesBtnClick);
_iconAudioBtn.addEventListener(MouseEvent.CLICK, clickIconHandle);
_iconMusicBtn.addEventListener(MouseEvent.CLICK, clickIconHandle);
}
private function moregamesBtnRoll(_arg1:MouseEvent):void{
SoundsManager.instance.playSound("menu_touch.wav", 1);
}
private function initDisplay():void{
_gameOver = Attach.getMovieClip("UI_GAMEOVER");
ScoreManage.instance.init(_gameOver["txtScore"]);
_iconAudioBtn = (_gameOver["icon_audio"] as MovieClip);
_iconAudioBtn.mouseChildren = false;
_iconMusicBtn = (_gameOver["icon_music"] as MovieClip);
_iconMusicBtn.mouseChildren = false;
IconState.instance.init(ExtButton(_iconMusicBtn), ExtButton(_iconAudioBtn));
addChild(_gameOver);
}
private function moregamesBtnClick(_arg1:MouseEvent):void{
SoundsManager.instance.playSound("menu_press.wav", 1);
}
private function nextScene(_arg1:Sprite):void{
_arg1.addChild(new UI_MainMenu());
}
private function destroy():void{
MovieClip(_gameOver["btn_mainmenu"]).removeEventListener(MouseEvent.CLICK, mainMenuHandle);
MovieClip(_gameOver["btn_moregames"]).removeEventListener(MouseEvent.ROLL_OVER, moregamesBtnRoll);
MovieClip(_gameOver["btn_moregames"]).removeEventListener(MouseEvent.CLICK, moregamesBtnClick);
_iconAudioBtn.removeEventListener(MouseEvent.CLICK, clickIconHandle);
_iconMusicBtn.removeEventListener(MouseEvent.CLICK, clickIconHandle);
Tools.destory(this);
ScoreManage.instance.destroy();
Config.CurrLevelId = 0;
}
}
}//package com.zhaocha.menus
Section 85
//LevelBetween (com.zhaocha.menus.LevelBetween)
package com.zhaocha.menus {
import flash.display.*;
import flash.events.*;
import utils.*;
import com.zhaocha.evt.*;
import zlong.breathxue.utils.*;
public class LevelBetween extends Sprite {
private var _levelBetween:MovieClip;
public function LevelBetween(){
initDisplay();
initEvent();
}
private function initEvent():void{
addEventListener(Event.ENTER_FRAME, run);
}
private function initDisplay():void{
_levelBetween = Attach.getMovieClip("MC_LevelBetween");
this.addChild(_levelBetween);
}
private function destroy():void{
removeEventListener(Event.ENTER_FRAME, run);
Tools.destory(this);
}
private function run(_arg1:Event):void{
if (_levelBetween.currentFrame == int((_levelBetween.totalFrames / 2))){
this.dispatchEvent(new LabelEvent(LabelEvent.Level_Between_Destroy, true));
};
if (_levelBetween.currentFrame == _levelBetween.totalFrames){
destroy();
};
}
}
}//package com.zhaocha.menus
Section 86
//LevelInGame (com.zhaocha.menus.LevelInGame)
package com.zhaocha.menus {
import flash.display.*;
import flash.events.*;
import utils.*;
import zlong.spilSystemTool.*;
import com.zhaocha.evt.*;
import com.zhaocha.main.*;
import junlas.toolutil.*;
import com.zhaocha.movies.*;
import zlong.breathxue.utils.*;
import com.zhaocha.control.*;
public class LevelInGame extends Sprite {
private var _y:Number;
private var _level:MovieClip;
private var _findedMovies:ArrayList;
private var _levelInGameControl:LevelInGameControl;
private var _x:Number;
private var _findPic:MovieClip;
public function LevelInGame(){
initData();
initDisplay();
initReDisplay();
initControl();
initEvent();
}
private function pauseHandle(_arg1:MouseEvent):void{
Config.pauseState = true;
this.parent.addChild(new PauseMenu());
}
private function initDisplay():void{
var _local3:MovieClip;
_level = Attach.getMovieClip("UI_LevelInGame");
Sprite(_level["describeMc"]).mouseChildren = false;
Sprite(_level["describeMc"]).mouseEnabled = false;
_level.name = "UI_LevelInGame";
var _local1:Sprite = _level["picInLevel"];
_x = _local1.x;
_y = _local1.y;
_level.removeChild(_local1);
ScoreManage.instance.init(_level["txtScore"]);
addChildAt(_level, 0);
var _local2 = 1;
while (_local2 <= 6) {
_local3 = _level[("findedMc" + _local2)];
_findedMovies.push(new FindedMovie(_local3));
_local2++;
};
}
private function runHandle(_arg1:Event):void{
if (!Config.pauseState){
_levelInGameControl.run();
};
}
private function nextScene(_arg1:Sprite):void{
if (LevelManage.instance.lastLevelFlag){
destroy();
_arg1.addChild(new GameOverMenu());
SoundsManager.instance.playSound("win.wav", 1);
} else {
if (((LevelManage.instance.maxScoreFlag) && ((ScoreManage.instance.scoreVal < LevelManage.instance.maxScore)))){
this.dispatchEvent(new LevelInGameEvent(LevelInGameEvent.Next_Level_Name, true));
};
this.dispatchEvent(new LevelInGameEvent(LevelInGameEvent.Next_Level_Name, true));
_arg1.addChild(new LevelBetween());
};
}
public function get findedMovies():ArrayList{
return (_findedMovies);
}
private function initReDisplay():void{
_findPic = Attach.getMovieClip(LevelManage.instance.currLevelName);
_findPic.name = LevelManage.instance.currLevelName;
_findPic.x = _x;
_findPic.y = _y;
_level.addChildAt(_findPic, 0);
}
private function keyDownHandle(_arg1:KeyboardEvent):void{
var _local2:Sprite;
if (_arg1.keyCode == Config.Key_F5){
_local2 = (this.parent as Sprite);
nextScene(_local2);
};
}
private function initEvent():void{
addEventListener(Event.ENTER_FRAME, runHandle);
Config.stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandle);
Config.LikeRoot.addEventListener(LabelEvent.Level_Between_Destroy, levelBetweenDestroyHandle);
MovieClip(_level["bubble_pause"]).addEventListener(MouseEvent.CLICK, pauseHandle);
}
private function initControl():void{
_levelInGameControl = new LevelInGameControl(this);
}
public function destroy():void{
removeEventListener(Event.ENTER_FRAME, runHandle);
Config.stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandle);
Config.LikeRoot.removeEventListener(LabelEvent.Level_Between_Destroy, levelBetweenDestroyHandle);
MovieClip(_level["bubble_pause"]).removeEventListener(MouseEvent.CLICK, pauseHandle);
_levelInGameControl.destroy();
Tools.destory(this);
_level = null;
}
private function initData():void{
Config.stage.focus = this;
_findedMovies = new ArrayList();
if (Config.CurrLevelId == 2){
if (Cookie.instance.achi["achi1"] == false){
Award_HighScore.instance.submitAchievement("award1");
Cookie.instance.achi["achi1"] = true;
};
} else {
if (Config.CurrLevelId == 6){
if (Cookie.instance.achi["achi2"] == false){
Award_HighScore.instance.submitAchievement("award2");
Cookie.instance.achi["achi2"] = true;
};
};
};
}
private function levelBetweenDestroyHandle(_arg1:LabelEvent):void{
var _local2:Sprite = (this.parent as Sprite);
var _local3:int = _local2.getChildIndex(this);
_local3 = ((_local3 >= 1)) ? _local3 : 1;
destroy();
_local2.addChildAt(new LevelInGame(), (_local3 - 1));
}
}
}//package com.zhaocha.menus
Section 87
//MousePic (com.zhaocha.menus.MousePic)
package com.zhaocha.menus {
import flash.display.*;
import flash.events.*;
import com.zhaocha.main.*;
import zlong.breathxue.utils.*;
import flash.ui.*;
public class MousePic {
private var _pmc:Sprite;
private var _mousePicMc:MovieClip;
private static var _instance:MousePic;
public function MousePic(_arg1:Single){
}
public function init(_arg1:Sprite):void{
_pmc = _arg1;
check();
_pmc.addChild(_mousePicMc);
}
private function check():void{
if (!_mousePicMc){
_mousePicMc = Attach.getMovieClip("MC_LM_mouse");
_mousePicMc.mouseChildren = false;
_mousePicMc.mouseEnabled = false;
_mousePicMc.enabled = false;
Config.stage.addEventListener(MouseEvent.MOUSE_MOVE, enterFrameHandle);
};
}
private function enterFrameHandle(_arg1:MouseEvent):void{
Mouse.hide();
_mousePicMc.x = _pmc.mouseX;
_mousePicMc.y = _pmc.mouseY;
_arg1.updateAfterEvent();
}
public static function get instance():MousePic{
if (!_instance){
_instance = new MousePic(new Single());
};
return (_instance);
}
}
}//package com.zhaocha.menus
class Single {
private function Single(){
}
}
Section 88
//PauseMenu (com.zhaocha.menus.PauseMenu)
package com.zhaocha.menus {
import flash.display.*;
import flash.events.*;
import utils.*;
import com.zhaocha.evt.*;
import com.zhaocha.main.*;
import com.zhaocha.movies.*;
import zlong.breathxue.utils.*;
public class PauseMenu extends Sprite {
private var _iconMusicBtn:MovieClip;
private var _pauseMc:MovieClip;
private var _iconAudioBtn:MovieClip;
public function PauseMenu(){
initDisplay();
initEvent();
}
public function destroy():void{
MovieClip(_pauseMc["btn_backtogame"]).removeEventListener(MouseEvent.CLICK, clickHandle);
MovieClip(_pauseMc["btn_moregames"]).removeEventListener(MouseEvent.ROLL_OVER, moregamesBtnRoll);
MovieClip(_pauseMc["btn_moregames"]).removeEventListener(MouseEvent.CLICK, moregamesBtnClick);
MovieClip(_pauseMc["btn_quit"]).removeEventListener(MouseEvent.CLICK, clickHandle);
_iconAudioBtn.removeEventListener(MouseEvent.CLICK, clickIconHandle);
_iconMusicBtn.removeEventListener(MouseEvent.CLICK, clickIconHandle);
Tools.destory(this);
_pauseMc = null;
Config.pauseState = false;
}
private function clickIconHandle(_arg1:MouseEvent):void{
if (_arg1.target == _iconAudioBtn){
IconState.instance.clickSoundIcon();
};
if (_arg1.target == _iconMusicBtn){
IconState.instance.clickMusicIcon();
};
}
private function initEvent():void{
MovieClip(_pauseMc["btn_backtogame"]).mouseChildren = false;
MovieClip(_pauseMc["btn_backtogame"]).addEventListener(MouseEvent.CLICK, clickHandle);
MovieClip(_pauseMc["btn_moregames"]).addEventListener(MouseEvent.ROLL_OVER, moregamesBtnRoll);
MovieClip(_pauseMc["btn_moregames"]).addEventListener(MouseEvent.CLICK, moregamesBtnClick);
MovieClip(_pauseMc["btn_quit"]).mouseChildren = false;
MovieClip(_pauseMc["btn_quit"]).addEventListener(MouseEvent.CLICK, clickHandle);
_iconAudioBtn.addEventListener(MouseEvent.CLICK, clickIconHandle);
_iconMusicBtn.addEventListener(MouseEvent.CLICK, clickIconHandle);
}
private function moregamesBtnRoll(_arg1:MouseEvent):void{
SoundsManager.instance.playSound("menu_touch.wav", 1);
}
private function clickHandle(_arg1:MouseEvent):void{
if (_arg1.target == _pauseMc["btn_backtogame"]){
destroy();
} else {
if (_arg1.target == _pauseMc["btn_quit"]){
this.dispatchEvent(new LabelEvent(LabelEvent.Destroy_All, true));
} else {
trace("[Error]发生错误!");
};
};
}
private function initDisplay():void{
_pauseMc = Attach.getMovieClip("MC_LM_pause");
addChild(_pauseMc);
_iconAudioBtn = (_pauseMc["icon_audio"] as MovieClip);
_iconAudioBtn.mouseChildren = false;
_iconMusicBtn = (_pauseMc["icon_music"] as MovieClip);
_iconMusicBtn.mouseChildren = false;
IconState.instance.init(ExtButton(_iconMusicBtn), ExtButton(_iconAudioBtn));
}
private function moregamesBtnClick(_arg1:MouseEvent):void{
SoundsManager.instance.playSound("menu_press.wav", 1);
}
}
}//package com.zhaocha.menus
Section 89
//UI_MainMenu (com.zhaocha.menus.UI_MainMenu)
package com.zhaocha.menus {
import flash.display.*;
import flash.events.*;
import utils.*;
import zlong.spilSystemTool.*;
import com.zhaocha.evt.*;
import com.zhaocha.main.*;
import com.zhaocha.movies.*;
import zlong.breathxue.utils.*;
public class UI_MainMenu extends Sprite {
private var _iconMusicBtn:MovieClip;
private var _mainMenuGoogleEvent:Boolean;
private var _mainmenu:MovieClip;
private var _iconAudioBtn:MovieClip;
public function UI_MainMenu(){
SoundsManager.instance.fadeInMusic("lm_menu.wav");
if (!_mainMenuGoogleEvent){
GoogleEvent.instance.gaTrackEvent("mainscreen_viewed", true);
_mainMenuGoogleEvent = true;
};
initDisplay();
initEvent();
}
private function clickBtnPlay(_arg1:MouseEvent):void{
var _local2:Sprite = (this.parent as Sprite);
destroy();
nextScene(_local2);
}
private function clickIconHandle(_arg1:MouseEvent):void{
if (_arg1.target == _iconAudioBtn){
IconState.instance.clickSoundIcon();
};
if (_arg1.target == _iconMusicBtn){
IconState.instance.clickMusicIcon();
};
}
private function initEvent():void{
MovieClip(_mainmenu["btn_play"]).addEventListener(MouseEvent.CLICK, clickBtnPlay);
MovieClip(_mainmenu["btn_moregames"]).addEventListener(MouseEvent.ROLL_OVER, moregamesBtnRoll);
MovieClip(_mainmenu["btn_moregames"]).addEventListener(MouseEvent.CLICK, moregamesBtnClick);
_iconAudioBtn.addEventListener(MouseEvent.CLICK, clickIconHandle);
_iconMusicBtn.addEventListener(MouseEvent.CLICK, clickIconHandle);
}
private function moregamesBtnRoll(_arg1:MouseEvent):void{
SoundsManager.instance.playSound("menu_touch.wav", 1);
}
private function initDisplay():void{
_mainmenu = Attach.getMovieClip("MC_LM_menumain");
_iconAudioBtn = (_mainmenu["icon_audio"] as MovieClip);
_iconMusicBtn = (_mainmenu["icon_music"] as MovieClip);
_iconAudioBtn.mouseChildren = false;
_iconMusicBtn.mouseChildren = false;
IconState.instance.init(ExtButton(_iconMusicBtn), ExtButton(_iconAudioBtn));
addChild(_mainmenu);
}
private function moregamesBtnClick(_arg1:MouseEvent):void{
SoundsManager.instance.playSound("menu_press.wav", 1);
}
private function nextScene(_arg1:Sprite):void{
Config.CurrLevelId = 0;
_arg1.dispatchEvent(new LevelInGameEvent(LevelInGameEvent.Next_Level_Name, true));
_arg1.addChild(new LevelInGame());
}
private function destroy():void{
MovieClip(_mainmenu["btn_play"]).removeEventListener(MouseEvent.CLICK, clickBtnPlay);
MovieClip(_mainmenu["btn_moregames"]).removeEventListener(MouseEvent.ROLL_OVER, moregamesBtnRoll);
MovieClip(_mainmenu["btn_moregames"]).removeEventListener(MouseEvent.CLICK, moregamesBtnClick);
_iconAudioBtn.removeEventListener(MouseEvent.CLICK, clickIconHandle);
_iconMusicBtn.removeEventListener(MouseEvent.CLICK, clickIconHandle);
Tools.destory(this);
_mainmenu = null;
}
}
}//package com.zhaocha.menus
Section 90
//CharMovie (com.zhaocha.movies.CharMovie)
package com.zhaocha.movies {
import flash.display.*;
import flash.events.*;
import com.zhaocha.main.*;
public class CharMovie {
private var _par:Sprite;
private var _mc:MovieClip;
public function CharMovie(_arg1:Sprite, _arg2:MovieClip){
_par = _arg1;
_mc = _arg2;
initDisplay();
initEvent();
}
private function initEvent():void{
_mc.addEventListener(Event.ENTER_FRAME, playMc);
}
private function destroy():void{
_mc.removeEventListener(Event.ENTER_FRAME, playMc);
_mc.dispatchEvent(new Event(Event.COMPLETE));
if (((_mc) && ((_mc.parent == _par)))){
_mc.stop();
_par.removeChild(_mc);
};
_mc = null;
_par = null;
}
private function initDisplay():void{
if (((_par) && (_mc))){
_par.addChild(_mc);
_mc.mouseChildren = false;
_mc.mouseEnabled = false;
} else {
throw (new ArgumentError("--CharMovie Error--"));
};
}
private function playMc(_arg1:Event):void{
if (Config.pauseState){
_mc.stop();
return;
};
_mc.play();
if (_mc.currentFrame == _mc.totalFrames){
destroy();
};
}
}
}//package com.zhaocha.movies
Section 91
//FindedMovie (com.zhaocha.movies.FindedMovie)
package com.zhaocha.movies {
import flash.display.*;
import flash.events.*;
public class FindedMovie {
private var _enable:Boolean;
private var _mc:MovieClip;
public function FindedMovie(_arg1:MovieClip){
_mc = _arg1;
_mc.mouseChildren = false;
_mc.mouseEnabled = false;
_enable = false;
initEvent();
}
private function clickHandle(_arg1:Event):void{
if (!_enable){
_mc.gotoAndStop(0);
} else {
_mc.play();
if (_mc.currentFrame == _mc.totalFrames){
_mc.stop();
destroy();
};
};
}
private function initEvent():void{
_mc.addEventListener(Event.ENTER_FRAME, clickHandle);
}
public function set enable(_arg1:Boolean):void{
_enable = _arg1;
}
private function destroy():void{
_mc.removeEventListener(Event.ENTER_FRAME, clickHandle);
_mc = null;
}
}
}//package com.zhaocha.movies
Section 92
//IconState (com.zhaocha.movies.IconState)
package com.zhaocha.movies {
import utils.*;
public class IconState {
private var _musicIconState:Boolean;// = true
private var _soundIconState:Boolean;// = true
private var _soundIcon:ExtButton;
private var _musicIcon:ExtButton;
private static var _instance:IconState;
public function IconState(_arg1:Single){
}
public function clickMusicIcon():void{
_musicIconState = !(_musicIconState);
_musicIcon.enable = _musicIconState;
if (_musicIcon.enable){
SoundsManager.instance.MusicEnable = true;
} else {
SoundsManager.instance.MusicEnable = false;
};
}
public function init(_arg1:ExtButton, _arg2:ExtButton):void{
_musicIcon = _arg1;
_soundIcon = _arg2;
_musicIcon.enable = _musicIconState;
_soundIcon.enable = _soundIconState;
}
public function clickSoundIcon():void{
_soundIconState = !(_soundIconState);
_soundIcon.enable = _soundIconState;
if (_soundIcon.enable){
SoundsManager.instance.Enabled = true;
} else {
SoundsManager.instance.Enabled = false;
};
}
public static function get instance():IconState{
if (!_instance){
_instance = new IconState(new Single());
};
return (_instance);
}
}
}//package com.zhaocha.movies
class Single {
private function Single(){
}
}
Section 93
//ListenManage (com.zhaocha.movies.ListenManage)
package com.zhaocha.movies {
import flash.events.*;
import utils.*;
public class ListenManage {
private var _extButton:ExtButton;
public function ListenManage(_arg1:ExtButton){
_extButton = _arg1;
initEvt();
}
private function soundClickHandle(_arg1:MouseEvent):void{
if (_extButton.name.indexOf("btn") != -1){
SoundsManager.instance.playSound("menu_press.wav", 1);
} else {
if (_extButton.name.indexOf("bubble") != -1){
SoundsManager.instance.playSound("bubble_press.wav", 1);
} else {
if (_extButton.name.indexOf("icon") != -1){
SoundsManager.instance.playSound("otherclick.wav", 1);
} else {
trace("这是什么?==>", _arg1.target);
};
};
};
}
private function initEvt():void{
_extButton.addEventListener(MouseEvent.ROLL_OVER, soundRollOverHandle);
_extButton.addEventListener(MouseEvent.CLICK, soundClickHandle, false, -1);
}
public function destroy():void{
_extButton.removeEventListener(MouseEvent.ROLL_OVER, soundRollOverHandle);
_extButton.removeEventListener(MouseEvent.CLICK, soundClickHandle);
}
private function soundRollOverHandle(_arg1:MouseEvent):void{
if (_extButton.name.indexOf("btn") != -1){
SoundsManager.instance.playSound("menu_touch.wav", 1);
} else {
if (_extButton.name.indexOf("bubble") != -1){
SoundsManager.instance.playSound("bubble_touch.wav", 1);
} else {
trace("这是什么?==>", _arg1.target);
};
};
}
}
}//package com.zhaocha.movies
Section 94
//TipHelper (com.zhaocha.movies.TipHelper)
package com.zhaocha.movies {
import flash.display.*;
import zlong.breathxue.utils.*;
public class TipHelper extends Sprite {
private var _mc:MovieClip;
private static var _instance:TipHelper;
public function TipHelper(_arg1:Single){
}
public function disable():void{
if (((_mc) && (_mc.parent))){
this.removeChild(_mc);
_mc = null;
};
}
public function addMe():void{
if (!_mc){
_mc = Attach.getMovieClip("tipHelpMc");
};
this.addChild(_mc);
_mc.mouseChildren = false;
_mc.mouseEnabled = false;
}
public static function get instance():TipHelper{
if (!_instance){
_instance = new TipHelper(new Single());
};
return (_instance);
}
}
}//package com.zhaocha.movies
class Single {
private function Single(){
}
}
Section 95
//Game (com.zhaocha.Game)
package com.zhaocha {
import flash.display.*;
import com.zhaocha.evt.*;
import com.zhaocha.menus.*;
import com.zhaocha.main.*;
public class Game {
private var _pmc:Sprite;
public function Game(_arg1:Sprite){
_pmc = _arg1;
initData();
initDisplay();
initEvent();
}
private function initEvent():void{
_pmc.addEventListener(LevelInGameEvent.Next_Level_Name, nextLevelHandle);
_pmc.addEventListener(LabelEvent.Destroy_All, destroyAllHandle);
}
private function initDisplay():void{
_pmc.addChild(new UI_MainMenu());
}
private function nextLevelHandle(_arg1:LevelInGameEvent):void{
LevelManage.instance.update();
}
private function initData():void{
Config.CurrLevelId = 0;
}
private function destroyAllHandle(_arg1:LabelEvent):void{
var _local3:Sprite;
var _local2:int = (_pmc.numChildren - 1);
while (_local2 >= 0) {
_local3 = (_pmc.getChildAt(_local2) as Sprite);
if (_local3){
if (((_local3.hasOwnProperty("destroy")) && ((_local3["destroy"] is Function)))){
var _local4 = _local3;
_local4["destroy"]();
};
};
_local2--;
};
_pmc.addChild(new GameOverMenu());
}
}
}//package com.zhaocha
Section 96
//SysConfig (com.zlonggames.differentfinder.config.SysConfig)
package com.zlonggames.differentfinder.config {
import flash.display.*;
import flash.events.*;
import utils.*;
public class SysConfig {
public static const ScaleValue:Number = 0.8;
public static var UI_GameImage:String = "UI_GameImage";
public static var MC_Parent_GameView_NAME:String = "_mc_parentGameView";
public static var MC_GameView_NAME:String = "_mc_gameView";
public static var MC_Flower_Name:String = "MC_Flower";
public static var MC_Background_Name:String = "mc_background";
public static var MC_OVER_UI_Name:String = "mc_OVER_UI_Name";
public static var Pause_Flag:Boolean;
public static var MC_Quit_Pause:String = "mc_quit_pause_ui";
public static var temp_UI_Image:Sprite;
public static var SH:Number;
public static var X_mc_parentGameView:Number = 8;
public static var SW:Number;
public static var likeRootCon:Sprite;
public static var Y_mc_parentGameView:Number = 8;
public static var Finder_Num:int;
public static var MC_Mouse_Icon_Name:String = "mc_mouse_icon";
public static var Flag_MouseIcon:Boolean = false;
public static var MC_Tracer_NAME:String = "_mc_tracer";
public static var MC_Circle_Tracer_Name:String = "Circle_Tracer";
public static var MC_OutmostView_NAME:String = "_mc_outmostView";
public static var stage:Stage;
public static function soundMove(_arg1:MouseEvent):void{
SoundsManager.instance.playSound("menu_touch.wav", 1);
}
public static function otherSoundMove(_arg1:MouseEvent):void{
SoundsManager.instance.playSound("other_touch.wav", 1);
}
public static function otherSoundClick(_arg1:MouseEvent):void{
SoundsManager.instance.playSound("otherclick.wav", 1);
}
public static function soundClick(_arg1:MouseEvent):void{
SoundsManager.instance.playSound("menu_press.wav", 1);
}
}
}//package com.zlonggames.differentfinder.config
Section 97
//wav (correct_find.wav)
package correct_find {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package correct_find
Section 98
//wav (decrease.wav)
package decrease {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package decrease
Section 99
//wav (find.wav)
package find {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package find
Section 100
//ArrayList (junlas.toolutil.ArrayList)
package junlas.toolutil {
public dynamic class ArrayList extends Array {
public function getItem(_arg1:int):Object{
return (this[_arg1]);
}
public function add(... _args):void{
var _local3:Array;
var _local4:int;
var _local2:int;
while (_local2 < _args.length) {
if (!(_args[_local2] is Array)){
if (!this.contains(_args[_local2])){
this.push(_args[_local2]);
};
} else {
_local3 = _args[_local2];
_local4 = 0;
while (_local4 < _local3.length) {
if (!this.contains(_local3[_local4])){
this.push(_local3[_local4]);
};
_local4++;
};
};
_local2++;
};
}
public function clear():void{
while (this.length) {
this.pop();
};
}
public function removeByIndex(_arg1:int):Object{
var _local2:Array = this.splice(_arg1, 1);
return (_local2[0]);
}
public function insert(_arg1:Object, _arg2:int):void{
this.splice(_arg2, 0, _arg1);
}
public function cutNextAll(_arg1:uint):ArrayList{
var _local2:Array = this.splice(_arg1);
var _local3:ArrayList = new ArrayList();
_local3.add(_local2);
return (_local3);
}
public function reverseTo():ArrayList{
var _local1:ArrayList = new ArrayList();
var _local2:int;
var _local3:int = (this.length - 1);
while (_local3 >= 0) {
_local1[_local2] = this[_local3];
_local2++;
_local3--;
};
return (_local1);
}
public function removeByItem(_arg1:Object):void{
var _local3:Array;
var _local2:int;
while (_local2 < this.length) {
if (this[_local2] === _arg1){
_local3 = this.splice(_local2, 1);
return;
};
_local2++;
};
}
public function contains(_arg1:Object):Boolean{
var _local2:int;
while (_local2 < this.length) {
if (this[_local2] === _arg1){
return (true);
};
_local2++;
};
return (false);
}
}
}//package junlas.toolutil
Section 101
//wav (levelcomplete.wav)
package levelcomplete {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package levelcomplete
Section 102
//wav (lm_game.wav)
package lm_game {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package lm_game
Section 103
//wav (lm_game2.wav)
package lm_game2 {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package lm_game2
Section 104
//wav (lm_menu.wav)
package lm_menu {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package lm_menu
Section 105
//wav (lose.wav)
package lose {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package lose
Section 106
//wav (menu_press.wav)
package menu_press {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package menu_press
Section 107
//wav (menu_touch.wav)
package menu_touch {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package menu_touch
Section 108
//ByteArrayAsset (mx.core.ByteArrayAsset)
package mx.core {
import flash.utils.*;
public class ByteArrayAsset extends ByteArray implements IFlexAsset {
mx_internal static const VERSION:String = "3.5.0.12683";
}
}//package mx.core
Section 109
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 110
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 111
//Stats (net.hires.debug.Stats)
package net.hires.debug {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
public class Stats extends Sprite {
protected const WIDTH:uint = 70;
protected const HEIGHT:uint = 100;
protected var xml:XML;
protected var text:TextField;
protected var style:StyleSheet;
protected var timer:uint;
protected var fps:uint;
protected var ms:uint;
protected var ms_prev:uint;
protected var mem:Number;
protected var mem_max:Number;
protected var graph:Bitmap;
protected var rectangle:Rectangle;
protected var fps_graph:uint;
protected var mem_graph:uint;
protected var mem_max_graph:uint;
protected var theme:Object;
public function Stats(_arg1:Object=null):void{
this.theme = {bg:51, fps:0xFFFF00, ms:0xFF00, mem:0xFFFF, memmax:0xFF0070};
super();
this.mouseChildren = false;
this.mouseEnabled = false;
if (_arg1){
if (_arg1.bg != null){
this.theme.bg = _arg1.bg;
};
if (_arg1.fps != null){
this.theme.fps = _arg1.fps;
};
if (_arg1.ms != null){
this.theme.ms = _arg1.ms;
};
if (_arg1.mem != null){
this.theme.mem = _arg1.mem;
};
if (_arg1.memmax != null){
this.theme.memmax = _arg1.memmax;
};
};
this.mem_max = 0;
this.xml = <xml><fps>FPS:</fps><ms>MS:</ms><mem>MEM:</mem><memMax>MAX:</memMax></xml>
;
this.style = new StyleSheet();
this.style.setStyle("xml", {fontSize:"9px", fontFamily:"_sans", leading:"-2px"});
this.style.setStyle("fps", {color:this.hex2css(this.theme.fps)});
this.style.setStyle("ms", {color:this.hex2css(this.theme.ms)});
this.style.setStyle("mem", {color:this.hex2css(this.theme.mem)});
this.style.setStyle("memMax", {color:this.hex2css(this.theme.memmax)});
this.text = new TextField();
this.text.width = this.WIDTH;
this.text.height = 50;
this.text.styleSheet = this.style;
this.text.condenseWhite = true;
this.text.selectable = false;
this.text.mouseEnabled = false;
this.graph = new Bitmap();
this.graph.alpha = 0.3;
this.graph.y = 50;
this.rectangle = new Rectangle((this.WIDTH - 1), 0, 1, (this.HEIGHT - 50));
addEventListener(Event.ADDED_TO_STAGE, this.init, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, this.destroy, false, 0, true);
}
private function init(_arg1:Event):void{
graphics.beginFill(this.theme.bg, 0.3);
graphics.drawRect(0, 0, this.WIDTH, this.HEIGHT);
graphics.endFill();
addChild(this.text);
this.graph.bitmapData = new BitmapData(this.WIDTH, (this.HEIGHT - 50), false, this.theme.bg);
addChild(this.graph);
addEventListener(Event.ENTER_FRAME, this.update);
}
private function destroy(_arg1:Event):void{
graphics.clear();
while (numChildren > 0) {
removeChildAt(0);
};
this.graph.bitmapData.dispose();
removeEventListener(Event.ENTER_FRAME, this.update);
}
private function update(_arg1:Event):void{
this.timer = getTimer();
if ((this.timer - 1000) > this.ms_prev){
this.ms_prev = this.timer;
this.mem = Number((System.totalMemory * 9.54E-7).toFixed(3));
this.mem_max = ((this.mem_max > this.mem)) ? this.mem_max : this.mem;
this.fps_graph = Math.min(this.graph.height, ((this.fps / stage.frameRate) * this.graph.height));
this.mem_graph = (Math.min(this.graph.height, Math.sqrt(Math.sqrt((this.mem * 5000)))) - 2);
this.mem_max_graph = (Math.min(this.graph.height, Math.sqrt(Math.sqrt((this.mem_max * 5000)))) - 2);
this.graph.bitmapData.scroll(-1, 0);
this.graph.bitmapData.fillRect(this.rectangle, this.theme.bg);
this.graph.bitmapData.setPixel((this.graph.width - 1), (this.graph.height - this.fps_graph), this.theme.fps);
this.graph.bitmapData.setPixel((this.graph.width - 1), (this.graph.height - ((this.timer - this.ms) >> 1)), this.theme.ms);
this.graph.bitmapData.setPixel((this.graph.width - 1), (this.graph.height - this.mem_graph), this.theme.mem);
this.graph.bitmapData.setPixel((this.graph.width - 1), (this.graph.height - this.mem_max_graph), this.theme.memmax);
this.xml.fps = ((("FPS: " + this.fps) + " / ") + stage.frameRate);
this.xml.mem = ("MEM: " + this.mem);
this.xml.memMax = ("MAX: " + this.mem_max);
this.fps = 0;
};
this.fps++;
this.xml.ms = ("MS: " + (this.timer - this.ms));
this.ms = this.timer;
this.text.htmlText = this.xml;
}
private function onClick(_arg1:MouseEvent):void{
if (((mouseY / height) > 0.5)){
stage.frameRate--;
} else {
stage.frameRate++;
};
this.xml.fps = ((("FPS: " + this.fps) + " / ") + stage.frameRate);
this.text.htmlText = this.xml;
}
private function hex2css(_arg1:int):String{
return (("#" + _arg1.toString(16)));
}
}
}//package net.hires.debug
Section 112
//wav (open_curtain.wav)
package open_curtain {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package open_curtain
Section 113
//wav (other_touch.wav)
package other_touch {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package other_touch
Section 114
//wav (otherclick.wav)
package otherclick {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package otherclick
Section 115
//wav (reduce_points.wav)
package reduce_points {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package reduce_points
Section 116
//wav (show_dialog.wav)
package show_dialog {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package show_dialog
Section 117
//wav (tip_click.wav)
package tip_click {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package tip_click
Section 118
//MainTimeline (tnick_or_treat_ui_welldone_fla.MainTimeline)
package tnick_or_treat_ui_welldone_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var txtScore:TextField;
public var __id1_:MoreGamesLogoButton123;
public var icon_audio:SOUND;
public var mainmenu:but_MAIN;
public var icon_music:MUSIC;
public var __setPropDict:Dictionary;
public function MainTimeline(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50, 50, frame51, 51, frame52, 52, frame53, 53, frame54, 54, frame55, 55, frame56, 56, frame57, 57, frame58, 58, frame59, 59, frame60, 60, frame61, 61, frame62, 62, frame63, 63, frame64, 64, frame65, 65, frame66, 66, frame67, 67, frame68, 68, frame69, 69, frame70, 70, frame71, 71, frame72, 72, frame73, 73, frame74, 74, frame75, 75, frame76, 76, frame77, 77, frame78, 78, frame79, 79, frame80, 80, frame81, 81, frame82, 82, frame83, 83, frame84, 84, frame85, 85, frame86, 86, frame87, 87, frame88, 88, frame89, 89, frame90, 90, frame91, 91, frame92, 92, frame93, 93, frame94, 94, frame95, 95, frame96, 96, frame97, 97, frame98, 98, frame99, 99, frame100, 100, frame101, 101, frame102, 102, frame103, 103, frame104, 104, frame105, 105, frame106, 106, frame107, 107, frame108, 108, frame109, 109, frame110, 110, frame111, 111, frame112, 112, frame113, 113, frame114, 114, frame115, 115, frame116, 116, frame117, 117, frame118, 118, frame119, 119, frame120, 120, frame121, 121, frame122, 122, frame123, 123, frame124, 124, frame125, 125, frame126, 126, frame127, 127, frame128, 128, frame129, 129, frame130, 130, frame131, 131, frame132, 132, frame133, 133, frame134, 134, frame135, 135, frame136, 136, frame137, 137, frame138, 138, frame139, 139, frame140, 140, frame141, 141, frame142, 142, frame143, 143, frame144, 144, frame145, 145, frame146, 146, frame147, 147, frame148, 148, frame149, 149, frame150, 150, frame151, 151, frame152, 152, frame153, 153, frame154, 154, frame155, 155, frame156, 156, frame157, 157, frame158, 158, frame159, 159, frame160, 160, frame161, 161, frame162, 162, frame163, 163, frame164, 164, frame165, 165, frame166, 166, frame167, 167, frame168, 168, frame169, 169, frame170, 170, frame171, 171, frame172, 172, frame173, 173, frame174, 174, frame175, 175, frame176, 176, frame177, 177, frame178, 178, frame179, 179, frame180, 180, frame181, 181, frame182, 182, frame183, 183, frame184, 184, frame185, 185, frame186, 186, frame187, 187, frame188, 188, frame189, 189, frame190, 190, frame191, 191, frame192, 192, frame193, 193, frame194, 194, frame195, 195, frame196, 196, frame197, 197, frame198, 198, frame199, 199, frame200, 200, frame201, 201, frame202, 202, frame203, 203, frame204, 204, frame205, 205, frame206, 206, frame207, 207, frame208, 208, frame209, 209, frame210, 210, frame211, 211, frame212, 212, frame213, 213, frame214, 214, frame215, 215, frame216, 216, frame217, 217, frame218, 218, frame219, 219, frame220, 220, frame221, 221, frame222, 222, frame223, 223, frame224, 224, frame225, 225, frame226, 226, frame227, 227, frame228, 228, frame229, 229, frame230, 230, frame231, 231, frame232, 232, frame233, 233, frame234, 234, frame235, 235, frame236, 236, frame237, 237, frame238, 238, frame239, 239, frame240);
}
function __setProp___id1__ui_welldone_(){
if ((((__setPropDict[__id1_] == undefined)) || (!((((int(__setPropDict[__id1_]) >= 1)) && ((int(__setPropDict[__id1_]) <= 240))))))){
__setPropDict[__id1_] = currentFrame;
try {
__id1_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id1_.position = "button_gamecomplete_moregames";
__id1_.type = "moregames";
try {
__id1_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
};
}
function frame1(){
__setProp___id1__ui_welldone_();
}
function frame2(){
__setProp___id1__ui_welldone_();
}
function frame3(){
__setProp___id1__ui_welldone_();
}
function frame4(){
__setProp___id1__ui_welldone_();
}
function frame5(){
__setProp___id1__ui_welldone_();
}
function frame6(){
__setProp___id1__ui_welldone_();
}
function frame7(){
__setProp___id1__ui_welldone_();
}
function frame8(){
__setProp___id1__ui_welldone_();
}
function frame9(){
__setProp___id1__ui_welldone_();
}
function frame10(){
__setProp___id1__ui_welldone_();
}
function frame11(){
__setProp___id1__ui_welldone_();
}
function frame12(){
__setProp___id1__ui_welldone_();
}
function frame13(){
__setProp___id1__ui_welldone_();
}
function frame14(){
__setProp___id1__ui_welldone_();
}
function frame15(){
__setProp___id1__ui_welldone_();
}
function frame16(){
__setProp___id1__ui_welldone_();
}
function frame17(){
__setProp___id1__ui_welldone_();
}
function frame18(){
__setProp___id1__ui_welldone_();
}
function frame19(){
__setProp___id1__ui_welldone_();
}
function frame20(){
__setProp___id1__ui_welldone_();
}
function frame21(){
__setProp___id1__ui_welldone_();
}
function frame22(){
__setProp___id1__ui_welldone_();
}
function frame23(){
__setProp___id1__ui_welldone_();
}
function frame24(){
__setProp___id1__ui_welldone_();
}
function frame25(){
__setProp___id1__ui_welldone_();
}
function frame26(){
__setProp___id1__ui_welldone_();
}
function frame27(){
__setProp___id1__ui_welldone_();
}
function frame28(){
__setProp___id1__ui_welldone_();
}
function frame29(){
__setProp___id1__ui_welldone_();
}
function frame30(){
__setProp___id1__ui_welldone_();
}
function frame31(){
__setProp___id1__ui_welldone_();
}
function frame32(){
__setProp___id1__ui_welldone_();
}
function frame33(){
__setProp___id1__ui_welldone_();
}
function frame34(){
__setProp___id1__ui_welldone_();
}
function frame35(){
__setProp___id1__ui_welldone_();
}
function frame36(){
__setProp___id1__ui_welldone_();
}
function frame37(){
__setProp___id1__ui_welldone_();
}
function frame38(){
__setProp___id1__ui_welldone_();
}
function frame39(){
__setProp___id1__ui_welldone_();
}
function frame40(){
__setProp___id1__ui_welldone_();
}
function frame41(){
__setProp___id1__ui_welldone_();
}
function frame42(){
__setProp___id1__ui_welldone_();
}
function frame43(){
__setProp___id1__ui_welldone_();
}
function frame44(){
__setProp___id1__ui_welldone_();
}
function frame45(){
__setProp___id1__ui_welldone_();
}
function frame46(){
__setProp___id1__ui_welldone_();
}
function frame47(){
__setProp___id1__ui_welldone_();
}
function frame48(){
__setProp___id1__ui_welldone_();
}
function frame49(){
__setProp___id1__ui_welldone_();
}
function frame50(){
__setProp___id1__ui_welldone_();
}
function frame51(){
__setProp___id1__ui_welldone_();
}
function frame52(){
__setProp___id1__ui_welldone_();
}
function frame53(){
__setProp___id1__ui_welldone_();
}
function frame54(){
__setProp___id1__ui_welldone_();
}
function frame55(){
__setProp___id1__ui_welldone_();
}
function frame56(){
__setProp___id1__ui_welldone_();
}
function frame57(){
__setProp___id1__ui_welldone_();
}
function frame58(){
__setProp___id1__ui_welldone_();
}
function frame59(){
__setProp___id1__ui_welldone_();
}
function frame60(){
__setProp___id1__ui_welldone_();
}
function frame61(){
__setProp___id1__ui_welldone_();
}
function frame62(){
__setProp___id1__ui_welldone_();
}
function frame63(){
__setProp___id1__ui_welldone_();
}
function frame64(){
__setProp___id1__ui_welldone_();
}
function frame65(){
__setProp___id1__ui_welldone_();
}
function frame66(){
__setProp___id1__ui_welldone_();
}
function frame67(){
__setProp___id1__ui_welldone_();
}
function frame68(){
__setProp___id1__ui_welldone_();
}
function frame69(){
__setProp___id1__ui_welldone_();
}
function frame70(){
__setProp___id1__ui_welldone_();
}
function frame71(){
__setProp___id1__ui_welldone_();
}
function frame72(){
__setProp___id1__ui_welldone_();
}
function frame73(){
__setProp___id1__ui_welldone_();
}
function frame74(){
__setProp___id1__ui_welldone_();
}
function frame75(){
__setProp___id1__ui_welldone_();
}
function frame76(){
__setProp___id1__ui_welldone_();
}
function frame77(){
__setProp___id1__ui_welldone_();
}
function frame78(){
__setProp___id1__ui_welldone_();
}
function frame79(){
__setProp___id1__ui_welldone_();
}
function frame80(){
__setProp___id1__ui_welldone_();
}
function frame81(){
__setProp___id1__ui_welldone_();
}
function frame82(){
__setProp___id1__ui_welldone_();
}
function frame83(){
__setProp___id1__ui_welldone_();
}
function frame84(){
__setProp___id1__ui_welldone_();
}
function frame85(){
__setProp___id1__ui_welldone_();
}
function frame86(){
__setProp___id1__ui_welldone_();
}
function frame87(){
__setProp___id1__ui_welldone_();
}
function frame88(){
__setProp___id1__ui_welldone_();
}
function frame89(){
__setProp___id1__ui_welldone_();
}
function frame90(){
__setProp___id1__ui_welldone_();
}
function frame91(){
__setProp___id1__ui_welldone_();
}
function frame92(){
__setProp___id1__ui_welldone_();
}
function frame93(){
__setProp___id1__ui_welldone_();
}
function frame94(){
__setProp___id1__ui_welldone_();
}
function frame95(){
__setProp___id1__ui_welldone_();
}
function frame96(){
__setProp___id1__ui_welldone_();
}
function frame97(){
__setProp___id1__ui_welldone_();
}
function frame98(){
__setProp___id1__ui_welldone_();
}
function frame99(){
__setProp___id1__ui_welldone_();
}
function frame100(){
__setProp___id1__ui_welldone_();
}
function frame101(){
__setProp___id1__ui_welldone_();
}
function frame102(){
__setProp___id1__ui_welldone_();
}
function frame103(){
__setProp___id1__ui_welldone_();
}
function frame104(){
__setProp___id1__ui_welldone_();
}
function frame105(){
__setProp___id1__ui_welldone_();
}
function frame106(){
__setProp___id1__ui_welldone_();
}
function frame107(){
__setProp___id1__ui_welldone_();
}
function frame108(){
__setProp___id1__ui_welldone_();
}
function frame109(){
__setProp___id1__ui_welldone_();
}
function frame110(){
__setProp___id1__ui_welldone_();
}
function frame111(){
__setProp___id1__ui_welldone_();
}
function frame112(){
__setProp___id1__ui_welldone_();
}
function frame113(){
__setProp___id1__ui_welldone_();
}
function frame114(){
__setProp___id1__ui_welldone_();
}
function frame115(){
__setProp___id1__ui_welldone_();
}
function frame116(){
__setProp___id1__ui_welldone_();
}
function frame117(){
__setProp___id1__ui_welldone_();
}
function frame118(){
__setProp___id1__ui_welldone_();
}
function frame119(){
__setProp___id1__ui_welldone_();
}
function frame120(){
__setProp___id1__ui_welldone_();
}
function frame121(){
__setProp___id1__ui_welldone_();
}
function frame122(){
__setProp___id1__ui_welldone_();
}
function frame123(){
__setProp___id1__ui_welldone_();
}
function frame124(){
__setProp___id1__ui_welldone_();
}
function frame125(){
__setProp___id1__ui_welldone_();
}
function frame126(){
__setProp___id1__ui_welldone_();
}
function frame127(){
__setProp___id1__ui_welldone_();
}
function frame128(){
__setProp___id1__ui_welldone_();
}
function frame129(){
__setProp___id1__ui_welldone_();
}
function frame130(){
__setProp___id1__ui_welldone_();
}
function frame131(){
__setProp___id1__ui_welldone_();
}
function frame132(){
__setProp___id1__ui_welldone_();
}
function frame133(){
__setProp___id1__ui_welldone_();
}
function frame134(){
__setProp___id1__ui_welldone_();
}
function frame135(){
__setProp___id1__ui_welldone_();
}
function frame136(){
__setProp___id1__ui_welldone_();
}
function frame137(){
__setProp___id1__ui_welldone_();
}
function frame138(){
__setProp___id1__ui_welldone_();
}
function frame139(){
__setProp___id1__ui_welldone_();
}
function frame140(){
__setProp___id1__ui_welldone_();
}
function frame141(){
__setProp___id1__ui_welldone_();
}
function frame142(){
__setProp___id1__ui_welldone_();
}
function frame143(){
__setProp___id1__ui_welldone_();
}
function frame144(){
__setProp___id1__ui_welldone_();
}
function frame145(){
__setProp___id1__ui_welldone_();
}
function frame146(){
__setProp___id1__ui_welldone_();
}
function frame147(){
__setProp___id1__ui_welldone_();
}
function frame148(){
__setProp___id1__ui_welldone_();
}
function frame149(){
__setProp___id1__ui_welldone_();
}
function frame150(){
__setProp___id1__ui_welldone_();
}
function frame151(){
__setProp___id1__ui_welldone_();
}
function frame152(){
__setProp___id1__ui_welldone_();
}
function frame153(){
__setProp___id1__ui_welldone_();
}
function frame154(){
__setProp___id1__ui_welldone_();
}
function frame155(){
__setProp___id1__ui_welldone_();
}
function frame156(){
__setProp___id1__ui_welldone_();
}
function frame157(){
__setProp___id1__ui_welldone_();
}
function frame158(){
__setProp___id1__ui_welldone_();
}
function frame159(){
__setProp___id1__ui_welldone_();
}
function frame160(){
__setProp___id1__ui_welldone_();
}
function frame161(){
__setProp___id1__ui_welldone_();
}
function frame162(){
__setProp___id1__ui_welldone_();
}
function frame163(){
__setProp___id1__ui_welldone_();
}
function frame164(){
__setProp___id1__ui_welldone_();
}
function frame165(){
__setProp___id1__ui_welldone_();
}
function frame166(){
__setProp___id1__ui_welldone_();
}
function frame167(){
__setProp___id1__ui_welldone_();
}
function frame168(){
__setProp___id1__ui_welldone_();
}
function frame169(){
__setProp___id1__ui_welldone_();
}
function frame170(){
__setProp___id1__ui_welldone_();
}
function frame171(){
__setProp___id1__ui_welldone_();
}
function frame172(){
__setProp___id1__ui_welldone_();
}
function frame173(){
__setProp___id1__ui_welldone_();
}
function frame174(){
__setProp___id1__ui_welldone_();
}
function frame175(){
__setProp___id1__ui_welldone_();
}
function frame176(){
__setProp___id1__ui_welldone_();
}
function frame177(){
__setProp___id1__ui_welldone_();
}
function frame178(){
__setProp___id1__ui_welldone_();
}
function frame179(){
__setProp___id1__ui_welldone_();
}
function frame180(){
__setProp___id1__ui_welldone_();
}
function frame181(){
__setProp___id1__ui_welldone_();
}
function frame182(){
__setProp___id1__ui_welldone_();
}
function frame183(){
__setProp___id1__ui_welldone_();
}
function frame184(){
__setProp___id1__ui_welldone_();
}
function frame185(){
__setProp___id1__ui_welldone_();
}
function frame186(){
__setProp___id1__ui_welldone_();
}
function frame187(){
__setProp___id1__ui_welldone_();
}
function frame188(){
__setProp___id1__ui_welldone_();
}
function frame189(){
__setProp___id1__ui_welldone_();
}
function frame190(){
__setProp___id1__ui_welldone_();
}
function frame191(){
__setProp___id1__ui_welldone_();
}
function frame192(){
__setProp___id1__ui_welldone_();
}
function frame193(){
__setProp___id1__ui_welldone_();
}
function frame194(){
__setProp___id1__ui_welldone_();
}
function frame195(){
__setProp___id1__ui_welldone_();
}
function frame196(){
__setProp___id1__ui_welldone_();
}
function frame197(){
__setProp___id1__ui_welldone_();
}
function frame198(){
__setProp___id1__ui_welldone_();
}
function frame199(){
__setProp___id1__ui_welldone_();
}
function frame200(){
__setProp___id1__ui_welldone_();
}
function frame201(){
__setProp___id1__ui_welldone_();
}
function frame202(){
__setProp___id1__ui_welldone_();
}
function frame203(){
__setProp___id1__ui_welldone_();
}
function frame204(){
__setProp___id1__ui_welldone_();
}
function frame205(){
__setProp___id1__ui_welldone_();
}
function frame206(){
__setProp___id1__ui_welldone_();
}
function frame207(){
__setProp___id1__ui_welldone_();
}
function frame208(){
__setProp___id1__ui_welldone_();
}
function frame209(){
__setProp___id1__ui_welldone_();
}
function frame210(){
__setProp___id1__ui_welldone_();
}
function frame211(){
__setProp___id1__ui_welldone_();
}
function frame212(){
__setProp___id1__ui_welldone_();
}
function frame213(){
__setProp___id1__ui_welldone_();
}
function frame214(){
__setProp___id1__ui_welldone_();
}
function frame215(){
__setProp___id1__ui_welldone_();
}
function frame216(){
__setProp___id1__ui_welldone_();
}
function frame217(){
__setProp___id1__ui_welldone_();
}
function frame218(){
__setProp___id1__ui_welldone_();
}
function frame219(){
__setProp___id1__ui_welldone_();
}
function frame220(){
__setProp___id1__ui_welldone_();
}
function frame221(){
__setProp___id1__ui_welldone_();
}
function frame222(){
__setProp___id1__ui_welldone_();
}
function frame223(){
__setProp___id1__ui_welldone_();
}
function frame224(){
__setProp___id1__ui_welldone_();
}
function frame225(){
__setProp___id1__ui_welldone_();
}
function frame226(){
__setProp___id1__ui_welldone_();
}
function frame227(){
__setProp___id1__ui_welldone_();
}
function frame228(){
__setProp___id1__ui_welldone_();
}
function frame229(){
__setProp___id1__ui_welldone_();
}
function frame230(){
__setProp___id1__ui_welldone_();
}
function frame231(){
__setProp___id1__ui_welldone_();
}
function frame232(){
__setProp___id1__ui_welldone_();
}
function frame233(){
__setProp___id1__ui_welldone_();
}
function frame234(){
__setProp___id1__ui_welldone_();
}
function frame235(){
__setProp___id1__ui_welldone_();
}
function frame236(){
__setProp___id1__ui_welldone_();
}
function frame237(){
__setProp___id1__ui_welldone_();
}
function frame238(){
__setProp___id1__ui_welldone_();
}
function frame239(){
__setProp___id1__ui_welldone_();
}
function frame240(){
__setProp___id1__ui_welldone_();
}
}
}//package tnick_or_treat_ui_welldone_fla
Section 119
//Cookie (utils.Cookie)
package utils {
import flash.net.*;
public class Cookie {
private const NAME:String = "Daily_Tarot_Reading";
private static var _instance:Cookie;
private static var _share:SharedObject;
private static var _data:Object;
public function Cookie():void{
init();
}
public function get money():Object{
return (_data["money"]);
}
private function initData():void{
_data = _share.data;
initMaxLev();
initCurMoney();
initGridding();
initThermometer();
initSound();
initAchi();
}
public function get achi():Object{
return (_data["achi"]);
}
public function get lev():Object{
return (_data["lev"]);
}
public function get thermometer():Object{
return (_data["thermometer"]);
}
private function initMaxLev():void{
var _local1:Object;
if (_data["lev"] == null){
_local1 = {maxLev:1};
_data["lev"] = _local1;
};
}
private function initShare():void{
_share = SharedObject.getLocal(NAME, "/");
}
public function init():void{
initShare();
initData();
}
public function del():void{
_share.close();
}
private function initAchi():void{
var _local1:Object;
if (_data["achi"] == null){
_local1 = {achi1:false, achi2:false, achi3:false, achi4:false, achi5:false};
_data["achi"] = _local1;
};
}
private function initGridding():void{
var _local1:Object;
if (_data["gridding"] == null){
_local1 = {griddingLengthNumber:6};
_data["gridding"] = _local1;
};
}
private function initCurMoney():void{
var _local1:Object;
if (_data["money"] == null){
_local1 = {curMoney:0};
_data["money"] = _local1;
};
}
public function get gridding():Object{
return (_data["gridding"]);
}
private function initThermometer():void{
var _local1:Object;
if (_data["thermometer"] == null){
_local1 = {thermometerLev:1};
_data["thermometer"] = _local1;
};
}
public function get sound():Object{
return (_data["sound"]);
}
private function initSound():void{
var _local1:Object;
if (_data["sound"] == null){
_local1 = {soundOn:true};
_data["sound"] = _local1;
};
}
public static function get instance():Cookie{
if (_instance == null){
_instance = new (Cookie);
};
return (_instance);
}
public static function get data():Object{
return (_data);
}
public static function flush():void{
_share.flush();
}
public static function clear():void{
_share.clear();
}
}
}//package utils
Section 120
//ExtButton (utils.ExtButton)
package utils {
import flash.display.*;
import flash.events.*;
import com.zhaocha.movies.*;
public class ExtButton extends MovieClip {
private var _enable:Boolean;
private var _listenManage:ListenManage;
public function ExtButton(){
this.stop();
this.buttonMode = true;
this.mouseChildren = false;
_enable = true;
initEvent();
_listenManage = new ListenManage(this);
}
private function rollOverHandler(_arg1:MouseEvent):void{
if (_enable){
this.gotoAndStop(2);
} else {
this.gotoAndStop(5);
};
}
private function mouseDownHandler(_arg1:MouseEvent):void{
if (_enable){
this.gotoAndStop(3);
} else {
this.gotoAndStop(6);
};
}
public function set enable(_arg1:Boolean):void{
_enable = _arg1;
if (((_enable) && ((this.currentFrame >= 3)))){
this.gotoAndStop((this.currentFrame - 3));
};
if (((!(_enable)) && ((this.currentFrame < 3)))){
this.gotoAndStop((this.currentFrame + 3));
};
}
private function mouseUpHandler(_arg1:MouseEvent):void{
if (_enable){
this.gotoAndStop(2);
} else {
this.gotoAndStop(5);
};
}
private function delEvent():void{
this.removeEventListener(MouseEvent.ROLL_OVER, rollOverHandler);
this.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
this.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
this.removeEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
this.removeEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
}
private function initEvent():void{
this.addEventListener(MouseEvent.ROLL_OVER, rollOverHandler);
this.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
this.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
this.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
this.addEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
}
public function get enable():Boolean{
return (_enable);
}
private function rollOutHandler(_arg1:MouseEvent):void{
if (_enable){
this.gotoAndStop(1);
} else {
this.gotoAndStop(4);
};
}
private function removeFromStageHandler(_arg1:Event):void{
delEvent();
_listenManage.destroy();
}
}
}//package utils
Section 121
//SoundsManager (utils.SoundsManager)
package utils {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class SoundsManager {
private const VALUE_FADE:Number = 0.02;
private var fadeInTimer:Timer;
private var curMusic_sc:SoundChannel;
private var curMusic_so:Sound;
private var valueSound:Number;
private var valueGroupSound:Number;
private var fadeTimes:int;
private var fadeInLabel:String;
private var valueMusic:Number;
private var fadeOutTimer:Timer;
private var curMusic_st:String;
private var enabled:Boolean;
private var pauseMusic_st:String;
private var soundArr:Array;
private var musicEnabled:Boolean;
private var currGroupSoundId:int;
private var groupSoundArr:Array;
private var pausePos:Number;
private static var currentInstance:SoundsManager;
public function SoundsManager(){
init();
}
private function initGroupSound():void{
var _local1:Object = groupSoundArr[currGroupSoundId];
_local1["soundChannel"] = _local1["sound"].play(0, 0, new SoundTransform(valueGroupSound));
initGroupSoundChannelEvent(_local1["soundChannel"]);
}
public function get ValueGroupSound():Number{
return (valueGroupSound);
}
public function set ValueSound(_arg1:Number):void{
var _local2:int;
var _local3:SoundTransform;
valueSound = _arg1;
if (soundArr != null){
_local2 = 0;
while (_local2 < soundArr.length) {
_local3 = soundArr[_local2]["soundChannel"].soundTransform;
_local3.volume = _arg1;
soundArr[_local2]["soundChannel"].soundTransform = _local3;
_local2++;
};
};
}
private function stopFadeIn():void{
var _local1:SoundTransform;
if (((curMusic_sc) && (curMusic_sc.soundTransform))){
_local1 = curMusic_sc.soundTransform;
_local1.volume = valueMusic;
curMusic_sc.soundTransform = _local1;
delFadeInTimer();
};
}
public function set ValueGroupSound(_arg1:Number):void{
var _local2:SoundTransform;
valueGroupSound = _arg1;
if (groupSoundArr != null){
_local2 = groupSoundArr[currGroupSoundId]["soundChannel"].soundTransform;
_local2.volume = _arg1;
groupSoundArr[currGroupSoundId]["soundChannel"].soundTransform = _local2;
};
}
private function remSoundArr(_arg1:SoundChannel):void{
var _local2:Object;
var _local3:int;
while (_local3 < soundArr.length) {
_local2 = soundArr[_local3];
if (((_local2["soundChannel"]) && ((_local2["soundChannel"] == _arg1)))){
_local2["soundChannel"].stop();
_local2["label"] = null;
_local2["sound"] = null;
_local2["soundChannel"] = null;
soundArr.splice(_local3, 1);
};
_local3++;
};
}
public function stopAllSound():void{
var _local1:int;
while (_local1 < soundArr.length) {
delSound(soundArr[_local1]["soundChannel"]);
_local1++;
};
}
public function get FadeTimes():int{
return (fadeTimes);
}
public function fadeOutMusic():void{
if (curMusic_sc != null){
startFadeOut();
};
}
public function set FadeTimes(_arg1:int):void{
fadeTimes = _arg1;
}
public function get curMusic_sound():Sound{
return (curMusic_so);
}
private function init():void{
FadeTimes = 300;
Enabled = true;
MusicEnable = true;
ValueMusic = 1;
ValueSound = 1;
valueGroupSound = 1;
soundArr = new Array();
groupSoundArr = new Array();
}
private function addSoundArr(_arg1:Object):void{
soundArr.push(_arg1);
}
public function overOldSound(_arg1:String, _arg2:Number, _arg3:int=0):void{
var _local4:Boolean;
var _local5:Object;
var _local6:int;
if (enabled){
_local4 = false;
_local6 = 0;
while (_local6 < soundArr.length) {
_local5 = soundArr[_local6];
if (_local5["label"] == _arg1){
_local4 = true;
break;
};
_local6++;
};
if (_local4){
delSound(_local5["soundChannel"]);
};
playSound(_arg1, _arg2, _arg3);
};
}
public function delAllTimer():void{
if (fadeInTimer != null){
fadeInTimer.removeEventListener(TimerEvent.TIMER, fadeIn);
fadeInTimer = null;
};
if (fadeOutTimer != null){
fadeOutTimer.removeEventListener(TimerEvent.TIMER, fadeOut);
fadeOutTimer = null;
};
}
private function startFadeIn(_arg1:String):void{
initMusic(_arg1, 0.3);
initFadeInTimer();
}
public function set ValueMusic(_arg1:Number):void{
var _local2:SoundTransform;
valueMusic = _arg1;
if (curMusic_sc != null){
_local2 = curMusic_sc.soundTransform;
_local2.volume = _arg1;
curMusic_sc.soundTransform = _local2;
};
}
public function stopSound(_arg1:String):void{
var _local2:Object;
var _local3:int;
while (_local3 < soundArr.length) {
_local2 = soundArr[_local3];
if (_local2["label"] == _arg1){
delSound(_local2["soundChannel"]);
break;
};
_local3++;
};
}
public function get Enabled():Boolean{
return (enabled);
}
private function delGroupSoundChannelEvent(_arg1:SoundChannel):void{
_arg1.removeEventListener(Event.SOUND_COMPLETE, groupSoundCompleteHandler);
}
private function fadeOut(_arg1:TimerEvent):void{
var _local2:SoundTransform;
if (curMusic_sc){
_local2 = curMusic_sc.soundTransform;
_local2.volume = (_local2.volume - VALUE_FADE);
curMusic_sc.soundTransform = _local2;
if (curMusic_sc.soundTransform.volume <= 0){
stopFadeOut();
};
};
}
public function playSound(_arg1:String, _arg2:Number, _arg3:int=0):void{
if (enabled){
initSound(_arg1, _arg2, _arg3);
};
}
public function get ValueSound():Number{
return (valueSound);
}
public function get currentMusic_sc():String{
if (curMusic_sc == null){
return (null);
};
return (curMusic_st);
}
private function delSound(_arg1:SoundChannel):void{
delSoundChannelEvent(_arg1);
remSoundArr(_arg1);
}
private function fadeIn(_arg1:TimerEvent):void{
var _local2:SoundTransform;
if (curMusic_sc){
_local2 = curMusic_sc.soundTransform;
_local2.volume = (_local2.volume + VALUE_FADE);
curMusic_sc.soundTransform = _local2;
if (curMusic_sc.soundTransform.volume >= valueMusic){
stopFadeIn();
};
};
}
public function set Enabled(_arg1:Boolean):void{
enabled = _arg1;
if (_arg1){
} else {
stopAllSound();
};
}
public function overNewSound(_arg1:String, _arg2:Number, _arg3:int=0):void{
var _local4:Boolean;
var _local5:Object;
var _local6:int;
if (enabled){
_local4 = false;
_local6 = 0;
while (_local6 < soundArr.length) {
_local5 = soundArr[_local6];
if (_local5["label"] == _arg1){
_local4 = true;
break;
};
_local6++;
};
if (!_local4){
playSound(_arg1, _arg2, _arg3);
};
};
}
public function pauseMusic():void{
if (curMusic_sc != null){
pausePos = curMusic_sc.position;
curMusic_sc.stop();
curMusic_sc = null;
pauseMusic_st = curMusic_st;
};
}
public function set MusicEnable(_arg1:Boolean):void{
musicEnabled = _arg1;
if (curMusic_st != null){
if (_arg1){
restartMusic();
} else {
pauseMusic();
};
};
}
private function delGroupSound():void{
var _local1:Object = groupSoundArr[currGroupSoundId];
_local1["soundChannel"].stop();
_local1["soundChannel"] = null;
}
public function restartMusic():void{
if (pauseMusic_st == curMusic_st){
curMusic_sc = curMusic_so.play(pausePos, int.MAX_VALUE, new SoundTransform(valueMusic));
if (curMusic_sc == null){
curMusic_sc = curMusic_so.play(1, int.MAX_VALUE, new SoundTransform(valueMusic));
};
pausePos = NaN;
} else {
initMusic(curMusic_st, ValueMusic);
};
}
private function stopFadeOut():void{
delFadeOutTimer();
delMusic();
if (fadeInLabel != null){
initMusic(fadeInLabel, 0);
initFadeInTimer();
fadeInLabel = null;
};
}
public function playMusic(_arg1:String, _arg2:Number):void{
curMusic_st = _arg1;
if (musicEnabled){
if (curMusic_sc != null){
stopMusic();
};
initMusic(_arg1, _arg2);
};
}
public function overNewMusic(_arg1:String, _arg2:Number):void{
if (((!((curMusic_st == _arg1))) && (musicEnabled))){
playMusic(_arg1, _arg2);
};
}
private function delMusic():void{
curMusic_sc.stop();
curMusic_st = null;
curMusic_so = null;
curMusic_sc = null;
}
private function delFadeOutTimer():void{
fadeOutTimer.stop();
fadeOutTimer.removeEventListener(TimerEvent.TIMER, fadeOut);
fadeOutTimer = null;
}
private function initSound(_arg1:String, _arg2:Number, _arg3:int):void{
var _local4:Object = new Object();
_local4["label"] = _arg1;
_local4["sound"] = getSound(_arg1);
_local4["soundChannel"] = _local4["sound"].play(0, _arg3, new SoundTransform(_arg2));
initSoundChannelEvent(_local4["soundChannel"]);
addSoundArr(_local4);
}
public function getSound(_arg1:String):Sound{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:Sound = new (_local2);
return (_local3);
}
private function groupSoundCompleteHandler(_arg1:Event):void{
delGroupSound();
currGroupSoundId++;
if (currGroupSoundId == groupSoundArr.length){
currGroupSoundId = 0;
};
initGroupSound();
}
public function setOneValueSound(_arg1:String, _arg2:Number):void{
var _local4:SoundTransform;
var _local3:int;
while (_local3 < soundArr.length) {
if (_arg1 == soundArr[_local3]["label"]){
_local4 = soundArr[_local3]["soundChannel"].soundTransform;
};
_local4.volume = _arg2;
soundArr[_local3]["soundChannel"].soundTransform = _local4;
_local3++;
};
}
public function get ValueMusic():Number{
return (valueMusic);
}
public function fadeInMusic(_arg1:String):void{
curMusic_st = _arg1;
if (musicEnabled){
if (curMusic_sc != null){
fadeInLabel = _arg1;
startFadeOut();
trace("fadeout");
} else {
trace("startFadeIn");
startFadeIn(_arg1);
};
};
}
public function stopMusic():void{
if (curMusic_sc != null){
delMusic();
};
}
private function initFadeOutTimer():void{
if (fadeOutTimer){
return;
};
if (fadeInTimer){
delFadeInTimer();
};
fadeOutTimer = new Timer((fadeTimes / (valueMusic / VALUE_FADE)));
fadeOutTimer.addEventListener(TimerEvent.TIMER, fadeOut);
fadeOutTimer.start();
}
private function initFadeInTimer():void{
if (fadeInTimer){
return;
};
if (fadeOutTimer){
delFadeOutTimer();
};
fadeInTimer = new Timer((fadeTimes / (valueMusic / VALUE_FADE)));
fadeInTimer.addEventListener(TimerEvent.TIMER, fadeIn);
fadeInTimer.start();
}
private function initSoundChannelEvent(_arg1:SoundChannel):void{
if (_arg1){
_arg1.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
};
}
public function get MusicEnable():Boolean{
return (musicEnabled);
}
private function startFadeOut():void{
initFadeOutTimer();
}
public function stopGroupSound():void{
var _local1:Object;
if (groupSoundArr != null){
_local1 = groupSoundArr[currGroupSoundId];
if (_local1 != null){
delGroupSoundChannelEvent(_local1["soundChannel"]);
delGroupSound();
};
groupSoundArr = new Array();
currGroupSoundId = NaN;
};
}
private function delSoundChannelEvent(_arg1:SoundChannel):void{
if (_arg1){
_arg1.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
};
}
private function initMusic(_arg1:String, _arg2:Number):void{
curMusic_st = _arg1;
curMusic_so = getSound(_arg1);
curMusic_sc = curMusic_so.play(0, int.MAX_VALUE, new SoundTransform(_arg2));
}
private function initGroupSoundChannelEvent(_arg1:SoundChannel):void{
_arg1.addEventListener(Event.SOUND_COMPLETE, groupSoundCompleteHandler);
}
private function delFadeInTimer():void{
fadeInTimer.stop();
fadeInTimer.removeEventListener(TimerEvent.TIMER, fadeIn);
fadeInTimer = null;
}
private function soundCompleteHandler(_arg1:Event):void{
delSound((_arg1.target as SoundChannel));
}
public function addAllTimer():void{
if (fadeInTimer == null){
fadeInTimer = new Timer((fadeTimes / (valueMusic / VALUE_FADE)));
fadeInTimer.addEventListener(TimerEvent.TIMER, fadeIn);
fadeInTimer.start();
};
if (fadeOutTimer == null){
fadeOutTimer = new Timer((fadeTimes / (valueMusic / VALUE_FADE)));
fadeOutTimer.addEventListener(TimerEvent.TIMER, fadeOut);
fadeOutTimer.start();
};
}
public static function get instance():SoundsManager{
if (currentInstance == null){
currentInstance = new (SoundsManager);
};
return (currentInstance);
}
}
}//package utils
Section 122
//Tools (utils.Tools)
package utils {
import flash.display.*;
import flash.events.*;
public class Tools {
public static var findObjectByName:Function = function (_arg1:DisplayObjectContainer, _arg2:String):void{
var _local3:DisplayObject;
var _local4:int;
while (_local4 < _arg1.numChildren) {
_local3 = _arg1.getChildAt(_local4);
if (!_local3){
} else {
if (_local3.name == _arg2){
findObjectByName[_arg2] = _local3;
return;
};
if ((_local3 is DisplayObjectContainer)){
findObjectByName(DisplayObjectContainer(_local3), _arg2);
};
};
_local4++;
};
};
public static function getParentObjectByType(_arg1:Class, _arg2:DisplayObject):DisplayObjectContainer{
var _local3:DisplayObjectContainer = _arg2.parent;
while (((!((_local3 == _arg2.root))) && (_local3.parent))) {
if ((_local3 is _arg1)){
return (_local3);
};
_local3 = _local3.parent;
};
throw (new Error("No such parent type found"));
}
public static function getParentObjectByName(_arg1:String, _arg2:DisplayObject):DisplayObjectContainer{
var _local3:DisplayObjectContainer = _arg2.parent;
while (((!((_local3 == _arg2.root))) && (_local3.parent))) {
if (_local3.name == _arg1){
return (_local3);
};
_local3 = _local3.parent;
};
throw (new Error("No such parent type found"));
}
public static function destory(_arg1:EventDispatcher, _arg2:Boolean=true):void{
var _local4:int;
var _local3:DisplayObject = (_arg1 as DisplayObject);
if (!_local3){
return;
};
if ((_local3 is Bitmap)){
(_local3 as Bitmap).bitmapData.dispose();
};
if ((_local3 is Sprite)){
Sprite(_local3).graphics.clear();
};
if ((_local3 is DisplayObjectContainer)){
if (_arg2){
_local4 = ((_local3 as DisplayObjectContainer).numChildren - 1);
while (_local4 >= 0) {
destory((_local3 as DisplayObjectContainer).getChildAt(_local4), true);
_local4--;
};
};
};
if (_local3.parent){
_local3.parent.removeChild(_local3);
};
}
public static function removeDisplayList(_arg1:DisplayObjectContainer):void{
var _local2:DisplayObject;
while (_arg1.numChildren) {
_local2 = _arg1.getChildAt(0);
if (!_local2){
break;
};
_arg1.removeChild(_local2);
if ((_local2 is Bitmap)){
(_local2 as Bitmap).bitmapData.dispose();
};
if ((_local2 is DisplayObjectContainer)){
if ((_local2 is Sprite)){
(_local2 as Sprite).graphics.clear();
};
removeDisplayList(DisplayObjectContainer(_local2));
};
_local2 = null;
};
}
}
}//package utils
Section 123
//wav (win.wav)
package win {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package win
Section 124
//AbstractEffect (zlong.breathxue.utils.animationEffect.AbstractEffect)
package zlong.breathxue.utils.animationEffect {
import flash.display.*;
import zlong.breathxue.utils.*;
import flash.utils.*;
public class AbstractEffect {
protected var _mc:DisplayObject;
protected var _id:uint;
protected var _isMerge:Boolean;
protected var _runframe:uint;
protected var _stepframe:uint;
protected var _frameTimerId:uint;
protected var _running:Boolean;
breathxue_utils_internal static const VERSION:String = "v1.15.201008201148";
public function AbstractEffect(){
if (getQualifiedClassName(this) == "zlong::breathxue::utils::animationEffect::AbstractEffect"){
throw (new ArgumentError("can't be constructed"));
};
}
protected function initAbSet(_arg1:uint, _arg2:DisplayObject, _arg3:uint, _arg4:Boolean):void{
this._id = _arg1;
this._mc = _arg2;
this._isMerge = _arg4;
this._runframe = _arg3;
this._stepframe = 0;
this._frameTimerId = 0;
this._running = true;
if (this._mc == null){
throw (new ArgumentError("mc can't = null"));
};
}
function checkFinish():Boolean{
return (true);
}
function step():void{
}
function dispatchEvent():void{
}
function pause():void{
this._running = false;
if (this._frameTimerId != 0){
FrameTimer.pauseById(this._frameTimerId);
};
}
function reStart():void{
this._running = true;
if (this._frameTimerId != 0){
FrameTimer.reStartById(this._frameTimerId);
};
}
function del():void{
}
protected function delMeByFrameTimer():void{
this._frameTimerId = 0;
var _local1 = getDefinitionByName(getQualifiedClassName(this));
_local1["del"](this._id);
this.dispatchEvent();
}
function get mc():DisplayObject{
return (this._mc);
}
function get isMerge():Boolean{
return (this._isMerge);
}
function get id():uint{
return (this._id);
}
}
}//package zlong.breathxue.utils.animationEffect
Section 125
//EffectManager (zlong.breathxue.utils.animationEffect.EffectManager)
package zlong.breathxue.utils.animationEffect {
import flash.display.*;
import flash.events.*;
import zlong.breathxue.utils.animationEffect.*;
import zlong.breathxue.utils.*;
class EffectManager {
public var IdCount:uint;
private var _arr:Array;
breathxue_utils_internal static const VERSION:String = "v1.15.201008201148";
function EffectManager():void{
this.IdCount = 0;
this._arr = new Array();
}
public function push(_arg1:AbstractEffect):uint{
this._arr.push(_arg1);
if (this._arr.length > 0){
GoddenEnterFrame.instance.addEventListener(Event.ENTER_FRAME, this.run);
};
return (this.IdCount++);
}
function findAndDeleteSameMcEffect(_arg1:DisplayObject, _arg2:Boolean):AbstractEffect{
var _local4:AbstractEffect;
var _local3:int = (this._arr.length - 1);
while (_local3 >= 0) {
_local4 = this._arr[_local3];
if (_local4.mc == _arg1){
if (((_arg2) && (_local4.isMerge))){
return (_local4);
};
this._arr.splice(_local3, 1);
};
_local3--;
};
return (null);
}
private function run(_arg1:Event):void{
var _local3:AbstractEffect;
var _local4:AbstractEffect;
var _local2:int;
while (_local2 < this._arr.length) {
_local3 = this._arr[_local2];
if (_local3.checkFinish()){
_local4 = (this._arr[_local2] as AbstractEffect);
this._arr.splice(_local2, 1);
_local4.dispatchEvent();
_local2--;
if (this._arr.length <= 0){
GoddenEnterFrame.instance.removeEventListener(Event.ENTER_FRAME, this.run);
};
} else {
_local3.step();
};
_local2++;
};
}
public function del(_arg1:uint):void{
var _local2:int;
while (_local2 < this._arr.length) {
if ((this._arr[_local2] as AbstractEffect).id == _arg1){
(this._arr[_local2] as AbstractEffect).del();
this._arr.splice(_local2, 1);
if (this._arr.length <= 0){
GoddenEnterFrame.instance.removeEventListener(Event.ENTER_FRAME, this.run);
};
return;
};
_local2++;
};
}
public function delByMc(_arg1:DisplayObject):void{
var _local3:AbstractEffect;
var _local2:int = (this._arr.length - 1);
while (_local2 >= 0) {
_local3 = this._arr[_local2];
if (_local3.mc == _arg1){
_local3.del();
this._arr.splice(_local2, 1);
};
_local2--;
};
}
public function delAll():void{
var _local1:int;
while (_local1 < this._arr.length) {
(this._arr[_local1] as AbstractEffect).del();
_local1++;
};
this._arr = new Array();
GoddenEnterFrame.instance.removeEventListener(Event.ENTER_FRAME, this.run);
}
public function pauseAll():void{
var _local1:int;
while (_local1 < this._arr.length) {
(this._arr[_local1] as AbstractEffect).pause();
_local1++;
};
GoddenEnterFrame.instance.removeEventListener(Event.ENTER_FRAME, this.run);
}
public function reStartAll():void{
var _local1:int;
while (_local1 < this._arr.length) {
(this._arr[_local1] as AbstractEffect).reStart();
_local1++;
};
GoddenEnterFrame.instance.addEventListener(Event.ENTER_FRAME, this.run);
}
}
}//package zlong.breathxue.utils.animationEffect
Section 126
//MoveEffect (zlong.breathxue.utils.animationEffect.MoveEffect)
package zlong.breathxue.utils.animationEffect {
import flash.display.*;
import flash.events.*;
import zlong.breathxue.utils.math.*;
import zlong.breathxue.utils.*;
public class MoveEffect extends AbstractEffect {
private var _position:mVector;
private var _EndPoint:mVector;
private var _stepVector:mVector;
breathxue_utils_internal static const VERSION:String = "v1.15.201008201148";
public static const Move_EFFECT_FINISH:String = "Move_EFFECT_FINISH";
private static var _effectManager:EffectManager = new EffectManager();
private function initSet(_arg1:uint, _arg2:DisplayObject, _arg3:mVector, _arg4:mVector, _arg5:Number, _arg6:uint=0, _arg7:mVector=null, _arg8:Boolean=false, _arg9:AbstractEffect=null):void{
super.initAbSet(_arg1, _arg2, _arg6, _arg8);
this._EndPoint = _arg4;
this._stepVector = _arg7;
if ((((_arg5 == 0)) && ((_arg6 == 0)))){
throw (new ArgumentError("one of stepDistance or runframe need be setting"));
};
if (((!(this._EndPoint)) && (((!(_arg7)) || ((_runframe == 0)))))){
throw (new ArgumentError("if EndAlpha == NaN,then stepVector and runframe must be setting"));
};
if (_arg3 == null){
_arg3 = new mVector(_mc.x, _mc.y);
};
if (((_arg8) && (_arg9))){
this._position = (_arg9 as MoveEffect)._position;
} else {
this._position = new mVector();
_mc.x = (this._position.x = _arg3.x);
_mc.y = (this._position.y = _arg3.y);
};
if (!this._EndPoint){
_frameTimerId = FrameTimer.push(new FrameTimer(_runframe), delMeByFrameTimer);
} else {
this._stepVector = this._EndPoint.minus(this._position);
if (_runframe > 0){
this._stepVector.multEquals((1 / (_runframe - _stepframe)));
} else {
this._stepVector.length = Math.abs(_arg5);
};
};
}
override function step():void{
var _local1:Number;
if (!_running){
return;
};
if (this._EndPoint){
if (_runframe > 0){
this._stepVector = this._EndPoint.minus(this._position);
this._stepVector.multEquals((1 / (_runframe - _stepframe)));
_stepframe++;
} else {
_local1 = this._stepVector.length;
this._stepVector = this._EndPoint.minus(this._position);
this._stepVector.length = Math.abs(_local1);
};
};
_mc.x = (this._position.x = (this._position.x + this._stepVector.x));
_mc.y = (this._position.y = (this._position.y + this._stepVector.y));
}
override function checkFinish():Boolean{
if (((this._EndPoint) && ((((((_runframe > 0)) && ((_stepframe >= _runframe)))) || ((this._EndPoint.minus(this._position).length <= Math.abs(this._stepVector.length))))))){
_mc.x = (this._position.x = this._EndPoint.x);
_mc.y = (this._position.y = this._EndPoint.y);
return (true);
};
return (false);
}
override function dispatchEvent():void{
_mc.dispatchEvent(new Event(Move_EFFECT_FINISH));
}
override function del():void{
this._position = null;
this._EndPoint = null;
this._stepVector = null;
if (_frameTimerId != 0){
FrameTimer.delById(_frameTimerId);
};
}
public static function push(_arg1:DisplayObject, _arg2:mVector, _arg3:mVector, _arg4:Number, _arg5:uint=0, _arg6:mVector=null, _arg7:Boolean=false):uint{
var _local8:AbstractEffect = _effectManager.findAndDeleteSameMcEffect(_arg1, _arg7);
var _local9:MoveEffect = new (MoveEffect);
_local9.initSet(_effectManager.IdCount, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _local8);
return (_effectManager.push(_local9));
}
public static function del(_arg1:uint):void{
_effectManager.del(_arg1);
}
public static function delByMc(_arg1:DisplayObject):void{
_effectManager.delByMc(_arg1);
}
public static function delAll():void{
_effectManager.delAll();
}
public static function pauseAll():void{
_effectManager.pauseAll();
}
public static function reStartAll():void{
_effectManager.reStartAll();
}
}
}//package zlong.breathxue.utils.animationEffect
Section 127
//TC (zlong.breathxue.utils.debug.TC)
package zlong.breathxue.utils.debug {
import flash.display.*;
import flash.events.*;
import zlong.breathxue.utils.math.*;
import zlong.breathxue.utils.animationEffect.*;
import flash.text.*;
import zlong.breathxue.utils.*;
public class TC {
breathxue_utils_internal static const VERSION:String = "v1.15.201008201148";
static const TITLE_HEIGHT:int = 20;
private static var _tabArr:Array;
private static var _tabArrNum:Array;
static var _width:int;
static var _height:int;
private static var _MC:Sprite;
private static var _showMc:Sprite;
private static var _smallMc:Sprite;
private static var _smallMcPos:mVector;
private static var _nowEffect:Boolean;
public static function InitTC(_arg1:Sprite, _arg2:int=0, _arg3:int=0, _arg4:Boolean=true):void{
if (_arg1.stage == null){
return;
};
TcShow = true;
_smallMcPos = new mVector(0, -20);
if (_arg2 == 0){
_arg2 = ((_arg1.stage.stageWidth / 3) * 2);
};
if (_arg3 == 0){
_arg3 = ((_arg1.stage.stageHeight / 3) * 2);
};
_width = _arg2;
_height = _arg3;
_MC = new Sprite();
_arg1.addChild(_MC);
_MC.alpha = 0.5;
_tabArr = new Array();
_tabArrNum = new Array();
createShow();
createSmall(_arg2);
if (!_arg4){
openAndClose();
};
_MC.addEventListener(Event.ENTER_FRAME, run);
}
private static function run(_arg1:Event):void{
if (_MC.parent.getChildIndex(_MC) != (_MC.parent.numChildren - 1)){
_MC.parent.addChild(_MC);
};
}
private static function createShow():void{
_showMc = new Sprite();
_MC.addChild(_showMc);
_showMc.addChild(maketitle(_width));
var _local1:TC_Tab = new TC_Tab(_showMc, "*", 0, 2);
_tabArr["*"] = _local1;
_tabArrNum.push("*");
_local1 = new TC_Tab(_showMc, "&NT&", 1, 2);
_local1.visible = true;
_tabArr["&NT&"] = _local1;
_tabArrNum.push("&NT&");
_MC.stage.addEventListener(KeyboardEvent.KEY_DOWN, openAndClose);
}
private static function maketitle(_arg1:int):DisplayObject{
var _local2:Sprite = new Sprite();
_local2.graphics.beginFill(11187199);
_local2.graphics.drawRect(0, 0, _arg1, TITLE_HEIGHT);
_local2.graphics.endFill();
_local2.doubleClickEnabled = true;
var _local3:TextField = new TextField();
_local3.text = "Debug Text ('ctrl + d' open and close it)";
_local3.width = _arg1;
_local3.height = TITLE_HEIGHT;
_local3.mouseEnabled = false;
_local3.selectable = false;
_local2.addChild(_local3);
var _local4:Sprite = new Sprite();
_local4.graphics.beginFill(0, 0);
_local4.graphics.drawRect(0, 0, 18, 18);
_local4.graphics.endFill();
_local4.graphics.lineStyle(2, 4084223);
_local4.graphics.moveTo(6, 6);
_local4.graphics.lineTo(12, 12);
_local4.graphics.moveTo(12, 6);
_local4.graphics.lineTo(6, 12);
_local4.x = (_arg1 - 19);
_local4.y = 1;
_local2.addChild(_local4);
_local4.addEventListener(MouseEvent.CLICK, openAndClose);
_local2.addEventListener(MouseEvent.DOUBLE_CLICK, openAndClose);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, startMove);
_local2.addEventListener(MouseEvent.MOUSE_UP, endMove);
return (_local2);
}
private static function createSmall(_arg1:int):void{
_smallMc = new Sprite();
_smallMc.x = _smallMcPos.x;
_smallMc.y = _smallMcPos.y;
var _local2:Sprite = new Sprite();
_local2.y = 0;
_local2.graphics.beginFill(11187199);
_local2.graphics.drawRect(0, 0, (_arg1 / 2), TITLE_HEIGHT);
_local2.graphics.endFill();
_local2.doubleClickEnabled = true;
var _local3:TextField = new TextField();
_local3.text = "Debug Text";
_local3.width = (_arg1 / 2);
_local3.height = TITLE_HEIGHT;
_local3.mouseEnabled = false;
_local3.selectable = false;
_local2.addChild(_local3);
_smallMc.addChild(_local2);
_local2.addEventListener(MouseEvent.DOUBLE_CLICK, openAndClose);
}
private static function openAndClose(_arg1:Event=null):void{
var _local2:KeyboardEvent = (_arg1 as KeyboardEvent);
if (((!(_nowEffect)) && (((((!(_local2)) || (((_local2.ctrlKey) && ((_local2.keyCode == 68)))))) || (((_local2.shiftKey) && ((_local2.keyCode == 68)))))))){
if (_showMc.parent == null){
MoveEffect.push(_smallMc, _smallMcPos, new mVector(_showMc.x, _showMc.y), 0, 5);
_smallMc.addEventListener(MoveEffect.Move_EFFECT_FINISH, EffectFinish);
_nowEffect = true;
} else {
_showMc.visible = false;
_MC.addChild(_smallMc);
MoveEffect.push(_smallMc, new mVector(_showMc.x, _showMc.y), _smallMcPos, 0, 5);
_smallMc.addEventListener(MoveEffect.Move_EFFECT_FINISH, EffectFinish);
_nowEffect = true;
};
};
}
private static function EffectFinish(_arg1:Event):void{
_smallMc.removeEventListener(MoveEffect.Move_EFFECT_FINISH, EffectFinish);
_nowEffect = false;
if (_showMc.parent == null){
_showMc.visible = true;
_MC.addChild(_showMc);
_MC.removeChild(_smallMc);
} else {
_MC.removeChild(_showMc);
};
}
private static function endMove(_arg1:MouseEvent):void{
_showMc.stopDrag();
}
private static function startMove(_arg1:MouseEvent):void{
_showMc.startDrag();
}
public static function SHOW(_arg1:String, _arg2:Array):void{
var _local3:int;
if (_MC){
if (_arg1 != ""){
if (!(_tabArr[_arg1] is TC_Tab)){
_tabArr[_arg1] = new TC_Tab(_showMc, _arg1, _tabArrNum.length, (_tabArrNum.length + 1));
_tabArrNum.push(_arg1);
_local3 = 0;
while (_local3 < _tabArrNum.length) {
(_tabArr[_tabArrNum[_local3]] as TC_Tab).updateTabTitle(_local3, _tabArrNum.length);
_local3++;
};
};
(_tabArr[_arg1] as TC_Tab).show((((Tools.getNowTimeAndMileSecond_1() + ": ") + _arg2.join(" ")) + "\n"));
} else {
(_tabArr["&NT&"] as TC_Tab).show((((Tools.getNowTimeAndMileSecond_1() + ": ") + _arg2.join(" ")) + "\n"));
};
(_tabArr["*"] as TC_Tab).show((((Tools.getNowTimeAndMileSecond_1() + ": ") + _arg2.join(" ")) + "\n"));
_MC.parent.setChildIndex(_MC, (_MC.parent.numChildren - 1));
};
}
public static function onTabTitle(_arg1:String):void{
var _local2:String;
for (_local2 in _tabArr) {
if ((_tabArr[_local2] is TC_Tab)){
(_tabArr[_local2] as TC_Tab).visible = false;
};
};
(_tabArr[_arg1] as TC_Tab).visible = true;
}
}
}//package zlong.breathxue.utils.debug
Section 128
//TC_Tab (zlong.breathxue.utils.debug.TC_Tab)
package zlong.breathxue.utils.debug {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class TC_Tab {
private var _pmc:DisplayObjectContainer;
private var _name:String;
private var _tabTitle:Sprite;
private var _Text:TextField;
private var _tabBaby:Sprite;
private static const colorArr:Array = [14541311, 10079385, 16777164, 13434828, 16724889, 6710988, 14541311, 10079385, 16777164, 13434828, 16724889, 6710988, 14541311, 10079385, 16777164, 13434828, 16724889, 6710988, 14541311, 10079385, 16777164, 13434828, 16724889, 6710988, 14541311, 10079385, 16777164, 13434828, 16724889, 6710988, 14541311, 10079385, 16777164, 13434828, 16724889, 6710988, 14541311, 10079385, 16777164, 13434828, 16724889, 6710988, 14541311, 10079385, 16777164, 13434828, 16724889, 6710988, 14541311, 10079385, 16777164, 13434828, 16724889, 6710988, 14541311, 10079385, 16777164, 13434828, 16724889, 6710988];
static var TabTitleHeight:Number = 20;
static var maxWidth:Number = 80;
public function TC_Tab(_arg1:DisplayObjectContainer, _arg2:String, _arg3:uint, _arg4:uint){
this._pmc = _arg1;
this._name = _arg2;
this.createTabTitle(_arg3, _arg4);
this.createTabBady(_arg3);
}
private function createTabTitle(_arg1:uint, _arg2:uint):void{
this._tabTitle = new Sprite();
this._pmc.addChild(this._tabTitle);
this._tabTitle.y = TC.TITLE_HEIGHT;
this._tabTitle.addEventListener(MouseEvent.CLICK, this.onTabTitle);
this.updateTabTitle(_arg1, _arg2);
var _local3:TextField = new TextField();
this._tabTitle.addChild(_local3);
_local3.text = this._name;
_local3.mouseEnabled = false;
_local3.selectable = false;
}
private function onTabTitle(_arg1:MouseEvent):void{
TC.onTabTitle(this._name);
}
function updateTabTitle(_arg1:uint, _arg2:uint):void{
var _local3:Number = (((TC._width / _arg2) > maxWidth)) ? maxWidth : (TC._width / _arg2);
this._tabTitle.graphics.clear();
this._tabTitle.graphics.beginFill(colorArr[_arg1]);
this._tabTitle.graphics.drawRect(0, 0, _local3, TabTitleHeight);
this._tabTitle.graphics.endFill();
this._tabTitle.x = (_local3 * _arg1);
}
private function createTabBady(_arg1:uint):void{
this._tabBaby = new Sprite();
this._pmc.addChild(this._tabBaby);
this._tabBaby.visible = false;
this._tabBaby.y = (TC.TITLE_HEIGHT + TabTitleHeight);
this._tabBaby.graphics.beginFill(colorArr[_arg1]);
this._tabBaby.graphics.drawRect(0, 0, TC._width, ((TC._height - TC.TITLE_HEIGHT) - TabTitleHeight));
this._tabBaby.graphics.endFill();
this._Text = new TextField();
this._Text.width = TC._width;
this._Text.height = ((TC._height - TC.TITLE_HEIGHT) - TabTitleHeight);
this._tabBaby.addChild(this._Text);
this._Text.multiline = true;
this._Text.mouseWheelEnabled = true;
this._Text.wordWrap = true;
}
public function show(_arg1:String):void{
var _local2:int = this._Text.scrollV;
this._Text.appendText(_arg1);
if (this._Text.length != this._Text.selectionEndIndex){
this._Text.scrollV = _local2;
} else {
this._Text.scrollV = this._Text.numLines;
};
}
public function set visible(_arg1:Boolean):void{
this._tabBaby.visible = _arg1;
}
public function get name():String{
return (this._name);
}
public function set name(_arg1:String):void{
this._name = _arg1;
}
}
}//package zlong.breathxue.utils.debug
Section 129
//TcShow (zlong.breathxue.utils.debug.TcShow)
package zlong.breathxue.utils.debug {
public var TcShow:Boolean = false;
}//package zlong.breathxue.utils.debug
Section 130
//mVector (zlong.breathxue.utils.math.mVector)
package zlong.breathxue.utils.math {
public class mVector {
private var m_x:Number;
private var m_y:Number;
public static var PI_OVER_ONE_EIGHTY:Number = 0.0174532925199433;
public function mVector(_arg1:Number=0, _arg2:Number=0){
this.m_x = _arg1;
this.m_y = _arg2;
}
public function setTo(_arg1:Number, _arg2:Number):void{
this.m_x = _arg1;
this.m_y = _arg2;
}
public function copyFrom(_arg1:mVector):mVector{
this.m_x = _arg1.m_x;
this.m_y = _arg1.m_y;
return (this);
}
public function toString():String{
var _local1:Number = (Math.round((this.m_x * 1000)) / 1000);
var _local2:Number = (Math.round((this.m_y * 1000)) / 1000);
return ((((("[" + _local1) + ", ") + _local2) + "]"));
}
public function clone():mVector{
return (new mVector(this.m_x, this.m_y));
}
public function plus(_arg1:mVector):mVector{
return (new mVector((this.m_x + _arg1.m_x), (this.m_y + _arg1.m_y)));
}
public function plusEquals(_arg1:mVector):mVector{
this.m_x = (this.m_x + _arg1.m_x);
this.m_y = (this.m_y + _arg1.m_y);
return (this);
}
public function minus(_arg1:mVector):mVector{
return (new mVector((this.m_x - _arg1.m_x), (this.m_y - _arg1.m_y)));
}
public function minusEquals(_arg1:mVector):mVector{
this.m_x = (this.m_x - _arg1.m_x);
this.m_y = (this.m_y - _arg1.m_y);
return (this);
}
public function negate():mVector{
return (new mVector(-(this.m_x), -(this.m_y)));
}
public function negateEquals():void{
this.m_x = -(this.m_x);
this.m_y = -(this.m_y);
}
public function mult(_arg1:Number):mVector{
return (new mVector((this.m_x * _arg1), (this.m_y * _arg1)));
}
public function multEquals(_arg1:Number):mVector{
this.m_x = (this.m_x * _arg1);
this.m_y = (this.m_y * _arg1);
return (this);
}
public function rotateAngle(_arg1:Number):mVector{
var _local2:Number = TF_Class.cosD(_arg1);
var _local3:Number = TF_Class.sinD(_arg1);
var _local4:mVector = new mVector(((this.m_x * _local2) - (this.m_y * _local3)), ((this.m_y * _local2) + (this.m_x * _local3)));
return (_local4);
}
public function rotateAngleEquals(_arg1:Number):mVector{
return (this.copyFrom(this.rotateAngle(_arg1)));
}
public function rotateRadian(_arg1:Number):mVector{
var _local2:Number = Math.cos(_arg1);
var _local3:Number = Math.sin(_arg1);
var _local4:mVector = new mVector(((this.m_x * _local2) - (this.m_y * _local3)), ((this.m_y * _local2) + (this.m_x * _local3)));
return (_local4);
}
public function rotateRadianEquals(_arg1:Number):mVector{
return (this.copyFrom(this.rotateRadian(_arg1)));
}
public function dot(_arg1:mVector):Number{
return (((this.m_x * _arg1.m_x) + (this.m_y * _arg1.m_y)));
}
public function cross(_arg1:mVector):Number{
return (((this.m_x * _arg1.m_y) - (this.m_y * _arg1.m_x)));
}
public function times(_arg1:mVector):mVector{
return (new mVector((this.m_x * _arg1.m_x), (this.m_y * _arg1.m_y)));
}
public function div(_arg1:Number):mVector{
if (_arg1 == 0){
_arg1 = 0.0001;
};
return (new mVector((this.m_x / _arg1), (this.m_y / _arg1)));
}
public function divEquals(_arg1:Number):mVector{
if (_arg1 == 0){
_arg1 = 0.0001;
};
this.m_x = (this.m_x / _arg1);
this.m_y = (this.m_y / _arg1);
return (this);
}
public function distance(_arg1:mVector):Number{
var _local2:mVector = this.minus(_arg1);
return (_local2.length);
}
public function normalize():mVector{
var _local1:Number = this.length;
if (_local1 == 0){
_local1 = 0.0001;
};
return (this.mult((1 / _local1)));
}
public function compare(_arg1:mVector):Boolean{
if ((((this.m_x == _arg1.m_x)) && ((this.m_y == _arg1.m_y)))){
return (true);
};
return (false);
}
public function getNormal():mVector{
return (new mVector(-(this.m_y), this.m_x));
}
public function isNormalTo(_arg1:mVector):Boolean{
return ((this.dot(_arg1) == 0));
}
public function angleBetween(_arg1:mVector):Number{
var _local2:Number = this.dot(_arg1);
var _local3:Number = (_local2 / (this.length * _arg1.length));
return (TF_Class.acosD(_local3));
}
public function radianBetween(_arg1:mVector):Number{
var _local2:Number = (this.dot(_arg1) / (this.length * _arg1.length));
return (Math.acos(_local2));
}
public function get length():Number{
return (Math.sqrt(((this.m_x * this.m_x) + (this.m_y * this.m_y))));
}
public function set length(_arg1:Number):void{
var _local2:Number = this.length;
if (_local2){
this.multEquals((_arg1 / _local2));
} else {
this.m_x = _arg1;
};
}
public function set angle(_arg1:Number):void{
var _local2:Number = this.length;
this.m_x = (_local2 * TF_Class.cosD(_arg1));
this.m_y = (_local2 * TF_Class.sinD(_arg1));
}
public function get angle():Number{
return (TF_Class.atan2D(this.m_y, this.m_x));
}
public function set x(_arg1:Number):void{
this.m_x = _arg1;
}
public function get x():Number{
return (this.m_x);
}
public function set y(_arg1:Number):void{
this.m_y = _arg1;
}
public function get y():Number{
return (this.m_y);
}
}
}//package zlong.breathxue.utils.math
Section 131
//TF_Class (zlong.breathxue.utils.math.TF_Class)
package zlong.breathxue.utils.math {
import zlong.breathxue.utils.*;
public class TF_Class {
breathxue_utils_internal static const VERSION:String = "v1.15.201008201148";
public static function sinD(_arg1:Number):Number{
return (Math.sin((_arg1 * (Math.PI / 180))));
}
public static function cosD(_arg1:Number):Number{
return (Math.cos((_arg1 * (Math.PI / 180))));
}
public static function tanD(_arg1:Number):Number{
return (Math.tan((_arg1 * (Math.PI / 180))));
}
public static function asinD(_arg1:Number):Number{
return ((Math.asin(_arg1) * (180 / Math.PI)));
}
public static function acosD(_arg1:Number):Number{
return ((Math.acos(_arg1) * (180 / Math.PI)));
}
public static function atanD(_arg1:Number):Number{
return ((Math.atan(_arg1) * (180 / Math.PI)));
}
public static function atan2D(_arg1:Number, _arg2:Number):Number{
return ((Math.atan2(_arg1, _arg2) * (180 / Math.PI)));
}
public static function distance(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number = (_arg3 - _arg1);
var _local6:Number = (_arg4 - _arg2);
return (Math.sqrt(((_local5 * _local5) + (_local6 * _local6))));
}
public static function angleOfLine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (atan2D((_arg4 - _arg2), (_arg3 - _arg1)));
}
public static function degreesToRadians(_arg1:Number):Number{
return ((_arg1 * (Math.PI / 180)));
}
public static function radiansToDegrees(_arg1:Number):Number{
return ((_arg1 * (180 / Math.PI)));
}
public static function fixAngle(_arg1:Number):Number{
_arg1 = (_arg1 % 360);
return (((_arg1)<0) ? (_arg1 + 360) : _arg1);
}
public static function cartesianToPolar(_arg1:mVector):Object{
var _local2:Number = Math.sqrt(((_arg1.x * _arg1.x) + (_arg1.y * _arg1.y)));
var _local3:Number = atan2D(_arg1.y, _arg1.x);
return ({r:_local2, t:_local3});
}
public static function FormatAngle(_arg1:Number):Number{
_arg1 = (_arg1 % 360);
if (_arg1 > 180){
_arg1 = (_arg1 - 360);
};
if (_arg1 < -180){
_arg1 = (_arg1 + 360);
};
return (_arg1);
}
public static function FormatAngle90(_arg1:Number):Number{
_arg1 = (_arg1 % 180);
if (_arg1 > 90){
_arg1 = (180 - _arg1);
};
if (_arg1 < -90){
_arg1 = (_arg1 + 180);
};
return (_arg1);
}
}
}//package zlong.breathxue.utils.math
Section 132
//Attach (zlong.breathxue.utils.Attach)
package zlong.breathxue.utils {
import flash.display.*;
import flash.media.*;
import flash.utils.*;
public class Attach {
breathxue_utils_internal static const VERSION:String = "v1.15.201008201148";
public static function getDisplayObject(_arg1:String):DisplayObject{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:DisplayObject = new (_local2);
return (_local3);
}
public static function getSprite(_arg1:String):Sprite{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:Sprite = new (_local2);
return (_local3);
}
public static function getMovieClip(_arg1:String):MovieClip{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:MovieClip = new (_local2);
return (_local3);
}
public static function getBitmapData(_arg1:String):BitmapData{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:BitmapData = new _local2(null, null);
return (_local3);
}
public static function getSound(_arg1:String):Sound{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:Sound = new (_local2);
return (_local3);
}
}
}//package zlong.breathxue.utils
Section 133
//breathxue_utils_internal (zlong.breathxue.utils.breathxue_utils_internal)
package zlong.breathxue.utils {
public namespace breathxue_utils_internal = "http://www.zlonggames.com/flash/breathxue/utils/internal";
}//package zlong.breathxue.utils
Section 134
//FrameTimer (zlong.breathxue.utils.FrameTimer)
package zlong.breathxue.utils {
import flash.display.*;
import flash.events.*;
public class FrameTimer implements IEventDispatcher {
private var _ED:EventDispatcher;
private var _running:Boolean;
private var _runframe:uint;
private var _cycleNum:uint;
private var _step:uint;
private var _id:uint;
private var _returnFunctionAlarm:Function;
private var _returnFunctionFinish:Function;
breathxue_utils_internal static const VERSION:String = "v1.15.201008201148";
public static const FRAMETIMER_ALARM:String = "FRAMETIMER_ALARM";
public static const FRAMETIMER_FINISH:String = "FRAMETIMER_FINISH";
private static var IdCount:uint = 1;
private static var _arr:Array = new Array();
public function FrameTimer(_arg1:uint, _arg2:uint=0, _arg3:uint=0, _arg4:DisplayObject=null){
this._running = true;
this._step = 0;
this._runframe = _arg1;
this._cycleNum = _arg2;
this._ED = new EventDispatcher(this);
if ((((_arg3 > 0)) && (_arg4))){
if (!_arg4.stage){
throw (new ArgumentError("mc didn`t connect stage"));
};
this._runframe = uint(((_arg3 / 1000) * _arg4.stage.frameRate));
};
this._id = FrameTimer.add(this);
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
this._ED.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
this._ED.removeEventListener(_arg1, _arg2, _arg3);
}
public function dispatchEvent(_arg1:Event):Boolean{
return (this._ED.dispatchEvent(_arg1));
}
public function hasEventListener(_arg1:String):Boolean{
return (this._ED.hasEventListener(_arg1));
}
public function willTrigger(_arg1:String):Boolean{
return (this._ED.willTrigger(_arg1));
}
public function pause():void{
this._running = false;
}
public function reStart():void{
this._running = true;
}
public function del():void{
FrameTimer.delById(this._id);
}
public function get id():uint{
return (this._id);
}
public static function push(_arg1:FrameTimer, _arg2:Function=null, _arg3:Function=null):uint{
_arg1._returnFunctionAlarm = _arg2;
_arg1._returnFunctionFinish = _arg3;
return (_arg1._id);
}
private static function add(_arg1:FrameTimer, _arg2:Function=null, _arg3:Function=null):uint{
_arr.push(_arg1);
if (_arr.length > 0){
GoddenEnterFrame.instance.addEventListener(Event.ENTER_FRAME, run);
};
return (IdCount++);
}
private static function run(_arg1:Event):void{
var _local3:FrameTimer;
var _local2:int;
while (_local2 < _arr.length) {
_local3 = _arr[_local2];
if (!_local3._running){
} else {
if (_local3._step >= _local3._runframe){
_local3._ED.dispatchEvent(new Event(FRAMETIMER_ALARM));
if (_local3._returnFunctionAlarm != null){
_local3._returnFunctionAlarm();
};
_local3._step = 0;
_local3._step++;
if (_local3._cycleNum <= 0){
_local3._ED.dispatchEvent(new Event(FRAMETIMER_FINISH));
if (_local3._returnFunctionFinish != null){
_local3._returnFunctionFinish();
};
_arr.splice(_local2, 1);
_local2--;
if (_arr.length <= 0){
GoddenEnterFrame.instance.removeEventListener(Event.ENTER_FRAME, run);
};
} else {
_local3._cycleNum--;
};
} else {
_local3._step++;
};
};
_local2++;
};
}
public static function pauseById(_arg1:uint):void{
var _local2:int;
while (_local2 < _arr.length) {
if ((_arr[_local2] as FrameTimer)._id == _arg1){
(_arr[_local2] as FrameTimer).pause();
};
_local2++;
};
}
public static function reStartById(_arg1:uint):void{
var _local2:int;
while (_local2 < _arr.length) {
if ((_arr[_local2] as FrameTimer)._id == _arg1){
(_arr[_local2] as FrameTimer).reStart();
};
_local2++;
};
}
public static function delById(_arg1:uint):void{
var _local2:int;
while (_local2 < _arr.length) {
if ((_arr[_local2] as FrameTimer)._id == _arg1){
_arr.splice(_local2, 1);
if (_arr.length <= 0){
GoddenEnterFrame.instance.removeEventListener(Event.ENTER_FRAME, run);
};
return;
};
_local2++;
};
}
public static function delAll():void{
_arr = new Array();
GoddenEnterFrame.instance.removeEventListener(Event.ENTER_FRAME, run);
}
public static function pauseAll():void{
GoddenEnterFrame.instance.removeEventListener(Event.ENTER_FRAME, run);
}
public static function reStartAll():void{
GoddenEnterFrame.instance.addEventListener(Event.ENTER_FRAME, run);
}
}
}//package zlong.breathxue.utils
Section 135
//GoddenEnterFrame (zlong.breathxue.utils.GoddenEnterFrame)
package zlong.breathxue.utils {
import flash.display.*;
import flash.events.*;
public class GoddenEnterFrame extends EventDispatcher {
private var _listenerMc:DisplayObject;
private var _controlFunction:Function;
private static var _instance:GoddenEnterFrame;
public function GoddenEnterFrame(_arg1:IEventDispatcher=null){
super(_arg1);
this._controlFunction = this.undefinedControlFunction;
this._listenerMc = new Bitmap();
this._listenerMc.addEventListener(Event.ENTER_FRAME, this.run);
}
private function run(_arg1:Event):void{
this._controlFunction(_arg1);
}
private function undefinedControlFunction(_arg1:Event):void{
dispatchEvent(_arg1);
}
public function set controlFunction(_arg1:Function):void{
this._controlFunction = _arg1;
}
public static function get instance():GoddenEnterFrame{
if (!_instance){
_instance = new (GoddenEnterFrame);
};
return (_instance);
}
}
}//package zlong.breathxue.utils
Section 136
//Tools (zlong.breathxue.utils.Tools)
package zlong.breathxue.utils {
import flash.display.*;
import flash.geom.*;
public class Tools {
breathxue_utils_internal static const VERSION:String = "v1.15.201008201148";
public static function getNowTimeAndMileSecond_1():String{
var _local1:Date = new Date();
var _local2:int = _local1.getHours();
var _local3:int = _local1.getMinutes();
var _local4:int = _local1.getSeconds();
var _local5:int = _local1.getMilliseconds();
return (((((((((_local2 < 10)) ? ("0" + _local2) : _local2 + ":") + ((_local3 < 10)) ? ("0" + _local3) : _local3) + ":") + ((_local4 < 10)) ? ("0" + _local4) : _local4) + ":") + ((_local5 < 10)) ? ("00" + _local5) : ((_local5 < 100)) ? ("0" + _local5) : _local5));
}
public static function cutBmp(_arg1:DisplayObject, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):BitmapData{
var _local8:BitmapData;
var _local9:Rectangle;
var _local10:Matrix = new Matrix();
_local10.tx = -(_arg4);
_local10.ty = -(_arg5);
_local9 = new Rectangle(0, 0, _arg6, _arg7);
_local8 = new BitmapData(_arg2, _arg3, true, 0);
_local8.draw(_arg1, _local10, null, null, _local9, true);
return (_local8);
}
}
}//package zlong.breathxue.utils
Section 137
//Countries (zlong.country.Countries)
package zlong.country {
import zlong.country.*;
import zlong.*;
class Countries {
private var _countries:Object;
private var _portal:String;
private var _portalGroup:Array;
private var _country:String;
private var _countryGroup:Array;
localComponent_internal static const VERSION:String = "v1.07.201009092145";
function Countries(){
this.initPortalGroup();
}
function set portal(_arg1:String):void{
if (!this.inArray(_arg1, this._portalGroup)){
throw (new ArgumentError(("Please set portal with value : " + this._portalGroup.toString())));
};
this._portal = _arg1;
this.initCountries();
if (((!((this._country == null))) && (!(this.inArray(this._country, this._countryGroup))))){
throw (new ArgumentError(("Please reset country with value : " + this._countryGroup.toString())));
};
}
function get portal():String{
return (this._portal);
}
function set country(_arg1:String):void{
if (((!((this._countryGroup == null))) && (!(this.inArray(_arg1, this._countryGroup))))){
this._country = this._countryGroup[0];
Trace("||ZFW||", ("Error in the country value,set country with default value : " + this._countryGroup[0]));
Trace("||ZFW||", ("Please set country with value : " + this._countryGroup.toString()));
} else {
this._country = _arg1;
};
}
function get current():CountryItem{
if (this._portal == null){
throw (new ArgumentError("Please set portal"));
};
if (this._country == null){
throw (new ArgumentError("Please set country"));
};
return (this._countries[this._country]);
}
function get countryGroup():Array{
if (this._countryGroup == null){
throw (new ArgumentError("Please set portal"));
};
return (this._countryGroup);
}
private function initCountries():void{
var _local1:CountryItem;
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:int;
this._countries = new Object();
this._countryGroup = new Array();
var _local6:int;
while (_local6 < CountriesData.DATA[this._portal]["country"].length()) {
_local2 = CountriesData.DATA[this._portal]["country"][_local6].@name;
_local3 = CountriesData.DATA[this._portal]["country"][_local6].@domain;
_local4 = CountriesData.DATA[this._portal]["country"][_local6].@game;
_local5 = int(CountriesData.DATA[this._portal]["country"][_local6].@language);
_local1 = new CountryItem();
_local1.name = _local2;
_local1.domain = _local3;
_local1.game = _local4;
_local1.language = _local5;
this._countries[_local1.name] = _local1;
this._countryGroup.push(_local2);
_local6++;
};
}
private function initPortalGroup():void{
this._portalGroup = new Array();
var _local1:int;
while (_local1 < CountriesData.DATA.children().length()) {
this._portalGroup.push(CountriesData.DATA.children()[_local1].name());
_local1++;
};
}
private function inArray(_arg1:String, _arg2:Array):Boolean{
var _local3:int;
while (_local3 < _arg2.length) {
if (_arg1 == _arg2[_local3]){
return (true);
};
_local3++;
};
return (false);
}
}
}//package zlong.country
Section 138
//CountriesData (zlong.country.CountriesData)
package zlong.country {
import zlong.*;
class CountriesData {
localComponent_internal static const VERSION:String = "v1.07.201009092145";
static const DATA:XML = <data>
<family>
<!-- new -->
<country name="arg" domain="www.juegos.com.ar" game="game" language="18"/><!-- Argentina -->
<country name="mx" domain="www.juegos.mx" game="game" language="19"/><!-- Mexico -->
<country name="ar" domain="www.dailygame.com" game="game" language="1"/><!-- Arabic(English US) 2009.07.14-->
<country name="br" domain="www.ojogos.com.br" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="17"/><!-- Chinese -->
<country name="de" domain="www.jetztspielen.de" game="spiel" language="5"/><!-- German -->
<country name="es" domain="www.juegos.com" game="juego" language="6"/><!-- Spanish -->
<country name="fr" domain="www.jeux.fr" game="jeu" language="4"/><!-- French -->
<country name="id" domain="www.games.co.id" game="permainanme" language="14"/><!-- Indonesian -->
<country name="in" domain="www.game.co.in" game="game" language="2"/><!-- English UK -->
<country name="it" domain="www.gioco.it" game="gioco" language="9"/><!-- Italian -->
<country name="jp" domain="www.egames.jp" game="game" language="16"/><!-- Japanese -->
<country name="nl" domain="www.spelletjes.nl" game="spel" language="3"/><!-- Dutch -->
<country name="pl" domain="www.gry.pl" game="gra" language="11"/><!-- Polish -->
<country name="pt" domain="www.ojogos.pt" game="jogo" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.ourgames.ru" game="igra" language="12"/><!-- Russian -->
<country name="se" domain="www.spela.se" game="spel_" language="10"/><!-- Swedish -->
<country name="en_uk" domain="www.games.co.uk" game="game" language="2"/><!-- English UK -->
<country name="en_us" domain="www.gamesgames.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
<!-- country name="ph" domain="www.laro.com.ph" game="game" language="2"/ --><!-- English UK -->
<!-- country name="tr" domain="www.asoyun.com" game="oyun" language="13"/ --><!-- Turkish -->
<!-- country name="my" domain="www.game.com.my" game="permainan_" language="15"/ --><!-- Malaysian -->
</family>
<tween>
<!-- new -->
<country name="arg" domain="www.juegos.com.ar" game="game" language="18"/><!-- Argentina -->
<country name="mx" domain="www.juegos.mx" game="game" language="19"/><!-- Mexico -->
<country name="ar" domain="www.dailygame.com" game="game" language="1"/><!-- Arabic(English US) 2009.07.14 -->
<country name="br" domain="www.clickjogos.com" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="17"/><!-- Chinese -->
<country name="de" domain="www.spielen.com" game="spiel" language="5"/><!-- German -->
<country name="es" domain="www.zapjuegos.com" game="juego" language="6"/><!-- Spanish -->
<country name="fr" domain="www.jeu.fr" game="jeu" language="4"/><!-- French -->
<country name="id" domain="www.games.co.id" game="permainanme" language="14"/><!-- Indonesian -->
<country name="in" domain="www.game.co.in" game="game" language="2"/><!-- English UK -->
<country name="it" domain="www.gioco.it" game="gioco" language="9"/><!-- Italian 2009.08.10 -->
<country name="jp" domain="www.egames.jp" game="game" language="16"/><!-- Japanese -->
<country name="nl" domain="www.spel.nl" game="spel" language="3"/><!-- Dutch -->
<country name="pl" domain="www.gry.pl" game="gra" language="11"/><!-- Polish 2009.08.10-->
<country name="pt" domain="www.ojogos.pt" game="jogo" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.flashgames.ru" game="igra" language="12"/><!-- Russian -->
<country name="se" domain="www.spel.se" game="spel_" language="10"/><!-- Swedish -->
<country name="en_uk" domain="www.agame.com" game="game" language="2"/><!-- English UK 2009.08.28-->
<country name="en_us" domain="www.agame.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
<!-- country name="ph" domain="www.laro.com.ph" game="game" language="2"/ --><!-- English UK -->
<!-- country name="tr" domain="www.asoyun.com" game="oyun" language="13"/ --><!-- Turkish -->
<!-- country name="my" domain="www.game.com.my" game="permainan_" language="15"/ --><!-- Malaysian -->
</tween>
<girl>
<!-- new -->
<country name="arg" domain="www.juegosdechicas.com.ar" game="game" language="18"/><!-- Argentina -->
<country name="mx" domain="www.juegosdechicas.mx" game="game" language="19"/><!-- Mexico -->
<country name="ar" domain="www.dailygame.com" game="game" language="1"/><!-- Arabic(English US) 2009.07.14-->
<country name="br" domain="www.girlsgogames.com.br" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="17"/><!-- Chinese -->
<country name="de" domain="www.girlsgogames.de" game="spiel" language="5"/><!-- German -->
<country name="es" domain="www.girlsgogames.es" game="juego" language="6"/><!-- Spanish -->
<country name="fr" domain="www.girlsgogames.fr" game="jeu" language="4"/><!-- French -->
<country name="id" domain="www.games.co.id" game="permainanme" language="14"/><!-- Indonesian -->
<country name="in" domain="www.game.co.in" game="game" language="2"/><!-- English UK -->
<country name="it" domain="www.girlsgogames.it" game="gioco" language="9"/><!-- Italian -->
<country name="jp" domain="www.egames.jp" game="game" language="16"/><!-- Japanese -->
<country name="nl" domain="www.girlsgogames.nl" game="spel" language="3"/><!-- Dutch -->
<country name="pl" domain="www.girlsgogames.pl" game="gra" language="11"/><!-- Polish -->
<country name="pt" domain="www.ojogos.pt" game="jogo" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.girlsgogames.ru" game="igra" language="12"/><!-- Russian -->
<country name="se" domain="www.girlsgogames.se" game="spel_" language="10"/><!-- Swedish -->
<country name="en_uk" domain="www.girlsgogames.co.uk" game="game" language="2"/><!-- English UK -->
<country name="en_us" domain="www.girlsgogames.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
<!-- country name="ph" domain="www.laro.com.ph" game="game" language="2"/ --><!-- English UK -->
<!-- country name="tr" domain="www.girlsgogamestr.com" game="oyun" language="13"/ --><!-- Turkish -->
<!-- country name="my" domain="www.game.com.my" game="permainan_" language="15"/ --><!-- Malaysian -->
</girl>
<teen>
<!-- new -->
<!--country name="arg" domain="www.juegosdechicas.com.ar" game="game" language="18"/ --><!-- Argentina -->
<!--country name="mx" domain="www.juegosdechicas.mx" game="game" language="19"/ --><!-- Mexico -->
<!--country name="ar" domain="www.dailygame.com" game="game" language="1"/ --><!-- Arabic(English US) 2009.07.14-->
<!--country name="br" domain="www.a10.com" game="jogo" language="7"/ --><!-- Brazillian -->
<!--country name="cn" domain="www.game.com.cn" game="moregames" language="17"/ --><!-- Chinese -->
<!--country name="de" domain="www.a10.com" game="spiel" language="5"/ --><!-- German -->
<!--country name="es" domain="www.a10.com" game="juego" language="6"/ --><!-- Spanish -->
<!--country name="fr" domain="www.a10.com" game="jeu" language="4"/ --><!-- French -->
<!--country name="id" domain="www.a10.com" game="permainanme" language="14"/ --><!-- Indonesian -->
<!--country name="in" domain="www.a10.com" game="game" language="2"/ --><!-- English UK -->
<!--country name="it" domain="www.a10.com" game="gioco" language="9"/ --><!-- Italian -->
<!--country name="jp" domain="www.a10.com" game="game" language="16"/ --><!-- Japanese -->
<!--country name="nl" domain="www.a10.com" game="spel" language="3"/ --><!-- Dutch -->
<!--country name="pl" domain="www.a10.com" game="gra" language="11"/ --><!-- Polish -->
<!--country name="pt" domain="www.a10.com" game="jogo" language="8"/ --><!-- Portuguese -->
<!--country name="ru" domain="www.a10.com" game="igra" language="12"/ --><!-- Russian -->
<!--country name="se" domain="www.a10.com" game="spel_" language="10"/ --><!-- Swedish -->
<!--country name="en_uk" domain="www.a10.com" game="game" language="2"/ --><!-- English UK -->
<country name="en_us" domain="www.a10.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
<!-- country name="ph" domain="www.a10.com" game="game" language="2"/ --><!-- English UK -->
<!-- country name="tr" domain="www.a10.com" game="oyun" language="13"/ --><!-- Turkish -->
<!-- country name="my" domain="www.a10.com" game="permainan_" language="15"/ --><!-- Malaysian -->
</teen>
<zapapa>
<!-- new -->
<country name="arg" domain="www.zapapa.com" game="game" language="18"/><!-- Argentina -->
<country name="mx" domain="www.zapapa.com" game="game" language="19"/><!-- Mexico -->
<country name="ar" domain="www.zapapa.com" game="game" language="1"/><!-- Arabic(English US) 2009.07.14-->
<country name="br" domain="www.zapapa.com" game="game" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.zapapa.com" game="game" language="17"/><!-- Chinese -->
<country name="de" domain="www.zapapa.com" game="game" language="5"/><!-- German -->
<country name="es" domain="www.zapapa.com" game="game" language="6"/><!-- Spanish -->
<country name="fr" domain="www.zapapa.com" game="game" language="4"/><!-- French -->
<country name="id" domain="www.zapapa.com" game="game" language="14"/><!-- Indonesian -->
<country name="in" domain="www.zapapa.com" game="game" language="2"/><!-- English UK -->
<country name="it" domain="www.zapapa.com" game="game" language="9"/><!-- Italian -->
<country name="jp" domain="www.zapapa.com" game="game" language="16"/><!-- Japanese -->
<country name="nl" domain="www.zapapa.com" game="game" language="3"/><!-- Dutch -->
<country name="pl" domain="www.zapapa.com" game="game" language="11"/><!-- Polish -->
<country name="pt" domain="www.zapapa.com" game="game" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.zapapa.com" game="game" language="12"/><!-- Russian -->
<country name="se" domain="www.zapapa.com" game="game" language="10"/><!-- Swedish -->
<country name="en_uk" domain="www.zapapa.com" game="game" language="2"/><!-- English UK -->
<country name="en_us" domain="www.zapapa.com" game="game" language="1"/><!-- English US -->
</zapapa>
<hyves>
<!-- new -->
<country name="nl" domain="www.zapapa.nl" game="game" language="3"/><!-- Dutch -->
</hyves>
</data>
;
}
}//package zlong.country
Section 139
//CountryInfo (zlong.country.CountryInfo)
package zlong.country {
import zlong.domain.*;
import zlong.*;
import zlong.data.*;
public class CountryInfo {
private var countries:Countries;
localComponent_internal static const VERSION:String = "v1.07.201009092145";
private static var _instance:CountryInfo;
public function CountryInfo(){
this.countries = new Countries();
}
public function set portal(_arg1:String):void{
this.countries.portal = _arg1;
}
public function get portal():String{
return (this.countries.portal);
}
public function set country(_arg1:String):void{
this.countries.country = _arg1;
}
public function get country():String{
return (this.countries.current.name);
}
public function get domain():String{
return (this.countries.current.domain);
}
public function get language():int{
return (this.countries.current.language);
}
public function get countryGroup():Array{
return (this.countries.countryGroup);
}
public function get copyRightLink():String{
var _local1:String;
_local1 = "http://www.gameportal.net";
_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));
_local1 = (_local1 + "&utm_content=Mainscreen");
return (_local1);
}
public function get moreGameLink():String{
var _local1:String;
_local1 = ("http://" + this.domain);
if (this.countries.current.name != "cn"){
_local1 = (_local1 + "/");
_local1 = (_local1 + ("?utm_medium=brandedgames_" + (DomainInfo.instance.allowed) ? "internal" : "external"));
_local1 = (_local1 + ("&utm_campaign=" + GameInfo.name));
_local1 = (_local1 + ("&utm_source=" + DomainInfo.instance.domainAb));
} else {
_local1 = (_local1 + "/");
_local1 = (_local1 + "moregames");
_local1 = (_local1 + "/");
};
return (_local1);
}
public function get thisGameLink():String{
var _local1:String;
_local1 = ("http://" + this.domain);
_local1 = (_local1 + ((("/" + this.countries.current.game) + "/") + GameInfo.html));
if (this.countries.current.name != "cn"){
_local1 = (_local1 + ("?utm_medium=brandedgames_" + (DomainInfo.instance.allowed) ? "internal" : "external"));
_local1 = (_local1 + ("&utm_campaign=" + GameInfo.name));
_local1 = (_local1 + ("&utm_source=" + DomainInfo.instance.domainAb));
};
return (_local1);
}
public function get sendToFriendLink():String{
var _local1:String = this.thisGameLink;
if (this.countries.current.name != "cn"){
_local1 = (_local1 + "&utm_content=send_to_friend");
};
return (_local1);
}
public static function get instance():CountryInfo{
if (_instance == null){
_instance = new (CountryInfo);
};
return (_instance);
}
}
}//package zlong.country
Section 140
//CountryItem (zlong.country.CountryItem)
package zlong.country {
import zlong.*;
final class CountryItem {
var name:String;
var domain:String;
var game:String;
var language:int;
localComponent_internal static const VERSION:String = "v1.07.201009092145";
}
}//package zlong.country
Section 141
//CountryCookie (zlong.data.CountryCookie)
package zlong.data {
import flash.net.*;
import zlong.*;
public class CountryCookie {
localComponent_internal static const VERSION:String = "v1.07.201009092145";
private static const name:String = "spilgames_language_v100";
private static const countryName:String = "savedLang";
private static var so:SharedObject;
public function CountryCookie():void{
so = SharedObject.getLocal(name, "/");
}
localComponent_internal static function set country(_arg1:String):void{
so.data[countryName] = _arg1;
}
localComponent_internal static function get country():String{
return (so.data[countryName]);
}
}
}//package zlong.data
Section 142
//GameInfo (zlong.data.GameInfo)
package zlong.data {
import zlong.*;
public class GameInfo {
localComponent_internal static const VERSION:String = "v1.07.201009092145";
localComponent_internal static var cnversion:Boolean = false;
localComponent_internal static var portal:String = "family";
localComponent_internal static var name:String = "game_name";
localComponent_internal static var html:String = "Game-Name.html";
localComponent_internal static var width:int = 550;
localComponent_internal static var height:int = 400;
}
}//package zlong.data
Section 143
//AbstractBindingDisplay (zlong.display.AbstractBindingDisplay)
package zlong.display {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class AbstractBindingDisplay extends MovieClip {
localComponent_internal static const VERSION:String = "v1.07.201009092145";
public function AbstractBindingDisplay(){
if (getQualifiedClassName(this) == "zlong::display::AbstractBindingDisplay"){
throw (new ArgumentError("can't be constructed"));
};
}
public function initEvent(_arg1:Event=null):void{
}
public function delEvent(_arg1:Event=null):void{
}
}
}//package zlong.display
Section 144
//BindingDisplayEvent (zlong.display.BindingDisplayEvent)
package zlong.display {
import flash.events.*;
public class BindingDisplayEvent extends Event {
private var _BD:AbstractBindingDisplay;
private var _displayType:String;
localComponent_internal static const VERSION:String = "v1.07.201009092145";
public static const BINDING_DISPLAY_INIT:String = "BINDING_DISPLAY_INIT";
public static const BINDING_DISPLAY_DEL_EVENT:String = "BINDING_DISPLAY_DEL_EVENT";
public static const BINDING_DISPLAY_ADDED_TO_STAGE:String = "BINDING_DISPLAY_ADDED_TO_STAGE";
public static const BINDING_DISPLAY_REMOVE_TO_STAGE:String = "BINDING_DISPLAY_REMOVE_TO_STAGE";
public function BindingDisplayEvent(_arg1:String, _arg2:AbstractBindingDisplay, _arg3:String, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this._BD = _arg2;
this._displayType = _arg3;
}
public function get bindingDisplay():AbstractBindingDisplay{
return (this._BD);
}
public function get displayType():String{
return (this._displayType);
}
}
}//package zlong.display
Section 145
//BindingDisplayManager (zlong.display.BindingDisplayManager)
package zlong.display {
import flash.events.*;
public class BindingDisplayManager extends EventDispatcher {
localComponent_internal static const VERSION:String = "v1.07.201009092145";
private static var _instance:BindingDisplayManager;
public function BindingDisplayManager():void{
}
public static function get Instance():BindingDisplayManager{
if (_instance == null){
_instance = new (BindingDisplayManager);
};
return (_instance);
}
}
}//package zlong.display
Section 146
//Copyright (zlong.display.Copyright)
package zlong.display {
import flash.events.*;
import zlong.navigate.*;
public class Copyright extends AbstractBindingDisplay {
localComponent_internal static const VERSION:String = "v1.07.201009092145";
public function Copyright(){
this.gotoAndStop(1);
this.buttonMode = true;
this.mouseChildren = false;
addEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_INIT, this, "Copyright"));
}
private function addToStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_ADDED_TO_STAGE, this, "Copyright"));
this.initEvent();
}
private function removeFromStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_REMOVE_TO_STAGE, this, "Copyright"));
this.delEvent();
}
override public function initEvent(_arg1:Event=null):void{
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
this.addEventListener(MouseEvent.CLICK, Handler.click_copyright);
this.addEventListener(MouseEvent.ROLL_OVER, this.rollOverHandler);
this.addEventListener(MouseEvent.MOUSE_DOWN, this.mouseDownHandler);
this.addEventListener(MouseEvent.MOUSE_UP, this.mouseUpHandler);
this.addEventListener(MouseEvent.ROLL_OUT, this.rollOutHandler);
this.addEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
}
override public function delEvent(_arg1:Event=null):void{
this.removeEventListener(MouseEvent.CLICK, Handler.click_copyright);
this.removeEventListener(MouseEvent.ROLL_OVER, this.rollOverHandler);
this.removeEventListener(MouseEvent.MOUSE_DOWN, this.mouseDownHandler);
this.removeEventListener(MouseEvent.MOUSE_UP, this.mouseUpHandler);
this.removeEventListener(MouseEvent.ROLL_OUT, this.rollOutHandler);
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
if (this.hasEventListener(Event.REMOVED_FROM_STAGE)){
removeEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
};
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_DEL_EVENT, this, "Copyright"));
}
private function rollOverHandler(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function mouseDownHandler(_arg1:MouseEvent):void{
this.gotoAndStop(3);
}
private function mouseUpHandler(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function rollOutHandler(_arg1:MouseEvent):void{
this.gotoAndStop(1);
}
}
}//package zlong.display
Section 147
//CountriesBox (zlong.display.CountriesBox)
package zlong.display {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import zlong.country.*;
import zlong.data.*;
public class CountriesBox extends AbstractBindingDisplay {
private var i:uint;
private var mul:int;// = 1
private var baseX:Number;// = 0
private var baseY:Number;// = 0
private var nameGroup:Array;
private var obj:Object;
private var pop:Sprite;
private var flagMc:MovieClip;
private var selectBox:MovieClip;
private var country_name:MovieClip;
localComponent_internal static const VERSION:String = "v1.07.201009092145";
public function CountriesBox(){
this.nameGroup = [];
super();
addEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_INIT, this, "CountriesBox"));
}
private function addToStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_ADDED_TO_STAGE, this, "CountriesBox"));
this.initEvent();
}
private function removeFromStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_REMOVE_TO_STAGE, this, "CountriesBox"));
this.delEvent();
}
override public function initEvent(_arg1:Event=null):void{
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
this.initShow();
addEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
}
override public function delEvent(_arg1:Event=null):void{
removeEventListener(MouseEvent.ROLL_OVER, this.overHandler);
removeEventListener(MouseEvent.ROLL_OUT, this.outHandler);
removeEventListener(MouseEvent.CLICK, this.clickHandler);
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
if (this.hasEventListener(Event.REMOVED_FROM_STAGE)){
removeEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
};
this.delPoPEvent();
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_DEL_EVENT, this, "CountriesBox"));
}
private function initShow():void{
this.obj = new Object();
this.initPos();
this.setFlag();
this.setPop();
this.initFlagEvent();
this.initPoPEvent();
if (GameInfo.cnversion){
this.visible = false;
this.setLanguage("cn");
};
}
private function initPos():void{
var _local1:Point = new Point();
_local1 = this.parent.localToGlobal(new Point(x, y));
if (_local1.y > (GameInfo.height / 2)){
this.mul = 1;
} else {
this.mul = -1;
};
}
private function setFlag():void{
this.country_name = (getChildByName("countryName") as MovieClip);
this.flagMc = (getChildByName("flag") as MovieClip);
this.flagMc.gotoAndStop(CountryInfo.instance.country);
this.country_name.gotoAndStop(CountryInfo.instance.country);
}
private function setPop():void{
var _local1:Number;
var _local2:Number;
var _local5:MovieClip;
var _local6:String;
var _local8:MovieClip;
var _local3:Number = 0;
var _local4:Number = 0;
this.pop = (getChildByName("popList") as Sprite);
this.selectBox = (getChildByName("selectbox") as MovieClip);
_local1 = this.pop.getChildByName("_blank").width;
_local2 = (this.pop.getChildByName("_blank").height - 1);
this.baseX = this.selectBox.x;
this.nameGroup = CountryInfo.instance.countryGroup;
var _local7:int = this.nameGroup.length;
if (this.mul == 1){
this.baseY = ((this.selectBox.y - (Math.round((_local7 / 2)) * _local2)) + _local2);
} else {
this.baseY = ((this.selectBox.y + this.selectBox.height) + _local2);
};
this.pop.y = this.baseY;
this.pop.visible = false;
this.pop.getChildByName("_blank").visible = false;
this.i = 0;
while (this.i < _local7) {
_local6 = this.nameGroup[this.i];
if (this.pop.getChildByName(("l_" + _local6)) != null){
_local5 = (this.pop.getChildByName(("l_" + _local6)) as MovieClip);
_local5.mouseChildren = false;
_local5.buttonMode = true;
_local5.stop();
_local8 = (_local5.getChildByName("flag") as MovieClip);
_local8.mouseEnabled = false;
_local8.mouseChildren = false;
_local8.gotoAndStop(_local6);
this.obj[("l_" + _local6)] = true;
_local3 = (((this.i % 2) == 0)) ? 0 : 1;
_local5.x = ((_local1 * (this.i % 2)) - _local3);
_local5.y = ((_local2 * Math.floor((this.i / 2))) - _local2);
};
this.i++;
};
this.i = 0;
while (this.i < this.pop.numChildren) {
if (this.pop.getChildAt(this.i).name.indexOf("l_") != -1){
if (this.obj[this.pop.getChildAt(this.i).name] == undefined){
this.pop.getChildAt(this.i).visible = false;
};
};
this.i++;
};
if ((this.nameGroup.length % 2) == 0){
this.pop.getChildByName("_blank").visible = false;
} else {
this.pop.getChildByName("_blank").visible = true;
this.pop.getChildByName("_blank").x = (_local1 - 1);
this.pop.getChildByName("_blank").y = (((_local2 * Math.floor((this.nameGroup.length / 2))) - _local2) - _local4);
};
}
private function initFlagEvent():void{
addEventListener(MouseEvent.ROLL_OVER, this.overHandler, false, 0, true);
addEventListener(MouseEvent.ROLL_OUT, this.outHandler, false, 0, true);
addEventListener(MouseEvent.CLICK, this.clickHandler, false, 0, true);
}
private function clickHandler(_arg1:MouseEvent):void{
var _local3:MovieClip;
var _local2:String = _arg1.target["name"];
if (_local2 == "_blank"){
return;
};
if (_local2.indexOf("l_") != -1){
_local3 = (_arg1.target["getChildByName"]("flag") as MovieClip);
this.flagMc.gotoAndStop(_local2.substr(2));
this.country_name.gotoAndStop(_local3.currentFrame);
this.setLanguage(_local2.substr(2));
this.pop.visible = false;
};
}
private function setLanguage(_arg1:String):void{
CountryInfo.instance.country = _arg1;
CountryCookie.country = _arg1;
Dispatcher.langChanged();
}
private function overHandler(_arg1:MouseEvent):void{
this.pop.visible = true;
}
private function outHandler(_arg1:MouseEvent):void{
this.pop.visible = false;
}
private function initPoPEvent():void{
this.pop.addEventListener(MouseEvent.MOUSE_OVER, this.overPoPHandler);
this.pop.addEventListener(MouseEvent.MOUSE_OUT, this.outPoPHandler);
}
private function delPoPEvent():void{
this.pop.removeEventListener(MouseEvent.MOUSE_OVER, this.overPoPHandler);
this.pop.removeEventListener(MouseEvent.MOUSE_OUT, this.outPoPHandler);
}
private function overPoPHandler(_arg1:MouseEvent):void{
var _local2 = _arg1.target;
_local2["gotoAndStop"](2);
}
private function outPoPHandler(_arg1:MouseEvent):void{
var _local2 = _arg1.target;
_local2["gotoAndStop"](1);
}
}
}//package zlong.display
Section 148
//Dispatcher (zlong.display.Dispatcher)
package zlong.display {
import flash.events.*;
import zlong.*;
class Dispatcher {
localComponent_internal static const VERSION:String = "v1.07.201009092145";
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 149
//ExtButton (zlong.display.ExtButton)
package zlong.display {
import flash.events.*;
import zlong.navigate.*;
public class ExtButton extends AbstractBindingDisplay {
private var _type:String;// = "moregames"
private var _position:String;// = "button_preloader"
localComponent_internal static const VERSION:String = "v1.07.201009092145";
public function ExtButton(){
this.gotoAndStop(1);
this.buttonMode = true;
this.mouseChildren = false;
addEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_INIT, this, "ExtButton"));
}
private function addToStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_ADDED_TO_STAGE, this, "ExtButton"));
this.initEvent();
}
private function removeFromStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_REMOVE_TO_STAGE, this, "ExtButton"));
this.delEvent();
}
override public function initEvent(_arg1:Event=null):void{
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
this.addEventListener(MouseEvent.CLICK, this.clickHandler);
this.addEventListener(MouseEvent.ROLL_OVER, this.rollOverHandler);
this.addEventListener(MouseEvent.MOUSE_DOWN, this.mouseDownHandler);
this.addEventListener(MouseEvent.MOUSE_UP, this.mouseUpHandler);
this.addEventListener(MouseEvent.ROLL_OUT, this.rollOutHandler);
this.addEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
}
override public function delEvent(_arg1:Event=null):void{
this.removeEventListener(MouseEvent.CLICK, this.clickHandler);
this.removeEventListener(MouseEvent.ROLL_OVER, this.rollOverHandler);
this.removeEventListener(MouseEvent.MOUSE_DOWN, this.mouseDownHandler);
this.removeEventListener(MouseEvent.MOUSE_UP, this.mouseUpHandler);
this.removeEventListener(MouseEvent.ROLL_OUT, this.rollOutHandler);
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
if (this.hasEventListener(Event.REMOVED_FROM_STAGE)){
removeEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
};
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_DEL_EVENT, this, "ExtButton"));
}
public function set position(_arg1:String):void{
this._position = _arg1;
}
public function set type(_arg1:String):void{
this._type = _arg1;
}
private function clickHandler(_arg1:MouseEvent):void{
if (this._type == "moregames"){
Handler.click_moregames(this._position);
} else {
Handler.click_thisgame(this._position);
};
}
private function rollOverHandler(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function mouseDownHandler(_arg1:MouseEvent):void{
this.gotoAndStop(3);
}
private function mouseUpHandler(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function rollOutHandler(_arg1:MouseEvent):void{
this.gotoAndStop(1);
}
}
}//package zlong.display
Section 150
//HyvesLoading (zlong.display.HyvesLoading)
package zlong.display {
import flash.display.*;
import zlong.country.*;
import zlong.*;
public class HyvesLoading extends Sprite {
public function HyvesLoading(){
if (CountryInfo.instance.portal != GameSetting.PORTAL_TYPE_HYVES){
this.visible = false;
};
}
}
}//package zlong.display
Section 151
//Logo (zlong.display.Logo)
package zlong.display {
import flash.display.*;
import flash.events.*;
import zlong.breathxue.utils.math.*;
import zlong.country.*;
import zlong.navigate.*;
public class Logo extends AbstractBindingDisplay {
private const MAX_WIDTH:int = 200;
private const Max_HEIGHT:int = 50;
private var _hitArea:Sprite;
private var _position:String;// = "logo_preloader"
private var _alignHorizontal:String;// = "Center"
private var _alignVertical:String;// = "Center"
private var _maxWidth:Number;// = 150
private var _maxHeight:Number;// = 40
localComponent_internal static const VERSION:String = "v1.07.201009092145";
public function Logo(){
this.initDis();
addEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler, false, 0, true);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_INIT, this, "Logo"));
}
private function addToStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_ADDED_TO_STAGE, this, "Logo"));
this.initEvent();
}
private function removeFromStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_REMOVE_TO_STAGE, this, "Logo"));
this.delEvent();
}
override public function initEvent(_arg1:Event=null):void{
gotoAndStop(CountryInfo.instance.domain);
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
this.addEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
this.addEventListener(MouseEvent.CLICK, this.clickHandler);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, this.langChangeHandler);
this.updateView();
}
override public function delEvent(_arg1:Event=null):void{
this.delDis();
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
if (this.hasEventListener(Event.REMOVED_FROM_STAGE)){
removeEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
};
this.removeEventListener(MouseEvent.CLICK, this.clickHandler);
Dispatcher.dispatcher.removeEventListener(Dispatcher.LANGUAGE_CHANGED, this.langChangeHandler);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_DEL_EVENT, this, "Logo"));
}
public function set position(_arg1:String):void{
this._position = _arg1;
}
public function set alignHorizontal(_arg1:String):void{
this._alignHorizontal = _arg1;
}
public function set alignVertical(_arg1:String):void{
this._alignVertical = _arg1;
}
public function set maxWidth(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
} else {
if (_arg1 > this.MAX_WIDTH){
_arg1 = this.MAX_WIDTH;
};
};
this._maxWidth = _arg1;
}
public function set maxHeight(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
} else {
if (_arg1 > this.Max_HEIGHT){
_arg1 = this.Max_HEIGHT;
};
};
this._maxHeight = _arg1;
}
private function updateView():void{
var _local3:mVector;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local1:Sprite = (this.getChildByName("wh") as Sprite);
var _local2:Sprite = (this.getChildAt(0) as Sprite);
if (!_local2){
return;
};
_local2.scaleX = 1;
_local2.scaleY = 1;
if (_local1){
_local3 = new mVector(_local1.width, _local1.height);
} else {
_local3 = new mVector(_local2.width, _local2.height);
};
if ((((_local3.x > 0)) && ((_local3.y > 0)))){
_local4 = (this._maxHeight / _local3.y);
_local5 = (this._maxWidth / _local3.x);
_local6 = ((_local4 > _local5)) ? _local5 : _local4;
_local3.multEquals(_local6);
_local2.scaleX = _local6;
_local2.scaleY = _local6;
};
if (this._alignHorizontal){
switch (this._alignHorizontal){
case "Left":
_local2.x = 0;
break;
case "Right":
_local2.x = (this.MAX_WIDTH - _local3.x);
break;
case "Center":
_local2.x = ((this.MAX_WIDTH - _local3.x) / 2);
break;
};
};
if (this._alignVertical){
switch (this._alignVertical){
case "Up":
_local2.y = 0;
break;
case "Down":
_local2.y = (this.Max_HEIGHT - _local3.y);
break;
case "Center":
_local2.y = ((this.Max_HEIGHT - _local3.y) / 2);
break;
};
};
this._hitArea.width = _local3.x;
this._hitArea.height = _local3.y;
this._hitArea.x = _local2.x;
this._hitArea.y = _local2.y;
}
private function initDis():void{
buttonMode = true;
this._hitArea = new Sprite();
this.addChild(this._hitArea);
this._hitArea.graphics.beginFill(3368601, 0);
this._hitArea.graphics.drawRect(0, 0, 10, 10);
this._hitArea.graphics.endFill();
this.getChildByName("displayArea_mc").visible = false;
var _local1:int;
while (_local1 < this.totalFrames) {
this.addFrameScript(_local1, this.updateView);
_local1++;
};
}
private function delDis():void{
stop();
}
private function clickHandler(_arg1:MouseEvent):void{
Handler.click_moregames(this._position);
}
private function langChangeHandler(_arg1:Event):void{
gotoAndStop(CountryInfo.instance.domain);
}
}
}//package zlong.display
Section 152
//Menu (zlong.display.Menu)
package zlong.display {
import flash.events.*;
import flash.display.*;
import zlong.country.*;
import zlong.*;
import flash.ui.*;
import zlong.navigate.*;
public class Menu {
private var displayObject:InteractiveObject;
private var menu:ContextMenu;
private var item:ContextMenuItem;
localComponent_internal static const VERSION:String = "v1.07.201009092145";
public function Menu(_arg1:InteractiveObject){
this.displayObject = _arg1;
this.init();
this.initEvent();
}
private function init():void{
this.menu = new ContextMenu();
this.menu.hideBuiltInItems();
var _local1:ContextMenuBuiltInItems = this.menu.builtInItems;
_local1.print = true;
_local1.zoom = true;
_local1.quality = true;
this.item = new ContextMenuItem(("MoreGame: " + CountryInfo.instance.domain));
this.menu.customItems.push(this.item);
this.displayObject.contextMenu = this.menu;
}
private function initEvent():void{
this.item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, this.clickItemHandler);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, this.changeLang);
}
private function changeLang(_arg1:Event):void{
this.item.caption = CountryInfo.instance.domain;
}
private function clickItemHandler(_arg1:ContextMenuEvent):void{
Handler.click_moregames("Contex_Menu");
}
}
}//package zlong.display
Section 153
//TranText (zlong.display.TranText)
package zlong.display {
import flash.events.*;
import zlong.country.*;
public class TranText extends AbstractBindingDisplay {
private var isChange:Boolean;// = true
localComponent_internal static const VERSION:String = "v1.07.201009092145";
public function TranText(){
addEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler, false, 0, true);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_INIT, this, "TranText"));
}
private function addToStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_ADDED_TO_STAGE, this, "TranText"));
this.initEvent();
}
private function removeFromStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_REMOVE_TO_STAGE, this, "TranText"));
this.delEvent();
}
override public function initEvent(_arg1:Event=null):void{
this.changeLang();
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
addEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, this.langChangeHandler);
}
override public function delEvent(_arg1:Event=null):void{
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
if (this.hasEventListener(Event.REMOVED_FROM_STAGE)){
removeEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
};
Dispatcher.dispatcher.removeEventListener(Dispatcher.LANGUAGE_CHANGED, this.langChangeHandler);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_DEL_EVENT, this, "TranText"));
}
public function set change(_arg1:Boolean):void{
this.isChange = _arg1;
}
private function changeLang():void{
gotoAndStop(CountryInfo.instance.language);
}
private function langChangeHandler(_arg1:Event):void{
if (this.isChange){
this.changeLang();
};
}
}
}//package zlong.display
Section 154
//DomainData (zlong.domain.DomainData)
package zlong.domain {
import zlong.*;
final class DomainData {
localComponent_internal static const VERSION:String = "v1.07.201009092145";
static const allowedDomain:Array = ["www8.agame.com", "www.zlonggamestest.com", "gamedev.dev.spilgames.com"];
}
}//package zlong.domain
Section 155
//DomainInfo (zlong.domain.DomainInfo)
package zlong.domain {
import flash.net.*;
import zlong.*;
public final class DomainInfo {
private var _allowed:Boolean;
private var _domain:String;
private var _domainAb:String;
localComponent_internal static const VERSION:String = "v1.07.201009092145";
private static var _instance:DomainInfo;
public function DomainInfo(){
this._domain = new LocalConnection().domain;
this.initAllowed();
this.initAb();
}
localComponent_internal function get allowed():Boolean{
return (this._allowed);
}
localComponent_internal function get domain():String{
return (this._domain);
}
localComponent_internal function get domainAb():String{
return (this._domainAb);
}
private function initAllowed():void{
var _local1:int;
while (_local1 < DomainData.allowedDomain.length) {
if (this._domain == DomainData.allowedDomain[_local1]){
this._allowed = true;
break;
};
_local1++;
};
}
private function initAb():void{
var _local1:Array;
var _local2:int;
var _local3:int;
if (this._domain != "localhost"){
_local1 = this._domain.split(".");
_local2 = (_local1.length - 1);
_local3 = (_local1.length - 2);
this._domainAb = ((_local1[_local3] + ".") + _local1[_local2]);
} else {
this._domainAb = "offline_play";
};
}
public static function get instance():DomainInfo{
if (_instance == null){
_instance = new (DomainInfo);
};
return (_instance);
}
}
}//package zlong.domain
Section 156
//Handler (zlong.navigate.Handler)
package zlong.navigate {
import flash.events.*;
import zlong.country.*;
import flash.net.*;
import zlong.*;
import flash.external.*;
public class Handler {
localComponent_internal static const VERSION:String = "v1.07.201009092145";
public static function click_gamecn(_arg1:Event=null):void{
var _local2:URLRequest = new URLRequest("http://www.game.com.cn");
navigateToURL(_local2, "_blank");
}
public static function click_copyright(_arg1:Event=null):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest("http://www.game.com.cn");
} else {
_local2 = new URLRequest(CountryInfo.instance.copyRightLink);
};
navigateToURL(_local2, "_blank");
Trace("||Tester||", _local2.url);
}
public static function refurbish(_arg1:Event=null):void{
var e = _arg1;
try {
ExternalInterface.call("location.reload");
navigateToURL(new URLRequest(ExternalInterface.call("window.location.href.toString")), "_top");
} catch(myError:Error) {
};
}
public static function click_thisgame(_arg1:String):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.moreGameLink);
} else {
_local2 = new URLRequest(((CountryInfo.instance.thisGameLink + "&utm_content=") + _arg1));
};
navigateToURL(_local2, "_blank");
Trace("||Tester||", _local2.url);
}
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");
Trace("||Tester||", _local2.url);
}
}
}//package zlong.navigate
Section 157
//LocalSiteDataLoader (zlong.site.LocalSiteDataLoader)
package zlong.site {
import flash.events.*;
import flash.net.*;
import zlong.*;
public class LocalSiteDataLoader {
private var _localSiteDataLoader:URLLoader;
localComponent_internal static const VERSION:String = "v1.07.201009092145";
private static var _localSiteDataLoaderFinish:Boolean = true;
public function LocalSiteDataLoader(){
super();
_localSiteDataLoaderFinish = false;
this._localSiteDataLoader = new URLLoader();
this._localSiteDataLoader.dataFormat = URLLoaderDataFormat.TEXT;
this._localSiteDataLoader.addEventListener(IOErrorEvent.IO_ERROR, this.errorHandler);
this._localSiteDataLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.errorHandler);
this._localSiteDataLoader.addEventListener(Event.COMPLETE, this.LocalSiteDataLoaderFinish);
try {
this._localSiteDataLoader.load(new URLRequest(SiteData.URL));
} catch(e:Error) {
errorHandler();
};
}
private function LocalSiteDataLoaderFinish(_arg1:Event):void{
SiteData.allowedSite = new XML(this._localSiteDataLoader.data);
_localSiteDataLoaderFinish = true;
SiteInfo.instance.reInit();
this.delLocalSiteDataLoader();
}
private function errorHandler(_arg1:Event=null):void{
SiteData.allowedSite = <sites></sites>
;
_localSiteDataLoaderFinish = true;
SiteInfo.instance.reInit();
this.delLocalSiteDataLoader();
}
private function delLocalSiteDataLoader():void{
this._localSiteDataLoader.removeEventListener(IOErrorEvent.IO_ERROR, this.errorHandler);
this._localSiteDataLoader.removeEventListener(Event.COMPLETE, this.LocalSiteDataLoaderFinish);
this._localSiteDataLoader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this.errorHandler);
this._localSiteDataLoader = null;
}
public static function get localSiteDataLoaderFinish():Boolean{
return (_localSiteDataLoaderFinish);
}
}
}//package zlong.site
Section 158
//SiteData (zlong.site.SiteData)
package zlong.site {
import zlong.*;
public final class SiteData {
localComponent_internal static const VERSION:String = "v1.07.201009092145";
public static const URL:String = "http://www8.agame.com/games/sitelock/sites.xml";
public static var allowedSite:XML;
}
}//package zlong.site
Section 159
//SiteInfo (zlong.site.SiteInfo)
package zlong.site {
import zlong.*;
import zlong.data.*;
import flash.external.*;
public class SiteInfo {
private var _sites:Array;
private var _link:String;
private var _html:String;
private var _domain:String;
private var _allowed:Boolean;
localComponent_internal static const VERSION:String = "v1.07.201009092145";
private static var _instance:SiteInfo;
public function SiteInfo():void{
this.initSites();
this._link = this.getURL();
this._html = this.getHtml(this._link);
this._domain = this.getDomain(this._link);
this._allowed = this.check(this._domain, this._sites);
}
function reInit():void{
this.initSites();
this._link = this.getURL();
this._html = this.getHtml(this._link);
this._domain = this.getDomain(this._link);
this._allowed = this.check(this._domain, this._sites);
}
public function get allowed():Boolean{
if (GameInfo.cnversion){
return (true);
};
return (this._allowed);
}
public function get link():String{
return (this._link);
}
public function get html():String{
return (this._html);
}
public function get domain():String{
return (this._domain);
}
private function initSites():void{
var _local1:XMLList;
var _local2:int;
this._sites = new Array();
if (SiteData.allowedSite != null){
_local1 = SiteData.allowedSite.child("item");
_local2 = 0;
while (_local2 < _local1.length()) {
this._sites.push(_local1[_local2]);
_local2++;
};
};
}
private function getURL():String{
var loc:String;
try {
loc = ExternalInterface.call("window.location.href.toString");
} catch(e) {
loc = "error";
};
if ((((loc == null)) || ((loc == "")))){
loc = "error";
};
if (String(loc).indexOf(".swf") != -1){
loc = "error";
};
return (loc);
}
private function getHtml(_arg1:String):String{
var _local2:int = _arg1.indexOf("?");
if (_local2 != -1){
return (_arg1);
};
return (_arg1.substr(0, _local2));
}
private function getDomain(_arg1:String):String{
var _local2 = "";
var _local3:uint = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
return (_local2);
}
private function check(_arg1:String, _arg2:Array):Boolean{
var _local3:uint;
while (_local3 < _arg2.length) {
if (_arg1 == _arg2[_local3]){
return (true);
};
_local3++;
};
return (false);
}
public static function get instance():SiteInfo{
if (_instance == null){
_instance = new (SiteInfo);
};
return (_instance);
}
}
}//package zlong.site
Section 160
//Award_HighScore (zlong.spilSystemTool.Award_HighScore)
package zlong.spilSystemTool {
import flash.events.*;
import flash.display.*;
import com.spilgames.api.*;
import zlong.*;
public class Award_HighScore implements IEventDispatcher {
framework_internal static const VERSION:String = "v1.13.201009151115";
public static const AWORD_HIGHSCORE_TOOL_INITIALIZED_COMPONENT:String = "SPILGAMESSERVICS_INITIALIZED_COMPONENT";
public static const AWORD_HIGHSCORE_TOOL_INITIALIZED_FAILED:String = "SPILGAMESSERVICS_INITIALIZED_FAILED";
static var _instance:Award_HighScore;
public function init(_arg1:String, _arg2:Sprite, _arg3:Boolean=false, _arg4:Boolean=true):void{
if (!SpilSetting._instance){
SpilSetting.instance.init(_arg2, _arg1, _arg3);
};
if (_arg3){
_arg2.stage.addEventListener(KeyboardEvent.KEY_DOWN, this.keyBoardSendAwards);
};
}
public function isAwardsServiceAvailable():Boolean{
return (AwardsService.isAvailable());
}
public function isScoreServiceAvailable():Boolean{
return (ScoreService.isAvailable());
}
private function keyBoardSendAwards(_arg1:Event):void{
var _local2:KeyboardEvent = (_arg1 as KeyboardEvent);
if (((((_local2.ctrlKey) && ((_local2.keyCode > 48)))) && ((_local2.keyCode < 58)))){
this.submitAchievement(("award" + String.fromCharCode(_local2.keyCode)));
};
}
public function requestAchievementList():void{
}
public function requestAchievementInfo(_arg1:int):void{
}
public function requestHighScoreList():void{
}
public function requestUserHighScoreList(_arg1:String):void{
}
public function submitScore(_arg1):void{
if (ScoreService.isAvailable()){
ScoreService.submitScore(_arg1);
} else {
Trace("||ZFW||", "No...isAvailable");
};
}
public function submitAchievement(_arg1):void{
if (AwardsService.isAvailable()){
AwardsService.submitAward(_arg1);
} else {
Trace("||ZFW||", "No...isAvailable");
};
}
public function isComponentInitialized():Boolean{
return (((AwardsService.isAvailable()) && (ScoreService.isAvailable())));
}
public function isDomainAllowed():Boolean{
return (this.isComponentInitialized());
}
public function destroy():void{
}
public function dispatchEvent(_arg1:Event):Boolean{
return (SpilSetting.instance.dispatchEvent(_arg1));
}
public function hasEventListener(_arg1:String):Boolean{
return (SpilSetting.instance.hasEventListener(_arg1));
}
public function willTrigger(_arg1:String):Boolean{
return (SpilSetting.instance.willTrigger(_arg1));
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
SpilSetting.instance.removeEventListener(_arg1, _arg2, _arg3);
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
SpilSetting.instance.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public static function get instance():Award_HighScore{
if (_instance == null){
_instance = new (Award_HighScore);
};
return (_instance);
}
public static function get initializedFinish():Boolean{
if (SpilSetting._instance){
return (SpilSetting.instance.initSpilGamesServices_finish);
};
return (true);
}
}
}//package zlong.spilSystemTool
Section 161
//GoogleEvent (zlong.spilSystemTool.GoogleEvent)
package zlong.spilSystemTool {
import flash.display.*;
import flash.net.*;
import com.google.analytics.*;
import zlong.utils.*;
public class GoogleEvent {
private var _gaGameName:String;
private var _gaTracker:GATracker;
private var _gaEventArr:Array;
private var _gaSharedObject:SharedObject;
framework_internal static const VERSION:String = "v1.13.201009151115";
private static var _instance:GoogleEvent;
public function GoogleEvent():void{
}
public function init(_arg1:String, _arg2:DisplayObject, _arg3:Boolean):void{
var _local4:String;
this._gaGameName = _arg1;
this._gaTracker = new GATracker(_arg2, "UA-6695967-1", "AS3", _arg3);
this._gaEventArr = new Array();
this._gaSharedObject = SharedObjectUtil.getLocal("googleEvent");
for (_local4 in this._gaSharedObject.data) {
this._gaEventArr.push(_local4);
};
}
public function gaTrackEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=true):void{
var _local4:int;
if (((!(_arg3)) || (!(_arg2)))){
_local4 = 0;
while (_local4 < this._gaEventArr.length) {
if (_arg1 == this._gaEventArr[_local4]){
return;
};
_local4++;
};
if (!_arg3){
this._gaSharedObject.data[_arg1] = 1;
SharedObjectUtil.save(this._gaSharedObject);
};
this._gaEventArr.push(_arg1);
};
this._gaTracker.trackEvent(this._gaGameName, _arg1, "per session", 0);
}
public static function get instance():GoogleEvent{
if (_instance == null){
_instance = new (GoogleEvent);
};
return (_instance);
}
}
}//package zlong.spilSystemTool
Section 162
//SpilSetting (zlong.spilSystemTool.SpilSetting)
package zlong.spilSystemTool {
import flash.events.*;
import flash.display.*;
import com.spilgames.api.*;
import zlong.*;
import flash.utils.*;
public class SpilSetting implements IEventDispatcher {
private const MAX_CONNECT_TIME:int = 15;
private var _isDebug:Boolean;
private var _spilGamesServices:SpilGamesServices;
public static const SPILGAMESSERVICS_INITIALIZED_COMPONENT:String = "SPILGAMESSERVICS_INITIALIZED_COMPONENT";
public static const SPILGAMESSERVICS_INITIALIZED_FAILED:String = "SPILGAMESSERVICS_INITIALIZED_FAILED";
framework_internal static const VERSION:String = "v1.13.201009151115";
private static var _initSpilGamesServices_finish:Boolean = true;
static var _instance:SpilSetting;
public function init(_arg1:Sprite, _arg2:String, _arg3:Boolean=false):void{
if (this._spilGamesServices){
return;
};
this._isDebug = _arg3;
if (_arg1.stage == null){
throw (new ArgumentError("disObj need be added in stage"));
};
_initSpilGamesServices_finish = false;
this._spilGamesServices = SpilGamesServices.getInstance();
this._spilGamesServices.addEventListener("servicesReady", this.onServicesReady);
this._spilGamesServices.addEventListener("servicesFailed", this.onServicesFailed);
this._spilGamesServices.connect(_arg1);
var _local4:Timer = new Timer((this.MAX_CONNECT_TIME * 1000), 1);
_local4.start();
_local4.addEventListener(TimerEvent.TIMER_COMPLETE, this.onTimerend_initSpilGamesServices);
}
private function onTimerend_initSpilGamesServices(_arg1:TimerEvent):void{
(_arg1.currentTarget as Timer).removeEventListener(TimerEvent.TIMER_COMPLETE, this.onTimerend_initSpilGamesServices);
if (!_initSpilGamesServices_finish){
this._spilGamesServices.dispatchEvent(new ErrorEvent("servicesFailed", false, false, ":connect_Timeout"));
Trace("||ZFW||", "10second TimeOut--onTimerend_initSpilGamesServices");
};
}
private function onServicesReady(_arg1:Event):void{
this._spilGamesServices.removeEventListener("servicesReady", this.onServicesReady);
this._spilGamesServices.removeEventListener("servicesFailed", this.onServicesFailed);
if (this._isDebug){
Trace("||ZFW||", ("SpilSetting_SpilGamesServices_Initialized_Complete::" + _arg1));
};
_initSpilGamesServices_finish = true;
}
private function onServicesFailed(_arg1:ErrorEvent):void{
this._spilGamesServices.removeEventListener("servicesReady", this.onServicesReady);
this._spilGamesServices.removeEventListener("servicesFailed", this.onServicesFailed);
if (this._isDebug){
Trace("||ZFW||", ("SpilSetting_SpilGamesServices_Initialize_Failed:" + _arg1.text));
};
_initSpilGamesServices_finish = true;
}
public function checkUserLogin():Boolean{
if (this._spilGamesServices){
return (!(User.isGuest()));
};
throw (new ArgumentError("SpilSetting didn`t init"));
}
public function get itemId():String{
if (this._spilGamesServices){
return (String(this._spilGamesServices.getItemID()));
};
throw (new ArgumentError("SpilSetting didn`t init"));
}
public function get siteId():String{
if (this._spilGamesServices){
return (String(this._spilGamesServices.getSiteID()));
};
throw (new ArgumentError("SpilSetting didn`t init"));
}
public function get username():String{
if (this._spilGamesServices){
return (User.getUserName());
};
throw (new ArgumentError("SpilSetting didn`t init"));
}
public function get hash():String{
if (this._spilGamesServices){
return (User.getUserHash());
};
throw (new ArgumentError("SpilSetting didn`t init"));
}
public function get initSpilGamesServices_finish():Boolean{
if (this._spilGamesServices){
return (_initSpilGamesServices_finish);
};
throw (new ArgumentError("SpilSetting didn`t init"));
}
public function dispatchEvent(_arg1:Event):Boolean{
if (this._spilGamesServices){
return (this._spilGamesServices.dispatchEvent(_arg1));
};
throw (new ArgumentError("SpilSetting didn`t init"));
}
public function hasEventListener(_arg1:String):Boolean{
if (this._spilGamesServices){
return (this._spilGamesServices.hasEventListener(_arg1));
};
throw (new ArgumentError("SpilSetting didn`t init"));
}
public function willTrigger(_arg1:String):Boolean{
if (this._spilGamesServices){
return (this._spilGamesServices.willTrigger(_arg1));
};
throw (new ArgumentError("SpilSetting didn`t init"));
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (this._spilGamesServices){
this._spilGamesServices.removeEventListener(_arg1, _arg2);
} else {
throw (new ArgumentError("SpilSetting didn`t init"));
};
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (this._spilGamesServices){
this._spilGamesServices.addEventListener(_arg1, _arg2);
} else {
throw (new ArgumentError("SpilSetting didn`t init"));
};
}
public static function get instance():SpilSetting{
if (_instance == null){
_instance = new (SpilSetting);
};
return (_instance);
}
}
}//package zlong.spilSystemTool
Section 163
//UiLoading (zlong.Template.demo.ui.UiLoading)
package zlong.Template.demo.ui {
import flash.display.*;
import flash.events.*;
import zlong.Template.*;
import flash.text.*;
import zlong.breathxue.utils.*;
public class UiLoading extends AbstractLoadingClass {
private var _mc_perBar:MovieClip;
private var _mc_perText:TextField;
private var _mc:Sprite;
private static const MC_CLASS_NAME:String = "UI_LM_loading";
public function UiLoading(_arg1:Sprite):void{
super(_arg1);
initDis(_arg1);
initEvent();
}
private function delDis():void{
_mc.parent.removeChild(_mc);
}
private function initEvent():void{
_mc.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
}
private function delEvent():void{
_mc.removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
}
override public function destroy():void{
delEvent();
delDis();
}
private function enterFrameHandler(_arg1:Event):void{
var _local2:Number = (_mc.root.loaderInfo.bytesLoaded / _mc.root.loaderInfo.bytesTotal);
}
private function initDis(_arg1:Sprite):void{
_mc = Attach.getSprite(MC_CLASS_NAME);
_arg1.addChild(_mc);
_mc_perBar = (_mc.getChildByName("perLoading") as MovieClip);
_mc_perText = (_mc.getChildByName("txt_loading") as TextField);
}
}
}//package zlong.Template.demo.ui
Section 164
//AbstractLoadingClass (zlong.Template.AbstractLoadingClass)
package zlong.Template {
import flash.display.*;
import flash.utils.*;
public class AbstractLoadingClass {
framework_internal static const VERSION:String = "v1.13.201009151115";
public function AbstractLoadingClass(_arg1:Sprite){
if (getQualifiedClassName(this) == "zlong::Template::AbstractLoadingClass"){
throw (new ArgumentError("can't be constructed"));
};
}
public function destroy():void{
throw (new ArgumentError("function destroy must be override"));
}
}
}//package zlong.Template
Section 165
//AbstractMainClass (zlong.Template.AbstractMainClass)
package zlong.Template {
import flash.display.*;
import zlong.spilSystemTool.*;
import flash.text.*;
import flash.utils.*;
import net.hires.debug.*;
import zlong.utils.*;
public class AbstractMainClass {
private var __mainMc:Sprite;
protected var __GameMc:Sprite;
private var _childClass:Class;
framework_internal static const VERSION:String = "v1.13.201009151115";
public function AbstractMainClass(_arg1:Sprite){
if (getQualifiedClassName(this) == "zlong::Template::AbstractMainClass"){
throw (new ArgumentError("can't be constructed"));
};
this._childClass = (getDefinitionByName(getQualifiedClassName(this)) as Class);
this.__mainMc = _arg1;
this.__GameMc = new Sprite();
this.__GameMc.name = "GameMc";
this.__mainMc.addChild(this.__GameMc);
this.initGameSetting();
}
protected function initGameSetting():void{
SpilSetting.instance.init((this.__mainMc.root as Sprite), this.gameNameUnderline, AbstractRootClass.instance._childClass["__debug__"]);
SharedObjectUtil.init(this.gameNameUnderline);
GoogleEvent.instance.init(this.gameNameUnderline, this.__mainMc.root, AbstractRootClass.instance._childClass["__debug__"]);
}
protected function showVersion(_arg1:String):void{
var _local2:Sprite;
_local2 = new Sprite();
_local2.name = "VersionMc";
_local2.mouseEnabled = false;
this.__mainMc.addChild(_local2);
var _local3:TextField = new TextField();
_local3.selectable = false;
_local3.mouseEnabled = false;
_local3.defaultTextFormat = new TextFormat("_san", 12, 0);
_local3.width = 200;
_local3.height = 50;
_local3.x = 0;
_local3.y = 0;
_local3.text = _arg1;
_local2.addChild(_local3);
}
protected function showFPS():void{
this.__mainMc.addChild(new Stats());
}
public function get gameNameUnderline():String{
return (AbstractRootClass.cutGameName((AbstractRootClass.instance._childClass["GAME_NAME"] as String)));
}
}
}//package zlong.Template
Section 166
//AbstractRootClass (zlong.Template.AbstractRootClass)
package zlong.Template {
import flash.events.*;
import flash.display.*;
import zlong.spilSystemTool.*;
import zlong.site.*;
import zlong.utils.*;
import zlong.*;
import flash.utils.*;
import flash.geom.*;
public class AbstractRootClass extends MovieClip {
var _childClass:Class;
private var __mainMc:Sprite;
private var _game:Object;
private var _realLoaderUI:Object;
private var _textLoaderUI:TextLoader;
private var _loadingComplete:Boolean;
framework_internal static const VERSION:String = "v1.13.201009151115";
static var instance:AbstractRootClass;
public function AbstractRootClass(){
instance = this;
this._loadingComplete = false;
this.stop();
if (getQualifiedClassName(this) == "zlong::Template::AbstractRootClass"){
throw (new ArgumentError("can't be constructed"));
};
this._childClass = (getDefinitionByName(getQualifiedClassName(this)) as Class);
if (!(this._childClass["GAME_FRAMERATE"] is int)){
throw (new ArgumentError("Class Root need static const Int 'GAME_FRAMERATE'"));
};
if (!(this._childClass["GAME_NAME"] is String)){
throw (new ArgumentError("Class Root need static const String 'GAME_NAME'"));
};
if (!(this._childClass["STAGE_WIGHT"] is int)){
throw (new ArgumentError("Class Root need static const Int 'STAGE_WIGHT'"));
};
if (!(this._childClass["STAGE_HEIGHT"] is int)){
throw (new ArgumentError("Class Root need static const Int 'STAGE_HEIGHT'"));
};
if (!(this._childClass["PORTAL_TYPE"] is String)){
throw (new ArgumentError("Class Root need static const String 'PORTAL_TYPE'"));
};
if (!(this._childClass["LOADING_CLASS_NAME"] is String)){
throw (new ArgumentError("Class Root need static const String 'LOADING_CLASS_NAME'"));
};
if (!(this._childClass["GAME_CLASS_NAME"] is String)){
throw (new ArgumentError("Class Root need static const String 'GAME_CLASS_NAME'"));
};
if (!(this._childClass["VERSION_NUM"] is String)){
throw (new ArgumentError("Class Root need static const String 'VERSION_NUM'"));
};
if (!(this._childClass["__debug__"] is Boolean)){
throw (new ArgumentError("Class Root need static const Boolean '__debug__'"));
};
stage.frameRate = this._childClass["GAME_FRAMERATE"];
this.__mainMc = new Sprite();
this.__mainMc.name = "__mainMc";
this.addChild(this.__mainMc);
if (!this._childClass["__debug__"]){
this.__mainMc.scrollRect = new Rectangle(0, 0, this._childClass["STAGE_WIGHT"], this._childClass["STAGE_HEIGHT"]);
};
this.addFrameScript(0, this.s0);
this.addFrameScript(1, this.s1);
this.addFrameScript(2, this.s2);
this.checkFPVersion();
HideConsole = ["|ZLC|"];
}
private function checkFPVersion():void{
FPVersionCheck.checkVersion();
}
private function s0():void{
this.script0();
this.stop();
this.initSettingBeforeLoading();
this.initTextloader();
this.initLoading();
}
private function s1():void{
var realLoadingClass:Class;
this.script1();
this.stop();
this._childClass["LOADING_CLASS_NAME"];
try {
realLoadingClass = (getDefinitionByName(this._childClass["LOADING_CLASS_NAME"]) as Class);
} catch(e:Error) {
throw (new ArgumentError(("can`t found the Loading Class " + _childClass["LOADING_CLASS_NAME"])));
return;
};
this._realLoaderUI = new realLoadingClass(this.__mainMc);
if (!(this._realLoaderUI is (getDefinitionByName("zlong.Template.AbstractLoadingClass") as Class))){
throw (new ArgumentError("the Loading Class mush extends Class AbstractLoadingClass"));
};
}
private function s2():void{
var mainClass:Class;
this.script2();
this.stop();
try {
mainClass = (getDefinitionByName(this._childClass["GAME_CLASS_NAME"]) as Class);
} catch(e:Error) {
throw (new ArgumentError(("can`t found the Main Class " + _childClass["GAME_CLASS_NAME"])));
return;
};
this._game = new mainClass(this.__mainMc);
if (!(this._game is (getDefinitionByName("zlong.Template.AbstractMainClass") as Class))){
throw (new ArgumentError("the Main Class mush extends Class AbstractMainClass"));
};
}
private function initLoading():void{
this.addEventListener(Event.ENTER_FRAME, this.updateLoading);
this.loaderInfo.addEventListener(Event.COMPLETE, this.LoadingComplete);
}
private function LoadingComplete(_arg1:Event):void{
this._loadingComplete = true;
}
private function updateLoading(_arg1:Event):void{
if (this.framesLoaded == 1){
this._textLoaderUI.update();
};
if ((((this.currentFrame == 1)) && ((this.framesLoaded >= 2)))){
this.realLoaderLoadingFinish();
};
if ((((((((this.currentFrame == 2)) && (((this._loadingComplete) || ((this.totalFrames == this.framesLoaded)))))) && (LocalSiteDataLoader.localSiteDataLoaderFinish))) && (Award_HighScore.initializedFinish))){
this.loadingFinish();
this.delLoading();
};
}
private function delLoading():void{
this.removeEventListener(Event.ENTER_FRAME, this.updateLoading);
}
private function initTextloader():void{
this._textLoaderUI = new TextLoader(this.__mainMc, this._childClass["STAGE_WIGHT"], this._childClass["STAGE_HEIGHT"]);
}
protected function delTextLoader():void{
if (this._textLoaderUI){
this._textLoaderUI.del();
this._textLoaderUI = null;
};
}
protected function delRealLoadingUI():void{
if (this._realLoaderUI){
var _local1 = this._realLoaderUI;
_local1["destroy"]();
};
}
protected function initSettingBeforeLoading():void{
new GameSetting(this, false, this._childClass["PORTAL_TYPE"], cutGameName((this._childClass["GAME_NAME"] as String)), (cutGameName((this._childClass["GAME_NAME"] as String), "-", true) + ".html"), this._childClass["STAGE_WIGHT"], this._childClass["STAGE_HEIGHT"]);
Award_HighScore.instance.init(cutGameName((this._childClass["GAME_NAME"] as String)), this, this._childClass["__debug__"], this._childClass["__debug__"]);
}
protected function realLoaderLoadingFinish():void{
this.delTextLoader();
this.gotoAndStop(2);
}
protected function loadingFinish():void{
this.delRealLoadingUI();
this.gotoAndStop(3);
}
protected function script0():void{
}
protected function script1():void{
}
protected function script2():void{
}
public static function cutGameName(_arg1:String, _arg2:String="_", _arg3:Boolean=false):String{
var _local4:RegExp = /[-| |_]/;
var _local5:Array = _arg1.split(_local4);
var _local6 = "";
var _local7 = "";
var _local8:int;
while (_local8 < _local5.length) {
_local7 = ((_local5[_local8] as String).toLowerCase() + _arg2);
if (_arg3){
_local6 = (_local6 + (_local7.charAt(0).toUpperCase() + _local7.substr(1)));
} else {
_local6 = (_local6 + _local7);
};
_local8++;
};
_local6 = _local6.substr(0, (_local6.length - 1));
return (_local6);
}
}
}//package zlong.Template
Section 167
//TextLoader (zlong.Template.TextLoader)
package zlong.Template {
import flash.display.*;
import flash.text.*;
import zlong.*;
public class TextLoader {
private var _tf:TextField;
private var _loaderInfo:LoaderInfo;
private var _width:Number;
private var _height:Number;
private var _pmc:Sprite;
framework_internal static const VERSION:String = "v1.13.201009151115";
public function TextLoader(_arg1:Sprite, _arg2:Number, _arg3:Number){
this._pmc = _arg1;
this._width = _arg2;
this._height = _arg3;
this._loaderInfo = _arg1.root.loaderInfo;
this._tf = new TextField();
this._tf.autoSize = TextFieldAutoSize.LEFT;
this._tf.defaultTextFormat = new TextFormat("_sans", 16, 0, true);
this._tf.height = 30;
this._pmc.addChild(this._tf);
}
function update():void{
this._tf.text = (("Loading... " + Math.floor(((100 * this._loaderInfo.bytesLoaded) / this._loaderInfo.bytesTotal))) + "%");
this._tf.x = ((this._width - this._tf.width) / 2);
this._tf.y = ((this._height - this._tf.height) / 2);
}
function del():void{
this._pmc.removeChild(this._tf);
this._tf = null;
this._loaderInfo = null;
this._pmc = null;
}
}
}//package zlong.Template
Section 168
//FPVersionCheck (zlong.utils.FPVersionCheck)
package zlong.utils {
import zlong.*;
import flash.system.*;
public class FPVersionCheck {
public static const ALLOW_VERSION_MIN:String = "9,0,0,0";
public static function getVersion():String{
return (Capabilities.version);
}
framework_internal static function checkVersion():void{
var _local4:int;
var _local1:String = Capabilities.version;
var _local2:Array = (_local1.split(" ")[1] as String).split(",");
var _local3:Array = ALLOW_VERSION_MIN.split(",");
for (;_local4 < _local2.length;_local4++) {
if (int(_local2[_local4]) > int(_local3[_local4])){
return;
};
if (int(_local2[_local4]) == int(_local3[_local4])){
continue;
} else {
if (int(_local2[_local4]) < int(_local3[_local4])){
Trace(("当前flash player版本为" + _local1));
Trace(("游戏允许的最低flash player版本为flash player" + ALLOW_VERSION_MIN));
throw (new VerifyError(("The current Flash Player version is too low,please use the version above Flash Player" + ALLOW_VERSION_MIN)));
};
};
};
}
}
}//package zlong.utils
Section 169
//SharedObjectUtil (zlong.utils.SharedObjectUtil)
package zlong.utils {
import flash.events.*;
import flash.net.*;
public class SharedObjectUtil {
framework_internal static const VERSION:String = "v1.13.201009151115";
private static const PREFIX:String = "SpilGames";
private static const GLOBAL:String = "global";
private static var gameName:String;
private static var operatedSharedObject:SharedObject;
public static function init(_arg1:String):void{
SharedObjectUtil.gameName = _arg1;
}
public static function getGlobal(_arg1:String):SharedObject{
var so:SharedObject;
var name = _arg1;
try {
so = SharedObject.getLocal(((((PREFIX + "_") + GLOBAL) + "_") + name), "/");
} catch(err:Error) {
Trace("||ZFW||", "create error");
};
return (so);
}
public static function getLocal(_arg1:String):SharedObject{
var so:SharedObject;
var name = _arg1;
try {
so = SharedObject.getLocal(((((PREFIX + "_") + gameName) + "_") + name), "/");
} catch(err:Error) {
Trace("||ZFW||", "create error");
};
return (so);
}
public static function save(_arg1:SharedObject):void{
var flushResult:String;
var sharedObject = _arg1;
operatedSharedObject = sharedObject;
try {
flushResult = operatedSharedObject.flush();
if (flushResult == SharedObjectFlushStatus.PENDING){
operatedSharedObject.addEventListener(NetStatusEvent.NET_STATUS, statusHandler);
} else {
operatedSharedObject = null;
};
} catch(err:Error) {
};
}
private static function statusHandler(_arg1:NetStatusEvent):void{
if (_arg1.info["code"] == "SharedObject.Flush.Failed"){
} else {
if (_arg1.info["code"] == "SharedObject.Flush.Success"){
Trace("||ZFW||", "save successed");
};
};
operatedSharedObject.removeEventListener(NetStatusEvent.NET_STATUS, statusHandler);
operatedSharedObject = null;
}
}
}//package zlong.utils
Section 170
//framework_internal (zlong.framework_internal)
package zlong {
public namespace framework_internal = "http://www.zlonggames.com/flash/framework/internal";
}//package zlong
Section 171
//GameSetting (zlong.GameSetting)
package zlong {
import flash.display.*;
import zlong.site.*;
import zlong.country.*;
import zlong.data.*;
import zlong.display.*;
public class GameSetting {
private var _XMLLoader:LocalSiteDataLoader;
localComponent_internal static const VERSION:String = "v1.07.201009092145";
public static const PORTAL_TYPE_FAMILY:String = "family";
public static const PORTAL_TYPE_TWEEN:String = "tween";
public static const PORTAL_TYPE_GIRL:String = "girl";
public static const PORTAL_TYPE_TEEN:String = "teen";
public static const PORTAL_TYPE_ZAPAPA:String = "zapapa";
public static const PORTAL_TYPE_HYVES:String = "hyves";
public function GameSetting(_arg1:InteractiveObject, _arg2:Boolean, _arg3:String, _arg4:String, _arg5:String, _arg6:int, _arg7:int){
GameInfo.cnversion = _arg2;
GameInfo.portal = _arg3;
GameInfo.name = _arg4;
GameInfo.html = _arg5;
GameInfo.width = _arg6;
GameInfo.height = _arg7;
this._XMLLoader = new LocalSiteDataLoader();
this.init();
this.initMenu(_arg1);
}
private function init():void{
new CountryCookie();
CountryInfo.instance.portal = GameInfo.portal;
if (CountryCookie.country == null){
CountryInfo.instance.country = "en_us";
} else {
CountryInfo.instance.country = String(CountryCookie.country);
};
}
private function initMenu(_arg1:InteractiveObject):void{
new Menu(_arg1);
}
}
}//package zlong
Section 172
//localComponent_internal (zlong.localComponent_internal)
package zlong {
public namespace localComponent_internal = "http://www.zlonggames.com/flash/localComponent/internal";
}//package zlong
Section 173
//wav (æ— æ”¾å¤§é•œæ示.wav)
package 无放大镜提示 {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package 无放大镜提示
Section 174
//Btn_000013 (Btn_000013)
package {
import utils.*;
public dynamic class Btn_000013 extends ExtButton {
}
}//package
Section 175
//Btn_NO (Btn_NO)
package {
import utils.*;
public dynamic class Btn_NO extends ExtButton {
}
}//package
Section 176
//Btn_YES (Btn_YES)
package {
import utils.*;
public dynamic class Btn_YES extends ExtButton {
}
}//package
Section 177
//BUT_0_1 (BUT_0_1)
package {
import flash.display.*;
public dynamic class BUT_0_1 extends MovieClip {
}
}//package
Section 178
//BUT_0_2 (BUT_0_2)
package {
import flash.display.*;
public dynamic class BUT_0_2 extends MovieClip {
}
}//package
Section 179
//BUT_0_3 (BUT_0_3)
package {
import flash.display.*;
public dynamic class BUT_0_3 extends MovieClip {
}
}//package
Section 180
//but_backtogame (but_backtogame)
package {
import utils.*;
public dynamic class but_backtogame extends ExtButton {
}
}//package
Section 181
//but_hints (but_hints)
package {
import utils.*;
public dynamic class but_hints extends ExtButton {
}
}//package
Section 182
//but_MAIN (but_MAIN)
package {
import utils.*;
public dynamic class but_MAIN extends ExtButton {
}
}//package
Section 183
//but_MORE_GAME (but_MORE_GAME)
package {
import utils.*;
public dynamic class but_MORE_GAME extends ExtButton {
}
}//package
Section 184
//but_pause (but_pause)
package {
import utils.*;
public dynamic class but_pause extends ExtButton {
public function but_pause(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 185
//but_play (but_play)
package {
import utils.*;
public dynamic class but_play extends ExtButton {
}
}//package
Section 186
//but_QUIT (but_QUIT)
package {
import utils.*;
public dynamic class but_QUIT extends ExtButton {
}
}//package
Section 187
//but_SUBMIT_SCORE_QUIT (but_SUBMIT_SCORE_QUIT)
package {
import utils.*;
public dynamic class but_SUBMIT_SCORE_QUIT extends ExtButton {
}
}//package
Section 188
//but0_0 (but0_0)
package {
import flash.display.*;
public dynamic class but0_0 extends MovieClip {
}
}//package
Section 189
//but0_0___ (but0_0___)
package {
import flash.display.*;
public dynamic class but0_0___ extends MovieClip {
}
}//package
Section 190
//Class366 (Class366)
package {
import zlong.display.*;
public dynamic class Class366 extends TranText {
}
}//package
Section 191
//Class367 (Class367)
package {
import zlong.display.*;
public dynamic class Class367 extends TranText {
}
}//package
Section 192
//Copyright (Copyright)
package {
import zlong.display.*;
public dynamic class Copyright extends Copyright {
}
}//package
Section 193
//CountriesBox (CountriesBox)
package {
import flash.display.*;
import zlong.display.*;
public dynamic class CountriesBox extends CountriesBox {
public var countryName:MovieClip;
public var selectbox:MovieClip;
public var popList:MovieClip;
public var flag:MovieClip;
}
}//package
Section 194
//Finder1_1 (Finder1_1)
package {
import flash.display.*;
public dynamic class Finder1_1 extends MovieClip {
}
}//package
Section 195
//Finder1_10 (Finder1_10)
package {
import flash.display.*;
public dynamic class Finder1_10 extends MovieClip {
}
}//package
Section 196
//Finder1_2 (Finder1_2)
package {
import flash.display.*;
public dynamic class Finder1_2 extends MovieClip {
}
}//package
Section 197
//Finder1_3 (Finder1_3)
package {
import flash.display.*;
public dynamic class Finder1_3 extends MovieClip {
}
}//package
Section 198
//Finder1_4 (Finder1_4)
package {
import flash.display.*;
public dynamic class Finder1_4 extends MovieClip {
}
}//package
Section 199
//Finder1_5 (Finder1_5)
package {
import flash.display.*;
public dynamic class Finder1_5 extends MovieClip {
}
}//package
Section 200
//Finder1_6 (Finder1_6)
package {
import flash.display.*;
public dynamic class Finder1_6 extends MovieClip {
}
}//package
Section 201
//Finder1_7 (Finder1_7)
package {
import flash.display.*;
public dynamic class Finder1_7 extends MovieClip {
}
}//package
Section 202
//Finder1_8 (Finder1_8)
package {
import flash.display.*;
public dynamic class Finder1_8 extends MovieClip {
}
}//package
Section 203
//Finder1_9 (Finder1_9)
package {
import flash.display.*;
public dynamic class Finder1_9 extends MovieClip {
}
}//package
Section 204
//Finder10_1 (Finder10_1)
package {
import flash.display.*;
public dynamic class Finder10_1 extends MovieClip {
}
}//package
Section 205
//Finder10_10 (Finder10_10)
package {
import flash.display.*;
public dynamic class Finder10_10 extends MovieClip {
}
}//package
Section 206
//Finder10_2 (Finder10_2)
package {
import flash.display.*;
public dynamic class Finder10_2 extends MovieClip {
}
}//package
Section 207
//Finder10_3 (Finder10_3)
package {
import flash.display.*;
public dynamic class Finder10_3 extends MovieClip {
}
}//package
Section 208
//Finder10_4 (Finder10_4)
package {
import flash.display.*;
public dynamic class Finder10_4 extends MovieClip {
}
}//package
Section 209
//Finder10_5 (Finder10_5)
package {
import flash.display.*;
public dynamic class Finder10_5 extends MovieClip {
}
}//package
Section 210
//Finder10_6 (Finder10_6)
package {
import flash.display.*;
public dynamic class Finder10_6 extends MovieClip {
}
}//package
Section 211
//Finder10_7 (Finder10_7)
package {
import flash.display.*;
public dynamic class Finder10_7 extends MovieClip {
}
}//package
Section 212
//Finder10_8 (Finder10_8)
package {
import flash.display.*;
public dynamic class Finder10_8 extends MovieClip {
}
}//package
Section 213
//Finder10_9 (Finder10_9)
package {
import flash.display.*;
public dynamic class Finder10_9 extends MovieClip {
}
}//package
Section 214
//Finder11_1 (Finder11_1)
package {
import flash.display.*;
public dynamic class Finder11_1 extends MovieClip {
}
}//package
Section 215
//Finder11_10 (Finder11_10)
package {
import flash.display.*;
public dynamic class Finder11_10 extends MovieClip {
}
}//package
Section 216
//Finder11_2 (Finder11_2)
package {
import flash.display.*;
public dynamic class Finder11_2 extends MovieClip {
}
}//package
Section 217
//Finder11_3 (Finder11_3)
package {
import flash.display.*;
public dynamic class Finder11_3 extends MovieClip {
}
}//package
Section 218
//Finder11_4 (Finder11_4)
package {
import flash.display.*;
public dynamic class Finder11_4 extends MovieClip {
}
}//package
Section 219
//Finder11_5 (Finder11_5)
package {
import flash.display.*;
public dynamic class Finder11_5 extends MovieClip {
}
}//package
Section 220
//Finder11_6 (Finder11_6)
package {
import flash.display.*;
public dynamic class Finder11_6 extends MovieClip {
}
}//package
Section 221
//Finder11_7 (Finder11_7)
package {
import flash.display.*;
public dynamic class Finder11_7 extends MovieClip {
}
}//package
Section 222
//Finder11_8 (Finder11_8)
package {
import flash.display.*;
public dynamic class Finder11_8 extends MovieClip {
}
}//package
Section 223
//Finder11_9 (Finder11_9)
package {
import flash.display.*;
public dynamic class Finder11_9 extends MovieClip {
}
}//package
Section 224
//Finder2_1 (Finder2_1)
package {
import flash.display.*;
public dynamic class Finder2_1 extends MovieClip {
}
}//package
Section 225
//Finder2_10 (Finder2_10)
package {
import flash.display.*;
public dynamic class Finder2_10 extends MovieClip {
}
}//package
Section 226
//Finder2_2 (Finder2_2)
package {
import flash.display.*;
public dynamic class Finder2_2 extends MovieClip {
}
}//package
Section 227
//Finder2_3 (Finder2_3)
package {
import flash.display.*;
public dynamic class Finder2_3 extends MovieClip {
}
}//package
Section 228
//Finder2_4 (Finder2_4)
package {
import flash.display.*;
public dynamic class Finder2_4 extends MovieClip {
}
}//package
Section 229
//Finder2_5 (Finder2_5)
package {
import flash.display.*;
public dynamic class Finder2_5 extends MovieClip {
}
}//package
Section 230
//Finder2_6 (Finder2_6)
package {
import flash.display.*;
public dynamic class Finder2_6 extends MovieClip {
}
}//package
Section 231
//Finder2_7 (Finder2_7)
package {
import flash.display.*;
public dynamic class Finder2_7 extends MovieClip {
}
}//package
Section 232
//Finder2_8 (Finder2_8)
package {
import flash.display.*;
public dynamic class Finder2_8 extends MovieClip {
}
}//package
Section 233
//Finder2_9 (Finder2_9)
package {
import flash.display.*;
public dynamic class Finder2_9 extends MovieClip {
}
}//package
Section 234
//Finder3_1 (Finder3_1)
package {
import flash.display.*;
public dynamic class Finder3_1 extends MovieClip {
}
}//package
Section 235
//Finder3_10 (Finder3_10)
package {
import flash.display.*;
public dynamic class Finder3_10 extends MovieClip {
}
}//package
Section 236
//Finder3_2 (Finder3_2)
package {
import flash.display.*;
public dynamic class Finder3_2 extends MovieClip {
}
}//package
Section 237
//Finder3_3 (Finder3_3)
package {
import flash.display.*;
public dynamic class Finder3_3 extends MovieClip {
}
}//package
Section 238
//Finder3_4 (Finder3_4)
package {
import flash.display.*;
public dynamic class Finder3_4 extends MovieClip {
}
}//package
Section 239
//Finder3_5 (Finder3_5)
package {
import flash.display.*;
public dynamic class Finder3_5 extends MovieClip {
}
}//package
Section 240
//Finder3_6 (Finder3_6)
package {
import flash.display.*;
public dynamic class Finder3_6 extends MovieClip {
}
}//package
Section 241
//Finder3_7 (Finder3_7)
package {
import flash.display.*;
public dynamic class Finder3_7 extends MovieClip {
}
}//package
Section 242
//Finder3_8 (Finder3_8)
package {
import flash.display.*;
public dynamic class Finder3_8 extends MovieClip {
}
}//package
Section 243
//Finder3_9 (Finder3_9)
package {
import flash.display.*;
public dynamic class Finder3_9 extends MovieClip {
}
}//package
Section 244
//Finder4_1 (Finder4_1)
package {
import flash.display.*;
public dynamic class Finder4_1 extends MovieClip {
}
}//package
Section 245
//Finder4_10 (Finder4_10)
package {
import flash.display.*;
public dynamic class Finder4_10 extends MovieClip {
}
}//package
Section 246
//Finder4_2 (Finder4_2)
package {
import flash.display.*;
public dynamic class Finder4_2 extends MovieClip {
}
}//package
Section 247
//Finder4_3 (Finder4_3)
package {
import flash.display.*;
public dynamic class Finder4_3 extends MovieClip {
}
}//package
Section 248
//Finder4_4 (Finder4_4)
package {
import flash.display.*;
public dynamic class Finder4_4 extends MovieClip {
}
}//package
Section 249
//Finder4_5 (Finder4_5)
package {
import flash.display.*;
public dynamic class Finder4_5 extends MovieClip {
}
}//package
Section 250
//Finder4_6 (Finder4_6)
package {
import flash.display.*;
public dynamic class Finder4_6 extends MovieClip {
}
}//package
Section 251
//Finder4_7 (Finder4_7)
package {
import flash.display.*;
public dynamic class Finder4_7 extends MovieClip {
}
}//package
Section 252
//Finder4_8 (Finder4_8)
package {
import flash.display.*;
public dynamic class Finder4_8 extends MovieClip {
}
}//package
Section 253
//Finder4_9 (Finder4_9)
package {
import flash.display.*;
public dynamic class Finder4_9 extends MovieClip {
}
}//package
Section 254
//Finder5_1 (Finder5_1)
package {
import flash.display.*;
public dynamic class Finder5_1 extends MovieClip {
}
}//package
Section 255
//Finder5_10 (Finder5_10)
package {
import flash.display.*;
public dynamic class Finder5_10 extends MovieClip {
}
}//package
Section 256
//Finder5_2 (Finder5_2)
package {
import flash.display.*;
public dynamic class Finder5_2 extends MovieClip {
}
}//package
Section 257
//Finder5_3 (Finder5_3)
package {
import flash.display.*;
public dynamic class Finder5_3 extends MovieClip {
}
}//package
Section 258
//Finder5_4 (Finder5_4)
package {
import flash.display.*;
public dynamic class Finder5_4 extends MovieClip {
}
}//package
Section 259
//Finder5_5 (Finder5_5)
package {
import flash.display.*;
public dynamic class Finder5_5 extends MovieClip {
}
}//package
Section 260
//Finder5_6 (Finder5_6)
package {
import flash.display.*;
public dynamic class Finder5_6 extends MovieClip {
}
}//package
Section 261
//Finder5_7 (Finder5_7)
package {
import flash.display.*;
public dynamic class Finder5_7 extends MovieClip {
}
}//package
Section 262
//Finder5_8 (Finder5_8)
package {
import flash.display.*;
public dynamic class Finder5_8 extends MovieClip {
}
}//package
Section 263
//Finder5_9 (Finder5_9)
package {
import flash.display.*;
public dynamic class Finder5_9 extends MovieClip {
}
}//package
Section 264
//Finder6_1 (Finder6_1)
package {
import flash.display.*;
public dynamic class Finder6_1 extends MovieClip {
}
}//package
Section 265
//Finder6_10 (Finder6_10)
package {
import flash.display.*;
public dynamic class Finder6_10 extends MovieClip {
}
}//package
Section 266
//Finder6_2 (Finder6_2)
package {
import flash.display.*;
public dynamic class Finder6_2 extends MovieClip {
}
}//package
Section 267
//Finder6_3 (Finder6_3)
package {
import flash.display.*;
public dynamic class Finder6_3 extends MovieClip {
}
}//package
Section 268
//Finder6_4 (Finder6_4)
package {
import flash.display.*;
public dynamic class Finder6_4 extends MovieClip {
}
}//package
Section 269
//Finder6_5 (Finder6_5)
package {
import flash.display.*;
public dynamic class Finder6_5 extends MovieClip {
}
}//package
Section 270
//Finder6_6 (Finder6_6)
package {
import flash.display.*;
public dynamic class Finder6_6 extends MovieClip {
}
}//package
Section 271
//Finder6_7 (Finder6_7)
package {
import flash.display.*;
public dynamic class Finder6_7 extends MovieClip {
}
}//package
Section 272
//Finder6_8 (Finder6_8)
package {
import flash.display.*;
public dynamic class Finder6_8 extends MovieClip {
}
}//package
Section 273
//Finder6_9 (Finder6_9)
package {
import flash.display.*;
public dynamic class Finder6_9 extends MovieClip {
}
}//package
Section 274
//Finder7_1 (Finder7_1)
package {
import flash.display.*;
public dynamic class Finder7_1 extends MovieClip {
}
}//package
Section 275
//Finder7_10 (Finder7_10)
package {
import flash.display.*;
public dynamic class Finder7_10 extends MovieClip {
}
}//package
Section 276
//Finder7_2 (Finder7_2)
package {
import flash.display.*;
public dynamic class Finder7_2 extends MovieClip {
}
}//package
Section 277
//Finder7_3 (Finder7_3)
package {
import flash.display.*;
public dynamic class Finder7_3 extends MovieClip {
}
}//package
Section 278
//Finder7_4 (Finder7_4)
package {
import flash.display.*;
public dynamic class Finder7_4 extends MovieClip {
}
}//package
Section 279
//Finder7_5 (Finder7_5)
package {
import flash.display.*;
public dynamic class Finder7_5 extends MovieClip {
}
}//package
Section 280
//Finder7_6 (Finder7_6)
package {
import flash.display.*;
public dynamic class Finder7_6 extends MovieClip {
}
}//package
Section 281
//Finder7_7 (Finder7_7)
package {
import flash.display.*;
public dynamic class Finder7_7 extends MovieClip {
}
}//package
Section 282
//Finder7_8 (Finder7_8)
package {
import flash.display.*;
public dynamic class Finder7_8 extends MovieClip {
}
}//package
Section 283
//Finder7_9 (Finder7_9)
package {
import flash.display.*;
public dynamic class Finder7_9 extends MovieClip {
}
}//package
Section 284
//Finder8_1 (Finder8_1)
package {
import flash.display.*;
public dynamic class Finder8_1 extends MovieClip {
}
}//package
Section 285
//Finder8_10 (Finder8_10)
package {
import flash.display.*;
public dynamic class Finder8_10 extends MovieClip {
}
}//package
Section 286
//Finder8_2 (Finder8_2)
package {
import flash.display.*;
public dynamic class Finder8_2 extends MovieClip {
}
}//package
Section 287
//Finder8_3 (Finder8_3)
package {
import flash.display.*;
public dynamic class Finder8_3 extends MovieClip {
}
}//package
Section 288
//Finder8_4 (Finder8_4)
package {
import flash.display.*;
public dynamic class Finder8_4 extends MovieClip {
}
}//package
Section 289
//Finder8_5 (Finder8_5)
package {
import flash.display.*;
public dynamic class Finder8_5 extends MovieClip {
}
}//package
Section 290
//Finder8_6 (Finder8_6)
package {
import flash.display.*;
public dynamic class Finder8_6 extends MovieClip {
}
}//package
Section 291
//Finder8_7 (Finder8_7)
package {
import flash.display.*;
public dynamic class Finder8_7 extends MovieClip {
}
}//package
Section 292
//Finder8_8 (Finder8_8)
package {
import flash.display.*;
public dynamic class Finder8_8 extends MovieClip {
}
}//package
Section 293
//Finder8_9 (Finder8_9)
package {
import flash.display.*;
public dynamic class Finder8_9 extends MovieClip {
}
}//package
Section 294
//Finder9_1 (Finder9_1)
package {
import flash.display.*;
public dynamic class Finder9_1 extends MovieClip {
}
}//package
Section 295
//Finder9_10 (Finder9_10)
package {
import flash.display.*;
public dynamic class Finder9_10 extends MovieClip {
}
}//package
Section 296
//Finder9_2 (Finder9_2)
package {
import flash.display.*;
public dynamic class Finder9_2 extends MovieClip {
}
}//package
Section 297
//Finder9_3 (Finder9_3)
package {
import flash.display.*;
public dynamic class Finder9_3 extends MovieClip {
}
}//package
Section 298
//Finder9_4 (Finder9_4)
package {
import flash.display.*;
public dynamic class Finder9_4 extends MovieClip {
}
}//package
Section 299
//Finder9_5 (Finder9_5)
package {
import flash.display.*;
public dynamic class Finder9_5 extends MovieClip {
}
}//package
Section 300
//Finder9_6 (Finder9_6)
package {
import flash.display.*;
public dynamic class Finder9_6 extends MovieClip {
}
}//package
Section 301
//Finder9_7 (Finder9_7)
package {
import flash.display.*;
public dynamic class Finder9_7 extends MovieClip {
}
}//package
Section 302
//Finder9_8 (Finder9_8)
package {
import flash.display.*;
public dynamic class Finder9_8 extends MovieClip {
}
}//package
Section 303
//Finder9_9 (Finder9_9)
package {
import flash.display.*;
public dynamic class Finder9_9 extends MovieClip {
}
}//package
Section 304
//FindOK (FindOK)
package {
import flash.display.*;
public dynamic class FindOK extends MovieClip {
}
}//package
Section 305
//HideConsole (HideConsole)
package {
public var HideConsole:Object;
HideConsole = false;
}//package
Section 306
//HyvesLoading (HyvesLoading)
package {
import zlong.display.*;
public dynamic class HyvesLoading extends HyvesLoading {
}
}//package
Section 307
//Level_1 (Level_1)
package {
import flash.display.*;
public dynamic class Level_1 extends MovieClip {
public var diff10_a:Finder1_10;
public var diff5_a:Finder1_5;
public var diff4_a:Finder1_4;
public var diff7_a:Finder1_7;
public var diff6_a:Finder1_6;
public var diff1_a:Finder1_1;
public var diff3_a:Finder1_3;
public var diff2_a:Finder1_2;
public var diff9_a:Finder1_9;
public var diff8_a:Finder1_8;
}
}//package
Section 308
//Level_10 (Level_10)
package {
import flash.display.*;
public dynamic class Level_10 extends MovieClip {
public var pao10_c:MC_pao10a;
public var diff10_a:Finder10_9;
public var diff5_a:Finder10_2;
public var diff4_a:Finder10_10;
public var diff7_a:Finder10_7;
public var diff6_a:Finder10_3;
public var diff1_a:Finder10_4;
public var diff3_a:Finder10_6;
public var diff2_a:Finder10_5;
public var diff9_a:Finder10_1;
public var diff8_a:Finder10_8;
}
}//package
Section 309
//Level_11 (Level_11)
package {
import flash.display.*;
public dynamic class Level_11 extends MovieClip {
public var pao11_c:MC_pao11a;
public var diff10_a:Finder11_10;
public var diff5_a:Finder11_8;
public var diff4_a:Finder11_5;
public var diff7_a:Finder11_2;
public var diff6_a:Finder11_4;
public var diff1_a:Finder11_1;
public var diff3_a:Finder11_7;
public var diff2_a:Finder11_6;
public var diff9_a:Finder11_3;
public var diff8_a:Finder11_9;
}
}//package
Section 310
//Level_2 (Level_2)
package {
import flash.display.*;
public dynamic class Level_2 extends MovieClip {
public var diff10_a:Finder2_10;
public var diff5_a:Finder2_5;
public var diff4_a:Finder2_4;
public var diff7_a:Finder2_7;
public var diff6_a:Finder2_6;
public var diff1_a:Finder2_1;
public var diff3_a:Finder2_3;
public var diff2_a:Finder2_2;
public var diff9_a:Finder2_9;
public var diff8_a:Finder2_8;
}
}//package
Section 311
//Level_3 (Level_3)
package {
import flash.display.*;
public dynamic class Level_3 extends MovieClip {
public var diff10_a:Finder3_10;
public var diff5_a:Finder3_5;
public var diff4_a:Finder3_4;
public var diff7_a:Finder3_7;
public var diff6_a:Finder3_6;
public var diff1_a:Finder3_1;
public var diff3_a:Finder3_3;
public var diff2_a:Finder3_2;
public var diff9_a:Finder3_9;
public var diff8_a:Finder3_8;
}
}//package
Section 312
//Level_4 (Level_4)
package {
import flash.display.*;
public dynamic class Level_4 extends MovieClip {
public var diff10_a:Finder4_10;
public var diff5_a:Finder4_5;
public var diff4_a:Finder4_4;
public var diff7_a:Finder4_7;
public var diff6_a:Finder4_6;
public var diff1_a:Finder4_1;
public var diff3_a:Finder4_3;
public var diff2_a:Finder4_2;
public var diff9_a:Finder4_9;
public var diff8_a:Finder4_8;
}
}//package
Section 313
//Level_5 (Level_5)
package {
import flash.display.*;
public dynamic class Level_5 extends MovieClip {
public var diff10_a:Finder5_10;
public var diff5_a:Finder5_5;
public var diff4_a:Finder5_4;
public var diff7_a:Finder5_7;
public var diff6_a:Finder5_6;
public var diff1_a:Finder5_1;
public var diff3_a:Finder5_3;
public var diff2_a:Finder5_2;
public var diff9_a:Finder5_9;
public var diff8_a:Finder5_8;
}
}//package
Section 314
//Level_6 (Level_6)
package {
import flash.display.*;
public dynamic class Level_6 extends MovieClip {
public var diff10_a:Finder6_10;
public var diff5_a:Finder6_5;
public var diff4_a:Finder6_4;
public var diff7_a:Finder6_7;
public var diff6_a:Finder6_6;
public var diff1_a:Finder6_1;
public var diff3_a:Finder6_3;
public var diff2_a:Finder6_2;
public var diff9_a:Finder6_9;
public var diff8_a:Finder6_8;
}
}//package
Section 315
//Level_7 (Level_7)
package {
import flash.display.*;
public dynamic class Level_7 extends MovieClip {
public var diff10_a:Finder7_10;
public var diff5_a:Finder7_5;
public var diff4_a:Finder7_4;
public var diff7_a:Finder7_7;
public var diff6_a:Finder7_6;
public var diff1_a:Finder7_1;
public var diff3_a:Finder7_3;
public var diff2_a:Finder7_2;
public var diff9_a:Finder7_9;
public var diff8_a:Finder7_8;
}
}//package
Section 316
//Level_8 (Level_8)
package {
import flash.display.*;
public dynamic class Level_8 extends MovieClip {
public var diff10_a:Finder8_10;
public var diff5_a:Finder8_5;
public var diff4_a:Finder8_4;
public var diff7_a:Finder8_7;
public var diff6_a:Finder8_6;
public var diff1_a:Finder8_1;
public var diff3_a:Finder8_3;
public var diff2_a:Finder8_2;
public var diff9_a:Finder8_9;
public var diff8_a:Finder8_8;
}
}//package
Section 317
//Level_9 (Level_9)
package {
import flash.display.*;
public dynamic class Level_9 extends MovieClip {
public var diff10_a:Finder9_10;
public var diff5_a:Finder9_5;
public var diff4_a:Finder9_4;
public var diff7_a:Finder9_7;
public var diff6_a:Finder9_6;
public var diff1_a:Finder9_1;
public var diff3_a:Finder9_3;
public var diff2_a:Finder9_2;
public var diff9_a:Finder9_9;
public var diff8_a:Finder9_8;
}
}//package
Section 318
//localization (localization)
package {
import flash.display.*;
public dynamic class localization extends MovieClip {
}
}//package
Section 319
//Logo (Logo)
package {
import flash.display.*;
import zlong.display.*;
public dynamic class Logo extends Logo {
public var displayArea_mc:MovieClip;
public var wh:MovieClip;
}
}//package
Section 320
//Main (Main)
package {
import flash.display.*;
import com.zhaocha.menus.*;
import com.zhaocha.main.*;
import zlong.Template.*;
import com.zhaocha.*;
import zlong.breathxue.utils.debug.*;
public class Main extends AbstractMainClass {
private var _container:Sprite;
private static var _instance:Main;
public function Main(_arg1:Sprite){
_instance = this;
super(_arg1);
if (Root.__debug__){
TC.InitTC(__GameMc);
showFPS();
};
gameStart();
}
private function gameStart():void{
initAssit();
initConfig();
initDisplay();
initGame();
}
private function initDisplay():void{
_container = new Sprite();
_container.name = "likeRoot";
Config.LikeRoot = _container;
__GameMc.addChildAt(_container, 0);
var _local1:Sprite = new Sprite();
_local1.mouseChildren = false;
_local1.mouseEnabled = false;
MousePic.instance.init(_local1);
__GameMc.addChild(_local1);
}
private function initConfig():void{
Config.stage = __GameMc.stage;
Config.stage.scaleMode = StageScaleMode.NO_SCALE;
}
private function initGame():void{
new Game(_container);
}
private function initAssit():void{
}
public static function get instance():Main{
return (_instance);
}
}
}//package
Section 321
//MC_Flower (MC_Flower)
package {
import flash.display.*;
public dynamic class MC_Flower extends MovieClip {
public var mc_drama:MC_LM_Drama;
}
}//package
Section 322
//MC_LevelBetween (MC_LevelBetween)
package {
import flash.display.*;
public dynamic class MC_LevelBetween extends MovieClip {
}
}//package
Section 323
//MC_LM_background (MC_LM_background)
package {
import flash.display.*;
public dynamic class MC_LM_background extends MovieClip {
}
}//package
Section 324
//MC_LM_circle (MC_LM_circle)
package {
import flash.display.*;
public dynamic class MC_LM_circle extends MovieClip {
}
}//package
Section 325
//MC_LM_Drama (MC_LM_Drama)
package {
import flash.display.*;
public dynamic class MC_LM_Drama extends MovieClip {
}
}//package
Section 326
//MC_LM_jointover (MC_LM_jointover)
package {
import flash.display.*;
public dynamic class MC_LM_jointover extends MovieClip {
}
}//package
Section 327
//MC_LM_menumain (MC_LM_menumain)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MC_LM_menumain extends MovieClip {
public var __id1_:Logo;
public var icon_audio:SOUND;
public var btn_play:but_play;
public var btn_moregames:MoreGamesLogoButton123;
public var icon_music:MUSIC;
public function MC_LM_menumain(){
__setProp___id1__ui_main_();
__setProp_btn_moregames_ui_main_();
}
function __setProp___id1__ui_main_(){
try {
__id1_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id1_.alignHorizontal = "Center";
__id1_.alignVertical = "Center";
__id1_.maxHeight = 40;
__id1_.maxWidth = 150;
__id1_.position = "logo_mainscreen";
try {
__id1_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_btn_moregames_ui_main_(){
try {
btn_moregames["componentInspectorSetting"] = true;
} catch(e:Error) {
};
btn_moregames.position = "button_mainscreen_moregames";
btn_moregames.type = "moregames";
try {
btn_moregames["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 328
//MC_LM_mouse (MC_LM_mouse)
package {
import flash.display.*;
public dynamic class MC_LM_mouse extends MovieClip {
}
}//package
Section 329
//MC_LM_pause (MC_LM_pause)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MC_LM_pause extends MovieClip {
public var btn_backtogame:but_backtogame;
public var icon_audio:SOUND;
public var btn_quit:but_QUIT;
public var btn_moregames:MoreGamesLogoButton123;
public var icon_music:MUSIC;
public function MC_LM_pause(){
__setProp_btn_moregames_ui_pause_();
}
function __setProp_btn_moregames_ui_pause_(){
try {
btn_moregames["componentInspectorSetting"] = true;
} catch(e:Error) {
};
btn_moregames.position = "button_pausescreen_moregames";
btn_moregames.type = "moregames";
try {
btn_moregames["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 330
//MC_pao10a (MC_pao10a)
package {
import flash.display.*;
public dynamic class MC_pao10a extends MovieClip {
}
}//package
Section 331
//MC_pao11a (MC_pao11a)
package {
import flash.display.*;
public dynamic class MC_pao11a extends MovieClip {
}
}//package
Section 332
//MC_pao1a (MC_pao1a)
package {
import flash.display.*;
public dynamic class MC_pao1a extends MovieClip {
}
}//package
Section 333
//MC_pao2a (MC_pao2a)
package {
import flash.display.*;
public dynamic class MC_pao2a extends MovieClip {
}
}//package
Section 334
//MC_pao3a (MC_pao3a)
package {
import flash.display.*;
public dynamic class MC_pao3a extends MovieClip {
}
}//package
Section 335
//MC_pao4a (MC_pao4a)
package {
import flash.display.*;
public dynamic class MC_pao4a extends MovieClip {
}
}//package
Section 336
//MC_pao5a (MC_pao5a)
package {
import flash.display.*;
public dynamic class MC_pao5a extends MovieClip {
}
}//package
Section 337
//MC_pao6a (MC_pao6a)
package {
import flash.display.*;
public dynamic class MC_pao6a extends MovieClip {
}
}//package
Section 338
//MC_pao7a (MC_pao7a)
package {
import flash.display.*;
public dynamic class MC_pao7a extends MovieClip {
}
}//package
Section 339
//MC_pao8a (MC_pao8a)
package {
import flash.display.*;
public dynamic class MC_pao8a extends MovieClip {
}
}//package
Section 340
//MC_pao9a (MC_pao9a)
package {
import flash.display.*;
public dynamic class MC_pao9a extends MovieClip {
}
}//package
Section 341
//MinusFive (MinusFive)
package {
import flash.display.*;
public dynamic class MinusFive extends MovieClip {
}
}//package
Section 342
//MinusTen (MinusTen)
package {
import flash.display.*;
public dynamic class MinusTen extends MovieClip {
}
}//package
Section 343
//MoreGamesLogo_mainmenu (MoreGamesLogo_mainmenu)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import zlong.display.*;
import flash.utils.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MoreGamesLogo_mainmenu extends ExtButton {
public var __id0_:Logo;
public function MoreGamesLogo_mainmenu(){
__setProp___id0__MoreGamesLogo_mainmenu_logo_0();
}
function __setProp___id0__MoreGamesLogo_mainmenu_logo_0(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.alignHorizontal = "Center";
__id0_.alignVertical = "Down";
__id0_.maxHeight = 20;
__id0_.maxWidth = 150;
__id0_.position = "logo_preloader";
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 344
//MoreGamesLogo_mainmenu_sitelock (MoreGamesLogo_mainmenu_sitelock)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import zlong.display.*;
import flash.utils.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MoreGamesLogo_mainmenu_sitelock extends ExtButton {
public var __id3_:Logo;
public function MoreGamesLogo_mainmenu_sitelock(){
__setProp___id3__MoreGamesLogo_mainmenu_sitelock_logo_0();
}
function __setProp___id3__MoreGamesLogo_mainmenu_sitelock_logo_0(){
try {
__id3_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id3_.alignHorizontal = "Center";
__id3_.alignVertical = "Down";
__id3_.maxHeight = 20;
__id3_.maxWidth = 150;
__id3_.position = "logo_preloader";
try {
__id3_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 345
//MoreGamesLogoButton123 (MoreGamesLogoButton123)
package {
import zlong.display.*;
public dynamic class MoreGamesLogoButton123 extends ExtButton {
}
}//package
Section 346
//MUSIC (MUSIC)
package {
import utils.*;
public dynamic class MUSIC extends ExtButton {
}
}//package
Section 347
//PlusFive (PlusFive)
package {
import flash.display.*;
public dynamic class PlusFive extends MovieClip {
}
}//package
Section 348
//RightFinded (RightFinded)
package {
import flash.display.*;
public dynamic class RightFinded extends MovieClip {
}
}//package
Section 349
//Root (Root)
package {
import zlong.Template.*;
import zlong.*;
public class Root extends AbstractRootClass {
public static const STAGE_WIGHT:int = 660;
public static const GAME_CLASS_NAME:String = "Main";
public static const STAGE_HEIGHT:int = 510;
public static const PORTAL_TYPE:String = GameSetting.PORTAL_TYPE_GIRL;
public static const VERSION_NUM:String = "v. 1.00";
public static const __debug__:Boolean = false;
public static const LOADING_CLASS_NAME:String = "zlong.Template.demo.ui.UiLoading";
public static const GAME_FRAMERATE:int = 30;
public static const GAME_NAME:String = "Devilish Trick";
override protected function script0():void{
Trace("script0");
}
override protected function script1():void{
Trace("script1");
}
override protected function script2():void{
Trace("script2");
}
}
}//package
Section 350
//SOUND (SOUND)
package {
import utils.*;
public dynamic class SOUND extends ExtButton {
}
}//package
Section 351
//SoundMc (SoundMc)
package {
import flash.display.*;
public dynamic class SoundMc extends MovieClip {
}
}//package
Section 352
//TipChar (TipChar)
package {
import flash.display.*;
public dynamic class TipChar extends MovieClip {
}
}//package
Section 353
//tipHelpMc (tipHelpMc)
package {
import flash.display.*;
public dynamic class tipHelpMc extends MovieClip {
}
}//package
Section 354
//Trace (Trace)
package {
import zlong.breathxue.utils.debug.*;
import flash.utils.*;
public function Trace(... _args):void{
var i:String;
var TcClass:Class;
var args = _args;
var arg0 = "";
if ((args[0] is String)){
arg0 = args[0];
if ((((((((arg0.charAt(0) == "|")) && ((arg0.charAt(1) == "|")))) && ((arg0.charAt((arg0.length - 2)) == "|")))) && ((arg0.charAt((arg0.length - 1)) == "|")))){
arg0 = arg0.substring(1, (arg0.length - 1));
args.shift();
} else {
arg0 = "";
};
};
var isShowConsole:Boolean;
if (HideConsole == false){
isShowConsole = true;
} else {
if (HideConsole == true){
isShowConsole = false;
} else {
for (i in HideConsole) {
if (HideConsole[i] == arg0){
isShowConsole = false;
break;
};
};
};
};
if (isShowConsole){
trace((arg0 + args.join(" ")));
};
if (TcShow){
try {
TcClass = (getDefinitionByName("zlong.breathxue.utils.debug.TC") as Class);
} catch(e:Error) {
TcShow = false;
};
if (TcClass){
var _local3 = TcClass;
_local3["SHOW"](arg0, args);
};
};
}
}//package
Section 355
//TXT_Back_To_Game (TXT_Back_To_Game)
package {
import zlong.display.*;
public dynamic class TXT_Back_To_Game extends TranText {
}
}//package
Section 356
//txt_backtogame (txt_backtogame)
package {
import zlong.display.*;
public dynamic class txt_backtogame extends TranText {
}
}//package
Section 357
//txt_DOYOUWANT (txt_DOYOUWANT)
package {
import zlong.display.*;
public dynamic class txt_DOYOUWANT extends TranText {
}
}//package
Section 358
//txt_drama_level1 (txt_drama_level1)
package {
import flash.text.*;
import zlong.display.*;
public dynamic class txt_drama_level1 extends TranText {
public var txt_drama:TextField;
}
}//package
Section 359
//txt_drama_level10 (txt_drama_level10)
package {
import flash.text.*;
import zlong.display.*;
public dynamic class txt_drama_level10 extends TranText {
public var txt_drama:TextField;
}
}//package
Section 360
//txt_drama_level11 (txt_drama_level11)
package {
import flash.text.*;
import zlong.display.*;
public dynamic class txt_drama_level11 extends TranText {
public var txt_drama:TextField;
}
}//package
Section 361
//txt_drama_level2 (txt_drama_level2)
package {
import flash.text.*;
import zlong.display.*;
public dynamic class txt_drama_level2 extends TranText {
public var txt_drama:TextField;
}
}//package
Section 362
//txt_drama_level3 (txt_drama_level3)
package {
import flash.text.*;
import zlong.display.*;
public dynamic class txt_drama_level3 extends TranText {
public var txt_drama:TextField;
}
}//package
Section 363
//txt_drama_level4 (txt_drama_level4)
package {
import flash.text.*;
import zlong.display.*;
public dynamic class txt_drama_level4 extends TranText {
public var txt_drama:TextField;
}
}//package
Section 364
//txt_drama_level5 (txt_drama_level5)
package {
import flash.text.*;
import zlong.display.*;
public dynamic class txt_drama_level5 extends TranText {
public var txt_drama:TextField;
}
}//package
Section 365
//txt_drama_level6 (txt_drama_level6)
package {
import flash.text.*;
import zlong.display.*;
public dynamic class txt_drama_level6 extends TranText {
public var txt_drama:TextField;
}
}//package
Section 366
//txt_drama_level7 (txt_drama_level7)
package {
import flash.text.*;
import zlong.display.*;
public dynamic class txt_drama_level7 extends TranText {
public var txt_drama:TextField;
}
}//package
Section 367
//txt_drama_level8 (txt_drama_level8)
package {
import flash.text.*;
import zlong.display.*;
public dynamic class txt_drama_level8 extends TranText {
public var txt_drama:TextField;
}
}//package
Section 368
//txt_drama_level9 (txt_drama_level9)
package {
import flash.text.*;
import zlong.display.*;
public dynamic class txt_drama_level9 extends TranText {
public var txt_drama:TextField;
}
}//package
Section 369
//txt_loading (txt_loading)
package {
import zlong.display.*;
public dynamic class txt_loading extends TranText {
}
}//package
Section 370
//TXT_MoreGame (TXT_MoreGame)
package {
import zlong.display.*;
public dynamic class TXT_MoreGame extends TranText {
}
}//package
Section 371
//txt_moregames (txt_moregames)
package {
import zlong.display.*;
public dynamic class txt_moregames extends TranText {
}
}//package
Section 372
//txt_moregamescopy (txt_moregamescopy)
package {
import zlong.display.*;
public dynamic class txt_moregamescopy extends TranText {
}
}//package
Section 373
//txt_NO (txt_NO)
package {
import zlong.display.*;
public dynamic class txt_NO extends TranText {
}
}//package
Section 374
//txt_ok (txt_ok)
package {
import zlong.display.*;
public dynamic class txt_ok extends TranText {
}
}//package
Section 375
//txt_pao10a (txt_pao10a)
package {
import zlong.display.*;
public dynamic class txt_pao10a extends TranText {
}
}//package
Section 376
//txt_pao11a (txt_pao11a)
package {
import zlong.display.*;
public dynamic class txt_pao11a extends TranText {
}
}//package
Section 377
//txt_pao1a (txt_pao1a)
package {
import zlong.display.*;
public dynamic class txt_pao1a extends TranText {
}
}//package
Section 378
//txt_pao2a (txt_pao2a)
package {
import zlong.display.*;
public dynamic class txt_pao2a extends TranText {
}
}//package
Section 379
//txt_pao3a (txt_pao3a)
package {
import zlong.display.*;
public dynamic class txt_pao3a extends TranText {
}
}//package
Section 380
//txt_pao4a (txt_pao4a)
package {
import zlong.display.*;
public dynamic class txt_pao4a extends TranText {
}
}//package
Section 381
//txt_pao5a (txt_pao5a)
package {
import zlong.display.*;
public dynamic class txt_pao5a extends TranText {
}
}//package
Section 382
//txt_pao6a (txt_pao6a)
package {
import zlong.display.*;
public dynamic class txt_pao6a extends TranText {
}
}//package
Section 383
//txt_pao7a (txt_pao7a)
package {
import zlong.display.*;
public dynamic class txt_pao7a extends TranText {
}
}//package
Section 384
//txt_pao8a (txt_pao8a)
package {
import zlong.display.*;
public dynamic class txt_pao8a extends TranText {
}
}//package
Section 385
//txt_pao9a (txt_pao9a)
package {
import zlong.display.*;
public dynamic class txt_pao9a extends TranText {
}
}//package
Section 386
//TXT_pause (TXT_pause)
package {
import zlong.display.*;
public dynamic class TXT_pause extends TranText {
}
}//package
Section 387
//txt_paused (txt_paused)
package {
import zlong.display.*;
public dynamic class txt_paused extends TranText {
}
}//package
Section 388
//txt_play (txt_play)
package {
import zlong.display.*;
public dynamic class txt_play extends TranText {
}
}//package
Section 389
//TXT_play_agin (TXT_play_agin)
package {
import zlong.display.*;
public dynamic class TXT_play_agin extends TranText {
}
}//package
Section 390
//TXT_quit (TXT_quit)
package {
import zlong.display.*;
public dynamic class TXT_quit extends TranText {
}
}//package
Section 391
//txt_QUIT (txt_QUIT)
package {
import zlong.display.*;
public dynamic class txt_QUIT extends TranText {
}
}//package
Section 392
//txt_SCORE (txt_SCORE)
package {
import zlong.display.*;
public dynamic class txt_SCORE extends TranText {
}
}//package
Section 393
//TXT_SCORES (TXT_SCORES)
package {
import zlong.display.*;
public dynamic class TXT_SCORES extends TranText {
}
}//package
Section 394
//TXT_Start_Game (TXT_Start_Game)
package {
import zlong.display.*;
public dynamic class TXT_Start_Game extends TranText {
}
}//package
Section 395
//txt_tryagain (txt_tryagain)
package {
import zlong.display.*;
public dynamic class txt_tryagain extends TranText {
}
}//package
Section 396
//txt_well_done (txt_well_done)
package {
import zlong.display.*;
public dynamic class txt_well_done extends TranText {
}
}//package
Section 397
//txt_WELLDONE (txt_WELLDONE)
package {
import zlong.display.*;
public dynamic class txt_WELLDONE extends TranText {
}
}//package
Section 398
//txt_your_score (txt_your_score)
package {
import zlong.display.*;
public dynamic class txt_your_score extends TranText {
}
}//package
Section 399
//txt_yourscore (txt_yourscore)
package {
import zlong.display.*;
public dynamic class txt_yourscore extends TranText {
}
}//package
Section 400
//txtmoergamesat (txtmoergamesat)
package {
import zlong.display.*;
public dynamic class txtmoergamesat extends TranText {
}
}//package
Section 401
//UI_GAMEOVER (UI_GAMEOVER)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class UI_GAMEOVER extends MovieClip {
public var txtScore:TextField;
public var btn_mainmenu:but_MAIN;
public var icon_audio:SOUND;
public var btn_moregames:MoreGamesLogoButton123;
public var icon_music:MUSIC;
public function UI_GAMEOVER(){
__setProp_btn_moregames_ui_welldone_();
}
function __setProp_btn_moregames_ui_welldone_(){
try {
btn_moregames["componentInspectorSetting"] = true;
} catch(e:Error) {
};
btn_moregames.position = "button_gamecomplete_moregames";
btn_moregames.type = "moregames";
try {
btn_moregames["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 402
//UI_LevelInGame (UI_LevelInGame)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class UI_LevelInGame extends MovieClip {
public var findedMc1:MovieClip;
public var txtScore:TextField;
public var findedMc2:MovieClip;
public var findedMc3:MovieClip;
public var findedMc4:MovieClip;
public var findedMc5:MovieClip;
public var findedMc6:MovieClip;
public var describeMc:MovieClip;
public var __id0_:Logo;
public var bubble_helpBtn:but_hints;
public var bubble_pause:but_pause;
public var picInLevel:Level_4;
public function UI_LevelInGame(){
__setProp___id0__UI_bar_();
}
function __setProp___id0__UI_bar_(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.alignHorizontal = "Center";
__id0_.alignVertical = "Center";
__id0_.maxHeight = 40;
__id0_.maxWidth = 150;
__id0_.position = "logo_playingGame";
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 403
//UI_LM_loading (UI_LM_loading)
package {
import flash.display.*;
public dynamic class UI_LM_loading extends MovieClip {
public var perLoading:MovieClip;
}
}//package
Section 404
//UI_SiteLock (UI_SiteLock)
package {
import flash.display.*;
public dynamic class UI_SiteLock extends MovieClip {
public var agame:Btn_YES;
public var goon:Btn_NO;
public var title_txt:txt_DOYOUWANT;
}
}//package
Section 405
//www22 (www22)
package {
import utils.*;
public dynamic class www22 extends ExtButton {
}
}//package