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 isEmpty():Boolean{
return (_empty);
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
if (((!(isEmpty())) && (isNew()))){
_local1.utmcn = utmcn;
};
if (((!(isEmpty())) && (!(isNew())))){
_local1.utmcr = utmcr;
};
return (_local1);
}
public function isNew():Boolean{
return (_new);
}
public function get utmcn():String{
return ("1");
}
public function get utmcr():String{
return ("1");
}
}
}//package com.google.analytics.campaign
Section 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"
public function CampaignKey(){
UCCN = "utm_campaign";
UCCT = "utm_content";
UCID = "utm_id";
UCMD = "utm_medium";
UCNO = "utm_nooverride";
UCSR = "utm_source";
UCTR = "utm_term";
UGCLID = "gclid";
super();
}
}
}//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 hasNoOverride(_arg1:String):Boolean{
var _local2:CampaignKey;
var _local3:Variables;
var _local4:String;
_local2 = _config.campaignKey;
if (_arg1 == ""){
return (false);
};
_local3 = new Variables(_arg1);
_local4 = "";
if (_local3.hasOwnProperty(_local2.UCNO)){
_local4 = _local3[_local2.UCNO];
switch (_local4){
case "1":
return (true);
case "":
case "0":
default:
return (false);
};
};
return (false);
}
public function getCampaignInformation(_arg1:String, _arg2:Boolean):CampaignInfo{
var _local3:CampaignInfo;
var _local4:CampaignTracker;
var _local5:Boolean;
var _local6:Boolean;
var _local7:int;
var _local8:CampaignTracker;
var _local9:int;
_local3 = new CampaignInfo();
_local5 = false;
_local6 = false;
_local7 = 0;
if (((_config.allowLinker) && (_buffer.isGenuine()))){
if (!_buffer.hasUTMZ()){
return (_local3);
};
};
_local4 = getTrackerFromSearchString(_arg1);
if (isValid(_local4)){
_local6 = hasNoOverride(_arg1);
if (((_local6) && (!(_buffer.hasUTMZ())))){
return (_local3);
};
};
if (!isValid(_local4)){
_local4 = getOrganicCampaign();
if (((!(_buffer.hasUTMZ())) && (isIgnoredKeyword(_local4)))){
return (_local3);
};
};
if (((!(isValid(_local4))) && (_arg2))){
_local4 = getReferrerCampaign();
if (((!(_buffer.hasUTMZ())) && (isIgnoredReferral(_local4)))){
return (_local3);
};
};
if (!isValid(_local4)){
if (((!(_buffer.hasUTMZ())) && (_arg2))){
_local4 = getDirectCampaign();
};
};
if (!isValid(_local4)){
return (_local3);
};
if (((_buffer.hasUTMZ()) && (!(_buffer.utmz.isEmpty())))){
_local8 = new CampaignTracker();
_local8.fromTrackerString(_buffer.utmz.campaignTracking);
_local5 = (_local8.toTrackerString() == _local4.toTrackerString());
_local7 = _buffer.utmz.responseCount;
};
if (((!(_local5)) || (_arg2))){
_local9 = _buffer.utma.sessionCount;
_local7++;
if (_local9 == 0){
_local9 = 1;
};
_buffer.utmz.domainHash = _domainHash;
_buffer.utmz.campaignCreation = _timeStamp;
_buffer.utmz.campaignSessions = _local9;
_buffer.utmz.responseCount = _local7;
_buffer.utmz.campaignTracking = _local4.toTrackerString();
_debug.info(_buffer.utmz.toString(), VisualDebugMode.geek);
_local3 = new CampaignInfo(false, true);
} else {
_local3 = new CampaignInfo(false, false);
};
return (_local3);
}
public function isValid(_arg1:CampaignTracker):Boolean{
if (((_arg1) && (_arg1.isValid()))){
return (true);
};
return (false);
}
public function getTrackerFromSearchString(_arg1:String):CampaignTracker{
var _local2:CampaignTracker;
var _local3:CampaignTracker;
var _local4:CampaignKey;
var _local5:Variables;
_local2 = getOrganicCampaign();
_local3 = new CampaignTracker();
_local4 = _config.campaignKey;
if (_arg1 == ""){
return (_local3);
};
_local5 = new Variables(_arg1);
if (_local5.hasOwnProperty(_local4.UCID)){
_local3.id = _local5[_local4.UCID];
};
if (_local5.hasOwnProperty(_local4.UCSR)){
_local3.source = _local5[_local4.UCSR];
};
if (_local5.hasOwnProperty(_local4.UGCLID)){
_local3.clickId = _local5[_local4.UGCLID];
};
if (_local5.hasOwnProperty(_local4.UCCN)){
_local3.name = _local5[_local4.UCCN];
} else {
_local3.name = "(not set)";
};
if (_local5.hasOwnProperty(_local4.UCMD)){
_local3.medium = _local5[_local4.UCMD];
} else {
_local3.medium = "(not set)";
};
if (_local5.hasOwnProperty(_local4.UCTR)){
_local3.term = _local5[_local4.UCTR];
} else {
if (((_local2) && (!((_local2.term == ""))))){
_local3.term = _local2.term;
};
};
if (_local5.hasOwnProperty(_local4.UCCT)){
_local3.content = _local5[_local4.UCCT];
};
return (_local3);
}
public function getOrganicCampaign():CampaignTracker{
var _local1:CampaignTracker;
var _local2:URL;
var _local3:String;
var _local4:Array;
var _local5:OrganicReferrer;
var _local6:String;
if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){
return (_local1);
};
_local2 = new URL(_referrer);
_local3 = "";
if (_local2.hostName != ""){
if (_local2.hostName.indexOf(".") > -1){
_local4 = _local2.hostName.split(".");
switch (_local4.length){
case 2:
_local3 = _local4[0];
break;
case 3:
_local3 = _local4[1];
break;
};
};
};
if (_config.organic.match(_local3)){
_local5 = _config.organic.getReferrerByName(_local3);
_local6 = _config.organic.getKeywordValue(_local5, _local2.search);
_local1 = new CampaignTracker();
_local1.source = _local5.engine;
_local1.name = "(organic)";
_local1.medium = "organic";
_local1.term = _local6;
};
return (_local1);
}
public function isIgnoredReferral(_arg1:CampaignTracker):Boolean{
if (((_arg1) && ((_arg1.medium == "referral")))){
return (_config.organic.isIgnoredReferral(_arg1.source));
};
return (false);
}
public function getDirectCampaign():CampaignTracker{
var _local1:CampaignTracker;
_local1 = new CampaignTracker();
_local1.source = "(direct)";
_local1.name = "(direct)";
_local1.medium = "(none)";
return (_local1);
}
public function isIgnoredKeyword(_arg1:CampaignTracker):Boolean{
if (((_arg1) && ((_arg1.medium == "organic")))){
return (_config.organic.isIgnoredKeyword(_arg1.term));
};
return (false);
}
public function getReferrerCampaign():CampaignTracker{
var _local1:CampaignTracker;
var _local2:URL;
var _local3:String;
var _local4:String;
if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){
return (_local1);
};
_local2 = new URL(_referrer);
_local3 = _local2.hostName;
_local4 = _local2.path;
if (_local3.indexOf("www.") == 0){
_local3 = _local3.substr(4);
};
_local1 = new CampaignTracker();
_local1.source = _local3;
_local1.name = "(referral)";
_local1.medium = "referral";
_local1.content = _local4;
return (_local1);
}
public static function isInvalidReferrer(_arg1:String):Boolean{
var _local2:URL;
if ((((((_arg1 == "")) || ((_arg1 == "-")))) || ((_arg1 == "0")))){
return (true);
};
if (_arg1.indexOf("://") > -1){
_local2 = new URL(_arg1);
if ((((_local2.protocol == Protocols.file)) || ((_local2.protocol == Protocols.none)))){
return (true);
};
};
return (false);
}
public static function isFromGoogleCSE(_arg1:String, _arg2:Configuration):Boolean{
var _local3:URL;
_local3 = new URL(_arg1);
if (_local3.hostName.indexOf(_arg2.google) > -1){
if (_local3.search.indexOf((_arg2.googleSearchParam + "=")) > -1){
if (_local3.path == ("/" + _arg2.googleCsePath)){
return (true);
};
};
};
return (false);
}
}
}//package com.google.analytics.campaign
Section 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 id:String;
public var clickId:String;
public var name:String;
public var term:String;
public var medium:String;
public var source: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 toTrackerString():String{
var _local1:Array;
_local1 = [];
_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));
}
public function isValid():Boolean{
if (((((!((id == ""))) || (!((source == ""))))) || (!((clickId == ""))))){
return (true);
};
return (false);
}
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;
var _local3:Variables;
_local2 = _arg1.split(CampaignManager.trackingDelimiter).join("&");
_local3 = 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
//FlashTracker (com.google.analytics.components.FlashTracker)
package com.google.analytics.components {
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import com.google.analytics.utils.*;
import flash.events.*;
import flash.display.*;
import com.google.analytics.external.*;
import com.google.analytics.*;
import flash.utils.*;
import com.google.analytics.events.*;
public class FlashTracker extends Sprite implements AnalyticsTracker {
private var _adSense:AdSenseGlobals;
private var _env:Environment;
protected var _height:Number;// = 18
private var _idleTimer:IdleTimer;
private var _config:Configuration;
private var _mode:String;// = "AS3"
private var _dom:HTMLDOM;
private var _ready:Boolean;// = false
protected var _width:Number;// = 18
private var _account:String;// = ""
protected var _componentInspectorSetting:Boolean;
private var _visualDebug:Boolean;// = false
public var boundingBox_mc:DisplayObject;
private var _debug:DebugConfiguration;
private var _buffer:Buffer;
private var _display:DisplayObject;
protected var livePreviewHeight:Number;
private var _jsproxy:JavascriptProxy;
protected var isLivePreview:Boolean;
protected var preview:MovieClip;
private var _gifRequest:GIFRequest;
protected var livePreviewWidth:Number;
private var _tracker:GoogleAnalyticsAPI;
public static var version:Version = API.version;
public function FlashTracker(){
_ready = false;
_account = "";
_mode = TrackerMode.AS3;
_visualDebug = false;
_width = 18;
_height = 18;
super();
_tracker = new TrackerCache();
isLivePreview = _checkLivePreview();
_componentInspectorSetting = false;
if (boundingBox_mc){
boundingBox_mc.visible = false;
removeChild(boundingBox_mc);
boundingBox_mc = null;
};
if (isLivePreview){
_createLivePreview();
};
addEventListener(Event.ENTER_FRAME, _factory);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
return (_tracker.trackEvent(_arg1, _arg2, _arg3, _arg4));
}
public function trackTrans():void{
_tracker.trackTrans();
}
private function _createLivePreview():void{
var _local1:Graphics;
var _local2:Class;
preview = new MovieClip();
_local1 = preview.graphics;
_local1.beginFill(0xFFFFFF);
_local1.moveTo(0, 0);
_local1.lineTo(0, _width);
_local1.lineTo(_width, _height);
_local1.lineTo(_height, 0);
_local1.lineTo(0, 0);
_local1.endFill();
_local2 = (getDefinitionByName("com.google.analytics.components::Icon") as Class);
preview.icon_mc = new (_local2);
preview.icon_mc.name = "icon_mc";
preview.addChild(preview.icon_mc);
addChild(preview);
}
public function trackPageview(_arg1:String=""):void{
_tracker.trackPageview(_arg1);
}
public function get account():String{
return (_account);
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_tracker.linkByPost(_arg1, _arg2);
}
public function getDetectTitle():Boolean{
return (_tracker.getDetectTitle());
}
public function setCampNameKey(_arg1:String):void{
_tracker.setCampNameKey(_arg1);
}
public function resetSession():void{
_tracker.resetSession();
}
public function set account(_arg1:String):void{
_account = _arg1;
}
public function get debug():DebugConfiguration{
if (!_debug){
_createDebugAndConfig();
};
return (_debug);
}
public function createEventTracker(_arg1:String):EventTracker{
return (_tracker.createEventTracker(_arg1));
}
public function set config(_arg1:Configuration):void{
_config = _arg1;
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
return (_tracker.addTrans(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8));
}
public function setLocalServerMode():void{
_tracker.setLocalServerMode();
}
public function getLocalGifPath():String{
return (_tracker.getLocalGifPath());
}
public function clearIgnoredRef():void{
_tracker.clearIgnoredRef();
}
public function isReady():Boolean{
return (_ready);
}
public function set debug(_arg1:DebugConfiguration):void{
_debug = _arg1;
}
public function getVersion():String{
return (_tracker.getVersion());
}
public function setLocalRemoteServerMode():void{
_tracker.setLocalRemoteServerMode();
}
public function setCampNOKey(_arg1:String):void{
_tracker.setCampNOKey(_arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
_tracker.addIgnoredOrganic(_arg1);
}
public function setCookiePath(_arg1:String):void{
_tracker.setCookiePath(_arg1);
}
public function setCampTermKey(_arg1:String):void{
_tracker.setCampTermKey(_arg1);
}
private function _trackerFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (AS3) v" + version) + "\naccount: ") + account));
_adSense = new AdSenseGlobals(debug);
_dom = new HTMLDOM(debug);
_dom.cacheProperties();
_env = new Environment("", "", "", debug, _dom);
_buffer = new Buffer(config, debug, false);
_gifRequest = new GIFRequest(config, debug, _buffer, _env);
_idleTimer = new IdleTimer(config, debug, _display, _buffer);
_env.url = _display.stage.loaderInfo.url;
return (new Tracker(account, config, debug, _env, _buffer, _gifRequest, _adSense));
}
public function setCampaignTrack(_arg1:Boolean):void{
_tracker.setCampaignTrack(_arg1);
}
public function getServiceMode():ServerOperationMode{
return (_tracker.getServiceMode());
}
public function set componentInspectorSetting(_arg1:Boolean):void{
_componentInspectorSetting = _arg1;
}
public function setSessionTimeout(_arg1:int):void{
_tracker.setSessionTimeout(_arg1);
}
public function setRemoteServerMode():void{
_tracker.setRemoteServerMode();
}
public function get visualDebug():Boolean{
return (_visualDebug);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_tracker.addOrganic(_arg1, _arg2);
}
public function setCookieTimeout(_arg1:int):void{
_tracker.setCookieTimeout(_arg1);
}
public function getClientInfo():Boolean{
return (_tracker.getClientInfo());
}
public function setAllowLinker(_arg1:Boolean):void{
_tracker.setAllowLinker(_arg1);
}
public function setClientInfo(_arg1:Boolean):void{
_tracker.setClientInfo(_arg1);
}
private function _bridgeFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (Bridge) v" + version) + "\naccount: ") + account));
return (new Bridge(account, _debug, _jsproxy));
}
public function get config():Configuration{
if (!_config){
_createDebugAndConfig();
};
return (_config);
}
public function set mode(_arg1:String):void{
_mode = _arg1;
}
public function setDetectFlash(_arg1:Boolean):void{
_tracker.setDetectFlash(_arg1);
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_tracker.addItem(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public function setVar(_arg1:String):void{
_tracker.setVar(_arg1);
}
public function clearIgnoredOrganic():void{
_tracker.clearIgnoredOrganic();
}
public function setDomainName(_arg1:String):void{
_tracker.setDomainName(_arg1);
}
private function _checkLivePreview():Boolean{
if (((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")))){
return (true);
};
return (false);
}
public function setCampSourceKey(_arg1:String):void{
_tracker.setCampSourceKey(_arg1);
}
public function setCampContentKey(_arg1:String):void{
_tracker.setCampContentKey(_arg1);
}
public function setSize(_arg1:Number, _arg2:Number):void{
}
public function setAllowAnchor(_arg1:Boolean):void{
_tracker.setAllowAnchor(_arg1);
}
public function setLocalGifPath(_arg1:String):void{
_tracker.setLocalGifPath(_arg1);
}
public function get mode():String{
return (_mode);
}
public function setSampleRate(_arg1:Number):void{
_tracker.setSampleRate(_arg1);
}
public function setAllowHash(_arg1:Boolean):void{
_tracker.setAllowHash(_arg1);
}
public function setDetectTitle(_arg1:Boolean):void{
_tracker.setDetectTitle(_arg1);
}
public function cookiePathCopy(_arg1:String):void{
_tracker.cookiePathCopy(_arg1);
}
private function _factory(_arg1:Event):void{
var _local2:GoogleAnalyticsAPI;
var _local3:TrackerCache;
removeEventListener(Event.ENTER_FRAME, _factory);
if (isLivePreview){
return;
};
_display = this;
_createDebugAndConfig();
if (visualDebug){
debug.layout = new Layout(debug, _display);
debug.active = visualDebug;
};
_jsproxy = new JavascriptProxy(debug);
_local3 = (_tracker as TrackerCache);
switch (mode){
case TrackerMode.BRIDGE:
_local2 = _bridgeFactory();
break;
case TrackerMode.AS3:
default:
_local2 = _trackerFactory();
};
if (!_local3.isEmpty()){
_local3.tracker = _local2;
_local3.flush();
};
_tracker = _local2;
_ready = true;
dispatchEvent(new AnalyticsEvent(AnalyticsEvent.READY, this));
}
public function getDetectFlash():Boolean{
return (_tracker.getDetectFlash());
}
public function clearOrganic():void{
_tracker.clearOrganic();
}
private function _createDebugAndConfig():void{
if (!_debug){
this.debug = new DebugConfiguration();
};
if (!_config){
this.config = new Configuration(debug);
};
}
public function addIgnoredRef(_arg1:String):void{
_tracker.addIgnoredRef(_arg1);
}
public function set visualDebug(_arg1:Boolean):void{
_visualDebug = _arg1;
}
public function setCampMediumKey(_arg1:String):void{
_tracker.setCampMediumKey(_arg1);
}
public function getAccount():String{
return (_tracker.getAccount());
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_tracker.link(_arg1, _arg2);
}
}
var _local1:* = ServerOperationMode;
return (_local1);
}//package com.google.analytics.components
Section 6
//Icon (com.google.analytics.components.Icon)
package com.google.analytics.components {
import flash.display.*;
public dynamic class Icon extends MovieClip {
}
}//package com.google.analytics.components
Section 7
//BrowserInfo (com.google.analytics.core.BrowserInfo)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.utils.*;
public class BrowserInfo {
private var _config:Configuration;
private var _info:Environment;
public function BrowserInfo(_arg1:Configuration, _arg2:Environment){
_config = _arg1;
_info = _arg2;
}
public function get utmul():String{
return (_info.language.toLowerCase());
}
public function get utmje():String{
return ("0");
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
public function get utmsr():String{
return (((_info.screenWidth + "x") + _info.screenHeight));
}
public function get utmcs():String{
return (_info.languageEncoding);
}
public function get utmfl():String{
var _local1:Version;
if (_config.detectFlash){
_local1 = _info.flashVersion;
return (((((_local1.major + ".") + _local1.minor) + " r") + _local1.build));
};
return ("-");
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
_local1.utmcs = utmcs;
_local1.utmsr = utmsr;
_local1.utmsc = utmsc;
_local1.utmul = utmul;
_local1.utmje = utmje;
_local1.utmfl = utmfl;
return (_local1);
}
public function get utmsc():String{
return ((_info.screenColorDepth + "-bit"));
}
}
}//package com.google.analytics.core
Section 8
//Buffer (com.google.analytics.core.Buffer)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.net.*;
import flash.events.*;
import com.google.analytics.data.*;
public dynamic class Buffer {
private var _SO:SharedObject;
private var _OBJ:Object;
private var _utma:UTMA;
private var _utmb:UTMB;
private var _utmc:UTMC;
private var _debug:DebugConfiguration;
private var _utmk:UTMK;
private var _config:Configuration;
private var _utmv:UTMV;
private var _utmz:UTMZ;
private var _volatile:Boolean;
public function Buffer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Boolean=false, _arg4:Object=null){
var _local5:Boolean;
var _local6:String;
super();
_config = _arg1;
_debug = _arg2;
UTMB.defaultTimespan = _config.sessionTimeout;
UTMZ.defaultTimespan = _config.conversionTimeout;
if (!_arg3){
_SO = SharedObject.getLocal(_config.cookieName, _config.cookiePath);
_local5 = false;
if (_SO.data.utma){
if (!hasUTMA()){
_createUMTA();
};
_utma.fromSharedObject(_SO.data.utma);
if (_debug.verbose){
_debug.info(("found: " + _utma.toString(true)), VisualDebugMode.geek);
};
if (_utma.isExpired()){
if (_debug.verbose){
_debug.warning("UTMA has expired", VisualDebugMode.advanced);
};
_clearUTMA();
_local5 = true;
};
};
if (_SO.data.utmb){
if (!hasUTMB()){
_createUMTB();
};
_utmb.fromSharedObject(_SO.data.utmb);
if (_debug.verbose){
_debug.info(("found: " + _utmb.toString(true)), VisualDebugMode.geek);
};
if (_utmb.isExpired()){
if (_debug.verbose){
_debug.warning("UTMB has expired", VisualDebugMode.advanced);
};
_clearUTMB();
_local5 = true;
};
};
if (_SO.data.utmc){
delete _SO.data.utmc;
_local5 = true;
};
if (_SO.data.utmk){
if (!hasUTMK()){
_createUMTK();
};
_utmk.fromSharedObject(_SO.data.utmk);
if (_debug.verbose){
_debug.info(("found: " + _utmk.toString()), VisualDebugMode.geek);
};
};
if (_SO.data.utmv){
if (!hasUTMV()){
_createUMTV();
};
_utmv.fromSharedObject(_SO.data.utmv);
if (_debug.verbose){
_debug.info(("found: " + _utmv.toString(true)), VisualDebugMode.geek);
};
if (_utmv.isExpired()){
if (_debug.verbose){
_debug.warning("UTMV has expired", VisualDebugMode.advanced);
};
_clearUTMV();
_local5 = true;
};
};
if (_SO.data.utmz){
if (!hasUTMZ()){
_createUMTZ();
};
_utmz.fromSharedObject(_SO.data.utmz);
if (_debug.verbose){
_debug.info(("found: " + _utmz.toString(true)), VisualDebugMode.geek);
};
if (_utmz.isExpired()){
if (_debug.verbose){
_debug.warning("UTMZ has expired", VisualDebugMode.advanced);
};
_clearUTMZ();
_local5 = true;
};
};
if (_local5){
save();
};
} else {
_OBJ = new Object();
if (_arg4){
for (_local6 in _arg4) {
_OBJ[_local6] = _arg4[_local6];
};
};
};
_volatile = _arg3;
}
public function 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 clearCookies():void{
utma.reset();
utmb.reset();
utmc.reset();
utmz.reset();
utmv.reset();
utmk.reset();
}
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 isGenuine():Boolean{
if (!hasUTMK()){
return (true);
};
return ((utmk.hash == generateCookiesHash()));
}
public function resetCurrentSession():void{
_clearUTMB();
_clearUTMC();
save();
}
public function hasUTMC():Boolean{
if (_utmc){
return (true);
};
return (false);
}
public function hasUTMK():Boolean{
if (_utmk){
return (true);
};
return (false);
}
public function generateCookiesHash():Number{
var _local1:String;
_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 _createUMTA():void{
_utma = new UTMA();
_utma.proxy = this;
}
private function _createUMTB():void{
_utmb = new UTMB();
_utmb.proxy = this;
}
private function _createUMTC():void{
_utmc = new UTMC();
}
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 _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 _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 _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 9
//DocumentInfo (com.google.analytics.core.DocumentInfo)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.utils.*;
import com.google.analytics.external.*;
public class DocumentInfo {
private var _config:Configuration;
private var _utmr:String;
private var _adSense:AdSenseGlobals;
private var _info:Environment;
private var _pageURL:String;
public function DocumentInfo(_arg1:Configuration, _arg2:Environment, _arg3:String, _arg4:String=null, _arg5:AdSenseGlobals=null){
_config = _arg1;
_info = _arg2;
_utmr = _arg3;
_pageURL = _arg4;
_adSense = _arg5;
}
public function get utmr():String{
if (!_utmr){
return ("-");
};
return (_utmr);
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
private function _renderPageURL(_arg1:String=""):String{
var _local2:String;
var _local3:String;
_local2 = _info.locationPath;
_local3 = _info.locationSearch;
if (((!(_arg1)) || ((_arg1 == "")))){
_arg1 = (_local2 + unescape(_local3));
};
return (_arg1);
}
public function get utmp():String{
return (_renderPageURL(_pageURL));
}
private function _generateHitId():Number{
var _local1:Number;
if (((_adSense.hid) && (!((_adSense.hid == ""))))){
_local1 = Number(_adSense.hid);
} else {
_local1 = Math.round((Math.random() * 2147483647));
_adSense.hid = String(_local1);
};
return (_local1);
}
public function get utmhid():String{
return (String(_generateHitId()));
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
if (((_config.detectTitle) && (!((utmdt == ""))))){
_local1.utmdt = utmdt;
};
_local1.utmhid = utmhid;
_local1.utmr = utmr;
_local1.utmp = utmp;
return (_local1);
}
public function get utmdt():String{
return (_info.documentTitle);
}
}
}//package com.google.analytics.core
Section 10
//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 _name:String;
private var _debug:DebugConfiguration;
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 11
//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 12
//EventInfo (com.google.analytics.core.EventInfo)
package com.google.analytics.core {
import com.google.analytics.utils.*;
import com.google.analytics.data.*;
public class EventInfo {
private var _isEventHit:Boolean;
private var _ext10:X10;
private var _x10:X10;
public function EventInfo(_arg1:Boolean, _arg2:X10, _arg3:X10=null){
_isEventHit = _arg1;
_x10 = _arg2;
_ext10 = _arg3;
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
public function get utmt():String{
return ("event");
}
public function get utme():String{
return (_x10.renderMergedUrlString(_ext10));
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
if (_isEventHit){
_local1.utmt = utmt;
};
_local1.utme = utme;
return (_local1);
}
}
}//package com.google.analytics.core
Section 13
//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 14
//ga_internal (com.google.analytics.core.ga_internal)
package com.google.analytics.core {
public namespace ga_internal;
}//package com.google.analytics.core
Section 15
//GIFRequest (com.google.analytics.core.GIFRequest)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.net.*;
import com.google.analytics.utils.*;
import flash.events.*;
import flash.display.*;
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;
var _local3:String;
var _local4:String;
_local2 = _lastRequest.url;
_local3 = String((_requests.length - 1));
_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;
_local1 = [];
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 loader:Loader;
var context:LoaderContext;
var request = _arg1;
loader = new Loader();
loader.name = String(_count++);
context = 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 _local1:Number;
var _local2:Number;
_local1 = 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);
};
};
}
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);
}
public function get utmhn():String{
return (_info.domainName);
}
private function _debugSend(_arg1:URLRequest):void{
var _local2:String;
var _local3:String;
_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;
var _local3:String;
var _local4:String;
_local2 = _arg1.target.loader.name;
_requests[_local2].complete();
_local3 = (("Gif Request #" + _local2) + " sent");
_local4 = _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 16
//IdleTimer (com.google.analytics.core.IdleTimer)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class IdleTimer {
private var _loop:Timer;
private var _stage:Stage;
private var _lastMove:int;
private var _debug:DebugConfiguration;
private var _session:Timer;
private var _inactivity:Number;
private var _buffer:Buffer;
public function IdleTimer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:DisplayObject, _arg4:Buffer){
var _local5:Number;
var _local6:Number;
var _local7:Number;
super();
_local5 = _arg1.idleLoop;
_local6 = _arg1.idleTimeout;
_local7 = _arg1.sessionTimeout;
_loop = new Timer((_local5 * 1000));
_session = new Timer((_local7 * 1000), 1);
_debug = _arg2;
_stage = _arg3.stage;
_buffer = _arg4;
_lastMove = getTimer();
_inactivity = (_local6 * 1000);
_loop.addEventListener(TimerEvent.TIMER, checkForIdle);
_session.addEventListener(TimerEvent.TIMER_COMPLETE, endSession);
_stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
_debug.info(((((("delay: " + _local5) + "sec , inactivity: ") + _local6) + "sec, sessionTimeout: ") + _local7), VisualDebugMode.geek);
_loop.start();
}
private function onMouseMove(_arg1:MouseEvent):void{
_lastMove = getTimer();
if (_session.running){
_debug.info("session timer reset", VisualDebugMode.geek);
_session.reset();
};
}
public function endSession(_arg1:TimerEvent):void{
_session.removeEventListener(TimerEvent.TIMER_COMPLETE, endSession);
_debug.info("session timer end session", VisualDebugMode.geek);
_session.reset();
_buffer.resetCurrentSession();
_debug.info(_buffer.utmb.toString(), VisualDebugMode.geek);
_debug.info(_buffer.utmc.toString(), VisualDebugMode.geek);
_session.addEventListener(TimerEvent.TIMER_COMPLETE, endSession);
}
public function checkForIdle(_arg1:TimerEvent):void{
var _local2:int;
_local2 = getTimer();
if ((_local2 - _lastMove) >= _inactivity){
if (!_session.running){
_debug.info("session timer start", VisualDebugMode.geek);
_session.start();
};
};
}
}
}//package com.google.analytics.core
Section 17
//Organic (com.google.analytics.core.Organic)
package com.google.analytics.core {
import com.google.analytics.utils.*;
public class Organic {
private var _sourcesCache:Array;
private var _sourcesEngine:Array;
private var _ignoredKeywords:Array;
private var _ignoredReferralsCache:Object;
private var _ignoredReferrals:Array;
private var _ignoredKeywordsCache:Object;
private var _sources:Array;
public static var throwErrors:Boolean = false;
public function Organic(){
_sources = [];
_sourcesCache = [];
_sourcesEngine = [];
_ignoredReferrals = [];
_ignoredReferralsCache = {};
_ignoredKeywords = [];
_ignoredKeywordsCache = {};
}
public function getKeywordValue(_arg1:OrganicReferrer, _arg2:String):String{
var _local3:String;
_local3 = _arg1.keyword;
return (getKeywordValueFromPath(_local3, _arg2));
}
public function isIgnoredKeyword(_arg1:String):Boolean{
if (_ignoredKeywordsCache.hasOwnProperty(_arg1)){
return (true);
};
return (false);
}
public function isIgnoredReferral(_arg1:String):Boolean{
if (_ignoredReferralsCache.hasOwnProperty(_arg1)){
return (true);
};
return (false);
}
public function clear():void{
clearEngines();
clearIgnoredReferrals();
clearIgnoredKeywords();
}
public function get ignoredKeywordsCount():int{
return (_ignoredKeywords.length);
}
public function match(_arg1:String):Boolean{
if (_arg1 == ""){
return (false);
};
_arg1 = _arg1.toLowerCase();
if (_sourcesEngine[_arg1] != undefined){
return (true);
};
return (false);
}
public function get count():int{
return (_sources.length);
}
public function addSource(_arg1:String, _arg2:String):void{
var _local3:OrganicReferrer;
_local3 = new OrganicReferrer(_arg1, _arg2);
if (_sourcesCache[_local3.toString()] == undefined){
_sources.push(_local3);
_sourcesCache[_local3.toString()] = (_sources.length - 1);
if (_sourcesEngine[_local3.engine] == undefined){
_sourcesEngine[_local3.engine] = [(_sources.length - 1)];
} else {
_sourcesEngine[_local3.engine].push((_sources.length - 1));
};
} else {
if (throwErrors){
throw (new Error((_local3.toString() + " already exists, we don't add it.")));
};
};
}
public function clearIgnoredKeywords():void{
_ignoredKeywords = [];
_ignoredKeywordsCache = {};
}
public function clearEngines():void{
_sources = [];
_sourcesCache = [];
_sourcesEngine = [];
}
public function get ignoredReferralsCount():int{
return (_ignoredReferrals.length);
}
public function addIgnoredReferral(_arg1:String):void{
if (_ignoredReferralsCache[_arg1] == undefined){
_ignoredReferrals.push(_arg1);
_ignoredReferralsCache[_arg1] = (_ignoredReferrals.length - 1);
} else {
if (throwErrors){
throw (new Error((("\"" + _arg1) + "\" already exists, we don't add it.")));
};
};
}
public function clearIgnoredReferrals():void{
_ignoredReferrals = [];
_ignoredReferralsCache = {};
}
public function getReferrerByName(_arg1:String):OrganicReferrer{
var _local2:int;
if (match(_arg1)){
_local2 = _sourcesEngine[_arg1][0];
return (_sources[_local2]);
};
return (null);
}
public function addIgnoredKeyword(_arg1:String):void{
if (_ignoredKeywordsCache[_arg1] == undefined){
_ignoredKeywords.push(_arg1);
_ignoredKeywordsCache[_arg1] = (_ignoredKeywords.length - 1);
} else {
if (throwErrors){
throw (new Error((("\"" + _arg1) + "\" already exists, we don't add it.")));
};
};
}
public function get sources():Array{
return (_sources);
}
public static function getKeywordValueFromPath(_arg1:String, _arg2:String):String{
var _local3:String;
var _local4:Variables;
if (_arg2.indexOf((_arg1 + "=")) > -1){
if (_arg2.charAt(0) == "?"){
_arg2 = _arg2.substr(1);
};
_arg2 = _arg2.split("+").join("%20");
_local4 = new Variables(_arg2);
_local3 = _local4[_arg1];
};
return (_local3);
}
}
}//package com.google.analytics.core
Section 18
//OrganicReferrer (com.google.analytics.core.OrganicReferrer)
package com.google.analytics.core {
public class OrganicReferrer {
private var _engine:String;
private var _keyword:String;
public function OrganicReferrer(_arg1:String, _arg2:String){
this.engine = _arg1;
this.keyword = _arg2;
}
public function set engine(_arg1:String):void{
_engine = _arg1.toLowerCase();
}
public function get keyword():String{
return (_keyword);
}
public function toString():String{
return (((engine + "?") + keyword));
}
public function get engine():String{
return (_engine);
}
public function set keyword(_arg1:String):void{
_keyword = _arg1.toLowerCase();
}
}
}//package com.google.analytics.core
Section 19
//RequestObject (com.google.analytics.core.RequestObject)
package com.google.analytics.core {
import flash.net.*;
import flash.utils.*;
public class RequestObject {
public var start:int;
public var request:URLRequest;
public var end:int;
public function RequestObject(_arg1:URLRequest){
start = getTimer();
this.request = _arg1;
}
public function toString():String{
var _local1:Array;
_local1 = [];
_local1.push((("duration: " + duration) + "ms"));
_local1.push(("url: " + request.url));
return ((("{ " + _local1.join(", ")) + " }"));
}
public function get duration():int{
if (!hasCompleted()){
return (0);
};
return ((end - start));
}
public function hasCompleted():Boolean{
return ((end > 0));
}
public function complete():void{
end = getTimer();
}
}
}//package com.google.analytics.core
Section 20
//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 21
//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 trackTrans():void{
enqueue("trackTrans");
}
public function trackPageview(_arg1:String=""):void{
enqueue("trackPageview", _arg1);
}
public function setClientInfo(_arg1:Boolean):void{
enqueue("setClientInfo", _arg1);
}
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 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 resetSession():void{
enqueue("resetSession");
}
public function setDetectFlash(_arg1:Boolean):void{
enqueue("setDetectFlash", _arg1);
}
public function clear():void{
_ar = [];
}
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 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 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 setCampSourceKey(_arg1:String):void{
enqueue("setCampSourceKey", _arg1);
}
public function setCampContentKey(_arg1:String):void{
enqueue("setCampContentKey", _arg1);
}
public function clearIgnoredRef():void{
enqueue("clearIgnoredRef");
}
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 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 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 setDetectTitle(_arg1:Boolean):void{
enqueue("setDetectTitle", _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 22
//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 23
//Utils (com.google.analytics.core.Utils)
package com.google.analytics.core {
public class Utils {
public static function trim(_arg1:String, _arg2:Boolean=false):String{
var _local3:Array;
var _local4:String;
var _local5:int;
var _local6:int;
var _local7:int;
if (_arg1 == ""){
return ("");
};
_local3 = [" ", "\n", "\r", "\t"];
_local4 = _arg1;
if (_arg2){
_local5 = 0;
while ((((_local5 < _local3.length)) && ((_local4.indexOf(_local3[_local5]) > -1)))) {
_local4 = _local4.split(_local3[_local5]).join("");
_local5++;
};
} else {
_local6 = 0;
while ((((_local6 < _local4.length)) && ((_local3.indexOf(_local4.charAt(_local6)) > -1)))) {
_local6++;
};
_local4 = _local4.substr(_local6);
_local7 = (_local4.length - 1);
while ((((_local7 >= 0)) && ((_local3.indexOf(_local4.charAt(_local7)) > -1)))) {
_local7--;
};
_local4 = _local4.substring(0, (_local7 + 1));
};
return (_local4);
}
public static function generateHash(_arg1:String):int{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = 1;
_local3 = 0;
if (((!((_arg1 == null))) && (!((_arg1 == ""))))){
_local2 = 0;
_local4 = (_arg1.length - 1);
while (_local4 >= 0) {
_local5 = _arg1.charCodeAt(_local4);
_local2 = ((((_local2 << 6) & 268435455) + _local5) + (_local5 << 14));
_local3 = (_local2 & 266338304);
if (_local3 != 0){
_local2 = (_local2 ^ (_local3 >> 21));
};
_local4--;
};
};
return (_local2);
}
public static function generate32bitRandom():int{
return (Math.round((Math.random() * 2147483647)));
}
public static function validateAccount(_arg1:String):Boolean{
var _local2:RegExp;
_local2 = /^UA-[0-9]*-[0-9]*$/;
return (_local2.test(_arg1));
}
}
}//package com.google.analytics.core
Section 24
//Cookie (com.google.analytics.data.Cookie)
package com.google.analytics.data {
public interface Cookie {
function toURLString():String;
function toSharedObject():Object;
function set creation(_arg1:Date):void;
function fromSharedObject(_arg1:Object):void;
function get expiration():Date;
function isExpired():Boolean;
function set expiration(_arg1:Date):void;
function get creation():Date;
}
}//package com.google.analytics.data
Section 25
//UTMA (com.google.analytics.data.UTMA)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMA extends UTMCookie {
private var _domainHash:Number;
private var _firstTime:Number;
private var _currentTime:Number;
private var _sessionId: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 get sessionCount():Number{
return (_sessionCount);
}
public function get firstTime():Number{
return (_firstTime);
}
public function set sessionId(_arg1:Number):void{
_sessionId = _arg1;
update();
}
public function set sessionCount(_arg1:Number):void{
_sessionCount = _arg1;
update();
}
public function set firstTime(_arg1:Number):void{
_firstTime = _arg1;
update();
}
public function set currentTime(_arg1:Number):void{
_currentTime = _arg1;
update();
}
public function get sessionId():Number{
return (_sessionId);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function get currentTime():Number{
return (_currentTime);
}
public function get domainHash():Number{
return (_domainHash);
}
}
}//package com.google.analytics.data
Section 26
//UTMB (com.google.analytics.data.UTMB)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMB extends UTMCookie {
private var _lastTime:Number;
private var _domainHash:Number;
private var _trackCount: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 get token():Number{
return (_token);
}
public function set trackCount(_arg1:Number):void{
_trackCount = _arg1;
update();
}
public function set lastTime(_arg1:Number):void{
_lastTime = _arg1;
update();
}
public function get lastTime():Number{
return (_lastTime);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function get domainHash():Number{
return (_domainHash);
}
public function set token(_arg1:Number):void{
_token = _arg1;
update();
}
public function get trackCount():Number{
return (_trackCount);
}
}
}//package com.google.analytics.data
Section 27
//UTMC (com.google.analytics.data.UTMC)
package com.google.analytics.data {
public class UTMC extends UTMCookie {
private var _domainHash:Number;
public function UTMC(_arg1:Number=NaN){
super("utmc", "__utmc", ["domainHash"]);
this.domainHash = _arg1;
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function get domainHash():Number{
return (_domainHash);
}
}
}//package com.google.analytics.data
Section 28
//UTMCookie (com.google.analytics.data.UTMCookie)
package com.google.analytics.data {
import com.google.analytics.core.*;
public class UTMCookie implements Cookie {
protected var inURL:String;
protected var name:String;
private var _creation:Date;
private var _expiration:Date;
public var proxy:Buffer;
private var _timespan:Number;
protected var fields:Array;
public function UTMCookie(_arg1:String, _arg2:String, _arg3:Array, _arg4:Number=0){
this.name = _arg1;
this.inURL = _arg2;
this.fields = _arg3;
_timestamp(_arg4);
}
public function isEmpty():Boolean{
var _local1:int;
var _local2:String;
var _local3:int;
_local1 = 0;
_local3 = 0;
while (_local3 < fields.length) {
_local2 = fields[_local3];
if ((((this[_local2] is Number)) && (isNaN(this[_local2])))){
_local1++;
} else {
if ((((this[_local2] is String)) && ((this[_local2] == "")))){
_local1++;
};
};
_local3++;
};
if (_local1 == fields.length){
return (true);
};
return (false);
}
protected function update():void{
resetTimestamp();
if (proxy){
proxy.update(name, toSharedObject());
};
}
public function fromSharedObject(_arg1:Object):void{
var _local2:String;
var _local3:int;
var _local4:int;
_local3 = fields.length;
_local4 = 0;
while (_local4 < _local3) {
_local2 = fields[_local4];
if (_arg1[_local2]){
this[_local2] = _arg1[_local2];
};
_local4++;
};
if (_arg1.creation){
this.creation = _arg1.creation;
};
if (_arg1.expiration){
this.expiration = _arg1.expiration;
};
}
private function _timestamp(_arg1:Number):void{
creation = new Date();
_timespan = _arg1;
if (_arg1 > 0){
expiration = new Date((creation.valueOf() + _arg1));
};
}
public function isExpired():Boolean{
var _local1:Date;
var _local2:Number;
_local1 = new Date();
_local2 = (expiration.valueOf() - _local1.valueOf());
if (_local2 <= 0){
return (true);
};
return (false);
}
public function set expiration(_arg1:Date):void{
_expiration = _arg1;
}
public function get creation():Date{
return (_creation);
}
public function reset():void{
var _local1:String;
var _local2:int;
_local2 = 0;
while (_local2 < fields.length) {
_local1 = fields[_local2];
if ((this[_local1] is Number)){
this[_local1] = NaN;
} else {
if ((this[_local1] is String)){
this[_local1] = "";
};
};
_local2++;
};
resetTimestamp();
update();
}
public function valueOf():String{
var _local1:Array;
var _local2:String;
var _local3:*;
var _local4:int;
_local1 = [];
_local4 = 0;
while (_local4 < fields.length) {
_local2 = fields[_local4];
_local3 = this[_local2];
if ((_local3 is String)){
if (_local3 == ""){
_local3 = "-";
_local1.push(_local3);
} else {
_local1.push(_local3);
};
} else {
if ((_local3 is Number)){
if (_local3 == 0){
_local1.push(_local3);
} else {
if (isNaN(_local3)){
_local3 = "-";
_local1.push(_local3);
} else {
_local1.push(_local3);
};
};
};
};
_local4++;
};
return (("" + _local1.join(".")));
}
public function resetTimestamp(_arg1:Number=NaN):void{
if (!isNaN(_arg1)){
_timespan = _arg1;
};
_creation = null;
_expiration = null;
_timestamp(_timespan);
}
public function get expiration():Date{
if (_expiration){
return (_expiration);
};
return (new Date((new Date().valueOf() + 1000)));
}
public function toURLString():String{
return (((inURL + "=") + valueOf()));
}
public function toSharedObject():Object{
var _local1:Object;
var _local2:String;
var _local3:*;
var _local4:int;
_local1 = {};
_local4 = 0;
for (;_local4 < fields.length;_local4++) {
_local2 = fields[_local4];
_local3 = this[_local2];
if ((_local3 is String)){
_local1[_local2] = _local3;
} else {
if (_local3 == 0){
_local1[_local2] = _local3;
} else {
if (isNaN(_local3)){
continue;
} else {
_local1[_local2] = _local3;
};
};
};
};
_local1.creation = creation;
_local1.expiration = expiration;
return (_local1);
}
public function toString(_arg1:Boolean=false):String{
var _local2:Array;
var _local3:String;
var _local4:*;
var _local5:int;
var _local6:int;
var _local7:String;
_local2 = [];
_local5 = fields.length;
_local6 = 0;
for (;_local6 < _local5;_local6++) {
_local3 = fields[_local6];
_local4 = this[_local3];
if ((_local4 is String)){
_local2.push((((_local3 + ": \"") + _local4) + "\""));
} else {
if (_local4 == 0){
_local2.push(((_local3 + ": ") + _local4));
} else {
if (isNaN(_local4)){
continue;
} else {
_local2.push(((_local3 + ": ") + _local4));
};
};
};
};
_local7 = (((name.toUpperCase() + " {") + _local2.join(", ")) + "}");
if (_arg1){
_local7 = (_local7 + (((" creation:" + creation) + ", expiration:") + expiration));
};
return (_local7);
}
public function set creation(_arg1:Date):void{
_creation = _arg1;
}
}
}//package com.google.analytics.data
Section 29
//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 get hash():Number{
return (_hash);
}
public function set hash(_arg1:Number):void{
_hash = _arg1;
update();
}
}
}//package com.google.analytics.data
Section 30
//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;
}
public function get value():String{
return (_value);
}
public function set value(_arg1:String):void{
_value = _arg1;
update();
}
override public function toURLString():String{
return (((inURL + "=") + encodeURI(valueOf())));
}
public function get domainHash():Number{
return (_domainHash);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
}
}//package com.google.analytics.data
Section 31
//UTMZ (com.google.analytics.data.UTMZ)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMZ extends UTMCookie {
private var _domainHash:Number;
private var _campaignSessions:Number;
private var _campaignTracking:String;
private var _responseCount:Number;
private var _campaignCreation: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 get campaignCreation():Number{
return (_campaignCreation);
}
public function set campaignSessions(_arg1:Number):void{
_campaignSessions = _arg1;
update();
}
public function set responseCount(_arg1:Number):void{
_responseCount = _arg1;
update();
}
public function set campaignCreation(_arg1:Number):void{
_campaignCreation = _arg1;
update();
}
public function get campaignSessions():Number{
return (_campaignSessions);
}
public function get responseCount():Number{
return (_responseCount);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function get campaignTracking():String{
return (_campaignTracking);
}
public function set campaignTracking(_arg1:String):void{
_campaignTracking = _arg1;
update();
}
public function get domainHash():Number{
return (_domainHash);
}
}
}//package com.google.analytics.data
Section 32
//X10 (com.google.analytics.data.X10)
package com.google.analytics.data {
public class X10 {
private var _delimEnd:String;// = ")"
private var _delimSet:String;// = "*"
private var _escapeChar:String;// = "'"
private var _delimBegin:String;// = "("
private var _delimNumValue:String;// = "!"
private var _key:String;// = "k"
private var _set:Array;
private var _projectData:Object;
private var _hasData:int;
private var _escapeCharMap:Object;
private var _minimum:int;
private var _value:String;// = "v"
public function X10(){
_key = "k";
_value = "v";
_set = [_key, _value];
_delimBegin = "(";
_delimEnd = ")";
_delimSet = "*";
_delimNumValue = "!";
_escapeChar = "'";
super();
_projectData = {};
_escapeCharMap = {};
_escapeCharMap[_escapeChar] = "'0";
_escapeCharMap[_delimEnd] = "'1";
_escapeCharMap[_delimSet] = "'2";
_escapeCharMap[_delimNumValue] = "'3";
_minimum = 1;
}
private function _clearInternal(_arg1:Number, _arg2:String):void{
var _local3:Boolean;
var _local4:int;
var _local5:int;
if (((hasProject(_arg1)) && (!((_projectData[_arg1][_arg2] == undefined))))){
_projectData[_arg1][_arg2] = undefined;
_local3 = true;
_local5 = _set.length;
_local4 = 0;
while (_local4 < _local5) {
if (_projectData[_arg1][_set[_local4]] != undefined){
_local3 = false;
break;
};
_local4++;
};
if (_local3){
_projectData[_arg1] = undefined;
_hasData = (_hasData - 1);
};
};
}
public function hasData():Boolean{
return ((_hasData > 0));
}
private function _setInternal(_arg1:Number, _arg2:String, _arg3:Number, _arg4:String):void{
if (!hasProject(_arg1)){
_projectData[_arg1] = {};
};
if (_projectData[_arg1][_arg2] == undefined){
_projectData[_arg1][_arg2] = [];
};
_projectData[_arg1][_arg2][_arg3] = _arg4;
_hasData = (_hasData + 1);
}
public function hasProject(_arg1:Number):Boolean{
return (_projectData[_arg1]);
}
public function clearKey(_arg1:Number):void{
_clearInternal(_arg1, _key);
}
private function _renderDataType(_arg1:Array):String{
var _local2:Array;
var _local3:String;
var _local4:int;
_local2 = [];
_local4 = 0;
while (_local4 < _arg1.length) {
if (_arg1[_local4] != undefined){
_local3 = "";
if (((!((_local4 == _minimum))) && ((_arg1[(_local4 - 1)] == undefined)))){
_local3 = (_local3 + _local4.toString());
_local3 = (_local3 + _delimNumValue);
};
_local3 = (_local3 + _escapeExtensibleValue(_arg1[_local4]));
_local2.push(_local3);
};
_local4++;
};
return (((_delimBegin + _local2.join(_delimSet)) + _delimEnd));
}
public function getKey(_arg1:Number, _arg2:Number):String{
return ((_getInternal(_arg1, _key, _arg2) as String));
}
public function clearValue(_arg1:Number):void{
_clearInternal(_arg1, _value);
}
public function renderMergedUrlString(_arg1:X10=null):String{
var _local2:Array;
var _local3:String;
if (!_arg1){
return (renderUrlString());
};
_local2 = [_arg1.renderUrlString()];
for (_local3 in _projectData) {
if (((hasProject(Number(_local3))) && (!(_arg1.hasProject(Number(_local3)))))){
_local2.push((_local3 + _renderProject(_projectData[_local3])));
};
};
return (_local2.join(""));
}
public function setValue(_arg1:Number, _arg2:Number, _arg3:Number):Boolean{
if (((((!((Math.round(_arg3) == _arg3))) || (isNaN(_arg3)))) || ((_arg3 == Infinity)))){
return (false);
};
_setInternal(_arg1, _value, _arg2, _arg3.toString());
return (true);
}
public function renderUrlString():String{
var _local1:Array;
var _local2:String;
_local1 = [];
for (_local2 in _projectData) {
if (hasProject(Number(_local2))){
_local1.push((_local2 + _renderProject(_projectData[_local2])));
};
};
return (_local1.join(""));
}
private function _getInternal(_arg1:Number, _arg2:String, _arg3:Number):Object{
if (((hasProject(_arg1)) && (!((_projectData[_arg1][_arg2] == undefined))))){
return (_projectData[_arg1][_arg2][_arg3]);
};
return (undefined);
}
public function setKey(_arg1:Number, _arg2:Number, _arg3:String):Boolean{
_setInternal(_arg1, _key, _arg2, _arg3);
return (true);
}
public function getValue(_arg1:Number, _arg2:Number){
var _local3:*;
_local3 = _getInternal(_arg1, _value, _arg2);
if (_local3 == null){
return (null);
};
return (Number(_local3));
}
private function _renderProject(_arg1:Object):String{
var _local2:String;
var _local3:Boolean;
var _local4:int;
var _local5:Array;
var _local6:int;
_local2 = "";
_local3 = false;
_local6 = _set.length;
_local4 = 0;
while (_local4 < _local6) {
_local5 = _arg1[_set[_local4]];
if (_local5){
if (_local3){
_local2 = (_local2 + _set[_local4]);
};
_local2 = (_local2 + _renderDataType(_local5));
_local3 = false;
} else {
_local3 = true;
};
_local4++;
};
return (_local2);
}
private function _escapeExtensibleValue(_arg1:String):String{
var _local2:String;
var _local3:int;
var _local4:String;
var _local5:String;
_local2 = "";
_local3 = 0;
while (_local3 < _arg1.length) {
_local4 = _arg1.charAt(_local3);
_local5 = _escapeCharMap[_local4];
if (_local5){
_local2 = (_local2 + _local5);
} else {
_local2 = (_local2 + _local4);
};
_local3++;
};
return (_local2);
}
}
}//package com.google.analytics.data
Section 33
//_Style (com.google.analytics.debug._Style)
package com.google.analytics.debug {
import flash.net.*;
import flash.text.*;
public class _Style {
public var borderColor:uint;
public var backgroundColor:uint;
private var _sheet:StyleSheet;
public var roundedCorner:uint;
public var alertColor:uint;
public var infoColor:uint;
public var successColor:uint;
private var _loader:URLLoader;
public var failureColor:uint;
private var _defaultSheet:String;
public var warningColor:uint;
public function _Style(){
_sheet = new StyleSheet();
_loader = new URLLoader();
_init();
}
private function _parseSheet(_arg1:String):void{
_sheet.parseCSS(_arg1);
}
public function get sheet():StyleSheet{
return (_sheet);
}
private function _init():void{
_defaultSheet = "";
_defaultSheet = (_defaultSheet + "a{text-decoration: underline;}\n");
_defaultSheet = (_defaultSheet + ".uiLabel{color: #000000;font-family: Arial;font-size: 12;margin-left: 2;margin-right: 2;}\n");
_defaultSheet = (_defaultSheet + ".uiWarning{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiAlert{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiInfo{color: #000000;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiSuccess{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiFailure{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiAlertAction{color: #ffffff;text-align: center;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiAlertTitle{color: #ffffff;font-family: Arial;font-size: 16;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + "\n");
roundedCorner = 6;
backgroundColor = 0xCCCCCC;
borderColor = 0x555555;
infoColor = 16777113;
alertColor = 0xFFCC00;
warningColor = 0xCC0000;
successColor = 0xFF00;
failureColor = 0xFF0000;
_parseSheet(_defaultSheet);
}
}
}//package com.google.analytics.debug
Section 34
//Alert (com.google.analytics.debug.Alert)
package com.google.analytics.debug {
import flash.events.*;
public class Alert extends Label {
public var actionOnNextLine:Boolean;// = true
public var autoClose:Boolean;// = true
private var _actions:Array;
public function Alert(_arg1:String, _arg2:Array, _arg3:String="uiAlert", _arg4:uint=0, _arg5:Align=null, _arg6:Boolean=false, _arg7:Boolean=true){
var _local8:int;
autoClose = true;
actionOnNextLine = true;
if (_arg4 == 0){
_arg4 = Style.alertColor;
};
if (_arg5 == null){
_arg5 = Align.center;
};
super(_arg1, _arg3, _arg4, _arg5, _arg6);
this.selectable = true;
super.mouseChildren = true;
this.buttonMode = true;
this.mouseEnabled = true;
this.useHandCursor = true;
this.actionOnNextLine = _arg7;
_actions = [];
_local8 = 0;
while (_local8 < _arg2.length) {
_arg2[_local8].container = this;
_actions.push(_arg2[_local8]);
_local8++;
};
}
protected function getAction(_arg1:String):AlertAction{
var _local2:int;
_local2 = 0;
while (_local2 < _actions.length) {
if (_arg1 == _actions[_local2].activator){
return (_actions[_local2]);
};
_local2++;
};
return (null);
}
override protected function layout():void{
super.layout();
_defineActions();
}
protected function spaces(_arg1:int):String{
var _local2:String;
var _local3:String;
var _local4:int;
_local2 = "";
_local3 = " ";
_local4 = 0;
while (_local4 < (_arg1 + 1)) {
_local2 = (_local2 + _local3);
_local4++;
};
return (_local2);
}
override public function onLink(_arg1:TextEvent):void{
var _local2:AlertAction;
if (isValidAction(_arg1.text)){
_local2 = getAction(_arg1.text);
if (_local2){
_local2.execute();
};
};
if (autoClose){
close();
};
}
protected function isValidAction(_arg1:String):Boolean{
var _local2:int;
_local2 = 0;
while (_local2 < _actions.length) {
if (_arg1 == _actions[_local2].activator){
return (true);
};
_local2++;
};
return (false);
}
private function _defineActions():void{
var _local1:String;
var _local2:Array;
var _local3:AlertAction;
var _local4:int;
_local1 = "";
if (actionOnNextLine){
_local1 = (_local1 + "\n");
} else {
_local1 = (_local1 + " |");
};
_local1 = (_local1 + " ");
_local2 = [];
_local4 = 0;
while (_local4 < _actions.length) {
_local3 = _actions[_local4];
_local2.push((((("<a href=\"event:" + _local3.activator) + "\">") + _local3.name) + "</a>"));
_local4++;
};
_local1 = (_local1 + _local2.join(" | "));
appendText(_local1, "uiAlertAction");
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 35
//AlertAction (com.google.analytics.debug.AlertAction)
package com.google.analytics.debug {
public class AlertAction {
public var container:Alert;
private var _callback;
public var name:String;
public var activator:String;
public function AlertAction(_arg1:String, _arg2:String, _arg3){
this.name = _arg1;
this.activator = _arg2;
_callback = _arg3;
}
public function execute():void{
if (_callback){
if ((_callback is Function)){
(_callback as Function)();
} else {
if ((_callback is String)){
var _local1 = container;
_local1[_callback]();
};
};
};
}
}
}//package com.google.analytics.debug
Section 36
//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 37
//Background (com.google.analytics.debug.Background)
package com.google.analytics.debug {
import flash.display.*;
public class Background {
public static function drawRounded(_arg1, _arg2:Graphics, _arg3:uint=0, _arg4:uint=0):void{
var _local5:uint;
var _local6:uint;
var _local7:uint;
_local7 = Style.roundedCorner;
if ((((_arg3 > 0)) && ((_arg4 > 0)))){
_local5 = _arg3;
_local6 = _arg4;
} else {
_local5 = _arg1.width;
_local6 = _arg1.height;
};
if (((_arg1.stickToEdge) && (!((_arg1.alignement == Align.none))))){
switch (_arg1.alignement){
case Align.top:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, _local7, _local7);
break;
case Align.topLeft:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, 0, _local7);
break;
case Align.topRight:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, _local7, 0);
break;
case Align.bottom:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, _local7, 0, 0);
break;
case Align.bottomLeft:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, _local7, 0, 0);
break;
case Align.bottomRight:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, 0, 0, 0);
break;
case Align.left:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, _local7, 0, _local7);
break;
case Align.right:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, 0, _local7, 0);
break;
case Align.center:
_arg2.drawRoundRect(0, 0, _local5, _local6, _local7, _local7);
break;
};
} else {
_arg2.drawRoundRect(0, 0, _local5, _local6, _local7, _local7);
};
}
}
}//package com.google.analytics.debug
Section 38
//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
public var maxLines:uint;// = 16
private var _linediff:int;// = 0
public static var count:uint = 0;
public function Debug(_arg1:uint=0, _arg2:Align=null, _arg3:Boolean=false){
_linediff = 0;
_preferredForcedWidth = 540;
maxLines = 16;
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 close():void{
dispose();
}
public function writeBold(_arg1:String):void{
write(_arg1, true);
}
override protected function dispose():void{
removeEventListener(KeyboardEvent.KEY_DOWN, onKey);
super.dispose();
}
override public function get forcedWidth():uint{
if (this.parent){
if (UISprite(this.parent).forcedWidth > _preferredForcedWidth){
return (_preferredForcedWidth);
};
return (UISprite(this.parent).forcedWidth);
} else {
};
return (!NULL!);
}
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");
}
public function write(_arg1:String, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:String;
var _local5:String;
var _local6:int;
var _local7:Array;
if (_arg1.indexOf("") > -1){
_local3 = _arg1.split("\n");
} else {
_local3 = [_arg1];
};
_local4 = "";
_local5 = "";
if (_arg2){
_local4 = "<b>";
_local5 = "</b>";
};
_local6 = 0;
while (_local6 < _local3.length) {
_lines.push(((_local4 + _local3[_local6]) + _local5));
_local6++;
};
_local7 = _getLinesToDisplay();
text = _local7.join("\n");
}
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);
}
}
}//package com.google.analytics.debug
Section 39
//DebugConfiguration (com.google.analytics.debug.DebugConfiguration)
package com.google.analytics.debug {
import com.google.analytics.core.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
public class DebugConfiguration {
public var showHideKey:Number;
private var _mode:VisualDebugMode;
private var _verbose:Boolean;// = false
public var destroyKey:Number;
public var GIFRequests:Boolean;// = false
public var infoTimeout:Number;// = 1000
public var showInfos:Boolean;// = true
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(){
_active = false;
_verbose = false;
_visualInitialized = false;
_mode = VisualDebugMode.basic;
traceOutput = false;
javascript = false;
GIFRequests = false;
showInfos = true;
infoTimeout = 1000;
showWarnings = true;
warningTimeout = 1500;
minimizedOnStart = false;
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 _local2:Array;
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:int;
var _local7:Array;
var _local8:int;
_local2 = [];
_local3 = "";
_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));
};
_local5 = _local2.length;
_local6 = 0;
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 40
//FailureAlert (com.google.analytics.debug.FailureAlert)
package com.google.analytics.debug {
public class FailureAlert extends Alert {
public function FailureAlert(_arg1:DebugConfiguration, _arg2:String, _arg3:Array){
var _local4:Align;
var _local5:Boolean;
var _local6:Boolean;
_local4 = Align.bottomLeft;
_local5 = true;
_local6 = false;
if (_arg1.verbose){
_arg2 = ((("<u><span class=\"uiAlertTitle\">Failure</span>" + spaces(18)) + "</u>\n\n") + _arg2);
_local4 = Align.center;
_local5 = false;
_local6 = true;
};
super(_arg2, _arg3, "uiFailure", Style.failureColor, _local4, _local5, _local6);
}
}
}//package com.google.analytics.debug
Section 41
//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 42
//ILayout (com.google.analytics.debug.ILayout)
package com.google.analytics.debug {
import com.google.analytics.core.*;
import flash.net.*;
import flash.display.*;
public interface ILayout {
function createWarning(_arg1:String):void;
function addToStage(_arg1:DisplayObject):void;
function createGIFRequestAlert(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void;
function createPanel(_arg1:String, _arg2:uint, _arg3:uint):void;
function createInfo(_arg1:String):void;
function createFailureAlert(_arg1:String):void;
function addToPanel(_arg1:String, _arg2:DisplayObject):void;
function init():void;
function createSuccessAlert(_arg1:String):void;
function createVisualDebug():void;
function createAlert(_arg1:String):void;
function destroy():void;
function bringToFront(_arg1:DisplayObject):void;
function isAvailable():Boolean;
}
}//package com.google.analytics.debug
Section 43
//Info (com.google.analytics.debug.Info)
package com.google.analytics.debug {
import flash.events.*;
import flash.utils.*;
public class Info extends Label {
private var _timer:Timer;
public function Info(_arg1:String="", _arg2:uint=3000){
super(_arg1, "uiInfo", Style.infoColor, Align.top, true);
if (_arg2 > 0){
_timer = new Timer(_arg2, 1);
_timer.start();
_timer.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete, false, 0, true);
};
}
public function onComplete(_arg1:TimerEvent):void{
close();
}
override public function onLink(_arg1:TextEvent):void{
switch (_arg1.text){
case "hide":
close();
break;
};
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 44
//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 _text:String;
private var _textField:TextField;
private var _color:uint;
protected var selectable:Boolean;
public var stickToEdge:Boolean;
private var _background:Shape;
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);
}
override protected function dispose():void{
_textField.removeEventListener(TextEvent.LINK, onLink);
super.dispose();
}
private function _draw():void{
var _local1:Graphics;
var _local2:uint;
var _local3:uint;
_local1 = _background.graphics;
_local1.clear();
_local1.beginFill(_color);
_local2 = _textField.width;
_local3 = _textField.height;
if (forcedWidth > 0){
_local2 = forcedWidth;
};
Background.drawRounded(this, _local1, _local2, _local3);
_local1.endFill();
}
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 get text():String{
return (_textField.text);
}
public function set tag(_arg1:String):void{
_tag = _arg1;
text = "";
}
public function set text(_arg1:String):void{
if (_arg1 == ""){
_arg1 = _text;
};
_textField.htmlText = (((("<span class=\"" + tag) + "\">") + _arg1) + "</span>");
_text = _arg1;
_draw();
resize();
}
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 onLink(_arg1:TextEvent):void{
}
public function get tag():String{
return (_tag);
}
}
}//package com.google.analytics.debug
Section 45
//Layout (com.google.analytics.debug.Layout)
package com.google.analytics.debug {
import com.google.analytics.core.*;
import flash.net.*;
import flash.events.*;
import flash.display.*;
import com.google.analytics.*;
public class Layout implements ILayout {
private var _display:DisplayObject;
private var _infoQueue:Array;
private var _maxCharPerLine:int;// = 85
private var _hasInfo:Boolean;
private var _warningQueue:Array;
private var _hasDebug:Boolean;
private var _hasWarning:Boolean;
private var _mainPanel:Panel;
private var _GRAlertQueue:Array;
private var _debug:DebugConfiguration;
public var visualDebug:Debug;
private var _hasGRAlert:Boolean;
public function Layout(_arg1:DebugConfiguration, _arg2:DisplayObject){
_maxCharPerLine = 85;
super();
_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 bringToFront(_arg1:DisplayObject):void{
_display.stage.setChildIndex(_arg1, (_display.stage.numChildren - 1));
}
public function createFailureAlert(_arg1:String):void{
var _local2:AlertAction;
var _local3:Alert;
if (_debug.verbose){
_arg1 = _filterMaxChars(_arg1);
_local2 = new AlertAction("Close", "close", "close");
} else {
_local2 = new AlertAction("X", "close", "close");
};
_local3 = 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:int;
var _local2:uint;
var _local3:uint;
var _local4:Panel;
_local1 = 10;
_local2 = (_display.stage.stageWidth - (_local1 * 2));
_local3 = (_display.stage.stageHeight - (_local1 * 2));
_local4 = 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 _local3:DisplayObject;
var _local4:Panel;
_local3 = _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 _local3:String;
var _local4:Array;
var _local5:Array;
var _local6:String;
var _local7:int;
_local3 = "\n";
_local4 = [];
_local5 = _arg1.split(_local3);
if (_arg2 == 0){
_arg2 = _maxCharPerLine;
};
_local7 = 0;
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));
}
public function createWarning(_arg1:String):void{
var _local2:Warning;
if (((_hasWarning) || (!(isAvailable())))){
_warningQueue.push(_arg1);
return;
};
_arg1 = _filterMaxChars(_arg1);
_hasWarning = true;
_local2 = new Warning(_arg1, _debug.warningTimeout);
addToPanel("analytics", _local2);
_local2.addEventListener(Event.REMOVED_FROM_STAGE, _clearWarning, false, 0, true);
if (_hasDebug){
visualDebug.writeBold(_arg1);
};
}
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;
var _local3:Alert;
if (_debug.verbose){
_arg1 = _filterMaxChars(_arg1);
_local2 = new AlertAction("Close", "close", "close");
} else {
_local2 = new AlertAction("X", "close", "close");
};
_local3 = 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{
var _local2:Alert;
_arg1 = _filterMaxChars(_arg1);
_local2 = new Alert(_arg1, [new AlertAction("Close", "close", "close")]);
addToPanel("analytics", _local2);
if (_hasDebug){
visualDebug.writeBold(_arg1);
};
}
public function createInfo(_arg1:String):void{
var _local2:Info;
if (((_hasInfo) || (!(isAvailable())))){
_infoQueue.push(_arg1);
return;
};
_arg1 = _filterMaxChars(_arg1);
_hasInfo = true;
_local2 = 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 f:Function;
var gra:GIFRequestAlert;
var message = _arg1;
var request = _arg2;
var ref = _arg3;
if (_hasGRAlert){
_GRAlertQueue.push([message, request, ref]);
return;
};
_hasGRAlert = true;
f = function ():void{
ref.sendRequest(request);
};
message = _filterMaxChars(message);
gra = 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;
_local4 = 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 46
//Margin (com.google.analytics.debug.Margin)
package com.google.analytics.debug {
public class Margin {
public var bottom:int;
public var top:int;
public var right:int;
public var left:int;
public function Margin(_arg1:int=0, _arg2:int=0, _arg3:int=0, _arg4:int=0){
this.top = _arg1;
this.bottom = _arg2;
this.left = _arg3;
this.right = _arg4;
}
}
}//package com.google.analytics.debug
Section 47
//Panel (com.google.analytics.debug.Panel)
package com.google.analytics.debug {
import flash.events.*;
import flash.display.*;
public class Panel extends UISprite {
protected var baseAlpha:Number;
private var _border:Shape;
private var _name:String;
private var _title:Label;
private var _data:UISprite;
private var _backgroundColor:uint;
private var _colapsed:Boolean;
private var _stickToEdge:Boolean;
private var _background:Shape;
private var _savedW:uint;
private var _mask:Sprite;
private var _savedH:uint;
private var _borderColor:uint;
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 set stickToEdge(_arg1:Boolean):void{
_stickToEdge = _arg1;
_title.stickToEdge = _arg1;
}
public function onToggle(_arg1:MouseEvent=null):void{
if (_colapsed){
_data.visible = true;
} else {
_data.visible = false;
};
_colapsed = !(_colapsed);
_update();
resize();
}
override protected function dispose():void{
_title.removeEventListener(MouseEvent.CLICK, onToggle);
super.dispose();
}
private function _draw():void{
var _local1:uint;
var _local2:uint;
var _local3:Graphics;
var _local4:Graphics;
var _local5:Graphics;
var _local6:Graphics;
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;
};
_local3 = _background.graphics;
_local3.clear();
_local3.beginFill(_backgroundColor);
Background.drawRounded(this, _local3, _local1, _local2);
_local3.endFill();
_local4 = _data.graphics;
_local4.clear();
_local4.beginFill(_backgroundColor, 0);
Background.drawRounded(this, _local4, _local1, _local2);
_local4.endFill();
_local5 = _border.graphics;
_local5.clear();
_local5.lineStyle(0.1, _borderColor);
Background.drawRounded(this, _local5, _local1, _local2);
_local5.endFill();
_local6 = _mask.graphics;
_local6.clear();
_local6.beginFill(_backgroundColor);
Background.drawRounded(this, _local6, (_local1 + 1), (_local2 + 1));
_local6.endFill();
}
override protected function layout():void{
_update();
addChild(_background);
addChild(_data);
addChild(_title);
addChild(_border);
addChild(_mask);
mask = _mask;
}
public function get title():String{
return (_title.text);
}
public function get stickToEdge():Boolean{
return (_stickToEdge);
}
public function set title(_arg1:String):void{
_title.text = _arg1;
}
private function _update():void{
_draw();
if (baseAlpha < 1){
_background.alpha = baseAlpha;
_border.alpha = baseAlpha;
};
}
public function addData(_arg1:DisplayObject):void{
_data.addChild(_arg1);
}
public function close():void{
dispose();
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 48
//Style (com.google.analytics.debug.Style)
package com.google.analytics.debug {
public const Style:_Style = new _Style();
}//package com.google.analytics.debug
Section 49
//SuccessAlert (com.google.analytics.debug.SuccessAlert)
package com.google.analytics.debug {
public class SuccessAlert extends Alert {
public function SuccessAlert(_arg1:DebugConfiguration, _arg2:String, _arg3:Array){
var _local4:Align;
var _local5:Boolean;
var _local6:Boolean;
_local4 = Align.bottomLeft;
_local5 = true;
_local6 = false;
if (_arg1.verbose){
_arg2 = ((("<u><span class=\"uiAlertTitle\">Success</span>" + spaces(18)) + "</u>\n\n") + _arg2);
_local4 = Align.center;
_local5 = false;
_local6 = true;
};
super(_arg2, _arg3, "uiSuccess", Style.successColor, _local4, _local5, _local6);
}
}
}//package com.google.analytics.debug
Section 50
//UISprite (com.google.analytics.debug.UISprite)
package com.google.analytics.debug {
import flash.events.*;
import flash.display.*;
public class UISprite extends Sprite {
private var _forcedHeight:uint;
protected var listenResize:Boolean;
public var alignement:Align;
private var _forcedWidth:uint;
public var margin:Margin;
protected var alignTarget:DisplayObject;
public function UISprite(_arg1:DisplayObject=null){
listenResize = false;
alignement = Align.none;
this.alignTarget = _arg1;
margin = new Margin();
addEventListener(Event.ADDED_TO_STAGE, _onAddedToStage);
addEventListener(Event.REMOVED_FROM_STAGE, _onRemovedFromStage);
}
protected function dispose():void{
var _local1:DisplayObject;
var _local2:int;
_local2 = 0;
while (_local2 < numChildren) {
_local1 = getChildAt(_local2);
if (_local1){
removeChild(_local1);
};
_local2++;
};
}
protected function layout():void{
}
public function get forcedHeight():uint{
if (_forcedHeight){
return (_forcedHeight);
};
return (height);
}
public function alignTo(_arg1:Align, _arg2:DisplayObject=null):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:UISprite;
if (_arg2 == null){
if ((parent is Stage)){
_arg2 = this.stage;
} else {
_arg2 = parent;
};
};
if (_arg2 == this.stage){
if (this.stage == null){
return;
};
_local3 = this.stage.stageHeight;
_local4 = this.stage.stageWidth;
_local5 = 0;
_local6 = 0;
} else {
_local7 = (_arg2 as UISprite);
if (_local7.forcedHeight){
_local3 = _local7.forcedHeight;
} else {
_local3 = _local7.height;
};
if (_local7.forcedWidth){
_local4 = _local7.forcedWidth;
} else {
_local4 = _local7.width;
};
_local5 = 0;
_local6 = 0;
};
switch (_arg1){
case Align.top:
x = ((_local4 / 2) - (forcedWidth / 2));
y = (_local6 + margin.top);
break;
case Align.bottom:
x = ((_local4 / 2) - (forcedWidth / 2));
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
case Align.left:
x = (_local5 + margin.left);
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.right:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.center:
x = ((_local4 / 2) - (forcedWidth / 2));
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.topLeft:
x = (_local5 + margin.left);
y = (_local6 + margin.top);
break;
case Align.topRight:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = (_local6 + margin.top);
break;
case Align.bottomLeft:
x = (_local5 + margin.left);
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
case Align.bottomRight:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
};
if (((!(listenResize)) && (!((_arg1 == Align.none))))){
_arg2.addEventListener(Event.RESIZE, onResize, false, 0, true);
listenResize = true;
};
this.alignement = _arg1;
this.alignTarget = _arg2;
}
public function get forcedWidth():uint{
if (_forcedWidth){
return (_forcedWidth);
};
return (width);
}
protected function onResize(_arg1:Event):void{
resize();
}
private function _onRemovedFromStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onAddedToStage);
removeEventListener(Event.REMOVED_FROM_STAGE, _onRemovedFromStage);
dispose();
}
public function resize():void{
if (alignement != Align.none){
alignTo(alignement, alignTarget);
};
}
private function _onAddedToStage(_arg1:Event):void{
layout();
resize();
}
public function set forcedHeight(_arg1:uint):void{
_forcedHeight = _arg1;
}
public function set forcedWidth(_arg1:uint):void{
_forcedWidth = _arg1;
}
}
}//package com.google.analytics.debug
Section 51
//Warning (com.google.analytics.debug.Warning)
package com.google.analytics.debug {
import flash.events.*;
import flash.utils.*;
public class Warning extends Label {
private var _timer:Timer;
public function Warning(_arg1:String="", _arg2:uint=3000){
super(_arg1, "uiWarning", Style.warningColor, Align.top, false);
margin.top = 32;
if (_arg2 > 0){
_timer = new Timer(_arg2, 1);
_timer.start();
_timer.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete, false, 0, true);
};
}
public function onComplete(_arg1:TimerEvent):void{
close();
}
override public function onLink(_arg1:TextEvent):void{
switch (_arg1.text){
case "hide":
close();
break;
};
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 52
//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 53
//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 54
//AdSenseGlobals (com.google.analytics.external.AdSenseGlobals)
package com.google.analytics.external {
import com.google.analytics.debug.*;
public class AdSenseGlobals extends JavascriptProxy {
private var _gaGlobalVerified:Boolean;// = false
public static var gaGlobal_js:XML = <script>
<![CDATA[
function()
{
try
{
gaGlobal
}
catch(e)
{
gaGlobal = {} ;
}
}
]]>
</script>
;
public function AdSenseGlobals(_arg1:DebugConfiguration){
_gaGlobalVerified = false;
super(_arg1);
}
public function set vid(_arg1:String):void{
if (!isAvailable()){
return;
};
_verify();
setProperty("gaGlobal.vid", _arg1);
}
public function get hid():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.hid"));
}
public function get dh():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.dh"));
}
public function get gaGlobal():Object{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal"));
}
public function set hid(_arg1:String):void{
if (!isAvailable()){
return;
};
_verify();
setProperty("gaGlobal.hid", _arg1);
}
public function get sid():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.sid"));
}
private function _verify():void{
if (!_gaGlobalVerified){
executeBlock(gaGlobal_js);
_gaGlobalVerified = true;
};
}
public function get vid():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.vid"));
}
public function set sid(_arg1:String):void{
if (!isAvailable()){
return;
};
_verify();
setProperty("gaGlobal.sid", _arg1);
}
}
}//package com.google.analytics.external
Section 55
//HTMLDOM (com.google.analytics.external.HTMLDOM)
package com.google.analytics.external {
import com.google.analytics.debug.*;
public class HTMLDOM extends JavascriptProxy {
private var _referrer:String;
private var _protocol:String;
private var _host:String;
private var _location:String;
private var _pathname:String;
private var _title:String;
private var _characterSet:String;
private var _search:String;
private var _language:String;
private var _colorDepth:String;
public static var cache_properties_js:XML = <script>
<![CDATA[
function()
{
var obj = {};
obj.host = document.location.host;
obj.language = navigator.language ? navigator.language : navigator.browserLanguage;
obj.characterSet = document.characterSet ? document.characterSet : document.charset;
obj.colorDepth = window.screen.colorDepth;
obj.location = document.location.toString();
obj.pathname = document.location.pathname;
obj.protocol = document.location.protocol;
obj.search = document.location.search;
obj.referrer = document.referrer;
obj.title = document.title;
return obj;
}
]]>
</script>
;
public function HTMLDOM(_arg1:DebugConfiguration){
super(_arg1);
}
public function get search():String{
if (_search){
return (_search);
};
if (!isAvailable()){
return (null);
};
_search = getProperty("document.location.search");
return (_search);
}
public function get location():String{
if (_location){
return (_location);
};
if (!isAvailable()){
return (null);
};
_location = getPropertyString("document.location");
return (_location);
}
public function get pathname():String{
if (_pathname){
return (_pathname);
};
if (!isAvailable()){
return (null);
};
_pathname = getProperty("document.location.pathname");
return (_pathname);
}
public function get referrer():String{
if (_referrer){
return (_referrer);
};
if (!isAvailable()){
return (null);
};
_referrer = getProperty("document.referrer");
return (_referrer);
}
public function get protocol():String{
if (_protocol){
return (_protocol);
};
if (!isAvailable()){
return (null);
};
_protocol = getProperty("document.location.protocol");
return (_protocol);
}
public function cacheProperties():void{
var _local1:Object;
if (!isAvailable()){
return;
};
_local1 = call(cache_properties_js);
if (_local1){
_host = _local1.host;
_language = _local1.language;
_characterSet = _local1.characterSet;
_colorDepth = _local1.colorDepth;
_location = _local1.location;
_pathname = _local1.pathname;
_protocol = _local1.protocol;
_search = _local1.search;
_referrer = _local1.referrer;
_title = _local1.title;
};
}
public function get colorDepth():String{
if (_colorDepth){
return (_colorDepth);
};
if (!isAvailable()){
return (null);
};
_colorDepth = getProperty("window.screen.colorDepth");
return (_colorDepth);
}
public function get title():String{
if (_title){
return (_title);
};
if (!isAvailable()){
return (null);
};
_title = getProperty("document.title");
return (_title);
}
public function get host():String{
if (_host){
return (_host);
};
if (!isAvailable()){
return (null);
};
_host = getProperty("document.location.host");
return (_host);
}
public function get characterSet():String{
var _local1:String;
if (_characterSet){
return (_characterSet);
};
if (!isAvailable()){
return (null);
};
_local1 = getProperty("document.characterSet");
if (_local1 == null){
_local1 = getProperty("document.charset");
};
_characterSet = _local1;
return (_characterSet);
}
public function get language():String{
var _local1:String;
if (_language){
return (_language);
};
if (!isAvailable()){
return (null);
};
_local1 = getProperty("navigator.language");
if (_local1 == null){
_local1 = getProperty("navigator.browserLanguage");
};
_language = _local1;
return (_language);
}
}
}//package com.google.analytics.external
Section 56
//JavascriptProxy (com.google.analytics.external.JavascriptProxy)
package com.google.analytics.external {
import com.google.analytics.debug.*;
import flash.system.*;
import flash.external.*;
public class JavascriptProxy {
private var _notAvailableWarning:Boolean;// = true
private var _debug:DebugConfiguration;
public static var setProperty_js:XML = <script>
<![CDATA[
function( path , value )
{
var paths;
var prop;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
prop = paths.pop() ;
}
else
{
paths = [];
prop = path;
}
var target = window ;
var len = paths.length ;
for( var i = 0 ; i < len ; i++ )
{
target = target[ paths[i] ] ;
}
target[ prop ] = value ;
}
]]>
</script>
;
public static var hasProperty_js:XML = <script>
<![CDATA[
function( path )
{
var paths;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
}
else
{
paths = [path];
}
var target = window ;
var len = paths.length ;
for( var i = 0 ; i < len ; i++ )
{
target = target[ paths[i] ] ;
}
if( target )
{
return true;
}
else
{
return false;
}
}
]]>
</script>
;
public static var setPropertyRef_js:XML = <script>
<![CDATA[
function( path , target )
{
var paths;
var prop;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
prop = paths.pop() ;
}
else
{
paths = [];
prop = path;
}
alert( "paths:"+paths.length+", prop:"+prop );
var targets;
var name;
if( target.indexOf(".") > 0 )
{
targets = target.split(".");
name = targets.pop();
}
else
{
targets = [];
name = target;
}
alert( "targets:"+targets.length+", name:"+name );
var root = window;
var len = paths.length;
for( var i = 0 ; i < len ; i++ )
{
root = root[ paths[i] ] ;
}
var ref = window;
var depth = targets.length;
for( var j = 0 ; j < depth ; j++ )
{
ref = ref[ targets[j] ] ;
}
root[ prop ] = ref[name] ;
}
]]>
</script>
;
public function JavascriptProxy(_arg1:DebugConfiguration){
_notAvailableWarning = true;
super();
_debug = _arg1;
}
public function getProperty(_arg1:String){
return (call((_arg1 + ".valueOf")));
}
public function hasProperty(_arg1:String):Boolean{
return (call(hasProperty_js, _arg1));
}
public function setProperty(_arg1:String, _arg2):void{
call(setProperty_js, _arg1, _arg2);
}
public function executeBlock(_arg1:String):void{
var data = _arg1;
if (isAvailable()){
try {
ExternalInterface.call(data);
} catch(e:SecurityError) {
if (_debug.javascript){
_debug.warning("ExternalInterface is not allowed.\nEnsure that allowScriptAccess is set to \"always\" in the Flash embed HTML.");
};
} catch(e:Error) {
if (_debug.javascript){
_debug.warning(("ExternalInterface failed to make the call\nreason: " + e.message));
};
};
};
}
public function getPropertyString(_arg1:String):String{
return (call((_arg1 + ".toString")));
}
public function setPropertyByReference(_arg1:String, _arg2:String):void{
call(setPropertyRef_js, _arg1, _arg2);
}
public function call(_arg1:String, ... _args){
var output:String;
var functionName = _arg1;
var args = _args;
if (isAvailable()){
try {
if (((_debug.javascript) && (_debug.verbose))){
output = "";
output = ("Flash->JS: " + functionName);
output = (output + "( ");
if (args.length > 0){
output = (output + args.join(","));
};
output = (output + " )");
_debug.info(output);
};
args.unshift(functionName);
return (ExternalInterface.call.apply(ExternalInterface, args));
} catch(e:SecurityError) {
if (_debug.javascript){
_debug.warning("ExternalInterface is not allowed.\nEnsure that allowScriptAccess is set to \"always\" in the Flash embed HTML.");
};
} catch(e:Error) {
if (_debug.javascript){
_debug.warning(("ExternalInterface failed to make the call\nreason: " + e.message));
};
};
};
return (null);
}
public function isAvailable():Boolean{
var _local1:Boolean;
_local1 = ExternalInterface.available;
if (((_local1) && ((Capabilities.playerType == "External")))){
_local1 = false;
};
if (((((!(_local1)) && (_debug.javascript))) && (_notAvailableWarning))){
_debug.warning("ExternalInterface is not available.");
_notAvailableWarning = false;
};
return (_local1);
}
}
}//package com.google.analytics.external
Section 57
//Environment (com.google.analytics.utils.Environment)
package com.google.analytics.utils {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
import com.google.analytics.external.*;
import flash.system.*;
public class Environment {
private var _dom:HTMLDOM;
private var _appName:String;
private var _debug:DebugConfiguration;
private var _appVersion:Version;
private var _url:String;
private var _protocol:Protocols;
private var _userAgent:UserAgent;
public function Environment(_arg1:String="", _arg2:String="", _arg3:String="", _arg4:DebugConfiguration=null, _arg5:HTMLDOM=null){
var _local6:Version;
super();
if (_arg2 == ""){
if (isAIR()){
_arg2 = "AIR";
} else {
_arg2 = "Flash";
};
};
if (_arg3 == ""){
_local6 = flashVersion;
} else {
_local6 = Version.fromString(_arg3);
};
_url = _arg1;
_appName = _arg2;
_appVersion = _local6;
_debug = _arg4;
_dom = _arg5;
}
public function isAIR():Boolean{
return ((((playerType == "Desktop")) && ((Security.sandboxType.toString() == "application"))));
}
public function get playerType():String{
return (Capabilities.playerType);
}
public function get locationSearch():String{
var _local1:String;
_local1 = _dom.search;
if (_local1){
return (_local1);
};
return ("");
}
public function get protocol():Protocols{
if (!_protocol){
_findProtocol();
};
return (_protocol);
}
public function get flashVersion():Version{
var _local1:Version;
_local1 = Version.fromString(Capabilities.version.split(" ")[1], ",");
return (_local1);
}
public function get screenWidth():Number{
return (Capabilities.screenResolutionX);
}
public function get languageEncoding():String{
var _local1:String;
if (System.useCodePage){
_local1 = _dom.characterSet;
if (_local1){
return (_local1);
};
return ("-");
};
return ("UTF-8");
}
public function get appName():String{
return (_appName);
}
public function get screenColorDepth():String{
var _local1:String;
var _local2:String;
switch (Capabilities.screenColor){
case "bw":
_local1 = "1";
break;
case "gray":
_local1 = "2";
break;
case "color":
default:
_local1 = "24";
};
_local2 = _dom.colorDepth;
if (_local2){
_local1 = _local2;
};
return (_local1);
}
private function _findProtocol():void{
var _local1:Protocols;
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:String;
_local1 = Protocols.none;
if (_url != ""){
_local4 = _url.toLowerCase();
_local5 = _local4.substr(0, 5);
switch (_local5){
case "file:":
_local1 = Protocols.file;
break;
case "http:":
_local1 = Protocols.HTTP;
break;
case "https":
if (_local4.charAt(5) == ":"){
_local1 = Protocols.HTTPS;
};
break;
default:
_protocol = Protocols.none;
};
};
_local2 = _dom.protocol;
_local3 = (_local1.toString() + ":").toLowerCase();
if (((((_local2) && (!((_local2 == _local3))))) && (_debug))){
_debug.warning(((("Protocol mismatch: SWF=" + _local3) + ", DOM=") + _local2));
};
_protocol = _local1;
}
public function get locationSWFPath():String{
return (_url);
}
public function get platform():String{
var _local1:String;
_local1 = Capabilities.manufacturer;
return (_local1.split("Adobe ")[1]);
}
public function get operatingSystem():String{
return (Capabilities.os);
}
public function set appName(_arg1:String):void{
_appName = _arg1;
userAgent.applicationProduct = _arg1;
}
public function get userAgent():UserAgent{
if (!_userAgent){
_userAgent = new UserAgent(this, appName, appVersion.toString(4));
};
return (_userAgent);
}
ga_internal function set url(_arg1:String):void{
_url = _arg1;
}
public function get referrer():String{
var _local1:String;
_local1 = _dom.referrer;
if (_local1){
return (_local1);
};
if (protocol == Protocols.file){
return ("localhost");
};
return ("");
}
public function isInHTML():Boolean{
return ((Capabilities.playerType == "PlugIn"));
}
public function get language():String{
var _local1:String;
var _local2:String;
_local1 = _dom.language;
_local2 = Capabilities.language;
if (_local1){
if ((((_local1.length > _local2.length)) && ((_local1.substr(0, _local2.length) == _local2)))){
_local2 = _local1;
};
};
return (_local2);
}
public function get domainName():String{
var _local1:String;
var _local2:String;
var _local3:int;
if ((((protocol == Protocols.HTTP)) || ((protocol == Protocols.HTTPS)))){
_local1 = _url.toLowerCase();
if (protocol == Protocols.HTTP){
_local2 = _local1.split("http://").join("");
} else {
if (protocol == Protocols.HTTPS){
_local2 = _local1.split("https://").join("");
};
};
_local3 = _local2.indexOf("/");
if (_local3 > -1){
_local2 = _local2.substring(0, _local3);
};
return (_local2);
};
if (protocol == Protocols.file){
return ("localhost");
};
return ("");
}
public function set userAgent(_arg1:UserAgent):void{
_userAgent = _arg1;
}
public function set appVersion(_arg1:Version):void{
_appVersion = _arg1;
userAgent.applicationVersion = _arg1.toString(4);
}
public function get screenHeight():Number{
return (Capabilities.screenResolutionY);
}
public function get locationPath():String{
var _local1:String;
_local1 = _dom.pathname;
if (_local1){
return (_local1);
};
return ("");
}
public function get documentTitle():String{
var _local1:String;
_local1 = _dom.title;
if (_local1){
return (_local1);
};
return ("");
}
public function get appVersion():Version{
return (_appVersion);
}
}
}//package com.google.analytics.utils
Section 58
//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 59
//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 60
//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;
_local1 = _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 search():String{
var _local1:String;
_local1 = _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);
}
public function get subDomain():String{
if (((!((domain == ""))) && (!((domain == hostName))))){
return (hostName.split(("." + domain)).join(""));
};
return ("");
}
public function get protocol():Protocols{
var _local1:String;
_local1 = _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;
_local1 = _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);
}
}
}//package com.google.analytics.utils
Section 61
//UserAgent (com.google.analytics.utils.UserAgent)
package com.google.analytics.utils {
import com.google.analytics.core.*;
import flash.system.*;
public class UserAgent {
private var _version:Version;
private var _localInfo:Environment;
private var _applicationProduct:String;
public static var minimal:Boolean = false;
public function UserAgent(_arg1:Environment, _arg2:String="", _arg3:String=""){
_localInfo = _arg1;
applicationProduct = _arg2;
_version = Version.fromString(_arg3);
}
public function get tamarinProductToken():String{
if (UserAgent.minimal){
return ("");
};
if (System.vmVersion){
return (("Tamarin/" + Utils.trim(System.vmVersion, true)));
};
return ("");
}
public function set applicationProduct(_arg1:String):void{
_applicationProduct = _arg1;
}
public function get applicationVersion():String{
return (_version.toString(2));
}
public function get applicationProductToken():String{
var _local1:String;
_local1 = applicationProduct;
if (applicationVersion != ""){
_local1 = (_local1 + ("/" + applicationVersion));
};
return (_local1);
}
public function get vendorProductToken():String{
var _local1:String;
_local1 = "";
if (_localInfo.isAIR()){
_local1 = (_local1 + "AIR");
} else {
_local1 = (_local1 + "FlashPlayer");
};
_local1 = (_local1 + "/");
_local1 = (_local1 + _version.toString(3));
return (_local1);
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + applicationProductToken);
if (applicationComment != ""){
_local1 = (_local1 + (" " + applicationComment));
};
if (tamarinProductToken != ""){
_local1 = (_local1 + (" " + tamarinProductToken));
};
if (vendorProductToken != ""){
_local1 = (_local1 + (" " + vendorProductToken));
};
return (_local1);
}
public function get applicationComment():String{
var _local1:Array;
_local1 = [];
_local1.push(_localInfo.platform);
_local1.push(_localInfo.playerType);
if (!UserAgent.minimal){
_local1.push(_localInfo.operatingSystem);
_local1.push(_localInfo.language);
};
if (Capabilities.isDebugger){
_local1.push("DEBUG");
};
if (_local1.length > 0){
return ((("(" + _local1.join("; ")) + ")"));
};
return ("");
}
public function set applicationVersion(_arg1:String):void{
_version = Version.fromString(_arg1);
}
public function get applicationProduct():String{
return (_applicationProduct);
}
}
}//package com.google.analytics.utils
Section 62
//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 = [];
sort = true;
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;
var _local3:int;
_local2 = _args.length;
_local3 = 0;
while (_local3 < _local2) {
if (!(_args[_local3] is Variables)){
} else {
_join(_args[_local3]);
};
_local3++;
};
}
public function toString():String{
var _local1:Array;
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:int;
var _local7:String;
var _local8:String;
_local1 = [];
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;
var _local7:int;
if (_arg1 == ""){
return;
};
if (_arg1.indexOf("&") > -1){
_local2 = _arg1.split("&");
} else {
_local2 = [_arg1];
};
_local7 = 0;
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 _local1:URLVariables;
var _local2:String;
_local1 = new URLVariables();
for (_local2 in this) {
_local1[_local2] = this[_local2];
};
return (_local1);
}
}
}//package com.google.analytics.utils
Section 63
//Version (com.google.analytics.utils.Version)
package com.google.analytics.utils {
public class Version {
private var _maxBuild:uint;// = 0xFF
private var _maxMinor:uint;// = 15
private var _maxMajor:uint;// = 15
private var _revision:uint;
private var _separator:String;// = "."
private var _maxRevision:uint;// = 0xFFFF
private var _build:uint;
private var _minor:uint;
private var _major:uint;
public function Version(_arg1:uint=0, _arg2:uint=0, _arg3:uint=0, _arg4:uint=0){
var _local5:Version;
_maxMajor = 15;
_maxMinor = 15;
_maxBuild = 0xFF;
_maxRevision = 0xFFFF;
_separator = ".";
super();
if ((((((((_arg1 > _maxMajor)) && ((_arg2 == 0)))) && ((_arg3 == 0)))) && ((_arg4 == 0)))){
_local5 = Version.fromNumber(_arg1);
_arg1 = _local5.major;
_arg2 = _local5.minor;
_arg3 = _local5.build;
_arg4 = _local5.revision;
};
this.major = _arg1;
this.minor = _arg2;
this.build = _arg3;
this.revision = _arg4;
}
public function toString(_arg1:int=0):String{
var _local2:Array;
if ((((_arg1 <= 0)) || ((_arg1 > 4)))){
_arg1 = getFields();
};
switch (_arg1){
case 1:
_local2 = [major];
break;
case 2:
_local2 = [major, minor];
break;
case 3:
_local2 = [major, minor, build];
break;
case 4:
default:
_local2 = [major, minor, build, revision];
};
return (_local2.join(_separator));
}
public function get revision():uint{
return (_revision);
}
public function set build(_arg1:uint):void{
_build = Math.min(_arg1, _maxBuild);
}
public function set minor(_arg1:uint):void{
_minor = Math.min(_arg1, _maxMinor);
}
public function get build():uint{
return (_build);
}
public function set major(_arg1:uint):void{
_major = Math.min(_arg1, _maxMajor);
}
public function get minor():uint{
return (_minor);
}
public function valueOf():uint{
return (((((major << 28) | (minor << 24)) | (build << 16)) | revision));
}
public function get major():uint{
return (_major);
}
public function set revision(_arg1:uint):void{
_revision = Math.min(_arg1, _maxRevision);
}
private function getFields():int{
var _local1:int;
_local1 = 4;
if (revision == 0){
_local1--;
};
if ((((_local1 == 3)) && ((build == 0)))){
_local1--;
};
if ((((_local1 == 2)) && ((minor == 0)))){
_local1--;
};
return (_local1);
}
public function equals(_arg1):Boolean{
if (!(_arg1 is Version)){
return (false);
};
if ((((((((_arg1.major == major)) && ((_arg1.minor == minor)))) && ((_arg1.build == build)))) && ((_arg1.revision == revision)))){
return (true);
};
return (false);
}
public static function fromString(_arg1:String="", _arg2:String="."):Version{
var _local3:Version;
var _local4:Array;
_local3 = new (Version);
if ((((_arg1 == "")) || ((_arg1 == null)))){
return (_local3);
};
if (_arg1.indexOf(_arg2) > -1){
_local4 = _arg1.split(_arg2);
_local3.major = parseInt(_local4[0]);
_local3.minor = parseInt(_local4[1]);
_local3.build = parseInt(_local4[2]);
_local3.revision = parseInt(_local4[3]);
} else {
_local3.major = parseInt(_arg1);
};
return (_local3);
}
public static function fromNumber(_arg1:Number=0):Version{
var _local2:Version;
_local2 = new (Version);
if (((((((((((isNaN(_arg1)) || ((_arg1 == 0)))) || ((_arg1 < 0)))) || ((_arg1 == Number.MAX_VALUE)))) || ((_arg1 == Number.POSITIVE_INFINITY)))) || ((_arg1 == Number.NEGATIVE_INFINITY)))){
return (_local2);
};
_local2.major = (_arg1 >>> 28);
_local2.minor = ((_arg1 & 251658240) >>> 24);
_local2.build = ((_arg1 & 0xFF0000) >>> 16);
_local2.revision = (_arg1 & 0xFFFF);
return (_local2);
}
}
}//package com.google.analytics.utils
Section 64
//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;
_hasGATracker = false;
_jsContainer = "_GATracker";
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 setClientInfo(_arg1:Boolean):void{
_debug.info((("setClientInfo( " + _arg1) + " )"));
_call("_setClientInfo", _arg1);
}
public function trackTrans():void{
_debug.info("trackTrans()");
_call("_trackTrans");
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
var _local5:int;
_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 trackPageview(_arg1:String=""):void{
_debug.info((("trackPageview( " + _arg1) + " )"));
_call("_trackPageview", _arg1);
}
public function setCookieTimeout(_arg1:int):void{
_debug.info((("setCookieTimeout( " + _arg1) + " )"));
_call("_setCookieTimeout", _arg1);
}
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"));
}
public function getClientInfo():Boolean{
_debug.info("getClientInfo()");
return (_call("_getClientInfo"));
}
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;
var _local3:Boolean;
_local2 = _proxy.hasProperty(_arg1);
_local3 = _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 setDetectFlash(_arg1:Boolean):void{
_debug.info((("setDetectFlash( " + _arg1) + " )"));
_call("_setDetectFlash", _arg1);
}
public function setCampNameKey(_arg1:String):void{
_debug.info((("setCampNameKey( " + _arg1) + " )"));
_call("_setCampNameKey", _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 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 setCampSourceKey(_arg1:String):void{
_debug.info((("setCampSourceKey( " + _arg1) + " )"));
_call("_setCampSourceKey", _arg1);
}
public function setCampContentKey(_arg1:String):void{
_debug.info((("setCampContentKey( " + _arg1) + " )"));
_call("_setCampContentKey", _arg1);
}
public function clearIgnoredRef():void{
_debug.info("clearIgnoredRef()");
_call("_clearIgnoreRef");
}
public function setLocalServerMode():void{
_debug.info("setLocalServerMode()");
_call("_setLocalServerMode");
}
public function getLocalGifPath():String{
_debug.info("getLocalGifPath()");
return (_call("_getLocalGifPath"));
}
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);
}
public function setCampTermKey(_arg1:String):void{
_debug.info((("setCampTermKey( " + _arg1) + " )"));
_call("_setCampTermKey", _arg1);
}
private function _createTrackingObject(_arg1:String):void{
_proxy.call(_createTrackingObject_js, _arg1);
}
public function getDetectFlash():Boolean{
_debug.info("getDetectFlash()");
return (_call("_getDetectFlash"));
}
public function setCampaignTrack(_arg1:Boolean):void{
_debug.info((("setCampaignTrack( " + _arg1) + " )"));
_call("_setCampaignTrack", _arg1);
}
public function clearOrganic():void{
_debug.info("clearOrganic()");
_call("_clearOrganic");
}
public function addIgnoredRef(_arg1:String):void{
_debug.info((("addIgnoredRef( " + _arg1) + " )"));
_call("_addIgnoredRef", _arg1);
}
public function setCampMediumKey(_arg1:String):void{
_debug.info((("setCampMediumKey( " + _arg1) + " )"));
_call("_setCampMediumKey", _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 65
//Configuration (com.google.analytics.v4.Configuration)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
import com.google.analytics.utils.*;
import com.google.analytics.campaign.*;
public class Configuration {
public var serverMode:ServerOperationMode;
public var detectFlash:Boolean;// = true
public var allowLocalTracking:Boolean;// = true
public var secureRemoteGIFpath:String;// = "https://ssl.google-analytics.com/__utm.gif"
public var hasSiteOverlay:Boolean;// = false
private var _version:String;// = "4.3as"
public var allowDomainHash:Boolean;// = true
public var detectClientInfo:Boolean;// = true
public var idleLoop:Number;// = 30
public var isTrackOutboundSubdomains:Boolean;// = false
public var cookiePath:String;// = "/"
public var transactionFieldDelim:String;// = "|"
private var _organic:Organic;
private var _cookieName:String;// = "analytics"
public var campaignKey:CampaignKey;
public var google:String;// = "google"
public var googleCsePath:String;// = "cse"
public var bucketCapacity:Number;// = 10
private var _sampleRate:Number;// = 1
public var remoteGIFpath:String;// = "http://www.google-analytics.com/__utm.gif"
public var googleSearchParam:String;// = "q"
public var allowLinker:Boolean;// = false
public var maxOutboundLinkExamined:Number;// = 1000
private var _debug:DebugConfiguration;
private var _trackingLimitPerSession:int;// = 500
private var _domain:Domain;
public var allowAnchor:Boolean;// = false
public var tokenCliff:int;// = 10
public var sessionTimeout:Number;
public var idleTimeout:Number;// = 60
public var campaignTracking:Boolean;// = true
public var domainName:String;// = ""
public var detectTitle:Boolean;// = true
public var tokenRate:Number;// = 0.2
public var conversionTimeout:Number;
public var localGIFpath:String;// = "/__utm.gif"
public function Configuration(_arg1:DebugConfiguration=null){
_version = "4.3as";
_sampleRate = 1;
_trackingLimitPerSession = 500;
_organic = new Organic();
googleCsePath = "cse";
googleSearchParam = "q";
google = "google";
_cookieName = "analytics";
allowDomainHash = true;
allowAnchor = false;
allowLinker = false;
hasSiteOverlay = false;
tokenRate = 0.2;
conversionTimeout = Timespan.sixmonths;
sessionTimeout = Timespan.thirtyminutes;
idleLoop = 30;
idleTimeout = 60;
maxOutboundLinkExamined = 1000;
tokenCliff = 10;
bucketCapacity = 10;
detectClientInfo = true;
detectFlash = true;
detectTitle = true;
campaignKey = new CampaignKey();
campaignTracking = true;
isTrackOutboundSubdomains = false;
serverMode = ServerOperationMode.remote;
localGIFpath = "/__utm.gif";
remoteGIFpath = "http://www.google-analytics.com/__utm.gif";
secureRemoteGIFpath = "https://ssl.google-analytics.com/__utm.gif";
cookiePath = "/";
transactionFieldDelim = "|";
domainName = "";
allowLocalTracking = true;
super();
_debug = _arg1;
_domain = new Domain(DomainNameMode.auto, "", _debug);
serverMode = ServerOperationMode.remote;
_initOrganicSources();
}
public function get organic():Organic{
return (_organic);
}
public function get trackingLimitPerSession():int{
return (_trackingLimitPerSession);
}
private function _initOrganicSources():void{
addOrganicSource(google, googleSearchParam);
addOrganicSource("yahoo", "p");
addOrganicSource("msn", "q");
addOrganicSource("aol", "query");
addOrganicSource("aol", "encquery");
addOrganicSource("lycos", "query");
addOrganicSource("ask", "q");
addOrganicSource("altavista", "q");
addOrganicSource("netscape", "query");
addOrganicSource("cnn", "query");
addOrganicSource("looksmart", "qt");
addOrganicSource("about", "terms");
addOrganicSource("mamma", "query");
addOrganicSource("alltheweb", "q");
addOrganicSource("gigablast", "q");
addOrganicSource("voila", "rdata");
addOrganicSource("virgilio", "qs");
addOrganicSource("live", "q");
addOrganicSource("baidu", "wd");
addOrganicSource("alice", "qs");
addOrganicSource("yandex", "text");
addOrganicSource("najdi", "q");
addOrganicSource("aol", "q");
addOrganicSource("club-internet", "q");
addOrganicSource("mama", "query");
addOrganicSource("seznam", "q");
addOrganicSource("search", "q");
addOrganicSource("wp", "szukaj");
addOrganicSource("onet", "qt");
addOrganicSource("netsprint", "q");
addOrganicSource("google.interia", "q");
addOrganicSource("szukacz", "q");
addOrganicSource("yam", "k");
addOrganicSource("pchome", "q");
addOrganicSource("kvasir", "searchExpr");
addOrganicSource("sesam", "q");
addOrganicSource("ozu", "q");
addOrganicSource("terra", "query");
addOrganicSource("nostrum", "query");
addOrganicSource("mynet", "q");
addOrganicSource("ekolay", "q");
addOrganicSource("search.ilse", "search_for");
}
public function get sampleRate():Number{
return (_sampleRate);
}
public function get cookieName():String{
return (_cookieName);
}
public function addOrganicSource(_arg1:String, _arg2:String):void{
var engine = _arg1;
var keyword = _arg2;
try {
_organic.addSource(engine, keyword);
} catch(e:Error) {
if (((_debug) && (_debug.active))){
_debug.warning(e.message);
};
};
}
public function get domain():Domain{
return (_domain);
}
public function set sampleRate(_arg1:Number):void{
if (_arg1 <= 0){
_arg1 = 0.1;
};
if (_arg1 > 1){
_arg1 = 1;
};
_arg1 = Number(_arg1.toFixed(2));
_sampleRate = _arg1;
}
public function get version():String{
return (_version);
}
}
}//package com.google.analytics.v4
Section 66
//GoogleAnalyticsAPI (com.google.analytics.v4.GoogleAnalyticsAPI)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
public interface GoogleAnalyticsAPI {
function getServiceMode():ServerOperationMode;
function setLocalRemoteServerMode():void;
function setCampSourceKey(_arg1:String):void;
function setCampContentKey(_arg1:String):void;
function addOrganic(_arg1:String, _arg2:String):void;
function setDetectFlash(_arg1:Boolean):void;
function resetSession():void;
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 addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object;
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 trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean;
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 linkByPost(_arg1:Object, _arg2:Boolean=false):void;
function setLocalServerMode():void;
function setDetectTitle(_arg1:Boolean):void;
function setAllowHash(_arg1:Boolean):void;
function clearOrganic():void;
function getAccount():String;
function setDomainName(_arg1:String):void;
function link(_arg1:String, _arg2:Boolean=false):void;
function setCampNOKey(_arg1:String):void;
function getClientInfo():Boolean;
function cookiePathCopy(_arg1:String):void;
function getDetectTitle():Boolean;
}
}//package com.google.analytics.v4
Section 67
//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.utils.*;
import com.google.analytics.data.*;
import com.google.analytics.external.*;
import com.google.analytics.campaign.*;
public class Tracker implements GoogleAnalyticsAPI {
private const EVENT_TRACKER_LABEL_KEY_NUM:int = 3;
private const EVENT_TRACKER_VALUE_VALUE_NUM:int = 1;
private const EVENT_TRACKER_PROJECT_ID:int = 5;
private const EVENT_TRACKER_OBJECT_NAME_KEY_NUM:int = 1;
private const EVENT_TRACKER_TYPE_KEY_NUM:int = 2;
private var _adSense:AdSenseGlobals;
private var _eventTracker:X10;
private var _noSessionInformation:Boolean;// = false
private var _browserInfo:BrowserInfo;
private var _debug:DebugConfiguration;
private var _isNewVisitor:Boolean;// = false
private var _buffer:Buffer;
private var _config:Configuration;
private var _x10Module:X10;
private var _campaign:CampaignManager;
private var _formatedReferrer:String;
private var _timeStamp:Number;
private var _info:Environment;
private var _domainHash:Number;
private var _campaignInfo:CampaignInfo;
private var _gifRequest:GIFRequest;
private var _hasInitData:Boolean;// = false
private var _account:String;
public function Tracker(_arg1:String, _arg2:Configuration, _arg3:DebugConfiguration, _arg4:Environment, _arg5:Buffer, _arg6:GIFRequest, _arg7:AdSenseGlobals){
var _local8:String;
_hasInitData = false;
_isNewVisitor = false;
_noSessionInformation = false;
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 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 trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
var _local5:Boolean;
var _local6:int;
_local5 = true;
_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 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();
}
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{
var _local2:String;
_config.campaignKey.UCCN = _arg1;
_local2 = (("setCampNameKey( " + _config.campaignKey.UCCN) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCCN]"));
} else {
_debug.info(_local2);
};
}
private function _formatReferrer():String{
var _local1:String;
var _local2:String;
var _local3:URL;
var _local4:URL;
_local1 = _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) + " )"));
}
public function getClientInfo():Boolean{
_debug.info("getClientInfo()");
return (_config.detectClientInfo);
}
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);
}
public function setCampContentKey(_arg1:String):void{
var _local2:String;
_config.campaignKey.UCCT = _arg1;
_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()");
}
private function _renderMetricsSearchVariables(_arg1:String=""):Variables{
var _local2:Variables;
var _local3:DocumentInfo;
var _local4:Variables;
var _local5:Variables;
_local2 = new Variables();
_local2.URIencode = true;
_local3 = new DocumentInfo(_config, _info, _formatedReferrer, _arg1, _adSense);
_debug.info(("docInfo: " + _local3.toURLString()), VisualDebugMode.geek);
if (_config.campaignTracking){
_local4 = _campaignInfo.toVariables();
};
_local5 = _browserInfo.toVariables();
_local2.join(_local3.toVariables(), _local5, _local4);
return (_local2);
}
public function clearIgnoredRef():void{
_debug.info("clearIgnoredRef()");
_config.organic.clearIgnoredReferrals();
}
public function setCampSourceKey(_arg1:String):void{
var _local2:String;
_config.campaignKey.UCSR = _arg1;
_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;
var _local2:Boolean;
var _local3:Boolean;
var _local4:Boolean;
var _local5:Boolean;
_local1 = _config.domainName;
_local2 = (_local1.indexOf("www.google.") < 0);
_local3 = (_local1.indexOf(".google.") < 0);
_local4 = (_local1.indexOf("google.") < 0);
_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:String;
_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 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{
var _local2:String;
_config.campaignKey.UCTR = _arg1;
_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);
}
public function setCampNOKey(_arg1:String):void{
var _local2:String;
_config.campaignKey.UCNO = _arg1;
_local2 = (("setCampNOKey( " + _config.campaignKey.UCNO) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCNO]"));
} else {
_debug.info(_local2);
};
}
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{
var _local2:String;
_config.campaignKey.UCMD = _arg1;
_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;
_local1 = ((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 68
//AnalyticsTracker (com.google.analytics.AnalyticsTracker)
package com.google.analytics {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.events.*;
public interface AnalyticsTracker extends GoogleAnalyticsAPI, IEventDispatcher {
function set config(_arg1:Configuration):void;
function isReady():Boolean;
function get mode():String;
function set debug(_arg1:DebugConfiguration):void;
function get account():String;
function set mode(_arg1:String):void;
function get config():Configuration;
function get debug():DebugConfiguration;
function set account(_arg1:String):void;
function get visualDebug():Boolean;
function set visualDebug(_arg1:Boolean):void;
}
}//package com.google.analytics
Section 69
//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: 234 $ ".split(" ")[1];
}
}//package com.google.analytics
Section 70
//GATracker (com.google.analytics.GATracker)
package com.google.analytics {
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import com.google.analytics.utils.*;
import flash.events.*;
import flash.display.*;
import com.google.analytics.external.*;
import com.google.analytics.events.*;
public class GATracker implements AnalyticsTracker {
private var _adSense:AdSenseGlobals;
private var _env:Environment;
private var _visualDebug:Boolean;
private var _idleTimer:IdleTimer;
private var _debug:DebugConfiguration;
private var _buffer:Buffer;
private var _config:Configuration;
private var _mode:String;
private var _display:DisplayObject;
private var _jsproxy:JavascriptProxy;
private var _dom:HTMLDOM;
private var _eventDispatcher:EventDispatcher;
private var _ready:Boolean;// = false
private var _gifRequest:GIFRequest;
private var _account:String;
private var _tracker:GoogleAnalyticsAPI;
public static var version:Version = API.version;
public static var autobuild:Boolean = true;
public function GATracker(_arg1:DisplayObject, _arg2:String, _arg3:String="AS3", _arg4:Boolean=false, _arg5:Configuration=null, _arg6:DebugConfiguration=null){
_ready = false;
super();
_display = _arg1;
_eventDispatcher = new EventDispatcher(this);
_tracker = new TrackerCache();
this.account = _arg2;
this.mode = _arg3;
this.visualDebug = _arg4;
if (!_arg6){
this.debug = new DebugConfiguration();
};
if (!_arg5){
this.config = new Configuration(_arg6);
};
if (autobuild){
_factory();
};
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_tracker.link(_arg1, _arg2);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_tracker.addOrganic(_arg1, _arg2);
}
public function setAllowLinker(_arg1:Boolean):void{
_tracker.setAllowLinker(_arg1);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
return (_tracker.trackEvent(_arg1, _arg2, _arg3, _arg4));
}
public function setCookieTimeout(_arg1:int):void{
_tracker.setCookieTimeout(_arg1);
}
public function trackTrans():void{
_tracker.trackTrans();
}
public function trackPageview(_arg1:String=""):void{
_tracker.trackPageview(_arg1);
}
public function getClientInfo():Boolean{
return (_tracker.getClientInfo());
}
public function setClientInfo(_arg1:Boolean):void{
_tracker.setClientInfo(_arg1);
}
public function get account():String{
return (_account);
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_tracker.linkByPost(_arg1, _arg2);
}
public function getDetectTitle():Boolean{
return (_tracker.getDetectTitle());
}
public function dispatchEvent(_arg1:Event):Boolean{
return (_eventDispatcher.dispatchEvent(_arg1));
}
public function get config():Configuration{
return (_config);
}
public function set mode(_arg1:String):void{
_mode = _arg1;
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
_eventDispatcher.removeEventListener(_arg1, _arg2, _arg3);
}
public function setDetectFlash(_arg1:Boolean):void{
_tracker.setDetectFlash(_arg1);
}
public function resetSession():void{
_tracker.resetSession();
}
public function setCampNameKey(_arg1:String):void{
_tracker.setCampNameKey(_arg1);
}
public function get debug():DebugConfiguration{
return (_debug);
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_tracker.addItem(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
private function _bridgeFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (Bridge) v" + version) + "\naccount: ") + account));
return (new Bridge(account, _debug, _jsproxy));
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
_eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function clearIgnoredOrganic():void{
_tracker.clearIgnoredOrganic();
}
public function set account(_arg1:String):void{
_account = _arg1;
}
public function setVar(_arg1:String):void{
_tracker.setVar(_arg1);
}
public function build():void{
if (!isReady()){
_factory();
};
}
public function setDomainName(_arg1:String):void{
_tracker.setDomainName(_arg1);
}
public function createEventTracker(_arg1:String):EventTracker{
return (_tracker.createEventTracker(_arg1));
}
public function set config(_arg1:Configuration):void{
_config = _arg1;
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
return (_tracker.addTrans(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8));
}
public function setCampSourceKey(_arg1:String):void{
_tracker.setCampSourceKey(_arg1);
}
public function setCampContentKey(_arg1:String):void{
_tracker.setCampContentKey(_arg1);
}
public function willTrigger(_arg1:String):Boolean{
return (_eventDispatcher.willTrigger(_arg1));
}
public function setLocalServerMode():void{
_tracker.setLocalServerMode();
}
public function isReady():Boolean{
return (_ready);
}
public function getLocalGifPath():String{
return (_tracker.getLocalGifPath());
}
public function setAllowAnchor(_arg1:Boolean):void{
_tracker.setAllowAnchor(_arg1);
}
public function clearIgnoredRef():void{
_tracker.clearIgnoredRef();
}
public function get mode():String{
return (_mode);
}
public function set debug(_arg1:DebugConfiguration):void{
_debug = _arg1;
}
public function setLocalGifPath(_arg1:String):void{
_tracker.setLocalGifPath(_arg1);
}
public function getVersion():String{
return (_tracker.getVersion());
}
public function setSampleRate(_arg1:Number):void{
_tracker.setSampleRate(_arg1);
}
public function setCookiePath(_arg1:String):void{
_tracker.setCookiePath(_arg1);
}
public function setAllowHash(_arg1:Boolean):void{
_tracker.setAllowHash(_arg1);
}
public function setCampNOKey(_arg1:String):void{
_tracker.setCampNOKey(_arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
_tracker.addIgnoredOrganic(_arg1);
}
public function setLocalRemoteServerMode():void{
_tracker.setLocalRemoteServerMode();
}
public function cookiePathCopy(_arg1:String):void{
_tracker.cookiePathCopy(_arg1);
}
private function _factory():void{
var _local1:GoogleAnalyticsAPI;
var _local2:TrackerCache;
_jsproxy = new JavascriptProxy(debug);
if (visualDebug){
debug.layout = new Layout(debug, _display);
debug.active = visualDebug;
};
_local2 = (_tracker as TrackerCache);
switch (mode){
case TrackerMode.BRIDGE:
_local1 = _bridgeFactory();
break;
case TrackerMode.AS3:
default:
_local1 = _trackerFactory();
};
if (!_local2.isEmpty()){
_local2.tracker = _local1;
_local2.flush();
};
_tracker = _local1;
_ready = true;
dispatchEvent(new AnalyticsEvent(AnalyticsEvent.READY, this));
}
public function setCampTermKey(_arg1:String):void{
_tracker.setCampTermKey(_arg1);
}
private function _trackerFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (AS3) v" + version) + "\naccount: ") + account));
_adSense = new AdSenseGlobals(debug);
_dom = new HTMLDOM(debug);
_dom.cacheProperties();
_env = new Environment("", "", "", debug, _dom);
_buffer = new Buffer(config, debug, false);
_gifRequest = new GIFRequest(config, debug, _buffer, _env);
_idleTimer = new IdleTimer(config, debug, _display, _buffer);
_env.url = _display.stage.loaderInfo.url;
return (new Tracker(account, config, debug, _env, _buffer, _gifRequest, _adSense));
}
public function setDetectTitle(_arg1:Boolean):void{
_tracker.setDetectTitle(_arg1);
}
public function getServiceMode():ServerOperationMode{
return (_tracker.getServiceMode());
}
public function clearOrganic():void{
_tracker.clearOrganic();
}
public function setCampaignTrack(_arg1:Boolean):void{
_tracker.setCampaignTrack(_arg1);
}
public function addIgnoredRef(_arg1:String):void{
_tracker.addIgnoredRef(_arg1);
}
public function set visualDebug(_arg1:Boolean):void{
_visualDebug = _arg1;
}
public function setCampMediumKey(_arg1:String):void{
_tracker.setCampMediumKey(_arg1);
}
public function setSessionTimeout(_arg1:int):void{
_tracker.setSessionTimeout(_arg1);
}
public function getDetectFlash():Boolean{
return (_tracker.getDetectFlash());
}
public function get visualDebug():Boolean{
return (_visualDebug);
}
public function getAccount():String{
return (_tracker.getAccount());
}
public function hasEventListener(_arg1:String):Boolean{
return (_eventDispatcher.hasEventListener(_arg1));
}
public function setRemoteServerMode():void{
_tracker.setRemoteServerMode();
}
}
var _local1:* = ServerOperationMode;
return (_local1);
}//package com.google.analytics
Section 71
//Tracker (com.memecounter.Tracker)
package com.memecounter {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.system.*;
public class Tracker {
private static var ori_dom:String;
private static var lurl:String;
private static var _isReady:Boolean = false;
public static var a:uint = 0;
public static var root:DisplayObject;
public static var c:uint;
public static var d:String = "";
private static var _isInited:Boolean = false;
public static var fpv:String = "";
private static var l:Loader;
private static var tracker:MovieClip;
public static var da:Array = ["distralytics.com", "distralytics.co.uk"];
private static function loadError(_arg1:Event):void{
a++;
lc();
}
public static function init(_arg1:uint, _arg2:DisplayObject):void{
var _local3:uint;
if (!_isInited){
_isInited = true;
c = _arg1;
root = _arg2;
_local3 = 0;
while (_local3 < da.length) {
Security.allowDomain(da[_local3], ((c + ".c.") + da[_local3]), ("*." + da[_local3]));
_local3++;
};
ori_dom = (root.loaderInfo.parameters.hasOwnProperty("ori_dom")) ? root.loaderInfo.parameters.ori_dom : "";
d = ((ori_dom)!="") ? ori_dom : ((root.loaderInfo.loaderURL.split("/")[0].indexOf("http"))==-1) ? "Local" : root.loaderInfo.loaderURL.split("/")[2].split("?")[0];
fpv = Capabilities.version.split(" ")[1].split(",")[0];
lurl = ((((((((("/control/tracking/trackerAS3.swf" + "?c=") + c) + "&r=") + Math.floor((Math.random() * 10000000000))) + "&d=") + d) + "&p=") + fpv) + "&as=3");
l = new Loader();
l.contentLoaderInfo.addEventListener(Event.INIT, loadComplete);
l.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
lc();
};
}
public static function get isReady():Boolean{
return (_isReady);
}
public static function kvClick(_arg1:uint):void{
if (_isReady){
tracker.kvClick(_arg1);
};
}
public static function kvCountry():String{
if (_isReady){
return (tracker.kvCountry());
};
return ("");
}
public static function kvEvent(_arg1:uint):void{
if (_isReady){
tracker.kvEvent(_arg1);
};
}
private static function lc():void{
var _local1:String = (((("http://" + c) + ".c.") + da[(a % da.length)]) + lurl);
Security.allowDomain(_local1);
l.load(new URLRequest(_local1));
}
private static function loadComplete(_arg1:Event):void{
tracker = _arg1.target.content;
tracker.init(getDefinitionByName("com.memecounter.Tracker"), root);
_isReady = true;
}
}
}//package com.memecounter
Section 72
//achievement1_67 (highdive_fla.achievement1_67)
package highdive_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class achievement1_67 extends MovieClip {
public var a1But:SimpleButton;
public var a0But:SimpleButton;
public function achievement1_67(){
addFrameScript(0, frame1, 1, frame2);
}
function frame2(){
a1But.addEventListener(MouseEvent.MOUSE_OVER, tellText);
a1But.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(parent).resetText);
}
public function tellText0(_arg1:MouseEvent):void{
MovieClip(parent).acText.text = "POOL MASTER - MUST COMPLETE ALL POOL LEVELS";
}
function frame1(){
stop();
a0But.addEventListener(MouseEvent.MOUSE_OVER, tellText0);
a0But.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(parent).resetText);
}
public function tellText(_arg1:MouseEvent):void{
MovieClip(parent).acText.text = "POOL MASTER - COMPLETED ALL POOL LEVELS";
}
}
}//package highdive_fla
Section 73
//achievement2_69 (highdive_fla.achievement2_69)
package highdive_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class achievement2_69 extends MovieClip {
public var a1But:SimpleButton;
public var a0But:SimpleButton;
public function achievement2_69(){
addFrameScript(0, frame1, 1, frame2);
}
function frame2(){
a1But.addEventListener(MouseEvent.MOUSE_OVER, tellText);
a1But.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(parent).resetText);
}
public function tellText0(_arg1:MouseEvent):void{
MovieClip(parent).acText.text = "BATH MASTER - MUST COMPLETE ALL BATH LEVELS";
}
function frame1(){
stop();
a0But.addEventListener(MouseEvent.MOUSE_OVER, tellText0);
a0But.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(parent).resetText);
}
public function tellText(_arg1:MouseEvent):void{
MovieClip(parent).acText.text = "BATH MASTER - COMPLETED ALL BATH LEVELS";
}
}
}//package highdive_fla
Section 74
//achievement3_70 (highdive_fla.achievement3_70)
package highdive_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class achievement3_70 extends MovieClip {
public var a1But:SimpleButton;
public var a0But:SimpleButton;
public function achievement3_70(){
addFrameScript(0, frame1, 1, frame2);
}
function frame2(){
a1But.addEventListener(MouseEvent.MOUSE_OVER, tellText);
a1But.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(parent).resetText);
}
public function tellText0(_arg1:MouseEvent):void{
MovieClip(parent).acText.text = "CAN MASTER - MUST COMPLETE ALL CAN LEVELS";
}
function frame1(){
stop();
a0But.addEventListener(MouseEvent.MOUSE_OVER, tellText0);
a0But.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(parent).resetText);
}
public function tellText(_arg1:MouseEvent):void{
MovieClip(parent).acText.text = "CAN MASTER - COMPLETED ALL CAN LEVELS";
}
}
}//package highdive_fla
Section 75
//achievement4_71 (highdive_fla.achievement4_71)
package highdive_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class achievement4_71 extends MovieClip {
public var a1But:SimpleButton;
public var a0But:SimpleButton;
public function achievement4_71(){
addFrameScript(0, frame1, 1, frame2);
}
function frame2(){
a1But.addEventListener(MouseEvent.MOUSE_OVER, tellText);
a1But.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(parent).resetText);
}
public function tellText0(_arg1:MouseEvent):void{
MovieClip(parent).acText.text = "GLUTTON FOR PUNISHMENT - MISS TARGET 20 TIMES";
}
function frame1(){
stop();
a0But.addEventListener(MouseEvent.MOUSE_OVER, tellText0);
a0But.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(parent).resetText);
}
public function tellText(_arg1:MouseEvent):void{
MovieClip(parent).acText.text = "GLUTTON FOR PUNISHMENT - TARGET MISSED 20 TIMES";
}
}
}//package highdive_fla
Section 76
//achievement5_72 (highdive_fla.achievement5_72)
package highdive_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class achievement5_72 extends MovieClip {
public var a1But:SimpleButton;
public var a0But:SimpleButton;
public function achievement5_72(){
addFrameScript(0, frame1, 1, frame2);
}
function frame2(){
a1But.addEventListener(MouseEvent.MOUSE_OVER, tellText);
a1But.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(parent).resetText);
}
public function tellText0(_arg1:MouseEvent):void{
MovieClip(parent).acText.text = "LORD OF THE DIVES - HIT TARGET 20 TIMES";
}
function frame1(){
stop();
a0But.addEventListener(MouseEvent.MOUSE_OVER, tellText0);
a0But.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(parent).resetText);
}
public function tellText(_arg1:MouseEvent):void{
MovieClip(parent).acText.text = "LORD OF THE DIVES - HIT THE TARGET 20 TIMES";
}
}
}//package highdive_fla
Section 77
//achievement6_73 (highdive_fla.achievement6_73)
package highdive_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class achievement6_73 extends MovieClip {
public var a1But:SimpleButton;
public var a0But:SimpleButton;
public function achievement6_73(){
addFrameScript(0, frame1, 1, frame2);
}
function frame2(){
a1But.addEventListener(MouseEvent.MOUSE_OVER, tellText);
a1But.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(parent).resetText);
}
public function tellText0(_arg1:MouseEvent):void{
MovieClip(parent).acText.text = "PERFECTION - MUST COLLECT ALL RINGS";
}
function frame1(){
stop();
a0But.addEventListener(MouseEvent.MOUSE_OVER, tellText0);
a0But.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(parent).resetText);
}
public function tellText(_arg1:MouseEvent):void{
MovieClip(parent).acText.text = "PERFECTION - ALL RINGS COLLECTED";
}
}
}//package highdive_fla
Section 78
//achievementBox_119 (highdive_fla.achievementBox_119)
package highdive_fla {
import flash.display.*;
import flash.text.*;
public dynamic class achievementBox_119 extends MovieClip {
public var achievementBonusPoints:TextField;
public var gotIcon:MovieClip;
public var achievementName:TextField;
public var newAchievementText:MovieClip;
public function achievementBox_119(){
addFrameScript(0, frame1, 7, frame8);
}
function frame8(){
stop();
}
function frame1(){
achievementBonusPoints.visible = false;
achievementName.visible = false;
newAchievementText.visible = true;
gotIcon.visible = false;
stop();
}
}
}//package highdive_fla
Section 79
//bg_100 (highdive_fla.bg_100)
package highdive_fla {
import flash.display.*;
public dynamic class bg_100 extends MovieClip {
public function bg_100(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package highdive_fla
Section 80
//buttonAnims_18 (highdive_fla.buttonAnims_18)
package highdive_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class buttonAnims_18 extends MovieClip {
public var toVimtoSiteBut:SimpleButton;
public var highBut:SimpleButton;
public var ecardBut:SimpleButton;
public var stafBut:SimpleButton;
public var playBut:SimpleButton;
public var insBut:SimpleButton;
public var ecardBut2:SimpleButton;
public var toMatmiSiteBut:SimpleButton;
public var toSiteBut:SimpleButton;
public function buttonAnims_18(){
addFrameScript(0, frame1, 14, frame15, 16, frame17, 17, frame18, 27, frame28, 32, frame33, 33, frame34, 41, frame42);
}
function frame33(){
gotoAndStop(17);
playBut.visible = true;
insBut.visible = true;
stafBut.visible = true;
highBut.visible = true;
ecardBut.visible = true;
ecardBut2.visible = true;
toSiteBut.visible = true;
toMatmiSiteBut.visible = true;
toVimtoSiteBut.visible = true;
}
function frame34(){
playBut.visible = false;
insBut.visible = false;
stafBut.visible = false;
highBut.visible = false;
ecardBut.visible = false;
ecardBut2.visible = false;
}
function frame15(){
playBut.visible = true;
insBut.visible = true;
stafBut.visible = true;
highBut.visible = true;
ecardBut.visible = true;
ecardBut2.visible = true;
toSiteBut.visible = true;
toMatmiSiteBut.visible = true;
toVimtoSiteBut.visible = true;
}
function frame17(){
stop();
}
function frame18(){
playBut.visible = false;
insBut.visible = false;
stafBut.visible = false;
highBut.visible = false;
ecardBut.visible = false;
ecardBut2.visible = false;
toVimtoSiteBut.visible = false;
}
function frame1(){
playBut.visible = false;
insBut.visible = false;
stafBut.visible = false;
highBut.visible = false;
ecardBut.visible = false;
ecardBut2.visible = false;
toSiteBut.visible = false;
toMatmiSiteBut.visible = false;
toVimtoSiteBut.visible = false;
MovieClip(parent).setListeners();
}
function frame42(){
stop();
}
function frame28(){
stop();
}
}
}//package highdive_fla
Section 81
//checkBox_31 (highdive_fla.checkBox_31)
package highdive_fla {
import flash.display.*;
public dynamic class checkBox_31 extends MovieClip {
public function checkBox_31(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
stop();
}
}
}//package highdive_fla
Section 82
//completed_125 (highdive_fla.completed_125)
package highdive_fla {
import flash.display.*;
public dynamic class completed_125 extends MovieClip {
public function completed_125(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package highdive_fla
Section 83
//containerMC_5 (highdive_fla.containerMC_5)
package highdive_fla {
import flash.display.*;
public dynamic class containerMC_5 extends MovieClip {
public function containerMC_5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package highdive_fla
Section 84
//didNotBeatScoreMC_124 (highdive_fla.didNotBeatScoreMC_124)
package highdive_fla {
import flash.display.*;
public dynamic class didNotBeatScoreMC_124 extends MovieClip {
public var completedMC:MovieClip;
public function didNotBeatScoreMC_124(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package highdive_fla
Section 85
//diver1MC_87 (highdive_fla.diver1MC_87)
package highdive_fla {
import flash.display.*;
public dynamic class diver1MC_87 extends MovieClip {
public function diver1MC_87(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
stop();
}
}
}//package highdive_fla
Section 86
//end_levelAchievementUnlocked_121 (highdive_fla.end_levelAchievementUnlocked_121)
package highdive_fla {
import flash.display.*;
public dynamic class end_levelAchievementUnlocked_121 extends MovieClip {
public function end_levelAchievementUnlocked_121(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package highdive_fla
Section 87
//faderGameMC_113 (highdive_fla.faderGameMC_113)
package highdive_fla {
import flash.display.*;
public dynamic class faderGameMC_113 extends MovieClip {
public function faderGameMC_113(){
addFrameScript(0, frame1, 57, frame58);
}
function frame58(){
stop();
MovieClip(parent).nextScene();
}
function frame1(){
stop();
}
}
}//package highdive_fla
Section 88
//faderIntro_108 (highdive_fla.faderIntro_108)
package highdive_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class faderIntro_108 extends MovieClip {
public function faderIntro_108(){
addFrameScript(9, frame10, 18, frame19);
}
function frame10(){
stop();
}
function frame19(){
stop();
MovieClip(root).straightToLevels = true;
MovieClip(root).gotoAndStop(1, "mainmenu");
}
}
}//package highdive_fla
Section 89
//fadeToBlack_103 (highdive_fla.fadeToBlack_103)
package highdive_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class fadeToBlack_103 extends MovieClip {
public function fadeToBlack_103(){
addFrameScript(7, frame8, 16, frame17);
}
function frame17(){
stop();
MovieClip(root).soundEffects.killSound();
MovieClip(parent).play();
}
function frame8(){
stop();
}
}
}//package highdive_fla
Section 90
//fallDip2_88 (highdive_fla.fallDip2_88)
package highdive_fla {
import flash.display.*;
public dynamic class fallDip2_88 extends MovieClip {
public function fallDip2_88(){
addFrameScript(0, frame1, 3, frame4);
}
function frame1(){
stop();
}
function frame4(){
stop();
}
}
}//package highdive_fla
Section 91
//fruitMC_86 (highdive_fla.fruitMC_86)
package highdive_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class fruitMC_86 extends MovieClip {
public var hitAreaBox:MovieClip;
public var diverMC:MovieClip;
public function fruitMC_86(){
addFrameScript(0, frame1, 7, frame8, 17, frame18, 27, frame28, 38, frame39, 47, frame48, 57, frame58, 58, frame59, 62, frame63);
}
function frame1(){
stop();
MovieClip(parent).currentShape = 1;
MovieClip(parent).done = true;
}
function frame63(){
stop();
}
function frame58(){
MovieClip(parent).currentShape = 1;
MovieClip(parent).done = true;
stop();
}
function frame48(){
stop();
MovieClip(parent).currentShape = 2;
MovieClip(parent).done = true;
}
function frame8(){
stop();
MovieClip(parent).currentShape = 2;
MovieClip(parent).done = true;
}
function frame39(){
stop();
MovieClip(parent).currentShape = 3;
MovieClip(parent).done = true;
}
function frame59(){
MovieClip(parent).done = false;
}
function frame28(){
MovieClip(parent).currentShape = 1;
MovieClip(parent).done = true;
stop();
}
function frame18(){
stop();
MovieClip(parent).currentShape = 3;
MovieClip(parent).done = true;
}
}
}//package highdive_fla
Section 92
//groundClip_16 (highdive_fla.groundClip_16)
package highdive_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class groundClip_16 extends MovieClip {
public var hitAreaBox:MovieClip;
public function groundClip_16(){
addFrameScript(0, frame1, 7, frame8, 17, frame18, 27, frame28);
}
function frame1(){
stop();
}
function frame18(){
MovieClip(parent.parent.parent).soundEffects.fadeSound2();
}
function frame28(){
MovieClip(parent.parent.parent).soundEffects.fadeSound2();
}
function frame8(){
MovieClip(parent.parent.parent).soundEffects.fadeSound2();
}
}
}//package highdive_fla
Section 93
//highDiveTitleMC_40 (highdive_fla.highDiveTitleMC_40)
package highdive_fla {
import flash.display.*;
public dynamic class highDiveTitleMC_40 extends MovieClip {
public function highDiveTitleMC_40(){
addFrameScript(14, frame15, 23, frame24, 31, frame32);
}
function frame15(){
stop();
}
function frame32(){
stop();
}
function frame24(){
stop();
}
}
}//package highdive_fla
Section 94
//highScoresBanner_55 (highdive_fla.highScoresBanner_55)
package highdive_fla {
import flash.display.*;
public dynamic class highScoresBanner_55 extends MovieClip {
public function highScoresBanner_55(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package highdive_fla
Section 95
//infoMC_111 (highdive_fla.infoMC_111)
package highdive_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class infoMC_111 extends MovieClip {
public var lvl:TextField;
public var info:MovieClip;
public var pts:TextField;
public function infoMC_111(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
pts.text = (String(MovieClip(root)[("minScore_level" + MovieClip(root).levelNumber)]) + "PTS");
info.buttonMode = true;
if (MovieClip(root).levelNumber == 1){
stop();
} else {
gotoAndStop(2);
};
}
function frame2(){
pts.text = (String(MovieClip(root)[("minScore_level" + MovieClip(root).levelNumber)]) + "PTS");
lvl.text = ("LEVEL " + String(MovieClip(root).levelNumber));
}
}
}//package highdive_fla
Section 96
//instructionsBanner_43 (highdive_fla.instructionsBanner_43)
package highdive_fla {
import flash.events.*;
import flash.display.*;
public dynamic class instructionsBanner_43 extends MovieClip {
public function instructionsBanner_43(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
addEventListener(MouseEvent.CLICK, moveInstructions);
this.buttonMode = true;
}
public function moveInstructions(_arg1:MouseEvent):void{
if (this.currentFrame != 20){
nextFrame();
} else {
this.gotoAndStop(15);
};
}
}
}//package highdive_fla
Section 97
//instructionsBox_112 (highdive_fla.instructionsBox_112)
package highdive_fla {
import flash.events.*;
import flash.display.*;
public dynamic class instructionsBox_112 extends MovieClip {
public function instructionsBox_112(){
addFrameScript(0, frame1);
}
public function nextInstructions(_arg1:MouseEvent):void{
if (this.currentFrame != 5){
nextFrame();
} else {
this.gotoAndStop(1);
};
}
function frame1(){
stop();
addEventListener(MouseEvent.CLICK, nextInstructions);
}
}
}//package highdive_fla
Section 98
//introBG_104 (highdive_fla.introBG_104)
package highdive_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class introBG_104 extends MovieClip {
public function introBG_104(){
addFrameScript(0, frame1);
}
function frame1(){
switch (MovieClip(root).levelNumber){
case 1:
case 2:
case 3:
stop();
break;
case 4:
case 5:
case 6:
this.gotoAndStop(2);
break;
case 7:
case 8:
case 9:
this.gotoAndStop(3);
break;
};
}
}
}//package highdive_fla
Section 99
//levelSelectBox_57 (highdive_fla.levelSelectBox_57)
package highdive_fla {
import flash.display.*;
public dynamic class levelSelectBox_57 extends MovieClip {
public function levelSelectBox_57(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package highdive_fla
Section 100
//levelSelectBoxRED_61 (highdive_fla.levelSelectBoxRED_61)
package highdive_fla {
import flash.display.*;
public dynamic class levelSelectBoxRED_61 extends MovieClip {
public function levelSelectBoxRED_61(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package highdive_fla
Section 101
//levelSelectBoxYELLOW_59 (highdive_fla.levelSelectBoxYELLOW_59)
package highdive_fla {
import flash.display.*;
public dynamic class levelSelectBoxYELLOW_59 extends MovieClip {
public function levelSelectBoxYELLOW_59(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package highdive_fla
Section 102
//levelUnlockAnim_58 (highdive_fla.levelUnlockAnim_58)
package highdive_fla {
import flash.display.*;
public dynamic class levelUnlockAnim_58 extends MovieClip {
public function levelUnlockAnim_58(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package highdive_fla
Section 103
//levelUnlockAnimRed_62 (highdive_fla.levelUnlockAnimRed_62)
package highdive_fla {
import flash.display.*;
public dynamic class levelUnlockAnimRed_62 extends MovieClip {
public function levelUnlockAnimRed_62(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package highdive_fla
Section 104
//levelUnlockAnimYellow_60 (highdive_fla.levelUnlockAnimYellow_60)
package highdive_fla {
import flash.display.*;
public dynamic class levelUnlockAnimYellow_60 extends MovieClip {
public function levelUnlockAnimYellow_60(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package highdive_fla
Section 105
//loading_95 (highdive_fla.loading_95)
package highdive_fla {
import flash.display.*;
public dynamic class loading_95 extends MovieClip {
public function loading_95(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11);
}
function frame1(){
play();
play();
}
function frame2(){
play();
}
function frame3(){
play();
}
function frame4(){
play();
}
function frame5(){
play();
}
function frame6(){
play();
}
function frame7(){
play();
}
function frame8(){
play();
}
function frame10(){
play();
}
function frame11(){
play();
}
function frame9(){
play();
}
}
}//package highdive_fla
Section 106
//loadingbarFAKER_94 (highdive_fla.loadingbarFAKER_94)
package highdive_fla {
import flash.display.*;
public dynamic class loadingbarFAKER_94 extends MovieClip {
public var moverMC:MovieClip;
public function loadingbarFAKER_94(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package highdive_fla
Section 107
//pickALevelBanner_64 (highdive_fla.pickALevelBanner_64)
package highdive_fla {
import flash.display.*;
public dynamic class pickALevelBanner_64 extends MovieClip {
public function pickALevelBanner_64(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package highdive_fla
Section 108
//pos3_dive_89 (highdive_fla.pos3_dive_89)
package highdive_fla {
import flash.display.*;
public dynamic class pos3_dive_89 extends MovieClip {
public function pos3_dive_89(){
addFrameScript(0, frame1, 7, frame8);
}
function frame8(){
stop();
}
function frame1(){
stop();
}
}
}//package highdive_fla
Section 109
//ring2MC_11 (highdive_fla.ring2MC_11)
package highdive_fla {
import flash.display.*;
public dynamic class ring2MC_11 extends MovieClip {
public function ring2MC_11(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package highdive_fla
Section 110
//ring3MC_13 (highdive_fla.ring3MC_13)
package highdive_fla {
import flash.display.*;
public dynamic class ring3MC_13 extends MovieClip {
public function ring3MC_13(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package highdive_fla
Section 111
//ringMC_8 (highdive_fla.ringMC_8)
package highdive_fla {
import flash.display.*;
public dynamic class ringMC_8 extends MovieClip {
public function ringMC_8(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package highdive_fla
Section 112
//scoreShower_75 (highdive_fla.scoreShower_75)
package highdive_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class scoreShower_75 extends MovieClip {
public var scoreBut2:SimpleButton;
public var emailText:TextField;
public var SaveScoreBut:SimpleButton;
public var scoreText:TextField;
public var ticked:MovieClip;
public var tick:Boolean;
public var nameText:TextField;
public function scoreShower_75(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 24, frame25, 139, frame140, 251, frame252);
}
function frame140(){
gotoAndStop(1);
}
public function submitData(_arg1:MouseEvent):void{
var _local2:Number = 0;
if (MovieClip(root).achievement1){
_local2 = (_local2 + 1000);
};
if (MovieClip(root).achievement2){
_local2 = (_local2 + 2000);
};
if (MovieClip(root).achievement3){
_local2 = (_local2 + 3000);
};
if (MovieClip(root).achievement4){
_local2 = (_local2 + 5000);
};
if (MovieClip(root).achievement5){
_local2 = (_local2 + 8000);
};
if (MovieClip(root).achievement6){
_local2 = (_local2 + 10000);
};
var _local3:Number = 0;
_local3 = Number((((((((((MovieClip(root).score1 + MovieClip(root).score2) + MovieClip(root).score3) + MovieClip(root).score4) + MovieClip(root).score5) + MovieClip(root).score6) + MovieClip(root).score7) + MovieClip(root).score8) + MovieClip(root).score9) + _local2));
var _local4:* = new submitScoreClass(this, nameText.text, emailText.text, _local3, tick);
MovieClip(root).username = nameText.text;
MovieClip(root).email = emailText.text;
MovieClip(root).storeUser();
nextFrame();
}
function frame1(){
stop();
SaveScoreBut.addEventListener(MouseEvent.CLICK, storeScore);
tick = false;
MovieClip(parent).getScoresAndAchievements();
}
function frame2(){
nameText.text = MovieClip(root).username;
emailText.text = MovieClip(root).email;
scoreBut2.addEventListener(MouseEvent.CLICK, submitData);
tick = true;
ticked.gotoAndStop(2);
ticked.addEventListener(MouseEvent.CLICK, changeTicked);
stage.focus = nameText;
nameText.tabIndex = 1;
emailText.tabIndex = 2;
}
function frame3(){
MovieClip(parent.parent).trackThis(2650);
}
function frame252(){
gotoAndStop(2);
}
public function storeScore(_arg1:MouseEvent):void{
nextFrame();
}
public function changeTicked(_arg1:MouseEvent):void{
if (tick){
tick = false;
ticked.gotoAndStop(1);
} else {
if (!tick){
tick = true;
ticked.gotoAndStop(2);
};
};
}
function frame25(){
gotoAndStop(1);
}
}
}//package highdive_fla
Section 113
//SendtoafriendBox_30 (highdive_fla.SendtoafriendBox_30)
package highdive_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class SendtoafriendBox_30 extends MovieClip {
public var contact:Boolean;
public var stafError:MovieClip;
public var closeIt:SimpleButton;
public var sendToaFriendBut:SimpleButton;
public var friendsemail:TextField;
public var youremail:TextField;
public var contactMe:MovieClip;
public var yourname:TextField;
public function SendtoafriendBox_30(){
addFrameScript(4, frame5, 5, frame6, 9, frame10);
}
function frame6(){
stop();
}
function frame5(){
stop();
closeIt.addEventListener(MouseEvent.CLICK, andBack);
contactMe.addEventListener(MouseEvent.CLICK, contacter);
sendToaFriendBut.addEventListener(MouseEvent.CLICK, staf);
contact = false;
contact = true;
contactMe.gotoAndStop(2);
}
function frame10(){
stop();
}
public function contacter(_arg1:MouseEvent):void{
MovieClip(parent.parent.parent).soundEffects.playSound3("_buttonSound");
if (contactMe.currentFrame == 1){
contactMe.gotoAndStop(2);
contact = true;
} else {
contactMe.gotoAndStop(1);
contact = false;
};
}
public function staf(_arg1:MouseEvent):void{
var _local2:*;
MovieClip(parent.parent.parent).soundEffects.playSound3("_buttonSound");
stafError.visible = false;
if (((((((((((!((yourname.text == ""))) && (!((yourname.text == "Your name"))))) && (!((youremail.text == ""))))) && (!((youremail.text == "Your email"))))) && (!((friendsemail.text == ""))))) && (!((friendsemail.text == "Friwend's email"))))){
MovieClip(parent.parent.parent).trackThis(2626);
_local2 = new SendToAFriendClass(this, yourname.text, youremail.text, friendsemail.text, contact);
nextFrame();
} else {
stafError.err.text = "Missing fields";
stafError.visible = true;
};
}
public function andBack(_arg1:MouseEvent):void{
MovieClip(parent.parent.parent).soundEffects.playSound3("_buttonSound");
gotoAndPlay("close");
MovieClip(parent).play();
}
}
}//package highdive_fla
Section 114
//soundOnOff_101 (highdive_fla.soundOnOff_101)
package highdive_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class soundOnOff_101 extends MovieClip {
public function soundOnOff_101(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.addEventListener(MouseEvent.CLICK, MovieClip(root).changeMute);
this.buttonMode = true;
}
function frame2(){
this.addEventListener(MouseEvent.CLICK, MovieClip(root).changeMute);
this.buttonMode = true;
}
}
}//package highdive_fla
Section 115
//stafError_35 (highdive_fla.stafError_35)
package highdive_fla {
import flash.display.*;
import flash.text.*;
public dynamic class stafError_35 extends MovieClip {
public var err:TextField;
public function stafError_35(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package highdive_fla
Section 116
//TitleCharsMC_42 (highdive_fla.TitleCharsMC_42)
package highdive_fla {
import flash.display.*;
public dynamic class TitleCharsMC_42 extends MovieClip {
public function TitleCharsMC_42(){
addFrameScript(0, frame1, 105, frame106, 113, frame114);
}
function frame106(){
gotoAndPlay("loop");
}
function frame1(){
this.mouseEnabled = false;
}
function frame114(){
stop();
}
}
}//package highdive_fla
Section 117
//unlockedLevelMC_127 (highdive_fla.unlockedLevelMC_127)
package highdive_fla {
import flash.display.*;
public dynamic class unlockedLevelMC_127 extends MovieClip {
public function unlockedLevelMC_127(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package highdive_fla
Section 118
//bgClass (bgClass)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class bgClass extends MovieClip {
var _root;
var aTimer;
var type:String;
var velocity;// = 0.0001
public function bgClass(_arg1, _arg2){
aTimer = new Timer(10);
super();
_root = _arg1;
type = _arg2;
gotoAndStop(type);
aTimer.addEventListener(TimerEvent.TIMER, enterframe);
aTimer.start();
}
private function removeObject():void{
aTimer.removeEventListener(TimerEvent.TIMER, enterframe);
aTimer.stop();
_root.removeAChild(this);
}
private function calculateFallSpeed():void{
try {
scaleX = (scaleX + _root.getChildByName("floorMC").scaleX);
scaleY = (scaleY + _root.getChildByName("floorMC").scaleY);
} catch(e:Error) {
scaleX = (scaleX + velocity);
scaleY = (scaleY + velocity);
};
}
private function calculatePosition():void{
var moveAmount:* = 0;
try {
moveAmount = _root.getChildByName("floorMC").moveAmount;
} catch(e:Error) {
moveAmount = (10 / (this.scaleX / 100));
};
this.x = (this.x + (-(_root.mouserX) / moveAmount));
this.y = (this.y + (-(_root.mouserY) / moveAmount));
}
private function enterframe(_arg1:Event):void{
increaseVelocity();
calculatePosition();
calculateFallSpeed();
}
private function increaseVelocity():void{
try {
velocity = _root.getChildByName("floorMC").velocity;
} catch(e:Error) {
velocity = (velocity + (velocity * (this.scaleX / 1500)));
};
}
}
}//package
Section 119
//bubbleSound1 (bubbleSound1)
package {
import flash.media.*;
public dynamic class bubbleSound1 extends Sound {
}
}//package
Section 120
//bubbleSound2 (bubbleSound2)
package {
import flash.media.*;
public dynamic class bubbleSound2 extends Sound {
}
}//package
Section 121
//bubbleSound3 (bubbleSound3)
package {
import flash.media.*;
public dynamic class bubbleSound3 extends Sound {
}
}//package
Section 122
//buttonSound (buttonSound)
package {
import flash.media.*;
public dynamic class buttonSound extends Sound {
}
}//package
Section 123
//cloudLostSound (cloudLostSound)
package {
import flash.media.*;
public dynamic class cloudLostSound extends Sound {
}
}//package
Section 124
//cloudSound (cloudSound)
package {
import flash.media.*;
public dynamic class cloudSound extends Sound {
}
}//package
Section 125
//cloudWonSound (cloudWonSound)
package {
import flash.media.*;
public dynamic class cloudWonSound extends Sound {
}
}//package
Section 126
//collectedBubbleClass (collectedBubbleClass)
package {
import flash.display.*;
public class collectedBubbleClass extends MovieClip {
public function collectedBubbleClass(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
killMe();
}
function frame1(){
this.rotation = (Math.random() * 180);
}
public function killMe():void{
stop();
MovieClip(parent).removeChild(this);
}
}
}//package
Section 127
//diveBoardSideClass (diveBoardSideClass)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class diveBoardSideClass extends MovieClip {
var _root;
var aTimer;
var littleSquare;
var ax;
var ay;
var type:String;
public function diveBoardSideClass(_arg1, _arg2){
aTimer = new Timer(10);
ax = x;
ay = y;
super();
addFrameScript(0, frame1);
_root = _arg1;
type = _arg2;
aTimer.addEventListener(TimerEvent.TIMER, calculatePosition);
aTimer.start();
}
public function removeObject():void{
aTimer.removeEventListener(TimerEvent.TIMER, calculatePosition);
aTimer.stop();
_root.removeAChild(this);
}
private function calculatePosition(_arg1:TimerEvent):void{
var ypos:*;
var topX1:*;
var topX2:*;
var e = _arg1;
if (_root.killAll){
removeObject();
} else {
try {
ypos = (_root.getChildByName("floorMC").y + (800 * _root.getChildByName("floorMC").scaleX));
topX1 = (-((_root.ax * 100)) - 100);
topX2 = (topX1 + 200);
setShape((_root.getChildByName("floorMC").x - 10), ypos, (_root.getChildByName("floorMC").x + 10), ypos, topX1, 300, topX2, 300);
} catch(e:Error) {
};
};
}
function frame1(){
stop();
}
function drawShape(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number):void{
_arg1.graphics.beginFill(0xFFFFFF);
_arg1.graphics.moveTo(_arg2, _arg3);
_arg1.graphics.lineTo(_arg4, _arg5);
_arg1.graphics.lineTo(_arg8, _arg9);
_arg1.graphics.lineTo(_arg6, _arg7);
_arg1.graphics.endFill();
}
function setShape(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8){
var x1 = _arg1;
var y1 = _arg2;
var x2 = _arg3;
var y2 = _arg4;
var x3 = _arg5;
var y3 = _arg6;
var x4 = _arg7;
var y4 = _arg8;
try {
littleSquare.graphics.clear();
removeChild(getChildByName("littleSquare"));
} catch(e:Error) {
};
littleSquare = new Sprite();
drawShape(littleSquare, x1, y1, x2, y2, x3, y3, x4, y4);
addChild(littleSquare);
}
}
}//package
Section 128
//documentClass (documentClass)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import com.memecounter.*;
import com.google.analytics.components.*;
import flash.ui.*;
import flash.system.*;
public class documentClass extends MovieClip {
public var reqscoreText:TextField;
public var splatCount:Number;// = 0
public var ringsScore:Number;// = 0
public var ringsText:TextField;
public var backBut:SimpleButton;
public var mainMenuMC:mainMenuClass;
public var compView:Boolean;
public var __setPropDict:Dictionary;
public var numRings:Number;// = 0
public var cookie;
public var f:Number;
public var __id0_:FlashTracker;
public var tempscoreneeded:Number;// = 0
public var u:Number;
public var z:Number;
public var levelOn;
public var ach;
public var landingScoreText:TextField;
public var tim;
public var backAgain:SimpleButton;
public var username:String;// = ""
public var scoreText:TextField;
public var landedMC:MovieClip;
public var achievement1:Boolean;// = false
public var unlocked;
public var achievement3:Boolean;// = false
public var achievement4:Boolean;// = false
public var achievement6:Boolean;// = false
var hasBeenUnlocked:Array;
public var minScore_level1;// = 300
public var minScore_level2;// = 850
public var minScore_level3;// = 1000
public var minScore_level4;// = 1500
public var minScore_level5;// = 2000
public var minScore_level6;// = 4000
public var minScore_level7;// = 7000
public var minScore_level8;// = 8000
public var BeatScoreMC:MovieClip;
public var bubblesPoppedScoreText:TextField;
public var minScore_level9;// = 10000
public var straightToLevels:Boolean;// = false
public var achievement5:Boolean;// = false
public var soundEffects;
public var hitTarget:Boolean;// = false
public var achievement2:Boolean;// = false
public var gameMC:gameClass;
public var soundBut:MovieClip;
public var count;
public var sound:Boolean;// = true
public var numBubbles:Number;// = 0
public var beginBut:SimpleButton;
public var bubblesText:TextField;
public var tempscore:Number;// = 0
public var numTotalRings1:Number;// = 0
public var numTotalRings2:Number;// = 0
public var numTotalRings3:Number;// = 0
public var numTotalRings4:Number;// = 0
public var numTotalRings5:Number;// = 0
public var numTotalRings6:Number;// = 0
public var numTotalRings7:Number;// = 0
public var numTotalRings8:Number;// = 0
public var numTotalRings9:Number;// = 0
public var backBut3:SimpleButton;
public var bubblesScore:Number;// = 0
public var levelsUnlocked:Number;// = 1
public var fadey:MovieClip;
public var splatCountOnTarget:Number;// = 0
public var faderMC:MovieClip;
public var requiredTotalRings1:Number;// = 3
public var requiredTotalRings2:Number;// = 4
public var requiredTotalRings3:Number;// = 6
public var requiredTotalRings4:Number;// = 7
public var requiredTotalRings5:Number;// = 9
public var requiredTotalRings6:Number;// = 11
public var requiredTotalRings7:Number;// = 16
public var requiredTotalRings8:Number;// = 19
public var requiredTotalRings9:Number;// = 25
public var email:String;// = ""
public var unlockedLevelMC:MovieClip;
public var achievementsMC:MovieClip;
public var score1:Number;// = 0
public var score2:Number;// = 0
public var score5:Number;// = 0
public var score9:Number;// = 0
public var score3:Number;// = 0
public var score6:Number;// = 0
public var score7:Number;// = 0
public var levelNumber:Number;// = 1
public var score8:Number;// = 0
public var score4:Number;// = 0
public var ringsScoreText:TextField;
public function documentClass(){
var cm:ContextMenu;
__setPropDict = new Dictionary(true);
hasBeenUnlocked = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
super();
addFrameScript(0, frame1, 2, frame3, 3, frame4, 4, frame5, 48, frame49, 69, frame70, 121, frame122, 122, frame123, 126, frame127, 127, frame128, 1, frame2);
try {
stage.quality = "HIGH";
cm = new ContextMenu();
cm.hideBuiltInItems();
stage.showDefaultContextMenu = false;
stage.stageFocusRect = false;
stage.tabChildren = false;
} catch(e:Error) {
};
cookie = new SharedObjectReader(this);
Tracker.init(628, MovieClip(root));
getSavedDetails();
}
public function getSavedDetails():void{
var _local1:Array = cookie.Load();
username = _local1[0];
email = _local1[1];
score1 = _local1[2];
score2 = _local1[3];
score3 = _local1[4];
score4 = _local1[5];
score5 = _local1[6];
score6 = _local1[7];
score7 = _local1[8];
score8 = _local1[9];
score9 = _local1[10];
achievement1 = _local1[11];
achievement2 = _local1[12];
achievement3 = _local1[13];
achievement4 = _local1[14];
achievement5 = _local1[15];
achievement6 = _local1[16];
levelsUnlocked = _local1[17];
splatCount = _local1[18];
splatCountOnTarget = _local1[19];
numTotalRings1 = _local1[20];
numTotalRings2 = _local1[21];
numTotalRings3 = _local1[22];
numTotalRings4 = _local1[23];
numTotalRings5 = _local1[24];
numTotalRings6 = _local1[25];
numTotalRings7 = _local1[26];
numTotalRings8 = _local1[27];
numTotalRings9 = _local1[28];
}
public function storeScore(_arg1, _arg2, _arg3):Boolean{
return (cookie.storeScore(_arg1, _arg2, _arg3));
}
public function storeSplatCountOnTarget(_arg1:Number):void{
cookie.storeSplatCountOnTarget(_arg1);
}
public function stagequality(_arg1:String):void{
stage.quality = _arg1;
}
public function clickThis(_arg1, _arg2=""):void{
navigateToURL(new URLRequest(_arg2), "_blank");
Tracker.kvClick(_arg1);
}
public function storeUser():void{
cookie.storeUser(username, email);
}
public function killSound():void{
soundEffects.killSound();
}
public function goBackfromEcard(_arg1:MouseEvent):void{
backBut.visible = false;
var _local2:* = getChildByName("ecardMC");
_local2.unloadEcard();
removeChild(_local2);
}
function frame2(){
if ((((__setPropDict[__id0_] == undefined)) || (!((int(__setPropDict[__id0_]) == 2))))){
__setPropDict[__id0_] = 2;
__setProp___id0__preloader_Layer1_1();
};
}
function frame4(){
if (MovieClip(root).sound){
soundBut.gotoAndStop(1);
} else {
soundBut.gotoAndStop(2);
};
backBut.visible = false;
backBut.addEventListener(MouseEvent.CLICK, goBackfromEcard);
stop();
checkMoveTo(null);
}
function frame1(){
stop();
}
function frame3(){
MovieClip(root).createSounds();
}
function frame5(){
play();
MovieClip(root).soundEffects.loopSound4("_gameSound", 0.1);
MovieClip(root).soundEffects.loopSound2("_windSound");
if (MovieClip(root).sound){
soundBut.gotoAndStop(1);
} else {
soundBut.gotoAndStop(2);
};
backAgain.addEventListener(MouseEvent.CLICK, goBacker);
}
public function backtoMainMenu(_arg1:MouseEvent):void{
var e = _arg1;
try {
MovieClip(root).soundEffects.playSound3("_buttonSound");
} catch(e:Error) {
trace("sound error");
};
try {
backBut.removeEventListener(MouseEvent.CLICK, backtoMainMenu);
} catch(e:Error) {
};
try {
tim.stop();
tim.removeEventListener(TimerEvent.TIMER, nextAch);
} catch(e:Error) {
};
faderMC.gotoAndPlay("fadeIn");
}
public function trackThis(_arg1):void{
Tracker.kvEvent(_arg1);
}
public function nextAch(_arg1:TimerEvent):void{
if (ach[f] == 1){
achievementsMC.achievementName.text = "POOL MASTER - COMPLETED ALL POOL LEVELS";
achievementsMC.achievementBonusPoints.text = "Points reward: 1000pts";
achievementsMC.achievementName.visible = true;
achievementsMC.achievementBonusPoints.visible = true;
achievementsMC.gotIcon.gotoAndStop(ach[f]);
achievementsMC.gotIcon.visible = true;
achievementsMC.gotoAndPlay(2);
} else {
if (ach[f] == 2){
achievementsMC.achievementName.text = "BATH MASTER - COMPLETED ALL BATH LEVELS";
achievementsMC.achievementBonusPoints.text = "Points reward: 2000pts";
achievementsMC.achievementName.visible = true;
achievementsMC.achievementBonusPoints.visible = true;
achievementsMC.gotIcon.gotoAndStop(ach[f]);
achievementsMC.gotIcon.visible = true;
achievementsMC.gotoAndPlay(2);
} else {
if (ach[f] == 3){
achievementsMC.achievementName.text = "CAN MASTER - COMPLETED ALL CAN LEVELS";
achievementsMC.achievementBonusPoints.text = "Points reward: 3000pts";
achievementsMC.achievementName.visible = true;
achievementsMC.achievementBonusPoints.visible = true;
achievementsMC.gotIcon.gotoAndStop(ach[f]);
achievementsMC.gotIcon.visible = true;
achievementsMC.gotoAndPlay(2);
} else {
if (ach[f] == 4){
achievementsMC.achievementName.text = "GLUTTON FOR PUNISHMENT-TARGET MISSED x20";
achievementsMC.achievementBonusPoints.text = "Points reward: 5000pts";
achievementsMC.achievementName.visible = true;
achievementsMC.achievementBonusPoints.visible = true;
achievementsMC.gotIcon.gotoAndStop(ach[f]);
achievementsMC.gotIcon.visible = true;
achievementsMC.gotoAndPlay(2);
} else {
if (ach[f] == 5){
achievementsMC.achievementName.text = "LORD OF THE DIVES - TARGET HIT x20";
achievementsMC.achievementBonusPoints.text = "Points reward: 8000pts";
achievementsMC.achievementName.visible = true;
achievementsMC.achievementBonusPoints.visible = true;
achievementsMC.gotIcon.gotoAndStop(ach[f]);
achievementsMC.gotIcon.visible = true;
achievementsMC.gotoAndPlay(2);
} else {
if (ach[f] == 6){
achievementsMC.achievementName.text = "PERFECTION - ALL RINGS COLLECTED";
achievementsMC.achievementBonusPoints.text = "Points reward: 10000pts";
achievementsMC.achievementName.visible = true;
achievementsMC.achievementBonusPoints.visible = true;
achievementsMC.gotIcon.gotoAndStop(ach[f]);
achievementsMC.gotIcon.visible = true;
achievementsMC.gotoAndPlay(2);
} else {
achievementsMC.achievementName.text = "";
achievementsMC.achievementBonusPoints.text = "";
achievementsMC.achievementName.visible = false;
achievementsMC.achievementBonusPoints.visible = false;
achievementsMC.gotIcon.visible = false;
achievementsMC.gotoAndStop(1);
};
};
};
};
};
};
f++;
if (f > z){
f = 0;
};
}
public function restartMenuMusic():void{
soundEffects.restartMenuMusic();
}
function frame49(){
beginBut.addEventListener(MouseEvent.CLICK, startIt);
stop();
}
public function loopSound1(_arg1):void{
soundEffects.loopSound1(_arg1);
}
public function loopSound4(_arg1, _arg2):void{
soundEffects.loopSound4(_arg1, _arg2);
}
public function loopSound3(_arg1):void{
soundEffects.loopSound3(_arg1);
}
public function goBacker(_arg1:MouseEvent):void{
var e = _arg1;
try {
gameMC.killAll = true;
gameMC.tryKill();
} catch(e:Error) {
};
MovieClip(root).soundEffects.killSound();
MovieClip(root).soundEffects.stopSound2();
gotoAndStop(1, "mainmenu");
backAgain.removeEventListener(MouseEvent.CLICK, goBacker);
}
public function continueOn(_arg1:MouseEvent):void{
nextFrame();
MovieClip(root).soundEffects.playSound3("_buttonSound");
}
function frame70(){
MovieClip(root).soundEffects.playSound1("_jumpSound");
}
public function startIt(_arg1:MouseEvent):void{
beginBut.removeEventListener(MouseEvent.CLICK, startIt);
play();
}
public function changeQuality(_arg1):void{
stage.quality = _arg1;
}
public function playSound1(_arg1):void{
soundEffects.playSound1(_arg1);
}
public function playSound2(_arg1, _arg2:Number=1):void{
soundEffects.playSound2(_arg1);
}
public function playSound3(_arg1):void{
soundEffects.playSound3(_arg1);
}
public function checkMoveTo(_arg1:TimerEvent):void{
var newTimer:*;
var e = _arg1;
try {
if (straightToLevels){
mainMenuMC.titlerMC.gotoAndStop(15);
mainMenuMC.gotoAndStop("levelSelect");
mainMenuMC.buttonsMC.gotoAndPlay("hideButtons");
straightToLevels = false;
mainMenuMC.playGame(null);
newTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, checkMoveTo);
};
} catch(e:Error) {
try {
newTimer = new Timer(10, 1);
newTimer.addEventListener(TimerEvent.TIMER_COMPLETE, checkMoveTo);
} catch(e:Error) {
};
newTimer.start();
};
}
public function createSounds():void{
soundEffects = new soundEffectsClass(this);
}
public function storeAchievement(_arg1):void{
cookie.storeAchievement(_arg1);
}
function frame122(){
stop();
if (MovieClip(root).sound){
soundBut.gotoAndStop(1);
} else {
soundBut.gotoAndStop(2);
};
backAgain.addEventListener(MouseEvent.CLICK, goBacker);
}
function frame123(){
MovieClip(root).changeQuality("HIGH");
if (MovieClip(root).sound){
soundBut.gotoAndStop(1);
} else {
soundBut.gotoAndStop(2);
};
ach = new Array();
z = 0;
if ((((MovieClip(root).tempscore > MovieClip(root).tempscoreneeded)) && ((MovieClip(root).tempscore > MovieClip(root)[("score" + MovieClip(root).levelNumber)])))){
MovieClip(root).playSound2("_successSound", 0.5);
} else {
if (MovieClip(root).tempscore > MovieClip(root).tempscoreneeded){
} else {
MovieClip(root).playSound2("_failureSound", 0.5);
};
};
MovieClip(root).loopSound4("_menu1Sound", 0.3);
if (hitTarget){
landedMC.gotoAndStop(1);
landingScoreText.text = "X10";
} else {
if (!hitTarget){
landedMC.gotoAndStop(2);
landingScoreText.text = "X1";
};
};
bubblesText.text = ("X" + String(MovieClip(root).numBubbles));
bubblesPoppedScoreText.text = String(MovieClip(root).bubblesScore);
ringsText.text = ("X" + String(MovieClip(root).numRings));
ringsScoreText.text = String(Number(MovieClip(root).ringsScore));
scoreText.text = String(MovieClip(root).tempscore);
reqscoreText.text = String(MovieClip(root).tempscoreneeded);
play();
compView = false;
}
public function backtoFront():void{
setChildIndex(backBut, (numChildren - 1));
}
function frame127(){
stop();
backBut.addEventListener(MouseEvent.CLICK, continueOn);
}
function frame128(){
stop();
backBut3.addEventListener(MouseEvent.CLICK, backtoMainMenu);
if (MovieClip(root).tempscore >= MovieClip(root)[("score" + MovieClip(root).levelNumber)]){
levelOn = MovieClip(root).levelsUnlocked;
unlocked = false;
if (MovieClip(root).storeScoreAndGetLevel(MovieClip(root).levelNumber, MovieClip(root).tempscore, MovieClip(root).tempscoreneeded)){
unlocked = true;
};
if (MovieClip(root).levelNumber != 9){
BeatScoreMC.gotoAndStop(2);
if (MovieClip(root).tempscore >= MovieClip(root).tempscoreneeded){
if (unlocked){
unlockedLevelMC.gotoAndStop("yes");
} else {
unlockedLevelMC.gotoAndStop("na");
};
if (MovieClip(root).levelNumber == 1){
MovieClip(root).trackThis(2627);
};
if (MovieClip(root).levelNumber == 2){
MovieClip(root).trackThis(2628);
};
if (MovieClip(root).levelNumber == 3){
MovieClip(root).trackThis(2629);
};
if (MovieClip(root).levelNumber == 4){
MovieClip(root).trackThis(2630);
};
if (MovieClip(root).levelNumber == 5){
MovieClip(root).trackThis(2631);
};
if (MovieClip(root).levelNumber == 6){
MovieClip(root).trackThis(2632);
};
if (MovieClip(root).levelNumber == 7){
MovieClip(root).trackThis(2633);
};
if (MovieClip(root).levelNumber == 8){
MovieClip(root).trackThis(2634);
};
} else {
unlockedLevelMC.gotoAndStop("no");
};
if ((((((MovieClip(root).levelNumber == 7)) && ((MovieClip(root).levelsUnlocked == 7)))) && (!(MovieClip(root).achievement1)))){
MovieClip(root).storeAchievement(1);
MovieClip(root).trackThis(2644);
ach[z] = 1;
z++;
} else {
if ((((((MovieClip(root).levelNumber == 8)) && ((MovieClip(root).levelsUnlocked == 8)))) && (!(MovieClip(root).achievement2)))){
MovieClip(root).storeAchievement(2);
MovieClip(root).trackThis(2645);
ach[z] = 2;
z++;
};
};
} else {
if (MovieClip(root).tempscore >= MovieClip(root).tempscoreneeded){
BeatScoreMC.gotoAndStop(3);
MovieClip(root).trackThis(2635);
} else {
BeatScoreMC.gotoAndStop(5);
};
if ((((((MovieClip(root).levelNumber == 9)) && ((MovieClip(root).levelsUnlocked == 9)))) && (!(MovieClip(root).achievement3)))){
MovieClip(root).storeAchievement(3);
MovieClip(root).trackThis(2646);
ach[z] = 3;
z++;
};
};
count = 0;
u = 1;
while (u <= 9) {
if (MovieClip(root)[("numTotalRings" + u)] >= MovieClip(root)[("requiredTotalRings" + u)]){
count++;
};
u++;
};
if ((((count == 9)) && (!(MovieClip(root).achievement6)))){
MovieClip(root).storeAchievement(6);
MovieClip(root).trackThis(2649);
ach[z] = 6;
z++;
};
} else {
BeatScoreMC.gotoAndStop(4);
unlockedLevelMC.gotoAndStop("na");
};
if ((((MovieClip(root).splatCount >= 20)) && (!((MovieClip(root).achievement4 == true))))){
MovieClip(root).storeAchievement(4);
MovieClip(root).trackThis(2647);
ach[z] = 4;
z++;
};
if ((((MovieClip(root).splatCountOnTarget >= 20)) && (!((MovieClip(root).achievement5 == true))))){
MovieClip(root).storeAchievement(5);
MovieClip(root).trackThis(2648);
ach[z] = 5;
z++;
};
if (z > 0){
tim = new Timer(3000);
tim.addEventListener(TimerEvent.TIMER, nextAch);
tim.start();
f = 0;
} else {
achievementsMC.gotoAndStop("noACH");
};
}
function __setProp___id0__preloader_Layer1_1(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.account = "UA-1349409-21";
__id0_.mode = "AS3";
__id0_.visualDebug = false;
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function storeSplatCount(_arg1:Number):void{
cookie.storeSplatCount(_arg1);
}
public function storeScoreAndGetLevel(_arg1, _arg2, _arg3):Boolean{
return (cookie.storeScoreAndGetLevel(_arg1, _arg2, _arg3));
}
public function changeMute(_arg1:MouseEvent):void{
if (sound){
soundBut.gotoAndStop(2);
soundEffects.mute();
} else {
soundBut.gotoAndStop(1);
soundEffects.unMute();
};
}
public function storeRings(_arg1:Number, _arg2:Number):void{
cookie.storeRings(_arg1, _arg2);
}
Security.allowDomain("*");
Security.loadPolicyFile("http://www.vimto.co.uk/crossdomain.xml");
}
}//package
Section 129
//ecardClass (ecardClass)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.system.*;
public class ecardClass extends MovieClip {
var mLoader:Loader;
var _root;
public var lbar:MovieClip;
public var lperc:TextField;
public function ecardClass(){
mLoader = new Loader();
super();
_root = MovieClip(root);
this.visible = false;
lbar.gotoAndStop(1);
lperc.text = "00%";
}
public function loadEcard():void{
var mRequest:URLRequest;
try {
this.visible = true;
mRequest = new URLRequest("http://cdn.cloudfiles.mosso.com/c113032/ecard.swf");
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
mLoader.contentLoaderInfo.addEventListener("UnloadMe", unloadFunction);
mLoader.load(mRequest);
addChild(mLoader);
mLoader.visible = false;
MovieClip(root).killSound();
MovieClip(root).setChildIndex(MovieClip(root).soundBut, (MovieClip(root).numChildren - 1));
MovieClip(root).setChildIndex(MovieClip(root).faderMC, (MovieClip(root).numChildren - 1));
} catch(e:Error) {
trace("error");
};
}
function starter(_arg1:TimerEvent):void{
this.visible = false;
}
public function unloadEcard():void{
var ob:*;
var ob1:*;
var ob2:*;
try {
ob = MovieClip(mLoader.content);
ob.stop();
ob.stopIt();
SoundMixer.stopAll();
} catch(e:Error) {
trace("error 1");
};
try {
ob1 = MovieClip(mLoader.content);
ob1.stop();
ob1.playbackMC.stopIt();
SoundMixer.stopAll();
} catch(e:Error) {
trace("error 2");
};
try {
ob2 = MovieClip(mLoader.content);
ob2.gotoAndStop(1);
} catch(e:Error) {
trace("error 3");
};
mLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onCompleteHandler);
mLoader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, onProgressHandler);
mLoader.contentLoaderInfo.removeEventListener("UnloadMe", unloadFunction);
SoundMixer.stopAll();
MovieClip(root).playSound3("_buttonSound");
MovieClip(root).loopSound4("_menu1Sound", 0.3);
mLoader.dispatchEvent(new Event("UnloadMe", true));
mLoader.unload();
removeChild(mLoader);
var t:Timer = new Timer(1000, 1);
t.addEventListener(TimerEvent.TIMER_COMPLETE, starter);
t.start();
MovieClip(root).restartMenuMusic();
}
function unloadFunction(_arg1:Event):void{
var event = _arg1;
try {
Loader(event.target).unload();
} catch(e:Error) {
trace("error");
};
}
private function onCompleteHandler(_arg1:Event){
mLoader.visible = true;
}
private function onProgressHandler(_arg1:ProgressEvent){
var mProgress = _arg1;
var percent:Number = (mProgress.bytesLoaded / mProgress.bytesTotal);
percent = Math.ceil((percent * 100));
lbar.gotoAndStop(percent);
lperc.text = (String(percent) + "%");
try {
} catch(e:Error) {
mLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onCompleteHandler);
mLoader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, onProgressHandler);
mLoader.contentLoaderInfo.removeEventListener("UnloadMe", unloadFunction);
};
}
Security.allowDomain("http://www.vimto.co.uk");
Security.loadPolicyFile("http://www.vimto.co.uk/crossdomain.xml");
}
}//package
Section 130
//failureSound (failureSound)
package {
import flash.media.*;
public dynamic class failureSound extends Sound {
}
}//package
Section 131
//gameClass (gameClass)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
public class gameClass extends MovieClip {
public var canMoveDown:Boolean;// = true
public var vpx;// = 300
public var startedEnding:Boolean;// = true
public var numClouds:Number;// = 0
var charx:Number;// = 0
var level1:Array;
var level2:Array;
var level3:Array;
var level4:Array;
var level5:Array;
var level6:Array;
var level7:Array;
var level8:Array;
var level9:Array;
public var ax:Number;// = 0
var fading:Boolean;// = false
public var canMoveUp:Boolean;// = true
public var ay:Number;// = 0
var radiance:Number;// = 57.2957795130823
public var inGameScoresMC:MovieClip;
var terminalvelocity;// = 0.2
public var killAll:Boolean;// = false
var aTimer;
public var maxClouds:Number;// = 8
public var canMoveLeft:Boolean;// = true
var topBounds;// = -800
public var currentLevel:Number;// = 1
public var mouserY:Number;// = 0
public var done:Boolean;// = true
var score:Number;// = 0
public var fallSpeed:Number;// = 30
public var mouserX:Number;// = 0
var leftBounds;// = -800
var moveX:Number;// = 0
var moveY:Number;// = 0
public var fruitMC:MovieClip;
var numObjects:Number;// = 0
public var currentShape:Number;// = 1
var bottomBounds;// = 800
var _root;
var level2Oblength;// = 21
public var multiplier;// = 1
var level4Oblength;// = 36
var level5Oblength;// = 47
var level7Oblength;// = 108
var level9Oblength;// = 0xFF
public var fw;// = 2000
var level6Oblength;// = 68
var level1Oblength;// = 24
var level3Oblength;// = 30
public var canMoveRight:Boolean;// = true
var velocity;// = 1E-5
var chary:Number;// = 0
var level8Oblength;// = 151
var minScore_level2;
var minScore_level3;
var minScore_level4;
var minScore_level5;
var minScore_level6;
var minScore_level7;
var minScore_level1;
var minScore_level9;
var moveSpeed;// = 1000
var rightBounds;// = 800
var minScore_level8;
public var vpy;// = 225
public function gameClass(){
minScore_level1 = MovieClip(root).minScore_level1;
minScore_level2 = MovieClip(root).minScore_level2;
minScore_level3 = MovieClip(root).minScore_level3;
minScore_level4 = MovieClip(root).minScore_level4;
minScore_level5 = MovieClip(root).minScore_level5;
minScore_level6 = MovieClip(root).minScore_level6;
minScore_level7 = MovieClip(root).minScore_level7;
minScore_level8 = MovieClip(root).minScore_level8;
minScore_level9 = MovieClip(root).minScore_level9;
level1 = new Array();
level2 = new Array();
level3 = new Array();
level4 = new Array();
level5 = new Array();
level6 = new Array();
level7 = new Array();
level8 = new Array();
level9 = new Array();
aTimer = new Timer(10);
super();
addFrameScript(0, frame1);
_root = MovieClip(root);
_root.changeQuality("LOW");
level1[1] = ["bubbles", 100, 100, 30];
level1[2] = ["bubbles", 100, 0, 40];
level1[3] = ["bubbles", -100, -100, 60];
level1[4] = ["bubbles", 150, 150, 70];
level1[5] = ["bubbles", -150, 150, 80];
level1[6] = ["bubbles", 100, -100, 90];
level1[7] = ["bubbles", 100, 100, 100];
level1[8] = ["bubbles", 200, 400, 110];
level1[9] = ["bubbles", 150, 200, 120];
level1[10] = ["bubbles", 0, 0, 130];
level1[11] = ["bubbles", 0, -200, 140];
level1[12] = ["greenRing", 0, -150, 160];
level1[13] = ["bubbles", -150, 0, 180];
level1[14] = ["bubbles", -150, 100, 190];
level1[15] = ["bubbles", -300, 100, 210];
level1[16] = ["bubbles", 0, 200, 220];
level1[17] = ["greenRing", 300, -150, 240];
level1[18] = ["bubbles", 100, 100, 260];
level1[19] = ["bubbles", 100, -50, 270];
level1[20] = ["greenRing", 200, 50, 300];
level1[21] = ["bubbles", 50, -100, 310];
level1[22] = ["bubbles", 100, -150, 320];
level1[23] = ["bubbles", 200, -150, 340];
level1[24] = ["bubbles", 0, -180, 350];
level1[25] = ["floor", 0, 0, 370];
level2[1] = ["bubbles", 10, 0, 30];
level2[2] = ["bubbles", 100, 50, 40];
level2[3] = ["greenRing", 0, -250, 70];
level2[4] = ["bubbles", 0, 100, 90];
level2[5] = ["bubbles", -50, -40, 100];
level2[6] = ["greenRing", -200, 200, 120];
level2[7] = ["bubbles", -100, -30, 130];
level2[8] = ["bubbles", 100, -100, 140];
level2[9] = ["bubbles", 0, -375, 160];
level2[10] = ["bubbles", 105, -200, 190];
level2[11] = ["bubbles", 105, -240, 200];
level2[12] = ["greenRing", 105, -280, 210];
level2[13] = ["bubbles", 105, -320, 220];
level2[14] = ["bubbles", 300, 0, 250];
level2[15] = ["bubbles", -100, 30, 260];
level2[16] = ["bubbles", -100, 150, 270];
level2[17] = ["greenRing", 300, 350, 300];
level2[18] = ["bubbles", 0, -60, 310];
level2[19] = ["bubbles", -100, -100, 320];
level2[20] = ["bubbles", -50, -20, 330];
level2[21] = ["bubbles", 150, 0, 350];
level2[22] = ["floor", 0, 0, 370];
level3[1] = ["bubbles", 0, 0, 20];
level3[2] = ["bubbles", 0, 100, 30];
level3[3] = ["bubbles", 100, 50, 50];
level3[4] = ["bubbles", 150, -250, 60];
level3[5] = ["greenRing", 200, -200, 65];
level3[6] = ["bubbles", 0, 100, 70];
level3[7] = ["bubbles", 100, 200, 80];
level3[8] = ["bubbles", -50, 150, 90];
level3[9] = ["greenRing", -200, 100, 100];
level3[10] = ["bubbles", -100, 300, 120];
level3[11] = ["bubbles", -50, 150, 130];
level3[12] = ["bubbles", 100, -100, 140];
level3[13] = ["bubbles", 0, 150, 150];
level3[14] = ["bubbles", 0, -375, 160];
level3[15] = ["bubbles", 105, -200, 180];
level3[16] = ["yellowRing", 300, 0, 200];
level3[17] = ["bubbles", 105, -300, 230];
level3[18] = ["bubbles", 105, -280, 240];
level3[19] = ["bubbles", 105, -320, 250];
level3[20] = ["bubbles", 150, -50, 0xFF];
level3[21] = ["yellowRing", 300, 0, 260];
level3[22] = ["bubbles", -100, 150, 280];
level3[23] = ["bubbles", -100, 150, 290];
level3[24] = ["greenRing", 300, 350, 310];
level3[25] = ["bubbles", 300, 200, 315];
level3[26] = ["bubbles", 100, -60, 320];
level3[27] = ["bubbles", 200, -100, 330];
level3[28] = ["greenRing", 300, 0, 340];
level3[29] = ["bubbles", -50, -20, 355];
level3[30] = ["bubbles", -30, 0, 365];
level3[31] = ["floor", 0, 0, 370];
level4[1] = ["bubbles", 50, 50, 30];
level4[2] = ["bubbles", 0, 0, 50];
level4[3] = ["bubbles", -100, -100, 60];
level4[4] = ["bubbles", -200, -200, 80];
level4[5] = ["bubbles", 0, 0, 100];
level4[6] = ["bubbles", 130, -130, 120];
level4[7] = ["greenRing", 200, 200, 140];
level4[8] = ["bubbles", 150, 0, 160];
level4[9] = ["bubbles", 200, -150, 180];
level4[10] = ["bubbles", 0, 100, 200];
level4[11] = ["bubbles", 100, 0, 220];
level4[12] = ["yellowRing", 100, 0, 240];
level4[13] = ["bubbles", -100, 100, 260];
level4[14] = ["bubbles", -250, 250, 290];
level4[15] = ["bubbles", -350, -100, 330];
level4[16] = ["bubbles", 0, 0, 350];
level4[17] = ["bubbles", 150, -50, 370];
level4[18] = ["yellowRing", 300, 0, 390];
level4[19] = ["bubbles", 300, 200, 420];
level4[20] = ["bubbles", 100, 250, 430];
level4[21] = ["greenRing", 230, 250, 460];
level4[22] = ["yellowRing", 300, 0, 500];
level4[23] = ["bubbles", 90, -320, 525];
level4[24] = ["bubbles", -50, -200, 550];
level4[25] = ["bubbles", 100, 70, 560];
level4[26] = ["bubbles", -50, -20, 575];
level4[27] = ["greenRing", -150, -300, 600];
level4[28] = ["bubbles", -300, -400, 620];
level4[29] = ["bubbles", -250, -300, 640];
level4[30] = ["bubbles", -50, 0, 665];
level4[31] = ["bubbles", -50, -20, 670];
level4[32] = ["yellowRing", 100, 100, 690];
level4[33] = ["bubbles", 200, 100, 710];
level4[34] = ["bubbles", 100, -20, 730];
level4[35] = ["bubbles", 200, -20, 750];
level4[36] = ["bubbles", 0, -20, 770];
level4[37] = ["floor", 0, 0, 800];
level5[1] = ["yellowRing", 300, 300, 40];
level5[2] = ["bubbles", 200, 200, 50];
level5[3] = ["bubbles", -200, -200, 60];
level5[4] = ["bubbles", -120, 230, 80];
level5[5] = ["bubbles", 0, 0, 100];
level5[6] = ["greenRing", 300, 300, 140];
level5[7] = ["bubbles", 150, 350, 160];
level5[8] = ["bubbles", 300, -350, 170];
level5[9] = ["bubbles", 0, 100, 180];
level5[10] = ["bubbles", 350, 100, 210];
level5[11] = ["bubbles", 100, -200, 220];
level5[12] = ["bubbles", 200, 0, 225];
level5[13] = ["yellowRing", 0, 0, 240];
level5[14] = ["bubbles", -187, 192, 260];
level5[15] = ["bubbles", 0, 200, 270];
level5[16] = ["greenRing", -250, 200, 300];
level5[17] = ["bubbles", -350, -150, 280];
level5[18] = ["bubbles", 0, 0, 290];
level5[19] = ["bubbles", 0, 100, 330];
level5[20] = ["bubbles", 90, 230, 350];
level5[21] = ["bubbles", 150, 350, 370];
level5[22] = ["greenRing", 300, 0, 390];
level5[23] = ["yellowRing", 0, 200, 420];
level5[24] = ["bubbles", 0, 0, 440];
level5[25] = ["bubbles", 250, -150, 445];
level5[26] = ["bubbles", 300, 50, 450];
level5[27] = ["bubbles", 350, -250, 455];
level5[28] = ["bubbles", 0, 250, 460];
level5[29] = ["greenRing", 0, 0, 480];
level5[30] = ["bubbles", 90, 90, 500];
level5[31] = ["bubbles", -50, 200, 510];
level5[32] = ["bubbles", 200, 270, 520];
level5[33] = ["bubbles", 0, 0, 530];
level5[34] = ["bubbles", -50, -200, 540];
level5[35] = ["bubbles", -175, -300, 545];
level5[36] = ["greenRing", 0, 0, 550];
level5[37] = ["bubbles", 300, -400, 560];
level5[38] = ["bubbles", -250, -300, 565];
level5[39] = ["bubbles", -50, 0, 590];
level5[40] = ["bubbles", -50, -20, 620];
level5[41] = ["greenRing", 100, 100, 640];
level5[42] = ["bubbles", 200, 100, 670];
level5[43] = ["bubbles", 100, -20, 700];
level5[44] = ["yellowRing", 100, 300, 720];
level5[45] = ["bubbles", 300, 0, 740];
level5[46] = ["bubbles", -100, -200, 770];
level5[47] = ["bubbles", -300, -320, 780];
level5[48] = ["floor", 0, 0, 800];
level6[1] = ["bubbles", 100, 100, 20];
level6[2] = ["bubbles", 200, 200, 30];
level6[3] = ["bubbles", -250, 150, 35];
level6[4] = ["bubbles", 50, -150, 45];
level6[5] = ["bubbles", 0, 300, 55];
level6[6] = ["bubbles", 200, 400, 70];
level6[7] = ["bubbles", 300, 500, 75];
level6[8] = ["greenRing", 100, 300, 85];
level6[9] = ["bubbles", -100, -100, 100];
level6[10] = ["bubbles", -200, -300, 120];
level6[11] = ["bubbles", -450, -400, 140];
level6[12] = ["bubbles", -300, -150, 150];
level6[13] = ["greenRing", 0, -400, 160];
level6[14] = ["bubbles", -300, -150, 170];
level6[15] = ["bubbles", -300, -150, 190];
level6[16] = ["bubbles", -300, -150, 210];
level6[17] = ["yellowRing", 0, 100, 230];
level6[18] = ["bubbles", -300, 150, 250];
level6[19] = ["bubbles", 300, 50, 260];
level6[20] = ["yellowRing", 0, -400, 270];
level6[21] = ["bubbles", 100, 100, 290];
level6[22] = ["bubbles", 400, 63, 300];
level6[23] = ["bubbles", 0, 230, 310];
level6[24] = ["bubbles", 0, 330, 320];
level6[25] = ["bubbles", 400, -400, 325];
level6[26] = ["bubbles", -400, -200, 330];
level6[27] = ["bubbles", 0, 270, 335];
level6[28] = ["bubbles", 180, 300, 340];
level6[29] = ["bubbles", -200, 453, 350];
level6[30] = ["bubbles", 0, 103, 360];
level6[31] = ["bubbles", 0, 330, 370];
level6[32] = ["bubbles", 50, 0, 380];
level6[33] = ["yellowRing", 0, -200, 390];
level6[34] = ["greenRing", 0, -200, 430];
level6[35] = ["bubbles", 300, -100, 440];
level6[36] = ["bubbles", 300, 100, 450];
level6[37] = ["bubbles", 400, 163, 460];
level6[38] = ["bubbles", 500, 330, 465];
level6[39] = ["bubbles", -500, -400, 475];
level6[40] = ["bubbles", -200, -200, 480];
level6[41] = ["yellowRing", -200, 50, 490];
level6[42] = ["bubbles", 0, 500, 500];
level6[43] = ["bubbles", 180, 300, 515];
level6[44] = ["bubbles", -300, -453, 520];
level6[45] = ["bubbles", 32, 106, 530];
level6[46] = ["bubbles", 331, -444, 540];
level6[47] = ["bubbles", -493, 288, 550];
level6[48] = ["bubbles", 97, -36, 560];
level6[49] = ["bubbles", 207, 200, 570];
level6[50] = ["blueRing", 400, 400, 580];
level6[51] = ["blueRing", 0, 0, 590];
level6[52] = ["bubbles", 224, -130, 600];
level6[53] = ["bubbles", -224, 130, 610];
level6[54] = ["bubbles", -220, -317, 620];
level6[55] = ["bubbles", -20, 0, 630];
level6[56] = ["bubbles", 13, 411, 640];
level6[57] = ["bubbles", -223, -466, 650];
level6[58] = ["yellowRing", -196, -234, 670];
level6[59] = ["bubbles", -524, 230, 690];
level6[60] = ["bubbles", -310, 0, 700];
level6[61] = ["bubbles", -310, -210, 720];
level6[62] = ["bubbles", -110, 0, 730];
level6[63] = ["bubbles", 130, 41, 740];
level6[64] = ["greenRing", 196, -134, 745];
level6[65] = ["bubbles", 100, 241, 750];
level6[66] = ["bubbles", 0, 241, 760];
level6[67] = ["bubbles", 1, -196, 770];
level6[68] = ["bubbles", -223, -26, 780];
level6[69] = ["floor", 0, 0, 800];
level7[1] = ["bubbles", 247, 262, 20];
level7[2] = ["bubbles", 253, 88, 25];
level7[3] = ["bubbles", -320, 444, 35];
level7[4] = ["bubbles", -201, 298, 40];
level7[5] = ["bubbles", 429, 394, 45];
level7[6] = ["bubbles", -425, 136, 50];
level7[7] = ["bubbles", -434, 322, 60];
level7[8] = ["bubbles", -141, -482, 65];
level7[9] = ["yellowRing", 30, 0, 70];
level7[10] = ["bubbles", 400, -15, 80];
level7[11] = ["bubbles", -400, -15, 85];
level7[12] = ["bubbles", 191, 200, 95];
level7[13] = ["bubbles", 0, 0, 100];
level7[14] = ["blueRing", 30, 0, 105];
level7[15] = ["bubbles", 430, -242, 110];
level7[16] = ["bubbles", -453, -152, 120];
level7[17] = ["bubbles", -144, 131, 130];
level7[18] = ["bubbles", -268, 307, 140];
level7[19] = ["bubbles", 273, 329, 145];
level7[20] = ["yellowRing", -500, 400, 165];
level7[21] = ["bubbles", 468, 383, 175];
level7[22] = ["bubbles", 384, 459, 185];
level7[23] = ["bubbles", 206, -400, 200];
level7[24] = ["bubbles", 7, 228, 210];
level7[25] = ["yellowRing", 0, 0, 220];
level7[26] = ["bubbles", 143, 19, 230];
level7[27] = ["bubbles", -204, -405, 240];
level7[28] = ["bubbles", 82, 487, 250];
level7[29] = ["bubbles", -300, -300, 0xFF];
level7[30] = ["bubbles", 82, 487, 260];
level7[31] = ["blueRing", 0, -250, 270];
level7[32] = ["bubbles", -380, -434, 280];
level7[33] = ["bubbles", -206, -321, 285];
level7[34] = ["bubbles", 235, 344, 310];
level7[35] = ["bubbles", 168, 273, 320];
level7[36] = ["bubbles", 378, 270, 325];
level7[37] = ["bubbles", 143, -175, 335];
level7[38] = ["bubbles", -471, 314, 345];
level7[39] = ["bubbles", -45, -303, 360];
level7[40] = ["greenRing", 0, 0, 380];
level7[41] = ["bubbles", 143, -175, 390];
level7[42] = ["bubbles", -71, 203, 400];
level7[43] = ["bubbles", 200, 303, 415];
level7[44] = ["greenRing", 300, 500, 430];
level7[45] = ["bubbles", -62, -273, 440];
level7[46] = ["bubbles", -349, 8, 450];
level7[47] = ["bubbles", 76, 61, 470];
level7[48] = ["bubbles", -12, 177, 480];
level7[49] = ["bubbles", 61, -465, 495];
level7[50] = ["bubbles", -60, -161, 505];
level7[51] = ["bubbles", -346, 110, 515];
level7[52] = ["bubbles", 170, 150, 520];
level7[53] = ["bubbles", 116, 361, 525];
level7[54] = ["bubbles", 123, -336, 540];
level7[55] = ["bubbles", -474, 24, 550];
level7[56] = ["greenRing", 0, 150, 570];
level7[57] = ["bubbles", -100, -100, 580];
level7[58] = ["bubbles", -20, -250, 585];
level7[59] = ["bubbles", 216, 161, 595];
level7[60] = ["bubbles", 0, 0, 610];
level7[61] = ["bubbles", 150, 400, 620];
level7[62] = ["yellowRing", 50, 250, 630];
level7[63] = ["bubbles", -100, 200, 640];
level7[64] = ["bubbles", 100, 250, 650];
level7[65] = ["bubbles", 50, 350, 655];
level7[66] = ["bubbles", -150, 0, 660];
level7[67] = ["bubbles", -250, 400, 670];
level7[68] = ["blueRing", 100, 400, 690];
level7[69] = ["bubbles", 0, 0, 710];
level7[70] = ["bubbles", -350, 0, 720];
level7[71] = ["bubbles", 250, 400, 730];
level7[72] = ["yellowRing", -100, 200, 740];
level7[73] = ["bubbles", -300, -100, 750];
level7[74] = ["bubbles", -76, -270, 760];
level7[75] = ["bubbles", -319, 151, 770];
level7[76] = ["bubbles", 223, -421, 790];
level7[77] = ["bubbles", 351, -387, 810];
level7[78] = ["bubbles", -359, 401, 815];
level7[79] = ["greenRing", -300, -100, 835];
level7[80] = ["bubbles", 329, -71, 845];
level7[81] = ["bubbles", -497, 204, 860];
level7[82] = ["bubbles", 432, 189, 875];
level7[83] = ["bubbles", 379, 175, 890];
level7[84] = ["bubbles", -403, 393, 900];
level7[85] = ["bubbles", -373, 476, 910];
level7[86] = ["bubbles", -353, -28, 920];
level7[87] = ["bubbles", 214, -227, 940];
level7[88] = ["bubbles", 396, 209, 960];
level7[89] = ["blueRing", 0, 0, 965];
level7[90] = ["bubbles", -162, 216, 980];
level7[91] = ["bubbles", 139, 228, 990];
level7[92] = ["bubbles", -16, -11, 1005];
level7[93] = ["bubbles", 171, -234, 1010];
level7[94] = ["greenRing", -100, 200, 1020];
level7[95] = ["bubbles", -159, 333, 1030];
level7[96] = ["bubbles", 424, -235, 1050];
level7[97] = ["bubbles", -14, -377, 1070];
level7[98] = ["bubbles", 270, -424, 1075];
level7[99] = ["bubbles", 327, 247, 1090];
level7[100] = ["yellowRing", -100, 200, 1110];
level7[101] = ["bubbles", 472, 402, 1120];
level7[102] = ["bubbles", 116, 175, 1130];
level7[103] = ["bubbles", 281, 367, 1140];
level7[104] = ["bubbles", -214, 174, 1150];
level7[105] = ["bubbles", 64, 298, 1160];
level7[106] = ["bubbles", 375, -449, 1170];
level7[107] = ["greenRing", -100, -127, 1180];
level7[108] = ["bubbles", -100, 200, 1195];
level7[109] = ["floor", 0, 0, 1200];
level8[1] = ["bubbles", 444, 10, 20];
level8[2] = ["bubbles", 456, -179, 25];
level8[3] = ["bubbles", 241, 435, 40];
level8[4] = ["bubbles", 66, 91, 450];
level8[5] = ["bubbles", 422, -71, 50];
level8[6] = ["bubbles", -350, -400, 55];
level8[7] = ["bubbles", -446, -260, 60];
level8[8] = ["bubbles", 151, 393, 65];
level8[9] = ["bubbles", -1, 61, 70];
level8[10] = ["bubbles", 128, 327, 75];
level8[11] = ["bubbles", -425, -251, 85];
level8[12] = ["blueRing", 300, 300, 100];
level8[13] = ["bubbles", 278, -226, 105];
level8[14] = ["bubbles", 200, -200, 105];
level8[15] = ["bubbles", -97, -39, 110];
level8[16] = ["bubbles", 176, 324, 115];
level8[17] = ["bubbles", 120, 150, 115];
level8[18] = ["bubbles", -493, 135, 120];
level8[19] = ["bubbles", -50, -435, 125];
level8[20] = ["bubbles", -228, -278, 130];
level8[21] = ["bubbles", -200, -200, 115];
level8[22] = ["bubbles", 0, -314, 135];
level8[23] = ["bubbles", 246, -200, 140];
level8[24] = ["bubbles", -210, -331, 145];
level8[25] = ["bubbles", -224, 369, 150];
level8[26] = ["bubbles", 167, 8, 155];
level8[27] = ["greenRing", 0, 0, 170];
level8[28] = ["bubbles", 67, 490, 175];
level8[29] = ["bubbles", -130, 334, 180];
level8[30] = ["bubbles", 390, 401, 190];
level8[31] = ["bubbles", 163, -102, 200];
level8[32] = ["bubbles", -147, -330, 205];
level8[33] = ["bubbles", 497, -180, 210];
level8[34] = ["bubbles", -421, 304, 215];
level8[35] = ["bubbles", 183, -147, 220];
level8[36] = ["bubbles", -228, -391, 225];
level8[37] = ["bubbles", -371, -391, 230];
level8[38] = ["bubbles", 153, 28, 235];
level8[39] = ["bubbles", -41, 472, 240];
level8[40] = ["bubbles", 468, -343, 245];
level8[41] = ["bubbles", -187, 182, 250];
level8[42] = ["bubbles", 363, -458, 0xFF];
level8[43] = ["bubbles", -17, -24, 260];
level8[44] = ["bubbles", -86, -303, 265];
level8[45] = ["yellowRing", 100, 100, 270];
level8[46] = ["bubbles", 128, 194, 280];
level8[47] = ["bubbles", 62, -228, 290];
level8[48] = ["bubbles", 497, 330, 300];
level8[49] = ["bubbles", 460, 105, 305];
level8[50] = ["bubbles", 190, 370, 310];
level8[51] = ["bubbles", -252, -454, 320];
level8[52] = ["bubbles", -72, -426, 330];
level8[53] = ["bubbles", 443, 482, 335];
level8[54] = ["bubbles", 265, 21, 340];
level8[55] = ["bubbles", 178, 368, 345];
level8[56] = ["bubbles", 220, -107, 350];
level8[57] = ["bubbles", -439, 476, 360];
level8[58] = ["bubbles", 484, -129, 370];
level8[59] = ["bubbles", -351, -158, 375];
level8[60] = ["bubbles", -351, 0, 390];
level8[61] = ["greenRing", 0, 0, 400];
level8[62] = ["bubbles", -106, -313, 410];
level8[63] = ["bubbles", 273, 456, 420];
level8[64] = ["bubbles", -333, -325, 430];
level8[65] = ["bubbles", 182, -343, 440];
level8[66] = ["greenRing", -100, -100, 450];
level8[67] = ["bubbles", 435, 131, 460];
level8[68] = ["bubbles", 489, 15, 465];
level8[69] = ["bubbles", -209, -436, 470];
level8[70] = ["bubbles", 189, 330, 480];
level8[71] = ["bubbles", 338, 191, 485];
level8[72] = ["bubbles", 246, 323, 490];
level8[73] = ["yellowRing", -200, -300, 500];
level8[74] = ["bubbles", -447, 208, 510];
level8[75] = ["bubbles", 7, -99, 520];
level8[76] = ["bubbles", -416, 430, 530];
level8[77] = ["bubbles", 154, -69, 540];
level8[78] = ["blueRing", -500, -500, 550];
level8[79] = ["bubbles", 169, 51, 560];
level8[80] = ["bubbles", 441, 498, 570];
level8[81] = ["bubbles", -34, 86, 576];
level8[82] = ["bubbles", -142, 288, 580];
level8[83] = ["bubbles", 88, 231, 590];
level8[84] = ["blueRing", 0, -200, 600];
level8[85] = ["bubbles", -309, -49, 605];
level8[86] = ["bubbles", 137, 336, 610];
level8[87] = ["bubbles", 303, -130, 615];
level8[88] = ["bubbles", -484, 95, 620];
level8[89] = ["bubbles", 285, -105, 620];
level8[90] = ["bubbles", 467, -427, 625];
level8[91] = ["bubbles", 119, -172, 630];
level8[92] = ["bubbles", 10, -493, 635];
level8[93] = ["bubbles", 289, 132, 640];
level8[94] = ["bubbles", -219, -358, 645];
level8[95] = ["greenRing", 300, 0, 650];
level8[96] = ["bubbles", 318, 465, 660];
level8[97] = ["bubbles", 217, 12, 670];
level8[98] = ["bubbles", 300, -271, 680];
level8[99] = ["bubbles", -25, -40, 685];
level8[100] = ["bubbles", 218, 349, 690];
level8[101] = ["yellowRing", 350, 200, 700];
level8[102] = ["bubbles", 178, -449, 710];
level8[103] = ["bubbles", 462, 187, 720];
level8[104] = ["bubbles", -204, 220, 730];
level8[105] = ["blueRing", 500, 500, 740];
level8[106] = ["bubbles", -6, 77, 745];
level8[107] = ["bubbles", 50, 191, 750];
level8[108] = ["bubbles", -420, -39, 760];
level8[109] = ["bubbles", -367, 147, 770];
level8[110] = ["yellowRing", 100, 0, 780];
level8[111] = ["bubbles", 449, 363, 790];
level8[112] = ["bubbles", -328, -480, 800];
level8[113] = ["bubbles", -160, 50, 805];
level8[114] = ["blueRing", -100, -102, 820];
level8[115] = ["bubbles", -366, -381, 830];
level8[116] = ["bubbles", 499, 372, 840];
level8[117] = ["bubbles", -353, -2, 850];
level8[118] = ["bubbles", 250, -331, 855];
level8[119] = ["bubbles", -36, -211, 860];
level8[120] = ["blueRing", -300, 0, 870];
level8[121] = ["bubbles", -492, 346, 875];
level8[122] = ["bubbles", -151, 173, 880];
level8[123] = ["bubbles", -151, 173, 895];
level8[124] = ["greenRing", -400, -200, 910];
level8[125] = ["bubbles", 236, 301, 930];
level8[126] = ["bubbles", 11, -114, 940];
level8[127] = ["greenRing", 200, 200, 950];
level8[128] = ["bubbles", -237, 473, 955];
level8[129] = ["bubbles", 358, 154, 960];
level8[130] = ["bubbles", -162, -48, 965];
level8[131] = ["yellowRing", 0, 0, 970];
level8[132] = ["bubbles", -307, 367, 980];
level8[133] = ["yellowRing", 175, 175, 990];
level8[134] = ["bubbles", -499, 244, 1000];
level8[135] = ["bubbles", 0xFF, -495, 1010];
level8[136] = ["bubbles", -395, 192, 1020];
level8[137] = ["bubbles", -58, -7, 1030];
level8[138] = ["bubbles", -24, -448, 1050];
level8[139] = ["bubbles", -435, 193, 1070];
level8[140] = ["bubbles", -77, 127, 1080];
level8[141] = ["bubbles", -270, -7, 1090];
level8[142] = ["blueRing", 50, 350, 1100];
level8[143] = ["bubbles", -214, -296, 1110];
level8[144] = ["bubbles", -94, 18, 1120];
level8[145] = ["bubbles", 446, -369, 1130];
level8[146] = ["bubbles", 487, 61, 1140];
level8[147] = ["bubbles", 452, -411, 1150];
level8[148] = ["bubbles", -493, 403, 1160];
level8[149] = ["bubbles", -109, -485, 1170];
level8[150] = ["bubbles", -57, -211, 1180];
level8[151] = ["bubbles", -122, 232, 1190];
level8[152] = ["floor", 0, 0, 1200];
level8[1] = ["bubbles", 77, 96, 20];
level9[2] = ["greenRing", 200, 100, 30];
level9[3] = ["bubbles", -141, -129, 32];
level9[4] = ["bubbles", 272, -143, 34];
level9[5] = ["bubbles", 260, 63, 36];
level9[6] = ["bubbles", -259, -231, 38];
level9[7] = ["bubbles", 28, -68, 40];
level9[8] = ["bubbles", -114, 208, 42];
level9[9] = ["bubbles", 191, 155, 46];
level9[10] = ["bubbles", -119, 127, 48];
level9[11] = ["bubbles", 454, -277, 52];
level9[12] = ["bubbles", -260, -210, 56];
level9[13] = ["bubbles", 118, 410, 62];
level9[14] = ["bubbles", 478, -136, 64];
level9[15] = ["bubbles", -269, 218, 66];
level9[16] = ["bubbles", -77, -226, 68];
level9[17] = ["bubbles", 150, -337, 69];
level9[18] = ["yellowRing", -450, -100, 70];
level9[19] = ["bubbles", -371, -483, 72];
level9[20] = ["bubbles", -211, 489, 74];
level9[21] = ["bubbles", -89, -166, 78];
level9[22] = ["bubbles", -185, -419, 80];
level9[23] = ["bubbles", -260, -357, 82];
level9[24] = ["bubbles", 69, -341, 88];
level9[25] = ["bubbles", 293, 339, 93];
level9[26] = ["bubbles", -366, 480, 97];
level9[27] = ["bubbles", -59, -326, 103];
level9[28] = ["bubbles", -324, -81, 108];
level9[29] = ["bubbles", -432, -84, 115];
level9[30] = ["bubbles", 303, 299, 120];
level9[31] = ["bubbles", 329, -233, 130];
level9[32] = ["bubbles", 288, -294, 135];
level9[33] = ["bubbles", 322, -72, 140];
level9[34] = ["bubbles", -41, 324, 145];
level9[35] = ["blueRing", -200, -200, 150];
level9[36] = ["bubbles", 107, 214, 155];
level9[37] = ["bubbles", 162, -216, 160];
level9[38] = ["bubbles", -152, -208, 165];
level9[39] = ["bubbles", -33, 326, 167];
level9[40] = ["bubbles", 384, 111, 170];
level9[41] = ["bubbles", -461, -431, 172];
level9[42] = ["bubbles", 197, 124, 174];
level9[43] = ["bubbles", -298, -255, 176];
level9[44] = ["bubbles", 41, -13, 179];
level9[45] = ["bubbles", 461, -37, 182];
level9[46] = ["bubbles", -173, -476, 184];
level9[47] = ["bubbles", 8, 479, 186];
level9[48] = ["bubbles", 420, 287, 190];
level9[49] = ["bubbles", -217, 281, 193];
level9[50] = ["bubbles", -489, -306, 196];
level9[51] = ["bubbles", -468, -436, 199];
level9[52] = ["greenRing", 300, 300, 205];
level9[53] = ["bubbles", 250, -250, 210];
level9[54] = ["bubbles", -150, 100, 211];
level9[55] = ["bubbles", 150, -150, 215];
level9[56] = ["bubbles", -50, 50, 216];
level9[57] = ["bubbles", 50, -100, 220];
level9[58] = ["bubbles", 50, -100, 221];
level9[59] = ["bubbles", -70, -80, 225];
level9[60] = ["bubbles", 170, -200, 226];
level9[61] = ["bubbles", -150, 100, 230];
level9[62] = ["bubbles", 270, -275, 231];
level9[63] = ["bubbles", -250, 200, 240];
level9[64] = ["bubbles", 350, -350, 241];
level9[65] = ["bubbles", -350, 300, 245];
level9[66] = ["bubbles", 400, -400, 246];
level9[67] = ["yellowRing", -400, 400, 250];
level9[68] = ["bubbles", 371, 214, 0xFF];
level9[69] = ["bubbles", 113, -292, 260];
level9[70] = ["bubbles", 48, -416, 265];
level9[71] = ["bubbles", 342, -61, 270];
level9[72] = ["bubbles", -457, -237, 275];
level9[73] = ["bubbles", -90, -169, 277];
level9[74] = ["bubbles", -320, -274, 280];
level9[75] = ["bubbles", 141, 34, 282];
level9[76] = ["bubbles", -210, -401, 284];
level9[77] = ["bubbles", -138, 234, 288];
level9[78] = ["bubbles", -131, 39, 293];
level9[79] = ["bubbles", 232, -29, 296];
level9[80] = ["blueRing", 400, 400, 300];
level9[81] = ["bubbles", 14, 478, 305];
level9[82] = ["bubbles", -368, -461, 310];
level9[83] = ["bubbles", 103, 264, 312];
level9[84] = ["bubbles", 221, -243, 315];
level9[85] = ["bubbles", -172, -285, 320];
level9[86] = ["bubbles", 229, 26, 323];
level9[87] = ["bubbles", 45, 355, 327];
level9[88] = ["bubbles", 195, 45, 330];
level9[89] = ["bubbles", 458, 342, 335];
level9[90] = ["bubbles", 136, -137, 337];
level9[91] = ["bubbles", 488, -491, 339];
level9[92] = ["bubbles", 25, -420, 340];
level9[93] = ["bubbles", 490, -365, 341];
level9[94] = ["bubbles", -48, -27, 342];
level9[95] = ["bubbles", 378, 485, 345];
level9[96] = ["bubbles", 231, 111, 348];
level9[97] = ["blueRing", 0, 0, 350];
level9[98] = ["bubbles", 172, -237, 355];
level9[99] = ["bubbles", 484, -491, 357];
level9[100] = ["bubbles", 488, 381, 359];
level9[101] = ["bubbles", 3, 228, 361];
level9[102] = ["bubbles", -400, 35, 364];
level9[103] = ["bubbles", -155, 249, 367];
level9[104] = ["bubbles", 29, -460, 370];
level9[105] = ["bubbles", -173, -278, 371];
level9[106] = ["bubbles", 110, -130, 372];
level9[107] = ["bubbles", 189, -410, 375];
level9[108] = ["bubbles", -478, -286, 376];
level9[109] = ["greenRing", 200, 200, 380];
level9[110] = ["bubbles", 93, 123, 383];
level9[111] = ["bubbles", 74, 204, 385];
level9[112] = ["bubbles", -476, 1, 390];
level9[113] = ["bubbles", 317, -426, 395];
level9[114] = ["bubbles", -171, 412, 396];
level9[115] = ["bubbles", -456, -482, 399];
level9[116] = ["bubbles", 490, 396, 403];
level9[117] = ["bubbles", 393, -247, 410];
level9[118] = ["bubbles", 126, 473, 413];
level9[119] = ["bubbles", 483, 115, 416];
level9[120] = ["bubbles", -390, -307, 418];
level9[121] = ["greenRing", 100, 100, 420];
level9[122] = ["bubbles", 0, 0, 435];
level9[123] = ["bubbles", 50, 50, 436];
level9[124] = ["bubbles", 250, 250, 445];
level9[125] = ["bubbles", -50, -50, 450];
level9[126] = ["bubbles", 350, 350, 455];
level9[127] = ["bubbles", -250, -250, 460];
level9[128] = ["bubbles", 450, 450, 465];
level9[129] = ["bubbles", -350, -350, 470];
level9[130] = ["bubbles", 500, 500, 471];
level9[131] = ["bubbles", 480, 480, 476];
level9[132] = ["bubbles", 420, 500, 478];
level9[133] = ["bubbles", 500, 420, 480];
level9[134] = ["greenRing", -180, -180, 485];
level9[135] = ["bubbles", -400, -420, 480];
level9[136] = ["yellowRing", 100, 100, 510];
level9[137] = ["bubbles", 250, 250, 515];
level9[138] = ["bubbles", 350, 350, 530];
level9[139] = ["bubbles", 450, 450, 540];
level9[140] = ["blueRing", -300, -300, 550];
level9[141] = ["bubbles", -200, -200, 555];
level9[142] = ["bubbles", -300, -300, 565];
level9[143] = ["bubbles", -320, -320, 570];
level9[144] = ["bubbles", -250, -350, 575];
level9[145] = ["bubbles", -300, -400, 580];
level9[146] = ["bubbles", -400, -400, 585];
level9[147] = ["bubbles", -350, -250, 590];
level9[148] = ["bubbles", -300, -200, 590];
level9[149] = ["yellowRing", 400, 400, 595];
level9[150] = ["bubbles", 400, 400, 610];
level9[151] = ["bubbles", 350, 250, 620];
level9[152] = ["blueRing", 0, 0, 635];
level9[153] = ["bubbles", -160, -491, 638];
level9[154] = ["bubbles", -57, 225, 640];
level9[155] = ["bubbles", -427, -466, 645];
level9[156] = ["bubbles", -177, -307, 650];
level9[157] = ["bubbles", -255, 102, 655];
level9[158] = ["bubbles", -42, 273, 660];
level9[159] = ["bubbles", 101, 499, 665];
level9[160] = ["bubbles", 367, 131, 670];
level9[161] = ["bubbles", 10, -270, 675];
level9[162] = ["bubbles", -227, -367, 681];
level9[163] = ["bubbles", -425, 142, 682];
level9[164] = ["greenRing", -300, 200, 686];
level9[165] = ["cloud1MC", 200, 0, 700];
level9[166] = ["blueRing", 400, 300, 710];
level9[167] = ["bubbles", -400, -270, 720];
level9[168] = ["bubbles", -327, -367, 730];
level9[169] = ["bubbles", -425, -142, 740];
level9[170] = ["yellowRing", -500, 500, 745];
level9[171] = ["bubbles", 254, 376, 755];
level9[172] = ["bubbles", -144, 413, 760];
level9[173] = ["bubbles", 417, 4, 766];
level9[174] = ["bubbles", 406, -493, 770];
level9[175] = ["bubbles", -13, -425, 773];
level9[176] = ["bubbles", 259, -133, 777];
level9[177] = ["bubbles", 86, 213, 780];
level9[178] = ["bubbles", 215, -275, 781];
level9[179] = ["bubbles", 330, 180, 785];
level9[180] = ["yellowRing", 0, 0, 786];
level9[181] = ["bubbles", -187, 65, 802];
level9[182] = ["bubbles", 123, 388, 805];
level9[183] = ["blueRing", 200, -300, 822];
level9[184] = ["bubbles", -69, -460, 823];
level9[185] = ["bubbles", 363, 170, 824];
level9[186] = ["bubbles", -422, 25, 825];
level9[187] = ["bubbles", 149, -235, 830];
level9[188] = ["bubbles", 173, -393, 835];
level9[189] = ["bubbles", 258, -54, 840];
level9[190] = ["bubbles", -33, 209, 845];
level9[191] = ["bubbles", 421, 433, 850];
level9[192] = ["bubbles", 104, -291, 855];
level9[193] = ["bubbles", -320, -73, 860];
level9[194] = ["bubbles", 260, -394, 965];
level9[195] = ["greenRing", 400, -400, 870];
level9[196] = ["bubbles", 328, -141, 875];
level9[197] = ["bubbles", 396, 484, 880];
level9[198] = ["bubbles", -123, 11, 885];
level9[199] = ["bubbles", 454, -462, 890];
level9[200] = ["bubbles", 361, -49, 895];
level9[201] = ["bubbles", 246, -403, 900];
level9[202] = ["bubbles", 301, 266, 905];
level9[203] = ["bubbles", 20, -122, 910];
level9[204] = ["bubbles", -328, -109, 915];
level9[205] = ["bubbles", -300, -437, 920];
level9[206] = ["bubbles", 482, -295, 925];
level9[207] = ["blueRing", 500, -500, 930];
level9[208] = ["bubbles", -420, 311, 933];
level9[209] = ["bubbles", -3, -248, 935];
level9[210] = ["bubbles", 192, -58, 939];
level9[211] = ["bubbles", -200, 390, 941];
level9[212] = ["bubbles", 43, 229, 943];
level9[213] = ["bubbles", 474, 186, 947];
level9[214] = ["bubbles", -307, 391, 948];
level9[215] = ["bubbles", -342, -159, 949];
level9[216] = ["bubbles", -464, -346, 951];
level9[217] = ["bubbles", -497, 285, 953];
level9[218] = ["bubbles", 213, 76, 955];
level9[219] = ["bubbles", -180, 412, 958];
level9[220] = ["bubbles", -453, 441, 961];
level9[221] = ["bubbles", -317, 139, 963];
level9[222] = ["bubbles", -264, -450, 966];
level9[223] = ["bubbles", -215, -305, 969];
level9[224] = ["yellowRing", 250, 100, 972];
level9[225] = ["bubbles", 226, 399, 974];
level9[226] = ["bubbles", 311, 68, 979];
level9[227] = ["bubbles", -141, 200, 982];
level9[228] = ["bubbles", -78, -69, 985];
level9[229] = ["bubbles", 357, 387, 988];
level9[230] = ["bubbles", 381, 109, 990];
level9[231] = ["bubbles", -486, 334, 995];
level9[232] = ["bubbles", -214, 147, 1000];
level9[233] = ["bubbles", -19, -102, 1010];
level9[234] = ["bubbles", 492, -144, 1015];
level9[235] = ["bubbles", -344, 69, 1020];
level9[236] = ["bubbles", -310, 491, 1025];
level9[237] = ["bubbles", -404, -186, 1035];
level9[238] = ["bubbles", 65, 39, 1040];
level9[239] = ["blueRing", 0, 300, 1052];
level9[240] = ["bubbles", 446, -266, 1055];
level9[241] = ["bubbles", 126, -302, 1060];
level9[242] = ["bubbles", 407, 467, 1065];
level9[243] = ["bubbles", -76, -216, 1070];
level9[244] = ["bubbles", 27, -163, 1075];
level9[245] = ["bubbles", -62, 421, 1080];
level9[246] = ["bubbles", 7, 16, 1085];
level9[247] = ["bubbles", 415, -36, 1090];
level9[248] = ["bubbles", -47, -388, 1095];
level9[249] = ["yellowRing", -300, 200, 1115];
level9[250] = ["bubbles", 144, -69, 1120];
level9[251] = ["bubbles", 310, 491, 1140];
level9[252] = ["blueRing", 450, 400, 1150];
level9[253] = ["bubbles", -76, -216, 1160];
level9[254] = ["bubbles", 27, -163, 1170];
level9[0xFF] = ["bubbles", 362, 421, 1180];
level9[0x0100] = ["floor", 0, 0, 1200];
fading = false;
stage.quality = "MEDIUM";
addEventListener(MouseEvent.MOUSE_DOWN, pullShapes);
aTimer.addEventListener(TimerEvent.TIMER, levelTimedObjects);
startLevel(_root.levelNumber);
buildLevel(_root.levelNumber);
}
public function fadeSound():void{
if (!fading){
_root.soundEffects.fadeSound2();
fading = true;
};
}
public function tryKill():void{
aTimer.removeEventListener(TimerEvent.TIMER, levelTimedObjects);
removeEventListener(MouseEvent.MOUSE_DOWN, pullShapes);
aTimer.removeEventListener(TimerEvent.TIMER, levelTimedObjects);
}
public function hideSquare(_arg1:Number):void{
var obNumber = _arg1;
try {
getChildByName(("square_" + String(obNumber))).visible = false;
} catch(e:Error) {
};
}
private function calcTempPosition(_arg1:Point, _arg2:Number){
var _local3:Number = ((mouseX - _arg1.x) * _arg2);
var _local4:Number = ((mouseY - _arg1.y) * _arg2);
_arg1.x = (_arg1.x + _local3);
_arg1.y = (_arg1.y + _local4);
return (_arg1);
}
public function scorePoints(_arg1, _arg2, _arg3:Boolean=false):void{
if (_arg3){
resetMultiplier();
};
if (_arg1 > 0){
if ((((((_arg2 == "greenRingMC")) || ((_arg2 == "yellowRingMC")))) || ((_arg2 == "blueRingMC")))){
score = (score + (_arg1 * multiplier));
_root.numRings++;
_root.ringsScore = (_root.ringsScore + (_arg1 * multiplier));
if (!_arg3){
improveMultiplier();
};
} else {
if (_arg2 == "bubblesMC"){
score = (score + (_arg1 * multiplier));
_root.numBubbles++;
_root.bubblesScore = (_root.bubblesScore + (_arg1 * multiplier));
};
};
inGameScoresMC.scoreText.text = String(score);
} else {
resetMultiplier();
};
}
private function rotatePlayer():void{
var _local1:* = new Point();
_local1.x = (mouseX - fruitMC.x);
_local1.y = (mouseY - fruitMC.y);
calcTempPosition(_local1, 0.1);
fruitMC.rotation = calcAngle(_local1, fruitMC);
}
public function setSquare(_arg1:Number, _arg2:Number, _arg3:Number):void{
var square:*;
var theX = _arg1;
var theY = _arg2;
var obNumber = _arg3;
try {
square = getChildByName(("square_" + String(obNumber)));
square.x = theX;
square.y = theY;
} catch(e:Error) {
};
}
public function endLevel():void{
var _local1:* = getChildByName("floorMC");
if (fruitMC.hitTestObject(_local1.groundClip.hitAreaBox)){
_root.hitTarget = true;
score = (score * 10);
_root.storeSplatCountOnTarget((_root.splatCountOnTarget + 1));
} else {
_root.hitTarget = false;
_root.storeSplatCount((_root.splatCount + 1));
};
_root.storeRings(currentLevel, _root.numRings);
_root.tempscore = score;
_root.tempscoreneeded = this[("minScore_level" + currentLevel)];
score = 0;
_root.faderMC.gotoAndPlay(2);
}
private function addObject(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Number):void{
var _local5:*;
if (_arg1 == "diveBoardSideMC"){
_local5 = new diveBoardSideClass(this, _arg1);
_local5.scaleX = 1;
_local5.scaleY = 1;
} else {
_local5 = new objectPropertiesClass(this, _arg1, numObjects);
_local5.scaleX = 0.01;
_local5.scaleY = 0.01;
_local5.depth = _arg4;
_local5.basex = (_arg2 * 3);
_local5.basey = (_arg3 * 3);
};
_local5.name = _arg1;
addChild(_local5);
setChildIndex(fruitMC, (numChildren - 1));
setChildIndex(inGameScoresMC, (numChildren - 1));
var _local6:pointerMC = new pointerMC();
_local6.name = ("square_" + String(numObjects));
_local6.visible = true;
_local6.x = -1000;
_local6.y = 0;
addChild(_local6);
numObjects++;
}
private function startLevel(_arg1:Number):void{
currentLevel = _arg1;
multiplier = 1;
score = 0;
numObjects = 0;
_root.hitTarget = false;
_root.numBubbles = 0;
_root.numRings = 0;
_root.ringsScore = 0;
_root.bubblesScore = 0;
_root.tempscore = 0;
inGameScoresMC.levelText.text = String(currentLevel);
inGameScoresMC.multiplierText.text = ("x" + String(multiplier));
inGameScoresMC.scoreText.text = String(score);
inGameScoresMC.minScoreText.text = String(this[("minScore_level" + currentLevel)]);
aTimer.start();
}
public function playSound(_arg1):void{
_root.playSound1(_arg1);
}
public function playSound3(_arg1):void{
_root.playSound3(_arg1);
}
function frame1(){
}
public function resetMultiplier():void{
multiplier = 1;
inGameScoresMC.multiplierText.text = ("x" + String(multiplier));
}
private function improveMultiplier():void{
multiplier++;
inGameScoresMC.multiplierText.text = ("x" + String(multiplier));
}
private function calcAngle(_arg1:Point, _arg2:Sprite){
var _local3:Number = (_arg1.x - _arg2.x);
var _local4:Number = (_arg1.y - _arg2.y);
var _local5:Number = Math.atan2(_local4, _local3);
var _local6:Number = ((_local5 * 180) / Math.PI);
return ((_local6 + 90));
}
private function levelTimedObjects(_arg1:TimerEvent):void{
setPos();
rotatePlayer();
}
private function makeRandomClouds(_arg1:Number){
var _local2:*;
var _local3:*;
var _local4:*;
if ((((Math.random() >= 0.8)) && ((numClouds <= maxClouds)))){
numClouds++;
_local2 = Math.round((Math.random() + 1));
_local3 = Math.round((Math.random() + 1));
_local4 = Math.round((Math.random() + 1));
addObject(String((("cloud" + _local3) + "MC")), ((Math.random() * 2100) - 1050), ((Math.random() * 2100) - 1050), (_arg1 - (Math.random() * 3000)));
addObject(String((("cloud" + _local3) + "MC")), ((Math.random() * 2100) - 1050), ((Math.random() * 2100) - 1050), (_arg1 - (Math.random() * 3000)));
addObject(String((("cloud" + _local4) + "MC")), ((Math.random() * 2100) - 1050), ((Math.random() * 2100) - 1050), (_arg1 - (Math.random() * 3000)));
};
}
private function pullShapes(_arg1:MouseEvent):void{
if ((((currentShape == 1)) && ((done == true)))){
fruitMC.gotoAndPlay("mov_1_to_2");
done = false;
} else {
if ((((currentShape == 2)) && ((done == true)))){
fruitMC.gotoAndPlay("mov_2_to_3");
done = false;
} else {
if ((((currentShape == 3)) && ((done == true)))){
fruitMC.gotoAndPlay("mov_3_to_1");
done = false;
};
};
};
}
public function setPos():void{
fruitMC.x = (fruitMC.x + (((stage.mouseX - 300) - fruitMC.x) / 75));
fruitMC.y = (fruitMC.y + (((stage.mouseY - 225) - fruitMC.y) / 75));
chary = (-(fruitMC.y) * 6);
charx = (-(fruitMC.x) * 6);
try {
if ((((mouseX > fruitMC.x)) && (((mouseX - fruitMC.x) > 50)))){
if (fruitMC.diverMC.currentFrame == 1){
fruitMC.diverMC.gotoAndPlay("dive");
};
} else {
if ((((mouseX < fruitMC.x)) && (((fruitMC.x - mouseX) > 50)))){
if (fruitMC.diverMC.currentFrame == 1){
fruitMC.diverMC.gotoAndPlay("dive");
};
} else {
if ((((mouseY > fruitMC.y)) && (((mouseY - fruitMC.y) > 50)))){
if (fruitMC.diverMC.currentFrame == 1){
fruitMC.diverMC.gotoAndPlay("dive");
};
} else {
if ((((mouseY < fruitMC.y)) && (((fruitMC.y - mouseY) > 50)))){
if (fruitMC.diverMC.currentFrame == 1){
fruitMC.diverMC.gotoAndPlay("dive");
};
} else {
if (fruitMC.diverMC.currentLabel == "dived"){
fruitMC.diverMC.gotoAndPlay("undive");
};
};
};
};
};
} catch(e:Error) {
};
}
public function doEndSplat():void{
fruitMC.gotoAndPlay("splat");
playSound("_splatSound");
aTimer.stop();
aTimer.removeEventListener(TimerEvent.TIMER, levelTimedObjects);
}
private function buildLevel(_arg1:Number):void{
var _local2:* = this[(("level" + _arg1) + "Oblength")];
var _local3:* = (_local2 + 1);
while (_local3 > 1) {
switch (String(this[("level" + _arg1)][_local3][0])){
case "greenRing":
addObject("greenRingMC", this[("level" + _arg1)][_local3][1], this[("level" + _arg1)][_local3][2], (this[("level" + _arg1)][_local3][3] * 100));
break;
case "yellowRing":
addObject("yellowRingMC", this[("level" + _arg1)][_local3][1], this[("level" + _arg1)][_local3][2], (this[("level" + _arg1)][_local3][3] * 100));
break;
case "blueRing":
addObject("blueRingMC", this[("level" + _arg1)][_local3][1], this[("level" + _arg1)][_local3][2], (this[("level" + _arg1)][_local3][3] * 100));
break;
case "bubbles":
addObject("bubblesMC", this[("level" + _arg1)][_local3][1], this[("level" + _arg1)][_local3][2], (this[("level" + _arg1)][_local3][3] * 100));
break;
case "floor":
addObject("floorMC", this[("level" + _arg1)][_local3][1], this[("level" + _arg1)][_local3][2], (this[("level" + _arg1)][_local3][3] * 100));
break;
default:
break;
};
makeRandomClouds((this[("level" + _arg1)][_local3][3] * 100));
_local3--;
};
}
public function removeSquare(_arg1:Number):void{
var obNumber = _arg1;
try {
removeChild(getChildByName(("square_" + String(obNumber))));
} catch(e:Error) {
};
}
public function removeAChild(_arg1, _arg2:Number):void{
removeSquare(_arg2);
this.removeChild(_arg1);
}
}
}//package
Section 132
//gameSound (gameSound)
package {
import flash.media.*;
public dynamic class gameSound extends Sound {
}
}//package
Section 133
//jumpSound (jumpSound)
package {
import flash.media.*;
public dynamic class jumpSound extends Sound {
}
}//package
Section 134
//mainMenuClass (mainMenuClass)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.system.*;
public class mainMenuClass extends MovieClip {
public var l9ScoreText:TextField;
public var l4But:SimpleButton;
public var backBut:SimpleButton;
public var l1ScoreText:TextField;
public var titlerMC:MovieClip;
public var l7But:SimpleButton;
public var l2ScoreText:TextField;
public var l1:MovieClip;
public var l2:MovieClip;
public var l3:MovieClip;
public var l4:MovieClip;
public var l5:MovieClip;
public var l6:MovieClip;
public var l7:MovieClip;
public var l8:MovieClip;
public var l9:MovieClip;
public var ac1:MovieClip;
public var ac2:MovieClip;
public var ac3:MovieClip;
public var ac4:MovieClip;
public var ac5:MovieClip;
public var ac6:MovieClip;
public var backBut2:SimpleButton;
public var backBut3:SimpleButton;
public var l2But:SimpleButton;
public var l3ScoreText:TextField;
public var submitterMC:MovieClip;
public var acText:TextField;
public var l4ScoreText:TextField;
public var l5But:SimpleButton;
public var l8But:SimpleButton;
public var l5ScoreText:TextField;
public var titleFruit:MovieClip;
public var l6ScoreText:TextField;
public var l3But:SimpleButton;
var _root;
public var clearScoresBut:SimpleButton;
public var l7ScoreText:TextField;
public var l6But:SimpleButton;
public var l8ScoreText:TextField;
public var l9But:SimpleButton;
public var buttonsMC:MovieClip;
public var l1But:SimpleButton;
public function mainMenuClass(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
_root = MovieClip(root);
_root.changeQuality("HIGH");
Security.allowDomain("*");
Security.loadPolicyFile("http://www.vimto.co.uk/crossdomain.xml");
_root.hitTarget = false;
_root.getSavedDetails();
try {
MovieClip(root).loopSound4("_menu1Sound", 0.3);
} catch(e:Error) {
trace("could not load sound");
};
}
public function resetText(_arg1:MouseEvent):void{
MovieClip(root).soundEffects.playSound3("_buttonSound");
acText.text = "ACHIEVEMENTS UNLOCKED (HIGHLIGHTED)";
}
public function toMatmiSite(_arg1:MouseEvent):void{
_root.clickThis(1053, "http://www.matmi.com");
}
private function showInstructions(_arg1:MouseEvent):void{
_root.trackThis(2622);
_root.soundEffects.playSound3("_buttonSound");
if (titlerMC.currentFrame == 15){
titlerMC.gotoAndPlay("getSmall");
titleFruit.gotoAndPlay("hide");
};
gotoAndStop("instructions");
buttonsMC.gotoAndPlay(34);
}
public function playGame(_arg1:MouseEvent):void{
_root.soundEffects.playSound3("_buttonSound");
if (titlerMC.currentFrame == 15){
titlerMC.gotoAndPlay("getSmall");
titleFruit.gotoAndPlay("hide");
};
gotoAndStop("levelSelect");
buttonsMC.gotoAndPlay("hideButtons");
}
public function toSite(_arg1:MouseEvent):void{
_root.clickThis(1052, "http://www.vimto.co.uk");
}
function frame1(){
stop();
clearScoresBut.visible = false;
backBut.visible = false;
backBut2.visible = false;
backBut3.visible = false;
}
function frame2(){
backBut.addEventListener(MouseEvent.CLICK, goBack);
backBut.visible = true;
buttonsMC.playBut.visible = false;
buttonsMC.insBut.visible = false;
buttonsMC.stafBut.visible = false;
buttonsMC.highBut.visible = false;
buttonsMC.ecardBut.visible = false;
buttonsMC.ecardBut2.visible = false;
buttonsMC.toSiteBut.visible = false;
buttonsMC.toMatmiSiteBut.visible = false;
}
function frame4(){
l1But.addEventListener(MouseEvent.CLICK, goLevel);
l2But.addEventListener(MouseEvent.CLICK, goLevel);
l3But.addEventListener(MouseEvent.CLICK, goLevel);
l4But.addEventListener(MouseEvent.CLICK, goLevel);
l5But.addEventListener(MouseEvent.CLICK, goLevel);
l6But.addEventListener(MouseEvent.CLICK, goLevel);
l7But.addEventListener(MouseEvent.CLICK, goLevel);
l8But.addEventListener(MouseEvent.CLICK, goLevel);
l9But.addEventListener(MouseEvent.CLICK, goLevel);
clearScoresBut.visible = true;
backBut.visible = false;
backBut2.visible = false;
backBut3.visible = true;
clearScoresBut.addEventListener(MouseEvent.CLICK, clearScores);
backBut3.addEventListener(MouseEvent.CLICK, goBack);
unlockLevels();
buttonsMC.playBut.visible = true;
buttonsMC.insBut.visible = true;
buttonsMC.stafBut.visible = true;
buttonsMC.highBut.visible = true;
buttonsMC.ecardBut.visible = true;
buttonsMC.ecardBut2.visible = true;
buttonsMC.toSiteBut.visible = true;
buttonsMC.toMatmiSiteBut.visible = true;
}
public function killSound():void{
MovieClip(root).killSound();
}
function frame3(){
backBut2.addEventListener(MouseEvent.CLICK, goBack);
backBut2.visible = true;
buttonsMC.playBut.visible = false;
buttonsMC.insBut.visible = false;
buttonsMC.stafBut.visible = false;
buttonsMC.highBut.visible = false;
buttonsMC.ecardBut.visible = false;
buttonsMC.ecardBut2.visible = false;
buttonsMC.toSiteBut.visible = false;
buttonsMC.toMatmiSiteBut.visible = false;
}
public function startGame(_arg1:String):void{
_root.soundEffects.playSound3("_buttonSound");
switch (_arg1){
case "l1But":
_root.levelNumber = 1;
break;
case "l2But":
_root.levelNumber = 2;
break;
case "l3But":
_root.levelNumber = 3;
break;
case "l4But":
_root.levelNumber = 4;
break;
case "l5But":
_root.levelNumber = 5;
break;
case "l6But":
_root.levelNumber = 6;
break;
case "l7But":
_root.levelNumber = 7;
break;
case "l8But":
_root.levelNumber = 8;
break;
case "l9But":
_root.levelNumber = 9;
break;
};
_root.faderMC.gotoAndPlay("fadeInMainMenu");
_root.trackThis(2621);
}
public function goLevel(_arg1:MouseEvent):void{
startGame(String(_arg1.target.name));
}
private function showScores(_arg1:MouseEvent):void{
_root.trackThis(2623);
_root.soundEffects.playSound3("_buttonSound");
if (titlerMC.currentFrame == 15){
titlerMC.gotoAndPlay("getSmall");
titleFruit.gotoAndPlay("hide");
};
gotoAndStop(3);
buttonsMC.gotoAndPlay(34);
}
public function getScoresAndAchievements(){
l1ScoreText.text = String((_root.score1 + "PTS"));
l2ScoreText.text = String((_root.score2 + "PTS"));
l3ScoreText.text = String((_root.score3 + "PTS"));
l4ScoreText.text = String((_root.score4 + "PTS"));
l5ScoreText.text = String((_root.score5 + "PTS"));
l6ScoreText.text = String((_root.score6 + "PTS"));
l7ScoreText.text = String((_root.score7 + "PTS"));
l8ScoreText.text = String((_root.score8 + "PTS"));
l9ScoreText.text = String((_root.score9 + "PTS"));
var _local1:Number = 0;
if (_root.achievement1){
ac1.gotoAndStop(2);
_local1 = (_local1 + 1000);
};
if (_root.achievement2){
ac2.gotoAndStop(2);
_local1 = (_local1 + 2000);
};
if (_root.achievement3){
ac3.gotoAndStop(2);
_local1 = (_local1 + 3000);
};
if (_root.achievement4){
ac4.gotoAndStop(2);
_local1 = (_local1 + 5000);
};
if (_root.achievement5){
ac5.gotoAndStop(2);
_local1 = (_local1 + 8000);
};
if (_root.achievement6){
ac6.gotoAndStop(2);
_local1 = (_local1 + 10000);
};
submitterMC.scoreText.text = String((Number((((((((((_root.score1 + _root.score2) + _root.score3) + _root.score4) + _root.score5) + _root.score6) + _root.score7) + _root.score8) + _root.score9) + _local1)) + "PTS"));
}
public function toVimtoSite(_arg1:MouseEvent):void{
_root.clickThis(1056, "http://www.vimto.co.uk");
}
public function restartMenuMusic():void{
MovieClip(root).restartMenuMusic();
}
public function clearScores(_arg1:MouseEvent):void{
_root.soundEffects.playSound3("_buttonSound");
_root.cookie.Reset();
submitterMC.scoreText.text = "0PTS";
ac1.gotoAndStop(1);
ac2.gotoAndStop(1);
ac3.gotoAndStop(1);
ac4.gotoAndStop(1);
ac5.gotoAndStop(1);
ac6.gotoAndStop(1);
l1ScoreText.text = "0PTS";
l2ScoreText.text = "0PTS";
l3ScoreText.text = "0PTS";
l4ScoreText.text = "0PTS";
l5ScoreText.text = "0PTS";
l6ScoreText.text = "0PTS";
l7ScoreText.text = "0PTS";
l8ScoreText.text = "0PTS";
l9ScoreText.text = "0PTS";
var _local2:Number = 2;
while (_local2 <= 9) {
this[(("l" + _local2) + "But")].visible = false;
this[("l" + _local2)].gotoAndStop(1);
_local2++;
};
_root.hitTarget = false;
_root.numBubbles = 0;
_root.numRings = 0;
_root.ringsScore = 0;
_root.bubblesScore = 0;
_root.tempscoreneeded = 0;
_root.tempscore = 0;
}
public function unlockLevels():void{
var _local1:Number = _root.levelsUnlocked;
if (_root.levelsUnlocked > 9){
_local1 = 9;
};
var _local2:Number = 1;
while (_local2 <= _local1) {
this[(("l" + _local2) + "But")].visible = true;
this[("l" + _local2)].gotoAndStop(2);
if ((((_local2 == _root.levelsUnlocked)) && (!((_root.hasBeenUnlocked[_local2] == 1))))){
this[("l" + _local2)].gotoAndStop(3);
_root.hasBeenUnlocked[_local2] = 1;
};
_local2++;
};
_local2 = (_local1 + 1);
while (_local2 <= 9) {
this[(("l" + _local2) + "But")].visible = false;
this[("l" + _local2)].gotoAndStop(1);
_local2++;
};
}
private function showStaf(_arg1:MouseEvent):void{
_root.soundEffects.playSound3("_buttonSound");
buttonsMC.gotoAndPlay(18);
}
public function goBack(_arg1:MouseEvent):void{
_root.soundEffects.playSound3("_buttonSound");
titlerMC.gotoAndPlay(1);
titleFruit.gotoAndPlay(1);
buttonsMC.gotoAndPlay(1);
gotoAndStop(1);
}
private function showEcard(_arg1:MouseEvent):void{
if (_arg1.target.name == "ecardBut"){
_root.trackThis(2624);
} else {
_root.trackThis(2625);
};
_root.soundEffects.playSound3("_buttonSound");
var _local2:* = new ecardClass();
_local2.x = 0;
_local2.name = "ecardMC";
_local2.y = 0;
MovieClip(root).addChild(_local2);
MovieClip(root).backtoFront();
_local2.loadEcard();
MovieClip(root).backBut.visible = true;
}
public function setListeners():void{
buttonsMC.playBut.addEventListener(MouseEvent.CLICK, playGame);
buttonsMC.insBut.addEventListener(MouseEvent.CLICK, showInstructions);
buttonsMC.highBut.addEventListener(MouseEvent.CLICK, showScores);
buttonsMC.stafBut.addEventListener(MouseEvent.CLICK, showStaf);
buttonsMC.ecardBut.addEventListener(MouseEvent.CLICK, showEcard);
buttonsMC.ecardBut2.addEventListener(MouseEvent.CLICK, showEcard);
buttonsMC.toSiteBut.addEventListener(MouseEvent.CLICK, toSite);
buttonsMC.toMatmiSiteBut.addEventListener(MouseEvent.CLICK, toMatmiSite);
buttonsMC.toVimtoSiteBut.addEventListener(MouseEvent.CLICK, toVimtoSite);
}
}
}//package
Section 135
//menu1Sound (menu1Sound)
package {
import flash.media.*;
public dynamic class menu1Sound extends Sound {
}
}//package
Section 136
//objectPropertiesClass (objectPropertiesClass)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class objectPropertiesClass extends MovieClip {
var left:Boolean;// = false
var scoreAmount:Number;// = 0
public var currentLevel:Number;// = 1
var scored;// = false
var right:Boolean;// = false
var bottom:Boolean;// = false
public var ring:MovieClip;
var type:String;
var rtcharX:Number;
var _root;
public var depth;// = 0
var objectNum:Number;// = 0
public var basex:Number;
public var basey:Number;
var rtcharY:Number;
var fw;// = 100
var top:Boolean;// = false
var velocity;// = 0.0001
var aTimer;
var levelFloorFrame:Array;
public var hitAreaBox:MovieClip;
var s:Number;
public var groundClip:MovieClip;
public function objectPropertiesClass(_arg1, _arg2, _arg3:Number){
aTimer = new Timer(10);
levelFloorFrame = [0, 9, 18, 27, 9, 18, 27, 9, 18, 27];
super();
addFrameScript(0, frame1, 4, frame5, 5, frame6, 6, frame7);
_root = _arg1;
currentLevel = _root.currentLevel;
type = _arg2;
objectNum = _arg3;
gotoAndStop(type);
aTimer.addEventListener(TimerEvent.TIMER, enterframe);
aTimer.start();
if ((((((type == "greenRingMC")) || ((type == "yellowRingMC")))) || ((type == "blueRingMC")))){
scoreAmount = 2;
} else {
if (type == "bubblesMC"){
scoreAmount = 2;
};
};
}
private function enterframe(_arg1:TimerEvent):void{
var e = _arg1;
if (_root.killAll == true){
removeObject();
} else {
rtcharX = _root.charx;
rtcharY = _root.chary;
depth = (depth - _root.fallSpeed);
s = (fw / (depth + fw));
if ((((s >= 1)) && (!((type == "floorMC"))))){
removeObject();
} else {
if ((((s >= 0.1)) && (!((type == "floorMC"))))){
this.alpha = (1 - s);
} else {
if ((((s > 0.9)) && ((type == "floorMC")))){
_root.fallSpeed = 0;
_root.doEndSplat();
_root.startedEnding = false;
_root.killAll = true;
_root.endLevel();
aTimer.stop();
aTimer.removeEventListener(TimerEvent.TIMER, enterframe);
};
};
};
if (type == "floorMC"){
if ((((this.width > 1600)) && (!((levelFloorFrame[_root.currentLevel] == groundClip.currentFrame))))){
groundClip.nextFrame();
};
this.scaleY = (this.scaleX = (s * 170));
this.y = (s * _root.chary);
this.x = (s * _root.charx);
if ((levelFloorFrame[_root.currentLevel] - 2) == groundClip.currentFrame){
_root.fadeSound();
};
} else {
this.scaleY = (this.scaleX = (s * 4));
this.y = ((basey * s) + (s * _root.chary));
this.x = ((basex * s) + (s * _root.charx));
};
try {
checkHit();
} catch(e:Error) {
};
};
}
private function removeObject():void{
if ((((((((type == "greenRingMC")) || ((type == "yellowRingMC")))) || ((type == "blueRingMC")))) && (!(scored)))){
_root.scorePoints(0, type, true);
};
if ((((((((((type == "bubblesMC")) && (!(scored)))) || ((type == "greenRingMC")))) || ((type == "yellowRingMC")))) || ((type == "blueRingMC")))){
_root.playSound3("_cloudSound");
};
aTimer.stop();
aTimer.removeEventListener(TimerEvent.TIMER, enterframe);
_root.removeAChild(this, objectNum);
}
function frame5(){
if ((((((MovieClip(parent).currentLevel == 1)) || ((currentLevel == 4)))) || ((currentLevel == 7)))){
groundClip.gotoAndStop(1);
} else {
if ((((((currentLevel == 2)) || ((currentLevel == 5)))) || ((currentLevel == 8)))){
groundClip.gotoAndStop(11);
} else {
groundClip.gotoAndStop(21);
};
};
}
function frame6(){
this.rotation = (Math.random() * 180);
}
function frame7(){
this.rotation = (Math.random() * 180);
}
private function checkHit():void{
var _local1:Boolean;
var _local2:*;
if ((((((this.scaleX > 0.77)) && (!(scored)))) && (this.hitAreaBox.hitTestObject(_root.fruitMC.hitAreaBox)))){
scored = true;
_local1 = false;
if (type == "bubblesMC"){
_local2 = new collectedBubbleClass();
_local2.x = x;
_local2.y = y;
_root.addChild(_local2);
_root.playSound("_bubbleSound");
_root.scorePoints(scoreAmount, type, false);
removeObject();
} else {
if (type == "greenRingMC"){
if (_root.currentShape == 1){
ring.gotoAndStop("tintgood");
_root.playSound("_cloudWonSound");
} else {
ring.gotoAndStop("tintbad");
_local1 = true;
scoreAmount = 0;
_root.playSound("_cloudLostSound");
};
_root.scorePoints(scoreAmount, type, _local1);
} else {
if (type == "yellowRingMC"){
if (_root.currentShape == 2){
ring.gotoAndStop("tintgood");
_root.playSound("_cloudWonSound");
} else {
ring.gotoAndStop("tintbad");
_local1 = true;
scoreAmount = 0;
_root.playSound("_cloudLostSound");
};
_root.scorePoints(scoreAmount, type, _local1);
} else {
if (type == "blueRingMC"){
if (_root.currentShape == 3){
ring.gotoAndStop("tintgood");
_root.playSound("_cloudWonSound");
} else {
ring.gotoAndStop("tintbad");
_local1 = true;
scoreAmount = 0;
_root.playSound("_cloudLostSound");
};
_root.scorePoints(scoreAmount, type, _local1);
};
};
};
};
};
}
function frame1(){
stop();
}
}
}//package
Section 137
//pointerMC (pointerMC)
package {
import flash.display.*;
public dynamic class pointerMC extends MovieClip {
}
}//package
Section 138
//preloader (preloader)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class preloader extends MovieClip {
var total:Number;// = 10000
var loaded:Number;// = 0
public var lbar:MovieClip;
var initX:Number;// = 0
public var lpc:TextField;
public function preloader(){
addEventListener(Event.ENTER_FRAME, handleProgress);
addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
}
public function handleProgress(_arg1:Event):void{
var percent:Number;
var event = _arg1;
try {
loaded = Math.round(stage.loaderInfo.bytesLoaded);
total = Math.round(stage.loaderInfo.bytesTotal);
percent = 0;
percent = (loaded / total);
UpdateProgress(percent);
if (loaded >= total){
removeEventListener(Event.ENTER_FRAME, handleProgress);
MovieClip(root).play();
};
} catch(e:Error) {
};
}
public function UpdateProgress(_arg1:Number):void{
var frame:*;
var prog = _arg1;
try {
if (Math.floor((100 * prog)) > 1.9){
frame = Math.floor((100 * prog));
if (lbar.currentFrame < frame){
lbar.gotoAndStop(frame);
};
};
lpc.text = (String(Math.floor(Number((100 * prog)))) + "%");
} catch(e:Error) {
};
}
public function ioErrorHandler(_arg1:IOErrorEvent):void{
trace(("ioErrorHandler: " + _arg1));
}
}
}//package
Section 139
//scoreboardClass (scoreboardClass)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.system.*;
public class scoreboardClass extends MovieClip {
public var n10:TextField;
public var n11:TextField;
public var n12:TextField;
public var n13:TextField;
public var n14:TextField;
public var n16:TextField;
public var n18:TextField;
public var n15:TextField;
public var n17:TextField;
public var n19:TextField;
public var s1:TextField;
public var s2:TextField;
public var s4:TextField;
public var s6:TextField;
public var s3:TextField;
public var s5:TextField;
public var s7:TextField;
public var n20:TextField;
public var n21:TextField;
public var n22:TextField;
public var n23:TextField;
public var n24:TextField;
public var n25:TextField;
public var n26:TextField;
public var s8:TextField;
public var s9:TextField;
var variables:URLVariables;
public var n1:TextField;
public var n2:TextField;
public var n3:TextField;
public var n4:TextField;
public var n5:TextField;
public var n6:TextField;
public var n7:TextField;
public var n8:TextField;
public var n9:TextField;
var _root;
public var s10:TextField;
public var s11:TextField;
public var s12:TextField;
public var s13:TextField;
public var s14:TextField;
public var s15:TextField;
public var s16:TextField;
public var s17:TextField;
public var s18:TextField;
public var s19:TextField;
public var s20:TextField;
public var s21:TextField;
public var s22:TextField;
public var s23:TextField;
public var s24:TextField;
public var s25:TextField;
public var s26:TextField;
public function scoreboardClass(){
variables = new URLVariables();
super();
_root = MovieClip(root);
Security.allowDomain("*");
Security.loadPolicyFile("http://www.vimto.co.uk/crossdomain.xml");
var _local1:URLRequest = new URLRequest(("http://www.vimto.co.uk/games/highdive/getScores.php?rnd=" + (Math.random() * 999)));
var _local2:URLLoader = new URLLoader();
_local2.dataFormat = URLLoaderDataFormat.VARIABLES;
_local1.method = URLRequestMethod.POST;
_local2.addEventListener(Event.COMPLETE, handleComplete);
_local2.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
_local2.load(_local1);
}
private function handleComplete(_arg1:Event):void{
var _local2:URLLoader = URLLoader(_arg1.target);
var _local3 = 1;
while (_local2.data[("n" + _local3)]) {
this[("n" + _local3)].text = _local2.data[("n" + _local3)];
this[("s" + _local3)].text = _local2.data[("s" + _local3)];
_local3++;
};
}
private function onIOError(_arg1:IOErrorEvent):void{
trace("Error loading URL.");
}
}
}//package
Section 140
//SendToAFriendClass (SendToAFriendClass)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.system.*;
public class SendToAFriendClass extends MovieClip {
var variables:URLVariables;
var _root;
public function SendToAFriendClass(_arg1, _arg2, _arg3, _arg4, _arg5){
variables = new URLVariables();
super();
_root = _arg1;
var _local6:URLRequest = new URLRequest("http://www.vimto.co.uk/games/highdive/sendtoafriend.php");
var _local7:URLLoader = new URLLoader();
_local7.dataFormat = URLLoaderDataFormat.VARIABLES;
variables.youremail = _arg3;
variables.theiremail = _arg4;
variables.yourname = _arg2;
variables.allow = String(_arg5);
_local6.data = variables;
_local6.method = URLRequestMethod.POST;
_local7.addEventListener(Event.COMPLETE, handleComplete);
_local7.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
_local7.load(_local6);
}
private function handleComplete(_arg1:Event):void{
var _local2:URLLoader = URLLoader(_arg1.target);
if (_local2.data.err == "false"){
_root.andBack(null);
} else {
_root.stafError.err.text = _local2.data.err;
_root.stafError.visible = true;
_root.prevFrame();
};
}
private function onIOError(_arg1:IOErrorEvent):void{
trace("Error loading URL.");
}
Security.allowDomain("*");
Security.loadPolicyFile("http://www.vimto.co.uk/crossdomain.xml");
}
}//package
Section 141
//SharedObjectReader (SharedObjectReader)
package {
import flash.net.*;
import flash.display.*;
import flash.utils.*;
public class SharedObjectReader extends Sprite {
private var _root;
private var _sharedObj:SharedObject;
public function SharedObjectReader(_arg1){
_root = _arg1;
}
public function storeRings(_arg1:Number, _arg2:Number):void{
_sharedObj.data[("numRings" + _arg1)] = _arg2;
_root[("numTotalRings" + _arg1)] = _arg2;
}
public function storeUser(_arg1, _arg2):void{
_sharedObj.data.username = _arg1;
_sharedObj.data.email = _arg2;
}
public function Load(){
if (canUseCookie()){
if (_sharedObj.data.score1 == undefined){
Reset();
};
return ([_sharedObj.data.username, _sharedObj.data.email, _sharedObj.data.score1, _sharedObj.data.score2, _sharedObj.data.score3, _sharedObj.data.score4, _sharedObj.data.score5, _sharedObj.data.score6, _sharedObj.data.score7, _sharedObj.data.score8, _sharedObj.data.score9, _sharedObj.data.achievement1, _sharedObj.data.achievement2, _sharedObj.data.achievement3, _sharedObj.data.achievement4, _sharedObj.data.achievement5, _sharedObj.data.achievement6, _sharedObj.data.levelsUnlocked, _sharedObj.data.achievement4Data, _sharedObj.data.achievement5Data, _sharedObj.data.numRings1, _sharedObj.data.numRings2, _sharedObj.data.numRings3, _sharedObj.data.numRings4, _sharedObj.data.numRings5, _sharedObj.data.numRings6, _sharedObj.data.numRings7, _sharedObj.data.numRings8, _sharedObj.data.numRings9]);
//unresolved jump
};
return (null);
}
public function storeSplatCount(_arg1:Number):void{
_sharedObj.data.achievement4Data = _arg1;
_root.splatCount = _arg1;
trace(("MISSED TIMES = " + _root.splatCount));
}
public function Reset():void{
if (canUseCookie()){
_sharedObj.data.username = "";
_sharedObj.data.email = "";
_sharedObj.data.score1 = 0;
_sharedObj.data.score2 = 0;
_sharedObj.data.score3 = 0;
_sharedObj.data.score4 = 0;
_sharedObj.data.score5 = 0;
_sharedObj.data.score6 = 0;
_sharedObj.data.score7 = 0;
_sharedObj.data.score8 = 0;
_sharedObj.data.score9 = 0;
_sharedObj.data.levelsUnlocked = 1;
_sharedObj.data.achievement1 = 0;
_sharedObj.data.achievement2 = 0;
_sharedObj.data.achievement3 = 0;
_sharedObj.data.achievement4 = 0;
_sharedObj.data.achievement5 = 0;
_sharedObj.data.achievement6 = 0;
_sharedObj.data.achievement4Data = 0;
_sharedObj.data.achievement5Data = 0;
_sharedObj.data.numRings1 = 0;
_sharedObj.data.numRings2 = 0;
_sharedObj.data.numRings3 = 0;
_sharedObj.data.numRings4 = 0;
_sharedObj.data.numRings5 = 0;
_sharedObj.data.numRings6 = 0;
_sharedObj.data.numRings7 = 0;
_sharedObj.data.numRings8 = 0;
_sharedObj.data.numRings9 = 0;
_sharedObj.flush();
_sharedObj.close();
_root.username = "";
_root.email = "";
_root.score1 = 0;
_root.score2 = 0;
_root.score3 = 0;
_root.score4 = 0;
_root.score5 = 0;
_root.score6 = 0;
_root.score7 = 0;
_root.score8 = 0;
_root.score9 = 0;
_root.levelsUnlocked = 1;
_root.achievement1 = 0;
_root.achievement2 = 0;
_root.achievement3 = 0;
_root.achievement4 = 0;
_root.achievement5 = 0;
_root.achievement6 = 0;
_root.splatCountOnTarget = 0;
_root.splatCount = 0;
_root.numTotalRings1 = 0;
_root.numTotalRings2 = 0;
_root.numTotalRings3 = 0;
_root.numTotalRings4 = 0;
_root.numTotalRings5 = 0;
_root.numTotalRings6 = 0;
_root.numTotalRings7 = 0;
_root.numTotalRings8 = 0;
_root.numTotalRings9 = 0;
} else {
trace("could not save");
};
}
public function storeScore(_arg1, _arg2, _arg3):Boolean{
if ((((_arg2 >= _arg3)) && ((Number(_sharedObj.data.levelsUnlocked) == Number(_arg1))))){
_sharedObj.data.levelsUnlocked = Number((_arg1 + 1));
};
if (Number(_sharedObj.data[("score" + _arg1)]) >= Number(_arg2)){
return (false);
};
_sharedObj.data[("score" + _arg1)] = _arg2;
return (true);
}
public function storeScoreAndGetLevel(_arg1, _arg2, _arg3):Boolean{
var _local4:* = false;
if ((((_arg2 >= _arg3)) && ((Number(_sharedObj.data.levelsUnlocked) == Number(_arg1))))){
_sharedObj.data.levelsUnlocked = Number((_arg1 + 1));
_local4 = true;
};
if (Number(_sharedObj.data[("score" + _arg1)]) >= Number(_arg2)){
} else {
_sharedObj.data[("score" + _arg1)] = _arg2;
};
return (_local4);
}
public function storeAchievement(_arg1):void{
_sharedObj.data[("achievement" + _arg1)] = true;
_root[("achievement" + _arg1)] = true;
}
private function canUseCookie():Boolean{
try {
_sharedObj = SharedObject.getLocal("HighDiveSaves");
} catch(error:Error) {
trace(("SharedObject Error:" + error.toString()));
return (false);
};
return (true);
}
public function Save():void{
if (canUseCookie()){
_sharedObj.data.username = _root.username;
_sharedObj.data.email = _root.email;
_sharedObj.data.score1 = _root.score1;
_sharedObj.data.score2 = _root.score2;
_sharedObj.data.score3 = _root.score3;
_sharedObj.data.score4 = _root.score4;
_sharedObj.data.score5 = _root.score5;
_sharedObj.data.score6 = _root.score6;
_sharedObj.data.score7 = _root.score7;
_sharedObj.data.score8 = _root.score8;
_sharedObj.data.score9 = _root.score9;
_sharedObj.data.achievement1 = _root.achievement1;
_sharedObj.data.achievement2 = _root.achievement2;
_sharedObj.data.achievement3 = _root.achievement3;
_sharedObj.data.achievement4 = _root.achievement4;
_sharedObj.data.achievement5 = _root.achievement5;
_sharedObj.data.achievement6 = _root.achievement6;
_sharedObj.data.achievement4Data = _root.splatCount;
_sharedObj.data.achievement5Data = _root.splatCountOnTarget;
_sharedObj.data.numRings1 = _root.numTotalRings1;
_sharedObj.data.numRings2 = _root.numTotalRings2;
_sharedObj.data.numRings3 = _root.numTotalRings3;
_sharedObj.data.numRings4 = _root.numTotalRings4;
_sharedObj.data.numRings5 = _root.numTotalRings5;
_sharedObj.data.numRings6 = _root.numTotalRings6;
_sharedObj.data.numRings7 = _root.numTotalRings7;
_sharedObj.data.numRings8 = _root.numTotalRings8;
_sharedObj.data.numRings9 = _root.numTotalRings9;
_sharedObj.data.levelsUnlocked = _root.levelsUnlocked;
_sharedObj.flush();
_sharedObj.close();
} else {
trace("could not save");
};
}
public function storeSplatCountOnTarget(_arg1:Number):void{
_sharedObj.data.achievement5Data = _arg1;
_root.splatCountOnTarget = _arg1;
}
}
}//package
Section 142
//soundEffectsClass (soundEffectsClass)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.media.*;
public class soundEffectsClass extends MovieClip {
var _cloudSound;
var _jumpSound;
var speakerChannel:SoundChannel;
var _bubbleSound1;
var _bubbleSound2;
var _failureSound;
var soundtransform1:SoundTransform;
var soundtransform2:SoundTransform;
var _bubbleSound3;
var soundtransform4:SoundTransform;
var soundtransform3:SoundTransform;
var soundchannel2:SoundChannel;
var soundchannel3:SoundChannel;
var soundchannel4:SoundChannel;
var _menu1Sound;
var soundchannel1:SoundChannel;
var _successSound;
var speakerTransform:SoundTransform;
var _splatSound;
var _cloudLostSound;
var _buttonSound;
var _root;
var _gameSound;
var soundmuter;
var _windSound;
var _cloudWonSound;
var myTimer:Timer;
public function soundEffectsClass(_arg1):void{
_bubbleSound1 = new bubbleSound1();
_bubbleSound2 = new bubbleSound2();
_bubbleSound3 = new bubbleSound3();
_cloudSound = new cloudSound();
_cloudWonSound = new cloudWonSound();
_buttonSound = new buttonSound();
_windSound = new windSound();
_cloudLostSound = new cloudLostSound();
_splatSound = new splatSound();
_jumpSound = new jumpSound();
_menu1Sound = new menu1Sound();
_gameSound = new gameSound();
_successSound = new successSound();
_failureSound = new failureSound();
myTimer = new Timer(100, 10);
super();
_root = _arg1;
soundchannel1 = new SoundChannel();
soundtransform1 = new SoundTransform();
soundtransform1.volume = 1;
soundchannel1.soundTransform = soundtransform1;
soundchannel2 = new SoundChannel();
soundtransform2 = new SoundTransform();
soundtransform2.volume = 1;
soundchannel2.soundTransform = soundtransform2;
soundchannel3 = new SoundChannel();
soundtransform3 = new SoundTransform();
soundtransform3.volume = 1;
soundchannel3.soundTransform = soundtransform3;
soundchannel4 = new SoundChannel();
soundtransform4 = new SoundTransform();
soundtransform4.volume = 0.3;
soundchannel4.soundTransform = soundtransform4;
soundmuter = new SoundTransform();
soundmuter.volume = 0;
}
public function mute():void{
soundmuter.volume = 0;
SoundMixer.soundTransform = soundmuter;
_root.sound = false;
}
public function stopSound3(){
soundchannel3.stop();
}
public function stopSound2(_arg1:String=""){
soundchannel2.stop();
}
public function fadeSound2(){
myTimer.addEventListener("timer", fadeFunction);
myTimer.start();
}
public function loopSound1(_arg1){
soundchannel1.stop();
soundchannel1 = this[_arg1].play(0, 999);
}
public function loopSound2(_arg1){
soundchannel2.stop();
soundchannel2 = this[_arg1].play(0, 999);
}
public function loopSound3(_arg1){
soundchannel3.stop();
soundchannel3 = this[_arg1].play(0, 999);
}
public function loopSound4(_arg1, _arg2:Number=0.3){
soundchannel4.stop();
soundchannel4 = this[_arg1].play(0, 999);
soundtransform4.volume = _arg2;
soundchannel4.soundTransform = soundtransform4;
}
public function restartMenuMusic(){
trace("restarting audio");
}
public function stopSound1(){
soundchannel1.stop();
}
public function unMute():void{
soundmuter.volume = 1;
SoundMixer.soundTransform = soundmuter;
_root.sound = true;
}
public function playSound2(_arg1){
soundchannel2 = this[_arg1].play();
}
public function playSound1(_arg1:String){
var _local2:*;
if (_arg1 == "_bubbleSound"){
_local2 = Math.round(((Math.random() * 2) + 1));
soundchannel1 = this[(_arg1 + _local2)].play();
} else {
soundchannel1 = this[_arg1].play();
};
}
public function playSound3(_arg1){
soundchannel3.stop();
soundchannel3 = this[_arg1].play();
}
public function killSound(){
soundchannel1.stop();
soundchannel2.stop();
soundchannel3.stop();
soundchannel4.stop();
}
function fadeFunction(_arg1:TimerEvent){
soundtransform2.volume = (soundtransform2.volume - 0.1);
soundchannel2.soundTransform = soundtransform2;
if (soundtransform2.volume <= 0){
stopSound2();
};
}
}
}//package
Section 143
//splatSound (splatSound)
package {
import flash.media.*;
public dynamic class splatSound extends Sound {
}
}//package
Section 144
//submitScoreClass (submitScoreClass)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.system.*;
public class submitScoreClass extends MovieClip {
var _root;
var e:String;
var q:String;
public var r:String;// = "YES"
var w:String;
var variables:URLVariables;
public function submitScoreClass(_arg1, _arg2:String, _arg3:String, _arg4:Number, _arg5){
variables = new URLVariables();
super();
_root = _arg1;
var _local6:Number = Math.round((Math.random() * 3));
switch (_local6){
case 0:
q = stringToAscii(_arg2, 7);
w = stringToAscii(_arg3, 10);
e = stringToAscii(String(_arg4), 97);
break;
case 1:
q = stringToAscii(_arg2, 64);
w = stringToAscii(_arg3, 23);
e = stringToAscii(String(_arg4), 56);
break;
case 2:
q = stringToAscii(_arg2, 12);
w = stringToAscii(_arg3, 19);
e = stringToAscii(String(_arg4), 56);
break;
default:
trace("error");
break;
};
r = String(_arg5);
var _local7:URLRequest = new URLRequest("http://www.vimto.co.uk/games/highdive/storeScore.php");
var _local8:URLLoader = new URLLoader();
_local8.dataFormat = URLLoaderDataFormat.VARIABLES;
variables.q = q;
variables.w = w;
variables.e = e;
variables.r = r;
variables.usr_scr_pss = _local6;
_local7.data = variables;
_local7.method = URLRequestMethod.POST;
_local8.addEventListener(Event.COMPLETE, handleComplete);
_local8.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
_local8.load(_local7);
}
private function onIOError(_arg1:IOErrorEvent):void{
_root.gotoAndStop("error");
}
private function handleComplete(_arg1:Event):void{
var _local2:URLLoader = URLLoader(_arg1.target);
if (_local2.data.err == "notbeaten"){
_root.gotoAndPlay("notBeaten");
} else {
if (_local2.data.err == "offensive"){
_root.gotoAndPlay("offensive");
} else {
if (_local2.data.err != "false"){
trace(_local2.data.err);
_root.gotoAndStop("error");
} else {
_root.gotoAndPlay("done");
};
};
};
}
private function stringToAscii(_arg1:String, _arg2:Number):String{
var _local3:* = _arg1.split("");
var _local4 = "";
var _local5:Number = 0;
while (_local3[_local5] != null) {
_local4 = (_local4 + ((_local3[_local5].charCodeAt(0) + _arg2) + "||"));
_local5++;
};
return (_local4);
}
Security.allowDomain("http://www.matmi.com");
Security.loadPolicyFile("http://www.matmi.com/crossdomain.xml");
}
}//package
Section 145
//successSound (successSound)
package {
import flash.media.*;
public dynamic class successSound extends Sound {
}
}//package
Section 146
//windSound (windSound)
package {
import flash.media.*;
public dynamic class windSound extends Sound {
}
}//package