Section 1
//BIG_1 (cleanSE3_fla.BIG_1)
package cleanSE3_fla {
import flash.display.*;
public dynamic class BIG_1 extends MovieClip {
public function BIG_1(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package cleanSE3_fla
Section 2
//boom_158 (cleanSE3_fla.boom_158)
package cleanSE3_fla {
import flash.display.*;
public dynamic class boom_158 extends MovieClip {
public function boom_158(){
addFrameScript(19, frame20, 39, frame40);
}
function frame20(){
gotoAndPlay(1);
}
function frame40(){
if (parent != null){
if (parent.parent != null){
parent.parent.removeChild(parent);
};
parent.removeChild(this);
};
}
}
}//package cleanSE3_fla
Section 3
//btn_name_535 (cleanSE3_fla.btn_name_535)
package cleanSE3_fla {
import flash.display.*;
public dynamic class btn_name_535 extends MovieClip {
public function btn_name_535(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package cleanSE3_fla
Section 4
//IS2_653 (cleanSE3_fla.IS2_653)
package cleanSE3_fla {
import flash.display.*;
import flash.text.*;
public dynamic class IS2_653 extends MovieClip {
public var _txt:TextField;
}
}//package cleanSE3_fla
Section 5
//label_154 (cleanSE3_fla.label_154)
package cleanSE3_fla {
import flash.display.*;
public dynamic class label_154 extends MovieClip {
public var flag:MovieClip;
}
}//package cleanSE3_fla
Section 6
//LanguageSelectPopup_153 (cleanSE3_fla.LanguageSelectPopup_153)
package cleanSE3_fla {
import flash.display.*;
public dynamic class LanguageSelectPopup_153 extends MovieClip {
public var l_se:MovieClip;
public var l_ar:MovieClip;
public var l_br:MovieClip;
public var l_in:MovieClip;
public var l_cn:MovieClip;
public var l_tr:MovieClip;
public var l_de:MovieClip;
public var l_my:MovieClip;
public var _blank:MovieClip;
public var l_es:MovieClip;
public var l_en_uk:MovieClip;
public var l_fr:MovieClip;
public var l_en_us:MovieClip;
public var l_pl:MovieClip;
public var l_pt:MovieClip;
public var l_ph:MovieClip;
public var l_nl:MovieClip;
public var l_id:MovieClip;
public var l_it:MovieClip;
public var l_jp:MovieClip;
public var l_ru:MovieClip;
}
}//package cleanSE3_fla
Section 7
//MrQuicks_446 (cleanSE3_fla.MrQuicks_446)
package cleanSE3_fla {
import flash.display.*;
public dynamic class MrQuicks_446 extends MovieClip {
public function MrQuicks_446(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package cleanSE3_fla
Section 8
//MusicMC_650 (cleanSE3_fla.MusicMC_650)
package cleanSE3_fla {
import flash.display.*;
public dynamic class MusicMC_650 extends MovieClip {
public function MusicMC_650(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package cleanSE3_fla
Section 9
//SoundMC_651 (cleanSE3_fla.SoundMC_651)
package cleanSE3_fla {
import flash.display.*;
public dynamic class SoundMC_651 extends MovieClip {
public function SoundMC_651(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package cleanSE3_fla
Section 10
//CampaignInfo (com.google.analytics.campaign.CampaignInfo)
package com.google.analytics.campaign {
import com.google.analytics.utils.*;
public class CampaignInfo {
private var _new:Boolean;
private var _empty:Boolean;
public function CampaignInfo(_arg1:Boolean=true, _arg2:Boolean=false){
_empty = _arg1;
_new = _arg2;
}
public function isEmpty():Boolean{
return (_empty);
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
if (((!(isEmpty())) && (isNew()))){
_local1.utmcn = utmcn;
};
if (((!(isEmpty())) && (!(isNew())))){
_local1.utmcr = utmcr;
};
return (_local1);
}
public function isNew():Boolean{
return (_new);
}
public function get utmcn():String{
return ("1");
}
public function get utmcr():String{
return ("1");
}
}
}//package com.google.analytics.campaign
Section 11
//CampaignKey (com.google.analytics.campaign.CampaignKey)
package com.google.analytics.campaign {
public class CampaignKey {
public var UCMD:String;// = "utm_medium"
public var UCID:String;// = "utm_id"
public var UCTR:String;// = "utm_term"
public var UCSR:String;// = "utm_source"
public var UCNO:String;// = "utm_nooverride"
public var UCCN:String;// = "utm_campaign"
public var UGCLID:String;// = "gclid"
public var UCCT:String;// = "utm_content"
}
}//package com.google.analytics.campaign
Section 12
//CampaignManager (com.google.analytics.campaign.CampaignManager)
package com.google.analytics.campaign {
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import com.google.analytics.utils.*;
public class CampaignManager {
private var _config:Configuration;
private var _domainHash:Number;
private var _debug:DebugConfiguration;
private var _timeStamp:Number;
private var _referrer:String;
private var _buffer:Buffer;
public static const trackingDelimiter:String = "|";
public function CampaignManager(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Buffer, _arg4:Number, _arg5:String, _arg6:Number){
_config = _arg1;
_debug = _arg2;
_buffer = _arg3;
_domainHash = _arg4;
_referrer = _arg5;
_timeStamp = _arg6;
}
public function hasNoOverride(_arg1:String):Boolean{
var _local2:CampaignKey;
var _local3:Variables;
var _local4:String;
_local2 = _config.campaignKey;
if (_arg1 == ""){
return (false);
};
_local3 = new Variables(_arg1);
_local4 = "";
if (_local3.hasOwnProperty(_local2.UCNO)){
_local4 = _local3[_local2.UCNO];
switch (_local4){
case "1":
return (true);
case "":
case "0":
default:
return (false);
};
};
return (false);
}
public function getCampaignInformation(_arg1:String, _arg2:Boolean):CampaignInfo{
var _local3:CampaignInfo;
var _local4:CampaignTracker;
var _local5:Boolean;
var _local6:Boolean;
var _local7:int;
var _local8:CampaignTracker;
var _local9:int;
_local3 = new CampaignInfo();
_local5 = false;
_local6 = false;
_local7 = 0;
if (((_config.allowLinker) && (_buffer.isGenuine()))){
if (!_buffer.hasUTMZ()){
return (_local3);
};
};
_local4 = getTrackerFromSearchString(_arg1);
if (isValid(_local4)){
_local6 = hasNoOverride(_arg1);
if (((_local6) && (!(_buffer.hasUTMZ())))){
return (_local3);
};
};
if (!isValid(_local4)){
_local4 = getOrganicCampaign();
if (((!(_buffer.hasUTMZ())) && (isIgnoredKeyword(_local4)))){
return (_local3);
};
};
if (((!(isValid(_local4))) && (_arg2))){
_local4 = getReferrerCampaign();
if (((!(_buffer.hasUTMZ())) && (isIgnoredReferral(_local4)))){
return (_local3);
};
};
if (!isValid(_local4)){
if (((!(_buffer.hasUTMZ())) && (_arg2))){
_local4 = getDirectCampaign();
};
};
if (!isValid(_local4)){
return (_local3);
};
if (((_buffer.hasUTMZ()) && (!(_buffer.utmz.isEmpty())))){
_local8 = new CampaignTracker();
_local8.fromTrackerString(_buffer.utmz.campaignTracking);
_local5 = (_local8.toTrackerString() == _local4.toTrackerString());
_local7 = _buffer.utmz.responseCount;
};
if (((!(_local5)) || (_arg2))){
_local9 = _buffer.utma.sessionCount;
_local7++;
if (_local9 == 0){
_local9 = 1;
};
_buffer.utmz.domainHash = _domainHash;
_buffer.utmz.campaignCreation = _timeStamp;
_buffer.utmz.campaignSessions = _local9;
_buffer.utmz.responseCount = _local7;
_buffer.utmz.campaignTracking = _local4.toTrackerString();
_debug.info(_buffer.utmz.toString(), VisualDebugMode.geek);
_local3 = new CampaignInfo(false, true);
} else {
_local3 = new CampaignInfo(false, false);
};
return (_local3);
}
public function isValid(_arg1:CampaignTracker):Boolean{
if (((_arg1) && (_arg1.isValid()))){
return (true);
};
return (false);
}
public function getTrackerFromSearchString(_arg1:String):CampaignTracker{
var _local2:CampaignTracker;
var _local3:CampaignTracker;
var _local4:CampaignKey;
var _local5:Variables;
_local2 = getOrganicCampaign();
_local3 = new CampaignTracker();
_local4 = _config.campaignKey;
if (_arg1 == ""){
return (_local3);
};
_local5 = new Variables(_arg1);
if (_local5.hasOwnProperty(_local4.UCID)){
_local3.id = _local5[_local4.UCID];
};
if (_local5.hasOwnProperty(_local4.UCSR)){
_local3.source = _local5[_local4.UCSR];
};
if (_local5.hasOwnProperty(_local4.UGCLID)){
_local3.clickId = _local5[_local4.UGCLID];
};
if (_local5.hasOwnProperty(_local4.UCCN)){
_local3.name = _local5[_local4.UCCN];
} else {
_local3.name = "(not set)";
};
if (_local5.hasOwnProperty(_local4.UCMD)){
_local3.medium = _local5[_local4.UCMD];
} else {
_local3.medium = "(not set)";
};
if (_local5.hasOwnProperty(_local4.UCTR)){
_local3.term = _local5[_local4.UCTR];
} else {
if (((_local2) && (!((_local2.term == ""))))){
_local3.term = _local2.term;
};
};
if (_local5.hasOwnProperty(_local4.UCCT)){
_local3.content = _local5[_local4.UCCT];
};
return (_local3);
}
public function getOrganicCampaign():CampaignTracker{
var _local1:CampaignTracker;
var _local2:URL;
var _local3:String;
var _local4:Array;
var _local5:OrganicReferrer;
var _local6:String;
if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){
return (_local1);
};
_local2 = new URL(_referrer);
_local3 = "";
if (_local2.hostName != ""){
if (_local2.hostName.indexOf(".") > -1){
_local4 = _local2.hostName.split(".");
switch (_local4.length){
case 2:
_local3 = _local4[0];
break;
case 3:
_local3 = _local4[1];
break;
};
};
};
if (_config.organic.match(_local3)){
_local5 = _config.organic.getReferrerByName(_local3);
_local6 = _config.organic.getKeywordValue(_local5, _local2.search);
_local1 = new CampaignTracker();
_local1.source = _local5.engine;
_local1.name = "(organic)";
_local1.medium = "organic";
_local1.term = _local6;
};
return (_local1);
}
public function isIgnoredReferral(_arg1:CampaignTracker):Boolean{
if (((_arg1) && ((_arg1.medium == "referral")))){
return (_config.organic.isIgnoredReferral(_arg1.source));
};
return (false);
}
public function getDirectCampaign():CampaignTracker{
var _local1:CampaignTracker;
_local1 = new CampaignTracker();
_local1.source = "(direct)";
_local1.name = "(direct)";
_local1.medium = "(none)";
return (_local1);
}
public function isIgnoredKeyword(_arg1:CampaignTracker):Boolean{
if (((_arg1) && ((_arg1.medium == "organic")))){
return (_config.organic.isIgnoredKeyword(_arg1.term));
};
return (false);
}
public function getReferrerCampaign():CampaignTracker{
var _local1:CampaignTracker;
var _local2:URL;
var _local3:String;
var _local4:String;
if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){
return (_local1);
};
_local2 = new URL(_referrer);
_local3 = _local2.hostName;
_local4 = _local2.path;
if (_local3.indexOf("www.") == 0){
_local3 = _local3.substr(4);
};
_local1 = new CampaignTracker();
_local1.source = _local3;
_local1.name = "(referral)";
_local1.medium = "referral";
_local1.content = _local4;
return (_local1);
}
public static function isInvalidReferrer(_arg1:String):Boolean{
var _local2:URL;
if ((((((_arg1 == "")) || ((_arg1 == "-")))) || ((_arg1 == "0")))){
return (true);
};
if (_arg1.indexOf("://") > -1){
_local2 = new URL(_arg1);
if ((((_local2.protocol == Protocols.file)) || ((_local2.protocol == Protocols.none)))){
return (true);
};
};
return (false);
}
public static function isFromGoogleCSE(_arg1:String, _arg2:Configuration):Boolean{
var _local3:URL;
_local3 = new URL(_arg1);
if (_local3.hostName.indexOf(_arg2.google) > -1){
if (_local3.search.indexOf((_arg2.googleSearchParam + "=")) > -1){
if (_local3.path == ("/" + _arg2.googleCsePath)){
return (true);
};
};
};
return (false);
}
}
}//package com.google.analytics.campaign
Section 13
//CampaignTracker (com.google.analytics.campaign.CampaignTracker)
package com.google.analytics.campaign {
import com.google.analytics.utils.*;
public class CampaignTracker {
public var content:String;
public var 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 14
//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 15
//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 16
//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 17
//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 18
//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 19
//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 20
//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 21
//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 22
//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 23
//ga_internal (com.google.analytics.core.ga_internal)
package com.google.analytics.core {
public namespace ga_internal;
}//package com.google.analytics.core
Section 24
//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 25
//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 26
//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 27
//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 28
//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 29
//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 30
//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 31
//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 32
//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 33
//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 34
//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 35
//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 36
//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 37
//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 38
//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 39
//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 40
//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 41
//X10 (com.google.analytics.data.X10)
package com.google.analytics.data {
public class X10 {
private var _delimEnd:String;// = ")"
private var _delimSet:String;// = "*"
private var _escapeChar:String;// = "'"
private var _delimBegin:String;// = "("
private var _delimNumValue:String;// = "!"
private var _key:String;// = "k"
private var _set:Array;
private var _projectData:Object;
private var _hasData:int;
private var _escapeCharMap:Object;
private var _minimum:int;
private var _value:String;// = "v"
public function X10(){
_key = "k";
_value = "v";
_set = [_key, _value];
_delimBegin = "(";
_delimEnd = ")";
_delimSet = "*";
_delimNumValue = "!";
_escapeChar = "'";
super();
_projectData = {};
_escapeCharMap = {};
_escapeCharMap[_escapeChar] = "'0";
_escapeCharMap[_delimEnd] = "'1";
_escapeCharMap[_delimSet] = "'2";
_escapeCharMap[_delimNumValue] = "'3";
_minimum = 1;
}
private function _clearInternal(_arg1:Number, _arg2:String):void{
var _local3:Boolean;
var _local4:int;
var _local5:int;
if (((hasProject(_arg1)) && (!((_projectData[_arg1][_arg2] == undefined))))){
_projectData[_arg1][_arg2] = undefined;
_local3 = true;
_local5 = _set.length;
_local4 = 0;
while (_local4 < _local5) {
if (_projectData[_arg1][_set[_local4]] != undefined){
_local3 = false;
break;
};
_local4++;
};
if (_local3){
_projectData[_arg1] = undefined;
_hasData = (_hasData - 1);
};
};
}
public function hasData():Boolean{
return ((_hasData > 0));
}
private function _setInternal(_arg1:Number, _arg2:String, _arg3:Number, _arg4:String):void{
if (!hasProject(_arg1)){
_projectData[_arg1] = {};
};
if (_projectData[_arg1][_arg2] == undefined){
_projectData[_arg1][_arg2] = [];
};
_projectData[_arg1][_arg2][_arg3] = _arg4;
_hasData = (_hasData + 1);
}
public function hasProject(_arg1:Number):Boolean{
return (_projectData[_arg1]);
}
public function clearKey(_arg1:Number):void{
_clearInternal(_arg1, _key);
}
private function _renderDataType(_arg1:Array):String{
var _local2:Array;
var _local3:String;
var _local4:int;
_local2 = [];
_local4 = 0;
while (_local4 < _arg1.length) {
if (_arg1[_local4] != undefined){
_local3 = "";
if (((!((_local4 == _minimum))) && ((_arg1[(_local4 - 1)] == undefined)))){
_local3 = (_local3 + _local4.toString());
_local3 = (_local3 + _delimNumValue);
};
_local3 = (_local3 + _escapeExtensibleValue(_arg1[_local4]));
_local2.push(_local3);
};
_local4++;
};
return (((_delimBegin + _local2.join(_delimSet)) + _delimEnd));
}
public function getKey(_arg1:Number, _arg2:Number):String{
return ((_getInternal(_arg1, _key, _arg2) as String));
}
public function clearValue(_arg1:Number):void{
_clearInternal(_arg1, _value);
}
public function renderMergedUrlString(_arg1:X10=null):String{
var _local2:Array;
var _local3:String;
if (!_arg1){
return (renderUrlString());
};
_local2 = [_arg1.renderUrlString()];
for (_local3 in _projectData) {
if (((hasProject(Number(_local3))) && (!(_arg1.hasProject(Number(_local3)))))){
_local2.push((_local3 + _renderProject(_projectData[_local3])));
};
};
return (_local2.join(""));
}
public function setValue(_arg1:Number, _arg2:Number, _arg3:Number):Boolean{
if (((((!((Math.round(_arg3) == _arg3))) || (isNaN(_arg3)))) || ((_arg3 == Infinity)))){
return (false);
};
_setInternal(_arg1, _value, _arg2, _arg3.toString());
return (true);
}
public function renderUrlString():String{
var _local1:Array;
var _local2:String;
_local1 = [];
for (_local2 in _projectData) {
if (hasProject(Number(_local2))){
_local1.push((_local2 + _renderProject(_projectData[_local2])));
};
};
return (_local1.join(""));
}
private function _getInternal(_arg1:Number, _arg2:String, _arg3:Number):Object{
if (((hasProject(_arg1)) && (!((_projectData[_arg1][_arg2] == undefined))))){
return (_projectData[_arg1][_arg2][_arg3]);
};
return (undefined);
}
public function setKey(_arg1:Number, _arg2:Number, _arg3:String):Boolean{
_setInternal(_arg1, _key, _arg2, _arg3);
return (true);
}
public function getValue(_arg1:Number, _arg2:Number){
var _local3:*;
_local3 = _getInternal(_arg1, _value, _arg2);
if (_local3 == null){
return (null);
};
return (Number(_local3));
}
private function _renderProject(_arg1:Object):String{
var _local2:String;
var _local3:Boolean;
var _local4:int;
var _local5:Array;
var _local6:int;
_local2 = "";
_local3 = false;
_local6 = _set.length;
_local4 = 0;
while (_local4 < _local6) {
_local5 = _arg1[_set[_local4]];
if (_local5){
if (_local3){
_local2 = (_local2 + _set[_local4]);
};
_local2 = (_local2 + _renderDataType(_local5));
_local3 = false;
} else {
_local3 = true;
};
_local4++;
};
return (_local2);
}
private function _escapeExtensibleValue(_arg1:String):String{
var _local2:String;
var _local3:int;
var _local4:String;
var _local5:String;
_local2 = "";
_local3 = 0;
while (_local3 < _arg1.length) {
_local4 = _arg1.charAt(_local3);
_local5 = _escapeCharMap[_local4];
if (_local5){
_local2 = (_local2 + _local5);
} else {
_local2 = (_local2 + _local4);
};
_local3++;
};
return (_local2);
}
}
}//package com.google.analytics.data
Section 42
//_Style (com.google.analytics.debug._Style)
package com.google.analytics.debug {
import flash.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 43
//Alert (com.google.analytics.debug.Alert)
package com.google.analytics.debug {
import flash.events.*;
public class Alert extends Label {
public var actionOnNextLine:Boolean;// = true
public var autoClose:Boolean;// = true
private var _actions:Array;
public function Alert(_arg1:String, _arg2:Array, _arg3:String="uiAlert", _arg4:uint=0, _arg5:Align=null, _arg6:Boolean=false, _arg7:Boolean=true){
var _local8:int;
autoClose = true;
actionOnNextLine = true;
if (_arg4 == 0){
_arg4 = Style.alertColor;
};
if (_arg5 == null){
_arg5 = Align.center;
};
super(_arg1, _arg3, _arg4, _arg5, _arg6);
this.selectable = true;
super.mouseChildren = true;
this.buttonMode = true;
this.mouseEnabled = true;
this.useHandCursor = true;
this.actionOnNextLine = _arg7;
_actions = [];
_local8 = 0;
while (_local8 < _arg2.length) {
_arg2[_local8].container = this;
_actions.push(_arg2[_local8]);
_local8++;
};
}
protected function getAction(_arg1:String):AlertAction{
var _local2:int;
_local2 = 0;
while (_local2 < _actions.length) {
if (_arg1 == _actions[_local2].activator){
return (_actions[_local2]);
};
_local2++;
};
return (null);
}
override protected function layout():void{
super.layout();
_defineActions();
}
protected function spaces(_arg1:int):String{
var _local2:String;
var _local3:String;
var _local4:int;
_local2 = "";
_local3 = " ";
_local4 = 0;
while (_local4 < (_arg1 + 1)) {
_local2 = (_local2 + _local3);
_local4++;
};
return (_local2);
}
override public function onLink(_arg1:TextEvent):void{
var _local2:AlertAction;
if (isValidAction(_arg1.text)){
_local2 = getAction(_arg1.text);
if (_local2){
_local2.execute();
};
};
if (autoClose){
close();
};
}
protected function isValidAction(_arg1:String):Boolean{
var _local2:int;
_local2 = 0;
while (_local2 < _actions.length) {
if (_arg1 == _actions[_local2].activator){
return (true);
};
_local2++;
};
return (false);
}
private function _defineActions():void{
var _local1:String;
var _local2:Array;
var _local3:AlertAction;
var _local4:int;
_local1 = "";
if (actionOnNextLine){
_local1 = (_local1 + "\n");
} else {
_local1 = (_local1 + " |");
};
_local1 = (_local1 + " ");
_local2 = [];
_local4 = 0;
while (_local4 < _actions.length) {
_local3 = _actions[_local4];
_local2.push((((("<a href=\"event:" + _local3.activator) + "\">") + _local3.name) + "</a>"));
_local4++;
};
_local1 = (_local1 + _local2.join(" | "));
appendText(_local1, "uiAlertAction");
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 44
//AlertAction (com.google.analytics.debug.AlertAction)
package com.google.analytics.debug {
public class AlertAction {
public var container:Alert;
private var _callback;
public var name:String;
public var activator:String;
public function AlertAction(_arg1:String, _arg2:String, _arg3){
this.name = _arg1;
this.activator = _arg2;
_callback = _arg3;
}
public function execute():void{
if (_callback){
if ((_callback is Function)){
(_callback as Function)();
} else {
if ((_callback is String)){
var _local1 = container;
_local1[_callback]();
};
};
};
}
}
}//package com.google.analytics.debug
Section 45
//Align (com.google.analytics.debug.Align)
package com.google.analytics.debug {
public class Align {
private var _value:int;
private var _name:String;
public static const bottomRight:Align = new Align(18, "bottomRight");
;
public static const right:Align = new Align(16, "right");
;
public static const left:Align = new Align(32, "left");
;
public static const topRight:Align = new Align(17, "topRight");
;
public static const bottom:Align = new Align(2, "bottom");
;
public static const bottomLeft:Align = new Align(34, "bottomLeft");
;
public static const topLeft:Align = new Align(33, "topLeft");
;
public static const center:Align = new Align(0x0100, "center");
;
public static const none:Align = new Align(0, "none");
;
public static const top:Align = new Align(1, "top");
;
public function Align(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.debug
Section 46
//Background (com.google.analytics.debug.Background)
package com.google.analytics.debug {
import flash.display.*;
public class Background {
public static function drawRounded(_arg1, _arg2:Graphics, _arg3:uint=0, _arg4:uint=0):void{
var _local5:uint;
var _local6:uint;
var _local7:uint;
_local7 = Style.roundedCorner;
if ((((_arg3 > 0)) && ((_arg4 > 0)))){
_local5 = _arg3;
_local6 = _arg4;
} else {
_local5 = _arg1.width;
_local6 = _arg1.height;
};
if (((_arg1.stickToEdge) && (!((_arg1.alignement == Align.none))))){
switch (_arg1.alignement){
case Align.top:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, _local7, _local7);
break;
case Align.topLeft:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, 0, _local7);
break;
case Align.topRight:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, _local7, 0);
break;
case Align.bottom:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, _local7, 0, 0);
break;
case Align.bottomLeft:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, _local7, 0, 0);
break;
case Align.bottomRight:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, 0, 0, 0);
break;
case Align.left:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, _local7, 0, _local7);
break;
case Align.right:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, 0, _local7, 0);
break;
case Align.center:
_arg2.drawRoundRect(0, 0, _local5, _local6, _local7, _local7);
break;
};
} else {
_arg2.drawRoundRect(0, 0, _local5, _local6, _local7, _local7);
};
}
}
}//package com.google.analytics.debug
Section 47
//Debug (com.google.analytics.debug.Debug)
package com.google.analytics.debug {
import flash.events.*;
import flash.ui.*;
public class Debug extends Label {
private var _lines:Array;
private var _preferredForcedWidth:uint;// = 540
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 48
//DebugConfiguration (com.google.analytics.debug.DebugConfiguration)
package com.google.analytics.debug {
import com.google.analytics.core.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
public class DebugConfiguration {
public var showHideKey:Number;
private var _mode:VisualDebugMode;
private var _verbose:Boolean;// = false
public var destroyKey:Number;
public var GIFRequests:Boolean;// = false
public var 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 49
//FailureAlert (com.google.analytics.debug.FailureAlert)
package com.google.analytics.debug {
public class FailureAlert extends Alert {
public function FailureAlert(_arg1:DebugConfiguration, _arg2:String, _arg3:Array){
var _local4:Align;
var _local5:Boolean;
var _local6:Boolean;
_local4 = Align.bottomLeft;
_local5 = true;
_local6 = false;
if (_arg1.verbose){
_arg2 = ((("<u><span class=\"uiAlertTitle\">Failure</span>" + spaces(18)) + "</u>\n\n") + _arg2);
_local4 = Align.center;
_local5 = false;
_local6 = true;
};
super(_arg2, _arg3, "uiFailure", Style.failureColor, _local4, _local5, _local6);
}
}
}//package com.google.analytics.debug
Section 50
//GIFRequestAlert (com.google.analytics.debug.GIFRequestAlert)
package com.google.analytics.debug {
public class GIFRequestAlert extends Alert {
public function GIFRequestAlert(_arg1:String, _arg2:Array){
super(_arg1, _arg2);
}
}
}//package com.google.analytics.debug
Section 51
//ILayout (com.google.analytics.debug.ILayout)
package com.google.analytics.debug {
import 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 52
//Info (com.google.analytics.debug.Info)
package com.google.analytics.debug {
import flash.events.*;
import flash.utils.*;
public class Info extends Label {
private var _timer:Timer;
public function Info(_arg1:String="", _arg2:uint=3000){
super(_arg1, "uiInfo", Style.infoColor, Align.top, true);
if (_arg2 > 0){
_timer = new Timer(_arg2, 1);
_timer.start();
_timer.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete, false, 0, true);
};
}
public function onComplete(_arg1:TimerEvent):void{
close();
}
override public function onLink(_arg1:TextEvent):void{
switch (_arg1.text){
case "hide":
close();
break;
};
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 53
//Label (com.google.analytics.debug.Label)
package com.google.analytics.debug {
import flash.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 54
//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 55
//Margin (com.google.analytics.debug.Margin)
package com.google.analytics.debug {
public class Margin {
public var bottom:int;
public var top:int;
public var right:int;
public var left:int;
public function Margin(_arg1:int=0, _arg2:int=0, _arg3:int=0, _arg4:int=0){
this.top = _arg1;
this.bottom = _arg2;
this.left = _arg3;
this.right = _arg4;
}
}
}//package com.google.analytics.debug
Section 56
//Panel (com.google.analytics.debug.Panel)
package com.google.analytics.debug {
import flash.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 57
//Style (com.google.analytics.debug.Style)
package com.google.analytics.debug {
public const Style:_Style = new _Style();
}//package com.google.analytics.debug
Section 58
//SuccessAlert (com.google.analytics.debug.SuccessAlert)
package com.google.analytics.debug {
public class SuccessAlert extends Alert {
public function SuccessAlert(_arg1:DebugConfiguration, _arg2:String, _arg3:Array){
var _local4:Align;
var _local5:Boolean;
var _local6:Boolean;
_local4 = Align.bottomLeft;
_local5 = true;
_local6 = false;
if (_arg1.verbose){
_arg2 = ((("<u><span class=\"uiAlertTitle\">Success</span>" + spaces(18)) + "</u>\n\n") + _arg2);
_local4 = Align.center;
_local5 = false;
_local6 = true;
};
super(_arg2, _arg3, "uiSuccess", Style.successColor, _local4, _local5, _local6);
}
}
}//package com.google.analytics.debug
Section 59
//UISprite (com.google.analytics.debug.UISprite)
package com.google.analytics.debug {
import flash.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 60
//Warning (com.google.analytics.debug.Warning)
package com.google.analytics.debug {
import flash.events.*;
import flash.utils.*;
public class Warning extends Label {
private var _timer:Timer;
public function Warning(_arg1:String="", _arg2:uint=3000){
super(_arg1, "uiWarning", Style.warningColor, Align.top, false);
margin.top = 32;
if (_arg2 > 0){
_timer = new Timer(_arg2, 1);
_timer.start();
_timer.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete, false, 0, true);
};
}
public function onComplete(_arg1:TimerEvent):void{
close();
}
override public function onLink(_arg1:TextEvent):void{
switch (_arg1.text){
case "hide":
close();
break;
};
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 61
//VisualDebugMode (com.google.analytics.debug.VisualDebugMode)
package com.google.analytics.debug {
public class VisualDebugMode {
private var _value:int;
private var _name:String;
public static const advanced:VisualDebugMode = new VisualDebugMode(1, "advanced");
;
public static const geek:VisualDebugMode = new VisualDebugMode(2, "geek");
;
public static const basic:VisualDebugMode = new VisualDebugMode(0, "basic");
;
public function VisualDebugMode(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.debug
Section 62
//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 63
//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 64
//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 65
//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 66
//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 67
//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 68
//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 69
//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 70
//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 71
//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 72
//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 73
//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 74
//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 75
//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 76
//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 77
//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 78
//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 79
//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 80
//Attach (com.zlonggames.wenguanghui.Tool.Attach)
package com.zlonggames.wenguanghui.Tool {
import flash.display.*;
import flash.media.*;
import flash.utils.*;
public class Attach {
public static function f_getSprite(_arg1:String):Sprite{
var _local2:Class;
var _local3:Sprite;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function f_getMovieClip(_arg1:String):MovieClip{
var _local2:Class;
var _local3:MovieClip;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function f_getSound(_arg1:String):Sound{
var _local2:Class;
var _local3:Sound;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function f_getBitmapData(_arg1:String):BitmapData{
var _local2:Class;
var _local3:BitmapData;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new _local2(null, null);
return (_local3);
}
}
}//package com.zlonggames.wenguanghui.Tool
Section 81
//AIAdBase (game.ai.AIAdBase)
package game.ai {
import game.unit.*;
import game.mc.base.*;
public class AIAdBase extends AIBase {
private var _timer:int;
private var _normalSpd:int;
private var _frameToPlayer:int;
private var _ifCount:Boolean;
public function AIAdBase(_arg1:EBase, _arg2:BaseCleanMC, _arg3:int, _arg4:int, _arg5:int){
super(_arg1, _arg2, _arg3, _arg4);
_frameToPlayer = _arg5;
_timer = 0;
_ifCount = false;
_normalSpd = sp;
}
override public function runAI():void{
_timer++;
if (_ifCount){
if ((_timer % _frameToPlayer) == 0){
setPointAndSpd(new PointL(p.midX, p.midY), (_normalSpd * 2));
_ifCount = false;
};
};
}
public function set ifCount(_arg1:Boolean):void{
if (_arg1){
_timer = 0;
} else {
sp = _normalSpd;
};
_ifCount = _arg1;
}
}
}//package game.ai
Section 82
//AIBase (game.ai.AIBase)
package game.ai {
import game.unit.*;
import game.mc.base.*;
public class AIBase {
protected var eb:EBase;
protected var _dir:int;
protected var p:BaseCleanMC;
protected var toP:PointL;
protected var sp:int;
public function AIBase(_arg1:EBase, _arg2:BaseCleanMC, _arg3:int, _arg4:int){
eb = _arg1;
toP = new PointL(Math.floor((Math.random() * 640)), Math.floor((Math.random() * 480)));
sp = _arg3;
p = _arg2;
_dir = _arg4;
toDir(_arg4);
}
public function runAI():void{
}
protected function toPoint():void{
eb.gotoPoint(toP, sp);
}
public function toDir(_arg1:int):void{
if (_arg1 == 1){
eb.setSpd(0, -(sp));
} else {
if (_arg1 == 2){
eb.setSpd(0, sp);
} else {
if (_arg1 == 3){
eb.setSpd(-(sp), 0);
} else {
if (_arg1 == 4){
eb.setSpd(sp, 0);
} else {
if (_arg1 == 5){
eb.setSpd(-(sp), -(sp));
} else {
if (_arg1 == 6){
eb.setSpd(-(sp), sp);
} else {
if (_arg1 == 7){
eb.setSpd(sp, -(sp));
} else {
if (_arg1 == 8){
eb.setSpd(sp, sp);
};
};
};
};
};
};
};
};
}
public function get speed():int{
return (sp);
}
public function setPointAndSpd(_arg1:PointL, _arg2:int):void{
toP = _arg1;
sp = _arg2;
eb.gotoPoint(toP, sp);
}
}
}//package game.ai
Section 83
//AIBoss1 (game.ai.AIBoss1)
package game.ai {
import game.unit.*;
import game.mc.base.*;
import game.mc.unit.*;
import game.array.*;
import game.sound.ctrl.*;
public class AIBoss1 extends AIBase {
private var timer:int;
private var _timeToTurn:int;
private var _gba:GArray;
private var _hba:HArray;
private var _timeToFire:int;
public function AIBoss1(_arg1:EBoss, _arg2:BaseCleanMC, _arg3:HArray, _arg4:GArray, _arg5:int, _arg6:int, _arg7:int, _arg8:int){
super(_arg1, _arg2, _arg5, _arg6);
timer = 0;
_hba = _arg3;
_gba = _arg4;
_timeToTurn = _arg7;
_timeToFire = _arg8;
}
public function bombSelf():void{
(eb as EBoss).doFire(1);
}
override public function runAI():void{
if ((eb as EBoss).isToFire){
if ((eb as EBoss).isCanFire){
new BombH(eb.midX, eb.midY, 80, _hba);
SoundCtrl.playFx("fatAng");
};
} else {
timer++;
if ((timer % _timeToTurn) == 0){
setPointAndSpd(new PointL(p.midX, p.midY), sp);
};
if ((timer % _timeToFire) == 0){
bombSelf();
timer = (Math.random() * -100);
};
};
}
}
}//package game.ai
Section 84
//AIBoss2 (game.ai.AIBoss2)
package game.ai {
import game.unit.*;
import game.mc.base.*;
import game.mc.unit.*;
import game.array.*;
public class AIBoss2 extends AIBase {
private var timer:int;
private var _timeToTurn:int;
private var _gba:GArray;
private var _hba:HArray;
private var _timeToFire:int;
public function AIBoss2(_arg1:EBoss, _arg2:BaseCleanMC, _arg3:HArray, _arg4:GArray, _arg5:int, _arg6:int, _arg7:int, _arg8:int){
super(_arg1, _arg2, _arg5, _arg6);
timer = 0;
_hba = _arg3;
_gba = _arg4;
_timeToTurn = _arg7;
_timeToFire = _arg8;
}
public function dropBomb():void{
new BombG(new PointL(eb.midX, (eb.midY - 30)), new PointL(p.midX, p.midY), p.parent, _gba, (sp + 3));
new BombG(new PointL(eb.midX, (eb.midY - 30)), new PointL((p.midX + (Math.random() * 100)), (p.midY + (Math.random() * 100))), p.parent, _gba, (sp + 2));
new BombG(new PointL(eb.midX, (eb.midY - 30)), new PointL((p.midX - (Math.random() * 100)), (p.midY - (Math.random() * 100))), p.parent, _gba, (sp + 1));
}
override public function runAI():void{
if ((eb as EBoss).isToFire){
if ((eb as EBoss).isCanFire){
dropBomb();
};
} else {
timer++;
if ((timer % _timeToTurn) == 0){
setPointAndSpd(new PointL(p.midX, p.midY), sp);
};
if ((timer % _timeToFire) == 0){
(eb as EBoss).doFire(1);
timer = (Math.random() * -100);
};
};
}
}
}//package game.ai
Section 85
//AIBoss3 (game.ai.AIBoss3)
package game.ai {
import game.unit.*;
import game.mc.base.*;
import game.array.*;
public class AIBoss3 extends AIBase {
private var timer:int;
private var normalSpd:int;
private var _timeToTurn:int;
private var _gba:GArray;
private var _hba:HArray;
private var _timeToFire:int;
public function AIBoss3(_arg1:EBoss, _arg2:BaseCleanMC, _arg3:HArray, _arg4:GArray, _arg5:int, _arg6:int, _arg7:int, _arg8:int){
super(_arg1, _arg2, _arg5, _arg6);
timer = 0;
_hba = _arg3;
_gba = _arg4;
_timeToTurn = _arg7;
_timeToFire = _arg8;
normalSpd = sp;
}
override public function runAI():void{
if ((eb as EBoss).isToFire){
if ((eb as EBoss).isCanFire){
(eb as EBoss).blurOn();
setPointAndSpd(new PointL(p.midX, p.midY), (normalSpd * 5));
timer = (_timeToTurn + ((Math.random() * _timeToTurn) / 2));
};
} else {
timer++;
if ((timer % _timeToFire) == 0){
(eb as EBoss).blurOff();
(eb as EBoss).doFire(1);
};
if ((timer % _timeToTurn) == 0){
(eb as EBoss).blurOff();
setPointAndSpd(new PointL(p.midX, p.midY), normalSpd);
};
};
}
}
}//package game.ai
Section 86
//ItemMakeCtrl (game.array.unit.ItemMakeCtrl)
package game.array.unit {
import game.array.*;
public class ItemMakeCtrl {
protected var _ia:ItemArray;
private var _makeArray:Array;
public function ItemMakeCtrl(_arg1:Array){
_makeArray = _arg1;
}
public function initIA(_arg1:ItemArray):void{
_ia = _arg1;
}
public function imcRun(_arg1:int):void{
var _local2:ItemMakeUnit;
var _local3:int;
if (_makeArray[("dir" + _arg1)] != null){
_local2 = (_makeArray[("dir" + _arg1)] as ItemMakeUnit);
_local3 = 0;
while (_local3 < _local2.number) {
_ia.buildItem(_local2.type, _local2.lifeTime, _local2.score);
_local3++;
};
};
}
}
}//package game.array.unit
Section 87
//ItemMakeUnit (game.array.unit.ItemMakeUnit)
package game.array.unit {
public class ItemMakeUnit {
private var _lifeTime:int;
private var _number:int;
private var _score:int;
private var _type:int;
public function ItemMakeUnit(_arg1:int, _arg2:int, _arg3:int, _arg4:int=1){
_lifeTime = _arg2;
_score = _arg3;
_type = _arg1;
_number = _arg4;
}
public function get type():int{
return (_type);
}
public function get score():int{
return (_score);
}
public function get number():int{
return (_number);
}
public function get lifeTime():int{
return (_lifeTime);
}
}
}//package game.array.unit
Section 88
//BombArray (game.array.BombArray)
package game.array {
import game.unit.*;
import game.mc.base.*;
import game.core.*;
import game.mc.unit.*;
import game.sound.ctrl.*;
public class BombArray {
private var theArray:Array;
private var _player:BaseCleanMC;
private var _ac:ArrayCtrl;
private var _core:Core;
public function BombArray(_arg1:ArrayCtrl, _arg2:BaseCleanMC, _arg3:Core){
_ac = _arg1;
_player = _arg2;
_core = _arg3;
theArray = new Array();
}
public function addOne(_arg1:Bomb):void{
if (theArray.indexOf(_arg1) == -1){
_core.itemSp.addChild(_arg1);
theArray.push(_arg1);
};
}
public function removeOne(_arg1:Bomb):void{
var _local2:int;
_local2 = theArray.indexOf(_arg1);
if (_local2 != -1){
theArray.splice(_local2, 1);
};
}
private function ckBomb(_arg1:Bomb):Boolean{
var _local2:PointL;
var _local3:Line;
var _local4:PointL;
if (_ac.newLineArray != null){
_local2 = new PointL(_player.midX, _player.midY);
_local3 = (_ac.newLineArray[(_ac.newLineArray.length - 1)] as Line);
_local4 = new PointL(Math.round(_arg1.x), Math.round(_arg1.y));
if (((((_local3.pointIn(_local4)) && ((Math.abs((_local2.x - _local4.x)) < (_arg1.width / 2))))) && ((Math.abs((_local2.y - _local4.y)) < (_arg1.height / 2))))){
return (true);
};
};
return (false);
}
public function bombRun():void{
var _local1:int;
var _local2:Bomb;
_local1 = 0;
while (_local1 < theArray.length) {
_local2 = theArray[_local1];
if (_ac.newLineArray != null){
if (ckBomb(_local2)){
_core.restartLife();
SoundCtrl.playFx("boomB");
_local2.removeSelf();
if (((!((_local2.parent == null))) && (!((_player.parent == null))))){
_local2.parent.removeChild(_local2);
_player.parent.addChild(_local2);
};
} else {
_local2.bombRun(_ac.newLineArray, 15);
_local1++;
};
} else {
_local2.removeSelf();
};
};
}
public function removeAll():void{
while (theArray.length > 0) {
theArray[0].removeSelf();
trace("removeB");
};
theArray = null;
}
}
}//package game.array
Section 89
//EArray (game.array.EArray)
package game.array {
import game.unit.*;
import game.mc.base.*;
import game.core.*;
import game.mc.unit.*;
import game.sound.ctrl.*;
import game.tool.*;
public class EArray {
private var _timer:int;
private var _ac:ArrayCtrl;
private var _player:BaseCleanMC;
private var _ba:BombArray;
private var theArray:Array;
private var _core:Core;
public function EArray(_arg1:ArrayCtrl, _arg2:BaseCleanMC, _arg3:BombArray, _arg4:Core){
_ac = _arg1;
_player = _arg2;
_ba = _arg3;
_timer = 0;
_core = _arg4;
theArray = new Array();
}
public function addOne(_arg1:EBase):void{
if (theArray.indexOf(_arg1) == -1){
theArray.push(_arg1);
};
}
public function removeOne(_arg1:EBase):void{
var _local2:int;
_local2 = theArray.indexOf(_arg1);
if (_local2 != -1){
theArray.splice(_local2, 1);
};
}
public function playAll():void{
var _local1:EBase;
for each (_local1 in theArray) {
_local1.play();
};
}
public function bossToZero():void{
var _local1:EBase;
for each (_local1 in theArray) {
if ((_local1 is EBoss)){
(_local1 as EBoss).endFire();
};
};
}
public function set allAiAd(_arg1:Boolean):void{
var _local2:EBase;
for each (_local2 in theArray) {
if (!(_local2 is EBoss)){
_local2.aiCount = _arg1;
};
};
}
private function makePointInLine(_arg1:Line, _arg2:PointL):PointL{
if ((_arg1 is XLine)){
if (_arg2.x > _arg1.maxX){
return (new PointL(_arg1.maxX, _arg1.startPoint.y));
};
if (_arg2.x < _arg1.minX){
return (new PointL(_arg1.minX, _arg1.startPoint.y));
};
} else {
if ((_arg1 is YLine)){
if (_arg2.y > _arg1.maxY){
return (new PointL(_arg1.startPoint.x, _arg1.maxY));
};
if (_arg2.y < _arg1.minY){
return (new PointL(_arg1.startPoint.x, _arg1.minY));
};
};
};
return (null);
}
private function changeL():void{
var _local1:EBase;
var _local2:int;
var _local3:EBase;
var _local4:int;
for each (_local1 in theArray) {
_local2 = _local1.parent.getChildIndex(_local1);
for each (_local3 in theArray) {
if (((!((_local1 == _local3))) && (_local1.ifHit(_local3)))){
_local4 = _local3.parent.getChildIndex(_local3);
if (_local1.y > _local3.y){
if (_local4 > _local2){
_local1.parent.swapChildren(_local1, _local3);
};
} else {
if (_local4 < _local2){
_local1.parent.swapChildren(_local1, _local3);
};
};
};
};
if (_player.ifHit(_local1)){
_local4 = _player.parent.getChildIndex(_player);
if (_local1.y > _player.y){
if (_local4 > _local2){
_local1.parent.swapChildren(_local1, _player);
};
} else {
if (_local4 < _local2){
_local1.parent.swapChildren(_local1, _player);
};
};
};
};
}
public function eCatch():void{
var _local1:int;
var _local2:int;
var _local3:EBase;
_local1 = 0;
_local2 = 0;
while (_local2 < theArray.length) {
_local3 = theArray[_local2];
if ((Tool.ckCrossNum(_local3.midX, _local3.midY, _ac.lineArray) % 2) == 0){
if (_local2 == 0){
_local3.setSpd(0, 0);
_local2++;
} else {
_local1++;
new Dead(_local3.parent, new PointL(_local3.midX, _local3.midY));
new ItemEnd(("+" + ((500 * _local1) * _core.scoreTime)), _core, _local3);
_local3.removeSelf();
trace("catch");
};
} else {
_local2++;
};
};
_core.scoreAdd(((500 * _local1) * _core.scoreTime));
_core.gameData.killNum = (_core.gameData.killNum + _local1);
}
public function eRun():void{
var _local1:EBase;
_timer++;
for each (_local1 in theArray) {
if ((Tool.ckCrossNum(_local1.midX, _local1.midY, _ac.lineArray) % 2) == 0){
_local1.toLast();
_local1.inTurn();
trace("E! in out");
} else {
_local1.setLast();
_local1.eRun();
eLoop(_local1);
};
};
if ((_timer % 8) == 0){
changeL();
};
}
private function eLoop(_arg1:EBase):void{
var _local2:int;
var _local3:Array;
var _local4:Line;
var _local5:PointL;
var _local6:Array;
var _local7:Line;
var _local8:PointL;
if (_arg1.isStop){
_arg1.randomPoint();
};
_local2 = 0;
while (_local2 < _arg1.speedTime) {
_arg1.run();
_local3 = Hit.eBaseHitLineArrayToLine(_arg1, _ac.lineArray);
_local4 = Hit.lineTheClose(_local3, _arg1);
if (_local4 != null){
_local5 = Hit.eBaseHitLineArrayToPoint(_local4, _arg1);
if (!_local4.pointIn(_local5)){
_local5 = makePointInLine(_local4, _local5);
};
if ((_local4 is XLine)){
_arg1.turnYspd(_local5);
} else {
if ((_local4 is YLine)){
_arg1.turnXspd(_local5);
};
};
break;
};
if (_ac.newPointArray.length > 0){
_local6 = Hit.eBaseHitLineArrayToLine(_arg1, _ac.newLineArray);
_local7 = Hit.lineTheClose(_local6, _arg1);
if (_local7 != null){
_local8 = Hit.eBaseHitLineArrayToPoint(_local7, _arg1);
if (!_local7.pointIn(_local8)){
_local8 = makePointInLine(_local7, _local8);
};
if (Tool.pointInPointArray(_local8, _ac.newPointArray)){
_arg1.turnYspd(_local8);
_arg1.turnXspd(_local8);
} else {
if ((_local7 is XLine)){
_arg1.turnYspd(_local8);
} else {
if ((_local7 is YLine)){
_arg1.turnXspd(_local8);
};
};
};
new Bomb(_ba, _local8);
SoundCtrl.playFx("makeBomb");
break;
};
};
_local2++;
};
}
public function get boss():EBase{
if (theArray.length > 0){
return ((theArray[0] as EBase));
};
return (null);
}
public function removeAll():void{
while (theArray.length > 0) {
theArray[0].removeSelf();
trace("removeE");
};
theArray = null;
}
public function stopAll():void{
var _local1:EBase;
for each (_local1 in theArray) {
_local1.stop();
};
}
}
}//package game.array
Section 90
//GArray (game.array.GArray)
package game.array {
import game.unit.*;
import game.mc.unit.*;
import game.tool.*;
public class GArray {
private var theArray:Array;
private var _ac:ArrayCtrl;
private var _ba:BombArray;
public function GArray(_arg1:ArrayCtrl, _arg2:BombArray){
_ba = _arg2;
_ac = _arg1;
theArray = new Array();
}
public function gRun():void{
var _local1:BombG;
var _local2:PointL;
for each (_local1 in theArray) {
_local2 = nextHitL(_local1);
if (_local2 != null){
new Bomb(_ba, _local2, true);
_local1.removeSelf();
} else {
if ((((((((_local1.x > 640)) || ((_local1.x < 0)))) || ((_local1.y < 0)))) || ((_local1.y > 480)))){
_local1.removeSelf();
};
};
};
}
public function addOne(_arg1:BombG):void{
if (theArray.indexOf(_arg1) == -1){
theArray.push(_arg1);
};
}
public function removeOne(_arg1:BombG):void{
var _local2:int;
_local2 = theArray.indexOf(_arg1);
if (_local2 != -1){
theArray.splice(_local2, 1);
};
}
public function nextHitL(_arg1:BombG):PointL{
var _local2:int;
var _local3:Line;
_local2 = 0;
while (_local2 < _arg1.speedTime) {
_arg1.gRun();
if (_ac.newLineArray != null){
_local3 = Tool.ifHitLineR(new PointL(_arg1.nextXdir, _arg1.nextYdir), (_arg1.r / 1.5), _ac.newLineArray, 2);
if (_local3 != null){
if ((_local3 is XLine)){
return (new PointL(_arg1.midX, _local3.startPoint.y));
};
if ((_local3 is YLine)){
return (new PointL(_local3.startPoint.x, _arg1.midY));
};
};
};
_local2++;
};
return (null);
}
public function removeAll():void{
while (theArray.length > 0) {
theArray[0].removeSelf();
trace("removeG");
};
theArray = null;
}
}
}//package game.array
Section 91
//HArray (game.array.HArray)
package game.array {
import game.unit.*;
import game.mc.base.*;
import game.core.*;
import game.mc.unit.*;
import game.sound.ctrl.*;
import game.tool.*;
public class HArray {
private var _player:BaseCleanMC;
private var theArray:Array;
private var _ac:ArrayCtrl;
private var _core:Core;
public function HArray(_arg1:Core, _arg2:BaseCleanMC, _arg3:ArrayCtrl){
_core = _arg1;
_player = _arg2;
_ac = _arg3;
theArray = new Array();
}
public function hRun():void{
var _local1:BombH;
for each (_local1 in theArray) {
_local1.hRun();
};
}
public function addOne(_arg1:BombH):void{
if (theArray.indexOf(_arg1) == -1){
theArray.push(_arg1);
_core.addToLastSp(_arg1);
};
}
public function removeOne(_arg1:BombH):void{
var _local2:int;
_local2 = theArray.indexOf(_arg1);
if (_local2 != -1){
theArray.splice(_local2, 1);
};
}
public function nextHitE(_arg1:EBase):void{
var _local2:PointL;
var _local3:BombH;
_local2 = new PointL(_arg1.nextX, _arg1.nextY);
for each (_local3 in theArray) {
if (((_local3.ifHitPoint(_local2)) && ((_local3.now == 2)))){
_arg1.setSpd(0, 0);
_arg1.randomPoint();
};
};
}
public function nextHitP(_arg1:BaseCleanMC):void{
var _local2:PointL;
var _local3:BombH;
_local2 = new PointL(_arg1.nextX, _player.nextY);
for each (_local3 in theArray) {
if (((((!((_arg1.mActNum == 0))) && (!(Tool.pointInLineArray(_local2, _ac.lineArray))))) && (_local3.ifHitPoint(_local2)))){
if ((((_local3.now >= 1)) && ((_local3.now <= 3)))){
_core.restartLife();
SoundCtrl.playFx("deadB");
break;
} else {
if (_local3.now == 4){
_arg1.change4WSpd(0, 5);
break;
};
};
};
};
}
public function cleanInScreen():void{
while (theArray.length > 0) {
theArray[0].removeSelf();
trace("removeH");
};
}
public function removeAll():void{
while (theArray.length > 0) {
theArray[0].removeSelf();
trace("removeH");
};
theArray = null;
}
}
}//package game.array
Section 92
//ItemArray (game.array.ItemArray)
package game.array {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.core.*;
import game.mc.unit.*;
import game.array.unit.*;
import game.sound.ctrl.*;
import game.make.*;
public class ItemArray {
private var _player:BaseCleanMC;
private var _con:DisplayObjectContainer;
private var _timer:int;
private var theArray:Array;
private var _imc:ItemMakeCtrl;
private var _ac:ArrayCtrl;
private var _core:Core;
public function ItemArray(_arg1:Core, _arg2:BaseCleanMC, _arg3:ArrayCtrl, _arg4:DisplayObjectContainer, _arg5:ItemMakeCtrl){
_core = _arg1;
_player = _arg2;
_ac = _arg3;
theArray = new Array();
_timer = 0;
_con = _arg4;
_imc = _arg5;
_imc.initIA(this);
}
public function ifInAC():void{
var _local1:int;
var _local2:Item;
_local1 = 0;
while (_local1 < theArray.length) {
_local2 = theArray[_local1];
if (_local2.ifIn(_ac)){
_local2.actToPlayer(_player);
_local2.actToCore(_core);
_local2.removeSelf();
} else {
_local1++;
};
};
}
public function addOne(_arg1:Item):void{
if (theArray.indexOf(_arg1) == -1){
theArray.push(_arg1);
};
}
public function removeOne(_arg1:Item):void{
var _local2:int;
_local2 = theArray.indexOf(_arg1);
if (_local2 != -1){
theArray.splice(_local2, 1);
};
}
public function buildItem(_arg1:int, _arg2:int, _arg3:int=0):void{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:PointL;
var _local8:Item;
_local4 = 0;
while (_local4 < 1000) {
_local5 = Math.floor((Math.random() * 640));
_local6 = Math.floor((Math.random() * 480));
_local7 = new PointL(_local5, _local6);
_local8 = new Item(_local7, null, null, 0);
if (!_local8.ifInEX(_ac)){
MakeI.makeItem(_local7, _con, this, _arg2, _arg1, _arg3);
break;
};
_local4++;
};
}
public function iRun():void{
var _local1:int;
var _local2:Item;
_timer++;
_local1 = 0;
while (_local1 < theArray.length) {
_local2 = theArray[_local1];
_local2.iRun();
if (_local2.hitPlayer(_player)){
_local2.actToPlayer(_player);
_local2.actToCore(_core);
_local2.removeSelf();
SoundCtrl.playFx("itemB");
} else {
if (_local2.timer > _local2.timeLong){
_local2.removeD();
} else {
_local1++;
};
};
};
_imc.imcRun(_timer);
}
public function cleanInScreen():void{
var _local1:Item;
for each (_local1 in theArray) {
_local1.removeSelf();
};
}
public function removeAll():void{
while (theArray.length > 0) {
theArray[0].removeSelf();
};
while (_con.numChildren > 0) {
_con.removeChildAt(0);
};
theArray = null;
}
}
}//package game.array
Section 93
//Core (game.core.Core)
package game.core {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.mc.unit.*;
import game.array.*;
import zlong.country.*;
import gs.*;
import flash.geom.*;
import ui.*;
import game.level.*;
import game.data.*;
import flash.utils.*;
import game.sound.ctrl.*;
import game.tool.*;
import game.ctrl.*;
import game.make.*;
import game.mc.bg.*;
import game.mc.other.*;
public class Core extends Sprite {
private var _timeOut:TimeOut;
private var _eArray:EArray;
private var _gameData:InGameData;
private var ac:ArrayCtrl;
private var _lv:LevelBase;
private var key:KeyL;
private var _pauseTime:int;
private var _iArray:ItemArray;
private var _starTimer:int;
private var cleanView:UseClean;
private var _ifHowTo:Boolean;// = false
private var _lastSp:Sprite;
private var _scoreTime:int;// = 1
private var _so:SharedObject;
public var playerName:String;
private var isOver:Boolean;
private var _moveSp:Sprite;
private var _ui:UiCtrl;
private var _bombArray:BombArray;
private var _gArray:GArray;
private var walkLineView:FSP8;
private var moveLineView:FSP8;
private var mr:MrQuick;
private var maskView:Sprite;
private var _god:Boolean;// = false
private var _quality:int;
private var _isDead:Boolean;
private var defaultPoint:Array;
private var _itemSp:Sprite;
private var _hArray:HArray;
private static var _sound:Boolean;
private static var _music:Boolean;
private static var isP:Boolean;
public function Core(_arg1:Main, _arg2:LevelBase){
_god = false;
_ifHowTo = false;
_scoreTime = 1;
super();
_lv = _arg2;
_so = SharedObject.getLocal("clean");
_arg1.addChild(this);
_sound = true;
_music = true;
_quality = 1;
initPlayerName();
loadHowTo();
loadAll();
changeQ();
}
private function playWorldMusic():void{
var _local1:int;
_local1 = _gameData.levelNum;
if (_gameData.levelNum > 9){
_local1 = (_gameData.levelNum - 9);
};
_local1 = (Math.floor(((_local1 - 1) / 3)) + 1);
SoundCtrl.playMusic((("world" + _local1) + "_mp3"), int.MAX_VALUE);
}
private function scoreUpdate():void{
if (int(_gameData.score) > cleanView.score){
if (((int(_gameData.score) - cleanView.score) / 2) < 1){
cleanView.score++;
} else {
cleanView.score = (cleanView.score + ((int(_gameData.score) - cleanView.score) / 2));
};
} else {
if (int(_gameData.score) < cleanView.score){
cleanView.score = int(_gameData.score);
};
};
}
private function mainLoop(_arg1:Event):void{
var _local2:int;
if (!isP){
key.keyE(mr, ac);
_local2 = 0;
while (_local2 < mr.spdM) {
mr.mrLoop(ac, _hArray);
_local2++;
};
mr.speedTimeDown();
oneStep();
winAndLoss();
uiTimerLoop();
if (_gameData.isTimeOver(30000)){
cleanView.runTimer();
};
};
scoreUpdate();
if (_pauseTime == 0){
_pauseTime--;
if (((_isDead) && ((_gameData.life >= 0)))){
realRestartLife();
};
resume();
cleanView.resetTimer();
_gameData.resetTime();
} else {
if (_pauseTime > 0){
_pauseTime--;
};
};
}
public function get moveSp():Sprite{
return (_moveSp);
}
public function lifeAdd():void{
_gameData.life = (int(_gameData.life) + 1);
cleanView.ui.life = int(_gameData.life);
}
public function set sound(_arg1:Boolean):void{
_sound = _arg1;
saveAll();
}
private function winAndLoss():void{
if (ac.mapInfo >= _gameData.target){
scoreAdd((((ac.mapInfo * _gameData.levelNum) * 10) * ((ac.mapInfo / _gameData.target) + 1)));
if ((_gameData.levelNum % 9) == 0){
_ui.gameAllOver();
} else {
_ui.gameWin();
};
pause();
} else {
if (int(_gameData.life) < 0){
_ui.gameLoss();
pause();
};
};
}
public function resume():void{
isP = false;
_gameData.pauseTemp = (_gameData.pauseTemp + (getTimer() - _gameData.pauseTimer));
stage.focus = this;
cleanView.setLogo(true);
playWorldMusic();
}
public function showUIP():void{
_ui.gamePause();
}
public function initPlayerName():void{
var _local1:int;
if (_so.data.playerName != null){
playerName = _so.data.playerName;
} else {
_local1 = CountryInfo.instance.language;
switch (_local1){
case 1:
playerName = "Player1";
break;
case 2:
playerName = "Player1";
break;
case 3:
playerName = "Speler1";
break;
case 4:
playerName = "Joueur1";
break;
case 5:
playerName = "Spieler1";
break;
case 6:
playerName = "Jugador1";
break;
case 7:
playerName = "Jogador1";
break;
case 8:
playerName = "Jogador1";
break;
case 9:
playerName = "Giocatore1";
break;
case 10:
playerName = "Spelare1";
break;
case 11:
playerName = "Gracz1";
break;
case 12:
playerName = "Игрок1";
break;
case 13:
playerName = "Pemain1";
break;
case 14:
playerName = "プレイヤー";
break;
case 15:
playerName = "玩家";
break;
default:
playerName = "Player";
break;
};
};
trace(playerName);
}
public function set music(_arg1:Boolean):void{
_music = _arg1;
saveAll();
}
private function nextLevel(_arg1:MouseEvent):void{
}
private function oneStep():void{
_eArray.eRun();
_hArray.hRun();
_gArray.gRun();
_bombArray.bombRun();
_iArray.iRun();
walkLineView.run();
moveLineView.run();
_starTimer++;
if ((_starTimer % Math.floor(((Math.random() * 22) + 3))) == 0){
buildStar();
};
}
private function initLevel():void{
_gameData.target = _lv.target;
_gameData.levelTime = _lv.time;
cleanView.ui.setNow(0, _gameData.target);
cleanView.ui._score.text = (int(_gameData.score) + "");
if (_gameData.levelNum > 9){
cleanView.ui.setLevel((_gameData.levelNum - 9));
cleanView.ui._level.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0, 0, 0);
} else {
cleanView.ui.setLevel(_gameData.levelNum);
};
cleanView.ui.life = int(_gameData.life);
_gameData.timer = getTimer();
_gameData.pauseTemp = 0;
_gameData.levelTimeUse = 0;
_gameData.addTime = 0;
_gameData.killNum = 0;
cleanView.ui._time.text = _gameData.getStringTime(_lv.time);
playWorldMusic();
}
public function nextStep(_arg1:PointL):void{
if (((ac.ckLastNewPointSame(_arg1)) && ((ac.newPointArray.length == 1)))){
trace("same point one");
mr.run();
stopAndCleanOne();
} else {
if ((((((ac.newPointArray.length > 0)) && ((ac.newPointArray.length < 3)))) && (Tool.pointInSameLine((ac.newPointArray[0] as PointL), _arg1, ac.lineArray)))){
mr.run();
stopAndCleanOne();
} else {
if (((((!(mr.isStop)) && ((ac.newPointArray.length == 0)))) && (Tool.pointInLineArray(_arg1, ac.lineArray)))){
mr.run();
stopAndCleanOne();
} else {
nextToLine(_arg1);
setAllAiAd = false;
};
};
};
}
private function scoreSet(_arg1:int):void{
_gameData.score = _arg1;
}
public function get scoreTime():int{
return (_scoreTime);
}
public function removeAll():void{
isP = true;
_moveSp.removeChild(_lastSp);
_lastSp = null;
moveLineView.removeSelf();
mr.removeSelf();
cleanView.mask = null;
cleanView.removeChild(maskView);
removeChild(cleanView);
walkLineView.removeSelf();
_moveSp.removeChild(_itemSp);
_itemSp = null;
moveLineView = null;
mr = null;
maskView = null;
cleanView = null;
walkLineView = null;
defaultPoint = null;
ac.clean();
ac = null;
_bombArray.removeAll();
_bombArray = null;
_hArray.removeAll();
_hArray = null;
_gArray.removeAll();
_gArray = null;
_eArray.removeAll();
_eArray = null;
_iArray.removeAll();
_iArray = null;
removeChild(_timeOut);
_timeOut = null;
}
public function nextQuality():void{
_quality++;
stage.quality = StageQuality.HIGH;
if (_quality == 4){
_quality = 1;
};
changeQ();
saveAll();
}
private function changeQ():void{
switch (_quality){
case 1:
stage.quality = StageQuality.HIGH;
break;
case 2:
stage.quality = StageQuality.MEDIUM;
break;
case 3:
stage.quality = StageQuality.LOW;
break;
};
}
public function removeAllAndEvent():void{
removeAll();
stage.removeEventListener(Event.ENTER_FRAME, mainLoop);
key = null;
stage.removeEventListener(MouseEvent.MOUSE_UP, nextLevel);
_gameData = null;
}
public function scoreAdd(_arg1:int):void{
var _local2:int;
_local2 = _arg1;
scoreSet((_local2 + int(_gameData.score)));
}
public function restartLevel():void{
_gameData = null;
_gameData = new InGameData();
toLevel(_lv.levelNum);
}
public function get gameData():InGameData{
return (_gameData);
}
public function get itemSp():Sprite{
return (_itemSp);
}
public function over():void{
}
public function loadAll():void{
if (_so.data.quality > 0){
_quality = _so.data.quality;
_sound = _so.data.sound;
_music = _so.data.music;
} else {
saveAll();
};
}
public function saveAll():void{
_so.data.quality = _quality;
_so.data.sound = _sound;
_so.data.music = _music;
}
public function stopAndCleanOne():void{
mr.change4WSpd(0, 5);
mr.mActNum = 0;
ac.oneNewPointClean();
moveLineView.graphics.clear();
setAllAiAd = false;
}
private function timeUpStart():void{
_timeOut.visible = true;
TweenMax.to(_timeOut, 1, {scaleX:1.2, scaleY:1.2, onComplete:timeUpEnd});
}
public function get quality():int{
return (_quality);
}
private function replayWorldMusic():void{
SoundCtrl.stopMusic();
playWorldMusic();
}
public function init(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{
_lastSp = new Sprite();
_moveSp = new Sprite();
_itemSp = new Sprite();
moveLineView = new FSP8(_moveSp, 3);
walkLineView = new FSP8(_moveSp, 2, 7);
maskView = new Sprite();
maskView.graphics.lineStyle(1);
maskView.graphics.drawRect(-5, -5, 1, 1);
if (_gameData.levelNum > 9){
cleanView = new UseClean(maskView, (Math.floor((((_gameData.levelNum - 9) - 1) / 3)) + 1));
} else {
cleanView = new UseClean(maskView, (Math.floor(((_gameData.levelNum - 1) / 3)) + 1));
};
_moveSp.addChild(_itemSp);
_moveSp.addChild(_lastSp);
mr = new MrQuick(300, _arg4, _moveSp, this);
defaultPoint = new Array();
defaultPoint.push(new PointL(_arg1, _arg2));
defaultPoint.push(new PointL(_arg3, _arg2));
defaultPoint.push(new PointL(_arg3, _arg4));
defaultPoint.push(new PointL(_arg1, _arg4));
ac = new ArrayCtrl(defaultPoint, _arg1, _arg2, _arg3, _arg4);
_hArray = new HArray(this, mr, ac);
_bombArray = new BombArray(ac, mr, this);
_gArray = new GArray(ac, _bombArray);
_eArray = new EArray(ac, mr, _bombArray, this);
_iArray = new ItemArray(this, mr, ac, _itemSp, MakeIMCData.makeIMCData(_gameData.levelNum));
isP = false;
isOver = false;
walkLineView.graphics.clear();
Tool.drawByPointArray(walkLineView.graphics, ac.oldPointArray, false, 0xFF00, 5);
Tool.drawByPointArray(walkLineView.graphics, ac.oldPointArray, false, 0x3300, 1);
walkLineView.setTimes(2);
(_lv as LevelTest).initE(_moveSp, _eArray, mr, _hArray, _gArray);
addChild(cleanView);
addChild(_moveSp);
pause();
new ThreeTwoOne(this, this, _lv.levelNum);
_pauseTime = -1;
_isDead = false;
_starTimer = 0;
key.initKey();
_timeOut = new TimeOut();
_timeOut.x = 315;
_timeOut.y = 238;
_timeOut.scaleX = 0;
_timeOut.scaleY = 0;
_timeOut.visible = false;
addChild(_timeOut);
}
private function realRestartLife():void{
mr.redEnd();
_hArray.cleanInScreen();
if (ac.newPointArray.length > 0){
mr.setPoint((ac.newPointArray[0] as PointL));
};
mr.speedNormal();
stopAndCleanOne();
_gameData.life = (int(_gameData.life) - 1);
cleanView.ui.life = int(_gameData.life);
_eArray.bossToZero();
mr.ipStart();
}
private function uiTimerLoop():void{
cleanView.ui._time.text = _gameData.stringTime;
if (_gameData.isTimeOver(0)){
if (_gameData.life > 0){
timeUpStart();
};
restartLife();
};
}
public function cleanLineAndDraw():void{
moveLineView.graphics.clear();
Tool.drawLineByArrayAndPoint(moveLineView.graphics, ac.newPointArray, new PointL(mr.midX, mr.midY), 0xFFFF00, 5);
Tool.drawLineByArrayAndPoint(moveLineView.graphics, ac.newPointArray, new PointL(mr.midX, mr.midY), 0xFF0000, 1);
}
private function initEvent():void{
stage.addEventListener(Event.ENTER_FRAME, mainLoop);
key = new KeyL(stage, this);
stage.addEventListener(MouseEvent.MOUSE_UP, nextLevel);
}
public function saveHowTo():void{
_ifHowTo = true;
_so.data.ifHowTo = true;
_so.flush();
}
private function timeUpEnd():void{
TweenMax.to(_timeOut, 1, {scaleX:0, scaleY:0, delay:1.5, visible:false, onComplete:replayWorldMusic});
}
public function get current():int{
return (ac.mapInfo);
}
public function saveName(_arg1:String):void{
_so.data.playerName = _arg1;
_so.flush();
}
public function addToLastSp(_arg1:DisplayObject):void{
_arg1.x = (_arg1.x - cleanView.dx);
_arg1.y = (_arg1.y - cleanView.dy);
cleanView.getDirty().addChild(_arg1);
}
public function restartLife():void{
if (!_god){
mr.redStart();
_isDead = true;
if (int(_gameData.life) != 0){
pauseTime(100);
} else {
_gameData.life = (int(_gameData.life) - 1);
};
SoundCtrl.stopClean();
};
}
public function loadHowTo():void{
if (_so.data.ifHowTo == true){
_ifHowTo = _so.data.ifHowTo;
};
}
public function toLevel(_arg1:int):void{
removeAll();
_lv.levelNum = _arg1;
_gameData.levelNum = _arg1;
init(_lv.startX, _lv.startY, _lv.endX, _lv.endY);
initLevel();
}
public function get ifHowTo():Boolean{
return (_ifHowTo);
}
public function initUi(_arg1:UiCtrl):void{
_ui = _arg1;
}
public function set setAllAiAd(_arg1:Boolean):void{
_eArray.allAiAd = _arg1;
}
private function nextToLine(_arg1:PointL):void{
var _local2:int;
_local2 = ac.mapInfo;
mr.run();
mr.change4WSpd(0, 5);
mr.mActNum = 0;
ac.addPoint(_arg1, false);
FX.fxStarArray(_itemSp, ac.newLineArray);
ac.newOneStep(_eArray.boss.midX, _eArray.boss.midY);
_eArray.eCatch();
cleanView.ui.setNow(ac.mapInfo, _gameData.target);
Tool.drawByPointArray(maskView.graphics, ac.fillPointArray);
walkLineView.graphics.clear();
Tool.drawByPointArray(walkLineView.graphics, ac.oldPointArray, false, 0xFF00, 5);
Tool.drawByPointArray(walkLineView.graphics, ac.oldPointArray, false, 0x3300, 1);
walkLineView.setTimes(2);
moveLineView.graphics.clear();
_iArray.ifInAC();
_local2 = (ac.mapInfo - _local2);
scoreAdd(((_local2 * 20) * ((_local2 / 15) + 1)));
SoundCtrl.playFx("cleanClean");
}
public function pauseTime(_arg1:int):void{
_pauseTime = _arg1;
pause();
}
private function buildStar():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Star;
_local1 = 0;
while (_local1 < 1000) {
_local2 = Math.floor((((Math.random() * (_lv.endX - _lv.startX)) + _lv.startX) + 1));
_local3 = Math.floor((((Math.random() * (_lv.endY - _lv.startY)) + _lv.startY) + 1));
_local4 = Math.floor(((Math.random() * 20) + 15));
if ((Tool.ckCrossNum(_local2, _local3, ac.lineArray) % 2) == 0){
_local5 = new Star();
_local5.x = _local2;
_local5.y = _local3;
_local5.width = _local4;
_local5.height = _local4;
_local5.gotoAndPlay("star2");
_local5.gotoAndPlay((_local5.currentFrame + Math.floor((Math.random() * 4))));
_lastSp.addChild(_local5);
break;
};
_local1++;
};
}
public function firstInitGame(_arg1:int):void{
initEvent();
_gameData = new InGameData();
_lv.levelNum = _arg1;
_gameData.levelNum = _arg1;
init(_lv.startX, _lv.startY, _lv.endX, _lv.endY);
initLevel();
if (_gameData.levelNum > 9){
_scoreTime = 4;
} else {
_scoreTime = 1;
};
}
public function pause():void{
isP = true;
_gameData.pauseTimer = getTimer();
cleanView.setLogo(false);
}
public static function get music():Boolean{
return (_music);
}
public static function get isPause():Boolean{
return (isP);
}
public static function get sound():Boolean{
return (_sound);
}
}
}//package game.core
Section 94
//KeyL (game.ctrl.KeyL)
package game.ctrl {
import flash.events.*;
import flash.display.*;
import game.unit.*;
import game.core.*;
import game.mc.unit.*;
public class KeyL {
private var _core:Core;
private var _down:Boolean;
private var _up:Boolean;
private var stage:Stage;
private var _space:Boolean;
private var _right:Boolean;
private var _left:Boolean;
private var _p:Boolean;
private var _lastSpaceUse:Boolean;
private var _lastUseP:Boolean;
public function KeyL(_arg1:Stage, _arg2:Core){
stage = _arg1;
_arg1.addEventListener(KeyboardEvent.KEY_DOWN, keyDown);
_arg1.addEventListener(KeyboardEvent.KEY_UP, keyUp);
_core = _arg2;
initKey();
}
public function keyE(_arg1:MrQuick, _arg2:ArrayCtrl):void{
var _local3:PointL;
_local3 = new PointL(_arg1.midX, _arg1.midY);
if (((_p) && (!(_lastUseP)))){
_lastUseP = true;
if (!Core.isPause){
_core.pause();
_core.showUIP();
};
};
if (((space) && (!(_lastSpaceUse)))){
if (_arg1.mActNum == 0){
_arg1.mActNum = 1;
_arg1.firstTo = true;
_lastSpaceUse = true;
};
};
if (((((((up) || (right))) || (left))) || (down))){
if (up){
if (((!((_arg1.mActNum == 0))) && ((((_arg1.nowDir > 2)) || (_arg1.firstTo))))){
if (_arg1.firstTo){
_arg1.firstTo = false;
_core.setAllAiAd = true;
};
_arg2.addPoint(_local3, false);
};
_arg1.change4WSpd(1, 5);
} else {
if (down){
if (((!((_arg1.mActNum == 0))) && ((((_arg1.nowDir > 2)) || (_arg1.firstTo))))){
if (_arg1.firstTo){
_arg1.firstTo = false;
_core.setAllAiAd = true;
};
_arg2.addPoint(_local3, false);
};
_arg1.change4WSpd(2, 5);
} else {
if (left){
if (((!((_arg1.mActNum == 0))) && ((((_arg1.nowDir < 3)) || (_arg1.firstTo))))){
if (_arg1.firstTo){
_arg1.firstTo = false;
_core.setAllAiAd = true;
};
_arg2.addPoint(_local3, true);
};
_arg1.change4WSpd(3, 5);
} else {
if (right){
if (((!((_arg1.mActNum == 0))) && ((((_arg1.nowDir < 3)) || (_arg1.firstTo))))){
if (_arg1.firstTo){
_arg1.firstTo = false;
_core.setAllAiAd = true;
};
_arg2.addPoint(_local3, true);
};
_arg1.change4WSpd(4, 5);
};
};
};
};
} else {
_arg1.change4WSpd(0, 5);
};
}
public function get left():Boolean{
return (_left);
}
private function keyUp(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case 32:
_space = false;
_lastSpaceUse = false;
break;
case 38:
_up = false;
break;
case 40:
_down = false;
break;
case 37:
_left = false;
break;
case 39:
_right = false;
break;
case 80:
_p = false;
_lastUseP = false;
break;
};
}
public function get up():Boolean{
return (_up);
}
public function get right():Boolean{
return (_right);
}
public function get space():Boolean{
return (_space);
}
private function keyDown(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case 32:
_space = true;
break;
case 38:
_up = true;
break;
case 40:
_down = true;
break;
case 37:
_left = true;
break;
case 39:
_right = true;
break;
case 80:
_p = true;
break;
};
}
public function get down():Boolean{
return (_down);
}
public function initKey():void{
_up = false;
_down = false;
_left = false;
_right = false;
_space = false;
_p = false;
_lastUseP = false;
_lastSpaceUse = false;
}
}
}//package game.ctrl
Section 95
//InGameData (game.data.InGameData)
package game.data {
import flash.utils.*;
public class InGameData {
public var timer:int;
public var killNum:int;
public var addTime:int;
public var target:int;
public var score;
public var levelTimeUse:int;
public var levelNum:int;
public var pauseTemp:int;
public var pauseTimer:int;
public var levelTime:int;
public var life;
public function InGameData(){
score = 0;
life = 5;
timer = 0;
pauseTimer = 0;
levelNum = 0;
target = 0;
pauseTemp = 0;
levelTime = 0;
levelTimeUse = 0;
addTime = 0;
killNum = 0;
}
public function get stringTimeAll():String{
return (getStringTime((timeMsOut / 1000)));
}
public function resetTime():void{
levelTimeUse = (levelTimeUse + ((getTimer() - timer) - pauseTemp));
timer = getTimer();
pauseTemp = 0;
pauseTimer = 0;
addTime = 0;
}
public function isTimeOver(_arg1:int):Boolean{
if ((((levelTime + addTime) * 1000) - ((getTimer() - timer) - pauseTemp)) < _arg1){
return (true);
};
return (false);
}
public function getStringTime(_arg1:int):String{
var _local2:int;
var _local3:int;
var _local4:String;
var _local5:String;
_local2 = _arg1;
_local3 = (_local2 / 60);
_local2 = (_local2 - (_local3 * 60));
if (_local2 < 10){
_local4 = ("0" + _local2);
} else {
_local4 = ("" + _local2);
};
if (_local3 < 10){
_local5 = ("0" + _local3);
} else {
_local5 = ("" + _local3);
};
return (((_local5 + ":") + _local4));
}
public function get timeMsOut():int{
return ((((levelTimeUse + getTimer()) - timer) - pauseTemp));
}
public function get stringTime():String{
return (getStringTime(((levelTime + addTime) - (((getTimer() - timer) - pauseTemp) / 1000))));
}
}
}//package game.data
Section 96
//LevelBase (game.level.LevelBase)
package game.level {
public class LevelBase {
protected var _levelNum:int;
protected var _startX:int;
protected var _startY:int;
protected var _life:int;
protected var _time:int;
protected var _target:int;
protected var _endX:int;
protected var _endY:int;
public function LevelBase(_arg1:int){
_levelNum = _arg1;
}
public function get life():int{
return (_life);
}
public function set levelNum(_arg1:int):void{
_levelNum = _arg1;
}
public function get time():int{
return (_time);
}
public function get target():int{
return (_target);
}
public function get endX():int{
return (_endX);
}
public function get endY():int{
return (_endY);
}
public function get levelNum():int{
return (_levelNum);
}
public function get startX():int{
return (_startX);
}
public function get startY():int{
return (_startY);
}
}
}//package game.level
Section 97
//LevelTest (game.level.LevelTest)
package game.level {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.array.*;
import game.make.*;
public class LevelTest extends LevelBase {
public function LevelTest(_arg1:int){
super(_arg1);
_startX = 15;
_startY = 65;
_endX = 625;
_endY = 465;
_target = 75;
_life = 3;
_time = 35;
}
public function initE(_arg1:DisplayObjectContainer, _arg2:EArray, _arg3:BaseCleanMC, _arg4:HArray, _arg5:GArray):void{
if (_levelNum == 1){
_target = 75;
_time = 180;
MakeE.makeBoss1(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 3, 3, 200, 120);
MakeE.makeE(new PointL(200, 100), _arg1, _arg2, _arg3, 2, 5, 40, 1);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 2, 6, 40, 1);
} else {
if (_levelNum == 2){
_target = 77;
_time = 180;
MakeE.makeBoss1(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 3, 3, 200, 120);
MakeE.makeE(new PointL(200, 100), _arg1, _arg2, _arg3, 2, 7, 40, 6);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 2, 6, 40, 7);
} else {
if (_levelNum == 3){
_target = 79;
_time = 180;
MakeE.makeBoss1(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 4, 3, 200, 90);
MakeE.makeE(new PointL(200, 100), _arg1, _arg2, _arg3, 2, 6, 35, 5);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 2, 7, 40, 6);
MakeE.makeE(new PointL(200, 300), _arg1, _arg2, _arg3, 3, 6, 30, 7);
} else {
if (_levelNum == 4){
_target = 82;
_time = 180;
MakeE.makeBoss2(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 4, 7, 180, 200);
MakeE.makeE(new PointL(200, 100), _arg1, _arg2, _arg3, 3, 6, 35, 1);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 8, 35, 2);
} else {
if (_levelNum == 5){
_target = 85;
_time = 180;
MakeE.makeBoss2(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 5, 2, 180, 180);
MakeE.makeE(new PointL(200, 100), _arg1, _arg2, _arg3, 3, 6, 35, 1);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 7, 35, 2);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 8, 35, 2);
} else {
if (_levelNum == 6){
_target = 88;
_time = 180;
MakeE.makeBoss2(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 6, 3, 180, 150);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 8, 35, 2);
MakeE.makeE(new PointL(200, 300), _arg1, _arg2, _arg3, 3, 7, 35, 3);
MakeE.makeE(new PointL(200, 400), _arg1, _arg2, _arg3, 3, 7, 30, 4);
} else {
if (_levelNum == 7){
_target = 88;
_time = 180;
MakeE.makeBoss3(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 7, 7, 180, 180);
MakeE.makeE(new PointL(200, 100), _arg1, _arg2, _arg3, 3, 6, 30, 1);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 8, 25, 2);
MakeE.makeE(new PointL(200, 300), _arg1, _arg2, _arg3, 3, 8, 30, 3);
} else {
if (_levelNum == 8){
_target = 90;
_time = 180;
MakeE.makeBoss3(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 8, 2, 150, 150);
MakeE.makeE(new PointL(200, 100), _arg1, _arg2, _arg3, 3, 6, 30, 1);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 7, 30, 2);
MakeE.makeE(new PointL(200, 300), _arg1, _arg2, _arg3, 3, 8, 35, 3);
MakeE.makeE(new PointL(500, 100), _arg1, _arg2, _arg3, 3, 8, 30, 4);
} else {
if (_levelNum == 9){
_target = 90;
_time = 180;
MakeE.makeBoss3(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 9, 3, 150, 120);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 8, 30, 2);
MakeE.makeE(new PointL(200, 300), _arg1, _arg2, _arg3, 3, 7, 35, 3);
MakeE.makeE(new PointL(200, 400), _arg1, _arg2, _arg3, 3, 7, 30, 4);
MakeE.makeE(new PointL(500, 100), _arg1, _arg2, _arg3, 3, 8, 30, 4);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 6, 25, 5);
} else {
if (_levelNum == 10){
_target = 75;
_time = 120;
MakeE.makeBoss1(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 3, 3, 100, 120);
MakeE.makeE(new PointL(200, 100), _arg1, _arg2, _arg3, 2, 5, 25, 1);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 2, 6, 25, 1);
} else {
if (_levelNum == 11){
_target = 77;
_time = 120;
MakeE.makeBoss1(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 3, 3, 90, 120);
MakeE.makeE(new PointL(200, 100), _arg1, _arg2, _arg3, 2, 7, 20, 6);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 2, 6, 20, 7);
MakeE.makeE(new PointL(200, 300), _arg1, _arg2, _arg3, 2, 5, 20, 8);
} else {
if (_levelNum == 12){
_target = 79;
_time = 120;
MakeE.makeBoss1(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 4, 3, 80, 90);
MakeE.makeE(new PointL(200, 100), _arg1, _arg2, _arg3, 2, 6, 15, 5);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 2, 7, 20, 6);
MakeE.makeE(new PointL(200, 300), _arg1, _arg2, _arg3, 3, 6, 20, 7);
MakeE.makeE(new PointL(500, 100), _arg1, _arg2, _arg3, 1, 5, 20, 8);
} else {
if (_levelNum == 13){
_target = 82;
_time = 120;
MakeE.makeBoss2(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 4, 7, 100, 120);
MakeE.makeE(new PointL(200, 100), _arg1, _arg2, _arg3, 3, 6, 20, 1);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 8, 20, 2);
MakeE.makeE(new PointL(200, 300), _arg1, _arg2, _arg3, 3, 8, 20, 3);
MakeE.makeE(new PointL(500, 100), _arg1, _arg2, _arg3, 3, 6, 20, 4);
} else {
if (_levelNum == 14){
_target = 85;
_time = 120;
MakeE.makeBoss2(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 5, 2, 100, 120);
MakeE.makeE(new PointL(200, 100), _arg1, _arg2, _arg3, 3, 6, 20, 1);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 7, 20, 2);
MakeE.makeE(new PointL(200, 300), _arg1, _arg2, _arg3, 3, 8, 20, 3);
MakeE.makeE(new PointL(500, 100), _arg1, _arg2, _arg3, 3, 8, 20, 4);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 6, 20, 5);
} else {
if (_levelNum == 15){
_target = 88;
_time = 120;
MakeE.makeBoss2(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 6, 3, 100, 90);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 8, 20, 2);
MakeE.makeE(new PointL(200, 300), _arg1, _arg2, _arg3, 3, 7, 20, 3);
MakeE.makeE(new PointL(200, 400), _arg1, _arg2, _arg3, 3, 7, 30, 4);
MakeE.makeE(new PointL(500, 100), _arg1, _arg2, _arg3, 3, 8, 20, 4);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 6, 20, 5);
} else {
if (_levelNum == 16){
_target = 88;
_time = 120;
MakeE.makeBoss3(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 7, 7, 100, 120);
MakeE.makeE(new PointL(200, 100), _arg1, _arg2, _arg3, 3, 6, 20, 1);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 8, 20, 2);
MakeE.makeE(new PointL(200, 300), _arg1, _arg2, _arg3, 3, 8, 20, 3);
MakeE.makeE(new PointL(500, 100), _arg1, _arg2, _arg3, 3, 6, 20, 4);
} else {
if (_levelNum == 17){
_target = 90;
_time = 120;
MakeE.makeBoss3(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 8, 2, 100, 100);
MakeE.makeE(new PointL(200, 100), _arg1, _arg2, _arg3, 3, 6, 20, 1);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 7, 20, 2);
MakeE.makeE(new PointL(200, 300), _arg1, _arg2, _arg3, 3, 8, 20, 3);
MakeE.makeE(new PointL(500, 100), _arg1, _arg2, _arg3, 3, 8, 15, 4);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 6, 20, 5);
} else {
if (_levelNum == 18){
_target = 90;
_time = 120;
MakeE.makeBoss3(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, 9, 3, 100, 80);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 8, 15, 2);
MakeE.makeE(new PointL(200, 300), _arg1, _arg2, _arg3, 3, 7, 20, 3);
MakeE.makeE(new PointL(200, 400), _arg1, _arg2, _arg3, 3, 7, 30, 4);
MakeE.makeE(new PointL(500, 100), _arg1, _arg2, _arg3, 3, 8, 20, 4);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 6, 15, 5);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, 3, 6, 20, 5);
} else {
_target = 90;
_time = 120;
MakeE.makeBoss1(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, _levelNum, 3, 100, 180);
MakeE.makeBoss2(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, _levelNum, 1, 100, 180);
MakeE.makeBoss3(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, _levelNum, 2, 100, 180);
MakeE.makeBoss3(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, _levelNum, 6, 100, 180);
MakeE.makeBoss2(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, _levelNum, 8, 100, 180);
MakeE.makeBoss2(new PointL(300, 250), _arg1, _arg2, _arg3, _arg4, _arg5, _levelNum, 2, 100, 180);
MakeE.makeE(new PointL(200, 100), _arg1, _arg2, _arg3, _levelNum, 6, 20, 1);
MakeE.makeE(new PointL(200, 200), _arg1, _arg2, _arg3, _levelNum, 7, 20, 2);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
}
}//package game.level
Section 98
//MakeE (game.make.MakeE)
package game.make {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.mc.unit.*;
import game.array.*;
import game.ai.*;
public class MakeE {
public static function makeBoss3(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:BaseCleanMC, _arg5:HArray, _arg6:GArray, _arg7:int, _arg8:int, _arg9:int, _arg10:int):void{
var _local11:EBoss;
var _local12:AIBoss3;
_local11 = new LifeGuardB(_arg1, _arg2, _arg3);
_local12 = new AIBoss3(_local11, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10);
_local11.initAI(_local12);
}
public static function makeEDMY(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:int):void{
var _local5:EBase;
switch (_arg4){
case 1:
_local5 = new BikerE(_arg1, _arg2, _arg3, true);
break;
case 2:
_local5 = new BikiniE(_arg1, _arg2, _arg3, true);
break;
case 3:
_local5 = new BodyBuilderE(_arg1, _arg2, _arg3, true);
break;
case 4:
_local5 = new ChildE(_arg1, _arg2, _arg3, true);
break;
case 5:
_local5 = new Officer1E(_arg1, _arg2, _arg3, true);
break;
case 6:
_local5 = new Officer2E(_arg1, _arg2, _arg3, true);
break;
case 7:
_local5 = new ShoppingE(_arg1, _arg2, _arg3, true);
break;
case 8:
_local5 = new SurferE(_arg1, _arg2, _arg3, true);
break;
case 9:
_local5 = new MsgE(_arg1, _arg2, _arg3, true);
break;
};
}
public static function makeBoss2(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:BaseCleanMC, _arg5:HArray, _arg6:GArray, _arg7:int, _arg8:int, _arg9:int, _arg10:int):void{
var _local11:EBoss;
var _local12:AIBoss2;
_local11 = new AngryLadyB(_arg1, _arg2, _arg3);
_local12 = new AIBoss2(_local11, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10);
_local11.initAI(_local12);
}
public static function makeBoss1(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:BaseCleanMC, _arg5:HArray, _arg6:GArray, _arg7:int, _arg8:int, _arg9:int, _arg10:int):void{
var _local11:EBoss;
var _local12:AIBoss1;
_local11 = new FormanB(_arg1, _arg2, _arg3);
_local12 = new AIBoss1(_local11, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10);
_local11.initAI(_local12);
}
public static function makeE(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:BaseCleanMC, _arg5:int, _arg6:int, _arg7:int, _arg8:int):void{
var _local9:EBase;
var _local10:AIAdBase;
switch (_arg8){
case 1:
_local9 = new BikerE(_arg1, _arg2, _arg3);
break;
case 2:
_local9 = new BikiniE(_arg1, _arg2, _arg3);
break;
case 3:
_local9 = new BodyBuilderE(_arg1, _arg2, _arg3);
break;
case 4:
_local9 = new ChildE(_arg1, _arg2, _arg3);
break;
case 5:
_local9 = new Officer1E(_arg1, _arg2, _arg3);
break;
case 6:
_local9 = new Officer2E(_arg1, _arg2, _arg3);
break;
case 7:
_local9 = new ShoppingE(_arg1, _arg2, _arg3);
break;
case 8:
_local9 = new SurferE(_arg1, _arg2, _arg3);
break;
case 9:
_local9 = new MsgE(_arg1, _arg2, _arg3);
break;
};
_local10 = new AIAdBase(_local9, _arg4, _arg5, _arg6, _arg7);
_local9.initAI(_local10);
}
}
}//package game.make
Section 99
//MakeI (game.make.MakeI)
package game.make {
import flash.display.*;
import game.unit.*;
import game.mc.unit.*;
import game.array.*;
public class MakeI {
public static function makeItem(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:ItemArray, _arg4:int, _arg5:int, _arg6:int=0):void{
switch (_arg5){
case 1:
new ItemSpeed(_arg1, _arg2, _arg3, _arg4, _arg6);
break;
case 2:
new ItemScore(_arg1, _arg2, _arg3, _arg4, _arg6);
break;
case 3:
new ItemLife(_arg1, _arg2, _arg3, _arg4);
break;
};
}
}
}//package game.make
Section 100
//MakeIMCData (game.make.MakeIMCData)
package game.make {
import game.array.unit.*;
public class MakeIMCData {
public static function makeIMCData(_arg1:int):ItemMakeCtrl{
var _local2:Array;
_local2 = new Array();
switch (_arg1){
case 1:
_local2["dir200"] = new ItemMakeUnit(1, 600, 210);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 700, 200);
_local2["dir1000"] = new ItemMakeUnit(1, 600, 210);
_local2["dir1550"] = new ItemMakeUnit(2, 600, 200);
break;
case 2:
_local2["dir150"] = new ItemMakeUnit(2, 600, 200);
_local2["dir200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3000"] = new ItemMakeUnit(3, 800, 200);
_local2["dir4000"] = new ItemMakeUnit(1, 600, 200);
break;
case 3:
_local2["dir150"] = new ItemMakeUnit(2, 600, 200);
_local2["dir200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3000"] = new ItemMakeUnit(3, 800, 200);
_local2["dir4000"] = new ItemMakeUnit(1, 600, 200);
break;
case 4:
_local2["dir150"] = new ItemMakeUnit(2, 600, 200);
_local2["dir200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3000"] = new ItemMakeUnit(3, 800, 200);
_local2["dir4000"] = new ItemMakeUnit(1, 600, 200);
_local2["dir200"] = new ItemMakeUnit(2, 600, 200);
_local2["dir450"] = new ItemMakeUnit(1, 600, 200);
_local2["dir550"] = new ItemMakeUnit(2, 600, 200);
_local2["dir800"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1100"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3200"] = new ItemMakeUnit(3, 800, 200);
_local2["dir3900"] = new ItemMakeUnit(1, 600, 200);
break;
case 5:
_local2["dir150"] = new ItemMakeUnit(2, 600, 200);
_local2["dir200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3000"] = new ItemMakeUnit(3, 800, 200);
_local2["dir4000"] = new ItemMakeUnit(1, 600, 200);
_local2["dir200"] = new ItemMakeUnit(2, 600, 200);
_local2["dir450"] = new ItemMakeUnit(1, 600, 200);
_local2["dir550"] = new ItemMakeUnit(2, 600, 200);
_local2["dir800"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1100"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3200"] = new ItemMakeUnit(3, 800, 200);
_local2["dir3900"] = new ItemMakeUnit(1, 600, 200);
break;
case 6:
_local2["dir150"] = new ItemMakeUnit(2, 600, 200);
_local2["dir200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3000"] = new ItemMakeUnit(3, 800, 200);
_local2["dir4000"] = new ItemMakeUnit(1, 600, 200);
_local2["dir200"] = new ItemMakeUnit(2, 600, 200);
_local2["dir450"] = new ItemMakeUnit(1, 600, 200);
_local2["dir550"] = new ItemMakeUnit(2, 600, 200);
_local2["dir800"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1100"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3200"] = new ItemMakeUnit(3, 800, 200);
_local2["dir3900"] = new ItemMakeUnit(1, 600, 200);
break;
case 7:
_local2["dir150"] = new ItemMakeUnit(2, 600, 200);
_local2["dir200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3000"] = new ItemMakeUnit(3, 800, 200);
_local2["dir4000"] = new ItemMakeUnit(1, 600, 200);
_local2["dir200"] = new ItemMakeUnit(2, 600, 200);
_local2["dir450"] = new ItemMakeUnit(1, 600, 200);
_local2["dir550"] = new ItemMakeUnit(2, 600, 200);
_local2["dir800"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1100"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3200"] = new ItemMakeUnit(3, 800, 200);
_local2["dir3900"] = new ItemMakeUnit(1, 600, 200);
break;
case 8:
_local2["dir150"] = new ItemMakeUnit(2, 600, 200);
_local2["dir200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3000"] = new ItemMakeUnit(3, 800, 200);
_local2["dir4000"] = new ItemMakeUnit(1, 600, 200);
_local2["dir200"] = new ItemMakeUnit(2, 600, 200);
_local2["dir450"] = new ItemMakeUnit(1, 600, 200);
_local2["dir550"] = new ItemMakeUnit(2, 600, 200);
_local2["dir800"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1100"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3200"] = new ItemMakeUnit(3, 800, 200);
_local2["dir3900"] = new ItemMakeUnit(1, 600, 200);
break;
case 9:
_local2["dir150"] = new ItemMakeUnit(2, 600, 200);
_local2["dir200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3000"] = new ItemMakeUnit(3, 800, 200);
_local2["dir4000"] = new ItemMakeUnit(1, 600, 200);
_local2["dir200"] = new ItemMakeUnit(2, 600, 200);
_local2["dir450"] = new ItemMakeUnit(1, 600, 200);
_local2["dir550"] = new ItemMakeUnit(2, 600, 200);
_local2["dir800"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1100"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3200"] = new ItemMakeUnit(3, 800, 200);
_local2["dir3900"] = new ItemMakeUnit(1, 600, 200);
break;
case 10:
_local2["dir200"] = new ItemMakeUnit(1, 600, 210);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 700, 200);
_local2["dir1000"] = new ItemMakeUnit(1, 600, 210);
_local2["dir1550"] = new ItemMakeUnit(2, 600, 200);
break;
case 11:
_local2["dir150"] = new ItemMakeUnit(2, 600, 200);
_local2["dir200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3000"] = new ItemMakeUnit(3, 800, 200);
_local2["dir4000"] = new ItemMakeUnit(1, 600, 200);
break;
case 12:
_local2["dir150"] = new ItemMakeUnit(2, 600, 200);
_local2["dir200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3000"] = new ItemMakeUnit(3, 800, 200);
_local2["dir4000"] = new ItemMakeUnit(1, 600, 200);
break;
case 13:
_local2["dir150"] = new ItemMakeUnit(2, 600, 200);
_local2["dir200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3000"] = new ItemMakeUnit(3, 800, 200);
_local2["dir4000"] = new ItemMakeUnit(1, 600, 200);
_local2["dir200"] = new ItemMakeUnit(2, 600, 200);
_local2["dir450"] = new ItemMakeUnit(1, 600, 200);
_local2["dir550"] = new ItemMakeUnit(2, 600, 200);
_local2["dir800"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1100"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3200"] = new ItemMakeUnit(3, 800, 200);
_local2["dir3900"] = new ItemMakeUnit(1, 600, 200);
break;
case 14:
_local2["dir150"] = new ItemMakeUnit(2, 600, 200);
_local2["dir200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3000"] = new ItemMakeUnit(3, 800, 200);
_local2["dir4000"] = new ItemMakeUnit(1, 600, 200);
_local2["dir200"] = new ItemMakeUnit(2, 600, 200);
_local2["dir450"] = new ItemMakeUnit(1, 600, 200);
_local2["dir550"] = new ItemMakeUnit(2, 600, 200);
_local2["dir800"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1100"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3200"] = new ItemMakeUnit(3, 800, 200);
_local2["dir3900"] = new ItemMakeUnit(1, 600, 200);
break;
case 15:
_local2["dir150"] = new ItemMakeUnit(2, 600, 200);
_local2["dir200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3000"] = new ItemMakeUnit(3, 800, 200);
_local2["dir4000"] = new ItemMakeUnit(1, 600, 200);
_local2["dir200"] = new ItemMakeUnit(2, 600, 200);
_local2["dir450"] = new ItemMakeUnit(1, 600, 200);
_local2["dir550"] = new ItemMakeUnit(2, 600, 200);
_local2["dir800"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1100"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3200"] = new ItemMakeUnit(3, 800, 200);
_local2["dir3900"] = new ItemMakeUnit(1, 600, 200);
break;
case 16:
_local2["dir150"] = new ItemMakeUnit(2, 600, 200);
_local2["dir200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3000"] = new ItemMakeUnit(3, 800, 200);
_local2["dir4000"] = new ItemMakeUnit(1, 600, 200);
_local2["dir200"] = new ItemMakeUnit(2, 600, 200);
_local2["dir450"] = new ItemMakeUnit(1, 600, 200);
_local2["dir550"] = new ItemMakeUnit(2, 600, 200);
_local2["dir800"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1100"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3200"] = new ItemMakeUnit(3, 800, 200);
_local2["dir3900"] = new ItemMakeUnit(1, 600, 200);
break;
case 17:
_local2["dir150"] = new ItemMakeUnit(2, 600, 200);
_local2["dir200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3000"] = new ItemMakeUnit(3, 800, 200);
_local2["dir4000"] = new ItemMakeUnit(1, 600, 200);
_local2["dir200"] = new ItemMakeUnit(2, 600, 200);
_local2["dir450"] = new ItemMakeUnit(1, 600, 200);
_local2["dir550"] = new ItemMakeUnit(2, 600, 200);
_local2["dir800"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1100"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3200"] = new ItemMakeUnit(3, 800, 200);
_local2["dir3900"] = new ItemMakeUnit(1, 600, 200);
break;
case 18:
_local2["dir150"] = new ItemMakeUnit(2, 600, 200);
_local2["dir200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir400"] = new ItemMakeUnit(2, 600, 200);
_local2["dir700"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3000"] = new ItemMakeUnit(3, 800, 200);
_local2["dir4000"] = new ItemMakeUnit(1, 600, 200);
_local2["dir200"] = new ItemMakeUnit(2, 600, 200);
_local2["dir450"] = new ItemMakeUnit(1, 600, 200);
_local2["dir550"] = new ItemMakeUnit(2, 600, 200);
_local2["dir800"] = new ItemMakeUnit(3, 800, 200);
_local2["dir1100"] = new ItemMakeUnit(2, 600, 200);
_local2["dir1200"] = new ItemMakeUnit(1, 600, 200);
_local2["dir2000"] = new ItemMakeUnit(2, 600, 200);
_local2["dir2500"] = new ItemMakeUnit(1, 600, 200);
_local2["dir3200"] = new ItemMakeUnit(3, 800, 200);
_local2["dir3900"] = new ItemMakeUnit(1, 600, 200);
break;
default:
break;
};
return (new ItemMakeCtrl(_local2));
}
}
}//package game.make
Section 101
//MakeLine (game.make.MakeLine)
package game.make {
import game.unit.*;
public class MakeLine {
public static function makeLine(_arg1:PointL, _arg2:PointL):Line{
var _local3:int;
_local3 = 0;
if (_arg1.x == _arg2.x){
_local3 = 1;
} else {
if (_arg1.y == _arg2.y){
_local3 = 2;
};
};
switch (_local3){
case 0:
return (new Line(_arg1, _arg2));
case 1:
return (new YLine(_arg1, _arg2));
case 2:
return (new XLine(_arg1, _arg2));
};
return (null);
}
}
}//package game.make
Section 102
//BaseCleanMC (game.mc.base.BaseCleanMC)
package game.mc.base {
import flash.display.*;
import game.unit.*;
import game.sound.ctrl.*;
public class BaseCleanMC extends MovieClip {
protected var xspd:int;
protected var dY:int;
protected var dX:int;
protected var wOff:int;
private var _spdM:int;
protected var yspd:int;
protected var _timer:int;
protected var mAct:int;
protected var hOff:int;
public function BaseCleanMC(_arg1:int, _arg2:int, _arg3:DisplayObjectContainer){
xspd = 0;
yspd = 0;
mAct = 0;
wOff = Math.round((width / 2));
hOff = Math.round((height / 1.1));
dX = _arg1;
dY = _arg2;
_spdM = 1;
stop();
_timer = 0;
run();
_arg3.addChild(this);
}
public function removeSelf():void{
parent.removeChild(this);
}
public function speedNormal():void{
_spdM = 1;
_timer = -1;
}
public function get midX():int{
return (dX);
}
public function get midY():int{
return (dY);
}
private function changeFace(_arg1:int):void{
gotoAndStop(((mActNum * 4) + _arg1));
}
public function ifHit(_arg1:EBase):Boolean{
if ((((((((x < (_arg1.x + _arg1.width))) && (((x + width) > _arg1.x)))) && ((y < (_arg1.y + _arg1.height))))) && (((y + height) > _arg1.y)))){
return (true);
};
return (false);
}
public function get isStop():Boolean{
if (((!((xspd == 0))) || (!((yspd == 0))))){
return (false);
};
return (true);
}
public function get nextYdir():int{
var _local1:int;
_local1 = 0;
if (yspd != 0){
_local1 = (yspd / Math.abs(yspd));
};
return ((dY + _local1));
}
public function change4WSpd(_arg1:int, _arg2:int):void{
changeSpd(_arg1, _arg2);
if (((!((currentFrame == (_arg1 + (4 * mAct))))) && (!((_arg1 == 0))))){
changeFace(_arg1);
};
}
public function get mActNum():int{
return (mAct);
}
public function speedTimeDown():void{
if ((((_timer > 0)) && ((_spdM > 0)))){
_timer--;
} else {
if (_timer == 0){
speedNormal();
};
};
}
public function get ul():PointL{
return (new PointL((x + (width / 4)), (y + (height / 1.3))));
}
public function get ur():PointL{
return (new PointL((x + ((3 * width) / 4)), (y + (height / 1.3))));
}
public function get dr():PointL{
return (new PointL((x + ((3 * width) / 4)), (y + (height / 1.1))));
}
public function get spdM():int{
return (_spdM);
}
public function run():void{
dX = (dX + xspd);
dY = (dY + yspd);
x = (dX - wOff);
y = (dY - hOff);
}
public function get nextXdir():int{
var _local1:int;
_local1 = 0;
if (xspd != 0){
_local1 = (xspd / Math.abs(xspd));
};
return ((dX + _local1));
}
public function speedUp(_arg1:int):void{
_spdM = 2;
_timer = _arg1;
}
public function get dl():PointL{
return (new PointL((x + (width / 4)), (y + (height / 1.1))));
}
public function set mActNum(_arg1:int):void{
var _local2:int;
var _local3:int;
mAct = _arg1;
_local2 = Math.floor(((currentFrame - 1) / 4));
_local3 = (currentFrame - (_local2 * 4));
if (((mAct * 4) + _local3) != currentFrame){
gotoAndStop(((mAct * 4) + _local3));
};
if (mAct == 0){
SoundCtrl.stopClean();
} else {
SoundCtrl.playClean();
};
}
public function get nextX():int{
return ((dX + xspd));
}
public function get nextY():int{
return ((dY + yspd));
}
public function get nowDir():int{
var _local1:int;
var _local2:int;
_local1 = Math.floor(((currentFrame - 1) / 4));
_local2 = (currentFrame - (_local1 * 4));
return (_local2);
}
private function changeSpd(_arg1:int, _arg2:int):void{
switch (_arg1){
case 0:
xspd = 0;
yspd = 0;
break;
case 1:
xspd = 0;
yspd = -(_arg2);
break;
case 2:
xspd = 0;
yspd = _arg2;
break;
case 3:
xspd = -(_arg2);
yspd = 0;
break;
case 4:
xspd = _arg2;
yspd = 0;
break;
default:
xspd = 0;
yspd = 0;
};
}
}
}//package game.mc.base
Section 103
//EBase (game.mc.base.EBase)
package game.mc.base {
import flash.display.*;
import game.unit.*;
import game.array.*;
import game.ai.*;
public class EBase extends MovieClip {
protected var xspd:int;
protected var _ea:EArray;
protected var wOff:int;
protected var lastY:int;
protected var lastX:int;
protected var yspd:int;
protected var hit:HitRound;
protected var _isD:Boolean;
protected var _con:DisplayObjectContainer;
protected var _ai:AIBase;
protected var mAct:int;
protected var hOff:int;
public function EBase(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:Boolean){
lastX = 0;
lastY = 0;
xspd = 0;
yspd = 0;
mAct = 0;
wOff = Math.round((width / 2.2));
hOff = Math.round((height / 1.3));
hit = new HitRound(_arg1.x, _arg1.y, (wOff / 2));
_ea = _arg3;
_con = _arg2;
updateP();
stop();
_con.addChild(this);
_ea.addOne(this);
_isD = _arg4;
}
public function removeSelf():void{
_con.removeChild(this);
_ea.removeOne(this);
}
public function get nextYdir():int{
var _local1:int;
_local1 = 0;
if (yspd != 0){
_local1 = (yspd / Math.abs(yspd));
};
return ((hit.y + _local1));
}
public function get midX():int{
return (hit.x);
}
public function setSpd(_arg1:int, _arg2:int):void{
xspd = _arg1;
yspd = _arg2;
spdToFace4();
}
public function get midY():int{
return (hit.y);
}
public function setLast():void{
lastX = hit.x;
lastY = hit.y;
}
public function initAI(_arg1:AIBase):void{
_ai = _arg1;
}
protected function changeFace(_arg1:int):void{
if (nowDir != _arg1){
gotoAndStop(((mActNum * 4) + _arg1));
};
}
public function turnXspd(_arg1:PointL):void{
if ((hit.x - _arg1.x) < 0){
hit.x = (_arg1.x - (hit.r + (Math.random() * 5)));
} else {
if ((hit.x - _arg1.x) > 0){
hit.x = (_arg1.x + (hit.r + (Math.random() * 5)));
};
};
setSpd(-(xspd), yspd);
updateP();
}
protected function spdToFace4():void{
var _local1:Number;
_local1 = (((Math.atan2(yspd, xspd) / Math.PI) * 180) + 180);
if ((((((_local1 >= 0)) && ((_local1 < 45)))) || ((((_local1 >= 315)) && ((_local1 <= 360)))))){
changeFace(3);
} else {
if ((((_local1 >= 45)) && ((_local1 < 135)))){
changeFace(1);
} else {
if ((((_local1 >= 135)) && ((_local1 < 225)))){
changeFace(4);
} else {
if ((((_local1 >= 225)) && ((_local1 < 315)))){
changeFace(2);
};
};
};
};
}
public function ifHit(_arg1:EBase):Boolean{
if ((((((((x < (_arg1.x + _arg1.width))) && (((x + width) > _arg1.x)))) && ((y < (_arg1.y + _arg1.height))))) && (((y + height) > _arg1.y)))){
return (true);
};
return (false);
}
public function get mActNum():int{
return (mAct);
}
public function ifHitYLine(_arg1:YLine):Boolean{
if (hit.hitYLine(_arg1)){
return (true);
};
return (false);
}
public function inTurn():void{
var _local1:int;
_local1 = Math.floor((Math.random() * 4));
switch (_local1){
case 0:
setSpd(-(xspd), yspd);
break;
case 1:
setSpd(xspd, -(yspd));
break;
case 2:
setSpd(-(xspd), -(yspd));
break;
case 3:
break;
default:
break;
};
updateP();
}
public function removeAll():void{
_ai = null;
}
public function get r():int{
return (hit.r);
}
public function get ul():PointL{
return (new PointL(x, (y + (height / 2))));
}
public function get dr():PointL{
return (new PointL((x + width), (y + height)));
}
public function updateP():void{
hit.x = nextXdir;
hit.y = nextYdir;
x = (hit.x - wOff);
y = (hit.y - hOff);
}
public function get ur():PointL{
return (new PointL((x + width), (y + (height / 2))));
}
public function run():void{
updateP();
}
public function get nextXdir():int{
var _local1:int;
_local1 = 0;
if (xspd != 0){
_local1 = (xspd / Math.abs(xspd));
};
return ((hit.x + _local1));
}
public function set aiCount(_arg1:Boolean):void{
if ((_ai is AIAdBase)){
(_ai as AIAdBase).ifCount = _arg1;
};
}
public function toLast():void{
hit.x = lastX;
hit.y = lastY;
}
public function get dl():PointL{
return (new PointL(x, (y + height)));
}
public function randomPoint():void{
var _local1:int;
var _local2:int;
var _local3:PointL;
var _local4:int;
if (!_isD){
_local1 = Math.round((Math.random() * 640));
_local2 = Math.round((Math.random() * 480));
_local3 = new PointL(_local1, _local2);
_local4 = _ai.speed;
changePoint(_local3, _local4);
};
}
public function get speedTime():int{
return (Math.round(Math.sqrt((Math.pow(xspd, 2) + Math.pow(yspd, 2)))));
}
public function set mActNum(_arg1:int):void{
var _local2:int;
var _local3:int;
mAct = _arg1;
_local2 = Math.floor(((currentFrame - 1) / 4));
_local3 = (currentFrame - (_local2 * 4));
if (((mAct * 4) + _local3) != currentFrame){
gotoAndStop(((mAct * 4) + _local3));
};
}
public function get nextX():int{
return ((hit.x + xspd));
}
public function get nextY():int{
return ((hit.y + yspd));
}
public function changePoint(_arg1:PointL, _arg2:int):void{
_ai.setPointAndSpd(_arg1, _arg2);
}
public function get isStop():Boolean{
if (((!((xspd == 0))) || (!((yspd == 0))))){
return (false);
};
return (true);
}
public function get nowDir():int{
var _local1:int;
var _local2:int;
_local1 = Math.floor(((currentFrame - 1) / 4));
_local2 = (currentFrame - (_local1 * 4));
return (_local2);
}
public function eRun():void{
if (_isD){
setSpd(((parent.mouseX - midX) / 25), ((parent.mouseY - midY) / 25));
} else {
_ai.runAI();
};
}
public function gotoPoint(_arg1:PointL, _arg2:int):void{
var _local3:Number;
_local3 = Math.sqrt((Math.pow((_arg1.x - hit.x), 2) + Math.pow((_arg1.y - hit.y), 2)));
setSpd(((_arg2 * (_arg1.x - hit.x)) / _local3), ((_arg2 * (_arg1.y - hit.y)) / _local3));
}
public function turnYspd(_arg1:PointL):void{
if ((hit.y - _arg1.y) < 0){
hit.y = (_arg1.y - (hit.r + (Math.random() * 5)));
} else {
if ((hit.y - _arg1.y) > 0){
hit.y = (_arg1.y + (hit.r + (Math.random() * 5)));
};
};
setSpd(xspd, -(yspd));
updateP();
}
public function ifHitXLine(_arg1:XLine):Boolean{
if (hit.hitXLine(_arg1)){
return (true);
};
return (false);
}
}
}//package game.mc.base
Section 104
//EBoss (game.mc.base.EBoss)
package game.mc.base {
import flash.display.*;
import game.unit.*;
import game.array.*;
import theLong.array.*;
public class EBoss extends EBase {
protected var _ways:int;
protected var _endFrame:int;
protected var _mNum:int;
protected var _frameCount:int;
private var _blur:Boolean;
private var cacz:ConArrayCtrlZero;
private var _fireFrame:int;
protected var _isFire:Boolean;
public function EBoss(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:Boolean){
var _local5:Array;
var _local6:int;
super(_arg1, _arg2, _arg3, _arg4);
hit = new HitRound(_arg1.x, _arg1.y, (wOff / 2));
_frameCount = 0;
_local5 = currentLabels;
_mNum = parseInt((_local5[0] as FrameLabel).name);
_ways = (totalFrames / _mNum);
if (_mNum > 1){
_local6 = (_local5[1] as FrameLabel).name.indexOf(",");
_fireFrame = parseInt((_local5[1] as FrameLabel).name.substring(0, _local6));
_endFrame = parseInt((_local5[1] as FrameLabel).name.substring((_local6 + 1)));
} else {
_fireFrame = 59;
_endFrame = 60;
};
_blur = false;
cacz = new ConArrayCtrlZero(_arg2, this);
}
protected function spdToFace8():void{
var _local1:Number;
_local1 = (((Math.atan2(yspd, xspd) / Math.PI) * 180) + 180);
if ((((((_local1 >= 0)) && ((_local1 < 22.5)))) || ((((_local1 >= 337.5)) && ((_local1 <= 360)))))){
changeFace(3);
} else {
if ((((_local1 >= 22.5)) && ((_local1 < 67.5)))){
changeFace(5);
} else {
if ((((_local1 >= 67.5)) && ((_local1 < 112.5)))){
changeFace(1);
} else {
if ((((_local1 >= 112.5)) && ((_local1 < 157.5)))){
changeFace(7);
} else {
if ((((_local1 >= 157.5)) && ((_local1 < 202.5)))){
changeFace(4);
} else {
if ((((_local1 >= 202.5)) && ((_local1 < 257.5)))){
changeFace(8);
} else {
if ((((_local1 >= 257.5)) && ((_local1 < 292.5)))){
changeFace(2);
} else {
if ((((_local1 >= 292.5)) && ((_local1 < 337.5)))){
changeFace(6);
};
};
};
};
};
};
};
};
}
override protected function changeFace(_arg1:int):void{
if (nowDir != _arg1){
gotoAndStop(((mActNum * _ways) + _arg1));
};
}
protected function fire():void{
_isFire = true;
_frameCount = 0;
}
protected function fireRun():void{
_frameCount++;
if (_frameCount >= _endFrame){
endFire();
};
}
public function blurOn():void{
_blur = true;
}
override public function updateP():void{
if (!_isFire){
hit.x = nextXdir;
hit.y = nextYdir;
x = (hit.x - wOff);
y = (hit.y - hOff);
};
}
override public function set mActNum(_arg1:int):void{
var _local2:int;
var _local3:int;
mAct = _arg1;
_local2 = Math.floor(((currentFrame - 1) / _ways));
_local3 = (currentFrame - (_local2 * _ways));
if (((mAct * _ways) + _local3) != currentFrame){
gotoAndStop(((mAct * _ways) + _local3));
};
}
public function get isToFire():Boolean{
return (_isFire);
}
public function doFire(_arg1:int):void{
mActNum = _arg1;
fire();
}
public function blurOff():void{
_blur = false;
alpha = 1;
}
public function get isCanFire():Boolean{
if (((_isFire) && ((_fireFrame == _frameCount)))){
return (true);
};
return (false);
}
public function endFire():void{
_isFire = false;
mActNum = 0;
}
override public function get nowDir():int{
var _local1:int;
var _local2:int;
_local1 = Math.floor(((currentFrame - 1) / _ways));
_local2 = (currentFrame - (_local1 * _ways));
return (_local2);
}
override public function setSpd(_arg1:int, _arg2:int):void{
xspd = _arg1;
yspd = _arg2;
if (_ways == 4){
spdToFace4();
} else {
if (_ways == 8){
spdToFace8();
};
};
}
override public function eRun():void{
if (_isD){
xspd = ((parent.mouseX - midX) / 10);
yspd = ((parent.mouseY - midY) / 10);
} else {
_ai.runAI();
if (_isFire){
fireRun();
};
if (_blur){
if (speedTime > 4){
alpha = 0;
cacz.run();
};
};
};
cacz.alphaRun();
}
override public function removeSelf():void{
cacz.removeSelf();
cacz = null;
_con.removeChild(this);
_ea.removeOne(this);
}
}
}//package game.mc.base
Section 105
//FSP8 (game.mc.base.FSP8)
package game.mc.base {
import flash.display.*;
import flash.geom.*;
public class FSP8 extends Sprite {
private var _st:int;
private var _rgb:int;
private var _timer:int;
private var _num:int;
public function FSP8(_arg1:DisplayObjectContainer, _arg2:int=1, _arg3:int=10){
_timer = 0;
_rgb = _arg2;
_st = _arg3;
_num = int.MAX_VALUE;
_arg1.addChild(this);
}
public function setTimes(_arg1:int):void{
_num = _arg1;
_timer = 0;
}
public function run():void{
_timer++;
if (_num > 0){
if ((_timer % _st) < 3){
switch (_rgb){
case 1:
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0, 0, 0);
break;
case 2:
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0xFF, 0, 0);
break;
case 3:
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0xFF, 0);
break;
default:
break;
};
} else {
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
};
};
if ((_timer % _st) == 0){
_num--;
if (_num == 0){
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
};
};
}
public function removeSelf():void{
parent.removeChild(this);
}
}
}//package game.mc.base
Section 106
//HitBomb (game.mc.base.HitBomb)
package game.mc.base {
import game.unit.*;
public class HitBomb {
private var timeS:int;
private var _subr:int;
private var _r:int;
public var x:int;
public var y:int;
public function HitBomb(_arg1:int, _arg2:int, _arg3:int){
timeS = 0;
_r = _arg3;
_subr = _r;
x = _arg1;
y = _arg2;
}
public function get nowTime():int{
return (timeS);
}
public function ifHitPoint(_arg1:PointL):Boolean{
var _local2:int;
var _local3:int;
_local2 = Math.abs((x - _arg1.x));
_local3 = Math.abs((y - _arg1.y));
if ((((_local2 <= r)) && ((_local3 <= r)))){
return (true);
};
return (false);
}
public function get r():int{
return (_r);
}
public function run():void{
timeS++;
}
public function get nowS():int{
if ((((nowTime > 20)) && ((nowTime < 32)))){
_r = (_subr * 0.636);
return (1);
};
if ((((nowTime >= 32)) && ((nowTime < 52)))){
_r = (_subr * 0.848);
return (2);
};
if ((((nowTime >= 52)) && ((nowTime < 60)))){
_r = _subr;
return (3);
};
if ((((nowTime >= 60)) && ((nowTime < 120)))){
return (4);
};
if ((((nowTime >= 120)) && ((nowTime < 135)))){
return (5);
};
if (nowTime >= 135){
return (6);
};
return (0);
}
}
}//package game.mc.base
Section 107
//HitRound (game.mc.base.HitRound)
package game.mc.base {
import game.unit.*;
public class HitRound {
public var x:int;
public var y:int;
public var r:int;
public function HitRound(_arg1:int, _arg2:int, _arg3:int){
x = _arg1;
y = _arg2;
r = _arg3;
}
public function hitXLine(_arg1:XLine):Boolean{
if ((((((Math.abs((_arg1.startPoint.y - y)) < r)) && (((x + r) > _arg1.minX)))) && (((x - r) < _arg1.maxX)))){
return (true);
};
return (false);
}
public function hitYLine(_arg1:YLine):Boolean{
if ((((((Math.abs((_arg1.startPoint.x - x)) < r)) && (((y + r) > _arg1.minY)))) && (((y - r) < _arg1.maxY)))){
return (true);
};
return (false);
}
}
}//package game.mc.base
Section 108
//ItemMCBase (game.mc.base.ItemMCBase)
package game.mc.base {
import flash.events.*;
import flash.display.*;
public class ItemMCBase extends MovieClip {
public function gotoD():void{
gotoAndPlay("disappear");
addEventListener(Event.ENTER_FRAME, loop);
}
private function loop(_arg1:Event):void{
if (currentFrame == totalFrames){
removeSelf();
};
}
public function removeSelf():void{
if (parent != null){
if (parent.parent != null){
parent.parent.removeChild(parent);
};
parent.removeChild(this);
};
removeEventListener(Event.ENTER_FRAME, loop);
}
}
}//package game.mc.base
Section 109
//StopMC (game.mc.base.StopMC)
package game.mc.base {
import flash.events.*;
import flash.display.*;
import game.core.*;
public class StopMC extends MovieClip {
private var _isPlay:Boolean;
public function StopMC(){
addEventListener(Event.ENTER_FRAME, playLoop, false, 0, true);
_isPlay = true;
}
private function playLoop(_arg1:Event):void{
if (((_isPlay) && (Core.isPause))){
stop();
_isPlay = false;
} else {
if (((!(_isPlay)) && (!(Core.isPause)))){
play();
_isPlay = true;
};
};
}
}
}//package game.mc.base
Section 110
//InGameUI (game.mc.bg.InGameUI)
package game.mc.bg {
import flash.display.*;
import gs.*;
import flash.text.*;
public class InGameUI extends MovieClip {
public var clock:MovieClip;
public var _clock:MovieClip;
public var targetTxt:TextField;
public var levelTxt:TextField;
public var timeTxt:TextField;
public var score:TextField;
public var _score:TextField;
public var _level:TextField;
public var _time:TextField;
private var _target:TextField;
public var lifeTxt:TextField;
public var _life:TextField;
public function InGameUI(){
_score = (getChildByName("score") as TextField);
_time = (getChildByName("timeTxt") as TextField);
_level = (getChildByName("levelTxt") as TextField);
_life = (getChildByName("lifeTxt") as TextField);
_clock = (getChildByName("clock") as MovieClip);
_target = (getChildByName("targetTxt") as TextField);
}
public function setNow(_arg1:Number, _arg2:Number):void{
_target.text = (((_arg1 + "% / ") + _arg2) + "%");
}
public function setTime(_arg1:int):void{
var _local2:int;
var _local3:int;
var _local4:String;
var _local5:String;
_local2 = (_arg1 / 1000);
_local3 = (_local2 / 60);
_local2 = (_local2 - (_local3 * 60));
if (_local2 < 10){
_local4 = ("0" + _local2);
} else {
_local4 = ("" + _local2);
};
if (_local3 < 10){
_local5 = ("0" + _local3);
} else {
_local5 = ("" + _local3);
};
_time.text = ((_local5 + ":") + _local4);
}
public function setLevel(_arg1:int):void{
var _local2:int;
var _local3:int;
_local2 = (Math.floor(((_arg1 - 1) / 3)) + 1);
_local3 = (_arg1 - ((_local2 - 1) * 3));
_level.text = ((_local2 + " - ") + _local3);
}
public function timeLimit():void{
TweenMax.to(_time, 0.2, {scaleX:1.2, scaleY:1.2, loop:9, yoyo:true});
}
public function set life(_arg1:int):void{
_life.text = (" X " + _arg1);
}
}
}//package game.mc.bg
Section 111
//UseClean (game.mc.bg.UseClean)
package game.mc.bg {
import flash.display.*;
import flash.geom.*;
import zlong.display.*;
public class UseClean extends MovieClip {
public var gameUI:InGameUI;
public var clean2:MovieClip;
public var ui2:MovieClip;
public var clean:MovieClip;
private var _ui2:MovieClip;
private var _clean:MovieClip;
private var _clean2:MovieClip;
private var _timer:int;
private var _score:int;
public var logo:Logo;
public var ui:InGameUI;
public var dirty:MovieClip;
private var _dirty:MovieClip;
public function UseClean(_arg1:DisplayObject, _arg2:int){
cacheAsBitmap = true;
_clean = (getChildByName("clean") as MovieClip);
_clean2 = (getChildByName("clean2") as MovieClip);
_dirty = (getChildByName("dirty") as MovieClip);
ui = (getChildByName("gameUI") as InGameUI);
_ui2 = (getChildByName("ui2") as MovieClip);
_score = 0;
_clean2.gotoAndStop(_arg2);
_clean.gotoAndStop(_arg2);
_ui2.gotoAndStop(_arg2);
addChild(_arg1);
_clean.mask = _arg1;
_timer = 0;
__setProp_logo_UseClean__1();
}
public function getDirty():MovieClip{
return (_dirty);
}
public function set score(_arg1:int):void{
_score = _arg1;
ui._score.text = (_score + "");
}
public function resetTimer():void{
_timer = 0;
ui._time.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
}
public function setLogo(_arg1:Boolean):void{
if (_arg1){
getChildByName("logo").alpha = 1;
} else {
getChildByName("logo").alpha = 0.4;
};
}
function __setProp_logo_UseClean__1(){
try {
logo["componentInspectorSetting"] = true;
} catch(e:Error) {
};
logo.alignHorizontal = "Right";
logo.alignVertical = "Up";
logo.maxHeight = 80;
logo.maxWidth = 170;
logo.position = "logo_playingGame";
try {
logo["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function get dh():int{
return (Math.round(_dirty.height));
}
public function get dy():int{
return (Math.round(_dirty.y));
}
public function get score():int{
return (_score);
}
public function runTimer():void{
if (_timer == 0){
ui.timeLimit();
};
_timer++;
if ((_timer % 8) < 3){
ui._time.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0, 0, 0);
} else {
ui._time.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
};
}
public function get dw():int{
return (Math.round(_dirty.width));
}
public function get dx():int{
return (Math.round(_dirty.x));
}
}
}//package game.mc.bg
Section 112
//ThreeTwoOne (game.mc.other.ThreeTwoOne)
package game.mc.other {
import flash.events.*;
import flash.display.*;
import game.core.*;
import flash.geom.*;
import game.sound.ctrl.*;
public class ThreeTwoOne extends MovieClip {
public var level:MovieClip;
private var _core:Core;
public function ThreeTwoOne(_arg1:DisplayObjectContainer, _arg2:Core, _arg3:int){
var _local4:MovieClip;
super();
addFrameScript(0, frame1, 19, frame20, 38, frame39, 57, frame58, 93, frame94);
_arg1.addChild(this);
_core = _arg2;
addEventListener(Event.ENTER_FRAME, loop);
_local4 = (getChildByName("level") as MovieClip);
if (_arg3 > 9){
_local4.gotoAndStop((_arg3 - 9));
_local4.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0, 0, 0);
} else {
_local4.gotoAndStop(_arg3);
};
}
function frame94(){
stop();
}
function frame1(){
SoundCtrl.playFx("back123");
}
function frame20(){
SoundCtrl.playFx("back123");
}
function frame39(){
SoundCtrl.playFx("back123");
}
private function loop(_arg1:Event):void{
if (currentFrame == totalFrames){
_core.resume();
removeSelf();
};
}
function frame58(){
SoundCtrl.playFx("back0");
}
public function removeSelf():void{
removeEventListener(Event.ENTER_FRAME, loop);
parent.removeChild(this);
}
}
}//package game.mc.other
Section 113
//AngryLadyB (game.mc.unit.AngryLadyB)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.array.*;
public class AngryLadyB extends EBoss {
public function AngryLadyB(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:Boolean=false){
super(_arg1, _arg2, _arg3, _arg4);
}
}
}//package game.mc.unit
Section 114
//BikerE (game.mc.unit.BikerE)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.array.*;
public class BikerE extends EBase {
public function BikerE(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:Boolean=false){
super(_arg1, _arg2, _arg3, _arg4);
}
}
}//package game.mc.unit
Section 115
//BikiniE (game.mc.unit.BikiniE)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.array.*;
public class BikiniE extends EBase {
public function BikiniE(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:Boolean=false){
super(_arg1, _arg2, _arg3, _arg4);
}
}
}//package game.mc.unit
Section 116
//BodyBuilderE (game.mc.unit.BodyBuilderE)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.array.*;
public class BodyBuilderE extends EBase {
public function BodyBuilderE(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:Boolean=false){
super(_arg1, _arg2, _arg3, _arg4);
}
}
}//package game.mc.unit
Section 117
//Bomb (game.mc.unit.Bomb)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.array.*;
import game.tool.*;
public class Bomb extends MovieClip {
public var bomb:MovieClip;
private var toPoint:PointL;
private var _ba:BombArray;
private var nowLine:Line;
private var lineNum:int;
public function Bomb(_arg1:BombArray, _arg2:PointL, _arg3:Boolean=false){
if (_arg3){
gotoAndStop(2);
} else {
stop();
};
_ba = _arg1;
_ba.addOne(this);
lineNum = -1;
toPoint = null;
init(_arg2);
}
public function init(_arg1:PointL):void{
x = _arg1.x;
y = _arg1.y;
}
private function toRandom():void{
if (Math.floor((Math.random() * 3)) == 0){
x++;
} else {
if (Math.floor((Math.random() * 3)) == 1){
x--;
};
};
if (Math.floor((Math.random() * 3)) == 0){
y++;
} else {
if (Math.floor((Math.random() * 3)) == 1){
y--;
};
};
}
public function bombRun(_arg1:Array, _arg2:int):void{
var _local3:PointL;
var _local4:int;
var _local5:PointL;
var _local6:Number;
var _local7:int;
var _local8:Number;
var _local9:int;
_local3 = new PointL(Math.round(x), Math.round(y));
if (lineNum == -1){
lineNum = Tool.pointInLineArrayLineNum(_local3, _arg1, 12);
if ((((lineNum >= 0)) && ((lineNum < _arg1.length)))){
nowLine = (_arg1[lineNum] as Line);
} else {
trace(lineNum);
_local3.traceXY();
lineNum = -1;
};
} else {
if ((((lineNum < (_arg1.length - 1))) && (_local3.sameAs(toPoint)))){
lineNum++;
nowLine = (_arg1[lineNum] as Line);
x = nowLine.startPoint.x;
y = nowLine.startPoint.y;
};
};
if ((((lineNum >= 0)) && ((lineNum < _arg1.length)))){
toPoint = nowLine.endPoint;
_local6 = (toPoint.x - Math.round(x));
_local7 = (_local6 / Math.abs(_local6));
_local8 = (toPoint.y - Math.round(y));
_local9 = (_local8 / Math.abs(_local8));
if ((nowLine is XLine)){
if (_local9 != 0){
y = toPoint.y;
};
if (_local7 > 0){
rotation = 0;
} else {
rotation = 180;
};
_local4 = 0;
while (_local4 < _arg2) {
_local5 = new PointL((Math.round(x) + _local7), Math.round(y));
if (!nowLine.pointIn(_local5)){
x = toPoint.x;
y = toPoint.y;
break;
} else {
x = _local5.x;
y = toPoint.y;
};
_local4++;
};
} else {
if ((nowLine is YLine)){
if (_local7 != 0){
x = toPoint.x;
};
if (_local9 > 0){
rotation = 90;
} else {
rotation = -90;
};
_local4 = 0;
while (_local4 < _arg2) {
_local5 = new PointL(Math.round(x), (Math.round(y) + _local9));
if (!nowLine.pointIn(_local5)){
x = toPoint.x;
y = toPoint.y;
break;
} else {
x = toPoint.x;
y = _local5.y;
};
_local4++;
};
};
};
};
}
public function removeSelf():void{
_ba.removeOne(this);
if (currentFrame == 1){
(getChildByName("bomb") as MovieClip).gotoAndPlay("boom");
} else {
parent.removeChild(this);
};
}
}
}//package game.mc.unit
Section 118
//BombG (game.mc.unit.BombG)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.array.*;
public class BombG extends MovieClip {
private var xspd:int;
private var wOff:int;
private var _ga:GArray;
private var yspd:int;
private var hit:HitRound;
private var _con:DisplayObjectContainer;
private var mAct:int;
private var hOff:int;
public function BombG(_arg1:PointL, _arg2:PointL, _arg3:DisplayObjectContainer, _arg4:GArray, _arg5:int=5){
var _local6:Number;
super();
xspd = 0;
yspd = 0;
mAct = 0;
wOff = Math.round((width / 2));
hOff = Math.round((height / 2));
hit = new HitRound(_arg1.x, _arg1.y, (wOff / 2));
_ga = _arg4;
_local6 = Math.sqrt((Math.pow((_arg2.x - hit.x), 2) + Math.pow((_arg2.y - hit.y), 2)));
setSpd(((_arg5 * (_arg2.x - hit.x)) / _local6), ((_arg5 * (_arg2.y - hit.y)) / _local6));
_ga.addOne(this);
_con = _arg3;
updateP();
_con.addChild(this);
}
public function removeSelf():void{
_con.removeChild(this);
_ga.removeOne(this);
}
public function get nextYdir():int{
var _local1:int;
_local1 = 0;
if (yspd != 0){
_local1 = (yspd / Math.abs(yspd));
};
return ((hit.y + _local1));
}
public function get midX():int{
return (hit.x);
}
public function setSpd(_arg1:int, _arg2:int):void{
xspd = _arg1;
yspd = _arg2;
}
public function get midY():int{
return (hit.y);
}
public function turnXspd(_arg1:PointL):void{
if ((hit.x - _arg1.x) < 0){
hit.x = (_arg1.x - (hit.r + 1));
} else {
hit.x = (_arg1.x + (hit.r + 1));
};
xspd = (xspd * -1);
updateP();
}
public function get isStop():Boolean{
if (((!((xspd == 0))) || (!((yspd == 0))))){
return (false);
};
return (true);
}
public function get mActNum():int{
return (mAct);
}
public function ifHitYLine(_arg1:YLine):Boolean{
if (hit.hitYLine(_arg1)){
return (true);
};
return (false);
}
public function get r():int{
return (hit.r);
}
public function updateP():void{
hit.x = nextXdir;
hit.y = nextYdir;
x = hit.x;
y = hit.y;
}
public function run():void{
updateP();
}
public function get nextXdir():int{
var _local1:int;
_local1 = 0;
if (xspd != 0){
_local1 = (xspd / Math.abs(xspd));
};
return ((hit.x + _local1));
}
public function gRun():void{
run();
}
public function turnYspd(_arg1:PointL):void{
if ((hit.y - _arg1.y) < 0){
hit.y = (_arg1.y - (hit.r + 1));
} else {
hit.y = (_arg1.y + (hit.r + 1));
};
yspd = (yspd * -1);
updateP();
}
public function get speedTime():int{
return (Math.round(Math.sqrt((Math.pow(xspd, 2) + Math.pow(yspd, 2)))));
}
public function set mActNum(_arg1:int):void{
var _local2:int;
var _local3:int;
mAct = _arg1;
_local2 = Math.floor(((currentFrame - 1) / 4));
_local3 = (currentFrame - (_local2 * 4));
if (((mAct * 4) + _local3) != currentFrame){
gotoAndStop(((mAct * 4) + _local3));
};
}
public function get nextX():int{
return ((hit.x + xspd));
}
public function get nextY():int{
return ((hit.y + yspd));
}
public function get nowDir():int{
var _local1:int;
var _local2:int;
_local1 = Math.floor(((currentFrame - 1) / 4));
_local2 = (currentFrame - (_local1 * 4));
return (_local2);
}
public function ifHitXLine(_arg1:XLine):Boolean{
if (hit.hitXLine(_arg1)){
return (true);
};
return (false);
}
}
}//package game.mc.unit
Section 119
//BombH (game.mc.unit.BombH)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.array.*;
import game.sound.ctrl.*;
public class BombH extends MovieClip {
private var hitB:HitBomb;
private var _hba:HArray;
public function BombH(_arg1:int, _arg2:int, _arg3:int, _arg4:HArray){
addFrameScript(14, frame15, 24, frame25, 44, frame45, 134, frame135);
stop();
hitB = new HitBomb(_arg1, _arg2, _arg3);
width = (_arg3 * 2);
height = (_arg3 * 2);
x = (_arg1 - (width / 2));
y = (_arg2 - (height / 2));
_hba = _arg4;
_hba.addOne(this);
}
public function ifHitPoint(_arg1:PointL):Boolean{
return (hitB.ifHitPoint(_arg1));
}
public function hRun():void{
hitB.run();
if (currentFrame != totalFrames){
nextFrame();
};
if (hitB.nowS == 6){
hitB = null;
removeSelf();
};
}
function frame15(){
SoundCtrl.playFx("fatG");
}
function frame25(){
SoundCtrl.playFx("fatG");
}
function frame45(){
SoundCtrl.playFx("fatG");
}
function frame135(){
stop();
}
public function get now():int{
return (hitB.nowS);
}
public function testClear():void{
graphics.clear();
}
public function removeSelf():void{
parent.removeChild(this);
_hba.removeOne(this);
}
}
}//package game.mc.unit
Section 120
//ChildE (game.mc.unit.ChildE)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.array.*;
public class ChildE extends EBase {
public function ChildE(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:Boolean=false){
super(_arg1, _arg2, _arg3, _arg4);
}
}
}//package game.mc.unit
Section 121
//Dead (game.mc.unit.Dead)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import flash.filters.*;
public class Dead extends MovieClip {
public function Dead(_arg1:DisplayObjectContainer, _arg2:PointL){
var _local3:BitmapFilter;
var _local4:Array;
super();
addFrameScript(30, frame31);
x = (_arg2.x - (width / 2));
y = (_arg2.y - (height / 2));
_local3 = new GlowFilter((0xFFFFFF * Math.random()), 0.5, 10, 10, 5, BitmapFilterQuality.LOW, false, false);
_local4 = new Array();
_local4.push(_local3);
filters = _local4;
_arg1.addChild(this);
}
function frame31(){
if (parent != null){
parent.removeChild(this);
};
}
}
}//package game.mc.unit
Section 122
//FormanB (game.mc.unit.FormanB)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.array.*;
public class FormanB extends EBoss {
public function FormanB(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:Boolean=false){
super(_arg1, _arg2, _arg3, _arg4);
}
}
}//package game.mc.unit
Section 123
//Item (game.mc.unit.Item)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.core.*;
import game.array.*;
import game.tool.*;
public class Item extends MovieClip {
private var _itemMC:ItemMCBase;
private var _timeLong:int;
private var _timer:int;
private var _ia:ItemArray;
public function Item(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:ItemArray, _arg4:int){
graphics.drawRect(-20, -20, 40, 40);
x = _arg1.x;
y = _arg1.y;
if (_arg2 != null){
_arg2.addChild(this);
_arg3.addOne(this);
_ia = _arg3;
};
_timer = 0;
_timeLong = _arg4;
_itemMC = (getChildByName("it") as ItemMCBase);
}
public function actToCore(_arg1:Core):void{
}
public function ifIn(_arg1:ArrayCtrl):Boolean{
if ((Tool.ckCrossNum(x, y, _arg1.lineArray) % 2) == 0){
return (true);
};
return (false);
}
public function get timer():int{
return (_timer);
}
public function hitPlayer(_arg1:BaseCleanMC):Boolean{
if (((((((Hit.pointInPoints(_arg1.ul, ul, ur, dl, dr)) || (Hit.pointInPoints(_arg1.ur, ul, ur, dl, dr)))) || (Hit.pointInPoints(_arg1.dl, ul, ur, dl, dr)))) || (Hit.pointInPoints(_arg1.dr, ul, ur, dl, dr)))){
return (true);
};
return (false);
}
public function iRun():void{
_timer++;
if ((_timeLong - _timer) < 100){
if ((_timer % 5) == 0){
alpha = 0.3;
} else {
alpha = 1;
};
};
}
public function removeD():void{
parent.removeChild(this);
_ia.removeOne(this);
}
public function ifInEX(_arg1:ArrayCtrl):Boolean{
if (((((((((Tool.ckCrossNum(ul.x, ul.y, _arg1.lineArray) % 2) == 0)) || (((Tool.ckCrossNum(ur.x, ur.y, _arg1.lineArray) % 2) == 0)))) || (((Tool.ckCrossNum(dl.x, dl.y, _arg1.lineArray) % 2) == 0)))) || (((Tool.ckCrossNum(dr.x, dr.y, _arg1.lineArray) % 2) == 0)))){
return (true);
};
return (false);
}
public function get dr():PointL{
return (new PointL((x + (width / 2)), (y + (height / 2))));
}
public function get ul():PointL{
return (new PointL((x - (width / 2)), (y - (height / 2))));
}
public function get ur():PointL{
return (new PointL((x + (width / 2)), (y - (height / 2))));
}
public function get dl():PointL{
return (new PointL((x - (width / 2)), (y + (height / 2))));
}
public function get timeLong():int{
return (_timeLong);
}
public function actToPlayer(_arg1:BaseCleanMC):void{
}
public function removeSelf():void{
_itemMC.gotoD();
_ia.removeOne(this);
}
}
}//package game.mc.unit
Section 124
//ItemEnd (game.mc.unit.ItemEnd)
package game.mc.unit {
import flash.display.*;
import flash.text.*;
public class ItemEnd extends MovieClip {
public var i2:MovieClip;
public function ItemEnd(_arg1:String, _arg2:DisplayObjectContainer, _arg3:MovieClip){
addFrameScript(21, frame22);
x = _arg3.x;
y = _arg3.y;
((getChildByName("i2") as MovieClip).getChildByName("_txt") as TextField).text = _arg1;
_arg2.addChild(this);
}
function frame22(){
stop();
if (parent != null){
trace("removeS2");
parent.removeChild(this);
};
}
}
}//package game.mc.unit
Section 125
//ItemLife (game.mc.unit.ItemLife)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.core.*;
import game.array.*;
public class ItemLife extends Item {
public var it:item_lifes;
public function ItemLife(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:ItemArray, _arg4:int){
super(_arg1, _arg2, _arg3, _arg4);
}
override public function actToCore(_arg1:Core):void{
_arg1.lifeAdd();
new ItemEnd("1UP", _arg1, this);
}
}
}//package game.mc.unit
Section 126
//ItemPoint (game.mc.unit.ItemPoint)
package game.mc.unit {
import flash.display.*;
public class ItemPoint extends MovieClip {
}
}//package game.mc.unit
Section 127
//ItemScore (game.mc.unit.ItemScore)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.core.*;
import game.array.*;
public class ItemScore extends Item {
public var it:item_Points;
private var _score:int;
public function ItemScore(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:ItemArray, _arg4:int, _arg5:int){
super(_arg1, _arg2, _arg3, _arg4);
_score = _arg5;
}
override public function actToCore(_arg1:Core):void{
_arg1.scoreAdd((_score * _arg1.scoreTime));
new ItemEnd(("+" + (_score * _arg1.scoreTime)), _arg1, this);
}
}
}//package game.mc.unit
Section 128
//ItemSpeed (game.mc.unit.ItemSpeed)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.core.*;
import game.array.*;
public class ItemSpeed extends Item {
public var it:item_Speedboost;
private var _timePlayer:int;
public function ItemSpeed(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:ItemArray, _arg4:int, _arg5:int){
super(_arg1, _arg2, _arg3, _arg4);
_timePlayer = _arg5;
}
override public function actToCore(_arg1:Core):void{
new ItemEnd("Run!", _arg1, this);
}
override public function actToPlayer(_arg1:BaseCleanMC):void{
_arg1.speedUp(_timePlayer);
}
}
}//package game.mc.unit
Section 129
//LifeGuardB (game.mc.unit.LifeGuardB)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.array.*;
import flash.filters.*;
public class LifeGuardB extends EBoss {
public function LifeGuardB(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:Boolean=false){
super(_arg1, _arg2, _arg3, _arg4);
}
override protected function fireRun():void{
var _local1:BitmapFilter;
var _local2:Array;
_frameCount++;
if (_frameCount >= _endFrame){
endFire();
filters = null;
} else {
if ((_frameCount % 4) < 2){
_local1 = new GlowFilter(0xFF0000, 1, 4, 4, 16, BitmapFilterQuality.LOW, false, false);
_local2 = new Array();
_local2.push(_local1);
filters = _local2;
} else {
filters = null;
};
};
}
}
}//package game.mc.unit
Section 130
//MrQuick (game.mc.unit.MrQuick)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.core.*;
import game.array.*;
import game.tool.*;
import theLong.array.*;
public class MrQuick extends BaseCleanMC {
public var firstTo:Boolean;
private var cacz:ConArrayCtrlZero;
private var _mrTimer:int;
private var _core:Core;
private var _ip:ItemPoint;
private var _red:Boolean;
public function MrQuick(_arg1:int, _arg2:int, _arg3:DisplayObjectContainer, _arg4:Core){
firstTo = true;
cacz = new ConArrayCtrlZero(_arg3, this);
super(_arg1, _arg2, _arg3);
_core = _arg4;
_red = false;
ipStart();
}
public function setPoint(_arg1:PointL):void{
dX = _arg1.x;
dY = _arg1.y;
x = (dX - wOff);
y = (dY - hOff);
}
private function ipOn():void{
_ip = new ItemPoint();
_ip.x = 5;
_ip.y = -30;
addChild(_ip);
}
public function redStart():void{
_red = true;
gotoAndStop("dead");
}
private function ipLoop():void{
_mrTimer++;
if (_mrTimer == 120){
ipOff();
_mrTimer = -1;
};
}
private function mrOffToRoad(_arg1:ArrayCtrl):void{
var _local2:PointL;
var _local3:Line;
var _local4:PointL;
_local2 = new PointL(midX, midY);
_local3 = Tool.findPointInLineArrayNot(_local2, _arg1.lineArray);
if (_local3 != null){
_local4 = _local3.findNearPoint(_local2);
if ((((_local2.x == _local4.x)) && ((Math.abs((_local4.y - _local2.y)) < 15)))){
if ((_local4.y - _local2.y) > 0){
change4WSpd(2, 5);
} else {
change4WSpd(1, 5);
};
} else {
if ((((_local2.y == _local4.y)) && ((Math.abs((_local4.x - _local2.x)) < 15)))){
if ((_local4.x - _local2.x) > 0){
change4WSpd(4, 5);
} else {
change4WSpd(3, 5);
};
};
};
};
}
public function redEnd():void{
_red = false;
gotoAndStop(1);
}
private function ipOff():void{
removeChild(_ip);
_ip = null;
}
public function ipStart():void{
_mrTimer = 0;
if (_ip != null){
ipOff();
};
ipOn();
}
public function mrLoop(_arg1:ArrayCtrl, _arg2:HArray):void{
var _local3:PointL;
var _local4:PointL;
var _local5:PointL;
var _local6:PointL;
var _local7:PointL;
var _local8:Line;
var _local9:PointL;
if (_mrTimer != -1){
ipLoop();
};
_local3 = new PointL(nextXdir, nextYdir);
_local4 = new PointL(nextX, nextY);
if (mActNum != 0){
if (((((!(isStop)) && ((_arg1.newPointArray.length == 1)))) && (((Tool.ckCrossNum(_local3.x, _local3.y, _arg1.lineArray) % 2) == 0)))){
_core.stopAndCleanOne();
};
if (_arg1.newPointArray.length > 2){
_local5 = (_arg1.newPointArray[(_arg1.newPointArray.length - 2)] as PointL);
_local6 = (_arg1.newPointArray[(_arg1.newPointArray.length - 1)] as PointL);
if (_local5.sameAs(_local6)){
_local7 = new PointL(midX, midY);
_arg1.removePoint(_local7);
_arg1.removePoint(_local7);
trace("remove2");
};
};
if ((((((_arg1.newPointArray.length > 2)) && (!(Tool.pointInLineArray(_local4, _arg1.lineArray))))) && (Tool.pointInLineArray(_local4, Tool.point2LineNotHTNotLast(_arg1.newPointArray))))){
change4WSpd(0, 5);
};
if (_arg1.newPointArray.length > 0){
_local8 = (_arg1.newLineArray[(_arg1.newLineArray.length - 1)] as Line);
_local8.endPoint = new PointL(midX, midY);
_core.cleanLineAndDraw();
if (Tool.pointInLineArray(_local4, _arg1.lineArray)){
_core.nextStep(_local4);
};
};
} else {
if ((((spdM == 1)) && (!(Tool.pointInLineArray(_local3, _arg1.lineArray))))){
mrOffToRoad(_arg1);
};
_local9 = new PointL(nextXdir, nextYdir);
if (!Tool.pointInLineArray(_local9, _arg1.lineArray)){
change4WSpd(0, 5);
};
};
_arg2.nextHitP(this);
run();
if (spdM > 1){
cacz.run();
} else {
cacz.alphaRun();
};
}
public function redLoop():void{
}
override public function removeSelf():void{
cacz.removeSelf();
cacz = null;
parent.removeChild(this);
}
}
}//package game.mc.unit
Section 131
//MsgE (game.mc.unit.MsgE)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.array.*;
public class MsgE extends EBase {
public function MsgE(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:Boolean=false){
super(_arg1, _arg2, _arg3, _arg4);
}
}
}//package game.mc.unit
Section 132
//Officer1E (game.mc.unit.Officer1E)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.array.*;
public class Officer1E extends EBase {
public function Officer1E(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:Boolean=false){
super(_arg1, _arg2, _arg3, _arg4);
}
}
}//package game.mc.unit
Section 133
//Officer2E (game.mc.unit.Officer2E)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.array.*;
public class Officer2E extends EBase {
public function Officer2E(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:Boolean=false){
super(_arg1, _arg2, _arg3, _arg4);
}
}
}//package game.mc.unit
Section 134
//ShoppingE (game.mc.unit.ShoppingE)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.array.*;
public class ShoppingE extends EBase {
public function ShoppingE(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:Boolean=false){
super(_arg1, _arg2, _arg3, _arg4);
}
}
}//package game.mc.unit
Section 135
//Star (game.mc.unit.Star)
package game.mc.unit {
import flash.display.*;
import flash.filters.*;
public class Star extends MovieClip {
public function Star(){
var _local1:BitmapFilter;
var _local2:Array;
super();
addFrameScript(21, frame22, 54, frame55);
_local1 = new GlowFilter((0xFFFFFF * Math.random()), 0.5, 10, 10, 5, BitmapFilterQuality.LOW, false, false);
_local2 = new Array();
_local2.push(_local1);
filters = _local2;
}
function frame22(){
if (parent != null){
parent.removeChild(this);
};
}
function frame55(){
if (parent != null){
parent.removeChild(this);
};
}
}
}//package game.mc.unit
Section 136
//SurferE (game.mc.unit.SurferE)
package game.mc.unit {
import flash.display.*;
import game.unit.*;
import game.mc.base.*;
import game.array.*;
public class SurferE extends EBase {
public function SurferE(_arg1:PointL, _arg2:DisplayObjectContainer, _arg3:EArray, _arg4:Boolean=false){
super(_arg1, _arg2, _arg3, _arg4);
}
}
}//package game.mc.unit
Section 137
//TimeOut (game.mc.unit.TimeOut)
package game.mc.unit {
import flash.display.*;
public class TimeOut extends MovieClip {
}
}//package game.mc.unit
Section 138
//SoundCtrl (game.sound.ctrl.SoundCtrl)
package game.sound.ctrl {
import game.core.*;
import flash.media.*;
import com.zlonggames.wenguanghui.Tool.*;
public class SoundCtrl {
private static var chClean:SoundChannel;
private static var ch:SoundChannel;
private static var now:String = "no";
public static function playMusic(_arg1:String, _arg2:int):void{
var _local3:SoundTransform;
if (((Core.music) && (!((now == _arg1))))){
stopMusic();
ch = Attach.f_getSound(_arg1).play(0, _arg2);
if (ch != null){
_local3 = ch.soundTransform;
_local3.volume = 0.8;
ch.soundTransform = _local3;
};
};
now = _arg1;
}
public static function stopMusic():void{
if (ch != null){
ch.stop();
};
now = "no";
}
public static function playClean():void{
chClean = Attach.f_getSound("cleanLoop").play(0, int.MAX_VALUE);
}
public static function playFx(_arg1:String):void{
if (Core.sound){
Attach.f_getSound(_arg1).play();
};
}
public static function stopClean():void{
if (chClean != null){
chClean.stop();
};
}
}
}//package game.sound.ctrl
Section 139
//FX (game.tool.FX)
package game.tool {
import flash.display.*;
import game.unit.*;
import game.mc.unit.*;
public class FX {
public static function fxStar(_arg1:DisplayObjectContainer, _arg2:Line):void{
var _local3:int;
var _local4:MovieClip;
var _local5:int;
var _local6:int;
var _local7:int;
if ((_arg2 is XLine)){
_local5 = (_arg2.maxX - _arg2.minX);
_local3 = 0;
while (_local3 < _local5) {
_local6 = (Math.random() * 5);
_local7 = ((Math.random() * 10) + 5);
_local4 = new Star();
_local4.x = (_arg2.minX + _local3);
_local4.y = (_arg2.minY - _local6);
_local4.width = _local7;
_local4.height = _local7;
_arg1.addChild(_local4);
_local6 = (Math.random() * 5);
_local7 = ((Math.random() * 10) + 5);
_local4 = new Star();
_local4.x = (_arg2.minX + _local3);
_local4.y = (_arg2.minY + _local6);
_local4.width = _local7;
_local4.height = _local7;
_local4.rotation = 180;
_arg1.addChild(_local4);
_local3 = (_local3 + 15);
};
} else {
if ((_arg2 is YLine)){
_local5 = (_arg2.maxY - _arg2.minY);
_local3 = 0;
while (_local3 < _local5) {
_local6 = (Math.random() * 5);
_local7 = ((Math.random() * 10) + 5);
_local4 = new Star();
_local4.x = (_arg2.minX - _local6);
_local4.y = (_arg2.minY + _local3);
_local4.width = _local7;
_local4.height = _local7;
_local4.rotation = 90;
_arg1.addChild(_local4);
_local6 = (Math.random() * 5);
_local7 = ((Math.random() * 10) + 5);
_local4 = new Star();
_local4.x = (_arg2.minX + _local6);
_local4.y = (_arg2.minY + _local3);
_local4.width = _local7;
_local4.height = _local7;
_local4.rotation = -90;
_arg1.addChild(_local4);
_local3 = (_local3 + 15);
};
};
};
}
public static function fxStarArray(_arg1:DisplayObjectContainer, _arg2:Array):void{
var _local3:Line;
for each (_local3 in _arg2) {
fxStar(_arg1, _local3);
};
}
}
}//package game.tool
Section 140
//Hit (game.tool.Hit)
package game.tool {
import game.unit.*;
import game.mc.base.*;
public class Hit {
public static function pointInPoints(_arg1:PointL, _arg2:PointL, _arg3:PointL, _arg4:PointL, _arg5:PointL):Boolean{
if ((((((((_arg1.x > _arg4.x)) && ((_arg1.x < _arg3.x)))) && ((_arg1.y > _arg2.y)))) && ((_arg1.y < _arg5.y)))){
return (true);
};
return (false);
}
public static function lineTheClose(_arg1:Array, _arg2:EBase):Line{
var _local3:Line;
var _local4:PointL;
var _local5:Line;
if (_arg1.length == 1){
return ((_arg1[0] as Line));
};
if (_arg1.length > 1){
_local3 = (_arg1[0] as Line);
_local4 = new PointL(_arg2.midX, _arg2.midY);
for each (_local5 in _arg1) {
if (_local3.pointDis(_local4) < _local5.pointDis(_local4)){
_local3 = _local5;
};
};
return (_local3);
};
return (null);
}
public static function eBaseHitLineArrayToPoint(_arg1:Line, _arg2:EBase):PointL{
if ((_arg1 is XLine)){
return (new PointL(_arg2.midX, _arg1.startPoint.y));
};
if ((_arg1 is YLine)){
return (new PointL(_arg1.startPoint.x, _arg2.midY));
};
return (null);
}
public static function eBaseHitLineArrayToLine(_arg1:EBase, _arg2:Array):Array{
var _local3:Array;
var _local4:Line;
_local3 = new Array();
for each (_local4 in _arg2) {
if ((((_local4 is XLine)) && (_arg1.ifHitXLine((_local4 as XLine))))){
_local3.push(_local4);
};
if ((((_local4 is YLine)) && (_arg1.ifHitYLine((_local4 as YLine))))){
_local3.push(_local4);
};
};
return (_local3);
}
}
}//package game.tool
Section 141
//Tool (game.tool.Tool)
package game.tool {
import flash.display.*;
import game.unit.*;
import game.make.*;
public class Tool {
public static function pointIn2Points(_arg1:PointL, _arg2:PointL, _arg3:PointL):Boolean{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
if ((((_arg2.x == _arg3.x)) && ((_arg1.x == _arg2.x)))){
_local4 = Math.min(_arg2.y, _arg3.y);
_local5 = Math.max(_arg2.y, _arg3.y);
if ((((_arg1.y >= _local4)) && ((_arg1.y <= _local5)))){
return (true);
};
} else {
if ((((_arg2.y == _arg3.y)) && ((_arg1.y == _arg2.y)))){
_local6 = Math.min(_arg2.x, _arg3.x);
_local7 = Math.max(_arg2.x, _arg3.x);
if ((((_arg1.x >= _local6)) && ((_arg1.x <= _local7)))){
return (true);
};
};
};
return (false);
}
private static function pointInYLineArray(_arg1:PointL, _arg2:Array):YLine{
var _local3:Line;
for each (_local3 in _arg2) {
if (((_local3.pointIn(_arg1)) && ((_local3 is YLine)))){
return ((_local3 as YLine));
};
};
return (null);
}
public static function drawByPointArray(_arg1:Graphics, _arg2:Array, _arg3:Boolean=true, _arg4:int=0xFF0000, _arg5:int=2):void{
var _local6:int;
var _local7:PointL;
_arg1.moveTo((_arg2[0] as PointL).x, (_arg2[0] as PointL).y);
_arg1.lineStyle(_arg5, _arg4);
if (_arg3){
_arg1.beginFill(5583752);
};
_local6 = 1;
while (_local6 < _arg2.length) {
_local7 = (_arg2[_local6] as PointL);
_arg1.lineTo(_local7.x, _local7.y);
_local6++;
};
_arg1.lineTo((_arg2[0] as PointL).x, (_arg2[0] as PointL).y);
_arg1.endFill();
}
public static function removePointInLine(_arg1:Array):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:PointL;
var _local6:PointL;
var _local7:PointL;
var _local8:Line;
_local2 = 0;
while (_local2 < _arg1.length) {
_local3 = (_local2 - 1);
_local4 = (_local2 + 1);
if (_local3 < 0){
_local3 = (_arg1.length - 1);
};
if (_local4 > (_arg1.length - 1)){
_local4 = 0;
};
_local5 = (_arg1[_local3] as PointL);
_local6 = (_arg1[_local2] as PointL);
_local7 = (_arg1[_local4] as PointL);
_local8 = MakeLine.makeLine(_local5, _local7);
if ((((((_local8 is XLine)) || ((_local8 is YLine)))) && (_local8.pointIn(_local6)))){
_arg1.splice(_local2, 1);
} else {
_local2++;
};
};
}
public static function point2LineNotHTNotLast(_arg1:Array):Array{
var _local2:Array;
var _local3:int;
_local2 = new Array();
_local3 = 0;
while (_local3 < (_arg1.length - 2)) {
_local2.push(MakeLine.makeLine((_arg1[_local3] as PointL), (_arg1[(_local3 + 1)] as PointL)));
_local3++;
};
return (_local2);
}
public static function xpInLineArray(_arg1:int, _arg2:int, _arg3:Array):Boolean{
var _local4:PointL;
var _local5:Line;
_local4 = new PointL(_arg1, _arg2);
for each (_local5 in _arg3) {
if (_local5.pointIn(_local4)){
return (true);
};
};
return (false);
}
public static function pointInSameXLine(_arg1:PointL, _arg2:PointL, _arg3:Array):Boolean{
var _local4:XLine;
var _local5:XLine;
_local4 = findInXLineArray(_arg1, _arg3, 0);
_local5 = findInXLineArray(_arg2, _arg3, 0);
if (_local4 == _local5){
return (true);
};
return (false);
}
public static function findPointInLineArrayNot(_arg1:PointL, _arg2:Array):Line{
var _local3:Line;
for each (_local3 in _arg2) {
if (_local3.pointInNot(_arg1)){
return (_local3);
};
};
return (null);
}
private static function findMinMax(_arg1:Array):Array{
var _local2:Array;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:PointL;
_local2 = new Array();
_local3 = 99999;
_local4 = 99999;
_local5 = 0;
_local6 = 0;
for each (_local7 in _arg1) {
_local3 = Math.min(_local3, _local7.x);
_local4 = Math.min(_local4, _local7.y);
_local5 = Math.max(_local5, _local7.x);
_local6 = Math.max(_local6, _local7.y);
};
_local2.push(_local3);
_local2.push(_local4);
_local2.push(_local5);
_local2.push(_local6);
return (_local2);
}
private static function lineInLineArray(_arg1:Line, _arg2:Array):Boolean{
var _local3:Line;
for each (_local3 in _arg2) {
if (_local3.sameAsNoDir(_arg1)){
return (true);
};
};
return (false);
}
public static function ck2LineDir(_arg1:Line, _arg2:Line):Boolean{
if ((((_arg1 is XLine)) && ((_arg2 is XLine)))){
if ((_arg1 as XLine).dir == (_arg2 as XLine).dir){
return (true);
};
} else {
if ((((_arg1 is YLine)) && ((_arg2 is YLine)))){
if ((_arg1 as YLine).dir == (_arg2 as YLine).dir){
return (true);
};
};
};
return (false);
}
public static function point2LineNotHT(_arg1:Array):Array{
var _local2:Array;
var _local3:int;
_local2 = new Array();
_local3 = 0;
while (_local3 < (_arg1.length - 1)) {
_local2.push(MakeLine.makeLine((_arg1[_local3] as PointL), (_arg1[(_local3 + 1)] as PointL)));
_local3++;
};
return (_local2);
}
public static function makeNewPointForSame(_arg1:Array, _arg2:Array):Array{
var _local3:Array;
var _local4:Line;
var _local5:Line;
_local3 = _arg2;
_local4 = MakeLine.makeLine((_arg1[(_arg1.length - 2)] as PointL), (_arg1[(_arg1.length - 1)] as PointL));
_local5 = MakeLine.makeLine((_arg2[0] as PointL), (_arg2[1] as PointL));
_local3.shift();
if ((((((_local4 is XLine)) && ((_local5 is XLine)))) || ((((_local4 is YLine)) && ((_local5 is YLine)))))){
_local3 = samePointMakeArray((_arg2.length - 2), _arg2, -1);
};
return (_local3);
}
public static function findInXLineArray(_arg1:PointL, _arg2:Array, _arg3:int):XLine{
var _local4:Line;
var _local5:Line;
for each (_local5 in _arg2) {
if ((((_local5 is XLine)) && (_local5.pointIn(_arg1, _arg3)))){
_local4 = _local5;
};
};
return ((_local4 as XLine));
}
public static function mapCount(_arg1:int, _arg2:int, _arg3:Array, _arg4:Array, _arg5:int, _arg6:int):int{
var _local7:int;
var _local8:int;
var _local9:int;
_local7 = 0;
_local8 = 0;
while (_local8 < _arg3.length) {
_local9 = 0;
while (_local9 < _arg3.length) {
if ((((_arg3[_local8][_local9] == null)) && (!(((ckCrossNum((((_local8 + 0.5) * _arg5) + _arg1), (((_local9 + 0.5) * _arg6) + _arg2), _arg4) % 2) == 0))))){
_local7++;
_arg3[_local8][_local9] = true;
};
_local9++;
};
_local8++;
};
return (_local7);
}
public static function crossXYLine(_arg1:XLine, _arg2:YLine):PointL{
if ((((((((_arg2.startPoint.x >= _arg1.minX)) && ((_arg2.startPoint.x <= _arg1.maxX)))) && ((_arg1.startPoint.y >= _arg2.minY)))) && ((_arg1.startPoint.y <= _arg2.maxY)))){
return (new PointL(_arg2.startPoint.x, _arg1.startPoint.y));
};
return (null);
}
public static function init2DArray(_arg1:Array, _arg2:int):void{
var _local3:int;
_local3 = 0;
while (_local3 < _arg2) {
_arg1[_local3] = new Array();
_local3++;
};
}
public static function findYLineInArray(_arg1:PointL, _arg2:Array):YLine{
var _local3:Line;
for each (_local3 in _arg2) {
if ((((_local3 is YLine)) && (_local3.pointIn(_arg1)))){
return ((_local3 as YLine));
};
};
return (null);
}
private static function tracePoint(_arg1:Array):void{
var _local2:int;
trace("!!!!!!");
_local2 = 0;
while (_local2 < _arg1.length) {
trace(("x:" + (_arg1[_local2] as PointL).x));
trace(("y:" + (_arg1[_local2] as PointL).y));
_local2++;
};
}
private static function sortOnX(_arg1:PointL, _arg2:PointL):Number{
var _local3:int;
var _local4:int;
_local3 = _arg1.x;
_local4 = _arg2.x;
if (_local3 > _local4){
return (1);
};
if (_local3 < _local4){
return (-1);
};
return (0);
}
public static function findNearLineArray(_arg1:PointL, _arg2:Array):Line{
var _local3:Line;
var _local4:int;
var _local5:Line;
_local4 = 99999;
for each (_local5 in _arg2) {
if ((_local5 is XLine)){
if ((((Math.abs((_arg1.y - _local5.startPoint.y)) < _local4)) && (pointInXLine(_arg1, (_local5 as XLine), Math.abs((_arg1.y - _local5.startPoint.y)))))){
_local4 = Math.abs((_arg1.y - _local5.startPoint.y));
_local3 = _local5;
};
} else {
if ((_local5 is YLine)){
if ((((Math.abs((_arg1.x - _local5.startPoint.x)) < _local4)) && (pointInYLine(_arg1, (_local5 as YLine), Math.abs((_arg1.x - _local5.startPoint.x)))))){
_local4 = Math.abs((_arg1.x - _local5.startPoint.x));
_local3 = _local5;
};
};
};
};
return (_local3);
}
public static function pointInPointArray(_arg1:PointL, _arg2:Array):Boolean{
var _local3:PointL;
for each (_local3 in _arg2) {
if (_local3.sameAs(_arg1)){
return (true);
};
};
return (false);
}
public static function ifHitLineR(_arg1:PointL, _arg2:int, _arg3:Array, _arg4:int):Line{
var _local5:Line;
for each (_local5 in _arg3) {
if (_local5.pointIn(_arg1, (_arg2 + _arg4))){
return (_local5);
};
};
return (null);
}
public static function samePointMakeArray(_arg1:int, _arg2:Array, _arg3:int=1):Array{
var _local4:int;
var _local5:Array;
_local4 = _arg1;
_local4 = (_arg1 - _arg3);
if (_local4 >= _arg2.length){
_local4 = (_local4 - _arg2.length);
} else {
if (_local4 < 0){
_local4 = (_local4 + _arg2.length);
};
};
_local5 = makeArrayBy2Num(_arg1, _local4, _arg2, _arg3);
return (_local5);
}
public static function drawLineByArrayAndPoint(_arg1:Graphics, _arg2:Array, _arg3:PointL, _arg4:int=14496529, _arg5:int=2):void{
var _local6:int;
var _local7:PointL;
_arg1.moveTo((_arg2[0] as PointL).x, (_arg2[0] as PointL).y);
_arg1.lineStyle(_arg5, _arg4);
_local6 = 1;
while (_local6 < _arg2.length) {
_local7 = (_arg2[_local6] as PointL);
_arg1.lineTo(_local7.x, _local7.y);
_local6++;
};
_arg1.lineTo(_arg3.x, _arg3.y);
}
public static function removeSamePoint(_arg1:PointL, _arg2:Array):void{
var _local3:int;
var _local4:PointL;
_local3 = 0;
while (_local3 < _arg2.length) {
_local4 = (_arg2[_local3] as PointL);
if (_arg1.sameAs(_local4)){
_arg2.splice(_local3, 1);
} else {
_local3++;
};
};
}
public static function findInLineArray(_arg1:PointL, _arg2:Array, _arg3:int):Line{
var _local4:Line;
var _local5:Line;
for each (_local5 in _arg2) {
if (_local5.pointIn(_arg1, _arg3)){
_local4 = _local5;
};
};
return (_local4);
}
public static function findXLineInArray(_arg1:PointL, _arg2:Array):XLine{
var _local3:Line;
for each (_local3 in _arg2) {
if ((((_local3 is XLine)) && (_local3.pointIn(_arg1)))){
return ((_local3 as XLine));
};
};
return (null);
}
public static function pointInLineArrayLineNum(_arg1:PointL, _arg2:Array, _arg3:int):int{
var _local4:int;
_local4 = 0;
while (_local4 < _arg2.length) {
if ((_arg2[_local4] as Line).pointIn(_arg1, _arg3)){
return (_local4);
};
_local4++;
};
return (-1);
}
public static function findInYLineArray(_arg1:PointL, _arg2:Array, _arg3:int):YLine{
var _local4:Line;
var _local5:Line;
for each (_local5 in _arg2) {
if ((((_local5 is YLine)) && (_local5.pointIn(_arg1, _arg3)))){
_local4 = _local5;
};
};
return ((_local4 as YLine));
}
public static function pointArrayRemoveSame(_arg1:Array):void{
var _local2:int;
var _local3:PointL;
var _local4:PointL;
if (_arg1.length > 1){
_local2 = 0;
while (_local2 < (_arg1.length - 1)) {
_local3 = (_arg1[_local2] as PointL);
_local4 = (_arg1[(_local2 + 1)] as PointL);
if (_local3.sameAs(_local4)){
_arg1.splice((_local2 + 1), 1);
};
_local2++;
};
};
if (_arg1.length > 0){
if ((_arg1[0] as PointL).sameAs((_arg1[(_arg1.length - 1)] as PointL))){
_arg1.splice((_arg1.length - 1), 1);
};
};
}
public static function drawByPointArrayPoint(_arg1:Graphics, _arg2:Array, _arg3:int=0xFF0000):void{
var _local4:int;
var _local5:PointL;
_arg1.lineStyle(2, _arg3);
_arg1.drawCircle((_arg2[0] as PointL).x, (_arg2[0] as PointL).y, 5);
_local4 = 1;
while (_local4 < _arg2.length) {
_local5 = (_arg2[_local4] as PointL);
_arg1.drawCircle(_local5.x, _local5.y, 5);
_local4++;
};
}
public static function ckCrossNum(_arg1:int, _arg2:int, _arg3:Array):int{
var _local4:int;
var _local5:XRay;
var _local6:Array;
var _local7:Line;
var _local8:int;
var _local9:YLine;
var _local10:YLine;
_local4 = 0;
_local5 = new XRay(new PointL(_arg1, _arg2));
_local6 = new Array();
for each (_local7 in _arg3) {
if ((((_local7 is YLine)) && (!((Tool.crossXYLine(_local5, (_local7 as YLine)) == null))))){
_local6.push(Tool.crossXYLine(_local5, (_local7 as YLine)));
};
};
if (_local6.length > 1){
_local6.sort(sortOnX);
_local8 = 0;
while (_local8 < (_local6.length - 1)) {
_local9 = pointIsYLineArrayPoint(_local6[_local8], _arg3);
_local10 = pointIsYLineArrayPoint(_local6[(_local8 + 1)], _arg3);
if (((((!((_local9 == null))) && (!((_local10 == null))))) && ((_local9.dir == _local10.dir)))){
_local4++;
};
_local8++;
};
};
return ((_local6.length - _local4));
}
public static function pointInSameLine(_arg1:PointL, _arg2:PointL, _arg3:Array):Boolean{
var _local4:Line;
var _local5:Line;
_local4 = findInLineArray(_arg1, _arg3, 0);
_local5 = findInLineArray(_arg2, _arg3, 0);
if (_local4 == _local5){
return (true);
};
return (false);
}
public static function pointInLineArray(_arg1:PointL, _arg2:Array):Boolean{
var _local3:Line;
for each (_local3 in _arg2) {
if (_local3.pointIn(_arg1)){
return (true);
};
};
return (false);
}
private static function pointIsYLineArrayPoint(_arg1:PointL, _arg2:Array):YLine{
var _local3:Line;
for each (_local3 in _arg2) {
if ((((_local3 is YLine)) && (((_local3.startPoint.sameAs(_arg1)) || (_local3.endPoint.sameAs(_arg1)))))){
return ((_local3 as YLine));
};
};
return (null);
}
public static function pointInSameYLine(_arg1:PointL, _arg2:PointL, _arg3:Array):Boolean{
var _local4:YLine;
var _local5:YLine;
_local4 = findInYLineArray(_arg1, _arg3, 0);
_local5 = findInYLineArray(_arg2, _arg3, 0);
if (_local4 == _local5){
return (true);
};
return (false);
}
public static function point2LineNotHTAddOne(_arg1:Array, _arg2:PointL):Array{
var _local3:Array;
var _local4:int;
_local3 = new Array();
_local4 = 0;
while (_local4 < (_arg1.length - 1)) {
_local3.push(MakeLine.makeLine((_arg1[_local4] as PointL), (_arg1[(_local4 + 1)] as PointL)));
_local4++;
};
_local3.push(MakeLine.makeLine((_arg1[(_arg1.length - 1)] as PointL), _arg2));
return (_local3);
}
public static function makeArrayBy2Num(_arg1:int, _arg2:int, _arg3:Array, _arg4:int=1):Array{
var _local5:Array;
var _local6:int;
var _local7:int;
_local5 = new Array();
_local6 = _arg1;
_local7 = _arg2;
while (true) {
_local5.push(_arg3[_local6]);
if (_local6 == _local7){
break;
};
_local6 = (_local6 + _arg4);
if (_local6 >= _arg3.length){
_local6 = (_local6 - _arg3.length);
} else {
if (_local6 < 0){
_local6 = (_local6 + _arg3.length);
};
};
};
return (_local5);
}
public static function pointInXLine(_arg1:PointL, _arg2:XLine, _arg3:int):Boolean{
var _local4:int;
var _local5:int;
_local4 = Math.min(_arg2.startPoint.x, _arg2.endPoint.x);
_local5 = Math.max(_arg2.startPoint.x, _arg2.endPoint.x);
if ((((((_arg1.x >= _local4)) && ((_arg1.x <= _local5)))) && ((Math.abs((_arg1.y - _arg2.startPoint.y)) <= _arg3)))){
return (true);
};
return (false);
}
public static function pointInYLine(_arg1:PointL, _arg2:YLine, _arg3:int):Boolean{
var _local4:int;
var _local5:int;
_local4 = Math.min(_arg2.startPoint.y, _arg2.endPoint.y);
_local5 = Math.max(_arg2.startPoint.y, _arg2.endPoint.y);
if ((((((Math.abs((_arg1.x - _arg2.startPoint.x)) <= _arg3)) && ((_arg1.y >= _local4)))) && ((_arg1.y <= _local5)))){
return (true);
};
return (false);
}
public static function point2Line(_arg1:Array):Array{
var _local2:Array;
var _local3:int;
_local2 = new Array();
_local3 = 0;
while (_local3 < (_arg1.length - 1)) {
_local2.push(MakeLine.makeLine((_arg1[_local3] as PointL), (_arg1[(_local3 + 1)] as PointL)));
_local3++;
};
_local2.push(MakeLine.makeLine((_arg1[(_arg1.length - 1)] as PointL), (_arg1[0] as PointL)));
return (_local2);
}
public static function pointInNewPointArrayAndLastPoint(_arg1:PointL, _arg2:Array, _arg3:PointL):Boolean{
var _local4:int;
_local4 = 0;
while (_local4 < (_arg2.length - 1)) {
if (pointIn2Points(_arg1, (_arg2[_local4] as PointL), (_arg2[(_local4 + 1)] as PointL))){
return (true);
};
_local4++;
};
if (pointIn2Points(_arg1, (_arg2[(_arg2.length - 1)] as PointL), _arg3)){
return (true);
};
return (false);
}
public static function mapCount2(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:int=1, _arg5:int=1):int{
var _local6:Array;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
_local6 = findMinMax(_arg1);
_local7 = 0;
_local8 = _local6[0];
_local9 = _local6[1];
_local10 = _local6[2];
_local11 = _local6[3];
_local12 = (_local8 / _arg4);
while (_local12 <= (_local10 / _arg4)) {
_local13 = (_local9 / _arg5);
while (_local13 <= (_local11 / _arg5)) {
if ((((_arg3[_local12][_local13] == null)) && (((ckCrossNum(_local12, _local13, _arg2) % 2) == 0)))){
_arg3[_local12][_local13] = true;
_local7++;
} else {
if (((!((_arg3[_local12][_local13] == null))) && (!(((ckCrossNum(_local12, _local13, _arg2) % 2) == 0))))){
};
};
_local13++;
};
_local12++;
};
return (_local7);
}
}
}//package game.tool
Section 142
//ArrayCtrl (game.unit.ArrayCtrl)
package game.unit {
import game.tool.*;
import game.make.*;
public class ArrayCtrl {
private var _sx:int;
private var _sy:int;
private var backSize:int;
private var mapNum:int;// = 24
private var _h:int;
private var lineA:Array;
private var newPoint:Array;
private var fillPoint:Array;
private var mapArray:Array;
private var oldPoint:Array;
private var newLine:Array;
private var _w:int;
private var mapSize:int;
public function ArrayCtrl(_arg1:Array, _arg2:int, _arg3:int, _arg4:int, _arg5:int){
mapNum = 24;
super();
_sx = _arg2;
_sy = _arg3;
_w = ((_arg4 - _arg2) / mapNum);
_h = ((_arg5 - _arg3) / mapNum);
oldPoint = new Array();
newPoint = new Array();
mapArray = new Array();
newLine = new Array();
Tool.init2DArray(mapArray, mapNum);
mapSize = 0;
backSize = 0;
if (_arg1 != null){
oldPoint = _arg1;
lineA = Tool.point2Line(oldPoint);
fillPoint = oldPoint;
backSize = (mapNum * mapNum);
};
}
public function get newLineArray():Array{
if (newPoint.length > 0){
return (newLine);
};
return (null);
}
public function get fillPointArray():Array{
return (fillPoint);
}
public function get newPointArray():Array{
return (newPoint);
}
public function clean():void{
oldPoint = null;
fillPoint = null;
newPoint = null;
lineA = null;
mapArray = null;
newLine = null;
}
private function traceA():void{
var _local1:Line;
for each (_local1 in newLine) {
_local1.tracePoints();
};
}
private function newPointInPointArray(_arg1:PointL, _arg2:Array):int{
var _local3:int;
_local3 = 0;
while (_local3 < _arg2.length) {
if ((_arg2[_local3] as PointL).sameAs(_arg1)){
return (_local3);
};
_local3++;
};
return (-1);
}
public function oneNewPointClean():void{
if (newPoint.length > 0){
newPoint = new Array();
newLine = new Array();
};
}
public function ckLastNewPointSame(_arg1:PointL):Boolean{
if ((((newPoint.length > 0)) && ((newPoint[(newPoint.length - 1)] as PointL).sameAs(_arg1)))){
return (true);
};
return (false);
}
public function get lineArray():Array{
return (lineA);
}
public function get mapInfo():Number{
var _local1:Number;
_local1 = Math.floor(((mapSize / backSize) * 100));
return (_local1);
}
public function removePoint(_arg1:PointL):void{
var _local2:Line;
newPoint.pop();
if (newPoint.length > 0){
_local2 = MakeLine.makeLine(newPoint[(newPoint.length - 1)], _arg1);
};
if (newPoint.length > 1){
newLine = Tool.point2LineNotHT(newPoint);
};
if (newPoint.length > 0){
newLine.push(_local2);
};
}
private function pointInPointNum(_arg1:PointL, _arg2:Array):Array{
var _local3:Array;
var _local4:int;
var _local5:int;
_local3 = new Array();
_local4 = newPointInPointArray(_arg1, _arg2);
if (_local4 != -1){
_local3.push(_local4);
_local3.push(_local4);
} else {
_local5 = 0;
while (_local5 < (_arg2.length - 1)) {
if (Tool.pointIn2Points(_arg1, (_arg2[_local5] as PointL), (_arg2[(_local5 + 1)] as PointL))){
_local3.push(_local5);
_local3.push((_local5 + 1));
};
_local5++;
};
if (Tool.pointIn2Points(_arg1, (_arg2[(_arg2.length - 1)] as PointL), (_arg2[0] as PointL))){
_local3.push((_arg2.length - 1));
_local3.push(0);
};
};
return (_local3);
}
public function addPoint(_arg1:PointL, _arg2:Boolean):void{
var _local3:Line;
newPoint.push(_arg1);
if (_arg2){
_local3 = new XLine(_arg1, _arg1);
} else {
_local3 = new YLine(_arg1, _arg1);
};
newLine.push(_local3);
}
public function pointInNewPoint(_arg1:PointL):Boolean{
var _local2:int;
_local2 = 0;
while (_local2 < (newPoint.length - 1)) {
if (Tool.pointIn2Points(_arg1, (newPoint[_local2] as PointL), (newPoint[(_local2 + 1)] as PointL))){
return (true);
};
_local2++;
};
return (false);
}
public function get oldPointArray():Array{
return (oldPoint);
}
public function newOneStep(_arg1:int, _arg2:int):void{
var _local3:PointL;
var _local4:PointL;
var _local5:Array;
var _local6:Array;
var _local7:PointL;
var _local8:PointL;
var _local9:PointL;
var _local10:PointL;
var _local11:Array;
var _local12:Array;
var _local13:Array;
var _local14:Line;
var _local15:Line;
_local3 = (newPoint[0] as PointL);
_local4 = (newPoint[(newPoint.length - 1)] as PointL);
_local5 = pointInPointNum(_local3, oldPoint);
_local6 = pointInPointNum(_local4, oldPoint);
_local7 = oldPoint[_local6[0]];
_local8 = oldPoint[_local6[1]];
_local9 = oldPoint[_local5[0]];
_local10 = oldPoint[_local5[1]];
if (_local3.sameAs(_local4)){
trace("same point");
_local11 = Tool.samePointMakeArray((_local6[0] + 1), oldPoint);
newPoint = Tool.makeNewPointForSame(_local11, newPoint);
_local12 = newPoint;
} else {
if (Tool.pointInSameLine(_local3, _local4, lineA)){
trace("same side");
_local14 = MakeLine.makeLine(_local4, _local3);
if (_local7.sameAs(_local8)){
_local15 = MakeLine.makeLine(_local10, _local9);
} else {
_local15 = MakeLine.makeLine(_local8, _local7);
};
if (Tool.ck2LineDir(_local14, _local15)){
_local11 = Tool.samePointMakeArray(_local6[1], oldPoint);
} else {
_local11 = Tool.samePointMakeArray(_local6[0], oldPoint, -1);
};
_local12 = newPoint;
} else {
trace("not same side");
_local11 = Tool.makeArrayBy2Num(_local6[0], _local5[1], oldPoint, -1);
_local12 = Tool.makeArrayBy2Num(_local6[1], _local5[0], oldPoint, 1);
_local12 = _local12.concat(newPoint);
};
};
_local11 = _local11.concat(newPoint);
Tool.pointArrayRemoveSame(_local11);
Tool.pointArrayRemoveSame(_local12);
Tool.removePointInLine(_local11);
Tool.removePointInLine(_local12);
_local13 = Tool.point2Line(_local11);
if ((Tool.ckCrossNum(_arg1, _arg2, _local13) % 2) != 0){
oldPoint = _local11;
fillPoint = _local12;
} else {
oldPoint = _local12;
fillPoint = _local11;
};
lineA = Tool.point2Line(oldPoint);
mapSize = (mapSize + Tool.mapCount(_sx, _sy, mapArray, Tool.point2Line(fillPoint), _w, _h));
trace(lineA.length);
newPoint = new Array();
newLine = new Array();
}
}
}//package game.unit
Section 143
//Line (game.unit.Line)
package game.unit {
public class Line {
private var ep:PointL;
private var sp:PointL;
public function Line(_arg1:PointL, _arg2:PointL){
sp = _arg1;
ep = _arg2;
}
public function get maxY():int{
return (Math.max(startPoint.y, endPoint.y));
}
public function pointDis(_arg1:PointL):int{
if ((this is YLine)){
return (Math.abs((sp.x - _arg1.x)));
};
if ((this is XLine)){
return (Math.abs((sp.y - _arg1.y)));
};
return (-1);
}
public function get minX():int{
return (Math.min(startPoint.x, endPoint.x));
}
public function tracePoints():void{
sp.traceXY();
ep.traceXY();
}
public function set endPoint(_arg1:PointL):void{
ep = _arg1;
}
public function pointIn(_arg1:PointL, _arg2:int=0):Boolean{
if ((((((((((_arg1.x >= (minX - _arg2))) && ((_arg1.x <= (maxX + _arg2))))) && ((ep.y == sp.y)))) && ((Math.abs((_arg1.y - ep.y)) <= _arg2)))) || ((((((((_arg1.y >= (minY - _arg2))) && ((_arg1.y <= (maxY + _arg2))))) && ((ep.x == sp.x)))) && ((Math.abs((_arg1.x - ep.x)) <= _arg2)))))){
return (true);
};
return (false);
}
public function get startPoint():PointL{
return (sp);
}
public function anotherPoint(_arg1:PointL):PointL{
if (_arg1.sameAs(sp)){
return (sp);
};
if (_arg1.sameAs(ep)){
return (ep);
};
return (null);
}
public function findNearPoint(_arg1:PointL):PointL{
if ((Math.abs((sp.x - _arg1.x)) + Math.abs((sp.y - _arg1.y))) < (Math.abs((ep.x - _arg1.x)) + Math.abs((ep.y - _arg1.y)))){
return (sp);
};
return (ep);
}
public function get maxX():int{
return (Math.max(startPoint.x, endPoint.x));
}
public function get endPoint():PointL{
return (ep);
}
public function sameAsNoDir(_arg1:Line):Boolean{
if ((((((((_arg1.minX == minX)) && ((_arg1.maxX == maxX)))) && ((_arg1.minY == minY)))) && ((_arg1.maxY == maxY)))){
return (true);
};
return (false);
}
public function set startPoint(_arg1:PointL):void{
sp = _arg1;
}
public function pointInNot(_arg1:PointL, _arg2:int=0):Boolean{
if ((((((((((_arg1.x > minX)) && ((_arg1.x < maxX)))) && ((ep.y == sp.y)))) && ((Math.abs((_arg1.y - ep.y)) <= _arg2)))) || ((((((((_arg1.y > minY)) && ((_arg1.y < maxY)))) && ((ep.x == sp.x)))) && ((Math.abs((_arg1.x - ep.x)) <= _arg2)))))){
return (true);
};
return (false);
}
public function get minY():int{
return (Math.min(startPoint.y, endPoint.y));
}
}
}//package game.unit
Section 144
//PointL (game.unit.PointL)
package game.unit {
public class PointL {
private var _x:int;
private var _y:int;
public function PointL(_arg1:int, _arg2:int){
_x = _arg1;
_y = _arg2;
}
public function closeTo(_arg1:PointL, _arg2:int):Boolean{
if ((((Math.abs((_arg1.x - x)) <= _arg2)) && ((Math.abs((_arg1.y - y)) <= _arg2)))){
return (true);
};
return (false);
}
public function traceXY():void{
trace(("x:" + x), ("y:" + y));
}
public function sameAs(_arg1:PointL):Boolean{
if ((((x == _arg1.x)) && ((y == _arg1.y)))){
return (true);
};
return (false);
}
public function get y():int{
return (_y);
}
public function get x():int{
return (_x);
}
}
}//package game.unit
Section 145
//XLine (game.unit.XLine)
package game.unit {
public class XLine extends Line {
public function XLine(_arg1:PointL, _arg2:PointL){
super(_arg1, _arg2);
}
public function get dir():int{
if (startPoint.x > endPoint.x){
return (1);
};
return (0);
}
}
}//package game.unit
Section 146
//XRay (game.unit.XRay)
package game.unit {
public class XRay extends XLine {
public function XRay(_arg1:PointL){
super(_arg1, new PointL(9999, _arg1.y));
}
}
}//package game.unit
Section 147
//YLine (game.unit.YLine)
package game.unit {
public class YLine extends Line {
public function YLine(_arg1:PointL, _arg2:PointL){
super(_arg1, _arg2);
}
public function get dir():int{
if (startPoint.y > endPoint.y){
return (1);
};
return (0);
}
}
}//package game.unit
Section 148
//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 149
//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 150
//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 151
//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 152
//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 153
//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 154
//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 155
//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 156
//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 157
//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 158
//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 159
//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 160
//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 161
//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 162
//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 163
//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 164
//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 165
//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 166
//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 167
//VolumePlugin (gs.plugins.VolumePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.media.*;
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 168
//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 169
//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 170
//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 171
//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 172
//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 173
//O1111111l (O11111110.O1111111l)
package O11111110 {
import flash.net.*;
public class O1111111l {
private var O1111100O1:int;
private var O11111l1l:String;
private var oldlanguageOrder:Array;
private var cFame:String;// = "en_us"
private var languageOrder:Array;
private var O11111l1O:Array;
public var O11111OOO:int;// = 1
private var O111111O0:String;
private var O111111Ol:String;
private static var O11111l11:O1111111l;
public function O1111111l():void{
languageOrder = ["en_us", "cn", "nl", "fr", "de", "pl", "se", "it", "es", "br", "id", "ru", "en_uk", "in", "pt", "ph", "jp"];
oldlanguageOrder = ["en_us", "cn", "nl", "fr", "de", "pl", "se", "it", "es", "br", "id", "ru", "en_uk", "in", "removed", "removed", "pt", "ph", "jp", "removed"];
cFame = "en_us";
O11111OOO = 1;
super();
O11111l1O = new Array();
}
private function O11111l10():void{
O11111l1O.push(new O11111O00(1, 1, "www.agame.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(17, 1, "www.gamesgames.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(29, 1, "www.girlsgogames.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(45, 2, "www.a10.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(2, 19, "www.game.com.cn", "/downloads"));
O11111l1O.push(new O11111O00(2, 19, "www.game.com.cn", "/downloads"));
O11111l1O.push(new O11111O00(2, 19, "www.game.com.cn", "/downloads"));
O11111l1O.push(new O11111O00(2, 19, "www.game.com.cn", "/downloads"));
O11111l1O.push(new O11111O00(4, 5, "www.spel.nl", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(18, 5, "www.spelletjes.nl", (((((("/spel/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(30, 5, "www.girlsgogames.nl", (((((("/spel/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(45, 5, "www.a10.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(5, 6, "www.jeu.fr", (((((("/jeu/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(19, 6, "www.jeux.fr", (((((("/jeu/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(31, 6, "www.girlsgogames.fr", (((((("/jeu/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(45, 6, "www.a10.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(6, 7, "www.spielen.com", (((((("/spiel/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(20, 7, "www.jetztspielen.de", (((((("/spiel/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(32, 7, "www.girlsgogames.de", (((((("/spiel/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(45, 7, "www.a10.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(14, 13, "www.minigry.pl", (((((("/gra/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(21, 13, "www.gry.pl", (((((("/gra/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(33, 13, "www.girlsgogames.pl", (((((("/gra/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(45, 13, "www.a10.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(9, 12, "www.spel.se", (((((("/spel_/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(22, 12, "www.spela.se", (((((("/spel_/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(34, 12, "www.girlsgogames.se", (((((("/spel_/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(45, 12, "www.a10.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(8, 11, "www.giocaregratis.it", (((((("/gioco/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(23, 11, "www.gioco.it", (((((("/gioco/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(35, 11, "www.girlsgogames.it", (((((("/gioco/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(45, 11, "www.a10.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(5, 8, "www.zapjuegos.com", (((((("/juego/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(24, 8, "www.juegos.com", (((((("/juego/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(36, 8, "www.juegosdechicas.com", (((((("/juego/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(45, 8, "www.a10.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(7, 9, "www.clickjogos.com", (((((("/jogo/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(25, 9, "www.ojogos.com.br", (((((("/jogo/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(38, 9, "www.girlsgogames.com.br", (((((("/jogo/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(45, 9, "www.a10.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(13, 16, "www.games.co.id", (((((("/permainanme/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(13, 16, "www.games.co.id", (((((("/permainanme/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(13, 16, "www.games.co.id", (((((("/permainanme/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(45, 16, "www.a10.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(11, 14, "www.flashgames.ru", (((((("/igra/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(26, 14, "www.ourgames.ru", (((((("/igra/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(39, 14, "www.girlsgogames.ru", (((((("/igra/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(45, 14, "www.a10.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(10, 2, "www.mygames.co.uk", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(27, 2, "www.games.co.uk", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(37, 2, "www.girlsgogames.co.uk", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(45, 2, "www.a10.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(12, 3, "www.game.co.in", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(12, 3, "www.game.co.in", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(40, 3, "www.girlsgogames.in", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(45, 3, "www.a10.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(42, 10, "www.ojogos.pt", (((((("/jogo/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(42, 10, "www.ojogos.pt", (((((("/jogo/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(42, 10, "www.ojogos.pt", (((((("/jogo/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(45, 10, "www.a10.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(43, 4, "www.laro.com.ph", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(43, 4, "www.laro.com.ph", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(43, 4, "www.laro.com.ph", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(45, 4, "www.a10.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(44, 18, "www.egames.jp", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(44, 18, "www.egames.jp", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(44, 18, "www.egames.jp", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
O11111l1O.push(new O11111O00(45, 18, "www.a10.com", (((((("/game/" + O111111O0) + ".html?utm_medium=brandedgames_external&utm_campaign=") + O111111Ol) + "&utm_source=") + O11111l1l) + "&utm_content=play_with_highscore")));
}
public function O11111Oll(_arg1:String, _arg2:String, _arg3:String, _arg4:int):void{
O1111100O1 = _arg4;
O11111l1l = _arg1;
O111111Ol = _arg2;
O111111O0 = _arg3;
O11111l10();
}
public function O11111O01():String{
return (O11111l1O[((((O11111OOO - 1) * 4) + O1111100O1) - 1)].O11111OOl);
}
public function O11111Ol0(_arg1:String="en_us"):void{
cFame = _arg1;
O11111OOO = (languageOrder.indexOf(_arg1) + 1);
if (O11111OOO == 0){
O11111OOO = 1;
cFame = "en_us";
};
}
public function O11111O0O():int{
return (O11111l1O[((((O11111OOO - 1) * 4) + O1111100O1) - 1)].O11111OO0);
}
public function O11111O0l():void{
navigateToURL(new URLRequest((("http://" + O11111l1O[((((O11111OOO - 1) * 4) + O1111100O1) - 1)].O11111OOl) + O11111l1O[((((O11111OOO - 1) * 4) + O1111100O1) - 1)].part2)), "_blank");
}
public function getOldOrder():int{
if (oldlanguageOrder.indexOf(cFame) < 0){
return (0);
};
return (oldlanguageOrder.indexOf(cFame));
}
public static function O11111OlO():O1111111l{
if (O11111l11 == null){
O11111l11 = new (O1111111l);
};
return (O11111l11);
}
}
}//package O11111110
class O11111O00 {
public var part2:String;
public var O11111OOl:String;
public var O11111OO0:int;
private function O11111O00(_arg1:int, _arg2:int, _arg3:String, _arg4):void{
O11111OOl = _arg3;
part2 = _arg4;
O11111OO0 = _arg2;
}
}
Section 174
//O1111111O (O11111110.O1111111O)
package O11111110 {
import flash.net.*;
import flash.external.*;
public class O1111111O {
private static const O11111OOO:Array = ["www.zlonggamestest.com", "gamedev.dev.spilgames.com", "gamedev.dev.spillgroup.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"];
private static var O11111OOl:URLRequest;
private static var O11111OO0;
public function O1111111O():void{
super();
try {
O11111OO0 = ExternalInterface.call("window.location.href.toString");
} catch(e) {
O11111OO0 = "error";
};
if ((((O11111OO0 == null)) || ((O11111OO0 == "")))){
O11111OO0 = "error";
};
if (String(O11111OO0).indexOf(".swf") != -1){
O11111OO0 = "error";
};
}
public function O11111OO1():Boolean{
if (((!((O11111Ol0(O11111O01(O11111OO0)) == -1))) && (!((O11111OO0 == "error"))))){
return (true);
};
return (false);
}
private static function O11111O01(_arg1:String):String{
var _local2:String;
var _local3:uint;
_local2 = new String();
_local3 = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
return (_local2);
}
private static function O11111Ol0(_arg1:String):Number{
var _local2:uint;
if (((O11111OOO) && (_arg1))){
_local2 = 0;
while (_local2 < O11111OOO.length) {
if (_arg1 == O11111OOO[_local2]){
return (_local2);
};
_local2++;
};
return (-1);
} else {
trace("cannot find site name");
};
return (-1);
}
}
}//package O11111110
Section 175
//FPS (other.FPS)
package other {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.system.*;
public class FPS extends Sprite {
private var oldT:uint;
private var mfpsCount:int;// = 0
private var avgCount:int;// = 30
private var textBox:TextField;
private var textBox3:TextField;
private var textBox4:TextField;
public function FPS(_arg1:DisplayObjectContainer){
mfpsCount = 0;
avgCount = 30;
super();
_arg1.addChild(this);
this.mouseChildren = false;
this.mouseEnabled = false;
textBox = new TextField();
textBox.text = "fps average";
textBox.textColor = 0xFFFF00;
textBox.selectable = false;
textBox3 = new TextField();
textBox3.text = "memory wasted";
textBox3.textColor = 0xFFFF00;
textBox3.selectable = false;
textBox3.y = 15;
textBox4 = new TextField();
textBox4.text = "x: |y: ";
textBox4.textColor = 0xFF00;
textBox4.selectable = false;
textBox4.y = 30;
oldT = getTimer();
addChild(textBox);
addChild(textBox3);
addChild(textBox4);
this.addEventListener(Event.ENTER_FRAME, enterFrame, false, 0, true);
}
public function updateEnd():void{
}
private function enterFrame(_arg1:Event):void{
update();
}
public function update():void{
var _local1:uint;
var _local2:uint;
_local1 = getTimer();
_local2 = (_local1 - oldT);
mfpsCount = (mfpsCount + _local2);
if (avgCount < 1){
textBox.text = String((Math.round((1000 / (mfpsCount / 30))) + " fps average"));
avgCount = 30;
mfpsCount = 0;
};
avgCount--;
oldT = getTimer();
textBox3.text = (Math.round((System.totalMemory / (0x0400 * 0x0400))) + " MB used");
textBox4.text = (((("x:" + stage.mouseX) + "| ") + "y:") + stage.mouseY);
}
public function destroy():void{
this.removeEventListener(Event.ENTER_FRAME, enterFrame);
parent.removeChild(this);
}
}
}//package other
Section 176
//ConArrayCtrlZero (theLong.array.ConArrayCtrlZero)
package theLong.array {
import flash.display.*;
public class ConArrayCtrlZero extends Sprite {
private var _toCon:DisplayObjectContainer;
private var _con:DisplayObjectContainer;
public function ConArrayCtrlZero(_arg1:DisplayObjectContainer, _arg2:DisplayObjectContainer){
_con = _arg1;
_toCon = _arg2;
_con.addChild(this);
}
public function alphaRun():void{
var _local1:int;
var _local2:DisplayObject;
_local1 = 0;
while (_local1 < numChildren) {
_local2 = getChildAt(_local1);
_local2.alpha = (_local2.alpha - 0.06);
if (_local2.alpha <= 0){
removeChildAt(_local1);
} else {
_local1++;
};
};
}
public function run():void{
makeBitmap();
alphaRun();
}
private function makeBitmap():void{
var _local1:DisplayObject;
var _local2:Bitmap;
_local1 = _toCon;
_local2 = new Bitmap(new BitmapData(_local1.width, _local1.height, true, 0));
_local2.bitmapData.draw(_local1);
_local2.x = _local1.x;
_local2.y = _local1.y;
_local2.alpha = 0.8;
addChild(_local2);
}
public function removeSelf():void{
_con.removeChild(this);
}
}
}//package theLong.array
Section 177
//BoomBase (ui.boom.base.BoomBase)
package ui.boom.base {
import flash.display.*;
import ui.boom.ctrl.*;
public class BoomBase extends MovieClip {
public var yp:Number;
private var _timeUnit:Number;
public var v:Number;
private var _timer:Number;
public var dir:Number;
private var _ba:BoomCtrl;
public var xp:Number;
public function BoomBase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:BoomCtrl, _arg6:DisplayObjectContainer){
var _local7:Number;
super();
mouseEnabled = false;
xp = _arg1;
yp = _arg2;
v = _arg3;
dir = _arg4;
_ba = _arg5;
_timer = 0;
_timeUnit = ((Math.random() * 0.1) + 0.001);
updateView();
_ba.addOne(this);
_local7 = ((Math.random() * 0.3) + 0.3);
scaleX = _local7;
scaleY = _local7;
cacheAsBitmap = true;
_arg6.addChild(this);
}
public function updateView():void{
rotation = dir;
x = xp;
y = yp;
}
public function removeSelf():void{
_ba.removeOne(this);
parent.removeChild(this);
}
public function updateLogic():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
_timer = (_timer + _timeUnit);
_local1 = ((dir / 180) * Math.PI);
_local2 = ((v * Math.cos(_local1)) + (v * Math.cos(_timer)));
_local3 = (v * Math.sin(_local1));
xp = (xp + _local2);
yp = (yp + _local3);
inStage();
}
private function inStage():void{
if (xp > (640 + width)){
xp = (0 - width);
} else {
if (xp < (0 - width)){
xp = (640 + width);
};
};
if (yp > (480 + height)){
yp = (0 - height);
} else {
if (yp < (0 - height)){
yp = (480 + height);
};
};
}
}
}//package ui.boom.base
Section 178
//BoomCtrl (ui.boom.ctrl.BoomCtrl)
package ui.boom.ctrl {
import ui.boom.base.*;
public class BoomCtrl {
private var _array:Array;
public function BoomCtrl(){
_array = new Array();
}
public function removeOne(_arg1:BoomBase):void{
var _local2:int;
_local2 = _array.indexOf(_arg1);
if (_local2 != -1){
_array.splice(_local2, 1);
};
}
public function addOne(_arg1:BoomBase):void{
if (_array.indexOf(_arg1) == -1){
_array.push(_arg1);
};
}
public function run():void{
var _local1:BoomBase;
for each (_local1 in _array) {
_local1.updateLogic();
_local1.updateView();
};
}
public function removeAll():void{
var _local1:BoomBase;
while (_array.length > 0) {
_local1 = _array[0];
_local1.removeSelf();
};
_array = null;
}
}
}//package ui.boom.ctrl
Section 179
//BoomObj (ui.boom.mc.BoomObj)
package ui.boom.mc {
import flash.display.*;
import ui.boom.base.*;
import ui.boom.ctrl.*;
public class BoomObj extends BoomBase {
public function BoomObj(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:BoomCtrl, _arg6:DisplayObjectContainer){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
gotoAndStop((Math.floor((Math.random() * totalFrames)) + 1));
}
}
}//package ui.boom.mc
Section 180
//Fall (ui.boom.mc.Fall)
package ui.boom.mc {
import flash.display.*;
import ui.boom.base.*;
import flash.geom.*;
import ui.boom.ctrl.*;
public class Fall extends BoomBase {
public function Fall(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:BoomCtrl, _arg6:DisplayObjectContainer){
var _local7:int;
var _local8:ColorTransform;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
gotoAndPlay((Math.floor((Math.random() * totalFrames)) + 1));
_local7 = Math.floor((Math.random() * 6));
_local8 = new ColorTransform(0.5, 0.5, 0.5, 0.5, 127, 127, 127, 127);
switch (_local7){
case 0:
_local8.color = 10089983;
break;
case 1:
_local8.color = 16777113;
break;
case 2:
_local8.color = 0xFF0066;
break;
case 3:
_local8.color = 6736998;
break;
case 4:
_local8.color = 26367;
break;
case 5:
_local8.color = 11796326;
break;
};
transform.colorTransform = _local8;
}
}
}//package ui.boom.mc
Section 181
//UiEvent (ui.event.UiEvent)
package ui.event {
import flash.events.*;
import ui.unit.*;
public class UiEvent extends Event {
private var btn:ButtonBase;
public function UiEvent(_arg1:String, _arg2:ButtonBase, _arg3:Boolean=true, _arg4:Boolean=true){
super(_arg1, _arg3, _arg4);
btn = _arg2;
}
public function get button():ButtonBase{
return (btn);
}
}
}//package ui.event
Section 182
//CompleteUI (ui.mc.CompleteUI)
package ui.mc {
import flash.events.*;
import flash.text.*;
import ui.uibase.*;
import ui.*;
import ui.boom.ctrl.*;
import zlong.display.*;
import game.sound.ctrl.*;
import ui.boom.mc.*;
public class CompleteUI extends UiBase {
public var next:btn_next;
public var life:TextField;
public var __id1_:Logo;
public var current:TextField;
public var score:TextField;
private var _current:int;
private var _time:String;
private var _score:int;
public var time:TextField;
private var _life:int;
private var _ba:BoomCtrl;
public function CompleteUI(_arg1:int, _arg2:String, _arg3:int, _arg4:int){
addFrameScript(34, frame35);
super();
mouseChildren = false;
_ba = new BoomCtrl();
_life = _arg1;
_time = _arg2;
_current = _arg4;
_score = _arg3;
(getChildByName("life") as TextField).text = "";
(getChildByName("current") as TextField).text = "";
(getChildByName("time") as TextField).text = "";
(getChildByName("score") as TextField).text = "";
addEventListener(Event.ENTER_FRAME, loop);
SoundCtrl.playMusic("complete_mp3", 1);
SoundCtrl.playFx("levelClean");
__setProp___id1__CompleteUI__1();
}
private function makeBoom():void{
var _local1:int;
_local1 = 0;
while (_local1 < 60) {
new Fall(0, -50, ((Math.random() * 5) + 1), (Math.random() * 90), _ba, this);
_local1++;
};
_local1 = 0;
while (_local1 < 60) {
new Fall(320, -50, ((Math.random() * 5) + 1), (Math.random() * 180), _ba, this);
_local1++;
};
_local1 = 0;
while (_local1 < 60) {
new Fall(640, -50, ((Math.random() * 5) + 1), ((Math.random() * 90) + 90), _ba, this);
_local1++;
};
}
function __setProp___id1__CompleteUI__1(){
try {
__id1_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id1_.alignHorizontal = "Left";
__id1_.alignVertical = "Up";
__id1_.maxHeight = 50;
__id1_.maxWidth = 220;
__id1_.position = "logo_levelcomplete";
try {
__id1_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
override public function removeAll():void{
_ba.removeAll();
removeL();
stage.removeEventListener(KeyboardEvent.KEY_UP, keyU);
removeEventListener(Event.ENTER_FRAME, loop);
parent.removeChild(this);
}
function frame35(){
stop();
}
private function loop(_arg1:Event):void{
if (currentFrame == Math.floor((totalFrames / 2))){
mouseChildren = true;
makeBoom();
stage.addEventListener(KeyboardEvent.KEY_UP, keyU);
(getChildByName("life") as TextField).text = (_life + "");
(getChildByName("current") as TextField).text = (_current + "%");
(getChildByName("time") as TextField).text = _time;
(getChildByName("score") as TextField).text = (_score + "");
};
_ba.run();
}
private function keyU(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 32){
(parent as UiCtrl).levelNext();
removeAll();
};
}
}
}//package ui.mc
Section 183
//CreditsOut (ui.mc.CreditsOut)
package ui.mc {
import ui.uibase.*;
public class CreditsOut extends UiBaseOut {
public var ui:CreditsUI;
public function CreditsOut(){
addFrameScript(19, frame20);
super();
}
function frame20(){
stop();
}
}
}//package ui.mc
Section 184
//CreditsUI (ui.mc.CreditsUI)
package ui.mc {
import ui.uibase.*;
import zlong.display.*;
import game.sound.ctrl.*;
public class CreditsUI extends UiBase {
public var __id7_:Logo;
public var back:btn_back;
public function CreditsUI(){
SoundCtrl.playMusic("mainscreen_mp3", int.MAX_VALUE);
__setProp___id7__CreditsUI__1();
}
function __setProp___id7__CreditsUI__1(){
try {
__id7_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id7_.alignHorizontal = "Left";
__id7_.alignVertical = "Up";
__id7_.maxHeight = 50;
__id7_.maxWidth = 220;
__id7_.position = "logo_credits";
try {
__id7_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
override public function removeAll():void{
removeL();
if ((parent is UiBaseOut)){
(parent as UiBaseOut).removeThis();
};
parent.removeChild(this);
}
}
}//package ui.mc
Section 185
//FailedUI (ui.mc.FailedUI)
package ui.mc {
import flash.events.*;
import flash.text.*;
import ui.uibase.*;
import zlong.display.*;
import game.sound.ctrl.*;
public class FailedUI extends UiBase {
public var __id6_:Logo;
public var submit:btn_SubmitScores;
private var _name:String;
public var score:TextField;
private var _score:int;
public var again:btn_tryagain;
public var nameTxt:TextField;
public var back:btn_back;
public function FailedUI(_arg1:String, _arg2:int){
addFrameScript(54, frame55);
super();
mouseChildren = false;
_name = _arg1;
_score = _arg2;
(getChildByName("nameTxt") as TextField).text = "";
(getChildByName("score") as TextField).text = "";
addEventListener(Event.ENTER_FRAME, loop);
SoundCtrl.playMusic("failed_mp3", 1);
__setProp___id6__FailedUI__1();
}
override public function removeAll():void{
removeL();
removeEventListener(Event.ENTER_FRAME, loop);
parent.removeChild(this);
}
public function get theScore():uint{
return (_score);
}
private function loop(_arg1:Event):void{
if (currentFrame == totalFrames){
mouseChildren = true;
removeEventListener(Event.ENTER_FRAME, loop);
(getChildByName("nameTxt") as TextField).text = _name;
(getChildByName("score") as TextField).text = (_score + "");
};
}
function frame55(){
stop();
}
public function get player():String{
return ((getChildByName("nameTxt") as TextField).text);
}
function __setProp___id6__FailedUI__1(){
try {
__id6_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id6_.alignHorizontal = "Left";
__id6_.alignVertical = "Up";
__id6_.maxHeight = 50;
__id6_.maxWidth = 220;
__id6_.position = "logo_gameover";
try {
__id6_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package ui.mc
Section 186
//GCUI (ui.mc.GCUI)
package ui.mc {
import flash.events.*;
import flash.text.*;
import ui.uibase.*;
import ui.boom.ctrl.*;
import ui.boom.mc.*;
public class GCUI extends UiBase {
public var submit:btn_SubmitScores;
private var _name:String;
public var score:TextField;
private var _score:int;
public var __id3_:MoreGamesLogo;
private var _ba:BoomCtrl;
public var nameTxt:TextField;
public var back:btn_back;
public var credit:btn_credits;
public function GCUI(_arg1:String, _arg2:int){
addFrameScript(19, frame20);
mouseChildren = false;
super();
_name = _arg1;
_ba = new BoomCtrl();
_score = _arg2;
(getChildByName("nameTxt") as TextField).text = "";
(getChildByName("score") as TextField).text = "";
addEventListener(Event.ENTER_FRAME, loop);
__setProp___id3__GCUI__1();
}
private function makeBoom():void{
var _local1:int;
_local1 = 0;
while (_local1 < 60) {
new Fall(0, -50, ((Math.random() * 5) + 1), (Math.random() * 90), _ba, this);
_local1++;
};
_local1 = 0;
while (_local1 < 60) {
new Fall(320, -50, ((Math.random() * 5) + 1), (Math.random() * 180), _ba, this);
_local1++;
};
_local1 = 0;
while (_local1 < 60) {
new Fall(640, -50, ((Math.random() * 5) + 1), ((Math.random() * 90) + 90), _ba, this);
_local1++;
};
}
function __setProp___id3__GCUI__1(){
try {
__id3_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id3_.position = "button_congratulations_moregames";
__id3_.type = "moregames";
try {
__id3_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame20(){
stop();
}
override public function removeAll():void{
_ba.removeAll();
removeL();
removeEventListener(Event.ENTER_FRAME, loop);
parent.removeChild(this);
}
public function get theScore():uint{
return (_score);
}
private function loop(_arg1:Event):void{
if (currentFrame == (totalFrames - 1)){
mouseChildren = true;
makeBoom();
(getChildByName("nameTxt") as TextField).text = _name;
(getChildByName("score") as TextField).text = (_score + "");
};
_ba.run();
}
public function get player():String{
return ((getChildByName("nameTxt") as TextField).text);
}
}
}//package ui.mc
Section 187
//HighUI (ui.mc.HighUI)
package ui.mc {
import flash.display.*;
import ui.uibase.*;
import game.sound.ctrl.*;
public class HighUI extends UiBase {
public var ec:MovieClip;
public var ad3000:Games3000;
public var back:btn_back;
public function HighUI(){
addFrameScript(54, frame55);
super();
(getChildByName("ec") as MovieClip).addChild(Main.highMc);
SoundCtrl.playMusic("mainscreen_mp3", int.MAX_VALUE);
__setProp_ad3000_HighUI__1();
}
override public function removeAll():void{
removeL();
(getChildByName("ec") as MovieClip).removeChild(Main.highMc);
parent.removeChild(this);
}
function frame55(){
stop();
}
function __setProp_ad3000_HighUI__1(){
try {
ad3000["componentInspectorSetting"] = true;
} catch(e:Error) {
};
ad3000.position = "button_highscore_3000games";
ad3000.type = "moregames";
try {
ad3000["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package ui.mc
Section 188
//HowUI (ui.mc.HowUI)
package ui.mc {
import ui.uibase.*;
import zlong.display.*;
import game.sound.ctrl.*;
public class HowUI extends UiBase {
public var next:btn_next2;
public var __id8_:Logo;
public var back:btn_back;
public function HowUI(){
SoundCtrl.playMusic("mainscreen_mp3", int.MAX_VALUE);
__setProp___id8__HowUI__1();
}
function __setProp___id8__HowUI__1(){
try {
__id8_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id8_.alignHorizontal = "Left";
__id8_.alignVertical = "Up";
__id8_.maxHeight = 40;
__id8_.maxWidth = 200;
__id8_.position = "logo_howtoplay";
try {
__id8_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package ui.mc
Section 189
//HowUI2 (ui.mc.HowUI2)
package ui.mc {
import ui.uibase.*;
import zlong.display.*;
import game.sound.ctrl.*;
public class HowUI2 extends UiBase {
public var next:btn_next2;
public var __id9_:Logo;
public var back:btn_back;
public function HowUI2(){
SoundCtrl.playMusic("mainscreen_mp3", int.MAX_VALUE);
__setProp___id9__HowUI2__1();
}
function __setProp___id9__HowUI2__1(){
try {
__id9_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id9_.alignHorizontal = "Left";
__id9_.alignVertical = "Up";
__id9_.maxHeight = 40;
__id9_.maxWidth = 200;
__id9_.position = "logo_howtoplay";
try {
__id9_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package ui.mc
Section 190
//LoadingLine (ui.mc.LoadingLine)
package ui.mc {
import flash.display.*;
public class LoadingLine extends MovieClip {
public var bar:MovieClip;
public var mr:MovieClip;
public function get _mr():MovieClip{
return ((getChildByName("mr") as MovieClip));
}
public function get _bar():MovieClip{
return ((getChildByName("bar") as MovieClip));
}
}
}//package ui.mc
Section 191
//LoadingUI (ui.mc.LoadingUI)
package ui.mc {
import flash.display.*;
import zlong.display.*;
public class LoadingUI extends MovieClip {
public var line:LoadingLine;
public var __id0_:Logo;
public function LoadingUI(){
__setProp___id0__LoadingUI__1();
}
function __setProp___id0__LoadingUI__1(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.alignHorizontal = "Left";
__id0_.alignVertical = "Up";
__id0_.maxHeight = 50;
__id0_.maxWidth = 220;
__id0_.position = "logo_preloader";
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function loadNum(_arg1:int):Boolean{
(getChildByName("line") as LoadingLine)._mr.x = (((570 - 30) / 100) * _arg1);
(getChildByName("line") as LoadingLine)._bar.x = (((4 + 509) / 100) * _arg1);
if (_arg1 >= 100){
return (true);
};
return (false);
}
}
}//package ui.mc
Section 192
//MainCUI (ui.mc.MainCUI)
package ui.mc {
import flash.display.*;
import game.core.*;
import gs.*;
import ui.unit.*;
import ui.uibase.*;
import game.sound.ctrl.*;
public class MainCUI extends UiBase {
public var back:btn_back;
public var hard:btn_hard;
public var sound:btn_music;
public var music:btn_sound;
public var spilGames_btn:btn_SpillGames;
private var _back:MovieClip;
public var mback:MovieClip;
private var _core:Core;
public var __id4_:MoreGamesLogo;
public var normal:btn_normal;
public var quality:btn_quality;
public function MainCUI(_arg1:Core){
_core = _arg1;
(getChildByName("sound") as Btn2Side).now = !(Core.sound);
(getChildByName("music") as Btn2Side).now = !(Core.music);
(getChildByName("quality") as Btn3Side).now = _core.quality;
SoundCtrl.playMusic("mainscreen_mp3", int.MAX_VALUE);
_back = (getChildByName("mback") as MovieClip);
TweenMax.to(_back, 2, {colorMatrixFilter:{saturation:0.25}});
__setProp___id4__MainCUI__1();
}
function __setProp___id4__MainCUI__1(){
try {
__id4_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id4_.position = "button_levelselect_moregames";
__id4_.type = "moregames";
try {
__id4_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
private function tblur():void{
var _local1:Number;
var _local2:Number;
_local1 = (Math.random() + 0.5);
_local2 = Math.random();
TweenMax.to(_back, _local1, {colorMatrixFilter:{saturation:_local2}, onComplete:tblur});
}
}
}//package ui.mc
Section 193
//MainUI (ui.mc.MainUI)
package ui.mc {
import flash.display.*;
import game.core.*;
import gs.*;
import ui.unit.*;
import ui.uibase.*;
import game.sound.ctrl.*;
public class MainUI extends UiBase {
public var sound:btn_music;
public var music:btn_sound;
public var __id5_:MoreGamesLogo;
public var how:btn_howtoplay;
public var start:btn_start;
public var high:btn_highscore;
public var spilGames_btn:btn_SpillGames;
public var mback:MovieClip;
private var _core:Core;
public var quality:btn_quality;
public function MainUI(_arg1:Core){
_core = _arg1;
(getChildByName("sound") as Btn2Side).now = !(Core.sound);
(getChildByName("music") as Btn2Side).now = !(Core.music);
(getChildByName("quality") as Btn3Side).now = _core.quality;
SoundCtrl.playMusic("mainscreen_mp3", int.MAX_VALUE);
TweenMax.from((getChildByName("mback") as MovieClip), 2, {colorMatrixFilter:{saturation:0.25}});
__setProp___id5__MainUI__1();
}
function __setProp___id5__MainUI__1(){
try {
__id5_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id5_.position = "button_mainscreen_moregames";
__id5_.type = "moregames";
try {
__id5_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package ui.mc
Section 194
//PauseOut (ui.mc.PauseOut)
package ui.mc {
import game.core.*;
import ui.uibase.*;
public class PauseOut extends UiBaseOut {
public var ui:PauseUI;
public function PauseOut(_arg1:Core){
addFrameScript(19, frame20);
super();
(theUi as PauseUI).coreIn(_arg1);
trace(numChildren);
}
function frame20(){
stop();
}
}
}//package ui.mc
Section 195
//PauseUI (ui.mc.PauseUI)
package ui.mc {
import flash.events.*;
import game.core.*;
import ui.uibase.*;
import ui.*;
import game.sound.ctrl.*;
public class PauseUI extends UiBase {
public var menu:btn_menu;
private var _timer:int;
private var _core:Core;
public var back:btn_play;
public function PauseUI(){
_timer = 0;
addEventListener(Event.ENTER_FRAME, loop);
SoundCtrl.stopMusic();
}
public function coreIn(_arg1:Core):void{
_core = _arg1;
}
override public function removeAll():void{
removeL();
removeEventListener(Event.ENTER_FRAME, loop);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyU);
if ((parent is UiBaseOut)){
(parent as UiBaseOut).removeThis();
trace("remove");
};
parent.removeChild(this);
}
private function loop(_arg1:Event):void{
_timer++;
if (_timer > 20){
trace("p");
stage.addEventListener(KeyboardEvent.KEY_UP, keyU);
removeEventListener(Event.ENTER_FRAME, loop);
};
}
private function keyU(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 80){
trace("p");
if ((parent.parent is UiCtrl)){
trace("uic");
(parent.parent as UiCtrl).nowToGame();
};
_core.resume();
removeAll();
};
}
}
}//package ui.mc
Section 196
//VERYBIG (ui.mc.VERYBIG)
package ui.mc {
import flash.display.*;
public class VERYBIG extends Sprite {
}
}//package ui.mc
Section 197
//UiBase (ui.uibase.UiBase)
package ui.uibase {
import flash.events.*;
import flash.display.*;
import ui.unit.*;
import ui.event.*;
public class UiBase extends MovieClip {
public function UiBase(){
init();
}
public function init():void{
addL();
}
public function removeL():void{
var _local1:int;
removeEventListener(MouseEvent.CLICK, uiMouseClick);
_local1 = 0;
while (_local1 < numChildren) {
if ((getChildAt(_local1) is ButtonBase)){
(getChildAt(_local1) as ButtonBase).removeAll();
};
_local1++;
};
}
public function removeAll():void{
removeL();
parent.removeChild(this);
}
private function uiMouseClick(_arg1:MouseEvent):void{
if ((_arg1.target is ButtonBase)){
dispatchEvent(new UiEvent("uiMouseClick", (_arg1.target as ButtonBase)));
};
}
public function addL():void{
addEventListener(MouseEvent.CLICK, uiMouseClick);
}
}
}//package ui.uibase
Section 198
//UiBaseOut (ui.uibase.UiBaseOut)
package ui.uibase {
import flash.display.*;
public class UiBaseOut extends MovieClip {
private var _ui:UiBase;
public function UiBaseOut(){
_ui = (getChildByName("ui") as UiBase);
trace(numChildren);
}
public function removeThis():void{
parent.removeChild(this);
}
public function get theUi():UiBase{
return (_ui);
}
}
}//package ui.uibase
Section 199
//Btn2Side (ui.unit.Btn2Side)
package ui.unit {
import flash.events.*;
import game.sound.ctrl.*;
public class Btn2Side extends ButtonBase {
private var _now:Boolean;
public function Btn2Side(){
_now = true;
}
override protected function mouseUpHandler(_arg1:MouseEvent):void{
}
override protected function mouseDownHandler(_arg1:MouseEvent):void{
SoundCtrl.playFx("btnPress");
}
override protected function mouseOutHandler(_arg1:MouseEvent):void{
}
public function set now(_arg1:Boolean):void{
_now = _arg1;
if (_now){
gotoAndStop(2);
} else {
gotoAndStop(1);
};
}
override protected function mouseOverHandler(_arg1:MouseEvent):void{
SoundCtrl.playFx("btnTouch");
}
}
}//package ui.unit
Section 200
//Btn3Side (ui.unit.Btn3Side)
package ui.unit {
import flash.events.*;
import game.sound.ctrl.*;
public class Btn3Side extends ButtonBase {
override protected function mouseUpHandler(_arg1:MouseEvent):void{
}
override protected function mouseDownHandler(_arg1:MouseEvent):void{
SoundCtrl.playFx("btnPress");
}
override protected function mouseOutHandler(_arg1:MouseEvent):void{
}
public function set now(_arg1:int):void{
gotoAndStop(_arg1);
}
override protected function mouseOverHandler(_arg1:MouseEvent):void{
SoundCtrl.playFx("btnTouch");
}
}
}//package ui.unit
Section 201
//ButtonBase (ui.unit.ButtonBase)
package ui.unit {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import game.sound.ctrl.*;
public class ButtonBase extends MovieClip {
private var _isDown:Boolean;
public var hitArea_mc:MovieClip;
private var _isAddUp:Boolean;
public function ButtonBase(){
_isDown = false;
_isAddUp = false;
init();
}
protected function mouseOverHandler(_arg1:MouseEvent):void{
gotoAndStop(2);
if (_isDown){
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 100, 100, 100, 0);
};
SoundCtrl.playFx("btnTouch");
}
public function init():void{
stop();
buttonMode = true;
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;
};
SoundCtrl.playFx("btnPress");
}
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);
buttonMode = false;
}
protected function mouseOutHandler(_arg1:MouseEvent):void{
gotoAndStop(1);
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
}
}
}//package ui.unit
Section 202
//UiCtrl (ui.UiCtrl)
package ui {
import flash.display.*;
import game.core.*;
import gs.*;
import ui.unit.*;
import ui.uibase.*;
import ui.event.*;
import game.sound.ctrl.*;
import zlong.navigate.*;
import ui.mc.*;
public class UiCtrl extends Sprite {
private var nowLevel:int;// = 0
private var _core:Core;
private var now:String;
public function UiCtrl(_arg1:DisplayObjectContainer, _arg2:Core){
nowLevel = 0;
super();
_arg1.addChild(this);
_core = _arg2;
init();
addL();
}
public function init():void{
now = "Main1";
addChild(new MainUI(_core));
}
public function gamePause():void{
addChild(new PauseOut(_core));
now = "Pause";
}
public function gameLoss():void{
addChild(new FailedUI(_core.playerName, _core.gameData.score));
now = "Failed";
}
private function removeL():void{
removeEventListener("uiMouseClick", uiMouseClick);
}
private function tintRemove():void{
TweenLite.to(_core.parent, 0.55, {removeTint:true});
}
private function todo(_arg1:ButtonBase, _arg2:UiBase):void{
var _local3:String;
_local3 = _arg1.name;
switch (now){
case "Main1":
if (_local3 == "start"){
if (!_core.ifHowTo){
_arg2.removeAll();
addChild(new HowUI());
now = "How3";
_core.saveHowTo();
} else {
_arg2.removeAll();
addChild(new MainCUI(_core));
now = "Main2";
};
_core.initPlayerName();
} else {
if (_local3 == "how"){
if (!_core.ifHowTo){
_core.saveHowTo();
};
_arg2.removeAll();
addChild(new HowUI());
now = "How1";
} else {
if (_local3 == "high"){
if (Main.highMc.O11111100()){
_arg2.removeAll();
addChild(new HighUI());
now = "High";
} else {
addChild(Main.highMc);
};
} else {
if (_local3 == "quality"){
_core.nextQuality();
(_arg1 as Btn3Side).now = _core.quality;
} else {
if (_local3 == "music"){
if (Core.music){
_core.music = false;
SoundCtrl.stopMusic();
} else {
_core.music = true;
SoundCtrl.stopMusic();
SoundCtrl.playMusic("mainscreen_mp3", int.MAX_VALUE);
};
(_arg1 as Btn2Side).now = !(Core.music);
} else {
if (_local3 == "sound"){
if (Core.sound){
_core.sound = false;
} else {
_core.sound = true;
};
(_arg1 as Btn2Side).now = !(Core.sound);
} else {
if (_local3 == "spilGames_btn"){
Handler.click_copyright();
};
};
};
};
};
};
};
break;
case "Main2":
if (_local3 == "normal"){
_arg2.removeAll();
_core.firstInitGame(1);
nowLevel = 1;
now = "Game";
} else {
if (_local3 == "hard"){
_arg2.removeAll();
_core.firstInitGame(10);
nowLevel = 10;
now = "Game";
} else {
if (_local3 == "back"){
_arg2.removeAll();
addChild(new MainUI(_core));
now = "Main1";
} else {
if (_local3 == "quality"){
_core.nextQuality();
(_arg1 as Btn3Side).now = _core.quality;
} else {
if (_local3 == "music"){
if (Core.music){
_core.music = false;
SoundCtrl.stopMusic();
} else {
_core.music = true;
SoundCtrl.stopMusic();
SoundCtrl.playMusic("mainscreen_mp3", int.MAX_VALUE);
};
(_arg1 as Btn2Side).now = !(Core.music);
} else {
if (_local3 == "sound"){
if (Core.sound){
_core.sound = false;
} else {
_core.sound = true;
};
(_arg1 as Btn2Side).now = !(Core.sound);
} else {
if (_local3 == "spilGames_btn"){
Handler.click_copyright();
};
};
};
};
};
};
};
break;
case "How1":
if (_local3 == "back"){
_arg2.removeAll();
addChild(new MainUI(_core));
now = "Main1";
} else {
if (_local3 == "next"){
_arg2.removeAll();
addChild(new HowUI2());
now = "How2";
};
};
break;
case "How2":
if (_local3 == "back"){
_arg2.removeAll();
addChild(new HowUI());
now = "How1";
} else {
if (_local3 == "next"){
_arg2.removeAll();
addChild(new MainUI(_core));
now = "Main1";
};
};
break;
case "How3":
if (_local3 == "back"){
_arg2.removeAll();
addChild(new MainCUI(_core));
now = "Main2";
} else {
if (_local3 == "next"){
_arg2.removeAll();
addChild(new HowUI2());
now = "How4";
};
};
break;
case "How4":
if (_local3 == "back"){
_arg2.removeAll();
addChild(new HowUI());
now = "How3";
} else {
if (_local3 == "next"){
_arg2.removeAll();
addChild(new MainUI(_core));
now = "Main1";
};
};
break;
case "High":
if (_local3 == "back"){
_arg2.removeAll();
addChild(new MainUI(_core));
now = "Main1";
};
break;
case "Credit":
if (_local3 == "back"){
_arg2.removeAll();
addChild(new GCUI(_core.playerName, _core.gameData.score));
now = "GC";
};
break;
case "Game":
break;
case "LC":
if (_local3 == "next"){
_arg2.removeAll();
levelNext();
};
break;
case "Failed":
if (_local3 == "submit"){
_core.saveName((_arg2 as FailedUI).player);
_core.loadAll();
if (Main.highMc.O11111100()){
_arg2.removeAll();
addChild(new HighUI());
_core.removeAllAndEvent();
now = "High";
Main.highMc.O11111O10((_arg2 as FailedUI).theScore, (_arg2 as FailedUI).player);
} else {
addChild(Main.highMc);
};
} else {
if (_local3 == "again"){
_arg2.removeAll();
_core.restartLevel();
now = "Game";
} else {
if (_local3 == "back"){
_arg2.removeAll();
addChild(new MainUI(_core));
_core.removeAllAndEvent();
now = "Main1";
};
};
};
break;
case "GC":
if (_local3 == "submit"){
_core.saveName((_arg2 as GCUI).player);
_core.loadAll();
if (Main.highMc.O11111100()){
_arg2.removeAll();
addChild(new HighUI());
_core.removeAllAndEvent();
now = "High";
Main.highMc.O11111O10((_arg2 as GCUI).theScore, (_arg2 as GCUI).player);
} else {
addChild(Main.highMc);
};
} else {
if (_local3 == "back"){
_arg2.removeAll();
addChild(new MainUI(_core));
_core.removeAllAndEvent();
now = "Main1";
} else {
if (_local3 == "credit"){
_arg2.removeAll();
addChild(new CreditsOut());
now = "Credit";
};
};
};
break;
case "Pause":
if (_local3 == "menu"){
_arg2.removeAll();
addChild(new MainUI(_core));
_core.removeAllAndEvent();
now = "Main1";
} else {
if (_local3 == "back"){
_arg2.removeAll();
_core.resume();
now = "Game";
};
};
break;
default:
break;
};
}
public function nowToGame():void{
now = "Game";
}
public function gameWin():void{
var _local1:CompleteUI;
_local1 = new CompleteUI(_core.gameData.killNum, _core.gameData.stringTimeAll, _core.gameData.score, _core.current);
addChild(_local1);
now = "LC";
if ((((nowLevel == 1)) && (!(Main.googleLv1)))){
Main.googleLv1 = true;
Main.tracker.trackEvent("Clean Mania", "level_1_completed", "per session", 0);
};
}
public function levelNext():void{
if ((nowLevel % 3) == 0){
TweenLite.to(_core.parent, 0.2, {tint:0xFFFFFF, onComplete:tintRemove});
};
nowLevel++;
_core.toLevel(nowLevel);
now = "Game";
}
private function uiMouseClick(_arg1:UiEvent):void{
todo(_arg1.button, (_arg1.button.parent as UiBase));
}
public function gameAllOver():void{
addChild(new GCUI(_core.playerName, _core.gameData.score));
now = "GC";
SoundCtrl.playMusic("complete_mp3", 1);
SoundCtrl.playFx("levelClean");
Main.tracker.trackEvent("Clean Mania", "game_completed", "per session", 0);
}
private function addL():void{
addEventListener("uiMouseClick", uiMouseClick);
}
}
}//package ui
Section 203
//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 204
//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) -->
<country name="br" domain="www.ojogos.com.br" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="15"/><!-- 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="13"/><!-- 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="14"/><!-- 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) -->
<country name="br" domain="www.clickjogos.com" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="15"/><!-- 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="13"/><!-- 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="14"/><!-- 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 -->
<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) -->
<country name="br" domain="www.girlsgogames.com.br" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="15"/><!-- 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="13"/><!-- Indonesian -->
<country name="it" domain="www.girlsgogames.it" game="gioco" language="9"/><!-- Italian -->
<country name="jp" domain="www.egames.jp" game="game" language="14"/><!-- 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) -->
<country name="br" domain="www.a10.com" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="15"/><!-- 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="13"/><!-- 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="14"/><!-- 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 205
//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 206
//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 207
//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 208
//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 209
//CountriesBox (zlong.display.CountriesBox)
package zlong.display {
import flash.events.*;
import flash.display.*;
import zlong.country.*;
import flash.geom.*;
import zlong.data.*;
public class CountriesBox extends Sprite {
private var flagMc:MovieClip;
private var selectBox:MovieClip;
public var countryName:MovieClip;
public var selectbox:MovieClip;
private var i:uint;
public var flag:MovieClip;
private var pop:Sprite;
public var popList:MovieClip;
private var baseX:Number;// = 0
private var baseY:Number;// = 0
private var country_name:MovieClip;
private var nameGroup:Array;
private var mul:int;// = 1
private var obj:Object;
public function CountriesBox(){
mul = 1;
baseX = 0;
baseY = 0;
nameGroup = [];
super();
obj = new Object();
addEventListener(Event.ADDED_TO_STAGE, addToStageHandler);
addEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
}
private function init():void{
initPos();
setFlag();
setPop();
initEvent();
initPoPEvent();
if (GameInfo.cnversion){
this.visible = false;
setLanguage("cn");
};
}
private function initPoPEvent():void{
pop.addEventListener(MouseEvent.MOUSE_OVER, overPoPHandler);
pop.addEventListener(MouseEvent.MOUSE_OUT, outPoPHandler);
}
private function delPoPEvent():void{
pop.removeEventListener(MouseEvent.MOUSE_OVER, overPoPHandler);
pop.removeEventListener(MouseEvent.MOUSE_OUT, outPoPHandler);
}
private function outHandler(_arg1:MouseEvent):void{
pop.visible = false;
}
private function initPos():void{
var _local1:Point;
_local1 = new Point();
_local1 = this.localToGlobal(new Point(x, y));
if (_local1.y > (GameInfo.height / 2)){
mul = 1;
} else {
mul = -1;
};
}
private function initEvent():void{
addEventListener(MouseEvent.ROLL_OVER, overHandler, false, 0, true);
addEventListener(MouseEvent.ROLL_OUT, outHandler, false, 0, true);
addEventListener(MouseEvent.CLICK, clickHandler, false, 0, true);
}
private function setPop():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:MovieClip;
var _local6:String;
var _local7:int;
_local3 = 0;
_local4 = 0;
pop = (getChildByName("popList") as Sprite);
selectBox = (getChildByName("selectbox") as MovieClip);
_local1 = pop["_blank"].width;
_local2 = (pop["_blank"].height - 1);
baseX = selectBox.x;
nameGroup = CountryInfo.instance.countryGroup;
_local7 = nameGroup.length;
if (mul == 1){
baseY = ((selectBox.y - (Math.round((_local7 / 2)) * _local2)) + _local2);
} else {
baseY = ((selectBox.y + selectBox.height) + _local2);
};
pop.y = baseY;
pop.visible = false;
pop["_blank"].visible = false;
i = 0;
while (i < _local7) {
_local6 = nameGroup[i];
if (pop.getChildByName(("l_" + _local6)) != null){
_local5 = (pop.getChildByName(("l_" + _local6)) as MovieClip);
_local5.mouseChildren = false;
_local5.buttonMode = true;
_local5.stop();
_local5["flag"].mouseEnable = false;
_local5["flag"].mouseChildren = false;
_local5["flag"].gotoAndStop(_local6);
obj[("l_" + _local6)] = true;
_local3 = (((i % 2) == 0)) ? 0 : 1;
_local5.x = ((_local1 * (i % 2)) - _local3);
_local5.y = ((_local2 * Math.floor((i / 2))) - _local2);
};
i++;
};
i = 0;
while (i < pop.numChildren) {
if (pop.getChildAt(i).name.indexOf("l_") != -1){
if (obj[pop.getChildAt(i).name] == undefined){
pop.getChildAt(i).visible = false;
};
};
i++;
};
if ((nameGroup.length % 2) == 0){
pop["_blank"].visible = false;
} else {
pop["_blank"].visible = true;
pop["_blank"].x = (_local1 - 1);
pop["_blank"].y = (((_local2 * Math.floor((nameGroup.length / 2))) - _local2) - _local4);
};
}
private function addToStageHandler(_arg1:Event):void{
init();
}
private function clickHandler(_arg1:MouseEvent):void{
var _local2:String;
var _local3:MovieClip;
_local2 = _arg1.target["name"];
if (_local2 == "_blank"){
return;
};
if (_local2.indexOf("l_") != -1){
_local3 = (_arg1.target["getChildByName"]("flag") as MovieClip);
flagMc.gotoAndStop(_local2.substr(2));
country_name.gotoAndStop(_local3.currentFrame);
setLanguage(_local2.substr(2));
pop.visible = false;
};
}
private function outPoPHandler(_arg1:MouseEvent):void{
var _local2 = _arg1.target;
_local2["gotoAndStop"](1);
}
private function overPoPHandler(_arg1:MouseEvent):void{
var _local2 = _arg1.target;
_local2["gotoAndStop"](2);
}
private function overHandler(_arg1:MouseEvent):void{
pop.visible = true;
}
private function setLanguage(_arg1:String):void{
CountryInfo.instance.country = _arg1;
CountryCookie.country = _arg1;
Dispatcher.langChanged();
}
private function removeFromStageHandler(_arg1:Event):void{
removeEventListener(MouseEvent.ROLL_OVER, overHandler);
removeEventListener(MouseEvent.ROLL_OUT, outHandler);
removeEventListener(MouseEvent.CLICK, clickHandler);
removeEventListener(Event.ADDED_TO_STAGE, addToStageHandler);
removeEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
delPoPEvent();
}
private function setFlag():void{
country_name = (getChildByName("countryName") as MovieClip);
flagMc = (getChildByName("flag") as MovieClip);
flagMc.gotoAndStop(CountryInfo.instance.country);
country_name.gotoAndStop(CountryInfo.instance.country);
}
}
}//package zlong.display
Section 210
//Dispatcher (zlong.display.Dispatcher)
package zlong.display {
import flash.events.*;
public class Dispatcher {
public static const LANGUAGE_CHANGED:String = "languageChanged";
public static var dispatcher:EventDispatcher = new EventDispatcher();
public static function langChanged():void{
dispatcher.dispatchEvent(new Event(LANGUAGE_CHANGED));
}
}
}//package zlong.display
Section 211
//ExtButton (zlong.display.ExtButton)
package zlong.display {
import flash.events.*;
import flash.display.*;
import game.sound.ctrl.*;
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);
}
public function get position():String{
return (_position);
}
private function rollOverHandler(_arg1:MouseEvent):void{
this.gotoAndStop(2);
SoundCtrl.playFx("btnTouch");
}
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);
}
public function get type():String{
return (_type);
}
private function clickHandler(_arg1:MouseEvent):void{
if (type == "moregames"){
Handler.click_moregames(_position);
} else {
Handler.click_thisgame(_position);
};
SoundCtrl.playFx("btnPress");
}
private function removeFromStageHandler(_arg1:Event):void{
delEvent();
}
}
}//package zlong.display
Section 212
//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 aa:MovieClip;
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 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 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 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 213
//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 214
//TranText (zlong.display.TranText)
package zlong.display {
import flash.events.*;
import flash.display.*;
import zlong.country.*;
public class TranText extends MovieClip {
private var isChange:Boolean;// = true
public function TranText(){
isChange = true;
super();
changeLang();
addEventListener(Event.ADDED_TO_STAGE, initEvent, false, 0, true);
}
private function langChangeHandler(_arg1:Event):void{
if (isChange){
changeLang();
};
}
private function removeHandler(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, removeHandler);
Dispatcher.dispatcher.removeEventListener(Dispatcher.LANGUAGE_CHANGED, langChangeHandler);
}
private function initEvent(_arg1:Event=null):void{
addEventListener(Event.REMOVED_FROM_STAGE, removeHandler);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, langChangeHandler);
}
public function set change(_arg1:Boolean):void{
isChange = _arg1;
}
private function changeLang():void{
gotoAndStop(CountryInfo.instance.language);
}
}
}//package zlong.display
Section 215
//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 216
//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 217
//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 218
//GameSetting (zlong.GameSetting)
package zlong {
import flash.display.*;
import zlong.country.*;
import zlong.display.*;
import zlong.data.*;
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 219
//+1_Life (+1_Life)
package {
import zlong.display.*;
public dynamic class +1_Life extends TranText {
}
}//package
Section 220
//+200_Points (+200_Points)
package {
import zlong.display.*;
public dynamic class +200_Points extends TranText {
}
}//package
Section 221
//Area: (Area:)
package {
import zlong.display.*;
public dynamic class Area: extends TranText {
}
}//package
Section 222
//Back (Back)
package {
import zlong.display.*;
public dynamic class Back extends TranText {
}
}//package
Section 223
//back0 (back0)
package {
import flash.media.*;
public dynamic class back0 extends Sound {
}
}//package
Section 224
//back123 (back123)
package {
import flash.media.*;
public dynamic class back123 extends Sound {
}
}//package
Section 225
//BFA1 (BFA1)
package {
import game.mc.base.*;
public dynamic class BFA1 extends StopMC {
}
}//package
Section 226
//BFA2 (BFA2)
package {
import game.mc.base.*;
public dynamic class BFA2 extends StopMC {
}
}//package
Section 227
//BFA3 (BFA3)
package {
import game.mc.base.*;
public dynamic class BFA3 extends StopMC {
}
}//package
Section 228
//BFA4 (BFA4)
package {
import game.mc.base.*;
public dynamic class BFA4 extends StopMC {
}
}//package
Section 229
//BFA5 (BFA5)
package {
import game.mc.base.*;
public dynamic class BFA5 extends StopMC {
}
}//package
Section 230
//BLA1 (BLA1)
package {
import game.mc.base.*;
public dynamic class BLA1 extends StopMC {
}
}//package
Section 231
//BLA2 (BLA2)
package {
import game.mc.base.*;
public dynamic class BLA2 extends StopMC {
}
}//package
Section 232
//BLA3 (BLA3)
package {
import game.mc.base.*;
public dynamic class BLA3 extends StopMC {
}
}//package
Section 233
//BLA4 (BLA4)
package {
import game.mc.base.*;
public dynamic class BLA4 extends StopMC {
}
}//package
Section 234
//BLA5 (BLA5)
package {
import game.mc.base.*;
public dynamic class BLA5 extends StopMC {
}
}//package
Section 235
//boomB (boomB)
package {
import flash.media.*;
public dynamic class boomB extends Sound {
}
}//package
Section 236
//btn_back (btn_back)
package {
import ui.unit.*;
public dynamic class btn_back extends ButtonBase {
}
}//package
Section 237
//btn_credits (btn_credits)
package {
import ui.unit.*;
public dynamic class btn_credits extends ButtonBase {
}
}//package
Section 238
//btn_hard (btn_hard)
package {
import ui.unit.*;
public dynamic class btn_hard extends ButtonBase {
}
}//package
Section 239
//btn_highscore (btn_highscore)
package {
import ui.unit.*;
public dynamic class btn_highscore extends ButtonBase {
}
}//package
Section 240
//btn_howtoplay (btn_howtoplay)
package {
import ui.unit.*;
public dynamic class btn_howtoplay extends ButtonBase {
}
}//package
Section 241
//btn_menu (btn_menu)
package {
import ui.unit.*;
public dynamic class btn_menu extends ButtonBase {
}
}//package
Section 242
//btn_moregame (btn_moregame)
package {
import ui.unit.*;
public dynamic class btn_moregame extends ButtonBase {
}
}//package
Section 243
//btn_music (btn_music)
package {
import ui.unit.*;
public dynamic class btn_music extends Btn2Side {
}
}//package
Section 244
//btn_next (btn_next)
package {
import ui.unit.*;
public dynamic class btn_next extends ButtonBase {
}
}//package
Section 245
//btn_next2 (btn_next2)
package {
import ui.unit.*;
public dynamic class btn_next2 extends ButtonBase {
}
}//package
Section 246
//btn_normal (btn_normal)
package {
import ui.unit.*;
public dynamic class btn_normal extends ButtonBase {
}
}//package
Section 247
//btn_play (btn_play)
package {
import ui.unit.*;
public dynamic class btn_play extends ButtonBase {
}
}//package
Section 248
//btn_quality (btn_quality)
package {
import ui.unit.*;
public dynamic class btn_quality extends Btn3Side {
}
}//package
Section 249
//btn_sound (btn_sound)
package {
import ui.unit.*;
public dynamic class btn_sound extends Btn2Side {
}
}//package
Section 250
//btn_SpillGames (btn_SpillGames)
package {
import ui.unit.*;
public dynamic class btn_SpillGames extends ButtonBase {
}
}//package
Section 251
//btn_start (btn_start)
package {
import ui.unit.*;
public dynamic class btn_start extends ButtonBase {
}
}//package
Section 252
//btn_SubmitScores (btn_SubmitScores)
package {
import ui.unit.*;
public dynamic class btn_SubmitScores extends ButtonBase {
}
}//package
Section 253
//btn_tryagain (btn_tryagain)
package {
import ui.unit.*;
public dynamic class btn_tryagain extends ButtonBase {
}
}//package
Section 254
//btnPress (btnPress)
package {
import flash.media.*;
public dynamic class btnPress extends Sound {
}
}//package
Section 255
//btnTouch (btnTouch)
package {
import flash.media.*;
public dynamic class btnTouch extends Sound {
}
}//package
Section 256
//Clean (Clean)
package {
import zlong.display.*;
public dynamic class Clean extends TranText {
}
}//package
Section 257
//Clean0 (Clean0)
package {
import zlong.display.*;
public dynamic class Clean0 extends TranText {
}
}//package
Section 258
//CLEAN1 (CLEAN1)
package {
import zlong.display.*;
public dynamic class CLEAN1 extends TranText {
}
}//package
Section 259
//cleanClean (cleanClean)
package {
import flash.media.*;
public dynamic class cleanClean extends Sound {
}
}//package
Section 260
//cleanLoop (cleanLoop)
package {
import flash.media.*;
public dynamic class cleanLoop extends Sound {
}
}//package
Section 261
//COM_LoadingBar (COM_LoadingBar)
package {
import flash.display.*;
public dynamic class COM_LoadingBar extends MovieClip {
}
}//package
Section 262
//COM_LoadingProgress (COM_LoadingProgress)
package {
import flash.display.*;
public dynamic class COM_LoadingProgress extends MovieClip {
}
}//package
Section 263
//Complete (Complete)
package {
import zlong.display.*;
public dynamic class Complete extends TranText {
}
}//package
Section 264
//complete_mp3 (complete_mp3)
package {
import flash.media.*;
public dynamic class complete_mp3 extends Sound {
}
}//package
Section 265
//Complete2 (Complete2)
package {
import zlong.display.*;
public dynamic class Complete2 extends TranText {
}
}//package
Section 266
//Credits (Credits)
package {
import zlong.display.*;
public dynamic class Credits extends TranText {
}
}//package
Section 267
//Credits6 (Credits6)
package {
import zlong.display.*;
public dynamic class Credits6 extends TranText {
}
}//package
Section 268
//deadB (deadB)
package {
import flash.media.*;
public dynamic class deadB extends Sound {
}
}//package
Section 269
//Failed (Failed)
package {
import zlong.display.*;
public dynamic class Failed extends TranText {
}
}//package
Section 270
//failed_mp3 (failed_mp3)
package {
import flash.media.*;
public dynamic class failed_mp3 extends Sound {
}
}//package
Section 271
//fatAng (fatAng)
package {
import flash.media.*;
public dynamic class fatAng extends Sound {
}
}//package
Section 272
//fatG (fatG)
package {
import flash.media.*;
public dynamic class fatG extends Sound {
}
}//package
Section 273
//Fire (Fire)
package {
import zlong.display.*;
public dynamic class Fire extends TranText {
}
}//package
Section 274
//Games3000 (Games3000)
package {
import zlong.display.*;
public dynamic class Games3000 extends ExtButton {
}
}//package
Section 275
//Games3000s (Games3000s)
package {
import zlong.display.*;
public dynamic class Games3000s extends TranText {
}
}//package
Section 276
//Good_Luck (Good_Luck)
package {
import zlong.display.*;
public dynamic class Good_Luck extends TranText {
}
}//package
Section 277
//Hard (Hard)
package {
import zlong.display.*;
public dynamic class Hard extends TranText {
}
}//package
Section 278
//High (High)
package {
import zlong.display.*;
public dynamic class High extends TranText {
}
}//package
Section 279
//HIGH_SCORES (HIGH_SCORES)
package {
import zlong.display.*;
public dynamic class HIGH_SCORES extends TranText {
}
}//package
Section 280
//How (How)
package {
import zlong.display.*;
public dynamic class How extends TranText {
}
}//package
Section 281
//HOW_TO_PLAY (HOW_TO_PLAY)
package {
import zlong.display.*;
public dynamic class HOW_TO_PLAY extends TranText {
}
}//package
Section 282
//item_lifes (item_lifes)
package {
import game.mc.base.*;
public dynamic class item_lifes extends ItemMCBase {
public function item_lifes(){
addFrameScript(28, frame29, 43, frame44);
}
function frame29(){
gotoAndPlay(1);
}
function frame44(){
stop();
}
}
}//package
Section 283
//item_Points (item_Points)
package {
import game.mc.base.*;
public dynamic class item_Points extends ItemMCBase {
public function item_Points(){
addFrameScript(28, frame29, 40, frame41);
}
function frame29(){
gotoAndPlay(1);
}
function frame41(){
stop();
}
}
}//package
Section 284
//item_Speedboost (item_Speedboost)
package {
import game.mc.base.*;
public dynamic class item_Speedboost extends ItemMCBase {
public function item_Speedboost(){
addFrameScript(28, frame29, 41, frame42);
}
function frame29(){
gotoAndPlay(1);
}
function frame42(){
stop();
}
}
}//package
Section 285
//itemB (itemB)
package {
import flash.media.*;
public dynamic class itemB extends Sound {
}
}//package
Section 286
//Lethe_Alert_Page (Lethe_Alert_Page)
package {
import flash.display.*;
public dynamic class Lethe_Alert_Page extends MovieClip {
}
}//package
Section 287
//Lethe_All_Logo (Lethe_All_Logo)
package {
import flash.display.*;
public dynamic class Lethe_All_Logo extends MovieClip {
}
}//package
Section 288
//Lethe_BackGround (Lethe_BackGround)
package {
import flash.display.*;
public dynamic class Lethe_BackGround extends MovieClip {
}
}//package
Section 289
//Lethe_Button_Back (Lethe_Button_Back)
package {
import flash.display.*;
public dynamic class Lethe_Button_Back extends MovieClip {
}
}//package
Section 290
//Lethe_Button_Down (Lethe_Button_Down)
package {
import flash.display.*;
public dynamic class Lethe_Button_Down extends MovieClip {
public var _txt:MovieClip;
}
}//package
Section 291
//Lethe_Button_Down2 (Lethe_Button_Down2)
package {
import flash.display.*;
public dynamic class Lethe_Button_Down2 extends MovieClip {
public var _txt:MovieClip;
}
}//package
Section 292
//Lethe_Button_Down3 (Lethe_Button_Down3)
package {
import flash.display.*;
public dynamic class Lethe_Button_Down3 extends MovieClip {
public var _txt:MovieClip;
}
}//package
Section 293
//Lethe_Button_Up (Lethe_Button_Up)
package {
import flash.display.*;
public dynamic class Lethe_Button_Up extends MovieClip {
public var _txt:MovieClip;
}
}//package
Section 294
//Lethe_Button_Up2 (Lethe_Button_Up2)
package {
import flash.display.*;
public dynamic class Lethe_Button_Up2 extends MovieClip {
public var _txt:MovieClip;
}
}//package
Section 295
//Lethe_Button_Up3 (Lethe_Button_Up3)
package {
import flash.display.*;
public dynamic class Lethe_Button_Up3 extends MovieClip {
public var _txt:MovieClip;
}
}//package
Section 296
//Lethe_Continue_Button (Lethe_Continue_Button)
package {
import flash.display.*;
public dynamic class Lethe_Continue_Button extends MovieClip {
public function Lethe_Continue_Button(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package
Section 297
//Lethe_Drag_Block (Lethe_Drag_Block)
package {
import flash.display.*;
public dynamic class Lethe_Drag_Block extends MovieClip {
}
}//package
Section 298
//Lethe_DragArea (Lethe_DragArea)
package {
import flash.display.*;
public dynamic class Lethe_DragArea extends MovieClip {
}
}//package
Section 299
//Lethe_FocusLine (Lethe_FocusLine)
package {
import flash.display.*;
public dynamic class Lethe_FocusLine extends MovieClip {
}
}//package
Section 300
//Lethe_LineBack (Lethe_LineBack)
package {
import flash.display.*;
public dynamic class Lethe_LineBack extends MovieClip {
}
}//package
Section 301
//Lethe_LineBack2 (Lethe_LineBack2)
package {
import flash.display.*;
public dynamic class Lethe_LineBack2 extends MovieClip {
}
}//package
Section 302
//Lethe_Link_Button (Lethe_Link_Button)
package {
import flash.display.*;
public dynamic class Lethe_Link_Button extends MovieClip {
public function Lethe_Link_Button(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package
Section 303
//Lethe_Loading_Text (Lethe_Loading_Text)
package {
import flash.display.*;
public dynamic class Lethe_Loading_Text extends MovieClip {
}
}//package
Section 304
//Lethe_Message_Loading (Lethe_Message_Loading)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Lethe_Message_Loading extends MovieClip {
public var _t_note:TextField;
public var _m_bar:MovieClip;
}
}//package
Section 305
//Lethe_NET_ERROR (Lethe_NET_ERROR)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Lethe_NET_ERROR extends MovieClip {
public var _t_note:TextField;
}
}//package
Section 306
//Lethe_PreviewMc (Lethe_PreviewMc)
package {
import flash.display.*;
public dynamic class Lethe_PreviewMc extends MovieClip {
}
}//package
Section 307
//Lethe_Scroll_Bar (Lethe_Scroll_Bar)
package {
import flash.display.*;
public dynamic class Lethe_Scroll_Bar extends MovieClip {
}
}//package
Section 308
//Lethe_Scroll_Down (Lethe_Scroll_Down)
package {
import flash.display.*;
public dynamic class Lethe_Scroll_Down extends MovieClip {
}
}//package
Section 309
//Lethe_Scroll_Up (Lethe_Scroll_Up)
package {
import flash.display.*;
public dynamic class Lethe_Scroll_Up extends MovieClip {
}
}//package
Section 310
//Lethe_Text1 (Lethe_Text1)
package {
import flash.display.*;
public dynamic class Lethe_Text1 extends MovieClip {
}
}//package
Section 311
//Lethe_Text2 (Lethe_Text2)
package {
import flash.display.*;
public dynamic class Lethe_Text2 extends MovieClip {
}
}//package
Section 312
//Lethe_Text3 (Lethe_Text3)
package {
import flash.display.*;
public dynamic class Lethe_Text3 extends MovieClip {
}
}//package
Section 313
//Level1 (Level1)
package {
import zlong.display.*;
public dynamic class Level1 extends TranText {
}
}//package
Section 314
//levelClean (levelClean)
package {
import flash.media.*;
public dynamic class levelClean extends Sound {
}
}//package
Section 315
//LOADING___ (LOADING___)
package {
import zlong.display.*;
public dynamic class LOADING___ extends TranText {
}
}//package
Section 316
//Main (Main)
package {
import flash.events.*;
import flash.display.*;
import game.core.*;
import zlong.country.*;
import flash.text.*;
import ui.*;
import game.level.*;
import flash.utils.*;
import zlong.display.*;
import zlong.*;
import ui.mc.*;
import other.*;
public class Main extends MovieClip {
private var text:TextField;
private var loading:LoadingUI;
private var _big:VERYBIG;
private var c:Core;
private var ui:UiCtrl;
private var fps:FPS;
public static var highMc;
public static var googleLv1:Boolean = false;
public static var tracker;
public function Main(){
var _local1:Class;
super();
_local1 = (getDefinitionByName("com.google.analytics.GATracker") as Class);
tracker = new _local1(this, "UA-6695967-1", "AS3", false);
new GameSetting(this, false, "family", "clean_mania", "clean-mania.html", 640, 480);
stop();
loading = new LoadingUI();
addChild(loading);
addEventListener(Event.ENTER_FRAME, loadingLoop);
stage.stageFocusRect = false;
_big = new VERYBIG();
addChild(_big);
}
private function loadingLoop(_arg1:Event):void{
if (loading.loadNum(Math.floor(((loaderInfo.bytesLoaded / loaderInfo.bytesTotal) * 100)))){
removeEventListener(Event.ENTER_FRAME, loadingLoop);
removeChild(loading);
loading = null;
newInit();
};
}
private function onClickHigh(_arg1):void{
var e = _arg1;
try {
highMc.parent.removeChild(highMc);
} catch(e:Error) {
};
}
private function changeLan(_arg1):void{
highMc.O1100000l(CountryInfo.instance.country);
}
private function newInit():void{
gotoAndStop(3);
gotoAndStop(1);
highMc = new O11111OO11();
highMc.x = 80;
highMc.y = 120;
highMc.O111111O(this, "clean_mania", "clean-mania", 0, "normal", 2);
highMc.O1100000l(CountryInfo.instance.country);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, changeLan);
highMc.addEventListener("00111111000", onClickHigh);
highMc.addEventListener("00000100110", onClickHigh);
highMc.addEventListener("000111000100", onClickHigh);
c = new Core(this, new LevelTest(1));
ui = new UiCtrl(this, c);
c.initUi(ui);
tracker.trackEvent("Clean Mania", "main_menu_viewed", "per session", 0);
text = new TextField();
text.text = "";
text.selectable = false;
text.textColor = 0xFF0000;
text.y = 460;
addChild(text);
swapChildren(_big, ui);
swapChildren(c, ui);
}
}
}//package
Section 317
//mainscreen_mp3 (mainscreen_mp3)
package {
import flash.media.*;
public dynamic class mainscreen_mp3 extends Sound {
}
}//package
Section 318
//makeBomb (makeBomb)
package {
import flash.media.*;
public dynamic class makeBomb extends Sound {
}
}//package
Section 319
//Mania (Mania)
package {
import zlong.display.*;
public dynamic class Mania extends TranText {
}
}//package
Section 320
//Mania6 (Mania6)
package {
import zlong.display.*;
public dynamic class Mania6 extends TranText {
}
}//package
Section 321
//Menu7 (Menu7)
package {
import zlong.display.*;
public dynamic class Menu7 extends TranText {
}
}//package
Section 322
//MORE_GAME_AT (MORE_GAME_AT)
package {
import zlong.display.*;
public dynamic class MORE_GAME_AT extends TranText {
}
}//package
Section 323
//MoreGamesLogo (MoreGamesLogo)
package {
import zlong.display.*;
public dynamic class MoreGamesLogo extends ExtButton {
public var __id2_:Logo;
public function MoreGamesLogo(){
__setProp___id2__MoreGamesLogo_Layer4_1();
}
function __setProp___id2__MoreGamesLogo_Layer4_1(){
try {
__id2_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id2_.alignHorizontal = "Center";
__id2_.alignVertical = "Center";
__id2_.maxHeight = 200;
__id2_.maxWidth = 198;
__id2_.position = "logo_preloader";
try {
__id2_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 324
//Move (Move)
package {
import zlong.display.*;
public dynamic class Move extends TranText {
}
}//package
Section 325
//Name: (Name:)
package {
import zlong.display.*;
public dynamic class Name: extends TranText {
}
}//package
Section 326
//Next (Next)
package {
import zlong.display.*;
public dynamic class Next extends TranText {
}
}//package
Section 327
//Normal (Normal)
package {
import zlong.display.*;
public dynamic class Normal extends TranText {
}
}//package
Section 328
//O11111111 (O11111111)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import O11111110.*;
import flash.text.*;
import flash.utils.*;
import flash.system.*;
public class O11111111 extends MovieClip {
private const O11111OO1:Array;
private var O11111OO0:Number;
private var O11111OOO:MovieClip;
private var O11111OOl;
private var O11111O01:Boolean;// = false
private var O11111O00;
private var O11111O0O:Loader;
private var O11111O0l;
private var O111111l1:String;
private var O111111lO:int;
private var O111111ll:Number;
private var O11111l11;
private var oddLineColor:Number;
private var O111111O0:String;
private var O111111O1:String;
private var O11111l1O;
private var O11111Ol0:MovieClip;
private var O11111Ol1:Array;
private var O111111OO:String;
private var O111111Ol:String;
private var O11111OlO:String;
private var O1111100O1:int;
private var O11111Oll:Boolean;
private var evenLineColor:Number;
private var selfLineColor:Number;
public function O11111111():void{
var O11111l1l:int;
var O11111l10:*;
O11111O01 = false;
O11111OO1 = ["Failed to get highscores.", "Failed to get highscores.", "Failed to get highscores.", "Failed to get highscores.", "Ophalen van de highscores mislukt", "Classement échoué.", "Highscores konnten nicht geladen werden.", "Error al cargar las puntuaciones máximas.", "Os recordes não foram recebidos.", "Não conseguiu obter uma das melhores pontuações", "Impossibile recuperare dati sui record.", "Kunde ej hämta toppoäng.", "Pobieranie rankingu nie powiodło się.", "Ошибка! Получить данные о рекордах не удалось!", "Yüksek skorlar alınamadı.", "Gagal untuk mendapatkan skor tertinggi", "Gagal mendapatkan skor tertinggi.", "ハイスコア情報の取得に失敗しました", "获取排行榜失败"];
super();
Security.allowDomain("*");
O11111OOl = this.parent;
O11111OOl.stop();
O11111l1l = 0;
while (true) {
try {
O11111l10 = O11111OOl.getChildAt(O11111l1l);
if ((O11111l10 is MovieClip)){
O11111l10.visible = false;
} else {
O11111OOl.removeChild(O11111l10);
};
O11111l1l = (O11111l1l + 1);
} catch(O11111llO:Error) {
break;
};
};
try {
O11111OOl["O111111O"] = O111110lO;
} catch(O11111llO:Error) {
};
}
private function O1111100O(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndStop(1);
}
private function O1111O1l1(_arg1):void{
removeEventListener(Event.ENTER_FRAME, O111110ll);
O11111l11.visible = true;
O11111O00.text = O11111OO1[(O1111111l.O11111OlO().O11111O0O() - 1)];
}
public function getData():XML{
if (O11111l1O){
return (O11111l1O.O0000022);
};
return (null);
}
private function O1111100l(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndStop(3);
}
private function O1111O1lO(_arg1:Event):void{
O11111OOl.dispatchEvent(_arg1);
}
public function O11111O11():void{
if (O11111l1O != null){
O11111l1O.O11111l0O();
};
}
public function get O11111O10():Boolean{
return (O11111O01);
}
private function O1111O1O0(_arg1:String){
return (getDefinitionByName(_arg1));
}
public function O11111O1O():void{
if (O11111l1O != null){
O11111l1O.O11111l1l();
};
}
public function O11111O1l(_arg1:int, _arg2:String):void{
if (O11111l1O != null){
O11111l1O.O11111l10(_arg1, _arg2);
};
}
private function O1111O1O1():void{
var O111110O1:*;
var O111110OO:*;
var O111110Ol:*;
var O111110O0:*;
var O11111l1l:int;
var O11111l01:int;
var O1111101l:*;
var O11111l10:*;
var O111110l1:*;
O111110O1 = getDefinitionByName("Lethe_Button_Back");
O111110OO = getDefinitionByName("Lethe_Loading_Text");
O111110Ol = getDefinitionByName("COM_LoadingProgress");
O111110O0 = getDefinitionByName("Lethe_Text3");
O11111l1l = 0;
O11111l01 = 0;
while (true) {
try {
O11111l10 = O11111OOO.getChildAt(O11111l1l);
if ((O11111l10 is O111110O1)){
O11111l11 = O11111l10;
O11111001(O11111l11);
O11111l01 = 0;
while (true) {
try {
O1111101l = O11111l11.getChildAt(O11111l01);
if ((O1111101l is O111110O0)){
O1111101l.gotoAndStop(O1111111l.O11111OlO().O11111O0O());
break;
};
O11111l01 = (O11111l01 + 1);
} catch(O11111llO:Error) {
break;
};
};
O11111l11.visible = false;
try {
O11111l10.removeEventListener(MouseEvent.CLICK, O1111O1OO);
} catch(e:Error) {
};
O11111l10.addEventListener(MouseEvent.CLICK, O1111O1OO, false, 0, true);
} else {
if ((O11111l10 is O111110OO)){
O11111l01 = 0;
while (true) {
try {
O111110l1 = O11111l10.getChildAt(O11111l01);
if ((O111110l1 is TextField)){
O11111O00 = O111110l1;
break;
};
O11111l01 = (O11111l01 + 1);
} catch(O11111llO:Error) {
break;
};
};
} else {
if ((O11111l10 is O111110Ol)){
O11111O0l = O11111l10;
O11111O0l.stop();
};
};
};
O11111l1l = (O11111l1l + 1);
} catch(O11111llO:Error) {
break;
};
};
}
private function O1111O1OO(_arg1:MouseEvent):void{
this.O1111O1lO(new Event("00000100110"));
}
private function O1111O1Ol(_arg1:Event):void{
this.dispatchEvent(new Event(Event.COMPLETE));
O11111l1O = _arg1.currentTarget.content;
O11111l1O.addEventListener("000111000100", O1111O1lO);
O11111l1O.addEventListener("00111111000", O1111O1lO);
O11111l1O.addEventListener("000000000000", O1111O1lO);
O11111l1O.addEventListener("010101010100", O1111O1lO);
O11111l1O.addEventListener("000001111111", O1111O1lO);
O11111l1O.addEventListener("O1111lOl02", O1111O1lO);
O11111l1O.O11111l12(O1111O1O0("Lethe_NET_ERROR"), O1111O1O0("Lethe_Message_Loading"));
O11111l1O.O11111l1O(O11111OO0, O111111lO, O111111ll, O111111Ol, O11111O10, O1111111l.O11111OlO().O11111OOO, O111111O1, evenLineColor, oddLineColor, 0, selfLineColor);
O11111l1O.O11111l11(O1111O1O0("Lethe_BackGround"), O1111O1O0("Lethe_Button_Down"), O1111O1O0("Lethe_Button_Down2"), O1111O1O0("Lethe_Button_Down3"), O1111O1O0("Lethe_Button_Up"), O1111O1O0("Lethe_Button_Up2"), O1111O1O0("Lethe_Button_Up3"), O1111O1O0("Lethe_FocusLine"), O1111O1O0("Lethe_LineBack"), O1111O1O0("Lethe_LineBack2"), O1111O1O0("Lethe_Scroll_Bar"), O1111O1O0("Lethe_Drag_Block"), O1111O1O0("Lethe_Scroll_Up"), O1111O1O0("Lethe_Scroll_Down"), O1111O1O0("Lethe_DragArea"));
O11111O1O();
}
public function set O11111O10(_arg1:Boolean):void{
var _local2:LocalConnection;
var _local3:String;
var _local4:Array;
var _local5:int;
var _local6:int;
var _local7:O1111111O;
O11111O01 = _arg1;
O11111Ol1 = ["www8.agame.com", "www.zlonggames.com", "gamedev.dev.spillgroup.com", "gamedev.dev.spilgames.com", "www.zlonggamestest.com"];
_local2 = new LocalConnection();
if (_local2.domain != "localhost"){
_local4 = _local2.domain.split(".");
_local5 = (_local4.length - 1);
_local6 = (_local4.length - 2);
O11111OlO = ((_local4[_local6] + ".") + _local4[_local5]);
} else {
O11111OlO = "localhost";
};
O1111111l.O11111OlO().O11111Oll(O11111OlO, O111111Ol, O111111O0, O1111100O1);
if (((isNaN(O11111OO0)) || (isNaN(O111111lO)))){
O111110l0();
return;
};
for each (_local3 in O11111Ol1) {
if (_local2.domain == _local3){
_local7 = new O1111111O();
if (_local7.O11111OO1()){
O11111Oll = true;
O1111O110();
return;
};
O111110l0();
return;
};
};
O111110l0();
}
private function O1111O110():void{
var _local1:*;
stop();
O11111O0O = new Loader();
O11111O0O.load(new URLRequest(O111111l1));
O11111OOl.addChildAt(O11111O0O, 0);
this.addEventListener(Event.ENTER_FRAME, O111110ll);
O11111O0O.contentLoaderInfo.addEventListener(Event.COMPLETE, O1111O1Ol);
O11111O0O.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, O1111O1l1);
O11111O0O.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, O1111O1l1);
_local1 = getDefinitionByName("COM_LoadingBar");
if (_local1 != null){
O11111OOO = new (_local1);
O11111OOl.addChild(O11111OOO);
O1111O1O1();
};
}
private function O1111O111():void{
var O11111l1l:int;
var O11111l01:int;
var O11111l0O:*;
var O11111l0l:*;
var O11111l00:*;
var O11111011:*;
var O1111101O:*;
var O1111101l:*;
var O11111l10:*;
O11111l1l = 0;
O11111l01 = 0;
O11111l0O = getDefinitionByName("Lethe_Continue_Button");
O11111l0l = getDefinitionByName("Lethe_Link_Button");
O11111l00 = getDefinitionByName("Lethe_Text1");
O11111011 = getDefinitionByName("Lethe_Text2");
O1111101O = getDefinitionByName("Lethe_All_Logo");
while (true) {
try {
O11111l10 = O11111Ol0.getChildAt(O11111l1l);
if ((O11111l10 is O11111l0O)){
O11111001(O11111l10);
try {
O11111l10.removeEventListener(MouseEvent.CLICK, O1111O11l);
} catch(e:Error) {
};
O11111l10.addEventListener(MouseEvent.CLICK, O1111O11l, false, 0, true);
O11111l01 = 0;
while (true) {
try {
O1111101l = O11111l10.getChildAt(O11111l01);
if ((((O1111101l is O11111l00)) || ((O1111101l is O11111011)))){
O1111101l.gotoAndStop(O1111111l.O11111OlO().O11111O0O());
};
O11111l01 = (O11111l01 + 1);
} catch(O11111llO:Error) {
break;
};
};
} else {
if ((O11111l10 is O11111l0l)){
try {
O11111l10.removeEventListener(MouseEvent.CLICK, O1111O11O);
} catch(e:Error) {
};
O11111l10.addEventListener(MouseEvent.CLICK, O1111O11O, false, 0, true);
O11111001(O11111l10);
O11111l01 = 0;
while (true) {
try {
O1111101l = O11111l10.getChildAt(O11111l01);
if ((((O1111101l is O11111l00)) || ((O1111101l is O11111011)))){
O1111101l.gotoAndStop(O1111111l.O11111OlO().O11111O0O());
} else {
if ((O1111101l is O1111101O)){
O1111101l.gotoAndStop(O1111111l.O11111OlO().O11111O01());
};
};
O11111l01 = (O11111l01 + 1);
} catch(O11111llO:Error) {
break;
};
};
};
};
O11111l1l = (O11111l1l + 1);
} catch(O11111llO:Error) {
break;
};
};
}
public function O111111l0():Boolean{
return (O11111Oll);
}
private function O1111O11l(_arg1:MouseEvent):void{
this.O1111O1lO(new Event("000111000100"));
}
private function O1111O11O(_arg1:MouseEvent):void{
O1111111l.O11111OlO().O11111O0l();
this.O1111O1lO(new Event("00111111000"));
}
private function O111110l0():void{
var O11111ll0:*;
if (O11111OOO != null){
O11111OOl.removeChild(O11111OOO);
O11111OOO = null;
};
if (O11111Ol0 == null){
try {
O11111ll0 = getDefinitionByName("Lethe_Alert_Page");
O11111Ol0 = new (O11111ll0);
O11111OOl.addChild(O11111Ol0);
O1111O111();
} catch(O11111llO:Error) {
};
};
}
private function O111110lO(_arg1=null, _arg2:String="default", _arg3="", _arg4:int=0, _arg5:String="normal", _arg6:int=1, _arg7:Number=0x515151, _arg8:Number=0x515151, _arg9:Number=0x515151, _arg10:int=0):void{
O11111OOl["O11111O10"] = O11111O1l;
O11111OOl["O11111O11"] = O11111O1O;
O11111OOl["O11111100"] = O111111l0;
O11111OOl["O11111101"] = O11111101;
O11111OOl["O1100000l"] = O10000101;
O11111OOl["O00001112"] = getData;
O11111OOl["O1111110l"] = O1111110l;
O11111OOl["O111111001"] = O11111100;
O11111OOl["O111111010"] = O11111O11;
O1111111l.O11111OlO().O11111Ol0("en_us");
evenLineColor = _arg7;
oddLineColor = _arg8;
selfLineColor = _arg9;
O1111100O1 = _arg6;
O111111O1 = _arg5;
O111111Ol = _arg2;
if (_arg3 == ""){
O111111O0 = O111111Ol;
} else {
O111111O0 = _arg3;
};
O111111ll = _arg4;
if (((!((_arg1 == null))) && (!((_arg1.loaderInfo == null))))){
if (_arg10 == 0){
O11111OO0 = Number(_arg1.loaderInfo.parameters["id"]);
O111111lO = Number(_arg1.loaderInfo.parameters["s"]);
} else {
O11111OO0 = Number(_arg1.loaderInfo.parameters[("id" + _arg10)]);
O111111lO = Number(_arg1.loaderInfo.parameters[("s" + _arg10)]);
};
O111111l1 = "http://www8.agame.com/games/flash/highscore/Submiter.swf?v=117";
O11111O10 = true;
};
}
private function O111110ll(_arg1:Event):void{
var _local2:int;
_local2 = (((O11111O0O.contentLoaderInfo.bytesLoaded / O11111O0O.contentLoaderInfo.bytesTotal) * 100) >> 0);
if (_local2 == 0){
O11111O0l.gotoAndStop(1);
} else {
O11111O0l.gotoAndStop(_local2);
};
O11111O00.text = (String(_local2) + "%");
if (_local2 >= 100){
O11111l11 = null;
O11111O0l = null;
O11111O00 = null;
removeEventListener(Event.ENTER_FRAME, O111110ll);
O11111OOl.removeChild(O11111OOO);
O11111OOO = null;
};
}
public function O11111100():void{
if (O11111l1O != null){
O11111l1O.O11111l0l();
};
}
public function O11111101():Boolean{
return (!((O11111l1O == null)));
}
public function O1111110O(_arg1:Number, _arg2:Number):void{
if (O11111O0O){
O11111O0O.scaleX = (_arg1 / 460);
O11111O0O.scaleY = (_arg2 / 300);
};
}
public function O1111110l():void{
if (O11111l1O != null){
O11111l1O.O11111l00();
};
}
private function O11111000(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndStop(2);
}
private function O11111001(_arg1):void{
var _btn = _arg1;
_btn.stop();
_btn.mouseChildren = false;
_btn.buttonMode = true;
try {
_btn.removeEventListener(MouseEvent.MOUSE_OVER, O11111000);
_btn.removeEventListener(MouseEvent.MOUSE_DOWN, O1111100l);
_btn.removeEventListener(MouseEvent.MOUSE_OUT, O1111100O);
_btn.removeEventListener(MouseEvent.MOUSE_UP, O1111100O);
} catch(e:Error) {
};
_btn.addEventListener(MouseEvent.MOUSE_OVER, O11111000, false, 0, true);
_btn.addEventListener(MouseEvent.MOUSE_DOWN, O1111100l, false, 0, true);
_btn.addEventListener(MouseEvent.MOUSE_OUT, O1111100O, false, 0, true);
_btn.addEventListener(MouseEvent.MOUSE_UP, O1111100O, false, 0, true);
}
public function O10000101(_arg1:String):void{
var _langType = _arg1;
O1111111l.O11111OlO().O11111Ol0(_langType);
try {
O1111O111();
} catch(e:Error) {
};
try {
O1111O1O1();
} catch(e:Error) {
};
try {
O11111O00.text = O11111OO1[(O1111111l.O11111OlO().O11111O0O() - 1)];
} catch(e:Error) {
};
try {
O11111l1O.O0100010((O1111111l.O11111OlO().getOldOrder() + 1));
} catch(e:Error) {
};
}
}
}//package
Section 329
//O11111OO11 (O11111OO11)
package {
import flash.display.*;
public dynamic class O11111OO11 extends MovieClip {
}
}//package
Section 330
//P (P)
package {
import zlong.display.*;
public dynamic class P extends TranText {
}
}//package
Section 331
//Pause (Pause)
package {
import zlong.display.*;
public dynamic class Pause extends TranText {
}
}//package
Section 332
//Pause2 (Pause2)
package {
import zlong.display.*;
public dynamic class Pause2 extends TranText {
}
}//package
Section 333
//PlayGame (PlayGame)
package {
import zlong.display.*;
public dynamic class PlayGame extends TranText {
}
}//package
Section 334
//Score: (Score:)
package {
import zlong.display.*;
public dynamic class Score: extends TranText {
}
}//package
Section 335
//Space (Space)
package {
import zlong.display.*;
public dynamic class Space extends TranText {
}
}//package
Section 336
//Speed_boost (Speed_boost)
package {
import zlong.display.*;
public dynamic class Speed_boost extends TranText {
}
}//package
Section 337
//START (START)
package {
import zlong.display.*;
public dynamic class START extends TranText {
}
}//package
Section 338
//Submit_Scores1 (Submit_Scores1)
package {
import zlong.display.*;
public dynamic class Submit_Scores1 extends TranText {
}
}//package
Section 339
//Time: (Time:)
package {
import zlong.display.*;
public dynamic class Time: extends TranText {
}
}//package
Section 340
//Time_Out (Time_Out)
package {
import zlong.display.*;
public dynamic class Time_Out extends TranText {
}
}//package
Section 341
//Total_Score (Total_Score)
package {
import zlong.display.*;
public dynamic class Total_Score extends TranText {
}
}//package
Section 342
//Try_Again (Try_Again)
package {
import zlong.display.*;
public dynamic class Try_Again extends TranText {
}
}//package
Section 343
//Tryto (Tryto)
package {
import zlong.display.*;
public dynamic class Tryto extends TranText {
}
}//package
Section 344
//txt_level (txt_level)
package {
import zlong.display.*;
public dynamic class txt_level extends TranText {
}
}//package
Section 345
//txt_score (txt_score)
package {
import zlong.display.*;
public dynamic class txt_score extends TranText {
}
}//package
Section 346
//txt_target (txt_target)
package {
import zlong.display.*;
public dynamic class txt_target extends TranText {
}
}//package
Section 347
//world1_mp3 (world1_mp3)
package {
import flash.media.*;
public dynamic class world1_mp3 extends Sound {
}
}//package
Section 348
//world2_mp3 (world2_mp3)
package {
import flash.media.*;
public dynamic class world2_mp3 extends Sound {
}
}//package
Section 349
//world3_mp3 (world3_mp3)
package {
import flash.media.*;
public dynamic class world3_mp3 extends Sound {
}
}//package