Section 1
//CampaignInfo (com.google.analytics.campaign.CampaignInfo)
package com.google.analytics.campaign {
import com.google.analytics.utils.*;
public class CampaignInfo {
private var _new:Boolean;
private var _empty:Boolean;
public function CampaignInfo(_arg1:Boolean=true, _arg2:Boolean=false){
_empty = _arg1;
_new = _arg2;
}
public function isEmpty():Boolean{
return (_empty);
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
if (((!(isEmpty())) && (isNew()))){
_local1.utmcn = utmcn;
};
if (((!(isEmpty())) && (!(isNew())))){
_local1.utmcr = utmcr;
};
return (_local1);
}
public function isNew():Boolean{
return (_new);
}
public function get utmcn():String{
return ("1");
}
public function get utmcr():String{
return ("1");
}
}
}//package com.google.analytics.campaign
Section 2
//CampaignKey (com.google.analytics.campaign.CampaignKey)
package com.google.analytics.campaign {
public class CampaignKey {
public var UCMD:String;// = "utm_medium"
public var UCID:String;// = "utm_id"
public var UCTR:String;// = "utm_term"
public var UCSR:String;// = "utm_source"
public var UCNO:String;// = "utm_nooverride"
public var UCCN:String;// = "utm_campaign"
public var UGCLID:String;// = "gclid"
public var UCCT:String;// = "utm_content"
}
}//package com.google.analytics.campaign
Section 3
//CampaignManager (com.google.analytics.campaign.CampaignManager)
package com.google.analytics.campaign {
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import com.google.analytics.utils.*;
public class CampaignManager {
private var _config:Configuration;
private var _domainHash:Number;
private var _debug:DebugConfiguration;
private var _timeStamp:Number;
private var _referrer:String;
private var _buffer:Buffer;
public static const trackingDelimiter:String = "|";
public function CampaignManager(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Buffer, _arg4:Number, _arg5:String, _arg6:Number){
_config = _arg1;
_debug = _arg2;
_buffer = _arg3;
_domainHash = _arg4;
_referrer = _arg5;
_timeStamp = _arg6;
}
public function hasNoOverride(_arg1:String):Boolean{
var _local2:CampaignKey;
var _local3:Variables;
var _local4:String;
_local2 = _config.campaignKey;
if (_arg1 == ""){
return (false);
};
_local3 = new Variables(_arg1);
_local4 = "";
if (_local3.hasOwnProperty(_local2.UCNO)){
_local4 = _local3[_local2.UCNO];
switch (_local4){
case "1":
return (true);
case "":
case "0":
default:
return (false);
};
};
return (false);
}
public function getCampaignInformation(_arg1:String, _arg2:Boolean):CampaignInfo{
var _local3:CampaignInfo;
var _local4:CampaignTracker;
var _local5:Boolean;
var _local6:Boolean;
var _local7:int;
var _local8:CampaignTracker;
var _local9:int;
_local3 = new CampaignInfo();
_local5 = false;
_local6 = false;
_local7 = 0;
if (((_config.allowLinker) && (_buffer.isGenuine()))){
if (!_buffer.hasUTMZ()){
return (_local3);
};
};
_local4 = getTrackerFromSearchString(_arg1);
if (isValid(_local4)){
_local6 = hasNoOverride(_arg1);
if (((_local6) && (!(_buffer.hasUTMZ())))){
return (_local3);
};
};
if (!isValid(_local4)){
_local4 = getOrganicCampaign();
if (((!(_buffer.hasUTMZ())) && (isIgnoredKeyword(_local4)))){
return (_local3);
};
};
if (((!(isValid(_local4))) && (_arg2))){
_local4 = getReferrerCampaign();
if (((!(_buffer.hasUTMZ())) && (isIgnoredReferral(_local4)))){
return (_local3);
};
};
if (!isValid(_local4)){
if (((!(_buffer.hasUTMZ())) && (_arg2))){
_local4 = getDirectCampaign();
};
};
if (!isValid(_local4)){
return (_local3);
};
if (((_buffer.hasUTMZ()) && (!(_buffer.utmz.isEmpty())))){
_local8 = new CampaignTracker();
_local8.fromTrackerString(_buffer.utmz.campaignTracking);
_local5 = (_local8.toTrackerString() == _local4.toTrackerString());
_local7 = _buffer.utmz.responseCount;
};
if (((!(_local5)) || (_arg2))){
_local9 = _buffer.utma.sessionCount;
_local7++;
if (_local9 == 0){
_local9 = 1;
};
_buffer.utmz.domainHash = _domainHash;
_buffer.utmz.campaignCreation = _timeStamp;
_buffer.utmz.campaignSessions = _local9;
_buffer.utmz.responseCount = _local7;
_buffer.utmz.campaignTracking = _local4.toTrackerString();
_debug.info(_buffer.utmz.toString(), VisualDebugMode.geek);
_local3 = new CampaignInfo(false, true);
} else {
_local3 = new CampaignInfo(false, false);
};
return (_local3);
}
public function isValid(_arg1:CampaignTracker):Boolean{
if (((_arg1) && (_arg1.isValid()))){
return (true);
};
return (false);
}
public function getTrackerFromSearchString(_arg1:String):CampaignTracker{
var _local2:CampaignTracker;
var _local3:CampaignTracker;
var _local4:CampaignKey;
var _local5:Variables;
_local2 = getOrganicCampaign();
_local3 = new CampaignTracker();
_local4 = _config.campaignKey;
if (_arg1 == ""){
return (_local3);
};
_local5 = new Variables(_arg1);
if (_local5.hasOwnProperty(_local4.UCID)){
_local3.id = _local5[_local4.UCID];
};
if (_local5.hasOwnProperty(_local4.UCSR)){
_local3.source = _local5[_local4.UCSR];
};
if (_local5.hasOwnProperty(_local4.UGCLID)){
_local3.clickId = _local5[_local4.UGCLID];
};
if (_local5.hasOwnProperty(_local4.UCCN)){
_local3.name = _local5[_local4.UCCN];
} else {
_local3.name = "(not set)";
};
if (_local5.hasOwnProperty(_local4.UCMD)){
_local3.medium = _local5[_local4.UCMD];
} else {
_local3.medium = "(not set)";
};
if (_local5.hasOwnProperty(_local4.UCTR)){
_local3.term = _local5[_local4.UCTR];
} else {
if (((_local2) && (!((_local2.term == ""))))){
_local3.term = _local2.term;
};
};
if (_local5.hasOwnProperty(_local4.UCCT)){
_local3.content = _local5[_local4.UCCT];
};
return (_local3);
}
public function getOrganicCampaign():CampaignTracker{
var _local1:CampaignTracker;
var _local2:URL;
var _local3:String;
var _local4:Array;
var _local5:OrganicReferrer;
var _local6:String;
if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){
return (_local1);
};
_local2 = new URL(_referrer);
_local3 = "";
if (_local2.hostName != ""){
if (_local2.hostName.indexOf(".") > -1){
_local4 = _local2.hostName.split(".");
switch (_local4.length){
case 2:
_local3 = _local4[0];
break;
case 3:
_local3 = _local4[1];
break;
};
};
};
if (_config.organic.match(_local3)){
_local5 = _config.organic.getReferrerByName(_local3);
_local6 = _config.organic.getKeywordValue(_local5, _local2.search);
_local1 = new CampaignTracker();
_local1.source = _local5.engine;
_local1.name = "(organic)";
_local1.medium = "organic";
_local1.term = _local6;
};
return (_local1);
}
public function isIgnoredReferral(_arg1:CampaignTracker):Boolean{
if (((_arg1) && ((_arg1.medium == "referral")))){
return (_config.organic.isIgnoredReferral(_arg1.source));
};
return (false);
}
public function getDirectCampaign():CampaignTracker{
var _local1:CampaignTracker;
_local1 = new CampaignTracker();
_local1.source = "(direct)";
_local1.name = "(direct)";
_local1.medium = "(none)";
return (_local1);
}
public function isIgnoredKeyword(_arg1:CampaignTracker):Boolean{
if (((_arg1) && ((_arg1.medium == "organic")))){
return (_config.organic.isIgnoredKeyword(_arg1.term));
};
return (false);
}
public function getReferrerCampaign():CampaignTracker{
var _local1:CampaignTracker;
var _local2:URL;
var _local3:String;
var _local4:String;
if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){
return (_local1);
};
_local2 = new URL(_referrer);
_local3 = _local2.hostName;
_local4 = _local2.path;
if (_local3.indexOf("www.") == 0){
_local3 = _local3.substr(4);
};
_local1 = new CampaignTracker();
_local1.source = _local3;
_local1.name = "(referral)";
_local1.medium = "referral";
_local1.content = _local4;
return (_local1);
}
public static function isInvalidReferrer(_arg1:String):Boolean{
var _local2:URL;
if ((((((_arg1 == "")) || ((_arg1 == "-")))) || ((_arg1 == "0")))){
return (true);
};
if (_arg1.indexOf("://") > -1){
_local2 = new URL(_arg1);
if ((((_local2.protocol == Protocols.file)) || ((_local2.protocol == Protocols.none)))){
return (true);
};
};
return (false);
}
public static function isFromGoogleCSE(_arg1:String, _arg2:Configuration):Boolean{
var _local3:URL;
_local3 = new URL(_arg1);
if (_local3.hostName.indexOf(_arg2.google) > -1){
if (_local3.search.indexOf((_arg2.googleSearchParam + "=")) > -1){
if (_local3.path == ("/" + _arg2.googleCsePath)){
return (true);
};
};
};
return (false);
}
}
}//package com.google.analytics.campaign
Section 4
//CampaignTracker (com.google.analytics.campaign.CampaignTracker)
package com.google.analytics.campaign {
import com.google.analytics.utils.*;
public class CampaignTracker {
public var content:String;
public var source:String;
public var clickId:String;
public var name:String;
public var term:String;
public var medium:String;
public var id:String;
public function CampaignTracker(_arg1:String="", _arg2:String="", _arg3:String="", _arg4:String="", _arg5:String="", _arg6:String="", _arg7:String=""){
this.id = _arg1;
this.source = _arg2;
this.clickId = _arg3;
this.name = _arg4;
this.medium = _arg5;
this.term = _arg6;
this.content = _arg7;
}
public function isValid():Boolean{
if (((((!((id == ""))) || (!((source == ""))))) || (!((clickId == ""))))){
return (true);
};
return (false);
}
public function toTrackerString():String{
var _local1:Array = [];
_addIfNotEmpty(_local1, "utmcsr=", source);
_addIfNotEmpty(_local1, "utmccn=", name);
_addIfNotEmpty(_local1, "utmcmd=", medium);
_addIfNotEmpty(_local1, "utmctr=", term);
_addIfNotEmpty(_local1, "utmcct=", content);
_addIfNotEmpty(_local1, "utmcid=", id);
_addIfNotEmpty(_local1, "utmgclid=", clickId);
return (_local1.join(CampaignManager.trackingDelimiter));
}
private function _addIfNotEmpty(_arg1:Array, _arg2:String, _arg3:String):void{
if (_arg3 != ""){
_arg3 = _arg3.split("+").join("%20");
_arg3 = _arg3.split(" ").join("%20");
_arg1.push((_arg2 + _arg3));
};
}
public function fromTrackerString(_arg1:String):void{
var _local2:String = _arg1.split(CampaignManager.trackingDelimiter).join("&");
var _local3:Variables = new Variables(_local2);
if (_local3.hasOwnProperty("utmcid")){
this.id = _local3["utmcid"];
};
if (_local3.hasOwnProperty("utmcsr")){
this.source = _local3["utmcsr"];
};
if (_local3.hasOwnProperty("utmccn")){
this.name = _local3["utmccn"];
};
if (_local3.hasOwnProperty("utmcmd")){
this.medium = _local3["utmcmd"];
};
if (_local3.hasOwnProperty("utmctr")){
this.term = _local3["utmctr"];
};
if (_local3.hasOwnProperty("utmcct")){
this.content = _local3["utmcct"];
};
if (_local3.hasOwnProperty("utmgclid")){
this.clickId = _local3["utmgclid"];
};
}
}
}//package com.google.analytics.campaign
Section 5
//FlashTracker (com.google.analytics.components.FlashTracker)
package com.google.analytics.components {
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.events.*;
import flash.display.*;
import com.google.analytics.utils.*;
import com.google.analytics.external.*;
import com.google.analytics.*;
import flash.utils.*;
import com.google.analytics.events.*;
public class FlashTracker extends Sprite implements AnalyticsTracker {
private var _adSense:AdSenseGlobals;
private var _env:Environment;
protected var _height:Number;// = 18
private var _idleTimer:IdleTimer;
private var _config:Configuration;
private var _mode:String;// = "AS3"
private var _dom:HTMLDOM;
private var _ready:Boolean;// = false
protected var _width:Number;// = 18
private var _account:String;// = ""
protected var _componentInspectorSetting:Boolean;
private var _visualDebug:Boolean;// = false
public var boundingBox_mc:DisplayObject;
private var _debug:DebugConfiguration;
private var _buffer:Buffer;
private var _display:DisplayObject;
protected var livePreviewHeight:Number;
private var _jsproxy:JavascriptProxy;
protected var isLivePreview:Boolean;
protected var preview:MovieClip;
private var _gifRequest:GIFRequest;
protected var livePreviewWidth:Number;
private var _tracker:GoogleAnalyticsAPI;
public static var version:Version = API.version;
public function FlashTracker(){
_ready = false;
_account = "";
_mode = TrackerMode.AS3;
_visualDebug = false;
_width = 18;
_height = 18;
super();
_tracker = new TrackerCache();
isLivePreview = _checkLivePreview();
_componentInspectorSetting = false;
if (boundingBox_mc){
boundingBox_mc.visible = false;
removeChild(boundingBox_mc);
boundingBox_mc = null;
};
if (isLivePreview){
_createLivePreview();
};
addEventListener(Event.ENTER_FRAME, _factory);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
return (_tracker.trackEvent(_arg1, _arg2, _arg3, _arg4));
}
public function trackTrans():void{
_tracker.trackTrans();
}
private function _createLivePreview():void{
var _local1:Graphics;
var _local2:Class;
preview = new MovieClip();
_local1 = preview.graphics;
_local1.beginFill(0xFFFFFF);
_local1.moveTo(0, 0);
_local1.lineTo(0, _width);
_local1.lineTo(_width, _height);
_local1.lineTo(_height, 0);
_local1.lineTo(0, 0);
_local1.endFill();
_local2 = (getDefinitionByName("com.google.analytics.components::Icon") as Class);
preview.icon_mc = new (_local2);
preview.icon_mc.name = "icon_mc";
preview.addChild(preview.icon_mc);
addChild(preview);
}
public function trackPageview(_arg1:String=""):void{
_tracker.trackPageview(_arg1);
}
public function get account():String{
return (_account);
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_tracker.linkByPost(_arg1, _arg2);
}
public function getDetectTitle():Boolean{
return (_tracker.getDetectTitle());
}
public function setCampNameKey(_arg1:String):void{
_tracker.setCampNameKey(_arg1);
}
public function resetSession():void{
_tracker.resetSession();
}
public function set account(_arg1:String):void{
_account = _arg1;
}
public function get debug():DebugConfiguration{
if (!_debug){
_createDebugAndConfig();
};
return (_debug);
}
public function createEventTracker(_arg1:String):EventTracker{
return (_tracker.createEventTracker(_arg1));
}
public function set config(_arg1:Configuration):void{
_config = _arg1;
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
return (_tracker.addTrans(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8));
}
public function setLocalServerMode():void{
_tracker.setLocalServerMode();
}
public function getLocalGifPath():String{
return (_tracker.getLocalGifPath());
}
public function clearIgnoredRef():void{
_tracker.clearIgnoredRef();
}
public function isReady():Boolean{
return (_ready);
}
public function set debug(_arg1:DebugConfiguration):void{
_debug = _arg1;
}
public function getVersion():String{
return (_tracker.getVersion());
}
public function setLocalRemoteServerMode():void{
_tracker.setLocalRemoteServerMode();
}
public function setCampNOKey(_arg1:String):void{
_tracker.setCampNOKey(_arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
_tracker.addIgnoredOrganic(_arg1);
}
public function setCookiePath(_arg1:String):void{
_tracker.setCookiePath(_arg1);
}
public function setCampTermKey(_arg1:String):void{
_tracker.setCampTermKey(_arg1);
}
private function _trackerFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (AS3) v" + version) + "\naccount: ") + account));
_adSense = new AdSenseGlobals(debug);
_dom = new HTMLDOM(debug);
_dom.cacheProperties();
_env = new Environment("", "", "", debug, _dom);
_buffer = new Buffer(config, debug, false);
_gifRequest = new GIFRequest(config, debug, _buffer, _env);
_idleTimer = new IdleTimer(config, debug, _display, _buffer);
_env.url = _display.stage.loaderInfo.url;
return (new Tracker(account, config, debug, _env, _buffer, _gifRequest, _adSense));
}
public function setCampaignTrack(_arg1:Boolean):void{
_tracker.setCampaignTrack(_arg1);
}
public function getServiceMode():ServerOperationMode{
return (_tracker.getServiceMode());
}
public function set componentInspectorSetting(_arg1:Boolean):void{
_componentInspectorSetting = _arg1;
}
public function setSessionTimeout(_arg1:int):void{
_tracker.setSessionTimeout(_arg1);
}
public function setRemoteServerMode():void{
_tracker.setRemoteServerMode();
}
public function get visualDebug():Boolean{
return (_visualDebug);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_tracker.addOrganic(_arg1, _arg2);
}
public function setCookieTimeout(_arg1:int):void{
_tracker.setCookieTimeout(_arg1);
}
public function getClientInfo():Boolean{
return (_tracker.getClientInfo());
}
public function setAllowLinker(_arg1:Boolean):void{
_tracker.setAllowLinker(_arg1);
}
public function setClientInfo(_arg1:Boolean):void{
_tracker.setClientInfo(_arg1);
}
private function _bridgeFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (Bridge) v" + version) + "\naccount: ") + account));
return (new Bridge(account, _debug, _jsproxy));
}
public function get config():Configuration{
if (!_config){
_createDebugAndConfig();
};
return (_config);
}
public function set mode(_arg1:String):void{
_mode = _arg1;
}
public function setDetectFlash(_arg1:Boolean):void{
_tracker.setDetectFlash(_arg1);
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_tracker.addItem(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public function setVar(_arg1:String):void{
_tracker.setVar(_arg1);
}
public function clearIgnoredOrganic():void{
_tracker.clearIgnoredOrganic();
}
public function setDomainName(_arg1:String):void{
_tracker.setDomainName(_arg1);
}
private function _checkLivePreview():Boolean{
if (((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")))){
return (true);
};
return (false);
}
public function setCampSourceKey(_arg1:String):void{
_tracker.setCampSourceKey(_arg1);
}
public function setCampContentKey(_arg1:String):void{
_tracker.setCampContentKey(_arg1);
}
public function setSize(_arg1:Number, _arg2:Number):void{
}
public function setAllowAnchor(_arg1:Boolean):void{
_tracker.setAllowAnchor(_arg1);
}
public function setLocalGifPath(_arg1:String):void{
_tracker.setLocalGifPath(_arg1);
}
public function get mode():String{
return (_mode);
}
public function setSampleRate(_arg1:Number):void{
_tracker.setSampleRate(_arg1);
}
public function setAllowHash(_arg1:Boolean):void{
_tracker.setAllowHash(_arg1);
}
public function setDetectTitle(_arg1:Boolean):void{
_tracker.setDetectTitle(_arg1);
}
public function cookiePathCopy(_arg1:String):void{
_tracker.cookiePathCopy(_arg1);
}
private function _factory(_arg1:Event):void{
var _local2:GoogleAnalyticsAPI;
var _local3:TrackerCache;
removeEventListener(Event.ENTER_FRAME, _factory);
if (isLivePreview){
return;
};
_display = this;
_createDebugAndConfig();
if (visualDebug){
debug.layout = new Layout(debug, _display);
debug.active = visualDebug;
};
_jsproxy = new JavascriptProxy(debug);
_local3 = (_tracker as TrackerCache);
switch (mode){
case TrackerMode.BRIDGE:
_local2 = _bridgeFactory();
break;
case TrackerMode.AS3:
default:
_local2 = _trackerFactory();
};
if (!_local3.isEmpty()){
_local3.tracker = _local2;
_local3.flush();
};
_tracker = _local2;
_ready = true;
dispatchEvent(new AnalyticsEvent(AnalyticsEvent.READY, this));
}
public function getDetectFlash():Boolean{
return (_tracker.getDetectFlash());
}
public function clearOrganic():void{
_tracker.clearOrganic();
}
private function _createDebugAndConfig():void{
if (!_debug){
this.debug = new DebugConfiguration();
};
if (!_config){
this.config = new Configuration(debug);
};
}
public function addIgnoredRef(_arg1:String):void{
_tracker.addIgnoredRef(_arg1);
}
public function set visualDebug(_arg1:Boolean):void{
_visualDebug = _arg1;
}
public function setCampMediumKey(_arg1:String):void{
_tracker.setCampMediumKey(_arg1);
}
public function getAccount():String{
return (_tracker.getAccount());
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_tracker.link(_arg1, _arg2);
}
}
var _local1:* = ServerOperationMode;
return (_local1);
}//package com.google.analytics.components
Section 6
//Icon (com.google.analytics.components.Icon)
package com.google.analytics.components {
import flash.display.*;
public dynamic class Icon extends MovieClip {
}
}//package com.google.analytics.components
Section 7
//BrowserInfo (com.google.analytics.core.BrowserInfo)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.utils.*;
public class BrowserInfo {
private var _config:Configuration;
private var _info:Environment;
public function BrowserInfo(_arg1:Configuration, _arg2:Environment){
_config = _arg1;
_info = _arg2;
}
public function get utmul():String{
return (_info.language.toLowerCase());
}
public function get utmje():String{
return ("0");
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
public function get utmsr():String{
return (((_info.screenWidth + "x") + _info.screenHeight));
}
public function get utmcs():String{
return (_info.languageEncoding);
}
public function get utmfl():String{
var _local1:Version;
if (_config.detectFlash){
_local1 = _info.flashVersion;
return (((((_local1.major + ".") + _local1.minor) + " r") + _local1.build));
};
return ("-");
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
_local1.utmcs = utmcs;
_local1.utmsr = utmsr;
_local1.utmsc = utmsc;
_local1.utmul = utmul;
_local1.utmje = utmje;
_local1.utmfl = utmfl;
return (_local1);
}
public function get utmsc():String{
return ((_info.screenColorDepth + "-bit"));
}
}
}//package com.google.analytics.core
Section 8
//Buffer (com.google.analytics.core.Buffer)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.net.*;
import flash.events.*;
import com.google.analytics.data.*;
public dynamic class Buffer {
private var _SO:SharedObject;
private var _OBJ:Object;
private var _utma:UTMA;
private var _utmb:UTMB;
private var _utmc:UTMC;
private var _debug:DebugConfiguration;
private var _utmk:UTMK;
private var _config:Configuration;
private var _utmv:UTMV;
private var _utmz:UTMZ;
private var _volatile:Boolean;
public function Buffer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Boolean=false, _arg4:Object=null){
var _local5:Boolean;
var _local6:String;
super();
_config = _arg1;
_debug = _arg2;
UTMB.defaultTimespan = _config.sessionTimeout;
UTMZ.defaultTimespan = _config.conversionTimeout;
if (!_arg3){
_SO = SharedObject.getLocal(_config.cookieName, _config.cookiePath);
_local5 = false;
if (_SO.data.utma){
if (!hasUTMA()){
_createUMTA();
};
_utma.fromSharedObject(_SO.data.utma);
if (_debug.verbose){
_debug.info(("found: " + _utma.toString(true)), VisualDebugMode.geek);
};
if (_utma.isExpired()){
if (_debug.verbose){
_debug.warning("UTMA has expired", VisualDebugMode.advanced);
};
_clearUTMA();
_local5 = true;
};
};
if (_SO.data.utmb){
if (!hasUTMB()){
_createUMTB();
};
_utmb.fromSharedObject(_SO.data.utmb);
if (_debug.verbose){
_debug.info(("found: " + _utmb.toString(true)), VisualDebugMode.geek);
};
if (_utmb.isExpired()){
if (_debug.verbose){
_debug.warning("UTMB has expired", VisualDebugMode.advanced);
};
_clearUTMB();
_local5 = true;
};
};
if (_SO.data.utmc){
delete _SO.data.utmc;
_local5 = true;
};
if (_SO.data.utmk){
if (!hasUTMK()){
_createUMTK();
};
_utmk.fromSharedObject(_SO.data.utmk);
if (_debug.verbose){
_debug.info(("found: " + _utmk.toString()), VisualDebugMode.geek);
};
};
if (_SO.data.utmv){
if (!hasUTMV()){
_createUMTV();
};
_utmv.fromSharedObject(_SO.data.utmv);
if (_debug.verbose){
_debug.info(("found: " + _utmv.toString(true)), VisualDebugMode.geek);
};
if (_utmv.isExpired()){
if (_debug.verbose){
_debug.warning("UTMV has expired", VisualDebugMode.advanced);
};
_clearUTMV();
_local5 = true;
};
};
if (_SO.data.utmz){
if (!hasUTMZ()){
_createUMTZ();
};
_utmz.fromSharedObject(_SO.data.utmz);
if (_debug.verbose){
_debug.info(("found: " + _utmz.toString(true)), VisualDebugMode.geek);
};
if (_utmz.isExpired()){
if (_debug.verbose){
_debug.warning("UTMZ has expired", VisualDebugMode.advanced);
};
_clearUTMZ();
_local5 = true;
};
};
if (_local5){
save();
};
} else {
_OBJ = new Object();
if (_arg4){
for (_local6 in _arg4) {
_OBJ[_local6] = _arg4[_local6];
};
};
};
_volatile = _arg3;
}
public function clearCookies():void{
utma.reset();
utmb.reset();
utmc.reset();
utmz.reset();
utmv.reset();
utmk.reset();
}
public function save():void{
var flushStatus:String;
if (!isVolatile()){
flushStatus = null;
try {
flushStatus = _SO.flush();
} catch(e:Error) {
_debug.warning("Error...Could not write SharedObject to disk");
};
switch (flushStatus){
case SharedObjectFlushStatus.PENDING:
_debug.info("Requesting permission to save object...");
_SO.addEventListener(NetStatusEvent.NET_STATUS, _onFlushStatus);
break;
case SharedObjectFlushStatus.FLUSHED:
_debug.info("Value flushed to disk.");
break;
};
};
}
public function get utmv():UTMV{
if (!hasUTMV()){
_createUMTV();
};
return (_utmv);
}
public function get utmz():UTMZ{
if (!hasUTMZ()){
_createUMTZ();
};
return (_utmz);
}
public function hasUTMA():Boolean{
if (_utma){
return (true);
};
return (false);
}
public function hasUTMB():Boolean{
if (_utmb){
return (true);
};
return (false);
}
public function hasUTMC():Boolean{
if (_utmc){
return (true);
};
return (false);
}
public function isGenuine():Boolean{
if (!hasUTMK()){
return (true);
};
return ((utmk.hash == generateCookiesHash()));
}
public function resetCurrentSession():void{
_clearUTMB();
_clearUTMC();
save();
}
public function hasUTMK():Boolean{
if (_utmk){
return (true);
};
return (false);
}
public function generateCookiesHash():Number{
var _local1 = "";
_local1 = (_local1 + utma.valueOf());
_local1 = (_local1 + utmb.valueOf());
_local1 = (_local1 + utmc.valueOf());
_local1 = (_local1 + utmz.valueOf());
_local1 = (_local1 + utmv.valueOf());
return (Utils.generateHash(_local1));
}
private function _createUMTB():void{
_utmb = new UTMB();
_utmb.proxy = this;
}
private function _createUMTC():void{
_utmc = new UTMC();
}
private function _createUMTA():void{
_utma = new UTMA();
_utma.proxy = this;
}
public function hasUTMV():Boolean{
if (_utmv){
return (true);
};
return (false);
}
private function _createUMTK():void{
_utmk = new UTMK();
_utmk.proxy = this;
}
public function hasUTMZ():Boolean{
if (_utmz){
return (true);
};
return (false);
}
private function _createUMTV():void{
_utmv = new UTMV();
_utmv.proxy = this;
}
private function _onFlushStatus(_arg1:NetStatusEvent):void{
_debug.info("User closed permission dialog...");
switch (_arg1.info.code){
case "SharedObject.Flush.Success":
_debug.info("User granted permission -- value saved.");
break;
case "SharedObject.Flush.Failed":
_debug.info("User denied permission -- value not saved.");
break;
};
_SO.removeEventListener(NetStatusEvent.NET_STATUS, _onFlushStatus);
}
private function _createUMTZ():void{
_utmz = new UTMZ();
_utmz.proxy = this;
}
public function updateUTMA(_arg1:Number):void{
if (_debug.verbose){
_debug.info((("updateUTMA( " + _arg1) + " )"), VisualDebugMode.advanced);
};
if (!utma.isEmpty()){
if (isNaN(utma.sessionCount)){
utma.sessionCount = 1;
} else {
utma.sessionCount = (utma.sessionCount + 1);
};
utma.lastTime = utma.currentTime;
utma.currentTime = _arg1;
};
}
private function _clearUTMA():void{
_utma = null;
if (!isVolatile()){
_SO.data.utma = null;
delete _SO.data.utma;
};
}
private function _clearUTMC():void{
_utmc = null;
}
private function _clearUTMB():void{
_utmb = null;
if (!isVolatile()){
_SO.data.utmb = null;
delete _SO.data.utmb;
};
}
public function update(_arg1:String, _arg2):void{
if (isVolatile()){
_OBJ[_arg1] = _arg2;
} else {
_SO.data[_arg1] = _arg2;
};
}
private function _clearUTMZ():void{
_utmz = null;
if (!isVolatile()){
_SO.data.utmz = null;
delete _SO.data.utmz;
};
}
private function _clearUTMV():void{
_utmv = null;
if (!isVolatile()){
_SO.data.utmv = null;
delete _SO.data.utmv;
};
}
public function isVolatile():Boolean{
return (_volatile);
}
public function get utma():UTMA{
if (!hasUTMA()){
_createUMTA();
};
return (_utma);
}
public function get utmb():UTMB{
if (!hasUTMB()){
_createUMTB();
};
return (_utmb);
}
public function get utmc():UTMC{
if (!hasUTMC()){
_createUMTC();
};
return (_utmc);
}
public function get utmk():UTMK{
if (!hasUTMK()){
_createUMTK();
};
return (_utmk);
}
}
}//package com.google.analytics.core
Section 9
//DocumentInfo (com.google.analytics.core.DocumentInfo)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.utils.*;
import com.google.analytics.external.*;
public class DocumentInfo {
private var _config:Configuration;
private var _utmr:String;
private var _adSense:AdSenseGlobals;
private var _info:Environment;
private var _pageURL:String;
public function DocumentInfo(_arg1:Configuration, _arg2:Environment, _arg3:String, _arg4:String=null, _arg5:AdSenseGlobals=null){
_config = _arg1;
_info = _arg2;
_utmr = _arg3;
_pageURL = _arg4;
_adSense = _arg5;
}
public function get utmr():String{
if (!_utmr){
return ("-");
};
return (_utmr);
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
private function _renderPageURL(_arg1:String=""):String{
var _local2:String;
var _local3:String;
_local2 = _info.locationPath;
_local3 = _info.locationSearch;
if (((!(_arg1)) || ((_arg1 == "")))){
_arg1 = (_local2 + unescape(_local3));
};
return (_arg1);
}
public function get utmp():String{
return (_renderPageURL(_pageURL));
}
private function _generateHitId():Number{
var _local1:Number;
if (((_adSense.hid) && (!((_adSense.hid == ""))))){
_local1 = Number(_adSense.hid);
} else {
_local1 = Math.round((Math.random() * 2147483647));
_adSense.hid = String(_local1);
};
return (_local1);
}
public function get utmhid():String{
return (String(_generateHitId()));
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
if (((_config.detectTitle) && (!((utmdt == ""))))){
_local1.utmdt = utmdt;
};
_local1.utmhid = utmhid;
_local1.utmr = utmr;
_local1.utmp = utmp;
return (_local1);
}
public function get utmdt():String{
return (_info.documentTitle);
}
}
}//package com.google.analytics.core
Section 10
//Domain (com.google.analytics.core.Domain)
package com.google.analytics.core {
import com.google.analytics.debug.*;
public class Domain {
private var _mode:DomainNameMode;
private var _debug:DebugConfiguration;
private var _name:String;
public function Domain(_arg1:DomainNameMode=null, _arg2:String="", _arg3:DebugConfiguration=null){
_debug = _arg3;
if (_arg1 == null){
_arg1 = DomainNameMode.auto;
};
_mode = _arg1;
if (_arg1 == DomainNameMode.custom){
this.name = _arg2;
} else {
_name = _arg2;
};
}
public function get mode():DomainNameMode{
return (_mode);
}
public function set mode(_arg1:DomainNameMode):void{
_mode = _arg1;
if (_mode == DomainNameMode.none){
_name = "";
};
}
public function get name():String{
return (_name);
}
public function set name(_arg1:String):void{
if (((!((_arg1.charAt(0) == "."))) && (_debug))){
_debug.warning(("missing leading period \".\", cookie will only be accessible on " + _arg1), VisualDebugMode.geek);
};
_name = _arg1;
}
}
}//package com.google.analytics.core
Section 11
//DomainNameMode (com.google.analytics.core.DomainNameMode)
package com.google.analytics.core {
public class DomainNameMode {
private var _value:int;
private var _name:String;
public static const custom:DomainNameMode = new DomainNameMode(2, "custom");
;
public static const none:DomainNameMode = new DomainNameMode(0, "none");
;
public static const auto:DomainNameMode = new DomainNameMode(1, "auto");
;
public function DomainNameMode(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.core
Section 12
//EventInfo (com.google.analytics.core.EventInfo)
package com.google.analytics.core {
import com.google.analytics.data.*;
import com.google.analytics.utils.*;
public class EventInfo {
private var _isEventHit:Boolean;
private var _ext10:X10;
private var _x10:X10;
public function EventInfo(_arg1:Boolean, _arg2:X10, _arg3:X10=null){
_isEventHit = _arg1;
_x10 = _arg2;
_ext10 = _arg3;
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
public function get utmt():String{
return ("event");
}
public function get utme():String{
return (_x10.renderMergedUrlString(_ext10));
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
if (_isEventHit){
_local1.utmt = utmt;
};
_local1.utme = utme;
return (_local1);
}
}
}//package com.google.analytics.core
Section 13
//EventTracker (com.google.analytics.core.EventTracker)
package com.google.analytics.core {
import com.google.analytics.v4.*;
public class EventTracker {
private var _parent:GoogleAnalyticsAPI;
public var name:String;
public function EventTracker(_arg1:String, _arg2:GoogleAnalyticsAPI){
this.name = _arg1;
_parent = _arg2;
}
public function trackEvent(_arg1:String, _arg2:String=null, _arg3:Number=NaN):Boolean{
return (_parent.trackEvent(name, _arg1, _arg2, _arg3));
}
}
}//package com.google.analytics.core
Section 14
//ga_internal (com.google.analytics.core.ga_internal)
package com.google.analytics.core {
public namespace ga_internal;
}//package com.google.analytics.core
Section 15
//GIFRequest (com.google.analytics.core.GIFRequest)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.net.*;
import flash.events.*;
import flash.display.*;
import com.google.analytics.utils.*;
import flash.system.*;
public class GIFRequest {
private var _info:Environment;
private var _count:int;
private var _utmac:String;
private var _alertcount:int;
private var _debug:DebugConfiguration;
private var _lastRequest:URLRequest;
private var _buffer:Buffer;
private var _config:Configuration;
private var _requests:Array;
public function GIFRequest(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Buffer, _arg4:Environment){
_config = _arg1;
_debug = _arg2;
_buffer = _arg3;
_info = _arg4;
_count = 0;
_alertcount = 0;
_requests = [];
}
public function get utmn():String{
return ((Utils.generate32bitRandom() as String));
}
public function onIOError(_arg1:IOErrorEvent):void{
var _local2:String = _lastRequest.url;
var _local3:String = String((_requests.length - 1));
var _local4 = (("Gif Request #" + _local3) + " failed");
if (_debug.GIFRequests){
if (!_debug.verbose){
if (_local2.indexOf("?") > -1){
_local2 = _local2.split("?")[0];
};
_local2 = _shortenURL(_local2);
};
if (int(_debug.mode) > int(VisualDebugMode.basic)){
_local4 = (_local4 + ((" \"" + _local2) + "\" does not exists or is unreachable"));
};
_debug.failure(_local4);
} else {
_debug.warning(_local4);
};
_removeListeners(_arg1.target);
}
public function send(_arg1:String, _arg2:Variables=null, _arg3:Boolean=false, _arg4:Boolean=false):void{
var _local5:String;
var _local6:URLRequest;
var _local7:URLRequest;
_utmac = _arg1;
if (!_arg2){
_arg2 = new Variables();
};
_arg2.URIencode = false;
_arg2.pre = ["utmwv", "utmn", "utmhn", "utmt", "utme", "utmcs", "utmsr", "utmsc", "utmul", "utmje", "utmfl", "utmdt", "utmhid", "utmr", "utmp"];
_arg2.post = ["utmcc"];
if (_debug.verbose){
_debug.info(((("tracking: " + _buffer.utmb.trackCount) + "/") + _config.trackingLimitPerSession), VisualDebugMode.geek);
};
if ((((_buffer.utmb.trackCount < _config.trackingLimitPerSession)) || (_arg3))){
if (_arg4){
updateToken();
};
if (((((_arg3) || (!(_arg4)))) || ((_buffer.utmb.token >= 1)))){
if (((!(_arg3)) && (_arg4))){
_buffer.utmb.token = (_buffer.utmb.token - 1);
};
_buffer.utmb.trackCount = (_buffer.utmb.trackCount + 1);
if (_debug.verbose){
_debug.info(_buffer.utmb.toString(), VisualDebugMode.geek);
};
_arg2.utmwv = utmwv;
_arg2.utmn = Utils.generate32bitRandom();
if (_info.domainName != ""){
_arg2.utmhn = _info.domainName;
};
if (_config.sampleRate < 1){
_arg2.utmsp = (_config.sampleRate * 100);
};
if ((((_config.serverMode == ServerOperationMode.local)) || ((_config.serverMode == ServerOperationMode.both)))){
_local5 = _info.locationSWFPath;
if (_local5.lastIndexOf("/") > 0){
_local5 = _local5.substring(0, _local5.lastIndexOf("/"));
};
_local6 = new URLRequest();
if (_config.localGIFpath.indexOf("http") == 0){
_local6.url = _config.localGIFpath;
} else {
_local6.url = (_local5 + _config.localGIFpath);
};
_local6.url = (_local6.url + ("?" + _arg2.toString()));
if (((_debug.active) && (_debug.GIFRequests))){
_debugSend(_local6);
} else {
sendRequest(_local6);
};
};
if ((((_config.serverMode == ServerOperationMode.remote)) || ((_config.serverMode == ServerOperationMode.both)))){
_local7 = new URLRequest();
if (_info.protocol == Protocols.HTTPS){
_local7.url = _config.secureRemoteGIFpath;
} else {
if (_info.protocol == Protocols.HTTP){
_local7.url = _config.remoteGIFpath;
} else {
_local7.url = _config.remoteGIFpath;
};
};
_arg2.utmac = utmac;
_arg2.utmcc = encodeURIComponent(utmcc);
_local7.url = (_local7.url + ("?" + _arg2.toString()));
if (((_debug.active) && (_debug.GIFRequests))){
_debugSend(_local7);
} else {
sendRequest(_local7);
};
};
};
};
}
public function onSecurityError(_arg1:SecurityErrorEvent):void{
if (_debug.GIFRequests){
_debug.failure(_arg1.text);
};
}
public function get utmsp():String{
return (((_config.sampleRate * 100) as String));
}
public function get utmcc():String{
var _local1:Array = [];
if (_buffer.hasUTMA()){
_local1.push((_buffer.utma.toURLString() + ";"));
};
if (_buffer.hasUTMZ()){
_local1.push((_buffer.utmz.toURLString() + ";"));
};
if (_buffer.hasUTMV()){
_local1.push((_buffer.utmv.toURLString() + ";"));
};
return (_local1.join("+"));
}
public function get utmac():String{
return (_utmac);
}
public function get utmwv():String{
return (_config.version);
}
public function sendRequest(_arg1:URLRequest):void{
var request = _arg1;
var loader:Loader = new Loader();
loader.name = String(_count++);
var context:LoaderContext = new LoaderContext(false);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
_lastRequest = request;
_requests[loader.name] = new RequestObject(request);
try {
loader.load(request, context);
} catch(e:Error) {
_debug.failure("\"Loader.load()\" could not instanciate Gif Request");
};
}
private function _removeListeners(_arg1:Object):void{
_arg1.removeEventListener(IOErrorEvent.IO_ERROR, onIOError);
_arg1.removeEventListener(Event.COMPLETE, onComplete);
}
public function updateToken():void{
var _local2:Number;
var _local1:Number = new Date().getTime();
_local2 = ((_local1 - _buffer.utmb.lastTime) * (_config.tokenRate / 1000));
if (_debug.verbose){
_debug.info(("tokenDelta: " + _local2), VisualDebugMode.geek);
};
if (_local2 >= 1){
_buffer.utmb.token = Math.min(Math.floor((_buffer.utmb.token + _local2)), _config.bucketCapacity);
_buffer.utmb.lastTime = _local1;
if (_debug.verbose){
_debug.info(_buffer.utmb.toString(), VisualDebugMode.geek);
};
};
}
public function get utmhn():String{
return (_info.domainName);
}
private function _shortenURL(_arg1:String):String{
var _local2:Array;
if (_arg1.length > 60){
_local2 = _arg1.split("/");
while (_arg1.length > 60) {
_local2.shift();
_arg1 = ("../" + _local2.join("/"));
};
};
return (_arg1);
}
private function _debugSend(_arg1:URLRequest):void{
var _local3:String;
var _local2 = "";
switch (_debug.mode){
case VisualDebugMode.geek:
_local2 = ((("Gif Request #" + _alertcount) + ":\n") + _arg1.url);
break;
case VisualDebugMode.advanced:
_local3 = _arg1.url;
if (_local3.indexOf("?") > -1){
_local3 = _local3.split("?")[0];
};
_local3 = _shortenURL(_local3);
_local2 = (((("Send Gif Request #" + _alertcount) + ":\n") + _local3) + " ?");
break;
case VisualDebugMode.basic:
default:
_local2 = (((("Send " + _config.serverMode.toString()) + " Gif Request #") + _alertcount) + " ?");
};
_debug.alertGifRequest(_local2, _arg1, this);
_alertcount++;
}
public function onComplete(_arg1:Event):void{
var _local2:String = _arg1.target.loader.name;
_requests[_local2].complete();
var _local3 = (("Gif Request #" + _local2) + " sent");
var _local4:String = _requests[_local2].request.url;
if (_debug.GIFRequests){
if (!_debug.verbose){
if (_local4.indexOf("?") > -1){
_local4 = _local4.split("?")[0];
};
_local4 = _shortenURL(_local4);
};
if (int(_debug.mode) > int(VisualDebugMode.basic)){
_local3 = (_local3 + ((" to \"" + _local4) + "\""));
};
_debug.success(_local3);
} else {
_debug.info(_local3);
};
_removeListeners(_arg1.target);
}
}
}//package com.google.analytics.core
Section 16
//IdleTimer (com.google.analytics.core.IdleTimer)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class IdleTimer {
private var _loop:Timer;
private var _stage:Stage;
private var _lastMove:int;
private var _debug:DebugConfiguration;
private var _session:Timer;
private var _inactivity:Number;
private var _buffer:Buffer;
public function IdleTimer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:DisplayObject, _arg4:Buffer){
var _local5:Number;
var _local6:Number;
var _local7:Number;
super();
_local5 = _arg1.idleLoop;
_local6 = _arg1.idleTimeout;
_local7 = _arg1.sessionTimeout;
_loop = new Timer((_local5 * 1000));
_session = new Timer((_local7 * 1000), 1);
_debug = _arg2;
_stage = _arg3.stage;
_buffer = _arg4;
_lastMove = getTimer();
_inactivity = (_local6 * 1000);
_loop.addEventListener(TimerEvent.TIMER, checkForIdle);
_session.addEventListener(TimerEvent.TIMER_COMPLETE, endSession);
_stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
_debug.info(((((("delay: " + _local5) + "sec , inactivity: ") + _local6) + "sec, sessionTimeout: ") + _local7), VisualDebugMode.geek);
_loop.start();
}
private function onMouseMove(_arg1:MouseEvent):void{
_lastMove = getTimer();
if (_session.running){
_debug.info("session timer reset", VisualDebugMode.geek);
_session.reset();
};
}
public function endSession(_arg1:TimerEvent):void{
_session.removeEventListener(TimerEvent.TIMER_COMPLETE, endSession);
_debug.info("session timer end session", VisualDebugMode.geek);
_session.reset();
_buffer.resetCurrentSession();
_debug.info(_buffer.utmb.toString(), VisualDebugMode.geek);
_debug.info(_buffer.utmc.toString(), VisualDebugMode.geek);
_session.addEventListener(TimerEvent.TIMER_COMPLETE, endSession);
}
public function checkForIdle(_arg1:TimerEvent):void{
var _local2:int;
_local2 = getTimer();
if ((_local2 - _lastMove) >= _inactivity){
if (!_session.running){
_debug.info("session timer start", VisualDebugMode.geek);
_session.start();
};
};
}
}
}//package com.google.analytics.core
Section 17
//Organic (com.google.analytics.core.Organic)
package com.google.analytics.core {
import com.google.analytics.utils.*;
public class Organic {
private var _sourcesCache:Array;
private var _sourcesEngine:Array;
private var _ignoredKeywords:Array;
private var _ignoredReferralsCache:Object;
private var _ignoredReferrals:Array;
private var _ignoredKeywordsCache:Object;
private var _sources:Array;
public static var throwErrors:Boolean = false;
public function Organic(){
_sources = [];
_sourcesCache = [];
_sourcesEngine = [];
_ignoredReferrals = [];
_ignoredReferralsCache = {};
_ignoredKeywords = [];
_ignoredKeywordsCache = {};
}
public function getKeywordValue(_arg1:OrganicReferrer, _arg2:String):String{
var _local3:String;
_local3 = _arg1.keyword;
return (getKeywordValueFromPath(_local3, _arg2));
}
public function isIgnoredKeyword(_arg1:String):Boolean{
if (_ignoredKeywordsCache.hasOwnProperty(_arg1)){
return (true);
};
return (false);
}
public function isIgnoredReferral(_arg1:String):Boolean{
if (_ignoredReferralsCache.hasOwnProperty(_arg1)){
return (true);
};
return (false);
}
public function clear():void{
clearEngines();
clearIgnoredReferrals();
clearIgnoredKeywords();
}
public function get ignoredKeywordsCount():int{
return (_ignoredKeywords.length);
}
public function match(_arg1:String):Boolean{
if (_arg1 == ""){
return (false);
};
_arg1 = _arg1.toLowerCase();
if (_sourcesEngine[_arg1] != undefined){
return (true);
};
return (false);
}
public function get count():int{
return (_sources.length);
}
public function addSource(_arg1:String, _arg2:String):void{
var _local3:OrganicReferrer;
_local3 = new OrganicReferrer(_arg1, _arg2);
if (_sourcesCache[_local3.toString()] == undefined){
_sources.push(_local3);
_sourcesCache[_local3.toString()] = (_sources.length - 1);
if (_sourcesEngine[_local3.engine] == undefined){
_sourcesEngine[_local3.engine] = [(_sources.length - 1)];
} else {
_sourcesEngine[_local3.engine].push((_sources.length - 1));
};
} else {
if (throwErrors){
throw (new Error((_local3.toString() + " already exists, we don't add it.")));
};
};
}
public function clearIgnoredKeywords():void{
_ignoredKeywords = [];
_ignoredKeywordsCache = {};
}
public function clearEngines():void{
_sources = [];
_sourcesCache = [];
_sourcesEngine = [];
}
public function get ignoredReferralsCount():int{
return (_ignoredReferrals.length);
}
public function addIgnoredReferral(_arg1:String):void{
if (_ignoredReferralsCache[_arg1] == undefined){
_ignoredReferrals.push(_arg1);
_ignoredReferralsCache[_arg1] = (_ignoredReferrals.length - 1);
} else {
if (throwErrors){
throw (new Error((("\"" + _arg1) + "\" already exists, we don't add it.")));
};
};
}
public function clearIgnoredReferrals():void{
_ignoredReferrals = [];
_ignoredReferralsCache = {};
}
public function getReferrerByName(_arg1:String):OrganicReferrer{
var _local2:int;
if (match(_arg1)){
_local2 = _sourcesEngine[_arg1][0];
return (_sources[_local2]);
};
return (null);
}
public function addIgnoredKeyword(_arg1:String):void{
if (_ignoredKeywordsCache[_arg1] == undefined){
_ignoredKeywords.push(_arg1);
_ignoredKeywordsCache[_arg1] = (_ignoredKeywords.length - 1);
} else {
if (throwErrors){
throw (new Error((("\"" + _arg1) + "\" already exists, we don't add it.")));
};
};
}
public function get sources():Array{
return (_sources);
}
public static function getKeywordValueFromPath(_arg1:String, _arg2:String):String{
var _local3:String;
var _local4:Variables;
if (_arg2.indexOf((_arg1 + "=")) > -1){
if (_arg2.charAt(0) == "?"){
_arg2 = _arg2.substr(1);
};
_arg2 = _arg2.split("+").join("%20");
_local4 = new Variables(_arg2);
_local3 = _local4[_arg1];
};
return (_local3);
}
}
}//package com.google.analytics.core
Section 18
//OrganicReferrer (com.google.analytics.core.OrganicReferrer)
package com.google.analytics.core {
public class OrganicReferrer {
private var _engine:String;
private var _keyword:String;
public function OrganicReferrer(_arg1:String, _arg2:String){
this.engine = _arg1;
this.keyword = _arg2;
}
public function set engine(_arg1:String):void{
_engine = _arg1.toLowerCase();
}
public function get keyword():String{
return (_keyword);
}
public function toString():String{
return (((engine + "?") + keyword));
}
public function get engine():String{
return (_engine);
}
public function set keyword(_arg1:String):void{
_keyword = _arg1.toLowerCase();
}
}
}//package com.google.analytics.core
Section 19
//RequestObject (com.google.analytics.core.RequestObject)
package com.google.analytics.core {
import flash.net.*;
import flash.utils.*;
public class RequestObject {
public var start:int;
public var request:URLRequest;
public var end:int;
public function RequestObject(_arg1:URLRequest){
start = getTimer();
this.request = _arg1;
}
public function toString():String{
var _local1:Array;
_local1 = [];
_local1.push((("duration: " + duration) + "ms"));
_local1.push(("url: " + request.url));
return ((("{ " + _local1.join(", ")) + " }"));
}
public function get duration():int{
if (!hasCompleted()){
return (0);
};
return ((end - start));
}
public function hasCompleted():Boolean{
return ((end > 0));
}
public function complete():void{
end = getTimer();
}
}
}//package com.google.analytics.core
Section 20
//ServerOperationMode (com.google.analytics.core.ServerOperationMode)
package com.google.analytics.core {
public class ServerOperationMode {
private var _value:int;
private var _name:String;
public static const both:ServerOperationMode = new ServerOperationMode(2, "both");
;
public static const remote:ServerOperationMode = new ServerOperationMode(1, "remote");
;
public static const local:ServerOperationMode = new ServerOperationMode(0, "local");
;
public function ServerOperationMode(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.core
Section 21
//TrackerCache (com.google.analytics.core.TrackerCache)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import flash.errors.*;
public class TrackerCache implements GoogleAnalyticsAPI {
public var tracker:GoogleAnalyticsAPI;
private var _ar:Array;
public static var CACHE_THROW_ERROR:Boolean;
public function TrackerCache(_arg1:GoogleAnalyticsAPI=null){
this.tracker = _arg1;
_ar = [];
}
public function size():uint{
return (_ar.length);
}
public function flush():void{
var _local1:Object;
var _local2:String;
var _local3:Array;
var _local4:int;
var _local5:int;
if (tracker == null){
return;
};
if (size() > 0){
_local4 = _ar.length;
while (_local5 < _local4) {
_local1 = _ar.shift();
_local2 = (_local1.name as String);
_local3 = (_local1.args as Array);
if (((!((_local2 == null))) && ((_local2 in tracker)))){
(tracker[_local2] as Function).apply(tracker, _local3);
};
_local5++;
};
};
}
public function enqueue(_arg1:String, ... _args):Boolean{
if (_arg1 == null){
return (false);
};
_ar.push({name:_arg1, args:_args});
return (true);
}
public function link(_arg1:String, _arg2:Boolean=false):void{
enqueue("link", _arg1, _arg2);
}
public function addOrganic(_arg1:String, _arg2:String):void{
enqueue("addOrganic", _arg1, _arg2);
}
public function setAllowLinker(_arg1:Boolean):void{
enqueue("setAllowLinker", _arg1);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
enqueue("trackEvent", _arg1, _arg2, _arg3, _arg4);
return (true);
}
public function getClientInfo():Boolean{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getClientInfo' method for the moment."));
};
return (false);
}
public function trackTrans():void{
enqueue("trackTrans");
}
public function trackPageview(_arg1:String=""):void{
enqueue("trackPageview", _arg1);
}
public function setClientInfo(_arg1:Boolean):void{
enqueue("setClientInfo", _arg1);
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
enqueue("linkByPost", _arg1, _arg2);
}
public function setCookieTimeout(_arg1:int):void{
enqueue("setCookieTimeout", _arg1);
}
public function isEmpty():Boolean{
return ((_ar.length == 0));
}
public function getDetectTitle():Boolean{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getDetectTitle' method for the moment."));
};
return (false);
}
public function resetSession():void{
enqueue("resetSession");
}
public function setDetectFlash(_arg1:Boolean):void{
enqueue("setDetectFlash", _arg1);
}
public function clear():void{
_ar = [];
}
public function setCampNameKey(_arg1:String):void{
enqueue("setCampNameKey", _arg1);
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
enqueue("addItem", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public function createEventTracker(_arg1:String):EventTracker{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'createEventTracker' method for the moment."));
};
return (null);
}
public function setVar(_arg1:String):void{
enqueue("setVar", _arg1);
}
public function clearIgnoredOrganic():void{
enqueue("clearIgnoredOrganic");
}
public function setDomainName(_arg1:String):void{
enqueue("setDomainName", _arg1);
}
public function setCampSourceKey(_arg1:String):void{
enqueue("setCampSourceKey", _arg1);
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'addTrans' method for the moment."));
};
return (null);
}
public function setCampContentKey(_arg1:String):void{
enqueue("setCampContentKey", _arg1);
}
public function setLocalServerMode():void{
enqueue("setLocalServerMode");
}
public function getLocalGifPath():String{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getLocalGifPath' method for the moment."));
};
return ("");
}
public function setAllowAnchor(_arg1:Boolean):void{
enqueue("setAllowAnchor", _arg1);
}
public function clearIgnoredRef():void{
enqueue("clearIgnoredRef");
}
public function setLocalGifPath(_arg1:String):void{
enqueue("setLocalGifPath", _arg1);
}
public function getVersion():String{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getVersion' method for the moment."));
};
return ("");
}
public function setCookiePath(_arg1:String):void{
enqueue("setCookiePath", _arg1);
}
public function setSampleRate(_arg1:Number):void{
enqueue("setSampleRate", _arg1);
}
public function setDetectTitle(_arg1:Boolean):void{
enqueue("setDetectTitle", _arg1);
}
public function setAllowHash(_arg1:Boolean):void{
enqueue("setAllowHash", _arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
enqueue("addIgnoredOrganic", _arg1);
}
public function setCampNOKey(_arg1:String):void{
enqueue("setCampNOKey", _arg1);
}
public function getServiceMode():ServerOperationMode{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getServiceMode' method for the moment."));
};
return (null);
}
public function setLocalRemoteServerMode():void{
enqueue("setLocalRemoteServerMode");
}
public function cookiePathCopy(_arg1:String):void{
enqueue("cookiePathCopy", _arg1);
}
public function getDetectFlash():Boolean{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getDetectFlash' method for the moment."));
};
return (false);
}
public function setCampaignTrack(_arg1:Boolean):void{
enqueue("setCampaignTrack", _arg1);
}
public function clearOrganic():void{
enqueue("clearOrganic");
}
public function setCampTermKey(_arg1:String):void{
enqueue("setCampTermKey", _arg1);
}
public function addIgnoredRef(_arg1:String):void{
enqueue("addIgnoredRef", _arg1);
}
public function setCampMediumKey(_arg1:String):void{
enqueue("setCampMediumKey", _arg1);
}
public function setSessionTimeout(_arg1:int):void{
enqueue("setSessionTimeout", _arg1);
}
public function setRemoteServerMode():void{
enqueue("setRemoteServerMode");
}
public function element(){
return (_ar[0]);
}
public function getAccount():String{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getAccount' method for the moment."));
};
return ("");
}
}
}//package com.google.analytics.core
Section 22
//TrackerMode (com.google.analytics.core.TrackerMode)
package com.google.analytics.core {
public class TrackerMode {
public static const BRIDGE:String = "Bridge";
public static const AS3:String = "AS3";
}
}//package com.google.analytics.core
Section 23
//Utils (com.google.analytics.core.Utils)
package com.google.analytics.core {
public class Utils {
public static function trim(_arg1:String, _arg2:Boolean=false):String{
var _local3:Array;
var _local4:String;
var _local5:int;
var _local6:int;
var _local7:int;
if (_arg1 == ""){
return ("");
};
_local3 = [" ", "\n", "\r", "\t"];
_local4 = _arg1;
if (_arg2){
_local5 = 0;
while ((((_local5 < _local3.length)) && ((_local4.indexOf(_local3[_local5]) > -1)))) {
_local4 = _local4.split(_local3[_local5]).join("");
_local5++;
};
} else {
_local6 = 0;
while ((((_local6 < _local4.length)) && ((_local3.indexOf(_local4.charAt(_local6)) > -1)))) {
_local6++;
};
_local4 = _local4.substr(_local6);
_local7 = (_local4.length - 1);
while ((((_local7 >= 0)) && ((_local3.indexOf(_local4.charAt(_local7)) > -1)))) {
_local7--;
};
_local4 = _local4.substring(0, (_local7 + 1));
};
return (_local4);
}
public static function generateHash(_arg1:String):int{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = 1;
_local3 = 0;
if (((!((_arg1 == null))) && (!((_arg1 == ""))))){
_local2 = 0;
_local4 = (_arg1.length - 1);
while (_local4 >= 0) {
_local5 = _arg1.charCodeAt(_local4);
_local2 = ((((_local2 << 6) & 268435455) + _local5) + (_local5 << 14));
_local3 = (_local2 & 266338304);
if (_local3 != 0){
_local2 = (_local2 ^ (_local3 >> 21));
};
_local4--;
};
};
return (_local2);
}
public static function generate32bitRandom():int{
return (Math.round((Math.random() * 2147483647)));
}
public static function validateAccount(_arg1:String):Boolean{
var _local2:RegExp;
_local2 = /^UA-[0-9]*-[0-9]*$/;
return (_local2.test(_arg1));
}
}
}//package com.google.analytics.core
Section 24
//Cookie (com.google.analytics.data.Cookie)
package com.google.analytics.data {
public interface Cookie {
function fromSharedObject(_arg1:Object):void;
function toURLString():String;
function get creation():Date;
function toSharedObject():Object;
function isExpired():Boolean;
function set creation(_arg1:Date):void;
function set expiration(_arg1:Date):void;
function get expiration():Date;
}
}//package com.google.analytics.data
Section 25
//UTMA (com.google.analytics.data.UTMA)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMA extends UTMCookie {
private var _sessionId:Number;
private var _domainHash:Number;
private var _firstTime:Number;
private var _currentTime:Number;
private var _lastTime:Number;
private var _sessionCount:Number;
public function UTMA(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN, _arg5:Number=NaN, _arg6:Number=NaN){
super("utma", "__utma", ["domainHash", "sessionId", "firstTime", "lastTime", "currentTime", "sessionCount"], (Timespan.twoyears * 1000));
this.domainHash = _arg1;
this.sessionId = _arg2;
this.firstTime = _arg3;
this.lastTime = _arg4;
this.currentTime = _arg5;
this.sessionCount = _arg6;
}
public function get lastTime():Number{
return (_lastTime);
}
public function set lastTime(_arg1:Number):void{
_lastTime = _arg1;
update();
}
public function set currentTime(_arg1:Number):void{
_currentTime = _arg1;
update();
}
public function get sessionId():Number{
return (_sessionId);
}
public function get sessionCount():Number{
return (_sessionCount);
}
public function get firstTime():Number{
return (_firstTime);
}
public function get currentTime():Number{
return (_currentTime);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function set sessionId(_arg1:Number):void{
_sessionId = _arg1;
update();
}
public function set sessionCount(_arg1:Number):void{
_sessionCount = _arg1;
update();
}
public function get domainHash():Number{
return (_domainHash);
}
public function set firstTime(_arg1:Number):void{
_firstTime = _arg1;
update();
}
}
}//package com.google.analytics.data
Section 26
//UTMB (com.google.analytics.data.UTMB)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMB extends UTMCookie {
private var _trackCount:Number;
private var _lastTime:Number;
private var _domainHash:Number;
private var _token:Number;
public static var defaultTimespan:Number = Timespan.thirtyminutes;
public function UTMB(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN){
super("utmb", "__utmb", ["domainHash", "trackCount", "token", "lastTime"], (defaultTimespan * 1000));
this.domainHash = _arg1;
this.trackCount = _arg2;
this.token = _arg3;
this.lastTime = _arg4;
}
public function set token(_arg1:Number):void{
_token = _arg1;
update();
}
public function set trackCount(_arg1:Number):void{
_trackCount = _arg1;
update();
}
public function get lastTime():Number{
return (_lastTime);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function set lastTime(_arg1:Number):void{
_lastTime = _arg1;
update();
}
public function get domainHash():Number{
return (_domainHash);
}
public function get token():Number{
return (_token);
}
public function get trackCount():Number{
return (_trackCount);
}
}
}//package com.google.analytics.data
Section 27
//UTMC (com.google.analytics.data.UTMC)
package com.google.analytics.data {
public class UTMC extends UTMCookie {
private var _domainHash:Number;
public function UTMC(_arg1:Number=NaN){
super("utmc", "__utmc", ["domainHash"]);
this.domainHash = _arg1;
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function get domainHash():Number{
return (_domainHash);
}
}
}//package com.google.analytics.data
Section 28
//UTMCookie (com.google.analytics.data.UTMCookie)
package com.google.analytics.data {
import com.google.analytics.core.*;
public class UTMCookie implements Cookie {
protected var inURL:String;
protected var name:String;
private var _creation:Date;
private var _expiration:Date;
public var proxy:Buffer;
private var _timespan:Number;
protected var fields:Array;
public function UTMCookie(_arg1:String, _arg2:String, _arg3:Array, _arg4:Number=0){
this.name = _arg1;
this.inURL = _arg2;
this.fields = _arg3;
_timestamp(_arg4);
}
public function isEmpty():Boolean{
var _local1:int;
var _local2:String;
var _local3:int;
_local1 = 0;
_local3 = 0;
while (_local3 < fields.length) {
_local2 = fields[_local3];
if ((((this[_local2] is Number)) && (isNaN(this[_local2])))){
_local1++;
} else {
if ((((this[_local2] is String)) && ((this[_local2] == "")))){
_local1++;
};
};
_local3++;
};
if (_local1 == fields.length){
return (true);
};
return (false);
}
protected function update():void{
resetTimestamp();
if (proxy){
proxy.update(name, toSharedObject());
};
}
public function fromSharedObject(_arg1:Object):void{
var _local2:String;
var _local3:int;
var _local4:int;
_local3 = fields.length;
_local4 = 0;
while (_local4 < _local3) {
_local2 = fields[_local4];
if (_arg1[_local2]){
this[_local2] = _arg1[_local2];
};
_local4++;
};
if (_arg1.creation){
this.creation = _arg1.creation;
};
if (_arg1.expiration){
this.expiration = _arg1.expiration;
};
}
private function _timestamp(_arg1:Number):void{
creation = new Date();
_timespan = _arg1;
if (_arg1 > 0){
expiration = new Date((creation.valueOf() + _arg1));
};
}
public function isExpired():Boolean{
var _local1:Date;
var _local2:Number;
_local1 = new Date();
_local2 = (expiration.valueOf() - _local1.valueOf());
if (_local2 <= 0){
return (true);
};
return (false);
}
public function set expiration(_arg1:Date):void{
_expiration = _arg1;
}
public function get creation():Date{
return (_creation);
}
public function reset():void{
var _local1:String;
var _local2:int;
_local2 = 0;
while (_local2 < fields.length) {
_local1 = fields[_local2];
if ((this[_local1] is Number)){
this[_local1] = NaN;
} else {
if ((this[_local1] is String)){
this[_local1] = "";
};
};
_local2++;
};
resetTimestamp();
update();
}
public function valueOf():String{
var _local1:Array;
var _local2:String;
var _local3:*;
var _local4:int;
_local1 = [];
_local4 = 0;
while (_local4 < fields.length) {
_local2 = fields[_local4];
_local3 = this[_local2];
if ((_local3 is String)){
if (_local3 == ""){
_local3 = "-";
_local1.push(_local3);
} else {
_local1.push(_local3);
};
} else {
if ((_local3 is Number)){
if (_local3 == 0){
_local1.push(_local3);
} else {
if (isNaN(_local3)){
_local3 = "-";
_local1.push(_local3);
} else {
_local1.push(_local3);
};
};
};
};
_local4++;
};
return (("" + _local1.join(".")));
}
public function resetTimestamp(_arg1:Number=NaN):void{
if (!isNaN(_arg1)){
_timespan = _arg1;
};
_creation = null;
_expiration = null;
_timestamp(_timespan);
}
public function get expiration():Date{
if (_expiration){
return (_expiration);
};
return (new Date((new Date().valueOf() + 1000)));
}
public function toURLString():String{
return (((inURL + "=") + valueOf()));
}
public function toSharedObject():Object{
var _local1:Object;
var _local2:String;
var _local3:*;
var _local4:int;
_local1 = {};
_local4 = 0;
for (;_local4 < fields.length;_local4++) {
_local2 = fields[_local4];
_local3 = this[_local2];
if ((_local3 is String)){
_local1[_local2] = _local3;
} else {
if (_local3 == 0){
_local1[_local2] = _local3;
} else {
if (isNaN(_local3)){
continue;
} else {
_local1[_local2] = _local3;
};
};
};
};
_local1.creation = creation;
_local1.expiration = expiration;
return (_local1);
}
public function toString(_arg1:Boolean=false):String{
var _local2:Array;
var _local3:String;
var _local4:*;
var _local5:int;
var _local6:int;
var _local7:String;
_local2 = [];
_local5 = fields.length;
_local6 = 0;
for (;_local6 < _local5;_local6++) {
_local3 = fields[_local6];
_local4 = this[_local3];
if ((_local4 is String)){
_local2.push((((_local3 + ": \"") + _local4) + "\""));
} else {
if (_local4 == 0){
_local2.push(((_local3 + ": ") + _local4));
} else {
if (isNaN(_local4)){
continue;
} else {
_local2.push(((_local3 + ": ") + _local4));
};
};
};
};
_local7 = (((name.toUpperCase() + " {") + _local2.join(", ")) + "}");
if (_arg1){
_local7 = (_local7 + (((" creation:" + creation) + ", expiration:") + expiration));
};
return (_local7);
}
public function set creation(_arg1:Date):void{
_creation = _arg1;
}
}
}//package com.google.analytics.data
Section 29
//UTMK (com.google.analytics.data.UTMK)
package com.google.analytics.data {
public class UTMK extends UTMCookie {
private var _hash:Number;
public function UTMK(_arg1:Number=NaN){
super("utmk", "__utmk", ["hash"]);
this.hash = _arg1;
}
public function set hash(_arg1:Number):void{
_hash = _arg1;
update();
}
public function get hash():Number{
return (_hash);
}
}
}//package com.google.analytics.data
Section 30
//UTMV (com.google.analytics.data.UTMV)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMV extends UTMCookie {
private var _domainHash:Number;
private var _value:String;
public function UTMV(_arg1:Number=NaN, _arg2:String=""){
super("utmv", "__utmv", ["domainHash", "value"], (Timespan.twoyears * 1000));
this.domainHash = _arg1;
this.value = _arg2;
}
override public function toURLString():String{
return (((inURL + "=") + encodeURI(valueOf())));
}
public function get value():String{
return (_value);
}
public function get domainHash():Number{
return (_domainHash);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function set value(_arg1:String):void{
_value = _arg1;
update();
}
}
}//package com.google.analytics.data
Section 31
//UTMZ (com.google.analytics.data.UTMZ)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMZ extends UTMCookie {
private var _campaignTracking:String;
private var _campaignCreation:Number;
private var _responseCount:Number;
private var _domainHash:Number;
private var _campaignSessions:Number;
public static var defaultTimespan:Number = Timespan.sixmonths;
public function UTMZ(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN, _arg5:String=""){
super("utmz", "__utmz", ["domainHash", "campaignCreation", "campaignSessions", "responseCount", "campaignTracking"], (defaultTimespan * 1000));
this.domainHash = _arg1;
this.campaignCreation = _arg2;
this.campaignSessions = _arg3;
this.responseCount = _arg4;
this.campaignTracking = _arg5;
}
public function set responseCount(_arg1:Number):void{
_responseCount = _arg1;
update();
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function set campaignCreation(_arg1:Number):void{
_campaignCreation = _arg1;
update();
}
public function get campaignTracking():String{
return (_campaignTracking);
}
public function get campaignSessions():Number{
return (_campaignSessions);
}
public function get domainHash():Number{
return (_domainHash);
}
public function get responseCount():Number{
return (_responseCount);
}
public function get campaignCreation():Number{
return (_campaignCreation);
}
public function set campaignSessions(_arg1:Number):void{
_campaignSessions = _arg1;
update();
}
public function set campaignTracking(_arg1:String):void{
_campaignTracking = _arg1;
update();
}
}
}//package com.google.analytics.data
Section 32
//X10 (com.google.analytics.data.X10)
package com.google.analytics.data {
public class X10 {
private var _delimEnd:String;// = ")"
private var _delimSet:String;// = "*"
private var _escapeChar:String;// = "'"
private var _delimBegin:String;// = "("
private var _delimNumValue:String;// = "!"
private var _key:String;// = "k"
private var _set:Array;
private var _projectData:Object;
private var _hasData:int;
private var _escapeCharMap:Object;
private var _minimum:int;
private var _value:String;// = "v"
public function X10(){
_key = "k";
_value = "v";
_set = [_key, _value];
_delimBegin = "(";
_delimEnd = ")";
_delimSet = "*";
_delimNumValue = "!";
_escapeChar = "'";
super();
_projectData = {};
_escapeCharMap = {};
_escapeCharMap[_escapeChar] = "'0";
_escapeCharMap[_delimEnd] = "'1";
_escapeCharMap[_delimSet] = "'2";
_escapeCharMap[_delimNumValue] = "'3";
_minimum = 1;
}
private function _clearInternal(_arg1:Number, _arg2:String):void{
var _local3:Boolean;
var _local4:int;
var _local5:int;
if (((hasProject(_arg1)) && (!((_projectData[_arg1][_arg2] == undefined))))){
_projectData[_arg1][_arg2] = undefined;
_local3 = true;
_local5 = _set.length;
_local4 = 0;
while (_local4 < _local5) {
if (_projectData[_arg1][_set[_local4]] != undefined){
_local3 = false;
break;
};
_local4++;
};
if (_local3){
_projectData[_arg1] = undefined;
_hasData = (_hasData - 1);
};
};
}
public function hasData():Boolean{
return ((_hasData > 0));
}
private function _setInternal(_arg1:Number, _arg2:String, _arg3:Number, _arg4:String):void{
if (!hasProject(_arg1)){
_projectData[_arg1] = {};
};
if (_projectData[_arg1][_arg2] == undefined){
_projectData[_arg1][_arg2] = [];
};
_projectData[_arg1][_arg2][_arg3] = _arg4;
_hasData = (_hasData + 1);
}
public function hasProject(_arg1:Number):Boolean{
return (_projectData[_arg1]);
}
public function clearKey(_arg1:Number):void{
_clearInternal(_arg1, _key);
}
private function _renderDataType(_arg1:Array):String{
var _local2:Array;
var _local3:String;
var _local4:int;
_local2 = [];
_local4 = 0;
while (_local4 < _arg1.length) {
if (_arg1[_local4] != undefined){
_local3 = "";
if (((!((_local4 == _minimum))) && ((_arg1[(_local4 - 1)] == undefined)))){
_local3 = (_local3 + _local4.toString());
_local3 = (_local3 + _delimNumValue);
};
_local3 = (_local3 + _escapeExtensibleValue(_arg1[_local4]));
_local2.push(_local3);
};
_local4++;
};
return (((_delimBegin + _local2.join(_delimSet)) + _delimEnd));
}
public function getKey(_arg1:Number, _arg2:Number):String{
return ((_getInternal(_arg1, _key, _arg2) as String));
}
public function clearValue(_arg1:Number):void{
_clearInternal(_arg1, _value);
}
public function renderMergedUrlString(_arg1:X10=null):String{
var _local2:Array;
var _local3:String;
if (!_arg1){
return (renderUrlString());
};
_local2 = [_arg1.renderUrlString()];
for (_local3 in _projectData) {
if (((hasProject(Number(_local3))) && (!(_arg1.hasProject(Number(_local3)))))){
_local2.push((_local3 + _renderProject(_projectData[_local3])));
};
};
return (_local2.join(""));
}
public function setValue(_arg1:Number, _arg2:Number, _arg3:Number):Boolean{
if (((((!((Math.round(_arg3) == _arg3))) || (isNaN(_arg3)))) || ((_arg3 == Infinity)))){
return (false);
};
_setInternal(_arg1, _value, _arg2, _arg3.toString());
return (true);
}
public function renderUrlString():String{
var _local1:Array;
var _local2:String;
_local1 = [];
for (_local2 in _projectData) {
if (hasProject(Number(_local2))){
_local1.push((_local2 + _renderProject(_projectData[_local2])));
};
};
return (_local1.join(""));
}
private function _getInternal(_arg1:Number, _arg2:String, _arg3:Number):Object{
if (((hasProject(_arg1)) && (!((_projectData[_arg1][_arg2] == undefined))))){
return (_projectData[_arg1][_arg2][_arg3]);
};
return (undefined);
}
public function setKey(_arg1:Number, _arg2:Number, _arg3:String):Boolean{
_setInternal(_arg1, _key, _arg2, _arg3);
return (true);
}
public function getValue(_arg1:Number, _arg2:Number){
var _local3:*;
_local3 = _getInternal(_arg1, _value, _arg2);
if (_local3 == null){
return (null);
};
return (Number(_local3));
}
private function _renderProject(_arg1:Object):String{
var _local2:String;
var _local3:Boolean;
var _local4:int;
var _local5:Array;
var _local6:int;
_local2 = "";
_local3 = false;
_local6 = _set.length;
_local4 = 0;
while (_local4 < _local6) {
_local5 = _arg1[_set[_local4]];
if (_local5){
if (_local3){
_local2 = (_local2 + _set[_local4]);
};
_local2 = (_local2 + _renderDataType(_local5));
_local3 = false;
} else {
_local3 = true;
};
_local4++;
};
return (_local2);
}
private function _escapeExtensibleValue(_arg1:String):String{
var _local2:String;
var _local3:int;
var _local4:String;
var _local5:String;
_local2 = "";
_local3 = 0;
while (_local3 < _arg1.length) {
_local4 = _arg1.charAt(_local3);
_local5 = _escapeCharMap[_local4];
if (_local5){
_local2 = (_local2 + _local5);
} else {
_local2 = (_local2 + _local4);
};
_local3++;
};
return (_local2);
}
}
}//package com.google.analytics.data
Section 33
//_Style (com.google.analytics.debug._Style)
package com.google.analytics.debug {
import flash.net.*;
import flash.text.*;
public class _Style {
public var borderColor:uint;
public var backgroundColor:uint;
private var _sheet:StyleSheet;
public var roundedCorner:uint;
public var alertColor:uint;
public var infoColor:uint;
public var successColor:uint;
private var _loader:URLLoader;
public var failureColor:uint;
private var _defaultSheet:String;
public var warningColor:uint;
public function _Style(){
_sheet = new StyleSheet();
_loader = new URLLoader();
_init();
}
private function _parseSheet(_arg1:String):void{
_sheet.parseCSS(_arg1);
}
public function get sheet():StyleSheet{
return (_sheet);
}
private function _init():void{
_defaultSheet = "";
_defaultSheet = (_defaultSheet + "a{text-decoration: underline;}\n");
_defaultSheet = (_defaultSheet + ".uiLabel{color: #000000;font-family: Arial;font-size: 12;margin-left: 2;margin-right: 2;}\n");
_defaultSheet = (_defaultSheet + ".uiWarning{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiAlert{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiInfo{color: #000000;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiSuccess{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiFailure{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiAlertAction{color: #ffffff;text-align: center;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiAlertTitle{color: #ffffff;font-family: Arial;font-size: 16;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + "\n");
roundedCorner = 6;
backgroundColor = 0xCCCCCC;
borderColor = 0x555555;
infoColor = 16777113;
alertColor = 0xFFCC00;
warningColor = 0xCC0000;
successColor = 0xFF00;
failureColor = 0xFF0000;
_parseSheet(_defaultSheet);
}
}
}//package com.google.analytics.debug
Section 34
//Alert (com.google.analytics.debug.Alert)
package com.google.analytics.debug {
import flash.events.*;
public class Alert extends Label {
public var actionOnNextLine:Boolean;// = true
public var autoClose:Boolean;// = true
private var _actions:Array;
public function Alert(_arg1:String, _arg2:Array, _arg3:String="uiAlert", _arg4:uint=0, _arg5:Align=null, _arg6:Boolean=false, _arg7:Boolean=true){
var _local8:int;
autoClose = true;
actionOnNextLine = true;
if (_arg4 == 0){
_arg4 = Style.alertColor;
};
if (_arg5 == null){
_arg5 = Align.center;
};
super(_arg1, _arg3, _arg4, _arg5, _arg6);
this.selectable = true;
super.mouseChildren = true;
this.buttonMode = true;
this.mouseEnabled = true;
this.useHandCursor = true;
this.actionOnNextLine = _arg7;
_actions = [];
_local8 = 0;
while (_local8 < _arg2.length) {
_arg2[_local8].container = this;
_actions.push(_arg2[_local8]);
_local8++;
};
}
protected function getAction(_arg1:String):AlertAction{
var _local2:int;
_local2 = 0;
while (_local2 < _actions.length) {
if (_arg1 == _actions[_local2].activator){
return (_actions[_local2]);
};
_local2++;
};
return (null);
}
override protected function layout():void{
super.layout();
_defineActions();
}
protected function spaces(_arg1:int):String{
var _local2:String;
var _local3:String;
var _local4:int;
_local2 = "";
_local3 = " ";
_local4 = 0;
while (_local4 < (_arg1 + 1)) {
_local2 = (_local2 + _local3);
_local4++;
};
return (_local2);
}
override public function onLink(_arg1:TextEvent):void{
var _local2:AlertAction;
if (isValidAction(_arg1.text)){
_local2 = getAction(_arg1.text);
if (_local2){
_local2.execute();
};
};
if (autoClose){
close();
};
}
protected function isValidAction(_arg1:String):Boolean{
var _local2:int;
_local2 = 0;
while (_local2 < _actions.length) {
if (_arg1 == _actions[_local2].activator){
return (true);
};
_local2++;
};
return (false);
}
private function _defineActions():void{
var _local1:String;
var _local2:Array;
var _local3:AlertAction;
var _local4:int;
_local1 = "";
if (actionOnNextLine){
_local1 = (_local1 + "\n");
} else {
_local1 = (_local1 + " |");
};
_local1 = (_local1 + " ");
_local2 = [];
_local4 = 0;
while (_local4 < _actions.length) {
_local3 = _actions[_local4];
_local2.push((((("<a href=\"event:" + _local3.activator) + "\">") + _local3.name) + "</a>"));
_local4++;
};
_local1 = (_local1 + _local2.join(" | "));
appendText(_local1, "uiAlertAction");
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 35
//AlertAction (com.google.analytics.debug.AlertAction)
package com.google.analytics.debug {
public class AlertAction {
public var container:Alert;
private var _callback;
public var name:String;
public var activator:String;
public function AlertAction(_arg1:String, _arg2:String, _arg3){
this.name = _arg1;
this.activator = _arg2;
_callback = _arg3;
}
public function execute():void{
if (_callback){
if ((_callback is Function)){
(_callback as Function)();
} else {
if ((_callback is String)){
var _local1 = container;
_local1[_callback]();
};
};
};
}
}
}//package com.google.analytics.debug
Section 36
//Align (com.google.analytics.debug.Align)
package com.google.analytics.debug {
public class Align {
private var _value:int;
private var _name:String;
public static const bottomRight:Align = new Align(18, "bottomRight");
;
public static const right:Align = new Align(16, "right");
;
public static const left:Align = new Align(32, "left");
;
public static const topRight:Align = new Align(17, "topRight");
;
public static const bottom:Align = new Align(2, "bottom");
;
public static const bottomLeft:Align = new Align(34, "bottomLeft");
;
public static const topLeft:Align = new Align(33, "topLeft");
;
public static const center:Align = new Align(0x0100, "center");
;
public static const none:Align = new Align(0, "none");
;
public static const top:Align = new Align(1, "top");
;
public function Align(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.debug
Section 37
//Background (com.google.analytics.debug.Background)
package com.google.analytics.debug {
import flash.display.*;
public class Background {
public static function drawRounded(_arg1, _arg2:Graphics, _arg3:uint=0, _arg4:uint=0):void{
var _local5:uint;
var _local6:uint;
var _local7:uint;
_local7 = Style.roundedCorner;
if ((((_arg3 > 0)) && ((_arg4 > 0)))){
_local5 = _arg3;
_local6 = _arg4;
} else {
_local5 = _arg1.width;
_local6 = _arg1.height;
};
if (((_arg1.stickToEdge) && (!((_arg1.alignement == Align.none))))){
switch (_arg1.alignement){
case Align.top:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, _local7, _local7);
break;
case Align.topLeft:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, 0, _local7);
break;
case Align.topRight:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, _local7, 0);
break;
case Align.bottom:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, _local7, 0, 0);
break;
case Align.bottomLeft:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, _local7, 0, 0);
break;
case Align.bottomRight:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, 0, 0, 0);
break;
case Align.left:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, _local7, 0, _local7);
break;
case Align.right:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, 0, _local7, 0);
break;
case Align.center:
_arg2.drawRoundRect(0, 0, _local5, _local6, _local7, _local7);
break;
};
} else {
_arg2.drawRoundRect(0, 0, _local5, _local6, _local7, _local7);
};
}
}
}//package com.google.analytics.debug
Section 38
//Debug (com.google.analytics.debug.Debug)
package com.google.analytics.debug {
import flash.events.*;
import flash.ui.*;
public class Debug extends Label {
private var _lines:Array;
private var _preferredForcedWidth:uint;// = 540
private var _linediff:int;// = 0
public var maxLines:uint;// = 16
public static var count:uint = 0;
public function Debug(_arg1:uint=0, _arg2:Align=null, _arg3:Boolean=false){
if (_arg2 == null){
_arg2 = Align.bottom;
};
super("", "uiLabel", _arg1, _arg2, _arg3);
this.name = ("Debug" + count++);
_lines = [];
selectable = true;
addEventListener(KeyboardEvent.KEY_DOWN, onKey);
}
public function writeBold(_arg1:String):void{
write(_arg1, true);
}
private function _getLinesToDisplay(_arg1:int=0):Array{
var _local2:Array;
var _local3:uint;
var _local4:uint;
if ((_lines.length - 1) > maxLines){
if ((_linediff <= 0)){
_linediff = (_linediff + _arg1);
} else {
if ((((_linediff > 0)) && ((_arg1 < 0)))){
_linediff = (_linediff + _arg1);
};
};
_local3 = ((_lines.length - maxLines) + _linediff);
_local4 = (_local3 + maxLines);
_local2 = _lines.slice(_local3, _local4);
} else {
_local2 = _lines;
};
return (_local2);
}
private function onKey(_arg1:KeyboardEvent=null):void{
var _local2:Array;
switch (_arg1.keyCode){
case Keyboard.DOWN:
_local2 = _getLinesToDisplay(1);
break;
case Keyboard.UP:
_local2 = _getLinesToDisplay(-1);
break;
default:
_local2 = null;
};
if (_local2 == null){
return;
};
text = _local2.join("\n");
}
override public function get forcedWidth():uint{
if (this.parent){
if (UISprite(this.parent).forcedWidth > _preferredForcedWidth){
return (_preferredForcedWidth);
};
return (UISprite(this.parent).forcedWidth);
//unresolved jump
};
return (super.forcedWidth);
}
public function write(_arg1:String, _arg2:Boolean=false):void{
var _local3:Array;
if (_arg1.indexOf("") > -1){
_local3 = _arg1.split("\n");
} else {
_local3 = [_arg1];
};
var _local4 = "";
var _local5 = "";
if (_arg2){
_local4 = "<b>";
_local5 = "</b>";
};
var _local6:int;
while (_local6 < _local3.length) {
_lines.push(((_local4 + _local3[_local6]) + _local5));
_local6++;
};
var _local7:Array = _getLinesToDisplay();
text = _local7.join("\n");
}
public function close():void{
dispose();
}
override protected function dispose():void{
removeEventListener(KeyboardEvent.KEY_DOWN, onKey);
super.dispose();
}
}
}//package com.google.analytics.debug
Section 39
//DebugConfiguration (com.google.analytics.debug.DebugConfiguration)
package com.google.analytics.debug {
import com.google.analytics.core.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
public class DebugConfiguration {
public var showHideKey:Number;
private var _mode:VisualDebugMode;
private var _verbose:Boolean;// = false
public var destroyKey:Number;
public var GIFRequests:Boolean;// = false
public var showInfos:Boolean;// = true
public var infoTimeout:Number;// = 1000
public var minimizedOnStart:Boolean;// = false
private var _active:Boolean;// = false
public var traceOutput:Boolean;// = false
public var layout:ILayout;
public var warningTimeout:Number;// = 1500
public var javascript:Boolean;// = false
public var showWarnings:Boolean;// = true
private var _visualInitialized:Boolean;// = false
public function DebugConfiguration(){
_mode = VisualDebugMode.basic;
showHideKey = Keyboard.SPACE;
destroyKey = Keyboard.BACKSPACE;
super();
}
public function get verbose():Boolean{
return (_verbose);
}
public function set verbose(_arg1:Boolean):void{
_verbose = _arg1;
}
public function set mode(_arg1):void{
if ((_arg1 is String)){
switch (_arg1){
case "geek":
_arg1 = VisualDebugMode.geek;
break;
case "advanced":
_arg1 = VisualDebugMode.advanced;
break;
case "basic":
default:
_arg1 = VisualDebugMode.basic;
};
};
_mode = _arg1;
}
public function success(_arg1:String):void{
if (layout){
layout.createSuccessAlert(_arg1);
};
if (traceOutput){
trace((("[+] " + _arg1) + " !!"));
};
}
public function get active():Boolean{
return (_active);
}
private function _initializeVisual():void{
if (layout){
layout.init();
_visualInitialized = true;
};
}
private function _destroyVisual():void{
if (((layout) && (_visualInitialized))){
layout.destroy();
};
}
public function warning(_arg1:String, _arg2:VisualDebugMode=null):void{
if (_filter(_arg2)){
return;
};
if (((layout) && (showWarnings))){
layout.createWarning(_arg1);
};
if (traceOutput){
trace((("## " + _arg1) + " ##"));
};
}
private function _filter(_arg1:VisualDebugMode=null):Boolean{
return (((_arg1) && ((int(_arg1) >= int(this.mode)))));
}
public function failure(_arg1:String):void{
if (layout){
layout.createFailureAlert(_arg1);
};
if (traceOutput){
trace((("[-] " + _arg1) + " !!"));
};
}
public function get mode(){
return (_mode);
}
public function set active(_arg1:Boolean):void{
_active = _arg1;
if (_active){
_initializeVisual();
} else {
_destroyVisual();
};
}
protected function trace(_arg1:String):void{
var _local7:Array;
var _local8:int;
var _local2:Array = [];
var _local3 = "";
var _local4 = "";
if (this.mode == VisualDebugMode.geek){
_local3 = (getTimer() + " - ");
_local4 = (new Array(_local3.length).join(" ") + " ");
};
if (_arg1.indexOf("\n") > -1){
_local7 = _arg1.split("\n");
_local8 = 0;
while (_local8 < _local7.length) {
if (_local7[_local8] == ""){
} else {
if (_local8 == 0){
_local2.push((_local3 + _local7[_local8]));
} else {
_local2.push((_local4 + _local7[_local8]));
};
};
_local8++;
};
} else {
_local2.push((_local3 + _arg1));
};
var _local5:int = _local2.length;
var _local6:int;
while (_local6 < _local5) {
trace(_local2[_local6]);
_local6++;
};
}
public function alert(_arg1:String):void{
if (layout){
layout.createAlert(_arg1);
};
if (traceOutput){
trace((("!! " + _arg1) + " !!"));
};
}
public function info(_arg1:String, _arg2:VisualDebugMode=null):void{
if (_filter(_arg2)){
return;
};
if (((layout) && (showInfos))){
layout.createInfo(_arg1);
};
if (traceOutput){
trace(_arg1);
};
}
public function alertGifRequest(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void{
if (layout){
layout.createGIFRequestAlert(_arg1, _arg2, _arg3);
};
if (traceOutput){
trace(((">> " + _arg1) + " <<"));
};
}
}
}//package com.google.analytics.debug
Section 40
//FailureAlert (com.google.analytics.debug.FailureAlert)
package com.google.analytics.debug {
public class FailureAlert extends Alert {
public function FailureAlert(_arg1:DebugConfiguration, _arg2:String, _arg3:Array){
var _local4:Align;
var _local5:Boolean;
var _local6:Boolean;
_local4 = Align.bottomLeft;
_local5 = true;
_local6 = false;
if (_arg1.verbose){
_arg2 = ((("<u><span class=\"uiAlertTitle\">Failure</span>" + spaces(18)) + "</u>\n\n") + _arg2);
_local4 = Align.center;
_local5 = false;
_local6 = true;
};
super(_arg2, _arg3, "uiFailure", Style.failureColor, _local4, _local5, _local6);
}
}
}//package com.google.analytics.debug
Section 41
//GIFRequestAlert (com.google.analytics.debug.GIFRequestAlert)
package com.google.analytics.debug {
public class GIFRequestAlert extends Alert {
public function GIFRequestAlert(_arg1:String, _arg2:Array){
super(_arg1, _arg2);
}
}
}//package com.google.analytics.debug
Section 42
//ILayout (com.google.analytics.debug.ILayout)
package com.google.analytics.debug {
import com.google.analytics.core.*;
import flash.net.*;
import flash.display.*;
public interface ILayout {
function createWarning(_arg1:String):void;
function addToStage(_arg1:DisplayObject):void;
function createGIFRequestAlert(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void;
function createPanel(_arg1:String, _arg2:uint, _arg3:uint):void;
function createInfo(_arg1:String):void;
function createFailureAlert(_arg1:String):void;
function addToPanel(_arg1:String, _arg2:DisplayObject):void;
function init():void;
function createSuccessAlert(_arg1:String):void;
function createVisualDebug():void;
function createAlert(_arg1:String):void;
function destroy():void;
function bringToFront(_arg1:DisplayObject):void;
function isAvailable():Boolean;
}
}//package com.google.analytics.debug
Section 43
//Info (com.google.analytics.debug.Info)
package com.google.analytics.debug {
import flash.events.*;
import flash.utils.*;
public class Info extends Label {
private var _timer:Timer;
public function Info(_arg1:String="", _arg2:uint=3000){
super(_arg1, "uiInfo", Style.infoColor, Align.top, true);
if (_arg2 > 0){
_timer = new Timer(_arg2, 1);
_timer.start();
_timer.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete, false, 0, true);
};
}
public function onComplete(_arg1:TimerEvent):void{
close();
}
override public function onLink(_arg1:TextEvent):void{
switch (_arg1.text){
case "hide":
close();
break;
};
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 44
//Label (com.google.analytics.debug.Label)
package com.google.analytics.debug {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class Label extends UISprite {
private var _color:uint;
private var _background:Shape;
private var _textField:TextField;
public var stickToEdge:Boolean;
private var _text:String;
protected var selectable:Boolean;
private var _tag:String;
public static var count:uint = 0;
public function Label(_arg1:String="", _arg2:String="uiLabel", _arg3:uint=0, _arg4:Align=null, _arg5:Boolean=false){
this.name = ("Label" + count++);
selectable = false;
_background = new Shape();
_textField = new TextField();
_text = _arg1;
_tag = _arg2;
if (_arg4 == null){
_arg4 = Align.none;
};
this.alignement = _arg4;
this.stickToEdge = _arg5;
if (_arg3 == 0){
_arg3 = Style.backgroundColor;
};
_color = _arg3;
_textField.addEventListener(TextEvent.LINK, onLink);
}
public function get tag():String{
return (_tag);
}
private function _draw():void{
var _local1:Graphics = _background.graphics;
_local1.clear();
_local1.beginFill(_color);
var _local2:uint = _textField.width;
var _local3:uint = _textField.height;
if (forcedWidth > 0){
_local2 = forcedWidth;
};
Background.drawRounded(this, _local1, _local2, _local3);
_local1.endFill();
}
public function get text():String{
return (_textField.text);
}
public function appendText(_arg1:String, _arg2:String=""):void{
if (_arg1 == ""){
return;
};
if (_arg2 == ""){
_arg2 = tag;
};
_textField.htmlText = (_textField.htmlText + (((("<span class=\"" + _arg2) + "\">") + _arg1) + "</span>"));
_text = (_text + _arg1);
_draw();
resize();
}
public function set text(_arg1:String):void{
if (_arg1 == ""){
_arg1 = _text;
};
_textField.htmlText = (((("<span class=\"" + tag) + "\">") + _arg1) + "</span>");
_text = _arg1;
_draw();
resize();
}
override protected function layout():void{
_textField.type = TextFieldType.DYNAMIC;
_textField.autoSize = TextFieldAutoSize.LEFT;
_textField.background = false;
_textField.selectable = selectable;
_textField.multiline = true;
_textField.styleSheet = Style.sheet;
this.text = _text;
addChild(_background);
addChild(_textField);
}
public function set tag(_arg1:String):void{
_tag = _arg1;
text = "";
}
public function onLink(_arg1:TextEvent):void{
}
override protected function dispose():void{
_textField.removeEventListener(TextEvent.LINK, onLink);
super.dispose();
}
}
}//package com.google.analytics.debug
Section 45
//Layout (com.google.analytics.debug.Layout)
package com.google.analytics.debug {
import com.google.analytics.core.*;
import flash.net.*;
import flash.events.*;
import flash.display.*;
import com.google.analytics.*;
public class Layout implements ILayout {
private var _display:DisplayObject;
private var _infoQueue:Array;
private var _maxCharPerLine:int;// = 85
private var _hasInfo:Boolean;
private var _warningQueue:Array;
private var _hasDebug:Boolean;
private var _hasWarning:Boolean;
private var _mainPanel:Panel;
private var _GRAlertQueue:Array;
private var _debug:DebugConfiguration;
public var visualDebug:Debug;
private var _hasGRAlert:Boolean;
public function Layout(_arg1:DebugConfiguration, _arg2:DisplayObject){
_display = _arg2;
_debug = _arg1;
_hasWarning = false;
_hasInfo = false;
_hasDebug = false;
_hasGRAlert = false;
_warningQueue = [];
_infoQueue = [];
_GRAlertQueue = [];
}
private function onKey(_arg1:KeyboardEvent=null):void{
switch (_arg1.keyCode){
case _debug.showHideKey:
_mainPanel.visible = !(_mainPanel.visible);
break;
case _debug.destroyKey:
destroy();
break;
};
}
public function createWarning(_arg1:String):void{
if (((_hasWarning) || (!(isAvailable())))){
_warningQueue.push(_arg1);
return;
};
_arg1 = _filterMaxChars(_arg1);
_hasWarning = true;
var _local2:Warning = new Warning(_arg1, _debug.warningTimeout);
addToPanel("analytics", _local2);
_local2.addEventListener(Event.REMOVED_FROM_STAGE, _clearWarning, false, 0, true);
if (_hasDebug){
visualDebug.writeBold(_arg1);
};
}
public function bringToFront(_arg1:DisplayObject):void{
_display.stage.setChildIndex(_arg1, (_display.stage.numChildren - 1));
}
public function createFailureAlert(_arg1:String):void{
var _local2:AlertAction;
if (_debug.verbose){
_arg1 = _filterMaxChars(_arg1);
_local2 = new AlertAction("Close", "close", "close");
} else {
_local2 = new AlertAction("X", "close", "close");
};
var _local3:Alert = new FailureAlert(_debug, _arg1, [_local2]);
addToPanel("analytics", _local3);
if (_hasDebug){
if (_debug.verbose){
_arg1 = _arg1.split("\n").join("");
_arg1 = _filterMaxChars(_arg1, 66);
};
visualDebug.writeBold(_arg1);
};
}
public function init():void{
var _local1 = 10;
var _local2:uint = (_display.stage.stageWidth - (_local1 * 2));
var _local3:uint = (_display.stage.stageHeight - (_local1 * 2));
var _local4:Panel = new Panel("analytics", _local2, _local3);
_local4.alignement = Align.top;
_local4.stickToEdge = false;
_local4.title = ("Google Analytics v" + GATracker.version);
_mainPanel = _local4;
addToStage(_local4);
bringToFront(_local4);
if (_debug.minimizedOnStart){
_mainPanel.onToggle();
};
createVisualDebug();
_display.stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey, false, 0, true);
}
public function addToPanel(_arg1:String, _arg2:DisplayObject):void{
var _local4:Panel;
var _local3:DisplayObject = _display.stage.getChildByName(_arg1);
if (_local3){
_local4 = (_local3 as Panel);
_local4.addData(_arg2);
} else {
trace((("panel \"" + _arg1) + "\" not found"));
};
}
private function _clearInfo(_arg1:Event):void{
_hasInfo = false;
if (_infoQueue.length > 0){
createInfo(_infoQueue.shift());
};
}
private function _filterMaxChars(_arg1:String, _arg2:int=0):String{
var _local6:String;
var _local3 = "\n";
var _local4:Array = [];
var _local5:Array = _arg1.split(_local3);
if (_arg2 == 0){
_arg2 = _maxCharPerLine;
};
var _local7:int;
while (_local7 < _local5.length) {
_local6 = _local5[_local7];
while (_local6.length > _arg2) {
_local4.push(_local6.substr(0, _arg2));
_local6 = _local6.substring(_arg2);
};
_local4.push(_local6);
_local7++;
};
return (_local4.join(_local3));
}
private function _clearGRAlert(_arg1:Event):void{
_hasGRAlert = false;
if (_GRAlertQueue.length > 0){
createGIFRequestAlert.apply(this, _GRAlertQueue.shift());
};
}
public function createSuccessAlert(_arg1:String):void{
var _local2:AlertAction;
if (_debug.verbose){
_arg1 = _filterMaxChars(_arg1);
_local2 = new AlertAction("Close", "close", "close");
} else {
_local2 = new AlertAction("X", "close", "close");
};
var _local3:Alert = new SuccessAlert(_debug, _arg1, [_local2]);
addToPanel("analytics", _local3);
if (_hasDebug){
if (_debug.verbose){
_arg1 = _arg1.split("\n").join("");
_arg1 = _filterMaxChars(_arg1, 66);
};
visualDebug.writeBold(_arg1);
};
}
public function isAvailable():Boolean{
return (!((_display.stage == null)));
}
public function createAlert(_arg1:String):void{
_arg1 = _filterMaxChars(_arg1);
var _local2:Alert = new Alert(_arg1, [new AlertAction("Close", "close", "close")]);
addToPanel("analytics", _local2);
if (_hasDebug){
visualDebug.writeBold(_arg1);
};
}
public function createInfo(_arg1:String):void{
if (((_hasInfo) || (!(isAvailable())))){
_infoQueue.push(_arg1);
return;
};
_arg1 = _filterMaxChars(_arg1);
_hasInfo = true;
var _local2:Info = new Info(_arg1, _debug.infoTimeout);
addToPanel("analytics", _local2);
_local2.addEventListener(Event.REMOVED_FROM_STAGE, _clearInfo, false, 0, true);
if (_hasDebug){
visualDebug.write(_arg1);
};
}
public function createGIFRequestAlert(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void{
var message = _arg1;
var request = _arg2;
var ref = _arg3;
if (_hasGRAlert){
_GRAlertQueue.push([message, request, ref]);
return;
};
_hasGRAlert = true;
var f:Function = function ():void{
ref.sendRequest(request);
};
message = _filterMaxChars(message);
var gra:GIFRequestAlert = new GIFRequestAlert(message, [new AlertAction("OK", "ok", f), new AlertAction("Cancel", "cancel", "close")]);
addToPanel("analytics", gra);
gra.addEventListener(Event.REMOVED_FROM_STAGE, _clearGRAlert, false, 0, true);
if (_hasDebug){
if (_debug.verbose){
message = message.split("\n").join("");
message = _filterMaxChars(message, 66);
};
visualDebug.write(message);
};
}
public function createVisualDebug():void{
if (!visualDebug){
visualDebug = new Debug();
visualDebug.alignement = Align.bottom;
visualDebug.stickToEdge = true;
addToPanel("analytics", visualDebug);
_hasDebug = true;
};
}
public function addToStage(_arg1:DisplayObject):void{
_display.stage.addChild(_arg1);
}
private function _clearWarning(_arg1:Event):void{
_hasWarning = false;
if (_warningQueue.length > 0){
createWarning(_warningQueue.shift());
};
}
public function createPanel(_arg1:String, _arg2:uint, _arg3:uint):void{
var _local4:Panel = new Panel(_arg1, _arg2, _arg3);
_local4.alignement = Align.center;
_local4.stickToEdge = false;
addToStage(_local4);
bringToFront(_local4);
}
public function destroy():void{
_mainPanel.close();
_debug.layout = null;
}
}
}//package com.google.analytics.debug
Section 46
//Margin (com.google.analytics.debug.Margin)
package com.google.analytics.debug {
public class Margin {
public var bottom:int;
public var top:int;
public var right:int;
public var left:int;
public function Margin(_arg1:int=0, _arg2:int=0, _arg3:int=0, _arg4:int=0){
this.top = _arg1;
this.bottom = _arg2;
this.left = _arg3;
this.right = _arg4;
}
}
}//package com.google.analytics.debug
Section 47
//Panel (com.google.analytics.debug.Panel)
package com.google.analytics.debug {
import flash.events.*;
import flash.display.*;
public class Panel extends UISprite {
private var _savedH:uint;
private var _data:UISprite;
private var _mask:Sprite;
private var _background:Shape;
private var _savedW:uint;
private var _stickToEdge:Boolean;
private var _border:Shape;
private var _borderColor:uint;
protected var baseAlpha:Number;
private var _backgroundColor:uint;
private var _title:Label;
private var _colapsed:Boolean;
private var _name:String;
public function Panel(_arg1:String, _arg2:uint, _arg3:uint, _arg4:uint=0, _arg5:uint=0, _arg6:Number=0.3, _arg7:Align=null, _arg8:Boolean=false){
_name = _arg1;
this.name = _arg1;
this.mouseEnabled = false;
_colapsed = false;
forcedWidth = _arg2;
forcedHeight = _arg3;
this.baseAlpha = _arg6;
_background = new Shape();
_data = new UISprite();
_data.forcedWidth = _arg2;
_data.forcedHeight = _arg3;
_data.mouseEnabled = false;
_title = new Label(_arg1, "uiLabel", 0xFFFFFF, Align.topLeft, _arg8);
_title.buttonMode = true;
_title.margin.top = 0.6;
_title.margin.left = 0.6;
_title.addEventListener(MouseEvent.CLICK, onToggle);
_title.mouseChildren = false;
_border = new Shape();
_mask = new Sprite();
_mask.useHandCursor = false;
_mask.mouseEnabled = false;
_mask.mouseChildren = false;
if (_arg7 == null){
_arg7 = Align.none;
};
this.alignement = _arg7;
this.stickToEdge = _arg8;
if (_arg4 == 0){
_arg4 = Style.backgroundColor;
};
_backgroundColor = _arg4;
if (_arg5 == 0){
_arg5 = Style.borderColor;
};
_borderColor = _arg5;
}
public function get stickToEdge():Boolean{
return (_stickToEdge);
}
public function onToggle(_arg1:MouseEvent=null):void{
if (_colapsed){
_data.visible = true;
} else {
_data.visible = false;
};
_colapsed = !(_colapsed);
_update();
resize();
}
public function set stickToEdge(_arg1:Boolean):void{
_stickToEdge = _arg1;
_title.stickToEdge = _arg1;
}
override protected function dispose():void{
_title.removeEventListener(MouseEvent.CLICK, onToggle);
super.dispose();
}
private function _draw():void{
var _local1:uint;
var _local2:uint;
if (((_savedW) && (_savedH))){
forcedWidth = _savedW;
forcedHeight = _savedH;
};
if (!_colapsed){
_local1 = forcedWidth;
_local2 = forcedHeight;
} else {
_local1 = _title.width;
_local2 = _title.height;
_savedW = forcedWidth;
_savedH = forcedHeight;
forcedWidth = _local1;
forcedHeight = _local2;
};
var _local3:Graphics = _background.graphics;
_local3.clear();
_local3.beginFill(_backgroundColor);
Background.drawRounded(this, _local3, _local1, _local2);
_local3.endFill();
var _local4:Graphics = _data.graphics;
_local4.clear();
_local4.beginFill(_backgroundColor, 0);
Background.drawRounded(this, _local4, _local1, _local2);
_local4.endFill();
var _local5:Graphics = _border.graphics;
_local5.clear();
_local5.lineStyle(0.1, _borderColor);
Background.drawRounded(this, _local5, _local1, _local2);
_local5.endFill();
var _local6:Graphics = _mask.graphics;
_local6.clear();
_local6.beginFill(_backgroundColor);
Background.drawRounded(this, _local6, (_local1 + 1), (_local2 + 1));
_local6.endFill();
}
public function get title():String{
return (_title.text);
}
private function _update():void{
_draw();
if (baseAlpha < 1){
_background.alpha = baseAlpha;
_border.alpha = baseAlpha;
};
}
public function addData(_arg1:DisplayObject):void{
_data.addChild(_arg1);
}
override protected function layout():void{
_update();
addChild(_background);
addChild(_data);
addChild(_title);
addChild(_border);
addChild(_mask);
mask = _mask;
}
public function set title(_arg1:String):void{
_title.text = _arg1;
}
public function close():void{
dispose();
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 48
//Style (com.google.analytics.debug.Style)
package com.google.analytics.debug {
public const Style:_Style = new _Style();
}//package com.google.analytics.debug
Section 49
//SuccessAlert (com.google.analytics.debug.SuccessAlert)
package com.google.analytics.debug {
public class SuccessAlert extends Alert {
public function SuccessAlert(_arg1:DebugConfiguration, _arg2:String, _arg3:Array){
var _local4:Align;
var _local5:Boolean;
var _local6:Boolean;
_local4 = Align.bottomLeft;
_local5 = true;
_local6 = false;
if (_arg1.verbose){
_arg2 = ((("<u><span class=\"uiAlertTitle\">Success</span>" + spaces(18)) + "</u>\n\n") + _arg2);
_local4 = Align.center;
_local5 = false;
_local6 = true;
};
super(_arg2, _arg3, "uiSuccess", Style.successColor, _local4, _local5, _local6);
}
}
}//package com.google.analytics.debug
Section 50
//UISprite (com.google.analytics.debug.UISprite)
package com.google.analytics.debug {
import flash.events.*;
import flash.display.*;
public class UISprite extends Sprite {
private var _forcedHeight:uint;
protected var listenResize:Boolean;
public var alignement:Align;
private var _forcedWidth:uint;
public var margin:Margin;
protected var alignTarget:DisplayObject;
public function UISprite(_arg1:DisplayObject=null){
listenResize = false;
alignement = Align.none;
this.alignTarget = _arg1;
margin = new Margin();
addEventListener(Event.ADDED_TO_STAGE, _onAddedToStage);
addEventListener(Event.REMOVED_FROM_STAGE, _onRemovedFromStage);
}
protected function dispose():void{
var _local1:DisplayObject;
var _local2:int;
_local2 = 0;
while (_local2 < numChildren) {
_local1 = getChildAt(_local2);
if (_local1){
removeChild(_local1);
};
_local2++;
};
}
protected function layout():void{
}
public function get forcedHeight():uint{
if (_forcedHeight){
return (_forcedHeight);
};
return (height);
}
public function alignTo(_arg1:Align, _arg2:DisplayObject=null):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:UISprite;
if (_arg2 == null){
if ((parent is Stage)){
_arg2 = this.stage;
} else {
_arg2 = parent;
};
};
if (_arg2 == this.stage){
if (this.stage == null){
return;
};
_local3 = this.stage.stageHeight;
_local4 = this.stage.stageWidth;
_local5 = 0;
_local6 = 0;
} else {
_local7 = (_arg2 as UISprite);
if (_local7.forcedHeight){
_local3 = _local7.forcedHeight;
} else {
_local3 = _local7.height;
};
if (_local7.forcedWidth){
_local4 = _local7.forcedWidth;
} else {
_local4 = _local7.width;
};
_local5 = 0;
_local6 = 0;
};
switch (_arg1){
case Align.top:
x = ((_local4 / 2) - (forcedWidth / 2));
y = (_local6 + margin.top);
break;
case Align.bottom:
x = ((_local4 / 2) - (forcedWidth / 2));
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
case Align.left:
x = (_local5 + margin.left);
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.right:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.center:
x = ((_local4 / 2) - (forcedWidth / 2));
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.topLeft:
x = (_local5 + margin.left);
y = (_local6 + margin.top);
break;
case Align.topRight:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = (_local6 + margin.top);
break;
case Align.bottomLeft:
x = (_local5 + margin.left);
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
case Align.bottomRight:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
};
if (((!(listenResize)) && (!((_arg1 == Align.none))))){
_arg2.addEventListener(Event.RESIZE, onResize, false, 0, true);
listenResize = true;
};
this.alignement = _arg1;
this.alignTarget = _arg2;
}
public function get forcedWidth():uint{
if (_forcedWidth){
return (_forcedWidth);
};
return (width);
}
protected function onResize(_arg1:Event):void{
resize();
}
private function _onRemovedFromStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onAddedToStage);
removeEventListener(Event.REMOVED_FROM_STAGE, _onRemovedFromStage);
dispose();
}
public function resize():void{
if (alignement != Align.none){
alignTo(alignement, alignTarget);
};
}
private function _onAddedToStage(_arg1:Event):void{
layout();
resize();
}
public function set forcedHeight(_arg1:uint):void{
_forcedHeight = _arg1;
}
public function set forcedWidth(_arg1:uint):void{
_forcedWidth = _arg1;
}
}
}//package com.google.analytics.debug
Section 51
//Warning (com.google.analytics.debug.Warning)
package com.google.analytics.debug {
import flash.events.*;
import flash.utils.*;
public class Warning extends Label {
private var _timer:Timer;
public function Warning(_arg1:String="", _arg2:uint=3000){
super(_arg1, "uiWarning", Style.warningColor, Align.top, false);
margin.top = 32;
if (_arg2 > 0){
_timer = new Timer(_arg2, 1);
_timer.start();
_timer.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete, false, 0, true);
};
}
public function onComplete(_arg1:TimerEvent):void{
close();
}
override public function onLink(_arg1:TextEvent):void{
switch (_arg1.text){
case "hide":
close();
break;
};
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 52
//VisualDebugMode (com.google.analytics.debug.VisualDebugMode)
package com.google.analytics.debug {
public class VisualDebugMode {
private var _value:int;
private var _name:String;
public static const advanced:VisualDebugMode = new VisualDebugMode(1, "advanced");
;
public static const geek:VisualDebugMode = new VisualDebugMode(2, "geek");
;
public static const basic:VisualDebugMode = new VisualDebugMode(0, "basic");
;
public function VisualDebugMode(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.debug
Section 53
//AnalyticsEvent (com.google.analytics.events.AnalyticsEvent)
package com.google.analytics.events {
import flash.events.*;
import com.google.analytics.*;
public class AnalyticsEvent extends Event {
public var tracker:AnalyticsTracker;
public static const READY:String = "ready";
public function AnalyticsEvent(_arg1:String, _arg2:AnalyticsTracker, _arg3:Boolean=false, _arg4:Boolean=false){
super(_arg1, _arg3, _arg4);
this.tracker = _arg2;
}
override public function clone():Event{
return (new AnalyticsEvent(type, tracker, bubbles, cancelable));
}
}
}//package com.google.analytics.events
Section 54
//AdSenseGlobals (com.google.analytics.external.AdSenseGlobals)
package com.google.analytics.external {
import com.google.analytics.debug.*;
public class AdSenseGlobals extends JavascriptProxy {
private var _gaGlobalVerified:Boolean;// = false
public static var gaGlobal_js:XML = <script>
<![CDATA[
function()
{
try
{
gaGlobal
}
catch(e)
{
gaGlobal = {} ;
}
}
]]>
</script>
;
public function AdSenseGlobals(_arg1:DebugConfiguration){
_gaGlobalVerified = false;
super(_arg1);
}
public function set vid(_arg1:String):void{
if (!isAvailable()){
return;
};
_verify();
setProperty("gaGlobal.vid", _arg1);
}
public function get hid():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.hid"));
}
public function get dh():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.dh"));
}
public function get gaGlobal():Object{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal"));
}
public function set hid(_arg1:String):void{
if (!isAvailable()){
return;
};
_verify();
setProperty("gaGlobal.hid", _arg1);
}
public function get sid():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.sid"));
}
private function _verify():void{
if (!_gaGlobalVerified){
executeBlock(gaGlobal_js);
_gaGlobalVerified = true;
};
}
public function get vid():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.vid"));
}
public function set sid(_arg1:String):void{
if (!isAvailable()){
return;
};
_verify();
setProperty("gaGlobal.sid", _arg1);
}
}
}//package com.google.analytics.external
Section 55
//HTMLDOM (com.google.analytics.external.HTMLDOM)
package com.google.analytics.external {
import com.google.analytics.debug.*;
public class HTMLDOM extends JavascriptProxy {
private var _referrer:String;
private var _protocol:String;
private var _host:String;
private var _location:String;
private var _pathname:String;
private var _title:String;
private var _characterSet:String;
private var _search:String;
private var _language:String;
private var _colorDepth:String;
public static var cache_properties_js:XML = <script>
<![CDATA[
function()
{
var obj = {};
obj.host = document.location.host;
obj.language = navigator.language ? navigator.language : navigator.browserLanguage;
obj.characterSet = document.characterSet ? document.characterSet : document.charset;
obj.colorDepth = window.screen.colorDepth;
obj.location = document.location.toString();
obj.pathname = document.location.pathname;
obj.protocol = document.location.protocol;
obj.search = document.location.search;
obj.referrer = document.referrer;
obj.title = document.title;
return obj;
}
]]>
</script>
;
public function HTMLDOM(_arg1:DebugConfiguration){
super(_arg1);
}
public function get search():String{
if (_search){
return (_search);
};
if (!isAvailable()){
return (null);
};
_search = getProperty("document.location.search");
return (_search);
}
public function get location():String{
if (_location){
return (_location);
};
if (!isAvailable()){
return (null);
};
_location = getPropertyString("document.location");
return (_location);
}
public function get pathname():String{
if (_pathname){
return (_pathname);
};
if (!isAvailable()){
return (null);
};
_pathname = getProperty("document.location.pathname");
return (_pathname);
}
public function get referrer():String{
if (_referrer){
return (_referrer);
};
if (!isAvailable()){
return (null);
};
_referrer = getProperty("document.referrer");
return (_referrer);
}
public function get protocol():String{
if (_protocol){
return (_protocol);
};
if (!isAvailable()){
return (null);
};
_protocol = getProperty("document.location.protocol");
return (_protocol);
}
public function cacheProperties():void{
var _local1:Object;
if (!isAvailable()){
return;
};
_local1 = call(cache_properties_js);
if (_local1){
_host = _local1.host;
_language = _local1.language;
_characterSet = _local1.characterSet;
_colorDepth = _local1.colorDepth;
_location = _local1.location;
_pathname = _local1.pathname;
_protocol = _local1.protocol;
_search = _local1.search;
_referrer = _local1.referrer;
_title = _local1.title;
};
}
public function get colorDepth():String{
if (_colorDepth){
return (_colorDepth);
};
if (!isAvailable()){
return (null);
};
_colorDepth = getProperty("window.screen.colorDepth");
return (_colorDepth);
}
public function get title():String{
if (_title){
return (_title);
};
if (!isAvailable()){
return (null);
};
_title = getProperty("document.title");
return (_title);
}
public function get host():String{
if (_host){
return (_host);
};
if (!isAvailable()){
return (null);
};
_host = getProperty("document.location.host");
return (_host);
}
public function get characterSet():String{
var _local1:String;
if (_characterSet){
return (_characterSet);
};
if (!isAvailable()){
return (null);
};
_local1 = getProperty("document.characterSet");
if (_local1 == null){
_local1 = getProperty("document.charset");
};
_characterSet = _local1;
return (_characterSet);
}
public function get language():String{
var _local1:String;
if (_language){
return (_language);
};
if (!isAvailable()){
return (null);
};
_local1 = getProperty("navigator.language");
if (_local1 == null){
_local1 = getProperty("navigator.browserLanguage");
};
_language = _local1;
return (_language);
}
}
}//package com.google.analytics.external
Section 56
//JavascriptProxy (com.google.analytics.external.JavascriptProxy)
package com.google.analytics.external {
import com.google.analytics.debug.*;
import flash.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 57
//Environment (com.google.analytics.utils.Environment)
package com.google.analytics.utils {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
import com.google.analytics.external.*;
import flash.system.*;
public class Environment {
private var _dom:HTMLDOM;
private var _appName:String;
private var _debug:DebugConfiguration;
private var _appVersion:Version;
private var _url:String;
private var _protocol:Protocols;
private var _userAgent:UserAgent;
public function Environment(_arg1:String="", _arg2:String="", _arg3:String="", _arg4:DebugConfiguration=null, _arg5:HTMLDOM=null){
var _local6:Version;
super();
if (_arg2 == ""){
if (isAIR()){
_arg2 = "AIR";
} else {
_arg2 = "Flash";
};
};
if (_arg3 == ""){
_local6 = flashVersion;
} else {
_local6 = Version.fromString(_arg3);
};
_url = _arg1;
_appName = _arg2;
_appVersion = _local6;
_debug = _arg4;
_dom = _arg5;
}
public function isAIR():Boolean{
return ((((playerType == "Desktop")) && ((Security.sandboxType.toString() == "application"))));
}
public function get playerType():String{
return (Capabilities.playerType);
}
public function get locationSearch():String{
var _local1:String;
_local1 = _dom.search;
if (_local1){
return (_local1);
};
return ("");
}
public function get protocol():Protocols{
if (!_protocol){
_findProtocol();
};
return (_protocol);
}
public function get flashVersion():Version{
var _local1:Version;
_local1 = Version.fromString(Capabilities.version.split(" ")[1], ",");
return (_local1);
}
public function get screenWidth():Number{
return (Capabilities.screenResolutionX);
}
public function get languageEncoding():String{
var _local1:String;
if (System.useCodePage){
_local1 = _dom.characterSet;
if (_local1){
return (_local1);
};
return ("-");
};
return ("UTF-8");
}
public function get appName():String{
return (_appName);
}
public function get screenColorDepth():String{
var _local1:String;
var _local2:String;
switch (Capabilities.screenColor){
case "bw":
_local1 = "1";
break;
case "gray":
_local1 = "2";
break;
case "color":
default:
_local1 = "24";
};
_local2 = _dom.colorDepth;
if (_local2){
_local1 = _local2;
};
return (_local1);
}
private function _findProtocol():void{
var _local1:Protocols;
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:String;
_local1 = Protocols.none;
if (_url != ""){
_local4 = _url.toLowerCase();
_local5 = _local4.substr(0, 5);
switch (_local5){
case "file:":
_local1 = Protocols.file;
break;
case "http:":
_local1 = Protocols.HTTP;
break;
case "https":
if (_local4.charAt(5) == ":"){
_local1 = Protocols.HTTPS;
};
break;
default:
_protocol = Protocols.none;
};
};
_local2 = _dom.protocol;
_local3 = (_local1.toString() + ":").toLowerCase();
if (((((_local2) && (!((_local2 == _local3))))) && (_debug))){
_debug.warning(((("Protocol mismatch: SWF=" + _local3) + ", DOM=") + _local2));
};
_protocol = _local1;
}
public function get locationSWFPath():String{
return (_url);
}
public function get platform():String{
var _local1:String;
_local1 = Capabilities.manufacturer;
return (_local1.split("Adobe ")[1]);
}
public function get operatingSystem():String{
return (Capabilities.os);
}
public function set appName(_arg1:String):void{
_appName = _arg1;
userAgent.applicationProduct = _arg1;
}
public function get userAgent():UserAgent{
if (!_userAgent){
_userAgent = new UserAgent(this, appName, appVersion.toString(4));
};
return (_userAgent);
}
ga_internal function set url(_arg1:String):void{
_url = _arg1;
}
public function get referrer():String{
var _local1:String;
_local1 = _dom.referrer;
if (_local1){
return (_local1);
};
if (protocol == Protocols.file){
return ("localhost");
};
return ("");
}
public function isInHTML():Boolean{
return ((Capabilities.playerType == "PlugIn"));
}
public function get language():String{
var _local1:String;
var _local2:String;
_local1 = _dom.language;
_local2 = Capabilities.language;
if (_local1){
if ((((_local1.length > _local2.length)) && ((_local1.substr(0, _local2.length) == _local2)))){
_local2 = _local1;
};
};
return (_local2);
}
public function get domainName():String{
var _local1:String;
var _local2:String;
var _local3:int;
if ((((protocol == Protocols.HTTP)) || ((protocol == Protocols.HTTPS)))){
_local1 = _url.toLowerCase();
if (protocol == Protocols.HTTP){
_local2 = _local1.split("http://").join("");
} else {
if (protocol == Protocols.HTTPS){
_local2 = _local1.split("https://").join("");
};
};
_local3 = _local2.indexOf("/");
if (_local3 > -1){
_local2 = _local2.substring(0, _local3);
};
return (_local2);
};
if (protocol == Protocols.file){
return ("localhost");
};
return ("");
}
public function set userAgent(_arg1:UserAgent):void{
_userAgent = _arg1;
}
public function set appVersion(_arg1:Version):void{
_appVersion = _arg1;
userAgent.applicationVersion = _arg1.toString(4);
}
public function get screenHeight():Number{
return (Capabilities.screenResolutionY);
}
public function get locationPath():String{
var _local1:String;
_local1 = _dom.pathname;
if (_local1){
return (_local1);
};
return ("");
}
public function get documentTitle():String{
var _local1:String;
_local1 = _dom.title;
if (_local1){
return (_local1);
};
return ("");
}
public function get appVersion():Version{
return (_appVersion);
}
}
}//package com.google.analytics.utils
Section 58
//Protocols (com.google.analytics.utils.Protocols)
package com.google.analytics.utils {
public class Protocols {
private var _value:int;
private var _name:String;
public static const none:Protocols = new Protocols(0, "none");
;
public static const HTTPS:Protocols = new Protocols(3, "HTTPS");
;
public static const file:Protocols = new Protocols(1, "file");
;
public static const HTTP:Protocols = new Protocols(2, "HTTP");
;
public function Protocols(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.utils
Section 59
//Timespan (com.google.analytics.utils.Timespan)
package com.google.analytics.utils {
public class Timespan {
public static var sixmonths:Number = 15768000;
public static var twoyears:Number = 63072000;
public static var thirtyminutes:Number = 1800;
}
}//package com.google.analytics.utils
Section 60
//URL (com.google.analytics.utils.URL)
package com.google.analytics.utils {
public class URL {
private var _url:String;
public function URL(_arg1:String=""){
_url = _arg1.toLowerCase();
}
public function get domain():String{
var _local1:Array;
if (((!((hostName == ""))) && ((hostName.indexOf(".") > -1)))){
_local1 = hostName.split(".");
switch (_local1.length){
case 2:
return (hostName);
case 3:
if (_local1[1] == "co"){
return (hostName);
};
_local1.shift();
return (_local1.join("."));
case 4:
_local1.shift();
return (_local1.join("."));
};
};
return ("");
}
public function get path():String{
var _local1:String = _url;
if (_local1.indexOf("://") > -1){
_local1 = _local1.split("://")[1];
};
if (_local1.indexOf(hostName) == 0){
_local1 = _local1.substr(hostName.length);
};
if (_local1.indexOf("?") > -1){
_local1 = _local1.split("?")[0];
};
if (_local1.charAt(0) != "/"){
_local1 = ("/" + _local1);
};
return (_local1);
}
public function get protocol():Protocols{
var _local1:String = _url.split("://")[0];
switch (_local1){
case "file":
return (Protocols.file);
case "http":
return (Protocols.HTTP);
case "https":
return (Protocols.HTTPS);
default:
return (Protocols.none);
};
}
public function get hostName():String{
var _local1:String = _url;
if (_local1.indexOf("://") > -1){
_local1 = _local1.split("://")[1];
};
if (_local1.indexOf("/") > -1){
_local1 = _local1.split("/")[0];
};
if (_local1.indexOf("?") > -1){
_local1 = _local1.split("?")[0];
};
if ((((protocol == Protocols.file)) || ((protocol == Protocols.none)))){
return ("");
};
return (_local1);
}
public function get subDomain():String{
if (((!((domain == ""))) && (!((domain == hostName))))){
return (hostName.split(("." + domain)).join(""));
};
return ("");
}
public function get search():String{
var _local1:String = _url;
if (_local1.indexOf("://") > -1){
_local1 = _local1.split("://")[1];
};
if (_local1.indexOf(hostName) == 0){
_local1 = _local1.substr(hostName.length);
};
if (_local1.indexOf("?") > -1){
_local1 = _local1.split("?")[1];
} else {
_local1 = "";
};
return (_local1);
}
}
}//package com.google.analytics.utils
Section 61
//UserAgent (com.google.analytics.utils.UserAgent)
package com.google.analytics.utils {
import com.google.analytics.core.*;
import flash.system.*;
public class UserAgent {
private var _version:Version;
private var _localInfo:Environment;
private var _applicationProduct:String;
public static var minimal:Boolean = false;
public function UserAgent(_arg1:Environment, _arg2:String="", _arg3:String=""){
_localInfo = _arg1;
applicationProduct = _arg2;
_version = Version.fromString(_arg3);
}
public function get tamarinProductToken():String{
if (UserAgent.minimal){
return ("");
};
if (System.vmVersion){
return (("Tamarin/" + Utils.trim(System.vmVersion, true)));
};
return ("");
}
public function set applicationProduct(_arg1:String):void{
_applicationProduct = _arg1;
}
public function get applicationVersion():String{
return (_version.toString(2));
}
public function get applicationProductToken():String{
var _local1:String;
_local1 = applicationProduct;
if (applicationVersion != ""){
_local1 = (_local1 + ("/" + applicationVersion));
};
return (_local1);
}
public function get vendorProductToken():String{
var _local1:String;
_local1 = "";
if (_localInfo.isAIR()){
_local1 = (_local1 + "AIR");
} else {
_local1 = (_local1 + "FlashPlayer");
};
_local1 = (_local1 + "/");
_local1 = (_local1 + _version.toString(3));
return (_local1);
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + applicationProductToken);
if (applicationComment != ""){
_local1 = (_local1 + (" " + applicationComment));
};
if (tamarinProductToken != ""){
_local1 = (_local1 + (" " + tamarinProductToken));
};
if (vendorProductToken != ""){
_local1 = (_local1 + (" " + vendorProductToken));
};
return (_local1);
}
public function get applicationComment():String{
var _local1:Array;
_local1 = [];
_local1.push(_localInfo.platform);
_local1.push(_localInfo.playerType);
if (!UserAgent.minimal){
_local1.push(_localInfo.operatingSystem);
_local1.push(_localInfo.language);
};
if (Capabilities.isDebugger){
_local1.push("DEBUG");
};
if (_local1.length > 0){
return ((("(" + _local1.join("; ")) + ")"));
};
return ("");
}
public function set applicationVersion(_arg1:String):void{
_version = Version.fromString(_arg1);
}
public function get applicationProduct():String{
return (_applicationProduct);
}
}
}//package com.google.analytics.utils
Section 62
//Variables (com.google.analytics.utils.Variables)
package com.google.analytics.utils {
import flash.net.*;
public dynamic class Variables {
public var post:Array;
public var URIencode:Boolean;
public var pre:Array;
public var sort:Boolean;// = true
public function Variables(_arg1:String=null, _arg2:Array=null, _arg3:Array=null){
pre = [];
post = [];
super();
if (_arg1){
decode(_arg1);
};
if (_arg2){
this.pre = _arg2;
};
if (_arg3){
this.post = _arg3;
};
}
private function _join(_arg1:Variables):void{
var _local2:String;
if (!_arg1){
return;
};
for (_local2 in _arg1) {
this[_local2] = _arg1[_local2];
};
}
public function join(... _args):void{
var _local2:int = _args.length;
var _local3:int;
while (_local3 < _local2) {
if (!(_args[_local3] is Variables)){
} else {
_join(_args[_local3]);
};
_local3++;
};
}
public function toString():String{
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:int;
var _local7:String;
var _local8:String;
var _local1:Array = [];
for (_local3 in this) {
_local2 = this[_local3];
if (URIencode){
_local2 = encodeURI(_local2);
};
_local1.push(((_local3 + "=") + _local2));
};
if (sort){
_local1.sort();
};
if (pre.length > 0){
pre.reverse();
_local5 = 0;
while (_local5 < pre.length) {
_local7 = pre[_local5];
_local6 = 0;
while (_local6 < _local1.length) {
_local4 = _local1[_local6];
if (_local4.indexOf(_local7) == 0){
_local1.unshift(_local1.splice(_local6, 1)[0]);
};
_local6++;
};
_local5++;
};
pre.reverse();
};
if (post.length > 0){
_local5 = 0;
while (_local5 < post.length) {
_local8 = post[_local5];
_local6 = 0;
while (_local6 < _local1.length) {
_local4 = _local1[_local6];
if (_local4.indexOf(_local8) == 0){
_local1.push(_local1.splice(_local6, 1)[0]);
};
_local6++;
};
_local5++;
};
};
return (_local1.join("&"));
}
public function decode(_arg1:String):void{
var _local2:Array;
var _local3:String;
var _local4:String;
var _local5:String;
var _local6:Array;
if (_arg1 == ""){
return;
};
if (_arg1.indexOf("&") > -1){
_local2 = _arg1.split("&");
} else {
_local2 = [_arg1];
};
var _local7:int;
while (_local7 < _local2.length) {
_local3 = _local2[_local7];
if (_local3.indexOf("=") > -1){
_local6 = _local3.split("=");
_local4 = _local6[0];
_local5 = decodeURI(_local6[1]);
this[_local4] = _local5;
};
_local7++;
};
}
public function toURLVariables():URLVariables{
var _local2:String;
var _local1:URLVariables = new URLVariables();
for (_local2 in this) {
_local1[_local2] = this[_local2];
};
return (_local1);
}
}
}//package com.google.analytics.utils
Section 63
//Version (com.google.analytics.utils.Version)
package com.google.analytics.utils {
public class Version {
private var _maxBuild:uint;// = 0xFF
private var _maxMinor:uint;// = 15
private var _maxMajor:uint;// = 15
private var _revision:uint;
private var _separator:String;// = "."
private var _maxRevision:uint;// = 0xFFFF
private var _build:uint;
private var _minor:uint;
private var _major:uint;
public function Version(_arg1:uint=0, _arg2:uint=0, _arg3:uint=0, _arg4:uint=0){
var _local5:Version;
_maxMajor = 15;
_maxMinor = 15;
_maxBuild = 0xFF;
_maxRevision = 0xFFFF;
_separator = ".";
super();
if ((((((((_arg1 > _maxMajor)) && ((_arg2 == 0)))) && ((_arg3 == 0)))) && ((_arg4 == 0)))){
_local5 = Version.fromNumber(_arg1);
_arg1 = _local5.major;
_arg2 = _local5.minor;
_arg3 = _local5.build;
_arg4 = _local5.revision;
};
this.major = _arg1;
this.minor = _arg2;
this.build = _arg3;
this.revision = _arg4;
}
public function toString(_arg1:int=0):String{
var _local2:Array;
if ((((_arg1 <= 0)) || ((_arg1 > 4)))){
_arg1 = getFields();
};
switch (_arg1){
case 1:
_local2 = [major];
break;
case 2:
_local2 = [major, minor];
break;
case 3:
_local2 = [major, minor, build];
break;
case 4:
default:
_local2 = [major, minor, build, revision];
};
return (_local2.join(_separator));
}
public function get revision():uint{
return (_revision);
}
public function set build(_arg1:uint):void{
_build = Math.min(_arg1, _maxBuild);
}
public function set minor(_arg1:uint):void{
_minor = Math.min(_arg1, _maxMinor);
}
public function get build():uint{
return (_build);
}
public function set major(_arg1:uint):void{
_major = Math.min(_arg1, _maxMajor);
}
public function get minor():uint{
return (_minor);
}
public function valueOf():uint{
return (((((major << 28) | (minor << 24)) | (build << 16)) | revision));
}
public function get major():uint{
return (_major);
}
public function set revision(_arg1:uint):void{
_revision = Math.min(_arg1, _maxRevision);
}
private function getFields():int{
var _local1:int;
_local1 = 4;
if (revision == 0){
_local1--;
};
if ((((_local1 == 3)) && ((build == 0)))){
_local1--;
};
if ((((_local1 == 2)) && ((minor == 0)))){
_local1--;
};
return (_local1);
}
public function equals(_arg1):Boolean{
if (!(_arg1 is Version)){
return (false);
};
if ((((((((_arg1.major == major)) && ((_arg1.minor == minor)))) && ((_arg1.build == build)))) && ((_arg1.revision == revision)))){
return (true);
};
return (false);
}
public static function fromString(_arg1:String="", _arg2:String="."):Version{
var _local3:Version;
var _local4:Array;
_local3 = new (Version);
if ((((_arg1 == "")) || ((_arg1 == null)))){
return (_local3);
};
if (_arg1.indexOf(_arg2) > -1){
_local4 = _arg1.split(_arg2);
_local3.major = parseInt(_local4[0]);
_local3.minor = parseInt(_local4[1]);
_local3.build = parseInt(_local4[2]);
_local3.revision = parseInt(_local4[3]);
} else {
_local3.major = parseInt(_arg1);
};
return (_local3);
}
public static function fromNumber(_arg1:Number=0):Version{
var _local2:Version;
_local2 = new (Version);
if (((((((((((isNaN(_arg1)) || ((_arg1 == 0)))) || ((_arg1 < 0)))) || ((_arg1 == Number.MAX_VALUE)))) || ((_arg1 == Number.POSITIVE_INFINITY)))) || ((_arg1 == Number.NEGATIVE_INFINITY)))){
return (_local2);
};
_local2.major = (_arg1 >>> 28);
_local2.minor = ((_arg1 & 251658240) >>> 24);
_local2.build = ((_arg1 & 0xFF0000) >>> 16);
_local2.revision = (_arg1 & 0xFFFF);
return (_local2);
}
}
}//package com.google.analytics.utils
Section 64
//Bridge (com.google.analytics.v4.Bridge)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
import com.google.analytics.external.*;
public class Bridge implements GoogleAnalyticsAPI {
private var _debug:DebugConfiguration;
private var _proxy:JavascriptProxy;
private var _jsContainer:String;// = "_GATracker"
private var _hasGATracker:Boolean;// = false
private var _account:String;
private static var _linkTrackingObject_js:XML = <script>
<![CDATA[
function( container , target )
{
var targets ;
var name ;
if( target.indexOf(".") > 0 )
{
targets = target.split(".");
name = targets.pop();
}
else
{
targets = [];
name = target;
}
var ref = window;
var depth = targets.length;
for( var j = 0 ; j < depth ; j++ )
{
ref = ref[ targets[j] ] ;
}
window[container][target] = ref[name] ;
}
]]>
</script>
;
private static var _createTrackingObject_js:XML = <script>
<![CDATA[
function( acct )
{
_GATracker[acct] = _gat._getTracker(acct);
}
]]>
</script>
;
private static var _injectTrackingObject_js:XML = <script>
<![CDATA[
function()
{
try
{
_GATracker
}
catch(e)
{
_GATracker = {};
}
}
]]>
</script>
;
private static var _checkGAJS_js:XML = <script>
<![CDATA[
function()
{
if( _gat && _gat._getTracker )
{
return true;
}
return false;
}
]]>
</script>
;
private static var _checkValidTrackingObject_js:XML = <script>
<![CDATA[
function(acct)
{
if( _GATracker[acct] && (_GATracker[acct]._getAccount) )
{
return true ;
}
else
{
return false;
}
}
]]>
</script>
;
public function Bridge(_arg1:String, _arg2:DebugConfiguration, _arg3:JavascriptProxy){
var _local4:String;
var _local5:String;
var _local6:String;
super();
_account = _arg1;
_debug = _arg2;
_proxy = _arg3;
if (!_checkGAJS()){
_local4 = "";
_local4 = (_local4 + "ga.js not found, be sure to check if\n");
_local4 = (_local4 + "<script src=\"http://www.google-analytics.com/ga.js\"></script>\n");
_local4 = (_local4 + "is included in the HTML.");
_debug.warning(_local4);
throw (new Error(_local4));
};
if (!_hasGATracker){
if (((_debug.javascript) && (_debug.verbose))){
_local5 = "";
_local5 = (_local5 + "The Google Analytics tracking code was not found on the container page\n");
_local5 = (_local5 + "we create it");
_debug.info(_local5, VisualDebugMode.advanced);
};
_injectTrackingObject();
};
if (Utils.validateAccount(_arg1)){
_createTrackingObject(_arg1);
} else {
if (_checkTrackingObject(_arg1)){
_linkTrackingObject(_arg1);
} else {
_local6 = "";
_local6 = (_local6 + (("JS Object \"" + _arg1) + "\" doesn't exist in DOM\n"));
_local6 = (_local6 + "Bridge object not created.");
_debug.warning(_local6);
throw (new Error(_local6));
};
};
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_debug.info((((("link( " + _arg1) + ", ") + _arg2) + " )"));
_call("_link", _arg1, _arg2);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_debug.info((("addOrganic( " + [_arg1, _arg2].join(", ")) + " )"));
_call("_addOrganic", _arg1);
}
public function setAllowLinker(_arg1:Boolean):void{
_debug.info((("setAllowLinker( " + _arg1) + " )"));
_call("_setAllowLinker", _arg1);
}
private function _linkTrackingObject(_arg1:String):void{
_proxy.call(_linkTrackingObject_js, _jsContainer, _arg1);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
var _local5 = 2;
if (((_arg3) && (!((_arg3 == ""))))){
_local5 = 3;
};
if ((((_local5 == 3)) && (!(isNaN(_arg4))))){
_local5 = 4;
};
switch (_local5){
case 4:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3, _arg4].join(", ")) + " )"));
return (_call("_trackEvent", _arg1, _arg2, _arg3, _arg4));
case 3:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3].join(", ")) + " )"));
return (_call("_trackEvent", _arg1, _arg2, _arg3));
case 2:
default:
_debug.info((("trackEvent( " + [_arg1, _arg2].join(", ")) + " )"));
return (_call("_trackEvent", _arg1, _arg2));
};
}
public function setClientInfo(_arg1:Boolean):void{
_debug.info((("setClientInfo( " + _arg1) + " )"));
_call("_setClientInfo", _arg1);
}
public function trackTrans():void{
_debug.info("trackTrans()");
_call("_trackTrans");
}
public function setCookieTimeout(_arg1:int):void{
_debug.info((("setCookieTimeout( " + _arg1) + " )"));
_call("_setCookieTimeout", _arg1);
}
public function trackPageview(_arg1:String=""):void{
_debug.info((("trackPageview( " + _arg1) + " )"));
_call("_trackPageview", _arg1);
}
public function getClientInfo():Boolean{
_debug.info("getClientInfo()");
return (_call("_getClientInfo"));
}
private function _checkValidTrackingObject(_arg1:String):Boolean{
return (_proxy.call(_checkValidTrackingObject_js, _arg1));
}
private function _checkGAJS():Boolean{
return (_proxy.call(_checkGAJS_js));
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_debug.warning((((("linkByPost( " + _arg1) + ", ") + _arg2) + " ) not implemented"));
}
private function _call(_arg1:String, ... _args){
_args.unshift(((((("window." + _jsContainer) + "[\"") + _account) + "\"].") + _arg1));
return (_proxy.call.apply(_proxy, _args));
}
public function hasGAJS():Boolean{
return (_checkGAJS());
}
private function _checkTrackingObject(_arg1:String):Boolean{
var _local2:Boolean = _proxy.hasProperty(_arg1);
var _local3:Boolean = _proxy.hasProperty((_arg1 + "._getAccount"));
return (((_local2) && (_local3)));
}
public function resetSession():void{
_debug.warning("resetSession() not implemented");
}
public function getDetectTitle():Boolean{
_debug.info("getDetectTitle()");
return (_call("_getDetectTitle"));
}
public function setCampNameKey(_arg1:String):void{
_debug.info((("setCampNameKey( " + _arg1) + " )"));
_call("_setCampNameKey", _arg1);
}
public function setDetectFlash(_arg1:Boolean):void{
_debug.info((("setDetectFlash( " + _arg1) + " )"));
_call("_setDetectFlash", _arg1);
}
public function createEventTracker(_arg1:String):EventTracker{
_debug.info((("createEventTracker( " + _arg1) + " )"));
return (new EventTracker(_arg1, this));
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_debug.info((("addItem( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6].join(", ")) + " )"));
_call("_addItem", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public function clearIgnoredOrganic():void{
_debug.info("clearIgnoredOrganic()");
_call("_clearIgnoreOrganic");
}
public function setVar(_arg1:String):void{
_debug.info((("setVar( " + _arg1) + " )"));
_call("_setVar", _arg1);
}
public function setDomainName(_arg1:String):void{
_debug.info((("setDomainName( " + _arg1) + " )"));
_call("_setDomainName", _arg1);
}
public function hasTrackingAccount(_arg1:String):Boolean{
if (Utils.validateAccount(_arg1)){
return (_checkValidTrackingObject(_arg1));
};
return (_checkTrackingObject(_arg1));
}
public function setCampSourceKey(_arg1:String):void{
_debug.info((("setCampSourceKey( " + _arg1) + " )"));
_call("_setCampSourceKey", _arg1);
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
_debug.info((("addTrans( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8].join(", ")) + " )"));
_call("_addTrans", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
return (null);
}
public function setCampContentKey(_arg1:String):void{
_debug.info((("setCampContentKey( " + _arg1) + " )"));
_call("_setCampContentKey", _arg1);
}
public function setLocalServerMode():void{
_debug.info("setLocalServerMode()");
_call("_setLocalServerMode");
}
public function getLocalGifPath():String{
_debug.info("getLocalGifPath()");
return (_call("_getLocalGifPath"));
}
public function clearIgnoredRef():void{
_debug.info("clearIgnoredRef()");
_call("_clearIgnoreRef");
}
public function setAllowAnchor(_arg1:Boolean):void{
_debug.info((("setAllowAnchor( " + _arg1) + " )"));
_call("_setAllowAnchor", _arg1);
}
public function setLocalGifPath(_arg1:String):void{
_debug.info((("setLocalGifPath( " + _arg1) + " )"));
_call("_setLocalGifPath", _arg1);
}
public function getVersion():String{
_debug.info("getVersion()");
return (_call("_getVersion"));
}
private function _injectTrackingObject():void{
_proxy.executeBlock(_injectTrackingObject_js);
_hasGATracker = true;
}
public function setCookiePath(_arg1:String):void{
_debug.info((("setCookiePath( " + _arg1) + " )"));
_call("_setCookiePath", _arg1);
}
public function setSampleRate(_arg1:Number):void{
_debug.info((("setSampleRate( " + _arg1) + " )"));
_call("_setSampleRate", _arg1);
}
public function setAllowHash(_arg1:Boolean):void{
_debug.info((("setAllowHash( " + _arg1) + " )"));
_call("_setAllowHash", _arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
_debug.info((("addIgnoredOrganic( " + _arg1) + " )"));
_call("_addIgnoredOrganic", _arg1);
}
public function setCampNOKey(_arg1:String):void{
_debug.info((("setCampNOKey( " + _arg1) + " )"));
_call("_setCampNOKey", _arg1);
}
public function cookiePathCopy(_arg1:String):void{
_debug.info((("cookiePathCopy( " + _arg1) + " )"));
_call("_cookiePathCopy", _arg1);
}
public function setLocalRemoteServerMode():void{
_debug.info("setLocalRemoteServerMode()");
_call("_setLocalRemoteServerMode");
}
public function getServiceMode():ServerOperationMode{
_debug.info("getServiceMode()");
return (_call("_getServiceMode"));
}
public function setDetectTitle(_arg1:Boolean):void{
_debug.info((("setDetectTitle( " + _arg1) + " )"));
_call("_setDetectTitle", _arg1);
}
private function _createTrackingObject(_arg1:String):void{
_proxy.call(_createTrackingObject_js, _arg1);
}
public function setCampaignTrack(_arg1:Boolean):void{
_debug.info((("setCampaignTrack( " + _arg1) + " )"));
_call("_setCampaignTrack", _arg1);
}
public function clearOrganic():void{
_debug.info("clearOrganic()");
_call("_clearOrganic");
}
public function setCampTermKey(_arg1:String):void{
_debug.info((("setCampTermKey( " + _arg1) + " )"));
_call("_setCampTermKey", _arg1);
}
public function getDetectFlash():Boolean{
_debug.info("getDetectFlash()");
return (_call("_getDetectFlash"));
}
public function setCampMediumKey(_arg1:String):void{
_debug.info((("setCampMediumKey( " + _arg1) + " )"));
_call("_setCampMediumKey", _arg1);
}
public function addIgnoredRef(_arg1:String):void{
_debug.info((("addIgnoredRef( " + _arg1) + " )"));
_call("_addIgnoredRef", _arg1);
}
public function setSessionTimeout(_arg1:int):void{
_debug.info((("setSessionTimeout( " + _arg1) + " )"));
_call("_setSessionTimeout", _arg1);
}
public function setRemoteServerMode():void{
_debug.info("setRemoteServerMode()");
_call("_setRemoteServerMode");
}
public function getAccount():String{
_debug.info("getAccount()");
return (_call("_getAccount"));
}
}
}//package com.google.analytics.v4
Section 65
//Configuration (com.google.analytics.v4.Configuration)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
import com.google.analytics.utils.*;
import com.google.analytics.campaign.*;
public class Configuration {
public var serverMode:ServerOperationMode;
public var detectFlash:Boolean;// = true
public var allowLocalTracking:Boolean;// = true
public var secureRemoteGIFpath:String;// = "https://ssl.google-analytics.com/__utm.gif"
public var hasSiteOverlay:Boolean;// = false
private var _version:String;// = "4.3as"
public var allowDomainHash:Boolean;// = true
public var detectClientInfo:Boolean;// = true
public var idleLoop:Number;// = 30
public var isTrackOutboundSubdomains:Boolean;// = false
public var cookiePath:String;// = "/"
public var transactionFieldDelim:String;// = "|"
private var _organic:Organic;
private var _cookieName:String;// = "analytics"
public var campaignKey:CampaignKey;
public var google:String;// = "google"
public var googleCsePath:String;// = "cse"
public var bucketCapacity:Number;// = 10
private var _sampleRate:Number;// = 1
public var remoteGIFpath:String;// = "http://www.google-analytics.com/__utm.gif"
public var googleSearchParam:String;// = "q"
public var allowLinker:Boolean;// = false
public var maxOutboundLinkExamined:Number;// = 1000
private var _debug:DebugConfiguration;
private var _trackingLimitPerSession:int;// = 500
private var _domain:Domain;
public var allowAnchor:Boolean;// = false
public var tokenCliff:int;// = 10
public var sessionTimeout:Number;
public var idleTimeout:Number;// = 60
public var campaignTracking:Boolean;// = true
public var domainName:String;// = ""
public var detectTitle:Boolean;// = true
public var tokenRate:Number;// = 0.2
public var conversionTimeout:Number;
public var localGIFpath:String;// = "/__utm.gif"
public function Configuration(_arg1:DebugConfiguration=null){
_version = "4.3as";
_sampleRate = 1;
_trackingLimitPerSession = 500;
_organic = new Organic();
googleCsePath = "cse";
googleSearchParam = "q";
google = "google";
_cookieName = "analytics";
allowDomainHash = true;
allowAnchor = false;
allowLinker = false;
hasSiteOverlay = false;
tokenRate = 0.2;
conversionTimeout = Timespan.sixmonths;
sessionTimeout = Timespan.thirtyminutes;
idleLoop = 30;
idleTimeout = 60;
maxOutboundLinkExamined = 1000;
tokenCliff = 10;
bucketCapacity = 10;
detectClientInfo = true;
detectFlash = true;
detectTitle = true;
campaignKey = new CampaignKey();
campaignTracking = true;
isTrackOutboundSubdomains = false;
serverMode = ServerOperationMode.remote;
localGIFpath = "/__utm.gif";
remoteGIFpath = "http://www.google-analytics.com/__utm.gif";
secureRemoteGIFpath = "https://ssl.google-analytics.com/__utm.gif";
cookiePath = "/";
transactionFieldDelim = "|";
domainName = "";
allowLocalTracking = true;
super();
_debug = _arg1;
_domain = new Domain(DomainNameMode.auto, "", _debug);
serverMode = ServerOperationMode.remote;
_initOrganicSources();
}
public function get organic():Organic{
return (_organic);
}
public function get trackingLimitPerSession():int{
return (_trackingLimitPerSession);
}
private function _initOrganicSources():void{
addOrganicSource(google, googleSearchParam);
addOrganicSource("yahoo", "p");
addOrganicSource("msn", "q");
addOrganicSource("aol", "query");
addOrganicSource("aol", "encquery");
addOrganicSource("lycos", "query");
addOrganicSource("ask", "q");
addOrganicSource("altavista", "q");
addOrganicSource("netscape", "query");
addOrganicSource("cnn", "query");
addOrganicSource("looksmart", "qt");
addOrganicSource("about", "terms");
addOrganicSource("mamma", "query");
addOrganicSource("alltheweb", "q");
addOrganicSource("gigablast", "q");
addOrganicSource("voila", "rdata");
addOrganicSource("virgilio", "qs");
addOrganicSource("live", "q");
addOrganicSource("baidu", "wd");
addOrganicSource("alice", "qs");
addOrganicSource("yandex", "text");
addOrganicSource("najdi", "q");
addOrganicSource("aol", "q");
addOrganicSource("club-internet", "q");
addOrganicSource("mama", "query");
addOrganicSource("seznam", "q");
addOrganicSource("search", "q");
addOrganicSource("wp", "szukaj");
addOrganicSource("onet", "qt");
addOrganicSource("netsprint", "q");
addOrganicSource("google.interia", "q");
addOrganicSource("szukacz", "q");
addOrganicSource("yam", "k");
addOrganicSource("pchome", "q");
addOrganicSource("kvasir", "searchExpr");
addOrganicSource("sesam", "q");
addOrganicSource("ozu", "q");
addOrganicSource("terra", "query");
addOrganicSource("nostrum", "query");
addOrganicSource("mynet", "q");
addOrganicSource("ekolay", "q");
addOrganicSource("search.ilse", "search_for");
}
public function get sampleRate():Number{
return (_sampleRate);
}
public function get cookieName():String{
return (_cookieName);
}
public function addOrganicSource(_arg1:String, _arg2:String):void{
var engine = _arg1;
var keyword = _arg2;
try {
_organic.addSource(engine, keyword);
} catch(e:Error) {
if (((_debug) && (_debug.active))){
_debug.warning(e.message);
};
};
}
public function get domain():Domain{
return (_domain);
}
public function set sampleRate(_arg1:Number):void{
if (_arg1 <= 0){
_arg1 = 0.1;
};
if (_arg1 > 1){
_arg1 = 1;
};
_arg1 = Number(_arg1.toFixed(2));
_sampleRate = _arg1;
}
public function get version():String{
return (_version);
}
}
}//package com.google.analytics.v4
Section 66
//GoogleAnalyticsAPI (com.google.analytics.v4.GoogleAnalyticsAPI)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
public interface GoogleAnalyticsAPI {
function setCampSourceKey(_arg1:String):void;
function getServiceMode():ServerOperationMode;
function resetSession():void;
function setLocalServerMode():void;
function setCampContentKey(_arg1:String):void;
function addOrganic(_arg1:String, _arg2:String):void;
function setDetectFlash(_arg1:Boolean):void;
function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object;
function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean;
function setCampTermKey(_arg1:String):void;
function setCampNameKey(_arg1:String):void;
function addIgnoredOrganic(_arg1:String):void;
function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void;
function setAllowLinker(_arg1:Boolean):void;
function getClientInfo():Boolean;
function getDetectFlash():Boolean;
function setCampaignTrack(_arg1:Boolean):void;
function createEventTracker(_arg1:String):EventTracker;
function setCookieTimeout(_arg1:int):void;
function setAllowAnchor(_arg1:Boolean):void;
function trackTrans():void;
function clearOrganic():void;
function trackPageview(_arg1:String=""):void;
function setLocalGifPath(_arg1:String):void;
function getVersion():String;
function getLocalGifPath():String;
function setVar(_arg1:String):void;
function clearIgnoredOrganic():void;
function setCampMediumKey(_arg1:String):void;
function addIgnoredRef(_arg1:String):void;
function setClientInfo(_arg1:Boolean):void;
function setCookiePath(_arg1:String):void;
function setSampleRate(_arg1:Number):void;
function setSessionTimeout(_arg1:int):void;
function setRemoteServerMode():void;
function clearIgnoredRef():void;
function setDomainName(_arg1:String):void;
function setDetectTitle(_arg1:Boolean):void;
function setAllowHash(_arg1:Boolean):void;
function getAccount():String;
function linkByPost(_arg1:Object, _arg2:Boolean=false):void;
function link(_arg1:String, _arg2:Boolean=false):void;
function setCampNOKey(_arg1:String):void;
function setLocalRemoteServerMode():void;
function cookiePathCopy(_arg1:String):void;
function getDetectTitle():Boolean;
}
}//package com.google.analytics.v4
Section 67
//Tracker (com.google.analytics.v4.Tracker)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
import com.google.analytics.data.*;
import com.google.analytics.utils.*;
import com.google.analytics.external.*;
import com.google.analytics.campaign.*;
public class Tracker implements GoogleAnalyticsAPI {
private const EVENT_TRACKER_LABEL_KEY_NUM:int = 3;
private const EVENT_TRACKER_VALUE_VALUE_NUM:int = 1;
private const EVENT_TRACKER_PROJECT_ID:int = 5;
private const EVENT_TRACKER_OBJECT_NAME_KEY_NUM:int = 1;
private const EVENT_TRACKER_TYPE_KEY_NUM:int = 2;
private var _adSense:AdSenseGlobals;
private var _eventTracker:X10;
private var _noSessionInformation:Boolean;// = false
private var _browserInfo:BrowserInfo;
private var _debug:DebugConfiguration;
private var _isNewVisitor:Boolean;// = false
private var _buffer:Buffer;
private var _config:Configuration;
private var _x10Module:X10;
private var _campaign:CampaignManager;
private var _formatedReferrer:String;
private var _timeStamp:Number;
private var _info:Environment;
private var _domainHash:Number;
private var _campaignInfo:CampaignInfo;
private var _gifRequest:GIFRequest;
private var _hasInitData:Boolean;// = false
private var _account:String;
public function Tracker(_arg1:String, _arg2:Configuration, _arg3:DebugConfiguration, _arg4:Environment, _arg5:Buffer, _arg6:GIFRequest, _arg7:AdSenseGlobals){
var _local8:String;
super();
_account = _arg1;
_config = _arg2;
_debug = _arg3;
_info = _arg4;
_buffer = _arg5;
_gifRequest = _arg6;
_adSense = _arg7;
if (!Utils.validateAccount(_arg1)){
_local8 = (("Account \"" + _arg1) + "\" is not valid.");
_debug.warning(_local8);
throw (new Error(_local8));
};
_initData();
}
private function _doTracking():Boolean{
if (((((!((_info.protocol == Protocols.file))) && (!((_info.protocol == Protocols.none))))) && (_isNotGoogleSearch()))){
return (true);
};
if (_config.allowLocalTracking){
return (true);
};
return (false);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_debug.info((("addOrganic( " + [_arg1, _arg2].join(", ")) + " )"));
_config.organic.addSource(_arg1, _arg2);
}
public function setAllowLinker(_arg1:Boolean):void{
_config.allowLinker = _arg1;
_debug.info((("setAllowLinker( " + _config.allowLinker) + " )"));
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
var _local5:Boolean;
var _local6 = 2;
if (((!((_arg1 == ""))) && (!((_arg2 == ""))))){
_eventTracker.clearKey(EVENT_TRACKER_PROJECT_ID);
_eventTracker.clearValue(EVENT_TRACKER_PROJECT_ID);
_local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_OBJECT_NAME_KEY_NUM, _arg1);
_local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_TYPE_KEY_NUM, _arg2);
if (((_arg3) && (!((_arg3 == ""))))){
_local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_LABEL_KEY_NUM, _arg3);
_local6 = 3;
if (!isNaN(_arg4)){
_local5 = _eventTracker.setValue(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_VALUE_VALUE_NUM, _arg4);
_local6 = 4;
};
};
if (_local5){
_debug.info(((("valid event tracking call\ncategory: " + _arg1) + "\naction: ") + _arg2), VisualDebugMode.geek);
_sendXEvent(_eventTracker);
};
} else {
_debug.warning(((("event tracking call is not valid, failed!\ncategory: " + _arg1) + "\naction: ") + _arg2), VisualDebugMode.geek);
_local5 = false;
};
switch (_local6){
case 4:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3, _arg4].join(", ")) + " )"));
break;
case 3:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3].join(", ")) + " )"));
break;
case 2:
default:
_debug.info((("trackEvent( " + [_arg1, _arg2].join(", ")) + " )"));
};
return (_local5);
}
public function trackPageview(_arg1:String=""):void{
_debug.info((("trackPageview( " + _arg1) + " )"));
if (_doTracking()){
_initData();
_trackMetrics(_arg1);
_noSessionInformation = false;
} else {
_debug.warning((("trackPageview( " + _arg1) + " ) failed"));
};
}
public function setCookieTimeout(_arg1:int):void{
_config.conversionTimeout = _arg1;
_debug.info((("setCookieTimeout( " + _config.conversionTimeout) + " )"));
}
public function trackTrans():void{
_debug.warning("trackTrans() not implemented");
}
public function setClientInfo(_arg1:Boolean):void{
_config.detectClientInfo = _arg1;
_debug.info((("setClientInfo( " + _config.detectClientInfo) + " )"));
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_debug.warning((("linkByPost( " + [_arg1, _arg2].join(", ")) + " ) not implemented"));
}
private function _initData():void{
var _local1:String;
var _local2:String;
if (!_hasInitData){
_updateDomainName();
_domainHash = _getDomainHash();
_timeStamp = Math.round((new Date().getTime() / 1000));
if (_debug.verbose){
_local1 = "";
_local1 = (_local1 + "_initData 0");
_local1 = (_local1 + ("\ndomain name: " + _config.domainName));
_local1 = (_local1 + ("\ndomain hash: " + _domainHash));
_local1 = (_local1 + (((("\ntimestamp: " + _timeStamp) + " (") + new Date((_timeStamp * 1000))) + ")"));
_debug.info(_local1, VisualDebugMode.geek);
};
};
if (_doTracking()){
_handleCookie();
};
if (!_hasInitData){
if (_doTracking()){
_formatedReferrer = _formatReferrer();
_browserInfo = new BrowserInfo(_config, _info);
_debug.info(("browserInfo: " + _browserInfo.toURLString()), VisualDebugMode.advanced);
if (_config.campaignTracking){
_campaign = new CampaignManager(_config, _debug, _buffer, _domainHash, _formatedReferrer, _timeStamp);
_campaignInfo = _campaign.getCampaignInformation(_info.locationSearch, _noSessionInformation);
_debug.info(("campaignInfo: " + _campaignInfo.toURLString()), VisualDebugMode.advanced);
};
};
_x10Module = new X10();
_eventTracker = new X10();
_hasInitData = true;
};
if (_config.hasSiteOverlay){
_debug.warning("Site Overlay is not supported");
};
if (_debug.verbose){
_local2 = "";
_local2 = (_local2 + "_initData (misc)");
_local2 = (_local2 + ("\nflash version: " + _info.flashVersion.toString(4)));
_local2 = (_local2 + ("\nprotocol: " + _info.protocol));
_local2 = (_local2 + (("\ndefault domain name (auto): \"" + _info.domainName) + "\""));
_local2 = (_local2 + ("\nlanguage: " + _info.language));
_local2 = (_local2 + ("\ndomain hash: " + _getDomainHash()));
_local2 = (_local2 + ("\nuser-agent: " + _info.userAgent));
_debug.info(_local2, VisualDebugMode.geek);
};
}
public function getDetectTitle():Boolean{
_debug.info("getDetectTitle()");
return (_config.detectTitle);
}
public function resetSession():void{
_debug.info("resetSession()");
_buffer.resetCurrentSession();
}
public function getClientInfo():Boolean{
_debug.info("getClientInfo()");
return (_config.detectClientInfo);
}
private function _sendXEvent(_arg1:X10=null):void{
var _local2:Variables;
var _local3:EventInfo;
var _local4:Variables;
var _local5:Variables;
_initData();
if (_takeSample()){
_local2 = new Variables();
_local2.URIencode = true;
_local3 = new EventInfo(true, _x10Module, _arg1);
_local4 = _local3.toVariables();
_local5 = _renderMetricsSearchVariables();
_local2.join(_local4, _local5);
_gifRequest.send(_account, _local2, false, true);
};
}
public function setDetectFlash(_arg1:Boolean):void{
_config.detectFlash = _arg1;
_debug.info((("setDetectFlash( " + _config.detectFlash) + " )"));
}
public function setCampNameKey(_arg1:String):void{
_config.campaignKey.UCCN = _arg1;
var _local2 = (("setCampNameKey( " + _config.campaignKey.UCCN) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCCN]"));
} else {
_debug.info(_local2);
};
}
private function _formatReferrer():String{
var _local2:String;
var _local3:URL;
var _local4:URL;
var _local1:String = _info.referrer;
if ((((_local1 == "")) || ((_local1 == "localhost")))){
_local1 = "-";
} else {
_local2 = _info.domainName;
_local3 = new URL(_local1);
_local4 = new URL(("http://" + _local2));
if (_local3.hostName == _local2){
return ("-");
};
if (_local4.domain == _local3.domain){
if (_local4.subDomain != _local3.subDomain){
_local1 = "0";
};
};
if ((((_local1.charAt(0) == "[")) && (_local1.charAt((_local1.length - 1))))){
_local1 = "-";
};
};
_debug.info(("formated referrer: " + _local1), VisualDebugMode.advanced);
return (_local1);
}
private function _visitCode():Number{
if (_debug.verbose){
_debug.info(("visitCode: " + _buffer.utma.sessionId), VisualDebugMode.geek);
};
return (_buffer.utma.sessionId);
}
public function createEventTracker(_arg1:String):EventTracker{
_debug.info((("createEventTracker( " + _arg1) + " )"));
return (new EventTracker(_arg1, this));
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_debug.warning((("addItem( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6].join(", ")) + " ) not implemented"));
}
public function clearIgnoredOrganic():void{
_debug.info("clearIgnoredOrganic()");
_config.organic.clearIgnoredKeywords();
}
public function setVar(_arg1:String):void{
var _local2:Variables;
if (((!((_arg1 == ""))) && (_isNotGoogleSearch()))){
_initData();
_buffer.utmv.domainHash = _domainHash;
_buffer.utmv.value = _arg1;
if (_debug.verbose){
_debug.info(_buffer.utmv.toString(), VisualDebugMode.geek);
};
_debug.info((("setVar( " + _arg1) + " )"));
if (_takeSample()){
_local2 = new Variables();
_local2.utmt = "var";
_gifRequest.send(_account, _local2);
};
} else {
_debug.warning((("setVar \"" + _arg1) + "\" is ignored"));
};
}
public function setDomainName(_arg1:String):void{
if (_arg1 == "auto"){
_config.domain.mode = DomainNameMode.auto;
} else {
if (_arg1 == "none"){
_config.domain.mode = DomainNameMode.none;
} else {
_config.domain.mode = DomainNameMode.custom;
_config.domain.name = _arg1;
};
};
_updateDomainName();
_debug.info((("setDomainName( " + _config.domainName) + " )"));
}
private function _updateDomainName():void{
var _local1:String;
if (_config.domain.mode == DomainNameMode.auto){
_local1 = _info.domainName;
if (_local1.substring(0, 4) == "www."){
_local1 = _local1.substring(4);
};
_config.domain.name = _local1;
};
_config.domainName = _config.domain.name.toLowerCase();
_debug.info(("domain name: " + _config.domainName), VisualDebugMode.advanced);
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
_debug.warning((("addTrans( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8].join(", ")) + " ) not implemented"));
return (null);
}
private function _renderMetricsSearchVariables(_arg1:String=""):Variables{
var _local4:Variables;
var _local2:Variables = new Variables();
_local2.URIencode = true;
var _local3:DocumentInfo = new DocumentInfo(_config, _info, _formatedReferrer, _arg1, _adSense);
_debug.info(("docInfo: " + _local3.toURLString()), VisualDebugMode.geek);
if (_config.campaignTracking){
_local4 = _campaignInfo.toVariables();
};
var _local5:Variables = _browserInfo.toVariables();
_local2.join(_local3.toVariables(), _local5, _local4);
return (_local2);
}
public function setCampContentKey(_arg1:String):void{
_config.campaignKey.UCCT = _arg1;
var _local2 = (("setCampContentKey( " + _config.campaignKey.UCCT) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCCT]"));
} else {
_debug.info(_local2);
};
}
private function _handleCookie():void{
var _local1:String;
var _local2:String;
var _local3:Array;
var _local4:String;
if (_config.allowLinker){
};
if (((_buffer.hasUTMA()) && (!(_buffer.utma.isEmpty())))){
if (((!(_buffer.hasUTMB())) || (!(_buffer.hasUTMC())))){
_buffer.updateUTMA(_timeStamp);
_noSessionInformation = true;
};
if (_debug.verbose){
_debug.info(("from cookie " + _buffer.utma.toString()), VisualDebugMode.geek);
};
} else {
_debug.info("create a new utma", VisualDebugMode.advanced);
_buffer.utma.domainHash = _domainHash;
_buffer.utma.sessionId = _getUniqueSessionId();
_buffer.utma.firstTime = _timeStamp;
_buffer.utma.lastTime = _timeStamp;
_buffer.utma.currentTime = _timeStamp;
_buffer.utma.sessionCount = 1;
if (_debug.verbose){
_debug.info(_buffer.utma.toString(), VisualDebugMode.geek);
};
_noSessionInformation = true;
_isNewVisitor = true;
};
if (((_adSense.gaGlobal) && ((_adSense.dh == String(_domainHash))))){
if (_adSense.sid){
_buffer.utma.currentTime = Number(_adSense.sid);
if (_debug.verbose){
_local1 = "";
_local1 = (_local1 + "AdSense sid found\n");
_local1 = (_local1 + (((("Override currentTime(" + _buffer.utma.currentTime) + ") from AdSense sid(") + Number(_adSense.sid)) + ")"));
_debug.info(_local1, VisualDebugMode.geek);
};
};
if (_isNewVisitor){
if (_adSense.sid){
_buffer.utma.lastTime = Number(_adSense.sid);
if (_debug.verbose){
_local2 = "";
_local2 = (_local2 + "AdSense sid found (new visitor)\n");
_local2 = (_local2 + (((("Override lastTime(" + _buffer.utma.lastTime) + ") from AdSense sid(") + Number(_adSense.sid)) + ")"));
_debug.info(_local2, VisualDebugMode.geek);
};
};
if (_adSense.vid){
_local3 = _adSense.vid.split(".");
_buffer.utma.sessionId = Number(_local3[0]);
_buffer.utma.firstTime = Number(_local3[1]);
if (_debug.verbose){
_local4 = "";
_local4 = (_local4 + "AdSense vid found (new visitor)\n");
_local4 = (_local4 + (((("Override sessionId(" + _buffer.utma.sessionId) + ") from AdSense vid(") + Number(_local3[0])) + ")\n"));
_local4 = (_local4 + (((("Override firstTime(" + _buffer.utma.firstTime) + ") from AdSense vid(") + Number(_local3[1])) + ")"));
_debug.info(_local4, VisualDebugMode.geek);
};
};
if (_debug.verbose){
_debug.info(("AdSense modified : " + _buffer.utma.toString()), VisualDebugMode.geek);
};
};
};
_buffer.utmb.domainHash = _domainHash;
if (isNaN(_buffer.utmb.trackCount)){
_buffer.utmb.trackCount = 0;
};
if (isNaN(_buffer.utmb.token)){
_buffer.utmb.token = _config.tokenCliff;
};
if (isNaN(_buffer.utmb.lastTime)){
_buffer.utmb.lastTime = _buffer.utma.currentTime;
};
_buffer.utmc.domainHash = _domainHash;
if (_debug.verbose){
_debug.info(_buffer.utmb.toString(), VisualDebugMode.advanced);
_debug.info(_buffer.utmc.toString(), VisualDebugMode.advanced);
};
}
public function setLocalServerMode():void{
_config.serverMode = ServerOperationMode.local;
_debug.info("setLocalServerMode()");
}
public function clearIgnoredRef():void{
_debug.info("clearIgnoredRef()");
_config.organic.clearIgnoredReferrals();
}
public function setCampSourceKey(_arg1:String):void{
_config.campaignKey.UCSR = _arg1;
var _local2 = (("setCampSourceKey( " + _config.campaignKey.UCSR) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCSR]"));
} else {
_debug.info(_local2);
};
}
public function getLocalGifPath():String{
_debug.info("getLocalGifPath()");
return (_config.localGIFpath);
}
public function setLocalGifPath(_arg1:String):void{
_config.localGIFpath = _arg1;
_debug.info((("setLocalGifPath( " + _config.localGIFpath) + " )"));
}
public function getVersion():String{
_debug.info("getVersion()");
return (_config.version);
}
public function setAllowAnchor(_arg1:Boolean):void{
_config.allowAnchor = _arg1;
_debug.info((("setAllowAnchor( " + _config.allowAnchor) + " )"));
}
private function _isNotGoogleSearch():Boolean{
var _local1:String = _config.domainName;
var _local2 = (_local1.indexOf("www.google.") < 0);
var _local3 = (_local1.indexOf(".google.") < 0);
var _local4 = (_local1.indexOf("google.") < 0);
var _local5 = (_local1.indexOf("google.org") > -1);
return (((((((((_local2) || (_local3))) || (_local4))) || (!((_config.cookiePath == "/"))))) || (_local5)));
}
public function setSampleRate(_arg1:Number):void{
if (_arg1 < 0){
_debug.warning("sample rate can not be negative, ignoring value.");
} else {
_config.sampleRate = _arg1;
};
_debug.info((("setSampleRate( " + _config.sampleRate) + " )"));
}
private function _takeSample():Boolean{
if (_debug.verbose){
_debug.info((((("takeSample: (" + (_visitCode() % 10000)) + ") < (") + (_config.sampleRate * 10000)) + ")"), VisualDebugMode.geek);
};
return (((_visitCode() % 10000) < (_config.sampleRate * 10000)));
}
public function setCookiePath(_arg1:String):void{
_config.cookiePath = _arg1;
_debug.info((("setCookiePath( " + _config.cookiePath) + " )"));
}
public function setAllowHash(_arg1:Boolean):void{
_config.allowDomainHash = _arg1;
_debug.info((("setAllowHash( " + _config.allowDomainHash) + " )"));
}
private function _generateUserDataHash():Number{
var _local1 = "";
_local1 = (_local1 + _info.appName);
_local1 = (_local1 + _info.appVersion);
_local1 = (_local1 + _info.language);
_local1 = (_local1 + _info.platform);
_local1 = (_local1 + _info.userAgent.toString());
_local1 = (_local1 + (((_info.screenWidth + "x") + _info.screenHeight) + _info.screenColorDepth));
_local1 = (_local1 + _info.referrer);
return (Utils.generateHash(_local1));
}
public function setCampNOKey(_arg1:String):void{
_config.campaignKey.UCNO = _arg1;
var _local2 = (("setCampNOKey( " + _config.campaignKey.UCNO) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCNO]"));
} else {
_debug.info(_local2);
};
}
public function addIgnoredOrganic(_arg1:String):void{
_debug.info((("addIgnoredOrganic( " + _arg1) + " )"));
_config.organic.addIgnoredKeyword(_arg1);
}
public function setLocalRemoteServerMode():void{
_config.serverMode = ServerOperationMode.both;
_debug.info("setLocalRemoteServerMode()");
}
public function cookiePathCopy(_arg1:String):void{
_debug.warning((("cookiePathCopy( " + _arg1) + " ) not implemented"));
}
public function setDetectTitle(_arg1:Boolean):void{
_config.detectTitle = _arg1;
_debug.info((("setDetectTitle( " + _config.detectTitle) + " )"));
}
public function setCampTermKey(_arg1:String):void{
_config.campaignKey.UCTR = _arg1;
var _local2 = (("setCampTermKey( " + _config.campaignKey.UCTR) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCTR]"));
} else {
_debug.info(_local2);
};
}
public function getServiceMode():ServerOperationMode{
_debug.info("getServiceMode()");
return (_config.serverMode);
}
private function _trackMetrics(_arg1:String=""):void{
var _local2:Variables;
var _local3:Variables;
var _local4:Variables;
var _local5:EventInfo;
if (_takeSample()){
_local2 = new Variables();
_local2.URIencode = true;
if (((_x10Module) && (_x10Module.hasData()))){
_local5 = new EventInfo(false, _x10Module);
_local3 = _local5.toVariables();
};
_local4 = _renderMetricsSearchVariables(_arg1);
_local2.join(_local3, _local4);
_gifRequest.send(_account, _local2);
};
}
public function setCampaignTrack(_arg1:Boolean):void{
_config.campaignTracking = _arg1;
_debug.info((("setCampaignTrack( " + _config.campaignTracking) + " )"));
}
public function addIgnoredRef(_arg1:String):void{
_debug.info((("addIgnoredRef( " + _arg1) + " )"));
_config.organic.addIgnoredReferral(_arg1);
}
public function clearOrganic():void{
_debug.info("clearOrganic()");
_config.organic.clearEngines();
}
public function getDetectFlash():Boolean{
_debug.info("getDetectFlash()");
return (_config.detectFlash);
}
public function setCampMediumKey(_arg1:String):void{
_config.campaignKey.UCMD = _arg1;
var _local2 = (("setCampMediumKey( " + _config.campaignKey.UCMD) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCMD]"));
} else {
_debug.info(_local2);
};
}
private function _getUniqueSessionId():Number{
var _local1:Number = ((Utils.generate32bitRandom() ^ _generateUserDataHash()) * 2147483647);
_debug.info(("Session ID: " + _local1), VisualDebugMode.geek);
return (_local1);
}
private function _getDomainHash():Number{
if (((((!(_config.domainName)) || ((_config.domainName == "")))) || ((_config.domain.mode == DomainNameMode.none)))){
_config.domainName = "";
return (1);
};
_updateDomainName();
if (_config.allowDomainHash){
return (Utils.generateHash(_config.domainName));
};
return (1);
}
public function setSessionTimeout(_arg1:int):void{
_config.sessionTimeout = _arg1;
_debug.info((("setSessionTimeout( " + _config.sessionTimeout) + " )"));
}
public function getAccount():String{
_debug.info("getAccount()");
return (_account);
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_debug.warning((("link( " + [_arg1, _arg2].join(", ")) + " ) not implemented"));
}
public function setRemoteServerMode():void{
_config.serverMode = ServerOperationMode.remote;
_debug.info("setRemoteServerMode()");
}
}
}//package com.google.analytics.v4
Section 68
//AnalyticsTracker (com.google.analytics.AnalyticsTracker)
package com.google.analytics {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.events.*;
public interface AnalyticsTracker extends GoogleAnalyticsAPI, IEventDispatcher {
function set config(_arg1:Configuration):void;
function isReady():Boolean;
function get mode():String;
function set debug(_arg1:DebugConfiguration):void;
function get account():String;
function set mode(_arg1:String):void;
function get config():Configuration;
function get debug():DebugConfiguration;
function set account(_arg1:String):void;
function get visualDebug():Boolean;
function set visualDebug(_arg1:Boolean):void;
}
}//package com.google.analytics
Section 69
//API (com.google.analytics.API)
package com.google.analytics {
import com.google.analytics.utils.*;
public class API {
public static var version:Version = new Version();
version.major = 1;
version.minor = 0;
version.build = 1;
version.revision = "$Rev: 319 $ ".split(" ")[1];
}
}//package com.google.analytics
Section 70
//GATracker (com.google.analytics.GATracker)
package com.google.analytics {
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.events.*;
import flash.display.*;
import com.google.analytics.utils.*;
import com.google.analytics.external.*;
import com.google.analytics.events.*;
public class GATracker implements AnalyticsTracker {
private var _adSense:AdSenseGlobals;
private var _env:Environment;
private var _visualDebug:Boolean;
private var _idleTimer:IdleTimer;
private var _debug:DebugConfiguration;
private var _buffer:Buffer;
private var _config:Configuration;
private var _mode:String;
private var _display:DisplayObject;
private var _jsproxy:JavascriptProxy;
private var _dom:HTMLDOM;
private var _eventDispatcher:EventDispatcher;
private var _ready:Boolean;// = false
private var _gifRequest:GIFRequest;
private var _account:String;
private var _tracker:GoogleAnalyticsAPI;
public static var version:Version = API.version;
public static var autobuild:Boolean = true;
public function GATracker(_arg1:DisplayObject, _arg2:String, _arg3:String="AS3", _arg4:Boolean=false, _arg5:Configuration=null, _arg6:DebugConfiguration=null){
_ready = false;
super();
_display = _arg1;
_eventDispatcher = new EventDispatcher(this);
_tracker = new TrackerCache();
this.account = _arg2;
this.mode = _arg3;
this.visualDebug = _arg4;
if (!_arg6){
this.debug = new DebugConfiguration();
};
if (!_arg5){
this.config = new Configuration(_arg6);
};
if (autobuild){
_factory();
};
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_tracker.link(_arg1, _arg2);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_tracker.addOrganic(_arg1, _arg2);
}
public function setAllowLinker(_arg1:Boolean):void{
_tracker.setAllowLinker(_arg1);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
return (_tracker.trackEvent(_arg1, _arg2, _arg3, _arg4));
}
public function setCookieTimeout(_arg1:int):void{
_tracker.setCookieTimeout(_arg1);
}
public function trackTrans():void{
_tracker.trackTrans();
}
public function trackPageview(_arg1:String=""):void{
_tracker.trackPageview(_arg1);
}
public function getClientInfo():Boolean{
return (_tracker.getClientInfo());
}
public function setClientInfo(_arg1:Boolean):void{
_tracker.setClientInfo(_arg1);
}
public function get account():String{
return (_account);
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_tracker.linkByPost(_arg1, _arg2);
}
public function getDetectTitle():Boolean{
return (_tracker.getDetectTitle());
}
public function dispatchEvent(_arg1:Event):Boolean{
return (_eventDispatcher.dispatchEvent(_arg1));
}
public function get config():Configuration{
return (_config);
}
public function set mode(_arg1:String):void{
_mode = _arg1;
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
_eventDispatcher.removeEventListener(_arg1, _arg2, _arg3);
}
public function setDetectFlash(_arg1:Boolean):void{
_tracker.setDetectFlash(_arg1);
}
public function resetSession():void{
_tracker.resetSession();
}
public function setCampNameKey(_arg1:String):void{
_tracker.setCampNameKey(_arg1);
}
public function get debug():DebugConfiguration{
return (_debug);
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_tracker.addItem(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
private function _bridgeFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (Bridge) v" + version) + "\naccount: ") + account));
return (new Bridge(account, _debug, _jsproxy));
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
_eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function clearIgnoredOrganic():void{
_tracker.clearIgnoredOrganic();
}
public function set account(_arg1:String):void{
_account = _arg1;
}
public function setVar(_arg1:String):void{
_tracker.setVar(_arg1);
}
public function build():void{
if (!isReady()){
_factory();
};
}
public function setDomainName(_arg1:String):void{
_tracker.setDomainName(_arg1);
}
public function createEventTracker(_arg1:String):EventTracker{
return (_tracker.createEventTracker(_arg1));
}
public function set config(_arg1:Configuration):void{
_config = _arg1;
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
return (_tracker.addTrans(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8));
}
public function setCampSourceKey(_arg1:String):void{
_tracker.setCampSourceKey(_arg1);
}
public function setCampContentKey(_arg1:String):void{
_tracker.setCampContentKey(_arg1);
}
public function willTrigger(_arg1:String):Boolean{
return (_eventDispatcher.willTrigger(_arg1));
}
public function setLocalServerMode():void{
_tracker.setLocalServerMode();
}
public function isReady():Boolean{
return (_ready);
}
public function getLocalGifPath():String{
return (_tracker.getLocalGifPath());
}
public function setAllowAnchor(_arg1:Boolean):void{
_tracker.setAllowAnchor(_arg1);
}
public function clearIgnoredRef():void{
_tracker.clearIgnoredRef();
}
public function get mode():String{
return (_mode);
}
public function set debug(_arg1:DebugConfiguration):void{
_debug = _arg1;
}
public function setLocalGifPath(_arg1:String):void{
_tracker.setLocalGifPath(_arg1);
}
public function getVersion():String{
return (_tracker.getVersion());
}
public function setSampleRate(_arg1:Number):void{
_tracker.setSampleRate(_arg1);
}
public function setCookiePath(_arg1:String):void{
_tracker.setCookiePath(_arg1);
}
public function setAllowHash(_arg1:Boolean):void{
_tracker.setAllowHash(_arg1);
}
public function setCampNOKey(_arg1:String):void{
_tracker.setCampNOKey(_arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
_tracker.addIgnoredOrganic(_arg1);
}
public function setLocalRemoteServerMode():void{
_tracker.setLocalRemoteServerMode();
}
public function cookiePathCopy(_arg1:String):void{
_tracker.cookiePathCopy(_arg1);
}
private function _factory():void{
var _local1:GoogleAnalyticsAPI;
var _local2:TrackerCache;
_jsproxy = new JavascriptProxy(debug);
if (visualDebug){
debug.layout = new Layout(debug, _display);
debug.active = visualDebug;
};
_local2 = (_tracker as TrackerCache);
switch (mode){
case TrackerMode.BRIDGE:
_local1 = _bridgeFactory();
break;
case TrackerMode.AS3:
default:
_local1 = _trackerFactory();
};
if (!_local2.isEmpty()){
_local2.tracker = _local1;
_local2.flush();
};
_tracker = _local1;
_ready = true;
dispatchEvent(new AnalyticsEvent(AnalyticsEvent.READY, this));
}
public function setCampTermKey(_arg1:String):void{
_tracker.setCampTermKey(_arg1);
}
private function _trackerFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (AS3) v" + version) + "\naccount: ") + account));
_adSense = new AdSenseGlobals(debug);
_dom = new HTMLDOM(debug);
_dom.cacheProperties();
_env = new Environment("", "", "", debug, _dom);
_buffer = new Buffer(config, debug, false);
_gifRequest = new GIFRequest(config, debug, _buffer, _env);
_idleTimer = new IdleTimer(config, debug, _display, _buffer);
_env.url = _display.stage.loaderInfo.url;
return (new Tracker(account, config, debug, _env, _buffer, _gifRequest, _adSense));
}
public function setDetectTitle(_arg1:Boolean):void{
_tracker.setDetectTitle(_arg1);
}
public function getServiceMode():ServerOperationMode{
return (_tracker.getServiceMode());
}
public function clearOrganic():void{
_tracker.clearOrganic();
}
public function setCampaignTrack(_arg1:Boolean):void{
_tracker.setCampaignTrack(_arg1);
}
public function addIgnoredRef(_arg1:String):void{
_tracker.addIgnoredRef(_arg1);
}
public function set visualDebug(_arg1:Boolean):void{
_visualDebug = _arg1;
}
public function setCampMediumKey(_arg1:String):void{
_tracker.setCampMediumKey(_arg1);
}
public function setSessionTimeout(_arg1:int):void{
_tracker.setSessionTimeout(_arg1);
}
public function getDetectFlash():Boolean{
return (_tracker.getDetectFlash());
}
public function get visualDebug():Boolean{
return (_visualDebug);
}
public function getAccount():String{
return (_tracker.getAccount());
}
public function hasEventListener(_arg1:String):Boolean{
return (_eventDispatcher.hasEventListener(_arg1));
}
public function setRemoteServerMode():void{
_tracker.setRemoteServerMode();
}
}
var _local1:* = ServerOperationMode;
return (_local1);
}//package com.google.analytics
Section 71
//mp3 (complete.mp3)
package complete {
import flash.media.*;
public dynamic class mp3 extends Sound {
}
}//package complete
Section 72
//EventInfo (event.EventInfo)
package event {
import flash.events.*;
public class EventInfo extends Event {
public static const GAME_OVER:String = "onEventGameOver";
public static const CHOOSE_GIRL:String = "CHOOSE_GIRL";
public static const TIME_OVER:String = "onEventTimeOver";
public static const ALL_TIME_OVER:String = "onEventAllTimeOver";
public static const GAME_PAUSE:String = "onEventGamePause";
public static const IF_MICROPHONE:String = "IF_MICROPHONE";
public static const GAME_REPLAY:String = "onEventGameReplay";
public static const GAME_GO_START:String = "GAME_GO_START";
public static const FRIEND_START:String = "FRIEND_START";
public static const SITE_LOCK:String = "SITE_LOCK";
public static const GAME_SKIP:String = "onEventGameSkip";
public static const HIGH_SCORES:String = "HIGH_SCORES";
public static const GAME_WIN:String = "onEventGameWin";
public static const HOW_TO_PLAY:String = "HOW_TO_PLAY";
public static const GAME_OPTIONS:String = "onEventGameOptions";
public static const GAME_START:String = "onEventGameStart";
public static const LOAD_SWF_COMPLETE:String = "onEventLoadSWFComplete";
public static const GAME_LOCKED:String = "onEventGameLocked";
public static const LOAD_XML_COMPLETE:String = "onEventLoadXMLComplete";
public static const GAME_QUIT:String = "onEventGameQuit";
public static const GIRL_LOCK:String = "GIRL_LOCK";
public static const GAME_PASS:String = "onEventGamePass";
public function EventInfo(_arg1:String){
super(_arg1);
}
}
}//package event
Section 73
//GameResartEvent (event.GameResartEvent)
package event {
import flash.events.*;
public class GameResartEvent extends Event {
public static const RESTART_GAME_AGAIN:String = "RESTART_GAME_AGAIN";
public function GameResartEvent(_arg1:String){
super(_arg1);
}
}
}//package event
Section 74
//MicroPhoneEvent (event.MicroPhoneEvent)
package event {
import flash.events.*;
import flash.media.*;
public class MicroPhoneEvent extends Event {
private var _microPhone:Microphone;
public static const CHOOSE_GIRL:String = "CHOOSE_GIRL";
public function MicroPhoneEvent(_arg1:String, _arg2:Microphone){
super(_arg1);
_microPhone = _arg2;
}
public function get microPhone():Microphone{
return (_microPhone);
}
}
}//package event
Section 75
//TollGateEvent (event.TollGateEvent)
package event {
import flash.events.*;
public class TollGateEvent extends Event {
private var _gateNum:Number;
public static const LEVEL_COMPLETE:String = "LEVEL_COMPLETE";
public static const NEXT_LEVEL:String = "NEXT_LEVEL";
public static const TRY_AGAIN:String = "TRY_AGAIN";
public static const GAME_GO_START:String = "GAME_GO_START";
public function TollGateEvent(_arg1:String, _arg2:Number){
super(_arg1);
_gateNum = _arg2;
}
public function get gateNum():Number{
return (_gateNum);
}
}
}//package event
Section 76
//TryAgainEvent (event.TryAgainEvent)
package event {
import flash.events.*;
public class TryAgainEvent extends Event {
private var _gateNum:Number;
public static const TIME_OVER:String = "onEventTimeOver";
public function TryAgainEvent(_arg1:String, _arg2:Number){
super(_arg1);
_gateNum = _arg2;
}
public function get gateNum():Number{
return (_gateNum);
}
}
}//package event
Section 77
//mp3 (failed.mp3)
package failed {
import flash.media.*;
public dynamic class mp3 extends Sound {
}
}//package failed
Section 78
//TweenEvent (gs.events.TweenEvent)
package gs.events {
import flash.events.*;
public class TweenEvent extends Event {
public var info:Object;
public static const UPDATE:String = "update";
public static const START:String = "start";
public static const version:Number = 0.9;
public static const COMPLETE:String = "complete";
public function TweenEvent(_arg1:String, _arg2:Object=null, _arg3:Boolean=false, _arg4:Boolean=false){
super(_arg1, _arg3, _arg4);
this.info = _arg2;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.info, this.bubbles, this.cancelable));
}
}
}//package gs.events
Section 79
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class AutoAlphaPlugin extends TweenPlugin {
protected var _tweenVisible:Boolean;
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function AutoAlphaPlugin(){
this.propName = "autoAlpha";
this.overwriteProps = ["alpha", "visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (((!((_target.visible == true))) && (_tweenVisible))){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((((_tweenVisible) && (!((_tween.vars.runBackwards == true))))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(!((_arg2 == 0)));
_tweenVisible = true;
addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha");
return (true);
}
override public function killProps(_arg1:Object):void{
super.killProps(_arg1);
_tweenVisible = !(Boolean(("visible" in _arg1)));
}
}
}//package gs.plugins
Section 80
//BevelFilterPlugin (gs.plugins.BevelFilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
public class BevelFilterPlugin extends FilterPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function BevelFilterPlugin(){
this.propName = "bevelFilter";
this.overwriteProps = ["bevelFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = BevelFilter;
initFilter(_arg2, new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_arg2.quality) || (2))));
return (true);
}
}
}//package gs.plugins
Section 81
//BezierPlugin (gs.plugins.BezierPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class BezierPlugin extends TweenPlugin {
protected var _future:Object;
protected var _orient:Boolean;
protected var _orientData:Array;
protected var _beziers:Object;
protected var _target:Object;
protected static const _RAD2DEG:Number = 57.2957795130823;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function BezierPlugin(){
_future = {};
super();
this.propName = "bezier";
this.overwriteProps = [];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:String;
var _local4:Object;
var _local5:Number;
var _local6:uint;
var _local7:Number;
var _local8:int;
var _local9:Object;
var _local10:Boolean;
var _local11:Number;
var _local12:Number;
var _local13:Array;
var _local14:Number;
if (_arg1 == 1){
for (_local3 in _beziers) {
_local2 = (_beziers[_local3].length - 1);
_target[_local3] = _beziers[_local3][_local2][2];
};
} else {
for (_local3 in _beziers) {
_local6 = _beziers[_local3].length;
if (_arg1 < 0){
_local2 = 0;
} else {
if (_arg1 >= 1){
_local2 = (_local6 - 1);
} else {
_local2 = int((_local6 * _arg1));
};
};
_local5 = ((_arg1 - (_local2 * (1 / _local6))) * _local6);
_local4 = _beziers[_local3][_local2];
if (this.round){
_local7 = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0])))));
_local8 = ((_local7)<0) ? -1 : 1;
_target[_local3] = ((((_local7 % 1) * _local8))>0.5) ? (int(_local7) + _local8) : int(_local7);
} else {
_target[_local3] = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0])))));
};
};
};
if (_orient){
_local9 = _target;
_local10 = this.round;
_target = _future;
this.round = false;
_orient = false;
this.changeFactor = (_arg1 + 0.01);
_target = _local9;
this.round = _local10;
_orient = true;
_local2 = 0;
while (_local2 < _orientData.length) {
_local13 = _orientData[_local2];
_local14 = ((_local13[3]) || (0));
_local11 = (_future[_local13[0]] - _target[_local13[0]]);
_local12 = (_future[_local13[1]] - _target[_local13[1]]);
_target[_local13[2]] = ((Math.atan2(_local12, _local11) * _RAD2DEG) + _local14);
_local2++;
};
};
}
protected function init(_arg1:TweenLite, _arg2:Array, _arg3:Boolean):void{
var _local4:Object;
var _local5:int;
var _local6:String;
_target = _arg1.target;
if (_arg1.exposedVars.orientToBezier == true){
_orientData = [["x", "y", "rotation", 0]];
_orient = true;
} else {
if ((_arg1.exposedVars.orientToBezier is Array)){
_orientData = _arg1.exposedVars.orientToBezier;
_orient = true;
};
};
_local4 = {};
_local5 = 0;
while (_local5 < _arg2.length) {
for (_local6 in _arg2[_local5]) {
if (_local4[_local6] == undefined){
_local4[_local6] = [_arg1.target[_local6]];
};
if (typeof(_arg2[_local5][_local6]) == "number"){
_local4[_local6].push(_arg2[_local5][_local6]);
} else {
_local4[_local6].push((_arg1.target[_local6] + Number(_arg2[_local5][_local6])));
};
};
_local5++;
};
for (_local6 in _local4) {
this.overwriteProps[this.overwriteProps.length] = _local6;
if (_arg1.exposedVars[_local6] != undefined){
if (typeof(_arg1.exposedVars[_local6]) == "number"){
_local4[_local6].push(_arg1.exposedVars[_local6]);
} else {
_local4[_local6].push((_arg1.target[_local6] + Number(_arg1.exposedVars[_local6])));
};
delete _arg1.exposedVars[_local6];
_local5 = (_arg1.tweens.length - 1);
while (_local5 > -1) {
if (_arg1.tweens[_local5].name == _local6){
_arg1.tweens.splice(_local5, 1);
};
_local5--;
};
};
};
_beziers = parseBeziers(_local4, _arg3);
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg2 is Array)){
return (false);
};
init(_arg3, (_arg2 as Array), false);
return (true);
}
override public function killProps(_arg1:Object):void{
var _local2:String;
for (_local2 in _beziers) {
if ((_local2 in _arg1)){
delete _beziers[_local2];
};
};
super.killProps(_arg1);
}
public static function parseBeziers(_arg1:Object, _arg2:Boolean=false):Object{
var _local3:int;
var _local4:Array;
var _local5:Object;
var _local6:String;
var _local7:Object;
_local7 = {};
if (_arg2){
for (_local6 in _arg1) {
_local4 = _arg1[_local6];
_local5 = [];
_local7[_local6] = _local5;
if (_local4.length > 2){
_local5[_local5.length] = [_local4[0], (_local4[1] - ((_local4[2] - _local4[0]) / 4)), _local4[1]];
_local3 = 1;
while (_local3 < (_local4.length - 1)) {
_local5[_local5.length] = [_local4[_local3], (_local4[_local3] + (_local4[_local3] - _local5[(_local3 - 1)][1])), _local4[(_local3 + 1)]];
_local3++;
};
} else {
_local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]];
};
};
} else {
for (_local6 in _arg1) {
_local4 = _arg1[_local6];
_local5 = [];
_local7[_local6] = _local5;
if (_local4.length > 3){
_local5[_local5.length] = [_local4[0], _local4[1], ((_local4[1] + _local4[2]) / 2)];
_local3 = 2;
while (_local3 < (_local4.length - 2)) {
_local5[_local5.length] = [_local5[(_local3 - 2)][2], _local4[_local3], ((_local4[_local3] + _local4[(_local3 + 1)]) / 2)];
_local3++;
};
_local5[_local5.length] = [_local5[(_local5.length - 1)][2], _local4[(_local4.length - 2)], _local4[(_local4.length - 1)]];
} else {
if (_local4.length == 3){
_local5[_local5.length] = [_local4[0], _local4[1], _local4[2]];
} else {
if (_local4.length == 2){
_local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]];
};
};
};
};
};
return (_local7);
}
}
}//package gs.plugins
Section 82
//BezierThroughPlugin (gs.plugins.BezierThroughPlugin)
package gs.plugins {
import gs.*;
public class BezierThroughPlugin extends BezierPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function BezierThroughPlugin(){
this.propName = "bezierThrough";
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg2 is Array)){
return (false);
};
init(_arg3, (_arg2 as Array), true);
return (true);
}
}
}//package gs.plugins
Section 83
//BlurFilterPlugin (gs.plugins.BlurFilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
public class BlurFilterPlugin extends FilterPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function BlurFilterPlugin(){
this.propName = "blurFilter";
this.overwriteProps = ["blurFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = BlurFilter;
initFilter(_arg2, new BlurFilter(0, 0, ((_arg2.quality) || (2))));
return (true);
}
}
}//package gs.plugins
Section 84
//ColorMatrixFilterPlugin (gs.plugins.ColorMatrixFilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
public class ColorMatrixFilterPlugin extends FilterPlugin {
protected var _matrix:Array;
protected var _matrixTween:EndArrayPlugin;
public static const API:Number = 1;
public static const VERSION:Number = 1.1;
protected static var _lumG:Number = 0.71516;
protected static var _lumR:Number = 0.212671;
protected static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
protected static var _lumB:Number = 0.072169;
public function ColorMatrixFilterPlugin(){
this.propName = "colorMatrixFilter";
this.overwriteProps = ["colorMatrixFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:Object;
var _local5:Array;
_target = _arg1;
_type = ColorMatrixFilter;
_local4 = _arg2;
initFilter({remove:_arg2.remove, index:_arg2.index, addFilter:_arg2.addFilter}, new ColorMatrixFilter(_idMatrix.slice()));
_matrix = ColorMatrixFilter(_filter).matrix;
_local5 = [];
if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){
_local5 = _local4.matrix;
} else {
if (_local4.relative == true){
_local5 = _matrix.slice();
} else {
_local5 = _idMatrix.slice();
};
_local5 = setBrightness(_local5, _local4.brightness);
_local5 = setContrast(_local5, _local4.contrast);
_local5 = setHue(_local5, _local4.hue);
_local5 = setSaturation(_local5, _local4.saturation);
_local5 = setThreshold(_local5, _local4.threshold);
if (!isNaN(_local4.colorize)){
_local5 = colorize(_local5, _local4.colorize, _local4.amount);
};
};
_matrixTween = new EndArrayPlugin();
_matrixTween.init(_matrix, _local5);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
_matrixTween.changeFactor = _arg1;
ColorMatrixFilter(_filter).matrix = _matrix;
super.changeFactor = _arg1;
}
public static function setSaturation(_arg1:Array, _arg2:Number):Array{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_local3 = (1 - _arg2);
_local4 = (_local3 * _lumR);
_local5 = (_local3 * _lumG);
_local6 = (_local3 * _lumB);
_local7 = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local7, _arg1));
}
public static function setHue(_arg1:Array, _arg2:Number):Array{
var _local3:Number;
var _local4:Number;
var _local5:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 * (Math.PI / 180));
_local3 = Math.cos(_arg2);
_local4 = Math.sin(_arg2);
_local5 = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return (applyMatrix(_local5, _arg1));
}
public static function setThreshold(_arg1:Array, _arg2:Number):Array{
var _local3:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_local3 = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function applyMatrix(_arg1:Array, _arg2:Array):Array{
var _local3:Array;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (_arg2);
};
_local3 = [];
_local4 = 0;
_local5 = 0;
_local6 = 0;
while (_local6 < 4) {
_local7 = 0;
while (_local7 < 5) {
if (_local7 == 4){
_local5 = _arg1[(_local4 + 4)];
} else {
_local5 = 0;
};
_local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5);
_local7++;
};
_local4 = (_local4 + 5);
_local6++;
};
return (_local3);
}
public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Array;
if (isNaN(_arg2)){
return (_arg1);
};
if (isNaN(_arg3)){
_arg3 = 1;
};
_local4 = (((_arg2 >> 16) & 0xFF) / 0xFF);
_local5 = (((_arg2 >> 8) & 0xFF) / 0xFF);
_local6 = ((_arg2 & 0xFF) / 0xFF);
_local7 = (1 - _arg3);
_local8 = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local8, _arg1));
}
public static function setBrightness(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = ((_arg2 * 100) - 100);
return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1));
}
public static function setContrast(_arg1:Array, _arg2:Number):Array{
var _local3:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 + 0.01);
_local3 = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
}
}//package gs.plugins
Section 85
//DropShadowFilterPlugin (gs.plugins.DropShadowFilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
public class DropShadowFilterPlugin extends FilterPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function DropShadowFilterPlugin(){
this.propName = "dropShadowFilter";
this.overwriteProps = ["dropShadowFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = DropShadowFilter;
initFilter(_arg2, new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout, _arg2.hideObject));
return (true);
}
}
}//package gs.plugins
Section 86
//EndArrayPlugin (gs.plugins.EndArrayPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class EndArrayPlugin extends TweenPlugin {
protected var _info:Array;
protected var _a:Array;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function EndArrayPlugin(){
_info = [];
super();
this.propName = "endArray";
this.overwriteProps = ["endArray"];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:ArrayTweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_a[_local3.index] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_a[_local3.index] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function init(_arg1:Array, _arg2:Array):void{
var _local3:int;
_a = _arg1;
_local3 = (_arg2.length - 1);
while (_local3 > -1) {
if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){
_info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3]));
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (false);
};
init((_arg1 as Array), _arg2);
return (true);
}
}
}//package gs.plugins
Section 87
//FilterPlugin (gs.plugins.FilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
import gs.utils.tween.*;
public class FilterPlugin extends TweenPlugin {
protected var _index:int;
protected var _filter:BitmapFilter;
protected var _type:Class;
protected var _remove:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:TweenInfo;
var _local4:Array;
_local4 = _target.filters;
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
if (!(_local4[_index] is _type)){
_index = (_local4.length - 1);
_local2 = (_local4.length - 1);
while (_local2 > -1) {
if ((_local4[_local2] is _type)){
_index = _local2;
break;
};
_local2--;
};
};
_local4[_index] = _filter;
_target.filters = _local4;
}
public function onCompleteTween():void{
var _local1:int;
var _local2:Array;
if (_remove){
_local2 = _target.filters;
if (!(_local2[_index] is _type)){
_local1 = (_local2.length - 1);
while (_local1 > -1) {
if ((_local2[_local1] is _type)){
_local2.splice(_local1, 1);
break;
};
_local1--;
};
} else {
_local2.splice(_index, 1);
};
_target.filters = _local2;
};
}
protected function initFilter(_arg1:Object, _arg2:BitmapFilter):void{
var _local3:Array;
var _local4:String;
var _local5:int;
var _local6:HexColorsPlugin;
var _local7:Object;
_local3 = _target.filters;
_index = -1;
if (_arg1.index != null){
_index = _arg1.index;
} else {
_local5 = (_local3.length - 1);
while (_local5 > -1) {
if ((_local3[_local5] is _type)){
_index = _local5;
break;
};
_local5--;
};
};
if ((((((_index == -1)) || ((_local3[_index] == null)))) || ((_arg1.addFilter == true)))){
_index = ((_arg1.index)!=null) ? _arg1.index : _local3.length;
_local3[_index] = _arg2;
_target.filters = _local3;
};
_filter = _local3[_index];
_remove = Boolean((_arg1.remove == true));
if (_remove){
this.onComplete = onCompleteTween;
};
_local7 = ((_arg1.isTV)==true) ? _arg1.exposedVars : _arg1;
for (_local4 in _local7) {
if (((((((((!((_local4 in _filter))) || ((_filter[_local4] == _local7[_local4])))) || ((_local4 == "remove")))) || ((_local4 == "index")))) || ((_local4 == "addFilter")))){
} else {
if ((((((_local4 == "color")) || ((_local4 == "highlightColor")))) || ((_local4 == "shadowColor")))){
_local6 = new HexColorsPlugin();
_local6.initColor(_filter, _local4, _filter[_local4], _local7[_local4]);
_tweens[_tweens.length] = new TweenInfo(_local6, "changeFactor", 0, 1, _local4, false);
} else {
if ((((((((_local4 == "quality")) || ((_local4 == "inner")))) || ((_local4 == "knockout")))) || ((_local4 == "hideObject")))){
_filter[_local4] = _local7[_local4];
} else {
addTween(_filter, _local4, _filter[_local4], _local7[_local4], _local4);
};
};
};
};
}
}
}//package gs.plugins
Section 88
//FramePlugin (gs.plugins.FramePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class FramePlugin extends TweenPlugin {
public var frame:int;
protected var _target:MovieClip;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function FramePlugin(){
this.propName = "frame";
this.overwriteProps = ["frame"];
this.round = true;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.gotoAndStop(this.frame);
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){
return (false);
};
_target = (_arg1 as MovieClip);
this.frame = _target.currentFrame;
addTween(this, "frame", this.frame, _arg2, "frame");
return (true);
}
}
}//package gs.plugins
Section 89
//GlowFilterPlugin (gs.plugins.GlowFilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
public class GlowFilterPlugin extends FilterPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function GlowFilterPlugin(){
this.propName = "glowFilter";
this.overwriteProps = ["glowFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = GlowFilter;
initFilter(_arg2, new GlowFilter(0xFFFFFF, 0, 0, 0, ((_arg2.strength) || (1)), ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout));
return (true);
}
}
}//package gs.plugins
Section 90
//HexColorsPlugin (gs.plugins.HexColorsPlugin)
package gs.plugins {
import gs.*;
public class HexColorsPlugin extends TweenPlugin {
protected var _colors:Array;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function HexColorsPlugin(){
this.propName = "hexColors";
this.overwriteProps = [];
_colors = [];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:Array;
_local2 = (_colors.length - 1);
while (_local2 > -1) {
_local3 = _colors[_local2];
_local3[0][_local3[1]] = ((((_local3[2] + (_arg1 * _local3[3])) << 16) | ((_local3[4] + (_arg1 * _local3[5])) << 8)) | (_local3[6] + (_arg1 * _local3[7])));
_local2--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:String;
for (_local4 in _arg2) {
initColor(_arg1, _local4, uint(_arg1[_local4]), uint(_arg2[_local4]));
};
return (true);
}
override public function killProps(_arg1:Object):void{
var _local2:int;
_local2 = (_colors.length - 1);
while (_local2 > -1) {
if (_arg1[_colors[_local2][1]] != undefined){
_colors.splice(_local2, 1);
};
_local2--;
};
super.killProps(_arg1);
}
public function initColor(_arg1:Object, _arg2:String, _arg3:uint, _arg4:uint):void{
var _local5:Number;
var _local6:Number;
var _local7:Number;
if (_arg3 != _arg4){
_local5 = (_arg3 >> 16);
_local6 = ((_arg3 >> 8) & 0xFF);
_local7 = (_arg3 & 0xFF);
_colors[_colors.length] = [_arg1, _arg2, _local5, ((_arg4 >> 16) - _local5), _local6, (((_arg4 >> 8) & 0xFF) - _local6), _local7, ((_arg4 & 0xFF) - _local7)];
this.overwriteProps[this.overwriteProps.length] = _arg2;
};
}
}
}//package gs.plugins
Section 91
//RemoveTintPlugin (gs.plugins.RemoveTintPlugin)
package gs.plugins {
public class RemoveTintPlugin extends TintPlugin {
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function RemoveTintPlugin(){
this.propName = "removeTint";
}
}
}//package gs.plugins
Section 92
//RoundPropsPlugin (gs.plugins.RoundPropsPlugin)
package gs.plugins {
public class RoundPropsPlugin extends TweenPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function RoundPropsPlugin(){
this.propName = "roundProps";
this.overwriteProps = [];
this.round = true;
}
public function add(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{
addTween(_arg1, _arg2, _arg3, (_arg3 + _arg4), _arg2);
this.overwriteProps[this.overwriteProps.length] = _arg2;
}
}
}//package gs.plugins
Section 93
//ShortRotationPlugin (gs.plugins.ShortRotationPlugin)
package gs.plugins {
import gs.*;
public class ShortRotationPlugin extends TweenPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function ShortRotationPlugin(){
this.propName = "shortRotation";
this.overwriteProps = [];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:String;
if (typeof(_arg2) == "number"){
trace("WARNING: You appear to be using the old shortRotation syntax. Instead of passing a number, please pass an object with properties that correspond to the rotations values For example, TweenMax.to(mc, 2, {shortRotation:{rotationX:-170, rotationY:25}})");
return (false);
};
for (_local4 in _arg2) {
initRotation(_arg1, _local4, _arg1[_local4], _arg2[_local4]);
};
return (true);
}
public function initRotation(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{
var _local5:Number;
_local5 = ((_arg4 - _arg3) % 360);
if (((_arg4 - _arg3) % 360) != (_local5 % 180)){
_local5 = ((_local5)<0) ? (_local5 + 360) : (_local5 - 360);
};
addTween(_arg1, _arg2, _arg3, (_arg3 + _local5), _arg2);
this.overwriteProps[this.overwriteProps.length] = _arg2;
}
}
}//package gs.plugins
Section 94
//TintPlugin (gs.plugins.TintPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.geom.*;
import gs.utils.tween.*;
public class TintPlugin extends TweenPlugin {
protected var _ct:ColorTransform;
protected var _ignoreAlpha:Boolean;
protected var _target:DisplayObject;
public static const VERSION:Number = 1.1;
public static const API:Number = 1;
protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"];
public function TintPlugin(){
this.propName = "tint";
this.overwriteProps = ["tint"];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:ColorTransform;
updateTweens(_arg1);
if (_ignoreAlpha){
_local2 = _target.transform.colorTransform;
_ct.alphaMultiplier = _local2.alphaMultiplier;
_ct.alphaOffset = _local2.alphaOffset;
};
_target.transform.colorTransform = _ct;
}
public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{
var _local3:int;
var _local4:String;
_target = _arg1;
_ct = _target.transform.colorTransform;
_local3 = (_props.length - 1);
while (_local3 > -1) {
_local4 = _props[_local3];
if (_ct[_local4] != _arg2[_local4]){
_tweens[_tweens.length] = new TweenInfo(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false);
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:ColorTransform;
if (!(_arg1 is DisplayObject)){
return (false);
};
_local4 = new ColorTransform();
if (((!((_arg2 == null))) && (!((_arg3.exposedVars.removeTint == true))))){
_local4.color = uint(_arg2);
};
_ignoreAlpha = true;
init((_arg1 as DisplayObject), _local4);
return (true);
}
}
}//package gs.plugins
Section 95
//TweenPlugin (gs.plugins.TweenPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class TweenPlugin {
public var overwriteProps:Array;
protected var _tweens:Array;
public var round:Boolean;
public var onComplete:Function;
public var propName:String;
protected var _changeFactor:Number;// = 0
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
public function TweenPlugin(){
_tweens = [];
_changeFactor = 0;
super();
}
protected function updateTweens(_arg1:Number):void{
var _local2:int;
var _local3:TweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_local3.target[_local3.property] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_changeFactor = _arg1;
}
protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{
var _local6:Number;
if (_arg4 != null){
_local6 = ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4);
if (_local6 != 0){
_tweens[_tweens.length] = new TweenInfo(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false);
};
};
}
public function killProps(_arg1:Object):void{
var _local2:int;
_local2 = (this.overwriteProps.length - 1);
while (_local2 > -1) {
if ((this.overwriteProps[_local2] in _arg1)){
this.overwriteProps.splice(_local2, 1);
};
_local2--;
};
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
if ((_tweens[_local2].name in _arg1)){
_tweens.splice(_local2, 1);
};
_local2--;
};
}
public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName);
return (true);
}
public function get changeFactor():Number{
return (_changeFactor);
}
public static function activate(_arg1:Array):Boolean{
var _local2:int;
var _local3:Object;
_local2 = (_arg1.length - 1);
while (_local2 > -1) {
_local3 = new (_arg1[_local2]);
TweenLite.plugins[_local3.propName] = _arg1[_local2];
_local2--;
};
return (true);
}
}
}//package gs.plugins
Section 96
//VisiblePlugin (gs.plugins.VisiblePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class VisiblePlugin extends TweenPlugin {
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function VisiblePlugin(){
this.propName = "visible";
this.overwriteProps = ["visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
if (_target.visible != true){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((!((_tween.vars.runBackwards == true))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(_arg2);
return (true);
}
}
}//package gs.plugins
Section 97
//VolumePlugin (gs.plugins.VolumePlugin)
package gs.plugins {
import flash.display.*;
import flash.media.*;
import gs.*;
public class VolumePlugin extends TweenPlugin {
protected var _st:SoundTransform;
protected var _target:Object;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function VolumePlugin(){
this.propName = "volume";
this.overwriteProps = ["volume"];
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){
return (false);
};
_target = _arg1;
_st = _target.soundTransform;
addTween(_st, "volume", _st.volume, _arg2, "volume");
return (true);
}
}
}//package gs.plugins
Section 98
//ArrayTweenInfo (gs.utils.tween.ArrayTweenInfo)
package gs.utils.tween {
public class ArrayTweenInfo {
public var change:Number;
public var index:uint;
public var start:Number;
public function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){
this.index = _arg1;
this.start = _arg2;
this.change = _arg3;
}
}
}//package gs.utils.tween
Section 99
//TweenInfo (gs.utils.tween.TweenInfo)
package gs.utils.tween {
public class TweenInfo {
public var start:Number;
public var name:String;
public var change:Number;
public var target:Object;
public var property:String;
public var isPlugin:Boolean;
public function TweenInfo(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
}
}
}//package gs.utils.tween
Section 100
//OverwriteManager (gs.OverwriteManager)
package gs {
import flash.utils.*;
import gs.utils.tween.*;
import flash.errors.*;
public class OverwriteManager {
public static const ALL:int = 1;
public static const NONE:int = 0;
public static const AUTO:int = 2;
public static const CONCURRENT:int = 3;
public static const version:Number = 3.12;
public static var mode:int;
public static var enabled:Boolean;
public static function killVars(_arg1:Object, _arg2:Object, _arg3:Array):void{
var _local4:int;
var _local5:String;
var _local6:TweenInfo;
_local4 = (_arg3.length - 1);
while (_local4 > -1) {
_local6 = _arg3[_local4];
if ((_local6.name in _arg1)){
_arg3.splice(_local4, 1);
} else {
if (((_local6.isPlugin) && ((_local6.name == "_MULTIPLE_")))){
_local6.target.killProps(_arg1);
if (_local6.target.overwriteProps.length == 0){
_arg3.splice(_local4, 1);
};
};
};
_local4--;
};
for (_local5 in _arg1) {
delete _arg2[_local5];
};
}
public static function manageOverwrites(_arg1:TweenLite, _arg2:Array):void{
var _local3:Object;
var _local4:int;
var _local5:Number;
var _local6:Array;
var _local7:int;
var _local8:TweenLite;
var _local9:int;
var _local10:Array;
var _local11:Object;
var _local12:int;
var _local13:TweenInfo;
var _local14:Array;
_local3 = _arg1.vars;
_local4 = ((_local3.overwrite)==undefined) ? mode : int(_local3.overwrite);
if ((((_local4 < 2)) || ((_arg2 == null)))){
return;
};
_local5 = _arg1.startTime;
_local6 = [];
_local9 = -1;
_local7 = (_arg2.length - 1);
while (_local7 > -1) {
_local8 = _arg2[_local7];
if (_local8 == _arg1){
_local9 = _local7;
} else {
if ((((((_local7 < _local9)) && ((_local8.startTime <= _local5)))) && (((_local8.startTime + ((_local8.duration * 1000) / _local8.combinedTimeScale)) > _local5)))){
_local6[_local6.length] = _local8;
};
};
_local7--;
};
if ((((_local6.length == 0)) || ((_arg1.tweens.length == 0)))){
return;
};
if (_local4 == AUTO){
_local10 = _arg1.tweens;
_local11 = {};
_local7 = (_local10.length - 1);
while (_local7 > -1) {
_local13 = _local10[_local7];
if (_local13.isPlugin){
if (_local13.name == "_MULTIPLE_"){
_local14 = _local13.target.overwriteProps;
_local12 = (_local14.length - 1);
while (_local12 > -1) {
_local11[_local14[_local12]] = true;
_local12--;
};
} else {
_local11[_local13.name] = true;
};
_local11[_local13.target.propName] = true;
} else {
_local11[_local13.name] = true;
};
_local7--;
};
_local7 = (_local6.length - 1);
while (_local7 > -1) {
killVars(_local11, _local6[_local7].exposedVars, _local6[_local7].tweens);
_local7--;
};
} else {
_local7 = (_local6.length - 1);
while (_local7 > -1) {
_local6[_local7].enabled = false;
_local7--;
};
};
}
public static function init(_arg1:int=2):int{
if (TweenLite.version < 10.09){
trace("TweenLite warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com.");
};
TweenLite.overwriteManager = OverwriteManager;
mode = _arg1;
enabled = true;
return (mode);
}
}
}//package gs
Section 101
//TweenLite (gs.TweenLite)
package gs {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import gs.utils.tween.*;
import gs.plugins.*;
public class TweenLite {
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _hasPlugins:Boolean;
public var started:Boolean;
public var initted:Boolean;
public var active:Boolean;
public var startTime:Number;
public var target:Object;
public var duration:Number;
public var gc:Boolean;
public var vars:Object;
public var ease:Function;
public var tweens:Array;
public var exposedVars:Object;
public var combinedTimeScale:Number;
public var initTime:Number;
public static const version:Number = 10.092;
private static var _timer:Timer = new Timer(2000);
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var currentTime:uint;
public static var masterList:Dictionary = new Dictionary(false);
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, persist:1, renderOnStart:1, proxiedEase:1, easeParams:1, yoyo:1, loop:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1};
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var timingSprite:Sprite = new Sprite();
public static var overwriteManager:Object;
private static var _tlInitted:Boolean;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:int;
super();
if (_arg1 == null){
return;
};
if (!_tlInitted){
TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin]);
currentTime = getTimer();
timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
_timer.addEventListener("timer", killGarbage, false, 0, true);
_timer.start();
_tlInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
this.combinedTimeScale = ((_arg3.timeScale) || (1));
this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0))));
this.target = _arg1;
if (typeof(this.vars.ease) != "function"){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
this.ease = this.vars.ease;
this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedVars : this.vars;
this.tweens = [];
this.initTime = currentTime;
this.startTime = (this.initTime + (this.delay * 1000));
_local4 = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if (((!((_arg1 in masterList))) || ((_local4 == 1)))){
masterList[_arg1] = [this];
} else {
masterList[_arg1].push(this);
};
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){
initTweenVals();
if (this.active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
if (((((!((this.exposedVars.visible == null))) && ((this.vars.runBackwards == true)))) && ((this.target is DisplayObject)))){
this.target.visible = this.exposedVars.visible;
};
};
}
public function set enabled(_arg1:Boolean):void{
var _local2:Array;
var _local3:Boolean;
var _local4:int;
if (_arg1){
if (!(this.target in masterList)){
masterList[this.target] = [this];
} else {
_local2 = masterList[this.target];
_local4 = (_local2.length - 1);
while (_local4 > -1) {
if (_local2[_local4] == this){
_local3 = true;
break;
};
_local4--;
};
if (!_local3){
_local2[_local2.length] = this;
};
};
};
this.gc = (_arg1) ? false : true;
if (this.gc){
this.active = false;
} else {
this.active = this.started;
};
}
public function clear():void{
this.tweens = [];
this.vars = (this.exposedVars = {ease:this.vars.ease});
_hasUpdate = false;
}
public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
_local2 = ((_arg1 - this.startTime) * 0.001);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change));
_local5--;
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
public function activate():void{
this.started = (this.active = true);
if (!this.initted){
initTweenVals();
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
}
public function get enabled():Boolean{
return ((this.gc) ? false : true);
}
public function initTweenVals():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:TweenInfo;
if (((!((this.exposedVars.timeScale == undefined))) && (this.target.hasOwnProperty("timeScale")))){
this.tweens[this.tweens.length] = new TweenInfo(this.target, "timeScale", this.target.timeScale, (this.exposedVars.timeScale - this.target.timeScale), "timeScale", false);
};
for (_local1 in this.exposedVars) {
if ((_local1 in _reservedProps)){
} else {
if ((_local1 in plugins)){
_local3 = new (plugins[_local1]);
if (_local3.onInitTween(this.target, this.exposedVars[_local1], this) == false){
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
} else {
this.tweens[this.tweens.length] = new TweenInfo(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true);
_hasPlugins = true;
};
} else {
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
};
};
};
if (this.vars.runBackwards == true){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
_local4 = this.tweens[_local2];
this.tweens[_local2].start = (_local4.start + _local4.change);
_local4.change = -(_local4.change);
_local2--;
};
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
if (((TweenLite.overwriteManager.enabled) && ((this.target in masterList)))){
overwriteManager.manageOverwrites(this, masterList[this.target]);
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.exposedVars, this.tweens);
};
}
public function complete(_arg1:Boolean=false):void{
var _local2:int;
if (!_arg1){
if (!this.initted){
initTweenVals();
};
this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale));
render(currentTime);
return;
};
if (_hasPlugins){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
if (((this.tweens[_local2].isPlugin) && (!((this.tweens[_local2].target.onComplete == null))))){
this.tweens[_local2].target.onComplete();
};
_local2--;
};
};
if (this.vars.persist != true){
this.enabled = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function updateAll(_arg1:Event=null):void{
var _local2:uint;
var _local3:Dictionary;
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
_local2 = (currentTime = getTimer());
_local3 = masterList;
for each (_local4 in _local3) {
_local5 = (_local4.length - 1);
while (_local5 > -1) {
_local6 = _local4[_local5];
if (_local6.active){
_local6.render(_local2);
} else {
if (_local6.gc){
_local4.splice(_local5, 1);
} else {
if (_local2 >= _local6.startTime){
_local6.activate();
_local6.render(_local2);
};
};
};
_local5--;
};
};
}
public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{
if (_arg1 != null){
if (_arg2){
_arg1.clear();
};
_arg1.enabled = false;
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
if (((!((_arg1 == null))) && ((_arg1 in masterList)))){
_local3 = masterList[_arg1];
_local4 = (_local3.length - 1);
while (_local4 > -1) {
_local5 = _local3[_local4];
if (((_arg2) && (!(_local5.gc)))){
_local5.complete(false);
};
_local5.clear();
_local4--;
};
delete masterList[_arg1];
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
protected static function killGarbage(_arg1:TimerEvent):void{
var _local2:Dictionary;
var _local3:Object;
_local2 = masterList;
for (_local3 in _local2) {
if (_local2[_local3].length == 0){
delete _local2[_local3];
};
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 102
//TweenMax (gs.TweenMax)
package gs {
import flash.events.*;
import flash.utils.*;
import gs.utils.tween.*;
import gs.plugins.*;
import gs.events.*;
public class TweenMax extends TweenLite implements IEventDispatcher {
protected var _dispatcher:EventDispatcher;
protected var _callbacks:Object;
public var pauseTime:Number;
protected var _repeatCount:Number;
protected var _timeScale:Number;
public static const version:Number = 10.12;
public static var removeTween:Function = TweenLite.removeTween;
private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init();
;
protected static var _pausedTweens:Dictionary = new Dictionary(false);
protected static var _globalTimeScale:Number = 1;
public static var killTweensOf:Function = TweenLite.killTweensOf;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _activatedPlugins:Boolean = TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin, HexColorsPlugin, BlurFilterPlugin, ColorMatrixFilterPlugin, BevelFilterPlugin, DropShadowFilterPlugin, GlowFilterPlugin, RoundPropsPlugin, BezierPlugin, BezierThroughPlugin, ShortRotationPlugin]);
public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){
super(_arg1, _arg2, _arg3);
if (TweenLite.version < 10.092){
trace("TweenMax error! Please update your TweenLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com.");
};
if (((!((this.combinedTimeScale == 1))) && ((this.target is TweenMax)))){
_timeScale = 1;
this.combinedTimeScale = _globalTimeScale;
} else {
_timeScale = this.combinedTimeScale;
this.combinedTimeScale = (this.combinedTimeScale * _globalTimeScale);
};
if (((!((this.combinedTimeScale == 1))) && (!((this.delay == 0))))){
this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale)));
};
if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){
initDispatcher();
if ((((_arg2 == 0)) && ((this.delay == 0)))){
onUpdateDispatcher();
onCompleteDispatcher();
};
};
_repeatCount = 0;
if (((!(isNaN(this.vars.yoyo))) || (!(isNaN(this.vars.loop))))){
this.vars.persist = true;
};
if ((((this.delay == 0)) && (!((this.vars.startAt == null))))){
this.vars.startAt.overwrite = 0;
new TweenMax(this.target, 0, this.vars.startAt);
};
}
public function set repeatCount(_arg1:Number):void{
_repeatCount = _arg1;
}
override public function set enabled(_arg1:Boolean):void{
if (!_arg1){
_pausedTweens[this] = null;
delete _pausedTweens[this];
};
super.enabled = _arg1;
if (_arg1){
this.combinedTimeScale = (_timeScale * _globalTimeScale);
};
}
public function set reversed(_arg1:Boolean):void{
if (this.reversed != _arg1){
reverse();
};
}
override public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
_local2 = (((_arg1 - this.startTime) * 0.001) * this.combinedTimeScale);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change));
_local5--;
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
protected function adjustStartValues():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:TweenInfo;
var _local6:int;
_local1 = this.progress;
if (_local1 != 0){
_local2 = this.ease(_local1, 0, 1, 1);
_local3 = (1 / (1 - _local2));
_local6 = (this.tweens.length - 1);
while (_local6 > -1) {
_local5 = this.tweens[_local6];
_local4 = (_local5.start + _local5.change);
if (_local5.isPlugin){
_local5.change = ((_local4 - _local2) * _local3);
} else {
_local5.change = ((_local4 - _local5.target[_local5.property]) * _local3);
};
_local5.start = (_local4 - _local5.change);
_local6--;
};
};
}
public function get timeScale():Number{
return (_timeScale);
}
public function restart(_arg1:Boolean=false):void{
if (_arg1){
this.initTime = currentTime;
this.startTime = (currentTime + (this.delay * (1000 / this.combinedTimeScale)));
} else {
this.startTime = currentTime;
this.initTime = (currentTime - (this.delay * (1000 / this.combinedTimeScale)));
};
_repeatCount = 0;
if (this.target != this.vars.onComplete){
render(this.startTime);
};
this.pauseTime = NaN;
_pausedTweens[this] = null;
delete _pausedTweens[this];
this.enabled = true;
}
public function get paused():Boolean{
return (!(isNaN(this.pauseTime)));
}
public function killProperties(_arg1:Array):void{
var _local2:Object;
var _local3:int;
_local2 = {};
_local3 = (_arg1.length - 1);
while (_local3 > -1) {
_local2[_arg1[_local3]] = true;
_local3--;
};
killVars(_local2);
}
public function resume():void{
this.enabled = true;
if (!isNaN(this.pauseTime)){
this.initTime = (this.initTime + (currentTime - this.pauseTime));
this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale)));
this.pauseTime = NaN;
if (((!(this.started)) && ((currentTime >= this.startTime)))){
activate();
} else {
this.active = this.started;
};
_pausedTweens[this] = null;
delete _pausedTweens[this];
};
}
override public function complete(_arg1:Boolean=false):void{
if (((((!(isNaN(this.vars.yoyo))) && ((((_repeatCount < this.vars.yoyo)) || ((this.vars.yoyo == 0)))))) || (((!(isNaN(this.vars.loop))) && ((((_repeatCount < this.vars.loop)) || ((this.vars.loop == 0)))))))){
_repeatCount++;
if (!isNaN(this.vars.yoyo)){
this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease;
};
this.startTime = (_arg1) ? (this.startTime + (this.duration * (1000 / this.combinedTimeScale))) : currentTime;
this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale)));
} else {
if (this.vars.persist == true){
pause();
};
};
super.complete(_arg1);
}
public function invalidate(_arg1:Boolean=true):void{
var _local2:Number;
if (this.initted){
_local2 = this.progress;
if (((!(_arg1)) && (!((_local2 == 0))))){
this.progress = 0;
};
this.tweens = [];
_hasPlugins = false;
this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedProps : this.vars;
initTweenVals();
_timeScale = ((this.vars.timeScale) || (1));
this.combinedTimeScale = (_timeScale * _globalTimeScale);
this.delay = ((this.vars.delay) || (0));
if (isNaN(this.pauseTime)){
this.startTime = (this.initTime + ((this.delay * 1000) / this.combinedTimeScale));
};
if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){
if (_dispatcher != null){
this.vars.onStart = _callbacks.onStart;
this.vars.onUpdate = _callbacks.onUpdate;
this.vars.onComplete = _callbacks.onComplete;
_dispatcher = null;
};
initDispatcher();
};
if (_local2 != 0){
if (_arg1){
adjustStartValues();
} else {
this.progress = _local2;
};
};
};
}
public function get progress():Number{
var _local1:Number;
var _local2:Number;
_local1 = (isNaN(this.pauseTime)) ? currentTime : this.pauseTime;
_local2 = (((((_local1 - this.initTime) * 0.001) - (this.delay / this.combinedTimeScale)) / this.duration) * this.combinedTimeScale);
if (_local2 > 1){
return (1);
};
if (_local2 < 0){
return (0);
};
return (_local2);
}
public function willTrigger(_arg1:String):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.willTrigger(_arg1));
}
public function dispatchEvent(_arg1:Event):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.dispatchEvent(_arg1));
}
public function get reversed():Boolean{
return ((this.ease == reverseEase));
}
public function get repeatCount():Number{
return (_repeatCount);
}
protected function onStartDispatcher(... _args):void{
if (_callbacks.onStart != null){
_callbacks.onStart.apply(null, this.vars.onStartParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START));
}
public function setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{
var _local4:Number;
var _local5:int;
var _local6:TweenInfo;
var _local7:Object;
var _local8:Object;
var _local9:Array;
var _local10:Boolean;
var _local11:Array;
var _local12:Object;
_local4 = this.progress;
if (this.initted){
if (!_arg3){
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local6 = this.tweens[_local5];
if (_local6.name == _arg1){
_local6.target[_local6.property] = _local6.start;
};
_local5--;
};
};
_local7 = this.vars;
_local8 = this.exposedVars;
_local9 = this.tweens;
_local10 = _hasPlugins;
this.tweens = [];
this.vars = (this.exposedVars = {});
this.vars[_arg1] = _arg2;
initTweenVals();
if (((!((this.ease == reverseEase))) && ((_local7.ease is Function)))){
this.ease = _local7.ease;
};
if (((_arg3) && (!((_local4 == 0))))){
adjustStartValues();
};
_local11 = this.tweens;
this.vars = _local7;
this.exposedVars = _local8;
this.tweens = _local9;
_local12 = {};
_local12[_arg1] = true;
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local6 = this.tweens[_local5];
if (_local6.name == _arg1){
this.tweens.splice(_local5, 1);
} else {
if (((_local6.isPlugin) && ((_local6.name == "_MULTIPLE_")))){
_local6.target.killProps(_local12);
if (_local6.target.overwriteProps.length == 0){
this.tweens.splice(_local5, 1);
};
};
};
_local5--;
};
this.tweens = this.tweens.concat(_local11);
_hasPlugins = Boolean(((_local10) || (_hasPlugins)));
};
this.vars[_arg1] = (this.exposedVars[_arg1] = _arg2);
}
public function set timeScale(_arg1:Number):void{
if (_arg1 < 1E-5){
_arg1 = (_timeScale = 1E-5);
} else {
_timeScale = _arg1;
_arg1 = (_arg1 * _globalTimeScale);
};
this.initTime = ((currentTime - ((((currentTime - this.initTime) - (this.delay * (1000 / this.combinedTimeScale))) * this.combinedTimeScale) * (1 / _arg1))) - (this.delay * (1000 / _arg1)));
if (this.startTime != 999999999999999){
this.startTime = (this.initTime + (this.delay * (1000 / _arg1)));
};
this.combinedTimeScale = _arg1;
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (_dispatcher != null){
_dispatcher.removeEventListener(_arg1, _arg2, _arg3);
};
}
override public function initTweenVals():void{
var _local1:int;
var _local2:int;
var _local3:String;
var _local4:String;
var _local5:Array;
var _local6:Object;
var _local7:TweenInfo;
if (((!((this.vars.startAt == null))) && (!((this.delay == 0))))){
this.vars.startAt.overwrite = 0;
new TweenMax(this.target, 0, this.vars.startAt);
};
super.initTweenVals();
if ((((this.exposedVars.roundProps is Array)) && (!((TweenLite.plugins.roundProps == null))))){
_local5 = this.exposedVars.roundProps;
_local1 = (_local5.length - 1);
while (_local1 > -1) {
_local3 = _local5[_local1];
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
_local7 = this.tweens[_local2];
if (_local7.name == _local3){
if (_local7.isPlugin){
_local7.target.round = true;
} else {
if (_local6 == null){
_local6 = new TweenLite.plugins.roundProps();
_local6.add(_local7.target, _local3, _local7.start, _local7.change);
_hasPlugins = true;
this.tweens[_local2] = new TweenInfo(_local6, "changeFactor", 0, 1, _local3, true);
} else {
_local6.add(_local7.target, _local3, _local7.start, _local7.change);
this.tweens.splice(_local2, 1);
};
};
} else {
if (((((_local7.isPlugin) && ((_local7.name == "_MULTIPLE_")))) && (!(_local7.target.round)))){
_local4 = ((" " + _local7.target.overwriteProps.join(" ")) + " ");
if (_local4.indexOf(((" " + _local3) + " ")) != -1){
_local7.target.round = true;
};
};
};
_local2--;
};
_local1--;
};
};
}
protected function initDispatcher():void{
var _local1:Object;
var _local2:String;
if (_dispatcher == null){
_dispatcher = new EventDispatcher(this);
_callbacks = {onStart:this.vars.onStart, onUpdate:this.vars.onUpdate, onComplete:this.vars.onComplete};
if (this.vars.isTV == true){
this.vars = this.vars.clone();
} else {
_local1 = {};
for (_local2 in this.vars) {
_local1[_local2] = this.vars[_local2];
};
this.vars = _local1;
};
this.vars.onStart = onStartDispatcher;
this.vars.onComplete = onCompleteDispatcher;
if ((this.vars.onStartListener is Function)){
_dispatcher.addEventListener(TweenEvent.START, this.vars.onStartListener, false, 0, true);
};
if ((this.vars.onUpdateListener is Function)){
_dispatcher.addEventListener(TweenEvent.UPDATE, this.vars.onUpdateListener, false, 0, true);
this.vars.onUpdate = onUpdateDispatcher;
_hasUpdate = true;
};
if ((this.vars.onCompleteListener is Function)){
_dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true);
};
};
}
protected function onUpdateDispatcher(... _args):void{
if (_callbacks.onUpdate != null){
_callbacks.onUpdate.apply(null, this.vars.onUpdateParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE));
}
public function set progress(_arg1:Number):void{
this.startTime = (currentTime - ((this.duration * _arg1) * 1000));
this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale)));
if (!this.started){
activate();
};
render(currentTime);
if (!isNaN(this.pauseTime)){
this.pauseTime = currentTime;
this.startTime = 999999999999999;
this.active = false;
};
}
public function reverse(_arg1:Boolean=true, _arg2:Boolean=true):void{
var _local3:Number;
this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease;
_local3 = this.progress;
if (((_arg1) && ((_local3 > 0)))){
this.startTime = (currentTime - ((((1 - _local3) * this.duration) * 1000) / this.combinedTimeScale));
this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale)));
};
if (_arg2 != false){
if (_local3 < 1){
resume();
} else {
restart();
};
};
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (_dispatcher == null){
initDispatcher();
};
if ((((_arg1 == TweenEvent.UPDATE)) && (!((this.vars.onUpdate == onUpdateDispatcher))))){
this.vars.onUpdate = onUpdateDispatcher;
_hasUpdate = true;
};
_dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function set paused(_arg1:Boolean):void{
if (_arg1){
pause();
} else {
resume();
};
}
public function hasEventListener(_arg1:String):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.hasEventListener(_arg1));
}
public function pause():void{
if (isNaN(this.pauseTime)){
this.pauseTime = currentTime;
this.startTime = 999999999999999;
this.enabled = false;
_pausedTweens[this] = this;
};
}
public function reverseEase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.ease((_arg4 - _arg1), _arg2, _arg3, _arg4));
}
protected function onCompleteDispatcher(... _args):void{
if (_callbacks.onComplete != null){
_callbacks.onComplete.apply(null, this.vars.onCompleteParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE));
}
public static function set globalTimeScale(_arg1:Number):void{
setGlobalTimeScale(_arg1);
}
public static function pauseAll(_arg1:Boolean=true, _arg2:Boolean=false):void{
changePause(true, _arg1, _arg2);
}
public static function killAllDelayedCalls(_arg1:Boolean=false):void{
killAll(_arg1, false, true);
}
public static function setGlobalTimeScale(_arg1:Number):void{
var _local2:Dictionary;
var _local3:int;
var _local4:Array;
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
_local2 = masterList;
_globalTimeScale = _arg1;
for each (_local4 in _local2) {
_local3 = (_local4.length - 1);
while (_local3 > -1) {
if ((_local4[_local3] is TweenMax)){
_local4[_local3].timeScale = (_local4[_local3].timeScale * 1);
};
_local3--;
};
};
}
public static function get globalTimeScale():Number{
return (_globalTimeScale);
}
public static function getTweensOf(_arg1:Object):Array{
var _local2:Array;
var _local3:Array;
var _local4:TweenLite;
var _local5:int;
_local2 = masterList[_arg1];
_local3 = [];
if (_local2 != null){
_local5 = (_local2.length - 1);
while (_local5 > -1) {
if (!_local2[_local5].gc){
_local3[_local3.length] = _local2[_local5];
};
_local5--;
};
};
for each (_local4 in _pausedTweens) {
if (_local4.target == _arg1){
_local3[_local3.length] = _local4;
};
};
return (_local3);
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenMax{
return (new TweenMax(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, persist:_arg4, overwrite:0}));
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:Array;
var _local3:int;
_local2 = getTweensOf(_arg1);
_local3 = (_local2.length - 1);
while (_local3 > -1) {
if (((((_local2[_local3].active) || ((_local2[_local3].startTime == currentTime)))) && (!(_local2[_local3].gc)))){
return (true);
};
_local3--;
};
return (false);
}
public static function changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false):void{
var _local4:Array;
var _local5:Boolean;
var _local6:int;
_local4 = getAllTweens();
_local6 = (_local4.length - 1);
while (_local6 > -1) {
_local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete);
if ((((_local4[_local6] is TweenMax)) && ((((_local5 == _arg3)) || (!((_local5 == _arg2))))))){
_local4[_local6].paused = _arg1;
};
_local6--;
};
}
public static function killAllTweens(_arg1:Boolean=false):void{
killAll(_arg1, true, false);
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
_arg3.runBackwards = true;
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true, _arg3:Boolean=true):void{
var _local4:Array;
var _local5:Boolean;
var _local6:int;
_local4 = getAllTweens();
_local6 = (_local4.length - 1);
while (_local6 > -1) {
_local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete);
if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){
if (_arg1){
_local4[_local6].complete(false);
_local4[_local6].clear();
} else {
TweenLite.removeTween(_local4[_local6], true);
};
};
_local6--;
};
}
public static function getAllTweens():Array{
var _local1:Dictionary;
var _local2:Array;
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
_local1 = masterList;
_local2 = [];
for each (_local3 in _local1) {
_local4 = (_local3.length - 1);
while (_local4 > -1) {
if (!_local3[_local4].gc){
_local2[_local2.length] = _local3[_local4];
};
_local4--;
};
};
for each (_local5 in _pausedTweens) {
_local2[_local2.length] = _local5;
};
return (_local2);
}
public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=false):void{
changePause(false, _arg1, _arg2);
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
return (new TweenMax(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 103
//mp3 (level.mp3)
package level {
import flash.media.*;
public dynamic class mp3 extends Sound {
}
}//package level
Section 104
//mp3 (mainscreen.mp3)
package mainscreen {
import flash.media.*;
public dynamic class mp3 extends Sound {
}
}//package mainscreen
Section 105
//ChooseMicrophoneUI (manage.ChooseMicrophoneUI)
package manage {
import flash.events.*;
import flash.display.*;
import event.*;
import tool.*;
import flash.media.*;
import gs.*;
import screen.*;
public class ChooseMicrophoneUI extends AbstractScreen {
private var _noBt:MovieClip;
private var _yesBt:MovieClip;
private var _microPhone:Microphone;
private var _mc:MovieClip;
private var _backBt:MovieClip;
public function ChooseMicrophoneUI(_arg1:Sprite){
super(_arg1);
SoundsManager.getInstance().overNewMusic("mainscreen.mp3", SoundsManager.getInstance().ValueMusic);
initDis();
initEvent();
transitbright();
}
private function clickYesBt(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
DocumentClass._tracker.trackEvent("Sticky Notes Chick", "mic_used", "per session", 0);
_microPhone = Microphone.getMicrophone();
_microPhone.rate = 11;
_microPhone.setUseEchoSuppression(false);
_microPhone.setLoopBack(true);
_microPhone.setSilenceLevel(5, 0);
_microPhone.addEventListener(StatusEvent.STATUS, onStatus);
if (_microPhone != null){
_mc["roadsign"].alpha = 100;
};
}
private function delDis():void{
_root.removeChild(_mc);
_mc = null;
}
private function transitdark():void{
TweenMax.to(_mc, 0.5, {alpha:0, onComplete:del});
}
private function del():void{
delEvent();
delDis();
}
private function backBtRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("othertouch", SoundsManager.getInstance().ValueSound);
_backBt.gotoAndStop((_backBt.currentFrame + 1));
}
private function transitbright():void{
_mc.alpha = 0;
TweenMax.to(_mc, 0.5, {alpha:1});
}
private function noRollOut(_arg1:MouseEvent):void{
_noBt.gotoAndStop((_noBt.currentFrame - 1));
}
private function onStatus(_arg1:StatusEvent):void{
if (_arg1.code == "Microphone.Muted"){
_mc["roadsign"].alpha = 0;
_root.dispatchEvent(new MicroPhoneEvent(MicroPhoneEvent.CHOOSE_GIRL, null));
};
if (_arg1.code == "Microphone.Unmuted"){
_root.dispatchEvent(new MicroPhoneEvent(MicroPhoneEvent.CHOOSE_GIRL, _microPhone));
};
}
private function delEvent():void{
_yesBt.removeEventListener(MouseEvent.CLICK, clickYesBt);
_yesBt.removeEventListener(MouseEvent.ROLL_OVER, yesRollOver);
_yesBt.removeEventListener(MouseEvent.ROLL_OUT, yesRollOut);
_noBt.removeEventListener(MouseEvent.CLICK, clickNoBt);
_noBt.removeEventListener(MouseEvent.ROLL_OVER, noRollOver);
_noBt.removeEventListener(MouseEvent.ROLL_OUT, noRollOut);
if (_microPhone != null){
_microPhone.removeEventListener(StatusEvent.STATUS, onStatus);
};
_backBt.removeEventListener(MouseEvent.CLICK, clickBackBt);
_backBt.removeEventListener(MouseEvent.ROLL_OVER, backBtRollOver);
_backBt.removeEventListener(MouseEvent.ROLL_OUT, backRollOut);
}
private function yesRollOut(_arg1:MouseEvent):void{
_yesBt.gotoAndStop((_yesBt.currentFrame - 1));
}
private function clickNoBt(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
_root.dispatchEvent(new MicroPhoneEvent(MicroPhoneEvent.CHOOSE_GIRL, null));
}
private function initDis():void{
_mc = Attach.getMovieClip("ifMicroScreen");
_root.addChild(_mc);
_mc["roadsign"].alpha = 0;
_yesBt = _mc["yesBt"];
_yesBt.buttonMode = true;
_yesBt.stop();
_noBt = _mc["noBt"];
_noBt.buttonMode = true;
_noBt.stop();
_backBt = _mc["backBt"];
_backBt.buttonMode = true;
_backBt.stop();
}
private function noRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("othertouch", SoundsManager.getInstance().ValueSound);
_noBt.gotoAndStop((_noBt.currentFrame + 1));
}
private function clickBackBt(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
Manage.CONTROL_HOW_TO_PLAY = false;
_root.dispatchEvent(new EventInfo(EventInfo.FRIEND_START));
}
private function backRollOut(_arg1:MouseEvent):void{
_backBt.gotoAndStop((_backBt.currentFrame - 1));
}
private function initEvent():void{
_yesBt.addEventListener(MouseEvent.CLICK, clickYesBt);
_yesBt.addEventListener(MouseEvent.ROLL_OVER, yesRollOver);
_yesBt.addEventListener(MouseEvent.ROLL_OUT, yesRollOut);
_noBt.addEventListener(MouseEvent.CLICK, clickNoBt);
_noBt.addEventListener(MouseEvent.ROLL_OVER, noRollOver);
_noBt.addEventListener(MouseEvent.ROLL_OUT, noRollOut);
_backBt.addEventListener(MouseEvent.CLICK, clickBackBt);
_backBt.addEventListener(MouseEvent.ROLL_OVER, backBtRollOver);
_backBt.addEventListener(MouseEvent.ROLL_OUT, backRollOut);
}
override public function destroy():void{
SoundsManager.getInstance().stopAllSound();
transitdark();
}
private function yesRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("othertouch", SoundsManager.getInstance().ValueSound);
_yesBt.gotoAndStop((_yesBt.currentFrame + 1));
}
}
}//package manage
Section 106
//Combo (manage.Combo)
package manage {
import flash.events.*;
import flash.display.*;
import tool.*;
import screen.*;
public class Combo extends AbstractScreen {
var _ifAppear:Boolean;// = false
var _mc:MovieClip;
var _nextCanPlay:Boolean;
var _combotime:int;
var _countTime:int;// = 5
public function Combo(_arg1:Sprite){
_ifAppear = false;
_countTime = 5;
super(_arg1);
initDis();
}
public function get nextCanPlay():Boolean{
return (_nextCanPlay);
}
public function get mc():MovieClip{
return (_mc);
}
public function run():void{
if (!_ifAppear){
_mc.alpha = (_mc.alpha - 0.03);
};
}
public function set Appear(_arg1:Boolean):void{
_ifAppear = _arg1;
if (_ifAppear){
_mc.alpha = 1;
};
}
private function onlyPlayonce(_arg1:Event):void{
if (_mc.cb.currentFrame == _mc.cb.totalFrames){
_mc.cb.stop();
_mc.cb.removeEventListener(Event.ENTER_FRAME, onlyPlayonce);
};
}
public function set combotime(_arg1:int):void{
_combotime = _arg1;
_mc.cb.gotoAndPlay(1);
_mc.cb.addEventListener(Event.ENTER_FRAME, onlyPlayonce);
_mc.cb.baba["combotext"].text = String(_combotime);
}
private function initDis():void{
_mc = Attach.getMovieClip("Comeonbaby");
_mc.cb.baba["combotext"].mouseEnabled = false;
_mc.x = 434;
_mc.y = 55;
_mc.stop();
_root.addChild(_mc);
_mc.alpha = 0;
}
}
}//package manage
Section 107
//GameCompletedUI (manage.GameCompletedUI)
package manage {
import flash.events.*;
import flash.display.*;
import event.*;
import tool.*;
import zlong.site.*;
import gs.*;
import flash.text.*;
import screen.*;
import zlong.utils.*;
public class GameCompletedUI extends AbstractScreen {
private var _scoreMc:MovieClip;
private var _logo:MovieClip;
private var _mcarr:Array;
private var _scoreAdd:int;
private var _girl2ay:Number;// = 0.2
private var _girl2:MovieClip;
private var _yesBt:MovieClip;
private var _girl1:MovieClip;
private var _girl3:MovieClip;
private var _scoreTemp:int;// = 0
private var _timecontrol:Number;// = 120
private var _girl2vy:Number;// = 0
private var _mc:MovieClip;
private var _girl1ax:Number;// = 0.2
private var totalscore:Number;// = 0
private var _girl3ax:Number;// = -0.2
private var _noBt:MovieClip;
private var _ifsubmit:Boolean;// = true
private var _commit:MovieClip;
private var _girl1vx:Number;// = 0
private var _girl3vx:Number;// = 0
private var _resetmc:MovieClip;
private var _word:MovieClip;
private var _totalscore:TextField;
private var _mainmenu:MovieClip;
public function GameCompletedUI(_arg1:Sprite){
totalscore = 0;
_scoreTemp = 0;
_girl1vx = 0;
_girl1ax = 0.2;
_girl2vy = 0;
_girl2ay = 0.2;
_girl3vx = 0;
_girl3ax = -0.2;
_mcarr = new Array();
_timecontrol = 120;
_ifsubmit = true;
super(_arg1);
SoundsManager.getInstance().overNewMusic("mainscreen.mp3", SoundsManager.getInstance().ValueMusic);
initDis();
transitbright();
}
private function clickYesBt(_arg1:MouseEvent):void{
SoundsManager.getInstance().stopMusic();
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
Manage.CONTROL_HOW_TO_PLAY = false;
Manage.CONTROL_MICROPHONE = false;
_root.dispatchEvent(new GameResartEvent(GameResartEvent.RESTART_GAME_AGAIN));
}
private function delDis():void{
if (_resetmc != null){
_root.removeChild(_resetmc);
_resetmc = null;
};
_root.removeChild(_mc);
_mc = null;
}
private function delReset():void{
_yesBt.removeEventListener(MouseEvent.CLICK, clickYesBt);
_yesBt.removeEventListener(MouseEvent.ROLL_OVER, yesRollOver);
_yesBt.removeEventListener(MouseEvent.ROLL_OUT, yesRollOut);
_root.removeChild(_resetmc);
_resetmc = null;
}
private function moveAim(_arg1:Event):void{
_girl1.alpha = 1;
_girl1vx = (_girl1vx + _girl1ax);
_girl1.x = (_girl1.x + _girl1vx);
if (_girl1.x >= 35){
_girl1.x = 35;
_girl2.addEventListener(Event.ENTER_FRAME, moveAim2);
_girl1.removeEventListener(Event.ENTER_FRAME, moveAim);
};
}
private function del():void{
delEvent();
delDis();
}
private function transitbright():void{
_mc.alpha = 0;
TweenMax.to(_mc, 0.5, {alpha:1});
}
private function noRollOut(_arg1:MouseEvent):void{
_noBt.gotoAndStop((_noBt.currentFrame - 1));
}
private function clickNoBt(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
initEvent();
resettransitdark();
}
private function scoreTextEnterFrame(_arg1:Event):void{
if (_scoreTemp < totalscore){
_scoreAdd = ((totalscore - _scoreTemp) * 0.1);
if (_scoreAdd < 1){
_scoreAdd = 1;
};
_scoreTemp = (_scoreTemp + _scoreAdd);
};
_totalscore.text = String(_scoreTemp);
}
private function yesRollOut(_arg1:MouseEvent):void{
_yesBt.gotoAndStop((_yesBt.currentFrame - 1));
}
private function resettransitbright():void{
_resetmc.alpha = 0;
TweenMax.to(_resetmc, 0.5, {alpha:1});
}
private function mainmenuRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("othertouch", SoundsManager.getInstance().ValueSound);
_mainmenu.gotoAndStop((_mainmenu.currentFrame + 2));
}
private function resettransitdark():void{
TweenMax.to(_resetmc, 0.5, {alpha:0, onComplete:delReset});
}
private function countTotalScore():void{
var _local1:Number;
var _local2:Number;
var _local3:MyCookie;
var _local4:Object;
var _local5:int;
_local1 = 0;
_local2 = 0;
while (_local2 < Manage.GIRL.length) {
_local1 = (_local1 + Manage.GIRL[_local2].gateScore);
_local2++;
};
totalscore = _local1;
_local3 = new MyCookie("sticky_chick_notes");
_local4 = _local3.data;
if (_local4["totalscore"] == null){
_local3.addProperty("totalscore", totalscore);
} else {
_local5 = _local4["totalscore"];
if (totalscore > _local5){
_local3.addProperty("totalscore", totalscore);
} else {
_ifsubmit = false;
};
};
_local3.close();
}
private function commitRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("othertouch", SoundsManager.getInstance().ValueSound);
_commit.gotoAndStop((_commit.currentFrame + 1));
}
private function transitdark():void{
TweenMax.to(_mc, 0.5, {alpha:0, onComplete:del});
}
private function timeControl(_arg1:Event):void{
var _local2:Number;
_timecontrol--;
if (_timecontrol == 0){
_local2 = 0;
while (_local2 < _mcarr.length) {
TweenMax.to(_mcarr[_local2], 1, {alpha:1});
_local2++;
};
TweenMax.to(_totalscore, 1, {alpha:1, onComplete:addEnterFrame});
_mc.removeEventListener(Event.ENTER_FRAME, timeControl);
};
}
private function delEvent():void{
_girl1.removeEventListener(Event.ENTER_FRAME, moveAim);
_girl2.removeEventListener(Event.ENTER_FRAME, moveAim2);
_girl3.removeEventListener(Event.ENTER_FRAME, moveAim3);
_mc.removeEventListener(Event.ENTER_FRAME, timeControl);
_totalscore.removeEventListener(Event.ENTER_FRAME, scoreTextEnterFrame);
_mainmenu.removeEventListener(MouseEvent.CLICK, clickMainMenu);
_mainmenu.removeEventListener(MouseEvent.ROLL_OVER, mainmenuRollOver);
_mainmenu.removeEventListener(MouseEvent.ROLL_OUT, mainmenuRollOut);
if (!SiteInfo.instance.allowed){
_commit.removeEventListener(MouseEvent.ROLL_OVER, commitRollOver);
_commit.removeEventListener(MouseEvent.ROLL_OUT, commitRollOut);
_commit.removeEventListener(MouseEvent.CLICK, clickCommit);
};
_totalscore.removeEventListener(Event.ENTER_FRAME, scoreTextEnterFrame);
if (_noBt != null){
_noBt.removeEventListener(MouseEvent.CLICK, clickNoBt);
_noBt.removeEventListener(MouseEvent.ROLL_OVER, noRollOver);
_noBt.removeEventListener(MouseEvent.ROLL_OUT, noRollOut);
};
}
private function clickCommit(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
_root.dispatchEvent(new EventInfo(EventInfo.HIGH_SCORES));
}
private function mainmenuRollOut(_arg1:MouseEvent):void{
_mainmenu.gotoAndStop((_mainmenu.currentFrame - 2));
}
private function initDis():void{
var _local1:Number;
var _local2:MyCookie;
_mc = Attach.getMovieClip("gameCompletedScreen");
_root.addChild(_mc);
_word = _mc["word"];
_word.mouseChildren = false;
_mainmenu = _mc["mainmenu"];
_mainmenu.stop();
_mainmenu.mouseEnabled = false;
_commit = _mc["commit"];
_commit.stop();
_commit.mouseEnabled = false;
_commit.alpha = 0;
_scoreMc = _mc["score"];
_scoreMc.mouseChildren = false;
_totalscore = _scoreMc["totalscore"];
_logo = _mc["logo"];
_logo.mouseEnabled = false;
countTotalScore();
if (SiteInfo.instance.allowed){
trace("这句执行吗");
trace(_ifsubmit);
if (_ifsubmit){
trace(("===================" + (totalscore * 2)));
SpilSystem.instance.submitScore((totalscore * 2));
};
Manage.CONTROL_SCORE_TIMENUM = true;
_mcarr.push(_word, _mainmenu, _scoreMc, _logo);
_local2 = new MyCookie("sticky_chick_notes_control_score_times");
_local2.addProperty("control_score_boolean", Manage.CONTROL_SCORE_TIMENUM);
_local2.close();
} else {
_mcarr.push(_word, _mainmenu, _commit, _scoreMc, _logo);
};
_totalscore.alpha = 0;
_local1 = 0;
while (_local1 < _mcarr.length) {
_mcarr[_local1].alpha = 0;
_local1++;
};
_girl1 = _mc["girl1"];
_girl2 = _mc["girl2"];
_girl3 = _mc["girl3"];
_girl1.alpha = 0;
_girl1.x = -220;
_girl2.alpha = 0;
_girl2.y = -280;
_girl3.alpha = 0;
_girl3.x = 710;
_girl1.addEventListener(Event.ENTER_FRAME, moveAim);
}
private function clickMainMenu(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
delEvent();
_resetmc = Attach.getMovieClip("resetScreen");
_root.addChild(_resetmc);
_resetmc.x = 125;
_resetmc.y = 85;
_yesBt = _resetmc["yesBt"];
_yesBt.stop();
_yesBt.buttonMode = true;
_noBt = _resetmc["noBt"];
_noBt.stop();
_noBt.buttonMode = true;
_yesBt.addEventListener(MouseEvent.CLICK, clickYesBt);
_yesBt.addEventListener(MouseEvent.ROLL_OVER, yesRollOver);
_yesBt.addEventListener(MouseEvent.ROLL_OUT, yesRollOut);
_noBt.addEventListener(MouseEvent.CLICK, clickNoBt);
_noBt.addEventListener(MouseEvent.ROLL_OVER, noRollOver);
_noBt.addEventListener(MouseEvent.ROLL_OUT, noRollOut);
resettransitbright();
}
private function initEvent():void{
_mainmenu.addEventListener(MouseEvent.CLICK, clickMainMenu);
_mainmenu.addEventListener(MouseEvent.ROLL_OVER, mainmenuRollOver);
_mainmenu.addEventListener(MouseEvent.ROLL_OUT, mainmenuRollOut);
if (!SiteInfo.instance.allowed){
_commit.addEventListener(MouseEvent.CLICK, clickCommit);
_commit.addEventListener(MouseEvent.ROLL_OVER, commitRollOver);
_commit.addEventListener(MouseEvent.ROLL_OUT, commitRollOut);
};
}
private function commitRollOut(_arg1:MouseEvent):void{
_commit.gotoAndStop((_commit.currentFrame - 1));
}
private function noRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("othertouch", SoundsManager.getInstance().ValueSound);
_noBt.gotoAndStop((_noBt.currentFrame + 1));
}
private function addEnterFrame():void{
initEvent();
_mainmenu.buttonMode = true;
_mainmenu.mouseEnabled = true;
if (!SiteInfo.instance.allowed){
_commit.mouseEnabled = true;
_commit.buttonMode = true;
};
_logo.mouseEnabled = true;
_totalscore.addEventListener(Event.ENTER_FRAME, scoreTextEnterFrame);
}
private function yesRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("othertouch", SoundsManager.getInstance().ValueSound);
_yesBt.gotoAndStop((_yesBt.currentFrame + 1));
}
override public function destroy():void{
SoundsManager.getInstance().stopAllSound();
transitdark();
}
private function moveAim2(_arg1:Event):void{
_girl2.alpha = 1;
_girl2vy = (_girl2vy + _girl2ay);
_girl2.y = (_girl2.y + _girl2vy);
if (_girl2.y >= 107){
_girl2.y = 107;
_girl3.addEventListener(Event.ENTER_FRAME, moveAim3);
_girl2.removeEventListener(Event.ENTER_FRAME, moveAim2);
};
}
private function moveAim3(_arg1:Event):void{
_girl3.alpha = 1;
_girl3vx = (_girl3vx + _girl3ax);
_girl3.x = (_girl3.x + _girl3vx);
if (_girl3.x <= 450){
_girl3.x = 450;
_mc.addEventListener(Event.ENTER_FRAME, timeControl);
_girl3.removeEventListener(Event.ENTER_FRAME, moveAim3);
};
}
}
}//package manage
Section 108
//GameUi (manage.GameUi)
package manage {
import flash.events.*;
import flash.display.*;
import event.*;
import tool.*;
import flash.media.*;
import gs.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import screen.*;
import flash.ui.*;
import zlong.utils.*;
public class GameUi extends AbstractScreen {
private var _gamequalityBt:MovieClip;
private var _chest:MovieClip;
var ptsscore:int;
private var _controlBlowerMove:Number;// = 2
private var _disArr:Array;
private var _daojishi:MovieClip;
private var _remind:MovieClip;
private var _cartoonMc:MovieClip;
private var _controlBlowerWaveMove:Number;// = 2
private var _papercountMcChild:MovieClip;
private var _controlPowerbar:Boolean;// = false
private var _powerBar:MovieClip;
private var _mc:MovieClip;
private var _controlMicroTemp:int;
private var _eyetime:Number;// = 48
private var _eyes:MovieClip;
private var _timer:Timer;
private var _controlMicro:int;
private var _comboArr:Array;
private var _wavepauseArr:Array;
private var _maintime:MovieClip;
private var _gamemusicBt:MovieClip;
private var _waveArr:Array;
private var _combomc:Combo;
private var _girlMc:MovieClip;
private var _howtoplayBt:MovieClip;
private var _gateNum:Number;
private var scoreTemp:int;
private var _logo:MovieClip;
private var _mousex:Number;
private var _mousey:Number;
private var _paperArr:Array;
private var _powerbartime:Number;// = 12
private var _controlsound2:Boolean;// = true
private var _papercount:Number;// = 0
private var _pauseBt:MovieClip;
private var _score:int;
private var comboTempCount:Number;
private var scoreAdd:int;
private var _controlsound:Boolean;// = true
private var _pArr:Array;
private var _backBt:MovieClip;
private var _head:MovieClip;
private var _mustwaveArr:Array;
private var _secondremain:int;
private var _microPhone:Microphone;
private var _papercounttext:TextField;
private var _gamesoundBt:MovieClip;
private var _delpauseArr:Array;
private var _papercountMc:MovieClip;
private var _combotime:int;// = 0
private var _a:int;
private var _pauseMc:MovieClip;
private var comboscore1:int;// = 0
var comboptsmc:MovieClip;
private var _continueBt:MovieClip;
private var _blower:MovieClip;
public static const HIGH:String = "HIGH";
public static const LOW:String = "LOW";
public static const MEDIUM:String = "MEDIUM";
public function GameUi(_arg1:Sprite, _arg2:Microphone, _arg3:Number){
_eyetime = 48;
_powerbartime = 12;
_paperArr = new Array();
_waveArr = new Array();
_mustwaveArr = new Array();
_pArr = new Array();
_disArr = new Array();
_papercount = 0;
_delpauseArr = new Array();
_wavepauseArr = new Array();
_controlBlowerMove = 2;
_controlBlowerWaveMove = 2;
_controlPowerbar = false;
_comboArr = new Array();
_combotime = 0;
_controlsound = true;
_controlsound2 = true;
comboscore1 = 0;
super(_arg1);
SoundsManager.getInstance().overNewMusic("level.mp3", SoundsManager.getInstance().ValueMusic);
_gateNum = _arg3;
_microPhone = _arg2;
Mouse.hide();
initDis();
if (_gateNum == 1){
transitbright();
} else {
transitbright1();
};
}
private function clickContinueBt():void{
var _local1:Number;
_blower = Attach.getMovieClip("blower");
_blower.gotoAndStop(1);
_blower.mouseEnabled = false;
_blower.mouseChildren = false;
_mc.addChild(_blower);
layerManage();
_root.removeChild(_pauseMc);
_pauseMc = null;
Mouse.hide();
delPauseEvent();
if (_microPhone != null){
_microPhone.addEventListener(ActivityEvent.ACTIVITY, this.onMicActivity);
};
_root.stage.addEventListener(Event.ENTER_FRAME, onEnterFrame);
_timer.addEventListener(TimerEvent.TIMER, changesecond);
_root.stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUp);
_root.stage.addEventListener(MouseEvent.MOUSE_UP, clickBlowerUp);
_root.stage.addEventListener(MouseEvent.MOUSE_DOWN, clickBlowerDown);
_powerBar.addEventListener(Event.ENTER_FRAME, powerBarEnterFrame);
_papercounttext.addEventListener(Event.ENTER_FRAME, paperCountOnFrame);
_pauseBt.addEventListener(MouseEvent.CLICK, clickPauseBt);
_pauseBt.addEventListener(MouseEvent.ROLL_OUT, pauseBtRollOut);
_pauseBt.addEventListener(MouseEvent.ROLL_OVER, pauseBtRollOver);
_howtoplayBt.removeEventListener(MouseEvent.CLICK, clickPauseHtp);
_gamesoundBt["soundCd"].addEventListener(MouseEvent.CLICK, clickGameSoundBt);
_gamesoundBt["soundCd"].addEventListener(MouseEvent.ROLL_OVER, soundRollOver);
_gamesoundBt["soundCd"].addEventListener(MouseEvent.ROLL_OUT, soundRollOut);
_gamequalityBt["qualityCd"].addEventListener(MouseEvent.CLICK, clickGameQualityBt);
_gamequalityBt["qualityCd"].addEventListener(MouseEvent.ROLL_OVER, qualityBtRollOver);
_gamequalityBt["qualityCd"].addEventListener(MouseEvent.ROLL_OUT, qualityBtRollOut);
_gamemusicBt["musicCd"].addEventListener(MouseEvent.CLICK, clickGameMusicBt);
_gamemusicBt["musicCd"].addEventListener(MouseEvent.ROLL_OVER, musicBtRollOver);
_gamemusicBt["musicCd"].addEventListener(MouseEvent.ROLL_OUT, musicBtRollOut);
_logo.addEventListener(MouseEvent.ROLL_OVER, musicBtRollOver);
_logo.addEventListener(MouseEvent.ROLL_OUT, musicBtRollOut);
if (_wavepauseArr.length > 0){
_local1 = 0;
while (_local1 < _wavepauseArr.length) {
if (((!((_wavepauseArr[_local1].mc == null))) && (_girlMc.contains(_wavepauseArr[_local1].mc)))){
_wavepauseArr[_local1].addwavePaperdelEvent();
};
_local1++;
};
};
if (_delpauseArr.length > 0){
_local1 = 0;
while (_local1 < _delpauseArr.length) {
if (((!((_delpauseArr[_local1].mc == null))) && (_girlMc.contains(_delpauseArr[_local1].mc)))){
_delpauseArr[_local1].adddelPaperdelEvent();
};
_local1++;
};
};
_continueBt.removeEventListener(MouseEvent.CLICK, pauseMctransitdark);
}
private function initGirl():void{
if (_gateNum == 1){
_mc["bg"].gotoAndStop(1);
_girlMc = Attach.getMovieClip("Model1");
} else {
if (_gateNum == 2){
_mc["bg"].gotoAndStop(2);
_girlMc = Attach.getMovieClip("Model2");
_head.gotoAndStop(2);
} else {
_mc["bg"].gotoAndStop(3);
_girlMc = Attach.getMovieClip("Model3");
_head.gotoAndStop(3);
};
};
_chest = _girlMc["chest"];
_chest.stop();
_eyes = _girlMc["eyes"];
_eyes.stop();
_eyes.addEventListener(Event.ENTER_FRAME, eyesEnterFrame);
_mc.addChild(_girlMc);
if (_gateNum == 3){
_girlMc.x = 125;
_girlMc.y = 46;
} else {
_girlMc.x = 190;
_girlMc.y = 47;
};
new TollGate(_girlMc, _pArr, _gateNum);
createRotation();
}
private function microCartoon(_arg1:Event):void{
if (_cartoonMc.currentFrame == _cartoonMc.totalFrames){
_root.removeChild(_cartoonMc);
addDaojishi();
_cartoonMc.removeEventListener(Event.ENTER_FRAME, microCartoon);
};
}
private function del():void{
delEvent();
delDis();
}
private function continueBtRollOut(_arg1:MouseEvent):void{
_continueBt.gotoAndStop((_continueBt.currentFrame - 1));
}
private function toAssend(_arg1:Event):void{
_controlMicro--;
if (_controlMicro == 0){
_controlMicro = _controlMicroTemp;
_powerBar.gotoAndStop((_powerBar.currentFrame + 1));
if (_powerBar.currentFrame == _powerBar.totalFrames){
_controlPowerbar = true;
};
};
}
private function layerManage():void{
_mc.setChildIndex(_maintime, (_mc.numChildren - 1));
_mc.setChildIndex(_head, (_mc.numChildren - 2));
_mc.setChildIndex(_papercountMc, (_mc.numChildren - 3));
_mc.setChildIndex(_blower, (_mc.numChildren - 4));
_mc.setChildIndex(_pauseBt, (_mc.numChildren - 5));
_mc.setChildIndex(_mc["moregametext"], (_mc.numChildren - 6));
_mc.setChildIndex(_logo, (_mc.numChildren - 7));
_mc.setChildIndex(_girlMc, (_mc.numChildren - 8));
}
private function onMicActivity(_arg1:ActivityEvent):void{
if (_arg1.activating == true){
if ((((_microPhone.activityLevel >= 10)) && ((_microPhone.activityLevel < 40)))){
_controlMicro = 3;
_controlMicroTemp = _controlMicro;
_powerBar.addEventListener(Event.ENTER_FRAME, toAssend);
};
if ((((_microPhone.activityLevel >= 40)) && ((_microPhone.activityLevel < 100)))){
_controlMicro = 2;
_controlMicroTemp = _controlMicro;
_powerBar.addEventListener(Event.ENTER_FRAME, toAssend);
};
};
if (_arg1.activating == false){
_powerBar.removeEventListener(Event.ENTER_FRAME, toAssend);
};
}
private function pauseMctransitdark(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
TweenMax.to(_pauseMc, 0.5, {alpha:0, onComplete:pauseMcdel});
}
private function soundRollOver(_arg1:MouseEvent):void{
Mouse.show();
if (_mc.contains(_blower)){
_mc.removeChild(_blower);
};
}
private function delProbability():Boolean{
var _local1:int;
_local1 = (Math.random() * 10);
if ((((_powerBar.currentFrame > 40)) && ((_powerBar.currentFrame <= 50)))){
if (Math.round(_local1) >= 2){
return (true);
};
return (false);
};
if ((((_powerBar.currentFrame > 30)) && ((_powerBar.currentFrame <= 40)))){
if (Math.round(_local1) >= 3){
return (true);
};
return (false);
};
if ((((_powerBar.currentFrame > 20)) && ((_powerBar.currentFrame <= 30)))){
if (Math.round(_local1) >= 4){
return (true);
};
return (false);
};
if ((((_powerBar.currentFrame > 10)) && ((_powerBar.currentFrame <= 20)))){
if (Math.round(_local1) >= 5){
return (true);
};
return (false);
};
return (false);
}
private function howtoplayBtRollOut(_arg1:MouseEvent):void{
_howtoplayBt.gotoAndStop((_howtoplayBt.currentFrame - 1));
}
private function clickGameQualityBt(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
if (_mc.stage.quality == LOW){
MainMenuUI.control_quality = 1;
_gamequalityBt["qualityCd"].gotoAndStop(1);
_mc.stage.quality = StageQuality.HIGH;
} else {
if (_mc.stage.quality == MEDIUM){
MainMenuUI.control_quality = 3;
_gamequalityBt["qualityCd"].gotoAndStop(3);
_mc.stage.quality = StageQuality.LOW;
} else {
if (_mc.stage.quality == HIGH){
MainMenuUI.control_quality = 2;
_gamequalityBt["qualityCd"].gotoAndStop(2);
_mc.stage.quality = StageQuality.MEDIUM;
};
};
};
}
private function clickPauseBt(_arg1:MouseEvent):void{
var _local2:Number;
_root.stage.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
_root.stage.removeEventListener(MouseEvent.MOUSE_DOWN, clickBlowerDown);
SoundsManager.getInstance().stopAllSound();
SoundsManager.getInstance().playMusic("level.mp3", SoundsManager.getInstance().ValueMusic);
Mouse.show();
if (_microPhone != null){
_microPhone.removeEventListener(ActivityEvent.ACTIVITY, this.onMicActivity);
};
_timer.removeEventListener(TimerEvent.TIMER, changesecond);
_root.stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyUp);
_root.stage.removeEventListener(MouseEvent.MOUSE_UP, clickBlowerUp);
_powerBar.removeEventListener(Event.ENTER_FRAME, powerBarEnterFrame);
_papercounttext.removeEventListener(Event.ENTER_FRAME, paperCountOnFrame);
_pauseBt.removeEventListener(MouseEvent.CLICK, clickPauseBt);
_pauseBt.removeEventListener(MouseEvent.ROLL_OVER, pauseBtRollOver);
_pauseBt.removeEventListener(MouseEvent.ROLL_OUT, pauseBtRollOut);
_gamesoundBt["soundCd"].removeEventListener(MouseEvent.CLICK, clickGameSoundBt);
_gamesoundBt["soundCd"].removeEventListener(MouseEvent.ROLL_OVER, soundRollOver);
_gamesoundBt["soundCd"].removeEventListener(MouseEvent.ROLL_OUT, soundRollOut);
_gamequalityBt["qualityCd"].removeEventListener(MouseEvent.CLICK, clickGameQualityBt);
_gamequalityBt["qualityCd"].removeEventListener(MouseEvent.ROLL_OVER, qualityBtRollOver);
_gamequalityBt["qualityCd"].removeEventListener(MouseEvent.ROLL_OUT, qualityBtRollOut);
_gamemusicBt["musicCd"].removeEventListener(MouseEvent.CLICK, clickGameMusicBt);
_gamemusicBt["musicCd"].removeEventListener(MouseEvent.ROLL_OVER, musicBtRollOver);
_gamemusicBt["musicCd"].removeEventListener(MouseEvent.ROLL_OUT, musicBtRollOut);
_logo.removeEventListener(MouseEvent.ROLL_OVER, musicBtRollOver);
_logo.removeEventListener(MouseEvent.ROLL_OUT, musicBtRollOut);
if (_wavepauseArr.length > 0){
_local2 = 0;
while (_local2 < _wavepauseArr.length) {
if (((!((_wavepauseArr[_local2].mc == null))) && (_girlMc.contains(_wavepauseArr[_local2].mc)))){
_wavepauseArr[_local2].wavePaperdelEvent();
};
_local2++;
};
};
if (_delpauseArr.length > 0){
_local2 = 0;
while (_local2 < _delpauseArr.length) {
if (((!((_delpauseArr[_local2].mc == null))) && (_girlMc.contains(_delpauseArr[_local2].mc)))){
_delpauseArr[_local2].delPaperdelEvent();
};
_local2++;
};
};
_pauseMc = Attach.getMovieClip("pauseScreen");
_root.addChild(_pauseMc);
if (((!((_blower == null))) && (_mc.contains(_blower)))){
_mc.removeChild(_blower);
};
_pauseMc.x = 130;
_pauseMc.y = 100;
initPauseDis();
initPauseEvent();
pauseMctransitbright();
}
private function comboptsShow(_arg1:int):void{
var _local2:int;
if (_arg1 == 0){
return;
};
if (((!((comboptsmc == null))) && (_root.contains(comboptsmc)))){
_a = _arg1;
_mc.addEventListener(Event.ENTER_FRAME, forCombo);
} else {
comboptsmc = Attach.getMovieClip("PTSDONGHUA");
_local2 = 0;
if (_arg1 < 10){
_local2 = (_arg1 * 200);
} else {
if ((((_arg1 >= 10)) && ((_arg1 < 20)))){
_local2 = (_arg1 * 300);
} else {
if ((((_arg1 >= 20)) && ((_arg1 < 30)))){
_local2 = (_arg1 * 400);
} else {
if ((((_arg1 >= 30)) && ((_arg1 < 40)))){
_local2 = (_arg1 * 500);
} else {
if ((((_arg1 >= 40)) && ((_arg1 < 50)))){
_local2 = (_arg1 * 600);
} else {
if ((((_arg1 >= 50)) && ((_arg1 < 60)))){
_local2 = (_arg1 * 700);
} else {
if (_arg1 >= 60){
_local2 = (_arg1 * 1000);
};
};
};
};
};
};
};
comboptsmc.comboptsdonghua.ptstext.text = ("+" + String(_local2));
scoreTemp = int(_papercounttext.text);
_score = (int(_papercounttext.text) + int(comboptsmc.comboptsdonghua.ptstext.text));
_root.addChild(comboptsmc);
comboptsmc.x = 437;
comboptsmc.y = 136;
comboptsmc.gotoAndPlay(1);
comboptsmc.addEventListener(Event.ENTER_FRAME, comboptsmcEnterFrame);
};
}
private function musicBtRollOut(_arg1:MouseEvent):void{
Mouse.hide();
_mc.addChild(_blower);
layerManage();
_blower.mouseEnabled = false;
_blower.mouseChildren = false;
}
private function forCombo(_arg1:Event):void{
var _local2:int;
if (comboptsmc == null){
comboptsmc = Attach.getMovieClip("PTSDONGHUA");
_local2 = 0;
if (_a < 10){
_local2 = (_a * 200);
} else {
if ((((_a >= 10)) && ((_a < 20)))){
_local2 = (_a * 300);
} else {
if ((((_a >= 20)) && ((_a < 30)))){
_local2 = (_a * 400);
} else {
if ((((_a >= 30)) && ((_a < 40)))){
_local2 = (_a * 500);
} else {
if ((((_a >= 40)) && ((_a < 50)))){
_local2 = (_a * 600);
} else {
if ((((_a >= 50)) && ((_a < 60)))){
_local2 = (_a * 700);
} else {
if (_a >= 60){
_local2 = (_a * 1000);
};
};
};
};
};
};
};
comboptsmc.comboptsdonghua.ptstext.text = ("+" + String(_local2));
scoreTemp = int(_papercounttext.text);
_score = (int(_papercounttext.text) + int(comboptsmc.comboptsdonghua.ptstext.text));
_root.addChild(comboptsmc);
comboptsmc.x = 437;
comboptsmc.y = 136;
comboptsmc.gotoAndPlay(1);
comboptsmc.addEventListener(Event.ENTER_FRAME, comboptsmcEnterFrame);
_mc.removeEventListener(Event.ENTER_FRAME, forCombo);
};
}
private function clickBackBt(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
Manage.CONTROL_HOW_TO_PLAY = false;
Manage.CONTROL_MICROPHONE = false;
_root.dispatchEvent(new EventInfo(EventInfo.FRIEND_START));
_backBt.removeEventListener(MouseEvent.CLICK, clickBackBt);
}
private function howtoplayBtRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("othertouch", SoundsManager.getInstance().ValueSound);
_howtoplayBt.gotoAndStop((_howtoplayBt.currentFrame + 1));
}
private function transitbright1():void{
_mc.alpha = 0;
TweenMax.to(_mc, 0.5, {alpha:1, onComplete:addDaojishi});
}
private function delEvent():void{
Mouse.show();
_mc.removeEventListener(Event.ENTER_FRAME, forCombo);
_powerBar.removeEventListener(Event.ENTER_FRAME, toAssend);
_eyes.removeEventListener(Event.ENTER_FRAME, eyesEnterFrame);
_eyes.removeEventListener(Event.ENTER_FRAME, eyesEnterFrame2);
_eyes.removeEventListener(Event.ENTER_FRAME, eyesEnterFrame3);
_root.stage.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
_root.stage.removeEventListener(MouseEvent.MOUSE_UP, clickBlowerUp);
_root.stage.removeEventListener(MouseEvent.MOUSE_DOWN, clickBlowerDown);
_root.stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyUp);
_powerBar.removeEventListener(Event.ENTER_FRAME, powerBarEnterFrame);
_timer.removeEventListener(TimerEvent.TIMER, changesecond);
_root.stage.removeEventListener(MouseEvent.MOUSE_MOVE, blowerMove);
_papercounttext.removeEventListener(Event.ENTER_FRAME, paperCountOnFrame);
_gamesoundBt["soundCd"].removeEventListener(MouseEvent.CLICK, clickGameSoundBt);
_gamesoundBt["soundCd"].removeEventListener(MouseEvent.ROLL_OVER, soundRollOver);
_gamesoundBt["soundCd"].removeEventListener(MouseEvent.ROLL_OUT, soundRollOut);
_gamequalityBt["qualityCd"].removeEventListener(MouseEvent.CLICK, clickGameQualityBt);
_gamequalityBt["qualityCd"].removeEventListener(MouseEvent.ROLL_OVER, qualityBtRollOver);
_gamequalityBt["qualityCd"].removeEventListener(MouseEvent.ROLL_OUT, qualityBtRollOut);
_gamemusicBt["musicCd"].removeEventListener(MouseEvent.CLICK, clickGameMusicBt);
_gamemusicBt["musicCd"].removeEventListener(MouseEvent.ROLL_OVER, musicBtRollOver);
_gamemusicBt["musicCd"].removeEventListener(MouseEvent.ROLL_OUT, musicBtRollOut);
_logo.removeEventListener(MouseEvent.ROLL_OVER, musicBtRollOver);
_logo.removeEventListener(MouseEvent.ROLL_OUT, musicBtRollOut);
if (_microPhone != null){
_microPhone.removeEventListener(ActivityEvent.ACTIVITY, this.onMicActivity);
};
}
private function blowerMove(_arg1:MouseEvent):void{
checkIsDel();
}
private function remainTimes():void{
_timer = new Timer(1000, _secondremain);
if (_gateNum > 1){
_secondremain = 120;
} else {
_secondremain = 90;
};
_timer.addEventListener(TimerEvent.TIMER, changesecond);
_timer.start();
}
private function clickGameMusicBt(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
if (_gamemusicBt["musicCd"].currentFrame == 2){
trace(("TMD " + SoundsManager.getInstance().getCurMusic_st));
if (SoundsManager.getInstance().getCurMusic_st == "mainscreen.mp3"){
SoundsManager.getInstance().MusicEnable2 = true;
SoundsManager.getInstance().playMusic("level.mp3", SoundsManager.getInstance().ValueMusic);
} else {
SoundsManager.getInstance().MusicEnable = true;
};
trace(("TMD " + SoundsManager.getInstance().getCurMusic_st));
MainMenuUI.control_music = 1;
_gamemusicBt["musicCd"].gotoAndStop((_gamemusicBt["musicCd"].currentFrame - 1));
} else {
SoundsManager.getInstance().MusicEnable = false;
MainMenuUI.control_music = 2;
_gamemusicBt["musicCd"].gotoAndStop((_gamemusicBt["musicCd"].currentFrame + 1));
};
}
private function daoJiShiEnterFrame(_arg1:Event):void{
if (_daojishi.currentFrame == 150){
_blower.x = _root.mouseX;
_blower.y = _root.mouseY;
_blower.alpha = 1;
initMi();
initEvent();
remainTimes();
_mc.removeChild(_daojishi);
_daojishi.removeEventListener(Event.ENTER_FRAME, daoJiShiEnterFrame);
};
}
private function addEventBlowerWaveMove():void{
var _local1:Array;
if ((((_powerBar.currentFrame <= 10)) && ((_powerBar.currentFrame > 1)))){
_local1 = new Array();
SoundsManager.getInstance().stopGroupSound();
if (_controlsound){
_local1.push("吹风机启动", "吹风机循环");
_controlsound = false;
} else {
_local1.push("吹风机循环");
};
SoundsManager.getInstance().playGroupSound(_local1, (SoundsManager.getInstance().ValueSound - 0.4), 0);
_blower.gotoAndStop(2);
_root.stage.addEventListener(MouseEvent.MOUSE_MOVE, blowerWaveMove);
_root.stage.removeEventListener(MouseEvent.MOUSE_MOVE, blowerMove);
_controlBlowerMove = 0;
_controlBlowerWaveMove = 1;
};
}
private function musicBtRollOver(_arg1:MouseEvent):void{
Mouse.show();
if (_mc.contains(_blower)){
_mc.removeChild(_blower);
};
}
private function paperCountOnFrame(_arg1:Event):void{
_papercounttext.text = String(((_papercount * 100) + comboscore1));
}
private function initDis():void{
_mc = Attach.getMovieClip("gameScreen");
_root.addChild(_mc);
_mc.stop();
_powerBar = _mc["powerBar"];
_powerBar.stop();
switch (_gateNum){
case 1:
_mc["logo2"].visible = false;
_mc["logo3"].visible = false;
_logo = _mc["logo1"];
break;
case 2:
_mc["logo1"].visible = false;
_mc["logo3"].visible = false;
_logo = _mc["logo2"];
break;
case 3:
_mc["logo1"].visible = false;
_mc["logo2"].visible = false;
_logo = _mc["logo3"];
break;
};
_head = _mc["head"];
_head.stop();
_maintime = _mc["maintime"];
_maintime.mouseChildren = false;
if (_gateNum > 1){
_maintime["remaintime"].text = "02:00";
};
_papercountMc = _mc["papercount"];
_papercountMc.mouseChildren = false;
_papercountMcChild = _papercountMc["papercountchild"];
_papercounttext = _papercountMcChild["papercounttext"];
_papercounttext.text = "0";
_pauseBt = _mc["pauseBt"];
_pauseBt.buttonMode = true;
_pauseBt.stop();
_blower = Attach.getMovieClip("blower");
_blower.stop();
_blower.alpha = 0;
_blower.mouseEnabled = false;
_blower.mouseChildren = false;
_mc.addChild(_blower);
_gamesoundBt = _mc["soundBt"];
_gamesoundBt["soundCd"].gotoAndStop(MainMenuUI.control_sound);
_gamesoundBt["soundCd"].buttonMode = true;
_gamemusicBt = _mc["musicBt"];
_gamemusicBt["musicCd"].gotoAndStop(MainMenuUI.control_music);
_gamequalityBt = _mc["qualityBt"];
_gamequalityBt["qualityCd"].gotoAndStop(MainMenuUI.control_quality);
_gamemusicBt["musicCd"].buttonMode = true;
_gamequalityBt["qualityCd"].buttonMode = true;
initGirl();
layerManage();
_combomc = new Combo(_root);
}
private function pauseMcdel():void{
clickContinueBt();
}
private function Mousefollow():void{
_blower.x = _root.mouseX;
_blower.y = _root.mouseY;
}
private function eyesEnterFrame(_arg1:Event):void{
_eyetime--;
if (_eyetime == 0){
_eyetime = 48;
_eyes.play();
_eyes.addEventListener(Event.ENTER_FRAME, eyesEnterFrame2);
_eyes.removeEventListener(Event.ENTER_FRAME, eyesEnterFrame);
};
}
private function blowerWaveMove(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Point;
var _local4:int;
var _local5:Array;
var _local6:int;
var _local7:Paper;
var _local8:Array;
var _local9:Number;
var _local10:Number;
_mousex = _root.stage.mouseX;
_mousey = _root.stage.mouseY;
_local2 = 0;
while (_local2 < _pArr.length) {
if (_pArr[_local2] != null){
_local3 = new Point(_pArr[_local2].x, _pArr[_local2].y);
_local4 = Math.sqrt((((_mousex - _pArr[_local2].pmc.parent.localToGlobal(_local3).x) * (_mousex - _pArr[_local2].pmc.parent.localToGlobal(_local3).x)) + ((_mousey - _pArr[_local2].pmc.parent.localToGlobal(_local3).y) * (_mousey - _pArr[_local2].pmc.parent.localToGlobal(_local3).y))));
if (_local4 < 25){
_pArr[_local2].distance = _local4;
_paperArr.push(_pArr[_local2]);
};
};
_local2++;
};
if (_paperArr.length > 0){
while (_paperArr.length > 0) {
_local5 = new Array();
_local6 = (Math.random() * _paperArr.length);
_local7 = Paper(_paperArr.splice(_local6, 1)[0]);
_local5.push(_local7);
_local2 = 0;
while (_local2 < _paperArr.length) {
if (_local7.mc["hit"].hitTestObject(_paperArr[_local2].mc["hit"])){
_local5.push(_paperArr[_local2]);
_paperArr.splice(_local2, 1);
_local2--;
};
_local2++;
};
_local5.sortOn("forComp", (Array.NUMERIC | Array.DESCENDING));
_local8 = new Array();
_local9 = 0;
while (_local9 < _pArr.length) {
if (_local5[0].mc["hit"].hitTestObject(_pArr[_local9].mc["hit"])){
_local8.push(_pArr[_local9]);
};
_local9++;
};
_local8.sortOn("forComp", (Array.NUMERIC | Array.DESCENDING));
if (_local5[0].name == _local8[0].name){
_local3 = new Point(_local5[0].x, _local5[0].y);
if (_local5[0].pmc.parent.localToGlobal(_local3).y < _mousey){
_waveArr.push(_local5[0]);
_local5.splice(0, 1);
};
};
_local10 = 0;
while (_local10 < _local5.length) {
_mustwaveArr.push(_local5[_local10]);
_local10++;
};
};
};
if (_paperArr.length == 0){
if (_waveArr.length > 0){
_local2 = (_waveArr.length - 1);
while (_local2 >= 0) {
_waveArr[_local2].wave();
_wavepauseArr.push(_waveArr[_local2]);
_local2--;
};
_waveArr = new Array();
};
if (_mustwaveArr.length > 0){
SoundsManager.getInstance().overNewSound("paperloop", SoundsManager.getInstance().ValueSound);
if (_mustwaveArr.length == 1){
_mustwaveArr[0].lightWave();
_mustwaveArr.pop();
};
if (_mustwaveArr.length > 1){
_mustwaveArr.sortOn("distance", (Array.NUMERIC | Array.DESCENDING));
_mustwaveArr[(_mustwaveArr.length - 1)].lightWave();
_mustwaveArr.splice((_mustwaveArr.length - 1), 1);
_local2 = (_mustwaveArr.length - 1);
while (_local2 >= 0) {
_mustwaveArr[_local2].lightWave2();
_local2--;
};
};
};
};
_mustwaveArr = new Array();
}
private function initEvent():void{
_root.stage.addEventListener(Event.ENTER_FRAME, onEnterFrame);
_root.stage.addEventListener(MouseEvent.MOUSE_DOWN, clickBlowerDown);
_root.stage.addEventListener(MouseEvent.MOUSE_UP, clickBlowerUp);
_root.stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUp);
_powerBar.addEventListener(Event.ENTER_FRAME, powerBarEnterFrame);
_pauseBt.addEventListener(MouseEvent.ROLL_OVER, pauseBtRollOver);
_pauseBt.addEventListener(MouseEvent.ROLL_OUT, pauseBtRollOut);
_pauseBt.addEventListener(MouseEvent.CLICK, clickPauseBt);
_papercounttext.addEventListener(Event.ENTER_FRAME, paperCountOnFrame);
_gamesoundBt["soundCd"].addEventListener(MouseEvent.CLICK, clickGameSoundBt);
_gamesoundBt["soundCd"].addEventListener(MouseEvent.ROLL_OVER, soundRollOver);
_gamesoundBt["soundCd"].addEventListener(MouseEvent.ROLL_OUT, soundRollOut);
_gamequalityBt["qualityCd"].addEventListener(MouseEvent.CLICK, clickGameQualityBt);
_gamequalityBt["qualityCd"].addEventListener(MouseEvent.ROLL_OVER, qualityBtRollOver);
_gamequalityBt["qualityCd"].addEventListener(MouseEvent.ROLL_OUT, qualityBtRollOut);
_gamemusicBt["musicCd"].addEventListener(MouseEvent.CLICK, clickGameMusicBt);
_gamemusicBt["musicCd"].addEventListener(MouseEvent.ROLL_OVER, musicBtRollOver);
_gamemusicBt["musicCd"].addEventListener(MouseEvent.ROLL_OUT, musicBtRollOut);
_logo.addEventListener(MouseEvent.ROLL_OVER, musicBtRollOver);
_logo.addEventListener(MouseEvent.ROLL_OUT, musicBtRollOut);
}
private function addTeachCartoon():void{
if (_microPhone == null){
_mc.stage.addEventListener(KeyboardEvent.KEY_DOWN, skip);
_cartoonMc = Attach.getMovieClip("spaceCarttoon");
_root.addChild(_cartoonMc);
_cartoonMc.addEventListener(Event.ENTER_FRAME, microCartoon);
Manage.CONTROL_MICROPHONECARTOON = false;
} else {
_mc.stage.addEventListener(KeyboardEvent.KEY_DOWN, skip);
_cartoonMc = Attach.getMovieClip("microPhoneCarttoon");
_root.addChild(_cartoonMc);
_cartoonMc.addEventListener(Event.ENTER_FRAME, spaceCartoon);
Manage.CONTROL_SPACECARTOON = false;
};
}
private function initPauseEvent():void{
_continueBt.addEventListener(MouseEvent.CLICK, pauseMctransitdark);
_continueBt.addEventListener(MouseEvent.ROLL_OVER, continueBtRollOver);
_continueBt.addEventListener(MouseEvent.ROLL_OUT, continueBtRollOut);
_howtoplayBt.addEventListener(MouseEvent.CLICK, clickPauseHtp);
_howtoplayBt.addEventListener(MouseEvent.ROLL_OVER, howtoplayBtRollOver);
_howtoplayBt.addEventListener(MouseEvent.ROLL_OUT, howtoplayBtRollOut);
_backBt.addEventListener(MouseEvent.CLICK, clickBackBt);
_backBt.addEventListener(MouseEvent.ROLL_OVER, backBtRollOver);
_backBt.addEventListener(MouseEvent.ROLL_OUT, backBtRollOut);
}
private function skip(_arg1:KeyboardEvent):void{
if (((!((_cartoonMc == null))) && (_root.contains(_cartoonMc)))){
_cartoonMc.removeEventListener(Event.ENTER_FRAME, microCartoon);
_cartoonMc.removeEventListener(Event.ENTER_FRAME, spaceCartoon);
_root.removeChild(_cartoonMc);
addDaojishi();
_mc.stage.removeEventListener(KeyboardEvent.KEY_DOWN, skip);
} else {
_mc.stage.removeEventListener(KeyboardEvent.KEY_DOWN, skip);
};
}
private function delDis():void{
_root.removeChild(_mc);
_mc = null;
}
private function addDaojishi():void{
_daojishi = Attach.getMovieClip("daojishi");
_mc.addChild(_daojishi);
_daojishi.x = (_mc.width / 2);
_daojishi.y = (_mc.height / 2);
_daojishi.play();
_daojishi.addEventListener(Event.ENTER_FRAME, daoJiShiEnterFrame);
}
private function spaceCartoon(_arg1:Event):void{
if (_cartoonMc.currentFrame == _cartoonMc.totalFrames){
_root.removeChild(_cartoonMc);
addDaojishi();
_cartoonMc.removeEventListener(Event.ENTER_FRAME, spaceCartoon);
};
}
private function comboCompleteShow():void{
_combomc.run();
}
private function pauseBtRollOut(_arg1:MouseEvent):void{
Mouse.hide();
if (_pauseMc == null){
_mc.addChild(_blower);
layerManage();
_blower.mouseEnabled = false;
_blower.mouseChildren = false;
};
_pauseBt.gotoAndStop((_pauseBt.currentFrame - 1));
}
private function soundRollOut(_arg1:MouseEvent):void{
Mouse.hide();
_mc.addChild(_blower);
layerManage();
_blower.mouseEnabled = false;
_blower.mouseChildren = false;
}
private function continueBtRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("othertouch", SoundsManager.getInstance().ValueSound);
_continueBt.gotoAndStop((_continueBt.currentFrame + 1));
}
private function mouseMoveOutChest(_arg1:MouseEvent):void{
_chest.stop();
}
private function paperCountOnFrame1(_arg1:Event):void{
if (scoreTemp < _score){
scoreAdd = ((_score - scoreTemp) * 0.5);
if (scoreAdd < 1){
scoreAdd = 1;
};
scoreTemp = (scoreTemp + scoreAdd);
};
_papercounttext.text = String(scoreTemp);
if (scoreTemp == _score){
_papercounttext.removeEventListener(Event.ENTER_FRAME, paperCountOnFrame1);
_papercounttext.addEventListener(Event.ENTER_FRAME, paperCountOnFrame);
};
}
private function transitbright():void{
_mc.alpha = 0;
TweenMax.to(_mc, 0.5, {alpha:1, onComplete:addTeachCartoon});
}
private function checkIsDel():void{
var _local1:Number;
var _local2:Point;
var _local3:int;
_mousex = _root.stage.mouseX;
_mousey = _root.stage.mouseY;
_local1 = 0;
while (_local1 < _pArr.length) {
if (_pArr[_local1] != null){
_local2 = new Point(_pArr[_local1].x, _pArr[_local1].y);
_local3 = Math.sqrt((((_mousex - _pArr[_local1].pmc.parent.localToGlobal(_local2).x) * (_mousex - _pArr[_local1].pmc.parent.localToGlobal(_local2).x)) + ((_mousey - _pArr[_local1].pmc.parent.localToGlobal(_local2).y) * (_mousey - _pArr[_local1].pmc.parent.localToGlobal(_local2).y))));
if (_local3 < 25){
_pArr[_local1].distance = _local3;
_paperArr.push(_pArr[_local1]);
};
if ((((_local3 >= 25)) && ((_local3 < 40)))){
_pArr[_local1].distance = _local3;
_mustwaveArr.push(_pArr[_local1]);
};
};
_local1++;
};
paperPlay();
}
private function comboshow(_arg1:int):void{
_combomc.combotime = _arg1;
}
private function qualityBtRollOut(_arg1:MouseEvent):void{
Mouse.hide();
_mc.addChild(_blower);
layerManage();
_blower.mouseEnabled = false;
_blower.mouseChildren = false;
}
private function changesecond(_arg1:TimerEvent):void{
_secondremain--;
if ((((((_secondremain == 91)) || ((_secondremain == 60)))) || ((_secondremain == 15)))){
getHurryUp();
};
if (Math.floor((_secondremain % 60)) < 10){
_maintime["remaintime"].text = (((("0" + String(Math.floor((_secondremain / 60)))) + ":") + "0") + String(Math.floor((_secondremain % 60))));
} else {
_maintime["remaintime"].text = ((("0" + String(Math.floor((_secondremain / 60)))) + ":") + String(Math.floor((_secondremain % 60))));
};
_arg1.updateAfterEvent();
if ((((Math.floor((_secondremain / 60)) == 0)) && ((Math.floor((_secondremain % 60)) == 0)))){
if (((!((_blower == null))) && (_mc.contains(_blower)))){
_mc.removeChild(_blower);
};
Manage.TOLL_GATE_SCORE = ((_papercount * 100) + comboscore1);
Manage.LEVELFAILEDPAPERCOUNT = _papercount;
_root.dispatchEvent(new TryAgainEvent(TryAgainEvent.TIME_OVER, _gateNum));
_root.stage.removeEventListener(MouseEvent.MOUSE_DOWN, clickBlowerDown);
SoundsManager.getInstance().stopGroupSound();
SoundsManager.getInstance().stopAllSound();
_timer.removeEventListener(TimerEvent.TIMER, changesecond);
};
}
private function backBtRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("othertouch", SoundsManager.getInstance().ValueSound);
_backBt.gotoAndStop((_backBt.currentFrame + 1));
}
private function createRotation():void{
var _local1:Array;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:int;
var _local6:int;
_local1 = new Array();
_local2 = 0;
while (_local2 < 30) {
_local5 = (Math.random() * _pArr.length);
if (((((!((_pArr[_local5].name == "1"))) && (!((_pArr[_local5].name == "2"))))) && (!((_pArr[_local5].name == "3"))))){
_pArr[_local5].mc.rotation = (Math.random() * 40);
_local1.push(_pArr.splice(_local5, 1)[0]);
};
_local2++;
};
_local3 = 0;
while (_local3 < 30) {
_local6 = (Math.random() * _pArr.length);
if (((((!((_pArr[_local6].name == "1"))) && (!((_pArr[_local6].name == "2"))))) && (!((_pArr[_local6].name == "3"))))){
_pArr[_local6].mc.rotation = (-(Math.random()) * 40);
_local1.push(_pArr.splice(_local6, 1)[0]);
};
_local3++;
};
_local4 = 0;
while (_local4 < _local1.length) {
_pArr.push(_local1[_local4]);
_local4++;
};
}
private function eyesEnterFrame2(_arg1:Event):void{
if (_eyes.currentFrame == 15){
_eyes.addEventListener(Event.ENTER_FRAME, eyesEnterFrame3);
_eyes.removeEventListener(Event.ENTER_FRAME, eyesEnterFrame2);
};
}
private function onEnterFrame(_arg1:Event):void{
var _local2:Object;
var _local3:MyCookie;
var _local4:Number;
if (TollGate.CHEST_PAPER_NUM == 0){
_chest.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveChest);
_chest.addEventListener(MouseEvent.MOUSE_OUT, mouseMoveOutChest);
};
if ((((_gateNum == 1)) && ((_papercount == 100)))){
_timer.removeEventListener(TimerEvent.TIMER, changesecond);
};
if ((((_gateNum == 2)) && ((_papercount == 120)))){
_timer.removeEventListener(TimerEvent.TIMER, changesecond);
};
if ((((_gateNum == 3)) && ((_papercount == 130)))){
_timer.removeEventListener(TimerEvent.TIMER, changesecond);
};
if ((((_powerBar.currentFrame > 10)) && ((_controlBlowerMove == 0)))){
addEventBlowerMove();
};
if ((((((_powerBar.currentFrame <= 10)) && ((_powerBar.currentFrame > 1)))) && ((_controlBlowerWaveMove == 0)))){
addEventBlowerWaveMove();
};
if (_girlMc.numChildren == 5){
if (((!((_blower == null))) && (_mc.contains(_blower)))){
_mc.removeChild(_blower);
};
_root.stage.removeEventListener(MouseEvent.MOUSE_DOWN, clickBlowerDown);
SoundsManager.getInstance().stopGroupSound();
SoundsManager.getInstance().stopAllSound();
Manage.TOLL_GATE_SCORE = (((_papercount * 100) + (_secondremain * 200)) + comboscore1);
_local2 = {gateNum:_gateNum, secondremain:(180 - _secondremain), gateScore:Manage.TOLL_GATE_SCORE, papercount:_papercount};
_gateNum++;
if (Manage.GIRL.length > 0){
_local4 = 0;
while (_local4 < Manage.GIRL.length) {
if (_local2.gateNum == Manage.GIRL[_local4].gateNum){
Manage.GIRL.splice(_local4, 1);
_local4--;
};
_local4++;
};
};
Manage.GIRL.push(_local2);
_local3 = new MyCookie("sticky_chick_notes");
_local3.addProperty("arrayname", Manage.GIRL);
_local3.close();
_root.dispatchEvent(new TollGateEvent(TollGateEvent.LEVEL_COMPLETE, _gateNum));
_root.stage.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
};
Mousefollow();
comBo();
comboCompleteShow();
}
private function comBo():void{
var _local1:Number;
var _local2:Date;
var _local3:Date;
if (_comboArr.length > 1){
_local1 = 0;
while (_local1 < (_comboArr.length - 1)) {
if ((_comboArr[(_local1 + 1)].deltime - _comboArr[_local1].deltime) < 1000){
_combotime++;
comboshow(_combotime);
} else {
comboptsShow(_combotime);
_combomc.Appear = false;
_combotime = 0;
break;
};
_local1++;
};
if (_local1 == 0){
comboptsShow(_combotime);
_combotime = 0;
_controlsound2 = true;
_combomc.Appear = false;
};
if (_combotime > 0){
if (_controlsound2){
SoundsManager.getInstance().playSound("mum1", SoundsManager.getInstance().ValueSound);
_controlsound2 = false;
};
_combomc.Appear = true;
};
_comboArr.splice(0, (_comboArr.length - 1));
_local2 = new Date();
comboTempCount = _local2.getTime();
} else {
if (_comboArr.length == 1){
_local3 = new Date();
if ((_local3.getTime() - comboTempCount) > 1000){
comboptsShow(_combotime);
_combotime = 0;
_combomc.Appear = false;
};
};
};
}
private function delPauseEvent():void{
_continueBt.removeEventListener(MouseEvent.CLICK, pauseMctransitdark);
_continueBt.removeEventListener(MouseEvent.ROLL_OVER, continueBtRollOver);
_continueBt.removeEventListener(MouseEvent.ROLL_OUT, continueBtRollOut);
_howtoplayBt.removeEventListener(MouseEvent.CLICK, clickPauseHtp);
_howtoplayBt.removeEventListener(MouseEvent.ROLL_OVER, howtoplayBtRollOver);
_howtoplayBt.removeEventListener(MouseEvent.ROLL_OUT, howtoplayBtRollOut);
_backBt.removeEventListener(MouseEvent.CLICK, clickBackBt);
_backBt.removeEventListener(MouseEvent.ROLL_OVER, backBtRollOver);
_backBt.removeEventListener(MouseEvent.ROLL_OUT, backBtRollOut);
}
private function onKeyUp(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.SPACE){
if (_gateNum == 1){
_powerBar.gotoAndStop((_powerBar.currentFrame + 3));
} else {
_powerBar.gotoAndStop((_powerBar.currentFrame + 2));
};
if (_powerBar.currentFrame == _powerBar.totalFrames){
_controlPowerbar = true;
};
};
}
private function clickPauseHtp(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
new HowToPlayUI(_root, 1);
}
private function eyesEnterFrame3(_arg1:Event):void{
_eyes.gotoAndStop((_eyes.currentFrame - 1));
if (_eyes.currentFrame <= 1){
_eyes.addEventListener(Event.ENTER_FRAME, eyesEnterFrame);
_eyes.removeEventListener(Event.ENTER_FRAME, eyesEnterFrame3);
};
}
private function qualityBtRollOver(_arg1:MouseEvent):void{
Mouse.show();
if (_mc.contains(_blower)){
_mc.removeChild(_blower);
};
}
private function clickBlowerUp(_arg1:MouseEvent):void{
_controlsound = true;
SoundsManager.getInstance().stopGroupSound();
_blower.gotoAndStop(1);
_controlBlowerMove = 2;
_controlBlowerWaveMove = 2;
_root.stage.removeEventListener(MouseEvent.MOUSE_MOVE, blowerMove);
_root.stage.removeEventListener(MouseEvent.MOUSE_MOVE, blowerWaveMove);
_combomc.Appear = false;
}
private function transitdark():void{
TweenMax.to(_mc, 0.5, {alpha:0, onComplete:del});
}
private function clickGameSoundBt(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
if (_gamesoundBt["soundCd"].currentFrame == 2){
MainMenuUI.control_sound = 1;
SoundsManager.getInstance().Enabled = true;
_gamesoundBt["soundCd"].gotoAndStop((_gamesoundBt["soundCd"].currentFrame - 1));
} else {
MainMenuUI.control_sound = 2;
SoundsManager.getInstance().Enabled = false;
_gamesoundBt["soundCd"].gotoAndStop((_gamesoundBt["soundCd"].currentFrame + 1));
};
}
private function initMi():void{
if (_microPhone != null){
_microPhone.gain = 60;
_microPhone.rate = 11;
_microPhone.setUseEchoSuppression(true);
_microPhone.setLoopBack(true);
_microPhone.setSilenceLevel(20, 0);
_microPhone.addEventListener(ActivityEvent.ACTIVITY, onMicActivity);
};
}
private function addEventBlowerMove():void{
var _local1:Array;
if (_powerBar.currentFrame > 10){
SoundsManager.getInstance().stopGroupSound();
_local1 = new Array();
if (_controlsound){
_local1.push("吹风机启动", "吹风机循环");
_controlsound = false;
} else {
_local1.push("吹风机循环");
};
SoundsManager.getInstance().playGroupSound(_local1, SoundsManager.getInstance().ValueSound, 0);
trace(SoundsManager.getInstance().ValueSound);
_blower.gotoAndStop(3);
_root.stage.removeEventListener(MouseEvent.MOUSE_MOVE, blowerWaveMove);
_root.stage.addEventListener(MouseEvent.MOUSE_MOVE, blowerMove);
_controlBlowerMove = 1;
_controlBlowerWaveMove = 0;
checkIsDel();
};
}
private function comboptsmcEnterFrame(_arg1:Event):void{
if (comboptsmc.currentFrame == comboptsmc.totalFrames){
_papercounttext.removeEventListener(Event.ENTER_FRAME, paperCountOnFrame);
comboscore1 = (comboscore1 + int(comboptsmc.comboptsdonghua.ptstext.text));
comboptsmc.stop();
comboptsmc.removeEventListener(Event.ENTER_FRAME, comboptsmcEnterFrame);
_root.removeChild(comboptsmc);
comboptsmc = null;
_papercounttext.addEventListener(Event.ENTER_FRAME, paperCountOnFrame1);
};
}
private function mouseMoveChest(_arg1:MouseEvent):void{
SoundsManager.getInstance().overNewSound("mum1", SoundsManager.getInstance().ValueSound);
_chest.play();
}
private function paperPlay():void{
var _local1:Array;
var _local2:int;
var _local3:Paper;
var _local4:Number;
var _local5:Array;
var _local6:Number;
var _local7:Number;
var _local8:Point;
var _local9:Boolean;
var _local10:Boolean;
var _local11:Date;
if (_paperArr.length > 0){
while (_paperArr.length > 0) {
_local1 = new Array();
_local2 = (Math.random() * _paperArr.length);
_local3 = Paper(_paperArr.splice(_local2, 1)[0]);
_local1.push(_local3);
_local4 = 0;
while (_local4 < _paperArr.length) {
if (_local3.mc["hit"].hitTestObject(_paperArr[_local4].mc["hit"])){
_local1.push(_paperArr[_local4]);
_paperArr.splice(_local4, 1);
_local4--;
};
_local4++;
};
_local1.sortOn("forComp", (Array.NUMERIC | Array.DESCENDING));
_local5 = new Array();
_local6 = 0;
while (_local6 < _pArr.length) {
if (_local1[0].mc["hit"].hitTestObject(_pArr[_local6].mc["hit"])){
_local5.push(_pArr[_local6]);
};
_local6++;
};
_local5.sortOn("forComp", (Array.NUMERIC | Array.DESCENDING));
if (_local1[0].name == _local5[0].name){
_local8 = new Point(_local1[0].x, _local1[0].y);
if (_local1[0].pmc.parent.localToGlobal(_local8).y < _mousey){
if (_gateNum == 1){
_local9 = delProbability();
if (_local1[0].isChest){
if (_local9){
_local6 = 0;
while (_local6 < _pArr.length) {
if (_local1[0].name == _pArr[_local6].name){
_disArr.push(_local1[0]);
if (_local1[0].isChest == true){
TollGate.CHEST_PAPER_NUM--;
};
_local1.splice(0, 1);
_delpauseArr.push(_pArr.splice(_local6, 1)[0]);
break;
};
_local6++;
};
} else {
_waveArr.push(_local1[0]);
_local1.splice(0, 1);
};
} else {
_local6 = 0;
while (_local6 < _pArr.length) {
if (_local1[0].name == _pArr[_local6].name){
_disArr.push(_local1[0]);
if (_local1[0].isChest == true){
TollGate.CHEST_PAPER_NUM--;
};
_local1.splice(0, 1);
_delpauseArr.push(_pArr.splice(_local6, 1)[0]);
break;
};
_local6++;
};
};
} else {
_local10 = delProbability();
if (_local10){
_local6 = 0;
while (_local6 < _pArr.length) {
if (_local1[0].name == _pArr[_local6].name){
_disArr.push(_local1[0]);
if (_local1[0].isChest == true){
TollGate.CHEST_PAPER_NUM--;
};
_local1.splice(0, 1);
_delpauseArr.push(_pArr.splice(_local6, 1)[0]);
break;
};
_local6++;
};
} else {
_waveArr.push(_local1[0]);
_local1.splice(0, 1);
};
};
};
};
_local7 = 0;
while (_local7 < _local1.length) {
_mustwaveArr.push(_local1[_local7]);
_local7++;
};
};
};
if (_paperArr.length == 0){
if (_waveArr.length > 0){
_local4 = (_waveArr.length - 1);
while (_local4 >= 0) {
_waveArr[_local4].wave();
_wavepauseArr.push(_waveArr[_local4]);
_local4--;
};
_waveArr = new Array();
};
};
if (_paperArr.length == 0){
if (_disArr.length > 0){
if (_disArr.length == 1){
_disArr[0].del(_mousex, _mousey);
_local11 = new Date();
_disArr[0].deltime = _local11.time;
_comboArr.push(_disArr[0]);
_papercount++;
_disArr.pop();
};
if (_disArr.length > 1){
_disArr.sortOn("distance", (Array.NUMERIC | Array.DESCENDING));
_disArr[(_disArr.length - 1)].del(_mousex, _mousey);
_local11 = new Date();
_disArr[(_disArr.length - 1)].deltime = _local11.time;
_comboArr.push(_disArr[(_disArr.length - 1)]);
_papercount++;
_disArr.splice((_disArr.length - 1), 1);
_local4 = (_disArr.length - 1);
while (_local4 >= 0) {
_disArr[_local4].del2(_mousex, _mousey);
_local11 = new Date();
_disArr[_local4].deltime = _local11.time;
_comboArr.push(_disArr[_local4]);
_papercount++;
_local4--;
};
_disArr = new Array();
};
};
if (_mustwaveArr.length > 0){
SoundsManager.getInstance().overNewSound("paperloop", SoundsManager.getInstance().ValueSound);
if (_mustwaveArr.length == 1){
_mustwaveArr[0].lightWave();
_mustwaveArr.pop();
};
if (_mustwaveArr.length > 1){
_mustwaveArr.sortOn("distance", (Array.NUMERIC | Array.DESCENDING));
_mustwaveArr[(_mustwaveArr.length - 1)].lightWave();
_mustwaveArr.splice((_mustwaveArr.length - 1), 1);
_local4 = (_mustwaveArr.length - 1);
while (_local4 >= 0) {
_mustwaveArr[_local4].lightWave2();
_local4--;
};
};
};
};
_mustwaveArr = new Array();
}
private function powerBarEnterFrame(_arg1:Event):void{
if (_powerBar.currentFrame > 1){
_powerbartime--;
if (_powerbartime == 0){
_powerBar.gotoAndStop((_powerBar.currentFrame - 1));
_powerbartime = 12;
};
};
if ((((_powerBar.currentFrame <= 10)) && ((_powerBar.currentFrame > 1)))){
_root.stage.removeEventListener(MouseEvent.MOUSE_MOVE, blowerMove);
};
if (_powerBar.currentFrame == 1){
_blower.gotoAndStop(1);
_controlBlowerMove = 2;
_controlBlowerWaveMove = 2;
_root.stage.removeEventListener(MouseEvent.MOUSE_MOVE, blowerWaveMove);
};
}
private function backBtRollOut(_arg1:MouseEvent):void{
_backBt.gotoAndStop((_backBt.currentFrame - 1));
}
private function pauseMctransitbright():void{
_pauseMc.alpha = 0;
TweenMax.to(_pauseMc, 0.5, {alpha:1});
}
private function clickBlowerDown(_arg1:MouseEvent):void{
if (_controlPowerbar){
addEventBlowerMove();
addEventBlowerWaveMove();
};
}
private function initPauseDis():void{
var _local1:Array;
var _local2:Number;
_local1 = new Array();
_continueBt = _pauseMc["continueBt"];
_howtoplayBt = _pauseMc["howtoplayBt"];
_backBt = _pauseMc["PauseBackBt"];
_local1.push(_continueBt, _howtoplayBt, _backBt);
_local2 = 0;
while (_local2 < _local1.length) {
_local1[_local2].stop();
_local1[_local2].buttonMode = true;
_local2++;
};
}
private function playHurryUp(_arg1:Event):void{
if (_remind.currentFrame == 46){
_mc.removeChild(_remind);
_remind.removeEventListener(Event.ENTER_FRAME, playHurryUp);
};
}
private function getHurryUp():void{
_remind = Attach.getMovieClip("hurryUp");
_mc.addChild(_remind);
_remind.play();
_remind.addEventListener(Event.ENTER_FRAME, playHurryUp);
}
private function pauseBtRollOver(_arg1:MouseEvent):void{
Mouse.show();
if (_mc.contains(_blower)){
_mc.removeChild(_blower);
};
_pauseBt.gotoAndStop((_pauseBt.currentFrame + 1));
}
override public function destroy():void{
SoundsManager.getInstance().stopAllSound();
transitdark();
}
}
}//package manage
Section 109
//GirlChooseUI (manage.GirlChooseUI)
package manage {
import flash.events.*;
import flash.display.*;
import event.*;
import tool.*;
import gs.*;
import screen.*;
public class GirlChooseUI extends AbstractScreen {
private var _girlNum:Number;
private var _girl2:MovieClip;
private var _girl3:MovieClip;
private var _girl1:MovieClip;
private var _mc:MovieClip;
private var _backBt:MovieClip;
public function GirlChooseUI(_arg1:Sprite, _arg2:Number){
super(_arg1);
SoundsManager.getInstance().overNewMusic("mainscreen.mp3", SoundsManager.getInstance().ValueMusic);
_girlNum = _arg2;
initDis();
initEvent();
transitbright();
}
private function delDis():void{
_root.removeChild(_mc);
_mc = null;
}
private function transitdark():void{
TweenMax.to(_mc, 0.5, {alpha:0, onComplete:del});
}
private function del():void{
delEvent();
delDis();
}
private function transitbright():void{
_mc.alpha = 0;
TweenMax.to(_mc, 0.5, {alpha:1});
}
private function clickBackBt(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
Manage.CONTROL_HOW_TO_PLAY = false;
Manage.CONTROL_MICROPHONE = false;
_root.dispatchEvent(new EventInfo(EventInfo.FRIEND_START));
}
private function delEvent():void{
_girl1.removeEventListener(MouseEvent.CLICK, clickGirl1);
_girl2.removeEventListener(MouseEvent.CLICK, clickGirl2);
_girl3.removeEventListener(MouseEvent.CLICK, clickGirl3);
_backBt.removeEventListener(MouseEvent.CLICK, clickBackBt);
_backBt.removeEventListener(MouseEvent.ROLL_OVER, backRollOver);
_backBt.removeEventListener(MouseEvent.ROLL_OUT, backRollOut);
}
private function initDis():void{
_mc = Attach.getMovieClip("girlChooseScreen");
_root.addChild(_mc);
_girl1 = _mc["girl1"];
_girl2 = _mc["girl2"];
_girl3 = _mc["girl3"];
_girl1.buttonMode = true;
_girl2.buttonMode = true;
_girl3.buttonMode = true;
_mc["girl1lock"].buttonMode = true;
_mc["girl2lock"].buttonMode = true;
_mc["girl3lock"].buttonMode = true;
if (_girlNum == 0){
_girl1.stop();
_mc["girl1lock"].gotoAndStop(1);
_girl2.stop();
_mc["girl2lock"].gotoAndStop(2);
_girl2.mouseEnabled = false;
_girl3.stop();
_mc["girl3lock"].gotoAndStop(2);
_girl3.mouseEnabled = false;
};
if (_girlNum == 1){
_girl1.gotoAndStop(2);
_mc["girl1lock"].gotoAndStop(3);
_girl2.stop();
_mc["girl2lock"].gotoAndStop(1);
_girl2.addEventListener(MouseEvent.CLICK, clickGirl2);
_girl3.stop();
_mc["girl3lock"].gotoAndStop(2);
_girl3.mouseEnabled = false;
};
if (_girlNum == 2){
_girl1.gotoAndStop(2);
_mc["girl1lock"].gotoAndStop(3);
_girl2.gotoAndStop(2);
_girl2.addEventListener(MouseEvent.CLICK, clickGirl2);
_mc["girl2lock"].gotoAndStop(3);
_girl3.stop();
_mc["girl3lock"].gotoAndStop(1);
_girl3.addEventListener(MouseEvent.CLICK, clickGirl3);
};
if (_girlNum == 3){
_girl1.gotoAndStop(2);
_mc["girl1lock"].gotoAndStop(3);
_girl2.gotoAndStop(2);
_girl2.addEventListener(MouseEvent.CLICK, clickGirl2);
_mc["girl2lock"].gotoAndStop(3);
_girl3.gotoAndStop(2);
_mc["girl3lock"].gotoAndStop(3);
_girl3.addEventListener(MouseEvent.CLICK, clickGirl3);
};
_backBt = _mc["backBt"];
_backBt.stop();
_backBt.buttonMode = true;
}
private function clickGirl1(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
_root.dispatchEvent(new TollGateEvent(TollGateEvent.GAME_GO_START, 1));
}
private function clickGirl3(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
_root.dispatchEvent(new TollGateEvent(TollGateEvent.GAME_GO_START, 3));
}
private function initEvent():void{
_girl1.addEventListener(MouseEvent.CLICK, clickGirl1);
_backBt.addEventListener(MouseEvent.CLICK, clickBackBt);
_backBt.addEventListener(MouseEvent.ROLL_OVER, backRollOver);
_backBt.addEventListener(MouseEvent.ROLL_OUT, backRollOut);
}
private function backRollOut(_arg1:MouseEvent):void{
_backBt.gotoAndStop((_backBt.currentFrame - 1));
}
override public function destroy():void{
SoundsManager.getInstance().stopAllSound();
transitdark();
}
private function clickGirl2(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
_root.dispatchEvent(new TollGateEvent(TollGateEvent.GAME_GO_START, 2));
}
private function backRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("othertouch", SoundsManager.getInstance().ValueSound);
_backBt.gotoAndStop((_backBt.currentFrame + 1));
}
}
}//package manage
Section 110
//HowToPlayUI (manage.HowToPlayUI)
package manage {
import flash.events.*;
import flash.display.*;
import event.*;
import tool.*;
import gs.*;
import screen.*;
public class HowToPlayUI extends AbstractScreen {
private var _mark:Number;
private var _game_start:MovieClip;
private var _mc:MovieClip;
private var _backBt:MovieClip;
public function HowToPlayUI(_arg1:Sprite, _arg2:Number){
super(_arg1);
SoundsManager.getInstance().overNewMusic("mainscreen.mp3", SoundsManager.getInstance().ValueMusic);
_mark = _arg2;
initDis();
initEvent();
transitbright();
}
private function delDis():void{
_root.removeChild(_mc);
_mc = null;
}
private function transitdark():void{
TweenMax.to(_mc, 0.5, {alpha:0, onComplete:del});
}
private function del():void{
delEvent();
delDis();
}
private function transitbright():void{
_mc.alpha = 0;
TweenMax.to(_mc, 0.5, {alpha:1});
}
private function clickBackBt(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
if (_mark == 1){
destroy();
} else {
_root.dispatchEvent(new EventInfo(EventInfo.FRIEND_START));
};
}
private function delEvent():void{
_game_start.removeEventListener(MouseEvent.CLICK, clickGameStart);
_game_start.removeEventListener(MouseEvent.ROLL_OVER, gameStartRollOver);
_game_start.removeEventListener(MouseEvent.ROLL_OUT, gameStartRollOut);
_backBt.removeEventListener(MouseEvent.CLICK, clickBackBt);
_backBt.removeEventListener(MouseEvent.ROLL_OVER, backRollOver);
_backBt.removeEventListener(MouseEvent.ROLL_OUT, backRollOut);
}
private function initDis():void{
_mc = Attach.getMovieClip("how2PlayScreen");
_root.addChild(_mc);
_game_start = _mc["game_start"];
_game_start.buttonMode = true;
_game_start.stop();
_backBt = _mc["backBt"];
_backBt.buttonMode = true;
_backBt.stop();
if (_mark == 1){
_game_start.alpha = 0;
_backBt.x = 45;
_backBt.y = 450;
_game_start.mouseEnabled = false;
};
}
private function gameStartRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("othertouch", SoundsManager.getInstance().ValueSound);
_game_start.gotoAndStop((_game_start.currentFrame + 1));
}
private function clickGameStart(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
if (Manage.CONTROL_MICROPHONE == true){
_root.dispatchEvent(new EventInfo(EventInfo.IF_MICROPHONE));
} else {
_root.dispatchEvent(new MicroPhoneEvent(MicroPhoneEvent.CHOOSE_GIRL, Manage.MICROPHONE));
};
}
private function gameStartRollOut(_arg1:MouseEvent):void{
SoundsManager.getInstance().stopSound("othertouch");
_game_start.gotoAndStop((_game_start.currentFrame - 1));
}
private function initEvent():void{
_game_start.addEventListener(MouseEvent.CLICK, clickGameStart);
_game_start.addEventListener(MouseEvent.ROLL_OVER, gameStartRollOver);
_game_start.addEventListener(MouseEvent.ROLL_OUT, gameStartRollOut);
_backBt.addEventListener(MouseEvent.CLICK, clickBackBt);
_backBt.addEventListener(MouseEvent.ROLL_OVER, backRollOver);
_backBt.addEventListener(MouseEvent.ROLL_OUT, backRollOut);
}
private function backRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("othertouch", SoundsManager.getInstance().ValueSound);
_backBt.gotoAndStop((_backBt.currentFrame + 1));
}
private function backRollOut(_arg1:MouseEvent):void{
SoundsManager.getInstance().stopSound("othertouch");
_backBt.gotoAndStop((_backBt.currentFrame - 1));
}
override public function destroy():void{
SoundsManager.getInstance().stopAllSound();
transitdark();
}
}
}//package manage
Section 111
//LastScree (manage.LastScree)
package manage {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import tool.*;
import screen.*;
public class LastScree extends AbstractScreen {
private var _continue:MovieClip;
private var _logo:MovieClip;
private var _mc:MovieClip;
public function LastScree(_arg1:Sprite){
super(_arg1);
initDis();
initEvent();
}
private function clickContinue(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
delEvent();
_root.removeChild(_mc);
_mc = null;
SoundsManager.getInstance().stopAllSound();
}
private function continueRollOut(_arg1:MouseEvent):void{
_continue.gotoAndStop(1);
}
private function continueRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("othertouch", SoundsManager.getInstance().ValueSound);
_continue.gotoAndStop(2);
}
private function initEvent():void{
_continue.addEventListener(MouseEvent.CLICK, clickContinue);
_continue.addEventListener(MouseEvent.ROLL_OVER, continueRollOver);
_continue.addEventListener(MouseEvent.ROLL_OUT, continueRollOut);
_logo.addEventListener(MouseEvent.CLICK, clickLogo2);
}
private function delEvent():void{
_continue.removeEventListener(MouseEvent.CLICK, clickContinue);
_continue.removeEventListener(MouseEvent.ROLL_OVER, continueRollOver);
_continue.removeEventListener(MouseEvent.ROLL_OUT, continueRollOut);
}
private function initDis():void{
_mc = Attach.getMovieClip("lastScreen");
_root.addChild(_mc);
_logo = _mc["logo"];
_continue = _mc["continueBt"];
_logo.stop();
_continue.stop();
}
private function clickLogo2(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.a10.com/games/Sticky-Notes-Chick.html?seeding");
navigateToURL(_local2, "_blank");
}
}
}//package manage
Section 112
//LevelComplete (manage.LevelComplete)
package manage {
import flash.events.*;
import flash.display.*;
import event.*;
import tool.*;
import zlong.site.*;
import gs.*;
import flash.text.*;
import screen.*;
import flash.ui.*;
import zlong.utils.*;
public class LevelComplete extends AbstractScreen {
private var _comboMc:MovieClip;
private var scoreTemp:int;// = 0
private var _scoreMc:MovieClip;
private var _score:int;
private var scoreAdd:int;
private var _mc:MovieClip;
private var _girlchooseBt:MovieClip;
private var _ifsubmit:Boolean;// = true
private var _comboText:TextField;
private var _scoreText:TextField;
private var _comboscore:int;
private var _existTime:Number;// = 180
private var _timescore:int;
private var _timeMc:MovieClip;
private var _totalscore:int;
private var _girlMc:MovieClip;
private var _timeText:TextField;
private var _gateNum:Number;
public function LevelComplete(_arg1:Number, _arg2:Sprite, _arg3:Number){
_existTime = 180;
scoreTemp = 0;
_ifsubmit = true;
super(_arg2);
SoundsManager.getInstance().playLoopsMusic("complete.mp3", SoundsManager.getInstance().ValueMusic);
Mouse.show();
_gateNum = _arg3;
_score = _arg1;
submitAchievement();
initScore();
initDis();
transitbright();
}
private function delDis():void{
_root.removeChild(_mc);
_mc = null;
}
private function del():void{
SoundsManager.getInstance().stopAllSound();
delEvent();
delDis();
}
private function transitbright():void{
_mc.alpha = 0;
TweenMax.to(_mc, 0.5, {alpha:1, onComplete:initMc});
}
private function initEvent():void{
_girlchooseBt.addEventListener(MouseEvent.CLICK, clickNextLevel);
_girlchooseBt.addEventListener(MouseEvent.ROLL_OVER, btRollOver);
_girlchooseBt.addEventListener(MouseEvent.ROLL_OUT, btRollOut);
_timeText.addEventListener(Event.ENTER_FRAME, timeTextEnterFrame);
}
override public function destroy():void{
SoundsManager.getInstance().stopAllSound();
transitdark();
}
private function countTotalScore():void{
var _local1:Number;
var _local2:Number;
var _local3:MyCookie;
var _local4:Object;
var _local5:int;
_local1 = 0;
_local2 = 0;
while (_local2 < Manage.GIRL.length) {
trace(Manage.GIRL[_local2].gateScore);
_local1 = (_local1 + Manage.GIRL[_local2].gateScore);
_local2++;
};
_totalscore = _local1;
_local3 = new MyCookie("sticky_chick_notes");
_local4 = _local3.data;
if (_local4["totalscore"] == null){
_local3.addProperty("totalscore", _totalscore);
} else {
_local5 = _local4["totalscore"];
if (_totalscore > _local5){
_local3.addProperty("totalscore", _totalscore);
} else {
_ifsubmit = false;
};
};
_local3.close();
}
private function existFiveSecond(_arg1:Event):void{
_existTime--;
if (_existTime == 0){
_root.dispatchEvent(new TollGateEvent(TollGateEvent.NEXT_LEVEL, _gateNum));
_mc.removeEventListener(Event.ENTER_FRAME, existFiveSecond);
};
}
private function clickNextLevel(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
_root.dispatchEvent(new TollGateEvent(TollGateEvent.NEXT_LEVEL, _gateNum));
}
private function comboTextEnterFrame(_arg1:Event):void{
if (scoreTemp < _comboscore){
scoreAdd = ((_comboscore - scoreTemp) * 0.2);
if (scoreAdd < 1){
scoreAdd = 1;
};
scoreTemp = (scoreTemp + scoreAdd);
};
_comboText.text = String(scoreTemp);
if (scoreTemp == _comboscore){
scoreTemp = 0;
_scoreText.addEventListener(Event.ENTER_FRAME, scoreTextEnterFrame);
_comboText.removeEventListener(Event.ENTER_FRAME, comboTextEnterFrame);
};
}
private function scoreTextEnterFrame(_arg1:Event):void{
if (scoreTemp < _score){
scoreAdd = ((_score - scoreTemp) * 0.2);
if (scoreAdd < 1){
scoreAdd = 1;
};
scoreTemp = (scoreTemp + scoreAdd);
};
_scoreText.text = String(scoreTemp);
if (scoreTemp == _score){
_scoreText.removeEventListener(Event.ENTER_FRAME, scoreTextEnterFrame);
SoundsManager.getInstance().playSound("关卡完成", SoundsManager.getInstance().ValueSound);
};
}
private function timeTextEnterFrame(_arg1:Event):void{
if (scoreTemp < _timescore){
scoreAdd = ((_timescore - scoreTemp) * 0.2);
if (scoreAdd < 1){
scoreAdd = 1;
};
scoreTemp = (scoreTemp + scoreAdd);
};
_timeText.text = String(scoreTemp);
if (scoreTemp == _timescore){
scoreTemp = 0;
_comboText.addEventListener(Event.ENTER_FRAME, comboTextEnterFrame);
_timeText.removeEventListener(Event.ENTER_FRAME, timeTextEnterFrame);
};
}
private function transitdark():void{
TweenMax.to(_mc, 0.5, {alpha:0, onComplete:del});
}
private function initMc():void{
initEvent();
}
private function delEvent():void{
_girlchooseBt.removeEventListener(MouseEvent.CLICK, clickNextLevel);
_girlchooseBt.removeEventListener(MouseEvent.ROLL_OVER, btRollOver);
_girlchooseBt.removeEventListener(MouseEvent.ROLL_OUT, btRollOut);
_timeText.removeEventListener(Event.ENTER_FRAME, timeTextEnterFrame);
_comboText.removeEventListener(Event.ENTER_FRAME, comboTextEnterFrame);
_scoreText.removeEventListener(Event.ENTER_FRAME, scoreTextEnterFrame);
}
private function btRollOut(_arg1:MouseEvent):void{
_girlchooseBt.gotoAndStop((_girlchooseBt.currentFrame - 1));
}
private function initDis():void{
_mc = Attach.getMovieClip("levelCompletedScreen");
_root.addChild(_mc);
_scoreMc = _mc["score"];
_timeMc = _mc["time"];
_girlMc = _mc["girlMc"];
_comboMc = _mc["combo"];
_comboText = _comboMc["comboText"];
_comboMc.mouseChildren = false;
_scoreMc.mouseChildren = false;
_timeMc.mouseChildren = false;
_girlMc.mouseChildren = false;
switch (_gateNum){
case 2:
_mc["logo2"].visible = false;
_mc["logo3"].visible = false;
break;
case 3:
_mc["logo1"].visible = false;
_mc["logo3"].visible = false;
break;
case 4:
_mc["logo1"].visible = false;
_mc["logo2"].visible = false;
break;
};
_girlMc.gotoAndStop((_gateNum - 1));
_girlchooseBt = _mc["girlchooseBt"];
_girlchooseBt.buttonMode = true;
_girlchooseBt.stop();
if (_gateNum == 4){
_girlchooseBt.visible = false;
_mc.addEventListener(Event.ENTER_FRAME, existFiveSecond);
};
_scoreText = _scoreMc["scoreText"];
_timeText = _timeMc["timeText"];
}
private function submitAchievement():void{
if (_gateNum != 4){
countTotalScore();
};
if (_gateNum == 2){
DocumentClass._tracker.trackEvent("Sticky Notes Chick", "level 1 completed", "per session", 0);
SpilSystem.instance.submitAchievement("award1");
if (_ifsubmit){
if (SiteInfo.instance.allowed){
if (Manage.CONTROL_SCORE_TIMENUM){
SpilSystem.instance.submitScore((_totalscore * 2));
} else {
SpilSystem.instance.submitScore(_totalscore);
};
};
};
} else {
if (_gateNum == 3){
SpilSystem.instance.submitAchievement("award2");
if (_ifsubmit){
trace(((("提交的分数 :" + _totalscore) + " 是否乘以了2倍 ") + Manage.CONTROL_SCORE_TIMENUM));
if (SiteInfo.instance.allowed){
if (Manage.CONTROL_SCORE_TIMENUM){
SpilSystem.instance.submitScore((_totalscore * 2));
} else {
SpilSystem.instance.submitScore(_totalscore);
};
};
};
} else {
if (_gateNum == 4){
DocumentClass._tracker.trackEvent("Sticky Notes Chick", "game_completed", "per session", 0);
SpilSystem.instance.submitAchievement("award3");
};
};
};
}
private function initScore():void{
var _local1:Number;
_local1 = 0;
while (_local1 < Manage.GIRL.length) {
if ((_gateNum - 1) == Manage.GIRL[_local1].gateNum){
_timescore = ((180 - Manage.GIRL[_local1].secondremain) * 200);
_comboscore = (_score - _timescore);
};
_local1++;
};
}
private function btRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("othertouch", SoundsManager.getInstance().ValueSound);
_girlchooseBt.gotoAndStop((_girlchooseBt.currentFrame + 1));
}
}
}//package manage
Section 113
//LevelFailed (manage.LevelFailed)
package manage {
import flash.events.*;
import flash.display.*;
import event.*;
import tool.*;
import zlong.site.*;
import gs.*;
import flash.text.*;
import screen.*;
import flash.ui.*;
public class LevelFailed extends AbstractScreen {
private var _comboMc:MovieClip;
private var scoreTemp:int;// = 0
private var _scoreMc:MovieClip;
private var _score:Number;
private var scoreAdd:int;
private var _mc:MovieClip;
private var _girlchooseBt:MovieClip;
private var totalscore:int;
private var _tryagainBt:MovieClip;
private var _comboText:TextField;
private var _scoreText:TextField;
private var _timeMc:MovieClip;
private var _comboscore:int;
private var _timeText:TextField;
private var _gateNum:Number;
public function LevelFailed(_arg1:Number, _arg2:Sprite, _arg3:Number){
scoreTemp = 0;
super(_arg2);
SoundsManager.getInstance().playLoopsMusic("failed.mp3", SoundsManager.getInstance().ValueMusic);
_score = _arg1;
countTotalScore();
trace(("totalscore " + totalscore));
if (SiteInfo.instance.allowed){
if (Manage.CONTROL_SCORE_TIMENUM){
SpilSystem.instance.submitScore((totalscore * 2));
} else {
SpilSystem.instance.submitScore(totalscore);
};
};
_gateNum = _arg3;
initScore();
initDis();
initEvent();
transitbright();
}
private function delDis():void{
_root.removeChild(_mc);
_mc = null;
}
private function del():void{
delEvent();
delDis();
}
private function transitbright():void{
_mc.alpha = 0;
TweenMax.to(_mc, 0.5, {alpha:1});
}
private function girlChooseBtRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("othertouch", SoundsManager.getInstance().ValueSound);
_girlchooseBt.gotoAndStop((_girlchooseBt.currentFrame + 1));
}
private function countTotalScore():void{
var _local1:Number;
var _local2:Number;
_local1 = 0;
_local2 = 0;
while (_local2 < Manage.GIRL.length) {
_local1 = (_local1 + Manage.GIRL[_local2].gateScore);
_local2++;
};
totalscore = _local1;
trace(("totalscore " + _local1));
totalscore = (totalscore + _score);
trace(("_score " + _score));
}
private function clickGirlChooseBt(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
_root.dispatchEvent(new TollGateEvent(TollGateEvent.NEXT_LEVEL, _gateNum));
}
private function comboTextEnterFrame(_arg1:Event):void{
if (scoreTemp < _comboscore){
scoreAdd = ((_comboscore - scoreTemp) * 0.2);
if (scoreAdd < 1){
scoreAdd = 1;
};
scoreTemp = (scoreTemp + scoreAdd);
};
_comboText.text = String(scoreTemp);
if (scoreTemp == _comboscore){
scoreTemp = 0;
_scoreText.addEventListener(Event.ENTER_FRAME, scoreTextEnterFrame);
_comboText.removeEventListener(Event.ENTER_FRAME, comboTextEnterFrame);
};
}
private function scoreTextEnterFrame(_arg1:Event):void{
Mouse.show();
if (scoreTemp < _score){
scoreAdd = ((_score - scoreTemp) * 0.2);
if (scoreAdd < 1){
scoreAdd = 1;
};
scoreTemp = (scoreTemp + scoreAdd);
};
_scoreText.text = String(scoreTemp);
}
private function transitdark():void{
TweenMax.to(_mc, 0.5, {alpha:0, onComplete:del});
}
private function girlChooseBtRollOut(_arg1:MouseEvent):void{
_girlchooseBt.gotoAndStop((_girlchooseBt.currentFrame - 1));
}
private function delEvent():void{
_scoreText.removeEventListener(Event.ENTER_FRAME, scoreTextEnterFrame);
_comboText.removeEventListener(Event.ENTER_FRAME, comboTextEnterFrame);
_tryagainBt.removeEventListener(MouseEvent.CLICK, clickTryagainBt);
_tryagainBt.removeEventListener(MouseEvent.ROLL_OVER, tryAgainRollOver);
_tryagainBt.removeEventListener(MouseEvent.ROLL_OUT, tryAgainRollOut);
_girlchooseBt.removeEventListener(MouseEvent.CLICK, clickGirlChooseBt);
_girlchooseBt.removeEventListener(MouseEvent.ROLL_OVER, girlChooseBtRollOver);
_girlchooseBt.removeEventListener(MouseEvent.ROLL_OUT, girlChooseBtRollOut);
}
private function clickTryagainBt(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("otherpress", SoundsManager.getInstance().ValueSound);
Manage.CONTROL_HOW_TO_PLAY = false;
Manage.CONTROL_MICROPHONE = false;
_root.dispatchEvent(new EventInfo(EventInfo.FRIEND_START));
}
private function initDis():void{
_mc = Attach.getMovieClip("levelFailedScreen");
_root.addChild(_mc);
_timeMc = _mc["time"];
_timeText = _timeMc["timeText"];
_comboMc = _mc["combo"];
_comboText = _comboMc["comboText"];
_timeText.text = String(0);
_scoreMc = _mc["score"];
_scoreText = _scoreMc["scoreText"];
_tryagainBt = _mc["tryagainBt"];
_tryagainBt.stop();
_tryagainBt.buttonMode = true;
_girlchooseBt = _mc["girlchooseBt"];
_girlchooseBt.stop();
_girlchooseBt.buttonMode = true;
_scoreMc.mouseChildren = false;
_timeMc.mouseChildren = false;
_comboMc.mouseChildren = false;
switch (_gateNum){
case 1:
_mc["logo2"].visible = false;
_mc["logo3"].visible = false;
break;
case 2:
_mc["logo1"].visible = false;
_mc["logo3"].visible = false;
break;
case 3:
_mc["logo1"].visible = false;
_mc["logo2"].visible = false;
break;
};
}
private function initScore():void{
_comboscore = _score;
}
private function tryAgainRollOut(_arg1:MouseEvent):void{
_tryagainBt.gotoAndStop((_tryagainBt.currentFrame - 1));
}
private function initEvent():void{
_comboText.addEventListener(Event.ENTER_FRAME, comboTextEnterFrame);
_tryagainBt.addEventListener(MouseEvent.CLICK, clickTryagainBt);
_tryagainBt.addEventListener(MouseEvent.ROLL_OVER, tryAgainRollOver);
_tryagainBt.addEventListener(MouseEvent.ROLL_OUT, tryAgainRollOut);
_girlchooseBt.addEventListener(MouseEvent.CLICK, clickGirlChooseBt);
_girlchooseBt.addEventListener(MouseEvent.ROLL_OVER, girlChooseBtRollOver);
_girlchooseBt.addEventListener(MouseEvent.ROLL_OUT, girlChooseBtRollOut);
}
private function tryAgainRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("othertouch", SoundsManager.getInstance().ValueSound);
_tryagainBt.gotoAndStop((_tryagainBt.currentFrame + 1));
}
override public function destroy():void{
SoundsManager.getInstance().stopAllSound();
transitdark();
}
}
}//package manage
Section 114
//LoadingUI (manage.LoadingUI)
package manage {
import flash.events.*;
import flash.display.*;
import event.*;
import tool.*;
import screen.*;
public class LoadingUI extends AbstractScreen {
private var spilDomain:SpilDomain;
private var _percent_text:MovieClip;
private var _xmlLoader:XMLLoader;
private var _mc:MovieClip;
private var _percent_textc:MovieClip;
public function LoadingUI(_arg1:Sprite){
super(_arg1);
initDomain();
initDis();
initEvent();
}
private function delDis():void{
_root.removeChild(_mc);
_mc = null;
}
private function initDis():void{
_mc = Attach.getMovieClip("loadScreen");
_root.addChild(_mc);
_percent_text = MovieClip(_mc.getChildByName("percent_text"));
_percent_textc = _percent_text["percent_textc"];
}
override public function destroy():void{
delEvent();
delDis();
}
private function initEvent():void{
_mc.addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
private function initDomain():void{
_xmlLoader = new XMLLoader();
}
private function onEnterFrame(_arg1:Event):void{
var _local2:Number;
_local2 = (_mc.root.loaderInfo.bytesLoaded / _mc.root.loaderInfo.bytesTotal);
_percent_textc.gotoAndStop(Math.round((_local2 * 100)));
if (_local2 == 1){
if (_xmlLoader.finish){
loadingComplete();
};
};
}
private function loadingComplete():void{
delEvent();
_root.dispatchEvent(new EventInfo(EventInfo.LOAD_SWF_COMPLETE));
_xmlLoader = null;
}
private function delEvent():void{
_mc.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
}
}
}//package manage
Section 115
//MainMenuUI (manage.MainMenuUI)
package manage {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import event.*;
import tool.*;
import zlong.site.*;
import gs.*;
import screen.*;
public class MainMenuUI extends AbstractScreen {
private var _soundBt:MovieClip;
private var _logo:MovieClip;
private var _start_button:MovieClip;
private var _musicBt:MovieClip;
private var _how_to_play:MovieClip;
private var _controlhowtoplay:Boolean;
private var _logo1:MovieClip;
private var _logo2:MovieClip;
private var _qualityBt:MovieClip;
private var _mc:MovieClip;
private var _gameportal:SimpleButton;
public static const HIGH:String = "HIGH";
public static const LOW:String = "LOW";
public static const MEDIUM:String = "MEDIUM";
public static var control_music:int = 1;
public static var control_sound:int = 1;
public static var control_quality:int = 1;
public function MainMenuUI(_arg1:Sprite, _arg2:Boolean){
super(_arg1);
SoundsManager.getInstance().overNewMusic("mainscreen.mp3", SoundsManager.getInstance().ValueMusic);
DocumentClass._tracker.trackEvent("Sticky Notes Chick", "mainscreen viewed", "per session", 0);
_controlhowtoplay = _arg2;
initDis();
initEvent();
transitbright();
}
private function delDis():void{
_root.removeChild(_mc);
_mc = null;
}
private function startRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("menu_touch", SoundsManager.getInstance().ValueSound);
_start_button.gotoAndStop((_start_button.currentFrame + 1));
}
private function clickStartGame(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("menu_press", SoundsManager.getInstance().ValueSound);
if (_controlhowtoplay){
_root.dispatchEvent(new EventInfo(EventInfo.HOW_TO_PLAY));
return;
};
if (Manage.CONTROL_MICROPHONE == false){
_root.dispatchEvent(new MicroPhoneEvent(MicroPhoneEvent.CHOOSE_GIRL, Manage.MICROPHONE));
} else {
if (Manage.CONTROL_MICROPHONE == true){
_root.dispatchEvent(new EventInfo(EventInfo.IF_MICROPHONE));
};
};
}
private function htpRollOut(_arg1:MouseEvent):void{
_how_to_play.gotoAndStop((_start_button.currentFrame - 1));
}
override public function destroy():void{
SoundsManager.getInstance().stopAllSound();
transitdark();
}
private function clickLogo(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.a10.com");
navigateToURL(_local2, "_blank");
}
private function delEvent():void{
_logo.removeEventListener(MouseEvent.CLICK, clickLogo);
_start_button.removeEventListener(MouseEvent.CLICK, clickStartGame);
_start_button.removeEventListener(MouseEvent.ROLL_OVER, startRollOver);
_start_button.removeEventListener(MouseEvent.ROLL_OUT, startRollOut);
_how_to_play.removeEventListener(MouseEvent.CLICK, clickHowToPlay);
_how_to_play.removeEventListener(MouseEvent.ROLL_OVER, htpRollOver);
_how_to_play.removeEventListener(MouseEvent.ROLL_OUT, htpRollOut);
if (SiteInfo.instance.allowed){
_logo1.removeEventListener(MouseEvent.CLICK, clickLogo1);
_logo1.removeEventListener(MouseEvent.ROLL_OVER, logo1RollOver);
} else {
_logo2.removeEventListener(MouseEvent.CLICK, clickLogo2);
_logo2.removeEventListener(MouseEvent.ROLL_OVER, logo2RollOver);
_logo2.removeEventListener(MouseEvent.ROLL_OUT, logo2RollOut);
};
_soundBt["soundCd"].removeEventListener(MouseEvent.CLICK, clickSoundBt);
_qualityBt["qualityCd"].removeEventListener(MouseEvent.CLICK, clickQualityBt);
_musicBt["musicCd"].removeEventListener(MouseEvent.CLICK, clickMusicBt);
}
private function clickHowToPlay(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("menu_press", SoundsManager.getInstance().ValueSound);
Manage.CONTROL_HOW_TO_PLAY = false;
_root.dispatchEvent(new EventInfo(EventInfo.HOW_TO_PLAY));
}
private function del():void{
delEvent();
delDis();
}
private function startRollOut(_arg1:MouseEvent):void{
_start_button.gotoAndStop((_start_button.currentFrame - 1));
}
private function clickSoundBt(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("menu_press", SoundsManager.getInstance().ValueSound);
if (_soundBt["soundCd"].currentFrame == 2){
MainMenuUI.control_sound = 1;
SoundsManager.getInstance().Enabled = true;
_soundBt["soundCd"].gotoAndStop((_soundBt["soundCd"].currentFrame - 1));
} else {
MainMenuUI.control_sound = 2;
SoundsManager.getInstance().Enabled = false;
_soundBt["soundCd"].gotoAndStop((_soundBt["soundCd"].currentFrame + 1));
};
}
private function transitbright():void{
_mc.alpha = 0;
TweenMax.to(_mc, 0.5, {alpha:1});
}
private function clickQualityBt(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("menu_press", SoundsManager.getInstance().ValueSound);
if (_mc.stage.quality == LOW){
MainMenuUI.control_quality = 1;
_qualityBt["qualityCd"].gotoAndStop(1);
_mc.stage.quality = StageQuality.HIGH;
} else {
if (_mc.stage.quality == MEDIUM){
MainMenuUI.control_quality = 3;
_qualityBt["qualityCd"].gotoAndStop(3);
_mc.stage.quality = StageQuality.LOW;
} else {
if (_mc.stage.quality == HIGH){
MainMenuUI.control_quality = 2;
_qualityBt["qualityCd"].gotoAndStop(2);
_mc.stage.quality = StageQuality.MEDIUM;
};
};
};
}
private function initDis():void{
_mc = Attach.getMovieClip("menuScreen");
_root.addChild(_mc);
_logo = _mc["logo"];
_start_button = _mc["start_button"];
_start_button.buttonMode = true;
_start_button.stop();
_logo1 = _mc["logo1"];
_logo2 = _mc["logo2"];
if (SiteInfo.instance.allowed){
_logo1.visible = true;
_logo2.visible = false;
_logo1.addEventListener(MouseEvent.CLICK, clickLogo1);
_logo1.addEventListener(MouseEvent.ROLL_OVER, logo1RollOver);
} else {
_logo1.visible = false;
_logo2.visible = true;
_logo2.stop();
_logo2.buttonMode = true;
_logo2.addEventListener(MouseEvent.CLICK, clickLogo2);
_logo2.addEventListener(MouseEvent.ROLL_OVER, logo2RollOver);
_logo2.addEventListener(MouseEvent.ROLL_OUT, logo2RollOut);
};
_how_to_play = _mc["how_to_play"];
_how_to_play.buttonMode = true;
_how_to_play.stop();
_gameportal = _mc["gameportal"];
_soundBt = _mc["soundBt"];
_soundBt["soundCd"].gotoAndStop(MainMenuUI.control_sound);
_soundBt["soundCd"].buttonMode = true;
_musicBt = _mc["musicBt"];
_musicBt["musicCd"].gotoAndStop(MainMenuUI.control_music);
_qualityBt = _mc["qualityBt"];
_qualityBt["qualityCd"].gotoAndStop(MainMenuUI.control_quality);
_musicBt["musicCd"].buttonMode = true;
_qualityBt["qualityCd"].buttonMode = true;
}
private function clickMusicBt(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("menu_press", SoundsManager.getInstance().ValueSound);
if (_musicBt["musicCd"].currentFrame == 2){
trace(("TMD " + SoundsManager.getInstance().getCurMusic_st));
if (SoundsManager.getInstance().getCurMusic_st == "level.mp3"){
SoundsManager.getInstance().MusicEnable2 = true;
SoundsManager.getInstance().playMusic("mainscreen.mp3", SoundsManager.getInstance().ValueMusic);
} else {
SoundsManager.getInstance().MusicEnable = true;
};
trace(("TMD " + SoundsManager.getInstance().getCurMusic_st));
MainMenuUI.control_music = 1;
_musicBt["musicCd"].gotoAndStop((_musicBt["musicCd"].currentFrame - 1));
} else {
SoundsManager.getInstance().MusicEnable = false;
MainMenuUI.control_music = 2;
_musicBt["musicCd"].gotoAndStop((_musicBt["musicCd"].currentFrame + 1));
};
}
private function initEvent():void{
_logo.addEventListener(MouseEvent.CLICK, clickLogo);
_start_button.addEventListener(MouseEvent.CLICK, clickStartGame);
_start_button.addEventListener(MouseEvent.ROLL_OVER, startRollOver);
_start_button.addEventListener(MouseEvent.ROLL_OUT, startRollOut);
_how_to_play.addEventListener(MouseEvent.CLICK, clickHowToPlay);
_how_to_play.addEventListener(MouseEvent.ROLL_OVER, htpRollOver);
_how_to_play.addEventListener(MouseEvent.ROLL_OUT, htpRollOut);
_soundBt["soundCd"].addEventListener(MouseEvent.CLICK, clickSoundBt);
_qualityBt["qualityCd"].addEventListener(MouseEvent.CLICK, clickQualityBt);
_musicBt["musicCd"].addEventListener(MouseEvent.CLICK, clickMusicBt);
}
private function transitdark():void{
TweenMax.to(_mc, 0.5, {alpha:0, onComplete:del});
}
private function logo1RollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("menu_touch", SoundsManager.getInstance().ValueSound);
}
private function logo2RollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("menu_touch", SoundsManager.getInstance().ValueSound);
_logo2.gotoAndStop(2);
}
private function logo2RollOut(_arg1:MouseEvent):void{
_logo2.gotoAndStop(1);
}
private function htpRollOver(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("menu_touch", SoundsManager.getInstance().ValueSound);
_how_to_play.gotoAndStop((_start_button.currentFrame + 1));
}
private function clickLogo1(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("menu_press", SoundsManager.getInstance().ValueSound);
}
private function clickLogo2(_arg1:MouseEvent):void{
var _local2:URLRequest;
SoundsManager.getInstance().playSound("menu_press", SoundsManager.getInstance().ValueSound);
_local2 = new URLRequest("http://www.a10.com/games/Sticky-Notes-Chick.html?seeding");
navigateToURL(_local2, "_blank");
}
}
}//package manage
Section 116
//Manage (manage.Manage)
package manage {
import flash.display.*;
import event.*;
import tool.*;
import flash.media.*;
import screen.*;
import zlong.utils.*;
public class Manage {
private var _root:Sprite;
private var _screen:AbstractScreen;
public static var CONTROL_COMBO_TIME:int;
public static var CONTROL_MICROPHONECARTOON:Boolean = true;
public static var CONTROL_HOW_TO_PLAY:Boolean = true;
public static var TOLL_GATE_SCORE:Number;
public static var MICROPHONE:Microphone;
public static var CONTROL_MICROPHONE:Boolean = true;
public static var LEVELFAILEDPAPERCOUNT:int;
public static var CONTROL_SCORE_TIMENUM:Boolean = false;
public static var CONTROL_SPACECARTOON:Boolean = true;
public static var GIRL:Array = new Array();
public function Manage(_arg1:Sprite){
_root = _arg1;
readCookie();
initEvent();
initLoad();
}
private function clearScreen():void{
_screen.destroy();
GC.clear();
}
private function restartGame(_arg1:GameResartEvent):void{
clearScreen();
_screen = new GirlChooseUI(_root, Manage.GIRL.length);
}
private function timeOver(_arg1:TryAgainEvent):void{
clearScreen();
_screen = new LevelFailed(Manage.TOLL_GATE_SCORE, _root, _arg1.gateNum);
}
private function tryAgain(_arg1:TollGateEvent):void{
clearScreen();
_screen = new GameUi(_root, Manage.MICROPHONE, _arg1.gateNum);
}
private function loadComplete(_arg1:EventInfo):void{
clearScreen();
DocumentClass(_root.parent).sleek();
_screen = new MainMenuUI(_root, Manage.CONTROL_HOW_TO_PLAY);
}
private function initEvent():void{
_root.addEventListener(EventInfo.LOAD_SWF_COMPLETE, loadComplete);
_root.addEventListener(EventInfo.HOW_TO_PLAY, howToPlay);
_root.addEventListener(EventInfo.IF_MICROPHONE, ifMicrophone);
_root.addEventListener(MicroPhoneEvent.CHOOSE_GIRL, chooseGirl);
_root.addEventListener(TollGateEvent.GAME_GO_START, clickStartGame);
_root.addEventListener(TryAgainEvent.TIME_OVER, timeOver);
_root.addEventListener(TollGateEvent.LEVEL_COMPLETE, passTollGate);
_root.addEventListener(TollGateEvent.NEXT_LEVEL, onNextLevel);
_root.addEventListener(EventInfo.FRIEND_START, clickFriendStart);
_root.addEventListener(TollGateEvent.TRY_AGAIN, tryAgain);
_root.addEventListener(EventInfo.HIGH_SCORES, clickHighScores);
_root.addEventListener(GameResartEvent.RESTART_GAME_AGAIN, restartGame);
}
private function clickStartGame(_arg1:TollGateEvent):void{
clearScreen();
_screen = new GameUi(_root, Manage.MICROPHONE, _arg1.gateNum);
}
private function ifMicrophone(_arg1:EventInfo):void{
clearScreen();
_screen = new ChooseMicrophoneUI(_root);
}
private function clickHighScores(_arg1:EventInfo):void{
new LastScree(_root);
}
private function chooseGirl(_arg1:MicroPhoneEvent):void{
Manage.MICROPHONE = _arg1.microPhone;
clearScreen();
_screen = new GirlChooseUI(_root, Manage.GIRL.length);
}
private function passTollGate(_arg1:TollGateEvent):void{
clearScreen();
_screen = new LevelComplete(Manage.TOLL_GATE_SCORE, _root, _arg1.gateNum);
}
private function onNextLevel(_arg1:TollGateEvent):void{
if (_arg1.gateNum == 4){
clearScreen();
_screen = new GameCompletedUI(_root);
} else {
clearScreen();
_screen = new GirlChooseUI(_root, Manage.GIRL.length);
};
}
private function readCookie():void{
var _local1:MyCookie;
var _local2:Object;
var _local3:MyCookie;
var _local4:Object;
_local1 = new MyCookie("sticky_chick_notes");
_local2 = _local1.data;
if (_local2["arrayname"] != null){
Manage.GIRL = _local2["arrayname"];
};
_local1.close();
_local3 = new MyCookie("sticky_chick_notes_control_score_times");
_local4 = _local3.data;
if (_local4["control_score_boolean"] != null){
Manage.CONTROL_SCORE_TIMENUM = _local4["control_score_boolean"];
};
_local3.close();
trace(("Manage.GIRL " + Manage.GIRL));
trace(("Manage.CONTROL_SCORE_TIMENUM " + Manage.CONTROL_SCORE_TIMENUM));
}
private function clickFriendStart(_arg1:EventInfo):void{
clickF();
}
private function initLoad():void{
_screen = new LoadingUI(_root);
}
private function clickF():void{
clearScreen();
_screen = new MainMenuUI(_root, Manage.CONTROL_HOW_TO_PLAY);
}
private function howToPlay(_arg1:EventInfo):void{
clearScreen();
_screen = new HowToPlayUI(_root, 0);
}
}
}//package manage
Section 117
//Paper (manage.Paper)
package manage {
import flash.events.*;
import flash.display.*;
import tool.*;
import flash.geom.*;
public class Paper {
private var _waveend:Number;// = 18
private var _isLeg:Boolean;// = false
private var _force:Number;// = 0.6
private var point:Point;
private var _wavestart:Number;// = 1
private var _mouseX:Number;
private var _gravity:Number;// = 0.2
private var _rootmc:MovieClip;
private var _deltime:Number;
private var _end:Number;// = 34
private var _wavestep:Number;// = 1
private var _wavetime:int;// = 12
private var _step:Number;// = 1
private var _time:int;// = 12
private var _mc:MovieClip;
private var _forComp:int;
private var _isChest:Boolean;// = false
private var vx:Number;// = 0
private var vy:Number;// = 0
private var _distance:int;
private var _start:Number;// = 26
private var _paperrotationtime:int;// = 6
private var _rotationSpeed:Number;// = 12
private var _name:String;
private var _mouseY:Number;
private var _x:Number;
private var _y:Number;
private var _papermc:MovieClip;
public function Paper(_arg1:MovieClip){
_isChest = false;
_isLeg = false;
_time = 12;
_wavetime = 12;
_paperrotationtime = 6;
vx = 0;
vy = 0;
_force = 0.6;
_gravity = 0.2;
_rotationSpeed = 12;
_start = 26;
_end = 34;
_step = 1;
_wavestart = 1;
_waveend = 18;
_wavestep = 1;
super();
_rootmc = _arg1;
initMc();
}
public function get y():Number{
return (_y);
}
public function set isLeg(_arg1:Boolean):void{
_isLeg = _arg1;
}
public function get isLeg():Boolean{
return (_isLeg);
}
public function set distance(_arg1:int):void{
_distance = _arg1;
}
public function get name():String{
return (_name);
}
private function lightWaveEnterFrame(_arg1:Event):void{
if (_mc.currentFrame == _end){
if (_step > 0){
_step = -1;
_start = 34;
_end = 26;
} else {
_mc.stop();
_step = 1;
_start = 26;
_end = 34;
_mc.removeEventListener(Event.ENTER_FRAME, lightWaveEnterFrame);
};
} else {
_mc.gotoAndStop((_mc.currentFrame + _step));
};
}
public function get pmc():MovieClip{
return (_papermc);
}
public function del(_arg1:Number, _arg2:Number):void{
_mc.removeEventListener(Event.ENTER_FRAME, waveEnterFrame);
_mc.removeEventListener(Event.ENTER_FRAME, lightWaveEnterFrame);
_mc.removeEventListener(Event.ENTER_FRAME, lightWaveOnEnterFrame);
_mc.gotoAndPlay(1);
_mouseX = _arg1;
_mouseY = _arg2;
point = new Point(_papermc.x, _papermc.y);
_mc.addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
public function get mc():MovieClip{
return (_mc);
}
public function set gravity(_arg1:Number):void{
_gravity = _arg1;
}
public function wave():void{
_mc.removeEventListener(Event.ENTER_FRAME, lightWaveEnterFrame);
_mc.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
_mc.removeEventListener(Event.ENTER_FRAME, onEnterFrame2);
_mc.gotoAndPlay(_wavestart);
_mc.addEventListener(Event.ENTER_FRAME, waveEnterFrame);
}
public function lightWave2():void{
_mc.addEventListener(Event.ENTER_FRAME, lightWaveOnEnterFrame);
}
public function lightWave():void{
_mc.gotoAndPlay(26);
_mc.addEventListener(Event.ENTER_FRAME, lightWaveEnterFrame);
}
public function get forComp():int{
return (_forComp);
}
public function del2(_arg1:Number, _arg2:Number):void{
_mc.removeEventListener(Event.ENTER_FRAME, waveEnterFrame);
_mc.removeEventListener(Event.ENTER_FRAME, lightWaveEnterFrame);
_mc.removeEventListener(Event.ENTER_FRAME, lightWaveOnEnterFrame);
_mouseX = _arg1;
_mouseY = _arg2;
point = new Point(_papermc.x, _papermc.y);
_mc.addEventListener(Event.ENTER_FRAME, onEnterFrame2);
}
public function set deltime(_arg1:Number):void{
_deltime = _arg1;
}
public function get deltime():Number{
return (_deltime);
}
private function lightWaveOnEnterFrame(_arg1:Event):void{
_wavetime--;
if (_wavetime == 0){
lightWave();
_mc.removeEventListener(Event.ENTER_FRAME, lightWaveOnEnterFrame);
};
}
public function delPaperdelEvent():void{
_mc.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
_mc.removeEventListener(Event.ENTER_FRAME, onEnterFrame2);
}
public function adddelPaperdelEvent():void{
_mc.removeEventListener(Event.ENTER_FRAME, waveEnterFrame);
_mc.addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
private function onEnterFrame(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Point;
var _local8:Point;
if (_mc.currentFrame >= 18){
_mc.stop();
if (_mouseX < _rootmc.localToGlobal(point).x){
_mc.rotation = (_mc.rotation + _rotationSpeed);
};
if (_mouseX > _rootmc.localToGlobal(point).x){
_mc.rotation = (_mc.rotation - _rotationSpeed);
};
if (((!((_papermc == null))) && (_rootmc.contains(_papermc)))){
_rootmc.setChildIndex(_papermc, (_rootmc.numChildren - 1));
};
_local2 = (_rootmc.localToGlobal(point).x - _mouseX);
_local3 = (_rootmc.localToGlobal(point).y - _mouseY);
_local4 = Math.atan2(_local3, _local2);
_local5 = (Math.cos(_local4) * _force);
_local6 = (Math.sin(_local4) * _force);
vx = (vx + _local5);
vy = (vy + _local6);
vy = (vy + _gravity);
_mc.x = (_mc.x + vx);
_mc.y = (_mc.y + vy);
_local7 = new Point(_papermc.x, _papermc.y);
_local8 = new Point(_mc.x, _mc.y);
if (Math.sqrt((((_rootmc.localToGlobal(_local7).x - _papermc.localToGlobal(_local8).x) * (_rootmc.localToGlobal(_local7).x - _papermc.localToGlobal(_local8).x)) + ((_rootmc.localToGlobal(_local7).y - _papermc.localToGlobal(_local8).y) * (_rootmc.localToGlobal(_local7).y - _papermc.localToGlobal(_local8).y)))) >= 50){
_gravity = 0.08;
vx = (vx - 0.02);
_force = 0;
_paperrotationtime--;
if (_paperrotationtime == 0){
_paperrotationtime = 6;
_rotationSpeed--;
if (_rotationSpeed == 0){
_rotationSpeed = 1;
};
};
if (_local8.y >= 400){
_mc.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
_papermc.removeChild(_mc);
if (((!((_papermc == null))) && (_rootmc.contains(_papermc)))){
_rootmc.removeChild(_papermc);
};
_mc = null;
_papermc = null;
_rootmc = null;
};
};
};
}
private function waveEnterFrame(_arg1:Event):void{
if (_mc.currentFrame == _waveend){
if (_wavestep > 0){
_wavestep = -1;
_wavestart = 18;
_waveend = 1;
} else {
_mc.stop();
_wavestep = 1;
_wavestart = 1;
_waveend = 18;
_mc.removeEventListener(Event.ENTER_FRAME, waveEnterFrame);
};
} else {
_mc.gotoAndStop((_mc.currentFrame + _wavestep));
};
}
public function set name(_arg1:String):void{
_name = _arg1;
_papermc.name = _name;
_forComp = int(_name);
}
public function set rotationSpeed(_arg1:Number):void{
_rotationSpeed = _arg1;
}
private function initMc():void{
_mc = Attach.getMovieClip("paper");
_mc.scaleX = 0.88;
_mc.scaleY = 0.88;
_papermc = new MovieClip();
_papermc.addChild(_mc);
_mc.x = -15;
_mc.y = -20;
_mc.stop();
_rootmc.addChild(_papermc);
}
public function set force(_arg1:Number):void{
_force = _arg1;
}
public function addwavePaperdelEvent():void{
_mc.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
_mc.addEventListener(Event.ENTER_FRAME, waveEnterFrame);
}
public function wavePaperdelEvent():void{
_mc.removeEventListener(Event.ENTER_FRAME, waveEnterFrame);
}
public function set y(_arg1:Number):void{
_y = _arg1;
_papermc.y = _y;
}
public function set isChest(_arg1:Boolean):void{
_isChest = _arg1;
}
public function get distance():int{
return (_distance);
}
public function get isChest():Boolean{
return (_isChest);
}
public function get x():Number{
return (_x);
}
private function onEnterFrame2(_arg1:Event):void{
_time--;
if (_time == 0){
_mc.gotoAndPlay(1);
_time = 12;
_mc.addEventListener(Event.ENTER_FRAME, onEnterFrame);
_mc.removeEventListener(Event.ENTER_FRAME, onEnterFrame2);
};
}
public function set x(_arg1:Number):void{
_x = _arg1;
_papermc.x = _x;
}
}
}//package manage
Section 118
//TollGate (manage.TollGate)
package manage {
import flash.display.*;
import flash.geom.*;
public class TollGate {
private var _pArr:Array;
private var _girl:MovieClip;
private var _gateNum:Number;
public static var CHEST_PAPER_NUM:Number;
public function TollGate(_arg1:MovieClip, _arg2:Array, _arg3:Number){
_pArr = new Array();
super();
_gateNum = _arg3;
_girl = _arg1;
_pArr = _arg2;
if (_gateNum == 1){
initPaper();
} else {
if (_gateNum == 2){
initPaper2();
} else {
if (_gateNum == 3){
initPaper3();
};
};
};
}
private function initPaper():void{
var _local1:Paper;
var _local2:Paper;
var _local3:Paper;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Paper;
TollGate.CHEST_PAPER_NUM = 32;
_local1 = new Paper(_girl);
_pArr.push(_local1);
_local1.name = "1";
_local1.isChest = true;
_local1.x = 0;
_local1.y = 240;
_local2 = new Paper(_girl);
_pArr.push(_local2);
_local2.name = "2";
_local2.isChest = true;
_local2.x = 43;
_local2.y = 230;
_local3 = new Paper(_girl);
_pArr.push(_local3);
_local3.name = "3";
_local3.x = 130;
_local3.y = 450;
_local4 = 4;
while (_local4 < 34) {
_local8 = new Paper(_girl);
_pArr.push(_local8);
_local8.name = String(_local4);
_local8.isChest = true;
_local8.x = ((Math.random() * 185) + 15);
_local8.y = ((Math.random() * 70) + 205);
checkDistance(_local4, _local8);
_local4++;
};
_local5 = 34;
while (_local5 < 54) {
_local8 = new Paper(_girl);
_pArr.push(_local8);
_local8.name = String(_local5);
_local8.x = ((Math.random() * 190) + 90);
_local8.y = ((Math.random() * 30) + 410);
checkDistance(_local5, _local8);
_local5++;
};
_local6 = 54;
while (_local6 < 70) {
_local8 = new Paper(_girl);
_pArr.push(_local8);
_local8.name = String(_local6);
_local8.x = ((Math.random() * 140) + 45);
_local8.y = ((Math.random() * 70) + 135);
checkDistance(_local6, _local8);
_local6++;
};
_local7 = 70;
while (_local7 < 90) {
_local8 = new Paper(_girl);
_pArr.push(_local8);
_local8.name = String(_local7);
_local8.x = ((Math.random() * 190) + 35);
_local8.y = ((Math.random() * 75) + 275);
checkDistance(_local7, _local8);
_local7++;
};
_local5 = 90;
while (_local5 <= 100) {
_local8 = new Paper(_girl);
_pArr.push(_local8);
_local8.name = String(_local5);
_local8.x = ((Math.random() * 205) + 55);
_local8.y = ((Math.random() * 60) + 350);
checkDistance(_local5, _local8);
_local5++;
};
}
private function checkDistance(_arg1:Number, _arg2:Paper):void{
var _local3:Number;
var _local4:MovieClip;
var _local5:Point;
var _local6:Point;
var _local7:int;
var _local8:Number;
var _local9:Point;
var _local10:Point;
_local3 = 1;
while (_local3 < _arg1) {
_local4 = (_girl.getChildByName(String(_local3)) as MovieClip);
_local5 = new Point(_arg2.x, _arg2.y);
_local6 = new Point(_local4.x, _local4.y);
_local7 = Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local5).x - _local4.parent.localToGlobal(_local6).x) * (_arg2.pmc.parent.localToGlobal(_local5).x - _local4.parent.localToGlobal(_local6).x)) + ((_arg2.pmc.parent.localToGlobal(_local5).y - _local4.parent.localToGlobal(_local6).y) * (_arg2.pmc.parent.localToGlobal(_local5).y - _local4.parent.localToGlobal(_local6).y))));
if (_local7 < 20){
if (_arg1 < 34){
_local8 = 0;
while (_local8 < 20) {
_arg2.x = ((Math.random() * 185) + 15);
_arg2.y = ((Math.random() * 70) + 205);
_local9 = new Point(_arg2.x, _arg2.y);
_local10 = new Point(_local4.x, _local4.y);
if (Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x) * (_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x)) + ((_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y) * (_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y)))) > 20){
break;
};
_local8++;
};
};
if ((((_arg1 >= 34)) && ((_arg1 < 54)))){
_local8 = 0;
while (_local8 < 20) {
_arg2.x = ((Math.random() * 190) + 90);
_arg2.y = ((Math.random() * 40) + 410);
_local9 = new Point(_arg2.x, _arg2.y);
_local10 = new Point(_local4.x, _local4.y);
if (Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x) * (_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x)) + ((_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y) * (_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y)))) > 20){
break;
};
_local8++;
};
};
if ((((_arg1 >= 54)) && ((_arg1 < 70)))){
_arg1 = 0;
while (_arg1 < 20) {
_arg2.x = ((Math.random() * 140) + 45);
_arg2.y = ((Math.random() * 70) + 135);
_local9 = new Point(_arg2.x, _arg2.y);
_local10 = new Point(_local4.x, _local4.y);
if (Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x) * (_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x)) + ((_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y) * (_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y)))) > 20){
break;
};
_arg1++;
};
};
if ((((_arg1 >= 70)) && ((_arg1 < 90)))){
_arg1 = 0;
while (_arg1 < 20) {
_arg2.x = ((Math.random() * 190) + 35);
_arg2.y = ((Math.random() * 75) + 275);
_local9 = new Point(_arg2.x, _arg2.y);
_local10 = new Point(_local4.x, _local4.y);
if (Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x) * (_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x)) + ((_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y) * (_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y)))) > 20){
break;
};
_arg1++;
};
};
if ((((_arg1 >= 90)) && ((_arg1 <= 100)))){
_arg1 = 0;
while (_arg1 < 20) {
_arg2.x = ((Math.random() * 205) + 55);
_arg2.y = ((Math.random() * 60) + 350);
_local9 = new Point(_arg2.x, _arg2.y);
_local10 = new Point(_local4.x, _local4.y);
if (Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x) * (_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x)) + ((_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y) * (_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y)))) > 20){
break;
};
_arg1++;
};
};
};
_local3++;
};
}
private function initPaper2():void{
var _local1:Paper;
var _local2:Paper;
var _local3:Paper;
var _local4:Number;
var _local5:Paper;
TollGate.CHEST_PAPER_NUM = 22;
_local1 = new Paper(_girl);
_pArr.push(_local1);
_local1.name = "1";
_local1.isChest = true;
_local1.x = 130;
_local1.y = 265;
_local2 = new Paper(_girl);
_pArr.push(_local2);
_local2.name = "2";
_local2.isChest = true;
_local2.x = 0xFF;
_local2.y = 235;
_local3 = new Paper(_girl);
_pArr.push(_local3);
_local3.name = "3";
_local3.x = 190;
_local3.y = 390;
_local4 = 4;
while (_local4 < 24) {
_local5 = new Paper(_girl);
_pArr.push(_local5);
_local5.name = String(_local4);
_local5.isChest = true;
_local5.x = ((Math.random() * 165) + 100);
_local5.y = ((Math.random() * 105) + 200);
checkDistance2(_local4, _local5);
_local4++;
};
_local4 = 24;
while (_local4 < 54) {
_local5 = new Paper(_girl);
_pArr.push(_local5);
_local5.name = String(_local4);
_local5.x = ((Math.random() * 215) + 20);
_local5.y = ((Math.random() * 55) + 400);
checkDistance2(_local4, _local5);
_local4++;
};
_local4 = 54;
while (_local4 < 74) {
_local5 = new Paper(_girl);
_pArr.push(_local5);
_local5.name = String(_local4);
_local5.x = ((Math.random() * 200) + 75);
_local5.y = ((Math.random() * 85) + 115);
checkDistance2(_local4, _local5);
_local4++;
};
_local4 = 74;
while (_local4 < 84) {
_local5 = new Paper(_girl);
_pArr.push(_local5);
_local5.name = String(_local4);
_local5.x = ((Math.random() * 50) + 245);
_local5.y = ((Math.random() * 95) + 30);
checkDistance2(_local4, _local5);
_local4++;
};
_local4 = 84;
while (_local4 < 94) {
_local5 = new Paper(_girl);
_pArr.push(_local5);
_local5.name = String(_local4);
_local5.x = ((Math.random() * 55) + 45);
_local5.y = ((Math.random() * 105) + 200);
checkDistance2(_local4, _local5);
_local4++;
};
_local4 = 94;
while (_local4 <= 120) {
_local5 = new Paper(_girl);
_pArr.push(_local5);
_local5.name = String(_local4);
_local5.x = ((Math.random() * 195) + 50);
_local5.y = ((Math.random() * 95) + 305);
checkDistance2(_local4, _local5);
_local4++;
};
}
private function checkDistance2(_arg1:Number, _arg2:Paper):void{
var _local3:Number;
var _local4:MovieClip;
var _local5:Point;
var _local6:Point;
var _local7:int;
var _local8:Number;
var _local9:Point;
var _local10:Point;
_local3 = 1;
while (_local3 < _arg1) {
_local4 = (_girl.getChildByName(String(_local3)) as MovieClip);
_local5 = new Point(_arg2.x, _arg2.y);
_local6 = new Point(_local4.x, _local4.y);
_local7 = Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local5).x - _local4.parent.localToGlobal(_local6).x) * (_arg2.pmc.parent.localToGlobal(_local5).x - _local4.parent.localToGlobal(_local6).x)) + ((_arg2.pmc.parent.localToGlobal(_local5).y - _local4.parent.localToGlobal(_local6).y) * (_arg2.pmc.parent.localToGlobal(_local5).y - _local4.parent.localToGlobal(_local6).y))));
if (_local7 < 20){
if (_arg1 < 24){
_local8 = 0;
while (_local8 < 20) {
_arg2.x = ((Math.random() * 165) + 100);
_arg2.y = ((Math.random() * 105) + 200);
_local9 = new Point(_arg2.x, _arg2.y);
_local10 = new Point(_local4.x, _local4.y);
if (Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x) * (_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x)) + ((_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y) * (_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y)))) > 20){
break;
};
_local8++;
};
};
if ((((_arg1 >= 24)) && ((_arg1 < 54)))){
_local8 = 0;
while (_local8 < 20) {
_arg2.x = ((Math.random() * 215) + 20);
_arg2.y = ((Math.random() * 55) + 400);
_local9 = new Point(_arg2.x, _arg2.y);
_local10 = new Point(_local4.x, _local4.y);
if (Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x) * (_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x)) + ((_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y) * (_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y)))) > 20){
break;
};
_local8++;
};
};
if ((((_arg1 >= 54)) && ((_arg1 < 74)))){
_arg1 = 0;
while (_arg1 < 20) {
_arg2.x = ((Math.random() * 200) + 75);
_arg2.y = ((Math.random() * 85) + 115);
_local9 = new Point(_arg2.x, _arg2.y);
_local10 = new Point(_local4.x, _local4.y);
if (Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x) * (_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x)) + ((_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y) * (_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y)))) > 20){
break;
};
_arg1++;
};
};
if ((((_arg1 >= 74)) && ((_arg1 < 84)))){
_arg1 = 0;
while (_arg1 < 20) {
_arg2.x = ((Math.random() * 50) + 245);
_arg2.y = ((Math.random() * 95) + 30);
_local9 = new Point(_arg2.x, _arg2.y);
_local10 = new Point(_local4.x, _local4.y);
if (Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x) * (_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x)) + ((_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y) * (_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y)))) > 20){
break;
};
_arg1++;
};
};
if ((((_arg1 >= 84)) && ((_arg1 < 94)))){
_arg1 = 0;
while (_arg1 < 20) {
_arg2.x = ((Math.random() * 55) + 45);
_arg2.y = ((Math.random() * 105) + 200);
_local9 = new Point(_arg2.x, _arg2.y);
_local10 = new Point(_local4.x, _local4.y);
if (Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x) * (_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x)) + ((_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y) * (_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y)))) > 20){
break;
};
_arg1++;
};
};
if ((((_arg1 >= 94)) && ((_arg1 <= 120)))){
_arg1 = 0;
while (_arg1 < 20) {
_arg2.x = ((Math.random() * 195) + 50);
_arg2.y = ((Math.random() * 95) + 305);
_local9 = new Point(_arg2.x, _arg2.y);
_local10 = new Point(_local4.x, _local4.y);
if (Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x) * (_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x)) + ((_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y) * (_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y)))) > 20){
break;
};
_arg1++;
};
};
};
_local3++;
};
}
private function initPaper3():void{
var _local1:Paper;
var _local2:Paper;
var _local3:Paper;
var _local4:Number;
var _local5:Paper;
TollGate.CHEST_PAPER_NUM = 42;
_local1 = new Paper(_girl);
_pArr.push(_local1);
_local1.name = "1";
_local1.isChest = true;
_local1.x = 48;
_local1.y = 310;
_local2 = new Paper(_girl);
_pArr.push(_local2);
_local2.name = "2";
_local2.isChest = true;
_local2.x = 183;
_local2.y = 238;
_local3 = new Paper(_girl);
_pArr.push(_local3);
_local3.name = "3";
_local3.x = 265;
_local3.y = 430;
_local4 = 4;
while (_local4 < 44) {
_local5 = new Paper(_girl);
_pArr.push(_local5);
_local5.isChest = true;
_local5.name = String(_local4);
_local5.x = ((Math.random() * 215) + 30);
_local5.y = ((Math.random() * 135) + 220);
checkDistance3(_local4, _local5);
_local4++;
};
_local4 = 44;
while (_local4 < 60) {
_local5 = new Paper(_girl);
_pArr.push(_local5);
_local5.name = String(_local4);
_local5.x = ((Math.random() * 285) + 135);
_local5.y = ((Math.random() * 55) + 400);
checkDistance3(_local4, _local5);
_local4++;
};
_local4 = 60;
while (_local4 < 75) {
_local5 = new Paper(_girl);
_pArr.push(_local5);
_local5.name = String(_local4);
_local5.x = ((Math.random() * 85) + 130);
_local5.y = ((Math.random() * 40) + 180);
checkDistance3(_local4, _local5);
_local4++;
};
_local4 = 75;
while (_local4 < 90) {
_local5 = new Paper(_girl);
_pArr.push(_local5);
_local5.name = String(_local4);
_local5.x = ((Math.random() * 135) + 245);
_local5.y = ((Math.random() * 50) + 305);
checkDistance3(_local4, _local5);
_local4++;
};
_local4 = 90;
while (_local4 <= 130) {
_local5 = new Paper(_girl);
_pArr.push(_local5);
_local5.name = String(_local4);
_local5.x = ((Math.random() * 380) + 30);
_local5.y = ((Math.random() * 45) + 355);
checkDistance3(_local4, _local5);
_local4++;
};
}
private function checkDistance3(_arg1:Number, _arg2:Paper):void{
var _local3:Number;
var _local4:MovieClip;
var _local5:Point;
var _local6:Point;
var _local7:int;
var _local8:Number;
var _local9:Point;
var _local10:Point;
_local3 = 1;
while (_local3 < _arg1) {
_local4 = (_girl.getChildByName(String(_local3)) as MovieClip);
_local5 = new Point(_arg2.x, _arg2.y);
_local6 = new Point(_local4.x, _local4.y);
_local7 = Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local5).x - _local4.parent.localToGlobal(_local6).x) * (_arg2.pmc.parent.localToGlobal(_local5).x - _local4.parent.localToGlobal(_local6).x)) + ((_arg2.pmc.parent.localToGlobal(_local5).y - _local4.parent.localToGlobal(_local6).y) * (_arg2.pmc.parent.localToGlobal(_local5).y - _local4.parent.localToGlobal(_local6).y))));
if (_local7 < 20){
if (_arg1 < 44){
_local8 = 0;
while (_local8 < 20) {
_arg2.x = ((Math.random() * 215) + 30);
_arg2.y = ((Math.random() * 135) + 220);
_local9 = new Point(_arg2.x, _arg2.y);
_local10 = new Point(_local4.x, _local4.y);
if (Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x) * (_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x)) + ((_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y) * (_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y)))) > 20){
break;
};
_local8++;
};
};
if ((((_arg1 >= 44)) && ((_arg1 < 60)))){
_local8 = 0;
while (_local8 < 20) {
_arg2.x = ((Math.random() * 285) + 135);
_arg2.y = ((Math.random() * 55) + 400);
_local9 = new Point(_arg2.x, _arg2.y);
_local10 = new Point(_local4.x, _local4.y);
if (Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x) * (_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x)) + ((_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y) * (_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y)))) > 20){
break;
};
_local8++;
};
};
if ((((_arg1 >= 60)) && ((_arg1 < 75)))){
_arg1 = 0;
while (_arg1 < 20) {
_arg2.x = ((Math.random() * 85) + 130);
_arg2.y = ((Math.random() * 40) + 180);
_local9 = new Point(_arg2.x, _arg2.y);
_local10 = new Point(_local4.x, _local4.y);
if (Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x) * (_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x)) + ((_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y) * (_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y)))) > 20){
break;
};
_arg1++;
};
};
if ((((_arg1 >= 75)) && ((_arg1 < 90)))){
_arg1 = 0;
while (_arg1 < 20) {
_arg2.x = ((Math.random() * 135) + 245);
_arg2.y = ((Math.random() * 50) + 305);
_local9 = new Point(_arg2.x, _arg2.y);
_local10 = new Point(_local4.x, _local4.y);
if (Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x) * (_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x)) + ((_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y) * (_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y)))) > 20){
break;
};
_arg1++;
};
};
if ((((_arg1 >= 115)) && ((_arg1 <= 130)))){
_arg1 = 0;
while (_arg1 < 20) {
_arg2.x = ((Math.random() * 380) + 30);
_arg2.y = ((Math.random() * 45) + 355);
_local9 = new Point(_arg2.x, _arg2.y);
_local10 = new Point(_local4.x, _local4.y);
if (Math.sqrt((((_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x) * (_arg2.pmc.parent.localToGlobal(_local9).x - _local4.parent.localToGlobal(_local10).x)) + ((_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y) * (_arg2.pmc.parent.localToGlobal(_local9).y - _local4.parent.localToGlobal(_local10).y)))) > 20){
break;
};
_arg1++;
};
};
};
_local3++;
};
}
}
}//package manage
Section 119
//XMLLoader (manage.XMLLoader)
package manage {
import flash.net.*;
import flash.events.*;
import zlong.site.*;
class XMLLoader {
private var _localSiteDataLoaderFinish:Boolean;
private var _localSiteDataLoader:URLLoader;
function XMLLoader(){
super();
_localSiteDataLoader = new URLLoader();
_localSiteDataLoader.dataFormat = URLLoaderDataFormat.TEXT;
_localSiteDataLoader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_localSiteDataLoader.addEventListener(Event.COMPLETE, LocalSiteDataLoaderFinish);
try {
_localSiteDataLoader.load(new URLRequest(SiteData.URL));
} catch(e:Error) {
errorHandler();
};
}
private function LocalSiteDataLoaderFinish(_arg1:Event):void{
SiteData.allowedSite = new XML(_localSiteDataLoader.data);
_localSiteDataLoaderFinish = true;
delLocalSiteDataLoader();
}
private function delLocalSiteDataLoader():void{
_localSiteDataLoader.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_localSiteDataLoader.removeEventListener(Event.COMPLETE, LocalSiteDataLoaderFinish);
_localSiteDataLoader = null;
}
private function errorHandler(_arg1:IOErrorEvent=null):void{
SiteData.allowedSite = <sites></sites>
;
_localSiteDataLoaderFinish = true;
delLocalSiteDataLoader();
}
function get finish():Boolean{
return (_localSiteDataLoaderFinish);
}
}
}//package manage
Section 120
//Alert (olduncle.Alert)
package olduncle {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import zlong.country.*;
public class Alert extends MovieClip {
public var _txt:MovieClip;
public var goon:Btn_NO;
public var agame:Btn_YES;
private var _afterFunction:Function;
public function Alert(_arg1:DisplayObjectContainer, _arg2:Function){
m15();
_arg1.addChild(this);
_afterFunction = _arg2;
addEventListener(MouseEvent.CLICK, uiMouseClick);
}
private function m15():void{
var _local1:int;
_local1 = CountryInfo.instance.language;
(getChildByName("_txt") as MovieClip).gotoAndStop(_local1);
((getChildByName("goon") as MovieClip).getChildByName("_txt") as MovieClip).gotoAndStop(_local1);
((getChildByName("agame") as MovieClip).getChildByName("_txt") as MovieClip).gotoAndStop(_local1);
}
private function uiMouseClick(_arg1:MouseEvent):void{
var _local2:String;
_local2 = _arg1.target.name;
switch (_local2){
case "goon":
removeSelf();
_afterFunction();
break;
case "agame":
navigateToURL(new URLRequest(("http://" + CountryInfo.instance.domain)), "_blank");
break;
default:
break;
};
}
private function removeSelf():void{
var _local1:int;
removeEventListener(MouseEvent.CLICK, uiMouseClick);
_local1 = 0;
while (_local1 < numChildren) {
if ((getChildAt(_local1) is BtnBase)){
(getChildAt(_local1) as BtnBase).removeAll();
};
_local1++;
};
parent.removeChild(this);
}
}
}//package olduncle
Section 121
//BtnBase (olduncle.BtnBase)
package olduncle {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class BtnBase extends MovieClip {
private var _isDown:Boolean;
public var _txt:MovieClip;
private var _btnName:String;
private var _isAddUp:Boolean;
public function BtnBase(){
_isDown = false;
_isAddUp = false;
init();
}
public function get btnName():String{
return (_btnName);
}
public function init():void{
stop();
_btnName = name;
mouseChildren = false;
addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
}
protected function mouseUpHandler(_arg1:MouseEvent):void{
gotoAndStop(1);
_isDown = false;
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
}
protected function mouseDownHandler(_arg1:MouseEvent):void{
gotoAndStop(2);
_isDown = true;
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 100, 100, 100, 0);
if (!_isAddUp){
stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
_isAddUp = true;
};
}
public function removeAll():void{
removeEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
removeEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
}
protected function mouseOutHandler(_arg1:MouseEvent):void{
gotoAndStop(1);
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
}
protected function mouseOverHandler(_arg1:MouseEvent):void{
gotoAndStop(2);
if (_isDown){
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 100, 100, 100, 0);
};
}
}
}//package olduncle
Section 122
//AbstractScreen (screen.AbstractScreen)
package screen {
import flash.display.*;
import flash.utils.*;
public class AbstractScreen {
protected var _root:Sprite;
public function AbstractScreen(_arg1:Sprite){
if (getQualifiedClassName(this) == "main::AbstractScreen"){
throw (new ArgumentError("can't be constructed"));
};
_root = _arg1;
}
public function destroy():void{
throw (new Error("Abstract Method!"));
}
}
}//package screen
Section 123
//Submitter (Spill.Components.Submitter)
package Spill.Components {
import flash.display.*;
public dynamic class Submitter extends MovieClip {
public var OO00OO1l1l:OOO000lll;
}
}//package Spill.Components
Section 124
//a10_com_logo_74 (Stick_Notes_Chick_fla.a10_com_logo_74)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class a10_com_logo_74 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 125
//combo_209 (Stick_Notes_Chick_fla.combo_209)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class combo_209 extends MovieClip {
public var baba:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 126
//combo111_137 (Stick_Notes_Chick_fla.combo111_137)
package Stick_Notes_Chick_fla {
import flash.display.*;
import flash.text.*;
public dynamic class combo111_137 extends MovieClip {
public var comboText:TextField;
}
}//package Stick_Notes_Chick_fla
Section 127
//dailygame_com_75 (Stick_Notes_Chick_fla.dailygame_com_75)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class dailygame_com_75 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 128
//egames_jp_73 (Stick_Notes_Chick_fla.egames_jp_73)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class egames_jp_73 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 129
//FENSHU_135 (Stick_Notes_Chick_fla.FENSHU_135)
package Stick_Notes_Chick_fla {
import flash.display.*;
import flash.text.*;
public dynamic class FENSHU_135 extends MovieClip {
public var scoreText:TextField;
}
}//package Stick_Notes_Chick_fla
Section 130
//girlsgogames_59 (Stick_Notes_Chick_fla.girlsgogames_59)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class girlsgogames_59 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 131
//girlsgogames_60 (Stick_Notes_Chick_fla.girlsgogames_60)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class girlsgogames_60 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 132
//girlsgogames_61 (Stick_Notes_Chick_fla.girlsgogames_61)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class girlsgogames_61 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 133
//girlsgogames_62 (Stick_Notes_Chick_fla.girlsgogames_62)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class girlsgogames_62 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 134
//girlsgogames_63 (Stick_Notes_Chick_fla.girlsgogames_63)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class girlsgogames_63 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 135
//girlsgogames_64 (Stick_Notes_Chick_fla.girlsgogames_64)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class girlsgogames_64 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 136
//girlsgogames_65 (Stick_Notes_Chick_fla.girlsgogames_65)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class girlsgogames_65 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 137
//girlsgogames_67 (Stick_Notes_Chick_fla.girlsgogames_67)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class girlsgogames_67 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 138
//girlsgogames_68 (Stick_Notes_Chick_fla.girlsgogames_68)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class girlsgogames_68 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 139
//girlsgogames_69 (Stick_Notes_Chick_fla.girlsgogames_69)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class girlsgogames_69 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 140
//girlsgogames_70 (Stick_Notes_Chick_fla.girlsgogames_70)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class girlsgogames_70 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 141
//HUAMIANOK_98 (Stick_Notes_Chick_fla.HUAMIANOK_98)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class HUAMIANOK_98 extends MovieClip {
public var qualityCd:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 142
//juegosdechicas_66 (Stick_Notes_Chick_fla.juegosdechicas_66)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class juegosdechicas_66 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 143
//loadingdonghua_229 (Stick_Notes_Chick_fla.loadingdonghua_229)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class loadingdonghua_229 extends MovieClip {
public var percent_textc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 144
//logo_asoyun_com_45 (Stick_Notes_Chick_fla.logo_asoyun_com_45)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class logo_asoyun_com_45 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 145
//logo_game_22 (Stick_Notes_Chick_fla.logo_game_22)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class logo_game_22 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 146
//logo_game_com_my_46 (Stick_Notes_Chick_fla.logo_game_com_my_46)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class logo_game_com_my_46 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 147
//logo_games_co_uk_57 (Stick_Notes_Chick_fla.logo_games_co_uk_57)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class logo_games_co_uk_57 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 148
//logo_giocaregratis_it_34 (Stick_Notes_Chick_fla.logo_giocaregratis_it_34)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class logo_giocaregratis_it_34 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 149
//logo_laro_com_ph_72 (Stick_Notes_Chick_fla.logo_laro_com_ph_72)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class logo_laro_com_ph_72 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 150
//logo_minigry_pl_44 (Stick_Notes_Chick_fla.logo_minigry_pl_44)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class logo_minigry_pl_44 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 151
//logo_my_games_co_uk_37 (Stick_Notes_Chick_fla.logo_my_games_co_uk_37)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class logo_my_games_co_uk_37 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 152
//logo_oyunlar123_com_58 (Stick_Notes_Chick_fla.logo_oyunlar123_com_58)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class logo_oyunlar123_com_58 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 153
//MoreGamesLogo222_152 (Stick_Notes_Chick_fla.MoreGamesLogo222_152)
package Stick_Notes_Chick_fla {
import flash.display.*;
import zlong.display.*;
public dynamic class MoreGamesLogo222_152 extends MovieClip {
public var __id7_:Logo;
public function MoreGamesLogo222_152(){
__setProp___id7__MoreGamesLogo222_Layer4_1();
}
function __setProp___id7__MoreGamesLogo222_Layer4_1(){
try {
__id7_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id7_.alignHorizontal = "Center";
__id7_.alignVertical = "Down";
__id7_.maxHeight = 25;
__id7_.maxWidth = 120;
__id7_.position = "logo_preloader";
try {
__id7_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Stick_Notes_Chick_fla
Section 154
//new_agame_com_19 (Stick_Notes_Chick_fla.new_agame_com_19)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class new_agame_com_19 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 155
//new_clickjogos_com_32 (Stick_Notes_Chick_fla.new_clickjogos_com_32)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class new_clickjogos_com_32 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 156
//new_flashgames_ru_38 (Stick_Notes_Chick_fla.new_flashgames_ru_38)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class new_flashgames_ru_38 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 157
//new_game_co_in_40 (Stick_Notes_Chick_fla.new_game_co_in_40)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class new_game_co_in_40 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 158
//new_games_co_id_42 (Stick_Notes_Chick_fla.new_games_co_id_42)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class new_games_co_id_42 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 159
//new_jeu_fr_28 (Stick_Notes_Chick_fla.new_jeu_fr_28)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class new_jeu_fr_28 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 160
//new_spel_se_35 (Stick_Notes_Chick_fla.new_spel_se_35)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class new_spel_se_35 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 161
//new_spielen_com_30 (Stick_Notes_Chick_fla.new_spielen_com_30)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class new_spielen_com_30 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 162
//new_zapjuegos_com_24 (Stick_Notes_Chick_fla.new_zapjuegos_com_24)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class new_zapjuegos_com_24 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 163
//newagame_co_uk_76 (Stick_Notes_Chick_fla.newagame_co_uk_76)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class newagame_co_uk_76 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 164
//newspel_nl_26 (Stick_Notes_Chick_fla.newspel_nl_26)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class newspel_nl_26 extends MovieClip {
public var displayArea_mc:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 165
//PTS_2 (Stick_Notes_Chick_fla.PTS_2)
package Stick_Notes_Chick_fla {
import flash.display.*;
import flash.text.*;
public dynamic class PTS_2 extends MovieClip {
public var ptstext:TextField;
}
}//package Stick_Notes_Chick_fla
Section 166
//SHENGYINOK_94 (Stick_Notes_Chick_fla.SHENGYINOK_94)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class SHENGYINOK_94 extends MovieClip {
public var musicCd:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 167
//Symbol1_210 (Stick_Notes_Chick_fla.Symbol1_210)
package Stick_Notes_Chick_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol1_210 extends MovieClip {
public var combotext:TextField;
}
}//package Stick_Notes_Chick_fla
Section 168
//Symbol7_141 (Stick_Notes_Chick_fla.Symbol7_141)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class Symbol7_141 extends MovieClip {
public var eyes:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 169
//time_136 (Stick_Notes_Chick_fla.time_136)
package Stick_Notes_Chick_fla {
import flash.display.*;
import flash.text.*;
public dynamic class time_136 extends MovieClip {
public var timeText:TextField;
}
}//package Stick_Notes_Chick_fla
Section 170
//Timeline_230 (Stick_Notes_Chick_fla.Timeline_230)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class Timeline_230 extends MovieClip {
public var percent_textc2:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 171
//Timeline_87 (Stick_Notes_Chick_fla.Timeline_87)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class Timeline_87 extends MovieClip {
public var papercountchild:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 172
//Timeline_88 (Stick_Notes_Chick_fla.Timeline_88)
package Stick_Notes_Chick_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_88 extends MovieClip {
public var papercounttext:TextField;
}
}//package Stick_Notes_Chick_fla
Section 173
//Timeline_91 (Stick_Notes_Chick_fla.Timeline_91)
package Stick_Notes_Chick_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_91 extends MovieClip {
public var remaintime:TextField;
}
}//package Stick_Notes_Chick_fla
Section 174
//TOTALSCOREcopy_12 (Stick_Notes_Chick_fla.TOTALSCOREcopy_12)
package Stick_Notes_Chick_fla {
import flash.display.*;
import flash.text.*;
public dynamic class TOTALSCOREcopy_12 extends MovieClip {
public var totalscore:TextField;
}
}//package Stick_Notes_Chick_fla
Section 175
//YINYUEOK_96 (Stick_Notes_Chick_fla.YINYUEOK_96)
package Stick_Notes_Chick_fla {
import flash.display.*;
public dynamic class YINYUEOK_96 extends MovieClip {
public var soundCd:MovieClip;
}
}//package Stick_Notes_Chick_fla
Section 176
//Attach (tool.Attach)
package tool {
import flash.display.*;
import flash.media.*;
import flash.utils.*;
public class Attach {
public static function getSound(_arg1:String):Sound{
var _local2:Class;
var _local3:Sound;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function getMovieClip(_arg1:String):MovieClip{
var _local2:Class;
var _local3:MovieClip;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function getSprite(_arg1:String):Sprite{
var _local2:Class;
var _local3:Sprite;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function getBitmapData(_arg1:String):BitmapData{
var _local2:Class;
var _local3:BitmapData;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new _local2(null, null);
return (_local3);
}
}
}//package tool
Section 177
//GC (tool.GC)
package tool {
import flash.net.*;
public class GC {
public static function clear():void{
try {
new LocalConnection().connect("haha");
new LocalConnection().connect("haha");
} catch(error:Error) {
};
}
}
}//package tool
Section 178
//SoundsManager (tool.SoundsManager)
package tool {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class SoundsManager {
private const VALUE_FADE:Number = 0.02;
private var fadeInTimer:Timer;
private var curMusic_sc:SoundChannel;
private var curMusic_so:Sound;
private var valueSound:Number;
private var valueGroupSound:Number;
private var curMusic_st:String;
private var fadeTimes:int;
private var fadeInLabel:String;
private var valueMusic:Number;
private var fadeOutTimer:Timer;
private var enabled:Boolean;
private var soundArr:Array;
private var musicEnabled:Boolean;
private var currGroupSoundId:int;
private var groupSoundArr:Array;
private var pausePos:Number;
private static var instance:SoundsManager;
public function SoundsManager(){
init();
}
private function initGroupSound():void{
var _local1:Object;
_local1 = groupSoundArr[currGroupSoundId];
_local1["soundChannel"] = _local1["sound"].play(0, 0, new SoundTransform(valueGroupSound));
initGroupSoundChannelEvent(_local1["soundChannel"]);
}
public function set ValueSound(_arg1:Number):void{
var _local2:int;
var _local3:SoundTransform;
valueSound = _arg1;
if (soundArr != null){
_local2 = 0;
while (_local2 < soundArr.length) {
_local3 = soundArr[_local2]["soundChannel"].soundTransform;
_local3.volume = _arg1;
soundArr[_local2]["soundChannel"].soundTransform = _local3;
_local2++;
};
};
}
private function initFadeOutTimer():void{
fadeOutTimer = new Timer((fadeTimes / (valueMusic / VALUE_FADE)));
fadeOutTimer.addEventListener(TimerEvent.TIMER, fadeOut);
fadeOutTimer.start();
}
public function set ValueGroupSound(_arg1:Number):void{
var _local2:SoundTransform;
valueGroupSound = _arg1;
if (groupSoundArr != null){
_local2 = groupSoundArr[currGroupSoundId]["soundChannel"].soundTransform;
_local2.volume = _arg1;
groupSoundArr[currGroupSoundId]["soundChannel"].soundTransform = _local2;
};
}
private function remSoundArr(_arg1:SoundChannel):void{
var _local2:Object;
var _local3:int;
_local3 = 0;
while (_local3 < soundArr.length) {
_local2 = soundArr[_local3];
if (_local2["soundChannel"] == _arg1){
_local2["soundChannel"].stop();
_local2["label"] = null;
_local2["sound"] = null;
_local2["soundChannel"] = null;
soundArr.splice(_local3, 1);
};
_local3++;
};
}
public function get ValueGroupSound():Number{
return (valueGroupSound);
}
public function get FadeTimes():int{
return (fadeTimes);
}
public function fadeOutMusic():void{
if (curMusic_sc != null){
startFadeOut();
};
}
public function set FadeTimes(_arg1:int):void{
fadeTimes = _arg1;
}
public function stopAllSound():void{
var _local1:int;
_local1 = 0;
while (_local1 < soundArr.length) {
delSound(soundArr[_local1]["soundChannel"]);
_local1++;
};
}
private function addSoundArr(_arg1:Object):void{
soundArr.push(_arg1);
}
public function overOldSound(_arg1:String, _arg2:Number, _arg3:int=0):void{
var _local4:Boolean;
var _local5:Object;
var _local6:int;
if (enabled){
_local4 = false;
_local6 = 0;
while (_local6 < soundArr.length) {
_local5 = soundArr[_local6];
if (_local5["label"] == _arg1){
_local4 = true;
break;
};
_local6++;
};
if (_local4){
delSound(_local5["soundChannel"]);
};
playSound(_arg1, _arg2, _arg3);
};
}
private function init():void{
FadeTimes = 1000;
Enabled = true;
MusicEnable = true;
ValueMusic = 1;
ValueSound = 2;
valueGroupSound = 2;
soundArr = new Array();
groupSoundArr = new Array();
}
public function set MusicEnable2(_arg1:Boolean):void{
musicEnabled = _arg1;
}
private function startFadeIn(_arg1:String):void{
initMusic(_arg1, 0);
initFadeInTimer();
}
public function set ValueMusic(_arg1:Number):void{
var _local2:SoundTransform;
valueMusic = _arg1;
if (curMusic_sc != null){
_local2 = curMusic_sc.soundTransform;
_local2.volume = _arg1;
curMusic_sc.soundTransform = _local2;
};
}
private function stopFadeIn():void{
var _local1:SoundTransform;
_local1 = curMusic_sc.soundTransform;
_local1.volume = valueMusic;
curMusic_sc.soundTransform = _local1;
delFadeInTimer();
}
public function playGroupSound(_arg1:Array, _arg2:Number, _arg3:int):void{
var _local4:int;
var _local5:Object;
if (enabled){
currGroupSoundId = _arg3;
valueGroupSound = _arg2;
_local4 = 0;
while (_local4 < _arg1.length) {
_local5 = new Object();
_local5["label"] = _arg1[_local4];
_local5["sound"] = Attach.getSound(_arg1[_local4]);
groupSoundArr.push(_local5);
_local4++;
};
initGroupSound();
};
}
public function stopSound(_arg1:String):void{
var _local2:Object;
var _local3:int;
_local3 = 0;
while (_local3 < soundArr.length) {
_local2 = soundArr[_local3];
if (_local2["label"] == _arg1){
delSound(_local2["soundChannel"]);
break;
};
_local3++;
};
}
public function get Enabled():Boolean{
return (enabled);
}
public function set setCurMusic_st(_arg1:String):void{
curMusic_st = _arg1;
}
private function delGroupSoundChannelEvent(_arg1:SoundChannel):void{
if (_arg1 != null){
_arg1.removeEventListener(Event.SOUND_COMPLETE, groupSoundCompleteHandler);
};
}
public function playSound(_arg1:String, _arg2:Number, _arg3:int=0):void{
trace(_arg1);
if (enabled){
initSound(_arg1, _arg2, _arg3);
};
}
public function get ValueSound():Number{
return (valueSound);
}
public function overNewSound(_arg1:String, _arg2:Number, _arg3:int=0):void{
var _local4:Boolean;
var _local5:Object;
var _local6:int;
if (enabled){
_local4 = false;
_local6 = 0;
while (_local6 < soundArr.length) {
_local5 = soundArr[_local6];
if (_local5["label"] == _arg1){
_local4 = true;
break;
};
_local6++;
};
if (!_local4){
playSound(_arg1, _arg2, _arg3);
};
};
}
private function delSound(_arg1:SoundChannel):void{
delSoundChannelEvent(_arg1);
remSoundArr(_arg1);
}
private function fadeIn(_arg1:TimerEvent):void{
var _local2:SoundTransform;
_local2 = curMusic_sc.soundTransform;
_local2.volume = (_local2.volume + VALUE_FADE);
curMusic_sc.soundTransform = _local2;
if (curMusic_sc.soundTransform.volume >= valueMusic){
stopFadeIn();
};
}
public function set Enabled(_arg1:Boolean):void{
enabled = _arg1;
if (_arg1){
} else {
stopAllSound();
};
}
public function stopMusic():void{
if (curMusic_sc != null){
delMusic();
};
}
public function pauseMusic():void{
if (curMusic_sc != null){
pausePos = curMusic_sc.position;
curMusic_sc.stop();
curMusic_sc = null;
};
}
public function set MusicEnable(_arg1:Boolean):void{
musicEnabled = _arg1;
if (curMusic_st != null){
if (_arg1){
restartMusic();
} else {
pauseMusic();
};
};
}
public function playMusic(_arg1:String, _arg2:Number):void{
if (musicEnabled){
if (curMusic_sc != null){
stopMusic();
};
initMusic(_arg1, _arg2);
};
}
private function delGroupSound():void{
var _local1:Object;
_local1 = groupSoundArr[currGroupSoundId];
_local1["soundChannel"].stop();
_local1["soundChannel"] = null;
}
public function restartMusic():void{
curMusic_sc = curMusic_so.play(pausePos, int.MAX_VALUE, new SoundTransform(valueMusic));
if (curMusic_sc == null){
curMusic_sc = curMusic_so.play(1, int.MAX_VALUE, new SoundTransform(valueMusic));
};
pausePos = NaN;
}
private function stopFadeOut():void{
delFadeOutTimer();
delMusic();
if (fadeInLabel != null){
initMusic(fadeInLabel, 0);
initFadeInTimer();
fadeInLabel = null;
};
}
public function overNewMusic(_arg1:String, _arg2:Number):void{
if (((!((curMusic_st == _arg1))) && (musicEnabled))){
playMusic(_arg1, _arg2);
};
}
private function delMusic():void{
curMusic_sc.stop();
curMusic_st = null;
curMusic_so = null;
curMusic_sc = null;
}
public function get ValueMusic():Number{
return (valueMusic);
}
private function delFadeOutTimer():void{
fadeOutTimer.removeEventListener(TimerEvent.TIMER, fadeOut);
fadeOutTimer = null;
}
private function initSound(_arg1:String, _arg2:Number, _arg3:int):void{
var _local4:Object;
_local4 = new Object();
_local4["label"] = _arg1;
_local4["sound"] = Attach.getSound(_arg1);
_local4["soundChannel"] = _local4["sound"].play(0, _arg3, new SoundTransform(_arg2));
if (_local4["soundChannel"] == null){
return;
};
initSoundChannelEvent(_local4["soundChannel"]);
addSoundArr(_local4);
}
private function groupSoundCompleteHandler(_arg1:Event):void{
delGroupSound();
currGroupSoundId++;
if (currGroupSoundId == groupSoundArr.length){
currGroupSoundId--;
};
initGroupSound();
}
private function initMusic2(_arg1:String, _arg2:Number, _arg3:int):void{
curMusic_st = _arg1;
curMusic_so = Attach.getSound(_arg1);
curMusic_sc = curMusic_so.play(0, _arg3, new SoundTransform(_arg2));
}
public function get getCurMusic_st():String{
return (curMusic_st);
}
public function setOneValueSound(_arg1:String, _arg2:Number):void{
var _local3:int;
var _local4:SoundTransform;
_local3 = 0;
while (_local3 < soundArr.length) {
if (_arg1 == soundArr[_local3]["label"]){
_local4 = soundArr[_local3]["soundChannel"].soundTransform;
};
_local4.volume = _arg2;
soundArr[_local3]["soundChannel"].soundTransform = _local4;
_local3++;
};
}
public function playLoopsMusic(_arg1:String, _arg2:Number, _arg3:int=0):void{
if (musicEnabled){
if (curMusic_sc != null){
stopMusic();
};
initMusic2(_arg1, _arg2, _arg3);
};
}
public function fadeInMusic(_arg1:String):void{
if (musicEnabled){
if (curMusic_sc != null){
startFadeOut();
fadeInLabel = _arg1;
} else {
startFadeIn(_arg1);
};
};
}
private function initFadeInTimer():void{
fadeInTimer = new Timer((fadeTimes / (valueMusic / VALUE_FADE)));
fadeInTimer.addEventListener(TimerEvent.TIMER, fadeIn);
fadeInTimer.start();
}
private function initSoundChannelEvent(_arg1:SoundChannel):void{
_arg1.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
}
public function get MusicEnable():Boolean{
return (musicEnabled);
}
private function startFadeOut():void{
initFadeOutTimer();
}
public function stopGroupSound():void{
var _local1:Object;
if (groupSoundArr != null){
_local1 = groupSoundArr[currGroupSoundId];
if (_local1 != null){
delGroupSoundChannelEvent(_local1["soundChannel"]);
delGroupSound();
};
groupSoundArr = new Array();
currGroupSoundId = NaN;
};
}
private function delSoundChannelEvent(_arg1:SoundChannel):void{
_arg1.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
}
public function initMusic(_arg1:String, _arg2:Number):void{
curMusic_st = _arg1;
curMusic_so = Attach.getSound(_arg1);
curMusic_sc = curMusic_so.play(0, int.MAX_VALUE, new SoundTransform(_arg2));
}
private function initGroupSoundChannelEvent(_arg1:SoundChannel):void{
_arg1.addEventListener(Event.SOUND_COMPLETE, groupSoundCompleteHandler);
}
private function fadeOut(_arg1:TimerEvent):void{
var _local2:SoundTransform;
_local2 = curMusic_sc.soundTransform;
_local2.volume = (_local2.volume - VALUE_FADE);
curMusic_sc.soundTransform = _local2;
if (curMusic_sc.soundTransform.volume <= 0){
stopFadeOut();
};
}
private function delFadeInTimer():void{
fadeInTimer.removeEventListener(TimerEvent.TIMER, fadeIn);
fadeInTimer = null;
}
private function soundCompleteHandler(_arg1:Event):void{
delSound((_arg1.target as SoundChannel));
}
public static function getInstance():SoundsManager{
if (instance == null){
instance = new (SoundsManager);
};
return (instance);
}
}
}//package tool
Section 179
//O1OOO0O00 (Util.O1OOO0O00)
package Util {
import flash.net.*;
import flash.external.*;
public class O1OOO0O00 {
private static const _O1lO0Oll1:Array = ["www.a10.com.gp.dev.spilgames.eu", "stg.pl.a10.com", "gamedev.dev.spilgames.com", "www.agame.com", "www.girlsgogames.com", "www.games.co.uk", "www.mygames.co.uk", "www.girlsgogames.co.uk", "www.spel.nl", "www.spelletjes.nl", "www.girlsgogames.nl", "www.jetztspielen.de", "www.spielen.com", "www.girlsgogames.de", "www.jeux.fr", "www.jeu.fr", "www.girlsgogames.fr", "www.juegos.com", "www.zapjuegos.com", "www.juegosdechicas.com", "www.gioco.it", "www.giocaregratis.it", "www.girlsgogames.it", "www.gry.pl", "www.minigry.pl", "www.girlsgogames.pl", "www.spela.se", "www.spel.eu", "www.girlsgogames.se", "www.ojogos.pt", "www.ourgames.ru", "www.flashgames.ru", "www.girlsgogames.ru", "www.oyunlar123.com", "www.asoyun.com", "www.girlsgogamestr.com", "www.gamesgames.com", "www.agame.com", "www.girlsgogames.com", "www.juegos.com", "www.zapjuegos.com", "www.juegosdechicas.com", "www.ojogos.com.br", "www.clickjogos.com", "www.girlsgogames.com.br", "www.game.com.cn", "www.xiaoyouxi.com", "www.egames.jp", "www.game.co.in", "www.game.co.in", "www.girlsgogames.in", "www.games.co.id", "www.laro.com.ph", "www.game.com.my", "www.onrpg.com", "www.zlonggames.com", "www.a10.com", "localhost"];
private static var _OOl10ll1l:URLRequest;
private static var _O0Oll0l00;
public function O1OOO0O00():void{
super();
try {
_O0Oll0l00 = ExternalInterface.call("window.location.href.toString");
} catch(e) {
_O0Oll0l00 = "error";
};
if ((((_O0Oll0l00 == null)) || ((_O0Oll0l00 == "")))){
_O0Oll0l00 = "error";
};
if (String(_O0Oll0l00).indexOf(".swf") != -1){
_O0Oll0l00 = "error";
};
}
public function O0111l110():Boolean{
if (((!((_O001llOll(_O11ll1l00(_O0Oll0l00)) == -1))) && (!((_O0Oll0l00 == "error"))))){
return (true);
};
return (false);
}
private static function _O11ll1l00(_arg1:String):String{
var _local2:String = new String();
var _local3:uint = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
return (_local2);
}
private static function _O001llOll(_arg1:String):Number{
var _local2:uint;
if (((_O1lO0Oll1) && (_arg1))){
_local2 = 0;
while (_local2 < _O1lO0Oll1.length) {
if (_arg1 == _O1lO0Oll1[_local2]){
return (_local2);
};
_local2++;
};
return (-1);
} else {
trace("cannot find site name");
};
return (-1);
}
}
}//package Util
Section 180
//Countries (zlong.country.Countries)
package zlong.country {
import zlong.country.*;
class Countries {
private var _countryGroup:Array;
private var _portal:String;
private var _portalGroup:Array;
private var _countries:Object;
private var _country:String;
function Countries(){
initPortalGroup();
}
private function initPortalGroup():void{
var _local1:int;
_portalGroup = new Array();
_local1 = 0;
while (_local1 < CountriesData.DATA.children().length()) {
_portalGroup.push(CountriesData.DATA.children()[_local1].name());
_local1++;
};
}
private function initCountries():void{
var _local1:CountryItem;
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:int;
_countries = new Object();
_countryGroup = new Array();
_local6 = 0;
while (_local6 < CountriesData.DATA[_portal]["country"].length()) {
_local2 = CountriesData.DATA[_portal]["country"][_local6].@name;
_local3 = CountriesData.DATA[_portal]["country"][_local6].@domain;
_local4 = CountriesData.DATA[_portal]["country"][_local6].@game;
_local5 = int(CountriesData.DATA[_portal]["country"][_local6].@language);
_local1 = new CountryItem();
_local1.name = _local2;
_local1.domain = _local3;
_local1.game = _local4;
_local1.language = _local5;
_countries[_local1.name] = _local1;
_countryGroup.push(_local2);
_local6++;
};
}
function get countryGroup():Array{
if (_countryGroup == null){
throw (new ArgumentError("Please set portal"));
};
return (_countryGroup);
}
function set country(_arg1:String):void{
if (((!((_countryGroup == null))) && (!(inArray(_arg1, _countryGroup))))){
_country = _countryGroup[0];
trace(("Error in the country value,set country with default value : " + _countryGroup[0]));
trace(("Please set country with value : " + _countryGroup.toString()));
} else {
_country = _arg1;
};
}
function set portal(_arg1:String):void{
if (!inArray(_arg1, _portalGroup)){
throw (new ArgumentError(("Please set portal with value : " + _portalGroup.toString())));
};
_portal = _arg1;
initCountries();
if (((!((_country == null))) && (!(inArray(_country, _countryGroup))))){
throw (new ArgumentError(("Please reset country with value : " + _countryGroup.toString())));
};
}
function get current():CountryItem{
if (_portal == null){
throw (new ArgumentError("Please set portal"));
};
if (_country == null){
throw (new ArgumentError("Please set country"));
};
return (_countries[_country]);
}
private function inArray(_arg1:String, _arg2:Array):Boolean{
var _local3:int;
_local3 = 0;
while (_local3 < _arg2.length) {
if (_arg1 == _arg2[_local3]){
return (true);
};
_local3++;
};
return (false);
}
}
}//package zlong.country
Section 181
//CountriesData (zlong.country.CountriesData)
package zlong.country {
class CountriesData {
static const DATA:XML = <data>
<family>
<!-- new -->
<country name="ar" domain="www.dailygame.com" game="game" language="1"/><!-- Arabic(English US) 2009.07.14-->
<country name="br" domain="www.ojogos.com.br" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="17"/><!-- Chinese -->
<country name="de" domain="www.jetztspielen.de" game="spiel" language="5"/><!-- German -->
<country name="es" domain="www.juegos.com" game="juego" language="6"/><!-- Spanish -->
<country name="fr" domain="www.jeux.fr" game="jeu" language="4"/><!-- French -->
<country name="id" domain="www.games.co.id" game="permainanme" language="14"/><!-- Indonesian -->
<country name="in" domain="www.game.co.in" game="game" language="2"/><!-- English UK -->
<country name="it" domain="www.gioco.it" game="gioco" language="9"/><!-- Italian -->
<country name="jp" domain="www.egames.jp" game="game" language="16"/><!-- Japanese -->
<country name="nl" domain="www.spelletjes.nl" game="spel" language="3"/><!-- Dutch -->
<country name="pl" domain="www.gry.pl" game="gra" language="11"/><!-- Polish -->
<country name="pt" domain="www.ojogos.pt" game="jogo" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.ourgames.ru" game="igra" language="12"/><!-- Russian -->
<country name="se" domain="www.spela.se" game="spel_" language="10"/><!-- Swedish -->
<country name="en_uk" domain="www.games.co.uk" game="game" language="2"/><!-- English UK -->
<country name="en_us" domain="www.gamesgames.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
<!-- country name="ph" domain="www.laro.com.ph" game="game" language="2"/ --><!-- English UK -->
<!-- country name="tr" domain="www.asoyun.com" game="oyun" language="13"/ --><!-- Turkish -->
<!-- country name="my" domain="www.game.com.my" game="permainan_" language="15"/ --><!-- Malaysian -->
</family>
<tween>
<!-- new -->
<country name="ar" domain="www.dailygame.com" game="game" language="1"/><!-- Arabic(English US) 2009.07.14 -->
<country name="br" domain="www.clickjogos.com" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="17"/><!-- Chinese -->
<country name="de" domain="www.spielen.com" game="spiel" language="5"/><!-- German -->
<country name="es" domain="www.zapjuegos.com" game="juego" language="6"/><!-- Spanish -->
<country name="fr" domain="www.jeu.fr" game="jeu" language="4"/><!-- French -->
<country name="id" domain="www.games.co.id" game="permainanme" language="14"/><!-- Indonesian -->
<country name="in" domain="www.game.co.in" game="game" language="2"/><!-- English UK -->
//<!--country name="it" domain="www.giocaregratis.it" game="gioco" language="9"/--><!-- Italian 2009.08.10 -->
<country name="it" domain="www.gioco.it" game="gioco" language="9"/><!-- Italian 2009.08.10 -->
<country name="jp" domain="www.egames.jp" game="game" language="16"/><!-- Japanese -->
<country name="nl" domain="www.spel.nl" game="spel" language="3"/><!-- Dutch -->
//<!--country name="pl" domain="www.minigry.pl" game="gra" language="11"/--><!-- Polish 2009.08.10 -->
<country name="pl" domain="www.gry.pl" game="gra" language="11"/><!-- Polish 2009.08.10-->
<country name="pt" domain="www.ojogos.pt" game="jogo" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.flashgames.ru" game="igra" language="12"/><!-- Russian -->
<country name="se" domain="www.spel.se" game="spel_" language="10"/><!-- Swedish -->
//<!--country name="en_uk" domain="www.mygames.co.uk" game="game" language="2"/--><!-- English UK 2009.08.28-->
<country name="en_uk" domain="www.agame.co.uk" game="game" language="2"/><!-- English UK 2009.08.28-->
<country name="en_us" domain="www.agame.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
<!-- country name="ph" domain="www.laro.com.ph" game="game" language="2"/ --><!-- English UK -->
<!-- country name="tr" domain="www.asoyun.com" game="oyun" language="13"/ --><!-- Turkish -->
<!-- country name="my" domain="www.game.com.my" game="permainan_" language="15"/ --><!-- Malaysian -->
</tween>
<girl>
<!-- new -->
<country name="ar" domain="www.dailygame.com" game="game" language="1"/><!-- Arabic(English US) 2009.07.14-->
<country name="br" domain="www.girlsgogames.com.br" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="17"/><!-- Chinese -->
<country name="de" domain="www.girlsgogames.de" game="spiel" language="5"/><!-- German -->
<country name="es" domain="www.girlsgogames.es" game="juego" language="6"/><!-- Spanish -->
<country name="fr" domain="www.girlsgogames.fr" game="jeu" language="4"/><!-- French -->
<country name="id" domain="www.games.co.id" game="permainanme" language="14"/><!-- Indonesian -->
<country name="it" domain="www.girlsgogames.it" game="gioco" language="9"/><!-- Italian -->
<country name="jp" domain="www.egames.jp" game="game" language="16"/><!-- Japanese -->
<country name="nl" domain="www.girlsgogames.nl" game="spel" language="3"/><!-- Dutch -->
<country name="pl" domain="www.girlsgogames.pl" game="gra" language="11"/><!-- Polish -->
<country name="pt" domain="www.ojogos.pt" game="jogo" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.girlsgogames.ru" game="igra" language="12"/><!-- Russian -->
<country name="se" domain="www.girlsgogames.se" game="spel_" language="10"/><!-- Swedish -->
<country name="en_uk" domain="www.girlsgogames.co.uk" game="game" language="2"/><!-- English UK -->
<country name="en_us" domain="www.girlsgogames.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
<!-- country name="ph" domain="www.laro.com.ph" game="game" language="2"/ --><!-- English UK -->
<!-- country name="in" domain="www.girlsgogames.in" game="game" language="2"/ --><!-- English UK -->
<!-- country name="tr" domain="www.girlsgogamestr.com" game="oyun" language="13"/ --><!-- Turkish -->
<!-- country name="my" domain="www.game.com.my" game="permainan_" language="15"/ --><!-- Malaysian -->
</girl>
<teen>
<!-- new -->
<country name="ar" domain="www.dailygame.com" game="game" language="1"/><!-- Arabic(English US) 2009.07.14-->
<country name="br" domain="www.a10.com" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="17"/><!-- Chinese -->
<country name="de" domain="www.a10.com" game="spiel" language="5"/><!-- German -->
<country name="es" domain="www.a10.com" game="juego" language="6"/><!-- Spanish -->
<country name="fr" domain="www.a10.com" game="jeu" language="4"/><!-- French -->
<country name="id" domain="www.a10.com" game="permainanme" language="14"/><!-- Indonesian -->
<country name="in" domain="www.a10.com" game="game" language="2"/><!-- English UK -->
<country name="it" domain="www.a10.com" game="gioco" language="9"/><!-- Italian -->
<country name="jp" domain="www.a10.com" game="game" language="16"/><!-- Japanese -->
<country name="nl" domain="www.a10.com" game="spel" language="3"/><!-- Dutch -->
<country name="pl" domain="www.a10.com" game="gra" language="11"/><!-- Polish -->
<country name="pt" domain="www.a10.com" game="jogo" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.a10.com" game="igra" language="12"/><!-- Russian -->
<country name="se" domain="www.a10.com" game="spel_" language="10"/><!-- Swedish -->
<country name="en_uk" domain="www.a10.com" game="game" language="2"/><!-- English UK -->
<country name="en_us" domain="www.a10.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
<!-- country name="ph" domain="www.a10.com" game="game" language="2"/ --><!-- English UK -->
<!-- country name="tr" domain="www.a10.com" game="oyun" language="13"/ --><!-- Turkish -->
<!-- country name="my" domain="www.a10.com" game="permainan_" language="15"/ --><!-- Malaysian -->
</teen>
</data>
;
}
}//package zlong.country
Section 182
//CountryInfo (zlong.country.CountryInfo)
package zlong.country {
import zlong.domain.*;
import zlong.data.*;
public class CountryInfo {
private var countries:Countries;
private static var _instance:CountryInfo;
public function CountryInfo(){
countries = new Countries();
}
public function get domain():String{
return (countries.current.domain);
}
public function get countryGroup():Array{
return (countries.countryGroup);
}
public function get thisGameLink():String{
var _local1:String;
if (countries.current.name != "cn"){
_local1 = ("http://" + domain);
_local1 = (_local1 + ((("/" + countries.current.game) + "/") + GameInfo.html));
_local1 = (_local1 + ("?utm_medium=brandedgames_" + (DomainInfo.instance.allowed) ? "internal" : "external"));
_local1 = (_local1 + ("&utm_campaign=" + GameInfo.name));
_local1 = (_local1 + ("&utm_source=" + DomainInfo.instance.domainAb));
};
return (_local1);
}
public function set country(_arg1:String):void{
countries.country = _arg1;
}
public function get moreGameLink():String{
var _local1:String;
_local1 = ("http://" + domain);
if (countries.current.name != "cn"){
_local1 = (_local1 + "/");
_local1 = (_local1 + ("?utm_medium=brandedgames_" + (DomainInfo.instance.allowed) ? "internal" : "external"));
_local1 = (_local1 + ("&utm_campaign=" + GameInfo.name));
_local1 = (_local1 + ("&utm_source=" + DomainInfo.instance.domainAb));
} else {
_local1 = (_local1 + "/");
_local1 = (_local1 + "moregames");
_local1 = (_local1 + "/");
};
return (_local1);
}
public function get country():String{
return (countries.current.name);
}
public function set portal(_arg1:String):void{
countries.portal = _arg1;
}
public function get sendToFriendLink():String{
var _local1:String;
_local1 = thisGameLink;
if (countries.current.name != "cn"){
_local1 = (_local1 + "&utm_content=send_to_friend");
};
return (_local1);
}
public function get language():int{
return (countries.current.language);
}
public static function get instance():CountryInfo{
if (_instance == null){
_instance = new (CountryInfo);
};
return (_instance);
}
}
}//package zlong.country
Section 183
//CountryItem (zlong.country.CountryItem)
package zlong.country {
final class CountryItem {
var domain:String;
var game:String;
var language:int;
var name:String;
}
}//package zlong.country
Section 184
//CountryCookie (zlong.data.CountryCookie)
package zlong.data {
import flash.net.*;
public class CountryCookie {
private static const countryName:String = "savedLang";
private static const name:String = "spilgames_language_v100";
private static var so:SharedObject;
public function CountryCookie():void{
so = SharedObject.getLocal(name, "/");
}
public static function set country(_arg1:String):void{
so.data[countryName] = _arg1;
}
public static function get country():String{
return (so.data[countryName]);
}
}
}//package zlong.data
Section 185
//GameInfo (zlong.data.GameInfo)
package zlong.data {
public class GameInfo {
public static var width:int = 550;
public static var height:int = 400;
public static var html:String = "Game-Name.html";
public static var cnversion:Boolean = false;
public static var name:String = "game_name";
public static var portal:String = "family";
}
}//package zlong.data
Section 186
//Copyright (zlong.display.Copyright)
package zlong.display {
import flash.events.*;
import flash.display.*;
import zlong.navigate.*;
public class Copyright extends MovieClip {
public function Copyright(){
this.stop();
this.buttonMode = true;
this.mouseChildren = false;
initEvent();
}
private function mouseUpHandler(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function rollOverHandler(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function mouseDownHandler(_arg1:MouseEvent):void{
this.gotoAndStop(3);
}
private function initEvent():void{
this.addEventListener(MouseEvent.CLICK, Handler.click_copyright);
this.addEventListener(MouseEvent.ROLL_OVER, rollOverHandler);
this.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
this.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
this.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
this.addEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
}
private function delEvent():void{
this.removeEventListener(MouseEvent.CLICK, Handler.click_copyright);
this.removeEventListener(MouseEvent.ROLL_OVER, rollOverHandler);
this.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
this.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
this.removeEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
this.removeEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
}
private function rollOutHandler(_arg1:MouseEvent):void{
this.gotoAndStop(1);
}
private function removeFromStageHandler(_arg1:Event):void{
delEvent();
}
}
}//package zlong.display
Section 187
//Dispatcher (zlong.display.Dispatcher)
package zlong.display {
import flash.events.*;
class Dispatcher {
static const LANGUAGE_CHANGED:String = "languageChanged";
static var dispatcher:EventDispatcher = new EventDispatcher();
static function langChanged():void{
dispatcher.dispatchEvent(new Event(LANGUAGE_CHANGED));
}
}
}//package zlong.display
Section 188
//ExtButton (zlong.display.ExtButton)
package zlong.display {
import flash.events.*;
import flash.display.*;
import zlong.navigate.*;
public class ExtButton extends MovieClip {
private var _type:String;// = "moregames"
private var _position:String;// = "button_preloader"
public function ExtButton(){
_type = "moregames";
_position = "button_preloader";
super();
this.stop();
this.buttonMode = true;
this.mouseChildren = false;
initEvent();
}
private function mouseUpHandler(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function rollOverHandler(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function mouseDownHandler(_arg1:MouseEvent):void{
this.gotoAndStop(3);
}
public function set position(_arg1:String):void{
_position = _arg1;
}
private function initEvent():void{
this.addEventListener(MouseEvent.CLICK, clickHandler);
this.addEventListener(MouseEvent.ROLL_OVER, rollOverHandler);
this.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
this.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
this.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
this.addEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
}
public function set type(_arg1:String):void{
_type = _arg1;
}
private function delEvent():void{
this.removeEventListener(MouseEvent.CLICK, clickHandler);
this.removeEventListener(MouseEvent.ROLL_OVER, rollOverHandler);
this.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
this.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
this.removeEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
this.removeEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
}
private function rollOutHandler(_arg1:MouseEvent):void{
this.gotoAndStop(1);
}
private function clickHandler(_arg1:MouseEvent):void{
if (_type == "moregames"){
Handler.click_moregames(_position);
} else {
Handler.click_thisgame(_position);
};
}
private function removeFromStageHandler(_arg1:Event):void{
delEvent();
}
}
}//package zlong.display
Section 189
//Logo (zlong.display.Logo)
package zlong.display {
import flash.events.*;
import flash.display.*;
import zlong.country.*;
import zlong.navigate.*;
public class Logo extends MovieClip {
private const MAX_WIDTH:int = 200;
private const Max_HEIGHT:int = 50;
private var _maxHeight:Number;// = 40
private var _maxWidth:Number;// = 150
public var displayArea_mc:MovieClip;
private var _hitArea:Sprite;
private var _position:String;// = "logo_preloader"
private var _alignVertical:String;// = "Center"
private var _alignHorizontal:String;// = "Center"
public function Logo(){
_position = "logo_preloader";
_alignHorizontal = "Center";
_alignVertical = "Center";
_maxWidth = 150;
_maxHeight = 40;
super();
initDis();
addEventListener(Event.ADDED_TO_STAGE, initEvent, false, 0, true);
}
private function destroy():void{
delDis();
delEvent();
}
private function updateView():void{
var _local1:Sprite;
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local1 = (this.getChildAt(0) as Sprite);
_local1.scaleX = 1;
_local1.scaleY = 1;
_local2 = (_maxHeight / _local1.height);
_local3 = (_maxWidth / _local1.width);
_local4 = ((_local2 > _local3)) ? _local3 : _local2;
_local1.scaleX = _local4;
_local1.scaleY = _local4;
switch (_alignHorizontal){
case "Left":
_local1.x = 0;
break;
case "Right":
_local1.x = (MAX_WIDTH - _local1.width);
break;
case "Center":
_local1.x = ((MAX_WIDTH - _local1.width) / 2);
break;
};
switch (_alignVertical){
case "Up":
_local1.y = 0;
break;
case "Down":
_local1.y = (Max_HEIGHT - _local1.height);
break;
case "Center":
_local1.y = ((Max_HEIGHT - _local1.height) / 2);
break;
};
_hitArea.width = _local1.width;
_hitArea.height = _local1.height;
_hitArea.x = _local1.x;
_hitArea.y = _local1.y;
}
public function set alignHorizontal(_arg1:String):void{
_alignHorizontal = _arg1;
}
public function set alignVertical(_arg1:String):void{
_alignVertical = _arg1;
}
private function langChangeHandler(_arg1:Event):void{
gotoAndStop(CountryInfo.instance.domain);
}
public function set maxHeight(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
} else {
if (_arg1 > Max_HEIGHT){
_arg1 = Max_HEIGHT;
};
};
_maxHeight = _arg1;
}
public function set position(_arg1:String):void{
_position = _arg1;
}
private function initDis():void{
var _local1:int;
buttonMode = true;
_hitArea = new Sprite();
this.addChild(_hitArea);
_hitArea.graphics.beginFill(3368601, 0);
_hitArea.graphics.drawRect(0, 0, 10, 10);
_hitArea.graphics.endFill();
this["displayArea_mc"].visible = false;
_local1 = 0;
while (_local1 < this.totalFrames) {
this.addFrameScript(_local1, updateView);
_local1++;
};
gotoAndStop(CountryInfo.instance.domain);
}
private function initEvent(_arg1:Event=null):void{
this.addEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
this.addEventListener(MouseEvent.CLICK, clickHandler);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, langChangeHandler);
}
private function delEvent():void{
this.removeEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
this.removeEventListener(MouseEvent.CLICK, clickHandler);
Dispatcher.dispatcher.removeEventListener(Dispatcher.LANGUAGE_CHANGED, langChangeHandler);
}
private function delDis():void{
stop();
}
public function set maxWidth(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
} else {
if (_arg1 > MAX_WIDTH){
_arg1 = MAX_WIDTH;
};
};
_maxWidth = _arg1;
}
private function clickHandler(_arg1:MouseEvent):void{
Handler.click_moregames(_position);
}
private function removeFromStageHandler(_arg1:Event):void{
destroy();
}
}
}//package zlong.display
Section 190
//Menu (zlong.display.Menu)
package zlong.display {
import flash.events.*;
import flash.display.*;
import zlong.country.*;
import zlong.navigate.*;
import flash.ui.*;
public class Menu {
private var displayObject:InteractiveObject;
private var item:ContextMenuItem;
private var menu:ContextMenu;
public function Menu(_arg1:InteractiveObject){
displayObject = _arg1;
init();
initEvent();
}
private function changeLang(_arg1:Event):void{
item.caption = CountryInfo.instance.domain;
}
private function initEvent():void{
item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, clickItemHandler);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, changeLang);
}
private function init():void{
var _local1:ContextMenuBuiltInItems;
menu = new ContextMenu();
menu.hideBuiltInItems();
_local1 = menu.builtInItems;
_local1.print = true;
_local1.zoom = true;
_local1.quality = true;
item = new ContextMenuItem(("MoreGame: " + CountryInfo.instance.domain));
menu.customItems.push(item);
displayObject.contextMenu = menu;
}
private function clickItemHandler(_arg1:ContextMenuEvent):void{
Handler.click_moregames("Contex_Menu");
}
}
}//package zlong.display
Section 191
//DomainData (zlong.domain.DomainData)
package zlong.domain {
final class DomainData {
static const allowedDomain:Array = ["www8.agame.com", "www.zlonggamestest.com", "gamedev.dev.spilgames.com", "localhost"];
}
}//package zlong.domain
Section 192
//DomainInfo (zlong.domain.DomainInfo)
package zlong.domain {
import flash.net.*;
public final class DomainInfo {
private var _domain:String;
private var _domainAb:String;
private var _allowed:Boolean;
private static var _instance:DomainInfo;
public function DomainInfo(){
_domain = new LocalConnection().domain;
initAllowed();
initAb();
}
public function get domainAb():String{
return (_domainAb);
}
public function get allowed():Boolean{
return (_allowed);
}
public function get domain():String{
return (_domain);
}
private function initAb():void{
var _local1:Array;
var _local2:int;
var _local3:int;
if (_domain != "localhost"){
_local1 = _domain.split(".");
_local2 = (_local1.length - 1);
_local3 = (_local1.length - 2);
_domainAb = ((_local1[_local3] + ".") + _local1[_local2]);
} else {
_domainAb = "offline_play";
};
}
private function initAllowed():void{
var _local1:int;
_local1 = 0;
while (_local1 < DomainData.allowedDomain.length) {
if (_domain == DomainData.allowedDomain[_local1]){
_allowed = true;
break;
};
_local1++;
};
}
public static function get instance():DomainInfo{
if (_instance == null){
_instance = new (DomainInfo);
};
return (_instance);
}
}
}//package zlong.domain
Section 193
//Handler (zlong.navigate.Handler)
package zlong.navigate {
import flash.net.*;
import flash.events.*;
import zlong.country.*;
import flash.external.*;
public class Handler {
public static function click_copyright(_arg1:Event=null):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest("http://www.game.com.cn");
} else {
_local2 = new URLRequest("http://www.gameportal.net");
};
navigateToURL(_local2, "_blank");
}
public static function refurbish(_arg1:Event=null):void{
var e = _arg1;
try {
ExternalInterface.call("location.reload");
navigateToURL(new URLRequest(ExternalInterface.call("window.location.href.toString")), "_top");
} catch(myError:Error) {
};
}
public static function click_gamecn(_arg1:Event=null):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.game.com.cn");
navigateToURL(_local2, "_blank");
}
public static function click_moregames(_arg1:String):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.moreGameLink);
} else {
_local2 = new URLRequest(((CountryInfo.instance.moreGameLink + "&utm_content=") + _arg1));
};
navigateToURL(_local2, "_blank");
}
public static function click_thisgame(_arg1:String):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.moreGameLink);
} else {
_local2 = new URLRequest(((CountryInfo.instance.thisGameLink + "&utm_content=") + _arg1));
};
navigateToURL(_local2, "_blank");
}
}
}//package zlong.navigate
Section 194
//SiteData (zlong.site.SiteData)
package zlong.site {
public final class SiteData {
public static const URL:String = "http://www8.agame.com/games/sitelock/sites.xml";
public static var allowedSite:XML;
}
}//package zlong.site
Section 195
//SiteInfo (zlong.site.SiteInfo)
package zlong.site {
import zlong.data.*;
import flash.external.*;
public class SiteInfo {
private var _domain:String;
private var _allowed:Boolean;
private var _html:String;
private var _sites:Array;
private var _link:String;
private static var _instance:SiteInfo;
public function SiteInfo():void{
initSites();
_link = getURL();
_html = getHtml(_link);
_domain = getDomain(_link);
_allowed = check(_domain, _sites);
}
private function getURL():String{
var loc:String;
try {
loc = ExternalInterface.call("window.location.href.toString");
} catch(e) {
loc = "error";
};
if ((((loc == null)) || ((loc == "")))){
loc = "error";
};
if (String(loc).indexOf(".swf") != -1){
loc = "error";
};
return (loc);
}
public function get domain():String{
return (_domain);
}
public function get allowed():Boolean{
if (GameInfo.cnversion){
return (true);
};
return (_allowed);
}
public function get html():String{
return (_html);
}
private function getDomain(_arg1:String):String{
var _local2:String;
var _local3:uint;
_local2 = "";
_local3 = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
return (_local2);
}
private function getHtml(_arg1:String):String{
var _local2:int;
_local2 = _arg1.indexOf("?");
if (_local2 != -1){
return (_arg1);
};
return (_arg1.substr(0, _local2));
}
private function check(_arg1:String, _arg2:Array):Boolean{
var _local3:uint;
_local3 = 0;
while (_local3 < _arg2.length) {
if (_arg1 == _arg2[_local3]){
return (true);
};
_local3++;
};
return (false);
}
public function get link():String{
return (_link);
}
private function initSites():void{
var _local1:XMLList;
var _local2:int;
_sites = new Array();
if (SiteData.allowedSite != null){
_local1 = SiteData.allowedSite.child("item");
_local2 = 0;
while (_local2 < _local1.length()) {
_sites.push(_local1[_local2]);
_local2++;
};
};
}
public static function get instance():SiteInfo{
if (_instance == null){
_instance = new (SiteInfo);
};
return (_instance);
}
}
}//package zlong.site
Section 196
//MyCookie (zlong.utils.MyCookie)
package zlong.utils {
import flash.net.*;
import flash.events.*;
public class MyCookie extends EventDispatcher {
private var so:SharedObject;
public function MyCookie(_arg1:String){
var cookieName = _arg1;
super();
try {
so = SharedObject.getLocal(cookieName);
} catch(e:Error) {
dispatchEvent(new Event("error"));
trace((("Con't open the sharedObject which name is '" + cookieName) + "'! utils.MyCookie.MyCookie();"));
};
}
public function addProperty(_arg1:String, _arg2:Object, _arg3:Boolean=true):Boolean{
var size:int;
var oldDate:String;
var j:String;
var name = _arg1;
var data = _arg2;
var isForce = _arg3;
size = so.size;
if ((size / 0x0400) > 80){
if (!isForce){
return (false);
};
oldDate = "9";
for (j in so.data) {
if (oldDate > j){
oldDate = j;
};
};
if (oldDate != "9"){
delete so.data[oldDate];
};
trace((("Becasue the size of sharedObject is too big,so delete the data on " + oldDate) + "! then add the new data"));
};
try {
so.data[name] = data;
so.flush();
} catch(err:Error) {
trace("出错了");
};
return (true);
}
public function get data():Object{
return (so.data);
}
public function clear():int{
var _local1:int;
var _local2:String;
_local1 = 0;
for (_local2 in so.data) {
_local1++;
delete so.data[_local2];
};
return (_local1);
}
public function close():void{
if (so != null){
so.close();
};
so = null;
}
}
}//package zlong.utils
Section 197
//GameSetting (zlong.GameSetting)
package zlong {
import flash.display.*;
import zlong.country.*;
import zlong.data.*;
import zlong.display.*;
public class GameSetting {
public function GameSetting(_arg1:InteractiveObject, _arg2:Boolean, _arg3:String, _arg4:String, _arg5:String, _arg6:int, _arg7:int){
GameInfo.cnversion = _arg2;
GameInfo.portal = _arg3;
GameInfo.name = _arg4;
GameInfo.html = _arg5;
GameInfo.width = _arg6;
GameInfo.height = _arg7;
init();
initMenu(_arg1);
}
private function init():void{
new CountryCookie();
CountryInfo.instance.portal = GameInfo.portal;
if (CountryCookie.country == null){
CountryInfo.instance.country = "en_us";
} else {
CountryInfo.instance.country = String(CountryCookie.country);
};
}
private function initMenu(_arg1:InteractiveObject):void{
new Menu(_arg1);
}
}
}//package zlong
Section 198
//blower (blower)
package {
import flash.display.*;
public dynamic class blower extends MovieClip {
}
}//package
Section 199
//Btn_NO (Btn_NO)
package {
import olduncle.*;
public dynamic class Btn_NO extends BtnBase {
}
}//package
Section 200
//Btn_YES (Btn_YES)
package {
import olduncle.*;
public dynamic class Btn_YES extends BtnBase {
}
}//package
Section 201
//Comeonbaby (Comeonbaby)
package {
import flash.display.*;
public dynamic class Comeonbaby extends MovieClip {
public var cb:MovieClip;
}
}//package
Section 202
//daojishi (daojishi)
package {
import flash.display.*;
public dynamic class daojishi extends MovieClip {
}
}//package
Section 203
//DocumentClass (DocumentClass)
package {
import flash.display.*;
import zlong.country.*;
import manage.*;
import com.google.analytics.*;
import zlong.*;
public class DocumentClass extends MovieClip {
private var _container:Sprite;
public static var _tracker:AnalyticsTracker;
public function DocumentClass(){
_tracker = new GATracker(this, "UA-6695967-1", "AS3", false);
initDis();
new GameSetting(this, false, "teen", "Sticky_Notes_Chick", "Sticky_Notes_Chick.html", 550, 400);
CountryInfo.instance.country = "en_us";
SpilSystem.instance.init(this);
new Manage(_container);
}
private function initDis():void{
this.stop();
_container = new Sprite();
this.addChildAt(_container, 0);
}
public function sleek():void{
this.gotoAndStop(3);
this.gotoAndStop(1);
}
}
}//package
Section 204
//gameCompletedScreen (gameCompletedScreen)
package {
import flash.display.*;
public dynamic class gameCompletedScreen extends MovieClip {
public var girl3:MovieClip;
public var girl1:MovieClip;
public var word:MovieClip;
public var girl2:MovieClip;
public var commit:MovieClip;
public var mainmenu:MovieClip;
public var score:MovieClip;
public var logo:MoreGamesLogo;
public function gameCompletedScreen(){
__setProp_logo_gameCompletedScreen__1();
}
function __setProp_logo_gameCompletedScreen__1(){
try {
logo["componentInspectorSetting"] = true;
} catch(e:Error) {
};
logo.position = "button_gamecomplete_moregames";
logo.type = "moregames";
try {
logo["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 205
//gameScreen (gameScreen)
package {
import flash.display.*;
public dynamic class gameScreen extends MovieClip {
public var pauseBt:MovieClip;
public var maintime:MovieClip;
public var papercount:MovieClip;
public var bg:MovieClip;
public var musicBt:MovieClip;
public var moregametext:MovieClip;
public var qualityBt:MovieClip;
public var soundBt:MovieClip;
public var powerBar:MovieClip;
public var head:MovieClip;
public var logo1:logoBtn;
public var logo3:logoBtn;
public var logo2:logoBtn;
public function gameScreen(){
__setProp_logo1_gameScreen_Layer2_1();
__setProp_logo3_gameScreen_Layer2_1();
__setProp_logo2_gameScreen_Layer2_1();
}
function __setProp_logo3_gameScreen_Layer2_1(){
try {
logo3["componentInspectorSetting"] = true;
} catch(e:Error) {
};
logo3.position = "button_level3_gameScreen_moregames";
logo3.type = "moregames";
try {
logo3["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_logo1_gameScreen_Layer2_1(){
try {
logo1["componentInspectorSetting"] = true;
} catch(e:Error) {
};
logo1.position = "button_level1_gameScreen_moregames";
logo1.type = "moregames";
try {
logo1["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_logo2_gameScreen_Layer2_1(){
try {
logo2["componentInspectorSetting"] = true;
} catch(e:Error) {
};
logo2.position = "button_level2_gameScreen_moregames";
logo2.type = "moregames";
try {
logo2["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 206
//girlChooseScreen (girlChooseScreen)
package {
import flash.display.*;
public dynamic class girlChooseScreen extends MovieClip {
public var girl3:MovieClip;
public var girl1:MovieClip;
public var girl2:MovieClip;
public var girl2lock:MovieClip;
public var backBt:MovieClip;
public var girl3lock:MovieClip;
public var girl1lock:MovieClip;
public var __id4_:MoreGamesLogo;
public function girlChooseScreen(){
__setProp___id4__girlChooseScreen__1();
}
function __setProp___id4__girlChooseScreen__1(){
try {
__id4_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id4_.position = "button_levelselect_moregames";
__id4_.type = "moregames";
try {
__id4_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 207
//girlLockScreen (girlLockScreen)
package {
import flash.display.*;
public dynamic class girlLockScreen extends MovieClip {
public var continueBt:MovieClip;
public var logo:MoreGamesLogo111copy;
public function girlLockScreen(){
__setProp_logo_girlLockScreen_Layer1_1();
}
function __setProp_logo_girlLockScreen_Layer1_1(){
try {
logo["componentInspectorSetting"] = true;
} catch(e:Error) {
};
logo.position = "button_loadscreen_moregames";
logo.type = "thisgame";
try {
logo["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 208
//how2PlayScreen (how2PlayScreen)
package {
import flash.display.*;
public dynamic class how2PlayScreen extends MovieClip {
public var __id5_:MoreGamesLogo;
public var backBt:MovieClip;
public var game_start:MovieClip;
public function how2PlayScreen(){
__setProp___id5__HOWTOPLAY_1();
}
function __setProp___id5__HOWTOPLAY_1(){
try {
__id5_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id5_.position = "button_help_moregames";
__id5_.type = "moregames";
try {
__id5_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 209
//hurryUp (hurryUp)
package {
import flash.display.*;
public dynamic class hurryUp extends MovieClip {
}
}//package
Section 210
//ifMicroScreen (ifMicroScreen)
package {
import flash.display.*;
public dynamic class ifMicroScreen extends MovieClip {
public var noBt:MovieClip;
public var __id6_:MoreGamesLogo;
public var backBt:MovieClip;
public var yesBt:MovieClip;
public var roadsign:MovieClip;
public function ifMicroScreen(){
__setProp___id6__ifMicroScreen__1();
}
function __setProp___id6__ifMicroScreen__1(){
try {
__id6_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id6_.position = "button_installMicrophone_moregames";
__id6_.type = "moregames";
try {
__id6_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 211
//lastScreen (lastScreen)
package {
import flash.display.*;
public dynamic class lastScreen extends MovieClip {
public var continueBt:MovieClip;
public var logo:MoreGamesLogo111;
public function lastScreen(){
__setProp_logo_lastScreen_Layer1_1();
}
function __setProp_logo_lastScreen_Layer1_1(){
try {
logo["componentInspectorSetting"] = true;
} catch(e:Error) {
};
logo.position = "button_sitelock";
logo.type = "thisgame";
try {
logo["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 212
//levelCompletedScreen (levelCompletedScreen)
package {
import flash.display.*;
public dynamic class levelCompletedScreen extends MovieClip {
public var girlMc:MovieClip;
public var girlchooseBt:MovieClip;
public var combo:MovieClip;
public var score:MovieClip;
public var time:MovieClip;
public var logo1:MoreGamesLogo;
public var logo3:MoreGamesLogo;
public var logo2:MoreGamesLogo;
public function levelCompletedScreen(){
__setProp_logo3_levelCompletedScreen__1();
__setProp_logo1_levelCompletedScreen__1();
__setProp_logo2_levelCompletedScreen__1();
}
function __setProp_logo2_levelCompletedScreen__1(){
try {
logo2["componentInspectorSetting"] = true;
} catch(e:Error) {
};
logo2.position = "button_level2Completed_moregames";
logo2.type = "moregames";
try {
logo2["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_logo1_levelCompletedScreen__1(){
try {
logo1["componentInspectorSetting"] = true;
} catch(e:Error) {
};
logo1.position = "button_level1Completed_moregames";
logo1.type = "moregames";
try {
logo1["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_logo3_levelCompletedScreen__1(){
try {
logo3["componentInspectorSetting"] = true;
} catch(e:Error) {
};
logo3.position = "button_level3Completed_moregames";
logo3.type = "moregames";
try {
logo3["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 213
//levelFailedScreen (levelFailedScreen)
package {
import flash.display.*;
public dynamic class levelFailedScreen extends MovieClip {
public var girlchooseBt:MovieClip;
public var combo:MovieClip;
public var score:MovieClip;
public var tryagainBt:MovieClip;
public var time:MovieClip;
public var logo1:MoreGamesLogo;
public var logo3:MoreGamesLogo;
public var logo2:MoreGamesLogo;
public function levelFailedScreen(){
__setProp_logo3_levelFailedScreen__1();
__setProp_logo2_levelFailedScreen__1();
__setProp_logo1_levelFailedScreen__1();
}
function __setProp_logo3_levelFailedScreen__1(){
try {
logo3["componentInspectorSetting"] = true;
} catch(e:Error) {
};
logo3.position = "button_level3_gameover_moregames";
logo3.type = "moregames";
try {
logo3["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_logo2_levelFailedScreen__1(){
try {
logo2["componentInspectorSetting"] = true;
} catch(e:Error) {
};
logo2.position = "button_level2_gameover_moregames";
logo2.type = "moregames";
try {
logo2["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_logo1_levelFailedScreen__1(){
try {
logo1["componentInspectorSetting"] = true;
} catch(e:Error) {
};
logo1.position = "button_level1_gameover_moregames";
logo1.type = "moregames";
try {
logo1["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 214
//loadScreen (loadScreen)
package {
import flash.display.*;
public dynamic class loadScreen extends MovieClip {
public var __id1_:MoreGamesLogo;
public var logo:MovieClip;
public var percent_text:MovieClip;
public function loadScreen(){
__setProp___id1__loadScreen__1();
}
function __setProp___id1__loadScreen__1(){
try {
__id1_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id1_.position = "button_loadscreen_moregames";
__id1_.type = "moregames";
try {
__id1_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 215
//logoBtn (logoBtn)
package {
import zlong.display.*;
public dynamic class logoBtn extends ExtButton {
public var __id3_:Logo;
public function logoBtn(){
__setProp___id3__logoBtn_Layer4_1();
}
function __setProp___id3__logoBtn_Layer4_1(){
try {
__id3_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id3_.alignHorizontal = "Left";
__id3_.alignVertical = "Down";
__id3_.maxHeight = 20;
__id3_.maxWidth = 130;
__id3_.position = "logo_playingGame";
try {
__id3_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 216
//menu_press (menu_press)
package {
import flash.media.*;
public dynamic class menu_press extends Sound {
}
}//package
Section 217
//menu_touch (menu_touch)
package {
import flash.media.*;
public dynamic class menu_touch extends Sound {
}
}//package
Section 218
//menuScreen (menuScreen)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.ui.*;
import flash.external.*;
import flash.system.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class menuScreen extends MovieClip {
public var musicBt:MovieClip;
public var how_to_play:MovieClip;
public var start_button:MovieClip;
public var qualityBt:MovieClip;
public var logo:MovieClip;
public var soundBt:MovieClip;
public var logo1:MoreGamesLogo;
public var logo2:MovieClip;
public function menuScreen(){
__setProp_logo1_menuScreen__1();
__setProp_logo2_menuScreen__1();
}
function __setProp_logo1_menuScreen__1(){
try {
logo1["componentInspectorSetting"] = true;
} catch(e:Error) {
};
logo1.position = "button_mainscreen_moregames";
logo1.type = "moregames";
try {
logo1["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_logo2_menuScreen__1(){
try {
logo2["componentInspectorSetting"] = true;
} catch(e:Error) {
};
logo2.position = "button_mainscreen_moregames";
logo2.type = "moregames";
try {
logo2["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 219
//microPhoneCarttoon (microPhoneCarttoon)
package {
import flash.display.*;
public dynamic class microPhoneCarttoon extends MovieClip {
public var powerBar:MovieClip;
}
}//package
Section 220
//Model1 (Model1)
package {
import flash.display.*;
public dynamic class Model1 extends MovieClip {
public var chest:MovieClip;
public var eyes:MovieClip;
}
}//package
Section 221
//Model2 (Model2)
package {
import flash.display.*;
public dynamic class Model2 extends MovieClip {
public var chest:MovieClip;
public var eyes:MovieClip;
}
}//package
Section 222
//Model3 (Model3)
package {
import flash.display.*;
public dynamic class Model3 extends MovieClip {
public var chest:MovieClip;
public var eyes:MovieClip;
}
}//package
Section 223
//MoreGamesLogo (MoreGamesLogo)
package {
import zlong.display.*;
public dynamic class MoreGamesLogo extends ExtButton {
public var __id0_:Logo;
public function MoreGamesLogo(){
__setProp___id0__MoreGamesLogo_Layer4_1();
}
function __setProp___id0__MoreGamesLogo_Layer4_1(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.alignHorizontal = "Center";
__id0_.alignVertical = "Down";
__id0_.maxHeight = 25;
__id0_.maxWidth = 120;
__id0_.position = "logo_preloader";
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 224
//MoreGamesLogo111 (MoreGamesLogo111)
package {
import zlong.display.*;
public dynamic class MoreGamesLogo111 extends ExtButton {
public var __id9_:Logo;
public function MoreGamesLogo111(){
__setProp___id9__MoreGamesLogo111_Layer4_1();
}
function __setProp___id9__MoreGamesLogo111_Layer4_1(){
try {
__id9_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id9_.alignHorizontal = "Center";
__id9_.alignVertical = "Center";
__id9_.maxHeight = 40;
__id9_.maxWidth = 180;
__id9_.position = "logo_preloader";
try {
__id9_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 225
//MoreGamesLogo111copy (MoreGamesLogo111copy)
package {
import zlong.display.*;
public dynamic class MoreGamesLogo111copy extends ExtButton {
public var __id2_:Logo;
public function MoreGamesLogo111copy(){
__setProp___id2__MoreGamesLogo111copy_Layer4_1();
}
function __setProp___id2__MoreGamesLogo111copy_Layer4_1(){
try {
__id2_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id2_.alignHorizontal = "Center";
__id2_.alignVertical = "Center";
__id2_.maxHeight = 40;
__id2_.maxWidth = 180;
__id2_.position = "logo_preloader";
try {
__id2_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 226
//mum1 (mum1)
package {
import flash.media.*;
public dynamic class mum1 extends Sound {
}
}//package
Section 227
//OOO000lll (OOO000lll)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import Util.*;
import flash.system.*;
public class OOO000lll extends MovieClip {
public var O1OlOO00O:XML;
private var _O10OOO1O0:Loader;
private var _O1l10l101:Object;
private var _OO0l101l1:Object;
public var OOO10O100:String;
public var O0l00l0O0:XML;
private var _OOl10010l:String;
private var _O001OO010:Object;
private var _O01OO1O00;
private var _O01O0lOl0:int;
private var _O1Ol011l1:String;
private var _O11OO0110:String;
private var _OOO00l00l:int;
private var _O0lO0100O:String;
private var _OOOOll01l:Array;
private var _O111O01OO:Object;
private var _OO10001Ol:Boolean;
private var _OO1l1OO10:String;
public var O1lll0ll0:XML;
private var _O1OO1OllO:Object;
private var _O0l0OO01O;
private var _OO0l1lOO1:int;
public var OOOll0OO0:int;
public function OOO000lll():void{
var _O1OlO10O0:*;
super();
Security.allowDomain("*");
_OO10001Ol = false;
_O01OO1O00 = this.parent;
_O01OO1O00.stop();
var _OOll00l11:int;
while (true) {
try {
_O1OlO10O0 = _O01OO1O00.getChildAt(_OOll00l11);
if ((_O1OlO10O0 is MovieClip)){
_O1OlO10O0.visible = false;
} else {
_O01OO1O00.removeChild(_O1OlO10O0);
};
_OOll00l11 = (_OOll00l11 + 1);
} catch(e:Error) {
break;
};
};
try {
_O01OO1O00["_O0000Ol01"] = _O0000Ol01;
_O01OO1O00["_O0Olll0lO"] = _O0Olll0lO;
} catch(e:Error) {
};
}
private function _O11lll1OO0(_arg1:String):void{
if (_O0l0OO01O){
_O0l0OO01O.OO0011ll1O(_arg1);
};
}
private function _OO0OO1OO0(_arg1:Event):void{
if ((((((_arg1.type == "ScoreLoadSubmitComplete")) || ((_arg1.type == "ScoreLoadListComplete")))) || ((_arg1.type == "ScoreLoadUserListComplete")))){
O0l00l0O0 = _O0l0OO01O.O011Oll0O();
} else {
if (_arg1.type == "ScoreLoadTimeComplete"){
O1lll0ll0 = _O0l0OO01O.OO011OOl1();
} else {
O0l00l0O0 = _O0l0OO01O.O0001O0Ol();
};
};
_O01OO1O00.dispatchEvent(_arg1);
}
private function _O10Ol0l10(_arg1:IOErrorEvent):void{
removeEventListener(Event.ENTER_FRAME, _O0OlOOO1O);
_O01OO1O00.dispatchEvent(new IOErrorEvent(IOErrorEvent.IO_ERROR));
}
private function _O01Ol1O1O():void{
if (_O0l0OO01O){
_O0l0OO01O.OO011OOl1();
};
}
private function _O110l10ll():void{
if (_O0l0OO01O){
_O0l0OO01O.O01l01OlO();
};
}
private function _O01O1101l():void{
stop();
_O10OOO1O0 = new Loader();
_O10OOO1O0.load(new URLRequest(_O1Ol011l1));
_O01OO1O00.addChildAt(_O10OOO1O0, 0);
this.addEventListener(Event.ENTER_FRAME, _O0OlOOO1O);
_O10OOO1O0.contentLoaderInfo.addEventListener(Event.COMPLETE, _O100O0Oll);
_O10OOO1O0.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, _O10Ol0l10);
}
private function _O0000Ol01(_arg1=null, _arg2:String="default", _arg3="", _arg4:int=0, _arg5:String="normal", _arg6:String="", _arg7:int=0, _arg8:int=0, _arg9:int=1, _arg10:Boolean=false):void{
OOO10O100 = _arg5;
OOOll0OO0 = _arg4;
_O11OO0110 = _arg2;
if (_arg3 == ""){
_OO1l1OO10 = _O11OO0110;
} else {
_OO1l1OO10 = _arg3;
};
if (((!((_arg1 == null))) && (!((_arg1.loaderInfo == null))))){
_O1l10l101 = _arg1.loaderInfo.parameters["username"];
_O001OO010 = _arg1.loaderInfo.parameters["hash"];
_OO0l101l1 = _arg1.loaderInfo.parameters["id"];
_O1OO1OllO = _arg1.loaderInfo.parameters["s"];
_O111O01OO = _arg1.loaderInfo.parameters["c"];
_O1Ol011l1 = "http://www8.agame.com/games/flash/highscore/SubmitterV2.swf";
if (_O00O00010(_arg10)){
_O01O1101l();
} else {
_O01OO1O00.dispatchEvent(new Event("LoadingFailed"));
};
};
_OOl10010l = _arg6;
_OO0l1lOO1 = _arg7;
_O01O0lOl0 = _arg8;
_OOO00l00l = _arg9;
}
private function _O0O1l0OO0():Boolean{
return (!((_O0l0OO01O == null)));
}
private function _O100O0Oll(_arg1:Event):void{
_O0l0OO01O = _arg1.currentTarget.content;
_O0l0OO01O.O0011ll110O0(_O1OO1OllO, 1, _OO0l101l1, _O111O01OO, OOOll0OO0, _OOl10010l, _OO0l1lOO1, _O01O0lOl0, _OOO00l00l, _O1l10l101, _O001OO010);
_O0l0OO01O.addEventListener("HyScorSubmitterLoaded", _OOl11lOOl);
_O0l0OO01O.addEventListener("ScoreLoadError", _OO0OO1OO0);
_O0l0OO01O.addEventListener("ScoreLoadTimeComplete", _OO0OO1OO0);
_O0l0OO01O.addEventListener("ScoreLoadSubmitComplete", _OO0OO1OO0);
_O0l0OO01O.addEventListener("ScoreLoadListComplete", _OO0OO1OO0);
_O0l0OO01O.addEventListener("ScoreLoadUserListComplete", _OO0OO1OO0);
_O0l0OO01O.addEventListener("AchievLoadError", _O0l0O1Oll);
_O0l0OO01O.addEventListener("AchievLoadTimeComplete", _O0l0O1Oll);
_O0l0OO01O.addEventListener("AchievLoadListComplete", _O0l0O1Oll);
_O0l0OO01O.addEventListener("AchievLoadInfoComplete", _O0l0O1Oll);
_O0l0OO01O.addEventListener("AchievLoadGrantComplete", _O0l0O1Oll);
_O01OO1O00["_O0Olll0lO"] = _O0Olll0lO;
_O01OO1O00["_O0O1l0OO0"] = _O0O1l0OO0;
_O01OO1O00["_O01Ol1O1O"] = _O01Ol1O1O;
_O01OO1O00["_O01lOO10O"] = _O01lOO10O;
_O01OO1O00["_O110l10ll"] = _O110l10ll;
_O01OO1O00["_O11lll1OO0"] = _O11lll1OO0;
_O01OO1O00["_O00OOl1Ol"] = _O00OOl1Ol;
_O01OO1O00["_O1OlO10OO"] = _O1OlO10OO;
_O01OO1O00["_OOlOOOll1"] = _OOlOOOll1;
_O01OO1O00["_O010ll111"] = _O010ll111;
}
private function _O00O00010(_arg1:Boolean=false):Boolean{
var _local4:String;
var _local5:O1OOO0O00;
var _local2:Boolean = _arg1;
if (!_local2){
_OOOOll01l = ["www8.agame.com"];
} else {
_OOOOll01l = ["localhost", "www8.agame.com", "www.zlonggames.com", "gamedev.dev.spilgames.com", "stg.pl.a10.com", "www.a10.com.gp.dev.spilgames.eu"];
};
var _local3:LocalConnection = new LocalConnection();
if (((isNaN((_OO0l101l1 as int))) || (isNaN((_O1OO1OllO as int))))){
return (false);
};
for each (_local4 in _OOOOll01l) {
if (_local3.domain == _local4){
_local5 = new O1OOO0O00();
if (_local5.O0111l110()){
_OO10001Ol = true;
return (true);
};
};
};
return (false);
}
private function _O00OOl1Ol(_arg1:String):void{
if (_O0l0OO01O){
_O0l0OO01O.OO00lO1l0(_arg1, _O1l10l101, _O001OO010);
};
}
private function _O0OlOOO1O(_arg1:Event):void{
var _local2 = (((_O10OOO1O0.contentLoaderInfo.bytesLoaded / _O10OOO1O0.contentLoaderInfo.bytesTotal) * 100) >> 0);
if (_local2 >= 100){
removeEventListener(Event.ENTER_FRAME, _O0OlOOO1O);
};
}
private function _OOl11lOOl(_arg1:Event):void{
if (_O0l0OO01O){
_O0l0OO01O.removeEventListener("HyScorSubmitterLoaded", _OOl11lOOl);
};
_O01OO1O00.dispatchEvent(new Event(Event.COMPLETE));
}
private function _O01lOO10O(_arg1:int):void{
if (_O0l0OO01O){
_O0l0OO01O.O0l01llOl(_arg1, _O1l10l101, _O001OO010);
};
}
private function _O0Olll0lO():Boolean{
return (_O00O00010(false));
}
private function _O1OlO10OO():void{
if (_O0l0OO01O){
_O0l0OO01O.O1l0OOl1l(_O1l10l101, _O001OO010);
};
}
private function _O10O00lO0():String{
if (_O0l0OO01O){
return (_O0l0OO01O.OOOO00ll0());
};
return (("FAILED " + _O0l0OO01O));
}
private function _O0l0O1Oll(_arg1:Event):void{
if ((((((_arg1.type == "AchievLoadListComplete")) || ((_arg1.type == "AchievLoadInfoComplete")))) || ((_arg1.type == "AchievLoadGrantComplete")))){
O1OlOO00O = _O0l0OO01O.O11OO0l0l();
} else {
O1OlOO00O = _O0l0OO01O.O0O100l0l();
};
_O01OO1O00.dispatchEvent(_arg1);
}
private function _O010ll111():void{
_O0l0OO01O.removeEventListener("ScoreLoadError", _OO0OO1OO0);
_O0l0OO01O.removeEventListener("ScoreLoadTimeComplete", _OO0OO1OO0);
_O0l0OO01O.removeEventListener("ScoreLoadSubmitComplete", _OO0OO1OO0);
_O0l0OO01O.removeEventListener("ScoreLoadListComplete", _OO0OO1OO0);
_O0l0OO01O.removeEventListener("ScoreLoadUserListComplete", _OO0OO1OO0);
_O0l0OO01O.removeEventListener("AchievLoadError", _O0l0O1Oll);
_O0l0OO01O.removeEventListener("AchievLoadTimeComplete", _O0l0O1Oll);
_O0l0OO01O.removeEventListener("AchievLoadListComplete", _O0l0O1Oll);
_O0l0OO01O.removeEventListener("AchievLoadInfoComplete", _O0l0O1Oll);
_O0l0OO01O.removeEventListener("AchievLoadGrantComplete", _O0l0O1Oll);
_O01OO1O00 = null;
_OOOOll01l = null;
_O0l0OO01O = null;
_O1l10l101 = null;
_O001OO010 = null;
_O10OOO1O0 = null;
O1lll0ll0 = null;
O0l00l0O0 = null;
O1OlOO00O = null;
}
private function _OOlOOOll1(_arg1:int):void{
if (_O0l0OO01O){
_O0l0OO01O.O1OlOO111(_arg1);
};
}
}
}//package
Section 228
//otherpress (otherpress)
package {
import flash.media.*;
public dynamic class otherpress extends Sound {
}
}//package
Section 229
//othertouch (othertouch)
package {
import flash.media.*;
public dynamic class othertouch extends Sound {
}
}//package
Section 230
//paper (paper)
package {
import flash.display.*;
public dynamic class paper extends MovieClip {
public var hit:MovieClip;
}
}//package
Section 231
//paperloop (paperloop)
package {
import flash.media.*;
public dynamic class paperloop extends Sound {
}
}//package
Section 232
//pauseScreen (pauseScreen)
package {
import flash.display.*;
public dynamic class pauseScreen extends MovieClip {
public var PauseBackBt:MovieClip;
public var howtoplayBt:MovieClip;
public var continueBt:MovieClip;
public var __id8_:MoreGamesLogo;
public var soundBt:MovieClip;
public function pauseScreen(){
__setProp___id8__pauseScreen__1();
}
function __setProp___id8__pauseScreen__1(){
try {
__id8_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id8_.position = "button_pausedscreen_moregames";
__id8_.type = "moregames";
try {
__id8_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 233
//PTSDONGHUA (PTSDONGHUA)
package {
import flash.display.*;
public dynamic class PTSDONGHUA extends MovieClip {
public var comboptsdonghua:MovieClip;
}
}//package
Section 234
//resetScreen (resetScreen)
package {
import flash.display.*;
public dynamic class resetScreen extends MovieClip {
public var noBt:MovieClip;
public var yesBt:MovieClip;
}
}//package
Section 235
//spaceCarttoon (spaceCarttoon)
package {
import flash.display.*;
public dynamic class spaceCarttoon extends MovieClip {
public var powerBar:MovieClip;
}
}//package
Section 236
//SpilDomain (SpilDomain)
package {
import flash.net.*;
import flash.events.*;
public class SpilDomain {
private const URL:String = "http://www8.agame.com/games/sitelock/sites.xml";
private var request:URLRequest;
private var _status:int;// = -1
private var loader:URLLoader;
private var xml:XML;
private var checkURL:String;
public function SpilDomain(){
_status = -1;
super();
initialize();
}
private function addEvt(_arg1:EventDispatcher, _arg2:String, _arg3:Function):void{
_arg1.addEventListener(_arg2, _arg3);
}
private function del():void{
delEvt(loader, Event.COMPLETE, onComplete);
delEvt(loader, IOErrorEvent.IO_ERROR, onError);
}
private function initialize():void{
loader = new URLLoader();
request = new URLRequest(URL);
}
public function loadXML():void{
loader.load(request);
addEvt(loader, IOErrorEvent.IO_ERROR, onError);
addEvt(loader, Event.COMPLETE, onComplete);
}
private function onError(_arg1:IOErrorEvent):void{
_status = 0;
loader.close();
del();
}
private function checkDomain():int{
var _local1:*;
if (checkURL == null){
return (0);
};
for each (_local1 in xml.item) {
if (checkURL.indexOf(_local1) != -1){
return (1);
};
};
return (0);
}
private function delEvt(_arg1:EventDispatcher, _arg2:String, _arg3:Function):void{
_arg1.removeEventListener(_arg2, _arg3);
}
public function set urlCheck(_arg1:String):void{
checkURL = _arg1;
}
private function onComplete(_arg1:Event):void{
xml = XML(loader.data);
_status = checkDomain();
del();
trace("xml loaded");
}
public function get status():int{
return (_status);
}
}
}//package
Section 237
//SpilSystem (SpilSystem)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import Spill.Components.*;
public class SpilSystem {
private var _sub:Submitter;
private static var _instance:SpilSystem;
public function SpilSystem(){
_sub = new Submitter();
trace(("sub: " + _sub));
_sub.addEventListener(Event.COMPLETE, SubmiterComponentInitialized);
_sub.addEventListener(IOErrorEvent.IO_ERROR, FailedToLoadSubmitter);
_sub.addEventListener("LoadingFailed", FailedToLoadSubmitter);
}
public function processMethods(_arg1):void{
if (_sub){
_sub._O01lOO10O(_arg1);
};
}
public function eventHandlerAchiev(_arg1:Event):void{
if (_arg1.currentTarget.OO00OO1l1l.O1OlOO00O != null){
trace(_arg1.currentTarget.OO00OO1l1l.O1OlOO00O.toString());
} else {
trace(_arg1.type);
};
}
public function eventHandlerScore(_arg1:Event):void{
if (_arg1.currentTarget.OO00OO1l1l.O0l00l0O0 != null){
trace(_arg1.currentTarget.OO00OO1l1l.O0l00l0O0.toString());
} else {
trace(_arg1.type);
};
}
private function getSub():Object{
var _local1:Class;
var _local2:MovieClip;
_local1 = (getDefinitionByName("OOO000lll") as Class);
_local2 = new (_local1);
return (_local2);
}
private function FailedToLoadSubmitter(_arg1:Event):void{
_sub.removeEventListener(Event.COMPLETE, SubmiterComponentInitialized);
_sub.removeEventListener("LoadingFailed", FailedToLoadSubmitter);
_sub = null;
}
public function init(_arg1:MovieClip):void{
_sub._O0000Ol01(_arg1, "Me_Vs_Earth", "Me_Vs_Earth.html", 0, "normal", "", 0, 0, 1, true);
}
public function destroy():void{
if (_sub){
if (_sub.hasEventListener("ScoreLoadError")){
_sub.removeEventListener("ScoreLoadError", eventHandlerScore);
};
if (_sub.hasEventListener("ScoreLoadTimeComplete")){
_sub.removeEventListener("ScoreLoadTimeComplete", eventHandlerScore);
};
if (_sub.hasEventListener("ScoreLoadSubmitComplete")){
_sub.removeEventListener("ScoreLoadSubmitComplete", eventHandlerScore);
};
if (_sub.hasEventListener("ScoreLoadListComplete")){
_sub.removeEventListener("ScoreLoadListComplete", eventHandlerScore);
};
if (_sub.hasEventListener("AchievLoadError")){
_sub.removeEventListener("AchievLoadError", eventHandlerAchiev);
};
if (_sub.hasEventListener("AchievLoadTimeComplete")){
_sub.removeEventListener("AchievLoadTimeComplete", eventHandlerAchiev);
};
if (_sub.hasEventListener("AchievLoadListComplete")){
_sub.removeEventListener("AchievLoadListComplete", eventHandlerAchiev);
};
if (_sub.hasEventListener("AchievLoadInfoComplete")){
_sub.removeEventListener("AchievLoadInfoComplete", eventHandlerAchiev);
};
if (_sub.hasEventListener("AchievLoadGrantComplete")){
_sub.removeEventListener("AchievLoadGrantComplete", eventHandlerAchiev);
};
_sub._O010ll111();
};
_sub = null;
}
public function submitAchievement(_arg1):void{
if (_sub){
_sub._O00OOl1Ol(_arg1);
};
}
public function submitScore(_arg1):void{
if (_sub){
_sub._O01lOO10O(_arg1);
};
}
private function SubmiterComponentInitialized(_arg1:Event):void{
_sub.removeEventListener(Event.COMPLETE, SubmiterComponentInitialized);
_sub.removeEventListener(IOErrorEvent.IO_ERROR, FailedToLoadSubmitter);
_sub.removeEventListener("LoadingFailed", FailedToLoadSubmitter);
_sub.addEventListener("ScoreLoadError", eventHandlerScore);
_sub.addEventListener("ScoreLoadTimeComplete", eventHandlerScore);
_sub.addEventListener("ScoreLoadSubmitComplete", eventHandlerScore);
_sub.addEventListener("ScoreLoadListComplete", eventHandlerScore);
_sub.addEventListener("AchievLoadError", eventHandlerAchiev);
_sub.addEventListener("AchievLoadTimeComplete", eventHandlerAchiev);
_sub.addEventListener("AchievLoadListComplete", eventHandlerAchiev);
_sub.addEventListener("AchievLoadInfoComplete", eventHandlerAchiev);
_sub.addEventListener("AchievLoadGrantComplete", eventHandlerAchiev);
}
public static function get instance():SpilSystem{
if (_instance == null){
_instance = new (SpilSystem);
};
return (_instance);
}
}
}//package
Section 238
//Symbol5 (Symbol5)
package {
import flash.display.*;
public dynamic class Symbol5 extends MovieClip {
}
}//package
Section 239
//关卡完成 (å…³å¡å®Œæˆ)
package {
import flash.media.*;
public dynamic class 关卡完成 extends Sound {
}
}//package
Section 240
//吹风机启动 (å¹é£Žæœºå¯åŠ¨)
package {
import flash.media.*;
public dynamic class 吹风机启动 extends Sound {
}
}//package
Section 241
//吹风机循环 (å¹é£Žæœºå¾ªçŽ¯)
package {
import flash.media.*;
public dynamic class 吹风机循环 extends Sound {
}
}//package
Section 242
//随机纸1 (éšæœºçº¸1)
package {
import flash.media.*;
public dynamic class 随机纸1 extends Sound {
}
}//package
Section 243
//随机纸2 (éšæœºçº¸2)
package {
import flash.media.*;
public dynamic class 随机纸2 extends Sound {
}
}//package
Section 244
//随机纸3 (éšæœºçº¸3)
package {
import flash.media.*;
public dynamic class 随机纸3 extends Sound {
}
}//package