Section 1
//CampaignInfo (com.google.analytics.campaign.CampaignInfo)
package com.google.analytics.campaign {
import com.google.analytics.utils.*;
public class CampaignInfo {
private var _new:Boolean;
private var _empty:Boolean;
public function CampaignInfo(_arg1:Boolean=true, _arg2:Boolean=false){
_empty = _arg1;
_new = _arg2;
}
public function isEmpty():Boolean{
return (_empty);
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
if (((!(isEmpty())) && (isNew()))){
_local1.utmcn = utmcn;
};
if (((!(isEmpty())) && (!(isNew())))){
_local1.utmcr = utmcr;
};
return (_local1);
}
public function isNew():Boolean{
return (_new);
}
public function get utmcn():String{
return ("1");
}
public function get utmcr():String{
return ("1");
}
}
}//package com.google.analytics.campaign
Section 2
//CampaignKey (com.google.analytics.campaign.CampaignKey)
package com.google.analytics.campaign {
public class CampaignKey {
public var UCMD:String;// = "utm_medium"
public var UCID:String;// = "utm_id"
public var UCTR:String;// = "utm_term"
public var UCSR:String;// = "utm_source"
public var UCNO:String;// = "utm_nooverride"
public var UCCN:String;// = "utm_campaign"
public var UGCLID:String;// = "gclid"
public var UCCT:String;// = "utm_content"
}
}//package com.google.analytics.campaign
Section 3
//CampaignManager (com.google.analytics.campaign.CampaignManager)
package com.google.analytics.campaign {
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import com.google.analytics.utils.*;
public class CampaignManager {
private var _config:Configuration;
private var _domainHash:Number;
private var _debug:DebugConfiguration;
private var _timeStamp:Number;
private var _referrer:String;
private var _buffer:Buffer;
public static const trackingDelimiter:String = "|";
public function CampaignManager(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Buffer, _arg4:Number, _arg5:String, _arg6:Number){
_config = _arg1;
_debug = _arg2;
_buffer = _arg3;
_domainHash = _arg4;
_referrer = _arg5;
_timeStamp = _arg6;
}
public function hasNoOverride(_arg1:String):Boolean{
var _local2:CampaignKey;
var _local3:Variables;
var _local4:String;
_local2 = _config.campaignKey;
if (_arg1 == ""){
return (false);
};
_local3 = new Variables(_arg1);
_local4 = "";
if (_local3.hasOwnProperty(_local2.UCNO)){
_local4 = _local3[_local2.UCNO];
switch (_local4){
case "1":
return (true);
case "":
case "0":
default:
return (false);
};
};
return (false);
}
public function getCampaignInformation(_arg1:String, _arg2:Boolean):CampaignInfo{
var _local3:CampaignInfo;
var _local4:CampaignTracker;
var _local5:Boolean;
var _local6:Boolean;
var _local7:int;
var _local8:CampaignTracker;
var _local9:int;
_local3 = new CampaignInfo();
_local5 = false;
_local6 = false;
_local7 = 0;
if (((_config.allowLinker) && (_buffer.isGenuine()))){
if (!_buffer.hasUTMZ()){
return (_local3);
};
};
_local4 = getTrackerFromSearchString(_arg1);
if (isValid(_local4)){
_local6 = hasNoOverride(_arg1);
if (((_local6) && (!(_buffer.hasUTMZ())))){
return (_local3);
};
};
if (!isValid(_local4)){
_local4 = getOrganicCampaign();
if (((!(_buffer.hasUTMZ())) && (isIgnoredKeyword(_local4)))){
return (_local3);
};
};
if (((!(isValid(_local4))) && (_arg2))){
_local4 = getReferrerCampaign();
if (((!(_buffer.hasUTMZ())) && (isIgnoredReferral(_local4)))){
return (_local3);
};
};
if (!isValid(_local4)){
if (((!(_buffer.hasUTMZ())) && (_arg2))){
_local4 = getDirectCampaign();
};
};
if (!isValid(_local4)){
return (_local3);
};
if (((_buffer.hasUTMZ()) && (!(_buffer.utmz.isEmpty())))){
_local8 = new CampaignTracker();
_local8.fromTrackerString(_buffer.utmz.campaignTracking);
_local5 = (_local8.toTrackerString() == _local4.toTrackerString());
_local7 = _buffer.utmz.responseCount;
};
if (((!(_local5)) || (_arg2))){
_local9 = _buffer.utma.sessionCount;
_local7++;
if (_local9 == 0){
_local9 = 1;
};
_buffer.utmz.domainHash = _domainHash;
_buffer.utmz.campaignCreation = _timeStamp;
_buffer.utmz.campaignSessions = _local9;
_buffer.utmz.responseCount = _local7;
_buffer.utmz.campaignTracking = _local4.toTrackerString();
_debug.info(_buffer.utmz.toString(), VisualDebugMode.geek);
_local3 = new CampaignInfo(false, true);
} else {
_local3 = new CampaignInfo(false, false);
};
return (_local3);
}
public function isValid(_arg1:CampaignTracker):Boolean{
if (((_arg1) && (_arg1.isValid()))){
return (true);
};
return (false);
}
public function getTrackerFromSearchString(_arg1:String):CampaignTracker{
var _local2:CampaignTracker;
var _local3:CampaignTracker;
var _local4:CampaignKey;
var _local5:Variables;
_local2 = getOrganicCampaign();
_local3 = new CampaignTracker();
_local4 = _config.campaignKey;
if (_arg1 == ""){
return (_local3);
};
_local5 = new Variables(_arg1);
if (_local5.hasOwnProperty(_local4.UCID)){
_local3.id = _local5[_local4.UCID];
};
if (_local5.hasOwnProperty(_local4.UCSR)){
_local3.source = _local5[_local4.UCSR];
};
if (_local5.hasOwnProperty(_local4.UGCLID)){
_local3.clickId = _local5[_local4.UGCLID];
};
if (_local5.hasOwnProperty(_local4.UCCN)){
_local3.name = _local5[_local4.UCCN];
} else {
_local3.name = "(not set)";
};
if (_local5.hasOwnProperty(_local4.UCMD)){
_local3.medium = _local5[_local4.UCMD];
} else {
_local3.medium = "(not set)";
};
if (_local5.hasOwnProperty(_local4.UCTR)){
_local3.term = _local5[_local4.UCTR];
} else {
if (((_local2) && (!((_local2.term == ""))))){
_local3.term = _local2.term;
};
};
if (_local5.hasOwnProperty(_local4.UCCT)){
_local3.content = _local5[_local4.UCCT];
};
return (_local3);
}
public function getOrganicCampaign():CampaignTracker{
var _local1:CampaignTracker;
var _local2:URL;
var _local3:String;
var _local4:Array;
var _local5:OrganicReferrer;
var _local6:String;
if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){
return (_local1);
};
_local2 = new URL(_referrer);
_local3 = "";
if (_local2.hostName != ""){
if (_local2.hostName.indexOf(".") > -1){
_local4 = _local2.hostName.split(".");
switch (_local4.length){
case 2:
_local3 = _local4[0];
break;
case 3:
_local3 = _local4[1];
break;
};
};
};
if (_config.organic.match(_local3)){
_local5 = _config.organic.getReferrerByName(_local3);
_local6 = _config.organic.getKeywordValue(_local5, _local2.search);
_local1 = new CampaignTracker();
_local1.source = _local5.engine;
_local1.name = "(organic)";
_local1.medium = "organic";
_local1.term = _local6;
};
return (_local1);
}
public function isIgnoredReferral(_arg1:CampaignTracker):Boolean{
if (((_arg1) && ((_arg1.medium == "referral")))){
return (_config.organic.isIgnoredReferral(_arg1.source));
};
return (false);
}
public function getDirectCampaign():CampaignTracker{
var _local1:CampaignTracker;
_local1 = new CampaignTracker();
_local1.source = "(direct)";
_local1.name = "(direct)";
_local1.medium = "(none)";
return (_local1);
}
public function isIgnoredKeyword(_arg1:CampaignTracker):Boolean{
if (((_arg1) && ((_arg1.medium == "organic")))){
return (_config.organic.isIgnoredKeyword(_arg1.term));
};
return (false);
}
public function getReferrerCampaign():CampaignTracker{
var _local1:CampaignTracker;
var _local2:URL;
var _local3:String;
var _local4:String;
if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){
return (_local1);
};
_local2 = new URL(_referrer);
_local3 = _local2.hostName;
_local4 = _local2.path;
if (_local3.indexOf("www.") == 0){
_local3 = _local3.substr(4);
};
_local1 = new CampaignTracker();
_local1.source = _local3;
_local1.name = "(referral)";
_local1.medium = "referral";
_local1.content = _local4;
return (_local1);
}
public static function isInvalidReferrer(_arg1:String):Boolean{
var _local2:URL;
if ((((((_arg1 == "")) || ((_arg1 == "-")))) || ((_arg1 == "0")))){
return (true);
};
if (_arg1.indexOf("://") > -1){
_local2 = new URL(_arg1);
if ((((_local2.protocol == Protocols.file)) || ((_local2.protocol == Protocols.none)))){
return (true);
};
};
return (false);
}
public static function isFromGoogleCSE(_arg1:String, _arg2:Configuration):Boolean{
var _local3:URL;
_local3 = new URL(_arg1);
if (_local3.hostName.indexOf(_arg2.google) > -1){
if (_local3.search.indexOf((_arg2.googleSearchParam + "=")) > -1){
if (_local3.path == ("/" + _arg2.googleCsePath)){
return (true);
};
};
};
return (false);
}
}
}//package com.google.analytics.campaign
Section 4
//CampaignTracker (com.google.analytics.campaign.CampaignTracker)
package com.google.analytics.campaign {
import com.google.analytics.utils.*;
public class CampaignTracker {
public var content:String;
public var source:String;
public var clickId:String;
public var name:String;
public var term:String;
public var medium:String;
public var id:String;
public function CampaignTracker(_arg1:String="", _arg2:String="", _arg3:String="", _arg4:String="", _arg5:String="", _arg6:String="", _arg7:String=""){
this.id = _arg1;
this.source = _arg2;
this.clickId = _arg3;
this.name = _arg4;
this.medium = _arg5;
this.term = _arg6;
this.content = _arg7;
}
public function isValid():Boolean{
if (((((!((id == ""))) || (!((source == ""))))) || (!((clickId == ""))))){
return (true);
};
return (false);
}
public function toTrackerString():String{
var _local1:Array = [];
_addIfNotEmpty(_local1, "utmcsr=", source);
_addIfNotEmpty(_local1, "utmccn=", name);
_addIfNotEmpty(_local1, "utmcmd=", medium);
_addIfNotEmpty(_local1, "utmctr=", term);
_addIfNotEmpty(_local1, "utmcct=", content);
_addIfNotEmpty(_local1, "utmcid=", id);
_addIfNotEmpty(_local1, "utmgclid=", clickId);
return (_local1.join(CampaignManager.trackingDelimiter));
}
private function _addIfNotEmpty(_arg1:Array, _arg2:String, _arg3:String):void{
if (_arg3 != ""){
_arg3 = _arg3.split("+").join("%20");
_arg3 = _arg3.split(" ").join("%20");
_arg1.push((_arg2 + _arg3));
};
}
public function fromTrackerString(_arg1:String):void{
var _local2:String = _arg1.split(CampaignManager.trackingDelimiter).join("&");
var _local3:Variables = new Variables(_local2);
if (_local3.hasOwnProperty("utmcid")){
this.id = _local3["utmcid"];
};
if (_local3.hasOwnProperty("utmcsr")){
this.source = _local3["utmcsr"];
};
if (_local3.hasOwnProperty("utmccn")){
this.name = _local3["utmccn"];
};
if (_local3.hasOwnProperty("utmcmd")){
this.medium = _local3["utmcmd"];
};
if (_local3.hasOwnProperty("utmctr")){
this.term = _local3["utmctr"];
};
if (_local3.hasOwnProperty("utmcct")){
this.content = _local3["utmcct"];
};
if (_local3.hasOwnProperty("utmgclid")){
this.clickId = _local3["utmgclid"];
};
}
}
}//package com.google.analytics.campaign
Section 5
//FlashTracker (com.google.analytics.components.FlashTracker)
package com.google.analytics.components {
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import com.google.analytics.utils.*;
import flash.display.*;
import flash.events.*;
import com.google.analytics.external.*;
import com.google.analytics.*;
import flash.utils.*;
import com.google.analytics.events.*;
public class FlashTracker extends Sprite implements AnalyticsTracker {
private var _adSense:AdSenseGlobals;
private var _env:Environment;
protected var _height:Number;// = 18
private var _idleTimer:IdleTimer;
private var _config:Configuration;
private var _mode:String;// = "AS3"
private var _dom:HTMLDOM;
private var _ready:Boolean;// = false
protected var _width:Number;// = 18
private var _account:String;// = ""
protected var _componentInspectorSetting:Boolean;
private var _visualDebug:Boolean;// = false
public var boundingBox_mc:DisplayObject;
private var _debug:DebugConfiguration;
private var _buffer:Buffer;
private var _display:DisplayObject;
protected var livePreviewHeight:Number;
private var _jsproxy:JavascriptProxy;
protected var isLivePreview:Boolean;
protected var preview:MovieClip;
private var _gifRequest:GIFRequest;
protected var livePreviewWidth:Number;
private var _tracker:GoogleAnalyticsAPI;
public static var version:Version = API.version;
public function FlashTracker(){
_ready = false;
_account = "";
_mode = TrackerMode.AS3;
_visualDebug = false;
_width = 18;
_height = 18;
super();
_tracker = new TrackerCache();
isLivePreview = _checkLivePreview();
_componentInspectorSetting = false;
if (boundingBox_mc){
boundingBox_mc.visible = false;
removeChild(boundingBox_mc);
boundingBox_mc = null;
};
if (isLivePreview){
_createLivePreview();
};
addEventListener(Event.ENTER_FRAME, _factory);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
return (_tracker.trackEvent(_arg1, _arg2, _arg3, _arg4));
}
public function trackTrans():void{
_tracker.trackTrans();
}
private function _createLivePreview():void{
var _local1:Graphics;
var _local2:Class;
preview = new MovieClip();
_local1 = preview.graphics;
_local1.beginFill(0xFFFFFF);
_local1.moveTo(0, 0);
_local1.lineTo(0, _width);
_local1.lineTo(_width, _height);
_local1.lineTo(_height, 0);
_local1.lineTo(0, 0);
_local1.endFill();
_local2 = (getDefinitionByName("com.google.analytics.components::Icon") as Class);
preview.icon_mc = new (_local2);
preview.icon_mc.name = "icon_mc";
preview.addChild(preview.icon_mc);
addChild(preview);
}
public function trackPageview(_arg1:String=""):void{
_tracker.trackPageview(_arg1);
}
public function get account():String{
return (_account);
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_tracker.linkByPost(_arg1, _arg2);
}
public function getDetectTitle():Boolean{
return (_tracker.getDetectTitle());
}
public function setCampNameKey(_arg1:String):void{
_tracker.setCampNameKey(_arg1);
}
public function resetSession():void{
_tracker.resetSession();
}
public function set account(_arg1:String):void{
_account = _arg1;
}
public function get debug():DebugConfiguration{
if (!_debug){
_createDebugAndConfig();
};
return (_debug);
}
public function createEventTracker(_arg1:String):EventTracker{
return (_tracker.createEventTracker(_arg1));
}
public function set config(_arg1:Configuration):void{
_config = _arg1;
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
return (_tracker.addTrans(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8));
}
public function setLocalServerMode():void{
_tracker.setLocalServerMode();
}
public function getLocalGifPath():String{
return (_tracker.getLocalGifPath());
}
public function clearIgnoredRef():void{
_tracker.clearIgnoredRef();
}
public function isReady():Boolean{
return (_ready);
}
public function set debug(_arg1:DebugConfiguration):void{
_debug = _arg1;
}
public function getVersion():String{
return (_tracker.getVersion());
}
public function setLocalRemoteServerMode():void{
_tracker.setLocalRemoteServerMode();
}
public function setCampNOKey(_arg1:String):void{
_tracker.setCampNOKey(_arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
_tracker.addIgnoredOrganic(_arg1);
}
public function setCookiePath(_arg1:String):void{
_tracker.setCookiePath(_arg1);
}
public function setCampTermKey(_arg1:String):void{
_tracker.setCampTermKey(_arg1);
}
private function _trackerFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (AS3) v" + version) + "\naccount: ") + account));
_adSense = new AdSenseGlobals(debug);
_dom = new HTMLDOM(debug);
_dom.cacheProperties();
_env = new Environment("", "", "", debug, _dom);
_buffer = new Buffer(config, debug, false);
_gifRequest = new GIFRequest(config, debug, _buffer, _env);
_idleTimer = new IdleTimer(config, debug, _display, _buffer);
_env.url = _display.stage.loaderInfo.url;
return (new Tracker(account, config, debug, _env, _buffer, _gifRequest, _adSense));
}
public function setCampaignTrack(_arg1:Boolean):void{
_tracker.setCampaignTrack(_arg1);
}
public function getServiceMode():ServerOperationMode{
return (_tracker.getServiceMode());
}
public function set componentInspectorSetting(_arg1:Boolean):void{
_componentInspectorSetting = _arg1;
}
public function setSessionTimeout(_arg1:int):void{
_tracker.setSessionTimeout(_arg1);
}
public function setRemoteServerMode():void{
_tracker.setRemoteServerMode();
}
public function get visualDebug():Boolean{
return (_visualDebug);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_tracker.addOrganic(_arg1, _arg2);
}
public function setCookieTimeout(_arg1:int):void{
_tracker.setCookieTimeout(_arg1);
}
public function getClientInfo():Boolean{
return (_tracker.getClientInfo());
}
public function setAllowLinker(_arg1:Boolean):void{
_tracker.setAllowLinker(_arg1);
}
public function setClientInfo(_arg1:Boolean):void{
_tracker.setClientInfo(_arg1);
}
private function _bridgeFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (Bridge) v" + version) + "\naccount: ") + account));
return (new Bridge(account, _debug, _jsproxy));
}
public function get config():Configuration{
if (!_config){
_createDebugAndConfig();
};
return (_config);
}
public function set mode(_arg1:String):void{
_mode = _arg1;
}
public function setDetectFlash(_arg1:Boolean):void{
_tracker.setDetectFlash(_arg1);
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_tracker.addItem(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public function setVar(_arg1:String):void{
_tracker.setVar(_arg1);
}
public function clearIgnoredOrganic():void{
_tracker.clearIgnoredOrganic();
}
public function setDomainName(_arg1:String):void{
_tracker.setDomainName(_arg1);
}
private function _checkLivePreview():Boolean{
if (((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")))){
return (true);
};
return (false);
}
public function setCampSourceKey(_arg1:String):void{
_tracker.setCampSourceKey(_arg1);
}
public function setCampContentKey(_arg1:String):void{
_tracker.setCampContentKey(_arg1);
}
public function setSize(_arg1:Number, _arg2:Number):void{
}
public function setAllowAnchor(_arg1:Boolean):void{
_tracker.setAllowAnchor(_arg1);
}
public function setLocalGifPath(_arg1:String):void{
_tracker.setLocalGifPath(_arg1);
}
public function get mode():String{
return (_mode);
}
public function setSampleRate(_arg1:Number):void{
_tracker.setSampleRate(_arg1);
}
public function setAllowHash(_arg1:Boolean):void{
_tracker.setAllowHash(_arg1);
}
public function setDetectTitle(_arg1:Boolean):void{
_tracker.setDetectTitle(_arg1);
}
public function cookiePathCopy(_arg1:String):void{
_tracker.cookiePathCopy(_arg1);
}
private function _factory(_arg1:Event):void{
var _local2:GoogleAnalyticsAPI;
var _local3:TrackerCache;
removeEventListener(Event.ENTER_FRAME, _factory);
if (isLivePreview){
return;
};
_display = this;
_createDebugAndConfig();
if (visualDebug){
debug.layout = new Layout(debug, _display);
debug.active = visualDebug;
};
_jsproxy = new JavascriptProxy(debug);
_local3 = (_tracker as TrackerCache);
switch (mode){
case TrackerMode.BRIDGE:
_local2 = _bridgeFactory();
break;
case TrackerMode.AS3:
default:
_local2 = _trackerFactory();
};
if (!_local3.isEmpty()){
_local3.tracker = _local2;
_local3.flush();
};
_tracker = _local2;
_ready = true;
dispatchEvent(new AnalyticsEvent(AnalyticsEvent.READY, this));
}
public function getDetectFlash():Boolean{
return (_tracker.getDetectFlash());
}
public function clearOrganic():void{
_tracker.clearOrganic();
}
private function _createDebugAndConfig():void{
if (!_debug){
this.debug = new DebugConfiguration();
};
if (!_config){
this.config = new Configuration(debug);
};
}
public function addIgnoredRef(_arg1:String):void{
_tracker.addIgnoredRef(_arg1);
}
public function set visualDebug(_arg1:Boolean):void{
_visualDebug = _arg1;
}
public function setCampMediumKey(_arg1:String):void{
_tracker.setCampMediumKey(_arg1);
}
public function getAccount():String{
return (_tracker.getAccount());
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_tracker.link(_arg1, _arg2);
}
}
var _local1:* = ServerOperationMode;
return (_local1);
}//package com.google.analytics.components
Section 6
//GATrackerLibrary (com.google.analytics.components.GATrackerLibrary)
package com.google.analytics.components {
import com.google.analytics.utils.*;
import flash.display.*;
import com.google.analytics.*;
public class GATrackerLibrary extends MovieClip {
public static var version:Version = API.version;
}
}//package com.google.analytics.components
Section 7
//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 8
//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 9
//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 10
//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 11
//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 12
//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 13
//EventInfo (com.google.analytics.core.EventInfo)
package com.google.analytics.core {
import com.google.analytics.utils.*;
import com.google.analytics.data.*;
public class EventInfo {
private var _isEventHit:Boolean;
private var _ext10:X10;
private var _x10:X10;
public function EventInfo(_arg1:Boolean, _arg2:X10, _arg3:X10=null){
_isEventHit = _arg1;
_x10 = _arg2;
_ext10 = _arg3;
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
public function get utmt():String{
return ("event");
}
public function get utme():String{
return (_x10.renderMergedUrlString(_ext10));
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
if (_isEventHit){
_local1.utmt = utmt;
};
_local1.utme = utme;
return (_local1);
}
}
}//package com.google.analytics.core
Section 14
//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 15
//ga_internal (com.google.analytics.core.ga_internal)
package com.google.analytics.core {
public namespace ga_internal;
}//package com.google.analytics.core
Section 16
//GIFRequest (com.google.analytics.core.GIFRequest)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.net.*;
import com.google.analytics.utils.*;
import flash.display.*;
import flash.events.*;
import flash.system.*;
public class GIFRequest {
private var _info:Environment;
private var _count:int;
private var _utmac:String;
private var _alertcount:int;
private var _debug:DebugConfiguration;
private var _lastRequest:URLRequest;
private var _buffer:Buffer;
private var _config:Configuration;
private var _requests:Array;
public function GIFRequest(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Buffer, _arg4:Environment){
_config = _arg1;
_debug = _arg2;
_buffer = _arg3;
_info = _arg4;
_count = 0;
_alertcount = 0;
_requests = [];
}
public function get utmn():String{
return ((Utils.generate32bitRandom() as String));
}
public function onIOError(_arg1:IOErrorEvent):void{
var _local2:String = _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 17
//IdleTimer (com.google.analytics.core.IdleTimer)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class IdleTimer {
private var _loop:Timer;
private var _stage:Stage;
private var _lastMove:int;
private var _debug:DebugConfiguration;
private var _session:Timer;
private var _inactivity:Number;
private var _buffer:Buffer;
public function IdleTimer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:DisplayObject, _arg4:Buffer){
var _local5:Number;
var _local6:Number;
var _local7:Number;
super();
_local5 = _arg1.idleLoop;
_local6 = _arg1.idleTimeout;
_local7 = _arg1.sessionTimeout;
_loop = new Timer((_local5 * 1000));
_session = new Timer((_local7 * 1000), 1);
_debug = _arg2;
_stage = _arg3.stage;
_buffer = _arg4;
_lastMove = getTimer();
_inactivity = (_local6 * 1000);
_loop.addEventListener(TimerEvent.TIMER, checkForIdle);
_session.addEventListener(TimerEvent.TIMER_COMPLETE, endSession);
_stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
_debug.info(((((("delay: " + _local5) + "sec , inactivity: ") + _local6) + "sec, sessionTimeout: ") + _local7), VisualDebugMode.geek);
_loop.start();
}
private function onMouseMove(_arg1:MouseEvent):void{
_lastMove = getTimer();
if (_session.running){
_debug.info("session timer reset", VisualDebugMode.geek);
_session.reset();
};
}
public function endSession(_arg1:TimerEvent):void{
_session.removeEventListener(TimerEvent.TIMER_COMPLETE, endSession);
_debug.info("session timer end session", VisualDebugMode.geek);
_session.reset();
_buffer.resetCurrentSession();
_debug.info(_buffer.utmb.toString(), VisualDebugMode.geek);
_debug.info(_buffer.utmc.toString(), VisualDebugMode.geek);
_session.addEventListener(TimerEvent.TIMER_COMPLETE, endSession);
}
public function checkForIdle(_arg1:TimerEvent):void{
var _local2:int;
_local2 = getTimer();
if ((_local2 - _lastMove) >= _inactivity){
if (!_session.running){
_debug.info("session timer start", VisualDebugMode.geek);
_session.start();
};
};
}
}
}//package com.google.analytics.core
Section 18
//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 19
//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 20
//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 21
//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 22
//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 23
//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 24
//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 25
//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 26
//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 27
//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 28
//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 29
//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 30
//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 31
//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 32
//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 33
//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 34
//_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 35
//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 36
//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 37
//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 38
//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 39
//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 40
//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 41
//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 42
//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 43
//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 44
//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 45
//Label (com.google.analytics.debug.Label)
package com.google.analytics.debug {
import flash.display.*;
import flash.events.*;
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 46
//Layout (com.google.analytics.debug.Layout)
package com.google.analytics.debug {
import com.google.analytics.core.*;
import flash.net.*;
import flash.display.*;
import flash.events.*;
import com.google.analytics.*;
public class Layout implements ILayout {
private var _display:DisplayObject;
private var _infoQueue:Array;
private var _maxCharPerLine:int;// = 85
private var _hasInfo:Boolean;
private var _warningQueue:Array;
private var _hasDebug:Boolean;
private var _hasWarning:Boolean;
private var _mainPanel:Panel;
private var _GRAlertQueue:Array;
private var _debug:DebugConfiguration;
public var visualDebug:Debug;
private var _hasGRAlert:Boolean;
public function Layout(_arg1:DebugConfiguration, _arg2:DisplayObject){
_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 47
//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 48
//Panel (com.google.analytics.debug.Panel)
package com.google.analytics.debug {
import flash.display.*;
import flash.events.*;
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 49
//Style (com.google.analytics.debug.Style)
package com.google.analytics.debug {
public const Style:_Style = new _Style();
}//package com.google.analytics.debug
Section 50
//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 51
//UISprite (com.google.analytics.debug.UISprite)
package com.google.analytics.debug {
import flash.display.*;
import flash.events.*;
public class UISprite extends Sprite {
private var _forcedHeight:uint;
protected var listenResize:Boolean;
public var alignement:Align;
private var _forcedWidth:uint;
public var margin:Margin;
protected var alignTarget:DisplayObject;
public function UISprite(_arg1:DisplayObject=null){
listenResize = false;
alignement = Align.none;
this.alignTarget = _arg1;
margin = new Margin();
addEventListener(Event.ADDED_TO_STAGE, _onAddedToStage);
addEventListener(Event.REMOVED_FROM_STAGE, _onRemovedFromStage);
}
protected function dispose():void{
var _local1:DisplayObject;
var _local2:int;
_local2 = 0;
while (_local2 < numChildren) {
_local1 = getChildAt(_local2);
if (_local1){
removeChild(_local1);
};
_local2++;
};
}
protected function layout():void{
}
public function get forcedHeight():uint{
if (_forcedHeight){
return (_forcedHeight);
};
return (height);
}
public function alignTo(_arg1:Align, _arg2:DisplayObject=null):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:UISprite;
if (_arg2 == null){
if ((parent is Stage)){
_arg2 = this.stage;
} else {
_arg2 = parent;
};
};
if (_arg2 == this.stage){
if (this.stage == null){
return;
};
_local3 = this.stage.stageHeight;
_local4 = this.stage.stageWidth;
_local5 = 0;
_local6 = 0;
} else {
_local7 = (_arg2 as UISprite);
if (_local7.forcedHeight){
_local3 = _local7.forcedHeight;
} else {
_local3 = _local7.height;
};
if (_local7.forcedWidth){
_local4 = _local7.forcedWidth;
} else {
_local4 = _local7.width;
};
_local5 = 0;
_local6 = 0;
};
switch (_arg1){
case Align.top:
x = ((_local4 / 2) - (forcedWidth / 2));
y = (_local6 + margin.top);
break;
case Align.bottom:
x = ((_local4 / 2) - (forcedWidth / 2));
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
case Align.left:
x = (_local5 + margin.left);
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.right:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.center:
x = ((_local4 / 2) - (forcedWidth / 2));
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.topLeft:
x = (_local5 + margin.left);
y = (_local6 + margin.top);
break;
case Align.topRight:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = (_local6 + margin.top);
break;
case Align.bottomLeft:
x = (_local5 + margin.left);
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
case Align.bottomRight:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
};
if (((!(listenResize)) && (!((_arg1 == Align.none))))){
_arg2.addEventListener(Event.RESIZE, onResize, false, 0, true);
listenResize = true;
};
this.alignement = _arg1;
this.alignTarget = _arg2;
}
public function get forcedWidth():uint{
if (_forcedWidth){
return (_forcedWidth);
};
return (width);
}
protected function onResize(_arg1:Event):void{
resize();
}
private function _onRemovedFromStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onAddedToStage);
removeEventListener(Event.REMOVED_FROM_STAGE, _onRemovedFromStage);
dispose();
}
public function resize():void{
if (alignement != Align.none){
alignTo(alignement, alignTarget);
};
}
private function _onAddedToStage(_arg1:Event):void{
layout();
resize();
}
public function set forcedHeight(_arg1:uint):void{
_forcedHeight = _arg1;
}
public function set forcedWidth(_arg1:uint):void{
_forcedWidth = _arg1;
}
}
}//package com.google.analytics.debug
Section 52
//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 53
//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 54
//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 55
//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 56
//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 57
//JavascriptProxy (com.google.analytics.external.JavascriptProxy)
package com.google.analytics.external {
import com.google.analytics.debug.*;
import flash.system.*;
import flash.external.*;
public class JavascriptProxy {
private var _notAvailableWarning:Boolean;// = true
private var _debug:DebugConfiguration;
public static var setProperty_js:XML = <script>
<![CDATA[
function( path , value )
{
var paths;
var prop;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
prop = paths.pop() ;
}
else
{
paths = [];
prop = path;
}
var target = window ;
var len = paths.length ;
for( var i = 0 ; i < len ; i++ )
{
target = target[ paths[i] ] ;
}
target[ prop ] = value ;
}
]]>
</script>
;
public static var hasProperty_js:XML = <script>
<![CDATA[
function( path )
{
var paths;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
}
else
{
paths = [path];
}
var target = window ;
var len = paths.length ;
for( var i = 0 ; i < len ; i++ )
{
target = target[ paths[i] ] ;
}
if( target )
{
return true;
}
else
{
return false;
}
}
]]>
</script>
;
public static var setPropertyRef_js:XML = <script>
<![CDATA[
function( path , target )
{
var paths;
var prop;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
prop = paths.pop() ;
}
else
{
paths = [];
prop = path;
}
alert( "paths:"+paths.length+", prop:"+prop );
var targets;
var name;
if( target.indexOf(".") > 0 )
{
targets = target.split(".");
name = targets.pop();
}
else
{
targets = [];
name = target;
}
alert( "targets:"+targets.length+", name:"+name );
var root = window;
var len = paths.length;
for( var i = 0 ; i < len ; i++ )
{
root = root[ paths[i] ] ;
}
var ref = window;
var depth = targets.length;
for( var j = 0 ; j < depth ; j++ )
{
ref = ref[ targets[j] ] ;
}
root[ prop ] = ref[name] ;
}
]]>
</script>
;
public function JavascriptProxy(_arg1:DebugConfiguration){
_notAvailableWarning = true;
super();
_debug = _arg1;
}
public function getProperty(_arg1:String){
return (call((_arg1 + ".valueOf")));
}
public function hasProperty(_arg1:String):Boolean{
return (call(hasProperty_js, _arg1));
}
public function setProperty(_arg1:String, _arg2):void{
call(setProperty_js, _arg1, _arg2);
}
public function executeBlock(_arg1:String):void{
var data = _arg1;
if (isAvailable()){
try {
ExternalInterface.call(data);
} catch(e:SecurityError) {
if (_debug.javascript){
_debug.warning("ExternalInterface is not allowed.\nEnsure that allowScriptAccess is set to \"always\" in the Flash embed HTML.");
};
} catch(e:Error) {
if (_debug.javascript){
_debug.warning(("ExternalInterface failed to make the call\nreason: " + e.message));
};
};
};
}
public function getPropertyString(_arg1:String):String{
return (call((_arg1 + ".toString")));
}
public function setPropertyByReference(_arg1:String, _arg2:String):void{
call(setPropertyRef_js, _arg1, _arg2);
}
public function call(_arg1:String, ... _args){
var output:String;
var functionName = _arg1;
var args = _args;
if (isAvailable()){
try {
if (((_debug.javascript) && (_debug.verbose))){
output = "";
output = ("Flash->JS: " + functionName);
output = (output + "( ");
if (args.length > 0){
output = (output + args.join(","));
};
output = (output + " )");
_debug.info(output);
};
args.unshift(functionName);
return (ExternalInterface.call.apply(ExternalInterface, args));
} catch(e:SecurityError) {
if (_debug.javascript){
_debug.warning("ExternalInterface is not allowed.\nEnsure that allowScriptAccess is set to \"always\" in the Flash embed HTML.");
};
} catch(e:Error) {
if (_debug.javascript){
_debug.warning(("ExternalInterface failed to make the call\nreason: " + e.message));
};
};
};
return (null);
}
public function isAvailable():Boolean{
var _local1:Boolean;
_local1 = ExternalInterface.available;
if (((_local1) && ((Capabilities.playerType == "External")))){
_local1 = false;
};
if (((((!(_local1)) && (_debug.javascript))) && (_notAvailableWarning))){
_debug.warning("ExternalInterface is not available.");
_notAvailableWarning = false;
};
return (_local1);
}
}
}//package com.google.analytics.external
Section 58
//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 59
//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 60
//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 61
//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 62
//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 63
//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 64
//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 65
//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 66
//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 67
//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 68
//Tracker (com.google.analytics.v4.Tracker)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
import com.google.analytics.utils.*;
import com.google.analytics.data.*;
import com.google.analytics.external.*;
import com.google.analytics.campaign.*;
public class Tracker implements GoogleAnalyticsAPI {
private const EVENT_TRACKER_LABEL_KEY_NUM:int = 3;
private const EVENT_TRACKER_VALUE_VALUE_NUM:int = 1;
private const EVENT_TRACKER_PROJECT_ID:int = 5;
private const EVENT_TRACKER_OBJECT_NAME_KEY_NUM:int = 1;
private const EVENT_TRACKER_TYPE_KEY_NUM:int = 2;
private var _adSense:AdSenseGlobals;
private var _eventTracker:X10;
private var _noSessionInformation:Boolean;// = false
private var _browserInfo:BrowserInfo;
private var _debug:DebugConfiguration;
private var _isNewVisitor:Boolean;// = false
private var _buffer:Buffer;
private var _config:Configuration;
private var _x10Module:X10;
private var _campaign:CampaignManager;
private var _formatedReferrer:String;
private var _timeStamp:Number;
private var _info:Environment;
private var _domainHash:Number;
private var _campaignInfo:CampaignInfo;
private var _gifRequest:GIFRequest;
private var _hasInitData:Boolean;// = false
private var _account:String;
public function Tracker(_arg1:String, _arg2:Configuration, _arg3:DebugConfiguration, _arg4:Environment, _arg5:Buffer, _arg6:GIFRequest, _arg7:AdSenseGlobals){
var _local8:String;
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 69
//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 70
//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 71
//GATracker (com.google.analytics.GATracker)
package com.google.analytics {
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import com.google.analytics.utils.*;
import flash.display.*;
import flash.events.*;
import com.google.analytics.external.*;
import com.google.analytics.events.*;
public class GATracker implements AnalyticsTracker {
private var _adSense:AdSenseGlobals;
private var _env:Environment;
private var _visualDebug:Boolean;
private var _idleTimer:IdleTimer;
private var _debug:DebugConfiguration;
private var _buffer:Buffer;
private var _config:Configuration;
private var _mode:String;
private var _display:DisplayObject;
private var _jsproxy:JavascriptProxy;
private var _dom:HTMLDOM;
private var _eventDispatcher:EventDispatcher;
private var _ready:Boolean;// = false
private var _gifRequest:GIFRequest;
private var _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 72
//PropTween (com.greensock.core.PropTween)
package com.greensock.core {
public class PropTween {
public var target:Object;
public var property:String;
public var start:Number;
public var change:Number;
public var name:String;
public var priority:int;
public var isPlugin:Boolean;
public var nextNode:PropTween;
public var prevNode:PropTween;
public function PropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean, _arg7:PropTween=null, _arg8:int=0){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
if (_arg7){
_arg7.prevNode = this;
this.nextNode = _arg7;
};
this.priority = _arg8;
}
}
}//package com.greensock.core
Section 73
//SimpleTimeline (com.greensock.core.SimpleTimeline)
package com.greensock.core {
public class SimpleTimeline extends TweenCore {
protected var _firstChild:TweenCore;
protected var _lastChild:TweenCore;
public var autoRemoveChildren:Boolean;
public function SimpleTimeline(_arg1:Object=null){
super(0, _arg1);
}
public function addChild(_arg1:TweenCore):void{
if (((!(_arg1.cachedOrphan)) && (_arg1.timeline))){
_arg1.timeline.remove(_arg1, true);
};
_arg1.timeline = this;
if (_arg1.gc){
_arg1.setEnabled(true, true);
};
if (_firstChild){
_firstChild.prevNode = _arg1;
};
_arg1.nextNode = _firstChild;
_firstChild = _arg1;
_arg1.prevNode = null;
_arg1.cachedOrphan = false;
}
public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{
if (_arg1.cachedOrphan){
return;
};
if (!_arg2){
_arg1.setEnabled(false, true);
};
if (_arg1.nextNode){
_arg1.nextNode.prevNode = _arg1.prevNode;
} else {
if (_lastChild == _arg1){
_lastChild = _arg1.prevNode;
};
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (_firstChild == _arg1){
_firstChild = _arg1.nextNode;
};
};
_arg1.cachedOrphan = true;
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local5:Number;
var _local6:TweenCore;
var _local4:TweenCore = _firstChild;
this.cachedTotalTime = _arg1;
this.cachedTime = _arg1;
while (_local4) {
_local6 = _local4.nextNode;
if (((_local4.active) || ((((((_arg1 >= _local4.cachedStartTime)) && (!(_local4.cachedPaused)))) && (!(_local4.gc)))))){
if (!_local4.cachedReversed){
_local4.renderTime(((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale), _arg2, false);
} else {
_local5 = (_local4.cacheIsDirty) ? _local4.totalDuration : _local4.cachedTotalDuration;
_local4.renderTime((_local5 - ((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale)), _arg2, false);
};
};
_local4 = _local6;
};
}
public function get rawTime():Number{
return (this.cachedTotalTime);
}
}
}//package com.greensock.core
Section 74
//TweenCore (com.greensock.core.TweenCore)
package com.greensock.core {
import com.greensock.*;
public class TweenCore {
protected var _delay:Number;
protected var _hasUpdate:Boolean;
protected var _rawPrevTime:Number;// = -1
public var vars:Object;
public var active:Boolean;
public var gc:Boolean;
public var initted:Boolean;
public var timeline:SimpleTimeline;
public var cachedStartTime:Number;
public var cachedTime:Number;
public var cachedTotalTime:Number;
public var cachedDuration:Number;
public var cachedTotalDuration:Number;
public var cachedTimeScale:Number;
public var cachedPauseTime:Number;
public var cachedReversed:Boolean;
public var nextNode:TweenCore;
public var prevNode:TweenCore;
public var cachedOrphan:Boolean;
public var cacheIsDirty:Boolean;
public var cachedPaused:Boolean;
public var data;
public static const version:Number = 1.392;
protected static var _classInitted:Boolean;
public function TweenCore(_arg1:Number=0, _arg2:Object=null){
this.vars = ((_arg2)!=null) ? _arg2 : {};
this.cachedDuration = (this.cachedTotalDuration = _arg1);
_delay = (this.vars.delay) ? Number(this.vars.delay) : 0;
this.cachedTimeScale = (this.vars.timeScale) ? Number(this.vars.timeScale) : 1;
this.active = Boolean((((((_arg1 == 0)) && ((_delay == 0)))) && (!((this.vars.immediateRender == false)))));
this.cachedTotalTime = (this.cachedTime = 0);
this.data = this.vars.data;
if (!_classInitted){
if (isNaN(TweenLite.rootFrame)){
TweenLite.initClass();
_classInitted = true;
} else {
return;
};
};
var _local3:SimpleTimeline = ((this.vars.timeline is SimpleTimeline)) ? this.vars.timeline : (this.vars.useFrames) ? TweenLite.rootFramesTimeline : TweenLite.rootTimeline;
this.cachedStartTime = (_local3.cachedTotalTime + _delay);
_local3.addChild(this);
if (this.vars.reversed){
this.cachedReversed = true;
};
if (this.vars.paused){
this.paused = true;
};
}
public function play():void{
this.reversed = false;
this.paused = false;
}
public function pause():void{
this.paused = true;
}
public function resume():void{
this.paused = false;
}
public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{
this.reversed = false;
this.paused = false;
this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2);
}
public function reverse(_arg1:Boolean=true):void{
this.reversed = true;
if (_arg1){
this.paused = false;
} else {
if (this.gc){
this.setEnabled(true, false);
};
};
}
public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
}
public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{
if (!_arg1){
renderTime(this.totalDuration, _arg2, false);
return;
};
if (this.timeline.autoRemoveChildren){
this.setEnabled(false, false);
} else {
this.active = false;
};
if (!_arg2){
if (((((this.vars.onComplete) && ((this.cachedTotalTime >= this.cachedTotalDuration)))) && (!(this.cachedReversed)))){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
} else {
if (((((this.cachedReversed) && ((this.cachedTotalTime == 0)))) && (this.vars.onReverseComplete))){
this.vars.onReverseComplete.apply(null, this.vars.onReverseCompleteParams);
};
};
};
}
public function invalidate():void{
}
public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
this.gc = !(_arg1);
if (_arg1){
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
if (((!(_arg2)) && (this.cachedOrphan))){
this.timeline.addChild(this);
};
} else {
this.active = false;
if (((!(_arg2)) && (!(this.cachedOrphan)))){
this.timeline.remove(this, true);
};
};
return (false);
}
public function kill():void{
setEnabled(false, false);
}
protected function setDirtyCache(_arg1:Boolean=true):void{
var _local2:TweenCore = (_arg1) ? this : this.timeline;
while (_local2) {
_local2.cacheIsDirty = true;
_local2 = _local2.timeline;
};
}
protected function setTotalTime(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
var _local4:Number;
if (this.timeline){
_local3 = (((this.cachedPauseTime) || ((this.cachedPauseTime == 0)))) ? this.cachedPauseTime : this.timeline.cachedTotalTime;
if (this.cachedReversed){
_local4 = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration;
this.cachedStartTime = (_local3 - ((_local4 - _arg1) / this.cachedTimeScale));
} else {
this.cachedStartTime = (_local3 - (_arg1 / this.cachedTimeScale));
};
if (!this.timeline.cacheIsDirty){
setDirtyCache(false);
};
if (this.cachedTotalTime != _arg1){
renderTime(_arg1, _arg2, false);
};
};
}
public function get delay():Number{
return (_delay);
}
public function set delay(_arg1:Number):void{
this.startTime = (this.startTime + (_arg1 - _delay));
_delay = _arg1;
}
public function get duration():Number{
return (this.cachedDuration);
}
public function set duration(_arg1:Number):void{
this.cachedDuration = (this.cachedTotalDuration = _arg1);
setDirtyCache(false);
}
public function get totalDuration():Number{
return (this.cachedTotalDuration);
}
public function set totalDuration(_arg1:Number):void{
this.duration = _arg1;
}
public function get currentTime():Number{
return (this.cachedTime);
}
public function set currentTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
public function get totalTime():Number{
return (this.cachedTotalTime);
}
public function set totalTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
public function get startTime():Number{
return (this.cachedStartTime);
}
public function set startTime(_arg1:Number):void{
var _local2:Boolean = Boolean(((!((this.timeline == null))) && (((!((_arg1 == this.cachedStartTime))) || (this.gc)))));
this.cachedStartTime = _arg1;
if (_local2){
this.timeline.addChild(this);
};
}
public function get reversed():Boolean{
return (this.cachedReversed);
}
public function set reversed(_arg1:Boolean):void{
if (_arg1 != this.cachedReversed){
this.cachedReversed = _arg1;
setTotalTime(this.cachedTotalTime, true);
};
}
public function get paused():Boolean{
return (this.cachedPaused);
}
public function set paused(_arg1:Boolean):void{
if (((!((_arg1 == this.cachedPaused))) && (this.timeline))){
if (_arg1){
this.cachedPauseTime = this.timeline.rawTime;
} else {
this.cachedStartTime = (this.cachedStartTime + (this.timeline.rawTime - this.cachedPauseTime));
this.cachedPauseTime = NaN;
setDirtyCache(false);
};
this.cachedPaused = _arg1;
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
};
if (((!(_arg1)) && (this.gc))){
this.setTotalTime(this.cachedTotalTime, false);
this.setEnabled(true, false);
};
}
}
}//package com.greensock.core
Section 75
//TweenEvent (com.greensock.events.TweenEvent)
package com.greensock.events {
import flash.events.*;
public class TweenEvent extends Event {
public static const VERSION:Number = 1.1;
public static const START:String = "start";
public static const UPDATE:String = "change";
public static const COMPLETE:String = "complete";
public static const REVERSE_COMPLETE:String = "reverseComplete";
public static const REPEAT:String = "repeat";
public static const INIT:String = "init";
public function TweenEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function clone():Event{
return (new TweenEvent(this.type, this.bubbles, this.cancelable));
}
}
}//package com.greensock.events
Section 76
//AutoAlphaPlugin (com.greensock.plugins.AutoAlphaPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
public class AutoAlphaPlugin extends TweenPlugin {
protected var _target:Object;
protected var _ignoreVisible:Boolean;
public static const API:Number = 1;
public function AutoAlphaPlugin(){
this.propName = "autoAlpha";
this.overwriteProps = ["alpha", "visible"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha");
return (true);
}
override public function killProps(_arg1:Object):void{
super.killProps(_arg1);
_ignoreVisible = Boolean(("visible" in _arg1));
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (!_ignoreVisible){
_target.visible = Boolean(!((_target.alpha == 0)));
};
}
}
}//package com.greensock.plugins
Section 77
//BevelFilterPlugin (com.greensock.plugins.BevelFilterPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
import flash.filters.*;
public class BevelFilterPlugin extends FilterPlugin {
public static const API:Number = 1;
private static var _propNames:Array = ["distance", "angle", "highlightColor", "highlightAlpha", "shadowColor", "shadowAlpha", "blurX", "blurY", "strength", "quality"];
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))), _propNames);
return (true);
}
}
}//package com.greensock.plugins
Section 78
//BezierPlugin (com.greensock.plugins.BezierPlugin)
package com.greensock.plugins {
import com.greensock.*;
public class BezierPlugin extends TweenPlugin {
protected var _target:Object;
protected var _orientData:Array;
protected var _orient:Boolean;
protected var _future:Object;
protected var _beziers:Object;
public static const API:Number = 1;
protected static const _RAD2DEG:Number = 57.2957795130823;
public function BezierPlugin(){
_future = {};
super();
this.propName = "bezier";
this.overwriteProps = [];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg2 is Array)){
return (false);
};
init(_arg3, (_arg2 as Array), false);
return (true);
}
protected function init(_arg1:TweenLite, _arg2:Array, _arg3:Boolean):void{
var _local6:int;
var _local7:String;
var _local8:Object;
_target = _arg1.target;
var _local4:Object = ((_arg1.vars.isTV)==true) ? _arg1.vars.exposedVars : _arg1.vars;
if (_local4.orientToBezier == true){
_orientData = [["x", "y", "rotation", 0, 0.01]];
_orient = true;
} else {
if ((_local4.orientToBezier is Array)){
_orientData = _local4.orientToBezier;
_orient = true;
};
};
var _local5:Object = {};
_local6 = 0;
while (_local6 < _arg2.length) {
for (_local7 in _arg2[_local6]) {
if (_local5[_local7] == undefined){
_local5[_local7] = [_arg1.target[_local7]];
};
if (typeof(_arg2[_local6][_local7]) == "number"){
_local5[_local7].push(_arg2[_local6][_local7]);
} else {
_local5[_local7].push((_arg1.target[_local7] + Number(_arg2[_local6][_local7])));
};
};
_local6 = (_local6 + 1);
};
for (_local7 in _local5) {
this.overwriteProps[this.overwriteProps.length] = _local7;
if (_local4[_local7] != undefined){
if (typeof(_local4[_local7]) == "number"){
_local5[_local7].push(_local4[_local7]);
} else {
_local5[_local7].push((_arg1.target[_local7] + Number(_local4[_local7])));
};
_local8 = {};
_local8[_local7] = true;
_arg1.killVars(_local8, false);
delete _local4[_local7];
};
};
_beziers = parseBeziers(_local5, _arg3);
}
override public function killProps(_arg1:Object):void{
var _local2:String;
for (_local2 in _beziers) {
if ((_local2 in _arg1)){
delete _beziers[_local2];
};
};
super.killProps(_arg1);
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:String;
var _local4:Object;
var _local5:Number;
var _local6:int;
var _local7:Number;
var _local8:Object;
var _local9:Number;
var _local10:Number;
var _local11:Array;
var _local12:Number;
var _local13:Object;
var _local14:Boolean;
_changeFactor = _arg1;
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 = ((_local6 * _arg1) >> 0);
};
};
_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])))));
if (_local7 > 0){
_target[_local3] = ((_local7 + 0.5) >> 0);
} else {
_target[_local3] = ((_local7 - 0.5) >> 0);
};
} else {
_target[_local3] = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0])))));
};
};
};
if (_orient){
_local2 = _orientData.length;
_local8 = {};
while (_local2--) {
_local11 = _orientData[_local2];
_local8[_local11[0]] = _target[_local11[0]];
_local8[_local11[1]] = _target[_local11[1]];
};
_local13 = _target;
_local14 = this.round;
_target = _future;
this.round = false;
_orient = false;
_local2 = _orientData.length;
while (_local2--) {
_local11 = _orientData[_local2];
this.changeFactor = (_arg1 + ((_local11[4]) || (0.01)));
_local12 = ((_local11[3]) || (0));
_local9 = (_future[_local11[0]] - _local8[_local11[0]]);
_local10 = (_future[_local11[1]] - _local8[_local11[1]]);
_local13[_local11[2]] = ((Math.atan2(_local10, _local9) * _RAD2DEG) + _local12);
};
_target = _local13;
this.round = _local14;
_orient = true;
};
}
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 = {};
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 = (_local3 + 1);
};
} 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 = (_local3 + 1);
};
_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 com.greensock.plugins
Section 79
//BezierThroughPlugin (com.greensock.plugins.BezierThroughPlugin)
package com.greensock.plugins {
import com.greensock.*;
public class BezierThroughPlugin extends BezierPlugin {
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 com.greensock.plugins
Section 80
//BlurFilterPlugin (com.greensock.plugins.BlurFilterPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
import flash.filters.*;
public class BlurFilterPlugin extends FilterPlugin {
public static const API:Number = 1;
private static var _propNames:Array = ["blurX", "blurY", "quality"];
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))), _propNames);
return (true);
}
}
}//package com.greensock.plugins
Section 81
//ColorMatrixFilterPlugin (com.greensock.plugins.ColorMatrixFilterPlugin)
package com.greensock.plugins {
import com.greensock.*;
import flash.filters.*;
public class ColorMatrixFilterPlugin extends FilterPlugin {
protected var _matrix:Array;
protected var _matrixTween:EndArrayPlugin;
public static const API:Number = 1;
private static var _propNames:Array = [];
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 _lumR:Number = 0.212671;
protected static var _lumG:Number = 0.71516;
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{
_target = _arg1;
_type = ColorMatrixFilter;
var _local4:Object = _arg2;
initFilter({remove:_arg2.remove, index:_arg2.index, addFilter:_arg2.addFilter}, new ColorMatrixFilter(_idMatrix.slice()), _propNames);
_matrix = ColorMatrixFilter(_filter).matrix;
var _local5:Array = [];
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 colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{
if (isNaN(_arg2)){
return (_arg1);
};
if (isNaN(_arg3)){
_arg3 = 1;
};
var _local4:Number = (((_arg2 >> 16) & 0xFF) / 0xFF);
var _local5:Number = (((_arg2 >> 8) & 0xFF) / 0xFF);
var _local6:Number = ((_arg2 & 0xFF) / 0xFF);
var _local7:Number = (1 - _arg3);
var _local8:Array = [(_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 setThreshold(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
var _local3:Array = [(_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 setHue(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 * (Math.PI / 180));
var _local3:Number = Math.cos(_arg2);
var _local4:Number = Math.sin(_arg2);
var _local5:Array = [((_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 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 setSaturation(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
var _local3:Number = (1 - _arg2);
var _local4:Number = (_local3 * _lumR);
var _local5:Number = (_local3 * _lumG);
var _local6:Number = (_local3 * _lumB);
var _local7:Array = [(_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 setContrast(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 + 0.01);
var _local3:Array = [_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));
}
public static function applyMatrix(_arg1:Array, _arg2:Array):Array{
var _local6:int;
var _local7:int;
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (_arg2);
};
var _local3:Array = [];
var _local4:int;
var _local5:int;
_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 = (_local7 + 1);
};
_local4 = (_local4 + 5);
_local6 = (_local6 + 1);
};
return (_local3);
}
}
}//package com.greensock.plugins
Section 82
//ColorTransformPlugin (com.greensock.plugins.ColorTransformPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
import flash.geom.*;
public class ColorTransformPlugin extends TintPlugin {
public static const API:Number = 1;
public function ColorTransformPlugin(){
this.propName = "colorTransform";
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local5:String;
var _local6:Number;
if (!(_arg1 is DisplayObject)){
return (false);
};
var _local4:ColorTransform = _arg1.transform.colorTransform;
for (_local5 in _arg2) {
if ((((_local5 == "tint")) || ((_local5 == "color")))){
if (_arg2[_local5] != null){
_local4.color = int(_arg2[_local5]);
};
} else {
if ((((((_local5 == "tintAmount")) || ((_local5 == "exposure")))) || ((_local5 == "brightness")))){
} else {
_local4[_local5] = _arg2[_local5];
};
};
};
if (!isNaN(_arg2.tintAmount)){
_local6 = (_arg2.tintAmount / (1 - (((_local4.redMultiplier + _local4.greenMultiplier) + _local4.blueMultiplier) / 3)));
_local4.redOffset = (_local4.redOffset * _local6);
_local4.greenOffset = (_local4.greenOffset * _local6);
_local4.blueOffset = (_local4.blueOffset * _local6);
_local4.redMultiplier = (_local4.greenMultiplier = (_local4.blueMultiplier = (1 - _arg2.tintAmount)));
} else {
if (!isNaN(_arg2.exposure)){
_local4.redOffset = (_local4.greenOffset = (_local4.blueOffset = (0xFF * (_arg2.exposure - 1))));
_local4.redMultiplier = (_local4.greenMultiplier = (_local4.blueMultiplier = 1));
} else {
if (!isNaN(_arg2.brightness)){
_local4.redOffset = (_local4.greenOffset = (_local4.blueOffset = Math.max(0, ((_arg2.brightness - 1) * 0xFF))));
_local4.redMultiplier = (_local4.greenMultiplier = (_local4.blueMultiplier = (1 - Math.abs((_arg2.brightness - 1)))));
};
};
};
_ignoreAlpha = Boolean(((!((_arg3.vars.alpha == undefined))) && ((_arg2.alphaMultiplier == undefined))));
init((_arg1 as DisplayObject), _local4);
return (true);
}
}
}//package com.greensock.plugins
Section 83
//DropShadowFilterPlugin (com.greensock.plugins.DropShadowFilterPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
import flash.filters.*;
public class DropShadowFilterPlugin extends FilterPlugin {
public static const API:Number = 1;
private static var _propNames:Array = ["distance", "angle", "color", "alpha", "blurX", "blurY", "strength", "quality", "inner", "knockout", "hideObject"];
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), _propNames);
return (true);
}
}
}//package com.greensock.plugins
Section 84
//EndArrayPlugin (com.greensock.plugins.EndArrayPlugin)
package com.greensock.plugins {
import com.greensock.*;
public class EndArrayPlugin extends TweenPlugin {
protected var _a:Array;
protected var _info:Array;
public static const API:Number = 1;
public function EndArrayPlugin(){
_info = [];
super();
this.propName = "endArray";
this.overwriteProps = ["endArray"];
}
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);
}
public function init(_arg1:Array, _arg2:Array):void{
_a = _arg1;
var _local3:int = _arg2.length;
while (_local3--) {
if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){
_info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3]));
};
};
}
override public function set changeFactor(_arg1:Number):void{
var _local3:ArrayTweenInfo;
var _local4:Number;
var _local2:int = _info.length;
if (this.round){
while (_local2--) {
_local3 = _info[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
if (_local4 > 0){
_a[_local3.index] = ((_local4 + 0.5) >> 0);
} else {
_a[_local3.index] = ((_local4 - 0.5) >> 0);
};
};
} else {
while (_local2--) {
_local3 = _info[_local2];
_a[_local3.index] = (_local3.start + (_local3.change * _arg1));
};
};
}
}
}//package com.greensock.plugins
class ArrayTweenInfo {
public var index:uint;
public var start:Number;
public var change:Number;
private function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){
this.index = _arg1;
this.start = _arg2;
this.change = _arg3;
}
}
Section 85
//FilterPlugin (com.greensock.plugins.FilterPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.core.*;
import com.greensock.*;
import flash.filters.*;
public class FilterPlugin extends TweenPlugin {
protected var _target:Object;
protected var _type:Class;
protected var _filter:BitmapFilter;
protected var _index:int;
protected var _remove:Boolean;
public static const VERSION:Number = 2.03;
public static const API:Number = 1;
protected function initFilter(_arg1:Object, _arg2:BitmapFilter, _arg3:Array):void{
var _local5:String;
var _local6:int;
var _local7:HexColorsPlugin;
var _local4:Array = _target.filters;
var _local8:Object = ((_arg1 is BitmapFilter)) ? {} : _arg1;
_index = -1;
if (_local8.index != null){
_index = _local8.index;
} else {
_local6 = _local4.length;
while (_local6--) {
if ((_local4[_local6] is _type)){
_index = _local6;
break;
};
};
};
if ((((((_index == -1)) || ((_local4[_index] == null)))) || ((_local8.addFilter == true)))){
_index = ((_local8.index)!=null) ? _local8.index : _local4.length;
_local4[_index] = _arg2;
_target.filters = _local4;
};
_filter = _local4[_index];
if (_local8.remove == true){
_remove = true;
this.onComplete = onCompleteTween;
};
_local6 = _arg3.length;
while (_local6--) {
_local5 = _arg3[_local6];
if ((((_local5 in _arg1)) && (!((_filter[_local5] == _arg1[_local5]))))){
if ((((((_local5 == "color")) || ((_local5 == "highlightColor")))) || ((_local5 == "shadowColor")))){
_local7 = new HexColorsPlugin();
_local7.initColor(_filter, _local5, _filter[_local5], _arg1[_local5]);
_tweens[_tweens.length] = new PropTween(_local7, "changeFactor", 0, 1, _local5, false);
} else {
if ((((((((_local5 == "quality")) || ((_local5 == "inner")))) || ((_local5 == "knockout")))) || ((_local5 == "hideObject")))){
_filter[_local5] = _arg1[_local5];
} else {
addTween(_filter, _local5, _filter[_local5], _arg1[_local5], _local5);
};
};
};
};
}
public function onCompleteTween():void{
var _local1:Array;
var _local2:int;
if (_remove){
_local1 = _target.filters;
if (!(_local1[_index] is _type)){
_local2 = _local1.length;
while (_local2--) {
if ((_local1[_local2] is _type)){
_local1.splice(_local2, 1);
break;
};
};
} else {
_local1.splice(_index, 1);
};
_target.filters = _local1;
};
}
override public function set changeFactor(_arg1:Number):void{
var _local3:PropTween;
var _local2:int = _tweens.length;
var _local4:Array = _target.filters;
while (_local2--) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
};
if (!(_local4[_index] is _type)){
_local2 = (_index = _local4.length);
while (_local2--) {
if ((_local4[_local2] is _type)){
_index = _local2;
break;
};
};
};
_local4[_index] = _filter;
_target.filters = _local4;
}
}
}//package com.greensock.plugins
Section 86
//FrameLabelPlugin (com.greensock.plugins.FrameLabelPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
public class FrameLabelPlugin extends FramePlugin {
public static const API:Number = 1;
public function FrameLabelPlugin(){
this.propName = "frameLabel";
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if ((!(_arg3.target) is MovieClip)){
return (false);
};
_target = (_arg1 as MovieClip);
this.frame = _target.currentFrame;
var _local4:Array = _target.currentLabels;
var _local5:String = _arg2;
var _local6:int = _target.currentFrame;
var _local7:int = _local4.length;
while (_local7--) {
if (_local4[_local7].name == _local5){
_local6 = _local4[_local7].frame;
break;
};
};
if (this.frame != _local6){
addTween(this, "frame", this.frame, _local6, "frame");
};
return (true);
}
}
}//package com.greensock.plugins
Section 87
//FramePlugin (com.greensock.plugins.FramePlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
public class FramePlugin extends TweenPlugin {
public var frame:int;
protected var _target:MovieClip;
public static const API:Number = 1;
public function FramePlugin(){
this.propName = "frame";
this.overwriteProps = ["frame", "frameLabel"];
this.round = true;
}
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);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.gotoAndStop(this.frame);
}
}
}//package com.greensock.plugins
Section 88
//GlowFilterPlugin (com.greensock.plugins.GlowFilterPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
import flash.filters.*;
public class GlowFilterPlugin extends FilterPlugin {
public static const API:Number = 1;
private static var _propNames:Array = ["color", "alpha", "blurX", "blurY", "strength", "quality", "inner", "knockout"];
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), _propNames);
return (true);
}
}
}//package com.greensock.plugins
Section 89
//HexColorsPlugin (com.greensock.plugins.HexColorsPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
public class HexColorsPlugin extends TweenPlugin {
protected var _colors:Array;
public static const API:Number = 1;
public function HexColorsPlugin(){
this.propName = "hexColors";
this.overwriteProps = [];
_colors = [];
}
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);
}
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;
};
}
override public function killProps(_arg1:Object):void{
var _local2:int = (_colors.length - 1);
while (_local2 > -1) {
if (_arg1[_colors[_local2][1]] != undefined){
_colors.splice(_local2, 1);
};
_local2--;
};
super.killProps(_arg1);
}
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--;
};
}
}
}//package com.greensock.plugins
Section 90
//RemoveTintPlugin (com.greensock.plugins.RemoveTintPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
public class RemoveTintPlugin extends TintPlugin {
public static const API:Number = 1;
public function RemoveTintPlugin(){
this.propName = "removeTint";
}
}
}//package com.greensock.plugins
Section 91
//RoundPropsPlugin (com.greensock.plugins.RoundPropsPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
public class RoundPropsPlugin extends TweenPlugin {
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 com.greensock.plugins
Section 92
//ShortRotationPlugin (com.greensock.plugins.ShortRotationPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
public class ShortRotationPlugin extends TweenPlugin {
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"){
return (false);
};
for (_local4 in _arg2) {
initRotation(_arg1, _local4, _arg1[_local4], ((typeof(_arg2[_local4]))=="number") ? Number(_arg2[_local4]) : (_arg1[_local4] + Number(_arg2[_local4])));
};
return (true);
}
public function initRotation(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{
var _local5:Number = ((_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 com.greensock.plugins
Section 93
//TintPlugin (com.greensock.plugins.TintPlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.core.*;
import com.greensock.*;
import flash.geom.*;
public class TintPlugin extends TweenPlugin {
protected var _transform:Transform;
protected var _ct:ColorTransform;
protected var _ignoreAlpha:Boolean;
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 onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg1 is DisplayObject)){
return (false);
};
var _local4:ColorTransform = new ColorTransform();
if (((!((_arg2 == null))) && (!((_arg3.vars.removeTint == true))))){
_local4.color = uint(_arg2);
};
_ignoreAlpha = true;
init((_arg1 as DisplayObject), _local4);
return (true);
}
public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{
var _local4:String;
_transform = _arg1.transform;
_ct = _transform.colorTransform;
var _local3:int = _props.length;
while (_local3--) {
_local4 = _props[_local3];
if (_ct[_local4] != _arg2[_local4]){
_tweens[_tweens.length] = new PropTween(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false);
};
};
}
override public function set changeFactor(_arg1:Number):void{
var _local2:ColorTransform;
updateTweens(_arg1);
if (_ignoreAlpha){
_local2 = _transform.colorTransform;
_ct.alphaMultiplier = _local2.alphaMultiplier;
_ct.alphaOffset = _local2.alphaOffset;
};
_transform.colorTransform = _ct;
}
}
}//package com.greensock.plugins
Section 94
//TweenPlugin (com.greensock.plugins.TweenPlugin)
package com.greensock.plugins {
import com.greensock.core.*;
import com.greensock.*;
public class TweenPlugin {
public var propName:String;
public var overwriteProps:Array;
public var round:Boolean;
public var priority:int;// = 0
public var activeDisable:Boolean;
public var onComplete:Function;
public var onEnable:Function;
public var onDisable:Function;
protected var _tweens:Array;
protected var _changeFactor:Number;// = 0
public static const VERSION:Number = 1.32;
public static const API:Number = 1;
public function TweenPlugin(){
_tweens = [];
super();
}
public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName);
return (true);
}
protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{
var _local6:Number;
if (_arg4 != null){
_local6 = ((typeof(_arg4))=="number") ? (Number(_arg4) - _arg3) : Number(_arg4);
if (_local6 != 0){
_tweens[_tweens.length] = new PropTween(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false);
};
};
}
protected function updateTweens(_arg1:Number):void{
var _local3:PropTween;
var _local4:Number;
var _local2:int = _tweens.length;
if (this.round){
while (--_local2 > -1) {
_local3 = _tweens[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
if (_local4 > 0){
_local3.target[_local3.property] = ((_local4 + 0.5) >> 0);
} else {
_local3.target[_local3.property] = ((_local4 - 0.5) >> 0);
};
};
} else {
while (--_local2 > -1) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
};
};
}
public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_changeFactor = _arg1;
}
public function get changeFactor():Number{
return (_changeFactor);
}
public function killProps(_arg1:Object):void{
var _local2:int = this.overwriteProps.length;
while (--_local2 > -1) {
if ((this.overwriteProps[_local2] in _arg1)){
this.overwriteProps.splice(_local2, 1);
};
};
_local2 = _tweens.length;
while (--_local2 > -1) {
if ((PropTween(_tweens[_local2]).name in _arg1)){
_tweens.splice(_local2, 1);
};
};
}
private static function onTweenEvent(_arg1:String, _arg2:TweenLite):Boolean{
var _local4:Boolean;
var _local5:Array;
var _local6:int;
var _local3:PropTween = _arg2.cachedPT1;
if (_arg1 == "onInit"){
_local5 = [];
while (_local3) {
_local5[_local5.length] = _local3;
_local3 = _local3.nextNode;
};
_local5.sortOn("priority", (Array.NUMERIC | Array.DESCENDING));
_local6 = _local5.length;
while (_local6--) {
PropTween(_local5[_local6]).nextNode = _local5[(_local6 + 1)];
PropTween(_local5[_local6]).prevNode = _local5[(_local6 - 1)];
};
_arg2.cachedPT1 = _local5[0];
} else {
while (_local3) {
if (((_local3.isPlugin) && (_local3.target[_arg1]))){
if (_local3.target.activeDisable){
_local4 = true;
};
var _local7 = _local3.target;
_local7[_arg1]();
};
_local3 = _local3.nextNode;
};
};
return (_local4);
}
public static function activate(_arg1:Array):Boolean{
var _local3:Object;
TweenLite.onPluginEvent = TweenPlugin.onTweenEvent;
var _local2:int = _arg1.length;
while (_local2--) {
if (_arg1[_local2].hasOwnProperty("API")){
_local3 = new ((_arg1[_local2] as Class));
TweenLite.plugins[_local3.propName] = _arg1[_local2];
};
};
return (true);
}
}
}//package com.greensock.plugins
Section 95
//VisiblePlugin (com.greensock.plugins.VisiblePlugin)
package com.greensock.plugins {
import flash.display.*;
import com.greensock.*;
public class VisiblePlugin extends TweenPlugin {
protected var _target:Object;
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _initVal:Boolean;
public static const API:Number = 1;
public function VisiblePlugin(){
this.propName = "visible";
this.overwriteProps = ["visible"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_initVal = _target.visible;
_visible = Boolean(_arg2);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
if ((((_arg1 == 1)) && ((((_tween.cachedDuration == _tween.cachedTime)) || ((_tween.cachedTime == 0)))))){
_target.visible = _visible;
} else {
_target.visible = _initVal;
};
}
}
}//package com.greensock.plugins
Section 96
//VolumePlugin (com.greensock.plugins.VolumePlugin)
package com.greensock.plugins {
import com.greensock.*;
import flash.media.*;
public class VolumePlugin extends TweenPlugin {
protected var _target:Object;
protected var _st:SoundTransform;
public static const API:Number = 1;
public function VolumePlugin(){
this.propName = "volume";
this.overwriteProps = ["volume"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((((isNaN(_arg2)) || (_arg1.hasOwnProperty("volume")))) || (!(_arg1.hasOwnProperty("soundTransform"))))){
return (false);
};
_target = _arg1;
_st = _target.soundTransform;
addTween(_st, "volume", _st.volume, _arg2, "volume");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
}
}//package com.greensock.plugins
Section 97
//OverwriteManager (com.greensock.OverwriteManager)
package com.greensock {
import com.greensock.core.*;
public class OverwriteManager {
public static const version:Number = 6.03;
public static const NONE:int = 0;
public static const ALL_IMMEDIATE:int = 1;
public static const AUTO:int = 2;
public static const CONCURRENT:int = 3;
public static const ALL_ONSTART:int = 4;
public static const PREEXISTING:int = 5;
public static var mode:int;
public static var enabled:Boolean;
public static function init(_arg1:int=2):int{
if (TweenLite.version < 11.1){
throw (new Error("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);
}
public static function manageOverwrites(_arg1:TweenLite, _arg2:Object, _arg3:Array, _arg4:uint):Boolean{
var _local5:int;
var _local6:Boolean;
var _local7:TweenLite;
var _local13:uint;
var _local14:Number;
var _local15:Number;
var _local16:TweenCore;
var _local17:Number;
var _local18:SimpleTimeline;
if (_arg4 >= 4){
_local13 = _arg3.length;
_local5 = 0;
while (_local5 < _local13) {
_local7 = _arg3[_local5];
if (_local7 != _arg1){
if (_local7.setEnabled(false, false)){
_local6 = true;
};
} else {
if (_arg4 == 5){
break;
};
};
_local5++;
};
return (_local6);
};
var _local8:Number = (_arg1.cachedStartTime + 1E-10);
var _local9:Array = [];
var _local10:Array = [];
var _local11:uint;
var _local12:uint;
_local5 = _arg3.length;
while (--_local5 > -1) {
_local7 = _arg3[_local5];
if ((((_local7 == _arg1)) || (_local7.gc))){
} else {
if (_local7.timeline != _arg1.timeline){
if (!getGlobalPaused(_local7)){
var _temp1 = _local11;
_local11 = (_local11 + 1);
var _local19 = _temp1;
_local10[_local19] = _local7;
};
} else {
if ((((((_local7.cachedStartTime <= _local8)) && ((((_local7.cachedStartTime + _local7.totalDuration) + 1E-10) > _local8)))) && (!(getGlobalPaused(_local7))))){
var _temp2 = _local12;
_local12 = (_local12 + 1);
_local19 = _temp2;
_local9[_local19] = _local7;
};
};
};
};
if (_local11 != 0){
_local14 = _arg1.cachedTimeScale;
_local15 = _local8;
_local18 = _arg1.timeline;
while (_local18) {
_local14 = (_local14 * _local18.cachedTimeScale);
_local15 = (_local15 + _local18.cachedStartTime);
_local18 = _local18.timeline;
};
_local8 = (_local14 * _local15);
_local5 = _local11;
while (--_local5 > -1) {
_local16 = _local10[_local5];
_local14 = _local16.cachedTimeScale;
_local15 = _local16.cachedStartTime;
_local18 = _local16.timeline;
while (_local18) {
_local14 = (_local14 * _local18.cachedTimeScale);
_local15 = (_local15 + _local18.cachedStartTime);
_local18 = _local18.timeline;
};
_local17 = (_local14 * _local15);
if ((((_local17 <= _local8)) && ((((((_local17 + (_local16.totalDuration * _local14)) + 1E-10) > _local8)) || ((_local16.cachedDuration == 0)))))){
var _temp3 = _local12;
_local12 = (_local12 + 1);
_local19 = _temp3;
_local9[_local19] = _local16;
};
};
};
if (_local12 == 0){
return (_local6);
};
_local5 = _local12;
if (_arg4 == 2){
while (--_local5 > -1) {
_local7 = _local9[_local5];
if (_local7.killVars(_arg2)){
_local6 = true;
};
if ((((_local7.cachedPT1 == null)) && (_local7.initted))){
_local7.setEnabled(false, false);
};
};
} else {
while (--_local5 > -1) {
if (TweenLite(_local9[_local5]).setEnabled(false, false)){
_local6 = true;
};
};
};
return (_local6);
}
public static function getGlobalPaused(_arg1:TweenCore):Boolean{
var _local2:Boolean;
while (_arg1) {
if (_arg1.cachedPaused){
_local2 = true;
break;
};
_arg1 = _arg1.timeline;
};
return (_local2);
}
}
}//package com.greensock
Section 98
//TweenLite (com.greensock.TweenLite)
package com.greensock {
import flash.display.*;
import flash.events.*;
import com.greensock.core.*;
import flash.utils.*;
import com.greensock.plugins.*;
public class TweenLite extends TweenCore {
public var target:Object;
public var propTweenLookup:Object;
public var ratio:Number;// = 0
public var cachedPT1:PropTween;
protected var _ease:Function;
protected var _overwrite:int;
protected var _overwrittenProps:Object;
protected var _hasPlugins:Boolean;
protected var _notifyPluginsOfEnabled:Boolean;
public static const version:Number = 11.39;
public static var plugins:Object = {};
public static var fastEaseLookup:Dictionary = new Dictionary(false);
public static var onPluginEvent:Function;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var defaultEase:Function = TweenLite.easeOut;
public static var overwriteManager:Object;
public static var rootFrame:Number;
public static var rootTimeline:SimpleTimeline;
public static var rootFramesTimeline:SimpleTimeline;
public static var masterList:Dictionary = new Dictionary(false);
private static var _shape:Shape = new Shape();
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, onInit:1, onInitParams:1, onReverseComplete:1, onReverseCompleteParams:1, onRepeat:1, onRepeatParams:1, proxiedEase:1, easeParams:1, yoyo:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, onReverseCompleteListener:1, onRepeatListener:1, orientToBezier:1, timeScale:1, immediateRender:1, repeat:1, repeatDelay:1, timeline:1, data:1, paused:1};
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local5:TweenLite;
super(_arg2, _arg3);
this.target = _arg1;
if ((((this.target is TweenCore)) && (this.vars.timeScale))){
this.cachedTimeScale = 1;
};
propTweenLookup = {};
_ease = defaultEase;
_overwrite = (((!((Number(_arg3.overwrite) > -1))) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
var _local4:Array = masterList[_arg1];
if (!_local4){
masterList[_arg1] = [this];
} else {
if (_overwrite == 1){
for each (_local5 in _local4) {
if (!_local5.gc){
_local5.setEnabled(false, false);
};
};
masterList[_arg1] = [this];
} else {
_local4[_local4.length] = this;
};
};
if (((this.active) || (this.vars.immediateRender))){
renderTime(0, false, true);
};
}
protected function init():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:Boolean;
var _local5:Array;
var _local6:PropTween;
if (this.vars.onInit){
this.vars.onInit.apply(null, this.vars.onInitParams);
};
if (typeof(this.vars.ease) == "function"){
_ease = this.vars.ease;
};
if (this.vars.easeParams){
this.vars.proxiedEase = _ease;
_ease = easeProxy;
};
this.cachedPT1 = null;
this.propTweenLookup = {};
for (_local1 in this.vars) {
if ((((_local1 in _reservedProps)) && (!((((_local1 == "timeScale")) && ((this.target is TweenCore))))))){
} else {
if ((((_local1 in plugins)) && (new ((plugins[_local1] as Class)).onInitTween(this.target, this.vars[_local1], this)))){
this.cachedPT1 = new PropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true, this.cachedPT1);
if (this.cachedPT1.name == "_MULTIPLE_"){
_local2 = _local3.overwriteProps.length;
while (--_local2 > -1) {
this.propTweenLookup[_local3.overwriteProps[_local2]] = this.cachedPT1;
};
} else {
this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1;
};
if (_local3.priority){
this.cachedPT1.priority = _local3.priority;
_local4 = true;
};
if (((_local3.onDisable) || (_local3.onEnable))){
_notifyPluginsOfEnabled = true;
};
_hasPlugins = true;
} else {
this.cachedPT1 = new PropTween(this.target, _local1, Number(this.target[_local1]), ((typeof(this.vars[_local1]))=="number") ? (Number(this.vars[_local1]) - this.target[_local1]) : Number(this.vars[_local1]), _local1, false, this.cachedPT1);
this.propTweenLookup[_local1] = this.cachedPT1;
};
};
};
if (_local4){
onPluginEvent("onInit", this);
};
if (this.vars.runBackwards){
_local6 = this.cachedPT1;
while (_local6) {
_local6.start = (_local6.start + _local6.change);
_local6.change = -(_local6.change);
_local6 = _local6.nextNode;
};
};
_hasUpdate = Boolean(!((this.vars.onUpdate == null)));
if (_overwrittenProps){
killVars(_overwrittenProps);
if (this.cachedPT1 == null){
this.setEnabled(false, false);
};
};
if ((((((((_overwrite > 1)) && (this.cachedPT1))) && (masterList[this.target]))) && ((_local5.length > 1)))){
if (overwriteManager.manageOverwrites(this, this.propTweenLookup, _local5, _overwrite)){
init();
};
};
this.initted = true;
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:Boolean;
var _local5:Number = this.cachedTime;
if (_arg1 >= this.cachedDuration){
this.cachedTotalTime = (this.cachedTime = this.cachedDuration);
this.ratio = 1;
_local4 = true;
if (this.cachedDuration == 0){
if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){
_arg3 = true;
};
_rawPrevTime = _arg1;
};
} else {
if (_arg1 <= 0){
this.cachedTotalTime = (this.cachedTime = (this.ratio = 0));
if (_arg1 < 0){
this.active = false;
if (this.cachedDuration == 0){
if (_rawPrevTime > 0){
_arg3 = true;
_local4 = true;
};
_rawPrevTime = _arg1;
};
};
if (((this.cachedReversed) && (!((_local5 == 0))))){
_local4 = true;
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
this.ratio = _ease(_arg1, 0, 1, this.cachedDuration);
};
};
if ((((this.cachedTime == _local5)) && (!(_arg3)))){
return;
};
if (!this.initted){
init();
if (((!(_local4)) && (this.cachedTime))){
this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration);
};
};
if (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
if ((((((((_local5 == 0)) && (this.vars.onStart))) && (!((this.cachedTime == 0))))) && (!(_arg2)))){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
var _local6:PropTween = this.cachedPT1;
while (_local6) {
_local6.target[_local6.property] = (_local6.start + (this.ratio * _local6.change));
_local6 = _local6.nextNode;
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local4){
if (((_hasPlugins) && (this.cachedPT1))){
onPluginEvent("onComplete", this);
};
complete(true, _arg2);
};
}
public function killVars(_arg1:Object, _arg2:Boolean=true):Boolean{
var _local3:String;
var _local4:PropTween;
var _local5:Boolean;
if (_overwrittenProps == null){
_overwrittenProps = {};
};
for (_local3 in _arg1) {
if ((_local3 in propTweenLookup)){
_local4 = propTweenLookup[_local3];
if (((_local4.isPlugin) && ((_local4.name == "_MULTIPLE_")))){
_local4.target.killProps(_arg1);
if (_local4.target.overwriteProps.length == 0){
_local4.name = "";
};
};
if (_local4.name != "_MULTIPLE_"){
if (_local4.nextNode){
_local4.nextNode.prevNode = _local4.prevNode;
};
if (_local4.prevNode){
_local4.prevNode.nextNode = _local4.nextNode;
} else {
if (this.cachedPT1 == _local4){
this.cachedPT1 = _local4.nextNode;
};
};
if (((_local4.isPlugin) && (_local4.target.onDisable))){
_local4.target.onDisable();
if (_local4.target.activeDisable){
_local5 = true;
};
};
delete propTweenLookup[_local3];
};
};
if (((_arg2) && (!((_arg1 == _overwrittenProps))))){
_overwrittenProps[_local3] = 1;
};
};
return (_local5);
}
override public function invalidate():void{
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
onPluginEvent("onDisable", this);
};
this.cachedPT1 = null;
_overwrittenProps = null;
_hasUpdate = (this.initted = (this.active = (_notifyPluginsOfEnabled = false)));
this.propTweenLookup = {};
}
override public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
var _local3:Array;
if (_arg1){
_local3 = TweenLite.masterList[this.target];
if (!_local3){
TweenLite.masterList[this.target] = [this];
} else {
_local3[_local3.length] = this;
};
};
super.setEnabled(_arg1, _arg2);
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
return (onPluginEvent((_arg1) ? "onEnable" : "onDisable", this));
};
return (false);
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public static function initClass():void{
rootFrame = 0;
rootTimeline = new SimpleTimeline(null);
rootFramesTimeline = new SimpleTimeline(null);
rootTimeline.cachedStartTime = (getTimer() * 0.001);
rootFramesTimeline.cachedStartTime = rootFrame;
rootTimeline.autoRemoveChildren = true;
rootFramesTimeline.autoRemoveChildren = true;
_shape.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0}));
}
protected static function updateAll(_arg1:Event=null):void{
var _local2:Dictionary;
var _local3:Object;
var _local4:Array;
var _local5:int;
rootTimeline.renderTime((((getTimer() * 0.001) - rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale), false, false);
rootFrame = (rootFrame + 1);
rootFramesTimeline.renderTime(((rootFrame - rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale), false, false);
if (!(rootFrame % 60)){
_local2 = masterList;
for (_local3 in _local2) {
_local4 = _local2[_local3];
_local5 = _local4.length;
while (--_local5 > -1) {
if (TweenLite(_local4[_local5]).gc){
_local4.splice(_local5, 1);
};
};
if (_local4.length == 0){
delete _local2[_local3];
};
};
};
}
public static function killTweensOf(_arg1:Object, _arg2:Boolean=false, _arg3:Object=null):void{
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
if ((_arg1 in masterList)){
_local4 = masterList[_arg1];
_local5 = _local4.length;
while (--_local5 > -1) {
_local6 = _local4[_local5];
if (!_local6.gc){
if (_arg2){
_local6.complete(false, false);
};
if (_arg3 != null){
_local6.killVars(_arg3);
};
if ((((_arg3 == null)) || ((((_local6.cachedPT1 == null)) && (_local6.initted))))){
_local6.setEnabled(false, false);
};
};
};
if (_arg3 == null){
delete masterList[_arg1];
};
};
}
protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (1 - (_arg1 / _arg4));
return ((1 - (_arg1 * _arg1)));
}
}
}//package com.greensock
Section 99
//TweenMax (com.greensock.TweenMax)
package com.greensock {
import flash.display.*;
import flash.events.*;
import com.greensock.core.*;
import flash.utils.*;
import com.greensock.plugins.*;
import com.greensock.events.*;
public class TweenMax extends TweenLite implements IEventDispatcher {
protected var _dispatcher:EventDispatcher;
protected var _hasUpdateListener:Boolean;
protected var _repeat:int;// = 0
protected var _repeatDelay:Number;// = 0
protected var _cyclesComplete:int;// = 0
protected var _easePower:int;
protected var _easeType:int;
public var yoyo:Boolean;
public static const version:Number = 11.391;
private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init(2);
;
public static var killTweensOf:Function = TweenLite.killTweensOf;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){
super(_arg1, _arg2, _arg3);
if (TweenLite.version < 11.2){
throw (new Error("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."));
};
this.yoyo = Boolean(this.vars.yoyo);
_repeat = uint(this.vars.repeat);
_repeatDelay = (this.vars.repeatDelay) ? Number(this.vars.repeatDelay) : 0;
this.cacheIsDirty = true;
if (((((((((((this.vars.onCompleteListener) || (this.vars.onInitListener))) || (this.vars.onUpdateListener))) || (this.vars.onStartListener))) || (this.vars.onRepeatListener))) || (this.vars.onReverseCompleteListener))){
initDispatcher();
if ((((_arg2 == 0)) && ((_delay == 0)))){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE));
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE));
};
};
if (((this.vars.timeScale) && (!((this.target is TweenCore))))){
this.cachedTimeScale = this.vars.timeScale;
};
}
override protected function init():void{
var _local1:TweenMax;
var _local2:String;
var _local3:String;
var _local4:Array;
var _local5:Object;
var _local6:PropTween;
var _local7:PropTween;
var _local8:int;
if (this.vars.startAt){
this.vars.startAt.overwrite = 0;
this.vars.startAt.immediateRender = true;
_local1 = new TweenMax(this.target, 0, this.vars.startAt);
};
if (_dispatcher){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.INIT));
};
super.init();
if ((_ease in fastEaseLookup)){
_easeType = fastEaseLookup[_ease][0];
_easePower = fastEaseLookup[_ease][1];
};
if (((!((this.vars.roundProps == null))) && (("roundProps" in TweenLite.plugins)))){
_local4 = this.vars.roundProps;
_local8 = _local4.length;
while (--_local8 > -1) {
_local2 = _local4[_local8];
_local7 = this.cachedPT1;
while (_local7) {
if (_local7.name == _local2){
if (_local7.isPlugin){
_local7.target.round = true;
} else {
if (_local5 == null){
_local5 = new TweenLite.plugins.roundProps();
_local5.add(_local7.target, _local2, _local7.start, _local7.change);
_hasPlugins = true;
_local6 = insertPropTween(_local5, "changeFactor", 0, 1, "_MULTIPLE_", true, this.cachedPT1);
this.cachedPT1 = _local6;
} else {
_local5.add(_local7.target, _local2, _local7.start, _local7.change);
};
this.removePropTween(_local7);
this.propTweenLookup[_local2] = _local6;
};
} else {
if (((((_local7.isPlugin) && ((_local7.name == "_MULTIPLE_")))) && (!(_local7.target.round)))){
_local3 = ((" " + _local7.target.overwriteProps.join(" ")) + " ");
if (_local3.indexOf(((" " + _local2) + " ")) != -1){
_local7.target.round = true;
};
};
};
_local7 = _local7.nextNode;
};
};
};
}
protected function insertPropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String, _arg6:Boolean, _arg7:PropTween):PropTween{
var _local9:Array;
var _local10:int;
var _local8:PropTween = new PropTween(_arg1, _arg2, _arg3, ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4), _arg5, _arg6, _arg7);
if (((_arg6) && ((_arg5 == "_MULTIPLE_")))){
_local9 = _arg1.overwriteProps;
_local10 = _local9.length;
while (--_local10 > -1) {
this.propTweenLookup[_local9[_local10]] = _local8;
};
} else {
this.propTweenLookup[_arg5] = _local8;
};
return (_local8);
}
protected function removePropTween(_arg1:PropTween):Boolean{
if (_arg1.nextNode){
_arg1.nextNode.prevNode = _arg1.prevNode;
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (this.cachedPT1 == _arg1){
this.cachedPT1 = _arg1.nextNode;
};
};
if (((_arg1.isPlugin) && (_arg1.target.onDisable))){
_arg1.target.onDisable();
if (_arg1.target.activeDisable){
return (true);
};
};
return (false);
}
override public function invalidate():void{
this.yoyo = Boolean((this.vars.yoyo == true));
_repeat = (this.vars.repeat) ? Number(this.vars.repeat) : 0;
_repeatDelay = (this.vars.repeatDelay) ? Number(this.vars.repeatDelay) : 0;
_hasUpdateListener = false;
if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){
initDispatcher();
};
setDirtyCache(true);
super.invalidate();
}
public function updateTo(_arg1:Object, _arg2:Boolean=false):void{
var _local4:String;
var _local5:Number;
var _local6:PropTween;
var _local7:Number;
var _local3:Number = this.ratio;
if (((((_arg2) && (!((this.timeline == null))))) && ((this.cachedStartTime < this.timeline.cachedTime)))){
this.cachedStartTime = this.timeline.cachedTime;
this.setDirtyCache(false);
if (this.gc){
this.setEnabled(true, false);
} else {
this.timeline.addChild(this);
};
};
for (_local4 in _arg1) {
this.vars[_local4] = _arg1[_local4];
};
if (this.initted){
this.initted = false;
if (!_arg2){
init();
if (((((!(_arg2)) && ((this.cachedTime > 0)))) && ((this.cachedTime < this.cachedDuration)))){
_local5 = (1 / (1 - _local3));
_local6 = this.cachedPT1;
while (_local6) {
_local7 = (_local6.start + _local6.change);
_local6.change = (_local6.change * _local5);
_local6.start = (_local7 - _local6.change);
_local6 = _local6.nextNode;
};
};
};
};
}
public function setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{
var _local4:Object = {};
_local4[_arg1] = _arg2;
updateTo(_local4, !(_arg3));
}
public function killProperties(_arg1:Array):void{
var _local2:Object = {};
var _local3:int = _arg1.length;
while (--_local3 > -1) {
_local2[_arg1[_local3]] = true;
};
killVars(_local2);
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local6:Boolean;
var _local7:Boolean;
var _local8:Boolean;
var _local10:Number;
var _local11:int;
var _local12:int;
var _local13:Number;
var _local4:Number = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration;
var _local5:Number = this.cachedTime;
if (_arg1 >= _local4){
this.cachedTotalTime = _local4;
this.cachedTime = this.cachedDuration;
this.ratio = 1;
_local6 = true;
if (this.cachedDuration == 0){
if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){
_arg3 = true;
};
_rawPrevTime = _arg1;
};
} else {
if (_arg1 <= 0){
if (_arg1 < 0){
this.active = false;
if (this.cachedDuration == 0){
if (_rawPrevTime > 0){
_arg3 = true;
_local6 = true;
};
_rawPrevTime = _arg1;
};
};
this.cachedTotalTime = (this.cachedTime = (this.ratio = 0));
if (((this.cachedReversed) && (!((_local5 == 0))))){
_local6 = true;
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
_local8 = true;
};
};
if (_repeat != 0){
_local10 = (this.cachedDuration + _repeatDelay);
if (_local6){
if (((this.yoyo) && ((_repeat % 2)))){
this.cachedTime = (this.ratio = 0);
};
} else {
if (_arg1 > 0){
_local11 = _cyclesComplete;
_cyclesComplete = ((this.cachedTotalTime / _local10) >> 0);
if (_cyclesComplete == (this.cachedTotalTime / _local10)){
_cyclesComplete--;
};
if (_local11 != _cyclesComplete){
_local7 = true;
};
this.cachedTime = (((this.cachedTotalTime / _local10) - _cyclesComplete) * _local10);
if (((this.yoyo) && ((_cyclesComplete % 2)))){
this.cachedTime = (this.cachedDuration - this.cachedTime);
} else {
if (this.cachedTime >= this.cachedDuration){
this.cachedTime = this.cachedDuration;
this.ratio = 1;
_local8 = false;
};
};
if (this.cachedTime <= 0){
this.cachedTime = (this.ratio = 0);
_local8 = false;
};
};
};
};
if ((((_local5 == this.cachedTime)) && (!(_arg3)))){
return;
};
if (!this.initted){
init();
};
if (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
if (_local8){
if (_easeType){
_local12 = _easePower;
_local13 = (this.cachedTime / this.cachedDuration);
if (_easeType == 2){
_local13 = (1 - _local13);
this.ratio = _local13;
while (--_local12 > -1) {
this.ratio = (_local13 * this.ratio);
};
this.ratio = (1 - this.ratio);
} else {
if (_easeType == 1){
this.ratio = _local13;
while (--_local12 > -1) {
this.ratio = (_local13 * this.ratio);
};
} else {
if (_local13 < 0.5){
_local13 = (_local13 * 2);
this.ratio = _local13;
while (--_local12 > -1) {
this.ratio = (_local13 * this.ratio);
};
this.ratio = (this.ratio * 0.5);
} else {
_local13 = ((1 - _local13) * 2);
this.ratio = _local13;
while (--_local12 > -1) {
this.ratio = (_local13 * this.ratio);
};
this.ratio = (1 - (0.5 * this.ratio));
};
};
};
} else {
this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration);
};
};
if ((((((_local5 == 0)) && (!((this.cachedTotalTime == 0))))) && (!(_arg2)))){
if (this.vars.onStart){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (_dispatcher){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START));
};
};
var _local9:PropTween = this.cachedPT1;
while (_local9) {
_local9.target[_local9.property] = (_local9.start + (this.ratio * _local9.change));
_local9 = _local9.nextNode;
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (((_hasUpdateListener) && (!(_arg2)))){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE));
};
if (_local6){
if (((_hasPlugins) && (this.cachedPT1))){
onPluginEvent("onComplete", this);
};
complete(true, _arg2);
} else {
if (((_local7) && (!(_arg2)))){
if (this.vars.onRepeat){
this.vars.onRepeat.apply(null, this.vars.onRepeatParams);
};
if (_dispatcher){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.REPEAT));
};
};
};
}
override public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{
super.complete(_arg1, _arg2);
if (((!(_arg2)) && (_dispatcher))){
if ((((this.cachedTotalTime == this.cachedTotalDuration)) && (!(this.cachedReversed)))){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE));
} else {
if (((this.cachedReversed) && ((this.cachedTotalTime == 0)))){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.REVERSE_COMPLETE));
};
};
};
}
protected function initDispatcher():void{
if (_dispatcher == null){
_dispatcher = new EventDispatcher(this);
};
if ((this.vars.onInitListener is Function)){
_dispatcher.addEventListener(TweenEvent.INIT, this.vars.onInitListener, false, 0, true);
};
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);
_hasUpdateListener = true;
};
if ((this.vars.onCompleteListener is Function)){
_dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true);
};
if ((this.vars.onRepeatListener is Function)){
_dispatcher.addEventListener(TweenEvent.REPEAT, this.vars.onRepeatListener, false, 0, true);
};
if ((this.vars.onReverseCompleteListener is Function)){
_dispatcher.addEventListener(TweenEvent.REVERSE_COMPLETE, this.vars.onReverseCompleteListener, false, 0, true);
};
}
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){
_hasUpdateListener = true;
};
_dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (_dispatcher){
_dispatcher.removeEventListener(_arg1, _arg2, _arg3);
};
}
public function hasEventListener(_arg1:String):Boolean{
return (((_dispatcher)==null) ? false : _dispatcher.hasEventListener(_arg1));
}
public function willTrigger(_arg1:String):Boolean{
return (((_dispatcher)==null) ? false : _dispatcher.willTrigger(_arg1));
}
public function dispatchEvent(_arg1:Event):Boolean{
return (((_dispatcher)==null) ? false : _dispatcher.dispatchEvent(_arg1));
}
public function get currentProgress():Number{
return ((this.cachedTime / this.duration));
}
public function set currentProgress(_arg1:Number):void{
if (_cyclesComplete == 0){
setTotalTime((this.duration * _arg1), false);
} else {
setTotalTime(((this.duration * _arg1) + (_cyclesComplete * this.cachedDuration)), false);
};
}
public function get totalProgress():Number{
return ((this.cachedTotalTime / this.totalDuration));
}
public function set totalProgress(_arg1:Number):void{
setTotalTime((this.totalDuration * _arg1), false);
}
override public function set currentTime(_arg1:Number):void{
if (_cyclesComplete == 0){
} else {
if (((this.yoyo) && (((_cyclesComplete % 2) == 1)))){
_arg1 = ((this.duration - _arg1) + (_cyclesComplete * (this.cachedDuration + _repeatDelay)));
} else {
_arg1 = (_arg1 + (_cyclesComplete * (this.duration + _repeatDelay)));
};
};
setTotalTime(_arg1, false);
}
override public function get totalDuration():Number{
if (this.cacheIsDirty){
this.cachedTotalDuration = ((_repeat)==-1) ? 999999999999 : ((this.cachedDuration * (_repeat + 1)) + (_repeatDelay * _repeat));
this.cacheIsDirty = false;
};
return (this.cachedTotalDuration);
}
override public function set totalDuration(_arg1:Number):void{
if (_repeat == -1){
return;
};
this.duration = ((_arg1 - (_repeat * _repeatDelay)) / (_repeat + 1));
}
public function get timeScale():Number{
return (this.cachedTimeScale);
}
public function set timeScale(_arg1:Number):void{
if (_arg1 == 0){
_arg1 = 0.0001;
};
var _local2:Number = (((this.cachedPauseTime) || ((this.cachedPauseTime == 0)))) ? this.cachedPauseTime : this.timeline.cachedTotalTime;
this.cachedStartTime = (_local2 - (((_local2 - this.cachedStartTime) * this.cachedTimeScale) / _arg1));
this.cachedTimeScale = _arg1;
setDirtyCache(false);
}
public function get repeat():int{
return (_repeat);
}
public function set repeat(_arg1:int):void{
_repeat = _arg1;
setDirtyCache(true);
}
public function get repeatDelay():Number{
return (_repeatDelay);
}
public function set repeatDelay(_arg1:Number):void{
_repeatDelay = _arg1;
setDirtyCache(true);
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function fromTo(_arg1:Object, _arg2:Number, _arg3:Object, _arg4:Object):TweenMax{
_arg4.startAt = _arg3;
if (_arg3.immediateRender){
_arg4.immediateRender = true;
};
return (new TweenMax(_arg1, _arg2, _arg4));
}
public static function allTo(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Number=0, _arg5:Function=null, _arg6:Array=null):Array{
var i:int;
var varsDup:Object;
var p:String;
var onCompleteProxy:Function;
var onCompleteParamsProxy:Array;
var targets = _arg1;
var duration = _arg2;
var vars = _arg3;
var stagger = _arg4;
var onCompleteAll = _arg5;
var onCompleteAllParams = _arg6;
var l:int = targets.length;
var a:Array = [];
var curDelay:Number = (("delay" in vars)) ? Number(vars.delay) : 0;
onCompleteProxy = vars.onComplete;
onCompleteParamsProxy = vars.onCompleteParams;
var lastIndex:int = ((stagger)<=0) ? 0 : (l - 1);
i = 0;
while (i < l) {
varsDup = {};
for (p in vars) {
varsDup[p] = vars[p];
};
varsDup.delay = curDelay;
if ((((i == lastIndex)) && (!((onCompleteAll == null))))){
varsDup.onComplete = function ():void{
if (onCompleteProxy != null){
onCompleteProxy.apply(null, onCompleteParamsProxy);
};
onCompleteAll.apply(null, onCompleteAllParams);
};
};
a[a.length] = new TweenMax(targets[i], duration, varsDup);
curDelay = (curDelay + stagger);
i = (i + 1);
};
return (a);
}
public static function allFrom(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Number=0, _arg5:Function=null, _arg6:Array=null):Array{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (allTo(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6));
}
public static function allFromTo(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Object, _arg5:Number=0, _arg6:Function=null, _arg7:Array=null):Array{
_arg4.startAt = _arg3;
if (_arg3.immediateRender){
_arg4.immediateRender = true;
};
return (allTo(_arg1, _arg2, _arg4, _arg5, _arg6, _arg7));
}
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, immediateRender:false, useFrames:_arg4, overwrite:0}));
}
public static function getTweensOf(_arg1:Object):Array{
var _local4:int;
var _local5:int;
var _local2:Array = masterList[_arg1];
var _local3:Array = [];
if (_local2){
_local4 = _local2.length;
_local5 = 0;
while (--_local4 > -1) {
if (!TweenLite(_local2[_local4]).gc){
var _temp1 = _local5;
_local5 = (_local5 + 1);
var _local6 = _temp1;
_local3[_local6] = _local2[_local4];
};
};
};
return (_local3);
}
public static function isTweening(_arg1:Object):Boolean{
var _local4:TweenLite;
var _local2:Array = getTweensOf(_arg1);
var _local3:int = _local2.length;
while (--_local3 > -1) {
_local4 = _local2[_local3];
if (((_local4.active) || ((((_local4.cachedStartTime == _local4.timeline.cachedTime)) && (_local4.timeline.active))))){
return (true);
};
};
return (false);
}
public static function getAllTweens():Array{
var _local4:Array;
var _local5:int;
var _local1:Dictionary = masterList;
var _local2:int;
var _local3:Array = [];
for each (_local4 in _local1) {
_local5 = _local4.length;
while (--_local5 > -1) {
if (!TweenLite(_local4[_local5]).gc){
var _temp1 = _local2;
_local2 = (_local2 + 1);
var _local8 = _temp1;
_local3[_local8] = _local4[_local5];
};
};
};
return (_local3);
}
public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true, _arg3:Boolean=true):void{
var _local5:Boolean;
var _local4:Array = getAllTweens();
var _local6:int = _local4.length;
while (--_local6 > -1) {
_local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete);
if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){
if (_arg1){
_local4[_local6].complete(false);
} else {
_local4[_local6].setEnabled(false, false);
};
};
};
}
public static function killChildTweensOf(_arg1:DisplayObjectContainer, _arg2:Boolean=false):void{
var _local4:Object;
var _local5:DisplayObjectContainer;
var _local3:Array = getAllTweens();
var _local6:int = _local3.length;
while (--_local6 > -1) {
_local4 = _local3[_local6].target;
if ((_local4 is DisplayObject)){
_local5 = _local4.parent;
while (_local5) {
if (_local5 == _arg1){
if (_arg2){
_local3[_local6].complete(false);
} else {
_local3[_local6].setEnabled(false, false);
};
};
_local5 = _local5.parent;
};
};
};
}
public static function pauseAll(_arg1:Boolean=true, _arg2:Boolean=true):void{
changePause(true, _arg1, _arg2);
}
public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=true):void{
changePause(false, _arg1, _arg2);
}
private static function changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false):void{
var _local5:Boolean;
var _local4:Array = getAllTweens();
var _local6:int = _local4.length;
while (--_local6 > -1) {
_local5 = (TweenLite(_local4[_local6]).target == TweenLite(_local4[_local6]).vars.onComplete);
if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){
TweenCore(_local4[_local6]).paused = _arg1;
};
};
}
public static function get globalTimeScale():Number{
return (((TweenLite.rootTimeline)==null) ? 1 : TweenLite.rootTimeline.cachedTimeScale);
}
public static function set globalTimeScale(_arg1:Number):void{
if (_arg1 == 0){
_arg1 = 0.0001;
};
if (TweenLite.rootTimeline == null){
TweenLite.to({}, 0, {});
};
var _local2:SimpleTimeline = TweenLite.rootTimeline;
var _local3:Number = (getTimer() * 0.001);
_local2.cachedStartTime = (_local3 - (((_local3 - _local2.cachedStartTime) * _local2.cachedTimeScale) / _arg1));
_local2 = TweenLite.rootFramesTimeline;
_local3 = TweenLite.rootFrame;
_local2.cachedStartTime = (_local3 - (((_local3 - _local2.cachedStartTime) * _local2.cachedTimeScale) / _arg1));
TweenLite.rootFramesTimeline.cachedTimeScale = (TweenLite.rootTimeline.cachedTimeScale = _arg1);
}
TweenPlugin.activate([AutoAlphaPlugin, EndArrayPlugin, FramePlugin, RemoveTintPlugin, TintPlugin, VisiblePlugin, VolumePlugin, BevelFilterPlugin, BezierPlugin, BezierThroughPlugin, BlurFilterPlugin, ColorMatrixFilterPlugin, ColorTransformPlugin, DropShadowFilterPlugin, FrameLabelPlugin, GlowFilterPlugin, HexColorsPlugin, RoundPropsPlugin, ShortRotationPlugin, {}]);
}
}//package com.greensock
Section 100
//AwardsService (com.spilgames.api.AwardsService)
package com.spilgames.api {
import flash.display.*;
public class AwardsService extends MovieClip {
private static const AWARDS:String = "Awards";
public static function submitAward(_arg1:Object, _arg2:Function=null):int{
return (SpilGamesServices.getInstance().send(AWARDS, "submitAward", _arg2, {tag:_arg1, userName:User.getUserName(), userHash:User.getUserHash()}));
}
public static function isAvailable():Boolean{
return (SpilGamesServices.getInstance().isServiceAvailable(AWARDS));
}
}
}//package com.spilgames.api
Section 101
//AvatarService (com.spilgames.api.AvatarService)
package com.spilgames.api {
import flash.display.*;
public class AvatarService extends MovieClip {
private static const AVATAR:String = "Avatar";
private static const ENCODING_QUALITY:String = "encodingQuality";
private static const TITLE:String = "title";
private static const DESCRIPTION:String = "description";
public static function saveDrawable(_arg1:DisplayObject, _arg2:XML=null, _arg3:Object=null, _arg4:Function=null):int{
if (!_arg2){
_arg2 = new XML(<DATA>
<NOCONTENT>This image has no data submitted.</NOCONTENT>
</DATA>
);
};
if (!_arg3){
_arg3 = {};
};
_arg3.encodingQuality = (_arg3.hasOwnProperty(ENCODING_QUALITY)) ? _arg3.encodingQuality : 90;
_arg3.title = (_arg3.hasOwnProperty(TITLE)) ? _arg3.title : "";
_arg3.description = (_arg3.hasOwnProperty(DESCRIPTION)) ? _arg3.description : "";
return (SpilGamesServices.getInstance().send(AVATAR, "addAvatar", _arg4, {userName:User.getUserName(), userHash:User.getUserHash(), displayObject:_arg1, editingData:_arg2, options:_arg3}));
}
public static function saveBitmapData(_arg1:BitmapData, _arg2:XML=null, _arg3:Object=null, _arg4:Function=null):int{
if (!_arg2){
_arg2 = new XML(<DATA>
<NOCONTENT>This image has no data submitted.</NOCONTENT>
</DATA>
);
};
if (!_arg3){
_arg3 = {};
};
_arg3.encodingQuality = (_arg3.hasOwnProperty(ENCODING_QUALITY)) ? _arg3.encodingQuality : 90;
_arg3.title = (_arg3.hasOwnProperty(TITLE)) ? _arg3.title : "";
_arg3.description = (_arg3.hasOwnProperty(DESCRIPTION)) ? _arg3.description : "";
return (SpilGamesServices.getInstance().send(AVATAR, "addAvatar", _arg4, {userName:User.getUserName(), userHash:User.getUserHash(), bitmapData:_arg1, editingData:_arg2, options:_arg3}));
}
public static function loadEditingData(_arg1:int, _arg2:Function):int{
return (SpilGamesServices.getInstance().send(AVATAR, "loadAvatarData", _arg2, {avatarID:_arg1}));
}
public static function loadAvatar(_arg1:int, _arg2:Function):int{
return (SpilGamesServices.getInstance().send(AVATAR, "loadAvatar", _arg2, {avatarID:_arg1}));
}
public static function getActiveAvatarID(_arg1:Function):int{
return (SpilGamesServices.getInstance().send(AVATAR, "getAvatarID", _arg1, {outputType:"xml"}));
}
public static function isAvailable():Boolean{
return (SpilGamesServices.getInstance().isServiceAvailable(AVATAR));
}
}
}//package com.spilgames.api
Section 102
//BuildVersion (com.spilgames.api.BuildVersion)
package com.spilgames.api {
public class BuildVersion {
public static const BUILD_NUMBER:String = getBuildNumber();
public static const VERSION_MAJOR:int = 1;
public static const VERSION_MINOR:int = 3;
public static const VERSION_BUILD:int = 1;
private static function getBuildNumber():String{
return (((((VERSION_MAJOR + ".") + VERSION_MINOR) + ".") + VERSION_BUILD));
}
}
}//package com.spilgames.api
Section 103
//ScoreService (com.spilgames.api.ScoreService)
package com.spilgames.api {
import flash.display.*;
public class ScoreService extends MovieClip {
private static const SCORE:String = "Score";
public static function submitScore(_arg1:Object, _arg2:Function=null):int{
return (SpilGamesServices.getInstance().send(SCORE, "submitScore", _arg2, {score:_arg1, userName:User.getUserName(), userHash:User.getUserHash()}));
}
public static function isAvailable():Boolean{
return (SpilGamesServices.getInstance().isServiceAvailable(SCORE));
}
}
}//package com.spilgames.api
Section 104
//SpilGamesServices (com.spilgames.api.SpilGamesServices)
package com.spilgames.api {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.text.*;
import com.spilgames.bs.*;
import flash.utils.*;
import flash.system.*;
public class SpilGamesServices extends MovieClip {
private const DEFAULT_CONNECTION_LOCATION:String;
private const FALLBACK_CONNECTION_LOCATION:String = "http://www8.agame.com/sdk/spilapi/1.3.1/ServicesConnection.swf";
private var _flashVars:Object;
private var _fallbackState:int;// = 0
private var _servicesConnection;// = null
private var _options:Object;// = null
private var _loader:Loader;
private var _request:URLRequest;
private var _connecting:Boolean;// = false
private var _connected:Boolean;// = false
private var _numConnectionLoadTries:uint;// = 0
private var _configXML:XML;
private var _configID:String;
private var _alwaysInFront:Boolean;// = false
private var currentDelay:Number;// = 0
private var previousFrameTime:Number;
private var _bg:Sprite;
private var _w:int;
private var _h:int;
protected var prevFrameTime:int;// = 0
protected var _elapsedTime:Number;// = 0
public static const LOCALE_CHANGED:String = "localeChanged";
public static const INVALID_ID:int = 0;
public static const INVALID_DOMAIN:String = "invalidDomain";
public static const CONFIGURATION_FAILED:String = "configurationFailure";
public static const INITIALIZATION_FAILED:String = "initializationFailed";
public static const COMPONENTS_READY:String = "componentsReady";
public static const COMPONENTS_FAILED:String = "componentsFailed";
public static const SERVICES_READY:String = "servicesReady";
public static const SERVICE_ERROR:String = "serviceError";
private static const CONFIG_QUERY_STRING:String = ("?type=live&nocache=" + String(int((Math.random() * 1000))));
private static const CONFIG_URL:String = "http://api.configar.org/cf/pb/1/settings";
private static const MAX_CONNECTION_LOAD_RETRIES:uint = 3;
private static var _instance:SpilGamesServices = null;
public function SpilGamesServices(_arg1:Private=null){
DEFAULT_CONNECTION_LOCATION = (("../../../../sdk/spilapi/" + BuildVersion.BUILD_NUMBER) + "/ServicesConnection.swf");
super();
initConstructor(_arg1);
}
public function get version():String{
return (BuildVersion.BUILD_NUMBER);
}
public function get connecting():Boolean{
return (_connecting);
}
public function get connection(){
return (_servicesConnection);
}
public function set alwaysInFront(_arg1:Boolean):void{
if (_alwaysInFront != _arg1){
_alwaysInFront = _arg1;
if (_alwaysInFront){
addEventListener(Event.ENTER_FRAME, bringToFront);
} else {
removeEventListener(Event.ENTER_FRAME, bringToFront);
};
};
}
public function get alwaysInFront():Boolean{
return (_alwaysInFront);
}
public function loadAPI(_arg1:String, _arg2:Boolean=false):void{
var _local3:String;
var _local4:URLVariables;
var _local5:Date;
if (((!(_connecting)) && (!(_connected)))){
if (this.parent){
genConnFeedback(this.parent);
validateOptions(this.parent, _configID);
};
_connecting = true;
BrandingManager.getInstance();
addEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage);
if (_arg1 != ""){
_local3 = _arg1;
} else {
if (((root.loaderInfo.parameters["servicesLoc"]) && ((root.loaderInfo.parameters["servicesLoc"].length > 0)))){
_local3 = root.loaderInfo.parameters["servicesLoc"];
} else {
_local3 = DEFAULT_CONNECTION_LOCATION;
_local4 = new URLVariables();
_local5 = new Date();
_local4.nocache = _local5.milliseconds;
_local4.useDraft = _arg2;
_request = new URLRequest(_local3);
_request.data = _local4;
};
};
if (!_request){
_request = new URLRequest(_local3);
};
allowDomain(_local3);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
_loader.load(_request);
};
}
public function connect(_arg1:DisplayObject, _arg2:String):void{
_arg1.stage.addChild(this);
Security.allowDomain("*");
getFlashVars();
if (_arg2 == null){
throw (new TypeError("You must supply a configID"));
};
if (!_flashVars.channelID){
_flashVars.channelID = "0";
};
if (!_flashVars.siteID){
_flashVars.siteID = "0";
};
var _local3:String = (((((((CONFIG_URL + "/") + _flashVars.channelID) + "/") + _flashVars.siteID) + "/") + _arg2) + CONFIG_QUERY_STRING);
var _local4:URLLoader = new URLLoader();
_local4.addEventListener(Event.COMPLETE, onConfigurationLoaded);
_local4.load(new URLRequest(_local3));
}
private function onConfigurationLoaded(_arg1:Event):void{
var config:String;
var regExp:RegExp;
var configurator:XMLList;
var apiLocation:String;
var evt = _arg1;
config = evt.currentTarget.data;
regExp = /(\t|\n|\s{2,})/g;
config = config.replace(regExp, "");
_configXML = new XML(config);
configurator = _configXML..component.(@name == "Configurator");
apiLocation = configurator..property.(@name == "apiLocation").attribute("value").toString();
loadAPI(apiLocation);
}
public function disconnect():void{
if (_servicesConnection){
_servicesConnection.removeEventListener(Event.COMPLETE, onServicesReady);
_servicesConnection.removeEventListener(ErrorEvent.ERROR, onInitializationError);
_servicesConnection.removeEventListener("serviceError", onServiceError);
_servicesConnection.removeEventListener(COMPONENTS_READY, onComponentsReady);
if (_connected){
_servicesConnection.disconnect();
};
removeChild(_servicesConnection);
};
_servicesConnection = null;
if (_loader){
try {
_loader.close();
} catch(e:Error) {
} finally {
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, onIOError);
};
_loader = null;
};
removeEventListener(Event.ENTER_FRAME, bringToFront);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage);
if (parent){
parent.removeChild(this);
};
_connected = (_connecting = false);
}
public function getChannelID():int{
var _local1:int = INVALID_ID;
if (_servicesConnection != null){
_local1 = _servicesConnection.getChannelID();
};
return (_local1);
}
public function getSiteID():int{
var _local1:int = INVALID_ID;
if (_servicesConnection != null){
_local1 = _servicesConnection.getSiteID();
};
return (_local1);
}
public function getItemID():int{
var _local1:int = INVALID_ID;
if (_servicesConnection != null){
_local1 = _servicesConnection.getItemID();
};
return (_local1);
}
public function isReady():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isReady())));
}
public function isDomainAllowed():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isDomainValid())));
}
public function isServiceAvailable(_arg1:String):Boolean{
return (((isReady()) && (_servicesConnection.isServiceAvailable(_arg1))));
}
public function send(_arg1:String, _arg2:String, _arg3:Function, _arg4:Object=null):int{
var _local5:int = INVALID_ID;
if (isReady()){
_local5 = _servicesConnection.send(_arg1, _arg2, _arg3, _arg4);
};
return (_local5);
}
public function getProperty(_arg1:String, _arg2:String, _arg3){
var _local4:* = _arg3;
if (((isReady()) && (_servicesConnection.hasOwnProperty("getProperty")))){
_local4 = _servicesConnection.getProperty(_arg1, _arg2, _arg3);
};
return (_local4);
}
public function allowDomain(_arg1:String):void{
Security.allowDomain("*");
Security.allowInsecureDomain("*");
}
private function initConstructor(_arg1:Private):void{
if (!_arg1){
throw (new Error(("Cannot instantiate this class directly, " + "use SpilGamesServices.getInstance() instead.")));
};
}
private function validateOptions(_arg1:DisplayObjectContainer, _arg2:String):void{
if (!_arg1){
throw (new Error("The 'clip' parameter cannot be null"));
};
if (!_arg1.stage){
throw (new Error(("The given clip must be present in the " + "display list (added to stage)")));
};
_options = new Object();
_options.configID = _arg2;
}
public function bringToFront(_arg1:Event=null):void{
var event = _arg1;
if (parent){
try {
parent.setChildIndex(this, (parent.numChildren - 1));
} catch(error:Error) {
removeEventListener(Event.ENTER_FRAME, bringToFront);
};
};
}
private function onRemovedFromStage(_arg1:Event):void{
trace("WARNING: Please do not remove SpilGamesServices from the stage!");
}
private function onLoadComplete(_arg1:Event):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, onIOError);
_servicesConnection = LoaderInfo(_arg1.target).content;
_servicesConnection.addEventListener(Event.COMPLETE, onServicesReady);
_servicesConnection.addEventListener(ErrorEvent.ERROR, onInitializationError);
_servicesConnection.addEventListener("serviceError", onServiceError);
_servicesConnection.addEventListener(COMPONENTS_READY, onComponentsReady);
if (_servicesConnection.hasOwnProperty("setOptions")){
_servicesConnection.setOptions(_options);
};
addChild(_servicesConnection);
_servicesConnection.setConfig(_configXML);
cleanupConnFeedback();
}
private function onIOError(_arg1:IOErrorEvent):void{
_numConnectionLoadTries++;
if (_numConnectionLoadTries > MAX_CONNECTION_LOAD_RETRIES){
trace("ERROR: SpilGamesServices - Failed to load the connection object! Aborting initialization.");
trace(("ERROR: SpilGamesServices - Unknown connection object URL: " + _request.url));
_request = null;
_connecting = false;
switch (_fallbackState){
case 0:
retryConnection(DEFAULT_CONNECTION_LOCATION);
break;
case 1:
retryConnection(FALLBACK_CONNECTION_LOCATION);
break;
case 2:
trace("ERROR: No connection could be made to SPIL APIs!");
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, onIOError);
if (hasEventListener(_arg1.type)){
dispatchEvent(_arg1);
};
break;
};
} else {
trace(("WARN: SpilGamesServices - Failed to load the connection object - retry #" + _numConnectionLoadTries));
previousFrameTime = getTimer();
addEventListener(Event.ENTER_FRAME, updateConnectionRetry);
};
}
private function retryConnection(_arg1:String):void{
_fallbackState++;
_numConnectionLoadTries = 0;
cleanupConnFeedback();
loadAPI(_arg1);
}
private function updateConnectionRetry(_arg1:Event):void{
var _local2:Number = getTimer();
var _local3:Number = ((_local2 - previousFrameTime) / 1000);
currentDelay = (currentDelay + _local3);
if (currentDelay >= 2){
trace((("WARN: SpilGamesServices - Trying to reconnect after: " + currentDelay.toPrecision(4)) + " sec."));
_loader.load(_request);
removeEventListener(Event.ENTER_FRAME, updateConnectionRetry);
currentDelay = 0;
};
previousFrameTime = _local2;
}
private function onServicesReady(_arg1:Event):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, onIOError);
_connected = true;
_connecting = false;
dispatchEvent(new Event(SERVICES_READY));
}
private function onInitializationError(_arg1:ErrorEvent):void{
_servicesConnection.removeEventListener(Event.COMPLETE, onServicesReady);
_servicesConnection.removeEventListener(ErrorEvent.ERROR, onInitializationError);
_servicesConnection.removeEventListener("serviceError", onServiceError);
_servicesConnection.removeEventListener(COMPONENTS_READY, onComponentsReady);
_connecting = false;
trace((("ERROR: SpilGamesServices failed to initialize due to '" + _arg1.text) + "'"));
if (hasEventListener(INITIALIZATION_FAILED)){
dispatchEvent(new ErrorEvent(INITIALIZATION_FAILED, false, false, _arg1.text));
};
}
private function onServiceError(_arg1:Event):void{
var _local2:String;
if (hasEventListener(SERVICE_ERROR)){
_local2 = "";
if ((_arg1 is ErrorEvent)){
_local2 = ErrorEvent(_arg1).text;
} else {
_local2 = _arg1.toString();
};
dispatchEvent(new ErrorEvent(SERVICE_ERROR, false, false, _local2));
};
}
private function onComponentsReady(_arg1:Event):void{
_servicesConnection.removeEventListener(COMPONENTS_READY, onComponentsReady);
if (hasEventListener(COMPONENTS_READY)){
dispatchEvent(_arg1);
};
cleanupConnFeedback();
}
private function genConnFeedback(_arg1:DisplayObjectContainer):void{
_w = _arg1.stage.stageWidth;
_h = _arg1.stage.stageHeight;
var _local2:TextField = new TextField();
_local2.defaultTextFormat = new TextFormat("_sans", 16, 0, true);
_local2.name = "tf_conn";
_local2.text = ("Connecting... " + _numConnectionLoadTries);
_local2.x = 10;
_local2.y = 10;
_bg = new Sprite();
_bg.graphics.beginFill(0xFFFFFF);
_bg.graphics.drawRect(0, 0, _w, _h);
_bg.addChild(_local2);
_arg1.addChild(_bg);
prevFrameTime = getTimer();
addEventListener(Event.ENTER_FRAME, updateConnAnim);
}
private function updateConnAnim(_arg1:Event):void{
var _local3:String;
var _local2:Number = (getTimer() - prevFrameTime);
_elapsedTime = (_elapsedTime + (_local2 / 1000));
var _local4:TextField = (_bg.getChildByName("tf_conn") as TextField);
_local4.width = 250;
if (_elapsedTime > 2){
_elapsedTime = 0;
};
if (_elapsedTime >= 1){
_local3 = "Connecting...";
} else {
if (_elapsedTime > 0.5){
_local3 = "Connecting..";
} else {
if (_elapsedTime >= 0){
_local3 = "Connecting.";
};
};
};
_local4.text = _local3;
prevFrameTime = getTimer();
}
private function cleanupConnFeedback():void{
var _local1:*;
if (hasEventListener(Event.ENTER_FRAME)){
removeEventListener(Event.ENTER_FRAME, updateConnAnim);
};
if (_bg){
while (_bg.numChildren > 0) {
_local1 = _bg.getChildAt((_bg.numChildren - 1));
if (_local1){
_bg.removeChild(_local1);
};
_local1 = null;
};
if (_bg.parent){
_bg.parent.removeChild(_bg);
};
};
_bg = null;
}
private function getFlashVars():void{
var _local1:Object;
var _local2:Object;
_flashVars = new Object();
if (((parent) && (parent.loaderInfo))){
_local1 = parent.loaderInfo.parameters;
_local2 = this.loaderInfo.parameters;
_flashVars.userName = ((_local1.username)!=null) ? _local1.username : "";
_flashVars.userHash = ((_local1.hash)!=null) ? _local1.hash : "";
_flashVars.channelID = _local1.c;
_flashVars.siteID = _local1.s;
_flashVars.itemID = _local1.id;
_flashVars.scoreDomain = _local1.scoreDomain;
_flashVars.debugMode = ((_local2.debugMode == "false")) ? false : true;
_flashVars.serviceOverwriteMask = ((_local1.som)!=null) ? _local1.som : 4294967295;
_flashVars.serviceEnvironmentOverwriteID = ((_local1.dev)!=null) ? _local1.dev : "UNKNOWN";
};
}
public static function getInstance():SpilGamesServices{
if (!_instance){
_instance = new SpilGamesServices(new Private());
};
return (_instance);
}
}
}//package com.spilgames.api
class Private {
private function Private(){
}
}
Section 105
//User (com.spilgames.api.User)
package com.spilgames.api {
import flash.display.*;
public class User {
public static function isGuest():Boolean{
var _local3:DisplayObject;
var _local4:Object;
var _local1:Boolean;
var _local2:* = SpilGamesServices.getInstance().connection;
if (_local2 != null){
_local1 = _local2.isGuest();
} else {
_local3 = SpilGamesServices.getInstance().root;
if (_local3.loaderInfo != null){
_local4 = _local3.loaderInfo.parameters;
_local1 = ((((((!(_local4.username)) || ((_local4.username == "")))) || (!(_local4.hash)))) || ((_local4.hash == "")));
} else {
_local1 = false;
};
};
return (_local1);
}
public static function getUserName():String{
var _local1 = "";
var _local2:* = SpilGamesServices.getInstance().connection;
if (_local2 != null){
_local1 = _local2.getUserName();
};
return (_local1);
}
public static function getUserHash():String{
var _local1 = "";
var _local2:* = SpilGamesServices.getInstance().connection;
if (_local2 != null){
_local1 = _local2.getUserHash();
};
return (_local1);
}
}
}//package com.spilgames.api
Section 106
//BrandingComponentTypes (com.spilgames.bs.BrandingComponentTypes)
package com.spilgames.bs {
public class BrandingComponentTypes {
public static const API_ROOT:String = "http://www8.agame.com";
public static const BRAND_SYSTEM:String = "BrandSystem";
public static const COPYRIGHT:String = "BrandCopyright";
public static const LOCALISED_TEXTFIELD:String = "Brand_LT";
public static const LOCALISED_BUTTON:String = "BrandLTFButton";
public static const LANGUAGE_SELECTOR:String = "BrandLanguageSelect";
public static const LOGO:String = "BrandLogo";
}
}//package com.spilgames.bs
Section 107
//BrandingManager (com.spilgames.bs.BrandingManager)
package com.spilgames.bs {
import flash.display.*;
import flash.events.*;
import com.spilgames.api.*;
public class BrandingManager extends EventDispatcher {
private var _brandingSystem;
private var _componentsReady:Boolean;// = false
public static const BRANDING_READY:String = "brandingReady";
public static const DEFAULT_MORE_GAMES_LINK:String = "http://www.agame.com";
private static var _instance:BrandingManager;
public function BrandingManager(_arg1:Private=null){
initConstructor(_arg1);
}
public function createComponent(_arg1:String):MovieClip{
var _local2:MovieClip;
if (((_arg1) && (!((_arg1 == ""))))){
if (_componentsReady){
try {
_local2 = _brandingSystem.createComponent(_arg1);
} catch(e:Error) {
};
};
};
return (_local2);
}
public function isAvailable():Boolean{
var _local1:Boolean;
if (_componentsReady){
_local1 = _brandingSystem.allowControl();
};
return (_local1);
}
public function isReady():Boolean{
return (_componentsReady);
}
public function getMoreGamesLink():String{
var _local1:String = DEFAULT_MORE_GAMES_LINK;
if (((isReady()) && (_brandingSystem))){
_local1 = _brandingSystem.getMoreGamesLink();
};
return (_local1);
}
public function showBrandingBar():Boolean{
var _local1:Boolean;
if (isAvailable()){
_brandingSystem.showBrandingBar();
_local1 = true;
};
return (_local1);
}
public function hideBrandingBar():Boolean{
var _local1:Boolean;
if (isAvailable()){
_brandingSystem.hideBrandingBar();
_local1 = true;
};
return (_local1);
}
public function getPortalGroup():uint{
var _local1:uint = 1;
if (((isReady()) && (_brandingSystem))){
_local1 = _brandingSystem.portalGroup;
};
return (_local1);
}
private function initConstructor(_arg1:Private):void{
if (!_arg1){
throw (new Error("Cannot instantiate this class directly. Use BrandingManager.getInstance() instead."));
};
SpilGamesServices.getInstance().addEventListener(SpilGamesServices.COMPONENTS_READY, onComponentsReady);
}
private function onComponentsReady(_arg1:Event):void{
_brandingSystem = SpilGamesServices.getInstance().connection.getComponentSystem(BrandingComponentTypes.BRAND_SYSTEM);
if (!_brandingSystem){
return;
};
_brandingSystem.addEventListener(BRANDING_READY, brandingReady);
SpilGamesServices.getInstance().connection.addEventListener(SpilGamesServices.LOCALE_CHANGED, onLocaleChanged);
_componentsReady = true;
dispatchEvent(new Event(SpilGamesServices.COMPONENTS_READY, true));
}
private function brandingReady(_arg1:Event):void{
dispatchEvent(new Event(BRANDING_READY));
}
private function onLocaleChanged(_arg1:Event):void{
if (hasEventListener(SpilGamesServices.LOCALE_CHANGED)){
dispatchEvent(new Event(SpilGamesServices.LOCALE_CHANGED));
};
}
public static function getInstance():BrandingManager{
if (!_instance){
_instance = new BrandingManager(new Private());
};
return (_instance);
}
}
}//package com.spilgames.bs
class Private {
private function Private(){
}
}
Section 108
//AvatarShow_326 (Fairytale_Kiss_fla.AvatarShow_326)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class AvatarShow_326 extends MovieClip {
public var mc:MovieClip;
public var __id36_:LocalizedTextField;
public function AvatarShow_326(){
__setProp___id36__AvatarShow_();
}
function __setProp___id36__AvatarShow_(){
try {
__id36_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id36_.text = "{Your_avatar_has_been_updated_on_your_profile_}";
__id36_.textColor = 0xFFFFFF;
__id36_.textSize = 16;
__id36_.bold = false;
__id36_.disableWordwrap = false;
__id36_.embedFonts = true;
__id36_.font = "";
__id36_.hAlign = "center";
__id36_.multiline = true;
__id36_.vAlign = "top";
__id36_.antiAliasType = "advanced";
__id36_.glowBlur = 3;
__id36_.glowColor = 0;
__id36_.useGlowFilter = false;
__id36_.glowQuality = 1;
__id36_.glowStrength = 5;
__id36_.gridFitType = "pixel";
__id36_.italic = false;
__id36_.selectable = false;
__id36_.underline = false;
try {
__id36_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 109
//chinalogo_293 (Fairytale_Kiss_fla.chinalogo_293)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class chinalogo_293 extends MovieClip {
public function chinalogo_293(){
addFrameScript(239, frame240);
}
function frame240(){
stop();
}
}
}//package Fairytale_Kiss_fla
Section 110
//chinalogo_307 (Fairytale_Kiss_fla.chinalogo_307)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class chinalogo_307 extends MovieClip {
public function chinalogo_307(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package Fairytale_Kiss_fla
Section 111
//flag_icon_383 (Fairytale_Kiss_fla.flag_icon_383)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class flag_icon_383 extends MovieClip {
public function flag_icon_383(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Fairytale_Kiss_fla
Section 112
//game_165 (Fairytale_Kiss_fla.game_165)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class game_165 extends MovieClip {
public function game_165(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Fairytale_Kiss_fla
Section 113
//Game_Char2_312 (Fairytale_Kiss_fla.Game_Char2_312)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.geom.*;
import flash.filters.*;
import lib.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class Game_Char2_312 extends MovieClip {
public var lightmc:Light;
public var charmc:MovieClip;
public var hart:Game_ui_charHart;
public function Game_Char2_312(){
addFrameScript(245, frame246);
}
function frame246(){
charmc.gotoAndStop("end");
}
}
}//package Fairytale_Kiss_fla
Section 114
//Symbol7_155 (Fairytale_Kiss_fla.Symbol7_155)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class Symbol7_155 extends MovieClip {
public var charmc:MovieClip;
public function Symbol7_155(){
addFrameScript(176, frame177, 177, frame178, 178, frame179, 179, frame180, 180, frame181, 181, frame182, 182, frame183, 183, frame184, 184, frame185, 185, frame186, 186, frame187, 187, frame188, 188, frame189, 189, frame190, 190, frame191, 191, frame192, 192, frame193);
}
function frame177(){
stop();
}
function frame178(){
prevFrame();
}
function frame179(){
prevFrame();
}
function frame180(){
prevFrame();
}
function frame181(){
prevFrame();
}
function frame182(){
prevFrame();
}
function frame183(){
prevFrame();
}
function frame184(){
prevFrame();
}
function frame185(){
prevFrame();
}
function frame186(){
prevFrame();
}
function frame187(){
prevFrame();
}
function frame188(){
prevFrame();
}
function frame189(){
prevFrame();
}
function frame190(){
prevFrame();
}
function frame191(){
prevFrame();
}
function frame192(){
prevFrame();
}
function frame193(){
stop();
}
}
}//package Fairytale_Kiss_fla
Section 115
//Timeline_101 (Fairytale_Kiss_fla.Timeline_101)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class Timeline_101 extends MovieClip {
public function Timeline_101(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Fairytale_Kiss_fla
Section 116
//Timeline_108 (Fairytale_Kiss_fla.Timeline_108)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class Timeline_108 extends MovieClip {
public var __id18_:LocalizedTextField;
public var __id19_:LocalizedTextField;
public function Timeline_108(){
__setProp___id18__();
__setProp___id19__();
}
function __setProp___id18__(){
try {
__id18_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id18_.text = "{To_whom_is_caught_is_turned_to_stone}";
__id18_.textColor = 3381708;
__id18_.textSize = 20;
__id18_.bold = false;
__id18_.disableWordwrap = false;
__id18_.embedFonts = true;
__id18_.font = "";
__id18_.hAlign = "left";
__id18_.multiline = true;
__id18_.vAlign = "top";
__id18_.antiAliasType = "advanced";
__id18_.glowBlur = 3;
__id18_.glowColor = 0;
__id18_.useGlowFilter = false;
__id18_.glowQuality = 1;
__id18_.glowStrength = 5;
__id18_.gridFitType = "pixel";
__id18_.italic = false;
__id18_.selectable = false;
__id18_.underline = false;
try {
__id18_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id19__(){
try {
__id19_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id19_.text = "{Forever_frozen_and_alone}";
__id19_.textColor = 3381708;
__id19_.textSize = 20;
__id19_.bold = false;
__id19_.disableWordwrap = false;
__id19_.embedFonts = true;
__id19_.font = "";
__id19_.hAlign = "center";
__id19_.multiline = true;
__id19_.vAlign = "top";
__id19_.antiAliasType = "advanced";
__id19_.glowBlur = 3;
__id19_.glowColor = 0;
__id19_.useGlowFilter = false;
__id19_.glowQuality = 1;
__id19_.glowStrength = 5;
__id19_.gridFitType = "pixel";
__id19_.italic = false;
__id19_.selectable = false;
__id19_.underline = false;
try {
__id19_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 117
//Timeline_110 (Fairytale_Kiss_fla.Timeline_110)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class Timeline_110 extends MovieClip {
public var __id20_:LocalizedTextField;
public var __id21_:LocalizedTextField;
public function Timeline_110(){
__setProp___id20__();
__setProp___id21__();
}
function __setProp___id20__(){
try {
__id20_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id20_.text = "{As_evil_lures_from_above}";
__id20_.textColor = 3381708;
__id20_.textSize = 20;
__id20_.bold = false;
__id20_.disableWordwrap = false;
__id20_.embedFonts = true;
__id20_.font = "";
__id20_.hAlign = "center";
__id20_.multiline = true;
__id20_.vAlign = "top";
__id20_.antiAliasType = "advanced";
__id20_.glowBlur = 3;
__id20_.glowColor = 0;
__id20_.useGlowFilter = false;
__id20_.glowQuality = 1;
__id20_.glowStrength = 5;
__id20_.gridFitType = "pixel";
__id20_.italic = false;
__id20_.selectable = false;
__id20_.underline = false;
try {
__id20_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id21__(){
try {
__id21_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id21_.text = "{It_s_up_to_you_to_spread_the_love_}";
__id21_.textColor = 3381708;
__id21_.textSize = 20;
__id21_.bold = false;
__id21_.disableWordwrap = false;
__id21_.embedFonts = true;
__id21_.font = "";
__id21_.hAlign = "center";
__id21_.multiline = true;
__id21_.vAlign = "top";
__id21_.antiAliasType = "advanced";
__id21_.glowBlur = 3;
__id21_.glowColor = 0;
__id21_.useGlowFilter = false;
__id21_.glowQuality = 1;
__id21_.glowStrength = 5;
__id21_.gridFitType = "pixel";
__id21_.italic = false;
__id21_.selectable = false;
__id21_.underline = false;
try {
__id21_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 118
//Timeline_169 (Fairytale_Kiss_fla.Timeline_169)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class Timeline_169 extends MovieClip {
public function Timeline_169(){
addFrameScript(0, frame1, 582, frame583, 583, frame584, 584, frame585, 585, frame586, 586, frame587, 587, frame588, 588, frame589, 589, frame590);
}
function frame1(){
stop();
}
function frame583(){
prevFrame();
}
function frame584(){
prevFrame();
}
function frame585(){
prevFrame();
}
function frame586(){
prevFrame();
}
function frame587(){
prevFrame();
}
function frame588(){
prevFrame();
}
function frame589(){
prevFrame();
}
function frame590(){
prevFrame();
}
}
}//package Fairytale_Kiss_fla
Section 119
//Timeline_202 (Fairytale_Kiss_fla.Timeline_202)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class Timeline_202 extends MovieClip {
public function Timeline_202(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Fairytale_Kiss_fla
Section 120
//Timeline_215 (Fairytale_Kiss_fla.Timeline_215)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class Timeline_215 extends MovieClip {
public function Timeline_215(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Fairytale_Kiss_fla
Section 121
//Timeline_221 (Fairytale_Kiss_fla.Timeline_221)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class Timeline_221 extends MovieClip {
public function Timeline_221(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Fairytale_Kiss_fla
Section 122
//Timeline_233 (Fairytale_Kiss_fla.Timeline_233)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class Timeline_233 extends MovieClip {
public function Timeline_233(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Fairytale_Kiss_fla
Section 123
//Timeline_285 (Fairytale_Kiss_fla.Timeline_285)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class Timeline_285 extends MovieClip {
public var __id33_:LocalizedTextField;
public function Timeline_285(){
__setProp___id33__();
}
function __setProp___id33__(){
try {
__id33_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id33_.text = "{The_village_is_saved_}";
__id33_.textColor = 3381708;
__id33_.textSize = 20;
__id33_.bold = false;
__id33_.disableWordwrap = false;
__id33_.embedFonts = true;
__id33_.font = "";
__id33_.hAlign = "center";
__id33_.multiline = false;
__id33_.vAlign = "top";
__id33_.antiAliasType = "advanced";
__id33_.glowBlur = 3;
__id33_.glowColor = 0;
__id33_.useGlowFilter = false;
__id33_.glowQuality = 1;
__id33_.glowStrength = 5;
__id33_.gridFitType = "pixel";
__id33_.italic = false;
__id33_.selectable = false;
__id33_.underline = false;
try {
__id33_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 124
//Timeline_63 (Fairytale_Kiss_fla.Timeline_63)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class Timeline_63 extends MovieClip {
public var __id7_:LocalizedTextField;
public function Timeline_63(){
__setProp___id7__();
}
function __setProp___id7__(){
try {
__id7_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id7_.text = "{Complete_the_game_to_unlock_this_}";
__id7_.textColor = 0xFFFFFF;
__id7_.textSize = 17;
__id7_.bold = false;
__id7_.disableWordwrap = false;
__id7_.embedFonts = true;
__id7_.font = "";
__id7_.hAlign = "center";
__id7_.multiline = true;
__id7_.vAlign = "top";
__id7_.antiAliasType = "advanced";
__id7_.glowBlur = 3;
__id7_.glowColor = 0;
__id7_.useGlowFilter = false;
__id7_.glowQuality = 1;
__id7_.glowStrength = 5;
__id7_.gridFitType = "pixel";
__id7_.italic = false;
__id7_.selectable = false;
__id7_.underline = false;
try {
__id7_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 125
//Timeline_83 (Fairytale_Kiss_fla.Timeline_83)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class Timeline_83 extends MovieClip {
public var __id8_:LocalizedTextField;
public function Timeline_83(){
__setProp___id8__();
}
function __setProp___id8__(){
try {
__id8_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id8_.text = "{How_To_Play}";
__id8_.textColor = 3381708;
__id8_.textSize = 30;
__id8_.bold = false;
__id8_.disableWordwrap = false;
__id8_.embedFonts = true;
__id8_.font = "";
__id8_.hAlign = "center";
__id8_.multiline = false;
__id8_.vAlign = "top";
__id8_.antiAliasType = "advanced";
__id8_.glowBlur = 3;
__id8_.glowColor = 0;
__id8_.useGlowFilter = false;
__id8_.glowQuality = 1;
__id8_.glowStrength = 5;
__id8_.gridFitType = "pixel";
__id8_.italic = false;
__id8_.selectable = false;
__id8_.underline = false;
try {
__id8_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 126
//Timeline_96 (Fairytale_Kiss_fla.Timeline_96)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class Timeline_96 extends MovieClip {
public var __id12_:LocalizedTextField;
public function Timeline_96(){
__setProp___id12__();
}
function __setProp___id12__(){
try {
__id12_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id12_.text = "{Story}";
__id12_.textColor = 3381708;
__id12_.textSize = 30;
__id12_.bold = false;
__id12_.disableWordwrap = false;
__id12_.embedFonts = true;
__id12_.font = "";
__id12_.hAlign = "center";
__id12_.multiline = false;
__id12_.vAlign = "top";
__id12_.antiAliasType = "advanced";
__id12_.glowBlur = 3;
__id12_.glowColor = 0;
__id12_.useGlowFilter = false;
__id12_.glowQuality = 1;
__id12_.glowStrength = 5;
__id12_.gridFitType = "pixel";
__id12_.italic = false;
__id12_.selectable = false;
__id12_.underline = false;
try {
__id12_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 127
//txt_2_107 (Fairytale_Kiss_fla.txt_2_107)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class txt_2_107 extends MovieClip {
public var __id17_:LocalizedTextField;
public function txt_2_107(){
__setProp___id17__txt_2_();
}
function __setProp___id17__txt_2_(){
try {
__id17_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id17_.text = "{Every_smile_needs_to_be_hidden}";
__id17_.textColor = 3381708;
__id17_.textSize = 20;
__id17_.bold = false;
__id17_.disableWordwrap = false;
__id17_.embedFonts = true;
__id17_.font = "";
__id17_.hAlign = "center";
__id17_.multiline = true;
__id17_.vAlign = "top";
__id17_.antiAliasType = "advanced";
__id17_.glowBlur = 3;
__id17_.glowColor = 0;
__id17_.useGlowFilter = false;
__id17_.glowQuality = 1;
__id17_.glowStrength = 5;
__id17_.gridFitType = "pixel";
__id17_.italic = false;
__id17_.selectable = false;
__id17_.underline = false;
try {
__id17_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 128
//txt_as_106 (Fairytale_Kiss_fla.txt_as_106)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class txt_as_106 extends MovieClip {
public var __id16_:LocalizedTextField;
public function txt_as_106(){
__setProp___id16__txt_as_();
}
function __setProp___id16__txt_as_(){
try {
__id16_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id16_.text = "{Happiness_has_been_forbidden}";
__id16_.textColor = 3381708;
__id16_.textSize = 20;
__id16_.bold = false;
__id16_.disableWordwrap = false;
__id16_.embedFonts = true;
__id16_.font = "";
__id16_.hAlign = "left";
__id16_.multiline = true;
__id16_.vAlign = "top";
__id16_.antiAliasType = "advanced";
__id16_.glowBlur = 3;
__id16_.glowColor = 0;
__id16_.useGlowFilter = false;
__id16_.glowQuality = 1;
__id16_.glowStrength = 5;
__id16_.gridFitType = "pixel";
__id16_.italic = false;
__id16_.selectable = false;
__id16_.underline = false;
try {
__id16_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 129
//txt_bring_99 (Fairytale_Kiss_fla.txt_bring_99)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class txt_bring_99 extends MovieClip {
public var __id14_:LocalizedTextField;
public function txt_bring_99(){
__setProp___id14__txt_bring_();
}
function __setProp___id14__txt_bring_(){
try {
__id14_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id14_.text = "{Bringing_everybody_down}";
__id14_.textColor = 3381708;
__id14_.textSize = 20;
__id14_.bold = false;
__id14_.disableWordwrap = false;
__id14_.embedFonts = true;
__id14_.font = "";
__id14_.hAlign = "right";
__id14_.multiline = true;
__id14_.vAlign = "top";
__id14_.antiAliasType = "advanced";
__id14_.glowBlur = 3;
__id14_.glowColor = 0;
__id14_.useGlowFilter = false;
__id14_.glowQuality = 1;
__id14_.glowStrength = 5;
__id14_.gridFitType = "pixel";
__id14_.italic = false;
__id14_.selectable = false;
__id14_.underline = false;
try {
__id14_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 130
//txt_gamecomplete_283 (Fairytale_Kiss_fla.txt_gamecomplete_283)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class txt_gamecomplete_283 extends MovieClip {
public var __id30_:LocalizedTextField;
public function txt_gamecomplete_283(){
__setProp___id30__txt_gamecomplete_();
}
function __setProp___id30__txt_gamecomplete_(){
try {
__id30_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id30_.text = "{Game_Complete}";
__id30_.textColor = 3381708;
__id30_.textSize = 30;
__id30_.bold = false;
__id30_.disableWordwrap = false;
__id30_.embedFonts = true;
__id30_.font = "";
__id30_.hAlign = "center";
__id30_.multiline = false;
__id30_.vAlign = "top";
__id30_.antiAliasType = "advanced";
__id30_.glowBlur = 3;
__id30_.glowColor = 0;
__id30_.useGlowFilter = false;
__id30_.glowQuality = 1;
__id30_.glowStrength = 5;
__id30_.gridFitType = "pixel";
__id30_.italic = false;
__id30_.selectable = false;
__id30_.underline = false;
try {
__id30_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 131
//Txt_gameover_256 (Fairytale_Kiss_fla.Txt_gameover_256)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class Txt_gameover_256 extends MovieClip {
public var __id24_:LocalizedTextField;
public function Txt_gameover_256(){
__setProp___id24__Txt_gameover_();
}
function __setProp___id24__Txt_gameover_(){
try {
__id24_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id24_.text = "{Game_Over}";
__id24_.textColor = 3381708;
__id24_.textSize = 30;
__id24_.bold = false;
__id24_.disableWordwrap = false;
__id24_.embedFonts = true;
__id24_.font = "";
__id24_.hAlign = "center";
__id24_.multiline = false;
__id24_.vAlign = "top";
__id24_.antiAliasType = "advanced";
__id24_.glowBlur = 3;
__id24_.glowColor = 0;
__id24_.useGlowFilter = false;
__id24_.glowQuality = 1;
__id24_.glowStrength = 5;
__id24_.gridFitType = "pixel";
__id24_.italic = false;
__id24_.selectable = false;
__id24_.underline = false;
try {
__id24_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 132
//txt_hold2_210 (Fairytale_Kiss_fla.txt_hold2_210)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class txt_hold2_210 extends MovieClip {
public var __id22_:LocalizedTextField;
public function txt_hold2_210(){
__setProp___id22__txt_hold2_();
}
function __setProp___id22__txt_hold2_(){
try {
__id22_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id22_.text = "{Hold}";
__id22_.textColor = 0xFFFFFF;
__id22_.textSize = 15;
__id22_.bold = false;
__id22_.disableWordwrap = false;
__id22_.embedFonts = true;
__id22_.font = "";
__id22_.hAlign = "left";
__id22_.multiline = false;
__id22_.vAlign = "top";
__id22_.antiAliasType = "advanced";
__id22_.glowBlur = 3;
__id22_.glowColor = 0;
__id22_.useGlowFilter = false;
__id22_.glowQuality = 1;
__id22_.glowStrength = 5;
__id22_.gridFitType = "pixel";
__id22_.italic = false;
__id22_.selectable = false;
__id22_.underline = false;
try {
__id22_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 133
//txt_hold3_245 (Fairytale_Kiss_fla.txt_hold3_245)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class txt_hold3_245 extends MovieClip {
public var __id23_:LocalizedTextField;
public function txt_hold3_245(){
__setProp___id23__txt_hold3_();
}
function __setProp___id23__txt_hold3_(){
try {
__id23_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id23_.text = "{Hold_your_left_mouse-key_to_start_kissing}";
__id23_.textColor = 0xFFFFFF;
__id23_.textSize = 30;
__id23_.bold = false;
__id23_.disableWordwrap = false;
__id23_.embedFonts = true;
__id23_.font = "";
__id23_.hAlign = "center";
__id23_.multiline = true;
__id23_.vAlign = "top";
__id23_.antiAliasType = "advanced";
__id23_.glowBlur = 3;
__id23_.glowColor = 0;
__id23_.useGlowFilter = false;
__id23_.glowQuality = 1;
__id23_.glowStrength = 5;
__id23_.gridFitType = "pixel";
__id23_.italic = false;
__id23_.selectable = false;
__id23_.underline = false;
try {
__id23_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 134
//txt_left_258 (Fairytale_Kiss_fla.txt_left_258)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class txt_left_258 extends MovieClip {
public var __id26_:LocalizedTextField;
public function txt_left_258(){
__setProp___id26__txt_left_();
}
function __setProp___id26__txt_left_(){
try {
__id26_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id26_.text = "{Time_Left_}";
__id26_.textColor = 3381708;
__id26_.textSize = 20;
__id26_.bold = false;
__id26_.disableWordwrap = false;
__id26_.embedFonts = true;
__id26_.font = "";
__id26_.hAlign = "center";
__id26_.multiline = false;
__id26_.vAlign = "top";
__id26_.antiAliasType = "advanced";
__id26_.glowBlur = 3;
__id26_.glowColor = 0;
__id26_.useGlowFilter = false;
__id26_.glowQuality = 1;
__id26_.glowStrength = 5;
__id26_.gridFitType = "pixel";
__id26_.italic = false;
__id26_.selectable = false;
__id26_.underline = false;
try {
__id26_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 135
//txt_more_27 (Fairytale_Kiss_fla.txt_more_27)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class txt_more_27 extends MovieClip {
public var __id1_:LocalizedTextField;
public function txt_more_27(){
__setProp___id1__txt_more_();
}
function __setProp___id1__txt_more_(){
try {
__id1_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id1_.text = "{More_Games}";
__id1_.textColor = 3381708;
__id1_.textSize = 18;
__id1_.bold = false;
__id1_.disableWordwrap = false;
__id1_.embedFonts = true;
__id1_.font = "";
__id1_.hAlign = "center";
__id1_.multiline = false;
__id1_.vAlign = "top";
__id1_.antiAliasType = "advanced";
__id1_.glowBlur = 3;
__id1_.glowColor = 0;
__id1_.useGlowFilter = false;
__id1_.glowQuality = 1;
__id1_.glowStrength = 5;
__id1_.gridFitType = "pixel";
__id1_.italic = false;
__id1_.selectable = false;
__id1_.underline = false;
try {
__id1_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 136
//txt_ohno_260 (Fairytale_Kiss_fla.txt_ohno_260)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class txt_ohno_260 extends MovieClip {
public var __id28_:LocalizedTextField;
public function txt_ohno_260(){
__setProp___id28__txt_ohno_();
}
function __setProp___id28__txt_ohno_(){
try {
__id28_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id28_.text = "{Oh_no__The_evil_witch_caught_you_and_turned_you_into_stone_}";
__id28_.textColor = 3381708;
__id28_.textSize = 20;
__id28_.bold = false;
__id28_.disableWordwrap = false;
__id28_.embedFonts = true;
__id28_.font = "";
__id28_.hAlign = "left";
__id28_.multiline = true;
__id28_.vAlign = "top";
__id28_.antiAliasType = "advanced";
__id28_.glowBlur = 3;
__id28_.glowColor = 0;
__id28_.useGlowFilter = false;
__id28_.glowQuality = 1;
__id28_.glowStrength = 5;
__id28_.gridFitType = "pixel";
__id28_.italic = false;
__id28_.selectable = false;
__id28_.underline = false;
try {
__id28_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 137
//txt_score_257 (Fairytale_Kiss_fla.txt_score_257)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class txt_score_257 extends MovieClip {
public var __id25_:LocalizedTextField;
public function txt_score_257(){
__setProp___id25__txt_score_();
}
function __setProp___id25__txt_score_(){
try {
__id25_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id25_.text = "{Score_}";
__id25_.textColor = 3381708;
__id25_.textSize = 20;
__id25_.bold = false;
__id25_.disableWordwrap = false;
__id25_.embedFonts = true;
__id25_.font = "";
__id25_.hAlign = "center";
__id25_.multiline = false;
__id25_.vAlign = "top";
__id25_.antiAliasType = "advanced";
__id25_.glowBlur = 3;
__id25_.glowColor = 0;
__id25_.useGlowFilter = false;
__id25_.glowQuality = 1;
__id25_.glowStrength = 5;
__id25_.gridFitType = "pixel";
__id25_.italic = false;
__id25_.selectable = false;
__id25_.underline = false;
try {
__id25_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 138
//txt_toobad_291 (Fairytale_Kiss_fla.txt_toobad_291)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class txt_toobad_291 extends MovieClip {
public var __id34_:LocalizedTextField;
public var __id35_:LocalizedTextField;
public function txt_toobad_291(){
__setProp___id34__txt_toobad_();
__setProp___id35__txt_toobad_();
}
function __setProp___id34__txt_toobad_(){
try {
__id34_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id34_.text = "{Too_Bad_}";
__id34_.textColor = 3381708;
__id34_.textSize = 32;
__id34_.bold = false;
__id34_.disableWordwrap = false;
__id34_.embedFonts = true;
__id34_.font = "";
__id34_.hAlign = "center";
__id34_.multiline = false;
__id34_.vAlign = "top";
__id34_.antiAliasType = "advanced";
__id34_.glowBlur = 3;
__id34_.glowColor = 0;
__id34_.useGlowFilter = false;
__id34_.glowQuality = 1;
__id34_.glowStrength = 5;
__id34_.gridFitType = "pixel";
__id34_.italic = false;
__id34_.selectable = false;
__id34_.underline = false;
try {
__id34_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id35__txt_toobad_(){
try {
__id35_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id35_.text = "{Time_is_up_}";
__id35_.textColor = 3381708;
__id35_.textSize = 20;
__id35_.bold = false;
__id35_.disableWordwrap = false;
__id35_.embedFonts = true;
__id35_.font = "";
__id35_.hAlign = "center";
__id35_.multiline = false;
__id35_.vAlign = "top";
__id35_.antiAliasType = "advanced";
__id35_.glowBlur = 3;
__id35_.glowColor = 0;
__id35_.useGlowFilter = false;
__id35_.glowQuality = 1;
__id35_.glowStrength = 5;
__id35_.gridFitType = "pixel";
__id35_.italic = false;
__id35_.selectable = false;
__id35_.underline = false;
try {
__id35_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 139
//txt_totalscore_259 (Fairytale_Kiss_fla.txt_totalscore_259)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class txt_totalscore_259 extends MovieClip {
public var __id27_:LocalizedTextField;
public function txt_totalscore_259(){
__setProp___id27__txt_totalscore_();
}
function __setProp___id27__txt_totalscore_(){
try {
__id27_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id27_.text = "{Total_Score_}";
__id27_.textColor = 3381708;
__id27_.textSize = 20;
__id27_.bold = false;
__id27_.disableWordwrap = false;
__id27_.embedFonts = true;
__id27_.font = "";
__id27_.hAlign = "center";
__id27_.multiline = false;
__id27_.vAlign = "top";
__id27_.antiAliasType = "advanced";
__id27_.glowBlur = 3;
__id27_.glowColor = 0;
__id27_.useGlowFilter = false;
__id27_.glowQuality = 1;
__id27_.glowStrength = 5;
__id27_.gridFitType = "pixel";
__id27_.italic = false;
__id27_.selectable = false;
__id27_.underline = false;
try {
__id27_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 140
//txt_use_84 (Fairytale_Kiss_fla.txt_use_84)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class txt_use_84 extends MovieClip {
public var __id9_:LocalizedTextField;
public var __id10_:LocalizedTextField;
public function txt_use_84(){
__setProp___id9__txt_use_();
__setProp___id10__txt_use_();
}
function __setProp___id9__txt_use_(){
try {
__id9_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id9_.text = "{Use_your_left_mouse-key_to_start_kissing__Do_not_get_caught_by_the_evil_witch__Spread_the_love_and_save_the_village_}";
__id9_.textColor = 3381708;
__id9_.textSize = 20;
__id9_.bold = false;
__id9_.disableWordwrap = false;
__id9_.embedFonts = true;
__id9_.font = "";
__id9_.hAlign = "left";
__id9_.multiline = true;
__id9_.vAlign = "top";
__id9_.antiAliasType = "advanced";
__id9_.glowBlur = 3;
__id9_.glowColor = 0;
__id9_.useGlowFilter = false;
__id9_.glowQuality = 1;
__id9_.glowStrength = 5;
__id9_.gridFitType = "pixel";
__id9_.italic = false;
__id9_.selectable = false;
__id9_.underline = false;
try {
__id9_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id10__txt_use_(){
try {
__id10_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id10_.text = "{You_can_do_it_}";
__id10_.textColor = 3381708;
__id10_.textSize = 32;
__id10_.bold = false;
__id10_.disableWordwrap = false;
__id10_.embedFonts = true;
__id10_.font = "";
__id10_.hAlign = "left";
__id10_.multiline = false;
__id10_.vAlign = "top";
__id10_.antiAliasType = "advanced";
__id10_.glowBlur = 3;
__id10_.glowColor = 0;
__id10_.useGlowFilter = false;
__id10_.glowQuality = 1;
__id10_.glowStrength = 5;
__id10_.gridFitType = "pixel";
__id10_.italic = false;
__id10_.selectable = false;
__id10_.underline = false;
try {
__id10_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 141
//txt_wicked_98 (Fairytale_Kiss_fla.txt_wicked_98)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class txt_wicked_98 extends MovieClip {
public var __id13_:LocalizedTextField;
public function txt_wicked_98(){
__setProp___id13__txt_wicked_();
}
function __setProp___id13__txt_wicked_(){
try {
__id13_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id13_.text = "{A_wicked_witch_has_come_to_town}";
__id13_.textColor = 3381708;
__id13_.textSize = 20;
__id13_.bold = false;
__id13_.disableWordwrap = false;
__id13_.embedFonts = true;
__id13_.font = "";
__id13_.hAlign = "left";
__id13_.multiline = true;
__id13_.vAlign = "top";
__id13_.antiAliasType = "advanced";
__id13_.glowBlur = 3;
__id13_.glowColor = 0;
__id13_.useGlowFilter = false;
__id13_.glowQuality = 1;
__id13_.glowStrength = 5;
__id13_.gridFitType = "pixel";
__id13_.italic = false;
__id13_.selectable = false;
__id13_.underline = false;
try {
__id13_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 142
//txt_youdidit_284 (Fairytale_Kiss_fla.txt_youdidit_284)
package Fairytale_Kiss_fla {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class txt_youdidit_284 extends MovieClip {
public var __id32_:LocalizedTextField;
public var __id31_:LocalizedTextField;
public function txt_youdidit_284(){
__setProp___id31__txt_youdidit_();
__setProp___id32__txt_youdidit_();
}
function __setProp___id31__txt_youdidit_(){
try {
__id31_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id31_.text = "{You_did_it_}";
__id31_.textColor = 3381708;
__id31_.textSize = 32;
__id31_.bold = false;
__id31_.disableWordwrap = false;
__id31_.embedFonts = true;
__id31_.font = "";
__id31_.hAlign = "left";
__id31_.multiline = false;
__id31_.vAlign = "top";
__id31_.antiAliasType = "advanced";
__id31_.glowBlur = 3;
__id31_.glowColor = 0;
__id31_.useGlowFilter = false;
__id31_.glowQuality = 1;
__id31_.glowStrength = 5;
__id31_.gridFitType = "pixel";
__id31_.italic = false;
__id31_.selectable = false;
__id31_.underline = false;
try {
__id31_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id32__txt_youdidit_(){
try {
__id32_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id32_.text = "{Your_love_turned_the_evil_witch_into_stone_}";
__id32_.textColor = 3381708;
__id32_.textSize = 20;
__id32_.bold = false;
__id32_.disableWordwrap = false;
__id32_.embedFonts = true;
__id32_.font = "";
__id32_.hAlign = "left";
__id32_.multiline = true;
__id32_.vAlign = "top";
__id32_.antiAliasType = "advanced";
__id32_.glowBlur = 3;
__id32_.glowColor = 0;
__id32_.useGlowFilter = false;
__id32_.glowQuality = 1;
__id32_.glowStrength = 5;
__id32_.gridFitType = "pixel";
__id32_.italic = false;
__id32_.selectable = false;
__id32_.underline = false;
try {
__id32_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Fairytale_Kiss_fla
Section 143
//Back (gs.easing.Back)
package gs.easing {
public class Back {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2));
};
_arg1 = (_arg1 - 2);
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2));
}
}
}//package gs.easing
Section 144
//TweenEvent (gs.events.TweenEvent)
package gs.events {
import flash.events.*;
public class TweenEvent extends Event {
public var info:Object;
public static const version:Number = 0.9;
public static const START:String = "start";
public static const UPDATE:String = "update";
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 145
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class AutoAlphaPlugin extends TweenPlugin {
protected var _tweenVisible:Boolean;
protected var _visible:Boolean;
protected var _tween:TweenLite;
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 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)));
}
public function onCompleteTween():void{
if (((((_tweenVisible) && (!((_tween.vars.runBackwards == true))))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (((!((_target.visible == true))) && (_tweenVisible))){
_target.visible = true;
};
}
}
}//package gs.plugins
Section 146
//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 147
//BezierPlugin (gs.plugins.BezierPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class BezierPlugin extends TweenPlugin {
protected var _target:Object;
protected var _orientData:Array;
protected var _orient:Boolean;
protected var _future:Object;
protected var _beziers:Object;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
protected static const _RAD2DEG:Number = 57.2957795130823;
public function BezierPlugin(){
_future = {};
super();
this.propName = "bezier";
this.overwriteProps = [];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg2 is Array)){
return (false);
};
init(_arg3, (_arg2 as Array), false);
return (true);
}
protected function init(_arg1:TweenLite, _arg2:Array, _arg3:Boolean):void{
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;
};
};
var _local4:Object = {};
_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 killProps(_arg1:Object):void{
var _local2:String;
for (_local2 in _beziers) {
if ((_local2 in _arg1)){
delete _beziers[_local2];
};
};
super.killProps(_arg1);
}
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++;
};
};
}
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 = {};
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 148
//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 149
//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 150
//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 VERSION:Number = 1.01;
public static const API:Number = 1;
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 _lumR:Number = 0.212671;
protected static var _lumG:Number = 0.71516;
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{
_target = _arg1;
_type = ColorMatrixFilter;
var _local4:Object = _arg2;
initFilter({}, new ColorMatrixFilter(_idMatrix.slice()));
_matrix = ColorMatrixFilter(_filter).matrix;
var _local5:Array = [];
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 colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{
if (isNaN(_arg2)){
return (_arg1);
};
if (isNaN(_arg3)){
_arg3 = 1;
};
var _local4:Number = (((_arg2 >> 16) & 0xFF) / 0xFF);
var _local5:Number = (((_arg2 >> 8) & 0xFF) / 0xFF);
var _local6:Number = ((_arg2 & 0xFF) / 0xFF);
var _local7:Number = (1 - _arg3);
var _local8:Array = [(_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 setThreshold(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
var _local3:Array = [(_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 setHue(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 * (Math.PI / 180));
var _local3:Number = Math.cos(_arg2);
var _local4:Number = Math.sin(_arg2);
var _local5:Array = [((_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 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 setSaturation(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
var _local3:Number = (1 - _arg2);
var _local4:Number = (_local3 * _lumR);
var _local5:Number = (_local3 * _lumG);
var _local6:Number = (_local3 * _lumB);
var _local7:Array = [(_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 setContrast(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 + 0.01);
var _local3:Array = [_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));
}
public static function applyMatrix(_arg1:Array, _arg2:Array):Array{
var _local6:int;
var _local7:int;
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (_arg2);
};
var _local3:Array = [];
var _local4:int;
var _local5:int;
_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);
}
}
}//package gs.plugins
Section 151
//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 152
//EndArrayPlugin (gs.plugins.EndArrayPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import gs.utils.tween.*;
public class EndArrayPlugin extends TweenPlugin {
protected var _a:Array;
protected var _info: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 onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (false);
};
init((_arg1 as Array), _arg2);
return (true);
}
public function init(_arg1:Array, _arg2:Array):void{
_a = _arg1;
var _local3:int = (_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 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--;
};
};
}
}
}//package gs.plugins
Section 153
//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 _target:Object;
protected var _type:Class;
protected var _filter:BitmapFilter;
protected var _index:int;
protected var _remove:Boolean;
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
protected function initFilter(_arg1:Object, _arg2:BitmapFilter):void{
var _local4:String;
var _local5:int;
var _local6:HexColorsPlugin;
var _local3:Array = _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;
};
var _local7:Object = ((_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);
};
};
};
};
}
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;
};
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:TweenInfo;
var _local4:Array = _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;
}
}
}//package gs.plugins
Section 154
//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;
public static const API:Number = 1;
public function FramePlugin(){
this.propName = "frame";
this.overwriteProps = ["frame"];
this.round = true;
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){
return (false);
};
_target = (_arg1 as MovieClip);
addTween(this, "frame", _target.currentFrame, _arg2, "frame");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.gotoAndStop(this.frame);
}
}
}//package gs.plugins
Section 155
//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 156
//HexColorsPlugin (gs.plugins.HexColorsPlugin)
package gs.plugins {
import flash.display.*;
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 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);
}
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;
};
}
override public function killProps(_arg1:Object):void{
var _local2:int = (_colors.length - 1);
while (_local2 > -1) {
if (_arg1[_colors[_local2][1]] != undefined){
_colors.splice(_local2, 1);
};
_local2--;
};
super.killProps(_arg1);
}
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--;
};
}
}
}//package gs.plugins
Section 157
//RemoveTintPlugin (gs.plugins.RemoveTintPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
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 158
//RoundPropsPlugin (gs.plugins.RoundPropsPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
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 159
//ShortRotationPlugin (gs.plugins.ShortRotationPlugin)
package gs.plugins {
import flash.display.*;
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 = ((_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 160
//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 _target:DisplayObject;
protected var _ct:ColorTransform;
public static const VERSION:Number = 1.01;
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 onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg1 is DisplayObject)){
return (false);
};
var _local4:ColorTransform = new ColorTransform();
if (((!((_arg2 == null))) && (!((_arg3.exposedVars.removeTint == true))))){
_local4.color = uint(_arg2);
};
if (((!((_arg3.exposedVars.alpha == undefined))) || (!((_arg3.exposedVars.autoAlpha == undefined))))){
_local4.alphaMultiplier = ((_arg3.exposedVars.alpha)!=undefined) ? _arg3.exposedVars.alpha : _arg3.exposedVars.autoAlpha;
_arg3.killVars({alpha:1, autoAlpha:1});
} else {
_local4.alphaMultiplier = _arg1.alpha;
};
init((_arg1 as DisplayObject), _local4);
return (true);
}
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 set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.transform.colorTransform = _ct;
}
}
}//package gs.plugins
Section 161
//TweenPlugin (gs.plugins.TweenPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class TweenPlugin {
public var propName:String;
public var overwriteProps:Array;
public var round:Boolean;
public var onComplete:Function;
protected var _tweens:Array;
protected var _changeFactor:Number;// = 0
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
public function TweenPlugin(){
_tweens = [];
super();
}
public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName);
return (true);
}
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);
};
};
}
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;
}
public function get changeFactor():Number{
return (_changeFactor);
}
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 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 162
//VisiblePlugin (gs.plugins.VisiblePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class VisiblePlugin extends TweenPlugin {
protected var _target:Object;
protected var _tween:TweenLite;
protected var _visible:Boolean;
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 onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(_arg2);
return (true);
}
public function onCompleteTween():void{
if (((!((_tween.vars.runBackwards == true))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function set changeFactor(_arg1:Number):void{
if (_target.visible != true){
_target.visible = true;
};
}
}
}//package gs.plugins
Section 163
//VolumePlugin (gs.plugins.VolumePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.media.*;
public class VolumePlugin extends TweenPlugin {
protected var _target:Object;
protected var _st:SoundTransform;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function VolumePlugin(){
this.propName = "volume";
this.overwriteProps = ["volume"];
}
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 (Boolean(!((_tweens.length == 0))));
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
}
}//package gs.plugins
Section 164
//ArrayTweenInfo (gs.utils.tween.ArrayTweenInfo)
package gs.utils.tween {
public class ArrayTweenInfo {
public var index:uint;
public var start:Number;
public var change:Number;
public function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){
this.index = _arg1;
this.start = _arg2;
this.change = _arg3;
}
}
}//package gs.utils.tween
Section 165
//TweenInfo (gs.utils.tween.TweenInfo)
package gs.utils.tween {
public class TweenInfo {
public var target:Object;
public var property:String;
public var start:Number;
public var change:Number;
public var name: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 166
//OverwriteManager (gs.OverwriteManager)
package gs {
import flash.utils.*;
import gs.utils.tween.*;
import flash.errors.*;
public class OverwriteManager {
public static const version:Number = 3.11;
public static const NONE:int = 0;
public static const ALL:int = 1;
public static const AUTO:int = 2;
public static const CONCURRENT:int = 3;
public static var mode:int;
public static var enabled:Boolean;
public static function init(_arg1:int=2):int{
if (TweenLite.version < 10.04){
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);
}
public static function manageOverwrites(_arg1:TweenLite, _arg2:Array):void{
var _local7:int;
var _local8:TweenLite;
var _local9:Array;
var _local10:Object;
var _local11:int;
var _local12:TweenInfo;
var _local13:Array;
var _local3:Object = _arg1.vars;
var _local4:int = ((_local3.overwrite)==undefined) ? mode : int(_local3.overwrite);
if ((((_local4 < 2)) || ((_arg2 == null)))){
return;
};
var _local5:Number = _arg1.startTime;
var _local6:Array = [];
_local7 = (_arg2.length - 1);
while (_local7 > -1) {
_local8 = _arg2[_local7];
if (((((!((_local8 == _arg1))) && ((_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){
_local9 = _arg1.tweens;
_local10 = {};
_local7 = (_local9.length - 1);
while (_local7 > -1) {
_local12 = _local9[_local7];
if (((_local12.isPlugin) && ((_local12.name == "_MULTIPLE_")))){
_local13 = _local12.target.overwriteProps;
_local11 = (_local13.length - 1);
while (_local11 > -1) {
_local10[_local13[_local11]] = true;
_local11--;
};
_local10[_local12.target.propName] = true;
} else {
_local10[_local12.name] = true;
};
_local7--;
};
_local7 = (_local6.length - 1);
while (_local7 > -1) {
killVars(_local10, _local6[_local7].exposedVars, _local6[_local7].tweens);
_local7--;
};
} else {
_local7 = (_local6.length - 1);
while (_local7 > -1) {
_local6[_local7].enabled = false;
_local7--;
};
};
}
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];
};
}
}
}//package gs
Section 167
//TweenLite (gs.TweenLite)
package gs {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import gs.utils.tween.*;
import gs.plugins.*;
public class TweenLite {
public var duration:Number;
public var vars:Object;
public var delay:Number;
public var startTime:Number;
public var initTime:Number;
public var tweens:Array;
public var target:Object;
public var active:Boolean;
public var ease:Function;
public var initted:Boolean;
public var combinedTimeScale:Number;
public var gc:Boolean;
public var started:Boolean;
public var exposedVars:Object;
protected var _hasPlugins:Boolean;
protected var _hasUpdate:Boolean;
public static const version:Number = 10.06;
public static var plugins:Object = {};
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var defaultEase:Function = TweenLite.easeOut;
public static var overwriteManager:Object;
public static var currentTime:uint;
public static var masterList:Dictionary = new Dictionary(false);
public static var timingSprite:Sprite = new Sprite();
private static var _tlInitted:Boolean;
private static var _timer:Timer = new Timer(2000);
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};
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
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));
var _local4:int = ((((_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 initTweenVals():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:TweenInfo;
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;
}
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 render(_arg1:uint):void{
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
var _local2:Number = ((_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 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 function clear():void{
this.tweens = [];
this.vars = (this.exposedVars = {ease:this.vars.ease});
_hasUpdate = false;
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.exposedVars, this.tweens);
};
}
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 get enabled():Boolean{
return ((this.gc) ? false : true);
}
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 static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
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 updateAll(_arg1:Event=null):void{
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
var _local2:uint = (currentTime = getTimer());
var _local3:Dictionary = 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];
};
}
protected static function killGarbage(_arg1:TimerEvent):void{
var _local3:Object;
var _local2:Dictionary = masterList;
for (_local3 in _local2) {
if (_local2[_local3].length == 0){
delete _local2[_local3];
};
};
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
}
}//package gs
Section 168
//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;
protected var _repeatCount:Number;
protected var _timeScale:Number;
public var pauseTime:Number;
public static const version:Number = 10.08;
private static var _activatedPlugins:Boolean = TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin, HexColorsPlugin, BlurFilterPlugin, ColorMatrixFilterPlugin, BevelFilterPlugin, DropShadowFilterPlugin, GlowFilterPlugin, RoundPropsPlugin, BezierPlugin, BezierThroughPlugin, ShortRotationPlugin]);
private static var _versionCheck:Boolean = ((TweenLite.version)<10.06) ? 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.") : true;
;
private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init();
;
public static var killTweensOf:Function = TweenLite.killTweensOf;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var removeTween:Function = TweenLite.removeTween;
protected static var _pausedTweens:Dictionary = new Dictionary(false);
protected static var _globalTimeScale:Number = 1;
public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){
super(_arg1, _arg2, _arg3);
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;
};
}
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.exposedVars.startAt != null){
this.exposedVars.startAt.overwrite = 0;
new TweenMax(this.target, 0, this.exposedVars.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--;
};
};
}
public function pause():void{
if (isNaN(this.pauseTime)){
this.pauseTime = currentTime;
this.startTime = 999999999999999;
this.enabled = false;
_pausedTweens[this] = this;
};
}
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];
};
}
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 reverse(_arg1:Boolean=true, _arg2:Boolean=true):void{
this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease;
var _local3:Number = 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 reverseEase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.ease((_arg4 - _arg1), _arg2, _arg3, _arg4));
}
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 setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{
var _local5:int;
var _local6:Object;
var _local7:Array;
var _local8:Boolean;
var _local9:Array;
var _local10:Object;
var _local11:int;
var _local12:Array;
var _local4:Number = this.progress;
if (this.initted){
if (((!(_arg3)) && (!((_local4 == 0))))){
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
if (this.tweens[_local5].name == _arg1){
this.tweens[_local5].target[this.tweens[_local5].property] = this.tweens[_local5].start;
};
_local5--;
};
};
_local6 = this.vars;
_local7 = this.tweens;
_local8 = _hasPlugins;
this.tweens = [];
this.vars = (this.exposedVars = {});
this.vars[_arg1] = _arg2;
initTweenVals();
if (((!((this.ease == reverseEase))) && ((_local6.ease is Function)))){
this.ease = _local6.ease;
};
if (((_arg3) && (!((_local4 == 0))))){
adjustStartValues();
};
_local9 = this.tweens;
this.vars = _local6;
this.tweens = _local7;
_local10 = {};
_local5 = (_local9.length - 1);
while (_local5 > -1) {
if (_local9[_local5].name == "_MULTIPLE_"){
_local12 = _local9[_local5].target.overwriteProps;
_local11 = (_local12.length - 1);
while (_local11 > -1) {
_local10[_local12[_local11]] = true;
_local11--;
};
} else {
_local10[_local9[_local5].name] = true;
};
_local5--;
};
killVars(_local10);
this.tweens = this.tweens.concat(_local9);
_hasPlugins = Boolean(((_local8) || (_hasPlugins)));
};
this.vars[_arg1] = _arg2;
}
protected function adjustStartValues():void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:TweenInfo;
var _local6:int;
var _local1:Number = 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 killProperties(_arg1:Array):void{
var _local3:int;
var _local2:Object = {};
_local3 = (_arg1.length - 1);
while (_local3 > -1) {
_local2[_arg1[_local3]] = true;
_local3--;
};
killVars(_local2);
}
override public function render(_arg1:uint):void{
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
var _local2:Number = (((_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);
};
}
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);
}
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 onStartDispatcher(... _args):void{
if (_callbacks.onStart != null){
_callbacks.onStart.apply(null, this.vars.onStartParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START));
}
protected function onUpdateDispatcher(... _args):void{
if (_callbacks.onUpdate != null){
_callbacks.onUpdate.apply(null, this.vars.onUpdateParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE));
}
protected function onCompleteDispatcher(... _args):void{
if (_callbacks.onComplete != null){
_callbacks.onComplete.apply(null, this.vars.onCompleteParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE));
}
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 removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (_dispatcher != null){
_dispatcher.removeEventListener(_arg1, _arg2, _arg3);
};
}
public function hasEventListener(_arg1:String):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.hasEventListener(_arg1));
}
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 paused():Boolean{
return (!(isNaN(this.pauseTime)));
}
public function set paused(_arg1:Boolean):void{
if (_arg1){
pause();
} else {
resume();
};
}
public function get reversed():Boolean{
return ((this.ease == reverseEase));
}
public function set reversed(_arg1:Boolean):void{
if (this.reversed != _arg1){
reverse();
};
}
public function get timeScale():Number{
return (_timeScale);
}
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;
}
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 get progress():Number{
var _local1:Number = (isNaN(this.pauseTime)) ? currentTime : this.pauseTime;
var _local2:Number = (((((_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 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 static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
_arg3.runBackwards = true;
return (new TweenMax(_arg1, _arg2, _arg3));
}
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 setGlobalTimeScale(_arg1:Number):void{
var _local3:int;
var _local4:Array;
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
var _local2:Dictionary = 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 getTweensOf(_arg1:Object):Array{
var _local4:TweenLite;
var _local5:int;
var _local2:Array = masterList[_arg1];
var _local3:Array = [];
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 isTweening(_arg1:Object):Boolean{
var _local2:Array = getTweensOf(_arg1);
var _local3:int = (_local2.length - 1);
while (_local3 > -1) {
if (((_local2[_local3].active) && (!(_local2[_local3].gc)))){
return (true);
};
_local3--;
};
return (false);
}
public static function getAllTweens():Array{
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
var _local1:Dictionary = masterList;
var _local2:Array = [];
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 killAllTweens(_arg1:Boolean=false):void{
killAll(_arg1, true, false);
}
public static function killAllDelayedCalls(_arg1:Boolean=false):void{
killAll(_arg1, false, true);
}
public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true, _arg3:Boolean=true):void{
var _local5:Boolean;
var _local6:int;
var _local4:Array = 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 pauseAll(_arg1:Boolean=true, _arg2:Boolean=false):void{
changePause(true, _arg1, _arg2);
}
public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=false):void{
changePause(false, _arg1, _arg2);
}
public static function changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false):void{
var _local5:Boolean;
var _local4:Array = getAllTweens();
var _local6:int = (_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 set globalTimeScale(_arg1:Number):void{
setGlobalTimeScale(_arg1);
}
public static function get globalTimeScale():Number{
return (_globalTimeScale);
}
}
}//package gs
Section 169
//Bird2 (lib.Bird2)
package lib {
import flash.display.*;
import flash.events.*;
public class Bird2 extends MovieClip {
public function Bird2(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
gotoAndPlay((int((Math.random() * totalFrames)) + 1));
}
}
}//package lib
Section 170
//CD_Button (lib.CD_Button)
package lib {
import flash.display.*;
import flash.events.*;
import com.greensock.*;
public class CD_Button extends MovieClip {
private var cutMc;
public function CD_Button(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1){
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
mouseChildren = false;
buttonMode = true;
addEventListener(MouseEvent.MOUSE_OVER, _mouseOver);
addEventListener(MouseEvent.MOUSE_OUT, _mouseOut);
addEventListener(MouseEvent.CLICK, _click);
}
private function _click(_arg1:MouseEvent):void{
}
private function _mouseOut(_arg1:MouseEvent):void{
TweenMax.to(this, 0.1, {colorMatrixFilter:{}});
}
private function _mouseOver(_arg1:MouseEvent):void{
TweenMax.to(this, 0.1, {colorMatrixFilter:{brightness:1.3}});
}
}
}//package lib
Section 171
//CD_Button_Normal (lib.CD_Button_Normal)
package lib {
import flash.display.*;
import flash.events.*;
import com.greensock.*;
import flash.utils.*;
public class CD_Button_Normal extends MovieClip {
public var bg:MovieClip;
var _mc;
var id:int;
var list:Array;
var addnewhart:Boolean;
var js:int;
public function CD_Button_Normal(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1){
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(Event.REMOVED_FROM_STAGE, _onUnload);
mouseChildren = false;
buttonMode = true;
addEventListener(MouseEvent.MOUSE_OVER, _mouseOver);
addEventListener(MouseEvent.MOUSE_OUT, _mouseOut);
addEventListener(MouseEvent.CLICK, _click);
addEventListener(Event.ENTER_FRAME, _onFrame);
list = [];
addnewhart = false;
js = 0;
}
private function _onFrame(_arg1:Event):void{
var _local3:*;
var _local4:*;
var _local5:*;
if (addnewhart){
js++;
if (js > 2){
js = 0;
_local3 = new Game_ui_introHart();
addChild(_local3);
_local3.y = 30;
_local3.x = (Math.random() * 197);
_local4 = ((Math.random() * 0.8) + 0.4);
_local3.scaleX = (_local3.scaleY = _local4);
_local3.rotation = (_local3.rotation - (Math.random() * 80));
list.push(_local3);
};
};
var _local2:* = (list.length - 1);
while (_local2 > -1) {
_local5 = list[_local2];
list[_local2].y = (_local5.y - 5);
if (_local5.y < -70){
removeChild(_local5);
list.splice(_local2, 1);
};
_local2--;
};
}
private function _onUnload(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, _onUnload);
clearTimeout(id);
}
private function _click(_arg1:MouseEvent):void{
CD_SoundCtrl.playSound("s_bt_click_001");
}
private function _mouseOut(_arg1:MouseEvent):void{
setHart(true);
clearTimeout(id);
addnewhart = false;
TweenMax.to(bg, 0.05, {scaleX:1, scaleY:1, colorMatrixFilter:{}, glowFilter:{remove:true}});
}
private function _mouseOver(_arg1:MouseEvent):void{
setHart(false);
id = setTimeout(big, 150);
TweenMax.to(bg, 0.05, {colorMatrixFilter:{brightness:1.2}, glowFilter:{color:0xFFFFFF, alpha:1, blurX:1.2, blurY:1.2, strength:10}});
}
private function big():void{
addnewhart = true;
CD_SoundCtrl.playSound("s_bt_over_001");
}
private function setHart(_arg1:Boolean):void{
var _local2:* = 1;
while (_local2 < 6) {
bg[("h" + _local2)].visible = _arg1;
_local2++;
};
}
}
}//package lib
Section 172
//CD_Button2 (lib.CD_Button2)
package lib {
import flash.display.*;
import flash.events.*;
import com.greensock.*;
public class CD_Button2 extends MovieClip {
var _mc;
private var cutMc;
public function CD_Button2(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1){
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
mouseChildren = false;
buttonMode = true;
addEventListener(MouseEvent.MOUSE_OVER, _mouseOver);
addEventListener(MouseEvent.MOUSE_OUT, _mouseOut);
addEventListener(MouseEvent.CLICK, _click);
}
private function _click(_arg1:MouseEvent):void{
}
private function _mouseOut(_arg1:MouseEvent):void{
TweenMax.to(this, 0.05, {colorMatrixFilter:{}, glowFilter:{remove:true}});
}
private function _mouseOver(_arg1:MouseEvent):void{
TweenMax.to(this, 0.05, {colorMatrixFilter:{brightness:1.2}, glowFilter:{color:0xFFFFFF, alpha:1, blurX:3, blurY:3, strength:10}});
}
}
}//package lib
Section 173
//CD_ScreenChange (lib.CD_ScreenChange)
package lib {
import flash.display.*;
import flash.events.*;
public class CD_ScreenChange extends MovieClip {
public function CD_ScreenChange(){
addFrameScript(33, frame34, 44, frame45);
}
function frame34(){
dispatchEvent(new Event("END"));
}
function frame45(){
try {
parent.removeChild(this);
} catch(err) {
};
stop();
}
}
}//package lib
Section 174
//CD_SetQuality (lib.CD_SetQuality)
package lib {
import flash.display.*;
import flash.events.*;
public class CD_SetQuality extends MovieClip {
public var bt0:画质;
public var bt1:画面质量2;
public var bt2:画面质量3;
public static var quality:int = 1;
public function CD_SetQuality(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(Event.REMOVED_FROM_STAGE, _onUnload);
}
private function _onUnload(_arg1:Event){
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
removeEventListener(Event.REMOVED_FROM_STAGE, _onUnload);
var _local2:* = (numChildren - 1);
while (_local2 > -1) {
removeChildAt(_local2);
_local2--;
};
}
private function _onLoad(_arg1:Event){
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
var _local2:* = 0;
while (_local2 < 3) {
this[("bt" + _local2)].addEventListener(MouseEvent.CLICK, _onClick);
this[("bt" + _local2)].num = 1;
_local2++;
};
bt0.gotoAndStop(quality);
if (CD_SoundCtrl.musicON){
bt1.gotoAndStop(1);
} else {
bt1.gotoAndStop(2);
};
if (CD_SoundCtrl.soundON){
bt2.gotoAndStop(1);
} else {
bt2.gotoAndStop(2);
};
}
private function _onClick(_arg1:MouseEvent){
switch (_arg1.target.name){
case "bt0":
quality++;
if (quality > 3){
quality = 1;
};
switch (quality){
case 1:
stage.quality = StageQuality.HIGH;
break;
case 2:
stage.quality = StageQuality.MEDIUM;
break;
case 3:
stage.quality = StageQuality.LOW;
break;
default:
break;
};
bt0.gotoAndStop(quality);
break;
case "bt1":
if (!CD_SoundCtrl.musicON){
bt1.gotoAndStop(1);
CD_SoundCtrl.musicON = true;
} else {
bt1.gotoAndStop(2);
CD_SoundCtrl.musicON = false;
};
break;
case "bt2":
if (!CD_SoundCtrl.soundON){
bt2.gotoAndStop(1);
CD_SoundCtrl.soundON = true;
} else {
bt2.gotoAndStop(2);
CD_SoundCtrl.soundON = false;
};
break;
default:
break;
};
}
}
}//package lib
Section 175
//CD_SoundCtrl (lib.CD_SoundCtrl)
package lib {
import flash.utils.*;
import flash.media.*;
public class CD_SoundCtrl {
private var _soundLoop:CD_SoundCtrl;
private var musicChannel:SoundChannel;
private var musicTransform:SoundTransform;
private var soundChannel:SoundChannel;
private var soundTransform:SoundTransform;
public var musicNow:String;// = ""
private static var _soundON:Boolean = true;
private static var _musicON:Boolean = true;
public static var obj:CD_SoundCtrl;
private static var soundArr:Array = [];
public function CD_SoundCtrl(){
obj = this;
}
private function _StopMusic():void{
try {
musicChannel.stop();
} catch(err) {
};
try {
musicNow = "";
} catch(err) {
};
}
private function _playMusic(_arg1:String, _arg2:int){
var _local3:*;
var _local4:*;
if (musicNow != _arg1){
musicNow = _arg1;
try {
musicChannel.stop();
} catch(err) {
};
_local3 = (getDefinitionByName(_arg1) as Class);
_local4 = new (_local3);
try {
musicChannel = _local4.play(0, _arg2);
} catch(err) {
};
_Change();
};
}
private function _Change():void{
if (_musicON){
try {
musicChannel.soundTransform = new SoundTransform(1);
} catch(err:Error) {
};
} else {
try {
musicChannel.soundTransform = new SoundTransform(0);
} catch(err:Error) {
};
};
}
private function _playSound(_arg1:String, _arg2:int){
var _local3:* = (getDefinitionByName(_arg1) as Class);
var _local4:* = new (_local3);
try {
soundChannel = _local4.play(0, _arg2);
} catch(err) {
};
try {
soundTransform = new SoundTransform(1);
} catch(err) {
};
try {
soundChannel.soundTransform = soundTransform;
} catch(err) {
};
}
public static function get soundON():Boolean{
return (_soundON);
}
public static function set soundON(_arg1:Boolean){
var _local2:int;
_soundON = _arg1;
if (_soundON){
_local2 = 0;
while (_local2 < soundArr.length) {
try {
soundArr[_local2][2].soundTransform = new SoundTransform(1);
} catch(err) {
};
_local2++;
};
} else {
_local2 = 0;
while (_local2 < soundArr.length) {
try {
soundArr[_local2][2].soundTransform = new SoundTransform(0);
} catch(err) {
};
_local2++;
};
};
}
public static function get musicON():Boolean{
return (_musicON);
}
public static function set musicON(_arg1:Boolean){
_musicON = _arg1;
Change();
}
public static function Change():void{
obj._Change();
}
public static function StopMusic():void{
try {
obj._StopMusic();
} catch(err) {
};
}
public static function playMusic(_arg1:String, _arg2:int=99999){
obj._playMusic(_arg1, _arg2);
}
public static function playSoundLoop(_arg1:String, _arg2):void{
var _local3:Boolean;
var _local4:int;
while (_local4 < soundArr.length) {
if ((((soundArr[_local4][0] == _arg1)) && ((soundArr[_local4][1] == _arg2)))){
_local3 = false;
break;
};
_local4++;
};
if (_local3){
soundArr.push([_arg1, _arg2, playSound2(_arg1)]);
};
}
public static function stopSoundLoop(_arg1:String, _arg2):void{
var _local3:int;
while (_local3 < soundArr.length) {
if ((((soundArr[_local3][0] == _arg1)) && ((soundArr[_local3][1] == _arg2)))){
try {
soundArr[_local3][2].stop();
} catch(err:Error) {
};
soundArr.splice(_local3, 1);
break;
};
_local3++;
};
}
public static function playSound(_arg1:String, _arg2:int=1){
if (soundON){
obj._playSound(_arg1, _arg2);
};
}
public static function playSound2(_arg1:String){
var _local4:SoundChannel;
var _local2:* = (getDefinitionByName(_arg1) as Class);
var _local3:* = new (_local2);
try {
_local4 = _local3.play(0, 99999);
} catch(err) {
};
if (soundON){
try {
_local4.soundTransform = new SoundTransform(1);
} catch(err) {
};
} else {
try {
_local4.soundTransform = new SoundTransform(0);
} catch(err) {
};
};
return (_local4);
}
}
}//package lib
Section 176
//CD_StageManage (lib.CD_StageManage)
package lib {
import flash.display.*;
import flash.events.*;
import spill.localisation.*;
import flash.utils.*;
public class CD_StageManage extends Sprite {
private var loader_game:Sprite;
private var loader_screenchange:Sprite;
private var changeTo:String;
private var changeFX:int;
public var moden:int;// = 0
private static var obj;
public function CD_StageManage(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1:Event):void{
var _local2:*;
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
obj = this;
loader_game = new Sprite();
addChild(loader_game);
loader_screenchange = new Sprite();
addChild(loader_screenchange);
if ((((SpilGame.currentLanguage.name == "cn")) && (!((SpilGame.portalGroup == PortalGroup.HYVES))))){
_local2 = new ChinaLogo();
addChild(_local2);
_local2.addEventListener("END", _init);
} else {
_init();
};
}
private function _init(_arg1:Event=null):void{
changeTo = "lib.Intro";
ShowStage_Immediately();
}
private function _ShowStage(){
var _local1:*;
if (moden == 0){
_local1 = new CD_ScreenChange();
loader_screenchange.addChild(_local1);
_local1.addEventListener("END", _screenChangeEvent);
};
}
private function _screenChangeEvent(_arg1:Event):void{
ShowStage_Immediately();
}
private function _ShowStage_Immediately(){
var _local1:Class;
var _local2:*;
if (changeTo == "lib.Story"){
CD_SoundCtrl.playMusic("m_story");
} else {
if (changeTo == "lib.Game"){
CD_SoundCtrl.playMusic("m_mainscreen");
} else {
CD_SoundCtrl.playMusic("m_level");
};
};
if (moden == 0){
try {
loader_game.removeChildAt(0);
} catch(err) {
};
_local1 = (getDefinitionByName(changeTo) as Class);
_local2 = new (_local1);
loader_game.addChild(_local2);
};
}
public static function ShowStage(_arg1:String, _arg2:int=-1){
obj.changeTo = _arg1;
obj._ShowStage();
}
public static function ShowStage_Immediately(){
obj._ShowStage_Immediately();
}
}
}//package lib
Section 177
//CD_UserData (lib.CD_UserData)
package lib {
import flash.net.*;
public class CD_UserData {
public static var so:SharedObject;
public static var firstGame:Boolean;
public static var gameShowedNumber:int;
public static var howtoplayShowed:Boolean;
public static var storyShowed:Boolean;
public static var unlock:Boolean;
public static function init(){
getData_FromSO();
}
public static function getData_FromSO(){
so = SharedObject.getLocal((DocumentClass.gameName + "_017"));
if (so.data.initialize == null){
so.data.initialize = true;
getNewData();
};
initializeData();
gameShowedNumber++;
trace("游戏第", gameShowedNumber, "次被打开");
}
public static function resetData(){
saveData();
}
public static function getNewData(){
so.data.firstGame = true;
so.data.gameShowedNumber = 0;
so.data.howtoplayShowed = false;
so.data.storyShowed = false;
so.data.unlock = true;
}
public static function initializeData(){
gameShowedNumber = so.data.gameShowedNumber;
firstGame = so.data.firstGame;
howtoplayShowed = so.data.howtoplayShowed;
storyShowed = so.data.storyShowed;
unlock = so.data.unlock;
saveData();
}
public static function saveData(){
so.data.gameShowedNumber = gameShowedNumber;
so.data.firstGame = firstGame;
so.data.howtoplayShowed = howtoplayShowed;
so.data.storyShowed = storyShowed;
so.data.unlock = unlock;
so.flush();
}
}
}//package lib
Section 178
//ChinaLogo (lib.ChinaLogo)
package lib {
import flash.net.*;
import flash.display.*;
import flash.events.*;
public class ChinaLogo extends MovieClip {
public var bt:SimpleButton;
public function ChinaLogo(){
addFrameScript(0, frame1, 238, frame239, 239, frame240);
bt.addEventListener(MouseEvent.MOUSE_DOWN, _down);
}
private function logoend(){
dispatchEvent(new Event("END"));
parent.removeChild(this);
}
private function _down(_arg1){
navigateToURL(new URLRequest("http://www.game.com.cn"), "_blank");
}
function frame1(){
}
function frame239(){
logoend();
}
function frame240(){
stop();
}
}
}//package lib
Section 179
//chooseBox (lib.chooseBox)
package lib {
import flash.display.*;
public dynamic class chooseBox extends MovieClip {
}
}//package lib
Section 180
//DocumentClass (lib.DocumentClass)
package lib {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
import net.crazydream.*;
import flash.external.*;
public class DocumentClass extends MovieClip {
private var stagemanage:CD_StageManage;
private var loading:Loading;
public static var GameWidth:int = 700;
public static var GameHeight:int = 510;
public static var LoadComplete:Boolean = false;
private static var soundctrl:CD_SoundCtrl;
public function DocumentClass(){
addFrameScript(13, frame14, 40, frame41, 54, frame55, 55, frame56);
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
protected function _onLoad(_arg1){
gotoAndStop(1);
AddMask();
var _local2:* = new SpilAPIManage(this);
_local2.addEventListener(SpilAPIManage.LOAD_COMPLETE, loadComplete_API);
addChild(_local2);
soundctrl = new CD_SoundCtrl();
loading = new Loading();
loading.addEventListener(Loading.LOAD_COMPLETE, loadComplete_Stage);
addChild(loading);
CD_UserData.init();
addChild(new TestInfo());
}
private function AddMask():void{
var _local1:Sprite = new Sprite();
addChild(_local1);
_local1.graphics.beginFill(0, 1);
_local1.graphics.drawRect(0, 0, GameWidth, GameHeight);
_local1.graphics.endFill();
this.mask = _local1;
}
function loadComplete_Stage(_arg1:Event){
LoadComplete = true;
}
function loadComplete_API(_arg1:Event){
stagemanage = new CD_StageManage();
addChild(stagemanage);
removeChild(loading);
}
function frame14(){
prevFrame();
}
function frame41(){
prevFrame();
}
function frame55(){
prevFrame();
}
function frame56(){
stop();
}
}
}//package lib
Section 181
//Game (lib.Game)
package lib {
import flash.display.*;
import flash.events.*;
import gs.*;
import flash.filters.*;
import flash.utils.*;
import net.crazydream.*;
public class Game extends MovieClip {
public var flowerfrontui:MovieClip;
public var rabbitfront:MovieClip;
public var gamestage:MovieClip;
public var ladybug:MovieClip;
public var hold:MovieClip;
public var ui:Game_UI;
private var lightmc:Game_light;
private var lightAdded:Boolean;
private var quality:int;
private var life:int;// = 3
private var storeJs:int;
private var timer:Timer;
public var timejs:int;
private var timeMax:int;// = 840
private var gameStage:MovieClip;
private var gameBar:MovieClip;
private var gameChar:MovieClip;
private var forward:Boolean;
private var mousedown:Boolean;
private var rain_end:int;// = 6
private var gray_0:Number;// = 0.33
private var gray_1:Number;// = 0.33
private var gray_start:int;// = 6
private var gray_end:int;// = 40
private var gray_js:Number;
private var gray_js_0:Number;
private var gray_js_1:Number;
private var sky_start:int;// = 10
private var sky_end:int;// = 25
private var sky_js:Number;
private var sky_js_0:Number;
private var sun_start:int;// = 35
private var sun_end:int;// = 20
private var sun_js:Number;
private var sun_js_0:Number;
private var char_start:int;// = 5
private var char_end:int;// = 25
private var char_js:Number;
private var char_js_0:Number;
private var char_0:Number;// = -255
private var grassfront2_start:int;// = 6
private var grassfront2_end:int;// = 8
private var grassfront2_js:Number;
private var grassfront2_js_0:Number;
private var grassfront2_total:int;
private var grassfront2_current:int;
private var grassfront_start:int;// = 20
private var grassfront_end:int;// = 25
private var grassfront_js:Number;
private var grassfront_js_0:Number;
private var grassfront_Max:Number;// = -150
private var grassfront_0:Number;
private var treefront_start:int;// = 14
private var treefront_end:int;// = 25
private var treefront_js:Number;
private var treefront_js_0:Number;
private var treefront_total:int;
private var treefront_current:int;
private var treefront2_start:int;// = 20
private var treefront2_end:int;// = 20
private var treefront2_js:Number;
private var treefront2_js_0:Number;
private var treefront2_total:int;
private var treefront2_current:int;
private var treefront3_start:int;// = 28
private var treefront3_end:int;// = 20
private var treefront3_js:Number;
private var treefront3_js_0:Number;
private var treefront3_total:int;
private var treefront3_current:int;
private var clouds_start:int;// = 1
private var clouds_end:int;// = 40
private var clouds_js:Number;
private var clouds_js_0:Number;
private var clouds_total:Number;
private var clouds_current:Number;
private var flower_start:int;// = 30
private var flower_end:int;// = 20
private var flower_js:Number;
private var flower_js_0:Number;
private var flower_total:int;
private var flower_current:int;
private var rabbit1_end:int;// = 40
private var rabbit2_end:int;// = 60
private var elf_end:int;// = 70
private var squirrel_end:int;// = 80
private var horse_end:int;// = 88
private var star1_start:int;// = 45
private var star2_start:int;// = 48
private var star3_start:int;// = 51
private var star4_start:int;// = 54
private var star5_start:int;// = 57
private var star6_start:int;// = 60
private var star7_start:int;// = 63
private var star8_start:int;// = 66
private var star9_start:int;// = 69
private var star10_start:int;// = 72
private var rainbow_start:int;// = 55
private var rainbow_end:int;// = 6
private var rainbow_js:Number;
private var rainbow_js_0:Number;
private var butterfly1_end:int;// = 35
private var butterfly2_end:int;// = 45
private var butterfly3_end:int;// = 55
private var butterfly4_end:int;// = 65
private var butterfly5_end:int;// = 75
private var butterfly6_end:int;// = 85
private var butterfly7_end:int;// = 95
private var flowerfront_start:int;// = 35
private var flowerfront_end:int;// = 20
private var flowerfront_js:Number;
private var flowerfront_js_0:Number;
private var flowerfront_total:int;
private var flowerfront_current:int;
private var flowerfrontui_start:int;// = 50
private var flowerfrontui_end:int;// = 20
private var flowerfrontui_js:Number;
private var flowerfrontui_js_0:Number;
private var flowerfrontui_total:int;
private var flowerfrontui_current:int;
private var road_start:int;// = 64
private var road_end:int;// = 10
private var road_js:Number;
private var road_js_0:Number;
private var road_total:int;
private var road_current:int;
private var road2_start:int;// = 75
private var road2_end:int;// = 12
private var road2_js:Number;
private var road2_js_0:Number;
private var road2_total:int;
private var road2_current:int;
private var bird_end:int;// = 65
private var bird2_end:int;// = 61
private var charhart_start:int;// = 85
private var charhart_end:int;// = 10
private var charhart_js:Number;
private var charhart_js_0:Number;
private var charHigh_start:int;// = 90
private var charHigh_end:int;// = 8
private var charHigh_js:Number;
private var charHigh_js_0:Number;
private var ui_witch:Game_Ui_Witch;
private var unicorn_end:int;// = 90
private var ladybug_start:int;// = 80
private var ladybug_end:int;// = 15
private var ladybug_js:Number;
private var ladybug_js_0:Number;
private var ladybug_total:int;
private var ladybug_current:int;
private var bee_end:int;// = 75
private var spider_start:int;// = 80
private var spider_end:int;// = 15
private var spider_js:Number;
private var spider_js_0:Number;
private var spider_total:int;
private var spider_current:int;
private var rabbitfront_start:int;// = 47
private var rabbitfront_end:int;// = 4
private var rabbitfront_js:Number;
private var rabbitfront_js_0:Number;
private var rabbitfront_total:int;
private var rabbitfront_current:int;
private var Light_end:int;// = 90
private var kissed:int;
private var j:int;
private var shack:Array;
private var shackjs:int;// = 0
private var hartjs:int;// = 0
public static var gameStart:Boolean;
public static var rainDisplay:Boolean;
public static var score:int;
public function Game(){
grassfront_0 = grassfront_Max;
shack = [[5, 5], [5, 15], [-5, -8], [-5, 12], [8, 10], [10, -5]];
super();
addEventListener(Event.ADDED_TO_STAGE, init);
addEventListener(Event.REMOVED_FROM_STAGE, _onUnload);
}
private function _onUnload(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, _onUnload);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, _mouseDown);
stage.removeEventListener(MouseEvent.MOUSE_UP, _mouseUp);
timer.stop();
timer.removeEventListener(TimerEvent.TIMER, _enterFrame);
}
public function init(_arg1=null){
kissed = 0;
TestInfo.updata(kissed);
rainDisplay = true;
gameStart = true;
lightAdded = false;
quality = setQuality.quality;
life = 3;
score = 0;
storeJs = 100;
forward = true;
gameStage = gamestage;
gameBar = ui.bar;
gameChar = gamestage.char;
gameChar.gotoAndStop(1);
gameStage.treefront.gotoAndStop(1);
gameStage.flowerfront.gotoAndStop(1);
gameStage.treefront2.gotoAndStop(1);
gameStage.treefront3.gotoAndStop(1);
gameStage.flower.gotoAndStop(1);
var _local2:int = (int((Math.random() * 10)) + 10);
gameStage.rabbit1.gotoAndPlay(_local2);
gameStage.rabbit1.visible = false;
gameStage.rabbit2.visible = false;
gameStage.elf.visible = false;
gameStage.squirrel.visible = false;
gameStage.horse.visible = false;
stage.addEventListener(MouseEvent.MOUSE_DOWN, _mouseDown);
stage.addEventListener(MouseEvent.MOUSE_UP, _mouseUp);
mousedown = false;
timejs = 0;
timer = new Timer((1000 / 15));
timer.start();
timer.addEventListener(TimerEvent.TIMER, _enterFrame);
gray_js = ((timeMax / 100) * gray_end);
gray_js_0 = (gray_0 / gray_js);
gray_js_1 = ((1 - gray_1) / gray_js);
sky_js = ((timeMax / 100) * sky_end);
sky_js_0 = (600 / sky_js);
char_js = ((timeMax / 100) * char_end);
char_js_0 = (0xFF / char_js);
grassfront_js = ((timeMax / 100) * grassfront_end);
grassfront_js_0 = (0xFF / grassfront_js);
treefront_total = MovieClip(gameStage.treefront).totalFrames;
treefront_js = ((timeMax / 100) * treefront_end);
treefront_js_0 = (treefront_total / treefront_js);
treefront_current = 1;
if (treefront_js_0 < 1){
treefront_js_0 = 1;
};
treefront2_total = MovieClip(gameStage.treefront2).totalFrames;
treefront2_js = ((timeMax / 100) * treefront2_end);
treefront2_js_0 = (treefront2_total / treefront2_js);
treefront2_current = 1;
if (treefront2_js_0 < 1){
treefront2_js_0 = 1;
};
treefront3_total = MovieClip(gameStage.treefront3).totalFrames;
treefront3_js = ((timeMax / 100) * treefront3_end);
treefront3_js_0 = (treefront3_total / treefront3_js);
treefront3_current = 1;
if (treefront3_js_0 < 1){
treefront3_js_0 = 1;
};
clouds_total = MovieClip(gameStage.clouds).totalFrames;
clouds_current = 1;
clouds_js = ((timeMax / 100) * clouds_end);
clouds_js_0 = (clouds_total / clouds_js);
trace("clouds_js_0", clouds_js_0);
flower_total = MovieClip(gameStage.flower).totalFrames;
flower_js = ((timeMax / 100) * flower_end);
flower_js_0 = (flower_total / flower_js);
flower_current = 1;
if (flower_js_0 < 1){
flower_js_0 = 1;
};
rainbow_js = ((timeMax / 100) * rainbow_end);
rainbow_js_0 = (1 / rainbow_js);
gameStage.rainbow.alpha = 0;
flowerfront_total = MovieClip(gameStage.flowerfront).totalFrames;
flowerfront_js = ((timeMax / 100) * flowerfront_end);
flowerfront_js_0 = (flowerfront_total / flowerfront_js);
flowerfront_current = 1;
if (flowerfront_js_0 < 1){
flowerfront_js_0 = 1;
};
flowerfrontui_total = MovieClip(flowerfrontui).totalFrames;
flowerfrontui_js = ((timeMax / 100) * flowerfrontui_end);
flowerfrontui_js_0 = (flowerfrontui_total / flowerfrontui_js);
flowerfrontui_current = 1;
if (flowerfrontui_js_0 < 1){
flowerfrontui_js_0 = 1;
};
road_total = MovieClip(gameStage.road).totalFrames;
road_js = ((timeMax / 100) * road_end);
road_js_0 = (road_total / road_js);
road_current = 1;
if (road_js_0 < 1){
road_js_0 = 1;
};
road2_total = MovieClip(gameStage.road2).totalFrames;
road2_js = ((timeMax / 100) * road2_end);
road2_js_0 = (road2_total / road2_js);
road2_current = 1;
if (road2_js_0 < 1){
road2_js_0 = 1;
};
charhart_js = ((timeMax / 100) * charhart_end);
charhart_js_0 = (1 / charhart_js);
charHigh_js = ((timeMax / 100) * charHigh_end);
charHigh_js_0 = (1 / charHigh_js);
ladybug_total = MovieClip(ladybug).totalFrames;
ladybug_js = ((timeMax / 100) * ladybug_end);
ladybug_js_0 = (ladybug_total / ladybug_js);
ladybug_current = 1;
if (ladybug_js_0 < 1){
ladybug_js_0 = 1;
};
spider_total = MovieClip(gameStage.spider).totalFrames;
spider_js = ((timeMax / 100) * spider_end);
spider_js_0 = (spider_total / spider_js);
spider_current = 1;
if (spider_js_0 < 1){
spider_js_0 = 1;
};
grassfront2_total = MovieClip(gameStage.grassfront).totalFrames;
grassfront2_js = ((timeMax / 100) * grassfront2_end);
grassfront2_js_0 = (grassfront2_total / grassfront2_js);
grassfront2_current = 1;
if (grassfront2_js_0 < 1){
grassfront2_js_0 = 1;
};
rabbitfront_total = MovieClip(rabbitfront).totalFrames;
rabbitfront_js = ((timeMax / 100) * rabbitfront_end);
rabbitfront_js_0 = (rabbitfront_total / rabbitfront_js);
rabbitfront_current = 1;
if (rabbitfront_js_0 < 1){
rabbitfront_js_0 = 1;
};
ui_witch = new Game_Ui_Witch();
addChild(ui_witch);
_enterFrame();
var _local3:Sprite = new Sprite();
_local3.graphics.beginFill(0);
_local3.graphics.drawRect(0, 0, 700, 510);
_local3.graphics.endFill();
addChild(_local3);
gamestage.mask = _local3;
var _local4:* = new Game_hit_hold();
addChild(_local4);
ui.addEventListener("TimeOut", _TimeOut);
}
private function _enterFrame(_arg1:TimerEvent=null):void{
var _local2:*;
if (timejs > (timeMax / 2)){
if (setQuality.quality == 1){
stage.quality = StageQuality.MEDIUM;
};
} else {
resetQuality();
};
if (timejs > (timeMax * 0.86)){
hartjs++;
if (hartjs > 2){
hartjs = 0;
_local2 = new Game_hart_complete();
_local2.x = ((Math.random() * 400) + 130);
_local2.y = 470;
addChild(_local2);
};
};
ui.txt.text = String(score);
if (life <= 0){
return;
};
setCharFrame();
if (mousedown){
forward = true;
} else {
forward = false;
};
if (ui_witch.witchshowed){
if ((((gameChar.currentFrame == 2)) && (mousedown))){
loseLife();
ui_witch.showAnger();
gameChar.light.visible = true;
if (life > 0){
gameChar.gotoAndStop(4);
} else {
gameChar.gotoAndStop(3);
try {
gameChar.charmc.stop();
} catch(err) {
};
try {
gameChar.charmc.charmc.stop();
} catch(err) {
};
TweenMax.to(gameChar, 1, {colorMatrixFilter:{colorize:0xFFFFFF}});
};
storeJs = 0;
};
if ((((gameChar.currentFrame > 1)) && (mousedown))){
this.x = (shack[shackjs][0] / 2);
this.y = (shack[shackjs][1] / 2);
shackjs++;
if (shackjs > (shack.length - 1)){
shackjs = 0;
};
score = (score - 20);
forward = false;
};
} else {
if (((mousedown) && (!(forward)))){
forward = true;
x = (y = 0);
};
if (mousedown){
score = (score + 10);
};
};
if (score < 0){
score = 0;
};
if (forward){
timejs++;
gameChar.showhart();
} else {
timejs--;
gameChar.dishart();
};
if (timejs < 0){
timejs = 0;
};
if (timejs > timeMax){
timejs = timeMax;
};
gameBar.scaleX = (timejs / timeMax);
if (gameBar.scaleX > 0.5){
SpilAPIManage.setAward(SpilAPIManage.tg2);
};
gameStage.charsharder.gotoAndStop(gameChar.currentFrame);
setGray();
setSky();
setSun();
setRainbow();
setChar();
setGrassfront();
setTreefront();
setTreefront2();
setTreefront3();
setRain();
setClouds();
setFlower();
setRabbit();
setElf();
setSquirrel();
setHorse();
setStarts();
setButterfly();
setFlowerfront();
setFlowerfrontui();
setLadybug();
setRoad();
setRoad2();
setBird();
setCharHart();
setcharHigh();
setUnicorn();
setBee();
setSpider();
setGrassfront2();
setRabbitfront();
if (timejs == timeMax){
gameComplete();
};
}
private function setRabbitfront():void{
if ((((timejs > ((timeMax / 100) * rabbitfront_start))) && (forward))){
rabbitfront_current = (rabbitfront_current + rabbitfront_js_0);
} else {
if (timejs < ((timeMax / 100) * (rabbitfront_start + rabbitfront_end))){
rabbitfront_current = (rabbitfront_current - rabbitfront_js_0);
};
};
rabbitfront_current = int(rabbitfront_current);
if (rabbitfront_current < 1){
rabbitfront_current = 1;
};
if (rabbitfront_current > rabbitfront_total){
rabbitfront_current = rabbitfront_total;
};
rabbitfront.gotoAndStop(rabbitfront_current);
}
private function setLadybug():void{
if ((((timejs > ((timeMax / 100) * ladybug_start))) && (forward))){
ladybug_current = (ladybug_current + ladybug_js_0);
} else {
if (timejs < ((timeMax / 100) * (ladybug_start + ladybug_end))){
ladybug_current = (ladybug_current - ladybug_js_0);
};
};
ladybug_current = int(ladybug_current);
if (ladybug_current < 1){
ladybug_current = 1;
};
if (ladybug_current > ladybug_total){
ladybug_current = ladybug_total;
};
ladybug.gotoAndStop(ladybug_current);
}
private function setSpider():void{
if ((((timejs > ((timeMax / 100) * spider_start))) && (forward))){
spider_current = (spider_current + spider_js_0);
} else {
if (timejs < ((timeMax / 100) * (spider_start + spider_end))){
spider_current = (spider_current - spider_js_0);
};
};
spider_current = int(spider_current);
if (spider_current < 1){
spider_current = 1;
};
if (spider_current > spider_total){
spider_current = spider_total;
};
gameStage.spider.gotoAndStop(spider_current);
}
private function setGrassfront2():void{
if ((((timejs > ((timeMax / 100) * grassfront2_start))) && (forward))){
grassfront2_current = (grassfront2_current + grassfront2_js_0);
} else {
if (timejs < ((timeMax / 100) * (grassfront2_start + grassfront2_end))){
grassfront2_current = (grassfront2_current - grassfront2_js_0);
};
};
grassfront2_current = int(grassfront2_current);
if (grassfront2_current < 1){
grassfront2_current = 1;
};
if (grassfront2_current > grassfront2_total){
grassfront2_current = grassfront2_total;
};
gameStage.grassfront.gotoAndStop(grassfront2_current);
}
private function setUnicorn():void{
if (timejs > ((timeMax / 100) * unicorn_end)){
gameStage.unicorn.visible = true;
gameStage.unicorn.play();
} else {
gameStage.unicorn.visible = false;
gameStage.unicorn.gotoAndStop(1);
};
}
private function setBee():void{
if (timejs > ((timeMax / 100) * bee_end)){
gameStage.bee1.visible = true;
gameStage.bee2.visible = true;
} else {
gameStage.bee1.visible = false;
gameStage.bee2.visible = false;
};
}
private function resetQuality():void{
switch (setQuality.quality){
case 1:
stage.quality = StageQuality.HIGH;
break;
case 2:
stage.quality = StageQuality.MEDIUM;
break;
case 3:
stage.quality = StageQuality.LOW;
break;
default:
break;
};
}
private function setcharHigh():void{
var _local1:* = gameChar.H;
if ((((timejs > ((timeMax / 100) * charHigh_start))) && (forward))){
_local1 = (_local1 + charHigh_js_0);
} else {
if (timejs < ((timeMax / 100) * (charHigh_start + charHigh_end))){
_local1 = (_local1 - charHigh_js_0);
};
};
if (_local1 > 1){
_local1 = 1;
};
if (_local1 < 0){
_local1 = 0;
};
gameChar.H = _local1;
}
private function setCharHart():void{
var _local1:* = gameChar.hart.R;
if ((((timejs > ((timeMax / 100) * charhart_start))) && (forward))){
_local1 = (_local1 + charhart_js_0);
} else {
if (timejs < ((timeMax / 100) * (charhart_start + charhart_end))){
_local1 = (_local1 - charhart_js_0);
};
};
if (_local1 > 1){
_local1 = 1;
};
if (_local1 < 0){
_local1 = 0;
};
gameChar.hart.R = _local1;
}
private function setCharFrame():void{
if (!gameChar.light.visible){
if (mousedown){
gameChar.gotoAndStop(2);
} else {
gameChar.gotoAndStop(1);
};
} else {
storeJs++;
if (storeJs == 35){
if (gameChar.currentFrame >= 3){
gameChar.gotoAndStop(1);
storeJs = 0;
gameChar.light.visible = false;
};
};
};
}
private function loseLife():void{
CD_SoundCtrl.playSound("s_chudian");
ui[("h" + life)].dis();
life--;
var _local1:* = score;
_local1 = (_local1 - int((score / 10)));
if (_local1 < 0){
_local1 = 0;
};
score = _local1;
var _local2:HeartBreak = new HeartBreak();
addChild(_local2);
_local2.x = 360;
_local2.y = 103;
setTimeout(sound_break, 500);
if (life == 0){
ui_witch.addEventListener("Out", _gameover);
};
}
private function sound_break():void{
CD_SoundCtrl.playSound("s_dasui");
}
private function _TimeOut(_arg1){
timer.stop();
gameStart = false;
getBitmap(1);
setTimeout(__TimeOut, 800);
}
private function __TimeOut():void{
var _local1:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
var _local2:ColorMatrixFilter = new ColorMatrixFilter(_local1);
this.filters = [_local2];
var _local3:* = new GameTimeOut();
addChild(_local3);
CD_SoundCtrl.playMusic("m_failed", 1);
CD_SoundCtrl.stopSoundLoop("s_kiss_000", this);
}
private function gameComplete(){
SpilAPIManage.setAward(SpilAPIManage.tg1);
resetQuality();
timer.stop();
gameStart = false;
getBitmap(2);
var _local1:MovieClip = new GameComplete_flower();
addChild(_local1);
_local1.mouseChildren = false;
_local1.mouseEnabled = false;
setTimeout(_gameComplete, 4000);
}
private function _gameComplete():void{
var _local1:* = new GameComplete();
addChildAt(_local1, (numChildren - 1));
CD_SoundCtrl.playMusic("m_complete", 1);
CD_SoundCtrl.stopSoundLoop("s_kiss_000", this);
}
private function _gameover(_arg1:Event):void{
resetQuality();
timer.stop();
gameStart = false;
getBitmap(1);
setTimeout(gameover, 800);
}
private function gameover(){
var _local1:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
var _local2:ColorMatrixFilter = new ColorMatrixFilter(_local1);
this.filters = [_local2];
var _local3:* = new GameOver();
addChild(_local3);
CD_SoundCtrl.playMusic("m_failed", 1);
CD_SoundCtrl.stopSoundLoop("s_kiss_000", this);
}
private function getBitmap(_arg1:int=1):void{
var _local6:*;
var _local2:BitmapData = new BitmapData(700, 510);
_local2.draw(this);
var _local3:Bitmap = new Bitmap(_local2);
var _local4:* = 0;
while (_local4 < numChildren) {
_local6 = getChildAt(_local4);
if ((((_local6 is MovieClip)) || ((_local6 is Sprite)))){
_local6.visible = false;
};
_local4++;
};
var _local5:* = new Sprite();
addChild(_local5);
_local5.addChild(_local3);
if (_arg1 == 1){
TweenMax.to(_local5, 1, {colorMatrixFilter:{colorize:0xFFFFFF, brightness:0.2}});
} else {
TweenMax.to(_local5, 0.5, {colorMatrixFilter:{brightness:3}});
TweenMax.to(_local5, 0.4, {delay:0.5, colorMatrixFilter:{}});
TweenMax.to(_local5, 0.8, {delay:4, colorMatrixFilter:{colorize:0xFFFFFF, brightness:0.2}});
};
}
private function _mouseUp(_arg1:MouseEvent):void{
kissed++;
TestInfo.updata(kissed);
if (kissed >= 50){
SpilAPIManage.setAward(SpilAPIManage.tg5);
};
CD_SoundCtrl.stopSoundLoop("s_kiss_000", this);
x = (y = 0);
if (life <= 0){
return;
};
mousedown = false;
}
private function _mouseDown(_arg1:MouseEvent):void{
if ((((life <= 0)) || (!(gameStart)))){
return;
};
mousedown = true;
CD_SoundCtrl.playSoundLoop("s_kiss_000", this);
}
private function setBird():void{
if (timejs > ((timeMax / 100) * bird_end)){
gameStage.bird.visible = true;
} else {
gameStage.bird.visible = false;
};
if (timejs > ((timeMax / 100) * bird2_end)){
gameStage.bird2.visible = true;
} else {
gameStage.bird2.visible = false;
};
}
private function setRoad():void{
if ((((timejs > ((timeMax / 100) * road_start))) && (forward))){
road_current = (road_current + road_js_0);
} else {
if (timejs < ((timeMax / 100) * (road_start + road_end))){
road_current = (road_current - road_js_0);
};
};
road_current = int(road_current);
if (road_current < 1){
road_current = 1;
};
if (road_current > road_total){
road_current = road_total;
};
gameStage.road.gotoAndStop(road_current);
}
private function setRoad2():void{
if ((((timejs > ((timeMax / 100) * road2_start))) && (forward))){
road2_current = (road2_current + road2_js_0);
} else {
if (timejs < ((timeMax / 100) * (road2_start + road2_end))){
road2_current = (road2_current - road2_js_0);
};
};
road2_current = int(road2_current);
if (road2_current < 1){
road2_current = 1;
};
if (road2_current > road2_total){
road2_current = road2_total;
};
gameStage.road2.gotoAndStop(road2_current);
}
private function setFlowerfront(){
if ((((timejs > ((timeMax / 100) * flowerfront_start))) && (forward))){
flowerfront_current = (flowerfront_current + flowerfront_js_0);
} else {
if (timejs < ((timeMax / 100) * (flowerfront_start + flowerfront_end))){
flowerfront_current = (flowerfront_current - flowerfront_js_0);
};
};
flowerfront_current = int(flowerfront_current);
if (flowerfront_current < 1){
flowerfront_current = 1;
};
if (flowerfront_current > flowerfront_total){
flowerfront_current = flowerfront_total;
};
gameStage.flowerfront.gotoAndStop(flowerfront_current);
}
private function setFlowerfrontui(){
if ((((timejs > ((timeMax / 100) * flowerfrontui_start))) && (forward))){
flowerfrontui_current = (flowerfrontui_current + flowerfrontui_js_0);
} else {
if (timejs < ((timeMax / 100) * (flowerfrontui_start + flowerfrontui_end))){
flowerfrontui_current = (flowerfrontui_current - flowerfrontui_js_0);
};
};
flowerfrontui_current = int(flowerfrontui_current);
if (flowerfrontui_current < 1){
flowerfrontui_current = 1;
};
if (flowerfrontui_current > flowerfrontui_total){
flowerfrontui_current = flowerfrontui_total;
};
flowerfrontui.gotoAndStop(flowerfrontui_current);
}
private function setButterfly():void{
var _local1:* = 1;
while (_local1 < 8) {
if (timejs > ((timeMax / 100) * this[(("butterfly" + _local1) + "_end")])){
gameStage[("butterfly" + _local1)].visible = true;
} else {
gameStage[("butterfly" + _local1)].visible = false;
};
_local1++;
};
}
private function setRainbow(){
if ((((timejs > ((timeMax / 100) * rainbow_start))) && (forward))){
gameStage.rainbow.alpha = (gameStage.rainbow.alpha + rainbow_js_0);
} else {
if (timejs < ((timeMax / 100) * (rainbow_start + rainbow_end))){
gameStage.rainbow.alpha = (gameStage.rainbow.alpha - rainbow_js_0);
};
};
if (gameStage.rainbow.alpha > 1){
gameStage.rainbow.alpha = 1;
};
if (gameStage.rainbow.alpha < 0){
gameStage.rainbow.alpha = 0;
};
if (gameStage.rainbow.alpha == 0){
gameStage.rainbow.visible = false;
} else {
gameStage.rainbow.visible = true;
};
}
private function setStarts():void{
var _local1:* = 1;
while (_local1 < 11) {
if (timejs > ((timeMax / 100) * this[(("star" + _local1) + "_start")])){
gameStage[("star" + _local1)].showed = true;
} else {
gameStage[("star" + _local1)].showed = false;
};
_local1++;
};
}
private function setHorse(){
if (timejs > ((timeMax / 100) * horse_end)){
gameStage.horse.visible = true;
} else {
gameStage.horse.visible = false;
};
}
private function setSquirrel():void{
if (timejs > ((timeMax / 100) * squirrel_end)){
gameStage.squirrel.visible = true;
} else {
gameStage.squirrel.visible = false;
};
}
private function setElf(){
if (timejs > ((timeMax / 100) * elf_end)){
gameStage.elf.visible = true;
SpilAPIManage.setAward(SpilAPIManage.tg3);
} else {
gameStage.elf.visible = false;
};
}
private function setRabbit(){
if (timejs > ((timeMax / 100) * rabbit1_end)){
gameStage.rabbit1.visible = true;
} else {
gameStage.rabbit1.visible = false;
};
if (timejs > ((timeMax / 100) * rabbit2_end)){
gameStage.rabbit2.visible = true;
} else {
gameStage.rabbit2.visible = false;
};
}
private function setFlower(){
if ((((timejs > ((timeMax / 100) * flower_start))) && (forward))){
flower_current = (flower_current + flower_js_0);
} else {
if (timejs < ((timeMax / 100) * (flower_start + flower_end))){
flower_current = (flower_current - flower_js_0);
};
};
flower_current = int(flower_current);
if (flower_current < 1){
flower_current = 1;
};
if (flower_current > flower_total){
flower_current = flower_total;
};
gameStage.flower.gotoAndStop(flower_current);
}
private function setClouds(){
if ((((timejs > ((timeMax / 100) * clouds_start))) && (forward))){
clouds_current = (clouds_current + clouds_js_0);
} else {
if (timejs < ((timeMax / 100) * (clouds_start + clouds_end))){
clouds_current = (clouds_current - clouds_js_0);
};
};
if (clouds_current < 1){
clouds_current = 1;
};
if (clouds_current > clouds_total){
clouds_current = clouds_total;
};
var _local1:* = int(clouds_current);
gameStage.clouds.gotoAndStop(_local1);
}
private function setRain():void{
if (timejs < ((timeMax / 100) * rain_end)){
rainDisplay = true;
gameStage.rain.visible = true;
hold.visible = true;
} else {
rainDisplay = false;
gameStage.rain.visible = false;
hold.visible = false;
};
}
private function setTreefront(){
if ((((timejs > ((timeMax / 100) * treefront_start))) && (forward))){
treefront_current = (treefront_current + treefront_js_0);
} else {
if (timejs < ((timeMax / 100) * (treefront_start + treefront_end))){
treefront_current = (treefront_current - treefront_js_0);
};
};
treefront_current = int(treefront_current);
if (treefront_current < 1){
treefront_current = 1;
};
if (treefront_current > treefront_total){
treefront_current = treefront_total;
};
gameStage.treefront.gotoAndStop(treefront_current);
}
private function setTreefront2(){
if ((((timejs > ((timeMax / 100) * treefront2_start))) && (forward))){
treefront2_current = (treefront2_current + treefront2_js_0);
} else {
if (timejs < ((timeMax / 100) * (treefront2_start + treefront2_end))){
treefront2_current = (treefront2_current - treefront2_js_0);
};
};
treefront2_current = int(treefront2_current);
if (treefront2_current < 1){
treefront2_current = 1;
};
if (treefront2_current > treefront2_total){
treefront2_current = treefront2_total;
};
gameStage.treefront2.gotoAndStop(treefront2_current);
}
private function setTreefront3(){
if ((((timejs > ((timeMax / 100) * treefront3_start))) && (forward))){
treefront3_current = (treefront3_current + treefront3_js_0);
} else {
if (timejs < ((timeMax / 100) * (treefront3_start + treefront3_end))){
treefront3_current = (treefront3_current - treefront3_js_0);
};
};
treefront3_current = int(treefront3_current);
if (treefront3_current < 1){
treefront3_current = 1;
};
if (treefront3_current > treefront3_total){
treefront3_current = treefront3_total;
};
gameStage.treefront3.gotoAndStop(treefront3_current);
}
private function setGrassfront(){
if ((((timejs > ((timeMax / 100) * grassfront_start))) && (forward))){
grassfront_0 = (grassfront_0 + grassfront_js_0);
} else {
if (timejs < ((timeMax / 100) * (grassfront_start + grassfront_end))){
grassfront_0 = (grassfront_0 - grassfront_js_0);
};
};
if (grassfront_0 > 0){
grassfront_0 = 0;
};
if (grassfront_0 < grassfront_Max){
grassfront_0 = grassfront_Max;
};
var _local1:Array = [1, 0, 0, 0, grassfront_0, 0, 1, 0, 0, grassfront_0, 0, 0, 1, 0, grassfront_0, 0, 0, 0, 1, 0];
var _local2:ColorMatrixFilter = new ColorMatrixFilter(_local1);
gameStage.grassfront.filters = [_local2];
}
private function setLight(_arg1){
}
public function setChar2():void{
gameChar.light.visible = false;
setLight(false);
}
private function setChar(){
if ((((timejs > ((timeMax / 100) * char_start))) && (forward))){
char_0 = (char_0 + char_js_0);
} else {
if (timejs < ((timeMax / 100) * (char_start + char_end))){
char_0 = (char_0 - char_js_0);
};
};
if (char_0 > 0){
char_0 = 0;
};
if (char_0 < -255){
char_0 = -255;
};
var _local1:Array = [1, 0, 0, 0, char_0, 0, 1, 0, 0, char_0, 0, 0, 1, 0, char_0, 0, 0, 0, 1, 0];
var _local2:ColorMatrixFilter = new ColorMatrixFilter(_local1);
gameChar.filters = [_local2];
}
private function setSun(){
}
private function setSky():void{
if ((((timejs > ((timeMax / 100) * sky_start))) && (forward))){
gameStage.sky.y = (gameStage.sky.y - sky_js_0);
} else {
if (timejs < ((timeMax / 100) * (sky_start + sky_end))){
gameStage.sky.y = (gameStage.sky.y + sky_js_0);
};
};
if (gameStage.sky.y > 0){
gameStage.sky.y = 0;
};
if (gameStage.sky.y < -600){
gameStage.sky.y = -600;
};
}
private function setGray(){
if ((((timejs > ((timeMax / 100) * gray_start))) && (forward))){
gray_0 = (gray_0 - gray_js_0);
gray_1 = (gray_1 + gray_js_1);
} else {
if (timejs < ((timeMax / 100) * (gray_start + gray_end))){
gray_0 = (gray_0 + gray_js_0);
gray_1 = (gray_1 - gray_js_1);
};
};
if (gray_0 < 0){
gray_0 = 0;
};
if (gray_0 > 0.33){
gray_0 = 0.33;
};
if (gray_1 > 1){
gray_1 = 1;
};
if (gray_1 < 0.33){
gray_1 = 0.33;
};
var _local1:Array = [gray_1, gray_0, gray_0, 0, 0, gray_0, gray_1, gray_0, 0, 0, gray_0, gray_0, gray_1, 0, 0, 0, 0, 0, 1, 0];
var _local2:ColorMatrixFilter = new ColorMatrixFilter(_local1);
this.filters = [_local2];
}
}
}//package lib
Section 182
//Game_Char (lib.Game_Char)
package lib {
import flash.display.*;
import flash.events.*;
public class Game_Char extends MovieClip {
public var lightmc:Light;
public var charmc:MovieClip;
public var light:MovieClip;
public var hart:Game_ui_charHart;
private var hartShow:Boolean;
private var hartList:Array;
private var js:int;
private var space:int;
public var H:Number;
public function Game_Char(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(Event.REMOVED_FROM_STAGE, _onUnload);
hartShow = false;
hartList = [];
js = 0;
space = getSpace();
H = 0;
light.visible = false;
addEventListener(Event.ENTER_FRAME, _onFrame);
}
private function getSpace():int{
return (((Math.random() * 6) + 2));
}
private function _onUnload(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, _onUnload);
removeEventListener(Event.ENTER_FRAME, _onFrame);
}
private function _onFrame(_arg1:Event):void{
var _local3:*;
var _local4:*;
var _local5:*;
js++;
if (((hartShow) && ((js > space)))){
js = 0;
space = getSpace();
_local3 = new Game_ui_hartmc();
addChild(_local3);
_local4 = int((Math.random() * 2));
if (_local4 == 0){
_local3.x = (Math.random() * 14);
_local3.rotation = (_local3.rotation + (Math.random() * 30));
} else {
_local3.x = (-(Math.random()) * 14);
_local3.rotation = (_local3.rotation - (Math.random() * 30));
};
_local3.y = -210;
_local3.scaleX = (_local3.scaleY = ((Math.random() * 1.4) + 0.5));
hartList.push(_local3);
};
if (H > 0.1){
try {
charmc.gotoAndStop("end");
} catch(err) {
};
};
if (H > 0.2){
lightmc.visible = true;
} else {
lightmc.visible = false;
};
this.y = (401 + (-60 * H));
parent["charsharder"].alpha = ((1 * (1 - H)) + 0.3);
if (hartList.length == 0){
return;
};
var _local2:* = (hartList.length - 1);
while (_local2 > -1) {
_local5 = hartList[_local2];
hartList[_local2].y = (_local5.y - 10);
if (_local5.y < -410){
removeChild(_local5);
hartList.splice(_local2, 1);
};
_local2--;
};
}
public function showhart(){
if (!hartShow){
hartShow = true;
};
}
public function dishart(){
if (hartShow){
hartShow = false;
};
}
}
}//package lib
Section 183
//Game_hart_complete (lib.Game_hart_complete)
package lib {
import flash.display.*;
import flash.events.*;
import gs.*;
import gs.easing.*;
public class Game_hart_complete extends MovieClip {
public var mc:MovieClip;
public function Game_hart_complete(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(Event.REMOVED_FROM_STAGE, _onUnload);
addEventListener(Event.ENTER_FRAME, _onFrame);
var _local2:* = int((Math.random() * 2));
if (_local2 == 0){
rotation = (rotation + (Math.random() * 20));
} else {
rotation = (rotation - (Math.random() * 20));
};
mc.scaleX = (mc.scaleY = ((Math.random() * 0.8) + 0.2));
this.scaleX = (this.scaleY = 0.1);
TweenMax.to(this, 0.3, {scaleX:1, scaleY:1, ease:Back.easeInOut});
}
private function _onFrame(_arg1:Event):void{
this.y = (this.y - 5);
if (this.y < -20){
try {
parent.removeChild(this);
} catch(err) {
};
removeEventListener(Event.ENTER_FRAME, _onFrame);
};
}
private function _onUnload(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, _onUnload);
removeEventListener(Event.ENTER_FRAME, _onFrame);
}
}
}//package lib
Section 184
//Game_light (lib.Game_light)
package lib {
import flash.display.*;
import flash.events.*;
public class Game_light extends MovieClip {
private var witch:MovieClip;
private var char:MovieClip;
function init(_arg1, _arg2){
trace("添加闪电");
char = _arg1;
witch = _arg2;
addEventListener(Event.ENTER_FRAME, _onFrame);
}
public function uninit(){
trace("移除闪电");
removeEventListener(Event.ENTER_FRAME, _onFrame);
}
private function _onFrame(_arg1){
var _local2:* = char.x;
var _local3:* = char.y;
var _local4:* = witch.x;
var _local5:* = witch.y;
var _local6:* = Math.atan2((_local3 - _local5), (_local2 - _local4));
var _local7:* = 10;
var _local8:* = 0;
graphics.clear();
graphics.moveTo(_local2, _local3);
graphics.lineStyle(1, 0xFFFFFF, 1);
graphics.lineTo(_local4, _local5);
}
}
}//package lib
Section 185
//Game_mcHit (lib.Game_mcHit)
package lib {
import flash.display.*;
import flash.events.*;
public class Game_mcHit extends MovieClip {
private var _angle:Number;// = 0
public function Game_mcHit(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(Event.REMOVED_FROM_STAGE, _onUnLoad);
}
private function _onLoad(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(Event.ENTER_FRAME, _onFrame);
}
private function _onFrame(_arg1:Event):void{
_angle = (_angle + 1);
if (_angle < 6){
visible = false;
} else {
visible = true;
};
if (_angle > 12){
_angle = 0;
};
}
private function _onUnLoad(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, _onUnLoad);
removeEventListener(Event.ENTER_FRAME, _onFrame);
}
}
}//package lib
Section 186
//Game_mcWitch (lib.Game_mcWitch)
package lib {
import flash.display.*;
import flash.events.*;
public class Game_mcWitch extends MovieClip {
private var _angle:Number;// = 0
public var y1:Number;
public function Game_mcWitch(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(Event.REMOVED_FROM_STAGE, _onUnLoad);
}
private function _onLoad(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(Event.ENTER_FRAME, _onFrame);
}
private function _onFrame(_arg1:Event):void{
_angle = (_angle + 0.18);
}
private function _onUnLoad(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, _onUnLoad);
removeEventListener(Event.ENTER_FRAME, _onFrame);
}
}
}//package lib
Section 187
//Game_star (lib.Game_star)
package lib {
import flash.display.*;
import flash.events.*;
public class Game_star extends MovieClip {
private var angle:Number;
private var limit:Number;
public var showed:Boolean;
public function Game_star(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(Event.REMOVED_FROM_STAGE, _onUnLoad);
addEventListener(Event.ENTER_FRAME, _onFrame);
angle = -1;
limit = ((Math.random() * 1.1) + 0.2);
}
private function _onFrame(_arg1:Event):void{
if (!showed){
visible = false;
return;
};
angle = (angle + 0.2);
if (angle >= 3.14){
x = (Math.random() * 700);
y = (Math.random() * 510);
angle = (-(Math.random()) * 2);
limit = ((Math.random() * 0.8) + 0.2);
};
scaleX = (scaleY = (Math.sin(angle) * limit));
if (angle > 0){
visible = true;
} else {
visible = false;
};
}
private function _onUnLoad(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, _onUnLoad);
removeEventListener(Event.ENTER_FRAME, _onFrame);
}
}
}//package lib
Section 188
//Game_UI (lib.Game_UI)
package lib {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
import net.crazydream.*;
public class Game_UI extends MovieClip {
public var txt:TextField;
public var txt_score:TextField;
public var bt_more2:BrandingMC;
public var bar:MovieClip;
public var h1:Game_ui_hart;
public var h2:Game_ui_hart;
public var h3:Game_ui_hart;
private var timer:Timer;
private var timer2:Timer;
var js:int;
public static var totalTime:int;
public function Game_UI(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(Event.REMOVED_FROM_STAGE, _onUnload);
}
private function _onUnload(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, _onUnload);
timer.stop();
timer2.stop();
}
private function _onLoad(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
totalTime = 240;
js = 0;
timer = new Timer(1000);
timer.start();
timer.addEventListener(TimerEvent.TIMER, _timer);
timer2 = new Timer(100);
timer2.addEventListener(TimerEvent.TIMER, _shan);
_timer();
addEventListener(MouseEvent.CLICK, _click);
}
private function _click(_arg1:MouseEvent):void{
switch (_arg1.target){
case bt_more2:
SpilAPIManage.NavigateToURL(SpilAPIManage.url_ingame_logo);
break;
default:
break;
};
}
private function _timer(_arg1:TimerEvent=null):void{
if (!Game.gameStart){
return;
};
totalTime--;
txt_score.text = getTimeString();
if (totalTime == 16){
timer2.start();
};
if (totalTime == 0){
dispatchEvent(new Event("TimeOut"));
timer.stop();
timer2.stop();
};
}
private function _shan(_arg1:TimerEvent):void{
js++;
if ((js % 2) == 0){
txt_score.visible = true;
} else {
txt_score.visible = false;
};
}
public static function getTimeString():String{
var _local1 = "";
var _local2:int;
var _local3:int;
_local2 = int((totalTime / 60));
_local3 = int((totalTime % 60));
_local1 = (("0" + _local2) + ":");
if (_local3 < 10){
_local1 = (_local1 + ("0" + _local3));
} else {
_local1 = (_local1 + _local3);
};
return (_local1);
}
}
}//package lib
Section 189
//Game_ui_charHart (lib.Game_ui_charHart)
package lib {
import flash.display.*;
import flash.events.*;
public class Game_ui_charHart extends MovieClip {
private var angle:Number;
private var limit:Number;
public var R:Number;
public var showed:Boolean;
public function Game_ui_charHart(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(Event.REMOVED_FROM_STAGE, _onUnLoad);
addEventListener(Event.ENTER_FRAME, _onFrame);
angle = 0;
limit = 0.1;
R = 0;
}
private function _onFrame(_arg1:Event):void{
angle = (angle + 0.2);
scaleX = (scaleY = (R + (Math.sin(angle) * limit)));
if ((((R > 0)) && ((scaleX > 0)))){
visible = true;
} else {
visible = false;
};
}
private function _onUnLoad(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, _onUnLoad);
removeEventListener(Event.ENTER_FRAME, _onFrame);
}
}
}//package lib
Section 190
//Game_ui_hart (lib.Game_ui_hart)
package lib {
import flash.display.*;
import gs.*;
import gs.easing.*;
public class Game_ui_hart extends MovieClip {
public function dis(){
TweenMax.to(this, 0.6, {delay:0.4, y:(y + 60), onComplete:End, alpha:0});
}
private function End():void{
visible = false;
}
}
}//package lib
Section 191
//Game_ui_introHart (lib.Game_ui_introHart)
package lib {
import flash.display.*;
public dynamic class Game_ui_introHart extends MovieClip {
}
}//package lib
Section 192
//Game_Ui_Witch (lib.Game_Ui_Witch)
package lib {
import flash.display.*;
import flash.events.*;
import gs.*;
import gs.easing.*;
public class Game_Ui_Witch extends MovieClip {
public var witchshowed:Boolean;
private var mode:int;
private var spaceList:Array;
private var space:int;
private var js:int;
private var fx:int;
private var mc_hit:Game_mcHit;
public var mc_witch:Game_mcWitch;
public function Game_Ui_Witch(){
spaceList = [3, 6, 8.2, 4, 3.5, 5, 3, 6.8];
super();
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
removeEventListener(Event.REMOVED_FROM_STAGE, _onUnLoad);
addEventListener(Event.ENTER_FRAME, _onFrame);
getSpace();
js = 0;
mode = 0;
witchshowed = false;
}
private function _onUnLoad(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, _onUnLoad);
removeEventListener(Event.ENTER_FRAME, _onFrame);
}
private function _onFrame(_arg1:Event):void{
var _local2:*;
js++;
if ((((((js < int((spaceList[space] * 30)))) && (Game.rainDisplay))) && ((mode == 0)))){
js = 0;
};
if ((((mode == 0)) && ((js == int((spaceList[space] * 30)))))){
_local2 = int((Math.random() * 2));
mc_hit = new Game_mcHit();
addChild(mc_hit);
mc_hit.y = (60 + (Math.random() * 70));
if (_local2 == 0){
fx = -1;
mc_hit.x = 675;
} else {
fx = 1;
mc_hit.x = 25;
mc_hit.scaleX = -1;
};
mc_hit.scaleX = (mc_hit.scaleY = ((Math.random() * 0.5) + 0.5));
mode = 1;
};
if ((((mode == 1)) && ((js == int(((spaceList[space] * 30) + (1 * 30))))))){
removeChild(mc_hit);
mc_witch = new Game_mcWitch();
addChild(mc_witch);
mc_witch.gotoAndStop(1);
mc_witch.y = mc_hit.y;
if (fx == -1){
mc_witch.x = (mc_hit.x + 100);
} else {
mc_witch.x = (mc_hit.x - 100);
mc_witch.scaleX = -1;
};
mc_witch.scaleX = (mc_witch.scaleX * 0.1);
mc_witch.scaleY = (mc_witch.scaleY * 0.1);
if (fx == -1){
TweenMax.to(mc_witch, 0.2, {scaleX:1, scaleY:1, ease:Back.easeOut});
} else {
TweenMax.to(mc_witch, 0.2, {scaleX:-1, scaleY:1, ease:Back.easeOut});
};
mode = 20;
};
if ((((mode == 20)) && ((js == (int(((spaceList[space] * 30) + (1 * 30))) + (30 * 0.5)))))){
mode = 2;
};
if (mode == 2){
if ((((mc_witch.x < 642.5)) && ((mc_witch.x > 61.5)))){
witchshowed = true;
} else {
witchshowed = false;
};
mc_witch.x = (mc_witch.x + (16 * fx));
if ((((((fx == -1)) && ((mc_witch.x < -50)))) || ((((fx == 1)) && ((mc_witch.x > 730)))))){
dispatchEvent(new Event("Out"));
witchshowed = false;
removeChild(mc_witch);
mode = 0;
js = 0;
if (!Game.gameStart){
mode = 5;
};
};
};
if ((((mode == 3)) && ((js > (2 * 30))))){
mode = 2;
mc_witch.gotoAndStop(1);
Game(parent).setChar2();
};
}
public function showAnger(){
mode = 3;
mc_witch.gotoAndStop(2);
js = 0;
}
private function getSpace():void{
space = int((Math.random() * spaceList.length));
trace("@Game_Ui_Witch 女巫出现间隔:", space, "秒");
}
}
}//package lib
Section 193
//GameComplete (lib.GameComplete)
package lib {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import gs.*;
import gs.easing.*;
import net.crazydream.*;
public class GameComplete extends MovieClip {
public var bt_more:BT_moregame;
public var txt_time:TextField;
public var txt_score:TextField;
public var bt_setavatar:BT_start3;
public var txt_totalscore:TextField;
public var mcmc:MovieClip;
public var bt_more2:BrandingMC;
public var bt_menu:BT_menu2;
public var bt_tryagain:Bt_again;
public function GameComplete(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1:Event):void{
if (SpilAPIManage._tracker_game_complete == 0){
SpilAPIManage._tracker_game_complete++;
SpilAPIManage._tracker.trackEvent(DocumentClass.gameName, "game complete", "per session", 0);
};
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
txt_score.text = String(Game.score);
txt_time.text = Game_UI.getTimeString();
txt_totalscore.text = String((Game.score + (Game_UI.totalTime * 500)));
SpilAPIManage.setAwardScore((Game.score + (Game_UI.totalTime * 500)));
CD_UserData.unlock = false;
CD_UserData.saveData();
addEventListener(MouseEvent.CLICK, _click);
scaleX = (scaleY = 1.5);
x = (y = -150);
TweenMax.to(this, 0.5, {x:0, y:0, scaleX:1, scaleY:1, ease:Back.easeOut});
bt_menu.visible = false;
bt_more.visible = false;
bt_setavatar.visible = false;
mcmc.visible = false;
bt_tryagain.visible = false;
if (!SpilAPIManage.avatarShowed){
bt_setavatar.visible = false;
mcmc.visible = false;
TweenMax.to(bt_tryagain, 0.3, {visible:true, delay:(0.7 + 0.6), x:(471 + 13), y:469, ease:Back.easeOut});
TweenMax.to(bt_more, 0.3, {visible:true, delay:(0.7 + 0.2), x:((230 + 8) + 13), y:469, ease:Back.easeOut});
TweenMax.to(bt_menu, 0.3, {visible:true, delay:0.7, x:(2.75 + 13), y:469, ease:Back.easeOut});
} else {
TweenMax.to(bt_menu, 0.3, {visible:true, delay:0.7, x:(2.75 + 13), y:469, ease:Back.easeOut});
TweenMax.to(bt_more, 0.3, {visible:true, delay:(0.7 + 0.2), x:((230 - 10) + 13), y:469, ease:Back.easeOut});
TweenMax.to(bt_setavatar, 0.3, {visible:true, delay:(0.7 + 0.4), x:(471 + 13), y:469, ease:Back.easeOut});
TweenMax.to(mcmc, 0.3, {visible:true, delay:(0.7 + 0.5), x:((494 - 34) + 13), y:(471 + 8), ease:Back.easeOut});
TweenMax.to(bt_tryagain, 0.3, {visible:true, delay:(0.7 + 0.6), x:(471 + 13), y:411, ease:Back.easeOut});
};
}
private function _click(_arg1:MouseEvent):void{
switch (_arg1.target){
case bt_menu:
CD_StageManage.ShowStage("lib.Intro");
break;
case bt_more:
SpilAPIManage.NavigateToURL(SpilAPIManage.url_gamecomplete);
break;
case bt_more2:
SpilAPIManage.NavigateToURL(SpilAPIManage.url_gamecomplete_logo);
break;
case bt_tryagain:
CD_StageManage.ShowStage("lib.Game");
break;
case bt_setavatar:
CD_StageManage.ShowStage("lib.SetAsAvatar");
break;
default:
break;
};
}
}
}//package lib
Section 194
//GameComplete_flower (lib.GameComplete_flower)
package lib {
import flash.display.*;
import flash.events.*;
public class GameComplete_flower extends MovieClip {
public function GameComplete_flower(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(Event.REMOVED_FROM_STAGE, _onUnload);
addEventListener(Event.ENTER_FRAME, _onFrame);
}
private function _onUnload(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, _onUnload);
removeEventListener(Event.ENTER_FRAME, _onFrame);
}
private function _onFrame(_arg1:Event):void{
var _local3:*;
var _local2:* = 0;
while (_local2 < numChildren) {
_local3 = getChildAt(_local2);
_local3.rotation = (_local3.rotation + 3);
_local3.x = (_local3.x - 1);
_local3.y = (_local3.y + 7);
if ((((_local3.x < -20)) || ((_local3.y > 520)))){
_local3.x = ((Math.random() * 650) + 50);
_local3.y = -10;
};
_local2++;
};
}
}
}//package lib
Section 195
//GameOver (lib.GameOver)
package lib {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import gs.*;
import gs.easing.*;
import net.crazydream.*;
public class GameOver extends MovieClip {
public var bt_more:BT_moregame;
public var txt_time:TextField;
public var txt_score:TextField;
public var txt_totalscore:TextField;
public var bt_more2:BrandingMC;
public var bt_menu:BT_menu2;
public var bt_tryagain:Bt_again;
public function GameOver(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
txt_score.text = String(Game.score);
txt_time.text = Game_UI.getTimeString();
txt_totalscore.text = String(Game.score);
SpilAPIManage.setAwardScore(Game.score);
addEventListener(MouseEvent.CLICK, _click);
x = -400;
TweenMax.to(this, 0.4, {x:0, ease:Back.easeOut});
}
private function _click(_arg1:MouseEvent):void{
switch (_arg1.target){
case bt_menu:
CD_StageManage.ShowStage("lib.Intro");
break;
case bt_more:
SpilAPIManage.NavigateToURL(SpilAPIManage.url_gameover);
break;
case bt_more2:
SpilAPIManage.NavigateToURL(SpilAPIManage.url_gameover_logo);
break;
case bt_tryagain:
if (SpilAPIManage._tracker_try_again == 0){
SpilAPIManage._tracker_try_again++;
SpilAPIManage._tracker.trackEvent(DocumentClass.gameName, "try again", "per session", 0);
};
CD_StageManage.ShowStage("lib.Game");
break;
default:
break;
};
}
}
}//package lib
Section 196
//GameTimeOut (lib.GameTimeOut)
package lib {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import gs.*;
import gs.easing.*;
import net.crazydream.*;
public class GameTimeOut extends MovieClip {
public var txt:TextField;
public var bt_more:BT_moregame;
public var bt_more2:BrandingMC;
public var bt_menu:BT_menu2;
public var bt_tryagain:Bt_again;
public function GameTimeOut(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
try {
txt.text = String(Game.score);
} catch(err) {
};
SpilAPIManage.setAwardScore(Game.score);
addEventListener(MouseEvent.CLICK, _click);
x = -400;
TweenMax.to(this, 0.4, {x:0, ease:Back.easeOut});
}
private function _click(_arg1:MouseEvent):void{
switch (_arg1.target){
case bt_menu:
CD_StageManage.ShowStage("lib.Intro");
break;
case bt_more:
SpilAPIManage.NavigateToURL(SpilAPIManage.url_gameover);
break;
case bt_more2:
SpilAPIManage.NavigateToURL(SpilAPIManage.url_gameover_logo);
break;
case bt_tryagain:
if (SpilAPIManage._tracker_try_again == 0){
SpilAPIManage._tracker_try_again++;
SpilAPIManage._tracker.trackEvent(DocumentClass.gameName, "try again", "per session", 0);
};
CD_StageManage.ShowStage("lib.Game");
break;
default:
break;
};
}
}
}//package lib
Section 197
//HowToPlay (lib.HowToPlay)
package lib {
import flash.display.*;
import flash.events.*;
import net.crazydream.*;
public class HowToPlay extends MovieClip {
public var bt_more2:BrandingMC;
public var bt_start:BT_start2;
public var bt_menu:BT_menu2;
public function HowToPlay(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(MouseEvent.CLICK, _click);
}
private function _click(_arg1:MouseEvent):void{
switch (_arg1.target){
case bt_more2:
SpilAPIManage.NavigateToURL(SpilAPIManage.url_howtoplay_logo);
break;
case bt_menu:
CD_StageManage.ShowStage("lib.Intro");
break;
case bt_start:
CD_StageManage.ShowStage("lib.Game");
break;
default:
break;
};
}
}
}//package lib
Section 198
//Intro (lib.Intro)
package lib {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import spill.localisation.*;
import net.crazydream.*;
public class Intro extends MovieClip {
public var butterfly3:MovieClip;
public var butterfly1:MovieClip;
public var butterfly6:MovieClip;
public var __id2_:LanguageSelectBox;
public var butterfly7:MovieClip;
public var bt_spil:SpilGamesLink;
public var bt_more:BT_moregame;
public var butterfly4:MovieClip;
public var bt_how:BT_howtoplay;
public var butterfly5:MovieClip;
public var bt_setavatar:BT_start3;
public var s1:Game_star;
public var bt_more2:BrandingMC;
public var s2:Game_star;
public var bt_start:BT_start2;
public var s3:Game_star;
public var lock:MovieClip;
public var s4:Game_star;
public var s5:Game_star;
public var hit:MovieClip;
public var butterfly2:MovieClip;
public function Intro(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
__setProp___id2__Intro_();
}
private function _onLoad(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(MouseEvent.CLICK, _click);
var _local2:* = 1;
while (_local2 < 6) {
this[("s" + _local2)].showed = true;
_local2++;
};
if (CD_UserData.unlock){
lock.visible = true;
lock.addEventListener(MouseEvent.MOUSE_OVER, _over);
lock.addEventListener(MouseEvent.MOUSE_OUT, _out);
bt_setavatar.mouseEnabled = false;
bt_setavatar.mouseChildren = false;
} else {
lock.visible = false;
};
if (!SpilAPIManage.avatarShowed){
lock.visible = false;
bt_setavatar.visible = false;
};
hit.visible = false;
hit.mouseChildren = false;
hit.mouseEnabled = false;
if ((((SpilGame.portalGroup == PortalGroup.HYVES)) && ((SpilGame.currentLanguage.name == "nl_nl")))){
bt_spil.visible = false;
};
}
private function _out(_arg1:MouseEvent):void{
hit.visible = false;
}
private function _over(_arg1:MouseEvent):void{
hit.visible = true;
}
private function _click(_arg1:MouseEvent):void{
switch (_arg1.target){
case bt_start:
if (CD_UserData.storyShowed){
CD_StageManage.ShowStage("lib.Game");
} else {
CD_UserData.storyShowed = true;
CD_UserData.saveData();
CD_StageManage.ShowStage("lib.Story");
};
break;
case bt_how:
CD_UserData.howtoplayShowed = true;
CD_UserData.saveData();
CD_StageManage.ShowStage("lib.HowToPlay");
break;
case bt_more:
SpilAPIManage.NavigateToURL(SpilAPIManage.url_main);
break;
case bt_more2:
SpilAPIManage.NavigateToURL(SpilAPIManage.url_main_logo);
break;
case bt_setavatar:
CD_StageManage.ShowStage("lib.SetAsAvatar");
break;
default:
break;
};
}
function __setProp___id2__Intro_(){
try {
__id2_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id2_.popupLocation = "bottom";
try {
__id2_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package lib
Section 199
//Light (lib.Light)
package lib {
import flash.display.*;
import flash.events.*;
public class Light extends MovieClip {
public function Light(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1:Event):void{
var _local3:*;
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(Event.REMOVED_FROM_STAGE, _onUnLoad);
var _local2:* = 0;
while (_local2 < 20) {
_local3 = new LightMc();
addChild(_local3);
_local3.x = (Math.random() * 240);
_local3.y = (Math.random() * 250);
_local3.gotoAndPlay(int((Math.random() * 20)));
_local3.addEventListener("END", _end);
_local2++;
};
}
private function _onUnLoad(_arg1:Event):void{
var _local3:*;
removeEventListener(Event.REMOVED_FROM_STAGE, _onUnLoad);
var _local2:* = 0;
while (_local2 < numChildren) {
_local3 = getChildAt(_local2);
_local3.stop();
_local2++;
};
}
private function _end(_arg1:Event):void{
var _local2:* = _arg1.target;
_local2.x = (Math.random() * 240);
_local2.y = (Math.random() * 250);
}
}
}//package lib
Section 200
//Loading (lib.Loading)
package lib {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import spill.localisation.*;
import flash.utils.*;
import net.crazydream.*;
public class Loading extends MovieClipPlus {
public var txt:TextField;
public var txt_en:MovieClip;
public var bt_more:SimpleButton;
public var __id0_:LocalizedTextField;
public var bar:MovieClip;
public static var LOAD_COMPLETE:String = "LOAD_COMPLETE";
public function Loading(){
__setProp___id0__Loading_();
}
override protected function onload(){
txt.text = "100%";
if ((loaderInfo.bytesTotal - loaderInfo.bytesLoaded) < 5000){
completeHandler();
} else {
loaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);
loaderInfo.addEventListener(Event.COMPLETE, completeHandler);
};
if ((((SpilGame.portalGroup == PortalGroup.HYVES)) && ((SpilGame.currentLanguage.name == "nl_nl")))){
gotoAndStop(2);
} else {
gotoAndStop(1);
};
}
override protected function onclick(_arg1:MouseEvent){
if (_arg1.target == bt_more){
SpilAPIManage.NavigateToURL(SpilAPIManage.url_loading);
};
}
private function progressHandler(_arg1:ProgressEvent){
txt.text = (Math.floor(((_arg1.bytesLoaded / _arg1.bytesTotal) * 100)) + "%");
bar.scaleX = (_arg1.bytesLoaded / _arg1.bytesTotal);
}
private function completeHandler(_arg1:Event=null){
dispatchEvent(new Event(Loading.LOAD_COMPLETE));
}
override protected function unload(){
var _local1:* = (numChildren - 1);
while (_local1--) {
removeChildAt(_local1);
(_local1 > -1);
};
loaderInfo.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
loaderInfo.removeEventListener(Event.COMPLETE, completeHandler);
}
function __setProp___id0__Loading_(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.text = "{Loading_}";
__id0_.textColor = 3381708;
__id0_.textSize = 18;
__id0_.bold = false;
__id0_.disableWordwrap = false;
__id0_.embedFonts = true;
__id0_.font = "";
__id0_.hAlign = "center";
__id0_.multiline = false;
__id0_.vAlign = "top";
__id0_.antiAliasType = "advanced";
__id0_.glowBlur = 3;
__id0_.glowColor = 0;
__id0_.useGlowFilter = false;
__id0_.glowQuality = 1;
__id0_.glowStrength = 5;
__id0_.gridFitType = "pixel";
__id0_.italic = false;
__id0_.selectable = false;
__id0_.underline = false;
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package lib
Section 201
//SetAsAvatar (lib.SetAsAvatar)
package lib {
import flash.display.*;
import flash.events.*;
import gs.*;
import flash.geom.*;
import com.spilgames.bs.*;
import com.spilgames.api.*;
import flash.utils.*;
import gs.easing.*;
import net.crazydream.*;
import flash.ui.*;
public class SetAsAvatar extends MovieClip {
public var bee1:MovieClip;
public var bird2:MovieClip;
public var butterfly3:MovieClip;
public var rainbow:MovieClip;
public var bee2:MovieClip;
public var black:MovieClip;
public var star1:Game_star;
public var txt:txt1;
public var butterfly1:MovieClip;
public var star2:Game_star;
public var butterfly6:MovieClip;
public var squirrel:MovieClip;
public var star3:Game_star;
public var butterfly7:MovieClip;
public var star4:Game_star;
public var butterfly4:MovieClip;
public var star5:Game_star;
public var horse:MovieClip;
public var bt_big:图标放大;
public var bt_small:图标缩小;
public var butterfly5:MovieClip;
public var star6:Game_star;
public var star7:Game_star;
public var avatarshow:MovieClip;
public var star8:Game_star;
public var bt_more2:BrandingMC;
public var star9:Game_star;
public var elf:MovieClip;
public var char:MovieClip;
public var helps:help;
public var bt_save:图标保存;
public var sky:MovieClip;
public var bt_home:Bt_home;
public var grassfront:MovieClip;
public var box:MovieClip;
public var blue:MovieClip;
public var star10:Game_star;
public var rabbit1:MovieClip;
public var unicorn:MovieClip;
public var butterfly2:MovieClip;
public var bird:MovieClip;
public var rabbit2:MovieClip;
private var id:int;
private var mousemove:mouseMove;
private var drag:Boolean;
public function SetAsAvatar(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(Event.REMOVED_FROM_STAGE, _onUnLoad);
addEventListener(MouseEvent.MOUSE_DOWN, _click);
}
private function _onUnLoad(_arg1:Event){
clearTimeout(id);
box.removeEventListener(MouseEvent.MOUSE_DOWN, _click);
stage.removeEventListener(MouseEvent.MOUSE_UP, _up);
removeEventListener(Event.ENTER_FRAME, _onEnterFrame);
}
private function _onLoad(_arg1:Event){
SpilAPIManage.setAward(SpilAPIManage.tg4);
avatarshow.visible = false;
init();
if (SpilAPIManage._tracker_set_as_avatar == 0){
SpilAPIManage._tracker_set_as_avatar++;
SpilAPIManage._tracker.trackEvent(DocumentClass.gameName, "set as avatar", "per session", 0);
};
}
private function _over(_arg1:MouseEvent){
txt.visible = true;
TweenMax.to(blue, 0.2, {height:160});
TweenMax.to(txt, 0.3, {alpha:1});
}
private function _out(_arg1:MouseEvent){
TweenMax.to(blue, 0.3, {height:66});
TweenMax.to(txt, 0.2, {alpha:0});
}
private function init(){
drag = false;
txt.alpha = 0;
txt.mouseEnabled = false;
txt.mouseChildren = false;
helps.addEventListener(MouseEvent.MOUSE_OVER, _over);
helps.addEventListener(MouseEvent.MOUSE_OUT, _out);
stage.addEventListener(MouseEvent.MOUSE_UP, _up);
}
private function dis(){
helps.visible = true;
TweenMax.to(blue, 0.3, {height:42});
TweenMax.to(txt, 0.3, {alpha:0});
}
private function _onEnterFrame(_arg1:Event){
mousemove.x = mouseX;
mousemove.y = mouseY;
}
private function _up(_arg1:MouseEvent){
if (drag){
drag = false;
Mouse.show();
box.stopDrag();
removeChild(mousemove);
removeEventListener(Event.ENTER_FRAME, _onEnterFrame);
};
}
private function moveBox(){
if ((box.x - (box.width / 2)) < black.x){
box.x = (black.x + (box.width / 2));
};
if ((box.x + (box.width / 2)) > (black.x + black.width)){
box.x = ((black.x + black.width) - (box.width / 2));
};
if ((box.y - (box.height / 2)) < black.y){
box.y = (black.y + (box.height / 2));
};
if ((box.y + (box.height / 2)) > (black.y + black.height)){
box.y = ((black.y + black.height) - (box.height / 2));
};
}
private function onAvatarProcessed(_arg1:int, _arg2:Object):void{
if (((!((_arg2 == null))) && ((_arg2.success == true)))){
trace("Avatar succesfully set.\n");
} else {
trace("Avatar not succesfully set.\n");
};
}
private function _click(_arg1:MouseEvent){
var _local4:BitmapData;
var _local5:Bitmap;
var _local2:String = _arg1.target.name;
var _local3:Number = box.scaleX;
switch (_local2){
case "bt_more2":
SpilAPIManage.NavigateToURL(SpilAPIManage.url_uploadtoalbam_logo);
break;
case "bt_home":
CD_StageManage.ShowStage("lib.Intro");
break;
case "bt_save":
box.visible = false;
_local4 = new BitmapData(box.width, box.height);
_local4.draw(this, new Matrix(1, 0, 0, 1, ((-((box.x - (box.width / 2))) + black.x) + 2), ((-((box.y - (box.height / 2))) + black.y) + 2)));
if (AvatarService.isAvailable()){
AvatarService.saveBitmapData(_local4);
_local5 = new Bitmap(_local4, "auto", true);
try {
avatarshow.mc.removeChildAt(0);
} catch(err) {
};
avatarshow.mc.addChild(_local5);
_local5.width = 150;
_local5.height = 150;
avatarshow.visible = true;
setTimeout(disavatarshow, 3000);
};
box.visible = true;
break;
case "bt_small":
if (_local3 > 1.25){
_local3 = (_local3 - 0.25);
};
box.scaleX = (box.scaleY = _local3);
moveBox();
break;
case "bt_big":
if (_local3 < 2.5){
_local3 = (_local3 + 0.25);
};
box.scaleX = (box.scaleY = _local3);
moveBox();
break;
case "box":
drag = true;
Mouse.hide();
mousemove = new mouseMove();
addChild(mousemove);
mousemove.x = mouseX;
mousemove.y = mouseY;
setChildIndex(mousemove, getChildIndex(box));
addEventListener(Event.ENTER_FRAME, _onEnterFrame);
MovieClip(box).startDrag(false, new Rectangle((black.x + (box.width / 2)), (black.y + (box.height / 2)), (black.width - box.width), (black.height - box.height)));
break;
default:
break;
};
}
private function disavatarshow():void{
avatarshow.visible = false;
}
}
}//package lib
Section 202
//setQuality (lib.setQuality)
package lib {
import flash.display.*;
public class setQuality extends MovieClip {
public static var quality:int = 1;
}
}//package lib
Section 203
//Story (lib.Story)
package lib {
import flash.display.*;
import flash.events.*;
import net.crazydream.*;
public class Story extends MovieClip {
public var black:MovieClip;
public var bt_next:BT_next;
public var bt_more2:BrandingMC;
public var bt_menu:BT_menu2;
var page:int;
public function Story(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
page = 1;
addEventListener(MouseEvent.CLICK, _click);
gotoAndStop(1);
}
private function _click(_arg1:MouseEvent):void{
switch (_arg1.target){
case bt_more2:
SpilAPIManage.NavigateToURL(SpilAPIManage.url_story_logo);
break;
case bt_menu:
CD_StageManage.ShowStage("lib.Intro");
break;
case bt_next:
page++;
if (page < 5){
black.gotoAndPlay(1);
gotoAndStop(("page" + page));
} else {
if (CD_UserData.howtoplayShowed){
CD_StageManage.ShowStage("lib.Game");
} else {
CD_UserData.howtoplayShowed = true;
CD_UserData.saveData();
CD_StageManage.ShowStage("lib.HowToPlay");
};
};
break;
default:
break;
};
}
}
}//package lib
Section 204
//TestInfo (lib.TestInfo)
package lib {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import net.crazydream.*;
public class TestInfo extends MovieClipPlus {
public var txt:TextField;
var mode:int;// = 1
static var obj;
override protected function onload(){
stage.addEventListener(Event.ADDED, _add);
this.mouseChildren = false;
this.buttonMode = true;
obj = this;
visible = false;
}
override protected function onclick(_arg1:MouseEvent){
if (mode == 1){
mode = 0;
y = 65;
} else {
mode = 1;
y = 0;
};
}
private function _add(_arg1:Event):void{
parent.setChildIndex(this, (parent.numChildren - 1));
}
private function _updata(_arg1):void{
txt.text = _arg1.toString();
}
public static function updata(_arg1:int){
if (obj != null){
obj._updata(_arg1);
};
}
}
}//package lib
Section 205
//TextShow (lib.TextShow)
package lib {
import flash.display.*;
import flash.events.*;
import spill.localisation.*;
public class TextShow extends MovieClip {
public function TextShow(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(Event.REMOVED_FROM_STAGE, _onUnLoad);
}
private function _onUnLoad(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, _onUnLoad);
SpilGame.removeEventListener("languageChanged", languageChanged);
}
private function _onLoad(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
gotoAndStop(SpilGame.currentLanguage.name);
SpilGame.addEventListener("languageChanged", languageChanged);
}
private function languageChanged(_arg1:Event):void{
trace("SpilGame.currentLanguage.name", SpilGame.currentLanguage.name);
gotoAndStop(SpilGame.currentLanguage.name);
}
}
}//package lib
Section 206
//MovieClipPlus (net.crazydream.MovieClipPlus)
package net.crazydream {
import flash.display.*;
import flash.events.*;
public class MovieClipPlus extends MovieClip {
public function MovieClipPlus(){
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onLoad);
addEventListener(Event.REMOVED_FROM_STAGE, _onUnload);
addEventListener(MouseEvent.CLICK, onclick);
onload();
}
private function _onUnload(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, _onUnload);
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
removeEventListener(MouseEvent.CLICK, onclick);
unload();
}
protected function onclick(_arg1:MouseEvent){
}
protected function onload(){
}
protected function unload(){
}
}
}//package net.crazydream
Section 207
//SpilAPIManage (net.crazydream.SpilAPIManage)
package net.crazydream {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import spill.localisation.*;
import com.google.analytics.*;
import com.spilgames.bs.*;
import lib.*;
import com.spilgames.api.*;
import flash.utils.*;
public class SpilAPIManage extends Sprite {
private var Root:DocumentClass;
private var FailConnectServerJs:int;// = 0
private var BrandingComplete:Boolean;// = false
public static var gameName:String = "Fairytale_Kiss";
public static var game_Name:String = "Fairytale Kiss";
public static var gamePage:String = "Fairytale-Kiss.html";
private static var API:SpilAPIManage;
public static var GameId:String = "b298af8219e0102276893a48274e2899";
public static var versionInt:String = "v1.01";
public static var LOAD_COMPLETE:String = "LOAD_COMPLETE";
public static var DemoMode:Boolean = false;
public static var avatarShowed:Boolean = true;
private static var _tracker:AnalyticsTracker;
private static var _tracker_mainscreen:int = 0;
private static var _tracker_Mecha_Dinosaur:int = 0;
private static var _tracker_5_outcomes:int = 0;
private static var _tracker_Pressed_againButton:int = 0;
private static var _tracker_userLoggedIn:Boolean = false;
public static var tg1 = "award1";
public static var tg1_submited:int = 0;
public static var tg2 = "award2";
public static var tg2_submited:int = 0;
public static var tg3 = "award3";
public static var tg3_submited:int = 0;
public static var tg4 = "award4";
public static var tg4_submited:int = 0;
public static var tg5 = "award5";
public static var tg5_submited:int = 0;
public static var url_story:String = "button_story";
public static var url_story_logo:String = "logo_story";
public static var url_loading:String = "button_loading";
public static var url_main:String = "button_main";
public static var url_main_logo:String = "logo_main";
public static var url_ingame:String = "button_ingame";
public static var url_ingame_logo:String = "logo_ingame";
public static var url_uploadtoalbam_logo:String = "logo_uploadtoalbam";
public static var url_uploadtoalbam:String = "button_uploadtoalbam";
public static var url_levelMap:String = "button_levelMap";
public static var url_howtoplay:String = "button_howtoplay";
public static var url_howtoplay_logo:String = "button_howtoplay_logo";
public static var url_levelcomplete:String = "button_levelcomplete";
public static var url_levelfail:String = "button_levelfail";
public static var url_gamecomplete:String = "button_gamecomplete";
public static var url_gamecomplete_logo:String = "logo_gamecomplete";
public static var url_gameover:String = "button_gameover";
public static var url_gameover_logo:String = "logo_gameover";
public function SpilAPIManage(_arg1:DocumentClass){
Root = _arg1;
addEventListener(Event.ADDED_TO_STAGE, _onLoad);
}
private function _onLoad(_arg1:Event){
ConnectNewAPI();
}
private function ConnectNewAPI():void{
trace("SpilAPIManage初始化");
var _local1:XML = <LocalisedText><textItem identifier="Loading_"><en_us><![CDATA[Loading…]]></en_us><en_uk><![CDATA[Loading…]]></en_uk><nl_nl><![CDATA[Laden...]]></nl_nl><fr_fr><![CDATA[En chargement…]]></fr_fr><de_de><![CDATA[Laden...]]></de_de><es_es><![CDATA[Cargando...]]></es_es><pt_br><![CDATA[Carregando...]]></pt_br><pt_pt><![CDATA[A carregar…]]></pt_pt><it_it><![CDATA[Caricamento...]]></it_it><sv_se><![CDATA[Laddar ...]]></sv_se><pl_pl><![CDATA[Ładowanie...]]></pl_pl><ru_ru><![CDATA[Загрузка...]]></ru_ru><id_id><![CDATA[Memuatkan…]]></id_id><en_ar><![CDATA[Loading…]]></en_ar><jp_jp><![CDATA[Loading…]]></jp_jp><cn_cn><![CDATA[载入中...]]></cn_cn><es_mx><![CDATA[Cargando...]]></es_mx><es_ar><![CDATA[Cargando...]]></es_ar><tr_tr><![CDATA[Yüklüyor...]]></tr_tr></textItem><textItem identifier="Fairytale_Kiss"><en_us><![CDATA[Fairytale Kiss]]></en_us><en_uk><![CDATA[Fairytale Kiss]]></en_uk><nl_nl><![CDATA[Fairytale Kiss]]></nl_nl><fr_fr><![CDATA[Fairytale Kiss]]></fr_fr><de_de><![CDATA[Fairytale Kiss]]></de_de><es_es><![CDATA[Fairytale Kiss]]></es_es><pt_br><![CDATA[Fairytale Kiss]]></pt_br><pt_pt><![CDATA[Fairytale Kiss]]></pt_pt><it_it><![CDATA[Fairytale Kiss]]></it_it><sv_se><![CDATA[Fairytale Kiss]]></sv_se><pl_pl><![CDATA[Fairytale Kiss]]></pl_pl><ru_ru><![CDATA[Fairytale Kiss]]></ru_ru><id_id><![CDATA[Fairytale Kiss]]></id_id><en_ar><![CDATA[Fairytale Kiss]]></en_ar><jp_jp><![CDATA[Fairytale Kiss]]></jp_jp><cn_cn><![CDATA[童话之吻]]></cn_cn><es_mx><![CDATA[Fairytale Kiss]]></es_mx><es_ar><![CDATA[Fairytale Kiss]]></es_ar><tr_tr><![CDATA[Fairytale Kiss]]></tr_tr></textItem><textItem identifier="More_Games"><en_us><![CDATA[More Games]]></en_us><en_uk><![CDATA[More Games]]></en_uk><nl_nl><![CDATA[Meer spelletjes]]></nl_nl><fr_fr><![CDATA[Plus de jeux]]></fr_fr><de_de><![CDATA[Mehr Spiele]]></de_de><es_es><![CDATA[Más juegos]]></es_es><pt_br><![CDATA[Mais Jogos]]></pt_br><pt_pt><![CDATA[Mais jogos]]></pt_pt><it_it><![CDATA[Altri giochi]]></it_it><sv_se><![CDATA[Fler spel]]></sv_se><pl_pl><![CDATA[Więcej gier]]></pl_pl><ru_ru><![CDATA[Другие игры]]></ru_ru><id_id><![CDATA[Game Lainnya]]></id_id><en_ar><![CDATA[More Games]]></en_ar><jp_jp><![CDATA[他のゲームで遊ぶ]]></jp_jp><cn_cn><![CDATA[更多游戏]]></cn_cn><es_mx><![CDATA[Más juegos]]></es_mx><es_ar><![CDATA[Más juegos]]></es_ar><tr_tr><![CDATA[Daha Fazla Oyun]]></tr_tr></textItem><textItem identifier="How_To_Play"><en_us><![CDATA[How to Play]]></en_us><en_uk><![CDATA[How to Play]]></en_uk><nl_nl><![CDATA[Speluitleg]]></nl_nl><fr_fr><![CDATA[Instructions]]></fr_fr><de_de><![CDATA[Spielanleitung]]></de_de><es_es><![CDATA[Cómo jugar]]></es_es><pt_br><![CDATA[Como Jogar]]></pt_br><pt_pt><![CDATA[Como jogar]]></pt_pt><it_it><![CDATA[Come giocare]]></it_it><sv_se><![CDATA[Så spelar man]]></sv_se><pl_pl><![CDATA[Jak grać]]></pl_pl><ru_ru><![CDATA[Как играть]]></ru_ru><id_id><![CDATA[Cara Main]]></id_id><en_ar><![CDATA[How to Play]]></en_ar><jp_jp><![CDATA[遊び方]]></jp_jp><cn_cn><![CDATA[游戏方法]]></cn_cn><es_mx><![CDATA[Cómo jugar]]></es_mx><es_ar><![CDATA[Cómo jugar]]></es_ar><tr_tr><![CDATA[Nasıl Oynanır]]></tr_tr></textItem><textItem identifier="Start"><en_us><![CDATA[Start Game]]></en_us><en_uk><![CDATA[Start Game]]></en_uk><nl_nl><![CDATA[Spel starten]]></nl_nl><fr_fr><![CDATA[Jouer]]></fr_fr><de_de><![CDATA[Spiel starten]]></de_de><es_es><![CDATA[Comenzar]]></es_es><pt_br><![CDATA[Começar]]></pt_br><pt_pt><![CDATA[Iniciar]]></pt_pt><it_it><![CDATA[Gioca]]></it_it><sv_se><![CDATA[Starta spel]]></sv_se><pl_pl><![CDATA[Start]]></pl_pl><ru_ru><![CDATA[Начать игру]]></ru_ru><id_id><![CDATA[Mulai Game]]></id_id><en_ar><![CDATA[Start Game]]></en_ar><jp_jp><![CDATA[ゲームを始める]]></jp_jp><cn_cn><![CDATA[开始游戏]]></cn_cn><es_mx><![CDATA[Comenzar]]></es_mx><es_ar><![CDATA[Comenzar]]></es_ar><tr_tr><![CDATA[Oyunu Başlat]]></tr_tr></textItem><textItem identifier="Set_As_Avatar"><en_us><![CDATA[Set as Avatar]]></en_us><en_uk><![CDATA[Set as Avatar]]></en_uk><nl_nl><![CDATA[Instellen als avatar]]></nl_nl><fr_fr><![CDATA[Définir en tant qu'Avatar]]></fr_fr><de_de><![CDATA[Als Avatar verwenden]]></de_de><es_es><![CDATA[Establecer como avatar]]></es_es><pt_br><![CDATA[Definir como Avatar]]></pt_br><pt_pt><![CDATA[Definir como Avatar]]></pt_pt><it_it><![CDATA[Imposta come avatar]]></it_it><sv_se><![CDATA[Spara som avatar]]></sv_se><pl_pl><![CDATA[Ustaw jako awatar]]></pl_pl><ru_ru><![CDATA[Сделать аватаром]]></ru_ru><id_id><![CDATA[Tetapkan sebagai Avatar]]></id_id><en_ar><![CDATA[Set as Avatar]]></en_ar><jp_jp><![CDATA[アバターに設定する]]></jp_jp><cn_cn><![CDATA[设为虚拟形象]]></cn_cn><es_mx><![CDATA[Establecer como avatar]]></es_mx><es_ar><![CDATA[Establecer como avatar]]></es_ar><tr_tr><![CDATA[Avatar Yap]]></tr_tr></textItem><textItem identifier="Complete_the_game_to_unlock_this_"><en_us><![CDATA[Complete game to unlock!]]></en_us><en_uk><![CDATA[Complete game to unlock!]]></en_uk><nl_nl><![CDATA[Voltooi het spel om dit vrij te spelen!]]></nl_nl><fr_fr><![CDATA[Terminer la partie pour débloquer !]]></fr_fr><de_de><![CDATA[Schließe zum Freischalten das Spiel ab!]]></de_de><es_es><![CDATA[¡Completa el juego para desbloquear!]]></es_es><pt_br><![CDATA[Complete o jogo para desbloquear!]]></pt_br><pt_pt><![CDATA[Completar o jogo para desbloquear!]]></pt_pt><it_it><![CDATA[Completa il gioco per sbloccarlo!]]></it_it><sv_se><![CDATA[Klara spel för att låsa upp!]]></sv_se><pl_pl><![CDATA[Ukończ grę, aby odblokować!]]></pl_pl><ru_ru><![CDATA[Вначале пройди игру!]]></ru_ru><id_id><![CDATA[Selesaikan game untuk membuka!]]></id_id><en_ar><![CDATA[Complete game to unlock!]]></en_ar><jp_jp><![CDATA[ゲームをクリアしてアンロックしましょう!]]></jp_jp><cn_cn><![CDATA[完成游戏以解锁!]]></cn_cn><es_mx><![CDATA[¡Completa el juego para desbloquear!]]></es_mx><es_ar><![CDATA[¡Completa el juego para desbloquear!]]></es_ar><tr_tr><![CDATA[Kilidi açmak için oyunu tamamla!]]></tr_tr></textItem><textItem identifier="Story"><en_us><![CDATA[Story]]></en_us><en_uk><![CDATA[Story]]></en_uk><nl_nl><![CDATA[Verhaal]]></nl_nl><fr_fr><![CDATA[Histoire]]></fr_fr><de_de><![CDATA[Story]]></de_de><es_es><![CDATA[Historia]]></es_es><pt_br><![CDATA[História]]></pt_br><pt_pt><![CDATA[História]]></pt_pt><it_it><![CDATA[Storia]]></it_it><sv_se><![CDATA[Berättelse]]></sv_se><pl_pl><![CDATA[Fabuła]]></pl_pl><ru_ru><![CDATA[Сюжет]]></ru_ru><id_id><![CDATA[Cerita]]></id_id><en_ar><![CDATA[Story]]></en_ar><jp_jp><![CDATA[ストーリー]]></jp_jp><cn_cn><![CDATA[故事]]></cn_cn><es_mx><![CDATA[Historia]]></es_mx><es_ar><![CDATA[Historia]]></es_ar><tr_tr><![CDATA[Hikaye]]></tr_tr></textItem><textItem identifier="next"><en_us><![CDATA[Next]]></en_us><en_uk><![CDATA[Next]]></en_uk><nl_nl><![CDATA[Volgende]]></nl_nl><fr_fr><![CDATA[Suivant]]></fr_fr><de_de><![CDATA[Weiter]]></de_de><es_es><![CDATA[Siguiente]]></es_es><pt_br><![CDATA[Seguinte]]></pt_br><pt_pt><![CDATA[Seguinte]]></pt_pt><it_it><![CDATA[Avanti]]></it_it><sv_se><![CDATA[Nästa]]></sv_se><pl_pl><![CDATA[Dalej]]></pl_pl><ru_ru><![CDATA[Дальше]]></ru_ru><id_id><![CDATA[Berikutnya]]></id_id><en_ar><![CDATA[Next]]></en_ar><jp_jp><![CDATA[次へ]]></jp_jp><cn_cn><![CDATA[下一步]]></cn_cn><es_mx><![CDATA[Siguiente]]></es_mx><es_ar><![CDATA[Siguiente]]></es_ar><tr_tr><![CDATA[Sonraki]]></tr_tr></textItem><textItem identifier="Menu"><en_us><![CDATA[Menu]]></en_us><en_uk><![CDATA[Menu]]></en_uk><nl_nl><![CDATA[Menu]]></nl_nl><fr_fr><![CDATA[Menu]]></fr_fr><de_de><![CDATA[Menü]]></de_de><es_es><![CDATA[Menú]]></es_es><pt_br><![CDATA[Menu]]></pt_br><pt_pt><![CDATA[Menu]]></pt_pt><it_it><![CDATA[Menu]]></it_it><sv_se><![CDATA[Meny]]></sv_se><pl_pl><![CDATA[Menu]]></pl_pl><ru_ru><![CDATA[Меню]]></ru_ru><id_id><![CDATA[Menu]]></id_id><en_ar><![CDATA[Menu]]></en_ar><jp_jp><![CDATA[メニュー]]></jp_jp><cn_cn><![CDATA[菜单]]></cn_cn><es_mx><![CDATA[Menú]]></es_mx><es_ar><![CDATA[Menú]]></es_ar><tr_tr><![CDATA[Menü]]></tr_tr></textItem><textItem identifier="A_wicked_witch_has_come_to_town"><en_us><![CDATA[A wicked witch has come to town,]]></en_us><en_uk><![CDATA[A wicked witch has come to town,]]></en_uk><nl_nl><![CDATA[Er is een boze heks gearriveerd...]]></nl_nl><fr_fr><![CDATA[Une vilaine sorcière est arrivée en ville,]]></fr_fr><de_de><![CDATA[Eine böse Hexe kam in unsere Stadt,]]></de_de><es_es><![CDATA[Una malvada bruja ha llegado,]]></es_es><pt_br><![CDATA[A bruxa malvada chegou pra ficar,]]></pt_br><pt_pt><![CDATA[Uma bruxa malvada chegou à cidade,]]></pt_pt><it_it><![CDATA[Una strega malvagia è arrivata in città.]]></it_it><sv_se><![CDATA[En elak häxa har kommit till byn]]></sv_se><pl_pl><![CDATA[Zła wiedźma przybyła do wioski]]></pl_pl><ru_ru><![CDATA[В деревню злая ведьма прилетела,]]></ru_ru><id_id><![CDATA[Seorang penyihir jahat datang ke kota,]]></id_id><en_ar><![CDATA[A wicked witch has come to town,]]></en_ar><jp_jp><![CDATA[悪い魔女が村にやって来て]]></jp_jp><cn_cn><![CDATA[一个邪恶的女巫来到镇上,]]></cn_cn><es_mx><![CDATA[Una malvada bruja ha llegado,]]></es_mx><es_ar><![CDATA[Una malvada bruja ha llegado,]]></es_ar><tr_tr><![CDATA[Kasabaya kötü bir cadı gelmiş,]]></tr_tr></textItem><textItem identifier="Bringing_everybody_down"><en_us><![CDATA[Bringing everybody down,]]></en_us><en_uk><![CDATA[Bringing everybody down,]]></en_uk><nl_nl><![CDATA[Die alle liefde en geluk bezweert.]]></nl_nl><fr_fr><![CDATA[provoquant un abattement général,]]></fr_fr><de_de><![CDATA[wo sie den Leuten ihr Lachen geraubt hat,]]></de_de><es_es><![CDATA[y a todo el mundo ha hechizado.]]></es_es><pt_br><![CDATA[E vai a todos assustar,]]></pt_br><pt_pt><![CDATA[P'ra desmoralizar a comunidade,]]></pt_pt><it_it><![CDATA[E vuole rubare la felicità.]]></it_it><sv_se><![CDATA[och hon gör alla olyckliga.]]></sv_se><pl_pl><![CDATA[I wszędzie smutek zagościł.]]></pl_pl><ru_ru><![CDATA[Заставить всех рыдать она хотела.]]></ru_ru><id_id><![CDATA[Mengutuk semua orang di sana,]]></id_id><en_ar><![CDATA[Bringing everybody down,]]></en_ar><jp_jp><![CDATA[みんなを苦しめています]]></jp_jp><cn_cn><![CDATA[打倒了每个人,]]></cn_cn><es_mx><![CDATA[y a todo el mundo ha hechizado.]]></es_mx><es_ar><![CDATA[y a todo el mundo ha hechizado.]]></es_ar><tr_tr><![CDATA[Herkesi dize getirmiş,]]></tr_tr></textItem><textItem identifier="Happiness_has_been_forbidden"><en_us><![CDATA[Happiness has been forbidden,]]></en_us><en_uk><![CDATA[Happiness has been forbidden,]]></en_uk><nl_nl><![CDATA[Niemand mag meer gelukkig zijn...]]></nl_nl><fr_fr><![CDATA[Il est interdit d'être heureux,]]></fr_fr><de_de><![CDATA[Keiner darf sich jetzt mehr freuen,]]></de_de><es_es><![CDATA[Se ha prohibido la felicidad,]]></es_es><pt_br><![CDATA[A felicidade acabou,]]></pt_br><pt_pt><![CDATA[A felicidade ficará perdida,]]></pt_pt><it_it><![CDATA[Non c'è più gioia né allegria.]]></it_it><sv_se><![CDATA[Lycka har blivit förbjudet.]]></sv_se><pl_pl><![CDATA[Uśmiechy są zabronione, ]]></pl_pl><ru_ru><![CDATA[Ее приводит счастье в исступленье,]]></ru_ru><id_id><![CDATA[Kebahagiaan telah dilarang,]]></id_id><en_ar><![CDATA[Happiness has been forbidden,]]></en_ar><jp_jp><![CDATA[幸せはタブーとなって]]></jp_jp><cn_cn><![CDATA[幸福被她禁止,]]></cn_cn><es_mx><![CDATA[Se ha prohibido la felicidad,]]></es_mx><es_ar><![CDATA[Se ha prohibido la felicidad,]]></es_ar><tr_tr><![CDATA[Mutluluk yasaklanmış,]]></tr_tr></textItem><textItem identifier="Every_smile_needs_to_be_hidden"><en_us><![CDATA[Every smile must now be hidden.]]></en_us><en_uk><![CDATA[Every smile must now be hidden.]]></en_uk><nl_nl><![CDATA[en elke glimlach blijft geheim.]]></nl_nl><fr_fr><![CDATA[Désormais, chacun doit sourire en cachette.]]></fr_fr><de_de><![CDATA[Jedes Lächeln muss man scheuen.]]></de_de><es_es><![CDATA[y las sonrisas hay que ocultar.]]></es_es><pt_br><![CDATA[E nenhum sorriso sobrou.]]></pt_br><pt_pt><![CDATA[A cara sorridente ficará escondida, ]]></pt_pt><it_it><![CDATA[Tutti i sorrisi si porterà via.]]></it_it><sv_se><![CDATA[Alla leenden måste döljas.]]></sv_se><pl_pl><![CDATA[Nie wolno pokazać radości.]]></pl_pl><ru_ru><![CDATA[И улыбаться нынче – преступленье.]]></ru_ru><id_id><![CDATA[Semua senyuman harus hilang,]]></id_id><en_ar><![CDATA[Every smile must now be hidden.]]></en_ar><jp_jp><![CDATA[人前で笑うことも許されません]]></jp_jp><cn_cn><![CDATA[人人必须隐藏笑容。]]></cn_cn><es_mx><![CDATA[y las sonrisas hay que ocultar.]]></es_mx><es_ar><![CDATA[y las sonrisas hay que ocultar.]]></es_ar><tr_tr><![CDATA[Herkes gülücüğünü saklamak zorunda kalmış.]]></tr_tr></textItem><textItem identifier="To_whom_is_caught_is_turned_to_stone"><en_us><![CDATA[Cheerful folk are turned to stone,]]></en_us><en_uk><![CDATA[Cheerful folk are turned to stone,]]></en_uk><nl_nl><![CDATA[Ben je vrolijk, dan verander je in steen...]]></nl_nl><fr_fr><![CDATA[La foule joyeuse s'est transformée en statue de pierre.]]></fr_fr><de_de><![CDATA[Wer lacht, den macht sie gleich zu Stein,]]></de_de><es_es><![CDATA[La gente feliz se convierte en roca,]]></es_es><pt_br><![CDATA[O povo alegre é petrificado,]]></pt_br><pt_pt><![CDATA[Gente contente em pedra transformada,]]></pt_pt><it_it><![CDATA[Trasforma in pietra gli innamorati.]]></it_it><sv_se><![CDATA[Glada personer förvandlas till sten]]></sv_se><pl_pl><![CDATA[Wesołków zamienia się w kamień -]]></pl_pl><ru_ru><![CDATA[Весельчаки превращены все в камень,]]></ru_ru><id_id><![CDATA[Penduduk kota yang ceria dikutuk jadi batu,]]></id_id><en_ar><![CDATA[Cheerful folk are turned to stone,]]></en_ar><jp_jp><![CDATA[陽気な人たちは石に変えられました]]></jp_jp><cn_cn><![CDATA[快乐的人们被变成石头,]]></cn_cn><es_mx><![CDATA[La gente feliz se convierte en roca,]]></es_mx><es_ar><![CDATA[La gente feliz se convierte en roca,]]></es_ar><tr_tr><![CDATA[Neşe dolu ahali buz kesilmiş,]]></tr_tr></textItem><textItem identifier="Forever_frozen_and_alone"><en_us><![CDATA[Forever frozen and alone.]]></en_us><en_uk><![CDATA[Forever frozen and alone.]]></en_uk><nl_nl><![CDATA[En blijf je voor eeuwig koud en alleen.]]></nl_nl><fr_fr><![CDATA[gelée et seule pour toujours.]]></fr_fr><de_de><![CDATA[Für immer kalt und ganz allein.]]></de_de><es_es><![CDATA[petrificada para siempre y sola.]]></es_es><pt_br><![CDATA[E para sempre congelado.]]></pt_br><pt_pt><![CDATA[Para sempre sozinha, ficará gelada, ]]></pt_pt><it_it><![CDATA[Per l'eternità saran congelati.]]></it_it><sv_se><![CDATA[för evigt stelnade och ensamma.]]></sv_se><pl_pl><![CDATA[Samotny, zimny i szary.]]></pl_pl><ru_ru><![CDATA[Стоять им так, оцепенев, веками...]]></ru_ru><id_id><![CDATA[Selamanya kesepian dan membeku.]]></id_id><en_ar><![CDATA[Forever frozen and alone.]]></en_ar><jp_jp><![CDATA[永遠に固まったまま、ひとりぼっち]]></jp_jp><cn_cn><![CDATA[永远冻结,永远孤独。]]></cn_cn><es_mx><![CDATA[petrificada para siempre y sola.]]></es_mx><es_ar><![CDATA[petrificada para siempre y sola.]]></es_ar><tr_tr><![CDATA[Sonsuza dek donuk ve yalnız.]]></tr_tr></textItem><textItem identifier="As_evil_lures_from_above"><en_us><![CDATA[As evil strikes from up above,]]></en_us><en_uk><![CDATA[As evil strikes from up above,]]></en_uk><nl_nl><![CDATA[Jij moet nu als enige de strijd aangaan...]]></nl_nl><fr_fr><![CDATA[Comme le mal a frappé de tout là-haut,]]></fr_fr><de_de><![CDATA[In diesen ziemlich traurigen Zeiten,]]></de_de><es_es><![CDATA[El mal ataca sin distinción,]]></es_es><pt_br><![CDATA[Enquanto o mal tenta reinar,]]></pt_br><pt_pt><![CDATA[Uma força malévola se mostra maior,]]></pt_pt><it_it><![CDATA[È una maledizione senza onore.]]></it_it><sv_se><![CDATA[När ondskan slår ned från ovan]]></sv_se><pl_pl><![CDATA[Dopiero twa miłość ma sprawić,]]></pl_pl><ru_ru><![CDATA[Коль зло встает у счастья на пути,]]></ru_ru><id_id><![CDATA[Seiring datangnya kejahatan dari atas,]]></id_id><en_ar><![CDATA[As evil strikes from up above,]]></en_ar><jp_jp><![CDATA[襲いかかる悪に立ち向かい]]></jp_jp><cn_cn><![CDATA[邪恶从天而降,]]></cn_cn><es_mx><![CDATA[El mal ataca sin distinción,]]></es_mx><es_ar><![CDATA[El mal ataca sin distinción,]]></es_ar><tr_tr><![CDATA[Yukarıdan kötü saldırılar geldiğinden,]]></tr_tr></textItem><textItem identifier="It_s_up_to_you_to_spread_the_love_"><en_us><![CDATA[It's up to you to spread some love!]]></en_us><en_uk><![CDATA[It's up to you to spread some love!]]></en_uk><nl_nl><![CDATA[Om het kwaad met liefde te verslaan!]]></nl_nl><fr_fr><![CDATA[C'est toi qui doit répandre l'amour !]]></fr_fr><de_de><![CDATA[Musst du nun Liebe hier verbreiten!]]></de_de><es_es><![CDATA[¡y repartir amor es tu misión!]]></es_es><pt_br><![CDATA[Está em suas mãos a vila salvar!]]></pt_br><pt_pt><![CDATA[A ti caberá espalhar o amor!]]></pt_pt><it_it><![CDATA[Toccherà a te diffonder l'amore!]]></it_it><sv_se><![CDATA[är det upp till dig att sprida kärlek!]]></sv_se><pl_pl><![CDATA[Że znikną złej wiedźmy czary!]]></pl_pl><ru_ru><![CDATA[Любовь одна способна всех спасти!]]></ru_ru><id_id><![CDATA[Saatnya kamu membuat cinta tersebar luas!]]></id_id><en_ar><![CDATA[It's up to you to spread some love!]]></en_ar><jp_jp><![CDATA[愛の種をまくのはあなたしかいません!]]></jp_jp><cn_cn><![CDATA[现在是你播撒爱意的时刻!]]></cn_cn><es_mx><![CDATA[¡y repartir amor es tu misión!]]></es_mx><es_ar><![CDATA[¡y repartir amor es tu misión!]]></es_ar><tr_tr><![CDATA[Biraz sevgi saçmak sana kalmış!]]></tr_tr></textItem><textItem identifier="Use_your_left_mouse-key_to_start_kissing__Do_not_get_caught_by_the_evil_witch__Spread_the_love_and_save_the_village_"><en_us><![CDATA[Click to kiss, but don't get caught by the witch! Spread some love and save the village…]]></en_us><en_uk><![CDATA[Click to kiss, but don't let the witch catch you! Spread some love and save the village…]]></en_uk><nl_nl><![CDATA[Klik om te zoenen, maar laat je niet betrappen door de heks. Verspreid de liefde en red het dorp!]]></nl_nl><fr_fr><![CDATA[Appuie pour embrasser, mais ne te fais pas prendre par la sorcière ! Répands l'amour et sauve le village…]]></fr_fr><de_de><![CDATA[Küsse durch Klicken, aber lass dich nicht von der Hexe erwischen! Verbreite deine Liebe und rette das Dorf!]]></de_de><es_es><![CDATA[Haz clic para besar, ¡pero que no te pille la bruja! Reparte amor y salva la aldea...]]></es_es><pt_br><![CDATA[Clique para beijar, mas não seja pego pela bruxa! Espalhe o amor e salve a vila...]]></pt_br><pt_pt><![CDATA[Clica para beijar mas não te deixes apanhar pela bruxa! Espalha o amor e salva a aldeia…]]></pt_pt><it_it><![CDATA[Clicca per dare un bacio, ma non farti prendere dalla strega! Diffondi l'amore e salva il villaggio...]]></it_it><sv_se><![CDATA[Klicka för att kyssas, men låt inte häxan se er! Sprid lite kärlek och rädda byn.]]></sv_se><pl_pl><![CDATA[Kliknij, aby rozpocząć całowanie, ale nie pozwól, by wiedźma cię przyłapała! Rozsiej swą miłość i ocal wioskę...]]></pl_pl><ru_ru><![CDATA[Щелкай мышью, чтобы целоваться, но не попадись ведьме на глаза! Спаси деревню своей любовью...]]></ru_ru><id_id><![CDATA[Klik untuk mencium, tapi jangan sampai tertangkap penyihir! Sebarkan cinta dan selamatkan desa…]]></id_id><en_ar><![CDATA[Click to kiss, but don't get caught by the witch! Spread some love and save the village…]]></en_ar><jp_jp><![CDATA[クリックしてキスしましょう。でも魔女に捕まらないように! 愛の種をまいて村を救いましょう…]]></jp_jp><cn_cn><![CDATA[点击就可以亲吻,但不要被巫婆捉住!播撒爱意,拯救村庄...]]></cn_cn><es_mx><![CDATA[Haz clic para besar, ¡pero que no te pille la bruja! Reparte amor y salva la aldea...]]></es_mx><es_ar><![CDATA[Haz clic para besar, ¡pero que no te pille la bruja! Reparte amor y salva la aldea...]]></es_ar><tr_tr><![CDATA[Öpmek için tıklat ama sakın cadıya yakalanma! Biraz sevgi saç ve köye sahip çık…]]></tr_tr></textItem><textItem identifier="You_can_do_it_"><en_us><![CDATA[Good luck!]]></en_us><en_uk><![CDATA[Good luck!]]></en_uk><nl_nl><![CDATA[Veel succes!]]></nl_nl><fr_fr><![CDATA[Bonne chance !]]></fr_fr><de_de><![CDATA[Viel Glück!]]></de_de><es_es><![CDATA[¡Buena suerte!]]></es_es><pt_br><![CDATA[Boa sorte!]]></pt_br><pt_pt><![CDATA[Boa sorte!]]></pt_pt><it_it><![CDATA[Buona fortuna!]]></it_it><sv_se><![CDATA[Lycka till!]]></sv_se><pl_pl><![CDATA[Powodzenia!]]></pl_pl><ru_ru><![CDATA[Удачи!]]></ru_ru><id_id><![CDATA[Semoga Berhasil!]]></id_id><en_ar><![CDATA[Good luck!]]></en_ar><jp_jp><![CDATA[がんばってください!]]></jp_jp><cn_cn><![CDATA[祝你好运!]]></cn_cn><es_mx><![CDATA[¡Buena suerte!]]></es_mx><es_ar><![CDATA[¡Buena suerte!]]></es_ar><tr_tr><![CDATA[Bol şans!]]></tr_tr></textItem><textItem identifier="Hold_your_left_mouse-key_to_start_kissing"><en_us><![CDATA[Click and hold to start kissing.]]></en_us><en_uk><![CDATA[Click and hold to start kissing.]]></en_uk><nl_nl><![CDATA[Klik en houd ingedrukt om te zoenen.]]></nl_nl><fr_fr><![CDATA[Maintiens le clic pour embrasser.]]></fr_fr><de_de><![CDATA[Zum Küssen klicken und halten.]]></de_de><es_es><![CDATA[Mantén pulsado para empezar a besar.]]></es_es><pt_br><![CDATA[Clique e segure para começar a beijar.]]></pt_br><pt_pt><![CDATA[Clica e segura para começares a beijar.]]></pt_pt><it_it><![CDATA[Clicca e tieni premuto per dare un bacio.]]></it_it><sv_se><![CDATA[Klicka och håll ned för att kyssas.]]></sv_se><pl_pl><![CDATA[Kliknij i przytrzymaj, aby rozpocząć całowanie.]]></pl_pl><ru_ru><![CDATA[Щелкни мышью и удерживай кнопку нажатой, чтобы начать целоваться.]]></ru_ru><id_id><![CDATA[Klik dan tahan untuk mulai mencium.]]></id_id><en_ar><![CDATA[Click and hold to start kissing.]]></en_ar><jp_jp><![CDATA[クリックしてホールドすると、キスがスタートです]]></jp_jp><cn_cn><![CDATA[点击并按住以开始亲吻。]]></cn_cn><es_mx><![CDATA[Mantén pulsado para empezar a besar.]]></es_mx><es_ar><![CDATA[Mantén pulsado para empezar a besar.]]></es_ar><tr_tr><![CDATA[Öpmeyi başlatmak için tıklat ve öylece tut.]]></tr_tr></textItem><textItem identifier="Stop_kissing_when_you_see_this_[x]_"><en_us><![CDATA[Stop kissing when you see: [x]]]></en_us><en_uk><![CDATA[Stop kissing when you see: [x]]]></en_uk><nl_nl><![CDATA[Stop met zoenen zodra je dit ziet: [x]]]></nl_nl><fr_fr><![CDATA[Arrête d'embrasser dès que tu vois : [x]]]></fr_fr><de_de><![CDATA[Hör auf mit Küssen, wenn du das siehst: [x]]]></de_de><es_es><![CDATA[Deja de besar cuando veas: [x]]]></es_es><pt_br><![CDATA[Pare de beijar quando vir: [x]]]></pt_br><pt_pt><![CDATA[Pára de beijar quando vires: [x]]]></pt_pt><it_it><![CDATA[Smetti di baciare quando vedi: [x]]]></it_it><sv_se><![CDATA[Sluta kyssas när du ser: [x]]]></sv_se><pl_pl><![CDATA[Przerwij całowanie, kiedy zobaczysz: [x]]]></pl_pl><ru_ru><![CDATA[Прекращай целоваться, когда увидишь [x]]]></ru_ru><id_id><![CDATA[Berhenti mencium ketika kamu melihat: [x]]]></id_id><en_ar><![CDATA[Stop kissing when you see: [x]]]></en_ar><jp_jp><![CDATA[[x]が見えたら、キスをやめましょう]]></jp_jp><cn_cn><![CDATA[当你看到[x]时,停止亲吻]]></cn_cn><es_mx><![CDATA[Deja de besar cuando veas: [x]]]></es_mx><es_ar><![CDATA[Deja de besar cuando veas: [x]]]></es_ar><tr_tr><![CDATA[Şunu görürsen öpmeye son ver: [x]]]></tr_tr></textItem><textItem identifier="Hold"><en_us><![CDATA[Hold]]></en_us><en_uk><![CDATA[Hold]]></en_uk><nl_nl><![CDATA[Houd ingedrukt]]></nl_nl><fr_fr><![CDATA[Maintenir]]></fr_fr><de_de><![CDATA[Gedrückt halten]]></de_de><es_es><![CDATA[Mantener]]></es_es><pt_br><![CDATA[Segurar]]></pt_br><pt_pt><![CDATA[Segura]]></pt_pt><it_it><![CDATA[Tieni premuto]]></it_it><sv_se><![CDATA[Håll ned]]></sv_se><pl_pl><![CDATA[Przytrzymaj]]></pl_pl><ru_ru><![CDATA[Удерживай]]></ru_ru><id_id><![CDATA[Tahan]]></id_id><en_ar><![CDATA[Hold]]></en_ar><jp_jp><![CDATA[ホールド]]></jp_jp><cn_cn><![CDATA[按住]]></cn_cn><es_mx><![CDATA[Mantener]]></es_mx><es_ar><![CDATA[Mantener]]></es_ar><tr_tr><![CDATA[Tut]]></tr_tr></textItem><textItem identifier="Game_Over"><en_us><![CDATA[Game Over]]></en_us><en_uk><![CDATA[Game Over]]></en_uk><nl_nl><![CDATA[Game over]]></nl_nl><fr_fr><![CDATA[Fin]]></fr_fr><de_de><![CDATA[Game Over]]></de_de><es_es><![CDATA[Fin del juego]]></es_es><pt_br><![CDATA[Acabou]]></pt_br><pt_pt><![CDATA[Acabou]]></pt_pt><it_it><![CDATA[Game over]]></it_it><sv_se><![CDATA[Game over]]></sv_se><pl_pl><![CDATA[Koniec gry]]></pl_pl><ru_ru><![CDATA[Конец игры]]></ru_ru><id_id><![CDATA[Game Tamat]]></id_id><en_ar><![CDATA[Game Over]]></en_ar><jp_jp><![CDATA[ゲームオーバー]]></jp_jp><cn_cn><![CDATA[游戏结束]]></cn_cn><es_mx><![CDATA[Fin del juego]]></es_mx><es_ar><![CDATA[Fin del juego]]></es_ar><tr_tr><![CDATA[Oyun Bitti]]></tr_tr></textItem><textItem identifier="Oh_no__The_evil_witch_caught_you_and_turned_you_into_stone_"><en_us><![CDATA[Oh no! The witch caught you and turned you to stone!]]></en_us><en_uk><![CDATA[Oh no! The witch caught you and turned you to stone!]]></en_uk><nl_nl><![CDATA[O, nee! De heks heeft je betrapt en je in steen veranderd!]]></nl_nl><fr_fr><![CDATA[Oh non ! La sorcière t'a attrapé et t'a changé en statue de pierre !]]></fr_fr><de_de><![CDATA[Oh nein! Die Hexe hat dich erwischt und zu Stein verwandelt!]]></de_de><es_es><![CDATA[¡Oh, no! ¡La bruja te ha pillado y te ha convertido en piedra!]]></es_es><pt_br><![CDATA[Ah não! A bruxa te pegou e te transformou em pedra!]]></pt_br><pt_pt><![CDATA[Oh, não! A bruxa apanhou-te e transformou-te em pedra!]]></pt_pt><it_it><![CDATA[Oh, no! La strega ti ha preso e ti ha trasformato in pietra!]]></it_it><sv_se><![CDATA[Åh nej! Häxan såg er och förvandlade er till sten!]]></sv_se><pl_pl><![CDATA[O nie! Wiedźma przyłapała cię i zamieniła w kamień!]]></pl_pl><ru_ru><![CDATA[Кошмар! Ведьма поймала вас и превратила в камень!]]></ru_ru><id_id><![CDATA[Tidak! Penyihir menangkapmu dan mengubahmu jadi batu!]]></id_id><en_ar><![CDATA[Oh no! The witch caught you and turned you to stone!]]></en_ar><jp_jp><![CDATA[残念! 魔女があなたを捕まえて、石にしてしまいました!]]></jp_jp><cn_cn><![CDATA[哦不!巫婆捉住了你,并且把你变成了石头!]]></cn_cn><es_mx><![CDATA[¡Oh, no! ¡La bruja te ha pillado y te ha convertido en piedra!]]></es_mx><es_ar><![CDATA[¡Oh, no! ¡La bruja te ha pillado y te ha convertido en piedra!]]></es_ar><tr_tr><![CDATA[Hayıır! Cadı seni gördü ve taşa çevirdi!]]></tr_tr></textItem><textItem identifier="Score_"><en_us><![CDATA[Score:]]></en_us><en_uk><![CDATA[Score:]]></en_uk><nl_nl><![CDATA[Score:]]></nl_nl><fr_fr><![CDATA[Score :]]></fr_fr><de_de><![CDATA[Punkte:]]></de_de><es_es><![CDATA[Puntuación:]]></es_es><pt_br><![CDATA[Pontuação:]]></pt_br><pt_pt><![CDATA[Pontuação:]]></pt_pt><it_it><![CDATA[Punteggio:]]></it_it><sv_se><![CDATA[Poäng:]]></sv_se><pl_pl><![CDATA[Wynik:]]></pl_pl><ru_ru><![CDATA[Счет:]]></ru_ru><id_id><![CDATA[Skor:]]></id_id><en_ar><![CDATA[Score:]]></en_ar><jp_jp><![CDATA[スコア:]]></jp_jp><cn_cn><![CDATA[积分:]]></cn_cn><es_mx><![CDATA[Puntuación:]]></es_mx><es_ar><![CDATA[Puntuación:]]></es_ar><tr_tr><![CDATA[Skor:]]></tr_tr></textItem><textItem identifier="Time_Left_"><en_us><![CDATA[Time Left:]]></en_us><en_uk><![CDATA[Time Left:]]></en_uk><nl_nl><![CDATA[Resterende tijd:]]></nl_nl><fr_fr><![CDATA[Temps restant :]]></fr_fr><de_de><![CDATA[Verbleibende Zeit]]></de_de><es_es><![CDATA[Tiempo restante:]]></es_es><pt_br><![CDATA[Tempo Restante:]]></pt_br><pt_pt><![CDATA[Tempo restante:]]></pt_pt><it_it><![CDATA[Tempo residuo:]]></it_it><sv_se><![CDATA[Tid kvar:]]></sv_se><pl_pl><![CDATA[Pozostały czas:]]></pl_pl><ru_ru><![CDATA[Осталось времени:]]></ru_ru><id_id><![CDATA[Sisa Waktu:]]></id_id><en_ar><![CDATA[Time Left:]]></en_ar><jp_jp><![CDATA[残り時間:]]></jp_jp><cn_cn><![CDATA[剩余时间:]]></cn_cn><es_mx><![CDATA[Tiempo restante:]]></es_mx><es_ar><![CDATA[Tiempo restante:]]></es_ar><tr_tr><![CDATA[Kalan Süre:]]></tr_tr></textItem><textItem identifier="Total_Score_"><en_us><![CDATA[Total Score:]]></en_us><en_uk><![CDATA[Total Score:]]></en_uk><nl_nl><![CDATA[Totaalscore:]]></nl_nl><fr_fr><![CDATA[Score total :]]></fr_fr><de_de><![CDATA[Punkte insgesamt:]]></de_de><es_es><![CDATA[Puntuación total:]]></es_es><pt_br><![CDATA[Pontuação Total:]]></pt_br><pt_pt><![CDATA[Pontuação total:]]></pt_pt><it_it><![CDATA[Punteggio totale:]]></it_it><sv_se><![CDATA[Totalpoäng:]]></sv_se><pl_pl><![CDATA[Łączny wynik:]]></pl_pl><ru_ru><![CDATA[Общий счет:]]></ru_ru><id_id><![CDATA[Skor Total:]]></id_id><en_ar><![CDATA[Total Score:]]></en_ar><jp_jp><![CDATA[トータルスコア:]]></jp_jp><cn_cn><![CDATA[总分:]]></cn_cn><es_mx><![CDATA[Puntuación total:]]></es_mx><es_ar><![CDATA[Puntuación total:]]></es_ar><tr_tr><![CDATA[Toplam Skor:]]></tr_tr></textItem><textItem identifier="Too_Bad_"><en_us><![CDATA[Too bad!]]></en_us><en_uk><![CDATA[Oh dear!]]></en_uk><nl_nl><![CDATA[Helaas!]]></nl_nl><fr_fr><![CDATA[Trop mauvais !]]></fr_fr><de_de><![CDATA[Schade!]]></de_de><es_es><![CDATA[¡Qué mal!]]></es_es><pt_br><![CDATA[Que pena!]]></pt_br><pt_pt><![CDATA[Que pena!]]></pt_pt><it_it><![CDATA[Peccato!]]></it_it><sv_se><![CDATA[Tyvärr!]]></sv_se><pl_pl><![CDATA[Szkoda!]]></pl_pl><ru_ru><![CDATA[Не повезло!]]></ru_ru><id_id><![CDATA[Sayang sekali!]]></id_id><en_ar><![CDATA[Too bad!]]></en_ar><jp_jp><![CDATA[残念!]]></jp_jp><cn_cn><![CDATA[太糟糕了!]]></cn_cn><es_mx><![CDATA[¡Qué mal!]]></es_mx><es_ar><![CDATA[¡Qué mal!]]></es_ar><tr_tr><![CDATA[Çok yazık!]]></tr_tr></textItem><textItem identifier="Time_is_up_"><en_us><![CDATA[Time's up!]]></en_us><en_uk><![CDATA[Time's up!]]></en_uk><nl_nl><![CDATA[Tijd is om!]]></nl_nl><fr_fr><![CDATA[Le temps est écoulé !]]></fr_fr><de_de><![CDATA[Zeit abgelaufen!]]></de_de><es_es><![CDATA[¡Se ha acabado el tiempo!]]></es_es><pt_br><![CDATA[O tempo acabou!]]></pt_br><pt_pt><![CDATA[Acabou o tempo!]]></pt_pt><it_it><![CDATA[Tempo scaduto!]]></it_it><sv_se><![CDATA[Tiden är ute!]]></sv_se><pl_pl><![CDATA[Czas minął!]]></pl_pl><ru_ru><![CDATA[Время вышло!]]></ru_ru><id_id><![CDATA[Waktu habis!]]></id_id><en_ar><![CDATA[Time's up!]]></en_ar><jp_jp><![CDATA[時間切れです!]]></jp_jp><cn_cn><![CDATA[时间到!]]></cn_cn><es_mx><![CDATA[¡Se ha acabado el tiempo!]]></es_mx><es_ar><![CDATA[¡Se ha acabado el tiempo!]]></es_ar><tr_tr><![CDATA[Zaman doldu!]]></tr_tr></textItem><textItem identifier="Game_Complete"><en_us><![CDATA[Game Complete!]]></en_us><en_uk><![CDATA[Game Complete!]]></en_uk><nl_nl><![CDATA[Spel voltooid!]]></nl_nl><fr_fr><![CDATA[Partie terminée !]]></fr_fr><de_de><![CDATA[Spiel abgeschlossen!]]></de_de><es_es><![CDATA[¡Juego completado!]]></es_es><pt_br><![CDATA[Jogo Concluído!]]></pt_br><pt_pt><![CDATA[Jogo terminado!]]></pt_pt><it_it><![CDATA[Gioco completato!]]></it_it><sv_se><![CDATA[Spelet klarat!]]></sv_se><pl_pl><![CDATA[Gra ukończona!]]></pl_pl><ru_ru><![CDATA[Игра пройдена!]]></ru_ru><id_id><![CDATA[Game Selesai!]]></id_id><en_ar><![CDATA[Game Complete!]]></en_ar><jp_jp><![CDATA[ゲームクリア!]]></jp_jp><cn_cn><![CDATA[完成游戏!]]></cn_cn><es_mx><![CDATA[¡Juego completado!]]></es_mx><es_ar><![CDATA[¡Juego completado!]]></es_ar><tr_tr><![CDATA[Oyun Tamamlandı!]]></tr_tr></textItem><textItem identifier="You_did_it_"><en_us><![CDATA[You did it!]]></en_us><en_uk><![CDATA[You did it!]]></en_uk><nl_nl><![CDATA[Goed zo!]]></nl_nl><fr_fr><![CDATA[Bien joué !]]></fr_fr><de_de><![CDATA[Du hast es geschafft!]]></de_de><es_es><![CDATA[¡Lo lograste!]]></es_es><pt_br><![CDATA[Você conseguiu!]]></pt_br><pt_pt><![CDATA[Conseguiste!]]></pt_pt><it_it><![CDATA[Ce l'hai fatta!]]></it_it><sv_se><![CDATA[Du klarade det!]]></sv_se><pl_pl><![CDATA[Udało ci się!]]></pl_pl><ru_ru><![CDATA[Получилось!]]></ru_ru><id_id><![CDATA[Kamu berhasil!]]></id_id><en_ar><![CDATA[You did it!]]></en_ar><jp_jp><![CDATA[やりましたね!]]></jp_jp><cn_cn><![CDATA[你成功了!]]></cn_cn><es_mx><![CDATA[¡Lo lograste!]]></es_mx><es_ar><![CDATA[¡Lo lograste!]]></es_ar><tr_tr><![CDATA[Başardın!]]></tr_tr></textItem><textItem identifier="Your_love_turned_the_evil_witch_into_stone_"><en_us><![CDATA[Your love turned the evil witch to stone!]]></en_us><en_uk><![CDATA[Your love turned the evil witch to stone!]]></en_uk><nl_nl><![CDATA[Je hebt de boze heks met je liefde in steen veranderd!]]></nl_nl><fr_fr><![CDATA[Ton amour a transformé la méchante sorcière en statue de pierre !]]></fr_fr><de_de><![CDATA[Deine Liebe hat die Hexe zu Stein verwandelt!]]></de_de><es_es><![CDATA[¡Tu amor ha convertido a la malvada bruja en piedra!]]></es_es><pt_br><![CDATA[Seu amor transformou a bruxa malvada em pedra!]]></pt_br><pt_pt><![CDATA[O teu amor transformou a bruxa em pedra!]]></pt_pt><it_it><![CDATA[Il tuo amore ha trasformato in pietra la strega malvagia!]]></it_it><sv_se><![CDATA[Din kärlek förvandlade den elaka häxan till sten!]]></sv_se><pl_pl><![CDATA[Twoja miłość przemieniła złą wiedźmę w kamień!]]></pl_pl><ru_ru><![CDATA[Ваша любовь заставила злую ведьму окаменеть!]]></ru_ru><id_id><![CDATA[Cintamu mengubah penyihir jahat jadi batu!]]></id_id><en_ar><![CDATA[Your love turned the evil witch to stone!]]></en_ar><jp_jp><![CDATA[あなたの愛が、悪い魔女を石に変えました!]]></jp_jp><cn_cn><![CDATA[你的爱让邪恶的女巫变成了石头!]]></cn_cn><es_mx><![CDATA[¡Tu amor ha convertido a la malvada bruja en piedra!]]></es_mx><es_ar><![CDATA[¡Tu amor ha convertido a la malvada bruja en piedra!]]></es_ar><tr_tr><![CDATA[Senin sevgin kötü cadıyı taşa çevirdi!]]></tr_tr></textItem><textItem identifier="The_village_is_saved_"><en_us><![CDATA[The village is saved!]]></en_us><en_uk><![CDATA[The village is saved!]]></en_uk><nl_nl><![CDATA[Het dorp is gered!]]></nl_nl><fr_fr><![CDATA[Le village est sauvé !]]></fr_fr><de_de><![CDATA[Das Dorf ist gerettet!]]></de_de><es_es><![CDATA[¡La aldea está a salvo!]]></es_es><pt_br><![CDATA[A vila foi salva!]]></pt_br><pt_pt><![CDATA[A aldeia está salva!]]></pt_pt><it_it><![CDATA[Il villaggio è salvo!]]></it_it><sv_se><![CDATA[Byn är räddad!]]></sv_se><pl_pl><![CDATA[Wioska została ocalona!]]></pl_pl><ru_ru><![CDATA[Деревня спасена!]]></ru_ru><id_id><![CDATA[Desa diselamatkan!]]></id_id><en_ar><![CDATA[The village is saved!]]></en_ar><jp_jp><![CDATA[村は救われたのです!]]></jp_jp><cn_cn><![CDATA[你拯救了村庄!]]></cn_cn><es_mx><![CDATA[¡La aldea está a salvo!]]></es_mx><es_ar><![CDATA[¡La aldea está a salvo!]]></es_ar><tr_tr><![CDATA[Köye sahip çıktın!]]></tr_tr></textItem><textItem identifier="Drag_the_frame_to_the_required_spot_"><en_us><![CDATA[Drag viewfinder into position.]]></en_us><en_uk><![CDATA[Drag viewfinder into position.]]></en_uk><nl_nl><![CDATA[Sleep de zoeker naar de juiste positie.]]></nl_nl><fr_fr><![CDATA[Fais glisser le viseur à la bonne position.]]></fr_fr><de_de><![CDATA[Ziehe den Sucher an die richtige Position.]]></de_de><es_es><![CDATA[Arrastra el visor a su posición.]]></es_es><pt_br><![CDATA[Arraste o visor para a posição.]]></pt_br><pt_pt><![CDATA[Arrasta a mira para a posição.]]></pt_pt><it_it><![CDATA[Trascina il riquadro in posizione.]]></it_it><sv_se><![CDATA[Dra vysökaren i rätt position.]]></sv_se><pl_pl><![CDATA[Przeciągnij ramkę na właściwe miejsce.]]></pl_pl><ru_ru><![CDATA[Перетащи рамку в нужное место.]]></ru_ru><id_id><![CDATA[Tarik pencari pandangan ke posisinya.]]></id_id><en_ar><![CDATA[Drag viewfinder into position.]]></en_ar><jp_jp><![CDATA[ファインダーを正しい位置にドラッグしてください]]></jp_jp><cn_cn><![CDATA[将取景器拖动到适当的位置。]]></cn_cn><es_mx><![CDATA[Arrastra el visor a su posición.]]></es_mx><es_ar><![CDATA[Arrastra el visor a su posición.]]></es_ar><tr_tr><![CDATA[Vizörü konumuna sürükle.]]></tr_tr></textItem><textItem identifier="To_get_a_bigger_or_smaller_frame,_use_[x]_"><en_us><![CDATA[To zoom in and out, use [x].]]></en_us><en_uk><![CDATA[To zoom in and out, use [x].]]></en_uk><nl_nl><![CDATA[Gebruik [x] om te vergroten en verkleinen.]]></nl_nl><fr_fr><![CDATA[Pour faire un zoom avant et arrière, utilise [x].]]></fr_fr><de_de><![CDATA[Drücke [x], um rein- und rauszuzoomen.]]></de_de><es_es><![CDATA[Usa [x] para alejar y acercar el zoom.]]></es_es><pt_br><![CDATA[Para aumentar e diminuir o zoom, use [x].]]></pt_br><pt_pt><![CDATA[Para aproximar e afastar, usa [x].]]></pt_pt><it_it><![CDATA[Usa [x] per ingrandire o rimpicciolire. ]]></it_it><sv_se><![CDATA[Zooma in och ut med [x].]]></sv_se><pl_pl><![CDATA[Aby przybliżać i oddalać obraz, użyj [x].]]></pl_pl><ru_ru><![CDATA[Для увеличения/уменьшения нажимай [x].]]></ru_ru><id_id><![CDATA[Untuk memperbesar dan memperkecil, gunakan [x].]]></id_id><en_ar><![CDATA[To zoom in and out, use [x].]]></en_ar><jp_jp><![CDATA[ズームイン/アウトには、[x]を使用します]]></jp_jp><cn_cn><![CDATA[要放大或缩小,请使用 [X]。]]></cn_cn><es_mx><![CDATA[Usa [x] para alejar y acercar el zoom.]]></es_mx><es_ar><![CDATA[Usa [x] para alejar y acercar el zoom.]]></es_ar><tr_tr><![CDATA[Yakınlaştırmak ve uzaklaştırmak için, [x] kullan.]]></tr_tr></textItem><textItem identifier="To_save_your_avatar_as_an_image,_click_[x]_"><en_us><![CDATA[To save image as avatar, click [x].]]></en_us><en_uk><![CDATA[To save image as avatar, click [x].]]></en_uk><nl_nl><![CDATA[Klik op [x] om het plaatje als avatar op te slaan.]]></nl_nl><fr_fr><![CDATA[Pour enregistrer l'image en tant qu'avatar, clique sur [x].]]></fr_fr><de_de><![CDATA[Um das Bild als Avatar zu speichern, drücke [x].]]></de_de><es_es><![CDATA[Haz clic en [x] para guardar la imagen como avatar.]]></es_es><pt_br><![CDATA[Para salvar a imagem como avatar, clique [x].]]></pt_br><pt_pt><![CDATA[Para guardares a imagem como avatar, clica em [x].]]></pt_pt><it_it><![CDATA[Clicca su [x] per impostare l'immagine come avatar.]]></it_it><sv_se><![CDATA[Klicka på [x] för att spara bild som avatar.]]></sv_se><pl_pl><![CDATA[Aby zachować obrazek jako awatar, kliknij [x].]]></pl_pl><ru_ru><![CDATA[Чтобы сделать снимок аватаром, нажми [x].]]></ru_ru><id_id><![CDATA[Untuk menyimpan gambar sebagai avatar, klik [x].]]></id_id><en_ar><![CDATA[To save image as avatar, click [x].]]></en_ar><jp_jp><![CDATA[画像をアバターとして保存するには、[x]をクリックします]]></jp_jp><cn_cn><![CDATA[要将图像保存为虚拟形象,请点击[x]。]]></cn_cn><es_mx><![CDATA[Haz clic en [x] para guardar la imagen como avatar.]]></es_mx><es_ar><![CDATA[Haz clic en [x] para guardar la imagen como avatar.]]></es_ar><tr_tr><![CDATA[Görüntüleri avatar olarak kaydetmek için, [x] düğmesini tıklat.]]></tr_tr></textItem><textItem identifier="Your_avatar_has_been_updated_on_your_profile_"><en_us><![CDATA[Your avatar has been updated.]]></en_us><en_uk><![CDATA[Your avatar has been updated.]]></en_uk><nl_nl><![CDATA[Je avatar is bijgewerkt.]]></nl_nl><fr_fr><![CDATA[Ton avatar a été actualisé.]]></fr_fr><de_de><![CDATA[Dein Avatar wurde aktualisiert.]]></de_de><es_es><![CDATA[Tu avatar ha sido actualizado.]]></es_es><pt_br><![CDATA[Seu avatar foi atualizado.]]></pt_br><pt_pt><![CDATA[O teu avatar foi atualizado.]]></pt_pt><it_it><![CDATA[Il tuo avatar è stato aggiornato.]]></it_it><sv_se><![CDATA[Din avatar har uppdaterats.]]></sv_se><pl_pl><![CDATA[Twój awatar został zaktualizowany.]]></pl_pl><ru_ru><![CDATA[Твой аватар изменен.]]></ru_ru><id_id><![CDATA[Avatarmu telah diperbarui.]]></id_id><en_ar><![CDATA[Your avatar has been updated.]]></en_ar><jp_jp><![CDATA[あなたのアバターがアップデートされました]]></jp_jp><cn_cn><![CDATA[你的虚拟形象已更新。]]></cn_cn><es_mx><![CDATA[Tu avatar ha sido actualizado.]]></es_mx><es_ar><![CDATA[Tu avatar ha sido actualizado.]]></es_ar><tr_tr><![CDATA[Avatarın güncellendi.]]></tr_tr></textItem><textItem identifier="Try_Again"><en_us><![CDATA[Try Again]]></en_us><en_uk><![CDATA[Try Again]]></en_uk><nl_nl><![CDATA[Opnieuw proberen]]></nl_nl><fr_fr><![CDATA[Réessayer]]></fr_fr><de_de><![CDATA[Nochmal versuchen]]></de_de><es_es><![CDATA[Volver a intentar]]></es_es><pt_br><![CDATA[Tentar de novo]]></pt_br><pt_pt><![CDATA[Tentar outra vez]]></pt_pt><it_it><![CDATA[Riprova]]></it_it><sv_se><![CDATA[Försök igen]]></sv_se><pl_pl><![CDATA[Spróbuj ponownie]]></pl_pl><ru_ru><![CDATA[Еще раз]]></ru_ru><id_id><![CDATA[Coba Lagi]]></id_id><en_ar><![CDATA[Try Again]]></en_ar><jp_jp><![CDATA[もう1度トライする]]></jp_jp><cn_cn><![CDATA[再试一次]]></cn_cn><es_mx><![CDATA[Volver a intentar]]></es_mx><es_ar><![CDATA[Volver a intentar]]></es_ar><tr_tr><![CDATA[Tekrar Deneyin]]></tr_tr></textItem></LocalisedText>
;
SpilGame.importXMLv2(_local1);
trace("Language Data Succesfully included");
Languages.initialize();
SpilGame.initialize(SpilAPIManage.gameName, PortalGroup.GIRL, SpilAPIManage.gamePage, this, true);
if (DemoMode){
setTimeout(_LoadComplete, 200);
return;
};
var _local2:* = SpilGamesServices.getInstance();
_local2.addEventListener(SpilGamesServices.COMPONENTS_READY, onComponentsReady);
_local2.addEventListener(SpilGamesServices.SERVICES_READY, onServicesReady);
_local2.addEventListener(SpilGamesServices.SERVICE_ERROR, onServicesFailed);
var _local3:* = BrandingManager.getInstance();
_local3.addEventListener(SpilGamesServices.COMPONENTS_READY, onBrandingComplete);
trace("SpilAPIManage 开始连接服务器");
_local2.connect(Root, SpilAPIManage.GameId);
}
private function onBrandingComplete(_arg1:Event):void{
BrandingComplete = true;
}
private function _LoadComplete():void{
if (((!(BrandingComplete)) && (!(DemoMode)))){
setTimeout(_LoadComplete, 200);
};
if (DocumentClass.LoadComplete){
if (Root.currentLabel != "game"){
Root.gotoAndStop("game");
setTimeout(_LoadComplete, 200);
} else {
ConnectSuccess();
};
} else {
setTimeout(_LoadComplete, 200);
};
}
function onComponentsReady(_arg1:Event):void{
}
function onServicesReady(_arg1:Event):void{
trace("链接服务器成功");
setTimeout(_LoadComplete, 200);
}
function onServicesFailed(_arg1:ErrorEvent):void{
trace("链接服务器失败");
FailConnectServerJs++;
if (FailConnectServerJs < 3){
ConnectNewAPI();
} else {
setTimeout(_LoadComplete, 200);
};
}
private function ConnectSuccess():void{
_tracker = new GATracker(this, "UA-6695967-1", "AS3", false);
if (_tracker_mainscreen == 0){
_tracker_mainscreen++;
_tracker.trackEvent(SpilAPIManage.gameName, "mainscreen viewed", "per session", 0);
};
if (((((!(DemoMode)) && (!(_tracker_userLoggedIn)))) && (!(User.isGuest())))){
_tracker_userLoggedIn = true;
_tracker.trackEvent(SpilAPIManage.gameName, "user logged in", "per session", 0);
};
dispatchEvent(new Event(SpilAPIManage.LOAD_COMPLETE));
}
public static function setAward(_arg1:String){
if (_arg1 == tg1){
if (tg1_submited > 0){
return;
};
tg1_submited++;
};
if (_arg1 == tg2){
if (tg2_submited > 0){
return;
};
tg2_submited++;
};
if (_arg1 == tg3){
if (tg3_submited > 0){
return;
};
tg3_submited++;
};
if (_arg1 == tg4){
if (tg4_submited > 0){
return;
};
tg4_submited++;
};
if (_arg1 == tg5){
if (tg5_submited > 0){
return;
};
tg5_submited++;
};
AwardsService.submitAward(_arg1);
}
public static function setGA(_arg1):void{
}
public static function setAwardScore(_arg1){
if (ScoreService.isAvailable()){
ScoreService.submitScore(_arg1);
};
return (true);
}
public static function NavigateToURL(_arg1:String){
navigateToURL(new URLRequest(SpilGame.getMoreGamesLink((_arg1 + "_moregames"))), "_blank");
}
}
}//package net.crazydream
Section 208
//Brand (spill.localisation.Brand)
package spill.localisation {
import flash.xml.*;
public class Brand {
public var domain:String;
public var site_id:uint;
public var moreLink:String;// = ""
public var emailLink:String;// = "game"
public var emailPage:String;
public var id:Number;
public var name:String;
public var portalGroup:uint;
public var useGoogleAnalitics:Boolean;// = true
public var hasSendToFriendLink:Boolean;// = true
public var preferedLanguage:String;// = ""
public var isExternal:Boolean;// = false
public var hostingDomain:String;// = ""
private static const topLevelDoubles:String = ((((((((((((((("ac.cn,ac.jp,ac.uk,ad.jp,adm.br,adv.br,agr.br," + "ah.cn,am.br,arq.br,art.br,asn.au,ato.br,av.tr,bel.tr,bio.br,biz.tr,bj.cn,bmd.br,") + "cim.br,cng.br,cnt.br,co.at,co.jp,co.uk,com.au,com.br,com.cn,com.eg,com.hk,com.mx,") + "com.ru,com.tr,com.tw,conf.au,cq.cn,csiro.au,dr.tr,ecn.br,edu.au,edu.br,edu.tr,") + "emu.id.au,eng.br,esp.br,etc.br,eti.br,eun.eg,far.br,fj.cn,fm.br,fnd.br,fot.br,") + "fst.br,g12.br,gb.com,gb.net,gd.cn,gen.tr,ggf.br,gob.mx,gov.au,gov.br,gov.cn,") + "gov.hk,gov.tr,gr.jp,gs.cn,gx.cn,gz.cn,ha.cn,hb.cn,he.cn,hi.cn,hk.cn,hl.cn,hn.cn,") + "id.au,idv.tw,imb.br,ind.br,inf.br,info.au,info.tr,jl.cn,jor.br,js.cn,jx.cn,k12.tr,") + "lel.br,ln.cn,ltd.uk,mat.br,me.uk,med.br,mil.br,mil.tr,mo.cn,mus.br,name.tr,ne.jp,") + "net.au,net.br,net.cn,net.eg,net.hk,net.lu,net.mx,net.ru,net.tr,net.tw,net.uk,") + "nm.cn,no.com,nom.br,not.br,ntr.br,nx.cn,odo.br,oop.br,or.at,or.jp,org.au,org.br,") + "org.cn,org.hk,org.lu,org.ru,org.tr,org.tw,org.uk,plc.uk,pol.tr,pp.ru,ppg.br,pro.br,") + "psc.br,psi.br,qh.cn,qsl.br,rec.br,sc.cn,sd.cn,se.com,se.net,sh.cn,slg.br,sn.cn,") + "srv.br,sx.cn,tel.tr,tj.cn,tmp.br,trd.br,tur.br,tv.br,tw.cn,uk.com,uk.net,vet.br,") + "wattle.id.au,web.tr,xj.cn,xz.cn,yn.cn,zj.cn,zlg.br,co.nr,co.nz,com.fr,com.ph,com.ar,") + "com.id,com.in");
public function getMoreGamesLink(_arg1:String, _arg2:Boolean, _arg3:String="", _arg4:String=""):String{
var _local5:String = ("http://" + domain);
_local5 = (_local5 + ("/" + moreLink));
if (((useGoogleAnalitics) && (_arg2))){
_local5 = (_local5 + ("?utm_medium=brandedgames_" + (_arg2) ? "external" : "internal"));
_local5 = (_local5 + ("&utm_campaign=" + _arg1));
_arg3 = stripSubDomain(_arg3);
if (_arg3 == "localhost"){
_arg3 = "offline_play";
};
_local5 = (_local5 + ("&utm_source=" + _arg3));
if (((!((_arg4 == ""))) && (!((_arg4 == null))))){
_local5 = (_local5 + ("&utm_content=" + _arg4));
};
};
return (_local5);
}
public function getSendToFriendLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""):String{
if (!hasSendToFriendLink){
return (getMoreGamesLink(_arg1, _arg3));
};
var _local5:String = ("http://" + domain);
_local5 = (_local5 + ((("/" + emailLink) + "/") + _arg2));
if (useGoogleAnalitics){
_local5 = (_local5 + ("?utm_medium=brandedgames_" + (_arg3) ? "external" : "internal"));
_local5 = (_local5 + ("&utm_campaign=" + _arg1));
_arg4 = stripSubDomain(_arg4);
if (_arg4 == "localhost"){
_arg4 = "offline_play";
};
_local5 = (_local5 + ("&utm_source=" + _arg4));
_local5 = (_local5 + "&utm_content=send_to_friend");
};
return (_local5);
}
public function getPromotionLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String="", _arg5:String=""):String{
var _local6:String = ("http://" + domain);
_local6 = (_local6 + ((("/" + emailLink) + "/") + _arg2));
if (useGoogleAnalitics){
_local6 = (_local6 + ("?utm_medium=brandedgames_" + (_arg3) ? "external" : "internal"));
_local6 = (_local6 + ("&utm_campaign=" + _arg1));
_arg4 = stripSubDomain(_arg4);
trace(_arg4);
if (_arg4 == "localhost"){
_arg4 = "offline_play";
};
_local6 = (_local6 + ("&utm_source=" + _arg4));
if (((!((_arg5 == ""))) && (!((_arg5 == null))))){
_local6 = (_local6 + ("&utm_content=" + _arg5));
};
};
return (_local6);
}
public function get backgroundColor():uint{
return (PortalGroup.backgroundColors[portalGroup]);
}
public function exportXML():XML{
var _local3:XML;
var _local1:XML = <portal/>
;
_local1.@id = site_id;
_local1.@language = preferedLanguage;
_local1.@channel = portalGroup;
var _local2:XML = <domain/>
;
_local2.appendChild(new XMLNode(3, domain));
_local1.appendChild(_local2);
if (moreLink){
_local3 = <more_games_path/>
;
_local3.appendChild(new XMLNode(3, moreLink));
_local1.appendChild(_local3);
};
_local2 = <game_path/>
;
_local2.appendChild(new XMLNode(3, emailLink));
_local1.appendChild(_local2);
if (!useGoogleAnalitics){
_local1.attributes.noGoogleAnalitics = true;
};
if (!hasSendToFriendLink){
_local1.attributes.noSendToFriendLink = true;
};
return (_local1);
}
public function importXML(_arg1:XMLNode):void{
}
private function get utm_source():String{
return (("utm_source=brandedgames_" + (isExternal) ? "external" : "internal"));
}
private function get utm_term():String{
return ("utm_term=");
}
private function get utm_campaign():String{
if (isExternal){
return (("utm_campaign=" + hostingDomain));
};
return ("");
}
public static function stripSubDomain(_arg1:String):String{
if (!_arg1){
return ("");
};
var _local2:Array = _arg1.split(".");
if (_local2.length <= 2){
return (_arg1);
};
_local2 = _local2.reverse();
if (topLevelDoubles.indexOf((((_local2[1] + ".") + _local2[0]) + ",")) > 0){
return (((((_local2[2] + ".") + _local2[1]) + ".") + _local2[0]));
};
return (((_local2[1] + ".") + _local2[0]));
}
}
}//package spill.localisation
Section 209
//BrandingLogo (spill.localisation.BrandingLogo)
package spill.localisation {
import flash.display.*;
import flash.events.*;
public class BrandingLogo extends MovieClip {
public function BrandingLogo(){
stop();
mouseEnabled = false;
mouseChildren = false;
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
if (stage){
added();
};
brandingChanged();
}
private function added(_arg1:Event=null):void{
SpilGame.addEventListener("brandingChanged", brandingChanged, false, 0, true);
brandingChanged();
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("brandingChanged", brandingChanged);
}
private function brandingChanged(_arg1:Event=null):void{
if (SpilGame.currentBranding){
gotoAndStop(SpilGame.currentBranding.domain);
};
}
}
}//package spill.localisation
Section 210
//Brandings (spill.localisation.Brandings)
package spill.localisation {
public class Brandings {
private static var brands_by_id:Object = new Object();
private static var brands_by_domain:Object = new Object();
public static function initialize():void{
var _local1:Brand;
_local1 = new Brand();
_local1.site_id = 79;
_local1.domain = "www.agame.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.TEENS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 88;
_local1.domain = "www.gamesgames.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 90;
_local1.domain = "www.girlsgogames.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.GIRL;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 45;
_local1.domain = "www.a10.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.YOUNG_ADULTS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 92;
_local1.domain = "www.games.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 107;
_local1.domain = "www.agame.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.TEENS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 138;
_local1.domain = "www.giochi.it";
_local1.preferedLanguage = "it_it";
_local1.portalGroup = PortalGroup.TEENS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 102;
_local1.domain = "www.girlsgogames.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.GIRL;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 2;
_local1.domain = "www.game.com.cn";
_local1.moreLink = "moregames/";
_local1.preferedLanguage = "cn_cn";
_local1.portalGroup = PortalGroup.NONE;
_local1.useGoogleAnalitics = false;
_local1.hasSendToFriendLink = false;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 25;
_local1.domain = "www.spel.nl";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "nl_nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 1;
_local1.domain = "www.spelletjes.nl";
_local1.emailLink = "spel";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "nl_nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 93;
_local1.domain = "www.girlsgogames.nl";
_local1.emailLink = "spel";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "nl_nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 12;
_local1.domain = "www.jeu.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "fr_fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 95;
_local1.domain = "www.girlsgogames.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "fr_fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 11;
_local1.domain = "www.jeux.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "fr_fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 26;
_local1.domain = "www.spielen.com";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "de_de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 94;
_local1.domain = "www.girlsgogames.de";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "de_de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 5;
_local1.domain = "www.jetztspielen.de";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "de_de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 109;
_local1.domain = "www.minigry.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "pl_pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 16;
_local1.domain = "www.gry.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "pl_pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 98;
_local1.domain = "www.girlsgogames.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "pl_pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 108;
_local1.domain = "www.spel.se";
_local1.emailLink = "spel_";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "sv_se";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 100;
_local1.domain = "www.girlsgogames.se";
_local1.emailLink = "spel_";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "sv_se";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 44;
_local1.domain = "www.spela.se";
_local1.emailLink = "spel_";
_local1.preferedLanguage = "sv_se";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 106;
_local1.domain = "www.giocaregratis.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "it_it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 15;
_local1.domain = "www.gioco.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "it_it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 99;
_local1.domain = "www.girlsgogames.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "it_it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 97;
_local1.domain = "www.zapjuegos.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es_es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 86;
_local1.domain = "www.juegos.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "es_es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 96;
_local1.domain = "www.juegosdechicas.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es_es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 122;
_local1.domain = "www.girlsgogames.es";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es_es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 125;
_local1.domain = "www.juegos.mx";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es_mx";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 126;
_local1.domain = "www.juegosdechicas.mx";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es_mx";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 127;
_local1.domain = "www.juegos.com.ar";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es_mx";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 128;
_local1.domain = "www.juegosdechicas.com.ar";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es_ar";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 91;
_local1.domain = "www.clickjogos.com";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "pt_br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 101;
_local1.domain = "www.girlsgogames.com.br";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "pt_br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 9991;
_local1.domain = "www.girlsgogames.co.id";
_local1.emailLink = "";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "id_id";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 50;
_local1.domain = "www.ojogos.com.br";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "pt_br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 55;
_local1.domain = "www.games.co.id";
_local1.emailLink = "permainanme";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "id_id";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 9992;
_local1.domain = "www.permainan.co.id";
_local1.emailLink = "";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "id_id";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 105;
_local1.domain = "www.flashgames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "ru_ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 104;
_local1.domain = "www.girlsgogames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "ru_ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 103;
_local1.domain = "www.ourgames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "ru_ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 24;
_local1.domain = "www.game.co.in";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "en_uk";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 115;
_local1.domain = "www.girlsgogames.in";
_local1.emailLink = "/game/";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "en_in";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 156;
_local1.domain = "www.girlsgogames.com.tr";
_local1.emailLink = "/game/";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "tr_tr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 87;
_local1.domain = "www.ojogos.pt";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "pt_pt";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 120;
_local1.domain = "www.egames.jp";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "jp_jp";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 121;
_local1.domain = "www.dailygame.com";
_local1.emailLink = "/game/";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 123;
_local1.domain = "www.zapapa.com";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.ZAPAPA;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 124;
_local1.domain = "www.zapapa.nl";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.HYVES;
_local1.preferedLanguage = "nl_nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 9993;
_local1.domain = "gamedev.dev.spilgames.com";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
}
public static function hasDomain(_arg1:String):Boolean{
return (!((brands_by_domain[_arg1] == null)));
}
public static function getBrandByDomain(_arg1:String):Brand{
return (brands_by_domain[_arg1]);
}
public static function getBrandByID(_arg1:Number):Brand{
return (brands_by_id[_arg1]);
}
private static function addBrand(_arg1:Brand):Brand{
if (brands_by_domain[_arg1.domain]){
trace(("ERROR: Attempting to add duplicate brand by domain: " + _arg1.domain));
} else {
brands_by_domain[_arg1.domain] = _arg1;
};
if (brands_by_id[_arg1.site_id]){
trace(("ERROR: Attempting to add duplicate brand by id: " + _arg1.site_id));
} else {
brands_by_id[_arg1.site_id] = _arg1;
};
return (_arg1);
}
public static function getBrandsArray():Array{
var _local2:Brand;
var _local1:Array = new Array();
for each (_local2 in brands_by_domain) {
_local1.push(_local2);
};
return (_local1);
}
public static function exportXML():XML{
var _local2:Brand;
var _local1:XML = <portals/>
;
for each (_local2 in brands_by_domain) {
_local1.appendChild(_local2.exportXML());
};
return (_local1);
}
}
}//package spill.localisation
Section 211
//Language (spill.localisation.Language)
package spill.localisation {
import flash.xml.*;
public class Language {
public var name:String;
public var dname:String;
public var id:uint;
public var portal_groups:Array;
public var textLanguage:String;
public var embedFonts:Boolean;// = true
public var embedInputFonts:Boolean;// = true
public var forceFont:String;// = null
public var bwcId:int;
public var references:Array;
public var displayName:String;// = ""
public function Language(_arg1:String, _arg2:String=null){
references = [];
super();
name = _arg1;
dname = _arg2;
portal_groups = new Array();
}
public function get displayAcronim():String{
return ((dname) ? dname : name);
}
public function set p_family(_arg1:String):void{
portal_groups[PortalGroup.FAMILY] = _arg1;
}
public function get p_family():String{
return (portal_groups[PortalGroup.FAMILY]);
}
public function set p_tween(_arg1:String):void{
portal_groups[PortalGroup.TEENS] = _arg1;
}
public function get p_tween():String{
return (portal_groups[PortalGroup.TEENS]);
}
public function set p_girl(_arg1:String):void{
portal_groups[PortalGroup.GIRL] = _arg1;
}
public function get p_girl():String{
return (portal_groups[PortalGroup.GIRL]);
}
public function set p_teen(_arg1:String):void{
portal_groups[PortalGroup.YOUNG_ADULTS] = _arg1;
}
public function get p_teen():String{
return (portal_groups[PortalGroup.YOUNG_ADULTS]);
}
public function set p_zapapa(_arg1:String):void{
portal_groups[PortalGroup.ZAPAPA] = _arg1;
}
public function get p_zapapa():String{
return (portal_groups[PortalGroup.ZAPAPA]);
}
public function set p_hyves(_arg1:String):void{
portal_groups[PortalGroup.HYVES] = _arg1;
}
public function get p_hyves():String{
return (portal_groups[PortalGroup.HYVES]);
}
public function exportXML():XMLNode{
var _local1:XMLNode = new XMLNode(1, "language");
_local1.attributes.name = name;
if (textLanguage != null){
_local1.attributes.textLanguage = textLanguage;
};
if (references.length){
_local1.attributes.references = references.toString();
};
_local1.attributes.id = bwcId;
var _local2:XMLNode = new XMLNode(1, "display_name");
_local2.firstChild = new XMLNode(3, displayName);
_local1.appendChild(_local2);
var _local3:Array = [];
var _local4:Array = PortalGroup.channelNames;
var _local5:int;
while (_local5 < _local4.length) {
_local3.push(Brandings.getBrandByDomain(portal_groups[_local5]).site_id);
_local5++;
};
_local1.attributes.channels = _local3.join(",");
return (_local1);
}
}
}//package spill.localisation
Section 212
//Languages (spill.localisation.Languages)
package spill.localisation {
import flash.xml.*;
public class Languages {
public static var languages:Object = new Object();
private static var _init:Boolean = false;
public static function initialize():void{
var _local1:Language;
if (_init){
return;
};
_init = true;
_local1 = new Language("en_ar", "AR");
_local1.displayName = "English";
_local1.p_family = "www.dailygame.com";
_local1.p_tween = "www.dailygame.com";
_local1.p_girl = "www.dailygame.com";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
_local1.bwcId = 16;
addLanguage(_local1);
_local1 = new Language("es_ar", "ARG");
_local1.displayName = "Español (AR)";
_local1.p_family = "www.juegos.com";
_local1.p_tween = "www.zapjuegos.com";
_local1.p_girl = "www.juegosdechicas.com";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
addLanguage(_local1);
_local1 = new Language("pt_br", "BR");
_local1.displayName = "Português (BR)";
_local1.p_family = "www.ojogos.com.br";
_local1.p_tween = "www.clickjogos.com";
_local1.p_girl = "www.girlsgogames.com.br";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
addLanguage(_local1);
_local1 = new Language("es_cl", "CL");
_local1.displayName = "Español";
_local1.p_family = "www.juegos.com";
_local1.p_tween = "www.zapjuegos.com";
_local1.p_girl = "www.juegosdechicas.com";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
_local1.textLanguage = "es_es";
addLanguage(_local1);
_local1 = new Language("cn_cn", "CN");
_local1.displayName = "中文";
_local1.p_family = "www.game.com.cn";
_local1.p_tween = "www.game.com.cn";
_local1.p_girl = "www.game.com.cn";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
_local1.embedInputFonts = false;
addLanguage(_local1);
_local1 = new Language("es_co", "CO");
_local1.displayName = "Español";
_local1.p_family = "www.juegos.com";
_local1.p_tween = "www.zapjuegos.com";
_local1.p_girl = "www.juegosdechicas.com";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
_local1.textLanguage = "es_es";
addLanguage(_local1);
_local1 = new Language("de_de", "DE");
_local1.displayName = "Deutsch";
_local1.p_family = "www.jetztspielen.de";
_local1.p_tween = "www.spielen.com";
_local1.p_girl = "www.girlsgogames.de";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
addLanguage(_local1);
_local1 = new Language("es_es", "ES");
_local1.displayName = "Español";
_local1.p_family = "www.juegos.com";
_local1.p_tween = "www.zapjuegos.com";
_local1.p_girl = "www.juegosdechicas.com";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
addLanguage(_local1);
_local1 = new Language("fr_fr", "FR");
_local1.displayName = "Français";
_local1.p_family = "www.jeux.fr";
_local1.p_tween = "www.jeu.fr";
_local1.p_girl = "www.girlsgogames.fr";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
addReference(_local1, "en");
addLanguage(_local1);
_local1 = new Language("id_id", "ID");
_local1.displayName = "Bahasa Ind.";
_local1.p_family = "www.permainan.co.id";
_local1.p_tween = "www.games.co.id";
_local1.p_girl = "www.girlsgogames.co.id";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
addLanguage(_local1);
_local1 = new Language("en_in", "IN");
_local1.displayName = "English";
_local1.p_family = "www.game.co.in";
_local1.p_tween = "www.game.co.in";
_local1.p_girl = "www.game.co.in";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
_local1.textLanguage = "en_uk";
addLanguage(_local1);
_local1 = new Language("it_it", "IT");
_local1.displayName = "Italiano";
_local1.p_family = "www.gioco.it";
_local1.p_tween = "www.giochi.it";
_local1.p_girl = "www.girlsgogames.it";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
addLanguage(_local1);
_local1 = new Language("jp_jp", "JP");
_local1.displayName = "日本語";
_local1.p_family = "www.egames.jp";
_local1.p_tween = "www.egames.jp";
_local1.p_girl = "www.egames.jp";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
addLanguage(_local1);
_local1 = new Language("es_mx", "MX");
_local1.displayName = "Español (MX)";
_local1.p_family = "www.juegos.com";
_local1.p_tween = "www.zapjuegos.com";
_local1.p_girl = "www.juegosdechicas.com";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
addLanguage(_local1);
_local1 = new Language("nl_nl", "NL");
_local1.displayName = "Nederlands";
_local1.p_family = "www.spelletjes.nl";
_local1.p_tween = "www.spel.nl";
_local1.p_girl = "www.girlsgogames.nl";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
addLanguage(_local1);
_local1 = new Language("pl_pl", "PL");
_local1.displayName = "Polski";
_local1.p_family = "www.gry.pl";
_local1.p_tween = "www.gry.pl";
_local1.p_girl = "www.girlsgogames.pl";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
addLanguage(_local1);
_local1 = new Language("pt_pt", "PT");
_local1.displayName = "Português";
_local1.p_family = "www.ojogos.pt";
_local1.p_tween = "www.ojogos.pt";
_local1.p_girl = "www.ojogos.pt";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
addLanguage(_local1);
_local1 = new Language("ru_ru", "RU");
_local1.displayName = "Русский";
_local1.p_family = "www.ourgames.ru";
_local1.p_tween = "www.flashgames.ru";
_local1.p_girl = "www.girlsgogames.ru";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
addLanguage(_local1);
_local1 = new Language("sv_se", "SE");
_local1.displayName = "Svenska";
_local1.p_family = "www.spela.se";
_local1.p_tween = "www.spel.se";
_local1.p_girl = "www.girlsgogames.se";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
addLanguage(_local1);
_local1 = new Language("ru_ua", "UA");
_local1.displayName = "Русский";
_local1.p_family = "www.ourgames.ru";
_local1.p_tween = "www.flashgames.ru";
_local1.p_girl = "www.girlsgogames.ru";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
_local1.textLanguage = "ru_ru";
addLanguage(_local1);
_local1 = new Language("en_uk", "UK");
_local1.displayName = "English (UK)";
_local1.p_family = "www.games.co.uk";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.co.uk";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
addLanguage(_local1);
_local1 = new Language("en_us", "US");
_local1.displayName = "English (US)";
_local1.p_family = "www.gamesgames.com";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.com";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
addLanguage(_local1);
_local1 = new Language("es_ve", "VE");
_local1.displayName = "Español";
_local1.p_family = "www.juegos.com";
_local1.p_tween = "www.zapjuegos.com";
_local1.p_girl = "www.juegosdechicas.com";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
_local1.textLanguage = "es_es";
addLanguage(_local1);
_local1 = new Language("es_pe", "PE");
_local1.displayName = "Español";
_local1.p_family = "www.juegos.com";
_local1.p_tween = "www.zapjuegos.com";
_local1.p_girl = "www.juegosdechicas.com";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
_local1.textLanguage = "es_es";
addLanguage(_local1);
_local1 = new Language("tr_tr", "TR");
_local1.displayName = "Türkçe";
_local1.p_family = "www.gamesgames.com";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.com.tr";
_local1.p_hyves = "www.zapapa.nl";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_teen = "www.a10.com";
addReference(_local1, "en");
addLanguage(_local1);
}
private static function addReference(_arg1:Language, _arg2:String):void{
languages[_arg2] = _arg1;
_arg1.references.push(_arg2);
}
private static function addLanguage(_arg1:Language):void{
languages[_arg1.name] = _arg1;
}
public static function getLanguage(_arg1:String):Language{
return (languages[_arg1]);
}
public static function getLanguageByOldID(_arg1:int):Language{
var _local2:Language;
for each (_local2 in languages) {
if (_local2.bwcId == _arg1){
return (_local2);
};
};
return (null);
}
public static function getLanguagesArray():Array{
var _local3:Language;
var _local1:Array = new Array();
var _local2:Object = new Object();
for each (_local3 in languages) {
if (!_local2[_local3.name]){
_local1.push(_local3);
_local2[_local3.name] = true;
};
};
return (_local1);
}
public static function exportXML():XMLNode{
var _local3:Language;
var _local1:Array = getLanguagesArray();
var _local2:XMLNode = new XMLNode(1, "languages");
for each (_local3 in _local1) {
_local2.appendChild(_local3.exportXML());
};
return (_local2);
}
}
}//package spill.localisation
Section 213
//LanguageSelectBox (spill.localisation.LanguageSelectBox)
package spill.localisation {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class LanguageSelectBox extends MovieClip {
private var popup:MovieClip;
private var flag:MovieClip;
private var languageName_text:TextField;
private var mc:MovieClip;
public function LanguageSelectBox(){
if (numChildren > 0){
removeChildAt(0);
};
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
addEventListener(MouseEvent.MOUSE_OVER, mouseOver, false, 0, true);
addEventListener(MouseEvent.MOUSE_OUT, mouseOut, false, 0, true);
Languages.initialize();
popup = new LanguageSelectPopup_mc();
x = Math.round(x);
y = Math.round(y);
popup.y = (-(Math.floor(popup.height)) + 1);
popup.visible = false;
addChild(popup);
mc = new LanguageSelectBox_mc();
addChild(mc);
flag = mc.flag;
languageName_text = mc.languageName_text;
if (stage){
added();
};
init();
languageChanged();
}
public function init():void{
var _local3:MovieClip;
var _local4:Language;
var _local1:Array = new Array(popup.l_en_ar, popup.l_es_ar, popup.l_pt_br, popup.l_es_cl, popup.l_cn_cn, popup.l_es_co, popup.l_de_de, popup.l_es_es, popup.l_fr_fr, popup.l_id_id, popup.l_en_in, popup.l_it_it, popup.l_jp_jp, popup.l_es_mx, popup.l_nl_nl, popup.l_pl_pl, popup.l_pt_pt, popup.l_ru_ru, popup.l_sv_se, popup.l_ru_ua, popup.l_en_uk, popup.l_en_us, popup.l_es_ve, popup.l_es_pe, popup.l_tr_tr);
var _local2:int;
while (_local2 < _local1.length) {
_local3 = MovieClip(_local1[_local2]);
if (_local3){
_local3.addEventListener(MouseEvent.CLICK, itemClicked, true, 0, true);
_local3.flag.gotoAndStop(_local3.name.substr(2));
_local3.flag.mouseEnabled = false;
_local3.text.mouseEnabled = false;
_local4 = Languages.getLanguage(_local3.name.substr(2));
if (_local4){
_local3.text.text = _local4.displayAcronim;
} else {
trace((("Error, '" + _local3.name.substr(2)) + "' language not found"));
};
} else {
trace((((("Error, btn number '" + _local2) + "' is not a MovieClip or there is no button '") + _local1[_local2]) + "'"));
};
_local2++;
};
}
private function itemClicked(_arg1:MouseEvent):void{
SpilGame.changeLanguage(_arg1.currentTarget.name.substr(2));
popup.visible = false;
}
private function mouseOver(_arg1:MouseEvent):void{
popup.visible = true;
}
private function mouseOut(_arg1:MouseEvent):void{
popup.visible = false;
}
private function added(_arg1:Event=null):void{
SpilGame.addEventListener("languageChanged", languageChanged, false, 0, true);
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("languageChanged", languageChanged);
}
private function languageChanged(_arg1:Event=null):void{
if (SpilGame.currentLanguage){
if ((((SpilGame.portalGroup == PortalGroup.HYVES)) && ((SpilGame.currentLanguage.name == "nl")))){
this.visible = false;
return;
};
this.visible = true;
flag.gotoAndStop(SpilGame.currentLanguage.name);
languageName_text.text = SpilGame.currentLanguage.displayName;
};
}
public function set popupLocation(_arg1:String):void{
trace(("popupLocation = " + _arg1));
if (_arg1 == "bottom"){
popup.y = Math.floor(mc.height);
} else {
popup.y = (-(Math.floor(mc.height)) + 1);
};
}
}
}//package spill.localisation
Section 214
//LanguageSelectBox_mc (spill.localisation.LanguageSelectBox_mc)
package spill.localisation {
import flash.display.*;
import flash.text.*;
public dynamic class LanguageSelectBox_mc extends MovieClip {
public var languageName_text:TextField;
public var flag:MovieClip;
}
}//package spill.localisation
Section 215
//LanguageSelectPopup_mc (spill.localisation.LanguageSelectPopup_mc)
package spill.localisation {
import flash.display.*;
public dynamic class LanguageSelectPopup_mc extends MovieClip {
public var l_es_es:MovieClip;
public var l_en_uk:MovieClip;
public var l_es_ve:MovieClip;
public var l_sv_se:MovieClip;
public var l_es_cl:MovieClip;
public var l_ru_ua:MovieClip;
public var l_pt_pt:MovieClip;
public var l_nl_nl:MovieClip;
public var l_it_it:MovieClip;
public var l_id_id:MovieClip;
public var l_cn_cn:MovieClip;
public var l_pl_pl:MovieClip;
public var l_pt_br:MovieClip;
public var l_en_ar:MovieClip;
public var l_ru_ru:MovieClip;
public var l_de_de:MovieClip;
public var l_es_co:MovieClip;
public var l_en_in:MovieClip;
public var l_es_ar:MovieClip;
public var l_en_us:MovieClip;
public var l_es_pe:MovieClip;
public var l_es_mx:MovieClip;
public var l_tr_tr:MovieClip;
public var l_jp_jp:MovieClip;
public var l_fr_fr:MovieClip;
}
}//package spill.localisation
Section 216
//LocalizedTextField (spill.localisation.LocalizedTextField)
package spill.localisation {
import flash.events.*;
public class LocalizedTextField extends TextFieldFit {
private var originalText:String;
private var regex:RegExp;
public function LocalizedTextField(){
regex = /{([^{}]*)}/g;
super();
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
added();
}
private function added(_arg1:Event=null):void{
SpilGame.addEventListener("languageChanged", languageChanged, false, 0, true);
text = originalText;
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("languageChanged", languageChanged);
}
private function languageChanged(_arg1:Event):void{
text = originalText;
updateProperties();
}
override public function set text(_arg1:String):void{
originalText = _arg1;
if ((_arg1 is String)){
super.text = _arg1.replace(regex, replaceFn);
} else {
super.text = "";
};
}
private function replaceFn():String{
var _local2:String = SpilGame.getString(arguments[1]);
if (((!(_local2)) || ((_local2 == "")))){
return ((("{" + arguments[1]) + "}"));
};
return (_local2);
}
}
}//package spill.localisation
Section 217
//PortalGroup (spill.localisation.PortalGroup)
package spill.localisation {
import flash.xml.*;
public class PortalGroup {
public static const FAMILY:uint = 0;
public static const TEENS:uint = 1;
public static const GIRL:uint = 2;
public static const YOUNG_ADULTS:uint = 3;
public static const ZAPAPA:uint = 4;
public static const HYVES:uint = 5;
public static const NONE:uint = 6;
public static const channelNames:Array = ["family", "tween", "girl", "teen", "zapapa", "hyves"];
public static const backgroundColors:Array = [0xFFFFFF, 0xFFFFFF, 16742331, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF];
public static function getName(_arg1:int):String{
return (channelNames[_arg1]);
}
public static function exportXML():XMLNode{
var _local3:XMLNode;
var _local1:XMLNode = new XMLNode(1, "channels");
var _local2:int;
while (_local2 < 5) {
_local3 = new XMLNode(1, "channel");
_local3.attributes.name = channelNames[_local2];
_local3.attributes.id = _local2;
_local1.appendChild(_local3);
_local2++;
};
return (_local1);
}
}
}//package spill.localisation
Section 218
//spil_internal (spill.localisation.spil_internal)
package spill.localisation {
public namespace spil_internal = "spill.localisation";
}//package spill.localisation
Section 219
//SpilGame (spill.localisation.SpilGame)
package spill.localisation {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
public class SpilGame {
private static const cookiePath:String = "/";
private static const cookieName:String = "spilgames_language_v100";
private static const cookieLanguageVar:String = "savedLang";
public static const LANGUAGE_CHANGED:String = "languageChanged";
public static const BRANDING_CHANGED:String = "brandingChanged";
spil_internal static var gameName:String;
public static var currentBranding:Brand;
public static var currentLanguage:Language;
spil_internal static var emailPage:String;
spil_internal static var portalGroup:uint;
private static var channelLock:Boolean = false;
private static var _init:Boolean = false;
private static var eventDispatcher:EventDispatcher;
private static var localDomains:Object = new Object();
private static var strings:Object = new Object();
private static var contexMenuItem:ContextMenuItem;
private static var stage:Sprite;
spil_internal static var debugHostDomain:String = "";
spil_internal static var debugEmbedDomain:String = "";
public static function initialize(_arg1:String, _arg2:int, _arg3:String, _arg4:Sprite, _arg5:Boolean=false):void{
stage = _arg4;
if (_init){
trace("ERROR: LocalisationManager already initialised");
return;
};
_init = true;
localDomains["localhost"] = true;
localDomains["www8.agame.com"] = true;
localDomains["gamedev.dev.spilgames.com"] = true;
localDomains["stg.spel.nl"] = true;
localDomains["stg.girlsgogames.nl"] = true;
localDomains["stg.pl.spel.nl"] = true;
localDomains["stg.pl.girlsgogames.nl"] = true;
trace(localDomains["stg.girlsgogames.nl"]);
Brandings.initialize();
Languages.initialize();
initContexMenu(_arg4);
channelLock = _arg5;
gameName = _arg1.replace(" ", "_");
portalGroup = _arg2;
emailPage = _arg3;
chooseLanguage();
chooseBranding();
if (portalGroup == PortalGroup.HYVES){
changeLanguage("nl");
};
}
public static function initTextField(_arg1:TextField):void{
var _local2:TextFormat;
_arg1.text = _arg1.text.replace(/{([^{}]*)}/g, replaceFn);
_arg1.embedFonts = currentLanguage.embedFonts;
if (currentLanguage.forceFont != ""){
_local2 = new TextFormat();
_local2.font = currentLanguage.forceFont;
_arg1.setTextFormat(_local2);
};
}
private static function replaceFn():String{
var _local2:String = SpilGame.getString(arguments[1]);
if (((!(_local2)) || ((_local2 == "")))){
return ((("{" + arguments[1]) + "}"));
};
return (_local2);
}
public static function outputAllBrands():String{
var _local3:Brand;
var _local1:Array = Brandings.getBrandsArray();
var _local2 = "";
for each (_local3 in _local1) {
_local2 = (_local2 + (_local3.getSendToFriendLink(gameName, emailPage, isExternal, embedDomain) + "\n"));
};
return (_local2);
}
public static function traceAllBrands():void{
trace(outputAllBrands());
}
public static function getMoreGamesLink(_arg1:String=""):String{
var _local2:String = (embedDomain) ? embedDomain : hostingDomain;
return (currentBranding.getMoreGamesLink(gameName, isExternal, _local2, _arg1));
}
public static function getSendToFriendLink():String{
return (currentBranding.getSendToFriendLink(gameName, emailPage, isExternal, embedDomain));
}
public static function getPromotionLink(_arg1:String="feature_promotion"):String{
var _local2:String = (embedDomain) ? embedDomain : hostingDomain;
return (currentBranding.getPromotionLink(gameName, emailPage, isExternal, _local2, _arg1));
}
public static function getSpilCompanyLink():String{
var _local1 = "http://www.gameportal.net/";
if (isExternal){
_local1 = (_local1 + ("?utm_medium=brandedgames_" + (isExternal) ? "external" : "internal"));
_local1 = (_local1 + ("&utm_campaign=" + gameName));
_local1 = (_local1 + ("&utm_source=" + Brand.stripSubDomain((embedDomain) ? embedDomain : hostingDomain)));
_local1 = (_local1 + "&utm_content=Branding_Link");
};
return (_local1);
}
public static function importXML(_arg1:XML):void{
var _local2:XML;
var _local3:Object;
var _local4:XML;
for each (_local2 in _arg1.children()) {
_local3 = (strings[_local2.identifier] = new Object());
for each (_local4 in _local2.children()) {
_local3[_local4.name()] = _local4.children()[0].toString();
};
};
}
public static function importXMLv2(_arg1:XML):void{
var _local2:XML;
var _local3:Object;
var _local4:XML;
for each (_local2 in _arg1.children()) {
_local3 = (strings[_local2.attribute("identifier")] = new Object());
for each (_local4 in _local2.children()) {
if (_local4.children().length() > 0){
_local3[_local4.name()] = _local4.children()[0].toString();
} else {
_local3[_local4.name()] = "";
};
};
};
}
public static function getString(_arg1:String):String{
var _local2:Object = strings[_arg1];
if (_local2){
if (currentLanguage.textLanguage){
return (_local2[currentLanguage.textLanguage]);
};
if (_local2[currentLanguage.name]){
return (_local2[currentLanguage.name]);
};
return (_local2["en_us"]);
//unresolved jump
};
return ("");
}
private static function initContexMenu(_arg1:Sprite):void{
contexMenuItem = new ContextMenuItem("");
_arg1.contextMenu = new ContextMenu();
_arg1.contextMenu.customItems.push(contexMenuItem);
contexMenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contexMenuClicked);
}
private static function contexMenuClicked(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest(getMoreGamesLink("Contex_Menu")));
}
spil_internal static function chooseLanguage():void{
if (cookieLanguage != null){
currentLanguage = cookieLanguage;
} else {
if (isExternal){
currentLanguage = systemLanguage;
trace(("system language = " + currentLanguage));
} else {
currentLanguage = portalLanguage;
if (!currentLanguage){
currentLanguage = systemLanguage;
};
};
};
if (!currentLanguage){
trace("Unable to determine language, using 'English US'");
currentLanguage = Languages.getLanguage("en_us");
};
TextFieldFit.embedFonts = currentLanguage.embedFonts;
TextFieldFit.forceFont = currentLanguage.forceFont;
dispatchEvent(new Event(LANGUAGE_CHANGED));
}
spil_internal static function chooseBranding():void{
currentBranding = Brandings.getBrandByDomain(currentLanguage.portal_groups[portalGroup]);
if (!(currentBranding is Brand)){
currentBranding = Brandings.getBrandByDomain("www.agame.com");
};
contexMenuItem.caption = ("More Games: " + currentBranding.domain);
dispatchEvent(new Event(BRANDING_CHANGED));
}
spil_internal static function changeLanguage(_arg1:String):void{
var _local2:Language = Languages.getLanguage(_arg1);
if (!_local2){
trace("ERROR: Supplied language string does not have a matching language");
} else {
cookieLanguage = _local2;
currentLanguage = _local2;
};
TextFieldFit.embedFonts = currentLanguage.embedFonts;
TextFieldFit.forceFont = currentLanguage.forceFont;
chooseBranding();
dispatchEvent(new Event(LANGUAGE_CHANGED));
}
private static function get portalLanguage():Language{
var _local1:Brand;
var _local2:String;
var _local3:Language;
if (isExternal){
return (null);
};
if (!embedDomain){
return (null);
};
_local1 = Brandings.getBrandByDomain(embedDomain);
if (!_local1){
return (null);
};
_local2 = _local1.preferedLanguage;
if (!_local2){
return (null);
};
_local3 = Languages.getLanguage(_local2);
if (!_local3){
return (null);
};
return (_local3);
}
spil_internal static function get systemLanguage():Language{
var _local1:Array = new Array();
_local1["cs"] = "en_us";
_local1["da"] = "en_us";
_local1["nl"] = "nl_nl";
_local1["en"] = "en_us";
_local1["fi"] = "en_us";
_local1["fr"] = "fr_fr";
_local1["de"] = "de_de";
_local1["hu"] = "en_us";
_local1["it"] = "it_it";
_local1["ja"] = "jp_jp";
_local1["ko"] = "en_us";
_local1["no"] = "en_us";
_local1["xu"] = "en_us";
_local1["pl"] = "pl_pl";
_local1["pt"] = "pt_pt";
_local1["ru"] = "ru_ru";
_local1["zh_CN"] = "cn_cn";
_local1["es"] = "es_es";
_local1["sv"] = "sv_se";
_local1["zh_TW"] = "cn_cn";
_local1["tr"] = "tr_tr";
if (_local1[Capabilities.language]){
return (Languages.getLanguage(_local1[Capabilities.language]));
};
return (Languages.getLanguage("en_us"));
}
spil_internal static function get cookieLanguage():Language{
var _local1:SharedObject = SharedObject.getLocal(cookieName, cookiePath);
var _local2:String = String(_local1.data[cookieLanguageVar]);
return (Languages.getLanguage(_local2));
}
spil_internal static function set cookieLanguage(_arg1:Language):void{
var _local2:SharedObject = SharedObject.getLocal(cookieName, cookiePath);
if (_arg1 == null){
_local2.data[cookieLanguageVar] = null;
} else {
_local2.data[cookieLanguageVar] = _arg1.name;
};
_local2.flush();
}
public static function get isExternal():Boolean{
return (((((!(Brandings.hasDomain(embedDomain))) && (!(localDomains[embedDomain])))) && (!(isStagingDomain))));
}
public static function get isStagingDomain():Boolean{
var _local1:String = ("http://" + embedDomain);
return ((_local1.indexOf("http://stg.") >= 0));
}
spil_internal static function get hostingDomain():String{
var _local1:LocalConnection;
if (debugHostDomain != ""){
return (debugHostDomain);
};
_local1 = new LocalConnection();
return (_local1.domain);
}
spil_internal static function get embedDomain():String{
var loc:String;
if (debugEmbedDomain != ""){
return (debugEmbedDomain);
};
if (ExternalInterface.available){
try {
loc = ExternalInterface.call("window.location.href.toString");
if (((!((loc == ""))) && (!((loc == null))))){
trace(("embed domain = " + getDomain(loc)));
return (getDomain(loc));
};
} catch(e:SecurityError) {
trace(("Security Error connecting to external interface, error = " + e));
} catch(e:Error) {
trace(("Error connecting to external interface, error = " + e));
};
};
return (null);
}
public static function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public static function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.removeEventListener(_arg1, _arg2, _arg3);
}
spil_internal static function dispatchEvent(_arg1:Event):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.dispatchEvent(_arg1);
}
public static function exportXML():XML{
var _local1:XML = <spil_games/>
;
_local1.appendChild(Brandings.exportXML());
_local1.appendChild(Languages.exportXML());
_local1.appendChild(PortalGroup.exportXML());
return (_local1);
}
private static function getDomain(_arg1:String):String{
var _local2:String;
var _local3:uint;
if (_arg1.indexOf("file") == 0){
return ("offline_play");
};
_local2 = new String();
_local3 = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
if (_local2 == "localhost"){
_local2 = "offline_play";
};
return (_local2);
}
}
}//package spill.localisation
Section 220
//SpilGamesLink (spill.localisation.SpilGamesLink)
package spill.localisation {
import flash.net.*;
import flash.display.*;
import flash.events.*;
public class SpilGamesLink extends SimpleButton {
public function SpilGamesLink(){
addEventListener(MouseEvent.CLICK, buttonClicked);
}
private function buttonClicked(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getSpilCompanyLink()), "_blank");
}
}
}//package spill.localisation
Section 221
//TextFieldFit (spill.localisation.TextFieldFit)
package spill.localisation {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.filters.*;
import flash.utils.*;
public class TextFieldFit extends MovieClip {
private var field:TextField;
private var w:Number;
private var h:Number;
private var format:TextFormat;
private var embeddedFonts:Array;
private var sizeChanged:Boolean;// = true
private var debugBounding:Sprite;
private var _TextFields1;
var _w:Number;
var _h:Number;
private var valid:Boolean;// = true
protected var _text:String;// = "default"
protected var _textColor:uint;// = 0
protected var _textSize:Number;// = 12
protected var _multiline:Boolean;// = false
protected var _disableWordwrap:Boolean;// = false
protected var _hAlign:String;// = "left"
protected var _vAlign:String;// = "top"
protected var _bold:Boolean;// = false
protected var _underline:Boolean;// = false
protected var _italic:Boolean;// = false
protected var _selectable:Boolean;// = false
protected var _font:String;// = ""
protected var _embedFonts:Boolean;// = true
protected var _antiAliasType:String;// = "advanced"
protected var _gridFitType:String;// = "pixel"
protected var _useGlowFilter:Boolean;// = false
protected var _glowBlur:Number;// = 3
protected var _glowColor:uint;// = 0
protected var _glowStrength:Number;// = 5
protected var _glowQuality:Number;// = 1
private static const gutter:Number = 2;
spil_internal static var embedFonts:Boolean = true;
spil_internal static var forceFont:String = null;
spil_internal static var forceAAType:String = null;
public static var alwaysCheckWidth:Boolean = false;
public function TextFieldFit(){
var _local1:Boolean = ((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")));
_w = width;
_h = height;
if (numChildren > 0){
removeChildAt(0);
};
trace("初始化TextFieldFit");
if (!field){
if ((((((((SpilGame.currentLanguage.name == "en_uk")) || ((SpilGame.currentLanguage.name == "en_us")))) || ((SpilGame.currentLanguage.name == "en_in")))) || ((SpilGame.currentLanguage.name == "en_ar")))){
_TextFields1 = new TextFields4();
} else {
if ((((((SpilGame.currentLanguage.name == "cn_cn")) || ((SpilGame.currentLanguage.name == "ru_ru")))) || ((SpilGame.currentLanguage.name == "jp_jp")))){
_TextFields1 = new TextFields2();
} else {
_TextFields1 = new TextFields1();
};
};
addChild(_TextFields1);
field = _TextFields1.txt;
};
field.border = false;
field.background = false;
field.type = TextFieldType.DYNAMIC;
mouseEnabled = false;
mouseChildren = false;
format = new TextFormat();
embeddedFonts = Font.enumerateFonts(false);
setSize(_w, _h);
validate();
if (stage){
addEventListener(Event.RENDER, init);
stage.invalidate();
};
init();
}
public function get textField():TextField{
return (field);
}
private function init(_arg1:Event=null):void{
removeEventListener(Event.RENDER, init);
updateProperties();
layoutText();
}
protected function updateProperties():void{
var _local1:Boolean;
var _local2:Font;
removeChild(_TextFields1);
if ((((((((SpilGame.currentLanguage.name == "en_uk")) || ((SpilGame.currentLanguage.name == "en_us")))) || ((SpilGame.currentLanguage.name == "en_in")))) || ((SpilGame.currentLanguage.name == "en_ar")))){
_TextFields1 = new TextFields4();
} else {
if ((((((SpilGame.currentLanguage.name == "cn_cn")) || ((SpilGame.currentLanguage.name == "ru_ru")))) || ((SpilGame.currentLanguage.name == "jp_jp")))){
_TextFields1 = new TextFields2();
} else {
_TextFields1 = new TextFields1();
};
};
addChild(_TextFields1);
field = _TextFields1.txt;
setSize(_w, _h);
field.text = _text;
field.multiline = ((((_text.indexOf(" ") < 0)) && ((_text.length < 14)))) ? false : _multiline;
field.wordWrap = ((field.multiline) && (!(_disableWordwrap)));
field.selectable = _selectable;
field.antiAliasType = (forceAAType) ? forceAAType : _antiAliasType;
field.gridFitType = _gridFitType;
embeddedFonts = Font.enumerateFonts(false);
if (((((_embedFonts) && (!((_font == ""))))) && (TextFieldFit.embedFonts))){
_local1 = false;
for each (_local2 in embeddedFonts) {
if (_font == _local2.fontName){
_local1 = true;
break;
};
};
field.embedFonts = _local1;
if (!_local1){
trace(((("WARNING: Embedded font '" + _font) + "' not found, disabling embedding of fonts, text = ") + _text));
} else {
trace((("Found Embedded font '" + _font) + "' using font"));
};
} else {
field.embedFonts = false;
};
field.embedFonts = true;
if (TextFieldFit.forceFont){
format.font = TextFieldFit.forceFont;
} else {
format.font = _font;
};
if (sizeChanged){
format.size = _textSize;
};
format.color = _textColor;
format.align = _hAlign;
format.bold = true;
format.italic = _italic;
format.underline = _underline;
format.leftMargin = 0;
format.rightMargin = 0;
field.setTextFormat(format);
if (_useGlowFilter){
filters = [new GlowFilter(_glowColor, 1, _glowBlur, _glowBlur, _glowStrength, _glowQuality)];
} else {
filters = [];
};
}
public function setSize(_arg1:Number, _arg2:Number):void{
w = _arg1;
h = _arg2;
scaleX = (scaleY = 1);
field.width = w;
field.height = h;
invalidate();
}
private function layoutText():void{
resizeText();
field.height = (field.textHeight + (gutter * 2));
if (vAlign == "top"){
field.y = 0;
} else {
if (vAlign == "middle"){
field.y = ((h - field.height) / 2);
} else {
if (vAlign == "bottom"){
field.y = (h - field.height);
};
};
};
}
private function resizeText(_arg1:Boolean=false):void{
if (!doesTextFit()){
format.size = Object((Number(format.size) - 1));
if (format.size <= 3){
trace("WARNING: Text resised to 3px, either an error occured or the text just wont fit");
return;
};
field.setTextFormat(format);
resizeText(true);
} else {
if (_arg1 == false){
while (doesTextFit()) {
if (format.size <= textSize){
format.size = Object((Number(format.size) + 1));
field.setTextFormat(format);
if (!doesTextFit()){
format.size = Object((Number(format.size) - 1));
field.setTextFormat(format);
break;
};
} else {
break;
};
};
};
};
}
private function doesTextFit():Boolean{
if (((((field.textHeight + (gutter * 2)) > h)) || (((((field.textWidth + (gutter * 2)) > w)) && (((!(field.multiline)) || (alwaysCheckWidth))))))){
return (false);
};
return (true);
}
private function invalidate():void{
if (valid){
addEventListener(Event.ENTER_FRAME, validate);
if (stage){
stage.invalidate();
};
valid = false;
};
}
private function validate(_arg1:Event=null):void{
updateProperties();
layoutText();
removeEventListener(Event.ENTER_FRAME, validate);
valid = true;
}
public function set text(_arg1:String):void{
_text = _arg1;
invalidate();
}
public function get text():String{
return (_text);
}
public function set textColor(_arg1:uint):void{
_textColor = _arg1;
invalidate();
}
public function get textColor():uint{
return (_textColor);
}
public function set textSize(_arg1:Number):void{
_textSize = _arg1;
sizeChanged = true;
invalidate();
}
public function get textSize():Number{
return (_textSize);
}
public function set multiline(_arg1:Boolean):void{
_multiline = _arg1;
invalidate();
}
public function get multiline():Boolean{
return (_multiline);
}
public function set disableWordwrap(_arg1:Boolean):void{
_disableWordwrap = _arg1;
invalidate();
}
public function get disableWordwrap():Boolean{
return (_disableWordwrap);
}
public function set hAlign(_arg1:String):void{
_hAlign = _arg1;
invalidate();
}
public function get hAlign():String{
return (_hAlign);
}
public function set vAlign(_arg1:String):void{
_vAlign = _arg1;
invalidate();
}
public function get vAlign():String{
return (_vAlign);
}
public function set bold(_arg1:Boolean):void{
_bold = _arg1;
invalidate();
}
public function get bold():Boolean{
return (_bold);
}
public function set underline(_arg1:Boolean):void{
_underline = _arg1;
invalidate();
}
public function get underline():Boolean{
return (_underline);
}
public function set italic(_arg1:Boolean):void{
_italic = _arg1;
invalidate();
}
public function get italic():Boolean{
return (_italic);
}
public function set selectable(_arg1:Boolean):void{
_selectable = _arg1;
invalidate();
}
public function get selectable():Boolean{
return (_selectable);
}
public function set font(_arg1:String):void{
_font = _arg1;
invalidate();
}
public function get font():String{
return (_font);
}
public function set embedFonts(_arg1:Boolean):void{
_embedFonts = _arg1;
invalidate();
}
public function get embedFonts():Boolean{
return (_embedFonts);
}
public function set antiAliasType(_arg1:String):void{
_antiAliasType = _arg1;
invalidate();
}
public function get antiAliasType():String{
return (_antiAliasType);
}
public function set gridFitType(_arg1:String):void{
_gridFitType = _arg1;
invalidate();
}
public function get gridFitType():String{
return (_gridFitType);
}
public function set useGlowFilter(_arg1:Boolean):void{
_useGlowFilter = _arg1;
invalidate();
}
public function get useGlowFilter():Boolean{
return (_useGlowFilter);
}
public function set glowBlur(_arg1:Number):void{
_glowBlur = _arg1;
invalidate();
}
public function get glowBlur():Number{
return (_glowBlur);
}
public function set glowColor(_arg1:uint):void{
_glowColor = _arg1;
invalidate();
}
public function get glowColor():uint{
return (_glowColor);
}
public function set glowStrength(_arg1:Number):void{
_glowStrength = _arg1;
invalidate();
}
public function get glowStrength():Number{
return (_glowStrength);
}
public function set glowQuality(_arg1:Number):void{
_glowQuality = _arg1;
invalidate();
}
public function get glowQuality():Number{
return (_glowQuality);
}
}
}//package spill.localisation
Section 222
//BrandingMC (BrandingMC)
package {
import lib.*;
public dynamic class BrandingMC extends CD_Button {
}
}//package
Section 223
//Bt_again (Bt_again)
package {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import lib.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class Bt_again extends CD_Button_Normal {
public var __id29_:LocalizedTextField;
public function Bt_again(){
__setProp___id29__Bt_again_();
}
function __setProp___id29__Bt_again_(){
try {
__id29_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id29_.text = "{Try_Again}";
__id29_.textColor = 3381708;
__id29_.textSize = 15;
__id29_.bold = false;
__id29_.disableWordwrap = false;
__id29_.embedFonts = true;
__id29_.font = "";
__id29_.hAlign = "center";
__id29_.multiline = false;
__id29_.vAlign = "top";
__id29_.antiAliasType = "advanced";
__id29_.glowBlur = 5;
__id29_.glowColor = 0xFFFFFF;
__id29_.useGlowFilter = true;
__id29_.glowQuality = 1;
__id29_.glowStrength = 5;
__id29_.gridFitType = "pixel";
__id29_.italic = false;
__id29_.selectable = false;
__id29_.underline = false;
try {
__id29_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 224
//Bt_home (Bt_home)
package {
import lib.*;
public dynamic class Bt_home extends CD_Button2 {
}
}//package
Section 225
//BT_howtoplay (BT_howtoplay)
package {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import lib.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class BT_howtoplay extends CD_Button_Normal {
public var __id3_:LocalizedTextField;
public function BT_howtoplay(){
__setProp___id3__BT_howtoplay_();
}
function __setProp___id3__BT_howtoplay_(){
try {
__id3_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id3_.text = "{How_To_Play}";
__id3_.textColor = 3381708;
__id3_.textSize = 15;
__id3_.bold = false;
__id3_.disableWordwrap = false;
__id3_.embedFonts = true;
__id3_.font = "";
__id3_.hAlign = "center";
__id3_.multiline = false;
__id3_.vAlign = "top";
__id3_.antiAliasType = "advanced";
__id3_.glowBlur = 5;
__id3_.glowColor = 0xFFFFFF;
__id3_.useGlowFilter = true;
__id3_.glowQuality = 1;
__id3_.glowStrength = 5;
__id3_.gridFitType = "pixel";
__id3_.italic = false;
__id3_.selectable = false;
__id3_.underline = false;
try {
__id3_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 226
//BT_menu2 (BT_menu2)
package {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import lib.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class BT_menu2 extends CD_Button_Normal {
public var __id11_:LocalizedTextField;
public function BT_menu2(){
__setProp___id11__BT_menu2_();
}
function __setProp___id11__BT_menu2_(){
try {
__id11_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id11_.text = "{Menu}";
__id11_.textColor = 3381708;
__id11_.textSize = 15;
__id11_.bold = false;
__id11_.disableWordwrap = false;
__id11_.embedFonts = true;
__id11_.font = "";
__id11_.hAlign = "center";
__id11_.multiline = false;
__id11_.vAlign = "top";
__id11_.antiAliasType = "advanced";
__id11_.glowBlur = 5;
__id11_.glowColor = 0xFFFFFF;
__id11_.useGlowFilter = true;
__id11_.glowQuality = 1;
__id11_.glowStrength = 5;
__id11_.gridFitType = "pixel";
__id11_.italic = false;
__id11_.selectable = false;
__id11_.underline = false;
try {
__id11_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 227
//BT_moregame (BT_moregame)
package {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import lib.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class BT_moregame extends CD_Button_Normal {
public var __id4_:LocalizedTextField;
public function BT_moregame(){
__setProp___id4__BT_moregame_();
}
function __setProp___id4__BT_moregame_(){
try {
__id4_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id4_.text = "{More_Games}";
__id4_.textColor = 3381708;
__id4_.textSize = 15;
__id4_.bold = false;
__id4_.disableWordwrap = false;
__id4_.embedFonts = true;
__id4_.font = "";
__id4_.hAlign = "center";
__id4_.multiline = false;
__id4_.vAlign = "top";
__id4_.antiAliasType = "advanced";
__id4_.glowBlur = 5;
__id4_.glowColor = 0xFFFFFF;
__id4_.useGlowFilter = true;
__id4_.glowQuality = 1;
__id4_.glowStrength = 5;
__id4_.gridFitType = "pixel";
__id4_.italic = false;
__id4_.selectable = false;
__id4_.underline = false;
try {
__id4_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 228
//BT_next (BT_next)
package {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import lib.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class BT_next extends CD_Button_Normal {
public var __id15_:LocalizedTextField;
public function BT_next(){
__setProp___id15__BT_next_();
}
function __setProp___id15__BT_next_(){
try {
__id15_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id15_.text = "{next}";
__id15_.textColor = 3381708;
__id15_.textSize = 15;
__id15_.bold = false;
__id15_.disableWordwrap = false;
__id15_.embedFonts = true;
__id15_.font = "";
__id15_.hAlign = "center";
__id15_.multiline = false;
__id15_.vAlign = "top";
__id15_.antiAliasType = "advanced";
__id15_.glowBlur = 5;
__id15_.glowColor = 0xFFFFFF;
__id15_.useGlowFilter = true;
__id15_.glowQuality = 1;
__id15_.glowStrength = 5;
__id15_.gridFitType = "pixel";
__id15_.italic = false;
__id15_.selectable = false;
__id15_.underline = false;
try {
__id15_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 229
//BT_start2 (BT_start2)
package {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import lib.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class BT_start2 extends CD_Button_Normal {
public var __id6_:LocalizedTextField;
public function BT_start2(){
__setProp___id6__BT_start2_();
}
function __setProp___id6__BT_start2_(){
try {
__id6_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id6_.text = "{Start}";
__id6_.textColor = 3381708;
__id6_.textSize = 15;
__id6_.bold = false;
__id6_.disableWordwrap = false;
__id6_.embedFonts = true;
__id6_.font = "";
__id6_.hAlign = "center";
__id6_.multiline = false;
__id6_.vAlign = "top";
__id6_.antiAliasType = "advanced";
__id6_.glowBlur = 5;
__id6_.glowColor = 0xFFFFFF;
__id6_.useGlowFilter = true;
__id6_.glowQuality = 1;
__id6_.glowStrength = 5;
__id6_.gridFitType = "pixel";
__id6_.italic = false;
__id6_.selectable = false;
__id6_.underline = false;
try {
__id6_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 230
//BT_start3 (BT_start3)
package {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.filters.*;
import lib.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class BT_start3 extends CD_Button_Normal {
public var __id5_:LocalizedTextField;
public function BT_start3(){
__setProp___id5__BT_start3_();
}
function __setProp___id5__BT_start3_(){
try {
__id5_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id5_.text = "{Set_As_Avatar}";
__id5_.textColor = 3381708;
__id5_.textSize = 15;
__id5_.bold = false;
__id5_.disableWordwrap = false;
__id5_.embedFonts = true;
__id5_.font = "";
__id5_.hAlign = "center";
__id5_.multiline = false;
__id5_.vAlign = "top";
__id5_.antiAliasType = "advanced";
__id5_.glowBlur = 5;
__id5_.glowColor = 0xFFFFFF;
__id5_.useGlowFilter = true;
__id5_.glowQuality = 1;
__id5_.glowStrength = 5;
__id5_.gridFitType = "pixel";
__id5_.italic = false;
__id5_.selectable = false;
__id5_.underline = false;
try {
__id5_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 231
//chooseBoxMC (chooseBoxMC)
package {
import flash.display.*;
public dynamic class chooseBoxMC extends MovieClip {
}
}//package
Section 232
//chooseBoxOut (chooseBoxOut)
package {
import flash.display.*;
public dynamic class chooseBoxOut extends MovieClip {
}
}//package
Section 233
//Game_hit_hold (Game_hit_hold)
package {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class Game_hit_hold extends MovieClip {
public function Game_hit_hold(){
addFrameScript(144, frame145);
}
function frame145(){
stop();
}
}
}//package
Section 234
//Game_ui_hartmc (Game_ui_hartmc)
package {
import flash.display.*;
public dynamic class Game_ui_hartmc extends MovieClip {
}
}//package
Section 235
//HeartBreak (HeartBreak)
package {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class HeartBreak extends MovieClip {
public function HeartBreak(){
addFrameScript(42, frame43);
}
function frame43(){
stop();
try {
parent.removeChild(this);
} catch(err) {
};
}
}
}//package
Section 236
//help (help)
package {
import lib.*;
public dynamic class help extends CD_Button2 {
}
}//package
Section 237
//LightMc (LightMc)
package {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
public dynamic class LightMc extends MovieClip {
public function LightMc(){
addFrameScript(32, frame33);
}
function frame33(){
dispatchEvent(new Event("END"));
}
}
}//package
Section 238
//logo素材2 (logoç´ æ2)
package {
import lib.*;
public dynamic class logo素材2 extends TextShow {
}
}//package
Section 239
//m_complete (m_complete)
package {
import flash.media.*;
public dynamic class m_complete extends Sound {
}
}//package
Section 240
//m_failed (m_failed)
package {
import flash.media.*;
public dynamic class m_failed extends Sound {
}
}//package
Section 241
//m_level (m_level)
package {
import flash.media.*;
public dynamic class m_level extends Sound {
}
}//package
Section 242
//m_mainscreen (m_mainscreen)
package {
import flash.media.*;
public dynamic class m_mainscreen extends Sound {
}
}//package
Section 243
//m_story (m_story)
package {
import flash.media.*;
public dynamic class m_story extends Sound {
}
}//package
Section 244
//mouseMove (mouseMove)
package {
import flash.display.*;
public dynamic class mouseMove extends MovieClip {
}
}//package
Section 245
//mouseScale (mouseScale)
package {
import flash.display.*;
public dynamic class mouseScale extends MovieClip {
}
}//package
Section 246
//s_bt_click_001 (s_bt_click_001)
package {
import flash.media.*;
public dynamic class s_bt_click_001 extends Sound {
}
}//package
Section 247
//s_bt_over_001 (s_bt_over_001)
package {
import flash.media.*;
public dynamic class s_bt_over_001 extends Sound {
}
}//package
Section 248
//s_chudian (s_chudian)
package {
import flash.media.*;
public dynamic class s_chudian extends Sound {
}
}//package
Section 249
//s_dasui (s_dasui)
package {
import flash.media.*;
public dynamic class s_dasui extends Sound {
}
}//package
Section 250
//s_kiss_000 (s_kiss_000)
package {
import flash.media.*;
public dynamic class s_kiss_000 extends Sound {
}
}//package
Section 251
//TextFields1 (TextFields1)
package {
import flash.display.*;
import flash.text.*;
public dynamic class TextFields1 extends MovieClip {
public var txt:TextField;
}
}//package
Section 252
//TextFields2 (TextFields2)
package {
import flash.display.*;
import flash.text.*;
public dynamic class TextFields2 extends MovieClip {
public var txt:TextField;
}
}//package
Section 253
//TextFields3 (TextFields3)
package {
import flash.display.*;
import flash.text.*;
public dynamic class TextFields3 extends MovieClip {
public var txt:TextField;
}
}//package
Section 254
//TextFields4 (TextFields4)
package {
import flash.display.*;
import flash.text.*;
public dynamic class TextFields4 extends MovieClip {
public var txt:TextField;
}
}//package
Section 255
//Txt_Hold (Txt_Hold)
package {
import flash.display.*;
public dynamic class Txt_Hold extends MovieClip {
}
}//package
Section 256
//txt_hold3_2 (txt_hold3_2)
package {
import lib.*;
public dynamic class txt_hold3_2 extends TextShow {
}
}//package
Section 257
//txt1 (txt1)
package {
import lib.*;
public dynamic class txt1 extends TextShow {
}
}//package
Section 258
//图标保存 (å›¾æ ‡ä¿å˜)
package {
import lib.*;
public dynamic class 图标保存 extends CD_Button2 {
}
}//package
Section 259
//图标放大 (å›¾æ ‡æ”¾å¤§)
package {
import lib.*;
public dynamic class 图标放大 extends CD_Button2 {
}
}//package
Section 260
//图标缩小 (å›¾æ ‡ç¼©å°)
package {
import lib.*;
public dynamic class 图标缩小 extends CD_Button2 {
}
}//package
Section 261
//画质 (画质)
package {
import lib.*;
public dynamic class 画质 extends CD_Button {
}
}//package
Section 262
//画面质量2 (ç”»é¢è´¨é‡2)
package {
import lib.*;
public dynamic class 画面质量2 extends CD_Button {
}
}//package
Section 263
//画面质量3 (ç”»é¢è´¨é‡3)
package {
import lib.*;
public dynamic class 画面质量3 extends CD_Button {
}
}//package