Section 1
//Button (classAssets.Button)
package classAssets {
import flash.display.*;
import flash.events.*;
public class Button extends MovieClip {
private const ANIMATE:Boolean = true;
private var _dest:String;
public var hitarea_mc:MovieClip;
private var _playing:Boolean;// = false
public function Button(){
_playing = false;
super();
stop();
hitarea_mc.alpha = 0;
hitarea_mc.buttonMode = true;
hitarea_mc.addEventListener(MouseEvent.ROLL_OVER, rollOverHandler);
hitarea_mc.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
hitarea_mc.addEventListener(MouseEvent.MOUSE_OUT, rollOutHandler);
if (stage == null){
this.addEventListener(Event.ADDED_TO_STAGE, whenAddedToList);
} else {
stageFunctions();
};
}
private function mouseUpHandler(_arg1:MouseEvent):void{
if (_arg1.target == hitarea_mc){
gotoAndStop("over");
} else {
if (!ANIMATE){
gotoAndStop("off");
} else {
if (currentLabel == "down"){
gotoAndPlay("over");
};
};
};
}
private function rollOverHandler(_arg1:MouseEvent):void{
if (!ANIMATE){
gotoAndStop("over");
} else {
this.gotoAndPlay(1);
playTo("over");
};
}
private function whenAddedToList(_arg1:Event):void{
stageFunctions();
}
private function stageFunctions():void{
stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
}
public function mouseDownHandler(_arg1:MouseEvent):void{
gotoAndStop("down");
}
private function checkState(_arg1:Event):void{
if (currentLabel == _dest){
stop();
if (_dest == "down"){
gotoAndStop(1);
};
_playing = false;
removeEventListener(Event.ENTER_FRAME, checkState);
};
}
private function rollOutHandler(_arg1:MouseEvent):void{
gotoAndStop("off");
}
private function playTo(_arg1){
_dest = _arg1;
_playing = true;
this.addEventListener(Event.ENTER_FRAME, checkState);
}
}
}//package classAssets
Section 2
//CountdownTimer (classAssets.CountdownTimer)
package classAssets {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class CountdownTimer extends MovieClip {
public var _duration:int;// = 0
private var TARGET;
public var _minutes:int;// = 0
public var _seconds:int;// = 0
public var _tens:Timer;
public function CountdownTimer():void{
_minutes = 0;
_seconds = 0;
_duration = 0;
super();
}
public function startTimer(_arg1, _arg2=null):void{
_duration = _arg1;
TARGET = _arg2;
_tens = new Timer(10, 0);
_tens.addEventListener(TimerEvent.TIMER, displayTime);
_tens.start();
}
public function dispatchMessage(_arg1:String):void{
var _local2:Object;
_local2 = new Object();
_local2.myFunction = _arg1;
_local2.targ = this.name;
this.dispatchEvent(new CustomEvent(_local2));
}
public function endTimer():void{
_tens.stop();
_tens.removeEventListener(TimerEvent.TIMER, displayTime);
dispatchMessage("timer_finished");
this.dispatchEvent(new Event("timer_finished"));
}
public function resetTimer():void{
_tens.stop();
_tens.reset();
_tens.removeEventListener(TimerEvent.TIMER, displayTime);
_seconds = 0;
}
public function stopTimer():void{
_tens.stop();
_tens.removeEventListener(TimerEvent.TIMER, displayTime);
}
private function displayTime(_arg1:TimerEvent):void{
var _local2:*;
var _local3:*;
_local2 = (100 - _tens.currentCount);
_local3 = ((_duration - _seconds) - 1);
if (TARGET){
displayTimer(_local3, _local2);
};
if (_local2 == 0){
_tens.reset();
_tens.start();
_seconds++;
};
if ((((_local3 == 0)) && ((_local2 == 0)))){
endTimer();
};
}
private function displayTimer(_arg1, _arg2):void{
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:String;
if (_arg1 > 60){
_local5 = (_arg1 / 60);
_arg1 = (_arg1 - (60 * _local5));
};
_local6 = (_local5.toString() + ":");
if (_arg1 < 10){
_local3 = ("0" + _arg1.toString());
} else {
_local3 = _arg1.toString();
};
if (_arg2 < 10){
_local4 = (":0" + _arg2.toString());
} else {
_local4 = (":" + _arg2.toString());
};
TARGET.text = ((_local6 + _local3) + _local4);
}
}
}//package classAssets
Section 3
//CustomEvent (classAssets.CustomEvent)
package classAssets {
import flash.events.*;
public class CustomEvent extends Event {
public var ref;
public function CustomEvent(_arg1):void{
super("CustomEvent");
ref = _arg1;
}
}
}//package classAssets
Section 4
//GameUtils (classAssets.GameUtils)
package classAssets {
import flash.geom.*;
import flash.events.*;
import flash.utils.*;
import flash.filters.*;
public class GameUtils extends EventDispatcher {
var fastTimers:Array;
var timers:Array;
var pauseTime:Array;
var counters:Array;
var myTimer:Timer;
var myFastTimer:Timer;
public function GameUtils(){
myTimer = new Timer(1000, 0);
myFastTimer = new Timer(500, 0);
timers = new Array();
fastTimers = new Array();
counters = new Array();
pauseTime = new Array();
super();
}
private function countHandler(_arg1:TimerEvent):void{
var _local2:*;
var _local3:int;
_local2 = counters.length;
_local3 = 0;
while (_local3 < _local2) {
if ((myTimer.currentCount - counters[_local3].startTime) == counters[_local3].endTime){
if ((_local3 + 1) == _local2){
counters.pop();
myTimer.removeEventListener(TimerEvent.TIMER, countHandler);
} else {
counters.splice(_local3, 1);
_local3--;
_local2--;
};
broadcastMessage("count_finished");
};
_local3++;
};
}
public function startTimer(){
myTimer.start();
}
public function newTimer(_arg1){
if (myTimer.running == false){
startTimer();
};
timers[_arg1] = myTimer.currentCount;
}
public function newFastTimer(_arg1){
if (myFastTimer.running == false){
startFastTimer();
};
fastTimers[_arg1] = myFastTimer.currentCount;
}
private function timerHandler(_arg1:TimerEvent):void{
trace(("timerHandler: " + myTimer.currentCount));
}
public function brightnessC(_arg1, _arg2){
var _local3:ColorTransform;
_local3 = new ColorTransform();
_local3.redOffset = _arg2;
_local3.greenOffset = _arg2;
_local3.blueOffset = _arg2;
_arg1.transform.colorTransform = _local3;
}
public function startFastTimer(){
myFastTimer.start();
}
function customListener(_arg1:CustomEvent):void{
this.removeEventListener("CustomEvent", customListener);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
public function currentFastTime(_arg1){
return ((myFastTimer.currentCount - fastTimers[_arg1]));
}
public function currentTime(_arg1){
return ((myTimer.currentCount - timers[_arg1]));
}
public function stopFastTimer(){
myFastTimer.stop();
}
private function broadcastMessage(_arg1){
var _local2:Object;
_local2 = new Object();
_local2.myFunction = _arg1;
this.dispatchEvent(new CustomEvent(_local2));
}
public function stopTimer(){
myTimer.stop();
}
public function setAlpha(_arg1, _arg2){
var _local3:ColorTransform;
_local3 = new ColorTransform();
_local3.alphaOffset = _arg2;
_arg1.transform.colorTransform = _local3;
}
public function pauseTimer(_arg1){
}
public function addGlow(_arg1, _arg2){
var _local3:GradientGlowFilter;
_local3 = new GradientGlowFilter();
_local3.distance = 0;
_local3.angle = 45;
_local3.colors = [_arg2, _arg2];
_local3.alphas = [0, 1];
_local3.ratios = [0, 0xFF];
_local3.blurX = 10;
_local3.blurY = 10;
_local3.strength = 2;
_local3.quality = BitmapFilterQuality.HIGH;
_local3.type = BitmapFilterType.OUTER;
_arg1.filters = [_local3];
}
public function newCounter(_arg1){
var _local2:Object;
if (myTimer.running == false){
startTimer();
};
_local2 = new Object();
_local2.startTime = myTimer.currentCount;
_local2.endTime = _arg1;
counters.push(_local2);
myTimer.addEventListener(TimerEvent.TIMER, countHandler);
}
public function colourC(_arg1, _arg2, _arg3, _arg4){
var _local5:ColorTransform;
_local5 = new ColorTransform();
_local5.redOffset = _arg2;
_local5.greenOffset = _arg3;
_local5.blueOffset = _arg4;
_arg1.transform.colorTransform = _local5;
}
}
}//package classAssets
Section 5
//HitTest (classAssets.HitTest)
package classAssets {
import flash.geom.*;
import flash.display.*;
public class HitTest {
public function complexHitTestObject(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=1):Boolean{
return (!((complexIntersectionRectangle(_arg1, _arg2, _arg3).width == 0)));
}
public function complexIntersectionRectangle(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=1):Rectangle{
var _local4:Rectangle;
var _local5:BitmapData;
var _local6:Rectangle;
if (_arg3 <= 0){
throw (new Error("ArgumentError: Error #5001: Invalid value for accurracy", 5001));
};
if (!_arg1.hitTestObject(_arg2)){
return (new Rectangle());
};
_local4 = intersectionRectangle(_arg1, _arg2);
if (((((_local4.width * _arg3) < 1)) || (((_local4.height * _arg3) < 1)))){
return (new Rectangle());
};
_local5 = new BitmapData((_local4.width * _arg3), (_local4.height * _arg3), false, 0);
_local5.draw(_arg1, HitTest.getDrawMatrix(_arg1, _local4, _arg3), new ColorTransform(1, 1, 1, 1, 0xFF, -255, -255, 0xFF));
_local5.draw(_arg2, HitTest.getDrawMatrix(_arg2, _local4, _arg3), new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF, 0xFF), BlendMode.DIFFERENCE);
_local6 = _local5.getColorBoundsRect(4294967295, 4278255615);
_local5.dispose();
if (_arg3 != 1){
_local6.x = (_local6.x / _arg3);
_local6.y = (_local6.y / _arg3);
_local6.width = (_local6.width / _arg3);
_local6.height = (_local6.height / _arg3);
};
_local6.x = (_local6.x + _local4.x);
_local6.y = (_local6.y + _local4.y);
return (_local6);
}
public function intersectionRectangle(_arg1:DisplayObject, _arg2:DisplayObject):Rectangle{
var _local3:Rectangle;
var _local4:Rectangle;
var _local5:Rectangle;
if (((((!(_arg1.root)) || (!(_arg2.root)))) || (!(_arg1.hitTestObject(_arg2))))){
return (new Rectangle());
};
_local3 = _arg1.getBounds(_arg1.root);
_local4 = _arg2.getBounds(_arg2.root);
_local5 = new Rectangle();
_local5.x = Math.max(_local3.x, _local4.x);
_local5.y = Math.max(_local3.y, _local4.y);
_local5.width = Math.min(((_local3.x + _local3.width) - _local5.x), ((_local4.x + _local4.width) - _local5.x));
_local5.height = Math.min(((_local3.y + _local3.height) - _local5.y), ((_local4.y + _local4.height) - _local5.y));
return (_local5);
}
protected static function getDrawMatrix(_arg1:DisplayObject, _arg2:Rectangle, _arg3:Number):Matrix{
var _local4:Point;
var _local5:Matrix;
var _local6:Matrix;
_local6 = _arg1.root.transform.concatenatedMatrix;
_local4 = _arg1.localToGlobal(new Point());
_local5 = _arg1.transform.concatenatedMatrix;
_local5.tx = (_local4.x - _arg2.x);
_local5.ty = (_local4.y - _arg2.y);
_local5.a = (_local5.a / _local6.a);
_local5.d = (_local5.d / _local6.d);
if (_arg3 != 1){
_local5.scale(_arg3, _arg3);
};
return (_local5);
}
}
}//package classAssets
Section 6
//KeyListener (classAssets.KeyListener)
package classAssets {
import flash.display.*;
import flash.events.*;
public class KeyListener extends MovieClip {
private static const A = 65;
private static const RIGHT = 39;
private static const LEFT = 37;
private static const X = 88;
private static const Z = 90;
private static const UP = 38;
private static const SPACE = 32;
private static const DOWN = 40;
public static var keyPressedSpace:Boolean = false;
public static var keyPressedRight:Boolean = false;
public static var keyPressedDown:Boolean = false;
public static var keyPressedA:Boolean = false;
public static var keyPressed:Boolean = false;
public static var keyPressedLeft:Boolean = false;
public static var keyPressedX:Boolean = false;
public static var keyPressedZ:Boolean = false;
public static var keyPressedUp:Boolean = false;
private static var _stage:Stage;
public function KeyListener():void{
}
private static function keyDownListener(_arg1:KeyboardEvent):void{
keyPressed = true;
switch (_arg1.keyCode){
case RIGHT:
keyPressedRight = true;
break;
case LEFT:
keyPressedLeft = true;
break;
case UP:
keyPressedUp = true;
break;
case DOWN:
keyPressedDown = true;
break;
case SPACE:
keyPressedSpace = true;
break;
case X:
keyPressedX = true;
break;
case A:
keyPressedA = true;
break;
case Z:
keyPressedZ = true;
break;
};
}
public static function SetStage(_arg1:Stage):void{
_stage = _arg1;
_stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownListener, false, 0, true);
_stage.addEventListener(KeyboardEvent.KEY_UP, keyUpListener, false, 0, true);
}
private static function keyUpListener(_arg1:KeyboardEvent):void{
keyPressed = false;
switch (_arg1.keyCode){
case RIGHT:
keyPressedRight = false;
break;
case LEFT:
keyPressedLeft = false;
break;
case UP:
keyPressedUp = false;
break;
case DOWN:
keyPressedDown = false;
break;
case SPACE:
keyPressedSpace = false;
break;
case X:
keyPressedX = false;
break;
case A:
keyPressedA = false;
break;
case Z:
keyPressedZ = false;
break;
};
}
}
}//package classAssets
Section 7
//PostData (classAssets.PostData)
package classAssets {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public class PostData extends MovieClip {
public static const DISPATCHER:EventDispatcher = new EventDispatcher();
private static var _scriptRequest:URLRequest;
private static var _URL:String;
private static var _scriptVars:URLVariables = new URLVariables();
private static var _scriptLoader:URLLoader = new URLLoader();
private static var _errorMessage:String = new String();
public function PostData():void{
}
private static function handleLoadError(_arg1:IOErrorEvent):void{
trace("Message failed.");
DISPATCHER.dispatchEvent(new Event("data_fail", true));
}
private static function handleLoadSuccessful(_arg1:Event):void{
trace("Message Sent");
DISPATCHER.dispatchEvent(new Event("data_sent", true));
}
public static function sendData(_arg1:String, _arg2:Array):void{
var _local3:*;
trace(_arg1, _arg2);
_URL = _arg1;
_scriptRequest = new URLRequest(_URL);
_local3 = 0;
while (_local3 < _arg2.length) {
_scriptVars[_arg2[_local3]] = _arg2[(_local3 + 1)];
_local3 = (_local3 + 2);
};
trace("SENDING DATA TO:", _arg1);
_scriptRequest.method = URLRequestMethod.POST;
_scriptRequest.data = _scriptVars;
_scriptLoader.load(_scriptRequest);
_scriptLoader.addEventListener(Event.COMPLETE, handleLoadSuccessful);
_scriptLoader.addEventListener(IOErrorEvent.IO_ERROR, handleLoadError);
}
}
}//package classAssets
Section 8
//SoundPlayer (classAssets.SoundPlayer)
package classAssets {
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.system.*;
public class SoundPlayer extends MovieClip {
private const DEFAULT_VOLUME:Number = 0.5;
public var _transform1:SoundTransform;
public var _play:Boolean;// = true
public var TIMER:Timer;
public var _sndChannel1:SoundChannel;
public var _sndChannel2:SoundChannel;
public var _transform2:SoundTransform;
public function SoundPlayer():void{
_sndChannel1 = new SoundChannel();
_transform1 = new SoundTransform();
_sndChannel2 = new SoundChannel();
_transform2 = new SoundTransform();
_play = true;
super();
}
public function playSound(_arg1:String, _arg2:Number=0.5, _arg3:Boolean=false, _arg4:Boolean=false):void{
var $play:String;
var ClassReference:Class;
var $instance:Object;
var $soundType = _arg1;
var $vol = _arg2;
var $forcePlay = _arg3;
var $loop = _arg4;
if (Global.obj.MUTE_SOUNDS == true){
return;
};
if ((((_play == false)) && (!($forcePlay)))){
return;
};
$play = $soundType;
try {
ClassReference = (getDefinitionByName($play) as Class);
} catch(e:ReferenceError) {
trace("SOUND ERROR:", $soundType, "could not be found in library");
return;
};
$instance = new (ClassReference);
if (!$loop){
_transform1.volume = $vol;
_sndChannel1 = $instance.play();
_sndChannel1.soundTransform = _transform1;
} else {
_transform2.volume = $vol;
_sndChannel2 = $instance.play(0, int.MAX_VALUE);
_sndChannel2.soundTransform = _transform2;
};
_play = false;
startPause(0.3);
}
private function stopTimer(_arg1:TimerEvent):void{
TIMER.removeEventListener(TimerEvent.TIMER, stopTimer);
TIMER.stop();
TIMER.reset();
_play = true;
}
private function startPause(_arg1:Number):void{
TIMER = new Timer((1000 * _arg1), 0);
TIMER.addEventListener(TimerEvent.TIMER, stopTimer, false, 0, true);
TIMER.start();
}
}
}//package classAssets
Section 9
//VarLoader (classAssets.VarLoader)
package classAssets {
import flash.display.*;
public class VarLoader extends MovieClip {
public static var DATA:Object = new Object();
public function VarLoader():void{
}
public static function findValue(_arg1){
var $ref = _arg1;
try {
return (DATA[$ref]);
} catch(error:Error) {
return (null);
};
}
public static function loadFlashVars(_arg1:Stage):void{
var $stage = _arg1;
try {
DATA = $stage.loaderInfo.parameters;
} catch(error:Error) {
trace("no flash vars");
};
}
}
}//package classAssets
Section 10
//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 11
//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 12
//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 13
//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, "utmcid=", id);
_addIfNotEmpty(_local1, "utmcsr=", source);
_addIfNotEmpty(_local1, "utmgclid=", clickId);
_addIfNotEmpty(_local1, "utmccn=", name);
_addIfNotEmpty(_local1, "utmcmd=", medium);
_addIfNotEmpty(_local1, "utmctr=", term);
_addIfNotEmpty(_local1, "utmcct=", content);
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 = _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 14
//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 15
//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 _volatile:Boolean;
private var _data:Object;
private var _OBJ:Object;
private var _utmb:UTMB;
private var _utmc:UTMC;
private var _utma:UTMA;
private var _debug:DebugConfiguration;
private var _utmk:UTMK;
private var _config:Configuration;
private var _utmv:UTMV;
private var _utmx:UTMX;
private var _utmz:UTMZ;
private var _SO:SharedObject;
public function Buffer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Boolean=false, _arg4:Object=null){
var _local5:String;
super();
_config = _arg1;
_debug = _arg2;
_data = _arg4;
_volatile = _arg3;
if (_volatile){
_OBJ = new Object();
if (_data){
for (_local5 in _data) {
_OBJ[_local5] = _data[_local5];
};
};
};
}
public function save():void{
var flushStatus:String;
if (!isVolatile()){
flushStatus = null;
try {
flushStatus = _SO.flush();
} catch(e:Error) {
_debug.warning("Error...Could not write SharedObject to disk");
};
switch (flushStatus){
case SharedObjectFlushStatus.PENDING:
_debug.info("Requesting permission to save object...");
_SO.addEventListener(NetStatusEvent.NET_STATUS, _onFlushStatus);
break;
case SharedObjectFlushStatus.FLUSHED:
_debug.info("Value flushed to disk.");
break;
};
};
}
public function get utmv():UTMV{
if (!hasUTMV()){
_createUMTV();
};
return (_utmv);
}
public function get utmx():UTMX{
if (!hasUTMX()){
_createUMTX();
};
return (_utmx);
}
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 clearCookies():void{
utma.reset();
utmb.reset();
utmc.reset();
utmz.reset();
utmv.reset();
utmk.reset();
}
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 getLinkerUrl(_arg1:String="", _arg2:Boolean=false):String{
var _local3:String;
var _local4:String;
var _local5:Array;
_local3 = toLinkerParams();
_local4 = _arg1;
_local5 = _arg1.split("#");
if (_local3){
if (_arg2){
if (1 >= _local5.length){
_local4 = (_local4 + ("#" + _local3));
} else {
_local4 = (_local4 + ("&" + _local3));
};
} else {
if (1 >= _local5.length){
if (_arg1.indexOf("?") > -1){
_local4 = (_local4 + "&");
} else {
_local4 = (_local4 + "?");
};
_local4 = (_local4 + _local3);
} else {
_local4 = _local5[0];
if (_arg1.indexOf("?") > -1){
_local4 = (_local4 + "&");
} else {
_local4 = (_local4 + "?");
};
_local4 = (_local4 + ((_local3 + "#") + _local5[1]));
};
};
};
return (_local4);
}
public function generateCookiesHash():Number{
var _local1:String;
_local1 = "";
_local1 = (_local1 + utma.valueOf());
_local1 = (_local1 + utmb.valueOf());
_local1 = (_local1 + utmc.valueOf());
_local1 = (_local1 + utmx.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 hasUTMX():Boolean{
if (_utmx){
return (true);
};
return (false);
}
public function hasUTMZ():Boolean{
if (_utmz){
return (true);
};
return (false);
}
private function _createUMTV():void{
_utmv = new UTMV();
_utmv.proxy = this;
}
private function _createUMTX():void{
_utmx = new UTMX();
_utmx.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;
};
}
public function isGenuine():Boolean{
if (!hasUTMK()){
return (true);
};
return ((utmk.hash == generateCookiesHash()));
}
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);
}
public function toLinkerParams():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + utma.toURLString());
_local1 = (_local1 + ("&" + utmb.toURLString()));
_local1 = (_local1 + ("&" + utmc.toURLString()));
_local1 = (_local1 + ("&" + utmx.toURLString()));
_local1 = (_local1 + ("&" + utmz.toURLString()));
_local1 = (_local1 + ("&" + utmv.toURLString()));
_local1 = (_local1 + ("&__utmk=" + generateCookiesHash()));
return (_local1);
}
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;
};
}
public function createSO():void{
var saveSO:Boolean;
UTMZ.defaultTimespan = _config.conversionTimeout;
UTMB.defaultTimespan = _config.sessionTimeout;
if (!_volatile){
try {
_SO = SharedObject.getLocal(_config.cookieName, _config.cookiePath);
} catch(e:Error) {
if (_debug.active){
_debug.warning(((("Shared Object " + _config.cookieName) + " failed to be set\nreason: ") + e.message));
};
};
saveSO = 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();
saveSO = 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();
saveSO = true;
};
};
if (_SO.data.utmc){
delete _SO.data.utmc;
saveSO = true;
};
if (_SO.data.utmk){
if (!hasUTMK()){
_createUMTK();
};
_utmk.fromSharedObject(_SO.data.utmk);
if (_debug.verbose){
_debug.info(("found: " + _utmk.toString()), VisualDebugMode.geek);
};
};
if (!hasUTMX()){
_createUMTX();
};
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();
saveSO = 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();
saveSO = true;
};
};
if (saveSO){
save();
};
};
}
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 16
//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));
if (_arg1 == ""){
_arg1 = "/";
};
};
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 17
//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 18
//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 19
//Ecommerce (com.google.analytics.core.Ecommerce)
package com.google.analytics.core {
import com.google.analytics.debug.*;
import com.google.analytics.ecommerce.*;
public class Ecommerce {
private var _debug:DebugConfiguration;
private var _trans:Array;
public function Ecommerce(_arg1:DebugConfiguration){
this._debug = _arg1;
_trans = new Array();
}
public function getTransaction(_arg1:String):Transaction{
var _local2:Number;
_local2 = 0;
while (_local2 < _trans.length) {
if (_trans[_local2].id == _arg1){
return (_trans[_local2]);
};
_local2++;
};
return (null);
}
public function getTransLength():Number{
return (_trans.length);
}
public function getTransFromArray(_arg1:Number):Transaction{
return (_trans[_arg1]);
}
public function addTransaction(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String, _arg7:String, _arg8:String):Transaction{
var _local9:Transaction;
_local9 = getTransaction(_arg1);
if (_local9 == null){
_local9 = new Transaction(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
_trans.push(_local9);
} else {
_local9.affiliation = _arg2;
_local9.total = _arg3;
_local9.tax = _arg4;
_local9.shipping = _arg5;
_local9.city = _arg6;
_local9.state = _arg7;
_local9.country = _arg8;
};
return (_local9);
}
}
}//package com.google.analytics.core
Section 20
//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 21
//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 22
//ga_internal (com.google.analytics.core.ga_internal)
package com.google.analytics.core {
public namespace ga_internal;
}//package com.google.analytics.core
Section 23
//GIFRequest (com.google.analytics.core.GIFRequest)
package com.google.analytics.core {
import flash.display.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.net.*;
import com.google.analytics.utils.*;
import flash.events.*;
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 24
//IdleTimer (com.google.analytics.core.IdleTimer)
package com.google.analytics.core {
import flash.display.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.events.*;
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 25
//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 26
//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 27
//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 28
//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 29
//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 getLinkerUrl(_arg1:String="", _arg2:Boolean=false):String{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getLinkerUrl' method for the moment."));
};
return ("");
}
public function getClientInfo():Boolean{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getClientInfo' method for the moment."));
};
return (false);
}
public function trackTrans():void{
enqueue("trackTrans");
}
public function trackPageview(_arg1:String=""):void{
enqueue("trackPageview", _arg1);
}
public function setClientInfo(_arg1:Boolean):void{
enqueue("setClientInfo", _arg1);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
enqueue("trackEvent", _arg1, _arg2, _arg3, _arg4);
return (true);
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
enqueue("linkByPost", _arg1, _arg2);
}
public function setCookieTimeout(_arg1:int):void{
enqueue("setCookieTimeout", _arg1);
}
public function isEmpty():Boolean{
return ((_ar.length == 0));
}
public function getDetectTitle():Boolean{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getDetectTitle' method for the moment."));
};
return (false);
}
public function resetSession():void{
enqueue("resetSession");
}
public function setDetectFlash(_arg1:Boolean):void{
enqueue("setDetectFlash", _arg1);
}
public function clear():void{
_ar = [];
}
public function setCampNameKey(_arg1:String):void{
enqueue("setCampNameKey", _arg1);
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
enqueue("addItem", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public function createEventTracker(_arg1:String):EventTracker{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'createEventTracker' method for the moment."));
};
return (null);
}
public function clearIgnoredOrganic():void{
enqueue("clearIgnoredOrganic");
}
public function setVar(_arg1:String):void{
enqueue("setVar", _arg1);
}
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):void{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'addTrans' method for the moment."));
};
}
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 30
//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 31
//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 32
//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 33
//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 34
//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 35
//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 36
//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:Array;
var _local5:String;
var _local6:int;
_local1 = [];
_local5 = "";
_local6 = 0;
while (_local6 < fields.length) {
_local2 = fields[_local6];
_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);
};
};
};
};
_local6++;
};
if (isEmpty()){
return ("-");
};
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 37
//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 38
//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();
}
public function get domainHash():Number{
return (_domainHash);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
}
}//package com.google.analytics.data
Section 39
//UTMX (com.google.analytics.data.UTMX)
package com.google.analytics.data {
public class UTMX extends UTMCookie {
private var _value:String;
public function UTMX(){
super("utmx", "__utmx", ["value"], 0);
_value = "-";
}
public function set value(_arg1:String):void{
_value = _arg1;
}
public function get value():String{
return (_value);
}
}
}//package com.google.analytics.data
Section 40
//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 41
//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 42
//_Style (com.google.analytics.debug._Style)
package com.google.analytics.debug {
import flash.text.*;
import flash.net.*;
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 43
//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 44
//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 45
//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 46
//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 47
//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;
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 48
//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 49
//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 50
//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 51
//ILayout (com.google.analytics.debug.ILayout)
package com.google.analytics.debug {
import flash.display.*;
import com.google.analytics.core.*;
import flash.net.*;
public interface ILayout {
function 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 52
//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 53
//Label (com.google.analytics.debug.Label)
package com.google.analytics.debug {
import flash.display.*;
import flash.text.*;
import flash.events.*;
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 54
//Layout (com.google.analytics.debug.Layout)
package com.google.analytics.debug {
import flash.display.*;
import com.google.analytics.core.*;
import flash.net.*;
import flash.events.*;
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 55
//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 56
//Panel (com.google.analytics.debug.Panel)
package com.google.analytics.debug {
import flash.display.*;
import flash.events.*;
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 57
//Style (com.google.analytics.debug.Style)
package com.google.analytics.debug {
public const Style:_Style = new _Style();
}//package com.google.analytics.debug
Section 58
//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 59
//UISprite (com.google.analytics.debug.UISprite)
package com.google.analytics.debug {
import flash.display.*;
import flash.events.*;
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 60
//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 61
//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 62
//Item (com.google.analytics.ecommerce.Item)
package com.google.analytics.ecommerce {
import com.google.analytics.utils.*;
public class Item {
private var _id:String;
private var _price:String;
private var _sku:String;
private var _category:String;
private var _name:String;
private var _quantity:String;
public function Item(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String){
this._id = _arg1;
this._sku = _arg2;
this._name = _arg3;
this._category = _arg4;
this._price = _arg5;
this._quantity = _arg6;
}
public function set category(_arg1:String):void{
_category = _arg1;
}
public function get name():String{
return (_name);
}
public function get price():String{
return (_price);
}
public function get quantity():String{
return (_quantity);
}
public function set name(_arg1:String):void{
_name = _arg1;
}
public function set price(_arg1:String):void{
_price = _arg1;
}
public function get id():String{
return (_id);
}
public function get sku():String{
return (_sku);
}
public function set quantity(_arg1:String):void{
_quantity = _arg1;
}
public function toGifParams():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
_local1.post = ["utmt", "utmtid", "utmipc", "utmipn", "utmiva", "utmipr", "utmiqt"];
_local1.utmt = "item";
_local1.utmtid = _id;
_local1.utmipc = _sku;
_local1.utmipn = _name;
_local1.utmiva = _category;
_local1.utmipr = _price;
_local1.utmiqt = _quantity;
return (_local1);
}
public function set id(_arg1:String):void{
_id = _arg1;
}
public function set sku(_arg1:String):void{
_sku = _arg1;
}
public function get category():String{
return (_category);
}
}
}//package com.google.analytics.ecommerce
Section 63
//Transaction (com.google.analytics.ecommerce.Transaction)
package com.google.analytics.ecommerce {
import com.google.analytics.utils.*;
public class Transaction {
private var _items:Array;
private var _total:String;
private var _vars:Variables;
private var _shipping:String;
private var _city:String;
private var _state:String;
private var _country:String;
private var _tax:String;
private var _affiliation:String;
private var _id:String;
public function Transaction(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String, _arg7:String, _arg8:String){
this._id = _arg1;
this._affiliation = _arg2;
this._total = _arg3;
this._tax = _arg4;
this._shipping = _arg5;
this._city = _arg6;
this._state = _arg7;
this._country = _arg8;
_items = new Array();
}
public function get total():String{
return (_total);
}
public function getItemFromArray(_arg1:Number):Item{
return (_items[_arg1]);
}
public function getItem(_arg1:String):Item{
var _local2:Number;
_local2 = 0;
while (_local2 < _items.length) {
if (_items[_local2].sku == _arg1){
return (_items[_local2]);
};
_local2++;
};
return (null);
}
public function set total(_arg1:String):void{
_total = _arg1;
}
public function getItemsLength():Number{
return (_items.length);
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String):void{
var _local6:Item;
_local6 = getItem(_arg1);
if (_local6 == null){
_local6 = new Item(_id, _arg1, _arg2, _arg3, _arg4, _arg5);
_items.push(_local6);
} else {
_local6.name = _arg2;
_local6.category = _arg3;
_local6.price = _arg4;
_local6.quantity = _arg5;
};
}
public function set shipping(_arg1:String):void{
_shipping = _arg1;
}
public function get country():String{
return (_country);
}
public function get state():String{
return (_state);
}
public function set tax(_arg1:String):void{
_tax = _arg1;
}
public function set affiliation(_arg1:String):void{
_affiliation = _arg1;
}
public function set state(_arg1:String):void{
_state = _arg1;
}
public function get id():String{
return (_id);
}
public function get tax():String{
return (_tax);
}
public function toGifParams():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
_local1.utmt = "tran";
_local1.utmtid = id;
_local1.utmtst = affiliation;
_local1.utmtto = total;
_local1.utmttx = tax;
_local1.utmtsp = shipping;
_local1.utmtci = city;
_local1.utmtrg = state;
_local1.utmtco = country;
_local1.post = ["utmtid", "utmtst", "utmtto", "utmttx", "utmtsp", "utmtci", "utmtrg", "utmtco"];
return (_local1);
}
public function get affiliation():String{
return (_affiliation);
}
public function get city():String{
return (_city);
}
public function get shipping():String{
return (_shipping);
}
public function set id(_arg1:String):void{
_id = _arg1;
}
public function set city(_arg1:String):void{
_city = _arg1;
}
public function set country(_arg1:String):void{
_country = _arg1;
}
}
}//package com.google.analytics.ecommerce
Section 64
//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 65
//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 66
//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 67
//JavascriptProxy (com.google.analytics.external.JavascriptProxy)
package com.google.analytics.external {
import com.google.analytics.debug.*;
import flash.external.*;
import flash.system.*;
public class JavascriptProxy {
private var _notAvailableWarning:Boolean;// = true
private var _debug:DebugConfiguration;
public static var setProperty_js:XML = <script>
<![CDATA[
function( path , value )
{
var paths;
var prop;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
prop = paths.pop() ;
}
else
{
paths = [];
prop = path;
}
var target = window ;
var len = paths.length ;
for( var i = 0 ; i < len ; i++ )
{
target = target[ paths[i] ] ;
}
target[ prop ] = value ;
}
]]>
</script>
;
public static var hasProperty_js:XML = <script>
<![CDATA[
function( path )
{
var paths;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
}
else
{
paths = [path];
}
var target = window ;
var len = paths.length ;
for( var i = 0 ; i < len ; i++ )
{
target = target[ paths[i] ] ;
}
if( target )
{
return true;
}
else
{
return false;
}
}
]]>
</script>
;
public static var setPropertyRef_js:XML = <script>
<![CDATA[
function( path , target )
{
var paths;
var prop;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
prop = paths.pop() ;
}
else
{
paths = [];
prop = path;
}
alert( "paths:"+paths.length+", prop:"+prop );
var targets;
var name;
if( target.indexOf(".") > 0 )
{
targets = target.split(".");
name = targets.pop();
}
else
{
targets = [];
name = target;
}
alert( "targets:"+targets.length+", name:"+name );
var root = window;
var len = paths.length;
for( var i = 0 ; i < len ; i++ )
{
root = root[ paths[i] ] ;
}
var ref = window;
var depth = targets.length;
for( var j = 0 ; j < depth ; j++ )
{
ref = ref[ targets[j] ] ;
}
root[ prop ] = ref[name] ;
}
]]>
</script>
;
public function JavascriptProxy(_arg1:DebugConfiguration){
_notAvailableWarning = true;
super();
_debug = _arg1;
}
public function getProperty(_arg1:String){
return (call((_arg1 + ".valueOf")));
}
public function hasProperty(_arg1:String):Boolean{
return (call(hasProperty_js, _arg1));
}
public function setProperty(_arg1:String, _arg2):void{
call(setProperty_js, _arg1, _arg2);
}
public function executeBlock(_arg1:String):void{
var data = _arg1;
if (isAvailable()){
try {
ExternalInterface.call(data);
} catch(e:SecurityError) {
if (_debug.javascript){
_debug.warning("ExternalInterface is not allowed.\nEnsure that allowScriptAccess is set to \"always\" in the Flash embed HTML.");
};
} catch(e:Error) {
if (_debug.javascript){
_debug.warning(("ExternalInterface failed to make the call\nreason: " + e.message));
};
};
};
}
public function getPropertyString(_arg1:String):String{
return (call((_arg1 + ".toString")));
}
public function setPropertyByReference(_arg1:String, _arg2:String):void{
call(setPropertyRef_js, _arg1, _arg2);
}
public function call(_arg1:String, ... _args){
var output:String;
var functionName = _arg1;
var args = _args;
if (isAvailable()){
try {
if (((_debug.javascript) && (_debug.verbose))){
output = "";
output = ("Flash->JS: " + functionName);
output = (output + "( ");
if (args.length > 0){
output = (output + args.join(","));
};
output = (output + " )");
_debug.info(output);
};
args.unshift(functionName);
return (ExternalInterface.call.apply(ExternalInterface, args));
} catch(e:SecurityError) {
if (_debug.javascript){
_debug.warning("ExternalInterface is not allowed.\nEnsure that allowScriptAccess is set to \"always\" in the Flash embed HTML.");
};
} catch(e:Error) {
if (_debug.javascript){
_debug.warning(("ExternalInterface failed to make the call\nreason: " + e.message));
};
};
};
return (null);
}
public function isAvailable():Boolean{
var _local1:Boolean;
_local1 = ExternalInterface.available;
if (((_local1) && ((Capabilities.playerType == "External")))){
_local1 = false;
};
if (((((!(_local1)) && (_debug.javascript))) && (_notAvailableWarning))){
_debug.warning("ExternalInterface is not available.");
_notAvailableWarning = false;
};
return (_local1);
}
}
}//package com.google.analytics.external
Section 68
//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 69
//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 70
//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 71
//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 72
//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 73
//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.charAt(0) == "?"){
_arg1 = _arg1.substr(1, _arg1.length);
};
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 74
//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 75
//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);
}
public function getLinkerUrl(_arg1:String="", _arg2:Boolean=false):String{
_debug.info((((("getLinkerUrl(" + _arg1) + ", ") + _arg2) + ")"));
return (_call("_getLinkerUrl", _arg1, _arg2));
}
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 trackPageview(_arg1:String=""):void{
_debug.info((("trackPageview( " + _arg1) + " )"));
_call("_trackPageview", _arg1);
}
public function setCookieTimeout(_arg1:int):void{
_debug.info((("setCookieTimeout( " + _arg1) + " )"));
_call("_setCookieTimeout", _arg1);
}
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));
};
}
private function _checkValidTrackingObject(_arg1:String):Boolean{
return (_proxy.call(_checkValidTrackingObject_js, _arg1));
}
private function _checkGAJS():Boolean{
return (_proxy.call(_checkGAJS_js));
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_debug.warning((((("linkByPost( " + _arg1) + ", ") + _arg2) + " ) not implemented"));
}
private function _call(_arg1:String, ... _args){
_args.unshift(((((("window." + _jsContainer) + "[\"") + _account) + "\"].") + _arg1));
return (_proxy.call.apply(_proxy, _args));
}
public function hasGAJS():Boolean{
return (_checkGAJS());
}
private function _checkTrackingObject(_arg1:String):Boolean{
var _local2:Boolean;
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 setDetectFlash(_arg1:Boolean):void{
_debug.info((("setDetectFlash( " + _arg1) + " )"));
_call("_setDetectFlash", _arg1);
}
public function getDetectTitle():Boolean{
_debug.info("getDetectTitle()");
return (_call("_getDetectTitle"));
}
public function getClientInfo():Boolean{
_debug.info("getClientInfo()");
return (_call("_getClientInfo"));
}
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):void{
_debug.info((("addTrans( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8].join(", ")) + " )"));
_call("_addTrans", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
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 76
//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 77
//GoogleAnalyticsAPI (com.google.analytics.v4.GoogleAnalyticsAPI)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
public interface GoogleAnalyticsAPI {
function setCampSourceKey(_arg1:String):void;
function setCampContentKey(_arg1:String):void;
function addOrganic(_arg1:String, _arg2:String):void;
function setAllowLinker(_arg1:Boolean):void;
function getLinkerUrl(_arg1:String="", _arg2:Boolean=false):String;
function getLocalGifPath():String;
function clearIgnoredRef():void;
function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):void;
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 setLocalServerMode():void;
function setClientInfo(_arg1:Boolean):void;
function setCookiePath(_arg1:String):void;
function setSampleRate(_arg1:Number):void;
function linkByPost(_arg1:Object, _arg2:Boolean=false):void;
function setDetectTitle(_arg1:Boolean):void;
function setLocalRemoteServerMode():void;
function addIgnoredOrganic(_arg1:String):void;
function setCampNOKey(_arg1:String):void;
function setAllowHash(_arg1:Boolean):void;
function cookiePathCopy(_arg1:String):void;
function getDetectTitle():Boolean;
function getServiceMode():ServerOperationMode;
function resetSession():void;
function getClientInfo():Boolean;
function setDetectFlash(_arg1:Boolean):void;
function setCampTermKey(_arg1:String):void;
function setCampNameKey(_arg1:String):void;
function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void;
function getDetectFlash():Boolean;
function setCampaignTrack(_arg1:Boolean):void;
function createEventTracker(_arg1:String):EventTracker;
function clearOrganic():void;
function addIgnoredRef(_arg1:String):void;
function setVar(_arg1:String):void;
function clearIgnoredOrganic():void;
function setCampMediumKey(_arg1:String):void;
function setSessionTimeout(_arg1:int):void;
function setRemoteServerMode():void;
function setDomainName(_arg1:String):void;
function getAccount():String;
function link(_arg1:String, _arg2:Boolean=false):void;
}
}//package com.google.analytics.v4
Section 78
//Tracker (com.google.analytics.v4.Tracker)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
import flash.net.*;
import com.google.analytics.ecommerce.*;
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 _ecom:Ecommerce;
private var _account:String;
public function Tracker(_arg1:String, _arg2:Configuration, _arg3:DebugConfiguration, _arg4:Environment, _arg5:Buffer, _arg6:GIFRequest, _arg7:AdSenseGlobals, _arg8:Ecommerce){
var _local9:String;
_hasInitData = false;
_isNewVisitor = false;
_noSessionInformation = false;
super();
_account = _arg1;
_config = _arg2;
_debug = _arg3;
_info = _arg4;
_buffer = _arg5;
_gifRequest = _arg6;
_adSense = _arg7;
_ecom = _arg8;
if (!Utils.validateAccount(_arg1)){
_local9 = (("Account \"" + _arg1) + "\" is not valid.");
_debug.warning(_local9);
throw (new Error(_local9));
};
}
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 getLinkerUrl(_arg1:String="", _arg2:Boolean=false):String{
_initData();
_debug.info((((("getLinkerUrl( " + _arg1) + ", ") + _arg2.toString()) + " )"));
return (_buffer.getLinkerUrl(_arg1, _arg2));
}
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{
var _local1:Number;
var _local2:Number;
var _local3:Array;
var _local4:Transaction;
_initData();
_local3 = new Array();
if (_takeSample()){
_local1 = 0;
while (_local1 < _ecom.getTransLength()) {
_local4 = _ecom.getTransFromArray(_local1);
_local3.push(_local4.toGifParams());
_local2 = 0;
while (_local2 < _local4.getItemsLength()) {
_local3.push(_local4.getItemFromArray(_local2).toGifParams());
_local2++;
};
_local1++;
};
_local1 = 0;
while (_local1 < _local3.length) {
_gifRequest.send(_account, _local3[_local1]);
_local1++;
};
};
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
var _local5:Boolean;
var _local6:int;
_initData();
_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){
_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 not implemented in AS3 mode");
}
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);
_debug.info(("Search: " + _info.locationSearch));
_debug.info(("CampaignTrackig: " + _buffer.utmz.campaignTracking));
};
};
_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;
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{
var _local7:Transaction;
_local7 = _ecom.getTransaction(_arg1);
if (_local7 == null){
_local7 = _ecom.addTransaction(_arg1, "", "", "", "", "", "", "");
};
_local7.addItem(_arg2, _arg3, _arg4, _arg5.toString(), _arg6.toString());
if (_debug.active){
_debug.info((("addItem( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6].join(", ")) + " )"));
};
}
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 = encodeURI(_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):void{
_ecom.addTransaction(_arg1, _arg2, _arg3.toString(), _arg4.toString(), _arg5.toString(), _arg6, _arg7, _arg8);
if (_debug.active){
_debug.info((("addTrans( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8].join(", ")) + " );"));
};
}
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){
};
_buffer.createSO();
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{
var out:String;
var request:URLRequest;
var targetUrl = _arg1;
var useHash = _arg2;
_initData();
out = _buffer.getLinkerUrl(targetUrl, useHash);
request = new URLRequest(out);
_debug.info((("link( " + [targetUrl, useHash].join(",")) + " )"));
try {
navigateToURL(request, "_top");
} catch(e:Error) {
_debug.warning(("An error occured in link() msg: " + e.message));
};
}
public function setRemoteServerMode():void{
_config.serverMode = ServerOperationMode.remote;
_debug.info("setRemoteServerMode()");
}
}
}//package com.google.analytics.v4
Section 79
//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 get account():String;
function set mode(_arg1:String):void;
function set debug(_arg1:DebugConfiguration):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 80
//API (com.google.analytics.API)
package com.google.analytics {
import com.google.analytics.utils.*;
public class API {
public static var version:Version = new Version();
version.major = 1;
version.minor = 0;
version.build = 1;
version.revision = "$Rev: 319 $ ".split(" ")[1];
}
}//package com.google.analytics
Section 81
//GATracker (com.google.analytics.GATracker)
package com.google.analytics {
import flash.display.*;
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import com.google.analytics.utils.*;
import flash.events.*;
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 _ecom:Ecommerce;
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);
} else {
this.config = _arg5;
};
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 getLinkerUrl(_arg1:String="", _arg2:Boolean=false):String{
return (_tracker.getLinkerUrl(_arg1, _arg2));
}
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):void{
_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);
_ecom = new Ecommerce(_debug);
_env.url = _display.stage.loaderInfo.url;
return (new Tracker(account, config, debug, _env, _buffer, _gifRequest, _adSense, _ecom));
}
public function setDetectTitle(_arg1:Boolean):void{
_tracker.setDetectTitle(_arg1);
}
public function setCampaignTrack(_arg1:Boolean):void{
_tracker.setCampaignTrack(_arg1);
}
public function clearOrganic():void{
_tracker.clearOrganic();
}
public function addIgnoredRef(_arg1:String):void{
_tracker.addIgnoredRef(_arg1);
}
public function getServiceMode():ServerOperationMode{
return (_tracker.getServiceMode());
}
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 82
//None (fl.transitions.easing.None)
package fl.transitions.easing {
public class None {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package fl.transitions.easing
Section 83
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 84
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
public var begin:Number;// = NAN
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var change:Number;// = NAN
private var _finish:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
isPlaying = false;
obj = null;
prop = "";
func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
begin = NaN;
change = NaN;
useSeconds = false;
prevTime = NaN;
prevPos = NaN;
looping = false;
_duration = NaN;
_time = NaN;
_fps = NaN;
_position = NaN;
_startTime = NaN;
_intervalID = 0;
_finish = NaN;
_timer = null;
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean;
_local2 = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 85
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
time = NaN;
position = NaN;
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 86
//carpet_mc_31 (RocketMan_fla.carpet_mc_31)
package RocketMan_fla {
import flash.display.*;
public dynamic class carpet_mc_31 extends MovieClip {
public function carpet_mc_31(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package RocketMan_fla
Section 87
//logoIntelPowerUpRotating_72 (RocketMan_fla.logoIntelPowerUpRotating_72)
package RocketMan_fla {
import flash.display.*;
public dynamic class logoIntelPowerUpRotating_72 extends MovieClip {
public function logoIntelPowerUpRotating_72(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RocketMan_fla
Section 88
//lozenge_mc_48 (RocketMan_fla.lozenge_mc_48)
package RocketMan_fla {
import flash.display.*;
public dynamic class lozenge_mc_48 extends MovieClip {
public var score_mc:MovieClip;
public var rank_mc:MovieClip;
public var name_mc:MovieClip;
}
}//package RocketMan_fla
Section 89
//mc_lift_rise_121 (RocketMan_fla.mc_lift_rise_121)
package RocketMan_fla {
import flash.display.*;
public dynamic class mc_lift_rise_121 extends MovieClip {
public function mc_lift_rise_121(){
addFrameScript(0, frame1, 299, frame300);
}
function frame1(){
stop();
}
function frame300(){
stop();
}
}
}//package RocketMan_fla
Section 90
//mc_santa_sleigh_animation_129 (RocketMan_fla.mc_santa_sleigh_animation_129)
package RocketMan_fla {
import flash.display.*;
import flash.events.*;
public dynamic class mc_santa_sleigh_animation_129 extends MovieClip {
public function mc_santa_sleigh_animation_129(){
addFrameScript(0, frame1, 279, frame280);
}
function frame280(){
stop();
this.dispatchEvent(new Event("santa_animation_finished", true));
}
function frame1(){
stop();
}
}
}//package RocketMan_fla
Section 91
//mc_wall_112 (RocketMan_fla.mc_wall_112)
package RocketMan_fla {
import flash.display.*;
public dynamic class mc_wall_112 extends MovieClip {
public var mcWallHit:MovieClip;
public var mcExplosion:MovieClip;
public function mc_wall_112(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RocketMan_fla
Section 92
//mc_wall_animation_113 (RocketMan_fla.mc_wall_animation_113)
package RocketMan_fla {
import flash.display.*;
public dynamic class mc_wall_animation_113 extends MovieClip {
public function mc_wall_animation_113(){
addFrameScript(0, frame1, 31, frame32);
}
function frame1(){
stop();
}
function frame32(){
stop();
}
}
}//package RocketMan_fla
Section 93
//movieSantaReindeer_130 (RocketMan_fla.movieSantaReindeer_130)
package RocketMan_fla {
import flash.display.*;
public dynamic class movieSantaReindeer_130 extends MovieClip {
public function movieSantaReindeer_130(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package RocketMan_fla
Section 94
//movieSmokeLoop_11 (RocketMan_fla.movieSmokeLoop_11)
package RocketMan_fla {
import flash.display.*;
public dynamic class movieSmokeLoop_11 extends MovieClip {
public function movieSmokeLoop_11(){
addFrameScript(165, frame166);
}
function frame166(){
stop();
}
}
}//package RocketMan_fla
Section 95
//preloader_1 (RocketMan_fla.preloader_1)
package RocketMan_fla {
import flash.display.*;
public dynamic class preloader_1 extends MovieClip {
public function preloader_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RocketMan_fla
Section 96
//score_block_mc_47 (RocketMan_fla.score_block_mc_47)
package RocketMan_fla {
import flash.display.*;
public dynamic class score_block_mc_47 extends MovieClip {
public var block_2:MovieClip;
public var block_3:MovieClip;
public var block_6:MovieClip;
public var block_7:MovieClip;
public var block_8:MovieClip;
public var block_9:MovieClip;
public var block_5:MovieClip;
public var block_4:MovieClip;
public var block_10:MovieClip;
public var btn_forward:forward_button;
public var btn_back:forward_button;
public var block_1:MovieClip;
}
}//package RocketMan_fla
Section 97
//sp_end_man_86 (RocketMan_fla.sp_end_man_86)
package RocketMan_fla {
import flash.display.*;
public dynamic class sp_end_man_86 extends MovieClip {
public var mcCylinder:MovieClip;
}
}//package RocketMan_fla
Section 98
//spScore1000_90 (RocketMan_fla.spScore1000_90)
package RocketMan_fla {
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.external.*;
import flash.system.*;
import flash.errors.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class spScore1000_90 extends MovieClip {
public var txtScore:TextField;
public function spScore1000_90(){
addFrameScript(0, frame1);
}
function frame1(){
txtScore.text = (Global.obj.MAIN._gameLevel * 1000).toString();
}
}
}//package RocketMan_fla
Section 99
//spScore1000Bonus_92 (RocketMan_fla.spScore1000Bonus_92)
package RocketMan_fla {
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.external.*;
import flash.system.*;
import flash.errors.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class spScore1000Bonus_92 extends MovieClip {
public var txtScore:TextField;
public function spScore1000Bonus_92(){
addFrameScript(0, frame1);
}
function frame1(){
txtScore.text = Global.obj.lastBonus.toString();
}
}
}//package RocketMan_fla
Section 100
//text_name_2_50 (RocketMan_fla.text_name_2_50)
package RocketMan_fla {
import flash.display.*;
import flash.text.*;
public dynamic class text_name_2_50 extends MovieClip {
public var name_txt:TextField;
}
}//package RocketMan_fla
Section 101
//text_name_67 (RocketMan_fla.text_name_67)
package RocketMan_fla {
import flash.display.*;
import flash.text.*;
public dynamic class text_name_67 extends MovieClip {
public var name_txt:TextField;
}
}//package RocketMan_fla
Section 102
//text_rank_52 (RocketMan_fla.text_rank_52)
package RocketMan_fla {
import flash.display.*;
import flash.text.*;
public dynamic class text_rank_52 extends MovieClip {
public var rank_txt:TextField;
}
}//package RocketMan_fla
Section 103
//text_score_51 (RocketMan_fla.text_score_51)
package RocketMan_fla {
import flash.display.*;
import flash.text.*;
public dynamic class text_score_51 extends MovieClip {
public var score_txt:TextField;
}
}//package RocketMan_fla
Section 104
//Share (share.Share)
package share {
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.system.*;
public class Share extends MovieClip {
private var _sharePanel:MovieClip;
private var _yCoordinate:Number;
private var _sharePanelStatus:Boolean;
private var _shareFolderURL:String;
private var _loader:Loader;
private var _xCoordinate:Number;
private var _center:Boolean;
private var _root;
public function Share(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:Number, _arg5:Number, _arg6){
Security.allowDomain(_arg2);
Security.allowInsecureDomain(_arg2);
_shareFolderURL = _arg1;
_center = _arg3;
_xCoordinate = _arg4;
_yCoordinate = _arg5;
_sharePanelStatus = false;
_root = _arg6;
init();
}
private function setHighestDepth(_arg1):void{
trace("setHighestDepth", _root.numChildren);
_root.setChildIndex(_arg1, (_root.numChildren - 1));
}
private function loadSharePanel():void{
var _local1:LoaderContext;
_loader = new Loader();
trace("_shareFolderURL", _shareFolderURL);
_local1 = new LoaderContext(true, new ApplicationDomain(), SecurityDomain.currentDomain);
if (checkIDE()){
_loader.load(new URLRequest((_shareFolderURL + "share_panel.swf")));
} else {
_loader.load(new URLRequest((_shareFolderURL + "share_panel.swf")), _local1);
};
configureListeners(_loader.contentLoaderInfo);
}
private function init(){
addEventListeners();
_sharePanel = new MovieClip();
loadSharePanel();
}
private function initHandler(_arg1:Event):void{
trace(("initHandler: " + _arg1));
}
private function sharePanelLoadedHandler(_arg1:Event):void{
trace(("sharePanelLoadedHandler: " + _arg1));
}
public function alternateVisibility():void{
if (_sharePanelStatus){
setVisible(false);
} else {
setHighestDepth(_sharePanel);
setVisible(true);
_sharePanel.refresh();
};
}
private function unLoadHandler(_arg1:Event):void{
trace(("unLoadHandler: " + _arg1));
}
private function httpStatusHandler(_arg1:HTTPStatusEvent):void{
trace(("httpStatusHandler: " + _arg1));
}
private function progressHandler(_arg1:ProgressEvent):void{
trace(((("progressHandler: bytesLoaded=" + _arg1.bytesLoaded) + " bytesTotal=") + _arg1.bytesTotal));
}
private function kill(){
removeEventListeners();
}
private function removeEventListeners():void{
_root.addEventListener(MouseEvent.CLICK, clickSelect);
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
trace(("ioErrorHandler: " + _arg1));
}
private function checkIDE():Boolean{
if (Capabilities.playerType == "External"){
return (true);
};
return (false);
}
private function openHandler(_arg1:Event):void{
trace(("openHandler: " + _arg1));
}
public function setVisible(_arg1:Boolean):void{
_sharePanel.visible = _arg1;
_sharePanelStatus = _arg1;
}
private function clickSelect(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:String;
_local2 = _arg1.target;
_local3 = _arg1.target.parent;
_local4 = _arg1.target.name;
_local5 = _arg1.target.parent.name;
trace("{clickedParent =", (_local5 + "}"), "{clicked =", (_local4 + "}"), "{label =", (_local6 + "}"), "{type =", (_arg1.type + "}"));
if (_local5.substr(0, 3) == "btn"){
_local6 = _local5.substr(4);
if (_local6 == "close"){
setVisible(false);
};
};
}
private function addEventListeners():void{
_root.addEventListener(MouseEvent.CLICK, clickSelect, false, 0, true);
}
private function completeHandler(_arg1:Event):void{
var _local2:*;
trace(("completeHandler: " + _arg1));
_local2 = _arg1.target.content;
_local2.loadSettings(_shareFolderURL);
_sharePanel = (_arg1.currentTarget.content as MovieClip);
_sharePanel.visible = false;
_root.addChild(_sharePanel);
if (_center){
_sharePanel.x = ((_root.stage.stageWidth / 2) - (_sharePanel.width / 2));
_sharePanel.y = ((_root.stage.stageHeight / 2) - (_sharePanel.height / 2));
} else {
_sharePanel.x = _xCoordinate;
_sharePanel.y = _yCoordinate;
};
}
private function configureListeners(_arg1:IEventDispatcher):void{
_arg1.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
_arg1.addEventListener(Event.COMPLETE, completeHandler);
}
}
}//package share
Section 105
//AppVariables (AppVariables)
package {
public class AppVariables {
public static var BASE_SCORE:int = 10;
public static var PLAYAREA_LEFT:int = 40;
public static var PLAYAREA_TOP:int = 141;
public static var ROCKETMAN_VERTICAL_DAMPENING:Number = 0.2;
public static var SNOWBALL_DAMAGE:int = 25;
public static var PRESENT_START_POINT:int = 800;
public static var PRESENT_END_POINT:int = -100;
public static var MAN_ZOOM_SCALE:Number = 0.5;
public static var BONUS_LEVEL:int = 3;
public static var PLAYAREA_BOTTOM:int = 350;
public static var ROCKETMAN_VERTICAL_VELOCITY:Number = 1;
public static var LEVEL_DISTANCE:int = 1000;
public static var ROCKETMAN_MAX_VERTICAL_VELOCITY:int = 8;
public static var BONUS_LEVEL_DISTANCE:int = 500;
public static var DIFFICULTY:int = 40;
public static var PLAYAREA_RIGHT:int = 700;
}
}//package
Section 106
//bg_1 (bg_1)
package {
import flash.display.*;
public dynamic class bg_1 extends MovieClip {
}
}//package
Section 107
//bg_10 (bg_10)
package {
import flash.display.*;
public dynamic class bg_10 extends MovieClip {
}
}//package
Section 108
//bg_11 (bg_11)
package {
import flash.display.*;
public dynamic class bg_11 extends MovieClip {
}
}//package
Section 109
//bg_12 (bg_12)
package {
import flash.display.*;
public dynamic class bg_12 extends MovieClip {
}
}//package
Section 110
//bg_2 (bg_2)
package {
import flash.display.*;
public dynamic class bg_2 extends MovieClip {
}
}//package
Section 111
//bg_3 (bg_3)
package {
import flash.display.*;
public dynamic class bg_3 extends MovieClip {
}
}//package
Section 112
//bg_4 (bg_4)
package {
import flash.display.*;
public dynamic class bg_4 extends MovieClip {
}
}//package
Section 113
//bg_5 (bg_5)
package {
import flash.display.*;
public dynamic class bg_5 extends MovieClip {
}
}//package
Section 114
//bg_6 (bg_6)
package {
import flash.display.*;
public dynamic class bg_6 extends MovieClip {
}
}//package
Section 115
//bg_7 (bg_7)
package {
import flash.display.*;
public dynamic class bg_7 extends MovieClip {
}
}//package
Section 116
//bg_8 (bg_8)
package {
import flash.display.*;
public dynamic class bg_8 extends MovieClip {
}
}//package
Section 117
//bg_9 (bg_9)
package {
import flash.display.*;
public dynamic class bg_9 extends MovieClip {
}
}//package
Section 118
//button (button)
package {
import flash.media.*;
public dynamic class button extends Sound {
}
}//package
Section 119
//button_back (button_back)
package {
import classAssets.*;
public dynamic class button_back extends Button {
public function button_back(){
addFrameScript(0, frame1, 18, frame19);
}
function frame1(){
stop();
}
function frame19(){
gotoAndStop("off");
}
}
}//package
Section 120
//button_submit (button_submit)
package {
import classAssets.*;
public dynamic class button_submit extends Button {
public function button_submit(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 121
//buttonInstructionsBACK (buttonInstructionsBACK)
package {
import classAssets.*;
public dynamic class buttonInstructionsBACK extends Button {
public function buttonInstructionsBACK(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 122
//buttonMainFacebook (buttonMainFacebook)
package {
import classAssets.*;
public dynamic class buttonMainFacebook extends Button {
public function buttonMainFacebook(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 123
//buttonMainGRAB (buttonMainGRAB)
package {
import classAssets.*;
public dynamic class buttonMainGRAB extends Button {
public function buttonMainGRAB(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 124
//buttonMainHELP (buttonMainHELP)
package {
import classAssets.*;
public dynamic class buttonMainHELP extends Button {
public function buttonMainHELP(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 125
//buttonMainPLAYROCKETMAN (buttonMainPLAYROCKETMAN)
package {
import classAssets.*;
public dynamic class buttonMainPLAYROCKETMAN extends Button {
public function buttonMainPLAYROCKETMAN(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 126
//buttonMainTwitter (buttonMainTwitter)
package {
import classAssets.*;
public dynamic class buttonMainTwitter extends Button {
public function buttonMainTwitter(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 127
//buttonMainViewLeaderBoard (buttonMainViewLeaderBoard)
package {
import classAssets.*;
public dynamic class buttonMainViewLeaderBoard extends Button {
public function buttonMainViewLeaderBoard(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 128
//buttonPlayOnFacebook (buttonPlayOnFacebook)
package {
import classAssets.*;
public dynamic class buttonPlayOnFacebook extends Button {
}
}//package
Section 129
//DistanceBar (DistanceBar)
package {
import flash.display.*;
public class DistanceBar extends MovieClip {
public var spBackground:MovieClip;
public var spCounter:MovieClip;
public function DistanceBar():void{
}
public function resetTrack():void{
spCounter.x = 0;
}
public function updateDistance(_arg1:int, _arg2:int):void{
var _local3:int;
_local3 = ((_arg1 / _arg2) * spBackground.width);
if (_arg1 < _arg2){
spCounter.x = _local3;
};
}
}
}//package
Section 130
//elevator (elevator)
package {
import flash.media.*;
public dynamic class elevator extends Sound {
}
}//package
Section 131
//enter_score_mc (enter_score_mc)
package {
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.external.*;
import flash.system.*;
import flash.errors.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class enter_score_mc extends EnterHighScore {
public function enter_score_mc(){
addFrameScript(0, frame1);
}
function frame1(){
txtScore.text = ("You Scored " + Global.obj.GAME._score);
}
}
}//package
Section 132
//EnterHighScore (EnterHighScore)
package {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import classAssets.*;
public class EnterHighScore extends MovieClip {
private const PATH:String = "http://development.nakedpenguinboy.com/intel/christmas/high_score/flash/add_user.php";
public var txtScore:TextField;
private var _click:Boolean;// = true
public var btnSubmit:button_submit;
public var name_mc:MovieClip;
public function EnterHighScore():void{
_click = true;
super();
if (btnSubmit){
btnSubmit.addEventListener(MouseEvent.MOUSE_DOWN, sendScore, false, 0, true);
};
}
private function success(_arg1:Event):void{
trace("...ending send data");
this.dispatchEvent(new Event("data_sent", true));
removeListeners();
}
private function removeListeners():void{
PostData.DISPATCHER.removeEventListener("data_sent", success);
PostData.DISPATCHER.removeEventListener("data_fail", success);
}
private function get NAME(){
return (this.name_mc.name_txt.text);
}
private function addListeners():void{
PostData.DISPATCHER.addEventListener("data_sent", success, false, 0, true);
PostData.DISPATCHER.addEventListener("data_fail", success, false, 0, true);
}
public function sendScore(_arg1:MouseEvent=null):void{
var _local2:int;
var _local3:*;
var _local4:Array;
_local2 = 100;
_local3 = null;
if (Global.obj.CURRENT_SCORE){
_local2 = Global.obj.CURRENT_SCORE;
};
if (Global.obj.FB_ID){
_local3 = Global.obj.FB_ID;
};
_local4 = new Array("name", NAME, "score", _local2, "fb_id", _local3);
addListeners();
PostData.sendData(PATH, _local4);
trace("sending data...", _local4);
}
}
}//package
Section 133
//explosion (explosion)
package {
import flash.media.*;
public dynamic class explosion extends Sound {
}
}//package
Section 134
//forward_button (forward_button)
package {
import classAssets.*;
public dynamic class forward_button extends Button {
public function forward_button(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 135
//FPSCounter (FPSCounter)
package {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.utils.*;
public class FPSCounter extends Sprite {
private var ticks:uint;// = 0
private var tf:TextField;
private var last:uint;
public function FPSCounter(_arg1:int=0, _arg2:int=0, _arg3:uint=0xFFFFFF, _arg4:Boolean=false, _arg5:uint=0){
last = getTimer();
ticks = 0;
super();
x = _arg1;
y = _arg2;
tf = new TextField();
tf.textColor = _arg3;
tf.text = "----- fps";
tf.selectable = false;
tf.background = _arg4;
tf.backgroundColor = _arg5;
tf.autoSize = TextFieldAutoSize.LEFT;
addChild(tf);
width = tf.textWidth;
height = tf.textHeight;
addEventListener(Event.ENTER_FRAME, tick);
}
public function tick(_arg1:Event):void{
var _local2:uint;
var _local3:uint;
var _local4:Number;
ticks++;
_local2 = getTimer();
_local3 = (_local2 - last);
if (_local3 >= 1000){
_local4 = ((ticks / _local3) * 1000);
tf.text = (_local4.toFixed(1) + " fps");
ticks = 0;
last = _local2;
};
}
}
}//package
Section 136
//gasp1 (gasp1)
package {
import flash.media.*;
public dynamic class gasp1 extends Sound {
}
}//package
Section 137
//gasp2 (gasp2)
package {
import flash.media.*;
public dynamic class gasp2 extends Sound {
}
}//package
Section 138
//gasp3 (gasp3)
package {
import flash.media.*;
public dynamic class gasp3 extends Sound {
}
}//package
Section 139
//Global (Global)
package {
import flash.text.*;
import flash.utils.*;
public class Global {
public static var obj:Object = {};
public static function setXmlTextfield(_arg1:TextField):void{
_arg1.text = Global.obj.xml[getQualifiedClassName(_arg1.parent)];
}
public static function str_replace(_arg1:String, _arg2:String, _arg3:String):String{
var _local4:Array;
var _local5:String;
_local4 = _arg1.split(_arg2);
_local5 = _local4.join(_arg3);
return (_local5);
}
}
}//package
Section 140
//grunt (grunt)
package {
import flash.media.*;
public dynamic class grunt extends Sound {
}
}//package
Section 141
//HealthBar (HealthBar)
package {
import flash.display.*;
import classAssets.*;
public class HealthBar extends MovieClip {
private var UTILS:GameUtils;
public var mcBar:MovieClip;
public function HealthBar():void{
UTILS = new GameUtils();
super();
UTILS.colourC(mcBar, -255, 0xFF, -255);
}
public function setHealth(_arg1:int, _arg2:int):void{
var _local3:*;
var _local4:int;
_local3 = (_arg1 / _arg2);
mcBar.scaleX = _local3;
_local4 = ((_local3 * 510) - 0xFF);
UTILS.colourC(mcBar, -(_local4), _local4, -255);
}
}
}//package
Section 142
//high_score_mc (high_score_mc)
package {
public dynamic class high_score_mc extends HighScoreDisplay {
}
}//package
Section 143
//HighScoreDisplay (HighScoreDisplay)
package {
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.events.*;
import flash.xml.*;
public class HighScoreDisplay extends MovieClip {
private var _snapshot:Bitmap;
public var _range:int;// = 6
public var btn_close:button_back;
private var _snapshotData:BitmapData;
public var _click:Boolean;// = true
public var score_block_mc:MovieClip;
public var _index:int;// = 1
private var _scoreData:HighScoreLoader;
public function HighScoreDisplay():void{
_scoreData = new HighScoreLoader();
_index = 1;
_range = 6;
_click = true;
super();
setFade();
_scoreData.addEventListener("XMLloaded", XMLLoaded);
this.addEventListener(MouseEvent.MOUSE_DOWN, clickSelect);
}
private function setFade(){
var _local1:*;
var _local2:*;
_local1 = 1;
while (_local1 < 11) {
SCORE_BLOCK[("block_" + _local1)].visible = false;
_local1++;
};
_snapshotData = new BitmapData(this.width, this.height, true, 0);
_snapshotData.draw(this);
_snapshot = new Bitmap(_snapshotData);
_local2 = 1;
while (_local2 < 11) {
SCORE_BLOCK[("block_" + _local2)].visible = true;
_local2++;
};
}
private function XMLLoaded(_arg1:Event):void{
trace("*HIGH SCORE DATA AVAILABLE*");
list(_index, _range);
}
private function fadeOut(){
var fadeLoop:Function;
fadeLoop = function (_arg1:Event){
_snapshot.alpha = (_snapshot.alpha - 0.5);
if (_snapshot.alpha < 0){
_click = true;
removeChild(_snapshot);
removeEventListener(Event.ENTER_FRAME, fadeLoop);
};
};
this.addEventListener(Event.ENTER_FRAME, fadeLoop);
}
private function fadeUp(){
var fadeLoop:Function;
fadeLoop = function (_arg1:Event){
_snapshot.alpha = (_snapshot.alpha + 0.25);
if (_snapshot.alpha > 1){
removeEventListener(Event.ENTER_FRAME, fadeLoop);
list(_index, (_range + _index));
fadeOut();
};
};
_snapshot.alpha = 0;
this.addChild(_snapshot);
this.addEventListener(Event.ENTER_FRAME, fadeLoop);
}
public function get SCORE_BLOCK():MovieClip{
return ((this.score_block_mc as MovieClip));
}
public function list(_arg1, _arg2):void{
var _local3:*;
var _local4:*;
_local3 = _scoreData.getRange(_arg1, _arg2);
_local4 = 1;
while (_local4 < 11) {
if (_local3[_local4]){
SCORE_BLOCK[("block_" + _local4)].name_mc.name_txt.text = _local3[_local4].Name;
};
if (_local3[_local4]){
SCORE_BLOCK[("block_" + _local4)].score_mc.score_txt.text = _local3[_local4].Score;
};
SCORE_BLOCK[("block_" + _local4)].rank_mc.rank_txt.text = ((_arg1 + _local4) - 1);
_local4++;
};
}
private function clickSelect(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
if (_click == false){
return;
};
_local2 = _arg1.target.parent.name;
_local3 = _local2.substr(4);
_local4 = _local2.substr(3, 1);
if (_local2.substr(0, 3) != "btn"){
return;
};
if (_local3 == "forward"){
showRecord(_range);
};
if (_local3 == "back"){
showRecord(-(_range));
};
}
private function showRecord(_arg1):void{
_click = false;
_index = (_index + _arg1);
if (_index < 0){
_index = (_index + 54);
};
if (_index > 54){
_index = (_index - 54);
};
fadeUp();
}
}
}//package
Section 144
//HighScoreLoader (HighScoreLoader)
package {
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.events.*;
import flash.xml.*;
public class HighScoreLoader extends MovieClip {
private const DATA_SOURCE:String = "http://development.nakedpenguinboy.com/intel/christmas/high_score/xml/xml.php?=";
private var xmlLoader:URLLoader;
private var xmlData:XML;
public function HighScoreLoader():void{
xmlLoader = new URLLoader();
xmlData = new XML();
super();
xmlLoader.addEventListener(Event.COMPLETE, XMLLoadComplete);
xmlLoader.addEventListener(IOErrorEvent.IO_ERROR, loadError);
xmlLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError);
xmlLoader.load(new URLRequest((DATA_SOURCE + new Date().getTime())));
}
public function getName(_arg1):String{
if (xmlData[("record" + _arg1)].length() == "1"){
return (xmlData[("record" + _arg1)].Name);
};
return ("-");
}
public function getScore(_arg1):String{
if (xmlData[("record" + _arg1)].length() == "1"){
return (xmlData[("record" + _arg1)].Score);
};
return ("-");
}
private function onSecurityError(_arg1:SecurityErrorEvent):void{
trace("***SECURITY_LOAD_ERROR***");
}
private function testData(_arg1, _arg2):void{
var _local3:*;
var _local4:*;
_local3 = getRange(_arg1, _arg2);
_local4 = _arg1;
while (_local4 < (_arg2 + 1)) {
trace(_local3[_local4].Name, _local3[_local4].Score);
_local4++;
};
}
public function getRange(_arg1, _arg2):Array{
var _local3:Array;
var _local4:*;
var _local5:Object;
_local3 = new Array();
_local3.push(0);
_local4 = _arg1;
while (_local4 < (_arg2 + 1)) {
_local5 = new Object();
_local5.Name = getName(_local4);
_local5.Score = getScore(_local4);
_local3.push(_local5);
_local4++;
};
return (_local3);
}
private function loadError(_arg1:IOErrorEvent):void{
trace("***DATA_LOAD_ERROR***");
}
private function XMLLoadComplete(_arg1:Event):void{
trace("*XML Data Loaded*");
xmlData = new XML(_arg1.target.data);
testData(1, 10);
this.dispatchEvent(new Event("XMLloaded"));
}
}
}//package
Section 145
//InfoPopup (InfoPopup)
package {
import flash.display.*;
import flash.events.*;
public class InfoPopup extends MovieClip {
public function InfoPopup():void{
this.addEventListener(Event.ADDED_TO_STAGE, whenAddedToList, false, 0, true);
stop();
}
private function whenAddedToList(_arg1:Event):void{
this.addEventListener(Event.ENTER_FRAME, update, false, 0, true);
}
private function update(_arg1:Event):void{
var _local2:Number;
_local2 = this.parent.parent.x;
if ((((_local2 > 0)) && ((_local2 < stage.stageWidth)))){
play();
this.addEventListener(Event.ENTER_FRAME, centre, false, 0, true);
this.removeEventListener(Event.ENTER_FRAME, update);
};
}
private function centre(_arg1:Event):void{
var _local2:Number;
if (!stage){
return;
};
_local2 = this.parent.parent.x;
this.x = -(((_local2 - stage.stageWidth) + (stage.stageWidth * 0.5)));
if (_local2 < 0){
play();
this.removeEventListener(Event.ENTER_FRAME, centre);
};
}
}
}//package
Section 146
//Listener (Listener)
package {
import flash.display.*;
import flash.events.*;
public class Listener extends MovieClip {
public static var CONTROLLER:EventDispatcher = new EventDispatcher();
}
}//package
Section 147
//man_crash_mc (man_crash_mc)
package {
import flash.display.*;
import flash.events.*;
public dynamic class man_crash_mc extends MovieClip {
public function man_crash_mc(){
addFrameScript(20, frame21);
}
function frame21(){
this.dispatchEvent(new Event("animation_finished"));
}
}
}//package
Section 148
//man_duck_mc (man_duck_mc)
package {
import flash.display.*;
import flash.events.*;
public dynamic class man_duck_mc extends MovieClip {
public var mcCylinder:MovieClip;
public function man_duck_mc(){
addFrameScript(7, frame8);
}
function frame8(){
this.dispatchEvent(new Event("animation_finished"));
}
}
}//package
Section 149
//man_flying_mc (man_flying_mc)
package {
import flash.display.*;
public dynamic class man_flying_mc extends MovieClip {
public var mcMan:MovieClip;
public var mcCylinder:MovieClip;
public function man_flying_mc(){
addFrameScript(9, frame10);
}
function frame10(){
gotoAndPlay("loop");
}
}
}//package
Section 150
//man_high5_mc (man_high5_mc)
package {
import flash.display.*;
public dynamic class man_high5_mc extends MovieClip {
public var mcCylinder:MovieClip;
}
}//package
Section 151
//man_jump_mc (man_jump_mc)
package {
import flash.display.*;
public dynamic class man_jump_mc extends MovieClip {
public var mcCylinder:MovieClip;
public function man_jump_mc(){
addFrameScript(11, frame12, 27, frame28);
}
function frame12(){
stop();
}
function frame28(){
stop();
}
}
}//package
Section 152
//man_kick_mc (man_kick_mc)
package {
import flash.display.*;
import flash.events.*;
public dynamic class man_kick_mc extends MovieClip {
public var mcCylinder:MovieClip;
public function man_kick_mc(){
addFrameScript(26, frame27);
}
function frame27(){
this.dispatchEvent(new Event("animation_finished"));
}
}
}//package
Section 153
//man_kick2_mc (man_kick2_mc)
package {
import flash.display.*;
import flash.events.*;
public dynamic class man_kick2_mc extends MovieClip {
public var mcCylinder:MovieClip;
public function man_kick2_mc(){
addFrameScript(5, frame6);
}
function frame6(){
this.dispatchEvent(new Event("animation_finished"));
}
}
}//package
Section 154
//man_travel_mc (man_travel_mc)
package {
import flash.display.*;
public dynamic class man_travel_mc extends MovieClip {
public var mcCylinder:MovieClip;
public function man_travel_mc(){
addFrameScript(9, frame10, 13, frame14);
}
function frame10(){
gotoAndPlay("loop");
}
function frame14(){
stop();
}
}
}//package
Section 155
//ManAnimation (ManAnimation)
package {
import flash.display.*;
import flash.events.*;
import classAssets.*;
import flash.utils.*;
public class ManAnimation extends MovieClip {
public var SPRITE_TURBO:man_kick_mc;
public var SPRITE_DUCK:man_duck_mc;
private var _jump:Boolean;
private var _upVel:Number;
private var _manY:Number;// = 300
public var TIMER:Timer;
public var _manX:Number;// = 120
private var _gravity:Number;// = 0.3
public var _manStatus:String;// = ""
public var _turboOn:Boolean;// = false
public var SPRITE_KICK:man_kick2_mc;
public var SPRITE_JUMP:man_jump_mc;
private var _startVel:Number;// = 8
public var _currentClip:MovieClip;
public var SPRITE_TRAVEL:man_travel_mc;
public var SPRITE_HIGH5:man_high5_mc;
public function ManAnimation():void{
_manX = 120;
_manY = 300;
_startVel = 8;
_upVel = _startVel;
_gravity = 0.3;
_manStatus = "";
_turboOn = false;
_currentClip = new MovieClip();
SPRITE_TRAVEL = new man_travel_mc();
SPRITE_JUMP = new man_jump_mc();
SPRITE_DUCK = new man_duck_mc();
SPRITE_KICK = new man_kick2_mc();
SPRITE_TURBO = new man_kick_mc();
SPRITE_HIGH5 = new man_high5_mc();
super();
this.addEventListener(Event.ADDED_TO_STAGE, whenAddedToList, false, 0, true);
}
private function checkKeys(_arg1:Event):void{
if (KeyListener.keyPressedRight == true){
animate("kick2");
};
if (KeyListener.keyPressedUp == true){
startJump();
};
if (KeyListener.keyPressedDown == true){
animate("duck");
};
if (KeyListener.keyPressedLeft == true){
animate("high5");
};
}
public function setupKeys():void{
KeyListener.SetStage(stage);
ObjectCheck.SetStage(stage);
stage.focus = stage;
this.addEventListener(Event.ENTER_FRAME, checkKeys, false, 0, true);
}
private function jump(_arg1:Event):void{
if ((((_upVel < -1)) && ((_upVel > -2)))){
MAN_SPRITE.play();
};
MAN_SPRITE.y = (MAN_SPRITE.y - _upVel);
_upVel = (_upVel - _gravity);
if (MAN_SPRITE.y > _manY){
removeEventListener(Event.ENTER_FRAME, jump);
_upVel = _startVel;
MAN_SPRITE.y = _manY;
endAnimation();
};
}
private function turbo():void{
if (_manStatus == ""){
animate("kick");
this.dispatchEvent(new Event("turbo"));
};
}
private function whenAddedToList(_arg1:Event):void{
this.removeEventListener(Event.ADDED_TO_STAGE, whenAddedToList);
addClip("man_travel_mc", _manX, _manY, "MAN_SPRITE");
}
private function stopTimer(_arg1:TimerEvent):void{
TIMER.removeEventListener(TimerEvent.TIMER, stopTimer);
TIMER.stop();
TIMER.reset();
}
private function get MAN_SPRITE():MovieClip{
return ((Global.obj.MAN_SPRITE as MovieClip));
}
private function holdAnimationCheck(_arg1:Event):void{
var _local2:Boolean;
if ((((_manStatus == "high5")) && ((KeyListener.keyPressedLeft == false)))){
endAnimation();
};
if ((((_manStatus == "duck")) && ((KeyListener.keyPressedDown == false)))){
_local2 = true;
};
if ((((_manStatus == "kick2")) && ((KeyListener.keyPressedRight == false)))){
_local2 = true;
};
if ((((_manStatus == "kick")) && ((KeyListener.keyPressedRight == false)))){
_local2 = true;
};
if ((((_manStatus == "kick")) && ((Global.obj.GAME._turboOn == true)))){
_local2 = false;
};
if ((((MAN_SPRITE.currentLabel == "check")) && ((_local2 == true)))){
MAN_SPRITE.play();
this.removeEventListener(Event.ENTER_FRAME, holdAnimationCheck);
} else {
if (MAN_SPRITE.currentLabel == "check"){
MAN_SPRITE.stop();
};
};
}
private function addClip(_arg1:String, _arg2:int, _arg3:int, _arg4:String=null, _arg5=null, _arg6=null):void{
var ClassReference:Class;
var $instance:DisplayObject;
var $clip = _arg1;
var $x = _arg2;
var $y = _arg3;
var $GlobalRef = _arg4;
var $destination = _arg5;
var $name = _arg6;
try {
ClassReference = (getDefinitionByName($clip) as Class);
} catch(event:ReferenceError) {
trace(($clip + " could not be found in library"));
return;
};
$instance = new (ClassReference);
if ($name){
$instance.name = $name;
} else {
$instance.name = $clip;
};
if ($GlobalRef != null){
Global.obj[$GlobalRef] = $instance;
};
$instance.x = $x;
$instance.y = $y;
if ($destination){
$destination.addChild($instance);
} else {
this.addChild($instance);
};
}
public function removeKeys():void{
this.removeEventListener(Event.ENTER_FRAME, checkKeys);
}
public function resetMan():void{
_turboOn = false;
endAnimation();
MAN_SPRITE.x = _manX;
}
private function startJump():void{
if (_jump){
return;
};
_jump = true;
MAN_SPRITE.gotoAndPlay("jump");
addEventListener(Event.ENTER_FRAME, jump2, false, 0, true);
}
private function addSprite(_arg1, _arg2, _arg3):void{
var _local4:DisplayObject;
if (_arg1 == "travel"){
_local4 = SPRITE_TRAVEL;
};
if (_arg1 == "jump"){
_local4 = SPRITE_JUMP;
};
if (_arg1 == "duck"){
_local4 = SPRITE_DUCK;
};
if (_arg1 == "kick2"){
_local4 = SPRITE_KICK;
};
if (_arg1 == "kick"){
_local4 = SPRITE_TURBO;
};
if (_arg1 == "high5"){
_local4 = SPRITE_HIGH5;
};
_local4.y = _arg3;
Global.obj.MAN_SPRITE = _local4;
_local4.x = _arg2;
this.addChild(_local4);
MAN_SPRITE.gotoAndPlay(1);
}
private function startHopCount():void{
TIMER = new Timer(500, 0);
TIMER.addEventListener(TimerEvent.TIMER, stopTimer, false, 0, true);
TIMER.start();
}
private function jump2(_arg1:Event):void{
if ((((_upVel < -1)) && ((_upVel > -2)))){
MAN_SPRITE.play();
};
MAN_SPRITE.y = (MAN_SPRITE.y - _upVel);
_upVel = (_upVel - _gravity);
if (MAN_SPRITE.y > _manY){
_jump = false;
removeEventListener(Event.ENTER_FRAME, jump2);
_upVel = _startVel;
MAN_SPRITE.y = _manY;
if (_turboOn){
turbo();
};
};
}
public function animate(_arg1:String):void{
var _local2:Number;
var _local3:Number;
if (_manStatus != ""){
return;
};
if (getQualifiedClassName(Global.obj.MAN_SPRITE) == "man_flying_mc"){
trace("adding");
addClip("man_travel_mc", _manX, _manY, "MAN_SPRITE");
};
if (!MAN_SPRITE){
_local2 = _manX;
} else {
_local2 = MAN_SPRITE.x;
_local3 = MAN_SPRITE.y;
if (MAN_SPRITE){
this.removeChild(MAN_SPRITE);
};
Global.obj.MAN_SPRITE = null;
addSprite(_arg1, _local2, _local3);
};
if (_arg1 != "travel"){
_manStatus = _arg1;
};
MAN_SPRITE.scaleX = 0.66;
MAN_SPRITE.scaleY = 0.66;
MAN_SPRITE.addEventListener("animation_finished", endAnimation, false, 0, true);
if (_arg1 == "jump"){
addEventListener(Event.ENTER_FRAME, jump, false, 0, true);
};
if (_arg1 == "duck"){
addEventListener(Event.ENTER_FRAME, holdAnimationCheck, false, 0, true);
};
if (_arg1 == "kick2"){
addEventListener(Event.ENTER_FRAME, holdAnimationCheck, false, 0, true);
};
if (_arg1 == "kick"){
addEventListener(Event.ENTER_FRAME, holdAnimationCheck, false, 0, true);
};
if (_arg1 == "high5"){
addEventListener(Event.ENTER_FRAME, holdAnimationCheck, false, 0, true);
};
}
private function endAnimation(_arg1:Event=null):void{
MAN_SPRITE.removeEventListener("animation_finished", endAnimation);
_manStatus = "";
if (_turboOn){
turbo();
} else {
animate("travel");
};
}
}
}//package
Section 156
//ManAnimationBonus (ManAnimationBonus)
package {
import flash.display.*;
import flash.events.*;
import classAssets.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
public class ManAnimationBonus extends MovieClip {
public var SPRITE_TURBO:man_kick_mc;
public var SPRITE_DUCK:man_duck_mc;
private var _jump:Boolean;
private var _upVel:Number;// = 0
private var _manY:Number;// = 300
public var TIMER:Timer;
public var _manX:Number;// = 120
private var _gravity:Number;// = 0.3
private var _xVel:Number;// = 0
public var _manStatus:String;// = ""
public var _turboOn:Boolean;// = false
public var SPRITE_KICK:man_kick2_mc;
public var SPRITE_JUMP:man_jump_mc;
public var PRESENT_CREATOR:PresentCreator;
private var _startVel:Number;// = 8
public var _currentClip:MovieClip;
public var SPRITE_TRAVEL:man_flying_mc;
public var SNOWBALL_CREATOR:SnowballCreator;
public var SPRITE_HIGH5:man_high5_mc;
private var _tweenScaleY:Tween;
private var _tweenScaleX:Tween;
public function ManAnimationBonus():void{
_manX = 120;
_manY = 300;
_startVel = 8;
_upVel = 0;
_xVel = 0;
_gravity = 0.3;
_manStatus = "";
_turboOn = false;
_currentClip = new MovieClip();
SPRITE_JUMP = new man_jump_mc();
SPRITE_DUCK = new man_duck_mc();
SPRITE_KICK = new man_kick2_mc();
SPRITE_TURBO = new man_kick_mc();
SPRITE_HIGH5 = new man_high5_mc();
SPRITE_TRAVEL = new man_flying_mc();
super();
this.addEventListener(Event.ADDED_TO_STAGE, whenAddedToList, false, 0, true);
}
private function checkKeys(_arg1:Event):void{
if (KeyListener.keyPressedRight == true){
moveManForward();
};
if (KeyListener.keyPressedLeft == true){
moveManBack();
};
if (KeyListener.keyPressedUp == true){
moveManUp();
};
if (KeyListener.keyPressedDown == true){
moveManDown();
};
}
private function moveManDown():void{
if (_upVel > -(AppVariables.ROCKETMAN_MAX_VERTICAL_VELOCITY)){
_upVel = (_upVel - AppVariables.ROCKETMAN_VERTICAL_VELOCITY);
};
this.addEventListener(Event.ENTER_FRAME, updateManPosition, false, 0, true);
}
public function setupKeys():void{
KeyListener.SetStage(stage);
ObjectCheck.SetStage(stage);
stage.focus = stage;
this.addEventListener(Event.ENTER_FRAME, checkKeys, false, 0, true);
}
private function jump(_arg1:Event):void{
if ((((_upVel < -1)) && ((_upVel > -2)))){
MAN_SPRITE.play();
};
MAN_SPRITE.y = (MAN_SPRITE.y - _upVel);
_upVel = (_upVel - _gravity);
if (MAN_SPRITE.y > _manY){
removeEventListener(Event.ENTER_FRAME, jump);
_upVel = _startVel;
MAN_SPRITE.y = _manY;
endAnimation();
};
}
private function updateManPosition(_arg1:Event):void{
MAN_SPRITE.y = (MAN_SPRITE.y - _upVel);
if (_upVel > 0){
_upVel = (_upVel - AppVariables.ROCKETMAN_VERTICAL_DAMPENING);
} else {
if (_upVel < 0){
_upVel = (_upVel + AppVariables.ROCKETMAN_VERTICAL_DAMPENING);
};
};
if (MAN_SPRITE.y < AppVariables.PLAYAREA_TOP){
MAN_SPRITE.y = AppVariables.PLAYAREA_TOP;
_upVel = 0;
this.removeEventListener(Event.ENTER_FRAME, updateManPosition);
};
if (MAN_SPRITE.y > AppVariables.PLAYAREA_BOTTOM){
MAN_SPRITE.y = AppVariables.PLAYAREA_BOTTOM;
_upVel = 0;
this.removeEventListener(Event.ENTER_FRAME, updateManPosition);
};
if ((((_upVel > -(AppVariables.ROCKETMAN_VERTICAL_DAMPENING))) && ((_upVel < AppVariables.ROCKETMAN_VERTICAL_DAMPENING)))){
_upVel = 0;
this.removeEventListener(Event.ENTER_FRAME, updateManPosition);
};
}
private function turbo():void{
if (_manStatus == ""){
animate("kick");
this.dispatchEvent(new Event("turbo"));
};
}
private function whenAddedToList(_arg1:Event):void{
var _local2:mc_playarea_mask;
this.removeEventListener(Event.ADDED_TO_STAGE, whenAddedToList);
addClip("man_flying_mc", _manX, _manY, "MAN_SPRITE");
PRESENT_CREATOR = new PresentCreator();
this.addChild(PRESENT_CREATOR);
SNOWBALL_CREATOR = new SnowballCreator();
this.addChild(SNOWBALL_CREATOR);
_local2 = new mc_playarea_mask();
this.addChild(_local2);
_local2.y = 100;
_local2.scaleY = 1.04;
SNOWBALL_CREATOR.mask = _local2;
}
private function moveManUp():void{
if (_upVel < AppVariables.ROCKETMAN_MAX_VERTICAL_VELOCITY){
_upVel = (_upVel + AppVariables.ROCKETMAN_VERTICAL_VELOCITY);
};
this.addEventListener(Event.ENTER_FRAME, updateManPosition, false, 0, true);
}
private function moveManBack():void{
if (_xVel > -(AppVariables.ROCKETMAN_MAX_VERTICAL_VELOCITY)){
_xVel = (_xVel - AppVariables.ROCKETMAN_VERTICAL_VELOCITY);
};
this.addEventListener(Event.ENTER_FRAME, updateManXPosition, false, 0, true);
}
private function stopTimer(_arg1:TimerEvent):void{
TIMER.removeEventListener(TimerEvent.TIMER, stopTimer);
TIMER.stop();
TIMER.reset();
}
private function endZoomOut(_arg1:TweenEvent):void{
_arg1.target.removeEventListener(TweenEvent.MOTION_FINISH, endZoomOut);
}
public function get MAN_SPRITE():MovieClip{
return ((Global.obj.MAN_SPRITE as MovieClip));
}
private function holdAnimationCheck(_arg1:Event):void{
var _local2:Boolean;
if ((((_manStatus == "high5")) && ((KeyListener.keyPressedLeft == false)))){
endAnimation();
};
if ((((_manStatus == "duck")) && ((KeyListener.keyPressedDown == false)))){
_local2 = true;
};
if ((((_manStatus == "kick2")) && ((KeyListener.keyPressedRight == false)))){
_local2 = true;
};
if ((((_manStatus == "kick")) && ((KeyListener.keyPressedRight == false)))){
_local2 = true;
};
if ((((_manStatus == "kick")) && ((Global.obj.GAME._turboOn == true)))){
_local2 = false;
};
if ((((MAN_SPRITE.currentLabel == "check")) && ((_local2 == true)))){
MAN_SPRITE.play();
this.removeEventListener(Event.ENTER_FRAME, holdAnimationCheck);
} else {
if (MAN_SPRITE.currentLabel == "check"){
MAN_SPRITE.stop();
};
};
}
private function addClip(_arg1:String, _arg2:int, _arg3:int, _arg4:String=null, _arg5=null, _arg6=null):void{
var ClassReference:Class;
var $instance:DisplayObject;
var $clip = _arg1;
var $x = _arg2;
var $y = _arg3;
var $GlobalRef = _arg4;
var $destination = _arg5;
var $name = _arg6;
try {
ClassReference = (getDefinitionByName($clip) as Class);
} catch(event:ReferenceError) {
trace(($clip + " could not be found in library"));
return;
};
$instance = new (ClassReference);
if ($name){
$instance.name = $name;
} else {
$instance.name = $clip;
};
if ($GlobalRef != null){
Global.obj[$GlobalRef] = $instance;
};
$instance.x = $x;
$instance.y = $y;
if ($destination){
$destination.addChild($instance);
} else {
this.addChild($instance);
};
}
public function kill():void{
removeKeys();
this.removeEventListener(Event.ENTER_FRAME, updateManPosition);
this.removeEventListener(Event.ENTER_FRAME, updateManXPosition);
Listener.CONTROLLER.dispatchEvent(new Event("kill_all"));
removeChild(SNOWBALL_CREATOR);
removeChild(PRESENT_CREATOR);
}
public function removeKeys():void{
this.removeEventListener(Event.ENTER_FRAME, checkKeys);
}
public function resetMan():void{
_turboOn = false;
endAnimation();
MAN_SPRITE.x = _manX;
}
private function startJump():void{
if (_jump){
return;
};
_jump = true;
MAN_SPRITE.gotoAndPlay("jump");
addEventListener(Event.ENTER_FRAME, jump2, false, 0, true);
}
public function zoomOut(_arg1=null):void{
var _local2:Number;
var _local3:Number;
if (!_arg1){
_arg1 = MAN_SPRITE;
};
_local2 = 20;
_local3 = AppVariables.MAN_ZOOM_SCALE;
_tweenScaleX = new Tween(_arg1, "scaleX", Regular.easeIn, 0.66, _local3, _local2, false);
_tweenScaleY = new Tween(_arg1, "scaleY", Regular.easeIn, 0.66, _local3, _local2, false);
_tweenScaleX.addEventListener(TweenEvent.MOTION_FINISH, endZoomOut, false, 0, true);
}
private function addSprite(_arg1, _arg2, _arg3):void{
var _local4:DisplayObject;
if (_arg1 == "travel"){
_local4 = SPRITE_TRAVEL;
};
if (_arg1 == "jump"){
_local4 = SPRITE_JUMP;
};
if (_arg1 == "duck"){
_local4 = SPRITE_DUCK;
};
if (_arg1 == "kick2"){
_local4 = SPRITE_KICK;
};
if (_arg1 == "kick"){
_local4 = SPRITE_TURBO;
};
if (_arg1 == "high5"){
_local4 = SPRITE_HIGH5;
};
_local4.y = _arg3;
Global.obj.MAN_SPRITE = _local4;
_local4.x = _arg2;
this.addChild(_local4);
MAN_SPRITE.gotoAndPlay(1);
}
private function jump2(_arg1:Event):void{
if ((((_upVel < -1)) && ((_upVel > -2)))){
MAN_SPRITE.play();
};
MAN_SPRITE.y = (MAN_SPRITE.y - _upVel);
_upVel = (_upVel - _gravity);
if (MAN_SPRITE.y > _manY){
_jump = false;
removeEventListener(Event.ENTER_FRAME, jump2);
_upVel = _startVel;
MAN_SPRITE.y = _manY;
if (_turboOn){
turbo();
};
};
}
private function moveManForward():void{
if (_xVel < AppVariables.ROCKETMAN_MAX_VERTICAL_VELOCITY){
_xVel = (_xVel + AppVariables.ROCKETMAN_VERTICAL_VELOCITY);
};
this.addEventListener(Event.ENTER_FRAME, updateManXPosition, false, 0, true);
}
private function startHopCount():void{
TIMER = new Timer(500, 0);
TIMER.addEventListener(TimerEvent.TIMER, stopTimer, false, 0, true);
TIMER.start();
}
public function animate(_arg1:String):void{
var _local2:Number;
var _local3:Number;
if (_manStatus != ""){
return;
};
if (!MAN_SPRITE){
_local2 = _manX;
} else {
_local2 = MAN_SPRITE.x;
_local3 = MAN_SPRITE.y;
this.removeChild(MAN_SPRITE);
Global.obj.MAN_SPRITE = null;
addSprite(_arg1, _local2, _local3);
};
if (_arg1 != "travel"){
_manStatus = _arg1;
};
MAN_SPRITE.scaleX = 0.66;
MAN_SPRITE.scaleY = 0.66;
MAN_SPRITE.addEventListener("animation_finished", endAnimation, false, 0, true);
if (_arg1 == "jump"){
addEventListener(Event.ENTER_FRAME, jump, false, 0, true);
};
if (_arg1 == "duck"){
addEventListener(Event.ENTER_FRAME, holdAnimationCheck, false, 0, true);
};
if (_arg1 == "kick2"){
addEventListener(Event.ENTER_FRAME, holdAnimationCheck, false, 0, true);
};
if (_arg1 == "kick"){
addEventListener(Event.ENTER_FRAME, holdAnimationCheck, false, 0, true);
};
if (_arg1 == "high5"){
addEventListener(Event.ENTER_FRAME, holdAnimationCheck, false, 0, true);
};
}
private function endAnimation(_arg1:Event=null):void{
MAN_SPRITE.removeEventListener("animation_finished", endAnimation);
_manStatus = "";
if (_turboOn){
turbo();
} else {
animate("travel");
};
}
private function updateManXPosition(_arg1:Event):void{
MAN_SPRITE.x = (MAN_SPRITE.x + _xVel);
if (_xVel > 0){
_xVel = (_xVel - AppVariables.ROCKETMAN_VERTICAL_DAMPENING);
} else {
if (_xVel < 0){
_xVel = (_xVel + AppVariables.ROCKETMAN_VERTICAL_DAMPENING);
};
};
if (MAN_SPRITE.x < AppVariables.PLAYAREA_LEFT){
MAN_SPRITE.x = AppVariables.PLAYAREA_LEFT;
_upVel = 0;
this.removeEventListener(Event.ENTER_FRAME, updateManXPosition);
};
if (MAN_SPRITE.x > AppVariables.PLAYAREA_RIGHT){
MAN_SPRITE.x = AppVariables.PLAYAREA_RIGHT;
_upVel = 0;
this.removeEventListener(Event.ENTER_FRAME, updateManXPosition);
};
if ((((_xVel > -(AppVariables.ROCKETMAN_VERTICAL_DAMPENING))) && ((_xVel < AppVariables.ROCKETMAN_VERTICAL_DAMPENING)))){
_xVel = 0;
this.removeEventListener(Event.ENTER_FRAME, updateManXPosition);
};
}
}
}//package
Section 157
//mc_distance (mc_distance)
package {
public dynamic class mc_distance extends DistanceBar {
}
}//package
Section 158
//mc_end_animation (mc_end_animation)
package {
import flash.display.*;
import flash.events.*;
public dynamic class mc_end_animation extends MovieClip {
public function mc_end_animation(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
this.dispatchEvent(new Event("animation_finished"));
}
}
}//package
Section 159
//mc_flame (mc_flame)
package {
import flash.display.*;
public dynamic class mc_flame extends MovieClip {
}
}//package
Section 160
//mc_health_bar (mc_health_bar)
package {
public dynamic class mc_health_bar extends HealthBar {
}
}//package
Section 161
//mc_playarea_mask (mc_playarea_mask)
package {
import flash.display.*;
public dynamic class mc_playarea_mask extends MovieClip {
}
}//package
Section 162
//mc_present (mc_present)
package {
public dynamic class mc_present extends Present {
}
}//package
Section 163
//mc_present_animation (mc_present_animation)
package {
public dynamic class mc_present_animation extends PresentSantaAnimation {
}
}//package
Section 164
//mc_score_panel (mc_score_panel)
package {
public dynamic class mc_score_panel extends ScorePanel {
}
}//package
Section 165
//mc_snowball (mc_snowball)
package {
public dynamic class mc_snowball extends Snowball {
}
}//package
Section 166
//mc_stars_animating (mc_stars_animating)
package {
public dynamic class mc_stars_animating extends StarController {
}
}//package
Section 167
//mc_top_panel (mc_top_panel)
package {
import flash.display.*;
public dynamic class mc_top_panel extends MovieClip {
}
}//package
Section 168
//mcScoreRise (mcScoreRise)
package {
import flash.display.*;
public dynamic class mcScoreRise extends MovieClip {
public function mcScoreRise(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
}
}
}//package
Section 169
//mcScoreRiseBonus (mcScoreRiseBonus)
package {
import flash.display.*;
public dynamic class mcScoreRiseBonus extends MovieClip {
public function mcScoreRiseBonus(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
}
}
}//package
Section 170
//movieInstructionHintDuck (movieInstructionHintDuck)
package {
public dynamic class movieInstructionHintDuck extends InfoPopup {
public function movieInstructionHintDuck(){
addFrameScript(45, frame46, 51, frame52);
}
function frame46(){
stop();
}
function frame52(){
stop();
}
}
}//package
Section 171
//movieInstructionHintJump (movieInstructionHintJump)
package {
public dynamic class movieInstructionHintJump extends InfoPopup {
public function movieInstructionHintJump(){
addFrameScript(45, frame46, 51, frame52);
}
function frame46(){
stop();
}
function frame52(){
stop();
}
}
}//package
Section 172
//movieInstructionHintKick (movieInstructionHintKick)
package {
public dynamic class movieInstructionHintKick extends InfoPopup {
public function movieInstructionHintKick(){
addFrameScript(45, frame46, 51, frame52);
}
function frame46(){
stop();
}
function frame52(){
stop();
}
}
}//package
Section 173
//ObjectCheck (ObjectCheck)
package {
import flash.display.*;
import flash.events.*;
public class ObjectCheck {
private static var _children:Array = new Array();
private static var _frame:Array = new Array();
private static var _count:int = 1;
private static var _movieClips:Array = new Array();
private static var _stage:Stage;
public function ObjectCheck():void{
}
public static function SetStage(_arg1:Stage):void{
_stage = _arg1;
_children.push(_stage);
}
public static function CheckPlaying():void{
getChildren();
}
private static function loop(_arg1:Event):void{
var _local2:int;
var _local3:*;
_local2 = 0;
while (_local2 < _movieClips.length) {
if (_movieClips[_local2].currentFrame != _frame[_local2]){
_local3 = _movieClips[_local2];
trace("\t>>", _local3, ":", (("'" + _local3.name) + "'"), "IS PLAYING");
};
_local2++;
};
_stage.removeEventListener(Event.ENTER_FRAME, loop);
}
private static function getChildren():void{
var $i:int;
var $target:*;
var $m:int;
var $child:*;
$i = 0;
while ($i < _count) {
$target = _children[$i];
try {
if ($target.numChildren > 0){
$m = 0;
while ($m < $target.numChildren) {
$child = $target.getChildAt($m);
_children.push($child);
if (($child is MovieClip)){
_frame.push($child.currentFrame);
_movieClips.push($child);
};
_count++;
$m = ($m + 1);
};
};
} catch(error:ReferenceError) {
};
$i = ($i + 1);
};
_stage.addEventListener(Event.ENTER_FRAME, loop);
}
}
}//package
Section 174
//ping (ping)
package {
import flash.media.*;
public dynamic class ping extends Sound {
}
}//package
Section 175
//plane_mc (plane_mc)
package {
public dynamic class plane_mc extends PlaneAnimation {
public function plane_mc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 176
//PlaneAnimation (PlaneAnimation)
package {
import flash.display.*;
import flash.events.*;
public class PlaneAnimation extends MovieClip {
private var _backSpeed:int;
private var _speed:int;// = 1
private var _rotY:int;
private var _startY:Number;// = 150
private var _startX:Number;// = -50
private var _rotX:int;
private var _startingBackSpeed:int;// = 7
private var _radius:int;// = 55
public var _back:Boolean;// = false
private var _angle:int;// = -90
private var _angle2:int;// = 0
public function PlaneAnimation():void{
_startX = -50;
_startY = 150;
_speed = 1;
_startingBackSpeed = 7;
_backSpeed = _startingBackSpeed;
_angle = -90;
_angle2 = 0;
_radius = 55;
_back = false;
super();
this.addEventListener(Event.ADDED_TO_STAGE, whenAddedToList, false, 0, true);
}
private function forwardLoop(_arg1:Event):void{
this.y = (_startY + (5 * Math.sin((_angle2 * (Math.PI / 180)))));
_angle2 = (_angle2 + 10);
if (_angle2 > 360){
_angle2 = 0;
};
this.x = (this.x + _speed);
if (this.x == 470){
this.removeEventListener(Event.ENTER_FRAME, forwardLoop);
_rotX = this.x;
_rotY = (this.y + _radius);
this.addEventListener(Event.ENTER_FRAME, loopLoop, false, 0, true);
};
}
public function removeListeners():void{
this.removeEventListener(Event.ENTER_FRAME, forwardLoop);
this.removeEventListener(Event.ENTER_FRAME, loopLoop);
this.removeEventListener(Event.ENTER_FRAME, backLoop);
}
private function backLoop(_arg1:Event):void{
this.x = (this.x - (_speed * _backSpeed));
if (this.x < -100){
this.removeEventListener(Event.ENTER_FRAME, backLoop);
this.dispatchEvent(new Event("plane_finished"));
_backSpeed = _startingBackSpeed;
};
}
public function turboAway(_arg1:int=4):void{
this.removeEventListener(Event.ENTER_FRAME, forwardLoop);
this.removeEventListener(Event.ENTER_FRAME, loopLoop);
this.addEventListener(Event.ENTER_FRAME, backLoop, false, 0, true);
_backSpeed = (_backSpeed * _arg1);
}
private function whenAddedToList(_arg1:Event):void{
this.removeEventListener(Event.ADDED_TO_STAGE, whenAddedToList);
this.x = _startX;
this.y = _startY;
this.addEventListener(Event.ENTER_FRAME, forwardLoop, false, 0, true);
}
private function loopLoop(_arg1:Event):void{
this.x = (_rotX + (_radius * Math.cos((_angle * (Math.PI / 180)))));
this.y = (_rotY + (_radius * Math.sin((_angle * (Math.PI / 180)))));
_angle = (_angle + 3);
if (_angle > 0){
this.scaleY = -1;
_rotX = (_rotX - (_speed * _backSpeed));
};
this.rotation = (90 + _angle);
if (_angle == 90){
this.removeEventListener(Event.ENTER_FRAME, loopLoop);
this.addEventListener(Event.ENTER_FRAME, backLoop, false, 0, true);
_back = true;
};
}
public function setType(_arg1:int):void{
this.gotoAndStop(("plane_" + _arg1));
if (_arg1 == 2){
_radius = 75;
};
}
}
}//package
Section 177
//Present (Present)
package {
import flash.display.*;
import flash.events.*;
import classAssets.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
public class Present extends MovieClip {
private var _tweenRotation:Tween;
private var _tweenY:Tween;
private var _startX:int;
private var _tweenX:Tween;
private var UTILS:GameUtils;
private var _presentRef:int;
private var _endPoint:int;
public function Present():void{
_endPoint = AppVariables.PRESENT_END_POINT;
UTILS = new GameUtils();
super();
addSprite();
_startX = AppVariables.PRESENT_START_POINT;
this.x = _startX;
this.y = UTILS.randRange((AppVariables.PLAYAREA_TOP + (this.height * 0.5)), (AppVariables.PLAYAREA_BOTTOM - (this.height * 0.5)));
startMoving();
startRotating();
Listener.CONTROLLER.addEventListener("kill_all", kill, false, 0, true);
}
private function endMove(_arg1:TweenEvent):void{
_arg1.target.removeEventListener(TweenEvent.MOTION_FINISH, endMove);
_arg1.target.removeEventListener(TweenEvent.MOTION_CHANGE, checkHit);
this.x = _startX;
}
public function startMoving():void{
var _local1:Number;
_local1 = (100 + UTILS.randRange(0, 200));
_tweenX = new Tween(this, "x", None.easeNone, _startX, _endPoint, _local1, false);
_tweenX.addEventListener(TweenEvent.MOTION_FINISH, endMove, false, 0, true);
_tweenX.addEventListener(TweenEvent.MOTION_CHANGE, checkHit, false, 0, true);
}
public function get MAN_SPRITE():MovieClip{
return ((Global.obj.MAN_SPRITE as MovieClip));
}
private function checkHit(_arg1:TweenEvent):void{
if (this.hitTestObject(MAN_SPRITE)){
Global.obj.GAME.addPresentScore();
kill();
this.dispatchEvent(new Event("hit_present"));
};
}
private function kill(_arg1:Event=null):void{
Listener.CONTROLLER.removeEventListener("kill_all", kill);
if (_tweenX){
_tweenX.stop();
_tweenX.removeEventListener(TweenEvent.MOTION_FINISH, endMove);
_tweenX.removeEventListener(TweenEvent.MOTION_CHANGE, checkHit);
};
if (_tweenRotation){
_tweenRotation.stop();
_tweenRotation.removeEventListener(TweenEvent.MOTION_FINISH, endRotation);
};
}
private function endRotation(_arg1:TweenEvent):void{
_arg1.target.removeEventListener(TweenEvent.MOTION_FINISH, endRotation);
startRotating();
}
private function addSprite():void{
var _local1:int;
var _local2:Class;
var _local3:MovieClip;
_local1 = UTILS.randRange(1, 5);
_local2 = (getDefinitionByName(("xmas_present_00" + _local1)) as Class);
_local3 = new (_local2);
this.removeChild(getChildAt(0));
this.addChild(_local3);
}
public function startRotating():void{
var _local1:Number;
_local1 = 50;
_tweenRotation = new Tween(this, "rotation", None.easeNone, 0, 360, _local1, false);
_tweenRotation.addEventListener(TweenEvent.MOTION_FINISH, endRotation, false, 0, true);
}
}
}//package
Section 178
//PresentCreator (PresentCreator)
package {
import flash.display.*;
import flash.events.*;
public class PresentCreator extends MovieClip {
public function PresentCreator():void{
}
public function createPresent():void{
var _local1:mc_present;
_local1 = new mc_present();
this.addChild(_local1);
_local1.addEventListener("hit_present", removePresent, false, 0, true);
}
private function removePresent(_arg1:Event):void{
var _local2:*;
_local2 = _arg1.target;
_local2.removeEventListener("hit_present", removePresent);
this.removeChild(_local2);
_local2 = null;
}
}
}//package
Section 179
//PresentSantaAnimation (PresentSantaAnimation)
package {
import flash.display.*;
import flash.events.*;
import classAssets.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
public class PresentSantaAnimation extends MovieClip {
private var _tweenRotation:Tween;
private var _tweenY:Tween;
private var _startX:int;
private var _tweenX:Tween;
private var UTILS:GameUtils;
private var _presentRef:int;
private var _endPoint:int;// = -400
public function PresentSantaAnimation():void{
_endPoint = -400;
UTILS = new GameUtils();
super();
addSprite();
startMoving();
startRotating();
Listener.CONTROLLER.addEventListener("kill_all", kill, false, 0, true);
}
private function endMove(_arg1:TweenEvent):void{
_arg1.target.removeEventListener(TweenEvent.MOTION_FINISH, endMove);
_arg1.target.removeEventListener(TweenEvent.MOTION_CHANGE, checkHit);
}
public function startMoving():void{
var _local1:Number;
_local1 = (50 + UTILS.randRange(0, 100));
_tweenX = new Tween(this, "x", None.easeNone, this.x, _endPoint, _local1, false);
_tweenY = new Tween(this, "y", None.easeNone, this.y, (this.y + UTILS.randRange(-50, 50)), _local1, false);
_tweenX.addEventListener(TweenEvent.MOTION_FINISH, endMove, false, 0, true);
}
public function get MAN_SPRITE():MovieClip{
return ((Global.obj.MAN_SPRITE as MovieClip));
}
private function checkHit(_arg1:TweenEvent):void{
if (this.hitTestObject(MAN_SPRITE)){
Global.obj.GAME.addPresentScore();
kill();
this.dispatchEvent(new Event("hit_present"));
};
}
private function kill(_arg1:Event=null):void{
Listener.CONTROLLER.removeEventListener("kill_all", kill);
if (_tweenX){
_tweenX.stop();
_tweenX.removeEventListener(TweenEvent.MOTION_FINISH, endMove);
_tweenX.removeEventListener(TweenEvent.MOTION_CHANGE, checkHit);
};
if (_tweenRotation){
_tweenRotation.stop();
_tweenRotation.removeEventListener(TweenEvent.MOTION_FINISH, endRotation);
};
}
private function endRotation(_arg1:TweenEvent):void{
_arg1.target.removeEventListener(TweenEvent.MOTION_FINISH, endRotation);
startRotating();
}
private function addSprite():void{
var _local1:int;
var _local2:Class;
var _local3:MovieClip;
_local1 = UTILS.randRange(1, 5);
_local2 = (getDefinitionByName(("xmas_present_00" + _local1)) as Class);
_local3 = new (_local2);
this.removeChild(getChildAt(0));
this.addChild(_local3);
}
public function startRotating():void{
var _local1:Number;
_local1 = 50;
_tweenRotation = new Tween(this, "rotation", None.easeNone, 0, 360, _local1, false);
_tweenRotation.addEventListener(TweenEvent.MOTION_FINISH, endRotation, false, 0, true);
}
}
}//package
Section 180
//rocket_loop (rocket_loop)
package {
import flash.media.*;
public dynamic class rocket_loop extends Sound {
}
}//package
Section 181
//RocketMan (RocketMan)
package {
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.events.*;
import com.google.analytics.*;
import classAssets.*;
import flash.utils.*;
import flash.media.*;
import share.*;
import flash.external.*;
import flash.system.*;
public class RocketMan extends MovieClip {
private const ALLOW_DOMAIN_URL = "*";
private const SHARE_FOLDER_URL = "http://development.nakedpenguinboy.com/intel/christmas/share/";
private const NPB_GA:String = "UA-20115699-1";
public var mcCarpet:MovieClip;
public var txtScore:TextField;
public var btnHigh:buttonMainViewLeaderBoard;
public var btnInstructions:buttonMainHELP;
public var SOUND_PLAYER:SoundPlayer;
private var _bgTotalObjects:int;// = 12
private var _scorePanel:mc_score_panel;
private var _waitFunction:String;
private var _bonusMult:int;// = 0
public var btnTwitter:buttonMainTwitter;
public var _baseSpeed:int;// = 10
private var UTILS:GameUtils;
public var _startSpeed:int;
var _bmp:Bitmap;
private var _finalAnimation:mc_end_animation;
public var btnGrab:buttonMainGRAB;
public var _endLevel:int;// = 3
private var ANIMATOR:ManAnimation;
public var mcEnter:enter_score_mc;
private var MULT_TEXT:txtBonusMult;
private var _share:Share;
private var _planeChance:int;
public var total_txt:TextField;
public var txtLevel:TextField;
public var _scoreOff:Boolean;// = false
private var _topPanel:mc_top_panel;
private var FLAME:mc_flame;
private var _bgObj1:Sprite;
public var TIMER:Timer;
private var _bgObj2:Sprite;
private var BONUS_ANIMATOR:ManAnimationBonus;
public var mcHealthBar:mc_health_bar;
private var _gameComplete:Boolean;
public var _gameLevel:int;// = 1
public var loaderBar_mc:MovieClip;
private var _turbos:int;// = 0
private var _settingsXML:XML;
private var _twitter:String;
private var _gameOver:Boolean;
public var _speed:int;
public var mcTurbos:MovieClip;
private var _distance:int;// = 0
private var _plane:plane_mc;
private var _scoreAnimations:MovieClip;
private var _section1:Sprite;
public var _turboOn:Boolean;// = false
private var _totalDistance:int;
private var _page:String;
private var _maxHealth:int;// = 200
private var _title:String;
private var _health:int;
private var _totalSections:int;// = 7
public var btnPlayOnFacebook:buttonPlayOnFacebook;
public var _score:int;// = 0
private var _endReached:Boolean;
var _bmpData:BitmapData;
private var _trackingStatus:Boolean;
public var TIMER2:Timer;
public var btnPlay:buttonMainPLAYROCKETMAN;
public var mcDistance:mc_distance;
private var _googleTrackers:Array;
private var _bgLoc:Number;// = 0
private var facebookLikeStatus:Boolean;
private var _rec:Rectangle;
private var PAUSE:CountdownTimer;
public var btnMenu:buttonInstructionsBACK;
private var HIT_TEST:HitTest;
public var btnFacebookLike:buttonMainFacebook;
public function RocketMan():void{
var _local1:String;
var _local2:FPSCounter;
HIT_TEST = new HitTest();
UTILS = new GameUtils();
SOUND_PLAYER = new SoundPlayer();
PAUSE = new CountdownTimer();
_baseSpeed = 10;
_startSpeed = _baseSpeed;
_speed = _startSpeed;
_bgLoc = 0;
_maxHealth = 200;
_health = _maxHealth;
_bgTotalObjects = 12;
_totalSections = 7;
ANIMATOR = new ManAnimation();
FLAME = new mc_flame();
_bonusMult = 0;
_turbos = 0;
_gameLevel = 1;
_distance = 0;
_totalDistance = AppVariables.LEVEL_DISTANCE;
_endLevel = 3;
_turboOn = false;
_scoreOff = false;
_score = 0;
_topPanel = new mc_top_panel();
_scoreAnimations = new MovieClip();
_googleTrackers = new Array();
super();
addFrameScript(1, frame2, 9, frame10, 19, frame20, 29, frame30, 39, frame40);
_trackingStatus = false;
setUpTracking();
if (checkIDE()){
trace("checkIDE");
_local1 = "share/";
} else {
_local1 = SHARE_FOLDER_URL;
};
_share = new Share(_local1, ALLOW_DOMAIN_URL, false, 25, 125, this);
btnTwitter.visible = false;
loadSettings(_local1);
facebookLikeStatus = false;
checkFacebook();
this.addEventListener(Event.ADDED_TO_STAGE, whenAddedToList, false, 0, true);
_local2 = new FPSCounter(0, 540, 0xFF0000);
addChild(_local2);
Global.obj.MAIN = this;
}
public function success(_arg1:Event):void{
trace("LISTENER HEARD *TOP*: success!");
showMain();
}
private function moveObjects():void{
if ((((mcCarpet.x <= -378)) && (!(_bgObj1)))){
addObject(1);
};
if (_bgObj1){
_bgObj1.x = (_bgObj1.x - _speed);
if (_bgObj1.x < -(_bgObj1.width)){
addObject(1);
};
};
}
private function hitWall(_arg1):void{
if (_arg1.mcExplosion.currentFrame != 1){
return;
};
SOUND_PLAYER.playSound("explosion");
_arg1.mcExplosion.y = (MAN_SPRITE.y - 390);
_arg1.mcExplosion.play();
}
private function trackMan():void{
if (MAN_SPRITE.x > ANIMATOR._manX){
MAN_SPRITE.x = (MAN_SPRITE.x - 2);
if (MAN_SPRITE.x < ANIMATOR._manX){
MAN_SPRITE.x = ANIMATOR._manX;
};
};
}
private function settingsCompleteXML(_arg1:Event){
_settingsXML = new XML(_arg1.target.xmlData);
_title = _settingsXML.title;
_page = _settingsXML.page;
_twitter = _settingsXML.twitter;
btnTwitter.visible = true;
btnTwitter.alpha = 1;
}
private function levelFinished():void{
_section1.x = 0;
SECTION.mcLift.play();
SoundMixer.stopAll();
SOUND_PLAYER.playSound("elevator");
pauseGame();
waitFor("key_pressed");
}
private function endBonusGame():void{
this.removeEventListener(Event.ENTER_FRAME, bonusGameLoop);
BONUS_ANIMATOR.kill();
this.removeChild(MULT_TEXT);
MULT_TEXT = null;
this.removeChild(BONUS_ANIMATOR);
SoundMixer.stopAll();
SOUND_PLAYER.playSound("grunt");
gameOver();
}
private function turbo(_arg1:Event):void{
SOUND_PLAYER.playSound("turbo");
TIMER = new Timer(2000, 0);
TIMER.addEventListener(TimerEvent.TIMER, stopTimer, false, 0, true);
TIMER.start();
_turboOn = true;
if (_plane != null){
_plane.turboAway();
};
_speed = 56;
FLAME.scaleX = 2;
FLAME.scaleY = 3;
UTILS.colourC(FLAME, 100, -10, -20);
}
private function startLoop():void{
_gameOver = false;
this.addEventListener(Event.ENTER_FRAME, mainLoop, false, 0, true);
}
private function keyUpListener(_arg1:KeyboardEvent):void{
stage.removeEventListener(KeyboardEvent.KEY_UP, keyUpListener);
switch (_waitFunction){
case "key_pressed":
newLevel();
break;
};
}
private function setUpGame():void{
SOUND_PLAYER.playSound("rocket_loop", 0.3, true, true);
_gameComplete = false;
_score = 0;
activateAnimation();
startLoop();
mcTurbos.gotoAndStop((_turbos + 1));
stage.focus = stage;
_planeChance = (200 - (_gameLevel * 15));
txtLevel.text = _gameLevel.toString();
addChild(_topPanel);
addChild(_scoreAnimations);
stage.quality = StageQuality.MEDIUM;
}
private function checkPlane():void{
if (_gameLevel < 2){
return;
};
if (_endReached == true){
return;
};
if (((!(_plane)) && (!(_turboOn)))){
if (UTILS.randRange(1, _planeChance) == 1){
_plane = new plane_mc();
_plane.setType(UTILS.randRange(1, 2));
this.addChild(_plane);
_plane.addEventListener("plane_finished", removePlane, false, 0, true);
};
} else {
return;
};
}
private function removePlane(_arg1:Event=null):void{
_plane.removeListeners();
_plane.removeEventListener("plane_finished", removePlane);
this.removeChild(_plane);
_plane = null;
}
private function removeScorePanel():void{
this.removeChild(Global.obj.SCORE_PANEL);
Global.obj.SCORE_PANEL = null;
}
public function showMain():void{
this.gotoAndStop("menu");
}
function frame20(){
stop();
}
function frame10(){
stop();
setUpGame();
}
public function setUpTracking():void{
var _local1:*;
_local1 = false;
_googleTrackers.push(new Array(new GATracker(this, NPB_GA, "AS3", _local1)));
_trackingStatus = true;
trackString("total_application_loads");
}
private function stopTimer(_arg1:TimerEvent=null):void{
TIMER.removeEventListener(TimerEvent.TIMER, stopTimer);
TIMER.stop();
TIMER.reset();
_turbos = 0;
mcTurbos.gotoAndStop(1);
_turboOn = false;
ANIMATOR._turboOn = false;
_speed = _startSpeed;
FLAME.scaleX = 1;
FLAME.scaleY = 1;
UTILS.colourC(FLAME, 0, 0, 0);
}
private function removeLevelElements():void{
if (_section1){
this.removeChild(_section1);
};
if (_bgObj1){
this.removeChild(_bgObj1);
};
if (_bgObj2){
this.removeChild(_bgObj2);
};
_section1 = null;
_bgObj1 = null;
_bgObj2 = null;
if (_plane){
removePlane();
};
}
function frame2(){
stop();
try {
if (ExternalInterface.available == false){
btnFacebookLike.visible = false;
};
} catch(error:Error) {
btnFacebookLike.visible = false;
trace(("Error catch: " + error));
};
}
private function disableScore():void{
TIMER2 = new Timer(1000, 0);
TIMER2.addEventListener(TimerEvent.TIMER, enableScore, false, 0, true);
TIMER2.start();
_scoreOff = true;
UTILS.colourC(txtScore, 0xFF, -255, -255);
}
private function checkIDE():Boolean{
if (Capabilities.playerType == "External"){
return (true);
};
return (false);
}
function frame40(){
stop();
}
function frame30(){
stop();
mcEnter.addEventListener("data_sent", success, false, 0, true);
}
private function trackFlame():void{
FLAME.x = (MAN_SPRITE.x + MAN_SPRITE.mcCylinder.x);
FLAME.y = (MAN_SPRITE.y + MAN_SPRITE.mcCylinder.y);
FLAME.rotation = MAN_SPRITE.mcCylinder.rotation;
if (_turboOn){
FLAME.x = (FLAME.x - 135);
FLAME.y = (FLAME.y - 33);
MAN_SPRITE.x = (MAN_SPRITE.x + 3);
};
}
private function clickSelect(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:String;
_local2 = _arg1.target.parent.name;
_local3 = _local2.substr(0, 3);
_local4 = _local2.substr(3);
if (_local2.substr(0, 3) != "btn"){
return;
};
SOUND_PLAYER.playSound("button");
switch (_local4){
case "High":
_share.setVisible(false);
showHighScore();
trackString("highscores_main");
break;
case "Menu":
showMain();
trackString("menu_main");
break;
case "Play":
_share.setVisible(false);
playGame();
trackString("game_played");
break;
case "Instructions":
_share.setVisible(false);
showInstructions();
trackString("instructions_main");
break;
case "Grab":
closeFacebookLike();
openShare();
trackString("share");
break;
case "PlayOnFacebook":
link("http://apps.facebook.com/intelrocketman/", "_blank");
trackString("exit_link_play_on_facebook");
break;
case "FacebookLike":
_share.setVisible(false);
openFacebookLike();
trackString("facebook_like");
break;
case "Twitter":
_local5 = ("http://twitter.com/home?status=" + setTwitterText());
link(_local5, "_blank");
trackString("twitter");
break;
};
}
private function addScore(_arg1:int):void{
if (_scoreOff == true){
return;
};
_score = (_score + _arg1);
if (_score > 99999999999999){
_score = 99999999999999;
};
updateDisplay();
}
private function get SECTION():MovieClip{
return ((Global.obj.SECTION_1 as MovieClip));
}
private function setTwitterText():String{
var _local1:String;
if (Global.obj.CURRENT_SCORE == undefined){
_local1 = ((_title + " ") + _page);
} else {
_local1 = ((((((_title + " ") + _page) + " ") + _twitter) + " ") + Global.obj.CURRENT_SCORE);
};
return (_local1);
}
private function high5():void{
var _local1:mcScoreRise;
if (SOUND_PLAYER._play == false){
return;
};
addScore((1000 * _gameLevel));
if (_health > _maxHealth){
_health = _maxHealth;
};
SOUND_PLAYER.playSound("ping");
_local1 = new mcScoreRise();
_scoreAnimations.addChild(_local1);
_local1.x = 100;
_local1.y = 250;
}
private function enableScore(_arg1:TimerEvent=null):void{
TIMER2.removeEventListener(TimerEvent.TIMER, enableScore);
TIMER2.stop();
TIMER2.reset();
_scoreOff = false;
UTILS.colourC(txtScore, 0, 0, 0);
}
private function checkForPresent():void{
if (UTILS.randRange(1, 50) == 1){
BONUS_ANIMATOR.PRESENT_CREATOR.createPresent();
};
}
private function takeDamage():void{
if (_turboOn == true){
return;
};
if (_scoreOff == false){
disableScore();
};
_health--;
if (mcHealthBar){
mcHealthBar.setHealth(_health, _maxHealth);
};
if (MAN_SPRITE){
flashObject(MAN_SPRITE);
};
if (_health <= 0){
gameOver();
} else {
SOUND_PLAYER.playSound("grunt");
};
}
function openFacebookLike(){
try {
if (ExternalInterface.available){
ExternalInterface.call("openLike()");
};
} catch(error:Error) {
trace(("Error catch: " + error));
};
}
private function bonusGameLoop(_arg1:Event):void{
checkBonusGameDistance();
checkForPresent();
checkForSnowball();
}
private function pauseGame():void{
stopLoop();
if (_plane){
removePlane();
};
diactivateAnimation();
}
private function waitFor(_arg1:String):void{
_waitFunction = _arg1;
PAUSE.startTimer(1);
PAUSE.addEventListener("timer_finished", waitForKey, false, 0, true);
}
private function checkCollision(_arg1, _arg2):Boolean{
return (HIT_TEST.complexHitTestObject(_arg1, _arg2));
}
private function stopGame():void{
if (_finalAnimation){
this.removeChild(_finalAnimation);
_finalAnimation = null;
};
if (TIMER2){
TIMER2.removeEventListener(TimerEvent.TIMER, enableScore);
};
if (this.contains(ANIMATOR)){
diactivateAnimation();
};
if (Global.obj.SCORE_PANEL){
removeScorePanel();
};
stopLoop();
removeLevelElements();
if (_bgObj2){
this.removeChild(_bgObj2);
};
_bgObj2 = null;
_startSpeed = _baseSpeed;
_scoreOff = false;
_speed = _startSpeed;
_turbos = 0;
_health = _maxHealth;
_gameLevel = 1;
_endReached = false;
_distance = 0;
_bonusMult = 0;
removeChild(_scoreAnimations);
_scoreAnimations = new MovieClip();
if (_topPanel){
removeChild(_topPanel);
};
}
private function addSection(_arg1:int):void{
var _local2:int;
if (this[("_section" + _arg1)]){
this.removeChild(this[("_section" + _arg1)]);
};
this[("_section" + _arg1)] = new Sprite();
_local2 = UTILS.randRange(0, 3);
if (_local2 != 0){
_local2 = (_local2 + _gameLevel);
};
if (_endReached == true){
_local2 = 100;
};
if ((((_endReached == true)) && ((_gameLevel == _endLevel)))){
_local2 = 1000;
_gameComplete = true;
};
if ((((_endReached == true)) && ((_gameLevel == AppVariables.BONUS_LEVEL)))){
_local2 = 10000;
};
addClip(("section_" + _local2), 0, 0, ("SECTION_" + _arg1), this[("_section" + _arg1)], ("SECTION_" + _local2));
this.addChild(this[("_section" + _arg1)]);
this[("_section" + _arg1)].x = 760;
this[("_section" + _arg1)].y = 400;
orderSprites();
}
private function checkHitObjects():void{
var _local1:int;
var _local2:Boolean;
var _local3:*;
var _local4:*;
var _local5:DisplayObject;
if (_section1){
_local1 = SECTION.numChildren;
_local2 = false;
_local3 = 0;
while (_local3 < _local1) {
if (_gameOver){
return;
};
_local4 = SECTION.getChildAt(_local3);
if (_local4.name == "spIntel"){
_local4.x = (_local4.x + 1);
};
if (checkCollision(MAN_SPRITE, _local4)){
if ((((_local4.name == "wall")) && (checkCollision(MAN_SPRITE, _local4.mcWallHit)))){
if (ANIMATOR._manStatus != "kick2"){
_local2 = true;
};
hitWall(_local4);
};
if (_local4.name.indexOf("avoid") != -1){
_local2 = true;
};
if (_local4.name == "spIntel"){
grabTurbo(_local4);
};
};
if (_local4.name == "wall"){
if (checkCollision(_bgObj1, _local4.mcWallHit)){
_bgObj1.visible = false;
};
};
if ((((_local2 == true)) && ((_health > 0)))){
takeDamage();
};
if (_gameOver){
return;
};
_local3++;
};
};
if (_gameOver){
return;
};
if (_bgObj1){
_local5 = _bgObj1.getChildAt(0);
if (((((checkCollision(MAN_SPRITE, _local5)) && ((_local5.name == "OBJECT_8")))) && ((ANIMATOR._manStatus == "high5")))){
high5();
};
};
if (_gameOver){
return;
};
if (((_plane) && ((_health > 0)))){
if (checkCollision(MAN_SPRITE, _plane)){
takeDamage();
};
};
}
private function orderSprites():void{
if (((_section1) && ((_gameComplete == true)))){
this.addChild(_section1);
};
addChild(ANIMATOR);
addChild(FLAME);
addChild(_scoreAnimations);
if (((_section1) && ((_gameComplete == false)))){
this.addChild(_section1);
};
if (_plane){
this.addChild(_plane);
};
addChild(_topPanel);
}
private function grabTurbo(_arg1:DisplayObject):void{
_arg1.visible = false;
_arg1.y = 10000;
_turbos++;
mcTurbos.gotoAndStop((_turbos + 1));
if (_turbos == 3){
ANIMATOR._turboOn = true;
};
SOUND_PLAYER.playSound("ping");
}
private function startBonusAnimation():void{
trackString("played_level_bonus");
_distance = 0;
suspendOriginalGame();
addFlyingRocketMan();
BONUS_ANIMATOR.zoomOut();
SECTION.mcSkyline.startMoving();
SECTION.mcStars.startMoving();
SECTION.mcSanta.play();
SECTION.mcSanta.addEventListener("santa_animation_finished", santaAnimationFinished, false, 0, true);
}
public function loadSettings(_arg1:String):void{
var _local2:*;
_local2 = new XMLLoader((_arg1 + "settings.xml"), false, false);
_local2.addEventListener("XMLloaded", settingsCompleteXML);
}
private function addFlyingRocketMan():void{
BONUS_ANIMATOR = new ManAnimationBonus();
this.addChild(BONUS_ANIMATOR);
BONUS_ANIMATOR.animate("travel");
}
private function whenAddedToList(_arg1:Event):void{
this.removeEventListener(Event.ADDED_TO_STAGE, whenAddedToList);
Global.obj.GAME = this;
this.addEventListener(MouseEvent.MOUSE_DOWN, clickSelect, false, 0, true);
}
public function showInstructions():void{
this.gotoAndStop("instructions");
}
private function relocateANIMATOR():void{
this.addChild(ANIMATOR);
this.addChild(FLAME);
}
private function addObject(_arg1:int):void{
var _local2:int;
if (this[("_bgObj" + _arg1)]){
this.removeChild(this[("_bgObj" + _arg1)]);
};
this[("_bgObj" + _arg1)] = new Sprite();
_local2 = UTILS.randRange(1, _bgTotalObjects);
addClip(("bg_" + _local2), 0, 0, ("OBJECT_" + _arg1), this[("_bgObj" + _arg1)], ("OBJECT_" + _local2));
this.addChild(this[("_bgObj" + _arg1)]);
this[("_bgObj" + _arg1)].x = 760;
this[("_bgObj" + _arg1)].y = 400;
orderSprites();
}
private function santaAnimationFinished(_arg1:Event):void{
SECTION.mcSanta.removeEventListener("santa_animation_finished", santaAnimationFinished);
this.addEventListener(Event.ENTER_FRAME, bonusGameLoop, false, 0, true);
BONUS_ANIMATOR.setupKeys();
trace("start bonus game!");
}
private function moveSections():void{
if ((((mcCarpet.x <= -750)) && (!(_section1)))){
addSection(1);
};
if (_section1){
_section1.x = (_section1.x - _speed);
if ((((_section1.x <= 0)) && ((_section1.getChildAt(0).name == "SECTION_100")))){
levelFinished();
};
if ((((_section1.x <= 0)) && ((_section1.getChildAt(0).name == "SECTION_1000")))){
startFinalAnimation();
};
if ((((_section1.x <= 100)) && ((_section1.getChildAt(0).name == "SECTION_10000")))){
relocateANIMATOR();
};
if ((((_section1.x <= -820)) && ((_section1.getChildAt(0).name == "SECTION_10000")))){
startBonusAnimation();
};
if ((((_section1.x < -(_section1.width))) && (!((_section1.getChildAt(0).name == "SECTION_10000"))))){
removeSection(1);
};
};
}
public function playGame():void{
this.gotoAndStop("game");
}
private function get MAN_SPRITE():MovieClip{
return ((Global.obj.MAN_SPRITE as MovieClip));
}
private function gameComplete(_arg1:Event=null):void{
if (_finalAnimation){
_finalAnimation.removeEventListener("animation_finished", gameComplete);
};
waitFor("key_pressed");
trackString("game_complete");
}
public function showSubmit():void{
this.gotoAndStop("enter_score");
}
private function flashObject(_arg1:DisplayObject):void{
UTILS.colourC(_arg1, 0xFF, -255, -255);
_arg1.addEventListener(Event.ENTER_FRAME, removeFlash, false, 0, true);
}
private function waitForKey(_arg1:Event=null):void{
PAUSE.resetTimer();
if (_waitFunction == "key_pressed"){
addClip("mc_score_panel", 0, 0, "SCORE_PANEL");
};
stage.addEventListener(KeyboardEvent.KEY_UP, keyUpListener, false, 0, true);
}
public function manHitSnowball():void{
_bonusMult = 0;
if (MULT_TEXT){
MULT_TEXT.txtMult.text = "";
};
SOUND_PLAYER.playSound("grunt");
_health = (_health - AppVariables.SNOWBALL_DAMAGE);
if (mcHealthBar){
mcHealthBar.setHealth(_health, _maxHealth);
};
if (MAN_SPRITE){
flashObject(MAN_SPRITE);
};
if (_health <= 0){
endBonusGame();
};
}
public function trackString(_arg1:String):void{
var _local2:int;
if (_trackingStatus){
_local2 = 0;
while (_local2 < _googleTrackers.length) {
trace("*** TRACK EVENT *** :", _arg1);
AnalyticsTracker(_googleTrackers[_local2][0]).trackPageview(_arg1);
_local2++;
};
};
}
private function addClip(_arg1:String, _arg2:int, _arg3:int, _arg4:String=null, _arg5=null, _arg6=null):void{
var ClassReference:Class;
var $instance:DisplayObject;
var $clip = _arg1;
var $x = _arg2;
var $y = _arg3;
var $GlobalRef = _arg4;
var $destination = _arg5;
var $name = _arg6;
try {
ClassReference = (getDefinitionByName($clip) as Class);
} catch(event:ReferenceError) {
trace(($clip + " could not be found in library"));
return;
};
$instance = new (ClassReference);
if ($name){
$instance.name = $name;
} else {
$instance.name = $clip;
};
if ($GlobalRef != null){
Global.obj[$GlobalRef] = $instance;
};
$instance.x = $x;
$instance.y = $y;
if ($destination){
$destination.addChild($instance);
} else {
this.addChild($instance);
};
}
function closeFacebookLike(){
try {
if (ExternalInterface.available){
ExternalInterface.call("closeLike()");
};
} catch(error:Error) {
trace(("Error catch: " + error));
};
}
public function showHighScore():void{
this.gotoAndStop("high_score");
}
private function startFinalAnimation():void{
_finalAnimation = new mc_end_animation();
this.addChild(_finalAnimation);
_finalAnimation.addEventListener("animation_finished", gameComplete, false, 0, true);
_section1.x = 0;
pauseGame();
}
private function updateDisplay():void{
if (txtScore){
txtScore.text = _score.toString();
};
}
private function removeSection(_arg1:int):void{
if (this[("_section" + _arg1)]){
this.removeChild(this[("_section" + _arg1)]);
};
_section1 = null;
}
private function checkForSnowball():void{
var _local1:int;
_local1 = (AppVariables.DIFFICULTY - _gameLevel);
if (UTILS.randRange(1, _local1) <= 1){
BONUS_ANIMATOR.SNOWBALL_CREATOR.createSnowball();
};
}
private function removeFlash(_arg1:Event):void{
_arg1.target.removeEventListener(Event.ENTER_FRAME, removeFlash);
UTILS.colourC(_arg1.target, 0, 0, 0);
}
function openShare(_arg1:Event=null){
trace("share");
_share.alternateVisibility();
}
private function increaseBonusMult():void{
if (_bonusMult < 10){
_bonusMult++;
};
if (!MULT_TEXT){
MULT_TEXT = new txtBonusMult();
this.addChild(MULT_TEXT);
MULT_TEXT.x = 10;
MULT_TEXT.y = 370;
};
if (_bonusMult > 1){
MULT_TEXT.txtMult.text = ("x" + _bonusMult.toString());
};
}
private function stopLoop():void{
_gameOver = true;
this.removeEventListener(Event.ENTER_FRAME, mainLoop);
}
private function suspendOriginalGame():void{
stopLoop();
if (_plane){
removePlane();
};
diactivateAnimation();
}
private function activateAnimation():void{
this.addChild(ANIMATOR);
this.addChild(FLAME);
ANIMATOR.setupKeys();
ANIMATOR.animate("travel");
ANIMATOR.addEventListener("turbo", turbo, false, 0, true);
}
private function checkBonusGameDistance():void{
_distance++;
addScore(1);
mcDistance.updateDistance(_distance, AppVariables.BONUS_LEVEL_DISTANCE);
if (_distance == AppVariables.BONUS_LEVEL_DISTANCE){
_distance = 0;
_gameLevel++;
txtLevel.text = _gameLevel.toString();
};
}
private function newLevel():void{
SoundMixer.stopAll();
if (_gameLevel == _endLevel){
gameOver();
return;
};
SOUND_PLAYER.playSound("rocket_loop", 0.3, true, true);
mcCarpet.play();
if (Global.obj.SCORE_PANEL){
removeScorePanel();
};
_scorePanel = null;
_endReached = false;
removeLevelElements();
mcTurbos.gotoAndStop((_turbos + 1));
_gameLevel++;
trackString(("played_level_" + _gameLevel));
if ((((((((_gameLevel == 3)) || ((_gameLevel == 5)))) || ((_gameLevel == 7)))) || ((_gameLevel == 9)))){
_startSpeed++;
};
_speed = _startSpeed;
trace("starting level", _gameLevel);
_distance = 0;
mcDistance.resetTrack();
_planeChance = (200 - (_gameLevel * 15));
activateAnimation();
startLoop();
txtLevel.text = _gameLevel.toString();
}
public function addPresentScore():void{
var _local1:int;
var _local2:mcScoreRiseBonus;
increaseBonusMult();
_local1 = ((AppVariables.BASE_SCORE * _gameLevel) * _bonusMult);
Global.obj.lastBonus = _local1;
addScore(_local1);
SOUND_PLAYER.playSound("ping");
_local2 = new mcScoreRiseBonus();
_scoreAnimations.addChild(_local2);
_local2.x = BONUS_ANIMATOR.MAN_SPRITE.x;
_local2.y = BONUS_ANIMATOR.MAN_SPRITE.y;
this.addChild(_scoreAnimations);
}
private function gameOver():void{
SoundMixer.stopAll();
Global.obj.CURRENT_SCORE = _score;
stopGame();
showSubmit();
}
private function checkFacebook():void{
VarLoader.loadFlashVars(stage);
trace("VarLoader.DATA.fb_id", VarLoader.DATA.fb_id);
if (VarLoader.DATA.fb_id){
Global.obj.FB_ID = VarLoader.DATA.fb_id;
trackString("played_in_facebook");
};
}
private function checkDistance():void{
var _local1:int;
var _local2:int;
_local1 = 1;
if (_turboOn){
_local1 = 5;
};
if (_distance < _totalDistance){
_distance = (_distance + _local1);
};
if (_distance > _totalDistance){
_distance = _totalDistance;
};
mcDistance.updateDistance(_distance, _totalDistance);
if ((((((_distance == _totalDistance)) && ((_gameLevel <= 10)))) && ((_endReached == false)))){
_endReached = true;
if (_plane){
_plane.turboAway(2);
};
};
_local2 = _gameLevel;
if (_turboOn){
_local2 = (_local2 * 15);
};
addScore(_local2);
}
private function diactivateAnimation():void{
this.removeEventListener(Event.ENTER_FRAME, mainLoop);
this.removeChild(FLAME);
this.removeChild(ANIMATOR);
ANIMATOR.removeKeys();
ANIMATOR.removeEventListener("turbo", turbo);
ANIMATOR.resetMan();
if (_turboOn == true){
stopTimer();
};
}
private function moveBackground():void{
mcCarpet.x = (mcCarpet.x - _speed);
if (mcCarpet.x <= -760){
mcCarpet.x = 0;
};
}
private function link(_arg1:String, _arg2:String){
var url:String;
var request:URLRequest;
var pURL = _arg1;
var pTarget = _arg2;
url = pURL;
request = new URLRequest(url);
try {
navigateToURL(request, pTarget);
} catch(e:Error) {
trace(("Unable to open web page " + pURL));
};
}
private function mainLoop(_arg1:Event):void{
moveBackground();
moveObjects();
moveSections();
checkDistance();
trackMan();
trackFlame();
checkPlane();
checkHitObjects();
updateDisplay();
}
}
}//package
Section 182
//ScorePanel (ScorePanel)
package {
import flash.display.*;
import flash.text.*;
import flash.events.*;
public class ScorePanel extends MovieClip {
public var txtScore:TextField;
public var txtComplete:TextField;
public function ScorePanel():void{
this.addEventListener(Event.ADDED_TO_STAGE, whenAddedToList, false, 0, true);
}
private function whenAddedToList(_arg1:Event):void{
this.removeEventListener(Event.ADDED_TO_STAGE, whenAddedToList);
if (LEVEL == END_LEVEL){
txtComplete.text = "CONGRATULATIONS! GAME COMPLETE";
} else {
txtComplete.text = (("LEVEL " + LEVEL) + " COMPLETE");
};
txtScore.text = ("SCORE: " + SCORE);
}
private function get LEVEL():int{
return ((Global.obj.GAME._gameLevel as int));
}
private function get SCORE():int{
return ((Global.obj.GAME._score as int));
}
private function get END_LEVEL():int{
return ((Global.obj.GAME._endLevel as int));
}
}
}//package
Section 183
//section_0 (section_0)
package {
import flash.display.*;
public dynamic class section_0 extends MovieClip {
public var spIntel:MovieClip;
}
}//package
Section 184
//section_1 (section_1)
package {
import flash.display.*;
public dynamic class section_1 extends MovieClip {
public var avoid1:MovieClip;
}
}//package
Section 185
//section_10 (section_10)
package {
import flash.display.*;
public dynamic class section_10 extends MovieClip {
public var avoid2:MovieClip;
public var avoid1:MovieClip;
public var wall:MovieClip;
}
}//package
Section 186
//section_100 (section_100)
package {
import flash.display.*;
public dynamic class section_100 extends MovieClip {
public var mcLift:MovieClip;
}
}//package
Section 187
//section_1000 (section_1000)
package {
import flash.display.*;
public dynamic class section_1000 extends MovieClip {
public var wall:MovieClip;
}
}//package
Section 188
//section_10000 (section_10000)
package {
import flash.display.*;
public dynamic class section_10000 extends MovieClip {
public var mcSkyline:sp_skyline;
public var mcSanta:MovieClip;
public var mcStars:mc_stars_animating;
public var wall:MovieClip;
public var mc_snowball_holder:MovieClip;
}
}//package
Section 189
//section_11 (section_11)
package {
import flash.display.*;
public dynamic class section_11 extends MovieClip {
public var avoid2:MovieClip;
public var avoid1:MovieClip;
public var wall:MovieClip;
}
}//package
Section 190
//section_12 (section_12)
package {
import flash.display.*;
public dynamic class section_12 extends MovieClip {
public var avoid2:MovieClip;
public var avoid1:MovieClip;
public var wall:MovieClip;
}
}//package
Section 191
//section_13 (section_13)
package {
import flash.display.*;
public dynamic class section_13 extends MovieClip {
public var avoid2:MovieClip;
public var avoid4:MovieClip;
public var avoid1:MovieClip;
public var avoid3:MovieClip;
public var wall:MovieClip;
}
}//package
Section 192
//section_2 (section_2)
package {
import flash.display.*;
public dynamic class section_2 extends MovieClip {
public var wall:MovieClip;
}
}//package
Section 193
//section_3 (section_3)
package {
import flash.display.*;
public dynamic class section_3 extends MovieClip {
public var avoid1:MovieClip;
}
}//package
Section 194
//section_4 (section_4)
package {
import flash.display.*;
public dynamic class section_4 extends MovieClip {
public var avoid1:MovieClip;
}
}//package
Section 195
//section_5 (section_5)
package {
import flash.display.*;
public dynamic class section_5 extends MovieClip {
public var avoid1:MovieClip;
public var wall:MovieClip;
}
}//package
Section 196
//section_6 (section_6)
package {
import flash.display.*;
public dynamic class section_6 extends MovieClip {
public var avoid1:MovieClip;
public var wall:MovieClip;
}
}//package
Section 197
//section_7 (section_7)
package {
import flash.display.*;
public dynamic class section_7 extends MovieClip {
public var avoid2:MovieClip;
public var avoid1:MovieClip;
}
}//package
Section 198
//section_8 (section_8)
package {
import flash.display.*;
public dynamic class section_8 extends MovieClip {
public var avoid2:MovieClip;
public var avoid1:MovieClip;
}
}//package
Section 199
//section_9 (section_9)
package {
import flash.display.*;
public dynamic class section_9 extends MovieClip {
public var avoid2:MovieClip;
public var avoid1:MovieClip;
public var avoid3:MovieClip;
}
}//package
Section 200
//SkylineController (SkylineController)
package {
import flash.display.*;
import fl.transitions.*;
import fl.transitions.easing.*;
public class SkylineController extends MovieClip {
private var _tweenY:Tween;
private var _startX:int;
private var _tweenX:Tween;
public function SkylineController():void{
_startX = this.x;
}
private function endMoveUp(_arg1:TweenEvent):void{
_arg1.target.removeEventListener(TweenEvent.MOTION_FINISH, endMoveUp);
}
public function moveUp():void{
var _local1:Number;
_local1 = 10;
_tweenY = new Tween(this, "y", None.easeNone, this.y, -20, _local1, false);
_tweenY.addEventListener(TweenEvent.MOTION_FINISH, endMoveUp, false, 0, true);
}
public function startMoving():void{
var _local1:Number;
_local1 = 300;
_tweenX = new Tween(this, "x", None.easeNone, _startX, 0, _local1, false);
_tweenX.addEventListener(TweenEvent.MOTION_FINISH, endMove, false, 0, true);
}
private function endMove(_arg1:TweenEvent):void{
_arg1.target.removeEventListener(TweenEvent.MOTION_FINISH, endMove);
this.x = _startX;
startMoving();
}
}
}//package
Section 201
//Snowball (Snowball)
package {
import flash.display.*;
import flash.events.*;
import classAssets.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
public class Snowball extends MovieClip {
private var _tweenRotation:Tween;
private var _speed:int;// = 150
private var _tweenY:Tween;
private var _presentRef:int;
private var _tweenX:Tween;
private var UTILS:GameUtils;
private var _spread:int;// = 100
private var _endY:int;
private var _endX:int;
private var HIT_TEST:HitTest;
public function Snowball():void{
_spread = 100;
_speed = 150;
UTILS = new GameUtils();
HIT_TEST = new HitTest();
super();
determineStartPoint();
startMoving();
Listener.CONTROLLER.addEventListener("kill_all", kill, false, 0, true);
}
private function determineStartPoint():void{
var _local1:int;
_local1 = UTILS.randRange(1, 4);
switch (_local1){
case 1:
this.x = UTILS.randRange(PLAYAREA_LEFT, PLAYAREA_RIGHT);
this.y = (PLAYAREA_TOP - this.height);
_endX = (this.x + UTILS.randRange(-(_spread), -(_spread)));
_endY = (PLAYAREA_BOTTOM + this.height);
break;
case 2:
this.x = UTILS.randRange(PLAYAREA_LEFT, PLAYAREA_RIGHT);
this.y = (PLAYAREA_BOTTOM + this.height);
_endX = UTILS.randRange((0 - _spread), (0 - _spread));
_endY = (PLAYAREA_TOP - this.height);
break;
case 3:
this.x = (PLAYAREA_LEFT - this.width);
this.y = UTILS.randRange(PLAYAREA_TOP, PLAYAREA_BOTTOM);
_endX = (PLAYAREA_RIGHT + this.width);
_endY = (this.y + UTILS.randRange(-(_spread), -(_spread)));
break;
case 4:
this.x = (PLAYAREA_RIGHT + this.width);
this.y = UTILS.randRange(PLAYAREA_TOP, PLAYAREA_BOTTOM);
_endX = (PLAYAREA_LEFT - this.width);
_endY = (this.y + UTILS.randRange(-(_spread), -(_spread)));
break;
};
}
private function get PLAYAREA_RIGHT():int{
return ((AppVariables.PRESENT_START_POINT as int));
}
private function checkCollision(_arg1, _arg2):Boolean{
return (HIT_TEST.complexHitTestObject(_arg1, _arg2));
}
private function endMove(_arg1:TweenEvent):void{
_arg1.target.removeEventListener(TweenEvent.MOTION_FINISH, endMove);
_arg1.target.removeEventListener(TweenEvent.MOTION_CHANGE, checkHit);
}
public function startMoving():void{
var _local1:int;
_local1 = _speed;
_tweenX = new Tween(this, "x", None.easeNone, this.x, _endX, _local1, false);
_tweenY = new Tween(this, "y", None.easeNone, this.y, _endY, _local1, false);
_tweenX.addEventListener(TweenEvent.MOTION_FINISH, endMove, false, 0, true);
_tweenX.addEventListener(TweenEvent.MOTION_CHANGE, checkHit, false, 0, true);
}
private function get PLAYAREA_BOTTOM():int{
return (((1.2 * AppVariables.PLAYAREA_BOTTOM) as int));
}
public function get MAN_SPRITE():MovieClip{
return ((Global.obj.MAN_SPRITE as MovieClip));
}
private function checkHit(_arg1:TweenEvent):void{
if (checkCollision(this, MAN_SPRITE.mcMan)){
Global.obj.GAME.manHitSnowball();
kill();
this.dispatchEvent(new Event("hit_snowball"));
};
}
private function kill(_arg1:Event=null):void{
Listener.CONTROLLER.removeEventListener("kill_all", kill);
if (_tweenX){
_tweenX.stop();
_tweenX.removeEventListener(TweenEvent.MOTION_FINISH, endMove);
_tweenX.removeEventListener(TweenEvent.MOTION_CHANGE, checkHit);
};
if (_tweenY){
_tweenY.stop();
};
if (_tweenRotation){
_tweenRotation.stop();
_tweenRotation.removeEventListener(TweenEvent.MOTION_FINISH, endRotation);
};
}
private function endRotation(_arg1:TweenEvent):void{
_arg1.target.removeEventListener(TweenEvent.MOTION_FINISH, endRotation);
startRotating();
}
private function get PLAYAREA_TOP():int{
return (((1.2 * AppVariables.PLAYAREA_TOP) as int));
}
private function get PLAYAREA_LEFT():int{
return ((AppVariables.PRESENT_END_POINT as int));
}
private function addSprite():void{
var _local1:int;
var _local2:Class;
var _local3:MovieClip;
_local1 = UTILS.randRange(1, 5);
_local2 = (getDefinitionByName(("xmas_present_00" + _local1)) as Class);
_local3 = new (_local2);
this.removeChild(getChildAt(0));
this.addChild(_local3);
}
public function startRotating():void{
var _local1:Number;
_local1 = 50;
_tweenRotation = new Tween(this, "rotation", None.easeNone, 0, 360, _local1, false);
_tweenRotation.addEventListener(TweenEvent.MOTION_FINISH, endRotation, false, 0, true);
}
}
}//package
Section 202
//SnowballCreator (SnowballCreator)
package {
import flash.display.*;
import flash.events.*;
public class SnowballCreator extends MovieClip {
public function SnowballCreator():void{
}
public function createSnowball():void{
var _local1:mc_snowball;
_local1 = new mc_snowball();
this.addChild(_local1);
_local1.addEventListener("hit_snowball", removeSnowball, false, 0, true);
}
private function removeSnowball(_arg1:Event):void{
var _local2:*;
_local2 = _arg1.target;
_local2.removeEventListener("hit_snowball", removeSnowball);
this.removeChild(_local2);
_local2 = null;
}
}
}//package
Section 203
//sp_skyline (sp_skyline)
package {
public dynamic class sp_skyline extends SkylineController {
}
}//package
Section 204
//StarController (StarController)
package {
import flash.display.*;
import fl.transitions.*;
import fl.transitions.easing.*;
public class StarController extends MovieClip {
private var _startX:int;
private var _tweenX:Tween;
public function StarController():void{
_startX = this.x;
}
private function endMove(_arg1:TweenEvent):void{
_arg1.target.removeEventListener(TweenEvent.MOTION_FINISH, endMove);
this.x = _startX;
startMoving();
}
public function startMoving():void{
var _local1:Number;
_local1 = 600;
_tweenX = new Tween(this, "x", None.easeNone, _startX, 54, _local1, false);
_tweenX.addEventListener(TweenEvent.MOTION_FINISH, endMove, false, 0, true);
}
}
}//package
Section 205
//thump (thump)
package {
import flash.media.*;
public dynamic class thump extends Sound {
}
}//package
Section 206
//turbo (turbo)
package {
import flash.media.*;
public dynamic class turbo extends Sound {
}
}//package
Section 207
//txtBonusMult (txtBonusMult)
package {
import flash.display.*;
import flash.text.*;
public dynamic class txtBonusMult extends MovieClip {
public var txtMult:TextField;
}
}//package
Section 208
//xmas_present_001 (xmas_present_001)
package {
import flash.display.*;
public dynamic class xmas_present_001 extends MovieClip {
}
}//package
Section 209
//xmas_present_002 (xmas_present_002)
package {
import flash.display.*;
public dynamic class xmas_present_002 extends MovieClip {
}
}//package
Section 210
//xmas_present_003 (xmas_present_003)
package {
import flash.display.*;
public dynamic class xmas_present_003 extends MovieClip {
}
}//package
Section 211
//xmas_present_004 (xmas_present_004)
package {
import flash.display.*;
public dynamic class xmas_present_004 extends MovieClip {
}
}//package
Section 212
//xmas_present_005 (xmas_present_005)
package {
import flash.display.*;
public dynamic class xmas_present_005 extends MovieClip {
}
}//package
Section 213
//XMLLoader (XMLLoader)
package {
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.xml.*;
public class XMLLoader extends MovieClip {
private var xmlLoader:URLLoader;
public var xmlData:XML;
private var _display:Boolean;
public function XMLLoader(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false):void{
xmlLoader = new URLLoader();
xmlData = new XML();
super();
_display = _arg3;
if (_arg2 == true){
_arg1 = ((_arg1 + "?r=") + new Date().getTime());
};
configureListeners(xmlLoader);
xmlLoader.load(new URLRequest(_arg1));
}
private function httpStatusHandler(_arg1:HTTPStatusEvent):void{
trace(("httpStatusHandler: " + _arg1));
}
private function progressHandler(_arg1:ProgressEvent):void{
trace(((("progressHandler loaded:" + _arg1.bytesLoaded) + " total: ") + _arg1.bytesTotal));
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
trace(("ioErrorHandler: " + _arg1));
}
private function securityErrorHandler(_arg1:SecurityErrorEvent):void{
trace(("securityErrorHandler: " + _arg1));
}
private function openHandler(_arg1:Event):void{
trace(("openHandler: " + _arg1));
}
private function completeHandler(_arg1:Event):void{
var _local2:URLLoader;
_local2 = URLLoader(_arg1.target);
XML.ignoreWhitespace = true;
xmlData = new XML(_arg1.target.data);
if (_display == true){
trace(("completeHandler: " + _local2.data));
};
this.dispatchEvent(new Event("XMLloaded"));
}
private function configureListeners(_arg1:IEventDispatcher):void{
_arg1.addEventListener(Event.COMPLETE, completeHandler);
_arg1.addEventListener(Event.OPEN, openHandler);
_arg1.addEventListener(ProgressEvent.PROGRESS, progressHandler);
_arg1.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
_arg1.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
_arg1.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
}
}
}//package