Section 1
//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 2
//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 3
//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 4
//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 5
//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 6
//Buffer (com.google.analytics.core.Buffer)
package com.google.analytics.core {
import flash.events.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.net.*;
import com.google.analytics.data.*;
public dynamic class Buffer {
private var _SO:SharedObject;
private var _OBJ:Object;
private var _utma:UTMA;
private var _utmb:UTMB;
private var _utmc:UTMC;
private var _debug:DebugConfiguration;
private var _utmk:UTMK;
private var _config:Configuration;
private var _utmv:UTMV;
private var _utmz:UTMZ;
private var _volatile:Boolean;
public function Buffer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Boolean=false, _arg4:Object=null){
var _local5:Boolean;
var _local6:String;
super();
_config = _arg1;
_debug = _arg2;
UTMB.defaultTimespan = _config.sessionTimeout;
UTMZ.defaultTimespan = _config.conversionTimeout;
if (!_arg3){
_SO = SharedObject.getLocal(_config.cookieName, _config.cookiePath);
_local5 = false;
if (_SO.data.utma){
if (!hasUTMA()){
_createUMTA();
};
_utma.fromSharedObject(_SO.data.utma);
if (_debug.verbose){
_debug.info(("found: " + _utma.toString(true)), VisualDebugMode.geek);
};
if (_utma.isExpired()){
if (_debug.verbose){
_debug.warning("UTMA has expired", VisualDebugMode.advanced);
};
_clearUTMA();
_local5 = true;
};
};
if (_SO.data.utmb){
if (!hasUTMB()){
_createUMTB();
};
_utmb.fromSharedObject(_SO.data.utmb);
if (_debug.verbose){
_debug.info(("found: " + _utmb.toString(true)), VisualDebugMode.geek);
};
if (_utmb.isExpired()){
if (_debug.verbose){
_debug.warning("UTMB has expired", VisualDebugMode.advanced);
};
_clearUTMB();
_local5 = true;
};
};
if (_SO.data.utmc){
delete _SO.data.utmc;
_local5 = true;
};
if (_SO.data.utmk){
if (!hasUTMK()){
_createUMTK();
};
_utmk.fromSharedObject(_SO.data.utmk);
if (_debug.verbose){
_debug.info(("found: " + _utmk.toString()), VisualDebugMode.geek);
};
};
if (_SO.data.utmv){
if (!hasUTMV()){
_createUMTV();
};
_utmv.fromSharedObject(_SO.data.utmv);
if (_debug.verbose){
_debug.info(("found: " + _utmv.toString(true)), VisualDebugMode.geek);
};
if (_utmv.isExpired()){
if (_debug.verbose){
_debug.warning("UTMV has expired", VisualDebugMode.advanced);
};
_clearUTMV();
_local5 = true;
};
};
if (_SO.data.utmz){
if (!hasUTMZ()){
_createUMTZ();
};
_utmz.fromSharedObject(_SO.data.utmz);
if (_debug.verbose){
_debug.info(("found: " + _utmz.toString(true)), VisualDebugMode.geek);
};
if (_utmz.isExpired()){
if (_debug.verbose){
_debug.warning("UTMZ has expired", VisualDebugMode.advanced);
};
_clearUTMZ();
_local5 = true;
};
};
if (_local5){
save();
};
} else {
_OBJ = new Object();
if (_arg4){
for (_local6 in _arg4) {
_OBJ[_local6] = _arg4[_local6];
};
};
};
_volatile = _arg3;
}
public function clearCookies():void{
utma.reset();
utmb.reset();
utmc.reset();
utmz.reset();
utmv.reset();
utmk.reset();
}
public function save():void{
var flushStatus:String;
if (!isVolatile()){
flushStatus = null;
try {
flushStatus = _SO.flush();
} catch(e:Error) {
_debug.warning("Error...Could not write SharedObject to disk");
};
switch (flushStatus){
case SharedObjectFlushStatus.PENDING:
_debug.info("Requesting permission to save object...");
_SO.addEventListener(NetStatusEvent.NET_STATUS, _onFlushStatus);
break;
case SharedObjectFlushStatus.FLUSHED:
_debug.info("Value flushed to disk.");
break;
};
};
}
public function get utmv():UTMV{
if (!hasUTMV()){
_createUMTV();
};
return (_utmv);
}
public function get utmz():UTMZ{
if (!hasUTMZ()){
_createUMTZ();
};
return (_utmz);
}
public function hasUTMA():Boolean{
if (_utma){
return (true);
};
return (false);
}
public function hasUTMB():Boolean{
if (_utmb){
return (true);
};
return (false);
}
public function hasUTMC():Boolean{
if (_utmc){
return (true);
};
return (false);
}
public function isGenuine():Boolean{
if (!hasUTMK()){
return (true);
};
return ((utmk.hash == generateCookiesHash()));
}
public function resetCurrentSession():void{
_clearUTMB();
_clearUTMC();
save();
}
public function hasUTMK():Boolean{
if (_utmk){
return (true);
};
return (false);
}
public function generateCookiesHash():Number{
var _local1 = "";
_local1 = (_local1 + utma.valueOf());
_local1 = (_local1 + utmb.valueOf());
_local1 = (_local1 + utmc.valueOf());
_local1 = (_local1 + utmz.valueOf());
_local1 = (_local1 + utmv.valueOf());
return (Utils.generateHash(_local1));
}
private function _createUMTB():void{
_utmb = new UTMB();
_utmb.proxy = this;
}
private function _createUMTC():void{
_utmc = new UTMC();
}
private function _createUMTA():void{
_utma = new UTMA();
_utma.proxy = this;
}
public function hasUTMV():Boolean{
if (_utmv){
return (true);
};
return (false);
}
private function _createUMTK():void{
_utmk = new UTMK();
_utmk.proxy = this;
}
public function hasUTMZ():Boolean{
if (_utmz){
return (true);
};
return (false);
}
private function _createUMTV():void{
_utmv = new UTMV();
_utmv.proxy = this;
}
private function _onFlushStatus(_arg1:NetStatusEvent):void{
_debug.info("User closed permission dialog...");
switch (_arg1.info.code){
case "SharedObject.Flush.Success":
_debug.info("User granted permission -- value saved.");
break;
case "SharedObject.Flush.Failed":
_debug.info("User denied permission -- value not saved.");
break;
};
_SO.removeEventListener(NetStatusEvent.NET_STATUS, _onFlushStatus);
}
private function _createUMTZ():void{
_utmz = new UTMZ();
_utmz.proxy = this;
}
public function updateUTMA(_arg1:Number):void{
if (_debug.verbose){
_debug.info((("updateUTMA( " + _arg1) + " )"), VisualDebugMode.advanced);
};
if (!utma.isEmpty()){
if (isNaN(utma.sessionCount)){
utma.sessionCount = 1;
} else {
utma.sessionCount = (utma.sessionCount + 1);
};
utma.lastTime = utma.currentTime;
utma.currentTime = _arg1;
};
}
private function _clearUTMA():void{
_utma = null;
if (!isVolatile()){
_SO.data.utma = null;
delete _SO.data.utma;
};
}
private function _clearUTMC():void{
_utmc = null;
}
private function _clearUTMB():void{
_utmb = null;
if (!isVolatile()){
_SO.data.utmb = null;
delete _SO.data.utmb;
};
}
public function update(_arg1:String, _arg2):void{
if (isVolatile()){
_OBJ[_arg1] = _arg2;
} else {
_SO.data[_arg1] = _arg2;
};
}
private function _clearUTMZ():void{
_utmz = null;
if (!isVolatile()){
_SO.data.utmz = null;
delete _SO.data.utmz;
};
}
private function _clearUTMV():void{
_utmv = null;
if (!isVolatile()){
_SO.data.utmv = null;
delete _SO.data.utmv;
};
}
public function isVolatile():Boolean{
return (_volatile);
}
public function get utma():UTMA{
if (!hasUTMA()){
_createUMTA();
};
return (_utma);
}
public function get utmb():UTMB{
if (!hasUTMB()){
_createUMTB();
};
return (_utmb);
}
public function get utmc():UTMC{
if (!hasUTMC()){
_createUMTC();
};
return (_utmc);
}
public function get utmk():UTMK{
if (!hasUTMK()){
_createUMTK();
};
return (_utmk);
}
}
}//package com.google.analytics.core
Section 7
//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 8
//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 9
//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 10
//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 11
//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 12
//ga_internal (com.google.analytics.core.ga_internal)
package com.google.analytics.core {
public namespace ga_internal;
}//package com.google.analytics.core
Section 13
//GIFRequest (com.google.analytics.core.GIFRequest)
package com.google.analytics.core {
import flash.events.*;
import flash.display.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.net.*;
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 14
//IdleTimer (com.google.analytics.core.IdleTimer)
package com.google.analytics.core {
import flash.events.*;
import flash.display.*;
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 15
//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 16
//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 17
//RequestObject (com.google.analytics.core.RequestObject)
package com.google.analytics.core {
import flash.utils.*;
import flash.net.*;
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 18
//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 19
//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 20
//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 21
//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 22
//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 23
//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 24
//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 25
//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 26
//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 27
//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 28
//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 29
//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 30
//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 31
//_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 32
//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 33
//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 34
//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 35
//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 36
//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 37
//DebugConfiguration (com.google.analytics.debug.DebugConfiguration)
package com.google.analytics.debug {
import com.google.analytics.core.*;
import flash.utils.*;
import flash.net.*;
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 38
//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 39
//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 40
//ILayout (com.google.analytics.debug.ILayout)
package com.google.analytics.debug {
import flash.display.*;
import com.google.analytics.core.*;
import flash.net.*;
public interface ILayout {
function 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 41
//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 42
//Label (com.google.analytics.debug.Label)
package com.google.analytics.debug {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class Label extends UISprite {
private var _color:uint;
private var _background:Shape;
private var _textField:TextField;
public var stickToEdge:Boolean;
private var _text:String;
protected var selectable:Boolean;
private var _tag:String;
public static var count:uint = 0;
public function Label(_arg1:String="", _arg2:String="uiLabel", _arg3:uint=0, _arg4:Align=null, _arg5:Boolean=false){
this.name = ("Label" + count++);
selectable = false;
_background = new Shape();
_textField = new TextField();
_text = _arg1;
_tag = _arg2;
if (_arg4 == null){
_arg4 = Align.none;
};
this.alignement = _arg4;
this.stickToEdge = _arg5;
if (_arg3 == 0){
_arg3 = Style.backgroundColor;
};
_color = _arg3;
_textField.addEventListener(TextEvent.LINK, onLink);
}
public function get tag():String{
return (_tag);
}
private function _draw():void{
var _local1:Graphics = _background.graphics;
_local1.clear();
_local1.beginFill(_color);
var _local2:uint = _textField.width;
var _local3:uint = _textField.height;
if (forcedWidth > 0){
_local2 = forcedWidth;
};
Background.drawRounded(this, _local1, _local2, _local3);
_local1.endFill();
}
public function get text():String{
return (_textField.text);
}
public function appendText(_arg1:String, _arg2:String=""):void{
if (_arg1 == ""){
return;
};
if (_arg2 == ""){
_arg2 = tag;
};
_textField.htmlText = (_textField.htmlText + (((("<span class=\"" + _arg2) + "\">") + _arg1) + "</span>"));
_text = (_text + _arg1);
_draw();
resize();
}
public function set text(_arg1:String):void{
if (_arg1 == ""){
_arg1 = _text;
};
_textField.htmlText = (((("<span class=\"" + tag) + "\">") + _arg1) + "</span>");
_text = _arg1;
_draw();
resize();
}
override protected function layout():void{
_textField.type = TextFieldType.DYNAMIC;
_textField.autoSize = TextFieldAutoSize.LEFT;
_textField.background = false;
_textField.selectable = selectable;
_textField.multiline = true;
_textField.styleSheet = Style.sheet;
this.text = _text;
addChild(_background);
addChild(_textField);
}
public function set tag(_arg1:String):void{
_tag = _arg1;
text = "";
}
public function onLink(_arg1:TextEvent):void{
}
override protected function dispose():void{
_textField.removeEventListener(TextEvent.LINK, onLink);
super.dispose();
}
}
}//package com.google.analytics.debug
Section 43
//Layout (com.google.analytics.debug.Layout)
package com.google.analytics.debug {
import flash.events.*;
import flash.display.*;
import com.google.analytics.core.*;
import flash.net.*;
import com.google.analytics.*;
public class Layout implements ILayout {
private var _display:DisplayObject;
private var _infoQueue:Array;
private var _maxCharPerLine:int;// = 85
private var _hasInfo:Boolean;
private var _warningQueue:Array;
private var _hasDebug:Boolean;
private var _hasWarning:Boolean;
private var _mainPanel:Panel;
private var _GRAlertQueue:Array;
private var _debug:DebugConfiguration;
public var visualDebug:Debug;
private var _hasGRAlert:Boolean;
public function Layout(_arg1:DebugConfiguration, _arg2:DisplayObject){
_display = _arg2;
_debug = _arg1;
_hasWarning = false;
_hasInfo = false;
_hasDebug = false;
_hasGRAlert = false;
_warningQueue = [];
_infoQueue = [];
_GRAlertQueue = [];
}
private function onKey(_arg1:KeyboardEvent=null):void{
switch (_arg1.keyCode){
case _debug.showHideKey:
_mainPanel.visible = !(_mainPanel.visible);
break;
case _debug.destroyKey:
destroy();
break;
};
}
public function createWarning(_arg1:String):void{
if (((_hasWarning) || (!(isAvailable())))){
_warningQueue.push(_arg1);
return;
};
_arg1 = _filterMaxChars(_arg1);
_hasWarning = true;
var _local2:Warning = new Warning(_arg1, _debug.warningTimeout);
addToPanel("analytics", _local2);
_local2.addEventListener(Event.REMOVED_FROM_STAGE, _clearWarning, false, 0, true);
if (_hasDebug){
visualDebug.writeBold(_arg1);
};
}
public function bringToFront(_arg1:DisplayObject):void{
_display.stage.setChildIndex(_arg1, (_display.stage.numChildren - 1));
}
public function createFailureAlert(_arg1:String):void{
var _local2:AlertAction;
if (_debug.verbose){
_arg1 = _filterMaxChars(_arg1);
_local2 = new AlertAction("Close", "close", "close");
} else {
_local2 = new AlertAction("X", "close", "close");
};
var _local3:Alert = new FailureAlert(_debug, _arg1, [_local2]);
addToPanel("analytics", _local3);
if (_hasDebug){
if (_debug.verbose){
_arg1 = _arg1.split("\n").join("");
_arg1 = _filterMaxChars(_arg1, 66);
};
visualDebug.writeBold(_arg1);
};
}
public function init():void{
var _local1 = 10;
var _local2:uint = (_display.stage.stageWidth - (_local1 * 2));
var _local3:uint = (_display.stage.stageHeight - (_local1 * 2));
var _local4:Panel = new Panel("analytics", _local2, _local3);
_local4.alignement = Align.top;
_local4.stickToEdge = false;
_local4.title = ("Google Analytics v" + GATracker.version);
_mainPanel = _local4;
addToStage(_local4);
bringToFront(_local4);
if (_debug.minimizedOnStart){
_mainPanel.onToggle();
};
createVisualDebug();
_display.stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey, false, 0, true);
}
public function addToPanel(_arg1:String, _arg2:DisplayObject):void{
var _local4:Panel;
var _local3:DisplayObject = _display.stage.getChildByName(_arg1);
if (_local3){
_local4 = (_local3 as Panel);
_local4.addData(_arg2);
} else {
trace((("panel \"" + _arg1) + "\" not found"));
};
}
private function _clearInfo(_arg1:Event):void{
_hasInfo = false;
if (_infoQueue.length > 0){
createInfo(_infoQueue.shift());
};
}
private function _filterMaxChars(_arg1:String, _arg2:int=0):String{
var _local6:String;
var _local3 = "\n";
var _local4:Array = [];
var _local5:Array = _arg1.split(_local3);
if (_arg2 == 0){
_arg2 = _maxCharPerLine;
};
var _local7:int;
while (_local7 < _local5.length) {
_local6 = _local5[_local7];
while (_local6.length > _arg2) {
_local4.push(_local6.substr(0, _arg2));
_local6 = _local6.substring(_arg2);
};
_local4.push(_local6);
_local7++;
};
return (_local4.join(_local3));
}
private function _clearGRAlert(_arg1:Event):void{
_hasGRAlert = false;
if (_GRAlertQueue.length > 0){
createGIFRequestAlert.apply(this, _GRAlertQueue.shift());
};
}
public function createSuccessAlert(_arg1:String):void{
var _local2:AlertAction;
if (_debug.verbose){
_arg1 = _filterMaxChars(_arg1);
_local2 = new AlertAction("Close", "close", "close");
} else {
_local2 = new AlertAction("X", "close", "close");
};
var _local3:Alert = new SuccessAlert(_debug, _arg1, [_local2]);
addToPanel("analytics", _local3);
if (_hasDebug){
if (_debug.verbose){
_arg1 = _arg1.split("\n").join("");
_arg1 = _filterMaxChars(_arg1, 66);
};
visualDebug.writeBold(_arg1);
};
}
public function isAvailable():Boolean{
return (!((_display.stage == null)));
}
public function createAlert(_arg1:String):void{
_arg1 = _filterMaxChars(_arg1);
var _local2:Alert = new Alert(_arg1, [new AlertAction("Close", "close", "close")]);
addToPanel("analytics", _local2);
if (_hasDebug){
visualDebug.writeBold(_arg1);
};
}
public function createInfo(_arg1:String):void{
if (((_hasInfo) || (!(isAvailable())))){
_infoQueue.push(_arg1);
return;
};
_arg1 = _filterMaxChars(_arg1);
_hasInfo = true;
var _local2:Info = new Info(_arg1, _debug.infoTimeout);
addToPanel("analytics", _local2);
_local2.addEventListener(Event.REMOVED_FROM_STAGE, _clearInfo, false, 0, true);
if (_hasDebug){
visualDebug.write(_arg1);
};
}
public function createGIFRequestAlert(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void{
var message = _arg1;
var request = _arg2;
var ref = _arg3;
if (_hasGRAlert){
_GRAlertQueue.push([message, request, ref]);
return;
};
_hasGRAlert = true;
var f:Function = function ():void{
ref.sendRequest(request);
};
message = _filterMaxChars(message);
var gra:GIFRequestAlert = new GIFRequestAlert(message, [new AlertAction("OK", "ok", f), new AlertAction("Cancel", "cancel", "close")]);
addToPanel("analytics", gra);
gra.addEventListener(Event.REMOVED_FROM_STAGE, _clearGRAlert, false, 0, true);
if (_hasDebug){
if (_debug.verbose){
message = message.split("\n").join("");
message = _filterMaxChars(message, 66);
};
visualDebug.write(message);
};
}
public function createVisualDebug():void{
if (!visualDebug){
visualDebug = new Debug();
visualDebug.alignement = Align.bottom;
visualDebug.stickToEdge = true;
addToPanel("analytics", visualDebug);
_hasDebug = true;
};
}
public function addToStage(_arg1:DisplayObject):void{
_display.stage.addChild(_arg1);
}
private function _clearWarning(_arg1:Event):void{
_hasWarning = false;
if (_warningQueue.length > 0){
createWarning(_warningQueue.shift());
};
}
public function createPanel(_arg1:String, _arg2:uint, _arg3:uint):void{
var _local4:Panel = new Panel(_arg1, _arg2, _arg3);
_local4.alignement = Align.center;
_local4.stickToEdge = false;
addToStage(_local4);
bringToFront(_local4);
}
public function destroy():void{
_mainPanel.close();
_debug.layout = null;
}
}
}//package com.google.analytics.debug
Section 44
//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 45
//Panel (com.google.analytics.debug.Panel)
package com.google.analytics.debug {
import flash.events.*;
import flash.display.*;
public class Panel extends UISprite {
private var _savedH:uint;
private var _data:UISprite;
private var _mask:Sprite;
private var _background:Shape;
private var _savedW:uint;
private var _stickToEdge:Boolean;
private var _border:Shape;
private var _borderColor:uint;
protected var baseAlpha:Number;
private var _backgroundColor:uint;
private var _title:Label;
private var _colapsed:Boolean;
private var _name:String;
public function Panel(_arg1:String, _arg2:uint, _arg3:uint, _arg4:uint=0, _arg5:uint=0, _arg6:Number=0.3, _arg7:Align=null, _arg8:Boolean=false){
_name = _arg1;
this.name = _arg1;
this.mouseEnabled = false;
_colapsed = false;
forcedWidth = _arg2;
forcedHeight = _arg3;
this.baseAlpha = _arg6;
_background = new Shape();
_data = new UISprite();
_data.forcedWidth = _arg2;
_data.forcedHeight = _arg3;
_data.mouseEnabled = false;
_title = new Label(_arg1, "uiLabel", 0xFFFFFF, Align.topLeft, _arg8);
_title.buttonMode = true;
_title.margin.top = 0.6;
_title.margin.left = 0.6;
_title.addEventListener(MouseEvent.CLICK, onToggle);
_title.mouseChildren = false;
_border = new Shape();
_mask = new Sprite();
_mask.useHandCursor = false;
_mask.mouseEnabled = false;
_mask.mouseChildren = false;
if (_arg7 == null){
_arg7 = Align.none;
};
this.alignement = _arg7;
this.stickToEdge = _arg8;
if (_arg4 == 0){
_arg4 = Style.backgroundColor;
};
_backgroundColor = _arg4;
if (_arg5 == 0){
_arg5 = Style.borderColor;
};
_borderColor = _arg5;
}
public function get stickToEdge():Boolean{
return (_stickToEdge);
}
public function onToggle(_arg1:MouseEvent=null):void{
if (_colapsed){
_data.visible = true;
} else {
_data.visible = false;
};
_colapsed = !(_colapsed);
_update();
resize();
}
public function set stickToEdge(_arg1:Boolean):void{
_stickToEdge = _arg1;
_title.stickToEdge = _arg1;
}
override protected function dispose():void{
_title.removeEventListener(MouseEvent.CLICK, onToggle);
super.dispose();
}
private function _draw():void{
var _local1:uint;
var _local2:uint;
if (((_savedW) && (_savedH))){
forcedWidth = _savedW;
forcedHeight = _savedH;
};
if (!_colapsed){
_local1 = forcedWidth;
_local2 = forcedHeight;
} else {
_local1 = _title.width;
_local2 = _title.height;
_savedW = forcedWidth;
_savedH = forcedHeight;
forcedWidth = _local1;
forcedHeight = _local2;
};
var _local3:Graphics = _background.graphics;
_local3.clear();
_local3.beginFill(_backgroundColor);
Background.drawRounded(this, _local3, _local1, _local2);
_local3.endFill();
var _local4:Graphics = _data.graphics;
_local4.clear();
_local4.beginFill(_backgroundColor, 0);
Background.drawRounded(this, _local4, _local1, _local2);
_local4.endFill();
var _local5:Graphics = _border.graphics;
_local5.clear();
_local5.lineStyle(0.1, _borderColor);
Background.drawRounded(this, _local5, _local1, _local2);
_local5.endFill();
var _local6:Graphics = _mask.graphics;
_local6.clear();
_local6.beginFill(_backgroundColor);
Background.drawRounded(this, _local6, (_local1 + 1), (_local2 + 1));
_local6.endFill();
}
public function get title():String{
return (_title.text);
}
private function _update():void{
_draw();
if (baseAlpha < 1){
_background.alpha = baseAlpha;
_border.alpha = baseAlpha;
};
}
public function addData(_arg1:DisplayObject):void{
_data.addChild(_arg1);
}
override protected function layout():void{
_update();
addChild(_background);
addChild(_data);
addChild(_title);
addChild(_border);
addChild(_mask);
mask = _mask;
}
public function set title(_arg1:String):void{
_title.text = _arg1;
}
public function close():void{
dispose();
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 46
//Style (com.google.analytics.debug.Style)
package com.google.analytics.debug {
public const Style:_Style = new _Style();
}//package com.google.analytics.debug
Section 47
//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 48
//UISprite (com.google.analytics.debug.UISprite)
package com.google.analytics.debug {
import flash.events.*;
import flash.display.*;
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 49
//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 50
//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 51
//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 52
//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 53
//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 54
//JavascriptProxy (com.google.analytics.external.JavascriptProxy)
package com.google.analytics.external {
import com.google.analytics.debug.*;
import flash.system.*;
import flash.external.*;
public class JavascriptProxy {
private var _notAvailableWarning:Boolean;// = true
private var _debug:DebugConfiguration;
public static var setProperty_js:XML = <script>
<![CDATA[
function( path , value )
{
var paths;
var prop;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
prop = paths.pop() ;
}
else
{
paths = [];
prop = path;
}
var target = window ;
var len = paths.length ;
for( var i = 0 ; i < len ; i++ )
{
target = target[ paths[i] ] ;
}
target[ prop ] = value ;
}
]]>
</script>
;
public static var hasProperty_js:XML = <script>
<![CDATA[
function( path )
{
var paths;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
}
else
{
paths = [path];
}
var target = window ;
var len = paths.length ;
for( var i = 0 ; i < len ; i++ )
{
target = target[ paths[i] ] ;
}
if( target )
{
return true;
}
else
{
return false;
}
}
]]>
</script>
;
public static var setPropertyRef_js:XML = <script>
<![CDATA[
function( path , target )
{
var paths;
var prop;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
prop = paths.pop() ;
}
else
{
paths = [];
prop = path;
}
alert( "paths:"+paths.length+", prop:"+prop );
var targets;
var name;
if( target.indexOf(".") > 0 )
{
targets = target.split(".");
name = targets.pop();
}
else
{
targets = [];
name = target;
}
alert( "targets:"+targets.length+", name:"+name );
var root = window;
var len = paths.length;
for( var i = 0 ; i < len ; i++ )
{
root = root[ paths[i] ] ;
}
var ref = window;
var depth = targets.length;
for( var j = 0 ; j < depth ; j++ )
{
ref = ref[ targets[j] ] ;
}
root[ prop ] = ref[name] ;
}
]]>
</script>
;
public function JavascriptProxy(_arg1:DebugConfiguration){
_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 55
//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 56
//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 57
//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 58
//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 59
//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 60
//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 61
//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 62
//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 63
//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 64
//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 65
//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 66
//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 67
//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 68
//GATracker (com.google.analytics.GATracker)
package com.google.analytics {
import flash.events.*;
import flash.display.*;
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 69
//KeyObject (com.senocular.utils.KeyObject)
package com.senocular.utils {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.ui.*;
public dynamic class KeyObject extends Proxy {
private static var keysDown:Object;
private static var stage:Stage;
public function KeyObject(_arg1:Stage){
construct(_arg1);
}
private function keyReleased(_arg1:KeyboardEvent):void{
delete keysDown[_arg1.keyCode];
}
public function deconstruct():void{
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyReleased);
keysDown = new Object();
KeyObject.stage = null;
}
public function construct(_arg1:Stage):void{
KeyObject.stage = _arg1;
keysDown = new Object();
_arg1.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
_arg1.addEventListener(KeyboardEvent.KEY_UP, keyReleased);
}
private function keyPressed(_arg1:KeyboardEvent):void{
keysDown[_arg1.keyCode] = true;
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){
return (((_arg1 in Keyboard)) ? Keyboard[_arg1] : -1);
}
public function isDown(_arg1:uint):Boolean{
return (Boolean((_arg1 in keysDown)));
}
}
}//package com.senocular.utils
Section 70
//Car (com.SexyLegsVFX.DeerBitch.Cars.Car)
package com.SexyLegsVFX.DeerBitch.Cars {
import flash.display.*;
import com.SexyLegsVFX.DeerBitch.Global.*;
public class Car extends Sprite {
private const CAR4:String = "petit";
private const CAR5:String = "sedan";
private const CAR2:String = "limo";
private const CAR6:String = "truck";
private const CAR1:String = "bigfoot";
private const CAR3:String = "luxe";
private var speed:Number;
public var display:MovieClip;
public var life:Number;
public var deathValue:Number;
public var carIndex:uint;
public var totalLife:Number;
private var stageSpeed:Number;
private var initialSpeed:Number;
public var value:Number;
private var groundY:Number;
public var isDead:Boolean;// = false
private var lifeBar:MovieClip;
public function Car(_arg1:uint, _arg2:Number):void{
var _local3:Class;
var _local4:Class;
super();
if (GlobalVariables.gameAssets != null){
_local3 = (GlobalVariables.gameAssets.loaderInfo.applicationDomain.getDefinition(this[("CAR" + _arg1)]) as Class);
display = new (_local3);
_local4 = (GlobalVariables.gameAssets.loaderInfo.applicationDomain.getDefinition("lifeBar") as Class);
lifeBar = new (_local4);
this.groundY = _arg2;
carIndex = _arg1;
addChild(lifeBar);
addChild(display);
init();
};
}
public function init():void{
speed = GlobalVariables[("car" + carIndex)][1];
deathValue = GlobalVariables[("car" + carIndex)][3];
value = GlobalVariables[("car" + carIndex)][2];
totalLife = GlobalVariables[("car" + carIndex)][0];
life = totalLife;
initialSpeed = speed;
display.gotoAndStop(1);
this.y = groundY;
this.x = 3000;
lifeBar.y = 20;
}
public function render(_arg1:Number, _arg2:Number):void{
this.stageSpeed = _arg2;
this.x = (this.x + ((-(speed) - _arg2) * _arg1));
if ((((isDead == false)) && (this.lifeBar))){
this.lifeBar.lifeBarRed.scaleX = (life / totalLife);
} else {
if (lifeBar){
removeChild(lifeBar);
lifeBar = null;
};
};
if ((life / totalLife) < 0.66){
display.gotoAndStop(2);
speed = (initialSpeed * 0.8);
};
if ((life / totalLife) <= 0){
display.gotoAndStop(3);
speed = (initialSpeed * 0.8);
};
var _local3:uint = 1;
while (_local3 < 20) {
if (display){
if ((((display[("wheel" + _local3)] == null)) || ((display[("wheel" + _local3)] == undefined)))){
break;
};
display[("wheel" + _local3)].rotation = (display[("wheel" + _local3)].rotation + (-1.5 * _arg1));
};
_local3++;
};
}
public function die():void{
isDead = true;
}
public function destroy():void{
removeChild(display);
display = null;
if (lifeBar){
removeChild(lifeBar);
lifeBar = null;
};
}
public function receiveDamage(_arg1:Number):Number{
this.life = (this.life + -(_arg1));
var _local2:Number = (this.value * (_arg1 / totalLife));
trace(this.deathValue);
if ((life / totalLife) <= 0){
_local2 = (_local2 + this.deathValue);
};
_local2 = Math.floor(_local2);
return (_local2);
}
}
}//package com.SexyLegsVFX.DeerBitch.Cars
Section 71
//Deer (com.SexyLegsVFX.DeerBitch.Deers.Deer)
package com.SexyLegsVFX.DeerBitch.Deers {
import flash.display.*;
import com.SexyLegsVFX.DeerBitch.Global.*;
public class Deer extends Sprite {
private var deerIndexDecor:Array;
private var deerIndex:String;
private var deerImageIndex:String;// = ""
public var display:MovieClip;
private var agility:Number;
private var gravity:Number;
public var nbOfBounce:Number;
private var power:Number;
public var isControlled:Boolean;// = false
public var velocityX:Number;
public var velocityY:Number;
public var bouncing:Boolean;// = true
private var directionControlled:String;
private var friction:Number;
public function Deer(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number){
deerIndexDecor = [];
super();
this.deerIndex = _arg1;
this.velocityX = _arg4;
this.velocityY = _arg5;
this.friction = _arg6;
this.gravity = _arg7;
decorticateIndex();
var _local8:Class = (GlobalVariables.deerAssets.loaderInfo.applicationDomain.getDefinition(("deer" + deerImageIndex)) as Class);
display = new (_local8);
this.x = _arg2;
this.y = _arg3;
addChild(display);
display.gotoAndStop(2);
init();
}
public function bounce():void{
velocityY = ((-(velocityY) * nbOfBounce) * 18);
if (Math.abs(velocityY) < 0.02){
bouncing = false;
};
if (display.currentFrame == 6){
display.gotoAndStop(2);
} else {
display.gotoAndStop((display.currentFrame + 1));
};
}
private function init():void{
power = GlobalVariables.getAttr(deerIndexDecor[0], "Cyborg", deerIndexDecor[1]);
agility = GlobalVariables.getAttr(deerIndexDecor[0], "Wings", deerIndexDecor[2]);
nbOfBounce = GlobalVariables.getAttr(deerIndexDecor[0], "Duck", deerIndexDecor[3]);
}
public function move(_arg1:String):void{
this.isControlled = true;
directionControlled = _arg1;
}
public function Destroy():void{
soundManagerLite.getInstance().playDieSound();
removeChild(display);
display = null;
}
public function getDamage():Number{
var _local1:uint = this.power;
return (_local1);
}
private function decorticateIndex():String{
var _local1:uint;
while (_local1 < 4) {
if (_local1 != 0){
if (int(deerIndex.charAt(_local1)) > 0){
deerImageIndex = (deerImageIndex + "1");
} else {
deerImageIndex = (deerImageIndex + "0");
};
} else {
deerImageIndex = (deerImageIndex + deerIndex.charAt(_local1));
};
deerIndexDecor[_local1] = deerIndex.charAt(_local1);
_local1++;
};
return (deerImageIndex);
}
public function bounceLeft():void{
velocityX = Math.abs(velocityX);
}
public function bounceRight():void{
velocityX = -(Math.abs(velocityX));
}
public function Render(_arg1:Number, _arg2:Number):void{
if (isControlled){
switch (directionControlled){
case "left":
velocityX = (velocityX + ((-(agility) * _arg1) / 6));
break;
case "right":
velocityX = (velocityX + ((agility * _arg1) / 6));
break;
};
};
if (this.velocityX < 0){
this.scaleX = -1;
} else {
this.scaleX = 1;
};
velocityX = (velocityX * friction);
velocityY = (velocityY + (gravity * _arg1));
if ((((velocityX < 0.001)) && ((velocityX > -0.001)))){
velocityX = 0;
};
if ((((velocityY < 0.001)) && ((velocityY > -0.001)))){
velocityY = 0;
};
this.x = (this.x + (velocityX * _arg1));
this.y = (this.y + (velocityY * _arg1));
}
}
}//package com.SexyLegsVFX.DeerBitch.Deers
Section 72
//DeerDead (com.SexyLegsVFX.DeerBitch.Deers.DeerDead)
package com.SexyLegsVFX.DeerBitch.Deers {
import flash.display.*;
import com.SexyLegsVFX.DeerBitch.Global.*;
public class DeerDead extends Sprite {
private var display:MovieClip;
public function DeerDead(_arg1:uint, _arg2:Number, _arg3:Number){
this.x = _arg2;
this.y = _arg3;
var _local4:Class = (GlobalVariables.deerAssets.loaderInfo.applicationDomain.getDefinition((("deer" + _arg1) + "dead")) as Class);
display = new (_local4);
addChild(display);
}
public function Destroy():void{
removeChild(display);
display = null;
}
public function Render(_arg1:Number, _arg2:Number):void{
this.x = (this.x + (_arg2 * _arg1));
}
}
}//package com.SexyLegsVFX.DeerBitch.Deers
Section 73
//achievementDescription (com.SexyLegsVFX.DeerBitch.Global.achievementDescription)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import com.SexyLegsVFX.System.Global.*;
import com.SexyLegsVFX.System.Managers.*;
public class achievementDescription extends MovieClip {
public const ACH10:Array;
public const ACH11:Array;
public const ACH12:Array;
public const ACH13:Array;
public const ACH1:Array;
public const ACH2:Array;
public const ACH3:Array;
public const ACH4:Array;
public const ACH5:Array;
public const ACH6:Array;
public const ACH7:Array;
public const ACH8:Array;
public const ACH9:Array;
private var _awardsCallbackID:int;
private var achievementTimer:Timer;
private var currentAchievement:MovieClip;// = null
private var content:MovieClip;
public function achievementDescription(){
ACH1 = ["Slinky Master", "Bounce at least 30 times."];
ACH2 = ["Half a Slinky", "Bounce at least 15 times."];
ACH3 = ["Pitty the Fool", "Max one Roe Deer."];
ACH4 = ["Alexander Keith", "Max one Red Deer."];
ACH5 = ["Moose Head", "Max one Moose."];
ACH6 = ["Piss Sanson Off", "Drop one Sanson to the half of is life."];
ACH7 = ["Wonder Dear", "Make too much money with only one deer."];
ACH8 = ["Full Upgrade", "Make sure your team is the best."];
ACH9 = ["GM Elite", "Get rid of 500 cars."];
ACH10 = ["Carosaurus", "Get rid of 2000 cars."];
ACH11 = ["Big Bucks", "Make too much total money."];
ACH12 = ["Monster Spectacular", "Destroy 2 Big Foots in line."];
ACH13 = ["Fly me to the moon", "Jump out of the stage."];
achievementTimer = new Timer(3000, 1);
super();
RessourceManagerLite.getInstance().loadSWF(Ressources.ACHIEVEMENTASSET_SWF, loadSWF_completeHandler);
stop();
achievementTimer.addEventListener(TimerEvent.TIMER_COMPLETE, killAchievement);
}
public function Destroy():void{
removeChild(content.loaderInfo.loader);
this.content = null;
currentAchievement = null;
achievementTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, killAchievement);
achievementTimer = null;
}
public function newAchievement(_arg1:uint):void{
var _local2:Class;
if (currentAchievement == null){
_local2 = (content.loaderInfo.applicationDomain.getDefinition("achievementScreen") as Class);
currentAchievement = new (_local2);
};
soundManagerLite.getInstance().playAchievementSound();
GlobalVariables.achievementsDone[(_arg1 - 1)] = 1;
currentAchievement.achievementIcon.gotoAndStop(_arg1);
currentAchievement.insideText.text = this[("ACH" + _arg1)][0];
addChild(currentAchievement);
achievementTimer.reset();
achievementTimer.start();
}
private function loadSWF_completeHandler(_arg1:MovieClip):void{
this.content = _arg1;
addChild(_arg1.loaderInfo.loader);
this.x = (GlobalVars.stageWidth / 2);
}
private function killAchievement(_arg1:TimerEvent):void{
removeChild(currentAchievement);
currentAchievement = null;
}
private function onAwardRequestProcessed(_arg1:int, _arg2:Object):void{
trace(("onAwardRequestProcessed" + "\n"));
trace((("\tcallbackID: " + _arg1) + "\n"));
if (!_arg2.errorMessage){
trace((("\txml: " + _arg2.xml) + "\n"));
} else {
trace((("\tError in request: " + _arg2.errorMessage) + "\n"));
};
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 74
//GlobalVariables (com.SexyLegsVFX.DeerBitch.Global.GlobalVariables)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.display.*;
import com.google.analytics.*;
public class GlobalVariables {
private var deer1Duck:Array;
private var deer2Wings:Array;
private var deer1Wings:Array;
private var deer3Cyborg:Array;
private var deer3Wings:Array;
private var deer1Cyborg:Array;
private var deer2Cyborg:Array;
private var deer2Duck:Array;
private var deer3Duck:Array;
public static var deerNames:Array;
public static var deer1Names:Array = ["PuffDaddy", "Superman", "Bryan", "Stephan", "Travis", "Mathiew", "Mike", "Peter", "John", "Joey", "Luke", "Karl", "Scott", "Steven", "Travis", "Trevor", "Dannis", "Bradley", "Jerry", "Josh Ua", "Rich", "I Lost The Game", "Dylan", "Brandon", "Britany", "JaRule", "DMX", "Methodman", "Funkmasterflex", "Marshal", "Curtis", "Dr. Drey", "Nelly", "James Bond", "0001101001", "The Geek"];
public static var lastStage:uint;
public static var bestCombo:uint;
public static var gameSlot:uint;
public static var deerAssets:MovieClip;
public static var gameAssets:MovieClip;
public static var lastScore:uint;
private static var instance:GlobalVariables = new (GlobalVariables);
;
public static var deer2Names:Array = ["Andrei", "Ksenia", "Stepan", "Vladimir", "Stanislav", "Ivanouchka", "Uri", "Aleksandr", "Boris", "Bronislav", "Gorislav", "Iaromir", "Ludomir", "Bychkov", "Christoff", "Essipoff", "Magaloff", "Kabalevski", "Lichnowsky", "Cherkassky", "Godowsky", "Gregor", "Krzysztof", "Heinrich", "Adolph", "Ludwig", "Igor", "Georg", "Henryk", "Kazimierz", "Moszkowski", "Semyon", "Zukofsky", "Olaf"];
public static var totalScore:uint;
public static var deer3Names:Array = ["Carl", "David", "Jean-Pierre", "Thierry", "PL", "Thomas", "Yves", "Marie-Josee", "Valerie", "Bete Roche", "Joan", "Pierre-Luc", "Ghyslain", "Philippe", "Samy", "Marc-André", "Joannie", "Jean-Marie", "BouteCriss", "Alain", "Olivier", "Antoine", "Frederique", "Jasmin", "Sylvain", "Raoul", "Celine Dion", "Lara Fabian", "Garou Fausse"];
public static var deerSelection:Array;
public static var achievementsDone:Array;
public static var deerDuck:Array;
public static var lastMoney:uint;
public static var deerCyborg:Array;
public static var tracker:AnalyticsTracker;
public static var username:String;
public static var moneyEarned:uint;
public static var destroyedCars:uint;
public static var totalMoney:uint;
public static var car1:Array = [60, 0.9, 30000, 50000];
public static var car2:Array = [15, 0.8, 5000, 2000];
public static var car3:Array = [8, 1.2, 2000, 1500];
public static var car4:Array = [3, 1, 1000, 500];
public static var car5:Array = [8, 1.5, 2500, 3000];
public static var car6:Array = [30, 0.5, 10000, 5000];
public static var deerWings:Array;
public function GlobalVariables(){
deer1Cyborg = [1, 2, 3, 4];
deer1Wings = [0.022, 0.033, 0.04, 0.057];
deer1Duck = [0.043, 0.048, 0.055, 0.057];
deer2Cyborg = [2, 4, 6, 10];
deer2Wings = [0.016, 0.022, 0.03, 0.055];
deer2Duck = [0.038, 0.045, 0.049, 0.055];
deer3Cyborg = [5, 10, 20, 61];
deer3Wings = [0.01, 0.005, 0.012, 0.03];
deer3Duck = [0.0035, 0.039, 0.045, 0.048];
super();
}
public static function getInstance():GlobalVariables{
return (instance);
}
public static function getAttr(_arg1:uint, _arg2:String, _arg3:uint):Number{
var _local4:Number = getInstance()[(("deer" + _arg1) + _arg2)][_arg3];
return (_local4);
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 75
//Ressources (com.SexyLegsVFX.DeerBitch.Global.Ressources)
package com.SexyLegsVFX.DeerBitch.Global {
public class Ressources {
public static var DIE_SFX:Class = Ressources_DIE_SFX;
public static var DEERASSETS_SWF:Class = Ressources_DEERASSETS_SWF;
public static var MUSIQUEGAME_MUSIC:Class = Ressources_MUSIQUEGAME_MUSIC;
public static var GAMEROUTE69_SWF:Class = Ressources_GAMEROUTE69_SWF;
public static var SPONSOR_SWF:Class = Ressources_SPONSOR_SWF;
public static var EXPLOSION_SFX:Class = Ressources_EXPLOSION_SFX;
public static var MOUSE_SFX:Class = Ressources_MOUSE_SFX;
public static var CREDITS_SWF:Class = Ressources_CREDITS_SWF;
public static var CHOOSEDEER_SWF:Class = Ressources_CHOOSEDEER_SWF;
public static var CRASH1_SFX:Class = Ressources_CRASH1_SFX;
public static var CRASH2_SFX:Class = Ressources_CRASH2_SFX;
public static var GAMETROPICS_SWF:Class = Ressources_GAMETROPICS_SWF;
public static var CRASH4_SFX:Class = Ressources_CRASH4_SFX;
public static var CRASH5_SFX:Class = Ressources_CRASH5_SFX;
public static var CRASH6_SFX:Class = Ressources_CRASH6_SFX;
public static var CRASH7_SFX:Class = Ressources_CRASH7_SFX;
public static var CRASH8_SFX:Class = Ressources_CRASH8_SFX;
public static var ACHIEVEMENT_SWF:Class = Ressources_ACHIEVEMENT_SWF;
public static var MAINMENU_SWF:Class = Ressources_MAINMENU_SWF;
public static var ACHIEVEMENT_SFX:Class = Ressources_ACHIEVEMENT_SFX;
public static var GAMETOKYO_SWF:Class = Ressources_GAMETOKYO_SWF;
public static var ANIMATIC_SWF:Class = Ressources_ANIMATIC_SWF;
public static var ACHIEVEMENTASSET_SWF:Class = Ressources_ACHIEVEMENTASSET_SWF;
public static var MUSIQUEMENU_MUSIC:Class = Ressources_MUSIQUEMENU_MUSIC;
public static var CRASH3_SFX:Class = Ressources_CRASH3_SFX;
public static var GAMECANADA_SWF:Class = Ressources_GAMECANADA_SWF;
public static var UPGRADES_SWF:Class = Ressources_UPGRADES_SWF;
public static var GAMEMENU_SWF:Class = Ressources_GAMEMENU_SWF;
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 76
//Ressources_ACHIEVEMENT_SFX (com.SexyLegsVFX.DeerBitch.Global.Ressources_ACHIEVEMENT_SFX)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_ACHIEVEMENT_SFX extends SoundAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 77
//Ressources_ACHIEVEMENT_SWF (com.SexyLegsVFX.DeerBitch.Global.Ressources_ACHIEVEMENT_SWF)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.utils.*;
import mx.core.*;
public class Ressources_ACHIEVEMENT_SWF extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function Ressources_ACHIEVEMENT_SWF(){
dataClass = Ressources_ACHIEVEMENT_SWF_dataClass;
super();
initialWidth = (16000 / 20);
initialHeight = (12000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 78
//Ressources_ACHIEVEMENT_SWF_dataClass (com.SexyLegsVFX.DeerBitch.Global.Ressources_ACHIEVEMENT_SWF_dataClass)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_ACHIEVEMENT_SWF_dataClass extends ByteArrayAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 79
//Ressources_ACHIEVEMENTASSET_SWF (com.SexyLegsVFX.DeerBitch.Global.Ressources_ACHIEVEMENTASSET_SWF)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.utils.*;
import mx.core.*;
public class Ressources_ACHIEVEMENTASSET_SWF extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function Ressources_ACHIEVEMENTASSET_SWF(){
dataClass = Ressources_ACHIEVEMENTASSET_SWF_dataClass;
super();
initialWidth = (16000 / 20);
initialHeight = (12000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 80
//Ressources_ACHIEVEMENTASSET_SWF_dataClass (com.SexyLegsVFX.DeerBitch.Global.Ressources_ACHIEVEMENTASSET_SWF_dataClass)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_ACHIEVEMENTASSET_SWF_dataClass extends ByteArrayAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 81
//Ressources_ANIMATIC_SWF (com.SexyLegsVFX.DeerBitch.Global.Ressources_ANIMATIC_SWF)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.utils.*;
import mx.core.*;
public class Ressources_ANIMATIC_SWF extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function Ressources_ANIMATIC_SWF(){
dataClass = Ressources_ANIMATIC_SWF_dataClass;
super();
initialWidth = (16000 / 20);
initialHeight = (12000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 82
//Ressources_ANIMATIC_SWF_dataClass (com.SexyLegsVFX.DeerBitch.Global.Ressources_ANIMATIC_SWF_dataClass)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_ANIMATIC_SWF_dataClass extends ByteArrayAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 83
//Ressources_CHOOSEDEER_SWF (com.SexyLegsVFX.DeerBitch.Global.Ressources_CHOOSEDEER_SWF)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.utils.*;
import mx.core.*;
public class Ressources_CHOOSEDEER_SWF extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function Ressources_CHOOSEDEER_SWF(){
dataClass = Ressources_CHOOSEDEER_SWF_dataClass;
super();
initialWidth = (16000 / 20);
initialHeight = (12000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 84
//Ressources_CHOOSEDEER_SWF_dataClass (com.SexyLegsVFX.DeerBitch.Global.Ressources_CHOOSEDEER_SWF_dataClass)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_CHOOSEDEER_SWF_dataClass extends ByteArrayAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 85
//Ressources_CRASH1_SFX (com.SexyLegsVFX.DeerBitch.Global.Ressources_CRASH1_SFX)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_CRASH1_SFX extends SoundAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 86
//Ressources_CRASH2_SFX (com.SexyLegsVFX.DeerBitch.Global.Ressources_CRASH2_SFX)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_CRASH2_SFX extends SoundAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 87
//Ressources_CRASH3_SFX (com.SexyLegsVFX.DeerBitch.Global.Ressources_CRASH3_SFX)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_CRASH3_SFX extends SoundAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 88
//Ressources_CRASH4_SFX (com.SexyLegsVFX.DeerBitch.Global.Ressources_CRASH4_SFX)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_CRASH4_SFX extends SoundAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 89
//Ressources_CRASH5_SFX (com.SexyLegsVFX.DeerBitch.Global.Ressources_CRASH5_SFX)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_CRASH5_SFX extends SoundAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 90
//Ressources_CRASH6_SFX (com.SexyLegsVFX.DeerBitch.Global.Ressources_CRASH6_SFX)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_CRASH6_SFX extends SoundAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 91
//Ressources_CRASH7_SFX (com.SexyLegsVFX.DeerBitch.Global.Ressources_CRASH7_SFX)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_CRASH7_SFX extends SoundAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 92
//Ressources_CRASH8_SFX (com.SexyLegsVFX.DeerBitch.Global.Ressources_CRASH8_SFX)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_CRASH8_SFX extends SoundAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 93
//Ressources_CREDITS_SWF (com.SexyLegsVFX.DeerBitch.Global.Ressources_CREDITS_SWF)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.utils.*;
import mx.core.*;
public class Ressources_CREDITS_SWF extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function Ressources_CREDITS_SWF(){
dataClass = Ressources_CREDITS_SWF_dataClass;
super();
initialWidth = (16000 / 20);
initialHeight = (12000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 94
//Ressources_CREDITS_SWF_dataClass (com.SexyLegsVFX.DeerBitch.Global.Ressources_CREDITS_SWF_dataClass)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_CREDITS_SWF_dataClass extends ByteArrayAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 95
//Ressources_DEERASSETS_SWF (com.SexyLegsVFX.DeerBitch.Global.Ressources_DEERASSETS_SWF)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.utils.*;
import mx.core.*;
public class Ressources_DEERASSETS_SWF extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function Ressources_DEERASSETS_SWF(){
dataClass = Ressources_DEERASSETS_SWF_dataClass;
super();
initialWidth = (16000 / 20);
initialHeight = (12000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 96
//Ressources_DEERASSETS_SWF_dataClass (com.SexyLegsVFX.DeerBitch.Global.Ressources_DEERASSETS_SWF_dataClass)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_DEERASSETS_SWF_dataClass extends ByteArrayAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 97
//Ressources_DIE_SFX (com.SexyLegsVFX.DeerBitch.Global.Ressources_DIE_SFX)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_DIE_SFX extends SoundAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 98
//Ressources_EXPLOSION_SFX (com.SexyLegsVFX.DeerBitch.Global.Ressources_EXPLOSION_SFX)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_EXPLOSION_SFX extends SoundAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 99
//Ressources_GAMECANADA_SWF (com.SexyLegsVFX.DeerBitch.Global.Ressources_GAMECANADA_SWF)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.utils.*;
import mx.core.*;
public class Ressources_GAMECANADA_SWF extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function Ressources_GAMECANADA_SWF(){
dataClass = Ressources_GAMECANADA_SWF_dataClass;
super();
initialWidth = (16000 / 20);
initialHeight = (12000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 100
//Ressources_GAMECANADA_SWF_dataClass (com.SexyLegsVFX.DeerBitch.Global.Ressources_GAMECANADA_SWF_dataClass)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_GAMECANADA_SWF_dataClass extends ByteArrayAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 101
//Ressources_GAMEMENU_SWF (com.SexyLegsVFX.DeerBitch.Global.Ressources_GAMEMENU_SWF)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.utils.*;
import mx.core.*;
public class Ressources_GAMEMENU_SWF extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function Ressources_GAMEMENU_SWF(){
dataClass = Ressources_GAMEMENU_SWF_dataClass;
super();
initialWidth = (16000 / 20);
initialHeight = (12000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 102
//Ressources_GAMEMENU_SWF_dataClass (com.SexyLegsVFX.DeerBitch.Global.Ressources_GAMEMENU_SWF_dataClass)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_GAMEMENU_SWF_dataClass extends ByteArrayAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 103
//Ressources_GAMEROUTE69_SWF (com.SexyLegsVFX.DeerBitch.Global.Ressources_GAMEROUTE69_SWF)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.utils.*;
import mx.core.*;
public class Ressources_GAMEROUTE69_SWF extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function Ressources_GAMEROUTE69_SWF(){
dataClass = Ressources_GAMEROUTE69_SWF_dataClass;
super();
initialWidth = (16000 / 20);
initialHeight = (12000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 104
//Ressources_GAMEROUTE69_SWF_dataClass (com.SexyLegsVFX.DeerBitch.Global.Ressources_GAMEROUTE69_SWF_dataClass)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_GAMEROUTE69_SWF_dataClass extends ByteArrayAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 105
//Ressources_GAMETOKYO_SWF (com.SexyLegsVFX.DeerBitch.Global.Ressources_GAMETOKYO_SWF)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.utils.*;
import mx.core.*;
public class Ressources_GAMETOKYO_SWF extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function Ressources_GAMETOKYO_SWF(){
dataClass = Ressources_GAMETOKYO_SWF_dataClass;
super();
initialWidth = (16000 / 20);
initialHeight = (12000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 106
//Ressources_GAMETOKYO_SWF_dataClass (com.SexyLegsVFX.DeerBitch.Global.Ressources_GAMETOKYO_SWF_dataClass)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_GAMETOKYO_SWF_dataClass extends ByteArrayAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 107
//Ressources_GAMETROPICS_SWF (com.SexyLegsVFX.DeerBitch.Global.Ressources_GAMETROPICS_SWF)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.utils.*;
import mx.core.*;
public class Ressources_GAMETROPICS_SWF extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function Ressources_GAMETROPICS_SWF(){
dataClass = Ressources_GAMETROPICS_SWF_dataClass;
super();
initialWidth = (16000 / 20);
initialHeight = (12000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 108
//Ressources_GAMETROPICS_SWF_dataClass (com.SexyLegsVFX.DeerBitch.Global.Ressources_GAMETROPICS_SWF_dataClass)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_GAMETROPICS_SWF_dataClass extends ByteArrayAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 109
//Ressources_MAINMENU_SWF (com.SexyLegsVFX.DeerBitch.Global.Ressources_MAINMENU_SWF)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.utils.*;
import mx.core.*;
public class Ressources_MAINMENU_SWF extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function Ressources_MAINMENU_SWF(){
dataClass = Ressources_MAINMENU_SWF_dataClass;
super();
initialWidth = (16000 / 20);
initialHeight = (12000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 110
//Ressources_MAINMENU_SWF_dataClass (com.SexyLegsVFX.DeerBitch.Global.Ressources_MAINMENU_SWF_dataClass)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_MAINMENU_SWF_dataClass extends ByteArrayAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 111
//Ressources_MOUSE_SFX (com.SexyLegsVFX.DeerBitch.Global.Ressources_MOUSE_SFX)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_MOUSE_SFX extends SoundAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 112
//Ressources_MUSIQUEGAME_MUSIC (com.SexyLegsVFX.DeerBitch.Global.Ressources_MUSIQUEGAME_MUSIC)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_MUSIQUEGAME_MUSIC extends SoundAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 113
//Ressources_MUSIQUEMENU_MUSIC (com.SexyLegsVFX.DeerBitch.Global.Ressources_MUSIQUEMENU_MUSIC)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_MUSIQUEMENU_MUSIC extends SoundAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 114
//Ressources_SPONSOR_SWF (com.SexyLegsVFX.DeerBitch.Global.Ressources_SPONSOR_SWF)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.utils.*;
import mx.core.*;
public class Ressources_SPONSOR_SWF extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function Ressources_SPONSOR_SWF(){
dataClass = Ressources_SPONSOR_SWF_dataClass;
super();
initialWidth = (16000 / 20);
initialHeight = (12000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 115
//Ressources_SPONSOR_SWF_dataClass (com.SexyLegsVFX.DeerBitch.Global.Ressources_SPONSOR_SWF_dataClass)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_SPONSOR_SWF_dataClass extends ByteArrayAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 116
//Ressources_UPGRADES_SWF (com.SexyLegsVFX.DeerBitch.Global.Ressources_UPGRADES_SWF)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.utils.*;
import mx.core.*;
public class Ressources_UPGRADES_SWF extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function Ressources_UPGRADES_SWF(){
dataClass = Ressources_UPGRADES_SWF_dataClass;
super();
initialWidth = (16000 / 20);
initialHeight = (12000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 117
//Ressources_UPGRADES_SWF_dataClass (com.SexyLegsVFX.DeerBitch.Global.Ressources_UPGRADES_SWF_dataClass)
package com.SexyLegsVFX.DeerBitch.Global {
import mx.core.*;
public class Ressources_UPGRADES_SWF_dataClass extends ByteArrayAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 118
//Save (com.SexyLegsVFX.DeerBitch.Global.Save)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.net.*;
public class Save {
public static function LoadGame(_arg1:uint):void{
var _local2:SharedObject = SharedObject.getLocal(("DBData" + _arg1));
if ((((_local2.data.username == null)) || ((_local2.data.username == undefined)))){
trace(((("The game " + "DBData") + _arg1) + " doesn't exist"));
} else {
GlobalVariables.gameSlot = _arg1;
GlobalVariables.username = _local2.data.username;
GlobalVariables.deerSelection = _local2.data.deerSelection;
GlobalVariables.deerNames = _local2.data.deerNames;
GlobalVariables.deerCyborg = _local2.data.deerCyborg;
GlobalVariables.deerWings = _local2.data.deerWings;
GlobalVariables.deerDuck = _local2.data.deerDuck;
GlobalVariables.totalMoney = _local2.data.totalMoney;
GlobalVariables.totalScore = _local2.data.totalScore;
GlobalVariables.bestCombo = _local2.data.bestCombo;
GlobalVariables.lastScore = _local2.data.lastScore;
GlobalVariables.achievementsDone = _local2.data.achievementsDone;
GlobalVariables.destroyedCars = _local2.data.destroyedCars;
GlobalVariables.lastStage = _local2.data.lastStage;
trace("game loaded");
};
}
public static function CreateGame(_arg1:uint):Boolean{
var _local2:SharedObject = SharedObject.getLocal(("DBData" + _arg1));
if ((((_local2.data.username == null)) || ((_local2.data.username == undefined)))){
GlobalVariables.gameSlot = _arg1;
return (true);
};
LoadGame(_arg1);
return (false);
}
public static function SaveGame(_arg1:uint):void{
var _local2:SharedObject = SharedObject.getLocal(("DBData" + _arg1));
_local2.data.username = GlobalVariables.username;
_local2.data.deerSelection = GlobalVariables.deerSelection;
_local2.data.deerNames = GlobalVariables.deerNames;
_local2.data.deerCyborg = GlobalVariables.deerCyborg;
_local2.data.deerWings = GlobalVariables.deerWings;
_local2.data.deerDuck = GlobalVariables.deerDuck;
_local2.data.totalMoney = GlobalVariables.totalMoney;
_local2.data.totalScore = GlobalVariables.totalScore;
_local2.data.bestCombo = GlobalVariables.bestCombo;
_local2.data.lastScore = GlobalVariables.lastScore;
_local2.data.achievementsDone = GlobalVariables.achievementsDone;
_local2.data.destroyedCars = GlobalVariables.destroyedCars;
_local2.data.lastStage = GlobalVariables.lastStage;
_local2.flush();
trace((("Game Saved on " + "DBData") + _arg1));
}
public static function ClearGame(_arg1:uint):void{
var _local2:SharedObject = SharedObject.getLocal(("DBData" + _arg1));
if ((((_local2.data.username == null)) || ((_local2.data.username == undefined)))){
trace(((("The game " + "DBData") + _arg1) + " doesn't exist"));
} else {
trace((("Game deleted on " + "DBData") + _arg1));
_local2.clear();
};
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 119
//soundManagerLite (com.SexyLegsVFX.DeerBitch.Global.soundManagerLite)
package com.SexyLegsVFX.DeerBitch.Global {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
public class soundManagerLite {
private var menuMusicTimer:Timer;
private var menuMusicPlaying:Boolean;// = false
private var sfxCrash3:Sound;
private var sfxCrash4:Sound;
private var sfxCrash5:Sound;
private var sfxCrash6:Sound;
private var sfxCrash7:Sound;
private var sfxCrash1:Sound;
private var sfxCrash2:Sound;
private var sfxCrash8:Sound;
private var sfxExplosion:Sound;
private var musicMenu:Sound;
private var sfxMouse:Sound;
private var sfxAchievement:Sound;
private var gameMusicTimer:Timer;
private var musicGame:Sound;
private var sfxDie:Sound;
public static var instance:soundManagerLite = new (soundManagerLite);
;
public static var sfxDieChannel:SoundChannel = new SoundChannel();
public static var isMute:Boolean = false;
public static var musicChannel:SoundChannel = new SoundChannel();
public static var sfxChannel:SoundChannel = new SoundChannel();
public function soundManagerLite(){
gameMusicTimer = new Timer(13333, 0);
menuMusicTimer = new Timer(53555, 0);
super();
gameMusicTimer.addEventListener(TimerEvent.TIMER, loopGameMusic);
menuMusicTimer.addEventListener(TimerEvent.TIMER, loopMenuMusic);
if (instance){
throw (new Error("Singleton and can only be accessed through Singleton.getInstance()"));
};
trace("sound manager initiated");
musicMenu = new Ressources.MUSIQUEMENU_MUSIC();
musicGame = new Ressources.MUSIQUEGAME_MUSIC();
sfxCrash1 = new Ressources.CRASH1_SFX();
sfxCrash2 = new Ressources.CRASH2_SFX();
sfxCrash3 = new Ressources.CRASH3_SFX();
sfxCrash4 = new Ressources.CRASH4_SFX();
sfxCrash5 = new Ressources.CRASH5_SFX();
sfxCrash6 = new Ressources.CRASH6_SFX();
sfxCrash7 = new Ressources.CRASH7_SFX();
sfxCrash8 = new Ressources.CRASH8_SFX();
sfxMouse = new Ressources.MOUSE_SFX();
sfxAchievement = new Ressources.ACHIEVEMENT_SFX();
sfxExplosion = new Ressources.EXPLOSION_SFX();
sfxDie = new Ressources.DIE_SFX();
}
private function loopMenuMusic(_arg1:TimerEvent=null):void{
musicChannel = musicMenu.play();
if (isMute){
mute();
} else {
unmute();
};
}
public function playDieSound():void{
sfxDieChannel = sfxDie.play();
if (isMute){
mute();
} else {
unmute();
};
}
public function playMouseSound():void{
sfxChannel = sfxMouse.play();
if (isMute){
mute();
} else {
unmute();
};
}
public function playCarSound():void{
var _local1:uint = ((Math.random() * 8) + 1);
sfxChannel = this[("sfxCrash" + _local1)].play();
if (isMute){
mute();
} else {
unmute();
};
trace(("sfxCrash" + _local1));
}
public function unmute():void{
var _local1:SoundTransform = new SoundTransform();
var _local2:SoundTransform = new SoundTransform();
var _local3:SoundTransform = new SoundTransform();
_local1.volume = 1;
_local2.volume = 0.4;
_local3.volume = 1.5;
musicChannel.soundTransform = _local1;
sfxChannel.soundTransform = _local2;
sfxDieChannel.soundTransform = _local3;
}
public function playExplosionSound():void{
sfxChannel = sfxExplosion.play();
if (isMute){
mute();
} else {
unmute();
};
}
public function mute():void{
var _local1:SoundTransform = new SoundTransform();
_local1.volume = 0;
musicChannel.soundTransform = _local1;
sfxChannel.soundTransform = _local1;
sfxDieChannel.soundTransform = _local1;
}
public function playAchievementSound():void{
sfxChannel = sfxAchievement.play();
if (isMute){
mute();
} else {
unmute();
};
}
public function playMenuMusic():void{
if (!menuMusicPlaying){
musicChannel.stop();
musicChannel = musicMenu.play(0, int.MAX_VALUE);
if (isMute){
mute();
} else {
unmute();
};
gameMusicTimer.reset();
gameMusicTimer.stop();
menuMusicPlaying = true;
};
}
private function loopGameMusic(_arg1:TimerEvent=null):void{
musicChannel = musicGame.play();
if (isMute){
mute();
} else {
unmute();
};
}
public function setMute():void{
if (isMute){
isMute = false;
unmute();
} else {
isMute = true;
mute();
};
}
public function playGameMusic():void{
menuMusicPlaying = false;
musicChannel.stop();
loopGameMusic();
gameMusicTimer.start();
}
public static function getInstance():soundManagerLite{
return (instance);
}
}
}//package com.SexyLegsVFX.DeerBitch.Global
Section 120
//AchievementScreen (com.SexyLegsVFX.DeerBitch.Screens.AchievementScreen)
package com.SexyLegsVFX.DeerBitch.Screens {
import flash.display.*;
import com.SexyLegsVFX.DeerBitch.Global.*;
import com.SexyLegsVFX.System.Screens.*;
import com.SexyLegsVFX.System.Interfaces.*;
import com.SexyLegsVFX.System.Global.*;
import com.SexyLegsVFX.System.Managers.*;
public class AchievementScreen extends Screen implements IScreen {
private var screenMedal:MovieClip;
private var achievementInfos:achievementDescription;
public function destroy():void{
achievementInfos.Destroy();
achievementInfos = null;
ButtonManager.getInstance().clearButtons();
}
public function btn9Over_Handler():void{
showRectangle(9);
}
public function btn10Out_Handler():void{
hideRectangle(10);
}
public function btn1Out_Handler():void{
hideRectangle(1);
}
public function btn5Over_Handler():void{
showRectangle(5);
}
public function btn4Out_Handler():void{
hideRectangle(4);
}
public function mouseDown():void{
}
public function btn13Over_Handler():void{
showRectangle(13);
}
public function btn12Out_Handler():void{
hideRectangle(12);
}
private function hideRectangle(_arg1:uint):void{
screenMedal.visible = false;
}
public function btn6Out_Handler():void{
hideRectangle(6);
}
public function init():void{
loadSWF(Ressources.ACHIEVEMENT_SWF, completeHandler);
}
public function completeHandler():void{
ButtonManager.getInstance().loadButton(this);
achievementInfos = new achievementDescription();
setMedals();
setButtons();
var _local1:Class = (content.loaderInfo.applicationDomain.getDefinition("frameMedal") as Class);
screenMedal = new (_local1);
addChild(screenMedal);
screenMedal.visible = false;
}
public function btn7Over_Handler():void{
showRectangle(7);
}
public function btn10Over_Handler():void{
showRectangle(10);
}
public function btn11Over_Handler():void{
showRectangle(11);
}
public function btn12Over_Handler():void{
showRectangle(12);
}
public function btn7Out_Handler():void{
hideRectangle(7);
}
public function mouseUp():void{
}
private function setButtons():void{
var _local1:uint;
while (_local1 < 13) {
content[("btn" + (_local1 + 1))].buttonMode = false;
_local1++;
};
}
public function btn3Out_Handler():void{
hideRectangle(3);
}
public function btnPlayClick_Handler():void{
soundManagerLite.getInstance().playMouseSound();
ScreenManager.GetInstance().LoadScreen((new GameScreen() as IScreen));
ScreenManager.GetInstance().ChangeScreen("fade", 500);
}
public function keyPress(_arg1:Boolean, _arg2:int):void{
if (_arg1){
if (_arg2 == 77){
soundManagerLite.getInstance().setMute();
};
};
}
public function render(_arg1:Number):void{
if (content){
if (stage.mouseX < (GlobalVars.stageWidth / 2)){
screenMedal.x = (stage.mouseX + 170);
screenMedal.y = stage.mouseY;
} else {
screenMedal.x = (stage.mouseX - 150);
screenMedal.y = stage.mouseY;
};
};
}
public function btn13Out_Handler():void{
hideRectangle(13);
}
private function setMedals():void{
var _local1:uint;
while (_local1 < 13) {
if (GlobalVariables.achievementsDone[_local1] == 1){
content[("ach" + (_local1 + 1))].gotoAndStop(2);
} else {
content[("ach" + (_local1 + 1))].gotoAndStop(1);
};
_local1++;
};
}
public function btn5Out_Handler():void{
hideRectangle(5);
}
public function btn2Out_Handler():void{
hideRectangle(2);
}
public function btn11Out_Handler():void{
hideRectangle(11);
}
private function showRectangle(_arg1:uint):void{
screenMedal.title.text = achievementInfos[("ACH" + _arg1)][0];
screenMedal.description.text = achievementInfos[("ACH" + _arg1)][1];
screenMedal.visible = true;
}
public function btn1Over_Handler():void{
showRectangle(1);
}
public function btn2Over_Handler():void{
showRectangle(2);
}
public function btn3Over_Handler():void{
showRectangle(3);
}
public function btn4Over_Handler():void{
showRectangle(4);
}
public function btn6Over_Handler():void{
showRectangle(6);
}
public function btn8Over_Handler():void{
showRectangle(8);
}
public function btn8Out_Handler():void{
hideRectangle(8);
}
public function btn9Out_Handler():void{
hideRectangle(9);
}
public function btnReturnClick_Handler():void{
soundManagerLite.getInstance().playMouseSound();
ScreenManager.GetInstance().LoadScreen((new GameMenu() as IScreen));
ScreenManager.GetInstance().ChangeScreen("fade", 500);
}
}
}//package com.SexyLegsVFX.DeerBitch.Screens
Section 121
//Animatic (com.SexyLegsVFX.DeerBitch.Screens.Animatic)
package com.SexyLegsVFX.DeerBitch.Screens {
import flash.events.*;
import com.SexyLegsVFX.DeerBitch.Global.*;
import com.SexyLegsVFX.System.Screens.*;
import com.SexyLegsVFX.System.Interfaces.*;
import com.SexyLegsVFX.System.Managers.*;
public class Animatic extends Screen implements IScreen {
private var index:uint;
public function Animatic(_arg1:uint){
this.index = _arg1;
}
public function mouseUp():void{
if (index == 6){
ScreenManager.GetInstance().LoadScreen((new ChooseYourDeer() as IScreen));
ScreenManager.GetInstance().ChangeScreen("fade", 500);
} else {
ScreenManager.GetInstance().LoadScreen((new Animatic((index + 1)) as IScreen));
ScreenManager.GetInstance().ChangeScreen("fade", 500);
};
}
private function mouse_Handler(_arg1:MouseEvent):void{
if (content){
switch (_arg1.type){
case "mouseOut":
content.btnNext.gotoAndStop(1);
break;
case "mouseOver":
content.btnNext.gotoAndStop(2);
break;
};
};
}
public function keyPress(_arg1:Boolean, _arg2:int):void{
if (_arg1){
if (_arg2 == 77){
soundManagerLite.getInstance().setMute();
};
};
}
public function mouseDown():void{
trace("next");
}
public function init():void{
trace("Animatic Screen Loaded");
loadSWF(Ressources.ANIMATIC_SWF, completeHandler);
}
public function completeHandler():void{
content.btnNext.gotoAndStop(1);
content.animaticPicture.gotoAndStop(index);
content.btnNext.addEventListener(MouseEvent.MOUSE_OVER, mouse_Handler);
content.btnNext.addEventListener(MouseEvent.MOUSE_OUT, mouse_Handler);
}
public function render(_arg1:Number):void{
}
public function destroy():void{
}
}
}//package com.SexyLegsVFX.DeerBitch.Screens
Section 122
//ChooseYourDeer (com.SexyLegsVFX.DeerBitch.Screens.ChooseYourDeer)
package com.SexyLegsVFX.DeerBitch.Screens {
import flash.display.*;
import com.SexyLegsVFX.DeerBitch.Global.*;
import com.SexyLegsVFX.System.Screens.*;
import com.SexyLegsVFX.System.Interfaces.*;
import com.SexyLegsVFX.System.Managers.*;
public class ChooseYourDeer extends Screen implements IScreen {
private var deerNames:Array;
private var teamCompleteWindow:Sprite;
private var teamName:String;
private var teamWindowExist:Boolean;
private var teamCompleteWindowExist:Boolean;
private var teamWindow:Sprite;
private var deerAdded:uint;
private var blocker:Sprite;
private var deerSelection:Array;
public function ChooseYourDeer(){
deerSelection = [];
deerNames = [];
super();
}
public function btnTeamCancelClick_Handler():void{
soundManagerLite.getInstance().playMouseSound();
teamWindowExist = false;
removeChild(teamWindow);
removeChild(blocker);
}
public function startGame():void{
GlobalVariables.username = teamName;
GlobalVariables.deerSelection = deerSelection;
GlobalVariables.deerNames = deerNames;
GlobalVariables.deerCyborg = [0, 0, 0, 0, 0, 0, 0, 0, 0];
GlobalVariables.deerWings = [0, 0, 0, 0, 0, 0, 0, 0, 0];
GlobalVariables.deerDuck = [0, 0, 0, 0, 0, 0, 0, 0, 0];
GlobalVariables.achievementsDone = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
GlobalVariables.totalMoney = 0;
GlobalVariables.totalScore = 0;
GlobalVariables.destroyedCars = 0;
GlobalVariables.lastStage = 0;
Save.SaveGame(GlobalVariables.gameSlot);
ScreenManager.GetInstance().LoadScreen((new GameScreen() as IScreen));
ScreenManager.GetInstance().ChangeScreen();
}
public function btnDeer1Click_Handler():void{
soundManagerLite.getInstance().playMouseSound();
addDeer(1);
}
private function showTeamCompleteWindow():void{
showBlocker();
addChild(teamCompleteWindow);
teamCompleteWindowExist = true;
}
public function addDeer(_arg1:uint):void{
var _local2:uint = (deerSelection.length + 1);
if (_local2 < 10){
content[("iconDeer" + _local2)].gotoAndStop((_arg1 + 1));
deerNames[deerNames.length] = randomizeName(_arg1);
deerSelection[deerSelection.length] = _arg1;
trace(deerSelection);
};
}
public function destroy():void{
ButtonManager.getInstance().clearButtons();
}
public function btnDeer2Click_Handler():void{
soundManagerLite.getInstance().playMouseSound();
addDeer(2);
}
public function btnTeamAddClick_Handler():void{
soundManagerLite.getInstance().playMouseSound();
teamWindowExist = false;
teamName = teamWindow["inputName"].text;
startGame();
}
public function btnDeersCompleteClick_Handler():void{
soundManagerLite.getInstance().playMouseSound();
teamCompleteWindowExist = false;
removeChild(teamCompleteWindow);
removeChild(blocker);
}
public function render(_arg1:Number):void{
}
public function init():void{
trace("Choose Your Deer Loaded");
loadSWF(Ressources.CHOOSEDEER_SWF, completeHandler);
}
private function showTeamWindow():void{
showBlocker();
addChild(teamWindow);
stage.focus = teamWindow["inputName"];
teamWindowExist = true;
if (teamName != null){
teamWindow["inputName"].text = teamName;
} else {
teamWindow["inputName"].text = "My Team";
};
}
public function randomizeName(_arg1:uint):String{
var _local2:uint = GlobalVariables[(("deer" + _arg1) + "Names")].length;
var _local3:uint = (Math.random() * _local2);
var _local4:String = GlobalVariables[(("deer" + _arg1) + "Names")][_local3];
return (_local4);
}
public function completeHandler():void{
var _local1:Class;
_local1 = (content.loaderInfo.applicationDomain.getDefinition("teamNameWin") as Class);
teamWindow = new (_local1);
teamWindow.x = 400;
teamWindow.y = 300;
_local1 = (content.loaderInfo.applicationDomain.getDefinition("teamCompleteWin") as Class);
teamCompleteWindow = new (_local1);
teamCompleteWindow.x = 400;
teamCompleteWindow.y = 300;
_local1 = (content.loaderInfo.applicationDomain.getDefinition("winBlock") as Class);
blocker = new (_local1);
addChild(teamWindow);
addChild(teamCompleteWindow);
stage.focus = this;
ButtonManager.getInstance().loadButton(this);
removeChild(teamWindow);
removeChild(teamCompleteWindow);
resetDeer();
}
public function btnPlayClick_Handler():void{
if (deerSelection.length == 9){
showTeamWindow();
} else {
showTeamCompleteWindow();
};
}
public function mouseUp():void{
}
public function keyPress(_arg1:Boolean, _arg2:int):void{
if (_arg1){
if ((((_arg2 == 13)) && (teamWindowExist))){
trace("dfasdf");
btnTeamAddClick_Handler();
};
if (_arg2 == 77){
if (!teamWindowExist){
soundManagerLite.getInstance().setMute();
};
};
};
}
public function resetDeer():void{
var _local1:uint = 1;
while (_local1 < 10) {
content[("iconDeer" + _local1)].gotoAndStop(0);
_local1++;
};
deerNames = [];
deerSelection = [];
}
public function mouseDown():void{
}
private function hideBlocker():void{
addChild(blocker);
}
public function btnDeer3Click_Handler():void{
soundManagerLite.getInstance().playMouseSound();
addDeer(3);
}
public function btnResetClick_Handler():void{
soundManagerLite.getInstance().playMouseSound();
resetDeer();
}
private function showBlocker():void{
addChild(blocker);
}
}
}//package com.SexyLegsVFX.DeerBitch.Screens
Section 123
//Credits (com.SexyLegsVFX.DeerBitch.Screens.Credits)
package com.SexyLegsVFX.DeerBitch.Screens {
import com.SexyLegsVFX.DeerBitch.Global.*;
import com.SexyLegsVFX.System.Screens.*;
import com.SexyLegsVFX.System.Interfaces.*;
import com.SexyLegsVFX.System.Managers.*;
public class Credits extends Screen implements IScreen {
public function keyPress(_arg1:Boolean, _arg2:int):void{
if (_arg1){
if (_arg2 == 77){
soundManagerLite.getInstance().setMute();
};
};
}
public function mouseDown():void{
}
public function mouseUp():void{
}
public function init():void{
loadSWF(Ressources.CREDITS_SWF, completeHandler);
}
public function completeHandler():void{
ButtonManager.getInstance().loadButton(this);
}
public function render(_arg1:Number):void{
}
public function destroy():void{
ButtonManager.getInstance().clearButtons();
}
public function btnBackClick_Handler():void{
ScreenManager.GetInstance().LoadScreen((new MainMenu() as IScreen));
ScreenManager.GetInstance().ChangeScreen("fade", 500);
}
}
}//package com.SexyLegsVFX.DeerBitch.Screens
Section 124
//GameMenu (com.SexyLegsVFX.DeerBitch.Screens.GameMenu)
package com.SexyLegsVFX.DeerBitch.Screens {
import flash.events.*;
import flash.display.*;
import com.SexyLegsVFX.DeerBitch.Global.*;
import spill.localisation.*;
import com.SexyLegsVFX.System.Screens.*;
import com.SexyLegsVFX.System.Interfaces.*;
import com.spilgames.api.*;
import com.SexyLegsVFX.System.Global.*;
import com.SexyLegsVFX.System.Managers.*;
import flash.net.*;
import flash.system.*;
import CPMStar.*;
public class GameMenu extends Screen implements IScreen {
private const TYPE_1DAYS:String = "Last 24 hours";
private const TYPE_7DAYS:String = "Last 7 days";
private const TYPE_ALLTIME:String = "All time";
private const TYPE_30DAYS:String = "Last 30 days";
private var scoreWindows:MovieClip;
private var _scoreCallbackID:int;
private var isDragging:Boolean;// = false
private var ad:DisplayObject;
private var achievements:achievementDescription;
private var scrollDirection:String;// = "none"
private var isOnAds:Boolean;// = false
private var displayScoreArray:Array;
private var clickBlocker:MovieClip;
private var NG_AD:MovieClip;
private var listType:String;
public function GameMenu(){
displayScoreArray = [];
super();
}
public function btnAchievementClick_Handler():void{
soundManagerLite.getInstance().playMouseSound();
ScreenManager.GetInstance().LoadScreen((new AchievementScreen() as IScreen));
ScreenManager.GetInstance().ChangeScreen();
}
public function btn1DaysClick_Handler():void{
soundManagerLite.getInstance().playMouseSound();
listType = this.TYPE_1DAYS;
loadHighScore();
}
public function btnAllTimeClick_Handler():void{
soundManagerLite.getInstance().playMouseSound();
listType = this.TYPE_ALLTIME;
loadHighScore();
}
public function init():void{
trace("Game Menu Loaded");
loadSWF(Ressources.GAMEMENU_SWF, completeHandler);
}
public function render(_arg1:Number):void{
var _local2:Number = 0.05;
if (content){
switch (scrollDirection){
case "up":
scoreWindows.btnScroll.y = (scoreWindows.btnScroll.y + (-(_local2) * _arg1));
break;
case "down":
scoreWindows.btnScroll.y = (scoreWindows.btnScroll.y + (_local2 * _arg1));
break;
};
};
if (isDragging){
scoreWindows.btnScroll.y = (stage.mouseY - scoreWindows.y);
};
if (scoreWindows.btnScroll.y < -46.5){
scoreWindows.btnScroll.y = -46.5;
};
if (scoreWindows.btnScroll.y > 114){
scoreWindows.btnScroll.y = 114;
};
var _local3:Number = -28.6;
var _local4:Number = (-28.6 + ((displayScoreArray.length * -27) + 220));
var _local5:Number = ((114 - scoreWindows.btnScroll.y) / (114 - -46.5));
if (displayScoreArray.length > 8){
scoreWindows.insideFrame.y = (((1 - _local5) * (_local4 - _local3)) + _local3);
};
if (achievements){
if (((((GlobalVariables.moneyEarned) && ((GlobalVariables.moneyEarned >= 300000)))) && ((GlobalVariables.achievementsDone[(11 - 1)] == 0)))){
achievements.newAchievement(11);
};
};
if ((((((((GlobalVars.stage.mouseX >= content.adBox.x)) && ((GlobalVars.stage.mouseX <= (content.adBox.x + content.adBox.width))))) && ((GlobalVars.stage.mouseY >= content.adBox.y)))) && ((GlobalVars.stage.mouseY <= (content.adBox.y + content.adBox.height))))){
isOnAds = true;
} else {
isOnAds = false;
};
}
public function btnArrowUpOut_Handler():void{
scrollDirection = "none";
}
public function btnMainMenuClick_Handler():void{
soundManagerLite.getInstance().playMouseSound();
ScreenManager.GetInstance().LoadScreen((new MainMenu() as IScreen));
ScreenManager.GetInstance().ChangeScreen();
}
public function mouseUp():void{
this.isDragging = false;
}
private function onMouseWheelEvent(_arg1:MouseEvent):void{
scoreWindows.btnScroll.y = (scoreWindows.btnScroll.y + -(_arg1.delta));
}
public function btnPlayClick_Handler():void{
soundManagerLite.getInstance().playMouseSound();
ScreenManager.GetInstance().LoadScreen((new GameScreen() as IScreen));
ScreenManager.GetInstance().ChangeScreen();
}
private function numberFormat(_arg1, _arg2:int=2, _arg3:Boolean=false, _arg4:Boolean=true):String{
var _local11:int;
var _local5:int;
var _local6:Number = Math.pow(10, _arg2);
var _local7:String = String((Math.round((_local6 * Number(_arg1))) / _local6));
var _local8 = (_local7.indexOf(".") == -1);
var _local9:int = (_local8) ? _local7.length : _local7.indexOf(".");
var _local10:String = ((((_local8) && (!(_arg3)))) ? "" : (_arg4) ? "." : " " + _local7.substr((_local9 + 1)));
if (_arg3){
_local11 = 0;
while (_local11 <= (_arg2 - (_local7.length - (_local8) ? (_local9 - 1) : _local9))) {
_local10 = (_local10 + "0");
_local11++;
};
};
while ((_local5 + 3) < ((_local7.substr(0, 1) == "-")) ? (_local9 - 1) : _local9) {
_local5 = (_local5 + 3);
_local10 = (((_arg4) ? " " : "." + _local7.substr((_local9 - _local5), 3)) + _local10);
};
return ((_local7.substr(0, (_local9 - _local5)) + _local10));
}
public function btnArrowUpDown_Handler():void{
scrollDirection = "up";
}
private function handleBrandingLogoClicked(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getMoreGamesLink("Mainscreen")), "_blank");
}
public function btn30DaysClick_Handler():void{
soundManagerLite.getInstance().playMouseSound();
listType = this.TYPE_30DAYS;
loadHighScore();
}
public function keyPress(_arg1:Boolean, _arg2:int):void{
if (_arg1){
if (_arg2 == 32){
btnPlayClick_Handler();
};
if (_arg2 == 77){
soundManagerLite.getInstance().setMute();
};
};
}
public function btnSubmitClick_Handler():void{
var _local2:URLVariables;
var _local3:URLRequest;
var _local4:URLLoader;
var _local1:Boolean;
soundManagerLite.getInstance().playMouseSound();
if (_local1){
addChild(this.clickBlocker);
content.loadingScreen.visible = true;
_local2 = new URLVariables();
_local2.account = "Guest";
_local2.team = GlobalVariables.username;
_local2.score = GlobalVariables.lastScore;
_local3 = new URLRequest();
Security.loadPolicyFile("http://sexylegsgames.com/flashGamesDB/DeerBitch/crossdomain.xml");
_local3.url = "http://sexylegsgames.com/flashGamesDB/DeerBitch/SetHighScores_DeerBitch.php";
_local3.data = _local2;
_local4 = new URLLoader();
_local4.load(_local3);
_local4.addEventListener(Event.COMPLETE, setHighScoresResults, false, 0, true);
_local2 = null;
_local3 = null;
_local4 = null;
} else {
_scoreCallbackID = ScoreService.submitScore(GlobalVariables.lastScore, onScoreRequestProcessed);
};
}
public function btnArrowUpClick_Handler():void{
scrollDirection = "none";
}
private function emptyScores():void{
var _local1:uint;
while (_local1 < displayScoreArray.length) {
scoreWindows.insideFrame.removeChild(displayScoreArray[_local1]);
displayScoreArray[_local1] = null;
_local1++;
};
displayScoreArray = [];
scoreWindows.btnScroll.y = -46.5;
scoreWindows.insideFrame.y = -28.6;
}
public function btnUpgradesClick_Handler():void{
soundManagerLite.getInstance().playMouseSound();
ScreenManager.GetInstance().LoadScreen((new Upgrades() as IScreen));
ScreenManager.GetInstance().ChangeScreen();
}
private function loadHighScore():void{
var _local1:URLVariables = new URLVariables();
_local1.nbOfScores = 100;
var _local2:URLRequest = new URLRequest();
_local2.data = _local1;
_local2.url = "http://sexylegsgames.com/flashGamesDB/DeerBitch/GetHighScores_DeerBitch.php";
var _local3:URLLoader = new URLLoader();
_local3.load(_local2);
_local3.addEventListener(Event.COMPLETE, getHighScores, false, 0, true);
}
public function btn7DaysClick_Handler():void{
soundManagerLite.getInstance().playMouseSound();
listType = this.TYPE_7DAYS;
loadHighScore();
}
private function onScoreRequestProcessed(_arg1:int, _arg2:Object):void{
trace(("onScoreRequestProcessed" + "\n"));
trace((("\tcallbackID: " + _arg1) + "\n"));
if (!_arg2.errorMessage){
trace((("\txml: " + _arg2.xml) + "\n"));
} else {
trace((("\tError in request: " + _arg2.errorMessage) + "\n"));
};
}
public function mouseDown():void{
}
private function getHighScores(_arg1:Event):void{
var _local3:XMLList;
var _local4:XMLList;
var _local5:XMLList;
var _local7:Class;
emptyScores();
var _local2:XML = XML(_arg1.target.data);
switch (listType){
case this.TYPE_ALLTIME:
_local3 = _local2.entryAll.score;
_local4 = _local2.entryAll.account;
_local5 = _local2.entryAll.team;
break;
case this.TYPE_30DAYS:
_local3 = _local2.entry30.score;
_local4 = _local2.entry30.account;
_local5 = _local2.entry30.team;
break;
case this.TYPE_7DAYS:
_local3 = _local2.entry7.score;
_local4 = _local2.entry7.account;
_local5 = _local2.entry7.team;
break;
case this.TYPE_1DAYS:
_local3 = _local2.entry1.score;
_local4 = _local2.entry1.account;
_local5 = _local2.entry1.team;
break;
};
var _local6:int;
while (_local6 < _local3.length()) {
_local7 = (content.loaderInfo.applicationDomain.getDefinition("rightScoreText") as Class);
displayScoreArray[_local6] = new (_local7);
scoreWindows.insideFrame.addChild(displayScoreArray[_local6]);
displayScoreArray[_local6].x = 166.3;
displayScoreArray[_local6].y = (-30.6 + (_local6 * 27));
displayScoreArray[_local6].rankText.text = (_local6 + 1);
displayScoreArray[_local6].teamText.text = _local5[_local6];
displayScoreArray[_local6].scoreText.text = numberFormat(_local3[_local6]);
_local6++;
};
scoreWindows.typeText.text = listType;
addChild(scoreWindows);
}
public function btnArrowDownOut_Handler():void{
scrollDirection = "none";
}
public function btnArrowDownClick_Handler():void{
scrollDirection = "none";
}
public function completeHandler():void{
var _local2:LocalConnection;
var _local5:uint;
var _local6:uint;
var _local7:Number;
var _local8:String;
achievements = new achievementDescription();
var _local1:Class = (content.loaderInfo.applicationDomain.getDefinition("scoreWin") as Class);
scoreWindows = new (_local1);
this.addEventListener(MouseEvent.MOUSE_WHEEL, onMouseWheelEvent, false, 0, true);
content.loadingScreen.visible = false;
addChild(scoreWindows);
scoreWindows.x = 400;
scoreWindows.y = 300;
ButtonManager.getInstance().loadButton(this);
removeChild(scoreWindows);
content["score"].text = numberFormat(GlobalVariables.lastScore);
if (GlobalVariables.moneyEarned){
content["gameCash"].text = (numberFormat(GlobalVariables.moneyEarned) + " $");
} else {
content["gameCash"].text = "0 $";
};
content["totalCash"].text = (numberFormat(GlobalVariables.totalMoney) + " $");
content["combo"].text = numberFormat(GlobalVariables.bestCombo);
clickBlocker = new MovieClip();
clickBlocker.graphics.beginFill(0, 0);
clickBlocker.graphics.drawRect(0, 0, GlobalVars.stageWidth, GlobalVars.stageHeight);
clickBlocker.graphics.endFill();
clickBlocker.alpha = 0;
stage.focus = this;
addChild(achievements);
MochiBot.track(this, "dfcf799c");
_local2 = new LocalConnection();
var _local3:Array = ["www8.agame.com", "3.xiaoyouxi.cn", "files.game.com.cn", "files.game.asia", "sexylegsvfx.com", "www.sexylegsvfx.com"];
if (_local3.indexOf(_local2.domain) != -1){
content.adBox.visible = false;
_local5 = 550;
_local6 = 150;
_local7 = 2;
} else {
_local8 = "2099Q56C7C42B";
ad = new AdLoader(_local8);
content.adBox.addChild(ad);
_local5 = 180;
_local6 = 70;
_local7 = 2;
};
var _local4:BrandingLogo = new BrandingLogo();
_local4.y = (0 + _local6);
_local4.x = (0 + _local5);
_local4.scaleX = _local7;
_local4.scaleY = _local7;
_local4.mouseEnabled = (_local4.buttonMode = (_local4.useHandCursor = true));
_local4.addEventListener(MouseEvent.CLICK, handleBrandingLogoClicked);
addChild(_local4);
}
public function btnScrollDown_Handler():void{
this.isDragging = true;
}
public function destroy():void{
var _local1:LocalConnection;
_local1 = new LocalConnection();
var _local2:Array = ["www8.agame.com", "3.xiaoyouxi.cn", "files.game.com.cn", "files.game.asia", "sexylegsvfx.com", "www.sexylegsvfx.com"];
if (_local2.indexOf(_local1.domain) != -1){
} else {
content.adBox.removeChild(ad);
ad = null;
};
this.removeEventListener(MouseEvent.MOUSE_WHEEL, onMouseWheelEvent);
var _local3:uint;
while (_local3 < displayScoreArray.length) {
scoreWindows.insideFrame.removeChild(displayScoreArray[_local3]);
displayScoreArray[_local3].x = null;
_local3++;
};
scoreWindows = null;
displayScoreArray = null;
NG_AD = null;
clickBlocker = null;
ButtonManager.getInstance().clearButtons();
achievements.Destroy();
removeChild(achievements);
achievements = null;
}
public function btnOkClick_Handler():void{
soundManagerLite.getInstance().playMouseSound();
content.loadingScreen.visible = false;
emptyScores();
removeChild(this.clickBlocker);
removeChild(scoreWindows);
}
public function btnArrowDownDown_Handler():void{
scrollDirection = "down";
}
private function setHighScoresResults(_arg1:Event):void{
trace(_arg1.target.data);
listType = this.TYPE_1DAYS;
loadHighScore();
}
}
}//package com.SexyLegsVFX.DeerBitch.Screens
Section 125
//GameScreen (com.SexyLegsVFX.DeerBitch.Screens.GameScreen)
package com.SexyLegsVFX.DeerBitch.Screens {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import com.SexyLegsVFX.DeerBitch.Global.*;
import com.SexyLegsVFX.System.Screens.*;
import com.SexyLegsVFX.System.Interfaces.*;
import com.SexyLegsVFX.DeerBitch.Deers.*;
import com.senocular.utils.*;
import com.SexyLegsVFX.DeerBitch.Cars.*;
import com.SexyLegsVFX.System.Global.*;
import com.SexyLegsVFX.System.Managers.*;
public class GameScreen extends Screen implements IScreen {
private var currentStage:uint;
private var currentDeer:Deer;
private var bestCombo:uint;// = 0
private var currentDeerIndex:uint;
private var cashDisplay:Array;
private var distanceDone:Number;// = 0
private var deerNextImageIndex:String;
private var velocityX:Number;// = 0.2
private var velocityY:Number;// = 0.3
private var checkDistance:Number;// = 35
private var nextDeerSel:String;
private var comboCount:uint;// = 0
private var achievements:achievementDescription;
private var camera:Sprite;
private var character:MovieClip;
private var upArrow:MovieClip;
private var spacePressed:Boolean;// = false
private var deadDeers:Array;
private var killedCars:Array;
private var speed:Number;// = -0.3
private var nbOfCar:uint;// = 6
private var gravity:Number;// = 0.0015
private var nbOfBg:uint;// = 3
private var earnedCash:Number;// = 0
private var comboDisplay:MovieClip;
private var boomDisplay:Array;
private var nbOfDeers:uint;// = 9
private var comboTimer:Timer;
private var key:KeyObject;
private var startGameTime:Timer;
private var displayNextDeer:MovieClip;
private var carsArray:Array;
private var trafic:uint;// = 5
private var isPlay:Boolean;// = false
private var totalComboCount:uint;// = 0
private var isThrowing:Boolean;// = false
private var countStart:uint;// = 3
private var deersPosition:Array;
private var resetPosition:Timer;
private var UI:MovieClip;
private var carsProbability:Array;
private var startText:Sprite;
private var bgStep:uint;// = 3600
private var groundY:Number;// = 520
private var camSpeed:Number;// = 600
private var backgroundArray:Array;
private var nextDeerIndex:String;
private var helicopter:MovieClip;
private var endGameTime:Timer;
private var backgroundGroup:Sprite;
private var lastDeerCash:Number;// = 0
private var isPaused:Boolean;// = false
private var friction:Number;// = 0.97
private var playCam:Boolean;// = true
public function GameScreen(){
killedCars = [];
startGameTime = new Timer(1000, 0);
endGameTime = new Timer(2000, 1);
key = new KeyObject(GlobalVars.stage);
deersPosition = [240, 150];
deadDeers = [];
resetPosition = new Timer(750, 1);
backgroundGroup = new Sprite();
backgroundArray = [];
carsArray = [];
carsProbability = [2, 5, 25, 35, 32, 1];
cashDisplay = [];
boomDisplay = [];
comboTimer = new Timer(1000, 1);
camera = new Sprite();
super();
}
public function destroy():void{
var _local1:uint;
resetPosition.removeEventListener(TimerEvent.TIMER, resetPosition_Handler);
resetPosition.removeEventListener(TimerEvent.TIMER, resetPosition_Handler);
startGameTime.removeEventListener(TimerEvent.TIMER, countTime);
endGameTime.removeEventListener(TimerEvent.TIMER_COMPLETE, quitGame);
_local1 = 0;
while (_local1 < this.nbOfBg) {
backgroundGroup.removeChild(backgroundArray[_local1]);
backgroundArray[_local1] = null;
_local1++;
};
_local1 = 0;
while (_local1 < carsArray.length) {
camera.removeChild(carsArray[_local1]);
carsArray[_local1].destroy;
carsArray[_local1] = null;
_local1++;
};
backgroundArray = null;
backgroundGroup = null;
boomDisplay = null;
comboDisplay = null;
startGameTime = null;
endGameTime = null;
removeChild(upArrow);
upArrow = null;
startText = null;
removeChild(UI);
UI = null;
_local1 = 0;
while (_local1 < cashDisplay.length) {
cashDisplay[_local1] = null;
_local1++;
};
currentDeer = null;
displayNextDeer = null;
if (displayNextDeer){
removeImageNextDeer();
};
helicopter.removeChild(character);
camera.removeChild(helicopter);
helicopter = null;
character = null;
UI = null;
killedCars = null;
GlobalVariables.gameAssets = null;
_local1 = 0;
while (_local1 < deadDeers.length) {
deadDeers[_local1].Destroy();
deadDeers[_local1] = null;
_local1++;
};
deadDeers = null;
GlobalVariables.gameAssets = null;
achievements.Destroy();
removeChild(achievements);
achievements = null;
}
public function init():void{
var _local1:uint = GlobalVariables.lastStage;
GlobalVariables.lastStage++;
if (GlobalVariables.lastStage == 4){
GlobalVariables.lastStage = 0;
};
trace("GameScreen Loaded");
switch (_local1){
case 1:
loadSWF(Ressources.GAMEROUTE69_SWF, completeHandler);
this.groundY = 520;
break;
case 3:
loadSWF(Ressources.GAMETOKYO_SWF, completeHandler);
this.groundY = 490;
break;
case 0:
loadSWF(Ressources.GAMECANADA_SWF, completeHandler);
this.groundY = 520;
break;
case 2:
loadSWF(Ressources.GAMETROPICS_SWF, completeHandler);
this.groundY = 540;
break;
};
currentStage = _local1;
}
private function renderComboDisplay():void{
if (((comboDisplay) && (currentDeer))){
comboDisplay.x = (currentDeer.x - 25);
comboDisplay.y = (currentDeer.y - 25);
};
}
public function mouseUp():void{
}
private function createCar_Handler():void{
var _local1:uint = (Math.random() * trafic);
if (_local1 == (trafic - 1)){
createCar();
};
}
public function keyPress(_arg1:Boolean, _arg2:int):void{
if (isPlay){
if (_arg1){
if ((((((_arg2 == 32)) && ((spacePressed == false)))) && (!(isThrowing)))){
spacePressed = true;
resetPosition.stop();
characterStatus(2);
} else {
if (_arg2 == 81){
endGame();
};
};
if (_arg1){
if (_arg2 == 77){
soundManagerLite.getInstance().setMute();
};
};
} else {
if (spacePressed == true){
spacePressed = false;
isThrowing = true;
createNextDeer();
characterDrop();
};
if (currentDeer != null){
currentDeer.isControlled = false;
if (currentDeer.display.currentFrame > 1){
};
};
};
};
if (_arg1){
if (_arg2 == 80){
pause();
};
};
}
private function createBoom(_arg1:Number, _arg2:Number):void{
var _local3:uint = ((Math.random() * 4) + 1);
var _local4:Class = (GlobalVariables.deerAssets.loaderInfo.applicationDomain.getDefinition(("boom" + _local3)) as Class);
var _local5:MovieClip = new (_local4);
boomDisplay[boomDisplay.length] = _local5;
_local5.x = _arg1;
_local5.y = _arg2;
_local5.scaleX = 0.5;
_local5.scaleY = 0.5;
camera.addChild(_local5);
}
private function createCar():void{
var _local2:Car;
var _local5:uint;
var _local1:uint = ((Math.random() * 100) + 1);
var _local3:uint;
var _local4:uint;
while (_local4 < nbOfCar) {
_local3 = (_local3 + carsProbability[_local4]);
_local5 = (_local4 + 1);
if (_local1 <= _local3){
_local2 = new Car(_local5, groundY);
carsArray[carsArray.length] = _local2;
camera.addChild(_local2);
break;
};
_local4++;
};
}
private function renderCam(_arg1:Number):void{
if (playCam){
if (currentDeer != null){
camera.x = (-((currentDeer.x / 1.3)) + (deersPosition[0] / 1.3));
if (currentDeer.y < deersPosition[1]){
camera.y = (-((currentDeer.y / 1.3)) + (deersPosition[1] / 1.3));
if (camera.y > 600){
camera.y = 600;
};
};
} else {
returnCam(_arg1, 0, 0);
};
};
}
private function createImageNextDeer():void{
var _local1:Class = (GlobalVariables.deerAssets.loaderInfo.applicationDomain.getDefinition(("deer" + decorticateIndex())) as Class);
displayNextDeer = new (_local1);
displayNextDeer.gotoAndStop(1);
if (helicopter){
helicopter.addChild(displayNextDeer);
};
displayNextDeer.x = 65;
displayNextDeer.y = 65;
}
private function decorticateIndex():String{
deerNextImageIndex = "";
var _local1:uint;
while (_local1 < 4) {
if (_local1 != 0){
if (int(nextDeerSel.charAt(_local1)) > 0){
deerNextImageIndex = (deerNextImageIndex + "1");
} else {
deerNextImageIndex = (deerNextImageIndex + "0");
};
} else {
deerNextImageIndex = (deerNextImageIndex + nextDeerSel.charAt(_local1));
};
_local1++;
};
return (deerNextImageIndex);
}
private function createBackground():void{
var _local2:Class;
var _local3:MovieClip;
camera.addChild(backgroundGroup);
var _local1:uint;
while (_local1 < nbOfBg) {
_local2 = (content.loaderInfo.applicationDomain.getDefinition("background") as Class);
_local3 = new (_local2);
backgroundGroup.addChild(_local3);
if (_local1 == 0){
_local3.x = 0;
} else {
_local3.x = (backgroundArray[(_local1 - 1)].x + backgroundArray[(_local1 - 1)].width);
};
_local3.y = -600;
backgroundArray[_local1] = _local3;
_local1++;
};
}
private function endGame():void{
GlobalVariables.lastMoney = GlobalVariables.totalMoney;
GlobalVariables.moneyEarned = Math.floor(earnedCash);
GlobalVariables.totalMoney = (GlobalVariables.totalMoney + GlobalVariables.moneyEarned);
GlobalVariables.bestCombo = bestCombo;
GlobalVariables.lastScore = Math.floor((bestCombo * GlobalVariables.moneyEarned));
endGameTime.addEventListener(TimerEvent.TIMER_COMPLETE, quitGame, false, 0, true);
endGameTime.start();
playCam = false;
speed = 0;
}
private function createCashDisplay(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:Class = (content.loaderInfo.applicationDomain.getDefinition("cashDisp") as Class);
var _local5:MovieClip = new (_local4);
cashDisplay[cashDisplay.length] = _local5;
_local5.x = _arg2;
_local5.y = (_arg3 - 100);
_local5.textDisp.text = String((Math.floor(_arg1) + " $"));
_local5.scaleX = 1.5;
_local5.scaleY = 1.5;
camera.addChild(_local5);
}
private function startGame():void{
var _local1:Class = (content.loaderInfo.applicationDomain.getDefinition("startText") as Class);
startText = new (_local1);
startText.x = 400;
startText.y = 300;
addChild(startText);
startText["startText2"].text = "3";
startGameTime.addEventListener(TimerEvent.TIMER, countTime, false, 0, true);
startGameTime.start();
}
private function renderCar(_arg1:Number):void{
distanceDone = (distanceDone + Math.abs((speed * _arg1)));
if (distanceDone > checkDistance){
distanceDone = 0;
createCar_Handler();
};
var _local2:uint;
while (_local2 < carsArray.length) {
carsArray[_local2].render(_arg1, speed);
if (carsArray[_local2].x < -2000){
carsArray[_local2].destroy();
camera.removeChild(carsArray[_local2]);
carsArray[_local2] = null;
carsArray.splice(_local2, 1);
};
_local2++;
};
}
private function createComboDisplay():void{
var _local1:Class;
if ((((comboDisplay == null)) && ((comboCount > 1)))){
_local1 = (content.loaderInfo.applicationDomain.getDefinition("combo") as Class);
comboDisplay = new (_local1);
camera.addChild(comboDisplay);
};
if (comboDisplay){
comboDisplay.text.text = String(comboCount);
};
}
private function characterStatus(_arg1:uint):void{
character.gotoAndStop(_arg1);
}
private function countTime(_arg1:TimerEvent):void{
var _local2:uint = startGameTime.currentCount;
switch (_local2){
case 1:
startText["startText2"].text = "2";
break;
case 2:
startText["startText2"].text = "1";
break;
case 3:
this.camSpeed = 200;
startText["startText2"].text = "GO!";
isPlay = true;
break;
case 4:
startGameTime.stop();
removeChild(startText);
startText = null;
break;
};
}
private function resetPosition_Handler(_arg1:TimerEvent):void{
characterStatus(1);
}
private function renderDeadDeers(_arg1:Number):void{
var _local2:uint;
while (_local2 < deadDeers.length) {
deadDeers[_local2].Render(_arg1, -(speed));
_local2++;
};
}
private function createCharacter():void{
var _local1:Class = (content.loaderInfo.applicationDomain.getDefinition("character") as Class);
var _local2:MovieClip = new (_local1);
var _local3:Number = 0.9;
_local2.x = 100;
_local2.y = 65;
character = _local2;
helicopter.addChild(character);
character.scaleX = _local3;
character.scaleY = _local3;
character.gotoAndStop(1);
resetPosition.addEventListener(TimerEvent.TIMER, resetPosition_Handler, false, 0, true);
}
private function returnCam(_arg1:Number, _arg2:Number, _arg3:Number):void{
camera.x = ((camera.x - _arg2) / (1 + (_arg1 / camSpeed)));
camera.y = ((camera.y - _arg3) / (1 + (_arg1 / camSpeed)));
if ((((Math.abs((camera.x - _arg2)) < 1)) && ((Math.abs((camera.y - _arg3)) < 1)))){
camera.x = _arg2;
camera.y = _arg3;
};
}
private function renderCashDisplay(_arg1:Number):void{
var _local2:uint;
while (_local2 < cashDisplay.length) {
cashDisplay[_local2].y = (cashDisplay[_local2].y + -((0.03 * _arg1)));
cashDisplay[_local2].scaleX = (cashDisplay[_local2].scaleX + (0.002 * _arg1));
cashDisplay[_local2].scaleY = (cashDisplay[_local2].scaleY + (0.002 * _arg1));
if (cashDisplay[_local2].scaleY > 3){
camera.removeChild(cashDisplay[_local2]);
cashDisplay[_local2] = null;
cashDisplay.splice(_local2, 1);
};
_local2++;
};
}
private function createNextDeer():void{
if (nbOfDeers != 0){
nbOfDeers--;
currentDeer = new Deer(nextDeerIndex, deersPosition[0], deersPosition[1], velocityX, velocityY, friction, gravity);
currentDeerIndex = uint(nextDeerIndex.charAt(0));
camera.addChild(currentDeer);
totalComboCount = (totalComboCount + comboCount);
comboCount = 0;
getNextDeer();
};
}
public function render(_arg1:Number):void{
stage.focus = this;
if (!isPaused){
if (backgroundArray.length == nbOfBg){
moveBackground(_arg1);
};
checkControls();
contactCheck();
renderCam(_arg1);
renderDeer(_arg1);
renderComboDisplay();
renderCar(_arg1);
renderUI();
renderCashDisplay(_arg1);
renderBoomDisplay(_arg1);
renderDeadDeers(_arg1);
};
}
private function renderUI():void{
if (UI != null){
UI.maskDeers.x = (668.4 - ((9 - nbOfDeers) * 24.9));
};
if (UI != null){
UI.textCash.text = String((Math.floor(earnedCash) + " $"));
};
if (UI != null){
UI.textCombo.text = String(bestCombo);
};
}
private function renderDeer(_arg1:Number):void{
if (currentDeer != null){
currentDeer.Render(_arg1, speed);
if ((currentDeer.x + camera.x) < 0){
currentDeer.bounceLeft();
};
if ((currentDeer.x + camera.x) > 800){
currentDeer.bounceRight();
};
if (currentDeer.y < -600){
upArrow.alpha = 1;
upArrow.x = (currentDeer.x + camera.x);
upArrow.y = (camera.y - 600);
if (GlobalVariables.achievementsDone[(13 - 1)] == 0){
achievements.newAchievement(13);
};
upArrow.upArrowText.text = String(Math.floor(Math.abs((currentDeer.y + camera.y))));
} else {
upArrow.alpha = 0;
upArrow.upArrowText.text = "";
};
if (currentDeer.y > groundY){
killedCars = [];
isThrowing = false;
if (comboDisplay){
camera.removeChild(comboDisplay);
comboDisplay = null;
};
deadDeers[deadDeers.length] = new DeerDead(currentDeerIndex, currentDeer.x, (currentDeer.y - 15));
camera.addChildAt(deadDeers[(deadDeers.length - 1)], 3);
currentDeer.Destroy();
lastDeerCash = 0;
currentDeer = null;
if (nbOfDeers == 0){
endGame();
};
};
};
}
private function characterDrop():void{
characterStatus(3);
resetPosition.start();
}
private function contactCheck():void{
var _local1:uint;
var _local2:MovieClip;
var _local3:Number;
if (((!((currentDeer == null))) && (!((carsArray.length == 0))))){
_local1 = 0;
while (_local1 < carsArray.length) {
_local2 = currentDeer.display.hitZone;
if (((_local2.hitTestObject(carsArray[_local1].display.hitZone)) && ((currentDeer.velocityY > 0)))){
if (currentDeer.bouncing){
currentDeer.bounce();
if (carsArray[_local1].isDead == false){
if (carsArray[_local1].life > currentDeer.getDamage()){
_local3 = carsArray[_local1].receiveDamage(currentDeer.getDamage());
} else {
_local3 = carsArray[_local1].receiveDamage(carsArray[_local1].life);
};
if (((((((carsArray[_local1].life / carsArray[_local1].totalLife) <= 0.5)) && ((carsArray[_local1].carIndex == 1)))) && ((currentStage == 0)))){
if (GlobalVariables.achievementsDone[(6 - 1)] == 0){
achievements.newAchievement(6);
};
};
if ((carsArray[_local1].life / carsArray[_local1].totalLife) <= 0){
killedCars[killedCars.length] = carsArray[_local1].carIndex;
trace(killedCars);
if ((((((killedCars[(killedCars.length - 1)] == 1)) && ((killedCars[(killedCars.length - 2)] == 1)))) && ((GlobalVariables.achievementsDone[(12 - 1)] == 0)))){
achievements.newAchievement(12);
};
carsArray[_local1].die();
GlobalVariables.destroyedCars++;
if ((((GlobalVariables.destroyedCars >= 500)) && ((GlobalVariables.achievementsDone[(9 - 1)] == 0)))){
achievements.newAchievement(9);
};
if ((((GlobalVariables.destroyedCars >= 2000)) && ((GlobalVariables.achievementsDone[(10 - 1)] == 0)))){
achievements.newAchievement(10);
};
trace(GlobalVariables.destroyedCars);
soundManagerLite.getInstance().playExplosionSound();
createBoom(currentDeer.x, currentDeer.y);
} else {
soundManagerLite.getInstance().playCarSound();
};
createCashDisplay(_local3, currentDeer.x, currentDeer.y);
comboCount++;
if (comboCount > bestCombo){
bestCombo = comboCount;
};
if ((((comboCount >= 15)) && ((GlobalVariables.achievementsDone[(2 - 1)] == 0)))){
achievements.newAchievement(2);
};
if ((((comboCount >= 30)) && ((GlobalVariables.achievementsDone[(1 - 1)] == 0)))){
achievements.newAchievement(1);
};
createComboDisplay();
lastDeerCash = (lastDeerCash + _local3);
if ((((lastDeerCash >= 30000)) && ((GlobalVariables.achievementsDone[(7 - 1)] == 0)))){
achievements.newAchievement(7);
};
earnedCash = (earnedCash + _local3);
};
};
};
_local1++;
};
};
}
private function returnToMenu(_arg1:TimerEvent):void{
}
private function killCombo(_arg1:TimerEvent):void{
camera.removeChild(comboDisplay);
comboDisplay = null;
comboTimer.stop();
comboTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, killCombo);
}
public function completeHandler():void{
achievements = new achievementDescription();
camera.x = -1500;
GlobalVariables.gameAssets = this.content;
stage.focus = this;
createBackground();
createHelicopter();
createCharacter();
getNextDeer();
addChild(camera);
addUI();
startGame();
var _local1:Class = (content.loaderInfo.applicationDomain.getDefinition("upArrow") as Class);
upArrow = new (_local1);
addChild(upArrow);
upArrow.alpha = 0;
upArrow.upArrowText.text = "";
soundManagerLite.getInstance().playGameMusic();
}
private function checkControls():void{
if (key.isDown(key.RIGHT)){
if (currentDeer != null){
currentDeer.move("right");
};
} else {
if (key.isDown(key.LEFT)){
if (currentDeer != null){
currentDeer.move("left");
};
};
};
}
private function removeImageNextDeer():void{
helicopter.removeChild(displayNextDeer);
displayNextDeer = null;
}
private function quitGame(_arg1:TimerEvent):void{
Save.SaveGame(GlobalVariables.gameSlot);
ScreenManager.GetInstance().LoadScreen((new GameMenu() as IScreen));
ScreenManager.GetInstance().ChangeScreen("dropDown", 300);
soundManagerLite.getInstance().playMenuMusic();
}
private function moveBackground(_arg1:Number):void{
var _local4:uint;
var _local2:* = -(backgroundGroup.x);
var _local3:uint;
while (_local3 < backgroundArray.length) {
if (((((backgroundArray[_local3].x - _local2) < -(bgStep))) && ((speed > 0)))){
if (_local3 > 0){
_local4 = (_local3 - 1);
} else {
_local4 = (backgroundArray.length - 1);
};
backgroundArray[_local3].x = (backgroundArray[_local4].x + backgroundArray[_local4].width);
};
if (((((backgroundArray[_local3].x - _local2) > bgStep)) && ((speed < 0)))){
if (_local3 < (backgroundArray.length - 1)){
_local4 = (_local3 + 1);
} else {
_local4 = 0;
};
backgroundArray[_local3].x = (backgroundArray[_local4].x - backgroundArray[_local4].width);
};
_local3++;
};
backgroundGroup.x = (backgroundGroup.x + (-(speed) * _arg1));
}
public function mouseDown():void{
}
private function renderBoomDisplay(_arg1:Number):void{
var _local2:uint;
while (_local2 < boomDisplay.length) {
boomDisplay[_local2].scaleX = (boomDisplay[_local2].scaleX + (0.001 * _arg1));
boomDisplay[_local2].scaleY = (boomDisplay[_local2].scaleY + (0.001 * _arg1));
if (boomDisplay[_local2].scaleY > 1){
camera.removeChild(boomDisplay[_local2]);
boomDisplay[_local2] = null;
boomDisplay.splice(_local2, 1);
};
_local2++;
};
}
private function createHelicopter():void{
var _local1:Class = (content.loaderInfo.applicationDomain.getDefinition("helicopter") as Class);
var _local2:MovieClip = new (_local1);
var _local3:Number = 0.9;
_local2.x = 220;
_local2.y = 120;
helicopter = _local2;
camera.addChild(helicopter);
helicopter.scaleX = _local3;
helicopter.scaleY = _local3;
}
private function addUI():void{
var _local1:Class = (content.loaderInfo.applicationDomain.getDefinition("UI") as Class);
UI = new (_local1);
addChild(UI);
addChild(achievements);
}
private function pause():void{
if (isPaused){
isPaused = false;
isPlay = true;
} else {
isPaused = true;
isPlay = false;
};
}
private function getNextDeer():void{
var _local1:uint = (9 - nbOfDeers);
nextDeerSel = (((String(GlobalVariables.deerSelection[_local1]) + String(GlobalVariables.deerCyborg[_local1])) + String(GlobalVariables.deerWings[_local1])) + String(GlobalVariables.deerDuck[_local1]));
if (displayNextDeer){
removeImageNextDeer();
};
if (nbOfDeers > 0){
createImageNextDeer();
this.nextDeerIndex = nextDeerSel;
};
}
}
}//package com.SexyLegsVFX.DeerBitch.Screens
Section 126
//MainMenu (com.SexyLegsVFX.DeerBitch.Screens.MainMenu)
package com.SexyLegsVFX.DeerBitch.Screens {
import flash.events.*;
import flash.display.*;
import com.SexyLegsVFX.DeerBitch.Global.*;
import spill.localisation.*;
import com.SexyLegsVFX.System.Screens.*;
import com.SexyLegsVFX.System.Interfaces.*;
import com.SexyLegsVFX.System.Managers.*;
import flash.net.*;
public class MainMenu extends Screen implements IScreen {
public function destroy():void{
ButtonManager.getInstance().clearButtons();
}
public function btnGame2Click_Handler():void{
soundManagerLite.getInstance().playMouseSound();
if (Save.CreateGame(2)){
NewGame();
} else {
LoadGame();
};
}
public function init():void{
trace("Main Menu Loaded");
loadSWF(Ressources.MAINMENU_SWF, completeHandler);
}
public function completeHandler():void{
var _local7:SharedObject;
ButtonManager.getInstance().loadButton(this);
var _local1:uint = 1;
while (_local1 < 4) {
_local7 = SharedObject.getLocal(("DBData" + _local1));
if ((((_local7.data.username == null)) || ((_local7.data.username == undefined)))){
content[("btnGame" + _local1)].txtName.text = "New Game";
} else {
content[("btnGame" + _local1)].txtName.text = _local7.data.username;
};
_local1++;
};
soundManagerLite.getInstance().playMenuMusic();
RessourceManagerLite.getInstance().loadSWF(Ressources.DEERASSETS_SWF, loadAssets_completeHandler);
Languages.initialize();
SpilGame.initialize("Deer_Bitch", PortalGroup.TEEN, "Deer-Bitch.html", this, true);
var _local2:uint = 60;
var _local3:uint;
var _local4:LanguageSelectBox = new LanguageSelectBox();
_local4.y = (500 + _local3);
_local4.x = (25 + _local2);
addChild(_local4);
var _local5:BrandingLogo = new BrandingLogo();
_local5.y = (553 + _local3);
_local5.x = (90 + _local2);
_local5.scaleX = 1.5;
_local5.scaleY = 1.5;
_local5.mouseEnabled = (_local5.buttonMode = (_local5.useHandCursor = true));
_local5.addEventListener(MouseEvent.CLICK, handleBrandingLogoClicked);
addChild(_local5);
var _local6:SpilGamesLink = new SpilGamesLink();
_local6.y = (575 + _local3);
_local6.x = (39 + _local2);
_local6.addEventListener(MouseEvent.CLICK, handleSpilGamesButtonClicked);
addChild(_local6);
}
private function NewGame():void{
ScreenManager.GetInstance().LoadScreen((new Animatic(1) as IScreen));
ScreenManager.GetInstance().ChangeScreen("fade", 500);
}
public function btnReset3Click_Handler():void{
soundManagerLite.getInstance().playMouseSound();
Save.ClearGame(3);
content.btnGame3.txtName.text = "New Game";
}
public function btnReset1Click_Handler():void{
soundManagerLite.getInstance().playMouseSound();
Save.ClearGame(1);
content.btnGame1.txtName.text = "New Game";
}
public function render(_arg1:Number):void{
}
private function loadAssets_completeHandler(_arg1:MovieClip):void{
if (GlobalVariables.deerAssets == null){
GlobalVariables.deerAssets = _arg1;
};
}
private function LoadGame():void{
ScreenManager.GetInstance().LoadScreen((new GameMenu() as IScreen));
ScreenManager.GetInstance().ChangeScreen("fade", 500);
}
public function keyPress(_arg1:Boolean, _arg2:int):void{
if (_arg1){
if (_arg2 == 77){
soundManagerLite.getInstance().setMute();
};
};
}
public function mouseUp():void{
}
public function btnSexyClick_Handler():void{
var _local1:URLRequest = new URLRequest();
_local1.url = "http://sexylegsgames.com/";
navigateToURL(_local1, "_blank");
}
public function btnGame3Click_Handler():void{
soundManagerLite.getInstance().playMouseSound();
if (Save.CreateGame(3)){
NewGame();
} else {
LoadGame();
};
}
public function btnGame1Click_Handler():void{
soundManagerLite.getInstance().playMouseSound();
if (Save.CreateGame(1)){
NewGame();
} else {
LoadGame();
};
}
public function btnReset2Click_Handler():void{
soundManagerLite.getInstance().playMouseSound();
Save.ClearGame(2);
content.btnGame2.txtName.text = "New Game";
}
public function btnCreditsClick_Handler():void{
ScreenManager.GetInstance().LoadScreen((new Credits() as IScreen));
ScreenManager.GetInstance().ChangeScreen("fade", 500);
}
public function mouseDown():void{
}
private function handleBrandingLogoClicked(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getMoreGamesLink("Mainscreen")), "_blank");
}
private function handleSpilGamesButtonClicked(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getSpilCompanyLink()));
}
}
}//package com.SexyLegsVFX.DeerBitch.Screens
Section 127
//Preloader (com.SexyLegsVFX.DeerBitch.Screens.Preloader)
package com.SexyLegsVFX.DeerBitch.Screens {
import flash.events.*;
import com.SexyLegsVFX.System.Managers.*;
import com.SexyLegsVFX.System.Interfaces.*;
import flash.display.*;
import com.SexyLegsVFX.System.Screens.*;
import flash.net.*;
import com.SexyLegsVFX.System.Global.*;
import CPMStar.*;
public class Preloader extends Screen implements IScreen {
private var ad:DisplayObject;
public static var PRELOADER_SWF:Class = Preloader_PRELOADER_SWF;
public function mouseUp():void{
}
public function btnSpillGamesClick_Handler():void{
var _local1:URLRequest = new URLRequest();
_local1.url = "http://www.spilgames.com";
navigateToURL(_local1, "_blank");
}
public function keyPress(_arg1:Boolean, _arg2:int):void{
}
private function addClicked(_arg1:Event){
MochiBot.track(this, "76d4cccc");
}
public function mouseDown():void{
}
public function init():void{
loadSWF(PRELOADER_SWF, completeHandler);
}
public function completeHandler():void{
ButtonManager.getInstance().loadButton(this);
MochiBot.track(this, "9250581d");
var _local1 = "2098Q82276752";
ad = new AdLoader(_local1);
content.adBox.addChild(ad);
ad.addEventListener(MouseEvent.CLICK, addClicked);
}
public function destroy():void{
ad.removeEventListener(MouseEvent.CLICK, addClicked);
content.adBox.removeChild(ad);
ad = null;
ButtonManager.getInstance().clearButtons();
trace("Prelaoder destroy");
}
public function btnSexyClick_Handler():void{
var _local1:URLRequest = new URLRequest();
_local1.url = "http://sexylegsgames.com/";
navigateToURL(_local1, "_blank");
}
public function render(_arg1:Number):void{
if (content){
content.loadingBar.x = (((stage.loaderInfo.bytesLoaded / stage.loaderInfo.bytesTotal) * (269.3 + 212.7)) - 212.7);
};
if ((((stage.loaderInfo.bytesLoaded == stage.loaderInfo.bytesTotal)) && (GlobalVars.nextScreen))){
ScreenManager.GetInstance().LoadScreen((new GlobalVars.nextScreen() as IScreen));
ScreenManager.GetInstance().ChangeScreen();
};
}
}
}//package com.SexyLegsVFX.DeerBitch.Screens
Section 128
//Preloader_PRELOADER_SWF (com.SexyLegsVFX.DeerBitch.Screens.Preloader_PRELOADER_SWF)
package com.SexyLegsVFX.DeerBitch.Screens {
import mx.core.*;
import flash.utils.*;
public class Preloader_PRELOADER_SWF extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function Preloader_PRELOADER_SWF(){
dataClass = Preloader_PRELOADER_SWF_dataClass;
super();
initialWidth = (16000 / 20);
initialHeight = (12000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package com.SexyLegsVFX.DeerBitch.Screens
Section 129
//Preloader_PRELOADER_SWF_dataClass (com.SexyLegsVFX.DeerBitch.Screens.Preloader_PRELOADER_SWF_dataClass)
package com.SexyLegsVFX.DeerBitch.Screens {
import mx.core.*;
public class Preloader_PRELOADER_SWF_dataClass extends ByteArrayAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Screens
Section 130
//SexyLegsGames (com.SexyLegsVFX.DeerBitch.Screens.SexyLegsGames)
package com.SexyLegsVFX.DeerBitch.Screens {
import flash.events.*;
import com.SexyLegsVFX.System.Screens.*;
import com.SexyLegsVFX.System.Interfaces.*;
import flash.media.*;
import com.SexyLegsVFX.System.Global.*;
import com.SexyLegsVFX.System.Managers.*;
import flash.net.*;
public class SexyLegsGames extends Screen implements IScreen {
var music:Sound;
var soundChannel:SoundChannel;
public static var SEXYLEGSGAMES_SWF:Class = SexyLegsGames_SEXYLEGSGAMES_SWF;
public function SexyLegsGames(){
soundChannel = new SoundChannel();
super();
}
public function mouseUp():void{
}
public function keyPress(_arg1:Boolean, _arg2:int):void{
}
public function mouseDown():void{
}
public function init():void{
loadSWF(SEXYLEGSGAMES_SWF, completeHandler);
}
public function completeHandler():void{
var _local1:Number = 1;
GlobalVars.stage.frameRate = 24;
content.gotoAndPlay(1);
content.x = ((GlobalVars.stageWidth / 2) - ((550 * _local1) / 2));
content.y = ((GlobalVars.stageHeight / 2) - ((400 * _local1) / 2));
content.scaleX = _local1;
content.scaleY = _local1;
var _local2:Class = (this.content.loaderInfo.applicationDomain.getDefinition("SexyLegsGamesLogo4") as Class);
music = new (_local2);
soundChannel = music.play();
}
public function render(_arg1:Number):void{
if (content){
if (this.content.currentFrame == 120){
trace("asdasd");
ScreenManager.GetInstance().LoadScreen((new MainMenu() as IScreen));
ScreenManager.GetInstance().ChangeScreen("fade", 600);
};
};
}
public function destroy():void{
soundChannel.stop();
GlobalVars.stage.frameRate = 200;
}
private function loadURL_Handler(_arg1:Event):void{
var _local2:URLRequest = new URLRequest();
_local2.url = "http://sexylegsgames.com/";
navigateToURL(_local2, "_blank");
}
}
}//package com.SexyLegsVFX.DeerBitch.Screens
Section 131
//SexyLegsGames_SEXYLEGSGAMES_SWF (com.SexyLegsVFX.DeerBitch.Screens.SexyLegsGames_SEXYLEGSGAMES_SWF)
package com.SexyLegsVFX.DeerBitch.Screens {
import flash.utils.*;
import mx.core.*;
public class SexyLegsGames_SEXYLEGSGAMES_SWF extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function SexyLegsGames_SEXYLEGSGAMES_SWF(){
dataClass = SexyLegsGames_SEXYLEGSGAMES_SWF_dataClass;
super();
initialWidth = (11000 / 20);
initialHeight = (8000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package com.SexyLegsVFX.DeerBitch.Screens
Section 132
//SexyLegsGames_SEXYLEGSGAMES_SWF_dataClass (com.SexyLegsVFX.DeerBitch.Screens.SexyLegsGames_SEXYLEGSGAMES_SWF_dataClass)
package com.SexyLegsVFX.DeerBitch.Screens {
import mx.core.*;
public class SexyLegsGames_SEXYLEGSGAMES_SWF_dataClass extends ByteArrayAsset {
}
}//package com.SexyLegsVFX.DeerBitch.Screens
Section 133
//Upgrades (com.SexyLegsVFX.DeerBitch.Screens.Upgrades)
package com.SexyLegsVFX.DeerBitch.Screens {
import flash.display.*;
import com.SexyLegsVFX.DeerBitch.Global.*;
import com.SexyLegsVFX.System.Screens.*;
import com.SexyLegsVFX.System.Interfaces.*;
import com.SexyLegsVFX.System.Managers.*;
public class Upgrades extends Screen implements IScreen {
private var deerNames:Array;
private var price1:Array;
private var price2:Array;
private var price3:Array;
private var winBlock:Sprite;
private var currentSelection:uint;// = 0
private var achievements:achievementDescription;
private var winRename:Sprite;
private var deerDisplay0:Sprite;
private var deerDisplay1:Sprite;
private var deerSelection:Array;
private var deerDisplay3:Sprite;
private var deerDisplay4:Sprite;
private var deerDisplay6:Sprite;
private var deerDisplay7:Sprite;
private var deerDisplay2:Sprite;
private var teamWindowExist:Boolean;
private var deerDisplay8:Sprite;
private var deerDisplay5:Sprite;
private var totalMoney:uint;
private var stat1:Array;
private var stat2:Array;
private var stat3:Array;
private var indexWindow:uint;
public function Upgrades(){
totalMoney = GlobalVariables.totalMoney;
deerSelection = GlobalVariables.deerSelection;
deerNames = GlobalVariables.deerNames;
stat1 = GlobalVariables.deerCyborg;
stat2 = GlobalVariables.deerWings;
stat3 = GlobalVariables.deerDuck;
price1 = [10000, 40000, 175000];
price2 = [7500, 30000, 139999];
price3 = [5000, 20000, 100000];
deerDisplay0 = new Sprite();
deerDisplay1 = new Sprite();
deerDisplay2 = new Sprite();
deerDisplay3 = new Sprite();
deerDisplay4 = new Sprite();
deerDisplay5 = new Sprite();
deerDisplay6 = new Sprite();
deerDisplay7 = new Sprite();
deerDisplay8 = new Sprite();
super();
}
public function btnRename5Click_Handler():void{
renameDeer(5);
}
public function btnRename1Click_Handler():void{
renameDeer(1);
}
public function btnSelect7Click_Handler():void{
selectDeer(7);
}
public function render(_arg1:Number):void{
if (content){
content.totalCash.text = String((numberFormat(totalMoney) + " $"));
};
}
public function init():void{
trace("Upgrades Loaded");
loadSWF(Ressources.UPGRADES_SWF, completeHandler);
}
private function selectDeer(_arg1:uint):void{
soundManagerLite.getInstance().playMouseSound();
CloseAllLight();
currentSelection = _arg1;
content[("select" + _arg1)].gotoAndStop(1);
UpdatePrices();
}
public function btnSelect8Click_Handler():void{
selectDeer(8);
}
public function destroy():void{
totalMoney = null;
deerSelection = null;
deerNames = null;
stat1 = null;
stat2 = null;
stat3 = null;
winRename = null;
winBlock = null;
price1 = null;
price2 = null;
price3 = null;
var _local1:uint;
while (_local1 < 9) {
removeChild(this[("deerDisplay" + _local1)]);
this[("deerDisplay" + _local1)] = null;
_local1++;
};
ButtonManager.getInstance().clearButtons();
achievements.Destroy();
removeChild(achievements);
achievements = null;
}
public function btnSelect4Click_Handler():void{
selectDeer(4);
}
public function mouseUp():void{
}
public function btnRename9Click_Handler():void{
renameDeer(9);
}
public function btnPlayClick_Handler():void{
ScreenManager.GetInstance().LoadScreen((new GameScreen() as IScreen));
ScreenManager.GetInstance().ChangeScreen("fade", 500);
}
public function btnRename2Click_Handler():void{
renameDeer(2);
}
public function keyPress(_arg1:Boolean, _arg2:int):void{
if (_arg1){
if ((((_arg2 == 13)) && (teamWindowExist))){
trace("dfasdf");
btnAddClick_Handler();
};
if (_arg2 == 77){
soundManagerLite.getInstance().setMute();
};
};
}
private function createDeer():void{
var _local2:Array;
var _local1:uint;
while (_local1 < 9) {
addChild(this[("deerDisplay" + _local1)]);
_local2 = [];
switch (_local1){
case 0:
_local2 = [390, 197];
break;
case 1:
_local2 = [535, 197];
break;
case 2:
_local2 = [673, 197];
break;
case 3:
_local2 = [390, 362];
break;
case 4:
_local2 = [535, 362];
break;
case 5:
_local2 = [673, 362];
break;
case 6:
_local2 = [390, 520];
break;
case 7:
_local2 = [535, 520];
break;
case 8:
_local2 = [673, 520];
break;
};
this[("deerDisplay" + _local1)].x = _local2[0];
this[("deerDisplay" + _local1)].y = _local2[1];
_local1++;
};
}
public function btnReturnClick_Handler():void{
ScreenManager.GetInstance().LoadScreen((new GameMenu() as IScreen));
ScreenManager.GetInstance().ChangeScreen("fade", 500);
}
public function btnRename6Click_Handler():void{
renameDeer(6);
}
public function btnBuyCyborgClick_Handler():void{
var _local1:uint;
soundManagerLite.getInstance().playMouseSound();
if (currentSelection > 0){
_local1 = price1[stat1[(currentSelection - 1)]];
if ((((totalMoney >= _local1)) && ((stat1[(currentSelection - 1)] < 3)))){
totalMoney = (totalMoney + -(_local1));
var _local2 = stat1;
var _local3 = (currentSelection - 1);
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if ((((((stat1[(currentSelection - 1)] == 3)) && ((stat2[(currentSelection - 1)] == 3)))) && ((stat3[(currentSelection - 1)] == 3)))){
if ((((deerSelection[(currentSelection - 1)] == 1)) && ((GlobalVariables.achievementsDone[(3 - 1)] == 0)))){
achievements.newAchievement(3);
};
if ((((deerSelection[(currentSelection - 1)] == 2)) && ((GlobalVariables.achievementsDone[(4 - 1)] == 0)))){
achievements.newAchievement(4);
};
if ((((deerSelection[(currentSelection - 1)] == 3)) && ((GlobalVariables.achievementsDone[(5 - 1)] == 0)))){
achievements.newAchievement(5);
};
};
checkAllUpgrades();
UpdatePrices();
UpdateDeerStats();
save();
};
};
}
public function btnSelect9Click_Handler():void{
selectDeer(9);
}
public function btnBuyWingsClick_Handler():void{
var _local1:uint;
soundManagerLite.getInstance().playMouseSound();
if (currentSelection > 0){
_local1 = price2[stat2[(currentSelection - 1)]];
if ((((totalMoney >= _local1)) && ((stat2[(currentSelection - 1)] < 3)))){
totalMoney = (totalMoney + -(_local1));
var _local2 = stat2;
var _local3 = (currentSelection - 1);
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if ((((((stat1[(currentSelection - 1)] == 3)) && ((stat2[(currentSelection - 1)] == 3)))) && ((stat3[(currentSelection - 1)] == 3)))){
if ((((deerSelection[(currentSelection - 1)] == 1)) && ((GlobalVariables.achievementsDone[(3 - 1)] == 0)))){
achievements.newAchievement(3);
};
if ((((deerSelection[(currentSelection - 1)] == 2)) && ((GlobalVariables.achievementsDone[(4 - 1)] == 0)))){
achievements.newAchievement(4);
};
if ((((deerSelection[(currentSelection - 1)] == 3)) && ((GlobalVariables.achievementsDone[(5 - 1)] == 0)))){
achievements.newAchievement(5);
};
};
checkAllUpgrades();
UpdatePrices();
UpdateDeerStats();
save();
};
};
}
public function btnSelect5Click_Handler():void{
selectDeer(5);
}
public function btnSelect1Click_Handler():void{
selectDeer(1);
}
private function UpdatePrices():void{
var _local1:uint;
_local1 = 0;
while (_local1 < 3) {
if (this[("stat" + (_local1 + 1))][(currentSelection - 1)] < 3){
content[("cash" + (_local1 + 1))].text = (numberFormat(this[("price" + (_local1 + 1))][this[("stat" + (_local1 + 1))][(currentSelection - 1)]]) + " $");
} else {
content[("cash" + (_local1 + 1))].text = "MAX";
};
_local1++;
};
_local1 = 0;
while (_local1 < 3) {
if (this[("stat" + (_local1 + 1))][(currentSelection - 1)] > 0){
content[("icon" + (_local1 + 1))].icon1.gotoAndStop(2);
};
if (this[("stat" + (_local1 + 1))][(currentSelection - 1)] > 1){
content[("icon" + (_local1 + 1))].icon2.gotoAndStop(2);
};
if (this[("stat" + (_local1 + 1))][(currentSelection - 1)] > 2){
content[("icon" + (_local1 + 1))].iconMax.gotoAndStop(2);
};
_local1++;
};
}
public function completeHandler():void{
var _local1:Class;
achievements = new achievementDescription();
_local1 = (content.loaderInfo.applicationDomain.getDefinition("deerNameWin") as Class);
winRename = new (_local1);
_local1 = (content.loaderInfo.applicationDomain.getDefinition("winBlock") as Class);
winBlock = new (_local1);
addChild(winRename);
winRename.x = 400;
winRename.y = 300;
content.teamName.text = GlobalVariables.username;
ButtonManager.getInstance().loadButton(this);
removeChild(winRename);
stage.focus = this;
CloseAllLight();
UpdateDeerStats();
createDeer();
getDeerNames();
addChild(achievements);
}
public function btnRename3Click_Handler():void{
renameDeer(3);
}
private function getDeerNames():void{
var _local1:uint;
while (_local1 < 9) {
content[("name" + _local1)].text = GlobalVariables.deerNames[_local1];
_local1++;
};
}
public function btnSelect6Click_Handler():void{
selectDeer(6);
}
public function btnCancelClick_Handler():void{
removeChild(winBlock);
removeChild(winRename);
}
public function btnBuyDuckClick_Handler():void{
var _local1:uint;
soundManagerLite.getInstance().playMouseSound();
if (currentSelection > 0){
_local1 = price3[stat3[(currentSelection - 1)]];
if ((((totalMoney >= _local1)) && ((stat3[(currentSelection - 1)] < 3)))){
totalMoney = (totalMoney + -(_local1));
var _local2 = stat3;
var _local3 = (currentSelection - 1);
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if ((((((stat1[(currentSelection - 1)] == 3)) && ((stat2[(currentSelection - 1)] == 3)))) && ((stat3[(currentSelection - 1)] == 3)))){
if ((((deerSelection[(currentSelection - 1)] == 1)) && ((GlobalVariables.achievementsDone[(3 - 1)] == 0)))){
achievements.newAchievement(3);
};
if ((((deerSelection[(currentSelection - 1)] == 2)) && ((GlobalVariables.achievementsDone[(4 - 1)] == 0)))){
achievements.newAchievement(4);
};
if ((((deerSelection[(currentSelection - 1)] == 3)) && ((GlobalVariables.achievementsDone[(5 - 1)] == 0)))){
achievements.newAchievement(5);
};
};
checkAllUpgrades();
UpdatePrices();
UpdateDeerStats();
save();
};
};
}
public function btnSelect2Click_Handler():void{
selectDeer(2);
}
private function renameDeer(_arg1:uint):void{
this.teamWindowExist = true;
soundManagerLite.getInstance().playMouseSound();
indexWindow = (_arg1 - 1);
addChild(winBlock);
addChild(winRename);
stage.focus = winRename["inputName"];
winRename["inputName"].text = GlobalVariables.deerNames[indexWindow];
}
public function btnRename4Click_Handler():void{
renameDeer(4);
}
public function btnRename7Click_Handler():void{
renameDeer(7);
}
public function btnRename8Click_Handler():void{
renameDeer(8);
}
public function btnAddClick_Handler():void{
this.teamWindowExist = false;
GlobalVariables.deerNames[indexWindow] = winRename["inputName"].text;
getDeerNames();
Save.SaveGame(GlobalVariables.gameSlot);
removeChild(winBlock);
removeChild(winRename);
}
public function mouseDown():void{
}
private function UpdateDeerStats():void{
var _local2:String;
var _local3:Class;
var _local4:MovieClip;
var _local1:uint;
while (_local1 < 9) {
content[("statsDeer" + (_local1 + 1))].Cyborg.text = String(stat1[_local1]);
content[("statsDeer" + (_local1 + 1))].Wings.text = String(stat2[_local1]);
content[("statsDeer" + (_local1 + 1))].Duck.text = String(stat3[_local1]);
_local2 = "";
_local2 = (_local2 + String(GlobalVariables.deerSelection[_local1]));
if (stat1[_local1] > 0){
_local2 = (_local2 + "1");
} else {
_local2 = (_local2 + "0");
};
if (stat2[_local1] > 0){
_local2 = (_local2 + "1");
} else {
_local2 = (_local2 + "0");
};
if (stat3[_local1] > 0){
_local2 = (_local2 + "1");
} else {
_local2 = (_local2 + "0");
};
_local3 = (GlobalVariables.deerAssets.loaderInfo.applicationDomain.getDefinition(("deer" + _local2)) as Class);
if (this[("deerDisplay" + _local1)].numChildren > 0){
this[("deerDisplay" + _local1)].removeChildAt(0);
};
_local4 = new (_local3);
_local4.gotoAndStop(1);
this[("deerDisplay" + _local1)].addChild(_local4);
_local1++;
};
}
private function CloseAllLight():void{
var _local1:uint;
_local1 = 0;
while (_local1 < 9) {
content[("select" + (_local1 + 1))].gotoAndStop(2);
_local1++;
};
_local1 = 0;
while (_local1 < 3) {
content[("icon" + (_local1 + 1))].icon1.gotoAndStop(1);
content[("icon" + (_local1 + 1))].icon2.gotoAndStop(1);
content[("icon" + (_local1 + 1))].iconMax.gotoAndStop(1);
_local1++;
};
}
private function checkAllUpgrades():void{
trace("check");
var _local1:Boolean;
var _local2:uint;
while (_local2 < 9) {
if (stat1[_local2] != 3){
_local1 = false;
};
if (stat2[_local2] != 3){
_local1 = false;
};
if (stat3[_local2] != 3){
_local1 = false;
};
_local2++;
};
if (((_local1) && ((GlobalVariables.achievementsDone[(8 - 1)] == 0)))){
achievements.newAchievement(8);
};
}
private function numberFormat(_arg1, _arg2:int=2, _arg3:Boolean=false, _arg4:Boolean=true):String{
var _local11:int;
var _local5:int;
var _local6:Number = Math.pow(10, _arg2);
var _local7:String = String((Math.round((_local6 * Number(_arg1))) / _local6));
var _local8 = (_local7.indexOf(".") == -1);
var _local9:int = (_local8) ? _local7.length : _local7.indexOf(".");
var _local10:String = ((((_local8) && (!(_arg3)))) ? "" : (_arg4) ? "." : " " + _local7.substr((_local9 + 1)));
if (_arg3){
_local11 = 0;
while (_local11 <= (_arg2 - (_local7.length - (_local8) ? (_local9 - 1) : _local9))) {
_local10 = (_local10 + "0");
_local11++;
};
};
while ((_local5 + 3) < ((_local7.substr(0, 1) == "-")) ? (_local9 - 1) : _local9) {
_local5 = (_local5 + 3);
_local10 = (((_arg4) ? " " : "." + _local7.substr((_local9 - _local5), 3)) + _local10);
};
return ((_local7.substr(0, (_local9 - _local5)) + _local10));
}
private function save():void{
GlobalVariables.totalMoney = totalMoney;
GlobalVariables.deerCyborg = stat1;
GlobalVariables.deerWings = stat2;
GlobalVariables.deerDuck = stat3;
Save.SaveGame(GlobalVariables.gameSlot);
}
public function btnSelect3Click_Handler():void{
selectDeer(3);
}
}
}//package com.SexyLegsVFX.DeerBitch.Screens
Section 134
//EngineStart (com.SexyLegsVFX.DeerBitch.EngineStart)
package com.SexyLegsVFX.DeerBitch {
import flash.events.*;
import com.SexyLegsVFX.DeerBitch.Global.*;
import com.spilgames.api.*;
import com.google.analytics.*;
import com.SexyLegsVFX.System.Engines.*;
import com.SexyLegsVFX.System.Global.*;
import com.SexyLegsVFX.DeerBitch.Screens.*;
import flash.system.*;
public class EngineStart extends Engine {
private const STAGE_WIDTH:int = 800;
private const STAGE_HEIGHT:int = 600;
private const BG_COLOR:uint = 0xFFFFFF;
private const MAIN_CLASS:String = "DeerBitch";
private const ALLOWED_DOMAINS:Array;
private const LOCK_DOMAINS:Boolean = false;
private var _scoreCallbackID:int;
private var _awardsCallbackID:int;
private var mainClass:Class;
public function EngineStart(){
ALLOWED_DOMAINS = ["sexylegsgames.com", "flashgamelicense.com", "www.sexylegsgames.com", "www.flashgamelicense.com", "a10.com", "www.a10.com"];
Security.allowDomain("server.cpmstar.com");
trace("start engine");
super(MAIN_CLASS, Preloader, STAGE_WIDTH, STAGE_HEIGHT, BG_COLOR, ALLOWED_DOMAINS, LOCK_DOMAINS);
stop();
LoadTrackers();
}
public function LoadA10API():void{
trace("SpilGamesServices is Loading...");
var _local1:SpilGamesServices = SpilGamesServices.getInstance();
_local1.addEventListener("servicesReady", onServicesReady);
_local1.addEventListener("servicesFailed", onServicesFailed);
_local1.connect(GlobalVars.stage);
_local1.allowDomain("localhost");
}
private function onServicesFailed(_arg1:ErrorEvent):void{
trace((("SpilGamesServices failed: " + _arg1.text) + "\n"));
}
private function LoadTrackers():void{
MochiBot.track(this, "84004258");
GlobalVariables.tracker = new GATracker(this, "UA-16113232-1", "AS3", false);
}
private function onServicesReady(_arg1:Event):void{
trace("SpilGamesServices are ready\n");
}
}
}//package com.SexyLegsVFX.DeerBitch
Section 135
//Engine (com.SexyLegsVFX.System.Engines.Engine)
package com.SexyLegsVFX.System.Engines {
import flash.events.*;
import com.SexyLegsVFX.System.Managers.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.text.*;
import com.SexyLegsVFX.System.Global.*;
public class Engine extends MovieClip {
private var screenManager:ScreenManager;
private var preloaderClass:Class;
private var lastTime:Number;
private var mainClassName:String;
public function Engine(_arg1:String, _arg2:Class, _arg3:Number, _arg4:Number, _arg5:uint, _arg6:Array, _arg7:Boolean):void{
var _local8:LocalConnection;
var _local9:TextField;
super();
_local8 = new LocalConnection();
if (_arg7 == true){
if ((((_arg6.length == 0)) || (!((_arg6.indexOf(_local8.domain) == -1))))){
stop();
this.mainClassName = _arg1;
this.preloaderClass = _arg2;
addEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
GlobalVars.stage = stage;
GlobalVars.stageHeight = _arg4;
GlobalVars.stageWidth = _arg3;
GlobalVars.backgroundColor = _arg5;
} else {
_local9 = new TextField();
_local9.text = "This game can only be played from certain domains.";
_local9.width = (_local9.textWidth + 5);
_local9.textColor = 0;
_local9.selectable = true;
addChild(_local9);
};
} else {
stop();
this.mainClassName = _arg1;
this.preloaderClass = _arg2;
addEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
GlobalVars.stage = stage;
GlobalVars.stageHeight = _arg4;
GlobalVars.stageWidth = _arg3;
GlobalVars.backgroundColor = _arg5;
};
}
private function addedToStageHandler(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
addChild(ScreenManager.GetInstance());
ScreenManager.GetInstance().LoadScreen(new preloaderClass());
ScreenManager.GetInstance().ChangeScreen();
stage.focus = this;
stage.tabChildren = false;
stage.stageFocusRect = false;
this.tabChildren = false;
this.tabEnabled = false;
stage.addEventListener(Event.ENTER_FRAME, calculateDeltaHandler);
stage.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
}
private function keyDownHandler(_arg1:KeyboardEvent):void{
if (GlobalVars.screenTransition == false){
ScreenManager.GetInstance().keyPress(true, _arg1.keyCode);
};
}
private function mouseUpHandler(_arg1:Event):void{
if (GlobalVars.screenTransition == false){
ScreenManager.GetInstance().mouseUp();
};
}
private function mouseDownHandler(_arg1:Event):void{
if (GlobalVars.screenTransition == false){
ScreenManager.GetInstance().mouseDown();
};
}
private function enterFrameHandler(_arg1:Event):void{
var _local2:Class;
if (framesLoaded == totalFrames){
nextFrame();
_local2 = Class(getDefinitionByName(mainClassName));
if (_local2){
new (_local2);
} else {
throw (new Error("This main Class doesn't exist."));
};
stage.removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
};
}
private function keyUpHandler(_arg1:KeyboardEvent):void{
if (GlobalVars.screenTransition == false){
ScreenManager.GetInstance().keyPress(false, _arg1.keyCode);
};
}
private function calculateDeltaHandler(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:Number;
_local2 = getTimer();
_local4 = (_local2 - lastTime);
lastTime = _local2;
if (ScreenManager.GetInstance() != null){
ScreenManager.GetInstance().Render((_local4 * GlobalVars.timeScale));
} else {
throw (new Error("The screenManager doesn't exist"));
};
}
}
}//package com.SexyLegsVFX.System.Engines
Section 136
//GlobalVars (com.SexyLegsVFX.System.Global.GlobalVars)
package com.SexyLegsVFX.System.Global {
import flash.display.*;
public class GlobalVars {
public static var screenTransition:Boolean;
public static var stageHeight:Number;
public static var stageWidth:Number;
public static var stage:Stage;
public static var backgroundColor:uint;
public static var timeScale:Number = 1;
public static var nextScreen:Class;
}
}//package com.SexyLegsVFX.System.Global
Section 137
//IScreen (com.SexyLegsVFX.System.Interfaces.IScreen)
package com.SexyLegsVFX.System.Interfaces {
public interface IScreen {
function init():void;
function completeHandler():void;
function keyPress(_arg1:Boolean, _arg2:int):void;
function render(_arg1:Number):void;
function mouseDown():void;
function destroy():void;
function mouseUp():void;
}
}//package com.SexyLegsVFX.System.Interfaces
Section 138
//ButtonManager (com.SexyLegsVFX.System.Managers.ButtonManager)
package com.SexyLegsVFX.System.Managers {
import flash.events.*;
import flash.display.*;
import com.SexyLegsVFX.System.Screens.*;
public class ButtonManager {
private var buttonList:Array;
private var screen:Screen;
private static var instance:ButtonManager = new (ButtonManager);
;
public function ButtonManager(){
if (instance){
throw (new Error("Singleton and can only be accessed through Singleton.getInstance()"));
};
trace("button manager initiated");
buttonList = new Array();
}
private function mouse_Handler(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
var _local4:MovieClip;
var _local5:Boolean;
var _local6:Screen;
var _local7:uint;
var _local8:String;
var _local9:Function;
if (buttonList.length > 0){
_local2 = 0;
while (_local2 < buttonList.length) {
if ((((buttonList[_local2][0] == _arg1.currentTarget)) || ((buttonList[_local2][1] == _arg1.currentTarget)))){
_local3 = _local2;
break;
};
_local2++;
};
_local4 = buttonList[_local3][0];
_local5 = buttonList[_local3][1];
_local6 = buttonList[_local3][2];
switch (_arg1.type){
case "mouseOut":
_local8 = (_local4.name + "Out_Handler");
_local7 = 1;
break;
case "mouseOver":
_local8 = (_local4.name + "Over_Handler");
_local7 = 2;
break;
case "mouseUp":
_local8 = (_local4.name + "Up_Handler");
_local7 = 2;
break;
case "mouseDown":
_local8 = (_local4.name + "Down_Handler");
_local7 = 3;
break;
case "click":
_local8 = (_local4.name + "Click_Handler");
_local7 = 2;
break;
default:
_local8 = (_local4.name + "Out_Handler");
_local7 = 1;
break;
};
if ((_local8 in _local6)){
_local9 = _local6[_local8];
_local9();
};
_local4.gotoAndStop(_local7);
};
}
public function clearButtons():void{
var _local2:MovieClip;
var _local3:Boolean;
var _local1:uint;
while (_local1 < buttonList.length) {
_local2 = buttonList[_local1][0];
_local3 = buttonList[_local1][1];
if (_local3){
_local2.hitZone.removeEventListener(MouseEvent.MOUSE_OVER, mouse_Handler);
_local2.hitZone.removeEventListener(MouseEvent.MOUSE_OUT, mouse_Handler);
_local2.hitZone.removeEventListener(MouseEvent.MOUSE_DOWN, mouse_Handler);
_local2.hitZone.removeEventListener(MouseEvent.MOUSE_UP, mouse_Handler);
_local2.hitZone.removeEventListener(MouseEvent.CLICK, mouse_Handler);
_local2.hitZone.buttonMode = false;
} else {
_local2.removeEventListener(MouseEvent.MOUSE_OVER, mouse_Handler);
_local2.removeEventListener(MouseEvent.MOUSE_OUT, mouse_Handler);
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, mouse_Handler);
_local2.removeEventListener(MouseEvent.MOUSE_UP, mouse_Handler);
_local2.removeEventListener(MouseEvent.CLICK, mouse_Handler);
_local2.buttonMode = false;
};
_local1++;
};
buttonList = new Array();
this.screen = null;
}
public function checkButtons(_arg1):void{
var _local2:String;
var _local3:Boolean;
var _local4:uint;
if (_arg1.name){
if ((_arg1 is MovieClip)){
_local2 = _arg1.name.slice(0, 3);
if (_local2 == "btn"){
_arg1.stop();
_local3 = false;
if (_arg1.hitZone){
_local3 = true;
};
buttonList.push(new Array(_arg1, _local3, screen));
if (_local3){
_arg1.hitZone.addEventListener(MouseEvent.MOUSE_OVER, mouse_Handler, false, 0, true);
_arg1.hitZone.addEventListener(MouseEvent.MOUSE_OUT, mouse_Handler, false, 0, true);
_arg1.hitZone.addEventListener(MouseEvent.MOUSE_DOWN, mouse_Handler, false, 0, true);
_arg1.hitZone.addEventListener(MouseEvent.MOUSE_UP, mouse_Handler, false, 0, true);
_arg1.hitZone.addEventListener(MouseEvent.CLICK, mouse_Handler, false, 0, true);
_arg1.hitZone.buttonMode = true;
} else {
_arg1.addEventListener(MouseEvent.MOUSE_OVER, mouse_Handler, false, 0, true);
_arg1.addEventListener(MouseEvent.MOUSE_OUT, mouse_Handler, false, 0, true);
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, mouse_Handler, false, 0, true);
_arg1.addEventListener(MouseEvent.MOUSE_UP, mouse_Handler, false, 0, true);
_arg1.addEventListener(MouseEvent.CLICK, mouse_Handler, false, 0, true);
_arg1.buttonMode = true;
};
};
};
if ((_arg1 is DisplayObjectContainer)){
_local4 = 0;
while (_local4 < _arg1.numChildren) {
checkButtons(_arg1.getChildAt(_local4));
_local4++;
};
};
};
}
public function loadButton(_arg1:Screen):void{
this.screen = _arg1;
checkButtons(_arg1);
}
public static function getInstance():ButtonManager{
return (instance);
}
}
}//package com.SexyLegsVFX.System.Managers
Section 139
//RessourceManagerLite (com.SexyLegsVFX.System.Managers.RessourceManagerLite)
package com.SexyLegsVFX.System.Managers {
import flash.events.*;
import flash.display.*;
public class RessourceManagerLite {
private var loaders:Array;
private var completeHandler:Function;
private static var _instance:RessourceManagerLite = new (RessourceManagerLite);
;
public function RessourceManagerLite(){
if (_instance){
throw (new Error("Singleton can only be accessed through Singleton.getInstance()"));
};
loaders = new Array();
}
public function loadSWF(_arg1:Class, _arg2:Function):void{
var _local3:MovieClip;
var _local4:Loader;
_local3 = new (_arg1);
_local4 = (_local3.getChildAt(0) as Loader);
this.completeHandler = _arg2;
_local4.contentLoaderInfo.addEventListener(Event.COMPLETE, SWFCompleteHandler);
loaders.push(_local4);
}
private function SWFCompleteHandler(_arg1:Event):void{
var _local2:LoaderInfo;
var _local3:MovieClip;
_local2 = (_arg1.currentTarget as LoaderInfo);
_local3 = (_local2.content as MovieClip);
completeHandler(_local3);
_local2.removeEventListener(Event.COMPLETE, SWFCompleteHandler);
loaders.splice(0, 1);
}
public static function getInstance():RessourceManagerLite{
return (_instance);
}
}
}//package com.SexyLegsVFX.System.Managers
Section 140
//ScreenManager (com.SexyLegsVFX.System.Managers.ScreenManager)
package com.SexyLegsVFX.System.Managers {
import com.SexyLegsVFX.System.Interfaces.*;
import flash.display.*;
import com.SexyLegsVFX.System.Screens.*;
import flash.net.*;
import com.SexyLegsVFX.System.Global.*;
import flash.system.*;
public class ScreenManager extends Sprite {
public var loadNextScreen:Boolean;// = false
private var screenShot:BitmapData;
private var clickBlocker:MovieClip;
public var currentScreen:IScreen;// = null
private var transition:String;
private var nbFrame:Number;
private var backgroundColor:MovieClip;
private var initTransition:Boolean;// = false
private var isInTransition:Boolean;// = false
private var isLoading:Boolean;// = false
private var oldScreen:Bitmap;
public var nextScreen:IScreen;
private static var instance:ScreenManager = new (ScreenManager);
;
public function ScreenManager(){
screenShot = new BitmapData(GlobalVars.stageWidth, GlobalVars.stageHeight, true, 0);
super();
if (instance != null){
throw (new Error("Singleton and can only be accessed through Class.GetInstance()"));
};
clickBlocker = new MovieClip();
clickBlocker.graphics.beginFill(0, 0);
clickBlocker.graphics.drawRect(0, 0, GlobalVars.stageWidth, GlobalVars.stageHeight);
clickBlocker.graphics.endFill();
clickBlocker.buttonMode = true;
clickBlocker.visible = false;
clickBlocker.useHandCursor = false;
backgroundColor = new MovieClip();
backgroundColor.graphics.beginFill(GlobalVars.backgroundColor, 1);
backgroundColor.graphics.drawRect(0, 0, GlobalVars.stageWidth, GlobalVars.stageHeight);
backgroundColor.graphics.endFill();
clickBlocker.visible = true;
}
private function restoreTrans():void{
oldScreen.alpha = 1;
oldScreen.y = 0;
oldScreen.x = 0;
}
public function keyPress(_arg1:Boolean, _arg2:int):void{
if (Screen(currentScreen).isLoaded){
currentScreen.keyPress(_arg1, _arg2);
};
}
public function destroy():void{
}
private function stopTrans():void{
removeChild(oldScreen);
removeChild(clickBlocker);
isInTransition = false;
GlobalVars.screenTransition = false;
transition = null;
}
public function mouseUp():void{
if (Screen(currentScreen).isLoaded){
currentScreen.mouseUp();
};
}
public function LoadScreen(_arg1:IScreen):void{
if (!isLoading){
loadNextScreen = true;
nextScreen = _arg1;
};
}
public function ChangeScreen(_arg1:String=null, _arg2:Number=1000):void{
var transition = _arg1;
var nbFrame = _arg2;
if (isInTransition == false){
addChildAt(backgroundColor, 0);
if (currentScreen != null){
if (transition){
screenShot.draw(this);
};
removeChild(Screen(currentScreen));
currentScreen.destroy();
Screen(currentScreen).removeChild(Screen(currentScreen).content.loaderInfo.loader);
Screen(currentScreen).content = null;
currentScreen = null;
};
System.gc();
try {
new LocalConnection().connect("foo");
new LocalConnection().connect("foo");
} catch(e) {
};
currentScreen = nextScreen;
if (transition){
oldScreen = new Bitmap(screenShot);
};
addChild(Screen(currentScreen));
currentScreen.init();
nextScreen = null;
loadNextScreen = false;
if (transition){
this.transition = transition;
this.isInTransition = true;
initTransition = true;
GlobalVars.screenTransition = true;
this.nbFrame = nbFrame;
addChild(clickBlocker);
addChild(oldScreen);
};
};
}
public function mouseDown():void{
if (Screen(currentScreen).isLoaded){
currentScreen.mouseDown();
};
}
public function Render(_arg1:Number):void{
if (this.isInTransition){
switch (transition){
case "fade":
if (initTransition){
restoreTrans();
initTransition = false;
};
if (oldScreen.alpha == 0){
stopTrans();
break;
};
if (oldScreen.alpha >= (-(_arg1) / nbFrame)){
oldScreen.alpha = (oldScreen.alpha + (-(_arg1) / nbFrame));
} else {
oldScreen.alpha = 0;
};
break;
case "dropDown":
if (initTransition){
restoreTrans();
this.setChildIndex(backgroundColor, (this.numChildren - 1));
this.setChildIndex(Screen(currentScreen), (this.numChildren - 1));
this.setChildIndex(clickBlocker, (this.numChildren - 1));
Screen(currentScreen).y = -(GlobalVars.stageHeight);
initTransition = false;
};
if (Screen(currentScreen).y == 0){
stopTrans();
break;
};
if (Screen(currentScreen).y <= (-(GlobalVars.stageHeight) * (_arg1 / nbFrame))){
Screen(currentScreen).y = (Screen(currentScreen).y + (GlobalVars.stageHeight * (_arg1 / nbFrame)));
backgroundColor.y = Screen(currentScreen).y;
} else {
Screen(currentScreen).y = 0;
};
break;
};
};
if (isLoading){
if (Screen(currentScreen).isLoaded){
ScreenLoaded();
};
} else {
if (((!((currentScreen == null))) && ((isInTransition == false)))){
currentScreen.render(_arg1);
};
};
if (loadNextScreen){
ChangeScreen();
};
}
public function ScreenLoaded():void{
isLoading = false;
addChild(Screen(currentScreen));
}
public static function GetInstance():ScreenManager{
return (instance);
}
}
}//package com.SexyLegsVFX.System.Managers
Section 141
//Screen (com.SexyLegsVFX.System.Screens.Screen)
package com.SexyLegsVFX.System.Screens {
import com.SexyLegsVFX.System.Managers.*;
import flash.display.*;
public class Screen extends Sprite {
private var completeHandler:Function;
public var content:MovieClip;
public var DispUILayer:Sprite;
public var isLoaded:Boolean;
public function Screen(){
isLoaded = false;
}
public function loadSWF_completeHandler(_arg1:MovieClip):void{
this.content = _arg1;
isLoaded = true;
addChild(_arg1.loaderInfo.loader);
if (completeHandler != null){
completeHandler();
};
}
public function loadSWF(_arg1:Class, _arg2:Function):void{
this.completeHandler = _arg2;
RessourceManagerLite.getInstance().loadSWF(_arg1, loadSWF_completeHandler);
}
}
}//package com.SexyLegsVFX.System.Screens
Section 142
//ScoreService (com.spilgames.api.ScoreService)
package com.spilgames.api {
public class ScoreService {
public static function submitScore(_arg1:int, _arg2:Function=null):int{
return (SpilGamesServices.getInstance().send("Score", "submitScore", _arg2, {score:_arg1, userName:User.getUserName(), userHash:User.getUserHash()}));
}
}
}//package com.spilgames.api
Section 143
//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 _connecting:Boolean;// = false
private var DEFAULT_CONNECTION_LOCATION:String;// = "http://www8.agame.com/games/flash/services/ServicesConnection.swf"
private var _loader:Loader;
private var _servicesConnection;// = null
public static const INVALID_ID:int = -1;
private static var _instance:SpilGamesServices = null;
public function SpilGamesServices(_arg1:Private=null){
if (!_arg1){
throw (new Error("Cannot instantiate this class, use SpilGamesServices.getInstance"));
};
}
private function handleRemovedFromStage(_arg1:Event):void{
trace("WARNING: please do not remove SpilGamesServices from the stage");
}
private function handleLoadComplete(_arg1:Event):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_servicesConnection = LoaderInfo(_arg1.target).content;
_servicesConnection.addEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.addEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.addEventListener("serviceError", handleServiceError);
addChild(_servicesConnection);
}
public function send(_arg1:String, _arg2:String, _arg3:Function, _arg4:Object=null):int{
if (isReady()){
return (_servicesConnection.send(_arg1, _arg2, _arg3, _arg4));
};
return (INVALID_ID);
}
private function handleServicesFailed(_arg1:ErrorEvent):void{
_servicesConnection.addEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.addEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.addEventListener("serviceError", handleServiceError);
_connecting = false;
if (hasEventListener("servicesFailed")){
dispatchEvent(new ErrorEvent("servicesFailed", false, false, _arg1.text));
};
}
public function get version():String{
return ("1.0");
}
public function isReady():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isReady())));
}
private function handleIOError(_arg1:IOErrorEvent):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_connecting = false;
if (hasEventListener(_arg1.type)){
dispatchEvent(_arg1);
};
}
private function handleServiceError(_arg1:Event):void{
var _local2:String;
if (hasEventListener("serviceError")){
_local2 = "";
if ((_arg1 is ErrorEvent)){
_local2 = ErrorEvent(_arg1).text;
} else {
_local2 = _arg1.toString();
};
dispatchEvent(new ErrorEvent("serviceError", false, false, _local2));
};
}
public function disconnect():void{
if (_servicesConnection){
_servicesConnection.removeEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.removeEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.removeEventListener("serviceError", handleServiceError);
if (_connected){
_servicesConnection.disconnect();
};
removeChild(_servicesConnection);
};
_servicesConnection = null;
if (_loader){
try {
_loader.close();
} catch(e:Error) {
} finally {
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
};
_loader = null;
};
removeEventListener(Event.REMOVED_FROM_STAGE, handleRemovedFromStage);
if (parent){
parent.removeChild(this);
};
_connected = (_connecting = false);
}
private function handleServicesReady(_arg1:Event):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_connected = true;
_connecting = false;
dispatchEvent(new Event("servicesReady"));
}
public function get connection(){
return (_servicesConnection);
}
public function getSiteID():int{
if (_servicesConnection != null){
return (_servicesConnection.getSiteID());
};
return (INVALID_ID);
}
public function getChannelID():int{
if (_servicesConnection != null){
return (_servicesConnection.getChannelID());
};
return (INVALID_ID);
}
public function connect(_arg1:DisplayObjectContainer):void{
var _local2:URLRequest;
var _local3:String;
var _local4:URLVariables;
var _local5:Date;
if (((!(_connecting)) && (!(_connected)))){
if (!_arg1.stage){
throw (new Error("The given clip must be present in the display list (added to stage)"));
};
_connecting = true;
_arg1.stage.addChild(this);
addEventListener(Event.REMOVED_FROM_STAGE, handleRemovedFromStage);
if (((root.loaderInfo.parameters["servicesLoc"]) && ((root.loaderInfo.parameters["servicesLoc"].length > 0)))){
_local3 = root.loaderInfo.parameters["servicesLoc"];
_local2 = new URLRequest(_local3);
} else {
_local3 = DEFAULT_CONNECTION_LOCATION;
_local4 = new URLVariables();
_local5 = new Date();
_local4.nocache = (((_local5.month + 1) * 31) + _local5.day);
_local2 = new URLRequest(_local3);
_local2.data = _local4;
};
allowDomain(_local3);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_loader.load(_local2);
};
}
public function getItemID():int{
if (_servicesConnection != null){
return (_servicesConnection.getItemID());
};
return (INVALID_ID);
}
public function allowDomain(_arg1:String):void{
Security.allowDomain("*");
Security.allowInsecureDomain("*");
}
public function get connecting():Boolean{
return (_connecting);
}
public function isDomainAllowed():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isDomainValid())));
}
public function bringToFront(_arg1:Event=null):void{
var e = _arg1;
if (parent){
try {
parent.setChildIndex(this, (parent.numChildren - 1));
} catch(e:Error) {
removeEventListener(Event.ENTER_FRAME, bringToFront);
};
};
}
public static function getInstance():SpilGamesServices{
if (!_instance){
_instance = new SpilGamesServices(new Private());
};
return (_instance);
}
}
}//package com.spilgames.api
class Private {
private function Private(){
}
}
Section 144
//User (com.spilgames.api.User)
package com.spilgames.api {
import flash.display.*;
public class User {
public static function getUserName():String{
var _local1:* = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.getUserName());
};
return ("");
}
public static function isGuest():Boolean{
var _local2:DisplayObject;
var _local3:Object;
var _local1:* = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.isGuest());
};
_local2 = SpilGamesServices.getInstance().root;
if (_local2.loaderInfo != null){
_local3 = _local2.loaderInfo.parameters;
return (((((((!(_local3.username)) || ((_local3.username == "")))) || (!(_local3.hash)))) || ((_local3.hash == ""))));
};
return (false);
}
public static function getUserHash():String{
var _local1:* = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.getUserHash());
};
return ("");
}
}
}//package com.spilgames.api
Section 145
//flag_icon_83 (components_fla.flag_icon_83)
package components_fla {
import flash.display.*;
public dynamic class flag_icon_83 extends MovieClip {
public function flag_icon_83(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package components_fla
Section 146
//AdLoader (CPMStar.AdLoader)
package CPMStar {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.system.*;
public class AdLoader extends Sprite {
private var cpmstarLoader:Loader;
private var contentspotid:String;
public function AdLoader(_arg1:String){
this.contentspotid = _arg1;
addEventListener(Event.ADDED, addedHandler);
}
private function dispatchHandler(_arg1:Event):void{
dispatchEvent(_arg1);
}
private function addedHandler(_arg1:Event):void{
removeEventListener(Event.ADDED, addedHandler);
Security.allowDomain("server.cpmstar.com");
var _local2 = "http://server.cpmstar.com/adviewas3.swf";
var _local3:DisplayObjectContainer = parent;
cpmstarLoader = new Loader();
cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler);
cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler);
cpmstarLoader.load(new URLRequest(((_local2 + "?contentspotid=") + contentspotid)));
addChild(cpmstarLoader);
}
}
}//package CPMStar
Section 147
//ByteArrayAsset (mx.core.ByteArrayAsset)
package mx.core {
import flash.utils.*;
public class ByteArrayAsset extends ByteArray implements IFlexAsset {
mx_internal static const VERSION:String = "3.2.0.3958";
}
}//package mx.core
Section 148
//EdgeMetrics (mx.core.EdgeMetrics)
package mx.core {
public class EdgeMetrics {
public var top:Number;
public var left:Number;
public var bottom:Number;
public var right:Number;
mx_internal static const VERSION:String = "3.2.0.3958";
public static const EMPTY:EdgeMetrics = new EdgeMetrics(0, 0, 0, 0);
;
public function EdgeMetrics(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){
this.left = _arg1;
this.top = _arg2;
this.right = _arg3;
this.bottom = _arg4;
}
public function clone():EdgeMetrics{
return (new EdgeMetrics(left, top, right, bottom));
}
}
}//package mx.core
Section 149
//FlexMovieClip (mx.core.FlexMovieClip)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexMovieClip extends MovieClip {
mx_internal static const VERSION:String = "3.2.0.3958";
public function FlexMovieClip(){
super();
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 150
//IBorder (mx.core.IBorder)
package mx.core {
public interface IBorder {
function get borderMetrics():EdgeMetrics;
}
}//package mx.core
Section 151
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 152
//IFlexDisplayObject (mx.core.IFlexDisplayObject)
package mx.core {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.accessibility.*;
public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher {
function get visible():Boolean;
function get rotation():Number;
function localToGlobal(_arg1:Point):Point;
function get name():String;
function set width(_arg1:Number):void;
function get measuredHeight():Number;
function get blendMode():String;
function get scale9Grid():Rectangle;
function set name(_arg1:String):void;
function set scaleX(_arg1:Number):void;
function set scaleY(_arg1:Number):void;
function get measuredWidth():Number;
function get accessibilityProperties():AccessibilityProperties;
function set scrollRect(_arg1:Rectangle):void;
function get cacheAsBitmap():Boolean;
function globalToLocal(_arg1:Point):Point;
function get height():Number;
function set blendMode(_arg1:String):void;
function get parent():DisplayObjectContainer;
function getBounds(_arg1:DisplayObject):Rectangle;
function get opaqueBackground():Object;
function set scale9Grid(_arg1:Rectangle):void;
function setActualSize(_arg1:Number, _arg2:Number):void;
function set alpha(_arg1:Number):void;
function set accessibilityProperties(_arg1:AccessibilityProperties):void;
function get width():Number;
function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean;
function set cacheAsBitmap(_arg1:Boolean):void;
function get scaleX():Number;
function get scaleY():Number;
function get scrollRect():Rectangle;
function get mouseX():Number;
function get mouseY():Number;
function set height(_arg1:Number):void;
function set mask(_arg1:DisplayObject):void;
function getRect(_arg1:DisplayObject):Rectangle;
function get alpha():Number;
function set transform(_arg1:Transform):void;
function move(_arg1:Number, _arg2:Number):void;
function get loaderInfo():LoaderInfo;
function get root():DisplayObject;
function hitTestObject(_arg1:DisplayObject):Boolean;
function set opaqueBackground(_arg1:Object):void;
function set visible(_arg1:Boolean):void;
function get mask():DisplayObject;
function set x(_arg1:Number):void;
function set y(_arg1:Number):void;
function get transform():Transform;
function set filters(_arg1:Array):void;
function get x():Number;
function get y():Number;
function get filters():Array;
function set rotation(_arg1:Number):void;
function get stage():Stage;
}
}//package mx.core
Section 153
//IRepeaterClient (mx.core.IRepeaterClient)
package mx.core {
public interface IRepeaterClient {
function get instanceIndices():Array;
function set instanceIndices(_arg1:Array):void;
function get isDocument():Boolean;
function set repeaters(_arg1:Array):void;
function initializeRepeaterArrays(_arg1:IRepeaterClient):void;
function get repeaters():Array;
function set repeaterIndices(_arg1:Array):void;
function get repeaterIndices():Array;
}
}//package mx.core
Section 154
//MovieClipAsset (mx.core.MovieClipAsset)
package mx.core {
public class MovieClipAsset extends FlexMovieClip implements IFlexAsset, IFlexDisplayObject, IBorder {
private var _measuredHeight:Number;
private var _measuredWidth:Number;
mx_internal static const VERSION:String = "3.2.0.3958";
public function MovieClipAsset(){
_measuredWidth = width;
_measuredHeight = height;
}
public function get measuredWidth():Number{
return (_measuredWidth);
}
public function get measuredHeight():Number{
return (_measuredHeight);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
public function get borderMetrics():EdgeMetrics{
if (scale9Grid == null){
return (EdgeMetrics.EMPTY);
};
return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom))));
}
}
}//package mx.core
Section 155
//MovieClipLoaderAsset (mx.core.MovieClipLoaderAsset)
package mx.core {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.system.*;
public class MovieClipLoaderAsset extends MovieClipAsset implements IFlexAsset, IFlexDisplayObject {
protected var initialHeight:Number;// = 0
private var loader:Loader;// = null
private var initialized:Boolean;// = false
protected var initialWidth:Number;// = 0
private var requestedHeight:Number;
private var requestedWidth:Number;
mx_internal static const VERSION:String = "3.2.0.3958";
public function MovieClipLoaderAsset(){
var _local1:LoaderContext = new LoaderContext();
_local1.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
if (("allowLoadBytesCodeExecution" in _local1)){
_local1["allowLoadBytesCodeExecution"] = true;
};
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
loader.loadBytes(movieClipData, _local1);
addChild(loader);
}
override public function get width():Number{
if (!initialized){
return (initialWidth);
};
return (super.width);
}
override public function set width(_arg1:Number):void{
if (!initialized){
requestedWidth = _arg1;
} else {
loader.width = _arg1;
};
}
override public function get measuredHeight():Number{
return (initialHeight);
}
private function completeHandler(_arg1:Event):void{
initialized = true;
initialWidth = loader.width;
initialHeight = loader.height;
if (!isNaN(requestedWidth)){
loader.width = requestedWidth;
};
if (!isNaN(requestedHeight)){
loader.height = requestedHeight;
};
dispatchEvent(_arg1);
}
override public function set height(_arg1:Number):void{
if (!initialized){
requestedHeight = _arg1;
} else {
loader.height = _arg1;
};
}
override public function get measuredWidth():Number{
return (initialWidth);
}
override public function get height():Number{
if (!initialized){
return (initialHeight);
};
return (super.height);
}
public function get movieClipData():ByteArray{
return (null);
}
}
}//package mx.core
Section 156
//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 157
//SoundAsset (mx.core.SoundAsset)
package mx.core {
import flash.media.*;
public class SoundAsset extends Sound implements IFlexAsset {
mx_internal static const VERSION:String = "3.2.0.3958";
}
}//package mx.core
Section 158
//NameUtil (mx.utils.NameUtil)
package mx.utils {
import flash.display.*;
import mx.core.*;
import flash.utils.*;
public class NameUtil {
mx_internal static const VERSION:String = "3.2.0.3958";
private static var counter:int = 0;
public static function displayObjectToString(_arg1:DisplayObject):String{
var result:String;
var o:DisplayObject;
var s:String;
var indices:Array;
var displayObject = _arg1;
try {
o = displayObject;
while (o != null) {
if (((((o.parent) && (o.stage))) && ((o.parent == o.stage)))){
break;
};
s = o.name;
if ((o is IRepeaterClient)){
indices = IRepeaterClient(o).instanceIndices;
if (indices){
s = (s + (("[" + indices.join("][")) + "]"));
};
};
result = ((result == null)) ? s : ((s + ".") + result);
o = o.parent;
};
} catch(e:SecurityError) {
};
return (result);
}
public static function createUniqueName(_arg1:Object):String{
if (!_arg1){
return (null);
};
var _local2:String = getQualifiedClassName(_arg1);
var _local3:int = _local2.indexOf("::");
if (_local3 != -1){
_local2 = _local2.substr((_local3 + 2));
};
var _local4:int = _local2.charCodeAt((_local2.length - 1));
if ((((_local4 >= 48)) && ((_local4 <= 57)))){
_local2 = (_local2 + "_");
};
return ((_local2 + counter++));
}
}
}//package mx.utils
Section 159
//Brand (spill.localisation.Brand)
package spill.localisation {
import flash.xml.*;
public class Brand {
public var domain:String;
public var emailPage:String;
public var name:String;
public var site_id:uint;
public var isExternal:Boolean;// = false
public var id:Number;
public var hostingDomain:String;// = ""
public var preferedLanguage:String;// = ""
public var moreLink:String;// = ""
public var hasSendToFriendLink:Boolean;// = true
public var emailLink:String;// = "game"
public var portalGroup:uint;
public var useGoogleAnalitics:Boolean;// = true
private static const topLevelDoubles:String = (((((((((((((("ac.cn,ac.jp,ac.uk,ad.jp,adm.br,adv.br,agr.br," + "ah.cn,am.br,arq.br,art.br,asn.au,ato.br,av.tr,bel.tr,bio.br,biz.tr,bj.cn,bmd.br,") + "cim.br,cng.br,cnt.br,co.at,co.jp,co.uk,com.au,com.br,com.cn,com.eg,com.hk,com.mx,") + "com.ru,com.tr,com.tw,conf.au,cq.cn,csiro.au,dr.tr,ecn.br,edu.au,edu.br,edu.tr,") + "emu.id.au,eng.br,esp.br,etc.br,eti.br,eun.eg,far.br,fj.cn,fm.br,fnd.br,fot.br,") + "fst.br,g12.br,gb.com,gb.net,gd.cn,gen.tr,ggf.br,gob.mx,gov.au,gov.br,gov.cn,") + "gov.hk,gov.tr,gr.jp,gs.cn,gx.cn,gz.cn,ha.cn,hb.cn,he.cn,hi.cn,hk.cn,hl.cn,hn.cn,") + "id.au,idv.tw,imb.br,ind.br,inf.br,info.au,info.tr,jl.cn,jor.br,js.cn,jx.cn,k12.tr,") + "lel.br,ln.cn,ltd.uk,mat.br,me.uk,med.br,mil.br,mil.tr,mo.cn,mus.br,name.tr,ne.jp,") + "net.au,net.br,net.cn,net.eg,net.hk,net.lu,net.mx,net.ru,net.tr,net.tw,net.uk,") + "nm.cn,no.com,nom.br,not.br,ntr.br,nx.cn,odo.br,oop.br,or.at,or.jp,org.au,org.br,") + "org.cn,org.hk,org.lu,org.ru,org.tr,org.tw,org.uk,plc.uk,pol.tr,pp.ru,ppg.br,pro.br,") + "psc.br,psi.br,qh.cn,qsl.br,rec.br,sc.cn,sd.cn,se.com,se.net,sh.cn,slg.br,sn.cn,") + "srv.br,sx.cn,tel.tr,tj.cn,tmp.br,trd.br,tur.br,tv.br,tw.cn,uk.com,uk.net,vet.br,") + "wattle.id.au,web.tr,xj.cn,xz.cn,yn.cn,zj.cn,zlg.br,co.nr,co.nz,com.fr,com.ph,com.ar,");
private function get utm_campaign():String{
if (isExternal){
return (("utm_campaign=" + hostingDomain));
};
return ("");
}
public function exportXML():XML{
var _local3:XML;
var _local1:XML = <portal/>
;
_local1.@id = site_id;
_local1.@language = preferedLanguage;
_local1.@channel = portalGroup;
var _local2:XML = <domain/>
;
_local2.appendChild(new XMLNode(3, domain));
_local1.appendChild(_local2);
if (moreLink){
_local3 = <more_games_path/>
;
_local3.appendChild(new XMLNode(3, moreLink));
_local1.appendChild(_local3);
};
_local2 = <game_path/>
;
_local2.appendChild(new XMLNode(3, emailLink));
_local1.appendChild(_local2);
if (!useGoogleAnalitics){
_local1.attributes.noGoogleAnalitics = true;
};
if (!hasSendToFriendLink){
_local1.attributes.noSendToFriendLink = true;
};
return (_local1);
}
public function getPromotionLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String="", _arg5:String=""):String{
var _local6:String = ("http://" + domain);
_local6 = (_local6 + ((("/" + emailLink) + "/") + _arg2));
if (useGoogleAnalitics){
_local6 = (_local6 + ("?utm_medium=brandedgames_" + (_arg3) ? "external" : "internal"));
_local6 = (_local6 + ("&utm_campaign=" + _arg1));
_arg4 = stripSubDomain(_arg4);
trace(_arg4);
if (_arg4 == "localhost"){
_arg4 = "offline_play";
};
_local6 = (_local6 + ("&utm_source=" + _arg4));
if (((!((_arg5 == ""))) && (!((_arg5 == null))))){
_local6 = (_local6 + ("&utm_content=" + _arg5));
};
};
return (_local6);
}
private function get utm_source():String{
return (("utm_source=brandedgames_" + (isExternal) ? "external" : "internal"));
}
public function getMoreGamesLink(_arg1:String, _arg2:Boolean, _arg3:String="", _arg4:String=""):String{
var _local5:String = ("http://" + domain);
_local5 = (_local5 + ("/" + moreLink));
if (useGoogleAnalitics){
_local5 = (_local5 + ("?utm_medium=brandedgames_" + (_arg2) ? "external" : "internal"));
_local5 = (_local5 + ("&utm_campaign=" + _arg1));
_arg3 = stripSubDomain(_arg3);
if (_arg3 == "localhost"){
_arg3 = "offline_play";
};
_local5 = (_local5 + ("&utm_source=" + _arg3));
if (((!((_arg4 == ""))) && (!((_arg4 == null))))){
_local5 = (_local5 + ("&utm_content=" + _arg4));
};
};
return (_local5);
}
public function get backgroundColor():uint{
return (PortalGroup.backgroundColors[portalGroup]);
}
private function get utm_term():String{
return ("utm_term=");
}
public function importXML(_arg1:XMLNode):void{
}
public function getSendToFriendLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""):String{
if (!hasSendToFriendLink){
return (getMoreGamesLink(_arg1, _arg3));
};
var _local5:String = ("http://" + domain);
_local5 = (_local5 + ((("/" + emailLink) + "/") + _arg2));
if (useGoogleAnalitics){
_local5 = (_local5 + ("?utm_medium=brandedgames_" + (_arg3) ? "external" : "internal"));
_local5 = (_local5 + ("&utm_campaign=" + _arg1));
_arg4 = stripSubDomain(_arg4);
if (_arg4 == "localhost"){
_arg4 = "offline_play";
};
_local5 = (_local5 + ("&utm_source=" + _arg4));
_local5 = (_local5 + "&utm_content=send_to_friend");
};
return (_local5);
}
private static function stripSubDomain(_arg1:String):String{
if (!_arg1){
return ("");
};
var _local2:Array = _arg1.split(".");
if (_local2.length <= 2){
return (_arg1);
};
_local2 = _local2.reverse();
if (topLevelDoubles.indexOf((((_local2[1] + ".") + _local2[0]) + ",")) > 0){
return (((((_local2[2] + ".") + _local2[1]) + ".") + _local2[0]));
};
return (((_local2[1] + ".") + _local2[0]));
}
}
}//package spill.localisation
Section 160
//BrandingLogo (spill.localisation.BrandingLogo)
package spill.localisation {
import flash.events.*;
import flash.display.*;
public class BrandingLogo extends MovieClip {
public function BrandingLogo(){
addFrameScript(0, frame1);
super();
stop();
mouseEnabled = false;
mouseChildren = false;
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
if (stage){
added();
};
brandingChanged();
}
private function added(_arg1:Event=null):void{
SpilGame.addEventListener("brandingChanged", brandingChanged, false, 0, true);
brandingChanged();
}
private function brandingChanged(_arg1:Event=null):void{
if (SpilGame.currentBranding){
gotoAndStop(SpilGame.currentBranding.domain);
};
}
function frame1(){
stop();
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("brandingChanged", brandingChanged);
}
}
}//package spill.localisation
Section 161
//Brandings (spill.localisation.Brandings)
package spill.localisation {
public class Brandings {
private static var brands_by_id:Object = new Object();
private static var brands_by_domain:Object = new Object();
public static function getBrandByID(_arg1:Number):Brand{
return (brands_by_id[_arg1]);
}
public static function getBrandsArray():Array{
var _local2:Brand;
var _local1:Array = new Array();
for each (_local2 in brands_by_domain) {
_local1.push(_local2);
};
return (_local1);
}
private static function addBrand(_arg1:Brand):Brand{
if (brands_by_domain[_arg1.domain]){
trace(("ERROR: Attempting to add duplicate brand by domain: " + _arg1.domain));
} else {
brands_by_domain[_arg1.domain] = _arg1;
};
if (brands_by_id[_arg1.site_id]){
trace(("ERROR: Attempting to add duplicate brand by id: " + _arg1.site_id));
} else {
brands_by_id[_arg1.site_id] = _arg1;
};
return (_arg1);
}
public static function initialize():void{
var _local1:Brand;
_local1 = new Brand();
_local1.site_id = 79;
_local1.domain = "www.agame.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.TWEEN;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 88;
_local1.domain = "www.gamesgames.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 90;
_local1.domain = "www.girlsgogames.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.GIRL;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 45;
_local1.domain = "www.a10.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.TEEN;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 92;
_local1.domain = "www.games.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 107;
_local1.domain = "www.agame.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.TWEEN;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 102;
_local1.domain = "www.girlsgogames.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.GIRL;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 2;
_local1.domain = "www.game.com.cn";
_local1.moreLink = "moregames/";
_local1.preferedLanguage = "cn";
_local1.portalGroup = PortalGroup.NONE;
_local1.useGoogleAnalitics = false;
_local1.hasSendToFriendLink = false;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 25;
_local1.domain = "www.spel.nl";
_local1.portalGroup = PortalGroup.TWEEN;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 1;
_local1.domain = "www.spelletjes.nl";
_local1.emailLink = "spel";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 93;
_local1.domain = "www.girlsgogames.nl";
_local1.emailLink = "spel";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 12;
_local1.domain = "www.jeu.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.TWEEN;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 95;
_local1.domain = "www.girlsgogames.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 11;
_local1.domain = "www.jeux.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 26;
_local1.domain = "www.spielen.com";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.TWEEN;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 94;
_local1.domain = "www.girlsgogames.de";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 5;
_local1.domain = "www.jetztspielen.de";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 109;
_local1.domain = "www.minigry.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.TWEEN;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 16;
_local1.domain = "www.gry.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 98;
_local1.domain = "www.girlsgogames.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 108;
_local1.domain = "www.spel.se";
_local1.emailLink = "spel_";
_local1.portalGroup = PortalGroup.TWEEN;
_local1.preferedLanguage = "se";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 100;
_local1.domain = "www.girlsgogames.se";
_local1.emailLink = "spel_";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "se";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 44;
_local1.domain = "www.spela.se";
_local1.emailLink = "spel_";
_local1.preferedLanguage = "se";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 106;
_local1.domain = "www.giocaregratis.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.TWEEN;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 15;
_local1.domain = "www.gioco.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 99;
_local1.domain = "www.girlsgogames.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 97;
_local1.domain = "www.zapjuegos.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TWEEN;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 86;
_local1.domain = "www.juegos.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 96;
_local1.domain = "www.juegosdechicas.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 122;
_local1.domain = "www.girlsgogames.es";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 125;
_local1.domain = "www.juegos.mx";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TWEEN;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 126;
_local1.domain = "www.juegosdechicas.mx";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 127;
_local1.domain = "www.juegos.com.ar";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TWEEN;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 128;
_local1.domain = "www.juegosdechicas.com.ar";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 91;
_local1.domain = "www.clickjogos.com";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.TWEEN;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 101;
_local1.domain = "www.girlsgogames.com.br";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 50;
_local1.domain = "www.ojogos.com.br";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 55;
_local1.domain = "www.games.co.id";
_local1.emailLink = "permainanme";
_local1.portalGroup = PortalGroup.TWEEN;
_local1.preferedLanguage = "id";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 105;
_local1.domain = "www.flashgames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.TWEEN;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 104;
_local1.domain = "www.girlsgogames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 103;
_local1.domain = "www.ourgames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 24;
_local1.domain = "www.game.co.in";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.TWEEN;
_local1.preferedLanguage = "in";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 87;
_local1.domain = "www.ojogos.pt";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "pt";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 120;
_local1.domain = "www.egames.jp";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.TWEEN;
_local1.preferedLanguage = "jp";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 121;
_local1.domain = "www.dailygame.com";
_local1.emailLink = "/game/";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 123;
_local1.domain = "www.zapapa.com";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.ZAPAPA;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 124;
_local1.domain = "www.zapapa.nl";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.HYVES;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 0;
_local1.domain = "gamedev.dev.spilgames.com";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
}
public static function exportXML():XML{
var _local2:Brand;
var _local1:XML = <portals/>
;
for each (_local2 in brands_by_domain) {
_local1.appendChild(_local2.exportXML());
};
return (_local1);
}
public static function getBrandByDomain(_arg1:String):Brand{
return (brands_by_domain[_arg1]);
}
public static function hasDomain(_arg1:String):Boolean{
return (!((brands_by_domain[_arg1] == null)));
}
}
}//package spill.localisation
Section 162
//Language (spill.localisation.Language)
package spill.localisation {
import flash.xml.*;
public class Language {
public var portal_groups:Array;
public var references:Array;
public var name:String;
public var embedInputFonts:Boolean;// = true
public var id:uint;
public var forceFont:String;// = null
public var textLanguage:String;
public var bwcId:int;
public var embedFonts:Boolean;// = true
public var displayName:String;// = ""
public var dname:String;
public function Language(_arg1:String, _arg2:String=null){
references = [];
super();
name = _arg1;
dname = _arg2;
portal_groups = new Array();
}
public function exportXML():XMLNode{
var _local1:XMLNode = new XMLNode(1, "language");
_local1.attributes.name = name;
if (textLanguage != null){
_local1.attributes.textLanguage = textLanguage;
};
if (references.length){
_local1.attributes.references = references.toString();
};
_local1.attributes.id = bwcId;
var _local2:XMLNode = new XMLNode(1, "display_name");
_local2.firstChild = new XMLNode(3, displayName);
_local1.appendChild(_local2);
var _local3:Array = [];
var _local4:Array = PortalGroup.channelNames;
var _local5:int;
while (_local5 < _local4.length) {
_local3.push(Brandings.getBrandByDomain(portal_groups[_local5]).site_id);
_local5++;
};
_local1.attributes.channels = _local3.join(",");
return (_local1);
}
public function get p_teen():String{
return (portal_groups[PortalGroup.TEEN]);
}
public function set p_hyves(_arg1:String):void{
portal_groups[PortalGroup.HYVES] = _arg1;
}
public function set p_teen(_arg1:String):void{
portal_groups[PortalGroup.TEEN] = _arg1;
}
public function get p_tween():String{
return (portal_groups[PortalGroup.TWEEN]);
}
public function get p_family():String{
return (portal_groups[PortalGroup.FAMILY]);
}
public function get p_girl():String{
trace("Language", portal_groups[PortalGroup.GIRL]);
return (portal_groups[PortalGroup.GIRL]);
}
public function get p_hyves():String{
return (portal_groups[PortalGroup.HYVES]);
}
public function set p_girl(_arg1:String):void{
portal_groups[PortalGroup.GIRL] = _arg1;
}
public function set p_zapapa(_arg1:String):void{
portal_groups[PortalGroup.ZAPAPA] = _arg1;
}
public function get displayAcronim():String{
return ((dname) ? dname : name);
}
public function set p_family(_arg1:String):void{
portal_groups[PortalGroup.FAMILY] = _arg1;
}
public function set p_tween(_arg1:String):void{
portal_groups[PortalGroup.TWEEN] = _arg1;
}
public function get p_zapapa():String{
return (portal_groups[PortalGroup.ZAPAPA]);
}
}
}//package spill.localisation
Section 163
//Languages (spill.localisation.Languages)
package spill.localisation {
import flash.xml.*;
public class Languages {
public static var languages:Object = new Object();
private static var _init:Boolean = false;
public static function initialize():void{
var _local1:Language;
if (_init){
return;
};
_init = true;
_local1 = new Language("nl");
_local1.displayName = "Nederlands";
_local1.p_family = "www.spelletjes.nl";
_local1.p_tween = "www.spel.nl";
_local1.p_girl = "www.girlsgogames.nl";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_hyves = "www.zapapa.nl";
_local1.bwcId = 3;
addLanguage(_local1);
_local1 = new Language("es");
_local1.displayName = "Español";
_local1.p_family = "www.juegos.com";
_local1.p_tween = "www.zapjuegos.com";
_local1.p_girl = "www.girlsgogames.es";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 9;
addLanguage(_local1);
_local1 = new Language("pl");
_local1.displayName = "Polski";
_local1.p_family = "www.gry.pl";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.pl";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 6;
addLanguage(_local1);
_local1 = new Language("fr");
_local1.displayName = "Français";
_local1.p_family = "www.jeux.fr";
_local1.p_tween = "www.jeu.fr";
_local1.p_girl = "www.girlsgogames.fr";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 4;
addLanguage(_local1);
_local1 = new Language("en_us", "us");
_local1.displayName = "English";
_local1.p_family = "www.gamesgames.com";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.com";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 1;
addLanguage(_local1);
addReference(_local1, "en");
_local1 = new Language("id");
_local1.displayName = "Bahasa Ind.";
_local1.p_family = "www.gamesgames.com";
_local1.p_tween = "www.games.co.id";
_local1.p_girl = "www.girlsgogames.com";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 11;
addLanguage(_local1);
_local1 = new Language("ru");
_local1.displayName = "Русский";
_local1.p_family = "www.ourgames.ru";
_local1.p_tween = "www.flashgames.ru";
_local1.p_girl = "www.girlsgogames.ru";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 12;
addLanguage(_local1);
_local1 = new Language("se");
_local1.displayName = "Svenska";
_local1.p_family = "www.spela.se";
_local1.p_tween = "www.spel.se";
_local1.p_girl = "www.girlsgogames.se";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 7;
addLanguage(_local1);
addReference(_local1, "sv");
_local1 = new Language("it");
_local1.displayName = "Italiano";
_local1.p_family = "www.gioco.it";
_local1.p_tween = "www.gioco.it";
_local1.p_girl = "www.girlsgogames.it";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 8;
addLanguage(_local1);
_local1 = new Language("en_uk", "uk");
_local1.displayName = "English";
_local1.p_family = "www.games.co.uk";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.co.uk";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 13;
addLanguage(_local1);
_local1 = new Language("cn");
_local1.displayName = "中文";
_local1.p_family = "www.game.com.cn";
_local1.p_tween = "www.game.com.cn";
_local1.p_girl = "www.game.com.cn";
_local1.p_teen = "www.game.com.cn";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 2;
_local1.embedFonts = false;
_local1.embedInputFonts = false;
_local1.forceFont = "_sans";
addLanguage(_local1);
addReference(_local1, "zh-CN");
addReference(_local1, "zh-TW");
_local1 = new Language("pt");
_local1.displayName = "Português";
_local1.p_family = "www.ojogos.pt";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.com";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 17;
addLanguage(_local1);
_local1 = new Language("in");
_local1.displayName = "English";
_local1.p_family = "www.gamesgames.com";
_local1.p_tween = "www.game.co.in";
_local1.p_girl = "www.girlsgogames.com";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.textLanguage = "en_uk";
_local1.bwcId = 14;
addLanguage(_local1);
_local1 = new Language("de");
_local1.displayName = "Deutsch";
_local1.p_family = "www.jetztspielen.de";
_local1.p_tween = "www.spielen.com";
_local1.p_girl = "www.girlsgogames.de";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 5;
addLanguage(_local1);
_local1 = new Language("br");
_local1.displayName = "Português (BR)";
_local1.p_family = "www.ojogos.com.br";
_local1.p_tween = "www.clickjogos.com";
_local1.p_girl = "www.girlsgogames.com.br";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 10;
addLanguage(_local1);
_local1 = new Language("jp");
_local1.displayName = "日本語";
_local1.p_family = "www.gamesgames.com";
_local1.p_tween = "www.egames.jp";
_local1.p_girl = "www.girlsgogames.com";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.embedFonts = true;
_local1.embedInputFonts = false;
_local1.forceFont = "MS UI Gothic";
_local1.bwcId = 19;
addLanguage(_local1);
addReference(_local1, "ja");
_local1 = new Language("ar");
_local1.displayName = "English";
_local1.p_family = "www.dailygame.com";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.com";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 20;
addLanguage(_local1);
addReference(_local1, "ar");
_local1 = new Language("es_mx", "mx");
_local1.displayName = "Español";
_local1.p_family = "www.juegos.mx";
_local1.p_tween = "www.juegos.mx";
_local1.p_girl = "www.juegosdechicas.mx";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.textLanguage = "es";
addLanguage(_local1);
addReference(_local1, "mx");
_local1 = new Language("es_ar", "arg");
_local1.displayName = "Español";
_local1.p_family = "www.juegos.com.ar";
_local1.p_tween = "www.juegos.com.ar";
_local1.p_girl = "www.juegosdechicas.com.ar";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.textLanguage = "es";
addLanguage(_local1);
addReference(_local1, "arg");
}
public static function exportXML():XMLNode{
var _local3:Language;
var _local1:Array = getLanguagesArray();
var _local2:XMLNode = new XMLNode(1, "languages");
for each (_local3 in _local1) {
_local2.appendChild(_local3.exportXML());
};
return (_local2);
}
public static function getLanguagesArray():Array{
var _local3:Language;
var _local1:Array = new Array();
var _local2:Object = new Object();
for each (_local3 in languages) {
if (!_local2[_local3.name]){
_local1.push(_local3);
_local2[_local3.name] = true;
};
};
return (_local1);
}
public static function getLanguage(_arg1:String):Language{
return (languages[_arg1]);
}
private static function addLanguage(_arg1:Language):void{
languages[_arg1.name] = _arg1;
}
private static function addReference(_arg1:Language, _arg2:String):void{
languages[_arg2] = _arg1;
_arg1.references.push(_arg2);
}
public static function getLanguageByOldID(_arg1:int):Language{
var _local2:Language;
for each (_local2 in languages) {
if (_local2.bwcId == _arg1){
return (_local2);
};
};
return (null);
}
}
}//package spill.localisation
Section 164
//LanguageSelectBox (spill.localisation.LanguageSelectBox)
package spill.localisation {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class LanguageSelectBox extends MovieClip {
private var flag:MovieClip;
private var languageName_text:TextField;
private var popup:MovieClip;
private var mc:MovieClip;
public function LanguageSelectBox(){
trace("new langselecbox");
super();
if (numChildren > 0){
removeChildAt(0);
};
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
addEventListener(MouseEvent.MOUSE_OVER, mouseOver, false, 0, true);
addEventListener(MouseEvent.MOUSE_OUT, mouseOut, false, 0, true);
Languages.initialize();
popup = new LanguageSelectPopup_mc();
x = Math.round(x);
y = Math.round(y);
popup.y = (-(Math.floor(popup.height)) + 1);
popup.visible = false;
addChild(popup);
mc = new LanguageSelectBox_mc();
addChild(mc);
flag = mc.flag;
languageName_text = mc.languageName_text;
if (stage){
added();
};
init();
languageChanged();
}
private function added(_arg1:Event=null):void{
trace("addedselebnox");
SpilGame.addEventListener("languageChanged", languageChanged, false, 0, true);
}
private function mouseOut(_arg1:MouseEvent):void{
popup.visible = false;
}
public function set popupLocation(_arg1:String):void{
trace(("popupLocation = " + _arg1));
if (_arg1 == "bottom"){
popup.y = Math.floor(mc.height);
} else {
popup.y = (-(Math.floor(mc.height)) + 1);
};
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("languageChanged", languageChanged);
}
public function init():void{
var _local3:MovieClip;
var _local4:Language;
trace("initselectbox");
var _local1:Array = new Array(popup.l_br, popup.l_de, popup.l_en_us, popup.l_fr, popup.l_in, popup.l_jp, popup.l_pt, popup.l_ru, popup.l_ar, popup.l_cn, popup.l_en_uk, popup.l_es, popup.l_id, popup.l_it, popup.l_nl, popup.l_pl, popup.l_se, popup.l_es_mx, popup.l_es_ar);
var _local2:int;
while (_local2 < _local1.length) {
_local3 = MovieClip(_local1[_local2]);
if (_local3){
_local3.addEventListener(MouseEvent.CLICK, itemClicked, true, 0, true);
_local3.flag.gotoAndStop(_local3.name.substr(2));
_local3.flag.mouseEnabled = false;
_local3.text.mouseEnabled = false;
_local4 = Languages.getLanguage(_local3.name.substr(2));
if (_local4){
_local3.text.text = _local4.displayAcronim;
} else {
trace((("Error, '" + _local3.name.substr(2)) + "' language not found"));
};
} else {
trace((((("Error, btn number '" + _local2) + "' is not a MovieClip or there is no button '") + _local1[_local2]) + "'"));
};
_local2++;
};
}
private function itemClicked(_arg1:MouseEvent):void{
SpilGame.changeLanguage(_arg1.currentTarget.name.substr(2));
popup.visible = false;
}
private function mouseOver(_arg1:MouseEvent):void{
popup.visible = true;
}
private function languageChanged(_arg1:Event=null):void{
if (SpilGame.currentLanguage){
flag.gotoAndStop(SpilGame.currentLanguage.name);
languageName_text.text = SpilGame.currentLanguage.displayName;
languageName_text.embedFonts = SpilGame.currentLanguage.embedInputFonts;
};
}
}
}//package spill.localisation
Section 165
//LanguageSelectBox_mc (spill.localisation.LanguageSelectBox_mc)
package spill.localisation {
import flash.display.*;
import flash.text.*;
public dynamic class LanguageSelectBox_mc extends MovieClip {
public var languageName_text:TextField;
public var flag:MovieClip;
}
}//package spill.localisation
Section 166
//LanguageSelectPopup_mc (spill.localisation.LanguageSelectPopup_mc)
package spill.localisation {
import flash.display.*;
public dynamic class LanguageSelectPopup_mc extends MovieClip {
public var l_cn:MovieClip;
public var l_br:MovieClip;
public var l_se:MovieClip;
public var l_id:MovieClip;
public var l_es_ar:MovieClip;
public var l_es_mx:MovieClip;
public var l_in:MovieClip;
public var l_en_uk:MovieClip;
public var l_en_us:MovieClip;
public var l_es:MovieClip;
public var l_ar:MovieClip;
public var l_it:MovieClip;
public var l_pl:MovieClip;
public var l_nl:MovieClip;
public var l_de:MovieClip;
public var l_ru:MovieClip;
public var l_pt:MovieClip;
public var l_jp:MovieClip;
public var l_fr:MovieClip;
}
}//package spill.localisation
Section 167
//PortalGroup (spill.localisation.PortalGroup)
package spill.localisation {
import flash.xml.*;
public class PortalGroup {
public static const FAMILY:uint = 0;
public static const channelNames:Array = ["family", "tween", "girl", "teen", "zapapa", "hyves"];
public static const ZAPAPA:uint = 4;
public static const TWEEN:uint = 1;
public static const HYVES:uint = 5;
public static const TEEN:uint = 3;
public static const GIRL:uint = 2;
public static const backgroundColors:Array = [0xFFFFFF, 0xFFFFFF, 16742331, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF];
public static const NONE:uint = 6;
public static function getName(_arg1:int):String{
return (channelNames[_arg1]);
}
public static function exportXML():XMLNode{
var _local3:XMLNode;
var _local1:XMLNode = new XMLNode(1, "channels");
var _local2:int;
while (_local2 < 5) {
_local3 = new XMLNode(1, "channel");
_local3.attributes.name = channelNames[_local2];
_local3.attributes.id = _local2;
_local1.appendChild(_local3);
_local2++;
};
return (_local1);
}
}
}//package spill.localisation
Section 168
//spil_internal (spill.localisation.spil_internal)
package spill.localisation {
public namespace spil_internal = "spill.localisation";
}//package spill.localisation
Section 169
//SpilGame (spill.localisation.SpilGame)
package spill.localisation {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
public class SpilGame {
private static const cookieName:String = "spilgames_language_v100";
private static const cookiePath:String = "/";
private static const cookieLanguageVar:String = "savedLang";
public static const LANGUAGE_CHANGED:String = "languageChanged";
public static const BRANDING_CHANGED:String = "brandingChanged";
private static var strings:Object = new Object();
public static var currentBranding:Brand;
private static var contexMenuItem:ContextMenuItem;
spil_internal static var gameName:String;
spil_internal static var debugHostDomain:String = "";
private static var localDomains:Object = new Object();
spil_internal static var emailPage:String;
private static var channelLock:Boolean = false;
spil_internal static var debugEmbedDomain:String = "";
private static var eventDispatcher:EventDispatcher;
private static var _init:Boolean = false;
public static var currentLanguage:Language;
spil_internal static var portalGroup:uint;
private static var stage:Sprite;
public static function getSpilCompanyLink():String{
if (currentLanguage.name == "cn"){
return ("http://www.game.com.cn/downloads/");
};
return ("http://www.gameportal.net");
}
public static function getPromotionLink(_arg1:String="feature_promotion"):String{
var _local2:String = (embedDomain) ? embedDomain : hostingDomain;
return (currentBranding.getPromotionLink(gameName, emailPage, isExternal, _local2, _arg1));
}
public static function traceAllBrands():void{
trace(outputAllBrands());
}
public static function getString(_arg1:String):String{
var _local2:Object = strings[_arg1];
if (_local2){
if (currentLanguage.textLanguage){
return (_local2[currentLanguage.textLanguage]);
};
return (_local2[currentLanguage.name]);
//unresolved jump
};
return ("");
}
public static function initialize(_arg1:String, _arg2:int, _arg3:String, _arg4:Sprite, _arg5:Boolean=false):void{
stage = _arg4;
if (_init){
trace("ERROR: LocalisationManager already initialised");
return;
};
_init = true;
localDomains["localhost"] = true;
localDomains["www8.agame.com"] = true;
localDomains["gamedev.dev.spilgames.com"] = true;
localDomains["stg.spel.nl"] = true;
localDomains["stg.girlsgogames.nl"] = true;
localDomains["stg.pl.spel.nl"] = true;
localDomains["stg.pl.girlsgogames.nl"] = true;
trace(localDomains["stg.girlsgogames.nl"]);
Brandings.initialize();
Languages.initialize();
initContexMenu(_arg4);
channelLock = _arg5;
gameName = _arg1.replace(" ", "_");
portalGroup = _arg2;
emailPage = _arg3;
chooseLanguage();
chooseBranding();
}
public static function get isExternal():Boolean{
return (((((!(Brandings.hasDomain(embedDomain))) && (!(localDomains[embedDomain])))) && (!(isStagingDomain))));
}
private static function initContexMenu(_arg1:Sprite):void{
contexMenuItem = new ContextMenuItem("");
_arg1.contextMenu = new ContextMenu();
_arg1.contextMenu.customItems.push(contexMenuItem);
contexMenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contexMenuClicked);
}
private static function replaceFn():String{
var _local2:String = SpilGame.getString(arguments[1]);
if (((!(_local2)) || ((_local2 == "")))){
return ((("{" + arguments[1]) + "}"));
};
return (_local2);
}
spil_internal static function get hostingDomain():String{
var _local1:LocalConnection;
if (debugHostDomain != ""){
return (debugHostDomain);
};
_local1 = new LocalConnection();
return (_local1.domain);
}
spil_internal static function chooseLanguage():void{
if (cookieLanguage != null){
currentLanguage = cookieLanguage;
} else {
if (isExternal){
currentLanguage = systemLanguage;
} else {
currentLanguage = portalLanguage;
if (!currentLanguage){
currentLanguage = systemLanguage;
};
};
};
if (!currentLanguage){
trace("Unable to determine language, using 'English US'");
currentLanguage = Languages.getLanguage("en_us");
};
TextFieldFit.embedFonts = currentLanguage.embedFonts;
TextFieldFit.forceFont = currentLanguage.forceFont;
dispatchEvent(new Event(LANGUAGE_CHANGED));
}
private static function contexMenuClicked(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest(getMoreGamesLink("Contex_Menu")));
}
public static function initTextField(_arg1:TextField):void{
var _local2:TextFormat;
trace(_arg1.text);
_arg1.text = _arg1.text.replace(/{([^{}]*)}/g, replaceFn);
trace(_arg1.text);
_arg1.embedFonts = currentLanguage.embedFonts;
if (currentLanguage.forceFont != ""){
_local2 = new TextFormat();
_local2.font = currentLanguage.forceFont;
_arg1.setTextFormat(_local2);
};
}
public static function importXMLv2(_arg1:XML):void{
var _local2:XML;
var _local3:Object;
var _local4:XML;
for each (_local2 in _arg1.children()) {
_local3 = (strings[_local2.attribute("identifier")] = new Object());
for each (_local4 in _local2.children()) {
if (_local4.children().length() > 0){
_local3[_local4.name()] = _local4.children()[0].toString();
} else {
_local3[_local4.name()] = "";
};
};
};
}
spil_internal static function changeLanguage(_arg1:String):void{
var _local2:Language = Languages.getLanguage(_arg1);
if (!_local2){
trace("ERROR: Supplied language string does not have a matching language");
} else {
cookieLanguage = _local2;
currentLanguage = _local2;
};
TextFieldFit.embedFonts = currentLanguage.embedFonts;
TextFieldFit.forceFont = currentLanguage.forceFont;
chooseBranding();
dispatchEvent(new Event(LANGUAGE_CHANGED));
}
public static function getSendToFriendLink():String{
return (currentBranding.getSendToFriendLink(gameName, emailPage, isExternal, embedDomain));
}
spil_internal static function chooseBranding():void{
currentBranding = Brandings.getBrandByDomain(currentLanguage.portal_groups[portalGroup]);
if (!(currentBranding is Brand)){
currentBranding = Brandings.getBrandByDomain("www.agame.com");
};
contexMenuItem.caption = ("More Games: " + currentBranding.domain);
dispatchEvent(new Event(BRANDING_CHANGED));
}
spil_internal static function get systemLanguage():Language{
return (Languages.getLanguage(Capabilities.language));
}
spil_internal static function set cookieLanguage(_arg1:Language):void{
var _local2:SharedObject = SharedObject.getLocal(cookieName, cookiePath);
if (_arg1 == null){
_local2.data[cookieLanguageVar] = null;
} else {
_local2.data[cookieLanguageVar] = _arg1.name;
};
_local2.flush();
}
public static function importXML(_arg1:XML):void{
var _local2:XML;
var _local3:Object;
var _local4:XML;
for each (_local2 in _arg1.children()) {
_local3 = (strings[_local2.identifier] = new Object());
for each (_local4 in _local2.children()) {
_local3[_local4.name()] = _local4.children()[0].toString();
};
};
}
spil_internal static function dispatchEvent(_arg1:Event):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.dispatchEvent(_arg1);
}
private static function getDomain(_arg1:String):String{
var _local2:String;
var _local3:uint;
if (_arg1.indexOf("file") == 0){
return ("offline_play");
};
_local2 = new String();
_local3 = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
if (_local2 == "localhost"){
_local2 = "offline_play";
};
return (_local2);
}
public static function exportXML():XML{
var _local1:XML = <spil_games/>
;
_local1.appendChild(Brandings.exportXML());
_local1.appendChild(Languages.exportXML());
_local1.appendChild(PortalGroup.exportXML());
return (_local1);
}
public static function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.removeEventListener(_arg1, _arg2, _arg3);
}
public static function outputAllBrands():String{
var _local3:Brand;
var _local1:Array = Brandings.getBrandsArray();
var _local2 = "";
for each (_local3 in _local1) {
_local2 = (_local2 + (_local3.getSendToFriendLink(gameName, emailPage, isExternal, embedDomain) + "\n"));
};
return (_local2);
}
public static function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public static function getMoreGamesLink(_arg1:String=""):String{
var _local2:String = (embedDomain) ? embedDomain : hostingDomain;
return (currentBranding.getMoreGamesLink(gameName, isExternal, _local2, _arg1));
}
public static function get isStagingDomain():Boolean{
var _local1:String = ("http://" + embedDomain);
return ((_local1.indexOf("http://stg.") >= 0));
}
spil_internal static function get cookieLanguage():Language{
var _local1:SharedObject = SharedObject.getLocal(cookieName, cookiePath);
var _local2:String = String(_local1.data[cookieLanguageVar]);
return (Languages.getLanguage(_local2));
}
private static function get portalLanguage():Language{
var _local1:Brand;
var _local2:String;
var _local3:Language;
if (isExternal){
return (null);
};
if (!embedDomain){
return (null);
};
_local1 = Brandings.getBrandByDomain(embedDomain);
if (!_local1){
return (null);
};
_local2 = _local1.preferedLanguage;
if (!_local2){
return (null);
};
_local3 = Languages.getLanguage(_local2);
if (!_local3){
return (null);
};
return (_local3);
}
spil_internal static function get embedDomain():String{
var loc:String;
if (debugEmbedDomain != ""){
return (debugEmbedDomain);
};
if (ExternalInterface.available){
try {
loc = ExternalInterface.call("window.location.href.toString");
if (((!((loc == ""))) && (!((loc == null))))){
trace(("embed domain = " + getDomain(loc)));
return (getDomain(loc));
};
} catch(e:SecurityError) {
trace(("Security Error connecting to external interface, error = " + e));
} catch(e:Error) {
trace(("Error connecting to external interface, error = " + e));
};
};
return (null);
}
}
}//package spill.localisation
Section 170
//SpilGamesLink (spill.localisation.SpilGamesLink)
package spill.localisation {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class SpilGamesLink extends SimpleButton {
public function SpilGamesLink(){
addEventListener(MouseEvent.CLICK, buttonClicked);
}
private function buttonClicked(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getSpilCompanyLink()), "_blank");
}
}
}//package spill.localisation
Section 171
//TextFieldFit (spill.localisation.TextFieldFit)
package spill.localisation {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.filters.*;
public class TextFieldFit extends MovieClip {
protected var _glowQuality:Number;// = 1
protected var _gridFitType:String;// = "pixel"
protected var _text:String;// = "default"
private var debugBounding:Sprite;
protected var _disableWordwrap:Boolean;// = false
protected var _textSize:Number;// = 12
protected var _multiline:Boolean;// = false
protected var _font:String;// = ""
protected var _embedFonts:Boolean;// = true
protected var _underline:Boolean;// = false
protected var _vAlign:String;// = "top"
protected var _italic:Boolean;// = false
protected var _useGlowFilter:Boolean;// = false
protected var _glowColor:uint;// = 0
protected var _bold:Boolean;// = false
private var h:Number;
protected var _antiAliasType:String;// = "advanced"
private var sizeChanged:Boolean;// = true
private var w:Number;
private var embeddedFonts:Array;
protected var _hAlign:String;// = "left"
protected var _textColor:uint;// = 0
protected var _glowStrength:Number;// = 5
protected var _glowBlur:Number;// = 3
protected var _selectable:Boolean;// = false
private var format:TextFormat;
private var field:TextField;
private var valid:Boolean;// = true
private static const gutter:Number = 2;
spil_internal static var embedFonts:Boolean = true;
spil_internal static var forceAAType:String = null;
spil_internal static var forceFont:String = null;
public static var alwaysCheckWidth:Boolean = false;
public function TextFieldFit(){
var _local1:Boolean = ((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")));
var _local2:Number = width;
var _local3:Number = height;
if (numChildren > 0){
removeChildAt(0);
};
if (!field){
field = new TextField();
addChild(field);
};
field.border = false;
field.background = false;
field.type = TextFieldType.DYNAMIC;
mouseEnabled = false;
mouseChildren = false;
format = new TextFormat();
embeddedFonts = Font.enumerateFonts(false);
setSize(_local2, _local3);
validate();
if (stage){
addEventListener(Event.RENDER, init);
stage.invalidate();
};
init();
}
private function resizeText(_arg1:Boolean=false):void{
if (!doesTextFit()){
format.size = Object((Number(format.size) - 1));
if (format.size <= 3){
trace("WARNING: Text resised to 3px, either an error occured or the text just wont fit");
return;
};
field.setTextFormat(format);
resizeText(true);
} else {
if (_arg1 == false){
while (doesTextFit()) {
if (format.size <= textSize){
format.size = Object((Number(format.size) + 1));
field.setTextFormat(format);
if (!doesTextFit()){
format.size = Object((Number(format.size) - 1));
field.setTextFormat(format);
break;
};
} else {
break;
};
};
};
};
}
public function set hAlign(_arg1:String):void{
_hAlign = _arg1;
invalidate();
}
public function set bold(_arg1:Boolean):void{
_bold = _arg1;
invalidate();
}
private function init(_arg1:Event=null):void{
removeEventListener(Event.RENDER, init);
updateProperties();
layoutText();
}
private function validate(_arg1:Event=null):void{
updateProperties();
layoutText();
removeEventListener(Event.ENTER_FRAME, validate);
valid = true;
}
public function set glowBlur(_arg1:Number):void{
_glowBlur = _arg1;
invalidate();
}
public function get vAlign():String{
return (_vAlign);
}
public function get italic():Boolean{
return (_italic);
}
public function get textColor():uint{
return (_textColor);
}
private function invalidate():void{
if (valid){
addEventListener(Event.ENTER_FRAME, validate);
if (stage){
stage.invalidate();
};
valid = false;
};
}
public function get text():String{
return (_text);
}
public function get useGlowFilter():Boolean{
return (_useGlowFilter);
}
public function get selectable():Boolean{
return (_selectable);
}
public function set text(_arg1:String):void{
_text = _arg1;
invalidate();
}
public function set embedFonts(_arg1:Boolean):void{
_embedFonts = _arg1;
invalidate();
}
public function set vAlign(_arg1:String):void{
_vAlign = _arg1;
invalidate();
}
public function set italic(_arg1:Boolean):void{
_italic = _arg1;
invalidate();
}
public function get font():String{
return (_font);
}
public function set multiline(_arg1:Boolean):void{
_multiline = _arg1;
invalidate();
}
public function get disableWordwrap():Boolean{
return (_disableWordwrap);
}
public function set textColor(_arg1:uint):void{
_textColor = _arg1;
invalidate();
}
public function get antiAliasType():String{
return (_antiAliasType);
}
private function layoutText():void{
resizeText();
field.height = (field.textHeight + (gutter * 2));
if (vAlign == "top"){
field.y = 0;
} else {
if (vAlign == "middle"){
field.y = ((h - field.height) / 2);
} else {
if (vAlign == "bottom"){
field.y = (h - field.height);
};
};
};
}
public function set glowQuality(_arg1:Number):void{
_glowQuality = _arg1;
invalidate();
}
public function get hAlign():String{
return (_hAlign);
}
public function setSize(_arg1:Number, _arg2:Number):void{
w = _arg1;
h = _arg2;
scaleX = (scaleY = 1);
field.width = w;
field.height = h;
invalidate();
}
public function get bold():Boolean{
return (_bold);
}
public function set gridFitType(_arg1:String):void{
_gridFitType = _arg1;
invalidate();
}
public function set underline(_arg1:Boolean):void{
_underline = _arg1;
invalidate();
}
public function get glowBlur():Number{
return (_glowBlur);
}
public function set useGlowFilter(_arg1:Boolean):void{
_useGlowFilter = _arg1;
invalidate();
}
public function set font(_arg1:String):void{
_font = _arg1;
invalidate();
}
public function set textSize(_arg1:Number):void{
_textSize = _arg1;
sizeChanged = true;
invalidate();
}
public function set selectable(_arg1:Boolean):void{
_selectable = _arg1;
invalidate();
}
public function get multiline():Boolean{
return (_multiline);
}
public function get embedFonts():Boolean{
return (_embedFonts);
}
public function set glowColor(_arg1:uint):void{
_glowColor = _arg1;
invalidate();
}
public function set disableWordwrap(_arg1:Boolean):void{
_disableWordwrap = _arg1;
invalidate();
}
public function get glowQuality():Number{
return (_glowQuality);
}
public function get gridFitType():String{
return (_gridFitType);
}
public function get underline():Boolean{
return (_underline);
}
public function get textSize():Number{
return (_textSize);
}
public function get glowColor():uint{
return (_glowColor);
}
public function set antiAliasType(_arg1:String):void{
_antiAliasType = _arg1;
invalidate();
}
public function set glowStrength(_arg1:Number):void{
_glowStrength = _arg1;
invalidate();
}
protected function updateProperties():void{
var _local1:Boolean;
var _local2:Font;
field.text = _text;
field.multiline = ((((_text.indexOf(" ") < 0)) && ((_text.length < 14)))) ? false : _multiline;
field.wordWrap = ((field.multiline) && (!(_disableWordwrap)));
field.selectable = _selectable;
field.antiAliasType = (forceAAType) ? forceAAType : _antiAliasType;
field.gridFitType = _gridFitType;
embeddedFonts = Font.enumerateFonts(false);
if (((((_embedFonts) && (!((_font == ""))))) && (TextFieldFit.embedFonts))){
_local1 = false;
for each (_local2 in embeddedFonts) {
if (_font == _local2.fontName){
_local1 = true;
break;
};
};
field.embedFonts = _local1;
if (!_local1){
trace(((("WARNING: Embedded font '" + _font) + "' not found, disabling embedding of fonts, text = ") + _text));
};
} else {
field.embedFonts = false;
};
if (TextFieldFit.forceFont){
format.font = TextFieldFit.forceFont;
} else {
if (_font != ""){
format.font = _font;
};
};
if (sizeChanged){
format.size = _textSize;
};
format.color = _textColor;
format.align = _hAlign;
format.bold = _bold;
format.italic = _italic;
format.underline = _underline;
format.leftMargin = 0;
format.rightMargin = 0;
field.setTextFormat(format);
if (_useGlowFilter){
filters = [new GlowFilter(_glowColor, 1, _glowBlur, _glowBlur, _glowStrength, _glowQuality)];
} else {
filters = [];
};
}
private function doesTextFit():Boolean{
if (((((field.textHeight + (gutter * 2)) > h)) || (((((field.textWidth + (gutter * 2)) > w)) && (((!(field.multiline)) || (alwaysCheckWidth))))))){
return (false);
};
return (true);
}
public function get glowStrength():Number{
return (_glowStrength);
}
}
}//package spill.localisation
Section 172
//DeerBitch (DeerBitch)
package {
import flash.display.*;
import com.SexyLegsVFX.DeerBitch.Screens.*;
import com.SexyLegsVFX.System.Global.*;
public class DeerBitch extends Sprite {
public function DeerBitch(){
GlobalVars.nextScreen = SexyLegsGames;
}
}
}//package
Section 173
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package