Section 1
//wav (close_curtain.wav)
package close_curtain {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package close_curtain
Section 2
//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 3
//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 4
//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 5
//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 6
//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 7
//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 8
//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 9
//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 10
//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 11
//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 12
//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 13
//ga_internal (com.google.analytics.core.ga_internal)
package com.google.analytics.core {
public namespace ga_internal;
}//package com.google.analytics.core
Section 14
//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 15
//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 16
//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 17
//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 18
//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 19
//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 20
//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 21
//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 22
//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 23
//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 24
//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 25
//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 26
//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 27
//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 28
//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 29
//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 30
//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 31
//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 32
//_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 33
//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 34
//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 35
//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 36
//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 37
//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 38
//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 39
//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 40
//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 41
//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 42
//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 43
//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 44
//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 45
//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 46
//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 47
//Style (com.google.analytics.debug.Style)
package com.google.analytics.debug {
public const Style:_Style = new _Style();
}//package com.google.analytics.debug
Section 48
//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 49
//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 50
//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 51
//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 52
//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 53
//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 54
//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 55
//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 56
//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 57
//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 58
//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 59
//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 60
//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 61
//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 62
//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 63
//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 64
//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 65
//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 66
//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 67
//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 68
//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 69
//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 70
//PropTween (com.greensock.core.PropTween)
package com.greensock.core {
public class PropTween {
public var priority:int;
public var start:Number;
public var prevNode:PropTween;
public var change:Number;
public var target:Object;
public var name:String;
public var property:String;
public var nextNode:PropTween;
public var isPlugin:Boolean;
public function PropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean, _arg7:PropTween=null, _arg8:int=0){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
if (_arg7){
_arg7.prevNode = this;
this.nextNode = _arg7;
};
this.priority = _arg8;
}
}
}//package com.greensock.core
Section 71
//SimpleTimeline (com.greensock.core.SimpleTimeline)
package com.greensock.core {
public class SimpleTimeline extends TweenCore {
public var autoRemoveChildren:Boolean;
protected var _lastChild:TweenCore;
protected var _firstChild:TweenCore;
public function SimpleTimeline(_arg1:Object=null){
super(0, _arg1);
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local5:Number;
var _local6:TweenCore;
var _local4:TweenCore = _firstChild;
this.cachedTotalTime = _arg1;
this.cachedTime = _arg1;
while (_local4) {
_local6 = _local4.nextNode;
if (((_local4.active) || ((((((_arg1 >= _local4.cachedStartTime)) && (!(_local4.cachedPaused)))) && (!(_local4.gc)))))){
if (!_local4.cachedReversed){
_local4.renderTime(((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale), _arg2, false);
} else {
_local5 = (_local4.cacheIsDirty) ? _local4.totalDuration : _local4.cachedTotalDuration;
_local4.renderTime((_local5 - ((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale)), _arg2, false);
};
};
_local4 = _local6;
};
}
public function addChild(_arg1:TweenCore):void{
if (((!(_arg1.gc)) && (_arg1.timeline))){
_arg1.timeline.remove(_arg1, true);
};
_arg1.timeline = this;
if (_arg1.gc){
_arg1.setEnabled(true, true);
};
if (_firstChild){
_firstChild.prevNode = _arg1;
};
_arg1.nextNode = _firstChild;
_firstChild = _arg1;
_arg1.prevNode = null;
}
public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{
if (_arg1.gc){
return;
};
if (!_arg2){
_arg1.setEnabled(false, true);
};
if (_arg1.nextNode){
_arg1.nextNode.prevNode = _arg1.prevNode;
} else {
if (_lastChild == _arg1){
_lastChild = _arg1.prevNode;
};
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (_firstChild == _arg1){
_firstChild = _arg1.nextNode;
};
};
}
public function get rawTime():Number{
return (this.cachedTotalTime);
}
}
}//package com.greensock.core
Section 72
//TweenCore (com.greensock.core.TweenCore)
package com.greensock.core {
import com.greensock.*;
public class TweenCore {
public var initted:Boolean;
protected var _hasUpdate:Boolean;
public var active:Boolean;
protected var _delay:Number;
public var cachedTime:Number;
public var cachedReversed:Boolean;
public var nextNode:TweenCore;
protected var _rawPrevTime:Number;// = -1
public var vars:Object;
public var cachedTotalTime:Number;
public var timeline:SimpleTimeline;
public var data;
public var cachedStartTime:Number;
public var prevNode:TweenCore;
public var cachedDuration:Number;
public var gc:Boolean;
protected var _pauseTime:Number;
public var cacheIsDirty:Boolean;
public var cachedPaused:Boolean;
public var cachedTimeScale:Number;
public var cachedTotalDuration:Number;
public static const version:Number = 1.13;
protected static var _classInitted:Boolean;
public function TweenCore(_arg1:Number=0, _arg2:Object=null){
this.vars = ((_arg2) || ({}));
this.cachedDuration = (this.cachedTotalDuration = ((_arg1) || (0)));
_delay = ((this.vars.delay) || (0));
this.cachedTimeScale = ((this.vars.timeScale) || (1));
this.active = Boolean((((((_arg1 == 0)) && ((_delay == 0)))) && (!((this.vars.immediateRender == false)))));
this.cachedTotalTime = (this.cachedTime = 0);
this.data = this.vars.data;
if (!_classInitted){
if (isNaN(TweenLite.rootFrame)){
TweenLite.initClass();
_classInitted = true;
} else {
return;
};
};
var _local3:SimpleTimeline = ((this.vars.timeline is SimpleTimeline)) ? this.vars.timeline : (this.vars.useFrames) ? TweenLite.rootFramesTimeline : TweenLite.rootTimeline;
this.cachedStartTime = (_local3.cachedTotalTime + _delay);
_local3.addChild(this);
if (this.vars.reversed){
this.cachedReversed = true;
};
if (this.vars.paused){
this.paused = true;
};
}
public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
}
public function get delay():Number{
return (_delay);
}
public function get duration():Number{
return (this.cachedDuration);
}
public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{
this.reversed = false;
this.paused = false;
this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2);
}
public function set reversed(_arg1:Boolean):void{
if (_arg1 != this.cachedReversed){
this.cachedReversed = _arg1;
setTotalTime(this.cachedTotalTime, true);
};
}
public function set startTime(_arg1:Number):void{
var _local2:Boolean = Boolean(((!((this.timeline == null))) && (((!((_arg1 == this.cachedStartTime))) || (this.gc)))));
this.cachedStartTime = _arg1;
if (_local2){
this.timeline.addChild(this);
};
}
public function set delay(_arg1:Number):void{
this.startTime = (this.startTime + (_arg1 - _delay));
_delay = _arg1;
}
public function resume():void{
this.paused = false;
}
public function get paused():Boolean{
return (this.cachedPaused);
}
public function play():void{
this.reversed = false;
this.paused = false;
}
public function set duration(_arg1:Number):void{
this.cachedDuration = (this.cachedTotalDuration = _arg1);
setDirtyCache(false);
}
public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{
if (!_arg1){
renderTime(this.cachedTotalDuration, _arg2, false);
return;
};
if (this.timeline.autoRemoveChildren){
this.setEnabled(false, false);
} else {
this.active = false;
};
if (!_arg2){
if (((((this.vars.onComplete) && ((this.cachedTotalTime == this.cachedTotalDuration)))) && (!(this.cachedReversed)))){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
} else {
if (((((this.cachedReversed) && ((this.cachedTotalTime == 0)))) && (this.vars.onReverseComplete))){
this.vars.onReverseComplete.apply(null, this.vars.onReverseCompleteParams);
};
};
};
}
public function invalidate():void{
}
public function get totalTime():Number{
return (this.cachedTotalTime);
}
public function get reversed():Boolean{
return (this.cachedReversed);
}
public function get startTime():Number{
return (this.cachedStartTime);
}
public function set currentTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
protected function setDirtyCache(_arg1:Boolean=true):void{
var _local2:TweenCore = (_arg1) ? this : this.timeline;
while (_local2) {
_local2.cacheIsDirty = true;
_local2 = _local2.timeline;
};
}
public function reverse(_arg1:Boolean=true):void{
this.reversed = true;
if (_arg1){
this.paused = false;
} else {
if (this.gc){
this.setEnabled(true, false);
};
};
}
public function set paused(_arg1:Boolean):void{
if (((!((_arg1 == this.cachedPaused))) && (this.timeline))){
if (_arg1){
_pauseTime = this.timeline.rawTime;
} else {
this.cachedStartTime = (this.cachedStartTime + (this.timeline.rawTime - _pauseTime));
_pauseTime = NaN;
setDirtyCache(false);
};
this.cachedPaused = _arg1;
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
};
if (((!(_arg1)) && (this.gc))){
this.setTotalTime(this.cachedTotalTime, false);
this.setEnabled(true, false);
};
}
public function kill():void{
setEnabled(false, false);
}
public function set totalTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
public function get currentTime():Number{
return (this.cachedTime);
}
protected function setTotalTime(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
var _local4:Number;
if (this.timeline){
_local3 = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime;
if (this.cachedReversed){
_local4 = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration;
this.cachedStartTime = (_local3 - ((_local4 - _arg1) / this.cachedTimeScale));
} else {
this.cachedStartTime = (_local3 - (_arg1 / this.cachedTimeScale));
};
if (!this.timeline.cacheIsDirty){
setDirtyCache(false);
};
if (this.cachedTotalTime != _arg1){
renderTime(_arg1, _arg2, false);
};
};
}
public function pause():void{
this.paused = true;
}
public function set totalDuration(_arg1:Number):void{
this.duration = _arg1;
}
public function get totalDuration():Number{
return (this.cachedTotalDuration);
}
public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
if (_arg1){
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
if (((!(_arg2)) && (this.gc))){
this.timeline.addChild(this);
};
} else {
this.active = false;
if (!_arg2){
this.timeline.remove(this, true);
};
};
this.gc = !(_arg1);
return (false);
}
}
}//package com.greensock.core
Section 73
//Linear (com.greensock.easing.Linear)
package com.greensock.easing {
public class Linear {
public static const power:uint = 0;
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package com.greensock.easing
Section 74
//RoughEase (com.greensock.easing.RoughEase)
package com.greensock.easing {
public class RoughEase {
private var _first:EasePoint;
private var _last:EasePoint;
private var _name:String;
private static var _count:uint = 0;
private static var _all:Object = {};
public function RoughEase(_arg1:Number=1, _arg2:uint=20, _arg3:Boolean=false, _arg4:Function=null, _arg5:String="none", _arg6:Boolean=true, _arg7:String=""){
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Object;
super();
if (_arg7 == ""){
_count++;
_name = ("roughEase" + _count);
} else {
_name = _arg7;
};
if ((((_arg5 == "")) || ((_arg5 == null)))){
_arg5 = "none";
};
_all[_name] = this;
var _local8:Array = [];
var _local9:uint;
var _local15:uint = _arg2;
while (_local15--) {
_local10 = (_arg6) ? Math.random() : ((1 / _arg2) * _local15);
_local11 = ((_arg4)!=null) ? _arg4(_local10, 0, 1, 1) : _local10;
if (_arg5 == "none"){
_local12 = (0.4 * _arg1);
} else {
if (_arg5 == "out"){
_local13 = (1 - _local10);
_local12 = ((((1 - _local10) * _local13) * _arg1) * 0.4);
} else {
_local12 = (((_local10 * _local10) * _arg1) * 0.4);
};
};
if (_arg6){
_local11 = (_local11 + ((Math.random() * _local12) - (_local12 * 0.5)));
} else {
if ((_local15 % 2)){
_local11 = (_local11 + (_local12 * 0.5));
} else {
_local11 = (_local11 - (_local12 * 0.5));
};
};
if (_arg3){
if (_local11 > 1){
_local11 = 1;
} else {
if (_local11 < 0){
_local11 = 0;
};
};
};
var _temp1 = _local9;
_local9 = (_local9 + 1);
var _local16 = _temp1;
_local8[_local16] = {x:_local10, y:_local11};
};
_local8.sortOn("x", Array.NUMERIC);
_first = (_last = new EasePoint(1, 1, null));
_local15 = _arg2;
while (_local15--) {
_local14 = _local8[_local15];
_first = new EasePoint(_local14.x, _local14.y, _first);
};
_first = new EasePoint(0, 0, _first);
}
public function set name(_arg1:String):void{
delete _all[_name];
_name = _arg1;
_all[_arg1] = this;
}
public function get name():String{
return (_name);
}
public function ease(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local6:EasePoint;
var _local5:Number = (_arg1 / _arg4);
if (_local5 < 0.5){
_local6 = _first;
while (_local6.time <= _local5) {
_local6 = _local6.next;
};
_local6 = _local6.prev;
} else {
_local6 = _last;
while (_local6.time >= _local5) {
_local6 = _local6.prev;
};
};
return ((_arg2 + ((_local6.value + (((_local5 - _local6.time) / _local6.gap) * _local6.change)) * _arg3)));
}
public static function byName(_arg1:String):Function{
return (_all[_arg1].ease);
}
public static function create(_arg1:Number=1, _arg2:uint=20, _arg3:Boolean=false, _arg4:Function=null, _arg5:String="none", _arg6:Boolean=true, _arg7:String=""):Function{
return (new RoughEase(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7).ease);
}
}
}//package com.greensock.easing
class EasePoint {
public var prev:EasePoint;
public var time:Number;
public var change:Number;
public var value:Number;
public var next:EasePoint;
public var gap:Number;
private function EasePoint(_arg1:Number, _arg2:Number, _arg3:EasePoint){
this.time = _arg1;
this.value = _arg2;
if (_arg3){
this.next = _arg3;
_arg3.prev = this;
this.change = (_arg3.value - _arg2);
this.gap = (_arg3.time - _arg1);
};
}
}
Section 75
//Sine (com.greensock.easing.Sine)
package com.greensock.easing {
public class Sine {
private static const _HALF_PI:Number = 1.5707963267949;
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * _HALF_PI))) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * _HALF_PI))) + _arg3) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((-(_arg3) * 0.5) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
}
}
}//package com.greensock.easing
Section 76
//TweenEvent (com.greensock.events.TweenEvent)
package com.greensock.events {
import flash.events.*;
public class TweenEvent extends Event {
public static const COMPLETE:String = "complete";
public static const START:String = "start";
public static const UPDATE:String = "change";
public static const REVERSE_COMPLETE:String = "reverseComplete";
public static const INIT:String = "init";
public static const VERSION:Number = 1.1;
public static const REPEAT:String = "repeat";
public function TweenEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function clone():Event{
return (new TweenEvent(this.type, this.bubbles, this.cancelable));
}
}
}//package com.greensock.events
Section 77
//AutoAlphaPlugin (com.greensock.plugins.AutoAlphaPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
public class AutoAlphaPlugin extends TweenPlugin {
protected var _target:Object;
protected var _ignoreVisible:Boolean;
public static const API:Number = 1;
public function AutoAlphaPlugin(){
this.propName = "autoAlpha";
this.overwriteProps = ["alpha", "visible"];
}
override public function killProps(_arg1:Object):void{
super.killProps(_arg1);
_ignoreVisible = Boolean(("visible" in _arg1));
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (!_ignoreVisible){
_target.visible = Boolean(!((_target.alpha == 0)));
};
}
}
}//package com.greensock.plugins
Section 78
//BevelFilterPlugin (com.greensock.plugins.BevelFilterPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
import flash.filters.*;
public class BevelFilterPlugin extends FilterPlugin {
public static const API:Number = 1;
private static var _propNames:Array = ["distance", "angle", "highlightColor", "highlightAlpha", "shadowColor", "shadowAlpha", "blurX", "blurY", "strength", "quality"];
public function BevelFilterPlugin(){
this.propName = "bevelFilter";
this.overwriteProps = ["bevelFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = BevelFilter;
initFilter(_arg2, new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_arg2.quality) || (2))), _propNames);
return (true);
}
}
}//package com.greensock.plugins
Section 79
//BezierPlugin (com.greensock.plugins.BezierPlugin)
package com.greensock.plugins {
import com.greensock.*;
import com.greensock.core.*;
public class BezierPlugin extends TweenPlugin {
protected var _future:Object;
protected var _orient:Boolean;
protected var _orientData:Array;
protected var _target:Object;
protected var _beziers:Object;
public static const API:Number = 1;
protected static const _RAD2DEG:Number = 57.2957795130823;
public function BezierPlugin(){
_future = {};
super();
this.propName = "bezier";
this.overwriteProps = [];
}
override public function killProps(_arg1:Object):void{
var _local2:String;
for (_local2 in _beziers) {
if ((_local2 in _arg1)){
delete _beziers[_local2];
};
};
super.killProps(_arg1);
}
protected function init(_arg1:TweenLite, _arg2:Array, _arg3:Boolean):void{
var _local6:int;
var _local7:String;
var _local8:Object;
_target = _arg1.target;
var _local4:Object = ((_arg1.vars.isTV)==true) ? _arg1.vars.exposedVars : _arg1.vars;
if (_local4.orientToBezier == true){
_orientData = [["x", "y", "rotation", 0, 0.01]];
_orient = true;
} else {
if ((_local4.orientToBezier is Array)){
_orientData = _local4.orientToBezier;
_orient = true;
};
};
var _local5:Object = {};
_local6 = 0;
while (_local6 < _arg2.length) {
for (_local7 in _arg2[_local6]) {
if (_local5[_local7] == undefined){
_local5[_local7] = [_arg1.target[_local7]];
};
if (typeof(_arg2[_local6][_local7]) == "number"){
_local5[_local7].push(_arg2[_local6][_local7]);
} else {
_local5[_local7].push((_arg1.target[_local7] + Number(_arg2[_local6][_local7])));
};
};
_local6++;
};
for (_local7 in _local5) {
this.overwriteProps[this.overwriteProps.length] = _local7;
if (_local4[_local7] != undefined){
if (typeof(_local4[_local7]) == "number"){
_local5[_local7].push(_local4[_local7]);
} else {
_local5[_local7].push((_arg1.target[_local7] + Number(_local4[_local7])));
};
_local8 = {};
_local8[_local7] = true;
_arg1.killVars(_local8, false);
delete _local4[_local7];
};
};
_beziers = parseBeziers(_local5, _arg3);
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg2 is Array)){
return (false);
};
init(_arg3, (_arg2 as Array), false);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:String;
var _local4:Object;
var _local5:Number;
var _local6:uint;
var _local7:Number;
var _local8:Object;
var _local9:Number;
var _local10:Number;
var _local11:Array;
var _local12:Number;
var _local13:Object;
var _local14:Boolean;
if (_arg1 == 1){
for (_local3 in _beziers) {
_local2 = (_beziers[_local3].length - 1);
_target[_local3] = _beziers[_local3][_local2][2];
};
} else {
for (_local3 in _beziers) {
_local6 = _beziers[_local3].length;
if (_arg1 < 0){
_local2 = 0;
} else {
if (_arg1 >= 1){
_local2 = (_local6 - 1);
} else {
_local2 = int((_local6 * _arg1));
};
};
_local5 = ((_arg1 - (_local2 * (1 / _local6))) * _local6);
_local4 = _beziers[_local3][_local2];
if (this.round){
_local7 = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0])))));
_target[_local3] = ((_local7)>0) ? int((_local7 + 0.5)) : int((_local7 - 0.5));
} else {
_target[_local3] = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0])))));
};
};
};
if (_orient){
_local2 = _orientData.length;
_local8 = {};
while (_local2--) {
_local11 = _orientData[_local2];
_local8[_local11[0]] = _target[_local11[0]];
_local8[_local11[1]] = _target[_local11[1]];
};
_local13 = _target;
_local14 = this.round;
_target = _future;
this.round = false;
_orient = false;
_local2 = _orientData.length;
while (_local2--) {
_local11 = _orientData[_local2];
this.changeFactor = (_arg1 + ((_local11[4]) || (0.01)));
_local12 = ((_local11[3]) || (0));
_local9 = (_future[_local11[0]] - _local8[_local11[0]]);
_local10 = (_future[_local11[1]] - _local8[_local11[1]]);
_local13[_local11[2]] = ((Math.atan2(_local10, _local9) * _RAD2DEG) + _local12);
};
_target = _local13;
this.round = _local14;
_orient = true;
};
}
public static function parseBeziers(_arg1:Object, _arg2:Boolean=false):Object{
var _local3:int;
var _local4:Array;
var _local5:Object;
var _local6:String;
var _local7:Object = {};
if (_arg2){
for (_local6 in _arg1) {
_local4 = _arg1[_local6];
_local5 = [];
_local7[_local6] = _local5;
if (_local4.length > 2){
_local5[_local5.length] = [_local4[0], (_local4[1] - ((_local4[2] - _local4[0]) / 4)), _local4[1]];
_local3 = 1;
while (_local3 < (_local4.length - 1)) {
_local5[_local5.length] = [_local4[_local3], (_local4[_local3] + (_local4[_local3] - _local5[(_local3 - 1)][1])), _local4[(_local3 + 1)]];
_local3++;
};
} else {
_local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]];
};
};
} else {
for (_local6 in _arg1) {
_local4 = _arg1[_local6];
_local5 = [];
_local7[_local6] = _local5;
if (_local4.length > 3){
_local5[_local5.length] = [_local4[0], _local4[1], ((_local4[1] + _local4[2]) / 2)];
_local3 = 2;
while (_local3 < (_local4.length - 2)) {
_local5[_local5.length] = [_local5[(_local3 - 2)][2], _local4[_local3], ((_local4[_local3] + _local4[(_local3 + 1)]) / 2)];
_local3++;
};
_local5[_local5.length] = [_local5[(_local5.length - 1)][2], _local4[(_local4.length - 2)], _local4[(_local4.length - 1)]];
} else {
if (_local4.length == 3){
_local5[_local5.length] = [_local4[0], _local4[1], _local4[2]];
} else {
if (_local4.length == 2){
_local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]];
};
};
};
};
};
return (_local7);
}
}
}//package com.greensock.plugins
Section 80
//BezierThroughPlugin (com.greensock.plugins.BezierThroughPlugin)
package com.greensock.plugins {
import com.greensock.*;
public class BezierThroughPlugin extends BezierPlugin {
public static const API:Number = 1;
public function BezierThroughPlugin(){
this.propName = "bezierThrough";
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg2 is Array)){
return (false);
};
init(_arg3, (_arg2 as Array), true);
return (true);
}
}
}//package com.greensock.plugins
Section 81
//BlurFilterPlugin (com.greensock.plugins.BlurFilterPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
import flash.filters.*;
public class BlurFilterPlugin extends FilterPlugin {
public static const API:Number = 1;
private static var _propNames:Array = ["blurX", "blurY", "quality"];
public function BlurFilterPlugin(){
this.propName = "blurFilter";
this.overwriteProps = ["blurFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = BlurFilter;
initFilter(_arg2, new BlurFilter(0, 0, ((_arg2.quality) || (2))), _propNames);
return (true);
}
}
}//package com.greensock.plugins
Section 82
//ColorMatrixFilterPlugin (com.greensock.plugins.ColorMatrixFilterPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
import flash.filters.*;
public class ColorMatrixFilterPlugin extends FilterPlugin {
protected var _matrix:Array;
protected var _matrixTween:EndArrayPlugin;
public static const API:Number = 1;
private static var _propNames:Array = [];
protected static var _lumG:Number = 0.71516;
protected static var _lumR:Number = 0.212671;
protected static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
protected static var _lumB:Number = 0.072169;
public function ColorMatrixFilterPlugin(){
this.propName = "colorMatrixFilter";
this.overwriteProps = ["colorMatrixFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = ColorMatrixFilter;
var _local4:Object = _arg2;
initFilter({remove:_arg2.remove, index:_arg2.index, addFilter:_arg2.addFilter}, new ColorMatrixFilter(_idMatrix.slice()), _propNames);
_matrix = ColorMatrixFilter(_filter).matrix;
var _local5:Array = [];
if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){
_local5 = _local4.matrix;
} else {
if (_local4.relative == true){
_local5 = _matrix.slice();
} else {
_local5 = _idMatrix.slice();
};
_local5 = setBrightness(_local5, _local4.brightness);
_local5 = setContrast(_local5, _local4.contrast);
_local5 = setHue(_local5, _local4.hue);
_local5 = setSaturation(_local5, _local4.saturation);
_local5 = setThreshold(_local5, _local4.threshold);
if (!isNaN(_local4.colorize)){
_local5 = colorize(_local5, _local4.colorize, _local4.amount);
};
};
_matrixTween = new EndArrayPlugin();
_matrixTween.init(_matrix, _local5);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
_matrixTween.changeFactor = _arg1;
ColorMatrixFilter(_filter).matrix = _matrix;
super.changeFactor = _arg1;
}
public static function setSaturation(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
var _local3:Number = (1 - _arg2);
var _local4:Number = (_local3 * _lumR);
var _local5:Number = (_local3 * _lumG);
var _local6:Number = (_local3 * _lumB);
var _local7:Array = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local7, _arg1));
}
public static function setHue(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 * (Math.PI / 180));
var _local3:Number = Math.cos(_arg2);
var _local4:Number = Math.sin(_arg2);
var _local5:Array = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return (applyMatrix(_local5, _arg1));
}
public static function setContrast(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 + 0.01);
var _local3:Array = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function applyMatrix(_arg1:Array, _arg2:Array):Array{
var _local6:int;
var _local7:int;
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (_arg2);
};
var _local3:Array = [];
var _local4:int;
var _local5:int;
_local6 = 0;
while (_local6 < 4) {
_local7 = 0;
while (_local7 < 5) {
if (_local7 == 4){
_local5 = _arg1[(_local4 + 4)];
} else {
_local5 = 0;
};
_local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5);
_local7++;
};
_local4 = (_local4 + 5);
_local6++;
};
return (_local3);
}
public static function setThreshold(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
var _local3:Array = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{
if (isNaN(_arg2)){
return (_arg1);
};
if (isNaN(_arg3)){
_arg3 = 1;
};
var _local4:Number = (((_arg2 >> 16) & 0xFF) / 0xFF);
var _local5:Number = (((_arg2 >> 8) & 0xFF) / 0xFF);
var _local6:Number = ((_arg2 & 0xFF) / 0xFF);
var _local7:Number = (1 - _arg3);
var _local8:Array = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local8, _arg1));
}
public static function setBrightness(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = ((_arg2 * 100) - 100);
return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1));
}
}
}//package com.greensock.plugins
Section 83
//ColorTransformPlugin (com.greensock.plugins.ColorTransformPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
import flash.geom.*;
public class ColorTransformPlugin extends TintPlugin {
public static const API:Number = 1;
public function ColorTransformPlugin(){
this.propName = "colorTransform";
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local5:String;
var _local6:Number;
if (!(_arg1 is DisplayObject)){
return (false);
};
var _local4:ColorTransform = _arg1.transform.colorTransform;
for (_local5 in _arg2) {
if ((((_local5 == "tint")) || ((_local5 == "color")))){
if (_arg2[_local5] != null){
_local4.color = int(_arg2[_local5]);
};
} else {
if ((((((_local5 == "tintAmount")) || ((_local5 == "exposure")))) || ((_local5 == "brightness")))){
} else {
_local4[_local5] = _arg2[_local5];
};
};
};
if (!isNaN(_arg2.tintAmount)){
_local6 = (_arg2.tintAmount / (1 - (((_local4.redMultiplier + _local4.greenMultiplier) + _local4.blueMultiplier) / 3)));
_local4.redOffset = (_local4.redOffset * _local6);
_local4.greenOffset = (_local4.greenOffset * _local6);
_local4.blueOffset = (_local4.blueOffset * _local6);
_local4.redMultiplier = (_local4.greenMultiplier = (_local4.blueMultiplier = (1 - _arg2.tintAmount)));
} else {
if (!isNaN(_arg2.exposure)){
_local4.redOffset = (_local4.greenOffset = (_local4.blueOffset = (0xFF * (_arg2.exposure - 1))));
_local4.redMultiplier = (_local4.greenMultiplier = (_local4.blueMultiplier = 1));
} else {
if (!isNaN(_arg2.brightness)){
_local4.redOffset = (_local4.greenOffset = (_local4.blueOffset = Math.max(0, ((_arg2.brightness - 1) * 0xFF))));
_local4.redMultiplier = (_local4.greenMultiplier = (_local4.blueMultiplier = (1 - Math.abs((_arg2.brightness - 1)))));
};
};
};
_ignoreAlpha = Boolean(((!((_arg3.vars.alpha == undefined))) && ((_arg2.alphaMultiplier == undefined))));
init((_arg1 as DisplayObject), _local4);
return (true);
}
}
}//package com.greensock.plugins
Section 84
//DropShadowFilterPlugin (com.greensock.plugins.DropShadowFilterPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
import flash.filters.*;
public class DropShadowFilterPlugin extends FilterPlugin {
public static const API:Number = 1;
private static var _propNames:Array = ["distance", "angle", "color", "alpha", "blurX", "blurY", "strength", "quality", "inner", "knockout", "hideObject"];
public function DropShadowFilterPlugin(){
this.propName = "dropShadowFilter";
this.overwriteProps = ["dropShadowFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = DropShadowFilter;
initFilter(_arg2, new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout, _arg2.hideObject), _propNames);
return (true);
}
}
}//package com.greensock.plugins
Section 85
//EndArrayPlugin (com.greensock.plugins.EndArrayPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
public class EndArrayPlugin extends TweenPlugin {
protected var _a:Array;
protected var _info:Array;
public static const API:Number = 1;
public function EndArrayPlugin(){
_info = [];
super();
this.propName = "endArray";
this.overwriteProps = ["endArray"];
}
public function init(_arg1:Array, _arg2:Array):void{
_a = _arg1;
var _local3:int = _arg2.length;
while (_local3--) {
if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){
_info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3]));
};
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (false);
};
init((_arg1 as Array), _arg2);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
var _local3:ArrayTweenInfo;
var _local4:Number;
var _local2:int = _info.length;
if (this.round){
while (_local2--) {
_local3 = _info[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_a[_local3.index] = ((_local4)>0) ? int((_local4 + 0.5)) : int((_local4 - 0.5));
};
} else {
while (_local2--) {
_local3 = _info[_local2];
_a[_local3.index] = (_local3.start + (_local3.change * _arg1));
};
};
}
}
}//package com.greensock.plugins
class ArrayTweenInfo {
public var change:Number;
public var start:Number;
public var index:uint;
private function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){
this.index = _arg1;
this.start = _arg2;
this.change = _arg3;
}
}
Section 86
//FilterPlugin (com.greensock.plugins.FilterPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
import flash.filters.*;
import com.greensock.core.*;
public class FilterPlugin extends TweenPlugin {
protected var _remove:Boolean;
protected var _target:Object;
protected var _index:int;
protected var _filter:BitmapFilter;
protected var _type:Class;
public static const VERSION:Number = 2.03;
public static const API:Number = 1;
public function onCompleteTween():void{
var _local1:Array;
var _local2:int;
if (_remove){
_local1 = _target.filters;
if (!(_local1[_index] is _type)){
_local2 = _local1.length;
while (_local2--) {
if ((_local1[_local2] is _type)){
_local1.splice(_local2, 1);
break;
};
};
} else {
_local1.splice(_index, 1);
};
_target.filters = _local1;
};
}
protected function initFilter(_arg1:Object, _arg2:BitmapFilter, _arg3:Array):void{
var _local5:String;
var _local6:int;
var _local7:HexColorsPlugin;
var _local4:Array = _target.filters;
var _local8:Object = ((_arg1 is BitmapFilter)) ? {} : _arg1;
_index = -1;
if (_local8.index != null){
_index = _local8.index;
} else {
_local6 = _local4.length;
while (_local6--) {
if ((_local4[_local6] is _type)){
_index = _local6;
break;
};
};
};
if ((((((_index == -1)) || ((_local4[_index] == null)))) || ((_local8.addFilter == true)))){
_index = ((_local8.index)!=null) ? _local8.index : _local4.length;
_local4[_index] = _arg2;
_target.filters = _local4;
};
_filter = _local4[_index];
if (_local8.remove == true){
_remove = true;
this.onComplete = onCompleteTween;
};
_local6 = _arg3.length;
while (_local6--) {
_local5 = _arg3[_local6];
if ((((_local5 in _arg1)) && (!((_filter[_local5] == _arg1[_local5]))))){
if ((((((_local5 == "color")) || ((_local5 == "highlightColor")))) || ((_local5 == "shadowColor")))){
_local7 = new HexColorsPlugin();
_local7.initColor(_filter, _local5, _filter[_local5], _arg1[_local5]);
_tweens[_tweens.length] = new PropTween(_local7, "changeFactor", 0, 1, _local5, false);
} else {
if ((((((((_local5 == "quality")) || ((_local5 == "inner")))) || ((_local5 == "knockout")))) || ((_local5 == "hideObject")))){
_filter[_local5] = _arg1[_local5];
} else {
addTween(_filter, _local5, _filter[_local5], _arg1[_local5], _local5);
};
};
};
};
}
override public function set changeFactor(_arg1:Number):void{
var _local3:PropTween;
var _local2:int = _tweens.length;
var _local4:Array = _target.filters;
while (_local2--) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
};
if (!(_local4[_index] is _type)){
_local2 = (_index = _local4.length);
while (_local2--) {
if ((_local4[_local2] is _type)){
_index = _local2;
break;
};
};
};
_local4[_index] = _filter;
_target.filters = _local4;
}
}
}//package com.greensock.plugins
Section 87
//FrameLabelPlugin (com.greensock.plugins.FrameLabelPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
public class FrameLabelPlugin extends FramePlugin {
public static const API:Number = 1;
public function FrameLabelPlugin(){
this.propName = "frameLabel";
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if ((!(_arg3.target) is MovieClip)){
return (false);
};
_target = (_arg1 as MovieClip);
this.frame = _target.currentFrame;
var _local4:Array = _target.currentLabels;
var _local5:String = _arg2;
var _local6:int = _target.currentFrame;
var _local7:int = _local4.length;
while (_local7--) {
if (_local4[_local7].name == _local5){
_local6 = _local4[_local7].frame;
break;
};
};
if (this.frame != _local6){
addTween(this, "frame", this.frame, _local6, "frame");
};
return (true);
}
}
}//package com.greensock.plugins
Section 88
//FramePlugin (com.greensock.plugins.FramePlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
public class FramePlugin extends TweenPlugin {
protected var _target:MovieClip;
public var frame:int;
public static const API:Number = 1;
public function FramePlugin(){
this.propName = "frame";
this.overwriteProps = ["frame", "frameLabel"];
this.round = true;
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){
return (false);
};
_target = (_arg1 as MovieClip);
this.frame = _target.currentFrame;
addTween(this, "frame", this.frame, _arg2, "frame");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.gotoAndStop(this.frame);
}
}
}//package com.greensock.plugins
Section 89
//GlowFilterPlugin (com.greensock.plugins.GlowFilterPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
import flash.filters.*;
public class GlowFilterPlugin extends FilterPlugin {
public static const API:Number = 1;
private static var _propNames:Array = ["color", "alpha", "blurX", "blurY", "strength", "quality", "inner", "knockout"];
public function GlowFilterPlugin(){
this.propName = "glowFilter";
this.overwriteProps = ["glowFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = GlowFilter;
initFilter(_arg2, new GlowFilter(0xFFFFFF, 0, 0, 0, ((_arg2.strength) || (1)), ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout), _propNames);
return (true);
}
}
}//package com.greensock.plugins
Section 90
//HexColorsPlugin (com.greensock.plugins.HexColorsPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
public class HexColorsPlugin extends TweenPlugin {
protected var _colors:Array;
public static const API:Number = 1;
public function HexColorsPlugin(){
this.propName = "hexColors";
this.overwriteProps = [];
_colors = [];
}
override public function killProps(_arg1:Object):void{
var _local2:int = (_colors.length - 1);
while (_local2 > -1) {
if (_arg1[_colors[_local2][1]] != undefined){
_colors.splice(_local2, 1);
};
_local2--;
};
super.killProps(_arg1);
}
public function initColor(_arg1:Object, _arg2:String, _arg3:uint, _arg4:uint):void{
var _local5:Number;
var _local6:Number;
var _local7:Number;
if (_arg3 != _arg4){
_local5 = (_arg3 >> 16);
_local6 = ((_arg3 >> 8) & 0xFF);
_local7 = (_arg3 & 0xFF);
_colors[_colors.length] = [_arg1, _arg2, _local5, ((_arg4 >> 16) - _local5), _local6, (((_arg4 >> 8) & 0xFF) - _local6), _local7, ((_arg4 & 0xFF) - _local7)];
this.overwriteProps[this.overwriteProps.length] = _arg2;
};
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:Array;
_local2 = (_colors.length - 1);
while (_local2 > -1) {
_local3 = _colors[_local2];
_local3[0][_local3[1]] = ((((_local3[2] + (_arg1 * _local3[3])) << 16) | ((_local3[4] + (_arg1 * _local3[5])) << 8)) | (_local3[6] + (_arg1 * _local3[7])));
_local2--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:String;
for (_local4 in _arg2) {
initColor(_arg1, _local4, uint(_arg1[_local4]), uint(_arg2[_local4]));
};
return (true);
}
}
}//package com.greensock.plugins
Section 91
//RemoveTintPlugin (com.greensock.plugins.RemoveTintPlugin)
package com.greensock.plugins {
public class RemoveTintPlugin extends TintPlugin {
public static const API:Number = 1;
public function RemoveTintPlugin(){
this.propName = "removeTint";
}
}
}//package com.greensock.plugins
Section 92
//RoundPropsPlugin (com.greensock.plugins.RoundPropsPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
public class RoundPropsPlugin extends TweenPlugin {
public static const API:Number = 1;
public function RoundPropsPlugin(){
this.propName = "roundProps";
this.overwriteProps = [];
this.round = true;
}
public function add(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{
addTween(_arg1, _arg2, _arg3, (_arg3 + _arg4), _arg2);
this.overwriteProps[this.overwriteProps.length] = _arg2;
}
}
}//package com.greensock.plugins
Section 93
//ShortRotationPlugin (com.greensock.plugins.ShortRotationPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
public class ShortRotationPlugin extends TweenPlugin {
public static const API:Number = 1;
public function ShortRotationPlugin(){
this.propName = "shortRotation";
this.overwriteProps = [];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:String;
if (typeof(_arg2) == "number"){
return (false);
};
for (_local4 in _arg2) {
initRotation(_arg1, _local4, _arg1[_local4], ((typeof(_arg2[_local4]))=="number") ? Number(_arg2[_local4]) : (_arg1[_local4] + Number(_arg2[_local4])));
};
return (true);
}
public function initRotation(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{
var _local5:Number = ((_arg4 - _arg3) % 360);
if (((_arg4 - _arg3) % 360) != (_local5 % 180)){
_local5 = ((_local5)<0) ? (_local5 + 360) : (_local5 - 360);
};
addTween(_arg1, _arg2, _arg3, (_arg3 + _local5), _arg2);
this.overwriteProps[this.overwriteProps.length] = _arg2;
}
}
}//package com.greensock.plugins
Section 94
//TintPlugin (com.greensock.plugins.TintPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
import com.greensock.core.*;
import flash.geom.*;
public class TintPlugin extends TweenPlugin {
protected var _ct:ColorTransform;
protected var _transform:Transform;
protected var _ignoreAlpha:Boolean;
public static const API:Number = 1;
protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"];
public function TintPlugin(){
this.propName = "tint";
this.overwriteProps = ["tint"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg1 is DisplayObject)){
return (false);
};
var _local4:ColorTransform = new ColorTransform();
if (((!((_arg2 == null))) && (!((_arg3.vars.removeTint == true))))){
_local4.color = uint(_arg2);
};
_ignoreAlpha = true;
init((_arg1 as DisplayObject), _local4);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
var _local2:ColorTransform;
updateTweens(_arg1);
if (_ignoreAlpha){
_local2 = _transform.colorTransform;
_ct.alphaMultiplier = _local2.alphaMultiplier;
_ct.alphaOffset = _local2.alphaOffset;
};
_transform.colorTransform = _ct;
}
public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{
var _local4:String;
_transform = _arg1.transform;
_ct = _transform.colorTransform;
var _local3:int = _props.length;
while (_local3--) {
_local4 = _props[_local3];
if (_ct[_local4] != _arg2[_local4]){
_tweens[_tweens.length] = new PropTween(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false);
};
};
}
}
}//package com.greensock.plugins
Section 95
//TweenPlugin (com.greensock.plugins.TweenPlugin)
package com.greensock.plugins {
import com.greensock.*;
import com.greensock.core.*;
public class TweenPlugin {
public var activeDisable:Boolean;
protected var _changeFactor:Number;// = 0
protected var _tweens:Array;
public var onDisable:Function;
public var propName:String;
public var round:Boolean;
public var onEnable:Function;
public var priority:int;// = 0
public var overwriteProps:Array;
public var onComplete:Function;
public static const VERSION:Number = 1.31;
public static const API:Number = 1;
public function TweenPlugin(){
_tweens = [];
super();
}
protected function updateTweens(_arg1:Number):void{
var _local3:PropTween;
var _local4:Number;
var _local2:int = _tweens.length;
if (this.round){
while (_local2--) {
_local3 = _tweens[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local3.target[_local3.property] = ((_local4)>0) ? int((_local4 + 0.5)) : int((_local4 - 0.5));
};
} else {
while (_local2--) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
};
};
}
protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{
var _local6:Number;
if (_arg4 != null){
_local6 = ((typeof(_arg4))=="number") ? (Number(_arg4) - _arg3) : Number(_arg4);
if (_local6 != 0){
_tweens[_tweens.length] = new PropTween(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false);
};
};
}
public function get changeFactor():Number{
return (_changeFactor);
}
public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName);
return (true);
}
public function killProps(_arg1:Object):void{
var _local2:int = this.overwriteProps.length;
while (_local2--) {
if ((this.overwriteProps[_local2] in _arg1)){
this.overwriteProps.splice(_local2, 1);
};
};
_local2 = _tweens.length;
while (_local2--) {
if ((PropTween(_tweens[_local2]).name in _arg1)){
_tweens.splice(_local2, 1);
};
};
}
public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_changeFactor = _arg1;
}
public static function activate(_arg1:Array):Boolean{
var _local3:Object;
TweenLite.onPluginEvent = TweenPlugin.onTweenEvent;
var _local2:int = _arg1.length;
while (_local2--) {
if (_arg1[_local2].hasOwnProperty("API")){
_local3 = new ((_arg1[_local2] as Class));
TweenLite.plugins[_local3.propName] = _arg1[_local2];
};
};
return (true);
}
private static function onTweenEvent(_arg1:String, _arg2:TweenLite):Boolean{
var _local4:Boolean;
var _local5:Array;
var _local6:int;
var _local3:PropTween = _arg2.cachedPT1;
if (_arg1 == "onInit"){
_local5 = [];
while (_local3) {
_local5[_local5.length] = _local3;
_local3 = _local3.nextNode;
};
_local5.sortOn("priority", (Array.NUMERIC | Array.DESCENDING));
_local6 = _local5.length;
while (_local6--) {
PropTween(_local5[_local6]).nextNode = _local5[(_local6 + 1)];
PropTween(_local5[_local6]).prevNode = _local5[(_local6 - 1)];
};
_arg2.cachedPT1 = _local5[0];
} else {
while (_local3) {
if (((_local3.isPlugin) && (_local3.target[_arg1]))){
if (_local3.target.activeDisable){
_local4 = true;
};
var _local7 = _local3.target;
_local7[_arg1]();
};
_local3 = _local3.nextNode;
};
};
return (_local4);
}
}
}//package com.greensock.plugins
Section 96
//VisiblePlugin (com.greensock.plugins.VisiblePlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
public class VisiblePlugin extends TweenPlugin {
protected var _target:Object;
protected var _initVal:Boolean;
protected var _visible:Boolean;
protected var _tween:TweenLite;
public static const API:Number = 1;
public function VisiblePlugin(){
this.propName = "visible";
this.overwriteProps = ["visible"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_initVal = _target.visible;
_visible = Boolean(_arg2);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
if ((((_arg1 == 1)) && ((((_tween.cachedDuration == _tween.cachedTime)) || ((_tween.cachedTime == 0)))))){
_target.visible = _visible;
} else {
_target.visible = _initVal;
};
}
}
}//package com.greensock.plugins
Section 97
//VolumePlugin (com.greensock.plugins.VolumePlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
import flash.media.*;
public class VolumePlugin extends TweenPlugin {
protected var _target:Object;
protected var _st:SoundTransform;
public static const API:Number = 1;
public function VolumePlugin(){
this.propName = "volume";
this.overwriteProps = ["volume"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){
return (false);
};
_target = _arg1;
_st = _target.soundTransform;
addTween(_st, "volume", _st.volume, _arg2, "volume");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
}
}//package com.greensock.plugins
Section 98
//OverwriteManager (com.greensock.OverwriteManager)
package com.greensock {
import com.greensock.core.*;
import flash.utils.*;
import flash.errors.*;
public class OverwriteManager {
public static const ALL_ONSTART:int = 4;
public static const CONCURRENT:int = 3;
public static const ALL_IMMEDIATE:int = 1;
public static const PREEXISTING:int = 5;
public static const AUTO:int = 2;
public static const version:Number = 6.01;
public static const NONE:int = 0;
public static var enabled:Boolean;
public static var mode:int;
public static function getGlobalPaused(_arg1:TweenCore):Boolean{
while (_arg1) {
if (_arg1.cachedPaused){
return (true);
};
_arg1 = _arg1.timeline;
};
return (false);
}
public static function init(_arg1:int=2):int{
if (TweenLite.version < 11.1){
throw (new Error("Warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com."));
};
TweenLite.overwriteManager = OverwriteManager;
mode = _arg1;
enabled = true;
return (mode);
}
public static function manageOverwrites(_arg1:TweenLite, _arg2:Object, _arg3:Array, _arg4:uint):Boolean{
var _local5:int;
var _local6:Boolean;
var _local7:TweenLite;
var _local13:uint;
var _local14:Number;
var _local15:Number;
var _local16:TweenCore;
var _local17:Number;
var _local18:SimpleTimeline;
if (_arg4 >= 4){
_local13 = _arg3.length;
_local5 = 0;
while (_local5 < _local13) {
_local7 = _arg3[_local5];
if (_local7 != _arg1){
if (_local7.setEnabled(false, false)){
_local6 = true;
};
} else {
if (_arg4 == 5){
break;
};
};
_local5++;
};
return (_local6);
};
var _local8:Number = (_arg1.cachedStartTime + 1E-10);
var _local9:Array = [];
var _local10:Array = [];
var _local11:uint;
var _local12:uint;
_local5 = _arg3.length;
while (_local5--) {
_local7 = _arg3[_local5];
if ((((_local7 == _arg1)) || (_local7.gc))){
} else {
if (_local7.timeline != _arg1.timeline){
if (!getGlobalPaused(_local7)){
var _temp1 = _local11;
_local11 = (_local11 + 1);
var _local19 = _temp1;
_local10[_local19] = _local7;
};
} else {
if ((((((_local7.cachedStartTime <= _local8)) && ((((_local7.cachedStartTime + _local7.totalDuration) + 1E-10) > _local8)))) && (!(getGlobalPaused(_local7))))){
var _temp2 = _local12;
_local12 = (_local12 + 1);
_local19 = _temp2;
_local9[_local19] = _local7;
};
};
};
};
if (_local11 != 0){
_local14 = _arg1.cachedTimeScale;
_local15 = _local8;
_local18 = _arg1.timeline;
while (_local18) {
_local14 = (_local14 * _local18.cachedTimeScale);
_local15 = (_local15 + _local18.cachedStartTime);
_local18 = _local18.timeline;
};
_local8 = (_local14 * _local15);
_local5 = _local11;
while (_local5--) {
_local16 = _local10[_local5];
_local14 = _local16.cachedTimeScale;
_local15 = _local16.cachedStartTime;
_local18 = _local16.timeline;
while (_local18) {
_local14 = (_local14 * _local18.cachedTimeScale);
_local15 = (_local15 + _local18.cachedStartTime);
_local18 = _local18.timeline;
};
_local17 = (_local14 * _local15);
if ((((_local17 <= _local8)) && ((((((_local17 + (_local16.totalDuration * _local14)) + 1E-10) > _local8)) || ((_local16.cachedDuration == 0)))))){
var _temp3 = _local12;
_local12 = (_local12 + 1);
_local19 = _temp3;
_local9[_local19] = _local16;
};
};
};
if (_local12 == 0){
return (_local6);
};
_local5 = _local12;
if (_arg4 == 2){
while (_local5--) {
_local7 = _local9[_local5];
if (_local7.killVars(_arg2)){
_local6 = true;
};
if ((((_local7.cachedPT1 == null)) && (_local7.initted))){
_local7.setEnabled(false, false);
};
};
} else {
while (_local5--) {
if (TweenLite(_local9[_local5]).setEnabled(false, false)){
_local6 = true;
};
};
};
return (_local6);
}
}
}//package com.greensock
Section 99
//TimelineLite (com.greensock.TimelineLite)
package com.greensock {
import com.greensock.core.*;
import flash.utils.*;
public class TimelineLite extends SimpleTimeline {
protected var _endCaps:Array;
protected var _labels:Object;
public static const version:Number = 1.32;
private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init(2);
;
public function TimelineLite(_arg1:Object=null){
super(_arg1);
_endCaps = [];
_labels = {};
this.autoRemoveChildren = Boolean((this.vars.autoRemoveChildren == true));
_hasUpdate = Boolean((typeof(this.vars.onUpdate) == "function"));
if ((this.vars.tweens is Array)){
this.insertMultiple(this.vars.tweens, 0, ((this.vars.align) || ("normal")), ((this.vars.stagger) || (0)));
};
}
public function set timeScale(_arg1:Number):void{
if (_arg1 == 0){
_arg1 = 0.0001;
};
var _local2:Number = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime;
this.cachedStartTime = (_local2 - (((_local2 - this.cachedStartTime) * this.cachedTimeScale) / _arg1));
this.cachedTimeScale = _arg1;
setDirtyCache(false);
}
public function stop():void{
this.paused = true;
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local8:TweenCore;
var _local9:Boolean;
var _local10:Boolean;
var _local11:TweenCore;
var _local12:Number;
if (this.gc){
this.setEnabled(true, false);
} else {
if (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
};
var _local4:Number = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration;
var _local5:Number = this.cachedTime;
var _local6:Number = this.cachedStartTime;
var _local7:Number = this.cachedTimeScale;
var _local13:Boolean = this.cachedPaused;
if (_arg1 >= _local4){
if ((((_rawPrevTime <= _local4)) && (!((_rawPrevTime == _arg1))))){
this.cachedTotalTime = (this.cachedTime = _local4);
forceChildrenToEnd(_local4, _arg2);
_local9 = !(this.hasPausedChild());
_local10 = true;
if ((((((this.cachedDuration == 0)) && (_local9))) && ((((_arg1 == 0)) || ((_rawPrevTime < 0)))))){
_arg3 = true;
};
};
} else {
if (_arg1 <= 0){
if (_arg1 < 0){
this.active = false;
if ((((this.cachedDuration == 0)) && ((_rawPrevTime > 0)))){
_arg3 = true;
_local9 = true;
};
};
if ((((_rawPrevTime >= 0)) && (!((_rawPrevTime == _arg1))))){
forceChildrenToBeginning(0, _arg2);
this.cachedTotalTime = 0;
this.cachedTime = 0;
_local10 = true;
if (this.cachedReversed){
_local9 = true;
};
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
};
};
_rawPrevTime = _arg1;
if ((((this.cachedTime == _local5)) && (!(_arg3)))){
return;
};
if (!this.initted){
this.initted = true;
};
if ((((((((_local5 == 0)) && (this.vars.onStart))) && (!((this.cachedTime == 0))))) && (!(_arg2)))){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (_local10){
} else {
if ((this.cachedTime - _local5) > 0){
_local8 = _firstChild;
while (_local8) {
_local11 = _local8.nextNode;
if (((this.cachedPaused) && (!(_local13)))){
break;
} else {
if (((_local8.active) || (((((!(_local8.cachedPaused)) && ((_local8.cachedStartTime <= this.cachedTime)))) && (!(_local8.gc)))))){
if (!_local8.cachedReversed){
_local8.renderTime(((this.cachedTime - _local8.cachedStartTime) * _local8.cachedTimeScale), _arg2, false);
} else {
_local12 = (_local8.cacheIsDirty) ? _local8.totalDuration : _local8.cachedTotalDuration;
_local8.renderTime((_local12 - ((this.cachedTime - _local8.cachedStartTime) * _local8.cachedTimeScale)), _arg2, false);
};
};
};
_local8 = _local11;
};
} else {
_local8 = _lastChild;
while (_local8) {
_local11 = _local8.prevNode;
if (((this.cachedPaused) && (!(_local13)))){
break;
} else {
if (((_local8.active) || (((((!(_local8.cachedPaused)) && ((_local8.cachedStartTime <= _local5)))) && (!(_local8.gc)))))){
if (!_local8.cachedReversed){
_local8.renderTime(((this.cachedTime - _local8.cachedStartTime) * _local8.cachedTimeScale), _arg2, false);
} else {
_local12 = (_local8.cacheIsDirty) ? _local8.totalDuration : _local8.cachedTotalDuration;
_local8.renderTime((_local12 - ((this.cachedTime - _local8.cachedStartTime) * _local8.cachedTimeScale)), _arg2, false);
};
};
};
_local8 = _local11;
};
};
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (((_local9) && ((((_local6 == this.cachedStartTime)) || (!((_local7 == this.cachedTimeScale))))))){
complete(true, _arg2);
};
}
override public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{
if (_arg1.gc){
return;
};
if (!_arg2){
_arg1.setEnabled(false, true);
};
var _local3:TweenCore = ((_firstChild) || (_endCaps[0]));
var _local4:TweenCore = ((_lastChild) || (_endCaps[1]));
if (_arg1.nextNode){
_arg1.nextNode.prevNode = _arg1.prevNode;
} else {
if (_local4 == _arg1){
_local4 = _arg1.prevNode;
};
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (_local3 == _arg1){
_local3 = _arg1.nextNode;
};
};
if (this.gc){
_endCaps[0] = _local3;
_endCaps[1] = _local4;
} else {
_firstChild = _local3;
_lastChild = _local4;
};
setDirtyCache(true);
}
public function get currentProgress():Number{
return ((this.cachedTime / this.duration));
}
override public function get totalDuration():Number{
var _local1:Number;
var _local2:Number;
var _local3:TweenCore;
var _local4:Number;
var _local5:TweenCore;
if (this.cacheIsDirty){
_local1 = 0;
_local3 = ((_firstChild) || (_endCaps[0]));
_local4 = -(Infinity);
while (_local3) {
_local5 = _local3.nextNode;
if (_local3.cachedStartTime < _local4){
this.addChild(_local3);
_local4 = _local3.prevNode.cachedStartTime;
} else {
_local4 = _local3.cachedStartTime;
};
if (_local3.cachedStartTime < 0){
_local1 = (_local1 - _local3.cachedStartTime);
this.shiftChildren(-(_local3.cachedStartTime), false, -9999999999);
};
_local2 = (_local3.cachedStartTime + (_local3.totalDuration / _local3.cachedTimeScale));
if (_local2 > _local1){
_local1 = _local2;
};
_local3 = _local5;
};
this.cachedDuration = (this.cachedTotalDuration = _local1);
this.cacheIsDirty = false;
};
return (this.cachedTotalDuration);
}
public function gotoAndPlay(_arg1, _arg2:Boolean=true):void{
setTotalTime(parseTimeOrLabel(_arg1), _arg2);
play();
}
public function appendMultiple(_arg1:Array, _arg2:Number=0, _arg3:String="normal", _arg4:Number=0):void{
insertMultiple(_arg1, (this.duration + _arg2), _arg3, _arg4);
}
public function set currentProgress(_arg1:Number):void{
setTotalTime((this.duration * _arg1), false);
}
public function clear(_arg1:Array=null):void{
if (_arg1 == null){
_arg1 = getChildren(false, true, true);
};
var _local2:int = _arg1.length;
while (_local2--) {
TweenCore(_arg1[_local2]).setEnabled(false, false);
};
}
public function prepend(_arg1:TweenCore, _arg2:Boolean=false):void{
shiftChildren(((_arg1.totalDuration / _arg1.cachedTimeScale) + _arg1.delay), _arg2, 0);
insert(_arg1, 0);
}
public function removeLabel(_arg1:String):Number{
var _local2:Number = _labels[_arg1];
delete _labels[_arg1];
return (_local2);
}
protected function parseTimeOrLabel(_arg1):Number{
if (typeof(_arg1) == "string"){
if (!(_arg1 in _labels)){
throw (new Error((("TimelineLite error: the " + _arg1) + " label was not found.")));
};
return (getLabelTime(String(_arg1)));
};
return (Number(_arg1));
}
public function addLabel(_arg1:String, _arg2:Number):void{
_labels[_arg1] = _arg2;
}
public function hasPausedChild():Boolean{
var _local1:TweenCore = ((_firstChild) || (_endCaps[0]));
while (_local1) {
if (((_local1.cachedPaused) || ((((_local1 is TimelineLite)) && ((_local1 as TimelineLite).hasPausedChild()))))){
return (true);
};
_local1 = _local1.nextNode;
};
return (false);
}
public function getTweensOf(_arg1:Object, _arg2:Boolean=true):Array{
var _local5:int;
var _local3:Array = getChildren(_arg2, true, false);
var _local4:Array = [];
var _local6:uint = _local3.length;
var _local7:uint;
_local5 = 0;
while (_local5 < _local6) {
if (TweenLite(_local3[_local5]).target == _arg1){
var _temp1 = _local7;
_local7 = (_local7 + 1);
var _local8 = _temp1;
_local4[_local8] = _local3[_local5];
};
_local5++;
};
return (_local4);
}
public function gotoAndStop(_arg1, _arg2:Boolean=true):void{
setTotalTime(parseTimeOrLabel(_arg1), _arg2);
this.paused = true;
}
public function append(_arg1:TweenCore, _arg2:Number=0):void{
insert(_arg1, (this.duration + _arg2));
}
override public function get duration():Number{
var _local1:Number;
if (this.cacheIsDirty){
_local1 = this.totalDuration;
};
return (this.cachedDuration);
}
public function get useFrames():Boolean{
var _local1:SimpleTimeline = this.timeline;
while (_local1.timeline) {
_local1 = _local1.timeline;
};
return (Boolean((_local1 == TweenLite.rootFramesTimeline)));
}
public function shiftChildren(_arg1:Number, _arg2:Boolean=false, _arg3:Number=0):void{
var _local5:String;
var _local4:TweenCore = ((_firstChild) || (_endCaps[0]));
while (_local4) {
if (_local4.cachedStartTime >= _arg3){
_local4.cachedStartTime = (_local4.cachedStartTime + _arg1);
};
_local4 = _local4.nextNode;
};
if (_arg2){
for (_local5 in _labels) {
if (_labels[_local5] >= _arg3){
_labels[_local5] = (_labels[_local5] + _arg1);
};
};
};
this.setDirtyCache(true);
}
public function goto(_arg1, _arg2:Boolean=true):void{
setTotalTime(parseTimeOrLabel(_arg1), _arg2);
}
public function killTweensOf(_arg1:Object, _arg2:Boolean=true, _arg3:Object=null):Boolean{
var _local6:TweenLite;
var _local4:Array = getTweensOf(_arg1, _arg2);
var _local5:int = _local4.length;
while (_local5--) {
_local6 = _local4[_local5];
if (_arg3 != null){
_local6.killVars(_arg3);
};
if ((((_arg3 == null)) || ((((_local6.cachedPT1 == null)) && (_local6.initted))))){
_local6.setEnabled(false, false);
};
};
return (Boolean((_local4.length > 0)));
}
override public function invalidate():void{
var _local1:TweenCore = ((_firstChild) || (_endCaps[0]));
while (_local1) {
_local1.invalidate();
_local1 = _local1.nextNode;
};
}
public function insertMultiple(_arg1:Array, _arg2=0, _arg3:String="normal", _arg4:Number=0):void{
var _local5:int;
var _local6:TweenCore;
var _local7:Number = ((Number(_arg2)) || (0));
var _local8:uint = _arg1.length;
if (typeof(_arg2) == "string"){
if (!(_arg2 in _labels)){
addLabel(_arg2, this.duration);
};
_local7 = _labels[_arg2];
};
_local5 = 0;
while (_local5 < _local8) {
_local6 = (_arg1[_local5] as TweenCore);
insert(_local6, _local7);
if (_arg3 == "sequence"){
_local7 = (_local6.cachedStartTime + (_local6.totalDuration / _local6.cachedTimeScale));
} else {
if (_arg3 == "start"){
_local6.cachedStartTime = (_local6.cachedStartTime - _local6.delay);
};
};
_local7 = (_local7 + _arg4);
_local5++;
};
}
public function getLabelTime(_arg1:String):Number{
return (((_arg1 in _labels)) ? Number(_labels[_arg1]) : -1);
}
override public function get rawTime():Number{
if (((!((this.cachedTotalTime == 0))) && (!((this.cachedTotalTime == this.cachedTotalDuration))))){
return (this.cachedTotalTime);
};
return (((this.timeline.rawTime - this.cachedStartTime) * this.cachedTimeScale));
}
override public function set duration(_arg1:Number):void{
if (((!((this.duration == 0))) && (!((_arg1 == 0))))){
this.timeScale = (this.duration / _arg1);
};
}
override public function set totalDuration(_arg1:Number):void{
if (((!((this.totalDuration == 0))) && (!((_arg1 == 0))))){
this.timeScale = (this.totalDuration / _arg1);
};
}
public function getChildren(_arg1:Boolean=true, _arg2:Boolean=true, _arg3:Boolean=true, _arg4:Number=-9999999999):Array{
var _local5:Array = [];
var _local6:TweenCore = ((_firstChild) || (_endCaps[0]));
var _local7:uint;
while (_local6) {
if (_local6.cachedStartTime < _arg4){
} else {
if ((_local6 is TweenLite)){
if (_arg2){
var _temp1 = _local7;
_local7 = (_local7 + 1);
var _local8 = _temp1;
_local5[_local8] = _local6;
};
} else {
if (_arg3){
var _temp2 = _local7;
_local7 = (_local7 + 1);
_local8 = _temp2;
_local5[_local8] = _local6;
};
if (_arg1){
_local5 = _local5.concat(TimelineLite(_local6).getChildren(true, _arg2, _arg3));
};
};
};
_local6 = _local6.nextNode;
};
return (_local5);
}
protected function forceChildrenToEnd(_arg1:Number, _arg2:Boolean=false):Number{
var _local4:TweenCore;
var _local5:Number;
var _local3:TweenCore = _firstChild;
var _local6:Boolean = this.cachedPaused;
while (_local3) {
_local4 = _local3.nextNode;
if (((this.cachedPaused) && (!(_local6)))){
break;
} else {
if (((_local3.active) || (((((!(_local3.cachedPaused)) && (!(_local3.gc)))) && (((!((_local3.cachedTotalTime == _local3.cachedTotalDuration))) || ((_local3.cachedDuration == 0)))))))){
if ((((_arg1 == this.cachedDuration)) && (((!((_local3.cachedDuration == 0))) || ((_local3.cachedStartTime == this.cachedDuration)))))){
_local3.renderTime((_local3.cachedReversed) ? 0 : _local3.cachedTotalDuration, _arg2, false);
} else {
if (!_local3.cachedReversed){
_local3.renderTime(((_arg1 - _local3.cachedStartTime) * _local3.cachedTimeScale), _arg2, false);
} else {
_local5 = (_local3.cacheIsDirty) ? _local3.totalDuration : _local3.cachedTotalDuration;
_local3.renderTime((_local5 - ((_arg1 - _local3.cachedStartTime) * _local3.cachedTimeScale)), _arg2, false);
};
};
};
};
_local3 = _local4;
};
return (_arg1);
}
protected function forceChildrenToBeginning(_arg1:Number, _arg2:Boolean=false):Number{
var _local4:TweenCore;
var _local5:Number;
var _local3:TweenCore = _lastChild;
var _local6:Boolean = this.cachedPaused;
while (_local3) {
_local4 = _local3.prevNode;
if (((this.cachedPaused) && (!(_local6)))){
break;
} else {
if (((_local3.active) || (((((!(_local3.cachedPaused)) && (!(_local3.gc)))) && (((!((_local3.cachedTotalTime == 0))) || ((_local3.cachedDuration == 0)))))))){
if ((((_arg1 == 0)) && (((!((_local3.cachedDuration == 0))) || ((_local3.cachedStartTime == 0)))))){
_local3.renderTime((_local3.cachedReversed) ? _local3.cachedTotalDuration : 0, _arg2, false);
} else {
if (!_local3.cachedReversed){
_local3.renderTime(((_arg1 - _local3.cachedStartTime) * _local3.cachedTimeScale), _arg2, false);
} else {
_local5 = (_local3.cacheIsDirty) ? _local3.totalDuration : _local3.cachedTotalDuration;
_local3.renderTime((_local5 - ((_arg1 - _local3.cachedStartTime) * _local3.cachedTimeScale)), _arg2, false);
};
};
};
};
_local3 = _local4;
};
return (_arg1);
}
public function insert(_arg1:TweenCore, _arg2=0):void{
if (typeof(_arg2) == "string"){
if (!(_arg2 in _labels)){
addLabel(_arg2, this.duration);
};
_arg2 = Number(_labels[_arg2]);
};
_arg1.cachedStartTime = (Number(_arg2) + _arg1.delay);
addChild(_arg1);
}
override public function addChild(_arg1:TweenCore):void{
var _local4:TweenCore;
var _local5:Number;
if (((!(_arg1.gc)) && (_arg1.timeline))){
_arg1.timeline.remove(_arg1, true);
};
_arg1.timeline = this;
if (_arg1.gc){
_arg1.setEnabled(true, true);
};
setDirtyCache(true);
var _local2:TweenCore = ((_firstChild) || (_endCaps[0]));
var _local3:TweenCore = ((_lastChild) || (_endCaps[1]));
if (_local3 == null){
_local3 = _arg1;
_local2 = _local3;
_arg1.nextNode = (_arg1.prevNode = null);
} else {
_local4 = _local3;
_local5 = _arg1.cachedStartTime;
while (((!((_local4 == null))) && ((_local5 <= _local4.cachedStartTime)))) {
_local4 = _local4.prevNode;
};
if (_local4 == null){
_local2.prevNode = _arg1;
_arg1.nextNode = _local2;
_arg1.prevNode = null;
_local2 = _arg1;
} else {
if (_local4.nextNode){
_local4.nextNode.prevNode = _arg1;
} else {
if (_local4 == _local3){
_local3 = _arg1;
};
};
_arg1.prevNode = _local4;
_arg1.nextNode = _local4.nextNode;
_local4.nextNode = _arg1;
};
};
if (this.gc){
_endCaps[0] = _local2;
_endCaps[1] = _local3;
} else {
_firstChild = _local2;
_lastChild = _local3;
};
}
public function get timeScale():Number{
return (this.cachedTimeScale);
}
public function prependMultiple(_arg1:Array, _arg2:String="normal", _arg3:Number=0, _arg4:Boolean=false):void{
var _local5:TimelineLite = new TimelineLite({tweens:_arg1, align:_arg2, stagger:_arg3});
shiftChildren(_local5.duration, _arg4, 0);
insertMultiple(_arg1, 0, _arg2, _arg3);
_local5.kill();
}
override public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
var _local3:TweenCore;
var _local4:TweenCore;
if (_arg1 == this.gc){
if (_arg1){
_local3 = _endCaps[0];
_firstChild = _local3;
_lastChild = _endCaps[1];
} else {
_local3 = _firstChild;
_endCaps = [_firstChild, _lastChild];
_firstChild = (_lastChild = null);
};
while (_local3) {
_local3.setEnabled(_arg1, true);
_local3 = _local3.nextNode;
};
};
return (super.setEnabled(_arg1, _arg2));
}
}
}//package com.greensock
Section 100
//TimelineMax (com.greensock.TimelineMax)
package com.greensock {
import flash.events.*;
import com.greensock.core.*;
import com.greensock.events.*;
import flash.utils.*;
public class TimelineMax extends TimelineLite implements IEventDispatcher {
protected var _cyclesComplete:uint;
protected var _dispatcher:EventDispatcher;
protected var _hasUpdateListener:Boolean;
public var yoyo:Boolean;
protected var _repeatDelay:Number;
protected var _repeat:int;
public static const version:Number = 1.32;
public function TimelineMax(_arg1:Object=null){
super(_arg1);
_repeat = ((this.vars.repeat) || (0));
_repeatDelay = ((this.vars.repeatDelay) || (0));
_cyclesComplete = 0;
this.yoyo = ((this.vars.yoyo) || (false));
this.cacheIsDirty = true;
if (((((((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))) || (!((this.vars.onRepeatListener == null))))) || (!((this.vars.onReverseCompleteListener == null))))){
initDispatcher();
};
}
public function dispatchEvent(_arg1:Event):Boolean{
return (((_dispatcher)==null) ? false : _dispatcher.dispatchEvent(_arg1));
}
public function get currentLabel():String{
return (getLabelBefore((this.cachedTime + 1E-8)));
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local7:TweenCore;
var _local8:Boolean;
var _local9:Boolean;
var _local10:Boolean;
var _local11:TweenCore;
var _local12:Number;
var _local14:Number;
var _local15:Number;
var _local16:Boolean;
var _local17:Boolean;
var _local18:Boolean;
if (this.gc){
this.setEnabled(true, false);
} else {
if (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
};
var _local4:Number = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration;
var _local5:Number = this.cachedTime;
var _local6:Number = this.cachedStartTime;
var _local13:Boolean = this.cachedPaused;
if (_arg1 >= _local4){
if ((((_rawPrevTime <= _local4)) && (!((_rawPrevTime == _arg1))))){
if (((((!(this.cachedReversed)) && (this.yoyo))) && (!(((_repeat % 2) == 0))))){
forceChildrenToBeginning(0, _arg2);
this.cachedTime = 0;
} else {
forceChildrenToEnd(this.cachedDuration, _arg2);
this.cachedTime = this.cachedDuration;
};
this.cachedTotalTime = _local4;
_local8 = !(this.hasPausedChild());
_local9 = true;
if ((((((this.cachedDuration == 0)) && (_local8))) && ((((_arg1 == 0)) || ((_rawPrevTime < 0)))))){
_arg3 = true;
};
};
} else {
if (_arg1 <= 0){
if (_arg1 < 0){
this.active = false;
if ((((this.cachedDuration == 0)) && ((_rawPrevTime > 0)))){
_arg3 = true;
_local8 = true;
};
};
if ((((_rawPrevTime >= 0)) && (!((_rawPrevTime == _arg1))))){
this.cachedTotalTime = 0;
if (((((!(this.cachedReversed)) && (this.yoyo))) && (!(((_repeat % 2) == 0))))){
forceChildrenToEnd(this.cachedDuration, _arg2);
this.cachedTime = this.cachedDuration;
} else {
forceChildrenToBeginning(0, _arg2);
this.cachedTime = 0;
};
_local9 = true;
if (this.cachedReversed){
_local8 = true;
};
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
};
};
_rawPrevTime = _arg1;
if (_repeat != 0){
_local14 = (this.cachedDuration + _repeatDelay);
if (_local8){
if (((this.yoyo) && ((_repeat % 2)))){
this.cachedTime = 0;
};
} else {
if (_arg1 > 0){
_local15 = _cyclesComplete;
if (_cyclesComplete != (_cyclesComplete = int((this.cachedTotalTime / _local14)))){
_local10 = true;
};
this.cachedTime = (((this.cachedTotalTime / _local14) - _cyclesComplete) * _local14);
if (((this.yoyo) && ((_cyclesComplete % 2)))){
this.cachedTime = (this.cachedDuration - this.cachedTime);
} else {
if (this.cachedTime >= this.cachedDuration){
this.cachedTime = this.cachedDuration;
};
};
if (this.cachedTime < 0){
this.cachedTime = 0;
};
};
};
if (((((_local10) && (!(_local8)))) && (((!((this.cachedTime == _local5))) || (_arg3))))){
_local16 = Boolean(((!(this.yoyo)) || (((_cyclesComplete % 2) == 0))));
_local17 = Boolean(((!(this.yoyo)) || (((_local15 % 2) == 0))));
_local18 = Boolean((_local16 == _local17));
if (_local15 > _cyclesComplete){
_local17 = !(_local17);
};
if (_local17){
_local5 = forceChildrenToEnd(this.cachedDuration, _arg2);
if (_local18){
_local5 = forceChildrenToBeginning(0, true);
};
} else {
_local5 = forceChildrenToBeginning(0, _arg2);
if (_local18){
_local5 = forceChildrenToEnd(this.cachedDuration, true);
};
};
_local9 = false;
};
};
if ((((this.cachedTime == _local5)) && (!(_arg3)))){
return;
};
if (!this.initted){
this.initted = true;
};
if ((((((_local5 == 0)) && (!((this.cachedTotalTime == 0))))) && (!(_arg2)))){
if (this.vars.onStart){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (_dispatcher){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START));
};
};
if (_local9){
} else {
if ((this.cachedTime - _local5) > 0){
_local7 = _firstChild;
while (_local7) {
_local11 = _local7.nextNode;
if (((this.cachedPaused) && (!(_local13)))){
break;
} else {
if (((_local7.active) || (((((!(_local7.cachedPaused)) && ((_local7.cachedStartTime <= this.cachedTime)))) && (!(_local7.gc)))))){
if (!_local7.cachedReversed){
_local7.renderTime(((this.cachedTime - _local7.cachedStartTime) * _local7.cachedTimeScale), _arg2, false);
} else {
_local12 = (_local7.cacheIsDirty) ? _local7.totalDuration : _local7.cachedTotalDuration;
_local7.renderTime((_local12 - ((this.cachedTime - _local7.cachedStartTime) * _local7.cachedTimeScale)), _arg2, false);
};
};
};
_local7 = _local11;
};
} else {
_local7 = _lastChild;
while (_local7) {
_local11 = _local7.prevNode;
if (((this.cachedPaused) && (!(_local13)))){
break;
} else {
if (((_local7.active) || (((((!(_local7.cachedPaused)) && ((_local7.cachedStartTime <= _local5)))) && (!(_local7.gc)))))){
if (!_local7.cachedReversed){
_local7.renderTime(((this.cachedTime - _local7.cachedStartTime) * _local7.cachedTimeScale), _arg2, false);
} else {
_local12 = (_local7.cacheIsDirty) ? _local7.totalDuration : _local7.cachedTotalDuration;
_local7.renderTime((_local12 - ((this.cachedTime - _local7.cachedStartTime) * _local7.cachedTimeScale)), _arg2, false);
};
};
};
_local7 = _local11;
};
};
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (((_hasUpdateListener) && (!(_arg2)))){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE));
};
if (((_local8) && ((_local6 == this.cachedStartTime)))){
complete(true, _arg2);
} else {
if (((_local10) && (!(_arg2)))){
if (this.vars.onRepeat){
this.vars.onRepeat.apply(null, this.vars.onRepeatParams);
};
if (_dispatcher){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.REPEAT));
};
};
};
}
public function addCallback(_arg1:Function, _arg2, _arg3:Array=null):TweenLite{
var _local4:TweenLite = new TweenLite(_arg1, 0, {onComplete:_arg1, onCompleteParams:_arg3, overwrite:0, immediateRender:false});
insert(_local4, _arg2);
return (_local4);
}
public function tweenFromTo(_arg1, _arg2, _arg3:Object=null):TweenLite{
var _local4:TweenLite = tweenTo(_arg2, _arg3);
_local4.vars.onInitParams[2] = parseTimeOrLabel(_arg1);
_local4.duration = Math.abs((Number(_local4.vars.currentTime) - _local4.vars.onInitParams[2]));
return (_local4);
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (_dispatcher != null){
_dispatcher.removeEventListener(_arg1, _arg2, _arg3);
};
}
override public function set currentTime(_arg1:Number):void{
if (_cyclesComplete == 0){
setTotalTime(_arg1, false);
} else {
if (((this.yoyo) && (((_cyclesComplete % 2) == 1)))){
setTotalTime(((this.duration - _arg1) + (_cyclesComplete * (this.cachedDuration + _repeatDelay))), false);
} else {
setTotalTime((_arg1 + (_cyclesComplete * (this.duration + _repeatDelay))), false);
};
};
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (_dispatcher == null){
initDispatcher();
};
if (_arg1 == TweenEvent.UPDATE){
_hasUpdateListener = true;
};
_dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function tweenTo(_arg1, _arg2:Object=null):TweenLite{
var _local4:String;
var _local5:TweenLite;
var _local3:Object = {ease:easeNone, overwrite:2, useFrames:this.useFrames, immediateRender:false};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
_local3.onInit = onInitTweenTo;
_local3.onInitParams = [null, this, NaN];
_local3.currentTime = parseTimeOrLabel(_arg1);
_local5 = new TweenLite(this, (((Math.abs((Number(_local3.currentTime) - this.cachedTime)) / this.cachedTimeScale)) || (0.001)), _local3);
_local5.vars.onInitParams[0] = _local5;
return (_local5);
}
public function hasEventListener(_arg1:String):Boolean{
return (((_dispatcher)==null) ? false : _dispatcher.hasEventListener(_arg1));
}
protected function initDispatcher():void{
if (_dispatcher == null){
_dispatcher = new EventDispatcher(this);
};
if ((this.vars.onStartListener is Function)){
_dispatcher.addEventListener(TweenEvent.START, this.vars.onStartListener, false, 0, true);
};
if ((this.vars.onUpdateListener is Function)){
_dispatcher.addEventListener(TweenEvent.UPDATE, this.vars.onUpdateListener, false, 0, true);
_hasUpdateListener = true;
};
if ((this.vars.onCompleteListener is Function)){
_dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true);
};
if ((this.vars.onRepeatListener is Function)){
_dispatcher.addEventListener(TweenEvent.REPEAT, this.vars.onRepeatListener, false, 0, true);
};
if ((this.vars.onReverseCompleteListener is Function)){
_dispatcher.addEventListener(TweenEvent.REVERSE_COMPLETE, this.vars.onReverseCompleteListener, false, 0, true);
};
}
public function get repeat():int{
return (_repeat);
}
public function getLabelBefore(_arg1:Number=NaN):String{
if (((!(_arg1)) && (!((_arg1 == 0))))){
_arg1 = this.cachedTime;
};
var _local2:Array = getLabelsArray();
var _local3:int = _local2.length;
while (_local3--) {
if (_local2[_local3].time < _arg1){
return (_local2[_local3].name);
};
};
return (null);
}
public function willTrigger(_arg1:String):Boolean{
return (((_dispatcher)==null) ? false : _dispatcher.willTrigger(_arg1));
}
public function get totalProgress():Number{
return ((this.cachedTotalTime / this.totalDuration));
}
public function set totalProgress(_arg1:Number):void{
setTotalTime((this.totalDuration * _arg1), false);
}
protected function getLabelsArray():Array{
var _local2:String;
var _local1:Array = [];
for (_local2 in _labels) {
_local1[_local1.length] = {time:_labels[_local2], name:_local2};
};
_local1.sortOn("time", Array.NUMERIC);
return (_local1);
}
public function removeCallback(_arg1:Function, _arg2=null):Boolean{
var _local3:Array;
var _local4:Boolean;
var _local5:int;
if (_arg2 == null){
return (killTweensOf(_arg1, false));
};
if (typeof(_arg2) == "string"){
if (!(_arg2 in _labels)){
return (false);
};
_arg2 = _labels[_arg2];
};
_local3 = getTweensOf(_arg1, false);
_local5 = _local3.length;
while (_local5--) {
if (_local3[_local5].cachedStartTime == _arg2){
remove((_local3[_local5] as TweenCore));
_local4 = true;
};
};
return (_local4);
}
public function get repeatDelay():Number{
return (_repeatDelay);
}
public function set repeatDelay(_arg1:Number):void{
_repeatDelay = _arg1;
setDirtyCache(true);
}
public function set repeat(_arg1:int):void{
_repeat = _arg1;
setDirtyCache(true);
}
override public function get totalDuration():Number{
var _local1:Number;
if (this.cacheIsDirty){
_local1 = super.totalDuration;
this.cachedTotalDuration = ((_repeat)==-1) ? 999999999999 : ((this.cachedDuration * (_repeat + 1)) + (_repeatDelay * _repeat));
};
return (this.cachedTotalDuration);
}
override public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{
super.complete(_arg1, _arg2);
if (((_dispatcher) && (!(_arg2)))){
if (((((this.cachedReversed) && ((this.cachedTotalTime == 0)))) && (!((this.cachedDuration == 0))))){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.REVERSE_COMPLETE));
} else {
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE));
};
};
}
override public function invalidate():void{
_repeat = ((this.vars.repeat) || (0));
_repeatDelay = ((this.vars.repeatDelay) || (0));
this.yoyo = ((this.vars.yoyo) || (false));
if (((((((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))) || (!((this.vars.onRepeatListener == null))))) || (!((this.vars.onReverseCompleteListener == null))))){
initDispatcher();
};
setDirtyCache(true);
super.invalidate();
}
public function getActive(_arg1:Boolean=true, _arg2:Boolean=true, _arg3:Boolean=false):Array{
var _local6:int;
var _local4:Array = [];
var _local5:Array = getChildren(_arg1, _arg2, _arg3);
var _local7:uint = _local5.length;
var _local8:uint;
_local6 = 0;
while (_local6 < _local7) {
if (TweenCore(_local5[_local6]).active){
var _temp1 = _local8;
_local8 = (_local8 + 1);
var _local9 = _temp1;
_local4[_local9] = _local5[_local6];
};
_local6++;
};
return (_local4);
}
public function getLabelAfter(_arg1:Number=NaN):String{
if (((!(_arg1)) && (!((_arg1 == 0))))){
_arg1 = this.cachedTime;
};
var _local2:Array = getLabelsArray();
var _local3:uint = _local2.length;
var _local4:int;
while (_local4 < _local3) {
if (_local2[_local4].time > _arg1){
return (_local2[_local4].name);
};
_local4++;
};
return (null);
}
private static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((_arg1 / _arg4));
}
private static function onInitTweenTo(_arg1:TweenLite, _arg2:TimelineMax, _arg3:Number):void{
_arg2.paused = true;
if (!isNaN(_arg3)){
_arg2.currentTime = _arg3;
};
_arg1.duration = Math.abs((Number(_arg1.vars.currentTime) - _arg2.currentTime));
}
}
}//package com.greensock
Section 101
//TweenLite (com.greensock.TweenLite)
package com.greensock {
import flash.display.*;
import flash.events.*;
import com.greensock.core.*;
import com.greensock.plugins.*;
import flash.utils.*;
public class TweenLite extends TweenCore {
protected var _hasPlugins:Boolean;
public var propTweenLookup:Object;
public var cachedPT1:PropTween;
protected var _overwrite:uint;
protected var _ease:Function;
public var target:Object;
public var ratio:Number;// = 0
protected var _overwrittenProps:Object;
protected var _notifyPluginsOfEnabled:Boolean;
public static const version:Number = 11.3;
public static var rootTimeline:SimpleTimeline;
public static var fastEaseLookup:Dictionary = new Dictionary(false);
public static var onPluginEvent:Function;
public static var rootFramesTimeline:SimpleTimeline;
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var masterList:Dictionary = new Dictionary(false);
public static var overwriteManager:Object;
public static var rootFrame:Number;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _shape:Shape = new Shape();
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, onInit:1, onInitParams:1, onReverseComplete:1, onReverseCompleteParams:1, onRepeat:1, onRepeatParams:1, proxiedEase:1, easeParams:1, yoyo:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, onReverseCompleteListener:1, onRepeatListener:1, orientToBezier:1, timeScale:1, immediateRender:1, repeat:1, repeatDelay:1, timeline:1, data:1, paused:1};
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local5:TweenLite;
super(_arg2, _arg3);
this.target = _arg1;
if ((((this.target is TweenCore)) && (("timeScale" in this.vars)))){
this.cachedTimeScale = 1;
};
propTweenLookup = {};
_ease = defaultEase;
_overwrite = (((!((Number(_arg3.overwrite) > -1))) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
var _local4:Array = masterList[_arg1];
if (!_local4){
masterList[_arg1] = [this];
} else {
if (_overwrite == 1){
for each (_local5 in _local4) {
if (!_local5.gc){
_local5.setEnabled(false, false);
};
};
masterList[_arg1] = [this];
} else {
_local4[_local4.length] = this;
};
};
if (((this.active) || (this.vars.immediateRender))){
renderTime(0, false, true);
};
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:Boolean;
var _local5:Number = this.cachedTime;
if (_arg1 >= this.cachedDuration){
this.cachedTotalTime = (this.cachedTime = this.cachedDuration);
this.ratio = 1;
_local4 = true;
if (this.cachedDuration == 0){
if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){
_arg3 = true;
};
_rawPrevTime = _arg1;
};
} else {
if (_arg1 <= 0){
this.cachedTotalTime = (this.cachedTime = (this.ratio = 0));
if (_arg1 < 0){
this.active = false;
if (this.cachedDuration == 0){
if (_rawPrevTime > 0){
_arg3 = true;
_local4 = true;
};
_rawPrevTime = _arg1;
};
};
if (((this.cachedReversed) && (!((_local5 == 0))))){
_local4 = true;
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
this.ratio = _ease(_arg1, 0, 1, this.cachedDuration);
};
};
if ((((this.cachedTime == _local5)) && (!(_arg3)))){
return;
};
if (!this.initted){
init();
if (((!(_local4)) && (this.cachedTime))){
this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration);
};
};
if (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
if ((((((((_local5 == 0)) && (this.vars.onStart))) && (!((this.cachedTime == 0))))) && (!(_arg2)))){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
var _local6:PropTween = this.cachedPT1;
while (_local6) {
_local6.target[_local6.property] = (_local6.start + (this.ratio * _local6.change));
_local6 = _local6.nextNode;
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local4){
if (((_hasPlugins) && (this.cachedPT1))){
onPluginEvent("onComplete", this);
};
complete(true, _arg2);
};
}
override public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
var _local3:Array;
if (_arg1){
_local3 = TweenLite.masterList[this.target];
if (!_local3){
TweenLite.masterList[this.target] = [this];
} else {
_local3[_local3.length] = this;
};
};
super.setEnabled(_arg1, _arg2);
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
return (onPluginEvent((_arg1) ? "onEnable" : "onDisable", this));
};
return (false);
}
protected function init():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:Boolean;
var _local5:Array;
var _local6:PropTween;
if (this.vars.onInit){
this.vars.onInit.apply(null, this.vars.onInitParams);
};
if (typeof(this.vars.ease) == "function"){
_ease = this.vars.ease;
};
if (this.vars.easeParams){
this.vars.proxiedEase = _ease;
_ease = easeProxy;
};
this.cachedPT1 = null;
this.propTweenLookup = {};
for (_local1 in this.vars) {
if ((((_local1 in _reservedProps)) && (!((((_local1 == "timeScale")) && ((this.target is TweenCore))))))){
} else {
if ((((_local1 in plugins)) && (new ((plugins[_local1] as Class)).onInitTween(this.target, this.vars[_local1], this)))){
this.cachedPT1 = new PropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true, this.cachedPT1);
if (this.cachedPT1.name == "_MULTIPLE_"){
_local2 = _local3.overwriteProps.length;
while (_local2--) {
this.propTweenLookup[_local3.overwriteProps[_local2]] = this.cachedPT1;
};
} else {
this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1;
};
if (_local3.priority){
this.cachedPT1.priority = _local3.priority;
_local4 = true;
};
if (((_local3.onDisable) || (_local3.onEnable))){
_notifyPluginsOfEnabled = true;
};
_hasPlugins = true;
} else {
this.cachedPT1 = new PropTween(this.target, _local1, Number(this.target[_local1]), ((typeof(this.vars[_local1]))=="number") ? (Number(this.vars[_local1]) - this.target[_local1]) : Number(this.vars[_local1]), _local1, false, this.cachedPT1);
this.propTweenLookup[_local1] = this.cachedPT1;
};
};
};
if (_local4){
onPluginEvent("onInit", this);
};
if (this.vars.runBackwards){
_local6 = this.cachedPT1;
while (_local6) {
_local6.start = (_local6.start + _local6.change);
_local6.change = -(_local6.change);
_local6 = _local6.nextNode;
};
};
_hasUpdate = Boolean(!((this.vars.onUpdate == null)));
if (_overwrittenProps){
killVars(_overwrittenProps);
if (this.cachedPT1 == null){
this.setEnabled(false, false);
};
};
if ((((((((_overwrite > 1)) && (this.cachedPT1))) && (masterList[this.target]))) && ((_local5.length > 1)))){
if (overwriteManager.manageOverwrites(this, this.propTweenLookup, _local5, _overwrite)){
init();
};
};
this.initted = true;
}
public function killVars(_arg1:Object, _arg2:Boolean=true):Boolean{
var _local3:String;
var _local4:PropTween;
var _local5:Boolean;
if (_overwrittenProps == null){
_overwrittenProps = {};
};
for (_local3 in _arg1) {
if ((_local3 in propTweenLookup)){
_local4 = propTweenLookup[_local3];
if (((_local4.isPlugin) && ((_local4.name == "_MULTIPLE_")))){
_local4.target.killProps(_arg1);
if (_local4.target.overwriteProps.length == 0){
_local4.name = "";
};
};
if (_local4.name != "_MULTIPLE_"){
if (_local4.nextNode){
_local4.nextNode.prevNode = _local4.prevNode;
};
if (_local4.prevNode){
_local4.prevNode.nextNode = _local4.nextNode;
} else {
if (this.cachedPT1 == _local4){
this.cachedPT1 = _local4.nextNode;
};
};
if (((_local4.isPlugin) && (_local4.target.onDisable))){
_local4.target.onDisable();
if (_local4.target.activeDisable){
_local5 = true;
};
};
delete propTweenLookup[_local3];
};
};
if (_arg2){
_overwrittenProps[_local3] = 1;
};
};
return (_local5);
}
override public function invalidate():void{
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
onPluginEvent("onDisable", this);
};
this.cachedPT1 = null;
_overwrittenProps = null;
_hasUpdate = (this.initted = (this.active = (_notifyPluginsOfEnabled = false)));
this.propTweenLookup = {};
}
public static function initClass():void{
rootFrame = 0;
rootTimeline = new SimpleTimeline(null);
rootFramesTimeline = new SimpleTimeline(null);
rootTimeline.cachedStartTime = (getTimer() * 0.001);
rootFramesTimeline.cachedStartTime = rootFrame;
rootTimeline.autoRemoveChildren = true;
rootFramesTimeline.autoRemoveChildren = true;
_shape.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
}
public static function killTweensOf(_arg1:Object, _arg2:Boolean=false, _arg3:Object=null):void{
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
if ((_arg1 in masterList)){
_local4 = masterList[_arg1];
_local5 = _local4.length;
while (_local5--) {
_local6 = _local4[_local5];
if (!_local6.gc){
if (_arg2){
_local6.complete(false, false);
};
if (_arg3 != null){
_local6.killVars(_arg3);
};
if ((((_arg3 == null)) || ((((_local6.cachedPT1 == null)) && (_local6.initted))))){
_local6.setEnabled(false, false);
};
};
};
if (_arg3 == null){
delete masterList[_arg1];
};
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (new TweenLite(_arg1, _arg2, _arg3));
}
protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (1 - (_arg1 / _arg4));
return ((1 - (_arg1 * _arg1)));
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0}));
}
protected static function updateAll(_arg1:Event=null):void{
var _local2:Dictionary;
var _local3:Object;
var _local4:Array;
var _local5:int;
rootTimeline.renderTime((((getTimer() * 0.001) - rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale), false, false);
rootFrame++;
rootFramesTimeline.renderTime(((rootFrame - rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale), false, false);
if (!(rootFrame % 60)){
_local2 = masterList;
for (_local3 in _local2) {
_local4 = _local2[_local3];
_local5 = _local4.length;
while (_local5--) {
if (TweenLite(_local4[_local5]).gc){
_local4.splice(_local5, 1);
};
};
if (_local4.length == 0){
delete _local2[_local3];
};
};
};
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package com.greensock
Section 102
//TweenMax (com.greensock.TweenMax)
package com.greensock {
import flash.display.*;
import flash.events.*;
import com.greensock.core.*;
import com.greensock.plugins.*;
import com.greensock.events.*;
import flash.utils.*;
public class TweenMax extends TweenLite implements IEventDispatcher {
protected var _cyclesComplete:uint;// = 0
protected var _dispatcher:EventDispatcher;
protected var _hasUpdateListener:Boolean;
protected var _easeType:uint;
protected var _repeatDelay:Number;// = 0
public var yoyo:Boolean;
protected var _easePower:uint;
protected var _repeat:int;// = 0
public static const version:Number = 11.2;
private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init(2);
;
public static var killTweensOf:Function = TweenLite.killTweensOf;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){
super(_arg1, _arg2, _arg3);
if (TweenLite.version < 11.2){
throw (new Error("TweenMax error! Please update your TweenLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com."));
};
this.yoyo = Boolean(this.vars.yoyo);
_repeat = ((this.vars.repeat) || (0));
_repeatDelay = ((this.vars.repeatDelay) || (0));
this.cacheIsDirty = true;
if (((((((((((this.vars.onCompleteListener) || (this.vars.onInitListener))) || (this.vars.onUpdateListener))) || (this.vars.onStartListener))) || (this.vars.onRepeatListener))) || (this.vars.onReverseCompleteListener))){
initDispatcher();
if ((((_arg2 == 0)) && ((_delay == 0)))){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE));
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE));
};
};
if (((("timeScale" in this.vars)) && (!((this.target is TweenCore))))){
this.cachedTimeScale = this.vars.timeScale;
};
}
public function dispatchEvent(_arg1:Event):Boolean{
return (((_dispatcher)==null) ? false : _dispatcher.dispatchEvent(_arg1));
}
public function set timeScale(_arg1:Number):void{
if (_arg1 == 0){
_arg1 = 0.0001;
};
var _local2:Number = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime;
this.cachedStartTime = (_local2 - (((_local2 - this.cachedStartTime) * this.cachedTimeScale) / _arg1));
this.cachedTimeScale = _arg1;
setDirtyCache(false);
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local6:Boolean;
var _local7:Boolean;
var _local8:Boolean;
var _local10:Number;
var _local11:uint;
var _local12:Number;
var _local4:Number = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration;
var _local5:Number = this.cachedTime;
if (_arg1 >= _local4){
this.cachedTotalTime = _local4;
this.cachedTime = this.cachedDuration;
this.ratio = 1;
_local6 = true;
if (this.cachedDuration == 0){
if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){
_arg3 = true;
};
_rawPrevTime = _arg1;
};
} else {
if (_arg1 <= 0){
if (_arg1 < 0){
this.active = false;
if (this.cachedDuration == 0){
if (_rawPrevTime > 0){
_arg3 = true;
_local6 = true;
};
_rawPrevTime = _arg1;
};
};
this.cachedTotalTime = (this.cachedTime = (this.ratio = 0));
if (((this.cachedReversed) && (!((_local5 == 0))))){
_local6 = true;
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
_local8 = true;
};
};
if (_repeat != 0){
_local10 = (this.cachedDuration + _repeatDelay);
if (_local6){
if (((this.yoyo) && ((_repeat % 2)))){
this.cachedTime = (this.ratio = 0);
};
} else {
if (_arg1 > 0){
if (_cyclesComplete != (_cyclesComplete = int((this.cachedTotalTime / _local10)))){
_local7 = true;
};
this.cachedTime = (((this.cachedTotalTime / _local10) - _cyclesComplete) * _local10);
if (((this.yoyo) && ((_cyclesComplete % 2)))){
this.cachedTime = (this.cachedDuration - this.cachedTime);
} else {
if (this.cachedTime >= this.cachedDuration){
this.cachedTime = this.cachedDuration;
this.ratio = 1;
_local8 = false;
};
};
if (this.cachedTime <= 0){
this.cachedTime = (this.ratio = 0);
_local8 = false;
};
};
};
};
if ((((_local5 == this.cachedTime)) && (!(_arg3)))){
return;
};
if (!this.initted){
init();
};
if (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
if (_local8){
if (_easeType){
_local11 = _easePower;
_local12 = (this.cachedTime / this.cachedDuration);
if (_easeType == 2){
_local12 = (1 - _local12);
this.ratio = _local12;
while (_local11--) {
this.ratio = (_local12 * this.ratio);
};
this.ratio = (1 - this.ratio);
} else {
if (_easeType == 1){
this.ratio = _local12;
while (_local11--) {
this.ratio = (_local12 * this.ratio);
};
} else {
if (_local12 < 0.5){
_local12 = (_local12 * 2);
this.ratio = _local12;
while (_local11--) {
this.ratio = (_local12 * this.ratio);
};
this.ratio = (this.ratio * 0.5);
} else {
_local12 = ((1 - _local12) * 2);
this.ratio = _local12;
while (_local11--) {
this.ratio = (_local12 * this.ratio);
};
this.ratio = (1 - (0.5 * this.ratio));
};
};
};
} else {
this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration);
};
};
if ((((((_local5 == 0)) && (!((this.cachedTotalTime == 0))))) && (!(_arg2)))){
if (this.vars.onStart){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (_dispatcher){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START));
};
};
var _local9:PropTween = this.cachedPT1;
while (_local9) {
_local9.target[_local9.property] = (_local9.start + (this.ratio * _local9.change));
_local9 = _local9.nextNode;
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (((_hasUpdateListener) && (!(_arg2)))){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE));
};
if (_local6){
if (((_hasPlugins) && (this.cachedPT1))){
onPluginEvent("onComplete", this);
};
complete(true, _arg2);
} else {
if (((_local7) && (!(_arg2)))){
if (this.vars.onRepeat){
this.vars.onRepeat.apply(null, this.vars.onRepeatParams);
};
if (_dispatcher){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.REPEAT));
};
};
};
}
override public function set totalDuration(_arg1:Number):void{
if (_repeat == -1){
return;
};
this.duration = ((_arg1 - (_repeat * _repeatDelay)) / (_repeat + 1));
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (_dispatcher == null){
initDispatcher();
};
if (_arg1 == TweenEvent.UPDATE){
_hasUpdateListener = true;
};
_dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
protected function insertPropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String, _arg6:Boolean, _arg7:PropTween):PropTween{
var _local9:Array;
var _local10:int;
var _local8:PropTween = new PropTween(_arg1, _arg2, _arg3, ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4), _arg5, _arg6, _arg7);
if (((_arg6) && ((_arg5 == "_MULTIPLE_")))){
_local9 = _arg1.overwriteProps;
_local10 = _local9.length;
while (_local10--) {
this.propTweenLookup[_local9[_local10]] = _local8;
};
} else {
this.propTweenLookup[_arg5] = _local8;
};
return (_local8);
}
override protected function init():void{
var _local1:TweenMax;
var _local2:int;
var _local3:String;
var _local4:String;
var _local5:Array;
var _local6:Object;
var _local7:PropTween;
var _local8:PropTween;
var _local9:int;
if (this.vars.startAt){
this.vars.startAt.overwrite = 0;
this.vars.startAt.immediateRender = true;
_local1 = new TweenMax(this.target, 0, this.vars.startAt);
};
if (_dispatcher){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.INIT));
};
super.init();
if ((_ease in fastEaseLookup)){
_easeType = fastEaseLookup[_ease][0];
_easePower = fastEaseLookup[_ease][1];
};
if (((!((this.vars.roundProps == null))) && (("roundProps" in TweenLite.plugins)))){
_local5 = this.vars.roundProps;
_local9 = _local5.length;
while (_local9--) {
_local3 = _local5[_local9];
_local8 = this.cachedPT1;
while (_local8) {
if (_local8.name == _local3){
if (_local8.isPlugin){
_local8.target.round = true;
} else {
if (_local6 == null){
_local6 = new TweenLite.plugins.roundProps();
_local6.add(_local8.target, _local3, _local8.start, _local8.change);
_hasPlugins = true;
_local7 = insertPropTween(_local6, "changeFactor", 0, 1, "_MULTIPLE_", true, this.cachedPT1);
this.cachedPT1 = _local7;
} else {
_local6.add(_local8.target, _local3, _local8.start, _local8.change);
};
this.removePropTween(_local8);
this.propTweenLookup[_local3] = _local7;
};
} else {
if (((((_local8.isPlugin) && ((_local8.name == "_MULTIPLE_")))) && (!(_local8.target.round)))){
_local4 = ((" " + _local8.target.overwriteProps.join(" ")) + " ");
if (_local4.indexOf(((" " + _local3) + " ")) != -1){
_local8.target.round = true;
};
};
};
_local8 = _local8.nextNode;
};
};
};
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (_dispatcher){
_dispatcher.removeEventListener(_arg1, _arg2, _arg3);
};
}
public function setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{
var _local4:Object = {};
_local4[_arg1] = _arg2;
updateTo(_local4, !(_arg3));
}
public function willTrigger(_arg1:String):Boolean{
return (((_dispatcher)==null) ? false : _dispatcher.willTrigger(_arg1));
}
public function hasEventListener(_arg1:String):Boolean{
return (((_dispatcher)==null) ? false : _dispatcher.hasEventListener(_arg1));
}
protected function initDispatcher():void{
if (_dispatcher == null){
_dispatcher = new EventDispatcher(this);
};
if ((this.vars.onInitListener is Function)){
_dispatcher.addEventListener(TweenEvent.INIT, this.vars.onInitListener, false, 0, true);
};
if ((this.vars.onStartListener is Function)){
_dispatcher.addEventListener(TweenEvent.START, this.vars.onStartListener, false, 0, true);
};
if ((this.vars.onUpdateListener is Function)){
_dispatcher.addEventListener(TweenEvent.UPDATE, this.vars.onUpdateListener, false, 0, true);
_hasUpdateListener = true;
};
if ((this.vars.onCompleteListener is Function)){
_dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true);
};
if ((this.vars.onRepeatListener is Function)){
_dispatcher.addEventListener(TweenEvent.REPEAT, this.vars.onRepeatListener, false, 0, true);
};
if ((this.vars.onReverseCompleteListener is Function)){
_dispatcher.addEventListener(TweenEvent.REVERSE_COMPLETE, this.vars.onReverseCompleteListener, false, 0, true);
};
}
public function set currentProgress(_arg1:Number):void{
if (_cyclesComplete == 0){
setTotalTime((this.duration * _arg1), false);
} else {
setTotalTime(((this.duration * _arg1) + (_cyclesComplete * this.cachedDuration)), false);
};
}
public function get totalProgress():Number{
return ((this.cachedTotalTime / this.totalDuration));
}
public function set totalProgress(_arg1:Number):void{
setTotalTime((this.totalDuration * _arg1), false);
}
protected function removePropTween(_arg1:PropTween):Boolean{
if (_arg1.nextNode){
_arg1.nextNode.prevNode = _arg1.prevNode;
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (this.cachedPT1 == _arg1){
this.cachedPT1 = _arg1.nextNode;
};
};
if (((_arg1.isPlugin) && (_arg1.target.onDisable))){
_arg1.target.onDisable();
if (_arg1.target.activeDisable){
return (true);
};
};
return (false);
}
public function get currentProgress():Number{
return ((this.cachedTime / this.duration));
}
public function get repeat():int{
return (_repeat);
}
public function updateTo(_arg1:Object, _arg2:Boolean=false):void{
var _local4:String;
var _local5:Number;
var _local6:PropTween;
var _local7:Number;
var _local3:Number = this.ratio;
if (((((_arg2) && (!((this.timeline == null))))) && ((this.cachedStartTime < this.timeline.cachedTime)))){
this.cachedStartTime = this.timeline.cachedTime;
this.setDirtyCache(false);
if (this.gc){
this.setEnabled(true, false);
} else {
this.timeline.addChild(this);
};
};
for (_local4 in _arg1) {
this.vars[_local4] = _arg1[_local4];
};
if (this.initted){
this.initted = false;
if (!_arg2){
init();
if (((((!(_arg2)) && ((this.cachedTime > 0)))) && ((this.cachedTime < this.cachedDuration)))){
_local5 = (1 / (1 - _local3));
_local6 = this.cachedPT1;
while (_local6) {
_local7 = (_local6.start + _local6.change);
_local6.change = (_local6.change * _local5);
_local6.start = (_local7 - _local6.change);
_local6 = _local6.nextNode;
};
};
};
};
}
override public function set currentTime(_arg1:Number):void{
if (_cyclesComplete == 0){
} else {
if (((this.yoyo) && (((_cyclesComplete % 2) == 1)))){
_arg1 = ((this.duration - _arg1) + (_cyclesComplete * (this.cachedDuration + _repeatDelay)));
} else {
_arg1 = (_arg1 + (_cyclesComplete * (this.duration + _repeatDelay)));
};
};
setTotalTime(_arg1, false);
}
public function get repeatDelay():Number{
return (_repeatDelay);
}
public function killProperties(_arg1:Array):void{
var _local2:Object = {};
var _local3:int = _arg1.length;
while (_local3--) {
_local2[_arg1[_local3]] = true;
};
killVars(_local2);
}
public function set repeatDelay(_arg1:Number):void{
_repeatDelay = _arg1;
setDirtyCache(true);
}
public function set repeat(_arg1:int):void{
_repeat = _arg1;
setDirtyCache(true);
}
override public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{
super.complete(_arg1, _arg2);
if (((!(_arg2)) && (_dispatcher))){
if ((((this.cachedTotalTime == this.cachedTotalDuration)) && (!(this.cachedReversed)))){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE));
} else {
if (((this.cachedReversed) && ((this.cachedTotalTime == 0)))){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.REVERSE_COMPLETE));
};
};
};
}
override public function invalidate():void{
this.yoyo = Boolean((this.vars.yoyo == true));
_repeat = ((this.vars.repeat) || (0));
_repeatDelay = ((this.vars.repeatDelay) || (0));
_hasUpdateListener = false;
if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){
initDispatcher();
};
setDirtyCache(true);
super.invalidate();
}
public function get timeScale():Number{
return (this.cachedTimeScale);
}
override public function get totalDuration():Number{
if (this.cacheIsDirty){
this.cachedTotalDuration = ((_repeat)==-1) ? 999999999999 : ((this.cachedDuration * (_repeat + 1)) + (_repeatDelay * _repeat));
this.cacheIsDirty = false;
};
return (this.cachedTotalDuration);
}
public static function set globalTimeScale(_arg1:Number):void{
if (_arg1 == 0){
_arg1 = 0.0001;
};
if (TweenLite.rootTimeline == null){
TweenLite.to({}, 0, {});
};
var _local2:SimpleTimeline = TweenLite.rootTimeline;
var _local3:Number = (getTimer() * 0.001);
_local2.cachedStartTime = (_local3 - (((_local3 - _local2.cachedStartTime) * _local2.cachedTimeScale) / _arg1));
_local2 = TweenLite.rootFramesTimeline;
_local3 = TweenLite.rootFrame;
_local2.cachedStartTime = (_local3 - (((_local3 - _local2.cachedStartTime) * _local2.cachedTimeScale) / _arg1));
TweenLite.rootFramesTimeline.cachedTimeScale = (TweenLite.rootTimeline.cachedTimeScale = _arg1);
}
public static function fromTo(_arg1:Object, _arg2:Number, _arg3:Object, _arg4:Object):TweenMax{
_arg4.startAt = _arg3;
if (_arg3.immediateRender){
_arg4.immediateRender = true;
};
return (new TweenMax(_arg1, _arg2, _arg4));
}
public static function allFromTo(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Object, _arg5:Number=0, _arg6:Function=null, _arg7:Array=null):Array{
_arg4.startAt = _arg3;
if (_arg3.immediateRender){
_arg4.immediateRender = true;
};
return (allTo(_arg1, _arg2, _arg4, _arg5, _arg6, _arg7));
}
public static function pauseAll(_arg1:Boolean=true, _arg2:Boolean=true):void{
changePause(true, _arg1, _arg2);
}
public static function getTweensOf(_arg1:Object):Array{
var _local4:int;
var _local5:uint;
var _local2:Array = masterList[_arg1];
var _local3:Array = [];
if (_local2){
_local4 = _local2.length;
_local5 = 0;
while (_local4--) {
if (!_local2[_local4].gc){
var _temp1 = _local5;
_local5 = (_local5 + 1);
var _local6 = _temp1;
_local3[_local6] = _local2[_local4];
};
};
};
return (_local3);
}
public static function get globalTimeScale():Number{
return (((TweenLite.rootTimeline)==null) ? 1 : TweenLite.rootTimeline.cachedTimeScale);
}
public static function killChildTweensOf(_arg1:DisplayObjectContainer, _arg2:Boolean=false):void{
var _local4:Object;
var _local5:DisplayObjectContainer;
var _local3:Array = getAllTweens();
var _local6:int = _local3.length;
while (_local6--) {
_local4 = _local3[_local6].target;
if ((_local4 is DisplayObject)){
_local5 = _local4.parent;
while (_local5) {
if (_local5 == _arg1){
if (_arg2){
_local3[_local6].complete(false);
} else {
_local3[_local6].setEnabled(false, false);
};
};
_local5 = _local5.parent;
};
};
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenMax{
return (new TweenMax(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0}));
}
public static function isTweening(_arg1:Object):Boolean{
var _local4:TweenLite;
var _local2:Array = getTweensOf(_arg1);
var _local3:int = _local2.length;
while (_local3--) {
_local4 = _local2[_local3];
if (((_local4.active) || ((((_local4.cachedStartTime == _local4.timeline.cachedTime)) && (_local4.timeline.active))))){
return (true);
};
};
return (false);
}
public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true, _arg3:Boolean=true):void{
var _local5:Boolean;
var _local4:Array = getAllTweens();
var _local6:int = _local4.length;
while (_local6--) {
_local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete);
if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){
if (_arg1){
_local4[_local6].complete(false);
} else {
_local4[_local6].setEnabled(false, false);
};
};
};
}
private static function changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false):void{
var _local5:Boolean;
var _local4:Array = getAllTweens();
var _local6:int = _local4.length;
while (_local6--) {
_local5 = (TweenLite(_local4[_local6]).target == TweenLite(_local4[_local6]).vars.onComplete);
if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){
TweenCore(_local4[_local6]).paused = _arg1;
};
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function allFrom(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Number=0, _arg5:Function=null, _arg6:Array=null):Array{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (allTo(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6));
}
public static function getAllTweens():Array{
var _local4:Array;
var _local5:int;
var _local1:Dictionary = masterList;
var _local2:uint;
var _local3:Array = [];
for each (_local4 in _local1) {
_local5 = _local4.length;
while (_local5--) {
if (!TweenLite(_local4[_local5]).gc){
var _temp1 = _local2;
_local2 = (_local2 + 1);
var _local8 = _temp1;
_local3[_local8] = _local4[_local5];
};
};
};
return (_local3);
}
public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=true):void{
changePause(false, _arg1, _arg2);
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function allTo(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Number=0, _arg5:Function=null, _arg6:Array=null):Array{
var i:int;
var varsDup:Object;
var p:String;
var onCompleteProxy:Function;
var onCompleteParamsProxy:Array;
var targets = _arg1;
var duration = _arg2;
var vars = _arg3;
var stagger = _arg4;
var onCompleteAll = _arg5;
var onCompleteAllParams = _arg6;
var l:uint = targets.length;
var a:Array = [];
var curDelay:Number = ((vars.delay) || (0));
onCompleteProxy = vars.onComplete;
onCompleteParamsProxy = vars.onCompleteParams;
var lastIndex:int = ((stagger)<=0) ? 0 : (l - 1);
i = 0;
while (i < l) {
varsDup = {};
for (p in vars) {
varsDup[p] = vars[p];
};
varsDup.delay = curDelay;
if ((((i == lastIndex)) && (!((onCompleteAll == null))))){
varsDup.onComplete = function ():void{
if (onCompleteProxy != null){
onCompleteProxy.apply(null, onCompleteParamsProxy);
};
onCompleteAll.apply(null, onCompleteAllParams);
};
};
a[a.length] = new TweenMax(targets[i], duration, varsDup);
curDelay = (curDelay + stagger);
i = (i + 1);
};
return (a);
}
TweenPlugin.activate([AutoAlphaPlugin, EndArrayPlugin, FramePlugin, RemoveTintPlugin, TintPlugin, VisiblePlugin, VolumePlugin, BevelFilterPlugin, BezierPlugin, BezierThroughPlugin, BlurFilterPlugin, ColorMatrixFilterPlugin, ColorTransformPlugin, DropShadowFilterPlugin, FrameLabelPlugin, GlowFilterPlugin, HexColorsPlugin, RoundPropsPlugin, ShortRotationPlugin, {}]);
}
}//package com.greensock
Section 103
//SpilGamesServices (com.spilgames.api.SpilGamesServices)
package com.spilgames.api {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.system.*;
public class SpilGamesServices extends MovieClip {
private var _connected:Boolean;// = false
private var ERR_LOADCOMP:String;// = "Failed to load Spil Social Component."
private var _loader:Loader;
private var ERR_DOWNLOAD:String;// = "Failed downloading Spil Games Social configurator component."
private var _connecting:Boolean;// = false
private var DEFAULT_CONNECTION_LOCATION:String;// = "http://www8.agame.com/games/flash/services/ServicesConnection.swf"
private var ERR_INITCOMP:String;// = "Failed to communication with a Spil Social Component."
private var ERR_SPILCALL:String;// = "Failed processing a Spil call."
private var ERR_NOPARENT:String;// = "Failed creating Spil Games connector: No parent provided."
private var _showDebug:Boolean;// = false
private var _servicesConnection;// = null
private var _alwaysInFront:Boolean;// = false
public static const INVALID_TYPE:int = -1;
public static const INVALID_ID:int = -1;
private static var _instance:SpilGamesServices = null;
public function SpilGamesServices(){
if (_instance){
throw (new Error("Only a single instance can be created."));
};
_instance = this;
}
private function handleServicesFailed(_arg1:ErrorEvent):void{
_servicesConnection.removeEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.removeEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.removeEventListener("serviceError", handleServiceError);
_servicesConnection = null;
if (hasEventListener("servicesFailed")){
dispatchEvent(new ErrorEvent("servicesFailed", false, false, _arg1.text));
};
}
private function handleLoadComplete(_arg1:Event):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_servicesConnection = LoaderInfo(_arg1.target).content;
_servicesConnection.addEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.addEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.addEventListener("serviceError", handleServiceError);
addChild(_servicesConnection);
}
public function send(_arg1:String, _arg2:String, _arg3:Function, _arg4:Object=null):int{
if (_connected){
return (_servicesConnection.send(_arg1, _arg2, _arg3, _arg4));
};
return (INVALID_ID);
}
public function get connected():Boolean{
return (_connected);
}
public function showErrorMessage(_arg1:String):void{
if (((_servicesConnection) && (_servicesConnection.hasOwnProperty("showErrorMessage")))){
_servicesConnection.showErrorMessage(_arg1);
};
}
public function isSWFReady():Boolean{
return (isReady());
}
public function getSiteID():int{
if (_servicesConnection != null){
return (_servicesConnection.getSiteID());
};
return (INVALID_ID);
}
public function isReady():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isReady())));
}
private function handleServiceError(_arg1:Event):void{
var _local2 = "";
if ((_arg1 is ErrorEvent)){
_local2 = ErrorEvent(_arg1).text;
} else {
_local2 = _arg1.toString();
};
if (hasEventListener("serviceError")){
dispatchEvent(new ErrorEvent("serviceError", false, false, _local2));
};
}
public function disconnect():void{
if (_connected){
_servicesConnection.removeEventListener();
_servicesConnection.removeEventListener();
_servicesConnection.removeEventListener();
_servicesConnection.disconnect();
_servicesConnection = null;
};
if (_loader){
try {
_loader.close();
} catch(e:Error) {
} finally {
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
};
};
removeEventListener(Event.ENTER_FRAME, bringToFront);
if (parent){
parent.removeChild(this);
};
}
private function handleServicesReady(_arg1:Event):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_connected = true;
_connecting = false;
dispatchEvent(new Event("servicesReady"));
}
public function getChannelID():int{
if (_servicesConnection != null){
return (_servicesConnection.getChannelID());
};
return (INVALID_ID);
}
public function set showDebug(_arg1:Boolean):void{
if (_showDebug != _arg1){
_showDebug = _arg1;
if (_showDebug){
bringToFront();
};
};
}
public function hasValidUserData():Boolean{
return (isGuest());
}
public function isDomainAllowed():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isDomainValid())));
}
public function isGuest():Boolean{
var _local1:Object;
if (_servicesConnection != null){
return (_servicesConnection.isGuest());
};
trace("WARNING: SpilGamesServices connection not ready yet");
if (root.loaderInfo != null){
_local1 = root.loaderInfo.parameters;
return (((((((!(_local1.username)) || ((_local1.username == "")))) || (!(_local1.hash)))) || ((_local1.hash == ""))));
};
return (false);
}
public function get showDebug():Boolean{
return (_showDebug);
}
private function handleIOError(_arg1:IOErrorEvent):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
if (hasEventListener(_arg1.type)){
dispatchEvent(_arg1);
};
}
public function getItemType():int{
if (_servicesConnection != null){
return (_servicesConnection.getItemType());
};
return (INVALID_TYPE);
}
public function set alwaysInFront(_arg1:Boolean):void{
if (_alwaysInFront != _arg1){
_alwaysInFront = _arg1;
if (_alwaysInFront){
addEventListener(Event.ENTER_FRAME, bringToFront);
} else {
removeEventListener(Event.ENTER_FRAME, bringToFront);
};
};
}
public function getItemID():int{
if (_servicesConnection != null){
return (_servicesConnection.getItemID());
};
return (INVALID_ID);
}
public function getUserName():String{
if (_servicesConnection != null){
return (_servicesConnection.getUserName());
};
return ("");
}
public function allowDomain(_arg1:String):void{
Security.allowDomain("*");
Security.allowInsecureDomain("*");
}
public function getUserHash():String{
if (_servicesConnection != null){
return (_servicesConnection.getUserHash());
};
return ("");
}
public function connect(_arg1:DisplayObjectContainer):void{
var _local2:String;
var _local3:URLRequest;
if (((!(_connecting)) && (!(_connected)))){
if (!_arg1.stage){
trace("ERROR: The given clip must be present in the display list (added to stage)");
return;
};
_connecting = true;
_arg1.stage.addChild(this);
_local2 = DEFAULT_CONNECTION_LOCATION;
if (((root.loaderInfo.parameters["servicesLoc"]) && ((root.loaderInfo.parameters["servicesLoc"].length > 0)))){
_local2 = root.loaderInfo.parameters["servicesLoc"];
};
allowDomain(_local2);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_local3 = new URLRequest(_local2);
_loader.load(_local3);
};
}
public function get alwaysInFront():Boolean{
return (_alwaysInFront);
}
public function bringToFront(_arg1:Event=null):void{
var e = _arg1;
if (parent){
try {
parent.setChildIndex(this, (parent.numChildren - 1));
} catch(e:Error) {
removeEventListener(Event.ENTER_FRAME, bringToFront);
};
};
}
public static function getInstance():SpilGamesServices{
if (!_instance){
_instance = new (SpilGamesServices);
};
return (_instance);
}
}
}//package com.spilgames.api
Section 104
//SysConfig (com.zlonggames.differentfinder.config.SysConfig)
package com.zlonggames.differentfinder.config {
import flash.events.*;
import flash.display.*;
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 = 24;
public static var SW:Number;
public static var likeRootCon:Sprite;
public static var Y_mc_parentGameView:Number = 33;
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 105
//HintCommand (com.zlonggames.differentfinder.control.viewcharacter.concrete.HintCommand)
package com.zlonggames.differentfinder.control.viewcharacter.concrete {
import com.zlonggames.differentfinder.control.viewcharacter.*;
public class HintCommand implements ICommandItem {
private var _receiver:IReceiverItem;
public function HintCommand(_arg1:IReceiverItem){
_receiver = _arg1;
execute();
}
public function init():void{
}
public function execute():void{
_receiver.execute();
}
public function destroy():void{
_receiver.destroy();
}
}
}//package com.zlonggames.differentfinder.control.viewcharacter.concrete
Section 106
//HintReceiver (com.zlonggames.differentfinder.control.viewcharacter.concrete.HintReceiver)
package com.zlonggames.differentfinder.control.viewcharacter.concrete {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.zlonggames.differentfinder.customevt.*;
import com.zlonggames.differentfinder.control.viewcharacter.*;
import com.zlonggames.differentfinder.control.viewcharacter.movie.*;
import utils.*;
import zlong.breathxue.utils.*;
public class HintReceiver implements IReceiverItem {
private var _background:Sprite;
private var _hintIcon:MovieClip;
public function HintReceiver(_arg1:Sprite){
_background = _arg1;
_hintIcon = _background["hints"];
_hintIcon.gotoAndStop(1);
}
private function toAddEventListener():void{
_hintIcon.addEventListener(MouseEvent.CLICK, hintTip);
_background.addEventListener(RandomFinderEvent.Random_Finder_Type, hintTipHandler);
}
private function toRemoveEventListener():void{
_hintIcon.removeEventListener(MouseEvent.CLICK, hintTip);
_background.removeEventListener(RandomFinderEvent.Random_Finder_Type, hintTipHandler);
}
private function hintTip(_arg1:MouseEvent):void{
_hintIcon.dispatchEvent(new LabelListenerEvent(LabelListenerEvent.Hint_Finder_Tip_Listener, true));
_hintIcon.dispatchEvent(new LabelListenerEvent(LabelListenerEvent.Hint_Tip_TOScore_Listener, true));
}
public function execute():void{
toAddEventListener();
}
private function hintTipHandler(_arg1:RandomFinderEvent):void{
var _local2:Sprite = _arg1.tipFinder;
if (_local2.name.charAt((_local2.name.length - 1)) == "b"){
_local2 = Sprite(_local2.parent.getChildByName((_local2.name.substring(0, (_local2.name.length - 1)) + "a")));
};
new CharMovie(Sprite(_local2.parent), Attach.getMovieClip("MinusTen"), (_local2.x + (_local2.width / 2)), (_local2.y + (_local2.height / 2)));
Tools.findObjectByName(_local2.parent, "TipChar");
var _local3:Sprite = Tools.findObjectByName["TipChar"];
if (_local3){
_local3.parent.removeChild(_local3);
Tools.removeDisplayList(_local3);
_local3 = null;
};
_local3 = Attach.getMovieClip("TipChar");
_local3.name = "TipChar";
var _local4:Rectangle = _local2.getRect(_local2.parent);
_local3.x = ((_local4.x + (_local2.width / 2)) - _local2.x);
_local3.y = ((_local4.y + (_local2.height / 2)) - _local2.y);
_local2.addChild(_local3);
Tools.findObjectByName["TipChar"] = null;
}
public function destroy():void{
toRemoveEventListener();
}
}
}//package com.zlonggames.differentfinder.control.viewcharacter.concrete
Section 107
//PauseCommand (com.zlonggames.differentfinder.control.viewcharacter.concrete.PauseCommand)
package com.zlonggames.differentfinder.control.viewcharacter.concrete {
import com.zlonggames.differentfinder.control.viewcharacter.*;
public class PauseCommand implements ICommandItem {
private var _receiver:IReceiverItem;
public function PauseCommand(_arg1:IReceiverItem){
_receiver = _arg1;
execute();
}
public function init():void{
}
public function execute():void{
_receiver.execute();
}
public function destroy():void{
_receiver.destroy();
}
}
}//package com.zlonggames.differentfinder.control.viewcharacter.concrete
Section 108
//PauseReceiver (com.zlonggames.differentfinder.control.viewcharacter.concrete.PauseReceiver)
package com.zlonggames.differentfinder.control.viewcharacter.concrete {
import flash.display.*;
import flash.events.*;
import com.zlonggames.differentfinder.customevt.*;
import com.zlonggames.differentfinder.control.viewcharacter.*;
import com.zlonggames.differentfinder.control.viewcharacter.movie.*;
import utils.*;
import zlong.breathxue.utils.*;
import com.zlonggames.differentfinder.config.*;
public class PauseReceiver implements IReceiverItem {
private var _pauseBtn:MovieClip;
private var _backtogameBtn:MovieClip;
private var _background:Sprite;
private var _quitBtn:MovieClip;
private var _mc_pauseImg:Sprite;
public function PauseReceiver(_arg1:Sprite){
_background = _arg1;
_pauseBtn = _background["btn_pause"];
}
public function destroy():void{
toRemoveEventListener();
if (_mc_pauseImg){
SysConfig.likeRootCon.removeChild(_mc_pauseImg);
Tools.removeDisplayList(_mc_pauseImg);
_mc_pauseImg = null;
};
}
private function toAddEventListener():void{
_pauseBtn.addEventListener(MouseEvent.CLICK, pauseHandler);
}
private function toRemoveEventListener():void{
_pauseBtn.removeEventListener(MouseEvent.CLICK, pauseHandler);
if (_backtogameBtn){
_backtogameBtn.removeEventListener(MouseEvent.CLICK, backtogameHandler);
};
}
private function quitGame(_arg1:MouseEvent):void{
destorySound();
_quitBtn.removeEventListener(MouseEvent.CLICK, quitGame);
_quitBtn.dispatchEvent(new LabelListenerEvent(LabelListenerEvent.QUIT_Game_Listener));
}
private function pauseHandler(_arg1:MouseEvent):void{
_pauseBtn.removeEventListener(MouseEvent.CLICK, pauseHandler);
_mc_pauseImg = Attach.getSprite("MC_LM_pause");
_mc_pauseImg.name = SysConfig.MC_Quit_Pause;
CharSound.getInstance().setIcon(_mc_pauseImg);
var _local2:int = SysConfig.likeRootCon.getChildIndex(SysConfig.likeRootCon.getChildByName(SysConfig.MC_Mouse_Icon_Name));
SysConfig.likeRootCon.addChildAt(_mc_pauseImg, _local2);
_backtogameBtn = _mc_pauseImg["btn_backtogame"];
_backtogameBtn.addEventListener(MouseEvent.CLICK, backtogameHandler);
_quitBtn = _mc_pauseImg["btn_quit"];
_quitBtn.addEventListener(MouseEvent.CLICK, quitGame);
_backtogameBtn.addEventListener(MouseEvent.CLICK, SysConfig.soundClick);
_quitBtn.addEventListener(MouseEvent.CLICK, SysConfig.soundClick);
_backtogameBtn.addEventListener(MouseEvent.ROLL_OVER, SysConfig.soundMove);
_quitBtn.addEventListener(MouseEvent.ROLL_OVER, SysConfig.soundMove);
_mc_pauseImg["btn_moregame"].addEventListener(MouseEvent.CLICK, SysConfig.soundClick);
_mc_pauseImg["btn_moregame"].addEventListener(MouseEvent.ROLL_OVER, SysConfig.soundMove);
}
public function execute():void{
toAddEventListener();
}
private function backtogameHandler(_arg1:MouseEvent):void{
destorySound();
_backtogameBtn.removeEventListener(MouseEvent.CLICK, backtogameHandler);
SysConfig.likeRootCon.removeChild(_mc_pauseImg);
Tools.removeDisplayList(_mc_pauseImg);
_mc_pauseImg = null;
toAddEventListener();
}
private function destorySound():void{
_backtogameBtn.removeEventListener(MouseEvent.CLICK, SysConfig.soundClick);
_quitBtn.removeEventListener(MouseEvent.CLICK, SysConfig.soundClick);
_backtogameBtn.removeEventListener(MouseEvent.ROLL_OVER, SysConfig.soundMove);
_quitBtn.removeEventListener(MouseEvent.ROLL_OVER, SysConfig.soundMove);
_mc_pauseImg["btn_moregame"].removeEventListener(MouseEvent.CLICK, SysConfig.soundClick);
_mc_pauseImg["btn_moregame"].removeEventListener(MouseEvent.ROLL_OVER, SysConfig.soundMove);
}
}
}//package com.zlonggames.differentfinder.control.viewcharacter.concrete
Section 109
//ScoreCommand (com.zlonggames.differentfinder.control.viewcharacter.concrete.ScoreCommand)
package com.zlonggames.differentfinder.control.viewcharacter.concrete {
import com.zlonggames.differentfinder.control.viewcharacter.*;
public class ScoreCommand implements ICommandItem {
private var _receiver:IReceiverItem;
public function ScoreCommand(_arg1:IReceiverItem){
_receiver = _arg1;
execute();
}
public function init():void{
}
public function execute():void{
_receiver.execute();
}
public function destroy():void{
_receiver.destroy();
}
}
}//package com.zlonggames.differentfinder.control.viewcharacter.concrete
Section 110
//ScoreReceiver (com.zlonggames.differentfinder.control.viewcharacter.concrete.ScoreReceiver)
package com.zlonggames.differentfinder.control.viewcharacter.concrete {
import flash.display.*;
import com.greensock.*;
import flash.events.*;
import com.zlonggames.differentfinder.customevt.*;
import com.zlonggames.differentfinder.model.*;
import com.zlonggames.differentfinder.control.viewcharacter.*;
import com.zlonggames.differentfinder.control.viewcharacter.movie.*;
import utils.*;
import zlong.breathxue.utils.*;
import flash.text.*;
import com.greensock.easing.*;
import com.zlonggames.differentfinder.config.*;
public class ScoreReceiver implements IReceiverItem {
private var _scoretxt:TextField;
private var _mc_score:Sprite;
private var animationPlaying:Boolean;
private var lightCon:MovieClip;
private var _background:Sprite;
private var _score:Score;
private var _rightFinded:MovieClip;
private var _plus5:MovieClip;
private var _l:MovieClip;
private var _currFindedNum:int;// = 0
public function ScoreReceiver(_arg1:Sprite){
_score = Score.getInstance();
_background = _arg1;
_mc_score = _background["MC_LM_score"];
_scoretxt = _background["score_text"];
_scoretxt.text = "0";
lightCon = _background[("light" + _currFindedNum)];
while (lightCon) {
_currFindedNum++;
lightCon.stop();
lightCon = _background[("light" + _currFindedNum)];
if (_currFindedNum == SysConfig.Finder_Num){
_currFindedNum = 0;
break;
};
};
}
public function destroy():void{
var _local1:Sprite = Tools.findObjectByName[SysConfig.MC_GameView_NAME];
_local1.removeEventListener(MouseEvent.CLICK, scoreHandler, true);
_score.removeEventListener(LabelListenerEvent.Zero_Score_Decrease_Type, zeroDecrease);
_background.removeEventListener(LabelListenerEvent.Hint_Tip_TOScore_Listener, hintScoreHandler);
}
private function zeroDecreaseCompleteHandler():void{
_scoretxt.textColor = 16465018;
animationPlaying = false;
}
private function move():void{
_l.stop();
var _local1:MovieClip = _l["mc_light"];
_local1.play();
_local1.addFrameScript((_local1.totalFrames - 1), _local1.stop);
}
private function scoreHandler(_arg1:MouseEvent):void{
var _local2:Sprite = Sprite(_arg1.target);
if (_local2.name == SysConfig.UI_GameImage){
new CharMovie(SysConfig.likeRootCon, Attach.getMovieClip("MinusFive"), (_arg1.stageX / SysConfig.ScaleValue), (_arg1.stageY / SysConfig.ScaleValue));
_score.decNormal();
_scoretxt.text = _score.myScore;
} else {
if (((!((_local2.name.indexOf("diff") == -1))) && (!((_local2["state"] == 1))))){
if (_currFindedNum == SysConfig.Finder_Num){
_currFindedNum = 0;
};
lightPlay();
new CharMovie(Tools.findObjectByName[SysConfig.MC_GameView_NAME].parent, Attach.getMovieClip("RightFinded"), (_arg1.stageX / SysConfig.ScaleValue), (_arg1.stageY / SysConfig.ScaleValue));
new CharMovie(Tools.findObjectByName[SysConfig.MC_GameView_NAME].parent, Attach.getMovieClip("PlusFive"), (_arg1.stageX / SysConfig.ScaleValue), (_arg1.stageY / SysConfig.ScaleValue));
_score.incNormal();
_scoretxt.text = _score.myScore;
} else {
if (_local2.name.indexOf("diff") != -1){
new CharMovie(SysConfig.likeRootCon, Attach.getMovieClip("MinusFive"), (_arg1.stageX / SysConfig.ScaleValue), (_arg1.stageY / SysConfig.ScaleValue));
_score.decNormal();
_scoretxt.text = _score.myScore;
} else {
trace("玩家分数点击时,发生了未预料的错误.");
};
};
};
}
private function lightPlay():void{
_l = MovieClip(_background[("light" + _currFindedNum++)]);
_l.gotoAndPlay(2);
_l.addFrameScript(1, move);
}
public function quitHandler():void{
_score.reSet();
_scoretxt.text = _score.myScore;
_currFindedNum = (SysConfig.Finder_Num - 1);
var _local1:MovieClip = _background[("light" + _currFindedNum)];
while (_local1) {
_currFindedNum--;
_local1.gotoAndStop(1);
_local1 = _background[("light" + _currFindedNum)];
};
_currFindedNum = 0;
}
public function execute():void{
Tools.findObjectByName(SysConfig.likeRootCon, SysConfig.MC_GameView_NAME);
var _local1:Sprite = Tools.findObjectByName[SysConfig.MC_GameView_NAME];
_local1.addEventListener(MouseEvent.CLICK, scoreHandler, true);
_score.addEventListener(LabelListenerEvent.Zero_Score_Decrease_Type, zeroDecrease);
_background.addEventListener(LabelListenerEvent.Hint_Tip_TOScore_Listener, hintScoreHandler);
}
private function zeroDecrease(_arg1:LabelListenerEvent):void{
var _local2:int;
var _local3:TimelineMax;
if (!animationPlaying){
animationPlaying = true;
_scoretxt.textColor = 0;
_local2 = _mc_score.x;
_local3 = new TimelineMax({onComplete:zeroDecreaseCompleteHandler});
_local3.append(new TweenMax(_mc_score, 0.05, {x:(_local2 - 10), ease:RoughEase.create(1, 20, false, Sine.easeOut)}));
_local3.append(new TweenMax(_mc_score, 0.05, {x:(_local2 + 10), ease:RoughEase.create(1, 20, false, Sine.easeOut)}));
_local3.append(new TweenMax(_mc_score, 0.05, {x:(_local2 - 7), ease:RoughEase.create(1, 20, false, Sine.easeOut)}));
_local3.append(new TweenMax(_mc_score, 0.05, {x:(_local2 + 7), ease:RoughEase.create(1, 20, false, Sine.easeOut)}));
_local3.append(new TweenMax(_mc_score, 0.05, {x:(_local2 - 5), ease:RoughEase.create(1, 20, false, Sine.easeOut)}));
_local3.append(new TweenMax(_mc_score, 0.05, {x:_local2, ease:RoughEase.create(1, 20, false, Sine.easeOut)}));
};
}
private function hintScoreHandler(_arg1:LabelListenerEvent):void{
_score.decSpecial();
_scoretxt.text = _score.myScore;
}
}
}//package com.zlonggames.differentfinder.control.viewcharacter.concrete
Section 111
//tweenCommand (com.zlonggames.differentfinder.control.viewcharacter.concrete.tweenCommand)
package com.zlonggames.differentfinder.control.viewcharacter.concrete {
import flash.display.*;
import com.zlonggames.differentfinder.control.viewcharacter.*;
import com.zlonggames.differentfinder.config.*;
public class tweenCommand implements ICommandItem {
private var _switch:Boolean;// = true
private var _receiver:IReceiverItem;
public function tweenCommand(_arg1:IReceiverItem){
_receiver = _arg1;
}
public function init():void{
_switch = true;
}
public function destroy():void{
_switch = false;
}
public function execute():void{
if (((_switch) || (SysConfig.Pause_Flag))){
_receiver.execute();
};
}
public function playTween(_arg1:Sprite):void{
tweenReceiver(_receiver).newestShow = _arg1;
execute();
}
public function set showName(_arg1:String):void{
tweenReceiver(_receiver).showName = _arg1;
}
}
}//package com.zlonggames.differentfinder.control.viewcharacter.concrete
Section 112
//tweenReceiver (com.zlonggames.differentfinder.control.viewcharacter.concrete.tweenReceiver)
package com.zlonggames.differentfinder.control.viewcharacter.concrete {
import flash.display.*;
import com.greensock.*;
import flash.events.*;
import com.zlonggames.differentfinder.customevt.*;
import com.zlonggames.differentfinder.view.*;
import com.zlonggames.differentfinder.control.viewcharacter.*;
import utils.*;
import com.zlonggames.differentfinder.control.viewCore.concrete.*;
import flash.utils.*;
import com.greensock.easing.*;
import com.zlonggames.differentfinder.config.*;
public class tweenReceiver implements IReceiverItem {
private var _currLightNum:int;
private var _showName:String;
private var _gameoverFunc:Function;
private var _background:Sprite;
private var _tempShow:Sprite;
private var _charOverDestroy:Function;
private var Show_Name:String;// = "showName"
private var _gameView:Sprite;
private var _intervalId:uint;
private var _newestShow:Sprite;
private var _lightCon:MovieClip;
private var removeAllChild:Function;
private var _frameNum:int;// = 0
public function tweenReceiver(_arg1:Sprite, _arg2:String){
removeAllChild = function (_arg1:Sprite):void{
var _local2:int = containSprite(_arg1);
if (_local2 != -1){
_arg1.removeChildAt(_local2);
removeAllChild(_arg1);
} else {
removeAllChild[Show_Name] = _arg1;
};
};
super();
_background = _arg1;
_showName = _arg2;
}
public function set newestShow(_arg1:Sprite):void{
_newestShow = _arg1;
}
public function set showName(_arg1:String):void{
_showName = _arg1;
}
private function delayJointover():void{
clearTimeout(_intervalId);
_tempShow.cacheAsBitmap = true;
TweenMax.to(_tempShow, ((44 / SysConfig.stage.frameRate) / 2), {autoAlpha:0, ease:Linear.easeNone});
_newestShow.visible = true;
_background.addEventListener(Event.ENTER_FRAME, tweenHandler);
}
private function tweenHandler(_arg1:Event):void{
var _local2:Sprite;
var _local3:MovieClip;
var _local4:int;
if (_frameNum == 0){
SoundsManager.instance.playSound("open_curtain.wav", 1);
};
_frameNum++;
if (_frameNum == 22){
_gameView.removeChild(_tempShow);
_tempShow = null;
_showName = getQualifiedClassName(_newestShow);
_newestShow.visible = true;
_gameView.parent.dispatchEvent(new LabelListenerEvent(LabelListenerEvent.NOTICE_TOHIDE_FLOWER));
_lightCon = _background[("light" + _currLightNum)];
while (_lightCon) {
_currLightNum++;
_lightCon.gotoAndStop(1);
_lightCon = _background[("light" + _currLightNum)];
if (_currLightNum == SysConfig.Finder_Num){
_currLightNum = 0;
break;
};
};
Tools.findObjectByName(_background.parent, SysConfig.MC_Flower_Name);
_local2 = Tools.findObjectByName[SysConfig.MC_Flower_Name];
_local3 = _local2["mc_drama"];
_local4 = XMLDataControl.getCurrIdIndex(Main_GameView._currId);
_local3.gotoAndStop((_local4 + 1));
};
if (_frameNum == 44){
_background.removeEventListener(Event.ENTER_FRAME, tweenHandler);
_frameNum = 0;
_gameView.parent.dispatchEvent(new LabelListenerEvent(LabelListenerEvent.NOTICE_TOSHOW_FLOWER));
};
}
public function execute():void{
_tempShow = SysConfig.temp_UI_Image;
if (!SysConfig.Pause_Flag){
_gameView = Tools.findObjectByName[SysConfig.MC_GameView_NAME];
_gameView.addChild(_tempShow);
} else {
_gameView = SysConfig.likeRootCon;
_gameView.addChild(_tempShow);
};
SysConfig.Pause_Flag = false;
_intervalId = setTimeout(delayJointover, 500);
}
private function containSprite(_arg1:Sprite):int{
var _local2:int;
while (_local2 < _arg1.numChildren) {
if ((_arg1.getChildAt(_local2) is Sprite)){
return (_local2);
};
_local2++;
};
return (-1);
}
public function destroy():void{
}
}
}//package com.zlonggames.differentfinder.control.viewcharacter.concrete
Section 113
//CharMovie (com.zlonggames.differentfinder.control.viewcharacter.movie.CharMovie)
package com.zlonggames.differentfinder.control.viewcharacter.movie {
import flash.display.*;
import flash.events.*;
import utils.*;
public class CharMovie {
private var _y:Number;
private var _mc:MovieClip;
private var _pmc:Sprite;
private var _x:Number;
public function CharMovie(_arg1:Sprite, _arg2:MovieClip, _arg3:Number, _arg4:Number){
_pmc = _arg1;
_mc = _arg2;
_x = _arg3;
_y = _arg4;
execute();
}
private function handler(_arg1:Event):void{
if (_mc.currentFrame == (_mc.totalFrames - 1)){
_mc.removeEventListener(Event.ENTER_FRAME, handler);
if (_pmc.contains(_mc)){
_pmc.removeChild(_mc);
} else {
trace("CharMoive 有问题");
};
Tools.removeDisplayList(_mc);
_mc = null;
_x = 0;
_y = 0;
};
}
private function execute():void{
_pmc.addChild(_mc);
_mc.x = _x;
_mc.y = _y;
_mc.addEventListener(Event.ENTER_FRAME, handler);
}
}
}//package com.zlonggames.differentfinder.control.viewcharacter.movie
Section 114
//CharSound (com.zlonggames.differentfinder.control.viewcharacter.movie.CharSound)
package com.zlonggames.differentfinder.control.viewcharacter.movie {
import flash.display.*;
import flash.events.*;
import utils.*;
public class CharSound {
private var _iconMusic:MovieClip;
private var _iconPmc:Sprite;
private var _iconAudio:MovieClip;
private static var _instance:CharSound;
public function CharSound(_arg1:Single){
}
private function soundOnOff(_arg1:MouseEvent):void{
SoundsManager.instance.Enabled = !(SoundsManager.instance.Enabled);
}
public function setIcon(_arg1:Sprite):void{
_iconPmc = _arg1;
_iconMusic = _iconPmc["icon_music"];
_iconAudio = _iconPmc["icon_audio"];
_iconMusic.addEventListener(MouseEvent.MOUSE_DOWN, musicOnOff);
_iconAudio.addEventListener(MouseEvent.MOUSE_DOWN, soundOnOff);
_iconMusic.addEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
_iconAudio.addEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
}
private function musicOnOff(_arg1:MouseEvent):void{
SoundsManager.instance.MusicEnable = !(SoundsManager.instance.MusicEnable);
}
public function destroy():void{
_iconMusic.removeEventListener(MouseEvent.CLICK, musicOnOff);
_iconAudio.removeEventListener(MouseEvent.CLICK, soundOnOff);
_iconMusic.removeEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
_iconAudio.removeEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
}
private function removeFromStageHandler(_arg1:Event):void{
destroy();
}
private function soundHandler():void{
}
public static function getInstance():CharSound{
if (!_instance){
_instance = new CharSound(new Single());
};
return (_instance);
}
}
}//package com.zlonggames.differentfinder.control.viewcharacter.movie
class Single {
private function Single(){
}
}
Section 115
//ICommandItem (com.zlonggames.differentfinder.control.viewcharacter.ICommandItem)
package com.zlonggames.differentfinder.control.viewcharacter {
public interface ICommandItem {
function init():void;
function destroy():void;
function execute():void;
}
}//package com.zlonggames.differentfinder.control.viewcharacter
Section 116
//IReceiverItem (com.zlonggames.differentfinder.control.viewcharacter.IReceiverItem)
package com.zlonggames.differentfinder.control.viewcharacter {
public interface IReceiverItem {
function destroy():void;
function execute():void;
}
}//package com.zlonggames.differentfinder.control.viewcharacter
Section 117
//LoadControl (com.zlonggames.differentfinder.control.viewCore.concrete.LoadControl)
package com.zlonggames.differentfinder.control.viewCore.concrete {
import flash.events.*;
import com.zlonggames.differentfinder.customevt.*;
import com.zlonggames.differentfinder.model.*;
public class LoadControl {
private var _loadXml:LoadXml;
private var _dispatcher:EventDispatcher;
public function LoadControl(){
_loadXml = new LoadXml();
_dispatcher = new EventDispatcher();
}
public function get loadXML():LoadXml{
return (_loadXml);
}
public function bootGame(_arg1:XMLLoadEvent):void{
var _local2:LoadXml = (_arg1.target as LoadXml);
_loadXml.removeEventListener(XMLLoadEvent.Xml_Load, bootGame);
DifferentFinderXMLData.getInstance().xml = _arg1.xml;
var _local3:LabelListenerEvent = new LabelListenerEvent(LabelListenerEvent.Main_Boot_Type);
_dispatcher.dispatchEvent(_local3);
}
public function get dispatcher():EventDispatcher{
return (_dispatcher);
}
}
}//package com.zlonggames.differentfinder.control.viewCore.concrete
Section 118
//MainControl (com.zlonggames.differentfinder.control.viewCore.concrete.MainControl)
package com.zlonggames.differentfinder.control.viewCore.concrete {
import flash.display.*;
import flash.events.*;
import zlong.spilSystemTool.*;
import com.zlonggames.differentfinder.customevt.*;
import com.zlonggames.differentfinder.view.*;
import com.zlonggames.differentfinder.model.*;
import utils.*;
import zlong.breathxue.utils.*;
import flash.text.*;
import junlas.toolutil.*;
import com.zlonggames.differentfinder.config.*;
public class MainControl extends EventDispatcher {
private var _pauseFlag:Boolean;
private var _evt:NextLevelEvent;
private var _mc_over:MovieClip;
private var _mc_buttons:Sprite;
protected var _controlShow:Main_GameView;
private var menuMain_mc:MovieClip;
private var _gameCount:Object;
public function MainControl(_arg1:Main_GameView){
_controlShow = _arg1;
_gameCount = {firstLevel:Main_GameView._currId, playedLevel:0};
}
private function clickNext(_arg1:MouseEvent):void{
Main_GameView._currId = XMLDataControl.getButtonNextLevelByButton(((_arg1.target as MovieClip).btn as XML));
var _local2:int;
while (_local2 < _mc_buttons.numChildren) {
_mc_buttons.getChildAt(_local2).removeEventListener(MouseEvent.CLICK, clickNext);
_local2++;
};
deleteAndReboot(_evt);
dispatchEvent(new LabelListenerEvent(LabelListenerEvent.NOTICE_LEVEL_LISTENER));
}
private function mcOverStop():void{
_mc_over.stop();
var _local1:XML = XMLDataControl.getGameOverByLevel((Main_GameView._currId + ""));
menuMain_mc = _mc_over[XMLDataControl.getGameOverButtonByGameOver(_local1)];
menuMain_mc.mouseChildren = false;
menuMain_mc.addEventListener(MouseEvent.CLICK, tryAgain);
menuMain_mc.addEventListener(MouseEvent.CLICK, SysConfig.soundClick);
menuMain_mc.addEventListener(MouseEvent.ROLL_OVER, SysConfig.soundMove);
_mc_over["btn_moregame"].addEventListener(MouseEvent.CLICK, SysConfig.soundClick);
_mc_over["btn_moregame"].addEventListener(MouseEvent.ROLL_OVER, SysConfig.soundMove);
}
public function gameOver():void{
var _local1:Sprite;
if (Main_GameView._currId == XMLDataControl.getLastLevelId()){
GoogleEvent.instance.gaTrackEvent("Game Completed viewed", true);
};
if (!_pauseFlag){
_local1 = GameTools.copyAtoB(_controlShow.showObject);
if (Cookie.instance.achi["achi3"] == false){
Award_HighScore.instance.submitAchievement("award3");
Cookie.instance.achi["achi3"] = true;
Trace("award3");
};
} else {
_local1 = Attach.getSprite("MC_LM_pause");
};
Tools.removeDisplayList(_controlShow.showObject.parent);
_evt.finder.destroy();
_mc_over = Attach.getMovieClip(XMLDataControl.getGameOverByLevel((Main_GameView._currId + "")));
_mc_over.name = SysConfig.MC_OVER_UI_Name;
var _local2:TextField = _mc_over["txt_scoreDown"];
_local2.text = Score.getInstance().myScore;
Award_HighScore.instance.submitScore(Score.getInstance().myScore);
trace("Game Over,HighScore:", Score.getInstance().myScore);
_evt.pmc.parent.addChild(_mc_over);
_mc_over.visible = false;
var _local3:LastLevelEvent = new LastLevelEvent(LastLevelEvent.NOTICE_Main_TO_Char, _local1, _mc_over, _pauseFlag);
dispatchEvent(_local3);
_mc_over.addFrameScript((_mc_over.totalFrames - 1), mcOverStop);
_pauseFlag = false;
}
public function deleteAndReboot(_arg1:NextLevelEvent):void{
SysConfig.temp_UI_Image = GameTools.copyAtoB(_controlShow.showObject);
Tools.removeDisplayList(_arg1.pmc);
_arg1.finder.destroy();
_arg1.gameLevel.bootGameLevel();
}
private function tryAgain(_arg1:MouseEvent):void{
menuMain_mc.removeEventListener(MouseEvent.CLICK, SysConfig.soundClick);
menuMain_mc.removeEventListener(MouseEvent.ROLL_OVER, SysConfig.soundMove);
_mc_over["btn_moregame"].removeEventListener(MouseEvent.CLICK, SysConfig.soundClick);
_mc_over["btn_moregame"].removeEventListener(MouseEvent.ROLL_OVER, SysConfig.soundMove);
GoogleEvent.instance.gaTrackEvent("Play again button clicked", true);
(_arg1.target as MovieClip).removeEventListener(MouseEvent.CLICK, tryAgain);
Tools.removeDisplayList(_mc_over);
_mc_over.parent.removeChild(_mc_over);
_mc_over = null;
Main_GameView._currId = _gameCount["firstLevel"];
_evt.gameLevel.bootGameLevel();
_arg1.stopPropagation();
dispatchEvent(new LabelListenerEvent(LabelListenerEvent.NOTICE_LEVEL_LISTENER));
_evt.pmc.dispatchEvent(new LabelListenerEvent(LabelListenerEvent.Try_Again_Type, true));
}
public function reSetGameCount():void{
_gameCount["playedLevel"] = (XMLDataControl.getLevelCount() - 1);
_pauseFlag = true;
}
public function bootNextLevel(_arg1:NextLevelEvent):void{
var _local2:XML;
var _local3:XMLList;
var _local4:XMLList;
var _local5:int;
var _local6:MovieClip;
_gameCount["playedLevel"] = (_gameCount["playedLevel"] + 1);
_evt = null;
_evt = _arg1;
if (!XMLDataControl.getLinearValue()){
if (XMLDataControl.getLastLevelId() != Main_GameView._currId){
_mc_buttons = new Sprite();
_controlShow.showObject.addChild(_mc_buttons);
_local2 = XMLDataControl.getLevelById((Main_GameView._currId + ""));
_local3 = XMLDataControl.getButtonsByLevel(_local2);
_local4 = XMLDataControl.getButtonByButtons(_local3);
_local5 = 0;
while (_local5 < _local4.length()) {
_local6 = Attach.getMovieClip(XMLDataControl.getButtonNameByButton(_local4[_local5]));
_local6.x = XMLDataControl.getButtonXByButton(_local4[_local5]);
_local6.y = XMLDataControl.getButtonYByButton(_local4[_local5]);
_local6.mouseChildren = false;
_local6.addEventListener(MouseEvent.CLICK, clickNext);
_local6.btn = _local4[_local5];
_mc_buttons.addChild(_local6);
_local5++;
};
} else {
_gameCount["playedLevel"] = 0;
dispatchEvent(new LabelListenerEvent(LabelListenerEvent.GAME_OVER_LISTENER));
};
} else {
if (int(_gameCount["playedLevel"]) == XMLDataControl.getLevelCount()){
_gameCount["playedLevel"] = 0;
dispatchEvent(new LabelListenerEvent(LabelListenerEvent.GAME_OVER_LISTENER));
} else {
Main_GameView._currId = XMLDataControl.getNextLevelId(Main_GameView._currId);
deleteAndReboot(_arg1);
dispatchEvent(new LabelListenerEvent(LabelListenerEvent.NOTICE_LEVEL_LISTENER));
};
};
}
}
}//package com.zlonggames.differentfinder.control.viewCore.concrete
Section 119
//SymmetryTracer (com.zlonggames.differentfinder.control.viewCore.concrete.SymmetryTracer)
package com.zlonggames.differentfinder.control.viewCore.concrete {
import flash.display.*;
import flash.events.*;
import com.zlonggames.differentfinder.customevt.*;
import com.zlonggames.differentfinder.view.*;
import zlong.breathxue.utils.*;
import com.zlonggames.differentfinder.customeor.*;
import com.zlonggames.differentfinder.config.*;
import flash.ui.*;
public class SymmetryTracer {
private var con_tracer:Sprite;
protected var _controlShow:Main_GameView;
private var _mouseIcon:MovieClip;
public function SymmetryTracer(_arg1:Main_GameView){
_controlShow = _arg1;
_mouseIcon = Attach.getMovieClip("MC_LM_mouse");
initMouse();
}
private function destroyEvent(_arg1:Event):void{
_mouseIcon.removeEventListener(Event.ENTER_FRAME, flagMouseIcon);
_mouseIcon.removeEventListener(Event.REMOVED_FROM_STAGE, destroyEvent);
}
private function handlerToY(_arg1:Number, _arg2:Number):Number{
if (_arg2 >= _arg1){
return ((_arg2 - _arg1));
};
return ((_arg1 + _arg2));
}
private function mouseHandler(_arg1:MouseEvent):void{
if ((((((((con_tracer.mouseX < 0)) || ((con_tracer.mouseX > con_tracer.width)))) || ((con_tracer.mouseY < 0)))) || ((con_tracer.mouseY > con_tracer.height)))){
_mouseIcon.visible = false;
Mouse.show();
return;
};
Mouse.hide();
_mouseIcon.visible = true;
_mouseIcon.x = (_arg1.stageX / SysConfig.ScaleValue);
_mouseIcon.y = (_arg1.stageY / SysConfig.ScaleValue);
_arg1.updateAfterEvent();
}
public function toTrace(_arg1:TracerEvent):void{
if ((((((((_controlShow.showObject.mouseX < 0)) || ((_controlShow.showObject.mouseX > _controlShow.showObject.width)))) || ((_controlShow.showObject.mouseY < 0)))) || ((_controlShow.showObject.mouseY > _controlShow.showObject.height)))){
_arg1.tracer.visible = false;
return;
};
var _local2:Sprite = _arg1.tracer;
if (_controlShow.XShow != 0){
_local2.x = handlerToX(_controlShow.XShow, _controlShow.showObject.mouseX);
_local2.y = (_controlShow.showObject.mouseY + 33);
} else {
if (_controlShow.YShow != 0){
_local2.x = _controlShow.showObject.mouseX;
_local2.y = handlerToY((_controlShow.YShow + SysConfig.Y_mc_parentGameView), _controlShow.showObject.mouseY);
} else {
throw (new FindError("显示对象不对称"));
};
};
}
private function flagMouseIcon(_arg1:Event):void{
if (SysConfig.Flag_MouseIcon){
_mouseIcon.play();
SysConfig.Flag_MouseIcon = false;
};
}
private function initMouse():void{
con_tracer = Sprite(SysConfig.likeRootCon.getChildByName(SysConfig.MC_OutmostView_NAME));
SysConfig.stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseHandler);
Mouse.hide();
_mouseIcon.name = SysConfig.MC_Mouse_Icon_Name;
_mouseIcon.mouseEnabled = false;
_mouseIcon.mouseChildren = false;
_mouseIcon.visible = false;
_mouseIcon.addFrameScript((_mouseIcon.totalFrames - 1), _mouseIcon.stop);
_mouseIcon.stop();
SysConfig.likeRootCon.addChild(_mouseIcon);
_mouseIcon.addEventListener(Event.ENTER_FRAME, flagMouseIcon);
_mouseIcon.addEventListener(Event.REMOVED_FROM_STAGE, destroyEvent);
}
private function handlerToX(_arg1:Number, _arg2:Number):Number{
if (_arg2 >= _arg1){
return ((_arg2 - _arg1));
};
return ((((_arg1 + _arg2) + SysConfig.X_mc_parentGameView) + 23));
}
}
}//package com.zlonggames.differentfinder.control.viewCore.concrete
Section 120
//SynchroShow (com.zlonggames.differentfinder.control.viewCore.concrete.SynchroShow)
package com.zlonggames.differentfinder.control.viewCore.concrete {
import flash.display.*;
import com.zlonggames.differentfinder.customevt.*;
import com.zlonggames.differentfinder.view.*;
import utils.*;
public class SynchroShow {
protected var _controlShow:Main_GameView;
public function SynchroShow(_arg1:Main_GameView){
_controlShow = _arg1;
}
public function toSynchro(_arg1:SynchroEvent):void{
var _local2:Sprite = (_arg1.currentTarget as Sprite);
var _local3:Sprite = (_arg1.target as Sprite);
var _local4:Object = _arg1.finderObj;
var _local5:Sprite = Sprite(_local2.getChildByName(_local4["n1"].name));
var _local6:Sprite = Sprite(_local2.getChildByName(_local4["n2"].name));
Tools.removeDisplayList(_local5);
Tools.removeDisplayList(_local6);
_local2.removeChild(_local5);
_local2.removeChild(_local6);
if (_local5.numChildren > 1){
_local5.removeChildAt(1);
};
if (_local6.numChildren > 1){
_local6.removeChildAt(1);
};
}
}
}//package com.zlonggames.differentfinder.control.viewCore.concrete
Section 121
//XMLDataControl (com.zlonggames.differentfinder.control.viewCore.concrete.XMLDataControl)
package com.zlonggames.differentfinder.control.viewCore.concrete {
import com.zlonggames.differentfinder.view.*;
import com.zlonggames.differentfinder.customeor.*;
import mx.utils.*;
public class XMLDataControl {
public static const NODE_linear:String = "linear";
public static const NODE_finder:String = "finder";
public static const ATTR_xSymmetry:String = "xSymmetry";
public static const NODE_level:String = "level";
public static const NODE_game_over:String = "game-over";
public static const NODE_button:String = "button";
public static const ATTR_name:String = "name";
public static const ATTR_ySymmetry:String = "ySymmetry";
public static const ATTR_id:String = "id";
public static const ATTR_x:String = "x";
public static const ATTR_y:String = "y";
public static const ATTR_imgClassName:String = "imgClassName";
public static const ATTR_button:String = "button";
public static const NODE_buttons:String = "buttons";
public static const ATTR_next_level:String = "next-level";
public static const NODE_Finder_Num:String = "finder-num";
public static const NODE_finders:String = "finders";
public static const NODE_project:String = "project";
public static const NODE_last_level:String = "last-level";
public static const NODE_first_level:String = "first-level";
public static var xml:XML = Main_GameView.xml;
public static function getButtonNextLevelByButton(_arg1:XML):int{
var _local2:String = _arg1.@[ATTR_next_level];
if (((!((StringUtil.trim(_local2) == null))) && (!((StringUtil.trim(_local2) == ""))))){
return (int(StringUtil.trim(_local2)));
};
_local2 = _arg1[ATTR_next_level];
if (((!((StringUtil.trim(_local2) == null))) && (!((StringUtil.trim(_local2) == ""))))){
return (int(StringUtil.trim(_local2)));
};
throw (new FindError("XML配置文件中button:next-level 配置有误"));
}
public static function getLastLevelId():int{
return (int(StringUtil.trim(xml[NODE_last_level])));
}
public static function getLevelByProject():XMLList{
return (xml[NODE_level]);
}
public static function getNextLevelId(_arg1:int):int{
var _local2:XMLList = xml[NODE_level];
var _local3:int;
while (_local3 < _local2.length()) {
if (int(_local2[_local3].@[ATTR_id]) == _arg1){
if (_local3 == (_local2.length() - 1)){
return (int(_local2[0].@[ATTR_id]));
};
return (int(_local2[(_local3 + 1)].@[ATTR_id]));
};
_local3++;
};
throw (new FindError("currId 在 XML 配置中未找到."));
}
public static function getFindersByLevel(_arg1:XML):XMLList{
return (_arg1[NODE_finders]);
}
public static function getImgByLevel(_arg1:XML):String{
return (_arg1.@[ATTR_imgClassName]);
}
public static function getCurrIdIndex(_arg1:int):int{
var _local2:XMLList = xml[NODE_level];
var _local3:int;
while (_local3 < _local2.length()) {
if (int(_local2[_local3].@[ATTR_id]) == _arg1){
return (_local3);
};
_local3++;
};
throw (new FindError("currId 在 XML 配置中未找到."));
}
public static function getButtonsByLevel(_arg1:XML):XMLList{
return (_arg1[NODE_buttons]);
}
public static function getButtonXByButton(_arg1:XML):Number{
var _local2:String = _arg1.@[ATTR_x];
return (Number(StringUtil.trim(_local2)));
}
public static function getButtonYByButton(_arg1:XML):Number{
var _local2:String = _arg1.@[ATTR_y];
return (Number(StringUtil.trim(_local2)));
}
public static function getXByFinder(_arg1:XML):String{
return (_arg1.@[ATTR_x]);
}
public static function getLinearValue():Boolean{
var _local1:String = xml[NODE_linear];
if (StringUtil.trim(_local1) == "true"){
return (true);
};
if (StringUtil.trim(_local1) == "false"){
return (false);
};
throw (new FindError("XML配置Linear值不是一个布尔值"));
}
public static function getLevelById(_arg1:String):XML{
var _local2:XMLList = xml[NODE_level];
var _local3:int;
while (_local3 < _local2.length()) {
if (_local2[_local3].@[ATTR_id] == _arg1){
return (_local2[_local3]);
};
_local3++;
};
throw (new FindError(("查找Level出错" + _arg1)));
}
public static function getGameOverButtonByGameOver(_arg1:XML):String{
return (_arg1.@[ATTR_button]);
}
public static function getYSymmetryByLevel(_arg1:XML):String{
return (_arg1.@[ATTR_ySymmetry]);
}
public static function getYByFinder(_arg1:XML):String{
return (_arg1.@[ATTR_y]);
}
public static function getFinderNum():int{
return (int(StringUtil.trim(xml[NODE_Finder_Num])));
}
public static function getValueByFinder(_arg1:XML):String{
return (_arg1);
}
public static function getLevelCount():int{
return (getLevelByProject().length());
}
public static function getButtonByButtons(_arg1:XMLList):XMLList{
return (_arg1[NODE_button]);
}
public static function getFirstLevelId():int{
return (int(StringUtil.trim(xml[NODE_first_level])));
}
public static function getButtonNameByButton(_arg1:XML):String{
var _local2:String = _arg1.@[ATTR_name];
return (StringUtil.trim(_local2));
}
public static function getXSymmetryByLevel(_arg1:XML):String{
return (_arg1.@[ATTR_xSymmetry]);
}
public static function getGameOverByLevel(_arg1:String):XML{
var _local2:XML = getLevelById(_arg1);
return (_local2[NODE_game_over][0]);
}
public static function getFinderByFinders(_arg1:XML):XMLList{
return (_arg1[NODE_finder]);
}
}
}//package com.zlonggames.differentfinder.control.viewCore.concrete
Section 122
//CharacterControl (com.zlonggames.differentfinder.control.CharacterControl)
package com.zlonggames.differentfinder.control {
import flash.display.*;
import flash.events.*;
import zlong.spilSystemTool.*;
import com.zlonggames.differentfinder.customevt.*;
import com.zlonggames.differentfinder.view.*;
import com.zlonggames.differentfinder.control.viewcharacter.*;
import com.zlonggames.differentfinder.control.viewcharacter.movie.*;
import utils.*;
import zlong.breathxue.utils.*;
import com.zlonggames.differentfinder.control.viewCore.concrete.*;
import com.zlonggames.differentfinder.control.viewcharacter.concrete.*;
import flash.utils.*;
import com.zlonggames.differentfinder.config.*;
public class CharacterControl {
private var _hintCommand:HintCommand;
private var _pauseReceiver:IReceiverItem;
private var _pmc:Sprite;
private var _flowerFrame:Sprite;
private var _pauseCommand:ICommandItem;
private var _menuMain:Sprite;
private var _show:Sprite;
private var _gameBackground:Sprite;
private var _scoreReceiver:IReceiverItem;
private var _hintReceiver:IReceiverItem;
private var _scoreCommand:ICommandItem;
private var _tweenReceiver:IReceiverItem;
private var _tweenCommand:ICommandItem;
public function CharacterControl(_arg1:Sprite, _arg2:Sprite){
_pmc = _arg1;
_show = _arg2;
_gameBackground = Attach.getSprite("MC_LM_background");
_gameBackground.name = SysConfig.MC_Background_Name;
_pmc.addChildAt(_gameBackground, 0);
menuMain();
execute();
}
public function update(_arg1:Sprite):void{
_show = _arg1;
tweenCommand(_tweenCommand).playTween(_show);
_hintCommand.execute();
_scoreCommand.execute();
var _local2:int = XMLDataControl.getCurrIdIndex(Main_GameView._currId);
_flowerFrame.visible = true;
trace("update,level index:", _local2);
switch (_local2){
case 0:
case 1:
case 4:
case 5:
case 8:
case 9:
SoundsManager.instance.fadeInMusic("lm_game.wav");
break;
default:
SoundsManager.instance.fadeInMusic("lm_game2.wav");
};
}
public function overDestroy():void{
destroy();
_pauseCommand.destroy();
_tweenCommand.destroy();
_pmc.getChildByName(SysConfig.MC_Parent_GameView_NAME).addEventListener(LabelListenerEvent.NOTICE_TOHIDE_FLOWER, toHideFlower);
}
private function toHideFlower(_arg1:LabelListenerEvent):void{
_pmc.getChildByName(SysConfig.MC_Parent_GameView_NAME).removeEventListener(LabelListenerEvent.NOTICE_TOHIDE_FLOWER, toHideFlower);
_flowerFrame.visible = false;
}
private function menuMain():void{
SoundsManager.instance.fadeInMusic("lm_menu.wav");
GoogleEvent.instance.gaTrackEvent("mainscreen viewed", true);
_menuMain = Attach.getSprite("MC_LM_menumain");
var _local1:int = SysConfig.likeRootCon.getChildIndex(SysConfig.likeRootCon.getChildByName(SysConfig.MC_Mouse_Icon_Name));
SysConfig.likeRootCon.addChildAt(_menuMain, _local1);
CharSound.getInstance().setIcon(_menuMain);
var _local2:MovieClip = _menuMain["btn_play"];
_local2.mouseChildren = false;
_local2.addEventListener(MouseEvent.CLICK, menuMainHandler);
_local2.addEventListener(MouseEvent.CLICK, SysConfig.soundClick);
_local2.addEventListener(MouseEvent.ROLL_OVER, SysConfig.soundMove);
var _local3:MovieClip = _menuMain["btn_moregame"];
_local3.addEventListener(MouseEvent.CLICK, SysConfig.soundClick);
_local3.addEventListener(MouseEvent.ROLL_OVER, SysConfig.soundMove);
}
public function bootCharacter():void{
_pmc.getChildByName(SysConfig.MC_Parent_GameView_NAME).addEventListener(LabelListenerEvent.NOTICE_TOHIDE_FLOWER, toShowFlower);
_flowerFrame.visible = true;
init();
menuMain();
}
private function toShowFlower(_arg1:LabelListenerEvent):void{
_pmc.getChildByName(SysConfig.MC_Parent_GameView_NAME).removeEventListener(LabelListenerEvent.NOTICE_TOHIDE_FLOWER, toShowFlower);
_flowerFrame.visible = true;
}
private function dramaInit():void{
var _local1:Sprite = _flowerFrame["mc_drama"];
_local1.mouseChildren = false;
_local1.mouseEnabled = false;
var _local2:int = XMLDataControl.getCurrIdIndex(Main_GameView._currId);
MovieClip(_local1).gotoAndStop((_local2 + 1));
}
public function menuMainHandler(_arg1:MouseEvent):void{
_menuMain["btn_play"].removeEventListener(MouseEvent.CLICK, SysConfig.soundClick);
_menuMain["btn_play"].removeEventListener(MouseEvent.ROLL_OVER, SysConfig.soundMove);
_menuMain["btn_moregame"].removeEventListener(MouseEvent.CLICK, SysConfig.soundClick);
_menuMain["btn_moregame"].removeEventListener(MouseEvent.ROLL_OVER, SysConfig.soundMove);
MovieClip(_arg1.target).removeEventListener(MouseEvent.CLICK, menuMainHandler);
Tools.removeDisplayList(_menuMain);
SysConfig.likeRootCon.removeChild(_menuMain);
_menuMain = null;
SysConfig.temp_UI_Image = Attach.getSprite("MC_LM_menumain");
SysConfig.Pause_Flag = true;
update(_show);
}
public function destroy():void{
_scoreCommand.destroy();
_hintCommand.destroy();
}
public function execute():void{
_flowerFrame = Attach.getSprite(SysConfig.MC_Flower_Name);
_flowerFrame.name = SysConfig.MC_Flower_Name;
dramaInit();
_flowerFrame.x = 2.5;
_flowerFrame.y = 10;
_flowerFrame.mouseEnabled = false;
_flowerFrame.mouseChildren = false;
Sprite(_pmc.getChildByName(SysConfig.MC_Parent_GameView_NAME)).addChild(_flowerFrame);
_tweenReceiver = new tweenReceiver(_gameBackground, getQualifiedClassName(_show));
_tweenCommand = new tweenCommand(_tweenReceiver);
_hintReceiver = new HintReceiver(_gameBackground);
_hintCommand = new HintCommand(_hintReceiver);
_scoreReceiver = new ScoreReceiver(_gameBackground);
_scoreCommand = new ScoreCommand(_scoreReceiver);
_pauseReceiver = new PauseReceiver(_gameBackground);
_pauseCommand = new PauseCommand(_pauseReceiver);
}
public function init():void{
trace("character init...");
_flowerFrame.visible = true;
tweenCommand(_tweenCommand).showName = getQualifiedClassName(_show);
_tweenCommand.init();
ScoreReceiver(_scoreReceiver).quitHandler();
_pauseCommand.execute();
dramaInit();
}
}
}//package com.zlonggames.differentfinder.control
Section 123
//FindError (com.zlonggames.differentfinder.customeor.FindError)
package com.zlonggames.differentfinder.customeor {
public class FindError extends Error {
public function FindError(_arg1:String=""){
super(_arg1);
}
}
}//package com.zlonggames.differentfinder.customeor
Section 124
//LabelListenerEvent (com.zlonggames.differentfinder.customevt.LabelListenerEvent)
package com.zlonggames.differentfinder.customevt {
import flash.events.*;
public class LabelListenerEvent extends Event {
public static const GAME_OVER_LISTENER:String = "GAME_OVER_LISTENER_type2";
public static const NOTICE_TOHIDE_FLOWER:String = "NOTICE_TOHIDE_FLOWER_type12";
public static const NOTICE_LEVEL_LISTENER:String = "NOTICE_LEVEL_LISTENER_type1";
public static const Main_Boot_Type:String = "Main_Boot_Type_type10";
public static const NOTICE_TOSHOW_FLOWER:String = "NOTICE_TOSHOW_FLOWER_type13";
public static const TweenComplete_Listener:String = "TweenComplete_Listener_type3";
public static const QUIT_Game_Listener:String = "QUIT_Game_Listener_type11";
public static const Game_INIT_Listener:String = "Game_INIT_Listener_Type8";
public static const Zero_Score_Decrease_Type:String = "Zero_Score_Decrease_Type6";
public static const Hint_Tip_TOScore_Listener:String = "Hint_Tip_TOScore_Listener_type7";
public static const Hint_Finder_Tip_Listener:String = "Hint_Finder_Tip_Listener4";
public static const Try_Again_Type:String = "Try_Again_Type5";
public function LabelListenerEvent(_arg1:String, _arg2:Boolean=false){
super(_arg1, _arg2);
}
}
}//package com.zlonggames.differentfinder.customevt
Section 125
//LastLevelEvent (com.zlonggames.differentfinder.customevt.LastLevelEvent)
package com.zlonggames.differentfinder.customevt {
import flash.display.*;
import flash.events.*;
public class LastLevelEvent extends Event {
private var _pauseFlag:Boolean;
private var _showData:Sprite;
private var _tempData:Sprite;
public static const NOTICE_Main_TO_Char:String = "NOTICE_Main_TO_Char_type12";
public function LastLevelEvent(_arg1:String, _arg2:Sprite, _arg3:Sprite, _arg4:Boolean){
super(_arg1, false);
_tempData = _arg2;
_showData = _arg3;
_pauseFlag = _arg4;
}
public function get showData():Sprite{
return (_showData);
}
public function get pauseFlag():Boolean{
return (_pauseFlag);
}
public function get tempData():Sprite{
return (_tempData);
}
}
}//package com.zlonggames.differentfinder.customevt
Section 126
//NextLevelEvent (com.zlonggames.differentfinder.customevt.NextLevelEvent)
package com.zlonggames.differentfinder.customevt {
import flash.display.*;
import flash.events.*;
import com.zlonggames.differentfinder.view.levelone.*;
public class NextLevelEvent extends Event {
private var _finder:UI_LevelFinder;
private var _pmc:Sprite;
private var _gameLevel:UI_GameLevel;
public static const NEXT_LEVEL_TYPE:String = "NEXT_LEVEL_TYPE1";
public function NextLevelEvent(_arg1:String, _arg2:UI_LevelFinder){
super(_arg1);
_finder = _arg2;
}
public function set gameLevel(_arg1:UI_GameLevel):void{
_gameLevel = _arg1;
}
public function set pmc(_arg1:Sprite):void{
_pmc = _arg1;
}
public function get finder():UI_LevelFinder{
return (_finder);
}
public function get gameLevel():UI_GameLevel{
return (_gameLevel);
}
public function get pmc():Sprite{
return (_pmc);
}
}
}//package com.zlonggames.differentfinder.customevt
Section 127
//RandomFinderEvent (com.zlonggames.differentfinder.customevt.RandomFinderEvent)
package com.zlonggames.differentfinder.customevt {
import flash.display.*;
import flash.events.*;
public class RandomFinderEvent extends Event {
private var _tipFinder:Sprite;
public static const Random_Finder_Type:String = "Random_Finder_Type1";
public function RandomFinderEvent(_arg1:String, _arg2:Sprite, _arg3:Boolean=false){
super(_arg1, _arg3);
_tipFinder = _arg2;
}
public function get tipFinder():Sprite{
return (_tipFinder);
}
}
}//package com.zlonggames.differentfinder.customevt
Section 128
//SynchroEvent (com.zlonggames.differentfinder.customevt.SynchroEvent)
package com.zlonggames.differentfinder.customevt {
import flash.display.*;
import flash.events.*;
import zlong.breathxue.utils.*;
import flash.utils.*;
public class SynchroEvent extends Event {
private var _type:String;
private var _finderObj:Object;
public static const Synchro_Type:String = "Synchro_Type1";
public function SynchroEvent(_arg1:String, _arg2:Object){
super(_arg1, true);
_type = _arg1;
_finderObj = _arg2;
}
public function get finderObj():Object{
var _local1:String = getQualifiedClassName(_finderObj["o1"]);
var _local2:String = getQualifiedClassName(_finderObj["o2"]);
var _local3:MovieClip = Attach.getMovieClip(_local1);
var _local4:MovieClip = Attach.getMovieClip(_local2);
_local3.name = _finderObj["o1"].name;
_local4.name = _finderObj["o2"].name;
_local3.getChildAt(0).alpha = _finderObj["o1"].getChildAt(0).alpha;
_local4.getChildAt(0).alpha = _finderObj["o2"].getChildAt(0).alpha;
_local3.state = _finderObj["o1"]["state"];
_local4.state = _finderObj["o2"]["state"];
var _local5:Object = {n1:_local3, n2:_local4};
return (_local5);
}
}
}//package com.zlonggames.differentfinder.customevt
Section 129
//TracerEvent (com.zlonggames.differentfinder.customevt.TracerEvent)
package com.zlonggames.differentfinder.customevt {
import flash.display.*;
import flash.events.*;
public class TracerEvent extends Event {
private var _tracer:Sprite;
private var _mouseEvt:MouseEvent;
public static const Tracer_Type1:String = "tracer_type1";
public function TracerEvent(_arg1:String, _arg2:Sprite, _arg3:MouseEvent){
super(_arg1);
_tracer = _arg2;
_mouseEvt = _arg3;
}
public function get tracer():Sprite{
return (_tracer);
}
public function get mouseEvt():MouseEvent{
return (_mouseEvt);
}
}
}//package com.zlonggames.differentfinder.customevt
Section 130
//XMLLoadEvent (com.zlonggames.differentfinder.customevt.XMLLoadEvent)
package com.zlonggames.differentfinder.customevt {
import flash.events.*;
public class XMLLoadEvent extends Event {
private var _xml:XML;
public static const Xml_Load:String = "Xml_Load_type1";
public function XMLLoadEvent(_arg1:String, _arg2:XML){
super(_arg1, true);
_xml = _arg2;
}
public function get xml():XML{
return (_xml);
}
}
}//package com.zlonggames.differentfinder.customevt
Section 131
//DifferentFinderXMLData (com.zlonggames.differentfinder.model.DifferentFinderXMLData)
package com.zlonggames.differentfinder.model {
import flash.display.*;
import com.zlonggames.differentfinder.view.*;
import zlong.breathxue.utils.*;
import com.zlonggames.differentfinder.control.viewCore.concrete.*;
import flash.utils.*;
import com.zlonggames.differentfinder.customeor.*;
import com.zlonggames.differentfinder.config.*;
public class DifferentFinderXMLData {
private var _finderNum:int;
private var _linear:Boolean;
private var _levels:XMLList;
private var _lastLevel:int;
private var _firstLevel:int;
private var _currFinderList:Array;
private var _xml:XML;
private static var _differentFinder:DifferentFinderXMLData;
public function DifferentFinderXMLData(_arg1:X){
}
public function get finderNum():int{
return (_finderNum);
}
public function getFinders(_arg1:Sprite):Array{
var _local2:int;
var _local3:DisplayObject;
_currFinderList = [];
_local2 = 0;
while (_local2 < _arg1.numChildren) {
_local3 = _arg1.getChildAt(_local2);
if (_local3.name.charAt((_local3.name.length - 1)) == "a"){
_currFinderList.push(_local3);
};
_local2++;
};
_local2 = 0;
while (_local2 < _currFinderList.length) {
_arg1.removeChild(_currFinderList[_local2]);
_local2++;
};
return (_currFinderList);
}
private function initData():void{
_linear = XMLDataControl.getLinearValue();
_firstLevel = XMLDataControl.getFirstLevelId();
_lastLevel = XMLDataControl.getLastLevelId();
_finderNum = XMLDataControl.getFinderNum();
_levels = XMLDataControl.getLevelByProject();
}
public function getFindersLength():int{
return (_currFinderList.length);
}
public function getXSymmetry(_arg1:int):Boolean{
var _local2:XML = XMLDataControl.getLevelById((_arg1 + ""));
var _local3:String = XMLDataControl.getXSymmetryByLevel(_local2);
if (_local3 == "1"){
return (true);
};
return (false);
}
public function getYSymmetry(_arg1:int):Boolean{
var _local2:XML = XMLDataControl.getLevelById((_arg1 + ""));
var _local3:String = XMLDataControl.getYSymmetryByLevel(_local2);
if (_local3 == "1"){
return (true);
};
return (false);
}
public function getOtherFinder(_arg1:Sprite, _arg2:Sprite, _arg3:int):MovieClip{
var _local4:String = _arg1.name;
var _local5:String = getQualifiedClassName(_arg1);
var _local6:MovieClip = Attach.getMovieClip(_local5);
var _local7:XML = XMLDataControl.getLevelById((_arg3 + ""));
var _local8:String = XMLDataControl.getXSymmetryByLevel(_local7);
var _local9:String = XMLDataControl.getYSymmetryByLevel(_local7);
_arg1.getChildAt(0).alpha = 0;
if (_local8 == "1"){
_local6.x = ((_arg1.x + (_arg2.width / 2)) + SysConfig.X_mc_parentGameView);
_local6.y = _arg1.y;
_local6.name = (_local4.substring(0, (_local4.length - 1)) + "b");
return (_local6);
};
if (_local9 == "1"){
_local6.x = _arg1.x;
_local6.y = ((_arg1.y + (_arg2.height / 2)) + SysConfig.Y_mc_parentGameView);
_local6.name = (_local4.substring(0, (_local4.length - 1)) + "b");
return (_local6);
};
throw (new FindError("请检查,美术资源命名出现问题.."));
}
public function get linear():Boolean{
return (_linear);
}
public function set xml(_arg1:XML):void{
Main_GameView.xml = _arg1;
_xml = _arg1;
initData();
}
public function get firstLevel():int{
return (_firstLevel);
}
public function get lastLevel():int{
return (_lastLevel);
}
public static function getInstance():DifferentFinderXMLData{
if (!_differentFinder){
_differentFinder = new DifferentFinderXMLData(new X());
};
return (_differentFinder);
}
}
}//package com.zlonggames.differentfinder.model
class X {
private function X(){
}
}
Section 132
//LoadXml (com.zlonggames.differentfinder.model.LoadXml)
package com.zlonggames.differentfinder.model {
import flash.events.*;
import flash.net.*;
import com.zlonggames.differentfinder.customevt.*;
public class LoadXml extends EventDispatcher {
private var xmlSource:Class;
private var loaderXml:URLLoader;
private var xmlRequest:URLRequest;
private var reqXml:XML;
public function LoadXml(_arg1:String="DifferentFinder.xml"){
xmlSource = LoadXml_xmlSource;
super();
}
public function loadedXmlComplete(_arg1:Event):void{
reqXml = new XML(new xmlSource().toString());
var _local2:XMLLoadEvent = new XMLLoadEvent(XMLLoadEvent.Xml_Load, reqXml);
dispatchEvent(_local2);
}
}
}//package com.zlonggames.differentfinder.model
Section 133
//LoadXml_xmlSource (com.zlonggames.differentfinder.model.LoadXml_xmlSource)
package com.zlonggames.differentfinder.model {
import mx.core.*;
public class LoadXml_xmlSource extends ByteArrayAsset {
}
}//package com.zlonggames.differentfinder.model
Section 134
//Score (com.zlonggames.differentfinder.model.Score)
package com.zlonggames.differentfinder.model {
import flash.events.*;
import zlong.spilSystemTool.*;
import com.zlonggames.differentfinder.customevt.*;
import com.zlonggames.differentfinder.view.*;
import utils.*;
import com.zlonggames.differentfinder.control.viewCore.concrete.*;
public class Score extends EventDispatcher {
private var _myScore:Number;// = 0
private static var _instance:Score;
public function Score(_arg1:s){
}
public function decSpecial():void{
SoundsManager.instance.playSound("tip_click.wav", 1);
if (_myScore >= 10){
_myScore = (_myScore - 10);
} else {
_myScore = 0;
dispatchEvent(new LabelListenerEvent(LabelListenerEvent.Zero_Score_Decrease_Type));
};
}
public function incNormal():void{
SoundsManager.instance.playSound("correct_find.wav", 1);
_myScore = (_myScore + 5);
if ((((Main_GameView._currId == XMLDataControl.getLastLevelId())) && ((_myScore > 100)))){
if (Cookie.instance.achi["achi4"] == false){
Award_HighScore.instance.submitAchievement("award4");
Cookie.instance.achi["achi4"] = true;
Trace("award4");
};
} else {
if ((((Main_GameView._currId == XMLDataControl.getLastLevelId())) && ((_myScore > 200)))){
if (Cookie.instance.achi["achi5"] == false){
Award_HighScore.instance.submitAchievement("award5");
Cookie.instance.achi["achi5"] = true;
Trace("award5");
};
};
};
}
public function get myScore():String{
return ((_myScore + ""));
}
public function decNormal():void{
SoundsManager.instance.playSound("reduce_points.wav", 1);
if (_myScore >= 5){
_myScore = (_myScore - 5);
} else {
_myScore = 0;
dispatchEvent(new LabelListenerEvent(LabelListenerEvent.Zero_Score_Decrease_Type));
};
}
public function reSet():void{
_myScore = 0;
}
public static function getInstance():Score{
if (!_instance){
_instance = new Score(new s());
};
return (_instance);
}
}
}//package com.zlonggames.differentfinder.model
class s {
private function s(){
}
}
Section 135
//UI_GameLevel (com.zlonggames.differentfinder.view.levelone.UI_GameLevel)
package com.zlonggames.differentfinder.view.levelone {
import flash.display.*;
import flash.events.*;
import com.zlonggames.differentfinder.customevt.*;
import com.zlonggames.differentfinder.view.*;
import utils.*;
import zlong.breathxue.utils.*;
import com.zlonggames.differentfinder.control.viewCore.concrete.*;
import com.zlonggames.differentfinder.config.*;
public class UI_GameLevel extends Main_GameView {
private var _finder:UI_LevelFinder;
private var _xSymmetry:String;
private var _show:Sprite;
private var _ySymmetry:String;
private var _outerImg:Sprite;
private var _YShow:Number;// = 0
private var _XShow:Number;// = 0
public function UI_GameLevel(_arg1:Sprite){
super(_arg1);
bootGameLevel();
}
public function dispatchEvent(_arg1:Event):Boolean{
return (_show.dispatchEvent(_arg1));
}
override protected function extraWork(_arg1:LabelListenerEvent):void{
var _local2:Sprite = _finder.leavingFinder;
Tools.findObjectByName(SysConfig.stage, SysConfig.MC_Background_Name);
var _local3:Sprite = Tools.findObjectByName[SysConfig.MC_Background_Name];
_local3.dispatchEvent(new RandomFinderEvent(RandomFinderEvent.Random_Finder_Type, _local2));
}
private function initDisplay():void{
_show = _outerImg;
_show.name = SysConfig.UI_GameImage;
_pmc.addChildAt(_show, 0);
if (_xSymmetry == "1"){
_XShow = (_show.width / 2);
_YShow = 0;
};
if (_ySymmetry == "1"){
_XShow = 0;
_YShow = (_show.height / 2);
};
}
private function initFinder():void{
_finder = null;
_finder = new UI_LevelFinder(_show);
}
override public function get showObject():Sprite{
return (_show);
}
private function initFromXML():void{
var _local1:XML = XMLDataControl.getLevelById((_currId + ""));
var _local2:String = XMLDataControl.getImgByLevel(_local1);
_outerImg = Attach.getSprite(_local2);
_xSymmetry = XMLDataControl.getXSymmetryByLevel(_local1);
_ySymmetry = XMLDataControl.getYSymmetryByLevel(_local1);
}
public function bootGameLevel():void{
initFromXML();
initDisplay();
initFinder();
}
override public function quitGame():void{
_finder.checkLevel(true);
}
override public function get XShow():Number{
return (_XShow);
}
override public function get YShow():Number{
return (_YShow);
}
public function removeChild():DisplayObject{
return (_pmc.removeChild(_show));
}
}
}//package com.zlonggames.differentfinder.view.levelone
Section 136
//UI_LevelFinder (com.zlonggames.differentfinder.view.levelone.UI_LevelFinder)
package com.zlonggames.differentfinder.view.levelone {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import zlong.spilSystemTool.*;
import com.zlonggames.differentfinder.customevt.*;
import com.zlonggames.differentfinder.view.*;
import com.zlonggames.differentfinder.model.*;
import utils.*;
import junlas.toolutil.*;
import com.zlonggames.differentfinder.config.*;
public class UI_LevelFinder {
private var _finderAry:Array;
private var _pmc:Sprite;
private var _pao1:Sprite;
private var _pao2:Sprite;
private var _finded:int;
private var _bmdAry:Array;
public function UI_LevelFinder(_arg1:Sprite){
_pmc = _arg1;
_finded = 0;
initFromXML();
initDisplay();
toAddEventListener();
}
public function get leavingFinder():Sprite{
var _local1:int = _finderAry.length;
var _local2:int = int((Math.random() * _local1));
var _local3:Number = Math.random();
if (_local3 > 0.5){
return (_finderAry[_local2]["o2"]);
};
return (_finderAry[_local2]["o1"]);
}
private function toAddEventListener():void{
var _local2:Object;
var _local1:int;
while (_local1 < _finderAry.length) {
_local2 = _finderAry[_local1];
_local2["o1"].addEventListener(MouseEvent.CLICK, clickHander);
_local2["o2"].addEventListener(MouseEvent.CLICK, clickHander);
_local1++;
};
}
public function destroy():void{
_pmc = null;
_bmdAry = null;
_finderAry = null;
}
private function clickHander(_arg1:MouseEvent):void{
SysConfig.Flag_MouseIcon = true;
var _local2:Sprite = (_arg1.target as Sprite);
var _local3:int;
while (_local3 < _finderAry.length) {
if ((((_local2 === _finderAry[_local3]["o1"])) || ((_local2 === _finderAry[_local3]["o2"])))){
_finded++;
_finderAry[_local3]["o1"].removeEventListener(MouseEvent.CLICK, clickHander);
_finderAry[_local3]["o2"].removeEventListener(MouseEvent.CLICK, clickHander);
_finderAry[_local3]["o1"]["state"] = 1;
_finderAry[_local3]["o2"]["state"] = 1;
_local2.dispatchEvent(new SynchroEvent(SynchroEvent.Synchro_Type, _finderAry[_local3]));
_finderAry.splice(_local3, 1);
};
_local3++;
};
checkPao();
checkLevel();
}
private function initFromXML():void{
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:Object;
_bmdAry = [];
var _local1:Array = DifferentFinderXMLData.getInstance().getFinders(_pmc);
_local1 = GameTools.getSomeArrayList(_local1, SysConfig.Finder_Num);
var _local2:int;
while (_local2 < _local1.length) {
_local3 = _local1[_local2];
_local4 = DifferentFinderXMLData.getInstance().getOtherFinder(_local3, _pmc, Main_GameView._currId);
_local4.rotation = _local3.rotation;
_local5 = {o1:_local3, o2:_local4};
_local5.o1X = _local3.x;
_local5.o1Y = _local3.y;
_local5.o2X = _local4.x;
_local5.o2Y = _local4.y;
_bmdAry.push(_local5);
_local2++;
};
}
public function checkLevel(_arg1:Boolean=false):void{
var _local2:NextLevelEvent;
if (_finded == SysConfig.Finder_Num){
if (Main_GameView._currId == 1){
if (Cookie.instance.achi["achi1"] == false){
Award_HighScore.instance.submitAchievement("award1");
Cookie.instance.achi["achi1"] = true;
Trace("award1");
};
} else {
if (Main_GameView._currId == 4){
if (Cookie.instance.achi["achi2"] == false){
Award_HighScore.instance.submitAchievement("award2");
Cookie.instance.achi["achi2"] = true;
Trace("award2");
};
};
};
};
if ((((_finded == SysConfig.Finder_Num)) || (_arg1))){
SoundsManager.instance.playSound("levelcomplete.wav", 1);
_local2 = new NextLevelEvent(NextLevelEvent.NEXT_LEVEL_TYPE, this);
_pmc.dispatchEvent(_local2);
};
}
private function checkPao():void{
}
private function initDisplay():void{
var _local2:Object;
var _local3:Sprite;
var _local4:Sprite;
var _local5:Point;
var _local6:Point;
_finderAry = [];
var _local1:int;
while (_local1 < _bmdAry.length) {
_local2 = _bmdAry[_local1];
_local3 = _local2["o1"];
_local4 = _local2["o2"];
_local3.mouseChildren = false;
_local4.mouseChildren = false;
_finderAry.push({o1:_local3, o2:_local4});
_pmc.addChild(_local3);
_pmc.addChild(_local4);
_local1++;
};
}
}
}//package com.zlonggames.differentfinder.view.levelone
Section 137
//CircleTracer (com.zlonggames.differentfinder.view.tracer.CircleTracer)
package com.zlonggames.differentfinder.view.tracer {
import flash.display.*;
import flash.events.*;
import com.zlonggames.differentfinder.customevt.*;
import zlong.breathxue.utils.*;
import com.zlonggames.differentfinder.config.*;
public class CircleTracer {
private var _pmc:Sprite;
private var _circleIcon:Sprite;
public function CircleTracer(_arg1:Sprite){
_pmc = _arg1;
initDisplay();
gameInitHandler(null);
}
private function symmetryCusor(_arg1:MouseEvent):void{
_circleIcon.visible = true;
var _local2:TracerEvent = new TracerEvent(TracerEvent.Tracer_Type1, _circleIcon, _arg1);
_circleIcon.dispatchEvent(_local2);
_arg1.updateAfterEvent();
}
private function gameInitHandler(_arg1:LabelListenerEvent):void{
toAddEventListener();
_circleIcon.removeEventListener(LabelListenerEvent.Game_INIT_Listener, gameInitHandler);
_circleIcon.addEventListener(LabelListenerEvent.GAME_OVER_LISTENER, gameOverHandler);
}
public function set visible(_arg1:Boolean):void{
_circleIcon.visible = _arg1;
}
public function removeEventListener(_arg1:String, _arg2:Function):void{
_circleIcon.removeEventListener(_arg1, _arg2);
}
private function gameOverHandler(_arg1:LabelListenerEvent):void{
_circleIcon.removeEventListener(LabelListenerEvent.GAME_OVER_LISTENER, gameOverHandler);
_circleIcon.addEventListener(LabelListenerEvent.Game_INIT_Listener, gameInitHandler);
destroy();
}
public function addEventListener(_arg1:String, _arg2:Function):void{
_circleIcon.addEventListener(_arg1, _arg2);
}
public function toRemoveEventListener():void{
SysConfig.stage.removeEventListener(MouseEvent.MOUSE_MOVE, symmetryCusor);
SysConfig.stage.removeEventListener(Event.MOUSE_LEAVE, circleHide);
}
public function initDisplay():void{
_circleIcon = Attach.getSprite("MC_LM_circle");
_circleIcon.name = SysConfig.MC_Circle_Tracer_Name;
_pmc.addChild(_circleIcon);
}
public function toAddEventListener():void{
SysConfig.stage.addEventListener(MouseEvent.MOUSE_MOVE, symmetryCusor);
SysConfig.stage.addEventListener(Event.MOUSE_LEAVE, circleHide);
}
public function get obj():Sprite{
return (_circleIcon);
}
private function circleHide(_arg1:Event):void{
_circleIcon.visible = false;
}
public function destroy():void{
toRemoveEventListener();
}
}
}//package com.zlonggames.differentfinder.view.tracer
Section 138
//Main_GameView (com.zlonggames.differentfinder.view.Main_GameView)
package com.zlonggames.differentfinder.view {
import flash.display.*;
import com.zlonggames.differentfinder.customevt.*;
import utils.*;
import com.zlonggames.differentfinder.control.viewCore.concrete.*;
import com.zlonggames.differentfinder.customeor.*;
import com.zlonggames.differentfinder.config.*;
public class Main_GameView {
protected var _pmc:Sprite;
public static var _currId:int;
protected static var _xml:XML;
public function Main_GameView(_arg1:Sprite){
_currId = XMLDataControl.getFirstLevelId();
SysConfig.Finder_Num = XMLDataControl.getFinderNum();
_pmc = _arg1;
}
public function quitGame():void{
throw (new FindError("离开游戏时,调用这个方法"));
}
public function removeExtraEventListener():void{
var _local1:Sprite = Tools.findObjectByName[SysConfig.MC_OutmostView_NAME];
_local1.removeEventListener(LabelListenerEvent.Hint_Finder_Tip_Listener, extraWork);
}
public function get XShow():Number{
throw (new FindError("获取子级中的显示对象XShow"));
}
public function get YShow():Number{
throw (new FindError("获取子级中的显示对象YShow"));
}
protected function extraWork(_arg1:LabelListenerEvent):void{
throw (new FindError("处理额外的工作,由事件触发(是指 hint tip 操作)"));
}
public function get showObject():Sprite{
throw (new FindError("获取子级中的显示对象"));
}
public function addExtraEventListener():void{
Tools.findObjectByName(SysConfig.likeRootCon, SysConfig.MC_OutmostView_NAME);
var _local1:Sprite = Tools.findObjectByName[SysConfig.MC_OutmostView_NAME];
_local1.addEventListener(LabelListenerEvent.Hint_Finder_Tip_Listener, extraWork);
}
public static function get xml():XML{
return (_xml);
}
public static function set xml(_arg1:XML):void{
_xml = _arg1;
}
}
}//package com.zlonggames.differentfinder.view
Section 139
//Game (com.zlonggames.differentfinder.Game)
package com.zlonggames.differentfinder {
import flash.display.*;
import flash.events.*;
import com.zlonggames.differentfinder.customevt.*;
import com.zlonggames.differentfinder.view.levelone.*;
import com.zlonggames.differentfinder.view.*;
import utils.*;
import com.zlonggames.differentfinder.control.viewCore.concrete.*;
import com.zlonggames.differentfinder.view.tracer.*;
import com.zlonggames.differentfinder.control.*;
import com.zlonggames.differentfinder.config.*;
import zlong.navigate.*;
public class Game {
private var _mc_gameView:Sprite;
private var _pmc:Sprite;
private var _synchroShow:SynchroShow;
private var _mc_parentGameView:Sprite;
private var _mc_outmostView:Sprite;
private var _symmetryTracer:SymmetryTracer;
private var _UICircleTracer:CircleTracer;
private var _mc_tracer:Sprite;
private var _UIMainGameView:Main_GameView;
private var _loadControl:LoadControl;
private var _character:CharacterControl;
private var _mainBootGame:MainControl;
private var UI_sitelock:Sprite;
public function Game(_arg1:Sprite){
_pmc = _arg1;
containerCategory();
outerLoadHandler();
}
private function toQuitGame(_arg1:LabelListenerEvent):void{
_character.overDestroy();
_mainBootGame.reSetGameCount();
_UIMainGameView.quitGame();
}
private function noticeAddListener(_arg1:LabelListenerEvent):void{
_mainBootGame.removeEventListener(LabelListenerEvent.NOTICE_LEVEL_LISTENER, noticeAddListener);
_mainBootGame.removeEventListener(LabelListenerEvent.GAME_OVER_LISTENER, gameoverListener);
toAddControlEventListener();
_character.update(_UIMainGameView.showObject);
}
private function outerLoadHandler():void{
_loadControl = new LoadControl();
_loadControl.dispatcher.addEventListener(LabelListenerEvent.Main_Boot_Type, init);
_loadControl.loadXML.addEventListener(XMLLoadEvent.Xml_Load, _loadControl.bootGame);
_loadControl.loadXML.loadedXmlComplete(null);
}
private function sitelockNo(_arg1:MouseEvent):void{
Sprite(UI_sitelock["agame"]).removeEventListener(MouseEvent.MOUSE_DOWN, sitelockYes);
Sprite(UI_sitelock["goon"]).removeEventListener(MouseEvent.MOUSE_DOWN, sitelockNo);
SysConfig.likeRootCon.removeChild(UI_sitelock);
Tools.removeDisplayList(UI_sitelock);
UI_sitelock = null;
}
private function sitelockYes(_arg1:MouseEvent):void{
Handler.click_thisgame("site_lock");
}
private function toCharHandler(_arg1:LastLevelEvent):void{
SysConfig.temp_UI_Image = _arg1.tempData;
SysConfig.Pause_Flag = _arg1.pauseFlag;
_character.update(_arg1.showData);
}
private function gameoverListener(_arg1:LabelListenerEvent):void{
Tools.findObjectByName(SysConfig.likeRootCon, SysConfig.MC_Circle_Tracer_Name);
var _local2:Sprite = Tools.findObjectByName[SysConfig.MC_Circle_Tracer_Name];
_local2.dispatchEvent(new LabelListenerEvent(LabelListenerEvent.GAME_OVER_LISTENER));
_mainBootGame.removeEventListener(LabelListenerEvent.GAME_OVER_LISTENER, gameoverListener);
_mainBootGame.addEventListener(LastLevelEvent.NOTICE_Main_TO_Char, toCharHandler);
_mainBootGame.gameOver();
_mainBootGame.removeEventListener(LastLevelEvent.NOTICE_Main_TO_Char, toCharHandler);
_character.overDestroy();
}
private function containerCategory():void{
_mc_tracer = new Sprite();
_mc_outmostView = new Sprite();
_mc_parentGameView = new Sprite();
_mc_gameView = new Sprite();
_mc_gameView.x = SysConfig.X_mc_parentGameView;
_mc_gameView.y = SysConfig.Y_mc_parentGameView;
_pmc.addChild(_mc_outmostView);
_mc_outmostView.addChild(_mc_parentGameView);
_mc_parentGameView.addChild(_mc_gameView);
_pmc.addChild(_mc_tracer);
_mc_outmostView.name = SysConfig.MC_OutmostView_NAME;
_mc_gameView.name = SysConfig.MC_GameView_NAME;
_mc_tracer.name = SysConfig.MC_Tracer_NAME;
_mc_parentGameView.name = SysConfig.MC_Parent_GameView_NAME;
}
public function init(_arg1:LabelListenerEvent):void{
_loadControl.dispatcher.removeEventListener(LabelListenerEvent.Main_Boot_Type, init);
_UIMainGameView = new UI_GameLevel(_mc_gameView);
_mainBootGame = new MainControl(_UIMainGameView);
_UICircleTracer = new CircleTracer(_mc_tracer);
_symmetryTracer = new SymmetryTracer(_UIMainGameView);
_synchroShow = new SynchroShow(_UIMainGameView);
_character = new CharacterControl(_mc_outmostView, _UIMainGameView.showObject);
toAddControlEventListener();
SysConfig.likeRootCon.addEventListener(LabelListenerEvent.QUIT_Game_Listener, toQuitGame, true);
}
private function toAddControlEventListener():void{
_UICircleTracer.visible = true;
_UICircleTracer.addEventListener(TracerEvent.Tracer_Type1, _symmetryTracer.toTrace);
_UIMainGameView.showObject.addEventListener(SynchroEvent.Synchro_Type, _synchroShow.toSynchro);
_UIMainGameView.showObject.addEventListener(NextLevelEvent.NEXT_LEVEL_TYPE, bootNextLevel);
_UIMainGameView.addExtraEventListener();
_mc_outmostView.addEventListener(LabelListenerEvent.Try_Again_Type, tryAgainListener);
}
private function toRemoveControlEventListener():void{
_UICircleTracer.visible = false;
_UICircleTracer.removeEventListener(TracerEvent.Tracer_Type1, _symmetryTracer.toTrace);
_UIMainGameView.showObject.removeEventListener(SynchroEvent.Synchro_Type, _synchroShow.toSynchro);
_UIMainGameView.showObject.removeEventListener(NextLevelEvent.NEXT_LEVEL_TYPE, bootNextLevel);
_UIMainGameView.removeExtraEventListener();
_mc_outmostView.removeEventListener(LabelListenerEvent.Try_Again_Type, tryAgainListener);
}
private function tryAgainListener(_arg1:LabelListenerEvent):void{
var _local2:Sprite = Tools.findObjectByName[SysConfig.MC_Circle_Tracer_Name];
_local2.dispatchEvent(new LabelListenerEvent(LabelListenerEvent.Game_INIT_Listener));
_character.bootCharacter();
}
public function bootNextLevel(_arg1:NextLevelEvent):void{
_character.destroy();
toRemoveControlEventListener();
_mainBootGame.addEventListener(LabelListenerEvent.NOTICE_LEVEL_LISTENER, noticeAddListener);
_mainBootGame.addEventListener(LabelListenerEvent.GAME_OVER_LISTENER, gameoverListener);
_arg1.gameLevel = UI_GameLevel(_UIMainGameView);
_arg1.pmc = _mc_gameView;
_mainBootGame.bootNextLevel(_arg1);
}
}
}//package com.zlonggames.differentfinder
Section 140
//wav (correct_find.wav)
package correct_find {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package correct_find
Section 141
//GameTools (junlas.toolutil.GameTools)
package junlas.toolutil {
import flash.display.*;
import zlong.breathxue.utils.*;
import flash.utils.*;
public class GameTools {
private static var Temp_Show_Name:String = "";
private static var removeAllChild:Function = function (_arg1:Sprite):void{
var _local2:int = containSprite(_arg1);
if (_local2 != -1){
_arg1.removeChildAt(_local2);
removeAllChild(_arg1);
} else {
removeAllChild[Temp_Show_Name] = _arg1;
};
};
private static function containSprite(_arg1:Sprite):int{
var _local2:int;
while (_local2 < _arg1.numChildren) {
if ((_arg1.getChildAt(_local2) is Sprite)){
return (_local2);
};
_local2++;
};
return (-1);
}
public static function copyAtoB(_arg1:Sprite):Sprite{
var _local4:Sprite;
var _local5:Sprite;
var _local6:int;
var _local2:Sprite = Attach.getSprite(getQualifiedClassName(_arg1));
removeAllChild(_local2);
_local2 = removeAllChild[Temp_Show_Name];
var _local3:int;
while (_local3 < _arg1.numChildren) {
_local4 = (_arg1.getChildAt(_local3) as Sprite);
if (_local4){
_local5 = Attach.getSprite(getQualifiedClassName(_local4));
_local5.x = _local4.x;
_local5.y = _local4.y;
_local6 = 0;
while (_local6 < _local4.numChildren) {
_local5.getChildAt(_local6).alpha = _local4.getChildAt(_local6).alpha;
_local5.getChildAt(_local6).scaleX = _local4.getChildAt(_local6).scaleX;
_local5.getChildAt(_local6).scaleY = _local4.getChildAt(_local6).scaleY;
_local5.getChildAt(_local6).rotation = _local4.getChildAt(_local6).rotation;
_local6++;
};
_local5.alpha = _local4.alpha;
_local5.scaleX = _local4.scaleX;
_local5.scaleY = _local4.scaleY;
_local2.addChild(_local5);
};
_local3++;
};
return (_local2);
}
public static function getSomeArrayList(_arg1:Array, _arg2:int):Array{
var _local4:int;
var _local8:int;
var _local9:int;
if (_arg2 > _arg1.length){
throw (new ArgumentError("num不应该大于list的长度!"));
};
var _local3:Array = [];
_local4 = 0;
while (_local4 < _arg1.length) {
_local3.push(_local4);
_local4++;
};
var _local5:int;
while (_local5 < (_arg1.length - _arg2)) {
_local8 = _local3.length;
_local9 = int((Math.random() * _local8));
_local3.splice(_local9, 1);
_local5++;
};
var _local6:Array = [];
var _local7:int;
while (_local7 < _local3.length) {
_local6[_local7] = _arg1[_local3[_local7]];
_local7++;
};
_local4 = 0;
while (_local4 < _arg1.length) {
_arg1[_local4] = null;
_local4++;
};
return (_local6);
}
}
}//package junlas.toolutil
Section 142
//wav (levelcomplete.wav)
package levelcomplete {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package levelcomplete
Section 143
//wav (lm_game.wav)
package lm_game {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package lm_game
Section 144
//wav (lm_game2.wav)
package lm_game2 {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package lm_game2
Section 145
//wav (lm_menu.wav)
package lm_menu {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package lm_menu
Section 146
//wav (menu_press.wav)
package menu_press {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package menu_press
Section 147
//wav (menu_touch.wav)
package menu_touch {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package menu_touch
Section 148
//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 149
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 150
//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 151
//StringUtil (mx.utils.StringUtil)
package mx.utils {
import mx.core.*;
public class StringUtil {
mx_internal static const VERSION:String = "3.5.0.12683";
public static function trim(_arg1:String):String{
if (_arg1 == null){
return ("");
};
var _local2:int;
while (isWhitespace(_arg1.charAt(_local2))) {
_local2++;
};
var _local3:int = (_arg1.length - 1);
while (isWhitespace(_arg1.charAt(_local3))) {
_local3--;
};
if (_local3 >= _local2){
return (_arg1.slice(_local2, (_local3 + 1)));
};
return ("");
}
public static function isWhitespace(_arg1:String):Boolean{
switch (_arg1){
case " ":
case "\t":
case "\r":
case "\n":
case "\f":
return (true);
default:
return (false);
};
}
public static function substitute(_arg1:String, ... _args):String{
var _local4:Array;
if (_arg1 == null){
return ("");
};
var _local3:uint = _args.length;
if ((((_local3 == 1)) && ((_args[0] is Array)))){
_local4 = (_args[0] as Array);
_local3 = _local4.length;
} else {
_local4 = _args;
};
var _local5:int;
while (_local5 < _local3) {
_arg1 = _arg1.replace(new RegExp((("\\{" + _local5) + "\\}"), "g"), _local4[_local5]);
_local5++;
};
return (_arg1);
}
public static function trimArrayElements(_arg1:String, _arg2:String):String{
var _local3:Array;
var _local4:int;
var _local5:int;
if (((!((_arg1 == ""))) && (!((_arg1 == null))))){
_local3 = _arg1.split(_arg2);
_local4 = _local3.length;
_local5 = 0;
while (_local5 < _local4) {
_local3[_local5] = StringUtil.trim(_local3[_local5]);
_local5++;
};
if (_local4 > 0){
_arg1 = _local3.join(_arg2);
};
};
return (_arg1);
}
}
}//package mx.utils
Section 152
//Stats (net.hires.debug.Stats)
package net.hires.debug {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.system.*;
public class Stats extends Sprite {
protected const WIDTH:uint = 70;
protected const HEIGHT:uint = 100;
protected var xml:XML;
protected var text:TextField;
protected var style:StyleSheet;
protected var timer:uint;
protected var fps:uint;
protected var ms:uint;
protected var ms_prev:uint;
protected var mem:Number;
protected var mem_max:Number;
protected var graph:Bitmap;
protected var rectangle:Rectangle;
protected var fps_graph:uint;
protected var mem_graph:uint;
protected var mem_max_graph:uint;
protected var theme:Object;
public function Stats(_arg1:Object=null):void{
this.theme = {bg:51, fps:0xFFFF00, ms:0xFF00, mem:0xFFFF, memmax:0xFF0070};
super();
this.mouseChildren = false;
this.mouseEnabled = false;
if (_arg1){
if (_arg1.bg != null){
this.theme.bg = _arg1.bg;
};
if (_arg1.fps != null){
this.theme.fps = _arg1.fps;
};
if (_arg1.ms != null){
this.theme.ms = _arg1.ms;
};
if (_arg1.mem != null){
this.theme.mem = _arg1.mem;
};
if (_arg1.memmax != null){
this.theme.memmax = _arg1.memmax;
};
};
this.mem_max = 0;
this.xml = <xml><fps>FPS:</fps><ms>MS:</ms><mem>MEM:</mem><memMax>MAX:</memMax></xml>
;
this.style = new StyleSheet();
this.style.setStyle("xml", {fontSize:"9px", fontFamily:"_sans", leading:"-2px"});
this.style.setStyle("fps", {color:this.hex2css(this.theme.fps)});
this.style.setStyle("ms", {color:this.hex2css(this.theme.ms)});
this.style.setStyle("mem", {color:this.hex2css(this.theme.mem)});
this.style.setStyle("memMax", {color:this.hex2css(this.theme.memmax)});
this.text = new TextField();
this.text.width = this.WIDTH;
this.text.height = 50;
this.text.styleSheet = this.style;
this.text.condenseWhite = true;
this.text.selectable = false;
this.text.mouseEnabled = false;
this.graph = new Bitmap();
this.graph.alpha = 0.3;
this.graph.y = 50;
this.rectangle = new Rectangle((this.WIDTH - 1), 0, 1, (this.HEIGHT - 50));
addEventListener(Event.ADDED_TO_STAGE, this.init, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, this.destroy, false, 0, true);
}
private function init(_arg1:Event):void{
graphics.beginFill(this.theme.bg, 0.3);
graphics.drawRect(0, 0, this.WIDTH, this.HEIGHT);
graphics.endFill();
addChild(this.text);
this.graph.bitmapData = new BitmapData(this.WIDTH, (this.HEIGHT - 50), false, this.theme.bg);
addChild(this.graph);
addEventListener(Event.ENTER_FRAME, this.update);
}
private function destroy(_arg1:Event):void{
graphics.clear();
while (numChildren > 0) {
removeChildAt(0);
};
this.graph.bitmapData.dispose();
removeEventListener(Event.ENTER_FRAME, this.update);
}
private function update(_arg1:Event):void{
this.timer = getTimer();
if ((this.timer - 1000) > this.ms_prev){
this.ms_prev = this.timer;
this.mem = Number((System.totalMemory * 9.54E-7).toFixed(3));
this.mem_max = ((this.mem_max > this.mem)) ? this.mem_max : this.mem;
this.fps_graph = Math.min(this.graph.height, ((this.fps / stage.frameRate) * this.graph.height));
this.mem_graph = (Math.min(this.graph.height, Math.sqrt(Math.sqrt((this.mem * 5000)))) - 2);
this.mem_max_graph = (Math.min(this.graph.height, Math.sqrt(Math.sqrt((this.mem_max * 5000)))) - 2);
this.graph.bitmapData.scroll(-1, 0);
this.graph.bitmapData.fillRect(this.rectangle, this.theme.bg);
this.graph.bitmapData.setPixel((this.graph.width - 1), (this.graph.height - this.fps_graph), this.theme.fps);
this.graph.bitmapData.setPixel((this.graph.width - 1), (this.graph.height - ((this.timer - this.ms) >> 1)), this.theme.ms);
this.graph.bitmapData.setPixel((this.graph.width - 1), (this.graph.height - this.mem_graph), this.theme.mem);
this.graph.bitmapData.setPixel((this.graph.width - 1), (this.graph.height - this.mem_max_graph), this.theme.memmax);
this.xml.fps = ((("FPS: " + this.fps) + " / ") + stage.frameRate);
this.xml.mem = ("MEM: " + this.mem);
this.xml.memMax = ("MAX: " + this.mem_max);
this.fps = 0;
};
this.fps++;
this.xml.ms = ("MS: " + (this.timer - this.ms));
this.ms = this.timer;
this.text.htmlText = this.xml;
}
private function onClick(_arg1:MouseEvent):void{
if (((mouseY / height) > 0.5)){
stage.frameRate--;
} else {
stage.frameRate++;
};
this.xml.fps = ((("FPS: " + this.fps) + " / ") + stage.frameRate);
this.text.htmlText = this.xml;
}
private function hex2css(_arg1:int):String{
return (("#" + _arg1.toString(16)));
}
}
}//package net.hires.debug
Section 153
//wav (open_curtain.wav)
package open_curtain {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package open_curtain
Section 154
//wav (other_touch.wav)
package other_touch {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package other_touch
Section 155
//wav (otherclick.wav)
package otherclick {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package otherclick
Section 156
//wav (reduce_points.wav)
package reduce_points {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package reduce_points
Section 157
//Timeline_107 (RideinWoods_fla.Timeline_107)
package RideinWoods_fla {
import flash.display.*;
public dynamic class Timeline_107 extends MovieClip {
public function Timeline_107(){
addFrameScript(37, this.frame38);
}
function frame38(){
stop();
}
}
}//package RideinWoods_fla
Section 158
//Timeline_120 (RideinWoods_fla.Timeline_120)
package RideinWoods_fla {
import flash.display.*;
public dynamic class Timeline_120 extends MovieClip {
public function Timeline_120(){
addFrameScript(35, this.frame36);
}
function frame36(){
stop();
}
}
}//package RideinWoods_fla
Section 159
//Timeline_125 (RideinWoods_fla.Timeline_125)
package RideinWoods_fla {
import flash.display.*;
public dynamic class Timeline_125 extends MovieClip {
public function Timeline_125(){
addFrameScript(29, this.frame30);
}
function frame30(){
stop();
}
}
}//package RideinWoods_fla
Section 160
//wav (show_dialog.wav)
package show_dialog {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package show_dialog
Section 161
//Submitter (Spill.Components.Submitter)
package Spill.Components {
import flash.display.*;
public dynamic class Submitter extends MovieClip {
}
}//package Spill.Components
Section 162
//wav (tip_click.wav)
package tip_click {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package tip_click
Section 163
//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 164
//ExtButton (utils.ExtButton)
package utils {
import flash.display.*;
import com.greensock.*;
import flash.events.*;
import flash.utils.*;
import com.zlonggames.differentfinder.config.*;
public class ExtButton extends MovieClip {
private var _enable:Boolean;
private var _hasAnimation:Boolean;
private var _animationTarget:MovieClip;
public function ExtButton(){
this.stop();
this.buttonMode = true;
this.mouseChildren = false;
_enable = true;
initAnimation();
initEvent();
}
private function rollOutHandler(_arg1:MouseEvent):void{
if (_enable){
this.gotoAndStop(1);
} else {
this.gotoAndStop(4);
};
}
private function mouseDownHandler(_arg1:MouseEvent):void{
if (_enable){
this.gotoAndStop(3);
if (_hasAnimation){
_animationTarget.visible = true;
TweenMax.to(_animationTarget, 2, {frame:(_animationTarget.totalFrames - 1), onComplete:animationOver});
};
} 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 checkState(_arg1:Event):void{
if (((SoundsManager.instance.MusicEnable) && ((getQualifiedClassName(this) === "Music")))){
this.enable = true;
} else {
if (getQualifiedClassName(this) === "Music"){
this.enable = false;
};
};
if (((SoundsManager.instance.Enabled) && ((getQualifiedClassName(this) === "Audio")))){
this.enable = true;
} else {
if (getQualifiedClassName(this) === "Audio"){
this.enable = false;
};
};
}
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);
this.addEventListener(MouseEvent.CLICK, SysConfig.otherSoundClick);
this.addEventListener(MouseEvent.ROLL_OVER, SysConfig.otherSoundMove);
this.addEventListener(Event.ENTER_FRAME, checkState);
}
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);
this.removeEventListener(MouseEvent.MOUSE_DOWN, SysConfig.otherSoundClick);
this.removeEventListener(MouseEvent.ROLL_OVER, SysConfig.otherSoundMove);
this.removeEventListener(Event.ENTER_FRAME, checkState);
}
private function mouseUpHandler(_arg1:MouseEvent):void{
if (_enable){
this.gotoAndStop(2);
} else {
this.gotoAndStop(5);
};
}
private function initAnimation():void{
if (this["musicAnimation"]){
_hasAnimation = true;
_animationTarget = this["musicAnimation"];
_animationTarget.visible = false;
_animationTarget.stop();
};
}
private function animationOver():void{
_animationTarget.visible = false;
_animationTarget.gotoAndStop(0);
}
private function rollOverHandler(_arg1:MouseEvent):void{
if (_enable){
this.gotoAndStop(2);
} else {
this.gotoAndStop(5);
};
}
private function removeFromStageHandler(_arg1:Event):void{
delEvent();
}
public function get enable():Boolean{
return (_enable);
}
}
}//package utils
Section 165
//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 166
//Tools (utils.Tools)
package utils {
import flash.display.*;
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 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 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;
};
}
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"));
}
}
}//package utils
Section 167
//AbstractEffect (zlong.breathxue.utils.animationEffect.AbstractEffect)
package zlong.breathxue.utils.animationEffect {
import flash.display.*;
import flash.utils.*;
public class AbstractEffect {
protected var _mc:DisplayObject;
protected var _id:uint;
protected var _isMerge:Boolean;
protected var _runframe:uint;
protected var _stepframe:uint;
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
public function AbstractEffect(){
if (getQualifiedClassName(this) == "zlong::breathxue::utils::animationEffect::AbstractEffect"){
throw (new ArgumentError("can't be constructed"));
};
}
protected function initAbSet(_arg1:uint, _arg2:DisplayObject, _arg3:uint, _arg4:Boolean):void{
this._id = _arg1;
this._mc = _arg2;
this._isMerge = _arg4;
this._runframe = _arg3;
this._stepframe = 0;
if (this._mc == null){
throw (new ArgumentError("mc can't = null"));
};
}
function checkFinish():Boolean{
return (true);
}
function step():void{
}
function dispatchEvent():void{
}
protected function delMe():void{
var _local1 = getDefinitionByName(getQualifiedClassName(this));
_local1["del"](this._id);
this.dispatchEvent();
}
function get mc():DisplayObject{
return (this._mc);
}
function get isMerge():Boolean{
return (this._isMerge);
}
function get id():uint{
return (this._id);
}
}
}//package zlong.breathxue.utils.animationEffect
Section 168
//EffectManager (zlong.breathxue.utils.animationEffect.EffectManager)
package zlong.breathxue.utils.animationEffect {
import flash.display.*;
import flash.events.*;
import zlong.breathxue.utils.animationEffect.*;
class EffectManager {
public var IdCount:uint;
private var _arr:Array;
private var _listenerMc:DisplayObject;
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
function EffectManager():void{
this.IdCount = 0;
this._arr = new Array();
}
public function push(_arg1:AbstractEffect):uint{
this._arr.push(_arg1);
if (((!(this._listenerMc)) && ((this._arr.length > 0)))){
this._listenerMc = new Sprite();
this._listenerMc.addEventListener(Event.ENTER_FRAME, this.run);
};
return (this.IdCount++);
}
function findAndDeleteSameMcEffect(_arg1:DisplayObject, _arg2:Boolean):AbstractEffect{
var _local4:AbstractEffect;
var _local3:int = (this._arr.length - 1);
while (_local3 >= 0) {
_local4 = this._arr[_local3];
if (_local4.mc == _arg1){
if (((_arg2) && (_local4.isMerge))){
return (_local4);
};
this._arr.splice(_local3, 1);
};
_local3--;
};
return (null);
}
private function run(_arg1:Event):void{
var _local3:AbstractEffect;
var _local4:AbstractEffect;
var _local2:int;
while (_local2 < this._arr.length) {
_local3 = this._arr[_local2];
if (_local3.checkFinish()){
_local4 = (this._arr[_local2] as AbstractEffect);
this._arr.splice(_local2, 1);
_local4.dispatchEvent();
_local2--;
if (this._arr.length <= 0){
this._listenerMc.removeEventListener(Event.ENTER_FRAME, this.run);
this._listenerMc = null;
};
} else {
_local3.step();
};
_local2++;
};
}
public function del(_arg1:uint):void{
var _local2:int;
while (_local2 < this._arr.length) {
if ((this._arr[_local2] as AbstractEffect).id == _arg1){
this._arr.splice(_local2, 1);
if (this._arr.length <= 0){
this._listenerMc.removeEventListener(Event.ENTER_FRAME, this.run);
this._listenerMc = null;
};
return;
};
_local2++;
};
}
public function delByMc(_arg1:DisplayObject):void{
var _local3:AbstractEffect;
var _local2:int = (this._arr.length - 1);
while (_local2 >= 0) {
_local3 = this._arr[_local2];
if (_local3.mc == _arg1){
this._arr.splice(_local2, 1);
};
_local2--;
};
}
public function delAll():void{
this._arr = new Array();
if (this._listenerMc){
this._listenerMc.removeEventListener(Event.ENTER_FRAME, this.run);
this._listenerMc = null;
};
}
public function pauseAll():void{
this._listenerMc.removeEventListener(Event.ENTER_FRAME, this.run);
}
public function reStartAll():void{
this._listenerMc.addEventListener(Event.ENTER_FRAME, this.run);
}
}
}//package zlong.breathxue.utils.animationEffect
Section 169
//MoveEffect (zlong.breathxue.utils.animationEffect.MoveEffect)
package zlong.breathxue.utils.animationEffect {
import flash.display.*;
import flash.events.*;
import zlong.breathxue.utils.math.*;
import zlong.breathxue.utils.*;
public class MoveEffect extends AbstractEffect {
private var _position:mVector;
private var _EndPoint:mVector;
private var _stepVector:mVector;
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
public static const Move_EFFECT_FINISH:String = "Move_EFFECT_FINISH";
private static var _effectManager:EffectManager = new EffectManager();
private function initSet(_arg1:uint, _arg2:DisplayObject, _arg3:mVector, _arg4:mVector, _arg5:Number, _arg6:uint=0, _arg7:mVector=null, _arg8:Boolean=false, _arg9:AbstractEffect=null):void{
super.initAbSet(_arg1, _arg2, _arg6, _arg8);
this._EndPoint = _arg4;
this._stepVector = _arg7;
if ((((_arg5 == 0)) && ((_arg6 == 0)))){
throw (new ArgumentError("one of stepDistance or runframe need be setting"));
};
if (((!(this._EndPoint)) && (((!(_arg7)) || ((_runframe == 0)))))){
throw (new ArgumentError("if EndAlpha == NaN,then stepVector and runframe must be setting"));
};
if (_arg3 == null){
_arg3 = new mVector(_mc.x, _mc.y);
};
if (((_arg8) && (_arg9))){
this._position = (_arg9 as MoveEffect)._position;
} else {
this._position = new mVector();
_mc.x = (this._position.x = _arg3.x);
_mc.y = (this._position.y = _arg3.y);
};
if (!this._EndPoint){
FrameTimer.push(new FrameTimer(_runframe), delMe);
} else {
this._stepVector = this._EndPoint.minus(this._position);
if (_runframe > 0){
this._stepVector.multEquals((1 / (_runframe - _stepframe)));
} else {
this._stepVector.length = Math.abs(_arg5);
};
};
}
override function step():void{
var _local1:Number;
if (this._EndPoint){
if (_runframe > 0){
this._stepVector = this._EndPoint.minus(this._position);
this._stepVector.multEquals((1 / (_runframe - _stepframe)));
_stepframe++;
} else {
_local1 = this._stepVector.length;
this._stepVector = this._EndPoint.minus(this._position);
this._stepVector.length = Math.abs(_local1);
};
};
_mc.x = (this._position.x = (this._position.x + this._stepVector.x));
_mc.y = (this._position.y = (this._position.y + this._stepVector.y));
}
override function checkFinish():Boolean{
if (((this._EndPoint) && ((((((_runframe > 0)) && ((_stepframe >= _runframe)))) || ((this._EndPoint.minus(this._position).length <= Math.abs(this._stepVector.length))))))){
_mc.x = (this._position.x = this._EndPoint.x);
_mc.y = (this._position.y = this._EndPoint.y);
return (true);
};
return (false);
}
override function dispatchEvent():void{
_mc.dispatchEvent(new Event(Move_EFFECT_FINISH));
}
public static function push(_arg1:DisplayObject, _arg2:mVector, _arg3:mVector, _arg4:Number, _arg5:uint=0, _arg6:mVector=null, _arg7:Boolean=false):uint{
var _local8:AbstractEffect = _effectManager.findAndDeleteSameMcEffect(_arg1, _arg7);
var _local9:MoveEffect = new (MoveEffect);
_local9.initSet(_effectManager.IdCount, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _local8);
return (_effectManager.push(_local9));
}
public static function del(_arg1:uint):void{
_effectManager.del(_arg1);
}
public static function delByMc(_arg1:DisplayObject):void{
_effectManager.delByMc(_arg1);
}
public static function delAll():void{
_effectManager.delAll();
}
public static function pauseAll():void{
_effectManager.pauseAll();
}
public static function reStartAll():void{
_effectManager.reStartAll();
}
}
}//package zlong.breathxue.utils.animationEffect
Section 170
//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 zlong.breathxue.utils.*;
import flash.text.*;
public class TC {
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
private static const TITLE_HEIGHT:int = 20;
private static var _MC:Sprite;
private static var _showMc:Sprite;
private static var _smallMc:Sprite;
private static var _Text:TextField;
private static var _move:Boolean;
private static var _nowEffect:Boolean;
public static function InitTC(_arg1:Sprite, _arg2:int=0, _arg3:int=0):void{
if (_arg1.stage == null){
return;
};
TcShow = true;
if (_arg2 == 0){
_arg2 = ((_arg1.stage.stageWidth / 3) * 2);
};
if (_arg3 == 0){
_arg3 = ((_arg1.stage.stageHeight / 3) * 2);
};
_MC = new Sprite();
_arg1.addChild(_MC);
_MC.alpha = 0.5;
_move = false;
createShow(_arg2, _arg3);
createSmall(_arg2);
}
private static function createShow(_arg1:int, _arg2:int):void{
_showMc = new Sprite();
_MC.addChild(_showMc);
_showMc.addChild(maketitle(_arg1));
_showMc.graphics.lineStyle(1, 11187199);
_showMc.graphics.drawRect(0, 0, _arg1, _arg2);
_Text = new TextField();
_Text.x = 0;
_Text.y = TITLE_HEIGHT;
_Text.width = _arg1;
_Text.height = (_arg2 - TITLE_HEIGHT);
_showMc.addChild(_Text);
_Text.multiline = true;
_Text.mouseWheelEnabled = true;
_Text.wordWrap = true;
_Text.background = true;
_Text.backgroundColor = 14541311;
_Text.stage.addEventListener(KeyboardEvent.KEY_DOWN, openAndClose);
}
private static function maketitle(_arg1:int):DisplayObject{
var _local2:Sprite = new Sprite();
_local2.graphics.beginFill(11187199);
_local2.graphics.drawRect(0, 0, _arg1, TITLE_HEIGHT);
_local2.graphics.endFill();
_local2.doubleClickEnabled = true;
var _local3:TextField = new TextField();
_local3.text = "Debug Text ('ctrl + d' open and close it)";
_local3.width = _arg1;
_local3.height = TITLE_HEIGHT;
_local3.mouseEnabled = false;
_local3.selectable = false;
_local2.addChild(_local3);
var _local4:Sprite = new Sprite();
_local4.graphics.beginFill(0, 0);
_local4.graphics.drawRect(0, 0, 18, 18);
_local4.graphics.endFill();
_local4.graphics.lineStyle(2, 11187199);
_local4.graphics.moveTo(6, 6);
_local4.graphics.lineTo(12, 12);
_local4.graphics.moveTo(12, 6);
_local4.graphics.lineTo(6, 12);
_local4.x = (_arg1 - 19);
_local4.y = 1;
_local2.addChild(_local4);
_local4.addEventListener(MouseEvent.CLICK, openAndClose);
_local2.addEventListener(MouseEvent.DOUBLE_CLICK, openAndClose);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, startMove);
_local2.addEventListener(MouseEvent.MOUSE_UP, endMove);
return (_local2);
}
private static function createSmall(_arg1:int):void{
_smallMc = new Sprite();
_smallMc.y = -20;
var _local2:Sprite = new Sprite();
_local2.y = 0;
_local2.graphics.beginFill(11187199);
_local2.graphics.drawRect(0, 0, (_arg1 / 2), TITLE_HEIGHT);
_local2.graphics.endFill();
_local2.doubleClickEnabled = true;
var _local3:TextField = new TextField();
_local3.text = "Debug Text";
_local3.width = (_arg1 / 2);
_local3.height = TITLE_HEIGHT;
_local3.mouseEnabled = false;
_local3.selectable = false;
_local2.addChild(_local3);
_smallMc.addChild(_local2);
_local2.addEventListener(MouseEvent.DOUBLE_CLICK, openAndClose);
}
private static function openAndClose(_arg1:Event):void{
var _local2:KeyboardEvent = (_arg1 as KeyboardEvent);
if (((!(_nowEffect)) && (((!(_local2)) || (((_local2.ctrlKey) && ((_local2.keyCode == 68)))))))){
if (_showMc.parent == null){
MoveEffect.push(_smallMc, new mVector(0, -20), new mVector(_showMc.x, _showMc.y), 0, 5);
_smallMc.addEventListener(MoveEffect.Move_EFFECT_FINISH, EffectFinish);
_nowEffect = true;
} else {
_showMc.visible = false;
_MC.addChild(_smallMc);
MoveEffect.push(_smallMc, new mVector(_showMc.x, _showMc.y), new mVector(0, -20), 0, 5);
_smallMc.addEventListener(MoveEffect.Move_EFFECT_FINISH, EffectFinish);
_nowEffect = true;
};
};
}
private static function EffectFinish(_arg1:Event):void{
_smallMc.removeEventListener(MoveEffect.Move_EFFECT_FINISH, EffectFinish);
_nowEffect = false;
if (_showMc.parent == null){
_showMc.visible = true;
_MC.addChild(_showMc);
_MC.removeChild(_smallMc);
} else {
_MC.removeChild(_showMc);
};
}
private static function endMove(_arg1:MouseEvent):void{
_showMc.stopDrag();
}
private static function startMove(_arg1:MouseEvent):void{
_showMc.startDrag();
}
public static function SHOW(... _args):void{
var _local2:int;
if (_MC){
_local2 = _Text.scrollV;
_Text.appendText((((Tools.getNowTimeAndMileSecond_1() + ": ") + _args.join(" ")) + "\n"));
if (_Text.length != _Text.selectionEndIndex){
_Text.scrollV = _local2;
} else {
_Text.scrollV = _Text.numLines;
};
_MC.parent.setChildIndex(_MC, (_MC.parent.numChildren - 1));
};
}
}
}//package zlong.breathxue.utils.debug
Section 171
//TcShow (zlong.breathxue.utils.debug.TcShow)
package zlong.breathxue.utils.debug {
public var TcShow:Boolean = false;
}//package zlong.breathxue.utils.debug
Section 172
//mVector (zlong.breathxue.utils.math.mVector)
package zlong.breathxue.utils.math {
public class mVector {
private var m_x:Number;
private var m_y:Number;
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
public function mVector(_arg1:Number=0, _arg2:Number=0){
this.m_x = _arg1;
this.m_y = _arg2;
}
public function setTo(_arg1:Number, _arg2:Number):void{
this.m_x = _arg1;
this.m_y = _arg2;
}
public function copyFrom(_arg1:mVector):void{
this.m_x = _arg1.m_x;
this.m_y = _arg1.m_y;
}
public function toString():String{
var _local1:Number = (Math.round((this.m_x * 1000)) / 1000);
var _local2:Number = (Math.round((this.m_y * 1000)) / 1000);
return ((((("[" + _local1) + ", ") + _local2) + "]"));
}
public function clone():mVector{
return (new mVector(this.m_x, this.m_y));
}
public function plus(_arg1:mVector):mVector{
return (new mVector((this.m_x + _arg1.m_x), (this.m_y + _arg1.m_y)));
}
public function plusEquals(_arg1:mVector):mVector{
this.m_x = (this.m_x + _arg1.m_x);
this.m_y = (this.m_y + _arg1.m_y);
return (this);
}
public function minus(_arg1:mVector):mVector{
return (new mVector((this.m_x - _arg1.m_x), (this.m_y - _arg1.m_y)));
}
public function minusEquals(_arg1:mVector):mVector{
this.m_x = (this.m_x - _arg1.m_x);
this.m_y = (this.m_y - _arg1.m_y);
return (this);
}
public function negate():mVector{
return (new mVector(-(this.m_x), -(this.m_y)));
}
public function negateEquals():void{
this.m_x = -(this.m_x);
this.m_y = -(this.m_y);
}
public function mult(_arg1:Number):mVector{
return (new mVector((this.m_x * _arg1), (this.m_y * _arg1)));
}
public function multEquals(_arg1:Number):mVector{
this.m_x = (this.m_x * _arg1);
this.m_y = (this.m_y * _arg1);
return (this);
}
public function rotate(_arg1:Number):mVector{
var _local2:mVector = new mVector(this.m_x, this.m_y);
_local2.rotateEquals(_arg1);
return (_local2);
}
public function rotateEquals(_arg1:Number):void{
var _local2:Number = TF_Class.cosD(_arg1);
var _local3:Number = TF_Class.sinD(_arg1);
var _local4:Number = ((this.m_x * _local2) - (this.m_y * _local3));
var _local5:Number = ((this.m_x * _local3) + (this.m_y * _local2));
this.m_x = _local4;
this.m_y = _local5;
}
public function dot(_arg1:mVector):Number{
return (((this.m_x * _arg1.m_x) + (this.m_y * _arg1.m_y)));
}
public function cross(_arg1:mVector):Number{
return (((this.m_x * _arg1.m_y) - (this.m_y * _arg1.m_x)));
}
public function times(_arg1:mVector):mVector{
return (new mVector((this.m_x * _arg1.m_x), (this.m_y * _arg1.m_y)));
}
public function divEquals(_arg1:Number):mVector{
if (_arg1 == 0){
_arg1 = 0.0001;
};
this.m_x = (this.m_x / _arg1);
this.m_y = (this.m_y / _arg1);
return (this);
}
public function distance(_arg1:mVector):Number{
var _local2:mVector = this.minus(_arg1);
return (_local2.length);
}
public function normalize():mVector{
var _local1:Number = this.length;
if (_local1 == 0){
_local1 = 0.0001;
};
return (this.mult((1 / _local1)));
}
public function getNormal():mVector{
return (new mVector(-(this.m_y), this.m_x));
}
public function isNormalTo(_arg1:mVector):Boolean{
return ((this.dot(_arg1) == 0));
}
public function angleBetween(_arg1:mVector):Number{
var _local2:Number = this.dot(_arg1);
var _local3:Number = (_local2 / (this.length * _arg1.length));
return (TF_Class.acosD(_local3));
}
public function get length():Number{
return (Math.sqrt(((this.m_x * this.m_x) + (this.m_y * this.m_y))));
}
public function set length(_arg1:Number):void{
var _local2:Number = this.length;
if (_local2){
this.multEquals((_arg1 / _local2));
} else {
this.m_x = _arg1;
};
}
public function set angle(_arg1:Number):void{
var _local2:Number = this.length;
this.m_x = (_local2 * TF_Class.cosD(_arg1));
this.m_y = (_local2 * TF_Class.sinD(_arg1));
}
public function get angle():Number{
return (TF_Class.atan2D(this.m_y, this.m_x));
}
public function set x(_arg1:Number):void{
this.m_x = _arg1;
}
public function get x():Number{
return (this.m_x);
}
public function set y(_arg1:Number):void{
this.m_y = _arg1;
}
public function get y():Number{
return (this.m_y);
}
}
}//package zlong.breathxue.utils.math
Section 173
//TF_Class (zlong.breathxue.utils.math.TF_Class)
package zlong.breathxue.utils.math {
public class TF_Class {
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
public static function sinD(_arg1:Number):Number{
return (Math.sin((_arg1 * (Math.PI / 180))));
}
public static function cosD(_arg1:Number):Number{
return (Math.cos((_arg1 * (Math.PI / 180))));
}
public static function tanD(_arg1:Number):Number{
return (Math.tan((_arg1 * (Math.PI / 180))));
}
public static function asinD(_arg1:Number):Number{
return ((Math.asin(_arg1) * (180 / Math.PI)));
}
public static function acosD(_arg1:Number):Number{
return ((Math.acos(_arg1) * (180 / Math.PI)));
}
public static function atanD(_arg1:Number):Number{
return ((Math.atan(_arg1) * (180 / Math.PI)));
}
public static function atan2D(_arg1:Number, _arg2:Number):Number{
return ((Math.atan2(_arg1, _arg2) * (180 / Math.PI)));
}
public static function distance(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number = (_arg3 - _arg1);
var _local6:Number = (_arg4 - _arg2);
return (Math.sqrt(((_local5 * _local5) + (_local6 * _local6))));
}
public static function angleOfLine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (atan2D((_arg4 - _arg2), (_arg3 - _arg1)));
}
public static function degreesToRadians(_arg1:Number):Number{
return ((_arg1 * (Math.PI / 180)));
}
public static function radiansToDegrees(_arg1:Number):Number{
return ((_arg1 * (180 / Math.PI)));
}
public static function fixAngle(_arg1:Number):Number{
_arg1 = (_arg1 % 360);
return (((_arg1)<0) ? (_arg1 + 360) : _arg1);
}
public static function cartesianToPolar(_arg1:mVector):Object{
var _local2:Number = Math.sqrt(((_arg1.x * _arg1.x) + (_arg1.y * _arg1.y)));
var _local3:Number = atan2D(_arg1.y, _arg1.x);
return ({r:_local2, t:_local3});
}
public static function FormatAngle(_arg1:Number):Number{
_arg1 = (_arg1 % 360);
if (_arg1 > 180){
_arg1 = (_arg1 - 360);
};
if (_arg1 < -180){
_arg1 = (_arg1 + 360);
};
return (_arg1);
}
public static function FormatAngle90(_arg1:Number):Number{
_arg1 = (_arg1 % 180);
if (_arg1 > 90){
_arg1 = (180 - _arg1);
};
if (_arg1 < -90){
_arg1 = (_arg1 + 180);
};
return (_arg1);
}
}
}//package zlong.breathxue.utils.math
Section 174
//Attach (zlong.breathxue.utils.Attach)
package zlong.breathxue.utils {
import flash.display.*;
import flash.media.*;
import flash.utils.*;
public class Attach {
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
public static function getDisplayObject(_arg1:String):DisplayObject{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:DisplayObject = new (_local2);
return (_local3);
}
public static function getSprite(_arg1:String):Sprite{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:Sprite = new (_local2);
return (_local3);
}
public static function getMovieClip(_arg1:String):MovieClip{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:MovieClip = new (_local2);
return (_local3);
}
public static function getBitmapData(_arg1:String):BitmapData{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:BitmapData = new _local2(null, null);
return (_local3);
}
public static function getSound(_arg1:String):Sound{
var _local2:Class = (getDefinitionByName(_arg1) as Class);
var _local3:Sound = new (_local2);
return (_local3);
}
}
}//package zlong.breathxue.utils
Section 175
//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 176
//FrameTimer (zlong.breathxue.utils.FrameTimer)
package zlong.breathxue.utils {
import flash.display.*;
import flash.events.*;
public class FrameTimer implements IEventDispatcher {
private var _ED:EventDispatcher;
private var _runframe:uint;
private var _cycleNum:uint;
private var _step:uint;
private var _id:uint;
private var _returnFunctionAlarm:Function;
private var _returnFunctionFinish:Function;
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
public static const FRAMETIMER_ALARM:String = "FRAMETIMER_ALARM";
public static const FRAMETIMER_FINISH:String = "FRAMETIMER_FINISH";
private static var IdCount:uint = 0;
private static var _arr:Array = new Array();
private static var _listenerMc:DisplayObject;
public function FrameTimer(_arg1:uint, _arg2:uint=0, _arg3:uint=0, _arg4:DisplayObject=null){
this._step = 0;
this._runframe = _arg1;
this._cycleNum = _arg2;
this._ED = new EventDispatcher(this);
if ((((_arg3 > 0)) && (_arg4))){
if (!_arg4.stage){
throw (new ArgumentError("mc didn`t connect stage"));
};
this._runframe = uint(((_arg3 / 1000) * _arg4.stage.frameRate));
};
this._id = FrameTimer.add(this);
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
this._ED.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
this._ED.removeEventListener(_arg1, _arg2, _arg3);
}
public function dispatchEvent(_arg1:Event):Boolean{
return (this._ED.dispatchEvent(_arg1));
}
public function hasEventListener(_arg1:String):Boolean{
return (this._ED.hasEventListener(_arg1));
}
public function willTrigger(_arg1:String):Boolean{
return (this._ED.willTrigger(_arg1));
}
public function del():void{
FrameTimer.delById(this._id);
}
public function get id():uint{
return (this._id);
}
public static function push(_arg1:FrameTimer, _arg2:Function=null, _arg3:Function=null):uint{
_arg1._returnFunctionAlarm = _arg2;
_arg1._returnFunctionFinish = _arg3;
return (_arg1._id);
}
private static function add(_arg1:FrameTimer, _arg2:Function=null, _arg3:Function=null):uint{
_arr.push(_arg1);
if (!_listenerMc){
_listenerMc = new Sprite();
_listenerMc.addEventListener(Event.ENTER_FRAME, run);
};
return (IdCount++);
}
private static function run(_arg1:Event):void{
var _local3:FrameTimer;
var _local2:int;
while (_local2 < _arr.length) {
_local3 = _arr[_local2];
if (_local3._step >= _local3._runframe){
_local3._ED.dispatchEvent(new Event(FRAMETIMER_ALARM));
if (_local3._returnFunctionAlarm != null){
_local3._returnFunctionAlarm();
};
_local3._step = 0;
_local3._step++;
if (_local3._cycleNum <= 0){
_local3._ED.dispatchEvent(new Event(FRAMETIMER_FINISH));
if (_local3._returnFunctionFinish != null){
_local3._returnFunctionFinish();
};
_arr.splice(_local2, 1);
_local2--;
if (_arr.length <= 0){
_listenerMc.removeEventListener(Event.ENTER_FRAME, run);
_listenerMc = null;
};
} else {
_local3._cycleNum--;
};
} else {
_local3._step++;
};
_local2++;
};
}
public static function delById(_arg1:uint):void{
var _local2:int;
while (_local2 < _arr.length) {
if ((_arr[_local2] as FrameTimer)._id == _arg1){
_arr.splice(_local2, 1);
if (_arr.length <= 0){
_listenerMc.removeEventListener(Event.ENTER_FRAME, run);
_listenerMc = null;
};
return;
};
_local2++;
};
}
public static function delAll():void{
_arr = new Array();
if (_listenerMc){
_listenerMc.removeEventListener(Event.ENTER_FRAME, run);
_listenerMc = null;
};
}
public static function pauseAll():void{
_listenerMc.removeEventListener(Event.ENTER_FRAME, run);
}
public static function reStartAll():void{
_listenerMc.addEventListener(Event.ENTER_FRAME, run);
}
}
}//package zlong.breathxue.utils
Section 177
//Tools (zlong.breathxue.utils.Tools)
package zlong.breathxue.utils {
import flash.display.*;
import flash.geom.*;
public class Tools {
breathxue_utils_internal static const VERSION:String = "v1.10.201004261516";
public static function getNowTimeAndMileSecond_1():String{
var _local1:Date = new Date();
var _local2:int = _local1.getHours();
var _local3:int = _local1.getMinutes();
var _local4:int = _local1.getSeconds();
var _local5:int = _local1.getMilliseconds();
return (((((((((_local2 < 10)) ? ("0" + _local2) : _local2 + ":") + ((_local3 < 10)) ? ("0" + _local3) : _local3) + ":") + ((_local4 < 10)) ? ("0" + _local4) : _local4) + ":") + ((_local5 < 10)) ? ("00" + _local5) : ((_local5 < 100)) ? ("0" + _local5) : _local5));
}
public static function cutBmp(_arg1:DisplayObject, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):BitmapData{
var _local8:BitmapData;
var _local9:Rectangle;
var _local10:Matrix = new Matrix();
_local10.tx = -(_arg4);
_local10.ty = -(_arg5);
_local9 = new Rectangle(0, 0, _arg6, _arg7);
_local8 = new BitmapData(_arg2, _arg3, true, 0);
_local8.draw(_arg1, _local10, null, null, _local9, true);
return (_local8);
}
}
}//package zlong.breathxue.utils
Section 178
//Countries (zlong.country.Countries)
package zlong.country {
import zlong.country.*;
import zlong.*;
class Countries {
private var _countries:Object;
private var _portal:String;
private var _portalGroup:Array;
private var _country:String;
private var _countryGroup:Array;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
function Countries(){
this.initPortalGroup();
}
function set portal(_arg1:String):void{
if (!this.inArray(_arg1, this._portalGroup)){
throw (new ArgumentError(("Please set portal with value : " + this._portalGroup.toString())));
};
this._portal = _arg1;
this.initCountries();
if (((!((this._country == null))) && (!(this.inArray(this._country, this._countryGroup))))){
throw (new ArgumentError(("Please reset country with value : " + this._countryGroup.toString())));
};
}
function get portal():String{
return (this._portal);
}
function set country(_arg1:String):void{
if (((!((this._countryGroup == null))) && (!(this.inArray(_arg1, this._countryGroup))))){
this._country = this._countryGroup[0];
trace(("Error in the country value,set country with default value : " + this._countryGroup[0]));
trace(("Please set country with value : " + this._countryGroup.toString()));
} else {
this._country = _arg1;
};
}
function get current():CountryItem{
if (this._portal == null){
throw (new ArgumentError("Please set portal"));
};
if (this._country == null){
throw (new ArgumentError("Please set country"));
};
return (this._countries[this._country]);
}
function get countryGroup():Array{
if (this._countryGroup == null){
throw (new ArgumentError("Please set portal"));
};
return (this._countryGroup);
}
private function initCountries():void{
var _local1:CountryItem;
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:int;
this._countries = new Object();
this._countryGroup = new Array();
var _local6:int;
while (_local6 < CountriesData.DATA[this._portal]["country"].length()) {
_local2 = CountriesData.DATA[this._portal]["country"][_local6].@name;
_local3 = CountriesData.DATA[this._portal]["country"][_local6].@domain;
_local4 = CountriesData.DATA[this._portal]["country"][_local6].@game;
_local5 = int(CountriesData.DATA[this._portal]["country"][_local6].@language);
_local1 = new CountryItem();
_local1.name = _local2;
_local1.domain = _local3;
_local1.game = _local4;
_local1.language = _local5;
this._countries[_local1.name] = _local1;
this._countryGroup.push(_local2);
_local6++;
};
}
private function initPortalGroup():void{
this._portalGroup = new Array();
var _local1:int;
while (_local1 < CountriesData.DATA.children().length()) {
this._portalGroup.push(CountriesData.DATA.children()[_local1].name());
_local1++;
};
}
private function inArray(_arg1:String, _arg2:Array):Boolean{
var _local3:int;
while (_local3 < _arg2.length) {
if (_arg1 == _arg2[_local3]){
return (true);
};
_local3++;
};
return (false);
}
}
}//package zlong.country
Section 179
//CountriesData (zlong.country.CountriesData)
package zlong.country {
import zlong.*;
class CountriesData {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
static const DATA:XML = <data>
<family>
<!-- new -->
<country name="arg" domain="www.juegos.com.ar" game="game" language="6"/><!-- Argentina -->
<country name="mx" domain="www.juegos.mx" game="game" language="6"/><!-- Mexico -->
<country name="ar" domain="www.dailygame.com" game="game" language="1"/><!-- Arabic(English US) 2009.07.14-->
<country name="br" domain="www.ojogos.com.br" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="17"/><!-- Chinese -->
<country name="de" domain="www.jetztspielen.de" game="spiel" language="5"/><!-- German -->
<country name="es" domain="www.juegos.com" game="juego" language="6"/><!-- Spanish -->
<country name="fr" domain="www.jeux.fr" game="jeu" language="4"/><!-- French -->
<country name="id" domain="www.games.co.id" game="permainanme" language="14"/><!-- Indonesian -->
<country name="in" domain="www.game.co.in" game="game" language="2"/><!-- English UK -->
<country name="it" domain="www.gioco.it" game="gioco" language="9"/><!-- Italian -->
<country name="jp" domain="www.egames.jp" game="game" language="16"/><!-- Japanese -->
<country name="nl" domain="www.spelletjes.nl" game="spel" language="3"/><!-- Dutch -->
<country name="pl" domain="www.gry.pl" game="gra" language="11"/><!-- Polish -->
<country name="pt" domain="www.ojogos.pt" game="jogo" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.ourgames.ru" game="igra" language="12"/><!-- Russian -->
<country name="se" domain="www.spela.se" game="spel_" language="10"/><!-- Swedish -->
<country name="en_uk" domain="www.games.co.uk" game="game" language="2"/><!-- English UK -->
<country name="en_us" domain="www.gamesgames.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
<!-- country name="ph" domain="www.laro.com.ph" game="game" language="2"/ --><!-- English UK -->
<!-- country name="tr" domain="www.asoyun.com" game="oyun" language="13"/ --><!-- Turkish -->
<!-- country name="my" domain="www.game.com.my" game="permainan_" language="15"/ --><!-- Malaysian -->
</family>
<tween>
<!-- new -->
<country name="arg" domain="www.juegos.com.ar" game="game" language="6"/><!-- Argentina -->
<country name="mx" domain="www.juegos.mx" game="game" language="6"/><!-- Mexico -->
<country name="ar" domain="www.dailygame.com" game="game" language="1"/><!-- Arabic(English US) 2009.07.14 -->
<country name="br" domain="www.clickjogos.com" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="17"/><!-- Chinese -->
<country name="de" domain="www.spielen.com" game="spiel" language="5"/><!-- German -->
<country name="es" domain="www.zapjuegos.com" game="juego" language="6"/><!-- Spanish -->
<country name="fr" domain="www.jeu.fr" game="jeu" language="4"/><!-- French -->
<country name="id" domain="www.games.co.id" game="permainanme" language="14"/><!-- Indonesian -->
<country name="in" domain="www.game.co.in" game="game" language="2"/><!-- English UK -->
<country name="it" domain="www.gioco.it" game="gioco" language="9"/><!-- Italian 2009.08.10 -->
<country name="jp" domain="www.egames.jp" game="game" language="16"/><!-- Japanese -->
<country name="nl" domain="www.spel.nl" game="spel" language="3"/><!-- Dutch -->
<country name="pl" domain="www.gry.pl" game="gra" language="11"/><!-- Polish 2009.08.10-->
<country name="pt" domain="www.ojogos.pt" game="jogo" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.flashgames.ru" game="igra" language="12"/><!-- Russian -->
<country name="se" domain="www.spel.se" game="spel_" language="10"/><!-- Swedish -->
<country name="en_uk" domain="www.agame.com" game="game" language="2"/><!-- English UK 2009.08.28-->
<country name="en_us" domain="www.agame.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
<!-- country name="ph" domain="www.laro.com.ph" game="game" language="2"/ --><!-- English UK -->
<!-- country name="tr" domain="www.asoyun.com" game="oyun" language="13"/ --><!-- Turkish -->
<!-- country name="my" domain="www.game.com.my" game="permainan_" language="15"/ --><!-- Malaysian -->
</tween>
<girl>
<!-- new -->
<country name="arg" domain="www.juegosdechicas.com.ar" game="game" language="6"/><!-- Argentina -->
<country name="mx" domain="www.juegosdechicas.mx" game="game" language="6"/><!-- Mexico -->
<country name="ar" domain="www.dailygame.com" game="game" language="1"/><!-- Arabic(English US) 2009.07.14-->
<country name="br" domain="www.girlsgogames.com.br" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="17"/><!-- Chinese -->
<country name="de" domain="www.girlsgogames.de" game="spiel" language="5"/><!-- German -->
<country name="es" domain="www.girlsgogames.es" game="juego" language="6"/><!-- Spanish -->
<country name="fr" domain="www.girlsgogames.fr" game="jeu" language="4"/><!-- French -->
<country name="id" domain="www.games.co.id" game="permainanme" language="14"/><!-- Indonesian -->
<country name="in" domain="www.game.co.in" game="game" language="2"/><!-- English UK -->
<country name="it" domain="www.girlsgogames.it" game="gioco" language="9"/><!-- Italian -->
<country name="jp" domain="www.egames.jp" game="game" language="16"/><!-- Japanese -->
<country name="nl" domain="www.girlsgogames.nl" game="spel" language="3"/><!-- Dutch -->
<country name="pl" domain="www.girlsgogames.pl" game="gra" language="11"/><!-- Polish -->
<country name="pt" domain="www.ojogos.pt" game="jogo" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.girlsgogames.ru" game="igra" language="12"/><!-- Russian -->
<country name="se" domain="www.girlsgogames.se" game="spel_" language="10"/><!-- Swedish -->
<country name="en_uk" domain="www.girlsgogames.co.uk" game="game" language="2"/><!-- English UK -->
<country name="en_us" domain="www.girlsgogames.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
<!-- country name="ph" domain="www.laro.com.ph" game="game" language="2"/ --><!-- English UK -->
<!-- country name="tr" domain="www.girlsgogamestr.com" game="oyun" language="13"/ --><!-- Turkish -->
<!-- country name="my" domain="www.game.com.my" game="permainan_" language="15"/ --><!-- Malaysian -->
</girl>
<teen>
<!-- new -->
<!--country name="arg" domain="www.juegosdechicas.com.ar" game="game" language="6"/ --><!-- Argentina -->
<!--country name="mx" domain="www.juegosdechicas.mx" game="game" language="6"/ --><!-- Mexico -->
<!--country name="ar" domain="www.dailygame.com" game="game" language="1"/ --><!-- Arabic(English US) 2009.07.14-->
<!--country name="br" domain="www.a10.com" game="jogo" language="7"/ --><!-- Brazillian -->
<!--country name="cn" domain="www.game.com.cn" game="moregames" language="17"/ --><!-- Chinese -->
<!--country name="de" domain="www.a10.com" game="spiel" language="5"/ --><!-- German -->
<!--country name="es" domain="www.a10.com" game="juego" language="6"/ --><!-- Spanish -->
<!--country name="fr" domain="www.a10.com" game="jeu" language="4"/ --><!-- French -->
<!--country name="id" domain="www.a10.com" game="permainanme" language="14"/ --><!-- Indonesian -->
<!--country name="in" domain="www.a10.com" game="game" language="2"/ --><!-- English UK -->
<!--country name="it" domain="www.a10.com" game="gioco" language="9"/ --><!-- Italian -->
<!--country name="jp" domain="www.a10.com" game="game" language="16"/ --><!-- Japanese -->
<!--country name="nl" domain="www.a10.com" game="spel" language="3"/ --><!-- Dutch -->
<!--country name="pl" domain="www.a10.com" game="gra" language="11"/ --><!-- Polish -->
<!--country name="pt" domain="www.a10.com" game="jogo" language="8"/ --><!-- Portuguese -->
<!--country name="ru" domain="www.a10.com" game="igra" language="12"/ --><!-- Russian -->
<!--country name="se" domain="www.a10.com" game="spel_" language="10"/ --><!-- Swedish -->
<!--country name="en_uk" domain="www.a10.com" game="game" language="2"/ --><!-- English UK -->
<country name="en_us" domain="www.a10.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
<!-- country name="ph" domain="www.a10.com" game="game" language="2"/ --><!-- English UK -->
<!-- country name="tr" domain="www.a10.com" game="oyun" language="13"/ --><!-- Turkish -->
<!-- country name="my" domain="www.a10.com" game="permainan_" language="15"/ --><!-- Malaysian -->
</teen>
<zapapa>
<!-- new -->
<country name="arg" domain="www.zapapa.com" game="game" language="6"/><!-- Argentina -->
<country name="mx" domain="www.zapapa.com" game="game" language="6"/><!-- Mexico -->
<country name="ar" domain="www.zapapa.com" game="game" language="1"/><!-- Arabic(English US) 2009.07.14-->
<country name="br" domain="www.zapapa.com" game="game" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.zapapa.com" game="game" language="17"/><!-- Chinese -->
<country name="de" domain="www.zapapa.com" game="game" language="5"/><!-- German -->
<country name="es" domain="www.zapapa.com" game="game" language="6"/><!-- Spanish -->
<country name="fr" domain="www.zapapa.com" game="game" language="4"/><!-- French -->
<country name="id" domain="www.zapapa.com" game="game" language="14"/><!-- Indonesian -->
<country name="in" domain="www.zapapa.com" game="game" language="2"/><!-- English UK -->
<country name="it" domain="www.zapapa.com" game="game" language="9"/><!-- Italian -->
<country name="jp" domain="www.zapapa.com" game="game" language="16"/><!-- Japanese -->
<country name="nl" domain="www.zapapa.com" game="game" language="3"/><!-- Dutch -->
<country name="pl" domain="www.zapapa.com" game="game" language="11"/><!-- Polish -->
<country name="pt" domain="www.zapapa.com" game="game" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.zapapa.com" game="game" language="12"/><!-- Russian -->
<country name="se" domain="www.zapapa.com" game="game" language="10"/><!-- Swedish -->
<country name="en_uk" domain="www.zapapa.com" game="game" language="2"/><!-- English UK -->
<country name="en_us" domain="www.zapapa.com" game="game" language="1"/><!-- English US -->
</zapapa>
<hyves>
<!-- new -->
<country name="nl" domain="www.zapapa.nl" game="game" language="3"/><!-- Dutch -->
</hyves>
</data>
;
}
}//package zlong.country
Section 180
//CountryInfo (zlong.country.CountryInfo)
package zlong.country {
import zlong.domain.*;
import zlong.*;
import zlong.data.*;
public class CountryInfo {
private var countries:Countries;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
private static var _instance:CountryInfo;
public function CountryInfo(){
this.countries = new Countries();
}
public function set portal(_arg1:String):void{
this.countries.portal = _arg1;
}
public function get portal():String{
return (this.countries.portal);
}
public function set country(_arg1:String):void{
this.countries.country = _arg1;
}
public function get country():String{
return (this.countries.current.name);
}
public function get domain():String{
return (this.countries.current.domain);
}
public function get language():int{
return (this.countries.current.language);
}
public function get countryGroup():Array{
return (this.countries.countryGroup);
}
public function get moreGameLink():String{
var _local1:String;
_local1 = ("http://" + this.domain);
if (this.countries.current.name != "cn"){
_local1 = (_local1 + "/");
_local1 = (_local1 + ("?utm_medium=brandedgames_" + (DomainInfo.instance.allowed) ? "internal" : "external"));
_local1 = (_local1 + ("&utm_campaign=" + GameInfo.name));
_local1 = (_local1 + ("&utm_source=" + DomainInfo.instance.domainAb));
} else {
_local1 = (_local1 + "/");
_local1 = (_local1 + "moregames");
_local1 = (_local1 + "/");
};
return (_local1);
}
public function get thisGameLink():String{
var _local1:String;
_local1 = ("http://" + this.domain);
_local1 = (_local1 + ((("/" + this.countries.current.game) + "/") + GameInfo.html));
if (this.countries.current.name != "cn"){
_local1 = (_local1 + ("?utm_medium=brandedgames_" + (DomainInfo.instance.allowed) ? "internal" : "external"));
_local1 = (_local1 + ("&utm_campaign=" + GameInfo.name));
_local1 = (_local1 + ("&utm_source=" + DomainInfo.instance.domainAb));
};
return (_local1);
}
public function get sendToFriendLink():String{
var _local1:String = this.thisGameLink;
if (this.countries.current.name != "cn"){
_local1 = (_local1 + "&utm_content=send_to_friend");
};
return (_local1);
}
public static function get instance():CountryInfo{
if (_instance == null){
_instance = new (CountryInfo);
};
return (_instance);
}
}
}//package zlong.country
Section 181
//CountryItem (zlong.country.CountryItem)
package zlong.country {
import zlong.*;
final class CountryItem {
var name:String;
var domain:String;
var game:String;
var language:int;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
}
}//package zlong.country
Section 182
//CountryCookie (zlong.data.CountryCookie)
package zlong.data {
import flash.net.*;
import zlong.*;
public class CountryCookie {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
private static const name:String = "spilgames_language_v100";
private static const countryName:String = "savedLang";
private static var so:SharedObject;
public function CountryCookie():void{
so = SharedObject.getLocal(name, "/");
}
localComponent_internal static function set country(_arg1:String):void{
so.data[countryName] = _arg1;
}
localComponent_internal static function get country():String{
return (so.data[countryName]);
}
}
}//package zlong.data
Section 183
//GameInfo (zlong.data.GameInfo)
package zlong.data {
import zlong.*;
public class GameInfo {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
localComponent_internal static var cnversion:Boolean = false;
localComponent_internal static var portal:String = "family";
localComponent_internal static var name:String = "game_name";
localComponent_internal static var html:String = "Game-Name.html";
localComponent_internal static var width:int = 550;
localComponent_internal static var height:int = 400;
}
}//package zlong.data
Section 184
//AbstractBindingDisplay (zlong.display.AbstractBindingDisplay)
package zlong.display {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class AbstractBindingDisplay extends MovieClip {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public function AbstractBindingDisplay(){
if (getQualifiedClassName(this) == "zlong::display::AbstractBindingDisplay"){
throw (new ArgumentError("can't be constructed"));
};
}
public function initEvent(_arg1:Event=null):void{
}
public function delEvent(_arg1:Event=null):void{
}
}
}//package zlong.display
Section 185
//BindingDisplayEvent (zlong.display.BindingDisplayEvent)
package zlong.display {
import flash.events.*;
public class BindingDisplayEvent extends Event {
private var _BD:AbstractBindingDisplay;
private var _displayType:String;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public static const BINDING_DISPLAY_INIT:String = "BINDING_DISPLAY_INIT";
public static const BINDING_DISPLAY_DEL_EVENT:String = "BINDING_DISPLAY_DEL_EVENT";
public static const BINDING_DISPLAY_ADDED_TO_STAGE:String = "BINDING_DISPLAY_ADDED_TO_STAGE";
public static const BINDING_DISPLAY_REMOVE_TO_STAGE:String = "BINDING_DISPLAY_REMOVE_TO_STAGE";
public function BindingDisplayEvent(_arg1:String, _arg2:AbstractBindingDisplay, _arg3:String, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this._BD = _arg2;
this._displayType = _arg3;
}
public function get bindingDisplay():AbstractBindingDisplay{
return (this._BD);
}
public function get displayType():String{
return (this._displayType);
}
}
}//package zlong.display
Section 186
//BindingDisplayManager (zlong.display.BindingDisplayManager)
package zlong.display {
import flash.events.*;
public class BindingDisplayManager extends EventDispatcher {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
private static var _instance:BindingDisplayManager;
public function BindingDisplayManager():void{
}
public static function get Instance():BindingDisplayManager{
if (_instance == null){
_instance = new (BindingDisplayManager);
};
return (_instance);
}
}
}//package zlong.display
Section 187
//CountriesBox (zlong.display.CountriesBox)
package zlong.display {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import zlong.data.*;
import zlong.country.*;
public class CountriesBox extends AbstractBindingDisplay {
private var i:uint;
private var mul:int;// = 1
private var baseX:Number;// = 0
private var baseY:Number;// = 0
private var nameGroup:Array;
private var obj:Object;
private var pop:Sprite;
private var flagMc:MovieClip;
private var selectBox:MovieClip;
private var country_name:MovieClip;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public function CountriesBox(){
this.nameGroup = [];
super();
addEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_INIT, this, "CountriesBox"));
}
private function addToStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_ADDED_TO_STAGE, this, "CountriesBox"));
this.initEvent();
}
private function removeFromStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_REMOVE_TO_STAGE, this, "CountriesBox"));
this.delEvent();
}
override public function initEvent(_arg1:Event=null):void{
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
this.initShow();
addEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
}
override public function delEvent(_arg1:Event=null):void{
removeEventListener(MouseEvent.ROLL_OVER, this.overHandler);
removeEventListener(MouseEvent.ROLL_OUT, this.outHandler);
removeEventListener(MouseEvent.CLICK, this.clickHandler);
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
if (this.hasEventListener(Event.REMOVED_FROM_STAGE)){
removeEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
};
this.delPoPEvent();
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_DEL_EVENT, this, "CountriesBox"));
}
private function initShow():void{
this.obj = new Object();
this.initPos();
this.setFlag();
this.setPop();
this.initFlagEvent();
this.initPoPEvent();
if (GameInfo.cnversion){
this.visible = false;
this.setLanguage("cn");
};
}
private function initPos():void{
var _local1:Point = new Point();
_local1 = this.parent.localToGlobal(new Point(x, y));
if (_local1.y > (GameInfo.height / 2)){
this.mul = 1;
} else {
this.mul = -1;
};
}
private function setFlag():void{
this.country_name = (getChildByName("countryName") as MovieClip);
this.flagMc = (getChildByName("flag") as MovieClip);
this.flagMc.gotoAndStop(CountryInfo.instance.country);
this.country_name.gotoAndStop(CountryInfo.instance.country);
}
private function setPop():void{
var _local1:Number;
var _local2:Number;
var _local5:MovieClip;
var _local6:String;
var _local8:MovieClip;
var _local3:Number = 0;
var _local4:Number = 0;
this.pop = (getChildByName("popList") as Sprite);
this.selectBox = (getChildByName("selectbox") as MovieClip);
_local1 = this.pop.getChildByName("_blank").width;
_local2 = (this.pop.getChildByName("_blank").height - 1);
this.baseX = this.selectBox.x;
this.nameGroup = CountryInfo.instance.countryGroup;
var _local7:int = this.nameGroup.length;
if (this.mul == 1){
this.baseY = ((this.selectBox.y - (Math.round((_local7 / 2)) * _local2)) + _local2);
} else {
this.baseY = ((this.selectBox.y + this.selectBox.height) + _local2);
};
this.pop.y = this.baseY;
this.pop.visible = false;
this.pop.getChildByName("_blank").visible = false;
this.i = 0;
while (this.i < _local7) {
_local6 = this.nameGroup[this.i];
if (this.pop.getChildByName(("l_" + _local6)) != null){
_local5 = (this.pop.getChildByName(("l_" + _local6)) as MovieClip);
_local5.mouseChildren = false;
_local5.buttonMode = true;
_local5.stop();
_local8 = (_local5.getChildByName("flag") as MovieClip);
_local8.mouseEnabled = false;
_local8.mouseChildren = false;
_local8.gotoAndStop(_local6);
this.obj[("l_" + _local6)] = true;
_local3 = (((this.i % 2) == 0)) ? 0 : 1;
_local5.x = ((_local1 * (this.i % 2)) - _local3);
_local5.y = ((_local2 * Math.floor((this.i / 2))) - _local2);
};
this.i++;
};
this.i = 0;
while (this.i < this.pop.numChildren) {
if (this.pop.getChildAt(this.i).name.indexOf("l_") != -1){
if (this.obj[this.pop.getChildAt(this.i).name] == undefined){
this.pop.getChildAt(this.i).visible = false;
};
};
this.i++;
};
if ((this.nameGroup.length % 2) == 0){
this.pop.getChildByName("_blank").visible = false;
} else {
this.pop.getChildByName("_blank").visible = true;
this.pop.getChildByName("_blank").x = (_local1 - 1);
this.pop.getChildByName("_blank").y = (((_local2 * Math.floor((this.nameGroup.length / 2))) - _local2) - _local4);
};
}
private function initFlagEvent():void{
addEventListener(MouseEvent.ROLL_OVER, this.overHandler, false, 0, true);
addEventListener(MouseEvent.ROLL_OUT, this.outHandler, false, 0, true);
addEventListener(MouseEvent.CLICK, this.clickHandler, false, 0, true);
}
private function clickHandler(_arg1:MouseEvent):void{
var _local3:MovieClip;
var _local2:String = _arg1.target["name"];
if (_local2 == "_blank"){
return;
};
if (_local2.indexOf("l_") != -1){
_local3 = (_arg1.target["getChildByName"]("flag") as MovieClip);
this.flagMc.gotoAndStop(_local2.substr(2));
this.country_name.gotoAndStop(_local3.currentFrame);
this.setLanguage(_local2.substr(2));
this.pop.visible = false;
};
}
private function setLanguage(_arg1:String):void{
CountryInfo.instance.country = _arg1;
CountryCookie.country = _arg1;
Dispatcher.langChanged();
}
private function overHandler(_arg1:MouseEvent):void{
this.pop.visible = true;
}
private function outHandler(_arg1:MouseEvent):void{
this.pop.visible = false;
}
private function initPoPEvent():void{
this.pop.addEventListener(MouseEvent.MOUSE_OVER, this.overPoPHandler);
this.pop.addEventListener(MouseEvent.MOUSE_OUT, this.outPoPHandler);
}
private function delPoPEvent():void{
this.pop.removeEventListener(MouseEvent.MOUSE_OVER, this.overPoPHandler);
this.pop.removeEventListener(MouseEvent.MOUSE_OUT, this.outPoPHandler);
}
private function overPoPHandler(_arg1:MouseEvent):void{
var _local2 = _arg1.target;
_local2["gotoAndStop"](2);
}
private function outPoPHandler(_arg1:MouseEvent):void{
var _local2 = _arg1.target;
_local2["gotoAndStop"](1);
}
}
}//package zlong.display
Section 188
//Dispatcher (zlong.display.Dispatcher)
package zlong.display {
import flash.events.*;
import zlong.*;
class Dispatcher {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
static const LANGUAGE_CHANGED:String = "languageChanged";
static var dispatcher:EventDispatcher = new EventDispatcher();
static function langChanged():void{
dispatcher.dispatchEvent(new Event(LANGUAGE_CHANGED));
}
}
}//package zlong.display
Section 189
//ExtButton (zlong.display.ExtButton)
package zlong.display {
import flash.events.*;
import zlong.navigate.*;
public class ExtButton extends AbstractBindingDisplay {
private var _type:String;// = "moregames"
private var _position:String;// = "button_preloader"
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public function ExtButton(){
this.gotoAndStop(1);
this.buttonMode = true;
this.mouseChildren = false;
addEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_INIT, this, "ExtButton"));
}
private function addToStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_ADDED_TO_STAGE, this, "ExtButton"));
this.initEvent();
}
private function removeFromStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_REMOVE_TO_STAGE, this, "ExtButton"));
this.delEvent();
}
override public function initEvent(_arg1:Event=null):void{
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
this.addEventListener(MouseEvent.CLICK, this.clickHandler);
this.addEventListener(MouseEvent.ROLL_OVER, this.rollOverHandler);
this.addEventListener(MouseEvent.MOUSE_DOWN, this.mouseDownHandler);
this.addEventListener(MouseEvent.MOUSE_UP, this.mouseUpHandler);
this.addEventListener(MouseEvent.ROLL_OUT, this.rollOutHandler);
this.addEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
}
override public function delEvent(_arg1:Event=null):void{
this.removeEventListener(MouseEvent.CLICK, this.clickHandler);
this.removeEventListener(MouseEvent.ROLL_OVER, this.rollOverHandler);
this.removeEventListener(MouseEvent.MOUSE_DOWN, this.mouseDownHandler);
this.removeEventListener(MouseEvent.MOUSE_UP, this.mouseUpHandler);
this.removeEventListener(MouseEvent.ROLL_OUT, this.rollOutHandler);
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
if (this.hasEventListener(Event.REMOVED_FROM_STAGE)){
removeEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
};
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_DEL_EVENT, this, "ExtButton"));
}
public function set position(_arg1:String):void{
this._position = _arg1;
}
public function set type(_arg1:String):void{
this._type = _arg1;
}
private function clickHandler(_arg1:MouseEvent):void{
if (this._type == "moregames"){
Handler.click_moregames(this._position);
} else {
Handler.click_thisgame(this._position);
};
}
private function rollOverHandler(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function mouseDownHandler(_arg1:MouseEvent):void{
this.gotoAndStop(3);
}
private function mouseUpHandler(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function rollOutHandler(_arg1:MouseEvent):void{
this.gotoAndStop(1);
}
}
}//package zlong.display
Section 190
//Logo (zlong.display.Logo)
package zlong.display {
import flash.display.*;
import flash.events.*;
import zlong.country.*;
import zlong.navigate.*;
public class Logo extends AbstractBindingDisplay {
private const MAX_WIDTH:int = 200;
private const Max_HEIGHT:int = 50;
private var _hitArea:Sprite;
private var _position:String;// = "logo_preloader"
private var _alignHorizontal:String;// = "Center"
private var _alignVertical:String;// = "Center"
private var _maxWidth:Number;// = 150
private var _maxHeight:Number;// = 40
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public function Logo(){
this.initDis();
addEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler, false, 0, true);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_INIT, this, "Logo"));
}
private function addToStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_ADDED_TO_STAGE, this, "Logo"));
this.initEvent();
}
private function removeFromStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_REMOVE_TO_STAGE, this, "Logo"));
this.delEvent();
}
override public function initEvent(_arg1:Event=null):void{
gotoAndStop(CountryInfo.instance.domain);
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
this.addEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
this.addEventListener(MouseEvent.CLICK, this.clickHandler);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, this.langChangeHandler);
this.updateView();
}
override public function delEvent(_arg1:Event=null):void{
this.delDis();
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
if (this.hasEventListener(Event.REMOVED_FROM_STAGE)){
removeEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
};
this.removeEventListener(MouseEvent.CLICK, this.clickHandler);
Dispatcher.dispatcher.removeEventListener(Dispatcher.LANGUAGE_CHANGED, this.langChangeHandler);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_DEL_EVENT, this, "Logo"));
}
public function set position(_arg1:String):void{
this._position = _arg1;
}
public function set alignHorizontal(_arg1:String):void{
this._alignHorizontal = _arg1;
}
public function set alignVertical(_arg1:String):void{
this._alignVertical = _arg1;
}
public function set maxWidth(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
} else {
if (_arg1 > this.MAX_WIDTH){
_arg1 = this.MAX_WIDTH;
};
};
this._maxWidth = _arg1;
}
public function set maxHeight(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
} else {
if (_arg1 > this.Max_HEIGHT){
_arg1 = this.Max_HEIGHT;
};
};
this._maxHeight = _arg1;
}
private function updateView():void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local1:Sprite = (this.getChildAt(0) as Sprite);
if (!_local1){
return;
};
_local1.scaleX = 1;
_local1.scaleY = 1;
if ((((_local1.height > 0)) && ((_local1.width > 0)))){
_local2 = (this._maxHeight / _local1.height);
_local3 = (this._maxWidth / _local1.width);
_local4 = ((_local2 > _local3)) ? _local3 : _local2;
_local1.scaleX = _local4;
_local1.scaleY = _local4;
};
if (this._alignHorizontal){
switch (this._alignHorizontal){
case "Left":
_local1.x = 0;
break;
case "Right":
_local1.x = (this.MAX_WIDTH - _local1.width);
break;
case "Center":
_local1.x = ((this.MAX_WIDTH - _local1.width) / 2);
break;
};
};
if (this._alignVertical){
switch (this._alignVertical){
case "Up":
_local1.y = 0;
break;
case "Down":
_local1.y = (this.Max_HEIGHT - _local1.height);
break;
case "Center":
_local1.y = ((this.Max_HEIGHT - _local1.height) / 2);
break;
};
};
this._hitArea.width = _local1.width;
this._hitArea.height = _local1.height;
this._hitArea.x = _local1.x;
this._hitArea.y = _local1.y;
}
private function initDis():void{
buttonMode = true;
this._hitArea = new Sprite();
this.addChild(this._hitArea);
this._hitArea.graphics.beginFill(3368601, 0);
this._hitArea.graphics.drawRect(0, 0, 10, 10);
this._hitArea.graphics.endFill();
this.getChildByName("displayArea_mc").visible = false;
var _local1:int;
while (_local1 < this.totalFrames) {
this.addFrameScript(_local1, this.updateView);
_local1++;
};
}
private function delDis():void{
stop();
}
private function clickHandler(_arg1:MouseEvent):void{
Handler.click_moregames(this._position);
}
private function langChangeHandler(_arg1:Event):void{
gotoAndStop(CountryInfo.instance.domain);
}
}
}//package zlong.display
Section 191
//Menu (zlong.display.Menu)
package zlong.display {
import flash.events.*;
import flash.display.*;
import zlong.country.*;
import zlong.*;
import flash.ui.*;
import zlong.navigate.*;
public class Menu {
private var displayObject:InteractiveObject;
private var menu:ContextMenu;
private var item:ContextMenuItem;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public function Menu(_arg1:InteractiveObject){
this.displayObject = _arg1;
this.init();
this.initEvent();
}
private function init():void{
this.menu = new ContextMenu();
this.menu.hideBuiltInItems();
var _local1:ContextMenuBuiltInItems = this.menu.builtInItems;
_local1.print = true;
_local1.zoom = true;
_local1.quality = true;
this.item = new ContextMenuItem(("MoreGame: " + CountryInfo.instance.domain));
this.menu.customItems.push(this.item);
this.displayObject.contextMenu = this.menu;
}
private function initEvent():void{
this.item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, this.clickItemHandler);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, this.changeLang);
}
private function changeLang(_arg1:Event):void{
this.item.caption = CountryInfo.instance.domain;
}
private function clickItemHandler(_arg1:ContextMenuEvent):void{
Handler.click_moregames("Contex_Menu");
}
}
}//package zlong.display
Section 192
//TranText (zlong.display.TranText)
package zlong.display {
import flash.events.*;
import zlong.country.*;
public class TranText extends AbstractBindingDisplay {
private var isChange:Boolean;// = true
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public function TranText(){
addEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler, false, 0, true);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_INIT, this, "TranText"));
}
private function addToStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_ADDED_TO_STAGE, this, "TranText"));
this.initEvent();
}
private function removeFromStageHandler(_arg1:Event):void{
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_REMOVE_TO_STAGE, this, "TranText"));
this.delEvent();
}
override public function initEvent(_arg1:Event=null):void{
this.changeLang();
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
addEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, this.langChangeHandler);
}
override public function delEvent(_arg1:Event=null):void{
if (this.hasEventListener(Event.ADDED_TO_STAGE)){
removeEventListener(Event.ADDED_TO_STAGE, this.addToStageHandler);
};
if (this.hasEventListener(Event.REMOVED_FROM_STAGE)){
removeEventListener(Event.REMOVED_FROM_STAGE, this.removeFromStageHandler);
};
Dispatcher.dispatcher.removeEventListener(Dispatcher.LANGUAGE_CHANGED, this.langChangeHandler);
BindingDisplayManager.Instance.dispatchEvent(new BindingDisplayEvent(BindingDisplayEvent.BINDING_DISPLAY_DEL_EVENT, this, "TranText"));
}
public function set change(_arg1:Boolean):void{
this.isChange = _arg1;
}
private function changeLang():void{
gotoAndStop(CountryInfo.instance.language);
}
private function langChangeHandler(_arg1:Event):void{
if (this.isChange){
this.changeLang();
};
}
}
}//package zlong.display
Section 193
//DomainData (zlong.domain.DomainData)
package zlong.domain {
import zlong.*;
final class DomainData {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
static const allowedDomain:Array = ["www8.agame.com", "www.zlonggamestest.com", "gamedev.dev.spilgames.com"];
}
}//package zlong.domain
Section 194
//DomainInfo (zlong.domain.DomainInfo)
package zlong.domain {
import flash.net.*;
import zlong.*;
public final class DomainInfo {
private var _allowed:Boolean;
private var _domain:String;
private var _domainAb:String;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
private static var _instance:DomainInfo;
public function DomainInfo(){
this._domain = new LocalConnection().domain;
this.initAllowed();
this.initAb();
}
localComponent_internal function get allowed():Boolean{
return (this._allowed);
}
localComponent_internal function get domain():String{
return (this._domain);
}
localComponent_internal function get domainAb():String{
return (this._domainAb);
}
private function initAllowed():void{
var _local1:int;
while (_local1 < DomainData.allowedDomain.length) {
if (this._domain == DomainData.allowedDomain[_local1]){
this._allowed = true;
break;
};
_local1++;
};
}
private function initAb():void{
var _local1:Array;
var _local2:int;
var _local3:int;
if (this._domain != "localhost"){
_local1 = this._domain.split(".");
_local2 = (_local1.length - 1);
_local3 = (_local1.length - 2);
this._domainAb = ((_local1[_local3] + ".") + _local1[_local2]);
} else {
this._domainAb = "offline_play";
};
}
public static function get instance():DomainInfo{
if (_instance == null){
_instance = new (DomainInfo);
};
return (_instance);
}
}
}//package zlong.domain
Section 195
//Handler (zlong.navigate.Handler)
package zlong.navigate {
import flash.events.*;
import zlong.country.*;
import flash.net.*;
import zlong.*;
import flash.external.*;
public class Handler {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public static function click_gamecn(_arg1:Event=null):void{
var _local2:URLRequest = new URLRequest("http://www.game.com.cn");
navigateToURL(_local2, "_blank");
}
public static function click_copyright(_arg1:Event=null):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest("http://www.game.com.cn");
} else {
_local2 = new URLRequest("http://www.gameportal.net");
};
navigateToURL(_local2, "_blank");
}
public static function refurbish(_arg1:Event=null):void{
var e = _arg1;
try {
ExternalInterface.call("location.reload");
navigateToURL(new URLRequest(ExternalInterface.call("window.location.href.toString")), "_top");
} catch(myError:Error) {
};
}
public static function click_thisgame(_arg1:String):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.moreGameLink);
} else {
_local2 = new URLRequest(((CountryInfo.instance.thisGameLink + "&utm_content=") + _arg1));
};
navigateToURL(_local2, "_blank");
}
public static function click_moregames(_arg1:String):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.moreGameLink);
} else {
_local2 = new URLRequest(((CountryInfo.instance.moreGameLink + "&utm_content=") + _arg1));
};
navigateToURL(_local2, "_blank");
}
}
}//package zlong.navigate
Section 196
//LocalSiteDataLoader (zlong.site.LocalSiteDataLoader)
package zlong.site {
import flash.events.*;
import flash.net.*;
import zlong.*;
public class LocalSiteDataLoader {
private var _localSiteDataLoader:URLLoader;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
private static var _localSiteDataLoaderFinish:Boolean = true;
public function LocalSiteDataLoader(){
super();
_localSiteDataLoaderFinish = false;
this._localSiteDataLoader = new URLLoader();
this._localSiteDataLoader.dataFormat = URLLoaderDataFormat.TEXT;
this._localSiteDataLoader.addEventListener(IOErrorEvent.IO_ERROR, this.errorHandler);
this._localSiteDataLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.errorHandler);
this._localSiteDataLoader.addEventListener(Event.COMPLETE, this.LocalSiteDataLoaderFinish);
try {
this._localSiteDataLoader.load(new URLRequest(SiteData.URL));
} catch(e:Error) {
errorHandler();
};
}
private function LocalSiteDataLoaderFinish(_arg1:Event):void{
SiteData.allowedSite = new XML(this._localSiteDataLoader.data);
_localSiteDataLoaderFinish = true;
this.delLocalSiteDataLoader();
}
private function errorHandler(_arg1:Event=null):void{
SiteData.allowedSite = <sites></sites>
;
_localSiteDataLoaderFinish = true;
this.delLocalSiteDataLoader();
}
private function delLocalSiteDataLoader():void{
this._localSiteDataLoader.removeEventListener(IOErrorEvent.IO_ERROR, this.errorHandler);
this._localSiteDataLoader.removeEventListener(Event.COMPLETE, this.LocalSiteDataLoaderFinish);
this._localSiteDataLoader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this.errorHandler);
this._localSiteDataLoader = null;
}
public static function get localSiteDataLoaderFinish():Boolean{
return (_localSiteDataLoaderFinish);
}
}
}//package zlong.site
Section 197
//SiteData (zlong.site.SiteData)
package zlong.site {
import zlong.*;
public final class SiteData {
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public static const URL:String = "http://www8.agame.com/games/sitelock/sites.xml";
public static var allowedSite:XML;
}
}//package zlong.site
Section 198
//Award_HighScore (zlong.spilSystemTool.Award_HighScore)
package zlong.spilSystemTool {
import flash.events.*;
import flash.display.*;
import zlong.Template.*;
import Spill.Components.*;
import zlong.*;
public class Award_HighScore implements IEventDispatcher {
private var _sub:Submitter;
private var _debug:Boolean;
private var _mc:DisplayObject;
framework_internal static const VERSION:String = "v1.08.201005181800";
public static const AWORD_HIGHSCORE_TOOL_INITIALIZED_COMPONENT:String = "AWORD_HIGHSCORE_TOOL_INITIALIZED_COMPONENT";
public static const AWORD_HIGHSCORE_TOOL_INITIALIZED_FAILED:String = "AWORD_HIGHSCORE_TOOL_INITIALIZED_FAILED";
public static const SCORE_LOAD_ERROR:String = "ScoreLoadError";
public static const SCORE_LOAD_TIME_COMPLETE:String = "ScoreLoadTimeComplete";
public static const SCORE_LOAD_SUBMET_COMPLETE:String = "ScoreLoadSubmitComplete";
public static const SCORE_LOAD_LIST_COMPLETE:String = "ScoreLoadListComplete";
public static const ACHIEV_LOAD_ERROW:String = "AchievLoadError";
public static const ACHIEV_LOAD_TIME_COMPLETE:String = "AchievLoadTimeComplete";
public static const ACHIEV_LOAD_LIST_COMPLETE:String = "AchievLoadListComplete";
public static const ACHIEV_LOADINFO_COMPLETE:String = "AchievLoadInfoComplete";
public static const ACHIEV_LOADGRANT_COMPLETE:String = "AchievLoadGrantComplete";
private static var _instance:Award_HighScore;
private static var _initialized_finish:Boolean = true;
public function Award_HighScore(){
_initialized_finish = false;
this._sub = new Submitter();
this._sub.addEventListener(Event.COMPLETE, this.SubmiterComponentInitialized);
this._sub.addEventListener(IOErrorEvent.IO_ERROR, this.FailedToLoadSubmitter);
this._sub.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.FailedToLoadSubmitter);
this._sub.addEventListener("LoadingFailed", this.FailedToLoadSubmitter);
}
public function init(_arg1:String, _arg2:DisplayObject, _arg3:Boolean=false, _arg4:Boolean=true):void{
this._debug = _arg3;
this._mc = _arg2;
if (_arg2.stage == null){
throw (new ArgumentError("container need be added in stage"));
};
if (this._sub){
this._sub._O0000Ol01(_arg2, AbstractRootClass.cutGameName(_arg1), (AbstractRootClass.cutGameName(_arg1, "-", true) + ".html"), 0, "normal", "", 0, 0, 1, _arg3);
};
}
private function SubmiterComponentInitialized(_arg1:Event):void{
if (this._debug){
Trace(("Award_HighScore_Tool_Initialized_Component" + _arg1));
if (this._mc){
this._mc.stage.addEventListener(KeyboardEvent.KEY_DOWN, this.keyBoardSendAwards);
};
};
_initialized_finish = true;
this._sub.removeEventListener(Event.COMPLETE, this.SubmiterComponentInitialized);
this._sub.removeEventListener(IOErrorEvent.IO_ERROR, this.FailedToLoadSubmitter);
this._sub.removeEventListener("LoadingFailed", this.FailedToLoadSubmitter);
this._sub.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this.FailedToLoadSubmitter);
if (this._debug){
this._sub.addEventListener(SCORE_LOAD_ERROR, this.eventHandlerScore);
this._sub.addEventListener(SCORE_LOAD_TIME_COMPLETE, this.eventHandlerScore);
this._sub.addEventListener(SCORE_LOAD_SUBMET_COMPLETE, this.eventHandlerScore);
this._sub.addEventListener(SCORE_LOAD_LIST_COMPLETE, this.eventHandlerScore);
this._sub.addEventListener(ACHIEV_LOAD_ERROW, this.eventHandlerAchiev);
this._sub.addEventListener(ACHIEV_LOAD_TIME_COMPLETE, this.eventHandlerAchiev);
this._sub.addEventListener(ACHIEV_LOAD_LIST_COMPLETE, this.eventHandlerAchiev);
this._sub.addEventListener(ACHIEV_LOADINFO_COMPLETE, this.eventHandlerAchiev);
this._sub.addEventListener(ACHIEV_LOADGRANT_COMPLETE, this.eventHandlerAchiev);
};
this.dispatchEvent(new Event(AWORD_HIGHSCORE_TOOL_INITIALIZED_COMPONENT));
}
private function keyBoardSendAwards(_arg1:Event):void{
var _local2:KeyboardEvent = (_arg1 as KeyboardEvent);
if (((((_local2.ctrlKey) && ((_local2.keyCode > 48)))) && ((_local2.keyCode < 58)))){
this.submitAchievement(("award" + String.fromCharCode(_local2.keyCode)));
};
}
private function FailedToLoadSubmitter(_arg1:Event):void{
if (this._debug){
Trace(("Award_HighScore_Tool_Initialized_Failed" + _arg1));
};
_initialized_finish = true;
this._sub.removeEventListener(Event.COMPLETE, this.SubmiterComponentInitialized);
this._sub.removeEventListener("LoadingFailed", this.FailedToLoadSubmitter);
this._sub.removeEventListener(IOErrorEvent.IO_ERROR, this.FailedToLoadSubmitter);
this._sub.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this.FailedToLoadSubmitter);
this.dispatchEvent(new Event(AWORD_HIGHSCORE_TOOL_INITIALIZED_FAILED));
this._sub = null;
}
private function eventHandlerScore(_arg1:Event):void{
if (_arg1.currentTarget.OO00OO1l1l.O0l00l0O0 != null){
Trace(("SCORE_EVENT" + _arg1.currentTarget.OO00OO1l1l.O0l00l0O0.toString()));
} else {
Trace(("SCORE_EVENT" + _arg1.type));
};
}
private function eventHandlerAchiev(_arg1:Event):void{
if (_arg1.currentTarget.OO00OO1l1l.O1OlOO00O != null){
Trace(("ACHIEV_EVENT" + _arg1.currentTarget.OO00OO1l1l.O1OlOO00O.toString()));
} else {
Trace(("ACHIEV_EVENT" + _arg1.type));
};
}
public function requestAchievementList():void{
if (this._sub){
this._sub._O1OlO10OO();
};
}
public function requestAchievementInfo(_arg1:int):void{
if (this._sub){
this._sub._OOlOOOll1(_arg1);
};
}
public function requestHighScoreList():void{
if (this._sub){
this._sub._O110l10ll();
};
}
public function requestUserHighScoreList(_arg1:String):void{
if (this._sub){
this._sub._O11lll1OO0(_arg1);
};
}
public function submitScore(_arg1):void{
if (this._sub){
if (this.isDomainAllowed()){
this._sub._O01lOO10O(_arg1);
} else {
Trace("No...DomainAllowed");
};
};
}
public function submitAchievement(_arg1):void{
if (this._sub){
if (this.isDomainAllowed()){
this._sub._O00OOl1Ol(_arg1);
} else {
Trace("No...DomainAllowed");
};
};
}
public function isComponentInitialized():Boolean{
if (this._sub){
return (this._sub._O0O1l0OO0);
};
return (false);
}
public function isDomainAllowed():Boolean{
if (this._sub){
return (this._sub._O0Olll0lO);
};
return (false);
}
public function destroy():void{
if (this._sub){
if (this._debug){
if (this._sub.hasEventListener("ScoreLoadError")){
this._sub.removeEventListener("ScoreLoadError", this.eventHandlerScore);
};
if (this._sub.hasEventListener("ScoreLoadTimeComplete")){
this._sub.removeEventListener("ScoreLoadTimeComplete", this.eventHandlerScore);
};
if (this._sub.hasEventListener("ScoreLoadSubmitComplete")){
this._sub.removeEventListener("ScoreLoadSubmitComplete", this.eventHandlerScore);
};
if (this._sub.hasEventListener("ScoreLoadListComplete")){
this._sub.removeEventListener("ScoreLoadListComplete", this.eventHandlerScore);
};
if (this._sub.hasEventListener("AchievLoadError")){
this._sub.removeEventListener("AchievLoadError", this.eventHandlerAchiev);
};
if (this._sub.hasEventListener("AchievLoadTimeComplete")){
this._sub.removeEventListener("AchievLoadTimeComplete", this.eventHandlerAchiev);
};
if (this._sub.hasEventListener("AchievLoadListComplete")){
this._sub.removeEventListener("AchievLoadListComplete", this.eventHandlerAchiev);
};
if (this._sub.hasEventListener("AchievLoadInfoComplete")){
this._sub.removeEventListener("AchievLoadInfoComplete", this.eventHandlerAchiev);
};
if (this._sub.hasEventListener("AchievLoadGrantComplete")){
this._sub.removeEventListener("AchievLoadGrantComplete", this.eventHandlerAchiev);
};
if (((this._mc) && (this._mc.stage.hasEventListener(KeyboardEvent.KEY_DOWN)))){
this._mc.stage.addEventListener(KeyboardEvent.KEY_DOWN, this.keyBoardSendAwards);
};
};
this._sub._O010ll111();
};
this._sub = null;
}
public function dispatchEvent(_arg1:Event):Boolean{
if (this._sub){
return (this._sub.dispatchEvent(_arg1));
};
return (false);
}
public function hasEventListener(_arg1:String):Boolean{
if (this._sub){
return (this._sub.hasEventListener(_arg1));
};
return (false);
}
public function willTrigger(_arg1:String):Boolean{
if (this._sub){
return (this._sub.willTrigger(_arg1));
};
return (false);
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (this._sub){
this._sub.removeEventListener(_arg1, _arg2, _arg3);
};
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (this._sub){
this._sub.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
};
}
public static function get instance():Award_HighScore{
if (_instance == null){
_instance = new (Award_HighScore);
};
return (_instance);
}
public static function get initializedFinish():Boolean{
return (_initialized_finish);
}
}
}//package zlong.spilSystemTool
Section 199
//GoogleEvent (zlong.spilSystemTool.GoogleEvent)
package zlong.spilSystemTool {
import flash.display.*;
import flash.net.*;
import com.google.analytics.*;
import zlong.utils.*;
public class GoogleEvent {
private var _gaGameName:String;
private var _gaTracker:GATracker;
private var _gaEventArr:Array;
private var _gaSharedObject:SharedObject;
framework_internal static const VERSION:String = "v1.08.201005181800";
private static var _instance:GoogleEvent;
public function GoogleEvent():void{
}
public function init(_arg1:String, _arg2:DisplayObject, _arg3:Boolean):void{
var _local4:String;
this._gaGameName = _arg1;
this._gaTracker = new GATracker(_arg2, "UA-6695967-1", "AS3", _arg3);
this._gaEventArr = new Array();
this._gaSharedObject = SharedObjectUtil.getLocal("googleEvent");
for (_local4 in this._gaSharedObject.data) {
this._gaEventArr.push(_local4);
};
}
public function gaTrackEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=true):void{
var _local4:int;
if (((!(_arg3)) || (!(_arg2)))){
_local4 = 0;
while (_local4 < this._gaEventArr.length) {
if (_arg1 == this._gaEventArr[_local4]){
return;
};
_local4++;
};
if (!_arg3){
this._gaSharedObject.data[_arg1] = 1;
SharedObjectUtil.save(this._gaSharedObject);
};
this._gaEventArr.push(_arg1);
};
this._gaTracker.trackEvent(this._gaGameName, _arg1, "per session", 0);
}
public static function get instance():GoogleEvent{
if (_instance == null){
_instance = new (GoogleEvent);
};
return (_instance);
}
}
}//package zlong.spilSystemTool
Section 200
//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);
_mc_perBar.gotoAndStop(int((_local2 * 100)));
}
private function initDis(_arg1:Sprite):void{
_mc = Attach.getSprite(MC_CLASS_NAME);
_arg1.addChild(_mc);
_mc_perBar = (_mc.getChildByName("perLoading") as MovieClip);
}
}
}//package zlong.Template.demo.ui
Section 201
//AbstractLoadingClass (zlong.Template.AbstractLoadingClass)
package zlong.Template {
import flash.display.*;
import flash.utils.*;
public class AbstractLoadingClass {
framework_internal static const VERSION:String = "v1.08.201005181800";
public function AbstractLoadingClass(_arg1:Sprite){
if (getQualifiedClassName(this) == "zlong::Template::AbstractLoadingClass"){
throw (new ArgumentError("can't be constructed"));
};
}
public function destroy():void{
throw (new ArgumentError("function destroy must be override"));
}
}
}//package zlong.Template
Section 202
//AbstractMainClass (zlong.Template.AbstractMainClass)
package zlong.Template {
import flash.display.*;
import zlong.spilSystemTool.*;
import flash.text.*;
import net.hires.debug.*;
import zlong.utils.*;
import flash.utils.*;
public class AbstractMainClass {
private var __mainMc:Sprite;
protected var __GameMc:Sprite;
private var _childClass:Class;
framework_internal static const VERSION:String = "v1.08.201005181800";
public function AbstractMainClass(_arg1:Sprite){
if (getQualifiedClassName(this) == "zlong::Template::AbstractMainClass"){
throw (new ArgumentError("can't be constructed"));
};
this._childClass = (getDefinitionByName(getQualifiedClassName(this)) as Class);
this.__mainMc = _arg1;
this.__GameMc = new Sprite();
this.__GameMc.name = "GameMc";
this.__mainMc.addChild(this.__GameMc);
this.initGameSetting();
}
protected function initGameSetting():void{
SharedObjectUtil.init(this.gameNameUnderline);
GoogleEvent.instance.init(this.gameNameUnderline, this.__mainMc.root, AbstractRootClass.instance._childClass["__debug__"]);
}
protected function showVersion(_arg1:String):void{
var _local2:Sprite;
_local2 = new Sprite();
_local2.name = "VersionMc";
_local2.mouseEnabled = false;
this.__mainMc.addChild(_local2);
var _local3:TextField = new TextField();
_local3.selectable = false;
_local3.mouseEnabled = false;
_local3.defaultTextFormat = new TextFormat("_san", 12, 0);
_local3.width = 200;
_local3.height = 50;
_local3.x = 0;
_local3.y = 0;
_local3.text = _arg1;
_local2.addChild(_local3);
}
protected function showFPS():void{
this.__mainMc.addChild(new Stats());
}
public function get gameNameUnderline():String{
return (AbstractRootClass.cutGameName((AbstractRootClass.instance._childClass["GAME_NAME"] as String)));
}
}
}//package zlong.Template
Section 203
//AbstractRootClass (zlong.Template.AbstractRootClass)
package zlong.Template {
import flash.events.*;
import flash.display.*;
import zlong.spilSystemTool.*;
import zlong.site.*;
import zlong.*;
import flash.utils.*;
import flash.geom.*;
public class AbstractRootClass extends MovieClip {
var _childClass:Class;
private var __mainMc:Sprite;
private var _game:Object;
private var _realLoaderUI:Object;
private var _textLoaderUI:TextLoader;
private var _loadingComplete:Boolean;
framework_internal static const VERSION:String = "v1.08.201005181800";
static var instance:AbstractRootClass;
public function AbstractRootClass(){
instance = this;
this._loadingComplete = false;
this.stop();
if (getQualifiedClassName(this) == "zlong::Template::AbstractRootClass"){
throw (new ArgumentError("can't be constructed"));
};
this._childClass = (getDefinitionByName(getQualifiedClassName(this)) as Class);
if (!(this._childClass["GAME_FRAMERATE"] is int)){
throw (new ArgumentError("Class Root need static const Int 'GAME_FRAMERATE'"));
};
if (!(this._childClass["GAME_NAME"] is String)){
throw (new ArgumentError("Class Root need static const String 'GAME_NAME'"));
};
if (!(this._childClass["STAGE_WIGHT"] is int)){
throw (new ArgumentError("Class Root need static const Int 'STAGE_WIGHT'"));
};
if (!(this._childClass["STAGE_HEIGHT"] is int)){
throw (new ArgumentError("Class Root need static const Int 'STAGE_HEIGHT'"));
};
if (!(this._childClass["PORTAL_TYPE"] is String)){
throw (new ArgumentError("Class Root need static const String 'PORTAL_TYPE'"));
};
if (!(this._childClass["LOADING_CLASS_NAME"] is String)){
throw (new ArgumentError("Class Root need static const String 'LOADING_CLASS_NAME'"));
};
if (!(this._childClass["GAME_CLASS_NAME"] is String)){
throw (new ArgumentError("Class Root need static const String 'GAME_CLASS_NAME'"));
};
if (!(this._childClass["VERSION_NUM"] is String)){
throw (new ArgumentError("Class Root need static const String 'VERSION_NUM'"));
};
if (!(this._childClass["__debug__"] is Boolean)){
throw (new ArgumentError("Class Root need static const Boolean '__debug__'"));
};
stage.frameRate = this._childClass["GAME_FRAMERATE"];
this.__mainMc = new Sprite();
this.__mainMc.name = "__mainMc";
this.addChild(this.__mainMc);
if (!this._childClass["__debug__"]){
this.scrollRect = new Rectangle(0, 0, this._childClass["STAGE_WIGHT"], this._childClass["STAGE_HEIGHT"]);
};
this.addFrameScript(0, this.s0);
this.addFrameScript(1, this.s1);
this.addFrameScript(2, this.s2);
}
private function s0():void{
this.script0();
this.stop();
this.initSettingBeforeLoading();
this.initTextloader();
this.initLoading();
}
private function s1():void{
var realLoadingClass:Class;
this.script1();
this.stop();
this._childClass["LOADING_CLASS_NAME"];
try {
realLoadingClass = (getDefinitionByName(this._childClass["LOADING_CLASS_NAME"]) as Class);
} catch(e:Error) {
throw (new ArgumentError(("can`t found the Loading Class " + _childClass["LOADING_CLASS_NAME"])));
return;
};
this._realLoaderUI = new realLoadingClass(this.__mainMc);
if (!(this._realLoaderUI is (getDefinitionByName("zlong.Template.AbstractLoadingClass") as Class))){
throw (new ArgumentError("the Loading Class mush extends Class AbstractLoadingClass"));
};
}
private function s2():void{
var mainClass:Class;
this.script2();
this.stop();
try {
mainClass = (getDefinitionByName(this._childClass["GAME_CLASS_NAME"]) as Class);
} catch(e:Error) {
throw (new ArgumentError(("can`t found the Main Class " + _childClass["GAME_CLASS_NAME"])));
return;
};
this._game = new mainClass(this.__mainMc);
if (!(this._game is (getDefinitionByName("zlong.Template.AbstractMainClass") as Class))){
throw (new ArgumentError("the Main Class mush extends Class AbstractMainClass"));
};
}
private function initLoading():void{
this.addEventListener(Event.ENTER_FRAME, this.updateLoading);
this.loaderInfo.addEventListener(Event.COMPLETE, this.LoadingComplete);
}
private function LoadingComplete(_arg1:Event):void{
this._loadingComplete = true;
}
private function updateLoading(_arg1:Event):void{
if (this.framesLoaded == 1){
this._textLoaderUI.update();
};
if ((((this.currentFrame == 1)) && ((this.framesLoaded >= 2)))){
this.realLoaderLoadingFinish();
};
if ((((((((this.currentFrame == 2)) && (((this._loadingComplete) || ((this.totalFrames == this.framesLoaded)))))) && (LocalSiteDataLoader.localSiteDataLoaderFinish))) && (Award_HighScore.initializedFinish))){
this.loadingFinish();
this.delLoading();
};
}
private function delLoading():void{
this.removeEventListener(Event.ENTER_FRAME, this.updateLoading);
}
private function initTextloader():void{
this._textLoaderUI = new TextLoader(this.__mainMc, this._childClass["STAGE_WIGHT"], this._childClass["STAGE_HEIGHT"]);
}
protected function delTextLoader():void{
if (this._textLoaderUI){
this._textLoaderUI.del();
this._textLoaderUI = null;
};
}
protected function delRealLoadingUI():void{
if (this._realLoaderUI){
var _local1 = this._realLoaderUI;
_local1["destroy"]();
};
}
protected function initSettingBeforeLoading():void{
new GameSetting(this, false, this._childClass["PORTAL_TYPE"], cutGameName((this._childClass["GAME_NAME"] as String)), (cutGameName((this._childClass["GAME_NAME"] as String), "-", true) + ".html"), this._childClass["STAGE_WIGHT"], this._childClass["STAGE_HEIGHT"]);
Award_HighScore.instance.init(cutGameName((this._childClass["GAME_NAME"] as String)), this, this._childClass["__debug__"], this._childClass["__debug__"]);
}
protected function realLoaderLoadingFinish():void{
this.delTextLoader();
this.gotoAndStop(2);
}
protected function loadingFinish():void{
this.delRealLoadingUI();
this.gotoAndStop(3);
}
protected function script0():void{
}
protected function script1():void{
}
protected function script2():void{
}
public static function cutGameName(_arg1:String, _arg2:String="_", _arg3:Boolean=false):String{
var _local4:RegExp = /[-| |_]/;
var _local5:Array = _arg1.split(_local4);
var _local6 = "";
var _local7 = "";
var _local8:int;
while (_local8 < _local5.length) {
_local7 = ((_local5[_local8] as String).toLowerCase() + _arg2);
if (_arg3){
_local6 = (_local6 + (_local7.charAt(0).toUpperCase() + _local7.substr(1)));
} else {
_local6 = (_local6 + _local7);
};
_local8++;
};
_local6 = _local6.substr(0, (_local6.length - 1));
return (_local6);
}
}
}//package zlong.Template
Section 204
//TextLoader (zlong.Template.TextLoader)
package zlong.Template {
import flash.display.*;
import flash.text.*;
import zlong.*;
public class TextLoader {
private var _tf:TextField;
private var _loaderInfo:LoaderInfo;
private var _width:Number;
private var _height:Number;
private var _pmc:Sprite;
framework_internal static const VERSION:String = "v1.08.201005181800";
public function TextLoader(_arg1:Sprite, _arg2:Number, _arg3:Number){
this._pmc = _arg1;
this._width = _arg2;
this._height = _arg3;
this._loaderInfo = _arg1.root.loaderInfo;
this._tf = new TextField();
this._tf.autoSize = TextFieldAutoSize.LEFT;
this._tf.defaultTextFormat = new TextFormat("_sans", 16, 0, true);
this._tf.height = 30;
this._pmc.addChild(this._tf);
}
function update():void{
this._tf.text = (("Loading... " + Math.floor(((100 * this._loaderInfo.bytesLoaded) / this._loaderInfo.bytesTotal))) + "%");
this._tf.x = ((this._width - this._tf.width) / 2);
this._tf.y = ((this._height - this._tf.height) / 2);
}
function del():void{
this._pmc.removeChild(this._tf);
this._tf = null;
this._loaderInfo = null;
this._pmc = null;
}
}
}//package zlong.Template
Section 205
//SharedObjectUtil (zlong.utils.SharedObjectUtil)
package zlong.utils {
import flash.events.*;
import flash.net.*;
public class SharedObjectUtil {
framework_internal static const VERSION:String = "v1.08.201005181800";
private static const PREFIX:String = "SpilGames";
private static const GLOBAL:String = "global";
private static var gameName:String;
private static var operatedSharedObject:SharedObject;
public static function init(_arg1:String):void{
}
public static function getGlobal(_arg1:String):SharedObject{
var so:SharedObject;
var name = _arg1;
try {
so = SharedObject.getLocal(((((PREFIX + "_") + GLOBAL) + "_") + name), "/");
} catch(err:Error) {
trace("create error");
};
return (so);
}
public static function getLocal(_arg1:String):SharedObject{
var so:SharedObject;
var name = _arg1;
try {
so = SharedObject.getLocal(((((PREFIX + "_") + gameName) + "_") + name), "/");
} catch(err:Error) {
trace("create error");
};
return (so);
}
public static function save(_arg1:SharedObject):void{
var flushResult:String;
var sharedObject = _arg1;
operatedSharedObject = sharedObject;
try {
flushResult = operatedSharedObject.flush();
if (flushResult == SharedObjectFlushStatus.PENDING){
operatedSharedObject.addEventListener(NetStatusEvent.NET_STATUS, statusHandler);
} else {
operatedSharedObject = null;
};
} catch(err:Error) {
};
}
private static function statusHandler(_arg1:NetStatusEvent):void{
if (_arg1.info["code"] == "SharedObject.Flush.Failed"){
} else {
if (_arg1.info["code"] == "SharedObject.Flush.Success"){
trace("save successed");
};
};
operatedSharedObject.removeEventListener(NetStatusEvent.NET_STATUS, statusHandler);
operatedSharedObject = null;
}
}
}//package zlong.utils
Section 206
//framework_internal (zlong.framework_internal)
package zlong {
public namespace framework_internal = "http://www.zlonggames.com/flash/framework/internal";
}//package zlong
Section 207
//GameSetting (zlong.GameSetting)
package zlong {
import flash.display.*;
import zlong.country.*;
import zlong.site.*;
import zlong.data.*;
import zlong.display.*;
public class GameSetting {
private var _XMLLoader:LocalSiteDataLoader;
localComponent_internal static const VERSION:String = "v1.03.201005181759";
public static const PORTAL_TYPE_FAMILY:String = "family";
public static const PORTAL_TYPE_TWEEN:String = "tween";
public static const PORTAL_TYPE_GIRL:String = "girl";
public static const PORTAL_TYPE_TEEN:String = "teen";
public static const PORTAL_TYPE_ZAPAPA:String = "zapapa";
public static const PORTAL_TYPE_HYVES:String = "hyves";
public function GameSetting(_arg1:InteractiveObject, _arg2:Boolean, _arg3:String, _arg4:String, _arg5:String, _arg6:int, _arg7:int){
GameInfo.cnversion = _arg2;
GameInfo.portal = _arg3;
GameInfo.name = _arg4;
GameInfo.html = _arg5;
GameInfo.width = _arg6;
GameInfo.height = _arg7;
this._XMLLoader = new LocalSiteDataLoader();
this.init();
this.initMenu(_arg1);
}
private function init():void{
new CountryCookie();
CountryInfo.instance.portal = GameInfo.portal;
if (CountryCookie.country == null){
CountryInfo.instance.country = "en_us";
} else {
CountryInfo.instance.country = String(CountryCookie.country);
};
}
private function initMenu(_arg1:InteractiveObject):void{
new Menu(_arg1);
}
}
}//package zlong
Section 208
//localComponent_internal (zlong.localComponent_internal)
package zlong {
public namespace localComponent_internal = "http://www.zlonggames.com/flash/localComponent/internal";
}//package zlong
Section 209
//wav (æ— æ”¾å¤§é•œæ示.wav)
package 无放大镜提示 {
import flash.media.*;
public dynamic class wav extends Sound {
}
}//package 无放大镜提示
Section 210
//Audio (Audio)
package {
import utils.*;
public dynamic class Audio extends ExtButton {
}
}//package
Section 211
//btn_moregames (btn_moregames)
package {
import utils.*;
public dynamic class btn_moregames extends ExtButton {
}
}//package
Section 212
//btn_playagain (btn_playagain)
package {
import utils.*;
public dynamic class btn_playagain extends ExtButton {
}
}//package
Section 213
//BtnBacktogame (BtnBacktogame)
package {
import utils.*;
public dynamic class BtnBacktogame extends ExtButton {
}
}//package
Section 214
//BtnHint (BtnHint)
package {
import utils.*;
public dynamic class BtnHint extends ExtButton {
}
}//package
Section 215
//BtnPause (BtnPause)
package {
import utils.*;
public dynamic class BtnPause extends ExtButton {
}
}//package
Section 216
//BtnPlay (BtnPlay)
package {
import utils.*;
public dynamic class BtnPlay extends ExtButton {
}
}//package
Section 217
//BtnQuit (BtnQuit)
package {
import utils.*;
public dynamic class BtnQuit extends ExtButton {
}
}//package
Section 218
//but0_0___ (but0_0___)
package {
import flash.display.*;
public dynamic class but0_0___ extends MovieClip {
}
}//package
Section 219
//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 220
//Finder1_1 (Finder1_1)
package {
import flash.display.*;
public dynamic class Finder1_1 extends MovieClip {
}
}//package
Section 221
//Finder1_10 (Finder1_10)
package {
import flash.display.*;
public dynamic class Finder1_10 extends MovieClip {
}
}//package
Section 222
//Finder1_2 (Finder1_2)
package {
import flash.display.*;
public dynamic class Finder1_2 extends MovieClip {
}
}//package
Section 223
//Finder1_3 (Finder1_3)
package {
import flash.display.*;
public dynamic class Finder1_3 extends MovieClip {
}
}//package
Section 224
//Finder1_4 (Finder1_4)
package {
import flash.display.*;
public dynamic class Finder1_4 extends MovieClip {
}
}//package
Section 225
//Finder1_5 (Finder1_5)
package {
import flash.display.*;
public dynamic class Finder1_5 extends MovieClip {
}
}//package
Section 226
//Finder1_6 (Finder1_6)
package {
import flash.display.*;
public dynamic class Finder1_6 extends MovieClip {
}
}//package
Section 227
//Finder1_7 (Finder1_7)
package {
import flash.display.*;
public dynamic class Finder1_7 extends MovieClip {
}
}//package
Section 228
//Finder1_8 (Finder1_8)
package {
import flash.display.*;
public dynamic class Finder1_8 extends MovieClip {
}
}//package
Section 229
//Finder1_9 (Finder1_9)
package {
import flash.display.*;
public dynamic class Finder1_9 extends MovieClip {
}
}//package
Section 230
//Finder2_1 (Finder2_1)
package {
import flash.display.*;
public dynamic class Finder2_1 extends MovieClip {
}
}//package
Section 231
//Finder2_10 (Finder2_10)
package {
import flash.display.*;
public dynamic class Finder2_10 extends MovieClip {
}
}//package
Section 232
//Finder2_2 (Finder2_2)
package {
import flash.display.*;
public dynamic class Finder2_2 extends MovieClip {
}
}//package
Section 233
//Finder2_3 (Finder2_3)
package {
import flash.display.*;
public dynamic class Finder2_3 extends MovieClip {
}
}//package
Section 234
//Finder2_4 (Finder2_4)
package {
import flash.display.*;
public dynamic class Finder2_4 extends MovieClip {
}
}//package
Section 235
//Finder2_5 (Finder2_5)
package {
import flash.display.*;
public dynamic class Finder2_5 extends MovieClip {
}
}//package
Section 236
//Finder2_6 (Finder2_6)
package {
import flash.display.*;
public dynamic class Finder2_6 extends MovieClip {
}
}//package
Section 237
//Finder2_7 (Finder2_7)
package {
import flash.display.*;
public dynamic class Finder2_7 extends MovieClip {
}
}//package
Section 238
//Finder2_8 (Finder2_8)
package {
import flash.display.*;
public dynamic class Finder2_8 extends MovieClip {
}
}//package
Section 239
//Finder2_9 (Finder2_9)
package {
import flash.display.*;
public dynamic class Finder2_9 extends MovieClip {
}
}//package
Section 240
//Finder3_1 (Finder3_1)
package {
import flash.display.*;
public dynamic class Finder3_1 extends MovieClip {
}
}//package
Section 241
//Finder3_10 (Finder3_10)
package {
import flash.display.*;
public dynamic class Finder3_10 extends MovieClip {
}
}//package
Section 242
//Finder3_2 (Finder3_2)
package {
import flash.display.*;
public dynamic class Finder3_2 extends MovieClip {
}
}//package
Section 243
//Finder3_3 (Finder3_3)
package {
import flash.display.*;
public dynamic class Finder3_3 extends MovieClip {
}
}//package
Section 244
//Finder3_4 (Finder3_4)
package {
import flash.display.*;
public dynamic class Finder3_4 extends MovieClip {
}
}//package
Section 245
//Finder3_5 (Finder3_5)
package {
import flash.display.*;
public dynamic class Finder3_5 extends MovieClip {
}
}//package
Section 246
//Finder3_6 (Finder3_6)
package {
import flash.display.*;
public dynamic class Finder3_6 extends MovieClip {
}
}//package
Section 247
//Finder3_7 (Finder3_7)
package {
import flash.display.*;
public dynamic class Finder3_7 extends MovieClip {
}
}//package
Section 248
//Finder3_8 (Finder3_8)
package {
import flash.display.*;
public dynamic class Finder3_8 extends MovieClip {
}
}//package
Section 249
//Finder3_9 (Finder3_9)
package {
import flash.display.*;
public dynamic class Finder3_9 extends MovieClip {
}
}//package
Section 250
//Finder4_1 (Finder4_1)
package {
import flash.display.*;
public dynamic class Finder4_1 extends MovieClip {
}
}//package
Section 251
//Finder4_10 (Finder4_10)
package {
import flash.display.*;
public dynamic class Finder4_10 extends MovieClip {
}
}//package
Section 252
//Finder4_2 (Finder4_2)
package {
import flash.display.*;
public dynamic class Finder4_2 extends MovieClip {
}
}//package
Section 253
//Finder4_3 (Finder4_3)
package {
import flash.display.*;
public dynamic class Finder4_3 extends MovieClip {
}
}//package
Section 254
//Finder4_4 (Finder4_4)
package {
import flash.display.*;
public dynamic class Finder4_4 extends MovieClip {
}
}//package
Section 255
//Finder4_5 (Finder4_5)
package {
import flash.display.*;
public dynamic class Finder4_5 extends MovieClip {
}
}//package
Section 256
//Finder4_6 (Finder4_6)
package {
import flash.display.*;
public dynamic class Finder4_6 extends MovieClip {
}
}//package
Section 257
//Finder4_7 (Finder4_7)
package {
import flash.display.*;
public dynamic class Finder4_7 extends MovieClip {
}
}//package
Section 258
//Finder4_8 (Finder4_8)
package {
import flash.display.*;
public dynamic class Finder4_8 extends MovieClip {
}
}//package
Section 259
//Finder4_9 (Finder4_9)
package {
import flash.display.*;
public dynamic class Finder4_9 extends MovieClip {
}
}//package
Section 260
//Finder5_1 (Finder5_1)
package {
import flash.display.*;
public dynamic class Finder5_1 extends MovieClip {
}
}//package
Section 261
//Finder5_10 (Finder5_10)
package {
import flash.display.*;
public dynamic class Finder5_10 extends MovieClip {
}
}//package
Section 262
//Finder5_2 (Finder5_2)
package {
import flash.display.*;
public dynamic class Finder5_2 extends MovieClip {
}
}//package
Section 263
//Finder5_3 (Finder5_3)
package {
import flash.display.*;
public dynamic class Finder5_3 extends MovieClip {
}
}//package
Section 264
//Finder5_4 (Finder5_4)
package {
import flash.display.*;
public dynamic class Finder5_4 extends MovieClip {
}
}//package
Section 265
//Finder5_5 (Finder5_5)
package {
import flash.display.*;
public dynamic class Finder5_5 extends MovieClip {
}
}//package
Section 266
//Finder5_6 (Finder5_6)
package {
import flash.display.*;
public dynamic class Finder5_6 extends MovieClip {
}
}//package
Section 267
//Finder5_7 (Finder5_7)
package {
import flash.display.*;
public dynamic class Finder5_7 extends MovieClip {
}
}//package
Section 268
//Finder5_8 (Finder5_8)
package {
import flash.display.*;
public dynamic class Finder5_8 extends MovieClip {
}
}//package
Section 269
//Finder5_9 (Finder5_9)
package {
import flash.display.*;
public dynamic class Finder5_9 extends MovieClip {
}
}//package
Section 270
//Finder6_1 (Finder6_1)
package {
import flash.display.*;
public dynamic class Finder6_1 extends MovieClip {
}
}//package
Section 271
//Finder6_10 (Finder6_10)
package {
import flash.display.*;
public dynamic class Finder6_10 extends MovieClip {
}
}//package
Section 272
//Finder6_2 (Finder6_2)
package {
import flash.display.*;
public dynamic class Finder6_2 extends MovieClip {
}
}//package
Section 273
//Finder6_3 (Finder6_3)
package {
import flash.display.*;
public dynamic class Finder6_3 extends MovieClip {
}
}//package
Section 274
//Finder6_4 (Finder6_4)
package {
import flash.display.*;
public dynamic class Finder6_4 extends MovieClip {
}
}//package
Section 275
//Finder6_5 (Finder6_5)
package {
import flash.display.*;
public dynamic class Finder6_5 extends MovieClip {
}
}//package
Section 276
//Finder6_6 (Finder6_6)
package {
import flash.display.*;
public dynamic class Finder6_6 extends MovieClip {
}
}//package
Section 277
//Finder6_7 (Finder6_7)
package {
import flash.display.*;
public dynamic class Finder6_7 extends MovieClip {
}
}//package
Section 278
//Finder6_8 (Finder6_8)
package {
import flash.display.*;
public dynamic class Finder6_8 extends MovieClip {
}
}//package
Section 279
//Finder6_9 (Finder6_9)
package {
import flash.display.*;
public dynamic class Finder6_9 extends MovieClip {
}
}//package
Section 280
//Finder7_1 (Finder7_1)
package {
import flash.display.*;
public dynamic class Finder7_1 extends MovieClip {
}
}//package
Section 281
//Finder7_10 (Finder7_10)
package {
import flash.display.*;
public dynamic class Finder7_10 extends MovieClip {
}
}//package
Section 282
//Finder7_2 (Finder7_2)
package {
import flash.display.*;
public dynamic class Finder7_2 extends MovieClip {
}
}//package
Section 283
//Finder7_3 (Finder7_3)
package {
import flash.display.*;
public dynamic class Finder7_3 extends MovieClip {
}
}//package
Section 284
//Finder7_4 (Finder7_4)
package {
import flash.display.*;
public dynamic class Finder7_4 extends MovieClip {
}
}//package
Section 285
//Finder7_5 (Finder7_5)
package {
import flash.display.*;
public dynamic class Finder7_5 extends MovieClip {
}
}//package
Section 286
//Finder7_6 (Finder7_6)
package {
import flash.display.*;
public dynamic class Finder7_6 extends MovieClip {
}
}//package
Section 287
//Finder7_7 (Finder7_7)
package {
import flash.display.*;
public dynamic class Finder7_7 extends MovieClip {
}
}//package
Section 288
//Finder7_8 (Finder7_8)
package {
import flash.display.*;
public dynamic class Finder7_8 extends MovieClip {
}
}//package
Section 289
//Finder7_9 (Finder7_9)
package {
import flash.display.*;
public dynamic class Finder7_9 extends MovieClip {
}
}//package
Section 290
//Finder8_1 (Finder8_1)
package {
import flash.display.*;
public dynamic class Finder8_1 extends MovieClip {
}
}//package
Section 291
//Finder8_10 (Finder8_10)
package {
import flash.display.*;
public dynamic class Finder8_10 extends MovieClip {
}
}//package
Section 292
//Finder8_2 (Finder8_2)
package {
import flash.display.*;
public dynamic class Finder8_2 extends MovieClip {
}
}//package
Section 293
//Finder8_3 (Finder8_3)
package {
import flash.display.*;
public dynamic class Finder8_3 extends MovieClip {
}
}//package
Section 294
//Finder8_4 (Finder8_4)
package {
import flash.display.*;
public dynamic class Finder8_4 extends MovieClip {
}
}//package
Section 295
//Finder8_5 (Finder8_5)
package {
import flash.display.*;
public dynamic class Finder8_5 extends MovieClip {
}
}//package
Section 296
//Finder8_6 (Finder8_6)
package {
import flash.display.*;
public dynamic class Finder8_6 extends MovieClip {
}
}//package
Section 297
//Finder8_7 (Finder8_7)
package {
import flash.display.*;
public dynamic class Finder8_7 extends MovieClip {
}
}//package
Section 298
//Finder8_8 (Finder8_8)
package {
import flash.display.*;
public dynamic class Finder8_8 extends MovieClip {
}
}//package
Section 299
//Finder8_9 (Finder8_9)
package {
import flash.display.*;
public dynamic class Finder8_9 extends MovieClip {
}
}//package
Section 300
//HideConsole (HideConsole)
package {
public var HideConsole:Boolean;
HideConsole = false;
}//package
Section 301
//Level_1 (Level_1)
package {
import flash.display.*;
public dynamic class Level_1 extends MovieClip {
public var diff10_a:Finder1_5;
public var diff5_a:Finder1_3;
public var diff4_a:Finder1_6;
public var diff7_a:Finder1_7;
public var diff6_a:Finder1_4;
public var diff1_a:Finder1_1;
public var diff3_a:Finder1_9;
public var diff2_a:Finder1_2;
public var diff9_a:Finder1_10;
public var diff8_a:Finder1_8;
}
}//package
Section 302
//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_2;
public var diff4_a:Finder2_6;
public var diff7_a:Finder2_1;
public var diff6_a:Finder2_4;
public var diff1_a:Finder2_3;
public var diff3_a:Finder2_7;
public var diff2_a:Finder2_5;
public var diff9_a:Finder2_8;
public var diff8_a:Finder2_9;
}
}//package
Section 303
//Level_3 (Level_3)
package {
import flash.display.*;
public dynamic class Level_3 extends MovieClip {
public var diff5_a:Finder3_10;
public var diff10_a:Finder3_3;
public var diff4_a:Finder3_5;
public var diff7_a:Finder3_2;
public var diff6_a:Finder3_7;
public var diff1_a:Finder3_1;
public var diff3_a:Finder3_6;
public var diff2_a:Finder3_9;
public var diff9_a:Finder3_4;
public var diff8_a:Finder3_8;
}
}//package
Section 304
//Level_4 (Level_4)
package {
import flash.display.*;
public dynamic class Level_4 extends MovieClip {
public var diff5_a:Finder4_3;
public var diff10_a:Finder4_2;
public var diff4_a:Finder4_8;
public var diff7_a:Finder4_5;
public var diff6_a:Finder4_6;
public var diff1_a:Finder4_9;
public var diff3_a:Finder4_4;
public var diff2_a:Finder4_10;
public var diff9_a:Finder4_1;
public var diff8_a:Finder4_7;
}
}//package
Section 305
//Level_5 (Level_5)
package {
import flash.display.*;
public dynamic class Level_5 extends MovieClip {
public var diff10_a:Finder5_9;
public var diff5_a:Finder5_5;
public var diff4_a:Finder5_4;
public var diff7_a:Finder5_1;
public var diff6_a:Finder5_6;
public var diff1_a:Finder5_3;
public var diff3_a:Finder5_2;
public var diff2_a:Finder5_7;
public var diff9_a:Finder5_8;
public var diff8_a:Finder5_10;
}
}//package
Section 306
//Level_6 (Level_6)
package {
import flash.display.*;
public dynamic class Level_6 extends MovieClip {
public var diff10_a:Finder6_9;
public var diff5_a:Finder6_3;
public var diff4_a:Finder6_2;
public var diff7_a:Finder6_1;
public var diff6_a:Finder6_8;
public var diff1_a:Finder6_4;
public var diff3_a:Finder6_5;
public var diff2_a:Finder6_6;
public var diff9_a:Finder6_10;
public var diff8_a:Finder6_7;
}
}//package
Section 307
//Level_7 (Level_7)
package {
import flash.display.*;
public dynamic class Level_7 extends MovieClip {
public var diff10_a:Finder7_6;
public var diff5_a:Finder7_2;
public var diff4_a:Finder7_7;
public var diff7_a:Finder7_10;
public var diff6_a:Finder7_3;
public var diff1_a:Finder7_1;
public var diff3_a:Finder7_8;
public var diff2_a:Finder7_9;
public var diff9_a:Finder7_5;
public var diff8_a:Finder7_4;
}
}//package
Section 308
//Level_8 (Level_8)
package {
import flash.display.*;
public dynamic class Level_8 extends MovieClip {
public var diff5_a:Finder8_7;
public var diff10_a:Finder8_1;
public var diff4_a:Finder8_10;
public var diff7_a:Finder8_3;
public var diff6_a:Finder8_4;
public var diff1_a:Finder8_9;
public var diff3_a:Finder8_8;
public var diff2_a:Finder8_5;
public var diff9_a:Finder8_6;
public var diff8_a:Finder8_2;
}
}//package
Section 309
//localization (localization)
package {
import flash.display.*;
public dynamic class localization extends MovieClip {
}
}//package
Section 310
//Logo (Logo)
package {
import flash.display.*;
import zlong.display.*;
public dynamic class Logo extends Logo {
public var displayArea_mc:MovieClip;
}
}//package
Section 311
//Main (Main)
package {
import flash.display.*;
import zlong.Template.*;
import com.zlonggames.differentfinder.*;
import zlong.breathxue.utils.debug.*;
import com.zlonggames.differentfinder.config.*;
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();
initDisplay();
initGame();
}
private function initGame():void{
new Game(_container);
}
private function initDisplay():void{
_container = new Sprite();
_container.name = "likeMyGameRootContainer";
SysConfig.likeRootCon = _container;
__GameMc.addChildAt(_container, 0);
}
private function initAssit():void{
SysConfig.stage = __GameMc.stage;
SysConfig.SW = __GameMc.stage.stageWidth;
SysConfig.SH = __GameMc.stage.stageHeight;
SysConfig.stage.scaleMode = StageScaleMode.NO_SCALE;
SysConfig.stage.scaleMode = StageScaleMode.SHOW_ALL;
}
public static function get instance():Main{
return (_instance);
}
}
}//package
Section 312
//MC_Flower (MC_Flower)
package {
import flash.display.*;
public dynamic class MC_Flower extends MovieClip {
public var mc_drama:MovieClip;
}
}//package
Section 313
//MC_LM_background (MC_LM_background)
package {
import flash.display.*;
import flash.filters.*;
import flash.events.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.media.*;
import flash.utils.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.desktop.*;
import flash.external.*;
import flash.globalization.*;
import flash.net.drm.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.sensors.*;
import flash.system.*;
import flash.text.ime.*;
import flash.text.engine.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MC_LM_background extends MovieClip {
public var btn_pause:BtnPause;
public var light0:MovieClip;
public var MC_LM_score:MovieClip;
public var hints:BtnHint;
public var light1:MovieClip;
public var light2:MovieClip;
public var light3:MovieClip;
public var light4:MovieClip;
public var __id0_:Logo;
public var light5:MovieClip;
public var score_text:TextField;
public function MC_LM_background(){
this.__setProp___id0__bg_Layer2_0();
}
function __setProp___id0__bg_Layer2_0(){
try {
this.__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
this.__id0_.alignHorizontal = "Center";
this.__id0_.alignVertical = "Center";
this.__id0_.maxHeight = 40;
this.__id0_.maxWidth = 150;
this.__id0_.position = "logo_playingGame";
try {
this.__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 314
//MC_LM_circle (MC_LM_circle)
package {
import flash.display.*;
public dynamic class MC_LM_circle extends MovieClip {
}
}//package
Section 315
//MC_LM_jointover (MC_LM_jointover)
package {
import flash.display.*;
public dynamic class MC_LM_jointover extends MovieClip {
}
}//package
Section 316
//MC_LM_menumain (MC_LM_menumain)
package {
import flash.display.*;
import flash.filters.*;
import flash.events.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.media.*;
import flash.utils.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.desktop.*;
import flash.external.*;
import flash.globalization.*;
import flash.net.drm.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.sensors.*;
import flash.system.*;
import flash.text.ime.*;
import flash.text.engine.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MC_LM_menumain extends MovieClip {
public var btn_moregame:MoreGamesLogoMainmenu;
public var btn_play:BtnPlay;
public var icon_audio:Audio;
public var icon_music:Music;
public function MC_LM_menumain(){
this.__setProp_btn_moregame_UI_mainmenu_();
}
function __setProp_btn_moregame_UI_mainmenu_(){
try {
this.btn_moregame["componentInspectorSetting"] = true;
} catch(e:Error) {
};
this.btn_moregame.position = "button_mainscreen_moregames";
this.btn_moregame.type = "moregames";
try {
this.btn_moregame["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 317
//MC_LM_mouse (MC_LM_mouse)
package {
import flash.display.*;
public dynamic class MC_LM_mouse extends MovieClip {
}
}//package
Section 318
//MC_LM_pause (MC_LM_pause)
package {
import flash.display.*;
import flash.filters.*;
import flash.events.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.media.*;
import flash.utils.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.desktop.*;
import flash.external.*;
import flash.globalization.*;
import flash.net.drm.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.sensors.*;
import flash.system.*;
import flash.text.ime.*;
import flash.text.engine.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MC_LM_pause extends MovieClip {
public var btn_backtogame:BtnBacktogame;
public var btn_moregame:MoreGamesLogoMainmenu;
public var icon_audio:Audio;
public var btn_quit:BtnQuit;
public var icon_music:Music;
public function MC_LM_pause(){
this.__setProp_btn_moregame_UI_pause_();
}
function __setProp_btn_moregame_UI_pause_(){
try {
this.btn_moregame["componentInspectorSetting"] = true;
} catch(e:Error) {
};
this.btn_moregame.position = "button_pausedscreen_moregames";
this.btn_moregame.type = "moregames";
try {
this.btn_moregame["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 319
//MinusFive (MinusFive)
package {
import flash.display.*;
public dynamic class MinusFive extends MovieClip {
}
}//package
Section 320
//MinusTen (MinusTen)
package {
import flash.display.*;
public dynamic class MinusTen extends MovieClip {
}
}//package
Section 321
//MoreGamesLogo_mainmenu_sitelock (MoreGamesLogo_mainmenu_sitelock)
package {
import flash.display.*;
import flash.filters.*;
import flash.events.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.media.*;
import zlong.display.*;
import flash.utils.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.desktop.*;
import flash.external.*;
import flash.globalization.*;
import flash.net.drm.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.sensors.*;
import flash.system.*;
import flash.text.ime.*;
import flash.text.engine.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MoreGamesLogo_mainmenu_sitelock extends ExtButton {
public var __id3_:Logo;
public function MoreGamesLogo_mainmenu_sitelock(){
this.__setProp___id3__MoreGamesLogo_mainmenu_sitelock_logo_0();
}
function __setProp___id3__MoreGamesLogo_mainmenu_sitelock_logo_0(){
try {
this.__id3_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
this.__id3_.alignHorizontal = "Center";
this.__id3_.alignVertical = "Down";
this.__id3_.maxHeight = 20;
this.__id3_.maxWidth = 150;
this.__id3_.position = "logo_preloader";
try {
this.__id3_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 322
//MoreGamesLogoMainmenu (MoreGamesLogoMainmenu)
package {
import flash.display.*;
import flash.filters.*;
import flash.events.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.media.*;
import zlong.display.*;
import flash.utils.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.desktop.*;
import flash.external.*;
import flash.globalization.*;
import flash.net.drm.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.sensors.*;
import flash.system.*;
import flash.text.ime.*;
import flash.text.engine.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MoreGamesLogoMainmenu extends ExtButton {
public var __id2_:Logo;
public function MoreGamesLogoMainmenu(){
this.__setProp___id2__MoreGamesLogo_mainmenu_Layer4_0();
}
function __setProp___id2__MoreGamesLogo_mainmenu_Layer4_0(){
try {
this.__id2_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
this.__id2_.alignHorizontal = "Center";
this.__id2_.alignVertical = "Down";
this.__id2_.maxHeight = 20;
this.__id2_.maxWidth = 150;
this.__id2_.position = "logo_preloader";
try {
this.__id2_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 323
//Music (Music)
package {
import utils.*;
public dynamic class Music extends ExtButton {
}
}//package
Section 324
//PlusFive (PlusFive)
package {
import flash.display.*;
public dynamic class PlusFive extends MovieClip {
}
}//package
Section 325
//RightFinded (RightFinded)
package {
import flash.display.*;
public dynamic class RightFinded extends MovieClip {
}
}//package
Section 326
//Root (Root)
package {
import zlong.spilSystemTool.*;
import zlong.Template.*;
import zlong.*;
import com.zlonggames.differentfinder.config.*;
public class Root extends AbstractRootClass {
public static const STAGE_WIGHT:int = 800;
public static const GAME_CLASS_NAME:String = "Main";
public static const STAGE_HEIGHT:int = 600;
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 = "Ride in Woods";
override protected function initSettingBeforeLoading():void{
new GameSetting(this, false, PORTAL_TYPE, cutGameName(GAME_NAME), (cutGameName(GAME_NAME, "-", true) + ".html"), STAGE_WIGHT, STAGE_HEIGHT);
Award_HighScore.instance.init(cutGameName(GAME_NAME), this, __debug__, __debug__);
}
override protected function script0():void{
Trace("script0");
this.scaleX = (this.scaleY = SysConfig.ScaleValue);
}
override protected function script1():void{
Trace("script1");
}
override protected function script2():void{
Trace("script2");
}
}
}//package
Section 327
//SoundMc (SoundMc)
package {
import flash.display.*;
public dynamic class SoundMc extends MovieClip {
}
}//package
Section 328
//SubmitterProxy (SubmitterProxy)
package {
import flash.events.*;
import flash.display.*;
import com.spilgames.api.*;
import flash.system.*;
public class SubmitterProxy extends MovieClip {
public var m_scoreXMLData:XML;
public var m_achievXMLData:XML;
private var parentObj;
public var m_scoreServerTimeXMLData:XML;
private static var _failed:Boolean = false;
private static var _loading:Boolean = false;
private static var _initialised:Boolean = false;
private static var SpilComp:SpilGamesServices;
public function SubmitterProxy():void{
var cld:*;
super();
Security.allowDomain("*");
parentObj = this.parent;
parentObj.stop();
var i:int = (parentObj.numChildren - 1);
while (i >= 0) {
cld = parentObj.getChildAt(i);
if ((cld is MovieClip)){
cld.visible = false;
} else {
if (cld != null){
parentObj.removeChild(cld);
};
};
i = (i - 1);
};
try {
parentObj["setLoader"] = setLoader;
parentObj["isDomainAllowed"] = isDomainAllowed;
parentObj["hasUserData"] = hasUserData;
parentObj["_O0000Ol01"] = setLoader;
parentObj["_O0Olll0lO"] = isDomainAllowed;
} catch(e:Error) {
trace(e);
};
}
private function SpilConfiguratorFailedToInitialise(_arg1:Event):void{
if (SpilComp){
SpilComp.removeEventListener("servicesReady", SpilConfiguratorReady);
SpilComp.removeEventListener(IOErrorEvent.IO_ERROR, SpilConfiguratorFailedToLoad);
SpilComp.removeEventListener("servicesFailed", SpilConfiguratorFailedToInitialise);
};
_failed = true;
_loading = false;
parentObj.dispatchEvent(new Event("LoadingFailed"));
}
public function SpilCallback(_arg1:int, _arg2:Object):void{
}
private function onLoadDone():void{
parentObj["isSWFReady"] = isSWFReady;
parentObj["setServerSelect"] = setServerSelect;
parentObj["requestScoreServerTime"] = requestScoreServerTime;
parentObj["getScoreServerTime"] = getScoreServerTime;
parentObj["submitScore"] = submitScore;
parentObj["requestHighscoreList"] = requestHighscoreList;
parentObj["requestUserHighscoreList"] = requestUserHighscoreList;
parentObj["submitGrantAward"] = submitGrantAward;
parentObj["requestAwardList"] = requestAwardList;
parentObj["requestAwardInfo"] = requestAwardInfo;
parentObj["destroy"] = destroy;
parentObj["getSpilGamesConnector"] = getSpilGamesConnector;
parentObj["_O0O1l0OO0"] = isSWFReady;
parentObj["_O0lOO010l"] = requestScoreServerTime;
parentObj["_O01Ol1O1O"] = getScoreServerTime;
parentObj["_O01lOO10O"] = submitScore;
parentObj["_O110l10ll"] = requestHighscoreList;
parentObj["_O11lll1OO0"] = requestUserHighscoreList;
parentObj["_O00OOl1Ol"] = submitGrantAward;
parentObj["_O1OlO10OO"] = requestAwardList;
parentObj["_OOlOOOll1"] = requestAwardInfo;
parentObj["_O010ll111"] = destroy;
parentObj["OO00OO1l1l"] = OO00OO1l1l();
}
private function processTimeResults(_arg1:int, _arg2:Object):void{
if (_arg2){
if (_arg2.errorMessage){
} else {
if (_arg2.xml){
m_scoreServerTimeXMLData = _arg2.xml;
};
};
} else {
m_scoreServerTimeXMLData = new XML("<hyscore><time>123456789</time></hyscore>");
};
}
private function isSWFReady():Boolean{
return (((SpilComp) && (SpilComp.isSWFReady())));
}
private function requestAwardList():void{
if (SpilComp){
SpilComp.send("Awards", "getAwardList", processAwardResults, {userName:SpilComp.getUserName(), userHash:SpilComp.getUserHash()});
};
}
public function set O1lll0ll0(_arg1:XML):void{
m_scoreServerTimeXMLData = _arg1;
}
public function OO00OO1l1l():SubmitterProxy{
return (this);
}
private function hasUserData():Boolean{
return (!(SpilComp.hasValidUserData()));
}
public function get O0l00l0O0():XML{
return (m_scoreXMLData);
}
private function destroy():void{
parentObj = null;
m_scoreXMLData = null;
m_achievXMLData = null;
}
private function requestScoreServerTime():void{
if (SpilComp){
SpilComp.send("Score", "checkServerTime", processTimeResults);
};
}
private function requestUserHighscoreList(_arg1:String):void{
if (SpilComp){
SpilComp.send("Score", "getUserRankList", processScoreResults, {targetUserName:_arg1});
};
}
public function get O1OlOO00O():XML{
return (m_achievXMLData);
}
private function submitGrantAward(_arg1:String):void{
if (SpilComp){
SpilComp.send("Awards", "submitAward", processAwardResults, {tag:_arg1, userName:SpilComp.getUserName(), userHash:SpilComp.getUserHash()});
};
}
private function setLoader(_arg1=null, _arg2:String="default", _arg3="", _arg4:int=0, _arg5:String="normal", _arg6:String="", _arg7:int=0, _arg8:int=0, _arg9:int=1, _arg10:Boolean=false, _arg11:int=1):void{
if (!_initialised){
trace("Initialising for the first time");
_initialised = true;
if (_arg1){
SpilComp = SpilGamesServices.getInstance();
SpilComp.addEventListener("servicesReady", SpilConfiguratorReady);
SpilComp.addEventListener(IOErrorEvent.IO_ERROR, SpilConfiguratorFailedToLoad);
SpilComp.addEventListener("servicesFailed", SpilConfiguratorFailedToInitialise);
_loading = true;
SpilComp.connect(_arg1);
} else {
throw (new Error("'container' cannot be null"));
};
} else {
trace("Initialisation called multiple times");
if (!_loading){
trace("Ready with loading");
if (!_failed){
trace("Simulate Submitter complete");
onLoadDone();
parentObj.dispatchEvent(new Event(Event.COMPLETE));
} else {
trace("Simulate Submitter LoadingFailed");
parentObj.dispatchEvent(new Event("LoadingFailed"));
};
} else {
trace("Still loading");
};
};
}
private function requestHighscoreList():void{
if (SpilComp){
SpilComp.send("Score", "getRankingList", processScoreResults, null);
};
}
public function set O0l00l0O0(_arg1:XML):void{
m_scoreXMLData = _arg1;
}
private function setServerSelect(_arg1:int):void{
if (SpilComp){
};
}
private function requestAwardInfo(_arg1:int):void{
if (SpilComp){
SpilComp.send("Awards", "getAward", SpilCallback, {awardID:_arg1});
};
}
public function set O1OlOO00O(_arg1:XML):void{
m_achievXMLData = _arg1;
}
private function processAwardResults(_arg1:int, _arg2:Object):void{
if (_arg2){
m_achievXMLData = _arg2.xml;
} else {
m_achievXMLData = new XML("<hyscor><awardid>147</awardid></hyscor>");
};
}
public function getSpilGamesConnector(){
return (SpilComp);
}
public function get O1lll0ll0():XML{
return (m_scoreServerTimeXMLData);
}
private function processScoreResults(_arg1:int, _arg2:Object):void{
if (_arg2){
m_scoreXMLData = _arg2.xml;
} else {
m_scoreXMLData = <hyscor><resultset>
<group>daily</group>
<result>
<position>1</position>
<timestamp>1271247768</timestamp>
<username>noot</username>
<authenticated>1</authenticated>
<score>2</score>
<gamelevel>0</gamelevel>
<country>NL</country>
</result>
</resultset>
<resultset>
<group>weekly</group>
<result>
<position>1</position>
<timestamp>1271247768</timestamp>
<username>noot</username>
<authenticated>1</authenticated>
<score>2</score>
<gamelevel>0</gamelevel>
<country>NL</country>
</result>
</resultset>
<resultset>
<group>monthly</group>
<result>
<position>1</position>
<timestamp>1271247768</timestamp>
<username>noot</username>
<authenticated>1</authenticated>
<score>2</score>
<gamelevel>0</gamelevel>
<country>NL</country>
</result>
</resultset>
</hyscor>
;
};
}
private function getScoreServerTime():void{
if (SpilComp){
SpilComp.send("Score", "getLatestTimeCheck", processTimeResults);
};
}
private function SpilConfiguratorReady(_arg1:Event):void{
if (SpilComp){
SpilComp.removeEventListener("servicesReady", SpilConfiguratorReady);
SpilComp.removeEventListener(IOErrorEvent.IO_ERROR, SpilConfiguratorFailedToLoad);
SpilComp.removeEventListener("servicesFailed", SpilConfiguratorFailedToInitialise);
};
_loading = false;
onLoadDone();
parentObj.dispatchEvent(new Event(Event.COMPLETE));
}
private function doCommTest():String{
if (SpilComp){
return ("y");
};
return (("FAILED " + SpilComp));
}
private function submitScore(_arg1:int):void{
if (SpilComp){
SpilComp.send("Score", "submitScore", processScoreResults, {score:_arg1, userName:SpilComp.getUserName(), userHash:SpilComp.getUserHash()});
};
}
private function SpilConfiguratorFailedToLoad(_arg1:Event):void{
if (SpilComp){
SpilComp.removeEventListener("servicesReady", SpilConfiguratorReady);
SpilComp.removeEventListener(IOErrorEvent.IO_ERROR, SpilConfiguratorFailedToLoad);
SpilComp.removeEventListener("servicesFailed", SpilConfiguratorFailedToInitialise);
};
trace("SpilConfiguratorFailedToLoad", _arg1.toString());
_failed = true;
_loading = false;
if (parentObj.hasEventListener(IOErrorEvent.IO_ERROR)){
parentObj.dispatchEvent(new IOErrorEvent(IOErrorEvent.IO_ERROR));
};
}
private function onLegacyEvent(_arg1:Event):void{
dispatchEvent(_arg1);
}
private function isDomainAllowed(_arg1:Boolean=false):Boolean{
return (SpilComp.isDomainAllowed());
}
private function setLoader2(_arg1=null, _arg2:String="default", _arg3:int=1, _arg4="", _arg5:int=0, _arg6:String="normal", _arg7:String="", _arg8:int=0, _arg9:int=0, _arg10:int=1, _arg11:Boolean=false, _arg12:int=1):void{
setLoader(_arg1, _arg2, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12);
}
}
}//package
Section 329
//TipChar (TipChar)
package {
import flash.display.*;
public dynamic class TipChar extends MovieClip {
}
}//package
Section 330
//Trace (Trace)
package {
import flash.utils.*;
import zlong.breathxue.utils.debug.*;
public function Trace(... _args):void{
var TcClass:Class;
var args = _args;
if (!HideConsole){
trace(args);
};
if (TcShow){
try {
TcClass = (getDefinitionByName("zlong.breathxue.utils.debug.TC") as Class);
} catch(e:Error) {
TcShow = false;
};
if (TcClass){
var _local3 = TcClass;
_local3["SHOW"](args);
};
};
}
}//package
Section 331
//txt_level_1 (txt_level_1)
package {
import zlong.display.*;
public dynamic class txt_level_1 extends TranText {
}
}//package
Section 332
//txt_level_2 (txt_level_2)
package {
import zlong.display.*;
public dynamic class txt_level_2 extends TranText {
}
}//package
Section 333
//txt_level_3 (txt_level_3)
package {
import zlong.display.*;
public dynamic class txt_level_3 extends TranText {
}
}//package
Section 334
//txt_level_4 (txt_level_4)
package {
import zlong.display.*;
public dynamic class txt_level_4 extends TranText {
}
}//package
Section 335
//txt_level_5 (txt_level_5)
package {
import zlong.display.*;
public dynamic class txt_level_5 extends TranText {
}
}//package
Section 336
//txt_level_6 (txt_level_6)
package {
import zlong.display.*;
public dynamic class txt_level_6 extends TranText {
}
}//package
Section 337
//txt_level_7 (txt_level_7)
package {
import zlong.display.*;
public dynamic class txt_level_7 extends TranText {
}
}//package
Section 338
//txt_level_8 (txt_level_8)
package {
import zlong.display.*;
public dynamic class txt_level_8 extends TranText {
}
}//package
Section 339
//txt_moregames (txt_moregames)
package {
import zlong.display.*;
public dynamic class txt_moregames extends TranText {
}
}//package
Section 340
//txt_moregamescopy (txt_moregamescopy)
package {
import zlong.display.*;
public dynamic class txt_moregamescopy extends TranText {
}
}//package
Section 341
//txt_PAUSE (txt_PAUSE)
package {
import zlong.display.*;
public dynamic class txt_PAUSE extends TranText {
}
}//package
Section 342
//txt_PLAY (txt_PLAY)
package {
import zlong.display.*;
public dynamic class txt_PLAY extends TranText {
}
}//package
Section 343
//txt_PLAY_AGAIN (txt_PLAY_AGAIN)
package {
import zlong.display.*;
public dynamic class txt_PLAY_AGAIN extends TranText {
}
}//package
Section 344
//txt_QUIT (txt_QUIT)
package {
import zlong.display.*;
public dynamic class txt_QUIT extends TranText {
}
}//package
Section 345
//txt_RESUME (txt_RESUME)
package {
import zlong.display.*;
public dynamic class txt_RESUME extends TranText {
}
}//package
Section 346
//txt_SCORE (txt_SCORE)
package {
import zlong.display.*;
public dynamic class txt_SCORE extends TranText {
}
}//package
Section 347
//txt_well_done (txt_well_done)
package {
import zlong.display.*;
public dynamic class txt_well_done extends TranText {
}
}//package
Section 348
//txt_YOUR_SCORE_ (txt_YOUR_SCORE_)
package {
import zlong.display.*;
public dynamic class txt_YOUR_SCORE_ extends TranText {
}
}//package
Section 349
//TXT1_MOREGAMES (TXT1_MOREGAMES)
package {
import zlong.display.*;
public dynamic class TXT1_MOREGAMES extends TranText {
}
}//package
Section 350
//TXT2_moregamesat (TXT2_moregamesat)
package {
import zlong.display.*;
public dynamic class TXT2_moregamesat extends TranText {
}
}//package
Section 351
//UI_GAMEOVER (UI_GAMEOVER)
package {
import flash.display.*;
import flash.filters.*;
import flash.events.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.media.*;
import flash.utils.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.desktop.*;
import flash.external.*;
import flash.globalization.*;
import flash.net.drm.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.sensors.*;
import flash.system.*;
import flash.text.ime.*;
import flash.text.engine.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class UI_GAMEOVER extends MovieClip {
public var btn_moregame:MoreGamesLogoMainmenu;
public var txt_scoreDown:TextField;
public var mainmenu:btn_playagain;
public function UI_GAMEOVER(){
this.__setProp_btn_moregame_UI_welldone_();
}
function __setProp_btn_moregame_UI_welldone_(){
try {
this.btn_moregame["componentInspectorSetting"] = true;
} catch(e:Error) {
};
this.btn_moregame.position = "button_gameover_moregames";
this.btn_moregame.type = "moregames";
try {
this.btn_moregame["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 352
//UI_LM_loading (UI_LM_loading)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.desktop.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.globalization.*;
import flash.net.*;
import flash.net.drm.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.sensors.*;
import flash.system.*;
import flash.text.ime.*;
import flash.text.engine.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class UI_LM_loading extends MovieClip {
public var __id1_:Logo;
public var perLoading:MovieClip;
public function UI_LM_loading(){
this.__setProp___id1__UI_loading_Layer14_0();
}
function __setProp___id1__UI_loading_Layer14_0(){
try {
this.__id1_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
this.__id1_.alignHorizontal = "Center";
this.__id1_.alignVertical = "Center";
this.__id1_.maxHeight = 40;
this.__id1_.maxWidth = 150;
this.__id1_.position = "logo_preloader";
try {
this.__id1_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package