Section 1
//MD5 (com.adobe.crypto.MD5)
package com.adobe.crypto {
import com.adobe.utils.*;
public class MD5 {
private static function ff(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(f, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private static function createBlocks(_arg1:String):Array{
var _local2:Array;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = new Array();
_local3 = (_arg1.length * 8);
_local4 = 0xFF;
_local5 = 0;
while (_local5 < _local3) {
_local2[(_local5 >> 5)] = (_local2[(_local5 >> 5)] | ((_arg1.charCodeAt((_local5 / 8)) & _local4) << (_local5 % 32)));
_local5 = (_local5 + 8);
};
_local2[(_local3 >> 5)] = (_local2[(_local3 >> 5)] | (128 << (_local3 % 32)));
_local2[((((_local3 + 64) >>> 9) << 4) + 14)] = _local3;
return (_local2);
}
private static function ii(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(i, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private static function f(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg2) | (~(_arg1) & _arg3)));
}
private static function g(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg3) | (_arg2 & ~(_arg3))));
}
private static function h(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 ^ _arg2) ^ _arg3));
}
private static function i(_arg1:int, _arg2:int, _arg3:int):int{
return ((_arg2 ^ (_arg1 | ~(_arg3))));
}
private static function transform(_arg1:Function, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):int{
var _local9:int;
_local9 = (((_arg2 + int(_arg1(_arg3, _arg4, _arg5))) + _arg6) + _arg8);
return ((IntUtil.rol(_local9, _arg7) + _arg3));
}
private static function hh(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(h, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
public static function hash(_arg1:String):String{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:Array;
var _local11:int;
var _local12:int;
_local2 = 1732584193;
_local3 = -271733879;
_local4 = -1732584194;
_local5 = 271733878;
_local10 = createBlocks(_arg1);
_local11 = _local10.length;
_local12 = 0;
while (_local12 < _local11) {
_local6 = _local2;
_local7 = _local3;
_local8 = _local4;
_local9 = _local5;
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 7, -680876936);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 1)], 12, -389564586);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 17, 606105819);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 3)], 22, -1044525330);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 7, -176418897);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 5)], 12, 1200080426);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 17, -1473231341);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 7)], 22, -45705983);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 7, 1770035416);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 9)], 12, -1958414417);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 17, -42063);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 11)], 22, -1990404162);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 7, 1804603682);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 13)], 12, -40341101);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 17, -1502002290);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 15)], 22, 1236535329);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 5, -165796510);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 6)], 9, -1069501632);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 14, 643717713);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 0)], 20, -373897302);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 5, -701558691);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 10)], 9, 38016083);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 14, -660478335);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 4)], 20, -405537848);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 5, 568446438);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 14)], 9, -1019803690);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 14, -187363961);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 8)], 20, 1163531501);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 5, -1444681467);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 2)], 9, -51403784);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 14, 1735328473);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 12)], 20, -1926607734);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 4, -378558);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 8)], 11, -2022574463);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 16, 1839030562);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 14)], 23, -35309556);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 4, -1530992060);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 4)], 11, 1272893353);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 16, -155497632);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 10)], 23, -1094730640);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 4, 681279174);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 0)], 11, -358537222);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 16, -722521979);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 6)], 23, 76029189);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 4, -640364487);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 12)], 11, -421815835);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 16, 530742520);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 2)], 23, -995338651);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 6, -198630844);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 7)], 10, 1126891415);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 15, -1416354905);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 5)], 21, -57434055);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 6, 1700485571);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 3)], 10, -1894986606);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 15, -1051523);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 1)], 21, -2054922799);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 6, 1873313359);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 15)], 10, -30611744);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 15, -1560198380);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 13)], 21, 1309151649);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 6, -145523070);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 11)], 10, -1120210379);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 15, 718787259);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 9)], 21, -343485551);
_local2 = (_local2 + _local6);
_local3 = (_local3 + _local7);
_local4 = (_local4 + _local8);
_local5 = (_local5 + _local9);
_local12 = (_local12 + 16);
};
return ((((IntUtil.toHex(_local2) + IntUtil.toHex(_local3)) + IntUtil.toHex(_local4)) + IntUtil.toHex(_local5)));
}
private static function gg(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(g, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
}
}//package com.adobe.crypto
Section 2
//IntUtil (com.adobe.utils.IntUtil)
package com.adobe.utils {
public class IntUtil {
private static var hexChars:String = "0123456789abcdef";
public static function toHex(_arg1:int, _arg2:Boolean=false):String{
var _local3:String;
var _local4:int;
var _local5:int;
_local3 = "";
if (_arg2){
_local4 = 0;
while (_local4 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> (((3 - _local4) * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> ((3 - _local4) * 8)) & 15))));
_local4++;
};
} else {
_local5 = 0;
while (_local5 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> ((_local5 * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> (_local5 * 8)) & 15))));
_local5++;
};
};
return (_local3);
}
public static function ror(_arg1:int, _arg2:int):uint{
var _local3:int;
_local3 = (32 - _arg2);
return (((_arg1 << _local3) | (_arg1 >>> (32 - _local3))));
}
public static function rol(_arg1:int, _arg2:int):int{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
}
}//package com.adobe.utils
Section 3
//Tracker (com.memecounter.Tracker)
package com.memecounter {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class Tracker {
private static var ori_dom:String;
private static var lurl:String;
private static var _isReady:Boolean = false;
public static var a:uint = 0;
public static var root:DisplayObject;
public static var c:uint;
public static var d:String = "";
private static var _isInited:Boolean = false;
public static var fpv:String = "";
private static var l:Loader;
private static var tracker:MovieClip;
public static var da:Array = ["distralytics.com", "distralytics.co.uk"];
private static function loadError(_arg1:Event):void{
a++;
lc();
}
public static function init(_arg1:uint, _arg2:DisplayObject):void{
var _local3:uint;
if (!_isInited){
_isInited = true;
c = _arg1;
root = _arg2;
_local3 = 0;
while (_local3 < da.length) {
Security.allowDomain(da[_local3], ((c + ".c.") + da[_local3]), ("*." + da[_local3]));
_local3++;
};
ori_dom = (root.loaderInfo.parameters.hasOwnProperty("ori_dom")) ? root.loaderInfo.parameters.ori_dom : "";
d = ((ori_dom)!="") ? ori_dom : ((root.loaderInfo.loaderURL.split("/")[0].indexOf("http"))==-1) ? "Local" : root.loaderInfo.loaderURL.split("/")[2].split("?")[0];
fpv = Capabilities.version.split(" ")[1].split(",")[0];
lurl = ((((((((("/control/tracking/trackerAS3.swf" + "?c=") + c) + "&r=") + Math.floor((Math.random() * 10000000000))) + "&d=") + d) + "&p=") + fpv) + "&as=3");
l = new Loader();
l.contentLoaderInfo.addEventListener(Event.INIT, loadComplete);
l.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
lc();
};
}
public static function get isReady():Boolean{
return (isReady);
}
public static function kvClick(_arg1:uint):void{
if (_isReady){
tracker.kvClick(_arg1);
};
}
public static function kvCountry():String{
if (_isReady){
return (tracker.kvCountry());
};
return ("");
}
public static function kvEvent(_arg1:uint):void{
if (_isReady){
tracker.kvEvent(_arg1);
};
}
private static function lc():void{
var _local1:String;
_local1 = (((("http://" + c) + ".c.") + da[(a % da.length)]) + lurl);
Security.allowDomain(_local1);
l.load(new URLRequest(_local1));
}
private static function loadComplete(_arg1:Event):void{
tracker = _arg1.target.content;
tracker.init(getDefinitionByName("com.memecounter.Tracker"), root);
_isReady = true;
}
}
}//package com.memecounter
Section 4
//KeyboardControls (console.control.KeyboardControls)
package console.control {
import flash.display.*;
import flash.events.*;
public class KeyboardControls extends Sprite {
public var _keyUp:int;
public var _keyDown:int;
public var _debug:Boolean;
public var _keysDown_array:Array;
public static const SINGLE_KEY_UP:String = "Key Up";
public static const MULTI_KEYS_DOWN:String = "Multi Keys Down";
public static const SINGLE_KEY_DOWN:String = "Key DOWN";
public function KeyboardControls(_arg1:Boolean):void{
_keysDown_array = new Array();
super();
_debug = _arg1;
addEventListener(Event.ADDED_TO_STAGE, addKeyListeners);
}
public function fnKeyUp(_arg1:KeyboardEvent):void{
var _local2:*;
var _local3:*;
_local2 = _arg1.keyCode;
_local3 = 0;
while (_local3 < _keysDown_array.length) {
if (_keysDown_array[_local3] == _local2){
_keyUp = _local2;
_keysDown_array.splice(_local3, 1);
dispatchEvent(new Event(KeyboardControls.SINGLE_KEY_UP));
};
_local3++;
};
}
public function dispatchMultiKeyEvent(_arg1:Event){
if (_keysDown_array.length > 0){
dispatchEvent(new Event(KeyboardControls.MULTI_KEYS_DOWN));
};
}
public function fnKeyDown(_arg1:KeyboardEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = _arg1.keyCode;
_local3 = false;
_local4 = 0;
while (_local4 < _keysDown_array.length) {
if (_keysDown_array[_local4] == _local2){
_local3 = true;
break;
};
_local4++;
};
if (!_local3){
if (_debug){
};
_keyDown = _local2;
_keysDown_array.push(_arg1.keyCode);
dispatchEvent(new Event(KeyboardControls.SINGLE_KEY_DOWN));
};
}
public function addKeyListeners(_arg1:Event):void{
this.stage.addEventListener(KeyboardEvent.KEY_UP, fnKeyUp);
this.stage.addEventListener(KeyboardEvent.KEY_DOWN, fnKeyDown);
addEventListener(Event.ENTER_FRAME, dispatchMultiKeyEvent);
}
}
}//package console.control
Section 5
//CommonHighScore (console.highscore.CommonHighScore)
package console.highscore {
import flash.events.*;
import console.parsers.*;
public class CommonHighScore extends EventDispatcher {
public var _highScores:Array;
public var _xmlPass;
public static const SCORES_LOADED:String = "SCORESLOADED";
public static const SCORES_FAILED:String = "SCORESFAILED";
public function CommonHighScore(){
_xmlPass = new ParseXML();
super();
}
public function xml_progress(_arg1:Event):void{
}
public function xml_display(_arg1:Event):void{
var _local2:XML;
var _local3:*;
var _local4:*;
var _local5:Array;
var _local6:*;
_xmlPass.removeEventListener(ParseXML.XML_LOADED, xml_display);
_xmlPass.removeEventListener(ParseXML.XML_FAILED, xml_failed);
_xmlPass.removeEventListener(ParseXML.XML_PROGRESS, xml_progress);
_local2 = _xmlPass._xmlDoc;
_highScores = null;
_highScores = new Array();
_local3 = 1;
while (_local3 <= _local2.daily_scores.entry.length()) {
_local4 = _local2.daily_scores.entry[(_local3 - 1)];
_local5 = new Array();
_local5.push(_local3);
_local6 = 0;
while (_local6 <= 50) {
if (_local4.attributes()[_local6] != undefined){
_local5.push(_local4.attributes()[_local6]);
};
_local6++;
};
_highScores.push(_local5);
_local3++;
};
dispatchEvent(new Event(CommonHighScore.SCORES_LOADED));
}
public function xml_failed(_arg1:Event):void{
dispatchEvent(new Event(CommonHighScore.SCORES_FAILED));
}
public function showScores(_arg1):void{
_xmlPass.addEventListener(ParseXML.XML_LOADED, xml_display);
_xmlPass.addEventListener(ParseXML.XML_FAILED, xml_failed);
_xmlPass.addEventListener(ParseXML.XML_PROGRESS, xml_progress);
_xmlPass.parseURL(_arg1, true);
}
}
}//package console.highscore
Section 6
//Cache (console.loaders.Cache)
package console.loaders {
public class Cache {
public function returnAntiCacheURL(_arg1:String):String{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = ("rand=" + Math.ceil((Math.random() * 1000000)));
_local3 = "?";
_local4 = 0;
while (_local4 < _arg1.length) {
if (_arg1.charAt(_local4) == "?"){
_local3 = "&";
break;
};
_local4++;
};
_arg1 = (_arg1 + (_local3 + _local2));
return (_arg1);
}
}
}//package console.loaders
Section 7
//SendReceiveData (console.loaders.SendReceiveData)
package console.loaders {
import flash.events.*;
import flash.net.*;
public class SendReceiveData extends EventDispatcher {
public var _loader:URLLoader;
public var _errorMessage:String;
public static const DATA_LOADED:String = "Data Loaded";
public static const DATA_ERROR:String = "Data Error";
public function onError(_arg1:IOErrorEvent){
_errorMessage = _arg1.text;
dispatchEvent(new Event(SendReceiveData.DATA_ERROR));
}
public function sendData(_arg1:String, _arg2:URLVariables):void{
var _local3:URLRequest;
_local3 = new URLRequest(_arg1);
_local3.data = _arg2;
_local3.method = URLRequestMethod.POST;
_loader = new URLLoader();
_loader.addEventListener(Event.COMPLETE, onComplete);
_loader.addEventListener(IOErrorEvent.IO_ERROR, onError);
_loader.load(_local3);
}
public function onComplete(_arg1:Event){
dispatchEvent(new Event(SendReceiveData.DATA_LOADED));
}
}
}//package console.loaders
Section 8
//URLPreload (console.loaders.URLPreload)
package console.loaders {
import flash.events.*;
import flash.net.*;
public class URLPreload extends EventDispatcher {
public var _progressBytesTotal:uint;
public var _progress:uint;
private var _URL:String;
public var _progressBytesPerc:uint;
public var _urlLoader:URLLoader;// = null
public var _progressBytesLoaded:uint;
private var _retry:uint;// = 0
private var _antiCache:Boolean;
public static const LOAD_COMPLETE:String = "Complete";
public static const LOAD_PROGRESS:String = "Load Progress";
public static const LOAD_ERROR:String = "Error";
public function URLPreload(_arg1:String, _arg2:Boolean){
_retry = 0;
_urlLoader = null;
super();
_URL = _arg1;
_antiCache = _arg2;
setupPreload(_URL, _antiCache);
}
private function onProgress(_arg1:ProgressEvent):void{
_progressBytesLoaded = _arg1.target.bytesLoaded;
_progressBytesTotal = _arg1.target.bytesTotal;
_progressBytesPerc = ((_arg1.target.bytesLoaded / _arg1.target.bytesTotal) * 100);
dispatchEvent(new Event(URLPreload.LOAD_PROGRESS));
}
public function setupPreload(_arg1:String, _arg2:Boolean){
var _local3:URLRequest;
var _local4:*;
if (_arg2){
_local4 = new Cache();
_arg1 = _local4.returnAntiCacheURL(_arg1);
};
_local3 = new URLRequest(_arg1);
_local3.method = URLRequestMethod.POST;
_urlLoader = new URLLoader();
_urlLoader.load(_local3);
_urlLoader.addEventListener(Event.COMPLETE, onComplete);
_urlLoader.addEventListener(ProgressEvent.PROGRESS, onProgress);
_urlLoader.addEventListener(IOErrorEvent.IO_ERROR, onError);
}
private function onError(_arg1:IOErrorEvent):void{
if (_retry > 10){
dispatchEvent(new Event(URLPreload.LOAD_ERROR));
} else {
_retry++;
setupPreload(_URL, _antiCache);
};
}
private function onComplete(_arg1:Event):void{
dispatchEvent(new Event(URLPreload.LOAD_COMPLETE));
}
}
}//package console.loaders
Section 9
//ParseTOKEN (console.parsers.ParseTOKEN)
package console.parsers {
import flash.events.*;
import flash.net.*;
import com.adobe.crypto.*;
import console.loaders.*;
public class ParseTOKEN extends EventDispatcher {
public var _loadToken;
public var _loadedVars:URLVariables;
public var _token:String;
private var _MD5;
public static const TOKEN_GENERATED:String = "Token Generated";
public function ParseTOKEN(_arg1){
var _local2:URLVariables;
_MD5 = new MD5();
super();
_local2 = new URLVariables();
_local2.action = "token_generate";
_loadToken = new SendReceiveData();
_loadToken.sendData(_arg1, _local2);
_loadToken.addEventListener(SendReceiveData.DATA_LOADED, loadToken);
}
public function loadToken(_arg1:Event):void{
var _local2:URLLoader;
var _local3:String;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
_local2 = URLLoader(_arg1.target._loader);
_loadedVars = new URLVariables(_local2.data);
_token = _loadedVars.token;
_local3 = _token.substr(28, 8);
_local4 = MD5.hash(_local3);
_local5 = Math.ceil((Math.random() * 1000000));
_local6 = Math.ceil((Math.random() * 1000000));
_local7 = Math.ceil((Math.random() * 1000000));
_token = (((MD5.hash(_local5) + MD5.hash(_local6)) + _local4) + MD5.hash(_local7));
dispatchEvent(new Event(ParseTOKEN.TOKEN_GENERATED));
}
}
}//package console.parsers
Section 10
//ParseXML (console.parsers.ParseXML)
package console.parsers {
import flash.events.*;
import flash.net.*;
import console.loaders.*;
public class ParseXML extends EventDispatcher {
public var _progressBytesPerc:uint;// = 0
public var _progressBytesTotal:uint;// = 0
public var _xmlDoc:XML;
public var _tag:String;// = null
private var _urlLoader:URLLoader;
public var _progressBytesLoaded:uint;// = 0
public var _loaded:Boolean;// = false
public var _preloader:URLPreload;
public static const XML_FAILED:String = "XMLFailed";
public static const XML_PROGRESS:String = "XMLProgress";
public static const XML_LOADED:String = "XMLLoaded";
public function ParseXML(){
_tag = null;
_progressBytesLoaded = 0;
_progressBytesTotal = 0;
_progressBytesPerc = 0;
_loaded = false;
super();
}
public function checkProgress(_arg1:Event):void{
_progressBytesLoaded = _arg1.target._progressBytesLoaded;
_progressBytesTotal = _arg1.target._progressBytesTotal;
_progressBytesPerc = _arg1.target._progressBytesPerc;
dispatchEvent(new Event(ParseXML.XML_PROGRESS));
}
public function parseURL(_arg1:String, _arg2:Boolean):void{
_preloader = new URLPreload(_arg1, _arg2);
_preloader.addEventListener(URLPreload.LOAD_PROGRESS, checkProgress);
_preloader.addEventListener(URLPreload.LOAD_COMPLETE, completeLoad);
}
public function completeLoad(_arg1:Event):void{
_xmlDoc = new XML(_arg1.target._urlLoader.data);
dispatchEvent(new Event(ParseXML.XML_LOADED));
}
}
}//package console.parsers
Section 11
//MochiBot (console.trackers.MochiBot)
package console.trackers {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package console.trackers
Section 12
//formVERIFY (console.verification.formVERIFY)
package console.verification {
public class formVERIFY {
public function email(_arg1:String):Boolean{
var _local2:String;
var _local3:int;
var _local4:String;
var _local5:Boolean;
var _local6:Boolean;
var _local7:Boolean;
var _local8:uint;
var _local9:String;
_local2 = "@";
_local4 = ".";
_local5 = false;
_local6 = false;
_local7 = false;
_local8 = 0;
while (_local8 < _arg1.length) {
_local9 = new String();
_local9 = _arg1.substr(_local8, 1);
if (_local9 == _local2){
_local3 = _local8;
_local5 = true;
};
if ((((_local9 == _local4)) && (_local5))){
_local6 = true;
};
_local8++;
};
if (((_local5) && (_local6))){
_local7 = true;
} else {
_local7 = false;
};
return (_local7);
}
}
}//package console.verification
Section 13
//Bounce (gs.easing.Bounce)
package gs.easing {
public class Bounce {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg3 - easeOut((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < (_arg4 / 2)){
return (((easeIn((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
};
return ((((easeOut(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2));
}
}
}//package gs.easing
Section 14
//Circ (gs.easing.Circ)
package gs.easing {
public class Circ {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
}
}
}//package gs.easing
Section 15
//TweenEvent (gs.events.TweenEvent)
package gs.events {
import flash.events.*;
public class TweenEvent extends Event {
public var info:Object;
public static const UPDATE:String = "update";
public static const START:String = "start";
public static const version:Number = 0.9;
public static const COMPLETE:String = "complete";
public function TweenEvent(_arg1:String, _arg2:Object=null, _arg3:Boolean=false, _arg4:Boolean=false){
super(_arg1, _arg3, _arg4);
this.info = _arg2;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.info, this.bubbles, this.cancelable));
}
}
}//package gs.events
Section 16
//OverwriteManager (gs.OverwriteManager)
package gs {
import flash.utils.*;
import flash.errors.*;
public class OverwriteManager {
public static const ALL:int = 1;
public static const NONE:int = 0;
public static const AUTO:int = 2;
public static const CONCURRENT:int = 3;
public static const version:Number = 0.96;
public static var mode:int;
public static var enabled:Boolean;
public static function killVars(_arg1:Object, _arg2:Object, _arg3:Array, _arg4:Array, _arg5:Array):void{
var _local6:int;
var _local7:String;
_local6 = (_arg4.length - 1);
while (_local6 > -1) {
if (_arg1[_arg4[_local6].name] != undefined){
_arg4.splice(_local6, 1);
};
_local6--;
};
_local6 = (_arg3.length - 1);
while (_local6 > -1) {
if (_arg1[_arg3[_local6].name] != undefined){
_arg3.splice(_local6, 1);
};
_local6--;
};
_local6 = (_arg5.length - 1);
while (_local6 > -1) {
if (_arg1[_arg5[_local6].name] != undefined){
_arg5.splice(_local6, 1);
};
_local6--;
};
for (_local7 in _arg1) {
delete _arg2[_local7];
};
}
public static function manageOverwrites(_arg1:TweenLite, _arg2:Dictionary):void{
var _local3:Object;
var _local4:int;
var _local5:Object;
var _local6:Number;
var _local7:Array;
var _local8:int;
var _local9:Object;
var _local10:String;
_local3 = _arg1.vars;
_local4 = ((_local3.overwrite)==undefined) ? mode : int(_local3.overwrite);
if (_local4 < 2){
return;
};
_local6 = _arg1.startTime;
_local7 = [];
for each (_local5 in _arg2) {
if (((!((_local5 == _arg1))) && ((_local5.startTime <= _local6)))){
_local7[_local7.length] = _local5;
};
};
if (_local7.length == 0){
return;
};
if (_local4 == AUTO){
if (_local3.isTV == true){
_local3 = _local3.exposedProps;
};
_local9 = {};
for (_local10 in _local3) {
if ((((((((((((((((((((((((((((((((((((((_local10 == "ease")) || ((_local10 == "delay")))) || ((_local10 == "overwrite")))) || ((_local10 == "onComplete")))) || ((_local10 == "onCompleteParams")))) || ((_local10 == "runBackwards")))) || ((_local10 == "persist")))) || ((_local10 == "onUpdate")))) || ((_local10 == "onUpdateParams")))) || ((_local10 == "timeScale")))) || ((_local10 == "onStart")))) || ((_local10 == "onStartParams")))) || ((_local10 == "renderOnStart")))) || ((_local10 == "proxiedEase")))) || ((_local10 == "easeParams")))) || ((_local10 == "onCompleteAll")))) || ((_local10 == "onCompleteAllParams")))) || ((_local10 == "yoyo")))) || ((_local10 == "loop")))){
} else {
_local9[_local10] = 1;
};
};
_local8 = (_local7.length - 1);
while (_local8 > -1) {
_local7[_local8].killVars(_local9);
_local8--;
};
} else {
_local8 = (_local7.length - 1);
while (_local8 > -1) {
_arg2[_local7[_local8]] = null;
delete _arg2[_local7[_local8]];
_local8--;
};
};
}
public static function init(_arg1:int=2):int{
if (TweenLite.version < 8.14){
};
TweenLite.overwriteManager = OverwriteManager;
mode = _arg1;
enabled = true;
return (mode);
}
}
}//package gs
Section 17
//TweenFilterLite (gs.TweenFilterLite)
package gs {
import flash.filters.*;
public class TweenFilterLite extends TweenLite {
protected var _endMatrix:Array;
protected var _hf:Boolean;// = false
protected var _clrsa:Array;
protected var _filters:Array;
protected var _originalEase:Function;
protected var _matrix:Array;
protected var _cmf:ColorMatrixFilter;
public static var removeTween:Function = TweenLite.removeTween;
public static var defaultEase:Function = TweenLite.defaultEase;
private static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
private static var _lumB:Number = 0.072169;
public static var version:Number = 8.16;
public static var delayedCall:Function = TweenLite.delayedCall;
public static var killTweensOf:Function = TweenLite.killTweensOf;
private static var _lumG:Number = 0.71516;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _lumR:Number = 0.212671;
public function TweenFilterLite(_arg1:Object, _arg2:Number, _arg3:Object){
_hf = false;
_filters = [];
super(_arg1, _arg2, _arg3);
_originalEase = this.vars.ease;
if (TweenLite.version < 8.15){
};
if (_arg3.type != undefined){
};
}
override public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:Object;
var _local5:int;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:int;
var _local10:Array;
_local2 = (((_arg1 - this.startTime) / 1000) * _timeScale);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((_originalEase == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.vars.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.o[_local4.p] = (_local4.s + (_local3 * _local4.c));
_local5--;
};
if (_hf){
_local5 = (_clrsa.length - 1);
while (_local5 > -1) {
_local4 = _clrsa[_local5];
_local6 = (_local4.sr + (_local3 * _local4.cr));
_local7 = (_local4.sg + (_local3 * _local4.cg));
_local8 = (_local4.sb + (_local3 * _local4.cb));
_local4.f[_local4.p] = (((_local6 << 16) | (_local7 << 8)) | _local8);
_local5--;
};
if (_cmf != null){
ColorMatrixFilter(_cmf).matrix = _matrix;
};
_local10 = this.target.filters;
_local5 = 0;
while (_local5 < _filters.length) {
_local9 = (_local10.length - 1);
while (_local9 > -1) {
if ((_local10[_local9] is _filters[_local5].type)){
_local10.splice(_local9, 1, _filters[_local5].filter);
break;
};
_local9--;
};
_local5++;
};
this.target.filters = _local10;
};
if (_hst){
_local5 = (_subTweens.length - 1);
while (_local5 > -1) {
_subTweens[_local5].proxy(_subTweens[_local5]);
_local5--;
};
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
public function get timeScale():Number{
return (_timeScale);
}
public function set timeScale(_arg1:Number):void{
if (((_initted) && ((_curTime > (this.initTime + (this.delay * 1000)))))){
this.initTime = ((_curTime - (((_curTime - (this.initTime + (this.delay * 1000))) * _timeScale) * (1 / _arg1))) - (this.delay * 1000));
if (this.startTime != 99999999999){
this.startTime = (this.initTime + (this.delay * 1000));
};
};
_timeScale = _arg1;
}
override public function killVars(_arg1:Object):void{
if (TweenLite.overwriteManager.enabled){
TweenLite.overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, _filters);
};
}
override public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local3:int;
var _local4:Object;
var _local5:Object;
var _local6:Object;
if (((((!(_arg1)) && (!((this.delay == 0))))) && (TweenLite.overwriteManager.enabled))){
TweenLite.overwriteManager.manageOverwrites(this, _all[this.target]);
};
_clrsa = [];
_filters = [];
_matrix = _idMatrix.slice();
_arg2 = (_arg2 + " blurFilter glowFilter colorMatrixFilter dropShadowFilter bevelFilter ");
if (_isDisplayObject){
if (this.vars.blurFilter != null){
_local4 = this.vars.blurFilter;
addFilter("blurFilter", _local4, BlurFilter, ["blurX", "blurY", "quality"], new BlurFilter(0, 0, ((_local4.quality) || (2))));
};
if (this.vars.glowFilter != null){
_local4 = this.vars.glowFilter;
addFilter("glowFilter", _local4, GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength", "inner", "knockout"], new GlowFilter(0xFFFFFF, 0, 0, 0, ((_local4.strength) || (1)), ((_local4.quality) || (2)), _local4.inner, _local4.knockout));
};
if (this.vars.colorMatrixFilter != null){
_local4 = this.vars.colorMatrixFilter;
_local5 = addFilter("colorMatrixFilter", _local4, ColorMatrixFilter, [], new ColorMatrixFilter(_matrix));
_cmf = _local5.filter;
_matrix = ColorMatrixFilter(_cmf).matrix;
if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){
_endMatrix = _local4.matrix;
} else {
if (_local4.relative == true){
_endMatrix = _matrix.slice();
} else {
_endMatrix = _idMatrix.slice();
};
_endMatrix = setBrightness(_endMatrix, _local4.brightness);
_endMatrix = setContrast(_endMatrix, _local4.contrast);
_endMatrix = setHue(_endMatrix, _local4.hue);
_endMatrix = setSaturation(_endMatrix, _local4.saturation);
_endMatrix = setThreshold(_endMatrix, _local4.threshold);
if (!isNaN(_local4.colorize)){
_endMatrix = colorize(_endMatrix, _local4.colorize, _local4.amount);
} else {
if (!isNaN(_local4.color)){
_endMatrix = colorize(_endMatrix, _local4.color, _local4.amount);
};
};
};
_local3 = 0;
while (_local3 < _endMatrix.length) {
if (((!((_matrix[_local3] == _endMatrix[_local3]))) && (!((_matrix[_local3] == undefined))))){
this.tweens[this.tweens.length] = {o:_matrix, p:_local3.toString(), s:_matrix[_local3], c:(_endMatrix[_local3] - _matrix[_local3]), name:"colorMatrixFilter"};
};
_local3++;
};
};
if (this.vars.dropShadowFilter != null){
_local4 = this.vars.dropShadowFilter;
addFilter("dropShadowFilter", _local4, DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength", "inner", "knockout", "hideObject"], new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_local4.quality) || (2)), _local4.inner, _local4.knockout, _local4.hideObject));
};
if (this.vars.bevelFilter != null){
_local4 = this.vars.bevelFilter;
addFilter("bevelFilter", _local4, BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_local4.quality) || (2))));
};
if (this.vars.runBackwards == true){
_local3 = (_clrsa.length - 1);
while (_local3 > -1) {
_local6 = _clrsa[_local3];
_clrsa[_local3].sr = (_local6.sr + _local6.cr);
_local6.cr = (_local6.cr * -1);
_local6.sg = (_local6.sg + _local6.cg);
_local6.cg = (_local6.cg * -1);
_local6.sb = (_local6.sb + _local6.cb);
_local6.cb = (_local6.cb * -1);
_local6.f[_local6.p] = (((_local6.sr << 16) | (_local6.sg << 8)) | _local6.sb);
_local3--;
};
};
super.initTweenVals(true, _arg2);
} else {
super.initTweenVals(_arg1, _arg2);
};
}
private function addFilter(_arg1:String, _arg2:Object, _arg3:Class, _arg4:Array, _arg5:BitmapFilter):Object{
var _local6:Object;
var _local7:Array;
var _local8:int;
var _local9:String;
var _local10:Number;
var _local11:Object;
var _local12:Object;
_local6 = {type:_arg3, name:_arg1};
_local7 = this.target.filters;
_local8 = 0;
while (_local8 < _local7.length) {
if ((_local7[_local8] is _arg3)){
_local6.filter = _local7[_local8];
break;
};
_local8++;
};
if (_local6.filter == undefined){
_local6.filter = _arg5;
_local7[_local7.length] = _local6.filter;
this.target.filters = _local7;
};
_local8 = 0;
while (_local8 < _arg4.length) {
_local9 = _arg4[_local8];
if (_arg2[_local9] != undefined){
if ((((((_local9 == "color")) || ((_local9 == "highlightColor")))) || ((_local9 == "shadowColor")))){
_local11 = HEXtoRGB(_local6.filter[_local9]);
_local12 = HEXtoRGB(_arg2[_local9]);
_clrsa[_clrsa.length] = {f:_local6.filter, p:_local9, sr:_local11.rb, cr:(_local12.rb - _local11.rb), sg:_local11.gb, cg:(_local12.gb - _local11.gb), sb:_local11.bb, cb:(_local12.bb - _local11.bb)};
} else {
if ((((((((_local9 == "quality")) || ((_local9 == "inner")))) || ((_local9 == "knockout")))) || ((_local9 == "hideObject")))){
_local6.filter[_local9] = _arg2[_local9];
} else {
if (typeof(_arg2[_local9]) == "number"){
_local10 = (_arg2[_local9] - _local6.filter[_local9]);
} else {
_local10 = Number(_arg2[_local9]);
};
this.tweens[this.tweens.length] = {o:_local6.filter, p:_local9, s:_local6.filter[_local9], c:_local10, name:_arg1};
};
};
};
_local8++;
};
_filters[_filters.length] = _local6;
_hf = true;
return (_local6);
}
public static function setContrast(_arg1:Array, _arg2:Number):Array{
var _local3:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 + 0.01);
_local3 = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Array;
if (isNaN(_arg2)){
return (_arg1);
};
if (isNaN(_arg3)){
_arg3 = 1;
};
_local4 = (((_arg2 >> 16) & 0xFF) / 0xFF);
_local5 = (((_arg2 >> 8) & 0xFF) / 0xFF);
_local6 = ((_arg2 & 0xFF) / 0xFF);
_local7 = (1 - _arg3);
_local8 = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local8, _arg1));
}
public static function setBrightness(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = ((_arg2 * 100) - 100);
return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1));
}
public static function setSaturation(_arg1:Array, _arg2:Number):Array{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_local3 = (1 - _arg2);
_local4 = (_local3 * _lumR);
_local5 = (_local3 * _lumG);
_local6 = (_local3 * _lumB);
_local7 = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local7, _arg1));
}
public static function applyMatrix(_arg1:Array, _arg2:Array):Array{
var _local3:Array;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (_arg2);
};
_local3 = [];
_local4 = 0;
_local5 = 0;
_local6 = 0;
while (_local6 < 4) {
_local7 = 0;
while (_local7 < 5) {
if (_local7 == 4){
_local5 = _arg1[(_local4 + 4)];
} else {
_local5 = 0;
};
_local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5);
_local7++;
};
_local4 = (_local4 + 5);
_local6++;
};
return (_local3);
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{
_arg3.runBackwards = true;
return (new TweenFilterLite(_arg1, _arg2, _arg3));
}
public static function HEXtoRGB(_arg1:Number):Object{
return ({rb:(_arg1 >> 16), gb:((_arg1 >> 8) & 0xFF), bb:(_arg1 & 0xFF)});
}
public static function setThreshold(_arg1:Array, _arg2:Number):Array{
var _local3:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_local3 = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{
return (new TweenFilterLite(_arg1, _arg2, _arg3));
}
public static function setHue(_arg1:Array, _arg2:Number):Array{
var _local3:Number;
var _local4:Number;
var _local5:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 * (Math.PI / 180));
_local3 = Math.cos(_arg2);
_local4 = Math.sin(_arg2);
_local5 = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return (applyMatrix(_local5, _arg1));
}
}
}//package gs
Section 18
//TweenLite (gs.TweenLite)
package gs {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.geom.*;
public class TweenLite {
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _subTweens:Array;
protected var _initted:Boolean;
public var startTime:int;
public var target:Object;
public var duration:Number;
protected var _hst:Boolean;
protected var _isDisplayObject:Boolean;
protected var _active:Boolean;
public var vars:Object;
public var tweens:Array;
public var initTime:int;
protected var _timeScale:Number;
private static var _timer:Timer = new Timer(2000);
private static var _classInitted:Boolean;
public static var defaultEase:Function = TweenLite.easeOut;
public static var version:Number = 8.15;
protected static var _all:Dictionary = new Dictionary();
private static var _sprite:Sprite = new Sprite();
protected static var _curTime:uint;
public static var overwriteManager:Object;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _listening:Boolean;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:int;
var _local5:*;
super();
if (_arg1 == null){
return;
};
if (!_classInitted){
_curTime = getTimer();
_sprite.addEventListener(Event.ENTER_FRAME, executeAll);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
_classInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
_timeScale = ((_arg3.timeScale) || (1));
_active = (((_arg2 == 0)) && ((this.delay == 0)));
this.target = _arg1;
_isDisplayObject = (_arg1 is DisplayObject);
if (!(this.vars.ease is Function)){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
if (!isNaN(Number(this.vars.autoAlpha))){
this.vars.alpha = Number(this.vars.autoAlpha);
this.vars.visible = (this.vars.alpha > 0);
};
this.tweens = [];
_subTweens = [];
_hst = (_initted = false);
this.initTime = _curTime;
this.startTime = (this.initTime + (this.delay * 1000));
_local4 = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if ((((_all[_arg1] == undefined)) || (((!((_arg1 == null))) && ((_local4 == 1)))))){
delete _all[_arg1];
_all[_arg1] = new Dictionary(true);
} else {
if ((((_local4 > 1)) && ((this.delay == 0)))){
overwriteManager.manageOverwrites(this, _all[_arg1]);
};
};
_all[_arg1][this] = this;
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (_active))){
initTweenVals();
if (_active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
_local5 = this.vars.visible;
if (this.vars.isTV == true){
_local5 = this.vars.exposedProps.visible;
};
if (((((!((_local5 == null))) && ((this.vars.runBackwards == true)))) && (_isDisplayObject))){
this.target.visible = Boolean(_local5);
};
};
if (((!(_listening)) && (!(_active)))){
_timer.addEventListener("timer", killGarbage);
_timer.start();
_listening = true;
};
}
protected function addSubTween(_arg1:String, _arg2:Function, _arg3:Object, _arg4:Object, _arg5:Object=null):void{
var _local6:Object;
var _local7:String;
_local6 = {name:_arg1, proxy:_arg2, target:_arg3, info:_arg5};
_subTweens[_subTweens.length] = _local6;
for (_local7 in _arg4) {
if (typeof(_arg4[_local7]) == "number"){
this.tweens[this.tweens.length] = {o:_arg3, p:_local7, s:_arg3[_local7], c:(_arg4[_local7] - _arg3[_local7]), sub:_local6, name:_arg1};
} else {
this.tweens[this.tweens.length] = {o:_arg3, p:_local7, s:_arg3[_local7], c:Number(_arg4[_local7]), sub:_local6, name:_arg1};
};
};
_hst = true;
}
public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local3:String;
var _local4:int;
var _local5:Object;
var _local6:Array;
var _local7:ColorTransform;
var _local8:ColorTransform;
var _local9:Object;
_local5 = this.vars;
if (_local5.isTV == true){
_local5 = _local5.exposedProps;
};
if (((((!(_arg1)) && (!((this.delay == 0))))) && (overwriteManager.enabled))){
overwriteManager.manageOverwrites(this, _all[this.target]);
};
if ((this.target is Array)){
_local6 = ((this.vars.endArray) || ([]));
_local4 = 0;
while (_local4 < _local6.length) {
if (((!((this.target[_local4] == _local6[_local4]))) && (!((this.target[_local4] == undefined))))){
this.tweens[this.tweens.length] = {o:this.target, p:_local4.toString(), s:this.target[_local4], c:(_local6[_local4] - this.target[_local4]), name:_local4.toString()};
};
_local4++;
};
} else {
if (((((!((typeof(_local5.tint) == "undefined"))) || ((this.vars.removeTint == true)))) && (_isDisplayObject))){
_local7 = this.target.transform.colorTransform;
_local8 = new ColorTransform();
if (_local5.alpha != undefined){
_local8.alphaMultiplier = _local5.alpha;
delete _local5.alpha;
} else {
_local8.alphaMultiplier = this.target.alpha;
};
if (((!((this.vars.removeTint == true))) && (((((!((_local5.tint == null))) && (!((_local5.tint == ""))))) || ((_local5.tint == 0)))))){
_local8.color = _local5.tint;
};
addSubTween("tint", tintProxy, {progress:0}, {progress:1}, {target:this.target, color:_local7, endColor:_local8});
};
if (((!((_local5.frame == null))) && (_isDisplayObject))){
addSubTween("frame", frameProxy, {frame:this.target.currentFrame}, {frame:_local5.frame}, {target:this.target});
};
if (((!(isNaN(this.vars.volume))) && (this.target.hasOwnProperty("soundTransform")))){
addSubTween("volume", volumeProxy, this.target.soundTransform, {volume:this.vars.volume}, {target:this.target});
};
for (_local3 in _local5) {
if ((((((((((((((((((((((((((((((((((((((_local3 == "ease")) || ((_local3 == "delay")))) || ((_local3 == "overwrite")))) || ((_local3 == "onComplete")))) || ((_local3 == "onCompleteParams")))) || ((_local3 == "runBackwards")))) || ((_local3 == "visible")))) || ((_local3 == "autoOverwrite")))) || ((_local3 == "persist")))) || ((_local3 == "onUpdate")))) || ((_local3 == "onUpdateParams")))) || ((_local3 == "autoAlpha")))) || ((_local3 == "timeScale")))) || ((_local3 == "onStart")))) || ((_local3 == "onStartParams")))) || ((_local3 == "renderOnStart")))) || ((_local3 == "proxiedEase")))) || ((_local3 == "easeParams")))) || (((_arg1) && (!((_arg2.indexOf(((" " + _local3) + " ")) == -1))))))){
} else {
if (((!(((_isDisplayObject) && ((((((_local3 == "tint")) || ((_local3 == "removeTint")))) || ((_local3 == "frame"))))))) && (!((((_local3 == "volume")) && (this.target.hasOwnProperty("soundTransform"))))))){
if (typeof(_local5[_local3]) == "number"){
this.tweens[this.tweens.length] = {o:this.target, p:_local3, s:this.target[_local3], c:(_local5[_local3] - this.target[_local3]), name:_local3};
} else {
this.tweens[this.tweens.length] = {o:this.target, p:_local3, s:this.target[_local3], c:Number(_local5[_local3]), name:_local3};
};
};
};
};
};
if (this.vars.runBackwards == true){
_local4 = (this.tweens.length - 1);
while (_local4 > -1) {
_local9 = this.tweens[_local4];
this.tweens[_local4].s = (_local9.s + _local9.c);
_local9.c = (_local9.c * -1);
_local4--;
};
};
if ((((_local5.visible == true)) && (_isDisplayObject))){
this.target.visible = true;
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
_initted = true;
}
public function get active():Boolean{
if (_active){
return (true);
};
if (_curTime >= this.startTime){
_active = true;
if (!_initted){
initTweenVals();
} else {
if (((!((this.vars.visible == undefined))) && (_isDisplayObject))){
this.target.visible = true;
};
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
return (true);
//unresolved jump
};
return (false);
}
public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:Object;
var _local5:int;
_local2 = ((_arg1 - this.startTime) / 1000);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = 1;
} else {
_local3 = this.vars.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.o[_local4.p] = (_local4.s + (_local3 * _local4.c));
_local5--;
};
if (_hst){
_local5 = (_subTweens.length - 1);
while (_local5 > -1) {
_subTweens[_local5].proxy(_subTweens[_local5]);
_local5--;
};
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, []);
};
}
public function complete(_arg1:Boolean=false):void{
if (!_arg1){
if (!_initted){
initTweenVals();
};
this.startTime = (_curTime - ((this.duration * 1000) / _timeScale));
render(_curTime);
return;
};
if (((!((this.vars.visible == undefined))) && (_isDisplayObject))){
if (((!(isNaN(this.vars.autoAlpha))) && ((this.target.alpha == 0)))){
this.target.visible = false;
} else {
if (this.vars.runBackwards != true){
this.target.visible = this.vars.visible;
};
};
};
if (this.vars.persist != true){
removeTween(this);
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function frameProxy(_arg1:Object):void{
_arg1.info.target.gotoAndStop(Math.round(_arg1.target.frame));
}
public static function removeTween(_arg1:TweenLite=null):void{
if (((!((_arg1 == null))) && (!((_all[_arg1.target] == undefined))))){
_all[_arg1.target][_arg1] = null;
delete _all[_arg1.target][_arg1];
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Object;
var _local4:*;
if (((!((_arg1 == null))) && (!((_all[_arg1] == undefined))))){
if (_arg2){
_local3 = _all[_arg1];
for (_local4 in _local3) {
_local3[_local4].complete(false);
};
};
delete _all[_arg1];
};
}
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 from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function executeAll(_arg1:Event=null):void{
var _local2:uint;
var _local3:Dictionary;
var _local4:Object;
var _local5:Object;
_local2 = (_curTime = getTimer());
if (_listening){
_local3 = _all;
for each (_local4 in _local3) {
for (_local5 in _local4) {
if (((!((_local4[_local5] == undefined))) && (_local4[_local5].active))){
_local4[_local5].render(_local2);
};
};
};
};
}
public static function volumeProxy(_arg1:Object):void{
_arg1.info.target.soundTransform = _arg1.target;
}
public static function killGarbage(_arg1:TimerEvent):void{
var _local2:uint;
var _local3:Boolean;
var _local4:Object;
var _local5:Object;
var _local6:Object;
_local2 = 0;
for (_local4 in _all) {
_local3 = false;
for (_local5 in _all[_local4]) {
_local3 = true;
break;
};
if (!_local3){
delete _all[_local4];
} else {
_local2++;
};
};
if (_local2 == 0){
_timer.removeEventListener("timer", killGarbage);
_timer.stop();
_listening = false;
};
}
public static function tintProxy(_arg1:Object):void{
var _local2:Number;
var _local3:Number;
var _local4:Object;
var _local5:Object;
_local2 = _arg1.target.progress;
_local3 = (1 - _local2);
_local4 = _arg1.info.color;
_local5 = _arg1.info.endColor;
_arg1.info.target.transform.colorTransform = new ColorTransform(((_local4.redMultiplier * _local3) + (_local5.redMultiplier * _local2)), ((_local4.greenMultiplier * _local3) + (_local5.greenMultiplier * _local2)), ((_local4.blueMultiplier * _local3) + (_local5.blueMultiplier * _local2)), ((_local4.alphaMultiplier * _local3) + (_local5.alphaMultiplier * _local2)), ((_local4.redOffset * _local3) + (_local5.redOffset * _local2)), ((_local4.greenOffset * _local3) + (_local5.greenOffset * _local2)), ((_local4.blueOffset * _local3) + (_local5.blueOffset * _local2)), ((_local4.alphaOffset * _local3) + (_local5.alphaOffset * _local2)));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 19
//TweenMax (gs.TweenMax)
package gs {
import flash.events.*;
import flash.utils.*;
import gs.events.*;
public class TweenMax extends TweenFilterLite implements IEventDispatcher {
protected var _isProcessingComplete:Boolean;
protected var _dispatcher:EventDispatcher;
protected var _callbacks:Object;
protected var _pauseTime:int;
protected static const _RAD2DEG:Number = 57.2957795130823;
public static var removeTween:Function = TweenLite.removeTween;
private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init();
;
public static var defaultEase:Function = TweenLite.defaultEase;
public static var killTweensOf:Function = TweenLite.killTweensOf;
public static var version:Number = 2.19;
public static var killDelayedCallsTo:Function = TweenLite.killDelayedCallsTo;
public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){
super(_arg1, _arg2, _arg3);
_pauseTime = -1;
if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){
initDispatcher();
if ((((_arg2 == 0)) && ((this.delay == 0)))){
onUpdateDispatcher();
onCompleteDispatcher();
};
};
if ((((this.vars.yoyo == true)) || ((this.vars.loop == true)))){
this.vars.persist = true;
};
if (TweenFilterLite.version < 8.16){
};
}
override public function get active():Boolean{
if (_active){
return (true);
};
if (_pauseTime != -1){
return (false);
};
if (_curTime >= this.startTime){
_active = true;
if (!_initted){
initTweenVals();
} else {
if (((!((this.vars.visible == undefined))) && (_isDisplayObject))){
this.target.visible = true;
};
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
return (true);
//unresolved jump
};
return (false);
}
public function get paused():Boolean{
if (_pauseTime != -1){
return (true);
};
return (false);
}
public function resume():void{
var _local1:Boolean;
var _local2:Number;
if (_pauseTime != -1){
_local1 = (_pauseTime > (this.initTime + (this.delay * 1000)));
_local2 = (_curTime - _pauseTime);
this.initTime = (this.initTime + _local2);
this.startTime = (this.initTime + (this.delay * 1000));
_pauseTime = -1;
if (((!(_local1)) && ((_curTime >= this.startTime)))){
_local1 = this.active;
} else {
_active = _local1;
};
};
}
protected function adjustStartValues():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Object;
var _local5:int;
_local1 = this.progress;
if (_local1 != 0){
_local2 = (1 / (1 - this.vars.ease((_local1 * this.duration), 0, 1, this.duration)));
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local3 = (_local4.s + _local4.c);
_local4.c = ((_local3 - _local4.o[_local4.p]) * _local2);
_local4.s = (_local3 - _local4.c);
_local5--;
};
};
}
override public function complete(_arg1:Boolean=false):void{
if (!_isProcessingComplete){
_isProcessingComplete = true;
if ((((this.vars.yoyo == true)) || ((this.vars.loop == true)))){
if (this.vars.yoyo == true){
reverse(false);
};
this.startTime = _curTime;
this.initTime = (this.startTime - (this.delay * 1000));
render(_curTime);
} else {
if (this.vars.persist == true){
pause();
};
};
super.complete(_arg1);
_isProcessingComplete = false;
};
}
public function invalidate(_arg1:Boolean=true):void{
var _local2:Number;
if (_initted){
_local2 = this.progress;
if (((!(_arg1)) && (!((_local2 == 0))))){
this.progress = 0;
};
this.tweens = [];
_subTweens = [];
initTweenVals();
if (_local2 != 0){
if (_arg1){
adjustStartValues();
} else {
this.progress = _local2;
};
};
};
}
public function willTrigger(_arg1:String):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.willTrigger(_arg1));
}
public function get progress():Number{
var _local1:Number;
_local1 = (((((((_curTime - this.initTime) / 1000) - this.delay) / this.duration) * _timeScale)) || (0));
if (_local1 > 1){
return (1);
};
return (_local1);
}
public function dispatchEvent(_arg1:Event):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.dispatchEvent(_arg1));
}
override public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local3:String;
var _local4:int;
var _local5:Object;
var _local6:Object;
var _local7:Array;
var _local8:Function;
_arg2 = (_arg2 + " hexColors bezier bezierThrough orientToBezier quaternions onCompleteAll onCompleteAllParams yoyo loop onCompleteListener onUpdateListener onStartListener ");
if (((((!(_arg1)) && (!((this.delay == 0))))) && (TweenLite.overwriteManager.enabled))){
TweenLite.overwriteManager.manageOverwrites(this, _all[this.target]);
};
_local8 = bezierProxy;
if (this.vars.orientToBezier == true){
this.vars.orientToBezier = [["x", "y", "rotation", 0]];
_local8 = bezierProxy2;
} else {
if ((this.vars.orientToBezier is Array)){
_local8 = bezierProxy2;
};
};
if (((!((this.vars.bezier == undefined))) && ((this.vars.bezier is Array)))){
_local6 = {};
_local7 = this.vars.bezier;
_local4 = 0;
while (_local4 < _local7.length) {
for (_local3 in _local7[_local4]) {
if (_local6[_local3] == undefined){
_local6[_local3] = [this.target[_local3]];
};
if (typeof(_local7[_local4][_local3]) == "number"){
_local6[_local3].push(_local7[_local4][_local3]);
} else {
_local6[_local3].push((this.target[_local3] + Number(_local7[_local4][_local3])));
};
};
_local4++;
};
for (_local3 in _local6) {
if (typeof(this.vars[_local3]) == "number"){
_local6[_local3].push(this.vars[_local3]);
} else {
_local6[_local3].push((this.target[_local3] + Number(this.vars[_local3])));
};
delete this.vars[_local3];
};
addSubTween("bezier", _local8, {t:0}, {t:1}, {props:parseBeziers(_local6, false), target:this.target, orientToBezier:this.vars.orientToBezier});
};
if (((!((this.vars.bezierThrough == undefined))) && ((this.vars.bezierThrough is Array)))){
_local6 = {};
_local7 = this.vars.bezierThrough;
_local4 = 0;
while (_local4 < _local7.length) {
for (_local3 in _local7[_local4]) {
if (_local6[_local3] == undefined){
_local6[_local3] = [this.target[_local3]];
};
if (typeof(_local7[_local4][_local3]) == "number"){
_local6[_local3].push(_local7[_local4][_local3]);
} else {
_local6[_local3].push((this.target[_local3] + Number(_local7[_local4][_local3])));
};
};
_local4++;
};
for (_local3 in _local6) {
if (typeof(this.vars[_local3]) == "number"){
_local6[_local3].push(this.vars[_local3]);
} else {
_local6[_local3].push((this.target[_local3] + Number(this.vars[_local3])));
};
delete this.vars[_local3];
};
addSubTween("bezierThrough", _local8, {t:0}, {t:1}, {props:parseBeziers(_local6, true), target:this.target, orientToBezier:this.vars.orientToBezier});
};
if (((!((this.vars.hexColors == undefined))) && ((typeof(this.vars.hexColors) == "object")))){
for (_local3 in this.vars.hexColors) {
addSubTween("hexColors", hexColorsProxy, {r:(this.target[_local3] >> 16), g:((this.target[_local3] >> 8) & 0xFF), b:(this.target[_local3] & 0xFF)}, {r:(this.vars.hexColors[_local3] >> 16), g:((this.vars.hexColors[_local3] >> 8) & 0xFF), b:(this.vars.hexColors[_local3] & 0xFF)}, {prop:_local3, target:this.target});
};
};
super.initTweenVals(true, _arg2);
}
protected function onStartDispatcher(... _args):void{
if (_callbacks.onStart != null){
_callbacks.onStart.apply(null, this.vars.onStartParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START));
}
public function setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{
var _local4:Number;
var _local5:Object;
var _local6:int;
var _local7:Object;
var _local8:Array;
var _local9:Array;
_local4 = this.progress;
if (((!((this.vars[_arg1] == undefined))) && (_initted))){
if (((!(_arg3)) && (!((_local4 == 0))))){
_local6 = (this.tweens.length - 1);
while (_local6 > -1) {
if (this.tweens[_local6].name == _arg1){
this.tweens[_local6].o[this.tweens[_local6].p] = this.tweens[_local6].s;
};
_local6--;
};
};
_local5 = {};
_local5[_arg1] = 1;
killVars(_local5);
};
this.vars[_arg1] = _arg2;
if (_initted){
_local7 = this.vars;
_local8 = this.tweens;
_local9 = _subTweens;
this.vars = {};
this.tweens = [];
_subTweens = [];
this.vars[_arg1] = _arg2;
initTweenVals();
if (((_arg3) && (!((_local4 == 0))))){
this.vars.ease = _local7.ease;
adjustStartValues();
};
this.vars = _local7;
this.tweens = _local8.concat(this.tweens);
_subTweens = _local9.concat(_subTweens);
};
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (_dispatcher == null){
initDispatcher();
};
_dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function restart():void{
this.progress = 0;
resume();
}
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};
_local1 = {};
for (_local2 in this.vars) {
_local1[_local2] = this.vars[_local2];
};
this.vars = _local1;
this.vars.onStart = onStartDispatcher;
this.vars.onUpdate = onUpdateDispatcher;
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);
};
if ((this.vars.onCompleteListener is Function)){
_dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true);
};
};
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (_dispatcher != null){
_dispatcher.removeEventListener(_arg1, _arg2, _arg3);
};
}
public function killProperties(_arg1:Array):void{
var _local2:Object;
var _local3:int;
_local2 = {};
_local3 = (_arg1.length - 1);
while (_local3 > -1) {
if (this.vars[_arg1[_local3]] != null){
_local2[_arg1[_local3]] = 1;
};
_local3--;
};
killVars(_local2);
}
public function set progress(_arg1:Number):void{
var _local2:Number;
var _local3:Boolean;
var _local4:*;
_local2 = (_curTime - ((this.duration * _arg1) * 1000));
this.initTime = (_local2 - (this.delay * 1000));
this.startTime = _local2;
_local3 = this.active;
render(_curTime);
if (_pauseTime != -1){
this.startTime = 99999999999;
};
_local4 = this.vars.visible;
if (this.vars.isTV == true){
_local4 = this.vars.exposedProps.visible;
};
if (((((!((_local4 == null))) && (_isDisplayObject))) && ((_arg1 < 1)))){
this.target.visible = Boolean(_local4);
};
}
public function reverse(_arg1:Boolean=true):void{
this.vars.ease = ((this.vars.ease)==_originalEase) ? reverseEase : _originalEase;
if (((_arg1) && ((_curTime > (this.initTime + (this.delay * 1000)))))){
this.initTime = ((_curTime - ((((1 - this.progress) * this.duration) * 1000) / _timeScale)) - (this.delay * 1000));
if (_pauseTime == -1){
this.startTime = (this.initTime + (this.delay * 1000));
};
};
resume();
}
public function set paused(_arg1:Boolean):void{
if (_arg1){
this.pause();
} else {
this.resume();
};
}
protected function onUpdateDispatcher(... _args):void{
if (_callbacks.onUpdate != null){
_callbacks.onUpdate.apply(null, this.vars.onUpdateParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE));
}
public function hasEventListener(_arg1:String):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.hasEventListener(_arg1));
}
public function pause():void{
if (_pauseTime == -1){
_pauseTime = _curTime;
this.startTime = 99999999999;
_active = false;
};
}
public function reverseEase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (_originalEase((_arg4 - _arg1), _arg2, _arg3, _arg4));
}
protected function onCompleteDispatcher(... _args):void{
if (_callbacks.onComplete != null){
_callbacks.onComplete.apply(null, this.vars.onCompleteParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE));
}
public static function sequence(_arg1:Object, _arg2:Array):Array{
var _local3:uint;
_local3 = 0;
while (_local3 < _arg2.length) {
_arg2[_local3].target = _arg1;
_local3++;
};
return (multiSequence(_arg2));
}
public static function hexColorsProxy(_arg1:Object):void{
_arg1.info.target[_arg1.info.prop] = uint((((_arg1.target.r << 16) | (_arg1.target.g << 8)) | _arg1.target.b));
}
public static function parseBeziers(_arg1:Object, _arg2:Boolean=false):Object{
var _local3:int;
var _local4:Array;
var _local5:Object;
var _local6:String;
var _local7:Object;
_local7 = {};
if (_arg2){
for (_local6 in _arg1) {
_local4 = _arg1[_local6];
_local5 = [];
_local7[_local6] = _local5;
if (_local4.length > 2){
_local5[_local5.length] = {s:_local4[0], cp:(_local4[1] - ((_local4[2] - _local4[0]) / 4)), e:_local4[1]};
_local3 = 1;
while (_local3 < (_local4.length - 1)) {
_local5[_local5.length] = {s:_local4[_local3], cp:(_local4[_local3] + (_local4[_local3] - _local5[(_local3 - 1)].cp)), e:_local4[(_local3 + 1)]};
_local3++;
};
} else {
_local5[_local5.length] = {s:_local4[0], cp:((_local4[0] + _local4[1]) / 2), e:_local4[1]};
};
};
} else {
for (_local6 in _arg1) {
_local4 = _arg1[_local6];
_local5 = [];
_local7[_local6] = _local5;
if (_local4.length > 3){
_local5[_local5.length] = {s:_local4[0], cp:_local4[1], e:((_local4[1] + _local4[2]) / 2)};
_local3 = 2;
while (_local3 < (_local4.length - 2)) {
_local5.push({s:_local5[(_local3 - 2)].e, cp:_local4[_local3], e:((_local4[_local3] + _local4[(_local3 + 1)]) / 2)});
_local3++;
};
_local5[_local5.length] = {s:_local5[(_local5.length - 1)].e, cp:_local4[(_local4.length - 2)], e:_local4[(_local4.length - 1)]};
} else {
if (_local4.length == 3){
_local5[_local5.length] = {s:_local4[0], cp:_local4[1], e:_local4[2]};
} else {
if (_local4.length == 2){
_local5[_local5.length] = {s:_local4[0], cp:((_local4[0] + _local4[1]) / 2), e:_local4[1]};
};
};
};
};
};
return (_local7);
}
public static function bezierProxy2(_arg1:Object):void{
var _local2:Object;
var _local3:Object;
var _local4:Array;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Array;
var _local9:Number;
var _local10:uint;
bezierProxy(_arg1);
_local2 = {};
_local3 = _arg1.info.target;
_arg1.info.target = _local2;
_arg1.target.t = (_arg1.target.t + 0.01);
bezierProxy(_arg1);
_local4 = _arg1.info.orientToBezier;
_local10 = 0;
while (_local10 < _local4.length) {
_local8 = _local4[_local10];
_local9 = ((_local8[3]) || (0));
_local6 = (_local2[_local8[0]] - _local3[_local8[0]]);
_local7 = (_local2[_local8[1]] - _local3[_local8[1]]);
_local3[_local8[2]] = ((Math.atan2(_local7, _local6) * _RAD2DEG) + _local9);
_local10++;
};
_arg1.info.target = _local3;
_arg1.target.t = (_arg1.target.t - 0.01);
}
public static function pauseAll(_arg1:Boolean=true, _arg2:Boolean=false):void{
changePause(true, _arg1, _arg2);
}
public static function getTweensOf(_arg1:Object):Array{
var _local2:Dictionary;
var _local3:Array;
var _local4:Object;
_local2 = _all[_arg1];
_local3 = [];
if (_local2 != null){
for (_local4 in _local2) {
if (_local2[_local4].tweens != undefined){
_local3[_local3.length] = _local2[_local4];
};
};
};
return (_local3);
}
public static function multiSequence(_arg1:Array):Array{
var _local2:Dictionary;
var _local3:Array;
var _local4:int;
var _local5:Number;
var _local6:Object;
var _local7:Object;
var _local8:Number;
var _local9:Number;
var _local10:uint;
var _local11:Object;
var _local12:String;
_local2 = new Dictionary();
_local3 = [];
_local4 = TweenLite.overwriteManager.mode;
_local5 = 0;
_local10 = 0;
while (_local10 < _arg1.length) {
_local6 = _arg1[_local10];
_local9 = ((_local6.time) || (0));
_local11 = {};
for (_local12 in _local6) {
_local11[_local12] = _local6[_local12];
};
delete _local11.time;
_local8 = ((_local11.delay) || (0));
_local11.delay = (_local5 + _local8);
_local7 = _local11.target;
delete _local11.target;
if (_local4 == 1){
if (_local2[_local7] == undefined){
_local2[_local7] = _local11;
} else {
_local11.overwrite = 2;
};
};
_local3[_local3.length] = new TweenMax(_local7, _local9, _local11);
_local5 = (_local5 + (_local9 + _local8));
_local10++;
};
return (_local3);
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenMax{
return (new TweenMax(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:Array;
var _local3:int;
_local2 = getTweensOf(_arg1);
_local3 = (_local2.length - 1);
while (_local3 > -1) {
if (_local2[_local3].active){
return (true);
};
_local3--;
};
return (false);
}
public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true, _arg3:Boolean=true):void{
var _local4:Array;
var _local5:int;
_local4 = getAllTweens();
_local5 = (_local4.length - 1);
while (_local5 > -1) {
if (((((_local4[_local5].target is Function) == _arg3)) || (!(((_local4[_local5].target is Function) == _arg2))))){
if (_arg1){
_local4[_local5].complete();
} else {
TweenLite.removeTween(_local4[_local5]);
};
};
_local5--;
};
}
public static function changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false):void{
var _local4:Array;
var _local5:int;
_local4 = getAllTweens();
_local5 = (_local4.length - 1);
while (_local5 > -1) {
if ((((_local4[_local5] is TweenMax)) && (((((_local4[_local5].target is Function) == _arg3)) || (!(((_local4[_local5].target is Function) == _arg2))))))){
_local4[_local5].paused = _arg1;
};
_local5--;
};
}
public static function bezierProxy(_arg1:Object):void{
var _local2:Number;
var _local3:Object;
var _local4:Object;
var _local5:int;
var _local6:String;
var _local7:Object;
var _local8:Number;
var _local9:uint;
_local2 = _arg1.target.t;
_local3 = _arg1.info.props;
_local4 = _arg1.info.target;
if (_local2 == 1){
for (_local6 in _local3) {
_local5 = (_local3[_local6].length - 1);
_local4[_local6] = _local3[_local6][_local5].e;
};
} else {
for (_local6 in _local3) {
_local9 = _local3[_local6].length;
if (_local2 < 0){
_local5 = 0;
} else {
if (_local2 >= 1){
_local5 = (_local9 - 1);
} else {
_local5 = int((_local9 * _local2));
};
};
_local8 = ((_local2 - (_local5 * (1 / _local9))) * _local9);
_local7 = _local3[_local6][_local5];
_local4[_local6] = (_local7.s + (_local8 * (((2 * (1 - _local8)) * (_local7.cp - _local7.s)) + (_local8 * (_local7.e - _local7.s)))));
};
};
}
public static function callbackProxy(_arg1:Array, _arg2:Array=null):void{
var _local3:uint;
_local3 = 0;
while (_local3 < _arg1.length) {
if (_arg1[_local3] != undefined){
_arg1[_local3].apply(null, _arg2[_local3]);
};
_local3++;
};
}
public static function allFrom(_arg1:Array, _arg2:Number, _arg3:Object):Array{
_arg3.runBackwards = true;
return (allTo(_arg1, _arg2, _arg3));
}
public static function killAllDelayedCalls(_arg1:Boolean=false):void{
killAll(_arg1, false, true);
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
_arg3.runBackwards = true;
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function killAllTweens(_arg1:Boolean=false):void{
killAll(_arg1, true, false);
}
public static function getAllTweens():Array{
var _local1:Dictionary;
var _local2:Array;
var _local3:Object;
var _local4:Object;
_local1 = _all;
_local2 = [];
for (_local3 in _local1) {
for (_local4 in _local1[_local3]) {
if (_local1[_local3][_local4] != undefined){
_local2[_local2.length] = _local1[_local3][_local4];
};
};
};
return (_local2);
}
public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=false):void{
changePause(false, _arg1, _arg2);
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function allTo(_arg1:Array, _arg2:Number, _arg3:Object):Array{
var _local4:int;
var _local5:Object;
var _local6:String;
var _local7:Number;
var _local8:Object;
var _local9:Array;
var _local10:Number;
if (_arg1.length == 0){
return ([]);
};
_local9 = [];
_local10 = ((_arg3.delayIncrement) || (0));
delete _arg3.delayIncrement;
if (_arg3.onCompleteAll == undefined){
_local8 = _arg3;
} else {
_local8 = {};
for (_local6 in _arg3) {
_local8[_local6] = _arg3[_local6];
};
_local8.onCompleteParams = [[_arg3.onComplete, _arg3.onCompleteAll], [_arg3.onCompleteParams, _arg3.onCompleteAllParams]];
_local8.onComplete = TweenMax.callbackProxy;
delete _arg3.onCompleteAll;
};
delete _arg3.onCompleteAllParams;
if (_local10 == 0){
_local4 = 0;
while (_local4 < (_arg1.length - 1)) {
_local5 = {};
for (_local6 in _arg3) {
_local5[_local6] = _arg3[_local6];
};
_local9[_local9.length] = new TweenMax(_arg1[_local4], _arg2, _local5);
_local4++;
};
} else {
_local7 = ((_arg3.delay) || (0));
_local4 = 0;
while (_local4 < (_arg1.length - 1)) {
_local5 = {};
for (_local6 in _arg3) {
_local5[_local6] = _arg3[_local6];
};
_local5.delay = (_local7 + (_local4 * _local10));
_local9[_local9.length] = new TweenMax(_arg1[_local4], _arg2, _local5);
_local4++;
};
_local8.delay = (_local7 + ((_arg1.length - 1) * _local10));
};
_local9[_local9.length] = new TweenMax(_arg1[(_arg1.length - 1)], _arg2, _local8);
if ((_arg3.onCompleteAllListener is Function)){
_local9[(_local9.length - 1)].addEventListener(TweenEvent.COMPLETE, _arg3.onCompleteAllListener);
};
return (_local9);
}
}
}//package gs
Section 20
//URLUtil (koko.URLUtil)
package koko {
import flash.net.*;
import flash.external.*;
public class URLUtil {
protected static const WINDOW_OPEN_FUNCTION:String = "window.open";
public static function openWindow(_arg1:String, _arg2:String="_blank", _arg3:String=""):void{
var WINDOW_OPEN_FUNCTION:String;
var url = _arg1;
var window = _arg2;
var features = _arg3;
WINDOW_OPEN_FUNCTION = "window.open";
if (ExternalInterface.available){
try {
ExternalInterface.call(WINDOW_OPEN_FUNCTION, url, window, features);
} catch(e:Error) {
navigateToURL(new URLRequest(url), window);
};
} else {
navigateToURL(new URLRequest(url), window);
};
}
}
}//package koko
Section 21
//bonus_line_215 (Monster_fla.bonus_line_215)
package Monster_fla {
import flash.display.*;
public dynamic class bonus_line_215 extends MovieClip {
public function bonus_line_215(){
addFrameScript(89, frame90);
}
function frame90(){
gotoAndStop(1);
}
}
}//package Monster_fla
Section 22
//btn_high_134 (Monster_fla.btn_high_134)
package Monster_fla {
import flash.display.*;
public dynamic class btn_high_134 extends MovieClip {
public var shine2:MovieClip;
public var shine:MovieClip;
public var score_main1:MovieClip;
public function btn_high_134(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
shine.gotoAndPlay(1);
}
function frame1(){
stop();
}
function frame20(){
shine2.gotoAndPlay(1);
}
}
}//package Monster_fla
Section 23
//btn_how_112 (Monster_fla.btn_how_112)
package Monster_fla {
import flash.display.*;
public dynamic class btn_how_112 extends MovieClip {
public var shine2:MovieClip;
public var shine:MovieClip;
public var main_how:MovieClip;
public var how_main1:MovieClip;
public function btn_how_112(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
shine.gotoAndPlay(1);
}
function frame1(){
stop();
}
function frame20(){
shine2.gotoAndPlay(1);
}
}
}//package Monster_fla
Section 24
//btn_koko_210 (Monster_fla.btn_koko_210)
package Monster_fla {
import flash.display.*;
public dynamic class btn_koko_210 extends MovieClip {
public function btn_koko_210(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Monster_fla
Section 25
//btn_monst_2_205 (Monster_fla.btn_monst_2_205)
package Monster_fla {
import flash.display.*;
public dynamic class btn_monst_2_205 extends MovieClip {
public var shine2:MovieClip;
public var shineB:MovieClip;
public var shine:MovieClip;
public var shine2B:MovieClip;
public var monster_score2:MovieClip;
public function btn_monst_2_205(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
shine.gotoAndPlay(1);
shineB.gotoAndPlay(1);
}
function frame1(){
stop();
}
function frame20(){
shine2.gotoAndPlay(1);
shine2B.gotoAndPlay(1);
}
}
}//package Monster_fla
Section 26
//btn_monst_201 (Monster_fla.btn_monst_201)
package Monster_fla {
import flash.display.*;
public dynamic class btn_monst_201 extends MovieClip {
public var shine2:MovieClip;
public var shineB:MovieClip;
public var shine:MovieClip;
public var shine2B:MovieClip;
public var monster_score3:MovieClip;
public function btn_monst_201(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
shine.gotoAndPlay(1);
shineB.gotoAndPlay(1);
}
function frame1(){
stop();
}
function frame20(){
shine2.gotoAndPlay(1);
shine2B.gotoAndPlay(1);
}
}
}//package Monster_fla
Section 27
//btn_monster_mc_164 (Monster_fla.btn_monster_mc_164)
package Monster_fla {
import flash.display.*;
public dynamic class btn_monster_mc_164 extends MovieClip {
public var monster_score1:MovieClip;
public var shine2:MovieClip;
public var shine:MovieClip;
public function btn_monster_mc_164(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
shine.gotoAndPlay(1);
}
function frame1(){
stop();
}
function frame20(){
shine2.gotoAndPlay(1);
}
}
}//package Monster_fla
Section 28
//btn_play_120 (Monster_fla.btn_play_120)
package Monster_fla {
import flash.display.*;
public dynamic class btn_play_120 extends MovieClip {
public var shine2:MovieClip;
public var shine:MovieClip;
public var play_main1:MovieClip;
public function btn_play_120(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
shine.gotoAndPlay(1);
}
function frame1(){
stop();
}
function frame20(){
shine2.gotoAndPlay(1);
}
}
}//package Monster_fla
Section 29
//btn_play2_146 (Monster_fla.btn_play2_146)
package Monster_fla {
import flash.display.*;
public dynamic class btn_play2_146 extends MovieClip {
public var how_play:MovieClip;
public function btn_play2_146(){
addFrameScript(0, frame1, 24, frame25);
}
function frame1(){
stop();
}
function frame25(){
stop();
}
}
}//package Monster_fla
Section 30
//btn_return_162 (Monster_fla.btn_return_162)
package Monster_fla {
import flash.display.*;
public dynamic class btn_return_162 extends MovieClip {
public var shine2:MovieClip;
public var shine:MovieClip;
public var return_score1:MovieClip;
public function btn_return_162(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
shine.gotoAndPlay(1);
}
function frame1(){
stop();
}
function frame20(){
shine2.gotoAndPlay(1);
}
}
}//package Monster_fla
Section 31
//btn_send_136 (Monster_fla.btn_send_136)
package Monster_fla {
import flash.display.*;
public dynamic class btn_send_136 extends MovieClip {
public var shine2:MovieClip;
public var send_main1:MovieClip;
public var shine:MovieClip;
public function btn_send_136(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
shine.gotoAndPlay(1);
}
function frame1(){
stop();
}
function frame20(){
shine2.gotoAndPlay(1);
}
}
}//package Monster_fla
Section 32
//btn_submit_score_197 (Monster_fla.btn_submit_score_197)
package Monster_fla {
import flash.display.*;
public dynamic class btn_submit_score_197 extends MovieClip {
public var shine2:MovieClip;
public var shineB:MovieClip;
public var shine:MovieClip;
public var shineB2:MovieClip;
public var submit_score1:MovieClip;
public function btn_submit_score_197(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
shineB.gotoAndPlay(1);
shine.gotoAndPlay(1);
}
function frame1(){
stop();
}
function frame20(){
shineB2.gotoAndPlay(1);
shine2.gotoAndPlay(1);
}
}
}//package Monster_fla
Section 33
//btn_visit_128 (Monster_fla.btn_visit_128)
package Monster_fla {
import flash.display.*;
public dynamic class btn_visit_128 extends MovieClip {
public var shine2:MovieClip;
public var shine:MovieClip;
public var visit_main1:MovieClip;
public function btn_visit_128(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
shine.gotoAndPlay(1);
}
function frame1(){
stop();
}
function frame20(){
shine2.gotoAndPlay(1);
}
}
}//package Monster_fla
Section 34
//congrats_mc_195 (Monster_fla.congrats_mc_195)
package Monster_fla {
import flash.display.*;
import flash.text.*;
public dynamic class congrats_mc_195 extends MovieClip {
public var cta:MovieClip;
public var final_bonus:TextField;
public var end_score:TextField;
public var congrats_submit:MovieClip;
public var congrats_return:MovieClip;
public var submit_name:TextField;
public var final_score:TextField;
public var error_score_1:MovieClip;
public var error_score_0:MovieClip;
public var email:TextField;
public function congrats_mc_195(){
addFrameScript(0, frame1);
}
function frame1(){
email.tabIndex = 506;
submit_name.tabIndex = 506;
}
}
}//package Monster_fla
Section 35
//cta_Buttons_mc_200 (Monster_fla.cta_Buttons_mc_200)
package Monster_fla {
import flash.display.*;
public dynamic class cta_Buttons_mc_200 extends MovieClip {
public var congrats_monster:MovieClip;
public function cta_Buttons_mc_200(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Monster_fla
Section 36
//desk_mc_208 (Monster_fla.desk_mc_208)
package Monster_fla {
import flash.display.*;
public dynamic class desk_mc_208 extends MovieClip {
public function desk_mc_208(){
addFrameScript(0, frame1, 45, frame46);
}
function frame1(){
stop();
}
function frame46(){
stop();
}
}
}//package Monster_fla
Section 37
//error_mc_161 (Monster_fla.error_mc_161)
package Monster_fla {
import flash.display.*;
public dynamic class error_mc_161 extends MovieClip {
public function error_mc_161(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Monster_fla
Section 38
//error_mc2_207 (Monster_fla.error_mc2_207)
package Monster_fla {
import flash.display.*;
public dynamic class error_mc2_207 extends MovieClip {
public function error_mc2_207(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Monster_fla
Section 39
//Koko_cont_209 (Monster_fla.Koko_cont_209)
package Monster_fla {
import flash.display.*;
public dynamic class Koko_cont_209 extends MovieClip {
public var main_koko:MovieClip;
public function Koko_cont_209(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
}
}
}//package Monster_fla
Section 40
//kokoIntro_29 (Monster_fla.kokoIntro_29)
package Monster_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class kokoIntro_29 extends MovieClip {
public var koko_btn:SimpleButton;
public function kokoIntro_29(){
addFrameScript(60, frame61, 86, frame87);
}
function frame87(){
stop();
MovieClip(parent).gotoAndStop("Main");
}
public function kokoDigital(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.kokodigital.co.uk"), "_blank");
}
function frame61(){
koko_btn.addEventListener(MouseEvent.MOUSE_UP, kokoDigital);
}
}
}//package Monster_fla
Section 41
//KokoLeaf_28 (Monster_fla.KokoLeaf_28)
package Monster_fla {
import flash.display.*;
public dynamic class KokoLeaf_28 extends MovieClip {
public function KokoLeaf_28(){
addFrameScript(77, frame78);
}
function frame78(){
stop();
}
}
}//package Monster_fla
Section 42
//KokoLeafUp_30 (Monster_fla.KokoLeafUp_30)
package Monster_fla {
import flash.display.*;
public dynamic class KokoLeafUp_30 extends MovieClip {
public function KokoLeafUp_30(){
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package Monster_fla
Section 43
//Loading_word_mc_4 (Monster_fla.Loading_word_mc_4)
package Monster_fla {
import flash.display.*;
public dynamic class Loading_word_mc_4 extends MovieClip {
public var shine:MovieClip;
}
}//package Monster_fla
Section 44
//Main_Anim1_127 (Monster_fla.Main_Anim1_127)
package Monster_fla {
import flash.display.*;
public dynamic class Main_Anim1_127 extends MovieClip {
public var main_visit:MovieClip;
public var main_send:MovieClip;
public var main_score:MovieClip;
public function Main_Anim1_127(){
addFrameScript(0, frame1, 34, frame35);
}
function frame1(){
stop();
}
function frame35(){
stop();
}
}
}//package Monster_fla
Section 45
//masked_preload_1 (Monster_fla.masked_preload_1)
package Monster_fla {
import flash.display.*;
public dynamic class masked_preload_1 extends MovieClip {
public var bar:MovieClip;
}
}//package Monster_fla
Section 46
//mute_cont_mc_211 (Monster_fla.mute_cont_mc_211)
package Monster_fla {
import flash.display.*;
public dynamic class mute_cont_mc_211 extends MovieClip {
public var mute:mute_btn;
public function mute_cont_mc_211(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
}
}
}//package Monster_fla
Section 47
//num3_66 (Monster_fla.num3_66)
package Monster_fla {
import flash.display.*;
public dynamic class num3_66 extends MovieClip {
public var num:MovieClip;
public function num3_66(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Monster_fla
Section 48
//num4_87 (Monster_fla.num4_87)
package Monster_fla {
import flash.display.*;
public dynamic class num4_87 extends MovieClip {
public var num:MovieClip;
public function num4_87(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package Monster_fla
Section 49
//numb_mc_107 (Monster_fla.numb_mc_107)
package Monster_fla {
import flash.display.*;
public dynamic class numb_mc_107 extends MovieClip {
public var num:MovieClip;
public function numb_mc_107(){
addFrameScript(24, frame25);
}
function frame25(){
gotoAndStop(1);
}
}
}//package Monster_fla
Section 50
//numb2_mc_67 (Monster_fla.numb2_mc_67)
package Monster_fla {
import flash.display.*;
import flash.text.*;
public dynamic class numb2_mc_67 extends MovieClip {
public var num:TextField;
}
}//package Monster_fla
Section 51
//numb4_mc_88 (Monster_fla.numb4_mc_88)
package Monster_fla {
import flash.display.*;
import flash.text.*;
public dynamic class numb4_mc_88 extends MovieClip {
public var num:TextField;
}
}//package Monster_fla
Section 52
//scoreboard_mc_171 (Monster_fla.scoreboard_mc_171)
package Monster_fla {
import flash.display.*;
public dynamic class scoreboard_mc_171 extends MovieClip {
public var score1:MovieClip;
public var name0:MovieClip;
public var name1:MovieClip;
public var name3:MovieClip;
public var name4:MovieClip;
public var name6:MovieClip;
public var name8:MovieClip;
public var name2:MovieClip;
public var score5:MovieClip;
public var name5:MovieClip;
public var name7:MovieClip;
public var score6:MovieClip;
public var name9:MovieClip;
public var shine_box:MovieClip;
public var score0:MovieClip;
public var score2:MovieClip;
public var score3:MovieClip;
public var score7:MovieClip;
public var score8:MovieClip;
public var score4:MovieClip;
public var score9:MovieClip;
}
}//package Monster_fla
Section 53
//send_send_mc_166 (Monster_fla.send_send_mc_166)
package Monster_fla {
import flash.display.*;
public dynamic class send_send_mc_166 extends MovieClip {
public var invite_send1:MovieClip;
public var shine2:MovieClip;
public var shine:MovieClip;
public function send_send_mc_166(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
shine.gotoAndPlay(1);
}
function frame1(){
stop();
}
function frame20(){
shine2.gotoAndPlay(1);
}
}
}//package Monster_fla
Section 54
//sent_mc_168 (Monster_fla.sent_mc_168)
package Monster_fla {
import flash.display.*;
public dynamic class sent_mc_168 extends MovieClip {
public function sent_mc_168(){
addFrameScript(0, frame1, 49, frame50);
}
function frame1(){
stop();
}
function frame50(){
stop();
}
}
}//package Monster_fla
Section 55
//Shine_Anim_116 (Monster_fla.Shine_Anim_116)
package Monster_fla {
import flash.display.*;
public dynamic class Shine_Anim_116 extends MovieClip {
public function Shine_Anim_116(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package Monster_fla
Section 56
//Shine_AnimB_118 (Monster_fla.Shine_AnimB_118)
package Monster_fla {
import flash.display.*;
public dynamic class Shine_AnimB_118 extends MovieClip {
public function Shine_AnimB_118(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package Monster_fla
Section 57
//Shine_AnimC_131 (Monster_fla.Shine_AnimC_131)
package Monster_fla {
import flash.display.*;
public dynamic class Shine_AnimC_131 extends MovieClip {
public function Shine_AnimC_131(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package Monster_fla
Section 58
//Shine_AnimCC_133 (Monster_fla.Shine_AnimCC_133)
package Monster_fla {
import flash.display.*;
public dynamic class Shine_AnimCC_133 extends MovieClip {
public function Shine_AnimCC_133(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package Monster_fla
Section 59
//Shine_AnimD_19 (Monster_fla.Shine_AnimD_19)
package Monster_fla {
import flash.display.*;
public dynamic class Shine_AnimD_19 extends MovieClip {
public function Shine_AnimD_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Monster_fla
Section 60
//Shine_Move2_119 (Monster_fla.Shine_Move2_119)
package Monster_fla {
import flash.display.*;
public dynamic class Shine_Move2_119 extends MovieClip {
public function Shine_Move2_119(){
addFrameScript(12, frame13);
}
function frame13(){
gotoAndStop(1);
}
}
}//package Monster_fla
Section 61
//Sparkle_fade_16 (Monster_fla.Sparkle_fade_16)
package Monster_fla {
import flash.display.*;
public dynamic class Sparkle_fade_16 extends MovieClip {
public function Sparkle_fade_16(){
addFrameScript(158, frame159);
}
function frame159(){
gotoAndPlay(1);
}
}
}//package Monster_fla
Section 62
//Sparkle_fade2_17 (Monster_fla.Sparkle_fade2_17)
package Monster_fla {
import flash.display.*;
public dynamic class Sparkle_fade2_17 extends MovieClip {
public function Sparkle_fade2_17(){
addFrameScript(339, frame340);
}
function frame340(){
gotoAndPlay(1);
}
}
}//package Monster_fla
Section 63
//Sparkle_fade3_5 (Monster_fla.Sparkle_fade3_5)
package Monster_fla {
import flash.display.*;
public dynamic class Sparkle_fade3_5 extends MovieClip {
public function Sparkle_fade3_5(){
addFrameScript(339, frame340);
}
function frame340(){
gotoAndPlay(1);
}
}
}//package Monster_fla
Section 64
//Sparkle_fade4_14 (Monster_fla.Sparkle_fade4_14)
package Monster_fla {
import flash.display.*;
public dynamic class Sparkle_fade4_14 extends MovieClip {
public function Sparkle_fade4_14(){
addFrameScript(280, frame281);
}
function frame281(){
gotoAndPlay(1);
}
}
}//package Monster_fla
Section 65
//Sparkle_fade5_15 (Monster_fla.Sparkle_fade5_15)
package Monster_fla {
import flash.display.*;
public dynamic class Sparkle_fade5_15 extends MovieClip {
public function Sparkle_fade5_15(){
addFrameScript(201, frame202);
}
function frame202(){
gotoAndPlay(1);
}
}
}//package Monster_fla
Section 66
//Sparkle_fade6_12 (Monster_fla.Sparkle_fade6_12)
package Monster_fla {
import flash.display.*;
public dynamic class Sparkle_fade6_12 extends MovieClip {
public function Sparkle_fade6_12(){
addFrameScript(245, frame246);
}
function frame246(){
gotoAndPlay(1);
}
}
}//package Monster_fla
Section 67
//Sparkle_fade7_13 (Monster_fla.Sparkle_fade7_13)
package Monster_fla {
import flash.display.*;
public dynamic class Sparkle_fade7_13 extends MovieClip {
public function Sparkle_fade7_13(){
addFrameScript(389, frame390);
}
function frame390(){
gotoAndPlay(1);
}
}
}//package Monster_fla
Section 68
//SpriteDump_mc_23 (Monster_fla.SpriteDump_mc_23)
package Monster_fla {
import flash.display.*;
public dynamic class SpriteDump_mc_23 extends MovieClip {
public function SpriteDump_mc_23(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Monster_fla
Section 69
//Star_101 (Monster_fla.Star_101)
package Monster_fla {
import flash.display.*;
public dynamic class Star_101 extends MovieClip {
public function Star_101(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
}
}
}//package Monster_fla
Section 70
//Star2_104 (Monster_fla.Star2_104)
package Monster_fla {
import flash.display.*;
public dynamic class Star2_104 extends MovieClip {
public function Star2_104(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package Monster_fla
Section 71
//Star3_84 (Monster_fla.Star3_84)
package Monster_fla {
import flash.display.*;
public dynamic class Star3_84 extends MovieClip {
public function Star3_84(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
}
}
}//package Monster_fla
Section 72
//Star88_76 (Monster_fla.Star88_76)
package Monster_fla {
import flash.display.*;
public dynamic class Star88_76 extends MovieClip {
public function Star88_76(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
}
}
}//package Monster_fla
Section 73
//Star88copy_82 (Monster_fla.Star88copy_82)
package Monster_fla {
import flash.display.*;
public dynamic class Star88copy_82 extends MovieClip {
public function Star88copy_82(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package Monster_fla
Section 74
//Star99_72 (Monster_fla.Star99_72)
package Monster_fla {
import flash.display.*;
public dynamic class Star99_72 extends MovieClip {
public function Star99_72(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
}
}
}//package Monster_fla
Section 75
//stf_mc_152 (Monster_fla.stf_mc_152)
package Monster_fla {
import flash.display.*;
import flash.text.*;
public dynamic class stf_mc_152 extends MovieClip {
public var friends_email2:TextField;
public var friends_email3:TextField;
public var friends_email0:TextField;
public var shine_box:MovieClip;
public var friends_email4:TextField;
public var error1:MovieClip;
public var error3:MovieClip;
public var error4:MovieClip;
public var error5:MovieClip;
public var error2:MovieClip;
public var error0:MovieClip;
public var your_email:TextField;
public var friends_email1:TextField;
public function stf_mc_152(){
addFrameScript(0, frame1);
}
function frame1(){
your_email.tabIndex = 501;
friends_email0.tabIndex = 502;
friends_email1.tabIndex = 503;
friends_email2.tabIndex = 504;
friends_email3.tabIndex = 505;
friends_email4.tabIndex = 506;
}
}
}//package Monster_fla
Section 76
//Symbol27_108 (Monster_fla.Symbol27_108)
package Monster_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol27_108 extends MovieClip {
public var num:TextField;
}
}//package Monster_fla
Section 77
//Symbol34_147 (Monster_fla.Symbol34_147)
package Monster_fla {
import flash.display.*;
public dynamic class Symbol34_147 extends MovieClip {
public var howplay_main1:MovieClip;
public var shine2:MovieClip;
public var shine:MovieClip;
public function Symbol34_147(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
shine.gotoAndPlay(1);
}
function frame1(){
stop();
}
function frame20(){
shine2.gotoAndPlay(1);
}
}
}//package Monster_fla
Section 78
//Symbol3copy_48 (Monster_fla.Symbol3copy_48)
package Monster_fla {
import flash.display.*;
public dynamic class Symbol3copy_48 extends MovieClip {
public function Symbol3copy_48(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
}
}//package Monster_fla
Section 79
//Symbol40_98 (Monster_fla.Symbol40_98)
package Monster_fla {
import flash.display.*;
public dynamic class Symbol40_98 extends MovieClip {
public function Symbol40_98(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package Monster_fla
Section 80
//Symbol40copy_69 (Monster_fla.Symbol40copy_69)
package Monster_fla {
import flash.display.*;
public dynamic class Symbol40copy_69 extends MovieClip {
public function Symbol40copy_69(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package Monster_fla
Section 81
//Symbol40copy2_64 (Monster_fla.Symbol40copy2_64)
package Monster_fla {
import flash.display.*;
public dynamic class Symbol40copy2_64 extends MovieClip {
public function Symbol40copy2_64(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package Monster_fla
Section 82
//Symbol48_184 (Monster_fla.Symbol48_184)
package Monster_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol48_184 extends MovieClip {
public var name1:TextField;
}
}//package Monster_fla
Section 83
//Symbol58_185 (Monster_fla.Symbol58_185)
package Monster_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol58_185 extends MovieClip {
public var score0:TextField;
}
}//package Monster_fla
Section 84
//Symbol59_186 (Monster_fla.Symbol59_186)
package Monster_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol59_186 extends MovieClip {
public var score1:TextField;
}
}//package Monster_fla
Section 85
//Symbol60_187 (Monster_fla.Symbol60_187)
package Monster_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol60_187 extends MovieClip {
public var score2:TextField;
}
}//package Monster_fla
Section 86
//Symbol61_188 (Monster_fla.Symbol61_188)
package Monster_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol61_188 extends MovieClip {
public var score3:TextField;
}
}//package Monster_fla
Section 87
//Symbol62_189 (Monster_fla.Symbol62_189)
package Monster_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol62_189 extends MovieClip {
public var score4:TextField;
}
}//package Monster_fla
Section 88
//Symbol63_190 (Monster_fla.Symbol63_190)
package Monster_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol63_190 extends MovieClip {
public var score5:TextField;
}
}//package Monster_fla
Section 89
//Symbol64_191 (Monster_fla.Symbol64_191)
package Monster_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol64_191 extends MovieClip {
public var score6:TextField;
}
}//package Monster_fla
Section 90
//Symbol65_192 (Monster_fla.Symbol65_192)
package Monster_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol65_192 extends MovieClip {
public var score7:TextField;
}
}//package Monster_fla
Section 91
//Symbol66_193 (Monster_fla.Symbol66_193)
package Monster_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol66_193 extends MovieClip {
public var score8:TextField;
}
}//package Monster_fla
Section 92
//Symbol68_194 (Monster_fla.Symbol68_194)
package Monster_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol68_194 extends MovieClip {
public var score9:TextField;
}
}//package Monster_fla
Section 93
//title_image_mc_124 (Monster_fla.title_image_mc_124)
package Monster_fla {
import flash.display.*;
public dynamic class title_image_mc_124 extends MovieClip {
public function title_image_mc_124(){
addFrameScript(0, frame1, 30, frame31);
}
function frame1(){
stop();
}
function frame31(){
stop();
}
}
}//package Monster_fla
Section 94
//trump_stand_39 (Monster_fla.trump_stand_39)
package Monster_fla {
import flash.display.*;
public dynamic class trump_stand_39 extends MovieClip {
public var wobbler:MovieClip;
public function trump_stand_39(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Monster_fla
Section 95
//wobble_colour3_46 (Monster_fla.wobble_colour3_46)
package Monster_fla {
import flash.display.*;
public dynamic class wobble_colour3_46 extends MovieClip {
public function wobble_colour3_46(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Monster_fla
Section 96
//wobbleomter_mc_44 (Monster_fla.wobbleomter_mc_44)
package Monster_fla {
import flash.display.*;
public dynamic class wobbleomter_mc_44 extends MovieClip {
public var wobble_mask2:MovieClip;
public var colour:MovieClip;
public var wobble_mask:MovieClip;
public var colour2:MovieClip;
}
}//package Monster_fla
Section 97
//bonus1 (bonus1)
package {
import flash.display.*;
public dynamic class bonus1 extends MovieClip {
}
}//package
Section 98
//bonus2 (bonus2)
package {
import flash.display.*;
public dynamic class bonus2 extends MovieClip {
}
}//package
Section 99
//bonus3 (bonus3)
package {
import flash.display.*;
public dynamic class bonus3 extends MovieClip {
}
}//package
Section 100
//bonus4 (bonus4)
package {
import flash.display.*;
public dynamic class bonus4 extends MovieClip {
}
}//package
Section 101
//bonus5 (bonus5)
package {
import flash.display.*;
public dynamic class bonus5 extends MovieClip {
}
}//package
Section 102
//bonus6 (bonus6)
package {
import flash.display.*;
public dynamic class bonus6 extends MovieClip {
}
}//package
Section 103
//CV (CV)
package {
import flash.display.*;
import flash.geom.*;
public class CV extends MovieClip {
public var storedRotation:Number;
public var SpeedOffset:Number;
public var point1:MovieClip;
public var point6:MovieClip;
public var point2:MovieClip;
public var point5:MovieClip;
public var point4:MovieClip;
public var point3:MovieClip;
public var Point1:Point;
public var Point2:Point;
public var Point3:Point;
public var StackPos:uint;
public var Point4:Point;
}
}//package
Section 104
//EventTracker (EventTracker)
package {
import flash.display.*;
public class EventTracker extends MovieClip {
public var _count:int;// = 0
public var _tracking:Array;
public var _matches:int;// = 0
public var _mismatch_store:Array;
public var _totalListeners:int;// = 0
public var _enable:Boolean;
public function EventTracker(_arg1:Boolean){
_tracking = new Array();
_mismatch_store = new Array();
_count = 0;
_totalListeners = 0;
_matches = 0;
super();
_enable = _arg1;
}
public function Add(_arg1:String):void{
_count++;
_totalListeners++;
_tracking.push(_arg1);
}
public function Monitor():void{
var _local1:uint;
var _local2:uint;
if (_enable){
_local1 = _tracking.length;
_local2 = 0;
while (_local2 < _local1) {
_local2++;
};
};
}
public function Remove(_arg1:String):void{
var _local2:uint;
var _local3:Boolean;
var _local4:uint;
_count--;
_local2 = _tracking.length;
_local3 = false;
_local4 = 0;
while (_local4 < _local2) {
if ((((_tracking[_local4] == _arg1)) && ((_local3 == false)))){
_matches++;
_local3 = true;
_tracking.splice(_local4, 1);
};
_local4++;
};
if (_local3 == false){
_mismatch_store.push(_arg1);
};
}
}
}//package
Section 105
//explode (explode)
package {
import flash.display.*;
public dynamic class explode extends MovieClip {
public var num:MovieClip;
public var flash_5:MovieClip;
public var flash_6:MovieClip;
public var flash_7:MovieClip;
public var flash_1:MovieClip;
public var flash_4:MovieClip;
public var flash_8:MovieClip;
public var flash_3:MovieClip;
public var flash_2:MovieClip;
}
}//package
Section 106
//explode2 (explode2)
package {
import flash.display.*;
public dynamic class explode2 extends MovieClip {
public var num:MovieClip;
}
}//package
Section 107
//explode3 (explode3)
package {
import flash.display.*;
public dynamic class explode3 extends MovieClip {
}
}//package
Section 108
//explode4 (explode4)
package {
import flash.display.*;
public dynamic class explode4 extends MovieClip {
public var num:MovieClip;
public var flash_3:MovieClip;
}
}//package
Section 109
//explode5 (explode5)
package {
import flash.display.*;
public dynamic class explode5 extends MovieClip {
public var num:MovieClip;
public var flash_3:MovieClip;
}
}//package
Section 110
//explode6 (explode6)
package {
import flash.display.*;
public dynamic class explode6 extends MovieClip {
public var num:MovieClip;
public var flash_3:MovieClip;
}
}//package
Section 111
//explode7 (explode7)
package {
import flash.display.*;
public dynamic class explode7 extends MovieClip {
public var num:MovieClip;
}
}//package
Section 112
//explode8 (explode8)
package {
import flash.display.*;
public dynamic class explode8 extends MovieClip {
public var num:MovieClip;
}
}//package
Section 113
//Game (Game)
package {
import flash.display.*;
import flash.events.*;
import gs.*;
import flash.net.*;
import console.trackers.*;
import console.verification.*;
import gs.easing.*;
import com.memecounter.*;
import koko.*;
import console.loaders.*;
import console.highscore.*;
import console.parsers.*;
import flash.geom.*;
import flash.text.*;
import flash.system.*;
public class Game extends MovieClip {
public var bonus_line:MovieClip;
public var _url_stf;// = "http://monsterdash.viral-game.co.uk/mail.php"
public var daily:MovieClip;
public var send_monster:MovieClip;
public var stf:MovieClip;
public var _url_monster3;// = "http://monsterdash.viral-game.co.uk/data.php?action=track_end_game_dream_job"
public var _url_monster4;// = "http://monsterdash.viral-game.co.uk/data.php?action=track_end_game_upload_cv"
public var title:MovieClip;
public var main_btns:MovieClip;
public var _url_monster2;// = "http://monsterdash.viral-game.co.uk/data.php?action=track_in_game_upload_cv"
public var sent_message:MovieClip;
public var bool_close:Boolean;
public var _HighScore;
public var preloader:MovieClip;
public var bool_open:Boolean;
public var _url_submit;// = "http://monsterdash.viral-game.co.uk/data.php?action=scores_submit"
public var request:URLRequest;
public var _url_scores;// = "http://monsterdash.viral-game.co.uk/data.php?action=scores_daily_xml"
public var _from:String;
public var stf_form:MovieClip;
public var _turns:uint;// = 0
public var score_box:MovieClip;
public var main_how:MovieClip;
public var bar_height:uint;
public var monster_main1:MovieClip;
public var end_anim:MovieClip;
public var _first_run:Boolean;// = true
public var _vars:Object;
public var score_monster:MovieClip;
public var _started:Boolean;// = false
public var koko_cont:MovieClip;
public var _url_monster;// = "http://monsterdash.viral-game.co.uk/data.php?action=track_in_game_visit_monster"
public var how_box:MovieClip;
public var time_box:MovieClip;
public var score_return:MovieClip;
public var bar_perc:Number;
public var congrats:MovieClip;
public var mute_cont:MovieClip;
public var _url_token;// = "http://monsterdash.viral-game.co.uk/data.php?action=token_generate"
public var scoreboard:MovieClip;
public var logo:MovieClip;
public var title_bar:MovieClip;
public var ready:MovieClip;
public var how_text:MovieClip;
public var send_return:MovieClip;
public var how_btn:MovieClip;
public var send_send:MovieClip;
public var _url_koko:String;// = "http://monsterdash.viral-game.co.uk/data.php?action=track_link_koko"
public var main_play:MovieClip;
public function Game(){
_vars = new Object();
_url_koko = "http://monsterdash.viral-game.co.uk/data.php?action=track_link_koko";
_url_token = "http://monsterdash.viral-game.co.uk/data.php?action=token_generate";
_url_submit = "http://monsterdash.viral-game.co.uk/data.php?action=scores_submit";
_url_scores = "http://monsterdash.viral-game.co.uk/data.php?action=scores_daily_xml";
_url_monster = "http://monsterdash.viral-game.co.uk/data.php?action=track_in_game_visit_monster";
_url_monster2 = "http://monsterdash.viral-game.co.uk/data.php?action=track_in_game_upload_cv";
_url_monster3 = "http://monsterdash.viral-game.co.uk/data.php?action=track_end_game_dream_job";
_url_monster4 = "http://monsterdash.viral-game.co.uk/data.php?action=track_end_game_upload_cv";
_url_stf = "http://monsterdash.viral-game.co.uk/mail.php";
_HighScore = new CommonHighScore();
_first_run = true;
_turns = 0;
_started = false;
super();
addFrameScript(0, frame1, 10, frame11, 19, frame20, 49, frame50, 69, frame70);
_vars.Tracker = new EventTracker(true);
_vars.Sounds = new GameSounds();
_vars.sound_play = true;
addEventListener(Event.ENTER_FRAME, FrameCheck);
_vars.Tracker.Add("Event.ENTER_FRAME, FrameCheck");
generateToken();
}
public function SetContainers():void{
var _local1:uint;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
_local1 = _vars.GameContainer.numChildren;
_local2 = _vars.StackContainer.numChildren;
_local3 = _vars.Stage.numChildren;
_local4 = _vars.RainContainer.numChildren;
_local5 = _vars.PopupContainer.numChildren;
_local6 = 0;
while (_local6 < _local1) {
_vars.GameContainer.removeChildAt(0);
_local6++;
};
_local7 = 0;
while (_local7 < _local2) {
_vars.StackContainer.removeChildAt(0);
_local7++;
};
_local8 = 0;
while (_local8 < _local4) {
_vars.Raincontainer.removeChildAt(0);
_local7++;
};
_local9 = 0;
while (_local9 < _local3) {
_local11 = _vars.Stage.getChildAt(0);
if (_local11 == _vars.Gamecontainer){
_vars.Stage.removeChild(_local11);
} else {
if (_local11 == _vars.Stackcontainer){
_vars.Stage.removeChild(_local11);
} else {
if (_local11 == _vars.RainContainer){
_vars.Stage.removeChild(_local11);
};
};
};
_local9++;
};
_local10 = 0;
while (_local10 < _local5) {
_vars.PopupContainer.removeChildAt(0);
_local10++;
};
if (((((((!((_vars.PopupContainer == null))) && (!((_vars.GameContainer == null))))) && (!((_vars.StackContainer == null))))) && (!((_vars.RainContainer == null))))){
_local12 = CreateMask();
_vars.Stage.addChild(_vars.GameContainer);
_vars.GameContainer.mask = _local12;
_local13 = CreateMask();
_vars.Stage.addChild(_vars.StackContainer);
_vars.StackContainer.mask = _local13;
_local14 = CreateMask();
_vars.Stage.addChild(_vars.RainContainer);
_vars.RainContainer.mask = _local14;
_local15 = CreateMask();
_vars.Stage.addChild(_vars.PopupContainer);
_vars.PopupContainer.mask = _local15;
};
_vars.GameContainer.addChild(_vars.Trump);
_vars.Trump.gotoAndPlay(1);
_vars.GameContainer.addChild(_vars.ScoreBox);
_vars.GameContainer.addChild(_vars.TimeBox);
TweenMax.from(_vars.ScoreBox, 1, {delay:0.5, ease:Circ.easeOut, alpha:0});
TweenMax.to(_vars.ScoreBox, 1, {delay:0.5, ease:Circ.easeOut, alpha:1});
TweenMax.from(_vars.TimeBox, 1, {delay:0.5, ease:Circ.easeOut, alpha:0});
TweenMax.to(_vars.TimeBox, 1, {delay:0.5, ease:Circ.easeOut, alpha:1});
}
public function GameOver(_arg1:Event):void{
var _local2:*;
var _local3:*;
_vars.Sounds.stopSfx();
_vars.Sounds.stopTick();
this.addEventListener(Event.ENTER_FRAME, FrameCheck);
_vars.Tracker.Add("Event.ENTER_FRAME, FrameCheck");
this.gotoAndStop("GameOver");
_local2 = (_vars.Score * _vars.Score_stack_multi);
_local2 = _local2.toString();
congrats.congrats_submit.buttonMode = true;
congrats.cta.buttonMode = true;
_local3 = (Math.round(Math.random()) + 1);
congrats.cta.gotoAndStop(_local3);
congrats.congrats_return.buttonMode = true;
congrats.end_score.text = ("SCORE: " + _vars.Score);
congrats.final_bonus.text = ("BONUS: x" + _vars.Score_stack_multi);
congrats.final_score.text = ("TOTAL SCORE: " + _local2);
_vars.EndScore = _local2;
congrats.error_score_0.gotoAndStop(0);
congrats.error_score_1.gotoAndStop(0);
}
public function CreateMask():MovieClip{
var _local1:*;
_local1 = new mask1();
_local1.x = 5;
_local1.y = 6;
_vars.Stage.addChild(_local1);
return (_local1);
}
public function getToken(_arg1:Event):void{
_vars.token = _arg1.target._token;
}
public function SendToFriend_Success(_arg1:Event):void{
_vars.stfSubmit.removeEventListener(SendReceiveData.DATA_LOADED, SendToFriend_Success);
_vars.Tracker.Remove("SendReceiveData.DATA_LOADED, SendToFriend_Success");
}
function frame1(){
Security.loadPolicyFile("http://www.viral-game.co.uk/crossdomain.xml");
Security.loadPolicyFile("http://monsterdash.viral-game.co.uk/crossdomain.xml");
Security.allowDomain("*");
MochiBot.track(this, "1b358936");
Tracker.init(502, root);
request = new URLRequest("http://www.viralchart.com/tracker.php?media=862&f=F");
request.method = URLRequestMethod.GET;
sendToURL(request);
bar_height = 197.8;
bar_perc = (bar_height / 100);
bool_open = false;
bool_close = false;
stop();
loaderInfo.addEventListener(ProgressEvent.PROGRESS, onLoadProgress);
loaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
preloader.alpha = 0;
}
function frame11(){
stop();
}
function frame20(){
stop();
monster_main1.buttonMode = true;
}
public function run():void{
TweenMax.from(ready, 0.7, {delay:0.8, alpha:1, ease:Circ.easeOut, x:143});
TweenMax.to(ready, 0.7, {delay:0.8, alpha:0, ease:Circ.easeOut, x:463, onComplete:Gamerun});
}
public function MainMouseClick(_arg1:MouseEvent):void{
var _local2:formVERIFY;
var _local3:Boolean;
var _local4:Array;
var _local5:Boolean;
var _local6:uint;
var _local7:*;
var _local8:formVERIFY;
var _local9:*;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:URLVariables;
var _local15:URLVariables;
switch (_arg1.target.name){
case "mute":
_vars.Sounds.muteSound();
if (mute_cont.mute.currentFrame < 2){
mute_cont.mute.gotoAndPlay(2);
} else {
Tracker.kvEvent(1378);
mute_cont.mute.gotoAndStop(1);
};
break;
case "how_play":
case "howplay_main1":
_from = "How";
Tracker.kvEvent(1374);
this.addEventListener(Event.ENTER_FRAME, FrameCheck);
_vars.Tracker.Add("Event.ENTER_FRAME, FrameCheck");
this.gotoAndStop("Start");
break;
case "play_main1":
_vars.MultiSubmit = false;
_from = "Main";
Tracker.kvEvent(1374);
this.addEventListener(Event.ENTER_FRAME, FrameCheck);
_vars.Tracker.Add("Event.ENTER_FRAME, FrameCheck");
this.gotoAndStop("Start");
break;
case "how_main1":
_vars.MultiSubmit = false;
Tracker.kvEvent(1375);
this.addEventListener(Event.ENTER_FRAME, FrameCheck);
_vars.Tracker.Add("Event.ENTER_FRAME, FrameCheck");
this.gotoAndStop("How");
break;
case "send_main1":
Tracker.kvEvent(1376);
this.addEventListener(Event.ENTER_FRAME, FrameCheck);
_vars.Tracker.Add("Event.ENTER_FRAME, FrameCheck");
this.gotoAndStop("Send");
break;
case "score_main1":
Tracker.kvEvent(1377);
this.addEventListener(Event.ENTER_FRAME, FrameCheck);
_vars.Tracker.Add("Event.ENTER_FRAME, FrameCheck");
this.gotoAndStop("Score");
break;
case "main_koko":
Tracker.kvClick(836);
URLUtil.openWindow(_url_koko);
break;
case "send_return":
case "score_return":
case "return_score1":
case "congrats_return":
this.addEventListener(Event.ENTER_FRAME, FrameCheck);
_vars.Tracker.Add("Event.ENTER_FRAME, FrameCheck");
removeEventListener(MouseEvent.MOUSE_OVER, MainMouseOver);
_vars.Tracker.Remove("MouseEvent.MOUSE_OVER, MainMouseOver");
removeEventListener(MouseEvent.CLICK, MainMouseClick);
_vars.Tracker.Remove("MouseEvent.CLICK, MainMouseClick");
removeEventListener(MouseEvent.MOUSE_OUT, MainMouseOut);
_vars.Tracker.Remove("MouseEvent.MOUSE_OUT, MainMouseOut");
this.gotoAndStop("Main");
break;
case "send_monster":
case "score_monster":
case "visit_main1":
case "monster_main1":
Tracker.kvClick(835);
URLUtil.openWindow(_url_monster);
break;
case "monster_score2":
Tracker.kvEvent(1381);
URLUtil.openWindow(_url_monster3);
break;
case "monster_score1":
Tracker.kvEvent(1381);
URLUtil.openWindow(_url_monster2);
break;
case "monster_score3":
Tracker.kvEvent(1381);
URLUtil.openWindow(_url_monster4);
break;
case "send_send":
case "invite_send1":
_local2 = new formVERIFY();
_local3 = true;
_local4 = new Array();
_local6 = 0;
_local10 = 0;
while (_local10 < 6) {
stf[("error" + _local10)].gotoAndStop(1);
_local10++;
};
_local7 = _local2.email(stf.your_email.text);
_local4.push(_local7);
_local11 = 0;
while (_local11 < 5) {
if (stf[("friends_email" + _local11)].text != ""){
_local5 = _local2.email(stf[("friends_email" + _local11)].text);
} else {
_local6++;
_local5 = true;
if (_local6 == 5){
stf[("error" + 1)].gotoAndStop(2);
_local3 = false;
};
};
_local4.push(_local5);
_local11++;
};
_local12 = 0;
while (_local12 < _local4.length) {
if (_local4[_local12] == false){
_local3 = false;
stf[("error" + _local12)].gotoAndStop(2);
};
_local12++;
};
if (_local3){
_local13 = 0;
while (_local13 < 5) {
if (stf[("friends_email" + _local13)].text != ""){
_local14 = new URLVariables();
_local14.action = "send_invite";
_local14.player_email = stf.your_email.text;
_local14.friend_email = stf[("friends_email" + _local13)].text;
_local14.token = _vars.token;
_vars.stfSubmit = new SendReceiveData();
_vars.stfSubmit.sendData(_url_stf, _local14);
_vars.stfSubmit.addEventListener(SendReceiveData.DATA_LOADED, SendToFriend_Success);
};
_local13++;
};
sent_message.gotoAndPlay(2);
addEventListener(Event.ENTER_FRAME, CheckSent);
_vars.Tracker.Add("Event.ENTER_FRAME, CheckSent");
Tracker.kvEvent(1379);
};
break;
case "submit_score1":
case "congrats_submit":
_local8 = new formVERIFY();
_local9 = _local8.email(congrats.email.text);
if (((((_local9) && (!((congrats.submit_name.text == ""))))) && ((_vars.MultiSubmit == false)))){
_vars.MultiSubmit = true;
_local15 = new URLVariables();
_local15.player_name = congrats.submit_name.text;
_local15.player_email = congrats.email.text;
_local15.player_score = _vars.EndScore;
_local15.token = _vars.token;
_vars.score_Submit = new SendReceiveData();
_vars.score_Submit.sendData(_url_submit, _local15);
_vars.score_Submit.addEventListener(SendReceiveData.DATA_LOADED, Score_Success);
};
if (congrats.submit_name.text == ""){
congrats.error_score_0.gotoAndStop(2);
} else {
congrats.error_score_0.gotoAndStop(1);
};
if (_local9 != true){
congrats.error_score_1.gotoAndStop(2);
} else {
congrats.error_score_1.gotoAndStop(1);
};
break;
};
}
public function CheckSent(_arg1:Event):void{
if (sent_message.currentFrame == 35){
removeEventListener(Event.ENTER_FRAME, CheckSent);
_vars.Tracker.Remove("Event.ENTER_FRAME, CheckSent");
this.addEventListener(Event.ENTER_FRAME, FrameCheck);
_vars.Tracker.Add("Event.ENTER_FRAME, FrameCheck");
this.gotoAndStop("Main");
};
}
public function onLoadProgress(_arg1:ProgressEvent):void{
var _local2:uint;
var _local3:uint;
var _local4:int;
_local2 = _arg1.bytesLoaded;
_local3 = _arg1.bytesTotal;
_local4 = Math.floor(((_local2 / _local3) * 100));
preloader.bar.height = (bar_perc * _local4);
if ((((_local4 <= 30)) && ((bool_open == false)))){
bool_open = true;
TweenMax.from(preloader, 0.5, {ease:Circ.easeInOut, colorMatrixFilter:{brightness:8}, blurFilter:{blurX:90, blurY:90, quality:3}, alpha:0});
TweenMax.to(preloader, 0.5, {ease:Circ.easeInOut, colorMatrixFilter:{brightness:1}, blurFilter:{blurX:0, blurY:0, quality:3}, alpha:1});
};
if ((((_local4 >= 99)) && ((bool_close == false)))){
bool_close = true;
TweenMax.from(preloader, 1.5, {ease:Circ.easeInOut, colorMatrixFilter:{brightness:1}, blurFilter:{blurX:0, blurY:0, quality:3}, alpha:1});
TweenMax.to(preloader, 1.5, {ease:Circ.easeInOut, colorMatrixFilter:{brightness:8}, blurFilter:{blurX:90, blurY:90, quality:3}, alpha:0});
};
}
function frame50(){
scoreboard.shine_box.gotoAndPlay(2);
}
public function Score_Fail(_arg1:Event):void{
}
function frame70(){
stop();
}
public function Score_Success(_arg1:Event):void{
_vars.score_Submit.removeEventListener(SendReceiveData.DATA_LOADED, Score_Success);
_vars.Tracker.Remove("SendReceiveData.DATA_LOADED, Score_Success");
this.addEventListener(Event.ENTER_FRAME, FrameCheck);
_vars.Tracker.Add("Event.ENTER_FRAME, FrameCheck");
this.gotoAndStop("Score");
}
public function Gamerun():void{
TweenMax.from(score_box, 0.7, {alpha:0, ease:Bounce.easeOut, x:469});
TweenMax.to(score_box, 0.7, {alpha:1, ease:Bounce.easeOut, x:239});
TweenMax.from(time_box, 0.7, {alpha:0, ease:Bounce.easeOut, x:-139});
TweenMax.to(time_box, 0.7, {alpha:1, ease:Bounce.easeOut, x:21});
NewGame();
}
public function MainMouseOver(_arg1:MouseEvent):void{
switch (_arg1.target.name){
case "play_main1":
case "howplay_main1":
case "send_main1":
case "score_main1":
case "visit_main1":
case "monster_score1":
case "return_score1":
case "invite_send1":
case "submit_score1":
case "how_main1":
_arg1.target.parent.gotoAndStop("Over");
break;
};
}
public function StartGame():void{
_turns++;
_vars.Rain.addEventListener(Rain.GAMEOVER, GameOver);
_vars.Tracker.Add("Rain.GAMEOVER, GameOver");
_vars.Trump.SetVars(_vars);
_vars.Stack.SetVars(_vars);
_vars.Rain.SetVars(_vars);
_vars.Trump.New();
_vars.Stack.New();
_vars.Rain.Start();
}
public function MainMouseOut(_arg1:MouseEvent):void{
switch (_arg1.target.name){
case "how_main1":
case "play_main1":
case "howplay_main1":
case "send_main1":
case "score_main1":
case "visit_main1":
case "monster_score1":
case "return_score1":
case "invite_send1":
case "submit_score1":
_arg1.target.parent.gotoAndStop("Out");
break;
};
}
public function DisplayScores(_arg1:Event):void{
var _local2:uint;
var _local3:String;
var _local4:*;
_local2 = 0;
while (_local2 < _HighScore._highScores.length) {
_local3 = _HighScore._highScores[_local2][1];
_local4 = _HighScore._highScores[_local2][2];
_local4 = _local4.toString();
scoreboard[("name" + _local2)]["name1"].htmlText = (("<P ALIGN='LEFT'><FONT LETTERSPACING='1'>" + _local3) + "</P></FONT>");
scoreboard[("score" + _local2)][("score" + _local2)].text = _local4;
_local2++;
};
}
public function generateToken(){
var _local1:*;
_local1 = new ParseTOKEN(_url_token);
_local1.addEventListener(ParseTOKEN.TOKEN_GENERATED, getToken);
_vars.Tracker.Add("ParseTOKEN.TOKEN_GENERATED, getToken");
}
public function SetVars():void{
_vars.Stage = this.parent;
_vars.Stack = null;
_vars.Stack = new Stack();
_vars.Trump = null;
_vars.Trump = new Trump();
_vars.CV = null;
_vars.CV = new CV();
_vars.Rain = null;
_vars.Rain = new Rain();
_vars.Prize = null;
_vars.Prize = new Prize();
_vars.GameContainer = new MovieClip();
_vars.TrumpContainer = new MovieClip();
_vars.StackContainer = new MovieClip();
_vars.RainContainer = new MovieClip();
_vars.PopupContainer = new MovieClip();
_vars.Trump.StartPos = new Point(200, 440);
_vars.Trump.Boundary_left = 42;
_vars.Trump.Boundary_right = 425;
_vars.Trump.MoveSize = 50;
_vars.Trump.Accel = 3;
_vars.Stack.StartPos = new Point(226, 413);
_vars.Stack.Store = new Array();
_vars.Stack.Size = 2;
_vars.Stack.Difficulty = 5;
_vars.Stack.Accel = 0;
_vars.Stack.AccelIncrement = 0.05;
_vars.Stack.CVHeight = 2.4;
_vars.Stack.Speed = 0.5;
_vars.Stack.Rotation = 0.05;
_vars.Stack.Movement = 10;
_vars.Stack.IncrementSize = 1;
_vars.Stack.DecrementSize = 1;
_vars.Stack.Angle = 30;
_vars.Stack.Max = 120;
_vars.Stack.Alive = true;
_vars.Stack.Rigid = false;
_vars.Stack.Turns = _turns;
_vars.Stack.MotionSwitch = 0;
_vars.Rain.GroundLevel = 480;
_vars.Rain.Speed = 5;
_vars.Rain.Duration = 90;
_vars.Rain.Current = 0;
_vars.Rain.SegmentInterval = 10;
_vars.Rain.SegmentCount = 0;
_vars.Rain.PrizeTypes = 4;
_vars.Rain.TimerValue = 50;
_vars.Rain.LimitWidth = 460;
_vars.Rain.LimitHeight = 570;
_vars.Rain.Segments = new Array([["timer", 1], ["x1", 20], ["x2", 20], ["x3", 14], ["minus_time", 2], ["xSuper", 10], ["super_monster", 1]], [["timer", 0], ["x1", 5], ["x2", 20], ["x3", 10], ["minus_time", 0], ["xSuper", 8], ["super_monster", 0]], [["timer", 1], ["x1", 5], ["x2", 20], ["x3", 2], ["minus_time", 2], ["xSuper", 0], ["super_monster", 1]], [["timer", 0], ["x1", 6], ["x2", 3], ["x3", 5], ["minus_time", 0], ["xSuper", 10], ["super_monster", 0]], [["timer", 1], ["x1", 0], ["x2", 0], ["x3", 0], ["minus_time", 1], ["xSuper", 0], ["super_monster", 0]], [["timer", 1], ["x1", 0], ["x2", 0], ["x3", 0], ["minus_time", 1], ["xSuper", 0], ["super_monster", 0]], [["timer", 0], ["x1", 0], ["x2", 0], ["x3", 0], ["minus_time", 0], ["xSuper", 20], ["super_monster", 0]]);
_vars.Score = 0;
_vars.EndScore = 0;
_vars.ScoreBox = new Score();
_vars.Score_x1 = 10;
_vars.Score_x2 = 20;
_vars.Score_x3 = 30;
_vars.Score_xSuper = 100;
_vars.Score_stack_multi = 1;
_vars.Score_stack_multiValue = 1;
_vars.Score_minus10 = -100;
_vars.ScoreBox.x = 252.4;
_vars.ScoreBox.y = 43;
_vars.Score_RigidTimerLimit = 10;
_vars.Score_SpeedupLimit = 10;
_vars.Score_SpeedupAmount = 140;
_vars.Score_Decrement = 1;
_vars.TimePassed = 0;
_vars.TimeMaxMin = 1;
_vars.TimeMaxSec = 30;
_vars.StartTime = ((60 * _vars.TimeMaxMin) + _vars.TimeMaxSec);
_vars.GameOn = true;
_vars.Wobbleometer = new Object();
_vars.Wobbleometer.w = _vars.Trump.character.wobbler.wobble_mask.width;
_vars.Wobbleometer.stress = 0;
_vars.TimeBox = new Time();
_vars.TimeBox.x = 26;
_vars.TimeBox.y = 46;
_vars.Bonus = new Object();
_vars.Bonus.count = 0;
_vars.Explode = new Object();
_vars.Explode.count = 0;
_vars.Time_Tick = true;
_vars.MultiSubmit = false;
}
public function NewGame():void{
SetVars();
SetContainers();
StartGame();
}
public function FrameCheck(_arg1:Event):void{
switch (this.currentLabel){
case "Intro":
break;
case "Start":
_vars.Tracker.Monitor();
if (_started == false){
_started = true;
_vars.sound_play = true;
removeEventListener(Event.ENTER_FRAME, FrameCheck);
_vars.Tracker.Remove("Event.ENTER_FRAME, FrameCheck");
if (_from == "Main"){
TweenMax.from(title, 0.5, {delay:0.4, ease:Circ.easeOut, alpha:1, scaleX:1, scaleY:1});
TweenMax.to(title, 0.5, {delay:0.4, ease:Circ.easeOut, alpha:0, scaleX:0.2, scaleY:0.2});
TweenMax.from(main_play, 0.5, {delay:0.2, alpha:1, ease:Circ.easeOut, scaleX:1, scaleY:1});
TweenMax.to(main_play, 0.5, {delay:0.2, alpha:0, ease:Circ.easeOut, scaleX:0.2, scaleY:0.2});
TweenMax.from(main_how, 0.5, {delay:0, alpha:1, ease:Circ.easeOut, scaleX:1, scaleY:1});
TweenMax.to(main_how, 0.5, {delay:0, alpha:0, ease:Circ.easeOut, scaleX:0.2, scaleY:0.2});
TweenMax.to(logo, 0.5, {delay:0, alpha:0, ease:Circ.easeOut});
TweenMax.to(main_btns, 0.5, {delay:0, alpha:0, ease:Circ.easeOut});
};
if (_from == "How"){
title.alpha = 0;
main_play.alpha = 0;
main_how.alpha = 0;
logo.alpha = 0;
main_btns.alpha = 0;
};
TweenMax.from(ready, 0.7, {delay:1, alpha:0, ease:Bounce.easeOut, x:-177});
TweenMax.to(ready, 0.7, {delay:1, alpha:1, ease:Bounce.easeOut, x:143, onComplete:run});
};
break;
case "Main":
removeEventListener(Event.ENTER_FRAME, FrameCheck);
_vars.Tracker.Remove("Event.ENTER_FRAME, FrameCheck");
_started = false;
logo.alpha = 1;
main_btns.alpha = 1;
if (_vars.sound_play){
_vars.Sounds.stopMusic();
_vars.Sounds.stopSfx();
_vars.Sounds.playSound(1);
};
_vars.sound_play = false;
title.alpha = 0;
main_play.alpha = 0;
main_how.alpha = 0;
TweenMax.from(title, 0.7, {ease:Bounce.easeOut, alpha:0, scaleX:0.2, scaleY:0.2});
TweenMax.to(title, 0.7, {ease:Bounce.easeOut, alpha:1, scaleX:1, scaleY:1});
TweenMax.from(main_play, 0.7, {delay:0.4, alpha:0, ease:Bounce.easeOut, scaleX:0.2, scaleY:0.2});
TweenMax.to(main_play, 0.7, {delay:0.4, alpha:1, ease:Bounce.easeOut, scaleX:1, scaleY:1});
TweenMax.from(main_how, 0.7, {delay:0.8, alpha:0, ease:Bounce.easeOut, scaleX:0.2, scaleY:0.2});
TweenMax.to(main_how, 0.7, {delay:0.8, alpha:1, ease:Bounce.easeOut, scaleX:1, scaleY:1});
logo.gotoAndPlay(2);
addEventListener(MouseEvent.MOUSE_OVER, MainMouseOver);
_vars.Tracker.Add("MouseEvent.MOUSE_OVER, MainMouseOver");
addEventListener(MouseEvent.CLICK, MainMouseClick);
_vars.Tracker.Add("MouseEvent.CLICK, MainMouseClick");
addEventListener(MouseEvent.MOUSE_OUT, MainMouseOut);
_vars.Tracker.Add("MouseEvent.MOUSE_OUT, MainMouseOut");
main_btns.gotoAndPlay(2);
if (_first_run){
main_play.buttonMode = true;
main_how.buttonMode = true;
main_btns.main_send.buttonMode = true;
main_btns.main_score.buttonMode = true;
main_btns.main_visit.buttonMode = true;
koko_cont.main_koko.buttonMode = true;
mute_cont.mute.buttonMode = true;
_first_run = false;
};
break;
case "How":
removeEventListener(Event.ENTER_FRAME, FrameCheck);
_vars.Tracker.Remove("Event.ENTER_FRAME, FrameCheck");
TweenMax.from(how_box, 0.3, {ease:Circ.easeOut, alpha:0, scaleX:0.2, scaleY:0.2});
TweenMax.to(how_box, 0.3, {ease:Circ.easeOut, alpha:1, scaleX:1, scaleY:1});
TweenMax.from(how_text, 0.3, {delay:0.3, ease:Bounce.easeOut, alpha:0, scaleX:0.2, scaleY:0.2});
TweenMax.to(how_text, 0.3, {delay:0.3, ease:Bounce.easeOut, alpha:1, scaleX:1, scaleY:1});
how_btn.buttonMode = true;
how_btn.gotoAndPlay(2);
break;
case "Send":
removeEventListener(Event.ENTER_FRAME, FrameCheck);
_vars.Tracker.Remove("Event.ENTER_FRAME, FrameCheck");
TweenMax.from(stf_form, 0.3, {ease:Circ.easeOut, alpha:0, scaleX:0.2, scaleY:0.2});
TweenMax.to(stf_form, 0.3, {ease:Circ.easeOut, alpha:1, scaleX:1, scaleY:1});
TweenMax.from(title_bar, 0.2, {ease:Circ.easeOut, alpha:0, scaleX:0.2, scaleY:0.2});
TweenMax.to(title_bar, 0.2, {ease:Circ.easeOut, alpha:1, scaleX:1, scaleY:1});
TweenMax.from(stf, 0.3, {delay:0.3, ease:Circ.easeOut, alpha:0, scaleX:0.2, scaleY:0.2});
TweenMax.to(stf, 0.3, {delay:0.3, ease:Circ.easeOut, alpha:1, scaleX:1, scaleY:1});
TweenMax.from(send_send, 0.2, {delay:0.9, ease:Circ.easeOut, x:231, alpha:0, scaleX:0.2, scaleY:0.2});
TweenMax.to(send_send, 0.2, {delay:0.9, ease:Circ.easeOut, x:151, alpha:1, scaleX:1, scaleY:1});
TweenMax.from(send_monster, 0.3, {delay:1.2, ease:Circ.easeOut, alpha:0, scaleX:0.2, scaleY:0.2});
TweenMax.to(send_monster, 0.3, {delay:1.2, ease:Circ.easeOut, alpha:1, scaleX:1, scaleY:1});
TweenMax.from(send_return, 0.3, {delay:1.5, ease:Circ.easeOut, alpha:0, scaleX:0.2, scaleY:0.2});
TweenMax.to(send_return, 0.3, {delay:1.5, ease:Circ.easeOut, alpha:1, scaleX:1, scaleY:1});
send_monster.buttonMode = true;
send_return.buttonMode = true;
send_send.buttonMode = true;
break;
case "Score":
removeEventListener(Event.ENTER_FRAME, FrameCheck);
_vars.Tracker.Remove("Event.ENTER_FRAME, FrameCheck");
TweenMax.from(daily, 0.3, {ease:Circ.easeOut, alpha:0, scaleX:0.2, scaleY:0.2});
TweenMax.to(daily, 0.3, {ease:Circ.easeOut, alpha:1, scaleX:1, scaleY:1});
TweenMax.from(scoreboard, 0.3, {delay:0.3, ease:Circ.easeOut, alpha:0, scaleX:0.2, scaleY:0.2});
TweenMax.to(scoreboard, 0.3, {delay:0.3, ease:Circ.easeOut, alpha:1, scaleX:1, scaleY:1});
TweenMax.from(score_monster, 0.3, {delay:0.6, ease:Circ.easeOut, alpha:0, scaleX:0.2, scaleY:0.2});
TweenMax.to(score_monster, 0.3, {delay:0.6, ease:Circ.easeOut, alpha:1, scaleX:1, scaleY:1});
TweenMax.from(score_return, 0.3, {delay:0.9, ease:Circ.easeOut, alpha:0, scaleX:0.2, scaleY:0.2});
TweenMax.to(score_return, 0.3, {delay:0.9, ease:Circ.easeOut, alpha:1, scaleX:1, scaleY:1});
_HighScore.showScores(_url_scores);
_HighScore.addEventListener(CommonHighScore.SCORES_LOADED, DisplayScores);
_vars.Tracker.Add("CommonHighScore.SCORES_LOADED, DisplayScores");
score_return.buttonMode = true;
score_monster.buttonMode = true;
break;
case "GameOver":
removeEventListener(Event.ENTER_FRAME, FrameCheck);
_vars.Tracker.Remove("Event.ENTER_FRAME, FrameCheck");
end_anim.gotoAndPlay(2);
_vars.Rain.removeEventListener(Rain.GAMEOVER, GameOver);
_vars.Tracker.Remove("Rain.GAMEOVER, GameOver");
break;
};
}
public function onLoadComplete(_arg1:Event):void{
gotoAndPlay(2);
}
public function SendToFriend_Fail(_arg1:Event):void{
}
}
}//package
Section 114
//GameSounds (GameSounds)
package {
import flash.display.*;
import flash.media.*;
public class GameSounds extends Sprite {
private var _sfx_gameover;
private var _sfxChannel:SoundChannel;
private var _sfx_collect_super1;
private var _sfx_collect_super2;
private var _sfx_collect_timeup;
private var _music_track1;
private var _music_track2;
private var _sfx_collect;
private var _sfx_collect_timedown;
private var _musicTrack:SoundChannel;
private var _musicVolume;// = 1
private var _sfx_timeout;
private var _tickChannel:SoundChannel;
public var _mute:int;// = 1
public function GameSounds(){
_mute = 1;
_music_track1 = new snd_music();
_music_track2 = new snd_super_monster();
_sfx_collect = new snd_collect();
_sfx_collect_super1 = new snd_collect_super1();
_sfx_collect_super2 = new snd_collect_super2();
_sfx_collect_timedown = new snd_collect_timedown();
_sfx_collect_timeup = new snd_collect_timeup();
_sfx_gameover = new snd_gameover();
_sfx_timeout = new snd_time_out();
_musicVolume = 1;
super();
}
public function stopSfx(){
if (_sfxChannel != null){
_sfxChannel.stop();
};
}
public function playSound(_arg1){
switch (_arg1){
case 1:
_musicTrack = _music_track1.play(0, 9999999);
break;
case 2:
_musicTrack = _music_track2.play(0, 9999999);
break;
case 3:
_sfxChannel = _sfx_collect.play();
break;
case 4:
_sfxChannel = _sfx_collect_super1.play();
break;
case 5:
_sfxChannel = _sfx_collect_super2.play();
break;
case 6:
_sfxChannel = _sfx_collect_timedown.play();
break;
case 7:
_sfxChannel = _sfx_collect_timeup.play();
break;
case 8:
_sfxChannel = _sfx_gameover.play();
break;
case 9:
_tickChannel = _sfx_timeout.play(0, 10);
break;
};
}
public function stopMusic(){
if (_musicTrack != null){
_musicTrack.stop();
};
}
public function muteSound(){
switch (_mute){
case 1:
_mute = 0;
break;
case 0:
_mute = 1;
break;
};
SoundMixer.soundTransform = new SoundTransform(_mute);
}
public function stopTick(){
if (_tickChannel != null){
_tickChannel.stop();
};
}
}
}//package
Section 115
//mainmenu_button_highscores (mainmenu_button_highscores)
package {
import flash.display.*;
public dynamic class mainmenu_button_highscores extends BitmapData {
public function mainmenu_button_highscores(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 116
//mask1 (mask1)
package {
import flash.display.*;
public dynamic class mask1 extends MovieClip {
}
}//package
Section 117
//mute_btn (mute_btn)
package {
import flash.display.*;
public dynamic class mute_btn extends MovieClip {
public function mute_btn(){
addFrameScript(12, frame13, 16, frame17, 19, frame20);
}
function frame17(){
gotoAndPlay(1);
}
function frame13(){
stop();
}
function frame20(){
stop();
}
}
}//package
Section 118
//Prize (Prize)
package {
import flash.display.*;
public dynamic class Prize extends MovieClip {
}
}//package
Section 119
//Rain (Rain)
package {
import flash.display.*;
import flash.events.*;
import gs.*;
import flash.utils.*;
import gs.easing.*;
import console.control.*;
import flash.text.*;
public dynamic class Rain extends MovieClip {
public var _vars:Object;
public var _play:Boolean;// = true
public static const GAMEOVER:String = "GameOver";
public function Rain(){
_play = true;
super();
}
public function BuildSegment(_arg1:Array):Array{
var _local2:Array;
var _local3:uint;
var _local4:String;
var _local5:uint;
var _local6:uint;
_local2 = new Array();
_local3 = 0;
while (_local3 < _arg1.length) {
_local4 = _arg1[_local3][0];
_local5 = _arg1[_local3][1];
_local6 = 0;
while (_local6 < _local5) {
_local2.push(_local4);
_local6++;
};
_local3++;
};
return (_local2);
}
public function GameOver():void{
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:*;
var _local8:*;
_vars.Sounds.stopTick();
_vars.Sounds.stopMusic();
_vars.Sounds.stopSfx();
_vars.Sounds.playSound(1);
_vars.Trump.Keys.removeEventListener(KeyboardControls.MULTI_KEYS_DOWN, _vars.Trump.KeyDown);
_vars.Tracker.Remove("KeyboardControls.MULTI_KEYS_DOWN, KeyDown");
_vars.Trump.Keys.removeEventListener(KeyboardControls.SINGLE_KEY_UP, _vars.Trump.KeyUp);
_vars.Tracker.Remove("KeyboardControls.SINGLE_KEY_UP, KeyUp");
_vars.GameOn = false;
_local1 = _vars.RainContainer.numChildren;
_local2 = _vars.StackContainer.numChildren;
_local3 = _vars.GameContainer.numChildren;
_local4 = 0;
while (_local4 < _local1) {
_local7 = _vars.RainContainer.getChildAt(0);
_local7.removeEventListener(Event.ENTER_FRAME, Falling);
_vars.Tracker.Remove("Event.ENTER_FRAME, Falling");
_vars.RainContainer.removeChildAt(0);
_local4++;
};
_local5 = 0;
while (_local5 < _local2) {
_local8 = _vars.StackContainer.getChildAt(0);
_local8.removeEventListener(Event.ENTER_FRAME, _vars.Stack.MoveCV);
_vars.Tracker.Remove("Event.ENTER_FRAME, MoveCV");
_vars.StackContainer.removeChildAt(0);
_local5++;
};
_local6 = 0;
while (_local6 < _local3) {
_vars.GameContainer.removeChildAt(0);
_local6++;
};
dispatchEvent(new Event(Rain.GAMEOVER));
}
public function BonusResult(_arg1):void{
if (_arg1 == "GameOver"){
GameOver();
};
}
public function UpdateScore():void{
_vars.ScoreBox.box.text = _vars.Score.toString();
_vars.ScoreBox.multi.text = ("x " + _vars.Score_stack_multi.toString());
}
public function HitPrize(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
switch (_arg1){
case "x1":
_vars.Sounds.playSound(3);
AddScore(_arg1);
_vars.Stack.Increment(1);
break;
case "x2":
_vars.Sounds.playSound(3);
AddScore(_arg1);
_vars.Stack.Increment(2);
break;
case "x3":
_vars.Sounds.playSound(3);
AddScore(_arg1);
_vars.Stack.Increment(3);
break;
case "xSuper":
_vars.Sounds.playSound(3);
AddScore(_arg1);
_vars.Stack.Increment(10);
break;
case "timer":
_vars.Sounds.stopTick();
_vars.Sounds.playSound(7);
_local2 = 20;
_vars.TimePassed = (_vars.TimePassed - (_local2 * 15));
break;
case "super_monster":
_vars.Trump.MoveSize = _vars.Score_SpeedupAmount;
_vars.Trump.SetWobbleSlide(true);
_vars.Stack.Rotation = 0;
_vars.Stack.Difficulty = 20;
_vars.Sounds.playSound(4);
_vars.Stack.Difficulty = 20;
_vars.Stack.Rotation = 0.05;
_vars.Score_SpeedupTimer = new Timer(1000);
_vars.Score_SpeedupTimer.addEventListener(TimerEvent.TIMER, _vars.Trump.SpeedupTime);
_vars.Tracker.Add("TimerEvent.TIMER, SpeedupTime");
_vars.Score_SpeedupTimer.start();
_vars.Stack.Rigid = true;
_vars.Score_RigidTimer = new Timer(1000);
_vars.Score_RigidTimer.addEventListener(TimerEvent.TIMER, _vars.Stack.RigidTime);
_vars.Tracker.Add("TimerEvent.TIMER, RigidTime");
_vars.Score_RigidTimer.start();
_vars.Trump.character.wobbler.colour2.gotoAndStop(1);
NewBonus(_arg1);
_vars.Sounds.stopMusic();
_vars.Sounds.playSound(2);
break;
case "minus_time":
_vars.Sounds.playSound(6);
_local3 = Number(_vars.TimeBox.mins.text);
_local4 = Number(_vars.TimeBox.secs.text);
if ((((_local4 > 20)) || ((_local3 > 0)))){
_local5 = (20 * 15);
_vars.TimePassed = (_vars.TimePassed + _local5);
} else {
_vars.TimePassed = (_vars.StartTime * 15);
};
break;
};
UpdateScore();
}
public function BuildAllSegment():void{
var _local1:uint;
var _local2:*;
var _local3:*;
_vars.Segments = new Array();
_local1 = 0;
while (_local1 < _vars.Rain.Segments.length) {
_local2 = _vars.Rain.Segments[_local1];
_local3 = BuildSegment(_local2);
_vars.Segments.push(_local3);
_local1++;
};
}
public function Falling(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:uint;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = _arg1.target;
if (_local2.y < _vars.Rain.GroundLevel){
_local2.y = (_local2.y + _vars.Rain.Speed);
} else {
if (_local2.y >= _vars.Rain.GroundLevel){
Die2(_local2);
if (_vars.Score >= _vars.Score_Decrement){
_vars.Score = (_vars.Score - (_vars.Score_Decrement * _vars.Score_stack_multi));
} else {
_vars.Score = 0;
};
UpdateScore();
};
};
_local3 = (_local2.x + (_local2.width / 2));
_local4 = _vars.Stack.Store[(_vars.Stack.Store.length - 1)].y;
if ((((((((_local3 > (_vars.Trump.x - 55))) && ((_local3 < (_vars.Trump.x + 55))))) && ((_local2.y >= (_local4 - 60))))) && ((_local2.y < _vars.Trump.y)))){
_local5 = 0;
while (_local5 < _vars.Stack.Store.length) {
_local6 = (_vars.Stack.Store[_local5].x - (_vars.Stack.Store[_local5].width / 2));
_local7 = (_vars.Stack.Store[_local5].x + (_vars.Stack.Store[_local5].width / 2));
_local8 = (_vars.Stack.Store[_local5].y - _vars.Stack.Store[_local5].point5.y);
_local9 = (_vars.Stack.Store[_local5].y + _vars.Stack.Store[_local5].point6.y);
_local10 = _local2.x;
_local11 = (_local2.x + _local2.width);
_local12 = _local2.y;
_local13 = (_local2.y + _local2.height);
if ((((((((((_local11 > _local6)) && ((_local10 < _local7)))) && ((_local13 > _local8)))) && ((_local12 < _local9)))) && ((_local2.Collected == false)))){
_local2.Collected = true;
HitPrize(_local2.Type);
Die(_local2);
};
_local5++;
};
};
}
public function TimeUp():void{
if (_vars.Time_Tick == true){
_vars.Time_Tick = false;
_vars.Sounds.stopTick();
_vars.Sounds.playSound(9);
};
}
public function Start():void{
_vars.Rain.addEventListener(Event.ENTER_FRAME, CheckTime);
_vars.Tracker.Add("Event.ENTER_FRAME, CheckTime");
BuildAllSegment();
}
public function NewBonus(_arg1):void{
var _local2:*;
var _local3:uint;
var _local4:*;
_vars.Bonus.count++;
switch (_arg1){
case "GameOver":
_vars.Bonus[_vars.Bonus.count] = new bonus2();
_vars.Bonus[_vars.Bonus.count].y = 291.5;
_local2 = _vars.RainContainer.numChildren;
_local3 = 0;
while (_local3 < _local2) {
_local4 = _vars.RainContainer.getChildAt(0);
_local4.removeEventListener(Event.ENTER_FRAME, Falling);
_vars.Tracker.Remove("Event.ENTER_FRAME, Falling");
_vars.RainContainer.removeChildAt(0);
_local3++;
};
break;
case "xSuper":
_vars.Bonus[_vars.Bonus.count] = new bonus3();
_vars.Bonus[_vars.Bonus.count].y = 209.3;
break;
case "timer":
_vars.Bonus[_vars.Bonus.count] = new bonus5();
_vars.Bonus[_vars.Bonus.count].y = 248;
break;
case "super_monster":
_vars.Bonus[_vars.Bonus.count] = new bonus1();
_vars.Bonus[_vars.Bonus.count].y = 284;
break;
case "minus10":
_vars.Bonus[_vars.Bonus.count] = new bonus4();
_vars.Bonus[_vars.Bonus.count].y = 387.5;
break;
case "minus_time":
_vars.Bonus[_vars.Bonus.count] = new bonus6();
_vars.Bonus[_vars.Bonus.count].y = 387.5;
break;
};
DisplayBonus(_vars.Bonus[_vars.Bonus.count], _arg1);
}
public function NewPrize(_arg1:String):void{
_vars.Prize = new Prize();
_vars.Prize.gotoAndStop(_arg1);
_vars.RainContainer.addChild(_vars.Prize);
_vars.Prize.y = -10;
_vars.Prize.addEventListener(Event.ENTER_FRAME, Falling);
_vars.Tracker.Add("Event.ENTER_FRAME, Falling");
_vars.Prize.Type = _arg1;
_vars.Prize.Collected = false;
do {
_vars.Prize.x = (Math.random() * (_vars.Rain.LimitWidth - _vars.Prize.width));
} while ((((_vars.Prize.x > (_vars.Trump.x - _vars.Trump.width))) && ((_vars.Prize.x < (_vars.Trump.x + _vars.Trump.width)))));
}
public function RemoveExplosion2(_arg1):void{
var _local2:*;
var _local3:uint;
_local2 = _vars.Trump.Sparkle.numChildren;
_local3 = 0;
while (_local3 < _local2) {
_vars.Trump.Sparkle.removeChildAt(0);
_local3++;
};
}
public function AddScore(_arg1):void{
_vars.Score = (_vars.Score + (_vars[("Score_" + _arg1)] * _vars.Score_stack_multi));
}
public function SetVars(_arg1:Object):void{
_vars = _arg1;
UpdateScore();
}
public function Explode8(_arg1, _arg2, _arg3):void{
_vars.Explode.count++;
_vars.Explode[_vars.Explode.count] = new explode8();
_vars.Explode[_vars.Explode.count].x = _arg1;
_vars.Explode[_vars.Explode.count].y = _arg2;
_vars.PopupContainer.addChild(_vars.Explode[_vars.Explode.count]);
TweenMax.to(_vars.Explode[_vars.Explode.count], 0.5, {onComplete:RemoveExplosion, onCompleteParams:[_vars.Explode[_vars.Explode.count]]});
}
public function Explode2(_arg1, _arg2, _arg3):void{
var _local4:*;
_vars.Explode.count++;
_vars.Explode[_vars.Explode.count] = new explode2();
_vars.Explode[_vars.Explode.count].x = _arg1;
_vars.Explode[_vars.Explode.count].y = _arg2;
switch (_arg3){
case "x1":
case "x2":
case "x3":
case "xSuper":
_local4 = (_vars.Score_Decrement * _vars.Score_stack_multi);
if (_local4 < 10){
_vars.Explode[_vars.Explode.count].num.num.num.text = ("- 0" + _local4.toString());
} else {
_vars.Explode[_vars.Explode.count].num.num.num.text = ("- " + _local4.toString());
};
break;
case "multi":
_vars.Explode[_vars.Explode.count].num.num.num.text = _vars.Score_stack_multi.toString();
break;
};
_vars.PopupContainer.addChild(_vars.Explode[_vars.Explode.count]);
TweenMax.to(_vars.Explode[_vars.Explode.count], 0.5, {onComplete:RemoveExplosion, onCompleteParams:[_vars.Explode[_vars.Explode.count]]});
}
public function Die(_arg1):void{
var _local2:uint;
_local2 = 0;
while (_local2 < _vars.RainContainer.numChildren) {
if (_vars.RainContainer.getChildAt(_local2) == _arg1){
Explode(_vars.RainContainer.getChildAt(_local2).x, _vars.RainContainer.getChildAt(_local2).y, _arg1.Type);
_vars.RainContainer.getChildAt(_local2).removeEventListener(Event.ENTER_FRAME, Falling);
_vars.Tracker.Remove("Event.ENTER_FRAME, Falling");
_vars.RainContainer.removeChildAt(_local2);
};
_local2++;
};
}
public function Explode4(_arg1, _arg2, _arg3):void{
var _local4:*;
_vars.Explode.count++;
_vars.Explode[_vars.Explode.count] = new explode4();
_vars.Explode[_vars.Explode.count].x = _arg1;
_vars.Explode[_vars.Explode.count].y = _arg2;
switch (_arg3){
case "x1":
case "x2":
case "x3":
case "xSuper":
_local4 = (_vars.Score_Decrement * _vars.Score_stack_multi);
if (_local4 < 10){
_vars.Explode[_vars.Explode.count].num.num.num.text = ("- 0" + _local4.toString());
} else {
_vars.Explode[_vars.Explode.count].num.num.num.text = ("- " + _local4.toString());
};
break;
case "multi":
_vars.Explode[_vars.Explode.count].num.num.num.text = _vars.Score_stack_multi.toString();
break;
};
_vars.PopupContainer.addChild(_vars.Explode[_vars.Explode.count]);
TweenMax.to(_vars.Explode[_vars.Explode.count], 3, {onComplete:RemoveExplosion, onCompleteParams:[_vars.Explode[_vars.Explode.count]]});
}
public function DisplayBonus(_arg1, _arg2):void{
if (_vars.GameOn){
_vars.PopupContainer.addChild(_arg1);
_arg1.x = 230;
TweenMax.from(_arg1, 0.2, {delay:0, alpha:0, scaleX:0.1, scaleY:0.1});
TweenMax.to(_arg1, 0.2, {delay:0, alpha:1, scaleX:1, scaleY:1});
TweenMax.to(_arg1, 0.2, {delay:1.5, alpha:0, scaleX:0.1, scaleY:0.1, onComplete:RemoveBonus, onCompleteParams:[_arg1, _arg2]});
if (_arg2 == "GameOver"){
_vars.GameOn = false;
};
};
}
public function Explode3(_arg1, _arg2):void{
_vars.Explode.count++;
_vars.Explode[_vars.Explode.count] = new explode3();
_vars.Explode[_vars.Explode.count].x = _arg1;
_vars.Explode[_vars.Explode.count].y = _arg2;
_vars.Trump.Sparkle.addChild(_vars.Explode[_vars.Explode.count]);
TweenMax.to(_vars.Explode[_vars.Explode.count], 3, {onComplete:RemoveExplosion2, onCompleteParams:[_vars.Explode[_vars.Explode.count]]});
}
public function Explode5(_arg1, _arg2):void{
_vars.Explode.count++;
_vars.Explode[_vars.Explode.count] = new explode5();
_vars.Explode[_vars.Explode.count].x = _arg1;
_vars.Explode[_vars.Explode.count].y = _arg2;
_vars.PopupContainer.addChild(_vars.Explode[_vars.Explode.count]);
TweenMax.to(_vars.Explode[_vars.Explode.count], 0.5, {onComplete:RemoveExplosion, onCompleteParams:[_vars.Explode[_vars.Explode.count]]});
}
public function UpdateTimeBox():void{
var _local1:*;
var _local2:*;
var _local3:String;
var _local4:String;
var _local5:*;
var _local6:*;
_vars.TimePassed++;
_local1 = Math.floor((_vars.TimePassed / 15));
_local2 = (_vars.StartTime - _local1);
_local5 = Math.floor((_local2 / 60));
_local6 = (_local2 - (_local5 * 60));
if (_local5 < 10){
_local3 = ("0" + _local5);
} else {
_local3 = _local5;
};
if (_local6 < 10){
_local4 = ("0" + _local6);
} else {
_local4 = _local6;
};
if ((((_local6 == 0)) && ((_local5 == 0)))){
_vars.Sounds.stopTick();
_play = false;
};
if ((((_local5 == 0)) && ((_local6 < 10)))){
TimeUp();
} else {
if (_vars.Time_Tick == false){
_vars.Sounds.stopTick();
_vars.Time_Tick = true;
};
};
if ((((_local5 == 0)) && ((_local6 < 1)))){
_vars.Sounds.stopMusic();
_vars.Sounds.playSound(8);
};
_vars.TimeBox.mins.text = _local3;
_vars.TimeBox.secs.text = _local4;
}
public function Explode6(_arg1, _arg2):void{
_vars.Explode.count++;
_vars.Explode[_vars.Explode.count] = new explode6();
_vars.Explode[_vars.Explode.count].x = _arg1;
_vars.Explode[_vars.Explode.count].y = _arg2;
_vars.PopupContainer.addChild(_vars.Explode[_vars.Explode.count]);
TweenMax.to(_vars.Explode[_vars.Explode.count], 0.5, {onComplete:RemoveExplosion, onCompleteParams:[_vars.Explode[_vars.Explode.count]]});
}
public function Explode(_arg1, _arg2, _arg3):void{
var _local4:*;
_vars.Explode.count++;
_vars.Explode[_vars.Explode.count] = new explode();
_vars.Explode[_vars.Explode.count].x = _arg1;
_vars.Explode[_vars.Explode.count].y = _arg2;
switch (_arg3){
case "x1":
case "x2":
case "x3":
case "xSuper":
_local4 = (_vars[("Score_" + _arg3)] * _vars.Score_stack_multi);
_local4 = _local4.toString();
_vars.Explode[_vars.Explode.count].num.num.num.text = ("+ " + _local4);
break;
};
_vars.PopupContainer.addChild(_vars.Explode[_vars.Explode.count]);
TweenMax.to(_vars.Explode[_vars.Explode.count], 0.5, {onComplete:RemoveExplosion, onCompleteParams:[_vars.Explode[_vars.Explode.count]]});
}
public function Explode7(_arg1, _arg2, _arg3):void{
_vars.Explode.count++;
_vars.Explode[_vars.Explode.count] = new explode7();
_vars.Explode[_vars.Explode.count].x = _arg1;
_vars.Explode[_vars.Explode.count].y = _arg2;
_vars.PopupContainer.addChild(_vars.Explode[_vars.Explode.count]);
TweenMax.to(_vars.Explode[_vars.Explode.count], 0.5, {onComplete:RemoveExplosion, onCompleteParams:[_vars.Explode[_vars.Explode.count]]});
}
public function RemoveExplosion(_arg1):void{
_vars.PopupContainer.removeChild(_arg1);
}
public function Die2(_arg1):void{
var _local2:*;
var _local3:uint;
switch (_arg1.Type){
case "x1":
case "x2":
case "x3":
case "xSuper":
_local2 = "Explode2";
break;
case "minus_time":
case "timer":
_local2 = "Explode7";
break;
case "super_monster":
_local2 = "Explode8";
break;
};
_local3 = 0;
while (_local3 < _vars.RainContainer.numChildren) {
if (_vars.RainContainer.getChildAt(_local3) == _arg1){
var _local4 = _vars.Rain;
_local4[_local2](_vars.RainContainer.getChildAt(_local3).x, _vars.RainContainer.getChildAt(_local3).y, _arg1.Type);
_vars.RainContainer.getChildAt(_local3).removeEventListener(Event.ENTER_FRAME, Falling);
_vars.Tracker.Remove("Event.ENTER_FRAME, Falling");
_vars.RainContainer.removeChildAt(_local3);
};
_local3++;
};
}
public function CheckTime(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:uint;
var _local6:String;
if (_play){
_vars.Rain.Current++;
_local2 = (_vars.Rain.Duration * _vars.Rain.SegmentInterval);
_local3 = Math.ceil(((_local2 - _vars.Rain.Current) / _vars.Rain.SegmentInterval));
_local4 = _vars.Rain.SegmentInterval;
UpdateTimeBox();
if (_vars.Rain.Current == _local4){
if (_vars.Segments[_vars.Rain.SegmentCount].length > 0){
_local5 = Math.floor((Math.random() * _vars.Segments[_vars.Rain.SegmentCount].length));
_local6 = _vars.Segments[_vars.Rain.SegmentCount][_local5];
NewPrize(_local6);
_vars.Segments[_vars.Rain.SegmentCount].splice(_local5, 1);
} else {
if (_vars.Rain.SegmentCount < (_vars.Rain.Segments.length - 1)){
_vars.Rain.SegmentCount++;
} else {
_vars.Rain.SegmentCount = 0;
BuildAllSegment();
};
};
_vars.Rain.Current = 0;
_vars.Rain.Duration--;
};
} else {
_vars.Rain.removeEventListener(Event.ENTER_FRAME, CheckTime);
_vars.Tracker.Remove("Event.ENTER_FRAME, CheckTime");
NewBonus("GameOver");
};
}
public function RemoveBonus(_arg1, _arg2):void{
_vars.PopupContainer.removeChild(_arg1);
BonusResult(_arg2);
}
}
}//package
Section 120
//Score (Score)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Score extends MovieClip {
public var multi:TextField;
public var box:TextField;
}
}//package
Section 121
//snd_collect (snd_collect)
package {
import flash.media.*;
public dynamic class snd_collect extends Sound {
}
}//package
Section 122
//snd_collect_super1 (snd_collect_super1)
package {
import flash.media.*;
public dynamic class snd_collect_super1 extends Sound {
}
}//package
Section 123
//snd_collect_super2 (snd_collect_super2)
package {
import flash.media.*;
public dynamic class snd_collect_super2 extends Sound {
}
}//package
Section 124
//snd_collect_timedown (snd_collect_timedown)
package {
import flash.media.*;
public dynamic class snd_collect_timedown extends Sound {
}
}//package
Section 125
//snd_collect_timeup (snd_collect_timeup)
package {
import flash.media.*;
public dynamic class snd_collect_timeup extends Sound {
}
}//package
Section 126
//snd_gameover (snd_gameover)
package {
import flash.media.*;
public dynamic class snd_gameover extends Sound {
}
}//package
Section 127
//snd_music (snd_music)
package {
import flash.media.*;
public dynamic class snd_music extends Sound {
}
}//package
Section 128
//snd_super_monster (snd_super_monster)
package {
import flash.media.*;
public dynamic class snd_super_monster extends Sound {
}
}//package
Section 129
//snd_time_out (snd_time_out)
package {
import flash.media.*;
public dynamic class snd_time_out extends Sound {
}
}//package
Section 130
//Stack (Stack)
package {
import flash.display.*;
import flash.events.*;
import gs.*;
import gs.easing.*;
import flash.geom.*;
public dynamic class Stack extends MovieClip {
public var _vars:Object;
public function RemoveCV(_arg1):void{
}
public function resetStackPos():void{
var _local1:uint;
_local1 = 0;
while (_local1 < _vars.Stack.Store.length) {
_vars.Stack.Store[_local1].StackPos = _local1;
_local1++;
};
_vars.Stack.Size = _vars.Stack.Store.length;
}
public function MoveCV(_arg1:Event):void{
var _local2:*;
_local2 = _arg1.target;
if (_arg1.target != null){
CalcPosition(_local2);
};
}
public function NewCV(_arg1):void{
var _local2:*;
var _local3:uint;
_local2 = new CV();
_vars.StackContainer.addChild(_local2);
_local2.storedRotation = 0;
_local2.x = _vars.Trump.x;
_local2.y = (_vars.Stack.StartPos.y - (_arg1 * _vars.Stack.CVHeight));
_local2.StackPos = _arg1;
_local2.SpeedOffset = (1 + (_arg1 * _vars.Stack.Speed));
_local2.rotation = 0;
_local3 = 1;
while (_local3 <= 4) {
_local2[("Point" + _local3)] = new Point(_local2[("point" + _local3)].x, _local2[("point" + _local3)].y);
_local3++;
};
_vars.Stack.Store.push(_local2);
_local2.addEventListener(Event.ENTER_FRAME, MoveCV);
_vars.Tracker.Add("Event.ENTER_FRAME, MoveCV");
CalcPosition(_local2);
}
public function InitStack():void{
var _local1:uint;
_local1 = 0;
while (_local1 < _vars.Stack.Size) {
NewCV(_local1);
_local1++;
};
}
public function TweenOutCV_Bank(_arg1):void{
var _local2:*;
_local2 = ((120 - _vars.Stack.Store.length) * 0.001);
TweenMax.to(_arg1, (0.2 + _local2), {delay:_local2, y:(_arg1.y + (_arg1.StackPos * 1)), scaleX:(1 / _arg1.StackPos), alpha:0, onComplete:RemoveBankCV, onCompleteParams:[_arg1]});
}
public function Increment(_arg1:uint):void{
var _local2:uint;
var _local3:uint;
var _local4:uint;
if (_vars.GameOn == true){
while (_local2 < _arg1) {
_local3 = 0;
while (_local3 < _vars.Stack.IncrementSize) {
NewCV(_vars.Stack.Size);
_vars.Stack.Size++;
_local3++;
};
_local2++;
};
if (_vars.Stack.Store.length >= _vars.Stack.Max){
if (_vars.Stack.Rigid){
_vars.Score_RigidTimer.stop();
_vars.Score_RigidTimer.removeEventListener(TimerEvent.TIMER, _vars.Stack.RigidTime);
_vars.Score_SpeedupTimer.removeEventListener(TimerEvent.TIMER, _vars.Trump.SpeedupTime);
_vars.Score_SpeedupTimer.stop();
_vars.Tracker.Remove("TimerEvent.TIMER, RigidTime");
_vars.Stack.Rotation = 0.05;
_vars.Stack.Difficulty = 5;
_vars.Stack.Rigid = false;
_vars.Trump.MoveSize = 50;
_vars.Trump.character.wobbler.wobble_mask2.width = 0;
_vars.Trump.character.wobbler.wobble_mask.width = 0;
_vars.Sounds.stopMusic();
_vars.Sounds.playSound(1);
};
_vars.Stack.Rigid = false;
_vars.Score_stack_multi++;
_vars.Rain.Explode5(360, 5);
_local4 = 1;
while (_local4 < _vars.Stack.Max) {
CV_Bank(_vars.Stack.Store[(_vars.Stack.Store.length - 1)]);
_local4++;
};
(_vars.Score_stack_multi + _vars.Score_stack_multiValue);
TurnOffRigid();
};
};
}
public function RigidTime(_arg1:TimerEvent):void{
var _local2:*;
_vars.Trump.SetWobbleSlide(true);
_local2 = _arg1.target.currentCount;
_vars.Stack.Rotation = 0;
_vars.Stack.Difficulty = 20;
if (_local2 == (_vars.Score_RigidTimerLimit - 2)){
_vars.Trump.character.wobbler.colour2.gotoAndPlay(2);
};
if ((((_local2 < (_vars.Score_RigidTimerLimit - 3))) && (_vars.Stack.Rigid))){
_vars.Rain.Explode3(10, 50);
_vars.Rain.Explode3(-35, 50);
};
if (_local2 == _vars.Score_RigidTimerLimit){
_vars.Score_RigidTimer.removeEventListener(TimerEvent.TIMER, _vars.Stack.RigidTime);
_vars.Tracker.Remove("TimerEvent.TIMER, RigidTime");
_vars.Score_RigidTimer.stop();
_vars.Stack.Rotation = 0.05;
_vars.Stack.Difficulty = 5;
};
}
public function New():void{
InitStack();
}
public function SetVars(_arg1:Object):void{
_vars = _arg1;
}
public function CV_Bank(_arg1):void{
_arg1.removeEventListener(Event.ENTER_FRAME, MoveCV);
_vars.Tracker.Remove("Event.ENTER_FRAME, MoveCV");
_vars.Stack.Store.splice(_arg1.StackPos, 1);
resetStackPos();
TweenOutCV_Bank(_arg1);
}
public function CV_Die(_arg1):void{
var _local2:*;
var _local3:*;
_local2 = _vars.Stack.Store[0];
_local3 = ((_local2.x - _arg1.x) / _arg1.SpeedOffset);
_arg1.removeEventListener(Event.ENTER_FRAME, MoveCV);
_vars.Tracker.Remove("Event.ENTER_FRAME, MoveCV");
_vars.Stack.Store.splice(_arg1.StackPos, 1);
resetStackPos();
TweenOutCV(_arg1, _local3);
}
public function Decrement(_arg1:uint):void{
}
public function TweenOutCV(_arg1, _arg2):void{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
_local3 = (0.01 * _arg1.StackPos);
if (_arg2 > 0){
_local4 = (_arg1.x - (_arg1.StackPos * 2));
_local9 = 600;
_local6 = (_arg1.x - _local4);
_local7 = (_local9 - _arg1.y);
_local5 = (_local4 + (_local6 / 3));
_local8 = (_local9 + (_local7 / 3));
_local10 = -360;
} else {
if (_arg2 < 0){
_local4 = (_arg1.x + (_arg1.StackPos * 2));
_local9 = 600;
_local6 = (_local4 - _arg1.x);
_local7 = (_local9 - _arg1.y);
_local5 = (_local4 - (_local6 / 3));
_local8 = (_local9 + (_local7 / 3));
_local10 = 360;
};
};
TweenMax.from(_arg1, _local3, {x:_arg1.x, y:_arg1.y, rotation:_arg1.rotation});
TweenMax.to(_arg1, _local3, {x:_local4, y:_local9, rotation:_local10, bezierThrough:[{x:_local5, y:_local8}], orientToBezier:false, ease:Circ.easeIn, onComplete:RemoveBankCV, onCompleteParams:[_arg1]});
TweenMax.to(_arg1, 0.4, {alpha:0});
TweenMax.to(_arg1, 0.2, {onComplete:DieComplete, onCompleteParams:[_arg1.x, _arg1.y]});
}
public function CalcPosition(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
if (_vars.Stack.Size < _vars.Stack.Max){
if (_arg1.StackPos == (_vars.Stack.Store.length - 1)){
_vars.Wobbleometer.stress = _arg1.rotation;
_vars.Trump.SetWobbleometer(_vars.Wobbleometer.stress);
};
_local2 = _vars.Stack.Store[0];
if (_arg1.StackPos < 1){
_vars.Stack.Store[0].x = _vars.Trump.x;
};
if (_arg1.StackPos >= 1){
_local3 = _vars.Stack.Store[(_arg1.StackPos - 1)];
_local4 = ((_local2.x - _arg1.x) / _arg1.SpeedOffset);
_local5 = (_vars.Stack.Difficulty - _vars.Stack.Accel);
if (_vars.Stack.Accel == 0){
_local5 = (1 + (_arg1.StackPos * 0.05));
_local4 = (_local4 / 5);
};
if (_local5 < 0.01){
_local5 = 0.01;
};
_arg1.x = (_arg1.x + _local4);
_local6 = ((_local2.x - _arg1.x) / _local5);
_arg1.storedRotation = _local6;
_local7 = _local3.storedRotation;
_arg1.rotation = (0 - (_local6 + _local7));
if (_local4 > 0){
_local8 = (_arg1.localToGlobal(_arg1.Point3).x - _local3.localToGlobal(_local3.Point1).x);
_local9 = (_arg1.localToGlobal(_arg1.Point3).y - _local3.localToGlobal(_local3.Point1).y);
_arg1.x = (_arg1.x - _local8);
_arg1.y = (_arg1.y - _local9);
};
if (_local4 < 0){
_local8 = (_arg1.localToGlobal(_arg1.Point4).x - _local3.localToGlobal(_local3.Point2).x);
_local9 = (_arg1.localToGlobal(_arg1.Point4).y - _local3.localToGlobal(_local3.Point2).y);
_arg1.x = (_arg1.x - _local8);
_arg1.y = (_arg1.y - _local9);
};
if (_local4 == 0){
_local8 = (_arg1.localToGlobal(_arg1.Point4).x - _local3.localToGlobal(_local3.Point2).x);
_local9 = (_arg1.localToGlobal(_arg1.Point4).y - _local3.localToGlobal(_local3.Point2).y);
_arg1.x = (_arg1.x - _local8);
_arg1.y = (_arg1.y - _local9);
_local8 = (_arg1.localToGlobal(_arg1.Point3).x - _local3.localToGlobal(_local3.Point1).x);
_local9 = (_arg1.localToGlobal(_arg1.Point3).y - _local3.localToGlobal(_local3.Point1).y);
_arg1.x = (_arg1.x - _local8);
_arg1.y = (_arg1.y - _local9);
_arg1.rotation = 0;
};
if ((((((_arg1.rotation > _vars.Stack.Angle)) || ((_arg1.rotation < -(_vars.Stack.Angle))))) && (!((_vars.Stack.Accel == 0))))){
CV_Die(_arg1);
};
};
if (_arg1.StackPos == 1){
_arg1.rotation = 0;
_arg1.y = 410.6;
};
};
}
public function DieComplete(_arg1, _arg2):void{
_vars.Rain.Explode6(_arg1, (_arg2 + 100));
}
public function TurnOffSpeed():void{
_vars.Score_SpeedupTimer.removeEventListener(TimerEvent.TIMER, _vars.Trump.SpeedupTime);
_vars.Tracker.Remove("TimerEvent.TIMER, SpeedupTime");
_vars.Score_SpeedupTimer.stop();
_vars.Trump.MoveSize = 50;
}
public function RemoveBankCV(_arg1):void{
var _local2:uint;
var _local3:*;
_local2 = 0;
while (_local2 < _vars.StackContainer.numChildren) {
_local3 = _vars.StackContainer.getChildAt(_local2);
if (_local3 == _arg1){
_vars.StackContainer.removeChildAt(_local2);
};
_local2++;
};
}
public function TurnOffRigid():void{
if (_vars.Stack.Rigid){
_vars.Score_RigidTimer.removeEventListener(TimerEvent.TIMER, _vars.Stack.RigidTime);
_vars.Tracker.Remove("TimerEvent.TIMER, RigidTime");
_vars.Score_RigidTimer.stop();
_vars.Stack.Rotation = 0.05;
_vars.Stack.Difficulty = 5;
_vars.Stack.Rigid = false;
TurnOffSpeed();
};
}
}
}//package
Section 131
//Time (Time)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Time extends MovieClip {
public var mins:TextField;
public var secs:TextField;
}
}//package
Section 132
//Trump (Trump)
package {
import flash.display.*;
import flash.events.*;
import console.control.*;
public dynamic class Trump extends MovieClip {
public var _vars:Object;
public var character:MovieClip;
public var Sparkle:MovieClip;
public function Trump(){
addFrameScript(99, frame100);
}
public function SetWobbleSlide(_arg1:Boolean):void{
if (((_arg1) && (_vars.Stack.Rigid))){
this.character.wobbler.wobble_mask2.width = 78;
} else {
this.character.wobbler.wobble_mask2.width = 0;
};
}
function frame100(){
stop();
}
public function New():void{
this.x = _vars.Trump.StartPos.x;
this.y = _vars.Trump.StartPos.y;
_vars.Trump.Keys = new KeyboardControls(false);
_vars.Stage.addChild(_vars.Trump.Keys);
_vars.Trump.Keys.addEventListener(KeyboardControls.MULTI_KEYS_DOWN, KeyDown);
_vars.Tracker.Add("KeyboardControls.MULTI_KEYS_DOWN, KeyDown");
_vars.Trump.Keys.addEventListener(KeyboardControls.SINGLE_KEY_UP, KeyUp);
_vars.Tracker.Add("KeyboardControls.SINGLE_KEY_UP, KeyUp");
}
public function KeyDown(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = 0;
while (_local2 < _arg1.target._keysDown_array.length) {
switch (_arg1.target._keysDown_array[_local2]){
case 39:
if ((((_vars.Stack.MotionSwitch == 0)) || ((_vars.Stack.MotionSwitch == 1)))){
_vars.Stack.MotionSwitch = 1;
_vars.Stack.RightDown = true;
_local3 = (this.x + (_vars.Trump.MoveSize * (_vars.Stack.Accel / _vars.Trump.Accel)));
if (_local3 < _vars.Trump.Boundary_right){
this.x = _local3;
_vars.Stack.Accel = (_vars.Stack.Accel + _vars.Stack.AccelIncrement);
if (this.character.currentLabel != "Right"){
this.character.gotoAndStop("Right");
_vars.Stack.Direction = "Right";
};
} else {
this.x = _vars.Trump.Boundary_right;
};
};
break;
case 37:
if ((((_vars.Stack.MotionSwitch == 0)) || ((_vars.Stack.MotionSwitch == 2)))){
_vars.Stack.MotionSwitch = 2;
_vars.Stack.LeftDown = true;
_local4 = (this.x - (_vars.Trump.MoveSize * (_vars.Stack.Accel / _vars.Trump.Accel)));
if (_local4 > _vars.Trump.Boundary_left){
this.x = _local4;
_vars.Stack.Accel = (_vars.Stack.Accel + _vars.Stack.AccelIncrement);
if (this.character.currentLabel != "Left"){
this.character.gotoAndStop("Left");
_vars.Stack.Direction = "Left";
};
} else {
this.x = _vars.Trump.Boundary_left;
};
};
break;
};
_local2++;
};
}
public function SetVars(_arg1:Object):void{
_vars = _arg1;
}
public function KeyUp(_arg1:Event):void{
_vars.Stack.Accel = 0;
_vars.Stack.MotionSwitch = 0;
if (this.character.currentLabel != "Normal"){
this.character.gotoAndStop("Normal");
_vars.Stack.Direction = "None";
};
}
public function SetWobbleometer(_arg1:Number):void{
var _local2:*;
var _local3:Number;
var _local4:Number;
if (_vars.Stack.Difficulty <= 5){
SetWobbleSlide(false);
_local2 = _arg1;
if (_local2 < 0){
_local2 = (_local2 - (_local2 + _local2));
};
_local3 = (_vars.Wobbleometer.w / _vars.Stack.Angle);
_local4 = (_local3 * _local2);
_vars.Trump.character.wobbler.wobble_mask.width = _local4;
};
}
public function SpeedupTime(_arg1:TimerEvent):void{
var _local2:*;
_local2 = _arg1.target.currentCount;
if (_local2 == _vars.Score_SpeedupLimit){
_vars.Sounds.stopMusic();
_vars.Sounds.playSound(1);
_vars.Score_SpeedupTimer.removeEventListener(TimerEvent.TIMER, _vars.Trump.SpeedupTime);
_vars.Tracker.Remove("TimerEvent.TIMER, SpeedupTime");
_vars.Stack.Rigid = false;
_vars.Score_SpeedupTimer.stop();
_vars.Trump.MoveSize = 50;
};
}
}
}//package